(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[28,4],{"+wuf":function(t,e,n){t.exports={timelineChart:"timelineChart___vQc_h"}},"039v":function(module,__webpack_exports__,__webpack_require__){"use strict";var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("2qtc"),antd_es_modal__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("kLXV"),antd_es_button_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("+L6B"),antd_es_button__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("2/Rp"),antd_es_divider_style__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("/zsF"),antd_es_divider__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("PArb"),antd_es_table_style__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("g9YV"),antd_es_table__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("wCAj"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("jrin"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("WmNS"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_9__),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("9og8"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("fWQN"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("mtLc"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("yKVA"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("879j"),bizcharts__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("yP6+"),bizcharts__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(bizcharts__WEBPACK_IMPORTED_MODULE_15__),react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("q1tI"),react__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_16__),lodash_debounce__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("9/5/"),lodash_debounce__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_17__),react_fittext__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("Jssm"),react_fittext__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(react_fittext__WEBPACK_IMPORTED_MODULE_18__),classnames__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("TSYQ"),classnames__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_19__),_autoHeight__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("XXYD"),_index_less_modules__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("HQqU"),_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_21__),_pages_dashboard_teachingStaff_service__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("YBfy"),Pie=function(_Component){Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_13__["a"])(Pie,_Component);var _super=Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_14__["a"])(Pie);function Pie(){var t;Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_11__["a"])(this,Pie);for(var e=arguments.length,n=new Array(e),r=0;r-1})),t.setState({legendData:i})},t.getTableData=function(e){"Nation"==e&&t.setState({modelTitle:"\u5c11\u6570\u6c11\u65cf\u6bd4\u4f8b\u8be6\u60c5"}),"AGE"==e&&t.setState({modelTitle:"\u5e74\u9f84\u5206\u5e03\u8be6\u60c5"}),"Distribution"==e&&t.setState({modelTitle:"\u5b66\u751f\u57ce\u4e61\u5206\u5e03\u8be6\u60c5"}),"SEX"==e&&t.setState({modelTitle:"\u7537\u5973\u6bd4\u4f8b\u8be6\u60c5"}),console.log(e,"type,11111111111");var n=function(){var n=Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_10__["a"])(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_9___default.a.mark((function n(){var r,i;return C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_9___default.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(_pages_dashboard_teachingStaff_service__WEBPACK_IMPORTED_MODULE_22__["a"])({query:{query_id:"SEX"===e?"major_sex_student_num_rate_1":"AGE"===e?"major_age_student_1":"Distribution"===e?"major_household_type_student_1":"major_ethnicity_student",query_param:[]},query_count:["total"],query_format:"antd",query_group:[]});case 2:r=n.sent,i=r.result?JSON.parse(r.result):"",console.log(JSON.parse(r.result),"data.result"),"SEX"===e?t.setState({tableListSex:i.datas}):"AGE"===e?t.setState({tableListAge:i.datas}):"Distribution"===e?t.setState({tableListDistribution:i.datas}):(console.log(i.datas,"newList.datas"),t.setState({tableListNation:i.datas}));case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();n()},t.handleCancel=function(e){t.setState({showModal:!1})},t}return Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_12__["a"])(Pie,[{key:"componentDidMount",value:function(){var t=this;window.addEventListener("resize",(function(){t.requestRef=requestAnimationFrame((function(){return t.resize()}))}),{passive:!0})}},{key:"componentDidUpdate",value:function(t){var e=this.props.data;e!==t.data&&this.getLegendData()}},{key:"componentWillUnmount",value:function(){this.requestRef&&window.cancelAnimationFrame(this.requestRef),window.removeEventListener("resize",this.resize),this.resize&&this.resize.cancel()}},{key:"render",value:function render(){var _classNames,_this3=this,_this$props=this.props,subTitle=_this$props.subTitle,total=_this$props.total,_this$props$hasLegend=_this$props.hasLegend,hasLegend=void 0!==_this$props$hasLegend&&_this$props$hasLegend,className=_this$props.className,style=_this$props.style,_this$props$height=_this$props.height,height=void 0===_this$props$height?0:_this$props$height,_this$props$forceFit=_this$props.forceFit,forceFit=void 0===_this$props$forceFit||_this$props$forceFit,percent=_this$props.percent,color=_this$props.color,inner=_this$props.inner,_this$props$animate=_this$props.animate,animate=void 0===_this$props$animate||_this$props$animate,colors=_this$props.colors,_this$props$lineWidth=_this$props.lineWidth,lineWidth=void 0===_this$props$lineWidth?1:_this$props$lineWidth,type=_this$props.type,_this$state=this.state,legendData=_this$state.legendData,legendBlock=_this$state.legendBlock,pieClassName=classnames__WEBPACK_IMPORTED_MODULE_19___default()(_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.pie,className,(_classNames={},Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__["a"])(_classNames,_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.hasLegend,!!hasLegend),Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__["a"])(_classNames,_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.legendBlock,legendBlock),_classNames)),_this$props2=this.props,propsData=_this$props2.data,_this$props2$selected=_this$props2.selected,propsSelected=void 0===_this$props2$selected||_this$props2$selected,_this$props2$tooltip=_this$props2.tooltip,propsTooltip=void 0===_this$props2$tooltip||_this$props2$tooltip,data=propsData||[],selected=propsSelected,tooltip=propsTooltip,defaultColors=colors,formatColor;data=data||[],selected=selected||!0,tooltip=tooltip||!0;var scale={x:{type:"cat",range:[0,1]},y:{min:0}};(percent||0===percent)&&(selected=!1,tooltip=!1,formatColor=function(t){return"\u5360\u6bd4"===t?color||"rgba(24, 144, 255, 0.85)":"#F0F2F5"},data=[{x:"\u5360\u6bd4",y:parseFloat("".concat(percent))},{x:"\u53cd\u6bd4",y:100-parseFloat("".concat(percent))}]);var tooltipFormat=["name*total",function(t,e){return{name:t,value:"".concat(e,"\u4eba")}}],padding=[12,0,12,0],columnsSex=[{title:"\u5e8f\u53f7",dataIndex:"index",valueType:"index",align:"center",fixed:"left",render:function(t,e,n){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_16___default.a.Fragment,null,n+1)}},{title:"\u4e13\u4e1a\u540d",dataIndex:"major_name",key:"major_name",width:180},{title:"\u5408\u8ba1",dataIndex:"total",key:"total"},{title:"\u7537",dataIndex:"male",key:"male"},{title:"\u7537\u767e\u5206\u6bd4",dataIndex:"male_rate",key:"male_rate",width:90,render:function(t,e,n){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_16___default.a.Fragment,null,(100*e.male_rate).toFixed(2),"%")}},{title:"\u5973",dataIndex:"female",key:"female"},{title:"\u5973\u767e\u5206\u6bd4",dataIndex:"female_rate",key:"female_rate",width:80,render:function(t,e,n){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_16___default.a.Fragment,null,(100*e.female_rate).toFixed(2),"%")}},{title:"\u672a\u77e5",dataIndex:"unknow",key:"unknow"},{title:"\u672a\u77e5\u767e\u5206\u6bd4",dataIndex:"unknow_rate",key:"unknow_rate"}],columnsAge=[{title:"\u5e8f\u53f7",dataIndex:"index",valueType:"index",align:"center",fixed:"left",render:function(t,e,n){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_16___default.a.Fragment,null,n+1)}},{title:"\u4e13\u4e1a\u540d",dataIndex:"major_name",key:"major_name",width:150},{title:"\u5408\u8ba1",dataIndex:"total",key:"total"},{title:"14\u5c81\u4ee5\u4e0b",dataIndex:"lte14",key:"lte14"},{title:"15\u5c81",dataIndex:"e15",key:"e15"},{title:"16\u5c81",dataIndex:"e16",key:"e16"},{title:"17\u5c81",dataIndex:"e17",key:"e17"},{title:"18\u5c81",dataIndex:"e18",key:"e18"},{title:"19\u5c81",dataIndex:"e19",key:"e19"},{title:"20\u5c81",dataIndex:"e20",key:"e20"},{title:"21\u5c81",dataIndex:"e21",key:"e21"},{title:"22\u5c81\u4ee5\u4e0a",dataIndex:"gte22",key:"gte22"}],columnsDistribution=[{title:"\u5e8f\u53f7",dataIndex:"index",valueType:"index",align:"center",fixed:"left",render:function(t,e,n){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_16___default.a.Fragment,null,n+1)}},{title:"\u4e13\u4e1a\u540d",dataIndex:"major_name",key:"major_name",width:230},{title:"\u5408\u8ba1",dataIndex:"total",key:"total"},{title:"\u57ce\u533a",dataIndex:"city",key:"city"},{title:"\u9547\u533a",dataIndex:"town",key:"town"},{title:"\u4e61\u6751",dataIndex:"country",key:"country"}],tableOfdiffrent=function tableOfdiffrent(){var columns=[{title:"\u5e8f\u53f7",dataIndex:"index",valueType:"index",align:"center",fixed:"left",render:function(t,e,n){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_16___default.a.Fragment,null,n+1)}},{title:"\u4e13\u4e1a\u540d",dataIndex:"major_name",key:"major_name",width:180,fixed:"left"},{title:"\u5408\u8ba1",align:"center",dataIndex:"total",key:"total"}];data.map((function(t,e){var n={title:t.name,dataIndex:t.name,key:t.name,align:"center"};columns.push(n)}));var majorList=[],minzuList=[];_this3.state.tableListNation.map((function(t){majorList.indexOf(t.major_name)<0&&majorList.push(t.major_name);var e={};minzuList.indexOf(t.ethnicity_name)<0&&(e.ethnicity_name=t.ethnicity_name,e.ethnicity_value=t.ethnicity_value,minzuList.push(e))}));var minzuTableList=[];majorList.map((function(t){var e={};e.major_name=t,minzuTableList.push(e)})),_this3.state.tableListNation.map((function(t){console.log(t,"res"),minzuTableList.map((function(e,n){e.major_name==t.major_name&&(minzuTableList[n][t.ethnicity_name]=t.total)}))})),minzuTableList.map((function(res){var arr1=[];for(var i in res)isNaN(res[i])||arr1.push(res[i]);res["total"]=eval(arr1.join("+"))}));var columnsLength=94*columns.length;return console.log(columnsLength),"SEX"===type?react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(antd_es_table__WEBPACK_IMPORTED_MODULE_7__["a"],{dataSource:_this3.state.tableListSex,columns:columnsSex,pagination:!1,style:{height:500,overflowY:"auto"},scroll:{y:400}}):"AGE"===type?react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(antd_es_table__WEBPACK_IMPORTED_MODULE_7__["a"],{dataSource:_this3.state.tableListAge,columns:columnsAge,pagination:!1,style:{height:500,overflowY:"auto"},scroll:{y:370}}):"Distribution"===type?react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(antd_es_table__WEBPACK_IMPORTED_MODULE_7__["a"],{dataSource:_this3.state.tableListDistribution,columns:columnsDistribution,pagination:!1,style:{height:480,overflowY:"auto"},scroll:{y:410}}):react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(antd_es_table__WEBPACK_IMPORTED_MODULE_7__["a"],{dataSource:minzuTableList,columns:columns,pagination:!1,style:{height:460,width:columnsLength,overflowY:"auto"},scroll:{y:395,x:columnsLength-20}})};return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{ref:this.handleRoot,className:pieClassName,style:style},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(react_fittext__WEBPACK_IMPORTED_MODULE_18___default.a,{maxFontSize:25},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.chart},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(bizcharts__WEBPACK_IMPORTED_MODULE_15__["Chart"],{scale:scale,height:height,forceFit:forceFit,data:data,padding:padding,animate:animate,onGetG2Instance:this.getG2Instance},!!tooltip&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(bizcharts__WEBPACK_IMPORTED_MODULE_15__["Tooltip"],{showTitle:!1}),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(bizcharts__WEBPACK_IMPORTED_MODULE_15__["Coord"],{type:"theta",innerRadius:inner}),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(bizcharts__WEBPACK_IMPORTED_MODULE_15__["Geom"],{tooltip:tooltip?tooltipFormat:void 0,type:"intervalStack",position:"total",color:["name",percent||0===percent?formatColor:defaultColors],selected:selected})),(subTitle||total)&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.total},subTitle&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("h4",{className:"pie-sub-title"},subTitle),total&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"pie-stat"},"function"===typeof total?total():total)))),hasLegend&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("ul",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.legend},legendData.map((function(t,e){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("li",{key:t.name,onClick:function(){return _this3.handleLegendClick(t,e)}},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.dot,style:{backgroundColor:t.checked?t.color:"#aaa"}}),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.legendTitle},t.name),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(antd_es_divider__WEBPACK_IMPORTED_MODULE_5__["a"],{type:"vertical"}),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.percent},""==t.percent?"0%":t.percent),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_21___default.a.value},t.total,"\u4eba ",t.percentage?"".concat(t.percentage,"%"):""))}))),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_3__["a"],{type:"link",onClick:function(){_this3.getTableData(type),_this3.setState({showModal:!0})}},"\u8be6\u60c5"),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(antd_es_modal__WEBPACK_IMPORTED_MODULE_1__["a"],{title:this.state.modelTitle,width:900,visible:this.state.showModal,onCancel:this.handleCancel,footer:!1},tableOfdiffrent())))}}]),Pie}(react__WEBPACK_IMPORTED_MODULE_16__["Component"]);__webpack_exports__["a"]=Object(_autoHeight__WEBPACK_IMPORTED_MODULE_20__["a"])()(Pie)},"1Gbu":function(t,e,n){!function(e,r){t.exports=r(n("q1tI"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n={};for(var r in t)0>e.indexOf(r)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){if(t.onChange!==e.onChange)return!0;for(var n=0;_.length>n;n+=1){var r=_[n];if(!window.G2.Util.isEqual(t[r],e[r]))return!0}return!1}var l=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(2),h=r(f),d=n(1),p=r(d),g=n(3),v=r(g),_=["width","height","padding","xAis","yAxis","start","end","fillerStyle","backgroundStyle","scales","textStyle","handleStyle","backgroundChart"],m=function(t){function e(){a(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.refHandle=function(e){t.container||(t.container=e)},t.reBuild=!1,t}return s(e,t),c(e,[{key:"componentDidMount",value:function(){this.createG2Instance().render()}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.data,r=i(e,["data"]),a=t.data,o=i(t,["data"]);n!==a&&(this.slider.changeData(a),this.slider.repaint()),u(r,o)&&(this.reBuild=!0)}},{key:"componentDidUpdate",value:function(){this.reBuild&&(this.slider.destroy(),this.createG2Instance().render(),this.reBuild=!1)}},{key:"componentWillUnmount",value:function(){this.slider.destroy()}},{key:"createG2Instance",value:function(){return this.slider=new h.default(l({container:this.container},this.props))}},{key:"render",value:function(){return p.default.createElement("div",{ref:this.refHandle})}}]),e}(d.Component);e.default=function(t){function e(){return a(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),c(e,[{key:"render",value:function(){return p.default.createElement(v.default,null,p.default.createElement(m,this.props))}}]),e}(d.Component),t.exports=e.default},function(e,n){e.exports=t},function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){var r=n(1);window&&!window.G2&&console.err("Please load the G2 script first!"),t.exports=r},function(t,e,n){var r=n(2),i=window&&window.G2,a=i.Chart,o=i.Util,s=i.G,u=i.Global,l=s.Canvas,c=o.DomUtil,f=function(t){return"number"==typeof t};t.exports=function(){function t(t){this._initProps(),o.deepMix(this,t);var e=this.container;if(!e)throw Error("Please specify the container for the Slider!");this.domContainer=o.isString(e)?document.getElementById(e):e,this.handleStyle=o.mix({width:this.height,height:this.height},this.handleStyle),"auto"===this.width&&window.addEventListener("resize",o.wrapBehavior(this,"_initForceFitEvent"))}var e=t.prototype;return e._initProps=function(){this.height=26,this.width="auto",this.padding=u.plotCfg.padding,this.container=null,this.xAxis=null,this.yAxis=null,this.fillerStyle={fill:"#BDCCED",fillOpacity:.3},this.backgroundStyle={stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},this.range=[0,100],this.layout="horizontal",this.textStyle={fill:"#545454"},this.handleStyle={img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},this.backgroundChart={type:["area"],color:"#CCD6EC"}},e._initForceFitEvent=function(){var t=setTimeout(o.wrapBehavior(this,"forceFit"),200);clearTimeout(this.resizeTimer),this.resizeTimer=t},e.forceFit=function(){if(this&&!this.destroyed){var t=c.getWidth(this.domContainer),e=this.height;if(t!==this.domWidth){var n=this.canvas;n.changeSize(t,e),this.bgChart&&this.bgChart.changeWidth(t),n.clear(),this._initWidth(),this._initSlider(),this._bindEvent(),n.draw()}}},e._initWidth=function(){var t;t="auto"===this.width?c.getWidth(this.domContainer):this.width,this.domWidth=t;var e=o.toAllPadding(this.padding);"horizontal"===this.layout?(this.plotWidth=t-e[1]-e[3],this.plotPadding=e[3],this.plotHeight=this.height):"vertical"===this.layout&&(this.plotWidth=this.width,this.plotHeight=this.height-e[0]-e[2],this.plotPadding=e[0])},e.render=function(){this._initWidth(),this._initCanvas(),this._initBackground(),this._initSlider(),this._bindEvent(),this.canvas.draw()},e.changeData=function(t){this.data=t,this.repaint()},e.destroy=function(){clearTimeout(this.resizeTimer),this.rangeElement.off("sliderchange"),this.bgChart&&this.bgChart.destroy(),this.canvas.destroy();for(var t=this.domContainer;t.hasChildNodes();)t.removeChild(t.firstChild);window.removeEventListener("resize",o.getWrapBehavior(this,"_initForceFitEvent")),this.destroyed=!0},e.clear=function(){this.canvas.clear(),this.bgChart&&this.bgChart.destroy(),this.bgChart=null,this.scale=null,this.canvas.draw()},e.repaint=function(){this.clear(),this.render()},e._initCanvas=function(){var t=this.domWidth,e=this.height,n=new l({width:t,height:e,containerDOM:this.domContainer,capture:!1}),r=n.get("el");r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.zIndex=3,this.canvas=n},e._initBackground=function(){var t,e=this.data,n=this.xAxis,r=this.yAxis,i=o.deepMix((t={},t[""+n]={range:[0,1]},t),this.scales);if(!e)throw Error("Please specify the data!");if(!n)throw Error("Please specify the xAxis!");if(!r)throw Error("Please specify the yAxis!");var s=this.backgroundChart,u=s.type,l=s.color;o.isArray(u)||(u=[u]);var c=o.toAllPadding(this.padding),f=new a({container:this.container,width:this.domWidth,height:this.height,padding:[0,c[1],0,c[3]],animate:!1});f.source(e),f.scale(i),f.axis(!1),f.tooltip(!1),f.legend(!1),o.each(u,(function(t){f[t]().position(n+"*"+r).color(l).opacity(1)})),f.render(),this.bgChart=f,this.scale="horizontal"===this.layout?f.getXScale():f.getYScales()[0],"vertical"===this.layout&&f.destroy()},e._initRange=function(){var t=this.startRadio,e=this.endRadio,n=this.start,r=this.end,i=this.scale,a=0,o=1;f(t)?a=t:n&&(a=i.scale(i.translate(n))),f(e)?o=e:r&&(o=i.scale(i.translate(r)));var s=this.minSpan,u=this.maxSpan,l=0;if("time"===i.type||"timeCat"===i.type){var c=i.values;l=c[c.length-1]-c[0]}else i.isLinear&&(l=i.max-i.min);l&&s&&(this.minRange=s/l*100),l&&u&&(this.maxRange=u/l*100);var h=[100*a,100*o];return this.range=h,h},e._getHandleValue=function(t){var e=this.range,n=e[0]/100,r=e[1]/100,i=this.scale;return"min"===t?this.start?this.start:i.invert(n):this.end?this.end:i.invert(r)},e._initSlider=function(){var t=this.canvas,e=this._initRange(),n=this.scale,i=t.addGroup(r,{middleAttr:this.fillerStyle,range:e,minRange:this.minRange,maxRange:this.maxRange,layout:this.layout,width:this.plotWidth,height:this.plotHeight,backgroundStyle:this.backgroundStyle,textStyle:this.textStyle,handleStyle:this.handleStyle,minText:n.getText(this._getHandleValue("min")),maxText:n.getText(this._getHandleValue("max"))});"horizontal"===this.layout?i.translate(this.plotPadding,0):"vertical"===this.layout&&i.translate(0,this.plotPadding),this.rangeElement=i},e._bindEvent=function(){var t=this;t.rangeElement.on("sliderchange",(function(e){var n=e.range;t._updateElement(n[0]/100,n[1]/100)}))},e._updateElement=function(t,e){var n=this.scale,r=this.rangeElement,i=r.get("minTextElement"),a=r.get("maxTextElement"),o=n.invert(t),s=n.invert(e),u=n.getText(o),l=n.getText(s);i.attr("text",u),a.attr("text",l),this.start=u,this.end=l,this.onChange&&this.onChange({startText:u,endText:l,startValue:o,endValue:s,startRadio:t,endRadio:e})},t}()},function(t,e){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=window&&window.G2,i=r.Util,a=r.G,o=a.Group,s=i.DomUtil;t.exports=function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var r=e.prototype;return r.getDefaultCfg=function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},r._initHandle=function(t){var e,n,r,a=this.addGroup(),o=this.get("layout"),s=this.get("handleStyle"),u=s.img,l=s.width,c=s.height;if("horizontal"===o){var f=s.width;r="ew-resize",n=a.addShape("Image",{attrs:{x:-f/2,y:0,width:f,height:c,img:u,cursor:r}}),e=a.addShape("Text",{attrs:i.mix({x:"min"===t?-(f/2+5):f/2+5,y:c/2,textAlign:"min"===t?"end":"start",textBaseline:"middle",text:this.get("min"===t?"minText":"maxText"),cursor:r},this.get("textStyle"))})}else r="ns-resize",n=a.addShape("Image",{attrs:{x:0,y:-c/2,width:l,height:c,img:u,cursor:r}}),e=a.addShape("Text",{attrs:i.mix({x:l/2,y:"min"===t?c/2+5:-(c/2+5),textAlign:"center",textBaseline:"middle",text:this.get("min"===t?"minText":"maxText"),cursor:r},this.get("textStyle"))});return this.set(t+"TextElement",e),this.set(t+"IconElement",n),a},r._initSliderBackground=function(){var t=this.addGroup();return t.initTransform(),t.translate(0,0),t.addShape("Rect",{attrs:i.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),t},r._beforeRenderUI=function(){var t=this._initSliderBackground(),e=this._initHandle("min"),n=this._initHandle("max"),r=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",r),this.set("minHandleElement",e),this.set("maxHandleElement",n),this.set("backgroundElement",t),t.set("zIndex",0),r.set("zIndex",1),e.set("zIndex",2),n.set("zIndex",2),r.attr("cursor","move"),this.sort()},r._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},r._transform=function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),s.translate(r*i,0)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-r)*a))},r._renderHorizontal=function(){this._transform("horizontal")},r._renderVertical=function(){this._transform("vertical")},r._bindUI=function(){this.on("mousedown",i.wrapBehavior(this,"_onMouseDown"))},r._isElement=function(t,e){var n=this.get(e);return t===n||!!n.isGroup&&n.get("children").indexOf(t)>-1},r._getRange=function(t,e){var n=t+e;return n=n>100?100:n,0>n?0:n},r._limitRange=function(t,e,n){n[0]=this._getRange(t,n[0]),(n[1]=n[0]+e)>100&&(n[1]=100,n[0]=n[1]-e)},r._updateStatus=function(t,e){var n=this.get("x"===t?"width":"height");t=i.upperFirst(t);var r,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),l=this.get("layout"),c="vertical"===l?-1:1,f=e["page"+t],h=f-o,d=h/n*100*c,p=this.get("minRange"),g=this.get("maxRange");a[1]>a[0]?(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(d,a[0]),p&&(a[1]-a[0]>p||this._limitRange(d,p,a)),g&&(g>a[1]-a[0]||this._limitRange(d,g,a))),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(d,a[1]),p&&(a[1]-a[0]>p||this._limitRange(d,p,a)),g&&(g>a[1]-a[0]||this._limitRange(d,g,a)))):(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(d,a[0]),a[1]=this._getRange(d,a[0])),this._isElement(s,"middleHandleElement")&&(r=u[1]-u[0],this._limitRange(d,r,a)),this.emit("sliderchange",{range:a}),this.set("page"+t,f),this._renderUI(),this.get("canvas").draw()},r._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},r._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=s.addEventListener(t,"mousemove",i.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=s.addEventListener(t,"mouseup",i.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=s.addEventListener(t,"mouseleave",i.wrapBehavior(this,"_onCanvasMouseUp"))},r._onCanvasMouseMove=function(t){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)},r._onCanvasMouseUp=function(){this._removeDocumentEvents()},r._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.onMouseLeaveListener.remove()},e}(o)}])}))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(1),u=function(t){return t&&t.__esModule?t:{default:t}}(s);e.default=function(t){function e(t){r(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={hasError:!1},n}return a(e,t),o(e,[{key:"componentDidCatch",value:function(t,e){this.setState({hasError:!0})}},{key:"unstable_handleError",value:function(t,e){this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?u.default.createElement("h1",null,"Slider error."):this.props.children}}]),e}(u.default.Component)},function(t,e,n){n(0),t.exports=n(0)}])}))},"2NuI":function(t,e,n){"use strict";var r=function(t){};function i(t,e,n,i,a,o,s,u){if(r(e),!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,a,o,s,u],f=0;l=new Error(e.replace(/%s/g,(function(){return c[f++]}))),l.name="Invariant Violation"}throw l.framesToPop=1,l}}t.exports=i},"8/Q1":function(t,e,n){"use strict";n.r(e);n("IzEo");var r=n("bx4M"),i=n("WmNS"),a=n.n(i),o=n("9og8"),s=n("tJVT"),u=n("q1tI"),l=n.n(u),c=n("fo7c"),f=n("Jab+"),h=n("DW6w"),d=n.n(h),p=n("iy9H"),g=function(t){var e=t.loading,n=Object(u["useState"])([]),i=Object(s["a"])(n,2),h=i[0],g=i[1],v=function(){var t=function(){var t=Object(o["a"])(a.a.mark((function t(){var e,n,r;return a.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(p["a"])({query:{query_id:"age_student",query_param:[]},query_count:["total"],query_format:"antd",query_group:[]});case 2:e=t.sent,n=JSON.parse(e.result),r=[],n.datas.map((function(t){r.push({name:t.age,total:t.total})})),g(r);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t()};return Object(u["useEffect"])((function(){v()}),[1]),l.a.createElement(r["a"],{loading:e,className:d.a.offlineCard,bordered:!1,title:"\u5e74\u9f84\u5206\u5e03",style:{height:"100%",backgroundRepeat:"no-repeat",backgroundImage:"url('cornerLT.svg'),url('cornerRT.svg'),url('cornerLB.svg'),url('cornerRB.svg')",backgroundPosition:"left top,right top,left bottom,right bottom"},extra:null},l.a.createElement("div",null,l.a.createElement(c["b"],{hasLegend:!0,type:"AGE",inner:.7,data:h,valueFormat:function(t){return l.a.createElement(f["a"],null,t)},height:360,lineWidth:4})))};e["default"]=g},Df4C:function(t,e,n){t.exports={chartCard:"chartCard___RZktQ",chartTop:"chartTop___27nd9",chartTopMargin:"chartTopMargin___3YyBZ",chartTopHasMargin:"chartTopHasMargin___ikWRc",metaWrap:"metaWrap___2n6lv",avatar:"avatar___oiS1B",meta:"meta___G-XMF",action:"action___35HJ4",total:"total___37P1E",content:"content___1EgNm",contentFixed:"contentFixed___26dmp",footer:"footer___1JObW",footerMargin:"footerMargin___1R_hH"}},Dlra:function(module,__webpack_exports__,__webpack_require__){"use strict";var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("2qtc"),antd_es_modal__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("kLXV"),antd_es_button_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("+L6B"),antd_es_button__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("2/Rp"),antd_es_table_style__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("g9YV"),antd_es_table__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("wCAj"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("WmNS"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_6__),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("9og8"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("fWQN"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("mtLc"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("yKVA"),C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("879j"),bizcharts__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("yP6+"),bizcharts__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(bizcharts__WEBPACK_IMPORTED_MODULE_12__),react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("q1tI"),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),bizcharts_plugin_slider__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("1Gbu"),bizcharts_plugin_slider__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(bizcharts_plugin_slider__WEBPACK_IMPORTED_MODULE_14__),_antv_data_set__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("cQSq"),_antv_data_set__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_antv_data_set__WEBPACK_IMPORTED_MODULE_15__),lodash_debounce__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("9/5/"),lodash_debounce__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_16__),_autoHeight__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("XXYD"),_index_less_modules__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("q3OQ"),_index_less_modules__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_18__),_service__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("iy9H"),ds=new _antv_data_set__WEBPACK_IMPORTED_MODULE_15___default.a({state:{start:0,end:.35}}),Bar=function(_Component){Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_10__["a"])(Bar,_Component);var _super=Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_11__["a"])(Bar);function Bar(){var t;Object(C_react_dsSupport_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__["a"])(this,Bar);for(var e=arguments.length,n=new Array(e),r=0;r0){var a=Math.max.apply(Math,data.map((function(t){return t.total})));scale=a<=2&&a>0?{count:{min:0,range:[0,1],ticks:[0,1,2]}}:{count:{min:0,tickCount:a}}}var tooltip=["major_name*total",function(t,e){return{name:t,value:e}}],dv=ds.createView({origin:origin}).source(data);dv.transform({type:"filter",callback:function(t,e){var n=e/data.length;return n>=ds.state.start&&n<=ds.state.end}});var tableOfdiffrent=function tableOfdiffrent(){var majorList=[],rxnfList=[];_this2.state.tableListStudentNum.map((function(t){majorList.indexOf(t.major_name)<0&&majorList.push(t.major_name),rxnfList.indexOf(t.grade)<0&&rxnfList.push(t.grade)}));var minzuTableList=[];majorList.map((function(t){var e={};e.major_name=t,minzuTableList.push(e)})),_this2.state.tableListStudentNum.map((function(t){console.log(t,"\u8c03\u8bd5 res"),minzuTableList.map((function(e,n){e.major_name==t.major_name&&(minzuTableList[n][t.grade]=t.total)}))})),minzuTableList.map((function(res){var arr1=[];for(var i in res)isNaN(res[i])||arr1.push(res[i]);res["total"]=eval(arr1.join("+"))}));var columns=[{title:"\u5e8f\u53f7",dataIndex:"index",valueType:"index",align:"center",width:80,render:function(t,e,n){return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_13___default.a.Fragment,null,n+1)}},{title:"\u4e13\u4e1a\u540d",dataIndex:"major_name",key:"major_name",width:300},{title:"\u5408\u8ba1",dataIndex:"total",align:"center",key:"total"}],yearIsIn=[];_this2.state.tableListStudentNum.map((function(t,e){if(yearIsIn.indexOf(t.grade)<0){yearIsIn.push(t.grade);var n={title:t.grade,dataIndex:t.grade,key:t.grade,align:"center"};columns.push(n)}})),console.log(minzuTableList,"minzuTableList",columns);var classQuotaColumns=[{title:"\u5e8f\u53f7",dataIndex:"index",valueType:"index",width:"90px",align:"center",render:function(t,e,n){return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_13___default.a.Fragment,null,n+1)}},{title:"\u4e13\u4e1a\u540d",dataIndex:"major_name",key:"major_name",width:"250px"},{title:"\u5e73\u5747\u73ed\u989d",dataIndex:"total",align:"center",key:"total"},{title:"\u6700\u5927\u73ed\u989d",dataIndex:"min",key:"min",align:"center"},{title:"\u6700\u5c0f\u73ed\u989d",dataIndex:"max",key:"max",align:"center"}];return"studentNum"===type?react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(antd_es_table__WEBPACK_IMPORTED_MODULE_5__["a"],{dataSource:minzuTableList,columns:columns,pagination:!1,style:{height:500,overflowY:"auto"},scroll:{y:440}}):react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(antd_es_table__WEBPACK_IMPORTED_MODULE_5__["a"],{dataSource:_this2.state.tableListClassQuota,columns:classQuotaColumns,pagination:!1,style:{height:500,overflowY:"auto"},scroll:{y:440}})};return console.log(data,"schoolStudent_List"),[react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_18___default.a.chart,style:{height:height},ref:this.handleRoot},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{ref:this.handleRef},title&&react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("h4",{style:{marginBottom:20}},title),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(bizcharts__WEBPACK_IMPORTED_MODULE_12__["Chart"],{scale:scale,height:title?height-41:height,forceFit:forceFit,data:dv,padding:padding||"auto"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(bizcharts__WEBPACK_IMPORTED_MODULE_12__["Axis"],{name:"major_name",title:!1,label:autoHideXLabels?void 0:{textStyle:{fill:"#FFFFFF"}},tickLine:autoHideXLabels?void 0:{stroke:"#FFFFFF"}}),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(bizcharts__WEBPACK_IMPORTED_MODULE_12__["Axis"],{name:"total",min:0}),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(bizcharts__WEBPACK_IMPORTED_MODULE_12__["Tooltip"],{showTitle:!1,crosshairs:!1}),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(bizcharts__WEBPACK_IMPORTED_MODULE_12__["Geom"],{type:"interval",position:"major_name*total",color:color,tooltip:tooltip,style:{cursor:"pointer"}})),data.length>0?react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(bizcharts_plugin_slider__WEBPACK_IMPORTED_MODULE_14___default.a,{start:ds.state.start,end:ds.state.end*data.length,data:data,padding:60,xAxis:"major_name",yAxis:"total",onChange:this.handleSliderChange}):"",react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_3__["a"],{type:"link",onClick:function(){_this2.getTableData(type),_this2.setState({showModal:!0})}},"\u8be6\u60c5"),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(antd_es_modal__WEBPACK_IMPORTED_MODULE_1__["a"],{title:this.state.modelTitle,width:750,visible:this.state.showModal,onCancel:this.handleCancel,footer:!1},tableOfdiffrent()))))]}}]),Bar}(react__WEBPACK_IMPORTED_MODULE_13__["Component"]);__webpack_exports__["a"]=Object(_autoHeight__WEBPACK_IMPORTED_MODULE_17__["a"])()(Bar)},HQqU:function(t,e,n){t.exports={pie:"pie___2UTUB",chart:"chart___2npcf",hasLegend:"hasLegend___21Y5g",legend:"legend___30uY8",dot:"dot___3P91R",line:"line___2pxEX",legendTitle:"legendTitle___2txN8",percent:"percent___3j5lv",value:"value___3dqot",title:"title___Gdjqm",total:"total___2ehD8",legendBlock:"legendBlock___3ld0n"}},IzEo:function(t,e,n){"use strict";n("cIOH"),n("lnY3"),n("Znn+"),n("14J3"),n("jCWc")},"Jab+":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("fWQN"),i=n("mtLc"),a=n("yKVA"),o=n("879j"),s=n("q1tI"),u=n.n(s),l=n("fo7c"),c=function(t){Object(a["a"])(n,t);var e=Object(o["a"])(n);function n(){var t;Object(r["a"])(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0&&l.a.createElement(t,Object(r["a"])({},this.props,{height:i})))}}]),u}(l.a.Component);return e}}e["a"]=h},YBfy:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("WmNS"),i=n.n(r),a=n("k1fw"),o=n("9og8"),s=n("sy1d"),u=n("Po8q"),l=n.n(u);function c(t){return f.apply(this,arguments)}function f(){return f=Object(o["a"])(i.a.mark((function t(e){var n,r;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=l.a.load("access_token"),r=l.a.load("access_time"),t.abrupt("return",Object(s["a"])("/dataex/report/QuerySimple",{method:"POST",data:Object(a["a"])(Object(a["a"])({access_token:"TEST_009##".concat(r,"##").concat(n)},e),{},{method:"post"})}));case 3:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}},Z0cm:function(t,e){var n=Array.isArray;t.exports=n},ZhIB:function(t,e,n){var r,i;(function(a,o){r=o,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(0,(function(){var t,e,n="2.0.6",r={},i={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function s(t,e){this._input=t,this._value=e}return t=function(n){var i,a,u,l;if(t.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||e.isNaN(n))i=null;else if("string"===typeof n)if(o.zeroFormat&&n===o.zeroFormat)i=0;else if(o.nullFormat&&n===o.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(a in r)if(l="function"===typeof r[a].regexps.unformat?r[a].regexps.unformat():r[a].regexps.unformat,l&&n.match(l)){u=r[a].unformat;break}u=u||t._.stringToNumber,i=u(n)}else i=Number(n)||null;return new s(n,i)},t.version=n,t.isNumeral=function(t){return t instanceof s},t._=e={numberToFormat:function(e,n,r){var a,o,s,u,l,c,f,h=i[t.options.currentLocale],d=!1,p=!1,g=0,v="",_=1e12,m=1e9,y=1e6,x=1e3,b="",w=!1;if(e=e||0,o=Math.abs(e),t._.includes(n,"(")?(d=!0,n=n.replace(/[\(|\)]/g,"")):(t._.includes(n,"+")||t._.includes(n,"-"))&&(l=t._.includes(n,"+")?n.indexOf("+"):e<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),t._.includes(n,"a")&&(a=n.match(/a(k|m|b|t)?/),a=!!a&&a[1],t._.includes(n," a")&&(v=" "),n=n.replace(new RegExp(v+"a[kmbt]?"),""),o>=_&&!a||"t"===a?(v+=h.abbreviations.trillion,e/=_):o<_&&o>=m&&!a||"b"===a?(v+=h.abbreviations.billion,e/=m):o=y&&!a||"m"===a?(v+=h.abbreviations.million,e/=y):(o=x&&!a||"k"===a)&&(v+=h.abbreviations.thousand,e/=x)),t._.includes(n,"[.]")&&(p=!0,n=n.replace("[.]",".")),s=e.toString().split(".")[0],u=n.split(".")[1],c=n.indexOf(","),g=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(t._.includes(u,"[")?(u=u.replace("]",""),u=u.split("["),b=t._.toFixed(e,u[0].length+u[1].length,r,u[1].length)):b=t._.toFixed(e,u.length,r),s=b.split(".")[0],b=t._.includes(b,".")?h.delimiters.decimal+b.split(".")[1]:"",p&&0===Number(b.slice(1))&&(b="")):s=t._.toFixed(e,0,r),v&&!a&&Number(s)>=1e3&&v!==h.abbreviations.trillion)switch(s=String(Number(s)/1e3),v){case h.abbreviations.thousand:v=h.abbreviations.million;break;case h.abbreviations.million:v=h.abbreviations.billion;break;case h.abbreviations.billion:v=h.abbreviations.trillion;break}if(t._.includes(s,"-")&&(s=s.slice(1),w=!0),s.length0;M--)s="0"+s;return c>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),0===n.indexOf(".")&&(s=""),f=s+b+(v||""),d?f=(d&&w?"(":"")+f+(d&&w?")":""):l>=0?f=0===l?(w?"-":"+")+f:f+(w?"-":"+"):w&&(f="-"+f),f},stringToNumber:function(t){var e,n,r,a=i[o.currentLocale],s=t,u={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&t===o.zeroFormat)n=0;else if(o.nullFormat&&t===o.nullFormat||!t.replace(/[^0-9]+/g,"").length)n=null;else{for(e in n=1,"."!==a.delimiters.decimal&&(t=t.replace(/\./g,"").replace(a.delimiters.decimal,".")),u)if(r=new RegExp("[^a-zA-Z]"+a.abbreviations[e]+"(?:\\)|(\\"+a.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,u[e]);break}n*=(t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1,t=t.replace(/[^0-9\.]+/g,""),n*=Number(t)}return n},isNaN:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return"number"===typeof t&&isNaN(t)})),includes:function(t,e){return-1!==t.indexOf(e)},insert:function(t,e,n){return t.slice(0,n)+e+t.slice(n)},reduce:function(t,e){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof e)throw new TypeError(e+" is not a function");var n,r=Object(t),i=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{while(a=i)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;ar?t:r}),1)},toFixed:function(t,e,n,r){var i,a,o,s,u=t.toString().split("."),l=e-(r||0);return i=2===u.length?Math.min(Math.max(u[1].length,l),e):l,o=Math.pow(10,i),s=(n(t+"e+"+i)/o).toFixed(i),r>e-i&&(a=new RegExp("\\.?0{1,"+(r-(e-i))+"}$"),s=s.replace(a,"")),s}},t.options=o,t.formats=r,t.locales=i,t.locale=function(t){return t&&(o.currentLocale=t.toLowerCase()),o.currentLocale},t.localeData=function(t){if(!t)return i[o.currentLocale];if(t=t.toLowerCase(),!i[t])throw new Error("Unknown locale : "+t);return i[t]},t.reset=function(){for(var t in a)o[t]=a[t]},t.zeroFormat=function(t){o.zeroFormat="string"===typeof t?t:null},t.nullFormat=function(t){o.nullFormat="string"===typeof t?t:null},t.defaultFormat=function(t){o.defaultFormat="string"===typeof t?t:"0.0"},t.register=function(t,e,n){if(e=e.toLowerCase(),this[t+"s"][e])throw new TypeError(e+" "+t+" already registered.");return this[t+"s"][e]=n,n},t.validate=function(e,n){var r,i,a,o,s,u,l,c;if("string"!==typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(""===e)return!1;try{l=t.localeData(n)}catch(f){l=t.localeData(t.locale())}return a=l.currency.symbol,s=l.abbreviations,r=l.delimiters.decimal,i="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,c=e.match(/^[^\d]+/),(null===c||(e=e.substr(1),c[0]===a))&&(c=e.match(/[^\d]+$/),(null===c||(e=e.slice(0,-1),c[0]===s.thousand||c[0]===s.million||c[0]===s.billion||c[0]===s.trillion))&&(u=new RegExp(i+"{2}"),!e.match(/[^\d.,]/g)&&(o=e.split(r),!(o.length>2)&&(o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))))},t.fn=s.prototype={clone:function(){return t(this)},format:function(e,n){var i,a,s,u=this._value,l=e||o.defaultFormat;if(n=n||Math.round,0===u&&null!==o.zeroFormat)a=o.zeroFormat;else if(null===u&&null!==o.nullFormat)a=o.nullFormat;else{for(i in r)if(l.match(r[i].regexps.format)){s=r[i].format;break}s=s||t._.numberToFormat,a=s(u,l,n)}return a},value:function(){return this._value},input:function(){return this._input},set:function(t){return this._value=Number(t),this},add:function(t){var n=e.correctionFactor.call(null,this._value,t);function r(t,e,r,i){return t+Math.round(n*e)}return this._value=e.reduce([this._value,t],r,0)/n,this},subtract:function(t){var n=e.correctionFactor.call(null,this._value,t);function r(t,e,r,i){return t-Math.round(n*e)}return this._value=e.reduce([t],r,Math.round(this._value*n))/n,this},multiply:function(t){function n(t,n,r,i){var a=e.correctionFactor(t,n);return Math.round(t*a)*Math.round(n*a)/Math.round(a*a)}return this._value=e.reduce([this._value,t],n,1),this},divide:function(t){function n(t,n,r,i){var a=e.correctionFactor(t,n);return Math.round(t*a)/Math.round(n*a)}return this._value=e.reduce([this._value,t],n),this},difference:function(e){return Math.abs(t(this._value).subtract(e).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,n,r){var i,a=t._.includes(n," BPS")?" ":"";return e*=1e4,n=n.replace(/\s?BPS/,""),i=t._.numberToFormat(e,n,r),t._.includes(i,")")?(i=i.split(""),i.splice(-1,0,a+"BPS"),i=i.join("")):i=i+a+"BPS",i},unformat:function(e){return+(1e-4*t._.stringToNumber(e)).toFixed(15)}})}(),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=e.suffixes.concat(n.suffixes.filter((function(t){return e.suffixes.indexOf(t)<0}))),i=r.join("|");i="("+i.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(r,i,a){var o,s,u,l,c=t._.includes(i,"ib")?n:e,f=t._.includes(i," b")||t._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),s=0;s<=c.suffixes.length;s++)if(u=Math.pow(c.base,s),l=Math.pow(c.base,s+1),null===r||0===r||r>=u&&r0&&(r/=u);break}return o=t._.numberToFormat(r,i,a),o+f},unformat:function(r){var i,a,o=t._.stringToNumber(r);if(o){for(i=e.suffixes.length-1;i>=0;i--){if(t._.includes(r,e.suffixes[i])){a=Math.pow(e.base,i);break}if(t._.includes(r,n.suffixes[i])){a=Math.pow(n.base,i);break}}o*=a||1}return o}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(e,n,r){var i,a,o,s=t.locales[t.options.currentLocale],u={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=t._.numberToFormat(e,n,r),e>=0?(u.before=u.before.replace(/[\-\(]/,""),u.after=u.after.replace(/[\-\)]/,"")):e<0&&!t._.includes(u.before,"-")&&!t._.includes(u.before,"(")&&(u.before="-"+u.before),o=0;o=0;o--)switch(a=u.after[o],a){case"$":i=o===u.after.length-1?i+s.currency.symbol:t._.insert(i,s.currency.symbol,-(u.after.length-(1+o)));break;case" ":i=o===u.after.length-1?i+" ":t._.insert(i," ",-(u.after.length-(1+o)+s.currency.symbol.length-1));break}return i}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,n,r){var i,a="number"!==typeof e||t._.isNaN(e)?"0e+0":e.toExponential(),o=a.split("e");return n=n.replace(/e[\+|\-]{1}0/,""),i=t._.numberToFormat(Number(o[0]),n,r),i+"e"+o[1]},unformat:function(e){var n=t._.includes(e,"e+")?e.split("e+"):e.split("e-"),r=Number(n[0]),i=Number(n[1]);function a(e,n,r,i){var a=t._.correctionFactor(e,n),o=e*a*(n*a)/(a*a);return o}return i=t._.includes(e,"e-")?i*=-1:i,t._.reduce([r,Math.pow(10,i)],a,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,n,r){var i,a=t.locales[t.options.currentLocale],o=t._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=a.ordinal(e),i=t._.numberToFormat(e,n,r),i+o}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,n,r){var i,a=t._.includes(n," %")?" ":"";return t.options.scalePercentBy100&&(e*=100),n=n.replace(/\s?\%/,""),i=t._.numberToFormat(e,n,r),t._.includes(i,")")?(i=i.split(""),i.splice(-1,0,a+"%"),i=i.join("")):i=i+a+"%",i},unformat:function(e){var n=t._.stringToNumber(e);return t.options.scalePercentBy100?.01*n:n}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(t,e,n){var r=Math.floor(t/60/60),i=Math.floor((t-60*r*60)/60),a=Math.round(t-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)},unformat:function(t){var e=t.split(":"),n=0;return 3===e.length?(n+=60*Number(e[0])*60,n+=60*Number(e[1]),n+=Number(e[2])):2===e.length&&(n+=60*Number(e[0]),n+=Number(e[1])),Number(n)}})}(),t}))},bx4M:function(t,e,n){"use strict";var r=n("lSNA"),i=n.n(r),a=n("pVnL"),o=n.n(a),s=n("q1tI"),u=n("TSYQ"),l=n.n(u),c=n("6UMo"),f=n("H84U"),h=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i-1},s=i[0];t.exports=function(t,e,n){var a=e.direction||s;if(e.isHorizontal=o(a),a&&-1===i.indexOf(a))throw new TypeError("Invalid direction: "+a);if(a===i[0])n(t,e);else if(a===i[1])n(t,e),t.right2left();else if(a===i[2])n(t,e);else if(a===i[3])n(t,e),t.bottom2top();else if(a===i[4]||a===i[5]){var u=r(t,e),l=u.left,c=u.right;n(l,e),n(c,e),e.isHorizontal?l.right2left():l.bottom2top(),c.translate(l.x-c.x,l.y-c.y),t.x=l.x,t.y=c.y;var f=t.getBoundingBox();e.isHorizontal?f.top<0&&t.translate(0,-f.top):f.left<0&&t.translate(-f.left,0)}var h=e.fixedRoot;return void 0===h&&(h=!0),h&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(0),i=18,a=2*i,o=i,s={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||o},getVGap:function(t){return t.vgap||o},getChildren:function(t){return t.children},getHeight:function(t){return t.height||a},getWidth:function(t){var e=t.name||" ";return t.width||e.split("").length*i}};function u(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof u)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}function l(t,e,n){void 0===e&&(e={}),e=r.assign({},s,e);var i,a=new u(t,e),o=[a];if(!n&&!t.collapsed)while(i=o.pop())if(!i.data.collapsed){var l=e.getChildren(i.data),c=l?l.length:0;if(i.children=new Array(c),l&&c)for(var f=0;fn.low&&(n=n.nxt);var s=i+r.prelim+r.w-(o+a.prelim);s>0&&(o+=s,c(t,e,n.index,s));var u=d(r),l=d(a);u<=l&&(r=h(r),null!==r&&(i+=r.mod)),u>=l&&(a=f(a),null!==a&&(o+=a.mod))}!r&&a?p(t,e,a,o):r&&!a&&g(t,e,r,i)}function c(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,m(t,e,n,r)}function f(t){return 0===t.cs?t.tl:t.c[0]}function h(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function p(t,e,n,r){var i=t.c[0].el;i.tl=n;var a=r-n.mod-t.c[0].msel;i.mod+=a,i.prelim-=a,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}function g(t,e,n,r){var i=t.c[e].er;i.tr=n;var a=r-n.mod-t.c[e].mser;i.mod+=a,i.prelim-=a,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}function v(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}function _(t,e){e+=t.mod,t.x=t.prelim+e,y(t);for(var n=0;n=n.low)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var b=n.fromNode(t,r);return i(b),_(b,0),o(b,t,r),a(t,r),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(1),a=n(10),o=n(2),s=n(0),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return t.rootNode.width=0,o(t.rootNode,t.options,a)},e}(i),l={};function c(t,e){return e=s.assign({},l,e),new u(t,e).execute()}t.exports=c},function(t,e,n){var r=n(0);function i(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}var a={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function o(t,e,n){n?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach((function(t,r){o(t,e.children[r],n)}))}t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,e);var n,s=0;function u(t){if(!t)return null;t.width=0,t.depth&&t.depth>s&&(s=t.depth);var e=t.children,n=e.length,r=new i(t.height,[]);return e.forEach((function(t,e){var i=u(t);r.children.push(i),0===e&&(r.leftChild=i),e===n-1&&(r.rightChild=i)})),r.originNode=t,r.isLeaf=t.isLeaf(),r}function l(t){if(t.isLeaf||0===t.children.length)t.drawingDepth=s;else{var e=t.children.map((function(t){return l(t)})),n=Math.min.apply(null,e);t.drawingDepth=n-1}return t.drawingDepth}function c(t){t.x=t.drawingDepth*e.rankSep,t.isLeaf?(t.y=0,n&&(t.y=n.y+n.height+e.nodeSep,t.originNode.parent!==n.originNode.parent&&(t.y+=e.subTreeSep)),n=t):(t.children.forEach((function(t){c(t)})),t.y=(t.leftChild.y+t.rightChild.y)/2)}var f=u(t);return l(f),c(f),o(f,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(1),a=n(12),o=n(4),s=n(0),u=["LR","RL","H"],l=u[0],c=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this,e=t.options,n=t.rootNode;e.isHorizontal=!0;var r=e.indent,i=e.direction||l;if(i&&-1===u.indexOf(i))throw new TypeError("Invalid direction: "+i);if(i===u[0])a(n,r);else if(i===u[1])a(n,r),n.right2left();else if(i===u[2]){var s=o(n,e),c=s.left,f=s.right;a(c,r),c.right2left(),a(f,r);var h=c.getBoundingBox();f.translate(h.width,0),n.x=f.x-n.width/2}return n},e}(i),f={};function h(t,e){return e=s.assign({},f,e),new c(t,e).execute()}t.exports=h},function(t,e){var n=20;function r(t,e,n){t.x+=n*t.depth,t.y=e?e.y+e.height:0}t.exports=function(t,e){void 0===e&&(e=n);var i=null;t.eachNode((function(t){r(t,i,e),i=t}))}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(1),a=n(14),o=n(2),s=n(0),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return o(t.rootNode,t.options,a)},e}(i),l={};function c(t,e){return e=s.assign({},l,e),new u(t,e).execute()}t.exports=c},function(t,e,n){var r=n(0);function i(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=i(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function a(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){a(t)}));var r=e[0],i=e[n-1],o=i.y-r.y+i.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),o>t.height)t.y=r.y+o/2-t.height/2;else if(1!==e.length||t.height>s){var u=t.y+(t.height-o)/2-r.y;e.forEach((function(t){t.translate(0,u)}))}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var o={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,i(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;in?n:t};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clear-animation-frame.js":function(t,e,n){"use strict";function r(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clone.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),i=function t(e){if("object"!==typeof e||null===e)return e;var n;if(r.default(e)){n=[];for(var i=0,a=e.length;i-1};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/debounce.js":function(t,e,n){"use strict";function r(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/deep-mix.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js"),a=5;function o(t,e,n,s){for(var u in n=n||0,s=s||a,e)if(e.hasOwnProperty(u)){var l=e[u];null!==l&&i.default(l)?(i.default(t[u])||(t[u]={}),n20&&(i=20),parseFloat(t.toFixed(i))};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten-deep.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),i=function t(e,n){if(void 0===n&&(n=[]),r.default(e))for(var i=0;i0};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-prototype.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.prototype,i=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||r;return t===n};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-reg-exp.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js"),i=function(t){return r.default(t,"RegExp")};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"String")}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-undefined.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return void 0===t};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/keys.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),a=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r.default(t,(function(n,r){i.default(t)&&"prototype"===r||e.push(r)})),e};e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/last.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");function i(t){if(r.default(t)){var e=t;return e[e.length-1]}}e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-case.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js"),i=function(t){return r.default(t).toLowerCase()};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-first.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js"),i=function(t){var e=r.default(t);return e.charAt(0).toLowerCase()+e.substring(1)};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/map-values.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js"),a=function(t){return t};e.default=function(t,e){void 0===e&&(e=a);var n={};return i.default(t)&&!r.default(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/map.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),a=function(t,e){if(!i.default(t))return t;var n=[];return r.default(t,(function(t,r){n.push(e(t,r))})),n};e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/max-by.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.default=function(t,e){if(i.default(t)){var n,o,s=t[0];return n=a.default(e)?e(t[0]):t[0][e],r.default(t,(function(t){o=a.default(e)?e(t):t[e],o>n&&(s=t,n=o)})),s}}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/memoize.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.default=function(t,e){if(!r.default(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i-1)i.call(t,s,1)}return t};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/reduce.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js"),o=function(t,e,n){if(!i.default(t)&&!a.default(t))return t;var o=n;return r.default(t,(function(t,n){o=e(o,t,n)})),o};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/remove.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull-at.js"),a=function(t,e){var n=[];if(!r.default(t))return n;var a=-1,o=[],s=t.length;while(++ae[r])return 1;if(t[r]e?(r&&(clearTimeout(r),r=null),s=l,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,c)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-array.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");e.default=function(t){return r.default(t)?Array.prototype.slice.call(t):[]}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-degree.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=180/Math.PI,i=function(t){return r*t};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-integer.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-radian.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180,i=function(t){return r*t};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js");e.default=function(t){return r.default(t)?"":t.toString()}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/union.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/uniq.js"),i=function(){for(var t=[],e=0;ee?1:t>=e?0:NaN}function n(t){return 1===t.length&&(t=r(t)),{left:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}function r(t){return function(n,r){return e(t(n),r)}}var i=n(e),a=i.right,o=i.left;function s(t,e){null==e&&(e=u);var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);while(nt?1:e>=t?0:NaN}function f(t){return null===t?NaN:+t}function h(t,e){var n,r,i=t.length,a=0,o=-1,s=0,u=0;if(null==e)while(++o1)return u/(a-1)}function d(t,e){var n=h(t,e);return n?Math.sqrt(n):n}function p(t,e){var n,r,i,a=t.length,o=-1;if(null==e){while(++o=n){r=i=n;while(++on&&(r=n),i=n){r=i=n;while(++on&&(r=n),i0)return[t];if((r=e0){t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));while(++s=0?(a>=b?10:a>=w?5:a>=M?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=b?10:a>=w?5:a>=M?2:1)}function S(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=b?i*=10:a>=w?i*=5:a>=M&&(i*=2),ef)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)p=g[i]=[],p.x0=i>0?h[i-1]:c,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),s=+n(t[a+1],a+1,t);return o+(s-o)*(i-a)}}function k(t,n,r){return t=_.call(t,f).sort(e),Math.ceil((r-n)/(2*(O(t,.75)-O(t,.25))*Math.pow(t.length,-1/3)))}function T(t,e,n){return Math.ceil((n-e)/(3.5*d(t)*Math.pow(t.length,-1/3)))}function A(t,e){var n,r,i=t.length,a=-1;if(null==e){while(++a=n){r=n;while(++ar&&(r=n)}}else while(++a=n){r=n;while(++ar&&(r=n)}return r}function I(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)while(++a=0){r=t[i],e=r.length;while(--e>=0)n[--o]=r[e]}return n}function R(t,e){var n,r,i=t.length,a=-1;if(null==e){while(++a=n){r=n;while(++an&&(r=n)}}else while(++a=n){r=n;while(++an&&(r=n)}return r}function N(t,e){var n=e.length,r=new Array(n);while(n--)r[n]=t[e[n]];return r}function B(t,n){if(r=t.length){var r,i,a=0,o=0,s=t[o];null==n&&(n=e);while(++a=i.length)return null!=t&&n.sort(t),null!=e?e(n):n;var u,l,f,h=-1,d=n.length,p=i[a++],g=r(),v=o();while(++hi.length)return t;var r,a=l[n-1];return null!=e&&n>=i.length?r=t.entries():(r=[],t.each((function(t,e){r.push({key:e,values:f(t,n)})}))),null!=a?r.sort((function(t,e){return a(t.key,e.key)})):r}return n={object:function(t){return c(t,0,a,o)},map:function(t){return c(t,0,s,u)},entries:function(t){return f(c(t,0,s,u),0)},key:function(t){return i.push(t),n},sortKeys:function(t){return l[i.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function a(){return{}}function o(t,e,n){t[e]=n}function s(){return r()}function u(t,e,n){t.set(e,n)}function l(){}n.prototype=r.prototype={constructor:n,has:function(t){return e+t in this},get:function(t){return this[e+t]},set:function(t,n){return this[e+t]=n,this},remove:function(t){var n=e+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===e&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===e&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===e&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===e&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===e&&++t;return t},empty:function(){for(var t in this)if(t[0]===e)return!1;return!0},each:function(t){for(var n in this)n[0]===e&&t(this[n],n.slice(1),this)}};var c=r.prototype;function f(t,e){var n=new l;if(t instanceof l)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)while(++rs&&(s=t),eu&&(u=e)}function f(t,n,r){var i=n[1][0]-n[0][0],a=n[1][1]-n[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),e.geoStream(r,t.stream(l));var s=l.result(),u=Math.min(i/(s[1][0]-s[0][0]),a/(s[1][1]-s[0][1])),c=+n[0][0]+(i-u*(s[1][0]+s[0][0]))/2,f=+n[0][1]+(a-u*(s[1][1]+s[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*u).translate([c,f])}function h(t,e,n){return f(t,[[0,0],e],n)}function d(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=.12&&i<.234&&r>=-.425&&r<-.214?c:i>=.166&&i<.234&&r>=-.214&&r<-.115?p:l).invert(t)},v.stream=function(e){return t&&i===e?t:t=d([l.stream(i=e),c.stream(e),p.stream(e)])},v.precision=function(t){return arguments.length?(l.precision(t),c.precision(t),p.precision(t),_()):l.precision()},v.scale=function(t){return arguments.length?(l.scale(t),c.scale(.35*t),p.scale(t),v.translate(l.translate())):l.scale()},v.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],i=+t[1];return a=l.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(g),o=c.translate([n-.307*e,i+.201*e]).clipExtent([[n-.425*e+r,i+.12*e+r],[n-.214*e-r,i+.234*e-r]]).stream(g),s=p.translate([n-.205*e,i+.212*e]).clipExtent([[n-.214*e+r,i+.166*e+r],[n-.115*e-r,i+.234*e-r]]).stream(g),_()},v.fitExtent=function(t,e){return f(v,t,e)},v.fitSize=function(t,e){return h(v,t,e)},v.drawCompositionBorders=function(t){var e=l([-102.91,26.3]),n=l([-104,27.5]),r=l([-108,29.1]),i=l([-110,29.1]),a=l([-110,26.7]),o=l([-112.8,27.6]),s=l([-114.3,30.6]),u=l([-119.3,30.1]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1])},v.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},v.scale(1070)}function g(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=.12&&i<.234&&r>=-.425&&r<-.214?v:i>=.166&&i<.234&&r>=-.214&&r<-.115?_:i>=.2064&&i<.2413&&r>=.312&&r<.385?m:i>=.09&&i<.1197&&r>=-.4243&&r<-.3232?y:i>=-.0518&&i<.0895&&r>=-.4243&&r<-.3824?x:p).invert(t)},w.stream=function(e){return t&&i===e?t:t=g([p.stream(i=e),v.stream(e),_.stream(e),m.stream(e),y.stream(e),x.stream(e)])},w.precision=function(t){return arguments.length?(p.precision(t),v.precision(t),_.precision(t),m.precision(t),y.precision(t),x.precision(t),M()):p.precision()},w.scale=function(t){return arguments.length?(p.scale(t),v.scale(.35*t),_.scale(t),m.scale(t),y.scale(2*t),x.scale(t),w.translate(p.translate())):p.scale()},w.translate=function(t){if(!arguments.length)return p.translate();var e=p.scale(),n=+t[0],i=+t[1];return a=p.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(b),o=v.translate([n-.307*e,i+.201*e]).clipExtent([[n-.425*e+r,i+.12*e+r],[n-.214*e-r,i+.233*e-r]]).stream(b),s=_.translate([n-.205*e,i+.212*e]).clipExtent([[n-.214*e+r,i+.166*e+r],[n-.115*e-r,i+.233*e-r]]).stream(b),u=m.translate([n+.35*e,i+.224*e]).clipExtent([[n+.312*e+r,i+.2064*e+r],[n+.385*e-r,i+.233*e-r]]).stream(b),l=y.translate([n-.492*e,i+.09*e]).clipExtent([[n-.4243*e+r,i+.0903*e+r],[n-.3233*e-r,i+.1197*e-r]]).stream(b),c=x.translate([n-.408*e,i+.018*e]).clipExtent([[n-.4244*e+r,i-.0519*e+r],[n-.3824*e-r,i+.0895*e-r]]).stream(b),M()},w.fitExtent=function(t,e){return f(w,t,e)},w.fitSize=function(t,e){return h(w,t,e)},w.drawCompositionBorders=function(t){var e=p([-110.4641,28.2805]),n=p([-104.0597,28.9528]),r=p([-103.7049,25.1031]),i=p([-109.8337,24.4531]),a=p([-124.4745,28.1407]),o=p([-110.931,30.8844]),s=p([-109.8337,24.4531]),u=p([-122.4628,21.8562]),l=p([-76.8579,25.1544]),c=p([-72.429,24.2097]),f=p([-72.8265,22.7056]),h=p([-77.1852,23.6392]),d=p([-125.0093,29.7791]),g=p([-118.5193,31.3262]),v=p([-118.064,29.6912]),_=p([-124.4369,28.169]),m=p([-128.1314,37.4582]),y=p([-125.2132,38.214]),x=p([-122.3616,30.5115]),b=p([-125.0315,29.8211]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.closePath(),t.moveTo(l[0],l[1]),t.lineTo(c[0],c[1]),t.lineTo(f[0],f[1]),t.lineTo(f[0],f[1]),t.lineTo(h[0],h[1]),t.closePath(),t.moveTo(d[0],d[1]),t.lineTo(g[0],g[1]),t.lineTo(v[0],v[1]),t.lineTo(v[0],v[1]),t.lineTo(_[0],_[1]),t.closePath(),t.moveTo(m[0],m[1]),t.lineTo(y[0],y[1]),t.lineTo(x[0],x[1]),t.lineTo(x[0],x[1]),t.lineTo(b[0],b[1]),t.closePath()},w.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},w.scale(1070)}function _(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=.05346&&i<.0897&&r>=-.13388&&r<-.0322?l:u).invert(t)},d.stream=function(e){return t&&i===e?t:t=_([u.stream(i=e),l.stream(e)])},d.precision=function(t){return arguments.length?(u.precision(t),l.precision(t),p()):u.precision()},d.scale=function(t){return arguments.length?(u.scale(t),l.scale(t),d.translate(u.translate())):u.scale()},d.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],i=+t[1];return a=u.translate(t).clipExtent([[n-.06857*e,i-.1288*e],[n+.13249*e,i+.06*e]]).stream(c),o=l.translate([n+.1*e,i-.094*e]).clipExtent([[n-.1331*e+r,i+.053457*e+r],[n-.0354*e-r,i+.08969*e-r]]).stream(c),p()},d.fitExtent=function(t,e){return f(d,t,e)},d.fitSize=function(t,e){return h(d,t,e)},d.drawCompositionBorders=function(t){var e=u([-14.034675,34.965007]),n=u([-7.4208899,35.536988]),r=u([-7.3148275,33.54359]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1])},d.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},d.scale(2700)}function y(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=.0093&&i<.03678&&r>=-.03875&&r<-.0116?c:i>=-.0412&&i<.0091&&r>=-.07782&&r<-.01166?d:l).invert(t)},g.stream=function(e){return t&&i===e?t:t=y([l.stream(i=e),c.stream(e),d.stream(e)])},g.precision=function(t){return arguments.length?(l.precision(t),c.precision(t),d.precision(t),v()):l.precision()},g.scale=function(t){return arguments.length?(l.scale(t),c.scale(t),d.scale(.6*t),g.translate(l.translate())):l.scale()},g.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],i=+t[1];return a=l.translate(t).clipExtent([[n-.0115*e,i-.1138*e],[n+.2105*e,i+.0673*e]]).stream(p),o=c.translate([n-.0265*e,i+.025*e]).clipExtent([[n-.0388*e+r,i+.0093*e+r],[n-.0116*e-r,i+.0368*e-r]]).stream(p),s=d.translate([n-.045*e,i+-.02*e]).clipExtent([[n-.0778*e+r,i-.0413*e+r],[n-.0117*e-r,i+.0091*e-r]]).stream(p),v()},g.fitExtent=function(t,e){return f(g,t,e)},g.fitSize=function(t,e){return h(g,t,e)},g.drawCompositionBorders=function(t){var e=l([-12.8351,38.7113]),n=l([-10.8482,38.7633]),r=l([-10.8181,37.2072]),i=l([-12.7345,37.1573]),a=l([-16.0753,41.4436]),o=l([-10.9168,41.6861]),s=l([-10.8557,38.7747]),u=l([-15.6728,38.5505]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.closePath()},g.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},g.scale(4200)}function b(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=-.0676&&i<-.026&&r>=-.0857&&r<-.0263?l:u).invert(t)},d.stream=function(e){return t&&i===e?t:t=b([u.stream(i=e),l.stream(e)])},d.precision=function(t){return arguments.length?(u.precision(t),l.precision(t),p()):u.precision()},d.scale=function(t){return arguments.length?(u.scale(t),l.scale(t),d.translate(u.translate())):u.scale()},d.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],i=+t[1];return a=u.translate(t).clipExtent([[n-.0262*e,i-.0734*e],[n+.1741*e,i+.079*e]]).stream(c),o=l.translate([n-.06*e,i-.04*e]).clipExtent([[n-.0857*e+r,i-.0676*e+r],[n-.0263*e-r,i-.026*e-r]]).stream(c),p()},d.fitExtent=function(t,e){return f(d,t,e)},d.fitSize=function(t,e){return h(d,t,e)},d.drawCompositionBorders=function(t){var e=u([-84.9032,2.3757]),n=u([-81.5047,2.3708]),r=u([-81.5063,-.01]),i=u([-84.9086,-.005]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},d.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},d.scale(3500)}function M(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=.2582&&i<.32&&r>=-.1036&&r<-.087?d:i>=-.01298&&i<.0133&&r>=-.11396&&r<-.05944?p:i>=.01539&&i<.03911&&r>=-.089&&r<-.0588?g:c).invert(t)},_.stream=function(e){return t&&i===e?t:t=M([c.stream(i=e),d.stream(e),p.stream(e),g.stream(e)])},_.precision=function(t){return arguments.length?(c.precision(t),d.precision(t),p.precision(t),g.precision(t),m()):c.precision()},_.scale=function(t){return arguments.length?(c.scale(t),d.scale(.15*t),p.scale(1.5*t),g.scale(1.5*t),_.translate(c.translate())):c.scale()},_.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],i=+t[1];return a=c.translate(t).clipExtent([[n-.059*e,i-.3835*e],[n+.4498*e,i+.3375*e]]).stream(v),o=d.translate([n-.087*e,i+.17*e]).clipExtent([[n-.1166*e+r,i+.2582*e+r],[n-.06*e-r,i+.32*e-r]]).stream(v),s=p.translate([n-.092*e,i-0*e]).clipExtent([[n-.114*e+r,i-.013*e+r],[n-.0594*e-r,i+.0133*e-r]]).stream(v),u=g.translate([n-.089*e,i-.0265*e]).clipExtent([[n-.089*e+r,i+.0154*e+r],[n-.0588*e-r,i+.0391*e-r]]).stream(v),m()},_.fitExtent=function(t,e){return f(_,t,e)},_.fitSize=function(t,e){return h(_,t,e)},_.drawCompositionBorders=function(t){var e=c([-82.6999,-51.3043]),n=c([-77.5442,-51.6631]),r=c([-78.0254,-55.186]),i=c([-83.6106,-54.7785]),a=c([-80.0638,-35.984]),o=c([-76.2153,-36.1811]),s=c([-76.2994,-37.6839]),u=c([-80.2231,-37.4757]),l=c([-78.442,-37.706]),f=c([-76.263,-37.8054]),h=c([-76.344,-39.1595]),d=c([-78.5638,-39.0559]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.closePath(),t.moveTo(l[0],l[1]),t.lineTo(f[0],f[1]),t.lineTo(h[0],h[1]),t.lineTo(h[0],h[1]),t.lineTo(d[0],d[1]),t.closePath()},_.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},_.scale(700)}function E(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=-.10925&&i<-.02701&&r>=-.135&&r<-.0397?c:i>=.04713&&i<.11138&&r>=-.03986&&r<.051?d:l).invert(t)},g.stream=function(e){return t&&i===e?t:t=E([l.stream(i=e),c.stream(e),d.stream(e)])},g.precision=function(t){return arguments.length?(l.precision(t),c.precision(t),d.precision(t),v()):l.precision()},g.scale=function(t){return arguments.length?(l.scale(t),c.scale(t),d.scale(.7*t),g.translate(l.translate())):l.scale()},g.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],i=+t[1];return a=l.translate(t).clipExtent([[n-.1352*e,i-.1091*e],[n+.117*e,i+.098*e]]).stream(p),o=c.translate([n-.0425*e,i-.005*e]).clipExtent([[n-.135*e+r,i-.1093*e+r],[n-.0397*e-r,i-.027*e-r]]).stream(p),s=d.translate(t).clipExtent([[n-.0399*e+r,i+.0471*e+r],[n+.051*e-r,i+.1114*e-r]]).stream(p),v()},g.fitExtent=function(t,e){return f(g,t,e)},g.fitSize=function(t,e){return h(g,t,e)},g.drawCompositionBorders=function(t){var e=l([126.01320483689143,41.621090310215585]),n=l([133.04304387025903,42.15087523707186]),r=l([133.3021766080688,37.43975444725098]),i=l([126.87889168628224,36.95488945159779]),a=l([132.9,29.8]),o=l([134,33]),s=l([139.3,33.2]),u=l([139.16,30.5]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1])},g.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},g.scale(2200)}function P(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=.029&&i<.0864&&r>=-.14&&r<-.0996?b:i>=0&&i<.029&&r>=-.14&&r<-.0996?w:i>=-.032&&i<0&&r>=-.14&&r<-.0996?M:i>=-.052&&i<-.032&&r>=-.14&&r<-.0996?j:i>=-.076&&i<.052&&r>=-.14&&r<-.0996?E:i>=-.076&&i<-.052&&r>=.0967&&r<.1371?S:i>=-.052&&i<-.02&&r>=.0967&&r<.1371?C:i>=-.02&&i<.012&&r>=.0967&&r<.1371?O:i>=.012&&i<.033&&r>=.0967&&r<.1371?k:i>=.033&&i<.0864&&r>=.0967&&r<.1371?T:x).invert(t)},D.stream=function(e){return t&&i===e?t:t=P([x.stream(i=e),b.stream(e),w.stream(e),M.stream(e),j.stream(e),E.stream(e),S.stream(e),C.stream(e),O.stream(e),k.stream(e),T.stream(e),A.stream(e)])},D.precision=function(t){return arguments.length?(x.precision(t),b.precision(t),w.precision(t),M.precision(t),j.precision(t),E.precision(t),S.precision(t),C.precision(t),O.precision(t),k.precision(t),T.precision(t),A.precision(t),L()):x.precision()},D.scale=function(t){return arguments.length?(x.scale(t),b.scale(.6*t),w.scale(1.6*t),M.scale(1.4*t),j.scale(5*t),E.scale(1.3*t),S.scale(1.6*t),C.scale(1.2*t),O.scale(.3*t),k.scale(2.7*t),T.scale(.5*t),A.scale(.06*t),D.translate(x.translate())):x.scale()},D.translate=function(t){if(!arguments.length)return x.translate();var e=x.scale(),n=+t[0],i=+t[1];return a=x.translate(t).clipExtent([[n-.0996*e,i-.0908*e],[n+.0967*e,i+.0864*e]]).stream(I),o=b.translate([n-.12*e,i+.0575*e]).clipExtent([[n-.14*e+r,i+.029*e+r],[n-.0996*e-r,i+.0864*e-r]]).stream(I),s=w.translate([n-.12*e,i+.013*e]).clipExtent([[n-.14*e+r,i+0*e+r],[n-.0996*e-r,i+.029*e-r]]).stream(I),u=M.translate([n-.12*e,i-.014*e]).clipExtent([[n-.14*e+r,i-.032*e+r],[n-.0996*e-r,i+0*e-r]]).stream(I),l=j.translate([n-.12*e,i-.044*e]).clipExtent([[n-.14*e+r,i-.052*e+r],[n-.0996*e-r,i-.032*e-r]]).stream(I),c=E.translate([n-.12*e,i-.065*e]).clipExtent([[n-.14*e+r,i-.076*e+r],[n-.0996*e-r,i-.052*e-r]]).stream(I),d=S.translate([n+.117*e,i-.064*e]).clipExtent([[n+.0967*e+r,i-.076*e+r],[n+.1371*e-r,i-.052*e-r]]).stream(I),p=C.translate([n+.116*e,i-.0355*e]).clipExtent([[n+.0967*e+r,i-.052*e+r],[n+.1371*e-r,i-.02*e-r]]).stream(I),g=O.translate([n+.116*e,i-.0048*e]).clipExtent([[n+.0967*e+r,i-.02*e+r],[n+.1371*e-r,i+.012*e-r]]).stream(I),v=k.translate([n+.116*e,i+.022*e]).clipExtent([[n+.0967*e+r,i+.012*e+r],[n+.1371*e-r,i+.033*e-r]]).stream(I),m=A.translate([n+.11*e,i+.045*e]).clipExtent([[n+.0967*e+r,i+.033*e+r],[n+.1371*e-r,i+.06*e-r]]).stream(I),_=T.translate([n+.115*e,i+.075*e]).clipExtent([[n+.0967*e+r,i+.06*e+r],[n+.1371*e-r,i+.0864*e-r]]).stream(I),L()},D.fitExtent=function(t,e){return f(D,t,e)},D.fitSize=function(t,e){return h(D,t,e)},D.drawCompositionBorders=function(t){var e,n,r,i;e=x([-7.938886725111036,43.7219460918835]),n=x([-4.832080896458295,44.12930268549372]),r=x([-4.205299743793263,40.98096346967365]),i=x([-7.071796453126152,40.610037319181444]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([-8.42751373617692,45.32889452553031]),n=x([-5.18599305777107,45.7566442062976]),r=x([-4.832080905154431,44.129302726751426]),i=x([-7.938886737126192,43.72194613263854]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([-9.012656899657046,47.127733821030176]),n=x([-5.6105244772793155,47.579777861410626]),r=x([-5.185993067168585,45.756644248170346]),i=x([-8.427513749141811,45.32889456686326]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([-9.405747558985553,48.26506375557457]),n=x([-5.896175018439575,48.733352850851624]),r=x([-5.610524487556043,47.57977790393761]),i=x([-9.012656913808351,47.127733862971255]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([-9.908436061346974,49.642448789505856]),n=x([-6.262026716233124,50.131426841787174]),r=x([-5.896175029331232,48.73335289377258]),i=x([-9.40574757396393,48.26506379787767]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([11.996907706504462,50.16039028163579]),n=x([15.649907879773343,49.68279246765253]),r=x([15.156712840526632,48.30371557625831]),i=x([11.64122661754411,48.761078240546816]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([11.641226606955788,48.7610781975889]),n=x([15.156712825832164,48.30371553390465]),r=x([14.549932166241172,46.4866532486199]),i=x([11.204443787952183,46.91899233914248]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([11.204443778297161,46.918992296823646]),n=x([14.549932152815039,46.486653206856396]),r=x([13.994409796764009,44.695833444323256]),i=x([10.805306599253848,45.105133870684924]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([10.805306590412085,45.10513382903308]),n=x([13.99440978444733,44.695833403183606]),r=x([13.654633799024392,43.53552468558152]),i=x([10.561516803980956,43.930671459798624]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([10.561516795617383,43.93067141859757]),n=x([13.654633787361952,43.5355246448671]),r=x([12.867691604239901,40.640701985019405]),i=x([9.997809515987688,41.00288343254471]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([10.8,42.4]),n=x([12.8,42.13]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1])},D.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},D.scale(2700)}function O(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=-.31&&i<-.24&&r>=.14&&r<.24?b:i>=-.24&&i<-.17&&r>=.14&&r<.24?w:i>=-.17&&i<-.12&&r>=.21&&r<.24?j:i>=-.17&&i<-.14&&r>=.14&&r<.165?E:i>=-.17&&i<-.1&&r>=.14&&r<.24?M:i>=-.1&&i<-.03&&r>=.14&&r<.24?S:i>=-.03&&i<.04&&r>=.14&&r<.24?P:i>=-.31&&i<-.24&&r>=.24&&r<.34?C:i>=-.24&&i<-.17&&r>=.24&&r<.34?k:i>=-.17&&i<-.1&&r>=.24&&r<.34?T:i>=-.1&&i<-.03&&r>=.24&&r<.34?A:x).invert(t)},D.stream=function(e){return t&&i===e?t:t=O([x.stream(i=e),w.stream(e),C.stream(e),b.stream(e),P.stream(e),S.stream(e),k.stream(e),T.stream(e),A.stream(e),M.stream(e),j.stream(e),E.stream(e)])},D.precision=function(t){return arguments.length?(x.precision(t),w.precision(t),C.precision(t),b.precision(t),P.precision(t),S.precision(t),k.precision(t),T.precision(t),A.precision(t),M.precision(t),j.precision(t),E.precision(t),L()):x.precision()},D.scale=function(t){return arguments.length?(x.scale(t),b.scale(3*t),w.scale(.8*t),C.scale(3.5*t),T.scale(2.7*t),M.scale(2*t),j.scale(2*t),E.scale(2*t),S.scale(3*t),P.scale(t),k.scale(5.5*t),A.scale(6*t),D.translate(x.translate())):x.scale()},D.translate=function(t){if(!arguments.length)return x.translate();var e=x.scale(),n=+t[0],i=+t[1];return a=x.translate([n-.08*e,i]).clipExtent([[n-.51*e,i-.33*e],[n+.5*e,i+.33*e]]).stream(I),o=b.translate([n+.19*e,i-.275*e]).clipExtent([[n+.14*e+r,i-.31*e+r],[n+.24*e-r,i-.24*e-r]]).stream(I),s=w.translate([n+.19*e,i-.205*e]).clipExtent([[n+.14*e+r,i-.24*e+r],[n+.24*e-r,i-.17*e-r]]).stream(I),u=M.translate([n+.19*e,i-.135*e]).clipExtent([[n+.14*e+r,i-.17*e+r],[n+.24*e-r,i-.1*e-r]]).stream(I),l=j.translate([n+.225*e,i-.147*e]).clipExtent([[n+.21*e+r,i-.17*e+r],[n+.24*e-r,i-.12*e-r]]).stream(I),c=E.translate([n+.153*e,i-.15*e]).clipExtent([[n+.14*e+r,i-.17*e+r],[n+.165*e-r,i-.14*e-r]]).stream(I),d=S.translate([n+.19*e,i-.065*e]).clipExtent([[n+.14*e+r,i-.1*e+r],[n+.24*e-r,i-.03*e-r]]).stream(I),p=P.translate([n+.19*e,i+.005*e]).clipExtent([[n+.14*e+r,i-.03*e+r],[n+.24*e-r,i+.04*e-r]]).stream(I),g=C.translate([n+.29*e,i-.275*e]).clipExtent([[n+.24*e+r,i-.31*e+r],[n+.34*e-r,i-.24*e-r]]).stream(I),v=k.translate([n+.29*e,i-.205*e]).clipExtent([[n+.24*e+r,i-.24*e+r],[n+.34*e-r,i-.17*e-r]]).stream(I),_=T.translate([n+.29*e,i-.135*e]).clipExtent([[n+.24*e+r,i-.17*e+r],[n+.34*e-r,i-.1*e-r]]).stream(I),m=A.translate([n+.29*e,i-.065*e]).clipExtent([[n+.24*e+r,i-.1*e+r],[n+.34*e-r,i-.03*e-r]]).stream(I),L()},D.fitExtent=function(t,e){return f(D,t,e)},D.fitSize=function(t,e){return h(D,t,e)},D.drawCompositionBorders=function(t){var e,n,r,i;e=x([42.45755610828648,63.343658547914934]),n=x([52.65837266667029,59.35045080290929]),r=x([47.19754502247785,56.12653496548117]),i=x([37.673034273363044,59.61638268506111]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([59.41110754003403,62.35069727399336]),n=x([66.75050228640794,57.11797303636038]),r=x([60.236065725110436,54.63331433818992]),i=x([52.65837313153311,59.350450804599355]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([48.81091130080243,66.93353402634641]),n=x([59.41110730654679,62.35069740653086]),r=x([52.6583728974441,59.3504509222445]),i=x([42.45755631675751,63.34365868805821]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([31.054198418446475,52.1080673766184]),n=x([39.09869284884117,49.400700047190554]),r=x([36.0580811499175,46.02944174908498]),i=x([28.690508588835726,48.433126979386415]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([33.977877745912025,55.849945501331]),n=x([42.75328432167726,52.78455122462353]),r=x([39.09869297540224,49.400700176148625]),i=x([31.05419851807008,52.10806751810923]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([52.658372900759296,59.35045068526415]),n=x([60.23606549583304,54.63331423800264]),r=x([54.6756370953122,51.892298789399455]),i=x([47.19754524788189,56.126534861222794]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([47.19754506082455,56.126534735591456]),n=x([54.675636900123514,51.892298681337095]),r=x([49.94448648951486,48.98775484983285]),i=x([42.75328468716108,52.78455126060818]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([42.75328453416769,52.78455113209101]),n=x([49.94448632339758,48.98775473706457]),r=x([45.912339990394315,45.99361784987003]),i=x([39.09869317356607,49.40070009378711]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([37.673034114296634,59.61638254183119]),n=x([47.197544835420544,56.126534839849846]),r=x([42.75328447467064,52.78455135314068]),i=x([33.977877870363905,55.849945644671145]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([44.56748486446032,57.26489367845818]),r=x([43.9335791193588,53.746540942601726]),i=x([43,56]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([37.673034114296634,59.61638254183119]),n=x([40.25902691953466,58.83002044222639]),r=x([38.458270492742024,57.26232178028002]),i=x([35.97754948030156,58.00266637992386]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},D.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},D.scale(750)}function T(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=-.0521&&i<.0229&&r>=-.0111&&r<.1?l:u).invert(t)},d.stream=function(e){return t&&i===e?t:t=T([u.stream(i=e),l.stream(e)])},d.precision=function(t){return arguments.length?(u.precision(t),l.precision(t),p()):u.precision()},d.scale=function(t){return arguments.length?(u.scale(t),l.scale(.615*t),d.translate(u.translate())):u.scale()},d.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],i=+t[1];return a=u.translate(t).clipExtent([[n-.11*e,i-.0521*e],[n-.0111*e,i+.0521*e]]).stream(c),o=l.translate([n+.09*e,i-0*e]).clipExtent([[n-.0111*e+r,i-.0521*e+r],[n+.1*e-r,i+.024*e-r]]).stream(c),p()},d.fitExtent=function(t,e){return f(d,t,e)},d.fitSize=function(t,e){return h(d,t,e)},d.drawCompositionBorders=function(t){var e=u([106.3214,2.0228]),n=u([105.1843,2.3761]),r=u([104.2151,3.3618]),i=u([104.215,4.5651]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1])},d.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},d.scale(4800)}function I(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=-.02&&i<0&&r>=-.038&&r<-.005?c:i>=0&&i<.02&&r>=-.038&&r<-.005?d:l).invert(t)},g.stream=function(e){return t&&i===e?t:t=I([l.stream(i=e),c.stream(e),d.stream(e)])},g.precision=function(t){return arguments.length?(l.precision(t),c.precision(t),d.precision(t),v()):l.precision()},g.scale=function(t){return arguments.length?(l.scale(t),c.scale(1.5*t),d.scale(4*t),g.translate(l.translate())):l.scale()},g.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],i=+t[1];return a=l.translate(t).clipExtent([[n-.005*e,i-.02*e],[n+.038*e,i+.02*e]]).stream(p),o=c.translate([n-.025*e,i-.01*e]).clipExtent([[n-.038*e+r,i-.02*e+r],[n-.005*e-r,i+0*e-r]]).stream(p),s=d.translate([n-.025*e,i+.01*e]).clipExtent([[n-.038*e+r,i-0*e+r],[n-.005*e-r,i+.02*e-r]]).stream(p),v()},g.fitExtent=function(t,e){return f(g,t,e)},g.fitSize=function(t,e){return h(g,t,e)},g.drawCompositionBorders=function(t){var e,n,r,i;e=l([9.21327272751682,2.645820439454123]),n=l([11.679126293239872,2.644755519268689]),r=l([11.676845389029227,.35307824637606433]),i=l([9.213572917774014,.35414205204417754]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=l([7.320873711543669,2.64475551449975]),n=l([9.213272722738658,2.645820434679803]),r=l([9.213422896480349,1.4999812505283054]),i=l([7.322014760520787,1.4989168878985566]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=l([7.3220147605302905,1.4989168783492766]),n=l([9.213422896481598,1.499981240979021]),r=l([9.213572912999604,.354142056817247]),i=l([7.323154615739809,.353078251154504]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},g.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},g.scale(12e3)}function L(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i=-.089&&i<.06&&r>=.029&&r<.046?l:u).invert(t)},d.stream=function(e){return t&&i===e?t:t=L([u.stream(i=e),l.stream(e)])},d.precision=function(t){return arguments.length?(u.precision(t),l.precision(t),p()):u.precision()},d.scale=function(t){return arguments.length?(u.scale(t),l.scale(t),d.translate(u.translate())):u.scale()},d.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],i=+t[1];return a=u.translate(t).clipExtent([[n-.065*e,i-.089*e],[n+.075*e,i+.089*e]]).stream(c),o=l.translate([n+.01*e,i+.025*e]).clipExtent([[n+.029*e+r,i-.089*e+r],[n+.046*e-r,i-.06*e-r]]).stream(c),p()},d.fitExtent=function(t,e){return f(d,t,e)},d.fitSize=function(t,e){return h(d,t,e)},d.drawCompositionBorders=function(t){var e,n,r,i;e=u([-1.113205870242365,59.64920050773357]),n=u([.807899092399606,59.59085836472269]),r=u([.5778611961420386,57.93467822832577]),i=u([-1.25867782078448,57.99029450085142]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},d.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},d.scale(2800)}t.geoAlbersUk=R,t.geoAlbersUsa=p,t.geoAlbersUsaTerritories=v,t.geoConicConformalEurope=k,t.geoConicConformalFrance=C,t.geoConicConformalPortugal=x,t.geoConicConformalSpain=m,t.geoConicEquidistantJapan=S,t.geoMercatorEcuador=w,t.geoMercatorEquatorialGuinea=D,t.geoMercatorMalaysia=A,t.geoTransverseMercatorChile=j,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-dsv@1.2.0@d3-dsv/dist/d3-dsv.js":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";var e={},n={},r=34,i=10,a=13;function o(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function s(t,e){var n=o(t);return function(r,i){return e(n(r),i,t)}}function u(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function l(t,e){var n=t+"",r=n.length;return r9999?"+"+l(t,6):l(t,4)}function f(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":c(t.getUTCFullYear())+"-"+l(t.getUTCMonth()+1,2)+"-"+l(t.getUTCDate(),2)+(i?"T"+l(e,2)+":"+l(n,2)+":"+l(r,2)+"."+l(i,3)+"Z":r?"T"+l(e,2)+":"+l(n,2)+":"+l(r,2)+"Z":n||e?"T"+l(e,2)+":"+l(n,2)+"Z":"")}function h(t){var l=new RegExp('["'+t+"\n\r]"),c=t.charCodeAt(0);function h(t,e){var n,r,i=d(t,(function(t,i){if(n)return n(t,i-1);r=t,n=e?s(t,e):o(t)}));return i.columns=r||[],i}function d(t,o){var s,u=[],l=t.length,f=0,h=0,d=l<=0,p=!1;function g(){if(d)return n;if(p)return p=!1,e;var o,s,u=f;if(t.charCodeAt(u)===r){while(f++=l?d=!0:(s=t.charCodeAt(f++))===i?p=!0:s===a&&(p=!0,t.charCodeAt(f)===i&&++f),t.slice(u+1,o-1).replace(/""/g,'"')}while(f0?1:t<0?-1:0},g=Math.sin,v=Math.tan,_=1e-6,m=1e-12,y=Math.PI,x=y/2,b=y/4,w=Math.SQRT1_2,M=T(2),j=T(y),E=2*y,S=180/y,P=y/180;function C(t){return t?t/Math.sin(t):1}function O(t){return t>1?x:t<-1?-x:Math.asin(t)}function k(t){return t>1?0:t<-1?y:Math.acos(t)}function T(t){return t>0?Math.sqrt(t):0}function A(t){return t=s(2*t),(t-1)/(t+1)}function I(t){return(s(t)-s(-t))/2}function D(t){return(s(t)+s(-t))/2}function L(t){return l(t+T(t*t+1))}function R(t){return l(t+T(t*t-1))}function N(t){var e=v(t/2),n=2*l(o(t/2))/(e*e);function i(t,e){var r=o(t),i=o(e),a=g(e),s=i*r,u=-((1-s?l((1+s)/2)/(1-s):-.5)+n/(1+s));return[u*i*g(t),u*a]}return i.invert=function(e,i){var s,u=T(e*e+i*i),c=-t/2,f=50;if(!u)return[0,0];do{var h=c/2,d=o(h),p=g(h),m=v(h),y=l(1/d);c-=s=(2/m*y-n*m-u)/(-y/(p*p)+1-n/(2*d*d))}while(r(s)>_&&--f>0);var x=g(c);return[a(e*x,u*o(c)),O(i*x/u)]},i}var B=function(){var t=x,n=e.geoProjectionMutator(N),r=n(t);return r.radius=function(e){return arguments.length?n(t=e*P):t*S},r.scale(179.976).clipAngle(147)};function F(t,e){var n=o(e),r=C(k(n*o(t/=2)));return[2*n*g(t)*r,g(e)*r]}F.invert=function(t,e){if(!(t*t+4*e*e>y*y+_)){var n=t,i=e,a=25;do{var s,u=g(n),l=g(n/2),c=o(n/2),f=g(i),h=o(i),d=g(2*i),p=f*f,v=h*h,m=l*l,x=1-v*c*c,b=x?k(h*c)*T(s=1/x):s=0,w=2*b*h*l-t,M=b*f-e,j=s*(v*m+b*h*c*p),E=s*(.5*u*d-2*b*f*l),S=.25*s*(d*l-b*f*v*u),P=s*(p*c+b*m*h),C=E*S-P*j;if(!C)break;var O=(M*E-w*P)/C,A=(w*S-M*j)/C;n-=O,i-=A}while((r(O)>_||r(A)>_)&&--a>0);return[n,i]}};var z=function(){return e.geoProjection(F).scale(152.63)};function q(t){var e=g(t),n=o(t),i=t>=0?1:-1,s=v(i*t),u=(1+e-n)/2;function l(t,r){var l=o(r),c=o(t/=2);return[(1+l)*g(t),(i*r>-a(c,s)-.001?0:10*-i)+u+g(r)*n-(1+l)*e*c]}return l.invert=function(t,l){var c=0,f=0,h=50;do{var d=o(c),p=g(c),v=o(f),m=g(f),y=1+v,x=y*p-t,b=u+m*n-y*e*d-l,w=y*d/2,M=-p*m,j=e*y*p/2,E=n*v+e*d*m,S=M*j-E*w,P=(b*M-x*E)/S/2,C=(x*j-b*w)/S;c-=P,f-=C}while((r(P)>_||r(C)>_)&&--h>0);return i*f>-a(o(c),s)-.001?[2*c,f]:null},l}var G=function(){var t=20*P,n=t>=0?1:-1,r=v(n*t),i=e.geoProjectionMutator(q),s=i(t),u=s.stream;return s.parallel=function(e){return arguments.length?(r=v((n=(t=e*P)>=0?1:-1)*t),i(t)):t*S},s.stream=function(e){var i=s.rotate(),l=u(e),c=(s.rotate([0,0]),u(e));return s.rotate(i),l.sphere=function(){c.polygonStart(),c.lineStart();for(var e=-180*n;n*e<180;e+=90*n)c.point(e,90*n);while(n*(e-=t)>=-180)c.point(e,n*-a(o(e*P/2),r)*S);c.lineEnd(),c.polygonEnd()},l},s.scale(218.695).center([0,28.0974])};function W(t,e){var n=v(e/2),r=T(1-n*n),i=1+r*o(t/=2),a=g(t)*r/i,s=n/i,u=a*a,l=s*s;return[4/3*a*(3+u-3*l),4/3*s*(3+3*u-l)]}W.invert=function(t,e){if(t*=3/8,e*=3/8,!t&&r(e)>1)return null;var n=t*t,i=e*e,s=1+n+i,u=T((s-T(s*s-4*e*e))/2),l=O(u)/3,c=u?R(r(e/u))/3:L(r(t))/3,f=o(l),h=D(c),d=h*h-f*f;return[2*p(t)*a(I(c)*f,.25-d),2*p(e)*a(h*g(l),.25+d)]};var U=function(){return e.geoProjection(W).scale(66.1603)},V=T(8),Y=l(1+M);function H(t,e){var n=r(e);return nm&&--c>0);return[t/(o(u)*(V-1/g(u))),p(e)*u]};var X=function(){return e.geoProjection(H).scale(112.314)};function K(t){var n=2*y/t;function s(t,i){var s=e.geoAzimuthalEquidistantRaw(t,i);if(r(t)>x){var u=a(s[1],s[0]),l=T(s[0]*s[0]+s[1]*s[1]),c=n*d((u-x)/n)+x,f=a(g(u-=c),2-o(u));u=c+O(y/l*g(f))-f,s[0]=l*o(u),s[1]=l*g(u)}return s}return s.invert=function(t,r){var s=T(t*t+r*r);if(s>x){var u=a(r,t),l=n*d((u-x)/n)+x,c=u>l?-1:1,f=s*o(l-u),h=1/v(c*k((f-y)/T(y*(y-2*f)+s*s)));u=l+2*i((h+c*T(h*h-3))/3),t=s*o(u),r=s*g(u)}return e.geoAzimuthalEquidistantRaw.invert(t,r)},s}var $=function(){var t=5,n=e.geoProjectionMutator(K),r=n(t),i=r.stream,s=.01,u=-o(s*P),l=g(s*P);return r.lobes=function(e){return arguments.length?n(t=+e):t},r.stream=function(e){var n=r.rotate(),c=i(e),f=(r.rotate([0,0]),i(e));return r.rotate(n),c.sphere=function(){f.polygonStart(),f.lineStart();for(var e=0,n=360/t,r=2*y/t,i=90-180/t,c=x;e_&&--a>0);return e/2}function Q(t,e,n){function r(r,i){return[t*r*o(i=Z(n,i)),e*g(i)]}return r.invert=function(r,i){return i=O(i/e),[r/(t*o(i)),O((2*i+g(2*i))/n)]},r}var J=Q(M/x,M,y),tt=function(){return e.geoProjection(J).scale(169.529)},et=2.00276,nt=1.11072;function rt(t,e){var n=Z(y,e);return[et*t/(1/o(e)+nt/o(n)),(e+M*g(n))/et]}rt.invert=function(t,e){var n,i,a=et*e,s=e<0?-b:b,u=25;do{i=a-M*g(s),s-=n=(g(2*s)+2*s-y*g(i))/(2*o(2*s)+2+y*o(i)*M*o(s))}while(r(n)>_&&--u>0);return i=a-M*g(s),[t*(1/o(i)+nt/o(s))/et,i]};var it=function(){return e.geoProjection(rt).scale(160.857)},at=function(t){var n=0,r=e.geoProjectionMutator(t),i=r(n);return i.parallel=function(t){return arguments.length?r(n=t*P):n*S},i};function ot(t,e){return[t*o(e),e]}ot.invert=function(t,e){return[t/o(e),e]};var st=function(){return e.geoProjection(ot).scale(152.63)};function ut(t){if(!t)return ot;var e=1/v(t);function n(n,r){var i=e+t-r,a=i?n*o(r)/i:i;return[i*g(a),e-i*o(a)]}return n.invert=function(n,r){var i=T(n*n+(r=e-r)*r),s=e+t-i;return[i/o(s)*a(n,r),s]},n}var lt=function(){return at(ut).scale(123.082).center([0,26.1441]).parallel(45)};function ct(t){function e(e,n){var r=x-n,i=r?e*t*g(r)/r:r;return[r*g(i)/t,x-r*o(i)]}return e.invert=function(e,n){var r=e*t,i=x-n,o=T(r*r+i*i),s=a(r,i);return[(o?o/g(o):1)*s/t,x-o]},e}var ft=function(){var t=.5,n=e.geoProjectionMutator(ct),r=n(t);return r.fraction=function(e){return arguments.length?n(t=+e):t},r.scale(158.837)},ht=Q(1,4/y,y),dt=function(){return e.geoProjection(ht).scale(152.63)};function pt(t,e,n,i,s,u){var l,c=o(u);if(r(t)>1||r(u)>1)l=k(n*s+e*i*c);else{var f=g(t/2),h=g(u/2);l=2*O(T(f*f+e*i*h*h))}return r(l)>_?[l,a(i*g(u),e*s-n*i*c)]:[0,0]}function gt(t,e,n){return k((t*t+e*e-n*n)/(2*t*e))}function vt(t){return t-2*y*u((t+y)/(2*y))}function _t(t,e,n){for(var r,i=[[t[0],t[1],g(t[1]),o(t[1])],[e[0],e[1],g(e[1]),o(e[1])],[n[0],n[1],g(n[1]),o(n[1])]],a=i[2],s=0;s<3;++s,a=r)r=i[s],a.v=pt(r[1]-a[1],a[3],a[2],r[3],r[2],r[0]-a[0]),a.point=[0,0];var u=gt(i[0].v[0],i[2].v[0],i[1].v[0]),l=gt(i[0].v[0],i[1].v[0],i[2].v[0]),c=y-u;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var f=[i[2].point[0]=i[0].point[0]+i[2].v[0]*o(u),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*g(u))];function h(t,e){var n,r=g(e),a=o(e),s=new Array(3);for(n=0;n<3;++n){var u=i[n];if(s[n]=pt(e-u[1],u[3],u[2],a,r,t-u[0]),!s[n][0])return u.point;s[n][1]=vt(s[n][1]-u.v[1])}var h=f.slice();for(n=0;n<3;++n){var d=2==n?0:n+1,p=gt(i[n].v[0],s[n][0],s[d][0]);s[n][1]<0&&(p=-p),n?1==n?(p=l-p,h[0]-=s[n][0]*o(p),h[1]-=s[n][0]*g(p)):(p=c-p,h[0]+=s[n][0]*o(p),h[1]+=s[n][0]*g(p)):(h[0]+=s[n][0]*o(p),h[1]-=s[n][0]*g(p))}return h[0]/=3,h[1]/=3,h}return h}function mt(t){return t[0]*=P,t[1]*=P,t}function yt(){return xt([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function xt(t,n,r){var i=e.geoCentroid({type:"MultiPoint",coordinates:[t,n,r]}),a=[-i[0],-i[1]],o=e.geoRotation(a),s=e.geoProjection(_t(mt(o(t)),mt(o(n)),mt(o(r)))).rotate(a),u=s.center;return delete s.rotate,s.center=function(t){return arguments.length?u(o(t)):o.invert(u())},s.clipAngle(90)}function bt(t,e){var n=T(1-g(e));return[2/j*t*n,j*(1-n)]}bt.invert=function(t,e){var n=(n=e/j-1)*n;return[n>0?t*T(y/n)/2:0,O(1-n)]};var wt=function(){return e.geoProjection(bt).scale(95.6464).center([0,30])};function Mt(t){var e=v(t);function n(t,n){return[t,(t?t/g(t):1)*(g(n)*o(t)-e*o(n))]}return n.invert=e?function(t,n){t&&(n*=g(t)/t);var r=o(t);return[t,2*a(T(r*r+e*e-n*n)-r,e-n)]}:function(t,e){return[t,O(t?e*v(t)/t:e)]},n}var jt=function(){return at(Mt).scale(249.828).clipAngle(90)},Et=T(3);function St(t,e){return[Et*t*(2*o(2*e/3)-1)/j,Et*j*g(e/3)]}St.invert=function(t,e){var n=3*O(e/(Et*j));return[j*t/(Et*(2*o(2*n/3)-1)),n]};var Pt=function(){return e.geoProjection(St).scale(156.19)};function Ct(t){var e=o(t);function n(t,n){return[t*e,g(n)/e]}return n.invert=function(t,n){return[t/e,O(n*e)]},n}var Ot=function(){return at(Ct).parallel(38.58).scale(195.044)};function kt(t){var e=o(t);function n(t,n){return[t*e,(1+e)*v(n/2)]}return n.invert=function(t,n){return[t/e,2*i(n/(1+e))]},n}var Tt=function(){return at(kt).scale(124.75)};function At(t,e){var n=T(8/(3*y));return[n*t*(1-r(e)/y),n*e]}At.invert=function(t,e){var n=T(8/(3*y)),i=e/n;return[t/(n*(1-r(i)/y)),i]};var It=function(){return e.geoProjection(At).scale(165.664)};function Dt(t,e){var n=T(4-3*g(r(e)));return[2/T(6*y)*t*n,p(e)*T(2*y/3)*(2-n)]}Dt.invert=function(t,e){var n=2-r(e)/T(2*y/3);return[t*T(6*y)/(2*n),p(e)*O((4-n*n)/3)]};var Lt=function(){return e.geoProjection(Dt).scale(165.664)};function Rt(t,e){var n=T(y*(4+y));return[2/n*t*(1+T(1-4*e*e/(y*y))),4/n*e]}Rt.invert=function(t,e){var n=T(y*(4+y))/2;return[t*n/(1+T(1-e*e*(4+y)/(4*y))),e*n/2]};var Nt=function(){return e.geoProjection(Rt).scale(180.739)};function Bt(t,e){var n=(2+x)*g(e);e/=2;for(var i=0,a=1/0;i<10&&r(a)>_;i++){var s=o(e);e-=a=(e+g(e)*(s+2)-n)/(2*s*(1+s))}return[2/T(y*(4+y))*t*(1+o(e)),2*T(y/(4+y))*g(e)]}Bt.invert=function(t,e){var n=e*T((4+y)/y)/2,r=O(n),i=o(r);return[t/(2/T(y*(4+y))*(1+i)),O((r+n*(i+2))/(2+x))]};var Ft=function(){return e.geoProjection(Bt).scale(180.739)};function zt(t,e){return[t*(1+o(e))/T(2+y),2*e/T(2+y)]}zt.invert=function(t,e){var n=T(2+y),r=e*n/2;return[n*t/(1+o(r)),r]};var qt=function(){return e.geoProjection(zt).scale(173.044)};function Gt(t,e){for(var n=(1+x)*g(e),i=0,a=1/0;i<10&&r(a)>_;i++)e-=a=(e+g(e)-n)/(1+o(e));return n=T(2+y),[t*(1+o(e))/n,2*e/n]}Gt.invert=function(t,e){var n=1+x,r=T(n/2);return[2*t*r/(1+o(e*=r)),O((e+g(e))/n)]};var Wt=function(){return e.geoProjection(Gt).scale(173.044)},Ut=3+2*M;function Vt(t,e){var n=g(t/=2),r=o(t),a=T(o(e)),s=o(e/=2),u=g(e)/(s+M*r*a),c=T(2/(1+u*u)),f=T((M*s+(r+n)*a)/(M*s+(r-n)*a));return[Ut*(c*(f-1/f)-2*l(f)),Ut*(c*u*(f+1/f)-2*i(u))]}Vt.invert=function(t,e){if(!(n=W.invert(t/1.2,1.065*e)))return null;var n,a=n[0],s=n[1],u=20;t/=Ut,e/=Ut;do{var h=a/2,d=s/2,p=g(h),v=o(h),m=g(d),y=o(d),b=o(s),j=T(b),E=m/(y+M*v*j),S=E*E,P=T(2/(1+S)),C=M*y+(v+p)*j,O=M*y+(v-p)*j,k=C/O,A=T(k),I=A-1/A,D=A+1/A,L=P*I-2*l(A)-t,R=P*E*D-2*i(E)-e,N=m&&w*j*p*S/m,B=(M*v*y+j)/(2*(y+M*v*j)*(y+M*v*j)*j),F=-.5*E*P*P*P,z=F*N,q=F*B,G=(G=2*y+M*j*(v-p))*G*A,U=(M*v*y*j+b)/G,V=-M*p*m/(j*G),Y=I*z-2*U/A+P*(U+U/k),H=I*q-2*V/A+P*(V+V/k),X=E*D*z-2*N/(1+S)+P*D*N+P*E*(U-U/k),K=E*D*q-2*B/(1+S)+P*D*B+P*E*(V-V/k),$=H*X-K*Y;if(!$)break;var Z=(R*H-L*K)/$,Q=(L*X-R*Y)/$;a-=Z,s=c(-x,f(x,s-Q))}while((r(Z)>_||r(Q)>_)&&--u>0);return r(r(s)-x)<_?[0,s]:u&&[a,s]};var Yt=function(){return e.geoProjection(Vt).scale(62.5271)},Ht=o(35*P);function Xt(t,e){var n=v(e/2);return[t*Ht*T(1-n*n),(1+Ht)*n]}Xt.invert=function(t,e){var n=e/(1+Ht);return[t&&t/(Ht*T(1-n*n)),2*i(n)]};var Kt=function(){return e.geoProjection(Xt).scale(137.152)};function $t(t,e){var n=e/2,r=o(n);return[2*t/j*o(e)*r*r,j*v(n)]}$t.invert=function(t,e){var n=i(e/j),r=o(n),a=2*n;return[t*j/2/(o(a)*r*r),a]};var Zt=function(){return e.geoProjection($t).scale(135.264)};function Qt(t){return[t[0]/2,O(v(t[1]/2*P))*S]}function Jt(t){return[2*t[0],2*i(g(t[1]*P))*S]}var te=function(t){null==t&&(t=e.geoOrthographic);var n=t(),r=e.geoEquirectangular().scale(S).precision(0).clipAngle(null).translate([0,0]);function i(t){return n(Qt(t))}function a(t){i[t]=function(e){return arguments.length?(n[t](e),i):n[t]()}}return n.invert&&(i.invert=function(t){return Jt(n.invert(t))}),i.stream=function(t){var e=n.stream(t),i=r.stream({point:function(t,n){e.point(t/2,O(v(-n/2*P))*S)},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}});return i.sphere=e.sphere,i},i.rotate=function(t){return arguments.length?(r.rotate(t),i):r.rotate()},i.center=function(t){return arguments.length?(n.center(Qt(t)),i):Jt(n.center())},a("clipAngle"),a("clipExtent"),a("scale"),a("translate"),a("precision"),i.scale(249.5)};function ee(t,n){var i=2*y/n,s=t*t;function u(n,u){var l=e.geoAzimuthalEquidistantRaw(n,u),c=l[0],f=l[1],h=c*c+f*f;if(h>s){var p=T(h),v=a(f,c),m=i*d(v/i),b=v-m,w=t*o(b),M=(t*g(b)-b*g(w))/(x-w),j=ne(b,M),E=(y-t)/re(j,w,y);c=p;var S,P=50;do{c-=S=(t+re(j,w,c)*E-p)/(j(c)*E)}while(r(S)>_&&--P>0);f=b*g(c),cs){var c=T(l),f=a(u,n),h=i*d(f/i),p=f-h;n=c*o(p),u=c*g(p);var v=n-x,_=g(n),b=u/_,w=n_||r(d)>_)&&--m>0);return[p,v]},c},oe=ae(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),se=function(){return e.geoProjection(oe).scale(149.995)},ue=ae(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),le=function(){return e.geoProjection(ue).scale(153.93)},ce=ae(5/6*y,-.62636,-.0344,0,1.3493,-.05524,0,.045),fe=function(){return e.geoProjection(ce).scale(130.945)};function he(t,e){var n=t*t,r=e*e;return[t*(1-.162388*r)*(.87-952426e-9*n*n),e*(1+r/12)]}he.invert=function(t,e){var n,i=t,a=e,o=50;do{var s=a*a;a-=n=(a*(1+s/12)-e)/(1+s/4)}while(r(n)>_&&--o>0);o=50,t/=1-.162388*s;do{var u=(u=i*i)*u;i-=n=(i*(.87-952426e-9*u)-t)/(.87-.00476213*u)}while(r(n)>_&&--o>0);return[i,a]};var de=function(){return e.geoProjection(he).scale(131.747)},pe=ae(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762),ge=function(){return e.geoProjection(pe).scale(131.087)},ve=function(t){var e=t(x,0)[0]-t(-x,0)[0];function n(n,r){var i=n>0?-.5:.5,a=t(n+i*y,r);return a[0]-=i*e,a}return t.invert&&(n.invert=function(n,r){var i=n>0?-.5:.5,a=t.invert(n+i*e,r),o=a[0]-i*y;return o<-y?o+=2*y:o>y&&(o-=2*y),a[0]=o,a}),n};function _e(t,e){var n=p(t),i=p(e),s=o(e),u=o(t)*s,l=g(t)*s,c=g(i*e);t=r(a(l,c)),e=O(u),r(t-x)>_&&(t%=x);var f=me(t>y/4?x-t:t,e);return t>y/4&&(c=f[0],f[0]=-f[1],f[1]=-c),f[0]*=n,f[1]*=-i,f}function me(t,e){if(e===x)return[0,0];var n,i,a=g(e),s=a*a,u=s*s,l=1+u,c=1+3*u,f=1-u,h=O(1/T(l)),d=f+s*l*h,p=(1-a)/d,v=T(p),m=p*l,b=T(m),w=v*f;if(0===t)return[0,-(w+s*b)];var M,j=o(e),E=1/j,S=2*a*j,P=(-3*s+h*c)*S,C=(-d*j-(1-a)*P)/(d*d),k=.5*C/v,A=f*k-2*s*v*S,I=s*l*C+p*c*S,D=-E*S,L=-E*I,R=-2*E*A,N=4*t/y;if(t>.222*y||e.175*y){if(n=(w+s*T(m*(1+u)-w*w))/(1+u),t>y/4)return[n,n];var B=n,F=.5*n;n=.5*(F+B),i=50;do{var z=T(m-n*n),q=n*(R+D*z)+L*O(n/b)-N;if(!q)break;q<0?F=n:B=n,n=.5*(F+B)}while(r(B-F)>_&&--i>0)}else{n=_,i=25;do{var G=n*n,W=T(m-G),U=R+D*W,V=n*U+L*O(n/b)-N,Y=U+(L-D*G)/W;n-=M=W?V/Y:0}while(r(M)>_&&--i>0)}return[n,-w-s*T(m-n*n)]}function ye(t,e){var n=0,i=1,a=.5,s=50;while(1){var u=a*a,l=T(a),c=O(1/T(1+u)),f=1-u+a*(1+u)*c,h=(1-l)/f,d=T(h),p=h*(1+u),g=d*(1-u),v=p-t*t,_=T(v),x=e+g+a*_;if(r(i-n)0?n=a:i=a,a=.5*(n+i)}if(!s)return null;var b=O(l),w=o(b),M=1/w,j=2*l*w,E=(-3*a+c*(1+3*u))*j,S=(-f*w-(1-l)*E)/(f*f),P=.5*S/d,C=(1-u)*P-2*a*d*j,k=-2*M*C,A=-M*j,I=-M*(a*(1+u)*S+h*(1+3*u)*j);return[y/4*(t*(k+A*_)+I*O(t/T(p))),b]}_e.invert=function(t,e){r(t)>1&&(t=2*p(t)-t),r(e)>1&&(e=2*p(e)-e);var n=p(t),i=p(e),s=-n*t,u=-i*e,l=u/s<1,c=ye(l?u:s,l?s:u),f=c[0],h=c[1],d=o(h);return l&&(f=-x-f),[n*(a(g(f)*d,-g(h))+y),i*O(o(f)*d)]};var xe=function(){return e.geoProjection(ve(_e)).scale(239.75)};function be(t,e,n){var r,i,a;return t?(r=we(t,n),e?(i=we(e,1-n),a=i[1]*i[1]+n*r[0]*r[0]*i[0]*i[0],[[r[0]*i[2]/a,r[1]*r[2]*i[0]*i[1]/a],[r[1]*i[1]/a,-r[0]*r[2]*i[0]*i[2]/a],[r[2]*i[1]*i[2]/a,-n*r[0]*r[1]*i[0]/a]]):[[r[0],0],[r[1],0],[r[2],0]]):(i=we(e,1-n),[[0,i[0]/i[1]],[1/i[1],0],[i[2]/i[1],0]])}function we(t,e){var n,a,u,l,c;if(e<_)return l=g(t),a=o(t),n=e*(t-l*a)/4,[l-n*a,a+n*l,1-e*l*l/2,t-n];if(e>=1-_)return n=(1-e)/4,a=D(t),l=A(t),u=1/a,c=a*I(t),[l+n*(c-t)/(a*a),u-n*l*u*(c-t),u+n*l*u*(c+t),2*i(s(t))-x+n*(c-t)/a];var f=[1,0,0,0,0,0,0,0,0],h=[T(e),0,0,0,0,0,0,0,0],d=0;a=T(1-e),c=1;while(r(h[d]/f[d])>_&&d<8)n=f[d++],h[d]=(n-a)/2,f[d]=(n+a)/2,a=T(n*a),c*=2;u=c*f[d]*t;do{l=h[d]*g(a=u)/f[d],u=(O(l)+u)/2}while(--d);return[g(u),l=o(u),l/o(u-a),u]}function Me(t,e,n){var a=r(t),o=r(e),s=I(o);if(a){var u=1/g(a),l=1/(v(a)*v(a)),c=-(l+n*(s*s*u*u)-1+n),f=(n-1)*l,h=(-c+T(c*c-4*f))/2;return[je(i(1/T(h)),n)*p(t),je(i(T((h/l-1)/n)),1-n)*p(e)]}return[0,je(i(s),1-n)*p(e)]}function je(t,e){if(!e)return t;if(1===e)return l(v(t/2+b));for(var n=1,a=T(1-e),o=T(e),s=0;r(o)>_;s++){if(t%y){var u=i(a*v(t)/n);u<0&&(u+=y),t+=u+~~(t/y)*y}else t+=t;o=(n+a)/2,a=T(n*a),o=((n=o)-a)/2}return t/(h(2,s)*n)}function Ee(t,e){var n=(M-1)/(M+1),i=T(1-n*n),a=je(x,i*i),u=-1,c=l(v(y/4+r(e)/2)),f=s(u*c)/T(n),h=Se(f*o(u*t),f*g(u*t)),d=Me(h[0],h[1],i*i);return[-d[1],(e>=0?1:-1)*(.5*a-d[0])]}function Se(t,e){var n=t*t,r=e+1,i=1-n-e*e;return[.5*((t>=0?x:-x)-a(i,2*t)),-.25*l(i*i+4*n)+.5*l(r*r+n)]}function Pe(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}Ee.invert=function(t,e){var n=(M-1)/(M+1),r=T(1-n*n),o=je(x,r*r),u=-1,c=be(.5*o-e,-t,r*r),f=Pe(c[0],c[1]),h=a(f[1],f[0])/u;return[h,2*i(s(.5/u*l(n*f[0]*f[0]+n*f[1]*f[1])))-x]};var Ce=function(){return e.geoProjection(ve(Ee)).scale(151.496)};function Oe(t,n){if(arguments.length<2&&(n=t),1===n)return e.geoAzimuthalEqualAreaRaw;if(n===1/0)return ke;function r(r,i){var a=e.geoAzimuthalEqualAreaRaw(r/n,i);return a[0]*=t,a}return r.invert=function(r,i){var a=e.geoAzimuthalEqualAreaRaw.invert(r/t,i);return a[0]*=n,a},r}function ke(t,e){return[t*o(e)/o(e/=2),2*g(e)]}ke.invert=function(t,e){var n=2*O(e/2);return[t*o(n/2)/o(n),n]};var Te=function(){var t=2,n=e.geoProjectionMutator(Oe),r=n(t);return r.coefficient=function(e){return arguments.length?n(t=+e):t},r.scale(169.529)};function Ae(t){var e=g(t),n=o(t),i=Ie(t);function s(t,a){var s=i(t,a);t=s[0],a=s[1];var u=g(a),l=o(a),c=o(t),f=k(e*u+n*l*c),h=g(f),d=r(h)>_?f/h:1;return[d*n*g(t),(r(t)>x?d:-d)*(e*l-n*u*c)]}return i.invert=Ie(-t),s.invert=function(t,n){var r=T(t*t+n*n),s=-g(r),u=o(r),l=r*u,c=-n*s,f=r*e,h=T(l*l+c*c-f*f),d=a(l*f+c*h,c*f-l*h),p=(r>x?-1:1)*a(t*s,r*o(d)*u+n*g(d)*s);return i.invert(p,d)},s}function Ie(t){var e=g(t),n=o(t);return function(t,r){var i=o(r),s=o(t)*i,u=g(t)*i,l=g(r);return[a(u,s*n-l*e),O(l*n+s*e)]}}var De=function(){var t=0,n=e.geoProjectionMutator(Ae),r=n(t),i=r.rotate,a=r.stream,o=e.geoCircle();return r.parallel=function(e){if(!arguments.length)return t*S;var i=r.rotate();return n(t=e*P).rotate(i)},r.rotate=function(e){return arguments.length?(i.call(r,[e[0],e[1]-t*S]),o.center([-e[0],-e[1]]),r):(e=i.call(r),e[1]+=t*S,e)},r.stream=function(t){return t=a(t),t.sphere=function(){t.polygonStart();var e,n=.01,r=o.radius(90-n)().coordinates[0],i=r.length-1,a=-1;t.lineStart();while(++a=0)t.point((e=r[a])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},r.scale(79.4187).parallel(45).clipAngle(179.999)},Le=41+48/36+37/3600,Re=Ct(0);function Ne(t){var e=Le*P,n=bt(y,e)[0]-bt(-y,e)[0],i=Re(0,e)[1],a=bt(0,e)[1],o=j-a,s=E/t,l=4/E,h=i+o*o*4/E;function d(d,p){var g,v=r(p);if(v>e){var _=f(t-1,c(0,u((d+y)/s)));d+=y*(t-1)/t-_*s,g=bt(d,v),g[0]=g[0]*E/n-E*(t-1)/(2*t)+_*E/t,g[1]=i+4*(g[1]-a)*o/E,p<0&&(g[1]=-g[1])}else g=Re(d,p);return g[0]*=l,g[1]/=h,g}return d.invert=function(e,d){e/=l,d*=h;var p=r(d);if(p>i){var g=f(t-1,c(0,u((e+y)/s)));e=(e+y*(t-1)/t-g*s)*n/E;var v=bt.invert(e,.25*(p-i)*E/o+a);return v[0]-=y*(t-1)/t-g*s,d<0&&(v[1]=-v[1]),v}return Re.invert(e,d)},d}function Be(t){return{type:"Polygon",coordinates:[n.range(-180,180+t/2,t).map((function(t,e){return[t,1&e?89.999999:Le]})).concat(n.range(180,-180-t/2,-t).map((function(t,e){return[t,1&e?-89.999999:-Le]})))]}}var Fe=function(){var t=4,n=e.geoProjectionMutator(Ne),r=n(t),i=r.stream;return r.lobes=function(e){return arguments.length?n(t=+e):t},r.stream=function(n){var a=r.rotate(),o=i(n),s=(r.rotate([0,0]),i(n));return r.rotate(a),o.sphere=function(){e.geoStream(Be(180/t),s)},o},r.scale(239.75)};function ze(t){var e,n=1+t,i=g(1/n),s=O(i),u=2*T(y/(e=y+4*s*n)),l=.5*u*(n+T(t*(2+t))),c=t*t,f=n*n;function h(i,h){var d,p,v=1-g(h);if(v&&v<2){var _,b=x-h,w=25;do{var M=g(b),j=o(b),E=s+a(M,n-j),S=1+f-2*n*j;b-=_=(b-c*s-n*M+S*E-.5*v*e)/(2*n*M*E)}while(r(_)>m&&--w>0);d=u*T(S),p=i*E/y}else d=u*(t+v),p=i*s/y;return[d*g(p),l-d*o(p)]}return h.invert=function(t,r){var i=t*t+(r-=l)*r,o=(1+f-i/(u*u))/(2*n),h=k(o),d=g(h),p=s+a(d,n-o);return[O(t/T(i))*y/p,O(1-2*(h-c*s-n*d+(1+f-2*n*o)*p)/e)]},h}var qe=function(){var t=1,n=e.geoProjectionMutator(ze),r=n(t);return r.ratio=function(e){return arguments.length?n(t=+e):t},r.scale(167.774).center([0,18.67])},Ge=.7109889596207567,We=.0528035274542;function Ue(t,e){return e>-Ge?(t=J(t,e),t[1]+=We,t):ot(t,e)}Ue.invert=function(t,e){return e>-Ge?J.invert(t,e-We):ot.invert(t,e)};var Ve=function(){return e.geoProjection(Ue).rotate([-20,-55]).scale(164.263).center([0,-5.4036])};function Ye(t,e){return r(e)>Ge?(t=J(t,e),t[1]-=e>0?We:-We,t):ot(t,e)}Ye.invert=function(t,e){return r(e)>Ge?J.invert(t,e+(e>0?We:-We)):ot.invert(t,e)};var He=function(){return e.geoProjection(Ye).scale(152.63)};function Xe(t,e){return r(t[0]-e[0])<_&&r(t[1]-e[1])<_}function Ke(t,e){var n,r,i,a=-1,o=t.length,s=t[0],u=[];while(++a=0;--u)e=t[1][u],r=e[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],l.push(Ke([[o-_,s-_],[o-_,a+_],[r+_,a+_],[r+_,i-_]],30));return{type:"Polygon",coordinates:[n.merge(l)]}}var Ze=function(t,n){var r=$e(n);n=n.map((function(t){return t.map((function(t){return[[t[0][0]*P,t[0][1]*P],[t[1][0]*P,t[1][1]*P],[t[2][0]*P,t[2][1]*P]]}))}));var i=n.map((function(e){return e.map((function(e){var n,r=t(e[0][0],e[0][1])[0],i=t(e[2][0],e[2][1])[0],a=t(e[1][0],e[0][1])[1],o=t(e[1][0],e[1][1])[1];return a>o&&(n=a,a=o,o=n),[[r,a],[i,o]]}))}));function a(e,r){for(var i=r<0?-1:1,a=n[+(r<0)],o=0,s=a.length-1;oa[o][2][0];++o);var u=t(e-a[o][1][0],r);return u[0]+=t(a[o][1][0],i*r>i*a[o][0][1]?a[o][0][1]:r)[0],u}t.invert&&(a.invert=function(e,r){for(var o=i[+(r<0)],s=n[+(r<0)],u=0,l=o.length;u2)return null;e/=2,n/=2;var o=e*e,s=n*n,u=2*n/(1+o+s);return u=h((1+u)/(1-u),1/t),[a(2*e,1-o-s)/t,O((u-1)/(u+1))]},e}var pn=function(){var t=.5,n=e.geoProjectionMutator(dn),r=n(t);return r.spacing=function(e){return arguments.length?n(t=+e):t},r.scale(124.75)},gn=y/M;function vn(t,e){return[t*(1+T(o(e)))/2,e/(o(e/2)*o(t/6))]}vn.invert=function(t,e){var n=r(t),i=r(e),a=_,s=x;i_||r(x)>_)&&--a>0);return a&&[n,i]};var yn=function(){return e.geoProjection(mn).scale(139.98)};function xn(t,e){return[g(t)/o(e),v(e)*o(t)]}xn.invert=function(t,e){var n=t*t,r=e*e,i=r+1,a=t?w*T((i-T(n*n+2*n*(r-1)+i*i))/n+1):1/T(i);return[O(t*a),p(e)*k(a)]};var bn=function(){return e.geoProjection(xn).scale(144.049).clipAngle(89.999)};function wn(t){var e=o(t),n=v(b+t/2);function i(i,a){var o=a-t,s=r(o)<_?i*e:r(s=b+a/2)<_||r(r(s)-x)<_?0:i*o/l(v(s)/n);return[s,o]}return i.invert=function(i,a){var o,s=a+t;return[r(a)<_?i/e:r(o=b+s/2)<_||r(r(o)-x)<_?0:i*l(v(o)/n)/a,s]},i}var Mn=function(){return at(wn).parallel(40).scale(158.837)};function jn(t,e){return[t,1.25*l(v(b+.4*e))]}jn.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*y]};var En=function(){return e.geoProjection(jn).scale(108.318)};function Sn(t){var e=t.length-1;function n(n,r){var i,a=o(r),s=2/(1+a*o(n)),u=s*a*g(n),l=s*g(r),c=e,f=t[c],h=f[0],d=f[1];while(--c>=0)f=t[c],h=f[0]+u*(i=h)-l*d,d=f[1]+u*d+l*i;return h=u*(i=h)-l*d,d=u*d+l*i,[h,d]}return n.invert=function(n,s){var u=20,l=n,c=s;do{var f,h=e,d=t[h],p=d[0],v=d[1],m=0,y=0;while(--h>=0)d=t[h],m=p+l*(f=m)-c*y,y=v+l*y+c*f,p=d[0]+l*(f=p)-c*v,v=d[1]+l*v+c*f;m=p+l*(f=m)-c*y,y=v+l*y+c*f,p=l*(f=p)-c*v-n,v=l*v+c*f-s;var x,b,w=m*m+y*y;l-=x=(p*m+v*y)/w,c-=b=(v*m-p*y)/w}while(r(x)+r(b)>_*_&&--u>0);if(u){var M=T(l*l+c*c),j=2*i(.5*M),E=g(j);return[a(l*E,M*o(j)),M?O(c*E/M):0]}},n}var Pn=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Cn=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],On=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],kn=[[.9245,0],[0,0],[.01943,0]],Tn=[[.721316,0],[0,0],[-.00881625,-.00617325]];function An(){return Nn(Pn,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)}function In(){return Nn(Cn,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Dn(){return Nn(On,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ln(){return Nn(kn,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Rn(){return Nn(Tn,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Nn(t,n){var r=e.geoProjection(Sn(t)).rotate(n).clipAngle(90),i=e.geoRotation(n),a=r.center;return delete r.rotate,r.center=function(t){return arguments.length?a(i(t)):i.invert(a())},r}var Bn=T(6),Fn=T(7);function zn(t,e){var n=O(7*g(e)/(3*Bn));return[Bn*t*(2*o(2*n/3)-1)/Fn,9*g(n/3)/Fn]}zn.invert=function(t,e){var n=3*O(e*Fn/9);return[t*Fn/(Bn*(2*o(2*n/3)-1)),O(3*g(n)*Bn/7)]};var qn=function(){return e.geoProjection(zn).scale(164.859)};function Gn(t,e){for(var n,i=(1+w)*g(e),a=e,s=0;s<25;s++)if(a-=n=(g(a/2)+g(a)-i)/(.5*o(a/2)+o(a)),r(n)<_)break;return[t*(1+2*o(a)/o(a/2))/(3*M),2*T(3)*g(a/2)/T(2+M)]}Gn.invert=function(t,e){var n=e*T(2+M)/(2*T(3)),r=2*O(n);return[3*M*t/(1+2*o(r)/o(r/2)),O((n+g(r))/(1+w))]};var Wn=function(){return e.geoProjection(Gn).scale(188.209)};function Un(t,e){for(var n,i=T(6/(4+y)),a=(1+y/4)*g(e),s=e/2,u=0;u<25;u++)if(s-=n=(s/2+g(s)-a)/(.5+o(s)),r(n)<_)break;return[i*(.5+o(s))*t/1.5,i*s]}Un.invert=function(t,e){var n=T(6/(4+y)),i=e/n;return r(r(i)-x)<_&&(i=i<0?-x:x),[1.5*t/(n*(.5+o(i))),O((i/2+g(i))/(1+y/4))]};var Vn=function(){return e.geoProjection(Un).scale(166.518)};function Yn(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}Yn.invert=function(t,e){var n,i=e,a=25;do{var o=i*i,s=o*o;i-=n=(i*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-e)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(r(n)>_&&--a>0);return[t/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]};var Hn=function(){return e.geoProjection(Yn).scale(175.295)};function Xn(t,e){var n=e*e,r=n*n,i=n*r;return[t*(.84719-.13063*n+i*i*(.05494*n-.04515-.02326*r+.00331*i)),e*(1.01183+r*r*(.01926*n-.02625-.00396*r))]}Xn.invert=function(t,e){var n,i,a,o,s=e,u=25;do{i=s*s,a=i*i,s-=n=(s*(1.01183+a*a*(.01926*i-.02625-.00396*a))-e)/(1.01183+a*a*(.21186*i-.23625+-.05148*a))}while(r(n)>m&&--u>0);return i=s*s,a=i*i,o=i*a,[t/(.84719-.13063*i+o*o*(.05494*i-.04515-.02326*a+.00331*o)),s]};var Kn=function(){return e.geoProjection(Xn).scale(175.295)};function $n(t,e){return[t*(1+o(e))/2,2*(e-v(e/2))]}$n.invert=function(t,e){for(var n=e/2,i=0,a=1/0;i<10&&r(a)>_;++i){var s=o(e/2);e-=a=(e-v(e/2)-n)/(1-.5/(s*s))}return[2*t/(1+o(e)),e]};var Zn=function(){return e.geoProjection($n).scale(152.63)},Qn=1.0148,Jn=.23185,tr=-.14499,er=.02406,nr=Qn,rr=5*Jn,ir=7*tr,ar=9*er,or=1.790857183;function sr(t,e){var n=e*e;return[t,e*(Qn+n*n*(Jn+n*(tr+er*n)))]}sr.invert=function(t,e){e>or?e=or:e<-or&&(e=-or);var n,i=e;do{var a=i*i;i-=n=(i*(Qn+a*a*(Jn+a*(tr+er*a)))-e)/(nr+a*a*(rr+a*(ir+ar*a)))}while(r(n)>_);return[t,i]};var ur=function(){return e.geoProjection(sr).scale(139.319)};function lr(t,e){if(r(e)<_)return[t,0];var n=v(e),i=t*g(e);return[g(i)/n,e+(1-o(i))/n]}lr.invert=function(t,e){if(r(e)<_)return[t,0];var n,i=t*t+e*e,a=.5*e,s=10;do{var u=v(a),l=1/o(a),c=i-2*e*a+a*a;a-=n=(u*c+2*(a-e))/(2+c*l*l+2*(a-e)*u)}while(r(n)>_&&--s>0);return u=v(a),[(r(e)=0;)if(r=e[s],n[0]===r[0]&&n[1]===r[1]){if(a)return[a,n];a=n}}}function br(t){for(var e=t.length,n=[],r=t[e-1],i=0;i0?[-n[0],0]:[180-n[0],180])};var n=jr.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var r=n[t];r&&(r.children||(r.children=[])).push(n[e])})),_r(n[0],(function(t,e){return n[t<-y/2?e<0?6:4:t<0?e<0?2:0:tr^d>r&&n<(h-l)*(r-c)/(d-c)+l&&(i=!i)}return i},Nr=function(t,e){var n,r=e.stream;if(!r)throw new Error("invalid projection");switch(t&&t.type){case"Feature":n=Fr;break;case"FeatureCollection":n=Br;break;default:n=qr;break}return n(t,r)};function Br(t,e){return{type:"FeatureCollection",features:t.features.map((function(t){return Fr(t,e)}))}}function Fr(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:qr(t.geometry,e)}}function zr(t,e){return{type:"GeometryCollection",geometries:t.geometries.map((function(t){return qr(t,e)}))}}function qr(t,n){if(!t)return null;if("GeometryCollection"===t.type)return zr(t,n);var r;switch(t.type){case"Point":r=Ur;break;case"MultiPoint":r=Ur;break;case"LineString":r=Vr;break;case"MultiLineString":r=Vr;break;case"Polygon":r=Yr;break;case"MultiPolygon":r=Yr;break;case"Sphere":r=Yr;break;default:return null}return e.geoStream(t,n(r)),r.result()}var Gr=[],Wr=[],Ur={point:function(t,e){Gr.push([t,e])},result:function(){var t=Gr.length?Gr.length<2?{type:"Point",coordinates:Gr[0]}:{type:"MultiPoint",coordinates:Gr}:null;return Gr=[],t}},Vr={lineStart:Dr,point:function(t,e){Gr.push([t,e])},lineEnd:function(){Gr.length&&(Wr.push(Gr),Gr=[])},result:function(){var t=Wr.length?Wr.length<2?{type:"LineString",coordinates:Wr[0]}:{type:"MultiLineString",coordinates:Wr}:null;return Wr=[],t}},Yr={polygonStart:Dr,lineStart:Dr,point:function(t,e){Gr.push([t,e])},lineEnd:function(){var t=Gr.length;if(t){do{Gr.push(Gr[0].slice())}while(++t<4);Wr.push(Gr),Gr=[]}},polygonEnd:Dr,result:function(){if(!Wr.length)return null;var t=[],e=[];return Wr.forEach((function(n){Lr(n)?t.push([n]):e.push(n)})),e.forEach((function(e){var n=e[0];t.some((function(t){if(Rr(t[0],n))return t.push(e),!0}))||t.push([e])})),Wr=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}},Hr=function(t){var n=t(x,0)[0]-t(-x,0)[0];function i(e,i){var a=r(e)0?e-y:e+y,i),s=(o[0]-o[1])*w,u=(o[0]+o[1])*w;if(a)return[s,u];var l=n*w,c=s>0^u>0?-1:1;return[c*s-p(u)*l,c*u-p(s)*l]}return t.invert&&(i.invert=function(e,i){var a=(e+i)*w,o=(i-e)*w,s=r(a)<.5*n&&r(o)<.5*n;if(!s){var u=n*w,l=a>0^o>0?-1:1,c=-l*e+(o>0?1:-1)*u,f=-l*i+(a>0?1:-1)*u;a=(-c-f)*w,o=(c-f)*w}var h=t.invert(a,o);return s||(h[0]+=a>0?y:-y),h}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)},Xr=function(){return Hr(_e).scale(176.423)},Kr=function(){return Hr(Ee).scale(111.48)},$r=function(t,e){if(!(0<=(e=+e)&&e<=20))throw new Error("invalid digits");function n(t){var n=t.length,r=2,i=new Array(n);i[0]=+t[0].toFixed(e),i[1]=+t[1].toFixed(e);while(r_&&--c>0);var p=n*(f=v(l)),m=v(r(a)0?x:-x)*(h+o*(p-l)/2+o*o*(p-2*h+l)/2)]}Jr.forEach((function(t){t[1]*=1.0144})),ti.invert=function(t,e){var n=e/x,i=90*n,a=f(18,r(i/5)),o=c(0,u(a));do{var s=Jr[o][1],l=Jr[o+1][1],h=Jr[f(19,o+2)][1],d=h-s,p=h-2*l+s,g=2*(r(n)-l)/d,v=p/d,_=g*(1-v*g*(1-2*v*g));if(_>=0||1===o){i=(e>=0?5:-5)*(_+a);var y,b=50;do{a=f(18,r(i)/5),o=u(a),_=a-o,s=Jr[o][1],l=Jr[o+1][1],h=Jr[f(19,o+2)][1],i-=(y=(e>=0?x:-x)*(l+_*(h-s)/2+_*_*(h-2*l+s)/2)-e)*S}while(r(y)>m&&--b>0);break}}while(--o>=0);var w=Jr[o][0],M=Jr[o+1][0],j=Jr[f(19,o+2)][0];return[t/(M+_*(j-w)/2+_*_*(j-2*M+w)/2),i*P]};var ei=function(){return e.geoProjection(ti).scale(152.63)};function ni(t){function e(e,n){var r=o(n),i=(t-1)/(t-r*o(e));return[i*r*g(e),i*g(n)]}return e.invert=function(e,n){var r=e*e+n*n,i=T(r),o=(t-T(1-r*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[a(e*o,i*T(1-o*o)),i?O(n*o/i):0]},e}function ri(t,e){var n=ni(t);if(!e)return n;var r=o(e),i=g(e);function a(e,a){var o=n(e,a),s=o[1],u=s*i/(t-1)+r;return[o[0]*r/u,s/u]}return a.invert=function(e,a){var o=(t-1)/(t-1-a*i);return n.invert(o*e,o*a*r)},a}var ii=function(){var t=2,n=0,r=e.geoProjectionMutator(ri),i=r(t,n);return i.distance=function(e){return arguments.length?r(t=+e,n):t},i.tilt=function(e){return arguments.length?r(t,n=e*P):n*S},i.scale(432.147).clipAngle(k(1/t)*S-1e-6)},ai=1e-4,oi=1e4,si=-180,ui=si+ai,li=180,ci=li-ai,fi=-90,hi=fi+ai,di=90,pi=di-ai;function gi(t){return t.length>0}function vi(t){return Math.floor(t*oi)/oi}function _i(t){return t===fi||t===di?[0,t]:[si,vi(t)]}function mi(t){var e=t[0],n=t[1],r=!1;return e<=ui?(e=si,r=!0):e>=ci&&(e=li,r=!0),n<=hi?(n=fi,r=!0):n>=pi&&(n=di,r=!0),r?[e,n]:t}function yi(t){return t.map(mi)}function xi(t,e,n){for(var r=0,i=t.length;r=ci||c<=hi||c>=pi){a[o]=mi(u);for(var f=o+1;fui&&dhi&&p=s)break;n.push({index:-1,polygon:e,ring:a=a.slice(f-1)}),a[0]=_i(a[0][1]),o=-1,s=a.length}}}}function bi(t){var e,n,r,i,a,o,s=t.length,u={},l={};for(e=0;e0?y-u:u)*S],c=e.geoProjection(t(s)).rotate(l),f=e.geoRotation(l),h=c.center;return delete c.rotate,c.center=function(t){return arguments.length?h(f(t)):f.invert(h())},c.clipAngle(90)};function Ci(t){var n=o(t);function r(t,r){var i=e.geoGnomonicRaw(t,r);return i[0]*=n,i}return r.invert=function(t,r){return e.geoGnomonicRaw.invert(t/n,r)},r}function Oi(){return ki([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ki(t,e){return Pi(Ci,t,e)}function Ti(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var n=-t/2,r=-n,i=t*t,s=v(r),u=.5/g(r);function l(e,a){var s=k(o(a)*o(e-n)),u=k(o(a)*o(e-r)),l=a<0?-1:1;return s*=s,u*=u,[(s-u)/(2*t),l*T(4*i*u-(i-s+u)*(i-s+u))/(2*t)]}return l.invert=function(t,e){var i,l,c=e*e,f=o(T(c+(i=t+n)*i)),h=o(T(c+(i=t+r)*i));return[a(l=f-h,i=(f+h)*s),(e<0?-1:1)*k(T(i*i+l*l)*u)]},l}function Ai(){return Ii([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ii(t,e){return Pi(Ti,t,e)}function Di(t,e){if(r(e)<_)return[t,0];var n=r(e/x),i=O(n);if(r(t)<_||r(r(e)-x)<_)return[0,p(e)*y*v(i/2)];var a=o(i),s=r(y/t-t/y)/2,u=s*s,l=a/(n+a-1),c=l*(2/n-1),f=c*c,h=f+u,d=l-f,g=u+l;return[p(t)*y*(s*d+T(u*d*d-h*(l*l-f)))/h,p(e)*y*(c*g-s*T((u+1)*h-g*g))/h]}Di.invert=function(t,e){if(r(e)<_)return[t,0];if(r(t)<_)return[0,x*g(2*i(e/y))];var n=(t/=y)*t,a=(e/=y)*e,s=n+a,u=s*s,l=-r(e)*(1+s),c=l-2*a+n,f=-2*l+1+2*a+u,h=a/f+(2*c*c*c/(f*f*f)-9*l*c/(f*f))/27,d=(l-c*c/(3*f))/f,v=2*T(-d/3),m=k(3*h/(d*v))/3;return[y*(s-1+T(1+2*(n-a)+u))/(2*t),p(e)*y*(-v*o(m+y/3)-c/(3*f))]};var Li=function(){return e.geoProjection(Di).scale(79.4183)};function Ri(t,e){if(r(e)<_)return[t,0];var n=r(e/x),i=O(n);if(r(t)<_||r(r(e)-x)<_)return[0,p(e)*y*v(i/2)];var a=o(i),s=r(y/t-t/y)/2,u=s*s,l=a*(T(1+u)-s*a)/(1+u*n*n);return[p(t)*y*l,p(e)*y*T(1-l*(2*s+l))]}Ri.invert=function(t,e){if(!t)return[0,x*g(2*i(e/y))];var n=r(t/y),o=(1-n*n-(e/=y)*e)/(2*n),s=o*o,u=T(s+1);return[p(t)*y*(u-o),p(e)*x*g(2*a(T((1-2*o*n)*(o+u)-n),T(u+o+n)))]};var Ni=function(){return e.geoProjection(Ri).scale(79.4183)};function Bi(t,e){if(r(e)<_)return[t,0];var n=e/x,i=O(n);if(r(t)<_||r(r(e)-x)<_)return[0,y*v(i/2)];var a=(y/t-t/y)/2,s=n/(1+o(i));return[y*(p(t)*T(a*a+1-s*s)-a),y*s]}Bi.invert=function(t,e){if(!e)return[t,0];var n=e/y,r=(y*y*(1-n*n)-t*t)/(2*y*t);return[t?y*(p(t)*T(r*r+1)-r):0,x*g(2*i(n))]};var Fi=function(){return e.geoProjection(Bi).scale(79.4183)};function zi(t,e){if(!e)return[t,0];var n=r(e);if(!t||n===x)return[0,e];var i=n/x,a=i*i,o=(8*i-a*(a+2)-5)/(2*a*(i-1)),s=o*o,u=i*o,l=a+s+2*u,c=i+3*o,f=t/x,h=f+1/f,d=p(r(t)-x)*T(h*h-4),g=d*d,v=l*(a+s*g-1)+(1-a)*(a*(c*c+4*s)+12*u*s+4*s*s),_=(d*(l+s-1)+2*T(v))/(4*l+g);return[p(t)*x*_,p(e)*x*T(1+d*r(_)-_*_)]}zi.invert=function(t,e){var n;if(!t||!e)return[t,e];e/=y;var i=p(t)*t/x,a=(i*i-1+4*e*e)/r(i),o=a*a,s=2*e,u=50;do{var l=s*s,c=(8*s-l*(l+2)-5)/(2*l*(s-1)),f=(3*s-l*s-10)/(2*l*s),h=c*c,d=s*c,g=s+c,v=g*g,m=s+3*c,b=v*(l+h*o-1)+(1-l)*(l*(m*m+4*h)+h*(12*d+4*h)),w=-2*g*(4*d*h+(1-4*l+3*l*l)*(1+f)+h*(14*l-6-o+(8*l-8-2*o)*f)+d*(12*l-8+(10*l-10-o)*f)),M=T(b),j=a*(v+h-1)+2*M-i*(4*v+o),E=a*(2*c*f+2*g*(1+f))+w/M-8*g*(a*(-1+h+v)+2*M)*(1+f)/(o+4*v);s-=n=j/E}while(n>_&&--u>0);return[p(t)*(T(a*a+4)+a)*y/4,x*s]};var qi=function(){return e.geoProjection(zi).scale(127.16)},Gi=4*y+3*T(3),Wi=2*T(2*y*T(3)/Gi),Ui=Q(Wi*T(3)/y,Wi,Gi/6),Vi=function(){return e.geoProjection(Ui).scale(176.84)};function Yi(t,e){return[t*T(1-3*e*e/(y*y)),e]}Yi.invert=function(t,e){return[t/T(1-3*e*e/(y*y)),e]};var Hi=function(){return e.geoProjection(Yi).scale(152.63)};function Xi(t,e){var n=.90631*g(e),r=T(1-n*n),i=T(2/(1+r*o(t/=3)));return[2.66723*r*i*g(t),1.24104*n*i]}Xi.invert=function(t,e){var n=t/2.66723,r=e/1.24104,i=T(n*n+r*r),o=2*O(i/2);return[3*a(t*v(o),2.66723*i),i&&O(e*g(o)/(1.24104*.90631*i))]};var Ki=function(){return e.geoProjection(Xi).scale(172.632)};function $i(t,e){var n=o(e),r=o(t)*n,i=1-r,s=o(t=a(g(t)*n,-g(e))),u=g(t);return n=T(1-r*r),[u*n-s*i,-s*n-u*i]}$i.invert=function(t,e){var n=(t*t+e*e)/-2,r=T(-n*(2+n)),i=e*n+t*r,o=t*n-e*r,s=T(o*o+i*i);return[a(r*i,s*(1+n)),s?-O(r*o/s):0]};var Zi=function(){return e.geoProjection($i).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)};function Qi(t,e){var n=F(t,e);return[(n[0]+t/x)/2,(n[1]+e)/2]}Qi.invert=function(t,e){var n=t,i=e,a=25;do{var s,u=o(i),l=g(i),c=g(2*i),f=l*l,h=u*u,d=g(n),p=o(n/2),v=g(n/2),m=v*v,y=1-h*p*p,b=y?k(u*p)*T(s=1/y):s=0,w=.5*(2*b*u*v+n/x)-t,M=.5*(b*l+i)-e,j=.5*s*(h*m+b*u*p*f)+.5/x,E=s*(d*c/4-b*l*v),S=.125*s*(c*v-b*l*h*d),P=.5*s*(f*p+b*m*u)+.5,C=E*S-P*j,O=(M*E-w*P)/C,A=(w*S-M*j)/C;n-=O,i-=A}while((r(O)>_||r(A)>_)&&--a>0);return[n,i]};var Ji=function(){return e.geoProjection(Qi).scale(158.837)};t.geoAiry=B,t.geoAiryRaw=N,t.geoAitoff=z,t.geoAitoffRaw=F,t.geoArmadillo=G,t.geoArmadilloRaw=q,t.geoAugust=U,t.geoAugustRaw=W,t.geoBaker=X,t.geoBakerRaw=H,t.geoBerghaus=$,t.geoBerghausRaw=K,t.geoBoggs=it,t.geoBoggsRaw=rt,t.geoBonne=lt,t.geoBonneRaw=ut,t.geoBottomley=ft,t.geoBottomleyRaw=ct,t.geoBromley=dt,t.geoBromleyRaw=ht,t.geoChamberlin=xt,t.geoChamberlinRaw=_t,t.geoChamberlinAfrica=yt,t.geoCollignon=wt,t.geoCollignonRaw=bt,t.geoCraig=jt,t.geoCraigRaw=Mt,t.geoCraster=Pt,t.geoCrasterRaw=St,t.geoCylindricalEqualArea=Ot,t.geoCylindricalEqualAreaRaw=Ct,t.geoCylindricalStereographic=Tt,t.geoCylindricalStereographicRaw=kt,t.geoEckert1=It,t.geoEckert1Raw=At,t.geoEckert2=Lt,t.geoEckert2Raw=Dt,t.geoEckert3=Nt,t.geoEckert3Raw=Rt,t.geoEckert4=Ft,t.geoEckert4Raw=Bt,t.geoEckert5=qt,t.geoEckert5Raw=zt,t.geoEckert6=Wt,t.geoEckert6Raw=Gt,t.geoEisenlohr=Yt,t.geoEisenlohrRaw=Vt,t.geoFahey=Kt,t.geoFaheyRaw=Xt,t.geoFoucaut=Zt,t.geoFoucautRaw=$t,t.geoGilbert=te,t.geoGingery=ie,t.geoGingeryRaw=ee,t.geoGinzburg4=se,t.geoGinzburg4Raw=oe,t.geoGinzburg5=le,t.geoGinzburg5Raw=ue,t.geoGinzburg6=fe,t.geoGinzburg6Raw=ce,t.geoGinzburg8=de,t.geoGinzburg8Raw=he,t.geoGinzburg9=ge,t.geoGinzburg9Raw=pe,t.geoGringorten=xe,t.geoGringortenRaw=_e,t.geoGuyou=Ce,t.geoGuyouRaw=Ee,t.geoHammer=Te,t.geoHammerRaw=Oe,t.geoHammerRetroazimuthal=De,t.geoHammerRetroazimuthalRaw=Ae,t.geoHealpix=Fe,t.geoHealpixRaw=Ne,t.geoHill=qe,t.geoHillRaw=ze,t.geoHomolosine=He,t.geoHomolosineRaw=Ye,t.geoInterrupt=Ze,t.geoInterruptedBoggs=Je,t.geoInterruptedHomolosine=en,t.geoInterruptedMollweide=rn,t.geoInterruptedMollweideHemispheres=on,t.geoInterruptedSinuMollweide=un,t.geoInterruptedSinusoidal=cn,t.geoKavrayskiy7=hn,t.geoKavrayskiy7Raw=fn,t.geoLagrange=pn,t.geoLagrangeRaw=dn,t.geoLarrivee=_n,t.geoLarriveeRaw=vn,t.geoLaskowski=yn,t.geoLaskowskiRaw=mn,t.geoLittrow=bn,t.geoLittrowRaw=xn,t.geoLoximuthal=Mn,t.geoLoximuthalRaw=wn,t.geoMiller=En,t.geoMillerRaw=jn,t.geoModifiedStereographic=Nn,t.geoModifiedStereographicRaw=Sn,t.geoModifiedStereographicAlaska=An,t.geoModifiedStereographicGs48=In,t.geoModifiedStereographicGs50=Dn,t.geoModifiedStereographicMiller=Ln,t.geoModifiedStereographicLee=Rn,t.geoMollweide=tt,t.geoMollweideRaw=J,t.geoMtFlatPolarParabolic=qn,t.geoMtFlatPolarParabolicRaw=zn,t.geoMtFlatPolarQuartic=Wn,t.geoMtFlatPolarQuarticRaw=Gn,t.geoMtFlatPolarSinusoidal=Vn,t.geoMtFlatPolarSinusoidalRaw=Un,t.geoNaturalEarth=Hn,t.geoNaturalEarthRaw=Yn,t.geoNaturalEarth2=Kn,t.geoNaturalEarth2Raw=Xn,t.geoNellHammer=Zn,t.geoNellHammerRaw=$n,t.geoPatterson=ur,t.geoPattersonRaw=sr,t.geoPolyconic=cr,t.geoPolyconicRaw=lr,t.geoPolyhedral=_r,t.geoPolyhedralButterfly=Er,t.geoPolyhedralCollignon=Cr,t.geoPolyhedralWaterman=Or,t.geoProject=Nr,t.geoGringortenQuincuncial=Xr,t.geoPeirceQuincuncial=Kr,t.geoPierceQuincuncial=Kr,t.geoQuantize=$r,t.geoQuincuncial=Hr,t.geoRectangularPolyconic=Qr,t.geoRectangularPolyconicRaw=Zr,t.geoRobinson=ei,t.geoRobinsonRaw=ti,t.geoSatellite=ii,t.geoSatelliteRaw=ri,t.geoSinuMollweide=Ve,t.geoSinuMollweideRaw=Ue,t.geoSinusoidal=st,t.geoSinusoidalRaw=ot,t.geoStitch=ji,t.geoTimes=Si,t.geoTimesRaw=Ei,t.geoTwoPointAzimuthal=ki,t.geoTwoPointAzimuthalRaw=Ci,t.geoTwoPointAzimuthalUsa=Oi,t.geoTwoPointEquidistant=Ii,t.geoTwoPointEquidistantRaw=Ti,t.geoTwoPointEquidistantUsa=Ai,t.geoVanDerGrinten=Li,t.geoVanDerGrintenRaw=Di,t.geoVanDerGrinten2=Ni,t.geoVanDerGrinten2Raw=Ri,t.geoVanDerGrinten3=Fi,t.geoVanDerGrinten3Raw=Bi,t.geoVanDerGrinten4=qi,t.geoVanDerGrinten4Raw=zi,t.geoWagner4=Vi,t.geoWagner4Raw=Ui,t.geoWagner6=Hi,t.geoWagner6Raw=Yi,t.geoWagner7=Ki,t.geoWagner7Raw=Xi,t.geoWiechel=Zi,t.geoWiechelRaw=$i,t.geoWinkel3=Ji,t.geoWinkel3Raw=Qi,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-geo@1.11.9@d3-geo/dist/d3-geo.js":function(t,e,n){(function(t,r){r(e,n("./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))})(0,(function(t,e){"use strict";function n(){return new r}function r(){this.reset()}r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){a(i,t,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function a(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var o=1e-6,s=1e-12,u=Math.PI,l=u/2,c=u/4,f=2*u,h=180/u,d=u/180,p=Math.abs,g=Math.atan,v=Math.atan2,_=Math.cos,m=Math.ceil,y=Math.exp,x=Math.log,b=Math.pow,w=Math.sin,M=Math.sign||function(t){return t>0?1:t<0?-1:0},j=Math.sqrt,E=Math.tan;function S(t){return t>1?0:t<-1?u:Math.acos(t)}function P(t){return t>1?l:t<-1?-l:Math.asin(t)}function C(t){return(t=w(t/2))*t}function O(){}function k(t,e){t&&A.hasOwnProperty(t.type)&&A[t.type](t,e)}var T={Feature:function(t,e){k(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,r=-1,i=n.length;while(++r=0?1:-1,i=r*n,a=_(e),o=w(e),s=z*o,u=F*a+s*_(i),l=s*r*w(i);q.add(v(l,u)),B=t,F=a,z=o}function X(t){return G.reset(),L(t,W),2*G}function K(t){return[v(t[1],t[0]),P(t[2])]}function $(t){var e=t[0],n=t[1],r=_(n);return[r*_(e),r*w(e),w(n)]}function Z(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Q(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function J(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function tt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function et(t){var e=j(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var nt,rt,it,at,ot,st,ut,lt,ct,ft,ht,dt,pt,gt,vt,_t,mt,yt,xt,bt,wt,Mt,jt,Et,St,Pt,Ct=n(),Ot={point:kt,lineStart:At,lineEnd:It,polygonStart:function(){Ot.point=Dt,Ot.lineStart=Lt,Ot.lineEnd=Rt,Ct.reset(),W.polygonStart()},polygonEnd:function(){W.polygonEnd(),Ot.point=kt,Ot.lineStart=At,Ot.lineEnd=It,q<0?(nt=-(it=180),rt=-(at=90)):Ct>o?at=90:Ct<-o&&(rt=-90),ft[0]=nt,ft[1]=it},sphere:function(){nt=-(it=180),rt=-(at=90)}};function kt(t,e){ct.push(ft=[nt=t,it=t]),eat&&(at=e)}function Tt(t,e){var n=$([t*d,e*d]);if(lt){var r=Q(lt,n),i=[r[1],-r[0],0],a=Q(i,r);et(a),a=K(a);var o,s=t-ot,u=s>0?1:-1,l=a[0]*h*u,c=p(s)>180;c^(u*otat&&(at=o)):(l=(l+360)%360-180,c^(u*otat&&(at=e))),c?tNt(nt,it)&&(it=t):Nt(t,it)>Nt(nt,it)&&(nt=t):it>=nt?(tit&&(it=t)):t>ot?Nt(nt,t)>Nt(nt,it)&&(it=t):Nt(t,it)>Nt(nt,it)&&(nt=t)}else ct.push(ft=[nt=t,it=t]);eat&&(at=e),lt=n,ot=t}function At(){Ot.point=Tt}function It(){ft[0]=nt,ft[1]=it,Ot.point=kt,lt=null}function Dt(t,e){if(lt){var n=t-ot;Ct.add(p(n)>180?n+(n>0?360:-360):n)}else st=t,ut=e;W.point(t,e),Tt(t,e)}function Lt(){W.lineStart()}function Rt(){Dt(st,ut),W.lineEnd(),p(Ct)>o&&(nt=-(it=180)),ft[0]=nt,ft[1]=it,lt=null}function Nt(t,e){return(e-=t)<0?e+360:e}function Bt(t,e){return t[0]-e[0]}function Ft(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eNt(r[0],r[1])&&(r[1]=i[1]),Nt(i[0],r[1])>Nt(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=a.length-1,e=0,r=a[n];e<=n;r=i,++e)i=a[e],(s=Nt(r[1],i[0]))>o&&(o=s,nt=i[0],it=r[1])}return ct=ft=null,nt===1/0||rt===1/0?[[NaN,NaN],[NaN,NaN]]:[[nt,rt],[it,at]]}var qt={sphere:O,point:Gt,lineStart:Ut,lineEnd:Ht,polygonStart:function(){qt.lineStart=Xt,qt.lineEnd=Kt},polygonEnd:function(){qt.lineStart=Ut,qt.lineEnd=Ht}};function Gt(t,e){t*=d,e*=d;var n=_(e);Wt(n*_(t),n*w(t),w(e))}function Wt(t,e,n){++ht,pt+=(t-pt)/ht,gt+=(e-gt)/ht,vt+=(n-vt)/ht}function Ut(){qt.point=Vt}function Vt(t,e){t*=d,e*=d;var n=_(e);Et=n*_(t),St=n*w(t),Pt=w(e),qt.point=Yt,Wt(Et,St,Pt)}function Yt(t,e){t*=d,e*=d;var n=_(e),r=n*_(t),i=n*w(t),a=w(e),o=v(j((o=St*a-Pt*i)*o+(o=Pt*r-Et*a)*o+(o=Et*i-St*r)*o),Et*r+St*i+Pt*a);dt+=o,_t+=o*(Et+(Et=r)),mt+=o*(St+(St=i)),yt+=o*(Pt+(Pt=a)),Wt(Et,St,Pt)}function Ht(){qt.point=Gt}function Xt(){qt.point=$t}function Kt(){Zt(Mt,jt),qt.point=Gt}function $t(t,e){Mt=t,jt=e,t*=d,e*=d,qt.point=Zt;var n=_(e);Et=n*_(t),St=n*w(t),Pt=w(e),Wt(Et,St,Pt)}function Zt(t,e){t*=d,e*=d;var n=_(e),r=n*_(t),i=n*w(t),a=w(e),o=St*a-Pt*i,s=Pt*r-Et*a,u=Et*i-St*r,l=j(o*o+s*s+u*u),c=P(l),f=l&&-c/l;xt+=f*o,bt+=f*s,wt+=f*u,dt+=c,_t+=c*(Et+(Et=r)),mt+=c*(St+(St=i)),yt+=c*(Pt+(Pt=a)),Wt(Et,St,Pt)}function Qt(t){ht=dt=pt=gt=vt=_t=mt=yt=xt=bt=wt=0,L(t,qt);var e=xt,n=bt,r=wt,i=e*e+n*n+r*r;return iu?t+Math.round(-t/f)*f:t,e]}function ne(t,e,n){return(t%=f)?e||n?te(ie(t),ae(e,n)):ie(t):e||n?ae(e,n):ee}function re(t){return function(e,n){return e+=t,[e>u?e-f:e<-u?e+f:e,n]}}function ie(t){var e=re(t);return e.invert=re(-t),e}function ae(t,e){var n=_(t),r=w(t),i=_(e),a=w(e);function o(t,e){var o=_(e),s=_(t)*o,u=w(t)*o,l=w(e),c=l*n+s*r;return[v(u*i-c*a,s*n-l*r),P(c*i+u*a)]}return o.invert=function(t,e){var o=_(e),s=_(t)*o,u=w(t)*o,l=w(e),c=l*i-u*a;return[v(u*i+l*a,s*n+c*r),P(c*n-s*r)]},o}function oe(t){function e(e){return e=t(e[0]*d,e[1]*d),e[0]*=h,e[1]*=h,e}return t=ne(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return e=t.invert(e[0]*d,e[1]*d),e[0]*=h,e[1]*=h,e},e}function se(t,e,n,r,i,a){if(n){var o=_(e),s=w(e),u=r*n;null==i?(i=e+r*f,a=e-u/2):(i=ue(o,i),a=ue(o,a),(r>0?ia)&&(i+=r*f));for(var l,c=i;r>0?c>a:c1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function fe(t,e){return p(t[0]-e[0])=0;--a)i.point((c=l[a])[0],c[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,l=h.z,d=!d}while(!h.v);i.lineEnd()}}}function pe(t){if(e=t.length){var e,n,r=0,i=t[0];while(++r=0?1:-1,D=I*A,L=D>u,R=M*k;if(ge.add(v(R*I*w(D),j*T+R*_(D))),s+=L?A+I*f:A,L^x>=n^C>=n){var N=Q($(y),$(S));et(N);var B=Q(a,N);et(B);var F=(L^A>=0?-1:1)*P(B[2]);(r>F||r===F&&(N[0]||N[1]))&&(h+=L^A>=0?1:-1)}}return(s<-o||s0){for(h||(a.polygonStart(),h=!0),a.lineStart(),t=0;t1&&2&i&&l.push(l.pop().concat(l.shift())),s.push(l.filter(ye))}return d}}function ye(t){return t.length>1}function xe(t,e){return((t=t.x)[0]<0?t[1]-l-o:l-t[1])-((e=e.x)[0]<0?e[1]-l-o:l-e[1])}var be=me((function(){return!0}),we,je,[-u,-l]);function we(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,s){var c=a>0?u:-u,f=p(a-n);p(f-u)0?l:-l),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(a,r),e=0):i!==c&&f>=u&&(p(n-i)o?g((w(e)*(a=_(r))*w(n)-w(r)*(i=_(e))*w(t))/(i*a*s)):(e+r)/2}function je(t,e,n,r){var i;if(null==t)i=n*l,r.point(-u,i),r.point(0,i),r.point(u,i),r.point(u,0),r.point(u,-i),r.point(0,-i),r.point(-u,-i),r.point(-u,0),r.point(-u,i);else if(p(t[0]-e[0])>o){var a=t[0]0,i=p(e)>o;function a(e,r,i,a){se(a,t,n,i,e,r)}function s(t,n){return _(t)*_(n)>e}function l(t){var e,n,a,l,h;return{lineStart:function(){l=a=!1,h=1},point:function(d,p){var g,v=[d,p],_=s(d,p),m=r?_?0:f(d,p):_?f(d+(d<0?u:-u),p):0;if(!e&&(l=a=_)&&t.lineStart(),_!==a&&(g=c(e,v),(!g||fe(e,g)||fe(v,g))&&(v[0]+=o,v[1]+=o,_=s(v[0],v[1]))),_!==a)h=0,_?(t.lineStart(),g=c(v,e),t.point(g[0],g[1])):(g=c(e,v),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(i&&e&&r^_){var y;m&n||!(y=c(v,e,!0))||(h=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!_||e&&fe(e,v)||t.point(v[0],v[1]),e=v,a=_,n=m},lineEnd:function(){a&&t.lineEnd(),e=null},clean:function(){return h|(l&&a)<<1}}}function c(t,n,r){var i=$(t),a=$(n),s=[1,0,0],l=Q(i,a),c=Z(l,l),f=l[0],h=c-f*f;if(!h)return!r&&t;var d=e*c/h,g=-e*f/h,v=Q(s,l),_=tt(s,d),m=tt(l,g);J(_,m);var y=v,x=Z(_,y),b=Z(y,y),w=x*x-b*(Z(_,_)-1);if(!(w<0)){var M=j(w),E=tt(y,(-x-M)/b);if(J(E,_),E=K(E),!r)return E;var S,P=t[0],C=n[0],O=t[1],k=n[1];C0^E[1]<(p(E[0]-P)u^(P<=E[0]&&E[0]<=C)){var D=tt(y,(-x+M)/b);return J(D,_),[E,K(D)]}}}function f(e,n){var i=r?t:u-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return me(s,l,a,r?[0,-t]:[-u,t-u])}function Se(t,e,n,r,i,a){var o,s=t[0],u=t[1],l=e[0],c=e[1],f=0,h=1,d=l-s,p=c-u;if(o=n-s,d||!(o>0)){if(o/=d,d<0){if(o0){if(o>h)return;o>f&&(f=o)}if(o=i-s,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>f&&(f=o)}else if(d>0){if(o0)){if(o/=p,p<0){if(o0){if(o>h)return;o>f&&(f=o)}if(o=a-u,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>f&&(f=o)}else if(p>0){if(o0&&(t[0]=s+f*d,t[1]=u+f*p),h<1&&(e[0]=s+h*d,e[1]=u+h*p),!0}}}}}var Pe=1e9,Ce=-Pe;function Oe(t,n,r,i){function a(e,a){return t<=e&&e<=r&&n<=a&&a<=i}function s(e,a,o,s){var l=0,f=0;if(null==e||(l=u(e,o))!==(f=u(a,o))||c(e,a)<0^o>0)do{s.point(0===l||3===l?t:r,l>1?i:n)}while((l=(l+o+4)%4)!==f);else s.point(a[0],a[1])}function u(e,i){return p(e[0]-t)0?0:3:p(e[0]-r)0?2:1:p(e[1]-n)0?1:0:i>0?3:2}function l(t,e){return c(t.x,e.x)}function c(t,e){var n=u(t,1),r=u(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var u,c,f,h,d,p,g,v,_,m,y,x=o,b=ce(),w={point:M,lineStart:P,lineEnd:C,polygonStart:E,polygonEnd:S};function M(t,e){a(t,e)&&x.point(t,e)}function j(){for(var e=0,n=0,r=c.length;ni&&(h-a)*(i-o)>(d-o)*(t-a)&&++e:d<=i&&(h-a)*(i-o)<(d-o)*(t-a)&&--e;return e}function E(){x=b,u=[],c=[],y=!0}function S(){var t=j(),n=y&&t,r=(u=e.merge(u)).length;(n||r)&&(o.polygonStart(),n&&(o.lineStart(),s(null,null,1,o),o.lineEnd()),r&&de(u,l,t,s,o),o.polygonEnd()),x=o,u=c=f=null}function P(){w.point=O,c&&c.push(f=[]),m=!0,_=!1,g=v=NaN}function C(){u&&(O(h,d),p&&_&&b.rejoin(),u.push(b.result())),w.point=M,_&&x.lineEnd()}function O(e,o){var s=a(e,o);if(c&&f.push([e,o]),m)h=e,d=o,p=s,m=!1,s&&(x.lineStart(),x.point(e,o));else if(s&&_)x.point(e,o);else{var u=[g=Math.max(Ce,Math.min(Pe,g)),v=Math.max(Ce,Math.min(Pe,v))],l=[e=Math.max(Ce,Math.min(Pe,e)),o=Math.max(Ce,Math.min(Pe,o))];Se(u,l,t,n,r,i)?(_||(x.lineStart(),x.point(u[0],u[1])),x.point(l[0],l[1]),s||x.lineEnd(),y=!1):s&&(x.lineStart(),x.point(e,o),y=!1)}g=e,v=o,_=s}return w}}function ke(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=Oe(r,i,a,o)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,n):[[r,i],[a,o]]}}}var Te,Ae,Ie,De=n(),Le={sphere:O,point:O,lineStart:Re,lineEnd:O,polygonStart:O,polygonEnd:O};function Re(){Le.point=Be,Le.lineEnd=Ne}function Ne(){Le.point=Le.lineEnd=O}function Be(t,e){t*=d,e*=d,Te=t,Ae=w(e),Ie=_(e),Le.point=Fe}function Fe(t,e){t*=d,e*=d;var n=w(e),r=_(e),i=p(t-Te),a=_(i),o=w(i),s=r*o,u=Ie*n-Ae*r*a,l=Ae*n+Ie*r*a;De.add(v(j(s*s+u*u),l)),Te=t,Ae=n,Ie=r}function ze(t){return De.reset(),L(t,Le),+De}var qe=[null,null],Ge={type:"LineString",coordinates:qe};function We(t,e){return qe[0]=t,qe[1]=e,ze(Ge)}var Ue={Feature:function(t,e){return Ye(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,r=-1,i=n.length;while(++r0&&(i=We(t[a],t[a-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))o})).map(c)).concat(e.range(m(s/v)*v,a,v).filter((function(t){return p(t%y)>o})).map(f))}return b.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},b.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(d(u).slice(1),h(r).reverse().slice(1),d(l).reverse().slice(1))]}},b.extent=function(t){return arguments.length?b.extentMajor(t).extentMinor(t):b.extentMinor()},b.extentMajor=function(t){return arguments.length?(i=+t[0][0],r=+t[1][0],l=+t[0][1],u=+t[1][1],i>r&&(t=i,i=r,r=t),l>u&&(t=l,l=u,u=t),b.precision(x)):[[i,l],[r,u]]},b.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],n>t&&(e=n,n=t,t=e),s>a&&(e=s,s=a,a=e),b.precision(x)):[[n,s],[t,a]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(_=+t[0],y=+t[1],b):[_,y]},b.stepMinor=function(t){return arguments.length?(g=+t[0],v=+t[1],b):[g,v]},b.precision=function(e){return arguments.length?(x=+e,c=Je(s,a,90),f=tn(n,t,x),h=Je(l,u,90),d=tn(i,r,x),b):x},b.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function nn(){return en()()}function rn(t,e){var n=t[0]*d,r=t[1]*d,i=e[0]*d,a=e[1]*d,o=_(r),s=w(r),u=_(a),l=w(a),c=o*_(n),f=o*w(n),p=u*_(i),g=u*w(i),m=2*P(j(C(a-r)+o*u*C(i-n))),y=w(m),x=m?function(t){var e=w(t*=m)/y,n=w(m-t)/y,r=n*c+e*p,i=n*f+e*g,a=n*s+e*l;return[v(i,r)*h,v(a,j(r*r+i*i))*h]}:function(){return[n*h,r*h]};return x.distance=m,x}function an(t){return t}var on,sn,un,ln,cn=n(),fn=n(),hn={point:O,lineStart:O,lineEnd:O,polygonStart:function(){hn.lineStart=dn,hn.lineEnd=vn},polygonEnd:function(){hn.lineStart=hn.lineEnd=hn.point=O,cn.add(p(fn)),fn.reset()},result:function(){var t=cn/2;return cn.reset(),t}};function dn(){hn.point=pn}function pn(t,e){hn.point=gn,on=un=t,sn=ln=e}function gn(t,e){fn.add(ln*t-un*e),un=t,ln=e}function vn(){gn(on,sn)}var _n=1/0,mn=_n,yn=-_n,xn=yn,bn={point:wn,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var t=[[_n,mn],[yn,xn]];return yn=xn=-(mn=_n=1/0),t}};function wn(t,e){t<_n&&(_n=t),t>yn&&(yn=t),exn&&(xn=e)}var Mn,jn,En,Sn,Pn=0,Cn=0,On=0,kn=0,Tn=0,An=0,In=0,Dn=0,Ln=0,Rn={point:Nn,lineStart:Bn,lineEnd:qn,polygonStart:function(){Rn.lineStart=Gn,Rn.lineEnd=Wn},polygonEnd:function(){Rn.point=Nn,Rn.lineStart=Bn,Rn.lineEnd=qn},result:function(){var t=Ln?[In/Ln,Dn/Ln]:An?[kn/An,Tn/An]:On?[Pn/On,Cn/On]:[NaN,NaN];return Pn=Cn=On=kn=Tn=An=In=Dn=Ln=0,t}};function Nn(t,e){Pn+=t,Cn+=e,++On}function Bn(){Rn.point=Fn}function Fn(t,e){Rn.point=zn,Nn(En=t,Sn=e)}function zn(t,e){var n=t-En,r=e-Sn,i=j(n*n+r*r);kn+=i*(En+t)/2,Tn+=i*(Sn+e)/2,An+=i,Nn(En=t,Sn=e)}function qn(){Rn.point=Nn}function Gn(){Rn.point=Un}function Wn(){Vn(Mn,jn)}function Un(t,e){Rn.point=Vn,Nn(Mn=En=t,jn=Sn=e)}function Vn(t,e){var n=t-En,r=e-Sn,i=j(n*n+r*r);kn+=i*(En+t)/2,Tn+=i*(Sn+e)/2,An+=i,i=Sn*t-En*e,In+=i*(En+t),Dn+=i*(Sn+e),Ln+=3*i,Nn(En=t,Sn=e)}function Yn(t){this._context=t}Yn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,f);break}},result:O};var Hn,Xn,Kn,$n,Zn,Qn=n(),Jn={point:O,lineStart:function(){Jn.point=tr},lineEnd:function(){Hn&&er(Xn,Kn),Jn.point=O},polygonStart:function(){Hn=!0},polygonEnd:function(){Hn=null},result:function(){var t=+Qn;return Qn.reset(),t}};function tr(t,e){Jn.point=er,Xn=$n=t,Kn=Zn=e}function er(t,e){$n-=t,Zn-=e,Qn.add(j($n*$n+Zn*Zn)),$n=t,Zn=e}function nr(){this._string=[]}function rr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ir(t,e){var n,r,i=4.5;function a(t){return t&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),L(t,n(r))),r.result()}return a.area=function(t){return L(t,n(hn)),hn.result()},a.measure=function(t){return L(t,n(Jn)),Jn.result()},a.bounds=function(t){return L(t,n(bn)),bn.result()},a.centroid=function(t){return L(t,n(Rn)),Rn.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,an):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new nr):new Yn(e=t),"function"!==typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"===typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function ar(t){return{stream:or(t)}}function or(t){return function(e){var n=new sr;for(var r in t)n[r]=t[r];return n.stream=e,n}}function sr(){}function ur(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),L(n,t.stream(bn)),e(bn.result()),null!=r&&t.clipExtent(r),t}function lr(t,e,n){return ur(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,s])}),n)}function cr(t,e,n){return lr(t,[[0,0],e],n)}function fr(t,e,n){return ur(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function hr(t,e,n){return ur(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}nr.prototype={_radius:4.5,_circle:rr(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=rr(this._radius)),this._string.push("M",t,",",e,this._circle);break}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},sr.prototype={constructor:sr,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var dr=16,pr=_(30*d);function gr(t,e){return+e?_r(t,e):vr(t)}function vr(t){return or({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function _r(t,e){function n(r,i,a,s,u,l,c,f,h,d,g,_,m,y){var x=c-r,b=f-i,w=x*x+b*b;if(w>4*e&&m--){var M=s+d,E=u+g,S=l+_,C=j(M*M+E*E+S*S),O=P(S/=C),k=p(p(S)-1)e||p((x*D+b*L)/w-.5)>.3||s*d+u*g+l*_2?t[2]%360*d:0,k()):[m*h,y*h,x*h]},C.angle=function(t){return arguments.length?(b=t%360*d,k()):b*h},C.precision=function(t){return arguments.length?(o=gr(s,P=t*t),T()):j(P)},C.fitExtent=function(t,e){return lr(C,t,e)},C.fitSize=function(t,e){return cr(C,t,e)},C.fitWidth=function(t,e){return fr(C,t,e)},C.fitHeight=function(t,e){return hr(C,t,e)},function(){return e=t.apply(this,arguments),C.invert=e.invert&&O,k()}}function jr(t){var e=0,n=u/3,r=Mr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*d,n=t[1]*d):[e*h,n*h]},i}function Er(t){var e=_(t);function n(t,n){return[t*e,w(n)/e]}return n.invert=function(t,n){return[t/e,P(n*e)]},n}function Sr(t,e){var n=w(t),r=(n+w(e))/2;if(p(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(t)},f.stream=function(n){return t&&e===n?t:t=Or([s.stream(e=n),u.stream(n),l.stream(n)])},f.precision=function(t){return arguments.length?(s.precision(t),u.precision(t),l.precision(t),h()):s.precision()},f.scale=function(t){return arguments.length?(s.scale(t),u.scale(.35*t),l.scale(t),f.translate(s.translate())):s.scale()},f.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),a=+t[0],f=+t[1];return n=s.translate(t).clipExtent([[a-.455*e,f-.238*e],[a+.455*e,f+.238*e]]).stream(c),r=u.translate([a-.307*e,f+.201*e]).clipExtent([[a-.425*e+o,f+.12*e+o],[a-.214*e-o,f+.234*e-o]]).stream(c),i=l.translate([a-.205*e,f+.212*e]).clipExtent([[a-.214*e+o,f+.166*e+o],[a-.115*e-o,f+.234*e-o]]).stream(c),h()},f.fitExtent=function(t,e){return lr(f,t,e)},f.fitSize=function(t,e){return cr(f,t,e)},f.fitWidth=function(t,e){return fr(f,t,e)},f.fitHeight=function(t,e){return hr(f,t,e)},f.scale(1070)}function Tr(t){return function(e,n){var r=_(e),i=_(n),a=t(r*i);return[a*i*w(e),a*w(n)]}}function Ar(t){return function(e,n){var r=j(e*e+n*n),i=t(r),a=w(i),o=_(i);return[v(e*a,r*o),P(r&&n*a/r)]}}var Ir=Tr((function(t){return j(2/(1+t))}));function Dr(){return wr(Ir).scale(124.75).clipAngle(179.999)}Ir.invert=Ar((function(t){return 2*P(t/2)}));var Lr=Tr((function(t){return(t=S(t))&&t/w(t)}));function Rr(){return wr(Lr).scale(79.4188).clipAngle(179.999)}function Nr(t,e){return[t,x(E((l+e)/2))]}function Br(){return Fr(Nr).scale(961/f)}function Fr(t){var e,n,r,i=wr(t),a=i.center,o=i.scale,s=i.translate,l=i.clipExtent,c=null;function f(){var a=u*o(),s=i(oe(i.rotate()).invert([0,0]));return l(null==c?[[s[0]-a,s[1]-a],[s[0]+a,s[1]+a]]:t===Nr?[[Math.max(s[0]-a,c),e],[Math.min(s[0]+a,n),r]]:[[c,Math.max(s[1]-a,e)],[n,Math.min(s[1]+a,r)]])}return i.scale=function(t){return arguments.length?(o(t),f()):o()},i.translate=function(t){return arguments.length?(s(t),f()):s()},i.center=function(t){return arguments.length?(a(t),f()):a()},i.clipExtent=function(t){return arguments.length?(null==t?c=e=n=r=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),f()):null==c?null:[[c,e],[n,r]]},f()}function zr(t){return E((l+t)/2)}function qr(t,e){var n=_(t),r=t===e?w(t):x(n/_(e))/x(zr(e)/zr(t)),i=n*b(zr(t),r)/r;if(!r)return Nr;function a(t,e){i>0?e<-l+o&&(e=-l+o):e>l-o&&(e=l-o);var n=i/b(zr(e),r);return[n*w(r*t),i-n*_(r*t)]}return a.invert=function(t,e){var n=i-e,a=M(r)*j(t*t+n*n);return[v(t,p(n))/r*M(n),2*g(b(i/a,1/r))-l]},a}function Gr(){return jr(qr).scale(109.5).parallels([30,30])}function Wr(t,e){return[t,e]}function Ur(){return wr(Wr).scale(152.63)}function Vr(t,e){var n=_(t),r=t===e?w(t):(n-_(e))/(e-t),i=n/r+t;if(p(r)2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90]).scale(159.155)}Jr.invert=function(t,e){for(var n,r,i,a=e,o=a*a,u=o*o*o,l=0;lo&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},si.invert=Ar(P),li.invert=Ar((function(t){return 2*g(t)})),fi.invert=function(t,e){return[-e,2*g(y(t))-l]},t.geoAlbers=Cr,t.geoAlbersUsa=kr,t.geoArea=X,t.geoAzimuthalEqualArea=Dr,t.geoAzimuthalEqualAreaRaw=Ir,t.geoAzimuthalEquidistant=Rr,t.geoAzimuthalEquidistantRaw=Lr,t.geoBounds=zt,t.geoCentroid=Qt,t.geoCircle=le,t.geoClipAntimeridian=be,t.geoClipCircle=Ee,t.geoClipExtent=ke,t.geoClipRectangle=Oe,t.geoConicConformal=Gr,t.geoConicConformalRaw=qr,t.geoConicEqualArea=Pr,t.geoConicEqualAreaRaw=Sr,t.geoConicEquidistant=Yr,t.geoConicEquidistantRaw=Vr,t.geoContains=Qe,t.geoDistance=We,t.geoEqualEarth=ti,t.geoEqualEarthRaw=Jr,t.geoEquirectangular=Ur,t.geoEquirectangularRaw=Wr,t.geoGnomonic=ni,t.geoGnomonicRaw=ei,t.geoGraticule=en,t.geoGraticule10=nn,t.geoIdentity=ii,t.geoInterpolate=rn,t.geoLength=ze,t.geoMercator=Br,t.geoMercatorRaw=Nr,t.geoNaturalEarth1=oi,t.geoNaturalEarth1Raw=ai,t.geoOrthographic=ui,t.geoOrthographicRaw=si,t.geoPath=ir,t.geoProjection=wr,t.geoProjectionMutator=Mr,t.geoRotation=oe,t.geoStereographic=ci,t.geoStereographicRaw=li,t.geoStream=L,t.geoTransform=ar,t.geoTransverseMercator=hi,t.geoTransverseMercatorRaw=fi,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js":function(t,e,n){(function(t,r){r(e,n("./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))})(0,(function(t,e){"use strict";var n=function(){return new r};function r(){this.reset()}r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){a(i,t,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function a(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var o=1e-6,s=1e-12,u=Math.PI,l=u/2,c=u/4,f=2*u,h=180/u,d=u/180,p=Math.abs,g=Math.atan,v=Math.atan2,_=Math.cos,m=Math.ceil,y=Math.exp,x=Math.log,b=Math.pow,w=Math.sin,M=Math.sign||function(t){return t>0?1:t<0?-1:0},j=Math.sqrt,E=Math.tan;function S(t){return t>1?0:t<-1?u:Math.acos(t)}function P(t){return t>1?l:t<-1?-l:Math.asin(t)}function C(t){return(t=w(t/2))*t}function O(){}function k(t,e){t&&A.hasOwnProperty(t.type)&&A[t.type](t,e)}var T={Feature:function(t,e){k(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,r=-1,i=n.length;while(++r=0?1:-1,i=r*n,a=_(e),o=w(e),s=F*o,u=B*a+s*_(i),l=s*r*w(i);q.add(v(l,u)),N=t,B=a,F=o}var X,K,$,Z,Q,J,tt,et,nt=function(t){return G.reset(),z(t,W),2*G};function rt(t){return[v(t[1],t[0]),P(t[2])]}function it(t){var e=t[0],n=t[1],r=_(n);return[r*_(e),r*w(e),w(n)]}function at(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ot(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function st(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ut(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function lt(t){var e=j(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ct,ft,ht=n(),dt={point:pt,lineStart:vt,lineEnd:_t,polygonStart:function(){dt.point=mt,dt.lineStart=yt,dt.lineEnd=xt,ht.reset(),W.polygonStart()},polygonEnd:function(){W.polygonEnd(),dt.point=pt,dt.lineStart=vt,dt.lineEnd=_t,q<0?(X=-($=180),K=-(Z=90)):ht>o?Z=90:ht<-o&&(K=-90),ft[0]=X,ft[1]=$}};function pt(t,e){ct.push(ft=[X=t,$=t]),eZ&&(Z=e)}function gt(t,e){var n=it([t*d,e*d]);if(et){var r=ot(et,n),i=[r[1],-r[0],0],a=ot(i,r);lt(a),a=rt(a);var o,s=t-Q,u=s>0?1:-1,l=a[0]*h*u,c=p(s)>180;c^(u*QZ&&(Z=o)):(l=(l+360)%360-180,c^(u*QZ&&(Z=e))),c?tbt(X,$)&&($=t):bt(t,$)>bt(X,$)&&(X=t):$>=X?(t$&&($=t)):t>Q?bt(X,t)>bt(X,$)&&($=t):bt(t,$)>bt(X,$)&&(X=t)}else ct.push(ft=[X=t,$=t]);eZ&&(Z=e),et=n,Q=t}function vt(){dt.point=gt}function _t(){ft[0]=X,ft[1]=$,dt.point=pt,et=null}function mt(t,e){if(et){var n=t-Q;ht.add(p(n)>180?n+(n>0?360:-360):n)}else J=t,tt=e;W.point(t,e),gt(t,e)}function yt(){W.lineStart()}function xt(){mt(J,tt),W.lineEnd(),p(ht)>o&&(X=-($=180)),ft[0]=X,ft[1]=$,et=null}function bt(t,e){return(e-=t)<0?e+360:e}function wt(t,e){return t[0]-e[0]}function Mt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:ebt(r[0],r[1])&&(r[1]=i[1]),bt(i[0],r[1])>bt(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=a.length-1,e=0,r=a[n];e<=n;r=i,++e)i=a[e],(s=bt(r[1],i[0]))>o&&(o=s,X=i[0],$=r[1])}return ct=ft=null,X===1/0||K===1/0?[[NaN,NaN],[NaN,NaN]]:[[X,K],[$,Z]]},qt={sphere:O,point:Gt,lineStart:Ut,lineEnd:Ht,polygonStart:function(){qt.lineStart=Xt,qt.lineEnd=Kt},polygonEnd:function(){qt.lineStart=Ut,qt.lineEnd=Ht}};function Gt(t,e){t*=d,e*=d;var n=_(e);Wt(n*_(t),n*w(t),w(e))}function Wt(t,e,n){++jt,St+=(t-St)/jt,Pt+=(e-Pt)/jt,Ct+=(n-Ct)/jt}function Ut(){qt.point=Vt}function Vt(t,e){t*=d,e*=d;var n=_(e);Nt=n*_(t),Bt=n*w(t),Ft=w(e),qt.point=Yt,Wt(Nt,Bt,Ft)}function Yt(t,e){t*=d,e*=d;var n=_(e),r=n*_(t),i=n*w(t),a=w(e),o=v(j((o=Bt*a-Ft*i)*o+(o=Ft*r-Nt*a)*o+(o=Nt*i-Bt*r)*o),Nt*r+Bt*i+Ft*a);Et+=o,Ot+=o*(Nt+(Nt=r)),kt+=o*(Bt+(Bt=i)),Tt+=o*(Ft+(Ft=a)),Wt(Nt,Bt,Ft)}function Ht(){qt.point=Gt}function Xt(){qt.point=$t}function Kt(){Zt(Lt,Rt),qt.point=Gt}function $t(t,e){Lt=t,Rt=e,t*=d,e*=d,qt.point=Zt;var n=_(e);Nt=n*_(t),Bt=n*w(t),Ft=w(e),Wt(Nt,Bt,Ft)}function Zt(t,e){t*=d,e*=d;var n=_(e),r=n*_(t),i=n*w(t),a=w(e),o=Bt*a-Ft*i,s=Ft*r-Nt*a,u=Nt*i-Bt*r,l=j(o*o+s*s+u*u),c=P(l),f=l&&-c/l;At+=f*o,It+=f*s,Dt+=f*u,Et+=c,Ot+=c*(Nt+(Nt=r)),kt+=c*(Bt+(Bt=i)),Tt+=c*(Ft+(Ft=a)),Wt(Nt,Bt,Ft)}var Qt=function(t){jt=Et=St=Pt=Ct=Ot=kt=Tt=At=It=Dt=0,z(t,qt);var e=At,n=It,r=Dt,i=e*e+n*n+r*r;return iu?t-f:t<-u?t+f:t,e]}function ne(t,e,n){return(t%=f)?e||n?te(ie(t),ae(e,n)):ie(t):e||n?ae(e,n):ee}function re(t){return function(e,n){return e+=t,[e>u?e-f:e<-u?e+f:e,n]}}function ie(t){var e=re(t);return e.invert=re(-t),e}function ae(t,e){var n=_(t),r=w(t),i=_(e),a=w(e);function o(t,e){var o=_(e),s=_(t)*o,u=w(t)*o,l=w(e),c=l*n+s*r;return[v(u*i-c*a,s*n-l*r),P(c*i+u*a)]}return o.invert=function(t,e){var o=_(e),s=_(t)*o,u=w(t)*o,l=w(e),c=l*i-u*a;return[v(u*i+l*a,s*n+c*r),P(c*n-s*r)]},o}ee.invert=ee;var oe=function(t){function e(e){return e=t(e[0]*d,e[1]*d),e[0]*=h,e[1]*=h,e}return t=ne(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return e=t.invert(e[0]*d,e[1]*d),e[0]*=h,e[1]*=h,e},e};function se(t,e,n,r,i,a){if(n){var o=_(e),s=w(e),u=r*n;null==i?(i=e+r*f,a=e-u/2):(i=ue(o,i),a=ue(o,a),(r>0?ia)&&(i+=r*f));for(var l,c=i;r>0?c>a:c1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},fe=function(t,e,n,r,i,a){var o,s=t[0],u=t[1],l=e[0],c=e[1],f=0,h=1,d=l-s,p=c-u;if(o=n-s,d||!(o>0)){if(o/=d,d<0){if(o0){if(o>h)return;o>f&&(f=o)}if(o=i-s,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>f&&(f=o)}else if(d>0){if(o0)){if(o/=p,p<0){if(o0){if(o>h)return;o>f&&(f=o)}if(o=a-u,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>f&&(f=o)}else if(p>0){if(o0&&(t[0]=s+f*d,t[1]=u+f*p),h<1&&(e[0]=s+h*d,e[1]=u+h*p),!0}}}}},he=function(t,e){return p(t[0]-e[0])=0;--a)i.point((c=l[a])[0],c[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,l=h.z,d=!d}while(!h.v);i.lineEnd()}}};function ge(t){if(e=t.length){var e,n,r=0,i=t[0];while(++r0)do{s.point(0===l||3===l?t:r,l>1?i:n)}while((l=(l+o+4)%4)!==f);else s.point(a[0],a[1])}function u(e,i){return p(e[0]-t)0?0:3:p(e[0]-r)0?2:1:p(e[1]-n)0?1:0:i>0?3:2}function l(t,e){return c(t.x,e.x)}function c(t,e){var n=u(t,1),r=u(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var u,c,f,h,d,p,g,v,_,m,y,x=o,b=ce(),w={point:M,lineStart:P,lineEnd:C,polygonStart:E,polygonEnd:S};function M(t,e){a(t,e)&&x.point(t,e)}function j(){for(var e=0,n=0,r=c.length;ni&&(h-a)*(i-o)>(d-o)*(t-a)&&++e:d<=i&&(h-a)*(i-o)<(d-o)*(t-a)&&--e;return e}function E(){x=b,u=[],c=[],y=!0}function S(){var t=j(),n=y&&t,r=(u=e.merge(u)).length;(n||r)&&(o.polygonStart(),n&&(o.lineStart(),s(null,null,1,o),o.lineEnd()),r&&pe(u,l,t,s,o),o.polygonEnd()),x=o,u=c=f=null}function P(){w.point=O,c&&c.push(f=[]),m=!0,_=!1,g=v=NaN}function C(){u&&(O(h,d),p&&_&&b.rejoin(),u.push(b.result())),w.point=M,_&&x.lineEnd()}function O(e,o){var s=a(e,o);if(c&&f.push([e,o]),m)h=e,d=o,p=s,m=!1,s&&(x.lineStart(),x.point(e,o));else if(s&&_)x.point(e,o);else{var u=[g=Math.max(_e,Math.min(ve,g)),v=Math.max(_e,Math.min(ve,v))],l=[e=Math.max(_e,Math.min(ve,e)),o=Math.max(_e,Math.min(ve,o))];fe(u,l,t,n,r,i)?(_||(x.lineStart(),x.point(u[0],u[1])),x.point(l[0],l[1]),s||x.lineEnd(),y=!1):s&&(x.lineStart(),x.point(e,o),y=!1)}g=e,v=o,_=s}return w}}var ye,xe,be,we=function(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=me(r,i,a,o)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,n):[[r,i],[a,o]]}}},Me=n(),je=function(t,e){var n=e[0],r=e[1],i=[w(n),-_(n),0],a=0,s=0;Me.reset();for(var l=0,h=t.length;l=0?1:-1,A=T*k,I=A>u,D=x*C;if(Me.add(v(D*T*w(A),b*O+D*_(A))),a+=I?k+T*f:k,I^m>=n^E>=n){var L=ot(it(g),it(j));lt(L);var R=ot(i,L);lt(R);var N=(I^k>=0?-1:1)*P(R[2]);(r>N||r===N&&(L[0]||L[1]))&&(s+=I^k>=0?1:-1)}}return(a<-o||ao})).map(c)).concat(e.range(m(s/v)*v,a,v).filter((function(t){return p(t%y)>o})).map(f))}return b.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},b.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(d(u).slice(1),h(r).reverse().slice(1),d(l).reverse().slice(1))]}},b.extent=function(t){return arguments.length?b.extentMajor(t).extentMinor(t):b.extentMinor()},b.extentMajor=function(t){return arguments.length?(i=+t[0][0],r=+t[1][0],l=+t[0][1],u=+t[1][1],i>r&&(t=i,i=r,r=t),l>u&&(t=l,l=u,u=t),b.precision(x)):[[i,l],[r,u]]},b.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],n>t&&(e=n,n=t,t=e),s>a&&(e=s,s=a,a=e),b.precision(x)):[[n,s],[t,a]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(_=+t[0],y=+t[1],b):[_,y]},b.stepMinor=function(t){return arguments.length?(g=+t[0],v=+t[1],b):[g,v]},b.precision=function(e){return arguments.length?(x=+e,c=Ue(s,a,90),f=Ve(n,t,x),h=Ue(l,u,90),d=Ve(i,r,x),b):x},b.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function He(){return Ye()()}var Xe,Ke,$e,Ze,Qe=function(t,e){var n=t[0]*d,r=t[1]*d,i=e[0]*d,a=e[1]*d,o=_(r),s=w(r),u=_(a),l=w(a),c=o*_(n),f=o*w(n),p=u*_(i),g=u*w(i),m=2*P(j(C(a-r)+o*u*C(i-n))),y=w(m),x=m?function(t){var e=w(t*=m)/y,n=w(m-t)/y,r=n*c+e*p,i=n*f+e*g,a=n*s+e*l;return[v(i,r)*h,v(a,j(r*r+i*i))*h]}:function(){return[n*h,r*h]};return x.distance=m,x},Je=function(t){return t},tn=n(),en=n(),nn={point:O,lineStart:O,lineEnd:O,polygonStart:function(){nn.lineStart=rn,nn.lineEnd=sn},polygonEnd:function(){nn.lineStart=nn.lineEnd=nn.point=O,tn.add(p(en)),en.reset()},result:function(){var t=tn/2;return tn.reset(),t}};function rn(){nn.point=an}function an(t,e){nn.point=on,Xe=$e=t,Ke=Ze=e}function on(t,e){en.add(Ze*t-$e*e),$e=t,Ze=e}function sn(){on(Xe,Ke)}var un=1/0,ln=un,cn=-un,fn=cn,hn={point:dn,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var t=[[un,ln],[cn,fn]];return cn=fn=-(ln=un=1/0),t}};function dn(t,e){tcn&&(cn=t),efn&&(fn=e)}var pn,gn,vn,_n,mn=0,yn=0,xn=0,bn=0,wn=0,Mn=0,jn=0,En=0,Sn=0,Pn={point:Cn,lineStart:On,lineEnd:An,polygonStart:function(){Pn.lineStart=In,Pn.lineEnd=Dn},polygonEnd:function(){Pn.point=Cn,Pn.lineStart=On,Pn.lineEnd=An},result:function(){var t=Sn?[jn/Sn,En/Sn]:Mn?[bn/Mn,wn/Mn]:xn?[mn/xn,yn/xn]:[NaN,NaN];return mn=yn=xn=bn=wn=Mn=jn=En=Sn=0,t}};function Cn(t,e){mn+=t,yn+=e,++xn}function On(){Pn.point=kn}function kn(t,e){Pn.point=Tn,Cn(vn=t,_n=e)}function Tn(t,e){var n=t-vn,r=e-_n,i=j(n*n+r*r);bn+=i*(vn+t)/2,wn+=i*(_n+e)/2,Mn+=i,Cn(vn=t,_n=e)}function An(){Pn.point=Cn}function In(){Pn.point=Ln}function Dn(){Rn(pn,gn)}function Ln(t,e){Pn.point=Rn,Cn(pn=vn=t,gn=_n=e)}function Rn(t,e){var n=t-vn,r=e-_n,i=j(n*n+r*r);bn+=i*(vn+t)/2,wn+=i*(_n+e)/2,Mn+=i,i=_n*t-vn*e,jn+=i*(vn+t),En+=i*(_n+e),Sn+=3*i,Cn(vn=t,_n=e)}function Nn(t){this._context=t}Nn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,f);break}},result:O};var Bn,Fn,zn,qn,Gn,Wn=n(),Un={point:O,lineStart:function(){Un.point=Vn},lineEnd:function(){Bn&&Yn(Fn,zn),Un.point=O},polygonStart:function(){Bn=!0},polygonEnd:function(){Bn=null},result:function(){var t=+Wn;return Wn.reset(),t}};function Vn(t,e){Un.point=Yn,Fn=qn=t,zn=Gn=e}function Yn(t,e){qn-=t,Gn-=e,Wn.add(j(qn*qn+Gn*Gn)),qn=t,Gn=e}function Hn(){this._string=[]}function Xn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Hn.prototype={_radius:4.5,_circle:Xn(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Xn(this._radius)),this._string.push("M",t,",",e,this._circle);break}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Kn=function(t,e){var n,r,i=4.5;function a(t){return t&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),z(t,n(r))),r.result()}return a.area=function(t){return z(t,n(nn)),nn.result()},a.measure=function(t){return z(t,n(Un)),Un.result()},a.bounds=function(t){return z(t,n(hn)),hn.result()},a.centroid=function(t){return z(t,n(Pn)),Pn.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,Je):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new Hn):new Nn(e=t),"function"!==typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"===typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)},$n=function(t,n,r,i){return function(a,o){var s,u,l,c=n(o),f=a.invert(i[0],i[1]),h=ce(),d=n(h),p=!1,g={point:v,lineStart:m,lineEnd:y,polygonStart:function(){g.point=x,g.lineStart=b,g.lineEnd=w,u=[],s=[]},polygonEnd:function(){g.point=v,g.lineStart=m,g.lineEnd=y,u=e.merge(u);var t=je(s,f);u.length?(p||(o.polygonStart(),p=!0),pe(u,Qn,t,r,o)):t&&(p||(o.polygonStart(),p=!0),o.lineStart(),r(null,null,1,o),o.lineEnd()),p&&(o.polygonEnd(),p=!1),u=s=null},sphere:function(){o.polygonStart(),o.lineStart(),r(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function v(e,n){var r=a(e,n);t(e=r[0],n=r[1])&&o.point(e,n)}function _(t,e){var n=a(t,e);c.point(n[0],n[1])}function m(){g.point=_,c.lineStart()}function y(){g.point=v,c.lineEnd()}function x(t,e){l.push([t,e]);var n=a(t,e);d.point(n[0],n[1])}function b(){d.lineStart(),l=[]}function w(){x(l[0][0],l[0][1]),d.lineEnd();var t,e,n,r,i=d.clean(),a=h.result(),c=a.length;if(l.pop(),s.push(l),l=null,c)if(1&i){if(n=a[0],(e=n.length-1)>0){for(p||(o.polygonStart(),p=!0),o.lineStart(),t=0;t1&&2&i&&a.push(a.pop().concat(a.shift())),u.push(a.filter(Zn))}return g}};function Zn(t){return t.length>1}function Qn(t,e){return((t=t.x)[0]<0?t[1]-l-o:l-t[1])-((e=e.x)[0]<0?e[1]-l-o:l-e[1])}var Jn=$n((function(){return!0}),tr,nr,[-u,-l]);function tr(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,s){var c=a>0?u:-u,f=p(a-n);p(f-u)0?l:-l),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(a,r),e=0):i!==c&&f>=u&&(p(n-i)o?g((w(e)*(a=_(r))*w(n)-w(r)*(i=_(e))*w(t))/(i*a*s)):(e+r)/2}function nr(t,e,n,r){var i;if(null==t)i=n*l,r.point(-u,i),r.point(0,i),r.point(u,i),r.point(u,0),r.point(u,-i),r.point(0,-i),r.point(-u,-i),r.point(-u,0),r.point(-u,i);else if(p(t[0]-e[0])>o){var a=t[0]0,i=p(n)>o;function a(n,r,i,a){se(a,t,e,i,n,r)}function s(t,e){return _(t)*_(e)>n}function l(t){var e,n,a,l,h;return{lineStart:function(){l=a=!1,h=1},point:function(d,p){var g,v=[d,p],_=s(d,p),m=r?_?0:f(d,p):_?f(d+(d<0?u:-u),p):0;if(!e&&(l=a=_)&&t.lineStart(),_!==a&&(g=c(e,v),(!g||he(e,g)||he(v,g))&&(v[0]+=o,v[1]+=o,_=s(v[0],v[1]))),_!==a)h=0,_?(t.lineStart(),g=c(v,e),t.point(g[0],g[1])):(g=c(e,v),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(i&&e&&r^_){var y;m&n||!(y=c(v,e,!0))||(h=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!_||e&&he(e,v)||t.point(v[0],v[1]),e=v,a=_,n=m},lineEnd:function(){a&&t.lineEnd(),e=null},clean:function(){return h|(l&&a)<<1}}}function c(t,e,r){var i=it(t),a=it(e),s=[1,0,0],l=ot(i,a),c=at(l,l),f=l[0],h=c-f*f;if(!h)return!r&&t;var d=n*c/h,g=-n*f/h,v=ot(s,l),_=ut(s,d),m=ut(l,g);st(_,m);var y=v,x=at(_,y),b=at(y,y),w=x*x-b*(at(_,_)-1);if(!(w<0)){var M=j(w),E=ut(y,(-x-M)/b);if(st(E,_),E=rt(E),!r)return E;var S,P=t[0],C=e[0],O=t[1],k=e[1];C0^E[1]<(p(E[0]-P)u^(P<=E[0]&&E[0]<=C)){var D=ut(y,(-x+M)/b);return st(D,_),[E,rt(D)]}}}function f(e,n){var i=r?t:u-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return $n(s,l,a,r?[0,-t]:[-u,t-u])},ir=function(t){return{stream:ar(t)}};function ar(t){return function(e){var n=new or;for(var r in t)n[r]=t[r];return n.stream=e,n}}function or(){}function sr(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),z(n,t.stream(hn));var o=hn.result(),s=Math.min(r/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),u=+e[0][0]+(r-s*(o[1][0]+o[0][0]))/2,l=+e[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return null!=a&&t.clipExtent(a),t.scale(150*s).translate([u,l])}function ur(t,e,n){return sr(t,[[0,0],e],n)}or.prototype={constructor:or,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var lr=16,cr=_(30*d),fr=function(t,e){return+e?dr(t,e):hr(t)};function hr(t){return ar({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function dr(t,e){function n(r,i,a,s,u,l,c,f,h,d,g,_,m,y){var x=c-r,b=f-i,w=x*x+b*b;if(w>4*e&&m--){var M=s+d,E=u+g,S=l+_,C=j(M*M+E*E+S*S),O=P(S/=C),k=p(p(S)-1)e||p((x*D+b*L)/w-.5)>.3||s*d+u*g+l*_2?t[2]%360*d:0,T()):[m*h,y*h,x*h]},C.precision=function(t){return arguments.length?(P=fr(k,S=t*t),A()):j(S)},C.fitExtent=function(t,e){return sr(C,t,e)},C.fitSize=function(t,e){return ur(C,t,e)},function(){return e=t.apply(this,arguments),C.invert=e.invert&&O,T()}}function _r(t){var e=0,n=u/3,r=vr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*d,n=t[1]*d):[e*h,n*h]},i}function mr(t){var e=_(t);function n(t,n){return[t*e,w(n)/e]}return n.invert=function(t,n){return[t/e,P(n*e)]},n}function yr(t,e){var n=w(t),r=(n+w(e))/2;if(p(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(t)},f.stream=function(n){return t&&e===n?t:t=wr([s.stream(e=n),u.stream(n),l.stream(n)])},f.precision=function(t){return arguments.length?(s.precision(t),u.precision(t),l.precision(t),h()):s.precision()},f.scale=function(t){return arguments.length?(s.scale(t),u.scale(.35*t),l.scale(t),f.translate(s.translate())):s.scale()},f.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),a=+t[0],f=+t[1];return n=s.translate(t).clipExtent([[a-.455*e,f-.238*e],[a+.455*e,f+.238*e]]).stream(c),r=u.translate([a-.307*e,f+.201*e]).clipExtent([[a-.425*e+o,f+.12*e+o],[a-.214*e-o,f+.234*e-o]]).stream(c),i=l.translate([a-.205*e,f+.212*e]).clipExtent([[a-.214*e+o,f+.166*e+o],[a-.115*e-o,f+.234*e-o]]).stream(c),h()},f.fitExtent=function(t,e){return sr(f,t,e)},f.fitSize=function(t,e){return ur(f,t,e)},f.scale(1070)};function jr(t){return function(e,n){var r=_(e),i=_(n),a=t(r*i);return[a*i*w(e),a*w(n)]}}function Er(t){return function(e,n){var r=j(e*e+n*n),i=t(r),a=w(i),o=_(i);return[v(e*a,r*o),P(r&&n*a/r)]}}var Sr=jr((function(t){return j(2/(1+t))}));Sr.invert=Er((function(t){return 2*P(t/2)}));var Pr=function(){return gr(Sr).scale(124.75).clipAngle(179.999)},Cr=jr((function(t){return(t=S(t))&&t/w(t)}));Cr.invert=Er((function(t){return t}));var Or=function(){return gr(Cr).scale(79.4188).clipAngle(179.999)};function kr(t,e){return[t,x(E((l+e)/2))]}kr.invert=function(t,e){return[t,2*g(y(e))-l]};var Tr=function(){return Ar(kr).scale(961/f)};function Ar(t){var e,n,r,i=gr(t),a=i.center,o=i.scale,s=i.translate,l=i.clipExtent,c=null;function f(){var a=u*o(),s=i(oe(i.rotate()).invert([0,0]));return l(null==c?[[s[0]-a,s[1]-a],[s[0]+a,s[1]+a]]:t===kr?[[Math.max(s[0]-a,c),e],[Math.min(s[0]+a,n),r]]:[[c,Math.max(s[1]-a,e)],[n,Math.min(s[1]+a,r)]])}return i.scale=function(t){return arguments.length?(o(t),f()):o()},i.translate=function(t){return arguments.length?(s(t),f()):s()},i.center=function(t){return arguments.length?(a(t),f()):a()},i.clipExtent=function(t){return arguments.length?(null==t?c=e=n=r=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),f()):null==c?null:[[c,e],[n,r]]},f()}function Ir(t){return E((l+t)/2)}function Dr(t,e){var n=_(t),r=t===e?w(t):x(n/_(e))/x(Ir(e)/Ir(t)),i=n*b(Ir(t),r)/r;if(!r)return kr;function a(t,e){i>0?e<-l+o&&(e=-l+o):e>l-o&&(e=l-o);var n=i/b(Ir(e),r);return[n*w(r*t),i-n*_(r*t)]}return a.invert=function(t,e){var n=i-e,a=M(r)*j(t*t+n*n);return[v(t,p(n))/r*M(n),2*g(b(i/a,1/r))-l]},a}var Lr=function(){return _r(Dr).scale(109.5).parallels([30,30])};function Rr(t,e){return[t,e]}Rr.invert=Rr;var Nr=function(){return gr(Rr).scale(152.63)};function Br(t,e){var n=_(t),r=t===e?w(t):(n-_(e))/(e-t),i=n/r+t;if(p(r)2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90]).scale(159.155)};t.geoArea=nt,t.geoBounds=zt,t.geoCentroid=Qt,t.geoCircle=le,t.geoClipExtent=we,t.geoContains=We,t.geoDistance=De,t.geoGraticule=Ye,t.geoGraticule10=He,t.geoInterpolate=Qe,t.geoLength=Te,t.geoPath=Kn,t.geoAlbers=br,t.geoAlbersUsa=Mr,t.geoAzimuthalEqualArea=Pr,t.geoAzimuthalEqualAreaRaw=Sr,t.geoAzimuthalEquidistant=Or,t.geoAzimuthalEquidistantRaw=Cr,t.geoConicConformal=Lr,t.geoConicConformalRaw=Dr,t.geoConicEqualArea=xr,t.geoConicEqualAreaRaw=yr,t.geoConicEquidistant=Fr,t.geoConicEquidistantRaw=Br,t.geoEquirectangular=Nr,t.geoEquirectangularRaw=Rr,t.geoGnomonic=qr,t.geoGnomonicRaw=zr,t.geoIdentity=Wr,t.geoProjection=gr,t.geoProjectionMutator=vr,t.geoMercator=Tr,t.geoMercatorRaw=kr,t.geoOrthographic=Vr,t.geoOrthographicRaw=Ur,t.geoStereographic=Hr,t.geoStereographicRaw=Yr,t.geoTransverseMercator=Kr,t.geoTransverseMercatorRaw=Xr,t.geoRotation=oe,t.geoStream=z,t.geoTransform=ir,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-hexjson@1.1.0@d3-hexjson/build/d3-hexjson.js":function(t,e,n){(function(t,r){r(e,n("./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))})(0,(function(t,e){"use strict";function n(t,n,s){var u=t.layout,l=[],c=0;Object.keys(t.hexes).forEach((function(e){t.hexes[e].key=e,l.push(t.hexes[e])}));var f=e.max(l,(function(t){return+t.q})),h=e.min(l,(function(t){return+t.q})),d=e.max(l,(function(t){return+t.r})),p=e.min(l,(function(t){return+t.r})),g=f-h+1,v=d-p+1;c="odd-r"===u||"even-r"===u?e.min([n/((g+.5)*Math.sqrt(3)),s/(1.5*(v+1/3))]):e.min([s/((v+.5)*Math.sqrt(3)),n/(1.5*(g+1/3))]);var _=c*Math.sqrt(3),m=a(u,_,c),y=o(m);return l.forEach((function(t){t.qc=t.q-h,t.rc=d-t.r,t.x=r(t,u,_,c),t.y=i(t,u,_,c),t.vertices=m,t.points=y})),l}function r(t,e,n,r){var i=0,a=0;switch(e){case"odd-r":a=t.rc%2===1?n:n/2,i=t.qc*n+a;break;case"even-r":a=t.rc%2===0?n:n/2,i=t.qc*n+a;break;case"odd-q":case"even-q":i=t.qc*r*1.5+r;break}return i}function i(t,e,n,r){var i=0,a=0;switch(e){case"odd-r":case"even-r":i=t.rc*r*1.5+r;break;case"odd-q":a=t.qc%2===1?n:n/2,i=t.rc*n+a;break;case"even-q":a=t.qc%2===0?n:n/2,i=t.rc*n+a;break}return i}function a(t,e,n){var r=[];switch(t){case"odd-r":case"even-r":r.push({x:0,y:0-n}),r.push({x:0+.5*e,y:0-.5*n}),r.push({x:0+.5*e,y:0+.5*n}),r.push({x:0,y:0+n}),r.push({x:0-.5*e,y:0+.5*n}),r.push({x:0-.5*e,y:0-.5*n});break;case"odd-q":case"even-q":r.push({x:0-n,y:0}),r.push({x:0-.5*n,y:0-.5*e}),r.push({x:0+.5*n,y:0-.5*e}),r.push({x:0+n,y:0}),r.push({x:0+.5*n,y:0+.5*e}),r.push({x:0-.5*n,y:0+.5*e});break}return r}function o(t){var e="";return t.forEach((function(t){e+=t.x+","+t.y+" "})),e.substring(0,e.length-1)}function s(t){var n={};n.layout=t.layout,n.hexes={};var r=[];Object.keys(t.hexes).forEach((function(e){r.push(t.hexes[e])}));var i,a,o,s=e.max(r,(function(t){return+t.q})),u=e.min(r,(function(t){return+t.q})),l=e.max(r,(function(t){return+t.r})),c=e.min(r,(function(t){return+t.r}));for(i=u;i<=s;i++)for(a=c;a<=l;a++)o="Q"+i+"R"+a,n.hexes[o]={q:i,r:a};return n}function u(t,n,a,o){var s=[],u=t.layout;Object.keys(t.hexes).forEach((function(e){s.push(t.hexes[e])}));var l,c=e.max(s,(function(t){return+t.q})),f=e.min(s,(function(t){return+t.q})),h=e.max(s,(function(t){return+t.r})),d=e.min(s,(function(t){return+t.r})),p=c-f+1,g=h-d+1;l="odd-r"===u||"even-r"===u?e.min([n/((p+.5)*Math.sqrt(3)),a/(1.5*(g+1/3))]):e.min([a/((g+.5)*Math.sqrt(3)),n/(1.5*(p+1/3))]);var v=l*Math.sqrt(3),_=[],m=l*l*4,y=s.length;if(y>1){s.forEach((function(t){t.qc=t.q-f,t.rc=h-t.r,t.x=r(t,u,v,l),t.y=i(t,u,v,l)}));for(var x=0;x1){s.forEach((function(t){t.qc=t.q-f,t.rc=h-t.r,t.x=r(t,u,v,l),t.y=i(t,u,v,l)}));for(var x=0;x=0)e+=n[r].value;else e=1;t.value=e}function c(){return this.eachAfter(l)}function f(t){var e,n,r,i,a=this,o=[a];do{e=o.reverse(),o=[];while(a=e.pop())if(t(a),n=a.children,n)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this}function d(t){var e,n,r,i=this,a=[i],o=[];while(i=a.pop())if(o.push(i),e=i.children,e)for(n=0,r=e.length;n=0)n+=r[i].value;e.value=n}))}function g(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))}function v(t){var e=this,n=_(e,t),r=[e];while(e!==n)e=e.parent,r.push(e);var i=r.length;while(t!==n)r.splice(i,0,t),t=t.parent;return r}function _(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();while(t===e)i=t,t=n.pop(),e=r.pop();return i}function m(){var t=this,e=[t];while(t=t.parent)e.push(t);return e}function y(){var t=[];return this.each((function(e){t.push(e)})),t}function x(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t}function b(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e}function w(t,e){var n,r,i,a,o,s=new P(t),u=+t.value&&(s.value=t.value),l=[s];null==e&&(e=j);while(n=l.pop())if(u&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)l.push(r=n.children[a]=new P(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(S)}function M(){return w(this).eachBefore(E)}function j(t){return t.children}function E(t){t.data=t.data.data}function S(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function P(t){this.data=t,this.depth=this.height=0,this.parent=null}P.prototype=w.prototype={constructor:P,count:c,each:f,eachAfter:d,eachBefore:h,sum:p,sort:g,path:v,ancestors:m,descendants:y,leaves:x,links:b,copy:M};var C=Array.prototype.slice;function O(t){var e,n,r=t.length;while(r)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}function k(t){var e,n,r=0,i=(t=O(C.call(t))).length,a=[];while(r0&&n*n>r*r+i*i}function D(t,e){for(var n=0;no?(r=(l+o-i)/(2*l),a=Math.sqrt(Math.max(0,o/l-r*r)),n.x=t.x-r*s-a*u,n.y=t.y-r*u+a*s):(r=(l+i-o)/(2*l),a=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-a*u,n.y=e.y+r*u+a*s)):(n.x=e.x+n.r,n.y=e.y)}function z(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function q(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function G(t){this._=t,this.next=null,this.previous=null}function W(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,s,u,l,c,f;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;F(n,e,r=t[2]),e=new G(e),n=new G(n),r=new G(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=Y(e),n):t},n.parentId=function(t){return arguments.length?(e=Y(t),n):e},n}function lt(t,e){return t.parent===e.parent?1:2}function ct(t){var e=t.children;return e?e[0]:t.t}function ft(t){var e=t.children;return e?e[e.length-1]:t.t}function ht(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function dt(t){var e,n=0,r=0,i=t.children,a=i.length;while(--a>=0)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function pt(t,e,n){return t.a.parent===e.parent?t.a:n}function gt(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function vt(t){var e,n,r,i,a,o=new gt(t,0),s=[o];while(e=s.pop())if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new gt(r[i],i)),n.parent=e;return(o.parent=new gt(null,0)).children=[o],o}function _t(){var t=lt,e=1,n=1,r=null;function i(i){var s=vt(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(u);else{var l=i,c=i,f=i;i.eachBefore((function(t){t.xc.x&&(c=t),t.depth>f.depth&&(f=t)}));var h=l===c?1:t(l,c)/2,d=h-l.x,p=e/(c.x+h+d),g=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){dt(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=s(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,r){if(n){var i,a=e,o=e,s=n,u=a.parent.children[0],l=a.m,c=o.m,f=s.m,h=u.m;while(s=ft(s),a=ct(a),s&&a)u=ct(u),o=ft(o),o.a=e,i=s.z+f-a.z-l+t(s._,a._),i>0&&(ht(pt(s,e,r),e,i),l+=i,c+=i),f+=s.m,l+=a.m,h+=u.m,c+=o.m;s&&!ft(o)&&(o.t=s,o.m+=f-c),a&&!ct(u)&&(u.t=a,u.m+=l-h,r=e)}return r}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function mt(t,e,n,r,i){var a,o=t.children,s=-1,u=o.length,l=t.value&&(i-n)/t.value;while(++sh&&(h=s),v=c*c*g,d=Math.max(h/v,v/f),d>p){c-=s;break}p=d}_.push(o={value:c,dice:u1?e:1)},n}(yt);function wt(){var t=bt,e=!1,n=1,r=1,i=[0],a=H,o=H,s=H,u=H,l=H;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(tt),t}function f(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,f=e.x1-n,h=e.y1-n;f=e-1){var u=s[t];return u.x0=r,u.y0=i,u.x1=a,void(u.y1=o)}var f=l[t],h=n/2+f,d=t+1,p=e-1;while(d>>1;l[g]o-i){var m=(r*_+a*v)/n;c(t,d,v,r,i,m,o),c(d,e,_,m,i,a,o)}else{var y=(i*_+o*v)/n;c(t,d,v,r,i,a,y),c(d,e,_,r,y,a,o)}}c(0,u,t.value,e,n,r,i)}function jt(t,e,n,r,i){(1&t.depth?mt:et)(t,e,n,r,i)}var Et=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e){var o,s,u,l,c,f=-1,h=o.length,d=t.value;while(++f1?e:1)},n}(yt);t.cluster=u,t.hierarchy=w,t.pack=$,t.packEnclose=k,t.packSiblings=U,t.partition=nt,t.stratify=ut,t.tree=_t,t.treemap=wt,t.treemapBinary=Mt,t.treemapDice=et,t.treemapResquarify=Et,t.treemapSlice=mt,t.treemapSliceDice=jt,t.treemapSquarify=bt,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";var e=Math.PI,n=2*e,r=1e-6,i=n-r;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,n,i,a,o){t=+t,n=+n,i=+i,a=+a,o=+o;var s=this._x1,u=this._y1,l=i-t,c=a-n,f=s-t,h=u-n,d=f*f+h*h;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(h*l-c*f)>r&&o){var p=i-s,g=a-u,v=l*l+c*c,_=p*p+g*g,m=Math.sqrt(v),y=Math.sqrt(d),x=o*Math.tan((e-Math.acos((v+d-_)/(2*m*y)))/2),b=x/y,w=x/m;Math.abs(b-1)>r&&(this._+="L"+(t+b*f)+","+(n+b*h)),this._+="A"+o+","+o+",0,0,"+ +(h*p>f*g)+","+(this._x1=t+w*l)+","+(this._y1=n+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,a,o,s,u,l){t=+t,a=+a,o=+o,l=!!l;var c=o*Math.cos(s),f=o*Math.sin(s),h=t+c,d=a+f,p=1^l,g=l?s-u:u-s;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+d:(Math.abs(this._x1-h)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+h+","+d),o&&(g<0&&(g=g%n+n),g>i?this._+="A"+o+","+o+",0,1,"+p+","+(t-c)+","+(a-f)+"A"+o+","+o+",0,1,"+p+","+(this._x1=h)+","+(this._y1=d):g>r&&(this._+="A"+o+","+o+",0,"+ +(g>=e)+","+p+","+(this._x1=t+o*Math.cos(u))+","+(this._y1=a+o*Math.sin(u))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.path=o,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js":function(t,e,n){var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js");(function(t,r){r(e,n("./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"),n("./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js"),n("./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js"))})(0,(function(t,e,n,i){"use strict";function a(t){return t.target.depth}function o(t){return t.depth}function s(t,e){return e-1-t.height}function u(t,e){return t.sourceLinks.length?t.depth:e-1}function l(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0}function c(t){return function(){return t}}function f(t,e){return d(t.source,e.source)||t.index-e.index}function h(t,e){return d(t.target,e.target)||t.index-e.index}function d(t,e){return t.y0-e.y0}function p(t){return t.value}function g(t){return t.index}function v(t){return t.nodes}function _(t){return t.links}function m(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function y(){var t,i=0,a=0,o=1,s=1,l=24,y=8,x=g,b=u,w=v,M=_,j=6;function E(){var t={nodes:w.apply(null,arguments),links:M.apply(null,arguments)};return S(t),P(t),C(t),O(t),k(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=n.map(t.nodes,x);t.links.forEach((function(t,n){t.index=n;var r=t.source,i=t.target;"object"!==typeof r&&(r=t.source=m(e,r)),"object"!==typeof i&&(i=t.target=m(e,i)),r.sourceLinks.push(t),i.targetLinks.push(t)}))}function P(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,p),e.sum(t.targetLinks,p))}))}function C(t){var e,n,r,a=t.nodes.length;for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[]){if(r>a)throw new Error("circular link");e.forEach((function(t){t.depth=r,t.sourceLinks.forEach((function(t){n.indexOf(t.target)<0&&n.push(t.target)}))}))}for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[]){if(r>a)throw new Error("circular link");e.forEach((function(t){t.height=r,t.targetLinks.forEach((function(t){n.indexOf(t.source)<0&&n.push(t.source)}))}))}var s=(o-i-l)/(r-1);t.nodes.forEach((function(t){t.x1=(t.x0=i+Math.max(0,Math.min(r-1,Math.floor(b.call(null,t,r))))*s)+l}))}function O(i){var o=n.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(i.nodes).map((function(t){return t.values}));c(),_();for(var u=.9,l=j;l>0;--l,u*=.9)v(u),_(),g(u),_();function c(){var n=e.min(o,(function(t){return(s-a-(t.length-1)*y)/e.sum(t,p)}));o.forEach((function(e){null!=t&&e.sort(t),e.forEach((function(t,e){t.y1=(t.y0=e)+t.value*n}))})),i.links.forEach((function(t){t.width=t.value*n}))}function g(t){o.forEach((function(e){e.forEach((function(e){var n,i,a,o,s=e.y0;try{for(var u=r.__values(e.sourceLinks.sort(h)),l=u.next();!l.done;l=u.next()){var c=l.value,f=c.target,d=c.width,p=c.value;if(p>0){var g=0;try{for(var v=(a=void 0,r.__values(f.targetLinks)),_=v.next();!_.done;_=v.next()){var m=_.value,x=m.source,b=m.width;if(x===e)break;g+=b+y/2}}catch(w){a={error:w}}finally{try{_&&!_.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}g=(s-g-f.y0)*t*(p/Math.min(e.value,f.value)),f.y0+=g,f.y1+=g}s+=d+y/2}}catch(M){n={error:M}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}))}))}function v(t){o.slice().reverse().forEach((function(e){e.forEach((function(e){var n,i,a,o,s=e.y0;try{for(var u=r.__values(e.targetLinks.sort(f)),l=u.next();!l.done;l=u.next()){var c=l.value,h=c.source,d=c.width,p=c.value;if(p>0){var g=0;try{for(var v=(a=void 0,r.__values(h.sourceLinks)),_=v.next();!_.done;_=v.next()){var m=_.value,x=m.target,b=m.width;if(x===e)break;g+=b+y/2}}catch(w){a={error:w}}finally{try{_&&!_.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}g=(s-g-h.y0)*t*(p/Math.min(e.value,h.value)),h.y0+=g,h.y1+=g}s+=d+y/2}}catch(M){n={error:M}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}))}))}function _(){o.forEach((function(e){var n,r,i,o=a,u=e.length;for(void 0===t&&e.sort(d),i=0;i0&&(n.y0+=r,n.y1+=r),o=n.y1+y;if(r=o-y-s,r>0)for(o=n.y0-=r,n.y1-=r,i=u-2;i>=0;--i)n=e[i],r=n.y1+y-o,r>0&&(n.y0-=r,n.y1-=r),o=n.y0}))}}function k(t){t.nodes.forEach((function(t){t.sourceLinks.sort(h),t.targetLinks.sort(f)})),t.nodes.forEach((function(t){var e=t.y0,n=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=n+t.width/2,n+=t.width}))}))}return E.update=function(t){return k(t),t},E.nodeId=function(t){return arguments.length?(x="function"===typeof t?t:c(t),E):x},E.nodeAlign=function(t){return arguments.length?(b="function"===typeof t?t:c(t),E):b},E.nodeSort=function(e){return arguments.length?(t=e,E):t},E.nodeWidth=function(t){return arguments.length?(l=+t,E):l},E.nodePadding=function(t){return arguments.length?(y=+t,E):y},E.nodes=function(t){return arguments.length?(w="function"===typeof t?t:c(t),E):w},E.links=function(t){return arguments.length?(M="function"===typeof t?t:c(t),E):M},E.size=function(t){return arguments.length?(i=a=0,o=+t[0],s=+t[1],E):[o-i,s-a]},E.extent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],a=+t[0][1],s=+t[1][1],E):[[i,a],[o,s]]},E.iterations=function(t){return arguments.length?(j=+t,E):j},E}function x(t){return[t.source.x1,t.y0]}function b(t){return[t.target.x0,t.y1]}function w(){return i.linkHorizontal().source(x).target(b)}t.sankey=y,t.sankeyCenter=l,t.sankeyLeft=o,t.sankeyRight=s,t.sankeyJustify=u,t.sankeyLinkHorizontal=w,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js":function(t,e,n){(function(t,r){r(e,n("./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js"))})(0,(function(t,e){"use strict";function n(t){return function(){return t}}var r=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,u=Math.sin,l=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,d=2*f;function p(t){return t>1?0:t<-1?f:Math.acos(t)}function g(t){return t>=1?h:t<=-1?-h:Math.asin(t)}function v(t){return t.innerRadius}function _(t){return t.outerRadius}function m(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&&t.padAngle}function b(t,e,n,r,i,a,o,s){var u=n-t,l=r-e,f=o-i,h=s-a,d=h*u-f*l;if(!(d*dA*A+I*I&&(S=C,P=O),{cx:S,cy:P,x01:-h,y01:-d,x11:S*(i/M-1),y11:P*(i/M-1)}}function M(){var t=v,o=_,M=n(0),j=null,E=m,S=y,P=x,C=null;function O(){var n,v,_=+t.apply(this,arguments),m=+o.apply(this,arguments),y=E.apply(this,arguments)-h,x=S.apply(this,arguments)-h,O=r(x-y),k=x>y;if(C||(C=n=e.path()),m<_&&(v=m,m=_,_=v),m>c)if(O>d-c)C.moveTo(m*a(y),m*u(y)),C.arc(0,0,m,y,x,!k),_>c&&(C.moveTo(_*a(x),_*u(x)),C.arc(0,0,_,x,y,k));else{var T,A,I=y,D=x,L=y,R=x,N=O,B=O,F=P.apply(this,arguments)/2,z=F>c&&(j?+j.apply(this,arguments):l(_*_+m*m)),q=s(r(m-_)/2,+M.apply(this,arguments)),G=q,W=q;if(z>c){var U=g(z/_*u(F)),V=g(z/m*u(F));(N-=2*U)>c?(U*=k?1:-1,L+=U,R-=U):(N=0,L=R=(y+x)/2),(B-=2*V)>c?(V*=k?1:-1,I+=V,D-=V):(B=0,I=D=(y+x)/2)}var Y=m*a(I),H=m*u(I),X=_*a(R),K=_*u(R);if(q>c){var $,Z=m*a(D),Q=m*u(D),J=_*a(L),tt=_*u(L);if(Oc?W>c?(T=w(J,tt,Y,H,m,W,k),A=w(Z,Q,X,K,m,W,k),C.moveTo(T.cx+T.x01,T.cy+T.y01),Wc&&N>c?G>c?(T=w(X,K,Z,Q,_,-G,k),A=w(Y,H,J,tt,_,-G,k),C.lineTo(T.cx+T.x01,T.cy+T.y01),G=f;--h)l.point(_[h],m[h]);l.lineEnd(),l.areaEnd()}v&&(_[c]=+t(d,c,n),m[c]=+i(d,c,n),l.point(r?+r(d,c,n):_[c],a?+a(d,c,n):m[c]))}if(p)return l=null,p+""||null}function f(){return C().defined(o).curve(u).context(s)}return c.x=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:n(+t),c):r},c.y=function(t){return arguments.length?(i="function"===typeof t?t:n(+t),a=null,c):i},c.y0=function(t){return arguments.length?(i="function"===typeof t?t:n(+t),c):i},c.y1=function(t){return arguments.length?(a=null==t?null:"function"===typeof t?t:n(+t),c):a},c.lineX0=c.lineY0=function(){return f().x(t).y(i)},c.lineY1=function(){return f().x(t).y(a)},c.lineX1=function(){return f().x(r).y(i)},c.defined=function(t){return arguments.length?(o="function"===typeof t?t:n(!!t),c):o},c.curve=function(t){return arguments.length?(u=t,null!=s&&(l=u(s)),c):u},c.context=function(t){return arguments.length?(null==t?s=l=null:l=u(s=t),c):s},c}function k(t,e){return et?1:e>=t?0:NaN}function T(t){return t}function A(){var t=T,e=k,r=null,i=n(0),a=n(d),o=n(0);function s(n){var s,u,l,c,f,h=n.length,p=0,g=new Array(h),v=new Array(h),_=+i.apply(this,arguments),m=Math.min(d,Math.max(-d,a.apply(this,arguments)-_)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),x=y*(m<0?-1:1);for(s=0;s0&&(p+=f);for(null!=e?g.sort((function(t,n){return e(v[t],v[n])})):null!=r&&g.sort((function(t,e){return r(n[t],n[e])})),s=0,l=p?(m-h*x)/p:0;s0?f*l:0)+x,v[u]={data:n[u],index:s,value:f,startAngle:_,endAngle:c,padAngle:y};return v}return s.value=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,r=null,s):e},s.sort=function(t){return arguments.length?(r=t,e=null,s):r},s.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:n(+t),s):i},s.endAngle=function(t){return arguments.length?(a="function"===typeof t?t:n(+t),s):a},s.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:n(+t),s):o},s}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};var I=L(E);function D(t){this._curve=t}function L(t){function e(e){return new D(t(e))}return e._curve=t,e}function R(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(L(t)):e()._curve},t}function N(){return R(C().curve(I))}function B(){var t=O().curve(I),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return R(n())},delete t.lineX0,t.lineEndAngle=function(){return R(r())},delete t.lineX1,t.lineInnerRadius=function(){return R(i())},delete t.lineY0,t.lineOuterRadius=function(){return R(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(L(t)):e()._curve},t}function F(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}D.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var z=Array.prototype.slice;function q(t){return t.source}function G(t){return t.target}function W(t){var r=q,i=G,a=S,o=P,s=null;function u(){var n,u=z.call(arguments),l=r.apply(this,u),c=i.apply(this,u);if(s||(s=n=e.path()),t(s,+a.apply(this,(u[0]=l,u)),+o.apply(this,u),+a.apply(this,(u[0]=c,u)),+o.apply(this,u)),n)return s=null,n+""||null}return u.source=function(t){return arguments.length?(r=t,u):r},u.target=function(t){return arguments.length?(i=t,u):i},u.x=function(t){return arguments.length?(a="function"===typeof t?t:n(+t),u):a},u.y=function(t){return arguments.length?(o="function"===typeof t?t:n(+t),u):o},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u}function U(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function V(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Y(t,e,n,r,i){var a=F(e,n),o=F(e,n=(n+i)/2),s=F(r,n),u=F(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],u[0],u[1])}function H(){return W(U)}function X(){return W(V)}function K(){var t=W(Y);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var $={draw:function(t,e){var n=Math.sqrt(e/f);t.moveTo(n,0),t.arc(0,0,n,0,d)}},Z={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Q=Math.sqrt(1/3),J=2*Q,tt={draw:function(t,e){var n=Math.sqrt(e/J),r=n*Q;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},et=.8908130915292852,nt=Math.sin(f/10)/Math.sin(7*f/10),rt=Math.sin(d/10)*nt,it=-Math.cos(d/10)*nt,at={draw:function(t,e){var n=Math.sqrt(e*et),r=rt*n,i=it*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=d*a/5,s=Math.cos(o),u=Math.sin(o);t.lineTo(u*n,-s*n),t.lineTo(s*r-u*i,u*r+s*i)}t.closePath()}},ot={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},st=Math.sqrt(3),ut={draw:function(t,e){var n=-Math.sqrt(e/(3*st));t.moveTo(0,2*n),t.lineTo(-st*n,-n),t.lineTo(st*n,-n),t.closePath()}},lt=-.5,ct=Math.sqrt(3)/2,ft=1/Math.sqrt(12),ht=3*(ft/2+1),dt={draw:function(t,e){var n=Math.sqrt(e/ht),r=n/2,i=n*ft,a=r,o=n*ft+n,s=-a,u=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(s,u),t.lineTo(lt*r-ct*i,ct*r+lt*i),t.lineTo(lt*a-ct*o,ct*a+lt*o),t.lineTo(lt*s-ct*u,ct*s+lt*u),t.lineTo(lt*r+ct*i,lt*i-ct*r),t.lineTo(lt*a+ct*o,lt*o-ct*a),t.lineTo(lt*s+ct*u,lt*u-ct*s),t.closePath()}},pt=[$,Z,tt,ot,at,ut,dt];function gt(){var t=n($),r=n(64),i=null;function a(){var n;if(i||(i=n=e.path()),t.apply(this,arguments).draw(i,+r.apply(this,arguments)),n)return i=null,n+""||null}return a.type=function(e){return arguments.length?(t="function"===typeof e?e:n(e),a):t},a.size=function(t){return arguments.length?(r="function"===typeof t?t:n(+t),a):r},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a}function vt(){}function _t(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function mt(t){this._context=t}function yt(t){return new mt(t)}function xt(t){this._context=t}function bt(t){return new xt(t)}function wt(t){this._context=t}function Mt(t){return new wt(t)}function jt(t,e){this._basis=new mt(t),this._beta=e}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_t(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_t(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xt.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:_t(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:_t(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},jt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0){var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,u=-1;while(++u<=n)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*o),this._beta*e[u]+(1-this._beta)*(a+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Et=function t(e){function n(t){return 1===e?new mt(t):new jt(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function St(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Pt(t,e){this._context=t,this._k=(1-e)/6}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:St(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:St(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ct=function t(e){function n(t){return new Pt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ot(t,e){this._context=t,this._k=(1-e)/6}Ot.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:St(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function n(t){return new Ot(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Tt(t,e){this._context=t,this._k=(1-e)/6}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:St(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function n(t){return new Tt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function It(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>c){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>c){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/f,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function Dt(t,e){this._context=t,this._alpha=e}Dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:It(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lt=function t(e){function n(t){return e?new Dt(t,e):new Pt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Rt(t,e){this._context=t,this._alpha=e}Rt.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:It(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nt=function t(e){function n(t){return e?new Rt(t,e):new Ot(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Bt(t,e){this._context=t,this._alpha=e}Bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:It(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ft=function t(e){function n(t){return e?new Bt(t,e):new Tt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function zt(t){this._context=t}function qt(t){return new zt(t)}function Gt(t){return t<0?-1:1}function Wt(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Gt(a)+Gt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ut(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Vt(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Yt(t){this._context=t}function Ht(t){this._context=new Xt(t)}function Xt(t){this._context=t}function Kt(t){return new Yt(t)}function $t(t){return new Ht(t)}function Zt(t){this._context=t}function Qt(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a=0)n[e]=e;return n}function oe(t,e){return t[e]}function se(){var t=n([]),e=ae,r=ie,i=oe;function a(n){var a,o,s=t.apply(this,arguments),u=n.length,l=s.length,c=new Array(l);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a0)for(var n,r,i,a,o,s,u=0,l=t[e[0]].length;u0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)}function ce(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;oa&&(a=e,r=n);return r}function pe(t){var e=t.map(ge);return ae(t).sort((function(t,n){return e[t]-e[n]}))}function ge(t){var e,n=0,r=-1,i=t.length;while(++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}this._x=t,this._y=e}},t.arc=M,t.area=O,t.areaRadial=B,t.curveBasis=yt,t.curveBasisClosed=bt,t.curveBasisOpen=Mt,t.curveBundle=Et,t.curveCardinal=Ct,t.curveCardinalClosed=kt,t.curveCardinalOpen=At,t.curveCatmullRom=Lt,t.curveCatmullRomClosed=Nt,t.curveCatmullRomOpen=Ft,t.curveLinear=E,t.curveLinearClosed=qt,t.curveMonotoneX=Kt,t.curveMonotoneY=$t,t.curveNatural=Jt,t.curveStep=ee,t.curveStepAfter=re,t.curveStepBefore=ne,t.line=C,t.lineRadial=N,t.linkHorizontal=H,t.linkRadial=K,t.linkVertical=X,t.pie=A,t.pointRadial=F,t.radialArea=B,t.radialLine=N,t.stack=se,t.stackOffsetDiverging=le,t.stackOffsetExpand=ue,t.stackOffsetNone=ie,t.stackOffsetSilhouette=ce,t.stackOffsetWiggle=fe,t.stackOrderAppearance=he,t.stackOrderAscending=pe,t.stackOrderDescending=ve,t.stackOrderInsideOut=_e,t.stackOrderNone=ae,t.stackOrderReverse=me,t.symbol=gt,t.symbolCircle=$,t.symbolCross=Z,t.symbolDiamond=tt,t.symbolSquare=ot,t.symbolStar=at,t.symbolTriangle=ut,t.symbolWye=dt,t.symbols=pt,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t){return function(){return t}}function n(t){return t[0]}function r(t){return t[1]}function i(){this._=null}function a(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function o(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function s(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function u(t){while(t.L)t=t.L;return t}function l(t,e,n,r){var i=[null,null],a=N.push(i)-1;return i.left=t,i.right=e,n&&f(i,t,e,n),r&&f(i,e,t,r),L[t.index].halfedges.push(a),L[e.index].halfedges.push(a),i}function c(t,e,n){var r=[e,n];return r.left=t,r}function f(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function h(t,e,n,r,i){var a,o=t[0],s=t[1],u=o[0],l=o[1],c=s[0],f=s[1],h=0,d=1,p=c-u,g=f-l;if(a=e-u,p||!(a>0)){if(a/=p,p<0){if(a0){if(a>d)return;a>h&&(h=a)}if(a=r-u,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>h&&(h=a)}else if(p>0){if(a0)){if(a/=g,g<0){if(a0){if(a>d)return;a>h&&(h=a)}if(a=i-l,g||!(a<0)){if(a/=g,g<0){if(a>d)return;a>h&&(h=a)}else if(g>0){if(a0||d<1)||(h>0&&(t[0]=[u+h*p,l+h*g]),d<1&&(t[1]=[u+d*p,l+d*g]),!0)}}}}}function d(t,e,n,r,i){var a=t[1];if(a)return!0;var o,s,u=t[0],l=t.left,c=t.right,f=l[0],h=l[1],d=c[0],p=c[1],g=(f+d)/2,v=(h+p)/2;if(p===h){if(g=r)return;if(f>d){if(u){if(u[1]>=i)return}else u=[g,n];a=[g,i]}else{if(u){if(u[1]1)if(f>d){if(u){if(u[1]>=i)return}else u=[(n-s)/o,n];a=[(i-s)/o,i]}else{if(u){if(u[1]=r)return}else u=[e,o*e+s];a=[r,o*r+s]}else{if(u){if(u[0]B||Math.abs(i[0][1]-i[1][1])>B)||delete N[a]}function g(t){return L[t.index]={site:t,halfedges:[]}}function v(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function _(t,e){return e[+(e.left!==t.site)]}function m(t,e){return e[+(e.left===t.site)]}function y(){for(var t,e,n,r,i=0,a=L.length;iB||Math.abs(v-d)>B)&&(u.splice(s,0,N.push(c(o,p,Math.abs(g-t)B?[t,Math.abs(h-t)B?[Math.abs(d-r)B?[n,Math.abs(h-n)B?[Math.abs(d-e)=-F)){var d=u*u+l*l,p=c*c+f*f,g=(f*d-l*p)/h,v=(u*p-c*d)/h,_=w.pop()||new M;_.arc=t,_.site=i,_.x=g+o,_.y=(_.cy=v+s)+Math.sqrt(g*g+v*v),t.circle=_;var m=null,y=R._;while(y)if(_.yB)s=s.L;else{if(i=a-I(s,o),!(i>B)){r>-B?(e=s.P,n=s):i>-B?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}g(t);var u=C(t);if(D.insert(e,u),e||n){if(e===n)return E(e),n=C(e.site),D.insert(u,n),u.edge=n.edge=l(e.site,u.site),j(e),void j(n);if(n){E(e),E(n);var c=e.site,h=c[0],d=c[1],p=t[0]-h,v=t[1]-d,_=n.site,m=_[0]-h,y=_[1]-d,x=2*(p*y-v*m),b=p*p+v*v,w=m*m+y*y,M=[(y*b-v*w)/x+h,(p*w-m*b)/x+d];f(n.edge,c,_,M),u.edge=l(c,t,null,M),n.edge=l(t,_,null,M),j(e),j(n)}else u.edge=l(e.site,u.site)}}function A(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;n=o.site;var s=n[0],u=n[1],l=u-e;if(!l)return s;var c=s-r,f=1/a-1/l,h=c/l;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*l)-u+l/2+i-a/2)))/f+r:(r+s)/2}function I(t,e){var n=t.N;if(n)return A(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var D,L,R,N,B=1e-6,F=1e-12;function z(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function q(t,e){return e[1]-t[1]||e[0]-t[0]}function G(t,e){var n,r,a,o=t.sort(q).pop();N=[],L=new Array(t.length),D=new i,R=new i;while(1)if(a=b,o&&(!a||o[1]=s)return null;var u=t-i.site[0],l=e-i.site[1],c=u*u+l*l;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=t-s[0],l=e-s[1],f=u*u+l*l;f0;--s)if(r=e[s].dequeue(),r){i=i.concat(l(t,e,n,r,!0));break}}return i}function l(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,f(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o["in"]-=i,f(e,n,o)})),t.removeNode(i.v),o}function c(t,e){var n=new i,o=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),a=r+i;n.setEdge(t.v,t.w,a),s=Math.max(s,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w)["in"]+=i)}));var u=r.range(s+o+3).map((function(){return new a})),l=o+1;return r.forEach(n.nodes(),(function(t){f(u,l,n.node(t))})),{graph:n,buckets:u,zeroIdx:l}}function f(t,e,n){n.out?n["in"]?t[n.out-n["in"]+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},"./node_modules/_dagre@0.8.5@dagre/lib/layout.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/acyclic.js"),a=n("./node_modules/_dagre@0.8.5@dagre/lib/normalize.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js"),s=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js").normalizeRanks,u=n("./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js"),l=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js").removeEmptyRanks,c=n("./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js"),f=n("./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.js"),h=n("./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.js"),d=n("./node_modules/_dagre@0.8.5@dagre/lib/order/index.js"),p=n("./node_modules/_dagre@0.8.5@dagre/lib/position/index.js"),g=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js"),v=n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function _(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return C(t)}));n(" runLayout",(function(){m(e,n)})),n(" updateInputGraph",(function(){y(t,e)}))}))}function m(t,e){e(" makeSpaceForEdgeLabels",(function(){O(t)})),e(" removeSelfEdges",(function(){B(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){c.run(t)})),e(" rank",(function(){o(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){k(t)})),e(" removeEmptyRanks",(function(){l(t)})),e(" nestingGraph.cleanup",(function(){c.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){T(t)})),e(" removeEdgeLabelProxies",(function(){A(t)})),e(" normalize.run",(function(){a.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){F(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){z(t)})),e(" removeBorderNodes",(function(){N(t)})),e(" normalize.undo",(function(){a.undo(t)})),e(" fixupEdgeLabelCoords",(function(){L(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){I(t)})),e(" assignNodeIntersects",(function(){D(t)})),e(" reversePoints",(function(){R(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}function y(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}t.exports=_;var x=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},w=["acyclicer","ranker","rankdir","align"],M=["width","height"],j={width:0,height:0},E=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},P=["labelpos"];function C(t){var e=new v({multigraph:!0,compound:!0}),n=G(t.graph());return e.setGraph(r.merge({},b,q(n,x),r.pick(n,w))),r.forEach(t.nodes(),(function(n){var i=G(t.node(n));e.setNode(n,r.defaults(q(i,M),j)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=G(t.edge(n));e.setEdge(n,r.merge({},S,q(i,E),r.pick(i,P)))})),e}function O(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}function k(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w),a={rank:(i.rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",a,"_ep")}}))}function T(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}function A(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}function I(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),s=o.marginx||0,u=o.marginy||0;function l(t){var r=t.x,o=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-u/2),a=Math.max(a,o+u/2)}r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&l(n)})),e-=s,i-=u,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+s,o.height=a-i+u}function D(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(g.intersectRect(a,n)),i.points.push(g.intersectRect(o,r))}))}function L(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}))}function R(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}function N(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}function B(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}function F(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}function z(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}function q(t,e){return r.mapValues(r.pick(t,e),Number)}function G(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js":function(t,e,n){var r;try{r={cloneDeep:n("./node_modules/_lodash@4.17.15@lodash/cloneDeep.js"),constant:n("./node_modules/_lodash@4.17.15@lodash/constant.js"),defaults:n("./node_modules/_lodash@4.17.15@lodash/defaults.js"),each:n("./node_modules/_lodash@4.17.15@lodash/each.js"),filter:n("./node_modules/_lodash@4.17.15@lodash/filter.js"),find:n("./node_modules/_lodash@4.17.15@lodash/find.js"),flatten:n("./node_modules/_lodash@4.17.15@lodash/flatten.js"),forEach:n("./node_modules/_lodash@4.17.15@lodash/forEach.js"),forIn:n("./node_modules/_lodash@4.17.15@lodash/forIn.js"),has:n("./node_modules/_lodash@4.17.15@lodash/has.js"),isUndefined:n("./node_modules/_lodash@4.17.15@lodash/isUndefined.js"),last:n("./node_modules/_lodash@4.17.15@lodash/last.js"),map:n("./node_modules/_lodash@4.17.15@lodash/map.js"),mapValues:n("./node_modules/_lodash@4.17.15@lodash/mapValues.js"),max:n("./node_modules/_lodash@4.17.15@lodash/max.js"),merge:n("./node_modules/_lodash@4.17.15@lodash/merge.js"),min:n("./node_modules/_lodash@4.17.15@lodash/min.js"),minBy:n("./node_modules/_lodash@4.17.15@lodash/minBy.js"),now:n("./node_modules/_lodash@4.17.15@lodash/now.js"),pick:n("./node_modules/_lodash@4.17.15@lodash/pick.js"),range:n("./node_modules/_lodash@4.17.15@lodash/range.js"),reduce:n("./node_modules/_lodash@4.17.15@lodash/reduce.js"),sortBy:n("./node_modules/_lodash@4.17.15@lodash/sortBy.js"),uniqueId:n("./node_modules/_lodash@4.17.15@lodash/uniqueId.js"),values:n("./node_modules/_lodash@4.17.15@lodash/values.js"),zipObject:n("./node_modules/_lodash@4.17.15@lodash/zipObject.js")}}catch(i){}r||(r=window._),t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js");function a(t){var e=i.addDummyNode(t,"root",{},"_root"),n=s(t),a=r.max(r.values(n))-1,l=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=l}));var c=u(t)+1;r.forEach(t.children(),(function(r){o(t,e,l,c,a,n,r)})),t.graph().nodeRankFactor=l}function o(t,e,n,a,s,u,l){var c=t.children(l);if(c.length){var f=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),d=t.node(l);t.setParent(f,l),d.borderTop=f,t.setParent(h,l),d.borderBottom=h,r.forEach(c,(function(r){o(t,e,n,a,s,u,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=c!==d?1:s-u[l]+1;t.setEdge(f,c,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(l)||t.setEdge(e,f,{weight:0,minlen:s+u[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})}function s(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}function u(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}function l(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)}))}t.exports={run:a,cleanup:l}},"./node_modules/_dagre@0.8.5@dagre/lib/normalize.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js");function a(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){o(t,e)}))}function o(t,e){var n=e.v,r=t.node(n).rank,a=e.w,o=t.node(a).rank,s=e.name,u=t.edge(e),l=u.labelRank;if(o!==r+1){var c,f,h;for(t.removeEdge(e),h=0,++r;r0)e%2&&(n+=u[e+1]),e=e-1>>1,u[e]+=t.weight;l+=t.weight*n}))),l}t.exports=i},"./node_modules/_dagre@0.8.5@dagre/lib/order/index.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/order/init-order.js"),a=n("./node_modules/_dagre@0.8.5@dagre/lib/order/cross-count.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js"),s=n("./node_modules/_dagre@0.8.5@dagre/lib/order/build-layer-graph.js"),u=n("./node_modules/_dagre@0.8.5@dagre/lib/order/add-subgraph-constraints.js"),l=n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,c=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js");function f(t){var e=c.maxRank(t),n=h(t,r.range(1,e+1),"inEdges"),o=h(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);p(t,s);for(var u,l=Number.POSITIVE_INFINITY,f=0,g=0;g<4;++f,++g){d(f%2?n:o,f%4>=2),s=c.buildLayerMatrix(t);var v=a(t,s);v=t.barycenter)&&o(t,e)}}function i(e){return function(n){n["in"].push(e),0===--n.indegree&&t.push(n)}}while(t.length){var a=t.pop();e.push(a),r.forEach(a["in"].reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}function o(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}t.exports=i},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js"),a=n("./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js");function s(t,e,n,c){var f=t.children(e),h=t.node(e),d=h?h.borderLeft:void 0,p=h?h.borderRight:void 0,g={};d&&(f=r.filter(f,(function(t){return t!==d&&t!==p})));var v=i(t,f);r.forEach(v,(function(e){if(t.children(e.v).length){var i=s(t,e.v,n,c);g[e.v]=i,r.has(i,"barycenter")&&l(e,i)}}));var _=a(v,n);u(_,g);var m=o(_,c);if(d&&(m.vs=r.flatten([d,m.vs,p],!0),t.predecessors(d).length)){var y=t.node(t.predecessors(d)[0]),x=t.node(t.predecessors(p)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+x.order)/(m.weight+2),m.weight+=2}return m}function u(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}function l(t,e){r.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}t.exports=s},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js");function a(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=n.lhs,u=r.sortBy(n.rhs,(function(t){return-t.i})),l=[],c=0,f=0,h=0;a.sort(s(!!e)),h=o(l,u,h),r.forEach(a,(function(t){h+=t.vs.length,l.push(t.vs),c+=t.barycenter*t.weight,f+=t.weight,h=o(l,u,h)}));var d={vs:r.flatten(l,!0)};return f&&(d.barycenter=c/f,d.weight=f),d}function o(t,e,n){var i;while(e.length&&(i=r.last(e)).i<=n)e.pop(),t.push(i.vs),n++;return n}function s(t){return function(e,n){return e.barycentern.barycenter?1:t?n.i-e.i:e.i-n.i}}t.exports=a},"./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function i(t){var e=o(t);r.forEach(t.graph().dummyChains,(function(n){var r=t.node(n),i=r.edgeObj,o=a(t,e,i.v,i.w),s=o.path,u=o.lca,l=0,c=s[l],f=!0;while(n!==i.w){if(r=t.node(n),f){while((c=s[l])!==u&&t.node(c).maxRanku||l>e[i].lim));a=i,i=r;while((i=t.parent(i))!==a)s.push(i);return{path:o.concat(s.reverse()),lca:a}}function o(t){var e={},n=0;function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}}return r.forEach(t.children(),i),e}t.exports=i},"./node_modules/_dagre@0.8.5@dagre/lib/position/bk.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,a=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js");function o(t,e){var n={};function i(e,i){var a=0,o=0,s=e.length,c=r.last(i);return r.forEach(i,(function(e,f){var h=u(t,e),d=h?t.node(h).order:s;(h||e===c)&&(r.forEach(i.slice(o,f+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(os)&&l(n,e,u)}))}))}function a(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(a=t.node(l[0]).order,i(n,s,u,o,a),s=u,o=a)}i(n,s,n.length,a,e.length)})),n}return r.reduce(e,a),n}function u(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}function l(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function f(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length){u=r.sortBy(u,(function(t){return s[t]}));for(var l=(u.length-1)/2,f=Math.floor(l),h=Math.ceil(l);f<=h;++f){var d=u[f];o[t]===t&&eu.lim&&(l=u,c=!0);var f=r.filter(e.edges(),(function(e){return c===b(t,t.node(e.v),l)&&c!==b(t,t.node(e.w),l)}));return r.minBy(f,(function(t){return a(e,t)}))}function m(t,e,n,r){var i=n.v,a=n.w;t.removeEdge(i,a),t.setEdge(r.v,r.w,{}),p(t),f(t,e),y(t,e)}function y(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}function x(t,e,n){return t.hasEdge(e,n)}function b(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=c,c.initLowLimValues=p,c.initCutValues=f,c.calcCutValue=d,c.leaveEdge=v,c.enterEdge=_,c.exchangeEdges=m},"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function i(t){var e={};function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&void 0!==o&&null!==o||(o=0),a.rank=o}r.forEach(t.sources(),n)}function a(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}t.exports={longestPath:i,slack:a}},"./node_modules/_dagre@0.8.5@dagre/lib/util.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e}function s(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function u(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)}function l(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)}function c(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,u=t.width/2,l=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(o)*l?(s<0&&(l=-l),n=l*o/s,r=l):(o<0&&(u=-u),n=u,r=u*s/o),{x:i+n,y:a+r}}function f(t){var e=r.map(r.range(g(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e}function h(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))}function d(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!==0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))}function p(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),a(t,"border",i,e)}function g(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}function v(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function _(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}}function m(t,e){return e()}t.exports={addDummyNode:a,simplify:o,asNonCompoundGraph:s,successorWeights:u,predecessorWeights:l,intersectRect:c,buildLayerMatrix:f,normalizeRanks:h,removeEmptyRanks:d,addBorderNode:p,maxRank:g,partition:v,time:_,notime:m}},"./node_modules/_dagre@0.8.5@dagre/lib/version.js":function(t,e){t.exports="0.8.5"},"./node_modules/_graphlib@2.1.8@graphlib/index.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/index.js");t.exports={Graph:r.Graph,json:n("./node_modules/_graphlib@2.1.8@graphlib/lib/json.js"),alg:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js"),version:r.version}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(t){var e,n={},i=[];function a(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),a),r.each(t.predecessors(i),a))}return r.each(t.nodes(),(function(t){e=[],a(t),e.length&&i.push(e)})),i}t.exports=i},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);a(t,e,"post"===n,s,i,o)})),o}function a(t,e,n,i,o,s){r.has(i,e)||(i[e]=!0,n||s.push(e),r.each(o(e),(function(e){a(t,e,n,i,o,s)})),n&&s.push(e))}t.exports=i},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js"),i=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function a(t,e,n){return i.transform(t.nodes(),(function(i,a){i[a]=r(t,a,e,n)}),{})}t.exports=a},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n("./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js");t.exports=o;var a=r.constant(1);function o(t,e,n,r){return s(t,String(e),n||a,r||function(e){return t.outEdges(e)})}function s(t,e,n,r){var a,o,s={},u=new i,l=function(t){var e=t.v!==a?t.v:t.w,r=s[e],i=n(t),l=o.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l0){if(a=u.removeMin(),o=s[a],o.distance===Number.POSITIVE_INFINITY)break;r(a).forEach(l)}return s}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js");function a(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}t.exports=a},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=a;var i=r.constant(1);function a(t,e,n){return o(t,e||i,n||function(e){return t.outEdges(e)})}function o(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[t],i=e[n],o=a[n],s=r.distance+i.distance;s0){if(n=u.removeMin(),r.has(s,n))o.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(n).forEach(l)}return o}t.exports=o},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(t){var e=0,n=[],i={},a=[];function o(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(o(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var l,c=[];do{l=n.pop(),i[l].onStack=!1,c.push(l)}while(s!==l);a.push(c)}}return t.nodes().forEach((function(t){r.has(i,t)||o(t)})),a}t.exports=i},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(t){var e={},n={},i=[];function o(s){if(r.has(n,s))throw new a;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),o),delete n[s],i.push(s))}if(r.each(t.sinks(),o),r.size(e)!==t.nodeCount())throw new a;return i}function a(){}t.exports=i,i.CycleException=a,a.prototype=new Error},"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1,n[e].priorityu){var l=s;s=u,u=l}return s+o+u+o+(r.isUndefined(a)?i:a)}function f(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function h(t,e){return c(t,e.v,e.w,e.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(t){return this._label=t,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},s.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},s.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},s.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=a,this._children[t]={},this._children[a][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},s.prototype.node=function(t){return this._nodes[t]},s.prototype.hasNode=function(t){return r.has(this._nodes,t)},s.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},s.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=a;else{e+="";for(var n=e;!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},s.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},s.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==a)return e}},s.prototype.children=function(t){if(r.isUndefined(t)&&(t=a),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===a)return this.nodes();if(this.hasNode(t))return[]}},s.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},s.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},s.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},s.prototype.isLeaf=function(t){var e;return e=this.isDirected()?this.successors(t):this.neighbors(t),0===e.length},s.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function a(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:a(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,a(t))})),e},s.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},s.prototype.setEdge=function(){var t,e,n,i,a=!1,o=arguments[0];"object"===typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var s=c(this._isDirected,t,e,n);if(r.has(this._edgeLabels,s))return a&&(this._edgeLabels[s]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=a?i:this._defaultEdgeLabelFn(t,e,n);var l=f(this._isDirected,t,e,n);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[s]=l,u(this._preds[e],t),u(this._sucs[t],e),this._in[e][s]=l,this._out[t][s]=l,this._edgeCount++,this},s.prototype.edge=function(t,e,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},s.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[e],t),l(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},s.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},s.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},s.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},"./node_modules/_graphlib@2.1.8@graphlib/lib/index.js":function(t,e,n){t.exports={Graph:n("./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js"),version:n("./node_modules/_graphlib@2.1.8@graphlib/lib/version.js")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/json.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n("./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js");function a(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:s(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e}function o(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),a={v:e};return r.isUndefined(n)||(a.value=n),r.isUndefined(i)||(a.parent=i),a}))}function s(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}function u(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}t.exports={write:a,read:u}},"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js":function(t,e,n){var r;try{r={clone:n("./node_modules/_lodash@4.17.15@lodash/clone.js"),constant:n("./node_modules/_lodash@4.17.15@lodash/constant.js"),each:n("./node_modules/_lodash@4.17.15@lodash/each.js"),filter:n("./node_modules/_lodash@4.17.15@lodash/filter.js"),has:n("./node_modules/_lodash@4.17.15@lodash/has.js"),isArray:n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),isEmpty:n("./node_modules/_lodash@4.17.15@lodash/isEmpty.js"),isFunction:n("./node_modules/_lodash@4.17.15@lodash/isFunction.js"),isUndefined:n("./node_modules/_lodash@4.17.15@lodash/isUndefined.js"),keys:n("./node_modules/_lodash@4.17.15@lodash/keys.js"),map:n("./node_modules/_lodash@4.17.15@lodash/map.js"),reduce:n("./node_modules/_lodash@4.17.15@lodash/reduce.js"),size:n("./node_modules/_lodash@4.17.15@lodash/size.js"),transform:n("./node_modules/_lodash@4.17.15@lodash/transform.js"),union:n("./node_modules/_lodash@4.17.15@lodash/union.js"),values:n("./node_modules/_lodash@4.17.15@lodash/values.js")}}catch(i){}r||(r=window._),t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/version.js":function(t,e){t.exports="2.1.8"},"./node_modules/_isarray@0.0.1@isarray/index.js":function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},"./node_modules/_lodash@4.17.15@lodash/_DataView.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getNative.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_root.js"),a=r(i,"DataView");t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_Hash.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_hashClear.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_hashDelete.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_hashGet.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_hashHas.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_hashSet.js");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e-1}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_arrayIncludesWith.js":function(t,e){function n(t,e,n){var r=-1,i=null==t?0:t.length;while(++r0&&n(c)?e>1?a(c,e-1,n,o,s):r(s,c):o||(s[s.length]=c)}return s}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseFor.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_createBaseFor.js"),i=r();t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseFor.js"),i=n("./node_modules/_lodash@4.17.15@lodash/keys.js");function a(t,e){return t&&r(t,e,i)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseGet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_castPath.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_toKey.js");function a(t,e){e=r(e,t);var n=0,a=e.length;while(null!=t&&ne}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseHas.js":function(t,e){var n=Object.prototype,r=n.hasOwnProperty;function i(t,e){return null!=t&&r.call(t,e)}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_baseHasIn.js":function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseIndexOf.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseFindIndex.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseIsNaN.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_strictIndexOf.js");function o(t,e,n){return e===e?a(t,e,n):r(t,i,n)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseIsArguments.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object Arguments]";function o(t){return i(t)&&r(t)==a}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseIsEqual.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsEqualDeep.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js");function a(t,e,n,o,s){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:r(t,e,n,o,a,s))}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseIsEqualDeep.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Stack.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_equalArrays.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_equalByTag.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_equalObjects.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_getTag.js"),u=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),l=n("./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),c=n("./node_modules/_lodash@4.17.15@lodash/isTypedArray.js"),f=1,h="[object Arguments]",d="[object Array]",p="[object Object]",g=Object.prototype,v=g.hasOwnProperty;function _(t,e,n,g,_,m){var y=u(t),x=u(e),b=y?d:s(t),w=x?d:s(e);b=b==h?p:b,w=w==h?p:w;var M=b==p,j=w==p,E=b==w;if(E&&l(t)){if(!l(e))return!1;y=!0,M=!1}if(E&&!M)return m||(m=new r),y||c(t)?i(t,e,n,g,_,m):a(t,e,b,n,g,_,m);if(!(n&f)){var S=M&&v.call(t,"__wrapped__"),P=j&&v.call(e,"__wrapped__");if(S||P){var C=S?t.value():t,O=P?e.value():e;return m||(m=new r),_(C,O,n,g,m)}}return!!E&&(m||(m=new r),o(t,e,n,g,_,m))}t.exports=_},"./node_modules/_lodash@4.17.15@lodash/_baseIsMap.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getTag.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object Map]";function o(t){return i(t)&&r(t)==a}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseIsMatch.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Stack.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseIsEqual.js"),a=1,o=2;function s(t,e,n,s){var u=n.length,l=u,c=!s;if(null==t)return!l;t=Object(t);while(u--){var f=n[u];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}while(++u=l){var v=e?null:s(t);if(v)return u(v);d=!1,f=o,g=new r}else g=e?[]:p;t:while(++ce||o&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!c&&t=u)return l;var c=n[i];return l*("desc"==c?-1:1)}}return t.index-e.index}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_copyArray.js":function(t,e){function n(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n1?n[a-1]:void 0,s=a>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);while(++r-1?s[u?e[l]:l]:void 0}}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_createRange.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseRange.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js"),a=n("./node_modules/_lodash@4.17.15@lodash/toFinite.js");function o(t){return function(e,n,o){return o&&"number"!=typeof o&&i(e,n,o)&&(n=o=void 0),e=a(e),void 0===n?(n=e,e=0):n=a(n),o=void 0===o?eh))return!1;var p=c.get(t);if(p&&c.get(e))return p==e;var g=-1,v=!0,_=n&s?new r:void 0;c.set(t,e),c.set(e,t);while(++g-1&&t%1==0&&t-1}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_listCacheSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js");function i(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_mapCacheClear.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Hash.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_ListCache.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_Map.js");function o(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_mapCacheDelete.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getMapData.js");function i(t){var e=r(this,t)["delete"](t);return this.size-=e?1:0,e}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_mapCacheGet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getMapData.js");function i(t){return r(this,t).get(t)}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_mapCacheHas.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getMapData.js");function i(t){return r(this,t).has(t)}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_mapCacheSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getMapData.js");function i(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_mapToArray.js":function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_matchesStrictComparable.js":function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_memoizeCapped.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/memoize.js"),i=500;function a(t){var e=r(t,(function(t){return n.size===i&&n.clear(),t})),n=e.cache;return e}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getNative.js"),i=r(Object,"create");t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_nativeKeys.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_overArg.js"),i=r(Object.keys,Object);t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_nativeKeysIn.js":function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js":function(t,e,n){(function(t){var r=n("./node_modules/_lodash@4.17.15@lodash/_freeGlobal.js"),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i,s=o&&r.process,u=function(){try{var t=a&&a.require&&a.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=u}).call(this,n("./node_modules/_webpack@4.42.1@webpack/buildin/module.js")(t))},"./node_modules/_lodash@4.17.15@lodash/_objectToString.js":function(t,e){var n=Object.prototype,r=n.toString;function i(t){return r.call(t)}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_overArg.js":function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_overRest.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_apply.js"),i=Math.max;function a(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){var a=arguments,o=-1,s=i(a.length-e,0),u=Array(s);while(++o0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_stackClear.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_ListCache.js");function i(){this.__data__=new r,this.size=0}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_stackDelete.js":function(t,e){function n(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_stackGet.js":function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_stackHas.js":function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_stackSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_ListCache.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_Map.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_MapCache.js"),o=200;function s(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length2?e[2]:void 0;l&&a(e[0],e[1],l)&&(r=1);while(++n-1&&t%1==0&&t<=n}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/isMap.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsMap.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),o=a&&a.isMap,s=o?i(o):r;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isObject.js":function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js":function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/isPlainObject.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),o="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,f=l.call(Object);function h(t){if(!a(t)||r(t)!=o)return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}t.exports=h},"./node_modules/_lodash@4.17.15@lodash/isSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsSet.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),o=a&&a.isSet,s=o?i(o):r;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isString.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),o="[object String]";function s(t){return"string"==typeof t||!i(t)&&a(t)&&r(t)==o}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isSymbol.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object Symbol]";function o(t){return"symbol"==typeof t||i(t)&&r(t)==a}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/isTypedArray.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsTypedArray.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),o=a&&a.isTypedArray,s=o?i(o):r;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isUndefined.js":function(t,e){function n(t){return void 0===t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/keys.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayLikeKeys.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseKeys.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function o(t){return a(t)?r(t):i(t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/keysIn.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayLikeKeys.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseKeysIn.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function o(t){return a(t)?r(t,!0):i(t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/last.js":function(t,e){function n(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/map.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayMap.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseMap.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isArray.js");function s(t,e){var n=o(t)?r:a;return n(t,i(e,3))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/mapValues.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseAssignValue.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js");function o(t,e){var n={};return e=a(e,3),i(t,(function(t,i,a){r(n,i,e(t,i,a))})),n}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/max.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseGt.js"),a=n("./node_modules/_lodash@4.17.15@lodash/identity.js");function o(t){return t&&t.length?r(t,a,i):void 0}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/memoize.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_MapCache.js"),i="Expected a function";function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(a.Cache||r),n}a.Cache=r,t.exports=a},"./node_modules/_lodash@4.17.15@lodash/merge.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseMerge.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_createAssigner.js"),a=i((function(t,e,n){r(t,e,n)}));t.exports=a},"./node_modules/_lodash@4.17.15@lodash/min.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseLt.js"),a=n("./node_modules/_lodash@4.17.15@lodash/identity.js");function o(t){return t&&t.length?r(t,a,i):void 0}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/minBy.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseLt.js");function o(t,e){return t&&t.length?r(t,i(e,2),a):void 0}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/noop.js":function(t,e){function n(){}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/now.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_root.js"),i=function(){return r.Date.now()};t.exports=i},"./node_modules/_lodash@4.17.15@lodash/pick.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_basePick.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_flatRest.js"),a=i((function(t,e){return null==t?{}:r(t,e)}));t.exports=a},"./node_modules/_lodash@4.17.15@lodash/property.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseProperty.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_basePropertyDeep.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_isKey.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_toKey.js");function s(t){return a(t)?r(o(t)):i(t)}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/range.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_createRange.js"),i=r();t.exports=i},"./node_modules/_lodash@4.17.15@lodash/reduce.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayReduce.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseEach.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseReduce.js"),s=n("./node_modules/_lodash@4.17.15@lodash/isArray.js");function u(t,e,n){var u=s(t)?r:o,l=arguments.length<3;return u(t,a(e,4),n,l,i)}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/size.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseKeys.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_getTag.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isString.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_stringSize.js"),u="[object Map]",l="[object Set]";function c(t){if(null==t)return 0;if(a(t))return o(t)?s(t):t.length;var e=i(t);return e==u||e==l?t.size:r(t).length}t.exports=c},"./node_modules/_lodash@4.17.15@lodash/sortBy.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseOrderBy.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js"),s=a((function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},"./node_modules/_lodash@4.17.15@lodash/stubArray.js":function(t,e){function n(){return[]}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/stubFalse.js":function(t,e){function n(){return!1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/toFinite.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/toNumber.js"),i=1/0,a=17976931348623157e292;function o(t){if(!t)return 0===t?t:0;if(t=r(t),t===i||t===-i){var e=t<0?-1:1;return e*a}return t===t?t:0}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/toInteger.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/toFinite.js");function i(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/toNumber.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isSymbol.js"),a=NaN,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(t){if("number"==typeof t)return t;if(i(t))return a;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=u.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):s.test(t)?a:+t}t.exports=f},"./node_modules/_lodash@4.17.15@lodash/toPlainObject.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_copyObject.js"),i=n("./node_modules/_lodash@4.17.15@lodash/keysIn.js");function a(t){return r(t,i(t))}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/toString.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseToString.js");function i(t){return null==t?"":r(t)}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/transform.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayEach.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseCreate.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),u=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),l=n("./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),c=n("./node_modules/_lodash@4.17.15@lodash/isFunction.js"),f=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),h=n("./node_modules/_lodash@4.17.15@lodash/isTypedArray.js");function d(t,e,n){var d=u(t),p=d||l(t)||h(t);if(e=o(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:f(t)&&c(g)?i(s(t)):{}}return(p?r:a)(t,(function(t,r,i){return e(n,t,r,i)})),n}t.exports=d},"./node_modules/_lodash@4.17.15@lodash/union.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseUniq.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isArrayLikeObject.js"),s=i((function(t){return a(r(t,1,o,!0))}));t.exports=s},"./node_modules/_lodash@4.17.15@lodash/uniqueId.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/toString.js"),i=0;function a(t){var e=++i;return r(t)+e}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/values.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseValues.js"),i=n("./node_modules/_lodash@4.17.15@lodash/keys.js");function a(t){return null==t?[]:r(t,i(t))}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/zipObject.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_assignValue.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseZipObject.js");function a(t,e){return i(t||[],e||[],r)}t.exports=a},"./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js":function(t,e){t.exports=i;var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function i(t){var e=[];return t.replace(r,(function(t,r,i){var a=r.toLowerCase();i=o(i),"m"==a&&i.length>2&&(e.push([r].concat(i.splice(0,2))),a="l",r="m"==r?"l":"L");while(1){if(i.length==n[a])return i.unshift(r),e.push(i);if(i.length=t){var p=(a-t)/(a-r[2]),g=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:a,pos:g}}r[0]=n[0],r[1]=n[1],r[2]=a}}else if("Q"===u[0]){r[0]=i[0]=n[0],r[1]=i[1]=n[1],r[2]=a;for(l=100,c=0;c<=l;c++){f=c/l,h=m(u,f),d=y(u,f);if(a+=s(n[0],n[1],h,d),n[0]=h,n[1]=d,"number"===typeof t&&a>=t){p=(a-t)/(a-r[2]),g=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:a,pos:g}}r[0]=n[0],r[1]=n[1],r[2]=a}}else if("L"===u[0]){if(r[0]=n[0],r[1]=n[1],r[2]=a,a+=s(n[0],n[1],u[1],u[2]),n[0]=u[1],n[1]=u[2],"number"===typeof t&&a>=t){p=(a-t)/(a-r[2]),g=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:a,pos:g}}r[0]=n[0],r[1]=n[1],r[2]=a}}return{length:a,pos:n};function v(t,e){return Math.pow(1-e,3)*i[0]+3*Math.pow(1-e,2)*e*t[1]+3*(1-e)*Math.pow(e,2)*t[3]+Math.pow(e,3)*t[5]}function _(t,e){return Math.pow(1-e,3)*i[1]+3*Math.pow(1-e,2)*e*t[2]+3*(1-e)*Math.pow(e,2)*t[4]+Math.pow(e,3)*t[6]}function m(t,e){return Math.pow(1-e,2)*i[0]+2*(1-e)*e*t[1]+Math.pow(e,2)*t[3]}function y(t,e){return Math.pow(1-e,2)*i[1]+2*(1-e)*e*t[2]+Math.pow(e,2)*t[4]}}},"./node_modules/_regression@2.0.1@regression/dist/regression.js":function(t,e,n){var r,i,a;(function(n,o){i=[t],r=o,a="function"===typeof r?r.apply(e,i):r,void 0===a||(t.exports=a)})(0,(function(t){"use strict";function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var n=Object.assign||function(t){for(var e=1;eMath.abs(n[a][o])&&(o=s);for(var u=a;u=a;f--)n[f][c]-=n[f][a]*n[a][c]/n[a][a]}for(var h=r-1;h>=0;h--){for(var d=0,p=h+1;p=0;b--)x+=b>1?_[b]+"x^"+b+" + ":1===b?_[b]+"x + ":_[b];return{string:x,points:y,predict:m,equation:[].concat(r(_)).reverse(),r2:s(a(t,y),e.precision)}}};function l(){var t=function(t,r){return n({_round:s},t,e({},r,(function(t,e){return u[r](t,n({},i,e))})))};return Object.keys(u).reduce(t,{})}t.exports=l()}))},"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js":function(t,e,n){!function(t,n){n(e)}(0,(function(t){"use strict";function e(t){if(0===t.length)return 0;for(var e,n=t[0],r=0,i=1;i=Math.abs(t[i])?r+=n-e+t[i]:r+=t[i]-e+n,n=e;return n+r}function n(t){if(0===t.length)throw new Error("mean requires at least one data point");return e(t)/t.length}function r(t,e){var r,i,a=n(t),o=0;if(2===e)for(i=0;ie&&(e=t[n]);return e}function c(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||1l&&h(t,n,r);cl;)d--}t[n]===l?h(t,n,d):h(t,++d,r),d<=e&&(n=d+1),e<=d&&(r=d-1)}}function h(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function d(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;rt[t.length-1])return 1;var n=function(t,e){for(var n=0,r=0,i=t.length;r>>1]?i=n:r=-~n;return r}(t,e);if(t[n]!==e)return n/t.length;n++;var r=function(t,e){for(var n=0,r=0,i=t.length;r=t[n=r+i>>>1]?r=-~n:i=n;return r}(t,e);if(r===n)return n/t.length;var i=r-n+1;return i*(r+n)/2/i/t.length}function m(t){var e=d(t,.75),n=d(t,.25);if("number"==typeof e&&"number"==typeof n)return e-n}function y(t){return+d(t,.5)}function x(t){for(var e=y(t),n=[],r=0;r=r[n][s]);--d)(c=E(u,s,a,o)+r[n-1][u-1])n&&(n=t[r]),t[r]t.length)throw new Error("cannot generate more classes than there are data values");var n=s(t);if(1===M(n))return[n];var r=j(e,n.length),i=j(e,n.length);!function(t,e,n){for(var r,i=e[0].length,a=t[Math.floor(i/2)],o=[],s=[],u=0;u=Math.abs(a)&&(d+=1);else if("greater"===r)for(l=0;l<=i;l++)o[l]>=a&&(d+=1);else for(l=0;l<=i;l++)o[l]<=a&&(d+=1);return d/i},t.bisect=function(t,e,n,r,i){if("function"!=typeof t)throw new TypeError("func must be a function");for(var a=0;ao&&(o=t[0]),t[1]s&&(s=t[1])}function l(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(l);break;case"Point":u(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(u);break}}for(e in t.arcs.forEach((function(t){var e,n=-1,u=t.length;while(++no&&(o=e[0]),e[1]s&&(s=e[1])})),t.objects)l(t.objects[e]);return[i,a,o,s]}function i(t,e){var n,r=t.length,i=r-e;while(i<--r)n=t[i],t[i++]=t[r],t[r]=n}function a(t,e){return"string"===typeof e&&(e=t.objects[e]),"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map((function(e){return o(t,e)}))}:o(t,e)}function o(t,e){var n=e.id,r=e.bbox,i=null==e.properties?{}:e.properties,a=s(t,e);return null==n&&null==r?{type:"Feature",properties:i,geometry:a}:null==r?{type:"Feature",id:n,properties:i,geometry:a}:{type:"Feature",id:n,bbox:r,properties:i,geometry:a}}function s(t,e){var r=n(t.transform),a=t.arcs;function o(t,e){e.length&&e.pop();for(var n=a[t<0?~t:t],o=0,s=n.length;o1)r=f(t,e,n);else for(i=0,r=new Array(a=t.arcs.length);i1)for(var a,o,s=1,c=l(i[0]);sc&&(o=i[0],i[0]=i[s],i[s]=o,c=a);return i})).filter((function(t){return t.length>0}))}}function g(t,e){var n=0,r=t.length;while(n>>1;t[i]=2))throw new Error("n must be \u22652");u=t.bbox||r(t);var n,i=u[0],a=u[1],o=u[2],s=u[3];e={scale:[o-i?(o-i)/(n-1):1,s-a?(s-a)/(n-1):1],translate:[i,a]}}var u,l,c=_(e),f=t.objects,h={};function d(t){return c(t)}function p(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(p)};break;case"Point":e={type:"Point",coordinates:d(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function g(t){var e,n=0,r=1,i=t.length,a=new Array(i);a[0]=c(t[0],0);while(++n=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},l=function(t,e){return function(n,r){e(n,r,t)}},c=function(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)},f=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function o(t){try{u(r.next(t))}catch(e){a(e)}}function s(t){try{u(r["throw"](t))}catch(e){a(e)}}function u(t){t.done?n(t.value):i(t.value).then(o,s)}u((r=r.apply(t,e||[])).next())}))},h=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(t){return function(e){return u([t,e])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(o)try{if(n=1,r&&(i=2&a[0]?r["return"]:a[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(r=a.next()).done)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a["return"])&&n.call(a)}finally{if(i)throw i.error}}return o},v=function(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{u(i[t](e))}catch(n){f(a[0][3],n)}}function u(t){t.value instanceof m?Promise.resolve(t.value.v).then(l,c):f(a[0][2],t)}function l(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}},x=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:m(t[r](e)),done:"return"===r}:i?i(e):e}:i}},b=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"===typeof p?p(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,a){e=t[n](e),i(r,a,e.done,e.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}},w=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},M=function(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},j=function(t){return t&&t.__esModule?t:{default:t}},E=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},S=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},t("__extends",a),t("__assign",o),t("__rest",s),t("__decorate",u),t("__param",l),t("__metadata",c),t("__awaiter",f),t("__generator",h),t("__exportStar",d),t("__values",p),t("__read",g),t("__spread",v),t("__spreadArrays",_),t("__await",m),t("__asyncGenerator",y),t("__asyncDelegator",x),t("__asyncValues",b),t("__makeTemplateObject",w),t("__importStar",M),t("__importDefault",j),t("__classPrivateFieldGet",E),t("__classPrivateFieldSet",S)}))}).call(this,n("./node_modules/_webpack@4.42.1@webpack/buildin/global.js"))},"./node_modules/_webpack@4.42.1@webpack/buildin/global.js":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},"./node_modules/_webpack@4.42.1@webpack/buildin/module.js":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js":function(t,e,n){var r;(function(e){"use strict";function i(){}var a=i.prototype,o=e.EventEmitter;function s(t,e){var n=t.length;while(n--)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}function l(t){return"function"===typeof t||t instanceof RegExp||!(!t||"object"!==typeof t)&&l(t.listener)}a.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},a.flattenListeners=function(t){var e,n=[];for(e=0;eD&&(D=t.count)})),i.forIn(S,(function(t){var n=t.x,r=t.y,i=t.count,a={};a[k]=i,e.sizeByCount?(a[C]=A.map((function(e){return n+t.count/D*e[0]})),a[O]=A.map((function(e){return(r+t.count/D*e[1])/j}))):(a[C]=A.map((function(t){return n+t[0]})),a[O]=A.map((function(t){return(r+t[1])/j}))),I.push(a)})),t.rows=I}a.DataSet.registerTransform("bin.hexagon",p),a.DataSet.registerTransform("bin.hex",p),a.DataSet.registerTransform("hexbin",p)},"./src/transform/bin/histogram.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=r.__importDefault(n("./src/util/partition.ts")),o=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={as:["x","count"],bins:void 0,offset:0,groupBy:[]};function l(t,e,n){var r=t-n,i=Math.floor(r/e);return[i*e+n,(i+1)*e+n]}function c(t){return Math.ceil(Math.log(t)/Math.LN2)+1}function f(t,e){e=i.assign({},u,e);var n=s.getField(e);if(0!==t.rows.length){var o=t.range(n),f=o[1]-o[0],h=e.binWidth,d=e.bins;if(!h&&d){if(d<=0)throw new TypeError("Invalid bins: it must be a positive number!");h=f/d}if(!h&&!d){var p=c(t.rows.length);h=f/p}var g=e.offset%h,v=[],_=e.groupBy,m=a.default(t.rows,_);i.forIn(m,(function(t){var a={},o=t.map((function(t){return t[n]}));o.forEach((function(t){var e=r.__read(l(t,h,g),2),n=e[0],i=e[1],o=n+"-"+i;a[o]=a[o]||{x0:n,x1:i,count:0},a[o].count++}));var s=r.__read(e.as,2),u=s[0],c=s[1];if(!u||!c)throw new TypeError('Invalid as: it must be an array with 2 elements (e.g. [ "x", "count" ])!');var f=i.pick(t[0],_);i.forIn(a,(function(t){var e=i.assign({},f);e[u]=[t.x0,t.x1],e[c]=t.count,v.push(e)}))})),t.rows=v}}o.DataSet.registerTransform("bin.histogram",f),o.DataSet.registerTransform("bin.dot",f)},"./src/transform/bin/quantile.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),o=r.__importDefault(n("./src/util/partition.ts")),s=r.__importDefault(n("./src/util/p-by-fraction.ts")),u=n("./src/data-set.ts"),l=u.DataSet.registerTransform,c=n("./src/util/option-parser.ts"),f={as:"_bin",groupBy:[],fraction:4};function h(t,e){e=i.assign({},f,e);var n=c.getField(e),r=e.as;if(!i.isString(r))throw new TypeError('Invalid as: it must be a string (e.g. "_bin")!');var u=e.p,l=e.fraction;i.isArray(u)&&0!==u.length||(u=s.default(l));var h=t.rows,d=e.groupBy,p=o.default(h,d),g=[];i.forIn(p,(function(t){var e=t[0],i=t.map((function(t){return t[n]})),o=u.map((function(t){return a.quantile(i,t)}));e[r]=o,g.push(e)})),t.rows=g}l("bin.quantile",h)},"./src/transform/bin/rectangle.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n("./src/data-set.ts"),o=a.DataSet.registerTransform,s=n("./src/util/option-parser.ts"),u={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1};function l(t,e,n){var r=t-n,i=Math.floor(r/e);return[i*e+n,(i+1)*e+n]}function c(t,e){e=i.assign({},u,e);var n=r.__read(s.getFields(e),2),a=n[0],o=n[1];if(!a||!o)throw new TypeError("Invalid fields: must be an array with 2 strings!");var c=t.range(a),f=t.range(o),h=c[1]-c[0],d=f[1]-f[0],p=e.binWidth||[];if(2!==p.length){var g=r.__read(e.bins,2),v=g[0],_=g[1];if(v<=0||_<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");p=[h/v,d/_]}var m=t.rows.map((function(t){return[t[a],t[o]]})),y={},x=r.__read(e.offset,2),b=x[0],w=x[1];m.forEach((function(t){var e=r.__read(l(t[0],p[0],b),2),n=e[0],i=e[1],a=r.__read(l(t[1],p[1],w),2),o=a[0],s=a[1],u=n+"-"+i+"-"+o+"-"+s;y[u]=y[u]||{x0:n,x1:i,y0:o,y1:s,count:0},y[u].count++}));var M=[],j=r.__read(e.as,3),E=j[0],S=j[1],P=j[2];if(!E||!S||!P)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "count" ])!');if(e.sizeByCount){var C=0;i.forIn(y,(function(t){t.count>C&&(C=t.count)})),i.forIn(y,(function(t){var e=t.x0,n=t.x1,i=t.y0,a=t.y1,o=t.count,s=o/C,u=r.__read([(e+n)/2,(i+a)/2],2),l=u[0],c=u[1],f=(n-e)*s/2,h=(a-i)*s/2,d=l-f,p=l+f,g=c-h,v=c+h,_={};_[E]=[d,p,p,d],_[S]=[g,g,v,v],_[P]=o,M.push(_)}))}else i.forIn(y,(function(t){var e={};e[E]=[t.x0,t.x1,t.x1,t.x0],e[S]=[t.y0,t.y0,t.y1,t.y1],e[P]=t.count,M.push(e)}));t.rows=M}o("bin.rectangle",c),o("bin.rect",c)},"./src/transform/default.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./src/data-set.ts");r.DataSet.registerTransform("default",(function(t){return t}))},"./src/transform/diagram/arc.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts"),a={y:0,thickness:.05,weight:!1,marginRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function o(t,e,n){return void 0===n&&(n={}),t.forEach((function(t){var r=e.edgeSource(t),i=e.edgeTarget(t);n[r]||(n[r]={id:r}),n[i]||(n[i]={id:i})})),r.values(n)}function s(t,e,n){r.forIn(t,(function(t,r){t.inEdges=e.filter((function(t){return""+n.target(t)===""+r})),t.outEdges=e.filter((function(t){return""+n.source(t)===""+r})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}function u(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}},i=n[e.sortBy];!i&&r.isFunction(e.sortBy)&&(i=e.sortBy),i&&t.sort(i)}function l(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.marginRatio;if(r<0||r>=1)throw new TypeError("Invalid marginRatio: it must be in range [0, 1)!");var i=r/(2*n),a=e.thickness;if(a<=0||a>=1)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var o=0;t.forEach((function(t){o+=t.value})),t.forEach((function(t){t.weight=t.value/o,t.width=t.weight*(1-r),t.height=a})),t.forEach((function(n,r){for(var o=0,s=r-1;s>=0;s--)o+=t[s].width+2*i;var u=n.minX=i+o,l=n.maxX=n.minX+n.width,c=n.minY=e.y-a/2,f=n.maxY=c+a;n.x=[u,l,l,u],n.y=[c,c,f,f]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}}function c(t,e,n){if(n.weight){var i={};r.forIn(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),a=n.target(e),o=t[r],s=t[a];if(o&&s){var u=i[r],l=n.sourceWeight(e),c=o.minX+(o.value-u)/o.value*o.width,f=c+l/o.value*o.width;i[r]-=l;var h=i[a],d=n.targetWeight(e),p=s.minX+(s.value-h)/s.value*s.width,g=p+d/s.value*s.width;i[a]-=d;var v=n.y;e.x=[c,f,p,g],e.y=[v,v,v,v]}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y])}))}function f(t,e){e=r.assign({},a,e);var n={},i=t.nodes,f=t.edges;r.isArray(i)&&0!==i.length||(i=o(f,e,n)),i.forEach((function(t){var r=e.id(t);n[r]=t})),s(n,f,e),u(i,e),l(i,e),c(n,f,e),t.nodes=i,t.edges=f}i.DataSet.registerTransform("diagram.arc",f),i.DataSet.registerTransform("arc",f)},"./src/transform/diagram/dagre.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=r.__importDefault(n("./node_modules/_dagre@0.8.5@dagre/index.js")),o=n("./src/data-set.ts"),s={rankdir:"TB",align:"TB",nodesep:50,edgesep:10,ranksep:50,source:function(t){return t.source},target:function(t){return t.target}};function u(t,e){e=i.assign({},s,e);var n=new a.default.graphlib.Graph;n.setGraph({}),n.setDefaultEdgeLabel((function(){return{}})),t.nodes.forEach((function(t){var r=e.nodeId?e.nodeId(t):t.id;t.height||t.width||(t.height=t.width=e.edgesep),n.setNode(r,t)})),t.edges.forEach((function(t){n.setEdge(e.source(t),e.target(t))})),a.default.layout(n);var r=[],o=[];n.nodes().forEach((function(t){var e=n.node(t),i=e.x,a=e.y,o=e.height,s=e.width;e.x=[i-s/2,i+s/2,i+s/2,i-s/2],e.y=[a+o/2,a+o/2,a-o/2,a-o/2],r.push(e)})),n.edges().forEach((function(t){var e=n.edge(t).points,r={};r.x=e.map((function(t){return t.x})),r.y=e.map((function(t){return t.y})),o.push(r)})),t.nodes=r,t.edges=o}o.DataSet.registerTransform("diagram.dagre",u),o.DataSet.registerTransform("dagre",u)},"./src/transform/diagram/sankey.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js"),a=n("./src/data-set.ts"),o={sankeyLeft:i.sankeyLeft,sankeyRight:i.sankeyRight,sankeyCenter:i.sankeyCenter,sankeyJustify:i.sankeyJustify},s={value:function(t){return t.value},source:function(t){return t.source},target:function(t){return t.target},nodeAlign:"sankeyJustify",nodeWidth:.02,nodePadding:.02,sort:void 0};function u(t,e){e=r.assign({},s,e);var n=null;r.isString(e.nodeAlign)?n=o[e.nodeAlign]:r.isFunction(e.nodeAlign)&&(n=e.nodeAlign);var a=i.sankey().nodeSort(e.sort).links((function(t){return t.edges})).nodeWidth(e.nodeWidth).nodePadding(e.nodePadding).extent([[0,0],[1,1]]);r.isFunction(e.nodeId)&&a.nodeId(e.nodeId),n&&a.nodeAlign(n),a(t),t.nodes.forEach((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;t.x=[e,n,n,e],t.y=[r,r,i,i]})),t.edges.forEach((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var a=t.width/2;t.y=[t.y0+a,t.y0-a,t.y1+a,t.y1-a]}))}a.DataSet.registerTransform("diagram.sankey",u),a.DataSet.registerTransform("sankey",u)},"./src/transform/diagram/voronoi.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=r.__importStar(n("./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js")),a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts"),s=o.DataSet.registerTransform,u=n("./src/util/option-parser.ts"),l={as:["_x","_y"]};function c(t,e){e=a.assign({},l,e);var n=e.as;if(!a.isArray(n)||2!==n.length)throw new TypeError("Invalid as: must be an array with two strings!");var r=n[0],o=n[1],s=u.getFields(e);if(!a.isArray(s)||2!==s.length)throw new TypeError("Invalid fields: must be an array with two strings!");var c=s[0],f=s[1],h=t.rows,d=h.map((function(t){return[t[c],t[f]]})),p=i.voronoi();e.extend&&p.extent(e.extend),e.size&&p.size(e.size);var g=p(d).polygons();h.forEach((function(t,e){var n=g[e].filter((function(t){return!!t}));t[r]=n.map((function(t){return t[0]})),t[o]=n.map((function(t){return t[1]}))}))}s("diagram.voronoi",c),s("voronoi",c)},"./src/transform/fill-rows.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=r.__importDefault(n("./src/util/partition.ts")),o=n("./src/data-set.ts"),s={fillBy:"group",groupBy:[],orderBy:[]};function u(t,e){var n=t.map((function(t){return t}));return e.forEach((function(t){var e=n.indexOf(t);e>-1&&n.splice(e,1)})),n}function l(t,e){e=i.assign({},s,e);var n=t.rows,r=e.groupBy,o=e.orderBy,l=a.default(n,r,o),c=0,f=[];i.forIn(l,(function(t){t.length>c&&(c=t.length,f=t)}));var h=[],d={};if(f.forEach((function(t){var e=o.map((function(e){return t[e]})).join("-");h.push(e),d[e]=t})),"order"===e.fillBy){var p=f[0],g=[],v={};n.forEach((function(t){var e=o.map((function(e){return t[e]})).join("-");-1===g.indexOf(e)&&(g.push(e),v[e]=t)}));var _=u(g,h);_.forEach((function(t){var e={};r.forEach((function(t){e[t]=p[t]})),o.forEach((function(n){e[n]=v[t][n]})),n.push(e),f.push(e),h.push(t),d[t]=e})),c=f.length}i.forIn(l,(function(t){if(t!==f&&t.length=c-t.length)return!0;var s=d[i],u={};return r.forEach((function(t){u[t]=e[t]})),o.forEach((function(t){u[t]=s[t]})),n.push(u),!1}))}}))}o.DataSet.registerTransform("fill-rows",l),o.DataSet.registerTransform("fillRows",l)},"./src/transform/filter.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./src/data-set.ts");function i(t){return!!t}r.DataSet.registerTransform("filter",(function(t,e){t.rows=t.rows.filter(e.callback||i)}))},"./src/transform/fold.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts"),a=n("./src/util/option-parser.ts"),o={fields:[],key:"key",retains:[],value:"value"};i.DataSet.registerTransform("fold",(function(t,e){var n=t.getColumnNames();e=r.assign({},o,e);var i=a.getFields(e);0===i.length&&(console.warn("warning: option fields is not specified, will fold all columns."),i=n);var s=e.key,u=e.value,l=e.retains;l&&0!==l.length||(l=r.difference(n,i));var c=[];t.rows.forEach((function(t){i.forEach((function(e){var n=r.pick(t,l);n[s]=e,n[u]=t[e],c.push(n)}))})),t.rows=c}))},"./src/transform/geo/centroid.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts"),a=i.DataSet.registerTransform,o=n("./src/util/option-parser.ts"),s={as:["_centroid_x","_centroid_y"]};function u(t,e){e=r.assign({},s,e);var n=o.getField(e),i=e.geoView||e.geoDataView;if(r.isString(i)&&t.dataSet&&(i=t.dataSet.getView(i)),!i||"geo"!==i.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var a=e.as;if(!r.isArray(a)||2!==a.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var u=a[0],l=a[1];t.rows.forEach((function(t){var e=i.geoFeatureByName(t[n]);e&&(i._projectedAs?(t[u]=e[i._projectedAs[2]],t[l]=e[i._projectedAs[3]]):(t[u]=e.centroidX,t[l]=e.centroidY))}))}a("geo.centroid",u)},"./src/transform/geo/projection.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n("./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),o=r.__importDefault(n("./node_modules/_point-at-length@1.1.0@point-at-length/index.js")),s=n("./src/data-set.ts"),u=s.DataSet.registerTransform,l=r.__importDefault(n("./src/util/get-geo-projection.ts")),c={as:["_x","_y","_centroid_x","_centroid_y"]};function f(t,e){if("geo"!==t.dataType&&"geo-graticule"!==t.dataType)throw new TypeError("Invalid dataView: this transform is for Geo data only!");e=i.assign({},c,e);var n=e.projection;if(!n)throw new TypeError("Invalid projection!");n=l.default(n);var s=a.geoPath(n),u=e.as;if(!i.isArray(u)||4!==u.length)throw new TypeError('Invalid as: it must be an array with 4 strings (e.g. [ "x", "y", "cX", "cY" ])!');t._projectedAs=u;var f=r.__read(u,4),h=f[0],d=f[1],p=f[2],g=f[3];t.rows.forEach((function(t){t[h]=[],t[d]=[];var e=s(t);if(e){var n=o.default(e);n._path.forEach((function(e){t[h].push(e[1]),t[d].push(e[2])}));var r=s.centroid(t);t[p]=r[0],t[g]=r[1]}})),t.rows=t.rows.filter((function(t){return 0!==t[h].length}))}u("geo.projection",f)},"./src/transform/geo/region.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts"),a=i.DataSet.registerTransform,o=n("./src/util/option-parser.ts"),s={as:["_x","_y"]};function u(t,e){e=r.assign({},s,e);var n=o.getField(e),i=e.geoView||e.geoDataView;if(r.isString(i)&&(i=t.dataSet.getView(i)),!i||"geo"!==i.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var a=e.as;if(!r.isArray(a)||2!==a.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var u=a[0],l=a[1];t.rows.forEach((function(t){var e=i.geoFeatureByName(t[n]);e&&(i._projectedAs?(t[u]=e[i._projectedAs[0]],t[l]=e[i._projectedAs[1]]):(t[u]=e.longitude,t[l]=e.latitude))}))}a("geo.region",u)},"./src/transform/hierarchy/cluster.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=r.__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function l(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY||!t.root)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=a.assign({},u,e);var r=e.as;if(!a.isArray(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var l=void 0;try{l=s.getField(e)}catch(d){console.warn(d)}l&&n.sum((function(t){return t[l]}));var c=i.cluster();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(n);var f=r[0],h=r[1];n.each((function(t){t[f]=t.x,t[h]=t.y}))}o.DataSet.registerTransform("hierarchy.cluster",l),o.DataSet.registerTransform("dendrogram",l)},"./src/transform/hierarchy/compact-box.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=r.__importDefault(n("./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js")),a=n("./src/data-set.ts"),o={};function s(t,e){var n=t.root;if(e=Object.assign({},o,e),t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.default.compactBox(n,e)}a.DataSet.registerTransform("hierarchy.compact-box",s),a.DataSet.registerTransform("compact-box-tree",s),a.DataSet.registerTransform("non-layered-tidy-tree",s),a.DataSet.registerTransform("mindmap-logical",s)},"./src/transform/hierarchy/dendrogram.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=r.__importDefault(n("./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js")),a=n("./src/data-set.ts"),o={};function s(t,e){var n=t.root;if(e=Object.assign({},o,e),t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.default.dendrogram(n,e)}a.DataSet.registerTransform("hierarchy.dendrogram",s),a.DataSet.registerTransform("dendrogram",s)},"./src/transform/hierarchy/indented.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=r.__importDefault(n("./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js")),a=n("./src/data-set.ts"),o={};function s(t,e){var n=t.root;if(e=Object.assign({},o,e),t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.default.indented(n,e)}a.DataSet.registerTransform("hierarchy.indented",s),a.DataSet.registerTransform("indented-tree",s)},"./src/transform/hierarchy/pack.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=r.__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),o=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={field:"value",size:[1,1],padding:0,as:["x","y","r"]};function l(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=i.assign({},u,e);var r,l=e.as;if(!i.isArray(l)||3!==l.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{r=s.getField(e)}catch(p){console.warn(p)}r&&n.sum((function(t){return t[r]})).sort((function(t,e){return e[r]-t[r]}));var c=a.pack();c.size(e.size),e.padding&&c.padding(e.padding),c(n);var f=l[0],h=l[1],d=l[2];n.each((function(t){t[f]=t.x,t[h]=t.y,t[d]=t.r}))}o.DataSet.registerTransform("hierarchy.pack",l),o.DataSet.registerTransform("hierarchy.circle-packing",l),o.DataSet.registerTransform("circle-packing",l)},"./src/transform/hierarchy/partition.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=r.__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={field:"value",size:[1,1],round:!1,padding:0,sort:!0,as:["x","y"]};function l(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=a.assign({},u,e);var r,l=e.as;if(!a.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=s.getField(e)}catch(d){console.warn(d)}r&&n.sum((function(t){return t[r]}));var c=i.partition();c.size(e.size).round(e.round).padding(e.padding),c(n);var f=l[0],h=l[1];n.each((function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[h]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===l.indexOf(e)&&delete t[e]}))}))}o.DataSet.registerTransform("hierarchy.partition",l),o.DataSet.registerTransform("adjacency",l)},"./src/transform/hierarchy/tree.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=r.__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function l(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=a.assign({},u,e);var r,l=e.as;if(!a.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=s.getField(e)}catch(d){console.warn(d)}r&&n.sum((function(t){return t[r]}));var c=i.tree();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(n);var f=l[0],h=l[1];n.each((function(t){t[f]=t.x,t[h]=t.y}))}o.DataSet.registerTransform("hierarchy.tree",l),o.DataSet.registerTransform("tree",l)},"./src/transform/hierarchy/treemap.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=r.__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"]};function l(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=a.assign({},u,e);var r,l=e.as;if(!a.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=s.getField(e)}catch(d){console.warn(d)}r&&n.sum((function(t){return t[r]}));var c=i.treemap();c.tile(i[e.tile]).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft),c(n);var f=l[0],h=l[1];n.each((function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[h]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===l.indexOf(e)&&delete t[e]}))}))}o.DataSet.registerTransform("hierarchy.treemap",l),o.DataSet.registerTransform("treemap",l)},"./src/transform/impute.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=r.__importStar(n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),o=r.__importDefault(n("./src/util/partition.ts")),s=n("./src/data-set.ts"),u=n("./src/util/option-parser.ts"),l={groupBy:[]};function c(t){return t.filter((function(t){return!i.isUndefined(t)}))}var f=["mean","median","max","min"],h={};function d(t,e){e=i.assign({},l,e);var n=u.getField(e),r=e.method;if(!r)throw new TypeError("Invalid method!");if("value"===r&&!i.has(e,"value"))throw new TypeError("Invalid value: it is nil.");var a=c(t.getColumn(n)),s=o.default(t.rows,e.groupBy);i.forIn(s,(function(t){var o=c(t.map((function(t){return t[n]})));0===o.length&&(o=a),t.forEach((function(a){if(i.isUndefined(a[n]))if(i.isFunction(r))a[n]=r(a,o,e.value,t);else{if(!i.isString(r))throw new TypeError("Invalid method: must be a function or one of "+f.join(", "));a[n]=h[r](a,o,e.value)}}))}))}f.forEach((function(t){h[t]=function(e,n){return a[t](n)}})),h.value=function(t,e,n){return n},s.DataSet.registerTransform("impute",d)},"./src/transform/kde.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=r.__importDefault(n("./src/util/get-series-values.ts")),o=r.__importDefault(n("./src/util/kernel.ts")),s=r.__importStar(n("./src/util/bandwidth.ts")),u=r.__importDefault(n("./src/util/partition.ts")),l=n("./src/data-set.ts"),c=n("./src/util/option-parser.ts"),f=n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),h={minSize:.01,as:["key","y","size"],extent:[],method:"gaussian",bandwidth:"nrd",step:0,groupBy:[]},d=i.keys(o.default),p=i.keys(s);function g(t,e){e=i.assign({},h,e);var n=c.getFields(e);if(!i.isArray(n)||n.length<1)throw new TypeError("invalid fields: must be an array of at least 1 strings!");var l=e.as;if(!i.isArray(l)||3!==l.length)throw new TypeError("invalid as: must be an array of 3 strings!");var p=e.method;if(i.isString(p)){if(-1===d.indexOf(p))throw new TypeError("invalid method: "+p+". Must be one of "+d.join(", "));p=o.default[p]}if(!i.isFunction(p))throw new TypeError("invalid method: kernel method must be a function!");var g=e.extent;if(!i.isArray(g)||0===g.length){var v=[];i.each(n,(function(e){var n=t.range(e);v=v.concat(n)})),g=[Math.min.apply(Math,r.__spread(v)),Math.max.apply(Math,r.__spread(v))]}var _=e.bandwidth;i.isString(_)&&s[_]?_=s[_](t.getColumn(n[0])):i.isFunction(_)?_=_(t.getColumn(n[0])):(!i.isNumber(_)||_<=0)&&(_=s.nrd(t.getColumn(n[0])));var m=a.default(g,e.step?e.step:_),y=[],x=e.groupBy,b=u.default(t.rows,x);i.forIn(b,(function(t){var a={};i.each(n,(function(n){var o=i.pick(t[0],x);a[n]=f.kernelDensityEstimation(t.map((function(t){return t[n]})),p,_);var s=r.__read(l,3),u=s[0],c=s[1],h=s[2];o[u]=n,o[c]=[],o[h]=[],i.each(m,(function(t){var r=a[n](t);r>=e.minSize&&(o[c].push(t),o[h].push(r))})),y.push(o)}))})),t.rows=y}l.DataSet.registerTransform("kernel-density-estimation",g),l.DataSet.registerTransform("kde",g),l.DataSet.registerTransform("KDE",g),e.default={KERNEL_METHODS:d,BANDWIDTH_METHODS:p}},"./src/transform/kernel-smooth/density.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=r.__importDefault(n("./src/util/get-series-values.ts")),o=r.__importDefault(n("./src/util/kernel.ts")),s=n("./src/data-set.ts"),u=n("./src/util/option-parser.ts"),l=n("./src/util/bandwidth.ts"),c={as:["x","y","z"],method:"gaussian"},f=i.keys(o.default);function h(t,e){var n,s;e=i.assign({},c,e);var h=u.getFields(e);if(!i.isArray(h)||2!==h.length)throw new TypeError("invalid fields: must be an array of 2 strings!");var d,p=r.__read(e.as,3),g=p[0],v=p[1],_=p[2];if(!i.isString(g)||!i.isString(v)||!i.isString(_))throw new TypeError("invalid as: must be an array of 3 strings!");if(i.isString(e.method)){if(-1===f.indexOf(e.method))throw new TypeError("invalid method: "+e.method+". Must be one of "+f.join(", "));d=o.default[e.method]}var m,y,x,b,w=r.__read(h,2),M=w[0],j=w[1],E=e.extent,S=e.bandwidth;E&&Array.isArray(E)&&Array.isArray(E[0])&&Array.isArray(E[1])?(n=r.__read(E,2),m=n[0],y=n[1]):(m=t.range(M),y=t.range(j)),S&&Array.isArray(S)&&S.slice(0,2).every(i.isNumber)&&S.slice(0,2).every((function(t){return t>0}))?(s=r.__read(S,2),x=s[0],b=s[1]):(x=l.silverman(t.getColumn(M)),b=l.silverman(t.getColumn(j)));for(var P=a.default(m,x),C=a.default(y,b),O=t.rows.length,k=[],T=0;Tb&&(P=b/e,n=Math.ceil(e*P/j)),O=y/n})),i.forIn(v,(function(t){var e=[C*M,(C+1)*M],n=e[1]-e[0],r=n*(1-E)/j,a=0,o=0;i.each(t,(function(t){for(var n=t[f],s=Math.round(n*P),u=0;un[i])return 1}return 0}:r.isString(e)&&(n=function(t,n){return t[e]n[e]?1:0}),t.sort(n)}e.default=i},"./src/util/tag-cloud.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=Math.PI/180,a=64,o=2048;function s(t){return t.text}function u(){return"serif"}function l(){return"normal"}function c(t){return t.value}function f(){return 90*~~(2*Math.random())}function h(){return 1}function d(t,e,n,r){if(!e.sprite){var s=t.context,u=t.ratio;s.clearRect(0,0,(a<<5)/u,o/u);var l=0,c=0,f=0,h=n.length;--r;while(++r>5<<5,p=~~Math.max(Math.abs(m+y),Math.abs(m-y))}else d=d+31>>5<<5;if(p>f&&(f=p),l+d>=a<<5&&(l=0,c+=f,f=0),c+p>=o)break;s.translate((l+(d>>1))/u,(c+(p>>1))/u),e.rotate&&s.rotate(e.rotate*i),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=d,e.height=p,e.xoff=l,e.yoff=c,e.x1=d>>1,e.y1=p>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,l+=d}var b=s.getImageData(0,0,(a<<5)/u,o/u).data,w=[];while(--r>=0)if(e=n[r],e.hasText){d=e.width;for(var M=d>>5,j=(p=e.y1-e.y0,0);j>5),O=b[(c+P)*(a<<5)+(l+j)<<2]?1<<31-j%32:0;w[C]|=O,E|=O}E?S=P:(e.y0++,p--,P--,c++)}e.y1=e.y0+S,e.sprite=w.slice(0,(e.y1-e.y0)*M)}}}function p(t,e,n){n>>=5;for(var r,i=t.sprite,a=t.width>>5,o=t.x-(a<<4),s=127&o,u=32-s,l=t.y1-t.y0,c=(t.y+t.y0)*n+(o>>5),f=0;f>>s:0))&e[c+h])return!0;c+=n}return!1}function g(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function v(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0>2);t.width=(a<<5)/e,t.height=o/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function I(e,n,r){var i,a,o,s=n.x,u=n.y,l=Math.sqrt(t[0]*t[0]+t[1]*t[1]),c=S(t),f=O()<.5?1:-1,h=-f;while(i=c(h+=f)){if(a=~~i[0],o=~~i[1],Math.min(Math.abs(a),Math.abs(o))>=l)break;if(n.x=s+a,n.y=u+o,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!p(n,e,t[0]))&&(!r||v(n,r))){for(var d=n.sprite,g=n.width>>5,_=t[0]>>5,m=n.x-(g<<4),y=127&m,x=32-y,b=n.y1-n.y0,w=void 0,M=(n.y+n.y0)*_+(m>>5),j=0;j>>y:0);M+=_}return delete n.sprite,!0}}return!1}return T.canvas=function(t){return arguments.length?(k=b(t),T):k},T.start=function(){var a=r.__read(t,2),o=a[0],s=a[1],u=A(k()),l=T.board?T.board:y((t[0]>>5)*t[1]),c=P.length,f=[],h=P.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=m.call(this,t,r),t.weight=M.call(this,t,r),t.rotate=j.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=E.call(this,t,r),t})).sort((function(t,e){return e.size-t.size})),p=-1,v=T.board?[{x:0,y:0},{x:o,y:s}]:null;function _(){var e=Date.now();while(Date.now()-e>1,n.y=s*(O()+.5)>>1,d(u,n,h,p),n.hasText&&I(l,n,v)&&(f.push(n),v?T.hasImage||g(v,n):v=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}T._tags=f,T._bounds=v}return _(),T},T.createMask=function(e){var n=document.createElement("canvas"),i=r.__read(t,2),a=i[0],o=i[1],s=a>>5,u=y((a>>5)*o);n.width=a,n.height=o;var l=n.getContext("2d");l.drawImage(e,0,0,e.width,e.height,0,0,a,o);for(var c=l.getImageData(0,0,a,o).data,f=0;f>5),p=f*a+h<<2,g=c[p]>=250&&c[p+1]>=250&&c[p+2]>=250,v=g?1<<31-h%32:0;u[d]|=v}T.board=u,T.hasImage=!0},T.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,T):C},T.words=function(t){return arguments.length?(P=t,T):P},T.size=function(e){return arguments.length?(t=[+e[0],+e[1]],T):t},T.font=function(t){return arguments.length?(n=b(t),T):n},T.fontStyle=function(t){return arguments.length?(m=b(t),T):m},T.fontWeight=function(t){return arguments.length?(M=b(t),T):M},T.rotate=function(t){return arguments.length?(j=b(t),T):j},T.text=function(t){return arguments.length?(e=b(t),T):e},T.spiral=function(t){return arguments.length?(S=w[t]||t,T):S},T.fontSize=function(t){return arguments.length?(i=b(t),T):i},T.padding=function(t){return arguments.length?(E=b(t),T):E},T.random=function(t){return arguments.length?(O=t,T):O},T}e.default=M},"./src/view.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),i=r.__importDefault(n("./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js")),a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js");function o(t){var e={};return a.forIn(t,(function(t,n){a.isObject(t)&&t.isView?e[n]=t:a.isArray(t)?e[n]=t.concat([]):a.isPlainObject(t)?e[n]=a.clone(t):e[n]=t})),e}var s=function(t){function e(e,n){var r=t.call(this)||this;if(r.isView=!0,r.isDataView=!0,r.watchingStates=null,r.dataType="table",r.transforms=[],r.origin=[],r.rows=[],e&&e.isDataSet?r.dataSet=e:(r.dataSet=null,n=e),r.loose=!r.dataSet,n&&(r.watchingStates=n.watchingStates),!r.loose){var i=r.watchingStates;e.on("statechange",(function(t){a.isArray(i)?i.indexOf(t)>-1&&r._reExecute():r._reExecute()}))}return r}return r.__extends(e,t),e.prototype._parseStateExpression=function(t){var e=this.dataSet;if(null!==e){var n=/^\$state\.(\w+)/.exec(t);return n?e.state[n[1]]:t}},e.prototype._preparseOptions=function(t){var e=this,n=o(t);return this.loose||a.forIn(n,(function(t,r){a.isString(t)&&/^\$state\./.test(t)&&(n[r]=e._parseStateExpression(t))})),n},e.prototype._prepareSource=function(t,n){if(this._source={source:t,options:n},n){r=this._preparseOptions(n);this.origin=e.DataSet.getConnector(r.type)(t,r,this)}else if(t instanceof e||a.isString(t))this.origin=e.DataSet.getConnector("default")(t,this.dataSet);else if(a.isArray(t))this.origin=t;else{if(!a.isObject(t)||!t.type)throw new TypeError("Invalid source");var r=this._preparseOptions(t);this.origin=e.DataSet.getConnector(r.type)(r,this)}return this.rows=a.deepMix([],this.origin),this},e.prototype.source=function(t,e){return this._prepareSource(t,e)._reExecuteTransforms(),this.trigger("change",[]),this},e.prototype.transform=function(t){return t&&t.type&&(this.transforms.push(t),this._executeTransform(t)),this},e.prototype._executeTransform=function(t){t=this._preparseOptions(t);var n=e.DataSet.getTransform(t.type);n(this,t)},e.prototype._reExecuteTransforms=function(){var t=this;this.transforms.forEach((function(e){t._executeTransform(e)}))},e.prototype.addRow=function(t){this.rows.push(t)},e.prototype.removeRow=function(t){this.rows.splice(t,1)},e.prototype.updateRow=function(t,e){a.assign(this.rows[t],e)},e.prototype.findRows=function(t){return this.rows.filter((function(e){return a.isMatch(e,t)}))},e.prototype.findRow=function(t){return a.find(this.rows,t)},e.prototype.getColumnNames=function(){var t=this.rows[0];return t?a.keys(t):[]},e.prototype.getColumnName=function(t){return this.getColumnNames()[t]},e.prototype.getColumnIndex=function(t){var e=this.getColumnNames();return e.indexOf(t)},e.prototype.getColumn=function(t){return this.rows.map((function(e){return e[t]}))},e.prototype.getColumnData=function(t){return this.getColumn(t)},e.prototype.getSubset=function(t,e,n){for(var r=[],i=t;i<=e;i++)r.push(a.pick(this.rows[i],n));return r},e.prototype.toString=function(t){return void 0===t&&(t=!1),t?JSON.stringify(this.rows,null,2):JSON.stringify(this.rows)},e.prototype._reExecute=function(){var t=this._source,e=t.source,n=t.options;this._prepareSource(e,n),this._reExecuteTransforms(),this.trigger("change",[])},e}(i.default);e.View=s}})}))},fhzG:function(t,e,n){"use strict";var r=n("q1tI"),i=n("lT4e");if("undefined"===typeof r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;t.exports=i(r.Component,r.isValidElement,a)},fo7c:function(t,e,n){"use strict";n.d(e,"c",(function(){return gt})),n.d(e,"a",(function(){return a["a"]})),n.d(e,"b",(function(){return H["a"]}));var r=n("ZhIB"),i=n.n(r),a=n("Dlra"),o=(n("IzEo"),n("bx4M")),s=n("0Owb"),u=n("PpiC"),l=n("jrin"),c=n("fWQN"),f=n("mtLc"),h=n("yKVA"),d=n("879j"),p=n("q1tI"),g=n.n(p),v=n("TSYQ"),_=n.n(v),m=n("Df4C"),y=n.n(m),x=function(t){if(!t)return null;var e;switch(typeof t){case"undefined":e=null;break;case"function":e=g.a.createElement("div",{className:y.a.total},t());break;default:e=g.a.createElement("div",{className:y.a.total},t)}return e},b=function(t){Object(h["a"])(n,t);var e=Object(d["a"])(n);function n(){var t;Object(c["a"])(this,n);for(var r=arguments.length,i=new Array(r),a=0;a\n

'.concat(e,'

\n

\n ').concat((10*p[0].value).toFixed(2),"%\n

\n ")},_={fontSize:12,fill:"rgba(0, 0, 0, 0.65)",textAlign:"center"};return g.a.createElement(P["Chart"],{height:r,data:p,scale:d,padding:[-16,0,16,0],forceFit:o},g.a.createElement(P["Coord"],{type:"polar",startAngle:-1.25*Math.PI,endAngle:.25*Math.PI,radius:.8}),g.a.createElement(P["Axis"],{name:"1",line:void 0}),g.a.createElement(P["Axis"],{line:void 0,tickLine:void 0,subTickLine:void 0,name:"value",zIndex:2,label:{offset:-12,formatter:u,textStyle:_}}),g.a.createElement(P["Guide"],null,g.a.createElement(T,{start:[3,.905],end:[3,.85],lineStyle:{stroke:c,lineDash:void 0,lineWidth:2}}),g.a.createElement(T,{start:[5,.905],end:[5,.85],lineStyle:{stroke:c,lineDash:void 0,lineWidth:3}}),g.a.createElement(T,{start:[7,.905],end:[7,.85],lineStyle:{stroke:c,lineDash:void 0,lineWidth:3}}),g.a.createElement(O,{start:[0,.965],end:[10,.965],style:{stroke:h,lineWidth:10}}),g.a.createElement(O,{start:[0,.965],end:[p[0].value,.965],style:{stroke:c,lineWidth:10}}),g.a.createElement(k,{position:["50%","95%"],html:v()})),g.a.createElement(P["Geom"],{line:!1,type:"point",position:"value*1",shape:"pointer",color:c,active:!1}))},D=Object(C["a"])()(I),L=n("k1fw"),R=n("q3OQ"),N=n.n(R),B=function(t){var e=t.height,n=void 0===e?1:e,r=t.data,i=void 0===r?[]:r,a=t.forceFit,o=void 0===a||a,u=t.color,l=void 0===u?"rgba(24, 144, 255, 0.2)":u,c=t.borderColor,f=void 0===c?"#1089ff":c,h=t.scale,d=void 0===h?{x:{},y:{}}:h,p=t.borderWidth,v=void 0===p?2:p,_=t.line,m=t.xAxis,y=t.yAxis,x=t.animate,b=void 0===x||x,w=[36,5,30,5],M={x:Object(L["a"])({type:"cat",range:[0,1]},d.x),y:Object(L["a"])({min:0},d.y)},j=["x*y",function(t,e){return{name:t,value:e}}],E=n+54;return g.a.createElement("div",{className:N.a.miniChart,style:{height:n}},g.a.createElement("div",{className:N.a.chartContent},n>0&&g.a.createElement(P["Chart"],{animate:b,scale:M,height:E,forceFit:o,data:i,padding:w},g.a.createElement(P["Axis"],Object(s["a"])({key:"axis-x",name:"x",label:null,line:null,tickLine:null,grid:null},m)),g.a.createElement(P["Axis"],Object(s["a"])({key:"axis-y",name:"y",label:null,line:null,tickLine:null,grid:null},y)),g.a.createElement(P["Tooltip"],{showTitle:!1,crosshairs:!1}),g.a.createElement(P["Geom"],{type:"area",position:"x*y",color:l,tooltip:j,shape:"smooth",style:{fillOpacity:1}}),_?g.a.createElement(P["Geom"],{type:"line",position:"x*y",shape:"smooth",color:f,size:v,tooltip:!1}):g.a.createElement("span",{style:{display:"none"}}))))},F=Object(C["a"])()(B),z=function(t){var e=t.height,n=void 0===e?0:e,r=t.forceFit,i=void 0===r||r,a=t.color,o=void 0===a?"#1890FF":a,s=t.data,u=void 0===s?[]:s,l={x:{type:"cat"},y:{min:0}},c=[36,5,30,5],f=["x*y",function(t,e){return{name:t,value:e}}],h=n+54;return g.a.createElement("div",{className:N.a.miniChart,style:{height:n}},g.a.createElement("div",{className:N.a.chartContent},g.a.createElement(P["Chart"],{scale:l,height:h,forceFit:i,data:u,padding:c},g.a.createElement(P["Tooltip"],{showTitle:!1,crosshairs:!1}),g.a.createElement(P["Geom"],{type:"interval",position:"x*y",color:o,tooltip:f}))))},q=Object(C["a"])()(z),G=(n("5Dmo"),n("3S7+")),W=n("tJks"),U=n.n(W),V=function(t){var e=t.targetLabel,n=t.target,r=t.color,i=void 0===r?"rgb(19, 194, 194)":r,a=t.strokeWidth,o=t.percent;return g.a.createElement("div",{className:U.a.miniProgress},g.a.createElement(G["a"],{title:e},g.a.createElement("div",{className:U.a.target,style:{left:n?"".concat(n,"%"):void 0}},g.a.createElement("span",{style:{backgroundColor:i||void 0}}),g.a.createElement("span",{style:{backgroundColor:i||void 0}}))),g.a.createElement("div",{className:U.a.progressWrap},g.a.createElement("div",{className:U.a.progress,style:{backgroundColor:i||void 0,width:o?"".concat(o,"%"):void 0,height:a||void 0}})))},Y=V,H=n("039v"),X=n("tJVT"),K=n("cQSq"),$=n.n(K),Z=n("9/5/"),Q=n.n(Z),J=n("QqRw"),tt=n.n(J),et="https://gw.alipayobjects.com/zos/rmsportal/gWyeGLCdFFRavBGIDzWk.png",nt=function(t){Object(h["a"])(n,t);var e=Object(d["a"])(n);function n(){var t;Object(c["a"])(this,n);for(var r=arguments.length,i=new Array(r),a=0;a=d.state.start}}).transform({type:"map",callback:function(t){var e=Object(L["a"])({},t);return e[u.y1]=t.y1,e[u.y2]=t.y2,e}}).transform({type:"fold",fields:[u.y1,u.y2],key:"key",value:"value"});var v={type:"time",tickInterval:36e5,mask:"HH:mm",range:[0,1]},_={x:v,value:{max:e,min:0}},m=function(){return g.a.createElement(ot.a,{padding:[0,o[1]+20,0,o[3]],width:"auto",height:26,xAxis:"x",yAxis:"y1",scales:{x:v},data:h,start:d.state.start,end:d.state.end,backgroundChart:{type:"line"},onChange:function(t){var e=t.startValue,n=t.endValue;d.setState("start",e),d.setState("end",n)}})};return g.a.createElement("div",{className:ut.a.timelineChart,style:{height:i+30}},g.a.createElement("div",null,n&&g.a.createElement("h4",null,n),g.a.createElement(P["Chart"],{height:i,padding:o,data:p,scale:_,forceFit:!0},g.a.createElement(P["Axis"],{name:"x"}),g.a.createElement(P["Tooltip"],null),g.a.createElement(P["Legend"],{name:"key",position:"top"}),g.a.createElement(P["Geom"],{type:"line",position:"x*value",size:c,color:"key"})),g.a.createElement("div",{style:{marginRight:-20}},g.a.createElement(m,null))))},ct=Object(C["a"])()(lt),ft=n("wn9n"),ht=n.n(ft),dt=function(t){Object(h["a"])(n,t);var e=Object(d["a"])(n);function n(){var t;Object(c["a"])(this,n);for(var r=arguments.length,i=new Array(r),a=0;a=.85){if(_>v/4){var n=.01*v;_-=n}}else if(a<=.1){if(_<1.5*v){var r=.01*v;_+=r}}else{if(_<=v){var s=.01*v;_+=s}if(_>=v){var d=.01*v;_-=d}}a-x>0&&(x+=b),a-x<0&&(x-=b),y+=.07,C()}o.timer=requestAnimationFrame(O)}}}},{key:"render",value:function(){var t=this,e=this.state.radio,n=this.props,r=n.percent,i=n.title,a=n.height,o=void 0===a?1:a;return g.a.createElement("div",{className:ht.a.waterWave,ref:function(e){return t.root=e},style:{transform:"scale(".concat(e,")")}},g.a.createElement("div",{style:{width:o,height:o,overflow:"hidden"}},g.a.createElement("canvas",{className:ht.a.waterWaveCanvasWrapper,ref:function(e){return t.node=e},width:2*o,height:2*o})),g.a.createElement("div",{className:ht.a.text,style:{width:o}},i&&g.a.createElement("span",null,i),g.a.createElement("h4",null,r,"%")))}}]),n}(p["Component"]),pt=Object(C["a"])()(dt),gt=function(t){return"\xa5 ".concat(i()(t).format("0,0"))};a["a"],H["a"]},iy9H:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("WmNS"),i=n.n(r),a=n("k1fw"),o=n("9og8"),s=n("sy1d"),u=n("Po8q"),l=n.n(u);function c(t){return f.apply(this,arguments)}function f(){return f=Object(o["a"])(i.a.mark((function t(e){var n,r;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=l.a.load("access_token"),r=l.a.load("access_time"),t.abrupt("return",Object(s["a"])("/dataex/report/QuerySimple",{method:"POST",data:Object(a["a"])(Object(a["a"])({},e),{},{access_token:"TEST_009##"+r+"##"+n,method:"post"})}));case 3:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}},lT4e:function(t,e,n){"use strict";var r=n("MgzW"),i=n("t33a"),a=n("2NuI"),o="mixins";function s(t){return t}function u(t,e,n){var u=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},f={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n0){var s=n.strokeOpacity;r.isNil(s)||1===s||(t.globalAlpha=s),t.stroke()}}e.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=this,r=[t,e,1];if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var a=n._attrs.clip;return a?(a.invert(r,n.get("canvas")),!!a.isPointInPath(r[0],r[1])&&n.isPointInPath(r[0],r[1])):n.isPointInPath(r[0],r[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0,n=t.lineWidth||0;return n+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||(t=this.calculateBox(),t&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t},clone:function(){var t=this,e=null,n=t._attrs,i={};return r.each(n,(function(t,e){u[e]&&r.isArray(n[e])?i[e]=l(n[e]):i[e]=n[e]})),e=new t.constructor({attrs:i}),e._cfg.zIndex=t._cfg.zIndex,e}}),t.exports=s},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var a=n(65),o=n(227),s=n(120),u=n(0),l=n(5),c=n(294),f=n(9),h=n(300),d=n(298),p=n(299),g=n(313),v=["color","shape","size"],_="_origin";function m(t){return(u.isString(t)||u.isPlainObject(t))&&(t=[t]),u.each(t,(function(e,n){u.isObject(e)||(t[n]={type:e})})),t}var y=function(t){i(n,t);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,n.viewTheme=n.get("viewTheme"),u.assign(r(n),h,d,p),n.get("container")&&n._initContainer(),n._initOptions(),n}return e.getDefaultCfg=function(){return{_id:null,type:"base",coord:null,attrs:{},view:null,data:[],scales:{},container:null,labelContainer:null,shapeContainer:null,attrOptions:{},styleOptions:null,selectedOptions:null,activedOptions:null,hasDefaultAdjust:!1,adjusts:null,shapeType:null,generatePoints:!1,sortable:!1,labelCfg:null,shareTooltip:!0,tooltipCfg:null,animate:!0,animateCfg:null,visible:!0}},e._initOptions=function(){var t=this.get("adjusts");t&&(t=m(t),this.set("adjusts",t))},e._createScale=function(t,e){var n=this.get("scales"),r=n[t];return r||(r=this.get("view").createScale(t,e),n[t]=r),r},e._setAttrOptions=function(t,e){var n=this.get("attrOptions");n[t]=e},e._createAttrOption=function(t,e,n,r){var i={};i.field=e,n?u.isFunction(n)?i.callback=n:i.values=n:"color"!==t&&(i.values=r),this._setAttrOptions(t,i)},e.position=function(t){return this._setAttrOptions("position",{field:t}),this},e.color=function(t,e){var n=this.viewTheme||l;return this._createAttrOption("color",t,e,n.colors),this},e.size=function(t,e){var n=this.viewTheme||l;return this._createAttrOption("size",t,e,n.sizes),this},e.shape=function(t,e){var n=this.viewTheme||l,r=this.get("type"),i=n.shapes[r]||[];return this._createAttrOption("shape",t,e,i),this},e.opacity=function(t,e){var n=this.viewTheme||l;return this._createAttrOption("opacity",t,e,n.opacities),this},e.style=function(t,e){var n,r=this.get("styleOptions");return r||(r={},this.set("styleOptions",r)),u.isObject(t)&&(e=t,t=null),t&&(n=g(t)),r.fields=n,r.style=e,this},e.label=function(t,e,n){var r,i=this,a=i.get("labelCfg");return a||(a={},i.set("labelCfg",a)),t&&(r=g(t)),a.fields=r,u.isFunction(e)?(n||(n={}),a.callback=e):u.isObject(e)&&(n=e),a.globalCfg=n,this},e.tooltip=function(t,e){var n,r=this.get("tooltipCfg");(r||(r={}),!1===t)?this.set("tooltipCfg",!1):(t&&(n=g(t)),r.fields=n,r.cfg=e);return this.set("tooltipCfg",r),this},e.animate=function(t){return this.set("animateCfg",t),this},e.active=function(t,e){return!1===t?this.set("allowActive",!1):u.isObject(t)?(this.set("allowActive",!0),this.set("activedOptions",t)):(this.set("allowActive",!0),this.set("activedOptions",e)),this},e.adjust=function(t){return this.get("hasDefaultAdjust")||(t&&(t=m(t)),this.set("adjusts",t)),this},e.select=function(t,e){return!1===t?this.set("allowSelect",!1):u.isObject(t)?(this.set("allowSelect",!0),this.set("selectedOptions",t)):(this.set("allowSelect",!0),this.set("selectedOptions",e)),this},e.hasAdjust=function(t){var e=this,n=e.get("adjusts");if(!t)return!1;var r=!1;return u.each(n,(function(e){if(e.type===t)return r=!0,!1})),r},e.hasStack=function(){var t=this.get("isStacked");return u.isNil(t)&&(t=this.hasAdjust("stack"),this.set("isStacked",t)),t},e.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},e._initContainer=function(){var t=this,e=t.get("shapeContainer");if(!e){var n=t.get("container"),r=t.get("view"),i=r&&r.get("_id");e=n.addGroup({viewId:i,visible:t.get("visible")}),t.set("shapeContainer",e)}},e.init=function(){var t=this;if(t._initContainer(),t._initAttrs(),t.get("tooltipCfg")&&t.get("tooltipCfg").fields){var e=t.get("tooltipCfg").fields;u.each(e,(function(e){t._createScale(e)}))}var n=t._processData();t.get("adjusts")&&t._adjust(n),t.set("dataArray",n)},e._initAttrs=function(){var t=this,e=t.get("attrs"),n=t.get("attrOptions"),r=t.get("coord"),i=t.viewTheme||l,o=!1;for(var s in n)if(n.hasOwnProperty(s)){var c=n[s],f=u.upperFirst(s),h=g(c.field);"position"===s&&(c.coord=r,1===h.length&&"theta"===r.type&&(h.unshift("1"),o=!0));for(var d=[],p=0;p1){var m=d[1],y=0,x=Math.max.apply(null,m.values);isFinite(x)||(x=1),m.change({nice:!1,min:y,max:x})}c.scales=d;var b=new a[f](c);e[s]=b}},e._processData=function(){for(var t=this,e=this.get("data"),n=[],r=this._groupData(e),i=0;ia&&(a=c)}}(ie.max)&&e.change({min:i,max:a})},e._adjust=function(t){if(t&&t.length){var e=this,n=e.get("adjusts"),r=this.viewTheme||l,i=e.getYScale(),a=e.getXScale(),s=a.field,c=i?i.field:null;u.each(n,(function(n){var l=u.mix({xField:s,yField:c},n),f=u.upperFirst(n.type);if("Dodge"===f){var h=[];if(a.isCategory||a.isIdentity)h.push("x");else{if(i)throw new Error("dodge is not support linear attribute, please use category attribute!");h.push("y")}l.adjustNames=h,l.dodgeRatio=l.dodgeRatio||r.widthRatio.column}else if("Stack"===f){var d=e.get("coord");if(!i){l.height=d.getHeight();var p=e.getDefaultValue("size")||3;l.size=p}!d.isTransposed&&u.isNil(l.reverseOrder)&&(l.reverseOrder=!0)}var g=new o[f](l);g.processAdjust(t),"Stack"===f&&i&&e._updateStackRange(c,i,t)}))}},e.setCoord=function(t){this.set("coord",t);var e=this.getAttr("position"),n=this.get("shapeContainer");n.setMatrix(t.matrix),e&&(e.coord=t)},e.paint=function(){var t=this,e=t.get("dataArray"),n=[],r=t.getShapeFactory();r.setCoord(t.get("coord")),t.set("shapeFactory",r);var i=t.get("shapeContainer");t._beforeMapping(e);for(var a=0;a=0?n:r<=0?r:0,t},e._normalizeValues=function(t,e){var n=[];if(u.isArray(t))for(var r=0;r1)for(var h=0;h0)u.each(n,(function(n){e+="-"+t[n]}));else{var r,i=this.get("type"),a=this.getXScale(),o=this.getYScale(),s=a.field||"x",l=o.field||"y",c=t[l];r=a.isIdentity?a.value:t[s],e+="interval"===i||"schema"===i?"-"+r:"line"===i||"area"===i||"path"===i?"-"+i:"-"+r+"-"+c;var f=this._getGroupScales();u.isEmpty(f)||u.each(f,(function(n){var r=n.field;"identity"!==n.type&&(e+="-"+t[r])}))}return e},e.getDrawCfg=function(t){var e=this,n={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:e.isInCircle(),opacity:t.opacity},r=e.get("styleOptions");return r&&r.style&&(n.style=e.getCallbackCfg(r.fields,r.style,t[_])),e.get("generatePoints")&&(n.points=t.points,n.nextPoints=t.nextPoints),e.get("animate")&&(n._id=e._getShapeId(t[_])),n},e.appendShapeInfo=function(t,e){t&&(t.setSilent("index",e),t.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&t.setSilent("animateCfg",this.get("animateCfg")))},e._applyViewThemeShapeStyle=function(t,e,n){var r=this,i=r.viewTheme||l,a=n.name;e?e&&(e.indexOf("hollow")>-1||e.indexOf("liquid")>-1)&&(a="hollow"+u.upperFirst(a)):n.defaultShapeType.indexOf("hollow")>-1&&(a="hollow"+u.upperFirst(a));var o=i.shape[a]||{};t.style=u.mix({},o,t.style)},e.drawPoint=function(t,e,n,r){var i=this,a=t.shape,o=i.getDrawCfg(t);i._applyViewThemeShapeStyle(o,a,n);var s=n.drawShape(a,o,e);i.appendShapeInfo(s,r)},e.getAttr=function(t){return this.get("attrs")[t]},e.getXScale=function(){return this.getAttr("position").scales[0]},e.getYScale=function(){return this.getAttr("position").scales[1]},e.getShapes=function(){var t=[],e=this.get("shapeContainer"),n=e.get("children");return u.each(n,(function(e){e.get("origin")&&t.push(e)})),t},e.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return u.each(t,(function(t){v.includes(t.type)&&e.push(t)})),e},e.getFieldsForLegend=function(){var t=[],e=this.get("attrOptions");return u.each(v,(function(n){var r=e[n];r&&r.field&&u.isString(r.field)&&(t=t.concat(r.field.split("*")))})),u.uniq(t)},e.changeVisible=function(t,e){var n=this;n.set("visible",t);var r=this.get("shapeContainer");r&&r.set("visible",t);var i=this.get("labelContainer");if(i&&i.set("visible",t),!e&&r){var a=r.get("canvas");a.draw()}},e.reset=function(){this.set("attrOptions",{}),this.clearInner()},e.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var t=this.get("shapeContainer");t&&t.clear();var e=this.get("labelContainer");e&&e.remove(),this.set("attrs",{}),this.set("groupScales",null),this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},e.clear=function(){this.clearInner(),this.set("scales",{})},e.destroy=function(){this.clear();var e=this.get("shapeContainer");e&&e.remove(),this.offEvents(),t.prototype.destroy.call(this)},e.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},e.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},n}(s);t.exports=y},function(t,e,n){var r=n(0),i=n(25),a=r.PathUtil,o={},s={_coord:null,draw:function(t,e){return this.drawShape?this.drawShape(t,e):null},setCoord:function(t){this._coord=t},parsePath:function(t,e){var n=this._coord;return t=a.parsePathString(t),t=n.isPolar&&!1!==e?i.convertPolarPath(n,t):i.convertNormalPath(n,t),t},parsePoint:function(t){var e=this._coord;return e.convertPoint(t)},parsePoints:function(t){var e=this._coord,n=[];return r.each(t,(function(t){n.push(e.convertPoint(t))})),n}},u={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){var e=this;r.isArray(t)&&(t=t[0]);var n=e[t]||e[e.defaultShapeType];return n._coord=e._coord,n},getShapePoints:function(t,e){var n=this.getShape(t),r=n.getPoints||n.getShapePoints||this.getDefaultPoints,i=r(e);return i},getDefaultPoints:function(){return[]},getMarkerCfg:function(t,e){var n=this.getShape(t);if(!n.getMarkerCfg){var r=this.defaultShapeType;n=this.getShape(r)}return n.getMarkerCfg(e)},getSelectedCfg:function(){return{}},drawShape:function(t,e,n){var r=this.getShape(t),i=r.draw(e,n);return i&&(i.setSilent("origin",e.origin),i._id=e.yIndex?e._id+e.yIndex:e._id,i.name=this.name),i}};o.registerFactory=function(t,e){var n=r.upperFirst(t),i=r.assign({},u,e);return o[n]=i,i.name=t,i},o.registerShape=function(t,e,n){var i=r.upperFirst(t),a=o[i],u=r.assign({},s,n);return a[e]=u,u},o.getShapeFactory=function(t){var e=this;t=t||"point";var n=r.upperFirst(t);return e[n]},t.exports=o},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}var r=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t};t.exports=r},function(t,e,n){var r=n(17),i=function(t){return r(t,"Number")};t.exports=i},function(t,e,n){"use strict";var r=n(89);n.d(e,"f",(function(){return r["h"]})),n.d(e,"e",(function(){return r["g"]})),n.d(e,"d",(function(){return r["f"]}));var i=n(440);n.d(e,"c",(function(){return i["b"]})),n.d(e,"b",(function(){return i["a"]}));var a=n(439);n.d(e,"a",(function(){return a["a"]}))},function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d})),e["g"]=p,e["e"]=g,e["f"]=v;var r=n(442),i=n(103),a=n.i(r["a"])("start","end","cancel","interrupt"),o=[],s=0,u=1,l=2,c=3,f=4,h=5,d=6;function p(t,e){var n=v(t,e);if(n.state>s)throw new Error("too late; already scheduled");return n}function g(t,e){var n=v(t,e);if(n.state>c)throw new Error("too late; already running");return n}function v(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function _(t,e,r){var a,o=t.__transition;function s(t){r.state=u,r.timer.restart(p,r.delay,r.time),r.delay<=t&&p(t-r.delay)}function p(s){var h,_,m,y;if(r.state!==u)return v();for(h in o)if(y=o[h],y.name===r.name){if(y.state===c)return n.i(i["timeout"])(p);y.state===f?(y.state=d,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete o[h]):+h=s[c]?1:0,d=f>Math.PI?1:0,p=n.convertPoint(u),g=o(n,p);if(g>=.5)if(f===2*Math.PI){var v={x:(u.x+s.x)/2,y:(u.y+s.y)/2},_=n.convertPoint(v);l.push(["A",g,g,0,d,h,_.x,_.y]),l.push(["A",g,g,0,d,h,p.x,p.y])}else l.push(["A",g,g,0,d,h,p.x,p.y]);return l}function l(t){r.each(t,(function(e,n){var r=e;if("a"===r[0].toLowerCase()){var i=t[n-1],a=t[n+1];a&&"a"===a[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&a&&"l"===a[0].toLowerCase()&&(a[0]="M")}}))}var c={getLinePath:function(t,e){return a(t,e)},getSplinePath:function(t,e,n){var a=[],o=t[0],s=null;if(t.length<=2)return c.getLinePath(t,e);r.each(t,(function(t){s&&s.x===t.x&&s.y===t.y||(a.push(t.x),a.push(t.y),s=t)})),n=n||[[0,0],[1,1]];var u=i.catmullRom2bezier(a,e,n);return u.unshift(["M",o.x,o.y]),u},getPointRadius:function(t,e){var n=o(t,e);return n},getPointAngle:function(t,e){var n=t.getCenter(),r=Math.atan2(e.y-n.y,e.x-n.x);return r},convertNormalPath:function(t,e){var n=[];return r.each(e,(function(e){var r=e[0];switch(r.toLowerCase()){case"m":case"l":case"c":n.push(s(e,t));break;case"z":default:n.push(e);break}})),n},convertPolarPath:function(t,e){var n,i,a,o,c=[];return r.each(e,(function(r,l){var f=r[0];switch(f.toLowerCase()){case"m":case"c":case"q":c.push(s(r,t));break;case"l":n=e[l-1],i=r,a=t.isTransposed,o=a?n[n.length-2]===i[1]:n[n.length-1]===i[2],o?c=c.concat(u(n,i,t)):c.push(s(r,t));break;case"z":default:c.push(r);break}})),l(c),c}};t.exports=c},function(t,e,n){var r=n(10),i=n(2),a=n(39),o=n(6),s=function(){var t=e.prototype;function e(t){this._initDefaultCfg(),r(this,t),this.init()}return t._initDefaultCfg=function(){this.type="base",this.formatter=null,this.range=[0,1],this.ticks=null,this.values=[]},t.init=function(){},t.getTicks=function(){var t=this,e=t.ticks,n=[];return i(e,(function(e){var r;r=a(e)?e:{text:t.getText(e),tickValue:e,value:t.scale(e)},n.push(r)})),n},t.getText=function(t,e){var n=this.formatter;return t=n?n(t,e):t,!o(t)&&t.toString||(t=""),t.toString()},t.rangeMin=function(){return this.range[0]},t.rangeMax=function(){var t=this.range;return t[t.length-1]},t.invert=function(t){return t},t.translate=function(t){return t},t.scale=function(t){return t},t.clone=function(){var t=this,e=t.constructor,n={};return i(t,(function(e,r){n[r]=t[r]})),new e(n)},t.change=function(t){return this.ticks=null,r(this,t),this.init(),this},e}();t.exports=s},function(t,e,n){"use strict";e["b"]=j,e["a"]=E,e["c"]=S;var r=n(22),i=n(519),a=n(520),o=n(521),s=n(522),u=n(523),l=n(525),c=n(526),f=n(527),h=n(528),d=n(529),p=n(530),g=n(531),v=n(532),_=n(533),m=n(534),y=n(535),x=n(536),b=n(63),w=n(524),M=0;function j(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function E(t){return n.i(r["selection"])().transition(t)}function S(){return++M}var P=r["selection"].prototype;j.prototype=E.prototype={constructor:j,select:d["a"],selectAll:p["a"],filter:l["a"],merge:c["a"],selection:g["a"],transition:x["a"],call:P.call,nodes:P.nodes,node:P.node,size:P.size,empty:P.empty,each:P.each,on:f["a"],attr:i["a"],attrTween:a["a"],style:v["a"],styleTween:_["a"],text:m["a"],textTween:y["a"],remove:h["a"],tween:b["a"],delay:o["a"],duration:s["a"],ease:u["a"],end:w["a"]}},function(t,e,n){var r=n(0),i=r.DomUtil,a=["start","process","end","reset"],o=function(){var t=e.prototype;function e(t,e){var n=this,i=n.getDefaultCfg();r.assign(n,i,t),n.view=n.chart=e,n.canvas=e.get("canvas"),n._bindEvents()}return t.getDefaultCfg=function(){return{startEvent:"mousedown",processEvent:"mousemove",endEvent:"mouseup",resetEvent:"dblclick"}},t._start=function(t){var e=this;e.preStart&&e.preStart(t),e.start(t),e.onStart&&e.onStart(t)},t._process=function(t){var e=this;e.preProcess&&e.preProcess(t),e.process(t),e.onProcess&&e.onProcess(t)},t._end=function(t){var e=this;e.preEnd&&e.preEnd(t),e.end(t),e.onEnd&&e.onEnd(t)},t._reset=function(t){var e=this;e.preReset&&e.preReset(t),e.reset(t),e.onReset&&e.onReset(t)},t.start=function(){},t.process=function(){},t.end=function(){},t.reset=function(){},t._bindEvents=function(){var t=this,e=t.canvas,n=e.get("canvasDOM");t._clearEvents(),r.each(a,(function(e){var a=r.upperFirst(e);t["_on"+a+"Listener"]=i.addEventListener(n,t[e+"Event"],r.wrapBehavior(t,"_"+e))}))},t._clearEvents=function(){var t=this;r.each(a,(function(e){var n="_on"+r.upperFirst(e)+"Listener";t[n]&&t[n].remove()}))},t.destroy=function(){this._clearEvents()},e}();t.exports=o},function(t,e,n){var r=n(224),i=!0;t.exports=n(541)(r.isElement,i)},function(t,e,n){t.exports={Axis:n(240),Component:n(66),Guide:n(248),Label:n(252),Legend:n(258),Tooltip:n(263)}},function(t,e,n){t.exports={Canvas:n(328),Group:n(134),Shape:n(7),Arc:n(136),Circle:n(137),Dom:n(138),Ellipse:n(139),Fan:n(140),Image:n(141),Line:n(142),Marker:n(74),Path:n(145),Polygon:n(146),Polyline:n(147),Rect:n(148),Text:n(149),PathSegment:n(50),PathUtil:n(77),Event:n(135),version:"3.3.6"}},function(t,e,n){"use strict";e["b"]=o,e["c"]=s,e["a"]=u;var r=n(209);function i(t,e){return function(n){return t+n*e}}function a(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function o(t,e){var a=e-t;return a?i(t,a>180||a<-180?a-360*Math.round(a/360):a):n.i(r["a"])(isNaN(t)?e:t)}function s(t){return 1===(t=+t)?u:function(e,i){return i-e?a(e,i,t):n.i(r["a"])(isNaN(e)?i:e)}}function u(t,e){var a=e-t;return a?i(t,a):n.i(r["a"])(isNaN(t)?e:t)}},function(t,e,n){var r=n(10),i=function(){var t=e.prototype;function e(t){this._initDefaultCfg(),r(this,t)}return t._initDefaultCfg=function(){this.adjustNames=["x","y"]},t.processAdjust=function(){},e}();t.exports=i},function(t,e,n){var r=n(15),i=n(4),a=n(6),o=n(10),s=n(2);function u(t,e){return r(e)?e:t.invert(t.scale(e))}var l=function(){function t(t){var e=this;this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null;var n=null,r=this.callback;if(t.callback){var i=t.callback;n=function(){for(var t=arguments.length,n=new Array(t),o=0;o1&&(e=(t[1].value-t[0].value)/2);for(var n=[],r=0;r0){var s=e.value-i[o-1].value;s/=t.get("subTickCount")+1;for(var u=1;u<=n;u++){var l={text:"",value:o?i[o-1].value+u*s:u*s},c=t.getTickPoint(l.value),f=void 0;f=a&&a.length?a.length:parseInt(.6*r.length,10),t._addTickItem(u-1,c,f,"sub")}}}))}},n._addTickLine=function(t,e){var n=this,r=c.mix({},e),i=[];c.each(t,(function(t){i.push(["M",t.x1,t.y1]),i.push(["L",t.x2,t.y2])})),delete r.length,r.path=i;var a=n.get("group"),o=a.addShape("path",{attrs:r});o.name="axis-ticks",o._id=n.get("_id")+"-ticks",o.set("coord",n.get("coord")),n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo"))},n._renderTicks=function(){var t=this,e=t.get("tickItems"),n=t.get("subTickItems");if(!c.isEmpty(e)){var r=t.get("tickLine");t._addTickLine(e,r)}if(!c.isEmpty(n)){var i=t.get("subTickLine")||t.get("tickLine");t._addTickLine(n,i)}},n._renderGrid=function(){var t=this.get("grid");if(t){t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo");var e=this.get("group");this.set("gridGroup",e.addGroup(f,t))}},n._renderLabels=function(){var t=this,e=t.get("labelRenderer"),n=t.get("labelItems");e&&(e.set("items",n),e._dryDraw())},n.paint=function(){var t=this,e=t.get("tickLine"),n=!0;e&&e.hasOwnProperty("alignWithLabel")&&(n=e.alignWithLabel),t._renderLine();var r=t.get("type"),i="cat"===r||"timeCat"===r;i&&!1===n?t._processCatTicks():t._processTicks(),t._renderTicks(),t._renderGrid(),t._renderLabels();var a=this.get("label");a&&a.autoRotate&&t.autoRotateLabels(),a&&a.autoHide&&t.autoHideLabels()},n.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},n.getTextAnchor=function(t){var e,n=Math.abs(t[1]/t[0]);return e=n>=1?"center":t[0]>0?"start":"end",e},n.getMaxLabelWidth=function(t){var e=t.getLabels(),n=0;return c.each(e,(function(t){var e=t.getBBox(),r=e.width;n1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},numberToColor:function(t){var e=o[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,o[t]=e}return e}}},function(t,e,n){var r=n(6);function i(t){return r(t)?"":t.toString()}t.exports=i},function(t,e){var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t){var e="undefined"===typeof t?"undefined":n(t);return null!==t&&"object"===e||"function"===e};t.exports=r},function(t,e,n){var r=n(86),i=n(17),a=function(t){if(!r(t)||!i(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};t.exports=a},function(t,e,n){"use strict";e["b"]=o,e["c"]=s,e["a"]=u;var r=n(202);function i(t,e){return function(n){return t+n*e}}function a(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function o(t,e){var a=e-t;return a?i(t,a>180||a<-180?a-360*Math.round(a/360):a):n.i(r["a"])(isNaN(t)?e:t)}function s(t){return 1===(t=+t)?u:function(e,i){return i-e?a(e,i,t):n.i(r["a"])(isNaN(e)?i:e)}}function u(t,e){var a=e-t;return a?i(t,a):n.i(r["a"])(isNaN(t)?e:t)}},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=[t,e,n];return l.transformMat3(i,i,r),i}},{key:"invertMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=u.invert([],r),a=[t,e,n];return l.transformMat3(a,a,i),a}},{key:"convert",value:function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}}},{key:"invert",value:function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})}},{key:"rotate",value:function(t){var e=this.matrix,n=this.center;return u.translate(e,e,[-n.x,-n.y]),u.rotate(e,e,t),u.translate(e,e,[n.x,n.y]),this}},{key:"reflect",value:function(t){switch(t){case"x":this._swapDim("x");break;case"y":this._swapDim("y");break;default:this._swapDim("y")}return this}},{key:"scale",value:function(t,e){var n=this.matrix,r=this.center;return u.translate(n,n,[-r.x,-r.y]),u.scale(n,n,[t,e]),u.translate(n,n,[r.x,r.y]),this}},{key:"translate",value:function(t,e){var n=this.matrix;return u.translate(n,n,[t,e]),this}},{key:"transpose",value:function(){return this.isTransposed=!this.isTransposed,this}}]),t}();t.exports=c},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(0),a=n(279),o=n(16),s=o.Canvas,u=i.DomUtil,l=n(5),c=n(283),f=n(121),h=n(123),d=n(122),p=n(124),g="auto";function v(t,e){var n=!1;return i.each(t,(function(t){var r=[].concat(t.values),i=[].concat(e.values);t.type!==e.type||t.field!==e.field||r.sort().toString()!==i.sort().toString()||(n=!0)})),n}function _(t,e){return i.isEqualWith(t,e,(function(t,e){return t===e}))}var m=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix(e,{id:null,forceFit:!1,container:null,wrapperEl:null,canvas:null,width:500,height:500,pixelRatio:null,backPlot:null,frontPlot:null,plotBackground:null,padding:l.plotCfg.padding,background:null,autoPaddingAppend:5,limitInPlot:!1,renderer:l.renderer,views:[]})},n.init=function(){var e=this,n=e.get("viewTheme");e._initCanvas(),e._initPlot(),e._initEvents(),t.prototype.init.call(this);var r=new f.Tooltip({chart:e,viewTheme:n,options:{}});e.set("tooltipController",r);var i=new f.Legend({chart:e,viewTheme:n});e.set("legendController",i),e.set("_id","chart"),e.emit("afterinit")},n._isAutoPadding=function(){var t=this.get("padding");return i.isArray(t)?t.includes(g):t===g},n._getAutoPadding=function(){for(var t=this.get("padding"),e=this.get("frontPlot"),n=e.getBBox(),r=this.get("backPlot"),a=d(r,p(this.get("plotRange"))),o=h(n,a),s=[0-o.minY,o.maxX-this.get("width"),o.maxY-this.get("height"),0-o.minX],u=i.toAllPadding(t),l=0;l');t.appendChild(a),this.set("wrapperEl",a),this.get("forceFit")&&(n=u.getWidth(t,n),this.set("width",n));var o=this.get("renderer"),l=new s({containerDOM:a,width:n,height:r,pixelRatio:"svg"===o?1:this.get("pixelRatio"),renderer:o});this.set("canvas",l)},n._initPlot=function(){var t=this;t._initPlotBack();var e=t.get("canvas"),n=e.addGroup({zIndex:1}),r=e.addGroup({zIndex:0}),i=e.addGroup({zIndex:3});t.set("backPlot",n),t.set("middlePlot",r),t.set("frontPlot",i)},n._initPlotBack=function(){var t=this,e=t.get("canvas"),n=t.get("viewTheme"),r=e.addGroup(c,{padding:this.get("padding"),plotBackground:i.mix({},n.plotBackground,t.get("plotBackground")),background:i.mix({},n.background,t.get("background"))});t.set("plot",r),t.set("plotRange",r.get("plotRange"))},n._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",i.wrapBehavior(this,"_initForceFitEvent"))},n._initForceFitEvent=function(){var t=setTimeout(i.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},n._renderLegends=function(){var t=this.get("options"),e=t.legends;if(i.isNil(e)||!1!==e){var n=this.get("legendController");if(n.options=e||{},n.plotRange=this.get("plotRange"),e&&e.custom)n.addCustomLegend();else{var r=this.getAllGeoms(),a=[];i.each(r,(function(t){var e=t.get("view"),r=t.getAttrsForLegend();i.each(r,(function(r){var i=r.type,o=r.getScale(i);if(o.field&&"identity"!==o.type&&!v(a,o)){a.push(o);var s=e.getFilteredOutValues(o.field);n.addLegend(o,r,t,s)}}))}));var o=this.getYScales();0===a.length&&o.length>1&&n.addMixedLegend(o,r)}n.alignLegends()}},n._renderTooltips=function(){var t=this.get("options");if(i.isNil(t.tooltip)||!1!==t.tooltip){var e=this.get("tooltipController");e.options=t.tooltip||{},e.renderTooltip()}},n.getAllGeoms=function(){var t=[];t=t.concat(this.get("geoms"));var e=this.get("views");return i.each(e,(function(e){t=t.concat(e.get("geoms"))})),t},n.forceFit=function(){var t=this;if(t&&!t.destroyed){var e=t.get("container"),n=t.get("width"),r=u.getWidth(e,n);if(0!==r&&r!==n){var i=t.get("height");t.changeSize(r,i)}return t}},n.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");_(e,t.get("padding"))||(t.set("padding",e),t.repaint())},n.changeSize=function(t,e){var n=this,r=n.get("canvas");r.changeSize(t,e);var i=this.get("plot");return n.set("width",t),n.set("height",e),i.repaint(),this.set("keepPadding",!0),n.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),n},n.changeWidth=function(t){return this.changeSize(t,this.get("height"))},n.changeHeight=function(t){return this.changeSize(this.get("width"),t)},n.view=function(t){t=t||{},t.theme=this.get("theme"),t.parent=this,t.backPlot=this.get("backPlot"),t.middlePlot=this.get("middlePlot"),t.frontPlot=this.get("frontPlot"),t.canvas=this.get("canvas"),i.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=i.mix({},this._getSharedOptions(),t.options);var e=new a(t);return e.set("_id","view"+this.get("views").length),this.get("views").push(e),this.emit("addview",{view:e}),e},n.removeView=function(t){var e=this.get("views");i.Array.remove(e,t),t.destroy()},n._getSharedOptions=function(){var t=this.get("options"),e={};return i.each(["scales","coord","axes"],(function(n){e[n]=i.cloneDeep(t[n])})),e},n.getViewRegion=function(){var t=this.get("plotRange");return{start:t.bl,end:t.tr}},n.legend=function(t,e){var n=this.get("options");n.legends||(n.legends={});var r={};return!1===t?n.legends=!1:i.isObject(t)?r=t:i.isString(t)?r[t]=e:r=e,i.mix(n.legends,r),this},n.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:i.isObject(t)?i.mix(n.tooltip,t):i.mix(n.tooltip,e),this},n.clear=function(){this.emit("beforeclear");var e=this.get("views");while(e.length>0){var n=e.shift();n.destroy()}t.prototype.clear.call(this);var r=this.get("canvas");return this.resetPlot(),r.draw(),this.emit("afterclear"),this},n.clearInner=function(){var e=this.get("views");i.each(e,(function(t){t.clearInner()}));var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var r=this.get("legendController");r&&r.clear()}t.prototype.clearInner.call(this)},n.drawComponents=function(){t.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},n.render=function(){var e=this;if(!e.get("keepPadding")&&e._isAutoPadding()){e.beforeRender(),e.drawComponents();var n=e._getAutoPadding(),r=e.get("plot");_(r.get("padding"),n)||(r.set("padding",n),r.repaint())}var a=e.get("middlePlot");if(e.get("limitInPlot")&&!a.attr("clip")){var o=i.getClipByRange(e.get("plotRange"));a.attr("clip",o)}t.prototype.render.call(this),e._renderTooltips()},n.repaint=function(){this.get("keepPadding")||this.resetPlot(),t.prototype.repaint.call(this)},n.changeVisible=function(t){var e=this.get("wrapperEl"),n=t?"":"none";e.style.display=n},n.toDataURL=function(){var t=this,e=t.get("canvas"),n=t.get("renderer"),r=e.get("el"),i="";if("svg"===n){var a=r.cloneNode(!0),o=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),s=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",o);s.replaceChild(a,s.documentElement);var u=(new XMLSerializer).serializeToString(s);i="data:image/svg+xml;charset=utf8,"+encodeURIComponent(u)}else"canvas"===n&&(i=r.toDataURL("image/png"));return i},n.downloadImage=function(t){var e=this,n=document.createElement("a"),r=e.get("renderer"),i=(t||"chart")+("svg"===r?".svg":".png"),a=e.get("canvas");a.get("timeline").stopAllAnimations(),setTimeout((function(){var t=e.toDataURL();if(window.Blob&&window.URL&&"svg"!==r){var a=t.split(","),o=a[0].match(/:(.*?);/)[1],s=atob(a[1]),u=s.length,l=new Uint8Array(u);while(u--)l[u]=s.charCodeAt(u);var c=new Blob([l],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(c,i):n.addEventListener("click",(function(){n.download=i,n.href=window.URL.createObjectURL(c)}))}else n.addEventListener("click",(function(){n.download=i,n.href=t}));var f=document.createEvent("MouseEvents");f.initEvent("click",!1,!1),n.dispatchEvent(f)}),16)},n.showTooltip=function(t){var e=this.getViewsByPoint(t);if(e.length){var n=this.get("tooltipController");n.showTooltip(t,e)}return this},n.lockTooltip=function(){var t=this.get("tooltipController");return t.lockTooltip(),this},n.unlockTooltip=function(){var t=this.get("tooltipController");return t.unlockTooltip(),this},n.hideTooltip=function(){var t=this.get("tooltipController");return t.hideTooltip(),this},n.getTooltipItems=function(t){var e=this,n=e.getViewsByPoint(t),r=[];return i.each(n,(function(e){var n=e.get("geoms");i.each(n,(function(e){var n=e.get("dataArray"),a=[];i.each(n,(function(n){var r=e.findPoint(t,n);if(r){var i=e.getTipItems(r);a=a.concat(i)}})),r=r.concat(a)}))})),r},n.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var e=this.get("canvas"),n=this.get("wrapperEl");n.parentNode.removeChild(n),t.prototype.destroy.call(this),e.destroy(),window.removeEventListener("resize",i.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},e}(a);t.exports=m},function(t,e,n){var r=n(154),i=n(16),a=n(119),o=n(44),s=n(5),u=n(9),l=n(0),c={version:s.version,Animate:a,Chart:o,Global:s,Scale:r,Shape:u,Util:l,G:i,DomUtil:l.DomUtil,MatrixUtil:l.MatrixUtil,PathUtil:l.PathUtil,track:function(){console.warn("G2 tracks nothing ;-)")}};"undefined"!==typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+c.version+"'s reference is 'window.G2_3'"):window.G2=c),t.exports=c},function(t,e,n){var r=n(5),i=n(0),a=i.assign,o=i.isNil,s=i.isArray,u=i.cloneDeep,l=i.wrapBehavior,c=i.getWrapBehavior,f=function(){var t=e.prototype;function e(t){var e=this.getDefaultCfg();a(this,e,t),this.init()}return t.getDefaultCfg=function(){return{chart:null,group:null,showTitle:!0,autoSetAxis:!0,padding:10,eachView:null,fields:[],colTitle:{offsetY:-15,style:{fontSize:14,textAlign:"center",fill:"#666",fontFamily:r.fontFamily}},rowTitle:{offsetX:15,style:{fontSize:14,textAlign:"center",rotate:90,fill:"#666",fontFamily:r.fontFamily}}}},t.init=function(){if(!this.chart)throw new Error("Facets Error: please specify the chart!");this._bindEvent(),this.initContainer(),this.chart.get("data")&&this.initViews()},t.initContainer=function(){var t=this.chart,e=t.get("frontPlot"),n=e.addGroup();this.group=n},t.initViews=function(){for(var t=this.chart,e=t.get("data"),n=this.eachView,r=this.generateFacets(e),i=0;in&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function o(t,e,n,i){var o=0;return n-e>=2*Math.PI&&(o=2*Math.PI),e=r.mod(e,2*Math.PI),n=r.mod(n,2*Math.PI)+o,t=r.mod(t,2*Math.PI),i?e>=n?t>n&&tn?t:a(t,e,n):e<=n?ee||tt.x&&(g=t.x),vt.y&&(_=t.y),m0&&f>0?l=Math.PI/2-d:c<0&&f<0?l=-Math.PI/2-d:c>=0&&f<0?l=-d-Math.PI/2:c<=0&&f>0&&(l=Math.PI/2-d);var p=h(s);if(p){u&&(o?(i+=Math.sin(Math.abs(d))*u,a=a+Math.cos(Math.abs(d))*u-.5*t.lineWidth):(i-=Math.sin(Math.abs(d))*u,a=a-Math.cos(Math.abs(d))*u+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(i,a),t.rotate(l);for(var g=0;g1&&(a*=Math.sqrt(_),o*=Math.sqrt(_));var m=a*a*(v*v)+o*o*(d*d),y=Math.sqrt((a*a*(o*o)-m)/m);n===i&&(y*=-1),isNaN(y)&&(y=0);var x=y*a*v/o,b=y*-o*d/a,w=(l+f)/2+Math.cos(u)*x-Math.sin(u)*b,M=(c+h)/2+Math.sin(u)*x+Math.cos(u)*b,j=g([1,0],[(d-x)/a,(v-b)/o]),E=[(d-x)/a,(v-b)/o],S=[(-1*d-x)/a,(-1*v-b)/o],P=g(E,S);return p(E,S)<=-1&&(P=Math.PI),p(E,S)>=1&&(P=0),0===i&&P>0&&(P-=2*Math.PI),1===i&&P<0&&(P+=2*Math.PI),[t,w,M,a,o,j,P,u,i]}var _=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};r.augment(_,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i,a,o,s,u=c.indexOf(n)>=0,l=u?n.toUpperCase():n,d=t,p=e.endPoint,g=d[1],_=d[2];switch(l){default:break;case"M":s=u?f(g,_,p):{x:g,y:_},this.command="M",this.params=[p,s],this.subStart=s,this.endPoint=s;break;case"L":s=u?f(g,_,p):{x:g,y:_},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"H":s=u?f(g,0,p):{x:g,y:p.y},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"V":s=u?f(0,g,p):{x:p.x,y:g},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"Q":u?(i=f(g,_,p),a=f(d[3],d[4],p)):(i={x:g,y:_},a={x:d[3],y:d[4]}),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"T":a=u?f(g,_,p):{x:g,y:_},"Q"===e.command?(i=h(e.params[1],p),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="TL",this.params=[p,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-p.x,a.y-p.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"C":u?(i=f(g,_,p),a=f(d[3],d[4],p),o=f(d[5],d[6],p)):(i={x:g,y:_},a={x:d[3],y:d[4]},o={x:d[5],y:d[6]}),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"S":u?(a=f(g,_,p),o=f(d[3],d[4],p)):(a={x:g,y:_},o={x:d[3],y:d[4]}),"C"===e.command?(i=h(e.params[2],p),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="SQ",this.params=[p,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"A":var m=g,y=_,x=d[3],b=d[4],w=d[5];s=u?f(d[6],d[7],p):{x:d[6],y:d[7]},this.command="A";var M=v(p,s,b,w,m,y,x);this.params=M;var j=e.subStart;this.subStart=j,this.endPoint=s;var E=M[5]%(2*Math.PI);r.isNumberEqual(E,2*Math.PI)&&(E=0);var S=M[6]%(2*Math.PI);r.isNumberEqual(S,2*Math.PI)&&(S=0);var P=.001;this.startTangent=function(){0===w&&(P*=-1);var t=M[3]*Math.cos(E-P)+M[1],e=M[4]*Math.sin(E-P)+M[2];return[t-j.x,e-j.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(E+t+P)+M[1],n=M[4]*Math.sin(E+t-P)+M[2];return[p.x-e,p.y-n]};break;case"Z":this.command="Z",this.params=[p,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this,a=r.command,o=r.params,s=r.box;if(s&&!i.box(s.minX,s.maxX,s.minY,s.maxY,t,e))return!1;switch(a){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(o[0].x,o[0].y,o[1].x,o[1].y,n,t,e);case"SQ":case"Q":return i.quadraticline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,n,t,e);case"C":return i.cubicline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y,n,t,e);case"A":var c=o,f=c[1],h=c[2],d=c[3],p=c[4],g=c[5],v=c[6],_=c[7],m=c[8],y=d>p?d:p,x=d>p?1:d/p,b=d>p?p/d:1;c=[t,e,1];var w=[1,0,0,0,1,0,0,0,1];return l.translate(w,w,[-f,-h]),l.rotate(w,w,-_),l.scale(w,w,[1/x,1/b]),u.transformMat3(c,c,w),i.arcline(0,0,y,g,g+v,1-m,n,c[0],c[1])}return!1},draw:function(t){var e,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],u=o[2],l=s,c=u,f=o[3],h=o[4],d=o[5],p=o[6],g=o[7],v=o[8],_=f>h?f:h,m=f>h?1:f/h,y=f>h?h/f:1;t.translate(l,c),t.rotate(g),t.scale(m,y),t.arc(0,0,_,d,d+p,1-v),t.scale(1/m,1/y),t.rotate(-g),t.translate(-l,-c);break;case"Z":t.closePath();break}},getBBox:function(t){var e,n,r,i,u=t/2,l=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(l[0].x,l[1].x)-u,maxX:Math.max(l[0].x,l[1].x)+u,minY:Math.min(l[0].y,l[1].y)-u,maxY:Math.max(l[0].y,l[1].y)+u};break;case"SQ":case"Q":for(n=o.extrema(l[0].x,l[1].x,l[2].x),r=0,i=n.length;rM&&(M=S)}var P=s.yExtrema(_,d,p),C=1/0,O=-1/0,k=[y,x];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var T=P+r;1===m?yO&&(O=A)}this.box={minX:w-u,maxX:M+u,minY:C-u,maxY:O+u};break}}}),t.exports=_},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(6),a=n(2),o=n(26),s=n(351),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this);var e=this;e.type="linear",e.isLinear=!0,e.nice=!1,e.min=null,e.minLimit=null,e.max=null,e.maxLimit=null,e.tickCount=null,e.tickInterval=null,e.minTickInterval=null,e.snapArray=null},n.init=function(){var t=this;if(t.ticks){var e=t.ticks,n=t.translate(e[0]),r=t.translate(e[e.length-1]);(i(t.min)||t.min>n)&&(t.min=n),(i(t.max)||t.max=t.min&&e<=t.max&&n.push(e)})),n.length||(n.push(t.min),n.push(t.max)),t.ticks=n}},n.scale=function(t){if(i(t))return NaN;var e=this.max,n=this.min;if(e===n)return 0;var r=(t-n)/(e-n),a=this.rangeMin(),o=this.rangeMax();return a+r*(o-a)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},e}(o);o.Linear=u,t.exports=u},function(t,e,n){var r=n(15),i=n(192);t.exports={toTimeStamp:function(t){return r(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),i(t)&&(t=t.getTime()),t}}},function(t,e,n){var r=n(21),i=Array.prototype.indexOf,a=function(t,e){return!!r(t)&&i.call(t,e)>-1};t.exports=a},function(t,e){var n=function(t){for(var e=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:n;return Math.abs(t-e)1&&void 0!==arguments[1]?arguments[1]:[],n={};return i.Util.each(t,(function(t,r){-1===i.Util.indexOf(e,r)&&(n[r]=t)})),n},length:o})},function(t,e,n){"use strict";e["a"]=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){"use strict";e["a"]=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}},function(t,e,n){"use strict";var r=n(97),i=n(98);function a(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i["b"]&&e.documentElement.namespaceURI===i["b"]?e.createElement(t):e.createElementNS(n,t)}}function o(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}e["a"]=function(t){var e=n.i(r["a"])(t);return(e.local?o:a)(e)}},function(t,e,n){"use strict";e["a"]=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";e["b"]=o;var r=n(13);function i(t,e){var i,a;return function(){var o=n.i(r["e"])(this,t),s=o.tween;if(s!==i){a=i=s;for(var u=0,l=a.length;u1&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),r.attr("text",this._formatItemValue(e)+"")},n._onMouseLeave=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},n._onMouseMove=function(t){var e,n=this.get("height"),r=this.get("width"),i=this.get("items"),a=this.get("canvas").get("el"),o=a.getBoundingClientRect(),s=this.get("group").getBBox();if("vertical"===this.get("layout")){var u=5;"color-legend"===this.get("type")&&(u=30);var l=this.get("titleGap"),c=this.get("titleShape");c&&(l+=c.getBBox().maxY-c.getBBox().minY);var f=t.clientY||t.event.clientY;f=f-o.y-this.get("group").attr("matrix")[7]+s.y-u+l,e=i[0].value+(1-f/n)*(i[i.length-1].value-i[0].value)}else{var h=t.clientX||t.event.clientX;h=h-o.x-this.get("group").attr("matrix")[6],e=i[0].value+h/r*(i[i.length-1].value-i[0].value)}e=e.toFixed(2),this.activate(e),this.emit("mousehover",{value:e})},n.activate=function(t){if(t){var e=this.get("group").findById("hoverPointer"),n=this.get("group").findById("hoverText"),r=this.get("items");if(!(tr[r.length-1].value)){var i,a=this.get("height"),o=this.get("width"),s=this.get("titleShape"),u=this.get("titleGap"),c=[],f=(t-r[0].value)/(r[r.length-1].value-r[0].value);if("vertical"===this.get("layout")){var h=0,d=0;"color-legend"===this.get("type")&&(h=u,s&&(h+=s.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?h-=13:(h=u-15,s&&(h+=s.getBBox().height)),d+=10),f=(1-f)*a,c=[[d,f+h],[d-10,f+h-5],[d-10,f+h+5]],i=l.mix({},{x:o+this.get("textOffset")/2+d,y:f+h,text:this._formatItemValue(t)+""},this.get("textStyle"),{textAlign:"start"})}else{var p=0,g=0;"color-legend"===this.get("type")&&(p=u,s&&(p+=s.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?p-=7:(p=u,s||(p-=7)),g+=10),f*=o,c=[[f+g,p],[f+g-5,p-10],[f+g+5,p-10]],i=l.mix({},{x:f-5,y:a+this.get("textOffset")+p,text:this._formatItemValue(t)+""},this.get("textStyle"))}var v=l.mix(i,this.get("hoverTextStyle"));n?n.attr(v):(n=this.get("group").addShape("text",{attrs:v}),n.set("id","hoverText")),e?e.attr(l.mix({points:c},this.get("pointerStyle"))):(e=this.get("group").addShape("Polygon",{attrs:l.mix({points:c},this.get("pointerStyle"))}),e.set("id","hoverPointer")),this.get("canvas").draw()}}},n.deactivate=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},e}(c);t.exports=_},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(66),c=n(3),f=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return c.mix({},e,{x:0,y:0,items:null,titleContent:null,showTitle:!0,plotRange:null,offset:10,timeStamp:0,inPlot:!0,crosshairs:null})},n.isContentChange=function(t,e){var n=this.get("titleContent"),r=this.get("items"),i=!(t===n&&r.length===e.length);return i||c.each(e,(function(t,e){var n=r[e];for(var a in t)if(t.hasOwnProperty(a)&&!c.isObject(t[a])&&t[a]!==n[a]){i=!0;break}if(i)return!1})),i},n.setContent=function(t,e){var n=(new Date).valueOf();return this.set("items",e),this.set("titleContent",t),this.set("timeStamp",n),this.render(),this},n.setPosition=function(t,e){this.set("x",t),this.set("y",e)},n.render=function(){},n.clear=function(){},n.show=function(){this.set("visible",!0)},n.hide=function(){this.set("visible",!1)},e}(l);t.exports=f},function(t,e,n){var r=n(16),i=r.Group,a=n(30),o=a.Label,s=n(5),u=n(0),l=["line","point","path"],c="_origin";function f(t){var e=0;return u.each(t,(function(t){e+=t})),e/t.length}function h(t,e){if(u.isNumber(t)&&u.isNumber(e))return[t,e];var n,r,i=-1,a=0,o=0,s=t.length-1,l=0;while(++i0&&e.lineToLabel(t)}))},lineToLabel:function(){},getLabelPoint:function(t,e,n){var r=this,i=r.get("coord"),a=t.text.length;function o(e,n){return u.isArray(e)&&(e=1===t.text.length?e.length<=2?e[e.length-1]:f(e):e[n]),e}var s={text:t.text[n]};if(e&&"polygon"===this.get("geomType")){var l=h(e.x,e.y);s.x=l[0],s.y=l[1]}else s.x=o(e.x,n),s.y=o(e.y,n);if(e&&e.nextPoints&&("funnel"===e.shape||"pyramid"===e.shape)){var c=-1/0;e.nextPoints.forEach((function(t){t=i.convert(t),t.x>c&&(c=t.x)})),s.x=(s.x+c)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach((function(t){t=i.convert(t),(u.isArray(t.x)&&!e.x.includes(t.x)||u.isNumber(t.x)&&e.x!==t.x)&&(s.x=(s.x+t.x)/2)})),t.position&&r.setLabelPosition(s,e,n,t.position);var d=r.getLabelOffset(t,n,a);return t.offsetX&&(d.x+=t.offsetX),t.offsetY&&(d.y+=t.offsetY),r.transLabelPoint(s),s.start={x:s.x,y:s.y},s.x+=d.x,s.y+=d.y,s.color=e.color,s},setLabelPosition:function(){},transLabelPoint:function(t){var e=this,n=e.get("coord"),r=n.applyMatrix(t.x,t.y,1);t.x=r[0],t.y=r[1]},getOffsetVector:function(t){var e,n=this,r=t.offset||0,i=n.get("coord");return e=i.isTransposed?i.applyMatrix(r,0):i.applyMatrix(0,r),e},getDefaultOffset:function(t){var e=this,n=0,r=e.get("coord"),i=e.getOffsetVector(t);n=r.isTransposed?i[0]:i[1];var a=this.get("yScale");if(a&&t.point){var o=t.point[a.field];o<0&&(n*=-1)}return n},getLabelOffset:function(t,e,n){var r=this,i=r.getDefaultOffset(t),a=r.get("coord"),o=a.isTransposed,s=o?"x":"y",u=o?1:-1,l={x:0,y:0};return l[s]=e>0||1===n?i*u:i*u*-1,l},getLabelAlign:function(t,e,n){var r=this,i="center",a=r.get("coord");if(a.isTransposed){var o=r.getDefaultOffset(t);i=o<0?"right":0===o?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},_getLabelValue:function(t,e){u.isArray(e)||(e=[e]);var n=[];return u.each(e,(function(e){var r=t[e.field];if(u.isArray(r)){var i=[];u.each(r,(function(t){i.push(e.getText(t))})),r=i}else r=e.getText(r);(u.isNil(r)||""===r)&&n.push(null),n.push(r)})),n},_getLabelCfgs:function(t){var e=this,n=this.get("labelCfg"),r=n.scales,i=this.get("label"),a=e.get("viewTheme")||s,o=[];n.globalCfg&&n.globalCfg.type&&e.set("type",n.globalCfg.type),u.each(t,(function(t,s){var l={},f=t[c],h=e._getLabelValue(f,r);if(n.callback){var d=r.map((function(t){return f[t.field]}));l=n.callback.apply(null,[].concat(d,[t,s]))}if(l||0===l){if(u.isString(l)||u.isNumber(l)?l={text:l}:(l.text=l.content||h[0],delete l.content),l=u.mix({},i,n.globalCfg||{},l),t.point=f,l.point=f,l.htmlTemplate&&(l.useHtml=!0,l.text=l.htmlTemplate.call(null,l.text,t,s),delete l.htmlTemplate),l.formatter&&(l.text=l.formatter.call(null,l.text,t,s),delete l.formatter),l.label){var p=l.label;delete l.label,l=u.mix(l,p)}if(l.textStyle){delete l.textStyle.offset;var g=l.textStyle;u.isFunction(g)&&(l.textStyle=g.call(null,l.text,t,s))}l.labelLine&&(l.labelLine=u.mix({},i.labelLine,l.labelLine)),l.textStyle=u.mix({},i.textStyle,a.label.textStyle,l.textStyle),delete l.items,o.push(l)}else o.push(null)})),this.set("labelItemCfgs",o)},showLabels:function(t,e){var n=this,r=n.get("labelRenderer"),i=n.getLabelsItems(t,e);e=[].concat(e);var a=n.get("type");i=n.adjustItems(i,e),n.drawLines(i),r.set("items",i.filter((function(t,n){return!!t||(e.splice(n,1),!1)}))),a&&(r.set("shapes",e),r.set("type",a),r.set("points",t)),r.set("canvas",this.get("canvas")),r.draw()},destroy:function(){this.get("labelRenderer").destroy(),d.superclass.destroy.call(this)}}),t.exports=d},function(t,e,n){var r=n(5),i=n(0);function a(t,e){var n=t.length;i.isString(t[0])&&(t=t.map((function(t){return e.translate(t)})));for(var r=t[1]-t[0],a=2;ao&&(r=o)}return r}var o={getDefaultSize:function(){var t=this.get("defaultSize"),e=this.get("viewTheme")||r;if(!t){var n,i=this.get("coord"),o=this.getXScale(),s=o.values,u=this.get("dataArray");if(o.isLinear&&s.length>1){s.sort();var l=a(s,o);n=(o.max-o.min)/l,s.length>n&&(n=s.length)}else n=s.length;var c=o.range,f=1/n,h=1;if(this.isInCircle()?h=i.isTransposed&&n>1?e.widthRatio.multiplePie:e.widthRatio.rose:(o.isLinear&&(f*=c[1]-c[0]),h=e.widthRatio.column),f*=h,this.hasAdjust("dodge")){var d=this._getDodgeCfg(u),p=d.dodgeCount,g=d.dodgeRatio;f/=p,g>0&&(f=g*f/h)}t=f,this.set("defaultSize",t)}return t},_getDodgeCfg:function(t){var e,n,r=this.get("adjusts"),a=t.length;if(i.each(r,(function(t){"dodge"===t.type&&(e=t.dodgeBy,n=t.dodgeRatio)})),e){var o=i.Array.merge(t),s=i.Array.values(o,e);a=s.length}return{dodgeCount:a,dodgeRatio:n}},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),r=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),i=0;return n&&r&&(i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),i},_getWidth:function(){var t,e=this.get("coord");return t=this.isInCircle()&&!e.isTransposed?(e.endAngle-e.startAngle)*e.radius:this.getDimWidth("x"),t},_toNormalizedSize:function(t){var e=this._getWidth();return t/e},_toCoordSize:function(t){var e=this._getWidth();return e*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return e=i.isNil(e)?this.getDefaultSize():this._toNormalizedSize(e),e},getSize:function(t){var e=this.getAttrValue("size",t);if(i.isNil(e)){var n=this.getDefaultSize();e=this._toCoordSize(n)}return e}};t.exports=o},function(t,e,n){var r=n(72);t.exports=function(t,e){var n=r(t);if(n&&n[e])return n[e]}},function(t,e){t.exports=function(t){var e=t.get("scaleController")||{};return e.defs}},function(t,e,n){var r=n(0),i=n(52);t.exports=function(t,e){var n,a=e.field,o=e.type,s=r.Array.values(t,a);return"linear"===o?(n=r.Array.getRange(s),e.minn.max&&(n.max=e.max)):"timeCat"===o?(r.each(s,(function(t,e){s[e]=i.toTimeStamp(t)})),s.sort((function(t,e){return t-e})),n=s):n=s,n}},function(t,e,n){var r=n(1),i=n(7),a=n(37),o=n(50),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={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 r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.radius,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},_getPath:function(){var t,e=this._attrs,n=e.x,i=e.y,a=e.radius||e.r,o=e.symbol||"circle";return t=r.isFunction(o)?o:s.Symbols[o],t?t(n,i,a):(console.warn(o+" marker is not supported."),null)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n,r=a.parsePath(this._getPath());t.beginPath(),e=[];for(var i=0;i=0&&v=0&&a<=1&&f.push(a));else{var h=l*l-4*u*c;r.isNumberEqual(h,0)?f.push(-l/(2*u)):h>0&&(s=Math.sqrt(h),a=(-l+s)/(2*u),o=(-l-s)/(2*u),a>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function l(t,e,n,r,i){var a=-3*e+9*n-9*r+3*i,o=t*a+6*e-12*n+6*r;return t*o-3*e+3*n}function c(t,e,n,i,a,o,s,u,c){r.isNil(c)&&(c=1),c=c>1?1:c<0?0:c;for(var f=c/2,h=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,v=0;v2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else while(a.length>=e[s])if(n.push([r].concat(a.splice(0,e[s]))),!e[s])break})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},l=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o),l=e+n*Math.sin(-r*o),c=e+n*Math.sin(-i*o);a=[["M",s,l],["A",n,n,0,+(i-r>180),0,u,c]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,f=0;"M"===t[0][0]&&(i=+t[0][1],a=+t[0][2],o=i,c=a,f++,r[0]=["M",i,a]);for(var h,d,p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=f,v=t.length;g1&&(w=Math.sqrt(w),r*=w,i*=w);var M=r*r,j=i*i,E=(o===s?-1:1)*Math.sqrt(Math.abs((M*j-M*b*b-j*x*x)/(M*b*b+j*x*x)));p=E*r*b/i+(e+u)/2,g=E*-i*x/r+(n+l)/2,h=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((l-g)/i).toFixed(9)),h=ed&&(h-=2*Math.PI),!s&&d>h&&(d-=2*Math.PI)}var S=d-h;if(Math.abs(S)>v){var P=d,C=u,O=l;d=h+v*(s&&d>h?1:-1),u=p+r*Math.cos(d),l=g+i*Math.sin(d),m=t(u,l,r,i,a,0,s,C,O,[d,P,p,g])}S=d-h;var k=Math.cos(h),T=Math.sin(h),A=Math.cos(d),I=Math.sin(d),D=Math.tan(S/4),L=4/3*r*D,R=4/3*i*D,N=[e,n],B=[e+L*T,n-R*k],F=[u+L*I,l-R*A],z=[u,l];if(B[0]=2*N[0]-B[0],B[1]=2*N[1]-B[1],c)return[B,F,z].concat(m);m=[B,F,z].concat(m).join().split(",");for(var q=[],G=0,W=m.length;G7){t[e].shift();var a=t[e];while(a.length)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},_=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(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m1?1:u<0?0:u;for(var l=u/2,c=12,f=[-.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],d=0,p=0;p0&&f<1&&h.push(f)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var _=(-l+v)/(2*u);_>0&&_<1&&h.push(_);var m=(-l-v)/(2*u);m>0&&m<1&&h.push(m)}}var y,x=h.length,b=x;while(x--)f=h[x],y=1-f,d[0][x]=y*y*y*t+3*y*y*f*n+3*y*f*f*i+f*f*f*o,d[1][x]=y*y*y*e+3*y*y*f*r+3*y*f*f*a+f*f*f*s;return d[0][b]=t,d[1][b]=e,d[0][b+1]=o,d[1][b+1]=s,d[0].length=d[1].length=b+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},x=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var u=(t*r-e*n)*(i-o)-(t-n)*(i*s-a*o),l=(t*r-e*n)*(a-s)-(e-r)*(i*s-a*o),c=(t-n)*(a-s)-(e-r)*(i-o);if(c){var f=u/c,h=l/c,d=+f.toFixed(2),p=+h.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,o).toFixed(2)||d>+Math.max(i,o).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:f,y:h}}}},b=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,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a},M=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:w(t,e,n,r),vb:[t,e,n,r].join(" ")}},j=function(t,e){return t=M(t),e=M(e),b(e,t.x,t.y)||b(e,t.x2,t.y)||b(e,t.x,t.y2)||b(e,t.x2,t.y2)||b(t,e.x,e.y)||b(t,e.x2,e.y)||b(t,e.x,e.y2)||b(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},E=function(t,e,n,i,a,o,s,u){r.isArray(t)||(t=[t,e,n,i,a,o,s,u]);var l=y.apply(null,t);return M(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),f=Math.pow(l,2),h=u*u,d=h*u,p=c*t+3*f*u*n+3*l*u*u*i+d*o,g=c*e+3*f*u*r+3*l*u*u*a+d*s,v=t+2*u*(n-t)+h*(i-2*n+t),_=e+2*u*(r-e)+h*(a-2*r+e),m=n+2*u*(i-n)+h*(o-2*i+n),y=r+2*u*(a-r)+h*(s-2*a+r),x=l*t+u*n,b=l*e+u*r,w=l*i+u*o,M=l*a+u*s,j=90-180*Math.atan2(v-m,_-y)/Math.PI;return{x:p,y:g,m:{x:v,y:_},n:{x:m,y:y},start:{x:x,y:b},end:{x:w,y:M},alpha:j}},P=function(t,e,n){var r=E(t),i=E(e);if(!j(r,i))return n?0:[];for(var a=m.apply(0,t),o=m.apply(0,e),s=~~(a/8),u=~~(o/8),l=[],c=[],f={},h=n?0:[],d=0;d=0&&T<=1&&A>=0&&A<=1&&(n?h++:h.push({x:k.x,y:k.y,t1:T,t2:A}))}}return h},C=function(t,e,n){var r,i,a,o,s,u,l,c,f,h;t=p(t),e=p(e);for(var d=n?0:[],g=0,v=t.length;g=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]),e}));return c}var A=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(T(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r},I=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;f--)o=a[f].index,"add"===a[f].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}r=t.length;var h=i-r;if(r0)){t[r]=e[r];break}n=B(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=B(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=B(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t};t.exports={parsePathString:s,parsePathArray:v,pathTocurve:p,pathToAbsolute:c,catmullRomToBezier:u,rectPath:w,fillPath:I,fillPathByDiff:N,formatPath:z,intersection:O}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=i,e.toRadian=o,e.equals=s;var r=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!==typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;function i(t){e.ARRAY_TYPE=t}var a=Math.PI/180;function o(t){return t*a}function s(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}},function(t,e,n){var r=n(6),i=n(4),a=n(2);t.exports=function(t,e){for(var n=[],o={},s=0;sn?n:t};t.exports=n},function(t,e,n){var r=n(348);r.translate=function(t,e,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},t.exports=r},function(t,e){var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t){return"object"===("undefined"===typeof t?"undefined":n(t))&&null!==t};t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={Chart:"deleteChart",Coord:"deleteCoord",Geom:"deleteGeom",Axis:"deleteAxis",Tooltip:"deleteTooltip",Legend:"deleteLegend",Label:"deleteLabel",View:"deleteView",Guide:"deleteGuide",GuideLine:"deleteTypedGuide",GuideImage:"deleteTypedGuide",GuideText:"deleteTypedGuide",GuideRegion:"deleteTypedGuide",GuideHtml:"deleteTypedGuide",GuideArc:"deleteTypedGuide",GuideRegionFilter:"deleteTypedGuide",GuideDataMarker:"deleteTypedGuide",GuideDataRegion:"deleteTypedGuide",Facet:"deleteFacet"},i={merge:function(t,e,n,r){this.mergeDelete(t,e,n),this.mergeUpdate(t,r)},mergeDelete:function(t,e,n){var i=this;Object.keys(e).forEach((function(e){var a=r[n[e].name],o=t;n[e].viewId&&(o=t.views[n[e].viewId]),i[a]&&i[a](o,e,n[e].parentInfo.id)}))},deleteAxis:function(t,e){t&&delete t.axises[e]},deleteTooltip:function(t){t&&delete t.tooltip},deleteCoord:function(t){t&&delete t.coord},deleteLegend:function(t,e){t&&delete t.legends[e]},deleteGuide:function(t){t&&delete t.guide},deleteGeom:function(t,e){t&&t.geoms&&delete t.geoms[e]},deleteLabel:function(t,e,n){t&&t.geoms&&t.geoms[n]&&delete t.geoms[n].label},deleteFacet:function(t){t&&delete t.facet},deleteTypedGuide:function(t,e){t&&t.guide&&delete t.guide.elements[e]},deleteView:function(t,e){t&&delete t.views[e]},mergeUpdate:function(t,e){this.mergeChart(t,e),this.mergeAxises(t,e),this.mergeCoord(t,e),this.mergeGeoms(t.geoms,e),this.mergeLegends(t.legends,e),this.mergeTooltip(t,e),this.mergeViews(t.views,e),this.mergeGuide(t.guide,e)},mergeChart:function(t,e){t.chart&&t.chart.updateProps&&(t.chart.props=t.chart.updateProps),e&&delete t.chart.g2Instance},mergeAxises:function(t,e){var n=t.axises;if(null!=!n)for(var r in n)n[r]&&n[r].updateProps&&(n[r].props=n[r].updateProps),e&&delete n[r].g2Instance},mergeTooltip:function(t,e){t.tooltip&&(e&&delete t.tooltip.g2Instance,t.tooltip.updateProps&&(t.tooltip.props=t.tooltip.updateProps))},mergeCoord:function(t,e){t.coord&&(e&&delete t.coord.g2Instance,t.coord.updateProps&&(t.coord.props=t.coord.updateProps))},mergeLegends:function(t,e){if(t)for(var n in t)if(t[n]){var r=t[n];e&&delete r.g2Instance,r.updateProps&&(r.props=r.updateProps)}},mergeGeoms:function(t,e){if(null!=t)for(var n in t)t[n]&&(e&&(delete t[n].g2Instance,t[n].label&&t[n].label.g2Instance&&(t[n].label.updateProps&&(t[n].label.props=t[n].label.updateProps),delete t[n].label.g2Instance)),t[n].updateProps&&(t[n].props=t[n].updateProps))},mergeGuide:function(t,e){if(null!=t){var n=t.elements;for(var r in n)n[r]&&(e&&delete n[r].g2Instance,n[r].updateProps&&(n[r].props=n[r].updateProps))}},mergeView:function(t,e){t&&(e&&t.g2Instance&&delete t.g2Instance,t.updateProps&&(t.props=t.updateProps),this.mergeCoord(t,e),this.mergeAxises(t,e),this.mergeGeoms(t.geoms,e),this.mergeGuide(t.guide,e))},mergeViews:function(t,e){if(null!=t)for(var n in t)t[n]&&this.mergeView(t[n],e)}};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Prop=e.Util=void 0;var r=n(58),i=s(r),a=n(437),o=s(a);function s(t){return t&&t.__esModule?t:{default:t}}e.Util=i.default,e.Prop=o.default},function(t,e,n){"use strict";e["c"]=i,n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return o})),e["h"]=b,e["b"]=j,e["g"]=E,e["a"]=S,e["f"]=A;var r=n(90);function i(){}var a=.7,o=1/a,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),h=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),p=new RegExp("^rgba\\("+[l,l,l,u]+"\\)$"),g=new RegExp("^hsl\\("+[u,l,l]+"\\)$"),v=new RegExp("^hsla\\("+[u,l,l,u]+"\\)$"),_={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 m(){return this.rgb().formatHex()}function y(){return T(this).formatHsl()}function x(){return this.rgb().formatRgb()}function b(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new S(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?M(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?M(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=f.exec(t))?new S(e[1],e[2],e[3],1):(e=h.exec(t))?new S(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?M(e[1],e[2],e[3],e[4]):(e=p.exec(t))?M(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?k(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?k(e[1],e[2]/100,e[3]/100,e[4]):_.hasOwnProperty(t)?w(_[t]):"transparent"===t?new S(NaN,NaN,NaN,0):null}function w(t){return new S(t>>16&255,t>>8&255,255&t,1)}function M(t,e,n,r){return r<=0&&(t=e=n=NaN),new S(t,e,n,r)}function j(t){return t instanceof i||(t=b(t)),t?(t=t.rgb(),new S(t.r,t.g,t.b,t.opacity)):new S}function E(t,e,n,r){return 1===arguments.length?j(t):new S(t,e,n,null==r?1:r)}function S(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+O(this.r)+O(this.g)+O(this.b)}function C(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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 O(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function k(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new I(t,e,n,r)}function T(t){if(t instanceof I)return new I(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=b(t)),!t)return new I;if(t instanceof I)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-a,l=(o+a)/2;return u?(s=e===o?(n-r)/u+6*(n0&&l<1?0:s,new I(s,u,l,t.opacity)}function A(t,e,n,r){return 1===arguments.length?T(t):new I(t,e,n,null==r?1:r)}function I(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function D(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}n.i(r["a"])(i,b,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:m,formatHex:m,formatHsl:y,formatRgb:x,toString:x}),n.i(r["a"])(S,E,n.i(r["b"])(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new S(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:P,formatHex:P,formatRgb:C,toString:C})),n.i(r["a"])(I,A,n.i(r["b"])(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new I(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new I(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,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new S(D(t>=240?t-240:t+120,i,r),D(t,i,r),D(t<120?t+240:t-120,i,r),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 t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e["b"]=r,e["a"]=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,i){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)*r+o*i)/6}e["b"]=r,e["a"]=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),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r["a"].hasOwnProperty(e)?{space:r["a"][e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";e["a"]={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),e["b"]=f;var r={},i=null;if("undefined"!==typeof document){var a=document.documentElement;"onmouseenter"in a||(r={mouseenter:"mouseover",mouseleave:"mouseout"})}function o(t,e,n){return t=s(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function s(t,e,n){return function(r){var a=i;i=r;try{t.call(this,this.__data__,e,n)}finally{i=a}}}function u(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function l(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=0&&e._call.call(null,t),e=e._next;--a}function y(){c=(l=h.now())+f,a=o=0;try{m()}finally{a=0,b(),c=0}}function x(){var t=h.now(),e=t-l;e>u&&(f-=e,l=t)}function b(){var t,e,n=r,a=1/0;while(n)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(a)}function w(t){if(!a){o&&(o=clearTimeout(o));var e=t-c;e>24?(t<1/0&&(o=setTimeout(y,t-h.now()-f)),s&&(s=clearInterval(s))):(s||(l=h.now(),s=setInterval(x,u)),a=1,d(y))}}v.prototype=_.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},function(t,e,n){var r;(function(e){"use strict";function i(){}var a=i.prototype,o=e.EventEmitter;function s(t,e){var n=t.length;while(n--)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}function l(t){return"function"===typeof t||t instanceof RegExp||!(!t||"object"!==typeof t)&&l(t.listener)}a.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},a.flattenListeners=function(t){var e,n=[];for(e=0;e=0},_getDimValues:function(t){var e=this,n={},o=[];if(e.xField&&e.isAdjust("x")&&o.push(e.xField),e.yField&&e.isAdjust("y")&&o.push(e.yField),i(o,(function(e){var r=a.values(t,e);r.sort((function(t,e){return t-e})),n[e]=r})),!e.yField&&e.isAdjust("y")){var s="y",u=[r,1];n[s]=u}return n},adjustData:function(t,e){var n=this,r=n._getDimValues(e);i(t,(function(e,a){i(r,(function(r,i){n.adjustDim(i,r,e,t.length,a)}))}))},getAdjustRange:function(t,e,n){var r,i,a=this,o=n.indexOf(e),s=n.length;return!a.yField&&a.isAdjust("y")?(r=0,i=1):s>1?(r=0===o?n[0]:n[o-1],i=o===s-1?n[s-1]:n[o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},groupData:function(t,e){var n={};return i(t,(function(t){var i=t[e];void 0===i&&(i=t[e]=r),n[i]||(n[i]=[]),n[i].push(t)})),n}}},function(t,e,n){var r=n(11),i=n(15),a=n(2),o=/rgba?\(([\s.,0-9]+)\)/;function s(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}function u(t,e,n,r){var i=t[r]+(e[r]-t[r])*n;return i}function l(t){return"#"+c(t[0])+c(t[1])+c(t[2])}function c(t){return t=Math.round(t),t=t.toString(16),1===t.length&&(t="0"+t),t}function f(t,e){(isNaN(e)||!r(e)||e<0)&&(e=0),e>1&&(e=1);var n=t.length-1,i=Math.floor(n*e),a=n*e-i,o=t[i],s=i===n?o:t[i+1],c=l([u(o,s,a,0),u(o,s,a,1),u(o,s,a,2)]);return c}function h(t){var e=[];return e.push(parseInt(t.substr(1,2),16)),e.push(parseInt(t.substr(3,2),16)),e.push(parseInt(t.substr(5,2),16)),e}var d={},p=null,g={toRGB:function(t){if("#"===t[0]&&7===t.length)return t;var e;if(p||(p=s()),d[t])e=d[t];else{p.style.color=t,e=document.defaultView.getComputedStyle(p,"").getPropertyValue("color");var n=o.exec(e),r=n[1].split(/\s*,\s*/);e=l(r),d[t]=e}return e},rgb2arr:h,gradient:function(t){var e=[];return i(t)&&(t=t.split("-")),a(t,(function(t){-1===t.indexOf("#")&&(t=g.toRGB(t)),e.push(h(t))})),function(t){return f(e,t)}}};t.exports=g},function(t,e,n){var r=n(31),i=r.Group,a=n(3),o=function t(e){t.superclass.constructor.call(this,e)};a.extend(o,i),a.augment(o,{getDefaultCfg:function(){return{zIndex:1,type:"line",lineStyle:null,items:null,alternateColor:null,matrix:null,hideFirstLine:!1,hideLastLine:!1,hightLightZero:!1,zeroLineStyle:{stroke:"#595959",lineDash:[0,0]}}},_renderUI:function(){o.superclass._renderUI.call(this),this._drawLines()},_drawLines:function(){var t=this,e=t.get("lineStyle"),n=t.get("items");n&&n.length&&(t._precessItems(n),t._drawGridLines(n,e))},_precessItems:function(t){var e,n=this;a.each(t,(function(t,r){e&&n.get("alternateColor")&&n._drawAlternativeBg(t,e,r),e=t}))},_drawGridLines:function(t,e){var n,r,i,o,s=this,u=this.get("type"),l=t.length;"line"===u||"polygon"===u?a.each(t,(function(t,c){s.get("hideFirstLine")&&0===c||s.get("hideLastLine")&&c===l-1||(o=t.points,r=[],"line"===u?(r.push(["M",o[0].x,o[0].y]),r.push(["L",o[o.length-1].x,o[o.length-1].y])):a.each(o,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])})),i=s._drawZeroLine(u,c)?a.mix({},s.get("zeroLineStyle"),{path:r}):a.mix({},e,{path:r}),n=s.addShape("path",{attrs:i}),n.name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))})):a.each(t,(function(t,u){s.get("hideFirstLine")&&0===u||s.get("hideLastLine")&&u===l-1||(o=t.points,r=[],a.each(o,(function(t,e){var n=t.radius;0===e?r.push(["M",t.x,t.y]):r.push(["A",n,n,0,0,t.flag,t.x,t.y])})),i=a.mix({},e,{path:r}),n=s.addShape("path",{attrs:i}),n.name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))}))},_drawZeroLine:function(t,e){var n=this,r=n.get("tickValues");return!("line"!==t||!r||0!==r[e]||!n.get("hightLightZero"))},_drawAlternativeBg:function(t,e,n){var r,i,o,s=this,u=s.get("alternateColor");a.isString(u)?i=u:a.isArray(u)&&(i=u[0],o=u[1]),n%2===0?o&&(r=s._getBackItem(e.points,t.points,o)):i&&(r=s._getBackItem(e.points,t.points,i));var l=s.addShape("Path",{attrs:r});l.name="axis-grid-rect",l._id=t._id&&t._id.replace("grid","grid-rect"),l.set("coord",s.get("coord")),s.get("appendInfo")&&l.setSilent("appendInfo",s.get("appendInfo"))},_getBackItem:function(t,e,n){var r=[],i=this.get("type");if("line"===i)r.push(["M",t[0].x,t[0].y]),r.push(["L",t[t.length-1].x,t[t.length-1].y]),r.push(["L",e[e.length-1].x,e[e.length-1].y]),r.push(["L",e[0].x,e[0].y]),r.push(["Z"]);else if("polygon"===i){a.each(t,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])}));for(var o=e.length-1;o>=0;o--)r.push(["L",e[o].x,e[o].y]);r.push(["Z"])}else{var s=t[0].flag;a.each(t,(function(t,e){var n=t.radius;0===e?r.push(["M",t.x,t.y]):r.push(["A",n,n,0,0,t.flag,t.x,t.y])}));for(var u=e.length-1;u>=0;u--){var l=e[u],c=l.radius;u===e.length-1?r.push(["M",l.x,l.y]):r.push(["A",c,c,0,0,1===s?0:1,l.x,l.y])}}return{fill:n,path:r}}}),t.exports=o},function(t,e,n){var r=n(3);t.exports={getFirstScale:function(t){var e;return r.each(t,(function(t){if(t)return e=t,!1})),e}}},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=l.DomUtil,f=n(36),h=n(254),d=n(255),p=n(253),g={scatter:h,map:d,treemap:p},v=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{name:"label",type:"default",textStyle:null,formatter:null,items:null,useHtml:!1,containerTpl:'
',itemTpl:'
{text}
',labelLine:!1,lineGroup:null,shapes:null,config:!0,capture:!0})},n.clear=function(){var e=this.get("group"),n=this.get("container");e&&!e.get("destroyed")&&e.clear(),n&&(n.innerHTML=""),t.prototype.clear.call(this)},n.destroy=function(){var e=this.get("group"),n=this.get("container");e.destroy||e.destroy(),n&&n.parentNode&&n.parentNode.removeChild(n),t.prototype.destroy.call(this)},n.render=function(){this.clear(),this._init(),this.beforeDraw(),this.draw(),this.afterDraw()},n._dryDraw=function(){var t=this,e=t.get("items"),n=t.getLabels(),r=n.length;l.each(e,(function(e,i){if(i=e.length;i--)n[i].remove();t._adjustLabels(),!t.get("labelLine")&&t.get("config")||t.drawLines()},n.draw=function(){this._dryDraw(),this.get("canvas").draw()},n.changeLabel=function(t,e){if(t)if(t.tagName){var n=this._createDom(e);t.innerHTML=n.innerHTML,this._setCustomPosition(e,t)}else t._id=e._id,t.attr("text",e.text),t.attr("x")===e.x&&t.attr("y")===e.y||(t.resetMatrix(),e.textStyle.rotate&&(t.rotateAtStart(e.textStyle.rotate),delete e.textStyle.rotate),t.attr(e))},n.show=function(){var t=this.get("group"),e=this.get("container");t&&t.show(),e&&(e.style.opacity=1)},n.hide=function(){var t=this.get("group"),e=this.get("container");t&&t.hide(),e&&(e.style.opacity=0)},n.drawLines=function(){var t=this,e=t.get("labelLine");"boolean"===typeof e&&t.set("labelLine",{});var n=t.get("lineGroup");!n||n.get("destroyed")?(n=t.get("group").addGroup({elCls:"x-line-group"}),t.set("lineGroup",n)):n.clear(),l.each(t.get("items"),(function(e){t.lineToLabel(e,n)}))},n.lineToLabel=function(t,e){var n=this;if(n.get("config")||t.labelLine){var r=t.labelLine||n.get("labelLine"),i="undefined"===typeof t.capture?n.get("capture"):t.capture,a=r.path;if(a&&l.isFunction(r.path)&&(a=r.path(t)),!a){var o=t.start||{x:t.x-t._offset.x,y:t.y-t._offset.y};a=[["M",o.x,o.y],["L",t.x,t.y]]}var s=t.color;s||(s=t.textStyle&&t.textStyle.fill?t.textStyle.fill:"#000");var u=e.addShape("path",{attrs:l.mix({path:a,fill:null,stroke:s},r),capture:i});u.name=n.get("name"),u._id=t._id&&t._id.replace("glabel","glabelline"),u.set("coord",n.get("coord"))}},n._adjustLabels=function(){var t=this,e=t.get("type"),n=t.getLabels(),r=t.get("shapes"),i=g[e];"default"!==e&&i&&i(n,r)},n.getLabels=function(){var t=this.get("container");return t?l.toArray(t.childNodes):this.get("group").get("children")},n._addLabel=function(t,e){var n=t;return this.get("config")&&(n=this._getLabelCfg(t,e)),this._createText(n)},n._getLabelCfg=function(t,e){var n=this.get("textStyle")||{},r=this.get("formatter"),i=this.get("htmlTemplate");if(!l.isObject(t)){var a=t;t={},t.text=a}l.isFunction(n)&&(n=n(t.text,t,e)),r&&(t.text=r(t.text,t,e)),i&&(t.useHtml=!0,l.isFunction(i)&&(t.text=i(t.text,t,e))),l.isNil(t.text)&&(t.text=""),t.text=t.text+"";var o=l.mix({},t,{textStyle:n},{x:t.x||0,y:t.y||0});return o},n._init=function(){if(!this.get("group")){var t=this.get("canvas").addGroup({id:"label-group"});this.set("group",t)}},n.initHtmlContainer=function(){var t=this.get("container");if(t)l.isString(t)&&(t=document.getElementById(t),t&&this.set("container",t));else{var e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;t=c.createDom(e),n.style.position="relative",n.appendChild(t),this.set("container",t)}return t},n._createText=function(t){var e,n=l.deepMix({},t),r=this.get("container"),i="undefined"===typeof n.capture?this.get("capture"):n.capture;if(!n.useHtml&&!n.htmlTemplate){var a=this.get("name"),o=n.point,s=this.get("group");delete n.point;var u=n.rotate;return n.textStyle&&(n.textStyle.rotate&&(u=n.textStyle.rotate,delete n.textStyle.rotate),n=l.mix({x:n.x,y:n.y,textAlign:n.textAlign,text:n.text},n.textStyle)),e=s.addShape("text",{attrs:n,capture:i}),u&&(Math.abs(u)>2*Math.PI&&(u=u/180*Math.PI),e.transform([["t",-n.x,-n.y],["r",u],["t",n.x,n.y]])),e.setSilent("origin",o||n),e.name=a,this.get("appendInfo")&&e.setSilent("appendInfo",this.get("appendInfo")),e}r||(r=this.initHtmlContainer());var c=this._createDom(n);r.appendChild(c),this._setCustomPosition(n,c)},n._createDom=function(t){var e=this.get("itemTpl"),n=l.substitute(e,{text:t.text});return c.createDom(n)},n._setCustomPosition=function(t,e){var n=t.textAlign||"left",r=t.y,i=t.x,a=c.getOuterWidth(e),o=c.getOuterHeight(e);r-=o/2,"center"===n?i-=a/2:"right"===n&&(i-=a),e.style.top=parseInt(r,10)+"px",e.style.left=parseInt(i,10)+"px"},e}(f);t.exports=v},function(t,e){var n=function(){function t(){this.bitmap=[]}var e=t.prototype;return e.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.floor(t.minX),i=Math.ceil(t.maxX),a=Math.floor(t.minY),o=Math.ceil(t.maxY)-1,s=r;s-1?t:t.parentNode?t.parentNode.className===g?t.parentNode:w(t.parentNode,e):null)}function M(t,e){var n=null,r=e instanceof p?e.get("value"):e;return l.each(t,(function(t){if(t.value===r)return n=t,!1})),n}var j=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{type:"category-legend",container:null,containerTpl:'

    ',itemTpl:'
  • {value}
  • ',legendStyle:{},textStyle:{fill:"#333",fontSize:12,textAlign:"middle",textBaseline:"top",fontFamily:h},abridgeText:!1,tipTpl:'
    ',tipStyle:{display:"none",fontSize:"12px",backgroundColor:"#fff",position:"absolute",width:"auto",height:"auto",padding:"3px",boxShadow:"2px 2px 5px #888"},autoPosition:!0})},n._init=function(){},n.beforeRender=function(){},n.render=function(){this._renderHTML()},n._bindEvents=function(){var t=this,e=this.get("legendWrapper"),n=b(e,_);this.get("hoverable")&&(n.onmousemove=function(e){return t._onMousemove(e)},n.onmouseout=function(e){return t._onMouseleave(e)}),this.get("clickable")&&(n.onclick=function(e){return t._onClick(e)})},n._onMousemove=function(t){var e=this.get("items"),n=t.target,r=n.className;if(r=r.split(" "),!(r.indexOf(g)>-1||r.indexOf(_)>-1)){var i=w(n,m),a=M(e,i.getAttribute("data-value"));a?(this.deactivate(),this.activate(i.getAttribute("data-value")),this.emit("itemhover",{item:a,currentTarget:i,checked:a.checked})):a||(this.deactivate(),this.emit("itemunhover",t))}},n._onMouseleave=function(t){this.deactivate(),this.emit("itemunhover",t)},n._onClick=function(t){var e=this,n=this.get("legendWrapper"),r=b(n,_),i=this.get("unCheckColor"),a=this.get("items"),o=this.get("selectedMode"),s=r.childNodes,u=t.target,c=u.className;if(c=c.split(" "),!(c.indexOf(g)>-1||c.indexOf(_)>-1)){var f=w(u,m),h=b(f,y),d=b(f,x),p=M(a,f.getAttribute("data-value"));if(p){var v=f.className,j=f.getAttribute("data-color");if("single"===o)p.checked=!0,l.each(s,(function(t){if(t!==f){var n=b(t,x);n.style.backgroundColor=i,t.className=t.className.replace("checked","unChecked"),t.style.color=i;var r=M(a,t.getAttribute("data-value"));r.checked=!1}else h&&(h.style.color=e.get("textStyle").fill),d&&(d.style.backgroundColor=j),f.className=v.replace("unChecked","checked")}));else{var E=-1!==v.indexOf("checked"),S=0;if(l.each(s,(function(t){-1!==t.className.indexOf("checked")&&S++})),!this.get("allowAllCanceled")&&E&&1===S)return void this.emit("clicklastitem",{item:p,currentTarget:f,checked:"single"===o||p.checked});p.checked=!p.checked,E?(d&&(d.style.backgroundColor=i),f.className=v.replace("checked","unChecked"),f.style.color=i):(d&&(d.style.backgroundColor=j),f.className=v.replace("unChecked","checked"),f.style.color=this.get("textStyle").fill)}this.emit("itemclick",{item:p,currentTarget:f,checked:"single"===o||p.checked})}}},n.activate=function(t){var e=this,n=this,r=n.get("items"),i=M(r,t),a=n.get("legendWrapper"),o=b(a,_),s=o.childNodes;s.forEach((function(t){var a=b(t,x),o=M(r,t.getAttribute("data-value"));if(e.get("highlight")){if(o===i&&o.checked)return void(a.style.border="1px solid #333")}else o===i?a.style.opacity=n.get("activeOpacity"):o.checked&&(a.style.opacity=n.get("inactiveOpacity"))}))},n.deactivate=function(){var t=this,e=this,n=e.get("legendWrapper"),r=b(n,_),i=r.childNodes;i.forEach((function(n){var r=b(n,x);t.get("highlight")?r.style.border="1px solid #fff":r.style.opacity=e.get("inactiveOpacity")}))},n._renderHTML=function(){var t=this,e=this.get("container"),n=this.get("title"),r=this.get("containerTpl"),i=d.createDom(r),a=b(i,v),o=b(i,_),s=this.get("unCheckColor"),u=l.deepMix({},{CONTAINER_CLASS:{height:"auto",width:"auto",position:"absolute",overflowY:"auto",fontSize:"12px",fontFamily:h,lineHeight:"20px",color:"#8C8C8C"},TITLE_CLASS:{marginBottom:this.get("titleGap")+"px",fontSize:"12px",color:"#333",textBaseline:"middle",fontFamily:h},LIST_CLASS:{listStyleType:"none",margin:0,padding:0,textAlign:"center"},LIST_ITEM_CLASS:{cursor:"pointer",marginBottom:"5px",marginRight:"24px"},MARKER_CLASS:{width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"4px",verticalAlign:"middle"}},this.get("legendStyle"));if(/^\#/.test(e)||"string"===typeof e&&e.constructor===String){var c=e.replace("#","");e=document.getElementById(c),e.appendChild(i)}else{var f=this.get("position"),p={};p="left"===f||"right"===f?{maxHeight:(this.get("maxLength")||e.offsetHeight)+"px"}:{maxWidth:(this.get("maxLength")||e.offsetWidth)+"px"},d.modifyCSS(i,l.mix({},u.CONTAINER_CLASS,p,this.get(g))),e.appendChild(i)}d.modifyCSS(o,l.mix({},u.LIST_CLASS,this.get(_))),a&&(n&&n.text?(a.innerHTML=n.text,d.modifyCSS(a,l.mix({},u.TITLE_CLASS,this.get(v),n))):i.removeChild(a));var w=this.get("items"),M=this.get("itemTpl"),j=this.get("position"),E=this.get("layout"),S="right"===j||"left"===j||"vertical"===E?"block":"inline-block",P=l.mix({},u.LIST_ITEM_CLASS,{display:S},this.get(m)),C=l.mix({},u.MARKER_CLASS,this.get(x));if(l.each(w,(function(e,n){var r,a=e.checked,u=t._formatItemValue(e.value),c=e.marker.fill||e.marker.stroke,f=a?c:s;r=l.isFunction(M)?M(u,f,a,n):M;var h=l.substitute(r,l.mix({},e,{index:n,checked:a?"checked":"unChecked",value:u,color:f,originColor:c,originValue:e.value.replace(/\"/g,""")})),p=d.createDom(h);p.style.color=t.get("textStyle").fill;var g=b(p,x),v=b(p,y);if(d.modifyCSS(p,P),g&&d.modifyCSS(g,C),a||(p.style.color=s,g&&(g.style.backgroundColor=s)),o.appendChild(p),t.get("abridgeText")){var _=u,m=p.offsetWidth,w=t.get("textStyle").fontSize;isNaN(w)&&(-1!==w.indexOf("pt")?w=1*parseFloat(w.substr(0,w.length-2))/72*96:-1!==w.indexOf("px")&&(w=parseFloat(w.substr(0,w.length-2))));var j=w*_.length,E=Math.floor(m/w);m<2*w?_="":m1&&(_=_.substr(0,E-1)+"..."),v.innerText=_,p.addEventListener("mouseover",(function(){var t=b(i.parentNode,"textTip");t.style.display="block",t.style.left=p.offsetLeft+p.offsetWidth+"px",t.style.top=p.offsetTop+15+"px",t.innerText=u})),p.addEventListener("mouseout",(function(){var t=b(i.parentNode,"textTip");t.style.display="none"}))}})),this.get("abridgeText")){var O=this.get("tipTpl"),k=d.createDom(O),T=this.get("tipStyle");d.modifyCSS(k,T),i.parentNode.appendChild(k),k.addEventListener("mouseover",(function(){k.style.display="none"}))}this.set("legendWrapper",i)},n._adjustPositionOffset=function(){var t=this.get("autoPosition");if(!1!==t){var e=this.get("position"),n=this.get("offset"),r=this.get("offsetX"),i=this.get("offsetY");r&&(n[0]=r),i&&(n[1]=i);var a=this.get("legendWrapper");a.style.left=e[0]+"px",a.style.top=e[1]+"px",a.style.marginLeft=n[0]+"px",a.style.marginTop=n[1]+"px"}},n.getWidth=function(){return d.getOuterWidth(this.get("legendWrapper"))},n.getHeight=function(){return d.getOuterHeight(this.get("legendWrapper"))},n.move=function(e,n){/^\#/.test(this.get("container"))?t.prototype.move.call(this,e,n):(d.modifyCSS(this.get("legendWrapper"),{left:e+"px",top:n+"px"}),this.set("x",e),this.set("y",n))},n.destroy=function(){var e=this.get("legendWrapper");e&&e.parentNode&&e.parentNode.removeChild(e),t.prototype.destroy.call(this)},e}(c);t.exports=j},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(112),f=n(19),h=f.FONT_FAMILY,d=l.Event,p=l.Group;function g(t,e){var n=null,r=e instanceof p||"legendGroup"===e.name?e.get("value"):e;return l.each(t,(function(t){if(t.value===r)return n=t,!1})),n}function v(t,e){return t.findBy((function(t){return t.name===e}))}var _=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{type:"category-legend",items:null,itemGap:5,itemMarginBottom:8,itemsGroup:null,layout:"horizontal",allowAllCanceled:!1,backPadding:[0,0,0,0],unCheckColor:"#ccc",background:{fill:"#fff",fillOpacity:0},itemWidth:null,textStyle:{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:h},_wordSpaceing:8,clickable:!0,selectedMode:"multiple",reversed:!1,autoWrap:!0,highlight:!1,activeOpacity:.7,inactiveOpacity:1})},n.render=function(){t.prototype.render.call(this),this._renderItems(),this.get("autoWrap")&&this._adjustItems()},n._bindEvents=function(){this.get("hoverable")&&(this.get("group").on("mousemove",l.wrapBehavior(this,"_onMousemove")),this.get("group").on("mouseleave",l.wrapBehavior(this,"_onMouseleave"))),this.get("clickable")&&this.get("group").on("click",l.wrapBehavior(this,"_onClick"))},n._getLegendItem=function(t){var e=t.get("parent");return e&&"legendGroup"===e.name?e:null},n.activate=function(t){var e=this,n=this,r=n.get("itemsGroup"),i=r.get("children"),a=void 0;i.forEach((function(r){if(a=v(r,"legend-marker"),a){var i=r.get("checked");e.get("highlight")?r.get("value")===t&&i?a.attr("stroke","#333"):a.attr("stroke",null):r.get("value")===t&&a.attr("fillOpacity",n.get("activeOpacity"))}})),this.get("canvas").draw()},n.deactivate=function(){var t=this,e=this,n=e.get("itemsGroup"),r=n.get("children"),i=void 0,a=this.get("unCheckColor");r.forEach((function(n){if(i=v(n,"legend-marker"),i)if(t.get("highlight")){var r=i.get("oriStroke"),o=n.get("checked");r=r&&!o?a:"",i.attr("stroke",r)}else i.attr("fillOpacity",e.get("inactiveOpacity"))})),this.get("canvas").draw()},n._onMousemove=function(t){var e=this._getLegendItem(t.currentTarget);if(e&&e.get("checked")){var n=this.get("items"),r=new d("itemhover",t,!0,!0);r.item=g(n,e),r.checked=e.get("checked"),r.currentTarget=t.currentTarget,this.deactivate(),this.activate(e.get("value")),this.emit("itemhover",r)}else this.deactivate(),this.emit("itemunhover",t);this.get("canvas").draw()},n._onMouseleave=function(t){this.deactivate(),this.get("canvas").draw(),this.emit("itemunhover",t)},n._onClick=function(t){var e=this._getLegendItem(t.currentTarget),n=this.get("items");if(e&&!e.get("destroyed")){var r=e.get("checked"),i=this.get("selectedMode"),a=g(n,e),o=new d("itemclick",t,!0,!0);if(o.item=a,o.currentTarget=e,o.appendInfo=t.currentTarget.get("appendInfo"),o.checked="single"===i||!r,!this.get("allowAllCanceled")&&r&&1===this.getCheckedCount())return void this.emit("clicklastitem",o);var s=this.get("unCheckColor"),u=this.get("textStyle").fill,c=void 0,f=void 0,h=void 0;if("single"===i){var p=this.get("itemsGroup"),_=p.get("children");l.each(_,(function(t){c=v(t,"legend-marker"),f=v(t,"legend-text"),h=v(t,"legend-item"),t!==e?(c.attr("fill")&&c.attr("fill",s),c.attr("stroke")&&c.attr("stroke",s),f.attr("fill",s),c.setSilent("checked",!1),f.setSilent("checked",!1),h.setSilent("checked",!1),t.setSilent("checked",!1)):(c.attr("fill")&&a&&a.marker&&c.attr("fill",a.marker.fill),c.attr("stroke")&&a&&a.marker&&c.attr("stroke",a.marker.stroke),f.attr("fill",u),c.setSilent("checked",!0),f.setSilent("checked",!0),h.setSilent("checked",!0),t.setSilent("checked",!0))}))}else c=v(e,"legend-marker"),f=v(e,"legend-text"),h=v(e,"legend-item"),c.attr("fill")&&a&&a.marker&&c.attr("fill",r?s:a.marker.fill),c.attr("stroke")&&a&&a.marker&&c.attr("stroke",r?s:a.marker.stroke),f.attr("fill",r?s:u),e.setSilent("checked",!r),c.setSilent("checked",!r),f.setSilent("checked",!r),h.setSilent("checked",!r);this.emit("itemclick",o)}this.get("canvas").draw()},n._renderItems=function(){var t=this,e=this.get("items");if(this.get("reversed")&&e.reverse(),l.each(e,(function(e,n){t._addItem(e,n)})),this.get("highlight")){var n=this.get("itemsGroup"),r=n.get("children"),i=void 0;r.forEach((function(t){i=v(t,"legend-marker");var e=i.get("oriStroke");e||(i.attr("stroke")?i.set("oriStroke",i.attr("stroke")):i.set("oriStroke",""))}))}},n._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},n._getNextX=function(){var t=this.get("layout"),e=this.get("itemGap"),n=this.get("itemsGroup"),r=this.get("itemWidth"),i=n.get("children"),a=0;return"horizontal"===t&&l.each(i,(function(t){a+=(r||t.getBBox().width)+e})),a},n._getNextY=function(){var t=this.get("itemMarginBottom"),e=this.get("titleShape")?this.get("titleGap"):0,n=this.get("layout"),r=this.get("itemsGroup"),i=this.get("titleShape"),a=r.get("children"),o=e;return i&&(o+=i.getBBox().height),"vertical"===n&&l.each(a,(function(e){o+=e.getBBox().height+t})),o},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=this._getNextY(),i=this.get("unCheckColor"),a=e.addGroup({x:n,y:r,value:t.value,checked:t.checked});a.set("viewId",this.get("viewId"));var o=this.get("textStyle"),s=this.get("_wordSpaceing"),u=0;if(t.marker){var c=l.mix({},t.marker,{x:t.marker.radius+n,y:r});t.checked||(c.fill&&(c.fill=i),c.stroke&&(c.stroke=i));var f=a.addShape("marker",{type:"marker",attrs:c});f.attr("cursor","pointer"),f.name="legend-marker",u+=f.getBBox().width+s}var d=l.mix({},{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:h},o,{x:u+n,y:r,text:this._formatItemValue(t.value)});t.checked||l.mix(d,{fill:i});var p=a.addShape("text",{attrs:d});p.attr("cursor","pointer"),p.name="legend-text",this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo"));var g=a.getBBox(),v=this.get("itemWidth"),_=a.addShape("rect",{attrs:{x:n,y:r-g.height/2,fill:"#fff",fillOpacity:0,width:v||g.width,height:g.height}});return _.attr("cursor","pointer"),_.setSilent("origin",t),_.name="legend-item",this.get("appendInfo")&&_.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},n._adjustHorizontal=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=this.get("maxLength"),r=this.get("itemGap"),i=this.get("itemMarginBottom"),a=this.get("titleShape")?this.get("titleGap"):0,o=0,s=0,u=void 0,c=void 0,f=void 0,h=this.get("itemWidth");t.getBBox().width>n&&l.each(e,(function(t){f=t.getBBox(),u=h||f.width,c=f.height+i,n-sr&&l.each(n,(function(t){d=t.getBBox(),f=d.width,h=d.height,u?p=u+i:f>p&&(p=f+i),r-c1&&i[o]>a[o]&&(u=a[o]),this.get("width"))n.attr(o,u-this.get("crosshairs").width/2),n.attr(s,this.get("width"));else if(c.isArray(i.point[o])&&!i.size){var l=i.point[o][1]-i.point[o][0];n.attr(o,i.point[o][0]),n.attr(s,l)}else e=3*i.size/4,n.attr(o,u-e),1===t.length?n.attr(s,3*i.size/2):n.attr(s,Math.abs(a[o]-i[o])+2*e)},e.render=function(){var t=this.get("canvas"),e=this.get("plotRange"),n=this.get("isTransposed");switch(this.clear(),this.get("type")){case"x":this._renderHorizontalLine(t,e);break;case"y":this._renderVerticalLine(t,e);break;case"cross":this._renderHorizontalLine(t,e),this._renderVerticalLine(t,e);break;case"rect":this._renderBackground(t,e);break;default:n?this._renderHorizontalLine(t,e):this._renderVerticalLine(t,e)}},e.show=function(){var e=this.get("container");t.prototype.show.call(this),e.show()},e.hide=function(){var e=this.get("container");t.prototype.hide.call(this),e.hide()},e.clear=function(){var e=this.get("container");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),t.prototype.clear.call(this),e.clear()},e.destroy=function(){var e=this.get("container");t.prototype.destroy.call(this),e.remove()},e.setPosition=function(t,e,n){var r=this.get("crossLineShapeX"),i=this.get("crossLineShapeY"),a=this.get("crosshairsRectShape");i&&!i.get("destroyed")&&i.move(t,0),r&&!r.get("destroyed")&&r.move(0,e),a&&!a.get("destroyed")&&this._updateRectShape(n)},n}(l);t.exports=f},function(t,e,n){var r=n(3),i={setMarkers:function(t,e){var n=this,i=n.get("markerGroup"),a=n.get("frontPlot");i?i.clear():(i=a.addGroup({zIndex:1,capture:!1}),n.set("markerGroup",i)),r.each(t,(function(t){var n=r.mix({fill:t.color,symbol:"circle",shadowColor:t.color},e,{x:t.x,y:t.y});t.marker&&t.marker.activeSymbol&&(n.symbol=t.marker.activeSymbol),i.addShape("marker",{color:t.color,attrs:n})})),this.set("markerItems",t)},clearMarkers:function(){var t=this.get("markerGroup");t&&t.clear()}};t.exports=i},function(t,e){var n=20,r={_calcTooltipPosition:function(t,e,n,r,i,a){var o=0,s=0,u=20;if(a){var l=a.getBBox();o=l.width,s=l.height,t=l.x,e=l.y,u=5}switch(n){case"inside":t=t+o/2-r/2,e=e+s/2-i/2;break;case"top":t=t+o/2-r/2,e=e-i-u;break;case"left":t=t-r-u,e=e+s/2-i/2;break;case"right":t=t+o+u,e=e+s/2-i/2;break;case"bottom":default:t=t+o/2-r/2,e=e+s+u;break}return[t,e]},_constraintPositionInBoundary:function(t,e,r,i,a,o){return t+r+n>a?(t-=r+n,t=t<0?0:t):t+n<0?t=n:t+=n,e+i+n>o?(e-=i+n,e=e<0?0:e):e+n<0?e=n:e+=n,[t,e]},_constraintPositionInPlot:function(t,e,r,i,a,o){return t+r>a.tr.x&&(t-=o?r+1:r+2*n),ta.bl.y&&(e-=i+2*n),ee&&!o){var u=Math.asin(e/(2*s));t+=2*u}else s+=e;return{x:a.x+s*Math.cos(t),y:a.y+s*Math.sin(t),angle:t,r:s}},getArcPoint:function(t,e){var n,r=this;return e=e||0,n=a.isArray(t.x)||a.isArray(t.y)?{x:a.isArray(t.x)?t.x[e]:t.x,y:a.isArray(t.y)?t.y[e]:t.y}:t,r.transLabelPoint(n),n},getPointAngle:function(t){var e=this,n=e.get("coord");return i.getPointAngle(n,t)},getMiddlePoint:function(t){var e=this,n=e.get("coord"),r=t.length,i={x:0,y:0};return a.each(t,(function(t){i.x+=t.x,i.y+=t.y})),i.x/=r,i.y/=r,i=n.convert(i),i},_isToMiddle:function(t){return t.x.length>2},getLabelPoint:function(t,e,n){var r,i=this,a=t.text[n],o=1;i._isToMiddle(e)?r=i.getMiddlePoint(e.points):(1===t.text.length&&0===n?n=1:0===n&&(o=-1),r=i.getArcPoint(e,n));var s=i.getDefaultOffset(t);s*=o;var u=i.getPointAngle(r),l=i.getCirclePoint(u,s,r);if(l?(l.text=a,l.angle=u,l.color=e.color):l={text:""},t.autoRotate||"undefined"===typeof t.autoRotate){var c=l.textStyle?l.textStyle.rotate:null;c||(c=l.rotate||i.getLabelRotate(u,s,e)),l.rotate=c}return l.start={x:r.x,y:r.y},l},_isEmitLabels:function(){var t=this.get("label");return t.labelEmit},getLabelRotate:function(t){var e,n=this;return e=180*t/Math.PI,e+=90,n._isEmitLabels()&&(e-=90),e&&(e>90?e-=180:e<-90&&(e+=180)),e/180*Math.PI},getLabelAlign:function(t){var e,n=this,r=n.get("coord");if(n._isEmitLabels())e=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(r.isTransposed){var i=r.getCenter(),a=n.getDefaultOffset(t);e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?a>0?"left":"right":a>0?"right":"left"}else e="center";return e}}),t.exports=o},function(t,e,n){var r=n(0),i=n(5);t.exports={splitData:function(t){var e=this.get("viewTheme")||i;if(!t.length)return[];var n,a=[],o=[],s=this.getYScale(),u=s.field;return r.each(t,(function(t){n=t._origin?t._origin[u]:t[u],e.connectNulls?r.isNil(n)||o.push(t):r.isArray(n)&&r.isNil(n[0])||r.isNil(n)?o.length&&(a.push(o),o=[]):o.push(t)})),o.length&&a.push(o),a}}},function(t,e){t.exports={toFront:function(t){var e=t.get("parent"),n=e.get("children").indexOf(t);t.set("_originIndex",n),t.toFront()},resetZIndex:function(t){var e=t.get("parent"),n=t.get("_originIndex"),r=e.get("children"),i=r.indexOf(t);n>=0&&n!==i&&(r.splice(i,1),r.splice(n,0,t))}}},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var a=n(8),o=n(128),s=n(0),u=function(t){i(n,t);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,s.assign(r(n),o),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="path",e.shapeType="line",e},e.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.isStack=this.hasStack(),n},e.draw=function(t,e,n,r){var i=this,a=this.splitData(t),o=this.getDrawCfg(t[0]);i._applyViewThemeShapeStyle(o,o.shape,n),o.origin=t,s.each(a,(function(t,a){if(!s.isEmpty(t)){o.splitedIndex=a,o.points=t;var u=n.drawShape(o.shape,o,e);i.appendShapeInfo(u,r+a)}}))},n}(a);a.Path=u,t.exports=u},function(t,e){var n,r,i="#1890FF",a=["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],o=["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],s=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],u=["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],l=["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],c='"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"',f="g2-tooltip",h="g2-tooltip-title",d="g2-tooltip-list",p="g2-tooltip-list-item",g="g2-tooltip-marker",v="g2-tooltip-value",_="g2-legend",m="g2-legend-title",y="g2-legend-list",x="g2-legend-list-item",b="g2-legend-marker",w={defaultColor:i,plotCfg:{padding:[20,20,95,80]},fontFamily:c,defaultLegendPosition:"bottom",colors:a,colors_16:o,colors_24:s,colors_pie:u,colors_pie_16:l,shapes:{point:["hollowCircle","hollowSquare","hollowDiamond","hollowBowtie","hollowTriangle","hollowHexagon","cross","tick","plus","hyphen","line"],line:["line","dash","dot"],area:["area"]},sizes:[1,10],opacities:[.1,.9],axis:{top:{position:"top",title:null,label:{offset:16,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:c},autoRotate:!0},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},bottom:{position:"bottom",title:null,label:{offset:16,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:c}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},left:{position:"left",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:c}},line:null,tickLine:null,grid:{zIndex:-1,lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},right:{position:"right",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:c}},line:null,tickLine:null,grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},circle:{zIndex:1,title:null,label:{offset:8,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,fontFamily:c}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},radius:{zIndex:0,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",lineHeight:16,fontFamily:c}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},type:"circle"}},helix:{grid:null,label:null,title:null,line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,length:4,stroke:"#BFBFBF",alignWithLabel:!0}}},label:{offset:20,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",fontFamily:c}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:c}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:c}},thetaLabels:{labelHeight:14,offset:30},legend:{right:{position:"right",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,legendStyle:{LIST_CLASS:{textAlign:"left"}},textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:0,fontFamily:c},unCheckColor:"#bfbfbf"},left:{position:"left",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:c},unCheckColor:"#bfbfbf"},top:{position:"top",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:c},unCheckColor:"#bfbfbf"},bottom:{position:"bottom",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:c},unCheckColor:"#bfbfbf"},html:(n={},n[""+_]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:c,lineHeight:"20px",color:"#8C8C8C"},n[""+m]={marginBottom:"4px"},n[""+y]={listStyleType:"none",margin:0,padding:0},n[""+x]={listStyleType:"none",cursor:"pointer",marginBottom:"5px",marginRight:"24px"},n[""+b]={width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px",verticalAlign:"middle"},n),gradient:{textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"center",textBaseline:"middle",lineHeight:20,fontFamily:c},lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"},margin:[0,5,24,5],legendMargin:24},tooltip:(r={useHtml:!0,crosshairs:!1,offset:15,marker:{symbol:"circle",activeSymbol:"circle"}},r[""+f]={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:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:c,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+h]={marginBottom:"4px"},r[""+d]={margin:0,listStyleType:"none",padding:0},r[""+p]={listStyleType:"none",marginBottom:"4px",padding:0,marginTop:0,marginLeft:0,marginRight:0},r[""+g]={width:"5px",height:"5px",display:"inline-block",marginRight:"8px"},r[""+v]={display:"inline-block",float:"right",marginLeft:"30px"},r),tooltipMarker:{symbol: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]]},stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,radius:4},tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#CCD6EC",opacity:.3}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1}},shape:{point:{lineWidth:1,fill:i,radius:4},hollowPoint:{fill:"#fff",lineWidth:1,stroke:i,radius:3},interval:{lineWidth:0,fill:i,fillOpacity:.85},hollowInterval:{fill:"#fff",stroke:i,fillOpacity:0,lineWidth:2},area:{lineWidth:0,fill:i,fillOpacity:.6},polygon:{lineWidth:0,fill:i,fillOpacity:1},hollowPolygon:{fill:"#fff",stroke:i,fillOpacity:0,lineWidth:2},hollowArea:{fill:"#fff",stroke:i,fillOpacity:0,lineWidth:2},line:{stroke:i,lineWidth:2,fill:null},edge:{stroke:i,lineWidth:1,fill:null},schema:{stroke:i,lineWidth:1,fill:null}},guide:{line:{lineStyle:{stroke:"rgba(0, 0, 0, .65)",lineDash:[2,2],lineWidth:1},text:{position:"start",autoRotate:!0,style:{fill:"rgba(0, 0, 0, .45)",fontSize:12,textAlign:"start",fontFamily:c,textBaseline:"bottom"}}},text:{style:{fill:"rgba(0,0,0,.5)",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:c}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}},html:{alignX:"middle",alignY:"middle"},dataRegion:{style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}},dataMarker:{top:!0,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"rgba(0, 0, 0, .65)",opacity:1,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0}},pixelRatio:null};t.exports=w},function(t,e,n){var r={default:n(131),dark:n(327)};t.exports=r},function(t,e,n){var r=n(1),i=n(330),a=n(333),o=n(329),s=n(105),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(e?i&&i._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){var t=this.get("destroyed");t||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){var r=n(1),i=n(133),a=n(347),o={},s="_INDEX";function u(t){return function(e,n){var r=t(e,n);return 0===r?e[s]-n[s]:r}}function l(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}var c=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};function f(t){if(!t._cfg&&t!==c){var e=t.superclass.constructor;e&&!e._cfg&&f(e),t._cfg={},r.merge(t._cfg,e._cfg),r.merge(t._cfg,t.CFG)}}r.extend(c,i),r.augment(c,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return f(this.constructor),r.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var i=o[t];if(i||(i=r.upperFirst(t),o[t]=i),e.attrs&&n){var s=e.attrs;if("text"===t){var u=n.get("fontFamily");u&&(s.fontFamily=s.fontFamily?s.fontFamily:u)}}e.canvas=n,e.type=t;var l=new a[i](e);return this.add(l),l},addGroup:function(t,e){var n,i=this.get("canvas");if(e=r.merge({},e),r.isFunction(t))e?(e.canvas=i,e.parent=this,n=new t(e)):n=new t({canvas:i,parent:this}),this.add(n);else if(r.isObject(t))t.canvas=i,n=new c(t),this.add(n);else{if(void 0!==t)return!1;n=new c,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),i=this.getBBox();return r.merge(e,{x:i.minX-t[3],y:i.minY-t[0],width:i.width+t[1]+t[3],height:i.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!r.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),c.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(r.isArray(t))r.each(t,(function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)})),e._cfg.children=n.concat(t);else{var i=t,a=i.get("parent");a&&a.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){var e=this.get("children");return e.indexOf(t)>-1},getChildByIndex:function(t){var e=this.get("children");return e[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=this,e=1/0,n=-1/0,i=1/0,a=-1/0,o=t.get("children");o.length>0?r.each(o,(function(t){if(t.get("visible")){if(t.isGroup&&0===t.get("children").length)return;var r=t.getBBox();if(!r)return!0;var o=[r.minX,r.minY,1],s=[r.minX,r.maxY,1],u=[r.maxX,r.minY,1],l=[r.maxX,r.maxY,1];t.apply(o),t.apply(s),t.apply(u),t.apply(l);var c=Math.min(o[0],s[0],u[0],l[0]),f=Math.max(o[0],s[0],u[0],l[0]),h=Math.min(o[1],s[1],u[1],l[1]),d=Math.max(o[1],s[1],u[1],l[1]);cn&&(n=f),ha&&(a=d)}})):(e=0,n=0,i=0,a=0);var s={minX:e,minY:i,maxX:n,maxY:a};return s.x=s.minX,s.y=s.minY,s.width=s.maxX-s.minX,s.height=s.maxY-s.minY,s},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return r.each(t,(function(t,e){return t[s]=e,t})),t.sort(u((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this},findById:function(t){return this.find((function(e){return e.get("id")===t}))},find:function(t){if(r.isString(t))return this.findById(t);var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1})),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},findBy:function(t){var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1})),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},getShape:function(t,e){var n,r=this,i=r._attrs.clip,a=r._cfg.children;if(i){var o=[t,e,1];i.invert(o,r.get("canvas")),i.isPointInPath(o[0],o[1])&&(n=l(a,t,e))}else n=l(a,t,e);return n},clearTotalMatrix:function(){var t=this.get("totalMatrix");if(t){this.setSilent("totalMatrix",null);for(var e=this._cfg.children,n=0;n=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),c.superclass.destroy.call(this))},clone:function(){var t=this,e=t._cfg.children,n=new c;return r.each(e,(function(t){n.add(t.clone())})),n}}),t.exports=c},function(t,e,n){var r=n(1),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){var r=n(1),i=n(7),a=n(47),o=n(49);function s(t,e,n){return t+e*Math.cos(n)}function u(t,e,n){return t+e*Math.sin(n)}var l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(l,i),r.augment(l,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,o=t.endAngle,s=t.clockwise,u=this.getHitLineWidth(),l=u/2,c=a.box(e,n,r,i,o,s);return c.minX-=l,c.minY-=l,c.maxX+=l,c.maxY+=l,c},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.startAngle,i=t.r,a=t.clockwise,o=Math.PI/180;a&&(o*=-1);var l=[],c=s(e,i,r+o),f=u(n,i,r+o),h=s(e,i,r),d=u(n,i,r);return l.push([c,f]),l.push([h,d]),l},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.endAngle,i=t.r,a=t.clockwise,o=Math.PI/180,l=[];a&&(o*=-1);var c=s(e,i,r+o),f=u(n,i,r+o),h=s(e,i,r),d=u(n,i,r);return l.push([h,d]),l.push([c,f]),l},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t=t||self.get("context"),t.beginPath(),t.arc(n,r,i,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();o.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();o.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=l},function(t,e,n){var r=n(1),i=n(7),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(7),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(7),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,u=a>o?1:a/o,l=a>o?o/a:1,c=[1,0,0,0,1,0,0,0,1];r.mat3.scale(c,c,[u,l]),r.mat3.translate(c,c,[n,i]),t.beginPath(),t.save(),t.transform(c[0],c[1],c[3],c[4],c[6],c[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(7),a=n(47),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.rs,o=e.re,s=e.startAngle,u=e.endAngle,l=e.clockwise,c=this.getHitLineWidth(),f=a.box(n,r,i,s,u,l),h=a.box(n,r,o,s,u,l),d=Math.min(f.minX,h.minX),p=Math.min(f.minY,h.minY),g=Math.max(f.maxX,h.maxX),v=Math.max(f.maxY,h.maxY),_=c/2;return{minX:d-_,minY:p-_,maxX:g+_,maxY:v+_}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,l={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},c={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},f={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};t=t||self.get("context"),t.beginPath(),t.moveTo(l.x,l.y),t.lineTo(c.x,c.y),t.arc(n,r,a,o,s,u),t.lineTo(f.x,f.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(1),i=n(7),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y,r=t.width,i=t.height;return{minX:e,minY:n,maxX:e+r,maxY:n+i}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,l=e.sy,c=e.swidth,f=e.sheight;this.set("toDraw",!1);var h=a;if(h instanceof ImageData&&(h=new Image,h.src=a),h instanceof Image||h instanceof HTMLElement&&r.isString(h.nodeName)&&"CANVAS"===h.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(l)||r.isNil(c)||r.isNil(f))return void t.drawImage(h,n,i,o,s);if(!r.isNil(u)&&!r.isNil(l)&&!r.isNil(c)&&!r.isNil(f))return void t.drawImage(h,u,l,c,f,n,i,o,s)}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(7),a=n(49),o=n(48),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2;t=t||self.get("context"),t.beginPath(),t.moveTo(n,r),t.lineTo(i,a)},afterPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,i,o,n,r),e.endArrow&&a.addEndArrow(t,e,n,r,i,o)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){var r=n(1),i=r.vec2;function a(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function o(t,e,n,r,o,s,u,l,c){var f,h,d,p,g,v,_,m=.005,y=1/0,x=1e-4,b=[u,l];for(g=0;g<1;g+=.05)d=[a(t,n,o,g),a(e,r,s,g)],h=i.squaredDistance(b,d),h=0&&h=0?[a]:[]}t.exports={at:a,projectPoint:function(t,e,n,r,i,a,s,u){var l={};return o(t,e,n,r,i,a,s,u,l),l},pointDistance:o,extrema:s}},function(t,e,n){var r=n(1),i=n(7),a=n(50),o=n(37),s=n(49),u=n(77),l=n(75),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(c,i),r.augment(c,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){var e=this;if(r.isNil(t))return e.setSilent("segments",null),void e.setSilent("box",void 0);var n,i=o.parsePath(t),s=[];if(r.isArray(i)&&0!==i.length&&("M"===i[0][0]||"m"===i[0][0])){for(var u=i.length,l=0;la&&(a=e.maxX),e.minYs&&(s=e.maxY))})),i===1/0||o===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:i,minY:o,maxX:a,maxY:s}},_setTcache:function(){var t,e,n,i,a=0,o=0,s=[],u=this._cfg.curve;u&&(r.each(u,(function(t,e){n=u[e+1],i=t.length,n&&(a+=l.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),r.each(u,(function(r,c){n=u[c+1],i=r.length,n&&(t=[],t[0]=o/a,e=l.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))})),this._cfg.tCache=s)},_calculateCurve:function(){var t=this,e=t._attrs,n=e.path;this._cfg.curve=u.pathTocurve(n)},getStartTangent:function(){var t,e,n,i,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([t.x-o[0],t.y-o[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,i=[],r.isFunction(n)){var s=n();i.push([e.x-s[0],e.y-s[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,u=a[n+1];return{x:l.at(o[s-2],u[1],u[3],u[5],1-e),y:l.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this,n=e.get("segments");if(r.isArray(n)){t=t||e.get("context"),t.beginPath();for(var i=n.length,a=0;as&&(s=e),nu&&(u=n)}));var l=i/2;return{minX:a-l,minY:o-l,maxX:s+l,maxY:u+l}},createPath:function(t){var e=this,n=e._attrs,i=n.points;i.length<2||(t=t||e.get("context"),t.beginPath(),r.each(i,(function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])})),t.closePath())}}),t.exports=a},function(t,e,n){var r=n(1),i=n(7),a=n(49),o=n(48),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this,e=t._attrs,n=this.getHitLineWidth(),i=e.points;if(!i||0===i.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(i,(function(t){var e=t[0],n=t[1];es&&(s=e),nu&&(u=n)}));var l=n/2;return{minX:a-l,minY:o-l,maxX:s+l,maxY:u+l}},_setTcache:function(){var t,e,n=this,i=n._attrs,a=i.points,s=0,u=0,l=[];a&&0!==a.length&&(r.each(a,(function(t,e){a[e+1]&&(s+=o.len(t[0],t[1],a[e+1][0],a[e+1][1]))})),s<=0||(r.each(a,(function(n,r){a[r+1]&&(t=[],t[0]=u/s,e=o.len(n[0],n[1],a[r+1][0],a[r+1][1]),u+=e,t[1]=u/s,l.push(t))})),this.tCache=l))},createPath:function(t){var e,n,r=this,i=r._attrs,a=i.points;if(!(a.length<2)){for(t=t||r.get("context"),t.beginPath(),t.moveTo(a[0][0],a[0][1]),n=1,e=a.length-1;n=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),{x:o.at(a[n][0],a[n+1][0],e),y:o.at(a[n][1],a[n+1][1],e)}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(37),a=i.parseRadius,o=n(7),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(s,o),r.augment(s,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}},createPath:function(t){var e=this,n=e._attrs,r=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(t=t||e.get("context"),t.beginPath(),0===u)t.rect(r,i,o,s);else{var l=a(u);t.moveTo(r+l.r1,i),t.lineTo(r+o-l.r2,i),0!==l.r2&&t.arc(r+o-l.r2,i+l.r2,l.r2,-Math.PI/2,0),t.lineTo(r+o,i+s-l.r3),0!==l.r3&&t.arc(r+o-l.r3,i+s-l.r3,l.r3,0,Math.PI/2),t.lineTo(r+l.r4,i+s),0!==l.r4&&t.arc(r+l.r4,i+s-l.r4,l.r4,Math.PI/2,Math.PI),t.lineTo(r,i+l.r1),0!==l.r1&&t.arc(r+l.r1,i+l.r1,l.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(7),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e)&&-1!==e.indexOf("\n")){n=e.split("\n");var i=n.length;t.lineCount=i}t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){var r=this._getSpaceingY();return n*e+r*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this,e=t._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),e.textArr||this._setAttrText();var r=e.x,i=e.y,a=t.measureText();if(!a)return{minX:r,minY:i,maxX:r,maxY:i};var o=t._getTextHeight(),s=e.textAlign,u=e.textBaseline,l=t.getHitLineWidth(),c={x:r,y:i-o};s&&("end"===s||"right"===s?c.x-=a:"center"===s&&(c.x-=a/2)),u&&("top"===u?c.y+=o:"middle"===u&&(c.y+=o/2)),this.set("startPoint",c);var f=l/2;return{minX:c.x-f,minY:c.y-f,maxX:c.x+a+f,maxY:c.y+o+f}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this,n=e._attrs,i=this._cfg;i.attrs&&!i.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=n.font;var a=n.text;if(a){var o=n.textArr,s=n.x,u=n.y;if(t.beginPath(),e.hasStroke()){var l=n.strokeOpacity;r.isNil(l)||1===l||(t.globalAlpha=l),o?e._drawTextArr(t,!1):t.strokeText(a,s,u),t.globalAlpha=1}if(e.hasFill()){var c=n.fillOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),o?e._drawTextArr(t,!0):t.fillText(a,s,u)}i.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,l=this._attrs.y,c=this.getBBox(),f=c.maxY-c.minY;r.each(i,(function(r,i){n=l+i*(s+o)-f+o,"middle"===a&&(n+=f-o-(f-o)/2),"top"===a&&(n+=f-o),e?t.fillText(r,u,n):t.strokeText(r,u,n)}))},measureText:function(){var t,e=this,n=e._attrs,i=n.text,a=n.font,o=n.textArr,s=0;if(!r.isNil(i)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=a,o?r.each(o,(function(e){t=u.measureText(e).width,s0;n--)if(t%n===0)break;if(1===n)for(n=e;n>0;n--)if((t-1)%n===0)break;return n}t.exports=function(t){var e,n={},r=[],u=t.isRounding,l=o(t.data),c=l.length,f=t.maxCount||i;if(u?(e=s(c-1,f-1)+1,2===e?e=f:en&&(e=parseFloat(e.toFixed(r)))}else while(t>10)e*=10,t/=10;return e}function i(t,e){var n=t.length;if(0===n)return NaN;var r=t[0];if(e=t[n-1])return t[n-1];for(var i=1;it[r-1])return NaN;if(en){var l=parseInt(1/a),c=a>0?1:-1;u=t/l*c}return u},snapMultiple:function(t,e,n){var r;return r="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e),r*e},snapTo:function(t,e){var n=i(t,e),r=a(t,e);if(isNaN(n)||isNaN(r)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(o<=e)return o}return Math.abs(e-n)=0?parseInt(n.substr(i+2),10):n.substr(r+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))}};t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(26),a=n(151),o=n(2),s=n(11),u=n(15),l=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="cat",this.isCategory=!0,this.isRounding=!0},n.init=function(){var t=this,e=t.values,n=t.tickCount;if(o(e,(function(t,n){e[n]=t.toString()})),!t.ticks){var r=e;if(n){var i=a({maxCount:n,data:e,isRounding:t.isRounding});r=i.ticks}this.ticks=r}},n.getText=function(e){return-1===this.values.indexOf(e)&&s(e)&&(e=this.values[Math.round(e)]),t.prototype.getText.call(this,e)},n.translate=function(t){var e=this.values.indexOf(t);return-1===e&&s(t)?e=t:-1===e&&(e=NaN),e},n.scale=function(t){var e,n=this.rangeMin(),r=this.rangeMax();return(u(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e=this.values.length>1?t/(this.values.length-1):t,n+e*(r-n)},n.invert=function(t){if(u(t))return t;var e=this.rangeMin(),n=this.rangeMax();tn&&(t=n);var r=(t-e)/(n-e),i=Math.round(r*(this.values.length-1))%this.values.length;return i=i||0,this.values[i]},e}(i);i.Cat=l,t.exports=l},function(t,e,n){var r=n(187),i=n(26);i.Linear=n(51),i.Identity=n(353),i.Cat=n(153),i.Time=n(357),i.TimeCat=n(356),i.Log=n(354),i.Pow=n(355);var a=function(t){if(i.hasOwnProperty(t)){var e=r(t);i[e]=function(e){return new i[t](e)}}};for(var o in i)a(o);var s=["cat","timeCat"];i.isCategory=function(t){return s.indexOf(t)>=0},t.exports=i},function(t,e,n){var r=n(21),i=Array.prototype.splice,a=function(t,e){if(!r(t))return[];var n=t?e.length:0,a=n-1;while(n--){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t};t.exports=a},function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,a=n.slice,o=function(t){for(var e=a.call(arguments,1),n=0;n-1)r.call(t,s,1)}return t};t.exports=o},function(t,e,n){var r=n(2),i=n(53),a=function(t){var e=[];return r(t,(function(t){i(e,t)||e.push(t)})),e};t.exports=a},function(t,e,n){var r=n(14),i=n(57),a=n(10),o=function(t){for(var e=i(arguments),n=1;n]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){t.exports=function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}},function(t,e,n){var r=n(14),i=n(10),a=function(t,e,n,a){r(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=i(s,t.prototype),t.superclass=o(e.prototype,e),i(s,n),i(t,a),t};t.exports=a},function(t,e,n){var r=n(2),i=n(4),a=Object.prototype.hasOwnProperty,o=function(t,e){if(!e||!i(t))return t;var n={},o=null;return r(t,(function(t){o=e(t),a.call(n,o)?n[o].push(t):n[o]=[t]})),n};t.exports=o},function(t,e,n){var r=n(14),i=n(4),a=n(163),o=function(t,e){if(!e)return{0:t};if(!r(e)){var n=i(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;ro&&(n=t,o=s)})),n}};t.exports=o},function(t,e){var n=function(t,e){return(t%e+e)%e};t.exports=n},function(t,e){var n=180/Math.PI,r=function(t){return n*t};t.exports=r},function(t,e){t.exports=parseInt},function(t,e){var n=Math.PI/180,r=function(t){return n*t};t.exports=r},function(t,e,n){var r=n(80),i=n(2),a=n(85);t.exports=function(t,e){return t=r(t),i(e,(function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}})),t}},function(t,e,n){var r=n(349),i=n(84);r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),a=r.direction(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.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},t.exports=r},function(t,e,n){var r=n(350);t.exports=r},function(t,e){t.exports=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){var r=n(178),i=n(6);function a(t,e){var n=r(e),a=n.length;if(i(t))return!a;for(var o=0;or;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}},function(t,e){var n=/,?([a-z]),?/gi;t.exports=function(t){return t.join(",").replace(n,"$1")}},function(t,e){var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",i=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");t.exports=function(t){if(!t)return null;if(("undefined"===typeof t?"undefined":n(t))===n([]))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},r=[];return String(t).replace(i,(function(t,n,i){var o=[],s=n.toLowerCase();if(i.replace(a,(function(t,e){e&&o.push(+e)})),"m"===s&&o.length>2&&(r.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&r.push([n,o[0]]),"r"===s)r.push([n].concat(o));else while(o.length>=e[s])if(r.push([n].concat(o.splice(0,e[s]))),!e[s])break})),r}},function(t,e,n){var r=n(182),i=n(180);function a(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o),l=e+n*Math.sin(-r*o),c=e+n*Math.sin(-i*o);a=[["M",s,l],["A",n,n,0,+(i-r>180),0,u,c]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a}t.exports=function(t){if(t=r(t),!t||!t.length)return[["M",0,0]];var e=[],n=0,o=0,s=0,u=0,l=0,c=void 0,f=void 0;"M"===t[0][0]&&(n=+t[0][1],o=+t[0][2],s=n,u=o,l++,e[0]=["M",n,o]);for(var h,d,p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=l,v=t.length;g1&&(w=Math.sqrt(w),r*=w,i*=w);var M=r*r,j=i*i,E=(o===s?-1:1)*Math.sqrt(Math.abs((M*j-M*b*b-j*x*x)/(M*b*b+j*x*x)));_=E*r*b/i+(e+u)/2,m=E*-i*x/r+(n+l)/2,g=Math.asin(((n-m)/i).toFixed(9)),v=Math.asin(((l-m)/i).toFixed(9)),g=e<_?Math.PI-g:g,v=u<_?Math.PI-v:v,g<0&&(g=2*Math.PI+g),v<0&&(v=2*Math.PI+v),s&&g>v&&(g-=2*Math.PI),!s&&v>g&&(v-=2*Math.PI)}var S=v-g;if(Math.abs(S)>f){var P=v,C=u,O=l;v=g+f*(s&&v>g?1:-1),u=_+r*Math.cos(v),l=m+i*Math.sin(v),d=t(u,l,r,i,a,0,s,C,O,[v,P,_,m])}S=v-g;var k=Math.cos(g),T=Math.sin(g),A=Math.cos(v),I=Math.sin(v),D=Math.tan(S/4),L=4/3*r*D,R=4/3*i*D,N=[e,n],B=[e+L*T,n-R*k],F=[u+L*I,l-R*A],z=[u,l];if(B[0]=2*N[0]-B[0],B[1]=2*N[1]-B[1],c)return[B,F,z].concat(d);d=[B,F,z].concat(d).join().split(",");for(var q=[],G=0,W=d.length;G7){t[e].shift();var r=t[e];while(r.length)c[e]="A",s&&(f[e]="A"),t.splice(e++,0,["C"].concat(r.splice(0,6)));t.splice(e,1),p=Math.max(n.length,s&&s.length||0)}},_=function(t,e,r,i,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=t[a][1],r.y=t[a][2],p=Math.max(n.length,s&&s.length||0))};p=Math.max(n.length,s&&s.length||0);for(var m=0;m1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];o.default.each(e,(function(e){var r=e.prop,i=e.event,a=n[r];if(o.default.isFunction(a))t.on(i,a);else if(o.default.isObject(a))for(var s in a)void 0!==a[s]&&t.on(s+":"+i,a[s])}))}function M(t,e){w(t,y,e)}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];o.default.each(e,(function(e){var i=e.prop,a=e.event,s=n[i],u=r[i],l=void 0;if(!o.default.shallowEqual(s,u))if(o.default.isFunction(s)&&o.default.isFunction(u))t.off(a,s),t.on(a,u);else if(o.default.isObject(s)&&o.default.isObject(u)){for(l in s)Object.prototype.hasOwnProperty.call(s,l)&&t.off(l+":"+a,s[l]);for(l in u)Object.prototype.hasOwnProperty.call(u,l)&&t.on(l+":"+a,u[l])}}))}function E(t,e,n){j(t,y,e,n)}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];o.default.each(e,(function(e){var r=e.prop,i=e.event,a=n[r];if(o.default.isFunction(a))t.off(i,a);else if(o.default.isObject(a))for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&t.off(s+":"+i,a[s])}))}function P(t,e){S(t,y,e)}e.default={baseEventObjectTypes:x,baseEventFuncTypes:b,genBaseEvents:_,genItemBaseEvents:m,bindEvents:w,bindBaseEvents:M,updateEvents:j,updateBaseEvents:E,unbindEvents:S,unbindBaseEvents:P,chartEvents:v}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var _=u.default.COORD_FUNC_PROPS,m=u.default.GEOM_FUNC_PROPS;e.default={createChart:function(t){var e=t.chart,n=e.props.forceFit;e.props.forceFit=!1;var r=new a.Chart(e.props);return e.props.afterChartInitialized&&e.props.afterChartInitialized(r),n&&r.forceFit(),e.g2Instance=r,r},executeChartConfig:function(t,e){var n=e.chart,r=n.props;t.coord("rect",{}),t.source(r.data,r.scale),(e.facet||r.axis)&&e.facet&&!1!==r.axis||t.axis(!1),t.legend(!1),t.tooltip(!1),r.filter&&r.filter.forEach((function(e){t.filter(e[0],e[1])})),c.default.bindEvents(t,c.default.chartEvents,r),c.default.bindBaseEvents(t,r)},coord:function(t,e){var n=e.coord;if(n&&!n.g2Instance){var r=n.props,i=r.type,a=v(r,["type"]),s=t.coord(i||"rect",o.Util.without(a,_));o.Prop.init(_,a,(function(t,e){"reflect"===e?o.Util.each(t,(function(t){return s[e](t)})):"transpose"===e?!0===t[0]&&s[e].apply(s,g(t)):s[e].apply(s,g(t))})),n.g2Instance=s}},createLabel:function(t,e){if(e&&!e.g2Instance){var n=e.props,r=n.content,i=v(n,["content"]);r&&(o.Util.isArray(r)?e.g2Instance=t.label(r[0],r[1],i):e.g2Instance=t.label(r,i))}},createGeom:function(t,e){if(e.g2Instance)e.label&&this.createLabel(e.g2Instance,e.label);else{var n=e.props,r=t[n.type||"interval"]();n.adjust&&r.adjust(n.adjust),o.Prop.init(m,n,(function(t,e){r[e].apply(r,g(t))})),e.g2Instance=r,this.createLabel(r,e.label)}},geoms:function(t,e){var n=e.geoms;if(n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&this.createGeom(t,n[r])},legends:function(t,e){var n=e.legends;for(var r in n)if(n[r]){var i=n[r];if(i.g2Instance)return;var a=i.props,o=a.name,s=a.visible,u=v(a,["name","visible"]),l=s;Object.prototype.hasOwnProperty.call(i.props,"visible")||(l=!0);var c=l?u:l;i.g2Instance=t.legend.apply(t,g(o?[o,c]:[c]))}},tooltip:function(t,e){var n=e.tooltip;n&&!n.g2Instance&&(n.g2Instance=t.tooltip(r({},n.props)))},createAxis:function(t,e){if(!e.g2Instance){var n=e.props,r=n.name,i=n.visible,a=v(n,["name","visible"]);i||!Object.prototype.hasOwnProperty.call(e.props,"visible")?e.g2Instance=t.axis(r,a):e.g2Instance=t.axis(r,!1)}},axises:function(t,e){var n=e.axises;for(var r in n)n[r]&&this.createAxis(t,n[r])},views:function(t,e){var n=e.views;for(var r in n)n[r]&&this.createView(t,n[r])},createView:function(t,e){if("Facet"!==e.parentInfo.name){if(e.g2Instance)return e.filter&&e.filter.forEach((function(t){e.g2Instance.filter(t[0],t[1])})),this.coord(e.g2Instance,e),this.axises(e.g2Instance,e),this.geoms(e.g2Instance,e),void this.guide(e.g2Instance,e.guide);var n=e.props,i=n.scale,a=n.data,o=n.instance,s=n.axis,u=n.filter,l=(n.geoms,v(n,["scale","data","instance","axis","filter","geoms"])),c=void 0;c=o||t.view(r({},l)),a&&c.source(a,i),i&&c.scale(i),u&&u.forEach((function(t){c.filter(t[0],t[1])})),!0===s||o||c.axis(!1),e.g2Instance=c,this.coord(c,e),this.axises(c,e),this.geoms(c,e),this.guide(c,e.guide)}},facetView:function(t,e){var n=e.props,r=n.scale,i=n.data,a=n.axis;n.geoms,v(n,["scale","data","axis","geoms"]);i&&t.source(i,r),r&&t.scale(r),!1===a&&t.axis(!1),this.coord(t,e),this.axises(t,e),this.geoms(t,e),this.guide(t,e.guide),h.default.mergeView(e,!0)},guide:function(t,e){if(e){var n=e.elements;for(var r in n)if(n[r]){var i=n[r];if(!i.g2Instance){var a=i.props,o=(a.type,v(a,["type"]));i.g2Instance=t.guide()[i.type](o)}}}},facet:function(t,e){var n=this,r=e.facet;if(r&&!r.g2Instance){var i=r.props,a=i.children,o=i.type,s=v(i,["children","type"]);if(a){var u=e.views,l=null;for(var c in u)if(u[c]&&"Facet"===u[c].parentInfo.name&&u[c].parentInfo.id===r.id){l=u[c];break}l&&(h.default.mergeView(l,!0),s.eachView=function(t){n.facetView(t,l)},t.facet(o,s))}else t.facet(o,s)}},synchronizeG2Add:function(t,e){this.coord(t,e),this.axises(t,e),this.legends(t,e),this.tooltip(t,e),this.geoms(t,e),this.facet(t,e),this.views(t,e),this.guide(t,e.guide)},synchronizeG2Views:function(t,e){var n=e.views;for(var r in n)n[r]&&this.synchronizeG2View(n[r].g2Instance,n[r])},synchronizeG2View:function(t,e){t.clear(),this.clearViewG2Instance(e);var n=e.props,r=n.scale,i=n.data,a=n.instance,o=n.axis;n.geoms,v(n,["scale","data","instance","axis","geoms"]);i&&t.source(i,r),r&&t.scale(r),!0===o||a||t.axis(!1),this.coord(t,e),this.axises(t,e),this.geoms(t,e),this.guide(t,e.guide)},clearViewG2Instance:function(t){t.coord&&delete t.coord.g2Instance,t.axises&&Object.keys(t.axises).forEach((function(e){delete t.axises[e].g2Instance})),t.geoms&&Object.keys(t.geoms).forEach((function(e){delete t.geoms[e].g2Instance,t.geoms[e].label&&delete t.geoms[e].label.g2Instance})),t.guide&&t.guide.elements&&Object.keys(t.guide.elements).forEach((function(e){delete t.guide.elements[e].g2Instance}))}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(449);n.d(e,"easeLinear",(function(){return r["a"]}));var i=n(451);n.d(e,"easeQuad",(function(){return i["a"]})),n.d(e,"easeQuadIn",(function(){return i["b"]})),n.d(e,"easeQuadOut",(function(){return i["c"]})),n.d(e,"easeQuadInOut",(function(){return i["a"]}));var a=n(446);n.d(e,"easeCubic",(function(){return a["a"]})),n.d(e,"easeCubicIn",(function(){return a["b"]})),n.d(e,"easeCubicOut",(function(){return a["c"]})),n.d(e,"easeCubicInOut",(function(){return a["a"]}));var o=n(450);n.d(e,"easePoly",(function(){return o["a"]})),n.d(e,"easePolyIn",(function(){return o["b"]})),n.d(e,"easePolyOut",(function(){return o["c"]})),n.d(e,"easePolyInOut",(function(){return o["a"]}));var s=n(452);n.d(e,"easeSin",(function(){return s["a"]})),n.d(e,"easeSinIn",(function(){return s["b"]})),n.d(e,"easeSinOut",(function(){return s["c"]})),n.d(e,"easeSinInOut",(function(){return s["a"]}));var u=n(448);n.d(e,"easeExp",(function(){return u["a"]})),n.d(e,"easeExpIn",(function(){return u["b"]})),n.d(e,"easeExpOut",(function(){return u["c"]})),n.d(e,"easeExpInOut",(function(){return u["a"]}));var l=n(445);n.d(e,"easeCircle",(function(){return l["a"]})),n.d(e,"easeCircleIn",(function(){return l["b"]})),n.d(e,"easeCircleOut",(function(){return l["c"]})),n.d(e,"easeCircleInOut",(function(){return l["a"]}));var c=n(444);n.d(e,"easeBounce",(function(){return c["a"]})),n.d(e,"easeBounceIn",(function(){return c["b"]})),n.d(e,"easeBounceOut",(function(){return c["a"]})),n.d(e,"easeBounceInOut",(function(){return c["c"]}));var f=n(443);n.d(e,"easeBack",(function(){return f["a"]})),n.d(e,"easeBackIn",(function(){return f["b"]})),n.d(e,"easeBackOut",(function(){return f["c"]})),n.d(e,"easeBackInOut",(function(){return f["a"]}));var h=n(447);n.d(e,"easeElastic",(function(){return h["a"]})),n.d(e,"easeElasticIn",(function(){return h["b"]})),n.d(e,"easeElasticOut",(function(){return h["a"]})),n.d(e,"easeElasticInOut",(function(){return h["c"]}))},function(t,e,n){"use strict";var r=n(92);e["a"]=function(t,e){var i,a=e?e.length:0,o=t?Math.min(a,t.length):0,s=new Array(o),u=new Array(a);for(i=0;if&&(c=e.slice(f,c),d[h]?d[h]+=c:d[++h]=c),(u=u[0])===(l=l[0])?d[h]?d[h]+=l:d[++h]=l:(d[++h]=null,p.push({i:h,x:n.i(r["a"])(u,l)})),f=a.lastIndex;return ff&&(c=e.slice(f,c),d[h]?d[h]+=c:d[++h]=c),(u=u[0])===(l=l[0])?d[h]?d[h]+=l:d[++h]=l:(d[++h]=null,p.push({i:h,x:n.i(r["a"])(u,l)})),f=a.lastIndex;return f1?this.each((null==e?i:"function"===typeof e?o:a)(t,e,null==n?"":n)):s(this.node(),t)}},function(t,e,n){"use strict";function r(){return[]}e["a"]=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";var r=n(13);e["a"]=function(t,e){var n,i,a,o=t.__transition,s=!0;if(o){for(a in e=null==e?null:e+"",o)(n=o[a]).name===e?(i=n.state>r["a"]&&n.state3?0:(t-t%10!==10)*t%10]}};var x={D:function(t){return t.getDate()},DD:function(t){return g(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return g(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 g(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 String(t.getFullYear()).substr(2)},YYYY:function(t){return g(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return g(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return g(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return g(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return g(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return g(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return g(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?"-":"+")+g(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},b={D:[s,function(t,e){t.day=e}],Do:[new RegExp(s.source+c.source),function(t,e){t.day=parseInt(e,10)}],M:[s,function(t,e){t.month=e-1}],YY:[s,function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:[s,function(t,e){t.hour=e}],m:[s,function(t,e){t.minute=e}],s:[s,function(t,e){t.second=e}],YYYY:[l,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:[u,function(t,e){t.millisecond=e}],d:[s,h],ddd:[c,h],MMM:[c,p("monthNamesShort")],MMMM:[c,p("monthNames")],a:[c,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};b.dd=b.d,b.dddd=b.ddd,b.DD=b.D,b.mm=b.m,b.hh=b.H=b.HH=b.h,b.MM=b.M,b.ss=b.s,b.A=b.a,a.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"},a.format=function(t,e,n){var r=n||a.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=a.masks[e]||e||a.masks["default"];var i=[];return e=e.replace(f,(function(t,e){return i.push(e),"??"})),e=e.replace(o,(function(e){return e in x?x[e](t,r):e.slice(1,e.length-1)})),e.replace(/\?\?/g,(function(){return i.shift()}))},a.parse=function(t,e,n){var r=n||a.i18n;if("string"!==typeof e)throw new Error("Invalid format in fecha.parse");if(e=a.masks[e]||e,t.length>1e3)return!1;var i=!0,s={};if(e.replace(o,(function(e){if(b[e]){var n=b[e],a=t.search(n[0]);~a?t.replace(n[0],(function(e){return n[1](s,e,r),t=t.substr(a+e.length),e})):i=!1}return b[e]?"":e.slice(1,e.length-1)})),!i)return!1;var u,l=new Date;return!0===s.isPm&&null!=s.hour&&12!==+s.hour?s.hour=+s.hour+12:!1===s.isPm&&12===+s.hour&&(s.hour=0),null!=s.timezoneOffset?(s.minute=+(s.minute||0)-+s.timezoneOffset,u=new Date(Date.UTC(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0))):u=new Date(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0),u},"undefined"!==typeof t&&t.exports?t.exports=a:(r=function(){return a}.call(e,n,e,t),void 0===r||(t.exports=r))})()},function(t,e,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=r},function(t,e,n){"use strict";t.exports=n(542)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(r){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(33),a=n(2),o=.5,s=.5,u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.marginRatio=o,this.dodgeRatio=s,this.adjustNames=["x","y"]},n.getDodgeOffset=function(t,e,n){var r=this,i=t.pre,a=t.next,o=a-i,s=o*r.dodgeRatio/n,u=r.marginRatio*s,l=.5*(o-n*s-(n-1)*u)+((e+1)*s+e*u)-.5*s-.5*o;return(i+a)/2+l},n.processAdjust=function(t){var e=this,n=t.length,r=e.xField;a(t,(function(t,i){for(var a=0,o=t.length;a=0?"positive":"negative";s[v][g]||(s[v][g]=0),h[r]=[s[v][g],p+s[v][g]],s[v][g]+=p}}},e}(o);o.Stack=s,t.exports=s},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(2),a=n(168),o=n(4),s={merge:n(54)},u=n(33),l=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null,this.cacheMax=null,this.adjustNames=["y"],this.groupFields=null},n._getMax=function(t){var e=this,n=e.mergeData,r=a(n,(function(e){var n=e[t];return o(n)?Math.max.apply(null,n):n})),i=r[t],s=o(i)?Math.max.apply(null,i):i;return s},n._getXValuesMax=function(){var t=this,e=t.yField,n=t.xField,r={},a=t.mergeData;return i(a,(function(t){var i=t[n],a=t[e],s=o(a)?Math.max.apply(null,a):a;r[i]=r[i]||0,r[i]0?e="left":t[0]<0&&(e="right"),e},n.getLinePath=function(){var t=this,e=t.get("center"),n=e.x,r=e.y,i=t.get("radius"),a=i,o=t.get("startAngle"),s=t.get("endAngle"),u=t.get("inner"),l=[];if(Math.abs(s-o)===2*Math.PI)l=[["M",n,r],["m",0,-a],["a",i,a,0,1,1,0,2*a],["a",i,a,0,1,1,0,-2*a],["z"]];else{var c=t._getCirclePoint(o),f=t._getCirclePoint(s),h=Math.abs(s-o)>Math.PI?1:0,d=o>s?0:1;if(u){var p=t.getSideVector(u*i,c),g=t.getSideVector(u*i,f),v={x:p[0]+n,y:p[1]+r},_={x:g[0]+n,y:g[1]+r};l=[["M",v.x,v.y],["L",c.x,c.y],["A",i,a,0,h,d,f.x,f.y],["L",_.x,_.y],["A",i*u,a*u,0,h,Math.abs(d-1),v.x,v.y]]}else l=[["M",n,r],["L",c.x,c.y],["A",i,a,0,h,d,f.x,f.y],["L",n,r]]}return l},n.addLabel=function(e,n,r){var i=this,a=i.get("label").offset||i.get("_labelOffset")||.001;n=i.getSidePoint(n,a),t.prototype.addLabel.call(this,e,n,r)},n.autoRotateLabels=function(){var t=this,e=t.get("ticks"),n=t.get("labelRenderer");if(n&&e.length>12){var r=t.get("radius"),i=t.get("startAngle"),a=t.get("endAngle"),o=a-i,s=o/(e.length-1),u=Math.sin(s/2)*r*2,c=t.getMaxLabelWidth(n);l.each(n.get("group").get("children"),(function(t,n){var r=e[n],a=r.value*o+i,s=a%(2*Math.PI);cMath.PI&&(a-=Math.PI),a-=Math.PI/2,t.attr("textAlign","center")):s>Math.PI/2?a-=Math.PI:sa.x)&&(u=!0);var l=h.vertical([],s,u);return h.scale([],l,t*r)},n.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},n.getLinePath=function(){var t=this,e=t.get("start"),n=t.get("end"),r=[];return r.push(["M",e.x,e.y]),r.push(["L",n.x,n.y]),r},n.getTickEnd=function(t,e){var n=this,r=n.getSideVector(e);return{x:t.x+r[0],y:t.y+r[1]}},n.getTickPoint=function(t){var e=this,n=e.get("start"),r=e.get("end"),i=r.x-n.x,a=r.y-n.y;return{x:n.x+i*t,y:n.y+a*t}},n.renderTitle=function(){var t=this,e=t.get("title"),n=t.getTickPoint(.5),r=e.offset;if(c.isNil(r)){r=20;var i=t.get("labelsGroup");if(i){var a=t.getMaxLabelWidth(i),o=t.get("label").offset||t.get("_labelOffset");r+=a+o}}var s=e.textStyle,u=c.mix({},s);if(e.text){var l=t.getAxisVector();if(e.autoRotate&&c.isNil(s.rotate)){var f=0;if(!c.snapEqual(l[1],0)){var d=[1,0],p=[l[0],l[1]];f=h.angleTo(p,d,!0)}u.rotate=f*(180/Math.PI)}else c.isNil(s.rotate)||(u.rotate=s.rotate/180*Math.PI);var g,v=t.getSideVector(r),_=e.position;g="start"===_?{x:this.get("start").x+v[0],y:this.get("start").y+v[1]}:"end"===_?{x:this.get("end").x+v[0],y:this.get("end").y+v[1]}:{x:n.x+v[0],y:n.y+v[1]},u.x=g.x,u.y=g.y,u.text=e.text;var m=t.get("group"),y=m.addShape("Text",{zIndex:2,attrs:u});y.name="axis-title",t.get("appendInfo")&&y.setSilent("appendInfo",t.get("appendInfo"))}},n.autoRotateLabels=function(){var t=this,e=t.get("labelRenderer"),n=t.get("title");if(e){var r=e.get("group"),i=r.get("children"),a=t.get("label").offset,o=12,s=n?n.offset:48;if(s<0)return;var u,l,f=t.getAxisVector();if(c.snapEqual(f[0],0)&&n&&n.text)l=t.getMaxLabelWidth(e),l>s-a-o&&(u=-1*Math.acos((s-a-o)/l));else if(c.snapEqual(f[1],0)&&i.length>1){var h=Math.abs(t._getAvgLabelLength(e));l=t.getMaxLabelWidth(e),l>h&&(u=Math.asin(1.25*(s-a-o)/l))}if(u){var d=t.get("factor");c.each(i,(function(t){t.rotateAtStart(u),c.snapEqual(f[1],0)&&(d>0?t.attr("textAlign","left"):t.attr("textAlign","right"))}))}}},n.autoHideLabels=function(){var t,e,n=this,r=n.get("labelRenderer"),i=8;if(r){var a=r.get("group"),o=a.get("children"),s=n.getAxisVector();if(o.length<2)return;if(c.snapEqual(s[0],0)){var u=n.getMaxLabelHeight(r)+i,l=Math.abs(n._getAvgLabelHeightSpace(r));u>l&&(t=u,e=l)}else if(c.snapEqual(s[1],0)&&o.length>1){var f=n.getMaxLabelWidth(r)+i,h=Math.abs(n._getAvgLabelLength(r));f>h&&(t=f,e=h)}if(t&&e){var d=Math.ceil(t/e);c.each(o,(function(t,e){e%d!==0&&t.attr("text","")}))}}},e}(l);t.exports=d},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(35),f=l.MatrixUtil,h=l.PathUtil,d=f.vec2,p=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{type:"polyline"})},n.getLinePath=function(){var t=this,e=t.get("tickPoints"),n=t.get("start"),r=t.get("end"),i=[];i.push(n.x),i.push(n.y),l.each(e,(function(t){i.push(t.x),i.push(t.y)})),i.push(r.x),i.push(r.y);var a=h.catmullRomToBezier(i);return a.unshift(["M",n.x,n.y]),a},n.getTickPoint=function(t,e){var n=this.get("tickPoints");return n[e]},n.getTickEnd=function(t,e,n){var r=this,i=r.get("tickLine"),a=e||i.length,o=r.getSideVector(a,t,n);return{x:t.x+o[0],y:t.y+o[1]}},n.getSideVector=function(t,e,n){var r,i=this;if(0===n){if(r=i.get("start"),r.x===e.x&&r.y===e.y)return[0,0]}else{var a=i.get("tickPoints");r=a[n-1]}var o=[e.x-r.x,e.y-r.y],s=d.normalize([],o),u=d.vertical([],s,!1);return d.scale([],u,t)},e}(c);t.exports=p},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(20),f=Math.PI,h=Math.atan;function d(t,e){var n,r=t.x-e.x,i=t.y-e.y;return 0===i?n=r<0?f/2:270*f/180:r>=0&&i>0?n=2*f-h(r/i):r<=0&&i<0?n=f-h(r/i):r>0&&i<0?n=f+h(-r/i):r<0&&i>0&&(n=h(r/-i)),n}var p=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{name:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},n.render=function(t,e){var n=this,r=n.parsePoint(t,n.get("start")),i=n.parsePoint(t,n.get("end"));if(r&&i){var a,o=t.getCenter(),s=Math.sqrt((r.x-o.x)*(r.x-o.x)+(r.y-o.y)*(r.y-o.y)),u=d(r,o),c=d(i,o);if(cf?1:0;a=[["M",r.x,r.y],["A",s,s,0,p,1,i.x,i.y]]}var g=e.addShape("path",{zIndex:n.get("zIndex"),attrs:l.mix({path:a},n.get("style"))});g.name="guide-arc",n.get("appendInfo")&&g.setSilent("appendInfo",n.get("appendInfo")),n.set("el",g)}},e}(c);t.exports=p},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(20),f=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{name:"dataMarker",zIndex:1,top:!0,position:null,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"#000000",opacity:.65,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0})},n.render=function(t,e){var n=this,r=n.parsePoint(t,n.get("position"));if(r){var i=e.addGroup();i.name="guide-data-marker";var a,o,s=n._getElementPosition(r),u=n.get("display");if(u.line){var l=s.line;a=n._drawLine(l,i)}if(u.text&&n.get("content")){var c=s.text;o=n._drawText(c,i)}if(u.point){var f=s.point;n._drawPoint(f,i)}if(n.get("autoAdjust")){var h=i.getBBox(),d=h.minX,p=h.minY,g=h.maxX,v=h.maxY,_=t.start,m=t.end;if(o){d<=_.x&&o.attr("textAlign","start"),g>=m.x&&o.attr("textAlign","end");var y=n.get("direction");if("upward"===y&&p<=m.y||"upward"!==y&&v>=_.y){var x,b;"upward"===y&&p<=m.y?(x="top",b=1):(x="bottom",b=-1),o.attr("textBaseline",x);var w=0;if(n.get("display").line){w=n.get("lineLength");var M=[["M",r.x,r.y],["L",r.x,r.y+w*b]];a.attr("path",M)}var j=r.y+(w+2)*b;o.attr("y",j)}}}n.get("appendInfo")&&i.setSilent("appendInfo",n.get("appendInfo")),n.set("el",i)}},n._getElementPosition=function(t){var e=this,n=t.x,r=t.y,i=e.get("display").line?e.get("lineLength"):0,a=e.get("direction"),o=e.get("style").text;o.textBaseline="upward"===a?"bottom":"top";var s="upward"===a?-1:1,u={x:n,y:r},l={x:n,y:r},c={x:n,y:i*s+r},f={x:n,y:(i+2)*s+r};return{point:u,line:[l,c],text:f}},n._drawLine=function(t,e){var n=this,r=n.get("style").line,i=[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y]],a=e.addShape("path",{attrs:l.mix({path:i},r)});return a},n._drawText=function(t,e){var n=this,r=this.get("style").text,i=e.addShape("text",{attrs:l.mix({text:n.get("content")},r,t)});return i},n._drawPoint=function(t,e){var n=this,r=n.get("style").point,i=e.addShape("circle",{attrs:l.mix({},r,t)});return i},e}(c);t.exports=f},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(109),f=n(20),h=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{name:"dataRegion",start:null,end:null,content:"",style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}})},n.render=function(t,e,n){var r=this,i=r.get("lineLength")||0,a=r._getRegionData(t,n);if(a.length){var o=r._getBBox(a),s=[];s.push(["M",a[0].x,o.yMin-i]);for(var u=0,c=a.length;u=n){var v=r.parsePoint(t,[g[o],g[s]]);v&&h.push(v)}if(g[o]===f)break}return h},n._getBBox=function(t){for(var e=[],n=[],r=0;r');i.appendChild(a);var o=n.get("htmlContent")||n.get("html");if(l.isFunction(o)){var s=n.get("xScales"),u=n.get("yScales");o=o(s,u)}var f=c.createDom(o);a.appendChild(f),c.modifyCSS(a,{position:"absolute"}),n._setDomPosition(a,f,r),n.set("el",a)}},n._setDomPosition=function(t,e,n){var r=this,i=r.get("alignX"),a=r.get("alignY"),o=c.getOuterWidth(e),s=c.getOuterHeight(e),u={x:n.x,y:n.y};"middle"===i&&"top"===a?u.x-=Math.round(o/2):"middle"===i&&"bottom"===a?(u.x-=Math.round(o/2),u.y-=Math.round(s)):"left"===i&&"bottom"===a?u.y-=Math.round(s):"left"===i&&"middle"===a?u.y-=Math.round(s/2):"left"===i&&"top"===a?(u.x=n.x,u.y=n.y):"right"===i&&"bottom"===a?(u.x-=Math.round(o),u.y-=Math.round(s)):"right"===i&&"middle"===a?(u.x-=Math.round(o),u.y-=Math.round(s/2)):"right"===i&&"top"===a?u.x-=Math.round(o):(u.x-=Math.round(o/2),u.y-=Math.round(s/2));var l=r.get("offsetX");l&&(u.x+=l);var f=r.get("offsetY");f&&(u.y+=f),c.modifyCSS(t,{top:Math.round(u.y)+"px",left:Math.round(u.x)+"px",visibility:"visible",zIndex:r.get("zIndex")})},n.clear=function(){var t=this,e=t.get("el");e&&e.parentNode&&e.parentNode.removeChild(e)},e}(f);t.exports=h},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(20),f=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{type:"image",start:null,end:null,src:null,offsetX:null,offsetY:null})},n.render=function(t,e){var n=this,r=n.parsePoint(t,n.get("start"));if(r){var i={x:r.x,y:r.y};if(i.img=n.get("src"),n.get("end")){var a=n.parsePoint(t,n.get("end"));if(!a)return;i.width=a.x-r.x,i.height=a.y-r.y}else i.width=n.get("width")||32,i.height=n.get("height")||32;n.get("offsetX")&&(i.x+=n.get("offsetX")),n.get("offsetY")&&(i.y+=n.get("offsetY"));var o=e.addShape("Image",{zIndex:1,attrs:i});o.name="guide-image",n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo")),n.set("el",o)}},e}(c);t.exports=f},function(t,e,n){t.exports={Guide:n(20),Arc:n(243),DataMarker:n(244),DataRegion:n(245),Html:n(246),Image:n(247),Line:n(249),Region:n(250),Text:n(251)}},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(20),f=l.MatrixUtil.vec2,h=n(19),d=h.FONT_FAMILY,p=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{name:"line",start:null,end:null,lineStyle:{stroke:"#000",lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#999",fontSize:12,fontWeight:500,fontFamily:d},content:null}})},n.render=function(t,e){var n=this,r=n.parsePoint(t,n.get("start")),i=n.parsePoint(t,n.get("end"));if(r&&i){var a=e.addGroup({viewId:e.get("viewId")});n._drawLines(r,i,a);var o=n.get("text");o&&o.content&&n._drawText(r,i,a),n.set("el",a)}},n._drawLines=function(t,e,n){var r=[["M",t.x,t.y],["L",e.x,e.y]],i=n.addShape("Path",{attrs:l.mix({path:r},this.get("lineStyle"))});i.name="guide-line",this.get("appendInfo")&&i.setSilent("appendInfo",this.get("appendInfo"))},n._drawText=function(t,e,n){var r,i=this.get("text"),a=i.position,o=i.style||{};r="start"===a?0:"center"===a?.5:l.isString(a)&&-1!==a.indexOf("%")?parseInt(a,10)/100:l.isNumber(a)?a:1,(r>1||r<0)&&(r=1);var s={x:t.x+(e.x-t.x)*r,y:t.y+(e.y-t.y)*r};if(i.offsetX&&(s.x+=i.offsetX),i.offsetY&&(s.y+=i.offsetY),s.text=i.content,s=l.mix({},s,o),i.autoRotate&&l.isNil(o.rotate)){var u=f.angleTo([e.x-t.x,e.y-t.y],[1,0],1);s.rotate=u}else l.isNil(o.rotate)||(s.rotate=o.rotate*Math.PI/180);var c=n.addShape("Text",{attrs:s});c.name="guide-line-text",this.get("appendInfo")&&c.setSilent("appendInfo",this.get("appendInfo"))},e}(c);t.exports=p},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(20),f=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{name:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},n.render=function(t,e){var n=this,r=n.get("style"),i=n._getPath(t);if(i.length){var a=e.addShape("path",{zIndex:n.get("zIndex"),attrs:l.mix({path:i},r)});a.name="guide-region",n.get("appendInfo")&&a.setSilent("appendInfo",n.get("appendInfo")),n.set("el",a)}},n._getPath=function(t){var e=this,n=e.parsePoint(t,e.get("start")),r=e.parsePoint(t,e.get("end"));if(!n||!r)return[];var i=[["M",n.x,n.y],["L",r.x,n.y],["L",r.x,r.y],["L",n.x,r.y],["z"]];return i},e}(c);t.exports=f},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(20),f=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{name:"text",position:null,content:null,style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},offsetX:null,offsetY:null,top:!0})},n.render=function(t,e){var n=this,r=n.parsePoint(t,n.get("position"));if(r){var i=l.mix({},n.get("style")),a=n.get("offsetX"),o=n.get("offsetY");a&&(r.x+=a),o&&(r.y+=o),i.rotate&&(i.rotate=i.rotate*Math.PI/180);var s=e.addShape("Text",{zIndex:n.get("zIndex"),attrs:l.mix({text:n.get("content")},i,r)});s.name="guide-text",n.get("appendInfo")&&s.setSilent("appendInfo",n.get("appendInfo")),n.set("el",s)}},e}(c);t.exports=f},function(t,e,n){var r=n(110);t.exports=r},function(t,e){t.exports=function(t,e){for(var n,r,i=[],a=0;ar.width||n.height>r.height||n.width*n.height>r.width*r.height)&&i.push(t[a]);for(var o=0;o

    1

    /2

    ',slipWidth:65,legendOverflow:"unset"})},n.render=function(){t.prototype._renderHTML.call(this),this._renderFlipPage()},n._renderFlipPage=function(){var t=this.get("legendWrapper"),e=x(t,p),n=this.get("position"),r=this.get("layout"),i="right"===n||"left"===n||"vertical"===r,a=i?"block":"inline-block",o=t.offsetHeight;if(t.scrollHeight>o){var s=this.get("slipTpl"),u=d.createDom(s),c=x(u,v),f=x(u,_);d.modifyCSS(c,this.get("caretStyle")),d.modifyCSS(c,{fill:"rgba(0,0,0,0.25)"}),d.modifyCSS(f,this.get("caretStyle"));var h=x(u,"cur-pagenum"),g=x(u,"next-pagenum"),b=this.get("pageNumStyle");if(d.modifyCSS(h,l.mix({},b,{paddingLeft:"10px"})),d.modifyCSS(g,l.mix({},b,{opacity:.3,paddingRight:"10px"})),d.modifyCSS(u,l.mix({},this.get("slipDomStyle"),i?{top:o+"px"}:{right:0,top:"50%",transform:"translate(0, -50%)"})),t.style.overflow=this.get("legendOverflow"),t.appendChild(u),!i){var w=Math.max(t.offsetWidth-10-u.offsetWidth,0);d.modifyCSS(e,{maxWidth:w+"px"})}for(var M=e.childNodes,j=0,E=1,S=[],P=0;Po&&(E++,S.forEach((function(t){t.style.display="none"})),S=[]),S.push(M[P]);g.innerText="/"+E,M.forEach((function(t){t.style.display=a,j=t.offsetTop+t.offsetHeight,j>o&&(t.style.display="none")})),c.addEventListener("click",(function(){if(M[0].style.display!==a){var t=-1;M.forEach((function(e,n){e.style.display===a&&(t=-1===t?n:t,e.style.display="none")}));for(var e=t-1;e>=0;e--){if(M[e].style.display=a,j=M[t-1].offsetTop+M[t-1].offsetHeight,M[e].style.display="none",!(j<=o))break;M[e].style.display=a}var n=Number.parseInt(h.innerText,10)-1;c.style.fill=1===n?y:m,f.style.fill=m,h.innerText=n}})),f.addEventListener("click",(function(){if(M[M.length-1].style.display!==a){var t=-1;M.forEach((function(e,n){e.style.display===a&&(t=n,e.style.display="none")}));for(var e=t+1;e0){var g=c.toRGB(o[p-1].color);s+=1-o[p].percentage+":"+g+" "}h.addShape("text",{attrs:f.mix({},{x:r+this.get("textOffset")/2,y:i-o[p].percentage*i,text:this._formatItemValue(o[p].value)+""},this.get("textStyle"),{textAlign:"start"})})}}else{s+="l (0) ";for(var v=0;v0){var _=c.toRGB(o[v-1].color);s+=o[v].percentage+":"+_+" "}s+=o[v].percentage+":"+n+" ",h.addShape("text",{attrs:f.mix({},{x:o[v].percentage*r,y:i+5+this.get("textOffset"),text:this._formatItemValue(o[v].value)+""},this.get("textStyle"))})}}h.addShape("rect",{attrs:{x:0,y:0,width:r,height:i,fill:s,strokeOpacity:0}}),h.addShape("path",{attrs:f.mix({path:u},this.get("lineStyle"))}),h.move(0,e)},e}(h);t.exports=d},function(t,e,n){t.exports={Category:n(114),CatHtml:n(113),CatPageHtml:n(256),Color:n(257),Size:n(260),CircleSize:n(259)}},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(67),f=2,h=16,d=16,p=5,g=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{type:"size-circle-legend",width:100,height:200,_unslidableCircleStyle:{stroke:"rgb(99, 161, 248)",fill:"rgb(99, 161, 248)",fillOpacity:.3,lineWidth:1.5},triggerAttr:{fill:"white",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc"},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=p,e=this.get("slider"),n=e.get("backgroundElement"),r=this.get("layout"),i="vertical"===r?f:this.get("width"),a="vertical"===r?this.get("height"):f,o=t,s=this.get("height")/2,u=this.get("frontMiddleBarStyle"),c="vertical"===r?[[0,0],[i,0],[i,a],[0,a]]:[[0,s+a],[0,s-a],[o+i-4,s-a],[o+i-4,s+a]];return this._addMiddleBar(n,"Polygon",l.mix({points:c},u))},n._addHorizontalTrigger=function(t,e,n,r){var i=this.get("slider"),a=i.get(t+"HandleElement"),o=-this.get("height")/2,s=a.addShape("circle",{attrs:l.mix({x:0,y:o,r:r},e)}),u=a.addShape("text",{attrs:l.mix(n,{x:0,y:o+r+10,textAlign:"center",textBaseline:"middle"})}),c=this.get("layout"),f="vertical"===c?"ns-resize":"ew-resize";s.attr("cursor",f),u.attr("cursor",f),this.set(t+"ButtonElement",s),this.set(t+"TextElement",u)},n._addVerticalTrigger=function(t,e,n,r){var i=this.get("slider"),a=i.get(t+"HandleElement"),o=a.addShape("circle",{attrs:l.mix({x:0,y:0,r:r},e)}),s=a.addShape("text",{attrs:l.mix(n,{x:r+10,y:0,textAlign:"start",textBaseline:"middle"})}),u=this.get("layout"),c="vertical"===u?"ns-resize":"ew-resize";o.attr("cursor",c),s.attr("cursor",c),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),r=this.get("textStyle"),i=this.get("triggerAttr"),a=l.mix({},i),o=l.mix({},i),s=p,u=d,c=l.mix({text:this._formatItemValue(t.value)+""},r),f=l.mix({text:this._formatItemValue(e.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",a,c,s),this._addVerticalTrigger("max",o,f,u)):(this._addHorizontalTrigger("min",a,c,s),this._addHorizontalTrigger("max",o,f,u))},n._bindEvents=function(){var t=this;if(this.get("slidable")){var e=this.get("slider");e.on("sliderchange",(function(e){var n=e.range,r=t.get("firstItem").value,i=t.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r),s=p+n[0]/100*(d-p),u=p+n[1]/100*(d-p);t._updateElement(a,o,s,u);var l=new Event("itemfilter",e,!0,!0);l.range=[a,o],t.emit("itemfilter",l)}))}},n._updateElement=function(e,n,r,i){t.prototype._updateElement.call(this,e,n);var a=this.get("minTextElement"),o=this.get("maxTextElement"),s=this.get("minButtonElement"),u=this.get("maxButtonElement");s.attr("r",r),u.attr("r",i);var l=this.get("layout");if("vertical"===l)a.attr("x",r+10),o.attr("x",i+10);else{var c=-this.get("height")/2;a.attr("y",c+r+10),o.attr("y",c+i+10)}},n._addCircle=function(t,e,n,r,i){var a=this.get("group"),o=a.addGroup(),s=this.get("_unslidableCircleStyle"),u=this.get("textStyle"),c=this.get("titleShape"),f=this.get("titleGap");c&&(f+=c.getBBox().height),o.addShape("circle",{attrs:l.mix({x:t,y:e+f,r:0===n?1:n},s)}),"vertical"===this.get("layout")?o.addShape("text",{attrs:l.mix({x:i+20+this.get("textOffset"),y:e+f,text:0===r?"0":r},u)}):o.addShape("text",{attrs:l.mix({x:t,y:e+f+i+13+this.get("textOffset"),text:0===r?"0":r},u)})},n._renderUnslidable=function(){var t=this.get("firstItem").value,e=this.get("lastItem").value;if(t>e){var n=e;e=t,t=n}var r=this._formatItemValue(t),i=this._formatItemValue(e),a=td?d:e;a>o&&(a=p,o=d),"vertical"===this.get("layout")?(this._addCircle(o,o,a,r,2*o),this._addCircle(o,2*o+h+a,o,i,2*o)):(this._addCircle(o,o,a,r,2*o),this._addCircle(2*o+h+a,o,o,i,2*o))},n.activate=function(e){this.get("slidable")&&t.prototype.activate.call(this,e)},e}(c);t.exports=g},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(67),f=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{type:"size-legend",width:100,height:200,_unslidableElementStyle:{fill:"#4E7CCC",fillOpacity:1},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=this.get("slider"),e=t.get("backgroundElement"),n=this.get("layout"),r=this.get("width"),i=this.get("height"),a=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===n?[[0,0],[r,0],[r,i],[r-4,i]]:[[0,a+i/2],[0,a+i/2-4],[r,a-i/2],[r,a+i/2]];return this._addMiddleBar(e,"Polygon",l.mix({points:s},o))},n._renderUnslidable=function(){var t=this.get("layout"),e=this.get("width"),n=this.get("height"),r=this.get("frontMiddleBarStyle"),i="vertical"===t?[[0,0],[e,0],[e,n],[e-4,n]]:[[0,n],[0,n-4],[e,0],[e,n]],a=this.get("group"),o=a.addGroup();o.addShape("Polygon",{attrs:l.mix({points:i},r)});var s=this._formatItemValue(this.get("firstItem").value),u=this._formatItemValue(this.get("lastItem").value);"vertical"===this.get("layout")?(this._addText(e+10,n-3,s),this._addText(e+10,3,u)):(this._addText(0,n,s),this._addText(e,n,u))},n._addText=function(t,e,n){var r=this.get("group"),i=r.addGroup(),a=this.get("textStyle"),o=this.get("titleShape"),s=this.get("titleGap");o&&(s+=o.getBBox().height),"vertical"===this.get("layout")?i.addShape("text",{attrs:l.mix({x:t+this.get("textOffset"),y:e,text:0===n?"0":n},a)}):(e+=s+this.get("textOffset")-20,o||(e+=10),i.addShape("text",{attrs:l.mix({x:t,y:e,text:0===n?"0":n},a)}))},e}(c);t.exports=f},function(t,e,n){var r=n(3),i=r.DomUtil,a=r.Group,o=function t(e){t.superclass.constructor.call(this,e)};r.extend(o,a),r.augment(o,{getDefaultCfg:function(){return{range:null,middleAttr:{fill:"#fff",fillOpacity:0},backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},_beforeRenderUI:function(){var t=this.get("layout"),e=this.get("backgroundElement"),n=this.get("minHandleElement"),r=this.get("maxHandleElement"),i=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,r]),this.set("middleHandleElement",i),e.set("zIndex",0),i.set("zIndex",1),n.set("zIndex",2),r.set("zIndex",2),i.attr("cursor","move"),n.attr("cursor",a),r.attr("cursor",a),this.sort()},_renderUI:function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},_transform:function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix(),s.resetMatrix(),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,a),s.translate(r*i,a)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(1,(1-n)*a),s.translate(1,(1-r)*a))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},_isElement:function(t,e){var n=this.get(e);if(t===n)return!0;if(n.isGroup){var r=n.get("children");return r.indexOf(t)>-1}return!1},_getRange:function(t,e){var n=t+e;return n=n>100?100:n,n=n<0?0:n,n},_updateStatus:function(t,e){var n="x"===t?this.get("width"):this.get("height");t=r.upperFirst(t);var i,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),l=this.get("layout"),c="vertical"===l?-1:1,f=e["page"+t],h=f-o,d=h/n*100*c;a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(d,a[0]),a[1]=this._getRange(d,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(d,a[0])),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(d,a[1]))),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],a[0]=this._getRange(d,a[0]),a[1]=a[0]+i,a[1]>100&&(a[1]=100,a[0]=a[1]-i)),this.emit("sliderchange",{range:a}),this.set("page"+t,f),this._renderUI(),this.get("canvas").draw()},_onMouseDown:function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=i.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=i.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=i.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},_onCanvasMouseMove:function(t){if(!this._mouseOutArea(t)){var e=this.get("layout");"horizontal"===e?this._updateStatus("x",t):this._updateStatus("y",t)}},_onCanvasMouseUp:function(){this._removeDocumentEvents()},_removeDocumentEvents:function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},_mouseOutArea:function(t){var e=this.get("canvas").get("el"),n=e.getBoundingClientRect(),r=this.get("parent"),i=r.getBBox(),a=r.attr("matrix")[6],o=r.attr("matrix")[7],s=a+i.width,u=o+i.height,l=t.clientX-n.x,c=t.clientY-n.y;return ls||cu}}),t.exports=o},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;e
      ',itemTpl:'
    • \n \n {name}{value}
    • ',htmlContent:null,follow:!0,enterable:!1})},e._init_=function(){var t,e=this,n=e.get("containerTpl"),r=e.get("canvas").get("el").parentNode;if(!this.get("htmlContent")){if(/^\#/.test(n)){var i=n.replace("#","");t=document.getElementById(i)}else t=d.createDom(n),d.modifyCSS(t,e.style[m]),r.appendChild(t),r.style.position="relative";e.set("container",t)}},e.render=function(){var t=this;if(t.clear(),t.get("htmlContent")){var e=t.get("canvas").get("el").parentNode,n=t._getHtmlContent();e.appendChild(n),t.set("container",n)}else t._renderTpl()},e._renderTpl=function(){var t=this,e=t.get("showTitle"),n=t.get("titleContent"),r=t.get("container"),i=S(r,y),a=S(r,x),o=t.get("items");i&&e&&(d.modifyCSS(i,t.style[y]),i.innerHTML=n),a&&(d.modifyCSS(a,t.style[x]),h.each(o,(function(e,n){a.appendChild(t._addItem(e,n))})))},e.clear=function(){var t=this.get("container");if(this.get("htmlContent"))t&&t.remove();else{var e=S(t,y),n=S(t,x);e&&(e.innerHTML=""),n&&(n.innerHTML="")}},e.show=function(){var e=this.get("container");if(e&&!this.destroyed){e.style.visibility="visible",e.style.display="block";var n=this.get("crosshairGroup");n&&n.show();var r=this.get("markerGroup");r&&r.show(),t.prototype.show.call(this),this.get("canvas").draw()}},e.hide=function(){var e=this.get("container");if(e&&!this.destroyed){e.style.visibility="hidden",e.style.display="none";var n=this.get("crosshairGroup");n&&n.hide();var r=this.get("markerGroup");r&&r.hide(),t.prototype.hide.call(this),this.get("canvas").draw()}},e.destroy=function(){var e=this,n=e.get("container"),r=e.get("containerTpl");n&&!/^\#/.test(r)&&n.parentNode.removeChild(n);var i=this.get("crosshairGroup");i&&i.destroy();var a=this.get("markerGroup");a&&a.remove(),t.prototype.destroy.call(this)},e._getMarkerSvg=function(t){var e,n=t.marker||{},r=n.activeSymbol||n.symbol;h.isFunction(r)?e=r:h.isString(r)&&(e=E.Symbols[r]),e=h.isFunction(e)?e:E.Symbols.circle;var i=e(j/2,j/2,j/2),a=i.reduce((function(t,e){return""+t+e[0]+e.slice(1).join(",")}),"");return''},e._addItem=function(t,e){var n=this.get("itemTpl"),i=h.substitute(n,h.mix({index:e},t)),a=d.createDom(i);d.modifyCSS(a,this.style[M]);var o=S(a,b);if(o){d.modifyCSS(o,r({},this.style[b],{borderRadius:"unset"}));var s=this._getMarkerSvg(t);o.innerHTML=s}var u=S(a,w);return u&&d.modifyCSS(u,this.style[w]),a},e._getHtmlContent=function(){var t=this.get("htmlContent"),e=this.get("titleContent"),n=this.get("items"),r=t(e,n),i=d.createDom(r);return i},e.setPosition=function(e,n,r){var i,a=this.get("container"),o=this.get("canvas").get("el"),s=d.getWidth(o),u=d.getHeight(o),l=a.clientWidth,c=a.clientHeight,f=e,p=n,g=this.get("prePosition")||{x:0,y:0};if(l||(a.style.display="block",l=a.clientWidth,c=a.clientHeight,a.style.display="none"),this.get("enterable")?(n-=a.clientHeight/2,i=[e,n],g&&e-g.x>0?e-=a.clientWidth+1:e+=1):this.get("position")?(i=this._calcTooltipPosition(e,n,this.get("position"),l,c,r),e=i[0],n=i[1]):(i=this._constraintPositionInBoundary(e,n,l,c,s,u),e=i[0],n=i[1]),this.get("inPlot")){var v=this.get("plotRange");i=this._constraintPositionInPlot(e,n,l,c,v,this.get("enterable")),e=i[0],n=i[1]}var _=this.get("markerItems");h.isEmpty(_)||(f=_[0].x,p=_[0].y),this.set("prePosition",i);var m=this.get("follow");m&&(a.style.left=e+"px",a.style.top=n+"px");var y=this.get("crosshairGroup");if(y){var x=this.get("items");y.setPosition(f,p,x)}t.prototype.setPosition.call(this,e,n)},n}(f);t.exports=C},function(t,e,n){var r=n(68);r.Html=n(262),r.Canvas=n(115),r.Mini=n(264),t.exports=r},function(t,e,n){function r(t){return function(){var e,n=s(t);if(o()){var r=s(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return i(this,e)}}function i(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(3),c=n(115),f=n(19),h=f.FONT_FAMILY,d=l.DomUtil,p=l.MatrixUtil,g=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{boardStyle:{x:0,y:0,width:0,height:0,radius:3},valueStyle:{x:0,y:0,text:"",fontFamily:h,fontSize:12,stroke:"#fff",lineWidth:2,fill:"black",textBaseline:"top",textAlign:"start"},padding:{top:5,right:5,bottom:0,left:5},triangleWidth:10,triangleHeight:4})},n._init_=function(){var t=this,e=t.get("padding"),n=t.get("frontPlot"),r=n.addGroup();t.set("container",r);var i=r.addShape("rect",{attrs:l.mix({},t.get("boardStyle"))});t.set("board",i);var a=r.addShape("path",{attrs:{fill:t.get("boardStyle").fill}});t.set("triangleShape",a);var o=r.addGroup();o.move(e.left,e.top);var s=o.addShape("text",{attrs:l.mix({},t.get("valueStyle"))});t.set("valueShape",s)},n.render=function(){var t=this;t.clear();var e=t.get("board"),n=t.get("valueShape"),r=t.get("padding"),i=t.get("items")[0];n&&n.attr("text",i.value);var a=n?n.getBBox():{width:80,height:30},o=r.left+a.width+r.right,s=r.top+a.height+r.bottom;e.attr("width",o),e.attr("height",s),t._centerTriangleShape()},n.clear=function(){var t=this.get("valueShape");t.attr("text","")},n.setPosition=function(t,e,n){var r=this,i=r.get("container"),a=r.get("plotRange"),o=i.getBBox(),s=o.width,u=o.height;if(t-=s/2,n&&("point"===n.name||"interval"===n.name)){var l=n.getBBox().y;e=l}if(e-=u,this.get("inPlot"))ta.tr.x?(t=a.tr.x-s,r._rightTriangleShape()):r._centerTriangleShape(),ea.bl.y&&(e=a.bl.y-u);else{var c=this.get("canvas").get("el"),f=d.getWidth(c),h=d.getHeight(c);t<0?(t=0,r._leftTriangleShape()):t+s/2>f?(t=f-s,r._rightTriangleShape()):r._centerTriangleShape(),e<0?e=0:e+u>h&&(e=h-u)}var g=[1,0,0,0,1,0,0,0,1],v=p.transform(g,[["t",t,e]]);i.stopAnimate(),i.animate({matrix:v},this.get("animationDuration"))},n._centerTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height,o=[["M",0,0],["L",e,0],["L",e/2,n],["L",0,0],["Z"]];t.attr("path",o),t.move(i/2-e/2,a-1)},n._leftTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.height,a=[["M",0,0],["L",e,0],["L",0,n+3],["L",0,0],["Z"]];t.attr("path",a),t.move(0,i-3)},n._rightTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height,o=[["M",0,0],["L",e,0],["L",e,n+4],["L",0,0],["Z"]];t.attr("path",o),t.move(i-e-1,a-4)},e}(c);t.exports=g},function(t,e,n){var r,i=n(19),a=i.FONT_FAMILY,o="g2-tooltip",s="g2-tooltip-title",u="g2-tooltip-list",l="g2-tooltip-list-item",c="g2-tooltip-marker",f="g2-tooltip-value",h=(r={crosshairs:!1,offset:15},r[""+o]={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:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:a,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+s]={marginBottom:"4px"},r[""+u]={margin:0,listStyleType:"none",padding:0},r[""+l]={marginBottom:"4px"},r[""+c]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+f]={display:"inline-block",float:"right",marginLeft:"30px"},r);t.exports=h},function(t,e,n){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return!e||"object"!==r(e)&&"function"!==typeof e?o(t):e}function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e){for(var n=0;n=0&&n<=1&&(s*=n);var u=Math.floor(s*(1-r)/o),l=u/(2*Math.PI),c={start:i,end:a},f={start:r*s,end:r*s+.99*u};this.a=l,this.d=u,this.x=c,this.y=f}},{key:"getCenter",value:function(){return this.center}},{key:"convertPoint",value:function(t){var e,n,r=this.a,i=this.center;this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y);var a=this.convertDim(e,"x"),o=r*a,s=this.convertDim(n,"y");return{x:i.x+Math.cos(a)*(o+s),y:i.y+Math.sin(a)*(o+s)}}},{key:"invertPoint",value:function(t){var e=this.center,n=this.a,r=this.d+this.y.start,i=m.subtract([],[t.x,t.y],[e.x,e.y]),a=m.angleTo(i,[1,0],!0),o=a*n;m.length(i)h/u?(a=h/u,o={x:n.x-(.5-c)*h,y:n.y-(.5-f)*a*l}):(a=d/l,o={x:n.x-(.5-c)*a*u,y:n.y-(.5-f)*d}),t?t>0&&t<=1?t*=a:(t<=0||t>a)&&(t=a):t=a;var p={start:r,end:i},g={start:e*t,end:t};this.x=p,this.y=g,this.radius=t,this.circleCentre=o,this.center=o}},{key:"getCenter",value:function(){return this.circleCentre}},{key:"getOneBox",value: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)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i0?u:-u;var l=this.invertDim(s,"y"),c={};return c.x=this.isTransposed?l:u,c.y=this.isTransposed?u:l,c}}]),e}(_);t.exports=b},function(t,e,n){var r=n(0),i=n(16),a=r.PathUtil;function o(t){var e,n,r,a,o,s=t.start,u=t.end,l=t.getWidth(),c=t.getHeight(),f=200;return t.isPolar?(a=t.getRadius(),r=t.getCenter(),e=t.startAngle,n=t.endAngle,o=new i.Fan({attrs:{x:r.x,y:r.y,rs:0,re:a+f,startAngle:e,endAngle:e}}),o.endState={endAngle:n}):(o=new i.Rect({attrs:{x:s.x-f,y:u.y-f,width:t.isTransposed?l+2*f:0,height:t.isTransposed?0:c+2*f}}),t.isTransposed?o.endState={height:c+2*f}:o.endState={width:l+2*f}),o.isClip=!0,o}function s(t){if(r.isEmpty(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,a=t[0].y;return r.each(t,(function(t){e=e>t.x?t.x:e,n=nt.y?t.y:i,a=a0?a.maxX:a.minX;var u=[n,s,1];t.apply(u),t.attr({transform:[["t",-n,-s],["s",.01,1],["t",n,s]]});var c={transform:[["t",-n,-s],["s",100,1],["t",n,s]]},f=l(e,i,r,c);t.animate(c,f.duration,f.easing,f.callback,f.delay)}function h(t,e){var n={lineWidth:0,opacity:0},r=t._id,i=t.get("index"),a=l(e,i,r,n);t.animate(n,a.duration,a.easing,(function(){t.remove()}),a.delay)}function d(t,e,n){var r,i,a=t._id,o=t.get("index");if(n.isPolar&&"point"!==t.name)r=n.getCenter().x,i=n.getCenter().y;else{var s=t.getBBox();r=(s.minX+s.maxX)/2,i=(s.minY+s.maxY)/2}var u=[r,i,1];t.apply(u),t.attr({transform:[["t",-r,-i],["s",.01,.01],["t",r,i]]});var c={transform:[["t",-r,-i],["s",100,100],["t",r,i]]},f=l(e,o,a,c);t.animate(c,f.duration,f.easing,f.callback,f.delay)}function p(t,e,n){var r,i,a=t._id,o=t.get("index");if(n.isPolar&&"point"!==t.name)r=n.getCenter().x,i=n.getCenter().y;else{var s=t.getBBox();r=(s.minX+s.maxX)/2,i=(s.minY+s.maxY)/2}var u=[r,i,1];t.apply(u);var c={transform:[["t",-r,-i],["s",.01,.01],["t",r,i]]},f=l(e,o,a,c);t.animate(c,f.duration,f.easing,(function(){t.remove()}),f.delay)}function g(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),i=a.pathToAbsolute(t.attr("path"));t.attr("path",[i[0]]);var o={path:i},s=l(e,r,n,o);t.animate(o,s.duration,s.easing,s.callback,s.delay)}}function v(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),i=a.pathToAbsolute(t.attr("path")),o={path:[i[0]]},s=l(e,r,n,o);t.animate(o,s.duration,s.easing,(function(){t.remove()}),s.delay)}}function _(t,e,n,r,i){var a,s=o(n),u=t.get("canvas"),c=t._id,f=t.get("index");r?(s.attr("startAngle",r),s.attr("endAngle",r),a={endAngle:i}):a=s.endState,s.set("canvas",u),t.attr("clip",s),t.setSilent("animating",!0);var h=l(e,f,c,a);s.animate(a,h.duration,h.easing,(function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),s.remove())}),h.delay)}function m(t,e){var n=t._id,i=t.get("index"),a=r.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),o=r.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:a,strokeOpacity:o},u=l(e,i,n,s);t.animate(s,u.duration,u.easing,u.callback,u.delay)}function y(t,e){var n=t._id,r=t.get("index"),i={fillOpacity:0,strokeOpacity:0},a=l(e,r,n,i);t.animate(i,a.duration,a.easing,(function(){t.remove()}),a.delay)}function x(t,e,n){var r=u(t,n),i=r.endAngle,a=r.startAngle;_(t,e,n,a,i)}function b(t,e,n){if("line"===t.name){var r=t.get("canvas"),o=t.get("cacheShape"),s=t._id,u=t.get("index"),c=new i.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});c.isClip=!0,c.set("canvas",r);var f=a.pathToAbsolute(o.attrs.path),h=a.pathToAbsolute(t.attr("path")),d=f[1][1]-f[0][1],p=f[f.length-1][1]+d,g=h[h.length-1][2],v=f.concat([["L",p,g]]),_=[0,0,1];t.apply(_),t.attr("clip",c),t.attr("path",v);var m={transform:[["t",-d,0]]},y=l(e,u,s,m);t.animate(m,y.duration,y.easing,(function(){t&&!t.get("destroyed")&&(t.attr("path",h),t.attr({transform:[["t",d,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),c.remove())}),y.delay)}}function w(t,e,n){if("area"===t.name){var r=t.get("canvas"),o=t.get("cacheShape"),s=t._id,u=t.get("index"),c=new i.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});c.isClip=!0,c.set("canvas",r);var f=a.pathToAbsolute(o.attrs.path),h=a.pathToAbsolute(t.attr("path")),d=f[1][1]-f[0][1],p=Math.floor(f.length/2),g=f[p-1][1]+d,v=h[p-1][2],_=[].concat(f.slice(0,p),[["L",g,v],["L",g,h[p][2]]],f.slice(p)),m=[0,0,1];t.apply(m),t.attr("clip",c),t.attr("path",_);var y={transform:[["t",-d,0]]},x=l(e,u,s,y);t.animate(y,x.duration,x.easing,(function(){t&&!t.get("destroyed")&&(t.attr("path",h),t.attr({transform:[["t",d,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),c.remove())}),x.delay)}}t.exports={enter:{clipIn:_,zoomIn:d,pathIn:g,scaleInY:c,scaleInX:f,fanIn:x,fadeIn:m},leave:{lineWidthOut:h,zoomOut:p,pathOut:v,fadeOut:y},appear:{clipIn:_,zoomIn:d,pathIn:g,scaleInY:c,scaleInX:f,fanIn:x,fadeIn:m},update:{fadeIn:m,fanIn:x,lineSlideLeft:b,areaSlideLeft:w}}},function(t,e,n){var r=n(0),i=n(119),a=r.MatrixUtil,o=a.mat3;function s(t,e){var n=[];if(!1===t.get("animate"))return[];var i=t.get("children");return r.each(i,(function(t){if(t.isGroup)n=n.concat(s(t,e));else if(t.isShape&&t._id){var r=t._id;r=r.split("-")[0],r===e&&n.push(t)}})),n}function u(t){var e={};return r.each(t,(function(t){if(t._id&&!t.isClip){var n=t._id;e[n]={_id:n,type:t.get("type"),attrs:r.cloneDeep(t.attr()),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}})),e}function l(t,e,n,r){var a;return a=r?i.Action[n][r]:i.getAnimation(t,e,n),a}function c(t,e,n){var a=i.getAnimateCfg(t,e);return n&&n[e]?r.deepMix({},a,n[e]):a}function f(t,e,n,i){var a,s,u=!1;if(i){var f=[],h=[];r.each(e,(function(e){var n=t[e._id];n?(e.setSilent("cacheShape",n),f.push(e),delete t[e._id]):h.push(e)})),r.each(t,(function(t){var e=t.name,i=t.coord,f=t._id,h=t.attrs,d=t.index,p=t.type;if(s=c(e,"leave",t.animateCfg),a=l(e,i,"leave",s.animation),r.isFunction(a)){var g=n.addShape(p,{attrs:h,index:d});if(g._id=f,g.name=e,i&&"label"!==e){var v=g.getMatrix(),_=o.multiply([],v,i.matrix);g.setMatrix(_)}u=!0,a(g,s,i)}})),r.each(f,(function(t){var e=t.name,n=t.get("coord"),i=t.get("cacheShape").attrs;if(!r.isEqual(i,t.attr())){if(s=c(e,"update",t.get("animateCfg")),a=l(e,n,"update",s.animation),r.isFunction(a))a(t,s,n);else{var o=r.cloneDeep(t.attr());t.attr(i),t.animate(o,s.duration,s.easing,(function(){t.setSilent("cacheShape",null)}))}u=!0}})),r.each(h,(function(t){var e=t.name,n=t.get("coord");s=c(e,"enter",t.get("animateCfg")),a=l(e,n,"enter",s.animation),r.isFunction(a)&&(a(t,s,n),u=!0)}))}else r.each(e,(function(t){var e=t.name,n=t.get("coord");s=c(e,"appear",t.get("animateCfg")),a=l(e,n,"appear",s.animation),r.isFunction(a)&&(a(t,s,n),u=!0)}));return u}t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),r=t.get("backPlot"),i=t.get("_id"),a=t.get("canvas"),o=a.get(i+"caches")||[];0===o.length&&(e=!1);var l,c=s(n,i),h=s(r,i),d=c.concat(h);a.setSilent(i+"caches",u(d)),l=f(o,e?d:c,a,e),l||a.draw()}}},function(t,e,n){var r=n(0),i=n(30),a=i.Axis,o=r.MatrixUtil.vec2;function s(t){var e=[];if(t.length>0){e=t.slice(0);var n=e[0],r=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==r.value&&e.push({value:1})}return e}function u(t,e,n){var r=[];return t.length<1||(t.length>=2&&e&&n&&r.push({text:"",tickValue:"",value:0}),0!==t[0].value&&r.push({text:"",tickValue:"",value:0}),r=r.concat(t),1!==r[r.length-1].value&&r.push({text:"",tickValue:"",value:1})),r}function l(t,e){return void 0===e&&(e=0),"middle"===t&&(e=.5),t.includes("%")&&(e=parseInt(t,10)/100),e}var c=function(){function t(t){this.visible=!0,this.canvas=null,this.container=null,this.coord=null,this.options=null,this.axes=[],r.mix(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.options;return!(!e||!1!==e[t])},e._getMiddleValue=function(t,e,n,r){if(0===t&&!r)return 0;if(1===t)return 1;var i=e[n+1].value;return r||1!==i?(t+i)/2:1},e._getLineRange=function(t,e,n,r){var i,a,o,s=e.field,u=this.options,c="";if(u[s]&&u[s].position&&(c=u[s].position),"x"===n){var f="top"===c?1:0;f=l(c,f),i={x:0,y:f},a={x:1,y:f},o=!1}else{if(r){var h="left"===c?0:1;h=l(c,h),i={x:h,y:0},a={x:h,y:1}}else{var d="right"===c?1:0;d=l(c,d),i={x:d,y:0},a={x:d,y:1}}o=!0}return i=t.convert(i),a=t.convert(a),{start:i,end:a,isVertical:o}},e._getLineCfg=function(t,e,n,r){var i,a=this._getLineRange(t,e,n,r),o=a.isVertical,s=a.start,u=a.end,l=t.center;return t.isTransposed&&(o=!o),i=o&&s.x>l.x||!o&&s.y>l.y?1:-1,{isVertical:o,factor:i,start:s,end:u}},e._getCircleCfg=function(t){var e,n={},r=t.x,i=t.y,a=i.start>i.end;e=t.isTransposed?{x:a?0:1,y:0}:{x:0,y:a?0:1},e=t.convert(e);var s,u=t.circleCentre,l=[e.x-u.x,e.y-u.y],c=[1,0];s=e.y>u.y?o.angle(l,c):-1*o.angle(l,c);var f=s+(r.end-r.start);return n.startAngle=s,n.endAngle=f,n.center=u,n.radius=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),n.inner=t.innerRadius||0,n},e._getRadiusCfg=function(t){var e,n,r=t.x.start,i=r<0?-1:1;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{factor:i,start:t.convert(e),end:t.convert(n)}},e._getAxisPosition=function(t,e,n,r){var i="",a=this.options;if(a[r]&&a[r].position)i=a[r].position;else{var o=t.type;t.isRect?"x"===e?i="bottom":"y"===e&&(i=n?"right":"left"):i="helix"===o?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return i},e._getAxisDefaultCfg=function(t,e,n,i){var a=this,o=a.viewTheme,s={},u=a.options,l=e.field;if(s=r.deepMix({},o.axis[i],s,u[l]),s.viewTheme=o,s.title){var c=r.isPlainObject(s.title)?s.title:{};c.text=c.text||e.alias||l,r.deepMix(s,{title:c})}return s.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&s.ticks.pop(),s.coord=t,s.label&&r.isNil(s.label.autoRotate)&&(s.label.autoRotate=!0),u.hasOwnProperty("xField")&&u.xField.hasOwnProperty("grid")&&"left"===s.position&&r.deepMix(s,u.xField),s},e._getAxisCfg=function(t,e,n,i,a,o){void 0===a&&(a="");var l=this,c=l._getAxisPosition(t,i,a,e.field),f=l._getAxisDefaultCfg(t,e,i,c);if(!r.isEmpty(f.grid)&&n){var h=[],d=[],p=s(n.getTicks());if(p.length){var g=u(f.ticks,e.isLinear,"center"===f.grid.align);r.each(g,(function(n,s){d.push(n.tickValue);var u=[],c=n.value;if("center"===f.grid.align&&(c=l._getMiddleValue(c,g,s,e.isLinear)),!r.isNil(c)){var v=t.x,_=t.y;r.each(p,(function(e){var n="x"===i?c:e.value,r="x"===i?e.value:c,a=t.convert({x:n,y:r});if(t.isPolar){var o=t.circleCentre;_.start>_.end&&(r=1-r),a.flag=v.start>v.end?0:1,a.radius=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2))}u.push(a)})),h.push({_id:o+"-"+i+a+"-grid-"+n.tickValue,points:u})}}))}f.grid.items=h,f.grid.tickValues=d}return f.type=e.type,f},e._getHelixCfg=function(t){for(var e={},n=t.a,r=t.startAngle,i=t.endAngle,a=100,o=[],s=0;s<=a;s++){var u=t.convert({x:s/100,y:0});o.push(u.x),o.push(u.y)}var l=t.convert({x:0,y:0});return e.a=n,e.startAngle=r,e.endAngle=i,e.crp=o,e.axisStart=l,e.center=t.center,e.inner=t.y.start,e},e._drawAxis=function(t,e,n,i,o,s,u){var l,c,f=this.container,h=this.canvas;"cartesian"===t.type?(l=a.Line,c=this._getLineCfg(t,e,i,u)):"helix"===t.type&&"x"===i?(l=a.Helix,c=this._getHelixCfg(t)):"x"===i?(l=a.Circle,c=this._getCircleCfg(t)):(l=a.Line,c=this._getRadiusCfg(t));var d=this._getAxisCfg(t,e,n,i,u,o);d=r.mix({},d,c),"y"===i&&s&&"circle"===s.get("type")&&(d.circle=s),d._id=o+"-"+i,r.isNil(u)||(d._id=o+"-"+i+u),r.mix(d,{canvas:h,group:f.addGroup({viewId:o})});var p=new l(d);return p.render(),this.axes.push(p),p},e.createAxis=function(t,e,n){var i,a=this,o=this.coord,s=o.type;"theta"===s||"polar"===s&&o.isTransposed||(t&&!a._isHide(t.field)&&(i=a._drawAxis(o,t,e[0],"x",n)),r.isEmpty(e)||"helix"===s||r.each(e,(function(e,r){a._isHide(e.field)||a._drawAxis(o,e,t,"y",n,i,r)})))},e.changeVisible=function(t){var e=this.axes;r.each(e,(function(e){e.set("visible",t)}))},e.clear=function(){var t=this,e=t.axes;r.each(e,(function(t){t.destroy()})),t.axes=[]},t}();t.exports=c},function(t,e,n){var r=n(0),i=n(268),a=function(){function t(t){this.type="rect",this.actions=[],this.cfg={},r.mix(this,t),this.option=t||{}}var e=t.prototype;return e.reset=function(t){return this.actions=t.actions||[],this.type=t.type,this.cfg=t.cfg,this.option.actions=this.actions,this.option.type=this.type,this.option.cfg=this.cfg,this},e._execActions=function(t){var e=this.actions;r.each(e,(function(e){var n=e[0];t[n](e[1],e[2])}))},e.hasAction=function(t){var e=this.actions,n=!1;return r.each(e,(function(e){if(t===e[0])return n=!0,!1})),n},e.createCoord=function(t,e){var n,a,o=this,s=o.type,u=o.cfg,l=r.mix({start:t,end:e},u);return"theta"===s?(n=i.Polar,o.hasAction("transpose")||o.transpose(),a=new n(l),a.type=s):(n=i[r.upperFirst(s||"")]||i.Rect,a=new n(l)),o._execActions(a),a},e.rotate=function(t){return t=t*Math.PI/180,this.actions.push(["rotate",t]),this},e.reflect=function(t){return this.actions.push(["reflect",t]),this},e.scale=function(t,e){return this.actions.push(["scale",t,e]),this},e.transpose=function(){return this.actions.push(["transpose"]),this},t}();t.exports=a},function(t,e,n){var r=n(0);function i(t,e){if(r.isNil(t)||r.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return r.isNil(n)&&r.isNil(i)?r.isEqual(t,e):r.isEqual(n,i)}function a(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var o=function(){function t(t){this.view=null,this.canvas=null,r.assign(this,t),this._init()}var e=t.prototype;return e._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},e._getShapeEventObj=function(t){return{x:t.x/this.pixelRatio,y:t.y/this.pixelRatio,target:t.target,toElement:t.event.toElement||t.event.relatedTarget}},e._getShape=function(t,e){var n=this.view,r=n.get("canvas");return r.getShape(t,e)},e._getPointInfo=function(t){var e=this.view,n={x:t.x/this.pixelRatio,y:t.y/this.pixelRatio},r=e.getViewsByPoint(n);return n.views=r,n},e._getEventObj=function(t,e,n){return{x:e.x,y:e.y,target:t.target,toElement:t.event.toElement||t.event.relatedTarget,views:n}},e.bindEvents=function(){var t=this.canvas;t.on("mousedown",r.wrapBehavior(this,"onDown")),t.on("mousemove",r.wrapBehavior(this,"onMove")),t.on("mouseleave",r.wrapBehavior(this,"onOut")),t.on("mouseup",r.wrapBehavior(this,"onUp")),t.on("click",r.wrapBehavior(this,"onClick")),t.on("dblclick",r.wrapBehavior(this,"onClick")),t.on("touchstart",r.wrapBehavior(this,"onTouchstart")),t.on("touchmove",r.wrapBehavior(this,"onTouchmove")),t.on("touchend",r.wrapBehavior(this,"onTouchend"))},e._triggerShapeEvent=function(t,e,n){if(t&&t.name&&!t.get("destroyed")){var r=this.view;if(r.isShapeInView(t)){var i=t.name+":"+e;n.view=r,n.appendInfo=t.get("appendInfo"),r.emit(i,n);var a=r.get("parent");a&&a.emit(i,n)}}},e.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,a(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},e.onMove=function(t){var e=this,n=e.view,r=e.currentShape;r&&r.get("destroyed")&&(r=null,e.currentShape=null);var o=e._getShape(t.x,t.y)||t.currentTarget,s=e._getShapeEventObj(t);if(s.shape=o,a(s),n.emit("mousemove",s),e._triggerShapeEvent(o,"mousemove",s),r&&!i(r,o)){var u=e._getShapeEventObj(t);u.shape=r,u.toShape=o,a(u),e._triggerShapeEvent(r,"mouseleave",u)}if(o&&!i(r,o)){var l=e._getShapeEventObj(t);l.shape=o,l.fromShape=r,a(l),e._triggerShapeEvent(o,"mouseenter",l)}e.currentShape=o;var c=e._getPointInfo(t),f=e.curViews||[];0===f.length&&c.views.length&&n.emit("plotenter",e._getEventObj(t,c,c.views)),f.length&&0===c.views.length&&n.emit("plotleave",e._getEventObj(t,c,f)),c.views.length&&(s=e._getEventObj(t,c,c.views),s.shape=o,a(s),n.emit("plotmove",s)),e.curViews=c.views},e.onOut=function(t){var e=this,n=e.view,r=e._getPointInfo(t),i=e.curViews||[],a=e._getEventObj(t,r,i);!e.curViews||0===e.curViews.length||a.toElement&&"CANVAS"===a.toElement.tagName||(n.emit("plotleave",a),e.curViews=[])},e.onUp=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,e.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},e.onClick=function(t){var e=this,n=e.view,i=e._getShape(t.x,t.y)||t.currentTarget,o=e._getShapeEventObj(t);o.shape=i,a(o),n.emit("click",o),e._triggerShapeEvent(i,t.type,o),e.currentShape=i;var s=e._getPointInfo(t),u=s.views;if(!r.isEmpty(u)){var l=e._getEventObj(t,s,u);if(e.currentShape){var c=e.currentShape;l.shape=c,a(l)}"dblclick"===t.type?(n.emit("plotdblclick",l),n.emit("dblclick",o)):n.emit("plotclick",l)}},e.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,a(r),e.emit("touchstart",r),this._triggerShapeEvent(n,"touchstart",r),this.currentShape=n},e.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,a(r),e.emit("touchmove",r),this._triggerShapeEvent(n,"touchmove",r),this.currentShape=n},e.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,a(n),e.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},e.clearEvents=function(){var t=this.canvas;t.off("mousemove",r.getWrapBehavior(this,"onMove")),t.off("mouseleave",r.getWrapBehavior(this,"onOut")),t.off("mousedown",r.getWrapBehavior(this,"onDown")),t.off("mouseup",r.getWrapBehavior(this,"onUp")),t.off("click",r.getWrapBehavior(this,"onClick")),t.off("dblclick",r.getWrapBehavior(this,"onClick")),t.off("touchstart",r.getWrapBehavior(this,"onTouchstart")),t.off("touchmove",r.getWrapBehavior(this,"onTouchmove")),t.off("touchend",r.getWrapBehavior(this,"onTouchend"))},t}();t.exports=o},function(t,e,n){var r=n(0),i=n(280),a=function(){function t(t){this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.view=null,this.viewTheme=null,this.frontGroup=null,this.backGroup=null,r.mix(this,t)}var e=t.prototype;return e._creatGuides=function(){var t=this,e=this.options,n=this.xScales,a=this.yScales,o=this.view,s=this.viewTheme;return this.backContainer&&o&&(this.backGroup=this.backContainer.addGroup({viewId:o.get("_id")})),this.frontContainer&&o&&(this.frontGroup=this.frontContainer.addGroup({viewId:o.get("_id")})),e.forEach((function(e){var o=e.type,u=r.deepMix({xScales:n,yScales:a,viewTheme:s},s?s.guide[o]:{},e);o=r.upperFirst(o);var l=new i[o](u);t.guides.push(l)})),t.guides},e.line=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"line"},t)),this},e.arc=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"arc"},t)),this},e.text=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"text"},t)),this},e.image=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"image"},t)),this},e.region=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"region"},t)),this},e.regionFilter=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"regionFilter"},t)),this},e.dataMarker=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"dataMarker"},t)),this},e.dataRegion=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"dataRegion"},t)),this},e.html=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"html"},t)),this},e.render=function(t){var e=this,n=e.view,i=n&&n.get("data"),a=e._creatGuides();r.each(a,(function(r){var a;a=r.get("top")?e.frontGroup||e.frontContainer:e.backGroup||e.backContainer,r.render(t,a,i,n)}))},e.clear=function(){this.options=[],this.reset()},e.changeVisible=function(t){var e=this.guides;r.each(e,(function(e){e.changeVisible(t)}))},e.reset=function(){var t=this.guides;r.each(t,(function(t){t.clear()})),this.guides=[],this.backGroup&&this.backGroup.remove(),this.frontGroup&&this.frontGroup.remove()},t}();t.exports=a},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;e0){var a=e.getXScale(),o=e.getYScale(),s=a.field,u=o.field,l=t.get("origin")._origin,c=e.get("labelContainer"),f=c.get("labelsGroup").get("children");i.each(f,(function(e){var r=e.get("origin")||[];r[s]===l[s]&&r[u]===l[u]&&(e.set("visible",n),t.set("gLabel",e))}))}}},e._bindFilterEvent=function(t,e){var n=this,r=this.chart,a=e.field;t.on("itemfilter",(function(t){var e=t.range;r.filterShape((function(t,r,o){if(!i.isNil(t[a])){var s=t[a]>=e[0]&&t[a]<=e[1];return n._filterLabels(r,o,s),s}return!0}));for(var o=r.getAllGeoms()||[],s=function(t){var n=o[t];"heatmap"===n.get("type")&&p((function(){n.drawWithRange(e)}))},u=0;u1?c:n;if("left"===x[0]||"right"===x[0])l=f.br.y,b=i._getXAlign(x[0],u,n,h,v,_),w=e?(e.get("y")||e.get("group").get("y"))+e.getHeight()+m:i._getYAlignVertical(x[1],l,M,h,0,_,s.get("height"));else if("top"===x[0]||"bottom"===x[0])if(w=i._getYAlignHorizontal(x[0],l,n,h,g,_),e){var j=e.getWidth();b=(e.get("x")||e.get("group").get("x"))+j+m}else b=i._getXAlign(x[1],u,M,h,0,_),"right"===x[1]&&(b=f.br.x-M.totalWidth);t.move(b+d,w+p)},e._getXAlign=function(t,e,n,r,i,a){var o=r.minX-i-a[3]<0?0:r.minX-i-a[3],s="left"===t?o:r.maxX+a[1];return"center"===t&&(s=(e-n.totalWidth)/2),s},e._getYAlignHorizontal=function(t,e,n,r,i,a){var o="top"===t?r.minY-i-a[0]:r.maxY+a[2];return o},e._getYAlignVertical=function(t,e,n,r,i,a,o){var s="top"===t?r.minY-i-a[0]:e-n.totalHeight;return"center"===t&&(s=(o-n.totalHeight)/2),s},e._getSubRegion=function(t){var e=0,n=0,r=0,a=0;return i.each(t,(function(t){var i=t.getWidth(),o=t.getHeight();e1){var v=Array(p.callback.length-1).fill("");h.color=p.mapping.apply(p,[l].concat(v)).join("")||M.defaultColor}else h.color=p.mapping(l).join("")||M.defaultColor;if(y&&g)if(g.callback&&g.callback.length>1){var m=Array(g.callback.length-1).fill("");b=g.mapping.apply(g,[l].concat(m)).join("")}else b=g.mapping(l).join("");var w=u.getShapeFactory(x),j=w.getMarkerCfg(b,h);f.legendMarkerRadius&&(j.radius=f.legendMarkerRadius),i.isFunction(b)&&(j.symbol=b),_.push({value:o,dataValue:l,checked:d,marker:j})}));var C,O=i.deepMix({},M.legend[S[0]],d[h]||d,{viewId:w.get("_id"),maxLength:P,items:_,container:v,position:[0,0]});if(O.title&&i.deepMix(O,{title:{text:t.alias||t.field}}),c._isTailLegend(d,n))O.chart=c.chart,O.geom=n,C=new s(O);else if(d.useHtml){var k=v.get("canvas").get("el");if(v=d.container,i.isString(v)&&/^\#/.test(v)){var T=v.replace("#","");v=document.getElementById(T)}v||(v=k.parentNode),O.container=v,void 0===O.legendStyle&&(O.legendStyle={}),O.legendStyle.CONTAINER_CLASS=r({},O.legendStyle.CONTAINER_CLASS,{position:"absolute",overflow:"auto","z-index":""===k.style.zIndex?1:parseInt(k.style.zIndex,10)+1}),d.flipPage?(O.legendStyle.CONTAINER_CLASS.height="right"===S[0]||"left"===S[0]?P+"px":"auto",O.legendStyle.CONTAINER_CLASS.width="right"!==S[0]&&"left"!==S[0]?P+"px":"auto",C=new o.CatPageHtml(O)):C=new o.CatHtml(O)}else C=new o.Category(O);return c._bindClickEvent(C,t,a),g[l].push(C),C},e._bindChartMove=function(t){var e=this.chart,n=this.legends;e.on("plotmove",(function(e){var r=!1;if(e.target){var a=e.target.get("origin");if(a){var o=a[h]||a[0][h],s=t.field;if(o){var u=o[s];i.each(n,(function(t){i.each(t,(function(t){r=!0,!t.destroyed&&t.activate(u)}))}))}}}r||i.each(n,(function(t){i.each(t,(function(t){!t.destroyed&&t.deactivate()}))}))}))},e._addContinuousLegend=function(t,e,n){var r=this,a=r.legends;a[n]=a[n]||[];var s,u,l,c=r.container,f=t.field,h=t.getTicks(),d=[],p=r.viewTheme;i.each(h,(function(n){var r=n.value,i=t.invert(r),a=e.mapping(i).join("");d.push({value:n.tickValue,attrValue:a,color:a,scaleValue:r}),0===r&&(u=!0),1===r&&(l=!0)})),u||d.push({value:t.min,attrValue:e.mapping(0).join(""),color:e.mapping(0).join(""),scaleValue:0}),l||d.push({value:t.max,attrValue:e.mapping(1).join(""),color:e.mapping(1).join(""),scaleValue:1});var g=r.options,v=n.split("-"),_=p.legend[v[0]];(g&&!1===g.slidable||g[f]&&!1===g[f].slidable)&&(_=i.mix({},_,p.legend.gradient));var m=i.deepMix({},_,g[f]||g,{items:d,attr:e,formatter:t.formatter,container:c,position:[0,0]});if(m.title&&i.deepMix(m,{title:{text:t.alias||t.field}}),"color"===e.type)s=new o.Color(m);else{if("size"!==e.type)return;s=g&&"circle"===g.sizeType?new o.CircleSize(m):new o.Size(m)}return r._bindFilterEvent(s,t),a[n].push(s),s},e._isTailLegend=function(t,e){if(t.hasOwnProperty("attachLast")&&t.attachLast){var n=e.get("type");if("line"===n||"lineStack"===n||"area"===n||"areaStack"===n)return!0}return!1},e._adjustPosition=function(t,e){var n;if(e)n="right-top";else if(i.isArray(t))n=String(t[0])+"-"+String(t[1]);else{var r=t.split("-");1===r.length?("left"===r[0]&&(n="left-bottom"),"right"===r[0]&&(n="right-bottom"),"top"===r[0]&&(n="top-center"),"bottom"===r[0]&&(n="bottom-center")):n=t}return n},e.addLegend=function(t,e,n,r){var i=this,a=i.options,o=t.field,s=a[o],u=i.viewTheme;if(!1===s)return null;if(s&&s.custom)i.addCustomLegend(o);else{var l,c=a.position||u.defaultLegendPosition;c=i._adjustPosition(c,i._isTailLegend(a,n)),s&&s.position&&(c=i._adjustPosition(s.position,i._isTailLegend(s,n))),l=t.isLinear?i._addContinuousLegend(t,e,c):i._addCategoryLegend(t,e,n,r,c),l&&(i._bindHoverEvent(l,o),a.reactive&&i._bindChartMove(t))}},e.addCustomLegend=function(t){var e=this,n=e.chart,r=e.viewTheme,a=e.container,s=e.options;t&&(s=s[t]);var u=s.position||r.defaultLegendPosition;u=e._adjustPosition(u);var l=e.legends;l[u]=l[u]||[];var c=s.items;if(c){var h=n.getAllGeoms();i.each(c,(function(t){var e=_(h,t.value);i.isPlainObject(t.marker)?t.marker.radius=t.marker.radius||f.legendMarkerRadius||d:(t.marker={symbol:t.marker||"circle",radius:f.legendMarkerRadius||d},-1!==i.indexOf(g,t.marker.symbol)?t.marker.stroke=t.fill:t.marker.fill=t.fill);var n=t.marker.symbol;i.isString(n)&&-1!==n.indexOf("hollow")&&(t.marker.symbol=i.lowerFirst(n.substr(6))),t.checked=!!i.isNil(t.checked)||t.checked,t.geom=e}));var p,v=n.get("canvas"),m=e.plotRange,y=u.split("-"),x="right"===y[0]||"left"===y[0]?m.bl.y-m.tr.y:v.get("width"),b=i.deepMix({},r.legend[y[0]],s,{maxLength:x,items:c,container:a,position:[0,0]});if(s.useHtml){var w=s.container;if(/^\#/.test(a)){var M=w.replace("#","");w=document.getElementById(M)}else w||(w=a.get("canvas").get("el").parentNode);b.container=w,void 0===b.legendStyle&&(b.legendStyle={}),b.legendStyle.CONTAINER_CLASS||(b.legendStyle.CONTAINER_CLASS={height:"right"===y[0]||"left"===y[0]?x+"px":"auto",width:"right"!==y[0]&&"left"!==y[0]?x+"px":"auto",position:"absolute",overflow:"auto"}),p=s.flipPage?new o.CatPageHtml(b):new o.CatHtml(b)}else p=new o.Category(b);return l[u].push(p),p.on("itemclick",(function(t){s.onClick&&s.onClick(t)})),e._bindHoverEvent(p),p}},e.addMixedLegend=function(t,e){var n=this,r=n.options,a=[];i.each(t,(function(t){var n=t.alias||t.field,o=r[t.field];i.each(e,(function(e){if(e.getYScale()===t&&t.values&&t.values.length>0&&!1!==o){var r=e.get("shapeType")||"point",i=e.getDefaultValue("shape")||"circle",s=u.getShapeFactory(r),l={color:e.getDefaultValue("color")},c=s.getMarkerCfg(i,l);f.legendMarkerRadius&&(c.radius=f.legendMarkerRadius);var h={value:n,marker:c,field:t.field};a.push(h)}}))}));var o={custom:!0,items:a};n.options=i.deepMix({},o,n.options);var s=n.addCustomLegend();n._bindClickEventForMix(s)},e.alignLegends=function(){var t=this,e=t.legends,n=t._getRegion(e);t.totalRegion=n;var r=0;return i.each(e,(function(e,a){var o=n.subs[r];i.each(e,(function(n,r){var i=e[r-1];n.get("useHtml")&&!n.get("autoPosition")||t._alignLegend(n,i,o,a)})),r++})),this},t}();t.exports=m},function(t,e,n){var r=n(154),i=n(0),a=/^(?:(?!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]))?$/,o={LINEAR:"linear",CAT:"cat",TIME:"time"},s=function(){function t(t){this.defs={},this.viewTheme={scales:{}},this.filters={},i.assign(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,n=this.viewTheme,r=null;return(n.scales[t]||e[t])&&(r=i.mix({},n.scales[t]),i.each(e[t],(function(t,e){i.isNil(t)?delete r[e]:r[e]=t})),this.filters[t]&&(delete r.min,delete r.max)),r},e._getDefaultType=function(t,e){var n=o.LINEAR,r=i.Array.firstValue(e,t);return i.isArray(r)&&(r=r[0]),a.test(r)?n=o.TIME:i.isString(r)&&(n=o.CAT),n},e._getScaleCfg=function(t,e,n){var a={field:e},o=i.Array.values(n,e);if(a.values=o,!r.isCategory(t)&&"time"!==t){var s=i.Array.getRange(o);a.min=s.min,a.max=s.max,a.nice=!0}return"time"===t&&(a.nice=!1),a},e.createScale=function(t,e){var n,a=this,o=a._getDef(t),s=e||[],u=i.Array.firstValue(s,t);if(i.isNumber(t)||i.isNil(u)&&!o)n=r.identity({value:t,field:t.toString(),values:[t]});else{var l;o&&(l=o.type),l=l||a._getDefaultType(t,s);var c=a._getScaleCfg(l,t,s);o&&i.mix(c,o),n=r[l](c)}return n},t}();t.exports=s},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;e-1){var h=i.mix({},n.tooltipCrosshairsLine);h.isTransposed=l,u={crosshairs:h}}return i.mix(a,u,{})},e._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,i.wrapBehavior(this,"onMouseMove")),t.on("plotleave",i.wrapBehavior(this,"onMouseOut")))},e._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,i.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",i.getWrapBehavior(this,"onMouseOut")))},e._setTooltip=function(t,e,n,r){var a=this,o=a.tooltip,s=a.prePoint;if(!s||s.x!==t.x||s.y!==t.y){e=v(e),a.prePoint=t;var u=a.chart,l=a.viewTheme,c=i.isArray(t.x)?t.x[t.x.length-1]:t.x,f=i.isArray(t.y)?t.y[t.y.length-1]:t.y;o.get("visible")||u.emit("tooltip:show",{x:c,y:f,tooltip:o});var h=e[0],d=h.title||h.name;o.isContentChange(d,e)&&(u.emit("tooltip:change",{tooltip:o,x:c,y:f,items:e}),d=e[0].title||e[0].name,o.setContent(d,e),i.isEmpty(n)?(o.clearMarkers(),o.set("markerItems",[])):!0===a.options.hideMarkers?o.set("markerItems",n):o.setMarkers(n,l.tooltipMarker));var p=this._getCanvas();r===p&&"mini"===o.get("type")?o.hide():(o.setPosition(c,f,r),o.show())}},e.hideTooltip=function(){var t=this.tooltip,e=this.chart,n=this._getCanvas();this.prePoint=null,t.hide(),e.emit("tooltip:hide",{tooltip:t}),n.draw()},e.onMouseMove=function(t){if(!i.isEmpty(t.views)&&!this.locked){var e=this.timeStamp,n=+new Date,r={x:t.x,y:t.y};n-e>16&&!this.chart.get("stopTooltip")&&(this.showTooltip(r,t.views,t.shape),this.timeStamp=n)}},e.onMouseOut=function(t){var e=this.tooltip;e.get("visible")&&e.get("follow")&&!this.locked&&(t&&t.toElement&&(p(t.toElement,"g2-tooltip")||g(t.toElement,"g2-tooltip"))||this.hideTooltip())},e.renderTooltip=function(){var t=this;if(!t.tooltip){var e,n=t.chart,r=t.viewTheme,a=t._getCanvas(),o=t._getDefaultTooltipCfg(),u=t.options;u=i.deepMix({plotRange:n.get("plotRange"),capture:!1,canvas:a,frontPlot:n.get("frontPlot"),viewTheme:r.tooltip,backPlot:n.get("backPlot")},o,u),u.crosshairs&&"rect"===u.crosshairs.type&&(u.zIndex=0),u.visible=!1,"mini"===u.type?(u.crosshairs=!1,u.position="top",e=new s.Mini(u)):e=u.useHtml?new s.Html(u):new s.Canvas(u),t.tooltip=e;var l=t._getTriggerEvent(),c=e.get("container");e.get("enterable")||"plotmove"!==l||c&&(c.onmousemove=function(e){var r=t._normalizeEvent(e);n.emit(l,r)}),c&&(c.onmouseleave=function(){t.locked||t.hideTooltip()}),t._bindEvent()}},e._formatMarkerOfItem=function(t,e,n){var r=this,a=r.options,o=n.point;if(o&&o.x&&o.y){var s=i.isArray(o.x)?o.x[o.x.length-1]:o.x,u=i.isArray(o.y)?o.y[o.y.length-1]:o.y;o=t.applyMatrix(s,u,1),n.x=o[0],n.y=o[1],n.showMarker=!0,"l("!==n.color.substring(0,2)||a.hasOwnProperty("useHtml")&&!a.useHtml||(n.color=n.color.split(" ")[1].substring(2));var l=r._getItemMarker(e,n);if(n.marker=l,-1!==i.indexOf(c,e.get("type")))return n}return null},e.lockTooltip=function(){this.locked=!0},e.unlockTooltip=function(){this.locked=!1},e.showTooltip=function(t,e,n){var r=this,a=this;if(!i.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var o=a.options,s=[],u=[];if(i.each(e,(function(e){if(!e.get("tooltipEnable"))return!0;var n=e.get("geoms"),l=e.get("coord");i.each(n,(function(e){var n=e.get("type");if(e.get("visible")&&!1!==e.get("tooltipCfg")){var c=e.get("dataArray");if(e.isShareTooltip()||!1===o.shared&&i.inArray(["area","line","path","polygon"],n)){var f=e.getXScale(),h=e.getAttr("color"),d=h?h.field:void 0;if("interval"===n&&f.field===d&&e.hasAdjust("dodge")){var p=i.find(c,(function(n){return!!e.findPoint(t,n)}));i.each(p,(function(t){var n=e.getTipItems(t,o.title);i.each(n,(function(t){var n=a._formatMarkerOfItem(l,e,t);n&&s.push(n)})),u=u.concat(n)}))}else i.each(c,(function(n){var r=e.findPoint(t,n);if(r){var c=e.getTipItems(r,o.title);i.each(c,(function(t){var n=a._formatMarkerOfItem(l,e,t);n&&s.push(n)})),u=u.concat(c)}}))}else{var g=e.get("shapeContainer"),v=g.get("canvas"),_=v.get("pixelRatio"),m=g.getShape(t.x*_,t.y*_);m&&m.get("visible")&&m.get("origin")&&(u=e.getTipItems(m.get("origin"),o.title)),i.each(u,(function(t){var n=r._formatMarkerOfItem(l,e,t);n&&s.push(n)}))}}})),i.each(u,(function(t){var e=t.point,n=i.isArray(e.x)?e.x[e.x.length-1]:e.x,r=i.isArray(e.y)?e.y[e.y.length-1]:e.y;e=l.applyMatrix(n,r,1),t.x=e[0],t.y=e[1]}))})),u.length){var c=u[0];if(!u.every((function(t){return t.title===c.title}))){var f=c,h=1/0;u.forEach((function(e){var n=l.distance([t.x,t.y],[e.x,e.y]);n1){var d=u[0],p=Math.abs(t.y-d.y);i.each(u,(function(e){Math.abs(t.y-e.y)<=p&&(d=e,p=Math.abs(t.y-e.y))})),d&&d.x&&d.y&&(s=[d]),u=[d]}a._setTooltip(t,u,s,n)}else a.hideTooltip()}},e.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},e._getItemMarker=function(t,e){var n=this.options,o=n.marker||this.viewTheme.tooltip.marker;if(i.isFunction(o)){var s=t.get("shapeType")||"point",u=t.getDefaultValue("shape")||"circle",l=a.getShapeFactory(s),c={color:e.color},f=l.getMarkerCfg(u,c);return o(f,e)}return r({fill:e.color},o)},t}();t.exports=_},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var a=n(120),o=n(8),s=n(0),u=n(121),l=n(5),c=n(132),f="_origin",h=n(271);function d(t){var e=t.startAngle,n=t.endAngle;return!(!s.isNil(e)&&!s.isNil(n)&&n-e<2*Math.PI)}function p(t,e,n){var r=(t-e)/(n-e);return r>=0&&r<=1}function g(t,e){var n=!1;if(t){var r=t.type;if("theta"===r){var i=t.start,a=t.end;n=p(e.x,i.x,a.x)&&p(e.y,i.y,a.y)}else{var o=t.invert(e);n=o.x>=0&&o.y>=0&&o.x<=1&&o.y<=1}}return n}var v={};s.each(o,(function(t,e){var n=s.lowerFirst(e);v[n]=function(e){var n=new t(e);return this.addGeom(n),n}}));var _=function(t){i(n,t);var e=n.prototype;function n(e){var n;n=t.call(this,e)||this;var i=r(n);return i._setTheme(),s.each(o,(function(t,e){var n=s.lowerFirst(e);i[n]=function(e){void 0===e&&(e={}),e.viewTheme=i.get("viewTheme");var n=new t(e);return i.addGeom(n),n}})),i.init(),n}return e.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,theme:null,parent:null,tooltipEnable:!0,animate:l.animate,visible:!0}},e._setTheme=function(){var t=this,e=t.get("theme"),n={},r={};s.isObject(e)?r=e:-1!==s.indexOf(Object.keys(c),e)&&(r=c[e]),s.deepMix(n,l,r),t.set("viewTheme",n)},e.init=function(){this._initViewPlot(),this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()},e._initOptions=function(){var t=this,e=s.mix({},t.get("options"));e.scales||(e.scales={}),e.coord||(e.coord={}),!1===e.animate&&this.set("animate",!1),(!1===e.tooltip||s.isNull(e.tooltip))&&this.set("tooltipEnable",!1),e.geoms&&e.geoms.length&&s.each(e.geoms,(function(e){t._createGeom(e)}));var n=t.get("scaleController");n&&(n.defs=e.scales);var r=t.get("coordController");r&&r.reset(e.coord),this.set("options",e)},e._createGeom=function(t){var e,n=t.type;this[n]&&(e=this[n](),s.each(t,(function(t,n){var r;e[n]&&(s.isObject(t)&&t.field?"label"===t?e[n](t.field,t.callback,t.cfg):(s.each(t,(function(t,e){"field"!==e&&(r=t)})),e[n](t.field,r)):e[n](t))})))},e._initControllers=function(){var t=this,e=t.get("options"),n=t.get("viewTheme"),r=t.get("canvas"),i=new u.Scale({viewTheme:n,defs:e.scales}),a=new u.Coord(e.coord);this.set("scaleController",i),this.set("coordController",a);var o=new u.Axis({canvas:r,viewTheme:n});this.set("axisController",o);var s=new u.Guide({viewTheme:n,options:e.guides||[]});this.set("guideController",s)},e._initViewPlot=function(){this.get("viewContainer")||this.set("viewContainer",this.get("middlePlot"))},e._initGeoms=function(){for(var t=this.get("geoms"),e=this.get("filteredData"),n=this.get("coord"),r=this.get("_id"),i=0;i0){var n=e.shift();n.destroy()}},e._drawGeoms=function(){this.emit("beforedrawgeoms");for(var t=this.get("geoms"),e=this.get("coord"),n=0;n0?a.change({min:0}):u<=0&&a.change({max:0}))}}},e._setCatScalesRange=function(){var t=this,e=t.get("coord"),n=t.get("viewTheme"),r=t.getXScale(),i=t.getYScales(),a=[];r&&a.push(r),a=a.concat(i);var o=e.isPolar&&d(e),u=t.get("scaleController"),l=u.defs;s.each(a,(function(t){if((t.isCategory||t.isIdentity)&&t.values&&(!l[t.field]||!l[t.field].range)){var r,i=t.values.length;if(1===i)r=[.5,1];else{var a=1,s=0;o?e.isTransposed?(a=n.widthRatio.multiplePie,s=1/i*a,r=[s/2,1-s/2]):r=[0,1-1/i]:(s=1/i*1/2,r=[s,1-s])}t.range=r}}))},e.getXScale=function(){var t=this.get("geoms"),e=null;return s.isEmpty(t)||(e=t[0].getXScale()),e},e.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;nu&&(u=e),e0){var p=l[c-1],g=l[c];p.pos+p.size>g.pos&&(p.size+=g.size,p.targets=p.targets.concat(g.targets),l.splice(c,1),n=!0)}}c=0;var v=this.get("itemsGroup").addGroup();l.forEach((function(n){var r=i+o;n.targets.forEach((function(){var i=t[c].attr("matrix")[7],a=n.pos+r-o/2,s=Math.abs(i-a);s>o/2&&e._adjustDenote(v,a,i-e.get("group").attr("matrix")[7]/2),t[c].translate(0,-i),t[c].translate(0,a),r+=o,c++}))}))}},e}(u);t.exports=l},function(t,e,n){var r=n(0),i=n(16),a=i.Group,o="auto",s=function t(e){t.superclass.constructor.call(this,e)};r.extend(s,a),r.augment(s,{getDefaultCfg:function(){return{type:"plotBack",padding:null,background:null,plotRange:null,plotBackground:null}},_beforeRenderUI:function(){this._calculateRange()},_renderUI:function(){this._renderBackground(),this._renderPlotBackground()},_renderBackground:function(){var t=this,e=t.get("background");if(e){var n=this.get("canvas"),i=t.get("width")||n.get("width"),a=t.get("height")||n.get("height"),o={x:0,y:0,width:i,height:a},s=t.get("backgroundShape");s?s.attr(o):(s=this.addShape("rect",{attrs:r.mix(o,e)}),this.set("backgroundShape",s))}},_renderPlotBackground:function(){var t=this,e=t.get("plotBackground");if(e){var n=t.get("plotRange"),i=n.br.x-n.bl.x,a=n.br.y-n.tr.y,o=n.tl,s={x:o.x,y:o.y,width:i,height:a},u=t.get("plotBackShape");u?u.attr(s):(e.image?(s.img=e.image,u=t.addShape("image",{attrs:s})):(r.mix(s,e),u=t.addShape("rect",{attrs:s})),t.set("plotBackShape",u))}},_convert:function(t,e){if(r.isString(t))if(t===o)t=0;else if(t.includes("%")){var n=this.get("canvas"),i=this.get("width")||n.get("width"),a=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*i:t*a}return t},_calculateRange:function(){var t=this,e=t.get("plotRange");r.isNil(e)&&(e={});var n=t.get("padding"),i=this.get("canvas"),a=t.get("width")||i.get("width"),o=t.get("height")||i.get("height"),s=r.toAllPadding(n),u=t._convert(s[0],!1),l=t._convert(s[1],!0),c=t._convert(s[2],!1),f=t._convert(s[3],!0),h=Math.min(f,a-l),d=Math.max(f,a-l),p=Math.min(o-c,u),g=Math.max(o-c,u);e.tl={x:h,y:p},e.tr={x:d,y:p},e.bl={x:h,y:g},e.br={x:d,y:g},e.cc={x:(d+h)/2,y:(g+p)/2},this.set("plotRange",e)},repaint:function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this}}),t.exports=s},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(46);function a(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="circle",e},n.getRegion=function(t,e){var n=.5,r=2*Math.PI/t,i=-1*Math.PI/2+r*e,o=n/(1+1/Math.sin(r/2)),s={x:.5,y:.5},u=a(s,n-o,i),l=5*Math.PI/4,c=1*Math.PI/4;return{start:a(u,o,l),end:a(u,o,c)}},n.generateFacets=function(t){var e=this,n=e.fields,r=n[0];if(!r)throw"Please specify for the field for facet!";var i=e.getFieldValues(r,t),a=i.length,o=[];return i.forEach((function(n,s){var u=[{field:r,value:n,values:i}],l=e.getFilter(u),c=t.filter(l),f={type:e.type,colValue:n,colField:r,colIndex:s,cols:a,rows:1,rowIndex:0,data:c,region:e.getRegion(a,s)};o.push(f)})),o},e}(i);t.exports=o},function(t,e,n){var r=n(0),i=n(44),a={};a.Rect=n(126),a.List=n(125),a.Circle=n(284),a.Tree=n(288),a.Mirror=n(287),a.Matrix=n(286),i.prototype.facet=function(t,e){var n=a[r.upperFirst(t)];if(!n)throw new Error("Not support such type of facets as: "+t);var i=this.get("facets");i&&i.destroy(),e.chart=this;var o=new n(e);this.set("facets",o)},t.exports=a},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(126),a=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="matrix",e.showTitle=!1,e},n.generateFacets=function(t){for(var e=this,n=e.fields,r=n.length,i=r,a=[],o=0;o=0;a--)for(var o=e.getFacetsByLevel(t,a),s=0;sa&&(a=e),e=t[0]})));for(var d=e._getScale(s),g=0;gf&&(f=t.y),t.yc&&(c=f-l);while(o){d.forEach((function(t){var e=(Math.min.apply(h,t.targets)+Math.max.apply(h,t.targets))/2;t.pos=Math.min(Math.max(h,e-t.size/2),c-t.size)})),o=!1,a=d.length;while(a--)if(a>0){var p=d[a-1],g=d[a];p.pos+p.size>g.pos&&(p.size+=g.size,p.targets=p.targets.concat(g.targets),p.pos+p.size>c&&(p.pos=c-p.size),d.splice(a,1),o=!0)}}a=0,d.forEach((function(n){var r=l+e/2;n.targets.forEach((function(){t[a].y=n.pos+r,r+=e,a++}))})),t.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e0&&(t=e._distribute(t,n)),c.superclass.adjustItems.call(this,t)},_distribute:function(t,e){var n=this,r=n.get("coord"),i=r.getRadius(),a=n.get("label").labelHeight,o=r.getCenter(),s=i+e,u=2*s+2*a,c={start:r.start,end:r.end},f=n.get("geom");if(f){var h=f.get("view");c=h.getViewRegion()}var d=[[],[]];return t.forEach((function(t){t&&("right"===t.textAlign?d[0].push(t):d[1].push(t))})),d.forEach((function(t,e){var n=parseInt(u/a,10);t.length>n&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(n,t.length-n)),t.sort((function(t,e){return t.y-e.y})),l(t,a,c,o,e)})),d[0].concat(d[1])},lineToLabel:function(t){var e=this,n=e.get("coord"),r=n.getRadius(),i=t.offset,a=t.orignAngle||t.angle,o=n.getCenter(),l=u(o,a,r+s/2),c=u(o,a,r+i/2);t.labelLine||(t.labelLine=e.get("label").labelLine||{}),t.labelLine.path=["M"+l.x,l.y+" Q"+c.x,c.y+" "+t.x,t.y].join(",")},getLabelRotate:function(t,e){var n;return e<0&&(n=180*t/Math.PI,n>90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},getLabelAlign:function(t){var e,n=this,r=n.get("coord"),i=r.getCenter();e=t.angle<=Math.PI/2&&t.x>=i.x?"left":"right";var a=n.getDefaultOffset(t);return a<=0&&(e="right"===e?"left":"right"),e},getArcPoint:function(t){return t},getPointAngle:function(t){var e=this,n=e.get("coord"),i={x:r.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};e.transLabelPoint(i);var o,s={x:r.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};e.transLabelPoint(s);var u=a.getPointAngle(n,i);if(t.points&&t.points[0].y===t.points[1].y)o=u;else{var l=a.getPointAngle(n,s);u>=l&&(l+=2*Math.PI),o=u+(l-u)/2}return o},getCirclePoint:function(t,e){var n=this,r=n.get("coord"),i=r.getCenter(),a=r.getRadius()+e,o=u(i,t,a);return o.angle=t,o.r=a,o}}),t.exports=c},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(8),a=n(130);n(307);var o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(a),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(o);o.Stack=s,i.Line=o,i.LineStack=s,t.exports=o},function(t,e,n){var r=n(0),i="_origin",a=n(129),o="_originActiveAttrs";function s(t,e){if(r.isNil(t)||r.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return r.isEqual(n,i)}function u(t,e){if(!t)return!0;if(t.length!==e.length)return!0;var n=!1;return r.each(e,(function(e,r){if(!s(e,t[r]))return n=!0,!1})),n}function l(t,e){var n={};return r.each(t,(function(t,i){var a=e.attr(i);r.isArray(a)&&(a=r.cloneDeep(a)),n[i]=a})),n}var c={_isAllowActive:function(){var t=this.get("allowActive");if(!r.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip(),i=e.get("options");return!1===i.tooltip||!n},_onMouseenter:function(t){var e=this,n=t.shape,r=e.get("shapeContainer");n&&r.contain(n)&&e._isAllowActive()&&e.setShapesActived(n)},_onMouseleave:function(){var t=this,e=t.get("view"),n=e.get("canvas");t.get("activeShapes")&&(t.clearActivedShapes(),n.draw())},_bindActiveAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.on(n+":mouseenter",r.wrapBehavior(t,"_onMouseenter")),e.on(n+":mouseleave",r.wrapBehavior(t,"_onMouseleave"))},_offActiveAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.off(n+":mouseenter",r.getWrapBehavior(t,"_onMouseenter")),e.off(n+":mouseleave",r.getWrapBehavior(t,"_onMouseleave"))},_setActiveShape:function(t){var e=this,n=e.get("activedOptions")||{},i=t.get("origin"),s=i.shape||e.getDefaultValue("shape");r.isArray(s)&&(s=s[0]);var u=e.get("shapeFactory"),c=r.mix({},t.attr(),{origin:i}),f=u.getActiveCfg(s,c);n.style&&r.mix(f,n.style);var h=l(f,t);t.setSilent(o,h),n.animate?t.animate(f,300):t.attr(f),a.toFront(t)},setShapesActived:function(t){var e=this;r.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(u(n,t)){var i=e.get("view"),a=i.get("canvas"),o=e.get("activedOptions");o&&o.highlight?(r.each(t,(function(t){t.get("animating")&&t.stopAnimate()})),e.highlightShapes(t)):(n&&e.clearActivedShapes(),r.each(t,(function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&e._setActiveShape(t)}))),e.set("activeShapes",t),a.draw()}},clearActivedShapes:function(){var t=this,e=t.get("shapeContainer"),n=t.get("activedOptions"),i=n&&n.animate;if(e&&!e.get("destroyed")){var s=t.get("activeShapes");r.each(s,(function(t){var e=t.get(o);i?(t.stopAnimate(),t.animate(e,300)):t.attr(e),a.resetZIndex(t),t.setSilent(o,null)}));var u=t.get("preHighlightShapes");if(u){var l=e.get("children");r.each(l,(function(t){var e=t.get(o);e&&(i?(t.stopAnimate(),t.animate(e,300)):t.attr(e),a.resetZIndex(t),t.setSilent(o,null))}))}t.set("activeShapes",null),t.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=this,n=e.get("shapeContainer"),a=[];if(n){var o=e.getXScale().field,s=e.getShapes(),u=e._getOriginByPoint(t);r.each(s,(function(t){var e=t.get("origin");if(t.get("visible")&&e){var n=e[i][o];n===u[o]&&a.push(t)}}))}return a},getSingleShapeByPoint:function(t){var e,n=this,r=n.get("shapeContainer"),i=r.get("canvas"),a=i.get("pixelRatio");if(r&&(e=r.getShape(t.x*a,t.y*a)),e&&e.get("origin"))return e},highlightShapes:function(t,e){var n=this;r.isArray(t)||(t=[t]);var i=n.get("activeShapes");if(u(i,t)){i&&n.clearActivedShapes();var s=n.getShapes(),c=n.get("activedOptions"),f=c&&c.animate,h=c&&c.style;r.each(s,(function(n){var i={};n.stopAnimate(),-1!==r.indexOf(t,n)?(r.mix(i,h,e),a.toFront(n)):(r.mix(i,{fillOpacity:.3,opacity:.3}),a.resetZIndex(n));var s=l(i,n);n.setSilent(o,s),f?n.animate(i,300):n.attr(i)})),n.set("preHighlightShapes",t),n.set("activeShapes",t)}}};t.exports=c},function(t,e,n){var r=n(0),i="_origin",a=n(129);function o(t,e){if(r.isNil(t)||r.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return r.isEqual(n,i)}function s(t,e){var n={};return r.each(t,(function(t,i){"transform"===i&&(i="matrix");var a=e.attr(i);r.isArray(a)&&(a=r.cloneDeep(a)),n[i]=a})),n}var u={_isAllowSelect:function(){var t=this.get("allowSelect");if(!r.isNil(t))return t;var e=this.get("type"),n=this.get("coord"),i=n&&n.type;return"interval"===e&&"theta"===i},_onClick:function(t){var e=this;if(e._isAllowSelect()){var n=t.shape,r=e.get("shapeContainer");n&&r.contain(n)&&e.setShapeSelected(n)}},_bindSelectedAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.on(n+":click",r.wrapBehavior(t,"_onClick"))},_offSelectedAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.off(n+":click",r.getWrapBehavior(t,"_onClick"))},_setShapeStatus:function(t,e){var n=this,i=n.get("view"),o=n.get("selectedOptions")||{},u=!1!==o.animate,l=i.get("canvas");t.set("selected",e);var c=t.get("origin");if(e){var f=c.shape||n.getDefaultValue("shape");r.isArray(f)&&(f=f[0]);var h=n.get("shapeFactory"),d=r.mix({geom:n,point:c},o),p=h.getSelectedCfg(f,d);r.mix(p,d.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",s(p,t))),o.toFront&&a.toFront(t),u?t.animate(p,300):(t.attr(p),l.draw())}else{var g=t.get("_originAttrs");o.toFront&&a.resetZIndex(t),t.set("_originAttrs",null),u?t.animate(g,300):(t.attr(g),l.draw())}},setShapeSelected:function(t){var e=this,n=e._getSelectedShapes(),i=e.get("selectedOptions")||{},a=!1!==i.cancelable;if("multiple"===i.mode)-1===r.indexOf(n,t)?(n.push(t),e._setShapeStatus(t,!0)):a&&(r.Array.remove(n,t),e._setShapeStatus(t,!1));else{var s=n[0];a&&(t=o(s,t)?null:t),o(s,t)||(s&&e._setShapeStatus(s,!1),t&&e._setShapeStatus(t,!0))}},clearSelected:function(){var t=this,e=t.get("shapeContainer");if(e&&!e.get("destroyed")){var n=t._getSelectedShapes();r.each(n,(function(e){t._setShapeStatus(e,!1),e.set("_originAttrs",null)}))}},setSelected:function(t){var e=this,n=e.getShapes();return r.each(n,(function(n){var r=n.get("origin");r&&r[i]===t&&e.setShapeSelected(n)})),this},_getSelectedShapes:function(){var t=this,e=t.getShapes(),n=[];return r.each(e,(function(t){t.get("selected")&&n.push(t)})),t.set("selectedShapes",n),n}};t.exports=u},function(t,e,n){var r=n(0),i=n(5),a=i.defaultColor,o="_origin";function s(t){return t.alias||t.field}var u={_getIntervalSize:function(t){var e=null,n=this.get("type"),i=this.get("coord");if(i.isRect&&("interval"===n||"schema"===n)){e=this.getSize(t[o]);var a=i.isTransposed?"y":"x";if(r.isArray(t[a])){var s=Math.abs(t[a][1]-t[a][0]);e=e(1+r.rangeMax())/2&&(a=r.rangeMin()),e=r.invert(a),r.isCategory&&(e=r.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),r=e.field,i=n.field,a=this.get("coord"),o=a.invert(t),s=e.invert(o.x),u=n.invert(o.y),l={};return l[r]=s,l[i]=u,l},_getScale:function(t){var e=this,n=e.get("scales"),i=null;return r.each(n,(function(e){if(e.field===t)return i=e,!1})),i},_getTipValueScale:function(){var t,e=this.getAttrsForLegend();r.each(e,(function(e){var n=e.getScale(e.type);if(n.isLinear)return t=n,!1}));var n=this.getXScale(),i=this.getYScale();return!t&&i&&"..y"===i.field?n:t||i||n},_getTipTitleScale:function(t){var e=this;if(t)return e._getScale(t);var n,i=e.getAttr("position"),a=i.getFields();return r.each(a,(function(t){if(!t.includes(".."))return n=t,!1})),e._getScale(n)},_filterValue:function(t,e){var n=this.get("coord"),i=this.getYScale(),a=i.field,s=n.invert(e),u=s.y;u=i.invert(u);var l=t[t.length-1];return r.each(t,(function(t){var e=t[o];if(e[a][0]<=u&&e[a][1]>=u)return l=t,!1})),l},getXDistance:function(){var t=this,e=t.get("xDistance");if(!e){var n=t.getXScale();if(n.isCategory)e=1;else{var i=n.values,a=n.translate(i[0]),o=a;r.each(i,(function(t){t=n.translate(t),to&&(o=t)}));var s=i.length;e=(o-a)/(s-1)}t.set("xDistance",e)}return e},findPoint:function(t,e){var n=this,i=n.get("type"),a=n.getXScale(),s=n.getYScale(),u=a.field,l=s.field,c=null;if(r.indexOf(["heatmap","point"],i)>-1){var f=n.get("coord"),h=f.invert(t),d=a.invert(h.x),p=s.invert(h.y),g=1/0;return r.each(e,(function(t){var e=Math.pow(t[o][u]-d,2)+Math.pow(t[o][l]-p,2);e=m){if(!w)return c=t,!1;r.isArray(c)||(c=[]),c.push(t)}})),r.isArray(c)&&(c=this._filterValue(c,t));else{var M;if(a.isLinear||"timeCat"===a.type){if((m>a.translate(b)||ma.max||mMath.abs(a.translate(M[o][u])-m)&&(_=M)}var C=n.getXDistance();return!c&&Math.abs(a.translate(_[o][u])-m)<=C/2&&(c=_),c},getTipTitle:function(t,e){var n="",r=this._getTipTitleScale(e);if(r){var i=t[r.field];n=r.getText(i)}else if("heatmap"===this.get("type")){var a=this.getXScale(),o=this.getYScale(),s=a.getText(t[a.field]),u=o.getText(t[o.field]);n="( "+s+", "+u+" )"}return n},getTipValue:function(t,e){var n,i=e.field,a=t.key;if(n=t[i],r.isArray(n)){var o=[];r.each(n,(function(t){o.push(e.getText(t))})),n=o.join("-")}else n=e.getText(n,a);return n},getTipName:function(t){var e,n,i=this._getGroupScales();if(i.length&&r.each(i,(function(t){return n=t,!1})),n){var a=n.field;e=n.getText(t[a])}else{var o=this._getTipValueScale();e=s(o)}return e},getTipItems:function(t,e){var n,i,u=this,l=t[o],c=u.getTipTitle(l,e),f=u.get("tooltipCfg"),h=[];function d(e,n,i){if(!r.isNil(n)&&""!==n){var o={title:c,point:t,name:e||c,value:n,color:t.color||a,marker:!0};o.size=u._getIntervalSize(t),h.push(r.mix({},o,i))}}if(f){var p=f.fields,g=f.cfg,v=[];if(r.each(p,(function(t){v.push(l[t])})),g){r.isFunction(g)&&(g=g.apply(null,v));var _=r.mix({},{point:t,title:c,color:t.color||a,marker:!0},g);_.size=u._getIntervalSize(t),h.push(_)}else r.each(p,(function(t){if(!r.isNil(l[t])){var e=u._getScale(t);n=s(e),i=e.getText(l[t]),d(n,i)}}))}else{var m=u._getTipValueScale();r.isNil(l[m.field])||(i=u.getTipValue(l,m),n=u.getTipName(l),d(n,i))}return h},isShareTooltip:function(){var t,e=this.get("shareTooltip"),n=this.get("type"),i=this.get("view");if(t=i.get("parent")?i.get("parent").get("options"):i.get("options"),"interval"===n){var a=this.get("coord"),o=a.type;("theta"===o||"polar"===o&&a.isTransposed)&&(e=!1)}else this.getYScale()&&!r.inArray(["contour","point","polygon","edge"],n)||(e=!1);return t.tooltip&&r.isBoolean(t.tooltip.shared)&&(e=t.tooltip.shared),e}};t.exports=u},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(8),a=n(0);n(308);var o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="point",e.shapeType="point",e.generatePoints=!0,e},n.drawPoint=function(t,e,n,r){var i,o=this,s=t.shape,u=o.getDrawCfg(t);if(o._applyViewThemeShapeStyle(u,s,n),a.isArray(t.y)){var l=o.hasStack();a.each(t.y,(function(t,a){u.y=t,u.yIndex=a,l&&0===a||(i=n.drawShape(s,u,e),o.appendShapeInfo(i,r+a))}))}else a.isNil(t.y)||(i=n.drawShape(s,u,e),o.appendShapeInfo(i,r))},e}(i),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"jitter"}],e},e}(o),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(o);o.Jitter=s,o.Stack=u,i.Point=o,i.PointJitter=s,i.PointStack=u,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(8),a=n(0);n(309);var o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this,o=r.x,s=r.y;if(!a.isArray(o)||!a.isArray(s)){var u=i.getXScale(),l=i.getYScale(),c=u.values?u.values.length:u.ticks.length,f=l.values?l.values.length:l.ticks.length,h=.5/c,d=.5/f;u.isCategory&&l.isCategory?(o=[o-h,o-h,o+h,o+h],s=[s-d,s+d,s+d,s-d]):a.isArray(o)?(n=o,o=[n[0],n[0],n[1],n[1]],s=[s-d/2,s+d/2,s+d/2,s-d/2]):a.isArray(s)&&(n=s,s=[n[0],n[1],n[1],n[0]],o=[o-h/2,o-h/2,o+h/2,o+h/2]),r.x=o,r.y=s}return r},e}(i);i.Polygon=o,t.exports=o},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var a=n(8),o=n(0),s=n(70);n(310);var u=function(t){i(n,t);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,o.assign(r(n),s),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e},e.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},e.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},n}(a),l=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(u);u.Dodge=l,a.Schema=u,a.SchemaDodge=l,t.exports=u},function(t,e,n){var r=n(0),i=n(9),a=n(25),o=n(23),s=n(5);function u(t){var e=s.shape.hollowArea,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),r.isNumber(t.size)&&(n.lineWidth=t.size),n}function l(t){var e=s.shape.area,n=r.mix({},e,t.style);return o.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),r.isNumber(t.size)&&(n.lineWidth=t.size),n}function c(t,e,n){var i=[],o=[],s=[],u=[],l=t.isInCircle;return r.each(t.points,(function(t){s.push(t[1]),u.push(t[0])})),u=u.reverse(),o.push(s,u),r.each(o,(function(r,o){var s=[];r=n.parsePoints(r);var u=r[0];l&&r.push({x:u.x,y:u.y}),s=e?a.getSplinePath(r,!1,t.constraint):a.getLinePath(r,!1),o>0&&(s[0][0]="L"),i=i.concat(s)})),i.push(["Z"]),i}function f(t){return{symbol:function(t,e,n){return[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},radius:5,fill:t.color,fillOpacity:.6}}function h(t,e){if("line"===t||"smoothLine"===t){var n=e.lineWidth||0;return{lineWidth:n+1}}var r=e.fillOpacity||e.opacity||1;return{fillOpacity:r-.15,strokeOpacity:r-.15}}function d(t,e,n){var i=t._coord,a=i.convertPoint(e.points[0][1]);return n.addShape("circle",{attrs:r.mix({x:a.x,y:a.y,r:2,fill:e.color},e.style)})}var p=i.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=[],n=t.x,i=t.y,a=t.y0;return i=r.isArray(i)?i:[a,i],r.each(i,(function(t){e.push({x:n,y:t})})),e},getActiveCfg:function(t,e){return h(t,e)},drawShape:function(t,e,n){var r,i=this.getShape(t);return r=1===e.points.length&&s.showSinglePoint?d(this,e,n):i.draw(e,n),r&&(r.set("origin",e.origin),r._id=e.splitedIndex?e._id+e.splitedIndex:e._id,r.name=this.name),r},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("area","area",{draw:function(t,e){var n=l(t),i=c(t,!1,this);return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return f(t)}}),i.registerShape("area","smooth",{draw:function(t,e){var n=l(t),i=this._coord;t.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var a=c(t,!0,this);return e.addShape("path",{attrs:r.mix(n,{path:a})})},getMarkerCfg:function(t){return f(t)}}),i.registerShape("area","line",{draw:function(t,e){var n=u(t),i=c(t,!1,this);return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return f(t)}}),i.registerShape("area","smoothLine",{draw:function(t,e){var n=u(t),i=c(t,!0,this);return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return f(t)}}),p.spline=p.smooth,t.exports=p},function(t,e,n){var r=n(0),i=n(9),a=n(23),o=n(5),s=n(25),u=1/3;function l(t){var e=o.shape.edge,n=r.mix({},e,t.style);return a.addStrokeAttrs(n,t),t.size&&(n.lineWidth=t.size),n}var c=i.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return a.splitPoints(t)},getActiveCfg:function(t,e){var n=e.lineWidth||0;return{lineWidth:n+1}}});function f(t,e){var n=[];n.push({x:t.x,y:.5*t.y+1*e.y/2}),n.push({y:.5*t.y+1*e.y/2,x:e.x}),n.push(e);var i=["C"];return r.each(n,(function(t){i.push(t.x,t.y)})),i}function h(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return r.each(n,(function(t){i.push(t.x,t.y)})),i}function d(t,e){var n=f(t,e),r=[["M",t.x,t.y]];return r.push(n),r}function p(t,e,n){var r=h(e,n),i=[["M",t.x,t.y]];return i.push(r),i}function g(t,e){var n=h(t[1],e),r=h(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}function v(t,e){var n=[];n.push({y:t.y*(1-u)+e.y*u,x:t.x}),n.push({y:t.y*(1-u)+e.y*u,x:e.x}),n.push(e);var i=[["M",t.x,t.y]];return r.each(n,(function(t){i.push(["L",t.x,t.y])})),i}i.registerShape("edge","line",{draw:function(t,e){var n=this.parsePoints(t.points),i=l(t),a=s.getLinePath(n),o=e.addShape("path",{attrs:r.mix(i,{path:a})});return o},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4.5},l(t))}}),i.registerShape("edge","vhv",{draw:function(t,e){var n=t.points,i=l(t),a=v(n[0],n[1]);a=this.parsePath(a);var o=e.addShape("path",{attrs:r.mix(i,{path:a})});return o},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4.5},l(t))}}),i.registerShape("edge","smooth",{draw:function(t,e){var n=t.points,i=l(t),a=d(n[0],n[1]);a=this.parsePath(a);var o=e.addShape("path",{attrs:r.mix(i,{path:a})});return o},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4.5},l(t))}}),i.registerShape("edge","arc",{draw:function(t,e){var n,i,a=t.points,o=a.length>2?"weight":"normal",s=l(t);if(t.isInCircle){var u={x:0,y:1};"normal"===o?i=p(a[0],a[1],u):(s.fill=s.stroke,i=g(a,u)),i=this.parsePath(i),n=e.addShape("path",{attrs:r.mix(s,{path:i})})}else if("normal"===o)a=this.parsePoints(a),n=e.addShape("arc",{attrs:r.mix(s,{x:(a[1].x+a[0].x)/2,y:a[0].y,r:Math.abs(a[1].x-a[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{i=[["M",a[0].x,a[0].y],["L",a[1].x,a[1].y]];var c=f(a[1],a[3]),h=f(a[2],a[0]);i.push(c),i.push(["L",a[3].x,a[3].y]),i.push(["L",a[2].x,a[2].y]),i.push(h),i.push(["Z"]),i=this.parsePath(i),s.fill=s.stroke,n=e.addShape("path",{attrs:r.mix(s,{path:i})})}return n},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4.5},l(t))}}),t.exports=c},function(t,e,n){var r=n(0),i=n(9),a=n(25),o=n(23),s=n(5),u=n(16),l=r.PathUtil;function c(t,e){var n,i,a=t.x,o=t.y,s=t.y0,u=t.size,l=s,c=o;r.isArray(o)&&(c=o[1],l=o[0]),r.isArray(a)?(n=a[0],i=a[1]):(n=a-u/2,i=a+u/2);var f=[];return f.push({x:n,y:l},{x:n,y:c}),e?f.push({x:i,y:(c+l)/2}):f.push({x:i,y:c},{x:i,y:l}),f}function f(t){for(var e=[],n=0;n0)r-=2*Math.PI;r=r/Math.PI/2*n;var l=a-t+r-2*t;u.push(["M",l,e]);for(var c=0,f=0;f1?t[1]:e,a=t.length>3?t[3]:n,o=t.length>2?t[2]:i;return{min:e,max:n,min1:i,max1:a,median:o}}function u(t,e){r.each(t,(function(t){e.push({x:t[0],y:t[1]})}))}function l(t){var e=o.shape.schema,n=r.mix({},e,t.style);return a.addStrokeAttrs(n,t),n}function c(t){var e=o.shape.schema,n=r.mix({},e,t.style);return a.addFillAttrs(n,t),t.color&&(n.stroke=t.color||n.stroke),n}function f(t,e,n){var i,a,o=[];return r.isArray(e)?(a=s(e),i=[[t-n/2,a.max],[t+n/2,a.max],[t,a.max],[t,a.max1],[t-n/2,a.min1],[t-n/2,a.max1],[t+n/2,a.max1],[t+n/2,a.min1],[t,a.min1],[t,a.min],[t-n/2,a.min],[t+n/2,a.min],[t-n/2,a.median],[t+n/2,a.median]]):(e=e||.5,a=s(t),i=[[a.min,e-n/2],[a.min,e+n/2],[a.min,e],[a.min1,e],[a.min1,e-n/2],[a.min1,e+n/2],[a.max1,e+n/2],[a.max1,e-n/2],[a.max1,e],[a.max,e],[a.max,e-n/2],[a.max,e+n/2],[a.median,e-n/2],[a.median,e+n/2]]),u(i,o),o}function h(t){r.isArray(t)||(t=[t]);var e=t.sort((function(t,e){return td.x||a.yh.y)return}s.style.cursor="crosshair",e.startPoint=a,e.brushShape=null,e.brushing=!0,c?c.clear():(c=n.addGroup({zIndex:5}),c.initTransform()),e.container=c,"POLYGON"===r&&(e.polygonPath="M "+a.x+" "+a.y)}}}},e.process=function(t){var e=this,n=e.brushing,r=e.dragging,i=e.type,o=e.plot,s=e.startPoint,u=e.xScale,l=e.yScale,c=e.canvas;if(n||r){var f={x:t.offsetX,y:t.offsetY},h=c.get("canvasDOM");if(n){h.style.cursor="crosshair";var d,p,g,v,_=o.start,m=o.end,y=e.polygonPath,x=e.brushShape,b=e.container;e.plot&&e.inPlot&&(f=e._limitCoordScope(f)),"Y"===i?(d=_.x,p=f.y>=s.y?s.y:f.y,g=Math.abs(_.x-m.x),v=Math.abs(s.y-f.y)):"X"===i?(d=f.x>=s.x?s.x:f.x,p=m.y,g=Math.abs(s.x-f.x),v=Math.abs(m.y-_.y)):"XY"===i?(f.x>=s.x?(d=s.x,p=f.y>=s.y?s.y:f.y):(d=f.x,p=f.y>=s.y?s.y:f.y),g=Math.abs(s.x-f.x),v=Math.abs(s.y-f.y)):"POLYGON"===i&&(y+="L "+f.x+" "+f.y,e.polygonPath=y,x?!x.get("destroyed")&&x.attr(a.mix({},x._attrs,{path:y})):x=b.addShape("path",{attrs:a.mix(e.style,{path:y})})),"POLYGON"!==i&&(x?!x.get("destroyed")&&x.attr(a.mix({},x._attrs,{x:d,y:p,width:g,height:v})):x=b.addShape("rect",{attrs:a.mix(e.style,{x:d,y:p,width:g,height:v})})),e.brushShape=x}else if(r){h.style.cursor="move";var w=e.selection;if(w&&!w.get("destroyed"))if("POLYGON"===i){var M=e.prePoint;e.selection.translate(f.x-M.x,f.y-M.y)}else e.dragoffX&&w.attr("x",f.x-e.dragoffX),e.dragoffY&&w.attr("y",f.y-e.dragoffY)}e.prePoint=f,c.draw();var j=e._getSelected(),E=j.data,S=j.shapes,P=j.xValues,C=j.yValues,O={data:E,shapes:S};u&&(O[u.field]=P),l&&(O[l.field]=C),a.mix(t,O),O.x=f.x,O.y=f.y,e.onDragmove&&e.onDragmove(O),e.onBrushmove&&e.onBrushmove(O)}},e.end=function(t){var e=this;if(e.brushing||e.dragging){var n=e.data,r=e.shapes,i=e.xValues,o=e.yValues,s=e.canvas,u=e.type,l=e.startPoint,c=e.chart,f=e.container,h=e.xScale,d=e.yScale,p=t.offsetX,g=t.offsetY,v=s.get("canvasDOM");if(v.style.cursor="default",null!==l){if(Math.abs(l.x-p)<=1&&Math.abs(l.y-g)<=1)return e.brushing=!1,e.dragging=!1,f.clear(),void s.draw();var _={data:n,shapes:r};if(h&&(_[h.field]=i),d&&(_[d.field]=o),a.mix(t,_),_.x=p,_.y=g,e.dragging)e.dragging=!1,e.onDragend&&e.onDragend(_);else if(e.brushing){e.brushing=!1;var m=e.brushShape,y=e.polygonPath;"POLYGON"===u&&(y+="z",m&&!m.get("destroyed")&&m.attr(a.mix({},m._attrs,{path:y})),e.polygonPath=y,s.draw()),e.onBrushend?e.onBrushend(_):c&&e.filter&&(f.clear(),!e.isTransposed&&"X"===u||e.isTransposed&&"Y"===u?h&&c.filter(h.field,(function(t){return i.indexOf(t)>-1})):(!e.isTransposed&&"Y"===u||e.isTransposed&&"X"===u||h&&c.filter(h.field,(function(t){return i.indexOf(t)>-1})),d&&c.filter(d.field,(function(t){return o.indexOf(t)>-1}))),c.repaint())}}}},e.reset=function(){var t=this,e=t.chart,n=t.filter,r=t.brushShape,i=t.canvas;this._init(),e&&n&&(e.get("options").filters={},e.repaint()),r&&(r.destroy(),i.draw())},e._limitCoordScope=function(t){var e=this.plot,n=e.start,r=e.end;return t.xr.x&&(t.x=r.x),t.yn.y&&(t.y=n.y),t},e._getSelected=function(){var t=this,e=t.chart,n=t.xScale,r=t.yScale,i=t.brushShape,a=t.canvas,o=a.get("pixelRatio"),s=[],u=[],l=[],c=[];if(e){var f=e.get("geoms");f.map((function(t){var e=t.getShapes();return e.map((function(t){var e=t.get("origin");return Array.isArray(e)||(e=[e]),e.map((function(e){if(i.isHit(e.x*o,e.y*o)){s.push(t);var a=e._origin;c.push(a),n&&u.push(a[n.field]),r&&l.push(a[r.field])}return e})),t})),t}))}return t.shapes=s,t.xValues=u,t.yValues=l,t.data=c,a.draw(),{data:c,xValues:u,yValues:l,shapes:s}},n}(o);t.exports=l},function(t,e,n){var r=n(0),i=n(16),a=i.Group,o=r.DomUtil,s=5,u=function t(e){t.superclass.constructor.call(this,e)};r.extend(u,a),r.augment(u,{getDefaultCfg:function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},_initHandle:function(t){var e,n,i,a=this,o=a.addGroup(),u=a.get("layout"),l=a.get("handleStyle"),c=l.img,f=l.width,h=l.height;if("horizontal"===u){var d=l.width;i="ew-resize",n=o.addShape("Image",{attrs:{x:-d/2,y:0,width:d,height:h,img:c,cursor:i}}),e=o.addShape("Text",{attrs:r.mix({x:"min"===t?-(d/2+s):d/2+s,y:h/2,textAlign:"min"===t?"end":"start",textBaseline:"middle",text:"min"===t?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))})}else i="ns-resize",n=o.addShape("Image",{attrs:{x:0,y:-h/2,width:f,height:h,img:c,cursor:i}}),e=o.addShape("Text",{attrs:r.mix({x:f/2,y:"min"===t?h/2+s:-(h/2+s),textAlign:"center",textBaseline:"middle",text:"min"===t?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))});return this.set(t+"TextElement",e),this.set(t+"IconElement",n),o},_initSliderBackground:function(){var t=this.addGroup();return t.initTransform(),t.translate(0,0),t.addShape("Rect",{attrs:r.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),t},_beforeRenderUI:function(){var t=this._initSliderBackground(),e=this._initHandle("min"),n=this._initHandle("max"),r=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",r),this.set("minHandleElement",e),this.set("maxHandleElement",n),this.set("backgroundElement",t),t.set("zIndex",0),r.set("zIndex",1),e.set("zIndex",2),n.set("zIndex",2),r.attr("cursor","move"),this.sort()},_renderUI:function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},_transform:function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),s.translate(r*i,0)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-r)*a))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},_isElement:function(t,e){var n=this.get(e);if(t===n)return!0;if(n.isGroup){var r=n.get("children");return r.indexOf(t)>-1}return!1},_getRange:function(t,e){var n=t+e;return n=n>100?100:n,n=n<0?0:n,n},_limitRange:function(t,e,n){n[0]=this._getRange(t,n[0]),n[1]=n[0]+e,n[1]>100&&(n[1]=100,n[0]=n[1]-e)},_updateStatus:function(t,e){var n="x"===t?this.get("width"):this.get("height");t=r.upperFirst(t);var i,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),l=this.get("layout"),c="vertical"===l?-1:1,f=e["page"+t],h=f-o,d=h/n*100*c,p=this.get("minRange"),g=this.get("maxRange");a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(d,a[0]),a[1]=this._getRange(d,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(d,a[0]),p&&a[1]-a[0]<=p&&this._limitRange(d,p,a),g&&a[1]-a[0]>=g&&this._limitRange(d,g,a)),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(d,a[1]),p&&a[1]-a[0]<=p&&this._limitRange(d,p,a),g&&a[1]-a[0]>=g&&this._limitRange(d,g,a))),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],this._limitRange(d,i,a)),this.emit("sliderchange",{range:a}),this.set("page"+t,f),this._renderUI(),this.get("canvas").draw()},_onMouseDown:function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=o.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=o.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=o.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},_onCanvasMouseMove:function(t){var e=this.get("layout");"horizontal"===e?this._updateStatus("x",t):this._updateStatus("y",t)},_onCanvasMouseUp:function(){this._removeDocumentEvents()},_removeDocumentEvents:function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.onMouseLeaveListener.remove()}}),t.exports=u},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var a=n(0),o=n(28),s=n(320),u=n(71),l=n(73),c=864e5,f=["X","Y","XY"],h="X",d=function(t){i(n,t);var e=n.prototype;function n(e,n){var i;i=t.call(this,e,n)||this;var o=r(i);o.type=o.type.toUpperCase(),o.chart=n,o.coord=n.get("coord");var u=o.data=n.get("data");s(n);var c=n.getYScales(),d=n.getXScale();c.push(d);var p=n.get("scaleController");return c.forEach((function(t){var e=t.field;o.limitRange[e]=l(u,t);var n=p.defs[e]||{};o.originScaleDefsByField[e]=a.mix(n,{nice:!!n.nice}),t.isLinear&&(o.stepByField[e]=(t.max-t.min)*o.stepRatio)})),f.includes(o.type)||(o.type=h),o._disableTooltip(),i}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:h,stepRatio:.05,limitRange:{},stepByField:{},threshold:20,originScaleDefsByField:{},previousPoint:null,isDragging:!1})},e._disableTooltip=function(){var t=this,e=t.chart,n=e.get("tooltipController");n&&(t._showTooltip=!0,e.tooltip(!1))},e._enableTooltip=function(t){var e=this,n=e.chart;e._showTooltip&&(n.tooltip(!0),n.showTooltip(t))},e._applyTranslate=function(t,e,n){void 0===e&&(e=0);var r=this;t.isLinear?r._translateLinearScale(t,e,n):r._translateCatScale(t,e,n)},e._translateCatScale=function(t,e,n){var r=this,i=r.chart,o=t.type,s=t.field,l=t.values,f=t.ticks,h=u(i,s),d=r.limitRange[s],p=e/n,g=l.length,v=Math.max(1,Math.abs(parseInt(p*g))),_=d.indexOf(l[0]),m=d.indexOf(l[g-1]);if(e>0&&_>=0){for(var y=0;y0;y++)_-=1,m-=1;var x=d.slice(_,m+1),b=null;if("timeCat"===o){for(var w=f.length>2?f[1]-f[0]:c,M=f[0]-w;M>=x[0];M-=w)f.unshift(M);b=f}i.scale(s,a.mix({},h,{values:x,ticks:b}))}else if(e<0&&m<=d.length-1){for(var j=0;j2?f[1]-f[0]:c,C=f[f.length-1]+P;C<=E[E.length-1];C+=P)f.push(C);S=f}i.scale(s,a.mix({},h,{values:E,ticks:S}))}},e._translateLinearScale=function(t,e,n){var r=this,i=r.chart,o=r.limitRange,s=t.min,l=t.max,c=t.field;if(s!==o[c].min||l!==o[c].max){var f=e/n,h=l-s,d=u(i,c);i.scale(c,a.mix({},d,{nice:!1,min:s+f*h,max:l+f*h}))}},e.start=function(t){var e=this,n=e.canvas,r=n.get("canvasDOM");r.style.cursor="pointer",e.isDragging=!0,e.previousPoint={x:t.x,y:t.y},e._disableTooltip()},e.process=function(t){var e=this;if(e.isDragging){var n=e.chart,r=e.type,i=e.canvas,a=e.coord,o=e.threshold,s=i.get("canvasDOM");s.style.cursor="move";var u=e.previousPoint,l=t,c=l.x-u.x,f=l.y-u.y,h=!1;if(Math.abs(c)>o&&r.indexOf("X")>-1){h=!0;var d=n.getXScale();e._applyTranslate(d,d.isLinear?-c:c,a.width)}if(Math.abs(f)>o&&r.indexOf("Y")>-1){h=!0;var p=n.getYScales();p.forEach((function(t){e._applyTranslate(t,l.y-u.y,a.height)}))}h&&(e.previousPoint=l,n.repaint())}},e.end=function(t){var e=this;e.isDragging=!1;var n=e.canvas,r=n.get("canvasDOM");r.style.cursor="default",e._enableTooltip(t)},e.reset=function(){var t=this,e=t.view,n=t.originScaleDefsByField,r=e.getYScales(),i=e.getXScale();r.push(i),r.forEach((function(t){if(t.isLinear){var r=t.field;e.scale(r,n[r])}})),e.repaint(),t._disableTooltip()},n}(o);t.exports=d},function(t,e,n){var r=n(0),i=n(52),a=n(72);t.exports=function(t){t.on("beforeinitgeoms",(function(){t.set("limitInPlot",!0);var e=t.get("data"),n=a(t);if(!n)return e;var o=t.get("geoms"),s=!1;r.each(o,(function(t){if(["area","line","path"].includes(t.get("type")))return s=!0,!1}));var u=[];if(r.each(n,(function(t,e){!s&&t&&(t.values||t.min||t.max)&&u.push(e)})),0===u.length)return e;var l=[];r.each(e,(function(t){var e=!0;r.each(u,(function(a){var o=t[a];if(o){var s=n[a];if("timeCat"===s.type){var u=s.values;r.isNumber(u[0])&&(o=i.toTimeStamp(o))}(s.values&&!s.values.includes(o)||s.min&&os.max)&&(e=!1)}})),e&&l.push(t)})),t.set("filteredData",l)}))}},function(t,e){t.exports=function(t,e,n){if(!t)return[0,1];var r=0,i=0;if("linear"===n){var a=e.min,o=e.max,s=o-a;r=(t.min-a)/s,i=(t.max-a)/s}else{var u=e,l=t.values,c=u.indexOf(l[0]),f=u.indexOf(l[l.length-1]);r=c/(u.length-1),i=f/(u.length-1)}return[r,i]}},function(t,e,n){var r=n(45),i=n(44),a=n(0),o={Base:n(28),Brush:n(317),Drag:n(319),ScrollBar:n(323),ShapeSelect:n(324),Slider:n(325),Zoom:n(326)};r._Interactions={},r.registerInteraction=function(t,e){r._Interactions[t]=e},r.getInteraction=function(t){return r._Interactions[t]},i.prototype.getInteractions=function(){var t=this;return t._interactions||(t._interactions={}),t._interactions},i.prototype._setInteraction=function(t,e){var n=this,r=n.getInteractions();r[t]&&r[t]!==e&&r[t].destroy(),r[t]=e},i.prototype.clearInteraction=function(t){var e=this,n=e.getInteractions();t?(n[t]&&(n[t]._reset(),n[t].destroy()),delete n[t]):a.each(n,(function(t,e){t._reset(),t.destroy(),delete n[e]}))},i.prototype.interact=i.prototype.interaction=function(t,e){var n=this,i=r.getInteraction(t),a=new i(e,n);return n._setInteraction(t,a),n},r.registerInteraction("brush",o.Brush),r.registerInteraction("Brush",o.Brush),r.registerInteraction("drag",o.Drag),r.registerInteraction("Drag",o.Drag),r.registerInteraction("zoom",o.Zoom),r.registerInteraction("Zoom",o.Zoom),r.registerInteraction("scroll-bar",o.ScrollBar),r.registerInteraction("ScrollBar",o.ScrollBar),r.registerInteraction("shape-select",o.ShapeSelect),r.registerInteraction("ShapeSelect",o.ShapeSelect),r.registerInteraction("slider",o.Slider),r.registerInteraction("Slider",o.Slider),t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(0),a=n(28),o=n(321),s=n(73),u="X",l=function(t){r(n,t);var e=n.prototype;function n(e,n){var r;r=t.call(this,e,n)||this;var a=r.getDefaultCfg();return n.set("_scrollBarCfg",i.deepMix({},a,e)),n.set("_limitRange",{}),n.get("_horizontalBar")||n.get("_verticalBar")||r._renderScrollBars(),r}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,type:u,xStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:0,offsetY:-10},yStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:8,offsetY:0}})},e._renderScrollBars=function(){var t=this.chart,e=t.get("_scrollBarCfg");if(e){var n=t.get("data"),r=t.get("plotRange");r.width=Math.abs(r.br.x-r.bl.x),r.height=Math.abs(r.tl.y-r.bl.y);var i=t.get("backPlot"),a=t.get("canvas"),u=a.get("height"),l=t.get("_limitRange"),c=e.type;if(c.indexOf("X")>-1){var f=e.xStyle,h=f.offsetX,d=f.offsetY,p=f.lineCap,g=f.backgroundColor,v=f.fillerColor,_=f.size,m=t.getXScale(),y=l[m.field];y||(y=s(n,m),l[m.field]=y);var x=o(m,y,m.type),b=t.get("_horizontalBar"),w=u-_/2+d;if(b){var M=b.get("children")[1];M.attr({x1:Math.max(r.bl.x+r.width*x[0]+h,r.bl.x),x2:Math.min(r.bl.x+r.width*x[1]+h,r.br.x)})}else b=i.addGroup({className:"horizontalBar"}),b.addShape("line",{attrs:{x1:r.bl.x+h,y1:w,x2:r.br.x+h,y2:w,lineWidth:_,stroke:g,lineCap:p}}),b.addShape("line",{attrs:{x1:Math.max(r.bl.x+r.width*x[0]+h,r.bl.x),y1:w,x2:Math.min(r.bl.x+r.width*x[1]+h,r.br.x),y2:w,lineWidth:_,stroke:v,lineCap:p}}),t.set("_horizontalBar",b)}if(c.indexOf("Y")>-1){var j=e.yStyle,E=j.offsetX,S=j.offsetY,P=j.lineCap,C=j.backgroundColor,O=j.fillerColor,k=j.size,T=t.getYScales()[0],A=l[T.field];A||(A=s(n,T),l[T.field]=A);var I=o(T,A,T.type),D=t.get("_verticalBar"),L=k/2+E;if(D){var R=D.get("children")[1];R.attr({y1:Math.max(r.tl.y+r.height*I[0]+S,r.tl.y),y2:Math.min(r.tl.y+r.height*I[1]+S,r.bl.y)})}else D=i.addGroup({className:"verticalBar"}),D.addShape("line",{attrs:{x1:L,y1:r.tl.y+S,x2:L,y2:r.bl.y+S,lineWidth:k,stroke:C,lineCap:P}}),D.addShape("line",{attrs:{x1:L,y1:Math.max(r.tl.y+r.height*I[0]+S,r.tl.y),x2:L,y2:Math.min(r.tl.y+r.height*I[1]+S,r.bl.y),lineWidth:k,stroke:O,lineCap:P}}),t.set("_verticalBar",D)}}},e._clear=function(){var t=this.chart;if(t){var e=t.get("_horizontalBar"),n=t.get("_verticalBar");e&&e.remove(!0),n&&n.remove(!0),t.set("_horizontalBar",null),t.set("_verticalBar",null)}},e._bindEvents=function(){this._onAfterclearOrBeforechangedata=this._onAfterclearOrBeforechangedata.bind(this),this._onAfterclearinner=this._onAfterclearinner.bind(this),this._onAfterdrawgeoms=this._onAfterdrawgeoms.bind(this);var t=this.chart;t.on("afterclear",this._onAfterclearOrBeforechangedata),t.on("beforechangedata",this._onAfterclearOrBeforechangedata),t.on("afterclearinner",this._onAfterclearinner),t.on("afterdrawgeoms",this._onAfterdrawgeoms)},e._onAfterclearOrBeforechangedata=function(){this.chart&&this.chart.set("_limitRange",{})},e._onAfterclearinner=function(){this._clear()},e._onAfterdrawgeoms=function(){this._renderScrollBars()},e._clearEvents=function(){var t=this.chart;t&&(t.off("afterclear",this._onAfterclearOrBeforechangedata),t.off("beforechangedata",this._onAfterclearOrBeforechangedata),t.off("afterclearinner",this._onAfterclearinner),t.off("afterdrawgeoms",this._onAfterdrawgeoms))},e.destroy=function(){this._clearEvents(),this._clear(),this.canvas.draw()},n}(a);t.exports=l},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(0),a=n(28);function o(t,e){var n={};for(var r in e)n[r]=t[r];return n}var s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{startEvent:"mouseup",processEvent:null,selectStyle:{fillOpacity:1},unSelectStyle:{fillOpacity:.1},cancelable:!0})},n.start=function(t){var e,n=this,r=n.view,a=[];if(r.eachShape((function(n,r){r.isPointInPath(t.x,t.y)?e=r:a.push(r)})),e)if(e.get("_selected")){if(!n.cancelable)return;n.reset()}else{var s=n.selectStyle,u=n.unSelectStyle,l=o(e.attr(),e);e.set("_originAttrs",l),e.attr(s),i.each(a,(function(t){var e=t.get("_originAttrs");e&&t.attr(e),t.set("_selected",!1),u&&(e=o(t.attr(),u),t.set("_originAttrs",e),t.attr(u))})),e.set("_selected",!0),n.selectedShape=e,n.canvas.draw()}else n.reset()},n.end=function(t){var e=this.selectedShape;e&&!e.get("destroyed")&&e.get("origin")&&(t.data=e.get("origin")._origin,t.shapeInfo=e.get("origin"),t.shape=e,t.selected=!!e.get("_selected"))},n.reset=function(){var t=this;if(t.selectedShape){var e=t.view,n=e.get("geoms")[0],r=n.get("container").get("children")[0],a=r.get("children");i.each(a,(function(t){var e=t.get("_originAttrs");e&&(t._attrs=e,t.set("_originAttrs",null)),t.set("_selected",!1)})),t.canvas.draw()}},e}(a);t.exports=s},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var a=n(318),o=n(44),s=n(0),u=n(16),l=n(5),c=n(28),f=n(71),h=n(72),d=u.Canvas,p=s.DomUtil,g=s.isNumber,v=function(t){i(n,t);var e=n.prototype;function n(e,n){var i;i=t.call(this,e,n)||this;var a=r(i);return a._initContainer(),a._initStyle(),a.render(),i}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return s.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,height:26,width:"auto",padding:l.plotCfg.padding,container:null,xAxis:null,yAxis:null,fillerStyle:{fill:"#BDCCED",fillOpacity:.3},backgroundStyle:{stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},range:[0,100],layout:"horizontal",textStyle:{fill:"#545454"},handleStyle:{img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},backgroundChart:{type:["area"],color:"#CCD6EC"}})},e._initContainer=function(){var t=this,e=t.container;if(!e)throw new Error("Please specify the container for the Slider!");s.isString(e)?t.domContainer=document.getElementById(e):t.domContainer=e},e.forceFit=function(){var t=this;if(t&&!t.destroyed){var e=p.getWidth(t.domContainer),n=t.height;if(e!==t.domWidth){var r=t.canvas;r.changeSize(e,n),t.bgChart&&t.bgChart.changeWidth(e),r.clear(),t._initWidth(),t._initSlider(),t._bindEvent(),r.draw()}}},e._initForceFitEvent=function(){var t=this,e=setTimeout(s.wrapBehavior(t,"forceFit"),200);clearTimeout(t.resizeTimer),t.resizeTimer=e},e._initStyle=function(){var t=this;t.handleStyle=s.mix({width:t.height,height:t.height},t.handleStyle),"auto"===t.width&&window.addEventListener("resize",s.wrapBehavior(t,"_initForceFitEvent"))},e._initWidth=function(){var t,e=this;t="auto"===e.width?p.getWidth(e.domContainer):e.width,e.domWidth=t;var n=s.toAllPadding(e.padding);"horizontal"===e.layout?(e.plotWidth=t-n[1]-n[3],e.plotPadding=n[3],e.plotHeight=e.height):"vertical"===e.layout&&(e.plotWidth=e.width,e.plotHeight=e.height-n[0]-n[2],e.plotPadding=n[0])},e._initCanvas=function(){var t=this,e=t.domWidth,n=t.height,r=new d({width:e,height:n,containerDOM:t.domContainer,capture:!1}),i=r.get("el");i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.zIndex=3,t.canvas=r},e._initBackground=function(){var t,e=this,n=this.chart,r=n.getAllGeoms[0],i=e.data=e.data||n.get("data"),a=n.getXScale(),u=e.xAxis||a.field,l=e.yAxis||n.getYScales()[0].field,c=s.deepMix((t={},t[""+u]={range:[0,1]},t),h(n),e.scales);if(delete c[u].min,delete c[u].max,!i)throw new Error("Please specify the data!");if(!u)throw new Error("Please specify the xAxis!");if(!l)throw new Error("Please specify the yAxis!");var f=e.backgroundChart,d=f.type||r.get("type"),p=f.color||"grey",g=f.shape;s.isArray(d)||(d=[d]);var v=s.toAllPadding(e.padding),_=new o({container:e.container,width:e.domWidth,height:e.height,padding:[0,v[1],0,v[3]],animate:!1});_.source(i),_.scale(c),_.axis(!1),_.tooltip(!1),_.legend(!1),s.each(d,(function(t,e){var n=_[t]().position(u+"*"+l).opacity(1),r=s.isArray(p)?p[e]:p;r&&(s.isObject(r)?r.field&&n.color(r.field,r.colors):n.color(r));var i=s.isArray(g)?g[e]:g;i&&(s.isObject(i)?i.field&&n.shape(i.field,i.callback||i.shapes):n.shape(i))})),_.render(),e.bgChart=_,e.scale="horizontal"===e.layout?_.getXScale():_.getYScales()[0],"vertical"===e.layout&&_.destroy()},e._initRange=function(){var t=this,e=t.startRadio,n=t.endRadio,r=t._startValue,i=t._endValue,a=t.scale,o=0,s=1;g(e)?o=e:r&&(o=a.scale(a.translate(r))),g(n)?s=n:i&&(s=a.scale(a.translate(i)));var u=t.minSpan,l=t.maxSpan,c=0;if("time"===a.type||"timeCat"===a.type){var f=a.values,h=f[0],d=f[f.length-1];c=d-h}else a.isLinear&&(c=a.max-a.min);c&&u&&(t.minRange=u/c*100),c&&l&&(t.maxRange=l/c*100);var p=[100*o,100*s];return t.range=p,p},e._getHandleValue=function(t){var e,n=this,r=n.range,i=r[0]/100,a=r[1]/100,o=n.scale;return e="min"===t?n._startValue?n._startValue:o.invert(i):n._endValue?n._endValue:o.invert(a),e},e._initSlider=function(){var t=this,e=t.canvas,n=t._initRange(),r=t.scale,i=e.addGroup(a,{middleAttr:t.fillerStyle,range:n,minRange:t.minRange,maxRange:t.maxRange,layout:t.layout,width:t.plotWidth,height:t.plotHeight,backgroundStyle:t.backgroundStyle,textStyle:t.textStyle,handleStyle:t.handleStyle,minText:r.getText(t._getHandleValue("min")),maxText:r.getText(t._getHandleValue("max"))});"horizontal"===t.layout?i.translate(t.plotPadding,0):"vertical"===t.layout&&i.translate(0,t.plotPadding),t.rangeElement=i},e._updateElement=function(t,e){var n=this,r=n.chart,i=n.scale,a=n.rangeElement,o=i.field,u=a.get("minTextElement"),l=a.get("maxTextElement"),c=i.invert(t),h=i.invert(e),d=i.getText(c),p=i.getText(h);u.attr("text",d),l.attr("text",p),n._startValue=d,n._endValue=p,n.onChange&&n.onChange({startText:d,endText:p,startValue:c,endValue:h,startRadio:t,endRadio:e}),r.scale(o,s.mix({},f(r,o),{nice:!1,min:c,max:h})),r.repaint()},e._bindEvent=function(){var t=this,e=t.rangeElement;e.on("sliderchange",(function(e){var n=e.range,r=n[0]/100,i=n[1]/100;t._updateElement(r,i)}))},e.clear=function(){var t=this;t.canvas.clear(),t.bgChart&&t.bgChart.destroy(),t.bgChart=null,t.scale=null,t.canvas.draw()},e.repaint=function(){var t=this;t.clear(),t.render()},e.render=function(){var t=this;t._initWidth(),t._initCanvas(),t._initBackground(),t._initSlider(),t._bindEvent(),t.canvas.draw()},e.destroy=function(){var t=this;clearTimeout(t.resizeTimer);var e=t.rangeElement;e.off("sliderchange"),t.bgChart&&t.bgChart.destroy(),t.canvas.destroy();var n=t.domContainer;while(n.hasChildNodes())n.removeChild(n.firstChild);window.removeEventListener("resize",s.getWrapBehavior(t,"_initForceFitEvent")),t.destroyed=!0},n}(c);t.exports=v},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var a=n(0),o=n(28),s=n(71),u=n(73),l=["X","Y","XY"],c="X",f=function(t){i(n,t);var e=n.prototype;function n(e,n){var i;i=t.call(this,e,n)||this;var o=r(i);o.chart=n,o.type=o.type.toUpperCase();var s=o.data=n.get("data"),f=n.getYScales(),h=n.getXScale();f.push(h);var d=n.get("scaleController");return f.forEach((function(t){var e=t.field,n=d.defs[e]||{};o.limitRange[e]=u(s,t),o.originScaleDefsByField[e]=a.mix(n,{nice:!!n.nice}),t.isLinear?o.stepByField[e]=(t.max-t.min)*o.stepRatio:o.stepByField[e]=o.catStep})),l.includes(o.type)||(o.type=c),i}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{processEvent:"mousewheel",type:c,stepRatio:.05,stepByField:{},minScale:1,maxScale:4,catStep:2,limitRange:{},originScaleDefsByField:{}})},e._applyScale=function(t,e,n,r){void 0===n&&(n=0);var i=this,o=i.chart,u=i.stepByField;if(t.isLinear){var l=t.min,c=t.max,f=t.field,h=1-n,d=u[f]*e,p=l+d*n,g=c-d*h;if(g>p){var v=s(o,f);o.scale(f,a.mix({},v,{nice:!1,min:p,max:g}))}}else{var _=t.field,m=t.values,y=i.chart,x=y.get("coord"),b=s(y,_),w=i.limitRange[_],M=w.length,j=i.maxScale,E=i.minScale,S=M/j,P=M/E,C=m.length,O=x.invertPoint(r),k=O.x,T=C-e*this.catStep,A=parseInt(T*k),I=T+A;if(e>0&&C>=S){var D=A,L=I;I>C&&(L=C-1,D=C-T);var R=m.slice(D,L);y.scale(_,a.mix({},b,{values:R}))}else if(e<0&&C<=P){var N=w.indexOf(m[0]),B=w.indexOf(m[C-1]),F=Math.max(0,N-A),z=Math.min(B+I,M),q=w.slice(F,z);y.scale(_,a.mix({},b,{values:q}))}}},e.process=function(t){var e=this,n=e.chart,r=e.type,i=n.get("coord"),a=t.deltaY,o=i.invertPoint(t);if(a){e.onZoom&&e.onZoom(a,o,e),a>0?e.onZoomin&&e.onZoomin(a,o,e):e.onZoomout&&e.onZoomout(a,o,e);var s=a/Math.abs(a);if(r.indexOf("X")>-1&&e._applyScale(n.getXScale(),s,o.x,t),r.indexOf("Y")>-1){var u=n.getYScales();u.forEach((function(n){e._applyScale(n,s,o.y,t)}))}}n.repaint()},e.reset=function(){var t=this,e=t.view,n=t.originScaleDefsByField,r=e.getYScales(),i=e.getXScale();r.push(i),r.forEach((function(t){if(t.isLinear){var r=t.field;e.scale(r,n[r])}})),e.repaint()},n}(o);t.exports=f},function(t,e,n){var r,i,a=n(0),o=n(131),s="g2-tooltip",u="g2-legend",l=a.deepMix({},o,{background:{fill:"#1F1F1F",radius:2},plotBackground:{fill:"#1F1F1F"},axis:{top:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},bottom:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},left:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},right:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},circle:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},radius:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},helix:{line:{stroke:"#737373"},tickLine:{stroke:"#737373"}}},label:{textStyle:{fill:"#A6A6A6"}},legend:{right:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},left:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},top:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},bottom:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},html:(r={},r[""+u]={color:"#D9D9D9"},r),gradient:{textStyle:{fill:"#D9D9D9"},lineStyle:{stroke:"#404040"}}},tooltip:(i={},i[""+s]={color:"#D9D9D9",backgroundColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0px 0px 2px #000"},i),tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#fff",opacity:.1}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(255, 255, 255, 0.45)"}},guide:{line:{text:{style:{fill:"#A6A6A6"}}},text:{style:{fill:"#A6A6A6"}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}}}});t.exports=l},function(t,e,n){var r=n(1),i=n(135),a=n(134),o=n(332),s=n(337),u=function t(e){t.superclass.constructor.call(this,e)};u.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},r.extend(u,a),r.augment(u,{init:function(){u.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n,r=this.getPointByClient(e.clientX,e.clientY),i=this.getShape(r.x,r.y,e),a=this.get("el");if("mousemove"===t){var o=this.get("preShape");if(o&&o!==i){var s=this._getEventObj("mouseleave",e,r,o);n=this.getEmitter(o,e),n&&n.emit("mouseleave",s),a.style.cursor="default"}if(i){var u=this._getEventObj("mousemove",e,r,i);if(n=this.getEmitter(i,e),n&&n.emit("mousemove",u),o!==i){var l=this._getEventObj("mouseenter",e,r,i);n&&n.emit("mouseenter",l,e)}}else{var c=this._getEventObj("mousemove",e,r,this);this.emit("mousemove",c)}this.set("preShape",i)}else{var f=this._getEventObj(t,e,r,i||this);n=this.getEmitter(i,e),n&&n!==this&&n.emit(t,f),this.emit(t,f)}i&&!i.get("destroyed")&&(a.style.cursor=i.attr("cursor")||"default")},_registEvents:function(){var t=this,e=t.get("el"),n=["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"];r.each(n,(function(n){e.addEventListener(n,(function(e){t._triggerEvent(n,e)}),!1)})),e.addEventListener("touchstart",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])}),!1),e.addEventListener("touchmove",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])}),!1),e.addEventListener("touchend",(function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])}),!1)},_scale:function(){var t=this.get("pixelRatio");this.scale(t,t)},_setGlobalParam:function(){var t=this.get("pixelRatio");t||this.set("pixelRatio",r.getRatio());var e=s[this.get("renderer")||"canvas"];this._cfg.renderer=e,this._cfg.canvas=this;var n=new o(this);this._cfg.timeline=n},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),r.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio"),e=this.get("width");return e*t},getHeight:function(){var t=this.get("pixelRatio"),e=this.get("height");return e*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByClient:function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=this.get("pixelRatio")||1;return{clientX:t/i+r.left,clientY:e/i+r.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):u.superclass.getShape.call(this,t,e)},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){var r=n(1),i={delay:"delay",rotate:"rotate"},a={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};function o(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}function s(t,e){var n={matrix:null,attrs:{}},o=e._attrs;for(var s in t)if("transform"===s)n.matrix=r.transform(e.getMatrix(),t[s]);else if("rotate"===s)n.matrix=r.transform(e.getMatrix(),[["r",t[s]]]);else if("matrix"===s)n.matrix=t[s];else{if(a[s]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[s]))continue;i[s]||o[s]===t[s]||(n.attrs[s]=t[s])}return n}function u(t,e){var n=e.delay,i=Object.prototype.hasOwnProperty;return r.each(e.toAttrs,(function(e,a){r.each(t,(function(t){n0?f=u(f,d):c.addAnimator(l),f.push(d),l.setSilent("animators",f),l.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");r.each(e,(function(e){t.attr(e.toAttrs),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this,e=t.get("timeline");return t.setSilent("pause",{isPaused:!0,pauseTime:e.getTime()}),t},resumeAnimate:function(){var t=this,e=t.get("timeline"),n=e.getTime(),i=t.get("animators"),a=t.get("pause").pauseTime;return r.each(i,(function(t){t.startTime=t.startTime+(n-a),t._paused=!1,t._pauseTime=null})),t.setSilent("pause",{isPaused:!1}),t.setSilent("animators",i),t}}},function(t,e,n){var r=n(1);t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(t)){for(var i in t)this._setAttr(i,t[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(t,e),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[t]},_setAttr:function(t,e){var n=this,r=this._attrs;r[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?n._setClip(e):"path"===t&&n._afterSetAttrPath?n._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&n.rotateAtStart(e):n.transform(e):r.globalAlpha=e:r[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},function(t,e,n){var r=n(1),i=n(76),a={arc:n(47),ellipse:n(143),line:n(48)},o=r.createDom(''),s=o.getContext("2d");function u(t,e,n){return n.createPath(s),s.isPointInPath(t,e)}var l=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=n.startAngle,u=n.endAngle,l=n.clockwise,c=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,a,o,s,u,l,c,t,e)},c=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),l=this.hasStroke();return u&&l?i.circle(r,a,o,t,e)||i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e):u?i.circle(r,a,o,t,e):!!l&&i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e)},f=function(t,e){var n=this._attrs,a=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,l=n.rx,c=n.ry,f=this.getHitLineWidth(),h=l>c?l:c,d=l>c?1:l/c,p=l>c?c/l:1,g=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[d,p]),r.mat3.translate(v,v,[s,u]);var _=r.mat3.invert([],v);return r.vec3.transformMat3(g,g,_),a&&o?i.circle(0,0,h,g[0],g[1])||i.arcline(0,0,h,0,2*Math.PI,!1,f,g[0],g[1]):a?i.circle(0,0,h,g[0],g[1]):!!o&&i.arcline(0,0,h,0,2*Math.PI,!1,f,g[0],g[1])},h=function(t,e){var n=this,o=n.hasFill(),s=n.hasStroke(),u=n._attrs,l=u.x,c=u.y,f=u.rs,h=u.re,d=u.startAngle,p=u.endAngle,g=u.clockwise,v=[1,0],_=[t-l,e-c],m=r.vec2.angleTo(v,_);function y(){var t=a.arc.nearAngle(m,d,p,g);if(r.isNumberEqual(m,t)){var e=r.vec2.squaredLength(_);if(f*f<=e&&e<=h*h)return!0}return!1}function x(){var r=n.getHitLineWidth(),a={x:Math.cos(d)*f+l,y:Math.sin(d)*f+c},o={x:Math.cos(d)*h+l,y:Math.sin(d)*h+c},s={x:Math.cos(p)*f+l,y:Math.sin(p)*f+c},u={x:Math.cos(p)*h+l,y:Math.sin(p)*h+c};return!!i.line(a.x,a.y,o.x,o.y,r,t,e)||(!!i.line(s.x,s.y,u.x,u.y,r,t,e)||(!!i.arcline(l,c,f,d,p,g,r,t,e)||!!i.arcline(l,c,h,d,p,g,r,t,e)))}return o&&s?y()||x():o?y():!!s&&x()},d=function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,a=n.y,o=n.width,s=n.height;return i.rect(r,a,o,s,t,e)},p=function(t,e){var n=this._attrs,r=n.x1,a=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,a,o,s,u,t,e)},g=function(t,e){var n=this,i=n.get("segments"),a=n.hasFill(),o=n.hasStroke();function s(){if(!r.isEmpty(i)){for(var a=n.getHitLineWidth(),o=0,s=i.length;o=3&&s.push(a[0]),i.polyline(s,o,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},_=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return i.circle(r,a,o+s/2,t,e)},m=function(t,e){var n=this,r=n._attrs;if(n.hasStroke()){var a=r.points;if(a.length<2)return!1;var o=r.lineWidth;return i.polyline(a,o,t,e)}return!1},y=function(t,e){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.x,o=r.y,s=r.width,u=r.height,l=r.radius,c=n.getHitLineWidth();if(0===l){var f=c/2;return i.line(a-f,o,a+s+f,o,c,t,e)||i.line(a+s,o-f,a+s,o+u+f,c,t,e)||i.line(a+s+f,o+u,a-f,o+u,c,t,e)||i.line(a,o+u+f,a,o-f,c,t,e)}return i.line(a+l,o,a+s-l,o,c,t,e)||i.line(a+s,o+l,a+s,o+u-l,c,t,e)||i.line(a+s-l,o+u,a+l,o+u,c,t,e)||i.line(a,o+u-l,a,o+l,c,t,e)||i.arcline(a+s-l,o+l,l,1.5*Math.PI,2*Math.PI,!1,c,t,e)||i.arcline(a+s-l,o+u-l,l,0,.5*Math.PI,!1,c,t,e)||i.arcline(a+l,o+u-l,l,.5*Math.PI,Math.PI,!1,c,t,e)||i.arcline(a+l,o+l,l,Math.PI,1.5*Math.PI,!1,c,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},x=function(t,e){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return i.box(r.minX,r.maxX,r.minY,r.maxY,t,e)},b=function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return i.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},w={arc:l,circle:c,dom:b,ellipse:f,fan:h,image:d,line:p,path:g,marker:_,polygon:v,polyline:m,rect:y,text:x};t.exports={isPointInPath:function(t,e){var n=w[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){var r=n(1),i=n(77),a=n(103),o=n(199),s=n(453),u=s.interpolate,l=s.interpolateArray,c=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};function f(t,e,n){var a={},o=e.toAttrs,s=e.fromAttrs,c=e.toMatrix;if(!t.get("destroyed")){var f;for(var h in o)if(!r.isEqual(s[h],o[h]))if("path"===h){var d=o[h],p=s[h];d.length>p.length?(d=i.parsePathString(o[h]),p=i.parsePathString(s[h]),p=i.fillPathByDiff(p,d),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d):e.pathFormatted||(d=i.parsePathString(o[h]),p=i.parsePathString(s[h]),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),a[h]=[];for(var g=0;g0){for(var s=r._animators.length-1;s>=0;s--)if(t=r._animators[s],t.get("destroyed"))i.removeAnimator(s);else{if(!t.get("pause").isPaused){e=t.get("animators");for(var u=e.length-1;u>=0;u--)n=e[u],o=h(t,n,a),o&&(e.splice(u,1),o=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(s)}r.canvas.draw()}}))},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach((function(t){t.stopAnimate()})),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=c},function(t,e,n){var r=n(1);function i(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function a(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function o(t,e){i(e)||(a(e)?(t[0]*=e[0],t[4]*=e[4]):r.mat3.multiply(t,t,e))}t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return r.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return r.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return r.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return r.each(t,(function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",r.mat3.multiply([],n,t[1])),e.clearTotalMatrix();break;default:break}})),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),r.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){var e=this;t=t||e;var n=e,i=[];while(n!==t)i.unshift(n),n=n.get("parent");i.unshift(n);var a=[1,0,0,0,1,0,0,0,1];return r.each(i,(function(t){r.mat3.multiply(a,t.attr("matrix"),a)})),a},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){var n=e.getTotalMatrix();o(t,n)}o(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(a(e))t[0]/=e[0],t[1]/=e[4];else{var n=r.mat3.invert([],e);n&&r.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){t.exports={painter:n(335)}},function(t,e,n){var r=n(1),i=n(336),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()})),e.beforeDraw();try{e._drawGroup(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i),e.toDraw=!1}e.toDraw=!1}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=this,n=t._cfg.children,r=null;this.setContext(t);for(var i=0;i-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,u=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c={};function f(t,e){var n=t.match(l);r.each(n,(function(t){t=t.split(":"),e.addColorStop(t[0],t[1])}))}function h(t,e,n){var i,a,s=o.exec(t),u=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),l=s[2],c=e.getBBox();u>=0&&u<.5*Math.PI?(i={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=u&&u1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return h(t,e,n);if("r"===t[0])return d(t,e,n);if("p"===t[0])return p(t,e,n)}return t}},numberToColor:function(t){var e=c[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,c[t]=e}return e}}},function(t,e,n){t.exports={canvas:n(334),svg:n(345)}},function(t,e,n){var r=n(1),i=n(341),a=n(343),o=n(339),s=n(340),u=n(342),l=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,r=null,i=0;i'})),n}function u(t,e){var n,a,o=i.exec(t),u=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),l=o[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=u&&u';e.innerHTML=n},t}();t.exports=o},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,r){var i=r.target||r.srcElement;if(!n[i.tagName]){var a=i.parentNode;while(a&&!n[a.tagName])a=a.parentNode;i=a}return this._cfg.el===i?this:this.find((function(t){return t._cfg&&t._cfg.el===i}))}},function(t,e,n){t.exports={painter:n(346),getShape:n(344)}},function(t,e,n){var r=n(1),i=n(37),a=i.parseRadius,o=n(74),s=n(338),u={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},l=.3,c={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",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"},f={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"},d=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new s(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()}));try{t.resetMatrix(),e._drawGroup(t,!1)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i),e.toDraw=!1}e.toDraw=!1}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this._drawChildren(t,!1)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(!n.el&&n.attrs&&(e=!0),n.tobeRemoved&&(r.each(n.tobeRemoved,(function(t){t.parentNode&&t.parentNode.removeChild(t)})),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t,e))},e._drawChildren=function(t,e){var n,r=this,i=t._cfg.children;if(i){if(t._cfg.el&&!e){var a=t._cfg.el.childNodes.length+1;0!==a&&a!==i.length&&(e=!0)}for(var o=0;os?1:0,h=Math.abs(u-s)>Math.PI?1:0,d=n.rs,p=n.re,g=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+c.x+","+c.y),o.push("L "+v.x+","+v.y),o.push("A "+d+","+d+",0,"+h+","+(1===f?0:1)+","+g.x+","+g.y),o.push("L "+l.x+" "+l.y)):(o.push("M "+a.x+","+a.y),o.push("L "+l.x+","+l.y)),o.push("A "+p+","+p+",0,"+h+","+f+","+c.x+","+c.y),n.rs>0?o.push("L "+v.x+","+v.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=this,n=t._attrs,r=t._cfg.attrs,i=t._cfg.el;for(var a in this._setFont(t),n)if(n[a]!==r[a]){if("text"===a){e._setText(t,""+n[a]);continue}if("fillStyle"===a||"strokeStyle"===a){this._setColor(t,a,n[a]);continue}if("matrix"===a){this._setTransform(t);continue}c[a]&&i.setAttribute(c[a],n[a])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",f[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",h[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,(function(t,e){0===e?"alphabetic"===i?u+=''+t+"":"top"===i?u+=''+t+"":"middle"===i?u+=''+t+"":"bottom"===i?u+=''+t+"":"hanging"===i&&(u+=''+t+""):u+=''+t+""})),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(c[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(c[e],"url(#"+o+")")}else r.setAttribute(c[e],n);else r.setAttribute(c[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}();t.exports=d},function(t,e,n){var r=n(7);r.Arc=n(136),r.Circle=n(137),r.Dom=n(138),r.Ellipse=n(139),r.Fan=n(140),r.Image=n(141),r.Line=n(142),r.Marker=n(74),r.Path=n(145),r.Polygon=n(146),r.Polyline=n(147),r.Rect=n(148),r.Text=n(149),t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=o,e.fromMat4=s,e.clone=u,e.copy=l,e.fromValues=c,e.set=f,e.identity=h,e.transpose=d,e.invert=p,e.adjoint=g,e.determinant=v,e.multiply=_,e.translate=m,e.rotate=y,e.scale=x,e.fromTranslation=b,e.fromRotation=w,e.fromScaling=M,e.fromMat2d=j,e.fromQuat=E,e.normalFromMat4=S,e.projection=P,e.str=C,e.frob=O,e.add=k,e.subtract=T,e.multiplyScalar=A,e.multiplyScalarAndAdd=I,e.exactEquals=D,e.equals=L;var r=n(78),i=a(r);function a(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}function o(){var t=new i.ARRAY_TYPE(9);return i.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function s(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}function u(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}function l(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}function c(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}function f(t,e,n,r,i,a,o,s,u,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t}function h(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}function d(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}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}function p(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],f=c*o-s*l,h=-c*a+s*u,d=l*a-o*u,p=n*f+r*h+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-c*r+i*l)*p,t[2]=(s*r-i*o)*p,t[3]=h*p,t[4]=(c*n-i*u)*p,t[5]=(-s*n+i*a)*p,t[6]=d*p,t[7]=(-l*n+r*u)*p,t[8]=(o*n-r*a)*p,t):null}function g(t,e){var n=e[0],r=e[1],i=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]=i*l-r*c,t[2]=r*s-i*o,t[3]=s*u-a*c,t[4]=n*c-i*u,t[5]=i*a-n*s,t[6]=a*l-o*u,t[7]=r*u-n*l,t[8]=n*o-r*a,t}function v(t){var e=t[0],n=t[1],r=t[2],i=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*i+o*s)+r*(u*i-a*s)}function _(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],f=e[8],h=n[0],d=n[1],p=n[2],g=n[3],v=n[4],_=n[5],m=n[6],y=n[7],x=n[8];return t[0]=h*r+d*o+p*l,t[1]=h*i+d*s+p*c,t[2]=h*a+d*u+p*f,t[3]=g*r+v*o+_*l,t[4]=g*i+v*s+_*c,t[5]=g*a+v*u+_*f,t[6]=m*r+y*o+x*l,t[7]=m*i+y*s+x*c,t[8]=m*a+y*u+x*f,t}function m(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],f=e[8],h=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=h*r+d*o+l,t[7]=h*i+d*s+c,t[8]=h*a+d*u+f,t}function y(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],f=e[8],h=Math.sin(n),d=Math.cos(n);return t[0]=d*r+h*o,t[1]=d*i+h*s,t[2]=d*a+h*u,t[3]=d*o-h*r,t[4]=d*s-h*i,t[5]=d*u-h*a,t[6]=l,t[7]=c,t[8]=f,t}function x(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function b(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}function w(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function M(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}function j(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}function E(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,c=r*o,f=r*s,h=i*o,d=i*s,p=i*u,g=a*o,v=a*s,_=a*u;return t[0]=1-f-p,t[3]=c-_,t[6]=h+v,t[1]=c+_,t[4]=1-l-p,t[7]=d-g,t[2]=h-v,t[5]=d+g,t[8]=1-l-f,t}function S(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],f=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],_=e[15],m=n*s-r*o,y=n*u-i*o,x=n*l-a*o,b=r*u-i*s,w=r*l-a*s,M=i*l-a*u,j=c*g-f*p,E=c*v-h*p,S=c*_-d*p,P=f*v-h*g,C=f*_-d*g,O=h*_-d*v,k=m*O-y*C+x*P+b*S-w*E+M*j;return k?(k=1/k,t[0]=(s*O-u*C+l*P)*k,t[1]=(u*S-o*O-l*E)*k,t[2]=(o*C-s*S+l*j)*k,t[3]=(i*C-r*O-a*P)*k,t[4]=(n*O-i*S+a*E)*k,t[5]=(r*S-n*C-a*j)*k,t[6]=(g*M-v*w+_*b)*k,t[7]=(v*x-p*M-_*y)*k,t[8]=(p*w-g*x+_*m)*k,t):null}function P(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}function C(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function O(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))}function k(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}function T(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}function A(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}function I(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function D(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]}function L(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],f=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],_=e[5],m=e[6],y=e[7],x=e[8];return Math.abs(n-h)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-d)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(a-p)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-g)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-v)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-_)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(l-m)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-y)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(f-x)<=i.EPSILON*Math.max(1,Math.abs(f),Math.abs(x))}e.mul=_,e.sub=T},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=o,e.clone=s,e.fromValues=u,e.copy=l,e.set=c,e.add=f,e.subtract=h,e.multiply=d,e.divide=p,e.ceil=g,e.floor=v,e.min=_,e.max=m,e.round=y,e.scale=x,e.scaleAndAdd=b,e.distance=w,e.squaredDistance=M,e.length=j,e.squaredLength=E,e.negate=S,e.inverse=P,e.normalize=C,e.dot=O,e.cross=k,e.lerp=T,e.random=A,e.transformMat2=I,e.transformMat2d=D,e.transformMat3=L,e.transformMat4=R,e.rotate=N,e.angle=B,e.str=F,e.exactEquals=z,e.equals=q;var r=n(78),i=a(r);function a(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}function o(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function s(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function u(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function l(t,e){return t[0]=e[0],t[1]=e[1],t}function c(t,e,n){return t[0]=e,t[1]=n,t}function f(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 d(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 g(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function v(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function _(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function x(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function j(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function E(t){var e=t[0],n=t[1];return e*e+n*n}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function C(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t}function O(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function T(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t}function A(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}function I(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function D(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function R(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function N(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t}function B(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function z(t,e){return t[0]===e[0]&&t[1]===e[1]}function q(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))}e.len=j,e.sub=h,e.mul=d,e.div=p,e.dist=w,e.sqrDist=M,e.sqrLen=E,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function O(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function T(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function A(t,e,n,r,i,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+r[0]*l+i[0]*c,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*c,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*c,t}function I(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,f=3*u*o,h=u*a;return t[0]=e[0]*l+n[0]*c+r[0]*f+i[0]*h,t[1]=e[1]*l+n[1]*c+r[1]*f+i[1]*h,t[2]=e[2]*l+n[2]*c+r[2]*f+i[2]*h,t}function D(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}function L(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function R(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function N(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],l=e[2],c=i*l-a*u,f=a*s-r*l,h=r*u-i*s,d=i*h-a*f,p=a*c-r*h,g=r*f-i*c,v=2*o;return c*=v,f*=v,h*=v,d*=2,p*=2,g*=2,t[0]=s+c+d,t[1]=u+f+p,t[2]=l+h+g,t}function B(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function F(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function z(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function q(t,e){var n=l(t[0],t[1],t[2]),r=l(e[0],e[1],e[2]);C(n,n),C(r,r);var i=O(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)}function G(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function W(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function U(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))}e.sub=d,e.mul=p,e.div=g,e.dist=M,e.sqrDist=j,e.len=u,e.sqrLen=E,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s0?e=0:n=0,n-e<5&&!f&&n-e>=1&&(f=1)),r(f)){var w=(n-e)/(y-1);f=a.snapFactorTo(w,b,"ceil"),g!==p&&(x=parseInt((n-e)/f,10),x>g&&(x=g),x_&&_>-1/0&&(null===M||eO))O=C,C=a.fixedBase(C+f,f);var k=null;while(j>e&&(null===k||jb&&(b=n);var E=b/j,S=c(y);if(E>.51){for(var P=Math.ceil(E),C=c(x),O=S;O<=C+P;O+=P)m.push(f(O));b=null}else if(E>.0834){for(var k=Math.ceil(E/.0834),T=h(y),A=d(y,x),I=0;I<=A+k;I+=k)m.push(p(S,I+T));b=null}else if(b>.5*M){var D=new Date(y),L=D.getFullYear(),R=D.getMonth(y),N=D.getDate(),B=Math.ceil(b/M),F=g(y,x);b=B*M;for(var z=0;zu){var q=new Date(y),G=q.getFullYear(),W=q.getMonth(y),U=q.getDate(),V=q.getHours(),Y=r.snapTo(o,Math.ceil(b/u)),H=v(y,x);b=Y*u;for(var X=0;X<=H+Y;X+=Y)m.push(new Date(G,W,U,V+X).getTime())}else if(b>s){var K=_(y,x),$=Math.ceil(b/s);b=$*s;for(var Z=0;Z<=K+$;Z+=$)m.push(y+Z*s)}else{b<1e3&&(b=1e3),y=1e3*Math.floor(y/1e3);var Q=Math.ceil((x-y)/1e3),J=Math.ceil(b/1e3);b=1e3*J;for(var tt=0;tt0)t=Math.floor(s(n,e.min));else{var a=e.values,o=e.max;i(a,(function(t){t>0&&t1&&(o=1),t=Math.floor(s(n,o)),e._minTick=t,e.positiveMin=o}for(var u=r-t,l=e.tickCount,c=Math.ceil(u/l),f=[],h=t;h=0?Math.floor(o(n,e.min)):0,t>r){var i=r;r=t,t=i}for(var a=r-t,s=e.tickCount,u=Math.ceil(a/s),l=[],c=t;c-1?i/(this.values.length-1):0,n+e*(r-n)},n.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var r=this.formatter;return e=parseInt(e,10),e=r?r(e):o.format(e,this.mask),e},n.getTicks=function(){var t=this,e=this.ticks,n=[];return l(e,(function(e){var r;r=f(e)?e:{text:h(e)?e:t.getText(e),value:t.scale(e),tickValue:e},n.push(r)})),n},n._toTimeStamp=function(t){return u.toTimeStamp(t)},e}(a);i.TimeCat=d,t.exports=d},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(222),a=n(2),o=n(6),s=n(15),u=n(26),l=n(51),c=n(352),f=n(52),h=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="time",this.mask="YYYY-MM-DD"},n.init=function(){var e=this,n=e.values;if(n&&n.length){var r=[],i=1/0,s=i,u=0;a(n,(function(t){var n=e._toTimeStamp(t);if(isNaN(n))throw new TypeError("Invalid Time: "+t);i>n?(s=i,i=n):s>n&&(s=n),u1&&(e.minTickInterval=s-i),(o(e.min)||e._toTimeStamp(e.min)>i)&&(e.min=i),(o(e.max)||e._toTimeStamp(e.max)1&&void 0!==arguments[1]?arguments[1]:[];return r(t,(function(t){return!i(e,t)}))};t.exports=a},function(t,e,n){var r=n(14),i=n(40),a=n(177);function o(t,e){var n=void 0;if(r(e)&&(n=e),i(e)&&(n=function(t){return a(t,e)}),n)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:[];if(r(e))for(var i=0;ie[r])return 1;if(t[r]1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}a(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){var r=n(4);t.exports=function(t){var e=0,n=0,i=0,a=0;return r(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}},function(t,e,n){var r=n(21),i=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a20&&(i=20),parseFloat(t.toFixed(i))};t.exports=n},function(t,e,n){var r=n(55);t.exports={clamp:n(84),fixedBase:n(389),isDecimal:n(391),isEven:n(392),isInteger:n(393),isNegative:n(394),isNumberEqual:r,isOdd:n(395),isPositive:n(396),maxBy:n(168),minBy:n(397),mod:n(169),snapEqual:r,toDegree:n(170),toInt:n(171),toInteger:n(171),toRadian:n(172)}},function(t,e,n){var r=n(11),i=function(t){return r(t)&&t%1!==0};t.exports=i},function(t,e,n){var r=n(11),i=function(t){return r(t)&&t%2===0};t.exports=i},function(t,e,n){var r=n(11),i=Number.isInteger?Number.isInteger:function(t){return r(t)&&t%1===0};t.exports=i},function(t,e,n){var r=n(11),i=function(t){return r(t)&&t<0};t.exports=i},function(t,e,n){var r=n(11),i=function(t){return r(t)&&t%2!==0};t.exports=i},function(t,e,n){var r=n(11),i=function(t){return r(t)&&t>0};t.exports=i},function(t,e,n){var r=n(4),i=n(14),a=n(2),o=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,(function(t){s=i(e)?e(t):t[e],s=0;h--)s=o[h].index,"add"===o[h].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}if(r=t.length,r=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]),e}));return f}function i(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(r(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)i.push(a)}return i}t.exports=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["Q"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],2)}t[a]=["C"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(i.length<2){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["S"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,n){var r=n(407),i=n(183),a=n(184),o=n(180);t.exports={catmullRom2Bezier:o,catmullRomToBezier:o,fillPath:n(403),fillPathByDiff:n(402),formatPath:n(404),intersection:r,pathIntersection:r,parsePathArray:n(181),parsePathString:n(182),pathToAbsolute:i,path2absolute:i,pathTocurve:a,path2curve:a,rectPath:n(185)}},function(t,e,n){var r=n(2);t.exports=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n}},function(t,e,n){var r=n(4),i=n(185),a=n(184),o=function(t,e,n,r,i){var a=-3*e+9*n-9*r+3*i,o=t*a+6*e-12*n+6*r;return t*o-3*e+3*n},s=function(t,e,n,r,i,a,s,u,l){null===l&&(l=1),l=l>1?1:l<0?0:l;for(var c=l/2,f=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g0&&d<1&&u.push(d)}else{var g=f*f-4*h*c,v=Math.sqrt(g);if(!(g<0)){var _=(-f+v)/(2*c);_>0&&_<1&&u.push(_);var m=(-f-v)/(2*c);m>0&&m<1&&u.push(m)}}var y=u.length,x=y,b=void 0;while(y--)d=u[y],b=1-d,l[0][y]=b*b*b*t+3*b*b*d*n+3*b*d*d*i+d*d*d*o,l[1][y]=b*b*b*e+3*b*b*d*r+3*b*d*d*a+d*d*d*s;return l[0][x]=t,l[1][x]=e,l[0][x+1]=o,l[1][x+1]=s,l[0].length=l[1].length=x+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},l=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var u=(t*r-e*n)*(i-o)-(t-n)*(i*s-a*o),l=(t*r-e*n)*(a-s)-(e-r)*(i*s-a*o),c=(t-n)*(a-s)-(e-r)*(i-o);if(c){var f=u/c,h=l/c,d=+f.toFixed(2),p=+h.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,o).toFixed(2)||d>+Math.max(i,o).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:f,y:h}}}},c=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},f=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:i(t,e,n,r),vb:[t,e,n,r].join(" ")}},h=function(t,e){return t=f(t),e=f(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.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},d=function(t,e,n,i,a,o,s,l){r(t)||(t=[t,e,n,i,a,o,s,l]);var c=u.apply(null,t);return f(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},p=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),f=Math.pow(l,2),h=u*u,d=h*u,p=c*t+3*f*u*n+3*l*u*u*i+d*o,g=c*e+3*f*u*r+3*l*u*u*a+d*s,v=t+2*u*(n-t)+h*(i-2*n+t),_=e+2*u*(r-e)+h*(a-2*r+e),m=n+2*u*(i-n)+h*(o-2*i+n),y=r+2*u*(a-r)+h*(s-2*a+r),x=l*t+u*n,b=l*e+u*r,w=l*i+u*o,M=l*a+u*s,j=90-180*Math.atan2(v-m,_-y)/Math.PI;return{x:p,y:g,m:{x:v,y:_},n:{x:m,y:y},start:{x:x,y:b},end:{x:w,y:M},alpha:j}},g=function(t,e,n){var r=d(t),i=d(e);if(!h(r,i))return n?0:[];for(var a=s.apply(0,t),o=s.apply(0,e),u=~~(a/8),c=~~(o/8),f=[],g=[],v={},_=n?0:[],m=0;m=0&&T<=1&&A>=0&&A<=1&&(n?_++:_.push({x:k.x,y:k.y,t1:T,t2:A}))}}return _},v=function(t,e,n){t=a(t),e=a(e);for(var r=void 0,i=void 0,o=void 0,s=void 0,u=void 0,l=void 0,c=void 0,f=void 0,h=void 0,d=void 0,p=n?0:[],v=0,_=t.length;v<_;v++){var m=t[v];if("M"===m[0])r=u=m[1],i=l=m[2];else{"C"===m[0]?(h=[r,i].concat(m.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,u,l,u,l],r=u,i=l);for(var y=0,x=e.length;ye?(r&&(clearTimeout(r),r=null),s=l,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,c)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}t.exports=n},function(t,e,n){var r=n(17),i={getType:n(190),isArray:n(4),isArrayLike:n(21),isBoolean:n(191),isFunction:n(14),isNil:n(6),isNull:n(417),isNumber:n(11),isObject:n(39),isObjectLike:n(86),isPlainObject:n(40),isPrototype:n(193),isType:r,isUndefined:n(419),isString:n(15),isRegExp:n(418),isDate:n(192),isArguments:n(415),isError:n(416)};t.exports=i},function(t,e,n){var r=n(17),i=function(t){return r(t,"Arguments")};t.exports=i},function(t,e,n){var r=n(17),i=function(t){return r(t,"Error")};t.exports=i},function(t,e){var n=function(t){return null===t};t.exports=n},function(t,e,n){var r=n(17),i=function(t){return r(t,"RegExp")};t.exports=i},function(t,e){var n=function(t){return void 0===t};t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24),i=a(r);function a(t){return t&&t.__esModule?t:{default:t}}e.default=i.default.generateBaseTypedComponent("Axis")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n=15.3.0");var p=function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),r(e,[{key:"render",value:function(){var t=this.props,e=t.width,n=t.height,r=t.placeholder;return a.default.createElement("div",{style:{width:e,height:n}},r)}}]),e}(a.default.PureComponent||a.default.Component);p.propTypes={width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number]),placeholder:s.default.node},p.defaultProps={width:"100%",placeholder:a.default.createElement("div",{style:{position:"relative",top:"48%",textAlign:"center"}},"\u6682\u65e0\u6570\u636e")},e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function m(t){var e=!0;return(null==t||0===t.length||t.rows&&0===t.rows.length)&&(e=!1),!!e}var y=function(t){function e(){var t,n,r,i;g(this,e);for(var a=arguments.length,s=Array(a),u=0;u` must be wrapped in ``"),this.id=this.context.createId(),this.context.addElement(this.name,this.id,this.props,this.context.getParentInfo(),this.context.getViewId())}}]),e}(s.default);p.contextTypes={addElement:l.default.func,updateElement:l.default.func,deleteElement:l.default.func,createId:l.default.func,getParentInfo:l.default.func,getViewId:l.default.func},p.childContextTypes={addElement:l.default.func,updateElement:l.default.func,deleteElement:l.default.func,createId:l.default.func,getParentInfo:l.default.func,getViewId:l.default.func},e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24),i=s(r),a=n(29),o=s(a);function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,"Legend"))}return c(e,t),e}(i.default);f.contextTypes={addElement:o.default.func,updateElement:o.default.func,deleteElement:o.default.func,createId:o.default.func,getParentInfo:o.default.func,getViewId:o.default.func},f.childContextTypes={addElement:o.default.func,updateElement:o.default.func,deleteElement:o.default.func,createId:o.default.func,getParentInfo:o.default.func,getViewId:o.default.func},f.defaultProps={visible:!0},e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24),i=a(r);function a(t){return t&&t.__esModule?t:{default:t}}e.default=i.default.generateBaseTypedComponent("Tooltip")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var v=o.default.COORD_FUNC_PROPS,_=o.default.GEOM_FUNC_PROPS,m={needRebuildChart:function(t){if(null==t.chart.props||null==t.chart.updateProps)return!1;var e=t.chart.props,n=t.chart.updateProps;return!(i.Util.shallowEqual(e.padding,n.padding)&&i.Util.shallowEqual(e.background,n.background)&&i.Util.shallowEqual(e.plotBackground,n.plotBackground)&&i.Util.shallowEqual(e.pixelRatio,n.pixelRatio))},needReExecute:function(t){var e=t.geoms;if(null==e)return!1;for(var n in e)if(e[n].props&&e[n].updateProps&&(e[n].props.type!==e[n].updateProps.type||e[n].props.color&&!e[n].updateProps.color||e[n].props.size&&!e[n].updateProps.size||e[n].props.shape&&!e[n].updateProps.shape))return!0;return!1},needRepaint:function(t){var e=t.chart,n=e.props.data,r=e.updateProps.data;return n===r},synchronizeG2Update:function(t,e){this.updateChart(t,e.chart),this.updateAxises(t,e.axises),this.updateTooltip(t,e),this.updateCoord(t,e),this.updateLegends(t,e.legends),this.updateGeoms(t,e.geoms),this.updateGuide(t,e.guide),this.updateFacet(t,e),this.updateViews(t,e)},updateChart:function(t,e){if(e){var n=e.props,r=e.updateProps,a=n.width,o=n.height,s=n.animate,u=n.data,l=n.scale,c=r.width,f=r.height,d=r.animate,p=r.data,g=r.scale;u!==p&&t.changeData(p),i.Util.shallowEqual(l,g)||(i.Util.isArray(g)?t.scale(g[0],g[1]):t.scale(g)),s!==d&&t.animate(d),a!==c&&o!==f?t.changeSize(c,f):a!==c?t.changeWidth(c):o!==f&&t.changeHeight(f),h.default.updateEvents(t,h.default.chartEvents,e.props,r),h.default.updateBaseEvents(t,e.updateProps,r)}},updateAxis:function(t,e){var n=e.props,r=n.name,a=n.visible,o=g(n,["name","visible"]),s=e.updateProps,u=(s.name,s.visible),l=g(s,["name","visible"]);a!==u&&t.axis(r,!!u),i.Util.shallowEqual(o,l)||t.axis(r,l)},updateAxises:function(t,e){if(e)for(var n in e)e[n]&&e[n].props&&e[n].updateProps&&this.updateAxis(t,e[n])},updateTooltip:function(t,e){if(e.tooltip){var n=e.tooltip.props,a=e.tooltip.updateProps;null==n&&null==a||i.Util.shallowEqual(n,a)||t.tooltip(r({},a))}},updateCoord:function(t,e){var n=e.coord;if(n){var r=n.props,a=n.updateProps;if(null!=r&&null!=a){var o=i.Util.without(a,v.concat(["type"]));if(!i.Util.shallowEqual(r,a)){var s=t.coord(a.type,o);n.g2Instance=s,i.Prop.init(v,a,(function(t,e){"reflect"===e?i.Util.each(t,(function(t){return s[e](t)})):"transpose"===e?!0===t[0]&&s[e].apply(s,p(t)):s[e].apply(s,p(t))}))}}}},updateLegend:function(t,e){var n=e.props,r=e.updateProps;if(r&&!i.Util.shallowEqual(n,r)){var a=r.name,o=r.visible,s=g(r,["name","visible"]),u=o?s:o;t.legend.apply(t,p(a?[a,u]:[u]))}},updateLegends:function(t,e){if(null!=e)for(var n in e)e[n]&&this.updateLegend(t,e[n])},updateLabel:function(t,e,n){if(null!=e&&null!=n){var r=e.content,a=g(e,["content"]),o=n.content,s=g(n,["content"]);i.Util.shallowEqual(a,s)&&i.Util.shallowEqual(r,o)||(i.Util.isArray(o)?t.label(o[0],o[1],s):t.label(o,s))}},updateGeom:function(t,e){var n=e.props,r=e.updateProps;if(n&&r&&n.type===r.type){var a=e.g2Instance;if(i.Util.shallowEqual(n,r))e.label&&this.updateLabel(a,e.label.props,e.label.updateProps);else{var o=n.adjust,s=g(n,["adjust"]),u=r.adjust,l=g(r,["adjust"]);(o||u)&&a.adjust(u),i.Prop.update(_,s,l,(function(t,e){a[e].apply(a,p(t))})),e.label&&this.updateLabel(a,e.label.props,e.label.updateProps)}}},updateGeoms:function(t,e){if(null==e)return!1;for(var n in e)e[n]&&this.updateGeom(t,e[n]);return!1},isTypedGuideChanged:function(t){return!i.Util.shallowEqual(t.props,t.updateProps)},updateGuide:function(t,e){if(e&&e.elements){var n=e.elements,r=!1;for(var i in n)if(n[i]&&(n[i].updateProps||this.isTypedGuideChanged(n[i]))){r=!0;break}r&&(c.default.mergeGuide(e,!0),t.guide().clear(),u.default.guide(t,e))}},updateView:function(t,e){if(e&&e.props&&e.updateProps&&"Facet"!==e.parentInfo.name){var n=e.g2Instance,r=e.props,a=e.updateProps,o=r.scale,s=r.data,u=r.animate,l=r.axis,c=r.filter,f=a.scale,h=a.animate,d=a.data,p=a.axis,g=a.filter;u!==h&&n.animate(h),s!==d&&n.changeData(d),i.Util.shallowEqual(o,f)||n.scale(f),i.Util.shallowEqual(c,g)||g.forEach((function(t){n.filter(t[0],t[1])})),l!==p&&n.axis(p),this.updateCoord(n,e),this.updateAxises(n,e.axises),this.updateGeoms(n,e.geoms),this.updateGuide(n,e.guide)}},updateViews:function(t,e){var n=e.views;if(n)for(var r in n){var i=n[r];i&&(i.needReExecute||this.needReExecute(i))?(u.default.synchronizeG2View(i.g2Instance,i),n[r].needReExecute=!1):this.updateView(t,i)}},updateFacet:function(t,e){var n=e.facet;if(n){var r=n.props,a=n.updateProps;if(null!=r&&null!=a){var o=r.type,s=g(r,["type"]),l=a.type,c=g(a,["type"]);o===l&&i.Util.shallowEqual(s,c)||(n.props=a,u.default.facet(t,e))}}}};e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var y=function(){function t(){m(this,t),this.config={},this.elementInfos={},this.added=!1,this.initedG2=!1,this.updated=!1,this.deleted=!1,this.deleteInfos={}}return i(t,[{key:"calUpdateFlag",value:function(t,e){var n=this.elementInfos[e].props,r=(n.children,_(n,["children"])),i=this.elementInfos[e].updateProps,a=(i.children,_(i,["children"]));if("Chart"===t||"View"===t){var o=r.data,s=_(r,["data"]),u=a.data,l=_(a,["data"]);o===u&&g.Util.isEqual(s,l)||(this.updated=!0)}else g.Util.isEqual(r,a)||(this.updated=!0)}},{key:"addElement",value:function(t,e,n,i,a){!this.chart&&this.initedG2||(this.added=!0,this.elementInfos[e]={id:e,viewId:a,parentInfo:i,name:t,props:r({},n)},i&&!this.elementInfos[i.id]&&(this.elementInfos[i.id]={id:i.id,name:i.name}),o.default.addElement(t,this.config,this.elementInfos[e]))}},{key:"updateElement",value:function(t,e,n){this.elementInfos[e].updateProps=r({},n),this.calUpdateFlag(t,e)}},{key:"deleteElement",value:function(t,e){this.chart&&(this.deleteInfos[e]=e,this.deleted=!0)}},{key:"createG2Instance",value:function(){var t=this.config,e=p.default.createChart(t,this.elementInfos);return p.default.executeChartConfig(e,t,this.elementInfos),p.default.synchronizeG2Add(e,t,this.elementInfos),e.render(),this.chart=e,this.initedG2=!0,this.resetStates(),e}},{key:"destory",value:function(){this.chart.destroy(),this.chart=null}},{key:"resetStates",value:function(){var t=this.elementInfos;for(var e in t)t[e].updateProps&&delete t[e].updateProps,this.deleteInfos[e]&&delete t[e];this.added=!1,this.updated=!1,this.deleteInfos={}}},{key:"reExecuteChart",value:function(){return this.chart.clear(),u.default.merge(this.config,this.deleteInfos,this.elementInfos,!0),p.default.executeChartConfig(this.chart,this.config,this.elementInfos),p.default.synchronizeG2Add(this.chart,this.config,this.elementInfos),this.chart.repaint(),this.resetStates(),this.chart}},{key:"batchedUpdate",value:function(){return null==this.chart?null:this.config.chart.props.forceUpdate||c.default.needRebuildChart(this.config)?(u.default.merge(this.config,this.deleteInfos,this.elementInfos,!0),this.chart.destroy(),this.chart="destroy",this.createG2Instance()):h.default.needReExecute(this.deleteInfos,this.elementInfos)||c.default.needReExecute(this.config)?(this.reExecuteChart(),this.chart):(this.deleted&&(h.default.synchronizeG2Delete(this.chart,this.config,this.deleteInfos,this.elementInfos),u.default.mergeDelete(this.config,this.deleteInfos,this.elementInfos)),this.added&&p.default.synchronizeG2Add(this.chart,this.config),this.updated&&c.default.synchronizeG2Update(this.chart,this.config),(this.added||this.deleted||this.updated)&&this.chart.repaint(),u.default.mergeUpdate(this.config,!1),this.resetStates(),this.chart)}}]),t}();e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(58),i=a(r);function a(t){return t&&t.__esModule?t:{default:t}}e.default={init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=arguments[2];i.default.each(t,(function(t){var r=e[t];void 0!==r&&(i.default.isArray(r)||(r=[r]),n(r,t))}))},update:function(t,e,n,r){var a=void 0,o=void 0;i.default.each(t,(function(t){a=e[t],o=n[t],i.default.shallowEqual(o,a)||(i.default.isArray(o)||(o=[o]),r(o,t))}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,n){"use strict";e["a"]=g;var r=n(90),i=n(89),a=n(198),o=-.14861,s=1.78277,u=-.29227,l=-.90649,c=1.97294,f=c*l,h=c*s,d=s*u-l*o;function p(t){if(t instanceof v)return new v(t.h,t.s,t.l,t.opacity);t instanceof i["a"]||(t=n.i(i["b"])(t));var e=t.r/255,r=t.g/255,o=t.b/255,s=(d*o+f*e-h*r)/(d+f-h),p=o-s,g=(c*(r-s)-u*p)/l,_=Math.sqrt(g*g+p*p)/(c*s*(1-s)),m=_?Math.atan2(g,p)*a["a"]-120:NaN;return new v(m<0?m+360:m,_,s,t.opacity)}function g(t,e,n,r){return 1===arguments.length?p(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}n.i(r["a"])(v,g,n.i(r["b"])(i["c"],{brighter:function(t){return t=null==t?i["d"]:Math.pow(i["d"],t),new v(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i["e"]:Math.pow(i["e"],t),new v(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*a["b"],e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),f=Math.sin(t);return new i["a"](255*(e+n*(o*r+s*f)),255*(e+n*(u*r+l*f)),255*(e+n*(c*r)),this.opacity)}}))},function(t,e,n){"use strict";e["b"]=g,e["a"]=w;var r=n(90),i=n(89),a=n(198),o=18,s=.96422,u=1,l=.82521,c=4/29,f=6/29,h=3*f*f,d=f*f*f;function p(t){if(t instanceof v)return new v(t.l,t.a,t.b,t.opacity);if(t instanceof M)return j(t);t instanceof i["a"]||(t=n.i(i["b"])(t));var e,r,a=x(t.r),o=x(t.g),c=x(t.b),f=_((.2225045*a+.7168786*o+.0606169*c)/u);return a===o&&o===c?e=r=f:(e=_((.4360747*a+.3850649*o+.1430804*c)/s),r=_((.0139322*a+.0971045*o+.7141733*c)/l)),new v(116*f-16,500*(e-f),200*(f-r),t.opacity)}function g(t,e,n,r){return 1===arguments.length?p(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function _(t){return t>d?Math.pow(t,1/3):t/h+c}function m(t){return t>f?t*t*t:h*(t-c)}function y(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function x(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function b(t){if(t instanceof M)return new M(t.h,t.c,t.l,t.opacity);if(t instanceof v||(t=p(t)),0===t.a&&0===t.b)return new M(NaN,0=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function s(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a180?e+=360:e-t>180&&(t+=360),s.push({i:i.push(o(i)+"rotate(",null,a)-2,x:n.i(r["a"])(t,e)})):e&&i.push(o(i)+"rotate("+e+a)}function l(t,e,i,s){t!==e?s.push({i:i.push(o(i)+"skewX(",null,a)-2,x:n.i(r["a"])(t,e)}):e&&i.push(o(i)+"skewX("+e+a)}function c(t,e,i,a,s,u){if(t!==i||e!==a){var l=s.push(o(s)+"scale(",null,",",null,")");u.push({i:l-4,x:n.i(r["a"])(t,i)},{i:l-2,x:n.i(r["a"])(e,a)})}else 1===i&&1===a||s.push(o(s)+"scale("+i+","+a+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),s(e.translateX,e.translateY,n.translateX,n.translateY,r,i),u(e.rotate,n.rotate,r,i),l(e.skewX,n.skewX,r,i),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,a=i.length;while(++n180?e+=360:e-t>180&&(t+=360),s.push({i:i.push(o(i)+"rotate(",null,a)-2,x:n.i(r["a"])(t,e)})):e&&i.push(o(i)+"rotate("+e+a)}function l(t,e,i,s){t!==e?s.push({i:i.push(o(i)+"skewX(",null,a)-2,x:n.i(r["a"])(t,e)}):e&&i.push(o(i)+"skewX("+e+a)}function c(t,e,i,a,s,u){if(t!==i||e!==a){var l=s.push(o(s)+"scale(",null,",",null,")");u.push({i:l-4,x:n.i(r["a"])(t,i)},{i:l-2,x:n.i(r["a"])(e,a)})}else 1===i&&1===a||s.push(o(s)+"scale("+i+","+a+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),s(e.translateX,e.translateY,n.translateX,n.translateY,r,i),u(e.rotate,n.rotate,r,i),l(e.skewX,n.skewX,r,i),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,a=i.length;while(++n=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e["a"]=function(t,e){var n=r(t+"");if(arguments.length<2){var a=i(this.node()),o=-1,s=n.length;while(++o=S&&(S=E+1);while(!(j=b[S])&&++S=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this}},function(t,e,n){"use strict";function r(t){return function(){delete this[t]}}function i(t,e){return function(){this[t]=e}}function a(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}e["a"]=function(t,e){return arguments.length>1?this.each((null==e?r:"function"===typeof e?a:i)(t,e)):this.node()[t]}},function(t,e,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}e["a"]=function(){return this.each(r)}},function(t,e,n){"use strict";function r(){var t=this.parentNode;t&&t.removeChild(this)}e["a"]=function(){return this.each(r)}},function(t,e,n){"use strict";var r=n(18),i=n(100);e["a"]=function(t){"function"!==typeof t&&(t=n.i(i["a"])(t));for(var e=this._groups,a=e.length,o=new Array(a),s=0;se?1:t>=e?0:NaN}e["a"]=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=i);for(var n=this._groups,a=n.length,o=new Array(a),s=0;si["d"]&&n.name===e)return new r["b"]([[t]],a,e,+o);return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n(516);var r=n(27);n.d(e,"transition",(function(){return r["a"]}));var i=n(514);n.d(e,"active",(function(){return i["a"]}));var a=n(220);n.d(e,"interrupt",(function(){return a["a"]}))},function(t,e,n){"use strict";var r=n(22),i=n(517),a=n(518);r["selection"].prototype.interrupt=i["a"],r["selection"].prototype.transition=a["a"]},function(t,e,n){"use strict";var r=n(220);e["a"]=function(t){return this.each((function(){n.i(r["a"])(this,t)}))}},function(t,e,n){"use strict";var r=n(27),i=n(13),a=n(199),o=n(103),s={time:null,delay:0,duration:250,ease:a["easeCubicInOut"]};function u(t,e){var r;while(!(r=t.__transition)||!(r=r[e]))if(!(t=t.parentNode))return s.time=n.i(o["now"])(),s;return r}e["a"]=function(t){var e,a;t instanceof r["b"]?(e=t._id,t=t._name):(e=n.i(r["c"])(),(a=s).time=n.i(o["now"])(),t=null==t?null:t+"");for(var l=this._groups,c=l.length,f=0;f=0&&(t=t.slice(0,e)),!t||"start"===t}))}function a(t,e,n){var a,o,s=i(e)?r["g"]:r["e"];return function(){var r=s(this,t),i=r.on;i!==a&&(o=(a=i).copy()).on(e,n),r.on=o}}e["a"]=function(t,e){var i=this._id;return arguments.length<2?n.i(r["f"])(this.node(),i).on.on(t):this.each(a(i,t,e))}},function(t,e,n){"use strict";function r(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}e["a"]=function(){return this.on("end.remove",r(this._id))}},function(t,e,n){"use strict";var r=n(22),i=n(27),a=n(13);e["a"]=function(t){var e=this._name,o=this._id;"function"!==typeof t&&(t=n.i(r["selector"])(t));for(var s=this._groups,u=s.length,l=new Array(u),c=0;c=e||n<0||h&&r>=o}function M(){var t=_();if(b(t))return j(t);u=setTimeout(M,x(t))}function j(t){return u=void 0,d&&i?p(t):(i=a=void 0,s)}function E(){void 0!==u&&clearTimeout(u),c=0,i=l=a=u=void 0}function S(){return void 0===u?s:j(_())}function P(){var t=_(),n=b(t);if(i=arguments,a=this,l=t,n){if(void 0===u)return m(l);if(h)return u=setTimeout(M,e),p(l)}return void 0===u&&(u=setTimeout(M,e)),s}return e=w(e)||0,y(r)&&(f=!!r.leading,h="maxWait"in r,o=h?g(w(r.maxWait)||0,e):o,d="trailing"in r?!!r.trailing:d),P.cancel=E,P.flush=S,P}function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function x(t){return!!t&&"object"==typeof t}function b(t){return"symbol"==typeof t||x(t)&&p.call(t)==i}function w(t){if("number"==typeof t)return t;if(b(t))return r;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=s.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):o.test(t)?r:+t}t.exports=m}).call(e,n(225))},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function s(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(a){return!1}}t.exports=s()?Object.assign:function(t,e){for(var n,s,u=o(t),l=1;l1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),l;function e(e,n,r,i,a){for(var o=e[n],s=0;s0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e,r=l.some((function(t){return!!~n.indexOf(t)}));r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),C="undefined"!==typeof WeakMap?new WeakMap:new n,O=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new P(e,n,this);C.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach((function(t){O.prototype[t]=function(){var e;return(e=C.get(this))[t].apply(e,arguments)}}));var k=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:O}();e["default"]=k}.call(e,n(225))},function(t,e,n){(function(t,r){r(e,n(22),n(515))})(0,(function(t,e,n){"use strict";var r=1e-10;function i(t,e){var n,i=o(t),l=i.filter((function(e){return a(e,t)})),c=0,h=0,d=[];if(l.length>1){var p=f(l);for(n=0;n-1){var b=t[_.parentIndex[x]],w=Math.atan2(_.x-b.x,_.y-b.y),M=Math.atan2(v.x-b.x,v.y-b.y),j=M-w;j<0&&(j+=2*Math.PI);var E=M-j/2,S=u(m,{x:b.x+b.radius*Math.sin(E),y:b.y+b.radius*Math.cos(E)});S>2*b.radius&&(S=2*b.radius),(null===y||y.width>S)&&(y={circle:b,width:S,p1:_,p2:v})}null!==y&&(d.push(y),c+=s(y.circle.radius,y.width),v=_)}}else{var P=t[0];for(n=1;nMath.abs(P.radius-t[n].radius)){C=!0;break}C?c=h=0:(c=P.radius*P.radius*Math.PI,d.push({circle:P,p1:{x:P.x,y:P.y+P.radius},p2:{x:P.x-r,y:P.y+P.radius},width:2*P.radius}))}return h/=2,e&&(e.area=c+h,e.arcArea=c,e.polygonArea=h,e.arcs=d,e.innerPoints=l,e.intersectionPoints=i),c+h}function a(t,e){for(var n=0;ne[n].radius+r)return!1;return!0}function o(t){for(var e=[],n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=t-(n*n-e*e+t*t)/(2*n),i=e-(n*n-t*t+e*e)/(2*n);return s(t,r)+s(e,i)}function c(t,e){var n=u(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=t.x+a*(e.x-t.x)/n,l=t.y+a*(e.y-t.y)/n,c=-(e.y-t.y)*(o/n),f=-(e.x-t.x)*(o/n);return[{x:s+c,y:l-f},{x:s-c,y:l+f}]}function f(t){for(var e={x:0,y:0},n=0;n0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===s)return n;for(var l=0;l=0&&(e=c),Math.abs(u)=p[d-1].fx){var C=!1;if(b.fx>P.fx?(m(w,1+f,x,-f,P),w.fx=t(w),w.fx=1)break;for(g=1;gs+a*i*u||l>=d)h=i;else{if(Math.abs(f)<=-o*u)return i;f*(h-c)>=0&&(h=c),c=i,d=l}return 0}i=i||1,a=a||1e-6,o=o||.1;for(var p=0;p<10;++p){if(m(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),f=g(r.fxprime,e),l>s+a*i*u||p&&l>=c)return d(h,i,c);if(Math.abs(f)<=-o*u)return i;if(f>=0)return d(i,h,l);c=l,h=i,i*=2}return i}function b(t,e,n){var r,i,a,o={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},u=e.slice(),l=1;n=n||{},a=n.maxIterations||20*e.length,o.fx=t(o.x,o.fxprime),r=o.fxprime.slice(),_(r,o.fxprime,-1);for(var c=0;ce})),e=0;e=Math.min(e[a].size,e[o].size)?c=1:t.size<=1e-10&&(c=-1),i[a][o]=i[o][a]=c})),{distances:r,constraints:i}}function P(t,e,n,r){var i,a=0;for(i=0;i0&&p<=f||h<0&&p>=f||(a+=2*g*g,e[2*i]+=4*g*(o-l),e[2*i+1]+=4*g*(s-c),e[2*u]+=4*g*(l-o),e[2*u+1]+=4*g*(c-s))}return a}function C(t,e){var n=k(t,e),r=e.lossFunction||T;if(t.length>=8){var i=O(t,e),a=r(i,t),o=r(n,t);a+1e-8=Math.min(i[f].size,i[h].size)&&(l=0),a[f].push({set:h,size:u.size,weight:l}),a[h].push({set:f,size:u.size,weight:l})}var d=[];for(n in a)if(a.hasOwnProperty(n)){var p=0;for(o=0;o0){var i=t[0].x,a=t[0].y;for(r=0;r1){var s,l,c=Math.atan2(t[1].x,t[1].y)-e,f=Math.cos(c),h=Math.sin(c);for(r=0;r2){var d=Math.atan2(t[2].x,t[2].y)-e;while(d<0)d+=2*Math.PI;while(d>2*Math.PI)d-=2*Math.PI;if(d>Math.PI){var p=t[1].y/(1e-10+t[1].x);for(r=0;r=h.length&&(d=0),e},g=w,v=T;function _(f){var h=f.datum(),d={};h.forEach((function(t){0==t.size&&1==t.sets.length&&(d[t.sets[0]]=1)})),h=h.filter((function(t){return!t.sets.some((function(t){return t in d}))}));var _={},m={};if(h.length>0){var y=g(h,{lossFunction:v});o&&(y=L(y,a,c)),_=R(y,t,n,r),m=G(_,h)}var x={};function b(t){return t.sets in x?x[t.sets]:1==t.sets.length?""+t.sets[0]:void 0}h.forEach((function(t){t.label&&(x[t.sets]=t.label)})),f.selectAll("svg").data([_]).enter().append("svg");var w=f.select("svg").attr("width",t).attr("height",n),M={},j=!1;w.selectAll(".venn-area path").each((function(t){var n=e.select(this).attr("d");1==t.sets.length&&n&&(j=!0,M[t.sets[0]]=V(n))}));var E=function(e){return function(r){var i=e.sets.map((function(e){var i=M[e],a=_[e];return i||(i={x:t/2,y:n/2,radius:1}),a||(a={x:t/2,y:n/2,radius:1}),{x:i.x*(1-r)+a.x*r,y:i.y*(1-r)+a.y*r,radius:i.radius*(1-r)+a.radius*r}}));return Y(i)}},S=w.selectAll(".venn-area").data(h,(function(t){return t.sets})),P=S.enter().append("g").attr("class",(function(t){return"venn-area venn-"+(1==t.sets.length?"circle":"intersection")})).attr("data-venn-sets",(function(t){return t.sets.join("_")})),C=P.append("path"),O=P.append("text").attr("class","label").text((function(t){return b(t)})).attr("text-anchor","middle").attr("dy",".35em").attr("x",t/2).attr("y",n/2);u&&(C.style("fill-opacity","0").filter((function(t){return 1==t.sets.length})).style("fill",(function(t){return p(t.sets)})).style("fill-opacity",".25"),O.style("fill",(function(t){return 1==t.sets.length?p(t.sets):"#444"})));var k=f;j?(k=f.transition("venn").duration(i),k.selectAll("path").attrTween("d",E)):k.selectAll("path").attr("d",(function(t){return Y(t.sets.map((function(t){return _[t]})))}));var T=k.selectAll("text").filter((function(t){return t.sets in m})).text((function(t){return b(t)})).attr("x",(function(t){return Math.floor(m[t.sets].x)})).attr("y",(function(t){return Math.floor(m[t.sets].y)}));s&&(j?"on"in T?T.on("end",B(_,b)):T.each("end",B(_,b)):T.each(B(_,b)));var A=S.exit().transition("venn").duration(i).remove();A.selectAll("path").attrTween("d",E);var I=A.selectAll("text").attr("x",t/2).attr("y",n/2);return null!==l&&(O.style("font-size","0px"),T.style("font-size",l),I.style("font-size","0px")),{circles:_,textCentres:m,nodes:S,enter:P,update:k,exit:A}}return _.wrap=function(t){return arguments.length?(s=t,_):s},_.width=function(e){return arguments.length?(t=e,_):t},_.height=function(t){return arguments.length?(n=t,_):n},_.padding=function(t){return arguments.length?(r=t,_):r},_.colours=function(t){return arguments.length?(p=t,_):p},_.fontSize=function(t){return arguments.length?(l=t,_):l},_.duration=function(t){return arguments.length?(i=t,_):i},_.layoutFunction=function(t){return arguments.length?(g=t,_):g},_.normalize=function(t){return arguments.length?(o=t,_):o},_.styled=function(t){return arguments.length?(u=t,_):u},_.orientation=function(t){return arguments.length?(a=t,_):a},_.orientationOrder=function(t){return arguments.length?(c=t,_):c},_.lossFunction=function(t){return arguments.length?(v=t,_):v},_}function B(t,n){return function(){var r,i=e.select(this),a=i.datum(),o=t[a.sets[0]].radius||50,s=n(a)||"",u=s.split(/\s+/).reverse(),l=3,c=(s.length+u.length)/l,f=u.pop(),h=[f],d=0,p=1.1,g=i.text(null).append("tspan").text(f);while(1){if(f=u.pop(),!f)break;h.push(f),r=h.join(" "),g.text(r),r.length>c&&g.node().getComputedTextLength()>o&&(h.pop(),g.text(h.join(" ")),h=[f],g=i.append("tspan").text(f),d++)}var v=.35-d*p/2,_=i.attr("x"),m=i.attr("y");i.selectAll("tspan").attr("x",_).attr("y",m).attr("dy",(function(t,e){return v+e*p+"em"}))}}function F(t,e,n){var r,i,a=e[0].radius-u(e[0],t);for(r=1;r=s&&(o=r[n],s=l)}var c=y((function(n){return-1*F({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,h={x:c[0],y:c[1]},d=!0;for(n=0;nt[n].radius){d=!1;break}for(n=0;n0&&console.log("WARNING: area "+a+" not represented on screen")}return n}function W(t,e){for(var n=q(t.selectAll("svg").datum()),r={},i=0;iu;a.push("\nA",u,u,0,l?1:0,1,s.p1.x,s.p1.y)}return a.join(" ")}t.intersectionArea=i,t.circleCircleIntersection=c,t.circleOverlap=l,t.circleArea=s,t.distance=u,t.venn=w,t.greedyLayout=k,t.scaleSolution=R,t.normalizeSolution=L,t.bestInitialLayout=C,t.lossFunction=T,t.disjointCluster=I,t.distanceFromIntersectArea=j,t.VennDiagram=N,t.wrapText=B,t.computeTextCentres=G,t.computeTextCentre=z,t.sortAreas=W,t.circlePath=U,t.circleFromPath=V,t.intersectionAreaPath=Y,Object.defineProperty(t,"__esModule",{value:!0})}))},function(t,e,n){"use strict";var r=function(){};r=function(t,e,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i