antv.js
623.5 KB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2=e():t.G2=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=115)}([function(t,e,n){"use strict";n.r(e),n.d(e,"contains",(function(){return r})),n.d(e,"includes",(function(){return r})),n.d(e,"difference",(function(){return o})),n.d(e,"find",(function(){return m})),n.d(e,"findIndex",(function(){return x})),n.d(e,"firstValue",(function(){return b})),n.d(e,"flatten",(function(){return _})),n.d(e,"flattenDeep",(function(){return C})),n.d(e,"getRange",(function(){return w})),n.d(e,"pull",(function(){return P})),n.d(e,"pullAt",(function(){return T})),n.d(e,"reduce",(function(){return E})),n.d(e,"remove",(function(){return L})),n.d(e,"sortBy",(function(){return k})),n.d(e,"union",(function(){return D})),n.d(e,"uniq",(function(){return B})),n.d(e,"valuesOfKey",(function(){return F})),n.d(e,"head",(function(){return R})),n.d(e,"last",(function(){return N})),n.d(e,"startsWith",(function(){return Y})),n.d(e,"endsWith",(function(){return G})),n.d(e,"filter",(function(){return a})),n.d(e,"every",(function(){return V})),n.d(e,"some",(function(){return X})),n.d(e,"group",(function(){return q})),n.d(e,"groupBy",(function(){return H})),n.d(e,"groupToMap",(function(){return W})),n.d(e,"getWrapBehavior",(function(){return U})),n.d(e,"wrapBehavior",(function(){return Z})),n.d(e,"number2color",(function(){return K})),n.d(e,"parseRadius",(function(){return $})),n.d(e,"clamp",(function(){return J})),n.d(e,"fixedBase",(function(){return tt})),n.d(e,"isDecimal",(function(){return nt})),n.d(e,"isEven",(function(){return it})),n.d(e,"isInteger",(function(){return rt})),n.d(e,"isNegative",(function(){return at})),n.d(e,"isNumberEqual",(function(){return ot})),n.d(e,"isOdd",(function(){return st})),n.d(e,"isPositive",(function(){return ut})),n.d(e,"maxBy",(function(){return lt})),n.d(e,"minBy",(function(){return ct})),n.d(e,"mod",(function(){return ht})),n.d(e,"toDegree",(function(){return ft})),n.d(e,"toInteger",(function(){return dt})),n.d(e,"toRadian",(function(){return yt})),n.d(e,"forIn",(function(){return vt})),n.d(e,"has",(function(){return mt})),n.d(e,"hasKey",(function(){return xt})),n.d(e,"hasValue",(function(){return _t})),n.d(e,"keys",(function(){return d})),n.d(e,"isMatch",(function(){return g})),n.d(e,"values",(function(){return bt})),n.d(e,"lowerCase",(function(){return Ct})),n.d(e,"lowerFirst",(function(){return wt})),n.d(e,"substitute",(function(){return Ot})),n.d(e,"upperCase",(function(){return St})),n.d(e,"upperFirst",(function(){return At})),n.d(e,"getType",(function(){return It})),n.d(e,"isArguments",(function(){return Tt})),n.d(e,"isArray",(function(){return h})),n.d(e,"isArrayLike",(function(){return i})),n.d(e,"isBoolean",(function(){return Et})),n.d(e,"isDate",(function(){return Lt})),n.d(e,"isError",(function(){return jt})),n.d(e,"isFunction",(function(){return l})),n.d(e,"isFinite",(function(){return kt})),n.d(e,"isNil",(function(){return c})),n.d(e,"isNull",(function(){return Bt})),n.d(e,"isNumber",(function(){return et})),n.d(e,"isObject",(function(){return p})),n.d(e,"isObjectLike",(function(){return y})),n.d(e,"isPlainObject",(function(){return v})),n.d(e,"isPrototype",(function(){return Ft})),n.d(e,"isRegExp",(function(){return Rt})),n.d(e,"isString",(function(){return j})),n.d(e,"isType",(function(){return u})),n.d(e,"isUndefined",(function(){return Nt})),n.d(e,"isElement",(function(){return Yt})),n.d(e,"requestAnimationFrame",(function(){return Gt})),n.d(e,"clearAnimationFrame",(function(){return Vt})),n.d(e,"augment",(function(){return Ht})),n.d(e,"clone",(function(){return qt})),n.d(e,"debounce",(function(){return Ut})),n.d(e,"memoize",(function(){return Zt})),n.d(e,"deepMix",(function(){return Kt})),n.d(e,"each",(function(){return f})),n.d(e,"extend",(function(){return $t})),n.d(e,"indexOf",(function(){return Jt})),n.d(e,"isEmpty",(function(){return ee})),n.d(e,"isEqual",(function(){return ie})),n.d(e,"isEqualWith",(function(){return re})),n.d(e,"map",(function(){return ae})),n.d(e,"mapValues",(function(){return se})),n.d(e,"mix",(function(){return zt})),n.d(e,"assign",(function(){return zt})),n.d(e,"get",(function(){return ue})),n.d(e,"set",(function(){return le})),n.d(e,"pick",(function(){return he})),n.d(e,"throttle",(function(){return pe})),n.d(e,"toArray",(function(){return fe})),n.d(e,"toString",(function(){return Mt})),n.d(e,"uniqueId",(function(){return ge})),n.d(e,"noop",(function(){return ye})),n.d(e,"identity",(function(){return ve})),n.d(e,"size",(function(){return me})),n.d(e,"Cache",(function(){return xe}));var i=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},r=function(t,e){return!!i(t)&&t.indexOf(e)>-1},a=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var a=t[r];e(a,r)&&n.push(a)}return n},o=function(t,e){return void 0===e&&(e=[]),a(t,(function(t){return!r(e,t)}))},s={}.toString,u=function(t,e){return s.call(t)==="[object "+e+"]"},l=function(t){return u(t,"Function")},c=function(t){return null==t},h=function(t){return Array.isArray?Array.isArray(t):u(t,"Array")},p=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};var f=function(t,e){if(t)if(h(t))for(var n=0,i=t.length;n<i&&!1!==e(t[n],n);n++);else if(p(t))for(var r in t)if(t.hasOwnProperty(r)&&!1===e(t[r],r))break},d=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return f(t,(function(n,i){l(t)&&"prototype"===i||e.push(i)})),e};var g=function(t,e){var n=d(e),i=n.length;if(c(t))return!i;for(var r=0;r<i;r+=1){var a=n[r];if(e[a]!==t[a]||!(a in t))return!1}return!0},y=function(t){return"object"==typeof t&&null!==t},v=function(t){if(!y(t)||!u(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};var m=function(t,e){if(!h(t))return null;var n;if(l(e)&&(n=e),v(e)&&(n=function(t){return g(t,e)}),n)for(var i=0;i<t.length;i+=1)if(n(t[i]))return t[i];return null};var x=function(t,e,n){void 0===n&&(n=0);for(var i=n;i<t.length;i++)if(e(t[i],i))return i;return-1},b=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i][e];if(!c(r)){n=h(r)?r[0]:r;break}}return n},_=function(t){if(!h(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},M=function(t,e){if(void 0===e&&(e=[]),h(t))for(var n=0;n<t.length;n+=1)M(t[n],e);else e.push(t);return e},C=M,w=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(h(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var r=Math.max.apply(null,e);return{min:Math.min.apply(null,e),max:r}},O=Array.prototype,S=O.splice,A=O.indexOf,P=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i++)for(var r=e[i],a=-1;(a=A.call(t,r))>-1;)S.call(t,a,1);return t},I=Array.prototype.splice,T=function(t,e){if(!i(t))return[];for(var n=t?e.length:0,r=n-1;n--;){var a=void 0,o=e[n];n!==r&&o===a||(a=o,I.call(t,o,1))}return t},E=function(t,e,n){if(!h(t)&&!v(t))return t;var i=n;return f(t,(function(t,n){i=e(i,t,n)})),i},L=function(t,e){var n=[];if(!i(t))return n;for(var r=-1,a=[],o=t.length;++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),a.push(r))}return T(t,a),n},j=function(t){return u(t,"String")};var k=function(t,e){var n;if(l(e))n=function(t,n){return e(t)-e(n)};else{var i=[];j(e)?i.push(e):h(e)&&(i=e),n=function(t,e){for(var n=0;n<i.length;n+=1){var r=i[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t},B=function(t){var e=[];return f(t,(function(t){r(e,t)||e.push(t)})),e},D=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return B([].concat.apply([],t))},F=function(t,e){for(var n=[],i={},r=0;r<t.length;r++){var a=t[r][e];if(!c(a)){h(a)||(a=[a]);for(var o=0;o<a.length;o++){var s=a[o];i[s]||(n.push(s),i[s]=!0)}}}return n};function R(t){if(i(t))return t[0]}function N(t){if(i(t)){return t[t.length-1]}}var Y=function(t,e){return!(!h(t)&&!j(t))&&t[0]===e};var G=function(t,e){return!(!h(t)&&!j(t))&&t[t.length-1]===e},V=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},X=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},z=Object.prototype.hasOwnProperty;var H=function(t,e){if(!e||!h(t))return{};for(var n,i={},r=l(e)?e:function(t){return t[e]},a=0;a<t.length;a++){var o=t[a];n=r(o),z.call(i,n)?i[n].push(o):i[n]=[o]}return i},W=function(t,e){if(!e)return{0:t};if(!l(e)){var n=h(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}return H(t,e)},q=function(t,e){if(!e)return[t];var n=W(t,e),i=[];for(var r in n)i.push(n[r]);return i};var U=function(t,e){return t["_wrap_"+e]};var Z=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},Q={};var K=function(t){var e=Q[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,Q[t]=e}return e};var $=function(t){var e=0,n=0,i=0,r=0;return h(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}},J=function(t,e,n){return t<e?e:t>n?n:t},tt=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},et=function(t){return u(t,"Number")},nt=function(t){return et(t)&&t%1!=0},it=function(t){return et(t)&&t%2==0},rt=Number.isInteger?Number.isInteger:function(t){return et(t)&&t%1==0},at=function(t){return et(t)&&t<0};function ot(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var st=function(t){return et(t)&&t%2!=0},ut=function(t){return et(t)&&t>0},lt=function(t,e){if(h(t)){var n,i,r=t[0];return n=l(e)?e(t[0]):t[0][e],f(t,(function(t){(i=l(e)?e(t):t[e])>n&&(r=t,n=i)})),r}},ct=function(t,e){if(h(t)){var n,i,r=t[0];return n=l(e)?e(t[0]):t[0][e],f(t,(function(t){(i=l(e)?e(t):t[e])<n&&(r=t,n=i)})),r}},ht=function(t,e){return(t%e+e)%e},pt=180/Math.PI,ft=function(t){return pt*t},dt=parseInt,gt=Math.PI/180,yt=function(t){return gt*t},vt=f,mt=function(t,e){return t.hasOwnProperty(e)},xt=mt,bt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return f(t,(function(n,i){l(t)&&"prototype"===i||e.push(n)})),e},_t=function(t,e){return r(bt(t),e)},Mt=function(t){return c(t)?"":t.toString()},Ct=function(t){return Mt(t).toLowerCase()},wt=function(t){var e=Mt(t);return e.charAt(0).toLowerCase()+e.substring(1)};var Ot=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t},St=function(t){return Mt(t).toUpperCase()},At=function(t){var e=Mt(t);return e.charAt(0).toUpperCase()+e.substring(1)},Pt={}.toString,It=function(t){return Pt.call(t).replace(/^\[object /,"").replace(/]$/,"")},Tt=function(t){return u(t,"Arguments")},Et=function(t){return u(t,"Boolean")},Lt=function(t){return u(t,"Date")},jt=function(t){return u(t,"Error")},kt=function(t){return et(t)&&isFinite(t)},Bt=function(t){return null===t},Dt=Object.prototype,Ft=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Dt)},Rt=function(t){return u(t,"RegExp")},Nt=function(t){return void 0===t},Yt=function(t){return t instanceof Element||t instanceof HTMLDocument};function Gt(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Vt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Xt(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function zt(t,e,n,i){return e&&Xt(t,e),n&&Xt(t,n),i&&Xt(t,i),t}var Ht=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],i=1;i<t.length;i++){var r=t[i];l(r)&&(r=r.prototype),zt(n.prototype,r)}},Wt=function(t){if("object"!=typeof t||null===t)return t;var e;if(h(t)){e=[];for(var n=0,i=t.length;n<i;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=Wt(t[n]):e[n]=t[n]}else for(var r in e={},t)"object"==typeof t[r]&&null!=t[r]?e[r]=Wt(t[r]):e[r]=t[r];return e},qt=Wt;var Ut=function(t,e,n){var i;return function(){var r=this,a=arguments,o=function(){i=null,n||t.apply(r,a)},s=n&&!i;clearTimeout(i),i=setTimeout(o,e),s&&t.apply(r,a)}},Zt=function(t,e){if(!l(t))throw new TypeError("Expected a function");var n=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var a=e?e.apply(this,i):i[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,i);return o.set(a,s),s};return n.cache=new Map,n};function Qt(t,e,n,i){for(var r in n=n||0,i=i||5,e)if(e.hasOwnProperty(r)){var a=e[r];null!==a&&v(a)?(v(t[r])||(t[r]={}),n<i?Qt(t[r],a,n+1,i):t[r]=e[r]):h(a)?(t[r]=[],t[r]=t[r].concat(a)):void 0!==a&&(t[r]=a)}}var Kt=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)Qt(t,e[i]);return t},$t=function(t,e,n,i){l(e)||(n=e,e=t,t=function(){});var r=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var i=new n;return i.constructor=e,i},a=r(e.prototype,t);return t.prototype=zt(a,t.prototype),t.superclass=r(e.prototype,e),zt(a,n),zt(t,i),t},Jt=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,a=0;a<t.length;a++)if(t[a]===e){r=a;break}return r},te=Object.prototype.hasOwnProperty;var ee=function(t){if(c(t))return!0;if(i(t))return!t.length;var e=It(t);if("Map"===e||"Set"===e)return!t.size;if(Ft(t))return!Object.keys(t).length;for(var n in t)if(te.call(t,n))return!1;return!0},ne=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(j(t)||j(e))return!1;if(i(t)||i(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=ne(t[r],e[r]));r++);return n}if(y(t)||y(e)){var a=Object.keys(t),o=Object.keys(e);if(a.length!==o.length)return!1;for(n=!0,r=0;r<a.length&&(n=ne(t[a[r]],e[a[r]]));r++);return n}return!1},ie=ne,re=function(t,e,n){return l(n)?!!n(t,e):ie(t,e)},ae=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var a=t[r];n.push(e(a,r))}return n},oe=function(t){return t},se=function(t,e){void 0===e&&(e=oe);var n={};return p(t)&&!c(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n},ue=function(t,e,n){for(var i=0,r=j(e)?e.split("."):e;t&&i<r.length;)t=t[r[i++]];return void 0===t||i<r.length?n:t},le=function(t,e,n){var i=t,r=j(e)?e.split("."):e;return r.forEach((function(t,e){e<r.length-1?(p(i[t])||(i[t]=et(r[e+1])?[]:{}),i=i[t]):i[t]=n})),t},ce=Object.prototype.hasOwnProperty,he=function(t,e){if(null===t||!v(t))return{};var n={};return f(e,(function(e){ce.call(t,e)&&(n[e]=t[e])})),n},pe=function(t,e,n){var i,r,a,o,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),i=null,o=t.apply(r,a),i||(r=a=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return r=this,a=arguments,c<=0||c>e?(i&&(clearTimeout(i),i=null),s=l,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(u,c)),o};return l.cancel=function(){clearTimeout(i),s=0,i=r=a=null},l},fe=function(t){return i(t)?Array.prototype.slice.call(t):[]},de={},ge=function(t){return de[t=t||"g"]?de[t]+=1:de[t]=1,t+de[t]},ye=function(){},ve=function(t){return t};function me(t){return c(t)?0:i(t)?t.length:Object.keys(t).length}var xe=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),n.d(e,"__assign",(function(){return a})),n.d(e,"__rest",(function(){return o})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return f})),n.d(e,"__read",(function(){return d})),n.d(e,"__spread",(function(){return g})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return v})),n.d(e,"__asyncGenerator",(function(){return m})),n.d(e,"__asyncDelegator",(function(){return x})),n.d(e,"__asyncValues",(function(){return b})),n.d(e,"__makeTemplateObject",(function(){return _})),n.d(e,"__importStar",(function(){return M})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return w})),n.d(e,"__classPrivateFieldSet",(function(){return O}));
/*! *****************************************************************************
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 i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function o(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function u(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{u(i.next(t))}catch(t){a(t)}}function s(t){try{u(i.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function p(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function m(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){a.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof v?Promise.resolve(n.value.v).then(u,l):c(a[0][2],n)}catch(t){c(a[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}}function x(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:v(t[i](e)),done:"return"===i}:r?r(e):e}:r}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,r,(e=t[n](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function M(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function w(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function O(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"mat3",(function(){return r})),n.d(e,"vec2",(function(){return s})),n.d(e,"vec3",(function(){return u})),n.d(e,"transform",(function(){return l}));var i=n(12);i.translate=function(t,e,n){var r=new Array(9);return i.fromTranslation(r,n),i.multiply(t,r,e)},i.rotate=function(t,e,n){var r=new Array(9);return i.fromRotation(r,n),i.multiply(t,r,e)},i.scale=function(t,e,n){var r=new Array(9);return i.fromScaling(r,n),i.multiply(t,r,e)},i.transform=function(t,e){for(var n=[].concat(t),r=0,a=e.length;r<a;r++){var o=e[r];switch(o[0]){case"t":i.translate(n,n,[o[1],o[2]]);break;case"s":i.scale(n,n,[o[1],o[2]]);break;case"r":i.rotate(n,n,o[1])}}return n};var r=i,a=n(17),o=n(0);a.angle=function(t,e){var n=a.dot(t,e)/(a.length(t)*a.length(e));return Math.acos(Object(o.clamp)(n,-1,1))},a.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},a.angleTo=function(t,e,n){var i=a.angle(t,e),r=a.direction(t,e)>=0;return n?r?2*Math.PI-i:i:r?i:2*Math.PI-i},a.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t};var s=a,u=n(111),l=function(t,e){var n=t?Object(o.clone)(t):[1,0,0,0,1,0,0,0,1];return Object(o.each)(e,(function(t){switch(t[0]){case"t":r.translate(n,n,[t[1],t[2]]);break;case"s":r.scale(n,n,[t[1],t[2]]);break;case"r":r.rotate(n,n,t[1]);break;case"m":r.multiply(n,n,t[1]);break;default:return!1}})),n}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return a}));var i=1e-6,r="undefined"!=typeof Float32Array?Float32Array:Array,a=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";function i(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var r,a,o,s;function u(t){r||(r=document.createElement("table"),a=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:a,th:a,"*":document.createElement("div")});var e=o.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}function l(t,e,n){var i;try{i=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{i=void 0===i?n:i}return i}function c(t,e){var n=l(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function h(t,e){var n=c(t,e),i=parseFloat(l(t,"borderTopWidth"))||0,r=parseFloat(l(t,"paddingTop"))||0,a=parseFloat(l(t,"paddingBottom"))||0;return n+i+(parseFloat(l(t,"borderBottomWidth"))||0)+r+a+(parseFloat(l(t,"marginTop"))||0)+(parseFloat(l(t,"marginBottom"))||0)}function p(t,e){var n=l(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function f(t,e){var n=p(t,e),i=parseFloat(l(t,"borderLeftWidth"))||0,r=parseFloat(l(t,"paddingLeft"))||0,a=parseFloat(l(t,"paddingRight"))||0,o=parseFloat(l(t,"borderRightWidth"))||0,s=parseFloat(l(t,"marginRight"))||0;return n+i+o+r+a+(parseFloat(l(t,"marginLeft"))||0)+s}function d(){return window.devicePixelRatio?window.devicePixelRatio:2}function g(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.r(e),n.d(e,"addEventListener",(function(){return i})),n.d(e,"createDom",(function(){return u})),n.d(e,"getHeight",(function(){return c})),n.d(e,"getOuterHeight",(function(){return h})),n.d(e,"getOuterWidth",(function(){return f})),n.d(e,"getRatio",(function(){return d})),n.d(e,"getStyle",(function(){return l})),n.d(e,"getWidth",(function(){return p})),n.d(e,"modifyCSS",(function(){return g}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(e.LAYER||(e.LAYER={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.NONE="none"}(e.DIRECTION||(e.DIRECTION={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.OTHER="other"}(e.COMPONENT_TYPE||(e.COMPONENT_TYPE={})),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy"}(e.VIEW_LIFE_CIRCLE||(e.VIEW_LIFE_CIRCLE={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(e.PLOT_EVENTS||(e.PLOT_EVENTS={})),e.GROUP_ATTRS=["color","shape","size"],e.FIELD_ORIGIN="_origin",e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(83),a=n(0),o=n(34),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var i=this.defaultShapeType;n=this.getShape(i)}var r=this.theme,o=a.get(r,[t,"default"],{}),s=n.getMarker(e);return a.deepMix({},o,s)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},u={coordinate:null,parsePath:function(t){var e=this.coordinate,n=r.parsePathString(t);return n=e.isPolar?o.convertPolarPath(e,n):o.convertNormalPath(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},l={};e.registerShapeFactory=function(t,e){var n=a.upperFirst(t),r=i.__assign(i.__assign(i.__assign({},s),e),{geometryType:t});return l[n]=r,r},e.registerShape=function(t,e,n){var r=a.upperFirst(t),o=l[r],s=i.__assign(i.__assign({},u),n);return o[e]=s,s},e.getShapeFactory=function(t){var e=a.upperFirst(t);return l[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(34),o=n(35),s=i.__importDefault(n(136));function u(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function l(t){var e=t.geometries,n=[];return r.each(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&r.each(t.views,(function(t){n=n.concat(l(t))})),n}function c(t,e){var n=t.getModel().data;return r.isArray(n)?n[0][e]:n[e]}function h(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function p(t,e){var n=l(t),i=[];return r.each(n,(function(t){var n=t.shape.getCanvasBBox();h(e,n)&&i.push(t)})),i}function f(t){var e=[];return r.each(t,(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var i=t.length;e.push([t[i-2],t[i-1]])}})),e}function d(t,e){var n=l(t),i=f(e);return n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=f(n.attr("path"));else{var r=n.getCanvasBBox();e=o.toPoints(r)}return s.default(i,e)}))}function g(t,e,n){var i=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(i)}e.getCurrentElement=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e},e.getDelegationObject=function(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e},e.isElementChange=function(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))},e.isList=function(t){return t&&t.component&&t.component.isList()},e.isSlider=function(t){return t&&t.component&&t.component.isSlider()},e.isMask=function(t){var e=t.event.target;return e&&"mask"===e.get("name")},e.getMaskedElements=function(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,i=n.getCanvasBBox();return i.width>=e||i.height>=e?n.attr("path"):null}(t,e);if(!n)return;return d(t.view,n)}var i=u(t,e);return i?p(t.view,i):null},e.getSiblingMaskElements=function(t,e,n){var i=u(t,n);if(!i)return null;var r=t.view,a=g(r,e,{x:i.x,y:i.y}),o=g(r,e,{x:i.maxX,y:i.maxY});return p(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})},e.getElements=l,e.getElementsByField=function(t,e,n){return l(t).filter((function(t){return c(t,e)===n}))},e.getElementsByState=function(t,e){var n=t.geometries,i=[];return r.each(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i},e.getElementValue=c,e.intersectRect=h,e.getIntersectElements=p,e.getElementsByPath=d,e.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},e.distance=function(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)},e.getSpline=function(t,e){if(t.length<=2)return a.getLinePath(t,!1);var n=t[0],i=[];r.each(t,(function(t){i.push(t.x),i.push(t.y)}));var o=a.catmullRom2bezier(i,e,null);return o.unshift(["M",n.x,n.y]),o},e.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},e.getSilbings=function(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n},e.getSiblingPoint=g,e.isInRecords=function(t,e,n,i){var a=!1;return r.each(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return a=!0,!1})),a},e.getScaleByField=function t(e,n){var i=e.getScaleByField(n);return!i&&e.views&&r.each(e.views,(function(e){if(i=t(e,n))return!1})),i}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return ln})),n.d(e,"Event",(function(){return N})),n.d(e,"Base",(function(){return it})),n.d(e,"AbstractCanvas",(function(){return on})),n.d(e,"AbstractGroup",(function(){return sn})),n.d(e,"AbstractShape",(function(){return un})),n.d(e,"PathUtil",(function(){return i}));var i={};n.r(i),n.d(i,"catmullRomToBezier",(function(){return c})),n.d(i,"fillPath",(function(){return L})),n.d(i,"fillPathByDiff",(function(){return B})),n.d(i,"formatPath",(function(){return R})),n.d(i,"intersection",(function(){return I})),n.d(i,"parsePathArray",(function(){return m})),n.d(i,"parsePathString",(function(){return l})),n.d(i,"pathToAbsolute",(function(){return p})),n.d(i,"pathToCurve",(function(){return y})),n.d(i,"rectPath",(function(){return w}));var r={};n.r(r),n.d(r,"easeLinear",(function(){return Lt})),n.d(r,"easeQuad",(function(){return Bt})),n.d(r,"easeQuadIn",(function(){return jt})),n.d(r,"easeQuadOut",(function(){return kt})),n.d(r,"easeQuadInOut",(function(){return Bt})),n.d(r,"easeCubic",(function(){return Rt})),n.d(r,"easeCubicIn",(function(){return Dt})),n.d(r,"easeCubicOut",(function(){return Ft})),n.d(r,"easeCubicInOut",(function(){return Rt})),n.d(r,"easePoly",(function(){return Gt})),n.d(r,"easePolyIn",(function(){return Nt})),n.d(r,"easePolyOut",(function(){return Yt})),n.d(r,"easePolyInOut",(function(){return Gt})),n.d(r,"easeSin",(function(){return Wt})),n.d(r,"easeSinIn",(function(){return zt})),n.d(r,"easeSinOut",(function(){return Ht})),n.d(r,"easeSinInOut",(function(){return Wt})),n.d(r,"easeExp",(function(){return Zt})),n.d(r,"easeExpIn",(function(){return qt})),n.d(r,"easeExpOut",(function(){return Ut})),n.d(r,"easeExpInOut",(function(){return Zt})),n.d(r,"easeCircle",(function(){return $t})),n.d(r,"easeCircleIn",(function(){return Qt})),n.d(r,"easeCircleOut",(function(){return Kt})),n.d(r,"easeCircleInOut",(function(){return $t})),n.d(r,"easeBounce",(function(){return ee})),n.d(r,"easeBounceIn",(function(){return te})),n.d(r,"easeBounceOut",(function(){return ee})),n.d(r,"easeBounceInOut",(function(){return ne})),n.d(r,"easeBack",(function(){return ae})),n.d(r,"easeBackIn",(function(){return ie})),n.d(r,"easeBackOut",(function(){return re})),n.d(r,"easeBackInOut",(function(){return ae})),n.d(r,"easeElastic",(function(){return ue})),n.d(r,"easeElasticIn",(function(){return se})),n.d(r,"easeElasticOut",(function(){return ue})),n.d(r,"easeElasticInOut",(function(){return le}));var a=n(0),o="\t\n\v\f\r \u2028\u2029",s=new RegExp("([a-z])["+o+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+o+"]*,?["+o+"]*)+)","ig"),u=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+o+"]*,?["+o+"]*","ig"),l=function(t){if(!t)return null;if(Object(a.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(s,(function(i,r,a){var o=[],s=r.toLowerCase();if(a.replace(u,(function(t,e){e&&o.push(+e)})),"m"===s&&o.length>2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else for(;o.length>=e[s]&&(n.push([r].concat(o.splice(0,e[s]))),e[s]););return t})),n},c=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},h=function(t,e,n,i,r){var a=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var o=Math.PI/180,s=t+n*Math.cos(-i*o),u=t+n*Math.cos(-r*o);a=[["M",s,e+n*Math.sin(-i*o)],["A",n,n,0,+(r-i>180),0,u,e+n*Math.sin(-r*o)]]}else a=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return a},p=function(t){if(!(t=l(t))||!t.length)return[["M",0,0]];var e,n,i=[],r=0,a=0,o=0,s=0,u=0;"M"===t[0][0]&&(o=r=+t[0][1],s=a=+t[0][2],u++,i[0]=["M",r,a]);for(var p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),f=void 0,d=void 0,g=u,y=t.length;g<y;g++){if(i.push(f=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(f[0]=e.toUpperCase(),f[0]){case"A":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+d[6]+r,f[7]=+d[7]+a;break;case"V":f[1]=+d[1]+a;break;case"H":f[1]=+d[1]+r;break;case"R":for(var v=2,m=(n=[r,a].concat(d.slice(1))).length;v<m;v++)n[v]=+n[v]+r,n[++v]=+n[v]+a;i.pop(),i=i.concat(c(n,p));break;case"O":i.pop(),(n=h(r,a,d[1],d[2])).push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(h(r,a,d[1],d[2],d[3])),f=["U"].concat(i[i.length-1].slice(-2));break;case"M":o=+d[1]+r,s=+d[2]+a;break;default:for(v=1,m=d.length;v<m;v++)f[v]=+d[v]+(v%2?r:a)}else if("R"===e)n=[r,a].concat(d.slice(1)),i.pop(),i=i.concat(c(n,p)),f=["R"].concat(d.slice(-2));else if("O"===e)i.pop(),(n=h(r,a,d[1],d[2])).push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(h(r,a,d[1],d[2],d[3])),f=["U"].concat(i[i.length-1].slice(-2));else for(var x=0,b=d.length;x<b;x++)f[x]=d[x];if("O"!==(e=e.toUpperCase()))switch(f[0]){case"Z":r=+o,a=+s;break;case"H":r=f[1];break;case"V":a=f[1];break;case"M":o=f[f.length-2],s=f[f.length-1];break;default:r=f[f.length-2],a=f[f.length-1]}}return i},f=function(t,e,n,i){return[t,e,n,i,n,i]},d=function(t,e,n,i,r,a){return[1/3*t+2/3*n,1/3*e+2/3*i,1/3*r+2/3*n,1/3*a+2/3*i,r,a]},g=function(t,e,n,i,r,a,o,s,u,l){n===i&&(n+=1);var c,h,p,f,d,y=120*Math.PI/180,v=Math.PI/180*(+r||0),m=[],x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)h=l[0],p=l[1],f=l[2],d=l[3];else{t=(c=x(t,e,-v)).x,e=c.y,s=(c=x(s,u,-v)).x,u=c.y,t===s&&e===u&&(s+=1,u+=1);var b=(t-s)/2,_=(e-u)/2,M=b*b/(n*n)+_*_/(i*i);M>1&&(n*=M=Math.sqrt(M),i*=M);var C=n*n,w=i*i,O=(a===o?-1:1)*Math.sqrt(Math.abs((C*w-C*_*_-w*b*b)/(C*_*_+w*b*b)));f=O*n*_/i+(t+s)/2,d=O*-i*b/n+(e+u)/2,h=Math.asin(((e-d)/i).toFixed(9)),p=Math.asin(((u-d)/i).toFixed(9)),h=t<f?Math.PI-h:h,p=s<f?Math.PI-p:p,h<0&&(h=2*Math.PI+h),p<0&&(p=2*Math.PI+p),o&&h>p&&(h-=2*Math.PI),!o&&p>h&&(p-=2*Math.PI)}var S=p-h;if(Math.abs(S)>y){var A=p,P=s,I=u;p=h+y*(o&&p>h?1:-1),s=f+n*Math.cos(p),u=d+i*Math.sin(p),m=g(s,u,n,i,r,0,o,P,I,[p,A,f,d])}S=p-h;var T=Math.cos(h),E=Math.sin(h),L=Math.cos(p),j=Math.sin(p),k=Math.tan(S/4),B=4/3*n*k,D=4/3*i*k,F=[t,e],R=[t+B*E,e-D*T],N=[s+B*j,u-D*L],Y=[s,u];if(R[0]=2*F[0]-R[0],R[1]=2*F[1]-R[1],l)return[R,N,Y].concat(m);for(var G=[],V=0,X=(m=[R,N,Y].concat(m).join().split(",")).length;V<X;V++)G[V]=V%2?x(m[V-1],m[V],v).y:x(m[V],m[V+1],v).x;return G},y=function(t,e){var n,i=p(t),r=e&&p(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",c="",h=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(g.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(d(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(d(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(f(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(f(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(f(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(f(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",r&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},v=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var m=0;m<n;m++){i[m]&&(l=i[m][0]),"C"!==l&&(s[m]=l,m&&(c=s[m-1])),i[m]=h(i[m],a,c),"A"!==s[m]&&"C"===l&&(s[m]="C"),y(i,m),r&&(r[m]&&(l=r[m][0]),"C"!==l&&(u[m]=l,m&&(c=u[m-1])),r[m]=h(r[m],o,c),"A"!==u[m]&&"C"===l&&(u[m]="C"),y(r,m)),v(i,r,a,o,m),v(r,i,o,a,m);var x=i[m],b=r&&r[m],_=x.length,M=r&&b.length;a.x=x[_-2],a.y=x[_-1],a.bx=parseFloat(x[_-4])||a.x,a.by=parseFloat(x[_-3])||a.y,o.bx=r&&(parseFloat(b[M-4])||o.x),o.by=r&&(parseFloat(b[M-3])||o.y),o.x=r&&b[M-2],o.y=r&&b[M-1]}return r?[i,r]:i},v=/,?([a-z]),?/gi,m=function(t){return t.join(",").replace(v,"$1")},x=function(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n},b=function(t,e,n,i,r,a,o,s,u){null===u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,f=0;f<12;f++){var d=l*c[f]+l,g=x(d,t,n,r,o),y=x(d,e,i,a,s),v=g*g+y*y;p+=h[f]*Math.sqrt(v)}return l*p},_=function(t,e,n,i,r,a,o,s){for(var u,l,c,h,p=[],f=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*r,u=-3*t+9*n-9*r+3*o,c=3*n-3*t):(l=6*e-12*i+6*a,u=-3*e+9*i-9*a+3*s,c=3*i-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&p.push(h)}else{var g=l*l-4*c*u,y=Math.sqrt(g);if(!(g<0)){var v=(-l+y)/(2*u);v>0&&v<1&&p.push(v);var m=(-l-y)/(2*u);m>0&&m<1&&p.push(m)}}for(var x,b=p.length,_=b;b--;)x=1-(h=p[b]),f[0][b]=x*x*x*t+3*x*x*h*n+3*x*h*h*r+h*h*h*o,f[1][b]=x*x*x*e+3*x*x*h*i+3*x*h*h*a+h*h*h*s;return f[0][_]=t,f[1][_]=e,f[0][_+1]=o,f[1][_+1]=s,f[0].length=f[1].length=_+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},M=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)<Math.min(r,o)||Math.min(t,n)>Math.max(r,o)||Math.max(e,i)<Math.min(a,s)||Math.min(e,i)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-i)*(r-o);if(u){var l=((t*i-e*n)*(r-o)-(t-n)*(r*s-a*o))/u,c=((t*i-e*n)*(a-s)-(e-i)*(r*s-a*o))/u,h=+l.toFixed(2),p=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,o).toFixed(2)||h>+Math.max(r,o).toFixed(2)||p<+Math.min(e,i).toFixed(2)||p>+Math.max(e,i).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},C=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},w=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var a=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return a.parsePathArray=m,a},O=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:w(t,e,n,i),vb:[t,e,n,i].join(" ")}},S=function(t,e,n,i,r,o,s,u){Object(a.isArray)(t)||(t=[t,e,n,i,r,o,s,u]);var l=_.apply(null,t);return O(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},A=function(t,e,n,i,r,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),p=u*u,f=p*u,d=t+2*u*(n-t)+p*(r-2*n+t),g=e+2*u*(i-e)+p*(a-2*i+e),y=n+2*u*(r-n)+p*(o-2*r+n),v=i+2*u*(a-i)+p*(s-2*a+i);return{x:c*t+3*h*u*n+3*l*u*u*r+f*o,y:c*e+3*h*u*i+3*l*u*u*a+f*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:l*t+u*n,y:l*e+u*i},end:{x:l*r+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},P=function(t,e,n){if(!function(t,e){return t=O(t),e=O(e),C(e,t.x,t.y)||C(e,t.x2,t.y)||C(e,t.x,t.y2)||C(e,t.x2,t.y2)||C(t,e.x,e.y)||C(t,e.x2,e.y)||C(t,e.x,e.y2)||C(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(S(t),S(e)))return n?0:[];for(var i=~~(b.apply(0,t)/8),r=~~(b.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],l=0;l<i+1;l++){var c=A.apply(0,t.concat(l/i));a.push({x:c.x,y:c.y,t:l/i})}for(l=0;l<r+1;l++){c=A.apply(0,e.concat(l/r));o.push({x:c.x,y:c.y,t:l/r})}for(l=0;l<i;l++)for(var h=0;h<r;h++){var p=a[l],f=a[l+1],d=o[h],g=o[h+1],y=Math.abs(f.x-p.x)<.001?"y":"x",v=Math.abs(g.x-d.x)<.001?"y":"x",m=M(p.x,p.y,f.x,f.y,d.x,d.y,g.x,g.y);if(m){if(s[m.x.toFixed(4)]===m.y.toFixed(4))continue;s[m.x.toFixed(4)]=m.y.toFixed(4);var x=p.t+Math.abs((m[y]-p[y])/(f[y]-p[y]))*(f.t-p.t),_=d.t+Math.abs((m[v]-d[v])/(g[v]-d[v]))*(g.t-d.t);x>=0&&x<=1&&_>=0&&_<=1&&(n?u+=1:u.push({x:m.x,y:m.y,t1:x,t2:_}))}}return u},I=function(t,e){return function(t,e,n){var i,r,a,o,s,u,l,c,h,p;t=y(t),e=y(e);for(var f=n?0:[],d=0,g=t.length;d<g;d++){var v=t[d];if("M"===v[0])i=s=v[1],r=u=v[2];else{"C"===v[0]?(h=[i,r].concat(v.slice(1)),i=h[6],r=h[7]):(h=[i,r,i,r,s,u,s,u],i=s,r=u);for(var m=0,x=e.length;m<x;m++){var b=e[m];if("M"===b[0])a=l=b[1],o=c=b[2];else{"C"===b[0]?(p=[a,o].concat(b.slice(1)),a=p[6],o=p[7]):(p=[a,o,a,o,l,c,l,c],a=l,o=c);var _=P(h,p,n);if(n)f+=_;else{for(var M=0,C=_.length;M<C;M++)_[M].segment1=d,_[M].segment2=m,_[M].bez1=h,_[M].bez2=p;f=f.concat(_)}}}}}return f}(t,e)};function T(t,e){var n=[],i=[];return t.length&&function t(e,r){if(1===e.length)n.push(e[0]),i.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&i.push(e[o+1]),a[o]=[(1-r)*e[o][0]+r*e[o+1][0],(1-r)*e[o][1]+r*e[o+1][1]];t(a,r)}}(t,e),{left:n,right:i.reverse()}}var E=function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var r=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var a=i,o=1/n,s=0;s<n-1;s++){var u=T(a,o/(1-o*s));r.push(u.left),a=u.right}return r.push(a),r.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var a=0;a<=n-1;a++)i.push(r)}return i},L=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<i-n;o++)t.push(t[0]);return t}for(o=0;o<i;o++){var s=Math.floor(r*o);a[s]=(a[s]||0)+1}var u=a.reduce((function(e,i,r){return r===n?e.concat(t[n]):e.concat(E(t[r],t[r+1],i))}),[]);return u.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||u.push("Z"),u},j=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(a.each)(t,(function(t,i){if(t!==e[i])return n=!1,!1})),n};function k(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var B=function(t,e){var n=function(t,e){var n,i,r=t.length,a=e.length,o=0;if(0===r||0===a)return null;for(var s=[],u=0;u<=r;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=a;l++)s[0][l]={min:l};for(u=1;u<=r;u++){n=t[u-1];for(l=1;l<=a;l++){i=e[l-1],o=j(n,i)?0:1;var c=s[u-1][l].min+1,h=s[u][l-1].min+1,p=s[u-1][l-1].min+o;s[u][l]=k(c,h,p)}}return s}(t,e),i=t.length,r=e.length,a=[],o=1,s=1;if(n[i][r].min!==i){for(var u=1;u<=i;u++){var l=n[u][u].min;s=u;for(var c=o;c<=r;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(u=a.length-1;u>=0;u--)o=a[u].index,"add"===a[u].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var h=r-(i=t.length);if(i<r)for(u=0;u<h;u++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t};function D(t,e,n){for(var i,r=[].concat(t),a=1/(n+1),o=F(e)[0],s=1;s<=n;s++)a*=s,0===(i=Math.floor(t.length*a))?r.unshift([o[0]*a+t[i][0]*(1-a),o[1]*a+t[i][1]*(1-a)]):r.splice(i,0,[o[0]*a+t[i][0]*(1-a),o[1]*a+t[i][1]*(1-a)]);return r}function F(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var R=function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=F(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=D(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=D(n,t[i-1],2)}t[i]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=D(n,t[i-1],1)}t[i]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[i]=e[i]}return t},N=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}(),Y=n(1),G=n(79),V=(n(25),n(29)),X=n.n(V),z=n(19),H=n.n(z),W=n(40),q=n.n(W),U=(n(13),n(57)),Z=n.n(U),Q=n(20),K=n.n(Q),$=n(58),J=n.n($);function tt(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var et="undefined"!=typeof window&&void 0!==window.document;function nt(t){return t.cfg.visible&&t.cfg.capture}var it=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=Z()(i,e),n}return Object(Y.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(G.default),rt=n(2);function at(t,e){var n=[],i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],p=e[0],f=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],x=e[7],b=e[8];return n[0]=p*i+f*o+d*l,n[1]=p*r+f*s+d*c,n[2]=p*a+f*u+d*h,n[3]=g*i+y*o+v*l,n[4]=g*r+y*s+v*c,n[5]=g*a+y*u+v*h,n[6]=m*i+x*o+b*l,n[7]=m*r+x*s+b*c,n[8]=m*a+x*u+b*h,n}function ot(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}var st=["zIndex","capture","visible","type"],ut=["repeat"];function lt(t,e){var n={},i=e.attrs;for(var r in t)n[r]=i[r];return n}function ct(t,e){var n={},i=e.attr();return Object(a.each)(t,(function(t,e){-1!==ut.indexOf(e)||Object(a.isEqual)(i[e],t)||(n[e]=t)})),n}function ht(t,e){if(e.onFrame)return t;var n=e.startTime,i=e.delay,r=e.duration,o=Object.prototype.hasOwnProperty;return Object(a.each)(t,(function(t){n+i<t.startTime+t.delay+t.duration&&r>t.delay&&Object(a.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var pt=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(a.mix)(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(Y.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e[0],r=e[1];if(!i)return this.attrs;if(Object(a.isObject)(i)){for(var o in i)this.setAttr(o,i[o]);return this.afterAttrsChange(i),this}return 2===e.length?(this.setAttr(i,r),this.afterAttrsChange(((t={})[i]=r,t)),this):this.attrs[i]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(tt(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.get("totalMatrix");if(!t){var e=this.attr("matrix"),n=this.get("parentMatrix");t=n&&e?at(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?at(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?ot(e,t):t},e.prototype.invertFromMatrix=function(t){var e,n,i,r,a,o,s,u,l,c,h,p,f,d,g,y=this.attr("matrix");if(y){var v=(n=[],i=(e=y)[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],(g=i*(p=h*s-u*c)+r*(f=-h*o+u*l)+a*(d=c*o-s*l))?(g=1/g,n[0]=p*g,n[1]=(-h*r+a*c)*g,n[2]=(u*r-a*s)*g,n[3]=f*g,n[4]=(h*i-a*l)*g,n[5]=(-u*i+a*o)*g,n[6]=d*g,n[7]=(-c*i+r*l)*g,n[8]=(s*i-r*o)*g,n):null);if(v)return ot(v,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var i=this.getShapeBase()[Object(a.upperFirst)(t.type)];i&&(n=new i({type:t.type,isClipShape:!0,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(a.each)(e,(function(t,i){Object(a.isArray)(e[i])?n[i]=function(t){for(var e=[],n=0;n<t.length;n++)Object(a.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[i]):n[i]=e[i]}));var i=new(0,this.constructor)({attrs:n});return Object(a.each)(st,(function(e){i.set(e,t.get(e))})),i},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var i=this.get("animations")||[];n.timer||n.initTimer();var r,o,s,u,l,c=t[0],h=t[1],p=t[2],f=void 0===p?"easeLinear":p,d=t[3],g=void 0===d?a.noop:d,y=t[4],v=void 0===y?0:y;Object(a.isFunction)(c)?(r=c,c={}):Object(a.isObject)(c)&&c.onFrame&&(r=c.onFrame,o=c.repeat),Object(a.isObject)(h)?(h=(l=h).duration,f=l.easing||"easeLinear",v=l.delay||0,o=l.repeat||o||!1,g=l.callback||a.noop,s=l.pauseCallback||a.noop,u=l.resumeCallback||a.noop):(Object(a.isNumber)(g)&&(v=g,g=null),Object(a.isFunction)(f)?(g=f,f="easeLinear"):f=f||"easeLinear");var m=ct(c,this),x={fromAttrs:lt(m,this),toAttrs:m,duration:h,easing:f,repeat:o,callback:g,pauseCallback:s,resumeCallback:u,delay:v,startTime:n.getTime(),id:Object(a.uniqueId)(),onFrame:r,pathFormatted:!1};i.length>0?i=ht(i,x):n.addAnimator(this),i.push(x),this.set("animations",i),this.set("_pause",{isPaused:!1})},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(a.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(a.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(a.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,i=this,r=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=r[t],u=o.get("name");if(u){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),i=!1;n;){if(n===t){i=!0;break}n=n.getParent()}return i}(o,n))return"break";Object(a.isArray)(u)?Object(a.each)(u,(function(t){i.emitDelegateEvent(o,t,e)})):s.emitDelegateEvent(o,u,e)}},s=this,u=0;u<r.length;u++){if("break"===o(u))break}},e.prototype.emitDelegateEvent=function(t,e,n){var i=this.getEvents(),r=e+":"+n.type;(i[r]||i["*"])&&(n.name=r,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(r,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),i=Object(rt.transform)(n,[["t",t,e]]);return this.setMatrix(i),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,i=this.attr("y")||0;return this.translate(t-n,e-i),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),i=Object(rt.transform)(n,[["s",t,e||t]]);return this.setMatrix(i),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=Object(rt.transform)(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,i=e.y,r=this.getMatrix(),a=Object(rt.transform)(r,[["t",-n,-i],["r",t],["t",n,i]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var i=this.getMatrix(),r=Object(rt.transform)(i,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this},e}(it),ft={};var dt,gt,yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Y.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=[],a=[],o=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return o.length>0?(K()(o,(function(t){var e=t.getBBox();r.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,a),i=Math.max.apply(null,a)):(t=0,e=0,n=0,i=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=[],a=[],o=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return o.length>0?(K()(o,(function(t){var e=t.getCanvasBBox();r.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,a),i=Math.max.apply(null,a)):(t=0,e=0,n=0,i=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();K()(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],i=t[1];q()(n)?i=n:i.type=n;var r=ft[i.type];r||(r=J()(i.type),ft[i.type]=r);var a=this.getShapeBase(),o=new a[r](i);return this.add(o),o},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,i=t[0],r=t[1];if(X()(i))n=new i(r||{parent:this});else{var a=i||{},o=this.getGroupBase();n=new o(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!nt(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(i=this._findShape(r,a[0],a[1],n))}return i},e.prototype._findShape=function(t,e,n,i){for(var r=null,a=t.length-1;a>=0;a--){var o=t[a];if(nt(o)&&(o.isGroup()?r=o.getShape(e,n,i):o.isHit(e,n)&&(r=o)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),tt(t.getChildren(),e)}(r,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var i=e.get("children");i.length&&i.forEach((function(e){t(e,n)}))}}(t,e),i&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var i=e.get("children");i.length&&i.forEach((function(e){t(e,n)}))}}(t,i),n.push(t),function(t){t.isGroup()?(t.isEntityGroup()||t.get("children").length)&&t.onCanvasChange("add"):t.onCanvasChange("add")}(t),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();K()(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var i=t(e,n);return 0===i?e._INDEX-n._INDEX:i})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return K()(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return K()(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(pt),vt=0,mt=0,xt=0,bt=0,_t=0,Mt=0,Ct="object"==typeof performance&&performance.now?performance:Date,wt="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ot(){return _t||(wt(St),_t=Ct.now()+Mt)}function St(){_t=0}function At(){this._call=this._time=this._next=null}function Pt(t,e,n){var i=new At;return i.restart(t,e,n),i}function It(){_t=(bt=Ct.now())+Mt,vt=mt=0;try{!function(){Ot(),++vt;for(var t,e=dt;e;)(t=_t-e._time)>=0&&e._call.call(null,t),e=e._next;--vt}()}finally{vt=0,function(){var t,e,n=dt,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:dt=e);gt=t,Et(i)}(),_t=0}}function Tt(){var t=Ct.now(),e=t-bt;e>1e3&&(Mt-=e,bt=t)}function Et(t){vt||(mt&&(mt=clearTimeout(mt)),t-_t>24?(t<1/0&&(mt=setTimeout(It,t-Ct.now()-Mt)),xt&&(xt=clearInterval(xt))):(xt||(bt=Ct.now(),xt=setInterval(Tt,1e3)),vt=1,wt(It)))}function Lt(t){return+t}function jt(t){return t*t}function kt(t){return t*(2-t)}function Bt(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Dt(t){return t*t*t}function Ft(t){return--t*t*t+1}function Rt(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}At.prototype=Pt.prototype={constructor:At,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Ot():+n)+(null==e?0:+e),this._next||gt===this||(gt?gt._next=this:dt=this,gt=this),this._call=t,this._time=n,Et()},stop:function(){this._call&&(this._call=null,this._time=1/0,Et())}};var Nt=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Yt=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Gt=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Vt=Math.PI,Xt=Vt/2;function zt(t){return 1-Math.cos(t*Xt)}function Ht(t){return Math.sin(t*Xt)}function Wt(t){return(1-Math.cos(Vt*t))/2}function qt(t){return Math.pow(2,10*t-10)}function Ut(t){return 1-Math.pow(2,-10*t)}function Zt(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function Qt(t){return 1-Math.sqrt(1-t*t)}function Kt(t){return Math.sqrt(1- --t*t)}function $t(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Jt=7.5625;function te(t){return 1-ee(1-t)}function ee(t){return(t=+t)<4/11?Jt*t*t:t<8/11?Jt*(t-=6/11)*t+3/4:t<10/11?Jt*(t-=9/11)*t+15/16:Jt*(t-=21/22)*t+63/64}function ne(t){return((t*=2)<=1?1-ee(1-t):ee(t-1)+1)/2}var ie=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),re=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),ae=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),oe=2*Math.PI,se=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=oe);function r(t){return e*Math.pow(2,10*--t)*Math.sin((i-t)/n)}return r.amplitude=function(e){return t(e,n*oe)},r.period=function(n){return t(e,n)},r}(1,.3),ue=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=oe);function r(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/n)}return r.amplitude=function(e){return t(e,n*oe)},r.period=function(n){return t(e,n)},r}(1,.3),le=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=oe);function r(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((i-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((i+t)/n))/2}return r.amplitude=function(e){return t(e,n*oe)},r.period=function(n){return t(e,n)},r}(1,.3),ce=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function he(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function pe(){}var fe="\\s*([+-]?\\d+)\\s*",de="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ge="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,ve=new RegExp("^rgb\\("+[fe,fe,fe]+"\\)$"),me=new RegExp("^rgb\\("+[ge,ge,ge]+"\\)$"),xe=new RegExp("^rgba\\("+[fe,fe,fe,de]+"\\)$"),be=new RegExp("^rgba\\("+[ge,ge,ge,de]+"\\)$"),_e=new RegExp("^hsl\\("+[de,ge,ge]+"\\)$"),Me=new RegExp("^hsla\\("+[de,ge,ge,de]+"\\)$"),Ce={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function we(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Se(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ye.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ae(e):3===n?new Ee(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new Ee(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new Ee(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ve.exec(t))?new Ee(e[1],e[2],e[3],1):(e=me.exec(t))?new Ee(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=xe.exec(t))?Pe(e[1],e[2],e[3],e[4]):(e=be.exec(t))?Pe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=_e.exec(t))?Be(e[1],e[2]/100,e[3]/100,1):(e=Me.exec(t))?Be(e[1],e[2]/100,e[3]/100,e[4]):Ce.hasOwnProperty(t)?Ae(Ce[t]):"transparent"===t?new Ee(NaN,NaN,NaN,0):null}function Ae(t){return new Ee(t>>16&255,t>>8&255,255&t,1)}function Pe(t,e,n,i){return i<=0&&(t=e=n=NaN),new Ee(t,e,n,i)}function Ie(t){return t instanceof pe||(t=Se(t)),t?new Ee((t=t.rgb()).r,t.g,t.b,t.opacity):new Ee}function Te(t,e,n,i){return 1===arguments.length?Ie(t):new Ee(t,e,n,null==i?1:i)}function Ee(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Le(){return"#"+ke(this.r)+ke(this.g)+ke(this.b)}function je(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ke(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Be(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Fe(t,e,n,i)}function De(t){if(t instanceof Fe)return new Fe(t.h,t.s,t.l,t.opacity);if(t instanceof pe||(t=Se(t)),!t)return new Fe;if(t instanceof Fe)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,u=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n<i):n===a?(i-e)/s+2:(e-n)/s+4,s/=u<.5?a+r:2-a-r,o*=60):s=u>0&&u<1?0:o,new Fe(o,s,u,t.opacity)}function Fe(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Re(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ne(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}ce(pe,Se,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:we,formatHex:we,formatHsl:function(){return De(this).formatHsl()},formatRgb:Oe,toString:Oe}),ce(Ee,Te,he(pe,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ee(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ee(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Le,formatHex:Le,formatRgb:je,toString:je})),ce(Fe,(function(t,e,n,i){return 1===arguments.length?De(t):new Fe(t,e,n,null==i?1:i)}),he(pe,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Fe(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Fe(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Ee(Re(t>=240?t-240:t+120,r,i),Re(t,r,i),Re(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ye=function(t){return function(){return t}};function Ge(t,e){return function(n){return t+n*e}}function Ve(t){return 1==(t=+t)?Xe:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Ye(isNaN(e)?n:e)}}function Xe(t,e){var n=e-t;return n?Ge(t,n):Ye(isNaN(t)?e:t)}var ze=function t(e){var n=Ve(e);function i(t,e){var i=n((t=Te(t)).r,(e=Te(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=Xe(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function He(t){return function(e){var n,i,r=e.length,a=new Array(r),o=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=Te(e[n]),a[n]=i.r||0,o[n]=i.g||0,s[n]=i.b||0;return a=t(a),o=t(o),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=o(t),i.b=s(t),i+""}}}He((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],a=t[i+1],o=i>0?t[i-1]:2*r-a,s=i<e-1?t[i+2]:2*a-r;return Ne((n-i/e)*e,o,r,a,s)}})),He((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],a=t[i%e],o=t[(i+1)%e],s=t[(i+2)%e];return Ne((n-i/e)*e,r,a,o,s)}}));var We=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(n=0;n<i;++n)r[n]=t[n]*(1-a)+e[n]*a;return r}};function qe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ue(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,a=new Array(r),o=new Array(i);for(n=0;n<r;++n)a[n]=en(t[n],e[n]);for(;n<i;++n)o[n]=e[n];return function(t){for(n=0;n<r;++n)o[n]=a[n](t);return o}}var Ze=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},Qe=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Ke=function(t,e){var n,i={},r={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=en(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}},$e=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Je=new RegExp($e.source,"g");var tn=function(t,e){var n,i,r,a=$e.lastIndex=Je.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=$e.exec(t))&&(i=Je.exec(e));)(r=i.index)>a&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Qe(n,i)})),a=Je.lastIndex;return a<e.length&&(r=e.slice(a),s[o]?s[o]+=r:s[++o]=r),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,i=0;i<e;++i)s[(n=u[i]).i]=n.x(t);return s.join("")})},en=function(t,e){var n,i=typeof e;return null==e||"boolean"===i?Ye(e):("number"===i?Qe:"string"===i?(n=Se(e))?(e=n,ze):tn:e instanceof Se?ze:e instanceof Date?Ze:qe(e)?We:Array.isArray(e)?Ue:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ke:Qe)(t,e)},nn=[1,0,0,0,1,0,0,0,1];function rn(t,e,n){var i,o=e.startTime;if(n<o+e.delay||e._paused)return!1;var s=e.duration,u=e.easing;if(n=n-o-e.delay,e.repeat)i=n%s/s,i=r[u](i);else{if(!((i=n/s)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;i=r[u](i)}if(e.onFrame){var c=e.onFrame(i);t.attr(c)}else!function(t,e,n){var i={},r=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var s,u,c,h;for(var p in o)if(!Object(a.isEqual)(r[p],o[p]))if("path"===p){var f=o[p],d=r[p];f.length>d.length?(f=l(o[p]),d=l(r[p]),d=B(d,f),d=R(d,f),e.fromAttrs.path=d,e.toAttrs.path=f):e.pathFormatted||(f=l(o[p]),d=l(r[p]),d=R(d,f),e.fromAttrs.path=d,e.toAttrs.path=f,e.pathFormatted=!0),i[p]=[];for(var g=0;g<f.length;g++){for(var y=f[g],v=d[g],m=[],x=0;x<y.length;x++)Object(a.isNumber)(y[x])&&v&&Object(a.isNumber)(v[x])?(s=en(v[x],y[x]),m.push(s(n))):m.push(y[x]);i[p].push(m)}}else if("matrix"===p){var b=(c=r[p]||nn,(qe(h=o[p]||nn)?We:Ue)(c,h))(n);i[p]=b}else["fill","stroke","fillStyle","strokeStyle"].includes(p)&&(u=o[p],/^[r,R,L,l]{1}[\s]*\(/.test(u))?i[p]=o[p]:Object(a.isFunction)(o[p])||(s=en(r[p],o[p]),i[p]=s(n));t.attr(i)}}(t,e,i);return!1}var an=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,i=this;this.timer=Pt((function(r){if(i.current=r,i.animators.length>0){for(var a=i.animators.length-1;a>=0;a--)if((t=i.animators[a]).destroyed)i.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],rn(t,n,r)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&i.removeAnimator(a)}i.canvas.get("autoDraw")||i.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),on=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(Y.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e},e.prototype.initContainer=function(){var t=this.get("container");H()(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){},e.prototype.initTimeline=function(){var t=new an(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");et&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");et&&e&&(e.style.cursor=t)},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(yt),sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Y.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;i<n.length;i++){var r=n[i];e.add(r.clone())}return e},e}(yt),un=function(t){function e(e){return t.call(this,e)||this}return Object(Y.__extends)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.get("bbox");return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.get("canvasBox");return t||(t=this.calculateCanvasBBox(),this.set("canvasBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,i=t.minY,r=t.maxX,a=t.maxY;if(e){var o=ot(e,[t.minX,t.minY]),s=ot(e,[t.maxX,t.minY]),u=ot(e,[t.minX,t.maxY]),l=ot(e,[t.maxX,t.maxY]);n=Math.min(o[0],s[0],u[0],l[0]),r=Math.max(o[0],s[0],u[0],l[0]),i=Math.min(o[1],s[1],u[1],l[1]),a=Math.max(o[1],s[1],u[1],l[1])}var c=this.attrs;if(c.shadowColor){var h=c.shadowBlur,p=void 0===h?0:h,f=c.shadowOffsetX,d=void 0===f?0:f,g=c.shadowOffsetY,y=void 0===g?0:g,v=n-p+d,m=r+p+d,x=i-p+y,b=a+p+y;n=Math.min(n,v),r=Math.max(r,m),i=Math.min(i,x),a=Math.max(a,b)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:a,width:r-n,height:a-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),i=this.get("endArrowShape"),r=[t,e,1],a=(r=this.invertFromMatrix(r))[0],o=r[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(i&&i.isHit(a,o))return!0}return!1},e}(pt),ln=n(120).version},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0);e.getStyle=function(t,e,n,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,u=t.defaultStyle,l=t.color,c=t.size,h=i.__assign(i.__assign({},u),s);return l&&(e&&(s.stroke||(h.stroke=l)),n&&(s.fill||(h.fill=l))),a&&r.isNil(s[a])&&!r.isNil(c)&&(h[a]=c),h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),r=n(158);e.default={box:function(t,e,n,r){return i.getBBoxByArray([t,n],[e,r])},length:function(t,e,n,r){return i.distance(t,e,n,r)},pointAt:function(t,e,n,i,r){return{x:(1-r)*t+r*n,y:(1-r)*e+r*i}},pointDistance:function(t,e,n,r,a,o){var s=(n-t)*(a-t)+(r-e)*(o-e);return s<0?i.distance(t,e,a,o):s>(n-t)*(n-t)+(r-e)*(r-e)?i.distance(n,r,a,o):this.pointToLine(t,e,n,r,a,o)},pointToLine:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return Math.sqrt((a-t)*(a-t)+(o-e)*(o-e));var u=[-s[1],s[0]];r.normalize(u,u);var l=[a-t,o-e];return Math.abs(r.dot(l,u))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){i.assign(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new i.ARRAY_TYPE(9);i.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0);return t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new i.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,r,a,o,s,u,l){var c=new i.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=r,c[4]=a,c[5]=o,c[6]=s,c[7]=u,c[8]=l,c},e.set=function(t,e,n,i,r,a,o,s,u,l){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=c*o-s*l,p=-c*a+s*u,f=l*a-o*u,d=n*h+i*p+r*f;if(!d)return null;return d=1/d,t[0]=h*d,t[1]=(-c*i+r*l)*d,t[2]=(s*i-r*o)*d,t[3]=p*d,t[4]=(c*n-r*u)*d,t[5]=(-s*n+r*a)*d,t[6]=f*d,t[7]=(-l*n+i*u)*d,t[8]=(o*n-i*a)*d,t},e.adjoint=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8];return t[0]=o*c-s*l,t[1]=r*l-i*c,t[2]=i*s-r*o,t[3]=s*u-a*c,t[4]=n*c-r*u,t[5]=r*a-n*s,t[6]=a*l-o*u,t[7]=i*u-n*l,t[8]=n*o-i*a,t},e.determinant=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8];return e*(l*a-o*u)+n*(-l*r+o*s)+i*(u*r-a*s)},e.multiply=r,e.translate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],p=n[0],f=n[1];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=p*i+f*o+l,t[7]=p*r+f*s+c,t[8]=p*a+f*u+h,t},e.rotate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],p=Math.sin(n),f=Math.cos(n);return t[0]=f*i+p*o,t[1]=f*r+p*s,t[2]=f*a+p*u,t[3]=f*o-p*i,t[4]=f*s-p*r,t[5]=f*u-p*a,t[6]=l,t[7]=c,t[8]=h,t},e.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n+n,s=i+i,u=r+r,l=n*o,c=i*o,h=i*s,p=r*o,f=r*s,d=r*u,g=a*o,y=a*s,v=a*u;return t[0]=1-h-d,t[3]=c-v,t[6]=p+y,t[1]=c+v,t[4]=1-l-d,t[7]=f-g,t[2]=p-y,t[5]=f+g,t[8]=1-l-h,t},e.normalFromMat4=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],p=e[10],f=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-i*o,x=n*u-r*o,b=n*l-a*o,_=i*u-r*s,M=i*l-a*s,C=r*l-a*u,w=c*g-h*d,O=c*y-p*d,S=c*v-f*d,A=h*y-p*g,P=h*v-f*g,I=p*v-f*y,T=m*I-x*P+b*A+_*S-M*O+C*w;if(!T)return null;return T=1/T,t[0]=(s*I-u*P+l*A)*T,t[1]=(u*S-o*I-l*O)*T,t[2]=(o*P-s*S+l*w)*T,t[3]=(r*P-i*I-a*A)*T,t[4]=(n*I-r*S+a*O)*T,t[5]=(i*S-n*P-a*w)*T,t[6]=(g*C-y*M+v*_)*T,t[7]=(y*b-d*C-v*x)*T,t[8]=(d*M-g*b+v*m)*T,t},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],p=e[0],f=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],x=e[7],b=e[8];return Math.abs(n-p)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(r-f)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(a-d)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-g)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-y)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-v)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(l-m)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-x)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(h-b)<=i.EPSILON*Math.max(1,Math.abs(h),Math.abs(b))};var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(59));function r(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],p=n[0],f=n[1],d=n[2],g=n[3],y=n[4],v=n[5],m=n[6],x=n[7],b=n[8];return t[0]=p*i+f*o+d*l,t[1]=p*r+f*s+d*c,t[2]=p*a+f*u+d*h,t[3]=g*i+y*o+v*l,t[4]=g*r+y*s+v*c,t[5]=g*a+y*u+v*h,t[6]=m*i+x*o+b*l,t[7]=m*r+x*s+b*c,t[8]=m*a+x*u+b*h,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}e.mul=r,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(56);e.default=function(t){return Array.isArray?Array.isArray(t):i.default(t,"Array")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);function r(t,e,n,i){return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}e.polarToCartesian=r,e.getSectorPath=function(t,e,n,i,a,o){void 0===o&&(o=0);var s=r(t,e,n,i),u=r(t,e,n,a),l=r(t,e,o,i),c=r(t,e,o,a);if(a-i==2*Math.PI){var h=r(t,e,n,i+Math.PI),p=r(t,e,o,i+Math.PI),f=[["M",s.x,s.y],["A",n,n,0,1,1,h.x,h.y],["A",n,n,0,1,1,u.x,u.y],["M",l.x,l.y]];return o&&(f.push(["A",o,o,0,1,0,p.x,p.y]),f.push(["A",o,o,0,1,0,c.x,c.y])),f.push(["M",s.x,s.y]),f.push(["Z"]),f}var d=a-i<=Math.PI?0:1,g=[["M",s.x,s.y],["A",n,n,0,d,1,u.x,u.y],["L",c.x,c.y]];return o&&g.push(["A",o,o,0,d,0,l.x,l.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g},e.getArcPath=function(t,e,n,a,o){var s=r(t,e,n,a),u=r(t,e,n,o);if(i.isNumberEqual(o-a,2*Math.PI)){var l=r(t,e,n,a+Math.PI);return[["M",s.x,s.y],["A",n,n,0,1,1,l.x,l.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,0,l.x,l.y],["A",n,n,0,1,0,s.x,s.y],["Z"]]}var c=o-a<=Math.PI?0:1;return[["M",s.x,s.y],["A",n,n,0,c,1,u.x,u.y]]},e.getAngle=function(t,e){var n,r,a=function(t){if(i.isEmpty(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,a=t[0].y;return i.each(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,a=a<t.y?t.y:a})),{minX:e,maxX:n,minY:r,maxY:a,centerX:(e+n)/2,centerY:(r+a)/2}}(t.points),o=e.startAngle,s=e.endAngle-o;return e.isTransposed?(n=a.maxY*s,r=a.minY*s):(n=a.maxX*s,r=a.minX*s),{startAngle:r+=o,endAngle:n+=o}},e.getPolygonCentroid=function(t,e){if(i.isNumber(t)&&i.isNumber(e))return[t,e];for(var n,r,a=-1,o=0,s=0,u=t.length-1,l=0;++a<t.length;)n=u,u=a,l+=r=t[n]*e[u]-t[u]*e[n],o+=(t[n]+t[u])*r,s+=(e[n]+e[u])*r;return[o/(l*=3),s/l]},e.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return i.each(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION="4.0.7";var i=n(52);e.Chart=i.Chart,e.View=i.View,e.Event=i.Event;var r=n(30);e.ComponentController=r.Controller;var a=n(22);e.Geometry=a.default;var o=n(41);e.GeometryLabel=o.default;var s=n(60);e.Interaction=s.Interaction;var u=n(54);e.Facet=u.Facet;var l=n(11);e.InteractionAction=l.default;var c=n(52);e.registerComponentController=c.registerComponentController;var h=n(52);e.registerGeometry=h.registerGeometry;var p=n(6);e.registerShape=p.registerShape,e.registerShapeFactory=p.registerShapeFactory,e.getShapeFactory=p.getShapeFactory;var f=n(63);e.registerGeometryLabel=f.registerGeometryLabel,e.registerGeometryLabelLayout=f.registerGeometryLabelLayout,e.getGeometryLabel=f.getGeometryLabel,e.getGeometryLabelLayout=f.getGeometryLabelLayout;var d=n(60);e.getInteraction=d.getInteraction,e.registerInteraction=d.registerInteraction,e.registerAction=d.registerAction,e.getActionClass=d.getActionClass;var g=n(54);e.getFacet=g.getFacet,e.registerFacet=g.registerFacet;var y=n(89);e.getTheme=y.getTheme,e.registerTheme=y.registerTheme;var v=n(85);e.registerEngine=v.registerEngine,e.getEngine=v.getEngine;var m=n(94);e.registerAnimation=m.registerAnimation,e.getAnimation=m.getAnimation;var x=n(5);e.LAYER=x.LAYER,e.DIRECTION=x.DIRECTION},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),r=n(21);e.getXDimensionLength=function(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))},e.isFullCircle=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1},e.getDistanceToCenter=function(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))},e.isPointInCoordinate=function(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,a=t.end;n=r.isBetween(e.x,i.x,a.x)&&r.isBetween(e.y,i.y,a.y)}else{var o=t.invert(e);n=r.isBetween(o.x,0,1)&&r.isBetween(o.y,0,1)}return n},e.getAngleByPoint=function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},e.getCoordinateClipCfg=function(t,e){void 0===e&&(e=0);var n,r=t.start,a=t.end,o=t.getWidth(),s=t.getHeight();if(t.isPolar){var u=t.startAngle,l=t.endAngle,c=t.getCenter(),h=t.getRadius();return{type:"path",startState:{path:i.getSectorPath(c.x,c.y,h+e,u,u)},endState:function(t){var n=(l-u)*t+u;return{path:i.getSectorPath(c.x,c.y,h+e,u,n)}},attrs:{path:i.getSectorPath(c.x,c.y,h+e,u,l)}}}return n=t.isTransposed?{height:s+2*e}:{width:o+2*e},{type:"rect",startState:{x:r.x-e,y:a.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:s+2*e},endState:n,attrs:{x:r.x-e,y:a.y-e,width:o+2*e,height:s+2*e}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=r,e.clone=function(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=a,e.multiply=o,e.divide=s,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.distance=u,e.squaredDistance=l,e.length=c,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],i=e[1],r=n*n+i*i;r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r);return t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},e.lerp=function(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},e.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},e.rotate=function(t,e,n,i){var r=e[0]-n[0],a=e[1]-n[1],o=Math.sin(i),s=Math.cos(i);return t[0]=r*s-a*o+n[0],t[1]=r*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],i=t[1],r=e[0],a=e[1],o=n*n+i*i;o>0&&(o=1/Math.sqrt(o));var s=r*r+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*r+i*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))};var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(59));function r(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function o(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function s(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function u(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)}function l(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function c(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function h(t){var e=t[0],n=t[1];return e*e+n*n}var p;e.len=c,e.sub=a,e.mul=o,e.div=s,e.dist=u,e.sqrDist=l,e.sqrLen=h,e.forEach=(p=r(),function(t,e,n,i,r,a){var o=void 0,s=void 0;for(e||(e=2),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,o=n;o<s;o+=e)p[0]=t[o],p[1]=t[o+1],r(p,p,a),t[o]=p[0],t[o+1]=p[1];return t})},function(t,e,n){"use strict";function i(t){return Math.min.apply(null,t)}function r(t){return Math.max.apply(null,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.distance=function(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.getBBoxByArray=function(t,e){var n=i(t),a=i(e);return{x:n,y:a,width:r(t)-n,height:r(e)-a}},e.getBBoxRange=function(t,e,n,a){return{minX:i([t,n]),maxX:r([t,n]),minY:i([e,a]),maxY:r([e,a])}},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(56);e.default=function(t){return i.default(t,"String")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),r=n(40);e.default=function(t,e){if(t)if(i.default(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(r.default(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.isBetween=function(t,e,n){var i=Math.min(e,n),r=Math.max(e,n);return t>=i&&t<=r},e.padEnd=function(t,e,n){if(i.isString(t))return t.padEnd(e,n);if(i.isArray(t)){var r=t.length;if(r<e)for(var a=e-r,o=0;o<a;o++)t.push(n)}return t},e.omit=function(t,e){return e.forEach((function(e){delete t[e]})),t},e.uniq=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={});for(var i=0,r=t;i<r.length;i++){var a=r[i];n[a]||(e.push(a),n[a]=!0)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(265),a=n(110),o=n(0),s=n(26),u=i.__importDefault(n(53)),l=n(5),c=n(21),h=i.__importDefault(n(95)),p=n(63),f=n(6),d=n(147),g=n(96),y=n(148);var v=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1;var i=e.container,r=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,u=void 0!==s&&s,l=e.visible,c=void 0===l||l,h=e.theme,p=e.scales,f=void 0===p?{}:p,d=e.scaleDefs,g=void 0===d?{}:d;return n.container=i,n.labelsContainer=r,n.coordinate=a,n.data=o,n.sortable=u,n.visible=c,n.userTheme=h,n.scales=f,n.scaleDefs=g,n}return i.__extends(e,t),e.prototype.position=function(t){var e=t;o.isPlainObject(t)||(e={fields:y.parseFields(t)});var n=o.get(e,"fields");return 1===n.length&&(n.unshift("1"),o.set(e,"fields",n)),o.set(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(o.isString(t)||o.isPlainObject(t))&&(e=[t]),o.each(e,(function(t,n){o.isObject(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(o.isString(t)){var n=y.parseFields(t);this.styleOption={fields:n,callback:e}}else{var i=t,r=(n=i.fields,i.callback),a=i.cfg;this.styleOption=n||r||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(o.isString(t)){var n=y.parseFields(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(o.isString(t)){var i={},r=y.parseFields(t);i.fields=r,o.isFunction(e)?i.callback=e:o.isPlainObject(e)&&(i.cfg=e),n&&(i.cfg=n),this.labelOption=i}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,i=this.attributeOption,r=this.lastAttributeOption;o.isEqual(i,r)?!e||!n&&o.isEqual(e,this.data)?this.setCfg(t):(this.setCfg(t),this.processData(e)):this.init(t),this.adjustScale()},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=o.deepMix({},s.getDefaultAnimateCfg(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elements=[],this.elementsMap={},this.getOffscreenGroup().clear();for(var n=this.beforeMappingData,r=this.beforeMapping(n),a=[],u=0,l=r.length;u<l;u++){var c=r[u],h=this.mapping(c);a.push(h),this.createElements(h,u,t)}if(this.canDoGroupAnimation(t)){var p=this.container,f=this.type,d=this.coordinate,g=o.get(this.animateOption,"appear"),y=this.getYScale(),v=d.convert({x:0,y:y.scale(this.getYMinValue())});s.doGroupAppearAnimate(p,g,f,d,v)}this.labelOption&&this.renderLabels(o.flatten(a),t),this.dataArray=a,o.each(this.lastElementsMap,(function(t){t.animate=e.animateOption,t.destroy()})),this.lastElementsMap=this.elementsMap,this.lastAttributeOption=i.__assign({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return o.each(this.attributes,(function(e){l.GROUP_ATTRS.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&o.isEmpty(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],i=t.scales,r=0,a=i.length;r<a;r++){var o=i[r],s=o.field;o.isIdentity?n.push(o.values):n.push(e[s])}return t.mapping.apply(t,n)},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElementId=function(t){var e=(t=o.isArray(t)?t[0]:t)[l.FIELD_ORIGIN];if(this.idFields.length){for(var n=e[this.idFields[0]],i=1;i<this.idFields.length;i++)n+="-"+e[this.idFields[i]];return n}var r,a,s=this.type,u=this.getXScale(),c=this.getYScale(),h=u.field||"x",p=e[c.field||"y"];r="identity"===u.type?u.values[0]:e[h],a="interval"===s||"schema"===s?r:"line"===s||"area"===s||"path"===s?s:r+"-"+p;for(var f=this.groupScales,d=(i=0,f.length);i<d;i++){a=a+"-"+e[f[i].field]}var g=this.getAdjust("dodge");if(g){var y=g.dodgeBy;y&&(a=a+"-"+e[y])}return this.getAdjust("jitter")&&(a=a+"-"+t.x+"-"+t.y),a},e.prototype.getScaleFields=function(){var t=[],e={},n=this.attributeOption,i=this.labelOption,r=this.tooltipOption;for(var a in n)if(n.hasOwnProperty(a)){var s=n[a];s.fields?c.uniq(s.fields,t,e):s.values&&c.uniq(s.values,t,e)}return i&&i.fields&&c.uniq(i.fields,t,e),o.isObject(r)&&r.fields&&c.uniq(r.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,i=0,r=n.length;i<r;i++){n[i].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getGroupFields=function(){for(var t=[],e={},n=0,i=l.GROUP_ATTRS.length;n<i;n++){var r=l.GROUP_ATTRS[n],a=this.attributeOption[r];a&&a.fields&&c.uniq(a.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=this.attributeOption.position.fields;return[t[0],t[1]]},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,i=0;i<t.length;i++){t[i].sort((function(t,i){return e.translate(t[l.FIELD_ORIGIN][n])-e.translate(i[l.FIELD_ORIGIN][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(f.getShapeFactory(t))return this.shapeFactory||(this.shapeFactory=o.clone(f.getShapeFactory(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e){void 0===e&&(e=!1);var n=this.container,i=this.getDrawCfg(t),r=this.getShapeFactory(),a=new h.default({shapeFactory:r,container:n,offscreenGroup:this.getOffscreenGroup()});return a.animate=this.animateOption,a.geometry=this,a.draw(i,e),a},e.prototype.getDrawCfg=function(t){var e=t[l.FIELD_ORIGIN],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar},i=t.shape;!i&&this.getShapeFactory()&&(i=this.getShapeFactory().defaultShapeType),n.shape=i;var r=this.theme.geometries[this.shapeType];n.defaultStyle=o.get(r,[i,"default"],{}).style;var a=this.styleOption;return a&&(n.style=this.getStyleCfg(a,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);for(var i=this.lastElementsMap,r=this.elementsMap,a=this.elements,o=0,s=t.length;o<s;o++){var u=t[o],l=this.getElementId(u);r[l]&&(l=l+"-"+e+"-"+o);var c=i[l];if(c){var h=this.getDrawCfg(u),p=c.getModel();g.isModelChange(h,p)&&(c.animate=this.animateOption,c.update(h)),delete i[l]}else c=this.createElement(u,n);a.push(c),r[l]=c}return a},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,i=e.type,r=o.get(t,["cfg","type"]);return r||(r="polar"===i?"polar":"theta"===i?"pie":"interval"===n||"polygon"===n?"interval":"base"),r},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(o.isNil(e)||o.isObject(e))o.isObject(e)&&o.isEqual(Object.keys(e),["values"])?o.set(this.attributeOption,t,{fields:e.values}):o.set(this.attributeOption,t,e);else{var i={};o.isNumber(e)?i.values=[e]:i.fields=y.parseFields(e),n&&(o.isFunction(n)?i.callback=n:i.values=n),o.set(this.attributeOption,t,i)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,r=this.theme,o=this.shapeType;this.groupScales=[];var s={},u=function(u){if(n.hasOwnProperty(u)){var c=n[u];if(!c)return{value:void 0};var h=i.__assign({},c),p=h.callback,f=h.values,d=h.fields,g=(void 0===d?[]:d).map((function(e){var n=t.scales[e];return n.isCategory&&!s[e]&&l.GROUP_ATTRS.includes(u)&&(t.groupScales.push(n),s[e]=!0),n}));h.scales=g,"position"!==u&&1===g.length&&"identity"===g[0].type?h.values=g[0].values:p||f||("size"===u?h.values=r.sizes:"shape"===u?h.values=r.shapes[o]||[]:"color"===u&&(g.length?h.values=g[0].values.length<=10?r.colors10:r.colors20:h.values=r.colors10));var y=a.getAttribute(u);e[u]=new y(h)}};for(var c in n){var h=u(c);if("object"==typeof h)return h.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),n=this.groupData(t),i=[],r=0,a=n.length;r<a;r++){for(var o=n[r],s=[],u=0,c=o.length;u<c;u++){var h=o[u],p={};for(var f in h)p[f]=h[f];p[l.FIELD_ORIGIN]=h;for(var d=0,g=e;d<g.length;d++){var y=g[d],v=y.field;p[v]=y.translate(p[v])}s.push(p)}i.push(s)}var m=this.adjustData(i);return this.beforeMappingData=m,m},e.prototype.adjustData=function(t){var e=this.adjustOption,n=t;if(e)for(var a=this.getXScale(),s=this.getYScale(),u=a.field,l=s?s.field:null,c=0,h=e.length;c<h;c++){var p=e[c],f=i.__assign({xField:u,yField:l},p),d=p.type;if("dodge"===d){var g=[];if(a.isCategory||"identity"===a.type)g.push("x");else{if(s)throw new Error("dodge is not support linear attribute, please use category attribute!");g.push("y")}f.adjustNames=g,f.dodgeRatio=this.theme.columnWidthRatio}else if("stack"===d){var y=this.coordinate;if(!s){f.height=y.getHeight();var v=this.getDefaultValue("size")||3;f.size=v}!y.isTransposed&&o.isNil(f.reverseOrder)&&(f.reverseOrder=!0)}var m=new(r.getAdjust(d))(f);n=m.process(n),this.adjusts[d]=m}return n},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,i={},r=[],a=0;a<e.length;a++){var s=e[a].field;r.push(s),o.get(n,[s,"values"])&&(i[s]=n[s].values)}return d.group(t,r,i)},e.prototype.updateStackRange=function(t,e){for(var n=o.flatten(e),i=t.field,r=t.min,a=t.max,s=0;s<n.length;s++){var u=n[s],l=Math.min.apply(null,u[i]),c=Math.max.apply(null,u[i]);l<r&&(r=l),c>a&&(a=c)}var h=this.scaleDefs,p={};r<t.min&&!o.get(h,[i,"min"])&&(p.min=r),a>t.max&&!o.get(h,[i,"max"])&&(p.max=a),t.change(p)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,i=e.length;n<i;n++){var r=e[n];this.generateShapePoints(r);var a=e[n+1];a&&(this.generateShapePoints(a),r[0].nextPoints=a[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),i=0;i<t.length;i++){var r=t[i],a=this.createShapePointsCfg(r),o=n?this.getAttributeValues(n,r):null,s=e.getShapePoints(o,a);r.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(o.isArray(t))for(var i=0;i<t.length;i++){var r=t[i];n.push(e.scale(r))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],i=0;i<t.length;i++){var r=t[i],a={_origin:r[l.FIELD_ORIGIN],points:r.points,nextPoints:r.nextPoints};for(var s in e)if(e.hasOwnProperty(s)){var u=e[s],c=u.names,h=this.getAttributeValues(u,r);if(c.length>1)for(var p=0;p<h.length;p+=1){var f=h[p];a[c[p]]=o.isArray(f)&&1===f.length?f[0]:f}else a[c[0]]=1===h.length?h[0]:h}this.convertPoint(a),n.push(a)}return n},e.prototype.convertPoint=function(t){var e,n,i,r=t.x,a=t.y,s=this.coordinate;if(o.isArray(r)&&o.isArray(a)){e=[],n=[];for(var u=0,l=0,c=r.length,h=a.length;u<c&&l<h;u+=1,l+=1)i=s.convert({x:r[u],y:a[l]}),e.push(i.x),n.push(i.y)}else if(o.isArray(a)){n=[];for(var p=0;p<a.length;p++){var f=a[p];i=s.convert({x:r,y:f}),e&&e!==i.x?(o.isArray(e)||(e=[e]),e.push(i.x)):e=i.x,n.push(i.y)}}else if(o.isArray(r)){e=[];for(p=0;p<r.length;p++){var d=r[p];i=s.convert({x:d,y:a}),n&&n!==i.y?(o.isArray(n)||(n=[n]),n.push(i.y)):n=i.y,e.push(i.x)}}else{var g=s.convert({x:r,y:a});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,i=void 0===n?[]:n,r=t.callback,a=t.cfg;if(a)return a;var o=i.map((function(t){return e[t]}));return r.apply(void 0,o)},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,i=t.data,r=t.theme,a=t.scaleDefs;n&&(this.coordinate=n),i&&(this.data=i),a&&(this.scaleDefs=a,this.idFields=[],o.each(a,(function(t,n){t&&t.key&&e.idFields.push(n)}))),r&&(this.theme=this.userTheme?o.deepMix({},r,this.userTheme):r)},e.prototype.renderLabels=function(t,e){void 0===e&&(e=!1);var n=this.geometryLabel;if(!n){var i=this.getLabelType();n=new(p.getGeometryLabel(i))(this),this.geometryLabel=n}n.render(t,e);var r=n.labelsRenderer.shapesMap;o.each(this.elementsMap,(function(t,e){var n=function(t,e){var n=[];return o.each(e,(function(e,i){i.split(" ")[0]===t&&n.push(e)})),n}(e,r);if(n.length){t.labelShape=n;for(var i=0;i<n.length;i++)for(var a=n[i].getChildren(),s=0;s<a.length;s++){var u=a[s];u.cfg.name=["element","label"],u.cfg.element=t}}}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===o.get(this.animateOption,"appear")||o.get(this.animateOption,"appear")&&void 0===o.get(this.animateOption,["appear","animation"]))},e}(u.default);e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(5),a=n(55),o=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=i.deepMix({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,i=t.padding,r=void 0===i?this.cfg.padding:i,a=this.view.createView({region:e,padding:r});a.data(n||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){return this.view.getLayer(r.LAYER.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;i.each(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return i.each(t,(function(t){var a=t[e];i.isNil(a)||r[a]||(n.push(a),r[a]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=1/(0===e?1:e),a=1/(0===t?1:t);return{start:{x:r*n,y:a*i},end:{x:r*(n+1),y:a*(i+1)}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,o=t.geometries;if("rect"===i.get(r,"type","rect")&&o.length){i.isNil(n.axes)&&(n.axes={});var s=n.axes,u=o[0].getXYFields(),l=u[0],c=u[1],h=a.getAxisOption(s,l),p=a.getAxisOption(s,c);!1!==h&&(n.axes[l]=this.getXAxisOption(l,s,h,e)),!1!==p&&(n.axes[c]=this.getYAxisOption(c,s,p,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return i.every(t,(function(t){var n=t.field,r=t.value;return!(!i.isNil(r)&&n)||e[n]===r}))}},t}();e.Facet=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(118);e.ICanvas=i.ICanvas,e.IElement=i.IElement,e.IGroup=i.IGroup,e.IShape=i.IShape;var r=n(119);e.PathCommand=r.PathCommand,e.BBox=r.BBox,e.Point=r.Point,e.ShapeAttrs=r.ShapeAttrs;var a=n(8);e.Event=a.Event,e.AbstractGroup=a.AbstractGroup,e.AbstractShape=a.AbstractShape;var o=n(122);e.registerAdjust=o.registerAdjust,e.getAdjust=o.getAdjust,e.Adjust=o.Adjust;var s=n(125);e.getAttribute=s.getAttribute,e.Attribute=s.Attribute;var u=n(110);e.Color=u.Color;var l=n(266);e.getCoordinate=l.getCoordinate,e.registerCoordinate=l.registerCoordinate,e.Coordinate=l.Coordinate,e.CoordinateCfg=l.CoordinateCfg;var c=n(27);e.getScale=c.getScale,e.registerScale=c.registerScale,e.Scale=c.Scale,e.ScaleConfig=c.ScaleConfig;var h=n(128);e.Tick=h.Tick;var p=n(262);e.Annotation=p.Annotation,e.Component=p.Component,e.Crosshair=p.Crosshair,e.GroupComponent=p.GroupComponent,e.HtmlComponent=p.HtmlComponent,e.Slider=p.Slider;var f=n(131);e.IComponent=f.IComponent,e.IList=f.IList;var d=n(132);e.CategoryLegendCfg=d.CategoryLegendCfg,e.CircleAxisCfg=d.CircleAxisCfg,e.LineAxisCfg=d.LineAxisCfg,e.GroupComponentCfg=d.GroupComponentCfg,e.ListItem=d.ListItem,e.AxisLineCfg=d.AxisLineCfg,e.AxisTickLineCfg=d.AxisTickLineCfg,e.AxisSubTickLineCfg=d.AxisSubTickLineCfg,e.AxisTitleCfg=d.AxisTitleCfg,e.AxisLabelCfg=d.AxisLabelCfg,e.GridLineCfg=d.GridLineCfg,e.LegendMarkerCfg=d.LegendMarkerCfg,e.LegendTitleCfg=d.LegendTitleCfg,e.LegendBackgroundCfg=d.LegendBackgroundCfg,e.LegendItemNameCfg=d.LegendItemNameCfg,e.LegendItemValueCfg=d.LegendItemValueCfg,e.ContinueLegendCfg=d.ContinueLegendCfg,e.ContinueLegendTrackCfg=d.ContinueLegendTrackCfg,e.ContinueLegendRailCfg=d.ContinueLegendRailCfg,e.ContinueLegendLabelCfg=d.ContinueLegendLabelCfg,e.ContinueLegendHandlerCfg=d.ContinueLegendHandlerCfg,e.CrosshairLineCfg=d.CrosshairLineCfg,e.CrosshairTextCfg=d.CrosshairTextCfg,e.CrosshairTextBackgroundCfg=d.CrosshairTextBackgroundCfg,e.SliderCfg=d.SliderCfg,e.TrendCfg=d.TrendCfg;var g=p.Axis.Line,y=p.Axis.Circle;e.LineAxis=g,e.CircleAxis=y;var v=p.Grid.Line,m=p.Grid.Circle;e.LineGrid=v,e.CircleGrid=m;var x=p.Legend.Category,b=p.Legend.Continuous;e.CategoryLegend=x,e.ContinuousLegend=b;var _=p.Tooltip.Html;e.HtmlTooltip=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(94);e.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var s={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},u={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};e.getDefaultAnimateCfg=function(t,n,i){var a=s[t];return a&&(r.isFunction(a)&&(a=a(n)),a=r.deepMix({},e.DEFAULT_ANIMATE_CFG,a),i)?a[i]:a},e.doAnimate=function(t,e,n){var i=r.get(t.get("origin"),"data",a.FIELD_ORIGIN),s=e.animation,u=function(t,e){return{delay:r.isFunction(t.delay)?t.delay(e):t.delay,easing:r.isFunction(t.easing)?t.easing(e):t.easing,duration:r.isFunction(t.duration)?t.duration(e):t.duration,callback:t.callback}}(e,i);if(s){var l=o.getAnimation(s);l&&l(t,u,n)}else t.animate(n.toAttrs,u)},e.doGroupAppearAnimate=function(t,n,a,s,l){if(u[a]){var c=u[a](s),h=o.getAnimation(r.get(c,"animation",""));if(h){var p=i.__assign(i.__assign(i.__assign({},e.DEFAULT_ANIMATE_CFG.appear),c),n);t.stopAnimate(),h(t,p,{coordinate:s,minYPoint:l,toAttrs:null})}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return c})),n.d(e,"Identity",(function(){return q})),n.d(e,"Linear",(function(){return B})),n.d(e,"Log",(function(){return N})),n.d(e,"Pow",(function(){return Y})),n.d(e,"Time",(function(){return G})),n.d(e,"TimeCat",(function(){return j})),n.d(e,"Quantile",(function(){return X})),n.d(e,"Quantize",(function(){return V})),n.d(e,"Scale",(function(){return u})),n.d(e,"getScale",(function(){return H})),n.d(e,"registerScale",(function(){return W})),n.d(e,"getTickMethod",(function(){return o}));var i={};n.r(i),n.d(i,"default",(function(){return O}));var r=n(0),a={};function o(t){return a[t]}function s(t,e){a[t]=e}var u=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(r.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(r.map)(this.ticks,(function(e,n){return Object(r.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return Object(r.isNil)(i)||!Object(r.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(r.assign)(this,this.__cfg__),this.setDomain(),Object(r.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(r.isString)(t)){var n=o(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(r.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return Object(r.head)(this.range)},t.prototype.rangeMax=function(){return Object(r.last)(this.range)},t.prototype.calcPercent=function(t,e,n){return Object(r.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),l=n(1),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(l.__extends)(e,t),e.prototype.translate=function(t){var e=Object(r.indexOf)(this.values,t);return-1===e?Object(r.isNumber)(t)?t:NaN:e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),i=Math.round(e*n)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e;return Object(r.isNumber)(e)&&!this.values.includes(e)&&(a=this.values[a]),t.prototype.getText.apply(this,Object(l.__spreadArrays)([a],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(r.isNil)(this.getConfig("min"))&&(this.min=0),Object(r.isNil)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}},e}(u),h={},p=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,f="[^\\s]+",d=/\[([^]*?)\]/gm,g=function(){};function y(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}function v(t){return function(e,n,i){var r=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(e.month=r)}}function m(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var x=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b=["January","February","March","April","May","June","July","August","September","October","November","December"],_=y(b,3),M=y(x,3);h.i18n={dayNamesShort:M,dayNames:x,monthNamesShort:_,monthNames:b,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var C={D:function(t){return t.getDate()},DD:function(t){return m(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return m(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return m(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return m(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return m(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return m(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return m(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return m(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return m(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return m(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return m(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+m(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},w={D:["\\d\\d?",function(t,e){t.day=e}],Do:["\\d\\d?"+f,function(t,e){t.day=parseInt(e,10)}],M:["\\d\\d?",function(t,e){t.month=e-1}],YY:["\\d\\d?",function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:["\\d\\d?",function(t,e){t.hour=e}],m:["\\d\\d?",function(t,e){t.minute=e}],s:["\\d\\d?",function(t,e){t.second=e}],YYYY:["\\d{4}",function(t,e){t.year=e}],S:["\\d",function(t,e){t.millisecond=100*e}],SS:["\\d{2}",function(t,e){t.millisecond=10*e}],SSS:["\\d{3}",function(t,e){t.millisecond=e}],d:["\\d\\d?",g],ddd:[f,g],MMM:[f,v("monthNamesShort")],MMMM:[f,v("monthNames")],a:[f,function(t,e,n){var i=e.toLowerCase();i===n.amPm[0]?t.isPm=!1:i===n.amPm[1]&&(t.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(t,e){var n,i=(e+"").match(/([+-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),t.timezoneOffset="+"===i[0]?n:-n)}]};w.dd=w.d,w.dddd=w.ddd,w.DD=w.D,w.mm=w.m,w.hh=w.H=w.HH=w.h,w.MM=w.M,w.ss=w.s,w.A=w.a,h.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},h.format=function(t,e,n){var i=n||h.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=h.masks[e]||e||h.masks.default;var r=[];return(e=(e=e.replace(d,(function(t,e){return r.push(e),"@@@"}))).replace(p,(function(e){return e in C?C[e](t,i):e.slice(1,e.length-1)}))).replace(/@@@/g,(function(){return r.shift()}))},h.parse=function(t,e,n){var i=n||h.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=h.masks[e]||e,t.length>1e3)return null;var r={},a=[],o=[];e=e.replace(d,(function(t,e){return o.push(e),"@@@"}));var s,u=(s=e,s.replace(/[|\\{()[^$+*?.-]/g,"\\$&")).replace(p,(function(t){if(w[t]){var e=w[t];return a.push(e[1]),"("+e[0]+")"}return t}));u=u.replace(/@@@/g,(function(){return o.shift()}));var l=t.match(new RegExp(u,"i"));if(!l)return null;for(var c=1;c<l.length;c++)a[c-1](r,l[c],i);var f,g=new Date;return!0===r.isPm&&null!=r.hour&&12!=+r.hour?r.hour=+r.hour+12:!1===r.isPm&&12==+r.hour&&(r.hour=0),null!=r.timezoneOffset?(r.minute=+(r.minute||0)-+r.timezoneOffset,f=new Date(Date.UTC(r.year||g.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0))):f=new Date(r.year||g.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0),f};var O=h;function S(t,e){return(i.format||O.format)(t,e)}function A(t){return Object(r.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r.isDate)(t)&&(t=t.getTime()),t}var P=36e5,I=24*P,T=31*I,E=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",P],["HH",6*P],["HH",12*P],["YYYY-MM-DD",I],["YYYY-MM-DD",4*I],["YYYY-WW",7*I],["YYYY-MM",T],["YYYY-MM",4*T],["YYYY-MM",6*T],["YYYY",380*I]];function L(t,e,n){var i,a=(i=function(t){return t[1]},function(t,e,n,a){for(var o=Object(r.isNil)(n)?0:n,s=Object(r.isNil)(a)?t.length:a;o<s;){var u=o+s>>>1;i(t[u])>e?s=u:o=u+1}return o})(E,(e-t)/n)-1,o=E[a];return a<0?o=E[0]:a>=E.length&&(o=Object(r.last)(E)),o}var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.__extends)(e,t),e.prototype.translate=function(t){t=A(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(r.isNumber)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var i=this.values[n],r=this.formatter;return i=r?r(i,e):S(i,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(r.each)(e,(function(t,n){e[n]=A(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(c),k=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(l.__extends)(e,t),e.prototype.scale=function(t){if(Object(r.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(r.head)(e),i=Object(r.last)(e);n<this.min&&(this.min=n),i>this.max&&(this.max=i),Object(r.isNil)(this.minLimit)||(this.min=n),Object(r.isNil)(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=Object(r.getRange)(this.values),e=t.min,n=t.max;Object(r.isNil)(this.min)&&(this.min=e),Object(r.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(r.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(u),B=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(l.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(k);function D(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function F(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function R(t,e,n){Object(r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r.each)(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i}var N=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(l.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,i=F(n,this.max),r=this.rangeMin(),a=this.rangeMax()-r,o=this.positiveMin;if(o){if(0===t)return 0;var s=1/(i-(e=F(n,o/n)))*a;if(t<s)return t/s*o}else e=F(n,this.min);var u=(t-r)/a*(i-e)+e;return Math.pow(n,u)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=R(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var i=this.base,r=this.positiveMin;return r&&(n=1*r/i),t<r?t/r/(F(i,e)-F(i,n)):(F(i,t)-F(i,n))/(F(i,e)-F(i,n))},e}(k),Y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(l.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,i=D(n,this.max),r=D(n,this.min),a=e*(i-r)+r,o=a>=0?1:-1;return Math.pow(a,n)*o},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var i=this.exponent;return(D(i,t)-D(i,n))/(D(i,e)-D(i,n))},e}(k),G=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(l.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):S(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(r.isString)(n)||Object(r.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return A(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(r.isNil)(e)&&Object(r.isNumber)(e)||(this.min=this.translate(this.min)),Object(r.isNil)(n)&&Object(r.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],a=1/0,o=a,s=0;Object(r.each)(t,(function(t){var e=A(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(o=a,a=e):o>e&&(o=e),s<e&&(s=e),i.push(e)})),t.length>1&&(this.minTickInterval=o-a),Object(r.isNil)(e)&&(this.min=a),Object(r.isNil)(n)&&(this.max=s)}},e}(B),V=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(l.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),a=Math.floor(i*(n-1));if(a>=n-1)return Object(r.last)(e);if(a<0)return Object(r.head)(e);var o=e[a],s=a/(n-1);return o+(i-s)/((a+1)/(n-1)-s)*(e[a+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(r.last)(e)!==this.max&&e.push(this.max),Object(r.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(r.head)(e))return 0;if(t>Object(r.last)(e))return 1;var n=0;return Object(r.each)(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(k),X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(l.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(V),z={};function H(t){return z[t]}function W(t,e){if(H(t))throw new Error("type '"+t+"' existed.");z[t]=e}var q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(l.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(r.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(u),U=[1,5,2,2.5,4,3],Z=100*Number.EPSILON;function Q(t,e,n,i,a,o){var s=Object(r.size)(e),u=Object(r.indexOf)(e,t),l=0,c=function(t,e){return(t%e+e)%e}(i,o);return(c<Z||o-c<Z)&&i<=0&&a>=0&&(l=1),1-u/(s-1)-n+l}function K(t,e,n){var i=Object(r.size)(e);return 1-Object(r.indexOf)(e,t)/(i-1)-n+1}function $(t,e,n,i,r,a){var o=(t-1)/(a-r),s=(e-1)/(Math.max(a,i)-Math.min(n,r));return 2-Math.max(o/s,s/o)}function J(t,e){return t>=e?2-(t-1)/(e-1):1}function tt(t,e,n,i){var r=e-t;return 1-.5*(Math.pow(e-i,2)+Math.pow(t-n,2))/Math.pow(.1*r,2)}function et(t,e,n){var i=e-t;if(n>i){var r=(n-i)/2;return 1-Math.pow(r,2)/Math.pow(.1*i,2)}return 1}function nt(t,e,n,i,a,o){if(void 0===n&&(n=5),void 0===i&&(i=!0),void 0===a&&(a=U),void 0===o&&(o=[.25,.2,.5,.05]),t===e||1===n)return{min:t,max:e,ticks:[t]};for(var s={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var l=0,c=a;l<c.length;l++){var h=c[l],p=K(h,a,u);if(Number.isNaN(p))throw new Error("NaN");if(o[0]*p+o[1]+o[2]+o[3]<s.score){u=1/0;break}for(var f=2;f<1/0;){var d=J(f,n);if(o[0]*p+o[1]+o[2]*d+o[3]<s.score)break;for(var g=(e-t)/(f+1)/u/h,y=Math.ceil(Math.log10(g));y<1/0;){var v=u*h*Math.pow(10,y),m=et(t,e,v*(f-1));if(o[0]*p+o[1]*m+o[2]*d+o[3]<s.score)break;var x=Math.floor(e/v)*u-(f-1)*u,b=Math.ceil(t/v)*u;if(x>b)y+=1;else{for(var _=x;_<=b;_+=1){var M=_*(v/u),C=M+v*(f-1),w=v,O=Q(h,a,u,M,C,w),S=tt(t,e,M,C),A=$(f,n,t,e,M,C),P=o[0]*O+o[1]*S+o[2]*A+1*o[3];P>s.score&&(!i||M<=t&&C>=e)&&(s.lmin=M,s.lmax=C,s.lstep=w,s.score=P)}y+=1}}f+=1}}u+=1}for(var I=Number.isInteger(s.lstep)?0:Math.ceil(Math.abs(Math.log10(s.lstep))),T=[],E=s.lmin;E<=s.lmax;E+=s.lstep)T.push(E);var L=I?Object(r.map)(T,(function(t){return Number.parseFloat(t.toFixed(I))})):T;return{min:Math.min(t,Object(r.head)(L)),max:Math.max(e,Object(r.last)(L)),ticks:L}}function it(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=e;if(Object(r.isNumber)(n))return Object(r.filter)(a,(function(t,e){return e%n==0}));var o=t.min,s=t.max;if(Object(r.isNil)(o)&&(o=0),Object(r.isNil)(s)&&(s=e.length-1),Object(r.isNumber)(i)&&i<s-o){var u=nt(o,s,i,!1,[1,2,5,3,4,7,6,8,9]).ticks;return Object(r.filter)(u,(function(t){return t>=o&&t<=s})).map((function(t){return e[t]}))}return e.slice(o,s+1)}var rt=Math.sqrt(50),at=Math.sqrt(10),ot=Math.sqrt(2),st=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var i,r=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],u=this._domain[o];return u<s&&(s=(e=[u,s])[0],u=e[1],a=(n=[o,a])[0],o=n[1]),(i=ut(s,u,t))>0?i=ut(s=Math.floor(s/i)*i,u=Math.ceil(u/i)*i,t):i<0&&(i=ut(s=Math.ceil(s*i)/i,u=Math.floor(u*i)/i,t)),i>0?(r[a]=Math.floor(s/i)*i,r[o]=Math.ceil(u/i)*i,this.domain(r)):i<0&&(r[a]=Math.ceil(s*i)/i,r[o]=Math.floor(u*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var i,r,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(i=e<t)&&(r=t,t=e,e=r);if(0===(o=ut(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(r=Math.ceil(e-t+1));++s<r;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(r=Math.ceil(t-e+1));++s<r;)a[s]=(t-s)/o;i&&a.reverse();return a}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function ut(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,r);return r>=0?(a>=rt?10:a>=at?5:a>=ot?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=rt?10:a>=at?5:a>=ot?2:1)}function lt(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function ct(t,e,n){var i=lt(t,n,"floor"),a=lt(e,n,"ceil");i=Object(r.fixedBase)(i,n),a=Object(r.fixedBase)(a,n);for(var o=[],s=i;s<=a;s+=n){var u=Object(r.fixedBase)(s,n);o.push(u)}return{min:i,max:a,ticks:o}}function ht(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,u=t.max,l=t.tickCount,c=void 0===l?5:l,h=Object(r.isNil)(a)?Object(r.isNil)(e)?s:e:a,p=Object(r.isNil)(o)?Object(r.isNil)(n)?u:n:o;if(h>p&&(p=(i=[h,p])[0],h=i[1]),c<=2)return[h,p];for(var f=(p-h)/(c-1),d=[],g=0;g<c;g++)d.push(h+f*g);return d}function pt(t,e,n){void 0===n&&(n=5);var i={max:0,min:0,ticks:[]},r=(e-t)/n,a=Math.pow(10,Math.floor(Math.log10(r))),o=a<1?Math.ceil(Math.abs(Math.log10(a))):0,s=a;2*a-r<1.5*(r-s)&&5*a-r<2.75*(r-(s=2*a))&&10*a-r<1.5*(r-(s=5*a))&&(s=10*a);var u=Math.ceil(e/s),l=Math.floor(t/s);i.max=Math.max(u*s,e),i.min=Math.min(l*s,t);for(var c=Number.parseFloat((l*s).toFixed(o));c<e;)i.ticks.push(c),c+=s,o&&(c=Number.parseFloat(c.toFixed(o)));return i.ticks.push(c),i}function ft(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function dt(t){return new Date(t).getFullYear()}function gt(t){return new Date(t,0,1).getTime()}function yt(t){return new Date(t).getMonth()}function vt(t,e){return new Date(t,e,1).getTime()}s("cat",it),s("time-cat",(function(t){var e=it(t),n=Object(r.last)(t.values);return n!==Object(r.last)(e)&&e.push(n),e})),s("wilkinson-extended",(function(t){var e=t.min,n=t.max,i=t.tickCount,a=t.nice,o=t.tickInterval,s=t.minLimit,u=t.maxLimit,l=nt(e,n,i,a).ticks;return Object(r.isNil)(s)&&Object(r.isNil)(u)?o?ct(e,n,o).ticks:l:ht(t,Object(r.head)(l),Object(r.last)(l))})),s("r-pretty",(function(t){var e=t.min,n=t.max,i=t.tickCount,a=t.tickInterval,o=t.minLimit,s=t.maxLimit,u=pt(e,n,i).ticks;return Object(r.isNil)(o)&&Object(r.isNil)(s)?a?ct(e,n,a).ticks:u:ht(t,Object(r.head)(u),Object(r.last)(u))})),s("time",(function(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,a=t.tickCount;if(r)a=Math.ceil((n-e)/r);else{var o=(n-e)/(r=L(e,n,a)[1])/a;o>1&&(r*=Math.ceil(o)),i&&r<i&&(r=i)}for(var s=[],u=e;u<n+r;u+=r)s.push(u);return s})),s("time-pretty",(function(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,a=t.tickCount,o=[];r||(r=(n-e)/a,i&&r<i&&(r=i));var s=dt(e);if(r>31536e6)for(var u=dt(n),l=Math.ceil(r/31536e6),c=s;c<=u+l;c+=l)o.push(gt(c));else if(r>T){var h=Math.ceil(r/T),p=yt(e),f=function(t,e){var n=dt(t),i=dt(e),r=yt(t);return 12*(i-n)+(yt(e)-r)%12}(e,n);for(c=0;c<=f+h;c+=h)o.push(vt(s,c+p))}else if(r>I){var d=(x=new Date(e)).getFullYear(),g=x.getMonth(),y=x.getDate(),v=Math.ceil(r/I),m=function(t,e){return Math.ceil((e-t)/I)}(e,n);for(c=0;c<m+v;c+=v)o.push(new Date(d,g,y+c).getTime())}else if(r>P){d=(x=new Date(e)).getFullYear(),g=x.getMonth(),v=x.getDate();var x,b=x.getHours(),_=Math.ceil(r/P),M=function(t,e){return Math.ceil((e-t)/P)}(e,n);for(c=0;c<=M+_;c+=_)o.push(new Date(d,g,v,b+c).getTime())}else if(r>6e4){var C=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),w=Math.ceil(r/6e4);for(c=0;c<=C+w;c+=w)o.push(e+6e4*c)}else{var O=r;O<1e3&&(O=1e3);var S=1e3*Math.floor(e/1e3),A=Math.ceil((n-e)/1e3),E=Math.ceil(O/1e3);for(c=0;c<A+E;c+=E)o.push(S+1e3*c)}return o})),s("log",(function(t){var e,n=t.base,i=t.tickCount,r=t.min,a=t.max,o=t.values,s=F(n,a);if(r>0)e=Math.floor(F(n,r));else{var u=R(o,n,a);e=Math.floor(F(n,u))}for(var l=s-e,c=Math.ceil(l/i),h=[],p=e;p<s+c;p+=c)h.push(Math.pow(n,p));return r<=0&&h.unshift(0),h})),s("pow",(function(t){var e=t.exponent,n=t.tickCount,i=Math.ceil(D(e,t.max));return pt(Math.floor(D(e,t.min)),i,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))})),s("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),r=[],a=0;a<e;a++){var o=a/(e-1);r.push(ft(i,o))}return r})),s("d3-linear",(function(t){var e=t.min,n=t.max,i=t.tickInterval,a=t.minLimit,o=t.maxLimit,s=function(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,a=new st;return a.domain([e,n]),i&&a.nice(r),a.ticks(r)}(t);return Object(r.isNil)(a)&&Object(r.isNil)(o)?i?ct(e,n,i).ticks:s:ht(t,Object(r.head)(s),Object(r.last)(s))})),W("cat",c),W("category",c),W("identity",q),W("linear",B),W("log",N),W("pow",Y),W("time",G),W("timeCat",j),W("quantize",V),W("quantile",X)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),r=n(10),a=n(97);function o(t,e,n,i,r){var a=1-r;return a*a*a*t+3*e*r*a*a+3*n*r*r*a+i*r*r*r}function s(t,e,n,i,r){var a=1-r;return 3*(a*a*(e-t)+2*a*r*(n-e)+r*r*(i-n))}function u(t,e,n,r){var a,o,s,u=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,c=3*e-3*t,h=[];if(i.isNumberEqual(u,0))i.isNumberEqual(l,0)||(a=-c/l)>=0&&a<=1&&h.push(a);else{var p=l*l-4*u*c;i.isNumberEqual(p,0)?h.push(-l/(2*u)):p>0&&(o=(-l-(s=Math.sqrt(p)))/(2*u),(a=(-l+s)/(2*u))>=0&&a<=1&&h.push(a),o>=0&&o<=1&&h.push(o))}return h}function l(t,e,n,i,a,s,u,l,c){var h=o(t,n,a,u,c),p=o(e,i,s,l,c),f=r.default.pointAt(t,e,n,i,c),d=r.default.pointAt(n,i,a,s,c),g=r.default.pointAt(a,s,u,l,c),y=r.default.pointAt(f.x,f.y,d.x,d.y,c),v=r.default.pointAt(d.x,d.y,g.x,g.y,c);return[[t,e,f.x,f.y,y.x,y.y,h,p],[h,p,v.x,v.y,g.x,g.y,u,l]]}e.default={extrema:u,box:function(t,e,n,r,a,s,l,c){for(var h=[t,l],p=[e,c],f=u(t,n,a,l),d=u(e,r,s,c),g=0;g<f.length;g++)h.push(o(t,n,a,l,f[g]));for(g=0;g<d.length;g++)p.push(o(e,r,s,c,d[g]));return i.getBBoxByArray(h,p)},length:function(t,e,n,i,r,o,s,u){return function t(e,n,i,r,o,s,u,c,h){if(0===h)return a.snapLength([e,i,o,u],[n,r,s,c]);var p=l(e,n,i,r,o,s,u,c,.5),f=p[0],d=p[1];return f.push(h-1),d.push(h-1),t.apply(null,f)+t.apply(null,d)}(t,e,n,i,r,o,s,u,3)},nearestPoint:function(t,e,n,i,r,s,u,l,c,h){return a.nearestPoint([t,n,r,u],[e,i,s,l],c,h,o)},pointDistance:function(t,e,n,r,a,o,s,u,l,c){var h=this.nearestPoint(t,e,n,r,a,o,s,u,l,c);return i.distance(h.x,h.y,l,c)},interpolationAt:o,pointAt:function(t,e,n,i,r,a,s,u,l){return{x:o(t,n,r,s,l),y:o(e,i,a,u,l)}},divide:function(t,e,n,i,r,a,o,s,u){return l(t,e,n,i,r,a,o,s,u)},tangentAngle:function(t,e,n,r,a,o,u,l,c){var h=s(t,n,a,u,c),p=s(e,r,o,l,c);return i.piMod(Math.atan2(p,h))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(56);e.default=function(t){return i.default(t,"Function")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(){i.each(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();e.Controller=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5);e.getFactTitleConfig=function(t){return[i.DIRECTION.TOP,i.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===i.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===i.DIRECTION.TOP?"bottom":"top"}}:[i.DIRECTION.LEFT,i.DIRECTION.RIGHT].includes(t)?{offsetX:t===i.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===i.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},e.getAnglePoint=function(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return(t%e+e)%e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Math.PI/180;e.default=function(t){return i*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(0),a=n(16);function o(t,e){for(var n=[t[0]],i=1,r=t.length;i<r;i+=2){var a=e.convert({x:t[i],y:t[i+1]});n.push(a.x,a.y)}return n}function s(t,n,i){for(var r=!!n,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var u,l,c,h=e.smoothBezier(a,.4,r,i),p=a.length,f=[];for(o=0;o<p-1;o++)u=h[2*o],l=h[2*o+1],c=a[o+1],f.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]]);return r&&(u=h[p],l=h[p+1],c=a[0],f.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]])),f}function u(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i<r;i+=1){var a=t[i];n.push(["L",a.x,a.y])}e&&n.push(["Z"])}return n}(t,e)}e.smoothBezier=function(t,e,n,r){var a,o,s,u,l=[],c=!!r;if(c){s=[1/0,1/0],u=[-1/0,-1/0];for(var h=0,p=t.length;h<p;h++){var f=t[h];s=i.vec2.min([],s,f),u=i.vec2.max([],u,f)}s=i.vec2.min([],s,r[0]),u=i.vec2.max([],u,r[1])}h=0;for(var d=t.length;h<d;h++){f=t[h];if(n)a=t[h?h-1:d-1],o=t[(h+1)%d];else{if(0===h||h===d-1){l.push(f);continue}a=t[h-1],o=t[h+1]}var g=[];g=i.vec2.sub(g,o,a),g=i.vec2.scale(g,g,e);var y=i.vec2.distance(f,a),v=i.vec2.distance(f,o),m=y+v;0!==m&&(y/=m,v/=m);var x=i.vec2.scale([],g,-y),b=i.vec2.scale([],g,v),_=i.vec2.add([],f,x),M=i.vec2.add([],f,b);c&&(_=i.vec2.max([],_,s),_=i.vec2.min([],_,u),M=i.vec2.max([],M,s),M=i.vec2.min([],M,u)),l.push(_),l.push(M)}return n&&l.push(l.shift()),l},e.catmullRom2bezier=s,e.getLinePath=u,e.getSplinePath=function(t,e,n){var i=[],r=t[0],a=null;if(t.length<=2)return u(t,e);for(var o=0,l=t.length;o<l;o++){var c=t[o];a&&a.x===c.x&&a.y===c.y||(i.push(c.x),i.push(c.y),a=c)}var h=s(i,e,n||[[0,0],[1,1]]);return h.unshift(["M",r.x,r.y]),h},e.convertNormalPath=function(t,e){var n=[];return r.each(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(o(e,t));break;case"z":default:n.push(e)}})),n},e.convertPolarPath=function(t,e){var n,i,s,u=[];return r.each(e,(function(r,l){switch(r[0].toLowerCase()){case"m":case"c":case"q":u.push(o(r,t));break;case"l":n=e[l-1],i=r,s=t.isTransposed,(s?n[n.length-2]===i[1]:n[n.length-1]===i[2])?u=u.concat(function(t,e,n){var i=n.isTransposed,r=n.startAngle,o=n.endAngle,s={x:t[1],y:t[2]},u={x:e[1],y:e[2]},l=[],c=i?"y":"x",h=Math.abs(u[c]-s[c])*(o-r),p=u[c]>=s[c]?1:0,f=h>Math.PI?1:0,d=n.convert(u),g=a.getDistanceToCenter(n,d);if(g>=.5)if(h===2*Math.PI){var y={x:(u.x+s.x)/2,y:(u.y+s.y)/2},v=n.convert(y);l.push(["A",g,g,0,f,p,v.x,v.y]),l.push(["A",g,g,0,f,p,d.x,d.y])}else l.push(["A",g,g,0,f,p,d.x,d.y]);return l}(n,i,t)):u.push(o(r,t));break;case"z":default:u.push(r)}})),function(t){r.each(t,(function(e,n){if("a"===e[0].toLowerCase()){var i=t[n-1],r=t[n+1];r&&"a"===r[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}}))}(u),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(5),a=n(61),o=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=t,this.y=e,this.height=i,this.width=n}return t.fromRange=function(e,n,i,r){return new t(e,n,i-e,r-n)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return i.each(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return i.each(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var i=e.width,a=e.height;switch(n){case r.DIRECTION.TOP:case r.DIRECTION.TOP_LEFT:case r.DIRECTION.TOP_RIGHT:return t.fromRange(this.minX,this.minY+a,this.maxX,this.maxY);case r.DIRECTION.RIGHT:case r.DIRECTION.RIGHT_TOP:case r.DIRECTION.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-i,this.maxY);case r.DIRECTION.BOTTOM:case r.DIRECTION.BOTTOM_LEFT:case r.DIRECTION.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-a);case r.DIRECTION.LEFT:case r.DIRECTION.LEFT_TOP:case r.DIRECTION.LEFT_BOTTOM:return t.fromRange(this.minX+i,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=a.parsePadding(e),i=n[0],r=n[1],o=n[2],s=n[3];return new t(this.x+s,this.y+i,this.width-s-r,this.height-i-o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.size=function(){return this.width*this.height},t}();e.BBox=o,e.getRegionBBox=function(t,e){var n=e.start,i=e.end;return new o(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(i.x-n.x),t.height*Math.abs(i.y-n.y))},e.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.getRectPoints=function(t,e){void 0===e&&(e=!1);var n,r,a,o,s=t.x,u=t.y,l=t.y0,c=t.size;i.isArray(u)?(n=u[0],r=u[1]):(n=l,r=u),i.isArray(s)?(a=s[0],o=s[1]):(a=s-c/2,o=s+c/2);var h=[{x:a,y:n},{x:a,y:r}];return e?h.push({x:o,y:(r+n)/2}):h.push({x:o,y:r},{x:o,y:n}),h},e.getRectPath=function(t){var e=[],n=t[0];e.push(["M",n.x,n.y]);for(var i=1,r=t.length;i<r;i++)e.push(["L",t[i].x,t[i].y]);return e.push(["L",n.x,n.y]),e.push(["z"]),e},e.getFunnelPath=function(t,e,n){var r=[];return i.isNil(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[2].x,t[2].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols={hexagon:function(t,e,n){var i=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]},bowtie:function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}}},function(t,e,n){"use strict";n.r(e);var i=n(0),r=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(t,e,n,i){return t[i]+(e[i]-t[i])*n};function l(t){return"#"+p(t[0])+p(t[1])+p(t[2])}var c,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},p=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},f=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var n=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return n=l(r.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:h,gradient:function(t){var e=Object(i.isString)(t)?t.split("-"):t,n=Object(i.map)(e,(function(t){return h(-1===t.indexOf("#")?f(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),i=t.length-1,r=Math.floor(i*n),a=i*n-r,o=t[r],s=r===i?o:t[r+1];return l([u(o,s,a,0),u(o,s,a,1),u(o,s,a,2)])}(n,t)}},toRGB:Object(i.memoize)(f),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var r=+(u=a.exec(t))[1]+90;n=u[2],e="linear-gradient("+r+"deg, "}else if("r"===t[0]){var u;e="radial-gradient(",n=(u=o.exec(t))[4]}var l=n.match(s);return Object(i.each)(l,(function(t,n){var i=t.split(":");e+=i[1]+" "+100*i[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(24),o=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;e.createScaleByField=function(t,e,n){var s=e||[];if(r.isNumber(t)||r.isNil(r.firstValue(s,t))&&r.isEmpty(n))return new(a.getScale("identity"))({field:t.toString(),values:[t]});var u=r.valuesOfKey(s,t),l=r.get(n,"type",function(t){var e="linear";return o.test(t)?e="time":r.isString(t)&&(e="cat"),e}(u[0]));return new(a.getScale(l))(i.__assign({field:t,values:u},n))},e.syncScale=function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);t.change(n)}},e.getName=function(t){return t.alias||t.field}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(26),s=n(14),u=i.__importDefault(n(149));var l=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],a=this.getLabelCfgs(t);return r.each(t,(function(t,o){var s=a[o];if(!s||r.isNil(t.x)||r.isNil(t.y))n.push(null);else{var u=r.isArray(s.content)?s.content:[s.content];s.content=u;var l=u.length;r.each(u,(function(a,o){if(r.isNil(a)||""===a)n.push(null);else{var u=i.__assign(i.__assign({},s),e.getLabelPoint(s,t,o));u.textAlign||(u.textAlign=e.getLabelAlign(u,o,l)),u.offset<=0&&(u.labelLine=null),n.push(u)}}))}})),n},t.prototype.render=function(t,e){void 0===e&&(e=!1);var n=this.getLabelItems(t),i=this.getLabelsRenderer(),r=this.getGeometryShapes();i.render(n,r,e)},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(){return r.get(this.geometry.theme,"labels",{})},t.prototype.setLabelPosition=function(t,e,n,i){},t.prototype.getDefaultOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffset=function(t,e,n){var i=this.getDefaultOffset(t.offset),r=this.getCoordinate().isTransposed,a=r?"x":"y",o=r?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?i*o:i*o*-1,s},t.prototype.getLabelPoint=function(t,e,n){var i=this.getCoordinate(),a=t.content.length;function o(e,n){var i,a,o=e;return r.isArray(o)&&(1===t.content.length?o.length<=2?o=o[e.length-1]:(i=o,a=0,r.each(i,(function(t){a+=t})),o=a/i.length):o=o[n]),o}var u={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"};if(e&&"polygon"===this.geometry.type){var l=s.getPolygonCentroid(e.x,e.y);u.x=l[0],u.y=l[1]}else u.x=o(e.x,n),u.y=o(e.y,n);var c=r.isArray(e.shape)?e.shape[0]:e.shape;if("funnel"===c||"pyramid"===c){var h=r.get(e,"nextPoints"),p=r.get(e,"points");if(h){var f=i.convert(p[1]),d=i.convert(h[1]);u.x=(f.x+d.x)/2,u.y=(f.y+d.y)/2}else if("pyramid"===c){f=i.convert(p[1]),d=i.convert(p[2]);u.x=(f.x+d.x)/2,u.y=(f.y+d.y)/2}}t.position&&this.setLabelPosition(u,e,n,t.position);var g=this.getLabelOffset(t,n,a);return u.start={x:u.x,y:u.y},u.x+=g.x,u.y+=g.y,u.color=e.color,u},t.prototype.getLabelAlign=function(t,e,n){var i="center";if(this.getCoordinate().isTransposed){var r=this.getDefaultOffset(t.offset);i=r<0?"right":0===r?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,i=e.getXScale(),r=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" "+o[i.field]:"path"===n&&(s+=" "+o[i.field]+"-"+o[r.field]),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,i=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new u.default({container:e,layout:r.get(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=i,l.animate=!!a&&o.getDefaultAnimateCfg("label",s),l},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,o=this.getDefaultLabelCfg(),s=n.type,u=n.theme,l=n.labelOption,c=n.scales,h=n.coordinate,p=l,f=p.fields,d=p.callback,g=p.cfg,y=f.map((function(t){return c[t]})),v=[];return r.each(t,(function(t,n){var l,c=t[a.FIELD_ORIGIN],p=e.getLabelText(c,y);if(d){var m=f.map((function(t){return c[t]}));if(l=d.apply(void 0,m),r.isNil(l))return void v.push(null)}var x=i.__assign(i.__assign({id:e.getLabelId(t),data:c,mappingData:t,coordinate:h},g),l),b=x.content;r.isFunction(b)?x.content=b(c,t,n):r.isUndefined(b)&&(x.content=p[0]),r.isFunction(x.position)&&(x.position=x.position(c,t,n)),x="polygon"===s||x.offset<0&&!["line","point","path"].includes(s)?r.deepMix({},o,u.innerLabels,x):r.deepMix({},o,u.labels,x),v.push(x)})),v},t.prototype.getLabelText=function(t,e){var n=[];return r.each(e,(function(e){var i=t[e.field];i=r.isArray(i)?i.map((function(t){return e.getText(t)})):e.getText(i),r.isNil(i)||""===i?n.push(null):n.push(i)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate();return e.isTransposed?e.applyMatrix(t,0):e.applyMatrix(0,t)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return r.each(t.elementsMap,(function(t,n){e[n]=t.shape})),r.each(t.getOffscreenGroup().getChildren(),(function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n})),e},t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(69),a=n(9),o=n(34);function s(t,e,n,r,a){for(var s=[],u=[],l=0,c=t.length;l<c;l++){var h=t[l];s.push(h[1]),u.push(h[0])}u=u.reverse();var p=[];return i.each([s,u],(function(t,i){var s=[],u=r.parsePoints(t),l=u[0];e&&u.push({x:l.x,y:l.y}),s=n?o.getSplinePath(u,!1,a):o.getLinePath(u,!1),i>0&&(s[0][0]="L"),p=p.concat(s)})),p.push(["Z"]),p}e.getShapeAttrs=function(t,e,n,i,o){for(var u=a.getStyle(t,e,!e,"lineWidth"),l=t.connectNulls,c=t.isInCircle,h=t.points,p=r.getPathPoints(h,l),f=[],d=0,g=p.length;d<g;d++){var y=p[d];f=f.concat(s(y,c,n,i,o))}return u.path=f,u},e.getConstraint=function(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=i.__importDefault(n(11)),o=n(7),s=n(7),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return i.__extends(e,t),e.prototype.getTriggerListInfo=function(){var t=s.getDelegationObject(this.context),e=null;return s.isList(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=o.getComponents(e),i=[];return r.each(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&i.push(e)})),i},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();r.each(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var i=this.context.view,r=s.getScaleByField(i,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var i=t.get("field"),r=this.context.view,a=s.getScaleByField(r,i),o=s.getElementValue(e,i),u=a.getText(o);this.setItemsState(t,u,n)},e.prototype.setStateEnable=function(t){var e=this,n=s.getCurrentElement(this.context);if(n){var i=this.getAllowComponents();r.each(i,(function(i){e.setStateByElement(i,n,t)}))}else{var a=s.getDelegationObject(this.context);if(s.isList(a)){var o=a.item,u=a.component;this.allowSetStateByElement(u)&&this.allowSetStateByItem(o,u)&&this.setItemState(u,o,t)}}},e.prototype.setItemsState=function(t,e,n){var i=this,a=t.getItems();r.each(a,(function(r){r.name===e&&i.setItemState(t,r,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=this.hasState(e,n);this.setItemState(e,n,!i)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeFromArray=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},e.isBrowser="undefined"!=typeof window&&void 0!==window.document;var i=n(25);e.isNil=i.default;var r=n(29);e.isFunction=r.default;var a=n(19);e.isString=a.default;var o=n(40);e.isObject=o.default;var s=n(13);e.isArray=s.default;var u=n(57);e.mix=u.default;var l=n(20);e.each=l.default;var c=n(58);e.upperFirst=c.default,e.isParent=function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),i=!1;n;){if(n===t){i=!0;break}n=n.getParent()}return i},e.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(151);e.getBBoxMethod=i.getMethod;var r=n(152),a=n(153),o=n(154),s=n(155),u=n(156),l=n(157),c=n(162),h=n(163);i.register("rect",r.default),i.register("image",r.default),i.register("circle",a.default),i.register("marker",a.default),i.register("polyline",o.default),i.register("polygon",s.default),i.register("text",u.default),i.register("path",l.default),i.register("line",c.default),i.register("ellipse",h.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(46),r=n(80);function a(t,e){return e?e-t:.14*t}e.getTextHeight=function(t,e,n){var r=1;return i.isString(t)&&(r=t.split("\n").length),r>1?e*r+a(e,n)*(r-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var n=r.getOffScreenContext(),a=0;if(i.isNil(t)||""===t)return a;if(n.save(),n.font=e,i.isString(t)&&t.includes("\n")){var o=t.split("\n");i.each(o,(function(t){var e=n.measureText(t).width;a<e&&(a=e)}))}else a=n.measureText(t).width;return n.restore(),a},e.assembleFont=function(t){var e=t.fontSize,n=t.fontFamily,i=t.fontWeight;return[t.fontStyle,t.fontVariant,i,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(164),r=/[a-z]/;function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){var e=i.default(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,o=0;o<e.length;o++){var s=e[o][0];if(r.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break}}if(!n)return e;var u=[],l=0,c=0,h=0,p=0,f=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(h=l=+d[1],p=c=+d[2],f++,u[0]=["M",l,c]),o=f;for(var g=e.length;o<g;o++){var y=e[o],v=u[o-1],m=[],x=(s=y[0]).toUpperCase();if(s!==x)switch(m[0]=x,x){case"A":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+y[6]+l,m[7]=+y[7]+c;break;case"V":m[1]=+y[1]+c;break;case"H":m[1]=+y[1]+l;break;case"M":h=+y[1]+l,p=+y[2]+c;break;default:for(var b=1,_=y.length;b<_;b++)m[b]=+y[b]+(b%2?l:c)}else m=e[o];switch(x){case"Z":l=+h,c=+p;break;case"H":m=["L",l=m[1],c];break;case"V":m=["L",l,c=m[1]];break;case"T":l=m[1],c=m[2];var M=a([v[1],v[2]],[v[3],v[4]]);m=["Q",M[0],M[1],l,c];break;case"S":l=m[m.length-2],c=m[m.length-1];var C=v.length,w=a([v[C-4],v[C-3]],[v[C-2],v[C-1]]);m=["C",w[0],w[1],m[1],m[2],l,c];break;case"M":h=m[m.length-2],p=m[m.length-1];break;default:l=m[m.length-2],c=m[m.length-1]}u.push(m)}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(165),r=n(18);e.default={box:function(t){for(var e=[],n=[],i=0;i<t.length;i++){var a=t[i];e.push(a[0]),n.push(a[1])}return r.getBBoxByArray(e,n)},length:function(t){return i.lengthOfSegment(t)},pointAt:function(t,e){return i.pointAtSegments(t,e)},pointDistance:function(t,e,n){return i.distanceAtSegment(t,e,n)},tangentAngle:function(t,e){return i.angleAtSegments(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(45),r=n(46),a=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function o(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function s(t,e,n){if(n.bubbles){var i=void 0,a=!1;if("mouseenter"===e?(i=n.fromShape,a=!0):"mouseleave"===e&&(a=!0,i=n.toShape),t.isCanvas()&&a)return;if(i&&r.isParent(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var u=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");r.each(a,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");r.each(a,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,a,o){var s=new i.default(t,e);return s.fromShape=a,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(r),s},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e,n,i=this.canvas,r=(n=e=t,e.touches&&(n="touchend"===e.type?e.changedTouches[0]:e.touches[0]),{clientX:n.clientX,clientY:n.clientY}),a=i.getPointByClient(r.clientX,r.clientY);return{x:a.x,y:a.y,clientX:r.clientX,clientY:r.clientY}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),i=this._getShape(n,e),r=this["_on"+t],a=!1;if(r)r.call(this,n,i,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,i),i&&this._emitEvent(t,e,n,i,null,i),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(a||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,i){var r=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,e,n,n,i),this._emitEvent("mouseleave",t,e,n,n,i),i&&!i.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,e,i,n,i),this._emitEvent("mouseenter",t,e,i,n,i)))},t.prototype._emitDragoverEvents=function(t,e,n,i,r){i?(i!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,i),this._emitEvent("dragenter",t,e,i,n,i)),r||this._emitEvent("dragover",t,e,i)):n&&this._emitEvent("dragleave",t,e,n,n,i),r&&this._emitEvent("dragover",t,e,i)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(e,n);i!==t&&this._emitMouseoverEvents(n,e,t,i),this.currentShape=i},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,t,i,e,!0)},t.prototype._onmousemove=function(t,e,n){var i=this.canvas,r=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,l=o.clientX-t.clientX,c=o.clientY-t.clientY;u>120||l*l+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,i,r,a){var u=this._getEventObj(t,e,n,i,r,a);if(i){u.shape=i,o(i,t,u);for(var l=i.getParent();l;)l.emitDelegation(t,u),u.propagationStopped||s(l,t,u),u.propagationPath.push(l),l=l.getParent()}else{o(this.canvas,t,u)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(116);e.Chart=i.default;var r=n(86);e.View=r.default,e.registerGeometry=r.registerGeometry;var a=n(93);e.Event=a.default;var o=n(92);e.registerComponentController=o.registerComponentController},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=e.visible,r=void 0===i||i;return n.visible=r,n}return i.__extends(e,t),e.prototype.show=function(){this.visible||(this.visible=!0,this.changeVisible(!0))},e.prototype.hide=function(){this.visible&&(this.visible=!1,this.changeVisible(!1))},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(i.__importDefault(n(79)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(23);e.Facet=r.Facet;var a={};e.getFacet=function(t){return a[i.lowerCase(t)]},e.registerFacet=function(t,e){a[i.lowerCase(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(5),a=n(39);function o(t){var e,n;switch(t){case r.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case r.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case r.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case r.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function s(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function u(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=o,e.getCircleAxisRelativeRegion=s,e.getAxisRegion=function(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=o(e):t.isPolar&&(n=s(t));var i=n.start,r=n.end;return{start:t.convert(i),end:t.convert(r)}},e.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[r.DIRECTION.RIGHT,r.DIRECTION.BOTTOM].includes(e)?1:-1:[r.DIRECTION.BOTTOM,r.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},e.isVertical=u,e.getAxisFactorByRegion=function(t,e){var n=t.start,i=t.end;return u(t)?(n.y-i.y)*(e.x-n.x)>0?1:-1:(i.x-n.x)*(n.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){return i.get(t,["components","axis",e],{})},e.getCircleAxisCenterRadius=function(t){var e=t.startAngle,n=t.endAngle;return{center:t.circleCenter,radius:t.polarRadius,startAngle:e,endAngle:n}},e.getAxisOption=function(t,e){return i.isBoolean(t)?!1!==t&&{}:i.get(t,[e])},e.getAxisDirection=function(t,e){return i.get(t,"position",e)},e.getAxisTitleText=function(t,e){return i.get(e,["title","text"],a.getName(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={}.toString;e.default=function(t,e){return i.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";function i(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(121);e.default=function(t){var e=i.default(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t},e.toRadian=function(t){return t*r},e.equals=function(t,e){return Math.abs(t-e)<=i*Math.max(1,Math.abs(t),Math.abs(e))};var i=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;var r=Math.PI/180},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=i.__importDefault(n(133)),o={};function s(t){return o[r.lowerCase(t)]}e.getInteraction=s,e.registerInteraction=function(t,e){o[r.lowerCase(t)]=e},e.createInteraction=function(t,e,n){var i=s(t);if(!i)return null;if(r.isPlainObject(i)){var o=r.mix(r.clone(i),n);return new a.default(e,o)}return new i(e,n)};var u=n(88);e.Interaction=u.default;var l=n(62);e.Action=l.Action,e.registerAction=l.registerAction,e.getActionClass=l.getActionClass},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0);e.isAutoPadding=function(t){return!r.isNumber(t)&&!r.isArray(t)},e.parsePadding=function(t){void 0===t&&(t=0);var e=r.isArray(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=i.__spreadArrays(e,e);break;case 3:e=i.__spreadArrays(e,[e[1]]);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11);e.Action=i.default;var r=n(87);e.createAction=r.createAction,e.registerAction=r.registerAction,e.getActionClass=r.getActionClass},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={},r={};e.getGeometryLabel=function(t){return i[t.toLowerCase()]},e.registerGeometryLabel=function(t,e){i[t.toLowerCase()]=e},e.getGeometryLabelLayout=function(t){return r[t.toLowerCase()]},e.registerGeometryLabelLayout=function(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(2);e.transform=r.transform,e.translate=function(t,e,n){var r=i.transform(t.getMatrix(),[["t",e,n]]);t.setMatrix(r)},e.rotate=function(t,e){var n=t.attr(),r=n.x,a=n.y,o=i.transform(t.getMatrix(),[["t",-r,-a],["r",e],["t",r,a]]);t.setMatrix(o)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var n=t.getBBox(),r=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2;t.applyToMatrix([r,a,1]);var o=i.transform(t.getMatrix(),[["t",-r,-a],["s",e,e],["t",r,a]]);t.setMatrix(o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},function(t,e,n){"use strict";function i(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeBBox=i,e.mergeArrowBBox=function(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=i(e,n.getCanvasBBox())),r&&(e=i(e,r.getCanvasBBox())),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(5),a=i.__importDefault(n(22)),o=i.__importDefault(n(95));n(99);var s=n(96),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var i=e.connectNulls,r=void 0!==i&&i;return n.connectNulls=r,n}return i.__extends(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var i=this.lastElementsMap,r=this.elementsMap,a=this.elements,u=this.container,l=this.getElementId(t),c=this.getShapeInfo(t),h=i[l];if(h){var p=h.getModel();s.isModelChange(p,c)&&(h.animate=this.animateOption,h.update(c)),delete i[l]}else{var f=this.getShapeFactory();(h=new o.default({shapeFactory:f,container:u,offscreenGroup:this.getOffscreenGroup()})).geometry=this,h.animate=this.animateOption,h.draw(c,n)}return a.push(h),r[l]=h,a},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,a=t.length;i<a;i++){var o=t[i];e.push({x:o.x,y:o.y}),n.push(o[r.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),i=n.points,r=n.data;return e.mappingData=t,e.data=r,e.isStack=!!this.getAdjust("stack"),e.points=i,e.connectNulls=this.connectNulls,e},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);function r(t){return!t&&(null==t||isNaN(t))}function a(t){if(i.isArray(t))return r(t[1].y);var e=t.y;return i.isArray(e)?r(e[0]):r(e)}e.getPathPoints=function(t,e){if(!t.length)return[];if(e){for(var n=[],i=0,r=t.length;i<r;i++){a(u=t[i])||n.push(u)}return[n]}var o=[],s=[];for(i=0,r=t.length;i<r;i++){var u;a(u=t[i])?s.length&&(o.push(s),s=[]):s.push(u)}return s.length&&o.push(s),o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.splitPoints=function(t){var e=t.x;return(i.isArray(t.y)?t.y:[t.y]).map((function(t,n){return{x:i.isArray(e)?e[n]:e,y:t}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(37),a=n(9);e.SHAPES=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],e.HOLLOW_SHAPES=["cross","tick","plus","hyphen","line"],e.drawPoints=function(t,e,n,o,s){var u=a.getStyle(e,s,!s,"r"),l=t.parsePoints(e.points),c=l[0];if(e.isStack)c=l[1];else if(l.length>1){for(var h=n.addGroup(),p=0,f=l;p<f.length;p++){var d=f[p];h.addShape({type:"marker",attrs:i.__assign(i.__assign(i.__assign({},u),{symbol:r.MarkerSymbols[o]||o}),d)})}return h}return n.addShape({type:"marker",attrs:i.__assign(i.__assign(i.__assign({},u),{symbol:r.MarkerSymbols[o]||o}),c)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(7);function o(t){return t.get("delegateObject").item}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return i.__extends(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var i=this.context.view,r=t.get("field"),o=a.getElements(i);this.setElementsStateByItem(o,r,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var i=this.context.view,o=a.getScaleByField(i,e),s=a.getElementValue(t,e);return!r.isNil(s)&&n.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,e,n,i){var a=this;r.each(t,(function(t){a.isMathItem(t,e,n)&&t.setState(a.stateName,i)}))},e.prototype.setStateEnable=function(t){var e=a.getCurrentElement(this.context);if(e)a.isElementChange(this.context)&&this.setStateByElement(e,t);else{var n=a.getDelegationObject(this.context);if(a.isList(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=a.getCurrentElement(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(i.__importDefault(n(73)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=i.__importDefault(n(11)),o=n(7),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return i.__extends(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=o.getElementsByState(t,this.stateName);r.each(n,(function(t){e.setElementState(t,!1)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(7),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return i.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(a.isMask(this.context))t=a.getMaskedElements(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var i={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},r=this.context.view;t=a.getIntersectElements(r,i)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=a.getElements(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,i=this.context.view,o=a.getSilbings(i),s=t.map((function(t){return t.getModel().data})),u=i.getXScale().field,l=i.getYScales()[0].field;r.each(o,(function(t){var i=a.getElements(t),r=i.filter((function(t){var e=t.getModel().data;return a.isInRecords(s,e,u,l)}));n.setElementsState(r,e,i)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,i=a.getSilbings(n);a.isMask(this.context)&&r.each(i,(function(n){var i=a.getElements(n),r=a.getSiblingMaskElements(e.context,n,10);r&&r.length?e.setElementsState(r,t,i):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var i=this;r.each(n,(function(n){t.includes(n)?i.setElementState(n,e):i.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=a.getSilbings(e);r.each(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(i.__importDefault(n(73)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(7),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.setStateEnable=function(t){var e=r.getCurrentElement(this.context);if(e){if(!r.isElementChange(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=r.getCurrentElement(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(i.__importDefault(n(73)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(7),o=n(77),s=i.__importDefault(n(72)),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;this.setHighlightBy(t,(function(t){return r.isMathItem(t,e,n)}),i)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",!0)):t.hasState("active")||t.setState("inactive",!0)},e.prototype.setHighlightBy=function(t,e,n){var i=this;if(n)r.each(t,(function(t){i.setElementHighlight(t,e)}));else{var o=a.getElementsByState(this.context.view,"active"),s=!0;r.each(o,(function(t){if(!e(t))return s=!1,!1})),s?this.clear():r.each(t,(function(t){e(t)&&(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,i=a.getElements(n);this.setHighlightBy(i,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;o.clearHighlight(t)},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(7);e.clearHighlight=function(t){var e=r.getElements(t);i.each(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))},e.setHighlightBy=function(t,e,n){i.each(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return i.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:"+t,n=this.context.view,i=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:i.__assign({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,i=t.y-e.y,a=this.points;r.each(a,(function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(){var t=this.getMaskAttrs();this.maskShape.attr(t)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(i.__importDefault(n(11)).default);e.default=a},function(t,e,n){"use strict";n.r(e);var i=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this._events[t]||[],a=this._events["*"]||[],o=function(i){for(var r=i.length,a=0;a<r;a++)if(i[a]){var o=i[a],s=o.callback;o.once&&(i.splice(a,1),0===i.length&&delete e._events[t],r--,a--),s.apply(e,n)}};o(r),o(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],i=n.length,r=0;r<i;r++)n[r].callback===e&&(n.splice(r,1),i--,r--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=null;e.getOffScreenContext=function(){if(!i){var t=document.createElement("canvas");t.width=1,t.height=1,i=t.getContext("2d")}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),r=n(18),a=n(97);function o(t,e,n,i){var r=1-i;return r*r*t+2*i*r*e+i*i*n}function s(t,e,n){var i=t+n-2*e;if(r.isNumberEqual(i,0))return[.5];var a=(t-e)/i;return a<=1&&a>=0?[a]:[]}function u(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function l(t,e,n,r,a,s,u){var l=o(t,n,a,u),c=o(e,r,s,u),h=i.default.pointAt(t,e,n,r,u),p=i.default.pointAt(n,r,a,s,u);return[[t,e,h.x,h.y,l,c],[l,c,p.x,p.y,a,s]]}e.default={box:function(t,e,n,i,a,u){var l=s(t,n,a)[0],c=s(e,i,u)[0],h=[t,a],p=[e,u];return void 0!==l&&h.push(o(t,n,a,l)),void 0!==c&&p.push(o(e,i,u,c)),r.getBBoxByArray(h,p)},length:function(t,e,n,i,a,o){return function t(e,n,i,a,o,s,u){if(0===u)return(r.distance(e,n,i,a)+r.distance(i,a,o,s)+r.distance(e,n,o,s))/2;var c=l(e,n,i,a,o,s,.5),h=c[0],p=c[1];return h.push(u-1),p.push(u-1),t.apply(null,h)+t.apply(null,p)}(t,e,n,i,a,o,3)},nearestPoint:function(t,e,n,i,r,s,u,l){return a.nearestPoint([t,n,r],[e,i,s],u,l,o)},pointDistance:function(t,e,n,i,a,o,s,u){var l=this.nearestPoint(t,e,n,i,a,o,s,u);return r.distance(l.x,l.y,s,u)},interpolationAt:o,pointAt:function(t,e,n,i,r,a,s){return{x:o(t,n,r,s),y:o(e,i,a,s)}},divide:function(t,e,n,i,r,a,o){return l(t,e,n,i,r,a,o)},tangentAngle:function(t,e,n,i,a,o,s){var l=u(t,n,a,s),c=u(e,i,o,s),h=Math.atan2(c,l);return r.piMod(h)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(98),r=n(98),a=n(161);function o(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}e.default=function(t){for(var e=[],n=null,s=null,u=null,l=0,c=(t=a.default(t)).length,h=0;h<c;h++){var p=t[h];s=t[h+1];var f=p[0],d={command:f,prePoint:n,params:p,startTangent:null,endTangent:null};switch(f){case"M":u=[p[1],p[2]],l=h;break;case"A":var g=i.default(n,p);d.arcParams=g}if("Z"===f)n=u,s=t[l+1];else{var y=p.length;n=[p[y-2],p[y-1]]}s&&"Z"===s[0]&&(s=t[l],e[l]&&(e[l].prePoint=n)),d.currentPoint=n,e[l]&&r.isSamePoint(n,e[l].currentPoint)&&(e[l].prePoint=d.prePoint);var v=s?[s[s.length-2],s[s.length-1]]:null;d.nextPoint=v;var m=d.prePoint;if(["L","H","V"].includes(f))d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===f){var x=[p[1],p[2]];d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-x[0],n[1]-x[1]]}else if("T"===f){x=o((M=e[h-1]).currentPoint,m);"Q"===M.command?(d.command="Q",d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-x[0],n[1]-x[1]]):(d.command="TL",d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("C"===f){var b=[p[1],p[2]],_=[p[3],p[4]];d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]}else if("S"===f){var M;b=o((M=e[h-1]).currentPoint,m),_=[p[1],p[2]];"C"===M.command?(d.command="C",d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]):(d.command="SQ",d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]])}else if("A"===f){var C=.001,w=d.arcParams||{},O=w.rx,S=void 0===O?0:O,A=w.ry,P=void 0===A?0:A,I=w.xRotation,T=void 0===I?0:I,E=w.arcFlag,L=void 0===E?0:E,j=w.sweepFlag,k=void 0===j?0:j,B=w.startAngle,D=void 0===B?0:B,F=w.endAngle,R=void 0===F?0:F;0===k&&(C*=-1);var N=T*Math.cos(D-C)+S,Y=L*Math.sin(D-C)+P;d.startTangent=[N-u[0],Y-u[1]];var G=T*Math.cos(D+R+C)+S,V=L*Math.sin(D+R-C)+P;d.endTangent=[m.x-G,m.y-V]}e.push(d)}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"parsePath",(function(){return h})),n.d(e,"catmullRom2Bezier",(function(){return p})),n.d(e,"fillPath",(function(){return g})),n.d(e,"fillPathByDiff",(function(){return x})),n.d(e,"formatPath",(function(){return M})),n.d(e,"pathIntersection",(function(){return H})),n.d(e,"parsePathArray",(function(){return q})),n.d(e,"parsePathString",(function(){return P})),n.d(e,"path2Curve",(function(){return B})),n.d(e,"path2Absolute",(function(){return E})),n.d(e,"reactPath",(function(){return w})),n.d(e,"getArcParams",(function(){return nt})),n.d(e,"path2Segments",(function(){return rt})),n.d(e,"getLineIntersect",(function(){return ot})),n.d(e,"isPolygonsIntersect",(function(){return pt})),n.d(e,"isPointInPolygon",(function(){return lt}));var i=n(20),r=n.n(i),a=n(13),o=n.n(a),s=n(19),u=n.n(s),l=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,c=/[^\s\,]+/gi;var h=function(t){var e=t||[];return o()(e)?e:u()(e)?(e=e.match(l),r()(e,(function(t,n){if((t=t.match(c))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}r()(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};function p(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}function f(t,e){var n=[],i=[];return t.length&&function t(e,r){if(1===e.length)n.push(e[0]),i.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&i.push(e[o+1]),a[o]=[(1-r)*e[o][0]+r*e[o+1][0],(1-r)*e[o][1]+r*e[o+1][1]];t(a,r)}}(t,e),{left:n,right:i.reverse()}}function d(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var r=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var a=i,o=1/n,s=0;s<n-1;s++){var u=f(a,o/(1-o*s));r.push(u.left),a=u.right}return r.push(a),r.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var a=0;a<=n-1;a++)i.push(r)}return i}function g(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<i-n;o++)t.push(t[0]);return t}for(o=0;o<i;o++){var s=Math.floor(r*o);a[s]=(a[s]||0)+1}var u=a.reduce((function(e,i,r){return r===n?e.concat(t[n]):e.concat(d(t[r],t[r+1],i))}),[]);return u.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||u.push("Z"),u}var y=n(112),v=n.n(y);function m(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}function x(t,e){var n=function(t,e){var n,i,r=t.length,a=e.length,o=0;if(0===r||0===a)return null;for(var s=[],u=0;u<=r;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=a;l++)s[0][l]={min:l};for(u=1;u<=r;u++){n=t[u-1];for(l=1;l<=a;l++){i=e[l-1],o=v()(n,i)?0:1;var c=s[u-1][l].min+1,h=s[u][l-1].min+1,p=s[u-1][l-1].min+o;s[u][l]=m(c,h,p)}}return s}(t,e),i=t.length,r=e.length,a=[],o=1,s=1;if(n[i][r]!==i){for(var u=1;u<=i;u++){var l=n[u][u].min;s=u;for(var c=o;c<=r;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(u=a.length-1;u>=0;u--)o=a[u].index,"add"===a[u].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}if((i=t.length)<r)for(u=0;u<r-i;u++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]);return t}function b(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function _(t,e,n){for(var i,r=[].concat(t),a=1/(n+1),o=b(e)[0],s=1;s<=n;s++)a*=s,0===(i=Math.floor(t.length*a))?r.unshift([o[0]*a+t[i][0]*(1-a),o[1]*a+t[i][1]*(1-a)]):r.splice(i,0,[o[0]*a+t[i][0]*(1-a),o[1]*a+t[i][1]*(1-a)]);return r}function M(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=b(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=_(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=_(n,t[i-1],2)}t[i]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=_(n,t[i-1],1)}t[i]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[i]=e[i]}return t}var C=n(0);function w(t,e,n,i,r){return r?[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]]}var O="\t\n\v\f\r \u2028\u2029",S=new RegExp("([a-z])["+O+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+O+"]*,?["+O+"]*)+)","ig"),A=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+O+"]*,?["+O+"]*","ig");function P(t){if(!t)return null;if(o()(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(S,(function(t,i,r){var a=[],o=i.toLowerCase();if(r.replace(A,(function(t,e){e&&a.push(+e)})),"m"===o&&a.length>2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else for(;a.length>=e[o]&&(n.push([i].concat(a.splice(0,e[o]))),e[o]););return""})),n}var I=/[a-z]/;function T(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function E(t){var e=P(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,i=0;i<e.length;i++){var r=e[i][0];if(I.test(r)||["V","H","T","S"].indexOf(r)>=0){n=!0;break}}if(!n)return e;var a=[],o=0,s=0,u=0,l=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(u=o=+h[1],l=s=+h[2],c++,a[0]=["M",o,s]);i=c;for(var p=e.length;i<p;i++){var f=e[i],d=a[i-1],g=[],y=(r=f[0]).toUpperCase();if(r!==y)switch(g[0]=y,y){case"A":g[1]=f[1],g[2]=f[2],g[3]=f[3],g[4]=f[4],g[5]=f[5],g[6]=+f[6]+o,g[7]=+f[7]+s;break;case"V":g[1]=+f[1]+s;break;case"H":g[1]=+f[1]+o;break;case"M":u=+f[1]+o,l=+f[2]+s;break;default:for(var v=1,m=f.length;v<m;v++)g[v]=+f[v]+(v%2?o:s)}else g=e[i];switch(y){case"Z":o=+u,s=+l;break;case"H":g=["L",o=g[1],s];break;case"V":g=["L",o,s=g[1]];break;case"T":o=g[1],s=g[2];var x=T([d[1],d[2]],[d[3],d[4]]);g=["Q",x[0],x[1],o,s];break;case"S":o=g[g.length-2],s=g[g.length-1];var b=d.length,_=T([d[b-4],d[b-3]],[d[b-2],d[b-1]]);g=["C",_[0],_[1],g[1],g[2],o,s];break;case"M":u=g[g.length-2],l=g[g.length-1];break;default:o=g[g.length-2],s=g[g.length-1]}a.push(g)}return a}var L=function(t,e,n,i,r,a,o,s,u,l){n===i&&(n+=1);var c,h,p,f,d,g=120*Math.PI/180,y=Math.PI/180*(+r||0),v=[],m=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)h=l[0],p=l[1],f=l[2],d=l[3];else{t=(c=m(t,e,-y)).x,e=c.y,s=(c=m(s,u,-y)).x,u=c.y,t===s&&e===u&&(s+=1,u+=1);var x=(t-s)/2,b=(e-u)/2,_=x*x/(n*n)+b*b/(i*i);_>1&&(n*=_=Math.sqrt(_),i*=_);var M=n*n,C=i*i,w=(a===o?-1:1)*Math.sqrt(Math.abs((M*C-M*b*b-C*x*x)/(M*b*b+C*x*x)));f=w*n*b/i+(t+s)/2,d=w*-i*x/n+(e+u)/2,h=Math.asin(Number(((e-d)/i).toFixed(9))),p=Math.asin(Number(((u-d)/i).toFixed(9))),h=t<f?Math.PI-h:h,p=s<f?Math.PI-p:p,h<0&&(h=2*Math.PI+h),p<0&&(p=2*Math.PI+p),o&&h>p&&(h-=2*Math.PI),!o&&p>h&&(p-=2*Math.PI)}var O=p-h;if(Math.abs(O)>g){var S=p,A=s,P=u;p=h+g*(o&&p>h?1:-1),s=f+n*Math.cos(p),u=d+i*Math.sin(p),v=L(s,u,n,i,r,0,o,A,P,[p,S,f,d])}O=p-h;var I=Math.cos(h),T=Math.sin(h),E=Math.cos(p),j=Math.sin(p),k=Math.tan(O/4),B=4/3*n*k,D=4/3*i*k,F=[t,e],R=[t+B*T,e-D*I],N=[s+B*j,u-D*E],Y=[s,u];if(R[0]=2*F[0]-R[0],R[1]=2*F[1]-R[1],l)return[R,N,Y].concat(v);for(var G=[],V=0,X=(v=[R,N,Y].concat(v).join().split(",")).length;V<X;V++)G[V]=V%2?m(v[V-1],v[V],y).y:m(v[V],v[V+1],y).x;return G},j=function(t,e,n,i){return[t,e,n,i,n,i]},k=function(t,e,n,i,r,a){return[1/3*t+2/3*n,1/3*e+2/3*i,1/3*r+2/3*n,1/3*a+2/3*i,r,a]};function B(t,e){var n,i=E(t),r=e&&E(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",c="",h=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(L.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(k(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(k(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(j(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(j(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(j(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(j(e.x,e.y,e.X,e.Y))}return t},p=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",r&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},f=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var d=0;d<n;d++){i[d]&&(l=i[d][0]),"C"!==l&&(s[d]=l,d&&(c=s[d-1])),i[d]=h(i[d],a,c),"A"!==s[d]&&"C"===l&&(s[d]="C"),p(i,d),r&&(r[d]&&(l=r[d][0]),"C"!==l&&(u[d]=l,d&&(c=u[d-1])),r[d]=h(r[d],o,c),"A"!==u[d]&&"C"===l&&(u[d]="C"),p(r,d)),f(i,r,a,o,d),f(r,i,o,a,d);var g=i[d],y=r&&r[d],v=g.length,m=r&&y.length;a.x=g[v-2],a.y=g[v-1],a.bx=parseFloat(g[v-4])||a.x,a.by=parseFloat(g[v-3])||a.y,o.bx=r&&(parseFloat(y[m-4])||o.x),o.by=r&&(parseFloat(y[m-3])||o.y),o.x=r&&y[m-2],o.y=r&&y[m-1]}return r?[i,r]:i}var D=function(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n},F=function(t,e,n,i,r,a,o,s,u){null===u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,f=0;f<12;f++){var d=l*c[f]+l,g=D(d,t,n,r,o),y=D(d,e,i,a,s),v=g*g+y*y;p+=h[f]*Math.sqrt(v)}return l*p},R=function(t,e,n,i,r,a,o,s){for(var u,l,c,h,p=[],f=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*r,u=-3*t+9*n-9*r+3*o,c=3*n-3*t):(l=6*e-12*i+6*a,u=-3*e+9*i-9*a+3*s,c=3*i-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&p.push(h)}else{var g=l*l-4*c*u,y=Math.sqrt(g);if(!(g<0)){var v=(-l+y)/(2*u);v>0&&v<1&&p.push(v);var m=(-l-y)/(2*u);m>0&&m<1&&p.push(m)}}for(var x,b=p.length,_=b;b--;)x=1-(h=p[b]),f[0][b]=x*x*x*t+3*x*x*h*n+3*x*h*h*r+h*h*h*o,f[1][b]=x*x*x*e+3*x*x*h*i+3*x*h*h*a+h*h*h*s;return f[0][_]=t,f[1][_]=e,f[0][_+1]=o,f[1][_+1]=s,f[0].length=f[1].length=_+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},N=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)<Math.min(r,o)||Math.min(t,n)>Math.max(r,o)||Math.max(e,i)<Math.min(a,s)||Math.min(e,i)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-i)*(r-o);if(u){var l=((t*i-e*n)*(r-o)-(t-n)*(r*s-a*o))/u,c=((t*i-e*n)*(a-s)-(e-i)*(r*s-a*o))/u,h=+l.toFixed(2),p=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,o).toFixed(2)||h>+Math.max(r,o).toFixed(2)||p<+Math.min(e,i).toFixed(2)||p>+Math.max(e,i).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},Y=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},G=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:w(t,e,n,i),vb:[t,e,n,i].join(" ")}},V=function(t,e,n,i,r,a,o,s){Object(C.isArray)(t)||(t=[t,e,n,i,r,a,o,s]);var u=R.apply(null,t);return G(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},X=function(t,e,n,i,r,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),p=u*u,f=p*u,d=t+2*u*(n-t)+p*(r-2*n+t),g=e+2*u*(i-e)+p*(a-2*i+e),y=n+2*u*(r-n)+p*(o-2*r+n),v=i+2*u*(a-i)+p*(s-2*a+i);return{x:c*t+3*h*u*n+3*l*u*u*r+f*o,y:c*e+3*h*u*i+3*l*u*u*a+f*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:l*t+u*n,y:l*e+u*i},end:{x:l*r+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},z=function(t,e,n){if(!function(t,e){return t=G(t),e=G(e),Y(e,t.x,t.y)||Y(e,t.x2,t.y)||Y(e,t.x,t.y2)||Y(e,t.x2,t.y2)||Y(t,e.x,e.y)||Y(t,e.x2,e.y)||Y(t,e.x,e.y2)||Y(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(V(t),V(e)))return n?0:[];for(var i=~~(F.apply(0,t)/8),r=~~(F.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],l=0;l<i+1;l++){var c=X.apply(0,t.concat(l/i));a.push({x:c.x,y:c.y,t:l/i})}for(l=0;l<r+1;l++){c=X.apply(0,e.concat(l/r));o.push({x:c.x,y:c.y,t:l/r})}for(l=0;l<i;l++)for(var h=0;h<r;h++){var p=a[l],f=a[l+1],d=o[h],g=o[h+1],y=Math.abs(f.x-p.x)<.001?"y":"x",v=Math.abs(g.x-d.x)<.001?"y":"x",m=N(p.x,p.y,f.x,f.y,d.x,d.y,g.x,g.y);if(m){if(s[m.x.toFixed(4)]===m.y.toFixed(4))continue;s[m.x.toFixed(4)]=m.y.toFixed(4);var x=p.t+Math.abs((m[y]-p[y])/(f[y]-p[y]))*(f.t-p.t),b=d.t+Math.abs((m[v]-d[v])/(g[v]-d[v]))*(g.t-d.t);x>=0&&x<=1&&b>=0&&b<=1&&(n?u++:u.push({x:m.x,y:m.y,t1:x,t2:b}))}}return u};function H(t,e){return function(t,e,n){var i,r,a,o,s,u,l,c,h,p;t=B(t),e=B(e);for(var f=n?0:[],d=0,g=t.length;d<g;d++){var y=t[d];if("M"===y[0])i=s=y[1],r=u=y[2];else{"C"===y[0]?(h=[i,r].concat(y.slice(1)),i=h[6],r=h[7]):(h=[i,r,i,r,s,u,s,u],i=s,r=u);for(var v=0,m=e.length;v<m;v++){var x=e[v];if("M"===x[0])a=l=x[1],o=c=x[2];else{"C"===x[0]?(p=[a,o].concat(x.slice(1)),a=p[6],o=p[7]):(p=[a,o,a,o,l,c,l,c],a=l,o=c);var b=z(h,p,n);if(n)f+=b;else{for(var _=0,M=b.length;_<M;_++)b[_].segment1=d,b[_].segment2=v,b[_].bez1=h,b[_].bez2=p;f=f.concat(b)}}}}}return f}(t,e)}var W=/,?([a-z]),?/gi;function q(t){return t.join(",").replace(W,"$1")}var U=n(32),Z=n.n(U),Q=n(33),K=n.n(Q);function $(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function J(t,e){return $(t)*$(e)?(t[0]*e[0]+t[1]*e[1])/($(t)*$(e)):1}function tt(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(J(t,e))}function et(t,e){return t[0]===e[0]&&t[1]===e[1]}function nt(t,e){var n=e[1],i=e[2],r=Z()(K()(e[3]),2*Math.PI),a=e[4],o=e[5],s=t[0],u=t[1],l=e[6],c=e[7],h=Math.cos(r)*(s-l)/2+Math.sin(r)*(u-c)/2,p=-1*Math.sin(r)*(s-l)/2+Math.cos(r)*(u-c)/2,f=h*h/(n*n)+p*p/(i*i);f>1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var d=n*n*(p*p)+i*i*(h*h),g=d?Math.sqrt((n*n*(i*i)-d)/d):1;a===o&&(g*=-1),isNaN(g)&&(g=0);var y=i?g*n*p/i:0,v=n?g*-i*h/n:0,m=(s+l)/2+Math.cos(r)*y-Math.sin(r)*v,x=(u+c)/2+Math.sin(r)*y+Math.cos(r)*v,b=[(h-y)/n,(p-v)/i],_=[(-1*h-y)/n,(-1*p-v)/i],M=tt([1,0],b),C=tt(b,_);return J(b,_)<=-1&&(C=Math.PI),J(b,_)>=1&&(C=0),0===o&&C>0&&(C-=2*Math.PI),1===o&&C<0&&(C+=2*Math.PI),{cx:m,cy:x,rx:et(t,[l,c])?0:n,ry:et(t,[l,c])?0:i,startAngle:M,endAngle:M+C,xRotation:r,arcFlag:a,sweepFlag:o}}function it(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function rt(t){for(var e=[],n=null,i=null,r=null,a=0,o=(t=h(t)).length,s=0;s<o;s++){var u=t[s];i=t[s+1];var l=u[0],c={command:l,prePoint:n,params:u,startTangent:null,endTangent:null};switch(l){case"M":r=[u[1],u[2]],a=s;break;case"A":var p=nt(n,u);c.arcParams=p}if("Z"===l)n=r,i=t[a+1];else{var f=u.length;n=[u[f-2],u[f-1]]}i&&"Z"===i[0]&&(i=t[a],e[a]&&(e[a].prePoint=n)),c.currentPoint=n,e[a]&&et(n,e[a].currentPoint)&&(e[a].prePoint=c.prePoint);var d=i?[i[i.length-2],i[i.length-1]]:null;c.nextPoint=d;var g=c.prePoint;if(["L","H","V"].includes(l))c.startTangent=[g[0]-n[0],g[1]-n[1]],c.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===l){var y=[u[1],u[2]];c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[n[0]-y[0],n[1]-y[1]]}else if("T"===l){y=it((x=e[s-1]).currentPoint,g);"Q"===x.command?(c.command="Q",c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[n[0]-y[0],n[1]-y[1]]):(c.command="TL",c.startTangent=[g[0]-n[0],g[1]-n[1]],c.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===l){var v=[u[1],u[2]],m=[u[3],u[4]];c.startTangent=[g[0]-v[0],g[1]-v[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]]}else if("S"===l){var x;v=it((x=e[s-1]).currentPoint,g),m=[u[1],u[2]];"C"===x.command?(c.command="C",c.startTangent=[g[0]-v[0],g[1]-v[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]]):(c.command="SQ",c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("A"===l){var b=.001,_=c.arcParams||{},M=_.rx,C=void 0===M?0:M,w=_.ry,O=void 0===w?0:w,S=_.xRotation,A=void 0===S?0:S,P=_.arcFlag,I=void 0===P?0:P,T=_.sweepFlag,E=void 0===T?0:T,L=_.startAngle,j=void 0===L?0:L,k=_.endAngle,B=void 0===k?0:k;0===E&&(b*=-1);var D=A*Math.cos(j-b)+C,F=I*Math.sin(j-b)+O;c.startTangent=[D-r[0],F-r[1]];var R=A*Math.cos(j+B+b)+C,N=I*Math.sin(j+B-b)+O;c.endTangent=[g.x-R,g.y-N]}e.push(c)}return e}var at=function(t,e,n){return t>=e&&t<=n};function ot(t,e,n,i){var r=n.x-t.x,a=n.y-t.y,o=e.x-t.x,s=e.y-t.y,u=i.x-n.x,l=i.y-n.y,c=o*l-s*u,h=null;if(c*c>.001*(o*o+s*s)*(u*u+l*l)){var p=(r*l-a*u)/c,f=(r*s-a*o)/c;at(p,0,1)&&at(f,0,1)&&(h={x:t.x+p*o,y:t.y+p*s})}return h}function st(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function ut(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function lt(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var a=0;a<r;a++){var o=t[a],s=t[(a+1)%r];if(ut(o,s,[e,n]))return!0;st(o[1]-n)>0!=st(s[1]-n)>0&&st(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function ct(t){for(var e=[],n=t.length,i=0;i<n-1;i++){var r=t[i],a=t[i+1];e.push({from:{x:r[0],y:r[1]},to:{x:a[0],y:a[1]}})}if(e.length>1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function ht(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function pt(t,e){if(t.length<2||e.length<2)return!1;var n,i,r=ht(t),a=ht(e);if(n=r,(i=a).minX>n.maxX||i.maxX<n.minX||i.minY>n.maxY||i.maxY<n.minY)return!1;var o=!1;if(Object(C.each)(e,(function(e){if(lt(t,e[0],e[1]))return o=!0,!1})),o)return!0;if(Object(C.each)(t,(function(t){if(lt(e,t[0],t[1]))return o=!0,!1})),o)return!0;var s=ct(t),u=ct(e),l=!1;return Object(C.each)(u,(function(t){if(function(t,e){var n=!1;return Object(C.each)(t,(function(t){if(ot(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(s,t))return l=!0,!1})),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiplyMatrix=function(t,e){var n=[],i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],p=e[0],f=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],x=e[7],b=e[8];return n[0]=p*i+f*o+d*l,n[1]=p*r+f*s+d*c,n[2]=p*a+f*u+d*h,n[3]=g*i+y*o+v*l,n[4]=g*r+y*s+v*c,n[5]=g*a+y*u+v*h,n[6]=m*i+x*o+b*l,n[7]=m*r+x*s+b*c,n[8]=m*a+x*u+b*h,n},e.multiplyVec2=function(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n},e.invert=function(t){var e=[],n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=c*o-s*l,p=-c*a+s*u,f=l*a-o*u,d=n*h+i*p+r*f;return d?(d=1/d,e[0]=h*d,e[1]=(-c*i+r*l)*d,e[2]=(s*i-r*o)*d,e[3]=p*d,e[4]=(c*n-r*u)*d,e[5]=(-s*n+r*a)*d,e[6]=f*d,e[7]=(-l*n+i*u)*d,e[8]=(o*n-i*a)*d,e):null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};e.getEngine=function(t){var e=i[t];if(!e)throw new Error("G engine '"+t+"' is not exist, please register it at first.");return e},e.registerEngine=function(t,e){i[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=i.__importDefault(n(53)),s=n(54),u=n(60),l=n(89),c=n(35),h=n(16),p=n(21),f=n(91),d=n(92),g=i.__importDefault(n(141)),y=i.__importDefault(n(93)),v=i.__importDefault(n(142)),m=n(145),x=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.id=r.uniqueId("view"),n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=d.getComponentControllerNames(),n.scalePool=new m.ScalePool,n.layoutFunc=v.default,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var i=n.createViewEvent(t);n.doPlotEvent(i),n.emit(e,i)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var i=n.createViewEvent(t);n.emit(e,i)}};var a=e.parent,o=e.canvas,s=e.backgroundGroup,u=e.middleGroup,c=e.foregroundGroup,h=e.region,p=void 0===h?{start:{x:0,y:0},end:{x:1,y:1}}:h,f=e.padding,g=e.theme,y=e.options,x=e.limitInPlot;return n.parent=a,n.canvas=o,n.backgroundGroup=s,n.middleGroup=u,n.foregroundGroup=c,n.region=p,n.padding=f,n.options=i.__assign(i.__assign({},n.options),y),n.limitInPlot=x,n.themeObject=r.isObject(g)?r.deepMix({},l.getTheme("default"),g):l.getTheme(g),n.init(),n}return i.__extends(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.coordinateController=new g.default(this.options.coordinate),this.initOptions();for(var t=this.views,e=0;e<t.length;e++)t[e].init()},e.prototype.render=function(t){void 0===t&&(t=!1),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_RENDER),this.paint(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_RENDER),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear();this.geometries=[];var i=this.controllers;for(n=0;n<i.length;n++)i[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var r=this.views;for(n=0;n<r.length;n++)r[n].clear();this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var e=this.interactions;r.each(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,i=0,o=n.length;i<o;i++){n[i].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,i=0,r=n.length;i<r;i++){n[i].changeVisible(e)}var a=this.controllers;for(i=0,r=a.length;i<r;i++){a[i].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return r.set(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return r.isFunction(e)?(r.set(this.options,["filters",t],e),this):(!e&&r.get(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return r.isBoolean(t)?r.set(this.options,["axes"],t):r.set(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return r.isBoolean(t)?r.set(this.options,["legends"],t):r.isString(t)?r.set(this.options,["legends",t],e):r.set(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return r.isString(t)?r.set(this.options,["scales",t],e):r.isObject(t)&&r.each(t,(function(t,e){r.set(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return r.set(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return r.isString(t)?r.set(this.options,"coordinate",{type:t,cfg:e}):r.set(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=s.getFacet(t);if(!n)throw new Error("facet '"+t+"' is not exist!");return this.facetInstance=new n(this,i.__assign(i.__assign({},e),{type:t})),this},e.prototype.animate=function(t){return r.set(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),r.mix(this.options,t),this.initOptions(),this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \""+t+'", please change another one.');return r.set(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=r.isObject(t)?r.deepMix({},this.themeObject,t):l.getTheme(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var i=u.createInteraction(t,this,e);return i&&(i.init(),this.interactions[t]=i),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA),this.data(t),this.paint(!0);for(var e=this.views,n=0,i=e.length;n<i;n++){e[n].changeData(t)}this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA)},e.prototype.createView=function(t){var n={data:this.options.data,scales:r.clone(this.options.scales),axes:r.clone(this.options.axes),coordinate:r.clone(this.coordinateController.getOption()),tooltip:r.clone(this.options.tooltip),legends:r.clone(this.options.legends),animate:this.options.animate,visible:this.visible},o=new e(i.__assign(i.__assign({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},t),{options:i.__assign(i.__assign({},n),r.get(t,"options",{}))}));return this.views.push(o),o},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=r.remove(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={};return this.geometries.map((function(e){var n=e.getYScale(),i=n.field;if(!t[i])return t[i]=!0,n}))},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},i=0,r=e.length;i<r;i++){var a=e[i],o="x"===t?a.getXScale():a.getYScale();o&&!n[o.field]&&(n[o.field]=o)}return n},e.prototype.getScaleByField=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getLayer=function(t){return t===a.LAYER.BG?this.backgroundGroup:t===a.LAYER.MID?this.middleGroup:(a.LAYER.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return h.isPointInCoordinate(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return r.flatten(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return p.uniq(r.flatten(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,i=this.getCoordinate(),a=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(r.each(t,(function(t,i){a[i]&&(e=a[i].scale(t)),o[i]&&(n=o[i].scale(t))})),!r.isNil(e)&&!r.isNil(n))return i.convert({x:e,y:n})},e.prototype.getController=function(t){return r.find(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],i=0,r=e.length;i<r;i++){var a=e[i],o=a.dataArray;a.sort(o);for(var s=void 0,u=0,l=o.length;u<l;u++){var c=o[u];(s=f.findDataByPoint(t,c,a))&&n.push(s)}}var h=this.views;for(i=0,r=h.length;i<r;i++){var p=h[i].getSnapRecords(t);n=n.concat(p)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,i=e.length;n<i;n++){var r=e[n];t=t.concat(r.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===r.size(e)?t:r.filter(t,(function(t,n){return Object.keys(e).every((function(i){return(0,e[i])(t[i],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,i=r.get(n,t);return r.isUndefined(i)?e:e.filter((function(e,n){return i(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.adjust(t,e)},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderLayoutRecursive(t),this.renderPaintRecursive(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderLayoutRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.doLayout();for(var e=this.views,n=0,i=e.length;n<i;n++){e[n].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){if(this.limitInPlot){var e=this.middleGroup,n=h.getCoordinateClipCfg(this.coordinateInstance),i=n.type,r=n.attrs;e.setClip({type:i,attrs:r})}this.paintGeometries(t),this.renderComponents(t);for(var a=this.views,o=0,s=a.length;o<s;o++){a[o].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,a){var o=r.get(this.options.scales,[t]),s=i.__assign(i.__assign({},o),n);return this.parent?this.parent.createScale(t,e,s,a):this.scalePool.createScale(t,e,s,a)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,i=e.length;n<i;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,i;if(this.parent){var r=this.parent.coordinateBBox;t=r.x,e=r.y,n=r.width,i=r.height}else t=0,e=0,n=this.canvas.get("width"),i=this.canvas.get("height");var a=this.region,o=a.start,s=a.end;this.viewBBox=new c.BBox(t+n*o.x,e+i*o.y,n*(s.x-o.x),i*(s.y-o.y)),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var i=t[e],r=d.getComponentController(i);r&&this.controllers.push(new r(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,i=e?e.get("origin"):null,r=new y.default(this,t,i);return r.type=n,r},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var i=this.isPointInPlot(n);if(i){var r="plot:"+e;t.type=r,this.emit(r,t),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!i?("mousemove"===e&&(t.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,t)),t.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,t)):!this.isPreMouseInPlot&&i&&("mousemove"===e&&(t.type=a.PLOT_EVENTS.MOUSE_ENTER,this.emit(a.PLOT_EVENTS.MOUSE_ENTER,t)),t.type=a.PLOT_EVENTS.ENTER,this.emit(a.PLOT_EVENTS.ENTER,t)),this.isPreMouseInPlot=i):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(t.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,t)),t.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,t),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=r.get(this.options,"scales",{}),i=this.geometries,a=0,o=i.length;a<o;a++){var s=i[a];s.scales=this.getGeometryScales();var u={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged};t?s.update(u):s.init(u)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),i=n.data,r=n.scales,a=void 0===r?{}:r,o=this.filteredData,s=0,u=t.length;s<u;s++){var l=t[s],c=a[l],h=this.getScaleKey(l);this.createScale(l,e.includes(l)?i:o,c,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync()},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var i=t[n];e[i]=this.getScaleByField(i)}return e},e.prototype.getScaleFields=function(){for(var t=[],e={},n=this.geometries,i=0;i<n.length;i++){var r=n[i].getScaleFields();p.uniq(r,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e={},n=this.geometries,i=0;i<n.length;i++){var r=n[i].getGroupFields();p.uniq(r,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=i.__spreadArrays([this.getXScale()],this.getYScales()).filter((function(t){return!!t})),n=this.getCoordinate(),a=this.options.scales;r.each(e,(function(e){var i=e.field,o=e.values,s=e.isCategory,u=e.isIdentity;if((s||u)&&o&&!r.get(a,[i,"range"])){var l=o.length,c=void 0;if(1===l)c=[.5,1];else{var p=0;c=h.isFullCircle(n)?n.isTransposed?[(p=1/l*r.get(t.theme,"widthRatio.multiplePie",1/1.3))/2,1-p/2]:[0,1-1/l]:[p=1/l/2,1-p]}e.range=c}}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var i=e[n];t?i.update():(i.clear(),i.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),i={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},r=this.geometries,a=0;a<r.length;a++){var o=r[a];o.coordinate=n,o.canvasRegion=i,e||o.animate(!1),o.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){this.getComponents()[e].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){for(var t=this.options,e=t.geometries,n=void 0===e?[]:e,i=t.interactions,r=void 0===i?[]:i,a=t.views,o=void 0===a?[]:a,s=t.annotations,u=void 0===s?[]:s,l=0;l<n.length;l++){var c=n[l];this.createGeometry(c)}for(var h=0;h<r.length;h++){var p=r[h],f=p.type,d=p.cfg;this.interaction(f,d)}for(var g=0;g<o.length;g++){var y=o[g];this.createView(y)}for(var v=this.getController("annotation"),m=0;m<u.length;m++){var x=u[m];v.annotation(x)}},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,i=void 0===n?{}:n;if(this[e]){var a=this[e](i);r.each(t,(function(t,e){r.isFunction(a[e])&&a[e](t)}))}},e.prototype.getScaleKey=function(t){return this.id+"-"+t},e}(o.default);e.View=x,e.registerGeometry=function(t,e){x.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=i.__assign({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),r=new e(n);return this.geometries.push(r),r}},e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1).__importDefault(n(134)),r=n(0),a={};e.createAction=function(t,e){var n=a[t],i=null;return n&&((i=new(0,n.ActionClass)(e,n.cfg)).name=t,i.init()),i},e.getActionClass=function(t){var e=a[t];return r.get(e,"ActionClass")},e.registerAction=function(t,e,n){a[t]={ActionClass:e,cfg:n}},e.unregisterAction=function(t){delete a[t]},e.createCallbackAction=function(t,e){var n=new i.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(90),a=n(140),o={default:r.createThemeByStylesheet(a.antvLight)};e.getTheme=function(t){return i.get(o,i.lowerCase(t),o.default)},e.registerTheme=function(t,e){o[i.lowerCase(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=i.__importStar(n(139)),a=n(2),o=n(0),s=n(14);e.createThemeByStylesheet=function(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},u={title:{autoRotate:!0,position:"center",style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},offset:32},label:{autoRotate:!0,autoHide:!0,offset:16,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0},l={line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},c={title:null,marker:{symbol:"circle",style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},flipPage:!0,animate:!1};return{defaultColor:t.brandColor,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var i=s.getAngle(t.getModel(),e),r=(i.startAngle+i.endAngle)/2,o=7.5*Math.cos(r),u=7.5*Math.sin(r);return{matrix:a.transform(null,[["t",o,u]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:i.__assign(i.__assign({},n.line.default),{lineDash:[1,1]})},active:{style:i.__assign(i.__assign({},n.line.active),{lineDash:[1,1]})},inactive:{style:i.__assign(i.__assign({},n.line.inactive),{lineDash:[1,1]})},selected:{style:i.__assign(i.__assign({},n.line.selected),{lineDash:[1,1]})}},dash:{default:{style:i.__assign(i.__assign({},n.line.default),{lineDash:[5.5,1]})},active:{style:i.__assign(i.__assign({},n.line.active),{lineDash:[5.5,1]})},inactive:{style:i.__assign(i.__assign({},n.line.inactive),{lineDash:[5.5,1]})},selected:{style:i.__assign(i.__assign({},n.line.selected),{lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}}},components:{axis:{top:o.deepMix({},u,{position:"top",grid:null,title:null}),bottom:o.deepMix({},u,{position:"bottom",grid:null,title:null}),left:o.deepMix({},u,{position:"left",label:{offset:8},title:null,line:null,tickLine:null,grid:l}),right:o.deepMix({},u,{position:"right",label:{offset:8},title:null,line:null,tickLine:null,grid:l}),circle:o.deepMix({},u,{title:null,label:{offset:8},grid:o.deepMix({},l,{line:{type:"line"}})}),radius:o.deepMix({},u,{title:null,label:{offset:8},grid:o.deepMix({},l,{line:{type:"circle"}})})},legend:{right:o.deepMix({},c,{layout:"vertical"}),left:o.deepMix({},c,{layout:"vertical"}),top:o.deepMix({},c,{layout:"horizontal"}),bottom:o.deepMix({},c,{layout:"horizontal"}),continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e[""+r.CONTAINER_CLASS]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:t.tooltipContainerBorderRadius+"px",color:t.tooltipTextFillColor,fontSize:t.tooltipTextFontSize+"px",fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},e[""+r.TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},e[""+r.LIST_CLASS]={margin:0,listStyleType:"none",padding:0},e[""+r.LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e[""+r.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e[""+r.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},pieLabels:{labelHeight:14,offset:30,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(39);function s(t,e,n){var i=n.translate(t),a=n.translate(e);return r.isNumberEqual(i,a)}function u(t,e,n){var i=n.coordinate,o=n.getYScale(),s=o.field,u=i.invert(e),l=o.invert(u.y);return r.find(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=l&&e[s][1]>=l}))||t[t.length-1]}var l=r.memoize((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,a=0;a<n;a++){var o=e[a],s=t.translate(o);s<i&&(i=s),s>r&&(r=s)}return(r-i)/(n-1)}));function c(t){for(var e,n=0,i=function(t){var e=r.values(t.attributes);return r.filter(e,(function(t){return r.contains(a.GROUP_ATTRS,t.type)}))}(t);n<i.length;n++){var o=i[n],s=o.getScale(o.type);if(s&&s.isLinear){e=s;break}}var u=t.getXScale(),l=t.getYScale();return e||l||u}e.findDataByPoint=function(t,e,n){if(0===e.length)return null;var i=n.type,o=n.getXScale(),c=n.getYScale(),h=o.field,p=c.field,f=null;if("heatmap"===i||"point"===i){for(var d=n.coordinate.invert(t),g=o.invert(d.x),y=c.invert(d.y),v=1/0,m=0;m<e.length;m++){var x=e[m],b=x[a.FIELD_ORIGIN],_=Math.pow(b[h]-g,2)+Math.pow(b[p]-y,2);_<v&&(v=_,f=x)}return f}var M=e[0],C=e[e.length-1],w=function(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,a=r[r.length-1],o=r[0],s=n.invert(t).x;return n.isPolar&&s>(1+a)/2&&(s=o),i.translate(i.invert(s))}(t,n),O=M[a.FIELD_ORIGIN][h],S=M[a.FIELD_ORIGIN][p],A=C[a.FIELD_ORIGIN][h],P=c.isLinear&&r.isArray(S);if(r.isArray(O)){for(m=0;m<e.length;m++){b=(k=e[m])[a.FIELD_ORIGIN];if(o.translate(b[h][0])<=w&&o.translate(b[h][1])>=w){if(!P){f=k;break}r.isArray(f)||(f=[]),f.push(k)}}r.isArray(f)&&(f=u(f,t,n))}else{var I=void 0;if(o.isLinear||"timeCat"===o.type){if((w>o.translate(A)||w<o.translate(O))&&(w>o.max||w<o.min))return null;for(var T=0,E=e.length-1,L=void 0;T<=E;){var j=e[L=Math.floor((T+E)/2)][a.FIELD_ORIGIN][h];if(s(j,w,o))return e[L];o.translate(j)<=o.translate(w)?(T=L+1,C=e[L],I=e[L+1]):(0===E&&(C=e[0]),E=L-1)}}else{for(m=0;m<e.length;m++){var k;if(s((b=(k=e[m])[a.FIELD_ORIGIN])[h],w,o)){if(!P){f=k;break}r.isArray(f)||(f=[]),f.push(k)}else o.translate(b[h])<=w&&(C=k,I=e[m+1])}r.isArray(f)&&(f=u(f,t,n))}C&&I&&Math.abs(o.translate(C[a.FIELD_ORIGIN][h])-w)>Math.abs(o.translate(I[a.FIELD_ORIGIN][h])-w)&&(C=I)}var B=l(n.getXScale());return!f&&Math.abs(o.translate(C[a.FIELD_ORIGIN][h])-w)<=B/2&&(f=C),f},e.getTooltipItems=function(t,e,n){void 0===n&&(n="");var s,u=t[a.FIELD_ORIGIN],l=function(t,e,n){var i=n;n||(i=e.getAttribute("position").getFields()[0]);var a=e.scales;return a[i]?a[i].getText(t[i]):r.hasKey(t,i)?t[i]:i}(u,e,n),h=e.tooltipOption,p=e.theme.defaultColor,f=[];function d(e,n){if(!r.isNil(n)&&""!==n){var i={title:l,data:u,mappingData:t,name:e||l,value:n,color:t.color||p,marker:!0};f.push(i)}}if(r.isObject(h)){var g=h.fields,y=h.callback;if(y){var v=g.map((function(e){return t[a.FIELD_ORIGIN][e]})),m=y.apply(void 0,v),x=i.__assign({data:t[a.FIELD_ORIGIN],mappingData:t,title:l,color:t.color||p,marker:!0},m);f.push(x)}else for(var b=e.scales,_=0,M=g;_<M.length;_++){var C=M[_];if(!r.isNil(u[C])){var w=b[C];d(o.getName(w),s=w.getText(u[C]))}}}else{var O=c(e);r.isNil(u[O.field])||(s=function(t,e){var n=t[e.field];return r.isArray(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(u,O),d(function(t,e){var n,i=e.getGroupScales();if(i.length&&(n=i[0]),n){var r=n.field;return n.getText(t[r])}var a=c(e);return o.getName(a)}(u,e),s))}return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};e.registerComponentController=function(t,e){i[t]=e},e.unregisterComponentController=function(t){delete i[t]},e.getComponentControllerNames=function(){return Object.keys(i)},e.getComponentController=function(t){return i[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};e.getAnimation=function(t){return i[t.toLowerCase()]},e.registerAnimation=function(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(26),o=i.__importDefault(n(53)),s=n(14),u=n(146),l=function(t){function e(e){var n=t.call(this,e)||this;n.states=[];var i=e.shapeFactory,r=e.container,a=e.offscreenGroup,o=e.visible,s=void 0===o||o;return n.shapeFactory=i,n.container=r,n.offscreenGroup=a,n.visible=s,n}return i.__extends(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var i=this.getOffscreenGroup(),r=e.drawShape(this.shapeType,t,i);r.cfg.data=this.data,r.cfg.origin=t,this.syncShapeStyle(n,r,"",this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var r=this.getAnimateCfg("leave");r?a.doAnimate(n,r,{coordinate:e.coordinate,toAttrs:i.__assign({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,i=this,r=i.states,a=i.shapeFactory,o=i.model,s=i.shape,l=i.shapeType,c=r.indexOf(t);if(e){if(c>-1)return;r.push(t),"active"!==t&&"selected"!==t||s.toFront()}else{if(-1===c)return;r.splice(c,1),"active"!==t&&"selected"!==t||s.toBack()}var h=a.drawShape(l,o,this.getOffscreenGroup());r.length?r.forEach((function(t){n.syncShapeStyle(s,h,t,null)})):this.syncShapeStyle(s,h,"reset",null),h.remove(!0);var p={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",p),u.propagationDelegate(this.shape,"statechange",p)},e.prototype.clearStates=function(){var t=this,e=this.states;r.each(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,i=e.stateOption,a=n.defaultShapeType,o=n.theme[t]||n.theme[a];this.statesStyle=r.deepMix({},o,i)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=r.get(n,[t,"style"],{}),a=i[e]||i;return r.isFunction(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this.animate;return e?e[t]:null},e.prototype.drawShape=function(t,e){void 0===e&&(e=!1);var n=this.shapeFactory,o=this.container,s=this.shapeType;if(this.shape=n.drawShape(s,t,o),this.shape){this.setShapeInfo(this.shape,t);var u=this.shape.cfg.name;u?r.isString(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=e?"enter":"appear",c=this.getAnimateCfg(l);c&&a.doAnimate(this.shape,c,{coordinate:n.coordinate,toAttrs:i.__assign({},this.shape.attr())})}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,i,o){if(void 0===n&&(n=""),void 0===o&&(o=0),t.isGroup())for(var u=t.get("children"),l=e.get("children"),c=0;c<u.length;c++)this.syncShapeStyle(u[c],l[c],n,i,o+c);else{if(n&&"reset"!==n){var h=t.get("name");r.isArray(h)&&(h=h[1]);var p=this.getStateStyle(n,h||o);e.attr(p)}var f=s.getReplaceAttrs(t,e);this.animate?i?a.doAnimate(t,i,{coordinate:this.shapeFactory.coordinate,toAttrs:f,shapeModel:this.model}):n?(t.stopAnimate(),t.animate(f,{duration:300})):t.attr(f):t.attr(f)}},e.prototype.getShapeType=function(t){var e=r.get(t,"shape");return r.isArray(e)?e[0]:e},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.isModelChange=function(t,e){return i.some(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!i.isEqual(t[n],e[n])}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18);e.nearestPoint=function(t,e,n,r,a){for(var o,s=.005,u=1/0,l=[n,r],c=0;c<=20;c++){var h=.05*c,p=[a.apply(null,t.concat([h])),a.apply(null,e.concat([h]))];(y=i.distance(l[0],l[1],p[0],p[1]))<u&&(o=h,u=y)}if(0===o)return{x:t[0],y:e[0]};if(1===o){var f=t.length;return{x:t[f-1],y:e[f-1]}}for(u=1/0,c=0;c<32&&!(s<1e-4);c++){var d=o-s,g=o+s,y=(p=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))],i.distance(l[0],l[1],p[0],p[1]));if(d>=0&&y<u)o=d,u=y;else{var v=[a.apply(null,t.concat([g])),a.apply(null,e.concat([g]))],m=i.distance(l[0],l[1],v[0],v[1]);g<=1&&m<u?(o=g,u=m):s*=.5}}return{x:a.apply(null,t.concat([o])),y:a.apply(null,e.concat([o]))}},e.snapLength=function(t,e){for(var n=0,r=t.length,a=0;a<r;a++){var o=t[a],s=e[a],u=t[(a+1)%r],l=e[(a+1)%r];n+=i.distance(o,s,u,l)}return n/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(32),r=n(33);function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return a(t)*a(e)?(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e)):1}function s(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function u(t,e){return t[0]===e[0]&&t[1]===e[1]}e.isSamePoint=u,e.default=function(t,e){var n=e[1],a=e[2],l=i.default(r.default(e[3]),2*Math.PI),c=e[4],h=e[5],p=t[0],f=t[1],d=e[6],g=e[7],y=Math.cos(l)*(p-d)/2+Math.sin(l)*(f-g)/2,v=-1*Math.sin(l)*(p-d)/2+Math.cos(l)*(f-g)/2,m=y*y/(n*n)+v*v/(a*a);m>1&&(n*=Math.sqrt(m),a*=Math.sqrt(m));var x=n*n*(v*v)+a*a*(y*y),b=x?Math.sqrt((n*n*(a*a)-x)/x):1;c===h&&(b*=-1),isNaN(b)&&(b=0);var _=a?b*n*v/a:0,M=n?b*-a*y/n:0,C=(p+d)/2+Math.cos(l)*_-Math.sin(l)*M,w=(f+g)/2+Math.sin(l)*_+Math.cos(l)*M,O=[(y-_)/n,(v-M)/a],S=[(-1*y-_)/n,(-1*v-M)/a],A=s([1,0],O),P=s(O,S);return o(O,S)<=-1&&(P=Math.PI),o(O,S)>=1&&(P=0),0===h&&P>0&&(P-=2*Math.PI),1===h&&P<0&&(P+=2*Math.PI),{cx:C,cy:w,rx:u(t,[d,g])?0:n,ry:u(t,[d,g])?0:a,startAngle:A,endAngle:A+P,xRotation:l,arcFlag:c,sweepFlag:h}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(6),a=n(69),o=n(9),s=n(34),u=n(70),l=n(100);function c(t,e,n,i){var r;return n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),r=s.getSplinePath(t,!1,i)):(r=s.getLinePath(t,!1),e&&r.push(["Z"])),r}function h(t,e,n,r,a){var o=t[0];return i.isArray(o.y)?function(t,e,n,r,a){var o=[],s=[];i.each(t,(function(t){var e=u.splitPoints(t);o.push(e[1]),s.push(e[0])}));var l=c(o,e,r,a),h=c(s,e,r,a);return n?l:l.concat(h)}(t,e,n,r,a):c(t,e,r,a)}var p=r.registerShapeFactory("line",{defaultShapeType:"line"});i.each(["line","dot","dash","smooth"],(function(t){r.registerShape("line",t,{draw:function(e,n){var i,r="smooth"===t;if(r){var s=this.coordinate,u=s.start,l=s.end;i=[[u.x,l.y],[l.x,u.y]]}var c=function(t,e,n){for(var i=t.isStack,r=t.connectNulls,s=t.isInCircle,u=a.getPathPoints(t.points,r),l=[],c=0,p=u.length;c<p;c++){var f=u[c];l=l.concat(h(f,s,i,e,n))}var d=o.getStyle(t,!0,!1,"lineWidth");return d.path=l,d}(e,r,i);return n.addShape({type:"path",attrs:c,name:"line"})},getMarker:function(e){return l.getLineMarker(e,t)}})})),e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};e.getLineMarker=function(t,e){var n=t.color;return{symbol:i[e],style:{lineWidth:2,r:6,stroke:n}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(16);e.getDefaultSize=function(t){var e=t.theme,n=t.coordinate,a=t.getXScale(),o=a.values,s=t.beforeMappingData,u=o.length;if(a.isLinear&&o.length>1){o.sort();var l=function(t,e){var n=t.length,r=t;i.isString(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var a=r[1]-r[0],o=2;o<n;o++){var s=r[o]-r[o-1];a>s&&(a=s)}return a}(o,a);u=(a.max-a.min)/l,o.length>u&&(u=o.length)}var c=a.range,h=1/u,p=1;n.isPolar?p=n.isTransposed&&u>1?e.multiplePieWidthRatio:e.roseWidthRatio:(a.isLinear&&(h*=c[1]-c[0]),p=e.columnWidthRatio),h*=p,t.getAdjust("dodge")&&(h/=function(t,e){if(e){var n=i.flatten(t);return i.valuesOfKey(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy));var f=e.maxColumnWidth,d=e.minColumnWidth,g=r.getXDimensionLength(t.coordinate);if(f){var y=f/g;h>y&&(h=y)}if(d){var v=d/g;h<v&&(h=v)}return h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.getCPath=function(t,e){var n=[];n.push({x:t.x,y:1*t.y/2+1*e.y/2}),n.push({x:e.x,y:1*t.y/2+1*e.y/2}),n.push(e);var r=["C"];return i.each(n,(function(t){r.push(t.x,t.y)})),r},e.getQPath=function(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return i.each(n,(function(t){r.push(t.x,t.y)})),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(16),o=n(16),s=i.__importDefault(n(41)),u=Math.PI/2,l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=this.getDefaultOffset(t.offset);e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var i,r=1,a=t.content[n];this.isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(r=-1),i=this.getArcPoint(e,n));var o=this.getDefaultOffset(t.offset)*r,s=this.getPointAngle(i),u=t.labelEmit,l=this.getCirclePoint(s,o,i,u);return 0===l.r?l.content="":(l.content=a,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,o,u):t.rotate,l.start={x:i.x,y:i.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),r.isArray(t.x)||r.isArray(t.y)?{x:r.isArray(t.x)?t.x[e]:t.x,y:r.isArray(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return o.getAngleByPoint(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var o=this.getCoordinate(),s=o.getCenter(),u=a.getDistanceToCenter(o,n);if(0===u)return i.__assign(i.__assign({},s),{r:u});var l=t;o.isTransposed&&u>e&&!r?l=t+2*Math.asin(e/(2*u)):u+=e;return{x:s.x+u*Math.cos(l),y:s.y+u*Math.sin(l),r:u}},e.prototype.getLabelRotate=function(t,e,n){var i=t+u;return n&&(i-=u),i&&(i>u?i-=Math.PI:i<-u&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return r.each(t,(function(t){i.x+=t.x,i.y+=t.y})),i.x/=n,i.y/=n,i=e.convert(i)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5);function r(t){return t===i.DIRECTION.LEFT?i.DIRECTION.RIGHT:t===i.DIRECTION.RIGHT?i.DIRECTION.LEFT:t}function a(t){return t===i.DIRECTION.TOP?i.DIRECTION.BOTTOM:t===i.DIRECTION.BOTTOM?i.DIRECTION.TOP:t}e.directionToPosition=function(t,e,n){return n===i.DIRECTION.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===i.DIRECTION.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===i.DIRECTION.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===i.DIRECTION.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===i.DIRECTION.TOP_LEFT||n===i.DIRECTION.LEFT_TOP?[t.tl.x,t.tl.y]:n===i.DIRECTION.TOP_RIGHT||n===i.DIRECTION.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===i.DIRECTION.BOTTOM_LEFT||n===i.DIRECTION.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===i.DIRECTION.BOTTOM_RIGHT||n===i.DIRECTION.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]},e.getTranslateDirection=function(t,e){var n=t;return n=function(t,e){var n=t;return e.isReflect("x")&&(n=r(n)),e.isReflect("y")&&(n=a(n)),n}(n=function(t,e){var n=e.matrix[0],i=e.matrix[4],o=t;return n<0&&(o=r(o)),i<0&&(o=a(o)),o}(n=function(t,e){if(e.isTransposed)switch(t){case i.DIRECTION.BOTTOM:return i.DIRECTION.LEFT;case i.DIRECTION.LEFT:return i.DIRECTION.BOTTOM;case i.DIRECTION.RIGHT:return i.DIRECTION.TOP;case i.DIRECTION.TOP:return i.DIRECTION.RIGHT}return t}(n,e),e),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0);function a(t,e){if(!t)return!1;return!!t.className&&(r.isNil(t.className.baseVal)?t.className:t.className.baseVal).includes(e)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return i.__extends(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var i=this.timeStamp,a=+new Date;if(a-i>16){var o=this.location,s={x:e.x,y:e.y};o&&r.isEqual(o,s)||this.showTooltip(n,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view;if(!t.isTooltipLocked()){var e=this.context.event,n=r.get(e,["gEvent","originalEvent","toElement"]);n&&(a(n,"g2-tooltip")||function(t,e){for(var n=t.parentNode,i=!1;n&&n!==document.body;){if(a(n,e)){i=!0;break}n=n.parentNode}return i}(n,"g2-tooltip"))||(this.hideTooltip(t),this.location=null)}},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(i.__importDefault(n(11)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return i.__extends(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:r.head(t),end:r.last(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(i.__importDefault(n(78)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(r.each(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(i.__importDefault(n(78)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=i.__importDefault(n(11)),a=n(7);function o(t,e,n,i){var r=Math.min(n[e],i[e]),a=Math.max(n[e],i[e]),o=t.range,s=o[0],u=o[1];if(r<s&&(r=s),a>u&&(a=u),r===u&&a===u)return null;var l=t.invert(r),c=t.invert(a);if(t.isCategory){var h=t.values.indexOf(l),p=t.values.indexOf(c),f=t.values.slice(h,p+1);return function(t){return f.includes(t)}}return function(t){return t>=l&&t<=c}}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return i.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(a.isMask(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context.view,r=i.getCoordinate(),s=r.invert(e),u=r.invert(t);if(this.hasDim("x")){var l=i.getXScale(),c=o(l,"x",s,u);this.filterView(i,l.field,c)}if(this.hasDim("y")){var h=i.getYScales()[0];c=o(h,"y",s,u);this.filterView(i,h.field,c)}this.reRender(i)}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t)},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t){t.render(!0)},e}(r.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(62),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return i.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(r.Action);e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"registerAttribute",(function(){return y})),n.d(e,"getAttribute",(function(){return g})),n.d(e,"Attribute",(function(){return a})),n.d(e,"Color",(function(){return u})),n.d(e,"Opacity",(function(){return l})),n.d(e,"Position",(function(){return c})),n.d(e,"Shape",(function(){return h})),n.d(e,"Size",(function(){return p})),n.d(e,"Scale",(function(){return f.Scale}));var i=n(0),r=function(t,e){return Object(i.isString)(e)?e:t.invert(t.scale(e))},a=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,i)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),i=e*t-n,r=this.values[n];return r+((n===e?r:this.values[n+1])-r)*i},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r+=1)i.push(e[r]);return i},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var i=t.scales[n];return"identity"===i.type?i.values[0]:t._getAttributeValue(i,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,r=void 0===n?"base":n,a=t.names,o=void 0===a?[]:a,s=t.scales,u=void 0===s?[]:s,l=t.values,c=void 0===l?[]:l,h=t.callback;this.type=r,this.scales=u,this.values=c,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var r=h.apply(void 0,t);if(!Object(i.isNil)(r))return[r]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var i=t.scale(e);return this.getLinearValue(i)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(i.isArray)(t)?t.map((function(t){return r(e,t)})):r(e,t)},t}(),o=n(1),s=n(38),u=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(i.isString)(n.values)&&(n.linear=!0),n.gradient=s.default.gradient(n.values),n}return Object(o.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(a),l=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(o.__extends)(e,t),e}(a),c=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(o.__extends)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],a=n[1];return Object(i.isNil)(t)||Object(i.isNil)(e)?[]:[Object(i.isArray)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),Object(i.isArray)(e)?e.map((function(t){return a.scale(t)})):a.scale(e)]},e}(a),h=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(o.__extends)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(a),p=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(o.__extends)(e,t),e}(a),f=n(27),d={},g=function(t){return d[t.toLowerCase()]},y=function(t,e){if(g(t))throw new Error("Attribute type '"+t+"' existed.");d[t.toLowerCase()]=e};y("Color",u),y("Opacity",l),y("Position",c),y("Shape",h),y("Size",p)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=r,e.clone=function(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=a,e.fromValues=o,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=s,e.multiply=u,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t},e.distance=c,e.squaredDistance=h,e.squaredLength=p,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=f,e.dot=d,e.cross=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=r*u-a*s,t[1]=a*o-i*u,t[2]=i*s-r*o,t},e.lerp=function(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t},e.hermite=function(t,e,n,i,r,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+i[0]*l+r[0]*c,t[1]=e[1]*s+n[1]*u+i[1]*l+r[1]*c,t[2]=e[2]*s+n[2]*u+i[2]*l+r[2]*c,t},e.bezier=function(t,e,n,i,r,a){var o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,h=3*u*o,p=u*a;return t[0]=e[0]*l+n[0]*c+i[0]*h+r[0]*p,t[1]=e[1]*l+n[1]*c+i[1]*h+r[1]*p,t[2]=e[2]*l+n[2]*c+i[2]*h+r[2]*p,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var i=n[0],r=n[1],a=n[2],o=n[3],s=e[0],u=e[1],l=e[2],c=r*l-a*u,h=a*s-i*l,p=i*u-r*s,f=r*p-a*h,d=a*c-i*p,g=i*h-r*c,y=2*o;return c*=y,h*=y,p*=y,f*=2,d*=2,g*=2,t[0]=s+c+f,t[1]=u+h+d,t[2]=l+p+g,t},e.rotateX=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0],a[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),a[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),a[1]=r[1],a[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),a[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),a[2]=r[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=o(t[0],t[1],t[2]),i=o(e[0],e[1],e[2]);f(n,n),f(i,i);var r=d(n,i);return r>1?0:r<-1?Math.PI:Math.acos(r)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))};var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(59));function r(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function a(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function o(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function h(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function p(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function f(t,e){var n=e[0],i=e[1],r=e[2],a=n*n+i*i+r*r;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function d(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}var g;e.sub=s,e.mul=u,e.div=l,e.dist=c,e.sqrDist=h,e.len=a,e.sqrLen=p,e.forEach=(g=r(),function(t,e,n,i,r,a){var o=void 0,s=void 0;for(e||(e=3),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,o=n;o<s;o+=e)g[0]=t[o],g[1]=t[o+1],g[2]=t[o+2],r(g,g,a),t[o]=g[0],t[o+1]=g[1],t[o+2]=g[2];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(129),r=n(130),a=n(19),o=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(a.default(t)||a.default(e))return!1;if(r.default(t)||r.default(e)){if(t.length!==e.length)return!1;for(var n=!0,s=0;s<t.length&&(n=o(t[s],e[s]));s++);return n}if(i.default(t)||i.default(e)){var u=Object.keys(t),l=Object.keys(e);if(u.length!==l.length)return!1;for(n=!0,s=0;s<u.length&&(n=o(t[u[s]],e[u[s]]));s++);return n}return!1};e.default=o},function(t,e,n){"use strict";(function(t){var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i};Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,n){this.name=t,this.version=e,this.os=n};e.BrowserInfo=i;var r=function(e){this.version=e,this.name="node",this.os=t.platform};e.NodeInfo=r;var a=function(){this.bot=!0,this.name="bot",this.version=null,this.os=null};e.BotInfo=a;var o=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([0-9\.]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],s=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/],["Search Bot",/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/]];function u(t){var e=""!==t&&o.reduce((function(e,n){var i=n[0],r=n[1];if(e)return e;var a=r.exec(t);return!!a&&[i,a]}),!1);if(!e)return null;var r=e[0],s=e[1];if("searchbot"===r)return new a;var u=s[1]&&s[1].split(/[._]/).slice(0,3);return u?u.length<3&&(u=n(u,function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-u.length))):u=[],new i(r,u.join("."),l(t))}function l(t){for(var e=0,n=s.length;e<n;e++){var i=s[e],r=i[0];if(i[1].test(t))return r}return null}function c(){return void 0!==t&&t.version?new r(t.version.slice(1)):null}e.detect=function(t){return t?u(t):"undefined"!=typeof navigator?u(navigator.userAgent):c()},e.parseUserAgent=u,e.detectOS=l,e.getNodeVersion=c}).call(this,n(167))},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(15),a=n(150),o=n(90);r.registerTheme("dark",o.createThemeByStylesheet(a.antvDark));var s=i.__importStar(n(263)),u=i.__importStar(n(264)),l=n(15);l.registerEngine("canvas",s),l.registerEngine("svg",u);var c=n(15),h=i.__importDefault(n(169)),p=i.__importDefault(n(171)),f=i.__importDefault(n(173)),d=i.__importDefault(n(174)),g=i.__importDefault(n(176)),y=i.__importDefault(n(68)),v=i.__importDefault(n(177)),m=i.__importDefault(n(179)),x=i.__importDefault(n(181));c.registerGeometry("Polygon",m.default),c.registerGeometry("Interval",d.default),c.registerGeometry("Schema",x.default),c.registerGeometry("Path",y.default),c.registerGeometry("Point",v.default),c.registerGeometry("Line",g.default),c.registerGeometry("Area",h.default),c.registerGeometry("Edge",p.default),c.registerGeometry("Heatmap",f.default),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199);var b=n(15),_=i.__importDefault(n(41)),M=i.__importDefault(n(200)),C=i.__importDefault(n(201)),w=i.__importDefault(n(103));b.registerGeometryLabel("base",_.default),b.registerGeometryLabel("interval",M.default),b.registerGeometryLabel("pie",C.default),b.registerGeometryLabel("polar",w.default);var O=n(15),S=n(202),A=n(203),P=n(204),I=n(205);O.registerGeometryLabelLayout("overlap",I.overlap),O.registerGeometryLabelLayout("distribute",S.distribute),O.registerGeometryLabelLayout("fixed-overlap",I.fixedOverlap),O.registerGeometryLabelLayout("limit-in-shape",P.limitInShape),O.registerGeometryLabelLayout("limit-in-canvas",A.limitInCanvas);var T=n(206),E=n(207),L=n(209),j=n(210),k=n(211),B=n(212),D=n(215),F=n(216),R=n(15);R.registerAnimation("fade-in",T.fadeIn),R.registerAnimation("fade-out",T.fadeOut),R.registerAnimation("grow-in-x",E.growInX),R.registerAnimation("grow-in-xy",E.growInXY),R.registerAnimation("grow-in-y",E.growInY),R.registerAnimation("scale-in-x",k.scaleInX),R.registerAnimation("scale-in-y",k.scaleInY),R.registerAnimation("wave-in",D.waveIn),R.registerAnimation("zoom-in",F.zoomIn),R.registerAnimation("zoom-out",F.zoomOut),R.registerAnimation("position-update",j.positionUpdate),R.registerAnimation("sector-path-update",B.sectorPathUpdate),R.registerAnimation("path-in",L.pathIn);var N=n(15),Y=i.__importDefault(n(217)),G=i.__importDefault(n(218)),V=i.__importDefault(n(219)),X=i.__importDefault(n(220)),z=i.__importDefault(n(221)),H=i.__importDefault(n(222));N.registerFacet("rect",z.default),N.registerFacet("mirror",X.default),N.registerFacet("list",G.default),N.registerFacet("matrix",V.default),N.registerFacet("circle",Y.default),N.registerFacet("tree",H.default);var W=n(15),q=i.__importDefault(n(223)),U=i.__importDefault(n(224)),Z=i.__importDefault(n(226)),Q=i.__importDefault(n(229)),K=i.__importDefault(n(230));W.registerComponentController("axis",U.default),W.registerComponentController("legend",Z.default),W.registerComponentController("tooltip",K.default),W.registerComponentController("annotation",q.default),W.registerComponentController("slider",Q.default);var $=n(15),J=i.__importDefault(n(231)),tt=i.__importDefault(n(232)),et=i.__importDefault(n(105)),nt=i.__importDefault(n(233)),it=i.__importDefault(n(234)),rt=i.__importDefault(n(235)),at=i.__importDefault(n(236)),ot=i.__importDefault(n(76)),st=i.__importDefault(n(237)),ut=i.__importDefault(n(238)),lt=i.__importDefault(n(239)),ct=i.__importDefault(n(240)),ht=i.__importDefault(n(241)),pt=i.__importDefault(n(242)),ft=i.__importDefault(n(243)),dt=i.__importDefault(n(244)),gt=i.__importDefault(n(245)),yt=i.__importDefault(n(247)),vt=i.__importDefault(n(248)),mt=i.__importDefault(n(249)),xt=i.__importDefault(n(250)),bt=i.__importDefault(n(107)),_t=i.__importDefault(n(106)),Mt=i.__importDefault(n(251)),Ct=i.__importDefault(n(252)),wt=i.__importDefault(n(253)),Ot=i.__importDefault(n(108)),St=i.__importDefault(n(254)),At=i.__importDefault(n(255)),Pt=i.__importDefault(n(256)),It=i.__importDefault(n(257)),Tt=i.__importDefault(n(258)),Et=i.__importDefault(n(259)),Lt=i.__importDefault(n(260)),jt=i.__importDefault(n(261));$.registerAction("tooltip",et.default),$.registerAction("sibling-tooltip",tt.default),$.registerAction("element-active",nt.default),$.registerAction("element-single-active",at.default),$.registerAction("element-range-active",rt.default),$.registerAction("element-highlight",ot.default),$.registerAction("element-highlight-by-x",ut.default),$.registerAction("element-highlight-by-color",st.default),$.registerAction("element-single-highlight",ct.default),$.registerAction("element-range-highlight",lt.default),$.registerAction("element-sibling-highlight",lt.default,{effectSiblings:!0,effectByRecord:!0}),$.registerAction("element-selected",pt.default),$.registerAction("element-single-selected",ft.default),$.registerAction("element-range-selected",ht.default),$.registerAction("element-link-by-color",it.default),$.registerAction("active-region",J.default),$.registerAction("list-active",dt.default),$.registerAction("list-selected",yt.default),$.registerAction("list-highlight",gt.default),$.registerAction("list-unchecked",vt.default),$.registerAction("legend-item-highlight",gt.default,{componentNames:["legend"]}),$.registerAction("axis-label-highlight",gt.default,{componentNames:["axis"]}),$.registerAction("rect-mask",_t.default),$.registerAction("x-rect-mask",xt.default,{dim:"x"}),$.registerAction("y-rect-mask",xt.default,{dim:"y"}),$.registerAction("circle-mask",mt.default),$.registerAction("path-mask",bt.default),$.registerAction("smooth-path-mask",Mt.default),$.registerAction("cursor",Ct.default),$.registerAction("data-filter",wt.default),$.registerAction("brush",Ot.default),$.registerAction("brush-x",Ot.default,{dims:["x"]}),$.registerAction("brush-y",Ot.default,{dims:["y"]}),$.registerAction("sibling-filter",St.default),$.registerAction("sibling-x-filter",St.default),$.registerAction("sibling-y-filter",St.default),$.registerAction("element-filter",At.default),$.registerAction("element-sibling-filter",Pt.default),$.registerAction("element-sibling-filter-record",Pt.default,{byRecord:!0}),$.registerAction("view-drag",Tt.default),$.registerAction("view-move",Et.default),$.registerAction("scale-translate",Lt.default),$.registerAction("scale-zoom",jt.default),$.registerAction("reset-button",It.default,{name:"reset-button",text:"reset"});var kt=n(15);function Bt(t){return t.isInPlot()}function Dt(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}kt.registerInteraction("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),kt.registerInteraction("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),kt.registerInteraction("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),kt.registerInteraction("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),kt.registerInteraction("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),kt.registerInteraction("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),kt.registerInteraction("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),kt.registerInteraction("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),kt.registerInteraction("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),kt.registerInteraction("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),kt.registerInteraction("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),kt.registerInteraction("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Bt,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Bt,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Bt,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),kt.registerInteraction("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),kt.registerInteraction("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Bt,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Bt,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Bt,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),kt.registerInteraction("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Bt,action:"path-mask:start"},{trigger:"mousedown",isEnable:Bt,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),kt.registerInteraction("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),kt.registerInteraction("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),kt.registerInteraction("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),kt.registerInteraction("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),kt.registerInteraction("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),kt.registerInteraction("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),kt.registerInteraction("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Dt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Dt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),kt.registerInteraction("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),i.__exportStar(n(15),e);var Ft=n(14),Rt=n(64);e.Util={translate:Rt.translate,rotate:Rt.rotate,zoom:Rt.zoom,transform:Rt.transform,getAngle:Ft.getAngle,polarToCartesian:Ft.polarToCartesian}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(85),s=n(117),u=function(t){function e(e){var n=this,u=e.container,l=e.width,c=e.height,h=e.autoFit,p=void 0!==h&&h,f=e.padding,d=e.renderer,g=void 0===d?"canvas":d,y=e.pixelRatio,v=e.localRefresh,m=void 0===v||v,x=e.visible,b=void 0===x||x,_=e.defaultInteractions,M=void 0===_?["tooltip","legend-filter","legend-active","continuous-filter"]:_,C=e.options,w=e.limitInPlot,O=e.theme,S=r.isString(u)?document.getElementById(u):u,A=s.createDom('<div style="position:relative;"></div>');S.appendChild(A);var P=s.getChartSize(S,p,l,c),I=new(o.getEngine(g).Canvas)(i.__assign({container:A,pixelRatio:y,localRefresh:m},P));return(n=t.call(this,{parent:null,canvas:I,backgroundGroup:I.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:I.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:I.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:f,visible:b,options:C,limitInPlot:w,theme:O})||this).onResize=r.debounce((function(){n.forceFit()}),300),n.ele=S,n.canvas=I,n.width=P.width,n.height=P.height,n.autoFit=p,n.localRefresh=m,n.renderer=g,n.wrapperElement=A,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(M),n}return i.__extends(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;r.each(t,(function(t){e.interaction(t)}))},e.prototype.changeSize=function(t,e){return this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),s.removeDom(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(t){return this.wrapperElement.style.display=t?"":"none",this},e.prototype.forceFit=function(){var t=s.getChartSize(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)},e.prototype.updateCanvasStyle=function(){s.modifyCSS(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(i.__importDefault(n(86)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5);function r(t){return"number"==typeof t&&!isNaN(t)}e.getChartSize=function(t,e,n,a){var o=n,s=a;if(e){var u=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width))-parseInt(e.paddingLeft)-parseInt(e.paddingRight),height:(t.clientHeight||parseInt(e.height))-parseInt(e.paddingTop)-parseInt(e.paddingBottom)}}(t);o=u.width?u.width:o,s=u.height?u.height:s}return{width:Math.max(r(o)?o:i.MIN_CHART_WIDTH,i.MIN_CHART_WIDTH),height:Math.max(r(s)?s:i.MIN_CHART_HEIGHT,i.MIN_CHART_HEIGHT)}},e.removeDom=function(t){var e=t.parentNode;e&&e.removeChild(t)};var a=n(4);e.createDom=a.createDom,e.modifyCSS=a.modifyCSS},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t){t.exports=JSON.parse('{"name":"@antv/g-base","version":"0.4.4","description":"A common util collection for antv projects","main":"lib/container_detail.js","module":"esm/container_detail.js","types":"lib/index.d.ts","files":["package.json","esm","lib","LICENSE","README.md"],"scripts":{"build":"npm run clean && run-p build:*","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","clean":"rm -rf esm lib","watch:cjs":"tsc-watch -p tsconfig.json --target ES5 --module commonjs --outDir lib --compiler typescript/bin/tsc","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage","test":"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts","tsc":"tsc --noEmit","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/antvis/util.git"},"keywords":["util","antv","g"],"publishConfig":{"access":"public"},"author":"https://github.com/orgs/antvis/people","license":"ISC","bugs":{"url":"https://github.com/antvis/util/issues"},"devDependencies":{"@antv/torch":"^1.0.0","gl-matrix":"^3.0.0","less":"^3.9.0","npm-run-all":"^4.1.5","tsc-watch":"^4.0.0"},"homepage":"https://github.com/antvis/util#readme","dependencies":{"@antv/event-emitter":"^0.1.1","@antv/g-math":"^0.1.3","@antv/matrix-util":"^2.0.4","@antv/path-util":"~2.0.5","@antv/util":"~2.0.0","@types/d3-timer":"^1.0.9","d3-ease":"^1.0.5","d3-interpolate":"^1.3.2","d3-timer":"^1.0.9"},"__npminstall_done":"Fri Apr 17 2020 10:08:51 GMT+0800 (GMT+08:00)","gitHead":"c809a87a65d3cf6f1f54db1c6653f474fdfe74bd","_from":"@antv/g-base@0.4.4","_resolved":"https://registry.npm.alibaba-inc.com/@antv/g-base/download/@antv/g-base-0.4.4.tgz"}')},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(25);e.default=function(t){return i.default(t)?"":t.toString()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(123);e.Adjust=i.default;var r={},a=function(t){return r[t.toLowerCase()]};e.getAdjust=a;e.registerAdjust=function(t,e){if(a(t))throw new Error("Adjust type '"+t+"' existed.");r[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(124),a=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames,r=void 0===i?["x","y"]:i;this.adjustNames=r,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===o?0:o-1],r=n[o===s-1?s-1:o+1],0!==o?i+=(e-i)/2:i-=(r-e)/2,o!==s-1?r-=(r-e)/2:r+=(e-n[s-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);i.each(t,(function(t,e){i.each(r,(function(i,r){n.adjustDim(r,i,t,e)}))}))},t.prototype.groupData=function(t,e){return i.each(t,(function(t){void 0===t[e]&&(t[e]=r.DEFAULT_Y)})),i.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,a={},o=[];if(e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach((function(e){a[e]=i.valuesOfKey(t,e).sort((function(t,e){return t-e}))})),!n&&this.isAdjust("y")){a.y=[r.DEFAULT_Y,1]}return a},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_Y=0,e.MARGIN_RATIO=.5,e.DODGE_RATIO=.5,e.GAP=.05},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(126);e.Attribute=r.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAttribute=o;e.registerAttribute=function(t,e){if(o(t))throw new Error("Attribute type '"+t+"' existed.");a[t.toLowerCase()]=e},i.__exportStar(n(127),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(t,e){return i.isString(e)?e:t.invert(t.scale(e))},a=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,i)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),i=e*t-n,r=this.values[n];return r+((n===e?r:this.values[n+1])-r)*i},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r+=1)i.push(e[r]);return i},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var i=t.scales[n];return"identity"===i.type?i.values[0]:t._getAttributeValue(i,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,r=void 0===n?"base":n,a=t.names,o=void 0===a?[]:a,s=t.scales,u=void 0===s?[]:s,l=t.values,c=void 0===l?[]:l,h=t.callback;this.type=r,this.scales=u,this.values=c,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var r=h.apply(void 0,t);if(!i.isNil(r))return[r]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var i=t.scale(e);return this.getLinearValue(i)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:i.isArray(t)?t.map((function(t){return r(e,t)})):r(e,t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.Scale=i.Scale},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return"object"==typeof t&&null!==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(87),o=i.__importDefault(n(135)),s=i.__importDefault(n(88));function u(t,e){var n=t.split(":"),i=n[0],r=e.getAction(i)||a.createAction(i,e);if(!r)throw new Error("There is no action named "+i);return{action:r,methodName:n[1]}}function l(t){var e=t.action,n=t.methodName;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n]()}var c="start",h="showEnable",p="end",f="rollback",d="processing",g=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return i.__extends(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;r.each(this.steps,(function(e,n){r.each(e,(function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)}))}))},e.prototype.clearEvents=function(){var t=this;r.each(this.steps,(function(e,n){r.each(e,(function(e){var i=t.getActionCallback(n,e);i&&t.offEvent(e.trigger,i)}))}))},e.prototype.initContext=function(){var t=this.view,e=new o.default(t);this.context=e;var n=this.steps;r.each(n,(function(t){r.each(t,(function(t){if(r.isFunction(t.action))t.actionObject={action:a.createCallbackAction(t.action,e),methodName:"execute"};else if(r.isString(t.action))t.actionObject=u(t.action,e);else if(r.isArray(t.action)){var n=t.action;t.actionObject=[],r.each(n,(function(n){t.actionObject.push(u(n,e))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===h)return!0;if(t===d)return e===c;if(t===c)return e!==d;if(t===p)return e===d||e===c;if(t===f){if(n[p])return e===p;if(e===c)return!0}return!1},e.prototype.isAllowExcute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==h&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,i=this.context,a=this.callbackCaches,o=e.actionObject;if(e.action&&o){var s=this.getKey(t,e);if(!a[s]){var u=function(a){i.event=a,n.isAllowExcute(t,e)?(r.isArray(o)?r.each(o,(function(t){i.event=a,l(t)})):(i.event=a,l(o)),n.afterExecute(t,e),e.callback&&(i.event=a,e.callback(i))):i.event=null};e.debounce?a[s]=r.debounce(u,e.debounce.wait,e.debounce.immediate):e.throttle?a[s]=r.throttle(u,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):a[s]=u}return a[s]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(i.__importDefault(n(11)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(7),a=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return i.get(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=r.getComponents(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&r.isInBox(i,n):r.isInBox(i,n)}))},t.prototype.destroy=function(){this.view=null,this.event=null,i.each(this.actions.slice(),(function(t){t.destroy()})),this.actions=null,this.cacheMap=null},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(137),r=n(138),a=n(0);function o(t){for(var e=[],n=t.length,i=0;i<n-1;i++){var r=t[i],a=t[i+1];e.push({from:{x:r[0],y:r[1]},to:{x:a[0],y:a[1]}})}if(e.length>1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function s(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}e.default=function(t,e){if(t.length<2||e.length<2)return!1;var n,u,l=s(t),c=s(e);if(n=l,(u=c).minX>n.maxX||u.maxX<n.minX||u.minY>n.maxY||u.maxY<n.minY)return!1;var h=!1;if(a.each(e,(function(e){if(i.default(t,e[0],e[1]))return h=!0,!1})),h)return!0;if(a.each(t,(function(t){if(i.default(e,t[0],t[1]))return h=!0,!1})),h)return!0;var p=o(t),f=o(e),d=!1;return a.each(f,(function(t){if(function(t,e){var n=!1;return a.each(t,(function(t){if(r.default(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(p,t))return d=!0,!1})),d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function i(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function r(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var u=t[s],l=t[(s+1)%o];if(r(u,l,[e,n]))return!0;i(u[1]-n)>0!=i(l[1]-n)>0&&i(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,n){return t>=e&&t<=n};e.default=function(t,e,n,r){var a=n.x-t.x,o=n.y-t.y,s=e.x-t.x,u=e.y-t.y,l=r.x-n.x,c=r.y-n.y,h=s*c-u*l,p=null;if(h*h>.001*(s*s+u*u)*(l*l+c*c)){var f=(a*c-o*l)/h,d=(a*u-o*s)/h;i(f,0,1)&&i(d,0,1)&&(p={x:t.x+f*s,y:t.y+f*u})}return p}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CONTAINER_CLASS="g2-tooltip",e.TITLE_CLASS="g2-tooltip-title",e.LIST_CLASS="g2-tooltip-list",e.LIST_ITEM_CLASS="g2-tooltip-list-item",e.MARKER_CLASS="g2-tooltip-marker",e.VALUE_CLASS="g2-tooltip-value",e.NAME_CLASS="g2-tooltip-name",e.CROSSHAIR_X="g2-tooltip-crosshair-x",e.CROSSHAIR_Y="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="#000",r="#595959",a="#8C8C8C",o="#BFBFBF",s="#D9D9D9",u="#F0F0F0",l="#FFFFFF",c="#F2F2F2",h=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];e.antvLight={brandColor:h[0],paletteQualitative10:h,paletteQualitative20:["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",fontFamily:'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:o,axisLineBorder:.5,axisLineDash:null,axisTitleTextFillColor:r,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTickLineBorderColor:o,axisTickLineLength:4,axisTickLineBorder:.5,axisSubTickLineBorderColor:s,axisSubTickLineLength:2,axisSubTickLineBorder:.5,axisLabelFillColor:a,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisGridBorderColor:s,axisGridBorder:.5,axisGridLineDash:null,legendTitleTextFillColor:a,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:h[0],legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:r,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",sliderRailFillColor:s,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:a,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:u,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:o,annotationArcBorderColor:s,annotationArcBorder:.5,annotationLineBorderColor:o,annotationLineBorder:.5,annotationLineDash:null,annotationTextFillColor:r,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:c,annotationTextBorder:1.5,annotationRegionFillColor:i,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:o,tooltipCrosshairsBorder:.5,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:r,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:r,labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:l,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,labelLineBorder:.5,labelLineBorderColor:o,pointFillColor:h[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:l,pointBorderOpacity:1,pointActiveBorderColor:i,pointSelectedBorder:2,pointSelectedBorderColor:i,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:h[0],hollowPointBorderOpacity:.95,hollowPointFillColor:l,hollowPointActiveBorder:1,hollowPointActiveBorderColor:i,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:i,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:h[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:h[0],areaFillOpacity:.25,areaActiveFillColor:h[0],areaActiveFillOpacity:.5,areaSelectedFillColor:h[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:h[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:i,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:i,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:h[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:i,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:i,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:h[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:l,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:i,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:i,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(24),o=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return r.some(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,r=n.type,o=n.cfg,s="theta"===r,u=i.__assign({start:t,end:e},o),l=a.getCoordinate(s?"polar":r);return this.coordinate=new l(u),this.coordinate.type=r,s&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return i.__assign({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;r.each(n,(function(n){var i,a=n[0],o=n.slice(1);(!!r.isNil(t)||t.includes(a))&&(i=e.coordinate)[a].apply(i,o)}))},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(143);e.default=function(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation"),a=t.getController("slider"),o=i.calculatePadding(t),s=t.viewBBox.shrink(o);t.coordinateBBox.isEqual(s)?r&&r.layout():(t.coordinateBBox=s,t.adjustCoordinate(),[e,a,n,r].forEach((function(t){t&&t.layout()})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(5),a=n(35),o=n(61),s=n(144);e.calculatePadding=function(t){var e=t.padding;if(!o.isAutoPadding(e))return o.parsePadding(e);var n=t.viewBBox,u=new s.PaddingCal;return i.each(t.getComponents(),(function(t){var e=t.component,i=t.type;if(i!==r.COMPONENT_TYPE.GRID&&i!==r.COMPONENT_TYPE.TOOLTIP){var o=e.getLayoutBBox(),s=new a.BBox(o.x,o.y,o.width,o.height);if(i===r.COMPONENT_TYPE.AXIS){var l=s.exceed(n);u.shrink(l)}else{var c=t.direction;u.inc(s,c)}}})),u.getPadding()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),r=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.top=t,this.right=e,this.bottom=n,this.left=i}return t.prototype.shrink=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return this.top+=e,this.right+=n,this.bottom+=i,this.left+=r,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case i.DIRECTION.TOP:case i.DIRECTION.TOP_LEFT:case i.DIRECTION.TOP_RIGHT:this.top+=r;break;case i.DIRECTION.RIGHT:case i.DIRECTION.RIGHT_TOP:case i.DIRECTION.RIGHT_BOTTOM:this.right+=n;break;case i.DIRECTION.BOTTOM:case i.DIRECTION.BOTTOM_LEFT:case i.DIRECTION.BOTTOM_RIGHT:this.bottom+=r;break;case i.DIRECTION.LEFT:case i.DIRECTION.LEFT_TOP:case i.DIRECTION.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t}();e.PaddingCal=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(39),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,a){var o=n,s=this.getScaleMeta(a);if(0===e.length&&s){var u=s.scale,l={type:u.type};u.isCategory&&(l.values=u.values),o=i.deepMix(l,s.scaleDef,n)}var c=r.createScaleByField(t,e,o);return this.cacheScale(c,n,a),c},t.prototype.sync=function(){var t=this;this.syncScales.forEach((function(e,n){var r=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,o=[];i.each(e,(function(e){var n=t.getScale(e);a=i.isNumber(n.max)?Math.max(a,n.max):a,r=i.isNumber(n.min)?Math.min(r,n.min):r,i.each(n.values,(function(t){o.includes(t)||o.push(t)}))})),i.each(e,(function(e){var n=t.getScale(e);n.isContinuous?n.change({min:r,max:a,values:o}):n.isCategory&&n.change({values:o})}))}))},t.prototype.cacheScale=function(t,e,n){var i=this.getScaleMeta(n);i&&i.scale.type===t.type?(r.syncScale(i.scale,t),i.scaleDef=e):(i={key:n,scale:t,scaleDef:e},this.scales.set(n,i));var a=this.getSyncKey(i);if(i.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=i.last(t.split("-")),r=this.syncScales.get(n);r&&r.length&&(e=this.getScaleMeta(r[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,i=this.syncScales.get(n);if(i&&i.length){var r=i.indexOf(t);-1!==r&&i.splice(r,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,i){var r=n.indexOf(t);if(-1!==r)return n.splice(r,1),0===n.length&&e.syncScales.delete(i),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,r=e.field,a=i.get(n,["sync"]);return!0===a?r:!1===a?void 0:a},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();e.ScalePool=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(45);e.propagationDelegate=function(t,e,n){var r=new i.default(e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);for(var a=t.getParent();a;)a.emitDelegation(e,r),r.propagationPath.push(a),a=a.getParent()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.group=function(t,e,n){if(void 0===n&&(n={}),!e)return[t];var r=i.groupToMap(t,e),a=[];if(1===e.length&&n[e[0]])for(var o=0,s=n[e[0]];o<s.length;o++){var u=r["_"+s[o]];u&&a.push(u)}else for(var l in r)if(r.hasOwnProperty(l)){var c=r[l];a.push(c)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.parseFields=function(t){return i.isArray(t)?t:t.split("*")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(26),o=n(63),s=n(14),u=n(64),l=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){var o=this;void 0===n&&(n=!1),this.shapesMap={};for(var u=this.container,l=this.createOffscreenGroup(),c=0,h=t;c<h.length;c++){var p=h[c];p&&this.renderLabel(p,l)}this.doLayout(t,e),this.renderLabelLine(t),this.adjustLabel(t);var f=this.lastShapesMap,d=this.shapesMap;r.each(d,(function(t,e){if(t.destroyed)delete d[e];else{if(f[e]){var l=t.get("data"),c=t.get("origin"),h=t.get("coordinate"),p=f[e],g=t.get("animateCfg");p.set("data",l),p.set("origin",c),p.set("animateCfg",g),p.set("coordinate",h);var y=r.get(g,"update"),v=p.getChildren();t.getChildren().map((function(t,e){var n=v[e];n.set("data",l),n.set("origin",c),n.set("animateCfg",g),n.set("coordinate",h);var i=s.getReplaceAttrs(n,t);y?a.doAnimate(n,y,{toAttrs:i,coordinate:h}):n.attr(i)})),o.shapesMap[e]=p}else{u.add(t);var m=r.get(t.get("animateCfg"),n?"enter":"appear");m&&a.doAnimate(t,m,{toAttrs:i.__assign({},t.attr()),coordinate:t.get("coordinate")})}delete f[e]}})),r.each(f,(function(t){var e=r.get(t.get("animateCfg"),"leave");e?a.doAnimate(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.lastShapesMap=d,l.destroy()},t.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},t.prototype.renderLabel=function(t,e){var n,a=t.id,o=t.data,s=t.mappingData,l=t.coordinate,c=t.animate,h=t.content,p={id:a,data:o,origin:s,coordinate:l},f=e.addGroup(i.__assign({name:"label",animateCfg:!1!==this.animate&&null!==c&&!1!==c&&r.deepMix({},this.animate,c)},p));if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var d=h.getCanvasBBox(),g=d.width,y=d.height,v=r.get(t,"textAlign","left"),m=t.x,x=t.y-y/2;"center"===v?m-=g/2:"right"!==v&&"end"!==v||(m-=g),u.translate(h,m,x),n=h,f.add(h)}else n=f.addShape("text",i.__assign({attrs:i.__assign({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:r.get(t,"textBaseline","middle"),text:t.content},t.style)},p));t.rotate&&u.rotate(n,t.rotate),this.shapesMap[a]=f},t.prototype.doLayout=function(t,e){var n=this;if(this.layout){var i=r.isArray(this.layout)?this.layout:[this.layout];r.each(i,(function(i){var a=o.getGeometryLabelLayout(r.get(i,"type",""));if(a){var s=[],u=[];r.each(n.shapesMap,(function(t,n){s.push(t),u.push(e[n])})),a(t,s,u,n.region,i.cfg)}}))}},t.prototype.renderLabelLine=function(t){var e=this;r.each(t,(function(t){if(t&&t.labelLine){var n=r.get(t,"labelLine",{}),a=t.id,o=n.path;if(!o){var s=t.start;o=[["M",s.x,s.y],["L",t.x,t.y]]}var u=e.shapesMap[a];u.destroyed||u.addShape("path",{capture:!1,attrs:i.__assign({path:o,stroke:t.color?t.color:r.get(t,["style","fill"],"#000"),fill:null},n.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t){var e=this;r.each(t,(function(t){if(t){var n=t.id,i=e.shapesMap[n];if(!i.destroyed){var r=i.find((function(t){return"text"===t.get("type")}));r&&(t.offsetX&&r.attr("x",r.attr("x")+t.offsetX),t.offsetY&&r.attr("y",r.attr("y")+t.offsetY))}}}))},t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="#000",r="#0D0D0D",a="#BFBFBF",o="#F0F0F0",s="#FFFFFF",u="#A6A6A6",l="#737373",c="#404040",h="#262626",p=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];e.antvDark={brandColor:p[0],paletteQualitative10:p,paletteQualitative20:["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",fontFamily:'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:c,axisLineBorder:.5,axisLineDash:null,axisTitleTextFillColor:u,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTickLineBorderColor:c,axisTickLineLength:4,axisTickLineBorder:.5,axisSubTickLineBorderColor:h,axisSubTickLineLength:2,axisSubTickLineBorder:.5,axisLabelFillColor:l,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisGridBorderColor:h,axisGridBorder:.5,axisGridLineDash:null,legendTitleTextFillColor:l,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:p[0],legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:u,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",sliderRailFillColor:h,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:l,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:o,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:a,annotationArcBorderColor:h,annotationArcBorder:.5,annotationLineBorderColor:c,annotationLineBorder:.5,annotationLineDash:null,annotationTextFillColor:u,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:r,annotationTextBorder:1.5,annotationRegionFillColor:s,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:c,tooltipCrosshairsBorder:.5,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:u,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:u,labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:i,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,labelLineBorder:.5,labelLineBorderColor:c,pointFillColor:p[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:i,pointBorderOpacity:1,pointActiveBorderColor:s,pointSelectedBorder:2,pointSelectedBorderColor:s,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:p[0],hollowPointBorderOpacity:.95,hollowPointFillColor:i,hollowPointActiveBorder:1,hollowPointActiveBorderColor:s,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:s,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:p[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:p[0],areaFillOpacity:.25,areaActiveFillColor:p[0],areaActiveFillOpacity:.5,areaSelectedFillColor:p[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:p[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:s,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:s,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:p[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:s,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:s,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:p[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:i,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:s,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:s,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=new Map;e.register=function(t,e){i.set(t,e)},e.getMethod=function(t){return i.get(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.r;return{x:n-r,y:i-r,width:2*r,height:2*r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),r=n(67);e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o<e.length;o++){var s=e[o];n.push(s[0]),a.push(s[1])}var u=i.getBBoxByArray(n,a),l=u.x,c=u.y,h={minX:l,minY:c,maxX:l+u.width,maxY:c+u.height};return{x:(h=r.mergeArrowBBox(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18);e.default=function(t){for(var e=t.attr().points,n=[],r=[],a=0;a<e.length;a++){var o=e[a];n.push(o[0]),r.push(o[1])}return i.getBBoxByArray(n,r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(48);e.default=function(t){var e=t.attr(),n=e.x,r=e.y,a=e.text,o=e.fontSize,s=e.lineHeight,u=e.font;u||(u=i.assembleFont(e));var l,c=i.getTextWidth(a,u);if(c){var h=e.textAlign,p=e.textBaseline,f=i.getTextHeight(a,o,s),d={x:n,y:r-f};h&&("end"===h||"right"===h?d.x-=c:"center"===h&&(d.x-=c/2)),p&&("top"===p?d.y+=f:"middle"===p&&(d.y+=f/2)),l={x:d.x,y:d.y,width:c,height:f}}else l={x:n,y:r,width:0,height:0};return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(81),r=n(28),a=n(159),o=n(82),s=n(42),u=n(67);function l(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,a=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),o=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),u=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),l=Math.acos((a+o-u)/(2*Math.sqrt(a)*Math.sqrt(o)));if(!l||0===Math.sin(l)||s.default(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),h=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));return c=c>Math.PI/2?Math.PI-c:c,h=h>Math.PI/2?Math.PI-h:h,{xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(h-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,s=e.stroke?e.lineWidth:0,c=function(t,e){for(var n=[],o=[],s=[],u=0;u<t.length;u++){var c=(x=t[u]).currentPoint,h=x.params,p=x.prePoint,f=void 0;switch(x.command){case"Q":f=i.default.box(p[0],p[1],h[1],h[2],h[3],h[4]);break;case"C":f=r.default.box(p[0],p[1],h[1],h[2],h[3],h[4],h[5],h[6]);break;case"A":var d=x.arcParams;f=a.default.box(d.cx,d.cy,d.rx,d.ry,d.xRotation,d.startAngle,d.endAngle);break;default:n.push(c[0]),o.push(c[1])}f&&(x.box=f,n.push(f.x,f.x+f.width),o.push(f.y,f.y+f.height)),e&&("L"===x.command||"M"===x.command)&&x.prePoint&&x.nextPoint&&s.push(x)}n=n.filter((function(t){return!Number.isNaN(t)})),o=o.filter((function(t){return!Number.isNaN(t)}));var g=Math.min.apply(null,n),y=Math.min.apply(null,o),v=Math.max.apply(null,n),m=Math.max.apply(null,o);if(0===s.length)return{x:g,y:y,width:v-g,height:m-y};for(u=0;u<s.length;u++){var x;(c=(x=s[u]).currentPoint)[0]===g?g-=l(x,e).xExtra:c[0]===v&&(v+=l(x,e).xExtra),c[1]===y?y-=l(x,e).yExtra:c[1]===m&&(m+=l(x,e).yExtra)}return{x:g,y:y,width:v-g,height:m-y}}(t.get("segments")||o.default(n),s),h=c.x,p=c.y,f={minX:h,minY:p,maxX:h+c.width,maxY:p+c.height};return{x:(f=u.mergeArrowBBox(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return a})),n.d(e,"fromValues",(function(){return o})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return u})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return c})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return f})),n.d(e,"floor",(function(){return d})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return y})),n.d(e,"round",(function(){return v})),n.d(e,"scale",(function(){return m})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return b})),n.d(e,"squaredDistance",(function(){return _})),n.d(e,"length",(function(){return M})),n.d(e,"squaredLength",(function(){return C})),n.d(e,"negate",(function(){return w})),n.d(e,"inverse",(function(){return O})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return A})),n.d(e,"cross",(function(){return P})),n.d(e,"lerp",(function(){return I})),n.d(e,"random",(function(){return T})),n.d(e,"transformMat2",(function(){return E})),n.d(e,"transformMat2d",(function(){return L})),n.d(e,"transformMat3",(function(){return j})),n.d(e,"transformMat4",(function(){return k})),n.d(e,"rotate",(function(){return B})),n.d(e,"angle",(function(){return D})),n.d(e,"zero",(function(){return F})),n.d(e,"str",(function(){return R})),n.d(e,"exactEquals",(function(){return N})),n.d(e,"equals",(function(){return Y})),n.d(e,"len",(function(){return V})),n.d(e,"sub",(function(){return X})),n.d(e,"mul",(function(){return z})),n.d(e,"div",(function(){return H})),n.d(e,"dist",(function(){return W})),n.d(e,"sqrDist",(function(){return q})),n.d(e,"sqrLen",(function(){return U})),n.d(e,"forEach",(function(){return Z}));var i=n(3);function r(){var t=new i.a(2);return i.a!=Float32Array&&(t[0]=0,t[1]=0),t}function a(t){var e=new i.a(2);return e[0]=t[0],e[1]=t[1],e}function o(t,e){var n=new i.a(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,n){return t[0]=e,t[1]=n,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function f(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function v(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function x(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function b(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.hypot(n,i)}function _(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function M(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function C(t){var e=t[0],n=t[1];return e*e+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t}function O(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function S(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]}function P(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t}function I(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t}function T(t,e){e=e||1;var n=2*i.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function E(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t}function L(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function j(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function k(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t}function B(t,e,n,i){var r=e[0]-n[0],a=e[1]-n[1],o=Math.sin(i),s=Math.cos(i);return t[0]=r*s-a*o+n[0],t[1]=r*o+a*s+n[1],t}function D(t,e){var n=t[0],i=t[1],r=e[0],a=e[1],o=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+a*a),s=o&&(n*r+i*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function F(t){return t[0]=0,t[1]=0,t}function R(t){return"vec2("+t[0]+", "+t[1]+")"}function N(t,e){return t[0]===e[0]&&t[1]===e[1]}function Y(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.b*Math.max(1,Math.abs(r),Math.abs(o))}var G,V=M,X=c,z=h,H=p,W=b,q=_,U=C,Z=(G=r(),function(t,e,n,i,r,a){var o,s;for(e||(e=2),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,o=n;o<s;o+=e)G[0]=t[o],G[1]=t[o+1],r(G,G,a),t[o]=G[0],t[o+1]=G[1];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),r=n(160);function a(t,e,n,i,r,a){return n*Math.cos(r)*Math.cos(a)-i*Math.sin(r)*Math.sin(a)+t}function o(t,e,n,i,r,a){return n*Math.sin(r)*Math.cos(a)+i*Math.cos(r)*Math.sin(a)+e}function s(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function u(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}e.default={box:function(t,e,n,i,r,s,u){for(var l=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,i,r),c=1/0,h=-1/0,p=[s,u],f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var d=l+f;s<u?s<d&&d<u&&p.push(d):u<d&&d<s&&p.push(d)}for(f=0;f<p.length;f++){var g=a(t,0,n,i,r,p[f]);g<c&&(c=g),g>h&&(h=g)}var y=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,i,r),v=1/0,m=-1/0,x=[s,u];for(f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var b=y+f;s<u?s<b&&b<u&&x.push(b):u<b&&b<s&&x.push(b)}for(f=0;f<x.length;f++){var _=o(0,e,n,i,r,x[f]);_<v&&(v=_),_>m&&(m=_)}return{x:c,y:v,width:h-c,height:m-v}},length:function(t,e,n,i,r,a,o){},nearestPoint:function(t,e,n,i,a,o,l,c,h){var p=u(c-t,h-e,-a),f=p[0],d=p[1],g=r.default.nearestPoint(0,0,n,i,f,d),y=function(t,e,n,i){return(Math.atan2(i*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,i,g.x,g.y);y<o?g=s(n,i,o):y>l&&(g=s(n,i,l));var v=u(g.x,g.y,a);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,n,r,a,o,s,u,l){var c=this.nearestPoint(t,e,n,r,u,l);return i.distance(c.x,c.y,u,l)},pointAt:function(t,e,n,i,r,s,u,l){var c=(u-s)*l+s;return{x:a(t,0,n,i,r,c),y:o(0,e,n,i,r,c)}},tangentAngle:function(t,e,n,r,a,o,s,u){var l=(s-o)*u+o,c=function(t,e,n,i,r,a,o,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}(0,0,n,r,a,0,0,l),h=function(t,e,n,i,r,a,o,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}(0,0,n,r,a,0,0,l);return i.piMod(Math.atan2(h,c))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18);function r(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,i){return{x:t-n,y:e-i,width:2*n,height:2*i}},length:function(t,e,n,i){return Math.PI*(3*(n+i)-Math.sqrt((3*n+i)*(n+3*i)))},nearestPoint:function(t,e,n,i,a,o){var s=n,u=i;if(0===s||0===u)return{x:t,y:e};for(var l,c,h=a-t,p=o-e,f=Math.abs(h),d=Math.abs(p),g=s*s,y=u*u,v=Math.PI/4,m=0;m<4;m++){l=s*Math.cos(v),c=u*Math.sin(v);var x=(g-y)*Math.pow(Math.cos(v),3)/s,b=(y-g)*Math.pow(Math.sin(v),3)/u,_=l-x,M=c-b,C=f-x,w=d-b,O=Math.hypot(M,_),S=Math.hypot(w,C);v+=O*Math.asin((_*w-M*C)/(O*S))/Math.sqrt(g+y-l*l-c*c),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+r(l,h),y:e+r(c,p)}},pointDistance:function(t,e,n,r,a,o){var s=this.nearestPoint(t,e,n,r,a,o);return i.distance(s.x,s.y,a,o)},pointAt:function(t,e,n,i,r){var a=2*Math.PI*r;return{x:t+n*Math.cos(a),y:e+i*Math.sin(a)}},tangentAngle:function(t,e,n,r,a){var o=2*Math.PI*a,s=Math.atan2(r*Math.cos(o),-n*Math.sin(o));return i.piMod(s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(20),r=n(13),a=n(19),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;e.default=function(t){var e=t||[];return r.default(e)?e:a.default(e)?(e=e.match(o),i.default(e,(function(t,n){if((t=t.match(s))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}i.default(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(67);e.default=function(t){var e=t.attr(),n=e.x1,r=e.y1,a=e.x2,o=e.y2,s={minX:Math.min(n,a),maxX:Math.max(n,a),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(s=i.mergeArrowBBox(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,a=e.ry;return{x:n-r,y:i-a,width:2*r,height:2*a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),r="\t\n\v\f\r \u2028\u2029",a=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");e.default=function(t){if(!t)return null;if(i.default(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(t,i,r){var a=[],s=i.toLowerCase();if(r.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([i].concat(a.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===a.length&&n.push([i,a[0]]),"r"===s)n.push([i].concat(a));else for(;a.length>=e[s]&&(n.push([i].concat(a.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),r=n(18);function a(t){for(var e=0,n=[],i=0;i<t.length-1;i++){var a=t[i],o=t[i+1],s=r.distance(a[0],a[1],o[0],o[1]),u={from:a,to:o,length:s};n.push(u),e+=s}return{segments:n,totalLength:e}}e.lengthOfSegment=function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var i=t[n],a=t[n+1];e+=r.distance(i[0],i[1],a[0],a[1])}return e},e.pointAtSegments=function(t,e){if(e>1||e<0||t.length<2)return null;var n=a(t),r=n.segments,o=n.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var s=0,u=null,l=0;l<r.length;l++){var c=r[l],h=c.from,p=c.to,f=c.length/o;if(e>=s&&e<=s+f){var d=(e-s)/f;u=i.default.pointAt(h[0],h[1],p[0],p[1],d);break}s+=f}return u},e.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=a(t),i=n.segments,r=n.totalLength,o=0,s=0,u=0;u<i.length;u++){var l=i[u],c=l.from,h=l.to,p=l.length/r;if(e>=o&&e<=o+p){s=Math.atan2(h[1]-c[1],h[0]-c[0]);break}o+=p}return s},e.distanceAtSegment=function(t,e,n){for(var r=1/0,a=0;a<t.length-1;a++){var o=t[a],s=t[a+1],u=i.default.pointDistance(o[0],o[1],s[0],s[1],e,n);u<r&&(r=u)}return r}},function(t){t.exports=JSON.parse('{"name":"@antv/g-canvas","version":"0.4.8","description":"A canvas library which providing 2d","main":"lib/container_detail.js","module":"esm/container_detail.js","unpkg":"dist/g.min.js","types":"lib/index.d.ts","files":["package.json","esm","lib","dist","LICENSE","README.md"],"scripts":{"build":"npm run clean && run-p build:*","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","build:umd":"webpack --config webpack.config.js --mode production","clean":"rm -rf esm lib dist","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage","test":"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts","tsc":"tsc --noEmit","typecheck":"tsc --noEmit","dist":"webpack --config webpack.config.js --mode production"},"repository":{"type":"git","url":"git+https://github.com/antvis/g.git"},"keywords":["util","antv","g"],"publishConfig":{"access":"public"},"author":"https://github.com/orgs/antvis/people","license":"ISC","bugs":{"url":"https://github.com/antvis/g/issues"},"devDependencies":{"@antv/torch":"^1.0.0","less":"^3.9.0","npm-run-all":"^4.1.5","webpack":"^4.26.1","webpack-cli":"^3.1.2"},"homepage":"https://github.com/antvis/g#readme","dependencies":{"@antv/g-base":"^0.4.4","@antv/g-math":"^0.1.3","@antv/path-util":"~2.0.5","@antv/util":"~2.0.0","gl-matrix":"^3.0.0"},"__npminstall_done":"Fri Apr 17 2020 10:08:51 GMT+0800 (GMT+08:00)","gitHead":"c809a87a65d3cf6f1f54db1c6653f474fdfe74bd","_from":"@antv/g-canvas@0.4.8","_resolved":"https://registry.npm.alibaba-inc.com/@antv/g-canvas/download/@antv/g-canvas-0.4.8.tgz"}')},function(t,e){var n,i,r=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var u,l=[],c=!1,h=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&f())}function f(){if(!c){var t=s(p);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||c||s(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t){t.exports=JSON.parse('{"name":"@antv/g-svg","version":"0.4.4","description":"A canvas library which providing 2d","main":"lib/container_detail.js","module":"esm/container_detail.js","unpkg":"dist/g.min.js","types":"lib/index.d.ts","files":["package.json","esm","lib","dist","LICENSE","README.md"],"scripts":{"build":"npm run clean && run-p build:*","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","build:umd":"webpack --config webpack.config.js --mode production","clean":"rm -rf esm lib dist","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage","test":"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts","tsc":"tsc --noEmit","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/antvis/g.git"},"keywords":["util","antv","g"],"publishConfig":{"access":"public"},"author":"https://github.com/orgs/antvis/people","license":"ISC","bugs":{"url":"https://github.com/antvis/g/issues"},"devDependencies":{"@antv/torch":"^1.0.0","less":"^3.9.0","npm-run-all":"^4.1.5","webpack":"^4.39.3","webpack-cli":"^3.3.7"},"homepage":"https://github.com/antvis/g#readme","dependencies":{"@antv/g-base":"^0.4.4","@antv/g-math":"^0.1.3","@antv/util":"~2.0.0","detect-browser":"^4.6.0"},"__npminstall_done":"Fri Apr 17 2020 10:08:51 GMT+0800 (GMT+08:00)","gitHead":"c809a87a65d3cf6f1f54db1c6653f474fdfe74bd","_from":"@antv/g-svg@0.4.4","_resolved":"https://registry.npm.alibaba-inc.com/@antv/g-svg/download/@antv/g-svg-0.4.4.tgz"}')},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(5),a=i.__importDefault(n(68));n(170);var o=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var i=e.startOnZero,r=void 0===i||i,a=e.sortable,o=void 0===a||a;return n.startOnZero=r,n.sortable=o,n}return i.__extends(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,a=t.length;i<a;i++){var o=t[i];e.push(o.points),n.push(o[r.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(6),a=n(43),o=r.registerShapeFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return(i.isArray(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});r.registerShape("area","area",{draw:function(t,e){var n=a.getShapeAttrs(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}}),e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=i.__importDefault(n(22));n(172);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return i.__extends(e,t),e}(r.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(6),a=n(9),o=n(34),s=n(70),u=r.registerShapeFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return s.splitPoints(t)}});r.registerShape("edge","line",{draw:function(t,e){var n=a.getStyle(t,!0,!1,"lineWidth"),r=o.getLinePath(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:i.__assign(i.__assign({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=i.__importDefault(n(38)),a=n(0),o=n(5),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return i.__extends(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var i=this.prepareRange(t),r=this.prepareSize(),o=a.get(this.styleOption,["style","shadowBlur"]);return a.isNumber(o)||(o=r/2),this.prepareGreyScaleBlurredCircle(r,o),this.drawWithRange(t,i,r,o),null},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,i=-1/0;return t.forEach((function(t){var r=t[o.FIELD_ORIGIN][e];r>i&&(i=r),r<n&&(n=r)})),n===i&&(n=i-1),[n,i]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return a.isNumber(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),i=t+e,r=n.getContext("2d");n.width=n.height=2*i,r.clearRect(0,0,n.width,n.height),r.shadowOffsetX=r.shadowOffsetY=2*i,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-i,-i,t,0,2*Math.PI,!0),r.closePath(),r.fill()},e.prototype.drawWithRange=function(t,e,n,i){var r=this.coordinate,a=r.start,s=r.end,u=this.coordinate.getWidth(),l=this.coordinate.getHeight(),c=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var h=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[o.FIELD_ORIGIN][c]<=e[1]&&t[o.FIELD_ORIGIN][c]>=e[0]})));for(var p=this.scales[c],f=0,d=t;f<d.length;f++){var g=d[f],y=this.getDrawCfg(g),v=y.x,m=y.y,x=p.scale(g[o.FIELD_ORIGIN][c]);this.drawGrayScaleBlurredCircle(v-a.x,m-s.y,n+i,x,h)}var b=h.getImageData(0,0,u,l);this.clearShadowCanvasCtx(),this.colorize(b),h.putImageData(b,0,0);var _=this.getImageShape();_.attr("x",a.x),_.attr("y",s.y),_.attr("width",u),_.attr("height",l),_.attr("img",h.canvas),_.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,i,r){var a=this.getGrayScaleBlurredCanvas();r.globalAlpha=i,r.drawImage(a,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,i=this.paletteCache,o=3;o<n.length;o+=4){var s=n[o];if(a.isNumber(s)){var u=i[s]?i[s]:r.default.rgb2arr(e.gradient(s/256));n[o-3]=u[0],n[o-2]=u[1],n[o-1]=u[2],n[o]=s}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]);return i.__assign(i.__assign({},e),{mappingData:t,data:this.getData(t)})},e.prototype.getData=function(t){return t.map((function(t){return t[o.FIELD_ORIGIN]}))},e}(i.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(16),o=i.__importDefault(n(22));n(175);var s=n(101),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e}return i.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var o=this.coordinate;n/=a.getXDimensionLength(o)}else this.defaultSize||(this.defaultSize=s.getDefaultSize(this)),n=this.defaultSize;return i.size=n,i},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Math.max(Math.max.apply(null,e.values),e.max)});else{var n=this.scaleDefs,i=e.field,a=e.min,o=e.max;"time"!==e.type&&(a>0&&!r.get(n,[i,"min"])&&e.change({min:0}),o<=0&&!r.get(n,[i,"max"])&&e.change({max:0}))}},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(6),a=n(9),o=n(36),s=r.registerShapeFactory("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return o.getRectPoints(t)}});r.registerShape("interval","rect",{draw:function(t,e){var n=a.getStyle(t,!1,!0),r=this.parsePath(o.getRectPath(t.points));return e.addShape("path",{attrs:i.__assign(i.__assign({},n),{path:r}),name:"interval"})},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=i.__importDefault(n(68));n(99);var a=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var i=e.sortable,r=void 0===i||i;return n.sortable=r,n}return i.__extends(e,t),e}(r.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=i.__importDefault(n(22));n(178);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return i.__extends(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return i.__assign(i.__assign({},n),{isStack:!!this.getAdjust("stack")})},e}(r.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(37),a=n(6),o=n(70),s=n(71),u=a.registerShapeFactory("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return o.splitPoints(t)}});i.each(s.SHAPES,(function(t){a.registerShape("point","hollow-"+t,{draw:function(e,n){return s.drawPoints(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:r.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})})),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=i.__importDefault(n(22));n(180);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return i.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),a=i.x,o=i.y;if(!r.isArray(a)||!r.isArray(o)){var s=this.getXScale(),u=this.getYScale(),l=.5/s.values.length,c=.5/u.values.length;s.isCategory&&u.isCategory?(a=[a-l,a-l,a+l,a+l],o=[o-c,o+c,o+c,o-c]):r.isArray(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):r.isArray(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-l/2,a-l/2,a+l/2,a+l/2]),i.x=a,i.y=o}return i},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(6),o=n(9);var s=a.registerShapeFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return r.each(t.x,(function(n,i){var r=t.y[i];e.push({x:n,y:r})})),e}});a.registerShape("polygon","polygon",{draw:function(t,e){if(!r.isEmpty(t.points)){var n=o.getStyle(t,!0,!0),a=this.parsePath(function(t){for(var e=t[0],n=1,i=[["M",e.x,e.y]];n<t.length;){var a=t[n];a.x===t[n-1].x&&a.y===t[n-1].y||(i.push(["L",a.x,a.y]),a.x===e.x&&a.y===e.y&&n<t.length-1&&(e=t[n+1],i.push(["Z"]),i.push(["M",e.x,e.y]),n++)),n++}return r.isEqual(r.last(i),e)||i.push(["L",e.x,e.y]),i.push(["Z"]),i}(t.points));return e.addShape("path",{attrs:i.__assign(i.__assign({},n),{path:a}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(16),a=i.__importDefault(n(22));n(182);var o=n(101),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return i.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,e)[0];var s=this.coordinate;n/=r.getXDimensionLength(s)}else this.defaultSize||(this.defaultSize=o.getDefaultSize(this)),n=this.defaultSize;return i.size=n,i},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6).registerShapeFactory("schema",{defaultShapeType:""});e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),r=n(43);i.registerShape("area","line",{draw:function(t,e){var n=r.getShapeAttrs(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),r=n(43);i.registerShape("area","smooth",{draw:function(t,e){var n=this.coordinate,i=r.getShapeAttrs(t,!1,!0,this,r.getConstraint(n));return e.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),r=n(43);i.registerShape("area","smooth-line",{draw:function(t,e){var n=this.coordinate,i=r.getShapeAttrs(t,!0,!0,this,r.getConstraint(n));return e.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(14),a=n(6),o=n(9),s=n(102);a.registerShape("edge","arc",{draw:function(t,e){var n,a=o.getStyle(t,!0,!1,"lineWidth"),u=t.points,l=u.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===l?n=function(t,e,n){var i=s.getQPath(e,n),r=[["M",t.x,t.y]];return r.push(i),r}(u[0],u[1],c):(a.fill=a.stroke,n=function(t,e){var n=s.getQPath(t[1],e),i=s.getQPath(t[3],e),r=[["M",t[0].x,t[0].y]];return r.push(i),r.push(["L",t[3].x,t[3].y]),r.push(["L",t[2].x,t[2].y]),r.push(n),r.push(["L",t[1].x,t[1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]),r}(u,c)),n=this.parsePath(n),e.addShape("path",{attrs:i.__assign(i.__assign({},a),{path:n})})}if("normal"===l)return u=this.parsePoints(u),n=r.getArcPath((u[1].x+u[0].x)/2,u[0].y,Math.abs(u[1].x-u[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:i.__assign(i.__assign({},a),{path:n})});var h=s.getCPath(u[1],u[3]),p=s.getCPath(u[2],u[0]);return n=[["M",u[0].x,u[0].y],["L",u[1].x,u[1].y],h,["L",u[3].x,u[3].y],["L",u[2].x,u[2].y],p,["Z"]],n=this.parsePath(n),a.fill=a.stroke,e.addShape("path",{attrs:i.__assign(i.__assign({},a),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(6),a=n(9),o=n(102);r.registerShape("edge","smooth",{draw:function(t,e){var n=a.getStyle(t,!0,!1,"lineWidth"),r=t.points,s=this.parsePath(function(t,e){var n=o.getCPath(t,e),i=[["M",t.x,t.y]];return i.push(n),i}(r[0],r[1]));return e.addShape("path",{attrs:i.__assign(i.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(6),o=n(9);a.registerShape("edge","vhv",{draw:function(t,e){var n=o.getStyle(t,!0,!1,"lineWidth"),a=t.points,s=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var i=[["M",t.x,t.y]];return r.each(n,(function(t){i.push(["L",t.x,t.y])})),i}(a[0],a[1]));return e.addShape("path",{attrs:i.__assign(i.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(6),a=n(9),o=n(36);r.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,o.getRectPoints(t)},draw:function(t,e){var n=a.getStyle(t,!1,!0),r=this.parsePath(o.getFunnelPath(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:i.__assign(i.__assign({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(6),a=n(9),o=n(36);r.registerShape("interval","hollow-rect",{draw:function(t,e){var n=a.getStyle(t,!0,!1),r=this.parsePath(o.getRectPath(t.points));return e.addShape("path",{attrs:i.__assign(i.__assign({},n),{path:r}),name:"interval"})},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(6),o=n(9),s=n(36);a.registerShape("interval","line",{getPoints:function(t){return n=(e=t).x,i=e.y,a=e.y0,r.isArray(i)?i.map((function(t,e){return{x:r.isArray(n)?n[e]:n,y:t}})):[{x:n,y:a},{x:n,y:i}];var e,n,i,a},draw:function(t,e){var n=o.getStyle(t,!0,!1,"lineWidth"),r=this.parsePath(s.getRectPath(t.points));return e.addShape("path",{attrs:i.__assign(i.__assign({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(6),a=n(9),o=n(36);r.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,o.getRectPoints(t,!0)},draw:function(t,e){var n=a.getStyle(t,!1,!0),r=this.parsePath(o.getFunnelPath(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:i.__assign(i.__assign({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(6),o=n(9);a.registerShape("interval","tick",{getPoints:function(t){return function(t){var e,n,i=t.x,a=t.y,o=t.y0,s=t.size;r.isArray(a)?(e=a[0],n=a[1]):(e=o,n=a);var u=i+s/2,l=i-s/2;return[{x:i,y:e},{x:i,y:n},{x:l,y:e},{x:u,y:e},{x:l,y:n},{x:u,y:n}]}(t)},draw:function(t,e){var n,r=o.getStyle(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:i.__assign(i.__assign({},r),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(6),o=n(69),s=n(9),u=n(100);function l(t,e){var n=o.getPathPoints(t.points,t.connectNulls),a=[];return r.each(n,(function(t){var n=function(t,e){var n=[];return r.each(t,(function(i,r){var a=t[r+1];if(n.push(i),a){var o=function(t,e,n){var i,r=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":i=[{x:o,y:a}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var u=(o+r)/2;i=[{x:u,y:a},{x:u,y:s}];break;case"vhv":var l=(a+s)/2;i=[{x:r,y:l},{x:o,y:l}]}return i}(i,a,e);n=n.concat(o)}})),n}(t,e);a=a.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),i.__assign(i.__assign({},s.getStyle(t,!0,!1,"lineWidth")),{path:a})}r.each(["hv","vh","hvh","vhv"],(function(t){a.registerShape("line",t,{draw:function(e,n){var i=l(e,t);return n.addShape({type:"path",attrs:i,name:"line"})},getMarker:function(e){return u.getLineMarker(e,t)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(37),a=n(6),o=n(71);i.each(o.HOLLOW_SHAPES,(function(t){a.registerShape("point",t,{draw:function(e,n){return o.drawPoints(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:r.MarkerSymbols[t],style:{r:4.5,stroke:n,fill:null}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),r=n(9);i.registerShape("point","image",{draw:function(t,e){var n=r.getStyle(t,!1,!1,"r").r,i=this.parsePoints(t.points),a=i[0];if(t.isStack)a=i[1];else if(i.length>1){for(var o=e.addGroup(),s=0,u=i;s<u.length;s++){var l=u[s];o.addShape("image",{attrs:{x:l.x-n/2,y:l.y-n,width:n,height:n,img:t.shape[1]}})}return o}return e.addShape("image",{attrs:{x:a.x-n/2,y:a.y-n,width:n,height:n,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(37),a=n(6),o=n(71);i.each(o.SHAPES,(function(t){a.registerShape("point",t,{draw:function(e,n){return o.drawPoints(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:r.MarkerSymbols[t]||t,style:{r:4.5,fill:n}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(6),o=n(9);function s(t){var e=r.isArray(t)?t:[t],n=e[0],i=e[e.length-1],a=e.length>1?e[1]:n;return{min:n,max:i,min1:a,max1:e.length>3?e[3]:i,median:e.length>2?e[2]:a}}function u(t,e,n){var i,a=n/2;if(r.isArray(e)){var o=s(e),u=o.min,l=o.max,c=o.median,h=o.min1,p=t-a,f=t+a;i=[[p,l],[f,l],[t,l],[t,d=o.max1],[p,h],[p,d],[f,d],[f,h],[t,h],[t,u],[p,u],[f,u],[p,c],[f,c]]}else{e=r.isNil(e)?.5:e;var d,g=s(t),y=(u=g.min,l=g.max,c=g.median,e-a),v=e+a;i=[[u,y],[u,v],[u,e],[h=g.min1,e],[h,y],[h,v],[d=g.max1,v],[d,y],[d,e],[l,e],[l,y],[l,v],[c,y],[c,v]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}a.registerShape("schema","box",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var n,r=o.getStyle(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:i.__assign(i.__assign({},r),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var i=u(t,[e-6,e-3,e,e+3,e+6],n);return[["M",i[0].x+1,i[0].y],["L",i[1].x-1,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x+1,i[10].y],["L",i[11].x-1,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(21),o=n(6),s=n(9);function u(t,e,n){var i,o,s=(i=e,o=(r.isArray(i)?i:[i]).sort((function(t,e){return e-t})),a.padEnd(o,4,o[o.length-1]));return[{x:t,y:s[0]},{x:t,y:s[1]},{x:t-n/2,y:s[2]},{x:t-n/2,y:s[1]},{x:t+n/2,y:s[1]},{x:t+n/2,y:s[2]},{x:t,y:s[2]},{x:t,y:s[3]}]}o.registerShape("schema","candle",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var n,r=s.getStyle(t,!0,!0),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:i.__assign(i.__assign({},r),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=u(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.setLabelPosition=function(t,e,n,i){var a=this.getCoordinate(),o=a.isTransposed,s=e.points,u=a.convert(s[0]),l=a.convert(s[2]),c=o?-1:1,h=(u.x-l.x)/2*c,p=(u.y-l.y)/2*c;switch(i){case"right":o||(t.x-=h,t.y+=p),t.textAlign=r.get(t,"textAlign","left");break;case"left":o?t.x-=2*h:(t.x+=h,t.y+=p),t.textAlign=r.get(t,"textAlign","right");break;case"bottom":o?(t.x-=h,t.y-=p):t.y+=2*p,t.textAlign=r.get(t,"textAlign","center"),t.textBaseline=r.get(t,"textBaseline","top");break;case"middle":o?t.x-=h:t.y+=p,t.textAlign=r.get(t,"textAlign","center");break;case"top":o&&(t.x-=h,t.y+=p),t.textAlign=r.get(t,"textAlign","center"),t.textBaseline=r.get(t,"textBaseline","bottom")}},e}(i.__importDefault(n(41)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(16),o=n(14),s=function(t){function e(e){var n=t.call(this,e)||this;return n.defaultLayout="distribute",n}return i.__extends(e,t),e.prototype.getDefaultLabelCfg=function(){return r.get(this.geometry.theme,"pieLabels",{})},e.prototype.getDefaultOffset=function(t){return t||0},e.prototype.getLabelRotate=function(t,e,n){var i;return e<0&&((i=t)>Math.PI/2&&(i-=Math.PI),i<-Math.PI/2&&(i+=Math.PI)),i},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",this.getDefaultOffset(t.offset)<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),i={x:r.isArray(t.x)?t.x[0]:t.x,y:t.y[0]},o={x:r.isArray(t.x)?t.x[1]:t.x,y:t.y[1]},s=a.getAngleByPoint(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var u=a.getAngleByPoint(n,o);s>=u&&(u+=2*Math.PI),e=s+(u-s)/2}return e},e.prototype.getCirclePoint=function(t,e,n){var r=this.getCoordinate(),a=r.getCenter(),s=r.getRadius()+e;return i.__assign(i.__assign({},o.polarToCartesian(a.x,a.y,s,t)),{angle:t,r:s})},e}(i.__importDefault(n(103)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(14);e.distribute=function(t,e,n,a){var o=t[0]?t[0].offset:0,s=e[0].get("coordinate"),u=s.getRadius(),l=s.getCenter();if(o>0){var c=2*(u+o)+28,h={start:s.start,end:s.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,n){var i=c/14;t.length>i&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(i,t.length-i)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,i,r,a){var o,s=!0,u=i.start,l=i.end,c=Math.min(u.y,l.y),h=Math.abs(u.y-l.y),p=0,f=Number.MIN_VALUE,d=e.map((function(t){return t.y>p&&(p=t.y),t.y<f&&(f=t.y),{size:n,targets:[t.y-c]}}));for(f-=c,p-c>h&&(h=p-c);s;)for(d.forEach((function(t){var e=(Math.min.apply(f,t.targets)+Math.max.apply(f,t.targets))/2;t.pos=Math.min(Math.max(f,e-t.size/2),h-t.size)})),s=!1,o=d.length;o--;)if(o>0){var g=d[o-1],y=d[o];g.pos+g.size>y.pos&&(g.size+=y.size,g.targets=g.targets.concat(y.targets),g.pos+g.size>h&&(g.pos=h-g.size),d.splice(o,1),s=!0)}o=0,d.forEach((function(t){var i=c+n/2;t.targets.forEach((function(){e[o].y=t.pos+i,i+=n,o++}))}));for(var v={},m=0,x=t;m<x.length;m++){var b=x[m];v[b.get("id")]=b}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var i=Math.sqrt(e-n);t.x=a?r.x+i:r.x-i}var o=v[t.id];o.attr("x",t.x),o.attr("y",t.y)}))}(e,t,14,h,l,n)}))}i.each(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,a=r.polarToCartesian(l.x,l.y,u,n),o=r.polarToCartesian(l.x,l.y,u+e/2,n),s=t.x+i.get(t,"offsetX",0),c=t.y+i.get(t,"offsetY",0),h={x:s-4*Math.cos(n),y:c-4*Math.sin(n)};i.isObject(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M "+a.x,a.y+" Q"+o.x,o.y+" "+h.x,h.y].join(",")}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(64);e.limitInCanvas=function(t,e,n,a){i.each(e,(function(t){var e=a.minX,n=a.minY,i=a.maxX,o=a.maxY,s=t.getCanvasBBox(),u=s.minX,l=s.minY,c=s.maxX,h=s.maxY,p=s.x,f=s.y,d=s.width,g=s.height,y=p,v=f;(u<e||c<e)&&(y=e),(l<n||h<n)&&(v=n),u>i?y=i-d:c>i&&(y-=c-i),l>o?v=o-g:h>o&&(v-=h-o),y===p&&v===f||r.translate(t,y-p,v-f)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.limitInShape=function(t,e,n,r){i.each(e,(function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minX<r.minX||i.minY<r.minY||i.maxX>r.maxX||i.maxY>r.maxY)&&t.remove(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,i=t.yGap,r=void 0===i?8:i;this.xGap=n,this.yGap=r}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.round(t.minX),r=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var u=a;u<=o;u++)if(n[s][u]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),i=Math.round(t.maxX),r=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=i;o+=1)e[o]||(e[o]={});for(o=n;o<=i;o+=this.xGap){for(var s=r;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=r;o<=a;o+=1)e[n][o]=!0,e[i][o]=!0;if(1!==this.xGap)for(o=n;o<=i;o+=1)e[o][r]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function a(t,e,n,i){var r=t.getCanvasBBox(),a=r.width,o=r.height,s={x:e,y:n,textAlign:"center"};switch(i){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}e.fixedOverlap=function(t,e,n,a){var o=new r;i.each(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var i,r=t.attr(),a=r.x,o=r.y,s=t.getCanvasBBox(),u=Math.sqrt(s.width*s.width+s.height*s.height),l=1,c=0,h=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var p,f,d=!1,g=0,y={};Math.min(Math.abs(c),Math.abs(h))<u&&g<n;)if(p=l+=-1,f=void 0,h=~~(i=[(f=.1*p)*Math.cos(f),f*Math.sin(f)])[1],((c=~~i[0])||h)&&!y[c+"-"+h]&&(t.attr({x:a+c,y:o+h}),c+h<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,y[c+"-"+h]=!0;break}return d})(t.find((function(t){return"text"===t.get("type")})),o)||t.remove(!0)})),o.destroy()},e.overlap=function(t,e,n,o){var s=new r;i.each(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),i=n.x,r=n.y,o=!1,u=0;u<=8;u++){var l=a(e,i,r,u);if(s.hasGap(l)){s.fillGap(l),o=!0;break}}o||t.remove(!0)})),s.destroy()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.fadeIn=function(t,e,n){var r={fillOpacity:i.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:i.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:i.isNil(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)},e.fadeOut=function(t,e,n){var i=e.easing,r=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},r,i,(function(){t.remove(!0)}),a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(208);e.growInX=function(t,e,n){var r=n.coordinate,a=n.minYPoint;i.doScaleAnimate(t,e,r,a,"x")},e.growInY=function(t,e,n){var r=n.coordinate,a=n.minYPoint;i.doScaleAnimate(t,e,r,a,"y")},e.growInXY=function(t,e,n){var r=n.coordinate,a=n.minYPoint;i.doScaleAnimate(t,e,r,a,"xy")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);function r(t,e,n){var r,a=e[0],o=e[1];return t.applyToMatrix([a,o,1]),"x"===n?(t.setMatrix(i.transform(t.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),r=i.transform(t.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):"y"===n?(t.setMatrix(i.transform(t.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),r=i.transform(t.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):"xy"===n&&(t.setMatrix(i.transform(t.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),r=i.transform(t.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),r}e.transformShape=r,e.doScaleAnimate=function(t,e,n,i,a){var o,s,u=n.start,l=n.end,c=n.getWidth(),h=n.getHeight();"y"===a?(o=u.x+c/2,s=i.y<u.y?i.y:u.y):"x"===a?(o=i.x>u.x?i.x:u.x,s=u.y+h/2):"xy"===a&&(n.isPolar?(o=n.getCenter().x,s=n.getCenter().y):(o=(u.x+l.x)/2,s=(u.y+l.y)/2));var p=r(t,[o,s],a);t.animate({matrix:p},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathIn=function(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=function(t,e,n){var i=n.toAttrs,r=i.x,a=i.y;delete i.x,delete i.y,t.attr(i),t.animate({x:r,y:a},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);e.scaleInX=function(t,e,n){var r=t.getBBox(),a=t.get("origin").mappingData.points,o=a[0].y-a[1].y>0?r.maxX:r.minX,s=(r.minY+r.maxY)/2;t.applyToMatrix([o,s,1]);var u=i.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(u),t.animate({matrix:i.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},e.scaleInY=function(t,e,n){var r=t.getBBox(),a=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,s=a.points,u=s[0].y-s[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,u,1]);var l=i.transform(t.getMatrix(),[["t",-o,-u],["s",1,.01],["t",o,u]]);t.setMatrix(l),t.animate({matrix:i.transform(t.getMatrix(),[["t",-o,-u],["s",1,100],["t",o,u]])},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=i.__importDefault(n(213)),a=n(0),o=n(14);function s(t,e){var n,i=r.default(t,e),o=i.startAngle,s=i.endAngle;return!a.isNumberEqual(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),!a.isNumberEqual(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),0===e[5]&&(o=(n=[s,o])[0],s=n[1]),a.isNumberEqual(o,1.5*Math.PI)&&(o=-.5*Math.PI),a.isNumberEqual(s,-.5*Math.PI)&&(s=1.5*Math.PI),{startAngle:o,endAngle:s}}function u(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function l(t){var e,n,i,r=t.filter((function(t){return"A"===t[0]||"a"===t[0]})),o=r[0],l=r.length>1?r[1]:r[0],c=t.indexOf(o),h=t.indexOf(l),p=u(t[c-1]),f=u(t[h-1]),d=s(p,o),g=d.startAngle,y=d.endAngle,v=s(f,l),m=v.startAngle,x=v.endAngle;a.isNumberEqual(g,m)&&a.isNumberEqual(y,x)?(n=g,i=y):(n=Math.min(g,m),i=Math.max(y,x));var b=o[1],_=r[r.length-1][1];return b<_?(b=(e=[_,b])[0],_=e[1]):b===_&&(_=0),{startAngle:n,endAngle:i,radius:b,innerRadius:_}}e.sectorPathUpdate=function(t,e,n){var r=n.toAttrs,s=n.coordinate,u=r.path,c=u.map((function(t){return t[0]})),h=l(u),p=h.startAngle,f=h.endAngle,d=h.radius,g=h.innerRadius,y=l(t.attr("path")),v=y.startAngle,m=y.endAngle,x=s.getCenter(),b=p-v,_=f-m;t.animate((function(t){var e=v+t*b,n=m+t*_;return i.__assign(i.__assign({},r),{path:a.isEqual(c,["M","A","A","Z"])?o.getArcPath(x.x,x.y,d,e,n):o.getSectorPath(x.x,x.y,d,e,n,g)})}),i.__assign(i.__assign({},e),{callback:function(){t.attr("path",u)}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(214);function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}e.default=function(t,e){var n=e[1],r=e[2],s=i.mod(i.toRadian(e[3]),2*Math.PI),u=e[4],l=e[5],c=t[0],h=t[1],p=e[6],f=e[7],d=Math.cos(s)*(c-p)/2+Math.sin(s)*(h-f)/2,g=-1*Math.sin(s)*(c-p)/2+Math.cos(s)*(h-f)/2,y=d*d/(n*n)+g*g/(r*r);y>1&&(n*=Math.sqrt(y),r*=Math.sqrt(y));var v=n*n*(g*g)+r*r*(d*d),m=v?Math.sqrt((n*n*(r*r)-v)/v):1;u===l&&(m*=-1),isNaN(m)&&(m=0);var x=r?m*n*g/r:0,b=n?m*-r*d/n:0,_=(c+p)/2+Math.cos(s)*x-Math.sin(s)*b,M=(h+f)/2+Math.sin(s)*x+Math.cos(s)*b,C=[(d-x)/n,(g-b)/r],w=[(-1*d-x)/n,(-1*g-b)/r],O=o([1,0],C),S=o(C,w);return a(C,w)<=-1&&(S=Math.PI),a(C,w)>=1&&(S=0),0===l&&S>0&&(S-=2*Math.PI),1===l&&S<0&&(S+=2*Math.PI),{cx:_,cy:M,rx:i.isSamePoint(t,[p,f])?0:n,ry:i.isSamePoint(t,[p,f])?0:r,startAngle:O,endAngle:O+S,xRotation:s,arcFlag:u,sweepFlag:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPixelRatio=function(){return window?window.devicePixelRatio:1},e.distance=function(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)},e.inBox=function(t,e,n,i,r,a){return r>=t&&r<=t+n&&a>=e&&a<=e+i},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},e.mergeRegion=function(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e},e.isSamePoint=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var i=n(25);e.isNil=i.default;var r=n(19);e.isString=r.default;var a=n(29);e.isFunction=a.default;var o=n(13);e.isArray=o.default;var s=n(20);e.each=s.default;var u=n(33);e.toRadian=u.default;var l=n(32);e.mod=l.default;var c=n(42);e.isNumberEqual=c.default;var h=n(65);e.requestAnimationFrame=h.default;var p=n(66);e.clearAnimationFrame=p.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(16);e.waveIn=function(t,e,n){var a=r.getCoordinateClipCfg(n.coordinate,20),o=a.type,s=a.startState,u=a.endState,l=t.setClip({type:o,attrs:s});l.animate(u,i.__assign(i.__assign({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),l.remove(!0)}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(2),a=n(0);function o(t,e,n){if(t.isGroup())a.each(t.getChildren(),(function(t){o(t,e,n)}));else{var s=t.getBBox(),u=(s.minX+s.maxX)/2,l=(s.minY+s.maxY)/2;if(t.applyToMatrix([u,l,1]),"zoomIn"===n){var c=r.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]]);t.setMatrix(c),t.animate({matrix:r.transform(t.getMatrix(),[["t",-u,-l],["s",100,100],["t",u,l]])},e)}else t.animate({matrix:r.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]])},i.__assign(i.__assign({},e),{callback:function(){t.remove(!0)}}))}}e.zoomIn=function(t,e,n){o(t,e,"zoomIn")},e.zoomOut=function(t,e,n){o(t,e,"zoomOut")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){return r.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,i=-1*Math.PI/2+n*e,r=.5/(1+1/Math.sin(n/2)),a=o.getAnglePoint({x:.5,y:.5},.5-r,i),s=5*Math.PI/4,u=1*Math.PI/4;return{start:o.getAnglePoint(a,r,s),end:o.getAnglePoint(a,r,u)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,i=n.fields,a=n.type,o=i[0];if(!o)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,o),u=s.length,l=[];return s.forEach((function(n,i){var c=[{field:o,value:n,values:s}],h=r.filter(t,e.getFacetDataFilter(c)),p={type:a,data:h,region:e.getRegion(u,i),columnValue:n,columnField:o,columnIndex:i,columnValuesLength:u,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};l.push(p)})),l},e.prototype.getXAxisOption=function(t,e,n,i){return n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e){var n=e.columnValue,i=e.view,s=r.deepMix({position:["50%","0%"],content:n},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);i.annotation().text(s)}))},e}(n(23).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){return r.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=this.cfg.cols,a=n[0];if(!a)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,a),s=o.length;i=i||s;var u=this.getPageCount(s,i),l=[];return o.forEach((function(n,c){var h=e.getRowCol(c,i),p=h.row,f=h.col,d=[{field:a,value:n,values:o}],g=r.filter(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,i,f,p),columnValue:n,rowValue:n,columnField:a,rowField:null,columnIndex:f,rowIndex:p,columnValuesLength:i,rowValuesLength:u,total:s};l.push(y)})),l},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1&&r.columnValuesLength*r.rowIndex+r.columnIndex+1+r.columnValuesLength<=r.total?i.__assign(i.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?i.__assign(i.__assign({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e){var n=e.columnValue,i=e.view,s=r.deepMix({position:["50%","0%"],content:n},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);i.annotation().text(s)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(n(23).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){return r.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:i.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:i.__assign({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,i=e.type,r=n.length,a=r,o=[],s=0;s<a;s++)for(var u=n[s],l=0;l<r;l++){var c=n[l],h={type:i,data:t,region:this.getRegion(r,a,s,l),columnValue:u,rowValue:c,columnField:u,rowField:c,columnIndex:s,rowIndex:l,columnValuesLength:a,rowValuesLength:r};o.push(h)}return o},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?i.__assign(i.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?i.__assign(i.__assign({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e,n){var i=e.columnIndex,s=e.rowIndex,u=e.columnValuesLength,l=(e.rowValuesLength,e.columnValue),c=e.rowValue,h=e.view;if(0===s){var p=r.deepMix({position:["50%","0%"],content:l},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(i===u-1){p=r.deepMix({position:["100%","50%"],content:c},o.getFactTitleConfig(a.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e}(n(23).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){return r.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,i=this,a=this.cfg.fields[0],o=[],s=1,u=1,l=[""],c=[""];return this.cfg.transpose?(e=a,l=this.getFieldValues(t,e).slice(0,2),s=l.length):(n=a,c=this.getFieldValues(t,n).slice(0,2),u=c.length),l.forEach((function(a,h){c.forEach((function(p,f){var d=[{field:e,value:a,values:l},{field:n,value:p,values:c}],g=r.filter(t,i.getFacetDataFilter(d)),y={type:i.cfg.type,data:g,region:i.getRegion(u,s,h,f),columnValue:a,rowValue:p,columnField:e,rowField:n,columnIndex:h,rowIndex:f,columnValuesLength:s,rowValuesLength:u};o.push(y)}))})),o},e.prototype.getXAxisOption=function(t,e,n,r){return 1===r.columnIndex||1===r.rowIndex?i.__assign(i.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e,n){var i=e.columnValue,s=e.rowValue,u=e.view;if(t.cfg.transpose){var l=r.deepMix({position:["50%","0%"],content:i},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);u.annotation().text(l)}else{l=r.deepMix({position:["100%","50%"],content:s},o.getFactTitleConfig(a.DIRECTION.RIGHT),t.cfg.title);u.annotation().text(l)}}))},e}(n(23).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return r.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:i.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:i.__assign({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=n[0],a=n[1],o=[],s=1,u=1,l=[""],c=[""];return i&&(l=this.getFieldValues(t,i),s=l.length),a&&(c=this.getFieldValues(t,a),u=c.length),l.forEach((function(n,h){c.forEach((function(p,f){var d=[{field:i,value:n,values:l},{field:a,value:p,values:c}],g=r.filter(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,s,h,f),columnValue:n,rowValue:p,columnField:i,rowField:a,columnIndex:h,rowIndex:f,columnValuesLength:s,rowValuesLength:u};o.push(y)}))})),o},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e,n){var i=e.columnIndex,s=e.rowIndex,u=e.columnValuesLength,l=(e.rowValuesLength,e.columnValue),c=e.rowValue,h=e.view;if(0===s){var p=r.deepMix({position:["50%","0%"],content:l},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(i===u-1){p=r.deepMix({position:["100%","50%"],content:c},o.getFactTitleConfig(a.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?i.__assign(i.__assign({},n),{title:null,label:null}):r.columnIndex!==Math.floor((r.columnValuesLength-1)/2)?i.__assign(i.__assign({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?i.__assign(i.__assign({},n),{title:null,label:null}):r.rowIndex!==Math.floor((r.rowValuesLength-1)/2)?i.__assign(i.__assign({},n),{title:null}):n},e}(n(23).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(31),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return i.__extends(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return r.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,i){var r=1/e,a=1/t,o={x:r*n,y:a*i};return{start:o,end:{x:o.x+r,y:o.y+2*a/3}}},e.prototype.forceColIndex=function(t){var e=this,n=[],i=0;t.forEach((function(t){e.isLeaf(t)&&(n.push(t),t.columnIndex=i,i++)})),n.forEach((function(t){t.columnValuesLength=n.length}));for(var r=this.cfg.fields.length-1;r>=0;r--)for(var a=0,o=this.getFacetsByLevel(t,r);a<o.length;a++){var s=o[a];this.isLeaf(s)||(s.originColIndex=s.columnIndex,s.columnIndex=this.getRegionIndex(s.children),s.columnValuesLength=n.length)}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var i=this,r=this.cfg.fields;if(!(r.length<e)){var a=[],o=r[e-1],s=this.getFieldValues(t,o);return s.forEach((function(r,u){var l=[{field:o,value:r,values:s}],c=t.filter(i.getFacetDataFilter(l));if(c.length){var h={type:i.cfg.type,data:c,region:null,columnValue:r,rowValue:"",columnField:o,rowField:"",columnIndex:u,rowValuesLength:i.getRows(),columnValuesLength:1,rowIndex:e,children:i.getChildFacets(c,e+1,n)};a.push(h),n.push(h)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e){var n=e.columnValue,i=e.view,s=r.deepMix({position:["50%","0%"],content:n},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);i.annotation().text(s)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,i=t.view.coordinateBBox,r={x:i.x+i.width/2,y:i.y+i.height};e.forEach((function(t){var e=t.view.coordinateBBox,i={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},a={x:r.x,y:r.y+(i.y-r.y)/2},o={x:i.x,y:a.y};n.drawLine([r,a,o,i])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:r.assign({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?i.__assign(i.__assign({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.originColIndex&&0!==r.columnIndex?i.__assign(i.__assign({},n),{title:null,label:null}):n},e}(n(23).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(24),o=n(26),s=n(5),u=n(16),l=n(21),c=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(s.LAYER.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(s.LAYER.BG).addGroup(),n.option=[],n}return i.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){var t=this,e=this.getComponents(),n=function(e){var n=e.component,i=e.extra,r=i.type,a=t.getAnnotationTheme(r);n.update(t.getAnnotationCfg(r,i,a))},i=function(e){var n=t.createAnnotation(e);n&&(n.component.init(),"regionFilter"===e.type&&n.component.render(),t.cache.set(e,n))};e.length?r.each(e,(function(e){"regionFilter"===e.component.get("type")?t.view.once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){n(e)})):n(e)})):r.each(this.option,(function(e){"regionFilter"===e.type?t.view.once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){i(e)})):i(e)}))},e.prototype.render=function(){},e.prototype.update=function(){var t=this,e=new WeakMap,n=function(n){var i=n.type,r=t.getAnnotationTheme(i),a=t.getAnnotationCfg(i,n,r),o=t.cache.get(n);if(o)l.omit(a,["container"]),o.component.update(a),e.set(n,!0);else{var s=t.createAnnotation(n);s&&(s.component.init(),"regionFilter"===n.type&&s.component.render(),t.cache.set(n,s),e.set(n,!0))}};this.view.once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){r.each(t.option,(function(t){"regionFilter"===t.type&&n(t)}));var i=new Map;t.cache.forEach((function(t,n){e.has(n)?i.set(n,t):t.component.destroy()})),t.cache=i})),r.each(this.option,(function(t){"regionFilter"!==t.type&&n(t)}))},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.cache.clear(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.createAnnotation=function(t){var e=t.type,n=a.Annotation[r.upperFirst(e)];if(n){var i=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,i);return{component:new n(o),layer:this.isTop(o)?s.LAYER.FORE:s.LAYER.BG,direction:s.DIRECTION.NONE,type:s.COMPONENT_TYPE.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(i.__assign({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(i.__assign({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(i.__assign({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(i.__assign({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(i.__assign({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(i.__assign({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(i.__assign({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(i.__assign({type:"regionFilter"},t))},e.prototype.parsePosition=function(t){var e=this.view.getXScale(),n=this.view.getScalesByDim("y"),i=r.isFunction(t)?t.call(null,e,n):t,a=0,o=0;if(r.isArray(i)){var s=i[0],u=i[1];if(r.isString(s)&&-1!==s.indexOf("%")&&!isNaN(s.slice(0,-1)))return this.parsePercentPosition(i);a=this.getNormalizedValue(s,e),o=this.getNormalizedValue(u,Object.values(n)[0])}else if(!r.isNil(i))for(var l=0,c=r.keys(i);l<c.length;l++){var h=c[l],p=i[h];h===e.field&&(a=this.getNormalizedValue(p,e)),n[h]&&(o=this.getNormalizedValue(p,n[h]))}return this.view.getCoordinate().convert({x:a,y:o})},e.prototype.getRegionPoints=function(t,e){var n,i=this,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=Object.values(o)[0],u=a.field,l=this.view.getData(),c=r.isArray(t)?t[0]:t[u],h=r.isArray(e)?e[0]:e[u],p=[];return r.each(l,(function(t,e){if(t[u]===c&&(n=e),e>=n){var r=i.parsePosition([t[u],t[s.field]]);r&&p.push(r)}if(t[u]===h)return!1})),p},e.prototype.getNormalizedValue=function(t,e){var n,i;switch(t){case"start":n=0;break;case"end":n=1;break;case"median":i=e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2,n=e.scale(i);break;case"min":case"max":i=e.isCategory?"min"===t?0:e.values.length-1:e[t],n=e.scale(i);break;default:n=e.scale(t)}return n},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,i=this.view.getCoordinate(),r=i.start,a=i.end,o=Math.min(r.x,a.x),s=Math.min(r.y,a.y);return{x:i.getWidth()*e+o,y:i.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,i=t.getWidth(),r=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+i,maxY:a.y+r,width:i,height:r}},e.prototype.getAnnotationCfg=function(t,e,n){var a=this.view.getCoordinate(),s={};if(r.isNil(e))return null;if("arc"===t){var l=e,c=l.start,h=l.end,p=this.parsePosition(c),f=this.parsePosition(h),d=u.getAngleByPoint(a,p),g=u.getAngleByPoint(a,f);d>g&&(g=2*Math.PI+g),s={center:a.getCenter(),radius:u.getDistanceToCenter(a,p),startAngle:d,endAngle:g}}else if("image"===t){var y=e;c=y.start,h=y.end;s={start:this.parsePosition(c),end:this.parsePosition(h),src:e.src}}else if("line"===t){var v=e;c=v.start,h=v.end;s={start:this.parsePosition(c),end:this.parsePosition(h),text:r.get(e,"text",null)}}else if("region"===t){var m=e;c=m.start,h=m.end;s={start:this.parsePosition(c),end:this.parsePosition(h)}}else if("text"===t){var x=e,b=x.position,_=x.rotate;s=i.__assign(i.__assign({},this.parsePosition(b)),{content:e.content,rotate:_})}else if("dataMarker"===t){var M=e,C=(b=M.position,M.point),w=M.line,O=M.text,S=M.autoAdjust,A=M.direction;s=i.__assign(i.__assign({},this.parsePosition(b)),{coordinateBBox:this.getCoordinateBBox(),point:C,line:w,text:O,autoAdjust:S,direction:A})}else if("dataRegion"===t){var P=e,I=(c=P.start,h=P.end,P.region),T=(O=P.text,P.lineLength);s={points:this.getRegionPoints(c,h),region:I,text:O,lineLength:T}}else if("regionFilter"===t){var E=e,L=(c=E.start,h=E.end,E.apply),j=E.color,k=this.view.geometries,B=[],D=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return D(t)})):B.push(t))};r.each(k,(function(t){L?r.contains(L,t.type)&&r.each(t.elements,(function(t){D(t.shape)})):r.each(t.elements,(function(t){D(t.shape)}))})),s={color:j,shapes:B,start:this.parsePosition(c),end:this.parsePosition(h)}}var F=r.deepMix({},n,i.__assign(i.__assign({},s),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return F.container=this.getComponentContainer(F),F.animate=this.view.getOptions().animate&&F.animate&&r.get(e,"animate",F.animate),F.animateOption=r.deepMix({},o.DEFAULT_ANIMATE_CFG,F.animateOption,e.animateOption),F},e.prototype.isTop=function(t){return r.get(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return r.get(this.view.getTheme(),["components","annotation",t],{})},e}(n(30).Controller);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(24),s=n(26),u=n(55),l=n(55),c=n(225),h=n(21),p=n(30),f=["container"],d=i.__assign(i.__assign({},s.DEFAULT_ANIMATE_CFG),{appear:null}),g=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.axisContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n}return i.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().axes,this.createXAxes(),this.createYAxes()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();r.each(this.getComponents(),(function(n){var i,r=n.component,o=n.direction,s=n.type,l=n.extra,h=l.dim,p=l.scale,f=l.alignTick;if(s===a.COMPONENT_TYPE.AXIS)e.isPolar?"x"===h?i=e.isTransposed?u.getAxisRegion(e,o):u.getCircleAxisCenterRadius(e):"y"===h&&(i=e.isTransposed?u.getCircleAxisCenterRadius(e):u.getAxisRegion(e,o)):i=u.getAxisRegion(e,o);else if(s===a.COMPONENT_TYPE.GRID)if(e.isPolar){i={items:e.isTransposed?"x"===h?c.getCircleGridItems(e,t.view.getYScales()[0],p,f,h):c.getLineGridItems(e,p,h,f):"x"===h?c.getLineGridItems(e,p,h,f):c.getCircleGridItems(e,t.view.getXScale(),p,f,h),center:t.view.getCoordinate().getCenter()}}else i={items:c.getLineGridItems(e,p,h,f)};r.update(i)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,i){t.has(i)?e.set(i,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.axisContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.axisContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=e.field,i=l.getAxisOption(this.option,e.field);if(!1!==i){var o=this.view.getCoordinate(),s=this.getId("axis",n),c=this.getId("grid",n),p=u.getAxisDirection(i,a.DIRECTION.BOTTOM),d=a.LAYER.BG;if(o.isRect){if(y=this.cache.get(s)){var g=this.getLineAxisCfg(e,i,p);h.omit(g,f),y.component.update(g),t.set(s,y)}else y=this.createLineAxis(e,i,d,p,"x"),this.cache.set(s,y),t.set(s,y);if(v=this.cache.get(c)){g=this.getLineGridCfg(e,i,p,"x");h.omit(g,f),v.component.update(g),t.set(c,v)}else(v=this.createLineGrid(e,i,d,p,"x"))&&(this.cache.set(c,v),t.set(c,v))}else if(o.isPolar){var y,v;if(y=this.cache.get(s)){g=o.isTransposed?this.getLineAxisCfg(e,i,"radius"):this.getCircleAxisCfg(e,i,p);h.omit(g,f),y.component.update(g),t.set(s,y)}else{if(o.isTransposed){if(r.isUndefined(i))return;y=this.createLineAxis(e,i,d,"radius","x")}else y=this.createCircleAxis(e,i,d,p,"x");this.cache.set(s,y),t.set(s,y)}if(v=this.cache.get(c)){g=o.isTransposed?this.getCircleGridCfg(e,i,"radius","x"):this.getLineGridCfg(e,i,"circle","x");h.omit(g,f),v.component.update(g),t.set(c,v)}else{if(o.isTransposed){if(r.isUndefined(i))return;v=this.createCircleGrid(e,i,d,"radius","x")}else v=this.createLineGrid(e,i,d,"circle","x");v&&(this.cache.set(c,v),t.set(c,v))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();r.each(n,(function(n,i){if(n&&!n.isIdentity){var o=n.field,s=l.getAxisOption(e.option,o);if(!1!==s){var c=a.LAYER.BG,p=e.getId("axis",o),d=e.getId("grid",o),g=e.view.getCoordinate();if(g.isRect){var y=u.getAxisDirection(s,0===i?a.DIRECTION.LEFT:a.DIRECTION.RIGHT);if(m=e.cache.get(p)){var v=e.getLineAxisCfg(n,s,y);h.omit(v,f),m.component.update(v),t.set(p,m)}else m=e.createLineAxis(n,s,c,y,"y"),e.cache.set(p,m),t.set(p,m);if(x=e.cache.get(d)){v=e.getLineGridCfg(n,s,y,"y");h.omit(v,f),x.component.update(v),t.set(d,x)}else(x=e.createLineGrid(n,s,c,y,"y"))&&(e.cache.set(d,x),t.set(d,x))}else if(g.isPolar){var m,x;if(m=e.cache.get(p)){v=g.isTransposed?e.getCircleAxisCfg(n,s,"circle"):e.getLineAxisCfg(n,s,"radius");h.omit(v,f),m.component.update(v),t.set(p,m)}else{if(g.isTransposed){if(r.isUndefined(s))return;m=e.createCircleAxis(n,s,c,"circle","y")}else m=e.createLineAxis(n,s,c,"radius","y");e.cache.set(p,m),t.set(p,m)}if(x=e.cache.get(d)){v=g.isTransposed?e.getLineGridCfg(n,s,"circle","y"):e.getCircleGridCfg(n,s,"radius","y");h.omit(v,f),x.component.update(v),t.set(d,x)}else{if(g.isTransposed){if(r.isUndefined(s))return;x=e.createLineGrid(n,s,c,"circle","y")}else x=e.createCircleGrid(n,s,c,"radius","y");x&&(e.cache.set(d,x),t.set(d,x))}}}}}))},e.prototype.createXAxes=function(){var t=this.view.getXScale();if(t&&!t.isIdentity){var e=l.getAxisOption(this.option,t.field);if(!1!==e){var n=u.getAxisDirection(e,a.DIRECTION.BOTTOM),i=a.LAYER.BG,o=this.view.getCoordinate(),s=this.getId("axis",t.field),c=this.getId("grid",t.field);if(o.isRect){var h=this.createLineAxis(t,e,i,n,"x");this.cache.set(s,h),(p=this.createLineGrid(t,e,i,n,"x"))&&this.cache.set(c,p)}else if(o.isPolar){h=void 0;var p=void 0;if(o.isTransposed){if(r.isUndefined(e))return;h=this.createLineAxis(t,e,i,"radius","x"),p=this.createCircleGrid(t,e,i,"radius","x")}else h=this.createCircleAxis(t,e,i,n,"x"),p=this.createLineGrid(t,e,i,"circle","x");this.cache.set(s,h),p&&this.cache.set(c,p)}}}},e.prototype.createYAxes=function(){var t=this,e=this.view.getYScales();r.each(e,(function(e,n){if(e&&!e.isIdentity){var i=e.field,o=l.getAxisOption(t.option,i);if(!1!==o){var s=a.LAYER.BG,c=t.getId("axis",i),h=t.getId("grid",i),p=t.view.getCoordinate();if(p.isRect){var f=u.getAxisDirection(o,0===n?a.DIRECTION.LEFT:a.DIRECTION.RIGHT),d=t.createLineAxis(e,o,s,f,"y");t.cache.set(c,d),(g=t.createLineGrid(e,o,s,f,"y"))&&t.cache.set(h,g)}else if(p.isPolar){d=void 0;var g=void 0;if(p.isTransposed){if(r.isUndefined(o))return;d=t.createCircleAxis(e,o,s,"circle","y"),g=t.createLineGrid(e,o,s,"circle","y")}else d=t.createLineAxis(e,o,s,"radius","y"),g=t.createCircleGrid(e,o,s,"radius","y");t.cache.set(t.getId("axis",e.field),d),g&&t.cache.set(h,g)}}}}))},e.prototype.createLineAxis=function(t,e,n,i,r){var s={component:new o.LineAxis(this.getLineAxisCfg(t,e,i)),layer:n,direction:"radius"===i?a.DIRECTION.NONE:i,type:a.COMPONENT_TYPE.AXIS,extra:{dim:r,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,i,s){var u=this.getLineGridCfg(t,e,i,s);if(u){var l={component:new o.LineGrid(u),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:r.get(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,i,r){var s={component:new o.CircleAxis(this.getCircleAxisCfg(t,e,i)),layer:n,direction:i,type:a.COMPONENT_TYPE.AXIS,extra:{dim:r,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,e,n,i,s){var u=this.getCircleGridCfg(t,e,i,s);if(u){var l={component:new o.CircleGrid(u),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:r.get(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var a=this.axisContainer,o=this.view.getCoordinate(),s=u.getAxisRegion(o,n),l=u.getAxisTitleText(t,e),c=u.getAxisThemeCfg(this.view.getTheme(),n),h=r.get(e,["title"])?r.deepMix({title:{style:{text:l}}},e):e,p=r.deepMix(i.__assign(i.__assign({container:a},s),{ticks:t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}})),verticalFactor:o.isPolar?-1*u.getAxisFactorByRegion(s,o.getCenter()):u.getAxisFactorByRegion(s,o.getCenter())}),c,h),f=this.getAnimateCfg(p),d=f.animate,g=f.animateOption;return p.animateOption=g,p.animate=d,p},e.prototype.getLineGridCfg=function(t,e,n,i){if(c.showGrid(u.getAxisThemeCfg(this.view.getTheme(),n),e)){var a=c.getGridThemeCfg(this.view.getTheme(),n),o=r.deepMix({container:this.gridContainer},a,r.get(e,"grid"),this.getAnimateCfg(e));return o.items=c.getLineGridItems(this.view.getCoordinate(),t,i,r.get(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var a=this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}}));t.isCategory||Math.abs(o.endAngle-o.startAngle)!==2*Math.PI||s.pop();var l=u.getAxisTitleText(t,e),c=u.getAxisThemeCfg(this.view.getTheme(),"circle"),h=r.get(e,["title"])?r.deepMix({title:{style:{text:l}}},e):e,p=r.deepMix(i.__assign(i.__assign({container:a},u.getCircleAxisCenterRadius(this.view.getCoordinate())),{ticks:s,verticalFactor:1}),c,h),f=this.getAnimateCfg(p),d=f.animate,g=f.animateOption;return p.animate=d,p.animateOption=g,p},e.prototype.getCircleGridCfg=function(t,e,n,i){if(c.showGrid(u.getAxisThemeCfg(this.view.getTheme(),n),e)){var a=c.getGridThemeCfg(this.view.getTheme(),"radius"),o=r.deepMix({container:this.gridContainer,center:this.view.getCoordinate().getCenter()},a,r.get(e,"grid"),this.getAnimateCfg(e)),s=r.get(o,"alignTick",!0),l="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=c.getCircleGridItems(this.view.getCoordinate(),l,t,s,i),o}},e.prototype.getId=function(t,e){return t+"-"+e+"-"+this.view.getCoordinate().type},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&r.get(t,"animate"),animateOption:t&&t.animateOption?r.deepMix({},d,t.animateOption):d}},e}(p.Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.getGridThemeCfg=function(t,e){return i.get(t,["components","axis",e,"grid"],{})},e.getLineGridItems=function(t,e,n,i){var r=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(i)r.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(o){var u=(e.value+s)/2;r.push({points:[t.convert("y"===n?{x:0,y:u}:{x:u,y:0}),t.convert("y"===n?{x:1,y:u}:{x:u,y:1})]})}return a}),a[0]),r},e.getCircleGridItems=function(t,e,n,r,a){var o=e.values.length,s=[],u=n.getTicks();return u.reduce((function(e,n){var u=e?e.value:n.value,l=n.value,c=(u+l)/2;return"x"===a?s.push({points:[t.convert({x:r?l:c,y:0}),t.convert({x:r?l:c,y:1})]}):s.push({points:i.map(Array(o+1),(function(e,n){return t.convert({x:n/o,y:r?l:c})}))}),n}),u[0]),s},e.showGrid=function(t,e){var n=i.get(e,"grid");if(null===n)return!1;var r=i.get(t,"grid");return!(void 0===n&&null===r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(24),s=n(26),u=n(35),l=n(104),c=n(21),h=n(227),p=n(39);function f(t,e){return r.isBoolean(t)?!1!==t&&{}:r.get(t,[e],t)}function d(t){return r.get(t,"position",a.DIRECTION.BOTTOM)}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return i.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){var t=this;this.option=this.view.getOptions().legends;if(r.get(this.option,"custom")){var e=this.createCustomLegend(void 0,void 0,void 0,this.option);if(e){e.init();var n=a.LAYER.FORE,i=d(this.option);this.components.push({id:"global-custom",component:e,layer:n,direction:i,type:a.COMPONENT_TYPE.LEGEND,extra:void 0})}}else this.loopLegends((function(e,n,i){var r=t.createFieldLegend(e,n,i);r&&(r.component.init(),t.components.push(r))}))},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,r.each(this.components,(function(e){var n=e.component,i=e.direction,r=h.getLegendLayout(i),a=t.getCategoryLegendSizeCfg(r),o=n.get("maxWidth"),s=n.get("maxHeight");n.update({maxWidth:Math.min(a.maxWidth,o||0),maxHeight:Math.min(a.maxHeight,s||0)});var c=n.getLayoutBBox(),p=new u.BBox(c.x,c.y,c.width,c.height),f=l.directionToPosition(t.view.coordinateBBox,p,i),d=f[0],g=f[1],y=l.directionToPosition(t.layoutBBox,p,i),v=y[0],m=y[1],x=0,b=0;i.startsWith("top")||i.startsWith("bottom")?(x=d,b=m):(x=v,b=g),n.update({x:x,y:b}),t.layoutBBox=t.layoutBBox.cut(p,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(r.get(this.option,"custom")){var n="global-custom",i=this.getComponentById(n);if(i){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);c.omit(o,["container"]),i.component.update(o),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var u=a.LAYER.FORE,l=d(this.option);this.components.push({id:n,component:s,layer:u,direction:l,type:a.COMPONENT_TYPE.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,i,a){var o=t.getId(a.field),s=t.getComponentById(o);if(s){var u=void 0,l=f(t.option,a.field);!1!==l&&(r.get(l,"custom")?u=t.getCategoryCfg(n,i,a,l,!0):a.isLinear?u=t.getContinuousCfg(n,i,a,l):a.isCategory&&(u=t.getCategoryCfg(n,i,a,l))),u&&(c.omit(u,["container"]),s.direction=d(l),s.component.update(u),e[o]=!0)}else{var h=t.createFieldLegend(n,i,a);h&&(h.component.init(),t.components.push(h),e[o]=!0)}}));var h=[];r.each(this.getComponents(),(function(t){e[t.id]?h.push(t):t.component.destroy()})),this.components=h},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return r.each(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};r.each(e,(function(e){var i=e.getGroupAttributes();r.each(i,(function(i){var r=i.getScale(i.type);r&&"identity"!==r.type&&!n[r.field]&&(t(e,i,r),n[r.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var i,o=f(this.option,n.field),s=a.LAYER.FORE,u=d(o);if(!1!==o&&(r.get(o,"custom")?i=this.createCustomLegend(t,e,n,o):n.isLinear?i=this.createContinuousLegend(t,e,n,o):n.isCategory&&(i=this.createCategoryLegend(t,e,n,o))),i)return i.set("field",n.field),{id:this.getId(n.field),component:i,layer:s,direction:u,type:a.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i,!0);return new o.CategoryLegend(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,i);return new o.ContinuousLegend(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new o.CategoryLegend(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var a=n.getTicks(),o=r.find(a,(function(t){return 0===t.value})),u=r.find(a,(function(t){return 1===t.value})),l=a.map((function(t){var i=t.value,r=t.tickValue,a=e.mapping(n.invert(i)).join("");return{value:r,attrValue:a,color:a,scaleValue:i}}));o||l.push({value:n.min,attrValue:e.mapping(0).join(""),color:e.mapping(0).join(""),scaleValue:0}),u||l.push({value:n.max,attrValue:e.mapping(1).join(""),color:e.mapping(1).join(""),scaleValue:1}),l.sort((function(t,e){return t.value-e.value}));var c={min:r.head(l).value,max:r.last(l).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=l.map((function(t){return t.attrValue})));var f=this.container,g=d(i),y=h.getLegendLayout(g),v=r.get(i,"title");return v&&(v=r.deepMix({text:p.getName(n)},v)),c.container=f,c.layout=y,c.title=v,c.animateOption=s.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(c,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,o){var u=this.container,l=r.get(i,"position",a.DIRECTION.BOTTOM),c=r.get(this.view.getTheme(),["components","legend",l,"marker"]),f=r.get(i,"marker"),d=h.getLegendLayout(l),g=o?h.getCustomLegendItems(c,f,i.items):h.getLegendItems(this.view,t,e,c,f),y=r.get(i,"title");y&&(y=r.deepMix({text:n?p.getName(n):""},y));var v=this.getCategoryLegendSizeCfg(d);v.container=u,v.layout=d,v.items=g,v.title=y,v.animateOption=s.DEFAULT_ANIMATE_CFG;var m=this.mergeLegendCfg(v,i,l);return m.reversed&&m.items.reverse(),m},e.prototype.mergeLegendCfg=function(t,e,n){var i=r.get(this.view.getTheme(),["components","legend",n],{});return r.deepMix({},i,t,e)},e.prototype.getId=function(t){return this.name+"-"+t},e.prototype.getComponentById=function(t){return r.find(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t){var e=this.view.viewBBox,n=e.width,i=e.height,r=this.view.coordinateBBox,o=r.width,s=r.height;return"vertical"===t?{maxWidth:n*a.COMPONENT_MAX_VIEW_PERCENTAGE,maxHeight:s}:{maxWidth:o,maxHeight:i*a.COMPONENT_MAX_VIEW_PERCENTAGE}},e}(n(30).Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(5),a=n(228),o=n(37);function s(t){var e=t.symbol;i.isString(e)&&o.MarkerSymbols[e]&&(t.symbol=o.MarkerSymbols[e])}e.getLegendLayout=function(t){return t.startsWith(r.DIRECTION.LEFT)||t.startsWith(r.DIRECTION.RIGHT)?"vertical":"horizontal"},e.getLegendItems=function(t,e,n,r,o){var u=n.getScale(n.type);if(u.isCategory){var l=u.field,c=e.getAttribute("color"),h=e.getAttribute("shape"),p=t.getTheme().defaultColor,f=e.coordinate.isPolar;return u.getTicks().map((function(n){var d,g=n.text,y=n.value,v=g,m=u.invert(y),x=0===t.filterFieldData(l,[(d={},d[l]=m,d)]).length,b=a.getMappingValue(c,m,p),_=a.getMappingValue(h,m,"point"),M=e.getShapeMarker(_,{color:b,isInPolar:f});return s(M=i.deepMix({},r,M,o)),{id:m,name:v,value:m,marker:M,unchecked:x}}))}return[]},e.getCustomLegendItems=function(t,e,n){return n.map((function(n){var r=i.deepMix({},t,e,n.marker);return s(r),n.marker=r,n}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1);e.getMappingValue=function(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var a=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,i.__spreadArrays([e],a)).join("")}else r=t.mapping(e).join("");return r||n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(5),o=n(24),s=n(35),u=n(104),l=n(21),c=function(t){function e(e){var n=t.call(this,e)||this;return n.onValueChanged=function(t){var e=t[0],i=t[1];n.updateMinMaxText(e,i),n.view.render(!0)},n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return i.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){if(this.option=this.view.getOptions().slider,this.option){this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onValueChanged));var t=this.slider.component.get("start")||0,e=this.slider.component.get("end")||1;this.updateMinMaxText(t,e)}else this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){if(this.slider){var t=this.view.coordinateBBox.width,e=this.slider.component.getLayoutBBox(),n=new s.BBox(e.x,e.y,Math.min(e.width,t),e.height),i=u.directionToPosition(this.view.viewBBox,n,a.DIRECTION.BOTTOM),r=(i[0],i[1]),o=u.directionToPosition(this.view.coordinateBBox,n,a.DIRECTION.BOTTOM),l=o[0];o[1];this.slider.component.update({x:l,y:r,width:t})}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new o.Slider(i.__assign({container:this.container},t));return e.init(),{component:e,layer:a.LAYER.FORE,direction:a.DIRECTION.BOTTOM,type:a.COMPONENT_TYPE.OTHER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();return l.omit(t,["x","y","width","start","end","minText","maxText"]),this.slider.component.update(t),this.slider},e.prototype.getSliderCfg=function(){if(r.isObject(this.option)){var t=i.__assign({data:this.getData()},r.get(this.option,"trendCfg",{})),e=this.view.coordinateBBox.width,n=r.deepMix({},{x:0,y:0,width:e},this.option);return i.__assign(i.__assign({},n),{trendCfg:t})}return{}},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0];return t.map((function(t){return t[e.field]||0}))},e.prototype.updateMinMaxText=function(t,e){var n=this.view.getOptions().data,i=r.size(n),a=this.view.getXScale();if(a&&i){var o=a.field,s=n.map((function(t){return t[o]||""})),u=Math.floor(t*(i-1)),c=Math.floor(e*(i-1)),h=r.get(s,[u]),p=r.get(s,[c]);this.slider.component.update({minText:h,maxText:p,start:t,end:e}),this.view.filter(a.field,(function(t,e,n){return l.isBetween(n,u,c)}))}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e}(n(30).Controller);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(24),o=n(16),s=n(14),u=n(91);var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e.isVisible=!0,e}return i.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){var t=this.view.getOptions().tooltip;this.isVisible=!1!==t},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible){var e=this.view,n=this.getTooltipItems(t);if(n.length){var a=this.getTitle(n),o={x:n[0].x,y:n[0].y};e.emit("tooltip:show",i.__assign({items:n,title:a},t));var s=this.getTooltipCfg(),u=s.follow,l=s.showMarkers,c=s.showCrosshairs,h=s.showContent,p=s.marker,f=this.items,d=this.title;if(r.isEqual(d,a)&&r.isEqual(f,n)?(this.tooltip&&u&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",i.__assign({items:n,title:a},t)),h&&(this.tooltip||this.renderTooltip(),this.tooltip.update(r.mix({},s,{items:n,title:a},u?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=a,c){var g=r.get(s,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:o,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var i=this.tooltip;i&&i.hide(),this.view.emit("tooltip:hide",{}),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,i=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),i&&i.clear()},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,i=this.xCrosshair,r=this.yCrosshair;t?(e&&e.show(),n&&n.show(),i&&i.show(),r&&r.show()):(e&&e.hide(),n&&n.hide(),i&&i.hide(),r&&r.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){for(var n=0,i=e=r.flatten(e);n<i.length;n++)for(var a=0,o=i[n];a<o.length;a++){var s=o[a],u=s.mappingData,l=u.x,c=u.y;s.x=r.isArray(l)?l[l.length-1]:l,s.y=r.isArray(c)?c[c.length-1]:c}if(!1===this.getTooltipCfg().shared&&e.length>1){for(var h=e[0],p=Math.abs(t.y-h[0].y),f=0,d=e;f<d.length;f++){var g=d[f],y=Math.abs(t.y-g[0].y);y<=p&&(h=g,p=y)}e=[h]}return function(t){for(var e=[],n=function(n){var i=t[n];r.find(e,(function(t){return t.color===i.color&&t.name===i.name&&t.value===i.value&&t.title===i.title}))||e.push(i)},i=0;i<t.length;i++)n(i);return e}(r.flatten(e))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){this.point&&this.showTooltip(this.point)},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=t.getTheme(),i=r.get(n,["components","tooltip"],{}),a=r.isUndefined(r.get(e,"enterable"))?i.enterable:r.get(e,"enterable");return r.deepMix({},i,e,{capture:!(!a&&!this.isLocked)})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),r=new a.HtmlTooltip(i.__assign(i.__assign({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),r=0,a=t;r<a.length;r++){var o=a[r],s=o.x,u=o.y,l=i.__assign(i.__assign({fill:o.color,symbol:"circle",shadowColor:o.color},e),{x:s,y:u});n.addShape("marker",{attrs:l})}},e.prototype.renderCrosshairs=function(t,e){var n=r.get(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(o.isPointInCoordinate(n,t)){var i,u;if(n.isRect)n.isTransposed?(i={x:n.start.x,y:t.y},u={x:n.end.x,y:t.y}):(i={x:t.x,y:n.end.y},u={x:t.x,y:n.start.y});else{var l=o.getAngleByPoint(n,t),c=n.getCenter(),h=n.getRadius();u=s.polarToCartesian(c.x,c.y,h,l),i=c}var p=r.deepMix({start:i,end:u,container:this.getTooltipCrosshairsGroup()},r.get(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete p.type;var f=this.xCrosshair;f?f.update(p):(f=new a.Crosshair.Line(p)).init(),f.render(),f.show(),this.xCrosshair=f}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(o.isPointInCoordinate(n,t)){var i,s;if(n.isRect){var u=void 0,l=void 0;n.isTransposed?(u={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(u={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),i={start:u,end:l},s="Line"}else i={center:n.getCenter(),radius:o.getDistanceToCenter(n,t),startAngle:n.startAngle,endAngle:n.endAngle},s="Circle";delete(i=r.deepMix({container:this.getTooltipCrosshairsGroup()},i,r.get(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?n.isRect&&"circle"===c.get("type")||!n.isRect&&"line"===c.get("type")?(c=new a.Crosshair[s](i)).init():c.update(i):(c=new a.Crosshair[s](i)).init(),c.render(),c.show(),this.yCrosshair=c}},e.prototype.getCrosshairsText=function(t,e,n){var i=r.get(n,["crosshairs","text"]),a=r.get(n,["crosshairs","follow"]),o=this.items;if(i){var s=this.getViewWithGeometry(this.view),u=o[0],l=s.getXScale(),c=s.getYScales()[0],h=void 0,p=void 0;if(a){var f=this.view.getCoordinate().invert(e);h=l.invert(f.x),p=c.invert(f.y)}else h=u.data[l.field],p=u.data[c.field];var d="x"===t?h:p;return r.isFunction(i)?i=i(t,d,o,e):i.content=d,{text:i}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.getTooltipItemsByHitShape=function(t,e,n){var i=[],r=t.container.getShape(e.x,e.y);if(r&&r.get("visible")&&r.get("origin")){var a=r.get("origin").mappingData,o=u.getTooltipItems(a,t,n);o.length&&i.push(o)}return i},e.prototype.getTooltipItemsByFindData=function(t,e,n){var i=[],r=t.dataArray;t.sort(r);for(var a=0,o=r;a<o.length;a++){var s=o[a],l=u.findDataByPoint(e,s,t);if(l){var c=t.getElementId(l),h=t.elementsMap[c];if("heatmap"===t.type||h.visible){var p=u.getTooltipItems(l,t,n);p.length&&i.push(p)}}}return i},e.prototype.findItemsFromView=function(t,e){if(!1===t.getOptions().tooltip)return[];for(var n=[],i=t.geometries,r=this.getTooltipCfg(),a=r.shared,o=r.title,s=0,u=i;s<u.length;s++){var l=u[s];if(l.visible&&!1!==l.tooltipOption){var c=l.type,h=void 0;(h=["point","edge","polygon"].includes(c)?this.getTooltipItemsByHitShape(l,e,o):["area","line","path","heatmap"].includes(c)||!1!==a?this.getTooltipItemsByFindData(l,e,o):this.getTooltipItemsByHitShape(l,e,o)).length&&n.push(h)}}for(var p=0,f=t.views;p<f.length;p++){var d=f[p];n=n.concat(this.findItemsFromView(d,e))}return n},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:r.find(t.views,(function(t){return e.getViewWithGeometry(t)}))},e}(n(30).Controller);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(14),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.show=function(){var t=this.context.view,e=this.context.event,n=t.getTooltipItems({x:e.x,y:e.y});if(!r.isEqual(n,this.items)&&(this.items=n,n.length)){var i=t.getXScale().field,o=n[0].data[i],s=[],u=t.geometries;if(r.each(u,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[i]===o}));s=s.concat(e)}})),s.length){var l=t.getCoordinate(),c=s[0].shape.getCanvasBBox(),h=s[0].shape.getCanvasBBox(),p=c;r.each(s,(function(t){var e=t.shape.getCanvasBBox();l.isTransposed?(e.minY<c.minY&&(c=e),e.maxY>h.maxY&&(h=e)):(e.minX<c.minX&&(c=e),e.maxX>h.maxX&&(h=e)),p.x=Math.min(e.minX,p.minX),p.y=Math.min(e.minY,p.minY),p.width=Math.max(e.maxX,p.maxX)-p.x,p.height=Math.max(e.maxY,p.maxY)-p.y}));var f=t.backgroundGroup,d=t.coordinateBBox,g=void 0;if(l.isRect){var y=t.getXScale().isLinear?0:.25,v=void 0,m=void 0,x=void 0,b=void 0;l.isTransposed?(v=d.minX,m=Math.min(h.minY,c.minY)-y*h.height,x=d.width,b=p.height+2*y*h.height):(v=Math.min(c.minX,h.minX)-y*c.width,m=Math.min(d.minY,c.minY),x=p.width+2*y*c.width,b=d.height),g=[["M",v,m],["L",v+x,m],["L",v+x,m+b],["L",v,m+b],["Z"]]}else{var _=r.head(s),M=r.last(s),C=a.getAngle(_.getModel(),l).startAngle,w=a.getAngle(M.getModel(),l).endAngle,O=l.getCenter(),S=l.getRadius(),A=l.innerRadius*S;g=a.getSectorPath(O.x,O.y,S,C,w,A)}this.regionPath?(this.regionPath.attr("path",g),this.regionPath.show()):this.regionPath=f.addShape({type:"path",name:"active-region",capture:!1,attrs:{path:g,fill:"#CCD6EC",opacity:.3}})}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(i.__importDefault(n(11)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(7),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.showTooltip=function(t,e){var n=a.getSilbings(t);r.each(n,(function(n){var i=a.getSiblingPoint(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=a.getSilbings(t);r.each(e,(function(t){t.hideTooltip()}))},e}(i.__importDefault(n(105)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.active=function(){this.setState()},e}(i.__importDefault(n(72)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=i.__importDefault(n(11)),a=n(7),o=n(0),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return i.__extends(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return[["M",n.maxX,n.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",n.maxX,n.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n){t.addShape({type:"path",attrs:{opacity:.4,fill:e.shape.attr("fill"),path:this.getLinkPath(e,n)}})},e.prototype.linkByElement=function(t){var e=this,n=this.context.view,i=this.getColorScale(n,t);if(i){var r=a.getElementValue(t,i.field);if(!this.cache[r]){var s=a.getElementsByField(n,i.field,r),u=this.linkGroup.addGroup();this.cache[r]=u;var l=s.length;o.each(s,(function(t,n){if(n<l-1){var i=s[n+1];e.addLinkShape(u,t,i)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=a.getElementValue(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(){var t=this.context;this.linkGroup||(this.linkGroup=t.view.foregroundGroup.addGroup({capture:!1}));var e=a.getCurrentElement(t);e&&this.linkByElement(e)},e.prototype.unlink=function(){var t=a.getCurrentElement(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(r.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.active=function(){this.setState()},e}(i.__importDefault(n(74)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.active=function(){this.setState()},e}(i.__importDefault(n(75)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(7),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=t.geometry.getAttribute("color");if(i){var a=n.getScaleByField(i.getFields()[0]),o=r.getElementValue(t,a.field),s=r.getElements(n),u=s.filter((function(t){return r.getElementValue(t,a.field)===o}));this.setHighlightBy(s,(function(t){return u.includes(t)}),e)}},e}(i.__importDefault(n(76)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(7),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=n.getXScale(),a=r.getElementValue(t,i.field),o=r.getElements(n),s=o.filter((function(t){return r.getElementValue(t,i.field)===a}));this.setHighlightBy(o,(function(t){return s.includes(t)}),e)},e}(i.__importDefault(n(76)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(77),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.clearViewState=function(t){r.clearHighlight(t)},e.prototype.highlight=function(){this.setState()},e.prototype.setElementsState=function(t,e,n){r.setHighlightBy(n,(function(e){return t.indexOf(e)>=0}),e)},e}(i.__importDefault(n(74)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(7),a=n(77),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=r.getElements(n);a.setHighlightBy(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;a.clearHighlight(t)},e}(i.__importDefault(n(75)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return i.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(i.__importDefault(n(74)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return i.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(i.__importDefault(n(72)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return i.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(i.__importDefault(n(75)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.active=function(){this.setState()},e}(i.__importDefault(n(44)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(246),o=i.__importDefault(n(44)),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return i.__extends(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var i=t.getItems();if(n)r.each(i,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var a=t.getItemsByState("active"),o=!0;r.each(a,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():r.each(i,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)a.clearList(t.list);else{var e=this.getAllowComponents();r.each(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.clearList=function(t){var e=t.getItems();i.each(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return i.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(i.__importDefault(n(44)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return i.__extends(e,t),e.prototype.unchecked=function(){this.setState()},e}(i.__importDefault(n(44)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=n(7),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return i.__extends(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=r.last(this.points),n=0,i=0,o=0;if(t.length){var s=t[0];n=a.distance(s,e)/2,i=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:i,y:o,r:n}},e}(i.__importDefault(n(78)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0);function a(t){t.x=r.clamp(t.x,0,1),t.y=r.clamp(t.y,0,1)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return i.__extends(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,i=this.dim,o=this.context.view.getCoordinate(),s=o.invert(r.head(n)),u=o.invert(r.last(n));return this.inPlot&&(a(s),a(u)),"x"===i?(t=o.convert({x:s.x,y:0}),e=o.convert({x:u.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:u.y})),{start:t,end:e}},e}(i.__importDefault(n(106)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(7),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points;return r.getSpline(t,!0)},e}(i.__importDefault(n(107)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(i.__importDefault(n(11)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=i.__importDefault(n(11)),o=n(7),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.filterView=function(t,e,n){var i=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&r.each(t.views,(function(t){i.filterView(t,e,n)}))},e.prototype.filter=function(){var t=o.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(o.isList(t)){if(i){var r=n.getItemsByState("unchecked"),a=o.getScaleByField(e,i),s=r.map((function(t){return t.name}));s.length?this.filterView(e,i,(function(t){var e=a.getText(t);return!s.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(o.isSlider(t)){var u=n.getValue(),l=u[0],c=u[1];this.filterView(e,i,(function(t){return t>=l&&t<=c})),e.render(!0)}}},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=i.__importDefault(n(108)),o=n(7),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.filterView=function(t,e,n){var i=o.getSilbings(t);r.each(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=o.getSilbings(t);r.each(e,(function(t){t.render(!0)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=i.__importDefault(n(11)),o=n(7),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.filter=function(){var t=o.getDelegationObject(this.context),e=this.context.view,n=o.getElements(e);if(o.isMask(this.context)){var i=o.getMaskedElements(this.context,10);i&&r.each(n,(function(t){i.includes(t)?t.show():t.hide()}))}else if(t){var a=t.component,s=a.get("field");if(o.isList(t)){if(s){var u=a.getItemsByState("unchecked"),l=o.getScaleByField(e,s),c=u.map((function(t){return t.name}));r.each(n,(function(t){var e=o.getElementValue(t,s),n=l.getText(e);c.indexOf(n)>=0?t.hide():t.show()}))}}else if(o.isSlider(t)){var h=a.getValue(),p=h[0],f=h[1];r.each(n,(function(t){var e=o.getElementValue(t,s);e>=p&&e<=f?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=o.getElements(this.context.view);r.each(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=i.__importDefault(n(11)),o=n(7),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return i.__extends(e,t),e.prototype.filter=function(){o.isMask(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=o.getMaskedElements(this.context,10);if(e){var n=t.getXScale().field,i=t.getYScales()[0].field,a=e.map((function(t){return t.getModel().data})),s=o.getSilbings(t);r.each(s,(function(t){var e=o.getElements(t);r.each(e,(function(t){var e=t.getModel().data;o.isInRecords(a,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=o.getSilbings(e);r.each(n,(function(e){var n=o.getSiblingMaskElements(t.context,e,10),i=o.getElements(e);n&&r.each(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=o.getSilbings(this.context.view);r.each(t,(function(t){var e=o.getElements(t);r.each(e,(function(t){t.show()}))}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(2),a=n(0),o=n(61),s=i.__importDefault(n(11)),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return i.__extends(e,t),e.prototype.getButtonCfg=function(){return a.deepMix(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:i.__assign({text:t.text},t.textStyle)}).getBBox(),r=o.parsePadding(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:i.__assign({x:n.x-r[3],y:n.y-r[0],width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),i=r.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(i)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=i.__importDefault(n(11)),a=n(7),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return i.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):a.distance(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(r.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(2),a=n(62),o=n(7),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return i.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(o.distance(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,i=r.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(i),n.foregroundGroup.setMatrix(i),n.middleGroup.setMatrix(i)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(a.Action);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return i.__extends(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;r.each(e,(function(e){var n=t.getScale(e),i=n.min,r=n.max,a=n.values;t.startCache[e]={min:i,max:r,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),i=this.context.getCurrentPoint(),a=n.invert(e),o=n.invert(i),s=o.x-a.x,u=o.y-a.y,l=this.context.view,c=this.dims;r.each(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*u})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var i=this.context.view,r=this.startCache[t],a=r.min,o=r.max,s=o-a,u=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),i.scale(e.field,{nice:!1,min:a+u,max:o+u})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(i.__importDefault(n(109)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return i.__extends(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;r.each(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var i=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],a=r.max-r.min,o=e.min,s=e.max,u=n*a,l=o-u,c=s+u,h=(c-l)/a;c>l&&h<100&&h>.01&&i.scale(e.field,{nice:!1,min:o-u,max:s+u})},e}(i.__importDefault(n(109)).default);e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"Component",(function(){return k})),n.d(e,"GroupComponent",(function(){return F})),n.d(e,"HtmlComponent",(function(){return Mt})),n.d(e,"Axis",(function(){return u})),n.d(e,"Annotation",(function(){return i})),n.d(e,"Grid",(function(){return c})),n.d(e,"Legend",(function(){return h})),n.d(e,"Tooltip",(function(){return f})),n.d(e,"Crosshair",(function(){return l})),n.d(e,"Slider",(function(){return re})),n.d(e,"Scrollbar",(function(){return oe}));var i={};n.r(i),n.d(i,"Line",(function(){return N})),n.d(i,"Text",(function(){return Y})),n.d(i,"Arc",(function(){return G})),n.d(i,"Region",(function(){return V})),n.d(i,"Image",(function(){return X})),n.d(i,"DataMarker",(function(){return z})),n.d(i,"DataRegion",(function(){return H})),n.d(i,"RegionFilter",(function(){return W}));var r={};n.r(r),n.d(r,"getDefault",(function(){return $})),n.d(r,"ellipsisHead",(function(){return J})),n.d(r,"ellipsisTail",(function(){return tt})),n.d(r,"ellipsisMiddle",(function(){return et}));var a={};n.r(a),n.d(a,"getDefault",(function(){return ot})),n.d(a,"reserveFirst",(function(){return st})),n.d(a,"reserveLast",(function(){return ut})),n.d(a,"reserveBoth",(function(){return lt})),n.d(a,"equidistance",(function(){return ct}));var o={};n.r(o),n.d(o,"getDefault",(function(){return pt})),n.d(o,"fixedAngle",(function(){return ft})),n.d(o,"unfixedAngle",(function(){return dt}));var s={};n.r(s),n.d(s,"autoHide",(function(){return a})),n.d(s,"autoRotate",(function(){return o})),n.d(s,"autoEllipsis",(function(){return r}));var u={};n.r(u),n.d(u,"Line",(function(){return yt})),n.d(u,"Circle",(function(){return vt})),n.d(u,"Base",(function(){return U}));var l={};n.r(l),n.d(l,"Line",(function(){return xt})),n.d(l,"Circle",(function(){return bt})),n.d(l,"Base",(function(){return mt})),n.d(l,"Html",(function(){return wt}));var c={};n.r(c),n.d(c,"Base",(function(){return Ot})),n.d(c,"Circle",(function(){return At})),n.d(c,"Line",(function(){return Pt}));var h={};n.r(h),n.d(h,"Category",(function(){return Tt})),n.d(h,"Continuous",(function(){return Et})),n.d(h,"Base",(function(){return It}));var p={};n.r(p),n.d(p,"CONTAINER_CLASS",(function(){return jt})),n.d(p,"TITLE_CLASS",(function(){return kt})),n.d(p,"LIST_CLASS",(function(){return Bt})),n.d(p,"LIST_ITEM_CLASS",(function(){return Dt})),n.d(p,"MARKER_CLASS",(function(){return Ft})),n.d(p,"VALUE_CLASS",(function(){return Rt})),n.d(p,"NAME_CLASS",(function(){return Nt})),n.d(p,"CROSSHAIR_X",(function(){return Yt})),n.d(p,"CROSSHAIR_Y",(function(){return Gt}));var f={};n.r(f),n.d(f,"Html",(function(){return Xt}));var d=n(1),g=n(0),y=n(45),v=n.n(y);var m=n(2),x=[1,0,0,0,1,0,0,0,1];function b(t,e){return e?Object(m.transform)(x,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function _(t,e){return t.x||t.y?Object(m.transform)(e||x,[["t",t.x,t.y]]):null}function M(t,e){var n=[];return m.vec2.transformMat3(n,e,t),n}function C(t){var e=0,n=0,i=0,r=0;return Object(g.isNumber)(t)?e=n=i=r=t:Object(g.isArray)(t)&&(e=t[0],i=Object(g.isNil)(t[1])?t[0]:t[1],r=Object(g.isNil)(t[2])?t[0]:t[2],n=Object(g.isNil)(t[3])?i:t[3]),[e,i,r,n]}function w(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function O(t){var e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:a,maxY:o,width:a-i,height:o-r}}function S(t,e,n,i){return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:t+n,maxY:e+i}}function A(t,e,n){return(1-n)*t+e*n}function P(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function I(t){var e,n,i,r,a,o=t.getClip(),s=o&&o.getBBox();if(t.isGroup()){var u=1/0,l=-1/0,c=1/0,h=-1/0,p=t.getChildren();p.length>0?Object(g.each)(p,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=I(t),n=t.applyToMatrix([e.minX,e.minY,1]),i=t.applyToMatrix([e.minX,e.maxY,1]),r=t.applyToMatrix([e.maxX,e.minY,1]),a=t.applyToMatrix([e.maxX,e.maxY,1]),o=Math.min(n[0],i[0],r[0],a[0]),s=Math.max(n[0],i[0],r[0],a[0]),p=Math.min(n[1],i[1],r[1],a[1]),f=Math.max(n[1],i[1],r[1],a[1]);o<u&&(u=o),s>l&&(l=s),p<c&&(c=p),f>h&&(h=f)}})):(u=0,l=0,c=0,h=0),e=S(u,c,l-u,h-c)}else e=t.getBBox();return s?(n=e,i=s,r=Math.max(n.minX,i.minX),a=Math.max(n.minY,i.minY),S(r,a,Math.min(n.maxX,i.maxX)-r,Math.min(n.maxY,i.maxY)-a)):e}function T(t){return t+"px"}function E(t,e,n,i){var r,a,o,s,u=i/(r=t,o=(a=e).x-r.x,s=a.y-r.y,Math.sqrt(o*o+s*s)),l=0;return"start"===n?l=0-u:"end"===n&&(l=1+u),{x:A(t.x,e.x,l),y:A(t.y,e.y,l)}}var L=n(8),j={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},k=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg");Object(g.each)(t,(function(t,i){var r=t;e.get(i)!==t&&(Object(g.isObject)(t)&&n[i]&&(r=Object(g.deepMix)({},n[i],t)),e.set(i,r))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(g.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),Object(g.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(d.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),i=j[n];return Object(g.each)(i,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(g.each)(e,(function(e,n){var i=t.get(n);if(Object(g.isObject)(i)){var r=Object(g.deepMix)({},e,i);t.set(n,r)}}))},e}(L.Base),B=["visible","tip","delegateObject"],D=["container","group","shapesMap","isRegister","isUpdating","destroyed"],F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(g.each)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=function(t,e){var n=M(t,[e.minX,e.minY]),i=M(t,[e.maxX,e.minY]),r=M(t,[e.minX,e.maxY]),a=M(t,[e.maxX,e.maxY]),o=Math.min(n[0],i[0],r[0],a[0]),s=Math.max(n[0],i[0],r[0],a[0]),u=Math.min(n[1],i[1],r[1],a[1]),l=Math.max(n[1],i[1],r[1],a[1]);return{x:o,y:u,minX:o,minY:u,maxX:s,maxY:l,width:s-o,height:l-u}}(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),function(t,e,n){var i=new v.a(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var r=t.getParent();r;)r.emitDelegation(e,i),i.propagationPath.push(r),r=r.getParent()}(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",I(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,r=Object(d.__rest)(e,["id","component"]),a=new i(Object(d.__assign)(Object(d.__assign)({},r),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=_(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var i=e.attr("opacity");Object(g.isNil)(i)&&(i=1),e.attr("opacity",0),e.animate({opacity:i},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,i){e.animate(n,i)},e.prototype.updateElements=function(t,e){var n,i=this,r=this.get("animate"),a=this.get("animateOption"),o=t.getChildren().slice(0);Object(g.each)(o,(function(t){var o=t.get("id"),s=i.getElementById(o),u=t.get("name");if(s)if(t.get("isComponent")){var l=t.get("component"),c=s.get("component"),h=Object(g.pick)(l.cfg,Object(g.difference)(Object(g.keys)(l.cfg),D));c.update(h),s.set("update_status","update")}else{var p=i.getReplaceAttrs(s,t);r&&a.update?i.updateAnimation(u,s,p,a.update):s.attr(p),t.isGroup()&&i.updateElements(t,s),Object(g.each)(B,(function(e){s.set(e,t.get(e))})),function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var i={type:n.get("type"),attrs:n.attr()};t.setClip(i)}else t.setClip(null)}}(s,t),n=s,s.set("update_status","update")}else{e.add(t);var f=e.getChildren();if(f.splice(f.length-1,1),n){var d=f.indexOf(n);f.splice(d+1,0,t)}else f.unshift(t);if(i.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(l=t.get("component")).set("container",e);else t.isGroup()&&i.registerNewGroup(t);if(n=t,r){var y=i.get("isInit")?a.appear:a.enter;y&&i.addAnimation(u,t,y)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(g.each)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(g.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return Object(g.each)(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(g.each)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(g.each)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var i=this.get("animate"),r=this.get("animateOption");Object(g.each)(n,(function(n){var a=n[0],o=n[1];if(!o.destroyed){var s=o.get("name");if(i&&r.leave){var u=Object(g.mix)({callback:function(){t.removeElement(o)}},r.leave);t.removeAnimation(s,o,u)}else t.removeElement(o)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(k),R={fontFamily:'\n "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4},N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:R.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:R.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:R.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(d.__assign)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},i)})},e.prototype.getLabelPoint=function(t,e,n){var i;return((i="start"===n?0:"center"===n?.5:Object(g.isString)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(g.isNumber)(n)?n:1)>1||i<0)&&(i=1),{x:A(t.x,e.x,i),y:A(t.y,e.y,i)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),i=this.get("end"),r=e.position,a=e.content,o=e.style,s=e.offsetX,u=e.offsetY,l=e.autoRotate,c=this.getLabelPoint(n,i,r),h=Object(d.__assign)({x:c.x+s,y:c.y+u,text:a},o);if(l){var p=[i.x-n.x,i.y-n.y],f=b(c,Math.atan2(p[1],p[0]));h.matrix=f}this.addShape(t,{type:"text",id:this.getElementId("line-text"),name:"annotation-line-text",attrs:h})},e}(F),Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},defaultCfg:{style:{fill:R.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:R.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){this.renderText(t)},e.prototype.renderText=function(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("content"),a=this.get("style"),o=this.addShape(t,{type:"text",id:this.getElementId("text"),name:"annotation-text",attrs:Object(d.__assign)({x:n,y:i,text:r},a)});this.applyRotate(o,n,i)},e.prototype.applyRotate=function(t,e,n){var i=this.get("rotate"),r=null;i&&(r=b({x:e,y:n},i)),t.attr("matrix",r)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text");if(t){var e=this.getLocation(),n=e.x,i=e.y;t.attr({x:n,y:i}),this.applyRotate(t,n,i)}},e}(F),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,a=P(e,n,i),o=P(e,n,r),s=r-i>Math.PI?1:0,u=[["M",a.x,a.y]];if(r-i==2*Math.PI){var l=P(e,n,i+Math.PI);u.push(["A",n,n,0,s,1,l.x,l.y]),u.push(["A",n,n,0,s,1,o.x,o.y])}else u.push(["A",n,n,0,s,1,o.x,o.y]);return u},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(d.__assign)({path:e},n)})},e}(F),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:R.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style"),r=O({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(d.__assign)({x:r.x,y:r.y,width:r.width,height:r.height},i)})},e}(F),X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),i=O({start:t,end:e}),r=this.get("src");return Object(d.__assign)({x:i.x,y:i.y,img:r,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(F),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:R.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:R.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:R.fontFamily}}}})},e.prototype.renderInner=function(t){Object(g.get)(this.get("line"),"display")&&this.renderLine(t),Object(g.get)(this.get("text"),"display")&&this.renderText(t),Object(g.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text;this.addShape(t,{type:"text",id:this.getElementId("text"),name:"annotation-text",attrs:e})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),i=this.get("y"),r=Object(g.get)(this.get("line"),"length",0),a=this.get("coordinateBBox"),o=t.getBBox(),s=o.minX,u=o.maxX,l=o.minY,c=o.maxY,h=t.findById(this.getElementId("text")),p=t.findById(this.getElementId("line"));if(a&&(h&&(n+s<=a.minX&&h.attr("textAlign","start"),n+u>=a.maxX&&h.attr("textAlign","end")),"upward"===e&&i+l<=a.minY||"upward"!==e&&i+c>=a.maxY)){var f=void 0,d=void 0;"upward"===e&&i+l<=a.minY?(f="top",d=1):(f="bottom",d=-1),h.attr("textBaseline",f),p&&p.attr("path",[["M",0,0],["L",0,r*d]]),h.attr("y",(r+2)*d)}},e.prototype.getShapeAttrs=function(){var t=Object(g.get)(this.get("line"),"display"),e=Object(g.get)(this.get("point"),"style",{}),n=Object(g.get)(this.get("line"),"style",{}),i=Object(g.get)(this.get("text"),"style",{}),r=this.get("direction"),a=t?Object(g.get)(this.get("line"),"length",0):0,o="upward"===r?-1:1;return{point:Object(d.__assign)({x:0,y:0},e),line:Object(d.__assign)({path:[["M",0,0],["L",0,a*o]]},n),text:Object(d.__assign)({x:0,y:(a+2)*o,text:Object(g.get)(this.get("text"),"content",""),textBaseline:"upward"===r?"bottom":"top"},i)}},e}(F),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:R.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:R.textColor,fontFamily:R.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(g.get)(this.get("region"),"style",{}),n=Object(g.get)(this.get("text"),"style",{}),i=this.get("lineLength")||0,r=this.get("points");if(r.length){var a=function(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),i=Math.min.apply(Math,e),r=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:a,maxY:o,width:a-i,height:o-r}}(r),o=[];o.push(["M",r[0].x,a.minY-i]),r.forEach((function(t){o.push(["L",t.x,t.y])})),o.push(["L",r[r.length-1].x,r[r.length-1].y-i]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(d.__assign)({path:o},e)}),this.addShape(t,{type:"text",id:this.getElementId("text"),name:"annotation-text",attrs:Object(d.__assign)({x:(a.minX+a.maxX)/2,y:a.minY-i,text:Object(g.get)(this.get("text"),"content","")},n)})}},e}(F),W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),i=this.get("end"),r=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(g.each)(this.get("shapes"),(function(t,n){var i=t.get("type"),a=Object(g.clone)(t.attr());e.adjustShapeAttrs(a),e.addShape(r,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:a})}));var a=O({start:n,end:i});r.setClip({type:"rect",attrs:{x:a.minX,y:a.minY,width:a.width,height:a.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(F);function q(t,e,n){var i=e+"Style",r=null;return Object(g.each)(n,(function(e,n){t[n]&&e[i]&&(r||(r={}),Object(g.mix)(r,e[i]))})),r}var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},defaultCfg:{line:{style:{lineWidth:1,stroke:R.lineColor}},tickLine:{style:{lineWidth:1,stroke:R.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:R.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:R.textColor,textBaseline:"middle",fontFamily:R.fontFamily,fontWeight:"normal"},offset:10},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:R.textColor,textBaseline:"middle",fontFamily:R.fontFamily,textAlign:"center"},offset:48},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:R.uncheckedColor}}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Object(g.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(g.each)(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(g.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(g.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(g.isNumberEqual)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(g.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],i=this.get("tickLine"),r=i.alignTick,a=i.length,o=1;return t.length>=2&&(o=t[1].value-t[0].value),Object(g.each)(t,(function(t){var i=t.point;r||(i=e.getTickPoint(t.value-o/2));var s=e.getSidePoint(i,a);n.push({startPoint:i,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),i=n.count,r=t.length;if(r>=2)for(var a=0;a<r-1;a++)for(var o=t[a],s=t[a+1],u=0;u<i;u++){var l=(u+1)/(i+1),c=(1-l)*o.tickValue+l*s.tickValue,h=this.getTickPoint(c),p=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:p,tickValue:c,id:"sub-"+o.id+"-"+u})}return e},e.prototype.getTickLineAttrs=function(t){var e=this.get("tickLine").style,n=t.startPoint,i=t.endPoint;return Object(g.mix)({x1:n.x,y1:n.y,x2:i.x,y2:i.y},e)},e.prototype.drawTick=function(t,e){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-tickline",attrs:this.getTickLineAttrs(t)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),i=this.get("subTickLine"),r=this.getTickLineItems(n),a=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),o=this.get("tickLine");if(Object(g.each)(r,(function(n){if(o.displayWithLabel){var i=e.getElementId("label-"+n.tickId);t.findById(i)&&e.drawTick(n,a)}else e.drawTick(n,a)})),i){var s=this.getSubTickLineItems(r);Object(g.each)(s,(function(t){e.drawTick(t,a)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(g.each)(e,(function(e){e.point=t.getTickPoint(e.value),Object(g.isNil)(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");Object(g.each)(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.getLabelAttrs=function(t,e){var n=this.get("label"),i=n.offset,r=n.style,a=n.rotate,o=n.formatter,s=this.getSidePoint(t.point,i),u=this.getSideVector(i,s),l=o?o(t.name,t,e):t.name,c=Object(g.mix)({x:s.x,y:s.y,text:l,textAlign:this.getTextAnchor(u)},r);return a&&(c.matrix=b(s,a)),c},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),i=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(g.each)(n,(function(t,n){e.addShape(i,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,n),delegateObject:{tick:t,item:t,index:n}})})),this.processOverlap(i)},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,i=t.offset,r=t.autoRotate,a=.5;"start"===n?a=0:"end"===n&&(a=1);var o=this.getTickPoint(a),s=this.getSidePoint(o,i),u=Object(g.mix)({x:s.x,y:s.y,text:t.text},e),l=t.rotate,c=l;if(Object(g.isNil)(l)&&r){var h=this.getAxisVector(o);c=m.vec2.angleTo(h,[1,0],!0)}if(c){var p=b(s,c);u.matrix=p}return u},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),i=this.getElementId("label-"+t.id),r=e.findById(i);if(r){var a=q(t,"label",n);a&&r.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var u=q(t,"tickLine",n);u&&s.attr(u)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),i=this.get("label"),r=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=q(t,"label",n);s&&r.attr(s)}if(o){var u=q(t,"tickLine",n);u&&o.attr(u)}}else r&&r.attr(i.style),o&&o.attr(a.style)},e}(F);function Z(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function Q(t,e,n,i){var r=e.attr("text"),a=function(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}(t,e),o=function(t){for(var e=0,n=0;n<t.length;n++)e+=Z(t,n);return e}(r),s=!1;if(n<a){var u=Math.floor(n/a*o)-2,l=void 0;(l=u>=0?function(t,e,n){var i=t.length,r="";if("tail"===n){for(var a=0,o=0;a<e;){var s=Z(t,o);if(!(a+s<=e))break;r+=t[o],a+=Z(t,o),o++}r+="…"}else if("head"===n){for(a=0,o=i-1;a<e;){s=Z(t,o);if(!(a+s<=e))break;r+=t[o],a+=Z(t,o),o--}r="…"+r}else{for(var u="",l="",c=(a=0,0),h=i-1;a<e;){var p=Z(t,c),f=!1;p+a<=e&&(u+=t[c],c++,a+=p,f=!0);var d=Z(t,h);if(d+a<=e&&(l=t[h]+l,a+=d,h--,f=!0),!f)break}r=u+"…"+l}return r}(r,u,i):"…")&&(e.attr("text",l),s=!0)}return s?e.set("tip",r):e.set("tip",null),s}function K(t,e,n,i){var r=e.getChildren(),a=!1;return Object(g.each)(r,(function(e){var r=Q(t,e,n,i);a=a||r})),a}function $(){return tt}function J(t,e,n){return K(t,e,n,"head")}function tt(t,e,n){return K(t,e,n,"tail")}function et(t,e,n){return K(t,e,n,"middle")}function nt(t){var e=0;return Object(g.each)(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e}function it(t){var e=t.attr("matrix");return e&&1!==e[0]}function rt(t,e,n,i,r){void 0===r&&(r=!1);var a=!1;if(t)a=Math.abs(n.y-i.y)<n.height;else if(e){var o=r?i.height:n.height;a=Math.abs(n.x-i.x)<o}else{var s=r?i.width:n.width;a=Math.abs(n.x-i.x)<s}return a}function at(t,e,n){var i=e.getChildren().slice();if(!i.length)return!1;var r=!1;n&&i.reverse();for(var a=i.length,o=i[0],s=it(o),u=o.getBBox(),l=1;l<a;l++){var c=i[l],h=c.getBBox();rt(t,s,u,h,n)?(c.hide(),r=!0):u=h}return r}function ot(){return ct}function st(t,e){return at(t,e,!1)}function ut(t,e){return at(t,e,!0)}function lt(t,e){var n=e.getChildren().slice();if(n.length<=2)return!1;for(var i=!1,r=n.length,a=n[0],o=n[r-1],s=it(a),u=a.getBBox(),l=a,c=1;c<r-1;c++){var h=n[c],p=h.getBBox();rt(t,s,u,p)?(h.hide(),i=!0):(u=p,l=h)}return rt(t,s,u,o.getBBox())&&(l.hide(),i=!0),i}function ct(t,e){var n=e.getChildren().slice();if(n.length<2)return!1;var i=!1,r=n[0],a=r.getBBox(),o=n[1],s=it(r),u=n.length,l=0;if(t){var c=Math.abs(o.attr("y")-r.attr("y"));l=a.height/c}else if(s){c=Math.abs(o.attr("x")-r.attr("x"));l=a.width/c}else{l=nt(n)/(c=Math.abs(o.attr("x")-r.attr("x")))}if(l>1){l=Math.ceil(l);for(var h=0;h<u;h++)h%l!=0&&(n[h].hide(),i=!0)}return i}function ht(t,e,n,i){var r=e.getChildren();if(!r.length)return!1;if(!t&&r.length<2)return!1;var a=nt(r),o=!1;t?o=!!n&&a>n:o=a>Math.abs(r[1].attr("x")-r[0].attr("x"));o&&function(t,e){Object(g.each)(t,(function(t){var n=b({x:t.attr("x"),y:t.attr("y")},e);t.attr("matrix",n)}))}(r,i(n,a));return o}function pt(){return ft}function ft(t,e,n){return ht(t,e,n,(function(){return t?R.verticalAxisRotate:R.horizontalAxisRotate}))}function dt(t,e,n){return ht(t,e,n,(function(e,n){if(!e)return t?R.verticalAxisRotate:R.horizontalAxisRotate;if(t)return-Math.acos(e/n);var i=0;return(e>n||(i=Math.asin(e/n))>Math.PI/4)&&(i=Math.PI/4),i}))}var gt,yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),i=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,n.x,i.x),a=Math.min(e.y,n.y,i.y),o=Math.max(e.x,n.x,i.maxX),s=Math.max(e.y,n.y,i.maxY);return{x:r,y:a,minX:r,minY:a,maxX:o,maxY:s,width:o-r,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(g.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(g.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),i=n.x-e.x,r=n.y-e.y;return{x:e.x+i*t,y:e.y+r*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=m.vec2.normalize([],e),i=this.get("verticalFactor"),r=[n[1],-1*n[0]];return m.vec2.scale([],r,t*i)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),i=this.isHorizontal();if(n||i){var r=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=r.offset,u=o,l=0,c=0;a&&(l=a.style.fontSize,c=a.spacing),u&&(u=u-s-c-l);var h=this.get("overlapOrder");if(Object(g.each)(h,(function(n){r[n]&&e.autoProcessOverlap(n,r[n],t,u)})),a){var p=t.getBBox(),f=n?p.width:p.height;a.offset=s+f+c+l/2}}},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,a=this.isVertical(),o=!1,u=s[t];if(!0===e?o=u.getDefault()(a,n,i):Object(g.isFunction)(e)?o=e(a,n,i):u[e]&&(o=u[e](a,n,i)),"autoRotate"===t){if(o){var l=n.getChildren(),c=this.get("verticalFactor");Object(g.each)(l,(function(t){if("center"===t.attr("textAlign")){var e=c>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);Object(g.each)(h,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(U),vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,n-r],["A",i,r,0,1,1,e,n+r],["A",i,r,0,1,1,e,n-r],["Z"]];else{var u=this.getCirclePoint(a),l=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,h=a>o?0:1;s=[["M",e,n],["L",u.x,u.y],["A",i,r,0,c,h,l.x,l.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y],r=this.get("verticalFactor"),a=m.vec2.length(i);return m.vec2.scale(i,i,r*t/a),i},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e}(U),mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:R.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:R.textColor,textAlign:"center",textBaseline:"middle",fontFamily:R.fontFamily}},textBackground:{padding:5,style:{stroke:R.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,i=e.autoRotate,r=e.content;if(!Object(g.isNil)(r)){var a=this.getTextPoint(),o=null;if(i)o=b(a,this.getRotateAngle());this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(d.__assign)(Object(d.__assign)(Object(d.__assign)({},a),{text:r,matrix:o}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(d.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var r=n.getBBox(),a=C(i.padding),o=i.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(d.__assign)({x:r.x-a[3],y:r.y-a[0],width:r.width+a[1]+a[3],height:r.height+a[0]+a[2],matrix:n.attr("matrix")},o)}).toBack()}},e}(F),xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text").position,r=Math.atan2(n.y-e.y,n.x-e.x);return"start"===i?r-Math.PI/2:r+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text");return E(e,n,i.position,i.offset)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(mt),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,i=this.getLocation(),r=i.center,a=i.radius,o=i.startAngle,s=i.endAngle,u="start"===e?o:s,l=this.getRotateAngle()-Math.PI,c=P(r,a,u),h=Math.cos(l)*n,p=Math.sin(l)*n;return{x:c.x+h,y:c.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,a=null;if(r-i==2*Math.PI){var o=e.x,s=e.y;a=[["M",o,s-n],["A",n,n,0,1,1,o,s+n],["A",n,n,0,1,1,o,s-n],["Z"]]}else{var u=P(e,n,i),l=P(e,n,r),c=Math.abs(r-i)>Math.PI?1:0,h=i>r?0:1;a=[["M",u.x,u.y],["A",n,n,0,c,h,l.x,l.y]]}return a},e}(mt),_t=n(4),Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer();return S(parseFloat(t.style.left)||0,parseFloat(t.style.top)||0,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){w(this.get("container"))},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(g.isNil)(t)){t=this.createDom();var e=this.get("parent");Object(g.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else Object(g.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(g.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n,i=this.get("containerClassName");if(i&&(n=i,e.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)")))){var r=t[i];Object(_t.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(g.each)(e,(function(e,n){var i=t.getElementsByClassName(n);Object(g.each)(i,(function(t){Object(_t.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(_t.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(_t.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(g.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(k),Ct=((gt={})["g2-crosshair"]={position:"relative"},gt["g2-crosshair-line"]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},gt["g2-crosshair-text"]={position:"absolute",color:R.textColor,fontFamily:R.fontFamily},gt),wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="g2-crosshair"></div>',crosshairTpl:'<div class="g2-crosshair-line"></div>',textTpl:'<span class="g2-crosshair-text">{content}</span>',domStyles:null,containerClassName:"g2-crosshair",defaultStyles:Ct,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Object(_t.createDom)(e);t.appendChild(n),this.applyStyle("g2-crosshair-line",n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text");return E(e,n,i.position,i.offset)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var i=this.getContainer(),r=Object(g.substitute)(this.get("textTpl"),t);e=Object(_t.createDom)(r),i.appendChild(e),this.applyStyle("g2-crosshair-text",e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),i=Math.min(e.x,n.x),r=Math.min(e.y,n.y);this.isVertical(e,n)?Object(_t.modifyCSS)(t,{width:"1px",height:T(Math.abs(n.y-e.y))}):Object(_t.modifyCSS)(t,{height:"1px",width:T(Math.abs(n.x-e.x))}),Object(_t.modifyCSS)(t,{top:T(r),left:T(i)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,i=this.getTextPoint();switch(e){case"center":i.x=i.x-n/2;break;case"right":i.x=i.x-n}Object(_t.modifyCSS)(t,{top:T(i.y),left:T(i.x)})}},e.prototype.updateInner=function(e){Object(g.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(Mt),Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:R.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),i=e.slice(0).reverse(),r=this.getGridPath(i,!0);return this.get("closed")?n=n.concat(r):(r[0][0]="L",(n=n.concat(r)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),i=this.get("items"),r=this.get("alternateColor"),a=null;Object(g.each)(i,(function(i,o){var s=i.id||o;if(n){var u=e.getPathStyle(),l=e.getElementId("line-"+s),c=e.getGridPath(i.points);e.addShape(t,{type:"path",name:"grid-line",id:l,attrs:Object(g.mix)({path:c},u)})}if(r&&o>0){var h=e.getElementId("region-"+s),p=o%2==0;if(Object(g.isString)(r))p&&e.drawAlternateRegion(h,t,a.points,i.points,r);else{var f=p?r[1]:r[0];e.drawAlternateRegion(h,t,a.points,i.points,f)}}a=i}))},e.prototype.drawAlternateRegion=function(t,e,n,i,r){var a=this.getAlternatePath(n,i);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:r}})},e}(F);var St,At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,i,r,a,o,s,u=this.getLineType(),l=this.get("closed"),c=[];if(t.length)if("circle"===u){var h=this.get("center"),p=t[0],f=(n=h.x,i=h.y,r=p.x,a=p.y,o=r-n,s=a-i,Math.sqrt(o*o+s*s)),d=e?0:1;l?(c.push(["M",h.x,h.y-f]),c.push(["A",f,f,0,0,d,h.x,h.y+f]),c.push(["A",f,f,0,0,d,h.x,h.y-f]),c.push(["Z"])):Object(g.each)(t,(function(t,e){0===e?c.push(["M",t.x,t.y]):c.push(["A",f,f,0,0,d,t.x,t.y])}))}else Object(g.each)(t,(function(t,e){0===e?c.push(["M",t.x,t.y]):c.push(["L",t.x,t.y])})),l&&c.push(["Z"]);return c},e}(Ot),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(g.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(Ot),It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("x"),i=this.get("y"),r=this.get("offsetX"),a=this.get("offsetY"),o=this.get("maxWidth"),s=this.get("maxHeight"),u=n+r,l=i+a,c=e.maxX-u,h=e.maxY-l;return o&&(c=Math.min(c,o)),s&&(h=Math.min(h,s)),S(u,l,c,h)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+i})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),i=C(e.padding),r=Object(d.__assign)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:r}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,r=n.style,a=n.text,o=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(d.__assign)({text:a,x:e.x,y:e.y},r)}).getBBox();this.set("currentPoint",{x:e.x,y:o.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=C(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(F),Tt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"legend",type:"category",itemSpacing:24,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},items:[],itemStates:{},itemBackground:{},defaultCfg:{title:{spacing:5,style:{fill:R.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:R.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},itemName:{spacing:16,style:{fill:R.textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:{fill:R.textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:R.uncheckedColor},markerStyle:{fill:R.uncheckedColor,stroke:R.uncheckedColor}},inactive:{nameStyle:{fill:R.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){Object(g.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var i=this.getElementByLocalId("item-"+t.id);if(i){var r=this.getItems().indexOf(t),a=this.createOffScreenGroup(),o=this.drawItem(t,r,this.getItemHeight(),a);this.updateElements(o,i),this.clearUpdateStatus(i)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return Object(g.each)(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(g.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(g.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");Object(g.each)(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),i=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),r=this.getItemHeight(),a=this.get("itemWidth"),o=this.get("itemSpacing"),s=this.get("currentPoint"),u=s.x,l=s.y,c=this.get("layout"),h=this.get("items"),p=!1,f=0,d=this.get("maxWidth"),y=this.get("maxHeight");Object(g.each)(h,(function(t,n){var h=e.drawItem(t,n,r,i),g=h.getBBox(),v=a||g.width;v>f&&(f=v),"horizontal"===c?(d&&d<s.x+v-u&&(p=!0,s.x=u,s.y+=r),e.moveElementTo(h,s),s.x+=v+o):(y&&y<s.y+r-l&&(p=!0,s.x+=f+o,s.y=l,f=0),e.moveElementTo(h,s),s.y+=r)})),p&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=l,this.adjustNavigation(t,i))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=this.get("itemName");e&&(t=e.style.fontSize+8)}return t},e.prototype.drawMarker=function(t,e,n,i){var r=Object(d.__assign)(Object(d.__assign)(Object(d.__assign)({x:0,y:i/2},e.style),{symbol:Object(g.get)(n.marker,"symbol","circle")}),Object(g.get)(n.marker,"style",{})),a=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:r}),o=a.getBBox();a.attr("x",o.width/2);var s=a.attr(),u=s.stroke,l=s.fill;return u&&a.set("isStroke",!0),l&&a.set("isFill",!0),a},e.prototype.drawItemText=function(t,e,n,i,r,a,o){var s=n.formatter,u=Object(d.__assign)({x:a,y:r/2,text:s?s(i[e],i,o):i[e]},n.style);return this.addShape(t,{type:"text",id:this.getElementId("item-"+i.id+"-"+e),name:"legend-item-"+e,attrs:u})},e.prototype.drawItem=function(t,e,n,i){var r="item-"+t.id,a=this.addGroup(i,{name:"legend-item",id:this.getElementId(r),delegateObject:{item:t,index:e}}),o=this.get("marker"),s=this.get("itemName"),u=this.get("itemValue"),l=this.get("itemBackground"),c=0;o&&(c=this.drawMarker(a,o,t,n).getBBox().maxX+o.spacing);s&&(c=this.drawItemText(a,"name",s,t,n,c,e).getBBox().maxX+s.spacing);if(u){var h=this.drawItemText(a,"value",u,t,n,c,e),p=this.get("itemWidth");p&&u.alignRight&&h.attr({textAlign:"right",x:p})}if(l){var f=a.getBBox();this.addShape(a,{type:"rect",name:"legend-item-background",id:this.getElementId(r+"-background"),attrs:Object(d.__assign)({x:0,y:0,width:f.width,height:n},l.style)}).toBack()}return this.applyItemStates(t,a),a},e.prototype.adjustNavigation=function(t,e){var n=this,i=this.startX,r=this.startY,a=this.get("layout"),o=e.findAll((function(t){return"legend-item"===t.get("name")})),s=this.get("maxWidth"),u=this.get("maxHeight"),l=this.get("itemWidth"),c=this.get("itemSpacing"),h=this.getItemHeight(),p=this.drawNavigation(t,a,"00/00",12),f=p.getBBox(),d={x:i,y:r},y=1,v=0,m=0,x=0;if("horizontal"===a)this.pageHeight=h,Object(g.each)(o,(function(t){var e=t.getBBox(),r=l||e.width;(v&&v<d.x+r+c||s<d.x+r+c+f.width)&&(1===y&&(v=d.x+c,n.pageWidth=v,n.moveElementTo(p,{x:s-c-f.width-f.minX,y:d.y+h/2-f.height/2-f.minY})),y+=1,d.x=i,d.y+=h),n.moveElementTo(t,d),d.x+=r+c}));else{Object(g.each)(o,(function(t){var e=t.getBBox();e.width>m&&(m=e.width)})),x=m,m+=c,s&&(m=Math.min(s,m),x=Math.min(s,x)),this.pageWidth=m,this.pageHeight=u-Math.max(f.height,h);var b=Math.floor(this.pageHeight/h);Object(g.each)(o,(function(t,e){0!==e&&e%b==0&&(y+=1,d.x+=m,d.y=r),n.moveElementTo(t,d),d.y+=h})),this.totalPagesCnt=y,this.moveElementTo(p,{x:i+x/2-f.width/2-f.minX,y:u-f.height-f.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),this.totalPagesCnt=y,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(p),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,i){var r={x:0,y:0},a=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),o=this.drawArrow(a,r,"navigation-arrow-left","horizontal"===e?"up":"left",i);o.on("click",this.onNavigationBack);var s=o.getBBox();r.x+=s.width+2;var u=this.addShape(a,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:{x:r.x,y:r.y+i/2,text:n,fontSize:12,fill:"#ccc",textBaseline:"middle"}}).getBBox();return r.x+=u.width+2,this.drawArrow(a,r,"navigation-arrow-right","horizontal"===e?"down":"right",i).on("click",this.onNavigationAfter),a},e.prototype.updateNavigation=function(t){var e=this.currentPageIndex+"/"+this.totalPagesCnt,n=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),i=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),r=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),a=n.getBBox();n.attr("text",e);var o=n.getBBox();n.attr("x",n.attr("x")-(o.width-a.width)/2),i.attr("opacity",1===this.currentPageIndex?.45:1),i.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),r.attr("opacity",this.currentPageIndex===this.totalPagesCnt?.45:1),r.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,i,r){var a=e.x,o=e.y,s={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},u=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:{path:[["M",a+r/2,o],["L",a,o+r],["L",a+r,o+r],["Z"]],fill:"#000",cursor:"pointer"}});return u.attr("matrix",b({x:a+r/2,y:o+r/2},s[i])),u},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight;return _("horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0})},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),i=this.get("itemStates");Object(g.each)(n,(function(e){var n=e.get("name").split("-")[2],r=q(t,n,i);r&&(e.attr(r),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e}(It),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:R.textColor,textBaseline:"middle",fontFamily:R.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:R.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue()[1];i<n&&(i=n),e.setValue([n,i])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue()[0];i>n&&(i=n),e.setValue([i,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var i=e.getValueByCanvasPoint(n.x,n.y),r=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),u=r-i;u<0?a[0]+u>s.min?e.setValue([a[0]+u,a[1]+u]):e.setValue([s.min,s.min+o]):u>0&&(u>0&&a[1]+u<s.max?e.setValue([a[0]+u,a[1]+u]):e.setValue([s.max-o,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),i=n.style,r=n.align,a=this.get(t),o=this.getLabelAlignAttrs(t,r),s="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(s),name:"legend-label-"+t,attrs:Object(d.__assign)(Object(d.__assign)({x:0,y:0,text:a},i),o)})},e.prototype.getLabelAlignAttrs=function(t,e){var n="center",i="middle";return this.isVertical()?(n="start",i="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(i="top",n="min"===t?"start":"end"):(n="start",i="middle"),{textAlign:n,textBaseline:i}},e.prototype.getRailPath=function(t,e,n,i){var r=this.get("rail"),a=r.size,o=r.defaultLength,s=r.type,u=this.isVertical(),l=n,c=i;l||(l=u?a:o),c||(c=u?o:a);var h=[];return"color"===s?(h.push(["M",t,e]),h.push(["L",t+l,e]),h.push(["L",t+l,e+c]),h.push(["L",t,e+c]),h.push(["Z"])):(h.push(["M",t+l,e]),h.push(["L",t+l,e+c]),h.push(["L",t,e+c]),h.push(["Z"])),h},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(d.__assign)({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var i=0;i<n;i++){e+=" "+i/(n-1)+":"+t[i]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return Object(g.clone)(e)},e.prototype.getClipTrackAttrs=function(t){var e,n,i,r,a=this.getCurrentValue(),o=a[0],s=a[1],u=this.getRailBBox(t),l=this.getPointByValue(o,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=u.minX,n=l.y,i=u.width,r=c.y-l.y):(e=l.x,n=u.minY,i=c.x-l.x,r=u.height),{x:e,y:n,width:i,height:r}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),i=this.getTrackPath(t);return Object(g.mix)({path:i,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),i=e.findById(n),r=i.getClip(),a=this.getClipTrackAttrs(t);r?r.attr(a):i.setClip({type:"rect",attrs:a})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),i=this.getTrackAttrs(t);n?n.attr(i):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:i})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),i=n.min,r=(t-i)/(n.max-i),a=this.getRailBBox(e),o={x:0,y:0};return this.isVertical()?(o.x=a.minX+a.width/2,o.y=A(a.minY,a.maxY,r)):(o.x=A(a.minX,a.maxX,r),o.y=a.minY+a.height/2),o},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n=this.getRange(),i=n.min,r=n.max,a=this.getRailCanvasBBox(),o=this.isVertical(),s=this.get("step"),u=A(i,r,o?(e-a.minY)/a.height:(t-a.minX)/a.width);s&&(u=i+Math.round((u-i)/s)*s);return u>r&&(u=r),u<i&&(u=i),u},e.prototype.getCurrentValue=function(){var t=this.get("value");return t||(t=[this.get("min"),this.get("max")]),t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],i=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",i)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),i=[],r=t.size,a=e.x,o=e.y,s=1.4*r,u=r/2,l=r/6;if(n){var c=a+.4*s;i.push(["M",a,o]),i.push(["L",c,o+u]),i.push(["L",a+s,o+u]),i.push(["L",a+s,o-u]),i.push(["L",c,o-u]),i.push(["Z"]),i.push(["M",c,o+l]),i.push(["L",a+s-2,o+l]),i.push(["M",c,o-l]),i.push(["L",a+s-2,o-l])}else{var h=o+.4*s;i.push(["M",a,o]),i.push(["L",a-u,h]),i.push(["L",a-u,o+s]),i.push(["L",a+u,o+s]),i.push(["L",a+u,h]),i.push(["Z"]),i.push(["M",a-l,h]),i.push(["L",a-l,o+s-2]),i.push(["M",a+l,h]),i.push(["L",a+l,o+s-2])}return i},e.prototype.resetHandler=function(t,e,n){var i=this.getPointByValue(n,t),r=this.get("handler"),a=this.getHandlerPath(r,i),o=this.getElementId("handler-"+e),s=t.findById(o),u=this.isVertical();s?s.attr("path",a):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:o,attrs:Object(d.__assign)(Object(d.__assign)({path:a},r.style),{cursor:u?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),i=t.findById(this.getElementId("label-max")),r=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,i,e,r):this.fixedHorizontal(n,i,e,r)},e.prototype.fitRailLength=function(t,e,n,i){var r=this.isVertical()?"height":"width",a=this.get("label"),o=a.align,s=a.spacing,u=this.get("max"+Object(g.upperFirst)(r));if(u){var l=("rail"===o?n[r]+t[r]+e[r]+2*s:n[r])-u;l>0&&this.changeRailLength(i,r,n[r]-l)}},e.prototype.changeRailLength=function(t,e,n){var i,r=t.getBBox();i="height"===e?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height),t.attr("path",i)},e.prototype.changeRailPosition=function(t,e,n){var i=t.getBBox(),r=this.getRailPath(e,n,i.width,i.height);t.attr("path",r)},e.prototype.fixedHorizontal=function(t,e,n,i){var r=this.get("label"),a=r.align,o=r.spacing,s=n.getBBox(),u=t.getBBox(),l=e.getBBox(),c=s.height;this.fitRailLength(u,l,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:i.x,y:i.y+c/2}),this.changeRailPosition(n,i.x+u.width+o,i.y),e.attr({x:i.x+u.width+s.width+2*o,y:i.y+c/2})):"top"===a?(t.attr({x:i.x,y:i.y}),e.attr({x:i.x+s.width,y:i.y}),this.changeRailPosition(n,i.x,i.y+u.height+o)):(this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x,y:i.y+s.height+o}),e.attr({x:i.x+s.width,y:i.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,i){var r=this.get("label"),a=r.align,o=r.spacing,s=n.getBBox(),u=t.getBBox(),l=e.getBBox();if(this.fitRailLength(u,l,s,n),s=n.getBBox(),"rail"===a)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+u.height+o),e.attr({x:i.x,y:i.y+u.height+s.height+2*o});else if("right"===a)t.attr({x:i.x+s.width+o,y:i.y}),this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x+s.width+o,y:i.y+s.height});else{var c=Math.max(u.width,l.width);t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x+c+o,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(It),Lt=n(38),jt="g2-tooltip",kt="g2-tooltip-title",Bt="g2-tooltip-list",Dt="g2-tooltip-list-item",Ft="g2-tooltip-marker",Rt="g2-tooltip-value",Nt="g2-tooltip-name",Yt="g2-tooltip-crosshair-x",Gt="g2-tooltip-crosshair-y",Vt=((St={})[""+jt]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:R.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},St[""+kt]={marginBottom:"4px"},St[""+Bt]={margin:0,listStyleType:"none",padding:0},St[""+Dt]={listStyleType:"none",marginBottom:"4px"},St[""+Ft]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},St[""+Rt]={display:"inline-block",float:"right",marginLeft:"30px"},St[""+Yt]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},St[""+Gt]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},St);var Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],containerTpl:'<div class="'+jt+'"><div class="'+kt+'"></div><ul class="'+Bt+'"></ul></div>',itemTpl:'<li class="'+Dt+'" data-index={index}>\n <span class="'+Ft+'" style="background:{color}"></span>\n <span class="'+Nt+'">{name}</span>:\n <span class="'+Rt+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+Yt+'"></div>',yCrosshairTpl:'<div class="'+Gt+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:jt,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:Vt})},e.prototype.render=function(){this.resetTitle(),this.renderItems(),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.updateInner=function(e){var n,i,r;n=e,i=["title","showTitle"],r=!1,Object(g.each)(i,(function(t){if(Object(g.hasKey)(n,t))return r=!0,!1})),r&&this.resetTitle(),Object(g.hasKey)(e,"items")&&this.renderItems(),t.prototype.updateInner.call(this,e)},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),Object(_t.modifyCSS)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(_t.modifyCSS)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");n&&Object(_t.modifyCSS)(n,{display:e}),i&&Object(_t.modifyCSS)(i,{display:e})},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(kt)[0],n=t.getElementsByClassName(Bt)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),i=this.get("offset"),r=this.getOffset(),a=r.offsetX,o=r.offsetY,s=this.get("position"),u=this.get("region"),l=this.getContainer(),c=this.getBBox(),h=c.width,p=c.height;u&&(t=O(u));var f=function(t,e,n,i,r,a,o){var s=function(t,e,n,i,r,a){var o=t,s=e;switch(a){case"left":o=t-i-n,s=e-r/2;break;case"right":o=t+n,s=e-r/2;break;case"top":o=t-i/2,s=e-r-n;break;case"bottom":o=t-i/2,s=e+n;break;default:o=t+n,s=e-r-n}return{x:o,y:s}}(t,e,n,i,r,a);if(o){var u=function(t,e,n,i,r){return{left:t<r.x,right:t+n>r.x+r.width,top:e<r.y,bottom:e+i>r.y+r.height}}(s.x,s.y,i,r,o);"auto"===a?(u.right&&(s.x=t-i-n),u.top&&(s.y=e+n)):"top"===a||"bottom"===a?(u.left&&(s.x=o.x),u.right&&(s.x=o.x+o.width-i),"top"===a&&u.top&&(s.y=e+n),"bottom"===a&&u.bottom&&(s.y=e-r-n)):(u.top&&(s.y=o.y),u.bottom&&(s.y=o.y+o.height-r),"left"===a&&u.left&&(s.x=t+n),"right"===a&&u.right&&(s.x=t-i-n))}return s}(e,n,i,h,p,s,t);Object(_t.modifyCSS)(l,{left:T(f.x+a),top:T(f.y+o)}),this.resetCrosshairs()},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=O(t),i=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),i=this.get(t);"x"===t?Object(_t.modifyCSS)(n,{left:T(i),top:T(e.y),height:T(e.height)}):Object(_t.modifyCSS)(n,{top:T(i),left:T(e.x),width:T(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",i="CROSSHAIR_"+t.toUpperCase(),r=p[i],a=this.get(e),o=this.get("parent");return a||(a=Object(_t.createDom)(this.get(n)),this.applyStyle(r,a),o.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(g.each)(t,(function(t){var i=Lt.default.toCSSGradient(t.color),r=Object(d.__assign)(Object(d.__assign)({},t),{color:i}),a=Object(g.substitute)(e,r),o=Object(_t.createDom)(a);n.appendChild(o)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&w(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(Mt),zt={opacity:0},Ht={stroke:"#C5C5C5",strokeOpacity:.85},Wt={fill:"#CACED4",opacity:.85},qt=n(83),Ut=n(27);function Zt(t){return function(t){return Object(g.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function Qt(t,e,n,i){void 0===i&&(i=!0);var r=new Ut.Linear({values:t}),a=new Ut.Category({values:Object(g.map)(t,(function(t,e){return e}))}),o=Object(g.map)(t,(function(t,i){return[a.scale(i)*e,n-r.scale(t)*n]}));return i?function(t){if(t.length<=2)return Zt(t);var e=[];Object(g.each)(t,(function(t){Object(g.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(qt.catmullRom2Bezier)(e,!1),i=Object(g.head)(t),r=i[0],a=i[1];return n.unshift(["M",r,a]),n}(o):Zt(o)}var Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:zt,lineStyle:Ht,areaStyle:Wt})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.data,a=e.smooth,o=e.isArea,s=e.backgroundStyle,u=e.lineStyle,l=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(d.__assign)({x:0,y:0,width:n,height:i},s)});var c=Qt(r,n,i,a);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(d.__assign)({path:c},u)}),o){var h=function(t,e,n){var i=Object(d.__spreadArrays)(t);return i.push(["L",e,0]),i.push(["L",0,n]),i.push(["Z"]),i}(c,n,i);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(d.__assign)({path:h},l)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(F),$t={fill:"#416180 ",opacity:.05},Jt={fill:"#5B8FF9",opacity:.15,cursor:"move"},te={width:10,height:24},ee={textBaseline:"middle",fill:"#000",opacity:.45},ne={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:ne})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.style,a=r.fill,o=r.stroke,s=r.radius,u=r.opacity,l=r.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:i,fill:a,stroke:o,radius:s,opacity:u,cursor:l}});var c=1/3*n,h=2/3*n,p=1/4*i,f=3/4*i;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:p,x2:c,y2:f,stroke:o,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:p,x2:h,y2:f,stroke:o,cursor:l}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(F),re=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var i=n.originalEvent;i.stopPropagation(),i.preventDefault(),e.prevX=Object(g.get)(i,"touches.0.pageX",i.pageX),e.prevY=Object(g.get)(i,"touches.0.pageY",i.pageY);var r=e.getContainerDOM();r.addEventListener("mousemove",e.onMouseMove),r.addEventListener("mouseup",e.onMouseUp),r.addEventListener("mouseleave",e.onMouseUp),r.addEventListener("touchmove",e.onMouseMove),r.addEventListener("touchend",e.onMouseUp),r.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,i=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var r=Object(g.get)(t,"touches.0.pageX",t.pageX),a=Object(g.get)(t,"touches.0.pageY",t.pageY),o=r-e.prevX,s=e.adjustOffsetRange(o/n);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=r,e.prevY=a,e.draw(),e.emit("sliderchange",[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:i,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(d.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){if(Object(g.isArray)(t)&&2===t.length){var e=[this.get("start"),this.get("end")];this.update({start:t[0],end:t[1]}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:e,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:$t,foregroundStyle:Jt,handlerStyle:te,textStyle:ee}})},e.prototype.update=function(e){var n=e.start,i=e.end,r=Object(d.__assign)({},e);Object(g.isNil)(n)||(r.start=Object(g.clamp)(n,0,1)),Object(g.isNil)(i)||(r.end=Object(g.clamp)(i,0,1)),t.prototype.update.call(this,r),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler"))},e.prototype.init=function(){this.set("start",Object(g.clamp)(this.get("start"),0,1)),this.set("end",Object(g.clamp)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),i=e.height,r=e.trendCfg,a=void 0===r?{}:r,o=e.minText,s=e.maxText,u=e.backgroundStyle,l=void 0===u?{}:u,c=e.foregroundStyle,h=void 0===c?{}:c,p=e.textStyle,f=void 0===p?{}:p,y=e.handlerStyle,v=void 0===y?{}:y;Object(g.size)(Object(g.get)(a,"data"))&&this.addComponent(t,Object(d.__assign)({component:Kt,id:this.getElementId("trend"),x:0,y:0,width:n,height:i},a)),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(d.__assign)({x:0,y:0,width:n,height:i},l)});var m=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(d.__assign)({y:i/2,textAlign:"right",text:o,silent:!1},f)}),x=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(d.__assign)({y:i/2,textAlign:"left",text:s,silent:!1},f)}),b=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(d.__assign)({y:0,height:i},h)}),_=Object(g.get)(v,"height",24);this.minHandler=this.addComponent(t,Object(d.__assign)({component:ie,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(i-_)/2,width:n,height:_,cursor:"ew-resize"},v)),this.maxHandler=this.addComponent(t,Object(d.__assign)({component:ie,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(i-_)/2,width:n,height:_,cursor:"ew-resize"},v)),this.updateUI(b,m,x)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var i=this.cfg,r=i.start,a=i.end,o=i.width,s=i.minText,u=i.maxText,l=i.handlerStyle,c=r*o,h=a*o;t.attr("x",c),t.attr("width",h-c);var p=Object(g.get)(l,"width",10);e.attr("text",s),n.attr("text",u);var f=this._dodgeText([c,h],e,n),d=f[0],y=f[1];this.minHandler&&(this.minHandler.update({x:c-p/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(g.each)(d,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:h-p/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(g.each)(y,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":var r=0-n,a=1-n;return Math.min(a,Math.max(r,t));case"maxHandler":r=0-i,a=1-i;return Math.min(a,Math.max(r,t));case"foreground":r=0-n,a=1-i;return Math.min(a,Math.max(r,t));default:return 0}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":i+=t;break;case"foreground":n+=t,i+=t}this.set("start",n),this.set("end",i)},e.prototype._dodgeText=function(t,e,n){var i,r,a=this.cfg,o=a.handlerStyle,s=a.width,u=Object(g.get)(o,"width",10),l=t[0],c=t[1],h=!1;l>c&&(l=(i=[c,l])[0],c=i[1],e=(r=[n,e])[0],n=r[1],h=!0);var p=e.getBBox(),f=n.getBBox(),d=p.width>l-2?{x:l+u/2+2,textAlign:"left"}:{x:l-u/2-2,textAlign:"right"},y=f.width>s-c-2?{x:c-u/2-2,textAlign:"right"}:{x:c+u/2+2,textAlign:"left"};return h?[y,d]:[d,y]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(F),ae={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},oe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=g.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var i=t?Object(g.get)(n.originalEvent,"touches.0.clientX"):n.clientX,r=t?Object(g.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?i:r,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(_t.addEventListener)(t,"touchmove",e.onMouseMove),Object(_t.addEventListener)(t,"touchend",e.onMouseUp),Object(_t.addEventListener)(t,"touchcancel",e.onMouseUp)]:[Object(_t.addEventListener)(t,"mousemove",e.onMouseMove),Object(_t.addEventListener)(t,"mouseup",e.onMouseUp),Object(_t.addEventListener)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,i=n.isHorizontal,r=n.thumbOffset;t.preventDefault();var a=e.isMobile?Object(g.get)(t,"touches.0.clientX"):t.clientX,o=e.isMobile?Object(g.get)(t,"touches.0.clientY"):t.clientY,s=i?a:o,u=s-e.startPos;e.startPos=s,e.updateThumbOffset(r+u)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,i=n.isHorizontal,r=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),u=t.clientX,l=t.clientY,c=i?u-s.left-r-o/2:l-s.top-a-o/2,h=e.validateRange(c);e.updateThumbOffset(h)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return Object(d.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e)},e.prototype.getRange=function(){return{min:this.get("minLimit"),max:this.get("maxLimit")}},e.prototype.setValue=function(t){var e=this.getValue();this.update({thumbOffset:this.get("trackLen")-this.get("thumbLen")*Object(g.clamp)(t,0,1)}),this.delegateEmit("valuechange",{originalValue:e,value:this.getValue()})},e.prototype.getValue=function(){return Object(g.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(d.__assign)(Object(d.__assign)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:ae})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,i=e.theme,r=(void 0===i?{default:{}}:i).default,a=r.lineCap,o=r.trackColor,s=r.size,u=this.get("isHorizontal")?{x1:0+s/2,y1:s/2,x2:n-s/2,y2:s/2,lineWidth:s,stroke:o,lineCap:a}:{x1:s/2,y1:0+s/2,x2:s/2,y2:n-s/2,lineWidth:s,stroke:o,lineCap:a};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:u})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,i=e.thumbLen,r=e.theme,a=(void 0===r?{default:{}}:r).default,o=a.size,s=a.lineCap,u=a.thumbColor,l=this.get("isHorizontal")?{x1:n+o/2,y1:o/2,x2:n+i-o/2,y2:o/2,lineWidth:o,stroke:u,lineCap:s,cursor:"default"}:{x1:o/2,y1:n+o/2,x2:o/2,y2:n+i-o/2,lineWidth:o,stroke:u,lineCap:s,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:l})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,i=e.trackLen,r=t;return t+n>i?r=i-n:t+n<n&&(r=0),r},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,i=e.isHorizontal,r=e.thumbLen,a=e.size,o=this.validateRange(t);if(o!==n){var s=this.getElementByLocalId("thumb");i?s.attr({x1:o+a/2,x2:o+r-a/2}):s.attr({y1:o+a/2,y2:o+r-a/2}),this.emitOffsetChange(o)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,i=e.trackLen,r=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:Object(g.clamp)(t/(i-r),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(F)},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return te})),n.d(e,"Event",(function(){return a.Event})),n.d(e,"Canvas",(function(){return Jt})),n.d(e,"Group",(function(){return nt})),n.d(e,"Shape",(function(){return i}));var i={};n.r(i),n.d(i,"Base",(function(){return it})),n.d(i,"Circle",(function(){return rt})),n.d(i,"Ellipse",(function(){return ot})),n.d(i,"Image",(function(){return ut})),n.d(i,"Line",(function(){return pt})),n.d(i,"Marker",(function(){return yt})),n.d(i,"Path",(function(){return Rt})),n.d(i,"Polygon",(function(){return Yt})),n.d(i,"Polyline",(function(){return Xt})),n.d(i,"Rect",(function(){return zt})),n.d(i,"Text",(function(){return Wt}));var r=n(1),a=n(8),o=n(25),s=n.n(o),u=n(19),l=n.n(u),c=n(29),h=n.n(c),p=n(13),f=n.n(p),d=n(20),g=n.n(d),y=n(33),v=n.n(y),m=n(32),x=n.n(m),b=(n(42),n(65)),_=n.n(b),M=n(66),C=n.n(M);function w(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function O(t,e,n,i,r,a){return r>=t&&r<=t+n&&a>=e&&a<=e+i}function S(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function A(t,e){return t[0]===e[0]&&t[1]===e[1]}var P=n(0),I=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,T=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,E=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,L=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function j(t,e){var n=t.match(L);g()(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function k(t,e,n){if(l()(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(t,e,n){var i,r,a=I.exec(n),o=parseFloat(a[1])%360*(Math.PI/180),s=a[2],u=e.getBBox();o>=0&&o<.5*Math.PI?(i={x:u.minX,y:u.minY},r={x:u.maxX,y:u.maxY}):.5*Math.PI<=o&&o<Math.PI?(i={x:u.maxX,y:u.minY},r={x:u.minX,y:u.maxY}):Math.PI<=o&&o<1.5*Math.PI?(i={x:u.maxX,y:u.maxY},r={x:u.minX,y:u.minY}):(i={x:u.minX,y:u.maxY},r={x:u.maxX,y:u.minY});var l=Math.tan(o),c=l*l,h=(r.x-i.x+l*(r.y-i.y))/(c+1)+i.x,p=l*(r.x-i.x+l*(r.y-i.y))/(c+1)+i.y,f=t.createLinearGradient(i.x,i.y,h,p);return j(s,f),f}(t,e,n);if("r"===n[0])return function(t,e,n){var i=T.exec(n),r=parseFloat(i[1]),a=parseFloat(i[2]),o=parseFloat(i[3]),s=i[4];if(0===o){var u=s.match(L);return u[u.length-1].split(":")[1]}var l=e.getBBox(),c=l.maxX-l.minX,h=l.maxY-l.minY,p=Math.sqrt(c*c+h*h)/2,f=t.createRadialGradient(l.minX+c*r,l.minY+h*a,0,l.minX+c/2,l.minY+h/2,o*p);return j(s,f),f}(t,e,n);if("p"===n[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var i,r,a=E.exec(n),o=a[1],s=a[2];function u(){i=t.createPattern(r,o),e.set("pattern",i),e.set("patternSource",n)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return r=new Image,s.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=s,r.complete?u():(r.onload=u,r.src=r.src),i}(t,e,n)}return n}}function B(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function D(t,e){return B(t)*B(e)?(t[0]*e[0]+t[1]*e[1])/(B(t)*B(e)):1}function F(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(D(t,e))}function R(t,e){var n=e[1],i=e[2],r=x()(v()(e[3]),2*Math.PI),a=e[4],o=e[5],s=t[0],u=t[1],l=e[6],c=e[7],h=Math.cos(r)*(s-l)/2+Math.sin(r)*(u-c)/2,p=-1*Math.sin(r)*(s-l)/2+Math.cos(r)*(u-c)/2,f=h*h/(n*n)+p*p/(i*i);f>1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var d=n*n*(p*p)+i*i*(h*h),g=d?Math.sqrt((n*n*(i*i)-d)/d):1;a===o&&(g*=-1),isNaN(g)&&(g=0);var y=i?g*n*p/i:0,m=n?g*-i*h/n:0,b=(s+l)/2+Math.cos(r)*y-Math.sin(r)*m,_=(u+c)/2+Math.sin(r)*y+Math.cos(r)*m,M=[(h-y)/n,(p-m)/i],C=[(-1*h-y)/n,(-1*p-m)/i],w=F([1,0],M),O=F(M,C);return D(M,C)<=-1&&(O=Math.PI),D(M,C)>=1&&(O=0),0===o&&O>0&&(O-=2*Math.PI),1===o&&O<0&&(O+=2*Math.PI),{cx:b,cy:_,rx:A(t,[l,c])?0:n,ry:A(t,[l,c])?0:i,startAngle:w,endAngle:w+O,xRotation:r,arcFlag:a,sweepFlag:o}}var N=Math.sin,Y=Math.cos,G=Math.atan2,V=Math.PI;function X(t,e,n,i,r,a,o){var s=e.stroke,u=e.lineWidth,l=G(i-a,n-r),c=new Rt({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Y(V/6)+","+10*N(V/6)+" L0,0 L"+10*Y(V/6)+",-"+10*N(V/6),stroke:s,lineWidth:u}});c.translate(r,a),c.rotateAtPoint(r,a,l),t.set(o?"startArrowShape":"endArrowShape",c)}function z(t,e,n,i,a,o,s){var u=e.startArrow,l=e.endArrow,c=e.stroke,h=e.lineWidth,p=s?u:l,f=p.d,d=p.fill,g=p.stroke,y=p.lineWidth,v=Object(r.__rest)(p,["d","fill","stroke","lineWidth"]),m=G(i-o,n-a);f&&(a-=Y(m)*f,o-=N(m)*f);var x=new Rt({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(r.__assign)(Object(r.__assign)({},v),{stroke:g||c,lineWidth:y||h,fill:d})});x.translate(a,o),x.rotateAtPoint(a,o,m),t.set(s?"startArrowShape":"endArrowShape",x)}function H(t,e,n,i,r){var a=G(i-e,n-t);return{dx:Y(a)*r,dy:N(a)*r}}function W(t,e,n,i,r,a){"object"==typeof e.startArrow?z(t,e,n,i,r,a,!0):e.startArrow?X(t,e,n,i,r,a,!0):t.set("startArrowShape",null)}function q(t,e,n,i,r,a){"object"==typeof e.endArrow?z(t,e,n,i,r,a,!1):e.endArrow?X(t,e,n,i,r,a,!1):t.set("startArrowShape",null)}var U={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Z(t,e){var n=e.attr();for(var i in n){var r=n[i],a=U[i]?U[i]:i;"matrix"===a&&r?t.transform(r[0],r[1],r[3],r[4],r[6],r[7]):"lineDash"===a&&t.setLineDash?Object(P.isArray)(r)&&t.setLineDash(r):("strokeStyle"===a||"fillStyle"===a?r=k(t,e,r):"globalAlpha"===a&&(r*=t.globalAlpha),t[a]=r)}}function Q(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];r.get("visible")?r.draw(t,n):r.skipDraw()}}function K(t,e,n,i){var r=n.path,a=n.startArrow,o=n.endArrow,s=[0,0],u=[0,0],l={dx:0,dy:0};e.beginPath();for(var c=0;c<r.length;c++){var h=r[c],p=h[0];if(0===c&&a&&a.d)l=H((f=t.getStartTangent())[0][0],f[0][1],f[1][0],f[1][1],a.d);else if(c===r.length-2&&"Z"===r[c+1][0]&&o&&o.d){if("Z"===r[c+1][0])l=H((f=t.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],o.d)}else if(c===r.length-1&&o&&o.d){var f;if("Z"!==r[0])l=H((f=t.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],o.d)}var d=l.dx,g=l.dy;switch(p){case"M":e.moveTo(h[1]-d,h[2]-g),u=[h[1],h[2]];break;case"L":e.lineTo(h[1]-d,h[2]-g);break;case"Q":e.quadraticCurveTo(h[1],h[2],h[3]-d,h[4]-g);break;case"C":e.bezierCurveTo(h[1],h[2],h[3],h[4],h[5]-d,h[6]-g);break;case"A":var y=void 0;i?(y=i[c])||(y=R(s,h),i[c]=y):y=R(s,h);var v=y.cx,m=y.cy,x=y.rx,b=y.ry,_=y.startAngle,M=y.endAngle,C=y.xRotation,w=y.sweepFlag;if(e.ellipse)e.ellipse(v,m,x,b,C,_,M,1-w);else{var O=x>b?x:b,S=x>b?1:x/b,A=x>b?b/x:1;e.translate(v,m),e.rotate(C),e.scale(S,A),e.arc(0,0,O,_,M,1-w),e.scale(1/S,1/A),e.rotate(-C),e.translate(-v,-m)}break;case"Z":e.closePath()}if("Z"===p)s=u;else{var P=h.length;s=[h[P-2],h[P-1]]}}}function $(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw(),t.set("hasChanged",!0)))}function J(t){var e,n,i;if(t.destroyed)e=t._cacheCanvasBBox;else{var r=t.get("cacheCanvasBBox"),a=r&&!(!r.width||!r.height),o=t.getCanvasBBox(),s=o&&!(!o.width||!o.height);a&&s?(i=o,e=(n=r)&&i?{minX:Math.min(n.minX,i.minX),minY:Math.min(n.minY,i.minY),maxX:Math.max(n.maxX,i.maxX),maxY:Math.max(n.maxY,i.maxY)}:n||i):a?e=r:s&&(e=o)}return e}function tt(t){if(!t.length)return null;var e=[],n=[],i=[],r=[];return Object(P.each)(t,(function(t){var a=J(t);a&&(e.push(a.minX),n.push(a.minY),i.push(a.maxX),r.push(a.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,i),maxY:Math.max.apply(null,r)}}var et=n(47),nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.onCanvasChange=function(t){$(this,t)},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Z(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.getChildren();n.length&&(t.save(),Z(t,this),this._applyClip(t,this.getClip()),Q(t,n,e),t.restore()),this.set("cacheCanvasBBox",this.getCanvasBBox()),this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(a.AbstractGroup),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return nt},e.prototype.onCanvasChange=function(t){$(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(et.getBBoxMethod)(t)(this),i=e/2,r=n.x-i,a=n.y-i,o=n.x+n.width+i,s=n.y+n.height+i;return{x:r,minX:r,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:o,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Z(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.getClip();if(e&&!S(e,n?tt([this,n]):this.getCanvasBBox()))return;t.save(),Z(t,this),this._applyClip(t,this.getClip()),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype._afterDraw=function(){var t=this.getCanvasBBox(),e=this.getCanvas();if(this.set("cacheCanvasBBox",t),e){var n=e.getViewRange();this.set("isInView",S(t,n))}this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(s()(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=i)),this.isStroke()&&n>0&&(s()(r)||1===r||(t.globalAlpha=r),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),i=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(a.AbstractShape),rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),o=a.x,s=a.y,u=a.r,l=r/2,c=w(o,s,t,e);return i&&n?c<=u+l:i?c<=u:!!n&&(c>=u-l&&c<=u+l)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},e}(it);function at(t,e,n,i){return t/(n*n)+e/(i*i)}var ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),o=r/2,s=a.x,u=a.y,l=a.rx,c=a.ry,h=(t-s)*(t-s),p=(e-u)*(e-u);return i&&n?at(h,p,l+o,c+o)<=1:i?at(h,p,l,c)<=1:!!n&&(at(h,p,l-o,c-o)>=1&&at(h,p,l+o,c+o)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,a,0,0,2*Math.PI,!1);else{var o=r>a?r:a,s=r>a?1:r/a,u=r>a?a/r:1;t.save(),t.translate(n,i),t.scale(s,u),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(it);function st(t){return t instanceof HTMLElement&&l()(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(l()(t)){var i=new Image;i.onload=function(){if(e.destroyed)return!1;e.attr("img",i),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},i.src=t,i.crossOrigin="Anonymous",this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):st(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,i=e.y,r=e.width,a=e.height,o=e.sx,u=e.sy,l=e.swidth,c=e.sheight,h=e.img;(h instanceof Image||st(h))&&(s()(o)||s()(u)||s()(l)||s()(c)?t.drawImage(h,n,i,r,a):t.drawImage(h,o,u,l,c,n,i,r,a))},e}(it),lt=n(10),ct=n.n(lt);function ht(t,e,n,i,r,a,o){var s=Math.min(t,n),u=Math.max(t,n),l=Math.min(e,i),c=Math.max(e,i),h=r/2;return a>=s-h&&a<=u+h&&o>=l-h&&o<=c+h&&ct.a.pointToLine(t,e,n,i,a,o)<=r/2}var pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2,a=t.startArrow,o=t.endArrow;a&&W(this,t,i,r,e,n),o&&q(this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var a=this.attr();return ht(a.x1,a.y1,a.x2,a.y2,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,u={dx:0,dy:0},l={dx:0,dy:0};o&&o.d&&(u=H(n,i,r,a,e.startArrow.d)),s&&s.d&&(l=H(n,i,r,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,i+u.dy),t.lineTo(r-l.dx,a-l.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return ct.a.length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2;return ct.a.pointAt(n,i,r,a,t)},e}(it),ft=n(49),dt=n.n(ft),gt={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(P.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,i=this.attr(),r=i.x,a=i.y,o=i.symbol||"circle",s=this._getR(i);return h()(o)?(n=(t=o)(r,a,s),n=dt()(n)):n=(t=e.Symbols[o])(r,a,s),t?n:(console.warn(o+" marker is not supported."),null)},e.prototype.createPath=function(t){K(this,t,{path:this._getPath()},this.get("paramsCache"))},e.Symbols=gt,e}(it),vt=n(28),mt=n.n(vt),xt=n(82),bt=n.n(xt),_t=n(80);function Mt(t,e,n){var i=Object(_t.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,n)}function Ct(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function wt(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Ot(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var a=0;a<r;a++){var o=t[a],s=t[(a+1)%r];if(wt(o,s,[e,n]))return!0;Ct(o[1]-n)>0!=Ct(s[1]-n)>0&&Ct(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}var St=n(81),At=n.n(St);function Pt(t,e,n,i,r,a,o,s){var u=(Math.atan2(s-e,o-t)+2*Math.PI)%(2*Math.PI);if(u<i||u>r)return!1;var l={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return w(l.x,l.y,o,s)<=a/2}var It=n(3);function Tt(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],p=n[0],f=n[1];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=p*i+f*o+l,t[7]=p*r+f*s+c,t[8]=p*a+f*u+h,t}function Et(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],p=Math.sin(n),f=Math.cos(n);return t[0]=f*i+p*o,t[1]=f*r+p*s,t[2]=f*a+p*u,t[3]=f*o-p*i,t[4]=f*s-p*r,t[5]=f*u-p*a,t[6]=l,t[7]=c,t[8]=h,t}function Lt(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function jt(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t}var kt,Bt;kt=new It.a(3),It.a!=Float32Array&&(kt[0]=0,kt[1]=0,kt[2]=0),Bt=kt;var Dt=Object(r.__assign)({hasArc:function(t){for(var e=!1,n=t.length,i=0;i<n;i++){var r=t[i][0];if("C"===r||"A"===r||"Q"===r){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],i=[],r=[],a=0;a<e;a++){var o=t[a],s=o[0];"M"===s?(r.length&&(i.push(r),r=[]),r.push([o[1],o[2]])):"Z"===s?r.length&&(n.push(r),r=[]):r.push([o[1],o[2]])}return r.length>0&&i.push(r),{polygons:n,polylines:i}},isPointInStroke:function(t,e,n,i){for(var r=!1,a=e/2,o=0;o<t.length;o++){var s=t[o],u=s.currentPoint,l=s.params,c=s.prePoint,h=s.box;if(!h||O(h.x-a,h.y-a,h.width+e,h.height+e,n,i)){switch(s.command){case"L":case"Z":r=ht(c[0],c[1],u[0],u[1],e,n,i);break;case"Q":r=At.a.pointDistance(c[0],c[1],l[1],l[2],l[3],l[4],n,i)<=e/2;break;case"C":r=mt.a.pointDistance(c[0],c[1],l[1],l[2],l[3],l[4],l[5],l[6],n,i)<=e/2;break;case"A":var p=s.arcParams,f=p.cx,d=p.cy,g=p.rx,y=p.ry,v=p.startAngle,m=p.endAngle,x=p.xRotation,b=[n,i,1],_=[1,0,0,0,1,0,0,0,1],M=g>y?g:y,C=g>y?1:g/y,w=g>y?y/g:1;Tt(_,_,[-f,-d]),Et(_,_,-x),Lt(_,_,[1/C,1/w]),jt(b,b,_),r=Pt(0,0,M,v,m,e,b[0],b[1])}if(r)break}}return r}},a.PathUtil);function Ft(t,e,n){for(var i=!1,r=0;r<t.length;r++){if(i=Ot(t[r],e,n))break}return i}var Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=dt()(t);var e=Dt.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=bt()(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t,e=this.attr(),n=e.startArrow,i=e.endArrow;n&&W(this,e,(t=this.getStartTangent())[0][0],t[0][1],t[1][0],t[1][1]);i&&q(this,e,(t=this.getEndTangent())[0][0],t[0][1],t[1][0],t[1][1])},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.getSegments(),o=this.get("hasArc"),s=!1;if(n&&(s=Dt.isPointInStroke(a,r,t,e)),!s&&i)if(o)s=Mt(this,t,e);else{var u=this.attr("path"),l=Dt.extractPolygons(u);s=Ft(l.polygons,t,e)||Ft(l.polylines,t,e)}return s},e.prototype.createPath=function(t){K(this,t,this.attr(),this.get("paramsCache"))},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return Object(P.isNil)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,i=this.get("tCache");i||(this._calculateCurve(),this._setTcache(),i=this.get("tCache"));var r=this.get("curve");if(!i||0===i.length)return r?{x:r[0][1],y:r[0][2]}:null;Object(P.each)(i,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var a=r[n];if(Object(P.isNil)(a)||Object(P.isNil)(n))return null;var o=a.length,s=r[n+1];return mt.a.pointAt(a[o-2],a[o-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Dt.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,a=0,o=[],s=this.get("curve");s&&(Object(P.each)(s,(function(t,e){n=s[e+1],i=t.length,n&&(r+=mt.a.length(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",r),0!==r?(Object(P.each)(s,(function(u,l){n=s[l+1],i=u.length,n&&((t=[])[0]=a/r,e=mt.a.length(u[i-2],u[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),a+=e||0,t[1]=a/r,o.push(t))})),this.set("tCache",o)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,i=e[1].currentPoint,r=e[1].startTangent;t=[],r?(t.push([n[0]-r[0],n[1]-r[1]]),t.push([n[0],n[1]])):(t.push([i[0],i[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var i=e[n-2].currentPoint,r=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([r[0]-a[0],r[1]-a[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(it);function Nt(t,e,n,i,r){var a=t.length;if(a<2)return!1;for(var o=0;o<a-1;o++){if(ht(t[o][0],t[o][1],t[o+1][0],t[o+1][1],e,n,i))return!0}if(r){var s=t[0],u=t[a-1];if(ht(s[0],s[1],u[0],u[1],e,n,i))return!0}return!1}var Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr().points,o=!1;return n&&(o=Nt(a,r,t,e,!0)),!o&&i&&(o=Ot(a,t,e)),o},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var i=e[n];0===n?t.moveTo(i[0],i[1]):t.lineTo(i[0],i[1])}t.closePath()}},e}(it),Gt=n(50),Vt=n.n(Gt),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,i=e.startArrow,r=e.endArrow,a=n.length,o=n[0][0],s=n[0][1],u=n[a-1][0],l=n[a-1][1];i&&W(this,t,n[1][0],n[1][1],o,s),r&&q(this,t,n[a-2][0],n[a-2][1],u,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){return!(!n||!r)&&Nt(this.attr().points,r,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,i=e.startArrow,r=e.endArrow,a=n.length;if(!(n.length<2)){var o,s=n[0][0],u=n[0][1],l=n[a-1][0],c=n[a-1][1];if(i&&i.d)s+=(o=H(s,u,n[1][0],n[1][1],i.d)).dx,u+=o.dy;if(r&&r.d)l-=(o=H(n[a-2][0],n[a-2][1],l,c,r.d)).dx,c-=o.dy;t.beginPath(),t.moveTo(s,u);for(var h=0;h<a-1;h++){var p=n[h];t.lineTo(p[0],p[1])}t.lineTo(l,c)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(P.isNil)(e)?(this.set("totalLength",Vt.a.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),Object(P.each)(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),ct.a.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,a=[];Object(P.each)(t,(function(o,s){t[s+1]&&((n=[])[0]=r/e,i=ct.a.length(o[0],o[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(it);var zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),o=a.x,s=a.y,u=a.width,l=a.height,c=a.radius;if(c){var h=!1;return n&&(h=function(t,e,n,i,r,a,o,s){return ht(t+r,e,t+n-r,e,a,o,s)||ht(t+n,e+r,t+n,e+i-r,a,o,s)||ht(t+n-r,e+i,t+r,e+i,a,o,s)||ht(t,e+i-r,t,e+r,a,o,s)||Pt(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,a,o,s)||Pt(t+n-r,e+i-r,r,0,.5*Math.PI,a,o,s)||Pt(t+r,e+i-r,r,.5*Math.PI,Math.PI,a,o,s)||Pt(t+r,e+r,r,Math.PI,1.5*Math.PI,a,o,s)}(o,s,u,l,c,r,t,e)),!h&&i&&(h=Mt(this,t,e)),h}var p=r/2;return i&&n?O(o-p,s-p,u+p,l+p,t,e):i?O(o,s,u,l,t,e):n?function(t,e,n,i,r,a,o){var s=r/2;return O(t-s,e-s,n,r,a,o)||O(t+n-s,e-s,r,i,a,o)||O(t+s,e+i-s,n,r,a,o)||O(t-s,e+s,r,i,a,o)}(o,s,u,l,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.width,a=e.height,o=e.radius;if(t.beginPath(),0===o)t.rect(n,i,r,a);else{var s=function(t){var e=0,n=0,i=0,r=0;return f()(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,[e,n,i,r]}(o),u=s[0],l=s[1],c=s[2],h=s[3];t.moveTo(n+u,i),t.lineTo(n+r-l,i),0!==l&&t.arc(n+r-l,i+l,l,-Math.PI/2,0),t.lineTo(n+r,i+a-c),0!==c&&t.arc(n+r-c,i+a-c,c,0,Math.PI/2),t.lineTo(n+h,i+a),0!==h&&t.arc(n+h,i+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,i+u),0!==u&&t.arc(n+u,i+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(it),Ht=n(48),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(Ht.assembleFont)(t)},e.prototype._setText=function(t){var e=null;l()(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var i,r=this.attrs,a=r.textBaseline,o=r.x,s=r.y,u=1*r.fontSize,l=this._getSpaceingY(),c=Object(Ht.getTextHeight)(r.text,r.fontSize,r.lineHeight);g()(e,(function(e,r){i=s+r*(l+u)-c+u,"middle"===a&&(i+=c-u-(c-u)/2),"top"===a&&(i+=c-u),n?t.fillText(e,o,i):t.strokeText(e,o,i)}))},e.prototype._drawText=function(t,e){var n=this.attr(),i=n.x,r=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var o=n.text;e?t.fillText(o,i,r):t.strokeText(o,i,r)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&(s()(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(s()(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=i)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(it),qt=n(46),Ut=n(84);function Zt(t,e,n){var i=t.getTotalMatrix();if(i){var r=function(t,e){if(e){var n=Object(Ut.invert)(e);return Object(Ut.multiplyVec2)(n,t)}return t}([e,n,1],i);return[r[0],r[1]]}return[e,n]}function Qt(t,e,n){if(t.isGroup()&&t.isCanvas())return!0;if(!Object(qt.isAllowCapture)(t)&&!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var i=Zt(t,e,n),r=i[0],a=i[1];if(t.isClipped(r,a))return!1}var o=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=o.minX&&e<=o.maxX&&n>=o.minY&&n<=o.maxY}var Kt=n(51),$t=n.n(Kt),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return nt},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return t>=1?Math.floor(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.get("width"),maxY:this.get("height")}},e.prototype.initEvents=function(){var t=new $t.a({canvas:this});t.init(),this.set("eventController",t)},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var i=this.get("context"),r=this.get("el"),a=this.getPixelRatio();r.width=a*e,r.height=a*n,a>1&&i.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?function t(e,n,i){if(!Qt(e,n,i))return null;for(var r=null,a=e.getChildren(),o=a.length-1;o>=0;o--){var s=a[o];if(s.isGroup())r=t(s,n,i);else if(Qt(s,n,i)){var u=s,l=Zt(s,n,i),c=l[0],h=l[1];u.isInShape(c,h)&&(r=s)}if(r)break}return r}(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=tt(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),this.get("clipView")&&(t=function(t,e){return t&&e&&S(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(C()(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Z(t,this),Q(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.getChildren(),n=this._getRefreshRegion();n&&(t.clearRect(n.minX,n.minY,n.maxX-n.minX,n.maxY-n.minY),t.save(),t.beginPath(),t.rect(n.minX,n.minY,n.maxX-n.minX,n.maxY-n.minY),t.clip(),Z(t,this),Q(t,e,n),t.restore()),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=_()((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.destroy=function(){this.get("eventController").destroy(),t.prototype.destroy.call(this)},e}(a.AbstractCanvas),te=n(166).version},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return nt})),n.d(e,"Event",(function(){return a.Event})),n.d(e,"Canvas",(function(){return et})),n.d(e,"Group",(function(){return y})),n.d(e,"Shape",(function(){return i}));var i={};n.r(i),n.d(i,"Base",(function(){return m})),n.d(i,"Circle",(function(){return x})),n.d(i,"Dom",(function(){return b})),n.d(i,"Ellipse",(function(){return _})),n.d(i,"Image",(function(){return M})),n.d(i,"Line",(function(){return O})),n.d(i,"Marker",(function(){return P})),n.d(i,"Path",(function(){return I})),n.d(i,"Polygon",(function(){return T})),n.d(i,"Polyline",(function(){return j})),n.d(i,"Rect",(function(){return k})),n.d(i,"Text",(function(){return N}));var r=n(1),a=n(8),o=n(0),s={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},u={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function l(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function c(t){var e=s[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var i=l(e);if(t.get("id")&&(i.id=t.get("id")),t.set("el",i),t.set("attrs",{}),n){var r=n.get("el");r||(r=n.createDom(),n.set("el",r)),r.appendChild(i)}return i}function h(t,e){var n=t.get("el"),i=Object(o.toArray)(n.children).sort(e),r=document.createDocumentFragment();i.forEach((function(t){r.appendChild(t)})),n.appendChild(r)}function p(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);-1===(i=i.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)}}function f(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){c(n),n.createPath(e);var r=e.addClip(n);i.setAttribute("clip-path","url(#"+r+")")}}else i.removeAttribute("clip-path")}function d(t,e){e.forEach((function(e){e.draw(t)}))}function g(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context"),r=t.getParent(),a=r?r.getChildren():[n],o=t.get("el");if("remove"===e)if(t.get("isClipShape")){var s=o&&o.parentNode,u=s&&s.parentNode;s&&u&&u.removeChild(s)}else o&&o.parentNode&&o.parentNode.removeChild(o);else if("show"===e)o.setAttribute("visibility","visible");else if("hide"===e)o.setAttribute("visibility","hidden");else if("zIndex"===e)!function(t,e){var n=t.parentNode,i=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),r=i[e],a=i.indexOf(t);if(r){if(a>e)n.insertBefore(t,r);else if(a<e){var o=i[e+1];o?n.insertBefore(t,o):n.appendChild(t)}}else n.appendChild(t)}(o,a.indexOf(t));else if("sort"===e){var l=t.get("children");l&&l.length&&h(t,(function(t,e){return l.indexOf(t)-l.indexOf(e)?1:0}))}else"clear"===e?o&&(o.innerHTML=""):"matrix"===e?p(t):"clip"===e?f(t,i):"attr"===e||"add"===e&&t.draw(i)}}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=l("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.createPath(i,e)}},e.prototype.onCanvasChange=function(t){g(this,t)},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),f(this,t),this.createPath(t),e.length&&d(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(o.each)(e||n,(function(t,e){u[e]&&i.setAttribute(u[e],t)})),p(this)},e}(a.AbstractGroup),v=n(47),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.draw(i,e)}},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return y},e.prototype.onCanvasChange=function(t){g(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(v.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var i=e.x,r=e.y,a=e.width,o=e.height,s=this.getHitLineWidth(),u=s/2,l=i-u,c=r-u;return{x:l,y:c,minX:l,minY:c,maxX:i+a+u,maxY:r+o+u,width:a+s,height:o+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||c(this),f(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),i=n.fill,r=n.fillStyle,a=n.stroke,o=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,c=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",i):"fillStyle"in n&&this._setColor(t,"fill",r):this._setColor(t,"fill",i||r),s&&h.setAttribute(u.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),l&&h.setAttribute(u.strokeOpacity,l),c&&h.setAttribute(u.lineWidth,c))},e.prototype._setColor=function(t,e,n){var i=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(r=t.find("gradient",n))||(r=t.addGradient(n)),i.setAttribute(u[e],"url(#"+r+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var r;(r=t.find("pattern",n))||(r=t.addPattern(n)),i.setAttribute(u[e],"url(#"+r+")")}else i.setAttribute(u[e],n);else i.setAttribute(u[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),i=e||n,r=i.shadowOffsetX,a=i.shadowOffsetY,o=i.shadowBlur,s=i.shadowColor;(r||a||o||s)&&function(t,e){var n=t.cfg.el,i=t.attr(),r={dx:i.shadowOffsetX,dy:i.shadowOffsetY,blur:i.shadowBlur,color:i.shadowColor};if(r.dx||r.dy||r.blur||r.color){var a=e.find("filter",r);a||(a=e.addShadow(r)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")}(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&p(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),i=this.get("canvas").get("el").getBoundingClientRect(),r=t+i.left,a=e+i.top,o=document.elementFromPoint(r,a);return!(!o||!o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(a.AbstractShape),x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(o.each)(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):u[e]&&i.setAttribute(u[e],t)}))},e}(m),b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return Object(r.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(o.each)(e||n,(function(t,e){u[e]&&i.setAttribute(u[e],t)})),i.innerHTML=n.html},e}(m),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(o.each)(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):u[e]&&i.setAttribute(u[e],t)}))},e}(m),M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(o.each)(e||i,(function(t,e){"img"===e?n._setImage(i.img):u[e]&&r.setAttribute(u[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(o.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",i.toDataURL())}},e}(m),C=n(10),w=n.n(C),O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(o.each)(e||n,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var a=Object(o.isObject)(e)?t.addArrow(n,u[r]):t.getDefaultArrow(n,u[r]);i.setAttribute(u[r],"url(#"+a+")")}else i.removeAttribute(u[r]);else u[r]&&i.setAttribute(u[r],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return w.a.length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2;return w.a.pointAt(n,i,r,a,t)},e}(m),S={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},triangleDown:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},A={get:function(t){return S[t]},register:function(t,e){S[t]=e},remove:function(t){delete S[t]},getAll:function(){return S}},P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(o.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,i=e.y,r=e.r||e.radius,a=e.symbol||"circle";return(t=Object(o.isFunction)(a)?a:A.get(a))?t(n,i,r):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=A,e}(m),I=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(o.each)(e||i,(function(e,a){if("path"===a&&Object(o.isArray)(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===a||"endArrow"===a)if(e){var s=Object(o.isObject)(e)?t.addArrow(i,u[a]):t.getDefaultArrow(i,u[a]);r.setAttribute(u[a],"url(#"+s+")")}else r.removeAttribute(u[a]);else u[a]&&r.setAttribute(u[a],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength(),i=e?e.getPointAtLength(t*n):null;return i?{x:i.x,y:i.y}:null},e}(m),T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(o.each)(e||n,(function(t,e){"points"===e&&Object(o.isArray)(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):u[e]&&i.setAttribute(u[e],t)}))},e}(m),E=n(50),L=n.n(E),j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(o.each)(e||n,(function(t,e){"points"===e&&Object(o.isArray)(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):u[e]&&i.setAttribute(u[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(o.isNil)(e)?(this.set("totalLength",L.a.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),Object(o.each)(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),w.a.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,a=[];Object(o.each)(t,(function(o,s){t[s+1]&&((n=[])[0]=r/e,i=w.a.length(o[0],o[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(m);var k=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el"),a=!1,s=["x","y","width","height","radius"];Object(o.each)(e||i,(function(t,e){-1===s.indexOf(e)||a?-1===s.indexOf(e)&&u[e]&&r.setAttribute(u[e],t):(r.setAttribute("d",n._assembleRect(i)),a=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var s=function(t){var e=0,n=0,i=0,r=0;return Object(o.isArray)(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}}(a);return Object(o.isArray)(a)?1===a.length?s.r1=s.r2=s.r3=s.r4=a[0]:2===a.length?(s.r1=s.r3=a[0],s.r2=s.r4=a[1]):3===a.length?(s.r1=a[0],s.r2=s.r4=a[1],s.r3=a[2]):(s.r1=a[0],s.r2=a[1],s.r3=a[2],s.r4=a[3]):s.r1=s.r2=s.r3=s.r4=a,[["M "+(e+s.r1)+","+n],["l "+(i-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(r-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-i)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-r)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]].join(" ")},e}(m),B=n(113),D={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},F={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},R={left:"left",start:"left",center:"middle",right:"end",end:"end"},N=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");this._setFont(),Object(o.each)(e||i,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?p(n):u[e]&&r.setAttribute(u[e],t)})),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,i=e.textAlign,r=Object(B.detect)();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",F[n]||"alphabetic"):t.setAttribute("alignment-baseline",D[n]||"baseline"),t.setAttribute("text-anchor",R[i]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),i=n.x,r=n.textBaseline,a=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),u=s.length-1,l="";Object(o.each)(s,(function(t,e){0===e?"alphabetic"===a?l+='<tspan x="'+i+'" dy="'+-u+'em">'+t+"</tspan>":"top"===a?l+='<tspan x="'+i+'" dy="0.9em">'+t+"</tspan>":"middle"===a?l+='<tspan x="'+i+'" dy="'+-(u-1)/2+'em">'+t+"</tspan>":"bottom"===a?l+='<tspan x="'+i+'" dy="-'+(u+.3)+'em">'+t+"</tspan>":"hanging"===a&&(l+='<tspan x="'+i+'" dy="'+(-(u-1)-.3)+'em">'+t+"</tspan>"):l+='<tspan x="'+i+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(m),Y=n(51),G=n.n(Y),V=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,X=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,z=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function H(t){var e=t.match(z);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(o.each)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var W=function(){function t(t){this.cfg={};var e,n,i,r,a,s,u,c=null,h=Object(o.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,r=V.exec(t),a=Object(o.mod)(Object(o.toRadian)(parseFloat(r[1])),2*Math.PI),s=r[2];a>=0&&a<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=a&&a<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=a&&a<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var u=Math.tan(a),l=u*u,c=(i.x-n.x+u*(i.y-n.y))/(l+1)+n.x,h=u*(i.x-n.x+u*(i.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",c),e.setAttribute("y2",h),e.innerHTML=H(s)}(t,c=l("linearGradient")):(c=l("radialGradient"),e=t,n=c,i=X.exec(e),r=parseFloat(i[1]),a=parseFloat(i[2]),s=parseFloat(i[3]),u=i[4],n.setAttribute("cx",r),n.setAttribute("cy",a),n.setAttribute("r",s),n.innerHTML=H(u)),c.setAttribute("id",h),this.el=c,this.id=h,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),q={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},U={x:"-40%",y:"-40%",width:"200%",height:"200%"},Z=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=l("filter");return Object(o.each)(U,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(o.uniqueId)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return Object(o.each)(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[q[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}(),Q=function(){function t(t,e){this.cfg={};var n=l("marker"),i=Object(o.uniqueId)("marker_");n.setAttribute("id",i);var r=l("path");r.setAttribute("stroke",t.stroke||"none"),r.setAttribute("fill",t.fill||"none"),n.appendChild(r),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=r,this.id=i;var a=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===a?this._setDefaultPath(e,r):(this.cfg=a,this._setMarker(t.lineWidth,r)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,r=this.cfg.d;Object(o.isArray)(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),r&&n.setAttribute("refX",""+r/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),K=function(){function t(t){this.type="clip",this.cfg={};var e=l("clipPath");this.el=e,this.id=Object(o.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),$=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,J=function(){function t(t){this.cfg={};var e=l("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=l("image");e.appendChild(n);var i=Object(o.uniqueId)("pattern_");e.id=i,this.el=e,this.id=i,this.cfg=t;var r=$.exec(t)[2];n.setAttribute("href",r);var a=new Image;function s(){e.setAttribute("width",""+a.width),e.setAttribute("height",""+a.height)}return r.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=r,a.complete?s():(a.onload=s,a.src=a.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),tt=function(){function t(t){var e=l("defs"),n=Object(o.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,i=null,r=0;r<n.length;r++)if(n[r].match(t,e)){i=n[r].id;break}return i},t.prototype.findById=function(t){for(var e=this.children,n=null,i=0;i<e.length;i++)if(e[i].id===t){n=e[i];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new Q(t,e);return this.defaultArrow[n]=i,this.el.appendChild(i.el),this.add(i),i.id},t.prototype.addGradient=function(t){var e=new W(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new Q(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new Z(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new J(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new K(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),et=function(t){function e(e){return t.call(this,Object(r.__assign)(Object(r.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(r.__extends)(e,t),e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return y},e.prototype.getShape=function(t,e,n){var i=n.target||n.srcElement;if(!s[i.tagName]){for(var r=i.parentNode;r&&!s[r.tagName];)r=r.parentNode;i=r}return this.find((function(t){return t.get("el")===i}))},e.prototype.createDom=function(){var t=l("svg"),e=new tt(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var i=this.get("children");i&&i.length&&h(this,(function(t,e){return i.indexOf(t)-i.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var r=e.el;r.innerHTML="",n.appendChild(r)}}else"matrix"===t?p(this):"clip"===t?f(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();f(this,t),e.length&&d(t,e)},e.prototype.initEvents=function(){var t=new G.a({canvas:this});t.init(),this.set("eventController",t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e}(a.AbstractCanvas),nt=n(168).version},function(t,e,n){"use strict";n.r(e),n.d(e,"getAdjust",(function(){return o})),n.d(e,"registerAdjust",(function(){return s})),n.d(e,"Adjust",(function(){return r}));var i=n(0),r=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames,r=void 0===i?["x","y"]:i;this.adjustNames=r,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===o?0:o-1],r=n[o===s-1?s-1:o+1],0!==o?i+=(e-i)/2:i-=(r-e)/2,o!==s-1?r-=(r-e)/2:r+=(e-n[s-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);i.each(t,(function(t,e){i.each(r,(function(i,r){n.adjustDim(r,i,t,e)}))}))},t.prototype.groupData=function(t,e){return i.each(t,(function(t){void 0===t[e]&&(t[e]=0)})),i.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,r={},a=[];if(e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(e){r[e]=i.valuesOfKey(t,e).sort((function(t,e){return t-e}))})),!n&&this.isAdjust("y")){r.y=[0,1]}return r},t}(),a={},o=function(t){return a[t.toLowerCase()]},s=function(t,e){if(o(t))throw new Error("Adjust type '"+t+"' existed.");a[t.toLowerCase()]=e},u=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var i=e.marginRatio,r=void 0===i?.5:i,a=e.dodgeRatio,o=void 0===a?.5:a,s=e.dodgeBy;return n.marginRatio=r,n.dodgeRatio=o,n.dodgeBy=s,n}return Object(u.__extends)(e,t),e.prototype.process=function(t){var e=i.clone(t),n=i.flatten(e),r=this.dodgeBy,a=r?i.group(n,r):e;return this.cacheMap={},this.adjustDataArray=a,this.mergeData=n,this.adjustData(a,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var a=this,o=this.getDistribution(t),s=this.groupData(n,t);return i.each(s,(function(n,s){var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:a.getAdjustRange(t,parseFloat(s),e),i.each(n,(function(e){var n=e[t],i=o[n],s=i.indexOf(r);e[t]=a.getDodgeOffset(u,s,i.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i=this.dodgeRatio,r=this.marginRatio,a=t.pre,o=t.next,s=o-a,u=s*i/n,l=r*u;return(a+o)/2+(.5*(s-n*u-(n-1)*l)+((e+1)*u+e*l)-.5*u-.5*s)},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},i.each(e,(function(e,n){var a=i.valuesOfKey(e,t);a.length||a.push(0),i.each(a,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(r);var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(u.__extends)(e,t),e.prototype.process=function(t){var e=i.clone(t),n=i.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,a=this.groupData(n,t);return i.each(a,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,i=t.next,r=.05*(i-n);return(i-r-(e=n+r))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var a=this,o=this.getAdjustRange(e,n,r);return i.each(t,(function(t){t[e]=a.getAdjustOffset(o)})),t},e}(r),h=i.Cache,p=function(t){function e(e){var n=t.call(this,e)||this,i=e.adjustNames,r=void 0===i?["y"]:i,a=e.height,o=void 0===a?NaN:a,s=e.size,u=void 0===s?10:s,l=e.reverseOrder,c=void 0!==l&&l;return n.adjustNames=r,n.height=o,n.size=u,n.reverseOrder=c,n}return Object(u.__extends)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,i=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(i):i},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,r=this.reverseOrder?this.reverse(t):t,a=new h,o=new h;return r.map((function(t){return t.map((function(t){var r,s=i.get(t,e,0),l=i.get(t,n),c=s.toString();if(l=i.isArray(l)?l[1]:l,!i.isNil(l)){var h=l>=0?a:o;h.has(c)||h.set(c,0);var p=h.get(c),f=l+p;return h.set(c,f),Object(u.__assign)(Object(u.__assign)({},t),((r={})[n]=[p,f],r))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,i=this.height,r=this.reverseOrder,a=r?this.reverse(t):t,o=new h;return a.map((function(t){return t.map((function(t){var r,a=e.size,s=t[n],l=2*a/i;o.has(s)||o.set(s,l/2);var c=o.get(s);return o.set(s,c+l),Object(u.__assign)(Object(u.__assign)({},t),((r={}).y=c,r))}))}))},e}(r),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(u.__extends)(e,t),e.prototype.process=function(t){var e=i.flatten(t),n=this.xField,r=this.yField,a=this.getXValuesMaxMap(e),o=Math.max.apply(Math,Object.keys(a).map((function(t){return a[t]})));return i.map(t,(function(t){return i.map(t,(function(t){var e,s,l=t[r],c=t[n];if(i.isArray(l)){var h=(o-a[c])/2;return Object(u.__assign)(Object(u.__assign)({},t),((e={})[r]=i.map(l,(function(t){return h+t})),e))}var p=(o-l)/2;return Object(u.__assign)(Object(u.__assign)({},t),((s={})[r]=[p,l+p],s))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,a=i.groupBy(t,(function(t){return t[n]}));return i.mapValues(a,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=i.map(t,(function(t){return i.get(t,e,[])})),r=i.flatten(n);return Math.max.apply(Math,r)},e}(r);s("Dodge",l),s("Jitter",c),s("Stack",p),s("Symmetric",f)},function(t,e,n){"use strict";n.r(e),n.d(e,"getCoordinate",(function(){return h})),n.d(e,"registerCoordinate",(function(){return p})),n.d(e,"Coordinate",(function(){return o}));var i=n(1),r=n(2),a=n(0),o=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,r=t.matrix,a=void 0===r?[1,0,0,0,1,0,0,0,1]:r,o=t.isTransposed,s=void 0!==o&&o;this.start=e,this.end=n,this.matrix=a,this.originalMatrix=Object(i.__spreadArrays)(a),this.isTransposed=s}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){a.assign(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,i=this[e],r=i.start,a=i.end;return this.isReflect(e)&&(r=(n=[a,r])[0],a=n[1]),r+t*(a-r)},t.prototype.invertDim=function(t,e){var n,i=this[e],r=i.start,a=i.end;return this.isReflect(e)&&(r=(n=[a,r])[0],a=n[1]),(t-r)/(a-r)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,a=[t,e,n];return r.vec3.transformMat3(a,a,i),a},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,a=r.mat3.invert([],i),o=[t,e,n];return a&&r.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return r.mat3.translate(e,e,[-n.x,-n.y]),r.mat3.rotate(e,e,t),r.mat3.translate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,i=this.center;return r.mat3.translate(n,n,[-i.x,-i.y]),r.mat3.scale(n,n,[t,e]),r.mat3.translate(n,n,[i.x,i.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return r.mat3.translate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||Object(i.__spreadArrays)(this.originalMatrix)},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;return this.isTransposed&&(n=(e=[i,n])[0],i=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(i,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),i=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[i,n])[0],i=e[1]),{x:n,y:i}},e}(o),u=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var i=e.startAngle,r=void 0===i?1.25*Math.PI:i,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,u=void 0===s?0:s,l=e.radius;return n.startAngle=r,n.endAngle=o,n.innerRadius=u,n.radius=l,n.initial(),n}return Object(i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;this.isTransposed&&(n=(e=[i,n])[0],i=e[1]);var r=this.convertDim(n,"x"),a=this.a*r,o=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(a+o),y:this.center.y+Math.sin(r)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,i=r.vec2.subtract([],[t.x,t.y],[this.center.x,this.center.y]),o=r.vec2.angleTo(i,[1,0],!0),s=o*this.a;r.vec2.length(i)<s&&(s=r.vec2.length(i)),o=2*Math.floor((r.vec2.length(i)-s)/n)*Math.PI+o;var u=this.a*o,l=r.vec2.length(i)-u;l=Object(a.isNumberEqual)(l,0)?0:l;var c=this.invertDim(o,"x"),h=this.invertDim(l,"y");return c=Object(a.isNumberEqual)(c,0)?0:c,h=Object(a.isNumberEqual)(h,0)?0:h,this.isTransposed&&(c=(e=[h,c])[0],h=e[1]),{x:c,y:h}},e}(o),l=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var i=e.startAngle,r=void 0===i?-Math.PI/2:i,a=e.endAngle,o=void 0===a?3*Math.PI/2:a,s=e.innerRadius,u=void 0===s?0:s,l=e.radius;return n.startAngle=r,n.endAngle=o,n.innerRadius=u,n.radius=l,n.initial(),n}return Object(i.__extends)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),i=n.maxX-n.minX,r=n.maxY-n.minY,a=Math.abs(n.minX)/i,o=Math.abs(n.minY)/r;this.height/r>this.width/i?(e=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-a)*e*i,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),i=t.x,r=t.y;return this.isTransposed&&(i=(e=[r,i])[0],r=e[1]),i=this.convertDim(i,"x"),r=this.convertDim(r,"y"),{x:n.x+Math.cos(i)*r,y:n.y+Math.sin(i)*r}},e.prototype.invertPoint=function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],i=[1,0,0,0,1,0,0,0,1];r.mat3.rotate(i,i,this.startAngle);var o=[1,0,0];r.vec3.transformMat3(o,o,i),o=[o[0],o[1]];var s=r.vec2.angleTo(o,n,this.endAngle<this.startAngle);Object(a.isNumberEqual)(s,2*Math.PI)&&(s=0);var u=r.vec2.length(n),l=s/(this.endAngle-this.startAngle);l=this.endAngle-this.startAngle>0?l:-l;var c=this.invertDim(u,"y"),h={x:0,y:0};return h.x=this.isTransposed?c:l,h.y=this.isTransposed?l:c,h},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r<Math.max(t,e);r+=Math.PI/18)n.push(Math.cos(r)),i.push(Math.sin(r));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}},e}(o),c={},h=function(t){return c[t.toLowerCase()]},p=function(t,e){c[t.toLowerCase()]=e};p("rect",s),p("cartesian",s),p("polar",l),p("helix",u)}])}));
//# sourceMappingURL=g2.min.js.map