text: !function(t){function e(e){for(var i,r,s=e[0],o=e[1],a=0,h=[];a<s.length;a++)r=s[a],n[r]&&h.push(n[r][0]),n[r]=0;for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i]);for(l&&l(e);h.length;)h.shift()()}var i={},n={10:0};function r(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(t){var e=[],i=n[t];if(0!==i)if(i)e.push(i[2]);else{var s=new Promise(function(e,r){i=n[t]=[e,r]});e.push(i[2]=s);var o,a=document.createElement("script");a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.src=function(t){return r.p+"js/"+({11:"vendors~canvg",12:"vendors~pdfmake",13:"vendors~xlsx",15:"xlsx"}[t]||t)+".js"}(t),o=function(e){a.onerror=a.onload=null,clearTimeout(l);var i=n[t];if(0!==i){if(i){var r=e&&("load"===e.type?"missing":e.type),s=e&&e.target&&e.target.src,o=new Error("Loading chunk "+t+" failed.\n("+r+": "+s+")");o.type=r,o.request=s,i[1](o)}n[t]=void 0}};var l=setTimeout(function(){o({type:"timeout",target:a})},12e4);a.onerror=a.onload=o,document.head.appendChild(a)}return Promise.all(e)},r.m=t,r.c=i,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(i,n,function(e){return t[e]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r.oe=function(t){throw console.error(t),t};var s=window.webpackJsonp=window.webpackJsonp||[],o=s.push.bind(s);s.push=e,s=s.slice();for(var a=0;a<s.length;a++)e(s[a]);var l=o;r(r.s=181)}({1:function(t,e,i){var n;
  /*!
   * jQuery JavaScript Library v3.4.1
   * https://jquery.com/
   *
   * Includes Sizzle.js
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2019-05-01T21:04Z
   */
  /*!
   * jQuery JavaScript Library v3.4.1
   * https://jquery.com/
   *
   * Includes Sizzle.js
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2019-05-01T21:04Z
   */
  !function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,function(i,r){"use strict";var s=[],o=i.document,a=Object.getPrototypeOf,l=s.slice,h=s.concat,u=s.push,p=s.indexOf,c={},d=c.toString,f=c.hasOwnProperty,g=f.toString,y=g.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},b=function(t){return null!=t&&t===t.window},x={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,i){var n,r,s=(i=i||o).createElement("script");if(s.text=t,e)for(n in x)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&s.setAttribute(n,r);i.head.appendChild(s).parentNode.removeChild(s)}function P(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[d.call(t)]||"object":typeof t}var w=function(t,e){return new w.fn.init(t,e)},C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(t){var e=!!t&&"length"in t&&t.length,i=P(t);return!v(t)&&!b(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}w.fn=w.prototype={jquery:"3.4.1",constructor:w,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=w.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return w.each(this,t)},map:function(t){return this.pushStack(w.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:s.sort,splice:s.splice},w.extend=w.fn.extend=function(){var t,e,i,n,r,s,o=arguments[0]||{},a=1,l=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[a]||{},a++),"object"==typeof o||v(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&o!==n&&(h&&n&&(w.isPlainObject(n)||(r=Array.isArray(n)))?(i=o[e],s=r&&!Array.isArray(i)?[]:r||w.isPlainObject(i)?i:{},r=!1,o[e]=w.extend(h,s,n)):void 0!==n&&(o[e]=n));return o},w.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==d.call(t))&&(!(e=a(t))||"function"==typeof(i=f.call(e,"constructor")&&e.constructor)&&g.call(i)===y)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e){_(t,{nonce:e&&e.nonce})},each:function(t,e){var i,n=0;if(S(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(C,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(S(Object(t))?w.merge(i,"string"==typeof t?[t]:t):u.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:p.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,s=t.length,o=!i;r<s;r++)!e(t[r],r)!==o&&n.push(t[r]);return n},map:function(t,e,i){var n,r,s=0,o=[];if(S(t))for(n=t.length;s<n;s++)null!=(r=e(t[s],s,i))&&o.push(r);else for(s in t)null!=(r=e(t[s],s,i))&&o.push(r);return h.apply([],o)},guid:1,support:m}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=s[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){c["[object "+e+"]"]=e.toLowerCase()});var k=
  /*!
   * Sizzle CSS Selector Engine v2.3.4
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://js.foundation/
   *
   * Date: 2019-04-08
   */
  function(t){var e,i,n,r,s,o,a,l,h,u,p,c,d,f,g,y,m,v,b,x="sizzle"+1*new Date,_=t.document,P=0,w=0,C=lt(),S=lt(),k=lt(),T=lt(),O=function(t,e){return t===e&&(p=!0),0},I={}.hasOwnProperty,D=[],A=D.pop,V=D.push,F=D.push,M=D.slice,j=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",B="\\["+L+"*("+R+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+L+"*\\]",N=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",H=new RegExp(L+"+","g"),W=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),X=new RegExp("^"+L+"*,"+L+"*"),z=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),Y=new RegExp(L+"|>"),U=new RegExp(N),G=new RegExp("^"+R+"$"),K={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},q=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),it=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},st=function(){c()},ot=xt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{F.apply(D=M.call(_.childNodes),_.childNodes),D[_.childNodes.length].nodeType}catch(t){F={apply:D.length?function(t,e){V.apply(t,M.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function at(t,e,n,r){var s,a,h,u,p,f,m,v=e&&e.ownerDocument,P=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==P&&9!==P&&11!==P)return n;if(!r&&((e?e.ownerDocument||e:_)!==d&&c(e),e=e||d,g)){if(11!==P&&(p=Q.exec(t)))if(s=p[1]){if(9===P){if(!(h=e.getElementById(s)))return n;if(h.id===s)return n.push(h),n}else if(v&&(h=v.getElementById(s))&&b(e,h)&&h.id===s)return n.push(h),n}else{if(p[2])return F.apply(n,e.getElementsByTagName(t)),n;if((s=p[3])&&i.getElementsByClassName&&e.getElementsByClassName)return F.apply(n,e.getElementsByClassName(s)),n}if(i.qsa&&!T[t+" "]&&(!y||!y.test(t))&&(1!==P||"object"!==e.nodeName.toLowerCase())){if(m=t,v=e,1===P&&Y.test(t)){for((u=e.getAttribute("id"))?u=u.replace(nt,rt):e.setAttribute("id",u=x),a=(f=o(t)).length;a--;)f[a]="#"+u+" "+bt(f[a]);m=f.join(","),v=tt.test(t)&&mt(e.parentNode)||e}try{return F.apply(n,v.querySelectorAll(m)),n}catch(e){T(t,!0)}finally{u===x&&e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,n,r)}function lt(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function ht(t){return t[x]=!0,t}function ut(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function pt(t,e){for(var i=t.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=e}function ct(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function dt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ot(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function yt(t){return ht(function(e){return e=+e,ht(function(i,n){for(var r,s=t([],i.length,e),o=s.length;o--;)i[r=s[o]]&&(i[r]=!(n[r]=i[r]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=at.support={},s=at.isXML=function(t){var e=t.namespaceURI,i=(t.ownerDocument||t).documentElement;return!q.test(e||i&&i.nodeName||"HTML")},c=at.setDocument=function(t){var e,r,o=t?t.ownerDocument||t:_;return o!==d&&9===o.nodeType&&o.documentElement?(f=(d=o).documentElement,g=!s(d),_!==d&&(r=d.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",st,!1):r.attachEvent&&r.attachEvent("onunload",st)),i.attributes=ut(function(t){return t.className="i",!t.getAttribute("className")}),i.getElementsByTagName=ut(function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length}),i.getElementsByClassName=J.test(d.getElementsByClassName),i.getById=ut(function(t){return f.appendChild(t).id=x,!d.getElementsByName||!d.getElementsByName(x).length}),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i,n,r,s=e.getElementById(t);if(s){if((i=s.getAttributeNode("id"))&&i.value===t)return[s];for(r=e.getElementsByName(t),n=0;s=r[n++];)if((i=s.getAttributeNode("id"))&&i.value===t)return[s]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,s=e.getElementsByTagName(t);if("*"===t){for(;i=s[r++];)1===i.nodeType&&n.push(i);return n}return s},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},m=[],y=[],(i.qsa=J.test(d.querySelectorAll))&&(ut(function(t){f.appendChild(t).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\["+L+"*(?:value|"+E+")"),t.querySelectorAll("[id~="+x+"-]").length||y.push("~="),t.querySelectorAll(":checked").length||y.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||y.push(".#.+[+~]")}),ut(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name"+L+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")})),(i.matchesSelector=J.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut(function(t){i.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),m.push("!=",N)}),y=y.length&&new RegExp(y.join("|")),m=m.length&&new RegExp(m.join("|")),e=J.test(f.compareDocumentPosition),b=e||J.test(f.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},O=e?function(t,e){if(t===e)return p=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t===d||t.ownerDocument===_&&b(_,t)?-1:e===d||e.ownerDocument===_&&b(_,e)?1:u?j(u,t)-j(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return p=!0,0;var i,n=0,r=t.parentNode,s=e.parentNode,o=[t],a=[e];if(!r||!s)return t===d?-1:e===d?1:r?-1:s?1:u?j(u,t)-j(u,e):0;if(r===s)return ct(t,e);for(i=t;i=i.parentNode;)o.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;o[n]===a[n];)n++;return n?ct(o[n],a[n]):o[n]===_?-1:a[n]===_?1:0},d):d},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if((t.ownerDocument||t)!==d&&c(t),i.matchesSelector&&g&&!T[e+" "]&&(!m||!m.test(e))&&(!y||!y.test(e)))try{var n=v.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){T(e,!0)}return at(e,d,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!==d&&c(t),b(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!==d&&c(t);var r=n.attrHandle[e.toLowerCase()],s=r&&I.call(n.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==s?s:i.attributes||!g?t.getAttribute(e):(s=t.getAttributeNode(e))&&s.specified?s.value:null},at.escape=function(t){return(t+"").replace(nt,rt)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,n=[],r=0,s=0;if(p=!i.detectDuplicates,u=!i.sortStable&&t.slice(0),t.sort(O),p){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)t.splice(n[r],1)}return u=null,t},r=at.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},(n=at.selectors={cacheLength:50,createPseudo:ht,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return K.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&U.test(i)&&(e=o(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&C(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(n){var r=at.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(H," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var h,u,p,c,d,f,g=s!==o?"nextSibling":"previousSibling",y=e.parentNode,m=a&&e.nodeName.toLowerCase(),v=!l&&!a,b=!1;if(y){if(s){for(;g;){for(c=e;c=c[g];)if(a?c.nodeName.toLowerCase()===m:1===c.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?y.firstChild:y.lastChild],o&&v){for(b=(d=(h=(u=(p=(c=y)[x]||(c[x]={}))[c.uniqueID]||(p[c.uniqueID]={}))[t]||[])[0]===P&&h[1])&&h[2],c=d&&y.childNodes[d];c=++d&&c&&c[g]||(b=d=0)||f.pop();)if(1===c.nodeType&&++b&&c===e){u[t]=[P,d,b];break}}else if(v&&(b=d=(h=(u=(p=(c=e)[x]||(c[x]={}))[c.uniqueID]||(p[c.uniqueID]={}))[t]||[])[0]===P&&h[1]),!1===b)for(;(c=++d&&c&&c[g]||(b=d=0)||f.pop())&&((a?c.nodeName.toLowerCase()!==m:1!==c.nodeType)||!++b||(v&&((u=(p=c[x]||(c[x]={}))[c.uniqueID]||(p[c.uniqueID]={}))[t]=[P,b]),c!==e)););return(b-=r)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return r[x]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ht(function(t,i){for(var n,s=r(t,e),o=s.length;o--;)t[n=j(t,s[o])]=!(i[n]=s[o])}):function(t){return r(t,0,i)}):r}},pseudos:{not:ht(function(t){var e=[],i=[],n=a(t.replace(W,"$1"));return n[x]?ht(function(t,e,i,r){for(var s,o=n(t,null,r,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,r,s){return e[0]=t,n(e,null,s,i),e[0]=null,!i.pop()}}),has:ht(function(t){return function(e){return at(t,e).length>0}}),contains:ht(function(t){return t=t.replace(et,it),function(e){return(e.textContent||r(e)).indexOf(t)>-1}}),lang:ht(function(t){return G.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return $.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:yt(function(){return[0]}),last:yt(function(t,e){return[e-1]}),eq:yt(function(t,e,i){return[i<0?i+e:i]}),even:yt(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:yt(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:yt(function(t,e,i){for(var n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t}),gt:yt(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=dt(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ft(e);function vt(){}function bt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function xt(t,e,i){var n=e.dir,r=e.next,s=r||n,o=i&&"parentNode"===s,a=w++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||o)return t(e,i,r);return!1}:function(e,i,l){var h,u,p,c=[P,a];if(l){for(;e=e[n];)if((1===e.nodeType||o)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||o)if(u=(p=e[x]||(e[x]={}))[e.uniqueID]||(p[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((h=u[s])&&h[0]===P&&h[1]===a)return c[2]=h[2];if(u[s]=c,c[2]=t(e,i,l))return!0}return!1}}function _t(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function Pt(t,e,i,n,r){for(var s,o=[],a=0,l=t.length,h=null!=e;a<l;a++)(s=t[a])&&(i&&!i(s,n,r)||(o.push(s),h&&e.push(a)));return o}function wt(t,e,i,n,r,s){return n&&!n[x]&&(n=wt(n)),r&&!r[x]&&(r=wt(r,s)),ht(function(s,o,a,l){var h,u,p,c=[],d=[],f=o.length,g=s||function(t,e,i){for(var n=0,r=e.length;n<r;n++)at(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),y=!t||!s&&e?g:Pt(g,c,t,a,l),m=i?r||(s?t:f||n)?[]:o:y;if(i&&i(y,m,a,l),n)for(h=Pt(m,d),n(h,[],a,l),u=h.length;u--;)(p=h[u])&&(m[d[u]]=!(y[d[u]]=p));if(s){if(r||t){if(r){for(h=[],u=m.length;u--;)(p=m[u])&&h.push(y[u]=p);r(null,m=[],h,l)}for(u=m.length;u--;)(p=m[u])&&(h=r?j(s,p):c[u])>-1&&(s[h]=!(o[h]=p))}}else m=Pt(m===o?m.splice(f,m.length):m),r?r(null,o,m,l):F.apply(o,m)})}function Ct(t){for(var e,i,r,s=t.length,o=n.relative[t[0].type],a=o||n.relative[" "],l=o?1:0,u=xt(function(t){return t===e},a,!0),p=xt(function(t){return j(e,t)>-1},a,!0),c=[function(t,i,n){var r=!o&&(n||i!==h)||((e=i).nodeType?u(t,i,n):p(t,i,n));return e=null,r}];l<s;l++)if(i=n.relative[t[l].type])c=[xt(_t(c),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[x]){for(r=++l;r<s&&!n.relative[t[r].type];r++);return wt(l>1&&_t(c),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(W,"$1"),i,l<r&&Ct(t.slice(l,r)),r<s&&Ct(t=t.slice(r)),r<s&&bt(t))}c.push(i)}return _t(c)}return vt.prototype=n.filters=n.pseudos,n.setFilters=new vt,o=at.tokenize=function(t,e){var i,r,s,o,a,l,h,u=S[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],h=n.preFilter;a;){for(o in i&&!(r=X.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),i=!1,(r=z.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(W," ")}),a=a.slice(i.length)),n.filter)!(r=K[o].exec(a))||h[o]&&!(r=h[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return e?a.length:a?at.error(t):S(t,l).slice(0)},a=at.compile=function(t,e){var i,r=[],s=[],a=k[t+" "];if(!a){for(e||(e=o(t)),i=e.length;i--;)(a=Ct(e[i]))[x]?r.push(a):s.push(a);(a=k(t,function(t,e){var i=e.length>0,r=t.length>0,s=function(s,o,a,l,u){var p,f,y,m=0,v="0",b=s&&[],x=[],_=h,w=s||r&&n.find.TAG("*",u),C=P+=null==_?1:Math.random()||.1,S=w.length;for(u&&(h=o===d||o||u);v!==S&&null!=(p=w[v]);v++){if(r&&p){for(f=0,o||p.ownerDocument===d||(c(p),a=!g);y=t[f++];)if(y(p,o||d,a)){l.push(p);break}u&&(P=C)}i&&((p=!y&&p)&&m--,s&&b.push(p))}if(m+=v,i&&v!==m){for(f=0;y=e[f++];)y(b,x,o,a);if(s){if(m>0)for(;v--;)b[v]||x[v]||(x[v]=A.call(l));x=Pt(x)}F.apply(l,x),u&&!s&&x.length>0&&m+e.length>1&&at.uniqueSort(l)}return u&&(P=C,h=_),b};return i?ht(s):s}(s,r))).selector=t}return a},l=at.select=function(t,e,i,r){var s,l,h,u,p,c="function"==typeof t&&t,d=!r&&o(t=c.selector||t);if(i=i||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(h=l[0]).type&&9===e.nodeType&&g&&n.relative[l[1].type]){if(!(e=(n.find.ID(h.matches[0].replace(et,it),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(s=K.needsContext.test(t)?0:l.length;s--&&(h=l[s],!n.relative[u=h.type]);)if((p=n.find[u])&&(r=p(h.matches[0].replace(et,it),tt.test(l[0].type)&&mt(e.parentNode)||e))){if(l.splice(s,1),!(t=r.length&&bt(l)))return F.apply(i,r),i;break}}return(c||a(t,d))(r,e,!g,i,!e||tt.test(t)&&mt(e.parentNode)||e),i},i.sortStable=x.split("").sort(O).join("")===x,i.detectDuplicates=!!p,c(),i.sortDetached=ut(function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))}),ut(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||pt("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),i.attributes&&ut(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||pt("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ut(function(t){return null==t.getAttribute("disabled")})||pt(E,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),at}(i);w.find=k,w.expr=k.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=k.uniqueSort,w.text=k.getText,w.isXMLDoc=k.isXML,w.contains=k.contains,w.escapeSelector=k.escape;var T=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&w(t).is(i))break;n.push(t)}return n},O=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},I=w.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function V(t,e,i){return v(e)?w.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?w.grep(t,function(t){return t===e!==i}):"string"!=typeof e?w.grep(t,function(t){return p.call(e,t)>-1!==i}):w.filter(e,t,i)}w.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?w.find.matchesSelector(n,t)?[n]:[]:w.find.matches(t,w.grep(e,function(t){return 1===t.nodeType}))},w.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(w(t).filter(function(){for(e=0;e<n;e++)if(w.contains(r[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)w.find(t,r[e],i);return n>1?w.uniqueSort(i):i},filter:function(t){return this.pushStack(V(this,t||[],!1))},not:function(t){return this.pushStack(V(this,t||[],!0))},is:function(t){return!!V(this,"string"==typeof t&&I.test(t)?w(t):t||[],!1).length}});var F,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||F,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:M.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:o,!0)),A.test(n[1])&&w.isPlainObject(e))for(n in e)v(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=o.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==i.ready?i.ready(t):t(w):w.makeArray(t,this)}).prototype=w.fn,F=w(o);var j=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(w.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,r=this.length,s=[],o="string"!=typeof t&&w(t);if(!I.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&w.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(s.length>1?w.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?p.call(w(t),this[0]):p.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,i){return T(t,"parentNode",i)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,i){return T(t,"nextSibling",i)},prevUntil:function(t,e,i){return T(t,"previousSibling",i)},siblings:function(t){return O((t.parentNode||{}).firstChild,t)},children:function(t){return O(t.firstChild)},contents:function(t){return void 0!==t.contentDocument?t.contentDocument:(D(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},function(t,e){w.fn[t]=function(i,n){var r=w.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=w.filter(n,r)),this.length>1&&(E[t]||w.uniqueSort(r),j.test(t)&&r.reverse()),this.pushStack(r)}});var R=/[^\x20\t\r\n\f]+/g;function B(t){return t}function N(t){throw t}function H(t,e,i,n){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(i):t&&v(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}w.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return w.each(t.match(R)||[],function(t,i){e[i]=!0}),e}(t):w.extend({},t);var e,i,n,r,s=[],o=[],a=-1,l=function(){for(r=r||t.once,n=e=!0;o.length;a=-1)for(i=o.shift();++a<s.length;)!1===s[a].apply(i[0],i[1])&&t.stopOnFalse&&(a=s.length,i=!1);t.memory||(i=!1),e=!1,r&&(s=i?[]:"")},h={add:function(){return s&&(i&&!e&&(a=s.length-1,o.push(i)),function e(i){w.each(i,function(i,n){v(n)?t.unique&&h.has(n)||s.push(n):n&&n.length&&"string"!==P(n)&&e(n)})}(arguments),i&&!e&&l()),this},remove:function(){return w.each(arguments,function(t,e){for(var i;(i=w.inArray(e,s,i))>-1;)s.splice(i,1),i<=a&&a--}),this},has:function(t){return t?w.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=i="",this},disabled:function(){return!s},lock:function(){return r=o=[],i||e||(s=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=[t,(i=i||[]).slice?i.slice():i],o.push(i),e||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},w.extend({Deferred:function(t){var e=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return w.Deferred(function(i){w.each(e,function(e,n){var r=v(t[n[4]])&&t[n[4]];s[n[1]](function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){var s=0;function o(t,e,n,r){return function(){var a=this,l=arguments,h=function(){var i,h;if(!(t<s)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");h=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(h)?r?h.call(i,o(s,e,B,r),o(s,e,N,r)):(s++,h.call(i,o(s,e,B,r),o(s,e,N,r),o(s,e,B,e.notifyWith))):(n!==B&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},u=r?h:function(){try{h()}catch(i){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(i,u.stackTrace),t+1>=s&&(n!==N&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?u():(w.Deferred.getStackHook&&(u.stackTrace=w.Deferred.getStackHook()),i.setTimeout(u))}}return w.Deferred(function(i){e[0][3].add(o(0,i,v(r)?r:B,i.notifyWith)),e[1][3].add(o(0,i,v(t)?t:B)),e[2][3].add(o(0,i,v(n)?n:N))}).promise()},promise:function(t){return null!=t?w.extend(t,r):r}},s={};return w.each(e,function(t,i){var o=i[2],a=i[5];r[i[1]]=o.add,a&&o.add(function(){n=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=o.fireWith}),r.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,i=e,n=Array(i),r=l.call(arguments),s=w.Deferred(),o=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?l.call(arguments):i,--e||s.resolveWith(n,r)}};if(e<=1&&(H(t,s.done(o(i)).resolve,s.reject,!e),"pending"===s.state()||v(r[i]&&r[i].then)))return s.then();for(;i--;)H(r[i],o(i),s.reject);return s.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&W.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},w.readyException=function(t){i.setTimeout(function(){throw t})};var X=w.Deferred();function z(){o.removeEventListener("DOMContentLoaded",z),i.removeEventListener("load",z),w.ready()}w.fn.ready=function(t){return X.then(t).catch(function(t){w.readyException(t)}),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==t&&--w.readyWait>0||X.resolveWith(o,[w]))}}),w.ready.then=X.then,"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?i.setTimeout(w.ready):(o.addEventListener("DOMContentLoaded",z),i.addEventListener("load",z));var Y=function(t,e,i,n,r,s,o){var a=0,l=t.length,h=null==i;if("object"===P(i))for(a in r=!0,i)Y(t,e,a,i[a],!0,s,o);else if(void 0!==n&&(r=!0,v(n)||(o=!0),h&&(o?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(w(t),i)})),e))for(;a<l;a++)e(t[a],i,o?n:n.call(t[a],a,e(t[a],i)));return r?t:h?e.call(t):l?e(t[0],i):s},U=/^-ms-/,G=/-([a-z])/g;function K(t,e){return e.toUpperCase()}function q(t){return t.replace(U,"ms-").replace(G,K)}var Z=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function $(){this.expando=w.expando+$.uid++}$.uid=1,$.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Z(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[q(e)]=i;else for(n in e)r[q(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][q(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(q):(e=q(e))in n?[e]:e.match(R)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||w.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var J=new $,Q=new $,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function it(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(i)}catch(t){}Q.set(t,e,i)}else i=void 0;return i}w.extend({hasData:function(t){return Q.hasData(t)||J.hasData(t)},data:function(t,e,i){return Q.access(t,e,i)},removeData:function(t,e){Q.remove(t,e)},_data:function(t,e,i){return J.access(t,e,i)},_removeData:function(t,e){J.remove(t,e)}}),w.fn.extend({data:function(t,e){var i,n,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=Q.get(s),1===s.nodeType&&!J.get(s,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&0===(n=o[i].name).indexOf("data-")&&(n=q(n.slice(5)),it(s,n,r[n]));J.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Q.set(this,t)}):Y(this,function(e){var i;if(s&&void 0===e)return void 0!==(i=Q.get(s,t))?i:void 0!==(i=it(s,t))?i:void 0;this.each(function(){Q.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Q.remove(this,t)})}}),w.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=J.get(t,e),i&&(!n||Array.isArray(i)?n=J.access(t,e,w.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=w.queue(t,e),n=i.length,r=i.shift(),s=w._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete s.stop,r.call(t,function(){w.dequeue(t,e)},s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return J.get(t,i)||J.access(t,i,{empty:w.Callbacks("once memory").add(function(){J.remove(t,[e+"queue",i])})})}}),w.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?w.queue(this[0],t):void 0===e?this:this.each(function(){var i=w.queue(this,t,e);w._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&w.dequeue(this,t)})},dequeue:function(t){return this.each(function(){w.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=w.Deferred(),s=this,o=this.length,a=function(){--n||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(i=J.get(s[o],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(e)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),st=["Top","Right","Bottom","Left"],ot=o.documentElement,at=function(t){return w.contains(t.ownerDocument,t)},lt={composed:!0};ot.getRootNode&&(at=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var ht=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===w.css(t,"display")},ut=function(t,e,i,n){var r,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];for(s in r=i.apply(t,n||[]),e)t.style[s]=o[s];return r};function pt(t,e,i,n){var r,s,o=20,a=n?function(){return n.cur()}:function(){return w.css(t,e,"")},l=a(),h=i&&i[3]||(w.cssNumber[e]?"":"px"),u=t.nodeType&&(w.cssNumber[e]||"px"!==h&&+l)&&rt.exec(w.css(t,e));if(u&&u[3]!==h){for(l/=2,h=h||u[3],u=+l||1;o--;)w.style(t,e,u+h),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),u/=s;u*=2,w.style(t,e,u+h),i=i||[]}return i&&(u=+u||+l||0,r=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=h,n.start=u,n.end=r)),r}var ct={};function dt(t){var e,i=t.ownerDocument,n=t.nodeName,r=ct[n];return r||(e=i.body.appendChild(i.createElement(n)),r=w.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),ct[n]=r,r)}function ft(t,e){for(var i,n,r=[],s=0,o=t.length;s<o;s++)(n=t[s]).style&&(i=n.style.display,e?("none"===i&&(r[s]=J.get(n,"display")||null,r[s]||(n.style.display="")),""===n.style.display&&ht(n)&&(r[s]=dt(n))):"none"!==i&&(r[s]="none",J.set(n,"display",i)));for(s=0;s<o;s++)null!=r[s]&&(t[s].style.display=r[s]);return t}w.fn.extend({show:function(){return ft(this,!0)},hide:function(){return ft(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ht(this)?w(this).show():w(this).hide()})}});var gt=/^(?:checkbox|radio)$/i,yt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i,vt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function bt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?w.merge([t],i):i}function xt(t,e){for(var i=0,n=t.length;i<n;i++)J.set(t[i],"globalEval",!e||J.get(e[i],"globalEval"))}vt.optgroup=vt.option,vt.tbody=vt.tfoot=vt.colgroup=vt.caption=vt.thead,vt.th=vt.td;var _t,Pt,wt=/<|&#?\w+;/;function Ct(t,e,i,n,r){for(var s,o,a,l,h,u,p=e.createDocumentFragment(),c=[],d=0,f=t.length;d<f;d++)if((s=t[d])||0===s)if("object"===P(s))w.merge(c,s.nodeType?[s]:s);else if(wt.test(s)){for(o=o||p.appendChild(e.createElement("div")),a=(yt.exec(s)||["",""])[1].toLowerCase(),l=vt[a]||vt._default,o.innerHTML=l[1]+w.htmlPrefilter(s)+l[2],u=l[0];u--;)o=o.lastChild;w.merge(c,o.childNodes),(o=p.firstChild).textContent=""}else c.push(e.createTextNode(s));for(p.textContent="",d=0;s=c[d++];)if(n&&w.inArray(s,n)>-1)r&&r.push(s);else if(h=at(s),o=bt(p.appendChild(s),"script"),h&&xt(o),i)for(u=0;s=o[u++];)mt.test(s.type||"")&&i.push(s);return p}_t=o.createDocumentFragment().appendChild(o.createElement("div")),(Pt=o.createElement("input")).setAttribute("type","radio"),Pt.setAttribute("checked","checked"),Pt.setAttribute("name","t"),_t.appendChild(Pt),m.checkClone=_t.cloneNode(!0).cloneNode(!0).lastChild.checked,_t.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!_t.cloneNode(!0).lastChild.defaultValue;var St=/^key/,kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tt=/^([^.]*)(?:\.(.+)|)/;function Ot(){return!0}function It(){return!1}function Dt(t,e){return t===function(){try{return o.activeElement}catch(t){}}()==("focus"===e)}function At(t,e,i,n,r,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)At(t,a,i,n,e[a],s);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=It;else if(!r)return t;return 1===s&&(o=r,(r=function(t){return w().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=w.guid++)),t.each(function(){w.event.add(this,e,r,n,i)})}function Vt(t,e,i){i?(J.set(t,e,!1),w.event.add(t,e,{namespace:!1,handler:function(t){var n,r,s=J.get(this,e);if(1&t.isTrigger&&this[e]){if(s.length)(w.event.special[e]||{}).delegateType&&t.stopPropagation();else if(s=l.call(arguments),J.set(this,e,s),n=i(this,e),this[e](),s!==(r=J.get(this,e))||n?J.set(this,e,!1):r={},s!==r)return t.stopImmediatePropagation(),t.preventDefault(),r.value}else s.length&&(J.set(this,e,{value:w.event.trigger(w.extend(s[0],w.Event.prototype),s.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===J.get(t,e)&&w.event.add(t,e,Ot)}w.event={global:{},add:function(t,e,i,n,r){var s,o,a,l,h,u,p,c,d,f,g,y=J.get(t);if(y)for(i.handler&&(i=(s=i).handler,r=s.selector),r&&w.find.matchesSelector(ot,r),i.guid||(i.guid=w.guid++),(l=y.events)||(l=y.events={}),(o=y.handle)||(o=y.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(R)||[""]).length;h--;)d=g=(a=Tt.exec(e[h])||[])[1],f=(a[2]||"").split(".").sort(),d&&(p=w.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,p=w.event.special[d]||{},u=w.extend({type:d,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:f.join(".")},s),(c=l[d])||((c=l[d]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(t,n,f,o)||t.addEventListener&&t.addEventListener(d,o)),p.add&&(p.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),r?c.splice(c.delegateCount++,0,u):c.push(u),w.event.global[d]=!0)},remove:function(t,e,i,n,r){var s,o,a,l,h,u,p,c,d,f,g,y=J.hasData(t)&&J.get(t);if(y&&(l=y.events)){for(h=(e=(e||"").match(R)||[""]).length;h--;)if(d=g=(a=Tt.exec(e[h])||[])[1],f=(a[2]||"").split(".").sort(),d){for(p=w.event.special[d]||{},c=l[d=(n?p.delegateType:p.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=c.length;s--;)u=c[s],!r&&g!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(c.splice(s,1),u.selector&&c.delegateCount--,p.remove&&p.remove.call(t,u));o&&!c.length&&(p.teardown&&!1!==p.teardown.call(t,f,y.handle)||w.removeEvent(t,d,y.handle),delete l[d])}else for(d in l)w.event.remove(t,d+e[h],i,n,!0);w.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,s,o,a=w.event.fix(t),l=new Array(arguments.length),h=(J.get(this,"events")||{})[a.type]||[],u=w.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(o=w.event.handlers.call(this,a,h),e=0;(r=o[e++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,i=0;(s=r.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==s.namespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,void 0!==(n=((w.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,l))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,r,s,o,a=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],o={},i=0;i<l;i++)void 0===o[r=(n=e[i]).selector+" "]&&(o[r]=n.needsContext?w(r,this).index(h)>-1:w.find(r,this,null,[h]).length),o[r]&&s.push(n);s.length&&a.push({elem:h,handlers:s})}return h=this,l<e.length&&a.push({elem:h,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return gt.test(e.type)&&e.click&&D(e,"input")&&Vt(e,"click",Ot),!1},trigger:function(t){var e=this||t;return gt.test(e.type)&&e.click&&D(e,"input")&&Vt(e,"click"),!0},_default:function(t){var e=t.target;return gt.test(e.type)&&e.click&&D(e,"input")&&J.get(e,"click")||D(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},w.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ot:It,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:It,isPropagationStopped:It,isImmediatePropagationStopped:It,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ot,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ot,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ot,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&St.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&kt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(t,e){w.event.special[t]={setup:function(){return Vt(this,t,Dt),!1},trigger:function(){return Vt(this,t),!0},delegateType:e}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){w.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,r=t.handleObj;return n&&(n===this||w.contains(this,n))||(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}}),w.fn.extend({on:function(t,e,i,n){return At(this,t,e,i,n)},one:function(t,e,i,n){return At(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,w(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=It),this.each(function(){w.event.remove(this,t,i,e)})}});var Ft=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Mt=/<script|<style|<link/i,jt=/checked\s*(?:[^=]|=\s*.checked.)/i,Et=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Lt(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function Rt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var i,n,r,s,o,a,l,h;if(1===e.nodeType){if(J.hasData(t)&&(s=J.access(t),o=J.set(e,s),h=s.events))for(r in delete o.handle,o.events={},h)for(i=0,n=h[r].length;i<n;i++)w.event.add(e,r,h[r][i]);Q.hasData(t)&&(a=Q.access(t),l=w.extend({},a),Q.set(e,l))}}function Ht(t,e,i,n){e=h.apply([],e);var r,s,o,a,l,u,p=0,c=t.length,d=c-1,f=e[0],g=v(f);if(g||c>1&&"string"==typeof f&&!m.checkClone&&jt.test(f))return t.each(function(r){var s=t.eq(r);g&&(e[0]=f.call(this,r,s.html())),Ht(s,e,i,n)});if(c&&(s=(r=Ct(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=s),s||n)){for(a=(o=w.map(bt(r,"script"),Rt)).length;p<c;p++)l=r,p!==d&&(l=w.clone(l,!0,!0),a&&w.merge(o,bt(l,"script"))),i.call(t[p],l,p);if(a)for(u=o[o.length-1].ownerDocument,w.map(o,Bt),p=0;p<a;p++)l=o[p],mt.test(l.type||"")&&!J.access(l,"globalEval")&&w.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&!l.noModule&&w._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):_(l.textContent.replace(Et,""),l,u))}return t}function Wt(t,e,i){for(var n,r=e?w.filter(e,t):t,s=0;null!=(n=r[s]);s++)i||1!==n.nodeType||w.cleanData(bt(n)),n.parentNode&&(i&&at(n)&&xt(bt(n,"script")),n.parentNode.removeChild(n));return t}w.extend({htmlPrefilter:function(t){return t.replace(Ft,"<$1></$2>")},clone:function(t,e,i){var n,r,s,o,a,l,h,u=t.cloneNode(!0),p=at(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(o=bt(u),n=0,r=(s=bt(t)).length;n<r;n++)a=s[n],l=o[n],h=void 0,"input"===(h=l.nodeName.toLowerCase())&&gt.test(a.type)?l.checked=a.checked:"input"!==h&&"textarea"!==h||(l.defaultValue=a.defaultValue);if(e)if(i)for(s=s||bt(t),o=o||bt(u),n=0,r=s.length;n<r;n++)Nt(s[n],o[n]);else Nt(t,u);return(o=bt(u,"script")).length>0&&xt(o,!p&&bt(t,"script")),u},cleanData:function(t){for(var e,i,n,r=w.event.special,s=0;void 0!==(i=t[s]);s++)if(Z(i)){if(e=i[J.expando]){if(e.events)for(n in e.events)r[n]?w.event.remove(i,n):w.removeEvent(i,n,e.handle);i[J.expando]=void 0}i[Q.expando]&&(i[Q.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Wt(this,t,!0)},remove:function(t){return Wt(this,t)},text:function(t){return Y(this,function(t){return void 0===t?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Ht(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Lt(this,t).appendChild(t)})},prepend:function(){return Ht(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Lt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return w.clone(this,t,e)})},html:function(t){return Y(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Mt.test(t)&&!vt[(yt.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(w.cleanData(bt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Ht(this,arguments,function(e){var i=this.parentNode;w.inArray(this,t)<0&&(w.cleanData(bt(this)),i&&i.replaceChild(e,this))},t)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){w.fn[t]=function(t){for(var i,n=[],r=w(t),s=r.length-1,o=0;o<=s;o++)i=o===s?this:this.clone(!0),w(r[o])[e](i),u.apply(n,i.get());return this.pushStack(n)}});var Xt=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),zt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Yt=new RegExp(st.join("|"),"i");function Ut(t,e,i){var n,r,s,o,a=t.style;return(i=i||zt(t))&&(""!==(o=i.getPropertyValue(e)||i[e])||at(t)||(o=w.style(t,e)),!m.pixelBoxStyles()&&Xt.test(o)&&Yt.test(e)&&(n=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=r,a.maxWidth=s)),void 0!==o?o+"":o}function Gt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){h.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(h).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",a=36===e(t.right),r=36===e(t.width),u.style.position="absolute",s=12===e(u.offsetWidth/3),ot.removeChild(h),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,s,a,l,h=o.createElement("div"),u=o.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,w.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s}}))}();var Kt=["Webkit","Moz","ms"],qt=o.createElement("div").style,Zt={};function $t(t){var e=w.cssProps[t]||Zt[t];return e||(t in qt?t:Zt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Kt.length;i--;)if((t=Kt[i]+e)in qt)return t}(t)||t)}var Jt=/^(none|table(?!-c[ea]).+)/,Qt=/^--/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"};function ie(t,e,i){var n=rt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function ne(t,e,i,n,r,s){var o="width"===e?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;o<4;o+=2)"margin"===i&&(l+=w.css(t,i+st[o],!0,r)),n?("content"===i&&(l-=w.css(t,"padding"+st[o],!0,r)),"margin"!==i&&(l-=w.css(t,"border"+st[o]+"Width",!0,r))):(l+=w.css(t,"padding"+st[o],!0,r),"padding"!==i?l+=w.css(t,"border"+st[o]+"Width",!0,r):a+=w.css(t,"border"+st[o]+"Width",!0,r));return!n&&s>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))||0),l}function re(t,e,i){var n=zt(t),r=(!m.boxSizingReliable()||i)&&"border-box"===w.css(t,"boxSizing",!1,n),s=r,o=Ut(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Xt.test(o)){if(!i)return o;o="auto"}return(!m.boxSizingReliable()&&r||"auto"===o||!parseFloat(o)&&"inline"===w.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===w.css(t,"boxSizing",!1,n),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+ne(t,e,i||(r?"border":"content"),s,n,o)+"px"}function se(t,e,i,n,r){return new se.prototype.init(t,e,i,n,r)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ut(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=q(e),l=Qt.test(e),h=t.style;if(l||(e=$t(a)),o=w.cssHooks[e]||w.cssHooks[a],void 0===i)return o&&"get"in o&&void 0!==(r=o.get(t,!1,n))?r:h[e];"string"===(s=typeof i)&&(r=rt.exec(i))&&r[1]&&(i=pt(t,e,r),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=r&&r[3]||(w.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,n))||(l?h.setProperty(e,i):h[e]=i))}},css:function(t,e,i,n){var r,s,o,a=q(e);return Qt.test(e)||(e=$t(a)),(o=w.cssHooks[e]||w.cssHooks[a])&&"get"in o&&(r=o.get(t,!0,i)),void 0===r&&(r=Ut(t,e,n)),"normal"===r&&e in ee&&(r=ee[e]),""===i||i?(s=parseFloat(r),!0===i||isFinite(s)?s||0:r):r}}),w.each(["height","width"],function(t,e){w.cssHooks[e]={get:function(t,i,n){if(i)return!Jt.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?re(t,e,n):ut(t,te,function(){return re(t,e,n)})},set:function(t,i,n){var r,s=zt(t),o=!m.scrollboxSize()&&"absolute"===s.position,a=(o||n)&&"border-box"===w.css(t,"boxSizing",!1,s),l=n?ne(t,e,n,a,s):0;return a&&o&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-ne(t,e,"border",!1,s)-.5)),l&&(r=rt.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=w.css(t,e)),ie(0,i,l)}}}),w.cssHooks.marginLeft=Gt(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-ut(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(t,e){w.cssHooks[t+e]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+st[n]+e]=s[n]||s[n-2]||s[0];return r}},"margin"!==t&&(w.cssHooks[t+e].set=ie)}),w.fn.extend({css:function(t,e){return Y(this,function(t,e,i){var n,r,s={},o=0;if(Array.isArray(e)){for(n=zt(t),r=e.length;o<r;o++)s[e[o]]=w.css(t,e[o],!1,n);return s}return void 0!==i?w.style(t,e,i):w.css(t,e)},t,e,arguments.length>1)}}),w.Tween=se,se.prototype={constructor:se,init:function(t,e,i,n,r,s){this.elem=t,this.prop=i,this.easing=r||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(w.cssNumber[i]?"":"px")},cur:function(){var t=se.propHooks[this.prop];return t&&t.get?t.get(this):se.propHooks._default.get(this)},run:function(t){var e,i=se.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):se.propHooks._default.set(this),this}},se.prototype.init.prototype=se.prototype,se.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=w.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[$t(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}},se.propHooks.scrollTop=se.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=se.prototype.init,w.fx.step={};var oe,ae,le=/^(?:toggle|show|hide)$/,he=/queueHooks$/;function ue(){ae&&(!1===o.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ue):i.setTimeout(ue,w.fx.interval),w.fx.tick())}function pe(){return i.setTimeout(function(){oe=void 0}),oe=Date.now()}function ce(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=st[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function de(t,e,i){for(var n,r=(fe.tweeners[e]||[]).concat(fe.tweeners["*"]),s=0,o=r.length;s<o;s++)if(n=r[s].call(i,e,t))return n}function fe(t,e,i){var n,r,s=0,o=fe.prefilters.length,a=w.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=oe||pe(),i=Math.max(0,h.startTime+h.duration-e),n=1-(i/h.duration||0),s=0,o=h.tweens.length;s<o;s++)h.tweens[s].run(n);return a.notifyWith(t,[h,n,i]),n<1&&o?i:(o||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},i),originalProperties:e,originalOptions:i,startTime:oe||pe(),duration:i.duration,tweens:[],createTween:function(e,i){var n=w.Tween(t,h.opts,e,i,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(n),n},stop:function(e){var i=0,n=e?h.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)h.tweens[i].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),u=h.props;for(!function(t,e){var i,n,r,s,o;for(i in t)if(r=e[n=q(i)],s=t[i],Array.isArray(s)&&(r=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),(o=w.cssHooks[n])&&"expand"in o)for(i in s=o.expand(s),delete t[n],s)i in t||(t[i]=s[i],e[i]=r);else e[n]=r}(u,h.opts.specialEasing);s<o;s++)if(n=fe.prefilters[s].call(h,t,u,h.opts))return v(n.stop)&&(w._queueHooks(h.elem,h.opts.queue).stop=n.stop.bind(n)),n;return w.map(u,de,h),v(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),w.fx.timer(w.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h}w.Animation=w.extend(fe,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return pt(i.elem,t,rt.exec(e),i),i}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(R);for(var i,n=0,r=t.length;n<r;n++)i=t[n],fe.tweeners[i]=fe.tweeners[i]||[],fe.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,r,s,o,a,l,h,u,p="width"in e||"height"in e,c=this,d={},f=t.style,g=t.nodeType&&ht(t),y=J.get(t,"fxshow");for(n in i.queue||(null==(o=w._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,c.always(function(){c.always(function(){o.unqueued--,w.queue(t,"fx").length||o.empty.fire()})})),e)if(r=e[n],le.test(r)){if(delete e[n],s=s||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!y||void 0===y[n])continue;g=!0}d[n]=y&&y[n]||w.style(t,n)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(d))for(n in p&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(h=y&&y.display)&&(h=J.get(t,"display")),"none"===(u=w.css(t,"display"))&&(h?u=h:(ft([t],!0),h=t.style.display||h,u=w.css(t,"display"),ft([t]))),("inline"===u||"inline-block"===u&&null!=h)&&"none"===w.css(t,"float")&&(l||(c.done(function(){f.display=h}),null==h&&(u=f.display,h="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,d)l||(y?"hidden"in y&&(g=y.hidden):y=J.access(t,"fxshow",{display:h}),s&&(y.hidden=!g),g&&ft([t],!0),c.done(function(){for(n in g||ft([t]),J.remove(t,"fxshow"),d)w.style(t,n,d[n])})),l=de(g?y[n]:0,n,c),n in y||(y[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?fe.prefilters.unshift(t):fe.prefilters.push(t)}}),w.speed=function(t,e,i){var n=t&&"object"==typeof t?w.extend({},t):{complete:i||!i&&e||v(t)&&t,duration:t,easing:i&&e||e&&!v(e)&&e};return w.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in w.fx.speeds?n.duration=w.fx.speeds[n.duration]:n.duration=w.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&w.dequeue(this,n.queue)},n},w.fn.extend({fadeTo:function(t,e,i,n){return this.filter(ht).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=w.isEmptyObject(t),s=w.speed(e,i,n),o=function(){var e=fe(this,w.extend({},t),s);(r||J.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",s=w.timers,o=J.get(this);if(r)o[r]&&o[r].stop&&n(o[r]);else for(r in o)o[r]&&o[r].stop&&he.test(r)&&n(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(i),e=!1,s.splice(r,1));!e&&i||w.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=J.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],s=w.timers,o=n?n.length:0;for(i.finish=!0,w.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),w.each(["toggle","show","hide"],function(t,e){var i=w.fn[e];w.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(ce(e,!0),t,n,r)}}),w.each({slideDown:ce("show"),slideUp:ce("hide"),slideToggle:ce("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){w.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),w.timers=[],w.fx.tick=function(){var t,e=0,i=w.timers;for(oe=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||w.fx.stop(),oe=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ae||(ae=!0,ue())},w.fx.stop=function(){ae=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,e){return t=w.fx&&w.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}})},function(){var t=o.createElement("input"),e=o.createElement("select").appendChild(o.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=o.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var ge,ye=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return Y(this,w.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){w.removeAttr(this,t)})}}),w.extend({attr:function(t,e,i){var n,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?w.prop(t,e,i):(1===s&&w.isXMLDoc(t)||(r=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?ge:void 0)),void 0!==i?null===i?void w.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=w.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&D(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(R);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),ge={set:function(t,e,i){return!1===e?w.removeAttr(t,i):t.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),function(t,e){var i=ye[e]||w.find.attr;ye[e]=function(t,e,n){var r,s,o=e.toLowerCase();return n||(s=ye[o],ye[o]=r,r=null!=i(t,e,n)?o:null,ye[o]=s),r}});var me=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;function be(t){return(t.match(R)||[]).join(" ")}function xe(t){return t.getAttribute&&t.getAttribute("class")||""}function _e(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(R)||[]}w.fn.extend({prop:function(t,e){return Y(this,w.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[w.propFix[t]||t]})}}),w.extend({prop:function(t,e,i){var n,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&w.isXMLDoc(t)||(e=w.propFix[e]||e,r=w.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):me.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(w.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(t){var e,i,n,r,s,o,a,l=0;if(v(t))return this.each(function(e){w(this).addClass(t.call(this,e,xe(this)))});if((e=_e(t)).length)for(;i=this[l++];)if(r=xe(i),n=1===i.nodeType&&" "+be(r)+" "){for(o=0;s=e[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");r!==(a=be(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,r,s,o,a,l=0;if(v(t))return this.each(function(e){w(this).removeClass(t.call(this,e,xe(this)))});if(!arguments.length)return this.attr("class","");if((e=_e(t)).length)for(;i=this[l++];)if(r=xe(i),n=1===i.nodeType&&" "+be(r)+" "){for(o=0;s=e[o++];)for(;n.indexOf(" "+s+" ")>-1;)n=n.replace(" "+s+" "," ");r!==(a=be(n))&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):v(t)?this.each(function(i){w(this).toggleClass(t.call(this,i,xe(this),e),e)}):this.each(function(){var e,r,s,o;if(n)for(r=0,s=w(this),o=_e(t);e=o[r++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else void 0!==t&&"boolean"!==i||((e=xe(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+be(xe(i))+" ").indexOf(e)>-1)return!0;return!1}});var Pe=/\r/g;w.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=v(t),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,w(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=w.map(r,function(t){return null==t?"":t+""})),(e=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(Pe,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:be(w.text(t))}},select:{get:function(t){var e,i,n,r=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],l=o?s+1:r.length;for(n=s<0?l:o?s:0;n<l;n++)if(((i=r[n]).selected||n===s)&&!i.disabled&&(!i.parentNode.disabled||!D(i.parentNode,"optgroup"))){if(e=w(i).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var i,n,r=t.options,s=w.makeArray(e),o=r.length;o--;)((n=r[o]).selected=w.inArray(w.valHooks.option.get(n),s)>-1)&&(i=!0);return i||(t.selectedIndex=-1),s}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=w.inArray(w(t).val(),e)>-1}},m.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),m.focusin="onfocusin"in i;var we=/^(?:focusinfocus|focusoutblur)$/,Ce=function(t){t.stopPropagation()};w.extend(w.event,{trigger:function(t,e,n,r){var s,a,l,h,u,p,c,d,g=[n||o],y=f.call(t,"type")?t.type:t,m=f.call(t,"namespace")?t.namespace.split("."):[];if(a=d=l=n=n||o,3!==n.nodeType&&8!==n.nodeType&&!we.test(y+w.event.triggered)&&(y.indexOf(".")>-1&&(m=y.split("."),y=m.shift(),m.sort()),u=y.indexOf(":")<0&&"on"+y,(t=t[w.expando]?t:new w.Event(y,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:w.makeArray(e,[t]),c=w.event.special[y]||{},r||!c.trigger||!1!==c.trigger.apply(n,e))){if(!r&&!c.noBubble&&!b(n)){for(h=c.delegateType||y,we.test(h+y)||(a=a.parentNode);a;a=a.parentNode)g.push(a),l=a;l===(n.ownerDocument||o)&&g.push(l.defaultView||l.parentWindow||i)}for(s=0;(a=g[s++])&&!t.isPropagationStopped();)d=a,t.type=s>1?h:c.bindType||y,(p=(J.get(a,"events")||{})[t.type]&&J.get(a,"handle"))&&p.apply(a,e),(p=u&&a[u])&&p.apply&&Z(a)&&(t.result=p.apply(a,e),!1===t.result&&t.preventDefault());return t.type=y,r||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(g.pop(),e)||!Z(n)||u&&v(n[y])&&!b(n)&&((l=n[u])&&(n[u]=null),w.event.triggered=y,t.isPropagationStopped()&&d.addEventListener(y,Ce),n[y](),t.isPropagationStopped()&&d.removeEventListener(y,Ce),w.event.triggered=void 0,l&&(n[u]=l)),t.result}},simulate:function(t,e,i){var n=w.extend(new w.Event,i,{type:t,isSimulated:!0});w.event.trigger(n,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each(function(){w.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return w.event.trigger(t,e,i,!0)}}),m.focusin||w.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){w.event.simulate(e,t.target,w.event.fix(t))};w.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=J.access(n,e);r||n.addEventListener(t,i,!0),J.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=J.access(n,e)-1;r?J.access(n,e,r):(n.removeEventListener(t,i,!0),J.remove(n,e))}}});var Se=i.location,ke=Date.now(),Te=/\?/;w.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),e};var Oe=/\[\]$/,Ie=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function Ve(t,e,i,n){var r;if(Array.isArray(e))w.each(e,function(e,r){i||Oe.test(t)?n(t,r):Ve(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)});else if(i||"object"!==P(e))n(t,e);else for(r in e)Ve(t+"["+r+"]",e[r],i,n)}w.param=function(t,e){var i,n=[],r=function(t,e){var i=v(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,function(){r(this.name,this.value)});else for(i in t)Ve(i,t[i],e,r);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Ae.test(this.nodeName)&&!De.test(t)&&(this.checked||!gt.test(t))}).map(function(t,e){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}}):{name:e.name,value:i.replace(Ie,"\r\n")}}).get()}});var Fe=/%20/g,Me=/#.*$/,je=/([?&])_=[^&]*/,Ee=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,Re=/^\/\//,Be={},Ne={},He="*/".concat("*"),We=o.createElement("a");function Xe(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,s=e.toLowerCase().match(R)||[];if(v(i))for(;n=s[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function ze(t,e,i,n){var r={},s=t===Ne;function o(a){var l;return r[a]=!0,w.each(t[a]||[],function(t,a){var h=a(e,i,n);return"string"!=typeof h||s||r[h]?s?!(l=h):void 0:(e.dataTypes.unshift(h),o(h),!1)}),l}return o(e.dataTypes[0])||!r["*"]&&o("*")}function Ye(t,e){var i,n,r=w.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&w.extend(!0,t,n),t}We.href=Se.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":He,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ye(Ye(t,w.ajaxSettings),e):Ye(w.ajaxSettings,t)},ajaxPrefilter:Xe(Be),ajaxTransport:Xe(Ne),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,s,a,l,h,u,p,c,d,f=w.ajaxSetup({},e),g=f.context||f,y=f.context&&(g.nodeType||g.jquery)?w(g):w.event,m=w.Deferred(),v=w.Callbacks("once memory"),b=f.statusCode||{},x={},_={},P="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=Ee.exec(s);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?s:null},setRequestHeader:function(t,e){return null==u&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)C.always(t[C.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||P;return n&&n.abort(e),S(0,e),this}};if(m.promise(C),f.url=((t||f.url||Se.href)+"").replace(Re,Se.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(R)||[""],null==f.crossDomain){h=o.createElement("a");try{h.href=f.url,h.href=h.href,f.crossDomain=We.protocol+"//"+We.host!=h.protocol+"//"+h.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=w.param(f.data,f.traditional)),ze(Be,f,e,C),u)return C;for(c in(p=w.event&&f.global)&&0==w.active++&&w.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Le.test(f.type),r=f.url.replace(Me,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Fe,"+")):(d=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Te.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(je,"$1"),d=(Te.test(r)?"&":"?")+"_="+ke+++d),f.url=r+d),f.ifModified&&(w.lastModified[r]&&C.setRequestHeader("If-Modified-Since",w.lastModified[r]),w.etag[r]&&C.setRequestHeader("If-None-Match",w.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+He+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(g,C,f)||u))return C.abort();if(P="abort",v.add(f.complete),C.done(f.success),C.fail(f.error),n=ze(Ne,f,e,C)){if(C.readyState=1,p&&y.trigger("ajaxSend",[C,f]),u)return C;f.async&&f.timeout>0&&(l=i.setTimeout(function(){C.abort("timeout")},f.timeout));try{u=!1,n.send(x,S)}catch(t){if(u)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,o,a){var h,c,d,x,_,P=e;u||(u=!0,l&&i.clearTimeout(l),n=void 0,s=a||"",C.readyState=t>0?4:0,h=t>=200&&t<300||304===t,o&&(x=function(t,e,i){for(var n,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),i[s]}(f,C,o)),x=function(t,e,i,n){var r,s,o,a,l,h={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(s=u.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=h[l+" "+s]||h["* "+s]))for(r in h)if((a=r.split(" "))[1]===s&&(o=h[l+" "+a[0]]||h["* "+a[0]])){!0===o?o=h[r]:!0!==h[r]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(f,x,C,h),h?(f.ifModified&&((_=C.getResponseHeader("Last-Modified"))&&(w.lastModified[r]=_),(_=C.getResponseHeader("etag"))&&(w.etag[r]=_)),204===t||"HEAD"===f.type?P="nocontent":304===t?P="notmodified":(P=x.state,c=x.data,h=!(d=x.error))):(d=P,!t&&P||(P="error",t<0&&(t=0))),C.status=t,C.statusText=(e||P)+"",h?m.resolveWith(g,[c,P,C]):m.rejectWith(g,[C,P,d]),C.statusCode(b),b=void 0,p&&y.trigger(h?"ajaxSuccess":"ajaxError",[C,f,h?c:d]),v.fireWith(g,[C,P]),p&&(y.trigger("ajaxComplete",[C,f]),--w.active||w.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,i){return w.get(t,e,i,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],function(t,e){w[e]=function(t,i,n,r){return v(i)&&(r=r||n,n=i,i=void 0),w.ajax(w.extend({url:t,type:e,dataType:r,data:i,success:n},w.isPlainObject(t)&&t))}}),w._evalUrl=function(t,e){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e)}})},w.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return v(t)?this.each(function(e){w(this).wrapInner(t.call(this,e))}):this.each(function(){var e=w(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=v(t);return this.each(function(i){w(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Ge=w.ajaxSettings.xhr();m.cors=!!Ge&&"withCredentials"in Ge,m.ajax=Ge=!!Ge,w.ajaxTransport(function(t){var e,n;if(m.cors||Ge&&!t.crossDomain)return{send:function(r,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Ue[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),w.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),w.ajaxTransport("script",function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=w("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),o.head.appendChild(e[0])},abort:function(){i&&i()}}});var Ke,qe=[],Ze=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=qe.pop()||w.expando+"_"+ke++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",function(t,e,n){var r,s,o,a=!1!==t.jsonp&&(Ze.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ze,"$1"+r):!1!==t.jsonp&&(t.url+=(Te.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||w.error(r+" was not called"),o[0]},t.dataTypes[0]="json",s=i[r],i[r]=function(){o=arguments},n.always(function(){void 0===s?w(i).removeProp(r):i[r]=s,t[r]&&(t.jsonpCallback=e.jsonpCallback,qe.push(r)),o&&v(s)&&s(o[0]),o=s=void 0}),"script"}),m.createHTMLDocument=((Ke=o.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ke.childNodes.length),w.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(m.createHTMLDocument?((n=(e=o.implementation.createHTMLDocument("")).createElement("base")).href=o.location.href,e.head.appendChild(n)):e=o),s=!i&&[],(r=A.exec(t))?[e.createElement(r[1])]:(r=Ct([t],e,s),s&&s.length&&w(s).remove(),w.merge([],r.childNodes)));var n,r,s},w.fn.load=function(t,e,i){var n,r,s,o=this,a=t.indexOf(" ");return a>-1&&(n=be(t.slice(a)),t=t.slice(0,a)),v(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&w.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(n?w("<div>").append(w.parseHTML(t)).find(n):t)}).always(i&&function(t,e){o.each(function(){i.apply(this,s||[t.responseText,e,t])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){w.fn[e]=function(t){return this.on(e,t)}}),w.expr.pseudos.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},w.offset={setOffset:function(t,e,i){var n,r,s,o,a,l,h=w.css(t,"position"),u=w(t),p={};"static"===h&&(t.style.position="relative"),a=u.offset(),s=w.css(t,"top"),l=w.css(t,"left"),("absolute"===h||"fixed"===h)&&(s+l).indexOf("auto")>-1?(o=(n=u.position()).top,r=n.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,i,w.extend({},a))),null!=e.top&&(p.top=e.top-a.top+o),null!=e.left&&(p.left=e.left-a.left+r),"using"in e?e.using.call(t,p):u.css(p)}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)});var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===w.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),r.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-w.css(n,"marginTop",!0),left:e.left-r.left-w.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||ot})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;w.fn[t]=function(n){return Y(this,function(t,n,r){var s;if(b(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===r)return s?s[e]:t[n];s?s.scrollTo(i?s.pageXOffset:r,i?r:s.pageYOffset):t[n]=r},t,n,arguments.length)}}),w.each(["top","left"],function(t,e){w.cssHooks[e]=Gt(m.pixelPosition,function(t,i){if(i)return i=Ut(t,e),Xt.test(i)?w(t).position()[e]+"px":i})}),w.each({Height:"height",Width:"width"},function(t,e){w.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){w.fn[n]=function(r,s){var o=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===s?"margin":"border");return Y(this,function(e,i,r){var s;return b(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===r?w.css(e,i,a):w.style(e,i,r,a)},e,o?r:void 0,o)}})}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){w.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),w.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),w.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),w.proxy=function(t,e){var i,n,r;if("string"==typeof e&&(i=t[e],e=t,t=i),v(t))return n=l.call(arguments,2),(r=function(){return t.apply(e||this,n.concat(l.call(arguments)))}).guid=t.guid=t.guid||w.guid++,r},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=D,w.isFunction=v,w.isWindow=b,w.camelCase=q,w.type=P,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},void 0===(n=function(){return w}.apply(e,[]))||(t.exports=n);var $e=i.jQuery,Je=i.$;return w.noConflict=function(t){return i.$===w&&(i.$=Je),t&&i.jQuery===w&&(i.jQuery=$e),w},r||(i.jQuery=i.$=w),w})},139:function(t,e,i){"use strict";(function(n){var r,s;"undefined"!=typeof window&&window,void 0===(s="function"==typeof(r=function(){if("undefined"==typeof window)return null;var t="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)};function i(t,e){var i=Object.prototype.toString.call(t),r="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"[object Object]"===i||void 0!==n&&t instanceof n||"undefined"!=typeof Elements&&t instanceof Elements,s=0,o=t.length;if(r)for(;s<o;s++)e(t[s]);else e(t)}function r(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}function s(t,e){Object.keys(e).forEach(function(i){t.style[i]=e[i]})}var o=function(t,n){function a(){var t,e,i=[];this.add=function(t){i.push(t)},this.call=function(n){for(t=0,e=i.length;t<e;t++)i[t].call(this,n)},this.remove=function(n){var r=[];for(t=0,e=i.length;t<e;t++)i[t]!==n&&r.push(i[t]);i=r},this.length=function(){return i.length}}function l(t,i){if(t)if(t.resizedAttached)t.resizedAttached.add(i);else{t.resizedAttached=new a,t.resizedAttached.add(i),t.resizeSensor=document.createElement("div"),t.resizeSensor.dir="ltr",t.resizeSensor.className="resize-sensor";var n={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},o={position:"absolute",left:"0px",top:"0px",transition:"0s"};s(t.resizeSensor,n);var l=document.createElement("div");l.className="resize-sensor-expand",s(l,n);var h=document.createElement("div");s(h,o),l.appendChild(h);var u=document.createElement("div");u.className="resize-sensor-shrink",s(u,n);var p=document.createElement("div");s(p,o),s(p,{width:"200%",height:"200%"}),u.appendChild(p),t.resizeSensor.appendChild(l),t.resizeSensor.appendChild(u),t.appendChild(t.resizeSensor);var c,d,f=window.getComputedStyle(t),g=f?f.getPropertyValue("position"):null;"absolute"!==g&&"relative"!==g&&"fixed"!==g&&(t.style.position="relative");var y=r(t),m=0,v=0,b=!0,x=0,_=function(){if(b){var i=0===t.offsetWidth&&0===t.offsetHeight;if(i)return void(x||(x=e(function(){x=0,_()})));b=!1}var n,r;n=t.offsetWidth,r=t.offsetHeight,h.style.width=n+10+"px",h.style.height=r+10+"px",l.scrollLeft=n+10,l.scrollTop=r+10,u.scrollLeft=n+10,u.scrollTop=r+10};t.resizeSensor.resetSensor=_;var P=function(){d=0,c&&(m=y.width,v=y.height,t.resizedAttached&&t.resizedAttached.call(y))},w=function(){y=r(t),(c=y.width!==m||y.height!==v)&&!d&&(d=e(P)),_()},C=function(t,e,i){t.attachEvent?t.attachEvent("on"+e,i):t.addEventListener(e,i)};C(l,"scroll",w),C(u,"scroll",w),e(_)}}i(t,function(t){l(t,n)}),this.detach=function(e){o.detach(t,e)},this.reset=function(){t.resizeSensor.resetSensor()}};if(o.reset=function(t){i(t,function(t){t.resizeSensor.resetSensor()})},o.detach=function(t,e){i(t,function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))})},"undefined"!=typeof MutationObserver){var a=new MutationObserver(function(t){for(var e in t)if(t.hasOwnProperty(e))for(var i=t[e].addedNodes,n=0;n<i.length;n++)i[n].resizeSensor&&o.reset(i[n])});document.addEventListener("DOMContentLoaded",function(t){a.observe(document.body,{childList:!0,subtree:!0})})}return o})?r.call(e,i,e,t):r)||(t.exports=s)}).call(this,i(1))},179:function(t,e,i){var n=i(180);"string"==typeof n&&(n=[[t.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};i(3)(n,r);n.locals&&(t.exports=n.locals)},180:function(t,e,i){},181:function(t,e,i){"use strict";i.r(e);var n={};i.r(n),i.d(n,"PI",function(){return A}),i.d(n,"HALFPI",function(){return V}),i.d(n,"RADIANS",function(){return F}),i.d(n,"DEGREES",function(){return M}),i.d(n,"toNumberRange",function(){return j}),i.d(n,"round",function(){return E}),i.d(n,"ceil",function(){return L}),i.d(n,"stretch",function(){return R}),i.d(n,"fitToRange",function(){return B}),i.d(n,"sin",function(){return N}),i.d(n,"tan",function(){return H}),i.d(n,"cos",function(){return W}),i.d(n,"max",function(){return X}),i.d(n,"min",function(){return z}),i.d(n,"closest",function(){return Y}),i.d(n,"intersect",function(){return U}),i.d(n,"invertRange",function(){return G}),i.d(n,"intersection",function(){return K}),i.d(n,"getDistance",function(){return q}),i.d(n,"getScale",function(){return Z}),i.d(n,"getMidPoint",function(){return $}),i.d(n,"getRotation",function(){return J}),i.d(n,"getAngle",function(){return Q}),i.d(n,"getCenterShift",function(){return tt}),i.d(n,"getBBox",function(){return et}),i.d(n,"getCommonRectangle",function(){return it}),i.d(n,"getPointOnQuadraticCurve",function(){return nt}),i.d(n,"getPointOnCubicCurve",function(){return rt}),i.d(n,"getCubicControlPointA",function(){return st}),i.d(n,"getCubicControlPointB",function(){return ot}),i.d(n,"adjustTension",function(){return at}),i.d(n,"normalizeAngle",function(){return lt}),i.d(n,"fitAngleToRange",function(){return ht}),i.d(n,"getArcRect",function(){return ut}),i.d(n,"getArcPoint",function(){return pt}),i.d(n,"isInRectangle",function(){return ct}),i.d(n,"getLineIntersection",function(){return dt});var r={};i.r(r),i.d(r,"used",function(){return Ye}),i.d(r,"copyProperties",function(){return Ue}),i.d(r,"stripHash",function(){return Ge}),i.d(r,"getBaseURI",function(){return Ke}),i.d(r,"softCopyProperties",function(){return qe}),i.d(r,"copy",function(){return Ze}),i.d(r,"isNotEmpty",function(){return $e}),i.d(r,"relativeToValue",function(){return Je}),i.d(r,"relativeRadiusToValue",function(){return Qe}),i.d(r,"valueToRelative",function(){return ti}),i.d(r,"getPixelRatio",function(){return ei}),i.d(r,"camelToDashed",function(){return ii}),i.d(r,"capitalize",function(){return ni}),i.d(r,"stringify",function(){return ri}),i.d(r,"escapeForRgex",function(){return si}),i.d(r,"splitTextByCharCount",function(){return oi}),i.d(r,"truncateWithEllipsis",function(){return ai}),i.d(r,"trim",function(){return li}),i.d(r,"rtrim",function(){return hi}),i.d(r,"ltrim",function(){return ui}),i.d(r,"reverseString",function(){return pi}),i.d(r,"unquote",function(){return ci}),i.d(r,"padString",function(){return di}),i.d(r,"getFormat",function(){return fi}),i.d(r,"cleanFormat",function(){return gi}),i.d(r,"stripTags",function(){return yi}),i.d(r,"plainText",function(){return mi}),i.d(r,"numberToString",function(){return vi}),i.d(r,"anyToDate",function(){return bi}),i.d(r,"anyToNumber",function(){return xi}),i.d(r,"getYearDay",function(){return _i}),i.d(r,"getWeek",function(){return Pi}),i.d(r,"getMonthWeek",function(){return wi}),i.d(r,"getDayFromWeek",function(){return Ci}),i.d(r,"get12Hours",function(){return Si}),i.d(r,"getTimeZone",function(){return ki}),i.d(r,"random",function(){return Ti}),i.d(r,"fitNumber",function(){return Oi}),i.d(r,"fitNumberRelative",function(){return Ii}),i.d(r,"svgPointToSprite",function(){return Di}),i.d(r,"spritePointToSvg",function(){return Ai}),i.d(r,"spritePointToSprite",function(){return Vi}),i.d(r,"svgRectToSprite",function(){return Fi}),i.d(r,"spriteRectToSvg",function(){return Mi}),i.d(r,"documentPointToSvg",function(){return ji}),i.d(r,"svgPointToDocument",function(){return Ei}),i.d(r,"documentPointToSprite",function(){return Li}),i.d(r,"spritePointToDocument",function(){return Ri}),i.d(r,"width",function(){return Bi}),i.d(r,"height",function(){return Ni}),i.d(r,"decimalPlaces",function(){return Hi}),i.d(r,"parseUrl",function(){return Xi}),i.d(r,"serializeUrl",function(){return zi}),i.d(r,"joinUrl",function(){return Ui}),i.d(r,"isIE",function(){return Gi});var s={};i.r(s),i.d(s,"linear",function(){return Ki}),i.d(s,"quadIn",function(){return qi}),i.d(s,"quadOut",function(){return Zi}),i.d(s,"quadInOut",function(){return $i}),i.d(s,"polyIn",function(){return Ji}),i.d(s,"polyOut",function(){return Qi}),i.d(s,"polyInOut",function(){return tn}),i.d(s,"polyIn3",function(){return en}),i.d(s,"polyOut3",function(){return nn}),i.d(s,"polyInOut3",function(){return rn}),i.d(s,"expIn",function(){return sn}),i.d(s,"expOut",function(){return on}),i.d(s,"expInOut",function(){return an}),i.d(s,"sinIn",function(){return ln}),i.d(s,"sinOut",function(){return hn}),i.d(s,"sinInOut",function(){return un}),i.d(s,"cubicIn",function(){return pn}),i.d(s,"cubicOut",function(){return cn}),i.d(s,"cubicInOut",function(){return dn}),i.d(s,"circleIn",function(){return fn}),i.d(s,"circleOut",function(){return gn}),i.d(s,"circleInOut",function(){return yn}),i.d(s,"bounceIn",function(){return Tn}),i.d(s,"bounceOut",function(){return On}),i.d(s,"bounceInOut",function(){return In}),i.d(s,"elasticIn",function(){return Mn}),i.d(s,"elasticOut",function(){return jn}),i.d(s,"elasticInOut",function(){return En});
  /*! *****************************************************************************
  Copyright (c) Microsoft Corporation. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
  
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
  
  See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** */
  var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function a(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var l=function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function h(t,e,i,n){return new(i||(i=Promise))(function(r,s){function o(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){t.done?r(t.value):new i(function(e){e(t.value)}).then(o,a)}l((n=n.apply(t,e||[])).next())})}function u(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function p(t){var e="function"==typeof Symbol&&t[Symbol.iterator],i=0;return e?e.call(t):{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}}}function c(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o}function d(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}var f=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._value+"%"},t}();function g(t){return new f(t)}function y(t){return Number(t)!==t}function m(t){return{}.toString.call(t)}function v(t){if("string"==typeof t)return t;if("number"==typeof t)return""+t;throw new Error("Expected a string or number but got "+m(t))}function b(t){return!!t}function x(t){if(w(t)&&!O(t)){var e=Number(t);return y(e)&&T(t)&&""!=t?x(t.replace(/[^0-9.\-]+/g,"")):e}return t}function _(t){if(w(t)&&!T(t)){if(O(t))return v(t);if(I(t))return t.toString()}return t}function P(t){return!w(t)||O(t)||function(t){return t instanceof f}(t)?t:T(t)&&-1!=t.indexOf("%")?g(x(t)):x(t)}function w(t){return null!=t}function C(t){if(w(t))return t;throw new Error("Value doesn't exist")}function S(t,e){return w(t)?t:e}function k(t){return"[object Date]"===m(t)}function T(t){return"string"==typeof t}function O(t){return"number"==typeof t&&Number(t)==t}function I(t){return"object"==typeof t}function D(t){return Array.isArray(t)}var A=Math.PI,V=A/2,F=A/180,M=180/A;function j(t,e,i){return w(t)?B(t=x(t),e,i):t}function E(t,e,i){if(!O(e)||e<=0){var n=Math.round(t);return i&&n-t==.5&&n--,n}var r=Math.pow(10,e);return Math.round(t*r)/r}function L(t,e){if(!O(e)||e<=0)return Math.ceil(t);var i=Math.pow(10,e);return Math.ceil(t*i)/i}function R(t,e,i){return t*(i-e)+e}function B(t,e,i){if(O(e)){if(O(i)&&i<e){var n=i;i=e,e=n}t<e&&(t=e)}return O(i)&&t>i&&(t=i),t}function N(t){return E(Math.sin(F*t),10)}function H(t){return E(Math.tan(F*t),10)}function W(t){return E(Math.cos(F*t),10)}function X(t,e){return O(t)?O(e)&&e>t?e:t:O(e)?e:null}function z(t,e){return O(t)?O(e)&&e<t?e:t:O(e)?e:null}function Y(t,e){return t.reduce(function(t,i){return Math.abs(i-e)<Math.abs(t-e)?i:t})}function U(t,e){var i=C(t.start),n=C(e.start),r=C(t.end),s=C(e.end);return Math.max(i,n)<=Math.min(r,s)}function G(t){var e=C(t.start);return{start:1-C(t.end),end:1-e}}function K(t,e){var i=C(t.start),n=C(e.start),r=C(t.end),s=C(e.end),o=Math.max(i,n),a=Math.min(r,s);return a<o?void 0:{start:o,end:a}}function q(t,e){return t?(e||(e={x:0,y:0}),Math.sqrt(Math.pow(Math.abs(t.x-e.x),2)+Math.pow(Math.abs(t.y-e.y),2))):0}function Z(t,e,i,n){var r=q(e,n),s=q(t,i);return Math.abs(s/r)}function $(t,e,i){return O(i)||(i=.5),{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function J(t,e,i,n){var r=Q(e,n)-Q(t,i);return r<0&&(r+=360),r}function Q(t,e){e||(e={x:2*t.x,y:2*t.y});var i=e.x-t.x,n=e.y-t.y,r=Math.atan2(n,i)*M;return r<0&&(r+=360),lt(r)}function tt(t,e,i,n,r){var s=J(e,i,n,r)-90;s<0&&(s+=360);var o=q(e,n),a=Math.cos(s)/o+e.x,l=Math.cos(s)/o+e.y;return{x:a-t.x,y:l-t.y}}function et(t){if(t){var e=t.length;if(0!==e){for(var i,n=void 0,r=void 0,s=void 0,o=0;o<e;o++){var a=t[o];(!O(r)||a.x>r)&&(r=a.x),(!O(n)||a.x<n)&&(n=a.x),(!O(i)||a.y<i)&&(i=a.y),(!O(s)||a.y>s)&&(s=a.y)}return{x:n,y:i,width:r-n,height:s-i}}}return{x:0,y:0,width:0,height:0}}function it(t){var e=t.length;if(0!==e){for(var i=void 0,n=void 0,r=void 0,s=void 0,o=0;o<e;o++){var a=t[o];i=z(a.x,i),n=z(a.y,n),r=X(a.x+a.width,r),s=X(a.y+a.height,s)}return{x:i,y:n,width:r-i,height:s-n}}}function nt(t,e,i,n){return{x:(1-n)*(1-n)*t.x+2*(1-n)*n*i.x+n*n*e.x,y:(1-n)*(1-n)*t.y+2*(1-n)*n*i.y+n*n*e.y}}function rt(t,e,i,n,r){var s={x:0,y:0},o=1-r,a=o*o,l=a*o;return s.x=t.x*l+3*i.x*a*r+3*n.x*o*r*r+e.x*r*r*r,s.y=t.y*l+3*i.y*a*r+3*n.y*o*r*r+e.y*r*r*r,s}function st(t,e,i,n,r,s){return r=at(r),s=at(s),{x:(-t.x+e.x/r+i.x)*r,y:(-t.y+e.y/s+i.y)*s}}function ot(t,e,i,n,r,s){return r=at(r),s=at(s),{x:(e.x+i.x/r-n.x)*r,y:(e.y+i.y/s-n.y)*s}}function at(t){return 1-t+1e-5}function lt(t){return 360==t?360:t%360}function ht(t,e,i){if(e>i){var n=e;e=i,i=n}t=lt(t);var r=(e-lt(e))/360;return t<e&&(t+=360*(r+1)),t>i&&(t-360>e?t-=360:t=t<e+(i-e)/2+180?i:e),t<e&&(t=t>e+(i-e)/2-180?e:i),t}function ut(t,e,i){var n=Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,o=-Number.MAX_VALUE,a=[];O(i)||(i=1),a.push(pt(i,t)),a.push(pt(i,e));for(var l=Math.min(90*Math.floor(t/90),90*Math.floor(e/90)),h=Math.max(90*Math.ceil(t/90),90*Math.ceil(e/90)),u=l;u<=h;u+=90)u>=t&&u<=e&&a.push(pt(i,u));for(var p=0;p<a.length;p++){var c=a[p];c.x<n&&(n=c.x),c.y<r&&(r=c.y),c.x>s&&(s=c.x),c.y>o&&(o=c.y)}return{x:n,y:r,width:s-n,height:o-r}}function pt(t,e){return{x:t*W(e),y:t*N(e)}}function ct(t,e){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>e.y&&t.y<e.y+e.height}function dt(t,e,i,n){return{x:((t.x*e.y-e.x*t.y)*(i.x-n.x)-(t.x-e.x)*(i.x*n.y-i.y*n.x))/((t.x-e.x)*(i.y-n.y)-(t.y-e.y)*(i.x-n.x)),y:((t.x*e.y-e.x*t.y)*(i.y-n.y)-(t.y-e.y)*(i.x*n.y-i.y*n.x))/((t.x-e.x)*(i.y-n.y)-(t.y-e.y)*(i.x-n.x))}}function ft(t,e){for(var i=t.length,n=0;n<i;++n)if(t[n]===e)return n;return-1}function gt(t,e){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=e(t[r],r);return n}function yt(t,e){for(var i=t.length,n=0;n<i;++n)e(t[n],n)}function mt(t,e){var i=!1,n=t.indexOf(e);if(-1!==n){i=!0,t.splice(n,1);for(var r=t.length;n<r;)t[n]===e?(t.splice(n,1),--r):++n}return i}function vt(t,e,i){var n=ft(t,e);-1!==n&&wt(t,n),null==i?t.push(e):Pt(t,i,e)}function bt(t,e,i){O(i)?0===i?t.unshift(e):t.splice(i,0,e):t.push(e)}function xt(t){return Array.isArray(t)?t:[t]}function _t(t){for(var e=t.length,i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function Pt(t,e,i){t.splice(e,0,i)}function wt(t,e){t.splice(e,1)}function Ct(t,e,i){for(var n=0,r=t.length,s=!1;n<r;){var o=n+r>>1,a=e(i,t[o]);a<0?r=o:0===a?(s=!0,n=o+1):n=o+1}return{found:s,index:s?n-1:n}}function St(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n],n))return n;return-1}var kt=function(){function t(t){this._disposed=!1,this._dispose=t}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},t}(),Tt=function(t){function e(e){return t.call(this,function(){yt(e,function(t){t.dispose()})})||this}return a(e,t),e}(kt),Ot=function(t){function e(){var e=t.call(this,function(){w(e._disposer)&&(e._disposer.dispose(),e._disposer=void 0)})||this;return e}return a(e,t),e.prototype.get=function(){return this._value},e.prototype.set=function(t,e){w(this._disposer)&&this._disposer.dispose(),this._disposer=e,this._value=t},e.prototype.reset=function(){this.set(void 0,void 0)},e}(kt),It=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._counter=0,e}return a(e,t),e.prototype.increment=function(){var t=this;return++this._counter,new kt(function(){--t._counter,0===t._counter&&t.dispose()})},e}(kt),Dt=!1,At=[],Vt=[],Ft=[],Mt=[],jt="function"==typeof requestAnimationFrame?function(t){requestAnimationFrame(t)}:function(t){setTimeout(t,1e3/60)};function Et(){for(var t=Date.now(),e=At.length,i=0;i<e;++i)At[i](t);!function(t,e){for(var i=t.length,n=e;n<i;++n)t[n-e]=t[n];t.length=i-e}(At,e);for(i=0;i<Vt.length;++i)Vt[i](t);Vt.length=0;for(i=0;i<Ft.length;++i)Ft[i](t);Ft.length=0,0===At.length&&0===Vt.length?Dt=!1:jt(Et)}function Lt(){Dt||(Dt=!0,jt(Et))}function Rt(t){Ft.push(t),Lt()}var Bt=function(){function t(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{yt(t,function(t){t.disposer.dispose()})}finally{this._killed=null,this._iterating=null}}},t.prototype.hasListeners=function(){return 0!==this._listeners.length},t.prototype.hasListenersByType=function(t){return function(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n]))return!0;return!1}(this._listeners,function(e){return(null===e.type||e.type===t)&&!e.killed})},t.prototype.enable=function(){this._enabled=!0},t.prototype.disable=function(){this._enabled=!1},t.prototype.enableType=function(t){delete this._disabled[t]},t.prototype.disableType=function(t,e){void 0===e&&(e=1/0),this._disabled[t]=e},t.prototype._removeListener=function(t){if(0===this._iterating){var e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)},t.prototype._removeExistingListener=function(t,e,i,n){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(function(r){r.once!==t||r.type!==e||null!=i&&r.callback!==i||r.context!==n||r.disposer.dispose()})},t.prototype.isEnabled=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&null==this._disabled[t]},t.prototype.has=function(t,e,i){return-1!==St(this._listeners,function(n){return!0!==n.once&&n.type===t&&(null==e||n.callback===e)&&n.context===i})},t.prototype._shouldDispatch=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[t];return O(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled},t.prototype._eachListener=function(t){var e=this;++this._iterating;try{yt(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(yt(this._killed,function(t){e._removeListener(t)}),this._killed.length=0)}},t.prototype.dispatchImmediately=function(t,e){this._shouldDispatch(t)&&this._eachListener(function(i){i.killed||null!==i.type&&i.type!==t||i.dispatch(t,e)})},t.prototype.dispatch=function(t,e){this._shouldDispatch(t)&&this._eachListener(function(i){var n;i.killed||null!==i.type&&i.type!==t||(n=function(){i.killed||i.dispatch(t,e)},Mt.push(n))})},t.prototype._on=function(t,e,i,n,r,s){var o=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);var a={type:e,callback:i,context:n,shouldClone:r,dispatch:s,killed:!1,once:t,disposer:new kt(function(){a.killed=!0,o._removeListener(a)})};return this._listeners.push(a),a},t.prototype.onAll=function(t,e,i){return void 0===i&&(i=!0),this._on(!1,null,t,e,i,function(i,n){return t.call(e,i,n)}).disposer},t.prototype.on=function(t,e,i,n){return void 0===n&&(n=!0),this._on(!1,t,e,i,n,function(t,n){return e.call(i,n)}).disposer},t.prototype.once=function(t,e,i,n){void 0===n&&(n=!0);var r=this._on(!0,t,e,i,n,function(t,n){r.disposer.dispose(),e.call(i,n)});return r.disposer},t.prototype.off=function(t,e,i){this._removeExistingListener(!1,t,e,i)},t.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");yt(t._listeners,function(t){!t.killed&&t.shouldClone&&(null===t.type?e.onAll(t.callback,t.context):t.once?e.once(t.type,t.callback,t.context):e.on(t.type,t.callback,t.context))})},t}(),Nt=function(t){function e(e){var i=t.call(this)||this;return i.target=e,i}return a(e,t),e.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");yt(t._listeners,function(i){i.context!==t.target&&!i.killed&&i.shouldClone&&(null===i.type?e.onAll(i.callback,i.context):i.once?e.once(i.type,i.callback,i.context):e.on(i.type,i.callback,i.context))})},e}(Bt);function Ht(t){var e=[];for(var i in t)Wt(t,i)&&e.push(i);return e}function Wt(t,e){return{}.hasOwnProperty.call(t,e)}function Xt(t,e){for(var i in t)if(Wt(t,i)&&!e(i,t[i]))break}function zt(t,e){Xt(t,function(t,i){return e(t,i),!0})}function Yt(t,e,i){yt(function(t,e){return Ht(t).sort(e)}(t,i),function(i){e(i,t[i])})}function Ut(t,e){return Object.assign({},t,e)}function Gt(t,e,i){yt(i,function(i){w(t[i])&&(e[i]=t[i])})}function Kt(t,e,i){yt(i,function(i){e[i]=t[i]})}function qt(t,e){Gt(t,e,Ht(t))}function Zt(t){return function(e){for(var i=t.length,n=0;n<i&&e(t[n]);++n);}}function $t(t){var e=[];return t(function(t){return e.push(t),!0}),e}function Jt(t,e){t(e)}function Qt(t,e){t(function(t){return e(t),!0})}function te(t,e){return Zt($t(t).sort(e))}function ee(t,e){return function(i){return t(function(t){return i(e(t))})}}function ie(t){return function(e){var i=0;t(function(t){return e([i++,t])})}}function ne(t,e){var i=!1;return t(function(t){return!e(t)||(i=!0,!1)}),i}var re=function(){function t(t,e){this.createNewItems=!1,this.list=t,this._create=e,this.reset()}return t.prototype.reset=function(){this._listCopy=$t(this.list.iterator())},t.prototype.clear=function(){this._listCopy.length=0},t.prototype.getFirst=function(){return this.returnItem(0)},t.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},t.prototype.find=function(t){var e=St(this._listCopy,t);if(-1!==e){var i=this._listCopy[e];return mt(this._listCopy,i),i}return this.getLast()},t.prototype.removeItem=function(t){return mt(this._listCopy,t)},t.prototype.returnItem=function(t){if(t>=0&&t<this._listCopy.length){var e=this._listCopy[t];return mt(this._listCopy,e),e}if(this.createNewItems)return this._create()},t.prototype.iterator=function(){return Zt(this._listCopy)},t}();function se(t,e){return t===e?0:t<e?-1:1}function oe(t,e){return new Array(e+1).join(t)}var ae=function(t){function e(e){var i=e.events.on("removed",function(t){t.oldValue.dispose()},void 0,!1);return t.call(this,function(){i.dispose(),Qt(e.iterator(),function(t){t[1].dispose()})})||this}return a(e,t),e}(kt),le=function(){function t(){this.events=new Bt,this._dictionary={}}return t.prototype.hasKey=function(t){return Wt(this._dictionary,t)},t.prototype.getKey=function(t){return this._dictionary[t]},t.prototype.insertKey=function(t,e){if(Wt(this._dictionary,t))throw new Error("Key "+t+" already exists in dictionary");this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.setKey=function(t,e){if(Wt(this._dictionary,t)){var i=this._dictionary[t];i!==e&&(this._dictionary[t]=e,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))}else this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.updateKey=function(t,e){if(!Wt(this._dictionary,t))throw new Error("Key "+t+" doesn't exist in dictionary");var i=this._dictionary[t],n=e(i);i!==n&&(this._dictionary[t]=n,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:n}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))},t.prototype.removeKey=function(t){if(Wt(this._dictionary,t)){var e=this._dictionary[t];delete this._dictionary[t],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e})}},t.prototype.insertKeyIfEmpty=function(t,e){return this.hasKey(t)||this.insertKey(t,e()),this.getKey(t)},t.prototype.clear=function(){var t=this;this.events.isEnabled("removed")&&zt(this._dictionary,function(e,i){t.events.dispatchImmediately("removed",{type:"removed",target:t,oldValue:i})}),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},t.prototype.copyFrom=function(t){var e=this;Qt(t.iterator(),function(t){e.setKey(t[0],t[1])})},t.prototype.iterator=function(){return t=this._dictionary,function(e){for(var i in t)if(Wt(t,i)&&!e([i,t[i]]))break};var t},t.prototype[Symbol.iterator]=function(){var t,e,i,n;return u(this,function(r){switch(r.label){case 0:for(e in t=[],this._dictionary)t.push(e);i=0,r.label=1;case 1:return i<t.length?(n=t[i],Wt(this._dictionary,n)?[4,[n,this._dictionary[n]]]:[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return i++,[3,1];case 4:return[2]}})},t.prototype.each=function(t){Qt(this.iterator(),function(e){var i=c(e,2),n=i[0],r=i[1];return t(n,r)})},t.prototype.sortedIterator=function(){return te(this.iterator(),function(t,e){return se(t[0],e[0])})},t}(),he=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return a(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;Qt(t.iterator(),function(t){e.setKey(t[0],t[1].clone())})},e.prototype.create=function(t){var e=this;return this.insertKeyIfEmpty(t,function(){return e.template.clone()})},e}(le),ue=new(function(){function t(){this._storage=new le,this.ttl=1e3}return t.prototype.set=function(t,e,i,n){var r=this._storage.insertKeyIfEmpty(t,function(){return new le}),s={touched:(new Date).getTime(),ttl:O(n)?n:this.ttl,value:i};r.setKey(e,s)},t.prototype.get=function(t,e,i){if(void 0===i&&(i=void 0),this._storage.hasKey(t)){var n=this._storage.getKey(t);if(n.hasKey(e)){var r=n.getKey(e);return r.ttl&&r.touched+r.ttl<(new Date).getTime()&&(r.expired=!0),r.expired?(n.removeKey(e),i):r.value}return i}return i},t.prototype.clear=function(t){t?this._storage.removeKey(t):this._storage.clear()},t}()),pe=new(function(){function t(){this.events=new Bt,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.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[]}return t.prototype.getUniqueId=function(){var t=this._uidCount;return this._uidCount+=1,"id-"+t},Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new le),this._map},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){ue.set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),ue.get(this.uid,t,e)},t.prototype.dispatch=function(t,e){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}))},t.prototype.dispatchImmediately=function(t,e){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}))},t.prototype.getPlaceholder=function(t){return w(this._placeholders[t])?this._placeholders[t]:(this._placeholders[t]="__amcharts_"+t+"_"+function(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*i.length));return e}(8)+"__",this._placeholders[t])},t.prototype.addToInvalidComponents=function(t){t.baseId?vt(this.invalidDatas[t.baseId],t):vt(this.invalidDatas.noBase,t)},t.prototype.removeFromInvalidComponents=function(t){t.baseId&&mt(this.invalidDatas[t.baseId],t),mt(this.invalidDatas.noBase,t)},t.prototype.addToInvalidSprites=function(t){t.baseId?bt(this.invalidSprites[t.baseId],t):bt(this.invalidSprites.noBase,t)},t.prototype.removeFromInvalidSprites=function(t){t.baseId&&mt(this.invalidSprites[t.baseId],t),mt(this.invalidSprites.noBase,t)},t.prototype.addToInvalidPositions=function(t){t.baseId?bt(this.invalidPositions[t.baseId],t):bt(this.invalidPositions.noBase,t)},t.prototype.removeFromInvalidPositions=function(t){t.baseId&&mt(this.invalidPositions[t.baseId],t),mt(this.invalidPositions.noBase,t)},t.prototype.addToInvalidLayouts=function(t){t.baseId?bt(this.invalidLayouts[t.baseId],t):bt(this.invalidLayouts.noBase,t)},t.prototype.removeFromInvalidLayouts=function(t){t.baseId&&mt(this.invalidLayouts[t.baseId],t),mt(this.invalidLayouts.noBase,t)},t}()),ce={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1};var de=new(function(){function t(){this._isPaused=!1,this.animations=[],this.uid=pe.getUniqueId(),this.dummyCounter=0,this._frameRequested=!1,this.updateStepDuration=45,this.time=Date.now()}return t.prototype.reportTime=function(t,e){this.dummyCounter,e&&(this.time=Date.now())},t.prototype.update=function(){var t=this;if(!this._isPaused){this._frameRequested=!1;var e=Date.now();pe.dispatchImmediately("enterframe");for(var i in pe.invalidDatas)if(Wt(pe.invalidDatas,i)){for(var n=pe.invalidDatas[i];n.length>0;){var r=(s=n[0]).dataProvider;if(s.isDisposed())mt(n,s);else if(r&&r.dataInvalid)try{if(r.validateData(),r.dataValidationProgress<1)break}catch(t){mt(n,r),r.raiseCriticalError(t)}else try{if(s.validateData(),s.dataValidationProgress<1)break}catch(t){mt(n,s),s.raiseCriticalError(t)}}if(Date.now()-e>this.updateStepDuration)break}for(;pe.invalidRawDatas.length>0;){if((s=pe.invalidRawDatas[0]).isDisposed())mt(pe.invalidRawDatas,s);else try{s.validateRawData()}catch(t){mt(pe.invalidRawDatas,s),s.raiseCriticalError(t)}}for(;pe.invalidDataItems.length>0;){r=(s=pe.invalidDataItems[0]).dataProvider;if(s.isDisposed()||s.dataInvalid||r&&r.dataInvalid);else try{s.validateDataItems()}catch(t){mt(pe.invalidDataItems,s),s.raiseCriticalError(t)}mt(pe.invalidDataItems,s)}for(;pe.invalidDataRange.length>0;){var s;r=(s=pe.invalidDataRange[0]).dataProvider;if(s.isDisposed()||s.dataInvalid||r&&r.dataInvalid);else try{s.validateDataRange(),s.skipRangeEvent||s.dispatchImmediately("datarangechanged"),s.skipRangeEvent=!1}catch(t){mt(pe.invalidDataRange,s),s.raiseCriticalError(t)}mt(pe.invalidDataRange,s)}var o=[];zt(pe.invalidLayouts,function(e){t.validateLayouts(e)}),zt(pe.invalidPositions,function(e){t.validatePositions(e)});var a=!1;if(e=Date.now(),zt(pe.invalidSprites,function(i,n){for(var r=0;n.length>0;){if(t.validateLayouts(i),t.validatePositions(i),5==++r){if(Date.now()-e>t.updateStepDuration)break;r=0}var s=n[n.length-1];if(s&&!s.isDisposed()){if(s._systemCheckIfValidate())if(t.checkIfValidate2(s))try{s._systemUpdate(o)}catch(t){s.invalid=!1,mt(n,s),s.raiseCriticalError(t)}else o.push(s);else o.push(s);s.invalid=!1}mt(n,s)}pe.invalidSprites[i]=pe.invalidSprites[i].concat(o)}),zt(pe.invalidSprites,function(t,e){e.length>0&&(a=!0)}),zt(pe.invalidDatas,function(t,e){e.length>0&&(a=!0)}),yt(_t(this.animations),function(t){t.update()}),zt(pe.invalidLayouts,function(e){t.validateLayouts(e)}),zt(pe.invalidPositions,function(e){t.validatePositions(e)}),function(){for(var t=Date.now(),e=Mt.length,i=0;i<e;++i)Mt.shift()(t)}(),zt(pe.invalidLayouts,function(e){t.validateLayouts(e)}),zt(pe.invalidPositions,function(e){t.validatePositions(e)}),pe.dispatchImmediately("exitframe"),(a||this.animations.length>0||[].length>0)&&this.requestFrame(),this.updateStepDuration<200){var l=!0;zt(pe.invalidDatas,function(t,e){e.length>0&&(l=!1)}),zt(pe.invalidSprites,function(t,e){e.length>0&&(l=!1)}),l&&(this.updateStepDuration=200)}}},t.prototype.checkIfValidate2=function(t){return!(t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid&&!t.dataItem.component.isTemplate)},t.prototype.requestFrame=function(){var t=this;this._frameRequested||(jt(function(){t.update()}),this._frameRequested=!0)},t.prototype.validatePositions=function(t){for(var e=pe.invalidPositions[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())mt(e,i);else try{i._systemValidatePositions()}catch(t){i.positionInvalid=!1,mt(e,i),i.raiseCriticalError(t)}}},t.prototype.validateLayouts=function(t){for(var e=pe.invalidLayouts[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())mt(e,i);else try{i.children.each(function(t){t._systemValidateLayouts()}),i.validateLayout()}catch(t){i.layoutInvalid=!1,mt(e,i),i.raiseCriticalError(t)}}},t.prototype.log=function(t){!function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];ce.verbose&&console&&console.log.apply(console,d(t))}(t)},Object.defineProperty(t.prototype,"isPaused",{get:function(){return this._isPaused},set:function(t){this._isPaused=t,t||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),t.VERSION="4.5.12",t}()),fe=function(){function t(t,e,i){this._array=t,this._start=e,this._end=i}return t.prototype.iterator=function(){var t=this;return function(e){if(t._start!==t._end)if(t._start<t._end)for(var i=t._start;i<t._end&&e(t._array[i]);++i);else for(i=t._start-1;i>=t._end&&e(t._array[i]);--i);}},t.prototype.backwards=function(){return new t(this._array,this._end,this._start)},t.prototype.range=function(e,i){if(e<=i){if(this._start===this._end)return this;if(this._start<this._end){var n=i-e;return e=Math.max(this._start+e,this._start),i=Math.min(e+n,this._end),new t(this._array,e,i)}n=i-e;return e=Math.max(this._start-e,this._end),i=Math.max(e-n,this._end),new t(this._array,e,i)}throw new Error("Start index must be lower than end index")},t}(),ge=(function(t){function e(e,i,n){var r=t.call(this,[e.events.on("inserted",function(t){var i=t.newValue,n=r._getKey(i),s=0;Jt(e.iterator(),function(t){return t!==i&&(r._getKey(t)===n&&++s,!0)}),r._insert(i,n,s)},void 0,!1),e.events.on("removed",function(t){r._remove(t.oldValue)},void 0,!1)])||this;return r._keys=[],r._groups={},r._getKey=i,r._sort=n,Qt(e.iterator(),function(t){r._insert(t,i(t))}),r}a(e,t),e.prototype._insert=function(t,e,i){if(null==this._groups[e]){this._groups[e]=[];var n=Ct(this._keys,this._sort,e),r=n.found,s=n.index;if(r)throw new Error("Key already exists: "+e);Pt(this._keys,s,e)}null==i?this._groups[e].push(t):Pt(this._groups[e],i,t)},e.prototype._remove=function(t){var e=this._getKey(t),i=this._groups[e];if(null!=i&&(mt(i,t),0===i.length)){delete this._groups[e];var n=Ct(this._keys,this._sort,e),r=n.found,s=n.index;if(!r)throw new Error("Key doesn't exist: "+e);wt(this._keys,s)}},e.prototype.iterator=function(){var t,e=this;return t=ee(Zt(this._keys),function(t){return Zt(e._groups[t])}),function(e){var i=!0,n=function(t){return i=e(t)};t(function(t){return t(n),i})}}}(Tt),function(t){function e(e){var i=e.events.on("removed",function(t){t.oldValue.dispose()},void 0,!1);return t.call(this,function(){i.dispose(),Qt(e.iterator(),function(t){t.dispose()})})||this}return a(e,t),e}(kt));function ye(t,e){if(!(t>=0&&t<e))throw new Error("Index out of bounds: "+t)}var me=function(){function t(t){void 0===t&&(t=[]),this.events=new Bt,this._values=t}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return-1!==this._values.indexOf(t)},t.prototype.removeValue=function(t){for(var e=0,i=this._values.length;e<i;)this._values[e]===t?(this.removeIndex(e),--i):++e},t.prototype.indexOf=function(t){return ft(this._values,t)},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.hasIndex=function(t){return t>=0&&t<this._values.length},t.prototype.getIndex=function(t){return this._values[t]},t.prototype.setIndex=function(t,e){ye(t,this._values.length);var i=this._values[t];return i!==e&&(this._values[t]=e,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})),i},t.prototype.insertIndex=function(t,e){ye(t,this._values.length+1),Pt(this._values,t,e),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})},t.prototype._sortQuicksort=function(t,e,i){if(t<e){var n=this._sortPartition(t,e,i);this._sortQuicksort(t,n,i),this._sortQuicksort(n+1,e,i)}},t.prototype._sortPartition=function(t,e,i){for(var n=this._values,r=n[t],s=t-1,o=e+1;;){do{++s}while(i(n[s],r)<0);do{--o}while(i(n[o],r)>0);if(s>=o)return o;this.swap(s,o)}},t.prototype.sort=function(t){this._sortQuicksort(0,this._values.length-1,t)},t.prototype.swap=function(t,e){var i=this._values.length;if(ye(t,i),ye(e,i),t!==e){var n=this._values[t],r=this._values[e];this._values[t]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:n,newValue:r}),this._values[e]=n,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:r,newValue:n})}},t.prototype.removeIndex=function(t){ye(t,this._values.length);var e=this._values[t];return wt(this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},t.prototype.moveValue=function(t,e){var i=this.indexOf(t);if(-1!==i){var n=this._values[i];wt(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:n})}null==e?(e=this._values.length,this._values.push(t)):Pt(this._values,e,t),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),-1===i&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t})},t.prototype.push=function(t){var e=this._values.push(t)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t}),t},t.prototype.unshift=function(t){this.insertIndex(0,t)},t.prototype.pushAll=function(t){var e=this;yt(t,function(t){e.push(t)})},t.prototype.copyFrom=function(t){this.pushAll(t._values)},t.prototype.pop=function(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)},t.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},t.prototype.setAll=function(t){var e=this,i=_t(this._values);this._values.length=0,yt(t,function(t){e._values.push(t)}),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:i,newArray:this._values}),this.events.isEnabled("removed")&&yt(i,function(t){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:t})}),this.events.isEnabled("inserted")&&yt(this._values,function(t){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:t})})},t.prototype.clear=function(){this.setAll([])},t.prototype.iterator=function(){return Zt(this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return u(this,function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}})},t.prototype.each=function(t){yt(this._values,t)},t.prototype.range=function(t,e){if(t<=e){var i=e-t;return t=Math.max(t,0),e=Math.min(t+i,this._values.length),new fe(this._values,t,e)}throw new Error("Start index must be lower than end index")},t.prototype.backwards=function(){return new fe(this._values,this._values.length,0)},t}(),ve=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return a(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;Qt(t.iterator(),function(t){e.push(t.clone())})},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.push(e),e},e.prototype.clone=function(){for(var t=new e(this.template),i=this.values,n=i.length,r=0;r<n;++r)t.push(i[r].clone());return t},e}(me),be=function(){function t(t){this._values=[],this.events=new Bt,null!=t&&this.setAll(t)}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype._insert=function(t){return this._values.push(t),this._values.length-1},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(t){return ft(this._values,t)},t.prototype.contains=function(t){return-1!==this.indexOf(t)},t.prototype.getIndex=function(t){return this._values[t]},Object.defineProperty(t.prototype,"first",{get:function(){return this._values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._values[this._values.length-1]},enumerable:!0,configurable:!0}),t.prototype.insert=function(t){var e=this._insert(t);this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,index:e,newValue:t})},t.prototype.remove=function(t){var e=this.indexOf(t);if(-1!==e){var i=this._values[e];wt(this._values,e),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,index:e,oldValue:i})}},t.prototype.setAll=function(t){var e=this;!function(t,e){for(var i=t.length;i--;)e(t[i],i)}(this._values,function(t,i){e._values.pop(),e.events.isEnabled("removed")&&e.events.dispatchImmediately("removed",{type:"removed",target:e,index:i,oldValue:t})}),yt(t,function(t){e.insert(t)})},t.prototype.clear=function(){this.setAll([])},t.prototype.slice=function(e,i){var n=new t;return n._values=this._values.slice(e,i),n},t.prototype.findClosestIndex=function(t,e,i){void 0===i&&(i="any");var n,r,s=-1,o=0;return Jt(this.iterator(),function(a){var l=e(a);if("any"===i){if(l===t)return s=o,!1;var h=Math.abs(t-l);(!w(r)||r>h)&&(s=o,n=l,r=h)}else"left"===i&&l<t?(!w(n)||n<l)&&(s=o,n=l):"right"===i&&l>=t&&(!w(n)||n>=l)&&(s=o,n=l);return++o,!0}),-1===s&&("left"===i?s=0:"right"===i&&(s=this.length-1)),s},t.prototype.iterator=function(){return Zt(this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return u(this,function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}})},t.prototype.each=function(t){yt(this._values,t)},t}(),xe=function(t){function e(e){var i=t.call(this)||this;return i._ordering=e,i}return a(e,t),e.prototype._insert=function(t){var e=Ct(this._values,this._ordering,t).index;return Pt(this._values,e,t),e},e.prototype.indexOf=function(t){var e=Ct(this._values,this._ordering,t),i=e.found,n=e.index;return i?n:-1},e.prototype.update=function(t){var e=ft(this._values,t);if(-1!==e){var i=this._values.length-1;(0===e||this._ordering(this._values[e-1],t)<0)&&(e===i||this._ordering(t,this._values[e+1])<0)||(wt(this._values,e),this._insert(t))}},e}(be),_e=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return a(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;Qt(t.iterator(),function(t){e.insert(t.clone())})},e.prototype.slice=function(t,i){var n=new e(this.template);return n._values=this._values.slice(t,i),n},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.insert(e),e},e}(be),Pe=function(t){function e(e,i){var n=t.call(this,i)||this;return n.template=e,n}return a(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;Qt(t.iterator(),function(t){e.insert(t.clone())})},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.insert(e),e},e}(xe);function we(t,e){return t===e?0:t<e?-1:1}function Ce(t){switch(t){case 0:return 0;case-1:return 1;case 1:return-1}}function Se(t,e){return 0===t?e:t}var ke=new(function(){function t(){this._callbackId=0,this._callbacks=new xe(function(t,e){return Se(we(t.priority,e.priority),we(t.id,e.id))})}return t.prototype.addAll=function(t,e,i,n,r){void 0===n&&(n=0),this._callbacks.insert({id:++this._callbackId,key:e,callback:i,priority:n,scope:r,type:t})},t.prototype.isEnabled=function(t,e){return this._callbacks.length>0},t.prototype.applyAll=function(t,e,i){var n=this._callbacks.values,r=n.length;if(0==r)return i;for(var s=0;s<r;++s){var o=n[s];o.key===e&&t instanceof o.type&&(i=o.callback.call(o.scope,i,t,e))}return i},t}()),Te=function(){function t(t){this._callbackId=0,this._callbacks=new xe(function(t,e){return Se(we(t.priority,e.priority),we(t.id,e.id))}),this.object=t,this.events=this._callbacks.events}return t.prototype.add=function(t,e,i,n){void 0===i&&(i=0),this._callbacks.insert({id:++this._callbackId,key:t,callback:e,priority:i,scope:n})},t.prototype.has=function(t,e,i,n){return void 0===i&&(i=0),!1},t.prototype.remove=function(t,e){var i=this;yt($t(this._callbacks.iterator()),function(n){n.key!==t||O(e)&&e!==n.priority||i._callbacks.remove(n)})},t.prototype.isEnabled=function(t){return this._callbacks.length>0||ke.isEnabled(this.object,t)},t.prototype.apply=function(t,e){var i=this._callbacks.values,n=i.length;if(n>0)for(var r=0;r<n;++r){var s=i[r];s.key===t&&(e=s.callback.call(s.scope,e,this.object,t))}return e=ke.applyAll(this.object,t,e)},t.prototype.keys=function(){return $t(ee(this._callbacks.iterator(),function(t){return t.key}))},t.prototype.copyFrom=function(t){var e=this;Qt(t._callbacks.iterator(),function(t){e.add(t.key,t.callback,t.priority,t.scope)})},t.prototype.clear=function(){this._callbacks.clear()},t}(),Oe={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},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 Ie(t,e){var i;return Oe[t]?i=Oe[t]:"#"===t.charAt(0)?i=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:void 0}(t):t.match(/^rgba?\(/)&&(i=function(t){var e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(!(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i)))return;return{r:parseInt(e[1]),g:parseInt(e[2]),b:parseInt(e[3]),a:parseFloat(e[4])}}(t)),i||(i={r:0,g:0,b:0,a:1}),w(e)&&(i.a=e),i}function De(t){return 1==t.length?"0"+t:""+t}function Ae(t,e,i){return i=B(i,0,1),t?e?{r:t.r+Math.round((e.r-t.r)*i),g:t.g+Math.round((e.g-t.g)*i),b:t.b+Math.round((e.b-t.b)*i),a:(t.a||1)+Math.round(((e.a||1)-(t.a||1))*i)}:t:e||t}function Ve(t,e){var i=e>0?255-t:t;return Math.round(i*e)}function Fe(t){var e,i,n,r=t.h,s=t.s,o=t.l;if(0==s)e=i=n=o;else{var a=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},l=o<.5?o*(1+s):o+s-o*s,h=2*o-l;e=a(h,l,r+1/3),i=a(h,l,r),n=a(h,l,r-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*n)}}function Me(t){var e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),s=Math.min(e,i,n),o=0,a=0,l=(r+s)/2;if(r===s)o=a=0;else{var h=r-s;switch(a=l>.5?h/(2-r-s):h/(r+s),r){case e:o=(i-n)/h+(i<n?6:0);break;case i:o=(n-e)/h+2;break;case n:o=(e-i)/h+4}o/=6}return{h:o,s:a,l:l}}var je=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"rgb",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._value?"#"+De((t=this._value).r.toString(16))+De(t.g.toString(16))+De(t.b.toString(16)):"none";var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rgba",{get:function(){return this._value?w((t=this._value).a)&&1!==t.a?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"rgb("+t.r+","+t.g+","+t.b+")":"none";var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return null!=this._value&&null!=this._value.a?this._value.a:1},set:function(t){this._value&&(this._value.a=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return this._lightColor||(this._lightColor=new t({r:255,g:255,b:255})),this._lightColor},set:function(t){this._lightColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"darkColor",{get:function(){return this._darkColor||(this._darkColor=new t({r:0,g:0,b:0})),this._darkColor},set:function(t){this._darkColor=t},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.alpha<1?this.rgba:this.hex},t.prototype.lighten=function(e){return new t(function(t,e){return t?{r:Math.max(0,Math.min(255,t.r+Ve(t.r,e))),g:Math.max(0,Math.min(255,t.g+Ve(t.g,e))),b:Math.max(0,Math.min(255,t.b+Ve(t.b,e))),a:t.a}:t}(this.rgb,e))},t.prototype.brighten=function(e){return new t(function(t,e){if(t){var i=Ve(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}(this.rgb,e))},t.prototype.saturate=function(e){return new t(function(t,e){if(null==t||1==e)return t;var i=Me(t);return i.s=e,Fe(i)}(this.rgb,e))},Object.defineProperty(t.prototype,"alternative",{get:function(){if(null!=this.rgb)return(299*(t=this.rgb).r+587*t.g+114*t.b)/1e3>=128?this.darkColor:this.lightColor;throw new Error("Color does not exist");var t},enumerable:!0,configurable:!0}),t}();function Ee(t,e){if(!w(t))return new je(void 0);if("string"==typeof t){var i="_color_"+t+"_"+(e||"1"),n=pe.getCache(i);if(n)return new je({r:n.r,g:n.g,b:n.b,a:n.a});var r=Ie(t,e);return pe.setCache(i,r),new je(r)}return t instanceof je?(w(e)&&(t.alpha=e),t):new je(t)}function Le(t){return w(t)&&!function(t){return t instanceof je}(t)?function(t){return Ee(t)}(t):t}var Re=function(){function t(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return t.prototype.debug=function(){},Object.defineProperty(t.prototype,"uid",{get:function(){return this._uid||(this._uid=pe.getUniqueId(),pe.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new le),this._map},enumerable:!0,configurable:!0}),t.prototype.applyTheme=function(){var t=this;if(pe){var e=this.getCurrentThemes();e&&yt(e,function(e,i){e(t)})}},Object.defineProperty(t.prototype,"themes",{get:function(){return this._themes},set:function(t){this._themes=t},enumerable:!0,configurable:!0}),t.prototype.getCurrentThemes=function(){return this.themes||pe.themes},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;0!==t.length;){t.shift().dispose()}this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var e=this._uid;null!=e&&pe.map.removeKey(e)}},t.prototype.addDisposer=function(t){this._disposers.push(t)},t.prototype.removeDispose=function(t){if(!this._disposed){var e=ft(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()},t.prototype.clone=function(t){t||(t="clone-"+pe.getUniqueId());var e=new this.constructor;return e.cloneId=t,e.copyFrom(this),e},Object.defineProperty(t.prototype,"clones",{get:function(){return this._clones||(this._clones=new me),this._clones},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(t){t.clones.push(this),this.clonedFrom=t},Object.defineProperty(t.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){ue.set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),ue.get(this.uid,t,e)},t.prototype.clearCache=function(){ue.clear(this.uid)},t.prototype.setTimeout=function(t,e){var i=this,n=setTimeout(function(){i.removeDispose(r),t()},e),r=new kt(function(){clearTimeout(n)});return this._disposers.push(r),r},t.prototype.setInterval=function(t,e){var i=this,n=setInterval(function(){i.removeDispose(r),t()},e),r=new kt(function(){clearTimeout(n)});return this._disposers.push(r),r},Object.defineProperty(t.prototype,"config",{set:function(t){try{this.processConfig(t)}catch(t){this.raiseCriticalError(t)}},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){var i=this;if(e){var n=this;if(Yt(e,function(e,r){var s,o=r;if("callback"==e&&"function"==typeof r&&r.call(n),i.hasProperty(e))if(!I(o)||!w(o.type)||I(n[e])&&w(n[e].className)&&!o.forceCreate&&n[e].className==o.type?s=n[e]:(s=i.createClassInstance(o.type))?n[e]=s:s=n[e],s instanceof Te)i.processAdapters(s,o);else if(s instanceof Bt)i.processEvents(s,o);else if("locale"==e&&T(o))document["am4lang_"+o]&&(n[e]=document["am4lang_"+o]);else if(i.asIs(e))n[e]=o;else if(o instanceof t)n[e]=o;else if(s instanceof t)s.config=o;else if(s instanceof ve||s instanceof _e||s instanceof Pe){if(D(o))s instanceof ve?i.processListTemplate(o,s):i.processOrderedTemplate(o,s);else if(I(o))if(o instanceof t)s.template=o;else{var a=void 0;a=w(o.template)?o.template:o,s.template instanceof t?s.template.config=a:zt(a,function(e,n){var r=s.template[e];r instanceof Te?i.processAdapters(r,n):r instanceof Bt?i.processEvents(r,n):r instanceof he?i.processDictionaryTemplate(r,n):s.template[e]instanceof t?s.template[e].config=n:I(n)&&w(n.type)?(r=i.createClassInstance(n.type))?(r instanceof t&&(r.config=n),s.template[e]=r):s.template[e]=n:r instanceof me?i.processList(n,r):s.template[e]=i.maybeColorOrPercent(n)}),w(o.values)&&(s instanceof ve?i.processListTemplate(o.values,s):i.processOrderedTemplate(o.values,s))}}else s instanceof me?"children"==e?i.processList(o,s,i):i.processList(o,s):s instanceof he?i.processDictionaryTemplate(s,o):s instanceof le?i.processDictionary(s,o):s instanceof je||s instanceof f?n[e]=i.maybeColorOrPercent(o):I(s)&&I(o)?qt(o,s):(o=i.maybeColorOrPercent(o),n[e]=o);else i.isReserved(e)||(n[e]=o)},this.configOrder),this.processingErrors.length){var r=this.processingErrors.join("\n");throw this._processingErrors=[],Error(r)}}},t.prototype.maybeColorOrPercent=function(t){if(T(t)){if(t.match(/^[\-]?[0-9.]+\%$/))return g(x(t));if(t.match(/^\#[0-9abcdef]{3,}$/i))return Ee(t)}return t},t.prototype.processAdapters=function(t,e){var i=this;D(e)?yt(e,function(e,n){t.add(e.key,e.callback,e.priority||0,i)}):I(e)&&zt(e,function(e,i){t.has(e,i)||t.add(e,i)})},t.prototype.processEvents=function(t,e){var i=this;I(e)?zt(e,function(e,i){t.has(e,i)||t.on(e,i)}):D(e)&&yt(e,function(e,n){t.on(e.type,e.callback,i)})},t.prototype.processDictionaryTemplate=function(e,i){I(i)&&zt(i,function(i,n){var r;(r="template"==i?e.template:e.hasKey(i)?e.getKey(i):e.create(i))instanceof t?r.config=n:I(r)&&I(n)?qt(n,r):r.setKey(i,n)})},t.prototype.processDictionary=function(t,e){I(e)&&zt(e,function(e,i){t.setKey(e,i)})},t.prototype.processListTemplate=function(e,i){var n=this;for(yt(e,function(e,r){var s,o=n.getConfigEntryType(e);if(i.hasIndex(r)&&!e.forceCreate)s=i.getIndex(r);else{if(e instanceof t)return void i.push(e);s=o?i.create(o):i.create()}e===s||I(e)&&(s instanceof t?s.config=e:I(s)&&I(e)?qt(e,s):i.setIndex(i.indexOf(s),e))});e.length>i.length;)i.pop()},t.prototype.processOrderedTemplate=function(e,i){var n=this;yt(e,function(e,r){var s,o=n.getConfigEntryType(e);s=o?i.create(o):i.create(),I(e)&&(s instanceof t?s.config=e:I(s)&&I(e)?qt(e,s):i.insert(e))})},t.prototype.processList=function(e,i,n){var r=this;D(e)||(e=[e]);var s=i.length;for(yt(e,function(e,o){if(I(e)){var a=void 0;if(o<s&&!e.forceCreate)a=i.getIndex(o);else{if(e instanceof t)return void i.push(e);a=r.createEntryInstance(e),n?a.parent=n:i.push(a)}a instanceof t?a.config=e:I(a)&&I(e)&&qt(e,a)}else i.hasIndex(o)?i.setIndex(o,e):i.push(e)});e.length>i.length;)i.pop()},t.prototype.configOrder=function(t,e){return t==e?0:"language"==t?-1:"language"==e?1:0},t.prototype.asIs=function(t){return-1!=ft(["locale"],t)},t.prototype.createClassInstance=function(t){if(w(pe.registeredClasses[t]))return new pe.registeredClasses[t]},t.prototype.createEntryInstance=function(t){var e;return w(t.type)&&(e=this.createClassInstance(t.type)),e||t},t.prototype.getConfigEntryType=function(t){if(w(t.type)){if(w(pe.registeredClasses[t.type]))return pe.registeredClasses[t.type];throw Error('Invalid type: "'+t.type+'".')}},t.prototype.hasProperty=function(t){return t in this},t.prototype.isReserved=function(t){return-1!==["type","forceCreate"].indexOf(t)},Object.defineProperty(t.prototype,"processingErrors",{get:function(){return this._processingErrors||(this._processingErrors=[]),this._processingErrors},enumerable:!0,configurable:!0}),t}(),Be=function(t){function e(){var e=t.call(this)||this;return e.events=new Bt,e.className="BaseObjectEvents",e._disposers.push(e.events),e}return a(e,t),e.prototype.dispatch=function(t,e){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}))},e.prototype.dispatchImmediately=function(t,e){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}))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.events.copyFrom(e.events)},e}(Re);var Ne="string",He="number",We="date",Xe="duration",ze="__§§§__";function Ye(t){}function Ue(t,e){return zt(t,function(t,i){w(i)&&(e[t]=i)}),e}function Ge(t){return/^[^#]*/.exec(t)[0]}function Ke(){var t="#";if(/apple/i.test(navigator.vendor)){var e=document.baseURI;if(e){e=Ge(e);var i=Ge(location.href);e!==i&&(t=i+t)}}return t}function qe(t,e){return zt(t,function(t,i){w(i)&&!w(e[t])&&(e[t]=i)}),e}function Ze(t,e){return zt(t,function(t,i){e[t]=i}),e}function $e(t){return w(t)&&""!==t.toString()}function Je(t,e){return O(t)?t:null!=t&&O(t.value)&&O(e)?e*t.value:0}function Qe(t,e,i){var n;return O(t)?(n=t)<0&&(n=i?e+n:e-n):null!=t&&O(t.value)&&(n=e*t.value),n}function ti(t,e){return t instanceof f?t.value:t/e}function ei(){return window.devicePixelRatio||1}function ii(t){return t.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}function ni(t){var e=t.split("");return e[0]=e[0].toUpperCase(),e.join("")}function ri(t){return JSON.stringify(t)}function si(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function oi(t,e,i,n){if(t.length<=e)return[t];var r=[];if(i)for(var s=-1,o=t.replace(/([,;:!?\\\/\.\s]+)/g,ze+"$1"+ze).split(ze),a=0;a<o.length;a++){var l=o[a],h=l.length;if(0!==h){var u;if(h>e){if(n&&(l=pi(l)),u=l.match(new RegExp(".{1,"+e+"}","g"))){if(n)for(var p=0;p<u.length;p++)u[p]=pi(u[p]);r=r.concat(u)}}else-1===s&&(r.push(""),s=0),r[s].length+h+1>e&&""!==r[s]&&(r.push(""),s++),r[s]+=l;s=r.length-1}}else if(u=t.match(new RegExp(".{1,"+e+"}","g"))){if(n)for(p=0;p<u.length;p++)u[p]=pi(u[p]);r=u}return 1==r.length&&i&&r[0].length>e&&(r=[]),r}function ai(t,e,i,n,r){return t.length<=e?t:((e-=i.length)<1&&(e=1),(oi(t,e,n,r)[0]||"")+i)}function li(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function hi(t){return t.replace(/[\s\uFEFF\xA0]+$/g,"")}function ui(t){return t.replace(/^[\s\uFEFF\xA0]+/g,"")}function pi(t){return t.split("").reverse().join("")}function ci(t){var e=t.trim();return(e=t.replace(/^'(.*)'$/,"$1"))==t&&(e=t.replace(/^"(.*)"$/,"$1")),e}function di(t,e,i){return void 0===e&&(e=0),void 0===i&&(i="0"),"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function fi(t){if(void 0===t)return Ne;var e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:t===He?He:t===We?We:t===Xe?Xe:t.match(/[#0]/)?He:t.match(/[ymwdhnsqaxkzgtei]/)?We:Ne}function gi(t){return t.replace(/\/(date|number|duration)$/i,"")}function yi(t){return t?t.replace(/<[^>]*>/g,""):t}function mi(t){return t?yi(t.replace(/[\n\r]+/g,". ")):t}function vi(t){if(y(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";var e=t<0;t=Math.abs(t);var i,n=C(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t)),r=n[1],s=n[2]||"";if(null==n[3])i=""===s?r:r+"."+s;else{var o,a=+n[3];if(t<1)i="0."+oe("0",o=a-1)+r+s;else i=0===(o=a-s.length)?r+s:o<0?r+s.slice(0,o)+"."+s.slice(o):r+s+oe("0",o)}return e?"-"+i:i}function bi(t){if(k(t))return new Date(t);if(O(t))return new Date(t);var e=Number(t);return O(e)?new Date(e):new Date(t)}function xi(t){if(k(t))return t.getTime();if(O(t))return t;if(T(t)){var e=Number(t);return O(e)?e:void 0}}function _i(t,e){void 0===e&&(e=!1);var i=new Date(t.getFullYear(),0,1,0,0,0,0);return Math.floor((t.getTime()-i.getTime())/864e5)+1}function Pi(t,e){void 0===e&&(e=!1);var i=_i(t,e)-1,n=Math.floor((i-(t.getDay()||7)+10)/7);return 0===n?n=53:53===n&&(n=1),n}function wi(t,e){void 0===e&&(e=!1);var i=Pi(new Date(t.getFullYear(),t.getMonth(),1),e),n=Pi(t,e);return 1==n&&(n=53),n-i+1}function Ci(t,e,i,n){void 0===i&&(i=1),void 0===n&&(n=!1);var r=new Date(e,0,4,0,0,0,0);return n&&r.setUTCFullYear(e),7*t+i-((r.getDay()||7)+3)}function Si(t,e){return t>12?t-=12:0===t&&(t=12),w(e)?t+(e-1):t}function ki(t,e,i,n){if(void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=!1),n)return e?"Coordinated Universal Time":"UTC";var r=t.toLocaleString("UTC"),s=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),s}function Ti(t,e){return Math.floor(Math.random()*e)+t}function Oi(t,e,i){return t>i?i:t<e?e:t}function Ii(t,e,i){var n=i-e;return t>i?t=e+(t-n*Math.floor(t/n)):t<e&&(t=e+(t-n*Math.floor(t/n))),t}function Di(t,e){var i=t.x,n=t.y,r=[];if(e){for(;w(e.parent);)r.push(e),e=e.parent;r.reverse();for(var s=0;s<r.length;s++){var o=r[s],a=o.rotation,l=i-o.pixelX-o.ex,h=n-o.pixelY-o.ey;o.dx&&(i-=o.dx),o.dy&&(n-=o.dy),i=(W(-a)*l-N(-a)*h)/o.scale-o.pixelPaddingLeft,n=(W(-a)*h+N(-a)*l)/o.scale-o.pixelPaddingTop}}return{x:i,y:n}}function Ai(t,e){var i=t.x,n=t.y;if(e)for(;w(e.parent);){var r=e.rotation;i+=e.pixelPaddingLeft+e.ex,n+=e.pixelPaddingTop+e.ey,e.dx&&(i+=e.dx),e.dy&&(n+=e.dy);var s=e.pixelX+(i*W(r)-n*N(r))*e.scale,o=e.pixelY+(i*N(r)+n*W(r))*e.scale;i=s,n=o,e=e.parent}return{x:i,y:n}}function Vi(t,e,i){return Di(Ai(t,e),i)}function Fi(t,e){var i=Di(t,e),n=Di({x:t.x+t.width,y:t.y+t.height},e);return{x:i.x,y:i.y,width:n.x-i.x,height:n.y-i.y}}function Mi(t,e){var i=Ai(t,e),n=Ai({x:t.x+t.width,y:t.y+t.height},e);return{x:i.x,y:i.y,width:n.x-i.x,height:n.y-i.y}}function ji(t,e,i){try{var n=e.getBoundingClientRect();return O(i)||(i=1),{x:(t.x-n.left)/i,y:(t.y-n.top)/i}}catch(e){return t}}function Ei(t,e){try{var i=e.getBoundingClientRect();return{x:t.x+i.left,y:t.y+i.top}}catch(e){return t}}function Li(t,e){return e&&e.htmlContainer?Di(ji(t,C(e.htmlContainer),e.svgContainer.cssScale),e):t}function Ri(t,e){return e&&e.htmlContainer?Ei(Ai(t,e),C(e.htmlContainer)):t}function Bi(t){var e=getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),n=parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth);return t.clientWidth-i-n}function Ni(t){var e=getComputedStyle(t),i=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),n=parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth);return t.clientHeight-i-n}function Hi(t){var e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}var Wi=/^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;function Xi(t){var e=Wi.exec(t);return{protocol:e&&e[1]||"",separator:e&&e[2]||"",authority:e&&e[3]||"",domain:e&&e[4]||"",port:e&&e[5]||"",path:e&&e[6]||"",query:e&&e[7]||"",hash:e&&e[8]||""}}function zi(t){return t.protocol+t.separator+t.authority+t.domain+t.port+t.path+t.query+t.hash}function Yi(t){return""===t.protocol&&""===t.separator&&""===t.authority&&""===t.domain&&""===t.port}function Ui(t,e){var i=Xi(t),n=Xi(e);if(Yi(i))throw new Error("Left URL is not absolute");if(Yi(n)){if(""!==n.path)if("/"===n.path[0])i.path=n.path;else{var r=i.path.split(/\//),s=n.path.split(/\//);if(0===r.length?0!==s.length&&r.push(""):r.length>1&&r.pop(),function(t,e){for(var i=e.length,n=0;n<i;++n)t.push(e[n])}(r,s),i.path=r.join("/"),""!==i.path&&"/"!==i.path[0])throw new Error("URL path must start with /")}return i.query=n.query,i.hash=n.hash,zi(i)}return zi(n)}function Gi(){return!!window.MSInputMethodContext&&!!document.documentMode}function Ki(t){return+t}function qi(t){return t*t}function Zi(t){return t*(2-t)}function $i(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Ji(t,e){return Math.pow(t,e)}function Qi(t,e){return 1-Math.pow(1-t,e)}function tn(t,e){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}function en(t){return Ji(t,3)}function nn(t){return Qi(t,3)}function rn(t){return tn(t,3)}function sn(t){return Math.pow(2,10*t-10)}function on(t){return 1-Math.pow(2,-10*t)}function an(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function ln(t){return 1-Math.cos(t*V)}function hn(t){return Math.sin(t*V)}function un(t){return(1-Math.cos(A*t))/2}function pn(t){return t*t*t}function cn(t){return--t*t*t+1}function dn(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function fn(t){return 1-Math.sqrt(1-t*t)}function gn(t){return Math.sqrt(1- --t*t)}function yn(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var mn=4/11,vn=6/11,bn=8/11,xn=.75,_n=9/11,Pn=10/11,wn=.9375,Cn=21/22,Sn=63/64,kn=1/mn/mn;function Tn(t){return 1-On(1-t)}function On(t){return(t=+t)<mn?kn*t*t:t<bn?kn*(t-=vn)*t+xn:t<Pn?kn*(t-=_n)*t+wn:kn*(t-=Cn)*t+Sn}function In(t){return((t*=2)<=1?1-On(1-t):On(t-1)+1)/2}var Dn=2*Math.PI,An=1,Vn=.3/Dn,Fn=Math.asin(1/An)*Vn;function Mn(t){return An*Math.pow(2,10*--t)*Math.sin((Fn-t)/Vn)}function jn(t){return 1-An*Math.pow(2,-10*(t=+t))*Math.sin((t+Fn)/Vn)}function En(t){return((t=2*t-1)<0?An*Math.pow(2,10*t)*Math.sin((Fn-t)/Vn):2-An*Math.pow(2,-10*t)*Math.sin((Fn+t)/Vn))/2}var Ln=function(t){function e(){var e=t.call(this)||this;return e.adapter=new Te(e),e.transitionDuration=0,e.transitionEasing=cn,e.properties={},e.propertyFields={},e.filters=new me,e.isTemplate=!1,e.className="SpriteState",e._disposers.push(new ge(e.filters)),e.adapter.events.on("inserted",function(t){e[t.newValue.key]=e[t.newValue.key]},void 0,!1),e.adapter.events.on("removed",function(t){e[t.newValue.key]=e[t.newValue.key]},void 0,!1),e.applyTheme(),e}return a(e,t),e.prototype.getPropertyValue=function(t){var e=this.properties[t],i=this.sprite;if(i){var n=this.propertyFields[t];if(w(n)&&i.dataItem&&(e=i.dataItem.dataContext[n]),w(e))e=this.adapter.apply(t,e);else{var r=i.getPropertyValue(t);(e=this.adapter.apply(t,i.getPropertyValue(t)))==r&&(e=void 0)}}return e},e.prototype.copyFrom=function(t){t&&t!=this&&(this.transitionDuration=t.transitionDuration,this.transitionEasing=t.transitionEasing,Ue(t.properties,this.properties),Ue(t.propertyFields,this.propertyFields),this.filters.copyFrom(t.filters),this.adapter.copyFrom(t.adapter))},Object.defineProperty(e.prototype,"allValues",{get:function(){var t=this,e={};return zt(this.properties,function(i,n){e[i]=t.getPropertyValue(i)}),zt(this.adapter.keys(),function(i,n){var r=t.getPropertyValue(n);e[n]=r}),zt(this.propertyFields,function(i){var n=t.getPropertyValue(i);e[i]=n}),e},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.properties={},this.filters.clear()},e.prototype.processConfig=function(e){w(e)&&w(e.properties)&&zt(e.properties,function(t,i){T(i)&&(i.match(/^[0-9.\-]+\%$/)?e.properties[t]=g(x(i)):i.match(/^\#[0-9abcdef]{3,}$/i)&&(e.properties[t]=Le(i)))}),t.prototype.processConfig.call(this,e)},e}(Re);pe.registeredClasses.SpriteState=Ln;var Rn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._interactionEvents=new le,e}return a(e,t),e.prototype._dispatchSpriteEvent=function(t){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(t.type)){var e=Ut(t,{target:this.target});this.target.events.dispatchImmediately(e.type,e)}},e.prototype._dispatchSpritePointEvent=function(t){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(t.type)){var e=Ut(t,{target:this.target,spritePoint:Li(t.point,this.target),svgPoint:this.target.getSvgPoint(t.point)});this.target.events.dispatchImmediately(e.type,e)}},e.prototype._addInteractionObjectEvent=function(t,e,i,n){var r=this;return this._interactionEvents.insertKeyIfEmpty(t,function(){var s=r.target.interactions.events.on(t,e,i,n);return new It(function(){r._interactionEvents.removeKey(t),s.dispose()})}).increment()},e.prototype._on=function(e,i,n,r,s,o){var a=t.prototype._on.call(this,e,i,n,r,s,o),l=[a.disposer];switch(i){case"hit":case"track":case"doublehit":case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":l.push(this._addInteractionObjectEvent(i,this._dispatchSpritePointEvent,this,s));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":l.push(this._addInteractionObjectEvent(i,this._dispatchSpriteEvent,this,s))}switch(i){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}return a.disposer=new Tt(l),a},e}(Nt),Bn=function(){function t(){}return t.opacity=1,t.strokeOpacity=1,t.strokeWidth=1,t.fillOpacity=1,t.fill=Ee("#000000"),t.stroke=Ee("#000000"),t.focusable=void 0,t.tabindex=0,t}();function Nn(t,e,i){return e+(i-e)*t}function Hn(t,e,i){return new f(Nn(t,e.percent,i.percent))}function Wn(t,e,i){return new je(Ae(e.rgb,i.rgb,t))}function Xn(t,e){return e+t.charAt(0).toUpperCase()+t.substr(1)}var zn,Yn=function(){function t(t){this._disposer=new kt(function(){for(;0!==t.length;)t[0].dispose()})}return t.prototype.isDisposed=function(){return this._disposer.isDisposed()},t.prototype.dispose=function(){this._disposer.dispose()},t}(),Un=function(t){function e(e,i,n,r){var s=t.call(this)||this;return s.duration=0,s.easing=Ki,s.progress=0,s._loop=0,s._pause=!1,s._delayTimeout=null,s._time=0,s._isFinished=!1,s.className="Animation",s.object=e,s.animationOptions=xt(i),s.duration=n,r&&(s.easing=r),s.applyTheme(),s}return a(e,t),e.prototype.debug=function(){},e.prototype.dispose=function(){t.prototype.dispose.call(this),this.pause()},e.prototype.delay=function(t){var e=this;if(t>0){this.pause(),vt(this.object.animations,this);var i=setTimeout(function(){e._delayTimeout=null,e.start()},t);this._delayTimeout=new kt(function(){clearTimeout(i)})}return this},e.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,vt(de.animations,this),vt(this.object.animations,this),de.requestFrame()},e.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(w(e.from)||(e.childObject?e.from=e.childObject[e.property]:(e.from=this.object[e.property],w(e.from)||(e.from=Bn[e.property]))),e.from==e.to)mt(this.animationOptions,e);else if(w(e.from))if(O(e.to))if(e.updateMethod=Nn,e.from instanceof f){var i=this.object[Xn(e.property,"pixel")];isNaN(i)?(this.staticOptions.push(e),mt(this.animationOptions,e)):e.from=i}else isNaN(e.from)&&(this.staticOptions.push(e),mt(this.animationOptions,e));else if(e.to instanceof je)e.from?e.updateMethod=Wn:(this.staticOptions.push(e),mt(this.animationOptions,e));else if(e.to instanceof f){if(e.updateMethod=Hn,!isNaN(e.from)){i=this.object[Xn(e.property,"relative")];isNaN(i)||(e.from=g(100*i))}}else this.staticOptions.push(e),mt(this.animationOptions,e);else this.staticOptions.push(e),mt(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(),0===this.duration&&this.end(),this},e.prototype.loop=function(t){return O(t)||(t=1/0),this._loop=t,this},e.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),mt(de.animations,this),mt(this.object.animations,this),this},e.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},e.prototype.end=function(){if(0==this._loop&&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},e.prototype.kill=function(){this.pause(),this._isFinished=!0},e.prototype.isFinished=function(){return this._isFinished},e.prototype.applyStaticOptions=function(){var t=this;yt(this.staticOptions,function(e){e.childObject?e.childObject[e.property]=1==t.progress?e.to:e.from:t.object[e.property]=1==t.progress?e.to:e.from})},e.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},e.prototype.setProgress=function(t){var e=this;if(this._time=this.duration*t,yt(this.animationOptions,function(i){if(i.updateMethod&&w(i.from)){var n=i.updateMethod(t,i.from,i.to);i.childObject?i.childObject[i.property]=n:e.object[i.property]=n}}),this.progress=t,this.events.isEnabled("animationprogress")){var i={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",i)}de.requestFrame()},e.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),(0==this.duration||!O(t)||e>=1)&&(t=1),this.setProgress(t),1==E(this._time/this.duration,6)&&this.end()}return this},Object.defineProperty(e.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),e.prototype.stopSameAnimations=function(){var t=this;yt(_t(this.object.animations),function(e){if(e!==t&&!e.delayed){var i=[];yt(t.animationOptions,function(t){yt(e.animationOptions,function(n){t.property==n.property&&t.childObject==n.childObject&&(i.push(n),0==e.animationOptions.length&&e.kill())})}),yt(i,function(t){mt(e.animationOptions,t)})}})},e}(Be),Gn="http://www.w3.org/2000/svg",Kn="http://www.w3.org/2000/xmlns/",qn="http://www.w3.org/1999/xlink";function Zn(t,e,i,n){return t.addEventListener(e,i,n||!1),new kt(function(){t.removeEventListener(e,i,n||!1)})}function $n(t,e){if(t)if(t.classList)t.classList.add(e);else{var i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter(function(t){return t!==e}).join(" ")+" "+e):t.setAttribute("class",e)}}function Jn(t,e){if(t)if(t.classList)t.classList.remove(e);else{var i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter(function(t){return t!==e}).join(" "))}}function Qn(t,e,i){t.style[e]=i}function tr(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function er(){var t=document.createElement("input");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}function ir(t,e){for(var i=e;;){if(t===i)return!0;if(null==i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function nr(t){for(var e=t.ownerDocument,i=t;;){if(null==i.parentNode)return i===e||null!=i.host?i:null;i=i.parentNode}}function rr(t){var e;e=function(){try{var e=t.getBoundingClientRect(),i=e.left-Math.round(e.left),n=e.top-Math.round(e.top);0!==i&&Rt(function(){t.style.left=i+"px"}),0!==n&&Rt(function(){t.style.top=n+"px"})}catch(t){}},Vt.push(e),Lt()}function sr(){if(!w(zn)){var t=document.createElement("style");t.type="text/css",document.head.appendChild(t),zn=t.sheet}return zn}var or=function(t){function e(e,i){var n=t.call(this,function(){var t=sr(),e=ft(t.cssRules,n._rule);if(-1===e)throw new Error("Could not dispose StyleRule");t.deleteRule(e)})||this;return n._rule=function(t){var e=sr(),i=e.cssRules.length;return e.insertRule(t+"{}",i),e.cssRules[i]}(e),zt(i,function(t,e){n.setStyle(t,e)}),n}return a(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(t){this._rule.selectorText=t},enumerable:!0,configurable:!0}),e.prototype._setVendorPrefixName=function(t,e){var i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")},e.prototype.setStyle=function(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")},e}(kt),ar=0;!function(t){function e(e,i){var n=this,r=w(i)?i:"__style_"+ ++ar+"__";return(n=t.call(this,"."+r,e)||this)._className=r,n}a(e,t),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t,this.selector="."+t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._className}}(or);function lr(t){var e=tr(t,"font-family");if(e)return e;var i=t.parentElement||t.parentNode;return i?lr(i):void 0}function hr(t){var e=tr(t,"font-size");if(e)return e;var i=t.parentElement||t.parentNode;return i?hr(i):void 0}function ur(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.top<=(window.innerHeight||document.documentElement.clientHeight)&&e.left<=(window.innerWidth||document.documentElement.clientWidth)}var pr=function(){function t(t){this._isDisposed=!1,this._x=0,this._y=0,this._rotation=0,this._scale=1,this.node="string"==typeof t?document.createElementNS(Gn,t):t}return t.prototype.removeNode=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},Object.defineProperty(t.prototype,"transformString",{get:function(){if(this.node)return this._transformString},enumerable:!0,configurable:!0}),t.prototype.transform=function(){var t="translate("+this._x+","+this._y+")";1!=this._scale&&(t+=(t?" ":"")+"scale("+this._scale+")"),0!=this._rotation&&(t+=(t?" ":"")+"rotate("+this._rotation+")"),this._transformString=t,this.node.setAttribute("transform",t)},t.prototype.getBBox=function(){var t={width:0,height:0,x:0,y:0};if(this.node&&this.node.parentNode)try{var e=this.node.getBBox();t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height}catch(t){}return t},t.prototype.moveTo=function(t){if(t){var e=t.x,i=t.y;this._x==e&&this._y==i||(this._x=e,this._y=i,this.transform())}},Object.defineProperty(t.prototype,"content",{get:function(){return this.node.innerHTML||""},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.node.textContent||""},set:function(t){this.node.textContent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x!=t&&(this._x=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y!=t&&(this._y=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!=t&&(this._rotation=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale!=t&&(this._scale=t,this.transform())},enumerable:!0,configurable:!0}),t.prototype.removeAttr=function(t){this.node.removeAttribute(t)},t.prototype.attr=function(t){var e=this;return zt(t,function(t,i){w(i)?e.node.setAttribute(t,i):e.node.removeAttribute(t)}),this},t.prototype.getAttr=function(t){return this.node.getAttribute(t)},t.prototype.attrNS=function(t,e,i){return this.node.setAttributeNS(t,e,i),this},t.prototype.getAttrNS=function(t,e){return this.node.getAttributeNS(t,e)},t.prototype.removeStyle=function(t){delete this.node.style[t]},t.prototype.getStyle=function(t){return this.node.style[t]},t.prototype.addStyle=function(t){var e=this;return zt(t,function(t,i){w(i)?e.node.style[t]=i:e.removeStyle(t)}),this},t.prototype.addClass=function(t){$n(this.node,t)},t.prototype.removeClass=function(t){Jn(this.node,t)},t.prototype.setClass=function(t){this.node.setAttribute("class",t)},t.prototype.removeChildNodes=function(){for(;this.node.childNodes.length>0;)this.node.removeChild(this.node.firstChild)},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.dispose=function(){this.removeNode()},t}(),cr=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.add=function(t){t&&this.node.appendChild(t.node)},e.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)}},e.prototype.removeElement=function(t){if(t)try{t.node&&t.node.parentNode==this.node&&this.node.removeChild(t.node)}catch(t){}},e.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(e.prototype,"content",{get:function(){return this.node.innerHTML},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),e.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)}},e}(pr),dr=new le,fr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domEvents={},e}return a(e,t),e.prototype._addDOMEvent=function(t,e,i,n){var r=this;if(!this._domEvents[t]){var s=function(t){i.call(n,e,t)};this.target.element.addEventListener(t,s,!1),this._domEvents[t]=new It(function(){delete r._domEvents[t],r.target.element.removeEventListener(t,s,!1)})}return this._domEvents[t].increment()},e.prototype._dispatchKeyboardEvent=function(t,e){this.target.events.isEnabled(t)&&this.target.events.dispatchImmediately(t,{type:t,target:this.target,event:e})},e.prototype._on=function(e,i,n,r,s,o){var a=t.prototype._on.call(this,e,i,n,r,s,o),l=[a.disposer];switch(i){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":case"keyup":case"keypress":case"input":l.push(this._addDOMEvent(i,i,this._dispatchKeyboardEvent,this))}return a.disposer=new Tt(l),a},e}(Nt),gr=function(t){function e(e){var i=t.call(this)||this;return i.events=new fr(i),i.eventDisposers=new le,i.replacedStyles=new le,i._clickable=!1,i._contextMenuDisabled=!1,i._hoverable=!1,i._trackable=!1,i._draggable=!1,i._swipeable=!1,i._resizable=!1,i._wheelable=!1,i._inert=!1,i._isHover=!1,i._isHoverByTouch=!1,i._isDown=!1,i._isFocused=!1,i._isTouchProtected=!1,i._inertiaOptions=new le,i.inertias=new le,i._hitOptions={},i._hoverOptions={},i._swipeOptions={},i._keyboardOptions={},i._cursorOptions={defaultStyle:[{property:"cursor",value:"default"}]},i._element=e,i.className="InteractionObject",i._disposers.push(new ae(i.inertias)),i._disposers.push(new ae(i.eventDisposers)),i.applyTheme(),i}return a(e,t),Object.defineProperty(e.prototype,"isHover",{get:function(){return this._isHover},set:function(t){this.isHover!=t&&(this._isHover=t,t?Ir().overObjects.moveValue(this):Ir().overObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHoverByTouch",{get:function(){return this._isHoverByTouch},set:function(t){this.isHoverByTouch!=t&&(this._isHoverByTouch=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overPointers",{get:function(){return this._overPointers||(this._overPointers=new me),this._overPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return this._isDown},set:function(t){this.isDown!=t&&(this._isDown=t,t?Ir().downObjects.moveValue(this):Ir().downObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"downPointers",{get:function(){return this._downPointers||(this._downPointers=new me),this._downPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(t){this.isFocused!=t&&(this._isFocused=t,Ir().focusedObject=t?this:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTouchProtected",{get:function(){return this._isTouchProtected},set:function(t){this._isTouchProtected!=t&&(this._isTouchProtected=t,t?Ir().unprepElement(this):(this.draggable||this.swipeable||this.trackable||this.resizable)&&Ir().prepElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clickable",{get:function(){return this._clickable},set:function(t){this._clickable!==t&&(this._clickable=t,Ir().processClickable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextMenuDisabled",{get:function(){return this._contextMenuDisabled},set:function(t){this._contextMenuDisabled!==t&&(this._contextMenuDisabled=t,Ir().processContextMenu(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverable",{get:function(){return this._hoverable},set:function(t){this._hoverable!==t&&(this._hoverable=t,Ir().processHoverable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackable",{get:function(){return this._trackable},set:function(t){this._trackable!==t&&(this._trackable=t,Ir().processTrackable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(t){this._draggable!==t&&(this._draggable=t,Ir().processDraggable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeable",{get:function(){return this._swipeable},set:function(t){this._swipeable!==t&&(this._swipeable=t,Ir().processSwipeable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this._resizable},set:function(t){this._resizable!==t&&(this._resizable=t,Ir().processResizable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wheelable",{get:function(){return this._wheelable},set:function(t){this._wheelable!==t&&(this._wheelable=t,Ir().processWheelable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inert",{get:function(){return this._inert},set:function(t){this._inert!==t&&(this._inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this._focusable},set:function(t){this._focusable!==t&&(this._focusable=t,this._focusable&&-1==this.tabindex&&(this._tabindex=1),Ir().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return S(this._tabindex,-1)},set:function(t){this._tabindex!==t&&(this._tabindex=t,t>-1&&(this.focusable=!0),Ir().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this._element=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(t){this._originalPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalScale",{get:function(){return S(this._originalScale,1)},set:function(t){this._originalScale!==t&&(this._originalScale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalAngle",{get:function(){return S(this._originalAngle,0)},set:function(t){this._originalAngle!==t&&(this._originalAngle=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inertiaOptions",{get:function(){return this.sprite?this.sprite.adapter.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions},set:function(t){this._inertiaOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hitOptions",{get:function(){return this.sprite?this.sprite.adapter.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(t){this._hitOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOptions",{get:function(){return this.sprite?this.sprite.adapter.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(t){this._hoverOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeOptions",{get:function(){return this.sprite?this.sprite.adapter.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(t){this._swipeOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyboardOptions",{get:function(){return this.sprite?this.sprite.adapter.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(t){this._keyboardOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorOptions",{get:function(){return this.sprite?this.sprite.adapter.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(t){this._cursorOptions=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.inertiaOptions=e.inertiaOptions,this.hitOptions=e.hitOptions,this.hoverOptions=e.hoverOptions,this.swipeOptions=e.swipeOptions,this.keyboardOptions=e.keyboardOptions,this.cursorOptions=e.cursorOptions,this.contextMenuDisabled=e.contextMenuDisabled,Ir().applyCursorOverStyle(this)},e.prototype.setEventDisposer=function(t,e,i){var n=this.eventDisposers.getKey(t);e?null==n&&this.eventDisposers.setKey(t,i()):null!=n&&(n.dispose(),this.eventDisposers.removeKey(t))},e.prototype.dispose=function(){t.prototype.dispose.call(this);var e=Ir();e.overObjects.removeValue(this),e.downObjects.removeValue(this),e.trackedObjects.removeValue(this),e.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&e.unlockWheel(),e.focusedObject===this&&(e.focusedObject=void 0)},e}(Be),yr=function(){function t(t,e){this._disposed=!1,this.directionX=0,this.directionY=0,this.interaction=t,this.keyboardEvent=e,this._startedOn=(new Date).getTime(),Ir().processDragStart(t),de.animations.push(this),this.update()}return t.prototype.update=function(){var t=this.interaction,e=Ir().getKeyboardOption(t,"speed"),i=Ir().getKeyboardOption(t,"accelleration"),n=Ir().getKeyboardOption(t,"accellerationDelay"),r={x:0,y:0};this.keyboardEvent.shiftKey?(e*=.5,i=1):this.keyboardEvent.ctrlKey&&(e*=2);var s=(new Date).getTime()-this._startedOn,o=s-n;if(i>0&&o>0){var a=s/n;s=n,r.x+=this.directionX*(e*i*a*o),r.y+=this.directionY*(e*i*a*o)}r.x+=this.directionX*(e*s),r.y+=this.directionY*(e*s),Ir().handleTransformMove(t,r,{x:0,y:0},this.keyboardEvent,!0,!1)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(Ir().processDragStop(this.interaction),mt(de.animations,this))},t}(),mr=function(t){function e(e,i,n,r){var s=t.call(this)||this;return s.animations=[],s.className="Inertia",s.interaction=e,s.type=i,s.point=n,s.startPoint=r,s._disposers.push(new Yn(s.animations)),s}return a(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.point.x},set:function(t){O(t)&&(this.point.x=t,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.point.y},set:function(t){O(t)&&(this.point.y=t,this.handleMove())},enumerable:!0,configurable:!0}),e.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)}},e.prototype.done=function(){this.interaction.inertias.removeKey(this.type),"move"===this.type&&Ir().processDragStop(this.interaction),this.dispose()},e}(Re),vr=new(function(){function t(){}return t.prototype.getEventKey=function(t){var e;switch(t.keyCode||t.which){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;case 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"}return e},t.prototype.isKey=function(t,e){var i=this.getEventKey(t);return T(e)&&(e=[e]),-1!==e.indexOf(i)},t.prototype.shiftKey=function(t){return t.shiftKey},t.prototype.ctrlKey=function(t){return t.ctrlKey},t.prototype.altKey=function(t){return t.altKey},t.prototype.metaKey=function(t){return t.metaKey},t}()),br={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6};function xr(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function _r(t,e){return w(e)||(e=1),br[t]*e}function Pr(){return(new Date).getTime()}function wr(t){return new Date(t.getTime())}function Cr(t,e,i,n){t=new Date(t.getTime()),e=new Date(e.getTime());var r=0,s=0;n||"millisecond"==i||(r=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-r),s=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-s));var o=!1;switch(i){case"year":t.getUTCFullYear()!=e.getUTCFullYear()&&(o=!0);break;case"month":t.getUTCFullYear()!=e.getUTCFullYear()?o=!0:t.getUTCMonth()!=e.getUTCMonth()&&(o=!0);break;case"day":t.getUTCMonth()!=e.getUTCMonth()?o=!0:t.getUTCDate()!=e.getUTCDate()&&(o=!0);break;case"hour":t.getUTCHours()!=e.getUTCHours()&&(o=!0);break;case"minute":t.getUTCMinutes()!=e.getUTCMinutes()&&(o=!0);break;case"second":t.getUTCSeconds()!=e.getUTCSeconds()&&(o=!0);break;case"millisecond":t.getTime()!=e.getTime()&&(o=!0)}if(o)return!0;var a=xr(i);return!!a&&(t.setUTCMinutes(t.getUTCMinutes()+r),e.setUTCMinutes(e.getUTCMinutes()+s),Cr(t,e,a,n))}function Sr(t,e,i,n){var r=0;switch(n||"millisecond"==e||(r=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":var s=t.getUTCDate();t.setUTCDate(s+i);break;case"second":var o=t.getUTCSeconds();t.setUTCSeconds(o+i);break;case"millisecond":var a=t.getUTCMilliseconds();t.setUTCMilliseconds(a+i);break;case"hour":var l=t.getUTCHours();t.setUTCHours(l+i);break;case"minute":var h=t.getUTCMinutes();t.setUTCMinutes(h+i);break;case"year":var u=t.getUTCFullYear();t.setUTCFullYear(u+i);break;case"month":var p=t.getUTCMonth();t.setUTCMonth(p+i);break;case"week":var c=t.getUTCDate();t.setUTCDate(c+7*i)}if(!n&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){var d=t.getTimezoneOffset();if(d!=r){var f=d-r;t.setUTCMinutes(t.getUTCMinutes()+f),t.getTimezoneOffset()!=d&&t.setUTCMinutes(t.getUTCMinutes()-f)}}return t}function kr(t,e,i,n,r){O(i)||(i=1);var s=0;switch(r||"millisecond"==e||(s=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-s)),e){case"day":var o=t.getUTCDate();i>1&&(o=Math.floor(o/i)*i),t.setUTCDate(o),t.setUTCHours(0,0,0,0);break;case"second":var a=t.getUTCSeconds();i>1&&(a=Math.floor(a/i)*i),t.setUTCSeconds(a,0);break;case"millisecond":if(1==i)return t;var l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":var h=t.getUTCHours();i>1&&(h=Math.floor(h/i)*i),t.setUTCHours(h,0,0,0);break;case"minute":var u=t.getUTCMinutes();l=t.getUTCMilliseconds(),i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":var p=t.getUTCMonth();i>1&&(p=Math.floor(p/i)*i),t.setUTCMonth(p,1),t.setUTCHours(0,0,0,0);break;case"year":var c=t.getUTCFullYear();i>1&&(c=Math.floor(c/i)*i),t.setUTCFullYear(c,0,1),t.setUTCHours(0,0,0,0);break;case"week":var d=t.getUTCDate(),f=t.getUTCDay();O(n)||(n=1),d=f>=n?d-f+n:d-(7+f)+n,t.setUTCDate(d),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+s),"day"==e||"week"==e||"month"==e||"year"==e)){var g=t.getTimezoneOffset();if(g!=s){var y=g-s;t.setUTCMinutes(t.getUTCMinutes()+y)}}return t}var Tr=function(t){function e(){var i=t.call(this)||this;return i._globalEventsAdded=!1,i._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},i._usePointerEventsOnly=!1,i._useTouchEventsOnly=!1,i._addHoverEvents=!0,i._passiveSupported=!1,i._delayedEvents={out:[]},i.overObjects=new me,i.downObjects=new me,i.trackedObjects=new me,i.transformedObjects=new me,i.pointers=new le,i.inertiaOptions=new le,i.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},i.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},i.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},i.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},i.className="Interaction",i.body=i.getInteraction(document.body),i._disposers.push(i.body),window.hasOwnProperty("PointerEvent")?(i._pointerEvents.pointerdown="pointerdown",i._pointerEvents.pointerup="pointerup",i._pointerEvents.pointermove="pointermove",i._pointerEvents.pointercancel="pointercancel",i._pointerEvents.pointerover="pointerover",i._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(i._pointerEvents.pointerdown="MSPointerDown",i._pointerEvents.pointerup="MSPointerUp",i._pointerEvents.pointermove="MSPointerMove",i._pointerEvents.pointercancel="MSPointerUp",i._pointerEvents.pointerover="MSPointerOver",i._pointerEvents.pointerout="MSPointerOut"):"undefined"!=typeof matchMedia&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(i._addHoverEvents=!1,i._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)?i._usePointerEventsOnly=!0:i._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?i._pointerEvents.wheel="wheel":w(document.onmousewheel)&&(i._pointerEvents.wheel="mousewheel"),i.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:nn}),i.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:nn}),i._passiveSupported=e.passiveSupported,i.applyTheme(),i}return a(e,t),e.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},e.prototype.debug=function(){},e.prototype.addGlobalEvents=function(){var t=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(Zn(document,this._pointerEvents.pointerdown,function(e){t.handleGlobalPointerDown(e)})),this._disposers.push(Zn(document,this._pointerEvents.pointermove,function(e){t.handleGlobalPointerMove(e)})),this._disposers.push(Zn(document,this._pointerEvents.pointerup,function(e){t.handleGlobalPointerUp(e)})),this._disposers.push(Zn(document,this._pointerEvents.pointercancel,function(e){t.handleGlobalPointerUp(e,!0)}))),this._usePointerEventsOnly||(this._disposers.push(Zn(document,"touchstart",function(e){t.handleGlobalTouchStart(e)})),this._disposers.push(Zn(document,"touchmove",function(e){t.handleGlobalTouchMove(e)})),this._disposers.push(Zn(document,"touchend",function(e){t.handleGlobalTouchEnd(e)}))),this._disposers.push(Zn(document,"keydown",function(e){t.handleGlobalKeyDown(e)})),this._disposers.push(Zn(document,"keyup",function(e){t.handleGlobalKeyUp(e)})),this._globalEventsAdded=!0)},e.prototype.processClickable=function(t){this.processTouchable(t)},e.prototype.processContextMenu=function(t){t.contextMenuDisabled?t.eventDisposers.hasKey("contextMenuDisabled")||t.eventDisposers.setKey("contextMenuDisabled",Zn(t.element,"contextmenu",function(t){t.preventDefault()})):t.eventDisposers.hasKey("contextMenuDisabled")&&t.eventDisposers.getKey("contextMenuDisabled").dispose()},e.prototype.processHoverable=function(t){var e=this;if(t.hoverable||t.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(t),!t.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&t.eventDisposers.setKey("hoverable",new Tt([Zn(t.element,this._pointerEvents.pointerout,function(i){return e.handlePointerOut(t,i)}),Zn(t.element,this._pointerEvents.pointerover,function(i){return e.handlePointerOver(t,i)})])),t.trackable;else{var i=t.eventDisposers.getKey("hoverable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("hoverable"))}this.processTouchable(t)},e.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)},e.prototype.processTrackable=function(t){this.processHoverable(t),this.processMovable(t),t.trackable?this.trackedObjects.moveValue(t):this.trackedObjects.removeValue(t)},e.prototype.processDraggable=function(t){this.processMovable(t)},e.prototype.processSwipeable=function(t){this.processMovable(t)},e.prototype.processResizable=function(t){this.processMovable(t)},e.prototype.processWheelable=function(t){var e=this;if(t.wheelable)t.eventDisposers.hasKey("wheelable")||t.eventDisposers.setKey("wheelable",new Tt([Zn(t.element,this._pointerEvents.wheel,function(i){return e.handleMouseWheel(t,i)},!!this._passiveSupported&&{passive:!1}),t.events.on("out",function(i){t.wheelable&&e.unlockWheel()}),t.events.on("over",function(i){t.wheelable&&e.lockWheel()})]));else{var i=t.eventDisposers.getKey("wheelable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("wheelable"))}},e.prototype.processFocusable=function(t){var e=this;if(!0===t.focusable&&t.tabindex>-1&&!this._useTouchEventsOnly)t.eventDisposers.hasKey("focusable")||t.eventDisposers.setKey("focusable",new Tt([Zn(t.element,"focus",function(i){return e.handleFocus(t,i)}),Zn(t.element,"blur",function(i){return e.handleBlur(t,i)}),Zn(t.element,this._pointerEvents.pointerdown,function(i){return e.handleFocusBlur(t,i)}),Zn(t.element,"touchstart",function(i){return e.handleFocusBlur(t,i)},!!this._passiveSupported&&{passive:!1})]));else{var i=t.eventDisposers.getKey("focusable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("focusable"))}},e.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?this._useTouchEventsOnly?this._usePointerEventsOnly||t.eventDisposers.setKey("touchable",Zn(t.element,"touchstart",function(i){return e.handleTouchDown(t,i)},!!this._passiveSupported&&{passive:!1})):t.eventDisposers.setKey("touchable",Zn(t.element,this._pointerEvents.pointerdown,function(i){return e.handlePointerDown(t,i)})):t.eventDisposers.setKey("touchable",new Tt([Zn(t.element,this._pointerEvents.pointerdown,function(i){return e.handlePointerDown(t,i)}),Zn(t.element,"touchstart",function(i){return e.handleTouchDown(t,i)},!!this._passiveSupported&&{passive:!1})])));else{var i=t.eventDisposers.getKey("touchable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("touchable"))}},e.prototype.handleFocus=function(t,e){if(t.focusable){if(t.isFocused=!0,t.events.isEnabled("focus")&&!de.isPaused){var i={type:"focus",target:t,event:e};t.events.dispatchImmediately("focus",i)}}else e.preventDefault()},e.prototype.handleFocusBlur=function(t,e){!1!==t.focusable&&this.getHitOption(t,"noFocus")&&t.events.once("focus",function(){t.events.disableType("blur"),er(),t.sprite&&t.sprite.handleBlur(),t.events.enableType("blur")})},e.prototype.handleBlur=function(t,e){if(t.focusable){if(t.isFocused=!1,t.events.isEnabled("blur")&&!de.isPaused){var i={type:"blur",target:t,event:e};t.events.dispatchImmediately("blur",i)}}else e.preventDefault()},e.prototype.handleGlobalKeyDown=function(t){if(this.focusedObject)if(vr.isKey(t,"esc"))er();else if(this.focusedObject.draggable&&vr.isKey(t,["up","down","left","right"])){t.preventDefault();var e=this.focusedObject;if(e.eventDisposers.hasKey("interactionKeyboardObject"))return;var i=new yr(e,t);switch(e.eventDisposers.setKey("interactionKeyboardObject",i),vr.getEventKey(t)){case"up":i.directionY=-1;break;case"down":i.directionY=1;break;case"left":i.directionX=-1;break;case"right":i.directionX=1}}},e.prototype.handleGlobalKeyUp=function(t){if(this.focusedObject){var e=this.focusedObject.eventDisposers.getKey("interactionKeyboardObject");null!=e&&(t.preventDefault(),e.dispose(),this.focusedObject.eventDisposers.removeKey("interactionKeyboardObject"))}},e.prototype.handleGlobalPointerMove=function(t){var e=this.getPointer(t);if(e.point=this.getPointerPoint(t),this.events.isEnabled("track")&&!de.isPaused){var i={type:"track",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("track",i)}this.addBreadCrumb(e,e.point),this.handleGlobalMove(e,t)},e.prototype.handleGlobalPointerDown=function(t){this.processDelayed();var e=this.getPointer(t);if(this.events.isEnabled("down")&&!de.isPaused){var i={type:"down",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("down",i)}},e.prototype.preventTouchAction=function(t){t.defaultPrevented||t.preventDefault()},e.prototype.handleGlobalPointerUp=function(t,e){void 0===e&&(e=!1);var i=this.getPointer(t);if(this.events.isEnabled("up")&&!de.isPaused){var n={type:"up",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(i,t,e)},e.prototype.handleGlobalTouchMove=function(t){for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(i.point=this.getPointerPoint(t.changedTouches[e]),this.events.isEnabled("track")&&!de.isPaused){var n={type:"track",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("track",n)}this.addBreadCrumb(i,i.point),this.handleGlobalMove(i,t)}},e.prototype.handleGlobalTouchStart=function(t){this.processDelayed();for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(!this._usePointerEventsOnly&&this.events.isEnabled("down")&&!de.isPaused){var n={type:"down",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("down",n)}}},e.prototype.handleGlobalTouchEnd=function(t){for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(this.events.isEnabled("up")&&!de.isPaused){var n={type:"up",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(i,t)}},e.prototype.handlePointerDown=function(t,e){var i=this.getPointer(e);(i.touch||1==e.which||3==e.which)&&(i.button=e.which,this.resetPointer(i,e),this.handleDown(t,i,e))},e.prototype.handlePointerOver=function(t,e){var i=this.getPointer(e);this.handleOver(t,i,e)},e.prototype.handlePointerOut=function(t,e){var i=this.getPointer(e);this.handleOut(t,i,e)},e.prototype.handleMouseWheel=function(t,e){var i=this.getPointer(e);i.point=this.getPointerPoint(e);var n=0,r=0,s=1;if(1==e.deltaMode&&(s=50),!(e instanceof WheelEvent))throw new Error("Invalid event type");n=Math.round(-1*e.wheelDeltaX||e.deltaX)*s,r=Math.round(-1*e.wheelDeltaY||e.deltaY)*s,this.handleWheel(t,i,n,r,e)},e.prototype.handleTouchDown=function(t,e){for(var i=0;i<e.changedTouches.length;i++){var n=this.getPointer(e.changedTouches[i]);this.maybePreventDefault(t,e,n),this.resetPointer(n,e.changedTouches[i]),this.handleDown(t,n,e)}},e.prototype.handleHit=function(t,e,i){var n=Pr();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")&&!de.isPaused){var r={type:"doublehit",target:t,point:e.point,event:i,touch:e.touch};t.events.dispatchImmediately("doublehit",r)}}else if(t.lastHit=n,t.lastHitPointer=e,3===e.button){if(t.events.isEnabled("rightclick")&&!de.isPaused){r={type:"rightclick",target:t,event:i};t.events.dispatchImmediately("rightclick",r)}}else if(t.events.isEnabled("hit")&&!de.isPaused){r={type:"hit",target:t,event:i,point:e.point,touch:e.touch};t.events.dispatchImmediately("hit",r)}},e.prototype.handleOver=function(t,e,i,n){if(void 0===n&&(n=!1),t.hoverable&&(this.processDelayed(),t.overPointers.moveValue(e),!t.isHover&&(t.isHover=!0,this.overObjects.moveValue(t),this.handleTrack(this.body,e,i,!0),t.events.isEnabled("over")&&!de.isPaused))){var r={type:"over",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("over",r)}},e.prototype.handleOut=function(t,e,i,n,r){var s=this;if(void 0===n&&(n=!1),void 0===r&&(r=!1),t.hoverable&&(t.overPointers.removeValue(e),t.isHover&&(!t.hasDelayedOut||r))){if(n&&t.overPointers.length)return;if(e.touch&&!r&&!this.old(e)){var o=this.getHoverOption(t,"touchOutBehavior");if("leave"==o)return this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:Pr()+500}),void(t.hasDelayedOut=!0);if("delay"==o&&this.getHoverOption(t,"touchOutDelay"))return void this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:Pr()+500,timeout:this.setTimeout(function(){s.handleOut(t,e,i,!0)},this.getHoverOption(t,"touchOutDelay"))})}if(t.isHover=!1,this.overObjects.removeValue(t),t.events.isEnabled("out")&&!de.isPaused){var a={type:"out",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("out",a)}t.overPointers.clear(),t.hasDelayedOut=!1}},e.prototype.processDelayed=function(){for(var t;t=this._delayedEvents.out.pop();)t.timeout&&t.timeout.dispose(),this.handleOut(t.io,t.pointer,t.event,!1,!0)},e.prototype.handleDown=function(t,e,i){if(this.maybePreventDefault(t,i,e),t.inert&&this.stopInertia(t),this.handleOver(t,e,i,!0),t.downPointers.moveValue(e),this.applyCursorDownStyle(t,e),t.isDown||(!1!==t.focusable&&this.getHitOption(t,"noFocus")&&this.focusedObject&&er(),t.isDown=!0,this.downObjects.moveValue(t),t.draggable&&this.processDragStart(t,e,i),t.resizable&&this.processResizeStart(t,e,i)),t.events.isEnabled("down")&&!de.isPaused){var n={type:"down",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("down",n)}},e.prototype.handleGlobalUp=function(t,e,i){var n=this;void 0===i&&(i=!1),Qt(this.downObjects.backwards().iterator(),function(r){r&&r.downPointers.contains(t)&&n.handleUp(r,t,e,i)})},e.prototype.handleUp=function(t,e,i,n){if(void 0===n&&(n=!1),this.restoreCursorDownStyle(t,e),t.downPointers.removeValue(e),(e.touch||this._useTouchEventsOnly)&&this.handleOut(t,e,i,!0),t.isDown){if(0==t.downPointers.length&&(t.isDown=!1,this.downObjects.removeValue(t)),t.events.isEnabled("up")&&!de.isPaused){var r={type:"up",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("up",r)}n||(t.swipeable&&this.swiped(t,e)?this.handleSwipe(t,e,i):(t.clickable&&!this.moved(e,this.getHitOption(t,"hitTolerance"))&&this.handleHit(t,e,i),t.inert&&this.moved(e,this.getHitOption(t,"hitTolerance"))?this.handleInertia(t,e):t.draggable&&this.processDragStop(t,e,i),t.resizable&&this.processResizeStop(t,e,i)))}},e.prototype.maybePreventDefault=function(t,e,i){!w(e)||!(t.draggable||t.swipeable||t.trackable||t.resizable)||this.isGlobalElement(t)||!1===e.cancelable||t.isTouchProtected&&i&&i.touch||e.preventDefault()},e.prototype.handleGlobalMove=function(t,e){var i,n=this;if(!t.touch){var r="function"==typeof(i=t.lastEvent).composedPath?i.composedPath()[0]:i.target;Qt(this.overObjects.backwards().iterator(),function(i){if(i&&i.overPointers.contains(t)&&i.hoverable){var s=!1;i.element&&t.lastEvent&&ir(i.element,r)||(s=!0),s&&n.handleOut(i,t,e,!0)}})}Qt(this.transformedObjects.backwards().iterator(),function(i){!i.downPointers.contains(t)||i.swipeable&&n.swiping(i,t)||!i.draggable&&!i.resizable||n.handleTransform(i,e)}),Qt(this.trackedObjects.backwards().iterator(),function(i){i.overPointers.contains(t)||n.handleTrack(i,t,e)})},e.prototype.handleTrack=function(t,e,i,n){if(void 0===n&&(n=!1),(n||this.moved(e,0))&&t.events.isEnabled("track")&&!de.isPaused){var r={type:"track",target:t,event:i,point:e.point,pointer:e,touch:e.touch};t.events.dispatchImmediately("track",r)}},e.prototype.handleSwipe=function(t,e,i){if(t.events.isEnabled("swipe")&&!de.isPaused){var n={type:"swipe",target:t,event:i,touch:e.touch};t.events.dispatchImmediately("swipe",n)}if(e.startPoint.x<e.point.x){if(t.events.isEnabled("swiperight")&&!de.isPaused){n={type:"swiperight",target:t,event:i,touch:e.touch};t.events.dispatchImmediately("swiperight",n)}}else if(t.events.isEnabled("swipeleft")&&!de.isPaused){n={type:"swipeleft",target:t,event:i,touch:e.touch};t.events.dispatchImmediately("swipeleft",n)}},e.prototype.handleWheel=function(t,e,i,n,r){var s={x:i,y:n};t.events.isEnabled("wheel")&&!de.isPaused&&t.events.dispatchImmediately("wheel",{type:"wheel",target:t,event:r,point:e.point,shift:s}),i<0?t.events.isEnabled("wheelleft")&&!de.isPaused&&t.events.dispatchImmediately("wheelleft",{type:"wheelleft",target:t,event:r,point:e.point,shift:s}):i>0?t.events.isEnabled("swiperight")&&!de.isPaused&&t.events.dispatchImmediately("wheelright",{type:"wheelright",target:t,event:r,point:e.point,shift:s}):n<0?t.events.isEnabled("wheelup")&&!de.isPaused&&t.events.dispatchImmediately("wheelup",{type:"wheelup",target:t,event:r,point:e.point,shift:s}):n>0&&t.events.isEnabled("wheeldown")&&!de.isPaused&&t.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:t,event:r,point:e.point,shift:s})},e.prototype.handleInertia=function(t,e){t.draggable&&0===t.downPointers.length&&this.handleMoveInertia(t,e),t.resizable&&t.downPointers.length>1&&this.handleResizeInertia(t,e)},e.prototype.handleMoveInertia=function(t,e){var i=t,n={x:e.point.x,y:e.point.y},r={x:e.startPoint.x,y:e.startPoint.y},s=new mr(i,"move",n,r),o=this.getTrailPoint(e,Pr()-this.getInertiaOption(t,"move","time"));if(void 0!==o){var a=this.getInertiaOption(t,"move","factor"),l=[{to:e.point.x+(e.point.x-o.point.x)*a,property:"x"},{to:e.point.y+(e.point.y-o.point.y)*a,property:"y"}],h=new Un(s,l,this.getInertiaOption(t,"move","duration"),this.getInertiaOption(t,"move","easing")).start();this._disposers.push(h.events.on("animationended",function(t){s.done()})),t.inertias.setKey("move",s)}else this.processDragStop(t,e,e.lastUpEvent)},e.prototype.handleResizeInertia=function(t,e){},e.prototype.handleTransform=function(t,e){var i,n,r,s=t.downPointers.getIndex(0),o=null,a=null;s&&(o=s.point,a=s.startPoint),r=n={x:t.originalPosition.x,y:t.originalPosition.y};for(var l=!0,h=1;h<t.downPointers.length;h++){var u=t.downPointers.getIndex(h);if(a.x!=u.startPoint.x&&a.y!=u.startPoint.y){l=!1,n=(i=u).point,r=i.startPoint;break}}var p=s&&this.moved(s,0);if(t.draggable&&s&&s.dragStartEvents&&s.dragStartEvents.length&&p&&t.events.isEnabled("dragstart")&&!de.isPaused&&t.events.dispatchImmediately("dragstart",s.dragStartEvents.shift()),l&&t.draggable)this.handleTransformMove(t,o,a,e,p,s.touch);else{var c=i&&this.moved(i,0);t.draggable&&t.resizable?(this.handleTransformMove(t,o,a,e,p&&c,s.touch),this.handleTransformResize(t,o,a,n,r,e,p&&c,s.touch)):(t.draggable&&this.handleTransformMove(t,o,a,e,p,s.touch),!t.resizable||l&&!e.ctrlKey||this.handleTransformResize(t,o,a,n,r,e,p&&c,s.touch))}},e.prototype.handleTransformMove=function(t,e,i,n,r,s){if(r&&t.events.isEnabled("drag")&&!de.isPaused&&(!t.isTouchProtected||!s)){var o={type:"drag",target:t,event:n,shift:{x:e.x-i.x,y:e.y-i.y},startPoint:i,point:e,touch:s};t.events.dispatchImmediately("drag",o)}},e.prototype.handleTransformResize=function(t,e,i,n,r,s,o,a){if(t.events.isEnabled("resize")&&!de.isPaused&&(!t.isTouchProtected||!a)){var l={type:"resize",target:t,event:s,scale:Z(e,i,n,r),startPoint1:i,point1:e,startPoint2:r,point2:n,touch:a};t.events.dispatchImmediately("resize",l)}},e.prototype.processDragStart=function(t,e,i){this.transformedObjects.moveValue(t);var n={type:"dragstart",target:t,event:i,touch:!!e&&e.touch};e&&(e.dragTarget=t),e&&e.dragStartEvents?e.dragStartEvents.push(n):de.isPaused||t.dispatchImmediately("dragstart",n)},e.prototype.processDragStop=function(t,e,i){if(e||(e=this.getDragPointer(t)),e&&(e.dragTarget=void 0),this.transformedObjects.removeValue(t),(!e||this.moved(e,0))&&t.events.isEnabled("dragstop")&&!de.isPaused){var n={type:"dragstop",target:t,touch:!!e&&e.touch};t.events.dispatchImmediately("dragstop",n)}},e.prototype.processResizeStart=function(t,e,i){this.transformedObjects.moveValue(t)},e.prototype.processResizeStop=function(t,e,i){this.transformedObjects.removeValue(t)},e.prototype.dragStart=function(t,e){e||(e=this.getDragPointer(t)),e&&this.handleDown(t,e,e.lastDownEvent)},e.prototype.dragStop=function(t,e){e||(e=this.getDragPointer(t)),e&&this.handleGlobalUp(e,e.lastUpEvent)},e.prototype.getDragPointer=function(t){return t?t.downPointers.getIndex(0):this.transformedObjects.length?this.getDragPointer(this.transformedObjects.getIndex(0)):void 0},e.prototype.getPointerId=function(t){return(w(t.identifier)?""+t.identifier:w(t.pointerId)?""+t.pointerId:"m").replace("-","")},e.prototype.getPointerPoint=function(t){return{x:t.clientX,y:t.clientY}},e.prototype.getPointer=function(t){var e,i=this.getPointerId(t),n=this.getPointerPoint(t);return this.pointers.hasKey(i)?(e=this.pointers.getKey(i)).touch=this.isPointerTouch(t):(e={id:i,touch:this.isPointerTouch(t),startPoint:n,startTime:Pr(),point:n,track:[],swipeCanceled:!1,dragStartEvents:[]},this.addBreadCrumb(e,n),this.pointers.setKey(i,e)),e.lastEvent=t,e},e.prototype.isPointerTouch=function(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&w(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(w(t.type)&&t.type.match(/^mouse/))return!1;return!0},e.prototype.resetPointer=function(t,e){var i=this.getPointerPoint(e);t.startTime=Pr(),t.startPoint={x:i.x,y:i.y},t.point={x:i.x,y:i.y},t.track=[],t.swipeCanceled=!1},e.prototype.addBreadCrumb=function(t,e){t.track.push({timestamp:Pr(),point:e})},e.prototype.lockDocument=function(){this.prepElement(this.body)},e.prototype.unlockDocument=function(){0==this.transformedObjects.length&&this.restoreAllStyles(this.body)},e.prototype.lockElement=function(t){this.prepElement(t)},e.prototype.unlockElement=function(t){this.restoreAllStyles(t)},e.prototype.lockWheel=function(){window.addEventListener(this._pointerEvents.wheel,this.wheelLockEvent,!!this._passiveSupported&&{passive:!1})},e.prototype.unlockWheel=function(){window.removeEventListener(this._pointerEvents.wheel,this.wheelLockEvent)},e.prototype.isLocalElement=function(t,e,i){var n=this.getCache("local_pointer_"+t.id);if(w(n))return n;var r=(nr(e)||document).elementFromPoint(t.point.x,t.point.y),s=r&&ir(e,r);return this.setCache("local_pointer_"+t.id+"_"+i,s,100),s},e.prototype.wheelLockEvent=function(t){return t.preventDefault(),!1},e.prototype.prepElement=function(t){var e=t.element;if(e){for(var i=["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<i.length;n++)i[n]in e.style&&this.setTemporaryStyle(t,i[n],"none");this.setTemporaryStyle(t,"tapHighlightColor","rgba(0, 0, 0, 0)")}},e.prototype.unprepElement=function(t){var e=t.element;if(e){for(var i=["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<i.length;n++)i[n]in e.style&&this.restoreStyle(t,i[n]);this.restoreStyle(t,"tapHighlightColor")}},e.prototype.getHitOption=function(t,e){var i=t.hitOptions[e];return void 0===i&&(i=this.hitOptions[e]),i},e.prototype.getHoverOption=function(t,e){var i=t.hoverOptions[e];return void 0===i&&(i=this.hoverOptions[e]),i},e.prototype.getSwipeOption=function(t,e){var i=t.swipeOptions[e];return void 0===i&&(i=this.swipeOptions[e]),i},e.prototype.getKeyboardOption=function(t,e){var i=t.keyboardOptions[e];return void 0===i&&(i=this.keyboardOptions[e]),i},e.prototype.getInertiaOption=function(t,e,i){var n=t.inertiaOptions.getKey(e);return n&&w(n[i])?n[i]:this.inertiaOptions.getKey(e)[i]},e.prototype.stopInertia=function(t){for(var e,i=["move","resize"],n=0;n<i.length;n++)if(e=i[n],t.inertias.hasKey(e)){var r=t.inertias.getKey(e);if(r){r.dispose();continue}}},e.prototype.swiping=function(t,e){var i=Pr();return!(e.swipeCanceled||!t.swipeable)&&(Math.abs(e.startPoint.y-e.point.y)<this.getSwipeOption(t,"verticalThreshold")&&e.startTime>i-this.getSwipeOption(t,"time"))},e.prototype.swiped=function(t,e){var i=Pr();return!e.swipeCanceled&&(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>i-this.getSwipeOption(t,"time"))},e.prototype.applyCursorOverStyle=function(t){var e=t.cursorOptions;if(w(e.overStyle))for(var i=0;i<e.overStyle.length;i++)Qn(t.element,e.overStyle[i].property,e.overStyle[i].value)},e.prototype.applyCursorDownStyle=function(t,e){if(!e.touch){var i=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&w(i))for(var n=0;n<i.length;n++)this.setTemporaryStyle(this.body,i[n].property,i[n].value),this.setTemporaryStyle(t,i[n].property,i[n].value)}},e.prototype.restoreCursorDownStyle=function(t,e){if(!e.touch){var i=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&w(i))for(var n=0;n<i.length;n++)this.restoreStyle(this.body,i[n].property),this.restoreStyle(t,i[n].property)}},e.prototype.setGlobalStyle=function(t){for(var e=Ir().body,i=D(t)?t:[t],n=0;n<i.length;n++)this.setTemporaryStyle(e,i[n].property,i[n].value)},e.prototype.restoreGlobalStyle=function(t){for(var e=Ir().body,i=D(t)?t:[t],n=0;n<i.length;n++)this.restoreStyle(e,i[n].property)},e.prototype.isGlobalElement=function(t){return document.body===t.element},e.prototype.moved=function(t,e,i){void 0===i&&(i=300);var n=this.getShift(t);return Math.abs(n.x)>e||Math.abs(n.y)>e},e.prototype.old=function(t,e){return void 0===e&&(e=300),Pr()-t.startTime>e},e.prototype.getShift=function(t){return{x:t.startPoint.x-t.point.x,y:t.startPoint.y-t.point.y}},e.prototype.getTrailPoint=function(t,e){for(var i,n=0;n<t.track.length;n++)if(t.track[n].timestamp>=e){i=t.track[n];break}return i},e.prototype.pointerExists=function(t,e){var i=!1;return t.each(function(t){t!=e&&(i=t.point.x==e.point.x&&t.point.y==e.point.y)}),i},e.prototype.getInteraction=function(t){return new gr(t)},e.prototype.setTemporaryStyle=function(t,e,i){var n=t.element;w(n.style[e])&&!t.replacedStyles.hasKey(e)&&t.replacedStyles.setKey(e,n.style[e]),Qn(n,e,i)},e.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]},e.prototype.restoreAllStyles=function(t){Qt(t.replacedStyles.iterator(),function(e){var i=e[0],n=e[1];t.element.style[i]=n,t.replacedStyles.removeKey(i)})},e.prototype.dispose=function(){this.isDisposed()||(t.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},e.prototype.log=function(t,e,i){if(e.changedTouches)for(var n=0;n<e.changedTouches.length;n++)this.logTouch(t,e.type,e.changedTouches[n]);else{var r="";if(e.pointerType)switch(e.pointerType){case 2:r="touch";break;case 4:r="mouse";break;default:r=e.pointerType}else r="undefined"!=typeof TouchEvent&&e instanceof TouchEvent?"touch":e.type.match(/^mouse/)?"mouse":"???";var s="";s=w(e.identifier)?e.identifier:w(e.pointerId)?e.pointerId:"???",i?console.log(t+" ("+i.uid+")  "+e.type+"  "+r+"  "+s):console.log(t+"  "+e.type+"  "+r+"  "+s)}},e.prototype.logTouch=function(t,e,i){console.log(t+"  "+e+"  touch  "+i.identifier)},Object.defineProperty(e,"passiveSupported",{get:function(){var t=this;if(null==this._passiveSupported)try{var e=Object.defineProperty({},"passive",{get:function(){t._passiveSupported=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(t){this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),e}(Be),Or=null;function Ir(){return null==Or&&(Or=new Tr),Or}var Dr=function(t){function e(){var e=t.call(this)||this;return e.adapter=new Te(e),e._elements={},e._IOs={},e._content="",e._title="",e._classPrefix="ampopup",e._defaultStyles=!0,e._showCurtain=!1,e._draggable=!0,e._align="center",e._verticalAlign="middle",e._shift={x:0,y:0},e._tempShift={x:0,y:0},e._readerTitle="",e._closable=!0,e._cssLoaded=!1,e._fitTo="window",e.isTemplate=!1,e._sized=!1,e.className="Popup",e}return a(e,t),e.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"))},e.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()},e.prototype.dispose=function(){this.close(),t.prototype.dispose.call(this)},e.prototype.positionElement=function(t){var e=this;void 0===t&&(t=!0),this._elements.wrapper&&setTimeout(function(){if(e._elements.wrapper){if(t||!e._sized){if(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){var i=e._elements.wrapper.getBoundingClientRect();e._elements.wrapper.style.width=i.width+"px",e._elements.wrapper.style.height=i.height+"px"}e._sized=!0}setTimeout(function(){if(e._elements.wrapper){var i;switch(!t&&e._sized||!e._bbox?(i=e._elements.wrapper.getBoundingClientRect(),e._elements.wrapper.style.opacity=""):i=e._bbox,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(-i.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)}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(-i.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)}}},1)}},1)},e.prototype.setupDragging=function(){var t=this;this.draggable?(this._IOs.wrapper.events.has("drag")||this._IOs.wrapper.events.on("drag",function(e){t._tempShift.x=e.shift.x,t._tempShift.y=e.shift.y,t.positionElement(!1)}),this._IOs.wrapper.events.has("dragstop")||this._IOs.wrapper.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.wrapper&&(this._IOs.wrapper.events.has("drag")&&this._IOs.wrapper.events.off("drag"),this._IOs.wrapper.events.has("dragstop")&&this._IOs.wrapper.events.off("dragstop"))},e.prototype.toStyle=function(t){return w(t)?O(t)?t+"px":t.toString():null},Object.defineProperty(e.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",this._classPrefix)},set:function(t){this._classPrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classPrefixRaw",{get:function(){return this._classPrefix},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.getClassNames=function(){return this.adapter.apply("classNames",{wrapperClass:this.classPrefix+"",titleClass:this.classPrefix+"-title",contentClass:this.classPrefix+"-content",curtainClass:this.classPrefix+"-curtain",closeClass:this.classPrefix+"-close"})},e.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 i=document.createElement("a");i.className=t.closeClass;var n=document.createElement("div");n.innerHTML=this.title,n.className=t.titleClass,this.title||(n.style.display="none");var r=document.createElement("div");r.innerHTML=this.content,this._IOs.wrapper=Ir().getInteraction(e),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=Ir().getInteraction(i),this._disposers.push(this._IOs.close),i.style.visibility="hidden",e.setAttribute("role","dialog"),e.appendChild(i),e.appendChild(n),e.appendChild(r),this.container.appendChild(e),this._elements.wrapper=e,this._elements.content=r,this._elements.title=n,this._elements.close=i,this.defaultStyles&&this.loadDefaultCSS(),this.createCurtainElement(),this.applyEvents(),this.applyReaderSettings(),this.setupDragging()}},Object.defineProperty(e.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(e.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(e.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(e.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(e.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(e.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}),e.prototype.createCurtainElement=function(){var t=this.getClassNames(),e=document.createElement("div");e.className=t.curtainClass,this.container.appendChild(e),this._IOs.curtain=Ir().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(e.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(e.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(e.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(e.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(e.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(e.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(e.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(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),e.prototype.loadDefaultCSS=function(){var t;this._cssLoaded||(this._disposers.push(((t=this.classPrefix)||(t="ampopup"),dr.insertKeyIfEmpty(t,function(){var e=new Tt([new or("."+t,{overflow:"visible",position:"absolute",top:"0",left:"0","z-index":"2000"}),new or("."+t+"-curtain",{width:"100%",height:"100%",position:"absolute",top:"0",left:"0","z-index":"2001",background:"#fff",opacity:"0.5"}),new or("."+t+"-title",{"font-weight":"bold","font-size":"120%"}),new or("."+t+"-content",{padding:"1em 2em",background:"rgb(255, 255, 255);","background-color":"rgba(255, 255, 255, 0.8)",color:"#000",display:"inline-block",position:"absolute",top:"0",left:"0","max-width":"90%","max-height":"90%",overflow:"auto","z-index":"2002"}),new or("."+t+"-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 It(function(){dr.removeKey(t),e.dispose()})}).increment())),zt(this._elements,function(t,e){e.style.display=""}),this._cssLoaded=!0)},e.prototype.applyEvents=function(){var t=this;if(this._IOs.close)if(this.closable){this._IOs.close.element.style.visibility="visible";var e=[Ir().body.events.on("keyup",function(e){vr.isKey(e.event,"esc")&&t.closable&&t.close()}),this._IOs.close.events.on("hit",function(e){t.close()})];e.push(this._IOs.curtain.events.on("hit",function(e){t.showCurtain&&t.close()})),this._disposers.push(new Tt(e))}else this._IOs.close.element.style.visibility="hidden"},e.prototype.disablePointers=function(){this.sprite&&(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled,this.sprite.interactionsEnabled=!1)},e.prototype.releasePointers=function(){w(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled,this._spriteInteractionsEnabled=void 0)},e.prototype.applyReaderSettings=function(){this.elements.wrapper.setAttribute("aria-label",this.readerTitle)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.container=e.container,this.sprite=e.sprite,this.classPrefix=e.classPrefixRaw,this.content=e.content,this.title=e.title,this.readerTitle=e.readerTitle,this.defaultStyles=e.defaultStyles,this.showCurtain=e.showCurtain,this.align=e.align,this.verticalAlign=e.verticalAlign,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.adapter.copyFrom(e.adapter)},e}(Be),Ar=function(t){function e(){var e=t.call(this)||this;return e.adapter=new Te(e),e.className="Modal",e.showCurtain=!0,e.draggable=!1,e}return a(e,t),e}(Dr),Vr=i(139),Fr=i.n(Vr),Mr=[],jr=function(){function t(t){var e=this;this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this.htmlElement=t;var i=function(){e.measure()};this.resizeSensor=new Fr.a(t,i),this._disposers.push(new kt(function(){e.resizeSensor.detach(i)})),Mr.push(this);var n=document.createElement("div"),r=n.style;r.width="100%",r.height="100%",r.position="relative",t.appendChild(n),this.SVGContainer=n}return t.prototype.measure=function(){var t=Bi(this.htmlElement),e=Ni(this.htmlElement),i=this.container;i&&(this.width==t&&this.height==e||(this.width=t,this.height=e,t>0&&(i.maxWidth=t),e>0&&(i.maxHeight=e),rr(this.SVGContainer)),i.maxWidth||(i.maxWidth=0),i.maxHeight||(i.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.measure()},enumerable:!0,configurable:!0}),t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||mt(Mr,this),yt(this._disposers,function(t){t.dispose()})},Object.defineProperty(t.prototype,"hideOverflow",{set:function(t){this.SVGContainer.style.overflow=t?"hidden":""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modal",{get:function(){return w(this._modal)||(this._modal=new Ar,this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),t.prototype.openModal=function(t,e){this.closeModal();var i=this.modal;return i.content=t,i.readerTitle=e,i.open(),i},t.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(t.prototype,"popups",{get:function(){if(!w(this._popups)){var t=new Dr;t.container=this.SVGContainer,this._popups=new ve(t),this._disposers.push(new ge(this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),t.prototype.openPopup=function(t,e){var i=this.popups.create();return i.content=t,w(e)&&(i.title=e),i.open(),i},t.prototype.closeAllPopups=function(){this.popups.each(function(t){t.close()})},t.prototype.checkTransform=function(t){if(window.getComputedStyle){if(t&&t.style){var e=window.getComputedStyle(t,null);if(e){var i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(i&&"none"!==i){var n=i.split("(")[1].split(")")[0].split(","),r=Number(n[0]),s=Number(n[1]),o=Math.sqrt(r*r+s*s);isNaN(o)||(this.cssScale*=o)}}}t.parentNode&&t.parentNode instanceof HTMLElement&&this.checkTransform(t.parentNode)}},t}(),Er=function(){function t(t,e){this.container=t,this.id=e;var i=document.createElementNS(Gn,"svg");i.setAttribute("version","1.1"),i.setAttributeNS(Kn,"xmlns",Gn),i.setAttributeNS(Kn,"xmlns:xlink",qn),i.setAttribute("role","group"),this.container.appendChild(i);var n=document.createElementNS(Gn,"desc");n.appendChild(document.createTextNode("JavaScript chart by amCharts")),i.appendChild(n),this.defs=document.createElementNS(Gn,"defs"),i.appendChild(this.defs),i.style.width="100%",i.style.height="100%",i.style.overflow="visible",this.svg=i}return t.prototype.add=function(t){return new pr(t)},t.prototype.addGroup=function(t){return new cr(t)},t.prototype.append=function(t){t&&this.svg.appendChild(t.node)},t.prototype.appendDef=function(t){t&&this.defs.appendChild(t.node)},t.prototype.foreignObject=function(){return new pr("foreignObject")},t.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},t}(),Lr=null;function Rr(){if(null===Lr){var t=document.createElement("div");t.hidden=!0,document.body.appendChild(t);var e=new jr(t);Lr=new Er(e.SVGContainer,"ghost")}return Lr}var Br=function(t){function e(){var e=t.call(this)||this;return e._purposes={stroke:Ee("#e5e5e5"),fill:Ee("#f3f3f3"),primaryButton:Ee("#6794dc"),primaryButtonHover:Ee("#6771dc"),primaryButtonDown:Ee("#68dc75"),primaryButtonActive:Ee("#68dc75"),primaryButtonText:Ee("#FFFFFF"),primaryButtonStroke:Ee("#FFFFFF"),secondaryButton:Ee("#d9d9d9"),secondaryButtonHover:Ee("#d9d9d9").brighten(-.25),secondaryButtonDown:Ee("#d9d9d9").brighten(-.35),secondaryButtonActive:Ee("#d9d9d9").brighten(.35),secondaryButtonText:Ee("#000000"),secondaryButtonStroke:Ee("#FFFFFF"),grid:Ee("#000000"),background:Ee("#ffffff"),alternativeBackground:Ee("#000000"),text:Ee("#000000"),alternativeText:Ee("#FFFFFF"),disabledBackground:Ee("#999999"),positive:Ee("#67dc75"),negative:Ee("#dc6788")},e.className="InterfaceColorSet",e.applyTheme(),e}return a(e,t),e.prototype.debug=function(){},e.prototype.getFor=function(t){return this._purposes[t]},e.prototype.setFor=function(t,e){this._purposes[t]=e},e}(Re);pe.registeredClasses.InterfaceColorSet=Br;var Nr=function(t){function e(){var e=t.call(this)||this;e._elements=new me,e.properties={},e.className="Pattern",e.width=10,e.height=10,e.x=0,e.y=0,e.patternUnits="userSpaceOnUse";var i=new Br;return e.backgroundFill=i.getFor("background"),e.backgroundOpacity=0,e.fillOpacity=1,e.fill=i.getFor("alternativeBackground"),e.stroke=i.getFor("alternativeBackground"),e.strokeOpacity=1,e.strokeWidth=1,e.shapeRendering="crispEdges",e.rotation=0,e.element=e.paper.addGroup("pattern"),e.id="pattern-"+pe.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e._disposers.push(new ge(e._elements)),e.patternUnits=e.patternUnits,e.width=e.width,e.height=e.height,e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){var t=this,e=this.element;if(e){e.removeChildNodes();var i=this.paper.add("rect");i.attr({width:this.width,height:this.height,"shape-rendering":"crispEdges",fill:this.backgroundFill.hex,"fill-opacity":this.backgroundOpacity,stroke:this.backgroundFill.hex,"stroke-opacity":this.backgroundOpacity}),e.add(i),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}),Qt(this._elements.iterator(),function(e){e.rotation=t.rotation,t.element.add(e)})}},e.prototype.animate=function(t,e,i){return new Un(this,t,e,i).start()},e.prototype.addElement=function(t){this._elements.push(t),this._disposers.push(t)},e.prototype.removeElement=function(t){this._elements.removeValue(t),this.removeDispose(t)},Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this.properties.fillOpacity},set:function(t){this.properties.fillOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.properties.fill},set:function(t){this.properties.fill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundFill",{get:function(){return this.properties.backgroundFill},set:function(t){this.properties.backgroundFill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundOpacity",{get:function(){return this.properties.backgroundOpacity},set:function(t){this.properties.backgroundOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(t){this.properties.stroke=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this.properties.strokeOpacity},set:function(t){this.properties.strokeOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(t){this.properties.strokeWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shapeRendering",{get:function(){return this.properties.shapeRendering},set:function(t){this.properties.shapeRendering=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.properties.rotation},set:function(t){this.properties.rotation=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patternUnits",{get:function(){return this.properties.patternUnits},set:function(t){this.properties.patternUnits=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.properties.x},set:function(t){this.properties.x=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.properties.y},set:function(t){this.properties.y=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Rr()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),zt(e.properties,function(t,e){i[t]=e})},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Yn(this._animations))),this._animations},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(e&&w(e.elements)&&D(e.elements))for(var i=0,n=e.elements.length;i<n;i++){var r=e.elements[i];if(w(r.type)){var s=this.createEntryInstance(r);s instanceof Re&&(s.config=r),this.addElement(w(r.typeProperty)?s[r.typeProperty]:s.element)}}t.prototype.processConfig.call(this,e)},e}(Re);pe.registeredClasses.Pattern=Nr;var Hr=function(t){function e(){var e=t.call(this)||this;return e._stops=new me,e._rotation=0,e.className="LinearGradient",e._stops.events.on("setIndex",e.validate,e),e._stops.events.on("inserted",e.validate,e),e.element=e.paper.addGroup("linearGradient"),e.id="gradient-"+pe.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return a(e,t),e.prototype.validate=function(){var t=this,e=(this._rotation+90)*F,i=Math.round(50+50*Math.sin(e+Math.PI))+"%",n=Math.round(50+50*Math.cos(e))+"%",r=Math.round(50+50*Math.sin(e))+"%",s=Math.round(50+50*Math.cos(e+Math.PI))+"%",o=this.element;o.removeChildNodes(),o.attr({x1:i,x2:r,y1:n,y2:s}),Qt(ie(this._stops.iterator()),function(e){var i=e[0],n=e[1],r=n.offset;O(r)||(r=i/(t._stops.length-1));var s=t.paper.add("stop");w(n.color)&&s.attr({"stop-color":n.color.toString()}),O(n.opacity)&&s.attr({"stop-opacity":n.opacity}),O(r)&&s.attr({offset:r}),o.add(s)})},e.prototype.clear=function(){this._stops.clear()},e.prototype.addColor=function(t,e,i){this._stops.push({color:t,opacity:e,offset:i})},Object.defineProperty(e.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Rr()},set:function(t){this._paper!=t&&(this._paper=t,this.validate(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation=t,this.validate()},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this._rotation=e.rotation},e}(Re);pe.registeredClasses.LinearGradient=Hr;var Wr=function(t){function e(){var e=t.call(this)||this;return e._stops=new me,e.element=e.paper.addGroup("radialGradient"),e.id="gradient-"+pe.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){var t,e=this,i=this.element;O(this.cx)&&((t=this.cx)instanceof f&&(t=t.percent+"%"),i.attr({cx:t}));O(this.cy)&&((t=this.cy)instanceof f&&(t=t.percent+"%"),i.attr({cy:t}));this.fx&&((t=this.fx)instanceof f&&(t=t.percent+"%"),i.attr({fx:t}));this.fy&&((t=this.fy)instanceof f&&(t=t.percent+"%"),i.attr({fy:t}));i.removeChildNodes(),Qt(ie(this._stops.iterator()),function(t){var n=t[0],r=t[1],s=r.offset;O(s)||(s=n/(e._stops.length-1));var o=e.paper.add("stop");w(r.color)&&o.attr({"stop-color":r.color.toString()}),O(r.opacity)&&o.attr({"stop-opacity":r.opacity}),O(s)&&o.attr({offset:s}),i.add(o)})},e.prototype.addColor=function(t,e,i){this._stops.push({color:t,opacity:e,offset:i}),this.draw()},Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Rr()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cx",{get:function(){return this._cx},set:function(t){this._cx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cy",{get:function(){return this._cy},set:function(t){this._cy=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fx",{get:function(){return this._fx},set:function(t){this._fx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fy",{get:function(){return this._fy},set:function(t){this._fy=t,this.draw()},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this.cx=e.cx,this.cy=e.cy,this.fx=e.fx,this.fy=e.fy},Object.defineProperty(e.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._stops.clear()},e}(Re);pe.registeredClasses.RadialGradient=Wr;var Xr,zr=function(){function t(){}return t.grab=[{property:"cursor",value:"move"},{property:"cursor",value:"grab"},{property:"cursor",value:"-webkit-grab"}],t.grabbing=[{property:"cursor",value:"move"},{property:"cursor",value:"grabbing"},{property:"cursor",value:"-webkit-grabbing"}],t.pointer=[{property:"cursor",value:"pointer"}],t.default=[{property:"cursor",value:"default"}],t.horizontalResize=[{property:"cursor",value:"ew-resize"}],t.verticalResize=[{property:"cursor",value:"ns-resize"}],t}(),Yr={_decimalSeparator:".",_thousandSeparator:",",_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(t){var e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"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:"","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":""},Ur=function(t){function e(){var e=t.call(this)||this;return e.adapter=new Te(e),e._locale=Yr,e._defaultLocale=Yr,e.className="Language",w(ce.defaultLocale)&&(e.locale=ce.defaultLocale),e.applyTheme(),e}return a(e,t),e.prototype.getLocale=function(t){return null==t&&(t=this._locale),this.adapter.apply("locale",{locale:t}).locale},e.prototype.translate=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];e=this.getLocale(e);var r=t,s=this.getTranslations(e)[t];if(null===s)s="";else if(w(s))s&&(r=s);else if(e!==this._defaultLocale)return this.translate.apply(this,d([t,this._defaultLocale],i));if(i.length)for(var o=i.length,a=0;a<o;++a)r=r.split("%"+(a+1)).join(i[a]);return this.adapter.apply("translate",{translation:r,locale:e}).translation},e.prototype.translateAny=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.translate(t,e)},e.prototype.translateEmpty=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=this.translate.apply(this,d([t,e],i));return r==t?"":r},e.prototype.translateFunc=function(t,e){e=this.getLocale(e);var i=this.getTranslations(e)[t];return null!=i?i:e!==this._defaultLocale?this.translateFunc(t,this._defaultLocale):function(){return""}},e.prototype.translateAll=function(t,e){var i=this;return this.isDefault()?t:gt(t,function(t){return i.translate(t,e)})},e.prototype.isDefault=function(){return this._defaultLocale===this._locale},Object.defineProperty(e.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}),e.prototype.getTranslations=function(t){return this.adapter.apply("translations",{translations:t,locale:t}).translations},e}(Be),Gr=function(t){function e(){var e=t.call(this)||this;return e.adapter=new Te(e),e.className="TextFormatter",e.applyTheme(),e}return a(e,t),e.prototype.debug=function(){},e.prototype.format=function(t,e){w(e)||(e="svg");var i="",n=(t=this.escape(t)).match(/\[([^\]]*?)\]/gm);if(!n)return this.wrap(t,"",e);for(var r=t.split(/\[[^\[\]]*\]/),s=0,o=r.length;s<o;s++){var a=r[s];if(""!==a){a=this.adapter.apply("chunk",a);var l="";s>0&&(l=n[s-1].replace("[","").replace("]","")),i+=this.wrap(a,l,e)}}return i=this.unescape(i),this.cleanUp(i)},e.prototype.escape=function(t){return t.replace(/\[\[/g,pe.getPlaceholder("1")).replace(/([^\/]{1})\]\]/g,"$1"+pe.getPlaceholder("2")).replace(/\{\{/g,pe.getPlaceholder("3")).replace(/\}\}/g,pe.getPlaceholder("4")).replace(/\'\'/g,pe.getPlaceholder("5"))},e.prototype.unescape=function(t){return t.replace(new RegExp(pe.getPlaceholder("1"),"g"),"[[").replace(new RegExp(pe.getPlaceholder("2"),"g"),"]]").replace(new RegExp(pe.getPlaceholder("3"),"g"),"{{").replace(new RegExp(pe.getPlaceholder("4"),"g"),"}}").replace(new RegExp(pe.getPlaceholder("5"),"g"),"'")},e.prototype.cleanUp=function(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},e.prototype.wrap=function(t,e,i){switch(""!==e&&"/"!==e||(e=""),i){case"html":return this.wrapHtml(t,this.translateStyleShortcuts(e));default:return this.wrapSvg(t,this.translateStyleShortcuts(e))}},e.prototype.wrapSvg=function(t,e){return""===e?"<tspan>"+t+"</tspan>":"<tspan style='"+e+"'>"+t+"</tspan>"},e.prototype.getSvgElement=function(t,e){var i=new pr("tspan");return i.textContent=t,e&&i.node.setAttribute("style",e),i},e.prototype.wrapHtml=function(t,e){return""===e?"<span>"+t+"</span>":"<span style='"+this.styleSvgToHtml(e)+"'>"+t+"</span>"},e.prototype.getHtmlElement=function(t,e){var i=document.createElement("span");return i.innerHTML=t,e&&i.setAttribute("style",e),i},e.prototype.styleSvgToHtml=function(t){return t=t.replace(/fill:/,"color:")},e.prototype.translateStyleShortcuts=function(t){if(""==t||"[ ]"==t)return"";var e=pe.getCache("translateStyleShortcuts_"+t);if(e)return e;var i=t.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);if(!i)return t;for(var n=0;n<i.length;n++)i[n].match(/^bold$/i)?i[n]="font-weight:"+i[n]:"/"==i[n]?i[n]="":i[n].match(/:/)||(i[n]="fill:"+i[n]);var r=i.join(";");return pe.setCache("translateStyleShortcuts_"+t,r),r},e.prototype.chunk=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=[];t=this.escape(t);for(var r=e?t.split("'"):[t],s=0;s<r.length;s++){var o=r[s];if(""!==o)if(s%2==0)for(var a=(o=(o=o.replace(/\]\[/g,"]"+ze+"[")).replace(/\[\]/g,"[ ]")).split(/[\[\]]+/),l=0;l<a.length;l++){(h=this.cleanUp(this.unescape(a[l])))!==ze&&(""!==h&&(l%2==0?n.push({type:"value",text:this.adapter.apply("chunk",h)}):n.push({type:i?"value":"format",text:"["+h+"]"})))}else for(a=o.split(/[\[\]]+/),l=0;l<a.length;l++){var h;""!==(h=this.cleanUp(this.unescape(a[l])))&&(l%2==0?n.push({type:"text",text:h}):this.isImage(h)?n.push({type:"image",text:"["+h+"]"}):n.push({type:"format",text:"["+h+"]"}))}}return n},e.prototype.isImage=function(t){return!!t.match(/img[ ]?:/)},e}(Re);function Kr(){return null==Xr&&(Xr=new Gr),Xr}pe.registeredClasses.TextFormatter=Gr;var qr=function(t){function e(){var e=t.call(this)||this;return e._negativeBase=0,e._numberFormat="#,###.#####",e._outputFormat="svg",e.className="NumberFormatter",e.applyTheme(),e}return a(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.language&&this.language.dispose()},Object.defineProperty(e.prototype,"language",{get:function(){return this._language||(this.sprite?this._language=this.sprite.language:this._language=new Ur),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),e.prototype.format=function(t,e){void 0!==e&&"number"!==e.toLowerCase()||(e=this._numberFormat),e=gi(e);var i,n=this.parseFormat(e,this.language),r=Number(t);return(i=r>this._negativeBase?n.positive:r<this._negativeBase?n.negative:n.zero).template.split(ze).join(this.applyFormat(r,i))},e.prototype.parseFormat=function(t,e){var i=this,n=this.getCache(t);if(w(n))return n;var r={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}},s=(t=t.replace("||","__§§§§__")).split("|");return r.positive.source=s[0],void 0===s[2]?r.zero=r.positive:r.zero.source=s[2],void 0===s[1]?r.negative=r.positive:r.negative.source=s[1],zt(r,function(t,e){if(!e.parsed)if(void 0===i.getCache(e.source)){var n=e.source;"number"===n.toLowerCase()&&(n=i._numberFormat);for(var s=Kr().chunk(n,!0),o=0;o<s.length;o++){var a=s[o];if(a.text=a.text.replace("__§§§§__","|"),"value"===a.type){var l=a.text.match(/[#0.,]+[ ]?[abesABES%!]?[abesABES‰!]?/);if(l)if(null===l||""===l[0])e.template+=a.text;else{var h=l[0].match(/[abesABES%‰!]{2}|[abesABES%‰]{1}$/);h&&(e.mod=h[0].toLowerCase(),e.modSpacing=!!l[0].match(/[ ]{1}[abesABES%‰!]{1}$/));var u=l[0].split(".");if(""===u[0]);else{e.thousands.active=(u[0].match(/0/g)||[]).length,e.thousands.passive=(u[0].match(/\#/g)||[]).length+e.thousands.active;var p=u[0].split(",");1===p.length||(e.thousands.interval=C(p.pop()).length,0===e.thousands.interval&&(e.thousands.interval=-1))}void 0===u[1]||(e.decimals.active=(u[1].match(/0/g)||[]).length,e.decimals.passive=(u[1].match(/\#/g)||[]).length+e.decimals.active),e.template+=a.text.split(l[0]).join(ze)}}else e.template+=a.text}i.setCache(e.source,e),e.parsed=!0}else r[t]=i.getCache(e.source)}),this.setCache(t,r),r},e.prototype.applyFormat=function(t,e){var i=t<0;t=Math.abs(t);var n="",r="",s=e.mod?e.mod.split(""):[];if(-1!==s.indexOf("b")){var o=this.applyPrefix(t,this.bytePrefixes,-1!==s.indexOf("!"));t=o[0],n=o[1],r=o[2],e.modSpacing&&(r=" "+r)}else if(-1!==s.indexOf("a")){var a=this.applyPrefix(t,t<1?this.smallNumberPrefixes:this.bigNumberPrefixes,-1!==s.indexOf("!"));t=a[0],n=a[1],r=a[2],e.modSpacing&&(r=" "+r)}else if(-1!==s.indexOf("%")){var l=t.toString().length;t*=100,t=parseFloat(t.toPrecision(l+2)),r="%"}else if(-1!==s.indexOf("‰")){l=t.toString().length;t*=1e3,t=parseFloat(t.toPrecision(l+3)),r="‰"}if(-1!==s.indexOf("e")){var h=void 0;h=e.decimals.passive>=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(h[0]),r="e"+h[1],e.modSpacing&&(r=" "+r)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){var u=Math.pow(10,e.decimals.passive);t=Math.round(t*u)/u}var p="",c=vi(t).split("."),d=c[0];if(d.length<e.thousands.active&&(d=Array(e.thousands.active-d.length+1).join("0")+d),e.thousands.interval>0){for(var f=[],g=d.split("").reverse().join(""),y=0,m=d.length;y<=m;y+=e.thousands.interval){var v=g.substr(y,e.thousands.interval).split("").reverse().join("");""!==v&&f.unshift(v)}d=f.join(e.thousands.separator)}p+=d,1===c.length&&c.push("");var b=c[1];return b.length<e.decimals.active&&(b+=Array(e.decimals.active-b.length+1).join("0")),""!==b&&(p+=e.decimals.separator+b),""===p&&(p="0"),0!==t&&i&&-1===s.indexOf("s")&&(p="-"+p),n&&(p=n+p),r&&(p+=r),p},e.prototype.applyPrefix=function(t,e,i){void 0===i&&(i=!1);for(var n=t,r="",s="",o=!1,a=1,l=0,h=e.length;l<h;l++)e[l].number<=t&&(0===e[l].number?n=0:(n=t/e[l].number,a=e[l].number),r=e[l].prefix,s=e[l].suffix,o=!0);return!o&&i&&e.length&&0!=t&&(n=t/e[0].number,r=e[0].prefix,s=e[0].suffix,o=!0),o&&(n=parseFloat(n.toPrecision(a.toString().length+Math.floor(n).toString().replace(/[^0-9]*/g,"").length))),[n,r,s]},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(e.prototype,"numberFormat",{get:function(){return this._numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"negativeBase",{get:function(){return this._negativeBase},set:function(t){this._negativeBase=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bigNumberPrefixes",{get:function(){return w(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(e.prototype,"smallNumberPrefixes",{get:function(){return w(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(e.prototype,"bytePrefixes",{get:function(){return w(this._bytePrefixes)||(this._bytePrefixes=[{number:0,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(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e.prototype.escape=function(t){return t.replace("||","__§§§§__")},e.prototype.unescape=function(t){return t.replace("__§§§§__","|")},e}(Re);pe.registeredClasses.NumberFormatter=qr;var Zr=function(t){function e(){var e=t.call(this)||this;return e._dateFormat="yyyy-MM-dd",e._inputDateFormat="yyyy-MM-dd",e._utc=!1,e._firstDayOfWeek=1,e._months=["January","February","March","April","May","June","July","August","September","October","November","December"],e._monthsShort=["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e._weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e._weekdaysShort=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e._outputFormat="svg",e.capitalize=!0,e.className="DateFormatter",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"language",{get:function(){return this._language},set:function(t){this._language=t,this.dateFormat=this._language.translate("_date")},enumerable:!0,configurable:!0}),e.prototype.format=function(t,e){this.language||(this.sprite?this.language=this.sprite.language:this.language=new Ur),void 0!==e&&""!==e||(e=this._dateFormat),e=gi(e);var i,n=this.parseFormat(e);if(i=T(t)?this.parse(t):bi(t),w(this.timezoneOffset)&&i.setMinutes(i.getMinutes()+i.getTimezoneOffset()-this.timezoneOffset),!O(i.getTime()))return this.language.translate("Invalid date");var r=this.applyFormat(i,n,this.language);return this.capitalize&&(r=r.replace(/^.{1}/,r.substr(0,1).toUpperCase())),r},e.prototype.parseFormat=function(t){var e=this.getCache(t);if(w(e))return e;for(var i={template:"",parts:[]},n=Kr().chunk(t,!0),r=0;r<n.length;r++){var s=n[r];if("value"===s.type){s.text.match(/^date$/i)&&(s.text=this._dateFormat);var o=s.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|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(o)for(var a=0;a<o.length;a++)i.parts.push(o[a]),s.text=s.text.replace(o[a],ze)}i.template+=s.text}return this.setCache(t,i),i},e.prototype.applyFormat=function(t,e,i){var n,r,s,o,a,l,h,u,p=e.template,c=t.getTimezoneOffset(),d=t.getTime();this.utc?(n=t.getUTCFullYear(),r=t.getUTCMonth(),s=t.getUTCDay(),o=t.getUTCDate(),a=t.getUTCHours(),l=t.getUTCMinutes(),h=t.getUTCSeconds(),u=t.getUTCMilliseconds()):(n=t.getFullYear(),r=t.getMonth(),s=t.getDay(),o=t.getDate(),a=t.getHours(),l=t.getMinutes(),h=t.getSeconds(),u=t.getMilliseconds());for(var f=0,g=e.parts.length;f<g;f++){var y="";switch(e.parts[f]){case"G":y=i.translate(n<0?"_era_bc":"_era_ad");break;case"yyyy":y=Math.abs(n).toString(),n<0&&(y+=i.translate("_era_bc"));break;case"yyy":case"yy":case"y":y=Math.abs(n).toString().substr(-e.parts[f].length),n<0&&(y+=i.translate("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":var m=n;1==Pi(t)&&s>1&&m--,y="YYYY"==e.parts[f]?Math.abs(m).toString():Math.abs(m).toString().substr(-e.parts[f].length),m<0&&(y+=i.translate("_era_bc"));break;case"u":break;case"MMMMM":y=i.translate(this._months[r]).substr(0,1);break;case"MMMM":y=i.translate(this._months[r]);break;case"MMM":y=i.translate(this._monthsShort[r]);break;case"MM":y=di(r+1,2,"0");break;case"M":y=(r+1).toString();break;case"ww":y=di(Pi(t,this.utc),2,"0");break;case"w":y=Pi(t,this.utc).toString();break;case"W":y=wi(t,this.utc).toString();break;case"dd":y=di(o,2,"0");break;case"d":y=o.toString();break;case"DD":case"DDD":y=di(_i(t,this.utc).toString(),e.parts[f].length,"0");break;case"D":y=_i(t,this.utc).toString();break;case"F":case"g":break;case"t":y=i.translateFunc("_dateOrd").call(this,o);break;case"E":y=(s||7).toString();break;case"EE":y=di((s||7).toString(),2,"0");break;case"EEE":case"eee":y=i.translate(this._weekdaysShort[s]);break;case"EEEE":case"eeee":y=i.translate(this._weekdays[s]);break;case"EEEEE":case"eeeee":y=i.translate(this._weekdays[s]).substr(0,1);break;case"e":case"ee":y=(s-this.firstDayOfWeek+1).toString(),"ee"==e.parts[f]&&(y=di(y,2,"0"));break;case"a":y=a>=12?i.translate("PM"):i.translate("AM");break;case"aa":y=a>=12?i.translate("P.M."):i.translate("A.M.");break;case"aaa":y=a>=12?i.translate("P"):i.translate("A");break;case"h":y=Si(a).toString();break;case"hh":y=di(Si(a),2,"0");break;case"H":y=a.toString();break;case"HH":y=di(a,2,"0");break;case"K":y=Si(a,0).toString();break;case"KK":y=di(Si(a,0),2,"0");break;case"k":y=(a+1).toString();break;case"kk":y=di(a+1,2,"0");break;case"m":y=l.toString();break;case"mm":y=di(l,2,"0");break;case"s":y=h.toString();break;case"ss":y=di(h,2,"0");break;case"S":case"SS":case"SSS":y=Math.round(u/1e3*Math.pow(10,e.parts[f].length)).toString();break;case"x":y=d.toString();break;case"n":case"nn":case"nnn":y=di(u,e.parts[f].length,"0");break;case"z":y=ki(t,!1,!1,this.utc);break;case"zz":y=ki(t,!0,!1,this.utc);break;case"zzz":y=ki(t,!1,!0,this.utc);break;case"zzzz":y=ki(t,!0,!0,this.utc);break;case"Z":case"ZZ":var v=Math.abs(c)/60,b=Math.floor(v),x=60*v-60*b;this.utc&&(b=0,x=0),"Z"==e.parts[f]?(y="GMT",y+=c>0?"-":"+",y+=di(b,2)+":"+di(x,2)):(y=c>0?"-":"+",y+=di(b,2)+di(x,2));break;case"i":y=t.toISOString();break;case"I":y=t.toUTCString()}p=p.replace(ze,y)}return p},e.prototype.parse=function(t,e){if(w(e)||(e=this.inputDateFormat),t instanceof Date)return t;if("number"==typeof t)return new Date(t);var i;"string"!=typeof t&&(t=t.toString()),this.language||(this.sprite?this.language=this.sprite.language:this.language=new Ur);var n="";e=(e=gi(e)).substr(0,t.length);for(var r=this.parseFormat(e),s={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},o={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},a=0,l=0,h=0;h<r.parts.length;h++){switch(l=h+a+1,r.parts[h]){case"yyyy":case"YYYY":n+="([0-9]{4})",s.year=l;break;case"yyy":case"YYY":n+="([0-9]{3})",s.year3=l;break;case"yy":case"YY":n+="([0-9]{2})",s.year2=l;break;case"y":case"Y":n+="([0-9]{1})",s.year1=l;break;case"MMMM":n+="("+this.getStringList(this._months).join("|")+")",s.monthLong=l;break;case"MMM":n+="("+this.getStringList(this._monthsShort).join("|")+")",s.monthShort=l;break;case"MM":case"M":n+="([0-9]{2}|[0-9]{1})",s.month=l;break;case"ww":case"w":n+="([0-9]{2}|[0-9]{1})",s.week=l;break;case"dd":case"d":n+="([0-9]{2}|[0-9]{1})",s.day=l;break;case"DDD":case"DD":case"D":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",s.yearDay=l;break;case"dddd":n+="("+this.getStringList(this._weekdays).join("|")+")",s.weekdayLong=l;break;case"ddd":n+="("+this.getStringList(this._weekdaysShort).join("|")+")",s.weekdayShort=l;break;case"aaa":case"aa":case"a":n+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",s.am=l;break;case"hh":case"h":n+="([0-9]{2}|[0-9]{1})",s.hour12Base1=l;break;case"HH":case"H":n+="([0-9]{2}|[0-9]{1})",s.hourBase0=l;break;case"KK":case"K":n+="([0-9]{2}|[0-9]{1})",s.hour12Base0=l;break;case"kk":case"k":n+="([0-9]{2}|[0-9]{1})",s.hourBase1=l;break;case"mm":case"m":n+="([0-9]{2}|[0-9]{1})",s.minute=l;break;case"ss":case"s":n+="([0-9]{2}|[0-9]{1})",s.second=l;break;case"SSS":case"SS":case"S":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",s.millisecond=l,s.millisecondDigits=r.parts[h].length;break;case"nnn":case"nn":case"n":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",s.millisecond=l;break;case"x":n+="([0-9]{1,})",s.timestamp=l;break;case"Z":n+="GMT([-+]+[0-9]{2}:[0-9]{2})",s.zone=l;break;case"ZZ":n+="([\\-+]+[0-9]{2}[0-9]{2})",s.zone=l;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]{3})([Zz]?)",s.iso=l,a+=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":case"zzz":case"zz":case"z":case"t":a--}n+="[^0-9]*"}var u=new RegExp(n),p=t.match(u);if(p){if(s.year>-1&&(o.year=parseInt(p[s.year])),s.year3>-1){var c=parseInt(p[s.year3]);c+=1e3,o.year=c}if(s.year2>-1){c=parseInt(p[s.year2]);c+=c>50?1e3:2e3,o.year=c}if(s.year1>-1){c=parseInt(p[s.year1]);c=10*Math.floor((new Date).getFullYear()/10)+c,o.year=c}if(s.monthLong>-1&&(o.month=this.resolveMonth(p[s.monthLong])),s.monthShort>-1&&(o.month=this.resolveShortMonth(p[s.monthShort])),s.month>-1&&(o.month=parseInt(p[s.month])-1),s.week>-1&&-1===s.day&&(o.month=0,o.day=Ci(parseInt(p[s.week]),o.year,1,this.utc)),s.day>-1&&(o.day=parseInt(p[s.day])),s.yearDay>-1&&(o.month=0,o.day=parseInt(p[s.yearDay])),s.hourBase0>-1&&(o.hour=parseInt(p[s.hourBase0])),s.hourBase1>-1&&(o.hour=parseInt(p[s.hourBase1])-1),s.hour12Base0>-1)11==(c=parseInt(p[s.hour12Base0]))&&(c=0),s.am>-1&&!this.isAm(p[s.am])&&(c+=12),o.hour=c;if(s.hour12Base1>-1)12==(c=parseInt(p[s.hour12Base1]))&&(c=0),s.am>-1&&!this.isAm(p[s.am])&&(c+=12),o.hour=c;if(s.minute>-1&&(o.minute=parseInt(p[s.minute])),s.second>-1&&(o.second=parseInt(p[s.second])),s.millisecond>-1){c=parseInt(p[s.millisecond]);2==s.millisecondDigits?c*=10:1==s.millisecondDigits&&(c*=100),o.millisecond=c}if(s.timestamp>-1&&(o.timestamp=parseInt(p[s.timestamp])),s.zone>-1){var d=C(p[s.zone].replace(/:/,"").match(/([+\-]?)([0-9]{2})([0-9]{2})/)),f=d[1],g=d[2],y=d[3],m=60*parseInt(g)+parseInt(y);"+"==f&&(m*=-1);var v=m-(new Date).getTimezoneOffset();o.offset=v}s.iso>-1&&("Z"!=p[s.iso+7]&&"z"!=p[s.iso+7]||(o.utc=!0),o.year=x(p[s.iso+0]),o.month=x(p[s.iso+1])-1,o.day=x(p[s.iso+2]),o.hour=x(p[s.iso+3]),o.minute=x(p[s.iso+4]),o.second=x(p[s.iso+5]),o.millisecond=x(p[s.iso+6])),i=o.utc?new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond)):new Date(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond)}else i=new Date(t);return i},e.prototype.resolveMonth=function(t){var e=this._months.indexOf(t);return e>-1?e:this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this._months).indexOf(t))>-1?e:0},e.prototype.resolveShortMonth=function(t){var e=this._monthsShort.indexOf(t);return e>-1?e:this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this._monthsShort).indexOf(t))>-1?e:0},e.prototype.isAm=function(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},e.prototype.getStringList=function(t){for(var e=[],i=0;i<t.length;i++)e.push(si(t[i])),this.language&&!this.language.isDefault()&&e.push(si(this.language.translate(t[i])));return e},Object.defineProperty(e.prototype,"dateFormat",{get:function(){return this._dateFormat},set:function(t){this._dateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputDateFormat",{get:function(){return this._inputDateFormat},set:function(t){this._inputDateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"utc",{get:function(){return this._utc},set:function(t){this._utc=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezoneOffset",{get:function(){return this._timezoneOffset},set:function(t){this._timezoneOffset!=t&&(this._timezoneOffset=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(t){this._firstDayOfWeek=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e}(Re);pe.registeredClasses.DateFormatter=Zr;var $r=function(t){function e(){var e=t.call(this)||this;return e._negativeBase=0,e._baseUnit="second",e._outputFormat="svg",e._unitValues={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},e._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"},e.className="DurationFormatter",e.applyTheme(),e}return a(e,t),e.prototype.format=function(t,e,i){this.language||(this.sprite?this.language=this.sprite.language:this.language=new Ur);var n=i||this._baseUnit;void 0!==e&&""!==e||(e=w(this.durationFormat)?this.durationFormat:this.getFormat(x(t),null,n)),e=gi(e);var r,s=this.parseFormat(e,n),o=Number(t);r=o>this._negativeBase?s.positive:o<this._negativeBase?s.negative:s.zero;var a=this.applyFormat(o,r);return""!==r.color&&("svg"===this._outputFormat?a="<tspan fill='"+r.color+"'>"+a+"</tspan>":"html"===this._outputFormat&&(a="<span style='color: "+r.color+";'>"+a+"</span>")),a},e.prototype.parseFormat=function(t,e){var i=this,n=this.getCache(t);if(w(n))return n;var r=e||this._baseUnit,s={positive:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1}},o=(t=t.replace("||","__§§§§__")).split("|");return s.positive.source=o[0],void 0===o[2]?s.zero=s.positive:s.zero.source=o[2],void 0===o[1]?s.negative=s.positive:s.negative.source=o[1],zt(s,function(t,e){if(!e.parsed)if(void 0===i.getCache(e.source)){var n,r=e.source;(n=e.source.match(/^\[([^\]]*)\]/))&&n.length&&""!==n[0]&&(r=e.source.substr(n[0].length),e.color=n[1]);for(var o=Kr().chunk(r,!0),a=0;a<o.length;a++){var l=o[a];if(l.text=l.text.replace("__§§§§__","|"),"value"===l.type){l.text.match(/[yYMdDwhHKkmsSn]+a/)&&(e.absolute=!0,l.text=l.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));var h=l.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(h)for(var u=0;u<h.length;u++)w(h[u])||(h[u]=i._unitAliases[h[u]]),e.parts.push(h[u]),l.text=l.text.replace(h[u],ze)}e.template+=l.text}i.setCache(e.source,e),e.parsed=!0}else s[t]=i.getCache(e.source)}),this.setCache(t,s),s},e.prototype.applyFormat=function(t,e){var i=!e.absolute&&t<this._negativeBase;t=Math.abs(t);for(var n=this.toTimeStamp(t,e.baseUnit),r=e.template,s=0,o=e.parts.length;s<o;s++){var a=e.parts[s],l=this.toTimeUnit(a.substr(0,1)),h=a.length,u=Math.floor(n/this._unitValues[l]);r=r.replace(ze,di(u,h,"0")),n-=u*this._unitValues[l]}return i&&(r="-"+r),r},e.prototype.toTimeStamp=function(t,e){return t*this._unitValues[e]},e.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"}},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(e.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e.prototype.getFormat=function(t,e,i){if(w(this.durationFormat))return this.durationFormat;if(i||(i=this.baseUnit),w(e)&&t!=e){t=Math.abs(t),e=Math.abs(e);var n=this.getValueUnit(X(t,e),i);return this.durationFormats[i][n]}var r=this.getValueUnit(t,i);return this.durationFormats[i][r]},e.prototype.getValueUnit=function(t,e){var i;e||(e=this.baseUnit);var n=this.getMilliseconds(t,e);return Xt(this._unitValues,function(t,r){if(t==e||i){if(n/r<=1)return i||(i=t),!1;i=t}return!0}),i},e.prototype.getMilliseconds=function(t,e){return e||(e=this.baseUnit),t*this._unitValues[e]},Object.defineProperty(e.prototype,"durationFormat",{get:function(){return this._durationFormat},set:function(t){this._durationFormat!=t&&(this._durationFormat=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e}(Re);pe.registeredClasses.DurationFormatter=$r;var Jr,Qr=new le,ts=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._invalid=!1,e}return a(e,t),e.prototype.invalidate=function(){!1===this._invalid&&(this._invalid=!0,pe.events.on("exitframe",this.validate,this))},e.prototype.validate=function(){!0===this._invalid&&(this._invalid=!1,pe.events.off("exitframe",this.validate,this))},e}(Be),es=function(t){function e(){var e=t.call(this)||this;return e.adapter=new Te(e),e.closeDelay=1e3,e.closeOnClick=!0,e._language=new Ot,e._menuTag="ul",e._itemTag="li",e._labelTag="a",e._iconTag="img",e._classPrefix="amexport",e._defaultStyles=!0,e._align="right",e._verticalAlign="top",e._tabindex=0,e._ignoreNextClose=!1,e._items=[{label:"...",menu:[{label:"Image",menu:[{type:"png",label:"PNG"},{type:"jpg",label:"JPG"},{type:"gif",label:"GIF"},{type:"svg",label:"SVG"},{type:"pdf",label:"PDF"}]},{label:"Data",menu:[{type:"json",label:"JSON"},{type:"csv",label:"CSV"},{type:"xlsx",label:"XLSX"}]},{label:"Print",type:"print"}]}],e.className="ExportMenu",e._disposers.push(e._language),e.invalidate(),e.applyTheme(),e}return a(e,t),e.prototype.validate=function(){this.draw(),t.prototype.validate.call(this)},e.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"),C(this._container).appendChild(this._element);for(var e=this.adapter.apply("items",{items:this._items}).items,i=e.length,n=0;n<i;n++)this.drawBranch(this._element,e[n],0);this._element=this.adapter.apply("menuElement",{menuElement:this._element}).menuElement,this._disposers.push(Ir().body.events.on("down",function(e){e.pointer.touch||(t._ignoreNextClose=!1),t.close()})),this._disposers.push(Ir().body.events.on("keyup",function(e){var i=vr.getEventKey(e.event);switch(i){case"esc":t.close();break;case"up":case"down":case"left":case"right":t.moveSelection(i)}})),this.defaultStyles&&this.loadDefaultCSS()},e.prototype.drawBranch=function(t,e,i){var n=this;if(!0!==(e=this.adapter.apply("branch",{branch:e,level:i}).branch).unsupported){e.ascendants||(e.ascendants=new me);var r,s=e.type,o=this.createItemElement(i,s);e.icon?((r=this.createIconElement(i,s)).src=e.icon,e.label&&(r.title=e.label)):e.svg?(r=this.createSvgElement(i,s,e.svg),e.label&&(r.title=e.label)):(r=this.createLabelElement(i,s)).innerHTML=e.label?this.language.translate(e.label):"";var a=this.getReaderLabel(e,r.innerHTML);r.setAttribute("aria-label",a),o.appendChild(r),e.interactions=Ir().getInteraction(r),e.element=o,this.typeClickable(s)&&(e.interactions.events.on("hit",function(t){if(n.events.isEnabled("hit")){var i={type:"hit",event:t.event,target:n,branch:e};n.events.dispatchImmediately("hit",i)}}),e.interactions.events.on("keyup",function(t){if(vr.isKey(t.event,"enter")&&n.events.isEnabled("enter")){var i={type:"enter",event:t.event,target:n,branch:e};n.events.dispatchImmediately("enter",i)}}));var l=this.getSubMenu(e);null!=l&&(e.interactions.events.on("keyup",function(t){vr.isKey(t.event,"enter")&&(n.selectBranch(l[0]),n.setFocus(l[0]))}),e.interactions.events.on("hit",function(t){n.selectBranch(e)})),e.interactions.events.on("over",function(t){if(t.pointer.touch&&(n._ignoreNextClose=!0),n.selectBranch(e),n.events.isEnabled("over")){var i={type:"over",event:t.event,target:n,branch:e};n.events.dispatchImmediately("over",i)}}),e.interactions.events.on("out",function(t){if(t.pointer.touch||n.delayUnselectBranch(e),n.events.isEnabled("out")){var i={type:"out",event:t.event,target:n,branch:e};n.events.dispatchImmediately("out",i)}}),e.interactions.events.on("focus",function(t){n.selectBranch(e)}),e.interactions.events.on("blur",function(t){n.delayUnselectBranch(e)});var h=i+1;if(e.menu){for(var u=this.createMenuElement(h),p=e.menu.length,c=0;c<p;c++){var d=new me;e.menu[c].ascendants=d,e.ascendants.length&&d.copyFrom(e.ascendants),d.push(e),this.drawBranch(u,e.menu[c],h)}if(""==u.innerHTML)return;o.appendChild(u)}e.hidden&&this.hideBranch(e),e.id&&o.setAttribute("id",e.id),e.color&&(o.style.backgroundColor=e.color.hex),t.appendChild(o)}},e.prototype.createMenuElement=function(t){var e=document.createElement(this.menuTag);return e.className=this.getMenuItemClass(t),0===t&&e.setAttribute("role","menu"),e},e.prototype.getMenuItemClass=function(t){var e=this.classPrefix+"-menu "+this.classPrefix+"-menu-level-"+t;return 0===t&&(e+=" "+this.classPrefix+"-menu-root "+this.classPrefix+"-"+this.align+" "+this.classPrefix+"-"+this.verticalAlign),this.adapter.apply("menuClass",{className:e,level:t}).className},e.prototype.createItemElement=function(t,e){var i=document.createElement(this.itemTag),n=this.classPrefix+"-item "+this.classPrefix+"-item-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return i.className=this.adapter.apply("itemClass",{className:n,level:t,type:e}).className,i},e.prototype.createLabelElement=function(t,e){var i=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"),i.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,i.setAttribute("tabindex",this.tabindex.toString()),i.setAttribute("role","menuitem"),i},e.prototype.createIconElement=function(t,e){var i=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"),i.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,i.setAttribute("tabindex",this.tabindex.toString()),i.setAttribute("role","menuitem"),i},e.prototype.createSvgElement=function(t,e,i){var n=(new DOMParser).parseFromString(i,"image/svg+xml").documentElement,r=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(r+=" "+this.classPrefix+"-clickable"),n.setAttribute("class",this.adapter.apply("labelClass",{className:r,level:t,type:e}).className),n.setAttribute("tabindex",this.tabindex.toString()),n.setAttribute("role","menuitem"),n},e.prototype.dispose=function(){this._disposed||(t.prototype.dispose.call(this),this._element&&this._element.parentNode&&this._element.parentNode.removeChild(this._element))},e.prototype.typeClickable=function(t){return w(t)},e.prototype.hasSubMenu=function(t){return!(!t.menu||!t.menu.length)},e.prototype.getSubMenu=function(t){if(t.menu&&t.menu.length)return t.menu},e.prototype.getReaderLabel=function(t,e){return e=yi(e),this.hasSubMenu(t)?e+=" ["+this.language.translate("Click, tap or press ENTER to open")+"]":"print"==t.type?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(e.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tag",{set:function(t){this._menuTag=t,this._itemTag="ul"==t?"li":"div",this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menuTag",{get:function(){return this.adapter.apply("menuTag",{tag:this._menuTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemTag",{get:function(){return this.adapter.apply("itemTag",{tag:this._itemTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelTag",{get:function(){return this.adapter.apply("labelTag",{tag:this._labelTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconTag",{get:function(){return this.adapter.apply("iconTag",{tag:this._iconTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adapter.apply("align",{align:this._align}).align},set:function(t){this._align=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.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}),e.prototype.loadDefaultCSS=function(){var t,e,i;this._disposers.push((t=this.classPrefix,e=t||"amexport",i=new Br,Qr.insertKeyIfEmpty(e,function(){var t=new Tt([new or("."+e+"-menu-level-0",{position:"absolute",top:"5px",right:"5px"}),new or("."+e+"-menu-level-0."+e+"-left",{right:"auto",left:"5px"}),new or("."+e+"-menu-level-0."+e+"-right",{right:"5px",left:"auto"}),new or("."+e+"-menu-level-0."+e+"-top",{top:"5px",bottom:"auto"}),new or("."+e+"-menu-level-0."+e+"-bottom",{top:"auto",bottom:"5px"}),new or("."+e+"-item."+e+"-item-level-0",{opacity:"0.3",width:"30px","min-height":"30px",transition:"all 100ms ease-in-out"}),new or("div:hover ."+e+"-item."+e+"-item-level-0, ."+e+"-item."+e+"-item-level-0.active",{opacity:"0.9"}),new or("."+e+"-item."+e+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new or("."+e+"-item."+e+"-item-level-0:before",{display:"block"}),new or("."+e+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":i.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:i.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new or("."+e+"-left ."+e+"-item",{margin:"1px 0 0 1px"}),new or("."+e+"-item:hover, ."+e+"-item.active",{background:i.getFor("secondaryButtonHover").hex,color:i.getFor("secondaryButtonText").hex}),new or("."+e+"-item > ."+e+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new or("."+e+"-left ."+e+"-item > ."+e+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new or("."+e+"-right ."+e+"-item > ."+e+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new or("."+e+"-top ."+e+"-item > ."+e+"-menu",{top:"-1px",bottom:"auto"}),new or("."+e+"-bottom ."+e+"-item > ."+e+"-menu",{top:"auto",bottom:"0"}),new or("."+e+"-item > ."+e+"-menu",{display:"none"}),new or("."+e+"-item:hover > ."+e+"-menu, ."+e+"-item.active > ."+e+"-menu",{display:"block"}),new or("."+e+"-item:hover > ."+e+"-menu > ."+e+"-item, ."+e+"-item.active > ."+e+"-menu > ."+e+"-item",{opacity:"1"}),new or("."+e+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new or("."+e+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new or("."+e+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"20px","min-height":"20px",margin:"auto auto","border-radius":"3px"}),new or("."+e+"-item-level-0 > ."+e+"-icon",{padding:"0.1em 0.2em"}),new or("."+e+"-clickable",{cursor:"pointer"})]);return new It(function(){Qr.removeKey(e),t.dispose()})}).increment())),this._element&&(this._element.style.display="")},Object.defineProperty(e.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(e.prototype,"language",{get:function(){var t=this,e=this._language.get();return null==e&&(e=new Ur,this._language.set(e,e.events.on("localechanged",function(e){t.invalidate()}))),e},set:function(t){var e=this;this._language.set(t,t.events.on("localechanged",function(t){e.invalidate()})),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.close=function(){var t=this;if(this._ignoreNextClose)this._ignoreNextClose=!1;else{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"),i=e.length-1;i>=0;i--)e[i]&&Jn(e[i],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},e.prototype.selectBranch=function(t){var e=this;if(t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),$n(t.interactions.element.parentElement,"active"),this._currentSelection&&this._currentSelection!==t&&this._currentSelection.ascendants&&Qt(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var i=!0,n=function(t){return i=e(t)},r=t.length,s=0;s<r&&(t[s](n),i);++s);}}(Zt([this._currentSelection]),this._currentSelection.ascendants.iterator()),function(i){t.ascendants.contains(i)||t===i||e.unselectBranch(i,!0)}),Qt(t.ascendants.iterator(),function(t){t.closeTimeout&&(e.removeDispose(t.closeTimeout),t.closeTimeout=void 0),$n(t.interactions.element.parentElement,"active")}),this._currentSelection=t,this.events.isEnabled("branchselected")){var i={type:"branchselected",target:this,branch:t};this.events.dispatchImmediately("branchselected",i)}},e.prototype.unselectBranch=function(t,e){if(Jn(t.interactions.element.parentElement,"active"),this._currentSelection==t&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected")){var i={type:"branchunselected",target:this,branch:t};this.events.dispatchImmediately("branchunselected",i)}},e.prototype.delayUnselectBranch=function(t,e){var i=this;t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),t.closeTimeout=this.setTimeout(function(){i.unselectBranch(t,e)},this.closeDelay),!0!==e&&t.ascendants&&Qt(t.ascendants.iterator(),function(t){i.delayUnselectBranch(t,!0)})},e.prototype.moveSelection=function(t){if(this._currentSelection){var e;if("up"==t)e=this.getPrevSibling(this._currentSelection);else if("down"==t)e=this.getNextSibling(this._currentSelection);else if("left"==t&&"right"==this.align||"right"==t&&"left"==this.align){var i=this.getSubMenu(this._currentSelection);null!=i&&(e=i[0])}else("right"==t&&"right"==this.align||"left"==t&&"left"==this.align)&&(e=this.getParentItem(this._currentSelection));e&&e!==this._currentSelection&&(this.selectBranch(e),this.setFocus(e),this._currentSelection=e)}},e.prototype.getSiblings=function(t){var e=this.getParentItem(t);return e&&e.menu?e.menu:[]},e.prototype.getParentItem=function(t){return t.ascendants&&t.ascendants.length?t.ascendants.getIndex(t.ascendants.length-1):void 0},e.prototype.getNextSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)+1;return e[i=e.length==i?0:i].unsupported?this.getNextSibling(e[i]):e[i]}return t},e.prototype.getPrevSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)-1;return e[i=-1==i?e.length-1:i].unsupported?this.getPrevSibling(e[i]):e[i]}return t},e.prototype.setFocus=function(t){if(t.interactions)try{t.interactions.element.focus()}catch(t){}},e.prototype.setBlur=function(t){if(t.interactions)try{t.interactions.element.blur()}catch(t){}},e.prototype.hideBranch=function(t){t.element.style.display="none"},e.prototype.showBranch=function(t){t.element.style.display=""},e}(ts);function is(t,e,i){return new Promise(function(n,r){var s=w(i)&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=function(){if(200===o.status){var t=void 0,i=void 0;s?i=o.response:t=o.responseText||o.response;var a={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};n(a)}else r({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=function(){r({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),w(i)){if(w(i.requestHeaders))for(var a=0;a<i.requestHeaders.length;a++){var l=i.requestHeaders[a];o.setRequestHeader(l.key,l.value)}w(i.responseType)&&(o.responseType=i.responseType)}o.send()})}var ns=/src: ([^;]+);/;function rs(t,e){return h(this,void 0,void 0,function(){var i,n;return u(this,function(r){switch(r.label){case 0:return[4,is(t)];case 1:i=r.sent(),(n=document.createElement("style")).textContent=i.response,document.head.appendChild(n),r.label=2;case 2:return r.trys.push([2,,4,5]),[4,e(n.sheet)];case 3:return[2,r.sent()];case 4:return document.head.removeChild(n),[7];case 5:return[2]}})})}function ss(t,e,i){return h(this,void 0,void 0,function(){var n,r,s;return u(this,function(o){switch(o.label){case 0:for(n=[],r=function(r){var s=e.cssRules[r];if(s.type===CSSRule.IMPORT_RULE){var o=s.href;o&&(o=Ui(t,o),n.push(rs(o,function(t){return ss(o,t,i)})))}else i(t,s)},s=0;s<e.cssRules.length;s++)r(s);return n.length?[4,Promise.all(n)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})}function os(t){return h(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,Promise.all(gt(document.styleSheets,function(e){var i=e.href;return null==i?ss(location.href,e,t):rs(i=Ui(location.href,i),function(e){return ss(i,e,t)})}))];case 1:return e.sent(),[2]}})})}var as=function(t){function e(e){var i=t.call(this)||this;return i.adapter=new Te(i),i._formatOptions=new le,i._extraSprites=[],i._dynamicDataFields=!0,i._removedObjects=new me,i._hiddenObjects=[],i._objectsAlreadyHidden=!1,i._filePrefix="amCharts",i.useWebFonts=!0,i.useRetina=!0,i.useSimplifiedExport=!0,i.timeoutDelay=2e3,i._container=e,i.className="Export",i._formatOptions.setKey("png",{}),i._formatOptions.setKey("jpg",{quality:.8}),i._formatOptions.setKey("gif",{}),i._formatOptions.setKey("svg",{}),i._formatOptions.setKey("pdf",{fontSize:14,imageFormat:"png",addURL:!0}),i._formatOptions.setKey("json",{indent:2,useLocale:!0}),i._formatOptions.setKey("csv",{addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("xlsx",{addColumnNames:!0,useLocale:!0,emptyAs:""}),i._formatOptions.setKey("print",{delay:500,printMethod:"iframe"}),i.adapter.add("options",function(t){var e=i._formatOptions.getKey(t.type);return t.options?t.options=Ut(e,t.options):t.options=e,t}),i.applyTheme(),i.dispatchImmediately("inited"),i}return a(e,t),Object.defineProperty(e.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(t){return t.branch.unsupported=!e.typeSupported(t.branch.type),t}),this._menu.events.on("hit",function(t){e.export(t.branch.type,t.branch.options),e.menu.close()}),this._menu.events.on("enter",function(t){e.export(t.branch.type,t.branch.options),e.menu.close()}),this._menu.events.on("over",function(t){e._disablePointers()}),this._menu.events.on("out",function(t){e._releasePointers()}),this.dispatchImmediately("menucreated"),this._menu.adapter.add("classPrefix",function(t){return t.classPrefix=ce.classNamePrefix+t.classPrefix,t}),this._disposers.push(this._menu)},enumerable:!0,configurable:!0}),e.prototype.typeSupported=function(t){var e=!0;return"pdf"===t||("xlsx"===t?e=!!this._hasData():("print"!=t||window.print)&&(-1===["json","csv"].indexOf(t)||this._hasData())||(e=!1)),this.adapter.apply("supported",{supported:e,type:t}).supported},e.prototype._hasData=function(){return this.data&&this.data.length},e.prototype._getFunction=function(t){switch(t){case"png":case"gif":case"jpg":return this.getImage;case"svg":return this.getSVG;case"pdf":return this.getPDF;case"xlsx":return this.getExcel;case"csv":return this.getCSV;case"json":return this.getJSON;case"print":return this.getPrint;default:return this.unsupported}},e.prototype.export=function(t,e){return h(this,void 0,void 0,function(){var i,n,r,s,o,a=this;return u(this,function(l){switch(l.label){case 0:return"custom"==t?(this.handleCustom(e),[2,!0]):(this.events.isEnabled("exportstarted")&&(i={type:"exportstarted",target:this,format:t,options:e},this.events.dispatchImmediately("exportstarted",i)),this.showPreloader(),this.timeoutDelay&&(this.hideTimeout(),this._timeoutTimeout=this.setTimeout(function(){if(a.events.isEnabled("exporttimedout")){var i={type:"exporttimedout",target:a,format:t,options:e};a.events.dispatchImmediately("exporttimedout",i)}a.showTimeout()},this.timeoutDelay)),this.hideNonExportableSprites(),n=this._getFunction(t),e=this.adapter.apply("options",{options:e,type:t}).options,[4,(n=this.adapter.apply("exportFunction",{func:n,type:t,options:e}).func).call(this,t,e)]);case 1:return r=l.sent(),this.restoreNonExportableSprites(),r?(this.events.isEnabled("exportfinished")&&(s={type:"exportfinished",target:this,format:t,options:e},this.events.dispatchImmediately("exportfinished",s)),this.hidePreloader(),this.hideTimeout(),this.menu&&this.menu.close(),"print"===t?[2,this.print(r,e,this.adapter.apply("title",{title:this.title,options:e}).title)]:[2,this.download(r,this.filePrefix+"."+t)]):(this.events.isEnabled("error")&&(o={type:"error",target:this,format:t,options:e},this.events.dispatchImmediately("error",o)),[2,!1])}})})},e.prototype.unsupported=function(t,e){return h(this,void 0,void 0,function(){return u(this,function(t){return[2,""]})})},e.prototype.handleCustom=function(t){w(t)&&w(t.callback)&&t.callback.call(t.callbackTarget||this,t)},e.prototype.getPrint=function(t,e){return h(this,void 0,void 0,function(){return u(this,function(t){return[2,this.getImage("png",e)]})})},e.prototype.getFontFamilies=function(){return h(this,void 0,void 0,function(){var t,e,i,n,r=this;return u(this,function(s){switch(s.label){case 0:return t=this.getDOMURL(),e=[],i=[],[4,os(function(n,s){if(s.type===CSSRule.FONT_FACE_RULE){var o=s.cssText,a=ns.exec(o);if(null!==a){var l=a[1].split(/ *, */).map(function(i){return h(r,void 0,void 0,function(){var r,s,o,a,l,h;return u(this,function(u){switch(u.label){case 0:return null!==(r=/^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(i))?[3,1]:[2,i];case 1:s=r[2],o=Ui(n,r[1]),u.label=2;case 2:return u.trys.push([2,7,,8]),[4,is(o,void 0,{responseType:"blob"})];case 3:return a=u.sent(),null==window.navigator.msSaveOrOpenBlob?[3,4]:(l=t.createObjectURL(a.blob),e.push(l),[3,6]);case 4:return[4,(p=a.blob,new Promise(function(t,e){var i=new FileReader;i.onload=function(e){t(i.result)},i.onerror=function(t){e(t)},i.readAsDataURL(p)}))];case 5:l=u.sent(),u.label=6;case 6:return[2,'url("'+l+'")'+s];case 7:return h=u.sent(),console.error("Failed to load font",o,h),[2,null];case 8:return[2]}var p})})});i.push(Promise.all(l).then(function(t){return 0===(t=t.filter(function(t){return null!=t})).length?"":o.replace(ns,"src: "+t.join(", ")+";")}))}}})];case 1:return s.sent(),[4,Promise.all(i)];case 2:return n=s.sent(),[2,{blobs:e,cssText:n.filter(function(t){return!!t}).join("\n")}]}})})},e.prototype.getImage=function(t,e,i){return h(this,void 0,void 0,function(){var n,r,s,o;return u(this,function(a){switch(a.label){case 0:return(n=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),w(e)||(e=this.getFormatOptions(t)),[4,this.simplifiedImageExport()];case 1:if(!a.sent())return[3,9];a.label=2;case 2:return a.trys.push([2,6,,8]),[4,this.getCanvas(e)];case 3:return r=a.sent(),!1===i?[3,5]:[4,this.addExtras(r,e)];case 4:r=a.sent(),a.label=5;case 5:return s=r.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(r),n||this.restoreNonExportableSprites(),[2,s];case 6:return a.sent(),[4,this.getImageAdvanced(t,e,i)];case 7:return o=a.sent(),n||this.restoreNonExportableSprites(),[2,o];case 8:return[3,11];case 9:return[4,this.getImageAdvanced(t,e,i)];case 10:return o=a.sent(),n||this.restoreNonExportableSprites(),[2,o];case 11:return[2]}})})},e.prototype.addExtras=function(t,e,i){return h(this,void 0,void 0,function(){var n,r,s,o,a,l,p,c,d,f,g,y,m,v,b=this;return u(this,function(x){switch(x.label){case 0:return this.extraSprites.length?(n=0,r=0,s=t.width,o=t.height,a=0,l=0,[4,Promise.all(gt(this.extraSprites,function(t){return h(b,void 0,void 0,function(){var h,p,c,d;return u(this,function(u){switch(u.label){case 0:return(h=t instanceof hs?{sprite:t,position:"bottom"}:t).position=h.position||"bottom",h.marginTop=h.marginTop||0,h.marginRight=h.marginRight||0,h.marginBottom=h.marginBottom||0,h.marginLeft=h.marginLeft||0,i?[4,h.sprite.exporting.getCanvasAdvanced(e)]:[3,2];case 1:return p=u.sent(),[3,4];case 2:return[4,h.sprite.exporting.getCanvas(e)];case 3:p=u.sent(),u.label=4;case 4:return c=p.width+h.marginLeft+h.marginRight,d=p.height+h.marginTop+h.marginBottom,"top"==h.position?(s=X(s,c),r+=d):"right"==h.position?(o=X(o,d),a+=c):"left"==h.position?(o=X(o,d),n+=c):"bottom"===h.position&&(s=X(s,c),l+=d),[2,{canvas:p,position:h.position,left:h.marginLeft,top:h.marginTop,width:c,height:d}]}})})}))]):[3,2];case 1:return p=x.sent(),(c=this.getDisposableCanvas()).width=n+s+a,c.height=r+o+l,d=c.getContext("2d"),(f=this.backgroundColor||this.findBackgroundColor(this.sprite.dom))&&(d.fillStyle=f.toString(),d.fillRect(0,0,c.width,c.height)),m=(g=n)+s,v=(y=r)+o,yt(p,function(t){"top"==t.position?(y-=t.height,d.drawImage(t.canvas,n+t.left,y+t.top)):"right"==t.position?(d.drawImage(t.canvas,m+t.left,r+t.top),m+=t.width):"left"==t.position?(g-=t.width,d.drawImage(t.canvas,g+t.left,r+t.top)):"bottom"===t.position&&(d.drawImage(t.canvas,n+t.left,v+t.top),v+=t.height),b.disposeCanvas(t.canvas)}),d.drawImage(t,n,r),[2,c];case 2:return[2,t]}})})},e.prototype.getCanvas=function(t){return h(this,void 0,void 0,function(){var e,i,n,r,s,o,a,l,h,p,c,d,f,g,y,m;return u(this,function(u){switch(u.label){case 0:w(t)||(t={}),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),i=this.getDOMURL(),n=null,r=null,u.label=1;case 1:return u.trys.push([1,,4,5]),o=this.sprite.pixelWidth,a=this.sprite.pixelHeight,l=lr(this.sprite.dom),h=hr(this.sprite.dom),s=this.getDisposableCanvas(),p=this.getPixelRatio(t),s.style.width=o+"px",s.style.height=a+"px",s.width=o*p,s.height=a*p,c=s.getContext("2d"),1!=p&&c.setTransform(p,0,0,p,0,0),e&&(c.fillStyle=e.toString(),c.fillRect(0,0,o,a)),d=[],this.useWebFonts&&d.push(this.getFontFamilies().then(function(t){return r=t.blobs,t.cssText})),d.push(this.imagesToDataURI(this.sprite.dom,t)),d.push(this.prepForeignObjects(this.sprite.dom,t)),[4,Promise.all(d)];case 2:return f=u.sent(),g=this.normalizeSVG("<style>"+f[0]+"</style>"+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,o,a,l,h),y=new Blob([g],{type:"image/svg+xml"}),n=i.createObjectURL(y),[4,this.loadNewImage(n,o,a,"anonymous")];case 3:return m=u.sent(),c.drawImage(m,0,0),[3,5];case 4:return null!==n&&i.revokeObjectURL(n),null!==r&&yt(r,function(t){i.revokeObjectURL(t)}),this.restoreRemovedObjects(),[7];case 5:return[2,s]}})})},e.prototype.getCanvasAdvanced=function(t){return h(this,void 0,void 0,function(){var e,i,n,r,s,o,a,l,h,p;return u(this,function(u){switch(u.label){case 0:return w(t)||(t={}),[4,this.imagesToDataURI(this.sprite.dom,t)];case 1:return u.sent(),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),[4,this.canvg];case 2:return i=u.sent(),n=this.sprite.pixelWidth,r=this.sprite.pixelHeight,s=lr(this.sprite.dom),o=hr(this.sprite.dom),a=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,n,r,s,o,e),l=this.getDisposableCanvas(),h=this.getPixelRatio(t),l.style.width=n*h+"px",l.style.height=r*h+"px",l.width=n*h,l.height=r*h,p={useCORS:!0},1!=h&&(p.ignoreDimensions=!0,p.scaleWidth=n*h,p.scaleHeight=r*h),i(l,a,p),[2,l]}})})},e.prototype.getImageAdvanced=function(t,e,i){return h(this,void 0,void 0,function(){var n,r,s;return u(this,function(o){switch(o.label){case 0:return(n=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),w(e)||(e=this.getFormatOptions(t)),[4,this.getCanvasAdvanced(e)];case 1:return r=o.sent(),!1===i?[3,3]:[4,this.addExtras(r,e,!0)];case 2:r=o.sent(),o.label=3;case 3:return s=r.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(r),n||this.restoreNonExportableSprites(),[2,s]}})})},e.prototype.getDisposableCanvas=function(){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",document.body.appendChild(t),t},e.prototype.disposeCanvas=function(t){document.body.removeChild(t)},e.prototype.getPixelRatio=function(t){var e=t&&t.scale?t.scale:1;return(this.useRetina?ei():1)*e},e.prototype.imagesToDataURI=function(t,i){return h(this,void 0,void 0,function(){var n,r,s,o,a,l;return u(this,function(h){switch(h.label){case 0:if(!(n=t.querySelectorAll("image")).length)return[3,2];for(r=[],s=n.length,o=0;o<s;o++)a=n[o],(l=a.getAttributeNS(e.XLINK,"href"))&&(-1!==l.indexOf("data:image")||(-1!==l.indexOf(".svg")?r.push(this.svgToDataURI(a,i)):r.push(this.imageToDataURI(a,i))));return[4,Promise.all(r)];case 1:return h.sent(),[2];case 2:return[2]}})})},e.prototype.prepForeignObjects=function(t,e){return h(this,void 0,void 0,function(){var e,i,n;return u(this,function(r){if((e=t.querySelectorAll("foreignObject")).length)for(i=e.length,n=0;n<i;n++)this.temporarilyRemoveObject(e[n]);return[2]})})},e.prototype.imageToDataURI=function(t,i){return h(this,void 0,void 0,function(){var n,r,s;return u(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.loadNewImage(t.getAttributeNS(e.XLINK,"href"),null,null,"anonymous")];case 1:n=o.sent(),(r=document.createElement("canvas")).width=n.width,r.height=n.height,r.getContext("2d").drawImage(n,0,0);try{return s=r.toDataURL(),t.setAttribute("href",s),[2,s]}catch(e){return!1!==i.keepTainted&&this.temporarilyRemoveObject(t),[2,void 0]}return[3,3];case 2:return o.sent(),i&&!1===i.keepTainted||this.temporarilyRemoveObject(t),[2,void 0];case 3:return[2]}})})},e.prototype.svgToDataURI=function(t,i){return h(this,void 0,void 0,function(){var n,r,s,o;return u(this,function(a){switch(a.label){case 0:n=t.getAttributeNS(e.XLINK,"href"),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,is(n)];case 2:return r=a.sent(),s=this.adapter.apply("charset",{charset:"base64",type:"svg",options:i}).charset,o=this.adapter.apply("svgToDataURI",{data:"data:"+this.getContentType("svg")+";"+s+","+btoa(r.response),options:i}).data,t.setAttributeNS(e.XLINK,"href",o),[2,o];case 3:return a.sent(),i&&!1===i.keepTainted||this.temporarilyRemoveObject(t),[2,void 0];case 4:return[2]}})})},e.prototype.temporarilyRemoveObject=function(t,e){var i=t.parentElement||t.parentNode;e||(e=this.sprite.paper.add("g").node),i.insertBefore(e,t),t.textContent,i.removeChild(t),this._removedObjects.push({element:t,placeholder:e})},e.prototype.restoreRemovedObjects=function(){for(var t;t=this._removedObjects.pop();){(t.placeholder.parentElement||t.placeholder.parentNode).insertBefore(t.element,t.placeholder)}},e.prototype.simplifiedImageExport=function(){return h(this,void 0,void 0,function(){var t,e,i,n,r,s,o;return u(this,function(a){switch(a.label){case 0:if(!1===this.useSimplifiedExport)return[2,!1];if(!1===(t=pe.getCache("simplifiedImageExport"))||!0===t)return[2,t];a.label=1;case 1:a.trys.push([1,6,,7]),(e=document.createElement("canvas")).width=1,e.height=1,i=e.getContext("2d"),n=this.getDOMURL(),r=new Blob([this.normalizeSVG("<g></g>",{},1,1)],{type:"image/svg+xml"}),s=n.createObjectURL(r),o=void 0,a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.loadNewImage(s,1,1)];case 3:return o=a.sent(),[3,5];case 4:return a.sent(),[2,!1];case 5:i.drawImage(o,0,0),n.revokeObjectURL(s);try{return pe.setCache("simplifiedImageExport",!0),[2,!0]}catch(t){return pe.setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return a.sent(),pe.setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}})})},e.prototype.loadNewImage=function(t,e,i,n){return new Promise(function(r,s){var o;function a(){if(n){var e=o.src;o.onerror=function(){s(new Error('Loading image "'+t+'" failed'))},o.removeAttribute("crossorigin"),o.src="",o.src=e}else s(new Error('Loading image "'+t+'" failed'))}o=e&&i?new Image(e,i):new Image,n&&o.setAttribute("crossOrigin",n),o.onload=function(){r(o)},o.onabort=a,o.onerror=a,o.src=t})},e.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},e.prototype.getSVG=function(t,e){return h(this,void 0,void 0,function(){var i,n,r,s,o,a,l,h;return u(this,function(u){return(i=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),n=this.sprite.pixelWidth,r=this.sprite.pixelHeight,s=lr(this.sprite.dom),o=hr(this.sprite.dom),a=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,n,r,s,o),l=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:e}).charset,h=this.adapter.apply("getSVG",{data:"data:"+this.getContentType(t)+";"+l+","+encodeURIComponent(a),options:e}).data,i||this.restoreNonExportableSprites(),[2,h]})})},e.prototype.normalizeSVG=function(t,e,i,n,r,s,o){var a="";i&&(a+='width="'+i+'px" '),n&&(a+='height="'+n+'px" ');var l="";r&&(l+="font-family: "+r.replace(/"/g,"")+";"),s&&(l+="font-size: "+s+";"),t.match(/<svg/)?""!==a&&(t=(t=(t=t.replace(/(<svg[^>]*)width="[^"]*"/,"$1")).replace(/(<svg[^>]*)height="[^"]*"/,"$1")).replace(/(<svg)/,"$1"+a)):t='<?xml version="1.0" encoding="utf-8"?><svg '+a+' style="'+l+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+t+"</svg>",o&&(t=t.replace(/(<svg[^>]*>)/,'$1<rect width="100%" height="100%" fill="'+o.rgba+'"/>')),/MSIE |Trident\//.test(navigator.userAgent)&&(t=t.replace(/<feColorMatrix [^\/>]*\/>/gi,""));var h=new RegExp("url\\("+si(Ke()),"g");return t=t.replace(h,"url(#"),t=this.adapter.apply("normalizeSVG",{data:t,options:e}).data},e.prototype.serializeElement=function(t){return(new XMLSerializer).serializeToString(t)},e.prototype.getPDF=function(t,e){return h(this,void 0,void 0,function(){var t,i,n,r,s;return u(this,function(o){switch(o.label){case 0:return[4,this.getImage(e.imageFormat||"png",e)];case 1:return t=o.sent(),[4,this.pdfmake];case 2:return i=o.sent(),n=[30,30,30,30],r={pageSize:e.pageSize||"A4",pageOrientation:e.pageOrientation||"portrait",pageMargins:e.pageMargins||n,content:[]},(s=this.adapter.apply("title",{title:this.title,options:e}).title)&&r.content.push({text:s,fontSize:e.fontSize,bold:!0,margin:[0,0,0,15]}),e.addURL&&r.content.push({text:this.language.translate("Saved from")+": "+document.location.href,fontSize:e.fontSize,margin:[0,0,0,15]}),r.content.push({image:t,fit:this.getPageSizeFit(r.pageSize,r.pageMargins)}),r=this.adapter.apply("pdfmakeDocument",{doc:r,options:e}).doc,[4,new Promise(function(t,e){i.createPdf(r).getDataUrl(function(e){t(e)})})];case 3:return[2,o.sent()]}})})},e.prototype.getPageSizeFit=function(t,e){var i=[0,0,0,0];"number"==typeof e?i=[e,e,e,e]:2==e.length?i=[e[0],e[1],e[0],e[1]]:4==e.length&&(i=e);var n={"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]}[t];return n[0]-=i[0]+i[2],n[1]-=i[1]+i[3],n},e.prototype.getExcel=function(t,e){return h(this,void 0,void 0,function(){var i,n,r,s,o,a,l,h;return u(this,function(u){switch(u.label){case 0:return[4,this.xlsx];case 1:for(i=u.sent(),n=this.adapter.apply("xlsxWorkbookOptions",{options:{bookType:"xlsx",bookSST:!1,type:"base64"}}).options,r=this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName",{name:this.title||this.language.translate("Data")}).name),s={SheetNames:[r],Sheets:{}},o=[],a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"xslx"}).dataFields,e.addColumnNames&&o.push(this.getExcelRow(a,e)),l=this.data.length,h=0;h<l;h++)o.push(this.getExcelRow(this.data[h],e,a));return s.Sheets[r]=i.utils.aoa_to_sheet(o),[2,this.adapter.apply("getExcel",{data:"data:"+this.getContentType(t)+";base64,"+i.write(s,n),options:e}).data]}})})},e.prototype.normalizeExcelSheetName=function(t){return ai(t=t.replace(/([:\\\/?*\[\]]+)/g," "),31,"...",!0)},e.prototype.getExcelRow=function(t,e,i){var n=this,r=[];return i||(i=t),zt(i,function(i,s){var o=n.convertEmptyValue(i,t[i],e);r.push(n.convertToDateOrDuration(i,o,e,!0))}),r},e.prototype.getCSV=function(t,e){return h(this,void 0,void 0,function(){var i,n,r,s,o,a,l,h;return u(this,function(u){for(i="",n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,r="",s=this.data,o=s.length,a=0;a<o;a++)l=this.getCSVRow(s[a],e,n),e.reverse?i=l+r+i:i+=r+l,r="\n";return e.addColumnNames&&(i=this.getCSVRow(n,e,void 0,!0)+r+i),h=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getCSV",{data:"data:"+this.getContentType(t)+";"+h+","+encodeURIComponent(i),options:e}).data]})})},e.prototype.getCSVRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var s=e.separator||",",o=[];return i||(i=t),zt(i,function(i,a){var l=r.convertEmptyValue(i,t[i],e),h=n?l:r.convertToDateOrDuration(i,l,e);h=(h=""+h).replace(/"/g,'""'),(e.forceQuotes||h.search(new RegExp('"|\n|'+s,"g"))>=0)&&(h='"'+h+'"'),o.push(h)}),o.join(s)},e.prototype.getJSON=function(t,e){return h(this,void 0,void 0,function(){var i,n,r,s,o,a,l,h,p=this;return u(this,function(u){if(n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,this._dynamicDataFields)i=this.data;else for(i=[],r=this.data,s=function(t,s){var o=r[s];if("object"==typeof o){var a={};zt(o,function(t,i){w(n[t])&&(a[n[t]]=p.convertToDateOrDuration(t,i,e))}),i.push(a)}},o=r.length,a=0;a<o;a++)s(0,a);return l=JSON.stringify(i,function(t,i){return"object"==typeof i&&zt(i,function(t,n){i[t]=p.convertToDateOrDuration(t,n,e)}),i},e.indent),h=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getJSON",{data:"data:"+this.getContentType(t)+";"+h+","+encodeURIComponent(l),options:e}).data]})})},e.prototype.convertToDateOrDuration=function(t,e,i,n){if("number"==typeof e)if(this.isDateField(t))e=new Date(e);else if(this.isDurationField(t))return this.durationFormatter.format(e,this.durationFormat);return e instanceof Date?i.useTimestamps?e=e.getTime():i.useLocale?n||(e=e.toLocaleString()):e=this.dateFormatter.format(e,this.dateFormat):T(e)&&this.isDateField(t)&&this.dateFormat&&(e=this.dateFormatter.format(this.dateFormatter.parse(e),this.dateFormat)),e},e.prototype.convertEmptyValue=function(t,e,i){return w(e)?e:i.emptyAs},e.prototype.download=function(t,e){return h(this,void 0,void 0,function(){var i,n,r,s,o,a,l,h,p,c,d,f,g,y,m;return u(this,function(u){if(this.msBlobDownloadSupport()){if(f=t.split(";"),g=f.shift().replace(/data:/,""),t=decodeURIComponent(f.join(";").replace(/^[^,]*,/,"")),-1!=["image/svg+xml","application/json","text/csv"].indexOf(g))return i=new Blob([t],{type:g}),window.navigator.msSaveBlob(i,e),[2,!0];try{r=atob(t),t=r}catch(t){return[2,!1]}for(a=new Array(t.length),l=0;l<t.length;++l)h=t.charCodeAt(l),a[l]=h;p=new Blob([new Uint8Array(a)],{type:g}),window.navigator.msSaveBlob(p,e)}else if(this.blobDownloadSupport()){if((n=document.createElement("a")).download=e,document.body.appendChild(n),f=t.split(";"),g=f.shift().replace(/data:/,""),t=decodeURIComponent(f.join(";").replace(/^[^,]*,/,"")),-1!=["image/svg+xml","application/json","text/csv"].indexOf(g))return s=new Blob([t],{type:g}),o=window.URL.createObjectURL(s),n.href=o,n.download=e,n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(o)},100),[2,!0];try{r=atob(t),t=r}catch(t){return[2,!1]}for(a=new Array(t.length),l=0;l<t.length;++l)h=t.charCodeAt(l),a[l]=h;p=new Blob([new Uint8Array(a)],{type:g}),c=window.URL.createObjectURL(p),n.href=c,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(function(){window.URL.revokeObjectURL(c)},100)}else this.linkDownloadSupport()?((d=document.createElement("a")).download=e,d.href=t,document.body.appendChild(d),d.click(),document.body.removeChild(d)):this.legacyIE()?4===(f=t.match(/^data:(.*);[ ]*([^,]*),(.*)$/)).length&&("base64"==f[2]?f[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")):(g=void 0,e.match(/\.svg$/)?g="image/svg+xml":(g="text/plain",e+=".txt"),(y=document.createElement("iframe")).width="1px",y.height="1px",y.style.display="none",document.body.appendChild(y),(m=y.contentDocument).open(g,"replace"),m.write(decodeURIComponent(f[3])),m.close(),m.execCommand("SaveAs",!0,e),document.body.removeChild(y))):window.location.href=t;return[2,!0]})})},e.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},e.prototype.linkDownloadSupport=function(){var t=pe.getCache("linkDownloadSupport");if(!1===t||!0===t)return t;var e=void 0!==document.createElement("a").download;return pe.setCache("linkDownloadSupport",e),e},e.prototype.blobDownloadSupport=function(){return w(window.Blob)},e.prototype.msBlobDownloadSupport=function(){return w(window.navigator.msSaveOrOpenBlob)},e.prototype.legacyIE=function(){var t=document.createElement("div");return t.innerHTML="\x3c!--[if lt IE 10]><i></i><![endif]--\x3e",1==t.getElementsByTagName("i").length},e.prototype.print=function(t,e,i){return h(this,void 0,void 0,function(){return u(this,function(n){return"css"==e.printMethod?[2,this.printViaCSS(t,e,i)]:[2,this.printViaIframe(t,e,i)]})})},e.prototype.printViaCSS=function(t,e,i){return h(this,void 0,void 0,function(){var n,r,s,o;return u(this,function(a){return n=document.documentElement.scrollTop||document.body.scrollTop,r=new or("body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),i&&document&&document.title&&(s=document.title,document.title=i),(o=new Image).src=t,o.style.maxWidth="100%",o.style.display="block",o.style.position="relative",o.style.visibility="visible",o.style.opacity="1",o.style.clipPath="none",document.body.appendChild(o),this.setTimeout(function(){window.print()},50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout(function(){document.body.removeChild(o),r.dispose(),s&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n},e.delay||500),[2,!0]})})},e.prototype.printViaIframe=function(t,e,i){return h(this,void 0,void 0,function(){var n,r;return u(this,function(s){return(n=document.createElement("iframe")).style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close(),(r=new Image).src=t,r.style.maxWidth="100%",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(r),n.load=function(){n.contentWindow.document.body.appendChild(r)},this.setTimeout(function(){try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch(t){n.contentWindow.print()}},e.delay||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&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]})})},e.prototype.findBackgroundColor=function(t){var e=1,i=tr(t,"background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||"transparent"==i)&&(e=0),0==e){var n=t.parentElement;return n?this.findBackgroundColor(n):Ee("#fff")}return Ee(i,e)},Object.defineProperty(e.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(e.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(e.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(e.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(e.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}),e.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0)},Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new Zr),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new me),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields},set:function(t){this._dateFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new $r),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(t){this._durationFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new me),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields},set:function(t){this._durationFields=t},enumerable:!0,configurable:!0}),e.prototype.generateDataFields=function(){var t=this;this._dataFields={},this.data.length&&yt(this.data,function(e){zt(e,function(e,i){w(t._dataFields[e])||(t._dataFields[e]=t.adapter.apply("dataFieldName",{name:e,field:e}).name)})})},e.prototype.isDateField=function(t){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(t),field:t}).isDateField},e.prototype.isDurationField=function(t){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(t),field:t}).isDurationField},e.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"pdf":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}return this.adapter.apply("contentType",{contentType:e,type:t}).contentType},Object.defineProperty(e.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(e.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(e.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(t){this._title=t},enumerable:!0,configurable:!0}),e.prototype.showPreloader=function(){var t=this.preloader;t&&(t.progress=.5,t.label.text="...")},e.prototype.hidePreloader=function(){var t=this.preloader;t&&(t.progress=1)},Object.defineProperty(e.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),e.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)},e.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()},Object.defineProperty(e.prototype,"language",{get:function(){return this._language||(this._language=new Ur),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modal",{get:function(){return this._modal||(this._modal=new Ar,this._modal.adapter.add("classPrefix",function(t){return t=ce.classNamePrefix+t})),this._modal},enumerable:!0,configurable:!0}),e.prototype.showModal=function(t,e){this.hideModal(),this.hidePreloader();var i=this.modal;i.container=this.sprite.svgContainer.SVGContainer,i.content=t,i.readerTitle=e,i.open()},e.prototype.hideModal=function(){this._modal&&this.modal.close()},e.prototype._canvg=function(){return h(this,void 0,void 0,function(){var t;return u(this,function(e){switch(e.label){case 0:return[4,i.e(11).then(i.t.bind(null,195,7))];case 1:return null!=(t=e.sent()).default?[2,t.default]:[2,t]}})})},Object.defineProperty(e.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfmake",{get:function(){return null==Jr&&(Jr=function(){return h(this,void 0,void 0,function(){var t,e,n,r;return u(this,function(s){switch(s.label){case 0:return[4,Promise.all([i.e(12).then(i.t.bind(null,193,7)),i.e(12).then(i.bind(null,194))])];case 1:return t=s.sent(),e=t[0],n=t[1],(r=window).pdfMake=r.pdfMake||{},r.pdfMake.vfs=n.default,e.vfs=n.default,[2,e]}})})}()),Jr},enumerable:!0,configurable:!0}),e.prototype._xlsx=function(){return h(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,Promise.all([i.e(13),i.e(15)]).then(i.t.bind(null,196,7))];case 1:return[2,t.sent()]}})})},Object.defineProperty(e.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),e.prototype.setFormatOptions=function(t,e){this._formatOptions.setKey(t,e)},e.prototype.getFormatOptions=function(t){return this._formatOptions.getKey(t)},e.prototype._disablePointers=function(){w(this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},e.prototype._releasePointers=function(){w(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},e.prototype.hideNonExportableSprites=function(){var t=this;if(!this._objectsAlreadyHidden){var e=this.sprite.svgContainer;e&&yt(e.nonExportableSprites,function(e){e.isHidden||e.isHiding||t._hiddenObjects.push(e),e.hide(0)}),this._objectsAlreadyHidden=!0}},e.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(yt(this._hiddenObjects,function(t){t.show(0)}),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},e.prototype.processConfig=function(e){pe.registeredClasses.ExportMenu=es,e&&w(e.menu)&&!w(e.menu.type)&&(e.menu.type="ExportMenu"),t.prototype.processConfig.call(this,e)},e.XLINK="http://www.w3.org/1999/xlink",e}(ts),ls=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset"],hs=function(t){function e(){var e=t.call(this)||this;return e.properties={},e.events=new Rn(e),e.adapter=new Te(e),e._bindings={},e._isTemplate=!1,e._inited=!1,e._ready=!1,e.isHiding=!1,e._isHidden=!1,e.isShowing=!1,e.isStandaloneInstance=!1,e._isActive=!1,e._mask=new Ot,e._positionPrecision=3,e._language=new Ot,e._exporting=new Ot,e._exportable=!0,e._bbox={x:0,y:0,width:0,height:0},e.invalid=!1,e.positionInvalid=!1,e.propertyFields={},e.applyOnClones=!1,e.maxLeft=0,e.maxRight=0,e.maxTop=0,e.maxBottom=0,e._isDragged=!1,e._isResized=!1,e._disabled=!1,e._internalDisabled=!1,e._updateDisabled=!1,e._internalDefaultsApplied=!1,e.rollOutDelay=0,e.isBaseSprite=!1,e.shouldClone=!0,e.appeared=!1,e.ex=0,e.ey=0,e.dragWhileResize=!1,e.className="Sprite",e.uid,e.group=e.paper.addGroup("g"),e.setPropertyValue("scale",1),e.setPropertyValue("rotation",0),e.setPropertyValue("align","none"),e.setPropertyValue("valign","none"),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("visible",!0),e.setPropertyValue("tooltipPosition","fixed"),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e.setPropertyValue("marginTop",0),e.setPropertyValue("marginBottom",0),e.setPropertyValue("marginLeft",0),e.setPropertyValue("marginRight",0),e.setPropertyValue("dx",0),e.setPropertyValue("dy",0),e.setPropertyValue("paddingTop",0),e.setPropertyValue("paddingBottom",0),e.setPropertyValue("paddingRight",0),e.setPropertyValue("paddingLeft",0),e.setPropertyValue("togglable",!1),e.setPropertyValue("hidden",!1),e.setPropertyValue("urlTarget","_self"),e.setPropertyValue("alwaysShowTooltip",!1),e._prevMeasuredWidth=0,e._prevMeasuredHeight=0,e._measuredWidth=0,e._measuredHeight=0,e._isMeasured=!0,e.invalidate(),e.applyTheme(),e._disposers.push(e.events),e._disposers.push(e.group),e._disposers.push(e._mask),e._disposers.push(e._language),e._disposers.push(e._exporting),e._disposers.push(new kt(function(){zt(e._bindings,function(t,e){e.dispose()})})),e.setPropertyValue("interactionsEnabled",!0),e}return a(e,t),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),ce.autoSetClassName&&this.setClassName()},e.prototype.getCurrentThemes=function(){var t=this._themes;if(t)return t;var e=this.parent;return e?e.getCurrentThemes():pe.themes},e.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},e.prototype.invalidate=function(){this.disabled||this._isTemplate||this.invalid||(this.invalid=!0,pe.addToInvalidSprites(this),de.requestFrame())},e.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,pe.removeFromInvalidSprites(this),this.afterDraw()},e.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,pe.addToInvalidPositions(this),de.requestFrame())},e.prototype.validatePosition=function(){var t=this.pixelX,e=this.pixelY,i=this.dx,n=this.dy,r=t+i,s=e+n;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var o=this.measure(),a=this.group.transformString;this.group.moveTo({x:r,y:s}),this.group.rotation=this.rotation,this.nonScaling?this.group.scale=this.scale/this.globalScale:this.group.scale=this.scale,(a!=this.group.transformString||o)&&(null==a?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),this.alwaysShowTooltip&&this.updateTooltipPosition()),t+i==r&&e+n==s&&(pe.removeFromInvalidPositions(this),this.positionInvalid=!1);var l=this._maskRectangle;l&&this._clipElement.moveTo({x:l.x-t,y:l.y-e})},e.prototype.beforeDraw=function(){},e.prototype.draw=function(){},e.prototype.afterDraw=function(){if((this.isMeasured||"none"!==this.horizontalCenter||"none"!==this.verticalCenter)&&this.measureElement(),this._inited)this.dispatch("validated");else{try{for(var t=p(this.adapter.keys()),e=t.next();!e.done;e=t.next()){var i=e.value;switch(i){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[i]=this[i]}}}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.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()}var n,r;this.alwaysShowTooltip&&(!this.visible||this.disabled||this.__disabled?this.hideTooltip(0):this.showTooltip())},e.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},e.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},e.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},e.prototype.updateFilterScale=function(){var t=this;Qt(this.filters.iterator(),function(e){e.scale=t.globalScale})},e.prototype.removeFromInvalids=function(){pe.removeFromInvalidSprites(this),pe.removeFromInvalidPositions(this)},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.events.copyFrom(e.events),this.isMeasured=e.isMeasured,this.states.copyFrom(e.states),e.filters.length>0&&e.filters.each(function(t){i.filters.push(t.clone())}),this.adapter.copyFrom(e.adapter),e._interaction&&this.interactions.copyFrom(e.interactions),e._plugins&&this.plugins.copyFrom(e.plugins),this.configField=e.configField,this.applyOnClones=e.applyOnClones,this.disabled=e.disabled,this.virtualParent=e.virtualParent,this.exportable=e.exportable,e._tooltip&&(this._tooltip?this._tooltip.copyFrom(e.tooltip):this.tooltip=e.tooltip.clone()),this._showSystemTooltip=e.showSystemTooltip,Ue(e.propertyFields,this.propertyFields),Ue(e.properties,this),e.fillModifier&&(this.fillModifier=e.fillModifier.clone()),e.strokeModifier&&(this.strokeModifier=e.strokeModifier.clone())},e.prototype.dispose=function(){if(!this.isDisposed()){if(this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(t.prototype.dispose.call(this),this.adapter.clear(),this.applyOnClones&&this._clones)for(var e=this._clones.length-1;e>=0;e--){this._clones.getIndex(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 i=this.stroke;!i||i instanceof je||!i.dispose||this.clonedFrom&&this.clonedFrom.stroke==i||i.dispose();var n=this.fill;if(!n||n instanceof je||!n.dispose||this.clonedFrom&&this.clonedFrom.fill==n||n.dispose(),w(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var r=this._filters.getIndex(0);r.dispose(),this._filters.removeValue(r)}this._alwaysShowDisposers=void 0}},Object.defineProperty(e.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(t){t=b(t),this._isTemplate!=t&&(this._isTemplate=t,this instanceof ps&&Qt(this.children.iterator(),function(e){e.isTemplate=t}),t?(this.parent=this.parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showSystemTooltip",{get:function(){return w(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:!!this.parent&&this.parent.showSystemTooltip},set:function(t){t=b(t),this._showSystemTooltip!=t&&(this._showSystemTooltip=t,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topParent",{get:function(){return this._topParent?this._topParent:this.parent?this.parent.topParent:void 0},set:function(t){this._topParent=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.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.topParent=void 0)}},enumerable:!0,configurable:!0}),e.prototype.handleAlwaysShow=function(){this.showTooltip()},e.prototype.handleAlwaysShowTooltip=function(){var t=this,e=this._alwaysShowDisposers;if(e&&yt(e,function(t){t.dispose()}),this._alwaysShowDisposers=[],this.alwaysShowTooltip)for(;null!=t;){var i=t.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(i),this._alwaysShowDisposers.push(i),t=t.parent}},Object.defineProperty(e.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(t){this._virtualParent=t},enumerable:!0,configurable:!0}),e.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 je){var i=this.fillModifier.modify(this.fill);i&&i.element&&this.paper.appendDef(i.element)}if(this.strokeModifier&&this.stroke instanceof je){var n=this.strokeModifier.modify(this.stroke);n&&n.element&&this.paper.appendDef(n.element)}this._clipPath&&this.paper.appendDef(this._clipPath),!1===this._exportable&&(this.exportable=!1)},Object.defineProperty(e.prototype,"map",{get:function(){var t=this.topParent;return t?t.map:(this._map||(this._map=new le),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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),ce.autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:this.parent?this.parent.paper:Rr()},set:function(t){this.setPaper(t)},enumerable:!0,configurable:!0}),e.prototype.setPaper=function(t){return this._paper!=t&&(this._paper=t,this.appendDefs(),!0)},Object.defineProperty(e.prototype,"htmlContainer",{get:function(){return this._htmlContainer?this._htmlContainer:this.parent?this.parent.htmlContainer:void 0},set:function(t){this._htmlContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"filters",{get:function(){return this._filters||(this._filters=new me,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new ge(this._filters))),this._filters},enumerable:!0,configurable:!0}),e.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},e.prototype.setSVGAttribute=function(t){this.group.attr(t)},e.prototype.removeSVGAttribute=function(t){this.group.removeAttr(t)},e.prototype.setClassName=function(){var t=this.className,e=ce.classNamePrefix;this.element&&this.element.addClass(e+t),this.group.addClass(e+t+"-group"),w(this.id)&&this.group.addClass(e+this.id)},e.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},e.prototype.updateClipPath=function(){var t=this._clipElement;t&&t.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},e.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var t=pe.getUniqueId();this._clipPath.attr({id:t}),this.group.attr({"clip-path":'url("'+Ke()+t+'")'})}},e.prototype.applyMask=function(){var t=this.mask;if(this._clipPath&&t)if(t instanceof ps){this._clipElement.attr({width:X(0,t.pixelWidth),height:X(0,t.pixelHeight)});var e=Vi({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},e.prototype.applyFilters=function(){var t=this;if(this._filters&&this._filters.length>0){var e=100,i=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}),Qt(this.filters.iterator(),function(n){n.sprite=t,n.paper=t.paper,n.appendPrimitives(t.filterElement),n.width>e&&(e=n.width),n.height>i&&(i=n.height),n.scale=t.globalScale});var r=e+"%",s=i+"%";this.filterElement.attr({width:r,height:s,x:-(e-100)/2+"%",y:-(i-100)/2+"%"}),this.group.attr({filter:'url("'+Ke()+n+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},e.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},e.prototype.setElement=function(t){this.element=t,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this.removeElement(),this._element=t,this.group.add(t),this.invalid||this.validate(),ce.autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"svgContainer",{get:function(){return this._svgContainer?this._svgContainer:this.parent?this.parent.svgContainer:void 0},set:function(t){this._svgContainer=t},enumerable:!0,configurable:!0}),e.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}}},e.prototype.updateCenter=function(){if(this.element){var t=this.element.transformString,e=this.bbox,i=0,n=0,r=e.x,s=e.y,o=e.width,a=e.height,l=this.pixelPaddingLeft,h=this.pixelPaddingRight,u=this.pixelPaddingTop,p=this.pixelPaddingBottom,c=X(o+l+h,this.pixelWidth),d=X(a+u+p,this.pixelHeight),f=e.x,g=e.x+c,y=e.y,m=e.y+d,v=this.horizontalCenter,b=this.verticalCenter;switch(v){case"none":i=r+l;break;case"left":i=l;break;case"middle":i=l-(o+h+l)/2;break;case"right":i=-h-o}switch(b){case"none":n=s+u;break;case"top":n=u;break;case"middle":n=u-(a+p+u)/2;break;case"bottom":n=-p-a}this._measuredHeight=d,this._measuredWidth=c;var x=E(i-r,this._positionPrecision,!0),_=E(n-s,this._positionPrecision,!0);this.ex=x-l,this.ey=_-u,this.maxLeft=f+x-l,this.maxRight=g+x-l,this.maxTop=y+_-u,this.maxBottom=m+_-u,this.pixelPerfect&&(x-=.5,_-=.5),this.element.moveTo({x:x,y:_}),t!=this.element.transformString&&this.dispatchImmediately("transformed")}},e.prototype.measure=function(){this.updateCenter();var t=this._measuredWidth,e=this._measuredHeight,i=this.maxLeft,n=this.maxRight,r=this.maxTop,s=this.maxBottom;this._measuredWidthSelf=t,this._measuredHeightSelf=e;var o=this._positionPrecision;if(0!==this.rotation||1!==this.scale){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var a=this.paper.svg,l=a.createSVGMatrix(),h=this.rotation;l.a=W(h)*this.scale,l.c=-N(h)*this.scale,l.e=0,l.b=N(h)*this.scale,l.d=W(h)*this.scale,l.f=0;var u=a.createSVGPoint();u.x=i,u.y=r;var p=a.createSVGPoint();p.x=n,p.y=r;var c=a.createSVGPoint();c.x=n,c.y=s;var d=a.createSVGPoint();d.x=i,d.y=s;var f=u.matrixTransform(l),g=p.matrixTransform(l),y=c.matrixTransform(l),m=d.matrixTransform(l);i=Math.min(f.x,g.x,y.x,m.x),n=Math.max(f.x,g.x,y.x,m.x),r=Math.min(f.y,g.y,y.y,m.y),t=n-i,e=(s=Math.max(f.y,g.y,y.y,m.y))-r,this.maxLeft=E(i,o,!0),this.maxRight=E(n,o,!0),this.maxTop=E(r,o,!0),this.maxBottom=E(s,o,!0)}return this._measuredWidth=E(t,o,!0),this._measuredHeight=E(e,o,!0),(this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight)&&(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||this.alwaysShowTooltip)&&this.tooltip&&this.tooltip.visible&&(w(this.tooltipText)||w(this.tooltipHTML))&&this.updateTooltipPosition(),!0)},e.prototype.insertBefore=function(t){var e=this.parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i),e.sortChildren())}return this},e.prototype.insertAfter=function(t){var e=this.parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i+1),e.sortChildren())}return this},e.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},e.prototype.getRelativeX=function(t){return t instanceof f?t.value:this.parent?t/this.parent.innerWidth:0},e.prototype.getRelativeY=function(t){return t instanceof f?t.value:this.parent?t/this.parent.innerHeight:0},e.prototype.getPixelX=function(t){var e=0;if(O(t))e=t;else if(t instanceof f){var i=t.value;this.parent&&(e=E(this.parent.innerWidth*i,this._positionPrecision,!0))}return e},e.prototype.getPixelY=function(t){var e=0;if(O(t))e=t;else if(t instanceof f){var i=t.value;this.parent&&(e=E(this.parent.innerHeight*i,this._positionPrecision,!0))}return e},e.prototype.moveTo=function(t,e,i,n){this.isDragged&&!n||(t&&(O(t.x)&&this.setPropertyValue("x",t.x),O(t.y)&&this.setPropertyValue("y",t.y)),O(e)&&(this.rotation=e),O(i)&&(this.scale=i),this.invalidatePosition())},Object.defineProperty(e.prototype,"mask",{get:function(){return this.adapter.apply("mask",this._mask.get())},set:function(t){var e=this;this._mask.get()!==t&&(t?(this.createClipPath(),t instanceof ps?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 Tt([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(e.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(e.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(t){(t=b(t))||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=t&&(this._isMeasured=t,this.invalidatePosition())},enumerable:!0,configurable:!0}),e.prototype.hitTest=function(t){this.invalid&&this.validate(),t.invalid&&t.validate();var e=this.pixelX,i=this.pixelY,n=e+this.measuredWidth,r=i+this.measuredHeight,s=t.pixelX,o=t.pixelY,a=s+t.measuredWidth,l=o+t.measuredHeight;return!(s>n||a<e||o>r||l<i)},Object.defineProperty(e.prototype,"inited",{get:function(){return this._inited},enumerable:!0,configurable:!0}),e.prototype.isReady=function(){return this._ready},Object.defineProperty(e.prototype,"states",{get:function(){if(!this._states){var t=new Ln;this._states=new he(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 ae(this._states)),this._disposers.push(t)}return this._states},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"defaultState",{get:function(){this.states.getKey("default")||(this.states.create("default").properties.opacity=1);return this.states.getKey("default")},enumerable:!0,configurable:!0}),e.prototype.processState=function(t){var e=t.newValue;if(e.sprite=this,e.name=t.key,(this.states.hasKey("hover")||w(this.tooltipHTML)||w(this.tooltipText))&&(this.hoverable=!0),this.states.hasKey("down")&&(this.clickable=!0),this.states.hasKey("focus")&&(this.focusable=!0),this.applyOnClones)for(var i=this.clones.values,n=i.length,r=0;r<n;++r){var s=i[r];s.isDisposed()||s.states.setKey(e.name,e)}},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Yn(this._animations))),this._animations},enumerable:!0,configurable:!0}),e.prototype.getSvgPoint=function(t){try{var e=this.htmlContainer.getBoundingClientRect();return{x:t.x-e.left,y:t.y-e.top}}catch(e){return t}},e.prototype.animate=function(t,e,i){return new Un(this,t,e,i).start()},e.prototype.setState=function(t,e,i){var n;if(t instanceof Ln)this.states.setKey(t.name,t),n=t;else if(!(n=this.states.getKey(t)))return;if("hover"==n.name){if(this.isHidden)return;this.isHover=!0}return"hidden"==n.name?this.isHiding=!0:this.visible||this.setVisibility(n.properties.visible||this.defaultState.properties.visible),"active"==n.name&&(this.isActive=!0),O(e)||(e=n.transitionDuration),w(i)||(i=n.transitionEasing),this.transitTo(n,e,i)},e.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},e.prototype.transitTo=function(t,e,i){var n,r=this,s=[];if(zt(t.allValues,function(t,e){var i=r[t];if(e!=i&&null==r.defaultState.properties[t]&&(r.defaultState.properties[t]=i),w(e)){var n={from:i,to:e,property:t};s.push(n)}}),s.length>0&&((n=this.animate(s,e,i))&&!n.isFinished()?this._disposers.push(n.events.on("animationended",function(){r.dispatchImmediately("transitionended")})):this.dispatchImmediately("transitionended")),t.filters.length>0){var o=[];Qt(t.filters.iterator(),function(t){var n=t.clone();o.push(n);var s=[];Qt(r.filters.iterator(),function(t){t.className==n.className&&(ne(r.defaultState.filters.iterator(),function(t){return t.className===n.className})||r.defaultState.filters.push(t),zt(n.properties,function(e,i){var n=t.properties[e];n!=i&&s.push({property:e,from:n,to:i})}))}),n.animate(s,e,i)}),this.filters.clear(),this.filters.pushAll(o)}return n},e.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(e.prototype,"isHover",{get:function(){return!!this.isInteractive()&&this.interactions.isHover},set:function(t){(t=b(t))!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=t,t?this.handleOver():this.handleOut())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return!!this.isInteractive()&&this.interactions.isDown},set:function(t){t=b(t),this.isInteractive()&&this.isDown!=t&&(this.interactions.isDown=t,t?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!!this.isInteractive()&&this.interactions.isFocused},set:function(t){t=b(t),this.focusable&&this.isFocused!=t&&this.isInteractive()&&(this.interactions.isFocused=t,!0===t?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(t){this.setActive(t)},enumerable:!0,configurable:!0}),e.prototype.setActive=function(t){t=b(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(e.prototype,"disabled",{get:function(){var t=this.getPropertyValue("disabled");return w(t)?t:this.virtualParent?this.virtualParent.disabled:!!this.parent&&this.parent.disabled},set:function(t){this.setDisabled(t)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(t){if(t=b(t),this.getPropertyValue("disabled")!=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 e=this.parent.element;e.hasChild(this.group)||e.add(this.group)}this instanceof ps?this.deepInvalidate():this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),de.requestFrame(),!0}return!1},Object.defineProperty(e.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(t){this._internalDisabled!=t&&(this._internalDisabled=t,this._updateDisabled=!0,this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.numberFormatter:this.parent?this.parent.numberFormatter:(this._numberFormatter=new qr,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(t){this._numberFormatter=t,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this.parent?this.parent.dateFormatter:(this._dateFormatter=new Zr,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(t){this._dateFormatter=t,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this.parent?this.parent.durationFormatter:(this._durationFormatter=new $r,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(t){this._durationFormatter=t,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var t=this._language.get();return t||(this.virtualParent?this.virtualParent.language:this.parent?this.parent.language:(t=new Ur,this.language=t,t))},set:function(t){var e=this;this._language.get()!==t&&this._language.set(t,t.events.on("localechanged",function(t){e.numberFormatter&&(e.numberFormatter.language=e.language),e.dateFormatter&&(e.dateFormatter.language=e.language),e.durationFormatter&&(e.durationFormatter.language=e.language),e instanceof ps&&e.deepInvalidate()}))},enumerable:!0,configurable:!0}),e.prototype.populateString=function(t,e){if(w(t)){t=v(t);var i=(t=Kr().escape(t)).match(/\{([^}]+)\}/g),n=void 0;if(i)for(n=0;n<i.length;n++){var r=i[n].replace(/\{([^}]+)\}/,"$1"),s=this.getTagValue(r,"",e);w(s)||(s=""),t=t.split(i[n]).join(s)}t=Kr().unescape(t)}else t="";return this.adapter.apply("populateString",t)},e.prototype.getTagValue=function(t,e,i){var n;w(i)||(i=this.dataItem);for(var r,s=[],o=/([^.]+)\(([^)]*)\)|([^.]+)/g;null!==(r=o.exec(t));)if(r[3])s.push({prop:r[3]});else{var a=[];if(""!=li(r[2]))for(var l=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,h=void 0;null!==(h=l.exec(r[2]));)a.push(h[1]||h[2]||h[3]);s.push({method:r[1],params:a})}if(i){w(n=this.getTagValueFromObject(s,i.values))&&!I(n)||(n=this.getTagValueFromObject(s,i));var u=i.dataContext;!w(n)&&u&&!w(n=this.getTagValueFromObject(s,i.dataContext))&&u.dataContext&&(n=this.getTagValueFromObject(s,u.dataContext)),!w(n)&&i.component&&i.component.dataItem!==i&&(n=i.component.getTagValue(t,e))}return w(n)||(n=this.getTagValueFromObject(s,this.populateStringFrom||this)),!w(n)&&this.parent&&(n=this.parent.getTagValue(t,e)),n},e.prototype.getTagValueFromObject=function(t,e,i){for(var n=e,r=!1,s=0,o=t.length;s<o;s++){var a=t[s];if(a.prop){if(!w(n=n[a.prop]))return}else switch(a.method){case"formatNumber":var l=xi(n);w(l)&&(n=this.numberFormatter.format(l,i||a.params[0]||void 0),r=!0);break;case"formatDate":var h=void 0;if(!k(h=T(n)?this.dateFormatter.parse(n):bi(n))||y(h.getTime()))return;w(h)&&(n=this.dateFormatter.format(h,i||a.params[0]||void 0),r=!0);break;case"formatDuration":var u=xi(n);w(u)&&(n=this.durationFormatter.format(u,i||a.params[0]||void 0,a.params[1]||void 0),r=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[a.method]&&n[a.method].apply(this,a.params)}}if(!r){var p=[{method:"",params:i}];if(w(i)){var c=fi(i);c===He?p[0].method="formatNumber":c===We?p[0].method="formatDate":c===Xe&&(p[0].method="formatDuration")}else O(n)?(p[0].method="formatNumber",p[0].params=""):k(n)&&(p[0].method="formatDate",p[0].params="");p[0].method&&(n=this.getTagValueFromObject(p,n))}return n},Object.defineProperty(e.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}),e.prototype.setDataItem=function(t){var e=this;if(this._dataItem!=t){if(this._dataItem=t,t){if(this.configField){var i=t.dataContext;i&&(this.config=i[this.configField],!this.config&&i.dataContext&&(this.config=i.dataContext[this.configField]))}var n=t.dataContext;if(n){var r=n.dataContext;zt(this.propertyFields,function(t,i){if(w(n[i]))e[t]=n[i];else if(r){var s=r[i];if(w(s))e[t]=s}})}}this.invalidate()}},e.prototype.getPropertyValue=function(t){var e=this.properties[t];return this._isTemplate||(e=this.adapter.apply(t,e)),e},e.prototype.setColorProperty=function(t,e,i){var n=this.properties[t];return!(e instanceof je&&n instanceof je&&e.toString()==n.toString())&&this.setPropertyValue(t,e,i)},e.prototype.setPercentProperty=function(t,e,i,n,r,s){if(O(e=P(e)))return e=E(e,r,s),this.setPropertyValue(t,e,i,n);var o=this.properties[t];return!(e instanceof f&&o instanceof f&&e.value==o.value)&&this.setPropertyValue(t,e,i,n)},e.prototype.setPropertyValue=function(t,e,i,n){if(this.properties[t]!==e&&!this.isDisposed()){if(this.properties[t]=e,this.events.isEnabled("propertychanged")){var r={type:"propertychanged",target:this,property:t};this.events.dispatchImmediately("propertychanged",r)}if(i&&this.invalidate(),n&&this.invalidatePosition(),this.applyOnClones)for(var s=this.clones.values,o=s.length,a=0;a<o;++a){var l=s[a];l.isDisposed()||(l[t]=e)}return!0}return!1},e.prototype.bind=function(t,e,i,n){var r=this;void 0===i&&(i=t),w(this._bindings[t])&&this._bindings[t].dispose(),this[t]=e[i],this._bindings[t]=e.events.on("propertychanged",function(s){if(s.property===i){var o=e[i];n&&(o=n(o)),r[t]=o}})},e.prototype.observe=function(t,e,i,n){var r=this;return new Tt(gt(xt(t),function(t){return r.events.on("propertychanged",function(n){n.property===t&&e.call(i,n)},i,n)}))},e.prototype.applyAccessibility=function(){var t=this.readerTitle,e=this.readerDescription,i=this.role,n=this.readerHidden,r=this.readerChecked,s=this.readerControls,o=this.readerLive,a=[],l=[],h=this.readerLabelledBy;h&&a.push(h);var u=this.readerDescribedBy;if(u&&l.push(u),!this.showSystemTooltip&&t&&(e=e?t+" -- "+e:t,t=void 0),!t||e||this.showSystemTooltip){if(t){var p=this.titleElement,c=this.uid+"-title";p.node.textContent!=t&&(p.node.textContent=t,p.attr({id:c})),a.push(c)}else this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0);var d=this.uid+"-description";if(e){var f=this.descriptionElement;f.node.textContent!=e&&(f.node.textContent=e,f.attr({id:d})),l.push(d)}else this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0,mt(l,d))}else this.setSVGAttribute({"aria-label":t}),this.removeSVGAttribute("aria-description"),this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0),this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0);a.length?this.setSVGAttribute({"aria-labelledby":a.join(" ")}):this.removeSVGAttribute("aria-labelledby"),l.length?this.setSVGAttribute({"aria-describedby":l.join(" ")}):this.removeSVGAttribute("aria-describedby"),i?this.setSVGAttribute({role:i}):this.removeSVGAttribute("role"),n?this.setSVGAttribute({"aria-hidden":"true"}):this.removeSVGAttribute("aria-hidden"),r?this.setSVGAttribute({"aria-checked":"true"}):!1===r?this.setSVGAttribute({"aria-checked":"false"}):this.removeSVGAttribute("aria-checked"),s?this.setSVGAttribute({"aria-controls":s}):this.removeSVGAttribute("aria-controls"),o?this.setSVGAttribute({"aria-live":o}):this.removeSVGAttribute("aria-live")},Object.defineProperty(e.prototype,"readerTitle",{get:function(){return this.getPropertyValue("readerTitle")},set:function(t){t=_(t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerDescription",{get:function(){return this.getPropertyValue("readerDescription")},set:function(t){t=_(t),this.setPropertyValue("readerDescription",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.getPropertyValue("role")},set:function(t){t=_(t),this.setPropertyValue("role",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerHidden",{get:function(){return this.getPropertyValue("readerHidden")},set:function(t){t=b(t),this.setPropertyValue("readerHidden",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerChecked",{get:function(){return this.getPropertyValue("readerChecked")},set:function(t){t=b(t),this.setPropertyValue("readerChecked",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerControls",{get:function(){return this.getPropertyValue("readerControls")},set:function(t){t=_(t),this.setPropertyValue("readerControls",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerLive",{get:function(){return this.getPropertyValue("readerLive")},set:function(t){t=_(t),this.setPropertyValue("readerLive",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerLabelledBy",{get:function(){return this.getPropertyValue("readerLabelledBy")},set:function(t){t=_(t),this.setPropertyValue("readerLabelledBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerDescribedBy",{get:function(){return this.getPropertyValue("readerDescribedBy")},set:function(t){t=_(t),this.setPropertyValue("readerDescribedBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"interactions",{get:function(){if(!this._interaction){var t=Ir().getInteraction(this.dom);this._interaction=t,this._interaction.clickable=this.clickable,this._interaction.hoverable=this.hoverable,this._interaction.trackable=this.trackable,this._interaction.draggable=this.draggable,this._interaction.swipeable=this.swipeable,this._interaction.resizable=this.resizable,this._interaction.wheelable=this.wheelable,this._interaction.contextMenuDisabled=this.contextMenuDisabled,this._interaction.inert=this.inert,this._interaction.sprite=this,this._disposers.push(this._interaction)}return this._interaction},enumerable:!0,configurable:!0}),e.prototype.isInteractive=function(){return!!this._interaction},Object.defineProperty(e.prototype,"focusable",{get:function(){return this.getPropertyValue("focusable")},set:function(t){var e=this;t=b(t),this.setPropertyValue("focusable",t)&&(t||this.isInteractive())&&(this.interactions.focusable=t,t?this.setSVGAttribute({focusable:t}):this.removeSVGAttribute("focusable"),this.interactions.setEventDisposer("sprite-focusable",t,function(){return new Tt([e.events.on("blur",e.handleBlur,e,!1),e.events.on("focus",e.handleFocus,e,!1)])}))},enumerable:!0,configurable:!0}),e.prototype.handleFocus=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!0),this.focusFilter&&this.filters.push(this.focusFilter),this.hoverOnFocus&&(this.isHover=!0,this.handleOver()))},e.prototype.handleBlur=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!1),this.focusFilter&&this.filters.removeValue(this.focusFilter),this.hoverOnFocus&&(this.isHover=!1,this.handleOut()))},Object.defineProperty(e.prototype,"focusFilter",{get:function(){var t=this._focusFilter;return t||(this.virtualParent?this.virtualParent.focusFilter:this.parent?this.parent.focusFilter:void 0)},set:function(t){this._focusFilter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOnFocus",{get:function(){return this.getPropertyValue("hoverOnFocus")},set:function(t){t!==this.hoverOnFocus&&this.setPropertyValue("hoverOnFocus",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){var t=this._tabindex;return null!=t?t:this.virtualParent?this.virtualParent.tabindex:this.parent?this.parent.tabindex:void 0},set:function(t){t=x(t),this.setPropertyValue("tabindex",t)&&O(t)&&(this.interactions.tabindex=t,this.setSVGAttribute({tabindex:t}),this.focusable=t>-1||void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inertiaOptions",{get:function(){return!this.interactions.inertiaOptions&&this.parent?this.parent.inertiaOptions:this.interactions.inertiaOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this.getPropertyValue("draggable")},set:function(t){var e=this;t=b(t),this.setPropertyValue("draggable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.draggable=t,this.interactions.setEventDisposer("sprite-draggable",t,function(){return new Tt([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}),e.prototype.handleDragStart=function(t){this.interactions.isTouchProtected&&t.touch||(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this._isDragged=!0,this.hideTooltip(0))},e.prototype.dragStart=function(t){this._isDragged=!0,Ir().dragStart(this.interactions,t)},e.prototype.handleDragStop=function(t){this.interactions.isTouchProtected&&t.touch||(this._isDragged=!1,this.showTooltip(),this.interactions.originalPosition=void 0)},e.prototype.dragStop=function(t){this._isDragged=!1,Ir().dragStop(this.interactions,t)},e.prototype.handleDragMove=function(t){if(!this.interactions.isTouchProtected||!t.touch){var e=this.interactions.originalPosition;if(e&&this._isDragged){var i=this.parent.globalScale*this.svgContainer.cssScale;this.moveTo({x:e.x+t.shift.x/i,y:e.y+t.shift.y/i},void 0,void 0,!0)}this.dispatchImmediately("dragged",t)}},Object.defineProperty(e.prototype,"inert",{get:function(){return this.getPropertyValue("inert")},set:function(t){t=b(t),this.setPropertyValue("inert",t)&&(t||this.isInteractive())&&(this.interactions.inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"hoverable",{get:function(){return this.getPropertyValue("hoverable")},set:function(t){var e=this;t=b(t),this.setPropertyValue("hoverable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.hoverable=t,this.interactions.setEventDisposer("sprite-hoverable",t,function(){return new Tt([e.events.on("over",e.handleOver,e,!1),e.events.on("out",e.handleOut,e,!1)])}))},enumerable:!0,configurable:!0}),e.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=ji(t.pointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale)),this.showTooltip(e)}else this.hideTooltip(),!this.isHidden&&this.states.hasKey("hover")&&this.applyCurrentState()},e.prototype.handleOut=function(t){var e=this;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):(this.hideTooltip(),this._outTimeout=this.setTimeout(this.handleOutReal.bind(this),this.rollOutDelay))},e.prototype.handleOutReal=function(){this.isHidden||this.isHiding||!this.states.hasKey("hover")||this.applyCurrentState()},Object.defineProperty(e.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}),e.prototype.handleDown=function(t){1===this.interactions.downPointers.length&&(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"))},e.prototype.handleUp=function(t){this._isResized=!1,this.states.hasKey("down")&&this.applyCurrentState()},Object.defineProperty(e.prototype,"clickable",{get:function(){return this.getPropertyValue("clickable")},set:function(t){var e=this;t=b(t),this.setPropertyValue("clickable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.clickable=t,this.interactions.setEventDisposer("sprite-clickable",t,function(){return new Tt([e.events.on("down",e.handleDown,e,!1),e.events.on("up",e.handleUp,e,!1)])}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"togglable",{get:function(){return this.getPropertyValue("togglable")},set:function(t){var e=this;t=b(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}),e.prototype.handleToggle=function(t){this.isActive=!this.isActive},Object.defineProperty(e.prototype,"contextMenuDisabled",{get:function(){return this.getPropertyValue("contextMenuDisabled")},set:function(t){t=b(t),this.setPropertyValue("contextMenuDisabled",t)&&(this.interactions.contextMenuDisabled=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.getPropertyValue("url")},set:function(t){this.setPropertyValue("url",t)&&(this._urlDisposer&&this._urlDisposer.dispose(),$e(t)&&(this._urlDisposer=this.events.on("hit",this.urlHandler,this,!1),this.clickable=!0,this.cursorOverStyle=zr.pointer))},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.setBaseId=function(t){t!=this._baseId&&(this.invalid&&(this.invalid=!1,pe.removeFromInvalidSprites(this),this.invalidate()),this._baseId=t)},Object.defineProperty(e.prototype,"baseSprite",{get:function(){return this.isBaseSprite?this:this.parent?this.parent.baseSprite:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlTarget",{get:function(){return this.getPropertyValue("urlTarget")},set:function(t){this.setPropertyValue("urlTarget",t)},enumerable:!0,configurable:!0}),e.prototype.urlHandler=function(t){if($e(this.url)){var e=this.populateString(this.url);"_self"===this.urlTarget?window.location.href=e:window.open(e,this.urlTarget)}},Object.defineProperty(e.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(e.prototype,"swipeable",{get:function(){return this.getPropertyValue("swipeable")},set:function(t){t=b(t),this.setPropertyValue("swipeable",t)&&(this.applyCursorStyle(),(t||this.isInteractive())&&(this.interactions.swipeable=t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackable",{get:function(){return this.getPropertyValue("trackable")},set:function(t){t=b(t),this.setPropertyValue("trackable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.trackable=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"resizable",{get:function(){return this.getPropertyValue("resizable")},set:function(t){var e=this;t=b(t),this.setPropertyValue("resizable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.resizable=t,this.interactions.setEventDisposer("sprite-resizable",t,function(){return new Tt([e.events.on("down",e.handleDown,e,!1),e.events.on("resize",e.handleResize,e,!1)])}))},enumerable:!0,configurable:!0}),e.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=$(ji(t.point1,this.htmlContainer,this.svgContainer.cssScale),ji(t.point2,this.htmlContainer,this.svgContainer.cssScale)),i=Li(t.startPoint1,this.parent),n=Li(t.startPoint2,this.parent),r=this.interactions.originalPosition,s=this.interactions.originalScale;if(r){var o=$({x:(i.x-r.x)/s,y:(i.y-r.y)/s},{x:(n.x-r.x)/s,y:(n.y-r.y)/s}),a=Di(e,this.parent);this.moveTo({x:a.x-o.x*this.scale,y:a.y-o.y*this.scale},void 0,void 0,!0)}}},Object.defineProperty(e.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(e.prototype,"cursorOverStyle",{set:function(t){this.cursorOptions.overStyle||(this.interactions.cursorOptions={defaultStyle:this.cursorOptions.defaultStyle}),this.cursorOptions.overStyle=t,Ir().applyCursorOverStyle(this.interactions)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorDownStyle",{set:function(t){this.cursorOptions.downStyle=t},enumerable:!0,configurable:!0}),e.prototype.applyCursorStyle=function(){},Object.defineProperty(e.prototype,"interactionsEnabled",{get:function(){return!1!==this.getPropertyValue("interactionsEnabled")&&(this.virtualParent?this.virtualParent.interactionsEnabled:!this.parent||this.parent.interactionsEnabled)},set:function(t){if(t=b(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(e.prototype,"exporting",{get:function(){return this.getExporting()},set:function(t){this._exporting.set(t,t)},enumerable:!0,configurable:!0}),e.prototype.getExporting=function(){var t=this._exporting.get();return t||(!this.isStandaloneInstance&&this.parent?this.parent.exporting:((t=new as(this.svgContainer.SVGContainer)).sprite=this,t.language=this.language,t.dateFormatter=this.dateFormatter,t.durationFormatter=this.durationFormatter,this._exporting.set(t,t),t))},Object.defineProperty(e.prototype,"exportable",{get:function(){return this._exportable},set:function(t){var e=this.svgContainer;this._exportable=t,e&&(t?mt(e.nonExportableSprites,this):-1==ft(e.nonExportableSprites,this)&&e.nonExportableSprites.push(this))},enumerable:!0,configurable:!0}),e.prototype.modalPrefix=function(t){return t=ce.classNamePrefix+t},Object.defineProperty(e.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}),e.prototype.openModal=function(t,e){var i=this.svgContainer;if(i)return i.openModal(t,e)},e.prototype.closeModal=function(){var t=this.svgContainer;t&&t.closeModal()},Object.defineProperty(e.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}),e.prototype.openPopup=function(t,e){var i=this.svgContainer;if(i)return i.openPopup(t,e)},e.prototype.closeAllPopups=function(){var t=this.svgContainer;t&&t.closeAllPopups()},Object.defineProperty(e.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(e.prototype,"pixelX",{get:function(){return this.adapter.apply("pixelX",B(this.getPixelX(this.x),this.minX,this.maxX))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeX",{get:function(){return this.adapter.apply("relativeX",this.getRelativeX(this.x))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minX",{get:function(){return this.getPropertyValue("minX")},set:function(t){O(t)&&(t=E(t,this._positionPrecision,!0),this.setPropertyValue("minX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxX",{get:function(){return this.getPropertyValue("maxX")},set:function(t){O(t)&&(t=E(t,this._positionPrecision,!0),this.setPropertyValue("maxX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"pixelY",{get:function(){return this.adapter.apply("pixelY",B(this.getPixelY(this.y),this.minY,this.maxY))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeY",{get:function(){return this.adapter.apply("relativeY",this.getRelativeX(this.y))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minY",{get:function(){return this.getPropertyValue("minY")},set:function(t){O(t)&&(t=E(t,this._positionPrecision,!0),this.setPropertyValue("minY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxY",{get:function(){return this.getPropertyValue("maxY")},set:function(t){O(t)&&(t=E(t,this._positionPrecision,!0),this.setPropertyValue("maxY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx",{get:function(){return this.getPropertyValue("dx")},set:function(t){O(t)&&(t=E(t,this._positionPrecision,!0),this.setPropertyValue("dx",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy",{get:function(){return this.getPropertyValue("dy")},set:function(t){O(t)&&(t=E(t,this._positionPrecision,!0),this.setPropertyValue("dy",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.getPropertyValue("rotation")},set:function(t){O(t=x(t))||(t=0),this.setPropertyValue("rotation",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.getPropertyValue("align")},set:function(t){t=_(t),this.setPropertyValue("align",t)&&this.parent&&this.parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valign",{get:function(){return this.getPropertyValue("valign")},set:function(t){t=_(t),this.setPropertyValue("valign",t)&&this.parent&&this.parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalCenter",{get:function(){return this.getPropertyValue("horizontalCenter")},set:function(t){t=_(t),this.setPropertyValue("horizontalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalCenter",{get:function(){return this.getPropertyValue("verticalCenter")},set:function(t){t=_(t),this.setPropertyValue("verticalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){var t=this.getPropertyValue("maxWidth");return!O(t)&&this.parent?this.parent.maxWidth:t},set:function(t){this.setMaxWidth(t)},enumerable:!0,configurable:!0}),e.prototype.setMaxWidth=function(t){var e=this.maxWidth,i=this.maxHeight;if(this.setPropertyValue("maxWidth",t)){O(this.relativeWidth)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:i};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(e.prototype,"maxHeight",{get:function(){var t=this.getPropertyValue("maxHeight");return!O(t)&&this.parent?this.parent.maxHeight:t},set:function(t){this.setMaxHeight(t)},enumerable:!0,configurable:!0}),e.prototype.setMaxHeight=function(t){var e=this.maxWidth,i=this.maxHeight;if(this.setPropertyValue("maxHeight",t)){O(this.relativeHeight)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:i};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(t){this.setPercentProperty("width",t,!0,!1,this._positionPrecision,!0)&&(this.percentWidth=void 0,this.relativeWidth=void 0,t instanceof f?(this.percentWidth=t.percent,O(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(e.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(t){this.setPercentProperty("height",t,!0,!1,this._positionPrecision,!0)&&(this.percentHeight=void 0,this._relativeHeight=void 0,t instanceof f?(this.percentHeight=t.percent,O(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(e.prototype,"pixelWidth",{get:function(){var t;t=O(this.percentWidth)?this.maxWidth:O(this._pixelWidth)?this._pixelWidth:0;var e=this.minWidth;return null!=e&&t<e&&(t=e),this.adapter.apply("pixelWidth",E(t,this._positionPrecision,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){var t;t=O(this.percentHeight)?this.maxHeight:O(this._pixelHeight)?this._pixelHeight:0;var e=this.minHeight;return null!=e&&t<e&&(t=e),this.adapter.apply("pixelHeight",E(t,this._positionPrecision,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeWidth",{get:function(){var t=this._relativeWidth;if(O(t))return this.adapter.apply("relativeWidth",t)},set:function(t){this._relativeWidth!=t&&(this._relativeWidth=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeHeight",{get:function(){var t=this._relativeHeight;if(O(t))return this.adapter.apply("relativeHeight",t)},set:function(t){this._relativeHeight!=t&&(this._relativeHeight=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measuredWidth",{get:function(){return this.disabled||this.__disabled?0:this.adapter.apply("measuredWidth",this._measuredWidth)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measuredHeight",{get:function(){return this.disabled||this.__disabled?0:this.adapter.apply("measuredHeight",this._measuredHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outerWidth",{get:function(){return this.adapter.apply("outerWidth",this.pixelWidth+this.pixelMarginRight+this.pixelMarginLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outerHeight",{get:function(){return this.adapter.apply("outerHeight",this.pixelHeight+this.pixelMarginTop+this.pixelMarginBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerWidth",{get:function(){return this.adapter.apply("innerWidth",Math.max(0,this.pixelWidth-this.pixelPaddingRight-this.pixelPaddingLeft))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerHeight",{get:function(){return this.adapter.apply("innerHeight",Math.max(0,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalScale",{get:function(){var t=this.scale;return this.parent&&(t*=this.parent.globalScale),this.adapter.apply("globalScale",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.getPropertyValue("scale")},set:function(t){(t=x(t))<0&&(t=0),t!=this.getPropertyValue("scale")&&(this.setPropertyValue("scale",t,!1,!0),this.handleGlobalScale())},enumerable:!0,configurable:!0}),e.prototype.margin=function(t,e,i,n){return this.marginTop=t,this.marginRight=e,this.marginBottom=i,this.marginLeft=n,this},Object.defineProperty(e.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(e.prototype,"marginRight",{get:function(){return this.getPropertyValue("marginRight")},set:function(t){this.setPercentProperty("marginRight",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"pixelMarginRight",{get:function(){return this.adapter.apply("pixelMarginRight",this.getPixelX(this.marginRight))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginRight",{get:function(){return this.adapter.apply("relativeMarginRight",this.getRelativeX(this.marginRight))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginLeft",{get:function(){return this.adapter.apply("pixelMarginLeft",this.getPixelX(this.marginLeft))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginLeft",{get:function(){return this.adapter.apply("relativeMarginLeft",this.getRelativeX(this.marginLeft))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginTop",{get:function(){return this.adapter.apply("pixelMarginTop",this.getPixelY(this.marginTop))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginTop",{get:function(){return this.adapter.apply("relativeMarginTop",this.getRelativeY(this.marginTop))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginBottom",{get:function(){return this.adapter.apply("pixelMarginBottom",this.getPixelY(this.marginBottom))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginBottom",{get:function(){return this.adapter.apply("relativeMarginBottom",this.getRelativeY(this.marginBottom))},enumerable:!0,configurable:!0}),e.prototype.padding=function(t,e,i,n){return this.paddingTop=t,this.paddingRight=e,this.paddingBottom=i,this.paddingLeft=n,this},Object.defineProperty(e.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(e.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(e.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(e.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(e.prototype,"pixelPaddingRight",{get:function(){return this.getPixelX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingRight",{get:function(){return this.getRelativeX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingLeft",{get:function(){return this.getPixelX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingLeft",{get:function(){return this.getRelativeX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingTop",{get:function(){return this.getPixelY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingTop",{get:function(){return this.getRelativeY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingBottom",{get:function(){return this.getPixelY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingBottom",{get:function(){return this.getRelativeY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(t){this.setPath(t)},enumerable:!0,configurable:!0}),e.prototype.setPath=function(t){return!!this.setPropertyValue("path",t)&&(this.element&&this.element instanceof SVGPathElement||(this.element=this.paper.add("path")),this.element.attr({d:t}),this.invalidatePosition(),this.inited||this.events.once("inited",this.validatePosition,this,!1),!0)},Object.defineProperty(e.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(e.prototype,"strokeModifier",{get:function(){return this.getPropertyValue("strokeModifier")},set:function(t){this.setPropertyValue("strokeModifier",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this.getPropertyValue("fillOpacity")},set:function(t){t=j(t,0,1),this.setPropertyValue("fillOpacity",t)&&this.setSVGAttribute({"fill-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.getPropertyValue("fill")},set:function(t){this.setFill(t)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(t){if(I(t)||(t=Le(t)),this.setColorProperty("fill",t)||this.fillModifier)if(t instanceof je&&this.fillModifier&&(t=this.fillModifier.modify(t)),this.realFill=t,t instanceof je)this.setSVGAttribute({fill:t.toString()});else if(w(t)){if(t instanceof Nr||t instanceof Hr||t instanceof Wr){var e=t;e.paper=this.paper,this.setSVGAttribute({fill:'url("'+Ke()+e.id+'")'})}}else this.removeSVGAttribute("fill")},Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getPropertyValue("opacity")},set:function(t){t=j(t,0,1),this.setPropertyValue("opacity",t)&&this.setSVGAttribute({opacity:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.getPropertyValue("stroke")},set:function(t){this.setStroke(t)},enumerable:!0,configurable:!0}),e.prototype.setStroke=function(t){if(I(t)||(t=Le(t)),this.setColorProperty("stroke",t)||this.strokeModifier)if(t instanceof je&&this.strokeModifier&&(t=this.strokeModifier.modify(t)),this.realStroke=t,t instanceof je)"none"==t.hex?this.removeSVGAttribute("stroke"):this.setSVGAttribute({stroke:t.toString()});else if(w(t)){if(t instanceof Nr||t instanceof Hr||t instanceof Wr){var e=t;e.paper=this.paper,this.setSVGAttribute({stroke:'url("'+Ke()+e.id+'")'})}}else this.removeSVGAttribute("stroke")},Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this.getPropertyValue("strokeOpacity")},set:function(t){t=j(t,0,1),this.setPropertyValue("strokeOpacity",t)&&this.setSVGAttribute({"stroke-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScalingStroke",{get:function(){return this.getPropertyValue("nonScalingStroke")},set:function(t){t=b(t),this.setPropertyValue("nonScalingStroke",t)&&(this.strokeWidth=this.strokeWidth)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScaling",{get:function(){return this.getPropertyValue("nonScaling")},set:function(t){t=b(t),this.setPropertyValue("nonScaling",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.getPropertyValue("strokeWidth")},set:function(t){t=x(t),this.setPropertyValue("strokeWidth",t,!0),this.nonScalingStroke&&(O(t)||(t=1),t/=this.globalScale),this.setSVGAttribute({"stroke-width":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDasharray",{get:function(){return this.getPropertyValue("strokeDasharray")},set:function(t){t=_(t),this.setPropertyValue("strokeDasharray",t)&&this.setSVGAttribute({"stroke-dasharray":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDashoffset",{get:function(){return this.getPropertyValue("strokeDashoffset")},set:function(t){t=x(t),this.setPropertyValue("strokeDashoffset",t)&&this.setSVGAttribute({"stroke-dashoffset":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"shapeRendering",{get:function(){return this.getPropertyValue("shapeRendering")},set:function(t){t=_(t),this.setPropertyValue("shapeRendering",t)&&this.setSVGAttribute({"shape-rendering":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPerfect",{get:function(){return this.getPropertyValue("pixelPerfect")},set:function(t){t=b(t),this._positionPrecision=t?0:3,this.setPropertyValue("pixelPerfect",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rtl",{get:function(){return w(this._rtl)?this._rtl:this.virtualParent?this.virtualParent.rtl:!!this.parent&&this.parent.rtl},set:function(t){t=b(t),this._rtl=t},enumerable:!0,configurable:!0}),e.prototype.show=function(t){return this.showReal(t)},e.prototype.showReal=function(t){var e,i=this,n=this.defaultState.properties;if(!this.disabled&&(this.isHidden||!this.visible||this.isHiding||null!=n.opacity&&this.opacity<n.opacity&&!this.isShowing)&&!this.isDisposed()){this.invalid&&this.validate(),this.positionInvalid&&this.validatePosition(),O(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,(e=this.applyCurrentState(t))&&!e.isFinished()?(this._showHideDisposer=e.events.on("animationended",function(){i.isShowing=!1}),this._disposers.push(this._showHideDisposer)):this.isShowing=!1;var r=this.defaultState.properties.visible;w(r)||(r=!0),this.visible=r,this.readerHidden=!1,this.dispatchImmediately("shown")}return e},e.prototype.hide=function(t){return this.hideReal(t)},e.prototype.hideReal=function(t){var e,i=this;if(!this.isHiding&&this.visible&&!this.isDisposed()){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?(e=this.setState(n,t,void 0))&&!e.isFinished()?(this._hideAnimation=e,this._showHideDisposer=e.events.on("animationended",function(){i.isHiding=!1,i._isHidden=!0},this),this._disposers.push(this._showHideDisposer),this._disposers.push(e)):(this.isHiding=!1,this._isHidden=!0):(this.visible=!1,this.isHiding=!1,this._isHidden=!0),this.readerHidden=!0,this.dispatchImmediately("hidden"),this.invalidate()}return O(t)||(t=this.hiddenState.transitionDuration),e},Object.defineProperty(e.prototype,"visible",{get:function(){return this.getVisibility()},set:function(t){t=b(t),this.setVisibility(t)},enumerable:!0,configurable:!0}),e.prototype.getVisibility=function(){var t=this.getPropertyValue("visible");return w(t)||(t=!0),t},e.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(e.prototype,"zIndex",{get:function(){return this.getPropertyValue("zIndex")},set:function(t){t=x(t),this.setPropertyValue("zIndex",t)&&this.dispatch("zIndexChanged")},enumerable:!0,configurable:!0}),e.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"))},e.prototype.toBack=function(){var t=this.parent;t&&0!=t.children.indexOf(this)&&(t.children.moveValue(this,0),this.dispatch("zIndexChanged"))},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip?this._tooltip:this.virtualParent?this.virtualParent.tooltip:this.parent?this.parent.tooltip:void 0},set:function(t){this._tooltip&&this.removeDispose(this._tooltip),this._tooltip=t,t&&(t.parent=this.tooltipContainer)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDataItem",{get:function(){var t=this._tooltipDataItem;return t||this.dataItem},set:function(t){this._tooltipDataItem=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipColorSource",{get:function(){return this._tooltipColorSource},set:function(t){this._tooltipColorSource=t},enumerable:!0,configurable:!0}),e.prototype.showTooltip=function(t){this.alwaysShowTooltip&&!this._tooltip&&this.tooltip&&(this._tooltip=this.tooltip.clone());for(var e=this;null!=e;){if(!e.visible||e.disabled||e.__disabled)return void(this._tooltip&&this._tooltip.visible&&this._tooltip.hide(0));e=e.parent}if(w(this.tooltipText)||w(this.tooltipHTML)){var i=this.tooltip,n=this.tooltipDataItem;if(i){i.targetSprite=this;var r=this,s=this.tooltipColorSource;if((i.getStrokeFromObject||i.getFillFromObject)&&s&&(s.isTemplate?n&&function(t,e){for(var i=t.length,n=0;n<i&&e(t[n],n);++n);}(n.sprites,function(t){return t.clonedFrom!=s||(r=t,!1)}):r=s),i.getStrokeFromObject){for(var o=this.stroke,a=r;null!=a.parent&&(null==(o=a.stroke)&&(a=a.parent),null==o););o instanceof je?i.background.animate({property:"stroke",to:o},i.animationDuration):i.background.stroke=o}if(i.dataItem=n,i.label.populateStringFrom=this,i.getFillFromObject){var l=this.fill;for(a=r;null!=a.parent;)if(null==(l=a.fill)||l instanceof je&&null==l.rgb)a=a.parent;else if(null!=l)break;null==l&&(l=Ee("#000000")),l instanceof je&&i.visible?i.background.animate({property:"fill",to:l},i.animationDuration):i.background.fill=l,i.autoTextColor&&l instanceof je&&(i.label.fill=l.alternative)}var h="";if(this.tooltipHTML&&(i.html=this.tooltipHTML,h=this.tooltipHTML),this.tooltipText&&(i.text=this.tooltipText,h=this.tooltipText),this.updateTooltipPosition(t)){if(i.readerDescribedBy=this.uidAttr(),i.label.invalid&&i.label.validate(),null!=h&&""!=h&&""!=i.label.currentText){i&&!i.parent&&(i.parent=this.tooltipContainer);var u=i.defaultState.transitionDuration;return u<=0&&(u=1),i.show(u),!0}}else this.hideTooltip(0)}}return!1},e.prototype.updateTooltipPosition=function(t){var e=this;if("pointer"!=this.tooltipPosition){var i=Ai({x:this.tooltipX,y:this.tooltipY},this);return this.pointTooltipTo(i)}if(this._interactionDisposer&&this._interactionDisposer.dispose(),this._interactionDisposer=Ir().body.events.on("track",function(t){return e.pointTooltipTo(ji(t.point,e.svgContainer.SVGContainer,e.svgContainer.cssScale),!0)}),t)return this.pointTooltipTo(t,!0)},e.prototype.pointTooltipTo=function(t,e){var i=this.tooltip;if(i&&this.topParent){if(i.showInViewport)return i.pointTo(t,e),!0;if(ct(t,{x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight}))return i.pointTo(t,e),!0}return!1},e.prototype.hideTooltip=function(t){if(!this.alwaysShowTooltip){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(e.prototype,"tooltipHTML",{get:function(){return this.getPropertyValue("tooltipHTML")},set:function(t){t=_(t),this.hoverable=!0,this.setPropertyValue("tooltipHTML",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipText",{get:function(){return this.getPropertyValue("tooltipText")},set:function(t){(t=_(t))&&(this.hoverable=!0),this.setPropertyValue("tooltipText",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipContainer",{get:function(){return this._tooltipContainer?this._tooltipContainer:this.parent?this.parent.tooltipContainer:void 0},set:function(t){this._tooltipContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipX",{get:function(){return this.getTooltipX()},set:function(t){t=x(t),this.setPropertyValue("tooltipX",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alwaysShowTooltip",{get:function(){return this.getPropertyValue("alwaysShowTooltip")},set:function(t){t=b(t),this.setPropertyValue("alwaysShowTooltip",t)&&this.tooltip&&(t&&this.showTooltip(),this.handleAlwaysShowTooltip())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipPosition",{get:function(){return this.getPropertyValue("tooltipPosition")},set:function(t){this.setPropertyValue("tooltipPosition",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipY",{get:function(){return this.getTooltipY()},set:function(t){t=x(t),this.setPropertyValue("tooltipY",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return O(t)||(t=this.maxLeft+this.measuredWidth/2-this.pixelPaddingLeft-this.ex),t},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");return O(t)||(t=this.maxTop+this.measuredHeight/2-this.pixelPaddingTop-this.ey),t},e.prototype.raiseCriticalError=function(t){this.svgContainer&&(this.modal.content=this.adapter.apply("criticalError",t).message,this.modal.closable=!1,this.modal.open(),this.disabled=!0),ce.verbose&&console.log(t)},e.prototype.processConfig=function(e){e&&(w(e.tooltipColorSource)&&T(e.tooltipColorSource)&&this.map.hasKey(e.tooltipColorSource)&&(e.tooltipColorSource=this.map.getKey(e.tooltipColorSource)),w(e.cursorOverStyle)&&T(e.cursorOverStyle)&&(e.cursorOverStyle=this.getCursorStyle(e.cursorOverStyle)),w(e.cursorDowntyle)&&T(e.cursorDowntyle)&&(e.cursorDowntyle=this.getCursorStyle(e.cursorDowntyle)),w(e.cursorOptions)&&(w(e.cursorOptions.overStyle)&&T(e.cursorOptions.overStyle)&&(e.cursorOptions.overStyle=this.getCursorStyle(e.cursorOptions.overStyle)),w(e.cursorOptions.downStyle)&&T(e.cursorOptions.downStyle)&&(e.cursorOptions.downStyle=this.getCursorStyle(e.cursorOptions.downStyle)))),t.prototype.processConfig.call(this,e)},e.prototype.getCursorStyle=function(t){switch(t){case"grab":return zr.grab;case"grabbing":return zr.grabbing;case"pointer":return zr.pointer;case"horizontalResize":return zr.horizontalResize;case"verticalResize":return zr.verticalResize;default:return zr.default}},e.prototype.configOrder=function(e,i){return e==i?0:"tooltipColorSource"==e?1:"tooltipColorSource"==i?-1:t.prototype.configOrder.call(this,e,i)},Object.defineProperty(e.prototype,"isHidden",{get:function(){return this._isHidden?this._isHidden:!!this._parent&&this._parent.isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOnInit",{get:function(){return this.getPropertyValue("showOnInit")},set:function(t){t=b(t),this.setShowOnInit(t)},enumerable:!0,configurable:!0}),e.prototype.setShowOnInit=function(t){this.setPropertyValue("showOnInit",t)&&(this.isTemplate||(!t||this.inited||this.hidden?this._showOnInitDisposer&&this._showOnInitDisposer.dispose():(this._showOnInitDisposer=new Tt([pe.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))))},e.prototype.hideInitially=function(){this.isDisposed()||(this.appeared=!1,this.inited||this.hide(0))},e.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()?e.events.on("animationended",function(){t.appeared=!0,t.dispatch("appeared")}):(this.appeared=!0,this.dispatch("appeared"))}},Object.defineProperty(e.prototype,"hidden",{get:function(){return this.getPropertyValue("hidden")},set:function(t){t=b(t),this.setPropertyValue("hidden",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this._bbox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"plugins",{get:function(){var t=this;return this._plugins||(this._plugins=new me,this._disposers.push(this._plugins.events.on("inserted",function(e){e.newValue.target=t,e.newValue.init()})),this._disposers.push(new ge(this._plugins))),this._plugins},enumerable:!0,configurable:!0}),e.prototype._systemUpdate=function(t){this.validate()},e.prototype._systemCheckIfValidate=function(){return!0},e.prototype._systemValidatePositions=function(){this.validatePosition()},e.prototype._systemValidateLayouts=function(){},e}(Be);pe.registeredClasses.Sprite=hs;var us=function(t){function e(){var e=t.call(this)||this;return e.className="Rectangle",e.element=e.paper.add("rect"),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this._positionPrecision;this.pixelPerfect&&(e=0);var i=E(this.innerWidth,e),n=E(this.innerHeight,e);this.element.attr({width:i,height:n})},e.prototype.measureElement=function(){},Object.defineProperty(e.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}),e}(hs);pe.registeredClasses.Rectangle=us;var ps=function(t){function e(){var e=t.call(this)||this;return e._childrenByLayout=[],e._childrenDisposers=new le,e.hasFocused=!1,e.setStateOnSprites=[],e.layoutInvalid=!1,e._absoluteWidth=0,e._absoluteHeight=0,e._shouldBeReady=[],e._tapToActivate=!1,e.tapTimeout=3e3,e.className="Container",e._element=e.paper.addGroup("g"),e.group.add(e.element),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("layout","absolute"),e.setPropertyValue("fixedWidthGrid",!1),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e._positionPrecision=4,e._disposers.push(new ae(e._childrenDisposers)),e.children.events.on("inserted",e.handleChildAdded,e),e.children.events.on("removed",e.handleChildRemoved,e),e.applyTheme(),e}return a(e,t),e.prototype.handleChildAdded=function(t){this.processChild(t.newValue)},e.prototype.processChild=function(t){try{this._childrenDisposers.insertKey(t.uid,new Tt([t.events.on("transformed",this.handleChildTransform,this),t.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch(t){}this.element&&!t.disabled&&this.element.add(t.group);t.parent=this,t.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:t}),this.invalidate()},e.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},e.prototype.handleChildRemoved=function(t){var e=t.oldValue;(this._childrenDisposers.removeKey(e.uid),this.element)&&this.element.removeElement(e.group);e.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:e})},e.prototype.handleChildTransform=function(t){t.target.isMeasured&&this.invalidateLayout()},e.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||(this.layoutInvalid=!0,pe.addToInvalidLayouts(this),de.requestFrame())},e.prototype.invalidate=function(){t.prototype.invalidate.call(this),this.invalidateLayout()},e.prototype.deepInvalidate=function(){t.prototype.invalidate.call(this),yt(this._childrenByLayout,function(t){t instanceof e?t.deepInvalidate():t.invalidate()}),this.invalidateLayout()},Object.defineProperty(e.prototype,"children",{get:function(){return this._children||(this._children=new me),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),e.prototype.removeElement=function(){},e.prototype.sortChildren=function(){var t=this;if(this._childrenByLayout=[],"none"!=this.layout&&"absolute"!=this.layout&&this.layout){var e=[],i=[];Qt(this.children.iterator(),function(n){"horizontal"==t.layout||"grid"==t.layout?O(n.percentWidth)?i.push(n):e.push(n):"vertical"==t.layout&&O(n.percentHeight)?i.push(n):e.push(n)}),this._childrenByLayout=e.concat(i)}else this._childrenByLayout=this.children.values;this.calculateRelativeSize()},e.prototype.calculateRelativeSize=function(){var t=this,e=0,i=0;yt(this._childrenByLayout,function(t){t.isMeasured&&(O(t.percentWidth)&&(e+=t.percentWidth),O(t.percentHeight)&&(i+=t.percentHeight))}),yt(this._childrenByLayout,function(n){n.isMeasured&&("horizontal"==t.layout&&(O(n.percentWidth)&&(n.relativeWidth=n.percentWidth/e),O(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100)),"vertical"==t.layout&&(O(n.percentHeight)&&(n.relativeHeight=n.percentHeight/i),O(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100)),"grid"==t.layout&&(O(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100),O(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100))),"absolute"!=t.layout&&n.isMeasured||(O(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100),O(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100))})},e.prototype.addChildren=function(){if(this.element){var t=_t(this.children.values),e=t.map(function(t,e){return{idx:e,data:t}});e.sort(function(t,e){var i=t.data.zIndex||0,n=e.data.zIndex||0;return i<n?-1:i>n?1:t.idx-e.idx}),t=e.map(function(t){return t.data});var i=this.element,n=!0;if(i.node&&i.node.childNodes)for(var r=0,s=i.node.childNodes.length;r<s;r++)if(i.node.childNodes[r]!=t[r].group.node){n=!1;break}n||(yt(t,function(t){t.group&&i.add(t.group)}),this._background&&this.group.addToBack(this._background.group),this.invalidateLayout())}},e.prototype.createChild=function(t){var e=new t;return e.parent=this,e},e.prototype.removeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.parent=void 0,this.children.removeValue(t)}},e.prototype.disposeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.dispose(),this.children.removeValue(t)}},Object.defineProperty(e.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}),e.prototype.handleGlobalScale=function(){t.prototype.handleGlobalScale.call(this),this.children.each(function(t){t.handleGlobalScale()})},e.prototype.createBackground=function(){return new us},e.prototype.processBackground=function(){var t=this._background;t&&(t.isMeasured=!1,this._background.fill=(new Br).getFor("background"),t.parent=this,t.isMeasured=!1,this.children.removeValue(t),this._disposers.push(t),this.group.addToBack(this._background.group))},e.prototype.validateLayout=function(){var t=this;pe.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var e=0,i=0,n=!0;this.children&&(this.sortChildren(),yt(this._childrenByLayout,function(r){var s,o;if(O(r.relativeWidth)?(s=E(t._availableWidth*r.relativeWidth,2),"horizontal"==t.layout&&(s-=r.pixelMarginRight+r.pixelMarginLeft)):"horizontal"==t.layout&&r.invalid&&r.validate(),O(r.relativeHeight)?(o=E(t._availableHeight*r.relativeHeight,2),"vertical"==t.layout&&(o-=r.pixelMarginTop+r.pixelMarginBottom)):"vertical"==t.layout&&r.invalid&&r.validate(),0==r.invalid){if(O(r.relativeWidth)&&(r.maxWidth=s),O(r.relativeHeight)&&(r.maxHeight=o),r.isMeasured){"horizontal"==t.layout&&(O(r.percentWidth)||r.measuredWidth>0&&(t._availableWidth-=r.measuredWidth+r.pixelMarginLeft+r.pixelMarginRight)),"vertical"==t.layout&&(O(r.percentHeight)||r.measuredHeight>0&&(t._availableHeight-=r.measuredHeight+r.pixelMarginTop+r.pixelMarginBottom));var a=r.measuredWidth,l=r.measuredHeight;"none"!=r.align&&(a+=r.pixelMarginLeft+r.pixelMarginRight),"none"!=r.valign&&(l+=r.pixelMarginTop+r.pixelMarginBottom),e=Math.max(e,a),i=Math.max(i,l)}}else r.isMeasured&&(O(r.relativeWidth)&&r.maxWidth!=s&&(r.maxWidth=s,n=!1),O(r.relativeHeight)&&r.maxHeight!=o&&(r.maxHeight=o,n=!1))})),this._absoluteWidth=e,this._absoluteHeight=i,n&&this.arrange()},e.prototype.arrange=function(){var t,e,i,n,r,s,o,a,l,h,u,p=this,c=this.children,d=0,g=0,y=X(this.innerWidth,this._absoluteWidth),m=X(this.innerHeight,this._absoluteHeight),v=this.pixelPaddingLeft,b=this.pixelPaddingRight,x=this.pixelPaddingTop,_=this.pixelPaddingBottom,P=0,w=0,C=0,S=0,k=[],T=[],I=this.maxWidth,D=this.maxHeight,A=this.minWidth,V=this.minHeight,F=_t(c.values);if(this.reverseOrder&&F.reverse(),"grid"==this.layout){s=I,r=1;for(var M=0,j=F.length;M<j;M++){if((L=F[M]).isMeasured&&!L.disabled&&!L.__disabled){var E=L.measuredWidth;E<s&&(s=E),E>r&&(r=E)}}s=B(s,1,I),r=B(r,1,I),o=this.fixedWidthGrid?I/r:I/s,o=X(1,Math.floor(o)),o=z(this.maxColumns,o),k=this.getColumnWidth(F,o,r)}for(M=0,j=F.length;M<j;M++){var L;if(!(L=F[M]).isMeasured||L.disabled||L.__disabled)L.validatePosition();else{var R=void 0,N=void 0,H=L.pixelMarginLeft,W=L.pixelMarginRight,Y=L.pixelMarginTop,U=L.pixelMarginBottom,G=L.measuredWidth,K=L.measuredHeight,q=void 0,Z=void 0,$=void 0,J=void 0;switch(this.layout){case"none":break;case"absolute":switch(L.align){case"left":R=H-L.maxLeft;break;case"center":R=(y-G)/2-L.maxLeft;break;case"right":R=y-W-L.maxRight;break;default:L.x instanceof f||(R=L.pixelX)}switch(L.valign){case"top":N=Y-L.maxTop;break;case"middle":N=(m-K)/2-L.maxTop;break;case"bottom":N=m-U-L.maxBottom;break;default:L.y instanceof f||(N=L.pixelY)}break;case"vertical":switch(L.align){case"left":R=H-L.maxLeft;break;case"center":R=(y-G)/2-L.maxLeft;break;case"right":R=y-W-L.maxRight;break;default:R=L.pixelX}w=(N=w+Y-L.maxTop)+L.maxBottom+U;break;case"horizontal":switch(L.valign){case"top":N=Y-L.maxTop;break;case"middle":N=(m-K)/2-L.maxTop;break;case"bottom":N=m-U-L.maxBottom;break;default:N=L.pixelY}P=(R=P+H-L.maxLeft)+L.maxRight+W;break;case"grid":switch(R=P+H-L.maxLeft,L.valign){case"top":N=w+Y-L.maxTop;break;case"middle":N=w+(m-K)/2-L.maxTop;break;case"bottom":N=w+m-U-L.maxBottom;break;default:N=w-L.maxTop}P+=k[S],T[C]=X(T[C],K);var Q=k[++S];if(O(Q)||(Q=r),P>z(this.innerWidth,I)-Q+1&&S<o){o=S,P=0,w=0,C=0,S=0,k=this.getColumnWidth(F,o,r),T=[],M=-1;continue}S>=o&&(S=0,w+=T[C],C++,P=0)}"none"!==this.layout&&(L.moveTo({x:R,y:N}),q=R+L.maxLeft-H,Z=R+L.maxRight+W,$=N+L.maxTop-Y,J=N+L.maxBottom+U,(Z>e||!O(e))&&(e=Z),(q<t||!O(t))&&(t=q),($<i||!O(i))&&(i=$),(J>n||!O(n))&&(n=J),(Z>l||!O(l))&&(l=Z),(q<a||!O(a))&&(a=q),($<h||!O(h))&&(h=$),(J>u||!O(u))&&(u=u))}}if("none"==this.layout){var tt=this.bbox;t=tt.x,e=tt.x+tt.width,i=tt.y,n=tt.y+tt.height}O(t)||(t=0,a=0),O(e)||(l=e=this._availableWidth),O(i)||(i=0,h=0),O(n)||(u=n=this._availableHeight),O(h)||(h=0),O(u)||(u=h),O(a)||(a=0),O(l)||(l=a),d=e-t,g=n-i,O(this.relativeWidth)&&(t=0,e=d=I-v-b),O(this.relativeHeight)&&(i=0,n=g=D-x-_),O(this._pixelWidth)&&(t=0,d=this._pixelWidth-v-b),O(A)&&d<A&&(t=0,d=this.minWidth-v-b),O(this._pixelHeight)&&(i=0,g=this._pixelHeight-x-_),O(V)&&g<V&&(i=0,g=V-x-_);var et=l-a,it=u-h;if("none"!=this.layout&&(this.contentAlign||this.contentValign)&&c.length>0){var nt,rt,st=d,ot=g;st<et&&(st=et),ot<it&&(ot=it),"center"==this.contentAlign&&(nt=(st-et)/2),"right"==this.contentAlign&&(nt=st-et),"middle"==this.contentValign&&(rt=(ot-it)/2),"bottom"==this.contentValign&&(rt=ot-it),O(nt)&&Qt(c.iterator(),function(t){var e=t.maxLeft,i=nt;"horizontal"==p.layout&&(t.x=t.pixelX+i),"grid"==p.layout&&(t.x=t.pixelX+i),"vertical"==p.layout&&(i+=t.pixelMarginLeft,"none"==t.align&&(t.x=i-e)),"absolute"==p.layout&&(i+=t.pixelMarginLeft,"none"==t.align&&(t.x=i-e))}),O(rt)&&Qt(c.iterator(),function(t){var e=t.maxTop,i=rt;"horizontal"==p.layout&&(i+=t.pixelMarginTop,"none"==t.valign&&(t.y=i-e)),"grid"==p.layout&&(i+=t.pixelMarginTop,t.y=i-e),"vertical"==p.layout&&(t.y=t.pixelY+i),"absolute"==p.layout&&(i+=t.pixelMarginTop,"none"==t.valign&&(t.y=i-e))})}var at=this.bbox;d=X(d,A),g=X(g,V),this.contentWidth=d,this.contentHeight=g,d=z(d,I),g=z(g,D),this._bbox={x:t,y:i,width:d,height:g};var lt=this.maxLeft,ht=this.maxTop,ut=this.maxBottom,pt=this.maxRight;if(this.measure(),(lt!=this.maxLeft||pt!=this.maxRight||ht!=this.maxTop||ut!=this.maxBottom)&&this.events.isEnabled("transformed")){var ct={type:"transformed",target:this};at&&(ct.dummyData=at.width+" "+d+"  "+at.height+" "+g),this.events.dispatchImmediately("transformed",ct)}},e.prototype.updateCenter=function(){t.prototype.updateCenter.call(this),this.updateBackground()},e.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)},e.prototype.getColumnWidth=function(t,e,i){var n=this,r=[],s=0;return yt(t,function(t){t.isMeasured&&(n.fixedWidthGrid?r[s]=i:r[s]=X(r[s],t.measuredWidth+t.pixelMarginRight+t.pixelMarginLeft),++s==e&&(s=0))}),r},Object.defineProperty(e.prototype,"layout",{get:function(){return this.getPropertyValue("layout")},set:function(t){this.setPropertyValue("layout",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentValign",{get:function(){return this.getPropertyValue("contentValign")},set:function(t){this.setPropertyValue("contentValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentAlign",{get:function(){return this.getPropertyValue("contentAlign")},set:function(t){this.setPropertyValue("contentAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedWidthGrid",{get:function(){return this.getPropertyValue("fixedWidthGrid")},set:function(t){this.setPropertyValue("fixedWidthGrid",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxColumns",{get:function(){return this.getPropertyValue("maxColumns")},set:function(t){this.setPropertyValue("maxColumns",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseOrder",{get:function(){return this.getPropertyValue("reverseOrder")},set:function(t){this.setPropertyValue("reverseOrder",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"setStateOnChildren",{get:function(){return this.getPropertyValue("setStateOnChildren")},set:function(t){this.setPropertyValue("setStateOnChildren",t,!0)},enumerable:!0,configurable:!0}),e.prototype.fitsToBounds=function(t){var e=t.x,i=t.y;return e>=-.5&&e<=this.pixelWidth+.5&&i>=-.5&&i<=this.pixelHeight+.5},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.layout=e.layout,this.setStateOnChildren=e.setStateOnChildren,e._background&&(this.background=e._background.clone(),this.background.copyFrom(e._background)),Qt(e.children.iterator(),function(t){t.shouldClone&&(t.clone().parent=i)})},Object.defineProperty(e.prototype,"preloader",{get:function(){var t=this._preloader;return t||(this.parent?this.parent.preloader:void 0)},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}),e.prototype.setPaper=function(e){var i=this,n=t.prototype.setPaper.call(this,e);return n&&(this._background&&(this._background.paper=e,this._background.topParent=this.topParent),this.children.each(function(t){t.setPaper(e),t.topParent=i.topParent})),n},e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),pe.removeFromInvalidLayouts(this)},e.prototype.setDataItem=function(e){this._dataItem!=e&&(Qt(this.children.iterator(),function(t){t.dataItem=e}),this._background&&(this._background.dataItem=e)),t.prototype.setDataItem.call(this,e)},e.prototype.measureElement=function(){this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||this.validateLayout()},e.prototype.getTooltipX=function(){return t.prototype.getTooltipX.call(this)},e.prototype.getTooltipY=function(){return t.prototype.getTooltipY.call(this)},Object.defineProperty(e.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(e.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}),e.prototype.invalidateLabels=function(){this.children.each(function(t){t.hardInvalidate?t.hardInvalidate():t instanceof e&&t.invalidateLabels()})},Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")},set:function(t){this.setPropertyValue("fontWeight",t),this.setSVGAttribute({"font-weight":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(t){this.setPropertyValue("textDecoration",t),this.setSVGAttribute({"text-decoration":t})},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),t.prototype.dispose.call(this)},e.prototype.setState=function(e,i,n){var r=e;return e instanceof Ln&&(r=e.name),this.setStateOnChildren&&Qt(this.children.iterator(),function(t){t.setState(r,i,n),"active"!=r&&(t.isActive=!1)}),this._background&&this._background.setState(r),this.setStateOnSprites.length&&yt(this.setStateOnSprites,function(t){t.setState(r,i,n)}),t.prototype.setState.call(this,e,i,n)},e.prototype.setActive=function(e){t.prototype.setActive.call(this,e),this._background&&(this._background.isActive=e)},e.prototype.dispatchReady=function(){var e=this;if(!this.isReady()&&!this.isDisposed()){var i=!0;this.children.each(function(t){t.__disabled||t.disabled||t.isReady()||(i=!1)}),yt(this._shouldBeReady,function(t){t.__disabled||t.disabled||t.isReady()||(i=!1)}),i?t.prototype.dispatchReady.call(this):pe.events.once("exitframe",function(){e.dispatchReady(),de.requestFrame()},void 0,!1)}},e.prototype._systemUpdate=function(e){this.children.each(function(t){t.invalid&&(t._systemCheckIfValidate()?t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid?e.push(t):t.validate():e.push(t))}),t.prototype._systemUpdate.call(this,e)},e.prototype._systemValidatePositions=function(){this.children.each(function(t){t.positionInvalid&&t.validatePosition()}),t.prototype._systemValidatePositions.call(this)},e.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(e.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(t){this._tapToActivate!=t&&this.setTapToActivate(t)},enumerable:!0,configurable:!0}),e.prototype.setTapToActivate=function(t){var e=this;this._tapToActivate=t,this.interactions.isTouchProtected=t,t&&this.interactions.setEventDisposer("container-tapToActivate",t,function(){return new Tt([e.events.on("hit",e.handleTapToActivate,e,!1),e.events.on("down",e.initTapTimeout,e,!1),e.events.on("track",e.initTapTimeout,e,!1),Ir().body.events.on("down",function(t){Ir().isLocalElement(t.pointer,e.paper.svg,e.uid)||e.handleTapToActivateDeactivation()},e,!1)])}),Ir()},e.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},e.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},e.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))},e}(hs);pe.registeredClasses.Container=ps;var cs=function(){function t(){}return t.prototype.parse=function(t){return[]},Object.defineProperty(t.prototype,"parsableNumbers",{get:function(){return this.options.numberFields&&this.options.numberFields.length>0},enumerable:!0,configurable:!0}),t.prototype.maybeToNumber=function(t,e){return-1!==this.options.numberFields.indexOf(t)?xi(e):e},Object.defineProperty(t.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),t.prototype.maybeToDate=function(t,e){return-1!==this.options.dateFields.indexOf(t)?this.options.dateFormatter.parse(e,this.dateFormat):e},t.prototype.maybeToEmpty=function(t){return w(t)&&""!=t||!w(this.options.emptyAs)?t:this.options.emptyAs},Object.defineProperty(t.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new Zr,this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),t}(),ds=[",",";","\t"],fs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentType="text/csv",e.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},e}return a(e,t),e.isCSV=function(t){return!!e.getDelimiterFromData(t)},e.getDelimiterFromData=function(t){var e,i=t.split("\n"),n=i.length;return yt(ds,function(t){for(var r=0,s=0,o=0;o<n;++o){if(!((r=i[o].split(t).length)>1)){s=0;break}if(0===s)s=r;else if(r!=s){s=0;break}}s&&(e=t)}),e},e.prototype.parse=function(t){this.options.delimiter||(this.options.delimiter=e.getDelimiterFromData(t));var i,n,r,s=this.CSVToArray(t,this.options.delimiter),o=w(this.options.emptyAs),a=this.parsableNumbers,l=this.parsableDates,h=[],u=[];for(n=0;n<this.options.skipRows;n++)s.shift();if(this.options.useColumnNames){u=s.shift();for(var p=0;p<u.length;p++)""===(i=w(u[p])?u[p].replace(/^\s+|\s+$/gm,""):"")&&(i="col"+p),u[p]=i}for(;r=this.options.reverse?s.pop():s.shift();)if(!this.options.skipEmpty||1!==r.length||""!==r[0]){var c={};for(n=0;n<r.length;n++)c[i=void 0===u[n]?"col"+n:u[n]]=""===r[n]?this.options.emptyAs:r[n],o&&(c[i]=this.maybeToEmpty(c[i])),a&&(c[i]=this.maybeToNumber(i,c[i])),l&&(c[i]=this.maybeToDate(i,c[i]));h.push(c)}return h},e.prototype.CSVToArray=function(t,e){e=e||",";for(var i=new RegExp("(\\"+e+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+e+"\\r\\n]*))","gi"),n=[[]],r=null;r=i.exec(t);){var s=r[1];s.length&&s!==e&&n.push([]);var o=void 0;o=r[2]?r[2].replace(new RegExp('""',"g"),'"'):r[3],n[n.length-1].push(o)}return n},e}(cs),gs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentType="application/json",e.options={},e}return a(e,t),e.isJSON=function(t){try{return JSON.parse(t),!0}catch(t){return!1}},e.prototype.parse=function(t){var e,i=this;try{w(JSON)&&(e=JSON.parse(t))}catch(t){return}var n=w(this.options.emptyAs),r=this.parsableNumbers,s=this.parsableDates;if(Array.isArray(e)&&(r||s||n))for(var o=function(t,o){var a=e[t];zt(a,function(t,e){n&&(a[t]=i.maybeToEmpty(a[t])),r&&(a[t]=i.maybeToNumber(t,a[t])),s&&(a[t]=i.maybeToDate(t,a[t]))})},a=0,l=e.length;a<l;a++)o(a);return e},e}(cs),ys=new(function(){function t(){this.adapter=new Te(this)}return t.prototype.load=function(t){var e=gt(Array.isArray(t)?t:[t],function(t){return t.dispatchImmediately("started"),t.dispatchImmediately("loadstarted"),is(t.url,t,t.requestOptions)});Promise.all(e).then(function(t){yt(t,function(t){var e=t.target;e.dispatchImmediately("loadended"),t.error?e.events.isEnabled("error")&&e.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:e.language.translate("Unable to load file: %1",null,e.url),target:e}):e.processData(t.response,t.type),e.dispatchImmediately("ended")})}).catch(function(t){t.target&&(t.target.dispatchImmediately("loadended"),t.target.events.isEnabled("error")&&t.target.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:t.target.language.translate("Unable to load file: %1",null,t.target.url),target:t.target}),t.target.dispatchImmediately("ended"))})},t.prototype.getParserByType=function(t){var e=this.adapter.apply("getParserByType",{parser:null,type:t}).parser;return e||("csv"==t||"text/csv"==t||"application/vnd.ms-excel"==t?new fs:"json"==t||"application/json"==t?new gs:void 0)},t.prototype.getParserByData=function(t,e){var i=this.adapter.apply("getParserByData",{parser:null,data:t,type:e}).parser;if(!i){if(i=this.getParserByType(e))return i;if(gs.isJSON(t))return this.getParserByType("json");if(fs.isCSV(t))return this.getParserByType("csv")}return i},t}()),ms=function(t){function e(e,i){var n=t.call(this)||this;return n.adapter=new Te(n),n._requestOptions={},n._incremental=!1,n._incrementalParams={},n._keepCount=!1,n._updateCurrentData=!1,n.showPreloader=!0,n.className="DataSource",e&&(n.url=e),i&&(n.parser="string"==typeof i?ys.getParserByType(i):i),n}return a(e,t),e.prototype.processData=function(t,e){if(this.dispatchImmediately("parsestarted"),this.parser||(this.parser=ys.getParserByData(t,e),this.parser)){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))),!w(this.data)&&this.events.isEnabled("parseerror")){var i={type:"parseerror",message:this.language.translate("Error parsing file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",i)}this.dispatchImmediately("parseended"),w(this.data)&&this.dispatchImmediately("done",{data:this.data}),this.lastLoad=new Date}else{if(this.events.isEnabled("parseerror")){var n={type:"parseerror",message:this.language.translate("No parser available for file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",n)}this.dispatchImmediately("parseended")}},Object.defineProperty(e.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(e.prototype,"requestOptions",{get:function(){return this.adapter.apply("requestOptions",this._requestOptions)},set:function(t){this._requestOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser||(this._parser=new gs),this.adapter.apply("parser",this._parser)},set:function(t){this._parser=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reloadFrequency",{get:function(){return this.adapter.apply("reloadTimeout",this._reloadFrequency)},set:function(t){var e=this;this._reloadFrequency!=t&&(this._reloadFrequency=t,t?w(this._reloadDisposer)||(this._reloadDisposer=this.events.on("ended",function(t){e._reloadTimeout=setTimeout(function(){e.load()},e.reloadFrequency)})):w(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incremental",{get:function(){return this.adapter.apply("incremental",this._incremental)},set:function(t){this._incremental=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incrementalParams",{get:function(){return this.adapter.apply("incrementalParams",this._incrementalParams)},set:function(t){this._incrementalParams=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepCount",{get:function(){return this.adapter.apply("keepCount",this._keepCount)},set:function(t){this._keepCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateCurrentData",{get:function(){return this.adapter.apply("updateCurrentData",this._updateCurrentData)},set:function(t){this._updateCurrentData=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){return this._language?this._language:this.component?(this._language=this.component.language,this._language):(this.language=new Ur,this.language)},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.component?(this._dateFormatter=this.component.dateFormatter,this._dateFormatter):(this.dateFormatter=new Zr,this.dateFormatter)},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),e.prototype.timestampUrl=function(t){var e={};return e[(new Date).getTime().toString()]="",this.addUrlParams(t,e)},e.prototype.dispose=function(){t.prototype.dispose.call(this),this._reloadTimeout&&clearTimeout(this._reloadTimeout)},e.prototype.load=function(){this._reloadTimeout&&clearTimeout(this._reloadTimeout),ys.load(this)},e.prototype.addUrlParams=function(t,e){var i=t.match(/\?/)?"&":"?",n=[];return zt(e,function(t,e){""!=e?n.push(t+"="+encodeURIComponent(e)):n.push(t)}),n.length?t+i+n.join("&"):t},e.prototype.processConfig=function(e){pe.registeredClasses.json=gs,pe.registeredClasses.JSONParser=gs,pe.registeredClasses.csv=fs,pe.registeredClasses.CSVParser=fs,t.prototype.processConfig.call(this,e)},e}(Be),vs=function(t){function e(){var e=t.call(this)||this;return e._rules=new me,e._appliedRules={},e._useDefault=!0,e.adapter=new Te(e),e._enabled=!1,e._noStates=[],e.className="Responsive",e.rules.events.on("inserted",e.checkRules,!0),e.rules.events.on("removed",e.checkRules,!0),e._disposers.push(e.rules.events),e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"component",{get:function(){return this._component},set:function(t){t!=this._component&&(this._sizeEventDisposer&&this.removeDispose(this._sizeEventDisposer),this._component=t,this._sizeEventDisposer=C(this.component).events.on("sizechanged",this.checkRules,this),this._disposers.push(this._sizeEventDisposer),this.enabled=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.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(e.prototype,"defaultRules",{get:function(){return this.adapter.apply("defaultRules",bs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allRules",{get:function(){var t=new me;return this.useDefault&&t.copyFrom(this.defaultRules),t.copyFrom(this.rules),this.adapter.apply("allRules",t)},enumerable:!0,configurable:!0}),e.prototype.isApplied=function(t){var e=this._appliedRules[t];return!!w(e)&&e},e.prototype.checkRules=function(){var t=this,e=this.allRules;if(e&&0!=e.length){var i=!1,n=C(this.component);if(Qt(e.iterator(),function(e){e.id||(e.id=pe.getUniqueId());var r=e.relevant(n);(r&&!t.isApplied(e.id)||!r&&t.isApplied(e.id))&&(i=!0),t._appliedRules[e.id]=r}),i){if(!this.component.isReady())return n.hidden=!0,void n.events.once("ready",function(e){t.applyRules(),e.target.show(0)});this.dispatchImmediately("ruleschanged"),this.applyRules()}}},e.prototype.applyRules=function(t){var e=this,i=w(t)?t:C(this.component),n=!1;this.enabled&&Qt(this.allRules.iterator(),function(t){var r=e.getState(t,i);r&&(n||(i.applyCurrentState(0),n=!0),e.isApplied(C(t.id))&&(r.transitionDuration=0,i.setState(r),e.dispatchImmediately("ruleapplied",{rule:t})))}),i.children&&Qt(i.children.iterator(),function(t){e.applyRules(t)})},e.prototype.getState=function(t,e){var i="responsive-"+t.id,n=e.uid+"_"+i;if(-1===ft(this._noStates,n)){if(e.states.hasKey(i))return e.states.getKey(i);var r=t.state(e,i);return r||this._noStates.push(n),r}},e.prototype.getValue=function(t,e){var i=t.getPropertyValue(e);return!w(i)&&w(t[e])&&(i=t[e]),i},e}(Be),bs=new me;bs.events.on("inserted",function(t){t.newValue.id=pe.getUniqueId()});var xs=function(){function t(){}return t.widthXXS=function(e){return e.pixelWidth<=t.XXS},t.widthXS=function(e){return e.pixelWidth<=t.XS},t.widthS=function(e){return e.pixelWidth<=t.S},t.widthM=function(e){return e.pixelWidth<=t.M},t.widthL=function(e){return e.pixelWidth<=t.L},t.widthXL=function(e){return e.pixelWidth<=t.XL},t.widthXXL=function(e){return e.pixelWidth<=t.XXL},t.heightXXS=function(e){return e.pixelHeight<=t.XXS},t.heightXS=function(e){return e.pixelHeight<=t.XS},t.heightS=function(e){return e.pixelHeight<=t.S},t.heightM=function(e){return e.pixelHeight<=t.M},t.heightL=function(e){return e.pixelHeight<=t.L},t.heightXL=function(e){return e.pixelHeight<=t.XL},t.heightXXL=function(e){return e.pixelHeight<=t.XXL},t.isXXS=function(e){return e.pixelWidth<=t.XXS&&e.pixelHeight<=t.XXS},t.isXS=function(e){return e.pixelWidth<=t.XS&&e.pixelHeight<=t.XS},t.isS=function(e){return e.pixelWidth<=t.S&&e.pixelHeight<=t.S},t.isM=function(e){return e.pixelWidth<=t.M&&e.pixelHeight<=t.M},t.isL=function(e){return e.pixelWidth<=t.L&&e.pixelHeight<=t.L},t.isXL=function(e){return e.pixelWidth<=t.XL&&e.pixelHeight<=t.XL},t.isXXL=function(e){return e.pixelWidth<=t.XXL&&e.pixelHeight<=t.XXL},t.maybeXXS=function(e){return e.pixelWidth<=t.XXS||e.pixelHeight<=t.XXS},t.maybeXS=function(e){return e.pixelWidth<=t.XS||e.pixelHeight<=t.XS},t.maybeS=function(e){return e.pixelWidth<=t.S||e.pixelHeight<=t.S},t.maybeM=function(e){return e.pixelWidth<=t.M||e.pixelHeight<=t.M},t.maybeL=function(e){return e.pixelWidth<=t.L||e.pixelHeight<=t.L},t.maybeXL=function(e){return e.pixelWidth<=t.XL||e.pixelHeight<=t.XL},t.maybeXXL=function(e){return e.pixelWidth<=t.XXL||e.pixelHeight<=t.XXL},t.XXS=100,t.XS=200,t.S=300,t.M=400,t.L=600,t.XL=800,t.XXL=1e3,t}(),_s=function(t){function e(){var e=t.call(this)||this;return e.adapter=new Te(e),e._disabled=!1,e.hasProperties=!1,e.values={},e.categories={},e.dates={},e.locations={},e.workingLocations={},e.properties={},e.sprites=[],e.isTemplate=!1,e._index=null,e._visible=!0,e._hidden=!1,e._ignoreMinMax=!1,e.hasChildren={},e.isHiding=!1,e._valueAnimations={},e._locationAnimations={},e.className="DataItem",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"index",{get:function(){return this.component&&null!=this._index?this._index:-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Yn(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return!this._hidden&&this._visible},set:function(t){t&&(this.hidden=!1),this._visible!=t&&this.setVisibility(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"__disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,yt(this.sprites,function(e){e.__disabled=t})},enumerable:!0,configurable:!0}),e.prototype.setVisibility=function(t,e){if(yt(this.sprites,function(e){t?e.visible=e.defaultState.properties.visible:e.hiddenState?e.visible=e.hiddenState.properties.visible:e.visible=!1}),this._visible=t,this.events.isEnabled("visibilitychanged")){var i={type:"visibilitychanged",target:this,visible:t};this.events.dispatchImmediately("visibilitychanged",i)}},e.prototype.show=function(t,e,i){var n,r=this;if(!this.hidden)return this.setVisibility(!0,!0),this.isHiding=!1,this._hideDisposer&&this.removeDispose(this._hideDisposer),i&&yt(i,function(i){n=r.setWorkingValue(i,r.values[i].value,t,e)}),yt(this.sprites,function(i){var n=i.show(t);null==n||n.isFinished()||(r._disposers.push(n),null!=e&&e>0&&n.delay(e))}),n},e.prototype.dispose=function(){t.prototype.dispose.call(this),yt(this.sprites,function(t){t.dispose()}),this.sprites=[]},e.prototype.hide=function(t,e,i,n){var r=this;if(this.isHiding=!0,yt(this.sprites,function(i){var n=i.hide(t);null==n||n.isFinished()||(r._disposers.push(n),null!=e&&e>0&&n.delay(e))}),O(i)&&n){var s;if(yt(n,function(n){var o=r.setWorkingValue(n,i,t,e);o&&(s=o)}),s&&!s.isFinished())return this._hideDisposer=s.events.on("animationended",function(){r.setVisibility(!1,!0),r.isHiding=!1}),this._disposers.push(this._hideDisposer),s;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},e.prototype.getDuration=function(t){if(!O(t)){var e=this.component;e&&(t=e.interpolationDuration)}if(null!=t)return this.adapter.apply("duration",t)},e.prototype.getValue=function(t,e){if(t&&this.component){e||(e=this.component.dataFields[t+"Show"])||(e="value");var i=this.values[t][e];return this.adapter.isEnabled("value")?this.adapter.apply("value",{value:i,field:t}).value:i}},e.prototype.getWorkingValue=function(t){if(t&&this.component){var e=this.component.dataFields[t+"Show"];return e||(e="workingValue"),this.adapter.apply("workingValue",{workingValue:this.values[t][e],field:t}).workingValue}},e.prototype.getActualWorkingValue=function(t){return this.values[t].workingValue},e.prototype.setValue=function(t,e,i,n){var r=this.values[t].value,s=this.getDuration(i);if(r!==(e=x(e))){if(this.values[t].value=e,this.events.isEnabled("valuechanged")){var o={type:"valuechanged",target:this,property:t};this.events.dispatchImmediately("valuechanged",o)}this.component&&this.component.handleDataItemValueChange(this,t)}this.setWorkingValue(t,e,s,n)},e.prototype.setCalculatedValue=function(t,e,i){if(this.values[t][i]!==e&&O(e)){if(this.values[t][i]=e,this.events.isEnabled("calculatedvaluechanged")){var n={type:"calculatedvaluechanged",target:this,property:t};this.events.dispatchImmediately("calculatedvaluechanged",n)}this.component&&this.component.handleDataItemCalculatedValueChange(this,t)}},e.prototype.setWorkingValue=function(t,e,i,n){if(O(this.values[t].value)){var r=this.getDuration(i),s=this.values[t].workingValue;if(null!=r&&r>0&&O(s)&&this.component){if(s!=e){var o=this.animate({childObject:this.values[t],property:"workingValue",from:s,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&o.delay(n),o.events.on("animationstarted",this.handleInterpolationProgress,this),o.events.on("animationprogress",this.handleInterpolationProgress,this),o.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[t]=o,o}(a=this._valueAnimations[t])&&a.stop(),this.values[t].workingValue=e}else{var a;if((a=this._valueAnimations[t])&&a.stop(),this.values[t].workingValue=e,this.events.isEnabled("workingvaluechanged")){var l={type:"workingvaluechanged",target:this,property:t};this.events.dispatchImmediately("workingvaluechanged",l)}this.component&&this.component.handleDataItemWorkingValueChange(this,t)}}},e.prototype.setLocation=function(t,e,i,n){if(this.locations[t]!==e){if(this.locations[t]=e,this.events.isEnabled("locationchanged")){var r={type:"locationchanged",target:this,property:t};this.events.dispatchImmediately("locationchanged",r)}this.component&&this.component.handleDataItemValueChange(this,t),this.setWorkingLocation(t,e,i,n)}},e.prototype.setWorkingLocation=function(t,e,i,n){var r=this.getDuration(i),s=this.workingLocations[t];if(null!=r&&r>0&&O(s)&&this.component){if(s!=e){var o=this.animate({childObject:this.workingLocations,property:t,from:s,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&o.delay(n),o.events.on("animationstarted",this.handleInterpolationProgress,this),o.events.on("animationprogress",this.handleInterpolationProgress,this),o.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[t]=o,o}(a=this._locationAnimations[t])&&a.stop(),this.workingLocations[t]=e}else{var a;if((a=this._locationAnimations[t])&&a.stop(),this.workingLocations[t]=e,this.events.isEnabled("workinglocationchanged")){var l={type:"workinglocationchanged",target:this,property:t};this.events.dispatchImmediately("workinglocationchanged",l)}this.component&&this.component.handleDataItemWorkingLocationChange(this,t)}},e.prototype.setDate=function(t,e,i){!k(e)&&this.component&&(e=this.component.dateFormatter.parse(e)),this.dates[t]!==e&&(this.dates[t]=e,this.setValue(t,e.getTime(),i))},e.prototype.getDate=function(t){return this.adapter.apply("date",{date:this.dates[t],field:t}).date},e.prototype.setProperty=function(t,e){if(this.properties[t]!==e){if(this.hasProperties=!0,this.properties[t]=e,this.events.isEnabled("propertychanged")){var i={type:"propertychanged",target:this,property:t,value:e};this.events.dispatchImmediately("propertychanged",i)}this.component&&this.component.handleDataItemPropertyChange(this,t)}},e.prototype.setCategory=function(t,e){T(e)||(e=v(e)),this.categories[t]!==e&&(this.categories[t]=e)},e.prototype.clone=function(e){var i=t.prototype.clone.call(this,e);return i.copyFrom(this),i},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),e.dataContext&&(this.dataContext=Ze(e.dataContext,{})),Ue(e.locations,this.locations),Ue(e.properties,this.properties),Ue(e.categories,this.categories),Ue(e.values,this.values),Ue(e.dates,this.dates),zt(e.values,function(t,e){var n;i.values[t]=(n=e,Object.assign({},n))}),this.adapter.copyFrom(e.adapter),this.events.copyFrom(e.events),this.component=e.component},Object.defineProperty(e.prototype,"opacity",{set:function(t){yt(this.sprites,function(e){e.opacity=t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){if(this._ignoreMinMax=t,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}),e.prototype.animate=function(t,e,i){return new Un(this,t,e,i).start()},e.prototype.handleInterpolationProgress=function(t){var e=t.target.animationOptions[0];if(e){if(this.events.isEnabled("workingvaluechanged")){var i={type:"workingvaluechanged",target:this,property:e.dummyData};this.events.dispatchImmediately("workingvaluechanged",i)}this.component&&this.component.handleDataItemWorkingValueChange(this,e.dummyData)}},e.prototype.hasValue=function(t){for(var e=0,i=t.length;e<i;e++){var n=this.values[t[e]];if(!n||!w(n.value))return!1}return!0},Object.defineProperty(e.prototype,"depth",{get:function(){return this.parent?this.parent.depth+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataContext",{get:function(){return this._dataContext},set:function(t){this._dataContext=t},enumerable:!0,configurable:!0}),e.prototype.addSprite=function(t){t.dataItem&&t.dataItem!=this&&mt(t.dataItem.sprites,t),this.visible||t.hide(0),this.isHiding&&t.hide(),this.sprites.push(t),t.dataItem=this},e}(Be),Ps=function(t){function e(){var e=t.call(this)||this;return e.dataFields={},e._dataSources={},e._parseDataFrom=0,e._dataDisposers=[],e._start=0,e._end=1,e.skipRangeEvent=!1,e.rangeChangeDuration=0,e.rangeChangeEasing=cn,e.parsingStepDuration=50,e.dataInvalid=!1,e.rawDataInvalid=!1,e.dataRangeInvalid=!1,e.dataItemsInvalid=!1,e.interpolationDuration=0,e.interpolationEasing=cn,e.sequencedInterpolation=!0,e.sequencedInterpolationDelay=0,e.dataValidationProgress=0,e._addAllDataItems=!0,e.className="Component",e.minZoomCount=1,e._dataItems=new _e(e.createDataItem()),e._dataItems.events.on("inserted",e.handleDataItemAdded,e,!1),e._dataItems.events.on("removed",e.handleDataItemRemoved,e,!1),e._disposers.push(new ge(e._dataItems)),e._disposers.push(e._dataItems.template),e.invalidateData(),e.dataUsers.events.on("inserted",e.handleDataUserAdded,e,!1),e._disposers.push(new Tt(e._dataDisposers)),e._start=0,e._end=1,e.maxZoomDeclination=1,e.applyTheme(),e}return a(e,t),e.prototype.createDataItem=function(){return new _s},e.prototype.handleDataUserAdded=function(t){t.newValue.dataProvider=this},e.prototype.handleDataItemValueChange=function(t,e){this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.handleDataItemWorkingValueChange=function(t,e){},e.prototype.handleDataItemWorkingLocationChange=function(t,e){},e.prototype.handleDataItemCalculatedValueChange=function(t,e){},e.prototype.handleDataItemPropertyChange=function(t,e){},e.prototype.processDataItem=function(t,e){var i=this;if(t){e||(e={}),t.dataContext=e;var n=!1;zt(this.dataFields,function(r,s){var o=r,a=e[s];if(i.adapter.isEnabled("dataContextValue")&&(a=i.adapter.apply("dataContextValue",{field:o,value:a,dataItem:t}).value),t.hasChildren[o]){if(w(a)){n=!0;var l=i.createDataItem();l.copyFrom(i.dataItems.template);var h=new _e(l);h.events.on("inserted",i.handleDataItemAdded,i,!1),h.events.on("removed",i.handleDataItemRemoved,i,!1),i._dataDisposers.push(new ge(h));for(var u=a.length,p=0;p<u;p++){var c=a[p],d=h.create();d.parent=t,i.processDataItem(d,c)}t[o]=h}}else w(a)&&(n=!0,t[o]=a)}),zt(this.propertyFields,function(i,r){var s=i,o=e[r];w(o)&&(n=!0,t.setProperty(s,o))}),this._addAllDataItems||n||this.dataItems.remove(t)}},e.prototype.updateDataItem=function(t){var e=this;if(t){var i=t.dataContext;zt(this.dataFields,function(n,r){var s=n,o=i[r];(o=e.adapter.apply("dataContextValue",{field:s,value:o,dataItem:t}).value,t.hasChildren[s])?o&&Qt(t[s].iterator(),function(t){e.updateDataItem(t)}):w(o)&&(t[s]=o)}),zt(this.propertyFields,function(e,n){var r=e,s=i[n];w(s)&&t.setProperty(r,s)})}},e.prototype.validateDataElements=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++){var i=this.dataItems.getIndex(e);i&&this.validateDataElement(i)}},e.prototype.validate=function(){this.validateDataElements(),t.prototype.validate.call(this)},e.prototype.validateDataElement=function(t){},e.prototype.addData=function(t,e){var i=this;if(!this.dataInvalid&&this.inited&&(this._parseDataFrom=this.data.length),t instanceof Array?yt(t,function(t){i.data.push(t)}):this.data.push(t),this.inited)this.removeData(e);else if(O(e))for(;e>0;)this.data.shift(),e--;this.invalidateData()},e.prototype.removeData=function(t){if(O(t))for(;t>0;){var e=this.dataItems.getIndex(0);e&&this.dataItems.remove(e),this.dataUsers.each(function(t){var e=t.dataItems.getIndex(0);e&&t.dataItems.remove(e)}),this.data.shift(),this._parseDataFrom--,t--}},e.prototype.invalidateData=function(){this.disabled||this.isTemplate||(pe.addToInvalidComponents(this),de.requestFrame(),this.dataInvalid=!0,Qt(this.dataUsers.iterator(),function(t){t.invalidateDataItems()}))},e.prototype.invalidateDataUsers=function(){Qt(this.dataUsers.iterator(),function(t){t.invalidate()})},e.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(vt(pe.invalidDataItems,this),de.requestFrame(),this.dataItemsInvalid=!0,Qt(this.dataUsers.iterator(),function(t){t.invalidateDataItems()}))},e.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,vt(pe.invalidDataRange,this),de.requestFrame())},e.prototype.validateDataRange=function(){mt(pe.invalidDataRange,this),this.dataRangeInvalid=!1,this.startIndex==this._prevStartIndex&&this.endIndex==this._prevEndIndex||(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},e.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},e.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},e.prototype.appendDataItems=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++){(i=this.dataItems.getIndex(e))&&(i.__disabled=!1)}for(e=0;e<this.startIndex;e++){(i=this.dataItems.getIndex(e)).__disabled=!0}for(e=this.endIndex;e<this.dataItems.length;e++){var i;(i=this.dataItems.getIndex(e)).__disabled=!0}},e.prototype.invalidateRawData=function(){this.disabled||this.isTemplate||(vt(pe.invalidRawDatas,this),de.requestFrame(),this.rawDataInvalid=!0,Qt(this.dataUsers.iterator(),function(t){t.invalidateRawData()}))},e.prototype.validateRawData=function(){var t=this;mt(pe.invalidRawDatas,this),Qt(this.dataItems.iterator(),function(e){e&&t.updateDataItem(e)})},e.prototype.dispose=function(){this.dataItems.template.clones.clear(),t.prototype.dispose.call(this)},e.prototype.disposeData=function(){this.dataItems.template.clones.clear(),yt(this._dataDisposers,function(t){t.dispose()}),Qt(this.dataUsers.iterator(),function(t){t.disposeData()}),this._dataDisposers.length=0,this._startIndex=void 0,this._endIndex=void 0,this.dataItems.clear(),this.dataItems.template.clones.clear()},e.prototype.getDataItem=function(t){return this.dataItems.create()},e.prototype.validateData=function(){if(this.dispatchImmediately("beforedatavalidated"),this.dataInvalid=!1,pe.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(0===this._parseDataFrom&&this.data.length>0&&this.disposeData(),this.data.length>0){var e=this.preloader;Qt(this.dataUsers.iterator(),function(t){t._startIndex=void 0,t._endIndex=void 0});for(var i=0,n=Date.now(),r=this._parseDataFrom,s=this.data.length,o=function(){var t=a.data[r],s=a.getDataItem(t);if((a.processDataItem(s,t),a.dataUsers.each(function(e){if(0==e.data.length){var i=e.getDataItem(t);e.processDataItem(i,t)}}),100==++i)&&(i=0,Date.now()-n>a.parsingStepDuration&&r<a.data.length-10))return a._parseDataFrom=r+1,e&&(r/a.data.length>.5&&!e.visible||(e.progress=r/a.data.length)),a.dataValidationProgress=r/a.data.length,r=a.data.length,a.invalidateData(),{value:void 0}},a=this;r<s;r++){var l=o();if("object"==typeof l)return l.value}e&&(e.progress=1),this.dataUsers.each(function(t){t.hidden&&t.hide(0)})}this.dataValidationProgress=1,this._parseDataFrom=0,this.invalidateDataItems(),this._internalDefaultsApplied||this.applyInternalDefaults(),this.dispatch("datavalidated")}},e.prototype.validateDataItems=function(){mt(pe.invalidDataItems,this),this.dataItemsInvalid=!1,this.invalidateDataRange(),this.invalidate(),this.dispatch("dataitemsvalidated")},Object.defineProperty(e.prototype,"data",{get:function(){return this._data||(this._data=[]),this.adapter.apply("data",this._data)},set:function(t){this.setData(t)},enumerable:!0,configurable:!0}),e.prototype.setData=function(t){this._parseDataFrom=0,this.disposeData(),this._data=t,t&&t.length>0&&this.invalidateData()},e.prototype.getDataSource=function(t){var e=this;return w(this._dataSources[t])||(this._dataSources[t]=new ms,this._dataSources[t].component=this,this.setDataSourceEvents(this._dataSources[t],t),this._dataSources[t].adapter.add("dateFields",function(t){return e.dataSourceDateFields(t)}),this._dataSources[t].adapter.add("numberFields",function(t){return e.dataSourceNumberFields(t)}),this.events.on("inited",function(){e.loadData(t)},this,!1)),this._dataSources[t]},Object.defineProperty(e.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}),e.prototype.loadData=function(t){this._dataSources[t].load()},e.prototype.dataSourceDateFields=function(t){return t},e.prototype.dataSourceNumberFields=function(t){return t},e.prototype.populateDataSourceFields=function(t,e,i){return yt(i,function(i){e[i]&&-1===ft(t,e[i])&&t.push(e[i])}),t},e.prototype.setDataSourceEvents=function(t,e){var i=this;t.events.on("started",function(t){var e=i.preloader;e&&(e.progress=0)},void 0,!1),t.events.on("loadstarted",function(t){var e=i.preloader;e&&(e.progress=.25)},void 0,!1),t.events.on("loadended",function(t){var e=i.preloader;e&&(e.progress=.5)},void 0,!1),t.events.on("parseended",function(t){var e=i.preloader;e&&(e.progress=.75)},void 0,!1),t.events.on("ended",function(t){var e=i.preloader;e&&(e.progress=1)},void 0,!1),t.events.on("error",function(t){var e=i.preloader;e&&(e.progress=1),i.openModal(t.message)},void 0,!1),e&&t.events.on("done",function(n){var r=i.preloader;r&&(r.progress=1),"data"!=e||D(n.data)||(n.data=[n.data]),t.incremental&&"data"==e&&i.data.length?i.addData(n.data,t.keepCount?n.data.length:0):t.updateCurrentData&&"data"==e&&i.data.length?(yt(i.data,function(t,e){w(n.data[e])&&zt(t,function(i,r){w(n.data[e][i])&&(t[i]=n.data[e][i])})}),i.invalidateRawData()):i[e]=n.data})},Object.defineProperty(e.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new vs,this._responsive.component=this),this._responsive},set:function(t){this._responsive=t,this._responsive.component=this},enumerable:!0,configurable:!0}),e.prototype.zoom=function(t,e,i,n){var r=this;void 0===e&&(e=!1),void 0===i&&(i=!1);var s=t.start,o=t.end,a=t.priority;if(O(n)||(n=this.maxZoomDeclination),!O(s)||!O(o))return{start:this.start,end:this.end};if(this._finalStart!=s||this._finalEnd!=o){var l=this.maxZoomFactor/this.minZoomCount;if("start"==a?(1/(o-s)>l&&(o=s+1/l),o>1&&o-s<1/l&&(s=o-1/l)):(1/(o-s)>l&&(s=o-1/l),s<0&&o-s<1/l&&(o=s+1/l)),s<-n&&(s=-n),1/(o-s)>l&&(o=s+1/l),o>1+n&&(o=1+n),1/(o-s)>l&&(s=o-1/l),this._finalEnd=o,this._finalStart=s,this.skipRangeEvent=e,this.rangeChangeDuration>0&&!i){var h=this.rangeChangeAnimation;if(h&&h.progress<1){var u=h.animationOptions;if(u.length>1&&u[0].to==s&&u[1].to==o)return{start:s,end:o}}this.dispatchImmediately("rangechangestarted"),this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),h=this.animate([{property:"start",to:s},{property:"end",to:o}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=h,h&&!h.isFinished()?h.events.on("animationended",function(){r.dispatchImmediately("rangechangeended")}):this.dispatchImmediately("rangechangeended")}else this.start=s,this.end=o}return{start:s,end:o}},e.prototype.zoomToIndexes=function(t,e,i,n){if(O(t)&&O(e)){var r=t/this.dataItems.length,s=e/this.dataItems.length;this.zoom({start:r,end:s},i,n)}},Object.defineProperty(e.prototype,"zoomFactor",{get:function(){return B(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(t){this.setPropertyValue("maxZoomFactor",t)&&(1==t&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(t){this.setPropertyValue("maxZoomDeclination",t)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return O(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}),e.prototype.indexToPosition=function(t){return t/this.dataItems.length},Object.defineProperty(e.prototype,"endIndex",{get:function(){return O(this._endIndex)||(this._endIndex=this.dataItems.length),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(e.prototype,"start",{get:function(){return this.adapter.apply("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(e.prototype,"end",{get:function(){return this.adapter.apply("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}),e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),pe.removeFromInvalidComponents(this),mt(pe.invalidDataItems,this),mt(pe.invalidDataRange,this),mt(pe.invalidRawDatas,this)},Object.defineProperty(e.prototype,"dataItems",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),e.prototype._updateDataItemIndexes=function(t){for(var e=this.dataItems.values,i=e.length,n=t;n<i;++n)e[n]._index=n},e.prototype.handleDataItemAdded=function(t){t.newValue.component=this,this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.handleDataItemRemoved=function(t){this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},Object.defineProperty(e.prototype,"dataMethods",{get:function(){return this._dataMethods||(this._dataMethods=new le),this._dataMethods},enumerable:!0,configurable:!0}),e.prototype.bindDataField=function(t,e){this.dataFields[t]=e,this.invalidateDataRange()},e.prototype.invalidateProcessedData=function(){this.resetProcessedRange(),this.invalidateDataRange()},e.prototype.resetProcessedRange=function(){this._prevEndIndex=null,this._prevStartIndex=null},Object.defineProperty(e.prototype,"dataUsers",{get:function(){var t=this;return this._dataUsers||(this._dataUsers=new me,this._disposers.push(new kt(function(){Qt(t._dataUsers.iterator(),function(t){t.dispose()})}))),this._dataUsers},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.dataFields=Ue(this.dataFields,{}),e},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.data=e.data,this.sequencedInterpolation=e.sequencedInterpolation,this.sequencedInterpolationDelay=e.sequencedInterpolationDelay,this.interpolationDuration=e.interpolationDuration,this.interpolationEasing=e.interpolationEasing},e.prototype.reinit=function(){this._inited=!1,this.deepInvalidate()},e.prototype.getExporting=function(){var e=t.prototype.getExporting.call(this);return e.adapter.has("data",this._exportData,null,this)||(e.adapter.add("data",this._exportData,null,this),this.events.on("datavalidated",function(t){e.menu&&e.menu.invalidate(),e.handleDataUpdated()})),e},e.prototype._exportData=function(t){return t.data=this.data,t},e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return i&&this.invalidateData(),i},e.prototype.setShowOnInit=function(e){e!=this.getPropertyValue("showOnInit")&&(!e||this.inited||this.hidden?this._showOnInitDisposer2&&this._showOnInitDisposer2.dispose():(this._showOnInitDisposer2=this.events.once("dataitemsvalidated",this.hideInitially,this,!1),this._disposers.push(this._showOnInitDisposer2))),t.prototype.setShowOnInit.call(this,e)},e.prototype.setBaseId=function(e){e!=this._baseId&&this.dataInvalid&&(this.dataInvalid=!1,pe.removeFromInvalidComponents(this),this._baseId=e,this.invalidateData()),t.prototype.setBaseId.call(this,e)},Object.defineProperty(e.prototype,"minZoomCount",{get:function(){return this.getPropertyValue("minZoomCount")},set:function(t){this.setPropertyValue("minZoomCount",t)},enumerable:!0,configurable:!0}),e.prototype._systemCheckIfValidate=function(){return!(this.dataInvalid||this.dataProvider&&this.dataProvider.dataInvalid)},e}(ps);pe.registeredClasses.Component=Ps;var ws=function(t){function e(){var e=t.call(this)||this;return e.isOversized=!1,e.className="Label",e.fill=(new Br).getFor("text"),e.wrap=!1,e.truncate=!1,e.fullWords=!0,e.ellipsis="...",e.textAlign="start",e.textValign="top",e.layout="absolute",e.baseLineRatio=-.27,e.adapter.add("readerTitle",function(t){return t||(t=e.populateString(mi($e(e.html)?e.html:e.text))),t}),e.events.on("maxsizechanged",function(){e.inited&&e.handleMaxSize()},e,!1),e.events.once("validated",e.handleValidate,e,!1),e.applyTheme(),e}return a(e,t),e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.validatePosition()},e.prototype.setPaper=function(e){var i=t.prototype.setPaper.call(this,e);return i&&this.hardInvalidate(),i},e.prototype.handleValidate=function(){!this.currentText&&!this.text||0!=this.bbox.width&&0!=this.bbox.height||pe.events.once("exitframe",this.hardInvalidate,this)},e.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():this.alignSVGText()},e.prototype.arrange=function(){},e.prototype.updateCurrentText=function(){var t,e;$e(this.html)&&this.paper.supportsForeignObject()?(t="html",e=this.html):(t="svg",e=this.text),w(e)&&""!==e&&(e=this.populateString(e,this.dataItem));var i=(e="html"==t?this.adapter.apply("htmlOutput",e):this.adapter.apply("textOutput",e))!=this.currentText||t!=this._currentFormat;return this.currentText=e,this._currentFormat=t,i},e.prototype.hardInvalidate=function(){this._prevStatus="",this.invalidate()},e.prototype.getLineBBox=function(t){var e=t&&t.element,i=e&&e.node;i&&i.parentNode&&(t.bbox=e.getBBox())},e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.bbox.width,i=this.bbox.height,n=this.topParent;if(!n||n.maxWidth&&n.maxHeight){var r=X(this.availableWidth-this.pixelPaddingLeft-this.pixelPaddingRight,0),s=X(this.availableHeight-this.pixelPaddingTop-this.pixelPaddingBottom,0),o=s+","+r+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 a=this._currentFormat,l=this.currentText;if(w(l)&&""!=l){var h=l.split("\n");this._prevStatus=o,this.textAlign=this.textAlign;var u=this.group.getAttr("display");if("none"==u&&this.group.removeAttr("display"),this.textPathElement&&this.textPathElement.removeChildren(),"svg"===a){this.element.removeAttr("display");var p=this.element;this.resetBBox();for(var c=0,d="",f=0;f<h.length;f++){var g=h[f];if(""!=g){var y=Kr().chunk(g,null,this.ignoreFormatting),m=0,v=!0,b=!1,x=this.getLineInfo(f);x?x.element.textContent="":(x={element:this.getSVGLineElement("",0),complex:!1},p.add(x.element)),x.element.removeAttr("display"),x.element.removeChildren(),this.textPathElement&&x.element.add(this.textPathElement);for(var _=0;_<y.length;_++){_&&(x.complex=!0);var P=y[_];if("format"===P.type)d=P.text;else{if(b)continue;x.text=P.text,x.style=Kr().translateStyleShortcuts(d);var C=this.getSvgElement(x.text,x.style);if(this.textPathElement?this.textPathElement.add(C):x.element.add(C),this.getLineBBox(x),x.bbox.width=Math.ceil(x.bbox.width),m<x.bbox.height&&(m=x.bbox.height),(this.wrap||this.truncate)&&x.bbox.width>r){this.isOversized=!0;var S=x.element.textContent,k=x.bbox.width/S.length,T=z(Math.ceil((x.bbox.width-r)/k),S.length);if(this.truncate){var O=!1,I=x.element.node;if(I&&I.childNodes)for(var D=x.element.node.childNodes.length-1;D>=0;D--){var A=x.element.node.childNodes[D];if(O&&x.bbox.width<=r&&(A.textContent+=" "+this.ellipsis,x.bbox=x.element.getBBox(),x.bbox.width=Math.floor(x.bbox.width),x.bbox.width<=r))break;O=!1;var V=A.textContent;for(S=x.element.textContent,T=z(Math.ceil((x.bbox.width-r)/k),S.length);x.bbox.width>r&&T<=S.length&&T>0;){(j=X(V.length-T-this.ellipsis.length,1))<=1&&(T=0,D>0&&(O=!0,x.element.node.removeChild(A))),(V=ai(V,j,this.ellipsis,this.fullWords,this.rtl)).length>j&&this.fullWords&&(V=ai(V,j,this.ellipsis,!1,this.rtl)),A.textContent=V,x.bbox=x.element.getBBox(),x.bbox.width=Math.floor(x.bbox.width),T=Math.ceil(1.1*T)}b=!0}}else{if(x.element.node){for(var F=x.element.node.lastChild,M=void 0;x.bbox.width>r&&T<=S.length&&T>0;){var j=X(P.text.length-T,1);v?M=oi(P.text,j,!0,this.rtl):((M=oi(P.text,j,!0,this.rtl))[0].length>j||1===j)&&(x.element.node.removeChild(F),T=0),T>0&&(F.textContent=Kr().cleanUp(li(M.shift()))),x.bbox=x.element.getBBox(),x.bbox.width=Math.floor(x.bbox.width),T=Math.ceil(1.1*T)}if(M.length>0){var L="";w(M)&&(this.rtl?L+=M.join("")+d:L+=d+M.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var R=_+1;R<y.length;R++)"value"==y[R].type?L+=y[R].text.replace(/([\[\]]{1})/g,"$1$1"):L+=y[R].text;h.splice(f+1,0,L)}b=!0}}}this.bbox.width<x.bbox.width&&(this.bbox.width=x.bbox.width),this.bbox.height=c+m,this.textPathElement?x.element.attr({dy:-this.paddingBottom.toString()}):x.element.attr({x:"0",y:c+m,dy:E(this.baseLineRatio*m,3).toString()}),v=!1}}var B=x.element.node;if(B)(F=B.lastChild)&&(F.textContent=this.rtl?ui(F.textContent):hi(F.textContent));c+=m,this.addLineInfo(x,f)}else{var N=this.getSVGLineElement("",0);N.add(this.getSvgElement(".",Kr().translateStyleShortcuts(d))),p.add(N);var H=Math.ceil(N.getBBox().height);H>0&&(c+=H),p.removeElement(N)}}this.maybeHideOversized(),this._measuredWidth=X(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=X(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,i==this._measuredHeight&&e==this._measuredWidth||this.dispatch("transformed"),this.hideUnused(h.length)}else{this.element.removeAttr("display"),this.resetBBox(),(p=this.element).removeChildren();var W=this.paper.foreignObject();p.add(W);var Y=this.getHTMLLineElement(l);W.node.appendChild(Y),Y.style.display="inline-block";var U=Y.clientWidth,G=Y.clientHeight;Y.style.display="block",this._bbox={x:0,y:0,width:U,height:G},W.attr({width:U,height:G}),this.maybeHideOversized(),this._measuredWidth=X(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=X(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(Y.style.overflow="hidden"),(U>r||G>s)&&(this.isOversized=!0)}this.setStyles(),this.updateCenter(),this.updateBackground(),"none"==u&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}else this.element.attr({display:"none"})}}else n.events.once("maxsizechanged",this.hardInvalidate,this,!1)},e.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))},e.prototype.alignSVGText=function(){var t=this.element,e=t.node.children||t.node.childNodes;if(e&&(!e||0!=e.length)){var i=this._measuredWidth,n=this._measuredHeight;this.pixelPaddingLeft,this.pixelPaddingRight,this.pixelPaddingTop,this.pixelPaddingBottom;for(var r=e.length-1;r>=0;r--){var s=e[r];if(s.setAttribute("text-anchor",this.textAlign),this.textPathElement)s.removeAttribute("x"),s.removeAttribute("y");else{switch(this.textAlign){case"middle":s.setAttribute("x",(i/2).toString()+"px");break;case"end":this.rtl||s.setAttribute("x",i.toString());break;default:this.rtl?s.setAttribute("x",i.toString()):s.removeAttribute("text-anchor")}var o=x(s.getAttribute("y"));switch(this.textValign){case"middle":s.setAttribute("y",(o+(n-this.bbox.height)/2).toString());break;case"bottom":s.setAttribute("y",(o+n-this.bbox.height).toString());break;default:s.setAttribute("y",o.toString())}}}}},e.prototype.getSVGLineElement=function(t,e){var i=this.paper.addGroup("text");return i.textContent=t,i.attr({x:"0"}),w(e)&&i.attr({y:e.toString()}),(this.truncate||this.wrap)&&i.attr({overflow:"hidden"}),this.rtl&&i.attr({direction:"rtl"}),i},e.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},e.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"}return this.wrap?e.style.wordWrap="break-word":e.style.whiteSpace="nowrap",this.rtl&&(e.style.direction="rtl"),w(this.fill)&&(e.style.color=this.fill.toString()),e},e.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"))},e.prototype.hideUnused=function(t){this.initLineCache();var e=this.getCache("lineInfo");if(e.length>=t)for(var i=t;i<e.length;i++){var n=e[i];n&&n.element&&n.element.attr({display:"none"})}},Object.defineProperty(e.prototype,"text",{get:function(){return this.getPropertyValue("text")},set:function(t){this.setPropertyValue("text",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(qn,"xlink:href","#text-path-"+this.uid),this.textPathElement.attr({path:t}),this._disposers.push(this.textPathElement),this.hardInvalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationOnPath",{get:function(){return this.getPropertyValue("locationOnPath")},set:function(t){this.setPropertyValue("locationOnPath",t),this.textPathElement&&this.textPathElement.attr({startOffset:100*t+"%"})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseLineRatio",{get:function(){return this.getPropertyValue("baseLineRatio")},set:function(t){this.setPropertyValue("baseLineRatio",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrap",{get:function(){return this.getPropertyValue("wrap")},set:function(t){this.resetBBox(),this.setPropertyValue("wrap",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"truncate",{get:function(){return this.getPropertyValue("truncate")},set:function(t){this.resetBBox(),this.setPropertyValue("truncate",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWords",{get:function(){return this.getPropertyValue("fullWords")},set:function(t){this.setPropertyValue("fullWords",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ellipsis",{get:function(){return this.getPropertyValue("ellipsis")},set:function(t){this.setPropertyValue("ellipsis",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this.getPropertyValue("selectable")},set:function(t){this.setPropertyValue("selectable",t,!0),this.setStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textAlign",{get:function(){return this.getPropertyValue("textAlign")},set:function(t){this.setPropertyValue("textAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textValign",{get:function(){return this.getPropertyValue("textValign")},set:function(t){this.setPropertyValue("textValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.getPropertyValue("html")},set:function(t){this.setPropertyValue("html",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideOversized",{get:function(){return this.getPropertyValue("hideOversized")},set:function(t){this.setPropertyValue("hideOversized",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreFormatting",{get:function(){return this.getPropertyValue("ignoreFormatting")},set:function(t){this.setPropertyValue("ignoreFormatting",t,!0)},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){},e.prototype.getLineInfo=function(t){this.initLineCache();var e=this.getCache("lineInfo");return e.length>t?e[t]:void 0},e.prototype.addLineInfo=function(t,e){this.initLineCache(),this.getCache("lineInfo")[e]=t},e.prototype.initLineCache=function(){w(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},e.prototype.setDataItem=function(e){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),e&&(this._sourceDataItemEvents=new Tt([e.events.on("valuechanged",this.invalidate,this,!1),e.events.on("workingvaluechanged",this.invalidate,this,!1),e.events.on("calculatedvaluechanged",this.invalidate,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),t.prototype.setDataItem.call(this,e)},Object.defineProperty(e.prototype,"availableWidth",{get:function(){return w(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"availableHeight",{get:function(){return w(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.getSvgElement=function(t,e){var i=this.paper.add("tspan");return i.textContent=t,e&&i.node.setAttribute("style",e),i},e.prototype.deepInvalidate=function(){t.prototype.deepInvalidate.call(this),this.hardInvalidate()},e}(ps);pe.registeredClasses.Label=ws,bs.push({relevant:xs.heightXS,state:function(t,e){if(t instanceof ws&&t.parent&&t.parent.isBaseSprite){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var Cs=function(t){function e(){var e=t.call(this)||this;return e.className="RoundedRectangle",e.element=e.paper.add("path"),e.cornerRadius(3,3,3,3),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight;if(O(e)&&O(i)){var n=z(e,i)/2,r=Je(this.cornerRadiusTopLeft,n),s=Je(this.cornerRadiusTopRight,n),o=Je(this.cornerRadiusBottomRight,n),a=Je(this.cornerRadiusBottomLeft,n),l=z(Math.abs(e/2),Math.abs(i/2)),h=B(r,0,l),u=B(s,0,l),p=B(o,0,l),c=B(a,0,l),d="M"+h+",0 L"+(e-u)+",0"+(" a"+u+","+u+" 0 0 1 "+u+","+u)+(" L"+e+","+(i-p))+(" a"+p+","+p+" 0 0 1 -"+p+","+p)+(" L"+c+","+i)+(" a"+c+","+c+" 0 0 1 -"+c+",-"+c)+(" L0,"+h)+(" a"+h+","+h+" 0 0 1 "+h+",-"+h)+" Z";this.path=d}},e.prototype.cornerRadius=function(t,e,i,n){this.cornerRadiusTopLeft=t,this.cornerRadiusTopRight=e,this.cornerRadiusBottomLeft=i,this.cornerRadiusBottomRight=n},Object.defineProperty(e.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(t){this.setPercentProperty("cornerRadiusTopLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")},set:function(t){this.setPercentProperty("cornerRadiusTopRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(t){this.setPercentProperty("cornerRadiusBottomRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(t){this.setPercentProperty("cornerRadiusBottomLeft",t,!0)},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){},Object.defineProperty(e.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}),e}(hs);pe.registeredClasses.RoundedRectangle=Cs;var Ss=function(t){function e(){var e=t.call(this)||this;e.className="Button",e.tooltipY=0,e.iconPosition="left",e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16);var i=new Br,n=e.background;n.fill=i.getFor("secondaryButton"),n.stroke=i.getFor("secondaryButtonStroke"),n.fillOpacity=1,n.strokeOpacity=1,n.cornerRadius(3,3,3,3),e.label=new ws,e.label.fill=i.getFor("secondaryButtonText");var r=n.states.create("hover");r.properties.fillOpacity=1,r.properties.fill=i.getFor("secondaryButtonHover");var s=n.states.create("down");return s.transitionDuration=100,s.properties.fill=i.getFor("secondaryButtonDown"),s.properties.fillOpacity=1,e.role="button",e.focusable=!0,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"icon",{get:function(){return this.getPropertyValue("icon")},set:function(t){var e=this.getPropertyValue("icon");e&&(e.parent=void 0),t&&(this.setPropertyValue("icon",t),t.parent=this,t.interactionsEnabled=!1,this.iconPosition=this.iconPosition,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(t){this.setPropertyValue("iconPosition",t),this.icon&&("left"==t?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.createBackground=function(){return new Cs},e}(ps);pe.registeredClasses.Button=Ss;var ks=function(t){function e(){var e=t.call(this)||this;return e.className="Circle",e.element=e.paper.add("circle"),e.setPercentProperty("radius",g(100)),e.setPropertyValue("horizontalCenter","middle"),e.setPropertyValue("verticalCenter","middle"),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(e.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(e.prototype,"pixelRadius",{get:function(){return Je(this.radius,z(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){var t=this.pixelRadius;this._bbox={x:-t,y:-t,width:2*t,height:2*t}},e}(hs);pe.registeredClasses.Circle=ks;var Ts=function(t){function e(){var e=t.call(this)||this;return e.className="Ellipse",e.element=e.paper.add("ellipse"),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(e.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(t){this.height=2*t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(t){this.width=2*t,this.invalidate()},enumerable:!0,configurable:!0}),e}(ks);pe.registeredClasses.Ellipse=Ts;var Os=function(t){function e(){var e=t.call(this)||this;return e.className="Image",e.element=e.paper.add("image"),e.applyTheme(),e.width=50,e.height=50,e}return a(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),this.href){var e=this.innerWidth,i=this.innerHeight;O(this.widthRatio)&&(e=i*this.widthRatio,this.width=e),O(this.heightRatio)&&(i=e*this.heightRatio,this.height=i),this.element.attr({width:e,height:i}),this.element.attrNS(qn,"xlink:href",this.href)}},Object.defineProperty(e.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(t){this.setPropertyValue("href",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(t){this.setPropertyValue("widthRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(t){this.setPropertyValue("heightRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),e}(hs);pe.registeredClasses.Image=Os;var Is=function(t){function e(){var e=t.call(this)||this;return e.className="Line",e.element=e.paper.add("line"),e.fill=Ee(),e.x1=0,e.y1=0,e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.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(e.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(t){O(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof Hr&&(e=1e-5),this.setPropertyValue("x1",t,!0),this.element.attr({x1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){var t=this.getPropertyValue("x2");return O(t)||(t=this.pixelWidth),t},set:function(t){O(t)||(t=0),this.setPropertyValue("x2",t,!0),this.element.attr({x2:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(t){O(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof Hr&&(e=1e-5),this.setPropertyValue("y1",t,!0),this.element.attr({y1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){var t=this.getPropertyValue("y2");return O(t)||(t=this.pixelHeight),t},set:function(t){O(t)||(t=0),this.setPropertyValue("y2",t,!0),this.element.attr({y2:t})},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.x2,y:this.y2},n=$(e,i,t),r=Q(e,i);return{x:n.x,y:n.y,angle:r}},e}(hs);pe.registeredClasses.Line=Is;var Ds=function(t){function e(){var e=t.call(this)||this;return e.className="PointedRectangle",e.element=e.paper.add("path"),e.cornerRadius=6,e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.cornerRadius,i=this.innerWidth,n=this.innerHeight;if(i>0&&n>0){var r,s,o=this.pointerX,a=this.pointerY,l=this.pointerBaseWidth/2,h=z(i/2,n/2),u=B(e,0,h),p=B(e,0,h),c=B(e,0,h),d=B(e,0,h),f=void 0,g=void 0,y=void 0,m=void 0,v=(o-0)*(n-0)-(a-0)*(i-0),b=(o-0)*(0-n)-(a-n)*(i-0);if(v>0&&b>0)f="M"+u+",0 L"+((r=B(o,u+l,i-l-p))-l)+",0 L"+o+","+(a=B(a,-1/0,0))+" L"+(r+l)+",0 L"+(i-p)+",0";else f="M"+u+",0 L"+(i-p)+",0";if(v<0&&b<0)y=" L"+(i-c)+","+n+" L"+((r=B(o,d+l,i-l-c))+l)+","+n+" L"+o+","+(a=B(a,n,1/0))+" L"+(r-l)+","+n+" L"+d+","+n;else y=" L"+d+","+n;if(v<0&&b>0)m=" L0,"+(n-d)+" L0,"+((s=B(a,u+l,n-d-l))+l)+" L"+(o=B(o,-1/0,0))+","+a+" L0,"+(s-l)+" L0,"+u;else m=" L0,"+u;if(v>0&&b<0)g=" L"+i+","+p+" L"+i+","+((s=B(a,p+l,n-l-c))-l)+" L"+(o=B(o,i,1/0))+","+a+" L"+i+","+(s+l)+" L"+i+","+(n-c);else g=" L"+i+","+(n-c);var x=" a"+p+","+p+" 0 0 1 "+p+","+p,_=" a"+c+","+c+" 0 0 1 -"+c+","+c,P=" a"+d+","+d+" 0 0 1 -"+d+",-"+d,w=" a"+u+","+u+" 0 0 1 "+u+",-"+u;this.path=f+x+g+_+y+P+m+w}},Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(function(t){function e(){var e=t.call(this)||this;return e.className="PointedShape",e.pointerBaseWidth=15,e.pointerLength=10,e.pointerY=0,e.pointerX=0,e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),O(this.pointerX)||(this.pointerX=this.pixelWidth/2),O(this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(e.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(t){this.setPropertyValue("pointerBaseWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(t){this.setPropertyValue("pointerLength",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(t){this.setPropertyValue("pointerX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(t){this.setPropertyValue("pointerY",t,!0)},enumerable:!0,configurable:!0}),e}(hs));function As(t){var e=Fs(t[0]),i={x:0,y:0},n=ce.minPolylineStep;O(n)||(n=.5);for(var r=0,s=t.length;r<s;r++){var o=t[r];q(o,i)>n&&(e+=Fs(o),i=o)}return e}function Vs(t){return" M"+E(t.x,4)+","+E(t.y,4)+" "}function Fs(t){return" L"+E(t.x,4)+","+E(t.y,4)+" "}function Ms(t,e){return" Q"+E(e.x,4)+","+E(e.y,4)+" "+E(t.x,4)+","+E(t.y,4)}function js(t,e,i){return" C"+E(e.x,4)+","+E(e.y,4)+" "+E(i.x,4)+","+E(i.y,4)+" "+E(t.x,4)+","+E(t.y,4)}function Es(t,e,i,n){if(0==e)return"";O(n)||(n=i);var r="",s=",",o=Math.ceil(Math.abs(e)/180),a=1;e<0&&(a=0);var l=0,h=0,u=-W(t)*i,p=-N(t)*n;if(e<.5&&i>3e3)return Fs({x:f=E(W(d=t+e)*i,4),y:g=E(N(d)*n,4)});for(var c=0;c<o;c++){var d,f,g;r+=" a"+i+s+n+s+0+s+0+s+a+s+(f=E(W(d=t+e/o*(c+1))*i+u-l,4))+s+(g=E(N(d)*n+p-h,4)),l=f,h=g}return r}function Ls(t,e,i,n,r,s,o){if(0==e)return"";if(O(n)||(n=0),0==i&&n<=0)return"";if(i<n){var a=i;i=n,n=a,O(r)&&(r=r/n*i)}360==(e=z(e,360))&&(s=0,o=0);var l=t+e,h=N(z(e,45)/2),u=(r=O(r)?r:i)/i*n,p=r/i*(s=s||0),c=r/i*(o=O(o)?o:s);s=B(s,0,(i-n)/2),p=B(p,0,(r-u)/2),o=B(o,0,(i-n)/2),c=B(c,0,(r-u)/2),s=E(B(s,0,i*h),4),p=E(B(p,0,r*h),4),o=E(B(o,0,n*h),4),c=E(B(c,0,u*h),4);var d=Math.asin(s/i/2)*M*2,f=Math.asin(p/r/2)*M*2;n<o&&(n=o),u<c&&(u=c);var g=Math.asin(o/n/2)*M*2,y=Math.asin(c/u/2)*M*2;O(g)||(g=0),O(y)||(y=0);var m=t+e/2,v={x:E(W(m)*n,4),y:N(m)*u},b={x:W(t)*(n+o),y:N(t)*(u+c)},x={x:W(t)*(i-s),y:N(t)*(r-p)},_={x:W(l)*(i-s),y:N(l)*(r-p)},P={x:W(l)*(n+o),y:N(l)*(u+c)},w={x:W(t+d)*i,y:N(t+f)*r},C={x:W(l-g)*n,y:N(l-y)*u};o+=o*N(g/2),c+=c*N(y/2),g>(l-t)/2&&(C=v);var S="";return 360==e?S=Vs(x):(S=Vs(b),S+=Fs(x),S+=Rs(w,s,p,!0)),S+=Es(t+d,e-2*d,i,r),O(n)&&0!=n?(360==e&&0==s?S+=Vs(P):(S+=Rs(_,s,p,!0),S+=Fs(P),S+=Rs(C,o,c,!0)),S+=Es(l-g,-(e-2*g),n,u),(e<360||s>0)&&(S+=Rs(b,o,c,!0)),S+=Fs(b)):(S+=Rs(_,s,p,!0),e<360&&(S+=Fs(b))),S}function Rs(t,e,i,n,r,s){if(0==e)return"";var o=",";return" A"+e+o+i+o+(s=s||0)+o+ +(r=Boolean(r))+o+ +(n=Boolean(n))+o+E(t.x,4)+o+E(t.y,4)}function Bs(t,e,i,n){return O(i)||(i=0),O(n)||(n=0),Vs({x:i,y:n})+Fs({x:i+t,y:n})+Fs({x:i+t,y:n+e})+Fs({x:i,y:n+e})+" Z"}function Ns(t,e){var i=",",n=" L";return e?"M"+t.x+i+t.y+n+t.x+i+(t.y+t.height)+n+(t.x+t.width)+i+(t.y+t.height)+n+(t.x+t.width)+i+t.y+n+t.x+i+t.y:"M"+t.x+i+t.y+n+(t.x+t.width)+i+t.y+n+(t.x+t.width)+i+(t.y+t.height)+n+t.x+i+(t.y+t.height)+n+t.x+i+t.y}var Hs=function(t){function e(){var e=t.call(this)||this;return e._distance=0,e.className="Polyline",e.element=e.paper.add("path"),e.shapeRendering="auto",e.fill=Ee(),e.strokeOpacity=1,e.applyTheme(),e}return a(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){for(var e="",i=0,n=t.length;i<n;i++){var r=t[i];if(r.length>0){e+=Vs(r[0]);for(var s=1;s<r.length;s++){var o=r[s];e+=Fs(o),this._distance+=q(r[s-1],o)}}}this.path=e}this._realSegments=t},Object.defineProperty(e.prototype,"segments",{get:function(){return this.getPropertyValue("segments")},set:function(t){this.setPropertyValue("segments",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e=0;t<0&&(t=Math.abs(t),e=180);var i=this._realSegments;if(i){for(var n=this.distance,r=0,s=0,o=0,a=void 0,l=void 0,h=0;h<i.length;h++){var u=i[h];if(u.length>1){for(var p=1;p<u.length;p++)if(s=r/n,o=(r+=q(a=u[p-1],l=u[p]))/n,s<=t&&o>t){h=i.length;break}}else 1==u.length&&(a=u[0],l=u[0],s=0,o=1)}if(a&&l){var c=$(a,l,(t-s)/(o-s));return{x:c.x,y:c.y,angle:e+Q(a,l)}}}return{x:0,y:0,angle:0}},e}(hs);pe.registeredClasses.Polyline=Hs;var Ws=function(t){function e(){var e=t.call(this)||this;return e.className="Polyarc",e.controlPointDistance=.5,e.controlPointPosition=.5,e.applyTheme(),e}return a(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){var e="";this._realSegments=[];for(var i=0,n=t.length;i<n;i++){var r=t[i],s=[];if(this._realSegments.push(s),r.length>0){e+=Vs(r[0]);for(var o=1;o<r.length;o++){var a=r[o-1],l=r[o],h=q(l,a),u=h*this.controlPointDistance,p=this.controlPointPosition,c=-Q(a,l),d={x:a.x+(l.x-a.x)*p*.5-u*N(c),y:a.y+(l.y-a.y)*p*.5-u*W(c)},f={x:a.x+(l.x-a.x)*p*1.5-u*N(c),y:a.y+(l.y-a.y)*p*1.5-u*W(c)};e+=js(l,d,f);var g=Math.ceil(h),y=a;if(g>0)for(var m=0;m<=g;m++){var v=rt(a,l,d,f,m/g);s.push(v),this._distance+=q(y,v),y=v}else s.push(a)}}}this.path=e}},Object.defineProperty(e.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(t){this.setPropertyValue("controlPointPosition",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t),this.makePath()},enumerable:!0,configurable:!0}),e}(Hs);pe.registeredClasses.Polyarc=Ws;var Xs=function(t){function e(e){var i=t.call(this)||this;return i._bboxes=[],i.morphDuration=800,i.morphEasing=cn,i.morphToSingle=!0,i.scaleRatio=1,i.className="Morpher",i.morphable=e,i.applyTheme(),i}return a(e,t),e.prototype.morphToPolygon=function(t,e,i){var n=this.morphable.currentPoints;if(n&&t){this.sortPoints(n),this.sortPoints(t),this._morphFromPointsReal=[],this._morphToPointsReal=[],w(e)||(e=this.morphDuration),w(i)||(i=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(t,n),this._morphToPointsReal=this.normalizePoints(n,t),this.morphable.currentPoints=this._morphFromPointsReal;var r=new Un(this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(r),r.start(),r}},e.prototype.normalizePoints=function(t,e){for(var i=0,n=t.length;i<n;i++){var r=t[i][0],s=t[i][1],o=C(et(r)),a=o.x+o.width,l=o.y+o.height;if(e[i]||(e[i]=[]),r&&!e[i][0]&&(e[i][0]=[{x:a,y:l},{x:a,y:l}]),e[i][0]){e[i][0]=this.addPoints(e[i][0],r.length);for(var h=1/0,u=0,p=0;p<e[i][0].length;p++){var c=q(e[i][0][p],r[0]);c<h&&(u=p,h=c)}var d=e[i][0].slice(0,u),f=e[i][0].slice(u);e[i][0]=f.concat(d)}s&&(e[i][1]||(e[i][1]=[{x:a,y:l},{x:a,y:l}]),e[i][1]=this.addPoints(e[i][1],s.length))}return e},e.prototype.sortPoints=function(t){t.sort(function(t,e){var i=C(et(t[0])),n=C(et(e[0]));return i.width*i.height>n.width*n.height?-1:1});for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i][0];r&&e.push(C(et(r)))}return it(e)},e.prototype.morphToCircle=function(t,e,i){var n=this.morphable.points,r=this.sortPoints(n);this._morphFromPointsReal=[],this._morphToPointsReal=[],w(e)||(e=this.morphDuration),w(i)||(i=this.morphEasing);for(var s=0,o=n.length;s<o;s++){var a=n[s][0],l=n[s][1];if(this._morphFromPointsReal[s]=[],this._morphToPointsReal[s]=[],a){var h=a,u=a,p=C(et(u));this.morphToSingle&&(p=C(r));var c=p.x+p.width/2,d=p.y+p.height/2,f=t;O(f)||(f=Math.min(p.width/2,p.height/2)),h=[];var g=Q({x:c,y:d},a[0]),y=100;a.length>y&&(y=a.length);for(var m=360/((y=(u=this.addPoints(a,y)).length)-1),v=0;v<y;v++){var b=m*v+g,x={x:c+f*W(b),y:d+f*N(b)};h[v]=x}if(l&&l.length>0)for(var _=0,P=l.length;_<P;_++)h.push({x:c,y:d});this._morphFromPointsReal[s][0]=u,this._morphToPointsReal[s][0]=h}}this.morphable.currentPoints=this._morphFromPointsReal;var S=new Un(this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(S),S.start(),S},e.prototype.addPoints=function(t,e){for(var i=Math.round(e/t.length),n=[],r=0,s=t.length;r<s;r++){var o=t[r],a=void 0;a=r==t.length-1?t[0]:t[r+1],n.push(o);for(var l=1;l<i;l++){var h=l/i,u={x:o.x+(a.x-o.x)*h,y:o.y+(a.y-o.y)*h};n.push(u)}n.length+t.length-r==e&&(i=0)}if(n.length<e&&t.length>0){var p=t[t.length-1];for(l=n.length;l<e;l++)n.push({x:p.x,y:p.y})}return n},e.prototype.morphToRectangle=function(t,e,i,n){var r=this.morphable.points;this.sortPoints(r),this._morphFromPointsReal=[],this._morphToPointsReal=[],w(i)||(i=this.morphDuration),w(n)||(n=this.morphEasing);for(var s=0,o=r.length;s<o;s++){var a=r[s][0],l=r[s][1];if(this._morphFromPointsReal[s]=[],this._morphToPointsReal[s]=[],a){var h=a,u=a,p=this._bboxes[s];this.morphToSingle;var c=p.x,d=p.y,f=t,g=e;if(O(f)||(f=p.width),O(g)||(g=p.height),h=[{x:c,y:d},{x:c+f,y:d},{x:c+f,y:d+g},{x:c,y:d+g}],h=this.addPoints(h,a.length),a.length<4)for(var y=a.length;y<4;y++)h.push({x:a[y].x,y:a[y].y});if(l&&l.length>0)for(var m=p.x+p.width/2,v=p.y+p.height/2,b=0,x=l.length;b<x;b++)h.push({x:m,y:v});this._morphFromPointsReal[s][0]=u,this._morphToPointsReal[s][0]=h}}this.morphable.currentPoints=this._morphFromPointsReal;var _=new Un(this,{property:"morphProgress",from:0,to:1},i,n);return this._disposers.push(_),_.start(),_},Object.defineProperty(e.prototype,"morphProgress",{get:function(){return this._morphProgress},set:function(t){this._morphProgress=t;var e=[];if(null!=t){var i=this._morphFromPointsReal,n=this._morphToPointsReal;if(null!=i&&null!=n)for(var r=0,s=i.length;r<s;r++){var o=[];e.push(o);var a=i[r][0],l=i[r][1],h=n[r][0],u=n[r][1];if(a&&a.length>0&&h&&h.length>0){for(var p=[],c=0,d=a.length;c<d;c++){var f=a[c],g=h[c],y={x:f.x+(g.x*this.scaleRatio-f.x)*t,y:f.y+(g.y*this.scaleRatio-f.y)*t};p.push(y)}o[0]=p}if(l&&l.length>0&&u&&u.length>0){for(var m=[],v=0,b=l.length;v<b;v++){f=l[v],g=u[v],y={x:f.x+(g.x*this.scaleRatio-f.x)*t,y:f.y+(g.y*this.scaleRatio-f.y)*t};m.push(y)}o[1]=m}}}this.morphable.currentPoints=e},enumerable:!0,configurable:!0}),e.prototype.morphBack=function(t,e){this._morphToPointsReal=this._morphFromPointsReal,this._morphFromPointsReal=this.morphable.currentPoints,w(t)||(t=this.morphDuration),w(e)||(e=this.morphEasing);var i=new Un(this,{property:"morphProgress",from:0,to:1},t,e);return this._disposers.push(i),i.start(),i},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Yn(this._animations))),this._animations},enumerable:!0,configurable:!0}),e}(Re),zs=function(t){function e(){var e=t.call(this)||this;return e.className="Polygon",e.element=e.paper.add("path"),e.shapeRendering="auto",e._currentPoints=[],e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"points",{get:function(){var t=this.getPropertyValue("points"),e=this.path;if(e&&(!t||0==t.length)){for(var i=e.slice(1,e.length-1).split("ZM"),n=0;n<i.length;n++){var r=i[n];if(r.length>0){var s=r.split("M"),o=s[0],a=s[1];if(o&&o.length>0){var l=o.split("L");if(l.length>0){var h=[],u=[h];t.push(u);for(var p=0;p<l.length;p++){var c=l[p].split(",");h.push({x:+c[0],y:+c[1]})}if(a&&a.length>0){var d=a.split("L");if(d.length>0){var f=[];u.push(f);for(p=d.length-1;p>=0;p--){c=d[p].split(",");f.push({x:+c[0],y:+c[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(e.prototype,"currentPoints",{get:function(){return this._currentPoints&&0!=this._currentPoints.length||!this.path||(this._currentPoints=this.points),this._currentPoints},set:function(t){this._currentPoints!=t&&(this._currentPoints=t,this.draw())},enumerable:!0,configurable:!0}),e.prototype.draw=function(){var e,i,n,r,s="",o=this._currentPoints;if(o.length>0){for(var a=0,l=o.length;a<l;a++){var h=o[a][0],u=o[a][1];if(h&&h.length>0){s+=Vs(c=h[0]);for(var p=0;p<h.length;p++)s+=Fs(c=h[p]),(!O(i)||i<c.x)&&(i=c.x),(!O(e)||e>c.x)&&(e=c.x),(!O(n)||n>c.y)&&(n=c.y),(!O(r)||r<c.y)&&(r=c.y)}if(u&&u.length>0){var c;s+=Vs(c=u[0]);for(var d=0,f=u.length;d<f;d++)s+=Fs(c=u[d])}}s&&(s+=" Z"),this.bbox.x=e,this.bbox.y=n,this.bbox.width=i-e,this.bbox.height=r-n,t.prototype.setPath.call(this,s)}},e.prototype.setPath=function(e){return!!t.prototype.setPath.call(this,e)&&(this.points=[],this._bbox=this.group.getBBox(),!0)},e.prototype.measureElement=function(){},Object.defineProperty(e.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(e.prototype,"morpher",{get:function(){return this._morpher||(this._morpher=new Xs(this),this._disposers.push(this._morpher)),this._morpher},enumerable:!0,configurable:!0}),e}(hs);pe.registeredClasses.Polygon=zs;var Ys=function(t){function e(){var e=t.call(this)||this;return e.className="Polyspline",e.tensionX=.5,e.tensionY=.5,e.applyTheme(),e}return a(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments,e=this.tensionX,i=this.tensionY;if(t&&t.length>0){var n="";this._realSegments=[];for(var r=0,s=t.length;r<s;r++){var o=t[r],a=[];if(this._realSegments.push(a),o.length>0){n+=Vs(o[0]);for(var l=0;l<o.length-1;l++){var h=o[l-1],u=o[l],p=o[l+1],c=o[l+2];0===l?h=o[l]:l==o.length-2&&(c=o[l+1]),c||(c=p);var d=st(h,u,p,0,e,i),f=ot(0,u,p,c,e,i);n+=js(p,d,f);var g=Math.ceil(q(u,p))/2,y=u;if(g>0)for(var m=0;m<=g;m++){var v=rt(u,p,d,f,m/g);a.push(v),this._distance+=q(y,v),y=v}else a.push(h)}}}this.path=n}},Object.defineProperty(e.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0),this.makePath()},enumerable:!0,configurable:!0}),e}(Hs);pe.registeredClasses.Polyspline=Ys;var Us=function(t){function e(){var e=t.call(this)||this;return e.className="Slice",e.setPropertyValue("cornerRadius",0),e.setPropertyValue("startAngle",0),e.setPercentProperty("innerRadius",0),e.setPercentProperty("radius",0),e.setPropertyValue("arc",0),e.setPropertyValue("shiftRadius",0),e.strokeOpacity=1,e.setPropertyValue("layout","none"),e.slice=e.createChild(hs),e.slice.isMeasured=!1,e._disposers.push(e.slice),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.radiusY;this.radius>0&&0==e&&(e=.01),this.slice.path=Ls(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,e,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof Wr&&this.updateGradient(this.realFill),this.realStroke instanceof Wr&&this.updateGradient(this.realStroke)},e.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(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?it([ut(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),ut(this.startAngle,this.startAngle+this.arc,this.radius)]):{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",lt(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){O(t)||(t=0),this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){var t=this.getPropertyValue("radius");return O(t)||(t=0),t},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return O(t)||(t=this.radius),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"pixelInnerRadius",{get:function(){return Je(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(t){this.setPropertyValue("innerCornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(t){this.setPropertyValue("shiftRadius",t),this.dx=t*this.radius*this.ix,this.dy=t*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ix",{get:function(){return W(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iy",{get:function(){return this.radius,N(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");if(!O(t)){var e=Je(this.innerRadius,this.radius);t=this.ix*(e+(this.radius-e)/2)}return t},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");if(!O(t)){var e=Je(this.innerRadius,this.radius);t=this.iy*(e+(this.radiusY-e)/2)+this.slice.dy}return t},e}(ps);pe.registeredClasses.Slice=Us;var Gs=function(t){function e(){var e=t.call(this)||this;e.className="Preloader",e.width=g(100),e.height=g(100);var i=new Br,n=e.createChild(ps);n.shouldClone=!1;var r=n.createChild(Us);r.shouldClone=!1,r.radius=53,r.arc=360,r.fill=i.getFor("fill"),r.fillOpacity=.8,r.innerRadius=42,r.isMeasured=!1,e.backgroundSlice=r;var s=n.createChild(Us);s.shouldClone=!1,s.radius=50,s.innerRadius=45,s.fill=i.getFor("alternativeBackground"),s.fillOpacity=.2,s.isMeasured=!1,e.progressSlice=s;var o=n.createChild(ws);return o.shouldClone=!1,o.horizontalCenter="middle",o.verticalCenter="middle",o.isMeasured=!1,o.fill=i.getFor("text"),o.align="center",o.valign="middle",o.fillOpacity=.4,e.label=o,e.background.opacity=1,e.background.fill=i.getFor("background"),e.contentAlign="center",e.contentValign="middle",e.delay=300,e.states.create("hidden").properties.opacity=0,e.visible=!1,e.hide(0),e.__disabled=!0,e._disposers.push(e.backgroundSlice),e._disposers.push(e.progressSlice),e._disposers.push(e.label),e._disposers.push(n),e}return a(e,t),Object.defineProperty(e.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(100*t)+"%"),t>=1?(this._started&&(this._started=void 0),pe.events.once("enterframe",function(){var t=e.hide();t&&!t.isFinished()?t.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(e.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(t){this.setPropertyValue("delay",t)},enumerable:!0,configurable:!0}),e}(ps);pe.registeredClasses.Preloader=Gs;var Ks=function(t){function e(){var e=t.call(this)||this;e.className="ResizeButton",e.orientation="horizontal",e.layout="absolute",e.horizontalCenter="middle",e.verticalCenter="middle",e.draggable=!0,e.padding(8,8,8,8),e.background.cornerRadius(20,20,20,20);var i=new hs;i.element=e.paper.add("path");var n=Vs({x:-2,y:-6});return n+=Fs({x:-2,y:6}),n+=Vs({x:2,y:-6}),n+=Fs({x:2,y:6}),i.path=n,i.pixelPerfect=!0,i.padding(0,4,0,4),i.stroke=(new Br).getFor("alternativeText"),i.strokeOpacity=.7,e.icon=i,e.label.dispose(),e.label=void 0,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"orientation",{set:function(t){var e=this.icon;e&&(e.rotation="horizontal"==t?0:-90)},enumerable:!0,configurable:!0}),e}(Ss);pe.registeredClasses.ResizeButton=Ks;var qs=function(t){function e(){var e=t.call(this)||this;e._prevStart=0,e._prevEnd=1,e._isBusy=!1,e._skipRangeEvents=!1,e.updateWhileMoving=!0,e.className="Scrollbar",e.minHeight=12,e.minWidth=12,e.animationDuration=0,e.animationEasing=cn,e.margin(10,10,10,10);var i=new Br,n=e.background;return n.cornerRadius(10,10,10,10),n.fill=i.getFor("fill"),n.fillOpacity=.5,e.showSystemTooltip=!0,e.startGrip=new Ks,e.endGrip=new Ks,e.events.on("transformed",e.updateThumb,e,!1),e.start=0,e.end=1,e.role="scrollbar",e.thumb.role="slider",e.thumb.readerLive="polite",e.startGrip.role="slider",e.endGrip.role="slider",e.events.once("inited",function(){e._previousStart=void 0,e.dispatchRangeChange()},void 0,!1),e.hideGrips=!1,e.orientation="horizontal",e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),"horizontal"===this.orientation?(w(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),w(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),w(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),w(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection"))):(w(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),w(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),w(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),w(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")))},e.prototype.validateLayout=function(){this.updateSize(),t.prototype.validateLayout.call(this),this.updateExtremes()},e.prototype.processBackground=function(){t.prototype.processBackground.call(this);var e=this.background;e.clickable=!0,e.events.on("hit",this.handleBgHit,this,void 0)},e.prototype.handleBgHit=function(t){this.makeBusy();var e=t.spritePoint;e=Vi(e,this.background,this);var i=this.thumb;if("horizontal"==this.orientation){var n=e.x-i.pixelWidth/2;n=B(n,0,this.innerWidth-i.pixelWidth),this._thumbAnimation=i.animate({property:"x",to:n},this.animationDuration,this.animationEasing)}else{var r=e.y-i.pixelHeight/2;r=B(r,0,this.innerHeight-i.pixelHeight),this._thumbAnimation=i.animate({property:"y",to:r},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},e.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},e.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},e.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),1.1*this.animationDuration)},e.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},e.prototype.dispatchRangeChange=function(){this._previousEnd==this.end&&this._previousStart==this.start||(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},e.prototype.updateThumb=function(){if(this.parent){var t=this.thumb,e=this.start,i=this.end,n=this.startGrip,r=this.endGrip;if("horizontal"==this.orientation){var s=this.innerWidth;t.width=s*(i-e),t.maxX=s-t.pixelWidth,t.x=e*s,n.moveTo({x:t.pixelX,y:0},void 0,void 0,!0),r.moveTo({x:t.pixelX+t.pixelWidth,y:0},void 0,void 0,!0),n.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*e)+"%",position:e}).value),r.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*i)+"%",position:i}).value)}else{var o=this.innerHeight;t.height=o*(i-e),t.maxY=o-t.pixelHeight,t.y=(1-i)*o,n.moveTo({x:0,y:t.pixelY+t.pixelHeight},void 0,void 0,!0),r.moveTo({x:0,y:t.pixelY},void 0,void 0,!0),n.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-e))+"%",position:1-e}).value),r.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-i))+"%",position:1-i}).value)}t.readerTitle=this.language.translate("From %1 to %2",void 0,this.adapter.apply("positionValue",{value:Math.round(100*e)+"%",position:e}).value,this.adapter.apply("positionValue",{value:Math.round(100*i)+"%",position:i}).value),!this._skipRangeEvents&&this.updateWhileMoving&&this.dispatchRangeChange()}},e.prototype.updateExtremes=function(){var t=0,e=0,i=0,n=0;"horizontal"==this.orientation?(i=this.innerWidth,e=n=this.innerHeight/2):(n=this.innerHeight,t=i=this.innerWidth/2);var r=this.startGrip;r.minX=t,r.maxX=i,r.minY=e,r.maxY=n;var s=this.endGrip;s.minX=t,s.maxX=i,s.minY=e,s.maxY=n;var o=this.thumb;o.minX=t,o.maxX=i,o.minY=e,o.maxY=n},e.prototype.updateSize=function(){var t=this.orientation,e=this.startGrip;e&&(e.orientation=t),this.endGrip&&(this.endGrip.orientation=t);var i=this.thumb;i&&("horizontal"==t?(O(this._pixelWidth)||this.width instanceof f||(this.width=g(100)),w(this.percentHeight)&&(this.height=this.minHeight),i.height=this.innerHeight,i.verticalCenter="middle",i.horizontalCenter="left"):(O(this._pixelHeight)||this.height instanceof f||(this.height=g(100)),w(this.percentWidth)&&(this.width=this.minWidth),i.width=this.innerWidth,i.verticalCenter="top",i.horizontalCenter="middle"))},Object.defineProperty(e.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(e.prototype,"__start",{get:function(){return this._start},set:function(t){this._start=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"__end",{get:function(){return this._end},set:function(t){this._end=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),e.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},e.prototype.fixRange=function(t){t.start==E(this._start,2)&&t.end==E(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())},e.prototype.getPosition=function(t){return B(E(t,4),0,1)},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&("horizontal"===t?(this.startGrip.cursorOverStyle=zr.horizontalResize,this.endGrip.cursorOverStyle=zr.horizontalResize):(this.startGrip.cursorOverStyle=zr.verticalResize,this.endGrip.cursorOverStyle=zr.verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.updateByOrientation=function(){},Object.defineProperty(e.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(e.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}),e.prototype.processGrip=function(t){t.parent=this,t.isMeasured=!1,t.focusable=!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),this._disposers.push(t)},e.prototype.handleGripDrag=function(t){this.makeBusy(),t.target===this._startGrip?this._usingGrip="start":this._usingGrip="end","horizontal"==this.orientation?(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(e.prototype,"thumb",{get:function(){if(!this._thumb){var t=new Ss;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=zr.grab,t.cursorDownStyle=zr.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(Ir().body.events.on("keyup",function(t){vr.isKey(t.event,["space","enter"])&&e.thumb.isFocused&&(t.event.preventDefault(),e.handleDoubleClick())})),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),e.prototype.handleDoubleClick=function(){this.makeBusy();var t=0,e=1;0!=this.start||1!=this.end?(this._prevStart=this.start,this._prevEnd=this.end):(t=this._prevStart,e=this._prevEnd);var i=this.animate([{property:"__start",to:t},{property:"__end",to:e}],this.animationDuration,this.animationEasing);i&&!i.isFinished()?(i.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=i):this.makeUnbusy()},e.prototype.handleThumbPosition=function(){var t=this.thumb;if("horizontal"==this.orientation){var e=this.innerWidth,i=t.innerWidth,n=t.pixelX;this._start=n/e,this._end=(n+i)/e,this.updateThumb()}else{var r=this.innerHeight,s=t.innerHeight,o=t.pixelY;this._start=1-(o+s)/r,this._end=1-o/r,this.updateThumb()}},e.prototype.createBackground=function(){return new Cs},Object.defineProperty(e.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(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),e}(ps);pe.registeredClasses.Scrollbar=qs;var Zs=function(t){function e(){var e=t.call(this)||this;return e.className="Slider",e.thumb.opacity=0,e.thumb.interactionsEnabled=!1,e.endGrip.opacity=0,e.endGrip.interactionsEnabled=!1,e.startGrip.events.on("drag",function(){e.endGrip.x=e.startGrip.x,e.endGrip.y=e.startGrip.y}),e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"__end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),e}(qs);pe.registeredClasses.Slider=Zs;var $s=function(t){function e(){var e=t.call(this)||this;e.className="TextLink",e.selectable=!0;var i=new Br;return e.fill=i.getFor("primaryButton").brighten(.3),e.states.create("hover").properties.fill=i.getFor("primaryButtonHover").brighten(.3),e.states.create("down").properties.fill=i.getFor("primaryButtonDown").brighten(.3),e.cursorOverStyle=zr.pointer,e.applyTheme(),e}return a(e,t),e}(ws);pe.registeredClasses.TextLink=$s;var Js=function(t){function e(){var e=t.call(this)||this;return e.properties={},e.isTemplate=!1,e._scale=1,e._nonScaling=!0,e.className="Filter",e.filterPrimitives=new me,e.filterPrimitives.events.on("inserted",function(t){e._disposers.push(t.newValue)}),e.width=120,e.height=120,e.applyTheme(),e}return a(e,t),e.prototype.appendPrimitives=function(t){Qt(this.filterPrimitives.iterator(),function(e){t.add(e)})},e.prototype.animate=function(t,e,i){return new Un(this,t,e,i).start()},Object.defineProperty(e.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),zt(e.properties,function(t,e){i[t]=e})},Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Rr()},set:function(t){this._paper!=t&&(this._paper=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Yn(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale=t,this.updateScale()},enumerable:!0,configurable:!0}),e.prototype.updateScale=function(){},Object.defineProperty(e.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(e.prototype,"sprite",{set:function(t){this.setSprite(t)},enumerable:!0,configurable:!0}),e.prototype.setSprite=function(t){this._sprite&&this._sprite!=t&&this._sprite.filters.removeValue(this),this._sprite=t},e}(Re),Qs=function(t){function e(){var e=t.call(this)||this;return e.className="DropShadowFilter",e.color=Ee("#000"),e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.feOffset=e.paper.add("feOffset"),e.feOffset.attr({result:"offsetBlur"}),e.filterPrimitives.push(e.feOffset),e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":e.color}),e.filterPrimitives.push(e.feFlood),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({in2:"offsetBlur",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feMerge=e.paper.addGroup("feMerge"),e.feMerge.add(e.paper.add("feMergeNode")),e.feMerge.add(e.paper.add("feMergeNode").attr({in:"SourceGraphic"})),e.filterPrimitives.push(e.feMerge),e.width=200,e.height=200,e.blur=1.5,e.dx=3,e.dy=3,e.opacity=.5,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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(e.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(e.prototype,"dx",{get:function(){return this.properties.dx},set:function(t){this.properties.dx=t,this.feOffset.attr({dx:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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}),e.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},e}(Js);pe.registeredClasses.DropShadowFilter=Qs;var to=function(t){function e(){var e=t.call(this)||this;e._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},e._pointTo={x:0,y:0},e.fitPointerToBounds=!1,e._verticalOrientation="up",e.className="Tooltip",e.isMeasured=!1,e.getFillFromObject=!0,e.margin(5,5,5,5),e.defaultState.transitionDuration=1,e.hiddenState.transitionDuration=1;var i=e.background;i.interactionsEnabled=!1,i.fillOpacity=.9,i.strokeWidth=1,i.strokeOpacity=1,i.stroke=Ee("#ffffff"),i.cornerRadius=3,i.pointerLength=6,i.pointerBaseWidth=10;var n=new Qs;n.dy=1,n.dx=1,n.opacity=.5,i.filters.push(n),e.autoTextColor=!0;var r=e.createChild(ws);return r.shouldClone=!1,e.label=r,r.padding(7,12,4,12),r.interactionsEnabled=!1,r.horizontalCenter="middle",r.fill=Ee("#ffffff"),e._disposers.push(r),e.label.events.on("sizechanged",e.drawBackground,e),e.label.zIndex=1,e.pointerOrientation="vertical",e.animationDuration=0,e.animationEasing=cn,e.setPropertyValue("showInViewport",!1),e.role="tooltip",e.visible=!1,e.opacity=0,e.x=0,e.y=0,e.events.on("visibilitychanged",e.handleVisibility,e),e.applyTheme(),e}return a(e,t),e.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(e.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(t){this.setPropertyValue("getStrokeFromObject",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")},set:function(t){this.setPropertyValue("autoTextColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!0)})),this._disposers.push(this.events.on("out",function(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!1)})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(t){this.setPropertyValue("showInViewport",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(t){this.setPropertyValue("getFillFromObject",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new Ds},Object.defineProperty(e.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(t){this.setPropertyValue("pointerOrientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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}),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.label;e.invalid&&e.validate();var i,n,r=this._pointTo.x,s=this._pointTo.y,o=this._boundingRect,a=e.measuredWidth,l=e.measuredHeight,h=this.background.pointerLength;if(a>o.width){Ri({x:o.x,y:o.y},this.parent);var u=Ri({x:o.x+o.width,y:o.y+o.height},this.parent),p=document.body.offsetWidth;document.body.offsetHeight,u.x>p/2?o.x=o.width-a:o.width=o.x+a}var c=this.pointerOrientation;"horizontal"==c||"left"==c||"right"==c?(n=-l/2,i="horizontal"==c?r>o.x+o.width/2?-a/2-h:a/2+h:"left"==c?a/2+h:-a/2-h):(i=B(0,o.x-r+a/2,o.x-r+o.width-a/2),"vertical"==c?s>o.y+l+h?(n=-l-h,this._verticalOrientation="up"):(n=h,this._verticalOrientation="down"):"down"==c?(n=-l-h,this._verticalOrientation="up"):(n=h,this._verticalOrientation="down")),n=B(n,o.y-s,o.y+o.height-l-s),e.x=i,e.y=n,this.drawBackground()},e.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},e.prototype.drawBackground=function(){var t=this.label,e=this.background,i=t.measuredWidth,n=t.measuredHeight,r=this._boundingRect,s=i,o=t.pixelX-i/2,a=n,l=t.pixelY,h=this._pointTo.x,u=this._pointTo.y,p=r.x-h,c=p+r.width,d=r.y-u,f=d+r.height;e.x=o,e.y=l,e.width=s,e.height=a,this.fitPointerToBounds?(e.pointerX=B(-e.x,p-e.x,c-e.x),e.pointerY=B(-e.y,d-e.y,f-e.y)):(e.pointerX=-e.x,e.pointerY=-e.y),e.validate()},e.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()):0==this.pixelX&&0==this.pixelY?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new Un(this,[{property:"x",to:t.x,from:this.pixelX},{property:"y",to:t.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},e.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(e.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}),e.prototype.updateBounds=function(){var t=this._boundingContainer,e=Mi({x:t.pixelX,y:t.pixelY,width:t.maxWidth,height:t.maxHeight},t);this.setBounds(e)},Object.defineProperty(e.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),e._boundingRect&&(this._boundingRect=e._boundingRect)},e}(ps);pe.registeredClasses.Tooltip=to;var eo=function(t){function e(){var e=t.call(this)||this;return e.className="Trapezoid",e.element=e.paper.add("path"),e.topSide=g(100),e.bottomSide=g(100),e.leftSide=g(100),e.rightSide=g(100),e.isMeasured=!1,e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight,n=Je(this.topSide,e),r=Je(this.bottomSide,e),s=Je(this.leftSide,i),o=Je(this.rightSide,i),a=(e-n)/2,l=(i-s)/2,h=e-(e-n)/2,u=(i-o)/2,p=e-(e-r)/2,c=i-(i-o)/2,d=(e-r)/2,f=i-(i-s)/2,g="",y="",m="",v="";if(w(this.horizontalNeck)){var b=this.horizontalNeck.value;g=Fs({x:e*b,y:Math.max(l,u)}),m=Fs({x:e*b,y:Math.min(c,f)})}if(w(this.verticalNeck)){var x=this.verticalNeck.value;y=Fs({x:Math.min(h,p),y:i*x}),v=Fs({x:Math.max(a,d),y:i*x})}var _=Vs({x:a,y:l})+g+Fs({x:h,y:u})+y+Fs({x:p,y:c})+m+Fs({x:d,y:f})+v;this.path=_},Object.defineProperty(e.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(e.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(e.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(e.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(e.prototype,"horizontalNeck",{get:function(){return this.getPropertyValue("horizontalNeck")},set:function(t){this.setPropertyValue("horizontalNeck",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalNeck",{get:function(){return this.getPropertyValue("verticalNeck")},set:function(t){this.setPropertyValue("verticalNeck",t,!0)},enumerable:!0,configurable:!0}),e}(hs);pe.registeredClasses.Trapezoid=eo;var io=function(t){function e(){var e=t.call(this)||this;return e.className="Triangle",e.element=e.paper.add("path"),e.direction="top",e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.pixelWidth,n=this.pixelHeight;switch(this.direction){case"right":e=Vs({x:0,y:0})+Fs({x:i,y:n/2})+Fs({x:0,y:n})+" Z";break;case"left":e=Vs({x:i,y:0})+Fs({x:0,y:n/2})+Fs({x:i,y:n})+" Z";break;case"bottom":e=Vs({x:0,y:0})+Fs({x:i,y:0})+Fs({x:i/2,y:n})+" Z";break;case"top":e=Vs({x:i/2,y:0})+Fs({x:i,y:n})+Fs({x:0,y:n})+" Z"}this.path=e},Object.defineProperty(e.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(t){this.setPropertyValue("direction",t,!0)},enumerable:!0,configurable:!0}),e}(hs);pe.registeredClasses.Triangle=io;var no=function(){function t(t,e){this._tensionX=t,this._tensionY=e}return t.prototype.smooth=function(t){var e=this._tensionX,i=this._tensionY;if(t.length<3||e>=1&&i>=1)return As(t);var n=t[0],r=t[t.length-1],s=!1;E(n.x,3)==E(r.x)&&E(n.y)==E(r.y)&&(s=!0);for(var o="",a=0,l=t.length-1;a<l;a++){var h=t[a-1],u=t[a],p=t[a+1],c=t[a+2];0===a?h=s?t[t.length-2]:t[a]:a==t.length-2&&(c=s?t[1]:t[a+1]),o+=js(p,st(h,u,p,0,e,i),ot(0,u,p,c,e,i))}return o},t}();function ro(t,e,i,n,r,s){var o=t.x,a=t.y,l=e.x,h=e.y,u=q(t,e);s&&(i=u/Math.round(u/i));var p=pe.getCache(ri(["wavedLine",t.x,e.x,t.y,e.y,i,n]));if(!p){if(u>0){var c=Math.atan2(h-a,l-o),d=Math.cos(c),f=Math.sin(c),g=i*d,y=i*f;if(i<=1||n<=1)p=Fs(e);else{var m=Math.round(2*u/i),v=[],b=1;l<o&&(b*=-1),h<a&&(b*=-1);for(var x=0;x<=m;x++){var _=o+x*g/2+(b*=-1)*n/2*f,P=a+x*y/2-b*n/2*d;v.push({x:_,y:P})}p=new no(r,r).smooth(v)}}else p="";pe.setCache(ri(["wavedLine",t.x,e.x,t.y,e.y,i,n]),p)}return p}!function(){function t(t){this._closed=t.closed}t.prototype.smooth=function(t){var e=this,i=NaN,n=NaN,r=NaN,s=NaN,o=NaN,a=NaN,l=NaN,h=NaN,u=NaN,p=NaN,c=0,d="",f=function(t,e){d+=js({x:(i+4*n+t)/6,y:(a+4*l+e)/6},{x:(2*i+n)/3,y:(2*a+l)/3},{x:(i+2*n)/3,y:(a+2*l)/3})},g=function(t){var g=t.x,y=t.y;switch(c){case 0:c=1,e._closed?(r=g,h=y):d+=Fs({x:g,y:y});break;case 1:c=2,e._closed&&(s=g,u=y);break;case 2:if(c=3,e._closed){o=g,p=y,d+=Vs({x:(i+4*n+g)/6,y:(a+4*l+y)/6});break}d+=Fs({x:(5*i+n)/6,y:(5*a+l)/6});default:f(g,y)}i=n,n=g,a=l,l=y};if(yt(t,g),this._closed)switch(c){case 1:d+=Vs({x:r,y:h}),d+=" Z";break;case 2:d+=Vs({x:(r+2*s)/3,y:(h+2*u)/3}),d+=Fs({x:(s+2*r)/3,y:(u+2*h)/3}),d+=" Z";break;case 3:g({x:r,y:h}),g({x:s,y:u}),g({x:o,y:p})}else{switch(c){case 3:f(n,l);case 2:d+=Fs({x:n,y:l})}d+=" Z"}return d}}();var so=function(t){function e(){var e=t.call(this)||this;return e.className="WavedCircle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.fill=void 0,e.fillOpacity=0,e.tension=.8,e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){var t="",e=this.pixelRadius;e>0&&(t=Vs((i=this.getPoints(e))[0])+new no(this.tension,this.tension).smooth(i));var i,n=this.pixelInnerRadius;n>0&&((i=this.getPoints(n)).reverse(),t+=Vs(i[0])+new no(this.tension,this.tension).smooth(i));this.path=t},e.prototype.getPoints=function(t){for(var e=t*Math.PI*2,i=this.waveHeight/2,n=e/Math.round(e/this.waveLength),r=n/2,s=[],o=e/n,a=0;a<=o;a++){var l=a*n/e*360,h=(a*n+r)/e*360;s.push({x:(t-i)*W(l),y:(t-i)*N(l)}),s.push({x:(t+i)*W(h),y:(t+i)*N(h)})}return s.pop(),s},Object.defineProperty(e.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(e.prototype,"pixelInnerRadius",{get:function(){return Je(this.innerRadius,z(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(ks);pe.registeredClasses.WavedCircle=so;var oo=function(t){function e(){var e=t.call(this)||this;return e.className="WavedLine",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.pixelPerfect=!1,e.fill=Ee(),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2};this.path=Vs(t)+ro(t,e,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(Is),ao=function(t){function e(){var e=t.call(this)||this;return e.className="WavedRectangle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.setPropertyValue("wavedLeft",!0),e.setPropertyValue("wavedRight",!0),e.setPropertyValue("wavedTop",!0),e.setPropertyValue("wavedBottom",!0),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelWidth,i=this._pixelHeight;if(e>0&&i>0){var n={x:0,y:0},r={x:e,y:0},s={x:e,y:i},o={x:0,y:i},a=Math.min(e,this.waveLength),l=Math.min(i,this.waveHeight),h="",u="",p="",c="";this.wavedTop&&(h=ro(n,r,a,l,this.tension,!0)),this.wavedRight&&(u=ro(r,s,a,l,this.tension,!0)),this.wavedBottom&&(p=ro(s,o,a,l,this.tension,!0)),this.wavedLeft&&(c=ro(o,n,a,l,this.tension,!0)),this.path=Vs(n)+h+Fs(r)+u+Fs(s)+p+Fs(o)+c+"z"}},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.setWavedSides=function(t,e,i,n){this.wavedTop=t,this.wavedRight=e,this.wavedBottom=i,this.wavedLeft=n},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")},set:function(t){this.setPropertyValue("wavedRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(t){this.setPropertyValue("wavedLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(t){this.setPropertyValue("wavedTop",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(t){this.setPropertyValue("wavedBottom",t,!0)},enumerable:!0,configurable:!0}),e}(us),lo=function(t){function e(){var e=t.call(this)||this;e.className="ZoomOutButton",e.padding(9,9,9,9),e.showSystemTooltip=!0;var i=new Br,n=e.background;n.cornerRadius(20,20,20,20),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new hs;r.element=e.paper.add("path");var s=Vs({x:0,y:0});return s+=Fs({x:11,y:0}),r.path=s,r.pixelPerfect=!0,r.padding(8,3,8,3),r.stroke=i.getFor("primaryButtonText"),e.icon=r,e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},e}(Ss);pe.registeredClasses.ZoomOutButton=lo;var ho=function(t){function e(){var e=t.call(this)||this;e.className="PlayButton",e.padding(12,12,12,12),e.showSystemTooltip=!0;var i=new Br,n=e.background;n.cornerRadius(25,25,25,25),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new io;r.direction="right",r.width=9,r.height=11,r.marginLeft=1,r.marginRight=1,r.horizontalCenter="middle",r.verticalCenter="middle",r.stroke=i.getFor("primaryButtonText"),r.fill=r.stroke,e.icon=r;var s=new Cs;s.width=11,s.height=11,s.horizontalCenter="middle",s.verticalCenter="middle",s.cornerRadius(0,0,0,0),s.stroke=i.getFor("primaryButtonText"),s.fill=r.stroke,e.togglable=!0;var o=e.states.create("active");return o.transitionDuration=0,o.properties.icon=s,e.defaultState.transitionDuration=0,e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},e}(Ss);pe.registeredClasses.PlayButton=ho;var uo=function(t){function e(){var e=t.call(this)||this;return e.className="ColorModifier",e.applyTheme(),e}return a(e,t),e.prototype.modify=function(t){return t},e}(Re);pe.registeredClasses.ColorModifier=uo;var po=function(t){function e(){var e=t.call(this)||this;return e.lightnesses=[],e.brightnesses=[],e.opacities=[],e.offsets=[],e.className="GradientModifier",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"lightnesses",{get:function(){return this._lightnesses},set:function(t){this._lightnesses=t,this._brightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brightnesses",{get:function(){return this._brightnesses},set:function(t){this._brightnesses=t,this._lightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacities",{get:function(){return this._opacities},set:function(t){this._opacities=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsets",{get:function(){return this._offsets},set:function(t){this._offsets=t},enumerable:!0,configurable:!0}),e.prototype.modify=function(t){this.gradient.clear();var e=0;this.opacities&&(e=X(e,this.opacities.length)),this.lightnesses&&(e=X(e,this.lightnesses.length)),this.brightnesses&&(e=X(e,this.brightnesses.length));for(var i,n,r=1,s=0;s<e;s++){var o=t;this.opacities&&O(this.opacities[s])&&(r=this.opacities[s]),this.lightnesses&&O(this.lightnesses[s])&&(i=this.lightnesses[s],n=void 0),this.brightnesses&&O(this.brightnesses[s])&&(n=this.brightnesses[s],i=void 0),O(n)?o=t.brighten(this.brightnesses[s]):O(i)&&(o=t.lighten(this.lightnesses[s]));var a=this.offsets[s];this.gradient.addColor(o,r,a)}return this.gradient},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this._offsets=e.offsets,this._brightnesses=e.brightnesses,this._lightnesses=e.lightnesses,this._opacities=e.opacities},e}(uo);pe.registeredClasses.GradientModifier=po;var co=function(t){function e(){var e=t.call(this)||this;return e.className="LinearGradientModifier",e.gradient=new Hr,e.applyTheme(),e}return a(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},e}(po);pe.registeredClasses.LinearGradientModifier=co;var fo=function(t){function e(){var e=t.call(this)||this;return e.className="Cone",e.angle=30,e.radius=g(100),e.topRadius=g(100),e.top=e.createChild(Ts),e.top.shouldClone=!1,e.bottom=e.createChild(Ts),e.bottom.shouldClone=!1,e.body=e.createChild(hs),e.body.shouldClone=!1,e.body.setElement(e.paper.add("path")),e.layout="none",e.bodyFillModifier=new co,e.bodyFillModifier.lightnesses=[0,-.25,0],e.body.fillModifier=e.bodyFillModifier,e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),Gt(this,this.top,ls),Gt(this,this.bottom,ls),Gt(this,this.body,ls);var e,i,n,r=this.innerWidth,s=this.innerHeight,o=this.bottom,a=this.top,l=this.angle;"horizontal"==this.orientation?(e=s/2,o.y=s/2,a.y=s/2,a.x=r,i=(90-l)/90,n=0,this.bodyFillModifier.gradient.rotation=90):(i=0,n=(90-l)/90,e=r/2,o.y=s,o.x=r/2,a.x=r/2,this.bodyFillModifier.gradient.rotation=0);var h,u=this.radius.value*e,p=this.topRadius.value*e;o.radius=u-u*i,o.radiusY=u-u*n,a.radius=p-p*i,a.radiusY=p-p*n,h="horizontal"==this.orientation?Vs({x:0,y:s/2-o.radiusY})+Es(-90,-180,o.radius,o.radiusY)+Fs({x:r,y:s/2+a.radiusY})+Es(90,180,a.radius,a.radiusY)+" Z":Vs({x:r/2-a.radius,y:0})+Es(180,-180,a.radius,a.radiusY)+Fs({x:r/2+o.radius,y:s})+Es(0,180,o.radius,o.radiusY)+" Z",this.body.path=h},Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRadius",{get:function(){return this.getPropertyValue("topRadius")},set:function(t){this.setPropertyValue("topRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),e}(ps),go=function(t){function e(){var e=t.call(this)||this;return e.className="LightenFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.lightness=0,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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}),e}(Js);pe.registeredClasses.LightenFilter=go;var yo=function(t){function e(){var e=t.call(this)||this;e.angle=30,e.depth=30,e.className="Rectangle3D",e.layout="none";var i=e.createChild(hs);i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e.sideBack=i,e._disposers.push(e.sideBack);var n=e.createChild(hs);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.isMeasured=!1,e.sideBottom=n,e._disposers.push(e.sideBottom);var r=e.createChild(hs);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.isMeasured=!1,e.sideLeft=r,e._disposers.push(e.sideLeft);var s=e.createChild(hs);s.shouldClone=!1,s.setElement(e.paper.add("path")),s.isMeasured=!1,e.sideRight=s,e._disposers.push(e.sideRight);var o=e.createChild(hs);o.shouldClone=!1,o.setElement(e.paper.add("path")),o.isMeasured=!1,e.sideTop=o,e._disposers.push(e.sideTop);var a=e.createChild(hs);return a.shouldClone=!1,a.setElement(e.paper.add("path")),a.isMeasured=!1,e.sideFront=a,e._disposers.push(e.sideFront),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight,n=this.depth,r=this.angle,s=N(r),o=W(r),a={x:0,y:0},l={x:e,y:0},h={x:e,y:i},u={x:0,y:i},p={x:n*o,y:-n*s},c={x:n*o+e,y:-n*s},d={x:n*o+e,y:-n*s+i},f={x:n*o,y:-n*s+i};this.sideFront.path=Vs(a)+Fs(l)+Fs(h)+Fs(u)+" Z",this.sideBack.path=Vs(p)+Fs(c)+Fs(d)+Fs(f)+" Z",this.sideLeft.path=Vs(a)+Fs(p)+Fs(f)+Fs(u)+" Z",this.sideRight.path=Vs(l)+Fs(c)+Fs(d)+Fs(h)+" Z",this.sideBottom.path=Vs(u)+Fs(f)+Fs(d)+Fs(h)+" Z",this.sideTop.path=Vs(a)+Fs(p)+Fs(c)+Fs(l)+" Z"},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),e instanceof je)i=e.hex;else if(e instanceof Hr||e instanceof Wr)i=e.stops.getIndex(0).color.hex;else{var n=new go;n.lightness=-.2,this.sideBack.filters.push(n);var r=n.clone();r.lightness=-.4,this.sideLeft.filters.push(r);var s=n.clone();s.lightness=-.2,this.sideRight.filters.push(s);var o=n.clone();o.lightness=-.1,this.sideTop.filters.push(o);var a=n.clone();a.lightness=-.5,this.sideBottom.filters.push(a)}i&&(this.sideBack.fill=Ee(i).lighten(-.2),this.sideLeft.fill=Ee(i).lighten(-.4),this.sideRight.fill=Ee(i).lighten(-.2),this.sideTop.fill=Ee(i).lighten(-.1),this.sideBottom.fill=Ee(i).lighten(-.5))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.sideBack.copyFrom(e.sideBack),this.sideLeft.copyFrom(e.sideLeft),this.sideRight.copyFrom(e.sideRight),this.sideTop.copyFrom(e.sideTop),this.sideBottom.copyFrom(e.sideBottom)},e}(ps),mo=function(t){function e(){var e=t.call(this)||this;e.className="Slice3D",e.layout="none";var i=e.createChild(hs);e.edge=i,i.shouldClone=!1,i.isMeasured=!1,i.toBack(),e.angle=30,e.depth=20;var n=e.createChild(hs);e.sideA=n,n.shouldClone=!1,n.isMeasured=!1;var r=e.createChild(hs);return e.sideB=r,r.shouldClone=!1,r.isMeasured=!1,e.applyTheme(),e}return a(e,t),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),e instanceof je)i=e.hex;else if(e instanceof Hr||e instanceof Wr)i=e.stops.getIndex(0).color.hex;else{var n=new go;n.lightness=-.25,this.edge.filters.push(n),this.sideA.filters.push(n.clone()),this.sideB.filters.push(n.clone())}if(i){var r=Ee(i).lighten(-.25);this.edge.fill=r,this.sideA.fill=r,this.sideB.fill=r,this.edge.stroke=r,this.sideA.stroke=r,this.sideB.stroke=r}},e.prototype.draw=function(){if(this.cornerRadius=0,this.innerCornerRadius=0,t.prototype.draw.call(this),0!==this.arc&&this.radius>0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var e=this.startAngle,i=this.arc,n=this.pixelInnerRadius||0,r=this.radiusY||0,s=this.radius,o=e+i,a=r/s*n,l={x:W(e)*n,y:N(e)*a},h={x:W(e)*s,y:N(e)*r},u={x:W(o)*s,y:N(o)*r},p={x:W(o)*n,y:N(o)*a},c=this.depth,d={x:l.x,y:l.y-c},f={x:h.x,y:h.y-c},g={x:u.x,y:u.y-c},y={x:p.x,y:p.y-c},m="",v=Math.ceil(i/5),b=i/v,x=e,_=f,P=0;P<v;P++)if((x+=b)>0&&x<180){m+=Vs(_);var w={x:W(x)*s,y:N(x)*r-c};m+=Fs({x:_.x,y:_.y+c}),m+=Rs({x:w.x,y:w.y+c},s,r,!0),m+=Fs(w),m+=Rs(_,s,r),m+="z",_=w}else{m+=Vs(_),m+=Rs(w={x:W(x)*s,y:N(x)*r-c},s,r,!0),m+=Fs({x:w.x,y:w.y+c}),m+=Rs({x:_.x,y:_.y+c},s,r),m+=Fs(_),m+="z",_=w}_=d,x=e;for(P=0;P<v;P++)if((x+=b)>0&&x<180){m+=Vs(_);w={x:W(x)*n,y:N(x)*a-c};m+=Fs({x:_.x,y:_.y+c}),m+=Rs({x:w.x,y:w.y+c},n,a,!0),m+=Fs(w),m+=Rs(_,n,a),m+="z",_=w}else{m+=Vs(_),m+=Rs(w={x:W(x)*n,y:N(x)*a-c},n,a,!0),m+=Fs({x:w.x,y:w.y+c}),m+=Rs({x:_.x,y:_.y+c},n,a),m+=Fs(_),m+="z",_=w}this.edge.path=m,this.sideA.path=Vs(l)+Fs(h)+Fs(f)+Fs(d)+" Z",this.sideB.path=Vs(u)+Fs(p)+Fs(y)+Fs(g)+" Z",this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-c}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){var t=this.getPropertyValue("angle");return O(t)||(t=0),t},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return O(t)||(t=this.radius-this.radius*this.angle/90),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.edge.copyFrom(e.edge),this.sideA.copyFrom(e.sideA),this.sideB.copyFrom(e.sideB)},e}(Us),vo=function(t){function e(){var e=t.call(this)||this;return e.className="RadialGradientModifier",e.gradient=new Wr,e.applyTheme(),e}return a(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},e}(po);pe.registeredClasses.RadialGradientModifier=vo;var bo=function(t){function e(){var e=t.call(this)||this;return e._line=e.paper.add("line"),e.addElement(e._line),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this._line&&this._line.attr({x2:2*this.width})},e}(Nr);pe.registeredClasses.LinePattern=bo;var xo=function(t){function e(){var e=t.call(this)||this;return e.rectHeight=1,e.rectWidth=1,e}return a(e,t),e.prototype.draw=function(){this._rect&&this.removeElement(this._rect),this._rect=this.paper.add("rect"),this._rect.attr({width:this.rectWidth,height:this.rectHeight}),this.addElement(this._rect),t.prototype.draw.call(this)},Object.defineProperty(e.prototype,"rectWidth",{get:function(){return this.properties.rectWidth},set:function(t){this.properties.rectWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(t){this.properties.rectHeight=t,this.draw()},enumerable:!0,configurable:!0}),e}(Nr);pe.registeredClasses.RectPattern=xo;var _o=function(t){function e(){var e=t.call(this)||this;return e.className="ColorizeFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.intensity=1,e.applyTheme(),e}return a(e,t),e.prototype.applyFilter=function(){var t,e,i,n=this.intensity,r=1-n,s=this.color;s&&s.rgb?(t=s.rgb.r/255*n,e=s.rgb.g/255*n,i=s.rgb.b/255*n):(t=0,e=0,i=0),this.feColorMatrix.attr({values:r+" 0 0 0 "+t+" 0 "+r+" 0 0 "+e+" 0 0 "+r+" 0 "+i+" 0 0 0 1 0"})},Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(t){this.properties.intensity=t,this.applyFilter()},enumerable:!0,configurable:!0}),e}(Js);pe.registeredClasses.ColorizeFilter=_o;var Po=function(t){function e(){var e=t.call(this)||this;return e.className="DesaturateFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"saturate"}),e.filterPrimitives.push(e.feColorMatrix),e.width=120,e.height=120,e.saturation=0,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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}),e}(Js);pe.registeredClasses.DesaturateFilter=Po;var wo=function(t){function e(){var e=t.call(this)||this;return e.className="BlurFilter",e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.width=200,e.height=200,e.blur=1.5,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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}),e}(Js);pe.registeredClasses.BlurFilter=wo;var Co=function(t){function e(){var e=t.call(this)||this;return e.className="FocusFilter",e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":(new Br).getFor("primaryButtonHover"),result:"base"}),e.filterPrimitives.push(e.feFlood),e.feMorphology=e.paper.add("feMorphology"),e.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),e.filterPrimitives.push(e.feMorphology),e.feColorMatrix=e.paper.add("feColorMatrix"),e.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"}),e.filterPrimitives.push(e.feColorMatrix),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feBlend=e.paper.add("feBlend"),e.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),e.filterPrimitives.push(e.feBlend),e.width=130,e.height=130,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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(e.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(e.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}),e.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.group.removeStyle("outline"),e.group.addStyle({outline:"none"}),t.prototype.setSprite.call(this,e)},e}(Js),So=function(t){function e(){var e=t.call(this)||this;return e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new je({r:103,g:183,b:220}),e.stepOptions={},e.passOptions={brighten:-.2},e.step=1,e.minColors=20,e.minLightness=.2,e.maxLightness=.9,e.shuffle=!1,e.wrap=!0,e.reuse=!1,e.saturation=1,e.className="ColorSet",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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}),e.prototype.getReusableColor=function(t){if(0==this._list.length)return this.generate(1),this.list[0];var e=t-Math.floor(t/this._list.length)*this.list.length;return this.list[e]},e.prototype.next=function(){var t;return this.list.length<=this._currentStep?this.reuse?t=this.getReusableColor(this._currentStep):(this.generate(this.minColors),t=this.list[this._currentStep]):t=this.list[this._currentStep],this._currentStep+=this.step,t.saturate(this.saturation)},e.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)},e.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(e.prototype,"currentStep",{get:function(){return this._currentStep},set:function(t){this._currentStep=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return this._startIndex},set:function(t){this._startIndex=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.generate=function(t){var e=Me(C(this.currentColor.rgb)),i=w(this.stepOptions.hue)?this.stepOptions.hue:1/t,n={brighten:0,lighten:0,hue:e.h,lightness:e.l,saturation:e.s},r=[];if(this.reuse)for(var s=0;s<t;s++)r.push(Me(C(this._list[s].rgb)).h);else for(s=0;s<t;s++){var o=e.h+i*s;this.wrap&&o>1&&(o-=1),r.push(o)}this.shuffle&&r.sort(function(t,e){return Math.random()-.5});for(s=0;s<t;s++){this.reuse?e=Me(C(this._list[s].rgb)):e.h=r.shift(),this.applyStepOptions(e,n,s+1,this._currentPass);var a=Ee(Fe(e)),l=(this.stepOptions.brighten||0)*(s+1)+(this.passOptions.brighten||0)*this._currentPass;0!=l&&(l=this.wrap?Ii(l,this.minLightness,this.maxLightness):Oi(l,this.minLightness,this.maxLightness),a=a.brighten(l));var h=(this.stepOptions.lighten||0)*(s+1)+(this.passOptions.lighten||0)*this._currentPass;0!=h&&(h=this.wrap?Ii(h,this.minLightness,this.maxLightness):Oi(h,this.minLightness,this.maxLightness),a=a.lighten(h)),this._list.push(a)}this._currentPass++},Object.defineProperty(e.prototype,"currentColor",{get:function(){return 0==this._list.length?this.baseColor.saturate(this.saturation):this._list[this._list.length-1].saturate(this.saturation)},enumerable:!0,configurable:!0}),e.prototype.applyStepOptions=function(t,e,i,n){t.l=e.lightness+(this.stepOptions.lightness||0)*i+(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=Ii(t.l,this.minLightness,this.maxLightness)):(t.l>1?t.l=1:t.l<0&&(t.l=0),t.l=Oi(t.l,this.minLightness,this.maxLightness))},e.prototype.processConfig=function(e){if(e&&w(e.list)&&D(e.list))for(var i=0,n=e.list.length;i<n;i++)e.list[i]instanceof je||(e.list[i]=Ee(e.list[i]));t.prototype.processConfig.call(this,e)},e}(Re);pe.registeredClasses.ColorSet=So;!function(){function t(){this._disposed=!1,this._disposers=[]}t.prototype.init=function(){},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;0!==t.length;){t.shift().dispose()}}}}();var ko=function(t){function e(){var e=t.call(this)||this;e.className="AmChartsLogo",e.valign="bottom";var i=.3;e.opacity=.3,e.defaultState.properties.opacity=.4,e.url="https://www.amcharts.com/",e.urlTarget="_blank",e.showSystemTooltip=!0,e.readerTitle="Chart created using amCharts library",e.width=66,e.height=21,e.background.opacity=0;var n=Ee("#474758");"#ffffff"==(new Br).getFor("background").alternative.hex&&(n=Ee("#ffffff"));var r=new Hr;r.addColor(n),r.addColor(n,1,.75),r.addColor(Ee("#3cabff"),1,.755),r.rotation=-10;var s=r,o=e.createChild(Ys);o.shouldClone=!1,o.isMeasured=!1,o.segments=[[{x:15,y:15},{x:27,y:15},{x:36,y:6},{x:40.5,y:10.5},{x:45,y:6},{x:54,y:15},{x:60,y:15}]],o.strokeWidth=6*i,o.tensionX=.8,o.tensionY=1,o.stroke=Ee("#3cabff");var a=e.createChild(Ys);a.shouldClone=!1,a.isMeasured=!1,a.segments=[[{x:6,y:15},{x:15,y:15},{x:27,y:12*i},{x:39.9,y:15},{x:51,y:15},{x:60,y:15}]],a.strokeWidth=6*i,a.tensionX=.75,a.tensionY=1,a.stroke=s,e._disposers.push(a);var l=new Po;e.filters.push(l);var h=new Po;h.saturation=1;var u=e.states.create("hover");return u.properties.opacity=1,u.filters.push(h),e.applyTheme(),e}return a(e,t),e}(ps);function To(t,e){var i=function(t){if(T(t)){var e=document.getElementById(t);if(null==e&&(e=document.getElementsByClassName(t)[0]),e instanceof HTMLElement)return e}else if(t instanceof HTMLElement)return t}(t);if(i){i.innerHTML="";var n=new jr(i),r=new Er(n.SVGContainer,"svg-"+(Mr.length-1)),s=new ps;s.htmlContainer=i,s.svgContainer=n,s.width=g(100),s.height=g(100),s.background.fillOpacity=0,s.paper=r,r.append(s.group),s.relativeWidth=1,s.relativeHeight=1,n.container=s;var o=s.createChild(e);o.topParent=s;var a=o.uid;pe.invalidSprites[a]=[],pe.invalidDatas[a]=[],pe.invalidPositions[a]=[],pe.invalidLayouts[a]=[],s.baseId=a,o.isBaseSprite=!0,o.focusFilter=new Co,pe.baseSprites.push(o),pe.baseSpritesByUid[a]=o,o.maskRectangle={x:0,y:0,width:n.width,height:n.height},s.events.on("maxsizechanged",function(t){0!=t.previousWidth&&0!=t.previousHeight||s.deepInvalidate(),o.maskRectangle&&(o.maskRectangle={x:0,y:0,width:n.width,height:n.height})});var l=null,h=function(){o.isDisposed()?l=null:null==nr(o.dom)?(!function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];console&&console.warn.apply(console,d(t))}("Chart was not disposed",o.uid),l=null):l=setTimeout(h,1e3)};h(),o.addDisposer(new kt(function(){null!==l&&clearTimeout(l),mt(pe.baseSprites,o),pe.baseSpritesByUid[o.uid]=void 0})),o.addDisposer(s);var u=s.createChild(ps);u.topParent=s,u.width=g(100),u.height=g(100),u.isMeasured=!1,s.tooltipContainer=u,o.tooltip=new to,o.tooltip.hide(0),o.tooltip.setBounds({x:0,y:0,width:u.maxWidth,height:u.maxHeight}),u.events.on("maxsizechanged",function(){C(o.tooltip).setBounds({x:0,y:0,width:u.maxWidth,height:u.maxHeight})},void 0,!1);var p=new Gs;if(p.events.on("inited",function(){p.__disabled=!0},void 0,!1),s.preloader=p,!ce.commercialLicense){var c=u.createChild(ko);u.events.on("maxsizechanged",function(t){u.maxWidth<=100||u.maxHeight<=50?c.hide():(c.isHidden||c.isHiding)&&c.show()},void 0,!1),o.logo=c,c.align="left",c.valign="bottom"}if(o.numberFormatter,s.isStandaloneInstance=!0,ce.onlyShowOnViewport)if(ur(i))ce.queue&&Oo(o);else{o.__disabled=!0,o.tooltipContainer.__disabled=!0;var f=new Tt([Zn(window,"DOMContentLoaded",function(){Do(o)}),Zn(window,"load",function(){Do(o)}),Zn(window,"resize",function(){Do(o)}),Zn(window,"scroll",function(){Do(o)})]);o.addDisposer(f),o.vpDisposer=f}else ce.queue&&Oo(o);return o}throw de.log("html container not found"),new Error("html container not found")}function Oo(t){-1==pe.queue.indexOf(t)&&(t.__disabled=!0,t.tooltipContainer.__disabled=!0,t.events.disableType("appeared"),0==pe.queue.length&&Ao(t),t.addDisposer(new kt(function(){Io(t)})),pe.queue.push(t))}function Io(t){var e=pe.queue.indexOf(t);if(e>=0){pe.queue.splice(pe.queue.indexOf(t),1);var i=pe.queue[e];i&&Ao(i)}}function Do(t){t.__disabled&&ur(t.htmlContainer)&&(t.vpDisposer&&t.vpDisposer.dispose(),Oo(t))}function Ao(t){t.__disabled=!1,t.tooltipContainer.__disabled=!1,t.events.enableType("appeared"),t.showOnInit&&t.events.on("appeared",function(){Io(t)}),t.vpDisposer&&t.vpDisposer.dispose(),t instanceof Ps?(t.invalidateData(),t.reinit(),t.events.once("datavalidated",function(){t.showOnInit?t.appear():Io(t)})):t.showOnInit?t.appear():Io(t)}var Vo=function(t){function e(){var e=t.call(this)||this;e.className="Grip";var i=new Br;e.layout="absolute",e.padding(10,10,10,10),e.margin(3,3,3,3),e.background.fillOpacity=.3,e.background.cornerRadius(10,10,10,10);var n=new hs;n.element=e.paper.add("path");var r=Vs({x:-6,y:0});return r+=Fs({x:6,y:0}),r+=Vs({x:-8,y:-6}),r+=Fs({x:0,y:-12}),r+=Fs({x:8,y:-6}),r+=Vs({x:-8,y:6}),r+=Fs({x:0,y:12}),r+=Fs({x:8,y:6}),n.path=r,n.strokeWidth=2,n.fillOpacity=0,n.pixelPerfect=!0,n.padding(0,4,0,4),n.stroke=i.getFor("text"),n.strokeOpacity=.7,n.align="center",n.valign="middle",e.icon=n,e.label.dispose(),e.label=void 0,e.position="right",e.autoHideDelay=3e3,e.events.on("shown",function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose(),e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout(function(){e.hide()},e.autoHideDelay))}),e.events.on("down",function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose()}),e.events.on("out",function(t){e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout(function(){e.hide()},e.autoHideDelay))}),e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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=g(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=g(30);break;case"top":this.align="center",this.valign="top",this.horizontalCenter="middle",this.verticalCenter="top",this.icon.rotation=90,this.width=g(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=g(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=g(30),this.height=void 0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoHideDelay",{get:function(){return this.getPropertyValue("autoHideDelay")},set:function(t){this.setPropertyValue("autoHideDelay",t)},enumerable:!0,configurable:!0}),e}(Ss);pe.registeredClasses.Grip=Vo;var Fo=function(t){function e(){var e=t.call(this)||this;return e.className="ChartDataItem",e.applyTheme(),e}return a(e,t),e}(_s),Mo=function(t){function e(){var i=t.call(this)||this;if(i._legend=new Ot,i.constructor===e)throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");i.className="Chart";var n=new ws;i.titles=new ve(n),i._disposers.push(new ge(i.titles)),i._disposers.push(n),i.width=g(100),i.height=g(100),i.layout="vertical";var r=i.createChild(ps);r.shouldClone=!1,r.layout="vertical",r.width=g(100),r.height=g(100),i.chartAndLegendContainer=r;var s=r.createChild(ps);return s.shouldClone=!1,s.width=g(100),s.height=g(100),i.chartContainer=s,i.showOnInit=!0,i._disposers.push(i._legend),i.titles.events.on("inserted",function(t){i.processTitle(t),i.updateReaderTitleReferences()},i,!1),i.titles.events.on("removed",function(t){i.updateReaderTitleReferences()},i,!1),i.role="region",i.defaultState.transitionDuration=1,i.applyTheme(),i}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Chart"))},e.prototype.draw=function(){this.fixLayout(),t.prototype.draw.call(this)},e.prototype.fixLayout=function(){var t=this.legend;if(t){var e=this.chartAndLegendContainer,i=this.chartContainer;switch(i.x=void 0,i.y=void 0,t.x=void 0,t.y=void 0,t.position){case"left":e.layout="horizontal",O(t.width)||(t.width=200),t.toBack();break;case"right":e.layout="horizontal",O(t.width)||(t.width=200),t.toFront();break;case"top":e.layout="vertical",t.maxWidth=void 0,t.width=g(100),t.toBack();break;case"bottom":e.layout="vertical",t.maxWidth=void 0,t.width=g(100),t.toFront()}}},e.prototype.feedLegend=function(){},e.prototype.processTitle=function(t){var e=t.newValue;return e.parent=this,e.toBack(),e.shouldClone=!1,e.align="center",e.uidAttr(),e},e.prototype.updateReaderTitleReferences=function(){if(this.titles.length){var t=[];Qt(this.titles.iterator(),function(e){t.push(e.uid)}),this.setSVGAttribute({"aria-labelledby":t.join(" ")})}else this.removeSVGAttribute("aria-labelledby")},Object.defineProperty(e.prototype,"legend",{get:function(){return this._legend.get()},set:function(t){this.setLegend(t)},enumerable:!0,configurable:!0}),e.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(t){"position"!=t.property&&"width"!=t.property||e.fixLayout()},void 0,!1))):this._legend.reset(),this.feedLegend())},e.prototype.dispose=function(){this.legend&&this.legend.dispose(),t.prototype.dispose.call(this)},e.prototype.processConfig=function(e){e&&w(e.legend)&&!w(e.legend.type)&&(e.legend.type="Legend"),t.prototype.processConfig.call(this,e)},e.prototype.copyFrom=function(e){this.titles.copyFrom(e.titles),e.legend&&(this.legend=e.legend.clone(),this.legend.removeChildren()),t.prototype.copyFrom.call(this,e)},Object.defineProperty(e.prototype,"dragGrip",{get:function(){var t=this;if(!this._dragGrip){var e=this.tooltipContainer.createChild(Vo);e.align="right",e.valign="middle",e.hide(0),e.events.on("down",function(e){e.touch&&(t.interactionsEnabled=!1)}),e.events.on("up",function(e){t.interactionsEnabled=!0}),this.events.on("down",function(t){t.touch&&e.show()}),this._dragGrip=e}return this._dragGrip},set:function(t){this._dragGrip=t},enumerable:!0,configurable:!0}),e}(Ps);pe.registeredClasses.Chart=Mo,bs.push({relevant:xs.widthXS,state:function(t,e){if(t instanceof Mo){var i=t.states.create(e);return t.pixelPaddingLeft>10&&(i.properties.paddingLeft=10),t.pixelPaddingRight>10&&(i.properties.paddingRight=10),i}return null}}),bs.push({relevant:xs.heightXS,state:function(t,e){if(t instanceof Mo){var i=t.states.create(e);return t.pixelPaddingTop>10&&(i.properties.paddingTop=10),t.pixelPaddingBottom>10&&(i.properties.paddingBottom=10),i}return null}}),bs.push({relevant:xs.widthXXS,state:function(t,e){if(t instanceof Mo){var i=t.states.create(e);return i.properties.paddingLeft=0,i.properties.paddingRight=0,i}return null}}),bs.push({relevant:xs.heightXXS,state:function(t,e){if(t instanceof Mo){var i=t.states.create(e);return i.properties.paddingTop=0,i.properties.paddingBottom=0,i}return null}});var jo=function(t){function e(){var e=t.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){this.setPropertyValue("locationX",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){this.setPropertyValue("locationY",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(t){this.setPropertyValue("xField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(t){this.setPropertyValue("yField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(t){this.setPropertyValue("isDynamic",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(t){this.setPropertyValue("copyToLegendMarker",t)},enumerable:!0,configurable:!0}),e}(ps);pe.registeredClasses.Bullet=jo,bs.push({relevant:xs.isXS,state:function(t,e){if(t instanceof jo){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var Eo=function(t){function e(){var e=t.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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 kt(function(){w(t.component)&&t.component.labels.removeValue(e)}))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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 kt(function(){w(t.component)&&t.component.valueLabels.removeValue(e)}))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemContainer",{get:function(){var t=this;if(!this._itemContainer){var e=this.component,i=e.itemContainers.create();this._itemContainer=i,this.addSprite(i),this._disposers.push(i),i.togglable&&i.events.on("toggled",function(t){e.toggleDataItem(t.target.dataItem)},void 0,!1),i.focusable&&(i.events.on("focus",function(t){e.focusedItem=t.target.dataItem},void 0,!1),i.events.on("blur",function(t){e.focusedItem=void 0},void 0,!1)),this._disposers.push(new kt(function(){w(t.component)&&t.component.itemContainers.removeValue(i)})),this.dataContext.uidAttr&&(i.readerControls=this.dataContext.uidAttr(),i.readerLabelledBy=this.dataContext.uidAttr());var n=this.dataContext;(n instanceof _s||n instanceof hs)&&!n.isDisposed()&&(i.addDisposer(n.events.on("visibilitychanged",function(t){i.readerChecked=t.visible,i.events.disableType("toggled"),i.isActive=!t.visible,i.events.enableType("toggled")},void 0,!1)),n.addDisposer(new kt(function(){t.component&&t.component.dataItems.remove(t)})),n instanceof hs&&(i.addDisposer(n.events.on("hidden",function(t){i.readerChecked=!1,i.events.disableType("toggled"),i.isActive=!0,i.events.enableType("toggled")},void 0,!1)),i.addDisposer(n.events.on("shown",function(t){i.readerChecked=!0,i.events.disableType("toggled"),i.isActive=!1,i.events.enableType("toggled")},void 0,!1))))}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.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 kt(function(){w(t.component)&&t.component.markers.removeValue(e)}))}return this._marker},enumerable:!0,configurable:!0}),e}(_s),Lo=function(){return function(){this.createMarker=!0}}(),Ro=function(t){function e(){var e=t.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("contentAlign","center");var i=new ps;i.applyOnClones=!0,i.padding(10,0,10,0),i.margin(0,10,0,0),i.layout="horizontal",i.clickable=!0,i.focusable=!0,i.role="switch",i.togglable=!0,i.cursorOverStyle=zr.pointer,i.background.fillOpacity=0,e.itemContainers=new ve(i),e._disposers.push(new ge(e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(Ir().body.events.on("keyup",function(t){vr.isKey(t.event,"enter")&&e.focusedItem&&e.focusedItem.itemContainer.clickable&&e.toggleDataItem(e.focusedItem)},e));var n=new Br,r=new ps;r.width=23,r.height=23,r.interactionsEnabled=!1,r.applyOnClones=!0,r.setStateOnChildren=!0,r.background.fillOpacity=0,r.background.strokeOpacity=0,r.propertyFields.fill="fill",r.valign="middle";var s=n.getFor("disabledBackground");r.events.on("childadded",function(t){var e=t.newValue.states.create("active");e.properties.stroke=s,e.properties.fill=s}),e.markers=new ve(r),e._disposers.push(new ge(e.markers)),e._disposers.push(e.markers.template);var o=r.createChild(Cs);o.width=g(100),o.height=g(100),o.applyOnClones=!0,o.propertyFields.fill="fill",o.strokeOpacity=0;var a=new ws;a.text="{name}",a.margin(0,5,0,5),a.valign="middle",a.applyOnClones=!0,a.states.create("active").properties.fill=n.getFor("disabledBackground"),e.labels=new ve(a),e._disposers.push(new ge(e.labels)),e._disposers.push(e.labels.template),a.interactionsEnabled=!1;var l=new ws;return l.margin(0,5,0,0),l.valign="middle",l.width=50,l.align="right",l.textAlign="end",l.applyOnClones=!0,l.states.create("active").properties.fill=n.getFor("disabledBackground"),l.interactionsEnabled=!1,e.valueLabels=new ve(l),e._disposers.push(new ge(e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",i.states.create("active"),i.setStateOnChildren=!0,e.role="group",e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},e.prototype.createDataItem=function(){return new Eo},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e);var i=e.itemContainer,n=e.marker;e.label;var r=e.valueLabel;i.parent=this,i.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var s=e.dataContext.legendSettings,o=e.dataContext;!o.createLegendMarker||this.useDefaultMarker&&o instanceof hs||e.childrenCreated||(o.createLegendMarker(n),e.childrenCreated=!0),o.updateLegendValue&&o.updateLegendValue(),r.invalid&&r.validate(),""==r.currentText||null==r.currentText?r.__disabled=!0:r.__disabled=!1,!s||null==s.itemValueText&&null==s.valueText||(r.__disabled=!1);var a=e.dataContext.visible;void 0===a&&(a=!0),a=b(a),e.dataContext.visible=a,i.events.disableType("toggled"),i.isActive=!a,i.events.enableType("toggled")},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t)&&("left"==t||"right"==t?(this.margin(10,20,10,20),this.valign="middle",this.itemContainers.template.width=g(100),this.valueLabels.template.width=g(100),this.labels.template.truncate=!0,this.labels.template.fullWords=!1):(this.itemContainers.template.width=void 0,this.itemContainers.template.maxWidth=void 0,this.valueLabels.template.width=50,this.labels.template.truncate=!1,this.width=g(100)),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(t){this.setPropertyValue("useDefaultMarker",t,!0)},enumerable:!0,configurable:!0}),e.prototype.toggleDataItem=function(t){var e=t.dataContext;!e.visible||e.isHiding||e instanceof hs&&e.isHidden?(t.color=t.colorOrig,t.itemContainer.isActive=!1,!0===e.hidden&&(e.hidden=!1),e.show?e.show():e.visible=!0):(t.itemContainer.isActive=!0,e.hide?e.hide():e.visible=!1,t.color=(new Br).getFor("disabledBackground"))},Object.defineProperty(e.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.handleDataItemPropertyChange=function(t,e){t.valueLabel.invalidate(),t.label.invalidate()},e}(Ps);pe.registeredClasses.Legend=Ro,bs.push({relevant:xs.widthXS,state:function(t,e){if(t instanceof Ro&&("left"==t.position||"right"==t.position)){var i=t.states.create(e);return i.properties.position="bottom",i}return null}}),bs.push({relevant:xs.heightXS,state:function(t,e){if(t instanceof Ro&&("top"==t.position||"bottom"==t.position)){var i=t.states.create(e);return i.properties.position="right",i}return null}}),bs.push({relevant:xs.isXS,state:function(t,e){if(t instanceof Ro){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var Bo=function(t){function e(){var e=t.call(this)||this;return e.bullets=new le,e.className="SeriesDataItem",e._disposers.push(new ae(e.bullets)),e.values.value={},e.values.value={},e.applyTheme(),e}return a(e,t),e.prototype.dispose=function(){this.bullets.clear(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),e}(_s),No=function(t){function e(){var i=t.call(this)||this;if(i._ignoreMinMax=!1,i._showBullets=!0,i.legendSettings=new Lo,i._tmin=new le,i._tmax=new le,i._smin=new le,i._smax=new le,i.dataItemsByAxis=new le,i.skipFocusThreshold=20,i.calculatePercent=!1,i.autoDispose=!0,i.simplifiedProcessing=!1,i.constructor===e)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");i.className="Series",i.isMeasured=!1,i.layout="none",i.shouldClone=!1,i.setPropertyValue("hidden",!1),i.axisRanges=new me,i.axisRanges.events.on("inserted",i.processAxisRange,i,!1),i.minBulletDistance=0,i.mainContainer=i.createChild(ps),i.mainContainer.shouldClone=!1,i.mainContainer.mask=i.createChild(hs),i._disposers.push(i.mainContainer);var n=i.mainContainer.createChild(ps);return i._shouldBeReady.push(n),n.shouldClone=!1,n.layout="none",n.virtualParent=i,i._disposers.push(n),i.bulletsContainer=n,i.tooltip=new to,i.tooltip.virtualParent=i,i._disposers.push(i.tooltip),i.hiddenState.transitionEasing=pn,i.dataItem=i.createDataItem(),i._disposers.push(i.dataItem),i.dataItem.component=i,i.role="group",i.applyTheme(),i}return a(e,t),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),ce.autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},e.prototype.createDataItem=function(){return new Bo},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){},e.prototype.processBullet=function(t){var e=t.newValue;e.isTemplate=!0,this.itemsFocusable()&&(e.focusable=!0)},e.prototype.removeBullet=function(t){var e=t.oldValue;this.dataItems.each(function(t){var i=t.bullets.getKey(e.uid);i&&i.dispose()}),this.invalidate()},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.processValues(!1)},e.prototype.getFirstValue=function(t,e){e>0&&e<this.dataItems.length-1&&e++;for(var i=e;i>=0;i--){var n=this.dataItems.getIndex(i).getActualWorkingValue(t);if(O(n))return n}return null},e.prototype.rangeChangeUpdate=function(){t.prototype.rangeChangeUpdate.call(this),this.processValues(!0)},e.prototype.processValues=function(t){var e=this;if(!this.simplifiedProcessing){var i=this.dataItems,n={},r={},s={},o={},a={},l={},h={},u={},p=X(0,this._workingStartIndex);p=z(p,this.dataItems.length);var c=z(this._workingEndIndex,this.dataItems.length);if(O(p)||(p=0),O(c)||(c=this.dataItems.length),p>0){var d=i.getIndex(p-1);zt(d.values,function(t,e){var i=d.getActualWorkingValue(t);O(i)&&(h[t]=i)})}for(var f=function(t){var c=i.getIndex(t);zt(c.values,function(t,i){var d=c.getActualWorkingValue(t);if(O(d)){O(n[t])||(n[t]=0),n[t]++,O(r[t])||(r[t]=0),r[t]+=d,O(a[t])||(a[t]=d),l[t]=d,O(s[t])?s[t]>d&&(s[t]=d):s[t]=d,O(o[t])?o[t]<d&&(o[t]=d):o[t]=d,O(u[t])||(u[t]=e.getFirstValue(t,p)),c.setCalculatedValue(t,d-u[t],"change"),c.setCalculatedValue(t,(d-u[t])/u[t]*100,"changePercent");var f=h[t];O(f)||(f=d),c.setCalculatedValue(t,d-f,"previousChange"),c.setCalculatedValue(t,(d-f)/f*100,"previousChangePercent"),h[t]=d}})},g=p;g<c;g++)f(g);if(this.calculatePercent){var y=function(t){var e=i.getIndex(t);zt(e.values,function(t){var i=r[t],n=e.getActualWorkingValue(t);if(O(n))if(i>0){n==i&&(i=e.values[t].value);var s=n/i*100;e.setCalculatedValue(t,s,"percent")}else e.setCalculatedValue(t,0,"percent")})};for(g=p;g<c;g++)y(g)}if(p>0){var m=i.getIndex(p-1);zt(m.values,function(t){var e=m.values[t].value;m.setCalculatedValue(t,e-a[t],"change"),m.setCalculatedValue(t,(e-a[t])/a[t]*100,"changePercent")})}var v=this.dataItem;zt(v.values,function(t){v.setCalculatedValue(t,r[t],"sum"),v.setCalculatedValue(t,r[t]/n[t],"average"),v.setCalculatedValue(t,a[t],"open"),v.setCalculatedValue(t,l[t],"close"),v.setCalculatedValue(t,s[t],"low"),v.setCalculatedValue(t,o[t],"high"),v.setCalculatedValue(t,n[t],"count")})}},e.prototype.validate=function(){Qt(this.axisRanges.iterator(),function(t){t.validate()}),t.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var i=0;i<this.startIndex;i++){(n=this.dataItems.getIndex(i))&&n.bullets.each(function(t,e){e.__disabled=!0})}for(i=this.dataItems.length-1;i>this.endIndex;i--){var n;(n=this.dataItems.getIndex(i))&&n.bullets.each(function(t,e){e.__disabled=!0})}}else this.bulletsContainer.children.each(function(t){t.__disabled=!0});this.updateTooltipBounds()},e.prototype.updateTooltipBounds=function(){this.topParent&&this.tooltip.setBounds({x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight})},e.prototype.shouldCreateBullet=function(t,e){return!0},e.prototype.validateDataElement=function(e){var i=this;t.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each(function(t){var n=e.bullets.getKey(t.uid);if(i.shouldCreateBullet(e,t)){if(!n){var r=t.propertyFields.disabled,s=e.dataContext;r&&s&&!1===s[r]?(t.applyOnClones=!1,t.disabled=!1,n=t.clone(),t.disabled=!0,t.applyOnClones=!0):n=t.clone(),n.shouldClone=!1,e.addSprite(n),i.visible&&!i.isHiding||n.hide(0)}var o=n.dataItem;if(o!=e){o&&o.bullets.setKey(t.uid,void 0);var a=i.itemReaderText;n instanceof jo&&(a||(a="{"+n.xField+"}: {"+n.yField+"}"),n.isDynamic&&(e.events.on("workingvaluechanged",n.deepInvalidate,n,!1),i.dataItem.events.on("workingvaluechanged",n.deepInvalidate,n,!1)),n.deepInvalidate()),n.focusable&&(n.events.on("focus",function(t){n.readerTitle=i.populateString(a,n.dataItem)},void 0,!1),n.events.on("blur",function(t){n.readerTitle=""},void 0,!1)),n.hoverable&&(n.events.on("over",function(t){n.readerTitle=i.populateString(a,n.dataItem)},void 0,!1),n.events.on("out",function(t){n.readerTitle=""},void 0,!1))}n.parent=i.bulletsContainer,e.bullets.setKey(t.uid,n),n.maxWidth=e.itemWidth,n.maxHeight=e.itemHeight,n.__disabled=!1,i.positionBullet(n)}})):this.bulletsContainer.visible=!1},e.prototype.handleDataItemWorkingValueChange=function(t,e){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){this._ignoreMinMax=t,this.invalidateDataItems()},enumerable:!0,configurable:!0}),e.prototype.createMask=function(){},e.prototype.processAxisRange=function(t){this.rangesContainer||(this.rangesContainer=this.createChild(ps),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var e=t.newValue;e&&(e.contents.parent=this.rangesContainer,e.isRange=!0)},e.prototype.getAxisField=function(t){},e.prototype.showTooltipAtPosition=function(t,e){},Object.defineProperty(e.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(t){this.setPropertyValue("minBulletDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new ve(new jo),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 ge(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){},Object.defineProperty(e.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(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},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(e.prototype,"itemReaderText",{get:function(){var t=this._itemReaderText;return t||(this.tooltipText?t=mi(this.tooltipText):this.tooltipHTML&&(t=mi(this.tooltipHTML))),this.adapter.apply("itemReaderText",t)},set:function(t){this._itemReaderText=t},enumerable:!0,configurable:!0}),e.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(t){if(this.legendDataItem){var e=this.legendSettings,i=this.legendDataItem,n=i.label,r=i.valueLabel;t?(r&&(e.itemValueText&&(r.text=e.itemValueText),r.dataItem=t),n&&(e.itemLabelText&&(n.text=e.itemLabelText),n.dataItem=t)):(n&&((e.labelText||null!=e.itemLabelText)&&(n.text=e.labelText),n.dataItem=this.dataItem),r&&((e.valueText||null!=e.itemValueText)&&(r.text=e.valueText),r.dataItem=this.dataItem))}},e.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.simplifiedProcessing=e.simplifiedProcessing,t.prototype.copyFrom.call(this,e)},e.prototype.raiseCriticalError=function(t){this._chart.modal.content=this._chart.adapter.apply("criticalError",t).message,this._chart.modal.closable=!1,this._chart.modal.open(),this._chart.disabled=!0,ce.verbose&&console.log(t)},e.prototype.applyFilters=function(){var e=this;t.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),Qt(this.filters.iterator(),function(t){e.bulletsContainer.filters.push(t.clone())})},Object.defineProperty(e.prototype,"heatRules",{get:function(){var t=this;return this._heatRules||(this._heatRules=new me,this._heatRules.events.on("inserted",function(e){var i=e.newValue,n=i.target;if(n){var r=i.dataField;w(r)||(r="value");var s=i.min,o=i.max,a=t.dataItem,l=i.property,h=x(i.minValue),u=x(i.maxValue);O(h)||O(u)||t.dataItem.events.on("calculatedvaluechanged",function(e){e.property==r&&Qt(t.dataItems.iterator(),function(t){var e=!1;yt(t.sprites,function(t){if(t.clonedFrom==n){var i=t;i[l]=i[l],e=!0}}),e||yt(t.sprites,function(t){t instanceof ps&&Qt(t.children.iterator(),function(t){if(t.className==n.className){var e=t;e[l]=e[l]}else t instanceof ps&&t.deepInvalidate()})})})}),t.dataItems.template.events.on("workingvaluechanged",function(t){if(t.property==r){var e=t.target,i=!1;yt(e.sprites,function(t){if(t.clonedFrom==n){var e=t;e[l]=e[l],i=!0}}),i||yt(e.sprites,function(t){t instanceof ps&&Qt(t.children.iterator(),function(t){if(t.className==n.className){var e=t;e[l]=e[l]}else t instanceof ps&&t.deepInvalidate()})})}}),n.adapter.add(l,function(t,e,n){var l=x(i.minValue),h=x(i.maxValue);if(e instanceof hs){var u=e.propertyFields[n];if(u&&e.dataItem){var p=e.dataItem.dataContext;if(p&&w(p[u]))return t}}var c=e.dataItem;if((O(l)||(l=a.values[r].low),O(h)||(h=a.values[r].high),c)&&c.values[r]){var d=c.getActualWorkingValue(r);if(w(s)&&w(o)&&O(l)&&O(h)&&O(d)){var f=(d-l)/(h-l);if(O(d)&&!O(f)&&(f=.5),O(s))return s+(o-s)*f;if(s instanceof je)return new je(Ae(s.rgb,o.rgb,f))}}return t})}})),this._heatRules},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){var i;if(e){if(w(e.bullets)&&D(e.bullets))for(var n=0,r=e.bullets.length;n<r;n++){var s=e.bullets[n];w(s.type)||(s.type="Bullet")}w(e.heatRules)&&D(e.heatRules)&&(i=e.heatRules,delete e.heatRules)}if(t.prototype.processConfig.call(this,e),i){for(n=0,r=i.length;n<r;n++){var o=i[n],a=this;if(w(o.target)&&T(o.target))if(this.map.hasKey(o.target))a=this.map.getKey(o.target);else for(var l=o.target.split("."),h=0;h<l.length;h++)if(a instanceof me){var u=a.getIndex(x(l[h]));a=u||a[l[h]]}else a=a[l[h]];o.target=a,w(o.min)&&(o.min=this.maybeColorOrPercent(o.min)),w(o.max)&&(o.max=this.maybeColorOrPercent(o.max))}t.prototype.processConfig.call(this,{heatRules:i})}},e.prototype.configOrder=function(e,i){return e==i?0:"heatRules"==e?1:"heatRules"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(Ps);pe.registeredClasses.Series=No,pe.registeredClasses.SeriesDataItem=Bo;var Ho=function(t){function e(){var e=t.call(this)||this;return e.className="SerialChartDataItem",e.applyTheme(),e}return a(e,t),e}(Fo),Wo=function(t){function e(){var e=t.call(this)||this;e.className="SerialChart",e.colors=new So;var i=e.chartContainer.createChild(ps);i.shouldClone=!1,i.width=g(100),i.height=g(100),i.isMeasured=!1,i.layout="none",i.zIndex=2,e.seriesContainer=i;var n=e.chartContainer.createChild(ps);return n.shouldClone=!1,n.width=g(100),n.height=g(100),n.isMeasured=!1,n.zIndex=3,n.layout="none",e.bulletsContainer=n,e.applyTheme(),e}return a(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.colors&&this.colors.dispose()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Serial chart"))},Object.defineProperty(e.prototype,"series",{get:function(){var t=this;return this._series||(this._series=new ve(this.createSeries()),this._series.events.on("inserted",function(e){t.handleSeriesAdded(e)},void 0,!1),this._series.events.on("removed",function(e){var i=e.oldValue;t.dataUsers.removeValue(i),t.dataUsers.each(function(t){t.invalidateDataItems()}),i.autoDispose&&i.dispose(),t.feedLegend()},void 0,!1),this._disposers.push(new ge(this._series)),this._disposers.push(this._series.template)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=this,i=t.newValue;i.isDisposed()||(i.chart=this,i.parent=this.seriesContainer,i.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(i),i.addDisposer(new kt(function(){e.dataUsers.removeValue(i)})),this.feedLegend())},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];Qt(this.series.iterator(),function(t){t.hiddenInLegend||e.push(t)}),t.dataFields.name="name",t.data=e}},e.prototype.createSeries=function(){return new No},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},e.prototype.appear=function(){t.prototype.appear.call(this),this.series.each(function(t){t.appear()})},e}(Mo);pe.registeredClasses.SerialChart=Wo;var Xo=function(t){function e(){var e=t.call(this)||this;e._axis=new Ot,e.dataItems=new me,e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var i=new Br,n=new oo;n.fill=i.getFor("background"),n.stroke=Ee(),n.fillOpacity=.9,n.zIndex=0,e._fillShape=n;var r=new oo;r.fill=Ee(),r.stroke=i.getFor("grid"),r.strokeOpacity=.3,r.zIndex=1,e._startLine=r;var s=new oo;return s.fill=Ee(),s.stroke=Ee("#000000"),s.strokeOpacity=.3,s.zIndex=2,e._endLine=s,e._disposers.push(e._axis),e.applyTheme(),e}return a(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(e.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(e.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(e.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}),e.prototype.addBreakSprite=function(t){t.parent=this,t.isMeasured=!1,this._disposers.push(t)},Object.defineProperty(e.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(e.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(e.prototype,"startPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.draw=function(){(t.prototype.draw.call(this),this.axis)&&this.axis.renderer.updateBreakElement(this)},Object.defineProperty(e.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(e.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}),e}(ps);pe.registeredClasses.AxisBreak=Xo;var zo,Yo=function(t){function e(){var e=t.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.grid).disabled)return;e=i.clone()}else{if((i=t.renderer.grid.template).disabled)return;e=t.renderer.grid.create(),this._disposers.push(new kt(function(){t.renderer.grid.removeValue(e)}))}this.grid=e,e.shouldClone=!1,this._disposers.push(e),e.axis=this.component}}return this._grid},set:function(t){this._grid&&this._grid!=t&&(mt(this.sprites,this._grid),this._grid.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(mt(t.dataItem.sprites,t),t.dataItem.grid=void 0),this.addSprite(t)),this._grid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){if(!this._tick){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.tick).disabled)return;e=i.clone()}else{if((i=t.renderer.ticks.template).disabled)return;e=t.renderer.ticks.create(),this._disposers.push(new kt(function(){t.renderer.ticks.removeValue(e)}))}this.tick=e,e.axis=this.component,e.shouldClone=!1,this._disposers.push(e)}}return this._tick},set:function(t){this._tick&&this._tick!=t&&(mt(this.sprites,this._tick),this._tick.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(mt(t.dataItem.sprites,t),t.dataItem.tick=void 0),this.addSprite(t)),this._tick=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){if(!this._label){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.label).disabled)return;e=i.clone()}else{if((i=t.renderer.labels.template).disabled)return;e=t.renderer.labels.create(),this._disposers.push(new kt(function(){t.renderer.labels.removeValue(e)}))}this._disposers.push(e),this.label=e,e.shouldClone=!1,e.axis=this.component,e.virtualParent=t}}return this._label},set:function(t){this._label&&this._label!=t&&(mt(this.sprites,this._label),this._label.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(mt(t.dataItem.sprites,t),t.dataItem.label=void 0),this.addSprite(t)),this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisFill",{get:function(){if(!this._axisFill){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.axisFill,!this.isTemplate&&i.disabled)return;e=i.clone()}else{if((i=t.renderer.axisFills.template).disabled)return;e=t.renderer.axisFills.create(),this._disposers.push(new kt(function(){t.renderer.axisFills.removeValue(e)}))}this.axisFill=e,e.shouldClone=!1,this._disposers.push(e)}}return this._axisFill},set:function(t){this._axisFill&&this._axisFill!=t&&(mt(this.sprites,this._axisFill),this._axisFill.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(mt(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(e.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(e.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contents",{get:function(){if(!this._contents){var t=new ps;this.addSprite(t),t.isMeasured=!1,this._contents=t;var e=this.component;if(e){var i=e.renderer.createFill(this.component);i.disabled=!1,i.axis=e,this.addSprite(i),this._mask=i,t.mask=i}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},e.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},e.prototype.configOrder=function(t,e){return t==e?0:"language"==t?-1:"language"==e?1:"component"==t?-1:"component"==e?1:0},e.prototype.hasProperty=function(e){return"component"==e||t.prototype.hasProperty.call(this,e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},e.prototype.setVisibility=function(e,i){t.prototype.setVisibility.call(this,e,i),this._contents&&(this._contents.visible=e)},Object.defineProperty(e.prototype,"bullet",{get:function(){return this._bullet},set:function(t){this._bullet&&this._bullet!=t&&(mt(this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=t,t&&this.addSprite(t)},enumerable:!0,configurable:!0}),e}(_s);!function(t){t[t.Start=0]="Start",t[t.Middle=.5]="Middle",t[t.End=1]="End"}(zo||(zo={}));var Uo=function(t){function e(){var i=t.call(this)||this;if(i._gridCount=10,i._series=new me,i.autoDispose=!0,i.constructor===e)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");i.className="Axis",i.shouldClone=!1,i.setPropertyValue("cursorTooltipEnabled",!0);var n=new Br;i.title=new ws,i.title.shouldClone=!1,i._disposers.push(i.title),i.setPropertyValue("startLocation",0),i.setPropertyValue("endLocation",1),i._dataItemsIterator=new re(i.dataItems,function(){return i.dataItems.create()}),i._dataItemsIterator.createNewItems=!0;var r=new to;i._disposers.push(r),r.label.padding(5,10,5,10),r.background.pointerLength=5,r.fitPointerToBounds=!0,r.background.filters.clear(),r.virtualParent=i;var s=r.background;return s.cornerRadius=0,s.fill=n.getFor("alternativeBackground"),s.stroke=s.fill,s.strokeWidth=1,s.fillOpacity=1,r.label.fill=n.getFor("alternativeText"),i.tooltip=r,i.applyTheme(),i}return a(e,t),e.prototype.fillRule=function(t,e){O(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)},e.prototype.createDataItem=function(){return new Yo},e.prototype.invalidateLayout=function(){t.prototype.invalidateLayout.call(this),Qt(this.series.iterator(),function(t){t.invalidateLayout()})},e.prototype.invalidateSeries=function(){Qt(this.series.iterator(),function(t){t.invalidate()})},e.prototype.validateDataElements=function(){this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},e.prototype.updateGridCount=function(){this.renderer&&(this._gridCount=this.axisLength/this.renderer.minGridDistance)},e.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),t.prototype.validateLayout.call(this),this.updateGridCount(),this.renderer.updateAxisLine(),this.renderer.updateTooltip(),this.renderer.updateBaseGridElement(),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},e.prototype.initRenderer=function(){},e.prototype.appendDataItem=function(t){var e=this.renderer,i=t.tick;i&&(i.above?i.parent=e.bulletsContainer:i.parent=e.gridContainer),t.label&&(t.label.parent=e);var n=t.grid;n&&(n.above?n.parent=e.bulletsContainer:n.parent=e.gridContainer);var r=t.axisFill;r&&(r.above?r.parent=e.bulletsContainer:r.parent=e.gridContainer),t.bullet&&(t.bullet.parent=e.bulletsContainer)},e.prototype.validate=function(){t.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},e.prototype.validateAxisRanges=function(){var t=this;Qt(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()})},e.prototype.validateBreaks=function(){Qt(this.axisBreaks.iterator(),function(t){t.invalidate()})},e.prototype.processBreak=function(t){var e=t.newValue;e.parent=this.renderer.breakContainer,e.axis=this},e.prototype.registerSeries=function(t){var e=this;return this.series.moveValue(t),new Tt([new kt(function(){e.series.removeValue(t)}),this.events.on("lengthchanged",t.invalidate,t,!1),this.events.on("startchanged",t.invalidate,t,!1),this.events.on("endchanged",t.invalidate,t,!1)])},Object.defineProperty(e.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}),e.prototype.positionToAngle=function(t){return this.renderer.positionToAngle(t)},e.prototype.pointToPosition=function(t){return this.renderer.pointToPosition(t)},e.prototype.getAnyRangePath=function(t,e){return this.renderer.getPositionRangePath(t,e)},e.prototype.anyToPosition=function(t){return 0},e.prototype.anyToPoint=function(t){return{x:0,y:0,angle:0}},e.prototype.getPositionRangePath=function(t,e){return this.renderer.getPositionRangePath(t,e)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.renderer.axisLength},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)&&t&&this.renderer&&this.renderer.updateTooltip()},enumerable:!0,configurable:!0}),e.prototype.showTooltipAtPosition=function(t,e){var i=this._tooltip;if(e||(t=this.toAxisPosition(t)),!O(t)||t<0||t>1)i.hide(0);else{var n=this.renderer;if(i&&this.dataItems.length>0){i&&!i.parent&&(i.parent=this.tooltipContainer);var r=n.tooltipLocation;0==r&&(r=.001);var s=this.getCellStartPosition(t),o=this.getCellEndPosition(t);"fixed"==this.tooltipPosition&&(t=s+(o-s)*r),t=B(t,this.start,this.end);var a=n.positionToPoint(s),l=n.positionToPoint(o);this.currentItemStartPoint=a,this.currentItemEndPoint=l,n.fullWidthTooltip&&(i.width=l.x-a.x,i.height=l.y-a.y);var h=Ai(n.positionToPoint(t),this.renderer.line);i.text=this.getTooltipText(t),i.text&&(i.pointTo(h),i.show()),this.cursorTooltipEnabled||i.hide(0)}}},e.prototype.toAxisPosition=function(t){if(null!=(t=this.renderer.toAxisPosition(t)))return t*=this.end-this.start,t=this.renderer.inversed?this.end-t:this.start+t},e.prototype.toGlobalPosition=function(t){return this.renderer.inversed?t=this.end-t:t-=this.start,t/(this.end-this.start)},e.prototype.getTooltipText=function(t){},e.prototype.updateTooltip=function(t,e){var i=this._tooltip;i&&(i.pointerOrientation=t,i.setBounds(Mi(e,this.renderer.line)))},e.prototype.roundPosition=function(t,e){return t},e.prototype.getCellStartPosition=function(t){return t},e.prototype.getCellEndPosition=function(t){return t},Object.defineProperty(e.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 ve(t),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new ge(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),e.prototype.processAxisRange=function(t){var e=t.newValue;e.component=this,e.isRange=!0},Object.defineProperty(e.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new Pe(this.createAxisBreak(),function(t,e){return we(t.adjustedStartValue,e.adjustedStartValue)}),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new ge(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),e.prototype.createAxisBreak=function(){return new Xo},Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new me),this._series},enumerable:!0,configurable:!0}),e.prototype.processSeriesDataItems=function(){},e.prototype.processSeriesDataItem=function(t,e){},e.prototype.postProcessSeriesDataItems=function(){},e.prototype.postProcessSeriesDataItem=function(t){},e.prototype.updateAxisBySeries=function(){},e.prototype.hideUnusedDataItems=function(){var t=this,e=this._dataItemsIterator;e.createNewItems=!1,Qt(e.iterator(),function(e){t.validateDataElement(e),e.__disabled=!0}),e.clear(),e.createNewItems=!0},e.prototype.getSeriesDataItem=function(t,e,i){},e.prototype.getAngle=function(t,e,i,n){},e.prototype.getX=function(t,e,i,n){},e.prototype.getY=function(t,e,i,n){},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.dataChangeUpdate=function(){},e.prototype.seriesDataChangeUpdate=function(t){},e.prototype.adjustDifference=function(t,e){var i=e-t;if(O(i))return Jt(this.axisBreaks.iterator(),function(n){var r=n.adjustedStartValue,s=n.adjustedEndValue;if(O(r)&&O(s)){if(r>e)return!1;if(s>=t&&O(r)&&O(s)){var o=n.breakSize,a=K({start:r,end:s},{start:t,end:e});a&&(i-=(a.end-a.start)*(1-o))}return!0}}),i},e.prototype.isInBreak=function(t){return e=this.axisBreaks.iterator(),i=function(e){return t>=e.adjustedStartValue&&t<=e.adjustedEndValue},e(function(t){return!i(t)||(n=t,!1)}),n;var e,i,n},e.prototype.fixAxisBreaks=function(){var t=this,e=this.axisBreaks;if(e.length>0){yt($t(e.iterator()),function(e){var i=z(e.startValue,e.endValue),n=X(e.startValue,e.endValue);e.adjustedStartValue=i,e.adjustedEndValue=n,t.axisBreaks.update(e)});var i=e.first,n=Math.min(i.startValue,i.endValue);Qt(this.axisBreaks.iterator(),function(t){var e=t.adjustedStartValue,i=t.adjustedEndValue;e<n&&(e=n,i<n&&(i=n)),t.adjustedStartValue=e,t.adjustedEndValue=i})}},Object.defineProperty(e.prototype,"startIndex",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this.dataItems.length},set:function(t){},enumerable:!0,configurable:!0}),e.prototype.getPositionLabel=function(t){return Math.round(100*t)+"%x"},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.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,t.axisRanges.push(e),e},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.renderer?this.renderer.copyFrom(e.renderer):e.renderer&&(this.renderer=e.renderer.clone(),this._disposers.push(this.renderer)),e.title&&(this.title=e.title.clone(),this._disposers.push(this.title))},e.prototype.resetIterators=function(){this._dataItemsIterator.reset()},e.prototype.processConfig=function(e){if(e&&w(e.axisRanges)&&D(e.axisRanges))for(var i=0,n=e.axisRanges.length;i<n;i++){var r=e.axisRanges[i];w(r.series)&&T(r.series)&&this.map.hasKey(r.series)&&(e.axisRanges[i]=this.createSeriesRange(this.map.getKey(r.series)),delete r.series,e.axisRanges[i].config=r)}t.prototype.processConfig.call(this,e)},Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.renderer&&(this.renderer.gridContainer.disabled=e),i},e}(Ps);pe.registeredClasses.Axis=Uo,pe.registeredClasses.AxisDataItem=Yo,bs.push({relevant:xs.maybeXS,state:function(t,e){if(t instanceof Uo&&t.tooltip){var i=t.states.create(e);return i.properties.cursorTooltipEnabled=!1,i}return null}});var Go=function(t){function e(){var e=t.call(this)||this;e.className="AxisLine",e.element=e.paper.add("path");var i=new Br;return e.stroke=i.getFor("grid"),e.strokeOpacity=.15,e.pixelPerfect=!0,e.fill=Ee(),e.applyTheme(),e.interactionsEnabled=!1,e}return a(e,t),e}(hs);pe.registeredClasses.AxisLine=Go;var Ko=function(t){function e(e){var i=t.call(this)||this;i.axis=e,i.element=i.paper.add("path"),i.className="AxisFill",i.isMeasured=!1,i.location=0,i.above=!1;var n=new Br;return i.fill=n.getFor("alternativeBackground"),i.fillOpacity=0,i.applyTheme(),i}return a(e,t),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e.prototype.draw=function(){t.prototype.draw.call(this),this.axis&&O(this.startPosition)&&O(this.endPosition)&&(this.fillPath=this.axis.getPositionRangePath(this.startPosition,this.endPosition),this.path=this.fillPath)},Object.defineProperty(e.prototype,"startPosition",{get:function(){return this.getPropertyValue("startPosition")},set:function(t){this.setPropertyValue("startPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){return this.getPropertyValue("endPosition")},set:function(t){this.setPropertyValue("endPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setPath=function(t){return!!this.setPropertyValue("path",t)&&(this.element.attr({d:t}),!0)},Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e}(hs);pe.registeredClasses.AxisFill=Ko;var qo=function(t){function e(){var e=t.call(this)||this;e.className="Grid",e.element=e.paper.add("path"),e.location=.5,e.isMeasured=!1,e.above=!1;var i=new Br;return e.stroke=i.getFor("grid"),e.pixelPerfect=!0,e.strokeOpacity=.15,e.fill=Ee(),e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(hs);pe.registeredClasses.Grid=qo,bs.push({relevant:xs.maybeXS,state:function(t,e){if(t instanceof qo){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var Zo=function(t){function e(){var e=t.call(this)||this;return e.className="AxisLabel",e.isMeasured=!1,e.padding(10,10,10,10),e.location=.5,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(ws);pe.registeredClasses.AxisLabel=Zo;var $o=function(t){function e(){var e=t.call(this)||this;e.className="Tick";var i=new Br;return e.fillOpacity=0,e.length=6,e.strokeOpacity=.2,e.stroke=i.getFor("grid"),e.isMeasured=!1,e.nonScalingStroke=!0,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"length",{get:function(){return this.disabled?0:this.getPropertyValue("length")},set:function(t){this.setPropertyValue("length",t,!0)},enumerable:!0,configurable:!0}),e}(hs);pe.registeredClasses.Tick=$o;var Jo=function(t){function e(){var e=t.call(this)||this;return e.className="AxisTick",e.element=e.paper.add("path"),e.location=.5,e.above=!1,e.isMeasured=!1,e.pixelPerfect=!0,e.strokeOpacity=0,e.length=5,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}($o);pe.registeredClasses.AxisTick=Jo;var Qo=function(t){function e(){var e=t.call(this)||this;e._chart=new Ot,e.className="AxisRenderer",e.minGridDistance=50,e.inside=!1,e.inversed=!1,e.tooltipLocation=.5,e.fullWidthTooltip=!1,e.cellStartLocation=0,e.cellEndLocation=1,e.minLabelPosition=0,e.maxLabelPosition=1,e.shouldClone=!1;var i=e.createChild(ps);i.shouldClone=!1,i.layout="none",i.virtualParent=e,i.width=g(100),i.height=g(100),e.gridContainer=i,i.events.on("maxsizechanged",function(){e.inited&&e.invalidateAxisItems()},e,!1);var n=e.createChild(ps);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",n.width=g(100),n.height=g(100),e.breakContainer=n;var r=e.createChild(ps);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",r.width=g(100),r.height=g(100),e.bulletsContainer=r,e.line=e.createChild(Go),e.line.shouldClone=!1,e.line.strokeOpacity=0;var s=e.createChild(qo);s.shouldClone=!1,e.baseGrid=s;var o=e._disposers;return o.push(s),o.push(e.line),o.push(i),o.push(n),o.push(r),o.push(e._chart),e.ticks.template.disabled=!0,e.axisFills.template.disabled=!0,e.axisFills.template.interactionsEnabled=!1,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis},set:function(t){this.setAxis(t)},enumerable:!0,configurable:!0}),e.prototype.setAxis=function(t){this._axis=t,this.baseGrid.parent=t,this.line.parent=t,this.gridContainer.bind("opacity",t)},e.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},e.prototype.updateTooltip=function(){},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 0},enumerable:!0,configurable:!0}),e.prototype.positionItem=function(t,e){t&&t.moveTo(e)},e.prototype.positionToPoint=function(t){return{x:0,y:0}},e.prototype.positionToAngle=function(t){return 0},e.prototype.positionToCoordinate=function(t){var e=this.axis,i=e.axisFullLength;return e.renderer.inversed?(e.end-t)*i:(t-e.start)*i},e.prototype.updateGridContainer=function(){},e.prototype.getHeight=function(){var t=this.axis;if(t&&t.chart){var e=this.axis.chart;if(e.plotContainer)return e.plotContainer.pixelHeight||0}return this.gridContainer.pixelHeight||0},e.prototype.getWidth=function(){var t=this.axis;if(t&&t.chart){var e=this.axis.chart;if(e.plotContainer)return e.plotContainer.pixelWidth||0}return this.gridContainer.pixelWidth||0},e.prototype.coordinateToPosition=function(t){var e=this.axis,i=e.axisFullLength;return E(e.renderer.inversed?e.end-t/i:t/i+e.start,5)},e.prototype.pointToPosition=function(t){return 0},e.prototype.getPositionRangePath=function(t,e){return""},e.prototype.invalidateAxisItems=function(){var t=this.axis;t&&t.invalidateDataItems()},e.prototype.updateGridElement=function(t,e,i){},e.prototype.updateTickElement=function(t,e,i){},e.prototype.updateBullet=function(t,e,i){},e.prototype.updateLabelElement=function(t,e,i,n){},e.prototype.updateFillElement=function(t,e,i){t.startPosition=e,t.endPosition=i},e.prototype.updateAxisLine=function(){},e.prototype.updateBaseGridElement=function(){},e.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(e.prototype,"minGridDistance",{get:function(){return this.getPropertyValue("minGridDistance")},set:function(t){this.setPropertyValue("minGridDistance",t)&&this.axis&&this.axis.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e.prototype.toggleVisibility=function(t,e,i,n){var r=this.axis,s=t.dataItem;s&&s instanceof Yo&&(O(s.minPosition)&&(i=s.minPosition),O(s.maxPosition)&&(n=s.maxPosition));var o=r.start+(r.end-r.start)*(i-1e-4),a=r.start+(r.end-r.start)*(n+1e-4);t.disabled||(t.__disabled=e<o||e>a)},e.prototype.createBreakSprites=function(t){},Object.defineProperty(e.prototype,"axisFills",{get:function(){if(!this._axisFills){var t=this.createFill(this.axis);this._axisFills=new ve(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new ge(this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),e.prototype.createFill=function(t){return new Ko(t)},Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.createGrid();this._grid=new ve(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new ge(this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),e.prototype.createGrid=function(){return new qo},Object.defineProperty(e.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 ve(t),this._disposers.push(new ge(this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),e.prototype.createTick=function(){return new Jo},Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();this._labels=new ve(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new ge(this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createLabel=function(){return new Zo},Object.defineProperty(e.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(e.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(t){this.setPropertyValue("opposite",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(t){this.setPropertyValue("fullWidthTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(t){this.setPropertyValue("inversed",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(t){this.setPropertyValue("minLabelPosition",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(t){this.setPropertyValue("maxLabelPosition",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},e.prototype.toAxisPosition=function(t){return t},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(ps);pe.registeredClasses.AxisRenderer=Qo;var ta=function(t){function e(){var e=t.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(ps);pe.registeredClasses.AxisBullet=ta;var ea=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=g(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return a(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="horizontal"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.y=t.pixelY,e.height=t.pixelHeight}},e.prototype.toAxisPosition=function(t){var e=1-t,i=this.axis,n=i.parent;return i&&n?1-(e-i.pixelY/n.innerHeight)/(i.pixelHeight/n.innerHeight):t},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){var i=e.title;i.valign="middle",e.height instanceof f||(e.height=g(100)),this.opposite?(i.rotation=90,this.line.toBack(),i.toFront()):(i.rotation=-90,i.toBack(),this.line.toFront())}},e.prototype.updateTooltip=function(){if(this.axis){var t=0,e=2e3,i=this.axisLength;this.opposite?this.inside&&(t=-2e3,e=2e3):this.inside||(t=-2e3,e=2e3),this.axis.updateTooltip("horizontal",{x:t,y:0,width:e,height:i})}},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredHeight-t.pixelPaddingTop-t.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){return{x:0,y:this.positionToCoordinate(t)}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.y)},e.prototype.getPositionRangePath=function(t,e){var i=B(this.positionToCoordinate(t),0,this.axisLength),n=B(this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),s=this.getWidth();return Ns({x:0,y:Math.min(i,n),width:s,height:r},!0)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=Vs({x:0,y:0})+Fs({x:this.getWidth(),y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;try{this.axis.title.measuredWidth}catch(t){}n.x=Vi({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?r*=t.inside?-1:1:r*=t.inside?1:-1,t.path=Vs({x:0,y:0})+Fs({x:r,y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=Vs({x:0,y:0})+Fs({x:0,y:this.axisLength})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getWidth(),n=this.pixelHeight,r=e.basePoint.y,s=this.baseGrid;if(r<-.2||r>n+.2)s.hide(0);else{var o=Vi({x:0,y:0},this.gridContainer,s.parent).x;s.path=Vs({x:0,y:0})+Fs({x:i,y:0}),s.moveTo({x:o,y:r}),s.show(0)}},e.prototype.updateLabelElement=function(t,e,i,n){w(n)||(n=t.location),e+=(i-e)*n,t.isMeasured=!t.inside;var r,s=this.positionToPoint(e),o=0;this.opposite?(t.inside?(r="right","left"==t.align&&(o=-this.gridContainer.maxWidth,r="left")):r="left",s.x=0+o):(t.inside?(r="left","right"==t.align&&(o=this.gridContainer.maxWidth,r="right")):r="right",s.x=this.measuredWidth+o),0==t.rotation&&(t.horizontalCenter=r),this.positionItem(t,s),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,s=e.startPoint,o=e.endPoint,a=e.pixelMarginLeft,l=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;s.y=B(s.y,-1,this.pixelHeight+1),o.y=B(o.y,-1,this.pixelHeight+1),s.y==o.y&&(s.y<0||s.y>this.pixelHeight)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1;var h=Math.abs(l-a);i.x=a,i.height=0,i.width=h,n.x=a,n.height=0,n.width=h,r.width=h,r.height=Math.abs(o.y-s.y),r.x=a,r.y=o.y},e.prototype.createBreakSprites=function(t){t.startLine=new oo,t.endLine=new oo;var e=new ao;e.setWavedSides(!0,!1,!0,!1),t.fillShape=e},e.prototype.positionToCoordinate=function(t){var e=this.axis,i=e.axisFullLength;return E(e.renderer.inversed?(t-e.start)*i:(e.end-t)*i,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof ta&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.x=Vi({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(Qo);pe.registeredClasses.AxisRendererY=ea,bs.push({relevant:xs.widthS,state:function(t,e){if(t instanceof ea){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),bs.push({relevant:xs.widthXS,state:function(t,e){if(t instanceof ea){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var ia=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),e}(Xo);pe.registeredClasses.ValueAxisBreak=ia;var na=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(t){this.setValue("endValue",t)},enumerable:!0,configurable:!0}),e}(Yo),ra=function(t){function e(){var e=t.call(this)||this;return e._stepDecimalPlaces=0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return a(e,t),e.prototype.fillRule=function(t){var e=t.value,i=t.component;t.axisFill.disabled||(E(e/i.step/2,5)==Math.round(e/i.step/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new na},e.prototype.createAxisBreak=function(){return new ia},e.prototype.dataChangeUpdate=function(){this.keepSelection?(0!=this._start&&this.dispatchImmediately("startchanged"),1!=this._end&&this.dispatchImmediately("endchanged"),0==this._start&&1==this._end||this.dispatchImmediately("startendchanged")):0==this._start&&1==this._end||(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},e.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var t=this.series.getIndex(0),e=t.startIndex;if(t.dataItems.length>0){e>0&&e--;var i=t.endIndex;i<t.dataItems.length&&i++;for(var n=function(t){var e={};r.series.each(function(i){if(!i.excludeFromTotal){var n=i.dataItems.getIndex(t);n&&zt(n.values,function(t){var i=n.values[t].workingValue;O(i)&&(O(e[t])?e[t]+=Math.abs(i):e[t]=Math.abs(i))})}}),r.series.each(function(i){if(!i.excludeFromTotal){var n=i.dataItems.getIndex(t);n&&zt(n.values,function(t){var i=n.values[t].workingValue;O(i)&&(n.setCalculatedValue(t,e[t],"total"),n.setCalculatedValue(t,100*i/e[t],"totalPercent"))})}})},r=this,s=e;s<i;++s)n(s)}}},e.prototype.validate=function(){this.axisLength<=0||(t.prototype.validate.call(this),this.getMinMax(),this.fixAxisBreaks(),this.calculateZoom(),this.validateAxisElements(),this.validateAxisRanges(),this.validateBreaks(),this.hideUnusedDataItems(),this.renderer.invalidateLayout())},e.prototype.calculateZoom=function(){if(O(this.min)&&O(this.max)){var t=this.positionToValue(this.start),e=this.positionToValue(this.end),i=this.adjustDifference(t,e),n=this.adjustMinMax(t,e,i,this._gridCount,!0);t=n.min,e=n.max,this._adjustedStart=E((t-this.min)/(this.max-this.min),5),this._adjustedEnd=E((e-this.min)/(this.max-this.min),5),this._step=n.step,this._stepDecimalPlaces=Hi(this._step),this._minZoomed==t&&this._maxZoomed==e||(this._minZoomed=t,this._maxZoomed=e,this.dispatchImmediately("selectionextremeschanged"))}else this._adjustedStart=this.start,this._adjustedEnd=this.end},e.prototype.validateAxisElements=function(){var t=this;if(O(this.max)&&O(this.min)){var e=this.minZoomed-2*this._step;if(this.logarithmic)Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E):0==(e=Math.floor(this.minZoomed/this._step)*this._step)&&(e=this.minZoomed);else e=Math.floor(e/this._step)*this._step;var i=this._maxZoomed+this._step;this.resetIterators();for(var n=this._dataItemsIterator,r=0;e<=i;){if(!this.isInBreak(e)){var s=n.find(function(t){return t.value===e});s.__disabled&&(s.__disabled=!1),this.appendDataItem(s),s.axisBreak=void 0,s.value!=e&&(s.value=e,s.text=this.formatLabel(e),s.label&&s.label.invalid&&s.label.validate(),s.value>this.min&&s.value<this.max&&s.label&&(s.label.measuredWidth>this.ghostLabel.measuredWidth||s.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=s.label.currentText)),this.validateDataElement(s)}if(r++,this.logarithmic)Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E+r):e+=this._step;else e+=this._step;var o=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(o<1){var a=Math.round(Math.abs(Math.log(Math.abs(o))*Math.LOG10E))+2;e=E(e,a)}}var l=this.axisBreaks,h=this.renderer;Qt(l.iterator(),function(e){if(e.breakSize>0&&q(e.startPoint,e.endPoint)>h.minGridDistance)for(var i=e.adjustedMin;i<=e.adjustedMax;){if(i>=e.adjustedStartValue&&i<=e.adjustedEndValue){var r=n.find(function(t){return t.value===i});r.__disabled&&(r.__disabled=!1),t.appendDataItem(r),r.axisBreak=e,r.value!=i&&(r.value=i,r.text=t.formatLabel(i),r.label&&r.label.invalid&&r.label.validate()),t.validateDataElement(r)}i+=e.adjustedStep}})}},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e);var i=this.renderer,n=e.value,r=e.endValue,s=this.valueToPosition(n);e.position=s;var o=s,a=this.valueToPosition(n+this._step);O(r)&&(a=o=this.valueToPosition(r)),e.point=i.positionToPoint(s);var l=e.tick;l&&!l.disabled&&i.updateTickElement(l,s,o);var h=e.grid;h&&!h.disabled&&i.updateGridElement(h,s,o);var u=e.label;u&&!u.disabled&&i.updateLabelElement(u,s,o);var p=e.axisFill;p&&!p.disabled&&(i.updateFillElement(p,s,a),e.isRange||this.fillRule(e)),e.bullet&&i.updateBullet(e.bullet,s,o);var c=e.mask;c&&i.updateFillElement(c,s,a)},e.prototype.formatLabel=function(t){return this.numberFormatter.format(t)},Object.defineProperty(e.prototype,"basePoint",{get:function(){var t=this._baseValue,e=this.valueToPosition(t);return this.renderer.positionToPoint(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseValue",{get:function(){return this.logarithmic?this.min:this._baseValue},set:function(t){this._baseValue=t,this.invalidateLayout()},enumerable:!0,configurable:!0}),e.prototype.anyToPosition=function(t){return this.valueToPosition(t)},e.prototype.valueToPoint=function(t){var e=this.valueToPosition(t),i=this.renderer.positionToPoint(e),n=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:n}},e.prototype.anyToPoint=function(t){return this.valueToPoint(t)},e.prototype.valueToPosition=function(t){if(O(t)){var e=this.min,i=this.max;if(O(e)&&O(i)){var n=this._difference,r=this.axisBreaks;r.length>0&&Jt(r.iterator(),function(n){var r=n.adjustedStartValue,s=n.adjustedEndValue;if(O(r)&&O(s)){if(t<r)return!1;if(U({start:r,end:s},{start:e,end:i})){r=Math.max(r,e),s=Math.min(s,i);var o=n.breakSize;t>s?e+=(s-r)*(1-o):t<r||(t=r+(t-r)*o)}}return!0});return this.logarithmic?(Math.log(t)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)/(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E):(t-e)/n}}return 0},e.prototype.positionToValue=function(t){t=E(t,10);var e=this.min,i=this.max;if(O(e)&&O(i)){var n=i-e,r=this.axisBreaks,s=null;return r.length>0&&Jt(r.iterator(),function(r){var o=r.startPosition,a=r.endPosition,l=r.adjustedStartValue,h=r.adjustedEndValue;if(O(l)&&O(h)){if(l>i)return!1;if(U({start:l,end:h},{start:e,end:i})){l=X(l,e),h=z(h,i);var u=r.breakSize;if(n-=(h-l)*(1-u),t>a)e+=(h-l)*(1-u);else if(!(t<o))return s=l+(t-o)/(a-o)*(h-l),!1}return!0}}),O(s)||(s=this.logarithmic?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):t*n+e),s}},e.prototype.xToValue=function(t){return this.positionToValue(this.pointToPosition({x:t,y:0}))},e.prototype.yToValue=function(t){return this.positionToValue(this.pointToPosition({x:0,y:t}))},e.prototype.pointToPosition=function(t){return this.renderer instanceof ea?1-this.renderer.pointToPosition(t):this.renderer.pointToPosition(t)},e.prototype.getMinMax=function(){var t=this;this.updateGridCount();var e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;if(O(this._minDefined)&&O(this._maxDefined)||(this.series.each(function(n){if(!n.ignoreMinMax){var r=n.min(t);O(r)&&r<e&&(e=r);var s=n.max(t);O(s)&&s>i&&(i=s)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(t){if(!t.ignoreMinMax){var n=z(t.value,t.endValue),r=X(t.value,t.endValue);(n<e||!O(e))&&(e=n),(r>i||!O(i))&&(i=r)}})),this.logarithmic&&e<=0)throw Error("Logarithmic value axis can not have vales <= 0.");if(0==e&&0==i&&(i=.9,e=-.9),O(this._minDefined)&&(e=this._minDefined),O(this._maxDefined)&&(i=this._maxDefined),O(e)&&O(i)){this._minReal=e,this._maxReal=i,e==Number.POSITIVE_INFINITY&&(e=void 0),i==Number.NEGATIVE_INFINITY&&(i=void 0);var n=this.adjustDifference(e,i);e=this.fixMin(e),(i=this.fixMax(i))-e<=1e-8&&(this._deltaMinMax=i-e!=0?1e-8:1,e-=this._deltaMinMax,i+=this._deltaMinMax),e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax;var r=this.strictMinMax;O(this._maxDefined)&&(r=!0);var s=this.adjustMinMax(e,i,n,this._gridCount,r);if(e=s.min,n=(i=s.max)-e,s=this.adjustMinMax(e,i,i-e,this._gridCount,!0),e=s.min,i=s.max,this.strictMinMax&&(e=O(this._minDefined)?this._minDefined:this._minReal,(i=O(this._maxDefined)?this._maxDefined:this._maxReal)-e<=1e-8&&(e-=this._deltaMinMax,i+=this._deltaMinMax)),(this._minAdjusted!=e||this._maxAdjusted!=i)&&O(e)&&O(i)){var o=this._minMaxAnimation;if(this._extremesChanged&&O(this._minAdjusted)&&O(this._maxAdjusted)&&this.inited){if(o&&!o.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._finalMin=e,this._finalMax=i,(o=this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:e},{property:"_maxAdjusted",from:this._maxAdjusted,to:i}],this.rangeChangeDuration))&&!o.isFinished()?(o.events.on("animationprogress",this.validateDataItems,this),o.events.on("animationended",function(){t.validateDataItems(),t.series.each(function(t){t.validate()}),t.handleSelectionExtremesChange()}),this._minMaxAnimation=o):this.series.each(function(t){t.validate()}),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(o&&!o.isFinished()&&this._finalMax==i&&this._finalMin==e)return this._minAdjusted=e,void(this._maxAdjusted=i);this._minAdjusted=e,this._maxAdjusted=i,this._finalMin=e,this._finalMax=i,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged")}}this._extremesChanged=!1,this._difference=this.adjustDifference(e,i)}},e.prototype.fixMin=function(t){return t},e.prototype.fixMax=function(t){return t},e.prototype.adjustMinMax=function(t,e,i,n,r){n<=1&&(n=1),n=Math.round(n);var s=t,o=e;0===i&&(i=Math.abs(e));var a=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(a)),h=l/=10;r&&(h=0),this.logarithmic?(t<=0&&(t=this.baseValue),t==1/0&&(t=1),e==-1/0&&(e=10),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))):(r?(t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l):(t=Math.ceil(t/l)*l-h,e=Math.floor(e/l)*l+h),t<0&&s>=0&&(t=0),e>0&&o<=0&&(e=0)),a=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(a)),l/=10;var u=Math.ceil(i/n/l)*l,p=Math.pow(10,Math.floor(Math.log(Math.abs(u))*Math.LOG10E)),c=Math.ceil(u/p);c>5?c=10:c<=5&&c>2&&(c=5),u=Math.ceil(u/(p*c))*p*c,this.maxPrecision<Number.MAX_VALUE&&u!=L(u,this.maxPrecision)&&(u=L(u,this.maxPrecision));var d=0;if(p<1&&(u=E(u,d=Math.round(Math.abs(Math.log(Math.abs(p))*Math.LOG10E))+1)),!this.logarithmic){var f=Math.floor(t/u);t=E(u*f,d);var g=void 0;(g=r?Math.floor(e/u):Math.ceil(e/u))==f&&g++,(e=E(u*g,d))<o&&(e+=u),t>s&&(t-=u)}return{min:t,max:e,step:u}},Object.defineProperty(e.prototype,"min",{get:function(){var t=this._minAdjusted;return O(t)||(t=this._minDefined),t},set:function(t){this._minDefined!=t&&(this._minDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(t){this.setPropertyValue("extraMin",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(t){this.setPropertyValue("extraMax",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){var t=this._maxAdjusted;return O(t)||(t=this._maxDefined),t},set:function(t){this._maxDefined!=t&&(this._maxDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.registerSeries=function(e){return new Tt([t.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},e.prototype.handleSelectionExtremesChange=function(){var t,e,i=this,n=!0;if(Qt(this.series.iterator(),function(r){if(!r.ignoreMinMax&&!r.isHidden){r.visible&&!r.isHiding&&(n=!1);var s=r.selectionMin(i),o=r.selectionMax(i);O(s)&&(!O(t)||s<t)&&(t=s),O(o)&&(!O(e)||o>e)&&(e=o)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(t){if(!t.ignoreMinMax){var i=z(t.value,t.endValue),n=X(t.value,t.endValue);i<e&&(e=i),n>e&&(e=n)}}),O(this._minDefined)?t=this.strictMinMax?this._minDefined:this.min:this.strictMinMax&&(t=this._minReal),O(this._maxDefined)?e=this.strictMinMax?this._maxDefined:this.max:this.strictMinMax&&(e=this._maxReal),t==e){t-=1,e+=1;var r=this.adjustMinMax(t,e,0,this._gridCount,this.strictMinMax);t=r.min,e=r.max}var s=this.adjustDifference(t,e),o=this.adjustMinMax(t,e,s,this._gridCount);t=o.min,e=o.max,t-=(e-t)*this.extraMin,e+=(e-t)*this.extraMax,t=B(t,this.min,this.max),e=B(e,this.min,this.max),s=this.adjustDifference(t,e),o=this.adjustMinMax(t,e,s,this._gridCount,!0),t=o.min,e=o.max,this.strictMinMax&&(t=X(t,this._minDefined),e=z(e,this._maxDefined)),this._minZoomed=t,this._maxZoomed=e,this._step=o.step;var a=this.valueToPosition(t),l=this.valueToPosition(e);n&&(a=0,l=1),this.keepSelection||this.zoom({start:a,end:l},!1,!1,0)},Object.defineProperty(e.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(t){this.setPropertyValue("strictMinMax",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(t){this.setPropertyValue("logarithmic",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(t){this.setPropertyValue("keepSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(t){this.setPropertyValue("includeRangesInMinMax",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(t){this.setPropertyValue("maxPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.handleExtremesChange=function(){var t=this;if(this._extremesChanged=!0,this.getMinMax(),this.ghostLabel){this.dataItems.each(function(e){e.label&&e.label.pixelWidth>0&&(t.ghostLabel.text=e.label.currentText)})}},e.prototype.getX=function(t,e,i,n){var r=t.getWorkingValue(e);w(n)||(n="valueX");var s=t.getValue(n,"stack");return O(r)||(r=this.baseValue,this.logarithmic&&s>0&&(r=0)),this.renderer.positionToPoint(this.valueToPosition(r+s)).x},e.prototype.getY=function(t,e,i,n){var r=t.getWorkingValue(e);w(n)||(n="valueY");var s=t.getValue(n,"stack");return O(r)||(r=this.baseValue,this.logarithmic&&s>0&&(r=0)),this.renderer.positionToPoint(this.valueToPosition(r+s)).y},e.prototype.getAngle=function(t,e,i,n){var r=t.getWorkingValue(e),s=t.getValue(n,"stack");return O(r)||(r=this.baseValue),this.positionToAngle(this.valueToPosition(r+s))},e.prototype.getAnyRangePath=function(t,e,i){var n=this.valueToPosition(t),r=this.valueToPosition(e);return this.getPositionRangePath(n,r)},e.prototype.getTooltipText=function(t){var e=E(this.positionToValue(t),this._stepDecimalPlaces);return this.adapter.apply("getTooltipText",this.tooltip.numberFormatter.format(e))},e.prototype.zoomToValues=function(t,e,i,n){var r=(t-this.min)/(this.max-this.min),s=(e-this.min)/(this.max-this.min);this.zoom({start:r,end:s},i,n)},Object.defineProperty(e.prototype,"minZoomed",{get:function(){return X(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomed",{get:function(){return z(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this.axisBreaks;i.length>0&&i.each(function(t){var i=t.adjustedStartValue,n=t.adjustedEndValue,r=n-i,s=Math.ceil(r*t.breakSize)*e._gridCount/(e.max-e.min),o=e.adjustMinMax(i,n,r,s,!0);t.adjustedStep=o.step,t.adjustedMin=o.min,t.adjustedMax=o.max}),this._difference=this.adjustDifference(this.min,this.max)},e.prototype.getPositionLabel=function(t){var e=this.positionToValue(t);return this.numberFormatter.format(e)},e.prototype.showTooltipAt=function(t){this.showTooltipAtPosition(this.valueToPosition(t))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},e}(Uo);pe.registeredClasses.ValueAxis=ra,pe.registeredClasses.ValueAxisDataItem=na;var sa=function(t){function e(){var e=t.call(this)||this;return e.className="DateAxisBreak",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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(e.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}),e}(ia);pe.registeredClasses.DateAxisBreak=sa;var oa=function(t){function e(){var e=t.call(this)||this;return e.className="DateAxisDataItem",e.applyTheme(),e.values.date={},e.values.endDate={},e}return a(e,t),Object.defineProperty(e.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(e.prototype,"endDate",{get:function(){return this.dates.endDate},set:function(t){this.setDate("endDate",t),this.endValue=t.getTime()},enumerable:!0,configurable:!0}),e}(na),aa=function(t){function e(){var e=t.call(this)||this;return e.gridIntervals=new me,e.dateFormats=new le,e.periodChangeDateFormats=new le,e._baseIntervalReal={timeUnit:"day",count:1},e._minDifference={},e.className="DateAxis",e.setPropertyValue("markUnitChange",!0),e.snapTooltip=!0,e.tooltipPosition="pointer",e.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}]),e.axisFieldName="date",e.applyTheme(),e}return a(e,t),e.prototype.fillRule=function(t){var e=t.value,i=t.component,n=i._gridInterval,r=_r(n.timeUnit,n.count);Math.round((e-i.min)/r)/2==Math.round(Math.round((e-i.min)/r)/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1},e.prototype.applyInternalDefaults=function(){t.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_hour")),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"))},e.prototype.createDataItem=function(){return new oa},e.prototype.createAxisBreak=function(){return new sa},e.prototype.validateDataItems=function(){var e=this.start,i=this.end,n=(this.max-this.min)/this.baseDuration;t.prototype.validateDataItems.call(this),this.maxZoomFactor=(this.max-this.min)/this.baseDuration,this._deltaMinMax=this.baseDuration/2,e+=(i-e)*(1-n/((this.max-this.min)/this.baseDuration)),this.zoom({start:e,end:i},!1,!0)},e.prototype.handleSelectionExtremesChange=function(){},e.prototype.calculateZoom=function(){var e=this;t.prototype.calculateZoom.call(this);var i=this.chooseInterval(0,this.adjustDifference(this._minZoomed,this._maxZoomed),this._gridCount);_r(i.timeUnit,i.count)<this.baseDuration&&(i=l({},this.baseInterval)),this._gridInterval=i,this._gridDate=kr(new Date(this.min),i.timeUnit,i.count,this.getFirstWeekDay(),this.dateFormatter.utc),this._nextGridUnit=xr(i.timeUnit),this._intervalDuration=_r(i.timeUnit,i.count);var n=Math.ceil(this._difference/this._intervalDuration);n=Math.max(-5,Math.floor(this.start*n)-3),Sr(this._gridDate,i.timeUnit,n*i.count,this.dateFormatter.utc),Qt(this.series.iterator(),function(t){if(t.baseAxis==e){var i=t.getAxisField(e),n=kr(new Date(e._minZoomed),e.baseInterval.timeUnit,e.baseInterval.count).getTime(),r=n.toString(),s=t.dataItemsByAxis.getKey(e.uid).getKey(r),o=0;0!=e.start&&(o=s?(s=e.findFirst(s,n,i)).index:t.dataItems.findClosestIndex(e._minZoomed,function(t){return t[i]},"left"));var a=e.baseInterval,l=Sr(kr(new Date(e._maxZoomed),a.timeUnit,a.count,e.getFirstWeekDay(),e.dateFormatter.utc),a.timeUnit,a.count,e.dateFormatter.utc).getTime(),h=l.toString(),u=t.dataItemsByAxis.getKey(e.uid).getKey(h),p=t.dataItems.length;1!=e.end&&(u?p=u.index:(l-=1,p=t.dataItems.findClosestIndex(l,function(t){return t[i]},"right")+1)),t.startIndex=o,t.endIndex=p,t.dataRangeInvalid&&t.validateDataRange()}})},e.prototype.findFirst=function(t,e,i){var n=t.index;if(n>0){var r=t.component.dataItems.getIndex(n-1),s=r[i];return!s||s.getTime()<e?t:this.findFirst(r,e,i)}return t},e.prototype.validateData=function(){t.prototype.validateData.call(this),O(this.baseInterval.count)||(this.baseInterval.count=1)},Object.defineProperty(e.prototype,"minDifference",{get:function(){var t=this,e=Number.MAX_VALUE;return this.series.each(function(i){e>t._minDifference[i.uid]&&(e=t._minDifference[i.uid])}),e!=Number.MAX_VALUE&&0!=e||(e=_r("day")),e},enumerable:!0,configurable:!0}),e.prototype.seriesDataChangeUpdate=function(t){this._minDifference[t.uid]=Number.MAX_VALUE},e.prototype.postProcessSeriesDataItems=function(){var t=this;this.series.each(function(e){JSON.stringify(e._baseInterval[t.uid])!=JSON.stringify(t.baseInterval)&&(e.dataItems.each(function(e){t.postProcessSeriesDataItem(e)}),e._baseInterval[t.uid]=t.baseInterval)}),this.addEmptyUnitsBreaks()},e.prototype.postProcessSeriesDataItem=function(t){var e=this,i=this.baseInterval,n=t.component.dataItemsByAxis.getKey(this.uid);zt(t.dates,function(r){var s=t.getDate(r).getTime(),o=kr(new Date(s),i.timeUnit,i.count,e.getFirstWeekDay(),e.dateFormatter.utc).getTime(),a=Sr(new Date(o),i.timeUnit,i.count,e.dateFormatter.utc);t.setCalculatedValue(r,o,"open"),t.setCalculatedValue(r,a.getTime(),"close"),n.setKey(o.toString(),t)})},e.prototype.addEmptyUnitsBreaks=function(){var t=this;if(this.skipEmptyPeriods&&O(this.min)&&O(this.max)){var e=this.baseInterval.timeUnit,i=this.baseInterval.count;this.axisBreaks.clear();for(var n=kr(new Date(this.min),e,i,this.getFirstWeekDay(),this.dateFormatter.utc),r=void 0,s=function(){Sr(n,e,i,o.dateFormatter.utc);var s=n.getTime(),a=s.toString();ne(o.series.iterator(),function(e){return!!e.dataItemsByAxis.getKey(t.uid).getKey(a)})?r&&(r.endDate=new Date(s-1),r=void 0):r||((r=o.axisBreaks.create()).startDate=new Date(s))},o=this;n.getTime()<this.max-this.baseDuration;)s()}},e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this.axisBreaks;i.length>0&&i.each(function(t){var i=Math.ceil(e._gridCount*(Math.min(e.end,t.endPosition)-Math.max(e.start,t.startPosition))/(e.end-e.start));t.gridInterval=e.chooseInterval(0,t.adjustedEndValue-t.adjustedStartValue,i);var n=kr(new Date(t.adjustedStartValue),t.gridInterval.timeUnit,t.gridInterval.count,e.getFirstWeekDay(),e.dateFormatter.utc);n.getTime()>t.startDate.getTime()&&Sr(n,t.gridInterval.timeUnit,t.gridInterval.count,e.dateFormatter.utc),t.gridDate=n})},e.prototype.getFirstWeekDay=function(){return this.dateFormatter?this.dateFormatter.firstDayOfWeek:1},e.prototype.getGridDate=function(t,e){var i=this._gridInterval.timeUnit,n=this._gridInterval.count;kr(t,i,1,this.getFirstWeekDay(),this.dateFormatter.utc);var r=t.getTime(),s=wr(t),o=Sr(s,i,e,this.dateFormatter.utc).getTime(),a=this.isInBreak(o);a&&a.endDate&&(kr(s=new Date(a.endDate.getTime()),i,n,this.getFirstWeekDay(),this.dateFormatter.utc),s.getTime()<a.endDate.getTime()&&Sr(s,i,n,this.dateFormatter.utc),o=s.getTime());var l=this.adjustDifference(r,o);return Math.round(l/_r(i))<n?this.getGridDate(t,e+n):s},e.prototype.getBreaklessDate=function(t,e,i){var n=new Date(t.endValue);kr(n,e,i,this.getFirstWeekDay(),this.dateFormatter.utc),Sr(n,e,i,this.dateFormatter.utc);var r=n.getTime();return(t=this.isInBreak(r))?this.getBreaklessDate(t,e,i):n},e.prototype.validateAxisElements=function(){var t=this;if(O(this.max)&&O(this.min)){this.calculateZoom();var e=this._gridDate.getTime(),i=this._gridInterval.timeUnit,n=this._gridInterval.count,r=wr(this._gridDate),s=this._dataItemsIterator;this.resetIterators();for(var o=function(){var t=a.getGridDate(wr(r),n);e=t.getTime();var o=wr(t);o=Sr(o,i,n,a.dateFormatter.utc);var l=a.dateFormats.getKey(i);a.markUnitChange&&r&&Cr(t,r,a._nextGridUnit,a.dateFormatter.utc)&&"year"!==i&&(l=a.periodChangeDateFormats.getKey(i));var h=a.dateFormatter.format(t,l),u=s.find(function(t){return t.text===h});u.__disabled&&(u.__disabled=!1),a.appendDataItem(u),u.axisBreak=void 0,u.date=t,u.endDate=o,u.text=h,r=t,a.validateDataElement(u)},a=this;e<=this._maxZoomed;)o();var l=this.renderer;Qt(this.axisBreaks.iterator(),function(e){if(e.breakSize>0){var i=e.gridInterval.timeUnit,n=e.gridInterval.count;if(q(e.startPoint,e.endPoint)>4*l.minGridDistance)for(var r,o=e.gridDate.getTime(),a=0,h=function(){var l=wr(e.gridDate);if(o=Sr(l,i,n*a,t.dateFormatter.utc).getTime(),a++,o>e.adjustedStartValue&&o<e.adjustedEndValue){var h=wr(l);h=Sr(h,i,n,t.dateFormatter.utc);var u=t.dateFormats.getKey(i);t.markUnitChange&&r&&Cr(l,r,t._nextGridUnit,t.dateFormatter.utc)&&"year"!==i&&(u=t.periodChangeDateFormats.getKey(i));var p=t.dateFormatter.format(l,u),c=s.find(function(t){return t.text===p});c.__disabled&&(c.__disabled=!1),t.appendDataItem(c),c.axisBreak=e,e.dataItems.moveValue(c),c.date=l,c.endDate=h,c.text=p,r=l,t.validateDataElement(c)}};o<=e.adjustedMax;)h()}})}},e.prototype.validateDataElement=function(t){if(O(this.max)&&O(this.min)){var e=this.renderer,i=t.value,n=t.endValue;O(n)||(n=i);var r=this.valueToPosition(i),s=this.valueToPosition(n),o=s;!t.isRange&&this._gridInterval.count>this.baseInterval.count&&(s=r+(s-r)/(this._gridInterval.count/this.baseInterval.count)),t.position=r;var a=t.tick;a&&!a.disabled&&e.updateTickElement(a,r,s);var l=t.grid;l&&!l.disabled&&e.updateGridElement(l,r,s);var h=t.axisFill;h&&!h.disabled&&(e.updateFillElement(h,r,o),t.isRange||this.fillRule(t));var u=t.mask;u&&e.updateFillElement(u,r,s),t.bullet&&e.updateBullet(t.bullet,r,s);var p=t.label;if(p&&!p.disabled){var c=p.location;0==c&&(c=1!=this._gridInterval.count||"week"==this._gridInterval.timeUnit||t.isRange?0:.5),e.updateLabelElement(p,r,s,c)}}},Object.defineProperty(e.prototype,"baseDuration",{get:function(){return _r(this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),e.prototype.adjustMinMax=function(t,e){return{min:t,max:e,step:this.baseDuration}},e.prototype.fixMin=function(t){var e=kr(new Date(t),this.baseInterval.timeUnit,this.baseInterval.count,this.getFirstWeekDay(),this.dateFormatter.utc).getTime();return e+(Sr(new Date(e),this.baseInterval.timeUnit,this.baseInterval.count,this.dateFormatter.utc).getTime()-e)*this.startLocation},e.prototype.fixMax=function(t){var e=kr(new Date(t),this.baseInterval.timeUnit,this.baseInterval.count,this.getFirstWeekDay(),this.dateFormatter.utc).getTime();return e+(Sr(new Date(e),this.baseInterval.timeUnit,this.baseInterval.count,this.dateFormatter.utc).getTime()-e)*this.endLocation},e.prototype.chooseInterval=function(t,e,i){var n=this.gridIntervals,r=n.getIndex(t),s=_r(r.timeUnit,r.count),o=n.length-1;if(t>=o)return l({},n.getIndex(o));var a=Math.ceil(e/s);return e<s&&t>0?l({},n.getIndex(t-1)):a<=i?l({},n.getIndex(t)):t+1<n.length?this.chooseInterval(t+1,e,i):l({},n.getIndex(t))},e.prototype.formatLabel=function(t){return this.dateFormatter.format(t)},e.prototype.dateToPosition=function(t){return this.valueToPosition(t.getTime())},e.prototype.anyToPosition=function(t){return t instanceof Date?this.dateToPosition(t):this.valueToPosition(t)},e.prototype.dateToPoint=function(t){var e=this.dateToPosition(t),i=this.renderer.positionToPoint(e),n=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:n}},e.prototype.anyToPoint=function(t){return t instanceof Date?this.dateToPoint(t):this.valueToPoint(t)},e.prototype.positionToDate=function(t){return new Date(this.positionToValue(t))},e.prototype.getX=function(t,e,i){var n=this.getTimeByLocation(t,e,i);return O(n)||(n=this.baseValue),this.renderer.positionToPoint(this.valueToPosition(n)).x},e.prototype.getY=function(t,e,i){var n=this.getTimeByLocation(t,e,i),r=t.getValue("valueX","stack");return O(n)||(n=this.baseValue),this.renderer.positionToPoint(this.valueToPosition(n+r)).y},e.prototype.getAngle=function(t,e,i,n){var r=this.getTimeByLocation(t,e,i),s=t.getValue(n,"stack");return O(r)||(r=this.baseValue),this.positionToAngle(this.valueToPosition(r+s))},e.prototype.getTimeByLocation=function(t,e,i){if(w(e)){O(i)||O(i=t.workingLocations[e])||(i=0);var n=t.values[e].open,r=t.values[e].close;return O(n)&&O(r)?n+(r-n)*i:void 0}},e.prototype.processSeriesDataItem=function(t,e){var i,n=t.component,r=t["date"+e];if(r){i=r.getTime();var s,o=t["openDate"+e],a=this._prevSeriesTime;if(o&&(s=o.getTime()),O(s)){var l=Math.abs(i-s);this._minDifference[n.uid]>l&&(this._minDifference[n.uid]=l)}var h=i-a;h>0&&this._minDifference[n.uid]>h&&(this._minDifference[n.uid]=h),this._prevSeriesTime=i,n._baseInterval[this.uid]?this.postProcessSeriesDataItem(t):this._baseInterval&&(n._baseInterval[this.uid]=this._baseInterval,this.postProcessSeriesDataItem(t))}},e.prototype.updateAxisBySeries=function(){t.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=_r("day",27)&&"week"==e.timeUnit&&(e.timeUnit="month",e.count=1),"month"==e.timeUnit&&(this.minDifference>=_r("day",58)&&1==e.count&&(e.count=2),this.minDifference>=_r("day",87)&&2==e.count&&(e.count=3),this.minDifference>=_r("day",174)&&5==e.count&&(e.count=6)),this.minDifference>=_r("hour",23)&&"hour"==e.timeUnit&&(e.timeUnit="day",e.count=1),this.minDifference>=_r("week",1)-_r("hour",1)&&"day"==e.timeUnit&&(e.timeUnit="week",e.count=1),this.minDifference>=_r("year",1)-_r("day",1.01)&&"month"==e.timeUnit&&(e.timeUnit="year",e.count=1),this._baseIntervalReal=e},Object.defineProperty(e.prototype,"baseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(t){JSON.stringify(this._baseInterval)!=JSON.stringify(t)&&(this._baseInterval=t,O(t.count)||(t.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(t){if(this.setPropertyValue("skipEmptyPeriods",t)&&this.invalidateData(),t){var e=this.axisBreaks.template;e.startLine.disabled=!0,e.endLine.disabled=!0,e.fillShape.disabled=!0,e.breakSize=0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(t){this.setPropertyValue("tooltipDateFormat",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(t){this.setPropertyValue("markUnitChange",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e,i=this.positionToDate(t);if(i=kr(i,this.baseInterval.timeUnit,this.baseInterval.count,this.getFirstWeekDay(),this.dateFormatter.utc),w(this.tooltipDateFormat))e=this.dateFormatter.format(i,this.tooltipDateFormat);else{var n=this.dateFormats.getKey(this.baseInterval.timeUnit);e=n?this.dateFormatter.format(i,n):this.getPositionLabel(t)}return this.adapter.apply("getTooltipText",e)},e.prototype.roundPosition=function(t,e){var i=this.baseInterval,n=i.timeUnit,r=i.count,s=this.positionToDate(t);if(kr(s,n,r,this.getFirstWeekDay(),this.dateFormatter.utc),e>0&&Sr(s,n,e*r,this.dateFormatter.utc),this.isInBreak(s.getTime()))for(;s.getTime()<this.max&&(Sr(s,n,r,this.dateFormatter.utc),this.isInBreak(s.getTime())););return this.dateToPosition(s)},e.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},e.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},e.prototype.getSeriesDataItem=function(t,e,i){var n,r=this.positionToValue(e),s=kr(new Date(r),this.baseInterval.timeUnit,this.baseInterval.count,this.getFirstWeekDay(),this.dateFormatter.utc),o=t.dataItemsByAxis.getKey(this.uid).getKey(s.getTime().toString());!o&&i&&(n="Y"==this.axisLetter?"dateY":"dateX",o=t.dataItems.getIndex(t.dataItems.findClosestIndex(s.getTime(),function(t){return t[n]?t[n].getTime():-1/0},"any")));return o},e.prototype.getPositionLabel=function(t){var e=this.positionToDate(t);return this.dateFormatter.format(e,this.getCurrentLabelFormat())},e.prototype.getCurrentLabelFormat=function(){return this.dateFormats.getKey(this._gridInterval?this._gridInterval.timeUnit:"day")},e.prototype.initRenderer=function(){t.prototype.initRenderer.call(this);var e=this.renderer;e&&(e.ticks.template.location=0,e.grid.template.location=0,e.labels.template.location=0,e.baseGrid.disabled=!0)},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.zoomToDates=function(t,e,i,n){t=this.dateFormatter.parse(t),e=this.dateFormatter.parse(e),this.zoomToValues(t.getTime(),e.getTime(),i,n)},e.prototype.asIs=function(e){return"baseInterval"==e||t.prototype.asIs.call(this,e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,e._baseInterval&&(this.baseInterval=e.baseInterval)},e.prototype.showTooltipAtPosition=function(e,i){var n=this;if(i||(e=this.toAxisPosition(e)),this.snapTooltip){var r,s=kr(this.positionToDate(e),this.baseInterval.timeUnit,1,this.getFirstWeekDay(),this.dateFormatter.utc).getTime();if(this.series.each(function(t){if(t.baseAxis==n){var i=n.getSeriesDataItem(t,e,!0);if(i){var o=void 0;t.xAxis==n&&(o=i.dateX),t.yAxis==n&&(o=i.dateY),r?Math.abs(r.getTime()-s)>Math.abs(o.getTime()-s)&&(r=o):r=o}}}),r){var o=r.getTime();r=kr(new Date(o),this.baseInterval.timeUnit,this.baseInterval.count,this.getFirstWeekDay(),this.dateFormatter.utc),o=r.getTime();var a=this.renderer.tooltipLocation;0==a&&(a=1e-4),r=new Date(r.getTime()+this.baseDuration*a),e=this.dateToPosition(r),this.series.each(function(t){var e=t.dataItemsByAxis.getKey(n.uid).getKey(o.toString()),i=t.showTooltipAtDataItem(e);i?n.chart._seriesPoints.push({series:t,point:i}):(t.tooltipText||t.tooltipHTML)&&t.hideTooltip()})}}t.prototype.showTooltipAtPosition.call(this,e,!0)},Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),e.prototype.makeGap=function(t,e){var i=t.component;if(t&&e&&(!i.connect&&O(i.autoGapCount)&&i.baseAxis==this&&t.dates["date"+this.axisLetter].getTime()-e.dates["date"+this.axisLetter].getTime()>i.autoGapCount*this.baseDuration))return!0;return!1},e}(ra);pe.registeredClasses.DateAxis=aa,pe.registeredClasses.DateAxisDataItem=oa;var la=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=g(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return a(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="vertical"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.x=t.pixelX,e.width=t.pixelWidth}},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof f||(e.width=g(100)),this.line;var i=e.title;i.rotation=0,i.align="center",this.opposite?(this.line.toFront(),i.toBack()):(i.toFront(),this.line.toBack())}},e.prototype.updateTooltip=function(){if(this.axis){var t=this.line.pixelX,e=this.line.pixelY,i=this.axisLength,n=1e3;this.opposite?this.inside||(e=-1e3,n=1e3):this.inside&&(e=-1e3,n=1e3),this.axis.updateTooltip("vertical",{x:t,y:e,width:i,height:n})}},e.prototype.updateLabelElement=function(t,e,i,n){w(n)||(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);t.isMeasured=!t.inside;var s,o=0;this.opposite?(t.inside?(s="top","bottom"==t.valign&&(o=this.gridContainer.maxHeight,s="bottom")):s="bottom",r.y=o):(t.inside?(s="bottom","top"==t.valign&&(o=-this.gridContainer.maxHeight,s="top")):s="top",r.y+=o),0==t.rotation&&(t.verticalCenter=s),this.positionItem(t,r),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredWidth-t.pixelPaddingRight-t.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){return{x:this.positionToCoordinate(t),y:0}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.x)},e.prototype.getPositionRangePath=function(t,e){var i=B(this.positionToCoordinate(t),0,this.axisLength),n=B(this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),s=this.getHeight();return Ns({x:Math.min(i,n),y:0,width:r,height:s},!0)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,s=e.startPoint,o=e.endPoint,a=e.pixelMarginLeft,l=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;s.x=B(s.x,-1,this.pixelWidth+1),o.x=B(o.x,-1,this.pixelWidth+1),s.x==o.x&&(s.x<0||s.x>this.pixelWidth)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1,i.y=a,i.width=0,i.height=l,n.y=a,n.width=0,n.height=l,r.height=l,r.width=Math.abs(o.x-s.x),r.y=a,r.x=s.x},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=Vs({x:0,y:0})+Fs({x:0,y:this.getHeight()}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;n.y=Vi({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?r*=t.inside?1:-1:r*=t.inside?-1:1,t.path=Vs({x:0,y:0})+Fs({x:0,y:r}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=Vs({x:0,y:0})+Fs({x:this.axisLength,y:0})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getHeight(),n=this.pixelWidth,r=this.baseGrid,s=e.basePoint.x;if(s<-.2||s>n+.2)r.hide(0);else{var o=Vi({x:0,y:0},this.gridContainer,r.parent).y;r.path=Vs({x:0,y:0})+Fs({x:0,y:i}),r.moveTo({x:s,y:o}),r.show(0)}},e.prototype.createBreakSprites=function(t){t.startLine=new oo,t.endLine=new oo;var e=new ao;e.setWavedSides(!1,!0,!1,!0),t.fillShape=e},e.prototype.toAxisPosition=function(t){var e=t,i=this.axis,n=i.parent;return i&&n?(e-i.pixelX/n.innerWidth)/(i.pixelWidth/n.innerWidth):t},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof ta&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.y=Vi({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(Qo);pe.registeredClasses.AxisRendererX=la,bs.push({relevant:xs.heightXS,state:function(t,e){if(t instanceof la){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),bs.push({relevant:xs.heightXXS,state:function(t,e){if(t instanceof la){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var ha=function(t){function e(){var e=t.call(this)||this;return e.className="CategoryAxisBreak",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.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(e.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}),e}(Xo);pe.registeredClasses.CategoryAxisBreak=ha;var ua=function(t){function e(){var e=t.call(this)||this;return e.adapter=new Te(e),e.seriesDataItems={},e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"category",{get:function(){return this.adapter.isEnabled("category")?this.adapter.apply("category",this.properties.category):this.properties.category},set:function(t){this.setProperty("category",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(t){this.setProperty("endCategory",t)},enumerable:!0,configurable:!0}),e}(Yo),pa=function(t){function e(){var e=t.call(this)||this;return e.dataItemsByCategory=new le,e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme(),e}return a(e,t),e.prototype.createDataItem=function(){return new ua},e.prototype.createAxisBreak=function(){return new ha},e.prototype.processSeriesDataItem=function(e,i){t.prototype.processSeriesDataItem.call(this,e,i);var n=e["category"+this.axisLetter],r=this.dataItemsByCategory.getKey(n);if(r){var s=e.component.uid,o=r.seriesDataItems[s];o||(o=[],r.seriesDataItems[s]=o),o.push(e)}},e.prototype.validateDataRange=function(){var i=this;t.prototype.validateDataRange.call(this),Qt(this._series.iterator(),function(t){if(t.xAxis instanceof e&&t.yAxis instanceof e)t.invalidateDataRange();else{var n=i.positionToIndex(i.start),r=i.positionToIndex(i.end);r>=i.dataItems.length&&r--;for(var s=t.uid,o=void 0,a=void 0,l=n;l<=r;l++){var h=i.dataItems.getIndex(l);if(h){var u=h.seriesDataItems[s];if(u)for(var p=0;p<u.length;p++){var c=u[p];if(c){var d=c.index;(!O(o)||d<o)&&(o=d),(!O(a)||d>a)&&(a=d)}}}}O(o)?t.startIndex=o:t.start=i.start,O(a)?t.endIndex=a+1:t.end=i.end,i.axisBreaks.length>0&&t.invalidateDataRange()}})},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this);var i=this.dataItems.length,n=B(Math.floor(this.start*i-1),0,i),r=B(Math.ceil(this.end*i),0,i);this.renderer.invalid&&this.renderer.validate();var s=this.renderer.axisLength/this.renderer.minGridDistance,o=Math.min(this.dataItems.length,Math.ceil((r-n)/s));if(this._startIndex=Math.floor(n/o)*o,this._endIndex=Math.ceil(this.end*i),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(),n=X(0,this._startIndex-this._frequency),r=z(this.dataItems.length,this._endIndex+this._frequency);for(var a=0,l=0;l<n;l++){(u=this.dataItems.getIndex(l)).__disabled=!0}l=r;for(var h=this.dataItems.length;l<h;l++){(u=this.dataItems.getIndex(l)).__disabled=!0}for(l=n;l<r;l++)if(l<this.dataItems.length){var u=this.dataItems.getIndex(l);if(l/this._frequency==Math.round(l/this._frequency))this.isInBreak(l)||(this.appendDataItem(u),this.validateDataElement(u,a)),a++;else u.__disabled=!0}this.appendDataItem(this._lastDataItem),this.validateDataElement(this._lastDataItem,a+1,this.dataItems.length),this.axisBreaks.each(function(t){var i=t.adjustedStartValue,n=t.adjustedEndValue;if(U({start:i,end:n},{start:e._startIndex,end:e._endIndex}))for(var r=B(Math.ceil(e._frequency/t.breakSize),1,n-i),s=0,o=i;o<=n;o+=r){var a=e.dataItems.getIndex(o);e.appendDataItem(a),e.validateDataElement(a,s),s++}}),this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},e.prototype.validateDataElement=function(e,i,n){t.prototype.validateDataElement.call(this,e);var r=this.renderer;O(n)||(n=this.categoryToIndex(e.category));var s=this.categoryToIndex(e.endCategory);O(s)||(s=n);var o,a,l,h=this.indexToPosition(n,e.locations.category),u=this.indexToPosition(s,e.locations.endCategory);e.position=h,e.isRange&&(o=s,a=this.indexToPosition(n,e.locations.category),l=this.indexToPosition(o,e.locations.endCategory)),e.point=r.positionToPoint(h);var p=e.tick;p&&!p.disabled&&r.updateTickElement(p,h,u);var c=e.grid;c&&!c.disabled&&r.updateGridElement(c,h,u);var d=e.label;d&&!d.disabled&&(e.isRange&&null!=d.text||(e.text=e.text),r.updateLabelElement(d,h,u),(r instanceof ea&&e.label.measuredWidth>this.ghostLabel.measuredWidth||r instanceof la&&e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(e.label.html?this.ghostLabel.html=e.label.currentText:this.ghostLabel.text=e.label.currentText));var f=e.axisFill;f&&!f.disabled&&(e.isRange||(o=n+this._frequency,a=this.indexToPosition(n,f.location),l=this.indexToPosition(o,f.location)),r.updateFillElement(f,a,l),e.isRange||this.fillRule(e,i)),e.bullet&&r.updateBullet(e.bullet,h,u);var g=e.mask;g&&r.updateFillElement(g,a,l)},e.prototype.disposeData=function(){this.dataItemsByCategory.clear(),t.prototype.disposeData.call(this)},e.prototype.processDataItem=function(e,i){t.prototype.processDataItem.call(this,e,i),this.dataItemsByCategory.setKey(e.category,e)},e.prototype.getDataItem=function(t){var e=t[this.dataFields.category],i=this.dataItemsByCategory.getKey(e);return i||this.dataItems.create()},e.prototype.indexToPosition=function(t,e){O(e)||(e=.5);var i=this.startIndex,n=this.endIndex,r=this.adjustDifference(i,n),s=this.startLocation;return r-=s,r-=1-this.endLocation,Jt(this.axisBreaks.iterator(),function(e){var r=e.adjustedStartValue,s=e.adjustedEndValue;if(t<i)return!1;if(U({start:r,end:s},{start:i,end:n})){r=Math.max(i,r),s=Math.min(n,s);var o=e.breakSize;t>s?i+=(s-r)*(1-o):t<r||(t=r+(t-r)*o)}return!0}),E((t+e-s-i)/r,5)},e.prototype.categoryToPosition=function(t,e){var i=this.categoryToIndex(t);return this.indexToPosition(i,e)},e.prototype.categoryToPoint=function(t,e){var i=this.categoryToPosition(t,e),n=this.renderer.positionToPoint(i),r=this.renderer.positionToAngle(i);return{x:n.x,y:n.y,angle:r}},e.prototype.anyToPoint=function(t,e){return this.categoryToPoint(t,e)},e.prototype.anyToPosition=function(t,e){return this.categoryToPosition(t,e)},e.prototype.categoryToIndex=function(t){if(w(t)){var e=this.dataItemsByCategory.getKey(t);if(e)return e.index}},e.prototype.zoomToCategories=function(t,e){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1)},e.prototype.getAnyRangePath=function(t,e,i,n){var r=this.categoryToPosition(t,i),s=this.categoryToPosition(e,n);return this.getPositionRangePath(r,s)},e.prototype.roundPosition=function(t,e){var i=this.positionToIndex(t);return this.indexToPosition(i,e)},e.prototype.getFirstSeriesDataItem=function(t,e){for(var i=0;i<t.dataItems.length;i++){var n=t.dataItems.getIndex(i);if(t.xAxis==this&&n.categoryX==e)return n;if(t.yAxis==this&&n.categoryY==e)return n}},e.prototype.getLastSeriesDataItem=function(t,e){for(var i=t.dataItems.length-1;i>=0;i--){var n=t.dataItems.getIndex(i);if(t.xAxis==this&&n.categoryX==e)return n;if(t.yAxis==this&&n.categoryY==e)return n}},e.prototype.getSeriesDataItem=function(t,e,i){var n=this;if(O(e)){var r=this.positionToIndex(e);r>=this.dataItems.length&&r--;var s=this.dataItems.getIndex(r);if(s){var o,a=s.category,l=t.dataItems.getIndex(r);if(l){if(t.xAxis==this&&l.categoryX==a)return l;if(t.yAxis==this&&l.categoryY==a)return l}return t.dataItems.each(function(e){t.xAxis==n&&e.categoryX==a&&(o||(o=e),Math.abs(r-o.index)>Math.abs(r-e.index)&&(o=e)),t.yAxis==n&&e.categoryY==a&&(o||(o=e),Math.abs(r-o.index)>Math.abs(r-e.index)&&(o=e))}),o}}},e.prototype.getX=function(t,e,i){var n;return w(e)&&(n=this.categoryToPosition(t.categories[e],i)),y(n)?this.basePoint.x:this.renderer.positionToPoint(n).x},e.prototype.getY=function(t,e,i){var n;return w(e)&&(n=this.categoryToPosition(t.categories[e],i)),y(n)?this.basePoint.y:this.renderer.positionToPoint(n).y},e.prototype.getAngle=function(t,e,i,n){return this.positionToAngle(this.categoryToPosition(t.categories[e],i))},e.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},e.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},e.prototype.getTooltipText=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return this.adapter.apply("getTooltipText",e.category)},e.prototype.positionToIndex=function(t){(t=E(t,10))<0&&(t=0),t>1&&(t=1);var e=this.startIndex,i=this.endIndex,n=i-e-this.startLocation-(1-this.endLocation);t+=1/n*this.startLocation;var r=this.axisBreaks,s=null;return Jt(r.iterator(),function(r){var o=r.startPosition,a=r.endPosition,l=r.adjustedStartValue,h=r.adjustedEndValue;l=X(l,e),h=z(h,i);var u=r.breakSize;if(n-=(h-l)*(1-u),t>a)e+=(h-l)*(1-u);else if(!(t<o)){var p=(t-o)/(a-o);return s=l+Math.round(p*(h-l)),!1}return!0}),O(s)||(s=Math.floor(t*n+e)),s>=this.dataItems.length&&(s=this.dataItems.length-1),s},e.prototype.positionToCategory=function(t){return this.getPositionLabel(t)},e.prototype.getPositionLabel=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return e.category},Object.defineProperty(e.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),e.prototype.initRenderer=function(){t.prototype.initRenderer.call(this),this.renderer.baseGrid.disabled=!0},Object.defineProperty(e.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),e}(Uo);pe.registeredClasses.CategoryAxis=pa,pe.registeredClasses.CategoryAxisDataItem=ua;var ca=function(t){function e(){var e=t.call(this)||this;return e.className="XYSeriesDataItem",e.values.valueX={stack:0},e.values.valueY={stack:0},e.values.openValueX={},e.values.openValueY={},e.values.dateX={},e.values.dateY={},e.values.openDateX={},e.values.openDateY={},e.setLocation("dateX",.5,0),e.setLocation("dateY",.5,0),e.setLocation("categoryX",.5,0),e.setLocation("categoryY",.5,0),e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(t){this.setDate("dateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateY",{get:function(){return this.getDate("dateY")},set:function(t){this.setDate("dateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(t){this.setCategory("categoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(t){this.setCategory("categoryY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(t){this.setValue("openValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(t){this.setValue("openValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(t){this.setDate("openDateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateY",{get:function(){return this.getDate("openDateY")},set:function(t){this.setDate("openDateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(t){this.setCategory("openCategoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(t){this.setCategory("openCategoryY",t)},enumerable:!0,configurable:!0}),e.prototype.getMin=function(t,e,i){var n,r=this;return O(i)||(i=0),yt(t,function(t){var s;s=e?r.getWorkingValue(t):r.getValue(t),((s+=i)<n||!O(n))&&(n=s)}),n},e.prototype.getMax=function(t,e,i){var n,r=this;return O(i)||(i=0),yt(t,function(t){var s;s=e?r.getWorkingValue(t):r.getValue(t),((s+=i)>n||!O(n))&&(n=s)}),n},e}(Bo),da=function(t){function e(){var e=t.call(this)||this;return e._xAxis=new Ot,e._yAxis=new Ot,e._xValueFields=[],e._yValueFields=[],e._baseInterval={},e.className="XYSeries",e.isMeasured=!1,e.cursorTooltipEnabled=!0,e.cursorHoverEnabled=!0,e.excludeFromTotal=!1,e.mainContainer.mask=new hs,e.mainContainer.mask.setElement(e.paper.add("path")),e.stacked=!1,e.snapTooltip=!1,e.tooltip.pointerOrientation="horizontal",e.tooltip.events.on("hidden",function(){e.returnBulletDefaultState()},void 0,!1),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},e.prototype.createDataItem=function(){return new ca},e.prototype.dataChangeUpdate=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},e.prototype.validateData=function(){if(this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),t.prototype.validateData.call(this),this.updateItemReaderText(),!w(this.dataFields[this._xField])||!w(this.dataFields[this._yField]))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.')},e.prototype.processDataItem=function(e,i){try{t.prototype.processDataItem.call(this,e,i),e.events.disable(),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),e.events.enable(),this.setInitialWorkingValues(e)}catch(t){this._chart.raiseCriticalError(t)}},e.prototype.updateDataItem=function(e){t.prototype.updateDataItem.call(this,e),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y")},e.prototype.setInitialWorkingValues=function(t){},e.prototype.disposeData=function(){if(t.prototype.disposeData.call(this),this.xAxis){var e=this.dataItemsByAxis.getKey(this.xAxis.uid);e&&e.clear(),this.xAxis instanceof pa&&this.clearCatAxis(this.xAxis)}if(this.yAxis){var i=this.dataItemsByAxis.getKey(this.yAxis.uid);i&&i.clear(),this.yAxis instanceof pa&&this.clearCatAxis(this.yAxis)}},e.prototype.clearCatAxis=function(t){var e=this.uid;t.dataItems.each(function(t){t.seriesDataItems[e]&&(t.seriesDataItems[e]=[])})},e.prototype.defineFields=function(){var t=this.xAxis,e=this.yAxis,i=t.axisFieldName,n=i+"X",r="open"+ni(i)+"X",s=e.axisFieldName,o=s+"Y",a="open"+ni(s)+"Y";this._xField=n,this._yField=o,this.dataFields[r]&&(this._xOpenField=r),this.dataFields[a]&&(this._yOpenField=a),this.dataFields[a]||this.baseAxis!=this.yAxis||(this._yOpenField=o),this.dataFields[r]||this.baseAxis!=this.xAxis||(this._xOpenField=n),this.stacked&&this.baseAxis==this.xAxis&&(this._xOpenField=n),this.stacked&&this.baseAxis==this.yAxis&&(this._yOpenField=o),this.xAxis instanceof pa&&this.yAxis instanceof pa&&(this._yOpenField||(this._yOpenField=o)),this._xValueFields=[],this._yValueFields=[],this.addValueField(this.xAxis,this._xValueFields,this._xField),this.addValueField(this.xAxis,this._xValueFields,this._xOpenField),this.addValueField(this.yAxis,this._yValueFields,this._yField),this.addValueField(this.yAxis,this._yValueFields,this._yOpenField)},e.prototype.addValueField=function(t,e,i){t instanceof ra&&w(this.dataFields[i])&&-1==e.indexOf(i)&&e.push(i)},e.prototype.setCategoryAxisField=function(t,e){w(this.dataFields[t])||(this.dataFields[t]=e.dataFields.category)},e.prototype.setDateAxisField=function(t,e){w(this.dataFields[t])||(this.dataFields[t]=e.dataFields.date)},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.createMask()},e.prototype.createMask=function(){if(this.mainContainer.mask){var t=this.getMaskPath();Qt(this.axisRanges.iterator(),function(e){e.axisFill.fillPath&&(e.axisFill.validate(),t+=e.axisFill.fillPath)}),this.mainContainer.mask.path=t}},e.prototype.getMaskPath=function(){return Ns({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength})},e.prototype.getAxisField=function(t){return t==this.xAxis?this.xField:t==this.yAxis?this.yField:void 0},e.prototype.validateDataItems=function(){this.xAxis.updateAxisBySeries(),this.yAxis.updateAxisBySeries(),t.prototype.validateDataItems.call(this),this.xAxis.postProcessSeriesDataItems(),this.yAxis.postProcessSeriesDataItems()},e.prototype.validateDataRange=function(){this.xAxis.dataRangeInvalid&&this.xAxis.validateDataRange(),this.yAxis.dataRangeInvalid&&this.yAxis.validateDataRange(),t.prototype.validateDataRange.call(this)},e.prototype.validate=function(){this.xAxis.invalid&&this.xAxis.validate(),this.yAxis.invalid&&this.yAxis.validate(),this.y=this.yAxis.pixelY,this.x=this.xAxis.pixelX,this._showBullets=!0;var e=this.minBulletDistance;O(e)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)<e&&(this._showBullets=!1),t.prototype.validate.call(this)},Object.defineProperty(e.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){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 le),this.invalidateData())},enumerable:!0,configurable:!0}),Object.defineProperty(e.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){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)),this.dataItemsByAxis.setKey(t.uid,new le),this.invalidateData())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseAxis",{get:function(){return this._baseAxis||(this.yAxis instanceof aa&&(this._baseAxis=this.yAxis),this.xAxis instanceof aa&&(this._baseAxis=this.xAxis),this.yAxis instanceof pa&&(this._baseAxis=this.yAxis),this.xAxis instanceof pa&&(this._baseAxis=this.xAxis),this._baseAxis||(this._baseAxis=this.xAxis)),this._baseAxis},set:function(t){this._baseAxis!=t&&(this._baseAxis=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.processValues=function(e){t.prototype.processValues.call(this,e);var i=this.dataItems,n=1/0,r=-1/0,s=1/0,o=-1/0,a=this.startIndex,l=this.endIndex;e||(a=0,l=this.dataItems.length);for(var h=a;h<l;h++){var u=i.getIndex(h);this.getStackValue(u,e);var p=u.getValue("valueX","stack"),c=u.getValue("valueY","stack");n=z(u.getMin(this._xValueFields,e,p),n),s=z(u.getMin(this._yValueFields,e,c),s),r=X(u.getMax(this._xValueFields,e,p),r),o=X(u.getMax(this._yValueFields,e,c),o),this.stacked&&(this.baseAxis==this.xAxis&&(c<s&&(s=c),c>o&&(o=c)),this.baseAxis==this.yAxis&&(p<n&&(n=p),p>r&&(r=p)))}this.xAxis.processSeriesDataItems(),this.yAxis.processSeriesDataItems();var d=this.xAxis.uid,f=this.yAxis.uid;if(!e&&(this._tmin.getKey(d)!=n||this._tmax.getKey(d)!=r||this._tmin.getKey(f)!=s||this._tmax.getKey(f)!=o)){this._tmin.setKey(d,n),this._tmax.setKey(d,r),this._tmin.setKey(f,s),this._tmax.setKey(f,o);var g=this.stackedSeries;g&&(g.isDisposed()?this.stackedSeries=void 0:g.processValues(!1)),this.dispatchImmediately("extremeschanged")}this._smin.getKey(d)==n&&this._smax.getKey(d)==r&&this._smin.getKey(f)==s&&this._smax.getKey(f)==o||(this._smin.setKey(d,n),this._smax.setKey(d,r),this._smin.setKey(f,s),this._smax.setKey(f,o),(this.appeared||0!=this.start||1!=this.end)&&this.dispatchImmediately("selectionextremeschanged")),!e&&this.stacked&&this.processValues(!0)},e.prototype.hideTooltip=function(){t.prototype.hideTooltip.call(this),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i;if(this.visible&&!this.isHiding&&!this.isShowing){var n=this._xAxis.get(),r=this._yAxis.get();n==this.baseAxis&&(i=n.getSeriesDataItem(this,n.toAxisPosition(t),this.snapTooltip)),r==this.baseAxis&&(i=r.getSeriesDataItem(this,r.toAxisPosition(e),this.snapTooltip));var s=this.showTooltipAtDataItem(i);if(s)return s;if(!this.tooltipText)return}this.hideTooltip()},e.prototype.showTooltipAtDataItem=function(t){if(this.returnBulletDefaultState(t),t&&t.visible&&(this.updateLegendValue(t),this.cursorTooltipEnabled)){this.tooltipDataItem=t;var e=this.tooltipXField,i=this.tooltipYField;if(w(t[e])&&w(t[i])){var n=this.getPoint(t,e,i,t.locations[e],t.locations[i]);if(n){if(this.tooltipX=n.x,this.tooltipY=n.y,this._prevTooltipDataItem!=t&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:t}),this._prevTooltipDataItem=t),this.cursorHoverEnabled)try{for(var r=p(t.sprites),s=r.next();!s.done;s=r.next()){var o=s.value;!o.parent.visible||o.isHidden||o.__disabled||o.disabled||o.isHiding||(o.isHover=!0)}}catch(t){a={error:t}}finally{try{s&&!s.done&&(l=r.return)&&l.call(r)}finally{if(a)throw a.error}}return this.showTooltip()?Ai({x:n.x,y:n.y},this):void 0}}}var a,l},e.prototype.returnBulletDefaultState=function(t){if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=t)try{for(var e=p(this._prevTooltipDataItem.sprites),i=e.next();!i.done;i=e.next()){var n=i.value;n.isDisposed()?this._prevTooltipDataItem=void 0:n.isHover=!1}}catch(t){r={error:t}}finally{try{i&&!i.done&&(s=e.return)&&s.call(e)}finally{if(r)throw r.error}}var r,s},e.prototype.shouldCreateBullet=function(t,e){var i=e.xField;w(i)||(i=this.xField);var n=e.yField;if(w(n)||(n=this.yField),this.xAxis instanceof ra&&!t.hasValue([i])||this.yAxis instanceof ra&&!t.hasValue([n]))return!1;if(e.disabled){var r=e.propertyFields.disabled,s=t.dataContext;return!(!s||!1!==s[r])}return!0},e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,n=e.xField;w(n)||(n=this.xField);var r=e.yField;if(w(r)||(r=this.yField),this.xAxis instanceof ra&&!i.hasValue([n])||this.yAxis instanceof ra&&!i.hasValue([r]))e.visible=!1;else{var s=this.getBulletLocationX(e,n),o=this.getBulletLocationY(e,r),a=this.getPoint(i,n,r,s,o);if(a){var l=a.x,h=a.y;if(O(e.locationX)&&this.xOpenField!=this.xField)l-=(l-this.xAxis.getX(i,this.xOpenField))*e.locationX;if(O(e.locationY)&&this.yOpenField!=this.yField)h-=(h-this.yAxis.getY(i,this.yOpenField))*e.locationY;e.moveTo({x:l,y:h}),e.visible=!0}else e.visible=!1}},e.prototype.getBulletLocationX=function(t,e){var i=t.locationX,n=t.dataItem;return O(i)||(i=n.workingLocations[e]),i},e.prototype.getBulletLocationY=function(t,e){var i=t.locationY,n=t.dataItem;return O(i)||(i=n.workingLocations[e]),i},Object.defineProperty(e.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(t){this.setPropertyValue("stacked",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var i,n=this;this.xAxis instanceof ra&&this.xAxis!=this.baseAxis&&(i=this._xValueFields),this.yAxis instanceof ra&&this.yAxis!=this.baseAxis&&(i=this._yValueFields);var r,s=this.startIndex,o=this.endIndex,a=0,l=this.defaultState.transitionDuration;O(e)&&(l=e),Qt(ie(this.dataItems.iterator()),function(t){var e=t[0],h=t[1];n.sequencedInterpolation&&l>0&&(a=n.sequencedInterpolationDelay*e+l*(e-s)/(o-s)),r=h.show(l,a,i)});var h=t.prototype.show.call(this,e);return r&&!r.isFinished()&&(h=r),h},e.prototype.hide=function(e){var i,n,r=this,s=this.xAxis;s instanceof ra&&s!=this.baseAxis&&(i=this._xValueFields,n=this.stacked||s.minZoomed<0&&s.maxZoomed>0||this.stackedSeries?0:s.min);var o=this.yAxis;o instanceof ra&&o!=this.baseAxis&&(i=this._yValueFields,n=this.stacked||o.minZoomed<0&&o.maxZoomed>0||this.stackedSeries?0:o.min);var a=this.startIndex,l=this.endIndex,h=this.hiddenState.transitionDuration;O(e)&&(h=e);var u,p=0;Qt(ie(this.dataItems.iterator()),function(t){var e=t[0],s=t[1];0==h?s.hide(0,0,n,i):(r.sequencedInterpolation&&h>0&&(p=r.sequencedInterpolationDelay*e+h*(e-a)/(l-a)),u=s.hide(h,p,n,i))});var c=t.prototype.hide.call(this,h);return c&&!c.isFinished()&&c.delay(p),u&&!u.isFinished()&&(c=u),this.validateDataElements(),c},e.prototype.handleDataItemWorkingValueChange=function(e,i){t.prototype.handleDataItemWorkingValueChange.call(this,e,i),Qt(this.baseAxis.series.iterator(),function(t){t.stacked&&t.invalidateProcessedData()})},e.prototype.getStackValue=function(t,e){var i=this;if(this.stacked){var n,r=this.chart,s=r.series.indexOf(this);this.xAxis!=this.baseAxis&&this.xAxis instanceof ra&&(n=this.xField),this.yAxis!=this.baseAxis&&this.yAxis instanceof ra&&(n=this.yField),n&&(t.setCalculatedValue(n,0,"stack"),Jt(r.series.range(0,s).backwards().iterator(),function(r){if(r.xAxis==i.xAxis&&r.yAxis==i.yAxis){r.stackedSeries=i;var s=r.dataItems.getIndex(t.index);if(s&&s.hasValue(i._xValueFields)&&s.hasValue(i._yValueFields)){var o=t.getValue(n),a=void 0,l=s.getValue(n)+s.getValue(n,"stack");if(a=e?s.getWorkingValue(n)+s.getValue(n,"stack"):s.getValue(n)+s.getValue(n,"stack"),o>=0&&l>=0||o<0&&l<0)return t.setCalculatedValue(n,a,"stack"),!1}else if(!r.stacked)return!1}return!0}))}},Object.defineProperty(e.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(t){this._tooltipXField=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(t){this._tooltipYField=t},enumerable:!0,configurable:!0}),e.prototype.min=function(t){return this._tmin.getKey(t.uid)},e.prototype.max=function(t){return this._tmax.getKey(t.uid)},e.prototype.selectionMin=function(t){var e=this._smin.getKey(t.uid);return O(e)||(e=this.min(t)),e},e.prototype.selectionMax=function(t){var e=this._smax.getKey(t.uid);return O(e)||(e=this.max(t)),e},e.prototype.processConfig=function(e){if(e){if(w(e.baseAxis)&&T(e.baseAxis)&&(this.map.hasKey(e.baseAxis)?e.baseAxis=this.map.getKey(e.baseAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.baseAxis+'" found for `baseAxis`.'),delete e.baseAxis)),w(e.xAxis)&&T(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.xAxis+'" found for `xAxis`.'),delete e.xAxis)),w(e.yAxis)&&T(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.yAxis+'" found for `yAxis`.'),delete e.yAxis)),w(e.axisRanges)&&D(e.axisRanges))for(var i=0,n=e.axisRanges.length;i<n;i++){var r=e.axisRanges[i];w(r.type)||(r.type="AxisDataItem"),w(r.axis)&&T(r.axis)&&this.map.hasKey(r.axis)?r.component=this.map.getKey(r.axis):w(r.component)&&T(r.component)&&this.map.hasKey(r.component)&&(r.component=this.map.getKey(r.component))}w(e.dataFields)&&I(e.dataFields)||this.processingErrors.push("`dataFields` is not set for series ["+(this.name||"unnamed")+"]")}t.prototype.processConfig.call(this,e)},e.prototype.getPoint=function(t,e,i,n,r,s,o){var a=this.xAxis.getX(t,e,n),l=this.yAxis.getY(t,i,r);return{x:a=B(a,-1e5,1e5),y:l=B(l,-1e5,1e5)}},e.prototype.updateItemReaderText=function(){var t="";zt(this.dataFields,function(e,i){t+="{"+e+"} "}),this.itemReaderText=t},Object.defineProperty(e.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorHoverEnabled",{get:function(){return this.getPropertyValue("cursorHoverEnabled")},set:function(t){this.setPropertyValue("cursorHoverEnabled",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"excludeFromTotal",{get:function(){return this.getPropertyValue("excludeFromTotal")},set:function(t){this.setPropertyValue("excludeFromTotal",t)},enumerable:!0,configurable:!0}),e}(No);pe.registeredClasses.XYSeries=da,pe.registeredClasses.XYSeriesDataItem=ca;var fa=function(t){function e(){var e=t.call(this)||this;e.point={x:0,y:0},e._stick="none",e.className="Cursor",e.width=g(100),e.height=g(100),e.shouldClone=!1,e.hide(0),e.trackable=!0,e.clickable=!0,e.isMeasured=!1;var i=Ir();return e._disposers.push(i.body.events.on("down",e.handleCursorDown,e)),e._disposers.push(i.body.events.on("up",e.handleCursorUp,e)),e._disposers.push(i.body.events.on("track",e.handleCursorMove,e)),e.applyTheme(),e}return a(e,t),e.prototype.handleCursorMove=function(t){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&t.touch)){if(("zoom"==this._generalBehavior||"pan"==this._generalBehavior)&&this.downPoint||Ir().isLocalElement(t.pointer,this.paper.svg,this.uid)){var e=Li(t.pointer.point,this);return"hard"==this._stick&&this._stickPoint&&(e=this._stickPoint),"soft"==this._stick&&this._stickPoint&&(this.fitsToBounds(e)||(e=this._stickPoint)),this.triggerMove(e),e}this.isHidden&&this.isHiding||this.hide()}},e.prototype.hideReal=function(e){if("hard"!=this._stick&&"soft"!=this._stick||!this._stickPoint)return t.prototype.hideReal.call(this,e)},e.prototype.triggerMove=function(t,e){t.x=E(t.x,1),t.y=E(t.y,1),e&&(this._stick=e),"hard"!=e&&"soft"!=e||(this._stickPoint=t),this.triggerMoveReal(t)},e.prototype.triggerMoveReal=function(t){this.point.x==t.x&&this.point.y==t.y||(this.point=t,this.invalidatePosition(),this.fitsToBounds(t)?this.show(0):this.downPoint||this.hide(0),this.visible&&(this.getPositions(),this.dispatch("cursorpositionchanged")))},e.prototype.triggerDown=function(t){this.triggerDownReal(t)},e.prototype.triggerDownReal=function(t){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomstarted");break;case"select":this.dispatchImmediately("selectstarted");break;case"pan":this.dispatchImmediately("panstarted"),Ir().setGlobalStyle(zr.grabbing)}},e.prototype.triggerUp=function(t){this.triggerUpReal(t)},e.prototype.triggerUpReal=function(t){this.updatePoint(this.upPoint);var e=Ir();if(q(this._upPointOrig,this._downPointOrig)>e.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomended");break;case"select":this.dispatchImmediately("selectended");break;case"pan":this.dispatchImmediately("panended"),e.setGlobalStyle(zr.default)}this.downPoint=void 0,this.updateSelection()}else this.dispatchImmediately("behaviorcanceled"),e.setGlobalStyle(zr.default),this.downPoint=void 0},e.prototype.updateSelection=function(){},e.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},e.prototype.handleCursorDown=function(t){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&t.touch)&&Ir().isLocalElement(t.pointer,this.paper.svg,this.uid)){var e=Li(t.pointer.point,this);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)}},e.prototype.shouldPreventGestures=function(t){return!0},e.prototype.updatePoint=function(t){},e.prototype.handleCursorUp=function(t){if(this.interactionsEnabled&&(("zoom"==this._generalBehavior||"pan"==this._generalBehavior)&&this.downPoint||Ir().isLocalElement(t.pointer,this.paper.svg,this.uid))){var e=Li(t.pointer.point,this);this._upPointOrig={x:e.x,y:e.y},this.triggerMove(e),this.triggerUp(e)}},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t,w(this._chart.plotContainer)&&Ir().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),e}(ps);pe.registeredClasses.Cursor=fa;var ga=function(t){function e(){var e=t.call(this)||this;e._lineX=new Ot,e._lineY=new Ot,e._xAxis=new Ot,e._yAxis=new Ot,e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var i=new Br,n=e.createChild(hs);n.shouldClone=!1,n.fillOpacity=.2,n.fill=i.getFor("alternativeBackground"),n.isMeasured=!1,n.interactionsEnabled=!1,e.selection=n,e._disposers.push(e.selection);var r=e.createChild(hs);r.shouldClone=!1,r.stroke=i.getFor("grid"),r.fill=Ee(),r.strokeDasharray="3,3",r.isMeasured=!1,r.strokeOpacity=.4,r.interactionsEnabled=!1,r.y=0,e.lineX=r,e._disposers.push(e.lineX);var s=e.createChild(hs);return s.shouldClone=!1,s.stroke=i.getFor("grid"),s.fill=Ee(),s.strokeDasharray="3,3",s.isMeasured=!1,s.strokeOpacity=.4,s.interactionsEnabled=!1,s.x=0,e.lineY=s,e._disposers.push(e.lineY),e.events.on("sizechanged",e.updateSize,e,!1),e._disposers.push(e._lineX),e._disposers.push(e._lineY),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.mask=e,e.applyTheme(),e}return a(e,t),e.prototype.updateSize=function(){this.lineX&&(this.lineX.path=Vs({x:0,y:0})+Fs({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=Vs({x:0,y:0})+Fs({x:this.innerWidth,y:0}))},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint;if(t){var e=this.point;this.lineX&&(e.x=this.lineX.pixelX),this.lineY&&(e.y=this.lineY.pixelY);var i=this.selection,n=Math.min(e.x,t.x),r=Math.min(e.y,t.y),s=E(Math.abs(t.x-e.x),this._positionPrecision),o=E(Math.abs(t.y-e.y),this._positionPrecision);switch(this.behavior){case"zoomX":r=0,o=this.pixelHeight;break;case"zoomY":n=0,s=this.pixelWidth;break;case"selectX":r=0,o=this.pixelHeight;break;case"selectY":n=0,s=this.pixelWidth}i.x=n,i.y=r,i.path=Bs(s,o),i.validatePosition()}else this.selection.hide()}},e.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},e.prototype.triggerMoveReal=function(e){t.prototype.triggerMoveReal.call(this,e),this.snapToSeries&&!this.snapToSeries.isHidden||this.updateLinePositions(e),this.downPoint&&q(this.downPoint,e)>3&&"pan"==this._generalBehavior&&(this.getPanningRanges(),this.dispatch("panning"))},e.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()},e.prototype.triggerDownReal=function(e){if(this.visible&&!this.isHiding)if(this.fitsToBounds(e)){this.downPoint={x:e.x,y:e.y},this.updatePoint(e),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var i=this.selection,n=this.downPoint.x,r=this.downPoint.y;this._usesSelection&&(i.x=n,i.y=r,i.path="",i.show()),t.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},e.prototype.updatePoint=function(t){this.lineX&&(t.x=this.lineX.pixelX),this.lineY&&(t.y=this.lineY.pixelY)},e.prototype.triggerUpReal=function(e){q(this._upPointOrig,this._downPointOrig)>Ir().getHitOption(this.interactions,"hitTolerance")?this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),this.getRanges(),"selectX"==this.behavior||"selectY"==this.behavior||"selectXY"==this.behavior||this.selection.hide(),t.prototype.triggerUpReal.call(this,e)):(this.selection.hide(0),"pan"==this._generalBehavior&&Ir().setGlobalStyle(zr.default));this.downPoint=void 0},e.prototype.getPanningRanges=function(){var t=E(this.downPoint.x/this.innerWidth,5),e=E(this.downPoint.y/this.innerHeight,5),i=t-E(this.point.x/this.innerWidth,5),n=-e+E(this.point.y/this.innerHeight,5);this.xRange={start:i,end:1+i},this.yRange={start:n,end:1+n},"panX"==this.behavior&&(this.yRange.start=0,this.yRange.end=1),"panY"==this.behavior&&(this.xRange.start=0,this.xRange.end=1)},e.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),this.selection;var t=E(this.downPoint.x/this.innerWidth,5),e=E(this.upPoint.x/this.innerWidth,5),i=E(this.downPoint.y/this.innerHeight,5),n=E(this.upPoint.y/this.innerHeight,5);this.xRange={start:z(t,e),end:X(t,e)},this.yRange={start:z(i,n),end:X(i,n)}},Object.defineProperty(e.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")},set:function(t){this.setPropertyValue("behavior",t,!0),this._usesSelection=!1,-1!=t.indexOf("zoom")&&(this._generalBehavior="zoom",this._usesSelection=!0),-1!=t.indexOf("select")&&(this._generalBehavior="select",this._usesSelection=!0),-1!=t.indexOf("pan")&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),e.prototype.shouldPreventGestures=function(t){return!(this.interactions.isTouchProtected&&t||"none"==this.behavior)},Object.defineProperty(e.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(t){this.setPropertyValue("fullWidthLineX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(t){this.setPropertyValue("fullWidthLineY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(t){this._xAxis.get()!=t&&this._xAxis.set(t,new Tt([t.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(t){this._yAxis.get()!=t&&this._yAxis.set(t,new Tt([t.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1)]))},enumerable:!0,configurable:!0}),e.prototype.handleXTooltipPosition=function(t){var e=this.xAxis.tooltip,i=Di({x:e.pixelX,y:e.pixelY},this),n=i.x;if(this.lineX&&(this.lineX.x=n,this.fitsToBounds(i)||this.hide()),this.xAxis&&this.fullWidthLineX){var r=this.xAxis.currentItemStartPoint,s=this.xAxis.currentItemEndPoint;if(r&&s){this.lineX.x=n;var o=s.x-r.x;this.lineX.path=Bs(o,this.innerHeight,-o/2)}}},e.prototype.handleYTooltipPosition=function(t){var e=this.yAxis.tooltip,i=Di({x:e.pixelX,y:e.pixelY},this),n=i.y;if(this.lineY&&(this.lineY.y=n,this.fitsToBounds(i)||this.hide()),this.yAxis&&this.fullWidthLineY){var r=this.yAxis.currentItemStartPoint,s=this.yAxis.currentItemEndPoint;if(r&&s){this.lineY.y=n;var o=s.y-r.y;this.lineY.path=Bs(this.innerWidth,o,0,-o/2)}}},Object.defineProperty(e.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(e.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(e.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}),e.prototype.processConfig=function(e){e&&(w(e.xAxis)&&T(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.xAxis+'" found for `xAxis`'),delete e.xAxis)),w(e.yAxis)&&T(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.yAxis+'" found for `yAxis`'),delete e.yAxis)),w(e.snapToSeries)&&T(e.snapToSeries)&&(this.map.hasKey(e.snapToSeries)?e.snapToSeries=this.map.getKey(e.snapToSeries):(this.processingErrors.push('[XYCursor] No series with id "'+e.snapToSeries+'" found for `series`'),delete e.snapToSeries))),t.prototype.processConfig.call(this,e)},Object.defineProperty(e.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(t){this.setPropertyValue("snapToSeries",t)&&(this._snapToDisposer&&this._snapToDisposer.dispose(),t&&(this._snapToDisposer=t.events.on("tooltipshownat",this.handleSnap,this,!1)))},enumerable:!0,configurable:!0}),e.prototype.handleSnap=function(){var t=this.snapToSeries,e=t.tooltipY,i=t.tooltipX;this.xAxis&&this.xAxis.renderer.opposite&&(e-=this.pixelHeight),this.point={x:i,y:e},this.getPositions();var n=i,r=e;i-=this.pixelWidth,this.yAxis&&this.yAxis.renderer.opposite&&(i+=this.pixelWidth);var s=t.tooltip,o=s.animationDuration,a=s.animationEasing;t.baseAxis==t.xAxis&&t.yAxis.showTooltipAtPosition(this.yPosition),t.baseAxis==t.yAxis&&t.xAxis.showTooltipAtPosition(this.xPosition),this.lineX.animate([{property:"y",to:e}],o,a),this.lineY.animate([{property:"x",to:i}],o,a),this.xAxis||this.lineX.animate([{property:"x",to:n}],o,a),this.yAxis||this.lineY.animate([{property:"y",to:r}],o,a)},e.prototype.dispose=function(){this.hide(0),t.prototype.dispose.call(this)},e}(fa);pe.registeredClasses.XYCursor=ga;var ya=function(t){function e(){var e=t.call(this)||this;e._chart=new Ot,e.className="XYChartScrollbar";var i=new Br;e.padding(0,0,0,0);var n=e.createChild(va);n.shouldClone=!1,n.margin(0,0,0,0),n.padding(0,0,0,0),n.interactionsEnabled=!1,e._scrollbarChart=n,e._disposers.push(e._scrollbarChart),e.minHeight=60,e.minWidth=60;var r=e.createChild(hs);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.fill=i.getFor("background"),r.fillOpacity=.8,r.interactionsEnabled=!1,r.isMeasured=!1,r.toBack(),e._unselectedOverlay=r,e._disposers.push(e._unselectedOverlay),n.toBack(),e.background.cornerRadius(0,0,0,0);var s=e.thumb.background;s.cornerRadius(0,0,0,0),s.fillOpacity=0,s.fill=i.getFor("background");var o=s.states.getKey("hover");o&&(o.properties.fillOpacity=.2);var a=s.states.getKey("down");return a&&(a.properties.fillOpacity=.4),e._disposers.push(e._chart),e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new me,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}),e.prototype.handleSeriesAdded=function(t){var e=t.newValue,i=this.scrollbarChart;i.zoomOutButton.disabled=!0,this.chart=e.chart;var n=!0,r=!0;Qt(this.series.iterator(),function(t){t!=e&&(t.xAxis==e.xAxis&&(n=!1),t.yAxis==e.yAxis&&(r=!1))});var s=new Br,o=e.clone();if(n){var a=e.xAxis.clone();i.xAxes.moveValue(a),a.title.disabled=!0,a.rangeChangeDuration=0,a.id=e.uid,(l=a.renderer).ticks.template.disabled=!0,l.inside=!0,l.labels.template.inside=!0,l.line.strokeOpacity=0,l.minLabelPosition=.02,l.maxLabelPosition=.98,l.line.disabled=!0,l.axisFills.template.disabled=!0,l.baseGrid.disabled=!0,l.grid.template.strokeOpacity=.05,l.minWidth=void 0,l.minHeight=void 0,l.padding(0,0,0,0),l.chart=i,l.margin(0,0,0,0),l.labels.template.fillOpacity=.5,o.xAxis=a}else this.scrollbarChart.xAxes.each(function(t){t.clonedFrom==e.xAxis&&(o.xAxis=t)});if(r){var l,h=e.yAxis.clone();i.yAxes.moveValue(h),h.title.disabled=!0,h.rangeChangeDuration=0,(l=h.renderer).ticks.template.disabled=!0,l.inside=!0,l.labels.template.inside=!0,l.line.strokeOpacity=0,l.minLabelPosition=.02,l.maxLabelPosition=.98,l.line.disabled=!0,l.axisFills.template.disabled=!0,l.grid.template.stroke=s.getFor("background"),l.baseGrid.disabled=!0,l.grid.template.strokeOpacity=.05,l.minWidth=void 0,l.minHeight=void 0,l.chart=i,l.padding(0,0,0,0),l.margin(0,0,0,0),l.labels.template.fillOpacity=.5,o.yAxis=h}else this.scrollbarChart.yAxes.each(function(t){t.clonedFrom==e.yAxis&&(o.yAxis=t)});o.rangeChangeDuration=0,o.interpolationDuration=0,o.defaultState.transitionDuration=0,o.showOnInit=!1,this._disposers.push(o.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(e.events.on("datavalidated",function(){o.data!=e.data&&(o.data=e.data)},void 0,!1)),o.defaultState.properties.visible=!0,o.filters.push(new Po),i.series.push(o),this.updateByOrientation()},e.prototype.updateByOrientation=function(){var t=this;this._scrollbarChart&&(Qt(this._scrollbarChart.xAxes.iterator(),function(e){var i=e.renderer;"vertical"==t.orientation?(i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10):(i.grid.template.disabled=!1,i.labels.template.disabled=!1,i.minGridDistance=e.clonedFrom.renderer.minGridDistance)}),Qt(this._scrollbarChart.yAxes.iterator(),function(e){var i=e.renderer;"horizontal"==t.orientation?(i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10):(i.grid.template.disabled=!1,i.labels.template.disabled=!1,i.minGridDistance=e.clonedFrom.renderer.minGridDistance)}))},e.prototype.handleSeriesRemoved=function(t){t.oldValue.events.off("validated",this.zoomOutAxes,this)},Object.defineProperty(e.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data&&(this.scrollbarChart.data=this.chart.data)},e.prototype.zoomOutAxes=function(){var t=this.scrollbarChart;Qt(t.xAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)}),Qt(t.yAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)})},e.prototype.updateThumb=function(){if(t.prototype.updateThumb.call(this),this._unselectedOverlay){var e=this.thumb,i=e.pixelX||0,n=e.pixelY||0,r=e.pixelWidth||0,s=e.pixelHeight||0,o="";"horizontal"==this.orientation?(o=Ns({x:-1,y:0,width:i,height:s}),o+=Ns({x:i+r,y:0,width:(this.pixelWidth||0)-i-r,height:s})):(o=Ns({x:0,y:0,width:r,height:n}),o+=Ns({x:0,y:n+s,width:r,height:(this.pixelHeight||0)-n-s})),this._unselectedOverlay.path=o}},e.prototype.processConfig=function(e){if(e&&w(e.series)&&D(e.series))for(var i=0,n=e.series.length;i<n;i++){var r=e.series[i];if(w(r)&&T(r)){if(!this.map.hasKey(r))throw Error("XYChartScrollbar error: Series with id `"+r+"` does not exist.");e.series[i]=this.map.getKey(r)}}t.prototype.processConfig.call(this,e)},e}(qs);pe.registeredClasses.XYChartScrollbar=ya;var ma=function(t){function e(){var e=t.call(this)||this;return e.className="XYChartDataItem",e.applyTheme(),e}return a(e,t),e}(Ho),va=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=la,e._axisRendererY=ea,e._seriesPoints=[],e.className="XYChart",e.maskBullets=!0,e.arrangeTooltips=!0;var i=e.chartContainer;i.layout="vertical",e.padding(15,15,15,15);var n=i.createChild(ps);n.shouldClone=!1,n.layout="vertical",n.width=g(100),n.zIndex=1,e.topAxesContainer=n;var r=i.createChild(ps);r.shouldClone=!1,r.layout="horizontal",r.width=g(100),r.height=g(100),r.zIndex=0,e.yAxesAndPlotContainer=r;var s=i.createChild(ps);s.shouldClone=!1,s.width=g(100),s.layout="vertical",s.zIndex=1,e.bottomAxesContainer=s;var o=r.createChild(ps);o.shouldClone=!1,o.layout="horizontal",o.height=g(100),o.contentAlign="right",o.events.on("transformed",e.updateXAxesMargins,e,!1),o.zIndex=1,e.leftAxesContainer=o;var a=r.createChild(ps);a.shouldClone=!1,a.height=g(100),a.width=g(100),a.background.fillOpacity=0,e.plotContainer=a,e.mouseWheelBehavior="none",e._cursorContainer=a;var l=r.createChild(ps);l.shouldClone=!1,l.layout="horizontal",l.height=g(100),l.zIndex=1,l.events.on("transformed",e.updateXAxesMargins,e,!1),e.rightAxesContainer=l,e.seriesContainer.parent=a,e.bulletsContainer.parent=a;var h=a.createChild(lo);h.shouldClone=!1,h.align="right",h.valign="top",h.zIndex=Number.MAX_SAFE_INTEGER,h.marginTop=5,h.marginRight=5,h.hide(0),e.zoomOutButton=h;var u=e.plotContainer.createChild(ps);return u.shouldClone=!1,u.width=g(100),u.height=g(100),u.isMeasured=!1,u.zIndex=4,u.layout="none",e.axisBulletsContainer=u,e._bulletMask=e.plotContainer,e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),this.zoomOutButton.exportable=!1,w(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y chart"))},e.prototype.draw=function(){t.prototype.draw.call(this),this.seriesContainer.toFront(),this.bulletsContainer.toFront(),this.maskBullets&&(this.bulletsContainer.mask=this._bulletMask),this.updateSeriesLegend()},e.prototype.updatePlotElements=function(){Qt(this.series.iterator(),function(t){t.invalidate()})},e.prototype.validateData=function(){0==this._parseDataFrom&&(Qt(this.xAxes.iterator(),function(t){t.dataChangeUpdate()}),Qt(this.yAxes.iterator(),function(t){t.dataChangeUpdate()}),Qt(this.series.iterator(),function(t){t.dataChangeUpdate()})),t.prototype.validateData.call(this)},e.prototype.updateXAxesMargins=function(){var t=this.leftAxesContainer.measuredWidth,e=this.rightAxesContainer.measuredWidth,i=this.bottomAxesContainer;i.paddingLeft==t&&i.paddingRight==e||(i.paddingLeft=t,i.paddingRight=e);var n=this.topAxesContainer;n.paddingLeft==t&&n.paddingRight==e||(n.paddingLeft=t,n.paddingRight=e)},e.prototype.reinit=function(){t.prototype.reinit.call(this),this.series.each(function(t){t.appeared=!1})},e.prototype.handleXAxisChange=function(t){this.updateXAxis(t.target)},e.prototype.handleYAxisChange=function(t){this.updateYAxis(t.target)},e.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,!1)),e.axisLetter="X",e.events.on("startendchanged",this.handleXAxisRangeChange,this,!1),e.dataProvider=this,this.updateXAxis(e.renderer),this.processAxis(e)},e.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)},e.prototype.handleXAxisRangeChange=function(){var t=this.getCommonAxisRange(this.xAxes);this.scrollbarX&&this.zoomAxes(this.xAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarX,t)},e.prototype.toggleZoomOutButton=function(){if(this.zoomOutButton){var t=!1;Jt(this.xAxes.iterator(),function(e){return 0==E(e.start,3)&&1==E(e.end,3)||(t=!0,!1)}),Jt(this.yAxes.iterator(),function(e){return 0==E(e.start,3)&&1==E(e.end,3)||(t=!0,!1)}),this.seriesAppeared||(t=!1),t?this.zoomOutButton.show():this.zoomOutButton.hide()}},e.prototype.seriesAppeared=function(){var t=!1;return Qt(this.series.iterator(),function(e){if(!e.appeared)return t=!1,!1}),t},e.prototype.handleYAxisRangeChange=function(){var t=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,t)},e.prototype.updateScrollbar=function(t,e){t&&(t.skipRangeEvents(),t.start=e.start,t.end=e.end)},e.prototype.getCommonAxisRange=function(t){var e,i;return Qt(t.iterator(),function(t){var n=t.start,r=t.end;t.renderer.inversed&&(n=1-t.end,r=1-t.start),(!O(e)||n<e)&&(e=n),(!O(i)||r>i)&&(i=r)}),{start:e,end:i}},e.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()},e.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()},e.prototype.processAxis=function(t){var e=this;t instanceof pa&&this._dataUsers.moveValue(t);var i=t.renderer;i.gridContainer.parent=this.plotContainer,i.gridContainer.toBack(),i.breakContainer.parent=this.plotContainer,i.breakContainer.toFront(),i.breakContainer.zIndex=10,t.addDisposer(new kt(function(){e.dataUsers.removeValue(t)})),i.bulletsContainer.parent=this.axisBulletsContainer,this.plotContainer.events.on("maxsizechanged",function(){e.inited&&(t.invalidateDataItems(),e.updateSeriesMasks())},t,!1)},e.prototype.updateSeriesMasks=function(){Gi()&&this.series.each(function(t){var e=t.mainContainer.mask;t.mainContainer.mask=void 0,t.mainContainer.mask=e})},Object.defineProperty(e.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new me,this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1)),this._xAxes},enumerable:!0,configurable:!0}),e.prototype.handleAxisRemoval=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),e.autoDispose&&e.dispose()},Object.defineProperty(e.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new me,this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1)),this._yAxes},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(e){try{t.prototype.handleSeriesAdded.call(this,e);var i=e.newValue;0!=this.xAxes.length&&0!=this.yAxes.length||(pe.removeFromInvalidComponents(i),i.dataInvalid=!1),i.xAxis,i.yAxis,null==i.fill&&(i.fill=this.colors.next()),null==i.stroke&&(i.stroke=i.fill)}catch(t){this.raiseCriticalError(t)}},Object.defineProperty(e.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,!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}),e.prototype.createCursor=function(){return new ga},e.prototype.handleCursorPositionChange=function(){var t=this.cursor;if(t.visible&&!t.isHiding){var e=this.cursor.xPosition,i=this.cursor.yPosition;this.showSeriesTooltip({x:e,y:i});var n=void 0,r=t.snapToSeries;r&&(r.baseAxis==r.xAxis&&(n=r.yAxis),r.baseAxis==r.yAxis&&(n=r.xAxis)),this._seriesPoints=[],this.showAxisTooltip(this.xAxes,e,n),this.showAxisTooltip(this.yAxes,i,n),this.sortSeriesTooltips(this._seriesPoints)}},e.prototype.handleHideCursor=function(){this.hideObjectTooltip(this.xAxes),this.hideObjectTooltip(this.yAxes),this.hideObjectTooltip(this.series),this.updateSeriesLegend()},e.prototype.updateSeriesLegend=function(){Qt(this.series.iterator(),function(t){t.updateLegendValue()})},e.prototype.hideObjectTooltip=function(t){Qt(t.iterator(),function(t){t.hideTooltip(0)})},e.prototype.showSeriesTooltip=function(t){var e=this;if(t){var i=[];this.series.each(function(n){if(n.xAxis instanceof aa&&n.xAxis.snapTooltip||n.yAxis instanceof aa&&n.yAxis.snapTooltip);else{var r=n.showTooltipAtPosition(t.x,t.y);r&&(n.tooltip.setBounds({x:0,y:0,width:e.pixelWidth,height:e.pixelHeight}),i.push({series:n,point:r}))}}),this.arrangeTooltips&&this.sortSeriesTooltips(i)}else this.series.each(function(t){t.hideTooltip()})},e.prototype.sortSeriesTooltips=function(t){var e=Ai({x:-.5,y:-.5},this.plotContainer),i=Ai({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),n=0,r=[];yt(t,function(t){var s=t.point;s&&ct(s,{x:e.x,y:e.y,width:i.x-e.x,height:i.y-e.y})&&(r.push({point:s,series:t.series}),n+=s.y)}),(t=r).sort(function(t,e){return t.point.y>e.point.y?1:t.point.y<e.point.y?-1:0});var s=n/t.length,o=Ei({x:0,y:0},this.svgContainer.SVGContainer).y;if(t.length>0){var a=e.y,l=i.y;Ri({x:0,y:a},this);var h=!1;if(s>a+(l-a)/2)for(var u=l,p=t.length-1;p>=0;p--){var c=(y=t[p].series).tooltip,d=t[p].point.y;if(c.setBounds({x:0,y:-o,width:this.pixelWidth,height:u+o}),c.invalid&&c.validate(),c.toBack(),(u=Ai({x:0,y:c.label.pixelY-c.pixelY+d-c.pixelMarginTop},c).y)<-o){h=!0;break}}if(s<=a+(l-a)/2||h)for(var f=a,g=(p=0,t.length);p<g;p++){var y=t[p].series;d=t[p].point.y;(c=y.tooltip).setBounds({x:0,y:f,width:this.pixelWidth,height:l}),c.invalid&&c.validate(),c.toBack(),f=Ai({x:0,y:c.label.pixelY+c.label.measuredHeight-c.pixelY+d+c.pixelMarginBottom},c).y}}},e.prototype.showAxisTooltip=function(t,e,i){var n=this;Qt(t.iterator(),function(t){t!=i&&(n.dataItems.length>0||t.dataItems.length>0)&&t.showTooltipAtPosition(e)})},e.prototype.getUpdatedRange=function(t,e){if(t){var i,n,r=t.renderer.inversed;t.renderer instanceof ea&&(e=G(e)),r?(G(e),i=1-t.end,n=1-t.start):(i=t.start,n=t.end);var s=n-i;return{start:i+e.start*s,end:i+e.end*s}}},e.prototype.handleCursorZoomEnd=function(t){var e=this.cursor,i=e.behavior;if("zoomX"==i||"zoomXY"==i){var n=e.xRange;n&&this.xAxes.length>0&&((n=this.getUpdatedRange(this.xAxes.getIndex(0),n)).priority="start",this.zoomAxes(this.xAxes,n))}if("zoomY"==i||"zoomXY"==i){var r=e.yRange;r&&this.yAxes.length>0&&((r=this.getUpdatedRange(this.yAxes.getIndex(0),r)).priority="start",this.zoomAxes(this.yAxes,r))}this.handleHideCursor()},e.prototype.handleCursorPanStart=function(t){var e=this.xAxes.getIndex(0);e&&(this._panStartXRange={start:e.start,end:e.end});var i=this.yAxes.getIndex(0);i&&(this._panStartYRange={start:i.start,end:i.end})},e.prototype.handleCursorPanEnd=function(t){var e=this.cursor.behavior;if(this._panEndXRange&&("panX"==e||"panXY"==e)){var i=0;(n=this._panEndXRange).start<0&&(i=n.start),n.end>1&&(i=n.end-1),this.zoomAxes(this.xAxes,{start:n.start-i,end:n.end-i},!1,!0),this._panEndXRange=void 0,this._panStartXRange=void 0}if(this._panEndYRange&&("panY"==e||"panXY"==e)){var n;i=0;(n=this._panEndYRange).start<0&&(i=n.start),n.end>1&&(i=n.end-1),this.zoomAxes(this.yAxes,{start:n.start-i,end:n.end-i},!1,!0),this._panEndYRange=void 0,this._panStartYRange=void 0}},e.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},e.prototype.handleCursorPanning=function(t){var e=this.cursor,i=e.behavior,n=e.maxPanOut;if(this._panStartXRange&&("panX"==i||"panXY"==i)){var r=this._panStartXRange,s=e.xRange,o=this.getCommonAxisRange(this.xAxes),a=r.end-r.start,l=s.start*(o.end-o.start),h=Math.max(-n,l+r.start),u=Math.min(l+r.end,1+n);h<=0&&(u=h+a),u>=1&&(h=u-a);var p={start:h,end:u};this._panEndXRange=p,this.zoomAxes(this.xAxes,p,!1,!1,e.maxPanOut)}if(this._panStartYRange&&("panY"==i||"panXY"==i)){r=this._panStartYRange,s=e.yRange,o=this.getCommonAxisRange(this.yAxes),a=r.end-r.start,l=s.start*(o.end-o.start),h=Math.max(-n,l+r.start),u=Math.min(l+r.end,1+n);h<=0&&(u=h+a),u>=1&&(h=u-a);p={start:h,end:u};this._panEndYRange=p,this.zoomAxes(this.yAxes,p,!1,!1,e.maxPanOut)}this.handleHideCursor()},e.prototype.handleCursorZoomStart=function(t){},Object.defineProperty(e.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),t.adapter.add("positionValue",function(t){var i=e.xAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(t.position)),t}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.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,!1),t.adapter.add("positionValue",function(t){var i=e.yAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(t.position)),t}))},enumerable:!0,configurable:!0}),e.prototype.handleXScrollbarChange=function(t){if(this.inited){var e=t.target,i=e.range;1==i.end&&(i.priority="end"),0==i.start&&(i.priority="start"),i=this.zoomAxes(this.xAxes,i),e.fixRange(i)}},e.prototype.handleYScrollbarChange=function(t){if(this.inited){var e=t.target,i=e.range;1==i.end&&(i.priority="end"),0==i.start&&(i.priority="start"),i=this.zoomAxes(this.yAxes,i),e.fixRange(i)}},e.prototype.zoomAxes=function(t,e,i,n,r){var s={start:0,end:1};return this.showSeriesTooltip(),this.dataInvalid||Qt(t.iterator(),function(t){t.renderer.inversed&&(e=G(e)),t.hideTooltip(0),n&&(e.start=t.roundPosition(e.start+1e-4,0),e.end=t.roundPosition(e.end+1e-4,0));var o=t.zoom(e,i,i,r);t.renderer.inversed&&(o=G(o)),s=o}),s},Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(t){this.setPropertyValue("arrangeTooltips",t,!0)},enumerable:!0,configurable:!0}),e.prototype.handleWheel=function(t){var e=this.plotContainer,i=Di(ji(t.point,this.htmlContainer,this.svgContainer.cssScale),e),n=t.shift.y,r=this.getCommonAxisRange(this.xAxes),s=this.getCommonAxisRange(this.yAxes),o=this.mouseWheelBehavior;if("panX"==o||"panXY"==o){var a=r.end-r.start,l=Math.max(-0,r.start+.05*n/100),h=Math.min(r.end+.05*n/100,1);l<=0&&(h=l+a),h>=1&&(l=h-a),this.zoomAxes(this.xAxes,{start:l,end:h})}if("panY"==o||"panXY"==o){n*=-1;var u=s.end-s.start,p=Math.max(-0,s.start+.05*n/100),c=Math.min(s.end+.05*n/100,1);p<=0&&(c=p+u),c>=1&&(p=c-u),this.zoomAxes(this.yAxes,{start:p,end:c})}if("zoomX"==o||"zoomXY"==o){var d=i.x/e.maxWidth;l=Math.max(-0,r.start-.05*n/100*d);l=Math.min(l,r.start+(r.end-r.start)*d-.05*.05);h=Math.min(r.end+.05*n/100*(1-d),1);h=Math.max(h,r.start+(r.end-r.start)*d+.05*.05),this.zoomAxes(this.xAxes,{start:l,end:h})}if("zoomY"==o||"zoomXY"==o){var f=i.y/e.maxHeight;p=Math.max(-0,s.start-.05*n/100*(1-f));p=Math.min(p,s.start+(s.end-s.start)*f-.05*.05);c=Math.min(s.end+.05*n/100*f,1);c=Math.max(c,s.start+(s.end-s.start)*f+.05*.05),this.zoomAxes(this.yAxes,{start:p,end:c})}},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),e.prototype.dataSourceDateFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),Qt(this.series.iterator(),function(t){e=i.populateDataSourceFields(e,t.dataFields,["dateX","dateY","openDateX","openDateY"])}),e},e.prototype.dataSourceNumberFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),Qt(this.series.iterator(),function(t){e=i.populateDataSourceFields(e,t.dataFields,["valueX","valueY","openValueX","openValueY"])}),e},e.prototype.processConfig=function(e){if(e){var i=[],n=[];if(w(e.xAxes)&&D(e.xAxes))for(var r=0,s=e.xAxes.length;r<s;r++){if(!e.xAxes[r].type)throw Error("[XYChart error] No type set for xAxes["+r+"].");w(e.xAxes[r].axisRanges)&&(i.push({axisRanges:e.xAxes[r].axisRanges,index:r}),delete e.xAxes[r].axisRanges)}if(w(e.yAxes)&&D(e.yAxes))for(r=0,s=e.yAxes.length;r<s;r++){if(!e.yAxes[r].type)throw Error("[XYChart error] No type set for yAxes["+r+"].");w(e.yAxes[r].axisRanges)&&(n.push({axisRanges:e.yAxes[r].axisRanges,index:r}),delete e.yAxes[r].axisRanges)}if(w(e.series)&&D(e.series))for(r=0,s=e.series.length;r<s;r++)e.series[r].type=e.series[r].type||"LineSeries";if(w(e.cursor)&&!w(e.cursor.type)&&(e.cursor.type="XYCursor"),w(e.scrollbarX)&&!w(e.scrollbarX.type)&&(e.scrollbarX.type="Scrollbar"),w(e.scrollbarY)&&!w(e.scrollbarY.type)&&(e.scrollbarY.type="Scrollbar"),t.prototype.processConfig.call(this,e),n.length)for(r=0,s=n.length;r<s;r++)this.yAxes.getIndex(n[r].index).config={axisRanges:n[r].axisRanges};if(i.length)for(r=0,s=i.length;r<s;r++)this.xAxes.getIndex(i[r].index).config={axisRanges:i[r].axisRanges}}},e.prototype.configOrder=function(e,i){return e==i?0:"scrollbarX"==e?1:"scrollbarX"==i?-1:"scrollbarY"==e?1:"scrollbarY"==i?-1:"cursor"==e?1:"cursor"==i?-1:"series"==e?1:"series"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.createSeries=function(){return new da},Object.defineProperty(e.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}),e.prototype.copyFrom=function(e){var i=this;e.xAxes.each(function(t){i.xAxes.push(t.clone())}),e.yAxes.each(function(t){i.yAxes.push(t.clone())}),t.prototype.copyFrom.call(this,e),e.cursor&&(this.cursor=e.cursor.clone()),e.scrollbarX&&(this.scrollbarX=e.scrollbarX.clone()),e.scrollbarY&&(this.scrollbarY=e.scrollbarY.clone())},e.prototype.disposeData=function(){t.prototype.disposeData.call(this);var e=this.scrollbarX;e&&e instanceof ya&&e.scrollbarChart.disposeData();var i=this.scrollbarY;i&&i instanceof ya&&i.scrollbarChart.disposeData(),this.xAxes.each(function(t){t.disposeData()}),this.yAxes.each(function(t){t.disposeData()})},e.prototype.addData=function(e,i){this.scrollbarX instanceof ya&&this.addScrollbarData(this.scrollbarX,i),this.scrollbarY instanceof ya&&this.addScrollbarData(this.scrollbarY,i),t.prototype.addData.call(this,e,i)},e.prototype.addScrollbarData=function(t,e){var i=t.scrollbarChart;i._parseDataFrom=i.data.length,i.invalidateData()},e.prototype.removeScrollbarData=function(t,e){var i=t.scrollbarChart;if(O(e)){for(;e>0;){var n=this.dataItems.getIndex(0);n&&i.dataItems.remove(n),i.dataUsers.each(function(t){var e=t.dataItems.getIndex(0);e&&t.dataItems.remove(e)}),i._parseDataFrom--,e--}i.invalidateData()}},e.prototype.removeData=function(e){this.scrollbarX instanceof ya&&this.removeScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof ya&&this.removeScrollbarData(this.scrollbarY,e),t.prototype.removeData.call(this,e)},e.prototype.setTapToActivate=function(e){t.prototype.setTapToActivate.call(this,e),this.cursor&&(this.cursor.interactions.isTouchProtected=e,this.plotContainer.interactions.isTouchProtected=e)},e.prototype.handleTapToActivate=function(){t.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},e.prototype.handleTapToActivateDeactivation=function(){t.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},e}(Wo);pe.registeredClasses.XYChart=va,bs.push({relevant:xs.maybeXS,state:function(t,e){if(t instanceof va&&t.scrollbarX){var i=t.states.create(e);return t.scrollbarX.states.create(e).properties.disabled=!0,i}return null}}),bs.push({relevant:xs.maybeXS,state:function(t,e){if(t instanceof va&&t.scrollbarY){var i=t.states.create(e);return t.scrollbarY.states.create(e).properties.disabled=!0,i}return null}});var ba=function(t){function e(){var e=t.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var i=e.createChild(hs);e.fillSprite=i,i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e._disposers.push(i);var n=e.createChild(hs);return e.strokeSprite=n,n.shouldClone=!1,n.fill=Ee(),n.setElement(e.paper.add("path")),n.isMeasured=!1,e._disposers.push(n),e}return a(e,t),e.prototype.drawSegment=function(t,e,i,n){if(!this.disabled)if(t.length>0&&e.length>0){var r=Vs({x:t[0].x-.2,y:t[0].y-.2})+Vs(t[0])+new no(i,n).smooth(t);0==this.strokeOpacity||0==this.strokeSprite.strokeOpacity||(this.strokeSprite.path=r),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(r+=Fs(e[0])+new no(i,n).smooth(e),r+=Fs(t[0]),r+=" Z",this.fillSprite.path=r)}else this.fillSprite.path="",this.strokeSprite.path=""},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e);var i=this.strokeSprite;Gt(e,i.properties,ls),i.events.copyFrom(e.strokeSprite.events),i.fillOpacity=0;var n=this.fillSprite;Gt(e,n.properties,ls),n.events.copyFrom(e.fillSprite.events),n.strokeOpacity=0},e}(ps);pe.registeredClasses.LineSeriesSegment=ba;var xa=function(t){function e(){var e=t.call(this)||this;return e.className="LineSeriesDataItem",e}return a(e,t),e}(ca),_a=function(t){function e(){var e=t.call(this)||this;return e.minDistance=.5,e.segments=new ve(e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new ge(e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new re(e.segments,function(){return e.segments.create()}),e._segmentsIterator.createNewItems=!0,e.className="LineSeries",e.strokeOpacity=1,e.fillOpacity=0,e.connect=!0,e.tensionX=1,e.tensionY=1,e.autoGapCount=1.1,e.segmentsContainer=e.mainContainer.createChild(ps),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},e.prototype.createSegment=function(){return new ba},e.prototype.createDataItem=function(){return new xa},e.prototype.setInitialWorkingValues=function(t){var e=this._yAxis.get(),i=this._xAxis.get();if(this.appeared&&this.visible){var n=this.dataItems.getIndex(t.index-1);if(t.component=this,this.baseAxis==i&&e instanceof ra){var r=e.minZoomed;n&&(r=n.values.valueY.workingValue),t.setWorkingValue("valueY",r,0),t.setWorkingValue("valueY",t.values.valueY.value),i instanceof aa&&(t.setWorkingLocation("dateX",t.locations.dateX-1,0),t.setWorkingLocation("dateX",t.locations.dateX))}if(this.baseAxis==e&&i instanceof ra){var s=i.minZoomed;n&&(s=n.values.valueX.workingValue),t.setWorkingValue("valueX",s,0),t.setWorkingValue("valueX",t.values.valueX.value),e instanceof aa&&(t.setWorkingLocation("dateY",t.locations.dateX-1,0),t.setWorkingLocation("dateY",t.locations.dateY))}}else this.baseAxis==i&&e instanceof ra&&(i instanceof aa&&t.setWorkingLocation("dateX",t.locations.dateX),i instanceof pa&&t.setWorkingLocation("categoryX",t.locations.categoryX)),this.baseAxis==e&&i instanceof ra&&(e instanceof aa&&t.setWorkingLocation("dateY",t.locations.dateY),e instanceof pa&&t.setWorkingLocation("categoryY",t.locations.categoryY))},e.prototype.updateLegendValue=function(e){t.prototype.updateLegendValue.call(this,e),e&&e.segment&&(this.tooltipColorSource=e.segment)},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this),this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),Qt(this.axisRanges.iterator(),function(t){e.openSegmentWrapper(e._adjustedStartIndex,t)}),Qt(this._segmentsIterator.iterator(),function(t){t.__disabled=!0})},e.prototype.sliceData=function(){for(var t=this.startIndex,e=this.endIndex,i=this.startIndex-1;i>=0;i--){if((r=this.dataItems.getIndex(i))&&r.hasValue(this._xValueFields)&&r.hasValue(this._yValueFields)){t=i;break}}this._adjustedStartIndex=this.findAdjustedIndex(t,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]);i=this.endIndex;for(var n=this.dataItems.length;i<n;i++){var r;if((r=this.dataItems.getIndex(i))&&r.hasValue(this._xValueFields)&&r.hasValue(this._yValueFields)){e=i+1;break}}this._workingStartIndex=t,this._workingEndIndex=e},e.prototype.findAdjustedIndex=function(t,e){var i=this,n=this.propertyFields,r=t;return yt(e,function(e){if(w(n[e]))for(var s=r;s>=0;s--){var o=i.dataItems.getIndex(s);if(o&&w(o.properties[e])){t>s&&(t=s);break}}}),t},e.prototype.openSegmentWrapper=function(t,e){var i={index:t,axisRange:e};do{i=this.openSegment(i.index,i.axisRange)}while(i)},e.prototype.openSegment=function(t,e){var i=!1,n=[];t=Math.min(t,this.dataItems.length);var r,s=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var o=!1,a=this._segmentsIterator.getFirst();a.__disabled=!1,e?(a.parent=e.contents,Gt(e.contents,a,ls)):(Gt(this,a,ls),a.filters.clear(),a.parent=this.segmentsContainer);for(var l=this.connect,h=!1,u=t;u<s;u++){var p=this.dataItems.getIndex(u);if(p.segment=a,p.hasProperties&&(u==t?this.updateSegmentProperties(p.properties,a):o=this.updateSegmentProperties(p.properties,a,!0)),p.hasValue(this._xValueFields)&&p.hasValue(this._yValueFields))this.addPoints(n,p,this.xField,this.yField),h=!0;else{if(u==t)continue;if(!l&&h){r=u;break}}if(r=u,this.baseAxis instanceof aa){var c=this.dataItems.getIndex(u+1);if(c&&this.baseAxis.makeGap(c,p)){i=!0;break}}if(o)break}return this.closeSegment(a,n,t,r,e,i)},e.prototype.addPoints=function(t,e,i,n,r){var s=this.getPoint(e,i,n,e.workingLocations[i],e.workingLocations[n]);r||(e.point=s),t.push(s)},e.prototype.closeSegment=function(t,e,i,n,r,s){var o=[];if(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)for(var a=n;a>=i;a--){var l=this.dataItems.getIndex(a);l.hasValue(this._xValueFields)&&l.hasValue(this._yValueFields)&&this.addPoints(o,l,this.xOpenField,this.yOpenField,!0)}else{var h=this.baseAxis,u=e.length,p=this.xAxis,c=this.yAxis;u>0&&(h==p?(o.push({x:e[u-1].x,y:c.basePoint.y}),o.push({x:e[0].x,y:c.basePoint.y})):(o.push({x:p.basePoint.x,y:e[u-1].y}),o.push({x:p.basePoint.x,y:e[0].y})))}return this.drawSegment(t,e,o),s&&n++,n<this._workingEndIndex-1?{index:n,axisRange:r}:null},e.prototype.drawSegment=function(t,e,i){t.drawSegment(e,i,this.tensionX,this.tensionY)},e.prototype.updateSegmentProperties=function(t,e,i){var n=!1;return zt(t,function(t,r){if(w(r)){var s=e[t],o=void 0;s&&(o=s.toString?s.toString():s);var a=void 0;r&&(a=r.toString?r.toString():r),s==r||null!=o&&null!=a&&o==a||(i||(e[t]=r),n=!0)}}),n},Object.defineProperty(e.prototype,"connect",{get:function(){return this.getPropertyValue("connect")},set:function(t){this.setPropertyValue("connect",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){var e=this,i=t.pixelWidth,n=t.pixelHeight;t.disposeChildren();var r=t.createChild(Is);if(r.shouldClone=!1,Gt(this,r,ls),r.x2=i,r.y=n/2,r.visible=!0,this.fillOpacity>0){var s=t.createChild(us);Gt(this,s,ls),s.width=i,s.height=n,s.y=0,s.strokeOpacity=0,s.visible=!0,r.y=0}var o=t.dataItem;o.color=this.stroke,o.colorOrig=this.fill,Jt(this.bullets.iterator(),function(r){if(r instanceof jo&&!r.copyToLegendMarker)return!1;var s=!1;if(r instanceof ps&&Qt(r.children.iterator(),function(t){if(t instanceof ws)return s=!0,!0}),!s){var o=r.clone();return o.parent=t,o.isMeasured=!0,o.tooltipText=void 0,o.x=i/2,e.fillOpacity>0?o.y=0:o.y=n/2,o.visible=!0,w(o.fill)||(o.fill=e.fill),w(o.stroke)||(o.stroke=e.stroke),!1}})},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(e.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(t){this.setPropertyValue("autoGapCount",t,!0)},enumerable:!0,configurable:!0}),e}(da);pe.registeredClasses.LineSeries=_a,pe.registeredClasses.LineSeriesDataItem=xa;var Pa=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeriesDataItem",e.setLocation("dateX",0,0),e.setLocation("dateY",0,0),e.setLocation("categoryX",0,0),e.setLocation("categoryY",0,0),e.applyTheme(),e}return a(e,t),e}(xa),wa=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return a(e,t),e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.createDataItem=function(){return new Pa},e.prototype.getPoint=function(t,e,i,n,r,s,o){s||(s="valueX"),o||(o="valueY");var a=q({x:this.yAxis.getX(t,i,r,o),y:this.yAxis.getY(t,i,r,o)});0==a&&(a=1e-5);var l=this.xAxis.getAngle(t,e,n,s),h=this.chart.startAngle,u=this.chart.endAngle;return l<h||l>u?void 0:{x:a*W(l),y:a*N(l)}},e.prototype.addPoints=function(t,e,i,n,r){var s=this.getPoint(e,i,n,e.locations[i],e.locations[n]);s&&t.push(s)},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return Ls(t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e.prototype.drawSegment=function(e,i,n){var r=this.yAxis.renderer;this.connectEnds&&360==Math.abs(r.endAngle-r.startAngle)&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(i.push(i[0]),n.length>0&&n.unshift(n[n.length-1])),t.prototype.drawSegment.call(this,e,i,n)},Object.defineProperty(e.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(t){this.setPropertyValue("connectEnds",t,!0)},enumerable:!0,configurable:!0}),e}(_a);pe.registeredClasses.RadarSeries=wa,pe.registeredClasses.RadarSeriesDataItem=Pa;var Ca=function(t){function e(){var e=t.call(this)||this;return e.className="RadarCursor",e.radius=g(100),e.innerRadius=g(0),e.applyTheme(),e.mask=void 0,e}return a(e,t),e.prototype.fitsToBounds=function(t){var e=q(t);return e<this.truePixelRadius+1&&e>this.pixelInnerRadius-1},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.triggerMoveReal=function(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(),t.prototype.triggerMoveReal.call(this,e)},e.prototype.updateLineX=function(t){var e=this.pixelRadius,i=this.startAngle,n=this.endAngle,r=this.pixelInnerRadius;if(e>0&&O(i)&&O(n)&&O(r)){var s=ht(Q(t),i,n),o=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var a=this.xAxis.currentItemStartPoint,l=this.xAxis.currentItemEndPoint;if(a&&l){var h=ht(Q(a),i,n),u=ht(Q(l),i,n)-h;i<n?u<0&&(u+=360):u>0&&(u-=360),o=Vs({x:r*W(s-=u/2),y:r*N(s)})+Fs({x:e*W(s),y:e*N(s)})+Es(s,u,e)+Fs({x:r*W(s+u),y:r*N(s+u)})+Es(s+u,-u,r)}}o||(o=Vs({x:r*W(s),y:r*N(s)})+Fs({x:e*W(s),y:e*N(s)})),this.lineX.path=o}}},e.prototype.updateLineY=function(t){if(this.lineY&&this.lineY.visible){var e=this.startAngle,i=this.endAngle,n=this.truePixelRadius,r=B(q(t),0,this.truePixelRadius);if(O(r)&&O(e)){this.lineY.moveTo({x:0,y:0});var s=void 0,o=i-e;if(this.yAxis&&this.fullWidthLineY){var a=this.yAxis.currentItemStartPoint,l=this.yAxis.currentItemEndPoint;if(a&&l){var h=B(q(a),0,n);s=Vs({x:(r=B(q(l),0,n))*W(e),y:r*N(e)})+Es(e,o,r),s+=Vs({x:h*W(i),y:h*N(i)})+Es(i,-o,h)}}s||(s=Vs({x:r*W(e),y:r*N(e)})+Es(e,i-e,r)),this.lineY.path=s}}},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint;if(t){var e=this.point,i=this.pixelRadius,n=this.truePixelRadius,r=this.pixelInnerRadius,s=Math.min(this.startAngle,this.endAngle),o=Math.max(this.startAngle,this.endAngle),a=ht(Q(t),s,o),l=ht(Q(e),s,o),h=q(t);if(h<n){var u=B(q(e),0,n);this._prevAngle=l;var p=Vs({x:0,y:0}),c=N(a),d=W(a),f=N(l),g=W(l),y=this.behavior;"zoomX"==y||"selectX"==y?p+=Fs({x:i*d,y:i*c})+Es(a,l-a,i)+Fs({x:r*g,y:r*f})+Es(l,a-l,r):"zoomY"==y||"selectY"==y?p=Vs({x:u*W(s),y:u*N(s)})+Es(s,o-s,u)+Fs({x:h*W(o),y:h*N(o)})+Es(o,s-o,h)+" Z":"zoomXY"==y&&(p=Vs({x:u*W(a),y:u*N(a)})+Es(a,l-a,u)+Fs({x:h*W(l),y:h*N(l)})+Es(l,a-l,h)+" Z"),this.selection.path=p}this.selection.moveTo({x:0,y:0})}}},e.prototype.getPositions=function(){if(this.chart){var t=this.pixelInnerRadius,e=this.truePixelRadius-t,i=this.startAngle,n=this.endAngle,r=(ht(Q(this.point),i,n)-i)/(n-i);this.xPosition=r,this.yPosition=B((q(this.point)-t)/e,0,1)}},e.prototype.updatePoint=function(t){},e.prototype.handleXTooltipPosition=function(t){if(this.xAxis.cursorTooltipEnabled){var e=this.xAxis.tooltip;this.updateLineX(Di({x:e.pixelX,y:e.pixelY},this))}},e.prototype.handleYTooltipPosition=function(t){if(this.yAxis.cursorTooltipEnabled){var e=this.yAxis.tooltip;this.updateLineY(Di({x:e.pixelX,y:e.pixelY},this))}},e.prototype.updateLinePositions=function(t){},e.prototype.getRanges=function(){var t=this.downPoint;if(t){var e=this.upPoint;if(this.chart){var i=this.pixelRadius,n=this.startAngle,r=this.endAngle,s=ht(Q(t),this.startAngle,this.endAngle),o=ht(Q(e),this.startAngle,this.endAngle),a=B(q(t),0,i),l=B(q(e),0,i),h=0,u=1,p=0,c=1,d=this.behavior;if("zoomX"==d||"selectX"==d||"zoomXY"==d||"selectXY"==d){var f=r-n;h=E((s-n)/f,5),u=E((o-n)/f,5)}"zoomY"!=d&&"selectY"!=d&&"zoomXY"!=d&&"selectXY"!=d||(p=E(a/i,5),c=E(l/i,5)),this.xRange={start:Math.min(h,u),end:Math.max(h,u)},this.yRange={start:Math.min(p,c),end:Math.max(p,c)},"selectX"==this.behavior||"selectY"==this.behavior||"selectXY"==this.behavior||this.selection.hide()}}},e.prototype.updateSize=function(){},Object.defineProperty(e.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(e.prototype,"pixelRadius",{get:function(){return Qe(this.radius,this.truePixelRadius)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"truePixelRadius",{get:function(){return Je(g(100),z(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"pixelInnerRadius",{get:function(){var t=this.innerRadius;return t instanceof f&&(t=g(100*t.value*this.chart.innerRadiusModifyer)),Qe(t,this.truePixelRadius)||0},enumerable:!0,configurable:!0}),e.prototype.fixPoint=function(t){return t},e}(ga);pe.registeredClasses.RadarCursor=Ca;var Sa=function(t){function e(e){var i=t.call(this,e)||this;return i.className="AxisFillCircular",i.element=i.paper.add("path"),i.radius=g(100),i.applyTheme(),i}return a(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),this.axis){var e=this.axis.renderer;this.fillPath=e.getPositionRangePath(this.startPosition,this.endPosition,this.radius,w(this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(e.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(e.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(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(Ko);pe.registeredClasses.AxisFillCircular=Sa;var ka=function(t){function e(){var e=t.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e}(qo);pe.registeredClasses.GridCircular=ka;var Ta=function(t){function e(){var e=t.call(this)||this;return e.fdx=0,e.fdy=0,e.className="AxisLabelCircular",e.padding(0,0,0,0),e.location=.5,e.radius=0,e.isMeasured=!1,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(t){if(this.setPropertyValue("relativeRotation",t,!0),!w(t)){this.rotation=void 0;var e=this.dataItem;e&&e.component&&e.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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.textAlign="middle")},enumerable:!0,configurable:!0}),e.prototype.pixelRadius=function(t){var e=1;return this.inside&&(e=-1),Je(this.radius,t)*e},e.prototype.pixelRadiusY=function(t,e){var i=1;this.inside&&(i=-1);var n=this.radius;return O(n)?Je(n*=e/t,t)*i:Je(n,e)*i},e.prototype.fixPosition=function(t,e,i,n,r){O(i)||(i=e),O(n)||(n=0),O(r)||(r=0);var s={x:e*W(t),y:i*N(t)};this.invalid&&this.validate();var o=!1,a=this.radius;a instanceof f&&a.value<0?o=!0:a<0&&(o=!0);var l=this.relativeRotation,h=this.pixelRadius(e);if(this.bent){var u={x:e*W(t+180),y:i*N(t+180)};return this.path=Vs(u)+Es(t+180,360,e+h,i+h*i/e),void(this.locationOnPath=.5)}if(O(l)){this.horizontalCenter="none",this.verticalCenter="none",t=ht(t,-180,180);var p=this.bbox.width,c=this.bbox.height,d=this.pixelPaddingBottom,g=this.pixelPaddingTop,y=this.pixelPaddingLeft,m=this.pixelPaddingRight;t>90||t<-90?-90==l&&(l=90,p=0):(-90==l&&(c=-c),90==l&&(l=-90,p=-y-m,c=-c-g-d)),this.rotation=l+t+90;var v=N(l)/2,b=W(l)/2,x=this.rotation;this.dx=c*v*N(x)-p*b*W(x),this.dy=-c*v*W(x)-p*b*N(x),this.inside?t>90||t<-90?h-=(d+g)*W(l)+(y+m)*N(l):h+=(d+this.bbox.height+g)*W(l)+(y+m+this.bbox.width)*N(l):h+=(c+d+g)*W(l)+(p+y+m)*N(l),s.x+=W(t)*h,s.y+=N(t)*h*i/e}else this.horizontalCenter="middle",this.verticalCenter="middle",o?(this.dx=0,this.dy=0,s.x=(e+h)*W(t),s.y=(i+h*i/e)*N(t)):(this.dy=this._measuredHeight/2*N(t),this.dx=this._measuredWidth/2*W(t),s.x+=W(t)*h,s.y+=N(t)*h*i/e);s.x+=n,s.y+=r,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(s)},e}(Zo);pe.registeredClasses.AxisLabelCircular=Ta;var Oa=function(t){function e(){var e=t.call(this)||this;return e.pixelRadiusReal=0,e.layout="none",e.className="AxisRendererCircular",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.useChartAngles=!0,e.radius=g(100),e.isMeasured=!1,e.grid.template.location=0,e.labels.template.location=0,e.labels.template.radius=15,e.ticks.template.location=0,e.ticks.template.pixelPerfect=!1,e.tooltipLocation=0,e.line.strokeOpacity=0,e.applyTheme(),e}return a(e,t),e.prototype.setAxis=function(e){var i=this;t.prototype.setAxis.call(this,e),e.isMeasured=!1;var n=e.tooltip;n.adapter.add("dx",function(t,e){var n=Di({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.cos(Math.atan2(n.y,n.x))-n.x}),n.adapter.add("dy",function(t,e){var n=Di({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.sin(Math.atan2(n.y,n.x))-n.y})},e.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"pixelRadius",{get:function(){return Qe(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(t){this.setPropertyValue("useChartAngles",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return Qe(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e=this.positionToCoordinate(t),i=this.startAngle+(this.endAngle-this.startAngle)*e/this.axisLength;return{x:this.pixelRadius*W(i),y:this.pixelRadius*N(i)}},e.prototype.positionToAngle=function(t){var e=this.axis,i=(this.endAngle-this.startAngle)/(e.end-e.start);return E(e.renderer.inversed?this.startAngle+(e.end-t)*i:this.startAngle+(t-e.start)*i,3)},e.prototype.updateAxisLine=function(){var t=this.pixelRadius,e=this.startAngle,i=this.endAngle-e;this.line.path=Vs({x:t*W(e),y:t*N(e)})+Es(e,i,t,t)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(O(n.x)&&O(n.y)&&t.element){var r=M*Math.atan2(n.y,n.x),s=Qe(w(t.radius)?t.radius:g(100),this.pixelRadius),o=Qe(t.innerRadius,this.pixelRadius);t.zIndex=0;var a=Qe(O(o)?o:this.innerRadius,this.pixelRadius,!0);t.path=Vs({x:a*W(r),y:a*N(r)})+Fs({x:s*W(r),y:s*N(r)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=this.pixelRadius,s=M*Math.atan2(n.y,n.x),o=t.length;t.inside&&(o=-o),t.zIndex=1,t.path=Vs({x:r*W(s),y:r*N(s)})+Fs({x:(r+o)*W(s),y:(r+o)*N(s)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof ta&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e),s=this.pixelRadius,o=M*Math.atan2(r.y,r.x);r={x:s*W(o),y:s*N(o)},this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e.prototype.updateLabelElement=function(t,e,i,n){w(n)||(n=t.location),e+=(i-e)*n,t.fixPosition(this.positionToAngle(e),this.pixelRadius),t.zIndex=2,this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.getPositionRangePath=function(t,e,i,n,r){var s="";if(O(t)&&O(e)){w(i)||(i=this.radius),t=X(t,this.axis.start),(e=z(e,this.axis.end))<t&&(e=t);var o=Qe(i,this.pixelRadius),a=Qe(n,this.pixelRadius,!0),l=this.positionToAngle(t);s=Ls(l,this.positionToAngle(e)-l,o,a,o,r)}return s},e.prototype.createGrid=function(){return new ka},e.prototype.createFill=function(t){return new Sa(t)},e.prototype.createLabel=function(){return new Ta},e.prototype.pointToPosition=function(t){var e=ht(Q(t),this.startAngle,this.endAngle);return this.coordinateToPosition((e-this.startAngle)/360*this.axisLength)},e}(Qo);pe.registeredClasses.AxisRendererCircular=Oa;var Ia=function(t){function e(){var e=t.call(this)||this;return e._chart=new Ot,e.pixelRadiusReal=0,e.className="AxisRendererRadial",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.minGridDistance=30,e.gridType="circles",e.axisAngle=-90,e.isMeasured=!1,e.layout="none",e.radius=g(100),e.line.strokeOpacity=0,e.labels.template.horizontalCenter="middle",e._disposers.push(e._chart),e.applyTheme(),e}return a(e,t),e.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.pixelRadius-this.pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"pixelRadius",{get:function(){return Qe(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"pixelInnerRadius",{get:function(){return Qe(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e=B(this.positionToCoordinate(t),0,1/0);return{x:e*W(this.axisAngle),y:e*N(this.axisAngle)}},e.prototype.updateAxisLine=function(){this.line.path=Vs({x:this.pixelInnerRadius*W(this.axisAngle),y:this.pixelInnerRadius*N(this.axisAngle)})+Fs({x:this.pixelRadius*W(this.axisAngle),y:this.pixelRadius*N(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},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n,r=q(this.positionToPoint(e)),s=this.startAngle,o=this.endAngle;if(O(r)&&t.element){var a=this.chart,l=a.xAxes.getIndex(0),h=a.dataItems.length,u=a.series.getIndex(0);if("polygons"==this.gridType&&h>0&&u&&l&&l instanceof pa){var p=l.renderer.grid.template.location,c=l.getAngle(u.dataItems.getIndex(0),"categoryX",p);n=Vs({x:r*W(c),y:r*N(c)});for(var d=a.dataItems.length,f=1;f<d;f++)n+=Fs({x:r*W(c=l.getAngle(u.dataItems.getIndex(f),"categoryX",p)),y:r*N(c)});n+=Fs({x:r*W(c=l.getAngle(u.dataItems.getIndex(d-1),"categoryX",l.renderer.cellEndLocation)),y:r*N(c)})}else n=Vs({x:r*W(s),y:r*N(s)})+Es(s,o-s,r,r);t.path=n}this.toggleVisibility(t,e,0,1)},e.prototype.updateLabelElement=function(t,e,i,n){w(n)||(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);this.positionItem(t,r),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBaseGridElement=function(){},e.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisAngle",{get:function(){return this.getPropertyValue("axisAngle")},set:function(t){this.setPropertyValue("axisAngle",lt(t)),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridType",{get:function(){return this.chart.xAxes.getIndex(0)instanceof pa?this.getPropertyValue("gridType"):"circles"},set:function(t){this.setPropertyValue("gridType",t,!0)},enumerable:!0,configurable:!0}),e.prototype.getPositionRangePath=function(t,e){var i,n=this.pixelInnerRadius,r=this.axisLength+n,s=B(this.positionToCoordinate(t),n,r),o=B(this.positionToCoordinate(e),n,r),a=this.startAngle,l=this.endAngle-a,h=this.chart,u=h.xAxes.getIndex(0),p=h.dataItems.length,c=h.series.getIndex(0);if("polygons"==this.gridType&&p>0&&c&&u&&u instanceof pa){var d=u.renderer.grid.template.location,f=u.getAngle(c.dataItems.getIndex(0),"categoryX",d);i=Vs({x:o*W(f),y:o*N(f)});for(var g=h.dataItems.length,y=1;y<g;y++)i+=Fs({x:o*W(f=u.getAngle(c.dataItems.getIndex(y),"categoryX",d)),y:o*N(f)});i+=Fs({x:o*W(f=u.getAngle(c.dataItems.getIndex(g-1),"categoryX",u.renderer.cellEndLocation)),y:o*N(f)}),i+=Vs({x:s*W(f),y:s*N(f)});for(y=g-1;y>=0;y--)i+=Fs({x:s*W(f=u.getAngle(c.dataItems.getIndex(y),"categoryX",d)),y:s*N(f)})}else i=Ls(a,l,o,s);return i},e.prototype.updateBreakElement=function(t){var e=t.startLine,i=t.endLine,n=t.fillShape,r=t.startPoint,s=t.endPoint;e.radius=Math.abs(r.y),i.radius=Math.abs(s.y),n.radius=Math.abs(s.y),n.innerRadius=Math.abs(r.y)},e.prototype.createBreakSprites=function(t){t.startLine=new so,t.endLine=new so,t.fillShape=new so},e.prototype.updateTooltip=function(){if(this.axis){var t=this.axisAngle;t<0&&(t+=360);var e="vertical";(t>45&&t<135||t>225&&t<315)&&(e="horizontal"),this.axis.updateTooltip(e,{x:-4e3,y:-4e3,width:8e3,height:8e3})}},e.prototype.updateTickElement=function(t,e){var i=this.positionToPoint(e);if(t.element){var n=lt(this.axisAngle+90);n/90!=Math.round(n/90)?t.pixelPerfect=!1:t.pixelPerfect=!0;var r=-t.length;t.inside&&(r*=-1),t.path=Vs({x:0,y:0})+Fs({x:r*W(n),y:r*N(n)})}this.positionItem(t,i),this.toggleVisibility(t,e,0,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof ta&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e.prototype.positionToCoordinate=function(t){var e=this.axis,i=e.axisFullLength,n=this.pixelInnerRadius;return E(e.renderer.inversed?(e.end-t)*i+n:(t-e.start)*i+n,1)},e.prototype.pointToPosition=function(t){var e=q(t)-this.pixelInnerRadius;return this.coordinateToPosition(e)},e}(ea);pe.registeredClasses.AxisRendererRadial=Ia;var Da=function(t){function e(){var e=t.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return a(e,t),e}(ma),Aa=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=Oa,e._axisRendererY=Ia,e.innerRadiusModifyer=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=g(80),e.innerRadius=0;var i=e.plotContainer.createChild(ps);return i.shouldClone=!1,i.layout="absolute",i.align="center",i.valign="middle",e.seriesContainer.parent=i,e.radarContainer=i,e.bulletsContainer.parent=i,e.axisBulletsContainer=i,e._cursorContainer=i,e._bulletMask=i.createChild(ks),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},e.prototype.processAxis=function(e){t.prototype.processAxis.call(this,e);var i=e.renderer;i.gridContainer.parent=i,i.breakContainer.parent=i,e.parent=this.radarContainer,i.toBack()},e.prototype.handleXAxisRangeChange=function(){t.prototype.handleXAxisRangeChange.call(this),Qt(this.yAxes.iterator(),function(t){t.invalidate()})},e.prototype.handleYAxisRangeChange=function(){t.prototype.handleYAxisRangeChange.call(this),Qt(this.xAxes.iterator(),function(t){t.invalidate()})},e.prototype.createCursor=function(){return new Ca},e.prototype.processConfig=function(e){if(e&&(w(e.cursor)&&!w(e.cursor.type)&&(e.cursor.type="RadarCursor"),w(e.series)&&D(e.series)))for(var i=0,n=e.series.length;i<n;i++)e.series[i].type=e.series[i].type||"RadarSeries";t.prototype.processConfig.call(this,e)},e.prototype.beforeDraw=function(){t.prototype.beforeDraw.call(this);var e=this.plotContainer,i=ut(this.startAngle,this.endAngle,1),n={x:0,y:0,width:0,height:0},r=e.innerWidth/i.width,s=e.innerHeight/i.height,o=this.innerRadius;if(o instanceof f){var a=o.value,l=Math.min(r,s);a=Math.max(l*a,l-Math.min(e.innerHeight,e.innerWidth))/l,n=ut(this.startAngle,this.endAngle,a),this.innerRadiusModifyer=a/o.value,o=g(100*a)}i=it([i,n]);var h=Math.min(e.innerWidth/i.width,e.innerHeight/i.height),u=2*Qe(this.radius,h)||0,p=u/2,c=this.startAngle,d=this.endAngle;this._pixelInnerRadius=Qe(o,p),this._bulletMask.path=Ls(c,d-c,p,this._pixelInnerRadius),Qt(this.xAxes.iterator(),function(t){t.renderer.useChartAngles&&(t.renderer.startAngle=c,t.renderer.endAngle=d),t.width=u,t.height=u,t.renderer.pixelRadiusReal=p,t.renderer.innerRadius=o}),Qt(this.yAxes.iterator(),function(t){t.renderer.startAngle=c,t.renderer.endAngle=d,t.width=u,t.height=u,t.renderer.pixelRadiusReal=p,t.renderer.innerRadius=o});var y=this.cursor;y&&(y.width=u,y.height=u,y.startAngle=c,y.endAngle=d),this.radarContainer.definedBBox={x:p*i.x,y:p*i.y,width:p*i.width,height:p*i.height},this.radarContainer.validatePosition()},e.prototype.createSeries=function(){return new wa},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.updateXAxis=function(t){t&&t.processRenderer()},e.prototype.updateYAxis=function(t){t&&t.processRenderer()},e}(va);pe.registeredClasses.RadarChart=Aa;var Va=function(t){function e(){var e=t.call(this)||this;e._axis=new Ot,e.className="ClockHand";var i=new Br;e.fill=i.getFor("alternativeBackground"),e.stroke=e.fill;var n=new ks;n.radius=5,e.pin=n,e.isMeasured=!1,e.startWidth=5,e.endWidth=1,e.width=g(100),e.height=g(100),e.radius=g(100),e.innerRadius=g(0);var r=new eo;return e.hand=r,e._disposers.push(e._axis),e.applyTheme(),e}return a(e,t),e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.hand;e.width=this.pixelWidth;var i=Math.max(this.startWidth,this.endWidth);if(e.height=i,e.leftSide=g(this.startWidth/i*100),e.rightSide=g(this.endWidth/i*100),this.axis){var n=this.axis.renderer,r=Qe(this.innerRadius,n.pixelRadius),s=Qe(this.radius,n.pixelRadius);e.x=r,e.y=-i/2,e.width=s-r}},Object.defineProperty(e.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(e.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(e.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(e.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(e.prototype,"startWidth",{get:function(){return this.getPropertyValue("startWidth")},set:function(t){this.setPropertyValue("startWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endWidth",{get:function(){return this.getPropertyValue("endWidth")},set:function(t){this.setPropertyValue("endWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDirection",{get:function(){return this.getPropertyValue("rotationDirection")},set:function(t){this.setPropertyValue("rotationDirection",t)},enumerable:!0,configurable:!0}),e.prototype.showValue=function(t,e,i){if(this._value=t,null!=t&&(O(e)||(e=0),this.axis)){var n=this.axis.renderer.positionToAngle(this.axis.anyToPosition(t)),r=this.rotation;"clockWise"==this.rotationDirection&&n<r&&(this.rotation=r-360),"counterClockWise"==this.rotationDirection&&n>r&&(this.rotation=r+360),this.animate({property:"rotation",to:n},e,i)}},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this.showValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this.axis!=t&&this._axis.set(t,new Tt([t.events.on("datavalidated",this.updateValue,this,!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}),e.prototype.updateValue=function(){this.value=this.value},e.prototype.processConfig=function(e){e&&w(e.axis)&&T(e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),t.prototype.processConfig.call(this,e)},e}(ps);pe.registeredClasses.ClockHand=Va;!function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}a(e,t)}(Da);var Fa=function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new ve(new Va),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new ge(e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},e.prototype.processHand=function(t){var e=t.newValue;e.axis||(e.axis=this.xAxes.getIndex(0))},e.prototype.configOrder=function(e,i){return e==i?0:"hands"==e?1:"hands"==i?-1:t.prototype.configOrder.call(this,e,i)},e}(Aa);pe.registeredClasses.GaugeChart=Fa;var Ma=function(t){function e(){var e=t.call(this)||this;return e.className="PercentSeriesDataItem",e.applyTheme(),e}return a(e,t),e.prototype.uidAttr=function(){return this.slice.uidAttr()},e.prototype.hide=function(e,i,n,r){return r||(r=["value"]),t.prototype.hide.call(this,e,i,0,r)},e.prototype.setVisibility=function(e,i){i||(e?this.setWorkingValue("value",this.values.value.value,0,0):this.setWorkingValue("value",0,0,0)),t.prototype.setVisibility.call(this,e,i)},e.prototype.show=function(e,i,n){return n||(n=["value"]),t.prototype.show.call(this,e,i,n)},Object.defineProperty(e.prototype,"category",{get:function(){return this.properties.category},set:function(t){this.setProperty("category",t)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){this.component.createLegendMarker(t,this)},Object.defineProperty(e.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(e.prototype,"tick",{get:function(){var t=this;if(!this._tick){var e=this.component.ticks.create();this._tick=e,this._disposers.push(e),e.parent=this.component.ticksContainer,this._disposers.push(new kt(function(){t.component&&t.component.ticks.removeValue(e)})),this.addSprite(e),e.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this._label=e,this._disposers.push(e),e.parent=this.component.labelsContainer,this._disposers.push(new kt(function(){t.component&&t.component.labels.removeValue(e)})),this.addSprite(e),e.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slice",{get:function(){var t=this;if(!this._slice){var e=this.component,i=e.slices.create();this._slice=i,this._disposers.push(i),i.parent=e.slicesContainer,this._disposers.push(new kt(function(){e.slices.removeValue(i)})),this.addSprite(i),i.visible=this.visible,e.itemsFocusable()?(i.role="menuitem",i.focusable=!0):(i.role="listitem",i.focusable=!1),i.focusable&&(i.events.on("focus",function(n){i.readerTitle=e.populateString(e.itemReaderText,t)},void 0,!1),i.events.on("blur",function(t){i.readerTitle=""},void 0,!1)),i.hoverable&&(i.events.on("over",function(n){i.readerTitle=e.populateString(e.itemReaderText,t)},void 0,!1),i.events.on("out",function(t){i.readerTitle=""},void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(t){this.setProperty("hiddenInLegend",t)},enumerable:!0,configurable:!0}),e}(Bo),ja=function(t){function e(){var e=t.call(this)||this;e.className="PercentSeries",e._addAllDataItems=!1,e.colors=new So,e.colors.step=1,e.isMeasured=!0,e.calculatePercent=!0;var i=e.createChild(ps);i.shouldClone=!1,i.isMeasured=!1,e.slicesContainer=i;var n=e.createChild(ps);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",e.ticksContainer=n;var r=e.createChild(ps);return r.shouldClone=!1,r.isMeasured=!1,r.layout="none",e.labelsContainer=r,e.alignLabels=!1,e.bulletsContainer.toFront(),e.skipFocusThreshold=50,e.defaultState.transitionEasing=hn,e.itemReaderText="{category}: {value.percent.formatNumber('#.#')}%",e.applyTheme(),e}return a(e,t),e.prototype.createSlice=function(){return new hs},e.prototype.createTick=function(){return new $o},e.prototype.createLabel=function(){return new ws},Object.defineProperty(e.prototype,"slices",{get:function(){if(!this._slices){var t=this.createSlice();t.applyOnClones=!0,this._disposers.push(t),this.initSlice(t),this._slices=new ve(t),this._disposers.push(new ge(this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,this._disposers.push(t),this.initTick(t),this._ticks=new ve(t),this._disposers.push(new ge(this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();t.applyOnClones=!0,this._disposers.push(t),this.initLabel(t),this._labels=new ve(t),this._disposers.push(new ge(this._labels))}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createDataItem=function(){return new Ma},e.prototype.initSlice=function(t){},e.prototype.initLabel=function(t){t.text="{category}: {value.percent.formatNumber('#.0')}%",t.isMeasured=!1,t.padding(5,5,5,5)},e.prototype.initTick=function(t){},e.prototype.validateDataItems=function(){this.colors.reset(),t.prototype.validateDataItems.call(this)},e.prototype.validateDataElement=function(e){var i=e.slice;i&&(null==i.fill&&(i.fill=this.colors.next()),null==i.stroke&&(i.stroke=i.fill)),t.prototype.validateDataElement.call(this,e),i&&e.bullets.each(function(t,e){null==e.fill&&(e.fill=i.fill),null==e.stroke&&(e.stroke=i.stroke)}),this.updateLegendValue(e)},e.prototype.validateData=function(){t.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},e.prototype.arrangeLabels=function(t){for(var e=0,i=t.length;e<i;e++){var n=t[e].label;if(n){var r=this.getNextLabel(e+1,t);n.invalid&&n.validate();var s=n.pixelY+n.measuredHeight;r&&r.y<s&&(r.y=s)}}},e.prototype.arrangeLabels2=function(t){for(var e=this.maxHeight/2,i=t.length-1;i>=0;i--){var n=t[i].label;n&&n.pixelY+n.measuredHeight>e&&(n.y=e-n.measuredHeight,e=n.y)}},e.prototype.getNextLabel=function(t,e){if(e.length>=t){var i=e[t];if(i)return i.label?i.label:this.getNextLabel(t+1,e)}},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t,e){Qt(t.children.iterator(),function(i){var n=e.slice;i.defaultState.properties.fill=n.fill,i.defaultState.properties.stroke=n.stroke,i.defaultState.properties.fillOpacity=n.fillOpacity,i.defaultState.properties.strokeOpacity=n.strokeOpacity,i.fill=n.fill,i.stroke=n.stroke,i.fillOpacity=n.fillOpacity,i.strokeOpacity=n.strokeOpacity,null==i.fill&&(i.__disabled=!0);var r=t.dataItem;r.color=n.fill,r.colorOrig=n.fill,i.addDisposer(n.events.on("propertychanged",function(t){"fill"==t.property&&(i.__disabled=!1,i.isActive||(i.fill=n.fill),i.defaultState.properties.fill=n.fill,r.color=n.fill,r.colorOrig=n.fill),"stroke"==t.property&&(i.isActive||(i.stroke=n.stroke),i.defaultState.properties.stroke=n.stroke)},void 0,!1))})},e.prototype.handleSliceScale=function(t){var e=this;Qt(t.target.dataItem.bullets.iterator(),function(t){var i=t[1];e.positionBullet(i)})},e.prototype.handleSliceMove=function(t){},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.slices.template.copyFrom(e.slices.template),this.labels.template.copyFrom(e.labels.template),this.ticks.template.copyFrom(e.ticks.template)},Object.defineProperty(e.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(t){this.setAlignLabels(t)},enumerable:!0,configurable:!0}),e.prototype.setAlignLabels=function(t){this.setPropertyValue("alignLabels",t,!0)},e.prototype.updateLegendValue=function(t){if(t){var e=t.legendDataItem,i=t.legendSettings;e&&i&&i&&(i.labelText&&(e.label.text=i.labelText),i.itemLabelText&&(e.label.text=i.itemLabelText),i.valueText&&(e.valueLabel.text=i.valueText),i.itemValueText&&(e.valueLabel.text=i.itemValueText))}},e}(No);pe.registeredClasses.PercentSeries=ja,pe.registeredClasses.PercentSeriesDataItem=Ma,bs.push({relevant:xs.maybeXS,state:function(t,e){if(t instanceof ja){var i=t.states.create(e);return t.labels.template.states.create(e).properties.disabled=!0,t.ticks.template.states.create(e).properties.disabled=!0,i}return null}});var Ea=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return a(e,t),e}(Ho),La=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChart",e.align="none",e.valign="none",e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.applyTheme(),e}return a(e,t),e.prototype.validateData=function(){t.prototype.validateData.call(this),this.feedLegend()},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];Qt(this.series.iterator(),function(t){t.hiddenInLegend||Qt(t.dataItems.iterator(),function(i){i.hiddenInLegend||(e.push(i),i.legendSettings||(i.legendSettings=t.legendSettings))})}),t.data=e,t.dataFields.name="category"}},e.prototype.createSeries=function(){return new ja},e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0')}%",e.itemContainers.template.events.on("over",function(t){var e=t.target.dataItem.dataContext;e.visible&&!e.isHiding&&(e.slice.isHover=!0)}),e.itemContainers.template.events.on("out",function(t){t.target.dataItem.dataContext.slice.isHover=!1}))},e}(Wo);pe.registeredClasses.PercentChart=La,pe.registeredClasses.PercentChartDataItem=Ea;var Ra=function(t){function e(){var e=t.call(this)||this;return e._label=new Ot,e._slice=new Ot,e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.slice,i=this.label,n=e.dataItem.component;if(e&&e.radius>0&&i&&i.text){var r=e.dx+e.slice.dx+e.pixelX+e.ix*e.radius*e.scale,s=e.dy+e.slice.dy+e.pixelY+e.iy*e.radiusY*e.scale,o=void 0,a=void 0,l=void 0,h=void 0;if(n.alignLabels)o=i.pixelX-this.length,a=i.pixelY,l=i.pixelX,h=a,"right"==i.horizontalCenter&&(l=(o+=2*this.length)-this.length);else{var u=i.pixelRadius(e.radius);l=o=r+u*e.ix,h=a=s+u*e.iy}this.element.attr({points:[r,s,o,a,l,h]})}},Object.defineProperty(e.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new Tt([t.events.on("transformed",this.invalidate,this),t.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e}($o);pe.registeredClasses.PieTick=Ra;var Ba=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(t){this.setValue("radiusValue",t)},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,n,r){return t.prototype.hide.call(this,e,i,0,["value","radiusValue"])},e.prototype.show=function(e,i,n){return t.prototype.show.call(this,e,i,["value","radiusValue"])},e}(Ma),Na=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.startAngle=-90,e.endAngle=270,e.layout="none",e.labels.template.radius=g(5),e.addDisposer(e.labels.template.events.on("enabled",e.invalidate,e,!1)),e.applyTheme(),e}return a(e,t),e.prototype.createSlice=function(){return new Us},e.prototype.createTick=function(){return new Ra},e.prototype.createLabel=function(){return new Ta},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},e.prototype.createDataItem=function(){return new Ba},e.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('#.#')}% ({value.value})",t.states.create("hover").properties.scale=1.05,t.defaultState.properties.shiftRadius=0,t.togglable=!0,t.events.on("toggled",function(t){t.target.hideTooltip()}),t.states.create("active").properties.shiftRadius=.1},e.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=ut(this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;e<this.endIndex;e++){var i=this.dataItems.getIndex(e).values.radiusValue.percent;i>this._maxRadiusPercent&&(this._maxRadiusPercent=i)}t.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort(function(t,e){var i=(t.slice.middleAngle+360)%360,n=(e.slice.middleAngle+360)%360;return i>270&&(i-=360),n>270&&(n-=360),i<n?-1:1}),this._leftItems.sort(function(t,e){return(t.slice.middleAngle+360)%360<(e.slice.middleAngle+360)%360?1:-1}),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},e.prototype.validateDataElement=function(e){if(this.pixelRadius>0){var i=e.slice;if(i.radius=this.pixelRadius,O(e.radiusValue)&&(i.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*e.values.radiusValue.percent/this._maxRadiusPercent),i.innerRadius instanceof f||(i.innerRadius=this.pixelInnerRadius),i.startAngle=this._currentStartAngle,i.arc=e.values.value.percent*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var n=e.label,r=e.tick;r.slice=i,r.label=n;var s=(i.middleAngle+360)%360,o=void 0;if(this.alignLabels){var a=n.pixelRadius(i.radius),l=r.length+a;n.dx=0,n.dy=0,n.verticalCenter="middle";var h=this._arcRect;s>=270||s<=90?(l+=(h.width+h.x)*this.pixelRadius,n.horizontalCenter="left",this._rightItems.push(e)):(l-=h.x*this.pixelRadius,n.horizontalCenter="right",this._leftItems.push(e),l*=-1);var u=i.radius+r.length+a;o={x:l,y:i.iy*u},n.moveTo(o)}else{var p=i.depth;O(p)||(p=0),n.fixPosition(i.middleAngle,i.radius,i.radiusY,0,-p)}}this._currentStartAngle+=i.arc,t.prototype.validateDataElement.call(this,e)}},Object.defineProperty(e.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(e.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(t){this._pixelRadius!=t&&(this._pixelRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(t){this._pixelInnerRadius!=t&&(this._pixelInnerRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",lt(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem.slice,n=e.locationX;O(n)||(n=.5);var r=e.locationY;O(r)||(r=1);var s=i.startAngle+i.arc*n;e.x=r*i.radius*W(s),e.y=r*i.radiusY*N(s)},e.prototype.handleSliceMove=function(t){if(!this.alignLabels){var e=t.target,i=e.dataItem;if(i){var n=i.label;n&&(n.dx=n.fdx+e.dx+e.pixelX,n.dy=n.fdy+e.dy+e.pixelY)}}},Object.defineProperty(e.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var t=this.chart;return t?ut(t.startAngle,t.endAngle,this.pixelRadius):ut(this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),e}(ja);pe.registeredClasses.PieSeries=Na,pe.registeredClasses.PieSeriesDataItem=Ba;var Ha=function(t){function e(){var e=t.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return a(e,t),e}(Ea),Wa=function(t){function e(){var e=t.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=g(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var i=e.seriesContainer;return i.isMeasured=!0,i.valign="middle",i.align="center",i.layout="absolute",i.width=void 0,i.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.updateRadius()},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e),this._chartPixelRadius=void 0,this.updateSeriesAngles()},e.prototype.updateSeriesAngles=function(){var t=this;this.series.each(function(e){e.startAngle=t.startAngle,e.endAngle=t.endAngle,e.defaultState.properties.startAngle=t.startAngle,e.defaultState.properties.endAngle=t.endAngle})},e.prototype.updateRadius=function(){var t=this.chartContainer,e=ut(this.startAngle,this.endAngle,1),i={x:0,y:0,width:0,height:0},n=this.innerRadius;n instanceof f&&(i=ut(this.startAngle,this.endAngle,n.value)),e=it([e,i]);var r=Math.min(t.innerWidth/e.width,t.innerHeight/e.height);O(r)||(r=0);var s=Qe(this.radius,r),o=Qe(this.innerRadius,r),a=(s-o)/this.series.length;s==this._chartPixelRadius&&o==this._chartPixelInnerRadius||(this._chartPixelRadius=s,this._chartPixelInnerRadius=o,Qt(ie(this.series.iterator()),function(t){var e=t[0],i=t[1],n=o+Qe(i.radius,s-o),r=o+Qe(i.innerRadius,s-o);O(n)||(n=o+a*(e+1)),O(r)||(r=o+a*e),i.pixelRadius=n,i.pixelInnerRadius=r}),this.seriesContainer.definedBBox={x:s*e.x,y:s*e.y,width:s*e.width,height:s*e.height},this.seriesContainer.invalidateLayout(),this.bulletsContainer.x=this.seriesContainer.x,this.bulletsContainer.y=this.seriesContainer.y)},Object.defineProperty(e.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(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new Na},Object.defineProperty(e.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(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),e}(La);pe.registeredClasses.PieChart=Wa,pe.registeredClasses.PieChartDataItem=Ha;var Xa=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"depthValue",{get:function(){return this.values.depthValue.value},set:function(t){this.setValue("depthValue",t)},enumerable:!0,configurable:!0}),e}(Ba),za=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return a(e,t),e.prototype.createDataItem=function(){return new Xa},e.prototype.createSlice=function(){return new mo},e.prototype.validateDataElement=function(e){var i=e.slice,n=this.depth;O(n)||(n=this.chart.depth);var r=e.values.depthValue.percent;O(r)||(r=100),i.depth=r*n/100;var s=this.angle;O(s)||(s=this.chart.angle),i.angle=s,t.prototype.validateDataElement.call(this,e)},e.prototype.validate=function(){t.prototype.validate.call(this);for(var e=this._workingStartIndex;e<this._workingEndIndex;e++){var i=this.dataItems.getIndex(e).slice,n=i.startAngle;n>=-90&&n<90?i.toFront():n>=90&&i.toBack()}},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t)},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem.slice;e.y=e.pixelY-i.depth},e}(Na);pe.registeredClasses.PieSeries3D=za,pe.registeredClasses.PieSeries3DDataItem=Xa;!function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}a(e,t)}(Ha);var Ya=function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.createSeries=function(){return new za},e}(Wa);pe.registeredClasses.PieChart3D=Ya;var Ua=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return a(e,t),e}(Ea),Ga=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},e.prototype.validate=function(){t.prototype.validate.call(this)},e}(La);pe.registeredClasses.SlicedChart=Ga,pe.registeredClasses.SlicedChartDataItem=Ua;var Ka=function(t){function e(){var e=t.call(this)||this;return e.legendSettings=new Lo,e.className="FlowDiagramNode",e.isMeasured=!1,new Br,e.draggable=!0,e.inert=!0,e.setStateOnChildren=!0,e.events.on("positionchanged",e.invalidateLinks,e,!1),e.events.on("sizechanged",e.invalidateLinks,e,!1),e}return a(e,t),e.prototype.handleHit=function(t){this.isHidden||this.isHiding?this.show():this.hide()},e.prototype.show=function(e){var i=t.prototype.show.call(this,e);return this.outgoingDataItems.each(function(t){(!t.toNode||t.toNode&&!t.toNode.isHidden)&&t.setWorkingValue("value",t.getValue("value"),e)}),this.incomingDataItems.each(function(t){(!t.fromNode||t.fromNode&&!t.fromNode.isHidden)&&t.setWorkingValue("value",t.getValue("value"),e)}),i},e.prototype.hide=function(e){var i=t.prototype.hide.call(this,e);return this.outgoingDataItems.each(function(t){t.setWorkingValue("value",0,e)}),this.incomingDataItems.each(function(t){t.setWorkingValue("value",0,e)}),i},e.prototype.validate=function(){this.isDisposed()||(t.prototype.validate.call(this),this.invalidateLinks())},e.prototype.invalidateLinks=function(){var t=this;this.outgoingDataItems.each(function(e){var i=e.link;if("fromNode"==i.colorMode&&(i.fill=i.dataItem.fromNode.color),"gradient"==i.colorMode){i.fill=i.gradient,i.stroke=i.gradient;var n=i.gradient.stops.getIndex(0);n&&(n.color=t.color,i.gradient.validate())}}),this.incomingDataItems.each(function(e){var i=e.link;if("toNode"==i.colorMode&&(i.fill=i.dataItem.toNode.color),"gradient"==i.colorMode){i.fill=i.gradient,i.stroke=i.gradient;var n=i.gradient.stops.getIndex(1);n&&(n.color=t.color,i.gradient.validate())}})},Object.defineProperty(e.prototype,"incomingDataItems",{get:function(){var t=this;if(!this._incomingDataItems){var e=new me;e.events.on("inserted",function(){"name"==t.chart.sortBy?t._incomingSorted=te(t._incomingDataItems.iterator(),function(t,e){return se(t.fromName,e.fromName)}):"value"==t.chart.sortBy?t._incomingSorted=te(t._incomingDataItems.iterator(),function(t,e){return Ce(we(t.value,e.value))}):t._incomingSorted=t._incomingDataItems.iterator()},void 0,!1),this._incomingDataItems=e}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outgoingDataItems",{get:function(){var t=this;if(!this._outgoingDataItems){var e=new me;e.events.on("inserted",function(){"name"==t.chart.sortBy?t._outgoingSorted=te(t._outgoingDataItems.iterator(),function(t,e){return se(t.fromName,e.fromName)}):"value"==t.chart.sortBy?t._outgoingSorted=te(t._outgoingDataItems.iterator(),function(t,e){return Ce(we(t.value,e.value))}):t._outgoingSorted=t._outgoingDataItems.iterator()},void 0,!1),this._outgoingDataItems=e}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(t){this.setPropertyValue("total",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(t){this.setPropertyValue("totalIncoming",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(t){this.setPropertyValue("totalOutgoing",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.getPropertyValue("color")},set:function(t){this.setColorProperty("color",t),this._background&&(this._background.fill=t),this.fill=t},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n=t.createChild(Cs);n.shouldClone=!1,Gt(this,n,ls),n.stroke=this.fill,n.copyFrom(this),n.padding(0,0,0,0),n.width=e,n.height=i;var r=t.dataItem;r.color=n.fill,r.colorOrig=n.fill},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e}(ps);pe.registeredClasses.FlowDiagramNode=Ka;var qa=function(t){function e(){var e=t.call(this)||this;e.className="FlowDiagramLink";var i=new Br;return e.maskBullets=!1,e.colorMode="fromNode",e.layout="none",e.isMeasured=!1,e.startAngle=0,e.endAngle=0,e.strokeOpacity=0,e.verticalCenter="none",e.horizontalCenter="none",e.tooltipText="{fromName}→{toName}:{value.value}",e.tooltipLocation=.5,e.link=e.createChild(hs),e.link.shouldClone=!1,e.link.setElement(e.paper.add("path")),e.link.isMeasured=!1,e.fillOpacity=.2,e.fill=i.getFor("alternativeBackground"),e.applyTheme(),e}return a(e,t),e.prototype.positionBullets=function(){var t=this;Qt(this.bullets.iterator(),function(e){e.parent=t.bulletsContainer,e.maxWidth=t.maxWidth,e.maxHeight=t.maxHeight,t.positionBullet(e)})},Object.defineProperty(e.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var t=this.createChild(ps);t.shouldClone=!1,t.layout="none",this._bulletsContainer=t}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var t=this.createChild(hs);t.shouldClone=!1,t.setElement(this.paper.add("path")),t.isMeasured=!1,this._bulletsMask=t}return this._bulletsMask},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){var e=t.locationX;O(e)||(e=t.locationY),O(e)||(e=.5);var i=this.middleLine.positionToPoint(e);t.moveTo(i);var n,r=t.propertyFields.rotation;t.dataItem&&(n=t.dataItem.dataContext[r]);O(n)||(n=i.angle),t.rotation=n},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(t){if("gradient"==t){var e=this.fill;this.gradient.stops.clear(),e instanceof je&&(this.gradient.addColor(e),this.gradient.addColor(e)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(e){t.prototype.setFill.call(this,e);var i=this._gradient;i&&e instanceof je&&(i.stops.clear(),i.addColor(e),i.addColor(e))},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bullets",{get:function(){var t=this;return this._bullets||(this._bullets=new ve(new jo),this._disposers.push(new ge(this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",function(e){e.newValue.events.on("propertychanged",function(e){"locationX"!=e.property&&"locationY"!=e.property||t.positionBullet(e.target)},void 0,!1)},void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.bullets.copyFrom(e.bullets);var i=this.middleLine;i&&(i instanceof Is&&e.middleLine instanceof Is&&i.copyFrom(e.middleLine),i instanceof Hs&&e.middleLine instanceof Hs&&i.copyFrom(e.middleLine)),this.link.copyFrom(e.link)},e.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x},e.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(e.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new Hr),this._gradient},enumerable:!0,configurable:!0}),e}(ps);pe.registeredClasses.FlowDiagramLink=qa;var Za=function(t){function e(){var e=t.call(this)||this;return e.className="FlowDiagramDataItem",e.values.value={},e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(t){this.setProperty("fromName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toName",{get:function(){return this.properties.toName},set:function(t){this.setProperty("toName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",Le(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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 kt(function(){t.component&&t.component.links.removeValue(e)}))}return this._link},enumerable:!0,configurable:!0}),e}(Fo),$a=function(t){function e(){var e=t.call(this)||this;e.colors=new So,e.className="FlowDiagram",e.nodePadding=20,e.sortBy="none",e.sequencedInterpolation=!0,e.colors.step=2,e.minNodeSize=.02;var i=e.chartContainer.createChild(ps);i.shouldClone=!1,i.layout="none",i.isMeasured=!1,e.linksContainer=i;var n=e.chartContainer.createChild(ps);return n.shouldClone=!1,n.layout="none",n.isMeasured=!1,e.nodesContainer=n,e.dataItem=e.createDataItem(),e.dataItem.component=e,e.applyTheme(),e}return a(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.dataItem.dispose()},e.prototype.validateData=function(){var e=this;0==this._parseDataFrom&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),t.prototype.validateData.call(this);var i,n,r=0,s=0;Qt(this.dataItems.iterator(),function(t){var o=t.fromName;o&&((a=e.nodes.getKey(o))||((a=e.nodes.create(o)).name=o,a.chart=e,a.dataItem=t),t.fromNode=a,t.fromNode.outgoingDataItems.push(t));var a,l=t.toName;l&&((a=e.nodes.getKey(l))||((a=e.nodes.create(l)).name=l,a.chart=e,a.dataItem=t),t.toNode=a,t.toNode.incomingDataItems.push(t));if(!t.fromNode){var h=new co;h.opacities=[0,1],t.link.strokeModifier=h}if(!t.toNode){var u=new co;u.opacities=[1,0],t.link.strokeModifier=u}var p=t.value;O(p)&&(r+=p,s++,(i>p||!O(i))&&(i=p),(n<p||!O(n))&&(n=p))});var o="value";this.dataItem.setCalculatedValue(o,n,"high"),this.dataItem.setCalculatedValue(o,i,"low"),this.dataItem.setCalculatedValue(o,r,"sum"),this.dataItem.setCalculatedValue(o,r/s,"average"),this.dataItem.setCalculatedValue(o,s,"count"),Qt(this.nodes.iterator(),function(t){var i=t[1];i.fill instanceof je&&(i.color=i.fill),null==i.color&&(i.color=e.colors.next()),null!=i.dataItem.color&&(i.color=i.dataItem.color),i.dataItem.visible||i.hide(0),e.getNodeValue(i)}),this.sortNodes(),this.feedLegend()},e.prototype.handleDataItemWorkingValueChange=function(t,e){this.invalidate()},e.prototype.sortNodes=function(){"name"==this.sortBy?this._sorted=this.nodes.sortedIterator():"value"==this.sortBy?this._sorted=te(this.nodes.iterator(),function(t,e){return Ce(we(t[1].total,e[1].total))}):this._sorted=this.nodes.iterator()},e.prototype.getNodeValue=function(t){var e=0,i=0;Qt(t.incomingDataItems.iterator(),function(t){var i=t.getWorkingValue("value");O(i)&&(e+=i)}),Qt(t.outgoingDataItems.iterator(),function(t){var e=t.getWorkingValue("value");O(e)&&(i+=e)}),t.total=e+i,t.totalIncoming=e,t.totalOutgoing=i},e.prototype.changeSorting=function(){this.sortNodes()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Flow diagram"))},e.prototype.createDataItem=function(){return new Za},Object.defineProperty(e.prototype,"nodePadding",{get:function(){return this.getPropertyValue("nodePadding")},set:function(t){this.setPropertyValue("nodePadding",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortBy",{get:function(){return this.getPropertyValue("sortBy")},set:function(t){this.setPropertyValue("sortBy",t),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minNodeSize",{get:function(){return this.getPropertyValue("minNodeSize")},set:function(t){this.setPropertyValue("minNodeSize",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){if(!this._nodes){var t=this.createNode();t.events.on("hit",function(t){t.target.handleHit(t)}),this._nodes=new he(t),this._disposers.push(new ae(this._nodes))}return this._nodes},enumerable:!0,configurable:!0}),e.prototype.createNode=function(){var t=new Ka;return this._disposers.push(t),t},Object.defineProperty(e.prototype,"links",{get:function(){return this._links||(this._links=new ve(this.createLink()),this._disposers.push(new ge(this._links))),this._links},enumerable:!0,configurable:!0}),e.prototype.createLink=function(){var t=new qa;return this._disposers.push(t),t},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];this.nodes.each(function(t,i){e.push(i)}),t.data=e,t.dataFields.name="name"}},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.nodes.clear()},e}(Mo);pe.registeredClasses.FlowDiagram=$a;var Ja=function(t){function e(){var e=t.call(this)||this;e.className="LabelBullet";var i=e.createChild(ws);return i.shouldClone=!1,i.verticalCenter="middle",i.horizontalCenter="middle",i.truncate=!0,i.hideOversized=!1,i.maxWidth=500,i.maxHeight=500,i.stroke=Ee(),i.strokeOpacity=0,i.fill=(new Br).getFor("text"),e.events.on("maxsizechanged",e.handleMaxSize,e,!1),e.label=i,e.applyTheme(),e}return a(e,t),e.prototype.handleMaxSize=function(){this.label.maxWidth=this.maxWidth,this.label.maxHeight=this.maxHeight},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label)},e}(jo);pe.registeredClasses.LabelBullet=Ja;var Qa=function(t){function e(){var e=t.call(this)||this;e.nextInCoord=0,e.nextOutCoord=0,e.className="SankeyNode",e.width=10,e.height=10;var i=e.createChild(Ja);i.shouldClone=!1,i.locationX=1,i.locationY=.5,i.label.text="{name}",i.width=150,i.height=150,i.label.horizontalCenter="left",i.label.padding(0,5,0,5),e.nameLabel=i;var n=e.createChild(Ja);n.shouldClone=!1,n.label.hideOversized=!1,n.locationX=.5,n.locationY=.5,n.width=150,n.height=150,n.label.horizontalCenter="middle",e.valueLabel=n;var r=e.hiddenState;return r.properties.fill=(new Br).getFor("disabledBackground"),r.properties.opacity=.5,r.properties.visible=!0,e.background.hiddenState.copyFrom(r),e}return a(e,t),e.prototype.invalidateLinks=function(){var e=this;t.prototype.invalidateLinks.call(this),this.nextInCoord=0,this.nextOutCoord=0;var i=this.chart;if(i){var n=i.orientation;this._incomingSorted&&Qt(this._incomingSorted,function(t){var r=t.link,s=t.getWorkingValue("value");if(O(s)){r.parent=e.chart.linksContainer;var o=void 0,a=void 0,l=void 0;if("horizontal"==n?(o=e.pixelX+e.dx,a=e.nextInCoord+e.pixelY+e.dy,l=0):(a=e.pixelY+e.dy,o=e.nextInCoord+e.pixelX+e.dx,l=90),r.endX=o,r.endY=a,r.startAngle=l,r.endAngle=l,r.gradient.rotation=l,r.linkWidth=s*i.valueHeight,!t.fromNode){"horizontal"==n?(r.maxWidth=200,r.startX=e.pixelX+e.dx-r.maxWidth,r.startY=r.endY):(r.maxHeight=200,r.startX=r.endX,r.startY=e.pixelY+e.dy-r.maxHeight),r.gradient,r.fill=t.toNode.color;var h=r.gradient.stops.getIndex(0);h&&("gradient"==r.colorMode&&(h.color=e.color),h.opacity=0,r.fill=r.gradient,r.stroke=r.gradient,r.gradient.validate())}e.nextInCoord+=r.linkWidth}}),this._outgoingSorted&&Qt(this._outgoingSorted,function(t){var i=t.link;i.parent=e.chart.linksContainer;var r=t.getWorkingValue("value");if(O(r)){var s=void 0,o=void 0,a=void 0;if("horizontal"==n?(a=0,s=e.pixelX+e.pixelWidth+e.dx-1,o=e.nextOutCoord+e.pixelY+e.dy):(a=90,s=e.nextOutCoord+e.pixelX+e.dx,o=e.pixelY+e.pixelHeight+e.dy-1),i.startX=s,i.startY=o,i.startAngle=a,i.endAngle=a,i.gradient.rotation=a,i.linkWidth=r*e.chart.valueHeight,!t.toNode){"horizontal"==n?(i.maxWidth=200,i.endX=e.pixelX+i.maxWidth+e.dx,i.endY=i.startY):(i.maxHeight=200,i.endX=i.startX,i.endY=e.pixelY+i.maxHeight+e.dy),i.opacity=e.opacity;var l=i.gradient.stops.getIndex(1);l&&("gradient"==i.colorMode&&(l.color=e.color),l.opacity=0,i.fill=i.gradient,i.stroke=i.gradient,i.gradient.validate())}e.nextOutCoord+=i.linkWidth}})}this.positionBullet(this.nameLabel),this.positionBullet(this.valueLabel)},e.prototype.positionBullet=function(t){t&&(t.x=this.measuredWidth*t.locationX,t.y=this.measuredHeight*t.locationY)},Object.defineProperty(e.prototype,"level",{get:function(){return this.getPropertyValue("level")},set:function(t){this.setPropertyValue("level",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.nameLabel.copyFrom(e.nameLabel),this.valueLabel.copyFrom(e.valueLabel)},e}(Ka);pe.registeredClasses.SankeyNode=Qa;var tl=function(t){function e(){var e=t.call(this)||this;return e.className="SankeyLink",new Br,e.tension=.8,e.controlPointDistance=.2,e.startAngle=0,e.endAngle=0,e.linkWidth=0,e.startX=0,e.endX=0,e.startY=0,e.endY=0,e.middleLine=e.createChild(Ys),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return a(e,t),e.prototype.validate=function(){if(t.prototype.validate.call(this),!this.isTemplate){var e=this.startX,i=this.startY,n=this.endX,r=this.endY;O(n)||(n=e),O(r)||(r=i);var s=this.startAngle,o=this.endAngle,a=this.linkWidth,l="",h=e,u=i,p=n,c=r,d=e+a*N(s),f=n+a*N(o),g=i+a*W(s),y=r+a*W(o),m=e+a/2*N(s),v=n+a/2*N(o),b=i+a/2*W(s),x=r+a/2*W(o);this.zIndex=this.zIndex||this.dataItem.index;var _=this.tension+(1-this.tension)*N(s),P=this.tension+(1-this.tension)*W(s);if(this.middleLine.tensionX=_,this.middleLine.tensionY=P,O(a)&&O(e)&&O(n)&&O(i)&&O(r)){E(h,3)==E(p,3)&&(p+=.01),E(u,3)==E(c,3)&&(c+=.01),E(d,3)==E(f,3)&&(f+=.01),E(g,3)==E(y,3)&&(y+=.01);var w=Math.min(d,f,h,p),C=Math.min(g,y,u,c),S=Math.max(d,f,h,p),k=Math.max(g,y,u,c);this._bbox={x:w,y:C,width:S-w,height:k-C};var T=this.controlPointDistance,I=h+(p-h)*T*W(s),D=u+(c-u)*T*N(s),A=p-(p-h)*T*W(o),V=c-(c-u)*T*N(o),F=m+(v-m)*T*W(s),M=b+(x-b)*T*N(s),j=v-(v-m)*T*W(o),L=x-(x-b)*T*N(o),R=Q({x:I,y:D},{x:A,y:V}),B=(a/W(R)-a)/H(R)*W(s),X=(a/N(R)-a)*H(R)*N(s),z=-B/2+d+(f-d)*T*W(s),Y=-X/2+g+(y-g)*T*N(s),U=-B/2+f-(f-d)*T*W(o),G=-X/2+y-(y-g)*T*N(o);this.middleLine.segments=[[{x:m,y:b},{x:F,y:M},{x:j,y:L},{x:v,y:x}]],I+=B/2,D+=X/2,A+=B/2,V+=X/2,l+=Vs({x:h,y:u}),l+=new no(_,P).smooth([{x:h,y:u},{x:I,y:D},{x:A,y:V},{x:p,y:c}]),l+=Fs({x:f,y:y}),l+=new no(_,P).smooth([{x:f,y:y},{x:U,y:G},{x:z,y:Y},{x:d,y:g}]),l+=" Z"}this.link.path=l,this.maskBullets&&(this.bulletsMask.path=l,this.bulletsContainer.mask=this.bulletsMask),this.positionBullets()}},Object.defineProperty(e.prototype,"startX",{get:function(){return this.getPropertyValue("startX")},set:function(t){this.setPropertyValue("startX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endX",{get:function(){return this.getPropertyValue("endX")},set:function(t){this.setPropertyValue("endX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startY",{get:function(){return this.getPropertyValue("startY")},set:function(t){this.setPropertyValue("startY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endY",{get:function(){return this.getPropertyValue("endY")},set:function(t){this.setPropertyValue("endY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkWidth",{get:function(){return this.getPropertyValue("linkWidth")},set:function(t){this.setPropertyValue("linkWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),e}(qa);pe.registeredClasses.SankeyLink=tl;var el=function(t){function e(){var e=t.call(this)||this;return e.className="SankeyDiagramDataItem",e.applyTheme(),e}return a(e,t),e}(Za),il=function(t){function e(){var e=t.call(this)||this;return e.className="SankeyDiagram",e.orientation="horizontal",e.nodeAlign="middle",e.nodesContainer.width=g(100),e.nodesContainer.height=g(100),e.linksContainer.width=g(100),e.linksContainer.height=g(100),e.applyTheme(),e}return a(e,t),e.prototype.validateData=function(){var e=this;t.prototype.validateData.call(this),this._levelCount=0,this.nodes.each(function(t,i){i.level=e.getNodeLevel(i,0),e._levelCount=X(e._levelCount,i.level)})},e.prototype.getNodeLevel=function(t,e){var i=this,n=[e];return Qt(t.incomingDataItems.iterator(),function(t){t.fromNode&&n.push(i.getNodeLevel(t.fromNode,e+1))}),Math.max.apply(Math,d(n))},e.prototype.calculateValueHeight=function(){var t=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var e,i,n=this.dataItem.values.value.sum;Qt(this._sorted,function(e){var i=e[1];t.getNodeValue(i)}),this.nodes.each(function(e,i){var r=i.level,s=Math.max(i.totalIncoming,i.totalOutgoing);s/n<t.minNodeSize&&(s=n*t.minNodeSize),O(t._levelSum[r])?t._levelSum[r]+=s:t._levelSum[r]=s,O(t._levelNodesCount[r])?t._levelNodesCount[r]++:t._levelNodesCount[r]=1}),e="horizontal"==this.orientation?this.chartContainer.maxHeight-1:this.chartContainer.maxWidth-1,zt(this._levelSum,function(n,r){var s=r;r=r*e/(e-(t._levelNodesCount[n]-1)*t.nodePadding),t.maxSum<r&&(t.maxSum=s,i=x(n))}),this._maxSumLevel=i;var r=this._levelNodesCount[this._maxSumLevel],s=(e-(r-1)*this.nodePadding)/this.maxSum;if(O(this.valueHeight)){var o=void 0;try{o=this._heightAnimation.animationOptions[0].to}catch(t){}if(o!=s){var a=this.interpolationDuration;try{a=this.nodes.template.states.getKey("active").transitionDuration}catch(t){}this._heightAnimation=new Un(this,{property:"valueHeight",from:this.valueHeight,to:s},a).start(),this._disposers.push(this._heightAnimation)}}else this.valueHeight=s},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this),this.calculateValueHeight();var i=this.nodesContainer,n={},r=this._levelNodesCount[this._maxSumLevel],s=this.dataItem.values.value.sum;Qt(this._sorted,function(t){var o,a,l,h=t[1],u=h.level,p=0,c=e._levelNodesCount[u];switch(e.nodeAlign){case"bottom":p=(e.maxSum-e._levelSum[u])*e.valueHeight-(c-r)*e.nodePadding;break;case"middle":p=(e.maxSum-e._levelSum[u])*e.valueHeight/2-(c-r)*e.nodePadding/2}h.parent=i;var d=Math.max(h.totalIncoming,h.totalOutgoing);if(d/s<e.minNodeSize&&(d=s*e.minNodeSize),"horizontal"==e.orientation){a=(o=(e.innerWidth-h.pixelWidth)/e._levelCount)*h.level,l=n[u]||p;var f=d*e.valueHeight;h.height=f,h.minX=a,h.maxX=a,n[u]=l+f+e.nodePadding}else{o=(e.innerHeight-h.pixelHeight)/e._levelCount,a=n[u]||p,l=o*h.level;var g=d*e.valueHeight;h.width=g,h.minY=l,h.maxY=l,n[u]=a+g+e.nodePadding}h.x=a,h.y=l})},e.prototype.showReal=function(e){var i=this;if(this.interpolationDuration>0){var n=this.nodesContainer,r=0;Qt(this.links.iterator(),function(t){t.hide(0)}),Qt(this._sorted,function(t){var e,s=t[1];"horizontal"==i.orientation?(s.dx=-(n.pixelWidth-s.pixelWidth)/i._levelCount,e="dx"):(s.dy=-(n.pixelHeight-s.pixelHeight)/i._levelCount,e="dy");var o,a,l=0,h=i.interpolationDuration;i.sequencedInterpolation&&(l=i.sequencedInterpolationDelay*r+h*r/(o=i.nodes.iterator(),a=0,o(function(t){return++a,!0}),a)),s.opacity=0,s.invalidateLinks(),s.animate([{property:"opacity",from:0,to:1},{property:e,to:0}],i.interpolationDuration,i.interpolationEasing).delay(l),Qt(s.outgoingDataItems.iterator(),function(t){var e=t.link.show(i.interpolationDuration);e&&!e.isFinished()&&e.delay(l)}),Qt(s.incomingDataItems.iterator(),function(t){if(!t.fromNode){var e=t.link.show(i.interpolationDuration);e&&!e.isFinished()&&e.delay(l)}}),r++})}return t.prototype.showReal.call(this)},e.prototype.changeSorting=function(){var t=this;this.sortNodes();var e={};Qt(this._sorted,function(i){var n,r,s=i[1],o=s.level,a=(t.maxSum-t._levelSum[o])*t.valueHeight/2;"horizontal"==t.orientation?(n="y",r=s.pixelHeight):(n="x",r=s.pixelWidth),s.animate({property:n,to:e[o]||a},t.interpolationDuration,t.interpolationEasing),e[o]=(e[o]||a)+r+t.nodePadding,s.invalidateLinks()})},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},e.prototype.createDataItem=function(){return new el},Object.defineProperty(e.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(t){this.setPropertyValue("nodeAlign",t),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.nodes.template.nameLabel;"vertical"==t?(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}),e.prototype.createNode=function(){var t=new Qa;return this._disposers.push(t),t},e.prototype.createLink=function(){var t=new tl;return this._disposers.push(t),t},Object.defineProperty(e.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(t){t!=this._valueHeight&&(this._valueHeight=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},e}($a);pe.registeredClasses.SankeyDiagram=il;var nl=function(t){function e(){var e=t.call(this)||this;e.className="ChordNode";var i=e.createChild(Ta);i.location=.5,i.radius=5,i.text="{name}",i.zIndex=1,i.shouldClone=!1,e.label=i,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(Us),e.slice.isMeasured=!1;var n=e.hiddenState;return n.properties.fill=(new Br).getFor("disabledBackground"),n.properties.opacity=.5,n.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",function(t,e){return e.slice.ix*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)}),e.adapter.add("tooltipY",function(t,e){return e.slice.iy*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)}),e}return a(e,t),e.prototype.invalidateLinks=function(){var e=this;t.prototype.invalidateLinks.call(this);var i=this.label,n=this.slice,r=this.chart;if(r&&n){var s=this.total,o=n.arc,a=n.startAngle;this.children.each(function(t){if(t instanceof jo){var e=t.locationX;O(e)||(e=.5);var i=t.locationY;O(i)||(i=1);var r=a+o*e,s=i*n.radius;t.x=s*W(r),t.y=s*N(r)}});var l=a+o*i.location,h=a+(1-s/this.adjustedTotal)*o*.5;y(h)&&(h=a),i.fixPosition(l,n.radius),this.nextAngle=h,this._outgoingSorted&&Qt(this._outgoingSorted,function(t){var i=t.link;i.parent=e.chart.linksContainer;var s=t.getWorkingValue("value");if(O(s)){if(r.nonRibbon){var l=i.percentWidth;O(l)||(l=5),l/=100,i.startAngle=a+o/2-o/2*l,i.arc=o*l}else i.arc=s*r.valueAngle,i.startAngle=e.nextAngle,e.nextAngle+=i.arc;t.toNode||(i.endAngle=i.startAngle),i.radius=n.pixelInnerRadius}}),this._incomingSorted&&Qt(this._incomingSorted,function(t){var i=t.link;if(i.radius=n.pixelInnerRadius,r.nonRibbon){var s=i.percentWidth;O(s)||(s=5),s/=100,i.endAngle=a+o/2-o/2*s,i.arc=o*s}else{i.endAngle=e.nextAngle;var l=t.getWorkingValue("value");O(l)&&(i.arc=l*r.valueAngle,e.nextAngle+=i.arc)}t.fromNode||(i.startAngle=i.endAngle)})}},e.prototype.updateRotation=function(){var t=this.slice,e=this.trueStartAngle+t.arc/2,i=t.radius,n=i*W(e),r=i*N(e),s=Q({x:n+this.pixelX,y:r+this.pixelY});t.startAngle=this.trueStartAngle+(s-e),this.dx=-this.pixelX,this.dy=-this.pixelY},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},e}(Ka);pe.registeredClasses.ChordNode=nl;var rl=function(t){function e(){var e=t.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=Ee(),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){if(O(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},i={x:this.cpx,y:this.cpy},n=Vs(t)+Ms(e,i);this.path=n}},Object.defineProperty(e.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(t){this.setPropertyValue("cpx",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(t){this.setPropertyValue("cpy",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.cpx,y:this.cpy},n={x:this.x2,y:this.y2},r=nt(e,n,i,t),s=nt(e,n,i,t+.001);return{x:r.x,y:r.y,angle:Q(r,s)}},e}(Is),sl=function(t){function e(){var e=t.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(rl),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return a(e,t),e.prototype.validate=function(){if(t.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,i=this.endAngle,n=this.arc,r=this.radius,s=this.dataItem.fromNode,o=this.dataItem.toNode,a=0,l=0;s&&(a=s.pixelX+s.dx,l=s.pixelY+s.dy);var h=0,u=0;if(o&&(h=o.pixelX+o.dx,u=o.pixelY+o.dy),r>0){var p=r*W(e)+a,c=r*N(e)+l,d=r*W(i)+h,f=r*N(i)+u,g={x:0,y:0},y=Vs({x:p,y:c});y+=Es(e,n,r),y+=Ms({x:d,y:f},g),y+=Es(i,n,r),y+=Ms({x:p,y:c},g),this.link.path=n>0?y:"",this.maskBullets&&(this.bulletsMask.path=y,this.bulletsContainer.mask=this.bulletsMask);var m=e+n/2,v=i+n/2,b=this.middleLine;b.x1=r*W(m)+a,b.y1=r*N(m)+l,b.x2=r*W(v)+h,b.y2=r*N(v)+u,b.cpx=0,b.cpy=0,b.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),e}(qa);pe.registeredClasses.ChordLink=sl;var ol=function(t){function e(){var e=t.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return a(e,t),e}(Za),al=function(t){function e(){var e=t.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=g(80),e.innerRadius=-15,e.nodePadding=5;var i=e.chartContainer.createChild(ps);return i.align="center",i.valign="middle",i.shouldClone=!1,i.layout="absolute",e.chordContainer=i,e.nodesContainer.parent=i,e.linksContainer.parent=i,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return a(e,t),e.prototype.validate=function(){var e=this,i=this.chartContainer,n=this.endAngle,r=this.startAngle+this.nodePadding/2,s=ut(this.startAngle,this.endAngle,1);s=it([s,{x:0,y:0,width:0,height:0}]);var o=Math.min(i.innerWidth/s.width,i.innerHeight/s.height);O(o)||(o=0);var a=Qe(this.radius,o),l=Qe(this.innerRadius,a,!0),h=this.dataItem.values.value.sum,u=0,p=0;Qt(this._sorted,function(t){var i=t[1];e.getNodeValue(i),u++;var n=i.total;i.total/h<e.minNodeSize&&(n=h*e.minNodeSize),p+=n}),this.valueAngle=(n-this.startAngle-this.nodePadding*u)/p,Qt(this._sorted,function(t){var i=t[1],s=i.slice;s.radius=a,s.innerRadius=l;var o,p=i.total;i.total/h<e.minNodeSize&&(p=h*e.minNodeSize),i.adjustedTotal=p,o=e.nonRibbon?(n-e.startAngle)/u-e.nodePadding:e.valueAngle*p,s.arc=o,s.startAngle=r,i.trueStartAngle=r,i.parent=e.nodesContainer,i.validate(),r+=o+e.nodePadding}),this.chordContainer.definedBBox={x:a*s.x,y:a*s.y,width:a*s.width,height:a*s.height},this.chordContainer.invalidateLayout(),t.prototype.validate.call(this)},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Chord diagram"))},e.prototype.createDataItem=function(){return new ol},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.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}),e.prototype.createNode=function(){var t=new nl;return this._disposers.push(t),t},e.prototype.createLink=function(){var t=new sl;return this._disposers.push(t),t},e}($a);pe.registeredClasses.ChordDiagram=al;var ll=function(t){function e(){var e=t.call(this)||this;return e.className="Column",e.width=g(80),e.height=g(80),e.applyOnClones=!0,e.strokeOpacity=1,e.layout="none",e.createAssets(),e.events.on("childadded",e.handleKidAdded,e,!1),e}return a(e,t),e.prototype.handleKidAdded=function(){"none"==this.layout&&(this.layout="absolute")},e.prototype.createAssets=function(){this.column=this.createChild(Cs),this.column.shouldClone=!1,this.column.cornerRadius(0,0,0,0),this._disposers.push(this.column)},e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.column;e&&(e.width=z(this.pixelWidth,this.maxWidth),e.height=z(this.pixelHeight,this.maxHeight),e.invalid&&e.validate())},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.column&&this.column.copyFrom(e.column)},Object.defineProperty(e.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:z(this.pixelWidth,this.maxWidth),height:z(this.pixelHeight,this.maxHeight)}},enumerable:!0,configurable:!0}),e}(ps);pe.registeredClasses.Column=ll;var hl=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeriesDataItem",e.locations.dateX=.5,e.locations.dateY=.5,e.locations.categoryX=.5,e.locations.categoryY=.5,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(t){this.setColumn(t)},enumerable:!0,configurable:!0}),e.prototype.setColumn=function(t){var e=this;if(this._column&&t!=this._column&&mt(this.sprites,this._column),this._column=t,t){var i=t.dataItem;i&&i!=this&&(i.column=void 0),this.addSprite(t),this._disposers.push(new kt(function(){e.component&&e.component.columns.removeValue(t)}))}},Object.defineProperty(e.prototype,"rangesColumns",{get:function(){return this._rangesColumns||(this._rangesColumns=new le),this._rangesColumns},enumerable:!0,configurable:!0}),e}(ca),ul=function(t){function e(){var e=t.call(this)||this;e._startLocation=0,e._endLocation=1,e.className="ColumnSeries",e.width=g(100),e.height=g(100),e.strokeOpacity=0,e.fillOpacity=1,e.clustered=!0;var i=e.mainContainer.createChild(ps);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e._columnsContainer=i,e.columns.template.pixelPerfect=!1,e.tooltipColorSource=e.columns.template,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"columnsContainer",{get:function(){return this._columnsContainer},enumerable:!0,configurable:!0}),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Column Series"))},e.prototype.createDataItem=function(){return new hl},e.prototype.validate=function(){var i=this,n=this.chart.series,r=0,s=0;Qt(n.iterator(),function(t){t instanceof e&&i.baseAxis==t.baseAxis&&((!t.stacked&&t.clustered||0===r)&&r++,t==i&&(s=r-1))});var o=this.baseAxis.renderer,a=o.cellStartLocation,l=o.cellEndLocation;this._startLocation=a+s/r*(l-a),this._endLocation=a+(s+1)/r*(l-a),t.prototype.validate.call(this);for(var h=0;h<this.startIndex;h++){var u=this.dataItems.getIndex(h);this.disableUnusedColumns(u)}for(h=this.dataItems.length-1;h>this.endIndex;h--){u=this.dataItems.getIndex(h);this.disableUnusedColumns(u)}},e.prototype.validateDataElement=function(e){this.validateDataElementReal(e),t.prototype.validateDataElement.call(this,e)},e.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},e.prototype.handleDataItemWorkingValueChange=function(e,i){this.simplifiedProcessing?this.validateDataElement(e):t.prototype.handleDataItemWorkingValueChange.call(this,e,i)},e.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},e.prototype.validateDataElementReal=function(t){var e,i,n,r,s=this,o=this.getStartLocation(t),a=this.getEndLocation(t),l=this.xField,h=this.xOpenField,u=this.yField,p=this.yOpenField,c=this.columns.template,d=c.percentWidth,f=c.percentHeight,g=c.pixelWidth,m=c.pixelHeight,v=c.maxWidth,b=c.maxHeight,x=c.pixelPaddingLeft,_=c.pixelPaddingRight,P=c.pixelPaddingTop,w=c.pixelPaddingBottom,C=!1;if(this.xAxis instanceof pa&&this.yAxis instanceof pa){if(!t.hasValue(this._xValueFields)||!t.hasValue(this._yValueFields))return;if(o=0,a=1,!y(d))o+=O=E((a-o)*(1-d/100)/2,5),a-=O;if(e=this.xAxis.getX(t,h,o),i=this.xAxis.getX(t,l,a),y(d))e+=O=(i-e-g)/2,i-=O;if(!y(v))e+=O=(i-e-v)/2,i-=O;if(o=0,a=1,!y(f))o+=O=E((1-f/100)/2,5),a-=O;if(n=this.yAxis.getY(t,p,o),r=this.yAxis.getY(t,u,a),y(f))r+=O=(r-n-m)/2,n-=O;if(!y(b))r+=O=(r-n-b)/2,n-=O;i=this.fixHorizontalCoordinate(i),e=this.fixHorizontalCoordinate(e),n=this.fixVerticalCoordinate(n),r=this.fixVerticalCoordinate(r)}else if(this.baseAxis==this.xAxis){if(!t.hasValue(this._yValueFields))return;if(!y(d))o+=O=E((a-o)*(1-d/100)/2,5),a-=O;if(e=this.xAxis.getX(t,h,o),i=this.xAxis.getX(t,l,a),y(d))e+=O=(i-e-g)/2,i-=O;if(!y(v))e+=O=(i-e-v)/2,i-=O;var S=t.locations[p],k=t.locations[u];this.yAxis instanceof ra&&this.dataFields[this.yField]!=this.dataFields[this.yOpenField]&&(S=0,k=0),r=this.yAxis.getY(t,p,S),n=this.yAxis.getY(t,u,k);var T=Math.ceil(this.yAxis.axisLength);(n<0&&r<0||n>T&&r>T)&&(C=!0),n=this.fixVerticalCoordinate(n),r=this.fixVerticalCoordinate(r),Math.abs(i-e)-x-_==0&&(C=!0)}else{if(!t.hasValue(this._xValueFields))return;var O;if(!y(f))o+=O=E((a-o)*(1-f/100)/2,5),a-=O;if(n=this.yAxis.getY(t,p,o),r=this.yAxis.getY(t,u,a),y(f))r-=O=(r-n-m)/2,n+=O;if(!y(b))r-=O=(r-n-b)/2,n+=O;var I=t.locations[l],D=t.locations[h];this.xAxis instanceof ra&&this.dataFields[this.xField]!=this.dataFields[this.xOpenField]&&(I=0,D=0),i=this.xAxis.getX(t,l,I),e=this.xAxis.getX(t,h,D);T=Math.ceil(this.xAxis.axisLength);(i<0&&e<0||i>T&&e>T)&&(C=!0),i=this.fixHorizontalCoordinate(i),e=this.fixHorizontalCoordinate(e),Math.abs(n-r)-P-w==0&&(C=!0)}var A,V=Math.abs(i-e),F=Math.abs(r-n),M=Math.min(e,i),j=Math.min(n,r);C?this.disableUnusedColumns(t):(t.column?A=t.column:(Gt(this,A=this.columns.create(),ls),Gt(this.columns.template,A,ls),t.addSprite(A),t.column=A,A.paper=this.paper,this.itemsFocusable()?(A.role="menuitem",A.focusable=!0):(A.role="listitem",A.focusable=!1),A.focusable&&(A.events.on("focus",function(e){A.readerTitle=s.populateString(s.itemReaderText,t)},void 0,!1),A.events.on("blur",function(t){A.readerTitle=""},void 0,!1)),A.hoverable&&(A.events.on("over",function(e){A.readerTitle=s.populateString(s.itemReaderText,t)},void 0,!1),A.events.on("out",function(t){A.readerTitle=""},void 0,!1))),A.width=V,A.height=F,A.x=M,A.y=j,A.realX=e,A.realY=n,A.realWidth=i-e,A.realHeight=r-n,A.parent=this.columnsContainer,A.virtualParent=this,this.setColumnStates(A),A.invalid&&A.validate(),A.__disabled=!1,Qt(this.axisRanges.iterator(),function(e){var i=t.rangesColumns.getKey(e.uid);i||(i=s.columns.create(),Gt(e.contents,i,ls),t.addSprite(i),t.rangesColumns.setKey(e.uid,i),i.paper=s.paper),i.parent=e.contents,i.width=V,i.height=F,i.x=M,i.y=j,s.setColumnStates(i),i.invalid&&i.validate(),i.__disabled=!1}));t.itemWidth=V,t.itemHeight=F},e.prototype.disableUnusedColumns=function(t){t&&(t.column&&(t.column.width=0,t.column.height=0,t.column.__disabled=!0),Qt(this.axisRanges.iterator(),function(e){var i=t.rangesColumns.getKey(e.uid);i&&(i.width=0,i.height=0,i.__disabled=!0)}))},e.prototype.setColumnStates=function(t){var e=t.dataItem;if(this.xAxis instanceof ra||this.yAxis instanceof ra){var i,n=void 0,r=void 0;this.baseAxis==this.yAxis?this.xOpenField&&this.xField&&this.xAxis instanceof ra&&(i=e.getValue(this.xOpenField),n=e.getValue(this.xField),r=e.getValue(this.xAxis.axisFieldName+"X","previousChange")):this.yOpenField&&this.yField&&this.yAxis instanceof ra&&(i=e.getValue(this.yOpenField),n=e.getValue(this.yField),r=e.getValue(this.yAxis.axisFieldName+"Y","previousChange")),n<i?(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)),r<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(e.prototype,"columns",{get:function(){return this._columns||(this._columns=new ve(this.createColumnTemplate()),this._disposers.push(new ge(this._columns)),this._disposers.push(this._columns.template)),this._columns},enumerable:!0,configurable:!0}),e.prototype.createColumnTemplate=function(){return new ll},Object.defineProperty(e.prototype,"clustered",{get:function(){return this.getPropertyValue("clustered")},set:function(t){this.setPropertyValue("clustered",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropFromOpenState",{get:function(){return this._dropFromOpenState||(this._dropFromOpenState=this.states.create("dropFromOpenState")),this._dropFromOpenState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropFromPreviousState",{get:function(){return this._dropFromPreviousState||(this._dropFromPreviousState=this.states.create("dropFromPreviousState")),this._dropFromPreviousState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"riseFromOpenState",{get:function(){return this._riseFromOpenState||(this._riseFromOpenState=this.states.create("riseFromOpenState")),this._riseFromOpenState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"riseFromPreviousState",{get:function(){return this._riseFromPreviousState||(this._riseFromPreviousState=this.states.create("riseFromPreviousState")),this._riseFromPreviousState},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(e){var i=this;if(t.prototype.updateLegendValue.call(this,e),this.legendDataItem){var n,r,s=this.legendDataItem.marker;e&&(n=e.droppedFromOpen?this._dropFromOpenState:this._riseFromOpenState,r=e.droppedFromPrevious?this._dropFromPreviousState:this._riseFromPreviousState),Qt(s.children.iterator(),function(t){e?(t.setState(r),t.setState(n)):(t.setState(i._riseFromPreviousState),t.setState(i._riseFromOpenState))})}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n=t.createChild(Cs);n.shouldClone=!1,Gt(this,n,ls),n.copyFrom(this.columns.template),n.padding(0,0,0,0),n.width=e,n.height=i;var r=t.dataItem;r.color=this.fill,r.colorOrig=this.fill},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.columns.template.copyFrom(e.columns.template)},e.prototype.getBulletLocationX=function(e,i){if(this.baseAxis==this.xAxis){var n=e.locationX;return O(n)||(n=.5),this._endLocation-(this._endLocation-this._startLocation)*n}return t.prototype.getBulletLocationX.call(this,e,i)},e.prototype.getBulletLocationY=function(e,i){if(this.baseAxis==this.yAxis){var n=e.locationY;return O(n)||(n=.5),this._endLocation-(this._endLocation-this._startLocation)*n}return t.prototype.getBulletLocationY.call(this,e,i)},e.prototype.fixVerticalCoordinate=function(t){var e=this.columns.template.pixelPaddingBottom;return B(t,-this.columns.template.pixelPaddingTop,this.yAxis.axisLength+e)},e.prototype.fixHorizontalCoordinate=function(t){var e=this.columns.template.pixelPaddingLeft,i=this.columns.template.pixelPaddingRight;return B(t,-e,this.xAxis.axisLength+i)},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.columns.clear()},e}(da);pe.registeredClasses.ColumnSeries=ul,pe.registeredClasses.ColumnSeriesDataItem=hl;var pl=function(t){function e(){var e=t.call(this)||this;return e.className="TreeMapSeriesDataItem",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"parentName",{get:function(){var t=this.treeMapDataItem;if(t&&t.parent)return t.parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var t=this.treeMapDataItem;if(t)return t.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeMapDataItem",{get:function(){return this._dataContext},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,n,r){var s=this.treeMapDataItem;return s&&s.hide(e),t.prototype.hide.call(this,e,i,n,r)},e.prototype.show=function(e,i,n){var r=this.treeMapDataItem;return r&&r.show(e,i,n),t.prototype.show.call(this,e,i,n)},e}(hl),cl=function(t){function e(){var e=t.call(this)||this;e.className="TreeMapSeries",e.applyTheme(),e.fillOpacity=1,e.strokeOpacity=1,e.minBulletDistance=0,e.columns.template.tooltipText="{parentName} {name}: {value}",e.columns.template.configField="config";var i=new Br;return e.stroke=i.getFor("background"),e.dataFields.openValueX="x0",e.dataFields.valueX="x1",e.dataFields.openValueY="y0",e.dataFields.valueY="y1",e.sequencedInterpolation=!1,e.showOnInit=!1,e.columns.template.pixelPerfect=!1,e}return a(e,t),e.prototype.processDataItem=function(e,i){i.seriesDataItem=e,t.prototype.processDataItem.call(this,e,i)},e.prototype.createDataItem=function(){return new pl},e.prototype.show=function(e){var i=this.defaultState.transitionDuration;return O(e)&&(i=e),this.dataItems.each(function(t){t.show(e)}),t.prototype.showReal.call(this,i)},e.prototype.hide=function(e){var i=this.defaultState.transitionDuration;O(e)&&(i=e);var n=t.prototype.hideReal.call(this,i);return this.dataItems.each(function(t){t.hide(e)}),n},e.prototype.processValues=function(){},e.prototype.dataChangeUpdate=function(){},e.prototype.processConfig=function(e){e&&(w(e.dataFields)&&I(e.dataFields)||(e.dataFields={})),t.prototype.processConfig.call(this,e)},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n=t.createChild(Cs);n.shouldClone=!1,Gt(this,n,ls),n.padding(0,0,0,0),n.width=e,n.height=i;var r=t.dataItem;r.color=n.fill,r.colorOrig=n.fill},e}(ul);pe.registeredClasses.TreeMapSeries=cl,pe.registeredClasses.TreeMapSeriesDataItem=pl;var dl=function(t){function e(){var e=t.call(this)||this;return e.rows=[],e.className="TreeMapDataItem",e.values.value={},e.values.x0={},e.values.y0={},e.values.x1={},e.values.y1={},e.hasChildren.children=!0,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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}),e.prototype.getDuration=function(){return 0},Object.defineProperty(e.prototype,"value",{get:function(){var t=0;return this.children&&0!=this.children.length?Qt(this.children.iterator(),function(e){var i=e.value;O(i)&&(t+=i)}):t=this.values.value.workingValue,t},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"percent",{get:function(){return this.parent?this.value/this.parent.value*100:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x0",{get:function(){return this.values.x0.value},set:function(t){this.setValue("x0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x1",{get:function(){return this.values.x1.value},set:function(t){this.setValue("x1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y0",{get:function(){return this.values.y0.value},set:function(t){this.setValue("y0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this.values.y1.value},set:function(t){this.setValue("y1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.properties.name},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.properties.children},set:function(t){this.setProperty("children",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){var t=this.properties.color;return null==t&&this.parent&&(t=this.parent.color),null==t&&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(e.prototype,"fill",{get:function(){return this.color},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.hide=function(e,i,n,r){return this.setWorkingValue("value",0),this.children&&this.children.each(function(t){t.hide(e,i,n,r)}),t.prototype.hide.call(this,e,i,n,r)},e.prototype.show=function(e,i,n){return this.setWorkingValue("value",this.values.value.value),this.children&&this.children.each(function(t){t.show(e,i,n)}),t.prototype.show.call(this,e,i,n)},e}(ma),fl=function(t){function e(){var e=t.call(this)||this;e.layoutAlgorithm=e.squarify,e.zoomable=!0,e.className="TreeMap",e.maxLevels=2,e.currentLevel=0,e.colors=new So,e.sorting="descending";var i=e.xAxes.push(new ra);i.title.disabled=!0,i.strictMinMax=!0;var n=i.renderer;n.inside=!0,n.labels.template.disabled=!0,n.ticks.template.disabled=!0,n.grid.template.disabled=!0,n.axisFills.template.disabled=!0,n.minGridDistance=100,n.line.disabled=!0,n.baseGrid.disabled=!0;var r=e.yAxes.push(new ra);r.title.disabled=!0,r.strictMinMax=!0;var s=r.renderer;s.inside=!0,s.labels.template.disabled=!0,s.ticks.template.disabled=!0,s.grid.template.disabled=!0,s.axisFills.template.disabled=!0,s.minGridDistance=100,s.line.disabled=!0,s.baseGrid.disabled=!0,s.inversed=!0,e.xAxis=i,e.yAxis=r;var o=new cl;return e.seriesTemplates=new he(o),e._disposers.push(new ae(e.seriesTemplates)),e._disposers.push(o),e.zoomOutButton.events.on("hit",function(){e.zoomToChartDataItem(e._homeDataItem)},void 0,!1),e.seriesTemplates.events.on("insertKey",function(t){t.newValue.isTemplate=!0},void 0,!1),e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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(t){var i=t.target.dataItem.dataContext;i.isDisposed()||(e.zoomToChartDataItem(i),e.createTreeSeries(i))},void 0,!0),this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.validateData=function(){this.series.clear(),this._tempSeries=[],t.prototype.validateData.call(this),this._homeDataItem&&this._homeDataItem.dispose();var e=this.dataItems.template.clone();this._homeDataItem=e,Qt(this.dataItems.iterator(),function(t){t.parent=e}),e.children=this.dataItems,e.x0=0,e.y0=0,e.name=this._homeText;var i=10*Math.round(1e3*this.pixelHeight/this.pixelWidth/10)||1e3;e.x1=1e3,e.y1=i,this.xAxis.min=0,this.xAxis.max=1e3,this.xAxis.getMinMax(),this.yAxis.min=0,this.yAxis.max=i,this.yAxis.getMinMax(),this.layoutItems(e),this.createTreeSeries(e)},e.prototype.layoutItems=function(t,e){if(t){var i=t.children;e||(e=this.sorting),"ascending"==e&&i.values.sort(function(t,e){return t.value-e.value}),"descending"==e&&i.values.sort(function(t,e){return e.value-t.value}),this._updateDataItemIndexes(0),this.layoutAlgorithm(t);for(var n=0,r=i.length;n<r;n++){var s=i.getIndex(n);s.children&&this.layoutItems(s)}}},e.prototype.createTreeSeries=function(t){var e=this;this._tempSeries=[];for(var i=[t],n=t.parent;null!=n;)this.initSeries(n),i.push(n),n=n.parent;i.reverse(),this.navigationBar&&(this.navigationBar.data=i),this.createTreeSeriesReal(t),yt(this._tempSeries,function(t){-1==e.series.indexOf(t)&&e.series.push(t),t.zIndex=t.level})},e.prototype.createTreeSeriesReal=function(t){if(t.children&&t.level<this.currentLevel+this.maxLevels){this.initSeries(t);for(var e=0;e<t.children.length;e++){var i=t.children.getIndex(e);i.children&&this.createTreeSeriesReal(i)}}},e.prototype.setData=function(e){this.currentLevel=0,this.currentlyZoomed=void 0,this.xAxis.start=0,this.xAxis.end=1,this.yAxis.start=0,this.yAxis.end=1,t.prototype.setData.call(this,e)},e.prototype.seriesAppeared=function(){return!0},e.prototype.initSeries=function(t){var e=this;if(!t.series){var i=void 0,n=this.seriesTemplates.getKey(t.level.toString());(i=n?n.clone():this.series.create()).dataItem.dataContext=t,i.name=t.name,i.parentDataItem=t,t.series=i;var r=t.level;i.level=r;var s=t.dataContext;s&&(i.config=s.config),this.dataUsers.removeValue(i),i.data=t.children.values,i.fill=t.color,i.columnsContainer.hide(0),i.bulletsContainer.hide(0),i.columns.template.adapter.add("fill",function(t,e){var i=e.dataItem;if(i){var n=i.treeMapDataItem;if(n)return e.fill=n.color,e.adapter.remove("fill"),n.color}}),this.zoomable&&(t.level>this.currentLevel||t.children&&t.children.length>0)&&(i.columns.template.cursorOverStyle=zr.pointer,this.zoomable&&i.columns.template.events.on("hit",function(i){var n=i.target.dataItem;t.level>e.currentLevel?e.zoomToChartDataItem(n.treeMapDataItem.parent):e.zoomToSeriesDataItem(n)},this,void 0))}this._tempSeries.push(t.series)},e.prototype.toggleBullets=function(t){var e=this;Qt(this.series.iterator(),function(i){-1==e._tempSeries.indexOf(i)?(i.columnsContainer.hide(),i.bulletsContainer.hide(t)):(i.columnsContainer.show(),i.bulletsContainer.show(t),i.level<e.currentLevel&&i.bulletsContainer.hide(t))})},e.prototype.zoomToSeriesDataItem=function(t){this.zoomToChartDataItem(t.treeMapDataItem)},e.prototype.zoomToChartDataItem=function(t){var e=this,i=this.zoomOutButton;if(i&&(t!=this._homeDataItem?i.show():i.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.toggleBullets():(this._dataDisposers.push(n),n.events.once("animationended",function(){e.toggleBullets()}))}},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},e.prototype.createDataItem=function(){return new dl},Object.defineProperty(e.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(t){this.setPropertyValue("maxLevels",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(t){this.setPropertyValue("currentLevel",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(t){this.setPropertyValue("sorting",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new cl},Object.defineProperty(e.prototype,"homeText",{get:function(){return this._homeText},set:function(t){this._homeText=t,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(e){if(w(e.layoutAlgorithm)&&T(e.layoutAlgorithm))switch(e.layoutAlgorithm){case"squarify":e.layoutAlgorithm=this.squarify;break;case"binaryTree":e.layoutAlgorithm=this.binaryTree;break;case"slice":e.layoutAlgorithm=this.slice;break;case"dice":e.layoutAlgorithm=this.dice;break;case"sliceDice":e.layoutAlgorithm=this.sliceDice;break;default:delete e.layoutAlgorithm}w(e.navigationBar)&&!w(e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),t.prototype.processConfig.call(this,e)}},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),Qt(this.series.iterator(),function(t){t.validateRawData()}),this.zoomToChartDataItem(this._homeDataItem)},e.prototype.binaryTree=function(t){var e,i,n=t.children,r=n.length,s=new Array(r+1);for(s[0]=i=e=0;e<r;++e)s[e+1]=i+=n.getIndex(e).value;!function t(e,i,r,o,a,l,h){if(e>=i-1){var u=n.getIndex(e);return u.x0=o,u.y0=a,u.x1=l,void(u.y1=h)}var p=s[e],c=r/2+p,d=e+1,f=i-1;for(;d<f;){var g=d+f>>>1;s[g]<c?d=g+1:f=g}c-s[d-1]<s[d]-c&&e+1<d&&--d;var y=s[d]-p,m=r-y;if(l-o>h-a){var v=(o*m+l*y)/r;t(e,d,y,o,a,v,h),t(d,i,m,v,a,l,h)}else{var b=(a*m+h*y)/r;t(e,d,y,o,a,l,b),t(d,i,m,o,b,l,h)}}(0,r,t.value,t.x0,t.y0,t.x1,t.y1)},e.prototype.slice=function(t){for(var e,i=t.x0,n=t.x1,r=t.y0,s=t.y1,o=t.children,a=-1,l=o.length,h=t.value&&(s-r)/t.value;++a<l;)(e=o.getIndex(a)).x0=i,e.x1=n,e.y0=r,r+=e.value*h,e.y1=r},e.prototype.dice=function(t){for(var e,i=t.x0,n=t.x1,r=t.y0,s=t.y1,o=t.children,a=-1,l=o.length,h=t.value&&(n-i)/t.value;++a<l;)(e=o.getIndex(a)).y0=r,e.y1=s,e.x0=i,i+=e.value*h,e.x1=i},e.prototype.sliceDice=function(t){1&t.level?this.slice(t):this.dice(t)},e.prototype.squarify=function(t){for(var e,i,n,r,s,o,a,l,h,u,p=(1+Math.sqrt(5))/2,c=t.x0,d=t.x1,f=t.y0,g=t.y1,y=t.children,m=0,v=0,b=y.length,x=t.value;m<b;){i=d-c,n=g-f;do{r=y.getIndex(v++).value}while(!r&&v<b);for(s=o=r,u=r*r*(h=Math.max(n/i,i/n)/(x*p)),l=Math.max(o/u,u/s);v<b;++v){if(r+=e=y.getIndex(v).value,e<s&&(s=e),e>o&&(o=e),u=r*r*h,(a=Math.max(o/u,u/s))>l){r-=e;break}l=a}var _=this.dataItems.template.clone();_.value=r,_.dice=i<n,_.children=y.slice(m,v),_.x0=c,_.y0=f,_.x1=d,_.y1=g,_.dice?(_.y1=x?f+=n*r/x:g,this.dice(_)):(_.x1=x?c+=i*r/x:d,this.slice(_)),x-=r,m=v}},e.prototype.handleDataItemValueChange=function(t,e){"value"==e&&this.invalidateDataItems()},e.prototype.handleDataItemWorkingValueChange=function(t,e){"value"==e&&this.invalidateDataItems()},e.prototype.getLegendLevel=function(t){if(t&&t.children)return t.children.length>1?t:1==t.children.length?this.getLegendLevel(t.children.getIndex(0)):t},e.prototype.feedLegend=function(){var t=this.legend;if(t){t.dataFields.name="name";var e=this.getLegendLevel(this._homeDataItem);if(e){var i=[];e.children.each(function(t){i.push(t)}),t.data=i}}},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},e.prototype.getExporting=function(){var e=this,i=t.prototype.getExporting.call(this);return i.adapter.add("formatDataFields",function(t){return"csv"!=t.format&&"xlsx"!=t.format||w(e.dataFields.children)&&delete t.dataFields[e.dataFields.children],t}),i},e}(va);pe.registeredClasses.TreeMap=fl;var gl=function(t){function e(){var e=t.call(this)||this;return e._chart=new Ot,e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return a(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=this.chart.dx3D||0,s=this.chart.dy3D||0,o=this.getHeight();t.path=Vs({x:r,y:s})+Fs({x:r,y:o+s})+Fs({x:0,y:o})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.getHeight(),i=this.chart.dx3D||0,n=this.chart.dy3D||0;this.baseGrid.path=Vs({x:i,y:n})+Fs({x:0,y:0})+Fs({x:0,y:e})},Object.defineProperty(e.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}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(la);pe.registeredClasses.AxisRendererX3D=gl;var yl=function(t){function e(){var e=t.call(this)||this;return e._chart=new Ot,e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return a(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=this.chart.dx3D||0,s=this.chart.dy3D||0,o=this.getWidth();t.path=Vs({x:0,y:0})+Fs({x:r,y:s})+Fs({x:o+r,y:s})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.chart.dx3D||0,i=this.chart.dy3D||0,n=this.getWidth();this.baseGrid.path=Vs({x:0,y:0})+Fs({x:n,y:0})+Fs({x:n+e,y:i})},Object.defineProperty(e.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}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(ea),ml=function(t){function e(){var e=t.call(this)||this;return e.className="Column3D",e}return a(e,t),e.prototype.createAssets=function(){this.column3D=this.createChild(yo),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},e.prototype.validate=function(){t.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.column3D&&this.column3D.copyFrom(e.column3D)},e.prototype.setFill=function(e){t.prototype.setFill.call(this,e),this.column.fill=e},e}(ll);pe.registeredClasses.Column3D=ml;var vl=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return a(e,t),e}(hl),bl=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"columnsContainer",{get:function(){return this.chart&&this.chart.columnsContainer?this.chart.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy)},e.prototype.validateDataElements=function(){t.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},e.prototype.createColumnTemplate=function(){return new ml},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0),this.columns.template.column3D.depth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t),this.columns.template.column3D.angle=t},enumerable:!0,configurable:!0}),e}(ul);pe.registeredClasses.ColumnSeries3D=bl,pe.registeredClasses.ColumnSeries3DDataItem=vl;!function(t){function e(){var e=t.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}a(e,t)}(ma);var xl=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=gl,e._axisRendererY=yl,e.className="XYChart3D",e.depth=30,e.angle=30;var i=e.seriesContainer.createChild(ps);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e.columnsContainer=i,e.columnsContainer.mask=e.createChild(hs),e.applyTheme(),e}return a(e,t),e.prototype.updateSeriesMasks=function(){if(t.prototype.updateSeriesMasks.call(this),Gi()){var e=this.columnsContainer,i=e.mask;e.mask=void 0,e.mask=i}},Object.defineProperty(e.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(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx3D",{get:function(){return W(this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy3D",{get:function(){return-N(this.angle)*this.depth},enumerable:!0,configurable:!0}),e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.fixColumns()},e.prototype.fixLayout=function(){this.chartContainer.marginTop=-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(),t.prototype.fixLayout.call(this)},e.prototype.fixColumns=function(){var t=this,e=1,i=0;Qt(this.series.iterator(),function(t){t instanceof bl&&(!t.clustered&&i>0&&e++,t.depthIndex=e-1,i++)});var n=0;Qt(this.series.iterator(),function(i){if(i instanceof bl){i.depth=t.depth/e,i.angle=t.angle,i.dx=t.depth/e*W(t.angle)*i.depthIndex,i.dy=-t.depth/e*N(t.angle)*i.depthIndex;var r=!1;(i.baseAxis==i.xAxis&&i.xAxis.renderer.inversed||i.baseAxis==i.yAxis&&i.yAxis.renderer.inversed)&&(r=!0);var s=1;i.columns.each(function(t){t.zIndex=r?1e3*(1e3-s)+n-100*i.depthIndex:1e3*s+n-100*i.depthIndex,s++}),r?n--:n++}}),this.maskColumns()},e.prototype.processConfig=function(e){if(e&&w(e.series)&&D(e.series))for(var i=0,n=e.series.length;i<n;i++)e.series[i].type=e.series[i].type||"ColumnSeries3D";t.prototype.processConfig.call(this,e)},e.prototype.maskColumns=function(){var t=this.plotContainer.pixelWidth,e=this.plotContainer.pixelHeight,i=this.dx3D,n=this.dy3D,r=Vs({x:0,y:0})+Fs({x:i,y:n})+Fs({x:t+i,y:n})+Fs({x:t+i,y:e+n})+Fs({x:t,y:e})+Fs({x:t,y:e})+Fs({x:0,y:e})+" Z",s=this.columnsContainer;s&&s.mask&&(s.mask.path=r)},e}(va);pe.registeredClasses.XYChart3D=xl;var _l=function(t){function e(){var e=t.call(this)||this;e.className="HeatLegend",e.markerContainer=e.createChild(ps),e.markerContainer.shouldClone=!1,e.markerCount=1;var i=new Cs;return i.minHeight=20,i.minWidth=20,i.interactionsEnabled=!1,i.fillOpacity=1,i.cornerRadius(0,0,0,0),e.markerContainer.minHeight=20,e.markerContainer.minWidth=20,e.orientation="horizontal",e.markers=new ve(i),e._disposers.push(new ge(e.markers)),e._disposers.push(e.markers.template),e.applyTheme(),e}return a(e,t),e.prototype.getMinFromRules=function(t){var e,i=this.series;if(i)return Jt(i.heatRules.iterator(),function(i){return i.property!=t||(e=i.min,!1)}),e},e.prototype.getMaxFromRules=function(t){var e,i=this.series;if(i)return Qt(i.heatRules.iterator(),function(i){return i.property!=t||(e=i.max,!1)}),e},e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.series,i=this.minColor,n=this.maxColor;if(w(i)||(i=Le(this.getMinFromRules("fill"))),w(n)||(n=Le(this.getMaxFromRules("fill"))),e){var r=e.fill;!w(i)&&r instanceof je&&(i=r),!w(n)&&r instanceof je&&(n=r)}w(n)||(n=Le(this.getMaxFromRules("fill")));var s=x(this.getMinFromRules("fillOpacity"));O(s)||(s=1);var o=x(this.getMaxFromRules("fillOpacity"));O(o)||(o=1);var a=x(this.getMinFromRules("strokeOpacity"));O(a)||(a=1);var l=x(this.getMaxFromRules("strokeOpacity"));O(l)||(l=1);for(var h=Le(this.getMinFromRules("stroke")),u=Le(this.getMaxFromRules("stroke")),p=0;p<this.markerCount;p++){var c=this.markers.getIndex(p);if(c||((c=this.markers.create()).parent=this.markerContainer,c.height=g(100),c.width=g(100)),1==this.markerCount){var d=new Hr;if(d.addColor(i,s),d.addColor(n,o),"vertical"==this.orientation&&(d.rotation=-90),c.fill=d,w(h)&&w(u)){var f=new Hr;f.addColor(h,a),f.addColor(u,l),"vertical"==this.orientation&&(f.rotation=-90),c.stroke=f}}else{var y=new je(Ae(i.rgb,n.rgb,p/this.markerCount));c.fill=y;var m=s+(o-s)*p/this.markerCount;if(c.fillOpacity=m,w(h)&&w(u)){var v=new je(Ae(h.rgb,u.rgb,p/this.markerCount));c.stroke=v;var b=a+(l-a)*p/this.markerCount;c.strokeOpacity=b}}}var _=this.valueAxis.renderer;this.markerCount>1&&("horizontal"==this.orientation?_.minGridDistance=this.measuredWidth/this.markerCount:_.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate();p=this.markerCount;for(var P=this.markers.length;p<P;p++)this.markers.getIndex(p).parent=void 0},Object.defineProperty(e.prototype,"minColor",{get:function(){return this.getPropertyValue("minColor")},set:function(t){t instanceof je||(t=Le(t)),this.setColorProperty("minColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxColor",{get:function(){return this.getPropertyValue("maxColor")},set:function(t){I(t)||(t=Le(t)),this.setColorProperty("maxColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerCount",{get:function(){return this.getPropertyValue("markerCount")},set:function(t){this.setPropertyValue("markerCount",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.markerContainer,i=this.valueAxis;"horizontal"==t?(w(this.width)||(this.width=200),this.height=void 0,i.width=g(100),i.height=void 0,i.tooltip.pointerOrientation="vertical",this.layout="vertical",e.width=g(100),e.height=void 0,i.renderer instanceof la||(i.renderer=new la)):(w(this.height)||(this.height=200),this.width=void 0,this.layout="horizontal",e.width=void 0,e.height=g(100),i.height=g(100),i.width=void 0,i.tooltip.pointerOrientation="horizontal",i.renderer instanceof ea||(i.renderer=new ea),i.renderer.inside=!0,i.renderer.labels.template.inside=!0,this.markerContainer.reverseOrder=!0);var n=i.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(e.prototype,"valueAxis",{get:function(){return this._valueAxis||(this.valueAxis=this.createChild(ra),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(e.prototype,"series",{get:function(){return this._series},set:function(t){var e=this;this._series=t;var i="value";try{var n=t.heatRules.getIndex(0).dataField;n&&(i=n)}catch(t){}this.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].high),t.dataItem.events.on("calculatedvaluechanged",function(n){e.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].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}),e.prototype.updateMinMax=function(t,e){var i=this.valueAxis;O(this.minValue)||(i.min=t,i.invalidate()),O(this.maxValue)||(i.max=e,i.invalidate())},e.prototype.processConfig=function(e){if(e&&w(e.series)&&T(e.series)&&T(e.series))if(this.map.hasKey(e.series))e.series=this.map.getKey(e.series);else{var i=e.series,n=this.map.events.on("insertKey",function(t){t.key==i&&(this.series=t.newValue,n.dispose())},this);this._disposers.push(n),delete e.series}t.prototype.processConfig.call(this,e)},e}(ps);pe.registeredClasses.HeatLegend=_l;var Pl=function(t){function e(){var e=t.call(this)||this;return e.className="Candlestick",e.layout="none",e}return a(e,t),e.prototype.createAssets=function(){t.prototype.createAssets.call(this),this.lowLine=this.createChild(Is),this.lowLine.shouldClone=!1,this.highLine=this.createChild(Is),this.highLine.shouldClone=!1},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.lowLine&&this.lowLine.copyFrom(e.lowLine),this.highLine&&this.highLine.copyFrom(e.highLine)},e}(ll);pe.registeredClasses.Candlestick=Pl;var wl=function(t){function e(){var e=t.call(this)||this;return e.values.lowValueX={},e.values.lowValueY={},e.values.highValueX={},e.values.highValueY={},e.className="CandlestickSeriesDataItem",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"lowValueX",{get:function(){return this.values.lowValueX.value},set:function(t){this.setValue("lowValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lowValueY",{get:function(){return this.values.lowValueY.value},set:function(t){this.setValue("lowValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"highValueX",{get:function(){return this.values.highValueX.value},set:function(t){this.setValue("highValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"highValueY",{get:function(){return this.values.highValueY.value},set:function(t){this.setValue("highValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeValueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeValueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),e}(hl),Cl=function(t){function e(){var e=t.call(this)||this;e.className="CandlestickSeries",e.strokeOpacity=1;var i=new Br,n=i.getFor("positive"),r=i.getFor("negative");return e.dropFromOpenState.properties.fill=r,e.dropFromOpenState.properties.stroke=r,e.riseFromOpenState.properties.fill=n,e.riseFromOpenState.properties.stroke=n,e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Candlestick Series"))},e.prototype.createDataItem=function(){return new wl},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e),this.validateCandlestick(e)},e.prototype.validateCandlestick=function(t){var e=t.column;if(e){var i=e.lowLine,n=e.highLine;if(this.baseAxis==this.xAxis){var r=e.pixelWidth/2;i.x=r,n.x=r;var s=t.getWorkingValue(this.yOpenField),o=t.getWorkingValue(this.yField),a=this.yAxis.getY(t,this.yOpenField),l=this.yAxis.getY(t,this.yField),h=this.yAxis.getY(t,this.yLowField),u=this.yAxis.getY(t,this.yHighField),p=e.pixelY;i.y1=h-p,n.y1=u-p,s<o?(i.y2=a-p,n.y2=l-p):(i.y2=l-p,n.y2=a-p)}if(this.baseAxis==this.yAxis){var c=e.pixelHeight/2;i.y=c,n.y=c;var d=t.getWorkingValue(this.xOpenField),f=t.getWorkingValue(this.xField),g=this.xAxis.getX(t,this.xOpenField),y=this.xAxis.getX(t,this.xField),m=this.xAxis.getX(t,this.xLowField),v=this.xAxis.getX(t,this.xHighField),b=e.pixelX;i.x1=m-b,n.x1=v-b,d<f?(i.x2=g-b,n.x2=y-b):(i.x2=y-b,n.x2=g-b)}Qt(this.axisRanges.iterator(),function(e){var r=t.rangesColumns.getKey(e.uid);if(r){var s=r.lowLine;s.x=i.x,s.y=i.y,s.x1=i.x1,s.x2=i.x2,s.y1=i.y1,s.y2=i.y2;var o=r.highLine;o.x=n.x,o.y=n.y,o.x1=n.x1,o.x2=n.x2,o.y1=n.y1,o.y2=n.y2}})}},Object.defineProperty(e.prototype,"xLowField",{get:function(){return this._xLowField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yLowField",{get:function(){return this._yLowField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xHighField",{get:function(){return this._xHighField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yHighField",{get:function(){return this._yHighField},enumerable:!0,configurable:!0}),e.prototype.defineFields=function(){if(t.prototype.defineFields.call(this),this.baseAxis==this.xAxis){var e=ni(this.yAxis.axisFieldName);this._yLowField="low"+e+"Y",this._yHighField="high"+e+"Y"}if(this.baseAxis==this.yAxis){var i=ni(this.xAxis.axisFieldName);this._xLowField="low"+i+"X",this._xHighField="high"+i+"X"}this.addValueField(this.xAxis,this._xValueFields,this._xLowField),this.addValueField(this.xAxis,this._xValueFields,this._xHighField),this.addValueField(this.yAxis,this._yValueFields,this._yLowField),this.addValueField(this.yAxis,this._yValueFields,this._yHighField)},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n,r,s=t.createChild(Pl);s.shouldClone=!1,s.copyFrom(this.columns.template);var o=s.lowLine,a=s.highLine;this.baseAxis==this.yAxis?(n=e/3,r=i,o.y=i/2,a.y=i/2,o.x2=e/3,a.x2=e/3,a.x=e/3*2,s.column.x=e/3):(n=e,r=i/3,o.x=e/2,a.x=e/2,o.y2=i/3,a.y2=i/3,a.y=i/3*2,s.column.y=i/3),s.width=n,s.height=r,Gt(this,t,ls),Gt(this.columns.template,s,ls),s.stroke=this.riseFromOpenState.properties.stroke,s.fill=s.stroke;var l=t.dataItem;l.color=s.fill,l.colorOrig=s.fill},e.prototype.createColumnTemplate=function(){return new Pl},e}(ul);pe.registeredClasses.CandlestickSeries=Cl,pe.registeredClasses.CandlestickSeriesDataItem=wl;var Sl=function(t){function e(){var e=t.call(this)||this;return e.className="OHLC",e.layout="none",e}return a(e,t),e.prototype.createAssets=function(){this.openLine=this.createChild(Is),this.openLine.shouldClone=!1,this.highLowLine=this.createChild(Is),this.highLowLine.shouldClone=!1,this.closeLine=this.createChild(Is),this.closeLine.shouldClone=!1},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.openLine&&this.openLine.copyFrom(e.openLine),this.highLowLine&&this.highLowLine.copyFrom(e.highLowLine),this.closeLine&&this.closeLine.copyFrom(e.closeLine)},e}(Pl);pe.registeredClasses.OHLC=Sl;var kl=function(t){function e(){var e=t.call(this)||this;return e.className="OHLCSeriesDataItem",e.applyTheme(),e}return a(e,t),e}(wl),Tl=function(t){function e(){var e=t.call(this)||this;return e.className="OHLCSeries",e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("OHLC Series"))},e.prototype.createDataItem=function(){return new kl},e.prototype.validateCandlestick=function(t){var e=t.column;if(e){var i=e.openLine,n=e.highLowLine,r=e.closeLine;if(this.baseAxis==this.xAxis){var s=e.pixelWidth/2;n.x=s,t.getWorkingValue(this.yOpenField),t.getWorkingValue(this.yField);var o=this.yAxis.getY(t,this.yOpenField),a=this.yAxis.getY(t,this.yField),l=this.yAxis.getY(t,this.yLowField),h=this.yAxis.getY(t,this.yHighField),u=e.pixelY;i.y1=o-u,i.y2=o-u,i.x1=0,i.x2=s,r.y1=a-u,r.y2=a-u,r.x1=s,r.x2=2*s,n.y1=h-u,n.y2=l-u}if(this.baseAxis==this.yAxis){var p=e.pixelHeight/2;n.y=p,t.getWorkingValue(this.xOpenField),t.getWorkingValue(this.xField);var c=this.xAxis.getX(t,this.xOpenField),d=this.xAxis.getX(t,this.xField),f=this.xAxis.getX(t,this.xLowField),g=this.xAxis.getX(t,this.xHighField),y=e.pixelX;i.x1=c-y,i.x2=c-y,i.y1=p,i.y2=2*p,r.x1=d-y,r.x2=d-y,r.y1=0,r.y2=p,n.x1=g-y,n.x2=f-y}Qt(this.axisRanges.iterator(),function(e){var s=t.rangesColumns.getKey(e.uid);if(s){var o=s.openLine;o.x=i.x,o.y=i.y,o.x1=i.x1,o.x2=i.x2,o.y1=i.y1,o.y2=i.y2;var a=s.closeLine;a.x=r.x,a.y=r.y,a.x1=r.x1,a.x2=r.x2,a.y1=r.y1,a.y2=r.y2;var l=s.highLowLine;l.x=n.x,l.y=n.y,l.x1=n.x1,l.x2=n.x2,l.y1=n.y1,l.y2=n.y2}})}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n,r,s=t.createChild(Sl);s.shouldClone=!1,s.copyFrom(this.columns.template);var o=s.openLine,a=s.closeLine,l=s.highLowLine;this.baseAxis==this.yAxis?(n=e/3,r=i,l.y=i/2,l.x2=e,o.x=e/3*2,o.y2=i/2,a.x=e/3,a.y2=i,a.y1=i/2):(n=e,r=i/3,l.x=e/2,l.y2=i,o.y=i/3*2,o.x2=e/2,a.y=i/3,a.x2=e,a.x1=e/2),s.width=n,s.height=r,Gt(this,t,ls),Gt(this.columns.template,s,ls),s.stroke=this.riseFromOpenState.properties.stroke;var h=t.dataItem;h.color=s.stroke,h.colorOrig=s.stroke},e.prototype.createColumnTemplate=function(){return new Sl},e}(Cl);pe.registeredClasses.OHLCSeries=Tl,pe.registeredClasses.OHLCSeriesDataItem=kl;var Ol=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeriesSegment",e}return a(e,t),e.prototype.drawSegment=function(t,e,i,n,r,s){if(t.length>0&&e.length>0)if(r){var o=Vs(t[0]);if(t.length>0)for(var a=1;a<t.length;a++){var l=t[a];a/2==Math.round(a/2)?o+=Vs(l):o+=Fs(l)}this.strokeSprite.path=o,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(o=Vs(t[0])+As(t),o+=Fs(e[0])+As(e),o+=Fs(t[0]),o+=" Z",this.fillSprite.path=o)}else{o=Vs(t[0])+As(t);this.strokeSprite.path=o,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(o+=Fs(e[0])+As(e),o+=Fs(t[0]),o+=" Z",this.fillSprite.path=o)}},e}(ba);pe.registeredClasses.StepLineSeriesSegment=Ol;var Il=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return a(e,t),e}(xa),Dl=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return a(e,t),e.prototype.createDataItem=function(){return new Il},e.prototype.addPoints=function(t,e,i,n,r){var s=this.startLocation,o=this.endLocation,a=this.xAxis.getX(e,i,s),l=this.yAxis.getY(e,n,s),h=this.xAxis.getX(e,i,o),u=this.yAxis.getY(e,n,o);if(a=B(a,-1e5,1e5),l=B(l,-1e5,1e5),h=B(h,-1e5,1e5),u=B(u,-1e5,1e5),!this.noRisers&&this.connect&&t.length>1){var p=t[t.length-1];this.baseAxis==this.xAxis&&(r?t.push({x:p.x,y:u}):t.push({x:a,y:p.y})),this.baseAxis==this.yAxis&&(r?t.push({x:h,y:p.y}):t.push({x:p.x,y:l}))}var c={x:a,y:l},d={x:h,y:u};r?t.push(d,c):t.push(c,d)},e.prototype.drawSegment=function(t,e,i){var n=!1;this.yAxis==this.baseAxis&&(n=!0),t.drawSegment(e,i,this.tensionX,this.tensionY,this.noRisers,n)},e.prototype.createSegment=function(){return new Ol},Object.defineProperty(e.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(t){this.setPropertyValue("noRisers",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e}(_a);pe.registeredClasses.StepLineSeries=Dl,pe.registeredClasses.StepLineSeriesDataItem=Il;var Al=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumn",e}return a(e,t),e.prototype.createAssets=function(){this.radarColumn=this.createChild(Us),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return O(t)||(t=this.radarColumn.tooltipX),t},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipX");return O(t)||(t=this.radarColumn.tooltipY),t},e}(ll);pe.registeredClasses.RadarColumn=Al;var Vl=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return a(e,t),e}(hl),Fl=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return a(e,t),e.prototype.createColumnTemplate=function(){return new Al},e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.validateDataElementReal=function(t){var e,i,n,r,s=this,o=this.chart.startAngle,a=this.chart.endAngle,l=this.yField,h=this.yOpenField,u=this.xField,p=this.xOpenField,c=this.getStartLocation(t),d=this.getEndLocation(t),f=(a-o)/(this.dataItems.length*(this.end-this.start)),g=this.columns.template.percentWidth;y(g)&&(g=100);var m=E((d-c)*(1-g/100)/2,5);if(c+=m,d-=m,this.baseAxis==this.xAxis?(n=q({x:this.yAxis.getX(t,l,t.locations[l],"valueY"),y:this.yAxis.getY(t,l,t.locations[l],"valueY")}),r=q({x:this.yAxis.getX(t,h,t.locations[h],"valueY"),y:this.yAxis.getY(t,h,t.locations[h],"valueY")}),e=this.xAxis.getAngle(t,p,c,"valueX"),i=this.xAxis.getAngle(t,u,d,"valueX"),o+=c*f,a-=(1-d)*f):(n=q({x:this.yAxis.getX(t,l,c,"valueY"),y:this.yAxis.getY(t,l,c,"valueY")}),r=q({x:this.yAxis.getX(t,h,d,"valueY"),y:this.yAxis.getY(t,h,d,"valueY")}),e=this.xAxis.getAngle(t,u,t.locations[u],"valueX"),i=this.xAxis.getAngle(t,p,t.locations[p],"valueX")),i<e){var v=i;i=e,e=v}e=B(e,o,a),i=B(i,o,a);var b=t.column;b||(b=this.columns.create(),t.column=b,Kt(this.columns.template,b,ls),t.addSprite(b),b.paper=this.paper,this.setColumnStates(b));var x=b.radarColumn;x.startAngle=e;var _=i-e;_>0?(x.arc=_,x.radius=n,x.innerRadius=r,b.__disabled=!1,b.parent=this.columnsContainer,Qt(this.axisRanges.iterator(),function(i){var o=t.rangesColumns.getKey(i.uid);o||(o=s.columns.create(),Kt(s.columns.template,o,ls),Gt(i.contents,o,ls),o.dataItem&&mt(o.dataItem.sprites,o),t.addSprite(o),o.paper=s.paper,s.setColumnStates(o),t.rangesColumns.setKey(i.uid,o));var a=o.radarColumn;a.startAngle=e,a.arc=_,a.radius=n,a.innerRadius=r,a.invalid&&(a.paper=s.paper,a.validate()),o.__disabled=!1,o.parent=i.contents})):this.disableUnusedColumns(t)},e.prototype.getPoint=function(t,e,i,n,r,s,o){s||(s="valueX"),o||(o="valueY");var a=q({x:this.yAxis.getX(t,i,r,o),y:this.yAxis.getY(t,i,r,o)});0==a&&(a=1e-5);var l=this.xAxis.getAngle(t,e,n,s);return{x:a*W(l),y:a*N(l)}},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return Ls(t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e}(ul);pe.registeredClasses.RadarColumnSeries=Fl,pe.registeredClasses.RadarColumnSeriesDataItem=Vl;var Ml=function(t){function e(){var e=t.call(this)||this;return e.slice=e.createChild(hs),e.slice.shouldClone=!1,e.slice.setElement(e.paper.add("path")),e.slice.isMeasured=!1,e.orientation="vertical",e.bottomWidth=g(100),e.topWidth=g(100),e.isMeasured=!1,e.width=10,e.height=10,e.expandDistance=0,e.className="FunnelSlice",e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelPaddingTop,i=this.pixelPaddingBottom,n=this.pixelPaddingRight,r=this.pixelPaddingLeft,s=this.pixelWidth-n-r,o=this.pixelHeight-e-i,a=this.expandDistance,l="";if("vertical"==this.orientation){var h={x:(s-(m=Je(this.topWidth,s)))/2+r,y:e},u={x:(s+m)/2+r,y:e},p={x:(s+(v=Je(this.bottomWidth,s)))/2+r,y:e+o},c={x:(s-v)/2+r,y:e+o},d={x:u.x+(p.x-u.x)/2+a*o,y:u.y+.5*o},f={x:h.x+(c.x-h.x)/2-a*o,y:h.y+.5*o},g=Fs(p),y="";0!=a&&(g=Ms(p,d),y=Ms(h,f)),l=Vs(h)+Fs(u)+g+Fs(c)+y,this.tickPoint={x:u.x+(p.x-u.x)/2,y:u.y+(p.y-u.y)/2}}else{var m,v,b={x:r,y:(o-(m=Je(this.topWidth,o)))/2+e},x={x:r,y:(o+m)/2+e},_={x:r+s,y:(o-(v=Je(this.bottomWidth,o)))/2+e},P={x:r+s,y:(o+v)/2+e};d={y:b.y+(_.y-b.y)/2-a*s,x:b.x+.5*s},f={y:x.y+(P.y-x.y)/2+a*s,x:x.x+.5*s},g=Fs(_),y="";0!=a&&(g=Ms(_,d),y=Ms(x,f)),l=Vs(x)+Fs(b)+g+Fs(P)+y,this.tickPoint={y:x.y+(P.y-x.y)/2,x:x.x+(P.x-x.x)/2}}this.slice.path=l,this.invalidateLayout()},e.prototype.getPoint=function(t,e){var i=this.pixelPaddingTop,n=this.pixelPaddingBottom,r=this.pixelPaddingRight,s=this.pixelPaddingLeft,o=this.pixelWidth-r-s,a=this.pixelHeight-i-n;if("vertical"==this.orientation){var l={x:(o-(c=Je(this.topWidth,o)))/2+s,y:i},h={x:(o+c)/2+s,y:i},u={x:(o+(d=Je(this.bottomWidth,o)))/2+s,y:i+a},p=l.x+({x:(o-d)/2+s,y:i+a}.x-l.x)*e;return{x:p+(h.x+(u.x-h.x)*e-p)*t,y:h.y+(u.y-h.y)*e}}var c,d,f={x:s,y:(a-(c=Je(this.topWidth,a)))/2+i},g={x:s,y:(a+c)/2+i},y={x:s+o,y:(a-(d=Je(this.bottomWidth,a)))/2+i},m=f.y+(y.y-f.y)*t;return{y:m+(g.y+({x:s+o,y:(a+d)/2+i}.y-g.y)*t-m)*e,x:f.x+(y.x-f.x)*t}},Object.defineProperty(e.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(e.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(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(t){this.setPropertyValue("expandDistance",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.slice&&this.slice.copyFrom(e.slice)},e}(ps);pe.registeredClasses.FunnelSlice=Ml;var jl=function(t){function e(){var e=t.call(this)||this;return e._label=new Ot,e._slice=new Ot,e.className="FunnelTick",e.element=e.paper.add("path"),e._disposers.push(e._label),e._disposers.push(e._slice),e.setPropertyValue("locationX",0),e.setPropertyValue("locationY",0),e.applyTheme(),e}return a(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.slice,i=e.getPoint(this.locationX,this.locationY);if(i){var n=this.label,r=e.dataItem.component;if("vertical"==r.orientation){var s=n.pixelX,o=n.pixelY;r.labelsOpposite||(s+=n.maxRight);var a=Vi(i,e,this.parent),l=Vi({x:s,y:o},n.parent,this.parent);this.path=Vs(a)+Fs(l)}else{s=n.pixelX,o=n.pixelY;r.labelsOpposite||(o+=n.maxBottom);a=Vi(i,e,this.parent),l=Vi({x:s,y:o},n.parent,this.parent);this.path=Vs(a)+Fs(l)}}},Object.defineProperty(e.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new Tt([t.events.on("transformed",this.invalidate,this,!1),t.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){this.setPropertyValue("locationX",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){this.setPropertyValue("locationY",t,!1,!0)},enumerable:!0,configurable:!0}),e}($o);pe.registeredClasses.FunnelTick=jl;var El=function(t){function e(){var e=t.call(this)||this;return e.className="FunnelSeriesDataItem",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.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 kt(function(){t.component&&t.component.sliceLinks.removeValue(e)})),this.addSprite(e),e.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),e}(Ma),Ll=function(t){function e(){var e=t.call(this)||this;return e._nextY=0,e.className="FunnelSeries",e.orientation="vertical",e.width=g(100),e.height=g(100),e.slicesContainer.width=g(100),e.slicesContainer.height=g(100),e._disposers.push(e.slicesContainer.events.on("maxsizechanged",e.invalidateDataItems,e,!1)),e.labelsOpposite=!0,e.labelsContainer.layout="absolute",e.bottomRatio=0,e.applyTheme(),e}return a(e,t),e.prototype.createSlice=function(){return new Ml},e.prototype.createTick=function(){return new jl},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},e.prototype.createDataItem=function(){return new El},e.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('#.#')}% ({value.value})",t.states.create("hover").properties.expandDistance=.2},e.prototype.initLabel=function(e){t.prototype.initLabel.call(this,e),e.verticalCenter="middle",e.horizontalCenter="middle",e.isMeasured=!0,e.padding(5,5,5,5)},e.prototype.validate=function(){t.prototype.validate.call(this),this._nextY=0},e.prototype.validateDataElements=function(){var e=this.slicesContainer,i=this.labelsContainer,n=this.labels.template;this.alignLabels?(n.interactionsEnabled=!0,e.isMeasured=!0,i.isMeasured=!0):(n.interactionsEnabled=!1,e.isMeasured=!1,i.isMeasured=!1);var r=0,s=0;this.dataItems.each(function(t){w(t.value)&&(s++,t.value>0?r+=t.getWorkingValue("value")/t.value:r+=1)}),this._total=1/s*r,this._count=s,t.prototype.validateDataElements.call(this),this.arrangeLabels()},e.prototype.getNextValue=function(t){var e=t.index,i=t.getWorkingValue("value");if(e<this.dataItems.length-1){var n=this.dataItems.getIndex(e+1);if(i=n.getWorkingValue("value"),!n.visible||n.isHiding)return this.getNextValue(n)}return i},e.prototype.formDataElement=function(){},e.prototype.validateDataElement=function(e){if(w(e.value)){var i=e.slice;i.orientation=this.orientation;var n=e.sliceLink;n.orientation=this.orientation;var r=e.tick,s=e.label;r.slice=i,r.label=s,this.decorateSlice(e),n.fill=i.fill,e.index==this.dataItems.length-1&&(n.disabled=!0),t.prototype.validateDataElement.call(this,e)}},e.prototype.decorateSlice=function(t){var e=t.slice,i=t.sliceLink,n=t.label,r=t.tick,s=this.slicesContainer.innerWidth,o=this.slicesContainer.innerHeight,a=this.getNextValue(t),l=t.getWorkingValue("value"),h=this.bottomRatio,u=1;if(t.value>0&&(u=l/t.value),"vertical"==this.orientation){var p=i.pixelHeight*u;o+=p,e.topWidth=l/this.dataItem.values.value.high*s,e.bottomWidth=(l-(l-a)*h)/this.dataItem.values.value.high*s,i.topWidth=e.bottomWidth,i.bottomWidth=(l-(l-a))/this.dataItem.values.value.high*s,e.y=this._nextY,e.height=X(0,o/this._count*u/this._total-p),e.x=s/2,this.alignLabels?n.x=void 0:n.x=e.x,n.y=e.pixelY+e.pixelHeight*r.locationY,this._nextY+=e.pixelHeight+p,i.y=this._nextY-p,i.x=e.x}else{var c=i.pixelWidth*u;s+=c,e.topWidth=l/this.dataItem.values.value.high*o,e.bottomWidth=(l-(l-a)*h)/this.dataItem.values.value.high*o,i.topWidth=e.bottomWidth,i.bottomWidth=(l-(l-a))/this.dataItem.values.value.high*o,e.x=this._nextY,e.width=s/this._count*u*1/this._total-c,e.y=o/2,this.alignLabels?n.y=this.labelsContainer.measuredHeight:n.y=e.y,n.x=e.pixelX+e.pixelWidth*r.locationX,this._nextY+=e.pixelWidth+c,i.x=this._nextY-c,i.y=e.y}},e.prototype.arrangeLabels=function(){if(this.alignLabels){var t=this.labels.length;if(t>1){var e=this.labels.getIndex(t-1),i=e.pixelY,n=e.pixelX;if(t>1){for(var r=t-2;r>=0;r--){(s=this.labels.getIndex(r)).visible&&(s.invalid&&s.validate(),"vertical"==this.orientation?s.pixelY+s.measuredHeight>i&&(s.y=i-s.measuredHeight):s.pixelX+s.measuredWidth>n&&(s.x=n-s.measuredWidth),i=s.pixelY,n=s.pixelX)}i=0,n=0;for(r=0;r<t;r++){var s;(s=this.labels.getIndex(r)).visible&&(s.invalid&&s.validate(),"vertical"==this.orientation?s.pixelY<i&&(s.y=i):s.pixelX<n&&(s.x=n),i+=s.measuredHeight,n+=s.measuredWidth)}}}}},e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem.slice,n=e.locationX;O(n)||(n=.5);var r=e.locationY;O(r)||(r=1),e.x=i.pixelX+i.measuredWidth*n,e.y=i.pixelY+i.measuredHeight*r},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&(this.labelsOpposite=this.labelsOpposite,this.invalidate(),"vertical"==t?(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(e.prototype,"bottomRatio",{get:function(){return this.getPropertyValue("bottomRatio")},set:function(t){this.setPropertyValue("bottomRatio",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sliceLinks",{get:function(){if(!this._sliceLinks){var t=new Ml;t.applyOnClones=!0,t.fillOpacity=.5,t.expandDistance=-.3,t.hiddenState.properties.opacity=0,this._disposers.push(t),this._sliceLinks=new ve(t),this._disposers.push(new ge(this._sliceLinks))}return this._sliceLinks},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var i=this,n=this.startIndex,r=this.endIndex,s=this.defaultState.transitionDuration;O(e)&&(s=e);var o=0;return Qt(ie(this.dataItems.iterator()),function(t){var e=t[0],a=t[1];i.sequencedInterpolation&&(o=i.sequencedInterpolationDelay*e+s*(e-n)/(r-n)),a.show(s,o,["value"])}),t.prototype.show.call(this,e)},e.prototype.hide=function(e){var i=this,n=["value"],r=this.startIndex,s=this.endIndex,o=0,a=this.hiddenState.transitionDuration;O(e)&&(a=e),Qt(ie(this.dataItems.iterator()),function(t){var e=t[0],l=t[1];i.sequencedInterpolation&&(o=i.sequencedInterpolationDelay*e+a*(e-r)/(s-r)),l.hide(a,o,0,n)});var l=t.prototype.hide.call(this,e);return l&&!l.isFinished()&&l.delay(o),l},e.prototype.setAlignLabels=function(e){t.prototype.setAlignLabels.call(this,e),this.ticks.template.disabled=!e;var i=this.labelsContainer;i&&(e?(i.height=void 0,i.width=void 0,i.margin(10,10,10,10)):(i.width=g(100),i.height=g(100))),this.labelsOpposite=this.labelsOpposite},Object.defineProperty(e.prototype,"labelsOpposite",{get:function(){return this.getPropertyValue("labelsOpposite")},set:function(t){this.setPropertyValue("labelsOpposite",t);var e=this.labels.template,i="none",n="none";this.alignLabels?t?(this.labelsContainer.toFront(),"vertical"==this.orientation?(this.ticks.template.locationX=1,e.horizontalCenter="left",i="right"):(this.ticks.template.locationY=1,e.horizontalCenter="right",n="bottom")):(this.labelsContainer.toBack(),"vertical"==this.orientation?(this.ticks.template.locationX=0,i="left"):(n="top",this.ticks.template.locationY=0)):"vertical"==this.orientation?i="center":n="middle",e.align=i,e.valign=n,this.validateLayout(),this.ticks.each(function(t){t.invalidate()}),this.invalidateDataItems()},enumerable:!0,configurable:!0}),e}(ja);pe.registeredClasses.FunnelSeries=Ll,pe.registeredClasses.FunnelSeriesDataItem=El;var Rl=function(t){function e(){var e=t.call(this)||this;return e.className="PyramidSeriesDataItem",e.applyTheme(),e}return a(e,t),e}(El),Bl=function(t){function e(){var e=t.call(this)||this;return e.className="PyramidSeries",e.topWidth=g(0),e.bottomWidth=g(100),e.pyramidHeight=g(100),e.valueIs="area",e.sliceLinks.template.width=0,e.sliceLinks.template.height=0,e.applyTheme(),e}return a(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},e.prototype.createDataItem=function(){return new Rl},e.prototype.validate=function(){t.prototype.validate.call(this),this._nextWidth=void 0},e.prototype.getNextValue=function(t){var e=t.index,i=t.getWorkingValue("value");e<this.dataItems.length-1&&(i=this.dataItems.getIndex(e+1).getWorkingValue("value"));return 0==i&&(i=1e-6),i},e.prototype.validateDataElements=function(){var e=this,i=this.slicesContainer.innerWidth,n=this.slicesContainer.innerHeight;if(this.dataItems.each(function(t){var r=t.getWorkingValue("value")/t.value,s=t.sliceLink;"vertical"==e.orientation?n-=s.pixelHeight*r:i-=s.pixelWidth*r}),this._pyramidHeight=Je(this.pyramidHeight,n),this._pyramidWidth=Je(this.pyramidHeight,i),"vertical"==this.orientation){var r=(n-this._pyramidHeight)/2;this.slicesContainer.y=r,this.labelsContainer.y=r,this.ticksContainer.y=r}else{var s=(i-this._pyramidWidth)/2;this.slicesContainer.x=s,this.labelsContainer.x=s,this.ticksContainer.x=s}t.prototype.validateDataElements.call(this)},e.prototype.decorateSlice=function(t){var e=this.dataItem.values.value.sum;if(0!=e){var i=t.slice,n=t.sliceLink,r=t.label,s=t.tick;this.getNextValue(t);var o=t.getWorkingValue("value");0==o&&(o=1e-6);var a=this._pyramidWidth,l=this._pyramidHeight,h=this.slicesContainer.innerWidth,u=this.slicesContainer.innerHeight,p=n.pixelWidth,c=n.pixelHeight;if("vertical"==this.orientation){var d=Je(this.topWidth,h);O(this._nextWidth)||(this._nextWidth=d);var f=Je(this.bottomWidth,h),g=this._nextWidth,y=Math.atan2(l,d-f);0==(_=Math.tan(Math.PI/2-y))&&(_=1e-8);var m=void 0,v=void 0;if("area"==this.valueIs){var b=(d+f)/2*l*o/e,x=Math.abs(g*g-2*b*_);v=(2*b-(m=(g-Math.sqrt(x))/_)*g)/m}else{v=g-(m=l*o/this.dataItem.values.value.sum)*_}i.height=m,i.width=h,i.bottomWidth=v,i.topWidth=g,n.topWidth=i.bottomWidth,n.bottomWidth=i.bottomWidth,i.y=this._nextY,this.alignLabels?r.x=0:r.x=h/2,r.y=i.pixelY+i.pixelHeight*s.locationY+i.dy,this._nextY+=i.pixelHeight+c*o/t.value,n.y=this._nextY-c,n.x=h/2}else{d=Je(this.topWidth,u);O(this._nextWidth)||(this._nextWidth=d);var _;f=Je(this.bottomWidth,u),g=this._nextWidth,y=Math.atan2(a,d-f);0==(_=Math.tan(Math.PI/2-y))&&(_=1e-8);var P=void 0;v=void 0;if("area"==this.valueIs)v=(2*(b=(d+f)/2*a*o/this.dataItem.values.value.sum)-(P=(g-Math.sqrt(g*g-2*b*_))/_)*g)/P;else v=g-(P=a*o/this.dataItem.values.value.sum)*_;i.width=P,i.height=u,i.bottomWidth=v,i.topWidth=g,n.topWidth=i.bottomWidth,n.bottomWidth=i.bottomWidth,i.x=this._nextY,this.alignLabels?r.y=this.labelsContainer.measuredHeight:r.y=u/2,r.x=i.pixelX+i.pixelWidth*s.locationX+i.dx,this._nextY+=i.pixelWidth+p*o/t.value,n.x=this._nextY-p,n.y=u/2}this._nextWidth=i.bottomWidth}},Object.defineProperty(e.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(e.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(e.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(e.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(t){this.setPropertyValue("valueIs",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e}(Ll);pe.registeredClasses.PyramidSeries=Bl,pe.registeredClasses.PyramidSeriesDataItem=Rl;var Nl=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return a(e,t),e}(Rl),Hl=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=g(100),e.bottomWidth=g(100),e.valueIs="height",e.applyTheme(),e.startLocation=0,e.endLocation=1,e._maskSprite=e.slicesContainer.createChild(hs),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e._maskSprite.shouldClone=!1,e}return a(e,t),e.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,i=this.slicesContainer.maxHeight,n=this._maskSprite,r=n.measuredWidth/n.scale,s=n.measuredHeight/n.scale,o=z(i/s,e/r);o==1/0&&(o=1),o=X(.001,o);var a=this.startLocation,l=this.endLocation,h=z(e,r*o),u=z(i,s*o);if(n.scale=o,"vertical"==this.orientation?(this.topWidth=h+4,this.bottomWidth=h+4,this.pyramidHeight=u*(l-a),n.x=e/2,n.y=u/2):(this.topWidth=u+4,this.bottomWidth=u+4,this.pyramidHeight=h*(l-a),n.valign="middle",n.x=h/2,n.y=i/2),n.verticalCenter="middle",n.horizontalCenter="middle",t.prototype.validateDataElements.call(this),"vertical"==this.orientation){var p=(i-u)/2;this.slicesContainer.y=p,this.labelsContainer.y=p,this.ticksContainer.y=p,this.slices.template.dy=a*u}else{var c=(e-h)/2;this.slicesContainer.x=c,this.labelsContainer.x=c,this.ticksContainer.x=c,this.slices.template.dx=a*h}this.slicesContainer.mask=this._maskSprite},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),w(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},e.prototype.createDataItem=function(){return new Nl},Object.defineProperty(e.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),e.prototype.initSlice=function(e){t.prototype.initSlice.call(this,e);var i=e.states.getKey("hover");i&&(i.properties.expandDistance=0)},Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),e}(Bl);pe.registeredClasses.PictorialStackedSeries=Hl,pe.registeredClasses.PictorialStackedSeriesDataItem=Nl;var Wl=function(t){function e(){var e=t.call(this)||this;return e.className="ConeColumn",e}return a(e,t),e.prototype.createAssets=function(){this.coneColumn=this.createChild(fo),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},e}(ll);pe.registeredClasses.ConeColumn=Wl;var Xl=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return a(e,t),e}(hl),zl=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return a(e,t),e.prototype.createColumnTemplate=function(){return new Wl},e.prototype.getMaskPath=function(){var t=0,e=0,i=this.columns.getIndex(0);if(i)return this.baseAxis==this.xAxis?e=i.coneColumn.bottom.radiusY+1:t=i.coneColumn.bottom.radiusY+1,Ns({x:-t,y:0,width:this.xAxis.axisLength+t,height:this.yAxis.axisLength+e})},e.prototype.validateDataElementReal=function(e){if(t.prototype.validateDataElementReal.call(this,e),e.column){var i=e.column.coneColumn;i.fill=e.column.fill,this.baseAxis==this.yAxis?i.orientation="horizontal":i.orientation="vertical"}},e}(ul);pe.registeredClasses.ConeSeries=zl,pe.registeredClasses.ConeSeriesDataItem=Xl;var Yl=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumn",e}return a(e,t),e.prototype.createAssets=function(){this.curvedColumn=this.createChild(hs),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=g(120),this.height=g(120),this.column=this.curvedColumn},e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.realWidth,n=this.realHeight,r=this.realX-this.pixelX,s=this.realY-this.pixelY;this.width;var o=1,a=1;"vertical"==this.orientation?(o=this.tension,e=[{x:0,y:n+s},{x:i/2,y:s},{x:i,y:n+s}]):(a=this.tension,e=[{x:r,y:0},{x:r+i,y:n/2},{x:r,y:n}]);var l=Vs(e[0])+new no(o,a).smooth(e);this.column.path=l},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),e}(ll);pe.registeredClasses.CurvedColumn=Yl;var Ul=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return a(e,t),e}(hl),Gl=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return a(e,t),e.prototype.createColumnTemplate=function(){return new Yl},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e);var i=e.column;(i=e.column)&&(e.column.curvedColumn.fill=e.column.fill,this.baseAxis==this.yAxis?i.orientation="horizontal":i.orientation="vertical")},e}(ul);pe.registeredClasses.CurvedColumnSeries=Gl,pe.registeredClasses.CurvedColumnSeriesDataItem=Ul;var Kl=function(t){function e(){var e=t.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return a(e,t),e}(na),ql=function(t){function e(){var e=t.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return a(e,t),e.prototype.formatLabel=function(t,e){return this.durationFormatter.format(t,e||this.axisDurationFormat)},e.prototype.adjustMinMax=function(e,i,n,r,s){var o,a,l,h=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),"millisecond"==h||"second"==h||"minute"==h||"hour"==h){r<=1&&(r=1),r=Math.round(r);var u=e,c=i;0===n&&(n=Math.abs(i));var d,f=[60,30,20,15,10,2,1],g=1;"hour"==h&&(f=[24,12,6,4,2,1]);try{for(var y=p(f),m=y.next();!m.done;m=y.next()){var v=m.value;if(n/v>r){g=v;break}}}catch(t){a={error:t}}finally{try{m&&!m.done&&(l=y.return)&&l.call(y)}finally{if(a)throw a.error}}var b=Math.ceil((i-e)/g/r),x=Math.log(Math.abs(b))*Math.LOG10E,_=Math.pow(10,Math.floor(x))/10;d=g*(b=Y(f,b/_)*_),this.durationFormatter.getValueUnit(d,this.baseUnit),e=Math.floor(e/d)*d,i=Math.ceil(i/d)*d,s&&((e-=d)<0&&u>=0&&(e=0),(i+=d)>0&&c<=0&&(i=0)),o={min:e,max:i,step:d}}else o=t.prototype.adjustMinMax.call(this,e,i,n,r,s);return this.axisDurationFormat=this.durationFormatter.getFormat(o.step,o.max,this.baseUnit),o},Object.defineProperty(e.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(t){this._tooltipDurationFormat=t},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e=E(this.positionToValue(t),this._stepDecimalPlaces);return this.adapter.apply("getTooltipText",this.formatLabel(e,this.tooltipDurationFormat))},Object.defineProperty(e.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}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},e}(ra);pe.registeredClasses.DurationAxis=ql,pe.registeredClasses.DurationAxisDataItem=Kl;var Zl=function(t){function e(){var e=t.call(this)||this;e.className="CircleBullet";var i=e.createChild(ks);return i.shouldClone=!1,i.radius=5,i.isMeasured=!1,e.circle=i,e.applyTheme(),e}return a(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},e}(jo);pe.registeredClasses.CircleBullet=Zl;var $l=function(t){function e(){var e=t.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild(hs),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return a(e,t),e.prototype.validatePosition=function(){t.prototype.validatePosition.call(this);var e=this.pixelWidth/2,i=this.pixelHeight/2;this.errorLine.path=Vs({x:-e,y:-i})+Fs({x:e,y:-i})+Vs({x:0,y:-i})+Fs({x:0,y:i})+Vs({x:-e,y:i})+Fs({x:e,y:i})},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},e}(jo);pe.registeredClasses.ErrorBullet=$l;var Jl=function(t){function e(){var e=t.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return a(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.properties.name},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),e}(_s),Ql=function(t){function e(){var e=t.call(this)||this;e.className="NavigationBar";var i=new Br,n=new $s;n.valign="middle",n.paddingTop=8,n.paddingBottom=8,e.paddingBottom=2,e.links=new ve(n),e._disposers.push(new ge(e.links)),e._disposers.push(n),e._linksIterator=new re(e.links,function(){return e.links.create()}),e._linksIterator.createNewItems=!0;var r=new io;r.direction="right",r.width=8,r.height=12,r.fill=i.getFor("alternativeBackground"),r.fillOpacity=.5,r.valign="middle",r.marginLeft=10,r.marginRight=10,e.separators=new ve(r),e._disposers.push(new ge(e.separators)),e._disposers.push(r);var s=new $s;return e.activeLink=s,s.copyFrom(n),s.valign="middle",s.fontWeight="bold",e.width=g(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return a(e,t),e.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),t.prototype.validateDataElements.call(this)},e.prototype.validateDataElement=function(e){var i;if(t.prototype.validateDataElement.call(this,e),e.index<this.dataItems.length-1){(i=this._linksIterator.getLast()).parent=this;var n=this.separators.create();n.parent=this,n.valign="middle"}else(i=this.activeLink).events.copyFrom(this.links.template.events),i.hide(0),i.show(),i.parent=this;i.dataItem=e,i.text=e.name,i.validate()},e}(Ps);pe.registeredClasses.NavigationBar=Ql,pe.registeredClasses.NavigationBarDataItem=Jl;i(179);var th=document.getElementById("select");document.getElementById("getSelect").addEventListener("click",function(){console.dir(th.options[th.selectedIndex].value)});var eh=function(t,e){var i;T(e)&&(w(pe.registeredClasses[e])?e=pe.registeredClasses[e]:(e=pe.registeredClasses.Container,i=new Error("Class ["+e+"] is not loaded.")));var n=To(t,e);return i&&n.raiseCriticalError(i),n}("chartdiv",ps);eh.width=g(100),eh.height=g(100),eh.layout="horizontal",window.chart=eh.createChild(Wa);var ih=chart.series.push(new Na);ih.dataFields.value="litres",ih.dataFields.category="country",ih.slices.template.states.getKey("active").properties.shiftRadius=0,ih.slices.template.events.on("hit",function(t){hh(t.target.dataItem)});var nh=eh.createChild(Wa);nh.width=g(30),nh.radius=g(80);var rh=nh.series.push(new Na);rh.dataFields.value="value",rh.dataFields.category="name",rh.slices.template.states.getKey("active").properties.shiftRadius=0,rh.labels.template.disabled=!0,rh.ticks.template.disabled=!0,rh.alignLabels=!1,rh.events.on("positionchanged",uh);var sh=new Br,oh=eh.createChild(Is);oh.strokeDasharray="2,2",oh.strokeOpacity=.5,oh.stroke=sh.getFor("alternativeBackground"),oh.isMeasured=!1;var ah,lh=eh.createChild(Is);function hh(t){var e=(ah=t.slice).fill,i=t.dataContext.subData.length;rh.colors.list=[];for(var n=0;n<i;n++)rh.colors.list.push(e.brighten(2*n/i));nh.data=t.dataContext.subData,rh.appear();var r=ah.middleAngle,o=ih.slices.getIndex(0).startAngle;ih.animate([{property:"startAngle",to:o-r},{property:"endAngle",to:o-r+360}],600,s.sinOut).events.on("animationprogress",uh),ah.events.on("transformed",uh)}function uh(){if(ah){var t={x:ah.radius*n.cos(ah.startAngle),y:ah.radius*n.sin(ah.startAngle)},e={x:ah.radius*n.cos(ah.startAngle+ah.arc),y:ah.radius*n.sin(ah.startAngle+ah.arc)};t=r.spritePointToSvg(t,ah),e=r.spritePointToSvg(e,ah);var i={x:0,y:-rh.pixelRadius},s={x:0,y:rh.pixelRadius};i=r.spritePointToSvg(i,rh),s=r.spritePointToSvg(s,rh),oh.x1=t.x,oh.x2=i.x,oh.y1=t.y,oh.y2=i.y,lh.x1=e.x,lh.x2=s.x,lh.y1=e.y,lh.y2=s.y}}lh.strokeDasharray="2,2",lh.strokeOpacity=.5,lh.stroke=sh.getFor("alternativeBackground"),lh.isMeasured=!1,chart.events.on("datavalidated",function(){setTimeout(function(){hh(ih.dataItems.getIndex(0))},1e3)})},3:function(t,e,i){var n,r,s={},o=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=n.apply(this,arguments)),r}),a=function(t){var e={};return function(t,i){if("function"==typeof t)return t();if(void 0===e[t]){var n=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,i);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),l=null,h=0,u=[],p=i(4);function c(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=s[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(v(n.parts[o],e))}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(v(n.parts[o],e));s[n.id]={id:n.id,refs:1,parts:a}}}}function d(t,e){for(var i=[],n={},r=0;r<t.length;r++){var s=t[r],o=e.base?s[0]+e.base:s[0],a={css:s[1],media:s[2],sourceMap:s[3]};n[o]?n[o].parts.push(a):i.push(n[o]={id:o,parts:[a]})}return i}function f(t,e){var i=a(t.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=u[u.length-1];if("top"===t.insertAt)n?n.nextSibling?i.insertBefore(e,n.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),u.push(e);else if("bottom"===t.insertAt)i.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=a(t.insertAt.before,i);i.insertBefore(e,r)}}function g(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function y(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){0;return i.nc}();n&&(t.attrs.nonce=n)}return m(e,t.attrs),f(t,e),e}function m(t,e){Object.keys(e).forEach(function(i){t.setAttribute(i,e[i])})}function v(t,e){var i,n,r,s;if(e.transform&&t.css){if(!(s="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=s}if(e.singleton){var o=h++;i=l||(l=y(e)),n=_.bind(null,i,o,!1),r=_.bind(null,i,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",m(e,t.attrs),f(t,e),e}(e),n=function(t,e,i){var n=i.css,r=i.sourceMap,s=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||s)&&(n=p(n));r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}.bind(null,i,e),r=function(){g(i),i.href&&URL.revokeObjectURL(i.href)}):(i=y(e),n=function(t,e){var i=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,i),r=function(){g(i)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var i=d(t,e);return c(i,e),function(t){for(var n=[],r=0;r<i.length;r++){var o=i[r];(a=s[o.id]).refs--,n.push(a)}t&&c(d(t,e),e);for(r=0;r<n.length;r++){var a;if(0===(a=n[r]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete s[a.id]}}}};var b,x=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function _(t,e,i,n){var r=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=x(e,r);else{var s=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(s,o[e]):t.appendChild(s)}}},4:function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var i=e.protocol+"//"+e.host,n=i+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,s=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s)?t:(r=0===s.indexOf("//")?s:0===s.indexOf("/")?i+s:n+s.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}}});