|
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[22,127,133,434],{"+YFz":function(t,e,n){"use strict";n.r(e);var r=n("q1tI"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},o=i,a=n("6VBw"),s=function(t,e){return r["createElement"](a["a"],Object.assign({},t,{ref:e,icon:o}))};s.displayName="InfoCircleOutlined";e["default"]=r["forwardRef"](s)},"0NbB":function(t,e,n){"use strict";n.r(e);var r=n("q1tI"),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},o=i,a=n("6VBw"),s=function(t,e){return r["createElement"](a["a"],Object.assign({},t,{ref:e,icon:o}))};s.displayName="CaretDownOutlined";e["default"]=r["forwardRef"](s)},"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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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;m.length>n;n+=1){var r=m[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),m=["width","height","padding","xAis","yAxis","start","end","fillerStyle","backgroundStyle","scales","textStyle","handleStyle","backgroundChart"],y=function(t){function e(){o(this,e);var t=a(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"]),o=t.data,a=i(t,["data"]);n!==o&&(this.slider.changeData(o),this.slider.repaint()),u(r,a)&&(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 o(this,e),a(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(y,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,o=i.Chart,a=i.Util,s=i.G,u=i.Global,l=s.Canvas,c=a.DomUtil,f=function(t){return"number"==typeof t};t.exports=function(){function t(t){this._initProps(),a.deepMix(this,t);var e=this.container;if(!e)throw Error("Please specify the container for the Slider!");this.domContainer=a.isString(e)?document.getElementById(e):e,this.handleStyle=a.mix({width:this.height,height:this.height},this.handleStyle),"auto"===this.width&&window.addEventListener("resize",a.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(a.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=a.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",a.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=a.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;a.isArray(u)||(u=[u]);var c=a.toAllPadding(this.padding),f=new o({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),a.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,o=0,a=1;f(t)?o=t:n&&(o=i.scale(i.translate(n))),f(e)?a=e:r&&(a=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*o,100*a];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"),o=r.get("maxTextElement"),a=n.invert(t),s=n.invert(e),u=n.getText(a),l=n.getText(s);i.attr("text",u),o.attr("text",l),this.start=u,this.end=l,this.onChange&&this.onChange({startText:u,endText:l,startValue:a,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,o=r.G,a=o.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,o=this.addGroup(),a=this.get("layout"),s=this.get("handleStyle"),u=s.img,l=s.width,c=s.height;if("horizontal"===a){var f=s.width;r="ew-resize",n=o.addShape("Image",{attrs:{x:-f/2,y:0,width:f,height:c,img:u,cursor:r}}),e=o.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=o.addShape("Image",{attrs:{x:0,y:-c/2,width:l,height:c,img:u,cursor:r}}),e=o.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),o},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"),o=this.get("height"),a=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");a.resetMatrix?(a.resetMatrix(),s.resetMatrix()):(a.initTransform(),s.initTransform()),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:o}),a.translate(n*i,0),s.translate(r*i,0)):(u.attr({x:0,y:o*(1-r),width:i,height:(r-n)*o}),a.translate(0,(1-n)*o),s.translate(0,(1-r)*o))},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,o=this.get("range"),a=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-a,d=h/n*100*c,p=this.get("minRange"),g=this.get("maxRange");o[1]>o[0]?(this._isElement(s,"minHandleElement")&&(o[0]=this._getRange(d,o[0]),p&&(o[1]-o[0]>p||this._limitRange(d,p,o)),g&&(g>o[1]-o[0]||this._limitRange(d,g,o))),this._isElement(s,"maxHandleElement")&&(o[1]=this._getRange(d,o[1]),p&&(o[1]-o[0]>p||this._limitRange(d,p,o)),g&&(g>o[1]-o[0]||this._limitRange(d,g,o)))):(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(o[0]=this._getRange(d,o[0]),o[1]=this._getRange(d,o[0])),this._isElement(s,"middleHandleElement")&&(r=u[1]-u[0],this._limitRange(d,r,o)),this.emit("sliderchange",{range:o}),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}(a)}])}))},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 o(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 a=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 o(e,t),a(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)}])}))},IzEo:function(t,e,n){"use strict";n("cIOH"),n("lnY3"),n("Znn+"),n("14J3"),n("jCWc")},Jssm:function(t,e,n){"use strict";var r=n("q1tI"),i=n("i8i4"),o=n("17x9"),a=n("fhzG");t.exports=a({displayName:"ReactFitText",propTypes:{children:o.element.isRequired,compressor:o.number,minFontSize:o.number,maxFontSize:o.number},getDefaultProps:function(){return{compressor:1,minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY}},componentDidMount:function(){window.addEventListener("resize",this._onBodyResize),this._onBodyResize()},componentWillUnmount:function(){window.removeEventListener("resize",this._onBodyResize)},componentDidUpdate:function(){this._onBodyResize()},_onBodyResize:function(){var t=i.findDOMNode(this),e=t.offsetWidth;t.style.fontSize=Math.max(Math.min(e/(10*this.props.compressor),parseFloat(this.props.maxFontSize)),parseFloat(this.props.minFontSize))+"px"},_renderChildren:function(){var t=this;return r.Children.map(this.props.children,(function(e){return r.cloneElement(e,{ref:function(e){return t._childRef=e}})}))},render:function(){return this._renderChildren()[0]}})},ZhIB:function(t,e,n){var r,i;(function(o,a){r=a,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={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function s(t,e){this._input=t,this._value=e}return t=function(n){var i,o,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(a.zeroFormat&&n===a.zeroFormat)i=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(o in r)if(l="function"===typeof r[o].regexps.unformat?r[o].regexps.unformat():r[o].regexps.unformat,l&&n.match(l)){u=r[o].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 o,a,s,u,l,c,f,h=i[t.options.currentLocale],d=!1,p=!1,g=0,v="",m=1e12,y=1e9,_=1e6,x=1e3,b="",w=!1;if(e=e||0,a=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")&&(o=n.match(/a(k|m|b|t)?/),o=!!o&&o[1],t._.includes(n," a")&&(v=" "),n=n.replace(new RegExp(v+"a[kmbt]?"),""),a>=m&&!o||"t"===o?(v+=h.abbreviations.trillion,e/=m):a<m&&a>=y&&!o||"b"===o?(v+=h.abbreviations.billion,e/=y):a<y&&a>=_&&!o||"m"===o?(v+=h.abbreviations.million,e/=_):(a<_&&a>=x&&!o||"k"===o)&&(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&&!o&&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.length<g)for(var j=g-s.length;j>0;j--)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,o=i[a.currentLocale],s=t,u={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&t===a.zeroFormat)n=0;else if(a.nullFormat&&t===a.nullFormat||!t.replace(/[^0-9]+/g,"").length)n=null;else{for(e in n=1,"."!==o.delimiters.decimal&&(t=t.replace(/\./g,"").replace(o.delimiters.decimal,".")),u)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[e]+"(?:\\)|(\\"+o.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,o=0;if(3===arguments.length)n=arguments[2];else{while(o<i&&!(o in r))o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=e(n,r[o],o,r));return n},multiplier:function(t){var e=t.toString().split(".");return e.length<2?1:Math.pow(10,e[1].length)},correctionFactor:function(){var t=Array.prototype.slice.call(arguments);return t.reduce((function(t,n){var r=e.multiplier(n);return t>r?t:r}),1)},toFixed:function(t,e,n,r){var i,o,a,s,u=t.toString().split("."),l=e-(r||0);return i=2===u.length?Math.min(Math.max(u[1].length,l),e):l,a=Math.pow(10,i),s=(n(t+"e+"+i)/a).toFixed(i),r>e-i&&(o=new RegExp("\\.?0{1,"+(r-(e-i))+"}$"),s=s.replace(o,"")),s}},t.options=a,t.formats=r,t.locales=i,t.locale=function(t){return t&&(a.currentLocale=t.toLowerCase()),a.currentLocale},t.localeData=function(t){if(!t)return i[a.currentLocale];if(t=t.toLowerCase(),!i[t])throw new Error("Unknown locale : "+t);return i[t]},t.reset=function(){for(var t in o)a[t]=o[t]},t.zeroFormat=function(t){a.zeroFormat="string"===typeof t?t:null},t.nullFormat=function(t){a.nullFormat="string"===typeof t?t:null},t.defaultFormat=function(t){a.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,o,a,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 o=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]===o))&&(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)&&(a=e.split(r),!(a.length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(u):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(u)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(u)&&!!a[1].match(/^\d+$/)))))},t.fn=s.prototype={clone:function(){return t(this)},format:function(e,n){var i,o,s,u=this._value,l=e||a.defaultFormat;if(n=n||Math.round,0===u&&null!==a.zeroFormat)o=a.zeroFormat;else if(null===u&&null!==a.nullFormat)o=a.nullFormat;else{for(i in r)if(l.match(r[i].regexps.format)){s=r[i].format;break}s=s||t._.numberToFormat,o=s(u,l,n)}return o},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 o=e.correctionFactor(t,n);return Math.round(t*o)*Math.round(n*o)/Math.round(o*o)}return this._value=e.reduce([this._value,t],n,1),this},divide:function(t){function n(t,n,r,i){var o=e.correctionFactor(t,n);return Math.round(t*o)/Math.round(n*o)}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,o=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,o+"BPS"),i=i.join("")):i=i+o+"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,o){var a,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&&r<l){f+=c.suffixes[s],u>0&&(r/=u);break}return a=t._.numberToFormat(r,i,o),a+f},unformat:function(r){var i,o,a=t._.stringToNumber(r);if(a){for(i=e.suffixes.length-1;i>=0;i--){if(t._.includes(r,e.suffixes[i])){o=Math.pow(e.base,i);break}if(t._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}a*=o||1}return a}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(e,n,r){var i,o,a,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),a=0;a<u.before.length;a++)switch(o=u.before[a],o){case"$":i=t._.insert(i,s.currency.symbol,a);break;case" ":i=t._.insert(i," ",a+s.currency.symbol.length-1);break}for(a=u.after.length-1;a>=0;a--)switch(o=u.after[a],o){case"$":i=a===u.after.length-1?i+s.currency.symbol:t._.insert(i,s.currency.symbol,-(u.after.length-(1+a)));break;case" ":i=a===u.after.length-1?i+" ":t._.insert(i," ",-(u.after.length-(1+a)+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,o="number"!==typeof e||t._.isNaN(e)?"0e+0":e.toExponential(),a=o.split("e");return n=n.replace(/e[\+|\-]{1}0/,""),i=t._.numberToFormat(Number(a[0]),n,r),i+"e"+a[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 o(e,n,r,i){var o=t._.correctionFactor(e,n),a=e*o*(n*o)/(o*o);return a}return i=t._.includes(e,"e-")?i*=-1:i,t._.reduce([r,Math.pow(10,i)],o,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,n,r){var i,o=t.locales[t.options.currentLocale],a=t._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=o.ordinal(e),i=t._.numberToFormat(e,n,r),i+a}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,n,r){var i,o=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,o+"%"),i=i.join("")):i=i+o+"%",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),o=Math.round(t-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},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),o=n("pVnL"),a=n.n(o),s=n("q1tI"),u=n("TSYQ"),l=n.n(u),c=n("BGR+"),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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},d=function(t){return s["createElement"](f["a"],null,(function(e){var n=e.getPrefixCls,r=t.prefixCls,o=t.className,u=t.hoverable,c=void 0===u||u,f=h(t,["prefixCls","className","hoverable"]),d=n("card",r),p=l()("".concat(d,"-grid"),o,i()({},"".concat(d,"-grid-hoverable"),c));return s["createElement"]("div",a()({},f,{className:p}))}))},p=d,g=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},v=function(t){return s["createElement"](f["a"],null,(function(e){var n=e.getPrefixCls,r=t.prefixCls,i=t.className,o=t.avatar,u=t.title,c=t.description,f=g(t,["prefixCls","className","avatar","title","description"]),h=n("card",r),d=l()("".concat(h,"-meta"),i),p=o?s["createElement"]("div",{className:"".concat(h,"-meta-avatar")},o):null,v=u?s["createElement"]("div",{className:"".concat(h,"-meta-title")},u):null,m=c?s["createElement"]("div",{className:"".concat(h,"-meta-description")},c):null,y=v||m?s["createElement"]("div",{className:"".concat(h,"-meta-detail")},v,m):null;return s["createElement"]("div",a()({},f,{className:d}),p,y)}))},m=v,y=n("ZTPi"),_=n("BMrR"),x=n("kPKH"),b=n("3Nzz"),w=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function j(t){var e=t.map((function(e,n){return s["createElement"]("li",{style:{width:"".concat(100/t.length,"%")},key:"action-".concat(n)},s["createElement"]("span",null,e))}));return e}var S=function(t){var e,n,r,o=s["useContext"](f["b"]),u=o.getPrefixCls,h=o.direction,d=s["useContext"](b["b"]),g=function(e){t.onTabChange&&t.onTabChange(e)},v=function(){var e;return s["Children"].forEach(t.children,(function(t){t&&t.type&&t.type===p&&(e=!0)})),e},m=t.prefixCls,S=t.className,M=t.extra,E=t.headStyle,P=void 0===E?{}:E,C=t.bodyStyle,k=void 0===C?{}:C,A=t.title,T=t.loading,O=t.bordered,I=void 0===O||O,R=t.size,D=t.type,L=t.cover,N=t.actions,F=t.tabList,B=t.children,z=t.activeTabKey,G=t.defaultActiveTabKey,q=t.tabBarExtraContent,V=t.hoverable,Y=t.tabProps,H=void 0===Y?{}:Y,W=w(t,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),U=u("card",m),X=0===k.padding||"0px"===k.padding?{padding:24}:void 0,Z=s["createElement"]("div",{className:"".concat(U,"-loading-block")}),$=s["createElement"]("div",{className:"".concat(U,"-loading-content"),style:X},s["createElement"](_["a"],{gutter:8},s["createElement"](x["a"],{span:22},Z)),s["createElement"](_["a"],{gutter:8},s["createElement"](x["a"],{span:8},Z),s["createElement"](x["a"],{span:15},Z)),s["createElement"](_["a"],{gutter:8},s["createElement"](x["a"],{span:6},Z),s["createElement"](x["a"],{span:18},Z)),s["createElement"](_["a"],{gutter:8},s["createElement"](x["a"],{span:13},Z),s["createElement"](x["a"],{span:9},Z)),s["createElement"](_["a"],{gutter:8},s["createElement"](x["a"],{span:4},Z),s["createElement"](x["a"],{span:3},Z),s["createElement"](x["a"],{span:16},Z))),Q=void 0!==z,K=a()(a()({},H),(e={},i()(e,Q?"activeKey":"defaultActiveKey",Q?z:G),i()(e,"tabBarExtraContent",q),e)),J=F&&F.length?s["createElement"](y["a"],a()({size:"large"},K,{className:"".concat(U,"-head-tabs"),onChange:g}),F.map((function(t){return s["createElement"](y["a"].TabPane,{tab:t.tab,disabled:t.disabled,key:t.key})}))):null;(A||M||J)&&(r=s["createElement"]("div",{className:"".concat(U,"-head"),style:P},s["createElement"]("div",{className:"".concat(U,"-head-wrapper")},A&&s["createElement"]("div",{className:"".concat(U,"-head-title")},A),M&&s["createElement"]("div",{className:"".concat(U,"-extra")},M)),J));var tt=L?s["createElement"]("div",{className:"".concat(U,"-cover")},L):null,et=s["createElement"]("div",{className:"".concat(U,"-body"),style:k},T?$:B),nt=N&&N.length?s["createElement"]("ul",{className:"".concat(U,"-actions")},j(N)):null,rt=Object(c["a"])(W,["onTabChange"]),it=R||d,ot=l()(U,S,(n={},i()(n,"".concat(U,"-loading"),T),i()(n,"".concat(U,"-bordered"),I),i()(n,"".concat(U,"-hoverable"),V),i()(n,"".concat(U,"-contain-grid"),v()),i()(n,"".concat(U,"-contain-tabs"),F&&F.length),i()(n,"".concat(U,"-").concat(it),it),i()(n,"".concat(U,"-type-").concat(D),!!D),i()(n,"".concat(U,"-rtl"),"rtl"===h),n));return s["createElement"]("div",a()({},rt,{className:ot}),r,tt,et,nt)};S.Grid=p,S.Meta=m;e["a"]=S},cQSq:function(t,e,n){(function(e,n){t.exports=n()})(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/index.ts")}({"./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js":function(t,e,n){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e,n){var r=n(7);t.exports={assign:r}},function(t,e,n){var r=n(3),i=function(){function t(t,e){void 0===e&&(e={});var n=this;n.options=e,n.rootNode=r(t,e)}var e=t.prototype;return e.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){var r=n(4),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=function(t){return o.indexOf(t)>-1},s=i[0];t.exports=function(t,e,n){var o=e.direction||s;if(e.isHorizontal=a(o),o&&-1===i.indexOf(o))throw new TypeError("Invalid direction: "+o);if(o===i[0])n(t,e);else if(o===i[1])n(t,e),t.right2left();else if(o===i[2])n(t,e);else if(o===i[3])n(t,e),t.bottom2top();else if(o===i[4]||o===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,o=2*i,a=i,s={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||a},getVGap:function(t){return t.vgap||a},getChildren:function(t){return t.children},getHeight:function(t){return t.height||o},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,o=new u(t,e),a=[o];if(!n&&!t.collapsed)while(i=a.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;f<c;f++){var h=new u(l[f],e);i.children[f]=h,a.push(h),h.parent=i,h.depth=i.depth+1}}return o}r.assign(u.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){var e,n=this,r=[n];while(e=r.pop())t(e),r=r.concat(e.children)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){var e,n=this,r=[n];while(e=r.shift())t(e),r=r.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e}))},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=l},function(t,e,n){var r=n(3);t.exports=function(t,e){for(var n=r(t.data,e,!0),i=r(t.data,e,!0),o=t.children.length,a=Math.round(o/2),s=e.getSide||function(t,e){return e<a?"right":"left"},u=0;u<o;u++){var l=t.children[u],c=s(l,u);"right"===c?i.children.push(l):n.children.push(l)}return n.eachNode((function(t){t.isRoot()||(t.side="left")})),i.eachNode((function(t){t.isRoot()||(t.side="right")})),{left:n,right:i}}},function(t,e,n){var r={compactBox:n(6),dendrogram:n(9),indented:n(11),mindmap:n(13)};t.exports=r},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),o=n(8),a=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 a(t.rootNode,t.options,o)},e}(i),l={};function c(t,e){return e=s.assign({},l,e),new u(t,e).execute()}t.exports=c},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){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){r(t,e,n)}))}function i(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(i(t,e),n)})),n}function o(t,e){var n=i(t,e);r(t,-n,e)}function a(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,r){a(t,e.children[r],n)}))}function s(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){s(t,e,n)}))}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var r=e.isHorizontal;function i(t){if(0!==t.cs){i(t.c[0]);for(var e=x(d(t.c[0].el),0,null),n=1;n<t.cs;++n){i(t.c[n]);var r=d(t.c[n].er);l(t,n,e),e=x(r,n,e)}v(t),u(t)}else u(t)}function u(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function l(t,e,n){var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;while(null!==r&&null!==o){d(r)>n.low&&(n=n.nxt);var s=i+r.prelim+r.w-(a+o.prelim);s>0&&(a+=s,c(t,e,n.index,s));var u=d(r),l=d(o);u<=l&&(r=h(r),null!==r&&(i+=r.mod)),u>=l&&(o=f(o),null!==o&&(a+=o.mod))}!r&&o?p(t,e,o,a):r&&!o&&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,y(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 o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,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 o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,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 m(t,e){e+=t.mod,t.x=t.prelim+e,_(t);for(var n=0;n<t.cs;n++)m(t.c[n],e)}function y(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}function _(t){for(var e=0,n=0,r=0;r<t.cs;r++)e+=t.c[r].shift,n+=e+t.c[r].change,t.c[r].mod+=n}function x(t,e,n){while(null!==n&&t>=n.low)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var b=n.fromNode(t,r);return i(b),m(b,0),a(b,t,r),o(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),o=n(10),a=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,a(t.rootNode,t.options,o)},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 o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function a(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){a(t,e.children[r],n)}))}t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,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),a(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),o=n(12),a=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])o(n,r);else if(i===u[1])o(n,r),n.right2left();else if(i===u[2]){var s=a(n,e),c=s.left,f=s.right;o(c,r),c.right2left(),o(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),o=n(14),a=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 a(t.rootNode,t.options,o)},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 o(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){o(t)}));var r=e[0],i=e[n-1],a=i.y-r.y+i.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),a>t.height)t.y=r.y+a/2-t.height/2;else if(1!==e.length||t.height>s){var u=t.y+(t.height-a)/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 a={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,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;i<n;i++){var o=e[i];o.startY=e[i-1].startY+e[i-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2}}}})),o(t)}}])}))},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/augment.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/mix.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];i.default(a)&&(a=a.prototype),r.default(n.prototype,a)}};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/cache.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clamp.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e,n){return t<e?e:t>n?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,o=e.length;i<o;i++)"object"===typeof e[i]&&null!=e[i]?n[i]=t(e[i]):n[i]=e[i]}else for(var a in n={},e)"object"===typeof e[a]&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a];return n};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/contains.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=function(t,e){return!!r.default(t)&&t.indexOf(e)>-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,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}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"),o=5;function a(t,e,n,s){for(var u in n=n||0,s=s||o,e)if(e.hasOwnProperty(u)){var l=e[u];null!==l&&i.default(l)?(i.default(t[u])||(t[u]={}),n<s?a(t[u],l,n+1,s):t[u]=e[u]):r.default(l)?(t[u]=[],t[u]=t[u].concat(l)):void 0!==l&&(t[u]=l)}}var s=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)a(t,e[r]);return t};e.default=s},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/difference.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/filter.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/contains.js"),o=function(t,e){return void 0===e&&(e=[]),r.default(t,(function(t){return!i.default(e,t)}))};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.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-object.js");function o(t,e){var n;if(t)if(r.default(t)){for(var o=0,a=t.length;o<a;o++)if(n=e(t[o],o),!1===n)break}else if(i.default(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/ends-with.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-string.js");function o(t,e){return!(!r.default(t)&&!i.default(t))&&t[t.length-1]===e}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/every.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/extend.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/mix.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),o=function(t,e,n,o){i.default(e)||(n=e,e=t,t=function(){});var a=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=a(e.prototype,t);return t.prototype=r.default(s,t.prototype),t.superclass=a(e.prototype,e),r.default(s,n),r.default(t,o),t};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/filter.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"),o=function(t,e){if(!i.default(t))return t;var n=[];return r.default(t,(function(t,r){e(t,r)&&n.push(t)})),n};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/find-index.js":function(t,e,n){"use strict";function r(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/find.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"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-match.js"),o=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");function s(t,e){if(!o.default(t))return null;var n;if(r.default(e)&&(n=e),a.default(e)&&(n=function(t){return i.default(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}e.default=s},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/first-value.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-array.js"),o=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o],s=a[e];if(!r.default(s)){n=i.default(s)?s[0]:s;break}}return n};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/fixed-base.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(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;i<e.length;i+=1)t(e[i],n);else n.push(e);return n};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten.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){if(!r.default(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/for-in.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");e.default=r.default},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-range.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/filter.js"),o=function(t){if(t=i.default(t,(function(t){return!isNaN(t)})),!t.length)return{min:0,max:0};if(r.default(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var o=Math.max.apply(null,t),a=Math.min.apply(null,t);return{min:a,max:o}};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-type.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString,i=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-wrap-behavior.js":function(t,e,n){"use strict";function r(t,e){return t["_wrap_"+e]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get.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-string.js");e.default=function(t,e,n){var i=0,o=r.default(e)?e.split("."):e;while(t&&i<o.length)t=t[o[i++]];return void 0===t||i<o.length?n:t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-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"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),a=Object.prototype.hasOwnProperty;function s(t,e){if(!e||!i.default(t))return{};var n,s={},u=o.default(e)?e:function(t){return t[e]};return r.default(t,(function(t){n=u(t),a.call(s,n)?s[n].push(t):s[n]=[t]})),s}e.default=s},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-to-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/is-array.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-by.js"),a=function(t,e){if(!e)return{0:t};if(!i.default(e)){var n=r.default(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}var a=o.default(t,e);return a};e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group.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/group-to-map.js");e.default=function(t,e){if(!e)return[t];var n=r.default(t,e),i=[];for(var o in n)i.push(n[o]);return i}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-key.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/has.js");e.default=r.default},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-value.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/contains.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/values.js");e.default=function(t,e){return r.default(i.default(t),e)}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.hasOwnProperty(e)}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/head.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))return t[0]}e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/identity.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index-of.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=function(t,e){if(!r.default(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.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/contains.js");e.contains=r.default,e.includes=r.default;var i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/difference.js");e.difference=i.default;var o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/find.js");e.find=o.default;var a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/find-index.js");e.findIndex=a.default;var s=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/first-value.js");e.firstValue=s.default;var u=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten.js");e.flatten=u.default;var l=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten-deep.js");e.flattenDeep=l.default;var c=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-range.js");e.getRange=c.default;var f=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull.js");e.pull=f.default;var h=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull-at.js");e.pullAt=h.default;var d=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/reduce.js");e.reduce=d.default;var p=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/remove.js");e.remove=p.default;var g=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/sort-by.js");e.sortBy=g.default;var v=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/union.js");e.union=v.default;var m=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/uniq.js");e.uniq=m.default;var y=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/values-of-key.js");e.valuesOfKey=y.default;var _=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/head.js");e.head=_.default;var x=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/last.js");e.last=x.default;var b=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/starts-with.js");e.startsWith=b.default;var w=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/ends-with.js");e.endsWith=w.default;var j=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/filter.js");e.filter=j.default;var S=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/every.js");e.every=S.default;var M=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/some.js");e.some=M.default;var E=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/group.js");e.group=E.default;var P=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-by.js");e.groupBy=P.default;var C=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-to-map.js");e.groupToMap=C.default;var k=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-wrap-behavior.js");e.getWrapBehavior=k.default;var A=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/wrap-behavior.js");e.wrapBehavior=A.default;var T=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/number2color.js");e.number2color=T.default;var O=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/parse-radius.js");e.parseRadius=O.default;var I=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/clamp.js");e.clamp=I.default;var R=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/fixed-base.js");e.fixedBase=R.default;var D=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-decimal.js");e.isDecimal=D.default;var L=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-even.js");e.isEven=L.default;var N=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-integer.js");e.isInteger=N.default;var F=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-negative.js");e.isNegative=F.default;var B=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number-equal.js");e.isNumberEqual=B.default;var z=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-odd.js");e.isOdd=z.default;var G=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-positive.js");e.isPositive=G.default;var q=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/max-by.js");e.maxBy=q.default;var V=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/min-by.js");e.minBy=V.default;var Y=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/mod.js");e.mod=Y.default;var H=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-degree.js");e.toDegree=H.default;var W=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-integer.js");e.toInteger=W.default;var U=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-radian.js");e.toRadian=U.default;var X=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/for-in.js");e.forIn=X.default;var Z=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/has.js");e.has=Z.default;var $=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-key.js");e.hasKey=$.default;var Q=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-value.js");e.hasValue=Q.default;var K=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/keys.js");e.keys=K.default;var J=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-match.js");e.isMatch=J.default;var tt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/values.js");e.values=tt.default;var et=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-case.js");e.lowerCase=et.default;var nt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-first.js");e.lowerFirst=nt.default;var rt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/substitute.js");e.substitute=rt.default;var it=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-case.js");e.upperCase=it.default;var ot=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-first.js");e.upperFirst=ot.default;var at=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-type.js");e.getType=at.default;var st=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-arguments.js");e.isArguments=st.default;var ut=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js");e.isArray=ut.default;var lt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");e.isArrayLike=lt.default;var ct=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-boolean.js");e.isBoolean=ct.default;var ft=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-date.js");e.isDate=ft.default;var ht=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-error.js");e.isError=ht.default;var dt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.isFunction=dt.default;var pt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-finite.js");e.isFinite=pt.default;var gt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js");e.isNil=gt.default;var vt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-null.js");e.isNull=vt.default;var mt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js");e.isNumber=mt.default;var yt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js");e.isObject=yt.default;var _t=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object-like.js");e.isObjectLike=_t.default;var xt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js");e.isPlainObject=xt.default;var bt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-prototype.js");e.isPrototype=bt.default;var wt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-reg-exp.js");e.isRegExp=wt.default;var jt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js");e.isString=jt.default;var St=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js");e.isType=St.default;var Mt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-undefined.js");e.isUndefined=Mt.default;var Et=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-element.js");e.isElement=Et.default;var Pt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/request-animation-frame.js");e.requestAnimationFrame=Pt.default;var Ct=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/clear-animation-frame.js");e.clearAnimationFrame=Ct.default;var kt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/augment.js");e.augment=kt.default;var At=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/clone.js");e.clone=At.default;var Tt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/debounce.js");e.debounce=Tt.default;var Ot=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/memoize.js");e.memoize=Ot.default;var It=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/deep-mix.js");e.deepMix=It.default;var Rt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js");e.each=Rt.default;var Dt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/extend.js");e.extend=Dt.default;var Lt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index-of.js");e.indexOf=Lt.default;var Nt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-empty.js");e.isEmpty=Nt.default;var Ft=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal.js");e.isEqual=Ft.default;var Bt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal-with.js");e.isEqualWith=Bt.default;var zt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/map.js");e.map=zt.default;var Gt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/map-values.js");e.mapValues=Gt.default;var qt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/mix.js");e.mix=qt.default,e.assign=qt.default;var Vt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/get.js");e.get=Vt.default;var Yt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/set.js");e.set=Yt.default;var Ht=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/pick.js");e.pick=Ht.default;var Wt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/throttle.js");e.throttle=Wt.default;var Ut=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-array.js");e.toArray=Ut.default;var Xt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js");e.toString=Xt.default;var Zt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/unique-id.js");e.uniqueId=Zt.default;var $t=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/noop.js");e.noop=$t.default;var Qt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/identity.js");e.identity=Qt.default;var Kt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/size.js");e.size=Kt.default;var Jt=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/cache.js");e.Cache=Jt.default},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-arguments.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,"Arguments")};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-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-type.js");e.default=function(t){return Array.isArray?Array.isArray(t):r.default(t,"Array")}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-boolean.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,"Boolean")};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-date.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,"Date")};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-decimal.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-number.js"),i=function(t){return r.default(t)&&t%1!==0};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-element.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t instanceof Element||t instanceof HTMLDocument};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-empty.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-array-like.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-type.js"),a=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-prototype.js"),s=Object.prototype.hasOwnProperty;function u(t){if(r.default(t))return!0;if(i.default(t))return!t.length;var e=o.default(t);if("Map"===e||"Set"===e)return!t.size;if(a.default(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}e.default=u},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal-with.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"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal.js");e.default=function(t,e,n){return r.default(n)?!!n(t,e):i.default(t,e)}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal.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-object-like.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js"),a=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(o.default(e)||o.default(n))return!1;if(i.default(e)||i.default(n)){if(e.length!==n.length)return!1;for(var a=!0,s=0;s<e.length;s++)if(a=t(e[s],n[s]),!a)break;return a}if(r.default(e)||r.default(n)){var u=Object.keys(e),l=Object.keys(n);if(u.length!==l.length)return!1;for(a=!0,s=0;s<u.length;s++)if(a=t(e[u[s]],n[u[s]]),!a)break;return a}return!1};e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-error.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,"Error")};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-even.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-number.js"),i=function(t){return r.default(t)&&t%2===0};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-finite.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-number.js");function i(t){return r.default(t)&&isFinite(t)}e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.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,"Function")}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-integer.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-number.js"),i=Number.isInteger?Number.isInteger:function(t){return r.default(t)&&t%1===0};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-match.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/keys.js");function o(t,e){var n=i.default(e),o=n.length;if(r.default(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-negative.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-number.js"),i=function(t){return r.default(t)&&t<0};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return null===t||void 0===t};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-null.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return null===t};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number-equal.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=1e-5;function i(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)<n}e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.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,"Number")};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object-like.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return"object"===typeof t&&null!==t};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-odd.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-number.js"),i=function(t){return r.default(t)&&t%2!==0};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.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-object-like.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js"),o=function(t){if(!r.default(t)||!i.default(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};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-positive.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-number.js"),i=function(t){return r.default(t)&&t>0};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"),o=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=o},"./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"),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);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"),o=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=o},"./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"),o=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,a,s=t[0];return n=o.default(e)?e(t[0]):t[0][e],r.default(t,(function(t){a=o.default(e)?e(t):t[e],a>n&&(s=t,n=a)})),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<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/min-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"),o=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,a,s=t[0];return n=o.default(e)?e(t[0]):t[0][e],r.default(t,(function(t){a=o.default(e)?e(t):t[e],a<n&&(s=t,n=a)})),s}}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/mix.js":function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/mod.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){return(t%e+e)%e};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/noop.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/number2color.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};function i(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/parse-radius.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");function i(t){var e=0,n=0,i=0,o=0;return r.default(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pick.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-plain-object.js"),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!i.default(t))return{};var n={};return r.default(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull-at.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=Array.prototype.splice,o=function(t,e){if(!r.default(t))return[];var n=t?e.length:0,o=n-1;while(n--){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Array.prototype,i=r.splice,o=r.indexOf,a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var a=e[r],s=-1;while((s=o.call(t,a))>-1)i.call(t,s,1)}return t};e.default=a},"./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"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js"),a=function(t,e,n){if(!i.default(t)&&!o.default(t))return t;var a=n;return r.default(t,(function(t,n){a=e(a,t,n)})),a};e.default=a},"./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"),o=function(t,e){var n=[];if(!r.default(t))return n;var o=-1,a=[],s=t.length;while(++o<s){var u=t[o];e(u,o,t)&&(n.push(u),a.push(o))}return i.default(t,a),n};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/request-animation-frame.js":function(t,e,n){"use strict";function r(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/set.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-object.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js");e.default=function(t,e,n){var a=t,s=i.default(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(r.default(a[t])||(a[t]=o.default(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/size.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-array-like.js");function o(t){return r.default(t)?0:i.default(t)?t.length:Object.keys(t).length}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/some.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/sort-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/is-array.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");function a(t,e){var n;if(o.default(e))n=function(t,n){return e(t)-e(n)};else{var a=[];i.default(e)?a.push(e):r.default(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/starts-with.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-string.js");function o(t,e){return!(!r.default(t)&&!i.default(t))&&t[0]===e}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/substitute.js":function(t,e,n){"use strict";function r(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/throttle.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=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;e<arguments.length;e++)t[e]=arguments[e];return r.default([].concat.apply([],t))};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/uniq.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/contains.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),o=function(t){var e=[];return i.default(t,(function(t){r.default(e,t)||e.push(t)})),e};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/unique-id.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){return t=t||"g",r[t]?r[t]+=1:r[t]=1,t+r[t]}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-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).toUpperCase()};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-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).toUpperCase()+e.substring(1)};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/values-of-key.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"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js");e.default=function(t,e){var n=[],a={};return t.forEach((function(t){var s=t[e];o.default(s)||(i.default(s)||(s=[s]),r.default(s,(function(t){a[t]||(n.push(t),a[t]=!0)})))})),n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/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/each.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return r.default(t,(function(n,r){i.default(t)&&"prototype"===r||e.push(n)})),e};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/wrap-behavior.js":function(t,e,n){"use strict";function r(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"./node_modules/_abs-svg-path@0.1.1@abs-svg-path/index.js":function(t,e){function n(t){var e=0,n=0,r=0,i=0;return t.map((function(t){t=t.slice();var o=t[0],a=o.toUpperCase();if(o!=a)switch(t[0]=a,o){case"a":t[6]+=r,t[7]+=i;break;case"v":t[1]+=i;break;case"h":t[1]+=r;break;default:for(var s=1;s<t.length;)t[s++]+=r,t[s++]+=i}switch(a){case"Z":r=e,i=n;break;case"H":r=t[1];break;case"V":i=t[1];break;case"M":r=e=t[1],i=n=t[2];break;default:r=t[t.length-2],i=t[t.length-1]}return t}))}t.exports=n},"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){return t<e?-1:t>e?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<i){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}function r(t){return function(n,r){return e(t(n),r)}}var i=n(e),o=i.right,a=i.left;function s(t,e){null==e&&(e=u);var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);while(n<r)o[n]=e(i,i=t[++n]);return o}function u(t,e){return[t,e]}function l(t,e,n){var r,i,o,a,s=t.length,l=e.length,c=new Array(s*l);for(null==n&&(n=u),r=o=0;r<s;++r)for(a=t[r],i=0;i<l;++i,++o)c[o]=n(a,e[i]);return c}function c(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function f(t){return null===t?NaN:+t}function h(t,e){var n,r,i=t.length,o=0,a=-1,s=0,u=0;if(null==e)while(++a<i)isNaN(n=f(t[a]))||(r=n-s,s+=r/++o,u+=r*(n-s));else while(++a<i)isNaN(n=f(e(t[a],a,t)))||(r=n-s,s+=r/++o,u+=r*(n-s));if(o>1)return u/(o-1)}function d(t,e){var n=h(t,e);return n?Math.sqrt(n):n}function p(t,e){var n,r,i,o=t.length,a=-1;if(null==e){while(++a<o)if(null!=(n=t[a])&&n>=n){r=i=n;while(++a<o)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}}else while(++a<o)if(null!=(n=e(t[a],a,t))&&n>=n){r=i=n;while(++a<o)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]}var g=Array.prototype,v=g.slice,m=g.map;function y(t){return function(){return t}}function _(t){return t}function x(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);while(++r<i)o[r]=t+r*n;return o}var b=Math.sqrt(50),w=Math.sqrt(10),j=Math.sqrt(2);function S(t,e,n){var r,i,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=M(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));while(++s<i)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));while(++s<i)o[s]=(t-s)/a}return r&&o.reverse(),o}function M(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=b?10:o>=w?5:o>=j?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=b?10:o>=w?5:o>=j?2:1)}function E(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=b?i*=10:o>=w?i*=5:o>=j&&(i*=2),e<t?-i:i}function P(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function C(){var t=_,e=p,n=P;function r(r){var i,a,s=r.length,u=new Array(s);for(i=0;i<s;++i)u[i]=t(r[i],i,r);var l=e(u),c=l[0],f=l[1],h=n(u,c,f);Array.isArray(h)||(h=E(c,f,h),h=x(Math.ceil(c/h)*h,f,h));var d=h.length;while(h[0]<=c)h.shift(),--d;while(h[d-1]>f)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<d?h[i]:f;for(i=0;i<s;++i)a=u[i],c<=a&&a<=f&&g[o(h,a,0,d)].push(r[i]);return g}return r.value=function(e){return arguments.length?(t="function"===typeof e?e:y(e),r):t},r.domain=function(t){return arguments.length?(e="function"===typeof t?t:y([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?y(v.call(t)):y(t),r):n},r}function k(t,e,n){if(null==n&&(n=f),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}}function A(t,n,r){return t=m.call(t,f).sort(e),Math.ceil((r-n)/(2*(k(t,.75)-k(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 O(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&n>r&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&n>r&&(r=n)}return r}function I(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)while(++o<r)isNaN(n=f(t[o]))?--i:a+=n;else while(++o<r)isNaN(n=f(e(t[o],o,t)))?--i:a+=n;if(i)return a/i}function R(t,n){var r,i=t.length,o=-1,a=[];if(null==n)while(++o<i)isNaN(r=f(t[o]))||a.push(r);else while(++o<i)isNaN(r=f(n(t[o],o,t)))||a.push(r);return k(a.sort(e),.5)}function D(t){var e,n,r,i=t.length,o=-1,a=0;while(++o<i)a+=t[o].length;n=new Array(a);while(--i>=0){r=t[i],e=r.length;while(--e>=0)n[--a]=r[e]}return n}function L(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&r>n&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&r>n&&(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 F(t,n){if(r=t.length){var r,i,o=0,a=0,s=t[a];null==n&&(n=e);while(++o<r)(n(i=t[o],s)<0||0!==n(s,s))&&(s=i,a=o);return 0===n(s,s)?a:void 0}}function B(t,e,n){var r,i,o=(null==n?t.length:n)-(e=null==e?0:+e);while(o)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t}function z(t,e){var n,r=t.length,i=-1,o=0;if(null==e)while(++i<r)(n=+t[i])&&(o+=n);else while(++i<r)(n=+e(t[i],i,t))&&(o+=n);return o}function G(t){if(!(i=t.length))return[];for(var e=-1,n=L(t,q),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}function q(t){return t.length}function V(){return G(arguments)}t.bisect=o,t.bisectRight=o,t.bisectLeft=a,t.ascending=e,t.bisector=n,t.cross=l,t.descending=c,t.deviation=d,t.extent=p,t.histogram=C,t.thresholdFreedmanDiaconis=A,t.thresholdScott=T,t.thresholdSturges=P,t.max=O,t.mean=I,t.median=R,t.merge=D,t.min=L,t.pairs=s,t.permute=N,t.quantile=k,t.range=x,t.scan=F,t.shuffle=B,t.sum=z,t.ticks=S,t.tickIncrement=M,t.tickStep=E,t.transpose=G,t.variance=h,t.zip=V,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";var e="$";function n(){}function r(t,e){var r=new n;if(t instanceof n)t.each((function(t,e){r.set(e,t)}));else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==e)while(++o<a)r.set(o,t[o]);else while(++o<a)r.set(e(i=t[o],o,t),i)}else if(t)for(var s in t)r.set(s,t[s]);return r}function i(){var t,e,n,i=[],l=[];function c(n,o,a,s){if(o>=i.length)return null!=t&&n.sort(t),null!=e?e(n):n;var u,l,f,h=-1,d=n.length,p=i[o++],g=r(),v=a();while(++h<d)(f=g.get(u=p(l=n[h])+""))?f.push(l):g.set(u,[l]);return g.each((function(t,e){s(v,e,c(t,o,a,s))})),v}function f(t,n){if(++n>i.length)return t;var r,o=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!=o?r.sort((function(t,e){return o(t.key,e.key)})):r}return n={object:function(t){return c(t,0,o,a)},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 o(){return{}}function a(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(++r<i)n.add(t[r]);else while(++r<i)n.add(e(t[r],r,t))}return n}function h(t){var e=[];for(var n in t)e.push(n);return e}function d(t){var e=[];for(var n in t)e.push(t[n]);return e}function p(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e}l.prototype=f.prototype={constructor:l,has:c.has,add:function(t){return t+="",this[e+t]=t,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each},t.nest=i,t.set=f,t.map=r,t.keys=h,t.values=d,t.entries=p,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-composite-projections@1.3.2@d3-composite-projections/d3-composite-projections.js":function(t,e,n){(function(t,r){r(e,n("./node_modules/_d3-geo@1.11.9@d3-geo/dist/d3-geo.js"),n("./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js"))})(0,(function(t,e,n){"use strict";var r=1e-6;function i(){}var o=1/0,a=o,s=-o,u=s,l={point:c,lineStart:i,lineEnd:i,polygonStart:i,polygonEnd:i,result:function(){var t=[[o,a],[s,u]];return s=u=-(a=o=1/0),t}};function c(t,e){t<o&&(o=t),t>s&&(s=t),e<a&&(a=e),e>u&&(u=e)}function f(t,n,r){var i=n[1][0]-n[0][0],o=n[1][1]-n[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),e.geoStream(r,t.stream(l));var s=l.result(),u=Math.min(i/(s[1][0]-s[0][0]),o/(s[1][1]-s[0][1])),c=+n[0][0]+(i-u*(s[1][0]+s[0][0]))/2,f=+n[0][1]+(o-u*(s[1][1]+s[0][1]))/2;return null!=a&&t.clipExtent(a),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<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function p(){var t,i,o,a,s,u,l=e.geoAlbers(),c=e.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),p=e.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),g={point:function(t,e){u=[t,e]}};function v(t){var e=t[0],n=t[1];return u=null,o.point(e,n),u||(a.point(e,n),u)||(s.point(e,n),u)}function m(){return t=i=null,v}return v.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(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),m()):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 o=l.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(g),a=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),m()},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]),o=l([-110,26.7]),a=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(o[0],o[1]),t.lineTo(a[0],a[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<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function v(){var t,i,o,a,s,u,l,c,d,p=e.geoAlbers(),v=e.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),m=e.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),y=e.geoConicEqualArea().rotate([66,0]).center([0,18]).parallels([8,18]),_=e.geoEquirectangular().rotate([173,14]),x=e.geoEquirectangular().rotate([-145,-16.8]),b={point:function(t,e){d=[t,e]}};function w(t){var e=t[0],n=t[1];return d=null,o.point(e,n),d||(a.point(e,n),d)||(s.point(e,n),d)||(u.point(e,n),d)||(l.point(e,n),d)||(c.point(e,n),d)}function j(){return t=i=null,w}return w.invert=function(t){var e=p.scale(),n=p.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?v:i>=.166&&i<.234&&r>=-.214&&r<-.115?m:i>=.2064&&i<.2413&&r>=.312&&r<.385?y:i>=.09&&i<.1197&&r>=-.4243&&r<-.3232?_: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),m.stream(e),y.stream(e),_.stream(e),x.stream(e)])},w.precision=function(t){return arguments.length?(p.precision(t),v.precision(t),m.precision(t),y.precision(t),_.precision(t),x.precision(t),j()):p.precision()},w.scale=function(t){return arguments.length?(p.scale(t),v.scale(.35*t),m.scale(t),y.scale(t),_.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 o=p.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(b),a=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=m.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=y.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=_.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),j()},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]),o=p([-124.4745,28.1407]),a=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]),m=p([-124.4369,28.169]),y=p([-128.1314,37.4582]),_=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(o[0],o[1]),t.lineTo(a[0],a[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(m[0],m[1]),t.closePath(),t.moveTo(y[0],y[1]),t.lineTo(_[0],_[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 m(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function y(){var t,i,o,a,s,u=e.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),l=e.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),c={point:function(t,e){s=[t,e]}};function d(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function p(){return t=i=null,d}return d.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.05346&&i<.0897&&r>=-.13388&&r<-.0322?l:u).invert(t)},d.stream=function(e){return t&&i===e?t:t=m([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 o=u.translate(t).clipExtent([[n-.06857*e,i-.1288*e],[n+.13249*e,i+.06*e]]).stream(c),a=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 _(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function x(){var t,i,o,a,s,u,l=e.geoConicConformal().rotate([10,-39.3]).parallels([0,60]),c=e.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),d=e.geoConicConformal().rotate([27.8,-38.6]).parallels([0,60]),p={point:function(t,e){u=[t,e]}};function g(t){var e=t[0],n=t[1];return u=null,o.point(e,n),u||(a.point(e,n),u)||(s.point(e,n),u)}function v(){return t=i=null,g}return g.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(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=_([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 o=l.translate(t).clipExtent([[n-.0115*e,i-.1138*e],[n+.2105*e,i+.0673*e]]).stream(p),a=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]),o=l([-16.0753,41.4436]),a=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(o[0],o[1]),t.lineTo(a[0],a[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<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function w(){var t,i,o,a,s,u=e.geoMercator().rotate([80,1.5]),l=e.geoMercator().rotate([90.73,1]),c={point:function(t,e){s=[t,e]}};function d(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function p(){return t=i=null,d}return d.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(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 o=u.translate(t).clipExtent([[n-.0262*e,i-.0734*e],[n+.1741*e,i+.079*e]]).stream(c),a=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 j(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function S(){var t,i,o,a,s,u,l,c=e.geoTransverseMercator().rotate([72,37]),d=e.geoStereographic().rotate([72,0]),p=e.geoMercator().rotate([80,33.5]),g=e.geoMercator().rotate([110,25]),v={point:function(t,e){l=[t,e]}};function m(t){var e=t[0],n=t[1];return l=null,o.point(e,n),l||(a.point(e,n),l)||(s.point(e,n),l)||(u.point(e,n),l)}function y(){return t=i=null,m}return m.invert=function(t){var e=c.scale(),n=c.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(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)},m.stream=function(e){return t&&i===e?t:t=j([c.stream(i=e),d.stream(e),p.stream(e),g.stream(e)])},m.precision=function(t){return arguments.length?(c.precision(t),d.precision(t),p.precision(t),g.precision(t),y()):c.precision()},m.scale=function(t){return arguments.length?(c.scale(t),d.scale(.15*t),p.scale(1.5*t),g.scale(1.5*t),m.translate(c.translate())):c.scale()},m.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],i=+t[1];return o=c.translate(t).clipExtent([[n-.059*e,i-.3835*e],[n+.4498*e,i+.3375*e]]).stream(v),a=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),y()},m.fitExtent=function(t,e){return f(m,t,e)},m.fitSize=function(t,e){return h(m,t,e)},m.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]),o=c([-80.0638,-35.984]),a=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(o[0],o[1]),t.lineTo(a[0],a[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()},m.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},m.scale(700)}function M(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function E(){var t,i,o,a,s,u,l=e.geoConicEquidistant().rotate([-136,-22]).parallels([40,34]),c=e.geoConicEquidistant().rotate([-146,-26]).parallels([40,34]),d=e.geoConicEquidistant().rotate([-126,-19]).parallels([40,34]),p={point:function(t,e){u=[t,e]}};function g(t){var e=t[0],n=t[1];return u=null,o.point(e,n),u||(a.point(e,n),u)||(s.point(e,n),u)}function v(){return t=i=null,g}return g.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(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=M([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 o=l.translate(t).clipExtent([[n-.1352*e,i-.1091*e],[n+.117*e,i+.098*e]]).stream(p),a=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]),o=l([132.9,29.8]),a=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(o[0],o[1]),t.lineTo(a[0],a[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<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function C(){var t,i,o,a,s,u,l,c,d,p,g,v,m,y,_,x=e.geoConicConformal().rotate([-3,-46.2]).parallels([0,60]),b=e.geoMercator().center([-53.2,3.9]),w=e.geoMercator().center([-61.03,14.67]),j=e.geoMercator().center([-61.46,16.14]),S=e.geoMercator().center([-62.85,17.92]),M=e.geoMercator().center([-56.23,46.93]),E=e.geoMercator().center([45.16,-12.8]),C=e.geoMercator().center([55.52,-21.13]),k=e.geoMercator().center([165.8,-21.07]),A=e.geoMercator().center([-178.1,-14.3]),T=e.geoMercator().center([-150.55,-17.11]),O=e.geoMercator().center([-150.55,-17.11]),I={point:function(t,e){_=[t,e]}};function R(t){var e=t[0],n=t[1];return _=null,o.point(e,n),_||(a.point(e,n),_)||(s.point(e,n),_)||(u.point(e,n),_)||(l.point(e,n),_)||(c.point(e,n),_)||(d.point(e,n),_)||(p.point(e,n),_)||(g.point(e,n),_)||(v.point(e,n),_)||(m.point(e,n),_)||(y.point(e,n),_)}function D(){return t=i=null,R}return R.invert=function(t){var e=x.scale(),n=x.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(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?j:i>=-.052&&i<-.032&&r>=-.14&&r<-.0996?S:i>=-.076&&i<.052&&r>=-.14&&r<-.0996?M:i>=-.076&&i<-.052&&r>=.0967&&r<.1371?E:i>=-.052&&i<-.02&&r>=.0967&&r<.1371?C:i>=-.02&&i<.012&&r>=.0967&&r<.1371?k:i>=.012&&i<.033&&r>=.0967&&r<.1371?A:i>=.033&&i<.0864&&r>=.0967&&r<.1371?T:x).invert(t)},R.stream=function(e){return t&&i===e?t:t=P([x.stream(i=e),b.stream(e),w.stream(e),j.stream(e),S.stream(e),M.stream(e),E.stream(e),C.stream(e),k.stream(e),A.stream(e),T.stream(e),O.stream(e)])},R.precision=function(t){return arguments.length?(x.precision(t),b.precision(t),w.precision(t),j.precision(t),S.precision(t),M.precision(t),E.precision(t),C.precision(t),k.precision(t),A.precision(t),T.precision(t),O.precision(t),D()):x.precision()},R.scale=function(t){return arguments.length?(x.scale(t),b.scale(.6*t),w.scale(1.6*t),j.scale(1.4*t),S.scale(5*t),M.scale(1.3*t),E.scale(1.6*t),C.scale(1.2*t),k.scale(.3*t),A.scale(2.7*t),T.scale(.5*t),O.scale(.06*t),R.translate(x.translate())):x.scale()},R.translate=function(t){if(!arguments.length)return x.translate();var e=x.scale(),n=+t[0],i=+t[1];return o=x.translate(t).clipExtent([[n-.0996*e,i-.0908*e],[n+.0967*e,i+.0864*e]]).stream(I),a=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=j.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=S.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=M.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=E.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=k.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=A.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),y=O.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),m=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),D()},R.fitExtent=function(t,e){return f(R,t,e)},R.fitSize=function(t,e){return h(R,t,e)},R.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])},R.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},R.scale(2700)}function k(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function A(){var t,i,o,a,s,u,l,c,d,p,g,v,m,y,_,x=e.geoConicConformal().rotate([-10,-53]).parallels([0,60]),b=e.geoMercator().center([-61.46,16.14]),w=e.geoMercator().center([-53.2,3.9]),j=e.geoConicConformal().rotate([27.8,-38.9]).parallels([0,60]),S=e.geoConicConformal().rotate([25.43,-37.398]).parallels([0,60]),M=e.geoConicConformal().rotate([31.17,-39.539]).parallels([0,60]),E=e.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),P=e.geoConicConformal().rotate([16,-28.5]).parallels([0,60]),C=e.geoMercator().center([-61.03,14.67]),A=e.geoMercator().center([45.16,-12.8]),T=e.geoMercator().center([55.52,-21.13]),O=e.geoConicConformal().rotate([-14.4,-35.95]).parallels([0,60]),I={point:function(t,e){_=[t,e]}};function R(t){var e=t[0],n=t[1];return _=null,o.point(e,n),_||(s.point(e,n),_)||(g.point(e,n),_)||(a.point(e,n),_)||(p.point(e,n),_)||(d.point(e,n),_)||(v.point(e,n),_)||(m.point(e,n),_)||(y.point(e,n),_)||(u.point(e,n),_)||(l.point(e,n),_)||(c.point(e,n),_)}function D(){return t=i=null,R}return R.invert=function(t){var e=x.scale(),n=x.translate(),r=(t[0]-(n[0]+.08*e))/e,i=(t[1]-n[1])/e;return(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?S:i>=-.17&&i<-.14&&r>=.14&&r<.165?M:i>=-.17&&i<-.1&&r>=.14&&r<.24?j:i>=-.1&&i<-.03&&r>=.14&&r<.24?E: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?A:i>=-.17&&i<-.1&&r>=.24&&r<.34?T:i>=-.1&&i<-.03&&r>=.24&&r<.34?O:x).invert(t)},R.stream=function(e){return t&&i===e?t:t=k([x.stream(i=e),w.stream(e),C.stream(e),b.stream(e),P.stream(e),E.stream(e),A.stream(e),T.stream(e),O.stream(e),j.stream(e),S.stream(e),M.stream(e)])},R.precision=function(t){return arguments.length?(x.precision(t),w.precision(t),C.precision(t),b.precision(t),P.precision(t),E.precision(t),A.precision(t),T.precision(t),O.precision(t),j.precision(t),S.precision(t),M.precision(t),D()):x.precision()},R.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),j.scale(2*t),S.scale(2*t),M.scale(2*t),E.scale(3*t),P.scale(t),A.scale(5.5*t),O.scale(6*t),R.translate(x.translate())):x.scale()},R.translate=function(t){if(!arguments.length)return x.translate();var e=x.scale(),n=+t[0],i=+t[1];return o=x.translate([n-.08*e,i]).clipExtent([[n-.51*e,i-.33*e],[n+.5*e,i+.33*e]]).stream(I),a=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=j.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=S.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=M.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=E.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=A.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),m=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),y=O.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),D()},R.fitExtent=function(t,e){return f(R,t,e)},R.fitSize=function(t,e){return h(R,t,e)},R.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()},R.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},R.scale(750)}function T(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function O(){var t,i,o,a,s,u=e.geoMercator().center([105.25,4]),l=e.geoMercator().center([118.65,2.86]),c={point:function(t,e){s=[t,e]}};function d(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function p(){return t=i=null,d}return d.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(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 o=u.translate(t).clipExtent([[n-.11*e,i-.0521*e],[n-.0111*e,i+.0521*e]]).stream(c),a=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<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function R(){var t,i,o,a,s,u,l=e.geoMercator().rotate([-9.5,-1.5]),c=e.geoMercator().rotate([-8.6,-3.5]),d=e.geoMercator().rotate([-5.6,1.45]),p={point:function(t,e){u=[t,e]}};function g(t){var e=t[0],n=t[1];return u=null,o.point(e,n),u||(a.point(e,n),u)||(s.point(e,n),u)}function v(){return t=i=null,g}return g.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(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 o=l.translate(t).clipExtent([[n-.005*e,i-.02*e],[n+.038*e,i+.02*e]]).stream(p),a=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 D(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function L(){var t,i,o,a,s,u=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),l=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),c={point:function(t,e){s=[t,e]}};function d(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function p(){return t=i=null,d}return d.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.089&&i<.06&&r>=.029&&r<.046?l:u).invert(t)},d.stream=function(e){return t&&i===e?t:t=D([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 o=u.translate(t).clipExtent([[n-.065*e,i-.089*e],[n+.075*e,i+.089*e]]).stream(c),a=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=L,t.geoAlbersUsa=p,t.geoAlbersUsaTerritories=v,t.geoConicConformalEurope=A,t.geoConicConformalFrance=C,t.geoConicConformalPortugal=x,t.geoConicConformalSpain=y,t.geoConicEquidistantJapan=E,t.geoMercatorEcuador=w,t.geoMercatorEquatorialGuinea=R,t.geoMercatorMalaysia=O,t.geoTransverseMercatorChile=S,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,o=13;function a(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function s(t,e){var n=a(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 r<e?new Array(e-r+1).join(0)+n:n}function c(t){return t<0?"-"+l(-t,6):t>9999?"+"+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):a(t)}));return i.columns=r||[],i}function d(t,a){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 a,s,u=f;if(t.charCodeAt(u)===r){while(f++<l&&t.charCodeAt(f)!==r||t.charCodeAt(++f)===r);return(a=f)>=l?d=!0:(s=t.charCodeAt(f++))===i?p=!0:s===o&&(p=!0,t.charCodeAt(f)===i&&++f),t.slice(u+1,a-1).replace(/""/g,'"')}while(f<l){if((s=t.charCodeAt(a=f++))===i)p=!0;else if(s===o)p=!0,t.charCodeAt(f)===i&&++f;else if(s!==c)continue;return t.slice(u,a)}return d=!0,t.slice(u,l)}t.charCodeAt(l-1)===i&&--l,t.charCodeAt(l-1)===o&&--l;while((s=g())!==n){var v=[];while(s!==e&&s!==n)v.push(s),s=g();a&&null==(v=a(v,h++))||u.push(v)}return u}function p(e,n){return e.map((function(e){return n.map((function(t){return _(e[t])})).join(t)}))}function g(e,n){return null==n&&(n=u(e)),[n.map(_).join(t)].concat(p(e,n)).join("\n")}function v(t,e){return null==e&&(e=u(t)),p(t,e).join("\n")}function m(t){return t.map(y).join("\n")}function y(e){return e.map(_).join(t)}function _(t){return null==t?"":t instanceof Date?f(t):l.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:h,parseRows:d,format:g,formatBody:v,formatRows:m,formatRow:y,formatValue:_}}var d=h(","),p=d.parse,g=d.parseRows,v=d.format,m=d.formatBody,y=d.formatRows,_=d.formatRow,x=d.formatValue,b=h("\t"),w=b.parse,j=b.parseRows,S=b.format,M=b.formatBody,E=b.formatRows,P=b.formatRow,C=b.formatValue;function k(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;A&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}var A=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();t.autoType=k,t.csvFormat=v,t.csvFormatBody=m,t.csvFormatRow=_,t.csvFormatRows=y,t.csvFormatValue=x,t.csvParse=p,t.csvParseRows=g,t.dsvFormat=h,t.tsvFormat=S,t.tsvFormatBody=M,t.tsvFormatRow=P,t.tsvFormatRows=E,t.tsvFormatValue=C,t.tsvParse=w,t.tsvParseRows=j,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js":function(t,e,n){(function(t,r){r(e,n("./node_modules/_d3-geo@1.11.9@d3-geo/dist/d3-geo.js"),n("./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))})(0,(function(t,e,n){"use strict";var r=Math.abs,i=Math.atan,o=Math.atan2,a=Math.cos,s=Math.exp,u=Math.floor,l=Math.log,c=Math.max,f=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(t){return t>0?1:t<0?-1:0},g=Math.sin,v=Math.tan,m=1e-6,y=1e-12,_=Math.PI,x=_/2,b=_/4,w=Math.SQRT1_2,j=T(2),S=T(_),M=2*_,E=180/_,P=_/180;function C(t){return t?t/Math.sin(t):1}function k(t){return t>1?x:t<-1?-x:Math.asin(t)}function A(t){return t>1?0:t<-1?_:Math.acos(t)}function T(t){return t>0?Math.sqrt(t):0}function O(t){return t=s(2*t),(t-1)/(t+1)}function I(t){return(s(t)-s(-t))/2}function R(t){return(s(t)+s(-t))/2}function D(t){return l(t+T(t*t+1))}function L(t){return l(t+T(t*t-1))}function N(t){var e=v(t/2),n=2*l(a(t/2))/(e*e);function i(t,e){var r=a(t),i=a(e),o=g(e),s=i*r,u=-((1-s?l((1+s)/2)/(1-s):-.5)+n/(1+s));return[u*i*g(t),u*o]}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=a(h),p=g(h),y=v(h),_=l(1/d);c-=s=(2/y*_-n*y-u)/(-_/(p*p)+1-n/(2*d*d))}while(r(s)>m&&--f>0);var x=g(c);return[o(e*x,u*a(c)),k(i*x/u)]},i}var F=function(){var t=x,n=e.geoProjectionMutator(N),r=n(t);return r.radius=function(e){return arguments.length?n(t=e*P):t*E},r.scale(179.976).clipAngle(147)};function B(t,e){var n=a(e),r=C(A(n*a(t/=2)));return[2*n*g(t)*r,g(e)*r]}B.invert=function(t,e){if(!(t*t+4*e*e>_*_+m)){var n=t,i=e,o=25;do{var s,u=g(n),l=g(n/2),c=a(n/2),f=g(i),h=a(i),d=g(2*i),p=f*f,v=h*h,y=l*l,x=1-v*c*c,b=x?A(h*c)*T(s=1/x):s=0,w=2*b*h*l-t,j=b*f-e,S=s*(v*y+b*h*c*p),M=s*(.5*u*d-2*b*f*l),E=.25*s*(d*l-b*f*v*u),P=s*(p*c+b*y*h),C=M*E-P*S;if(!C)break;var k=(j*M-w*P)/C,O=(w*E-j*S)/C;n-=k,i-=O}while((r(k)>m||r(O)>m)&&--o>0);return[n,i]}};var z=function(){return e.geoProjection(B).scale(152.63)};function G(t){var e=g(t),n=a(t),i=t>=0?1:-1,s=v(i*t),u=(1+e-n)/2;function l(t,r){var l=a(r),c=a(t/=2);return[(1+l)*g(t),(i*r>-o(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=a(c),p=g(c),v=a(f),y=g(f),_=1+v,x=_*p-t,b=u+y*n-_*e*d-l,w=_*d/2,j=-p*y,S=e*_*p/2,M=n*v+e*d*y,E=j*S-M*w,P=(b*j-x*M)/E/2,C=(x*S-b*w)/E;c-=P,f-=C}while((r(P)>m||r(C)>m)&&--h>0);return i*f>-o(a(c),s)-.001?[2*c,f]:null},l}var q=function(){var t=20*P,n=t>=0?1:-1,r=v(n*t),i=e.geoProjectionMutator(G),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*E},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*-o(a(e*P/2),r)*E);c.lineEnd(),c.polygonEnd()},l},s.scale(218.695).center([0,28.0974])};function V(t,e){var n=v(e/2),r=T(1-n*n),i=1+r*a(t/=2),o=g(t)*r/i,s=n/i,u=o*o,l=s*s;return[4/3*o*(3+u-3*l),4/3*s*(3+3*u-l)]}V.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=k(u)/3,c=u?L(r(e/u))/3:D(r(t))/3,f=a(l),h=R(c),d=h*h-f*f;return[2*p(t)*o(I(c)*f,.25-d),2*p(e)*o(h*g(l),.25+d)]};var Y=function(){return e.geoProjection(V).scale(66.1603)},H=T(8),W=l(1+j);function U(t,e){var n=r(e);return n<b?[t,l(v(b+e/2))]:[t*a(n)*(2*j-1/g(n)),p(e)*(2*j*(n-b)-l(v(n/2)))]}U.invert=function(t,e){if((o=r(e))<W)return[t,2*i(s(e))-x];var n,o,u=b,c=25;do{var f=a(u/2),h=v(u/2);u-=n=(H*(u-b)-l(h)-o)/(H-f*f/(2*h))}while(r(n)>y&&--c>0);return[t/(a(u)*(H-1/g(u))),p(e)*u]};var X=function(){return e.geoProjection(U).scale(112.314)};function Z(t){var n=2*_/t;function s(t,i){var s=e.geoAzimuthalEquidistantRaw(t,i);if(r(t)>x){var u=o(s[1],s[0]),l=T(s[0]*s[0]+s[1]*s[1]),c=n*d((u-x)/n)+x,f=o(g(u-=c),2-a(u));u=c+k(_/l*g(f))-f,s[0]=l*a(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=o(r,t),l=n*d((u-x)/n)+x,c=u>l?-1:1,f=s*a(l-u),h=1/v(c*A((f-_)/T(_*(_-2*f)+s*s)));u=l+2*i((h+c*T(h*h-3))/3),t=s*a(u),r=s*g(u)}return e.geoAzimuthalEquidistantRaw.invert(t,r)},s}var $=function(){var t=5,n=e.geoProjectionMutator(Z),r=n(t),i=r.stream,s=.01,u=-a(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*_/t,i=90-180/t,c=x;e<t;++e,i-=n,c-=r)f.point(o(l*a(c),u)*E,k(l*g(c))*E),i<-90?(f.point(-90,-180-i-s),f.point(-90,-180-i+s)):(f.point(90,i+s),f.point(90,i-s));f.lineEnd(),f.polygonEnd()},c},r.scale(87.8076).center([0,17.1875]).clipAngle(179.999)};function Q(t,e){var n,i=t*g(e),o=30;do{e-=n=(e+g(e)-i)/(1+a(e))}while(r(n)>m&&--o>0);return e/2}function K(t,e,n){function r(r,i){return[t*r*a(i=Q(n,i)),e*g(i)]}return r.invert=function(r,i){return i=k(i/e),[r/(t*a(i)),k((2*i+g(2*i))/n)]},r}var J=K(j/x,j,_),tt=function(){return e.geoProjection(J).scale(169.529)},et=2.00276,nt=1.11072;function rt(t,e){var n=Q(_,e);return[et*t/(1/a(e)+nt/a(n)),(e+j*g(n))/et]}rt.invert=function(t,e){var n,i,o=et*e,s=e<0?-b:b,u=25;do{i=o-j*g(s),s-=n=(g(2*s)+2*s-_*g(i))/(2*a(2*s)+2+_*a(i)*j*a(s))}while(r(n)>m&&--u>0);return i=o-j*g(s),[t*(1/a(i)+nt/a(s))/et,i]};var it=function(){return e.geoProjection(rt).scale(160.857)},ot=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*E},i};function at(t,e){return[t*a(e),e]}at.invert=function(t,e){return[t/a(e),e]};var st=function(){return e.geoProjection(at).scale(152.63)};function ut(t){if(!t)return at;var e=1/v(t);function n(n,r){var i=e+t-r,o=i?n*a(r)/i:i;return[i*g(o),e-i*a(o)]}return n.invert=function(n,r){var i=T(n*n+(r=e-r)*r),s=e+t-i;return[i/a(s)*o(n,r),s]},n}var lt=function(){return ot(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*a(i)]}return e.invert=function(e,n){var r=e*t,i=x-n,a=T(r*r+i*i),s=o(r,i);return[(a?a/g(a):1)*s/t,x-a]},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=K(1,4/_,_),dt=function(){return e.geoProjection(ht).scale(152.63)};function pt(t,e,n,i,s,u){var l,c=a(u);if(r(t)>1||r(u)>1)l=A(n*s+e*i*c);else{var f=g(t/2),h=g(u/2);l=2*k(T(f*f+e*i*h*h))}return r(l)>m?[l,o(i*g(u),e*s-n*i*c)]:[0,0]}function gt(t,e,n){return A((t*t+e*e-n*n)/(2*t*e))}function vt(t){return t-2*_*u((t+_)/(2*_))}function mt(t,e,n){for(var r,i=[[t[0],t[1],g(t[1]),a(t[1])],[e[0],e[1],g(e[1]),a(e[1])],[n[0],n[1],g(n[1]),a(n[1])]],o=i[2],s=0;s<3;++s,o=r)r=i[s],o.v=pt(r[1]-o[1],o[3],o[2],r[3],r[2],r[0]-o[0]),o.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=_-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]*a(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),o=a(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],o,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]*a(p),h[1]-=s[n][0]*g(p)):(p=c-p,h[0]+=s[n][0]*a(p),h[1]+=s[n][0]*g(p)):(h[0]+=s[n][0]*a(p),h[1]-=s[n][0]*g(p))}return h[0]/=3,h[1]/=3,h}return h}function yt(t){return t[0]*=P,t[1]*=P,t}function _t(){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]}),o=[-i[0],-i[1]],a=e.geoRotation(o),s=e.geoProjection(mt(yt(a(t)),yt(a(n)),yt(a(r)))).rotate(o),u=s.center;return delete s.rotate,s.center=function(t){return arguments.length?u(a(t)):a.invert(u())},s.clipAngle(90)}function bt(t,e){var n=T(1-g(e));return[2/S*t*n,S*(1-n)]}bt.invert=function(t,e){var n=(n=e/S-1)*n;return[n>0?t*T(_/n)/2:0,k(1-n)]};var wt=function(){return e.geoProjection(bt).scale(95.6464).center([0,30])};function jt(t){var e=v(t);function n(t,n){return[t,(t?t/g(t):1)*(g(n)*a(t)-e*a(n))]}return n.invert=e?function(t,n){t&&(n*=g(t)/t);var r=a(t);return[t,2*o(T(r*r+e*e-n*n)-r,e-n)]}:function(t,e){return[t,k(t?e*v(t)/t:e)]},n}var St=function(){return ot(jt).scale(249.828).clipAngle(90)},Mt=T(3);function Et(t,e){return[Mt*t*(2*a(2*e/3)-1)/S,Mt*S*g(e/3)]}Et.invert=function(t,e){var n=3*k(e/(Mt*S));return[S*t/(Mt*(2*a(2*n/3)-1)),n]};var Pt=function(){return e.geoProjection(Et).scale(156.19)};function Ct(t){var e=a(t);function n(t,n){return[t*e,g(n)/e]}return n.invert=function(t,n){return[t/e,k(n*e)]},n}var kt=function(){return ot(Ct).parallel(38.58).scale(195.044)};function At(t){var e=a(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 ot(At).scale(124.75)};function Ot(t,e){var n=T(8/(3*_));return[n*t*(1-r(e)/_),n*e]}Ot.invert=function(t,e){var n=T(8/(3*_)),i=e/n;return[t/(n*(1-r(i)/_)),i]};var It=function(){return e.geoProjection(Ot).scale(165.664)};function Rt(t,e){var n=T(4-3*g(r(e)));return[2/T(6*_)*t*n,p(e)*T(2*_/3)*(2-n)]}Rt.invert=function(t,e){var n=2-r(e)/T(2*_/3);return[t*T(6*_)/(2*n),p(e)*k((4-n*n)/3)]};var Dt=function(){return e.geoProjection(Rt).scale(165.664)};function Lt(t,e){var n=T(_*(4+_));return[2/n*t*(1+T(1-4*e*e/(_*_))),4/n*e]}Lt.invert=function(t,e){var n=T(_*(4+_))/2;return[t*n/(1+T(1-e*e*(4+_)/(4*_))),e*n/2]};var Nt=function(){return e.geoProjection(Lt).scale(180.739)};function Ft(t,e){var n=(2+x)*g(e);e/=2;for(var i=0,o=1/0;i<10&&r(o)>m;i++){var s=a(e);e-=o=(e+g(e)*(s+2)-n)/(2*s*(1+s))}return[2/T(_*(4+_))*t*(1+a(e)),2*T(_/(4+_))*g(e)]}Ft.invert=function(t,e){var n=e*T((4+_)/_)/2,r=k(n),i=a(r);return[t/(2/T(_*(4+_))*(1+i)),k((r+n*(i+2))/(2+x))]};var Bt=function(){return e.geoProjection(Ft).scale(180.739)};function zt(t,e){return[t*(1+a(e))/T(2+_),2*e/T(2+_)]}zt.invert=function(t,e){var n=T(2+_),r=e*n/2;return[n*t/(1+a(r)),r]};var Gt=function(){return e.geoProjection(zt).scale(173.044)};function qt(t,e){for(var n=(1+x)*g(e),i=0,o=1/0;i<10&&r(o)>m;i++)e-=o=(e+g(e)-n)/(1+a(e));return n=T(2+_),[t*(1+a(e))/n,2*e/n]}qt.invert=function(t,e){var n=1+x,r=T(n/2);return[2*t*r/(1+a(e*=r)),k((e+g(e))/n)]};var Vt=function(){return e.geoProjection(qt).scale(173.044)},Yt=3+2*j;function Ht(t,e){var n=g(t/=2),r=a(t),o=T(a(e)),s=a(e/=2),u=g(e)/(s+j*r*o),c=T(2/(1+u*u)),f=T((j*s+(r+n)*o)/(j*s+(r-n)*o));return[Yt*(c*(f-1/f)-2*l(f)),Yt*(c*u*(f+1/f)-2*i(u))]}Ht.invert=function(t,e){if(!(n=V.invert(t/1.2,1.065*e)))return null;var n,o=n[0],s=n[1],u=20;t/=Yt,e/=Yt;do{var h=o/2,d=s/2,p=g(h),v=a(h),y=g(d),_=a(d),b=a(s),S=T(b),M=y/(_+j*v*S),E=M*M,P=T(2/(1+E)),C=j*_+(v+p)*S,k=j*_+(v-p)*S,A=C/k,O=T(A),I=O-1/O,R=O+1/O,D=P*I-2*l(O)-t,L=P*M*R-2*i(M)-e,N=y&&w*S*p*E/y,F=(j*v*_+S)/(2*(_+j*v*S)*(_+j*v*S)*S),B=-.5*M*P*P*P,z=B*N,G=B*F,q=(q=2*_+j*S*(v-p))*q*O,Y=(j*v*_*S+b)/q,H=-j*p*y/(S*q),W=I*z-2*Y/O+P*(Y+Y/A),U=I*G-2*H/O+P*(H+H/A),X=M*R*z-2*N/(1+E)+P*R*N+P*M*(Y-Y/A),Z=M*R*G-2*F/(1+E)+P*R*F+P*M*(H-H/A),$=U*X-Z*W;if(!$)break;var Q=(L*U-D*Z)/$,K=(D*X-L*W)/$;o-=Q,s=c(-x,f(x,s-K))}while((r(Q)>m||r(K)>m)&&--u>0);return r(r(s)-x)<m?[0,s]:u&&[o,s]};var Wt=function(){return e.geoProjection(Ht).scale(62.5271)},Ut=a(35*P);function Xt(t,e){var n=v(e/2);return[t*Ut*T(1-n*n),(1+Ut)*n]}Xt.invert=function(t,e){var n=e/(1+Ut);return[t&&t/(Ut*T(1-n*n)),2*i(n)]};var Zt=function(){return e.geoProjection(Xt).scale(137.152)};function $t(t,e){var n=e/2,r=a(n);return[2*t/S*a(e)*r*r,S*v(n)]}$t.invert=function(t,e){var n=i(e/S),r=a(n),o=2*n;return[t*S/2/(a(o)*r*r),o]};var Qt=function(){return e.geoProjection($t).scale(135.264)};function Kt(t){return[t[0]/2,k(v(t[1]/2*P))*E]}function Jt(t){return[2*t[0],2*i(g(t[1]*P))*E]}var te=function(t){null==t&&(t=e.geoOrthographic);var n=t(),r=e.geoEquirectangular().scale(E).precision(0).clipAngle(null).translate([0,0]);function i(t){return n(Kt(t))}function o(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,k(v(-n/2*P))*E)},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(Kt(t)),i):Jt(n.center())},o("clipAngle"),o("clipExtent"),o("scale"),o("translate"),o("precision"),i.scale(249.5)};function ee(t,n){var i=2*_/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=o(f,c),y=i*d(v/i),b=v-y,w=t*a(b),j=(t*g(b)-b*g(w))/(x-w),S=ne(b,j),M=(_-t)/re(S,w,_);c=p;var E,P=50;do{c-=E=(t+re(S,w,c)*M-p)/(S(c)*M)}while(r(E)>m&&--P>0);f=b*g(c),c<x&&(f-=j*(c-x));var C=g(y),k=a(y);l[0]=c*k-f*C,l[1]=c*C+f*k}return l}return u.invert=function(n,u){var l=n*n+u*u;if(l>s){var c=T(l),f=o(u,n),h=i*d(f/i),p=f-h;n=c*a(p),u=c*g(p);var v=n-x,m=g(n),b=u/m,w=n<x?1/0:0,j=10;while(1){var S=t*g(b),M=t*a(b),E=g(M),P=x-M,C=(S-b*E)/P,k=ne(b,C);if(r(w)<y||!--j)break;b-=w=(b*m-C*v-u)/(m-2*v*(P*(M+b*S*a(M)-E)-S*(S-b*E))/(P*P))}c=t+re(k,M,n)*(_-t)/re(k,M,_),f=h+b,n=c*a(f),u=c*g(f)}return e.geoAzimuthalEquidistantRaw.invert(n,u)},u}function ne(t,e){return function(n){var r=t*a(n);return n<x&&(r-=e),T(1+r*r)}}function re(t,e,n){for(var r=50,i=(n-e)/r,o=t(e)+t(n),a=1,s=e;a<r;++a)o+=2*t(s+=i);return.5*o*i}var ie=function(){var t=6,n=30*P,r=a(n),i=g(n),s=e.geoProjectionMutator(ee),u=s(n,t),l=u.stream,c=.01,f=-a(c*P),h=g(c*P);return u.radius=function(e){return arguments.length?(r=a(n=e*P),i=g(n),s(n,t)):n*E},u.lobes=function(e){return arguments.length?s(n,t=+e):t},u.stream=function(e){var n=u.rotate(),s=l(e),c=(u.rotate([0,0]),l(e));return u.rotate(n),s.sphere=function(){c.polygonStart(),c.lineStart();for(var e=0,n=2*_/t,s=0;e<t;++e,s-=n)c.point(o(h*a(s),f)*E,k(h*g(s))*E),c.point(o(i*a(s-n/2),r)*E,k(i*g(s-n/2))*E);c.lineEnd(),c.polygonEnd()},s},u.rotate([90,-40]).scale(91.7095).clipAngle(179.999)},oe=function(t,e,n,i,o,s,u,l){function c(r,c){if(!c)return[t*r/_,0];var f=c*c,h=t+f*(e+f*(n+f*i)),d=c*(o-1+f*(s-l+f*u)),p=(h*h+d*d)/(2*d),v=r*k(h/p)/_;return[p*g(v),c*(1+f*l)+p*(1-a(v))]}return arguments.length<8&&(l=0),c.invert=function(c,f){var h,d,p=_*c/t,v=f,y=50;do{var x=v*v,b=t+x*(e+x*(n+x*i)),w=v*(o-1+x*(s-l+x*u)),j=b*b+w*w,S=2*w,M=j/S,E=M*M,P=k(b/M)/_,C=p*P,A=b*b,O=(2*e+x*(4*n+6*x*i))*v,I=o+x*(3*s+5*x*u),R=2*(b*O+w*(I-1)),D=2*(I-1),L=(R*S-j*D)/(S*S),N=a(C),F=g(C),B=M*N,z=M*F,G=p/_*(1/T(1-A/E))*(O*M-b*L)/E,q=z-c,V=v*(1+x*l)+M-B-f,Y=L*F+B*G,H=B*P,W=1+L-(L*N-z*G),U=z*P,X=Y*U-W*H;if(!X)break;p-=h=(V*Y-q*W)/X,v-=d=(q*U-V*H)/X}while((r(h)>m||r(d)>m)&&--y>0);return[p,v]},c},ae=oe(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),se=function(){return e.geoProjection(ae).scale(149.995)},ue=oe(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),le=function(){return e.geoProjection(ue).scale(153.93)},ce=oe(5/6*_,-.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,o=e,a=50;do{var s=o*o;o-=n=(o*(1+s/12)-e)/(1+s/4)}while(r(n)>m&&--a>0);a=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)>m&&--a>0);return[i,o]};var de=function(){return e.geoProjection(he).scale(131.747)},pe=oe(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,o=t(n+i*_,r);return o[0]-=i*e,o}return t.invert&&(n.invert=function(n,r){var i=n>0?-.5:.5,o=t.invert(n+i*e,r),a=o[0]-i*_;return a<-_?a+=2*_:a>_&&(a-=2*_),o[0]=a,o}),n};function me(t,e){var n=p(t),i=p(e),s=a(e),u=a(t)*s,l=g(t)*s,c=g(i*e);t=r(o(l,c)),e=k(u),r(t-x)>m&&(t%=x);var f=ye(t>_/4?x-t:t,e);return t>_/4&&(c=f[0],f[0]=-f[1],f[1]=-c),f[0]*=n,f[1]*=-i,f}function ye(t,e){if(e===x)return[0,0];var n,i,o=g(e),s=o*o,u=s*s,l=1+u,c=1+3*u,f=1-u,h=k(1/T(l)),d=f+s*l*h,p=(1-o)/d,v=T(p),y=p*l,b=T(y),w=v*f;if(0===t)return[0,-(w+s*b)];var j,S=a(e),M=1/S,E=2*o*S,P=(-3*s+h*c)*E,C=(-d*S-(1-o)*P)/(d*d),A=.5*C/v,O=f*A-2*s*v*E,I=s*l*C+p*c*E,R=-M*E,D=-M*I,L=-2*M*O,N=4*t/_;if(t>.222*_||e<_/4&&t>.175*_){if(n=(w+s*T(y*(1+u)-w*w))/(1+u),t>_/4)return[n,n];var F=n,B=.5*n;n=.5*(B+F),i=50;do{var z=T(y-n*n),G=n*(L+R*z)+D*k(n/b)-N;if(!G)break;G<0?B=n:F=n,n=.5*(B+F)}while(r(F-B)>m&&--i>0)}else{n=m,i=25;do{var q=n*n,V=T(y-q),Y=L+R*V,H=n*Y+D*k(n/b)-N,W=Y+(D-R*q)/V;n-=j=V?H/W:0}while(r(j)>m&&--i>0)}return[n,-w-s*T(y-n*n)]}function _e(t,e){var n=0,i=1,o=.5,s=50;while(1){var u=o*o,l=T(o),c=k(1/T(1+u)),f=1-u+o*(1+u)*c,h=(1-l)/f,d=T(h),p=h*(1+u),g=d*(1-u),v=p-t*t,m=T(v),x=e+g+o*m;if(r(i-n)<y||0===--s||0===x)break;x>0?n=o:i=o,o=.5*(n+i)}if(!s)return null;var b=k(l),w=a(b),j=1/w,S=2*l*w,M=(-3*o+c*(1+3*u))*S,E=(-f*w-(1-l)*M)/(f*f),P=.5*E/d,C=(1-u)*P-2*o*d*S,A=-2*j*C,O=-j*S,I=-j*(o*(1+u)*E+h*(1+3*u)*S);return[_/4*(t*(A+O*m)+I*k(t/T(p))),b]}me.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=_e(l?u:s,l?s:u),f=c[0],h=c[1],d=a(h);return l&&(f=-x-f),[n*(o(g(f)*d,-g(h))+_),i*k(a(f)*d)]};var xe=function(){return e.geoProjection(ve(me)).scale(239.75)};function be(t,e,n){var r,i,o;return t?(r=we(t,n),e?(i=we(e,1-n),o=i[1]*i[1]+n*r[0]*r[0]*i[0]*i[0],[[r[0]*i[2]/o,r[1]*r[2]*i[0]*i[1]/o],[r[1]*i[1]/o,-r[0]*r[2]*i[0]*i[2]/o],[r[2]*i[1]*i[2]/o,-n*r[0]*r[1]*i[0]/o]]):[[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,o,u,l,c;if(e<m)return l=g(t),o=a(t),n=e*(t-l*o)/4,[l-n*o,o+n*l,1-e*l*l/2,t-n];if(e>=1-m)return n=(1-e)/4,o=R(t),l=O(t),u=1/o,c=o*I(t),[l+n*(c-t)/(o*o),u-n*l*u*(c-t),u+n*l*u*(c+t),2*i(s(t))-x+n*(c-t)/o];var f=[1,0,0,0,0,0,0,0,0],h=[T(e),0,0,0,0,0,0,0,0],d=0;o=T(1-e),c=1;while(r(h[d]/f[d])>m&&d<8)n=f[d++],h[d]=(n-o)/2,f[d]=(n+o)/2,o=T(n*o),c*=2;u=c*f[d]*t;do{l=h[d]*g(o=u)/f[d],u=(k(l)+u)/2}while(--d);return[g(u),l=a(u),l/a(u-o),u]}function je(t,e,n){var o=r(t),a=r(e),s=I(a);if(o){var u=1/g(o),l=1/(v(o)*v(o)),c=-(l+n*(s*s*u*u)-1+n),f=(n-1)*l,h=(-c+T(c*c-4*f))/2;return[Se(i(1/T(h)),n)*p(t),Se(i(T((h/l-1)/n)),1-n)*p(e)]}return[0,Se(i(s),1-n)*p(e)]}function Se(t,e){if(!e)return t;if(1===e)return l(v(t/2+b));for(var n=1,o=T(1-e),a=T(e),s=0;r(a)>m;s++){if(t%_){var u=i(o*v(t)/n);u<0&&(u+=_),t+=u+~~(t/_)*_}else t+=t;a=(n+o)/2,o=T(n*o),a=((n=a)-o)/2}return t/(h(2,s)*n)}function Me(t,e){var n=(j-1)/(j+1),i=T(1-n*n),o=Se(x,i*i),u=-1,c=l(v(_/4+r(e)/2)),f=s(u*c)/T(n),h=Ee(f*a(u*t),f*g(u*t)),d=je(h[0],h[1],i*i);return[-d[1],(e>=0?1:-1)*(.5*o-d[0])]}function Ee(t,e){var n=t*t,r=e+1,i=1-n-e*e;return[.5*((t>=0?x:-x)-o(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]}Me.invert=function(t,e){var n=(j-1)/(j+1),r=T(1-n*n),a=Se(x,r*r),u=-1,c=be(.5*a-e,-t,r*r),f=Pe(c[0],c[1]),h=o(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(Me)).scale(151.496)};function ke(t,n){if(arguments.length<2&&(n=t),1===n)return e.geoAzimuthalEqualAreaRaw;if(n===1/0)return Ae;function r(r,i){var o=e.geoAzimuthalEqualAreaRaw(r/n,i);return o[0]*=t,o}return r.invert=function(r,i){var o=e.geoAzimuthalEqualAreaRaw.invert(r/t,i);return o[0]*=n,o},r}function Ae(t,e){return[t*a(e)/a(e/=2),2*g(e)]}Ae.invert=function(t,e){var n=2*k(e/2);return[t*a(n/2)/a(n),n]};var Te=function(){var t=2,n=e.geoProjectionMutator(ke),r=n(t);return r.coefficient=function(e){return arguments.length?n(t=+e):t},r.scale(169.529)};function Oe(t){var e=g(t),n=a(t),i=Ie(t);function s(t,o){var s=i(t,o);t=s[0],o=s[1];var u=g(o),l=a(o),c=a(t),f=A(e*u+n*l*c),h=g(f),d=r(h)>m?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=a(r),l=r*u,c=-n*s,f=r*e,h=T(l*l+c*c-f*f),d=o(l*f+c*h,c*f-l*h),p=(r>x?-1:1)*o(t*s,r*a(d)*u+n*g(d)*s);return i.invert(p,d)},s}function Ie(t){var e=g(t),n=a(t);return function(t,r){var i=a(r),s=a(t)*i,u=g(t)*i,l=g(r);return[o(u,s*n-l*e),k(l*n+s*e)]}}var Re=function(){var t=0,n=e.geoProjectionMutator(Oe),r=n(t),i=r.rotate,o=r.stream,a=e.geoCircle();return r.parallel=function(e){if(!arguments.length)return t*E;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*E]),a.center([-e[0],-e[1]]),r):(e=i.call(r),e[1]+=t*E,e)},r.stream=function(t){return t=o(t),t.sphere=function(){t.polygonStart();var e,n=.01,r=a.radius(90-n)().coordinates[0],i=r.length-1,o=-1;t.lineStart();while(++o<i)t.point((e=r[o])[0],e[1]);t.lineEnd(),r=a.radius(90+n)().coordinates[0],i=r.length-1,t.lineStart();while(--o>=0)t.point((e=r[o])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},r.scale(79.4187).parallel(45).clipAngle(179.999)},De=41+48/36+37/3600,Le=Ct(0);function Ne(t){var e=De*P,n=bt(_,e)[0]-bt(-_,e)[0],i=Le(0,e)[1],o=bt(0,e)[1],a=S-o,s=M/t,l=4/M,h=i+a*a*4/M;function d(d,p){var g,v=r(p);if(v>e){var m=f(t-1,c(0,u((d+_)/s)));d+=_*(t-1)/t-m*s,g=bt(d,v),g[0]=g[0]*M/n-M*(t-1)/(2*t)+m*M/t,g[1]=i+4*(g[1]-o)*a/M,p<0&&(g[1]=-g[1])}else g=Le(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+_)/s)));e=(e+_*(t-1)/t-g*s)*n/M;var v=bt.invert(e,.25*(p-i)*M/a+o);return v[0]-=_*(t-1)/t-g*s,d<0&&(v[1]=-v[1]),v}return Le.invert(e,d)},d}function Fe(t){return{type:"Polygon",coordinates:[n.range(-180,180+t/2,t).map((function(t,e){return[t,1&e?89.999999:De]})).concat(n.range(180,-180-t/2,-t).map((function(t,e){return[t,1&e?-89.999999:-De]})))]}}var Be=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 o=r.rotate(),a=i(n),s=(r.rotate([0,0]),i(n));return r.rotate(o),a.sphere=function(){e.geoStream(Fe(180/t),s)},a},r.scale(239.75)};function ze(t){var e,n=1+t,i=g(1/n),s=k(i),u=2*T(_/(e=_+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 m,b=x-h,w=25;do{var j=g(b),S=a(b),M=s+o(j,n-S),E=1+f-2*n*S;b-=m=(b-c*s-n*j+E*M-.5*v*e)/(2*n*j*M)}while(r(m)>y&&--w>0);d=u*T(E),p=i*M/_}else d=u*(t+v),p=i*s/_;return[d*g(p),l-d*a(p)]}return h.invert=function(t,r){var i=t*t+(r-=l)*r,a=(1+f-i/(u*u))/(2*n),h=A(a),d=g(h),p=s+o(d,n-a);return[k(t/T(i))*_/p,k(1-2*(h-c*s-n*d+(1+f-2*n*a)*p)/e)]},h}var Ge=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])},qe=.7109889596207567,Ve=.0528035274542;function Ye(t,e){return e>-qe?(t=J(t,e),t[1]+=Ve,t):at(t,e)}Ye.invert=function(t,e){return e>-qe?J.invert(t,e-Ve):at.invert(t,e)};var He=function(){return e.geoProjection(Ye).rotate([-20,-55]).scale(164.263).center([0,-5.4036])};function We(t,e){return r(e)>qe?(t=J(t,e),t[1]-=e>0?Ve:-Ve,t):at(t,e)}We.invert=function(t,e){return r(e)>qe?J.invert(t,e+(e>0?Ve:-Ve)):at.invert(t,e)};var Ue=function(){return e.geoProjection(We).scale(152.63)};function Xe(t,e){return r(t[0]-e[0])<m&&r(t[1]-e[1])<m}function Ze(t,e){var n,r,i,o=-1,a=t.length,s=t[0],u=[];while(++o<a){n=t[o],r=(n[0]-s[0])/e,i=(n[1]-s[1])/e;for(var l=0;l<e;++l)u.push([s[0]+l*r,s[1]+l*i]);s=n}return u.push(n),u}function $e(t){var e,r,i,o,a,s,u,l=[],c=t[0].length;for(u=0;u<c;++u)e=t[0][u],r=e[0][0],i=e[0][1],o=e[1][1],a=e[2][0],s=e[2][1],l.push(Ze([[r+m,i+m],[r+m,o-m],[a-m,o-m],[a-m,s+m]],30));for(u=t[1].length-1;u>=0;--u)e=t[1][u],r=e[0][0],i=e[0][1],o=e[1][1],a=e[2][0],s=e[2][1],l.push(Ze([[a-m,s-m],[a-m,o+m],[r+m,o+m],[r+m,i-m]],30));return{type:"Polygon",coordinates:[n.merge(l)]}}var Qe=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],o=t(e[1][0],e[0][1])[1],a=t(e[1][0],e[1][1])[1];return o>a&&(n=o,o=a,a=n),[[r,o],[i,a]]}))}));function o(e,r){for(var i=r<0?-1:1,o=n[+(r<0)],a=0,s=o.length-1;a<s&&e>o[a][2][0];++a);var u=t(e-o[a][1][0],r);return u[0]+=t(o[a][1][0],i*r>i*o[a][0][1]?o[a][0][1]:r)[0],u}t.invert&&(o.invert=function(e,r){for(var a=i[+(r<0)],s=n[+(r<0)],u=0,l=a.length;u<l;++u){var c=a[u];if(c[0][0]<=e&&e<c[1][0]&&c[0][1]<=r&&r<c[1][1]){var f=t.invert(e-t(s[u][1][0],0)[0],r);return f[0]+=s[u][1][0],Xe(o(f[0],f[1]),[e,r])?f:null}}});var a=e.geoProjection(o),s=a.stream;return a.stream=function(t){var n=a.rotate(),i=s(t),o=(a.rotate([0,0]),s(t));return a.rotate(n),i.sphere=function(){e.geoStream(r,o)},i},a},Ke=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],Je=function(){return Qe(rt,Ke).scale(160.857)},tn=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],en=function(){return Qe(We,tn).scale(152.63)},nn=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],rn=function(){return Qe(J,nn).scale(169.529)},on=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]],an=function(){return Qe(J,on).scale(169.529).rotate([20,0])},sn=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]],un=function(){return Qe(Ye,sn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},ln=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]],cn=function(){return Qe(at,ln).scale(152.63).rotate([-20,0])};function fn(t,e){return[3/M*t*T(_*_/3-e*e),e]}fn.invert=function(t,e){return[M/3*t/T(_*_/3-e*e),e]};var hn=function(){return e.geoProjection(fn).scale(158.837)};function dn(t){function e(e,n){if(r(r(n)-x)<m)return[0,n<0?-2:2];var i=g(n),o=h((1+i)/(1-i),t/2),s=.5*(o+1/o)+a(e*=t);return[2*g(e)/s,(o-1/o)/s]}return e.invert=function(e,n){var i=r(n);if(r(i-2)<m)return e?null:[0,p(n)*x];if(i>2)return null;e/=2,n/=2;var a=e*e,s=n*n,u=2*n/(1+a+s);return u=h((1+u)/(1-u),1/t),[o(2*e,1-a-s)/t,k((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=_/j;function vn(t,e){return[t*(1+T(a(e)))/2,e/(a(e/2)*a(t/6))]}vn.invert=function(t,e){var n=r(t),i=r(e),o=m,s=x;i<gn?s*=i/gn:o+=6*A(gn/i);for(var u=0;u<25;u++){var l=g(s),c=T(a(s)),f=g(s/2),h=a(s/2),d=g(o/6),p=a(o/6),v=.5*o*(1+c)-n,y=s/(h*p)-i,_=c?-.25*o*l/c:0,b=.5*(1+c),w=(1+.5*s*f/h)/(h*p),j=s/h*(d/6)/(p*p),S=_*j-w*b,M=(v*j-y*b)/S,E=(y*_-v*w)/S;if(s-=M,o-=E,r(M)<m&&r(E)<m)break}return[t<0?-o:o,e<0?-s:s]};var mn=function(){return e.geoProjection(vn).scale(97.2672)};function yn(t,e){var n=t*t,r=e*e;return[t*(.975534+r*(-.0143059*n-.119161+-.0547009*r)),e*(1.00384+n*(.0802894+-.02855*r+199025e-9*n)+r*(.0998909+-.0491032*r))]}yn.invert=function(t,e){var n=p(t)*_,i=e/2,o=50;do{var a=n*n,s=i*i,u=n*i,l=n*(.975534+s*(-.0143059*a-.119161+-.0547009*s))-t,c=i*(1.00384+a*(.0802894+-.02855*s+199025e-9*a)+s*(.0998909+-.0491032*s))-e,f=.975534-s*(.119161+3*a*.0143059+.0547009*s),h=-u*(.238322+.2188036*s+.0286118*a),d=u*(.1605788+7961e-7*a+-.0571*s),g=1.00384+a*(.0802894+199025e-9*a)+s*(3*(.0998909-.02855*a)-.245516*s),v=h*d-g*f,y=(c*h-l*g)/v,x=(l*d-c*f)/v;n-=y,i-=x}while((r(y)>m||r(x)>m)&&--o>0);return o&&[n,i]};var _n=function(){return e.geoProjection(yn).scale(139.98)};function xn(t,e){return[g(t)/a(e),v(e)*a(t)]}xn.invert=function(t,e){var n=t*t,r=e*e,i=r+1,o=t?w*T((i-T(n*n+2*n*(r-1)+i*i))/n+1):1/T(i);return[k(t*o),p(e)*A(o)]};var bn=function(){return e.geoProjection(xn).scale(144.049).clipAngle(89.999)};function wn(t){var e=a(t),n=v(b+t/2);function i(i,o){var a=o-t,s=r(a)<m?i*e:r(s=b+o/2)<m||r(r(s)-x)<m?0:i*a/l(v(s)/n);return[s,a]}return i.invert=function(i,o){var a,s=o+t;return[r(o)<m?i/e:r(a=b+s/2)<m||r(r(a)-x)<m?0:i*l(v(a)/n)/o,s]},i}var jn=function(){return ot(wn).parallel(40).scale(158.837)};function Sn(t,e){return[t,1.25*l(v(b+.4*e))]}Sn.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*_]};var Mn=function(){return e.geoProjection(Sn).scale(108.318)};function En(t){var e=t.length-1;function n(n,r){var i,o=a(r),s=2/(1+o*a(n)),u=s*o*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],y=0,_=0;while(--h>=0)d=t[h],y=p+l*(f=y)-c*_,_=v+l*_+c*f,p=d[0]+l*(f=p)-c*v,v=d[1]+l*v+c*f;y=p+l*(f=y)-c*_,_=v+l*_+c*f,p=l*(f=p)-c*v-n,v=l*v+c*f-s;var x,b,w=y*y+_*_;l-=x=(p*y+v*_)/w,c-=b=(v*y-p*_)/w}while(r(x)+r(b)>m*m&&--u>0);if(u){var j=T(l*l+c*c),S=2*i(.5*j),M=g(S);return[o(l*M,j*a(S)),j?k(c*M/j):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]],kn=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],An=[[.9245,0],[0,0],[.01943,0]],Tn=[[.721316,0],[0,0],[-.00881625,-.00617325]];function On(){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 Rn(){return Nn(kn,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Dn(){return Nn(An,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Ln(){return Nn(Tn,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Nn(t,n){var r=e.geoProjection(En(t)).rotate(n).clipAngle(90),i=e.geoRotation(n),o=r.center;return delete r.rotate,r.center=function(t){return arguments.length?o(i(t)):i.invert(o())},r}var Fn=T(6),Bn=T(7);function zn(t,e){var n=k(7*g(e)/(3*Fn));return[Fn*t*(2*a(2*n/3)-1)/Bn,9*g(n/3)/Bn]}zn.invert=function(t,e){var n=3*k(e*Bn/9);return[t*Bn/(Fn*(2*a(2*n/3)-1)),k(3*g(n)*Fn/7)]};var Gn=function(){return e.geoProjection(zn).scale(164.859)};function qn(t,e){for(var n,i=(1+w)*g(e),o=e,s=0;s<25;s++)if(o-=n=(g(o/2)+g(o)-i)/(.5*a(o/2)+a(o)),r(n)<m)break;return[t*(1+2*a(o)/a(o/2))/(3*j),2*T(3)*g(o/2)/T(2+j)]}qn.invert=function(t,e){var n=e*T(2+j)/(2*T(3)),r=2*k(n);return[3*j*t/(1+2*a(r)/a(r/2)),k((n+g(r))/(1+w))]};var Vn=function(){return e.geoProjection(qn).scale(188.209)};function Yn(t,e){for(var n,i=T(6/(4+_)),o=(1+_/4)*g(e),s=e/2,u=0;u<25;u++)if(s-=n=(s/2+g(s)-o)/(.5+a(s)),r(n)<m)break;return[i*(.5+a(s))*t/1.5,i*s]}Yn.invert=function(t,e){var n=T(6/(4+_)),i=e/n;return r(r(i)-x)<m&&(i=i<0?-x:x),[1.5*t/(n*(.5+a(i))),k((i/2+g(i))/(1+_/4))]};var Hn=function(){return e.geoProjection(Yn).scale(166.518)};function Wn(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)))]}Wn.invert=function(t,e){var n,i=e,o=25;do{var a=i*i,s=a*a;i-=n=(i*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(r(n)>m&&--o>0);return[t/(.8707+(a=i*i)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),i]};var Un=function(){return e.geoProjection(Wn).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,o,a,s=e,u=25;do{i=s*s,o=i*i,s-=n=(s*(1.01183+o*o*(.01926*i-.02625-.00396*o))-e)/(1.01183+o*o*(.21186*i-.23625+-.05148*o))}while(r(n)>y&&--u>0);return i=s*s,o=i*i,a=i*o,[t/(.84719-.13063*i+a*a*(.05494*i-.04515-.02326*o+.00331*a)),s]};var Zn=function(){return e.geoProjection(Xn).scale(175.295)};function $n(t,e){return[t*(1+a(e))/2,2*(e-v(e/2))]}$n.invert=function(t,e){for(var n=e/2,i=0,o=1/0;i<10&&r(o)>m;++i){var s=a(e/2);e-=o=(e-v(e/2)-n)/(1-.5/(s*s))}return[2*t/(1+a(e)),e]};var Qn=function(){return e.geoProjection($n).scale(152.63)},Kn=1.0148,Jn=.23185,tr=-.14499,er=.02406,nr=Kn,rr=5*Jn,ir=7*tr,or=9*er,ar=1.790857183;function sr(t,e){var n=e*e;return[t,e*(Kn+n*n*(Jn+n*(tr+er*n)))]}sr.invert=function(t,e){e>ar?e=ar:e<-ar&&(e=-ar);var n,i=e;do{var o=i*i;i-=n=(i*(Kn+o*o*(Jn+o*(tr+er*o)))-e)/(nr+o*o*(rr+o*(ir+or*o)))}while(r(n)>m);return[t,i]};var ur=function(){return e.geoProjection(sr).scale(139.319)};function lr(t,e){if(r(e)<m)return[t,0];var n=v(e),i=t*g(e);return[g(i)/n,e+(1-a(i))/n]}lr.invert=function(t,e){if(r(e)<m)return[t,0];var n,i=t*t+e*e,o=.5*e,s=10;do{var u=v(o),l=1/a(o),c=i-2*e*o+o*o;o-=n=(u*c+2*(o-e))/(2+c*l*l+2*(o-e)*u)}while(r(n)>m&&--s>0);return u=v(o),[(r(e)<r(o+1/u)?k(t*u):p(t)*(A(r(t*u))+x))/g(o),o]};var cr=function(){return e.geoProjection(lr).scale(103.74)},fr=function(t,e){var n=pr(t[1],t[0]),r=pr(e[1],e[0]),i=vr(n,r),o=gr(n)/gr(r);return dr([1,0,t[0][0],0,1,t[0][1]],dr([o,0,0,0,o,0],dr([a(i),g(i),0,-g(i),a(i),0],[1,0,-e[0][0],0,1,-e[0][1]])))};function hr(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}function dr(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function pr(t,e){return[t[0]-e[0],t[1]-e[1]]}function gr(t){return T(t[0]*t[0]+t[1]*t[1])}function vr(t,e){return o(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}var mr=function(t,n,r){function i(t,e){if(t.edges=br(t.face),e.face){var n=t.shared=xr(t.face,e.face),r=fr(n.map(e.project),n.map(t.project));t.transform=e.transform?dr(e.transform,r):r;for(var o=e.edges,a=0,s=o.length;a<s;++a)_r(n[0],o[a][1])&&_r(n[1],o[a][0])&&(o[a]=t),_r(n[0],o[a][0])&&_r(n[1],o[a][1])&&(o[a]=t);for(o=t.edges,a=0,s=o.length;a<s;++a)_r(n[0],o[a][0])&&_r(n[1],o[a][1])&&(o[a]=e),_r(n[0],o[a][1])&&_r(n[1],o[a][0])&&(o[a]=e)}else t.transform=e.transform;return t.children&&t.children.forEach((function(e){i(e,t)})),t}function o(t,e){var r,i=n(t,e),o=i.project([t*E,e*E]);return(r=i.transform)?[r[0]*o[0]+r[1]*o[1]+r[2],-(r[3]*o[0]+r[4]*o[1]+r[5])]:(o[1]=-o[1],o)}function s(t,e){var n=t.project.invert,r=t.transform,i=e;if(r&&(r=hr(r),i=[r[0]*i[0]+r[1]*i[1]+r[2],r[3]*i[0]+r[4]*i[1]+r[5]]),n&&t===u(o=n(i)))return o;for(var o,a=t.children,l=0,c=a&&a.length;l<c;++l)if(o=s(a[l],e))return o}function u(t){return n(t[0]*P,t[1]*P)}r=null==r?-_/6:r,i(t,{transform:[a(r),g(r),0,-g(r),a(r),0]}),wr(t)&&(o.invert=function(e,n){var r=s(t,[e,-n]);return r&&(r[0]*=P,r[1]*=P,r)});var l=e.geoProjection(o),c=l.stream;return l.stream=function(e){var n=l.rotate(),r=c(e),i=(l.rotate([0,0]),c(e));return l.rotate(n),r.sphere=function(){i.polygonStart(),i.lineStart(),yr(i,t),i.lineEnd(),i.polygonEnd()},r},l};function yr(t,n,i){var o,a,s=n.edges,u=s.length,l={type:"MultiPoint",coordinates:n.face},c=n.face.filter((function(t){return 90!==r(t[1])})),f=e.geoBounds({type:"MultiPoint",coordinates:c}),h=!1,d=-1,p=f[1][0]-f[0][0],g=180===p||360===p?[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2]:e.geoCentroid(l);if(i)while(++d<u)if(s[d]===i)break;++d;for(var v=0;v<u;++v)a=s[(v+d)%u],Array.isArray(a)?(h||(t.point((o=e.geoInterpolate(a[0],g)(m))[0],o[1]),h=!0),t.point((o=e.geoInterpolate(a[1],g)(m))[0],o[1])):(h=!1,a!==i&&yr(t,a,n))}function _r(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function xr(t,e){for(var n,r,i=t.length,o=null,a=0;a<i;++a){n=t[a];for(var s=e.length;--s>=0;)if(r=e[s],n[0]===r[0]&&n[1]===r[1]){if(o)return[o,n];o=n}}}function br(t){for(var e=t.length,n=[],r=t[e-1],i=0;i<e;++i)n.push([r,r=t[i]]);return n}function wr(t){return t.project.invert||t.children&&t.children.some(wr)}var jr=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Sr=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(t){return t.map((function(t){return jr[t]}))})),Mr=function(t){t=t||function(t){var n=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=Sr.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])})),mr(n[0],(function(t,e){return n[t<-_/2?e<0?6:4:t<0?e<0?2:0:t<_/2?e<0?3:1:e<0?7:5]})).scale(101.858).center([0,45])},Er=2/T(3);function Pr(t,e){var n=bt(t,e);return[n[0]*Er,n[1]]}Pr.invert=function(t,e){return bt.invert(t/Er,e)};var Cr=function(t){t=t||function(t){var n=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoProjection(Pr).translate([0,0]).scale(1).rotate(n[1]>0?[-n[0],0]:[180-n[0],180])};var n=Sr.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])})),mr(n[0],(function(t,e){return n[t<-_/2?e<0?6:4:t<0?e<0?2:0:t<_/2?e<0?3:1:e<0?7:5]})).scale(121.906).center([0,48.5904])},kr=function(t){t=t||function(t){var n=6===t.length?e.geoCentroid({type:"MultiPoint",coordinates:t}):t[0];return e.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=Sr.map((function(t){for(var e,n=t.map(Ir),r=n.length,i=n[r-1],o=[],a=0;a<r;++a)e=n[a],o.push(Or([.9486832980505138*i[0]+.31622776601683794*e[0],.9486832980505138*i[1]+.31622776601683794*e[1],.9486832980505138*i[2]+.31622776601683794*e[2]]),Or([.9486832980505138*e[0]+.31622776601683794*i[0],.9486832980505138*e[1]+.31622776601683794*i[1],.9486832980505138*e[2]+.31622776601683794*i[2]])),i=e;return o})),r=[],i=[-1,0,0,1,0,1,4,5];n.forEach((function(t,e){for(var o=Sr[e],a=o.length,s=r[e]=[],u=0;u<a;++u)n.push([o[u],t[(2*u+2)%(2*a)],t[(2*u+1)%(2*a)]]),i.push(e),s.push(Tr(Ir(t[(2*u+2)%(2*a)]),Ir(t[(2*u+1)%(2*a)])))}));var o=n.map((function(e){return{project:t(e),face:e}}));function s(t,e){var n=a(e),i=[n*a(t),n*g(t),g(e)],s=t<-_/2?e<0?6:4:t<0?e<0?2:0:t<_/2?e<0?3:1:e<0?7:5,u=r[s];return o[Ar(u[0],i)<0?8+3*s:Ar(u[1],i)<0?8+3*s+1:Ar(u[2],i)<0?8+3*s+2:s]}return i.forEach((function(t,e){var n=o[t];n&&(n.children||(n.children=[])).push(o[e])})),mr(o[0],s).scale(110.625).center([0,45])};function Ar(t,e){for(var n=0,r=t.length,i=0;n<r;++n)i+=t[n]*e[n];return i}function Tr(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 Or(t){return[o(t[1],t[0])*E,k(c(-1,f(1,t[2])))*E]}function Ir(t){var e=t[0]*P,n=t[1]*P,r=a(n);return[r*a(e),r*g(e),g(n)]}var Rr=function(){},Dr=function(t){if((e=t.length)<4)return!1;var e,n=0,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];while(++n<e)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r<=0},Lr=function(t,e){for(var n=e[0],r=e[1],i=!1,o=0,a=t.length,s=a-1;o<a;s=o++){var u=t[o],l=u[0],c=u[1],f=t[s],h=f[0],d=f[1];c>r^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=Br;break;case"FeatureCollection":n=Fr;break;default:n=Gr;break}return n(t,r)};function Fr(t,e){return{type:"FeatureCollection",features:t.features.map((function(t){return Br(t,e)}))}}function Br(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:Gr(t.geometry,e)}}function zr(t,e){return{type:"GeometryCollection",geometries:t.geometries.map((function(t){return Gr(t,e)}))}}function Gr(t,n){if(!t)return null;if("GeometryCollection"===t.type)return zr(t,n);var r;switch(t.type){case"Point":r=Yr;break;case"MultiPoint":r=Yr;break;case"LineString":r=Hr;break;case"MultiLineString":r=Hr;break;case"Polygon":r=Wr;break;case"MultiPolygon":r=Wr;break;case"Sphere":r=Wr;break;default:return null}return e.geoStream(t,n(r)),r.result()}var qr=[],Vr=[],Yr={point:function(t,e){qr.push([t,e])},result:function(){var t=qr.length?qr.length<2?{type:"Point",coordinates:qr[0]}:{type:"MultiPoint",coordinates:qr}:null;return qr=[],t}},Hr={lineStart:Rr,point:function(t,e){qr.push([t,e])},lineEnd:function(){qr.length&&(Vr.push(qr),qr=[])},result:function(){var t=Vr.length?Vr.length<2?{type:"LineString",coordinates:Vr[0]}:{type:"MultiLineString",coordinates:Vr}:null;return Vr=[],t}},Wr={polygonStart:Rr,lineStart:Rr,point:function(t,e){qr.push([t,e])},lineEnd:function(){var t=qr.length;if(t){do{qr.push(qr[0].slice())}while(++t<4);Vr.push(qr),qr=[]}},polygonEnd:Rr,result:function(){if(!Vr.length)return null;var t=[],e=[];return Vr.forEach((function(n){Dr(n)?t.push([n]):e.push(n)})),e.forEach((function(e){var n=e[0];t.some((function(t){if(Lr(t[0],n))return t.push(e),!0}))||t.push([e])})),Vr=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}},Ur=function(t){var n=t(x,0)[0]-t(-x,0)[0];function i(e,i){var o=r(e)<x,a=t(o?e:e>0?e-_:e+_,i),s=(a[0]-a[1])*w,u=(a[0]+a[1])*w;if(o)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 o=(e+i)*w,a=(i-e)*w,s=r(o)<.5*n&&r(a)<.5*n;if(!s){var u=n*w,l=o>0^a>0?-1:1,c=-l*e+(a>0?1:-1)*u,f=-l*i+(o>0?1:-1)*u;o=(-c-f)*w,a=(c-f)*w}var h=t.invert(o,a);return s||(h[0]+=o>0?_:-_),h}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)},Xr=function(){return Ur(me).scale(176.423)},Zr=function(){return Ur(Me).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<n)i[r]=t[r],++r;return i}function r(t){return t.map(n)}function i(t){return t.map(r)}function o(t){if(null==t)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(o)};break;case"Point":e={type:"Point",coordinates:n(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:r(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:i(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(i)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function a(t){var e={type:"Feature",properties:t.properties,geometry:o(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case"Feature":return a(t);case"FeatureCollection":var s={type:"FeatureCollection",features:t.features.map(a)};return null!=t.bbox&&(s.bbox=t.bbox),s;default:return o(t)}return t};function Qr(t){var e=g(t);function n(n,r){var o=e?v(n*e/2)/e:n/2;if(!r)return[2*o,-t];var s=2*i(o*g(r)),u=1/v(r);return[g(s)*u,r+(1-a(s))*u-t]}return n.invert=function(n,o){if(r(o+=t)<m)return[e?2*i(e*n/2)/e:n,0];var s,u=n*n+o*o,l=0,c=10;do{var f=v(l),h=1/a(l),d=u-2*o*l+l*l;l-=s=(f*d+2*(l-o))/(2+d*h*h+2*(l-o)*f)}while(r(s)>m&&--c>0);var p=n*(f=v(l)),y=v(r(o)<r(l+1/f)?.5*k(p):.5*A(p)+_/4)/g(l);return[e?2*i(e*y)/e:2*y,l]},n}var Kr=function(){return ot(Qr).scale(131.215)},Jr=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function ti(t,e){var n,i=f(18,36*r(e)/_),o=u(i),a=i-o,s=(n=Jr[o])[0],l=n[1],c=(n=Jr[++o])[0],h=n[1],d=(n=Jr[f(19,++o)])[0],p=n[1];return[t*(c+a*(d-s)/2+a*a*(d-2*c+s)/2),(e>0?x:-x)*(h+a*(p-l)/2+a*a*(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,o=f(18,r(i/5)),a=c(0,u(o));do{var s=Jr[a][1],l=Jr[a+1][1],h=Jr[f(19,a+2)][1],d=h-s,p=h-2*l+s,g=2*(r(n)-l)/d,v=p/d,m=g*(1-v*g*(1-2*v*g));if(m>=0||1===a){i=(e>=0?5:-5)*(m+o);var _,b=50;do{o=f(18,r(i)/5),a=u(o),m=o-a,s=Jr[a][1],l=Jr[a+1][1],h=Jr[f(19,a+2)][1],i-=(_=(e>=0?x:-x)*(l+m*(h-s)/2+m*m*(h-2*l+s)/2)-e)*E}while(r(_)>y&&--b>0);break}}while(--a>=0);var w=Jr[a][0],j=Jr[a+1][0],S=Jr[f(19,a+2)][0];return[t/(j+m*(S-w)/2+m*m*(S-2*j+w)/2),i*P]};var ei=function(){return e.geoProjection(ti).scale(152.63)};function ni(t){function e(e,n){var r=a(n),i=(t-1)/(t-r*a(e));return[i*r*g(e),i*g(n)]}return e.invert=function(e,n){var r=e*e+n*n,i=T(r),a=(t-T(1-r*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[o(e*a,i*T(1-a*a)),i?k(n*a/i):0]},e}function ri(t,e){var n=ni(t);if(!e)return n;var r=a(e),i=g(e);function o(e,o){var a=n(e,o),s=a[1],u=s*i/(t-1)+r;return[a[0]*r/u,s/u]}return o.invert=function(e,o){var a=(t-1)/(t-1-o*i);return n.invert(a*e,a*o*r)},o}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*E},i.scale(432.147).clipAngle(A(1/t)*E-1e-6)},oi=1e-4,ai=1e4,si=-180,ui=si+oi,li=180,ci=li-oi,fi=-90,hi=fi+oi,di=90,pi=di-oi;function gi(t){return t.length>0}function vi(t){return Math.floor(t*ai)/ai}function mi(t){return t===fi||t===di?[0,t]:[si,vi(t)]}function yi(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 _i(t){return t.map(yi)}function xi(t,e,n){for(var r=0,i=t.length;r<i;++r){var o=t[r].slice();n.push({index:-1,polygon:e,ring:o});for(var a=0,s=o.length;a<s;++a){var u=o[a],l=u[0],c=u[1];if(l<=ui||l>=ci||c<=hi||c>=pi){o[a]=yi(u);for(var f=a+1;f<s;++f){var h=o[f],d=h[0],p=h[1];if(d>ui&&d<ci&&p>hi&&p<pi)break}if(f===a+1)continue;if(a){var g={index:-1,polygon:e,ring:o.slice(0,a+1)};g.ring[g.ring.length-1]=mi(c),n[n.length-1]=g}else n.pop();if(f>=s)break;n.push({index:-1,polygon:e,ring:o=o.slice(f-1)}),o[0]=mi(o[0][1]),a=-1,s=o.length}}}}function bi(t){var e,n,r,i,o,a,s=t.length,u={},l={};for(e=0;e<s;++e)n=t[e],r=n.ring[0],o=n.ring[n.ring.length-1],r[0]!==o[0]||r[1]!==o[1]?(n.index=e,u[r]=l[o]=n):(n.polygon.push(n.ring),t[e]=null);for(e=0;e<s;++e)if(n=t[e],n){if(r=n.ring[0],o=n.ring[n.ring.length-1],i=l[r],a=u[o],delete u[r],delete l[o],r[0]===o[0]&&r[1]===o[1]){n.polygon.push(n.ring);continue}i?(delete l[r],delete u[i.ring[0]],i.ring.pop(),t[i.index]=null,n={index:-1,polygon:i.polygon,ring:i.ring.concat(n.ring)},i===a?n.polygon.push(n.ring):(n.index=s++,t.push(u[n.ring[0]]=l[n.ring[n.ring.length-1]]=n))):a?(delete u[o],delete l[a.ring[a.ring.length-1]],n.ring.pop(),n={index:s++,polygon:a.polygon,ring:n.ring.concat(a.ring)},t[a.index]=null,t.push(u[n.ring[0]]=l[n.ring[n.ring.length-1]]=n)):(n.ring.push(n.ring[0]),n.polygon.push(n.ring))}}function wi(t){var e={type:"Feature",geometry:ji(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function ji(t){if(null==t)return t;var e,n,r,i;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(ji)};break;case"Point":e={type:"Point",coordinates:yi(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:_i(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(_i)};break;case"Polygon":var o=[];xi(t.coordinates,o,n=[]),bi(n),e={type:"Polygon",coordinates:o};break;case"MultiPolygon":n=[],r=-1,i=t.coordinates.length;var a=new Array(i);while(++r<i)xi(t.coordinates[r],a[r]=[],n);bi(n),e={type:"MultiPolygon",coordinates:a.filter(gi)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}var Si=function(t){if(null==t)return t;switch(t.type){case"Feature":return wi(t);case"FeatureCollection":var e={type:"FeatureCollection",features:t.features.map(wi)};return null!=t.bbox&&(e.bbox=t.bbox),e;default:return ji(t)}};function Mi(t,e){var n=v(e/2),r=g(b*n);return[t*(.74482-.34588*r*r),1.70711*n]}Mi.invert=function(t,e){var n=e/1.70711,r=g(b*n);return[t/(.74482-.34588*r*r),2*i(n)]};var Ei=function(){return e.geoProjection(Mi).scale(146.153)},Pi=function(t,n,r){var i=e.geoInterpolate(n,r),o=i(.5),a=e.geoRotation([-o[0],-o[1]])(n),s=i.distance/2,u=-k(g(a[1]*P)/g(s)),l=[-o[0],-o[1],-(a[0]>0?_-u:u)*E],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=a(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 ki(){return Ai([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Ai(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,o){var s=A(a(o)*a(e-n)),u=A(a(o)*a(e-r)),l=o<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=a(T(c+(i=t+n)*i)),h=a(T(c+(i=t+r)*i));return[o(l=f-h,i=(f+h)*s),(e<0?-1:1)*A(T(i*i+l*l)*u)]},l}function Oi(){return Ii([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ii(t,e){return Pi(Ti,t,e)}function Ri(t,e){if(r(e)<m)return[t,0];var n=r(e/x),i=k(n);if(r(t)<m||r(r(e)-x)<m)return[0,p(e)*_*v(i/2)];var o=a(i),s=r(_/t-t/_)/2,u=s*s,l=o/(n+o-1),c=l*(2/n-1),f=c*c,h=f+u,d=l-f,g=u+l;return[p(t)*_*(s*d+T(u*d*d-h*(l*l-f)))/h,p(e)*_*(c*g-s*T((u+1)*h-g*g))/h]}Ri.invert=function(t,e){if(r(e)<m)return[t,0];if(r(t)<m)return[0,x*g(2*i(e/_))];var n=(t/=_)*t,o=(e/=_)*e,s=n+o,u=s*s,l=-r(e)*(1+s),c=l-2*o+n,f=-2*l+1+2*o+u,h=o/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),y=A(3*h/(d*v))/3;return[_*(s-1+T(1+2*(n-o)+u))/(2*t),p(e)*_*(-v*a(y+_/3)-c/(3*f))]};var Di=function(){return e.geoProjection(Ri).scale(79.4183)};function Li(t,e){if(r(e)<m)return[t,0];var n=r(e/x),i=k(n);if(r(t)<m||r(r(e)-x)<m)return[0,p(e)*_*v(i/2)];var o=a(i),s=r(_/t-t/_)/2,u=s*s,l=o*(T(1+u)-s*o)/(1+u*n*n);return[p(t)*_*l,p(e)*_*T(1-l*(2*s+l))]}Li.invert=function(t,e){if(!t)return[0,x*g(2*i(e/_))];var n=r(t/_),a=(1-n*n-(e/=_)*e)/(2*n),s=a*a,u=T(s+1);return[p(t)*_*(u-a),p(e)*x*g(2*o(T((1-2*a*n)*(a+u)-n),T(u+a+n)))]};var Ni=function(){return e.geoProjection(Li).scale(79.4183)};function Fi(t,e){if(r(e)<m)return[t,0];var n=e/x,i=k(n);if(r(t)<m||r(r(e)-x)<m)return[0,_*v(i/2)];var o=(_/t-t/_)/2,s=n/(1+a(i));return[_*(p(t)*T(o*o+1-s*s)-o),_*s]}Fi.invert=function(t,e){if(!e)return[t,0];var n=e/_,r=(_*_*(1-n*n)-t*t)/(2*_*t);return[t?_*(p(t)*T(r*r+1)-r):0,x*g(2*i(n))]};var Bi=function(){return e.geoProjection(Fi).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,o=i*i,a=(8*i-o*(o+2)-5)/(2*o*(i-1)),s=a*a,u=i*a,l=o+s+2*u,c=i+3*a,f=t/x,h=f+1/f,d=p(r(t)-x)*T(h*h-4),g=d*d,v=l*(o+s*g-1)+(1-o)*(o*(c*c+4*s)+12*u*s+4*s*s),m=(d*(l+s-1)+2*T(v))/(4*l+g);return[p(t)*x*m,p(e)*x*T(1+d*r(m)-m*m)]}zi.invert=function(t,e){var n;if(!t||!e)return[t,e];e/=_;var i=p(t)*t/x,o=(i*i-1+4*e*e)/r(i),a=o*o,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,y=s+3*c,b=v*(l+h*a-1)+(1-l)*(l*(y*y+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-a+(8*l-8-2*a)*f)+d*(12*l-8+(10*l-10-a)*f)),j=T(b),S=o*(v+h-1)+2*j-i*(4*v+a),M=o*(2*c*f+2*g*(1+f))+w/j-8*g*(o*(-1+h+v)+2*j)*(1+f)/(a+4*v);s-=n=S/M}while(n>m&&--u>0);return[p(t)*(T(o*o+4)+o)*_/4,x*s]};var Gi=function(){return e.geoProjection(zi).scale(127.16)},qi=4*_+3*T(3),Vi=2*T(2*_*T(3)/qi),Yi=K(Vi*T(3)/_,Vi,qi/6),Hi=function(){return e.geoProjection(Yi).scale(176.84)};function Wi(t,e){return[t*T(1-3*e*e/(_*_)),e]}Wi.invert=function(t,e){return[t/T(1-3*e*e/(_*_)),e]};var Ui=function(){return e.geoProjection(Wi).scale(152.63)};function Xi(t,e){var n=.90631*g(e),r=T(1-n*n),i=T(2/(1+r*a(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),a=2*k(i/2);return[3*o(t*v(a),2.66723*i),i&&k(e*g(a)/(1.24104*.90631*i))]};var Zi=function(){return e.geoProjection(Xi).scale(172.632)};function $i(t,e){var n=a(e),r=a(t)*n,i=1-r,s=a(t=o(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,a=t*n-e*r,s=T(a*a+i*i);return[o(r*i,s*(1+n)),s?-k(r*a/s):0]};var Qi=function(){return e.geoProjection($i).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)};function Ki(t,e){var n=B(t,e);return[(n[0]+t/x)/2,(n[1]+e)/2]}Ki.invert=function(t,e){var n=t,i=e,o=25;do{var s,u=a(i),l=g(i),c=g(2*i),f=l*l,h=u*u,d=g(n),p=a(n/2),v=g(n/2),y=v*v,_=1-h*p*p,b=_?A(u*p)*T(s=1/_):s=0,w=.5*(2*b*u*v+n/x)-t,j=.5*(b*l+i)-e,S=.5*s*(h*y+b*u*p*f)+.5/x,M=s*(d*c/4-b*l*v),E=.125*s*(c*v-b*l*h*d),P=.5*s*(f*p+b*y*u)+.5,C=M*E-P*S,k=(j*M-w*P)/C,O=(w*E-j*S)/C;n-=k,i-=O}while((r(k)>m||r(O)>m)&&--o>0);return[n,i]};var Ji=function(){return e.geoProjection(Ki).scale(158.837)};t.geoAiry=F,t.geoAiryRaw=N,t.geoAitoff=z,t.geoAitoffRaw=B,t.geoArmadillo=q,t.geoArmadilloRaw=G,t.geoAugust=Y,t.geoAugustRaw=V,t.geoBaker=X,t.geoBakerRaw=U,t.geoBerghaus=$,t.geoBerghausRaw=Z,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=mt,t.geoChamberlinAfrica=_t,t.geoCollignon=wt,t.geoCollignonRaw=bt,t.geoCraig=St,t.geoCraigRaw=jt,t.geoCraster=Pt,t.geoCrasterRaw=Et,t.geoCylindricalEqualArea=kt,t.geoCylindricalEqualAreaRaw=Ct,t.geoCylindricalStereographic=Tt,t.geoCylindricalStereographicRaw=At,t.geoEckert1=It,t.geoEckert1Raw=Ot,t.geoEckert2=Dt,t.geoEckert2Raw=Rt,t.geoEckert3=Nt,t.geoEckert3Raw=Lt,t.geoEckert4=Bt,t.geoEckert4Raw=Ft,t.geoEckert5=Gt,t.geoEckert5Raw=zt,t.geoEckert6=Vt,t.geoEckert6Raw=qt,t.geoEisenlohr=Wt,t.geoEisenlohrRaw=Ht,t.geoFahey=Zt,t.geoFaheyRaw=Xt,t.geoFoucaut=Qt,t.geoFoucautRaw=$t,t.geoGilbert=te,t.geoGingery=ie,t.geoGingeryRaw=ee,t.geoGinzburg4=se,t.geoGinzburg4Raw=ae,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=me,t.geoGuyou=Ce,t.geoGuyouRaw=Me,t.geoHammer=Te,t.geoHammerRaw=ke,t.geoHammerRetroazimuthal=Re,t.geoHammerRetroazimuthalRaw=Oe,t.geoHealpix=Be,t.geoHealpixRaw=Ne,t.geoHill=Ge,t.geoHillRaw=ze,t.geoHomolosine=Ue,t.geoHomolosineRaw=We,t.geoInterrupt=Qe,t.geoInterruptedBoggs=Je,t.geoInterruptedHomolosine=en,t.geoInterruptedMollweide=rn,t.geoInterruptedMollweideHemispheres=an,t.geoInterruptedSinuMollweide=un,t.geoInterruptedSinusoidal=cn,t.geoKavrayskiy7=hn,t.geoKavrayskiy7Raw=fn,t.geoLagrange=pn,t.geoLagrangeRaw=dn,t.geoLarrivee=mn,t.geoLarriveeRaw=vn,t.geoLaskowski=_n,t.geoLaskowskiRaw=yn,t.geoLittrow=bn,t.geoLittrowRaw=xn,t.geoLoximuthal=jn,t.geoLoximuthalRaw=wn,t.geoMiller=Mn,t.geoMillerRaw=Sn,t.geoModifiedStereographic=Nn,t.geoModifiedStereographicRaw=En,t.geoModifiedStereographicAlaska=On,t.geoModifiedStereographicGs48=In,t.geoModifiedStereographicGs50=Rn,t.geoModifiedStereographicMiller=Dn,t.geoModifiedStereographicLee=Ln,t.geoMollweide=tt,t.geoMollweideRaw=J,t.geoMtFlatPolarParabolic=Gn,t.geoMtFlatPolarParabolicRaw=zn,t.geoMtFlatPolarQuartic=Vn,t.geoMtFlatPolarQuarticRaw=qn,t.geoMtFlatPolarSinusoidal=Hn,t.geoMtFlatPolarSinusoidalRaw=Yn,t.geoNaturalEarth=Un,t.geoNaturalEarthRaw=Wn,t.geoNaturalEarth2=Zn,t.geoNaturalEarth2Raw=Xn,t.geoNellHammer=Qn,t.geoNellHammerRaw=$n,t.geoPatterson=ur,t.geoPattersonRaw=sr,t.geoPolyconic=cr,t.geoPolyconicRaw=lr,t.geoPolyhedral=mr,t.geoPolyhedralButterfly=Mr,t.geoPolyhedralCollignon=Cr,t.geoPolyhedralWaterman=kr,t.geoProject=Nr,t.geoGringortenQuincuncial=Xr,t.geoPeirceQuincuncial=Zr,t.geoPierceQuincuncial=Zr,t.geoQuantize=$r,t.geoQuincuncial=Ur,t.geoRectangularPolyconic=Kr,t.geoRectangularPolyconicRaw=Qr,t.geoRobinson=ei,t.geoRobinsonRaw=ti,t.geoSatellite=ii,t.geoSatelliteRaw=ri,t.geoSinuMollweide=He,t.geoSinuMollweideRaw=Ye,t.geoSinusoidal=st,t.geoSinusoidalRaw=at,t.geoStitch=Si,t.geoTimes=Ei,t.geoTimesRaw=Mi,t.geoTwoPointAzimuthal=Ai,t.geoTwoPointAzimuthalRaw=Ci,t.geoTwoPointAzimuthalUsa=ki,t.geoTwoPointEquidistant=Ii,t.geoTwoPointEquidistantRaw=Ti,t.geoTwoPointEquidistantUsa=Oi,t.geoVanDerGrinten=Di,t.geoVanDerGrintenRaw=Ri,t.geoVanDerGrinten2=Ni,t.geoVanDerGrinten2Raw=Li,t.geoVanDerGrinten3=Bi,t.geoVanDerGrinten3Raw=Fi,t.geoVanDerGrinten4=Gi,t.geoVanDerGrinten4Raw=zi,t.geoWagner4=Hi,t.geoWagner4Raw=Yi,t.geoWagner6=Ui,t.geoWagner6Raw=Wi,t.geoWagner7=Zi,t.geoWagner7Raw=Xi,t.geoWiechel=Qi,t.geoWiechelRaw=$i,t.geoWinkel3=Ji,t.geoWinkel3Raw=Ki,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){o(i,t,this.t),o(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 o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var a=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,m=Math.cos,y=Math.ceil,_=Math.exp,x=Math.log,b=Math.pow,w=Math.sin,j=Math.sign||function(t){return t>0?1:t<0?-1:0},S=Math.sqrt,M=Math.tan;function E(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 k(){}function A(t,e){t&&O.hasOwnProperty(t.type)&&O[t.type](t,e)}var T={Feature:function(t,e){A(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,r=-1,i=n.length;while(++r<i)A(n[r].geometry,e)}},O={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){I(t.coordinates,e,0)},MultiLineString:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)I(n[r],e,0)},Polygon:function(t,e){R(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)R(n[r],e)},GeometryCollection:function(t,e){var n=t.geometries,r=-1,i=n.length;while(++r<i)A(n[r],e)}};function I(t,e,n){var r,i=-1,o=t.length-n;e.lineStart();while(++i<o)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function R(t,e){var n=-1,r=t.length;e.polygonStart();while(++n<r)I(t[n],e,1);e.polygonEnd()}function D(t,e){t&&T.hasOwnProperty(t.type)?T[t.type](t,e):A(t,e)}var L,N,F,B,z,G=n(),q=n(),V={point:k,lineStart:k,lineEnd:k,polygonStart:function(){G.reset(),V.lineStart=Y,V.lineEnd=H},polygonEnd:function(){var t=+G;q.add(t<0?f+t:t),this.lineStart=this.lineEnd=this.point=k},sphere:function(){q.add(f)}};function Y(){V.point=W}function H(){U(L,N)}function W(t,e){V.point=U,L=t,N=e,t*=d,e*=d,F=t,B=m(e=e/2+c),z=w(e)}function U(t,e){t*=d,e*=d,e=e/2+c;var n=t-F,r=n>=0?1:-1,i=r*n,o=m(e),a=w(e),s=z*a,u=B*o+s*m(i),l=s*r*w(i);G.add(v(l,u)),F=t,B=o,z=a}function X(t){return q.reset(),D(t,V),2*q}function Z(t){return[v(t[1],t[0]),P(t[2])]}function $(t){var e=t[0],n=t[1],r=m(n);return[r*m(e),r*w(e),w(n)]}function Q(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function K(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=S(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,ot,at,st,ut,lt,ct,ft,ht,dt,pt,gt,vt,mt,yt,_t,xt,bt,wt,jt,St,Mt,Et,Pt,Ct=n(),kt={point:At,lineStart:Ot,lineEnd:It,polygonStart:function(){kt.point=Rt,kt.lineStart=Dt,kt.lineEnd=Lt,Ct.reset(),V.polygonStart()},polygonEnd:function(){V.polygonEnd(),kt.point=At,kt.lineStart=Ot,kt.lineEnd=It,G<0?(nt=-(it=180),rt=-(ot=90)):Ct>a?ot=90:Ct<-a&&(rt=-90),ft[0]=nt,ft[1]=it},sphere:function(){nt=-(it=180),rt=-(ot=90)}};function At(t,e){ct.push(ft=[nt=t,it=t]),e<rt&&(rt=e),e>ot&&(ot=e)}function Tt(t,e){var n=$([t*d,e*d]);if(lt){var r=K(lt,n),i=[r[1],-r[0],0],o=K(i,r);et(o),o=Z(o);var a,s=t-at,u=s>0?1:-1,l=o[0]*h*u,c=p(s)>180;c^(u*at<l&&l<u*t)?(a=o[1]*h,a>ot&&(ot=a)):(l=(l+360)%360-180,c^(u*at<l&&l<u*t)?(a=-o[1]*h,a<rt&&(rt=a)):(e<rt&&(rt=e),e>ot&&(ot=e))),c?t<at?Nt(nt,t)>Nt(nt,it)&&(it=t):Nt(t,it)>Nt(nt,it)&&(nt=t):it>=nt?(t<nt&&(nt=t),t>it&&(it=t)):t>at?Nt(nt,t)>Nt(nt,it)&&(it=t):Nt(t,it)>Nt(nt,it)&&(nt=t)}else ct.push(ft=[nt=t,it=t]);e<rt&&(rt=e),e>ot&&(ot=e),lt=n,at=t}function Ot(){kt.point=Tt}function It(){ft[0]=nt,ft[1]=it,kt.point=At,lt=null}function Rt(t,e){if(lt){var n=t-at;Ct.add(p(n)>180?n+(n>0?360:-360):n)}else st=t,ut=e;V.point(t,e),Tt(t,e)}function Dt(){V.lineStart()}function Lt(){Rt(st,ut),V.lineEnd(),p(Ct)>a&&(nt=-(it=180)),ft[0]=nt,ft[1]=it,lt=null}function Nt(t,e){return(e-=t)<0?e+360:e}function Ft(t,e){return t[0]-e[0]}function Bt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function zt(t){var e,n,r,i,o,a,s;if(ot=it=-(nt=rt=1/0),ct=[],D(t,kt),n=ct.length){for(ct.sort(Ft),e=1,r=ct[0],o=[r];e<n;++e)i=ct[e],Bt(r,i[0])||Bt(r,i[1])?(Nt(r[0],i[1])>Nt(r[0],r[1])&&(r[1]=i[1]),Nt(i[0],r[1])>Nt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=o.length-1,e=0,r=o[n];e<=n;r=i,++e)i=o[e],(s=Nt(r[1],i[0]))>a&&(a=s,nt=i[0],it=r[1])}return ct=ft=null,nt===1/0||rt===1/0?[[NaN,NaN],[NaN,NaN]]:[[nt,rt],[it,ot]]}var Gt={sphere:k,point:qt,lineStart:Yt,lineEnd:Ut,polygonStart:function(){Gt.lineStart=Xt,Gt.lineEnd=Zt},polygonEnd:function(){Gt.lineStart=Yt,Gt.lineEnd=Ut}};function qt(t,e){t*=d,e*=d;var n=m(e);Vt(n*m(t),n*w(t),w(e))}function Vt(t,e,n){++ht,pt+=(t-pt)/ht,gt+=(e-gt)/ht,vt+=(n-vt)/ht}function Yt(){Gt.point=Ht}function Ht(t,e){t*=d,e*=d;var n=m(e);Mt=n*m(t),Et=n*w(t),Pt=w(e),Gt.point=Wt,Vt(Mt,Et,Pt)}function Wt(t,e){t*=d,e*=d;var n=m(e),r=n*m(t),i=n*w(t),o=w(e),a=v(S((a=Et*o-Pt*i)*a+(a=Pt*r-Mt*o)*a+(a=Mt*i-Et*r)*a),Mt*r+Et*i+Pt*o);dt+=a,mt+=a*(Mt+(Mt=r)),yt+=a*(Et+(Et=i)),_t+=a*(Pt+(Pt=o)),Vt(Mt,Et,Pt)}function Ut(){Gt.point=qt}function Xt(){Gt.point=$t}function Zt(){Qt(jt,St),Gt.point=qt}function $t(t,e){jt=t,St=e,t*=d,e*=d,Gt.point=Qt;var n=m(e);Mt=n*m(t),Et=n*w(t),Pt=w(e),Vt(Mt,Et,Pt)}function Qt(t,e){t*=d,e*=d;var n=m(e),r=n*m(t),i=n*w(t),o=w(e),a=Et*o-Pt*i,s=Pt*r-Mt*o,u=Mt*i-Et*r,l=S(a*a+s*s+u*u),c=P(l),f=l&&-c/l;xt+=f*a,bt+=f*s,wt+=f*u,dt+=c,mt+=c*(Mt+(Mt=r)),yt+=c*(Et+(Et=i)),_t+=c*(Pt+(Pt=o)),Vt(Mt,Et,Pt)}function Kt(t){ht=dt=pt=gt=vt=mt=yt=_t=xt=bt=wt=0,D(t,Gt);var e=xt,n=bt,r=wt,i=e*e+n*n+r*r;return i<s&&(e=mt,n=yt,r=_t,dt<a&&(e=pt,n=gt,r=vt),i=e*e+n*n+r*r,i<s)?[NaN,NaN]:[v(n,e)*h,P(r/S(i))*h]}function Jt(t){return function(){return t}}function te(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return n=e.invert(n,r),n&&t.invert(n[0],n[1])}),n}function ee(t,e){return[p(t)>u?t+Math.round(-t/f)*f:t,e]}function ne(t,e,n){return(t%=f)?e||n?te(ie(t),oe(e,n)):ie(t):e||n?oe(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 oe(t,e){var n=m(t),r=w(t),i=m(e),o=w(e);function a(t,e){var a=m(e),s=m(t)*a,u=w(t)*a,l=w(e),c=l*n+s*r;return[v(u*i-c*o,s*n-l*r),P(c*i+u*o)]}return a.invert=function(t,e){var a=m(e),s=m(t)*a,u=w(t)*a,l=w(e),c=l*i-u*o;return[v(u*i+l*o,s*n+c*r),P(c*n-s*r)]},a}function ae(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,o){if(n){var a=m(e),s=w(e),u=r*n;null==i?(i=e+r*f,o=e-u/2):(i=ue(a,i),o=ue(a,o),(r>0?i<o:i>o)&&(i+=r*f));for(var l,c=i;r>0?c>o:c<o;c-=u)l=Z([a,-s*m(c),-s*w(c)]),t.point(l[0],l[1])}}function ue(t,e){e=$(e),e[0]-=t,et(e);var n=E(-e[1]);return((-e[2]<0?-n:n)+f-a)%f}function le(){var t,e,n=Jt([0,0]),r=Jt(90),i=Jt(6),o={point:a};function a(n,r){t.push(n=e(n,r)),n[0]*=h,n[1]*=h}function s(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*d,u=i.apply(this,arguments)*d;return t=[],e=ne(-a[0]*d,-a[1]*d,0).invert,se(o,s,u,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return s.center=function(t){return arguments.length?(n="function"===typeof t?t:Jt([+t[0],+t[1]]),s):n},s.radius=function(t){return arguments.length?(r="function"===typeof t?t:Jt(+t),s):r},s.precision=function(t){return arguments.length?(i="function"===typeof t?t:Jt(+t),s):i},s}function ce(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:k,rejoin:function(){e.length>1&&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])<a&&p(t[1]-e[1])<a}function he(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function de(t,e,n,r,i){var o,a,s=[],u=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(fe(r,a)){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else s.push(n=new he(r,t,null,!0)),u.push(n.o=new he(r,null,n,!1)),s.push(n=new he(a,t,null,!1)),u.push(n.o=new he(a,null,n,!0))}})),s.length){for(u.sort(e),pe(s),pe(u),o=0,a=u.length;o<a;++o)u[o].e=n=!n;var l,c,f=s[0];while(1){var h=f,d=!0;while(h.v)if((h=h.n)===f)return;l=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=l.length;o<a;++o)i.point((c=l[o])[0],c[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(l=h.p.z,o=l.length-1;o>=0;--o)i.point((c=l[o])[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<e)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}ee.invert=ee;var ge=n();function ve(t){return p(t[0])<=u?t[0]:j(t[0])*((p(t[0])+u)%f-u)}function me(t,e){var n=ve(e),r=e[1],i=w(r),o=[w(n),-m(n),0],s=0,h=0;ge.reset(),1===i?r=l+a:-1===i&&(r=-l-a);for(var d=0,p=t.length;d<p;++d)if(y=(g=t[d]).length)for(var g,y,_=g[y-1],x=ve(_),b=_[1]/2+c,j=w(b),S=m(b),M=0;M<y;++M,x=C,j=A,S=T,_=E){var E=g[M],C=ve(E),k=E[1]/2+c,A=w(k),T=m(k),O=C-x,I=O>=0?1:-1,R=I*O,D=R>u,L=j*A;if(ge.add(v(L*I*w(R),S*T+L*m(R))),s+=D?O+I*f:O,D^x>=n^C>=n){var N=K($(_),$(E));et(N);var F=K(o,N);et(F);var B=(D^O>=0?-1:1)*P(F[2]);(r>B||r===B&&(N[0]||N[1]))&&(h+=D^O>=0?1:-1)}}return(s<-a||s<a&&ge<-a)^1&h}function ye(t,n,r,i){return function(o){var a,s,u,l=n(o),c=ce(),f=n(c),h=!1,d={point:p,lineStart:v,lineEnd:m,polygonStart:function(){d.point=y,d.lineStart=_,d.lineEnd=x,s=[],a=[]},polygonEnd:function(){d.point=p,d.lineStart=v,d.lineEnd=m,s=e.merge(s);var t=me(a,i);s.length?(h||(o.polygonStart(),h=!0),de(s,xe,t,r,o)):t&&(h||(o.polygonStart(),h=!0),o.lineStart(),r(null,null,1,o),o.lineEnd()),h&&(o.polygonEnd(),h=!1),s=a=null},sphere:function(){o.polygonStart(),o.lineStart(),r(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function p(e,n){t(e,n)&&o.point(e,n)}function g(t,e){l.point(t,e)}function v(){d.point=g,l.lineStart()}function m(){d.point=p,l.lineEnd()}function y(t,e){u.push([t,e]),f.point(t,e)}function _(){f.lineStart(),u=[]}function x(){y(u[0][0],u[0][1]),f.lineEnd();var t,e,n,r,i=f.clean(),l=c.result(),d=l.length;if(u.pop(),a.push(u),u=null,d)if(1&i){if(n=l[0],(e=n.length-1)>0){for(h||(o.polygonStart(),h=!0),o.lineStart(),t=0;t<e;++t)o.point((r=n[t])[0],r[1]);o.lineEnd()}}else d>1&&2&i&&l.push(l.pop().concat(l.shift())),s.push(l.filter(_e))}return d}}function _e(t){return t.length>1}function xe(t,e){return((t=t.x)[0]<0?t[1]-l-a:l-t[1])-((e=e.x)[0]<0?e[1]-l-a:l-e[1])}var be=ye((function(){return!0}),we,Se,[-u,-l]);function we(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var c=o>0?u:-u,f=p(o-n);p(f-u)<a?(t.point(n,r=(r+s)/2>0?l:-l),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(o,r),e=0):i!==c&&f>=u&&(p(n-i)<a&&(n-=i*a),p(o-c)<a&&(o-=c*a),r=je(n,r,o,s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=o,r=s),i=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function je(t,e,n,r){var i,o,s=w(t-n);return p(s)>a?g((w(e)*(o=m(r))*w(n)-w(r)*(i=m(e))*w(t))/(i*o*s)):(e+r)/2}function Se(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])>a){var o=t[0]<e[0]?u:-u;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}function Me(t){var e=m(t),n=6*d,r=e>0,i=p(e)>a;function o(e,r,i,o){se(o,t,n,i,e,r)}function s(t,n){return m(t)*m(n)>e}function l(t){var e,n,o,l,h;return{lineStart:function(){l=o=!1,h=1},point:function(d,p){var g,v=[d,p],m=s(d,p),y=r?m?0:f(d,p):m?f(d+(d<0?u:-u),p):0;if(!e&&(l=o=m)&&t.lineStart(),m!==o&&(g=c(e,v),(!g||fe(e,g)||fe(v,g))&&(v[0]+=a,v[1]+=a,m=s(v[0],v[1]))),m!==o)h=0,m?(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^m){var _;y&n||!(_=c(v,e,!0))||(h=0,r?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1])))}!m||e&&fe(e,v)||t.point(v[0],v[1]),e=v,o=m,n=y},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return h|(l&&o)<<1}}}function c(t,n,r){var i=$(t),o=$(n),s=[1,0,0],l=K(i,o),c=Q(l,l),f=l[0],h=c-f*f;if(!h)return!r&&t;var d=e*c/h,g=-e*f/h,v=K(s,l),m=tt(s,d),y=tt(l,g);J(m,y);var _=v,x=Q(m,_),b=Q(_,_),w=x*x-b*(Q(m,m)-1);if(!(w<0)){var j=S(w),M=tt(_,(-x-j)/b);if(J(M,m),M=Z(M),!r)return M;var E,P=t[0],C=n[0],k=t[1],A=n[1];C<P&&(E=P,P=C,C=E);var T=C-P,O=p(T-u)<a,I=O||T<a;if(!O&&A<k&&(E=k,k=A,A=E),I?O?k+A>0^M[1]<(p(M[0]-P)<a?k:A):k<=M[1]&&M[1]<=A:T>u^(P<=M[0]&&M[0]<=C)){var R=tt(_,(-x+j)/b);return J(R,m),[M,Z(R)]}}}function f(e,n){var i=r?t:u-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return ye(s,l,o,r?[0,-t]:[-u,t-u])}function Ee(t,e,n,r,i,o){var a,s=t[0],u=t[1],l=e[0],c=e[1],f=0,h=1,d=l-s,p=c-u;if(a=n-s,d||!(a>0)){if(a/=d,d<0){if(a<f)return;a<h&&(h=a)}else if(d>0){if(a>h)return;a>f&&(f=a)}if(a=i-s,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>f&&(f=a)}else if(d>0){if(a<f)return;a<h&&(h=a)}if(a=r-u,p||!(a>0)){if(a/=p,p<0){if(a<f)return;a<h&&(h=a)}else if(p>0){if(a>h)return;a>f&&(f=a)}if(a=o-u,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>f&&(f=a)}else if(p>0){if(a<f)return;a<h&&(h=a)}return f>0&&(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 ke(t,n,r,i){function o(e,o){return t<=e&&e<=r&&n<=o&&o<=i}function s(e,o,a,s){var l=0,f=0;if(null==e||(l=u(e,a))!==(f=u(o,a))||c(e,o)<0^a>0)do{s.point(0===l||3===l?t:r,l>1?i:n)}while((l=(l+a+4)%4)!==f);else s.point(o[0],o[1])}function u(e,i){return p(e[0]-t)<a?i>0?0:3:p(e[0]-r)<a?i>0?2:1:p(e[1]-n)<a?i>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(a){var u,c,f,h,d,p,g,v,m,y,_,x=a,b=ce(),w={point:j,lineStart:P,lineEnd:C,polygonStart:M,polygonEnd:E};function j(t,e){o(t,e)&&x.point(t,e)}function S(){for(var e=0,n=0,r=c.length;n<r;++n)for(var o,a,s=c[n],u=1,l=s.length,f=s[0],h=f[0],d=f[1];u<l;++u)o=h,a=d,f=s[u],h=f[0],d=f[1],a<=i?d>i&&(h-o)*(i-a)>(d-a)*(t-o)&&++e:d<=i&&(h-o)*(i-a)<(d-a)*(t-o)&&--e;return e}function M(){x=b,u=[],c=[],_=!0}function E(){var t=S(),n=_&&t,r=(u=e.merge(u)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),r&&de(u,l,t,s,a),a.polygonEnd()),x=a,u=c=f=null}function P(){w.point=k,c&&c.push(f=[]),y=!0,m=!1,g=v=NaN}function C(){u&&(k(h,d),p&&m&&b.rejoin(),u.push(b.result())),w.point=j,m&&x.lineEnd()}function k(e,a){var s=o(e,a);if(c&&f.push([e,a]),y)h=e,d=a,p=s,y=!1,s&&(x.lineStart(),x.point(e,a));else if(s&&m)x.point(e,a);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)),a=Math.max(Ce,Math.min(Pe,a))];Ee(u,l,t,n,r,i)?(m||(x.lineStart(),x.point(u[0],u[1])),x.point(l[0],l[1]),s||x.lineEnd(),_=!1):s&&(x.lineStart(),x.point(e,a),_=!1)}g=e,v=a,m=s}return w}}function Ae(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=ke(r,i,o,a)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[r,i],[o,a]]}}}var Te,Oe,Ie,Re=n(),De={sphere:k,point:k,lineStart:Le,lineEnd:k,polygonStart:k,polygonEnd:k};function Le(){De.point=Fe,De.lineEnd=Ne}function Ne(){De.point=De.lineEnd=k}function Fe(t,e){t*=d,e*=d,Te=t,Oe=w(e),Ie=m(e),De.point=Be}function Be(t,e){t*=d,e*=d;var n=w(e),r=m(e),i=p(t-Te),o=m(i),a=w(i),s=r*a,u=Ie*n-Oe*r*o,l=Oe*n+Ie*r*o;Re.add(v(S(s*s+u*u),l)),Te=t,Oe=n,Ie=r}function ze(t){return Re.reset(),D(t,De),+Re}var Ge=[null,null],qe={type:"LineString",coordinates:Ge};function Ve(t,e){return Ge[0]=t,Ge[1]=e,ze(qe)}var Ye={Feature:function(t,e){return We(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,r=-1,i=n.length;while(++r<i)if(We(n[r].geometry,e))return!0;return!1}},He={Sphere:function(){return!0},Point:function(t,e){return Ue(t.coordinates,e)},MultiPoint:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)if(Ue(n[r],e))return!0;return!1},LineString:function(t,e){return Xe(t.coordinates,e)},MultiLineString:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)if(Xe(n[r],e))return!0;return!1},Polygon:function(t,e){return Ze(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)if(Ze(n[r],e))return!0;return!1},GeometryCollection:function(t,e){var n=t.geometries,r=-1,i=n.length;while(++r<i)if(We(n[r],e))return!0;return!1}};function We(t,e){return!(!t||!He.hasOwnProperty(t.type))&&He[t.type](t,e)}function Ue(t,e){return 0===Ve(t,e)}function Xe(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(r=Ve(t[o],e),0===r)return!0;if(o>0&&(i=Ve(t[o],t[o-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<s*i))return!0;n=r}return!1}function Ze(t,e){return!!me(t.map($e),Qe(e))}function $e(t){return t=t.map(Qe),t.pop(),t}function Qe(t){return[t[0]*d,t[1]*d]}function Ke(t,e){return(t&&Ye.hasOwnProperty(t.type)?Ye[t.type]:We)(t,e)}function Je(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[t,e]}))}}function tn(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[e,t]}))}}function en(){var t,n,r,i,o,s,u,l,c,f,h,d,g=10,v=g,m=90,_=360,x=2.5;function b(){return{type:"MultiLineString",coordinates:w()}}function w(){return e.range(y(i/m)*m,r,m).map(h).concat(e.range(y(l/_)*_,u,_).map(d)).concat(e.range(y(n/g)*g,t,g).filter((function(t){return p(t%m)>a})).map(c)).concat(e.range(y(s/v)*v,o,v).filter((function(t){return p(t%_)>a})).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],o=+e[1][1],n>t&&(e=n,n=t,t=e),s>o&&(e=s,s=o,o=e),b.precision(x)):[[n,s],[t,o]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(m=+t[0],_=+t[1],b):[m,_]},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,o,90),f=tn(n,t,x),h=Je(l,u,90),d=tn(i,r,x),b):x},b.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}function nn(){return en()()}function rn(t,e){var n=t[0]*d,r=t[1]*d,i=e[0]*d,o=e[1]*d,a=m(r),s=w(r),u=m(o),l=w(o),c=a*m(n),f=a*w(n),p=u*m(i),g=u*w(i),y=2*P(S(C(o-r)+a*u*C(i-n))),_=w(y),x=y?function(t){var e=w(t*=y)/_,n=w(y-t)/_,r=n*c+e*p,i=n*f+e*g,o=n*s+e*l;return[v(i,r)*h,v(o,S(r*r+i*i))*h]}:function(){return[n*h,r*h]};return x.distance=y,x}function on(t){return t}var an,sn,un,ln,cn=n(),fn=n(),hn={point:k,lineStart:k,lineEnd:k,polygonStart:function(){hn.lineStart=dn,hn.lineEnd=vn},polygonEnd:function(){hn.lineStart=hn.lineEnd=hn.point=k,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,an=un=t,sn=ln=e}function gn(t,e){fn.add(ln*t-un*e),un=t,ln=e}function vn(){gn(an,sn)}var mn=1/0,yn=mn,_n=-mn,xn=_n,bn={point:wn,lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k,result:function(){var t=[[mn,yn],[_n,xn]];return _n=xn=-(yn=mn=1/0),t}};function wn(t,e){t<mn&&(mn=t),t>_n&&(_n=t),e<yn&&(yn=e),e>xn&&(xn=e)}var jn,Sn,Mn,En,Pn=0,Cn=0,kn=0,An=0,Tn=0,On=0,In=0,Rn=0,Dn=0,Ln={point:Nn,lineStart:Fn,lineEnd:Gn,polygonStart:function(){Ln.lineStart=qn,Ln.lineEnd=Vn},polygonEnd:function(){Ln.point=Nn,Ln.lineStart=Fn,Ln.lineEnd=Gn},result:function(){var t=Dn?[In/Dn,Rn/Dn]:On?[An/On,Tn/On]:kn?[Pn/kn,Cn/kn]:[NaN,NaN];return Pn=Cn=kn=An=Tn=On=In=Rn=Dn=0,t}};function Nn(t,e){Pn+=t,Cn+=e,++kn}function Fn(){Ln.point=Bn}function Bn(t,e){Ln.point=zn,Nn(Mn=t,En=e)}function zn(t,e){var n=t-Mn,r=e-En,i=S(n*n+r*r);An+=i*(Mn+t)/2,Tn+=i*(En+e)/2,On+=i,Nn(Mn=t,En=e)}function Gn(){Ln.point=Nn}function qn(){Ln.point=Yn}function Vn(){Hn(jn,Sn)}function Yn(t,e){Ln.point=Hn,Nn(jn=Mn=t,Sn=En=e)}function Hn(t,e){var n=t-Mn,r=e-En,i=S(n*n+r*r);An+=i*(Mn+t)/2,Tn+=i*(En+e)/2,On+=i,i=En*t-Mn*e,In+=i*(Mn+t),Rn+=i*(En+e),Dn+=3*i,Nn(Mn=t,En=e)}function Wn(t){this._context=t}Wn.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:k};var Un,Xn,Zn,$n,Qn,Kn=n(),Jn={point:k,lineStart:function(){Jn.point=tr},lineEnd:function(){Un&&er(Xn,Zn),Jn.point=k},polygonStart:function(){Un=!0},polygonEnd:function(){Un=null},result:function(){var t=+Kn;return Kn.reset(),t}};function tr(t,e){Jn.point=er,Xn=$n=t,Zn=Qn=e}function er(t,e){$n-=t,Qn-=e,Kn.add(S($n*$n+Qn*Qn)),$n=t,Qn=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 o(t){return t&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),D(t,n(r))),r.result()}return o.area=function(t){return D(t,n(hn)),hn.result()},o.measure=function(t){return D(t,n(Jn)),Jn.result()},o.bounds=function(t){return D(t,n(bn)),bn.result()},o.centroid=function(t){return D(t,n(Ln)),Ln.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,on):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new nr):new Wn(e=t),"function"!==typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"===typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)}function or(t){return{stream:ar(t)}}function ar(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),D(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],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,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]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function hr(t,e,n){return ur(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),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=m(30*d);function gr(t,e){return+e?mr(t,e):vr(t)}function vr(t){return ar({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function mr(t,e){function n(r,i,o,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&&y--){var j=s+d,M=u+g,E=l+m,C=S(j*j+M*M+E*E),k=P(E/=C),A=p(p(E)-1)<a||p(o-h)<a?(o+h)/2:v(M,j),T=t(A,k),O=T[0],I=T[1],R=O-r,D=I-i,L=b*R-x*D;(L*L/w>e||p((x*R+b*D)/w-.5)>.3||s*d+u*g+l*m<pr)&&(n(r,i,o,s,u,l,O,I,A,j/=C,M/=C,E,y,_),_.point(O,I),n(O,I,A,j,M,E,c,f,h,d,g,m,y,_))}}return function(e){var r,i,o,a,s,u,l,c,f,h,d,p,g={point:v,lineStart:m,lineEnd:_,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=m}};function v(n,r){n=t(n,r),e.point(n[0],n[1])}function m(){c=NaN,g.point=y,e.lineStart()}function y(r,i){var o=$([r,i]),a=t(r,i);n(c,f,l,h,d,p,c=a[0],f=a[1],l=r,h=o[0],d=o[1],p=o[2],dr,e),e.point(c,f)}function _(){g.point=v,e.lineEnd()}function x(){m(),g.point=b,g.lineEnd=w}function b(t,e){y(r=t,e),i=c,o=f,a=h,s=d,u=p,g.point=y}function w(){n(c,f,l,h,d,p,i,o,r,a,s,u,dr,e),g.lineEnd=_,_()}return g}}var yr=ar({point:function(t,e){this.stream.point(t*d,e*d)}});function _r(t){return ar({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}function xr(t,e,n){function r(r,i){return[e+t*r,n-t*i]}return r.invert=function(r,i){return[(r-e)/t,(n-i)/t]},r}function br(t,e,n,r){var i=m(r),o=w(r),a=i*t,s=o*t,u=i/t,l=o/t,c=(o*n-i*e)/t,f=(o*e+i*n)/t;function h(t,r){return[a*t-s*r+e,n-s*t-a*r]}return h.invert=function(t,e){return[u*t-l*e+c,f-l*t-u*e]},h}function wr(t){return jr((function(){return t}))()}function jr(t){var e,n,r,i,o,a,s,u,l,c,f=150,p=480,g=250,v=0,m=0,y=0,_=0,x=0,b=0,w=null,j=be,M=null,E=on,P=.5;function C(t){return u(t[0]*d,t[1]*d)}function k(t){return t=u.invert(t[0],t[1]),t&&[t[0]*h,t[1]*h]}function A(){var t=br(f,0,0,b).apply(null,e(v,m)),r=(b?br:xr)(f,p-t[0],g-t[1],b);return n=ne(y,_,x),s=te(e,r),u=te(n,s),a=gr(s,P),T()}function T(){return l=c=null,C}return C.stream=function(t){return l&&c===t?l:l=yr(_r(n)(j(a(E(c=t)))))},C.preclip=function(t){return arguments.length?(j=t,w=void 0,T()):j},C.postclip=function(t){return arguments.length?(E=t,M=r=i=o=null,T()):E},C.clipAngle=function(t){return arguments.length?(j=+t?Me(w=t*d):(w=null,be),T()):w*h},C.clipExtent=function(t){return arguments.length?(E=null==t?(M=r=i=o=null,on):ke(M=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),T()):null==M?null:[[M,r],[i,o]]},C.scale=function(t){return arguments.length?(f=+t,A()):f},C.translate=function(t){return arguments.length?(p=+t[0],g=+t[1],A()):[p,g]},C.center=function(t){return arguments.length?(v=t[0]%360*d,m=t[1]%360*d,A()):[v*h,m*h]},C.rotate=function(t){return arguments.length?(y=t[0]%360*d,_=t[1]%360*d,x=t.length>2?t[2]%360*d:0,A()):[y*h,_*h,x*h]},C.angle=function(t){return arguments.length?(b=t%360*d,A()):b*h},C.precision=function(t){return arguments.length?(a=gr(s,P=t*t),T()):S(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&&k,A()}}function Sr(t){var e=0,n=u/3,r=jr(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=m(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 Er(t,e){var n=w(t),r=(n+w(e))/2;if(p(r)<a)return Mr(t);var i=1+n*(2*r-n),o=S(i)/r;function s(t,e){var n=S(i-2*r*w(e))/r;return[n*w(t*=r),o-n*m(t)]}return s.invert=function(t,e){var n=o-e;return[v(t,p(n))/r*j(n),P((i-(t*t+n*n)*r*r)/(2*r))]},s}function Pr(){return Sr(Er).scale(155.424).center([0,33.6442])}function Cr(){return Pr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function kr(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function Ar(){var t,e,n,r,i,o,s=Cr(),u=Pr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=Pr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){o=[t,e]}};function f(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function h(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.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=kr([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(),o=+t[0],f=+t[1];return n=s.translate(t).clipExtent([[o-.455*e,f-.238*e],[o+.455*e,f+.238*e]]).stream(c),r=u.translate([o-.307*e,f+.201*e]).clipExtent([[o-.425*e+a,f+.12*e+a],[o-.214*e-a,f+.234*e-a]]).stream(c),i=l.translate([o-.205*e,f+.212*e]).clipExtent([[o-.214*e+a,f+.166*e+a],[o-.115*e-a,f+.234*e-a]]).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=m(e),i=m(n),o=t(r*i);return[o*i*w(e),o*w(n)]}}function Or(t){return function(e,n){var r=S(e*e+n*n),i=t(r),o=w(i),a=m(i);return[v(e*o,r*a),P(r&&n*o/r)]}}var Ir=Tr((function(t){return S(2/(1+t))}));function Rr(){return wr(Ir).scale(124.75).clipAngle(179.999)}Ir.invert=Or((function(t){return 2*P(t/2)}));var Dr=Tr((function(t){return(t=E(t))&&t/w(t)}));function Lr(){return wr(Dr).scale(79.4188).clipAngle(179.999)}function Nr(t,e){return[t,x(M((l+e)/2))]}function Fr(){return Br(Nr).scale(961/f)}function Br(t){var e,n,r,i=wr(t),o=i.center,a=i.scale,s=i.translate,l=i.clipExtent,c=null;function f(){var o=u*a(),s=i(ae(i.rotate()).invert([0,0]));return l(null==c?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===Nr?[[Math.max(s[0]-o,c),e],[Math.min(s[0]+o,n),r]]:[[c,Math.max(s[1]-o,e)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),f()):a()},i.translate=function(t){return arguments.length?(s(t),f()):s()},i.center=function(t){return arguments.length?(o(t),f()):o()},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 M((l+t)/2)}function Gr(t,e){var n=m(t),r=t===e?w(t):x(n/m(e))/x(zr(e)/zr(t)),i=n*b(zr(t),r)/r;if(!r)return Nr;function o(t,e){i>0?e<-l+a&&(e=-l+a):e>l-a&&(e=l-a);var n=i/b(zr(e),r);return[n*w(r*t),i-n*m(r*t)]}return o.invert=function(t,e){var n=i-e,o=j(r)*S(t*t+n*n);return[v(t,p(n))/r*j(n),2*g(b(i/o,1/r))-l]},o}function qr(){return Sr(Gr).scale(109.5).parallels([30,30])}function Vr(t,e){return[t,e]}function Yr(){return wr(Vr).scale(152.63)}function Hr(t,e){var n=m(t),r=t===e?w(t):(n-m(e))/(e-t),i=n/r+t;if(p(r)<a)return Vr;function o(t,e){var n=i-e,o=r*t;return[n*w(o),i-n*m(o)]}return o.invert=function(t,e){var n=i-e;return[v(t,p(n))/r*j(n),i-j(r)*S(t*t+n*n)]},o}function Wr(){return Sr(Hr).scale(131.154).center([0,13.9389])}Dr.invert=Or((function(t){return t})),Nr.invert=function(t,e){return[t,2*g(_(e))-l]},Vr.invert=Vr;var Ur=1.340264,Xr=-.081106,Zr=893e-6,$r=.003796,Qr=S(3)/2,Kr=12;function Jr(t,e){var n=P(Qr*w(e)),r=n*n,i=r*r*r;return[t*m(n)/(Qr*(Ur+3*Xr*r+i*(7*Zr+9*$r*r))),n*(Ur+Xr*r+i*(Zr+$r*r))]}function ti(){return wr(Jr).scale(177.158)}function ei(t,e){var n=m(e),r=m(t)*n;return[n*w(t)/r,w(e)/r]}function ni(){return wr(ei).scale(144.049).clipAngle(60)}function ri(t,e,n,r){return 1===t&&1===e&&0===n&&0===r?on:ar({point:function(i,o){this.stream.point(i*t+n,o*e+r)}})}function ii(){var t,e,n,r,i,o,a=1,s=0,u=0,l=1,c=1,f=on,h=null,d=on;function p(){return r=i=null,o}return o={stream:function(t){return r&&i===t?r:r=f(d(i=t))},postclip:function(r){return arguments.length?(d=r,h=t=e=n=null,p()):d},clipExtent:function(r){return arguments.length?(d=null==r?(h=t=e=n=null,on):ke(h=+r[0][0],t=+r[0][1],e=+r[1][0],n=+r[1][1]),p()):null==h?null:[[h,t],[e,n]]},scale:function(t){return arguments.length?(f=ri((a=+t)*l,a*c,s,u),p()):a},translate:function(t){return arguments.length?(f=ri(a*l,a*c,s=+t[0],u=+t[1]),p()):[s,u]},reflectX:function(t){return arguments.length?(f=ri(a*(l=t?-1:1),a*c,s,u),p()):l<0},reflectY:function(t){return arguments.length?(f=ri(a*l,a*(c=t?-1:1),s,u),p()):c<0},fitExtent:function(t,e){return lr(o,t,e)},fitSize:function(t,e){return cr(o,t,e)},fitWidth:function(t,e){return fr(o,t,e)},fitHeight:function(t,e){return hr(o,t,e)}}}function oi(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)))]}function ai(){return wr(oi).scale(175.295)}function si(t,e){return[m(e)*w(t),w(e)]}function ui(){return wr(si).scale(249.5).clipAngle(90+a)}function li(t,e){var n=m(e),r=1+m(t)*n;return[n*w(t)/r,w(e)/r]}function ci(){return wr(li).scale(250).clipAngle(142)}function fi(t,e){return[x(M((l+e)/2)),-t]}function hi(){var t=Br(fi),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>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,o=e,a=o*o,u=a*a*a,l=0;l<Kr;++l)if(r=o*(Ur+Xr*a+u*(Zr+$r*a))-e,i=Ur+3*Xr*a+u*(7*Zr+9*$r*a),o-=n=r/i,a=o*o,u=a*a*a,p(n)<s)break;return[Qr*t*(Ur+3*Xr*a+u*(7*Zr+9*$r*a))/m(o),P(w(o)/Qr)]},ei.invert=Or(g),oi.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,s=o*o;r-=n=(r*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-e)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(p(n)>a&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},si.invert=Or(P),li.invert=Or((function(t){return 2*g(t)})),fi.invert=function(t,e){return[-e,2*g(_(t))-l]},t.geoAlbers=Cr,t.geoAlbersUsa=Ar,t.geoArea=X,t.geoAzimuthalEqualArea=Rr,t.geoAzimuthalEqualAreaRaw=Ir,t.geoAzimuthalEquidistant=Lr,t.geoAzimuthalEquidistantRaw=Dr,t.geoBounds=zt,t.geoCentroid=Kt,t.geoCircle=le,t.geoClipAntimeridian=be,t.geoClipCircle=Me,t.geoClipExtent=Ae,t.geoClipRectangle=ke,t.geoConicConformal=qr,t.geoConicConformalRaw=Gr,t.geoConicEqualArea=Pr,t.geoConicEqualAreaRaw=Er,t.geoConicEquidistant=Wr,t.geoConicEquidistantRaw=Hr,t.geoContains=Ke,t.geoDistance=Ve,t.geoEqualEarth=ti,t.geoEqualEarthRaw=Jr,t.geoEquirectangular=Yr,t.geoEquirectangularRaw=Vr,t.geoGnomonic=ni,t.geoGnomonicRaw=ei,t.geoGraticule=en,t.geoGraticule10=nn,t.geoIdentity=ii,t.geoInterpolate=rn,t.geoLength=ze,t.geoMercator=Fr,t.geoMercatorRaw=Nr,t.geoNaturalEarth1=ai,t.geoNaturalEarth1Raw=oi,t.geoOrthographic=ui,t.geoOrthographicRaw=si,t.geoPath=ir,t.geoProjection=wr,t.geoProjectionMutator=jr,t.geoRotation=ae,t.geoStereographic=ci,t.geoStereographicRaw=li,t.geoStream=D,t.geoTransform=or,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){o(i,t,this.t),o(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 o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var a=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,m=Math.cos,y=Math.ceil,_=Math.exp,x=Math.log,b=Math.pow,w=Math.sin,j=Math.sign||function(t){return t>0?1:t<0?-1:0},S=Math.sqrt,M=Math.tan;function E(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 k(){}function A(t,e){t&&O.hasOwnProperty(t.type)&&O[t.type](t,e)}var T={Feature:function(t,e){A(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,r=-1,i=n.length;while(++r<i)A(n[r].geometry,e)}},O={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){I(t.coordinates,e,0)},MultiLineString:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)I(n[r],e,0)},Polygon:function(t,e){R(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)R(n[r],e)},GeometryCollection:function(t,e){var n=t.geometries,r=-1,i=n.length;while(++r<i)A(n[r],e)}};function I(t,e,n){var r,i=-1,o=t.length-n;e.lineStart();while(++i<o)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function R(t,e){var n=-1,r=t.length;e.polygonStart();while(++n<r)I(t[n],e,1);e.polygonEnd()}var D,L,N,F,B,z=function(t,e){t&&T.hasOwnProperty(t.type)?T[t.type](t,e):A(t,e)},G=n(),q=n(),V={point:k,lineStart:k,lineEnd:k,polygonStart:function(){G.reset(),V.lineStart=Y,V.lineEnd=H},polygonEnd:function(){var t=+G;q.add(t<0?f+t:t),this.lineStart=this.lineEnd=this.point=k},sphere:function(){q.add(f)}};function Y(){V.point=W}function H(){U(D,L)}function W(t,e){V.point=U,D=t,L=e,t*=d,e*=d,N=t,F=m(e=e/2+c),B=w(e)}function U(t,e){t*=d,e*=d,e=e/2+c;var n=t-N,r=n>=0?1:-1,i=r*n,o=m(e),a=w(e),s=B*a,u=F*o+s*m(i),l=s*r*w(i);G.add(v(l,u)),N=t,F=o,B=a}var X,Z,$,Q,K,J,tt,et,nt=function(t){return q.reset(),z(t,V),2*q};function rt(t){return[v(t[1],t[0]),P(t[2])]}function it(t){var e=t[0],n=t[1],r=m(n);return[r*m(e),r*w(e),w(n)]}function ot(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function at(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=S(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:mt,polygonStart:function(){dt.point=yt,dt.lineStart=_t,dt.lineEnd=xt,ht.reset(),V.polygonStart()},polygonEnd:function(){V.polygonEnd(),dt.point=pt,dt.lineStart=vt,dt.lineEnd=mt,G<0?(X=-($=180),Z=-(Q=90)):ht>a?Q=90:ht<-a&&(Z=-90),ft[0]=X,ft[1]=$}};function pt(t,e){ct.push(ft=[X=t,$=t]),e<Z&&(Z=e),e>Q&&(Q=e)}function gt(t,e){var n=it([t*d,e*d]);if(et){var r=at(et,n),i=[r[1],-r[0],0],o=at(i,r);lt(o),o=rt(o);var a,s=t-K,u=s>0?1:-1,l=o[0]*h*u,c=p(s)>180;c^(u*K<l&&l<u*t)?(a=o[1]*h,a>Q&&(Q=a)):(l=(l+360)%360-180,c^(u*K<l&&l<u*t)?(a=-o[1]*h,a<Z&&(Z=a)):(e<Z&&(Z=e),e>Q&&(Q=e))),c?t<K?bt(X,t)>bt(X,$)&&($=t):bt(t,$)>bt(X,$)&&(X=t):$>=X?(t<X&&(X=t),t>$&&($=t)):t>K?bt(X,t)>bt(X,$)&&($=t):bt(t,$)>bt(X,$)&&(X=t)}else ct.push(ft=[X=t,$=t]);e<Z&&(Z=e),e>Q&&(Q=e),et=n,K=t}function vt(){dt.point=gt}function mt(){ft[0]=X,ft[1]=$,dt.point=pt,et=null}function yt(t,e){if(et){var n=t-K;ht.add(p(n)>180?n+(n>0?360:-360):n)}else J=t,tt=e;V.point(t,e),gt(t,e)}function _t(){V.lineStart()}function xt(){yt(J,tt),V.lineEnd(),p(ht)>a&&(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 jt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var St,Mt,Et,Pt,Ct,kt,At,Tt,Ot,It,Rt,Dt,Lt,Nt,Ft,Bt,zt=function(t){var e,n,r,i,o,a,s;if(Q=$=-(X=Z=1/0),ct=[],z(t,dt),n=ct.length){for(ct.sort(wt),e=1,r=ct[0],o=[r];e<n;++e)i=ct[e],jt(r,i[0])||jt(r,i[1])?(bt(r[0],i[1])>bt(r[0],r[1])&&(r[1]=i[1]),bt(i[0],r[1])>bt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=o.length-1,e=0,r=o[n];e<=n;r=i,++e)i=o[e],(s=bt(r[1],i[0]))>a&&(a=s,X=i[0],$=r[1])}return ct=ft=null,X===1/0||Z===1/0?[[NaN,NaN],[NaN,NaN]]:[[X,Z],[$,Q]]},Gt={sphere:k,point:qt,lineStart:Yt,lineEnd:Ut,polygonStart:function(){Gt.lineStart=Xt,Gt.lineEnd=Zt},polygonEnd:function(){Gt.lineStart=Yt,Gt.lineEnd=Ut}};function qt(t,e){t*=d,e*=d;var n=m(e);Vt(n*m(t),n*w(t),w(e))}function Vt(t,e,n){++St,Et+=(t-Et)/St,Pt+=(e-Pt)/St,Ct+=(n-Ct)/St}function Yt(){Gt.point=Ht}function Ht(t,e){t*=d,e*=d;var n=m(e);Nt=n*m(t),Ft=n*w(t),Bt=w(e),Gt.point=Wt,Vt(Nt,Ft,Bt)}function Wt(t,e){t*=d,e*=d;var n=m(e),r=n*m(t),i=n*w(t),o=w(e),a=v(S((a=Ft*o-Bt*i)*a+(a=Bt*r-Nt*o)*a+(a=Nt*i-Ft*r)*a),Nt*r+Ft*i+Bt*o);Mt+=a,kt+=a*(Nt+(Nt=r)),At+=a*(Ft+(Ft=i)),Tt+=a*(Bt+(Bt=o)),Vt(Nt,Ft,Bt)}function Ut(){Gt.point=qt}function Xt(){Gt.point=$t}function Zt(){Qt(Dt,Lt),Gt.point=qt}function $t(t,e){Dt=t,Lt=e,t*=d,e*=d,Gt.point=Qt;var n=m(e);Nt=n*m(t),Ft=n*w(t),Bt=w(e),Vt(Nt,Ft,Bt)}function Qt(t,e){t*=d,e*=d;var n=m(e),r=n*m(t),i=n*w(t),o=w(e),a=Ft*o-Bt*i,s=Bt*r-Nt*o,u=Nt*i-Ft*r,l=S(a*a+s*s+u*u),c=P(l),f=l&&-c/l;Ot+=f*a,It+=f*s,Rt+=f*u,Mt+=c,kt+=c*(Nt+(Nt=r)),At+=c*(Ft+(Ft=i)),Tt+=c*(Bt+(Bt=o)),Vt(Nt,Ft,Bt)}var Kt=function(t){St=Mt=Et=Pt=Ct=kt=At=Tt=Ot=It=Rt=0,z(t,Gt);var e=Ot,n=It,r=Rt,i=e*e+n*n+r*r;return i<s&&(e=kt,n=At,r=Tt,Mt<a&&(e=Et,n=Pt,r=Ct),i=e*e+n*n+r*r,i<s)?[NaN,NaN]:[v(n,e)*h,P(r/S(i))*h]},Jt=function(t){return function(){return t}},te=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return n=e.invert(n,r),n&&t.invert(n[0],n[1])}),n};function ee(t,e){return[t>u?t-f:t<-u?t+f:t,e]}function ne(t,e,n){return(t%=f)?e||n?te(ie(t),oe(e,n)):ie(t):e||n?oe(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 oe(t,e){var n=m(t),r=w(t),i=m(e),o=w(e);function a(t,e){var a=m(e),s=m(t)*a,u=w(t)*a,l=w(e),c=l*n+s*r;return[v(u*i-c*o,s*n-l*r),P(c*i+u*o)]}return a.invert=function(t,e){var a=m(e),s=m(t)*a,u=w(t)*a,l=w(e),c=l*i-u*o;return[v(u*i+l*o,s*n+c*r),P(c*n-s*r)]},a}ee.invert=ee;var ae=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,o){if(n){var a=m(e),s=w(e),u=r*n;null==i?(i=e+r*f,o=e-u/2):(i=ue(a,i),o=ue(a,o),(r>0?i<o:i>o)&&(i+=r*f));for(var l,c=i;r>0?c>o:c<o;c-=u)l=rt([a,-s*m(c),-s*w(c)]),t.point(l[0],l[1])}}function ue(t,e){e=it(e),e[0]-=t,lt(e);var n=E(-e[1]);return((-e[2]<0?-n:n)+f-a)%f}var le=function(){var t,e,n=Jt([0,0]),r=Jt(90),i=Jt(6),o={point:a};function a(n,r){t.push(n=e(n,r)),n[0]*=h,n[1]*=h}function s(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*d,u=i.apply(this,arguments)*d;return t=[],e=ne(-a[0]*d,-a[1]*d,0).invert,se(o,s,u,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return s.center=function(t){return arguments.length?(n="function"===typeof t?t:Jt([+t[0],+t[1]]),s):n},s.radius=function(t){return arguments.length?(r="function"===typeof t?t:Jt(+t),s):r},s.precision=function(t){return arguments.length?(i="function"===typeof t?t:Jt(+t),s):i},s},ce=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:k,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},fe=function(t,e,n,r,i,o){var a,s=t[0],u=t[1],l=e[0],c=e[1],f=0,h=1,d=l-s,p=c-u;if(a=n-s,d||!(a>0)){if(a/=d,d<0){if(a<f)return;a<h&&(h=a)}else if(d>0){if(a>h)return;a>f&&(f=a)}if(a=i-s,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>f&&(f=a)}else if(d>0){if(a<f)return;a<h&&(h=a)}if(a=r-u,p||!(a>0)){if(a/=p,p<0){if(a<f)return;a<h&&(h=a)}else if(p>0){if(a>h)return;a>f&&(f=a)}if(a=o-u,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>f&&(f=a)}else if(p>0){if(a<f)return;a<h&&(h=a)}return f>0&&(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])<a&&p(t[1]-e[1])<a};function de(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var pe=function(t,e,n,r,i){var o,a,s=[],u=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(he(r,a)){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else s.push(n=new de(r,t,null,!0)),u.push(n.o=new de(r,null,n,!1)),s.push(n=new de(a,t,null,!1)),u.push(n.o=new de(a,null,n,!0))}})),s.length){for(u.sort(e),ge(s),ge(u),o=0,a=u.length;o<a;++o)u[o].e=n=!n;var l,c,f=s[0];while(1){var h=f,d=!0;while(h.v)if((h=h.n)===f)return;l=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=l.length;o<a;++o)i.point((c=l[o])[0],c[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(l=h.p.z,o=l.length-1;o>=0;--o)i.point((c=l[o])[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(++r<e)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}var ve=1e9,me=-ve;function ye(t,n,r,i){function o(e,o){return t<=e&&e<=r&&n<=o&&o<=i}function s(e,o,a,s){var l=0,f=0;if(null==e||(l=u(e,a))!==(f=u(o,a))||c(e,o)<0^a>0)do{s.point(0===l||3===l?t:r,l>1?i:n)}while((l=(l+a+4)%4)!==f);else s.point(o[0],o[1])}function u(e,i){return p(e[0]-t)<a?i>0?0:3:p(e[0]-r)<a?i>0?2:1:p(e[1]-n)<a?i>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(a){var u,c,f,h,d,p,g,v,m,y,_,x=a,b=ce(),w={point:j,lineStart:P,lineEnd:C,polygonStart:M,polygonEnd:E};function j(t,e){o(t,e)&&x.point(t,e)}function S(){for(var e=0,n=0,r=c.length;n<r;++n)for(var o,a,s=c[n],u=1,l=s.length,f=s[0],h=f[0],d=f[1];u<l;++u)o=h,a=d,f=s[u],h=f[0],d=f[1],a<=i?d>i&&(h-o)*(i-a)>(d-a)*(t-o)&&++e:d<=i&&(h-o)*(i-a)<(d-a)*(t-o)&&--e;return e}function M(){x=b,u=[],c=[],_=!0}function E(){var t=S(),n=_&&t,r=(u=e.merge(u)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),r&&pe(u,l,t,s,a),a.polygonEnd()),x=a,u=c=f=null}function P(){w.point=k,c&&c.push(f=[]),y=!0,m=!1,g=v=NaN}function C(){u&&(k(h,d),p&&m&&b.rejoin(),u.push(b.result())),w.point=j,m&&x.lineEnd()}function k(e,a){var s=o(e,a);if(c&&f.push([e,a]),y)h=e,d=a,p=s,y=!1,s&&(x.lineStart(),x.point(e,a));else if(s&&m)x.point(e,a);else{var u=[g=Math.max(me,Math.min(ve,g)),v=Math.max(me,Math.min(ve,v))],l=[e=Math.max(me,Math.min(ve,e)),a=Math.max(me,Math.min(ve,a))];fe(u,l,t,n,r,i)?(m||(x.lineStart(),x.point(u[0],u[1])),x.point(l[0],l[1]),s||x.lineEnd(),_=!1):s&&(x.lineStart(),x.point(e,a),_=!1)}g=e,v=a,m=s}return w}}var _e,xe,be,we=function(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=ye(r,i,o,a)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[r,i],[o,a]]}}},je=n(),Se=function(t,e){var n=e[0],r=e[1],i=[w(n),-m(n),0],o=0,s=0;je.reset();for(var l=0,h=t.length;l<h;++l)if(p=(d=t[l]).length)for(var d,p,g=d[p-1],y=g[0],_=g[1]/2+c,x=w(_),b=m(_),j=0;j<p;++j,y=M,x=C,b=k,g=S){var S=d[j],M=S[0],E=S[1]/2+c,C=w(E),k=m(E),A=M-y,T=A>=0?1:-1,O=T*A,I=O>u,R=x*C;if(je.add(v(R*T*w(O),b*k+R*m(O))),o+=I?A+T*f:A,I^y>=n^M>=n){var D=at(it(g),it(S));lt(D);var L=at(i,D);lt(L);var N=(I^A>=0?-1:1)*P(L[2]);(r>N||r===N&&(D[0]||D[1]))&&(s+=I^A>=0?1:-1)}}return(o<-a||o<a&&je<-a)^1&s},Me=n(),Ee={sphere:k,point:k,lineStart:Pe,lineEnd:k,polygonStart:k,polygonEnd:k};function Pe(){Ee.point=ke,Ee.lineEnd=Ce}function Ce(){Ee.point=Ee.lineEnd=k}function ke(t,e){t*=d,e*=d,_e=t,xe=w(e),be=m(e),Ee.point=Ae}function Ae(t,e){t*=d,e*=d;var n=w(e),r=m(e),i=p(t-_e),o=m(i),a=w(i),s=r*a,u=be*n-xe*r*o,l=xe*n+be*r*o;Me.add(v(S(s*s+u*u),l)),_e=t,xe=n,be=r}var Te=function(t){return Me.reset(),z(t,Ee),+Me},Oe=[null,null],Ie={type:"LineString",coordinates:Oe},Re=function(t,e){return Oe[0]=t,Oe[1]=e,Te(Ie)},De={Feature:function(t,e){return Ne(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,r=-1,i=n.length;while(++r<i)if(Ne(n[r].geometry,e))return!0;return!1}},Le={Sphere:function(){return!0},Point:function(t,e){return Fe(t.coordinates,e)},MultiPoint:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)if(Fe(n[r],e))return!0;return!1},LineString:function(t,e){return Be(t.coordinates,e)},MultiLineString:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)if(Be(n[r],e))return!0;return!1},Polygon:function(t,e){return ze(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,r=-1,i=n.length;while(++r<i)if(ze(n[r],e))return!0;return!1},GeometryCollection:function(t,e){var n=t.geometries,r=-1,i=n.length;while(++r<i)if(Ne(n[r],e))return!0;return!1}};function Ne(t,e){return!(!t||!Le.hasOwnProperty(t.type))&&Le[t.type](t,e)}function Fe(t,e){return 0===Re(t,e)}function Be(t,e){var n=Re(t[0],t[1]),r=Re(t[0],e),i=Re(e,t[1]);return r+i<=n+a}function ze(t,e){return!!Se(t.map(Ge),qe(e))}function Ge(t){return t=t.map(qe),t.pop(),t}function qe(t){return[t[0]*d,t[1]*d]}var Ve=function(t,e){return(t&&De.hasOwnProperty(t.type)?De[t.type]:Ne)(t,e)};function Ye(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[t,e]}))}}function He(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[e,t]}))}}function We(){var t,n,r,i,o,s,u,l,c,f,h,d,g=10,v=g,m=90,_=360,x=2.5;function b(){return{type:"MultiLineString",coordinates:w()}}function w(){return e.range(y(i/m)*m,r,m).map(h).concat(e.range(y(l/_)*_,u,_).map(d)).concat(e.range(y(n/g)*g,t,g).filter((function(t){return p(t%m)>a})).map(c)).concat(e.range(y(s/v)*v,o,v).filter((function(t){return p(t%_)>a})).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],o=+e[1][1],n>t&&(e=n,n=t,t=e),s>o&&(e=s,s=o,o=e),b.precision(x)):[[n,s],[t,o]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(m=+t[0],_=+t[1],b):[m,_]},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=Ye(s,o,90),f=He(n,t,x),h=Ye(l,u,90),d=He(i,r,x),b):x},b.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}function Ue(){return We()()}var Xe,Ze,$e,Qe,Ke=function(t,e){var n=t[0]*d,r=t[1]*d,i=e[0]*d,o=e[1]*d,a=m(r),s=w(r),u=m(o),l=w(o),c=a*m(n),f=a*w(n),p=u*m(i),g=u*w(i),y=2*P(S(C(o-r)+a*u*C(i-n))),_=w(y),x=y?function(t){var e=w(t*=y)/_,n=w(y-t)/_,r=n*c+e*p,i=n*f+e*g,o=n*s+e*l;return[v(i,r)*h,v(o,S(r*r+i*i))*h]}:function(){return[n*h,r*h]};return x.distance=y,x},Je=function(t){return t},tn=n(),en=n(),nn={point:k,lineStart:k,lineEnd:k,polygonStart:function(){nn.lineStart=rn,nn.lineEnd=sn},polygonEnd:function(){nn.lineStart=nn.lineEnd=nn.point=k,tn.add(p(en)),en.reset()},result:function(){var t=tn/2;return tn.reset(),t}};function rn(){nn.point=on}function on(t,e){nn.point=an,Xe=$e=t,Ze=Qe=e}function an(t,e){en.add(Qe*t-$e*e),$e=t,Qe=e}function sn(){an(Xe,Ze)}var un=1/0,ln=un,cn=-un,fn=cn,hn={point:dn,lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k,result:function(){var t=[[un,ln],[cn,fn]];return cn=fn=-(ln=un=1/0),t}};function dn(t,e){t<un&&(un=t),t>cn&&(cn=t),e<ln&&(ln=e),e>fn&&(fn=e)}var pn,gn,vn,mn,yn=0,_n=0,xn=0,bn=0,wn=0,jn=0,Sn=0,Mn=0,En=0,Pn={point:Cn,lineStart:kn,lineEnd:On,polygonStart:function(){Pn.lineStart=In,Pn.lineEnd=Rn},polygonEnd:function(){Pn.point=Cn,Pn.lineStart=kn,Pn.lineEnd=On},result:function(){var t=En?[Sn/En,Mn/En]:jn?[bn/jn,wn/jn]:xn?[yn/xn,_n/xn]:[NaN,NaN];return yn=_n=xn=bn=wn=jn=Sn=Mn=En=0,t}};function Cn(t,e){yn+=t,_n+=e,++xn}function kn(){Pn.point=An}function An(t,e){Pn.point=Tn,Cn(vn=t,mn=e)}function Tn(t,e){var n=t-vn,r=e-mn,i=S(n*n+r*r);bn+=i*(vn+t)/2,wn+=i*(mn+e)/2,jn+=i,Cn(vn=t,mn=e)}function On(){Pn.point=Cn}function In(){Pn.point=Dn}function Rn(){Ln(pn,gn)}function Dn(t,e){Pn.point=Ln,Cn(pn=vn=t,gn=mn=e)}function Ln(t,e){var n=t-vn,r=e-mn,i=S(n*n+r*r);bn+=i*(vn+t)/2,wn+=i*(mn+e)/2,jn+=i,i=mn*t-vn*e,Sn+=i*(vn+t),Mn+=i*(mn+e),En+=3*i,Cn(vn=t,mn=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:k};var Fn,Bn,zn,Gn,qn,Vn=n(),Yn={point:k,lineStart:function(){Yn.point=Hn},lineEnd:function(){Fn&&Wn(Bn,zn),Yn.point=k},polygonStart:function(){Fn=!0},polygonEnd:function(){Fn=null},result:function(){var t=+Vn;return Vn.reset(),t}};function Hn(t,e){Yn.point=Wn,Bn=Gn=t,zn=qn=e}function Wn(t,e){Gn-=t,qn-=e,Vn.add(S(Gn*Gn+qn*qn)),Gn=t,qn=e}function Un(){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"}Un.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 Zn=function(t,e){var n,r,i=4.5;function o(t){return t&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),z(t,n(r))),r.result()}return o.area=function(t){return z(t,n(nn)),nn.result()},o.measure=function(t){return z(t,n(Yn)),Yn.result()},o.bounds=function(t){return z(t,n(hn)),hn.result()},o.centroid=function(t){return z(t,n(Pn)),Pn.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,Je):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new Un):new Nn(e=t),"function"!==typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"===typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)},$n=function(t,n,r,i){return function(o,a){var s,u,l,c=n(a),f=o.invert(i[0],i[1]),h=ce(),d=n(h),p=!1,g={point:v,lineStart:y,lineEnd:_,polygonStart:function(){g.point=x,g.lineStart=b,g.lineEnd=w,u=[],s=[]},polygonEnd:function(){g.point=v,g.lineStart=y,g.lineEnd=_,u=e.merge(u);var t=Se(s,f);u.length?(p||(a.polygonStart(),p=!0),pe(u,Kn,t,r,a)):t&&(p||(a.polygonStart(),p=!0),a.lineStart(),r(null,null,1,a),a.lineEnd()),p&&(a.polygonEnd(),p=!1),u=s=null},sphere:function(){a.polygonStart(),a.lineStart(),r(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function v(e,n){var r=o(e,n);t(e=r[0],n=r[1])&&a.point(e,n)}function m(t,e){var n=o(t,e);c.point(n[0],n[1])}function y(){g.point=m,c.lineStart()}function _(){g.point=v,c.lineEnd()}function x(t,e){l.push([t,e]);var n=o(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(),o=h.result(),c=o.length;if(l.pop(),s.push(l),l=null,c)if(1&i){if(n=o[0],(e=n.length-1)>0){for(p||(a.polygonStart(),p=!0),a.lineStart(),t=0;t<e;++t)a.point((r=n[t])[0],r[1]);a.lineEnd()}}else c>1&&2&i&&o.push(o.pop().concat(o.shift())),u.push(o.filter(Qn))}return g}};function Qn(t){return t.length>1}function Kn(t,e){return((t=t.x)[0]<0?t[1]-l-a:l-t[1])-((e=e.x)[0]<0?e[1]-l-a: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(o,s){var c=o>0?u:-u,f=p(o-n);p(f-u)<a?(t.point(n,r=(r+s)/2>0?l:-l),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(o,r),e=0):i!==c&&f>=u&&(p(n-i)<a&&(n-=i*a),p(o-c)<a&&(o-=c*a),r=er(n,r,o,s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=o,r=s),i=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function er(t,e,n,r){var i,o,s=w(t-n);return p(s)>a?g((w(e)*(o=m(r))*w(n)-w(r)*(i=m(e))*w(t))/(i*o*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])>a){var o=t[0]<e[0]?u:-u;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}var rr=function(t,e){var n=m(t),r=n>0,i=p(n)>a;function o(n,r,i,o){se(o,t,e,i,n,r)}function s(t,e){return m(t)*m(e)>n}function l(t){var e,n,o,l,h;return{lineStart:function(){l=o=!1,h=1},point:function(d,p){var g,v=[d,p],m=s(d,p),y=r?m?0:f(d,p):m?f(d+(d<0?u:-u),p):0;if(!e&&(l=o=m)&&t.lineStart(),m!==o&&(g=c(e,v),(!g||he(e,g)||he(v,g))&&(v[0]+=a,v[1]+=a,m=s(v[0],v[1]))),m!==o)h=0,m?(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^m){var _;y&n||!(_=c(v,e,!0))||(h=0,r?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1])))}!m||e&&he(e,v)||t.point(v[0],v[1]),e=v,o=m,n=y},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return h|(l&&o)<<1}}}function c(t,e,r){var i=it(t),o=it(e),s=[1,0,0],l=at(i,o),c=ot(l,l),f=l[0],h=c-f*f;if(!h)return!r&&t;var d=n*c/h,g=-n*f/h,v=at(s,l),m=ut(s,d),y=ut(l,g);st(m,y);var _=v,x=ot(m,_),b=ot(_,_),w=x*x-b*(ot(m,m)-1);if(!(w<0)){var j=S(w),M=ut(_,(-x-j)/b);if(st(M,m),M=rt(M),!r)return M;var E,P=t[0],C=e[0],k=t[1],A=e[1];C<P&&(E=P,P=C,C=E);var T=C-P,O=p(T-u)<a,I=O||T<a;if(!O&&A<k&&(E=k,k=A,A=E),I?O?k+A>0^M[1]<(p(M[0]-P)<a?k:A):k<=M[1]&&M[1]<=A:T>u^(P<=M[0]&&M[0]<=C)){var R=ut(_,(-x+j)/b);return st(R,m),[M,rt(R)]}}}function f(e,n){var i=r?t:u-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return $n(s,l,o,r?[0,-t]:[-u,t-u])},ir=function(t){return{stream:or(t)}};function or(t){return function(e){var n=new ar;for(var r in t)n[r]=t[r];return n.stream=e,n}}function ar(){}function sr(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),z(n,t.stream(hn));var a=hn.result(),s=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),u=+e[0][0]+(r-s*(a[1][0]+a[0][0]))/2,l=+e[0][1]+(i-s*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*s).translate([u,l])}function ur(t,e,n){return sr(t,[[0,0],e],n)}ar.prototype={constructor:ar,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=m(30*d),fr=function(t,e){return+e?dr(t,e):hr(t)};function hr(t){return or({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function dr(t,e){function n(r,i,o,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&&y--){var j=s+d,M=u+g,E=l+m,C=S(j*j+M*M+E*E),k=P(E/=C),A=p(p(E)-1)<a||p(o-h)<a?(o+h)/2:v(M,j),T=t(A,k),O=T[0],I=T[1],R=O-r,D=I-i,L=b*R-x*D;(L*L/w>e||p((x*R+b*D)/w-.5)>.3||s*d+u*g+l*m<cr)&&(n(r,i,o,s,u,l,O,I,A,j/=C,M/=C,E,y,_),_.point(O,I),n(O,I,A,j,M,E,c,f,h,d,g,m,y,_))}}return function(e){var r,i,o,a,s,u,l,c,f,h,d,p,g={point:v,lineStart:m,lineEnd:_,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=m}};function v(n,r){n=t(n,r),e.point(n[0],n[1])}function m(){c=NaN,g.point=y,e.lineStart()}function y(r,i){var o=it([r,i]),a=t(r,i);n(c,f,l,h,d,p,c=a[0],f=a[1],l=r,h=o[0],d=o[1],p=o[2],lr,e),e.point(c,f)}function _(){g.point=v,e.lineEnd()}function x(){m(),g.point=b,g.lineEnd=w}function b(t,e){y(r=t,e),i=c,o=f,a=h,s=d,u=p,g.point=y}function w(){n(c,f,l,h,d,p,i,o,r,a,s,u,lr,e),g.lineEnd=_,_()}return g}}var pr=or({point:function(t,e){this.stream.point(t*d,e*d)}});function gr(t){return vr((function(){return t}))()}function vr(t){var e,n,r,i,o,a,s,u,l,c,f=150,p=480,g=250,v=0,m=0,y=0,_=0,x=0,b=null,w=Jn,j=null,M=Je,E=.5,P=fr(A,E);function C(t){return t=o(t[0]*d,t[1]*d),[t[0]*f+n,r-t[1]*f]}function k(t){return t=o.invert((t[0]-n)/f,(r-t[1])/f),t&&[t[0]*h,t[1]*h]}function A(t,i){return t=e(t,i),[t[0]*f+n,r-t[1]*f]}function T(){o=te(i=ne(y,_,x),e);var t=e(v,m);return n=p-t[0]*f,r=g+t[1]*f,O()}function O(){return l=c=null,C}return C.stream=function(t){return l&&c===t?l:l=pr(w(i,P(M(c=t))))},C.clipAngle=function(t){return arguments.length?(w=+t?rr(b=t*d,6*d):(b=null,Jn),O()):b*h},C.clipExtent=function(t){return arguments.length?(M=null==t?(j=a=s=u=null,Je):ye(j=+t[0][0],a=+t[0][1],s=+t[1][0],u=+t[1][1]),O()):null==j?null:[[j,a],[s,u]]},C.scale=function(t){return arguments.length?(f=+t,T()):f},C.translate=function(t){return arguments.length?(p=+t[0],g=+t[1],T()):[p,g]},C.center=function(t){return arguments.length?(v=t[0]%360*d,m=t[1]%360*d,T()):[v*h,m*h]},C.rotate=function(t){return arguments.length?(y=t[0]%360*d,_=t[1]%360*d,x=t.length>2?t[2]%360*d:0,T()):[y*h,_*h,x*h]},C.precision=function(t){return arguments.length?(P=fr(A,E=t*t),O()):S(E)},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&&k,T()}}function mr(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 yr(t){var e=m(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 _r(t,e){var n=w(t),r=(n+w(e))/2;if(p(r)<a)return yr(t);var i=1+n*(2*r-n),o=S(i)/r;function s(t,e){var n=S(i-2*r*w(e))/r;return[n*w(t*=r),o-n*m(t)]}return s.invert=function(t,e){var n=o-e;return[v(t,p(n))/r*j(n),P((i-(t*t+n*n)*r*r)/(2*r))]},s}var xr=function(){return mr(_r).scale(155.424).center([0,33.6442])},br=function(){return xr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};function wr(t){var e=t.length;return{point:function(n,r){var i=-1;while(++i<e)t[i].point(n,r)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}var jr=function(){var t,e,n,r,i,o,s=br(),u=xr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=xr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){o=[t,e]}};function f(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function h(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.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(),o=+t[0],f=+t[1];return n=s.translate(t).clipExtent([[o-.455*e,f-.238*e],[o+.455*e,f+.238*e]]).stream(c),r=u.translate([o-.307*e,f+.201*e]).clipExtent([[o-.425*e+a,f+.12*e+a],[o-.214*e-a,f+.234*e-a]]).stream(c),i=l.translate([o-.205*e,f+.212*e]).clipExtent([[o-.214*e+a,f+.166*e+a],[o-.115*e-a,f+.234*e-a]]).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 Sr(t){return function(e,n){var r=m(e),i=m(n),o=t(r*i);return[o*i*w(e),o*w(n)]}}function Mr(t){return function(e,n){var r=S(e*e+n*n),i=t(r),o=w(i),a=m(i);return[v(e*o,r*a),P(r&&n*o/r)]}}var Er=Sr((function(t){return S(2/(1+t))}));Er.invert=Mr((function(t){return 2*P(t/2)}));var Pr=function(){return gr(Er).scale(124.75).clipAngle(179.999)},Cr=Sr((function(t){return(t=E(t))&&t/w(t)}));Cr.invert=Mr((function(t){return t}));var kr=function(){return gr(Cr).scale(79.4188).clipAngle(179.999)};function Ar(t,e){return[t,x(M((l+e)/2))]}Ar.invert=function(t,e){return[t,2*g(_(e))-l]};var Tr=function(){return Or(Ar).scale(961/f)};function Or(t){var e,n,r,i=gr(t),o=i.center,a=i.scale,s=i.translate,l=i.clipExtent,c=null;function f(){var o=u*a(),s=i(ae(i.rotate()).invert([0,0]));return l(null==c?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===Ar?[[Math.max(s[0]-o,c),e],[Math.min(s[0]+o,n),r]]:[[c,Math.max(s[1]-o,e)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),f()):a()},i.translate=function(t){return arguments.length?(s(t),f()):s()},i.center=function(t){return arguments.length?(o(t),f()):o()},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 M((l+t)/2)}function Rr(t,e){var n=m(t),r=t===e?w(t):x(n/m(e))/x(Ir(e)/Ir(t)),i=n*b(Ir(t),r)/r;if(!r)return Ar;function o(t,e){i>0?e<-l+a&&(e=-l+a):e>l-a&&(e=l-a);var n=i/b(Ir(e),r);return[n*w(r*t),i-n*m(r*t)]}return o.invert=function(t,e){var n=i-e,o=j(r)*S(t*t+n*n);return[v(t,p(n))/r*j(n),2*g(b(i/o,1/r))-l]},o}var Dr=function(){return mr(Rr).scale(109.5).parallels([30,30])};function Lr(t,e){return[t,e]}Lr.invert=Lr;var Nr=function(){return gr(Lr).scale(152.63)};function Fr(t,e){var n=m(t),r=t===e?w(t):(n-m(e))/(e-t),i=n/r+t;if(p(r)<a)return Lr;function o(t,e){var n=i-e,o=r*t;return[n*w(o),i-n*m(o)]}return o.invert=function(t,e){var n=i-e;return[v(t,p(n))/r*j(n),i-j(r)*S(t*t+n*n)]},o}var Br=function(){return mr(Fr).scale(131.154).center([0,13.9389])};function zr(t,e){var n=m(e),r=m(t)*n;return[n*w(t)/r,w(e)/r]}zr.invert=Mr(g);var Gr=function(){return gr(zr).scale(144.049).clipAngle(60)};function qr(t,e,n,r){return 1===t&&1===e&&0===n&&0===r?Je:or({point:function(i,o){this.stream.point(i*t+n,o*e+r)}})}var Vr=function(){var t,e,n,r,i,o,a=1,s=0,u=0,l=1,c=1,f=Je,h=null,d=Je;function p(){return r=i=null,o}return o={stream:function(t){return r&&i===t?r:r=f(d(i=t))},clipExtent:function(r){return arguments.length?(d=null==r?(h=t=e=n=null,Je):ye(h=+r[0][0],t=+r[0][1],e=+r[1][0],n=+r[1][1]),p()):null==h?null:[[h,t],[e,n]]},scale:function(t){return arguments.length?(f=qr((a=+t)*l,a*c,s,u),p()):a},translate:function(t){return arguments.length?(f=qr(a*l,a*c,s=+t[0],u=+t[1]),p()):[s,u]},reflectX:function(t){return arguments.length?(f=qr(a*(l=t?-1:1),a*c,s,u),p()):l<0},reflectY:function(t){return arguments.length?(f=qr(a*l,a*(c=t?-1:1),s,u),p()):c<0},fitExtent:function(t,e){return sr(o,t,e)},fitSize:function(t,e){return ur(o,t,e)}}};function Yr(t,e){return[m(e)*w(t),w(e)]}Yr.invert=Mr(P);var Hr=function(){return gr(Yr).scale(249.5).clipAngle(90+a)};function Wr(t,e){var n=m(e),r=1+m(t)*n;return[n*w(t)/r,w(e)/r]}Wr.invert=Mr((function(t){return 2*g(t)}));var Ur=function(){return gr(Wr).scale(250).clipAngle(142)};function Xr(t,e){return[x(M((l+e)/2)),-t]}Xr.invert=function(t,e){return[-e,2*g(_(t))-l]};var Zr=function(){var t=Or(Xr),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>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=Kt,t.geoCircle=le,t.geoClipExtent=we,t.geoContains=Ve,t.geoDistance=Re,t.geoGraticule=We,t.geoGraticule10=Ue,t.geoInterpolate=Ke,t.geoLength=Te,t.geoPath=Zn,t.geoAlbers=br,t.geoAlbersUsa=jr,t.geoAzimuthalEqualArea=Pr,t.geoAzimuthalEqualAreaRaw=Er,t.geoAzimuthalEquidistant=kr,t.geoAzimuthalEquidistantRaw=Cr,t.geoConicConformal=Dr,t.geoConicConformalRaw=Rr,t.geoConicEqualArea=xr,t.geoConicEqualAreaRaw=_r,t.geoConicEquidistant=Br,t.geoConicEquidistantRaw=Fr,t.geoEquirectangular=Nr,t.geoEquirectangularRaw=Lr,t.geoGnomonic=Gr,t.geoGnomonicRaw=zr,t.geoIdentity=Vr,t.geoProjection=gr,t.geoProjectionMutator=vr,t.geoMercator=Tr,t.geoMercatorRaw=Ar,t.geoOrthographic=Hr,t.geoOrthographicRaw=Yr,t.geoStereographic=Ur,t.geoStereographicRaw=Wr,t.geoTransverseMercator=Zr,t.geoTransverseMercatorRaw=Xr,t.geoRotation=ae,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 m=c*Math.sqrt(3),y=o(u,m,c),_=a(y);return l.forEach((function(t){t.qc=t.q-h,t.rc=d-t.r,t.x=r(t,u,m,c),t.y=i(t,u,m,c),t.vertices=y,t.points=_})),l}function r(t,e,n,r){var i=0,o=0;switch(e){case"odd-r":o=t.rc%2===1?n:n/2,i=t.qc*n+o;break;case"even-r":o=t.rc%2===0?n:n/2,i=t.qc*n+o;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,o=0;switch(e){case"odd-r":case"even-r":i=t.rc*r*1.5+r;break;case"odd-q":o=t.qc%2===1?n:n/2,i=t.rc*n+o;break;case"even-q":o=t.qc%2===0?n:n/2,i=t.rc*n+o;break}return i}function o(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 a(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,o,a,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(o=c;o<=l;o++)a="Q"+i+"R"+o,n.hexes[a]={q:i,r:o};return n}function u(t,n,o,a){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)),o/(1.5*(g+1/3))]):e.min([o/((g+.5)*Math.sqrt(3)),n/(1.5*(p+1/3))]);var v=l*Math.sqrt(3),m=[],y=l*l*4,_=s.length;if(_>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;x<_-1;x++)for(var b=x+1;b<_;b++){var w=s[x],j=s[b];if(w[a]!==j[a]&&Math.abs(w.q-j.q)<=1&&Math.abs(w.r-j.r)<=1&&(w.x-j.x)*(w.x-j.x)+(w.y-j.y)*(w.y-j.y)<y){var S={};S.x=j.x+(w.x-j.x)/2,S.y=j.y+(w.y-j.y)/2;var M={},E=4*Math.sqrt(3);M.dx=(w.y-j.y)/E,M.dy=-(w.x-j.x)/E,m.push({x:S.x-2*M.dx,y:S.y-2*M.dy}),m.push({x:S.x-M.dx,y:S.y-M.dy}),m.push({x:S.x,y:S.y}),m.push({x:S.x+M.dx,y:S.y+M.dy}),m.push({x:S.x+2*M.dx,y:S.y+2*M.dy})}}}return m}function l(t,n,o,a){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)),o/(1.5*(g+1/3))]):e.min([o/((g+.5)*Math.sqrt(3)),n/(1.5*(p+1/3))]);var v=l*Math.sqrt(3),m=[],y=l*l*4,_=s.length;if(_>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;x<_-1;x++)for(var b=x+1;b<_;b++){var w=s[x],j=s[b];if(w[a]!==j[a]&&Math.abs(w.q-j.q)<=1&&Math.abs(w.r-j.r)<=1&&(w.x-j.x)*(w.x-j.x)+(w.y-j.y)*(w.y-j.y)<y){var S={};S.x=j.x+(w.x-j.x)/2,S.y=j.y+(w.y-j.y)/2;var M={},E=1;w[a]<j[a]&&(E=-1);var P=2*Math.sqrt(3)*E;M.dx=(w.y-j.y)/P,M.dy=-(w.x-j.x)/P,m.push({x1:S.x-M.dx,y1:S.y-M.dy,x2:S.x+M.dx,y2:S.y+M.dy})}}}return m}t.renderHexJSON=n,t.getGridForHexJSON=s,t.getBoundaryDotsForHexJSON=u,t.getBoundarySegmentsForHexJSON=l,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){return t.parent===e.parent?1:2}function n(t){return t.reduce(r,0)/t.length}function r(t,e){return t+e.x}function i(t){return 1+t.reduce(o,0)}function o(t,e){return Math.max(t,e.y)}function a(t){var e;while(e=t.children)t=e[0];return t}function s(t){var e;while(e=t.children)t=e[e.length-1];return t}function u(){var t=e,r=1,o=1,u=!1;function l(e){var l,c=0;e.eachAfter((function(e){var r=e.children;r?(e.x=n(r),e.y=i(r)):(e.x=l?c+=t(e,l):0,e.y=0,l=e)}));var f=a(e),h=s(e),d=f.x-t(f,h)/2,p=h.x+t(h,f)/2;return e.eachAfter(u?function(t){t.x=(t.x-e.x)*r,t.y=(e.y-t.y)*o}:function(t){t.x=(t.x-d)/(p-d)*r,t.y=(1-(e.y?t.y/e.y:1))*o})}return l.separation=function(e){return arguments.length?(t=e,l):t},l.size=function(t){return arguments.length?(u=!1,r=+t[0],o=+t[1],l):u?null:[r,o]},l.nodeSize=function(t){return arguments.length?(u=!0,r=+t[0],o=+t[1],l):u?[r,o]:null},l}function l(t){var e=0,n=t.children,r=n&&n.length;if(r)while(--r>=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,o=this,a=[o];do{e=a.reverse(),a=[];while(o=e.pop())if(t(o),n=o.children,n)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this}function h(t){var e,n,r=this,i=[r];while(r=i.pop())if(t(r),e=r.children,e)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this}function d(t){var e,n,r,i=this,o=[i],a=[];while(i=o.pop())if(a.push(i),e=i.children,e)for(n=0,r=e.length;n<r;++n)o.push(e[n]);while(i=a.pop())t(i);return this}function p(t){return this.eachAfter((function(e){var n=+t(e.data)||0,r=e.children,i=r&&r.length;while(--i>=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=m(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 m(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 y(){var t=this,e=[t];while(t=t.parent)e.push(t);return e}function _(){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,o,a,s=new P(t),u=+t.value&&(s.value=t.value),l=[s];null==e&&(e=S);while(n=l.pop())if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)l.push(r=n.children[o]=new P(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(E)}function j(){return w(this).eachBefore(M)}function S(t){return t.children}function M(t){t.data=t.data.data}function E(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:y,descendants:_,leaves:x,links:b,copy:j};var C=Array.prototype.slice;function k(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 A(t){var e,n,r=0,i=(t=k(C.call(t))).length,o=[];while(r<i)e=t[r],n&&I(n,e)?++r:(n=D(o=T(o,e)),r=0);return n}function T(t,e){var n,r;if(R(e,t))return[e];for(n=0;n<t.length;++n)if(O(e,t[n])&&R(N(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(O(N(t[n],t[r]),e)&&O(N(t[n],e),t[r])&&O(N(t[r],e),t[n])&&R(F(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function O(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function I(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 R(t,e){for(var n=0;n<e.length;++n)if(!I(t,e[n]))return!1;return!0}function D(t){switch(t.length){case 1:return L(t[0]);case 2:return N(t[0],t[1]);case 3:return F(t[0],t[1],t[2])}}function L(t){return{x:t.x,y:t.y,r:t.r}}function N(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,u=o-n,l=a-r,c=s-i,f=Math.sqrt(u*u+l*l);return{x:(n+o+u/f*c)/2,y:(r+a+l/f*c)/2,r:(f+i+s)/2}}function F(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,u=e.r,l=n.x,c=n.y,f=n.r,h=r-a,d=r-l,p=i-s,g=i-c,v=u-o,m=f-o,y=r*r+i*i-o*o,_=y-a*a-s*s+u*u,x=y-l*l-c*c+f*f,b=d*p-h*g,w=(p*x-g*_)/(2*b)-r,j=(g*v-p*m)/b,S=(d*_-h*x)/(2*b)-i,M=(h*m-d*v)/b,E=j*j+M*M-1,P=2*(o+w*j+S*M),C=w*w+S*S-o*o,k=-(E?(P+Math.sqrt(P*P-4*E*C))/(2*E):C/P);return{x:r+w+j*k,y:i+S+M*k,r:k}}function B(t,e,n){var r,i,o,a,s=t.x-e.x,u=t.y-e.y,l=s*s+u*u;l?(i=e.r+n.r,i*=i,a=t.r+n.r,a*=a,i>a?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*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 G(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function q(t){this._=t,this.next=null,this.previous=null}function V(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,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;B(n,e,r=t[2]),e=new q(e),n=new q(n),r=new q(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){B(e._,n._,r=t[s]),r=new q(r),u=n.next,l=e.previous,c=n._.r,f=e._.r;do{if(c<=f){if(z(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}c+=u._.r,u=u.next}else{if(z(l._,r._)){e=l,e.next=n,n.previous=e,--s;continue t}f+=l._.r,l=l.previous}}while(u!==l.next);r.previous=e,r.next=n,e.next=n.previous=n=r,o=G(e);while((r=r.next)!==n)(a=G(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=A(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function Y(t){return V(t),t}function H(t){return null==t?null:W(t)}function W(t){if("function"!==typeof t)throw new Error;return t}function U(){return 0}function X(t){return function(){return t}}function Z(t){return Math.sqrt(t.value)}function $(){var t=null,e=1,n=1,r=U;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(Q(t)).eachAfter(K(r,.5)).eachBefore(J(1)):i.eachBefore(Q(Z)).eachAfter(K(U,1)).eachAfter(K(r,i.r/Math.min(e,n))).eachBefore(J(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=H(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:X(+t),i):r},i}function Q(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function K(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=V(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function J(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function tt(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function et(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,l=t.value&&(r-e)/t.value;while(++s<u)o=a[s],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*l}function nt(){var t=1,e=1,n=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/a,i.eachBefore(o(e,a)),r&&i.eachBefore(tt),i}function o(t,e){return function(r){r.children&&et(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i}var rt="$",it={depth:-1},ot={};function at(t){return t.id}function st(t){return t.parentId}function ut(){var t=at,e=st;function n(n){var r,i,o,a,s,u,l,c=n.length,f=new Array(c),h={};for(i=0;i<c;++i)r=n[i],s=f[i]=new P(r),null!=(u=t(r,i,n))&&(u+="")&&(l=rt+(s.id=u),h[l]=l in h?ot:s);for(i=0;i<c;++i)if(s=f[i],u=e(n[i],i,n),null!=u&&(u+="")){if(a=h[rt+u],!a)throw new Error("missing: "+u);if(a===ot)throw new Error("ambiguous: "+u);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=it,o.eachBefore((function(t){t.depth=t.parent.depth+1,--c})).eachBefore(E),o.parent=null,c>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=W(e),n):t},n.parentId=function(t){return arguments.length?(e=W(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,o=i.length;while(--o>=0)e=i[o],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,o,a=new gt(t,0),s=[a];while(e=s.pop())if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new gt(r[i],i)),n.parent=e;return(a.parent=new gt(null,0)).children=[a],a}function mt(){var t=lt,e=1,n=1,r=null;function i(i){var s=vt(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(u);else{var l=i,c=i,f=i;i.eachBefore((function(t){t.x<l.x&&(l=t),t.x>c.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 o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){dt(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=s(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,r){if(n){var i,o=e,a=e,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,h=u.m;while(s=ft(s),o=ct(o),s&&o)u=ct(u),a=ft(a),a.a=e,i=s.z+f-o.z-l+t(s._,o._),i>0&&(ht(pt(s,e,r),e,i),l+=i,c+=i),f+=s.m,l+=o.m,h+=u.m,c+=a.m;s&&!ft(a)&&(a.t=s,a.m+=f-c),o&&!ct(u)&&(u.t=o,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 yt(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,l=t.value&&(i-n)/t.value;while(++s<u)o=a[s],o.x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*l}gt.prototype=Object.create(P.prototype);var _t=(1+Math.sqrt(5))/2;function xt(t,e,n,r,i,o){var a,s,u,l,c,f,h,d,p,g,v,m=[],y=e.children,_=0,x=0,b=y.length,w=e.value;while(_<b){u=i-n,l=o-r;do{c=y[x++].value}while(!c&&x<b);for(f=h=c,g=Math.max(l/u,u/l)/(w*t),v=c*c*g,p=Math.max(h/v,v/f);x<b;++x){if(c+=s=y[x].value,s<f&&(f=s),s>h&&(h=s),v=c*c*g,d=Math.max(h/v,v/f),d>p){c-=s;break}p=d}m.push(a={value:c,dice:u<l,children:y.slice(_,x)}),a.dice?et(a,n,r,i,w?r+=l*c/w:o):yt(a,n,r,w?n+=u*c/w:i,o),w-=c,_=x}return m}var bt=function t(e){function n(t,n,r,i,o){xt(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(_t);function wt(){var t=bt,e=!1,n=1,r=1,i=[0],o=U,a=U,s=U,u=U,l=U;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<r&&(r=f=(r+f)/2),h<c&&(c=h=(c+h)/2),e.x0=r,e.y0=c,e.x1=f,e.y1=h,e.children&&(n=i[e.depth+1]=o(e)/2,r+=l(e)-n,c+=a(e)-n,f-=s(e)-n,h-=u(e)-n,f<r&&(r=f=(r+f)/2),h<c&&(c=h=(c+h)/2),t(e,r,c,f,h))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],r=+t[1],c):[n,r]},c.tile=function(e){return arguments.length?(t=W(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:X(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:X(+t),c):a},c.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:X(+t),c):s},c.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:X(+t),c):u},c.paddingLeft=function(t){return arguments.length?(l="function"===typeof t?t:X(+t),c):l},c}function jt(t,e,n,r,i){var o,a,s=t.children,u=s.length,l=new Array(u+1);for(l[0]=a=o=0;o<u;++o)l[o+1]=a+=s[o].value;function c(t,e,n,r,i,o,a){if(t>=e-1){var u=s[t];return u.x0=r,u.y0=i,u.x1=o,void(u.y1=a)}var f=l[t],h=n/2+f,d=t+1,p=e-1;while(d<p){var g=d+p>>>1;l[g]<h?d=g+1:p=g}h-l[d-1]<l[d]-h&&t+1<d&&--d;var v=l[d]-f,m=n-v;if(o-r>a-i){var y=(r*m+o*v)/n;c(t,d,v,r,i,y,a),c(d,e,m,y,i,o,a)}else{var _=(i*m+a*v)/n;c(t,d,v,r,i,o,_),c(d,e,m,r,_,o,a)}}c(0,u,t.value,e,n,r,i)}function St(t,e,n,r,i){(1&t.depth?yt:et)(t,e,n,r,i)}var Mt=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e){var a,s,u,l,c,f=-1,h=a.length,d=t.value;while(++f<h){for(s=a[f],u=s.children,l=s.value=0,c=u.length;l<c;++l)s.value+=u[l].value;s.dice?et(s,n,r,i,r+=(o-r)*s.value/d):yt(s,n,r,n+=(i-n)*s.value/d,o),d-=s.value}}else t._squarify=a=xt(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(_t);t.cluster=u,t.hierarchy=w,t.pack=$,t.packEnclose=A,t.packSiblings=Y,t.partition=nt,t.stratify=ut,t.tree=mt,t.treemap=wt,t.treemapBinary=jt,t.treemapDice=et,t.treemapResquarify=Mt,t.treemapSlice=yt,t.treemapSliceDice=St,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 o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new o}o.prototype=a.prototype={constructor:o,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,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,i,o,a){t=+t,n=+n,i=+i,o=+o,a=+a;var s=this._x1,u=this._y1,l=i-t,c=o-n,f=s-t,h=u-n,d=f*f+h*h;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(h*l-c*f)>r&&a){var p=i-s,g=o-u,v=l*l+c*c,m=p*p+g*g,y=Math.sqrt(v),_=Math.sqrt(d),x=a*Math.tan((e-Math.acos((v+d-m)/(2*y*_)))/2),b=x/_,w=x/y;Math.abs(b-1)>r&&(this._+="L"+(t+b*f)+","+(n+b*h)),this._+="A"+a+","+a+",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,o,a,s,u,l){t=+t,o=+o,a=+a,l=!!l;var c=a*Math.cos(s),f=a*Math.sin(s),h=t+c,d=o+f,p=1^l,g=l?s-u:u-s;if(a<0)throw new Error("negative radius: "+a);null===this._x1?this._+="M"+h+","+d:(Math.abs(this._x1-h)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+h+","+d),a&&(g<0&&(g=g%n+n),g>i?this._+="A"+a+","+a+",0,1,"+p+","+(t-c)+","+(o-f)+"A"+a+","+a+",0,1,"+p+","+(this._x1=h)+","+(this._y1=d):g>r&&(this._+="A"+a+","+a+",0,"+ +(g>=e)+","+p+","+(this._x1=t+a*Math.cos(u))+","+(this._y1=o+a*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=a,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 o(t){return t.target.depth}function a(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,o)-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 m(t){return t.links}function y(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function _(){var t,i=0,o=0,a=1,s=1,l=24,_=8,x=g,b=u,w=v,j=m,S=6;function M(){var t={nodes:w.apply(null,arguments),links:j.apply(null,arguments)};return E(t),P(t),C(t),k(t),A(t),t}function E(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=y(e,r)),"object"!==typeof i&&(i=t.target=y(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,o=t.nodes.length;for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[]){if(r>o)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>o)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=(a-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 k(i){var a=n.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(i.nodes).map((function(t){return t.values}));c(),m();for(var u=.9,l=S;l>0;--l,u*=.9)v(u),m(),g(u),m();function c(){var n=e.min(a,(function(t){return(s-o-(t.length-1)*_)/e.sum(t,p)}));a.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){a.forEach((function(e){e.forEach((function(e){var n,i,o,a,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=(o=void 0,r.__values(f.targetLinks)),m=v.next();!m.done;m=v.next()){var y=m.value,x=y.source,b=y.width;if(x===e)break;g+=b+_/2}}catch(w){o={error:w}}finally{try{m&&!m.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}g=(s-g-f.y0)*t*(p/Math.min(e.value,f.value)),f.y0+=g,f.y1+=g}s+=d+_/2}}catch(j){n={error:j}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}))}))}function v(t){a.slice().reverse().forEach((function(e){e.forEach((function(e){var n,i,o,a,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=(o=void 0,r.__values(h.sourceLinks)),m=v.next();!m.done;m=v.next()){var y=m.value,x=y.target,b=y.width;if(x===e)break;g+=b+_/2}}catch(w){o={error:w}}finally{try{m&&!m.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}g=(s-g-h.y0)*t*(p/Math.min(e.value,h.value)),h.y0+=g,h.y1+=g}s+=d+_/2}}catch(j){n={error:j}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}))}))}function m(){a.forEach((function(e){var n,r,i,a=o,u=e.length;for(void 0===t&&e.sort(d),i=0;i<u;++i)n=e[i],r=a-n.y0,r>0&&(n.y0+=r,n.y1+=r),a=n.y1+_;if(r=a-_-s,r>0)for(a=n.y0-=r,n.y1-=r,i=u-2;i>=0;--i)n=e[i],r=n.y1+_-a,r>0&&(n.y0-=r,n.y1-=r),a=n.y0}))}}function A(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 M.update=function(t){return A(t),t},M.nodeId=function(t){return arguments.length?(x="function"===typeof t?t:c(t),M):x},M.nodeAlign=function(t){return arguments.length?(b="function"===typeof t?t:c(t),M):b},M.nodeSort=function(e){return arguments.length?(t=e,M):t},M.nodeWidth=function(t){return arguments.length?(l=+t,M):l},M.nodePadding=function(t){return arguments.length?(_=+t,M):_},M.nodes=function(t){return arguments.length?(w="function"===typeof t?t:c(t),M):w},M.links=function(t){return arguments.length?(j="function"===typeof t?t:c(t),M):j},M.size=function(t){return arguments.length?(i=o=0,a=+t[0],s=+t[1],M):[a-i,s-o]},M.extent=function(t){return arguments.length?(i=+t[0][0],a=+t[1][0],o=+t[0][1],s=+t[1][1],M):[[i,o],[a,s]]},M.iterations=function(t){return arguments.length?(S=+t,M):S},M}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=_,t.sankeyCenter=l,t.sankeyLeft=a,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,o=Math.cos,a=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 m(t){return t.outerRadius}function y(t){return t.startAngle}function _(t){return t.endAngle}function x(t){return t&&t.padAngle}function b(t,e,n,r,i,o,a,s){var u=n-t,l=r-e,f=a-i,h=s-o,d=h*u-f*l;if(!(d*d<c))return d=(f*(e-o)-h*(t-i))/d,[t+d*u,e+d*l]}function w(t,e,n,r,i,o,s){var u=t-n,c=e-r,f=(s?o:-o)/l(u*u+c*c),h=f*c,d=-f*u,p=t+h,g=e+d,v=n+h,m=r+d,y=(p+v)/2,_=(g+m)/2,x=v-p,b=m-g,w=x*x+b*b,j=i-o,S=p*m-v*g,M=(b<0?-1:1)*l(a(0,j*j*w-S*S)),E=(S*b-x*M)/w,P=(-S*x-b*M)/w,C=(S*b+x*M)/w,k=(-S*x+b*M)/w,A=E-y,T=P-_,O=C-y,I=k-_;return A*A+T*T>O*O+I*I&&(E=C,P=k),{cx:E,cy:P,x01:-h,y01:-d,x11:E*(i/j-1),y11:P*(i/j-1)}}function j(){var t=v,a=m,j=n(0),S=null,M=y,E=_,P=x,C=null;function k(){var n,v,m=+t.apply(this,arguments),y=+a.apply(this,arguments),_=M.apply(this,arguments)-h,x=E.apply(this,arguments)-h,k=r(x-_),A=x>_;if(C||(C=n=e.path()),y<m&&(v=y,y=m,m=v),y>c)if(k>d-c)C.moveTo(y*o(_),y*u(_)),C.arc(0,0,y,_,x,!A),m>c&&(C.moveTo(m*o(x),m*u(x)),C.arc(0,0,m,x,_,A));else{var T,O,I=_,R=x,D=_,L=x,N=k,F=k,B=P.apply(this,arguments)/2,z=B>c&&(S?+S.apply(this,arguments):l(m*m+y*y)),G=s(r(y-m)/2,+j.apply(this,arguments)),q=G,V=G;if(z>c){var Y=g(z/m*u(B)),H=g(z/y*u(B));(N-=2*Y)>c?(Y*=A?1:-1,D+=Y,L-=Y):(N=0,D=L=(_+x)/2),(F-=2*H)>c?(H*=A?1:-1,I+=H,R-=H):(F=0,I=R=(_+x)/2)}var W=y*o(I),U=y*u(I),X=m*o(L),Z=m*u(L);if(G>c){var $,Q=y*o(R),K=y*u(R),J=m*o(D),tt=m*u(D);if(k<f&&($=b(W,U,J,tt,Q,K,X,Z))){var et=W-$[0],nt=U-$[1],rt=Q-$[0],it=K-$[1],ot=1/u(p((et*rt+nt*it)/(l(et*et+nt*nt)*l(rt*rt+it*it)))/2),at=l($[0]*$[0]+$[1]*$[1]);q=s(G,(m-at)/(ot-1)),V=s(G,(y-at)/(ot+1))}}F>c?V>c?(T=w(J,tt,W,U,y,V,A),O=w(Q,K,X,Z,y,V,A),C.moveTo(T.cx+T.x01,T.cy+T.y01),V<G?C.arc(T.cx,T.cy,V,i(T.y01,T.x01),i(O.y01,O.x01),!A):(C.arc(T.cx,T.cy,V,i(T.y01,T.x01),i(T.y11,T.x11),!A),C.arc(0,0,y,i(T.cy+T.y11,T.cx+T.x11),i(O.cy+O.y11,O.cx+O.x11),!A),C.arc(O.cx,O.cy,V,i(O.y11,O.x11),i(O.y01,O.x01),!A))):(C.moveTo(W,U),C.arc(0,0,y,I,R,!A)):C.moveTo(W,U),m>c&&N>c?q>c?(T=w(X,Z,Q,K,m,-q,A),O=w(W,U,J,tt,m,-q,A),C.lineTo(T.cx+T.x01,T.cy+T.y01),q<G?C.arc(T.cx,T.cy,q,i(T.y01,T.x01),i(O.y01,O.x01),!A):(C.arc(T.cx,T.cy,q,i(T.y01,T.x01),i(T.y11,T.x11),!A),C.arc(0,0,m,i(T.cy+T.y11,T.cx+T.x11),i(O.cy+O.y11,O.cx+O.x11),A),C.arc(O.cx,O.cy,q,i(O.y11,O.x11),i(O.y01,O.x01),!A))):C.arc(0,0,m,L,D,A):C.lineTo(X,Z)}else C.moveTo(0,0);if(C.closePath(),n)return C=null,n+""||null}return k.centroid=function(){var e=(+t.apply(this,arguments)+ +a.apply(this,arguments))/2,n=(+M.apply(this,arguments)+ +E.apply(this,arguments))/2-f/2;return[o(n)*e,u(n)*e]},k.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),k):t},k.outerRadius=function(t){return arguments.length?(a="function"===typeof t?t:n(+t),k):a},k.cornerRadius=function(t){return arguments.length?(j="function"===typeof t?t:n(+t),k):j},k.padRadius=function(t){return arguments.length?(S=null==t?null:"function"===typeof t?t:n(+t),k):S},k.startAngle=function(t){return arguments.length?(M="function"===typeof t?t:n(+t),k):M},k.endAngle=function(t){return arguments.length?(E="function"===typeof t?t:n(+t),k):E},k.padAngle=function(t){return arguments.length?(P="function"===typeof t?t:n(+t),k):P},k.context=function(t){return arguments.length?(C=null==t?null:t,k):C},k}function S(t){this._context=t}function M(t){return new S(t)}function E(t){return t[0]}function P(t){return t[1]}function C(){var t=E,r=P,i=n(!0),o=null,a=M,s=null;function u(n){var u,l,c,f=n.length,h=!1;for(null==o&&(s=a(c=e.path())),u=0;u<=f;++u)!(u<f&&i(l=n[u],u,n))===h&&((h=!h)?s.lineStart():s.lineEnd()),h&&s.point(+t(l,u,n),+r(l,u,n));if(c)return s=null,c+""||null}return u.x=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),u):t},u.y=function(t){return arguments.length?(r="function"===typeof t?t:n(+t),u):r},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:n(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u}function k(){var t=E,r=null,i=n(0),o=P,a=n(!0),s=null,u=M,l=null;function c(n){var c,f,h,d,p,g=n.length,v=!1,m=new Array(g),y=new Array(g);for(null==s&&(l=u(p=e.path())),c=0;c<=g;++c){if(!(c<g&&a(d=n[c],c,n))===v)if(v=!v)f=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=c-1;h>=f;--h)l.point(m[h],y[h]);l.lineEnd(),l.areaEnd()}v&&(m[c]=+t(d,c,n),y[c]=+i(d,c,n),l.point(r?+r(d,c,n):m[c],o?+o(d,c,n):y[c]))}if(p)return l=null,p+""||null}function f(){return C().defined(a).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),o=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?(o=null==t?null:"function"===typeof t?t:n(+t),c):o},c.lineX0=c.lineY0=function(){return f().x(t).y(i)},c.lineY1=function(){return f().x(t).y(o)},c.lineX1=function(){return f().x(r).y(i)},c.defined=function(t){return arguments.length?(a="function"===typeof t?t:n(!!t),c):a},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 A(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function T(t){return t}function O(){var t=T,e=A,r=null,i=n(0),o=n(d),a=n(0);function s(n){var s,u,l,c,f,h=n.length,p=0,g=new Array(h),v=new Array(h),m=+i.apply(this,arguments),y=Math.min(d,Math.max(-d,o.apply(this,arguments)-m)),_=Math.min(Math.abs(y)/h,a.apply(this,arguments)),x=_*(y<0?-1:1);for(s=0;s<h;++s)(f=v[g[s]=s]=+t(n[s],s,n))>0&&(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?(y-h*x)/p:0;s<h;++s,m=c)u=g[s],f=v[u],c=m+(f>0?f*l:0)+x,v[u]={data:n[u],index:s,value:f,startAngle:m,endAngle:c,padAngle:_};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?(o="function"===typeof t?t:n(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:n(+t),s):a},s}S.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=D(M);function R(t){this._curve=t}function D(t){function e(e){return new R(t(e))}return e._curve=t,e}function L(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(D(t)):e()._curve},t}function N(){return L(C().curve(I))}function F(){var t=k().curve(I),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=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 L(n())},delete t.lineX0,t.lineEndAngle=function(){return L(r())},delete t.lineX1,t.lineInnerRadius=function(){return L(i())},delete t.lineY0,t.lineOuterRadius=function(){return L(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(D(t)):e()._curve},t}function B(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}R.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 G(t){return t.source}function q(t){return t.target}function V(t){var r=G,i=q,o=E,a=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,+o.apply(this,(u[0]=l,u)),+a.apply(this,u),+o.apply(this,(u[0]=c,u)),+a.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?(o="function"===typeof t?t:n(+t),u):o},u.y=function(t){return arguments.length?(a="function"===typeof t?t:n(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u}function Y(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function H(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function W(t,e,n,r,i){var o=B(e,n),a=B(e,n=(n+i)/2),s=B(r,n),u=B(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function U(){return V(Y)}function X(){return V(H)}function Z(){var t=V(W);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)}},Q={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()}},K=Math.sqrt(1/3),J=2*K,tt={draw:function(t,e){var n=Math.sqrt(e/J),r=n*K;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,ot={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 o=1;o<5;++o){var a=d*o/5,s=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-s*n),t.lineTo(s*r-u*i,u*r+s*i)}t.closePath()}},at={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,o=r,a=n*ft+n,s=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,u),t.lineTo(lt*r-ct*i,ct*r+lt*i),t.lineTo(lt*o-ct*a,ct*o+lt*a),t.lineTo(lt*s-ct*u,ct*s+lt*u),t.lineTo(lt*r+ct*i,lt*i-ct*r),t.lineTo(lt*o+ct*a,lt*a-ct*o),t.lineTo(lt*s+ct*u,lt*u-ct*s),t.closePath()}},pt=[$,Q,tt,at,ot,ut,dt];function gt(){var t=n($),r=n(64),i=null;function o(){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 o.type=function(e){return arguments.length?(t="function"===typeof e?e:n(e),o):t},o.size=function(t){return arguments.length?(r="function"===typeof t?t:n(+t),o):r},o.context=function(t){return arguments.length?(i=null==t?null:t,o):i},o}function vt(){}function mt(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 yt(t){this._context=t}function _t(t){return new yt(t)}function xt(t){this._context=t}function bt(t){return new xt(t)}function wt(t){this._context=t}function jt(t){return new wt(t)}function St(t,e){this._basis=new yt(t),this._beta=e}yt.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:mt(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:mt(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:mt(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:mt(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},St.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],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;while(++u<=n)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Mt=function t(e){function n(t){return 1===e?new yt(t):new St(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Et(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:Et(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:Et(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 kt(t,e){this._context=t,this._k=(1-e)/6}kt.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:Et(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 kt(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:Et(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 Ot=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,o=t._x2,a=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);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/f,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Rt(t,e){this._context=t,this._alpha=e}Rt.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 Dt=function t(e){function n(t){return e?new Rt(t,e):new Pt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Lt(t,e){this._context=t,this._alpha=e}Lt.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 Lt(t,e):new kt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ft(t,e){this._context=t,this._alpha=e}Ft.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 Bt=function t(e){function n(t){return e?new Ft(t,e):new Tt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function zt(t){this._context=t}function Gt(t){return new zt(t)}function qt(t){return t<0?-1:1}function Vt(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(qt(o)+qt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Yt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Ht(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function Wt(t){this._context=t}function Ut(t){this._context=new Xt(t)}function Xt(t){this._context=t}function Zt(t){return new Wt(t)}function $t(t){return new Ut(t)}function Qt(t){this._context=t}function Kt(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Jt(t){return new Qt(t)}function te(t,e){this._context=t,this._t=e}function ee(t){return new te(t,.5)}function ne(t){return new te(t,0)}function re(t){return new te(t,1)}function ie(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function oe(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n}function ae(t,e){return t[e]}function se(){var t=n([]),e=oe,r=ie,i=ae;function o(n){var o,a,s=t.apply(this,arguments),u=n.length,l=s.length,c=new Array(l);for(o=0;o<l;++o){for(var f,h=s[o],d=c[o]=new Array(u),p=0;p<u;++p)d[p]=f=[0,+i(n[p],h,p,n)],f.data=n[p];d.key=h}for(o=0,a=e(c);o<l;++o)c[a[o]].index=o;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"===typeof e?e:n(z.call(e)),o):t},o.value=function(t){return arguments.length?(i="function"===typeof t?t:n(+t),o):i},o.order=function(t){return arguments.length?(e=null==t?oe:"function"===typeof t?t:n(z.call(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?ie:t,o):r},o}function ue(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}ie(t,e)}}function le(t,e){if((s=t.length)>0)for(var n,r,i,o,a,s,u=0,l=t[e[0]].length;u<l;++u)for(o=a=0,n=0;n<s;++n)(i=(r=t[e[n]][u])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=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]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}ie(t,e)}}function fe(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,u=0,l=0;s<i;++s){for(var c=t[e[s]],f=c[a][1]||0,h=c[a-1][1]||0,d=(f-h)/2,p=0;p<s;++p){var g=t[e[p]],v=g[a][1]||0,m=g[a-1][1]||0;d+=v-m}u+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=o,u&&(o-=l/u)}n[a-1][1]+=n[a-1][0]=o,ie(t,e)}}function he(t){var e=t.map(de);return oe(t).sort((function(t,n){return e[t]-e[n]}))}function de(t){var e,n=-1,r=0,i=t.length,o=-1/0;while(++n<i)(e=+t[n][1])>o&&(o=e,r=n);return r}function pe(t){var e=t.map(ge);return oe(t).sort((function(t,n){return e[t]-e[n]}))}function ge(t){var e,n=0,r=-1,i=t.length;while(++r<i)(e=+t[r][1])&&(n+=e);return n}function ve(t){return pe(t).reverse()}function me(t){var e,n,r=t.length,i=t.map(ge),o=he(t),a=0,s=0,u=[],l=[];for(e=0;e<r;++e)n=o[e],a<s?(a+=i[n],u.push(n)):(s+=i[n],l.push(n));return l.reverse().concat(u)}function ye(t){return oe(t).reverse()}zt.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ht(this,this._t0,Yt(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){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,Ht(this,Yt(this,n=Vt(this,t,e)),n);break;default:Ht(this,this._t0,n=Vt(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Ut.prototype=Object.create(Wt.prototype)).point=function(t,e){Wt.prototype.point.call(this,e,t)},Xt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Kt(t),i=Kt(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=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=j,t.area=k,t.areaRadial=F,t.curveBasis=_t,t.curveBasisClosed=bt,t.curveBasisOpen=jt,t.curveBundle=Mt,t.curveCardinal=Ct,t.curveCardinalClosed=At,t.curveCardinalOpen=Ot,t.curveCatmullRom=Dt,t.curveCatmullRomClosed=Nt,t.curveCatmullRomOpen=Bt,t.curveLinear=M,t.curveLinearClosed=Gt,t.curveMonotoneX=Zt,t.curveMonotoneY=$t,t.curveNatural=Jt,t.curveStep=ee,t.curveStepAfter=re,t.curveStepBefore=ne,t.line=C,t.lineRadial=N,t.linkHorizontal=U,t.linkRadial=Z,t.linkVertical=X,t.pie=O,t.pointRadial=B,t.radialArea=F,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=me,t.stackOrderNone=oe,t.stackOrderReverse=ye,t.symbol=gt,t.symbolCircle=$,t.symbolCross=Q,t.symbolDiamond=tt,t.symbolSquare=at,t.symbolStar=ot,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 o(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function a(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],o=N.push(i)-1;return i.left=t,i.right=e,n&&f(i,t,e,n),r&&f(i,e,t,r),D[t.index].halfedges.push(o),D[e.index].halfedges.push(o),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 o,a=t[0],s=t[1],u=a[0],l=a[1],c=s[0],f=s[1],h=0,d=1,p=c-u,g=f-l;if(o=e-u,p||!(o>0)){if(o/=p,p<0){if(o<h)return;o<d&&(d=o)}else if(p>0){if(o>d)return;o>h&&(h=o)}if(o=r-u,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>h&&(h=o)}else if(p>0){if(o<h)return;o<d&&(d=o)}if(o=n-l,g||!(o>0)){if(o/=g,g<0){if(o<h)return;o<d&&(d=o)}else if(g>0){if(o>d)return;o>h&&(h=o)}if(o=i-l,g||!(o<0)){if(o/=g,g<0){if(o>d)return;o>h&&(h=o)}else if(g>0){if(o<h)return;o<d&&(d=o)}return!(h>0||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 o=t[1];if(o)return!0;var a,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<e||g>=r)return;if(f>d){if(u){if(u[1]>=i)return}else u=[g,n];o=[g,i]}else{if(u){if(u[1]<n)return}else u=[g,i];o=[g,n]}}else if(a=(f-d)/(p-h),s=v-a*g,a<-1||a>1)if(f>d){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]<n)return}else u=[(i-s)/a,i];o=[(n-s)/a,n]}else if(h<p){if(u){if(u[0]>=r)return}else u=[e,a*e+s];o=[r,a*r+s]}else{if(u){if(u[0]<e)return}else u=[r,a*r+s];o=[e,a*e+s]}return t[0]=u,t[1]=o,!0}function p(t,e,n,r){var i,o=N.length;while(o--)d(i=N[o],t,e,n,r)&&h(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>F||Math.abs(i[0][1]-i[1][1])>F)||delete N[o]}function g(t){return D[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 m(t,e){return e[+(e.left!==t.site)]}function y(t,e){return e[+(e.left===t.site)]}function _(){for(var t,e,n,r,i=0,o=D.length;i<o;++i)if((t=D[i])&&(r=(e=t.halfedges).length)){var a=new Array(r),s=new Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=v(t,N[e[n]]);for(a.sort((function(t,e){return s[e]-s[t]})),n=0;n<r;++n)s[n]=e[a[n]];for(n=0;n<r;++n)e[n]=s[n]}}function x(t,e,n,r){var i,o,a,s,u,l,f,h,d,p,g,v,_=D.length,x=!0;for(i=0;i<_;++i)if(o=D[i]){a=o.site,u=o.halfedges,s=u.length;while(s--)N[u[s]]||u.splice(s,1);s=0,l=u.length;while(s<l)p=y(o,N[u[s]]),g=p[0],v=p[1],f=m(o,N[u[++s%l]]),h=f[0],d=f[1],(Math.abs(g-h)>F||Math.abs(v-d)>F)&&(u.splice(s,0,N.push(c(a,p,Math.abs(g-t)<F&&r-v>F?[t,Math.abs(h-t)<F?d:r]:Math.abs(v-r)<F&&n-g>F?[Math.abs(d-r)<F?h:n,r]:Math.abs(g-n)<F&&v-e>F?[n,Math.abs(h-n)<F?d:e]:Math.abs(v-e)<F&&g-t>F?[Math.abs(d-e)<F?h:t,e]:null))-1),++l);l&&(x=!1)}if(x){var b,w,j,S=1/0;for(i=0,x=null;i<_;++i)(o=D[i])&&(a=o.site,b=a[0]-t,w=a[1]-e,j=b*b+w*w,j<S&&(S=j,x=o));if(x){var M=[t,e],E=[t,r],P=[n,r],C=[n,e];x.halfedges.push(N.push(c(a=x.site,M,E))-1,N.push(c(a,E,P))-1,N.push(c(a,P,C))-1,N.push(c(a,C,M))-1)}}for(i=0;i<_;++i)(o=D[i])&&(o.halfedges.length||delete D[i])}i.prototype={constructor:i,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){t=t.R;while(t.L)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=u(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);e.L=e.R=null,e.U=n,e.C=!0,t=e;while(n&&n.C)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(a(this,n),t=n,n=t.U),n.C=!1,r.C=!0,s(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(s(this,n),t=n,n=t.U),n.C=!1,r.C=!0,a(this,r))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,l=t.R;if(n=o?l?u(l):o:l,i?i.L===t?i.L=n:i.R=n:this._=n,o&&l?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==l?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=l,l.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,a(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,s(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,a(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,s(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,a(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,s(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var b,w=[];function j(){o(this),this.x=this.y=this.arc=this.site=this.cy=null}function S(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i[0],s=i[1],u=r[0]-a,l=r[1]-s,c=o[0]-a,f=o[1]-s,h=2*(u*f-l*c);if(!(h>=-B)){var d=u*u+l*l,p=c*c+f*f,g=(f*d-l*p)/h,v=(u*p-c*d)/h,m=w.pop()||new j;m.arc=t,m.site=i,m.x=g+a,m.y=(m.cy=v+s)+Math.sqrt(g*g+v*v),t.circle=m;var y=null,_=L._;while(_)if(m.y<_.y||m.y===_.y&&m.x<=_.x){if(!_.L){y=_.P;break}_=_.L}else{if(!_.R){y=_;break}_=_.R}L.insert(y,m),y||(b=m)}}}}function M(t){var e=t.circle;e&&(e.P||(b=e.N),L.remove(e),w.push(e),o(e),t.circle=null)}var E=[];function P(){o(this),this.edge=this.site=this.circle=null}function C(t){var e=E.pop()||new P;return e.site=t,e}function k(t){M(t),R.remove(t),E.push(t),o(t)}function A(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,a=t.N,s=[t];k(t);var u=o;while(u.circle&&Math.abs(n-u.circle.x)<F&&Math.abs(r-u.circle.cy)<F)o=u.P,s.unshift(u),k(u),u=o;s.unshift(u),M(u);var c=a;while(c.circle&&Math.abs(n-c.circle.x)<F&&Math.abs(r-c.circle.cy)<F)a=c.N,s.push(c),k(c),c=a;s.push(c),M(c);var h,d=s.length;for(h=1;h<d;++h)c=s[h],u=s[h-1],f(c.edge,u.site,c.site,i);u=s[0],c=s[d-1],c.edge=l(u.site,c.site,null,i),S(u),S(c)}function T(t){var e,n,r,i,o=t[0],a=t[1],s=R._;while(s)if(r=O(s,a)-o,r>F)s=s.L;else{if(i=o-I(s,a),!(i>F)){r>-F?(e=s.P,n=s):i>-F?(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(R.insert(e,u),e||n){if(e===n)return M(e),n=C(e.site),R.insert(u,n),u.edge=n.edge=l(e.site,u.site),S(e),void S(n);if(n){M(e),M(n);var c=e.site,h=c[0],d=c[1],p=t[0]-h,v=t[1]-d,m=n.site,y=m[0]-h,_=m[1]-d,x=2*(p*_-v*y),b=p*p+v*v,w=y*y+_*_,j=[(_*b-v*w)/x+h,(p*w-y*b)/x+d];f(n.edge,c,m,j),u.edge=l(c,t,null,j),n.edge=l(t,m,null,j),S(e),S(n)}else u.edge=l(e.site,u.site)}}function O(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;n=a.site;var s=n[0],u=n[1],l=u-e;if(!l)return s;var c=s-r,f=1/o-1/l,h=c/l;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function I(t,e){var n=t.N;if(n)return O(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var R,D,L,N,F=1e-6,B=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 G(t,e){return e[1]-t[1]||e[0]-t[0]}function q(t,e){var n,r,o,a=t.sort(G).pop();N=[],D=new Array(t.length),R=new i,L=new i;while(1)if(o=b,a&&(!o||a[1]<o.y||a[1]===o.y&&a[0]<o.x))a[0]===n&&a[1]===r||(T(a),n=a[0],r=a[1]),a=t.pop();else{if(!o)break;A(o.arc)}if(_(),e){var s=+e[0][0],u=+e[0][1],l=+e[1][0],c=+e[1][1];p(s,u,l,c),x(s,u,l,c)}this.edges=N,this.cells=D,R=L=N=D=null}function V(){var t=n,i=r,o=null;function a(e){return new q(e.map((function(n,r){var o=[Math.round(t(n,r,e)/F)*F,Math.round(i(n,r,e)/F)*F];return o.index=r,o.data=n,o})),o)}return a.polygons=function(t){return a(t).polygons()},a.links=function(t){return a(t).links()},a.triangles=function(t){return a(t).triangles()},a.x=function(n){return arguments.length?(t="function"===typeof n?n:e(+n),a):t},a.y=function(t){return arguments.length?(i="function"===typeof t?t:e(+t),a):i},a.extent=function(t){return arguments.length?(o=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],a):o&&[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},a.size=function(t){return arguments.length?(o=null==t?null:[[0,0],[+t[0],+t[1]]],a):o&&[o[1][0]-o[0][0],o[1][1]-o[0][1]]},a}q.prototype={constructor:q,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return m(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length){var i,o,a,s=n.site,u=-1,l=e[i[o-1]],c=l.left===s?l.right:l.left;while(++u<o)a=c,l=e[i[u]],c=l.left===s?l.right:l.left,a&&c&&r<a.index&&r<c.index&&z(s,a,c)<0&&t.push([s.data,a.data,c.data])}})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){var r,i,o=this,a=o._found||0,s=o.cells.length;while(!(i=o.cells[a]))if(++a>=s)return null;var u=t-i.site[0],l=e-i.site[1],c=u*u+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.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;f<c&&(c=f,a=s.index)}}))}while(null!==a);return o._found=r,null==n||c<=n*n?i.site:null}},t.voronoi=V,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_dagre@0.8.5@dagre/index.js":function(t,e,n){t.exports={graphlib:n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js"),layout:n("./node_modules/_dagre@0.8.5@dagre/lib/layout.js"),debug:n("./node_modules/_dagre@0.8.5@dagre/lib/debug.js"),util:{time:n("./node_modules/_dagre@0.8.5@dagre/lib/util.js").time,notime:n("./node_modules/_dagre@0.8.5@dagre/lib/util.js").notime},version:n("./node_modules/_dagre@0.8.5@dagre/lib/version.js")}},"./node_modules/_dagre@0.8.5@dagre/lib/acyclic.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/greedy-fas.js");function o(t){var e="greedy"===t.graph().acyclicer?i(t,n(t)):a(t);function n(t){return function(e){return t.edge(e).weight}}r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))}function a(t){var e=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])}return r.forEach(t.nodes(),o),e}function s(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}t.exports={run:o,undo:s}},"./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.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 o(t){function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.forEach(i,e),r.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,u=o.maxRank+1;s<u;++s)a(t,"borderLeft","_bl",n,o,s),a(t,"borderRight","_br",n,o,s)}}r.forEach(t.children(),e)}function a(t,e,n,r,o,a){var s={width:0,height:0,rank:a,borderType:e},u=o[e][a-1],l=i.addDummyNode(t,"border",s,n);o[e][a]=l,t.setParent(l,r),u&&t.setEdge(u,l,{weight:1})}t.exports=o},"./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.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=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||a(t)}function o(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||u(t),"lr"!==e&&"rl"!==e||(c(t),a(t))}function a(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){s(t.edge(e))}))}function s(t){var e=t.width;t.width=t.height,t.height=e}function u(t){r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,l),r.has(n,"y")&&l(n)}))}function l(t){t.y=-t.y}function c(t){r.forEach(t.nodes(),(function(e){f(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,f),r.has(n,"x")&&f(n)}))}function f(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:i,undo:o}},"./node_modules/_dagre@0.8.5@dagre/lib/data/list.js":function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){var t=[],e=this._sentinel,n=e._prev;while(n!==e)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},"./node_modules/_dagre@0.8.5@dagre/lib/debug.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"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function a(t){var e=i.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}t.exports={debugOrdering:a}},"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js":function(t,e,n){var r;try{r=n("./node_modules/_graphlib@2.1.8@graphlib/index.js")}catch(i){}r||(r=window.graphlib),t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/greedy-fas.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/graphlib.js").Graph,o=n("./node_modules/_dagre@0.8.5@dagre/lib/data/list.js");t.exports=s;var a=r.constant(1);function s(t,e){if(t.nodeCount()<=1)return[];var n=c(t,e||a),i=u(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(i,(function(e){return t.outEdges(e.v,e.w)})),!0)}function u(t,e,n){var r,i=[],o=e[e.length-1],a=e[0];while(t.nodeCount()){while(r=a.dequeue())l(t,e,n,r);while(r=o.dequeue())l(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--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,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);o&&a.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),o=r.w,a=t.node(o);a["in"]-=i,f(e,n,a)})),t.removeNode(i.v),a}function c(t,e){var n=new i,a=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),o=r+i;n.setEdge(t.v,t.w,o),s=Math.max(s,n.node(t.v).out+=i),a=Math.max(a,n.node(t.w)["in"]+=i)}));var u=r.range(s+a+3).map((function(){return new o})),l=a+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"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/normalize.js"),a=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 m(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(){y(e,n)})),n(" updateInputGraph",(function(){_(t,e)}))}))}function y(t,e){e(" makeSpaceForEdgeLabels",(function(){k(t)})),e(" removeSelfEdges",(function(){F(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){c.run(t)})),e(" rank",(function(){a(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){A(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(){O(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){B(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(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){D(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){I(t)})),e(" assignNodeIntersects",(function(){R(t)})),e(" reversePoints",(function(){L(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}function _(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),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}t.exports=m;var x=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},w=["acyclicer","ranker","rankdir","align"],j=["width","height"],S={width:0,height:0},M=["minlen","weight","width","height","labeloffset"],E={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=q(t.graph());return e.setGraph(r.merge({},b,G(n,x),r.pick(n,w))),r.forEach(t.nodes(),(function(n){var i=q(t.node(n));e.setNode(n,r.defaults(G(i,j),S)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=q(t.edge(n));e.setEdge(n,r.merge({},E,G(i,M),r.pick(i,P)))})),e}function k(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 A(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),o={rank:(i.rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",o,"_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 O(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,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function l(t){var r=t.x,a=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,a-u/2),o=Math.max(o,a+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 o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),a.width=n-e+s,a.height=o-i+u}function R(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))}))}function D(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 L(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),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.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 F(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 B(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.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,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}function G(t,e){return r.mapValues(r.pick(t,e),Number)}function q(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 o(t){var e=i.addDummyNode(t,"root",{},"_root"),n=s(t),o=r.max(r.values(n))-1,l=2*o+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){a(t,e,l,c,o,n,r)})),t.graph().nodeRankFactor=l}function a(t,e,n,o,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){a(t,e,n,o,s,u,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,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,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){n(t,o+1)})),e[i]=o}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:o,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 o(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){a(t,e)}))}function a(t,e){var n=e.v,r=t.node(n).rank,o=e.w,a=t.node(o).rank,s=e.name,u=t.edge(e),l=u.labelRank;if(a!==r+1){var c,f,h;for(t.removeEdge(e),h=0,++r;r<a;++h,++r)u.points=[],f={width:0,height:0,edgeLabel:u,edgeObj:e,rank:r},c=i.addDummyNode(t,"edge",f,"_d"),r===l&&(f.width=u.width,f.height=u.height,f.dummy="edge-label",f.labelpos=u.labelpos),t.setEdge(n,c,{weight:u.weight},s),0===h&&t.graph().dummyChains.push(c),n=c;t.setEdge(n,o,{weight:u.weight},s)}}function s(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;t.setEdge(r.edgeObj,i);while(r.dummy)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}t.exports={run:o,undo:s}},"./node_modules/_dagre@0.8.5@dagre/lib/order/add-subgraph-constraints.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function i(t,e,n){var i,o={};r.forEach(n,(function(n){var r,a,s=t.parent(n);while(s){if(r=t.parent(s),r?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s)return void e.setEdge(a,s);s=r}}))}t.exports=i},"./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function i(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}t.exports=i},"./node_modules/_dagre@0.8.5@dagre/lib/order/build-layer-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/graphlib.js").Graph;function o(t,e,n){var o=a(t),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var a=t.node(i),u=t.parent(i);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(s.setNode(i),s.setParent(i,u||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:t.edge(e).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),s}function a(t){var e;while(t.hasNode(e=r.uniqueId("_root")));return e}t.exports=o},"./node_modules/_dagre@0.8.5@dagre/lib/order/cross-count.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function i(t,e){for(var n=0,r=1;r<e.length;++r)n+=o(t,e[r-1],e[r]);return n}function o(t,e,n){var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;while(a<n.length)a<<=1;var s=2*a-1;a-=1;var u=r.map(new Array(s),(function(){return 0})),l=0;return r.forEach(o.forEach((function(t){var e=t.pos+a;u[e]+=t.weight;var n=0;while(e>0)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"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/order/cross-count.js"),a=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"),a=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:a,f%4>=2),s=c.buildLayerMatrix(t);var v=o(t,s);v<l&&(g=0,u=r.cloneDeep(s),l=v)}p(t,u)}function h(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function d(t,e){var n=new l;r.forEach(t,(function(t){var i=t.graph().root,o=a(t,i,n,e);r.forEach(o.vs,(function(e,n){t.node(e).order=n})),u(t,n,o.vs)}))}function p(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=f},"./node_modules/_dagre@0.8.5@dagre/lib/order/init-order.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={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]}));function a(n){if(!r.has(e,n)){e[n]=!0;var i=t.node(n);o[i.rank].push(n),r.forEach(t.successors(n),a)}}var s=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(s,a),o}t.exports=i},"./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function i(t,e){var n={};r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))}));var i=r.filter(n,(function(t){return!t.indegree}));return o(i)}function o(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&a(t,e)}}function i(e){return function(n){n["in"].push(e),0===--n.indegree&&t.push(n)}}while(t.length){var o=t.pop();e.push(o),r.forEach(o["in"].reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}function a(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"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js"),a=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 m=o(v,n);u(m,g);var y=a(m,c);if(d&&(y.vs=r.flatten([d,y.vs,p],!0),t.predecessors(d).length)){var _=t.node(t.predecessors(d)[0]),x=t.node(t.predecessors(p)[0]);r.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+_.order+x.order)/(y.weight+2),y.weight+=2}return y}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 o(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),o=n.lhs,u=r.sortBy(n.rhs,(function(t){return-t.i})),l=[],c=0,f=0,h=0;o.sort(s(!!e)),h=a(l,u,h),r.forEach(o,(function(t){h+=t.vs.length,l.push(t.vs),c+=t.barycenter*t.weight,f+=t.weight,h=a(l,u,h)}));var d={vs:r.flatten(l,!0)};return f&&(d.barycenter=c/f,d.weight=f),d}function a(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.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}t.exports=o},"./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=a(t);r.forEach(t.graph().dummyChains,(function(n){var r=t.node(n),i=r.edgeObj,a=o(t,e,i.v,i.w),s=a.path,u=a.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).maxRank<r.rank)l++;c===u&&(f=!1)}if(!f){while(l<s.length-1&&t.node(c=s[l+1]).minRank<=r.rank)l++;c=s[l]}t.setParent(n,c),n=t.successors(n)[0]}}))}function o(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||l>e[i].lim));o=i,i=r;while((i=t.parent(i))!==o)s.push(i);return{path:a.concat(s.reverse()),lca:o}}function a(t){var e={},n=0;function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,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,o=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js");function a(t,e){var n={};function i(e,i){var o=0,a=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(a,f+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),a=i.order;!(a<o||d<a)||i.dummy&&t.node(e).dummy||l(n,r,e)}))})),a=f+1,o=d)})),i}return r.reduce(e,i),n}function s(t,e){var n={};function i(e,i,o,a,s){var u;r.forEach(r.range(i,o),(function(i){u=e[i],t.node(u).dummy&&r.forEach(t.predecessors(u),(function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>s)&&l(n,e,u)}))}))}function o(e,n){var o,a=-1,s=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(o=t.node(l[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)})),n}return r.reduce(e,o),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 o={},a={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,a[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];a[t]===t&&e<s[d]&&!c(n,t,d)&&(a[d]=t,a[t]=o[t]=o[d],e=s[d])}}}))})),{root:o,align:a}}function h(t,e,n,i,o){var a={},s=d(t,e,n,o),u=o?"borderLeft":"borderRight";function l(t,e){var n=s.nodes(),r=n.pop(),i={};while(r)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}function c(t){a[t]=s.inEdges(t).reduce((function(t,e){return Math.max(t,a[e.v]+s.edge(e))}),0)}function f(e){var n=s.outEdges(e).reduce((function(t,e){return Math.min(t,a[e.w]-s.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(a[e]=Math.max(a[e],n))}return l(c,s.predecessors.bind(s)),l(f,s.successors.bind(s)),r.forEach(i,(function(t){a[t]=a[n[t]]})),a}function d(t,e,n,o){var a=new i,s=t.graph(),u=y(s.nodesep,s.edgesep,o);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(a.setNode(r),i){var o=n[i],s=a.edge(o,r);a.setEdge(o,r,Math.max(u(t,e,i),s||0))}i=e}))})),a}function p(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var o=_(t,r)/2;n=Math.max(e+o,n),i=Math.min(e-o,i)})),n-i}))}function g(t,e){var n=r.values(e),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,u=n+a,l=t[u];if(l!==e){var c=r.values(l);s="l"===a?i-r.min(c):o-r.max(c),s&&(t[u]=r.mapValues(l,(function(t){return t+s})))}}))}))}function v(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var o=r.sortBy(r.map(t,i));return(o[1]+o[2])/2}))}function m(t){var e,n=o.buildLayerMatrix(t),i=r.merge(a(t,n),s(t,n)),u={};r.forEach(["u","d"],(function(o){e="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var a=("u"===o?t.predecessors:t.successors).bind(t),s=f(t,e,i,a),l=h(t,e,s.root,s.align,"r"===n);"r"===n&&(l=r.mapValues(l,(function(t){return-t}))),u[o+n]=l}))}));var l=p(t,u);return g(u,l),v(u,t.graph().align)}function y(t,e,n){return function(i,o,a){var s,u=i.node(o),l=i.node(a),c=0;if(c+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=-u.width/2;break;case"r":s=u.width/2;break}if(s&&(c+=n?s:-s),s=0,c+=(u.dummy?e:t)/2,c+=(l.dummy?e:t)/2,c+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=l.width/2;break;case"r":s=-l.width/2;break}return s&&(c+=n?s:-s),s=0,c}}function _(t,e){return t.node(e).width}t.exports={positionX:m,findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:c,verticalAlignment:f,horizontalCompaction:h,alignCoordinates:g,findSmallestWidthAlignment:p,balance:v}},"./node_modules/_dagre@0.8.5@dagre/lib/position/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/util.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/position/bk.js").positionX;function a(t){t=i.asNonCompoundGraph(t),s(t),r.forEach(o(t),(function(e,n){t.node(n).x=e}))}function s(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,o=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+i/2})),o+=i+n}))}t.exports=a},"./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.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,o=n("./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").slack;function a(t){var e,n,r=new i({directed:!1}),a=t.nodes()[0],c=t.nodeCount();r.setNode(a,{});while(s(r,t)<c)e=u(r,t),n=r.hasNode(e.v)?o(t,e):-o(t,e),l(r,t,n);return r}function s(t,e){function n(i){r.forEach(e.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;t.hasNode(s)||o(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))}return r.forEach(t.nodes(),n),t.nodeCount()}function u(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function l(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=a},"./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js"),i=r.longestPath,o=n("./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.js"),a=n("./node_modules/_dagre@0.8.5@dagre/lib/rank/network-simplex.js");function s(t){switch(t.graph().ranker){case"network-simplex":c(t);break;case"tight-tree":l(t);break;case"longest-path":u(t);break;default:c(t)}}t.exports=s;var u=i;function l(t){i(t),o(t)}function c(t){a(t)}},"./node_modules/_dagre@0.8.5@dagre/lib/rank/network-simplex.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/rank/feasible-tree.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").slack,a=n("./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").longestPath,s=n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").alg.preorder,u=n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").alg.postorder,l=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js").simplify;function c(t){t=l(t),a(t);var e,n,r=i(t);p(r),f(r,t);while(e=v(r))n=m(r,t,e),y(r,t,e,n)}function f(t,e){var n=u(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){h(t,e,n)}))}function h(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=d(t,e,n)}function d(t,e,n){var i=t.node(n),o=i.parent,a=!0,s=e.edge(n,o),u=0;return s||(a=!1,s=e.edge(o,n)),u=s.weight,r.forEach(e.nodeEdges(n),(function(r){var i=r.v===n,s=i?r.w:r.v;if(s!==o){var l=i===a,c=e.edge(r).weight;if(u+=l?c:-c,x(t,n,s)){var f=t.edge(n,s).cutvalue;u+=l?-f:f}}})),u}function p(t,e){arguments.length<2&&(e=t.nodes()[0]),g(t,{},1,e)}function g(t,e,n,i,o){var a=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=g(t,e,n,o,i))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function v(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function m(t,e,n){var i=n.v,a=n.w;e.hasEdge(i,a)||(i=n.w,a=n.v);var s=t.node(i),u=t.node(a),l=s,c=!1;s.lim>u.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 o(e,t)}))}function y(t,e,n,r){var i=n.v,o=n.w;t.removeEdge(i,o),t.setEdge(r.v,r.w,{}),p(t),f(t,e),_(t,e)}function _(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),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?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=m,c.exchangeEdges=y},"./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 o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&void 0!==a&&null!==a||(a=0),o.rank=a}r.forEach(t.sources(),n)}function o(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}t.exports={longestPath:i,slack:o}},"./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 o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(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,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,l=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+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),o=i.rank;r.isUndefined(o)||(e[o][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,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!==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),o(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 m(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}}function y(t,e){return e()}t.exports={addDummyNode:o,simplify:a,asNonCompoundGraph:s,successorWeights:u,predecessorWeights:l,intersectRect:c,buildLayerMatrix:f,normalizeRanks:h,removeEmptyRanks:d,addBorderNode:p,maxRank:g,partition:v,time:m,notime:y}},"./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 o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(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),a=[],s={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);o(t,e,"post"===n,s,i,a)})),a}function o(t,e,n,i,a,s){r.has(i,e)||(i[e]=!0,n||s.push(e),r.each(a(e),(function(e){o(t,e,n,i,a,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 o(t,e,n){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,e,n)}),{})}t.exports=o},"./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=a;var o=r.constant(1);function a(t,e,n,r){return s(t,String(e),n||o,r||function(e){return t.outEdges(e)})}function s(t,e,n,r){var o,a,s={},u=new i,l=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),l=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l<r.distance&&(r.distance=l,r.predecessor=o,u.decrease(e,l))};t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},u.add(t,n)}));while(u.size()>0){if(o=u.removeMin(),a=s[o],a.distance===Number.POSITIVE_INFINITY)break;r(o).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 o(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}t.exports=o},"./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=o;var i=r.constant(1);function o(t,e,n){return a(t,e||i,n||function(e){return t.outEdges(e)})}function a(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,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[t],i=e[n],a=o[n],s=r.distance+i.distance;s<a.distance&&(a.distance=s,a.predecessor=i.predecessor)}))}))})),r}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js":function(t,e,n){t.exports={components:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js"),dijkstra:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js"),dijkstraAll:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js"),findCycles:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js"),floydWarshall:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js"),isAcyclic:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/is-acyclic.js"),postorder:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/postorder.js"),preorder:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/preorder.js"),prim:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/prim.js"),tarjan:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js"),topsort:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/is-acyclic.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js");function i(t){try{r(t)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}t.exports=i},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/postorder.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js");function i(t,e){return r(t,e,"post")}t.exports=i},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/preorder.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js");function i(t,e){return r(t,e,"pre")}t.exports=i},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/prim.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"),o=n("./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js");function a(t,e){var n,a=new i,s={},u=new o;function l(t){var r=t.v===n?t.w:t.v,i=u.priority(r);if(void 0!==i){var o=e(t);o<i&&(s[r]=n,u.decrease(r,o))}}if(0===t.nodeCount())return a;r.each(t.nodes(),(function(t){u.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),u.decrease(t.nodes()[0],0);var c=!1;while(u.size()>0){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(n).forEach(l)}return a}t.exports=a},"./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={},o=[];function a(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)):(a(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);o.push(c)}}return t.nodes().forEach((function(t){r.has(i,t)||a(t)})),o}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 a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}if(r.each(t.sinks(),a),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.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,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!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<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){var e,n=this._arr,r=n[t].priority;while(0!==t){if(e=t>>1,n[e].priority<r)break;this._swap(t,e),t=e}},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e}},"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js":function(t,e,n){"use strict";var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=s;var i="\0",o="\0",a="\x01";function s(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(t,e){t[e]?t[e]++:t[e]=1}function l(t,e){--t[e]||delete t[e]}function c(t,e,n,o){var s=""+e,u=""+n;if(!t&&s>u){var l=s;s=u,u=l}return s+a+u+a+(r.isUndefined(o)?i:o)}function f(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};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]=o,this._children[t]={},this._children[o][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=o;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!==o)return e}},s.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===o)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 o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,o(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,o=!1,a=arguments[0];"object"===typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!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 o&&(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]=o?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 o(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:a(t),edges:s(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e}function a(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}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:o,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"),o=r(i,"DataView");t.exports=o},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/_hashGet.js"),a=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<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_ListCache.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_listCacheClear.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_listCacheDelete.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_listCacheGet.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_listCacheHas.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_listCacheSet.js");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_Map.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"),o=r(i,"Map");t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_MapCache.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_mapCacheClear.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_mapCacheDelete.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_mapCacheGet.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_mapCacheHas.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_mapCacheSet.js");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_Promise.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"),o=r(i,"Promise");t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_Set.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"),o=r(i,"Set");t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_SetCache.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_MapCache.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_setCacheAdd.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_setCacheHas.js");function a(t){var e=-1,n=null==t?0:t.length;this.__data__=new r;while(++e<n)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_Stack.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/_stackClear.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_stackDelete.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_stackGet.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_stackHas.js"),u=n("./node_modules/_lodash@4.17.15@lodash/_stackSet.js");function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=i,l.prototype["delete"]=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_Symbol.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_root.js"),i=r.Symbol;t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_Uint8Array.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_root.js"),i=r.Uint8Array;t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_WeakMap.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"),o=r(i,"WeakMap");t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_apply.js":function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayEach.js":function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayFilter.js":function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayIncludes.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIndexOf.js");function i(t,e){var n=null==t?0:t.length;return!!n&&r(t,e,0)>-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(++r<i)if(n(e,t[r]))return!0;return!1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayLikeKeys.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseTimes.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArguments.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_isIndex.js"),u=n("./node_modules/_lodash@4.17.15@lodash/isTypedArray.js"),l=Object.prototype,c=l.hasOwnProperty;function f(t,e){var n=o(t),l=!n&&i(t),f=!n&&!l&&a(t),h=!n&&!l&&!f&&u(t),d=n||l||f||h,p=d?r(t.length,String):[],g=p.length;for(var v in t)!e&&!c.call(t,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||p.push(v);return p}t.exports=f},"./node_modules/_lodash@4.17.15@lodash/_arrayMap.js":function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayPush.js":function(t,e){function n(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayReduce.js":function(t,e){function n(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arraySome.js":function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_asciiSize.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseProperty.js"),i=r("length");t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_assignMergeValue.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/eq.js");function o(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_assignValue.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/eq.js"),o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n){var o=t[e];a.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/eq.js");function i(t,e){var n=t.length;while(n--)if(r(t[n][0],e))return n;return-1}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_baseAssign.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/keys.js");function o(t,e){return t&&r(e,i(e),t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseAssignIn.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 o(t,e){return t&&r(e,i(e),t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseAssignValue.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_defineProperty.js");function i(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_baseClone.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/_arrayEach.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_assignValue.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseAssign.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_baseAssignIn.js"),u=n("./node_modules/_lodash@4.17.15@lodash/_cloneBuffer.js"),l=n("./node_modules/_lodash@4.17.15@lodash/_copyArray.js"),c=n("./node_modules/_lodash@4.17.15@lodash/_copySymbols.js"),f=n("./node_modules/_lodash@4.17.15@lodash/_copySymbolsIn.js"),h=n("./node_modules/_lodash@4.17.15@lodash/_getAllKeys.js"),d=n("./node_modules/_lodash@4.17.15@lodash/_getAllKeysIn.js"),p=n("./node_modules/_lodash@4.17.15@lodash/_getTag.js"),g=n("./node_modules/_lodash@4.17.15@lodash/_initCloneArray.js"),v=n("./node_modules/_lodash@4.17.15@lodash/_initCloneByTag.js"),m=n("./node_modules/_lodash@4.17.15@lodash/_initCloneObject.js"),y=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),_=n("./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),x=n("./node_modules/_lodash@4.17.15@lodash/isMap.js"),b=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),w=n("./node_modules/_lodash@4.17.15@lodash/isSet.js"),j=n("./node_modules/_lodash@4.17.15@lodash/keys.js"),S=1,M=2,E=4,P="[object Arguments]",C="[object Array]",k="[object Boolean]",A="[object Date]",T="[object Error]",O="[object Function]",I="[object GeneratorFunction]",R="[object Map]",D="[object Number]",L="[object Object]",N="[object RegExp]",F="[object Set]",B="[object String]",z="[object Symbol]",G="[object WeakMap]",q="[object ArrayBuffer]",V="[object DataView]",Y="[object Float32Array]",H="[object Float64Array]",W="[object Int8Array]",U="[object Int16Array]",X="[object Int32Array]",Z="[object Uint8Array]",$="[object Uint8ClampedArray]",Q="[object Uint16Array]",K="[object Uint32Array]",J={};function tt(t,e,n,C,k,A){var T,R=e&S,D=e&M,N=e&E;if(n&&(T=k?n(t,C,k,A):n(t)),void 0!==T)return T;if(!b(t))return t;var F=y(t);if(F){if(T=g(t),!R)return l(t,T)}else{var B=p(t),z=B==O||B==I;if(_(t))return u(t,R);if(B==L||B==P||z&&!k){if(T=D||z?{}:m(t),!R)return D?f(t,s(T,t)):c(t,a(T,t))}else{if(!J[B])return k?t:{};T=v(t,B,R)}}A||(A=new r);var G=A.get(t);if(G)return G;A.set(t,T),w(t)?t.forEach((function(r){T.add(tt(r,e,n,r,t,A))})):x(t)&&t.forEach((function(r,i){T.set(i,tt(r,e,n,i,t,A))}));var q=N?D?d:h:D?keysIn:j,V=F?void 0:q(t);return i(V||t,(function(r,i){V&&(i=r,r=t[i]),o(T,i,tt(r,e,n,i,t,A))})),T}J[P]=J[C]=J[q]=J[V]=J[k]=J[A]=J[Y]=J[H]=J[W]=J[U]=J[X]=J[R]=J[D]=J[L]=J[N]=J[F]=J[B]=J[z]=J[Z]=J[$]=J[Q]=J[K]=!0,J[T]=J[O]=J[G]=!1,t.exports=tt},"./node_modules/_lodash@4.17.15@lodash/_baseCreate.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseEach.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_createBaseEach.js"),o=i(r);t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isSymbol.js");function i(t,e,n){var i=-1,o=t.length;while(++i<o){var a=t[i],s=e(a);if(null!=s&&(void 0===u?s===s&&!r(s):n(s,u)))var u=s,l=a}return l}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_baseFilter.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseEach.js");function i(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_baseFindIndex.js":function(t,e){function n(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayPush.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_isFlattenable.js");function o(t,e,n,a,s){var u=-1,l=t.length;n||(n=i),s||(s=[]);while(++u<l){var c=t[u];e>0&&n(c)?e>1?o(c,e-1,n,a,s):r(s,c):a||(s[s.length]=c)}return s}t.exports=o},"./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 o(t,e){return t&&r(t,e,i)}t.exports=o},"./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 o(t,e){e=r(e,t);var n=0,o=e.length;while(null!=t&&n<o)t=t[i(e[n++])];return n&&n==o?t:void 0}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseGetAllKeys.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayPush.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArray.js");function o(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_getRawTag.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_objectToString.js"),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;function l(t){return null==t?void 0===t?s:a:u&&u in Object(t)?i(t):o(t)}t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_baseGt.js":function(t,e){function n(t,e){return t>e}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"),o=n("./node_modules/_lodash@4.17.15@lodash/_strictIndexOf.js");function a(t,e,n){return e===e?o(t,e,n):r(t,i,n)}t.exports=a},"./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"),o="[object Arguments]";function a(t){return i(t)&&r(t)==o}t.exports=a},"./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 o(t,e,n,a,s){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:r(t,e,n,a,o,s))}t.exports=o},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/_equalByTag.js"),a=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 m(t,e,n,g,m,y){var _=u(t),x=u(e),b=_?d:s(t),w=x?d:s(e);b=b==h?p:b,w=w==h?p:w;var j=b==p,S=w==p,M=b==w;if(M&&l(t)){if(!l(e))return!1;_=!0,j=!1}if(M&&!j)return y||(y=new r),_||c(t)?i(t,e,n,g,m,y):o(t,e,b,n,g,m,y);if(!(n&f)){var E=j&&v.call(t,"__wrapped__"),P=S&&v.call(e,"__wrapped__");if(E||P){var C=E?t.value():t,k=P?e.value():e;return y||(y=new r),m(C,k,n,g,y)}}return!!M&&(y||(y=new r),a(t,e,n,g,m,y))}t.exports=m},"./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"),o="[object Map]";function a(t){return i(t)&&r(t)==o}t.exports=a},"./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"),o=1,a=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){f=n[u];var h=f[0],d=t[h],p=f[1];if(c&&f[2]){if(void 0===d&&!(h in t))return!1}else{var g=new r;if(s)var v=s(d,p,h,t,e,g);if(!(void 0===v?i(p,d,o|a,s,g):v))return!1}}return!0}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_baseIsNaN.js":function(t,e){function n(t){return t!==t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseIsNative.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isFunction.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_isMasked.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_toSource.js"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,h=c.hasOwnProperty,d=RegExp("^"+f.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(t){if(!o(t)||i(t))return!1;var e=r(t)?d:u;return e.test(a(t))}t.exports=p},"./node_modules/_lodash@4.17.15@lodash/_baseIsSet.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"),o="[object Set]";function a(t){return i(t)&&r(t)==o}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseIsTypedArray.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/isLength.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",h="[object Map]",d="[object Number]",p="[object Object]",g="[object RegExp]",v="[object Set]",m="[object String]",y="[object WeakMap]",_="[object ArrayBuffer]",x="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",j="[object Int8Array]",S="[object Int16Array]",M="[object Int32Array]",E="[object Uint8Array]",P="[object Uint8ClampedArray]",C="[object Uint16Array]",k="[object Uint32Array]",A={};function T(t){return o(t)&&i(t.length)&&!!A[r(t)]}A[b]=A[w]=A[j]=A[S]=A[M]=A[E]=A[P]=A[C]=A[k]=!0,A[a]=A[s]=A[_]=A[u]=A[x]=A[l]=A[c]=A[f]=A[h]=A[d]=A[p]=A[g]=A[v]=A[m]=A[y]=!1,t.exports=T},"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseMatches.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseMatchesProperty.js"),o=n("./node_modules/_lodash@4.17.15@lodash/identity.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),s=n("./node_modules/_lodash@4.17.15@lodash/property.js");function u(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_baseKeys.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_isPrototype.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_nativeKeys.js"),o=Object.prototype,a=o.hasOwnProperty;function s(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_baseKeysIn.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/_isPrototype.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_nativeKeysIn.js"),a=Object.prototype,s=a.hasOwnProperty;function u(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_baseLt.js":function(t,e){function n(t,e){return t<e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseMap.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseEach.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function o(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseMatches.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsMatch.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_getMatchData.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_matchesStrictComparable.js");function a(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseMatchesProperty.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsEqual.js"),i=n("./node_modules/_lodash@4.17.15@lodash/get.js"),o=n("./node_modules/_lodash@4.17.15@lodash/hasIn.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_isKey.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_isStrictComparable.js"),u=n("./node_modules/_lodash@4.17.15@lodash/_matchesStrictComparable.js"),l=n("./node_modules/_lodash@4.17.15@lodash/_toKey.js"),c=1,f=2;function h(t,e){return a(t)&&s(e)?u(l(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,c|f)}}t.exports=h},"./node_modules/_lodash@4.17.15@lodash/_baseMerge.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/_assignMergeValue.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseFor.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseMergeDeep.js"),s=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),u=n("./node_modules/_lodash@4.17.15@lodash/keysIn.js"),l=n("./node_modules/_lodash@4.17.15@lodash/_safeGet.js");function c(t,e,n,f,h){t!==e&&o(e,(function(o,u){if(h||(h=new r),s(o))a(t,e,u,n,c,f,h);else{var d=f?f(l(t,u),o,u+"",t,e,h):void 0;void 0===d&&(d=o),i(t,u,d)}}),u)}t.exports=c},"./node_modules/_lodash@4.17.15@lodash/_baseMergeDeep.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_assignMergeValue.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_cloneBuffer.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_cloneTypedArray.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_copyArray.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_initCloneObject.js"),u=n("./node_modules/_lodash@4.17.15@lodash/isArguments.js"),l=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),c=n("./node_modules/_lodash@4.17.15@lodash/isArrayLikeObject.js"),f=n("./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),h=n("./node_modules/_lodash@4.17.15@lodash/isFunction.js"),d=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),p=n("./node_modules/_lodash@4.17.15@lodash/isPlainObject.js"),g=n("./node_modules/_lodash@4.17.15@lodash/isTypedArray.js"),v=n("./node_modules/_lodash@4.17.15@lodash/_safeGet.js"),m=n("./node_modules/_lodash@4.17.15@lodash/toPlainObject.js");function y(t,e,n,y,_,x,b){var w=v(t,n),j=v(e,n),S=b.get(j);if(S)r(t,n,S);else{var M=x?x(w,j,n+"",t,e,b):void 0,E=void 0===M;if(E){var P=l(j),C=!P&&f(j),k=!P&&!C&&g(j);M=j,P||C||k?l(w)?M=w:c(w)?M=a(w):C?(E=!1,M=i(j,!0)):k?(E=!1,M=o(j,!0)):M=[]:p(j)||u(j)?(M=w,u(w)?M=m(w):d(w)&&!h(w)||(M=s(j))):E=!1}E&&(b.set(j,M),_(M,j,y,x,b),b["delete"](j)),r(t,n,M)}}t.exports=y},"./node_modules/_lodash@4.17.15@lodash/_baseOrderBy.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"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseMap.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseSortBy.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),u=n("./node_modules/_lodash@4.17.15@lodash/_compareMultiple.js"),l=n("./node_modules/_lodash@4.17.15@lodash/identity.js");function c(t,e,n){var c=-1;e=r(e.length?e:[l],s(i));var f=o(t,(function(t,n,i){var o=r(e,(function(e){return e(t)}));return{criteria:o,index:++c,value:t}}));return a(f,(function(t,e){return u(t,e,n)}))}t.exports=c},"./node_modules/_lodash@4.17.15@lodash/_basePick.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_basePickBy.js"),i=n("./node_modules/_lodash@4.17.15@lodash/hasIn.js");function o(t,e){return r(t,e,(function(e,n){return i(t,n)}))}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_basePickBy.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGet.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseSet.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_castPath.js");function a(t,e,n){var a=-1,s=e.length,u={};while(++a<s){var l=e[a],c=r(t,l);n(c,l)&&i(u,o(l,t),c)}return u}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseProperty.js":function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_basePropertyDeep.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGet.js");function i(t){return function(e){return r(e,t)}}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_baseRange.js":function(t,e){var n=Math.ceil,r=Math.max;function i(t,e,i,o){var a=-1,s=r(n((e-t)/(i||1)),0),u=Array(s);while(s--)u[o?s:++a]=t,t+=i;return u}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_baseReduce.js":function(t,e){function n(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseRest.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/identity.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_overRest.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_setToString.js");function a(t,e){return o(i(t,e,r),t+"")}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseSet.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/_castPath.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_isIndex.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_toKey.js");function u(t,e,n,u){if(!a(t))return t;e=i(e,t);var l=-1,c=e.length,f=c-1,h=t;while(null!=h&&++l<c){var d=s(e[l]),p=n;if(l!=f){var g=h[d];p=u?u(g,d,h):void 0,void 0===p&&(p=a(g)?g:o(e[l+1])?[]:{})}r(h,d,p),h=h[d]}return t}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_baseSetToString.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/constant.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_defineProperty.js"),o=n("./node_modules/_lodash@4.17.15@lodash/identity.js"),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseSortBy.js":function(t,e){function n(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseTimes.js":function(t,e){function n(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseToString.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_arrayMap.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isSymbol.js"),s=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;function c(t){if("string"==typeof t)return t;if(o(t))return i(t,c)+"";if(a(t))return l?l.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}t.exports=c},"./node_modules/_lodash@4.17.15@lodash/_baseUnary.js":function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseUniq.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_SetCache.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_arrayIncludes.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_arrayIncludesWith.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_cacheHas.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_createSet.js"),u=n("./node_modules/_lodash@4.17.15@lodash/_setToArray.js"),l=200;function c(t,e,n){var c=-1,f=i,h=t.length,d=!0,p=[],g=p;if(n)d=!1,f=o;else if(h>=l){var v=e?null:s(t);if(v)return u(v);d=!1,f=a,g=new r}else g=e?[]:p;t:while(++c<h){var m=t[c],y=e?e(m):m;if(m=n||0!==m?m:0,d&&y===y){var _=g.length;while(_--)if(g[_]===y)continue t;e&&g.push(y),p.push(m)}else f(g,y,n)||(g!==p&&g.push(y),p.push(m))}return p}t.exports=c},"./node_modules/_lodash@4.17.15@lodash/_baseValues.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayMap.js");function i(t,e){return r(e,(function(e){return t[e]}))}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_baseZipObject.js":function(t,e){function n(t,e,n){var r=-1,i=t.length,o=e.length,a={};while(++r<i){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_cacheHas.js":function(t,e){function n(t,e){return t.has(e)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_castFunction.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/identity.js");function i(t){return"function"==typeof t?t:r}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_castPath.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_isKey.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_stringToPath.js"),a=n("./node_modules/_lodash@4.17.15@lodash/toString.js");function s(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_cloneArrayBuffer.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Uint8Array.js");function i(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_cloneBuffer.js":function(t,e,n){(function(t){var r=n("./node_modules/_lodash@4.17.15@lodash/_root.js"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function l(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}t.exports=l}).call(this,n("./node_modules/_webpack@4.42.1@webpack/buildin/module.js")(t))},"./node_modules/_lodash@4.17.15@lodash/_cloneDataView.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_cloneArrayBuffer.js");function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_cloneRegExp.js":function(t,e){var n=/\w*$/;function r(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_cloneSymbol.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;function a(t){return o?Object(o.call(t)):{}}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_cloneTypedArray.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_cloneArrayBuffer.js");function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_compareAscending.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isSymbol.js");function i(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t===t,a=r(t),s=void 0!==e,u=null===e,l=e===e,c=r(e);if(!u&&!c&&!a&&t>e||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&t<e||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_compareMultiple.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_compareAscending.js");function i(t,e,n){var i=-1,o=t.criteria,a=e.criteria,s=o.length,u=n.length;while(++i<s){var l=r(o[i],a[i]);if(l){if(i>=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(++n<r)e[n]=t[n];return e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_copyObject.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/_baseAssignValue.js");function o(t,e,n,o){var a=!n;n||(n={});var s=-1,u=e.length;while(++s<u){var l=e[s],c=o?o(n[l],t[l],l,n,t):void 0;void 0===c&&(c=t[l]),a?i(n,l,c):r(n,l,c)}return n}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_copySymbols.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/_getSymbols.js");function o(t,e){return r(t,i(t),e)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_copySymbolsIn.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/_getSymbolsIn.js");function o(t,e){return r(t,i(t),e)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_coreJsData.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_root.js"),i=r["__core-js_shared__"];t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_createAssigner.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js");function o(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);while(++r<o){var u=n[r];u&&t(e,u,r,a)}return e}))}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_createBaseEach.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function i(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);var o=n.length,a=e?o:-1,s=Object(n);while(e?a--:++a<o)if(!1===i(s[a],a,s))break;return n}}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_createBaseFor.js":function(t,e){function n(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_createFind.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),o=n("./node_modules/_lodash@4.17.15@lodash/keys.js");function a(t){return function(e,n,a){var s=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(s[t],t,s)}}var l=t(e,n,a);return l>-1?s[u?e[l]:l]:void 0}}t.exports=a},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/toFinite.js");function a(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_createSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Set.js"),i=n("./node_modules/_lodash@4.17.15@lodash/noop.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_setToArray.js"),a=1/0,s=r&&1/o(new r([,-0]))[1]==a?function(t){return new r(t)}:i;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_defineProperty.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getNative.js"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_equalArrays.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_SetCache.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_arraySome.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_cacheHas.js"),a=1,s=2;function u(t,e,n,u,l,c){var f=n&a,h=t.length,d=e.length;if(h!=d&&!(f&&d>h))return!1;var p=c.get(t);if(p&&c.get(e))return p==e;var g=-1,v=!0,m=n&s?new r:void 0;c.set(t,e),c.set(e,t);while(++g<h){var y=t[g],_=e[g];if(u)var x=f?u(_,y,g,e,t,c):u(y,_,g,t,e,c);if(void 0!==x){if(x)continue;v=!1;break}if(m){if(!i(e,(function(t,e){if(!o(m,e)&&(y===t||l(y,t,n,u,c)))return m.push(e)}))){v=!1;break}}else if(y!==_&&!l(y,_,n,u,c)){v=!1;break}}return c["delete"](t),c["delete"](e),v}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_equalByTag.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_Uint8Array.js"),o=n("./node_modules/_lodash@4.17.15@lodash/eq.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_equalArrays.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_mapToArray.js"),u=n("./node_modules/_lodash@4.17.15@lodash/_setToArray.js"),l=1,c=2,f="[object Boolean]",h="[object Date]",d="[object Error]",p="[object Map]",g="[object Number]",v="[object RegExp]",m="[object Set]",y="[object String]",_="[object Symbol]",x="[object ArrayBuffer]",b="[object DataView]",w=r?r.prototype:void 0,j=w?w.valueOf:void 0;function S(t,e,n,r,w,S,M){switch(n){case b:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!S(new i(t),new i(e)));case f:case h:case g:return o(+t,+e);case d:return t.name==e.name&&t.message==e.message;case v:case y:return t==e+"";case p:var E=s;case m:var P=r&l;if(E||(E=u),t.size!=e.size&&!P)return!1;var C=M.get(t);if(C)return C==e;r|=c,M.set(t,e);var k=a(E(t),E(e),r,w,S,M);return M["delete"](t),k;case _:if(j)return j.call(t)==j.call(e)}return!1}t.exports=S},"./node_modules/_lodash@4.17.15@lodash/_equalObjects.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getAllKeys.js"),i=1,o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n,o,s,u){var l=n&i,c=r(t),f=c.length,h=r(e),d=h.length;if(f!=d&&!l)return!1;var p=f;while(p--){var g=c[p];if(!(l?g in e:a.call(e,g)))return!1}var v=u.get(t);if(v&&u.get(e))return v==e;var m=!0;u.set(t,e),u.set(e,t);var y=l;while(++p<f){g=c[p];var _=t[g],x=e[g];if(o)var b=l?o(x,_,g,e,t,u):o(_,x,g,t,e,u);if(!(void 0===b?_===x||s(_,x,n,o,u):b)){m=!1;break}y||(y="constructor"==g)}if(m&&!y){var w=t.constructor,j=e.constructor;w==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof j&&j instanceof j||(m=!1)}return u["delete"](t),u["delete"](e),m}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_flatRest.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/flatten.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_overRest.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_setToString.js");function a(t){return o(i(t,void 0,r),t+"")}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_freeGlobal.js":function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("./node_modules/_webpack@4.42.1@webpack/buildin/global.js"))},"./node_modules/_lodash@4.17.15@lodash/_getAllKeys.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetAllKeys.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_getSymbols.js"),o=n("./node_modules/_lodash@4.17.15@lodash/keys.js");function a(t){return r(t,o,i)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_getAllKeysIn.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetAllKeys.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_getSymbolsIn.js"),o=n("./node_modules/_lodash@4.17.15@lodash/keysIn.js");function a(t){return r(t,o,i)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_getMapData.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_isKeyable.js");function i(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_getMatchData.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_isStrictComparable.js"),i=n("./node_modules/_lodash@4.17.15@lodash/keys.js");function o(t){var e=i(t),n=e.length;while(n--){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_getNative.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsNative.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_getValue.js");function o(t,e){var n=i(t,e);return r(n)?n:void 0}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_getPrototype.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_overArg.js"),i=r(Object.getPrototypeOf,Object);t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_getRawTag.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function u(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(u){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_getSymbols.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayFilter.js"),i=n("./node_modules/_lodash@4.17.15@lodash/stubArray.js"),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return a.call(t,e)})))}:i;t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_getSymbolsIn.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayPush.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_getSymbols.js"),a=n("./node_modules/_lodash@4.17.15@lodash/stubArray.js"),s=Object.getOwnPropertySymbols,u=s?function(t){var e=[];while(t)r(e,o(t)),t=i(t);return e}:a;t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_getTag.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_DataView.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_Map.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_Promise.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_Set.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_WeakMap.js"),u=n("./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),l=n("./node_modules/_lodash@4.17.15@lodash/_toSource.js"),c="[object Map]",f="[object Object]",h="[object Promise]",d="[object Set]",p="[object WeakMap]",g="[object DataView]",v=l(r),m=l(i),y=l(o),_=l(a),x=l(s),b=u;(r&&b(new r(new ArrayBuffer(1)))!=g||i&&b(new i)!=c||o&&b(o.resolve())!=h||a&&b(new a)!=d||s&&b(new s)!=p)&&(b=function(t){var e=u(t),n=e==f?t.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return g;case m:return c;case y:return h;case _:return d;case x:return p}return e}),t.exports=b},"./node_modules/_lodash@4.17.15@lodash/_getValue.js":function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_hasPath.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/isArguments.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_isIndex.js"),s=n("./node_modules/_lodash@4.17.15@lodash/isLength.js"),u=n("./node_modules/_lodash@4.17.15@lodash/_toKey.js");function l(t,e,n){e=r(e,t);var l=-1,c=e.length,f=!1;while(++l<c){var h=u(e[l]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++l!=c?f:(c=null==t?0:t.length,!!c&&s(c)&&a(h,c)&&(o(t)||i(t)))}t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_hasUnicode.js":function(t,e){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=r+i+o,s="\\ufe0e\\ufe0f",u="\\u200d",l=RegExp("["+u+n+a+s+"]");function c(t){return l.test(t)}t.exports=c},"./node_modules/_lodash@4.17.15@lodash/_hashClear.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js");function i(){this.__data__=r?r(null):{},this.size=0}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_hashDelete.js":function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_hashGet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js"),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return a.call(e,t)?e[t]:void 0}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_hashHas.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js"),i=Object.prototype,o=i.hasOwnProperty;function a(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_hashSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js"),i="__lodash_hash_undefined__";function o(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_initCloneArray.js":function(t,e){var n=Object.prototype,r=n.hasOwnProperty;function i(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_initCloneByTag.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_cloneArrayBuffer.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_cloneDataView.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_cloneRegExp.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_cloneSymbol.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_cloneTypedArray.js"),u="[object Boolean]",l="[object Date]",c="[object Map]",f="[object Number]",h="[object RegExp]",d="[object Set]",p="[object String]",g="[object Symbol]",v="[object ArrayBuffer]",m="[object DataView]",y="[object Float32Array]",_="[object Float64Array]",x="[object Int8Array]",b="[object Int16Array]",w="[object Int32Array]",j="[object Uint8Array]",S="[object Uint8ClampedArray]",M="[object Uint16Array]",E="[object Uint32Array]";function P(t,e,n){var P=t.constructor;switch(e){case v:return r(t);case u:case l:return new P(+t);case m:return i(t,n);case y:case _:case x:case b:case w:case j:case S:case M:case E:return s(t,n);case c:return new P;case f:case p:return new P(t);case h:return o(t);case d:return new P;case g:return a(t)}}t.exports=P},"./node_modules/_lodash@4.17.15@lodash/_initCloneObject.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseCreate.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_isPrototype.js");function a(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_isFlattenable.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArguments.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),a=r?r.isConcatSpreadable:void 0;function s(t){return o(t)||i(t)||!!(a&&t&&t[a])}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_isIndex.js":function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(t,e){var i=typeof t;return e=null==e?n:e,!!e&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/eq.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_isIndex.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isObject.js");function s(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_isKey.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isSymbol.js"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_isKeyable.js":function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_isMasked.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_coreJsData.js"),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function o(t){return!!i&&i in t}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_isPrototype.js":function(t,e){var n=Object.prototype;function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_isStrictComparable.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isObject.js");function i(t){return t===t&&!r(t)}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_listCacheClear.js":function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_listCacheDelete.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js"),i=Array.prototype,o=i.splice;function a(t){var e=this.__data__,n=r(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():o.call(e,n,1),--this.size,!0}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_listCacheGet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js");function i(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_listCacheHas.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js");function i(t){return r(this.__data__,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"),o=n("./node_modules/_lodash@4.17.15@lodash/_Map.js");function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}t.exports=a},"./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 o(t){var e=r(t,(function(t){return n.size===i&&n.clear(),t})),n=e.cache;return e}t.exports=o},"./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,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r.process,u=function(){try{var t=o&&o.require&&o.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 o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);while(++a<s)u[a]=o[e+a];a=-1;var l=Array(e+1);while(++a<e)l[a]=o[a];return l[e]=n(u),r(t,this,l)}}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_root.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_freeGlobal.js"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_safeGet.js":function(t,e){function n(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_setCacheAdd.js":function(t,e){var n="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,n),this}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_setCacheHas.js":function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_setToArray.js":function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_setToString.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseSetToString.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_shortOut.js"),o=i(r);t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_shortOut.js":function(t,e){var n=800,r=16,i=Date.now;function o(t){var e=0,o=0;return function(){var a=i(),s=r-(a-o);if(o=a,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}t.exports=o},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/_MapCache.js"),a=200;function s(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_strictIndexOf.js":function(t,e){function n(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_stringSize.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_asciiSize.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_hasUnicode.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_unicodeSize.js");function a(t){return i(t)?o(t):r(t)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_stringToPath.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_memoizeCapped.js"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_toKey.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isSymbol.js"),i=1/0;function o(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_toSource.js":function(t,e){var n=Function.prototype,r=n.toString;function i(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_unicodeSize.js":function(t,e){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=r+i+o,s="\\ufe0e\\ufe0f",u="["+n+"]",l="["+a+"]",c="\\ud83c[\\udffb-\\udfff]",f="(?:"+l+"|"+c+")",h="[^"+n+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",v=f+"?",m="["+s+"]?",y="(?:"+g+"(?:"+[h,d,p].join("|")+")"+m+v+")*",_=m+v+y,x="(?:"+[h+l+"?",l,d,p,u].join("|")+")",b=RegExp(c+"(?="+c+")|"+x+_,"g");function w(t){var e=b.lastIndex=0;while(b.test(t))++e;return e}t.exports=w},"./node_modules/_lodash@4.17.15@lodash/clone.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseClone.js"),i=4;function o(t){return r(t,i)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/cloneDeep.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseClone.js"),i=1,o=4;function a(t){return r(t,i|o)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/constant.js":function(t,e){function n(t){return function(){return t}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/defaults.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),i=n("./node_modules/_lodash@4.17.15@lodash/eq.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js"),a=n("./node_modules/_lodash@4.17.15@lodash/keysIn.js"),s=Object.prototype,u=s.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;l&&o(e[0],e[1],l)&&(r=1);while(++n<r){var c=e[n],f=a(c),h=-1,d=f.length;while(++h<d){var p=f[h],g=t[p];(void 0===g||i(g,s[p])&&!u.call(t,p))&&(t[p]=c[p])}}return t}));t.exports=l},"./node_modules/_lodash@4.17.15@lodash/each.js":function(t,e,n){t.exports=n("./node_modules/_lodash@4.17.15@lodash/forEach.js")},"./node_modules/_lodash@4.17.15@lodash/eq.js":function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/filter.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayFilter.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseFilter.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArray.js");function s(t,e){var n=a(t)?r:i;return n(t,o(e,3))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/find.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_createFind.js"),i=n("./node_modules/_lodash@4.17.15@lodash/findIndex.js"),o=r(i);t.exports=o},"./node_modules/_lodash@4.17.15@lodash/findIndex.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/_baseIteratee.js"),o=n("./node_modules/_lodash@4.17.15@lodash/toInteger.js"),a=Math.max;function s(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(t,i(e,3),u)}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/flatten.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js");function i(t){var e=null==t?0:t.length;return e?r(t,1):[]}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/forEach.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/_baseEach.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_castFunction.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArray.js");function s(t,e){var n=a(t)?r:i;return n(t,o(e))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/forIn.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/_castFunction.js"),o=n("./node_modules/_lodash@4.17.15@lodash/keysIn.js");function a(t,e){return null==t?t:r(t,i(e),o)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/get.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGet.js");function i(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/has.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseHas.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_hasPath.js");function o(t,e){return null!=t&&i(t,e,r)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/hasIn.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseHasIn.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_hasPath.js");function o(t,e){return null!=t&&i(t,e,r)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/identity.js":function(t,e){function n(t){return t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/isArguments.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsArguments.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},"./node_modules/_lodash@4.17.15@lodash/isArray.js":function(t,e){var n=Array.isArray;t.exports=n},"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isFunction.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isLength.js");function o(t){return null!=t&&i(t.length)&&!r(t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/isArrayLikeObject.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js");function o(t){return i(t)&&r(t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/isBuffer.js":function(t,e,n){(function(t){var r=n("./node_modules/_lodash@4.17.15@lodash/_root.js"),i=n("./node_modules/_lodash@4.17.15@lodash/stubFalse.js"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||i;t.exports=c}).call(this,n("./node_modules/_webpack@4.42.1@webpack/buildin/module.js")(t))},"./node_modules/_lodash@4.17.15@lodash/isEmpty.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"),o=n("./node_modules/_lodash@4.17.15@lodash/isArguments.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),s=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),u=n("./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),l=n("./node_modules/_lodash@4.17.15@lodash/_isPrototype.js"),c=n("./node_modules/_lodash@4.17.15@lodash/isTypedArray.js"),f="[object Map]",h="[object Set]",d=Object.prototype,p=d.hasOwnProperty;function g(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||c(t)||o(t)))return!t.length;var e=i(t);if(e==f||e==h)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}t.exports=g},"./node_modules/_lodash@4.17.15@lodash/isFunction.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/isObject.js"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function l(t){if(!i(t))return!1;var e=r(t);return e==a||e==s||e==o||e==u}t.exports=l},"./node_modules/_lodash@4.17.15@lodash/isLength.js":function(t,e){var n=9007199254740991;function r(t){return"number"==typeof t&&t>-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"),o=n("./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),a=o&&o.isMap,s=a?i(a):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"),o=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,f=l.call(Object);function h(t){if(!o(t)||r(t)!=a)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"),o=n("./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),a=o&&o.isSet,s=a?i(a):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"),o=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object String]";function s(t){return"string"==typeof t||!i(t)&&o(t)&&r(t)==a}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"),o="[object Symbol]";function a(t){return"symbol"==typeof t||i(t)&&r(t)==o}t.exports=a},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),a=o&&o.isTypedArray,s=a?i(a):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"),o=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function a(t){return o(t)?r(t):i(t)}t.exports=a},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function a(t){return o(t)?r(t,!0):i(t)}t.exports=a},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseMap.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArray.js");function s(t,e){var n=a(t)?r:o;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"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js");function a(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}t.exports=a},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/identity.js");function a(t){return t&&t.length?r(t,o,i):void 0}t.exports=a},"./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 o(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],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},"./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"),o=i((function(t,e,n){r(t,e,n)}));t.exports=o},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/identity.js");function a(t){return t&&t.length?r(t,o,i):void 0}t.exports=a},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseLt.js");function a(t,e){return t&&t.length?r(t,i(e,2),o):void 0}t.exports=a},"./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"),o=i((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/_isKey.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_toKey.js");function s(t){return o(t)?r(a(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"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),a=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:a,l=arguments.length<3;return u(t,o(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"),o=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),a=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(o(t))return a(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"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js"),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(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,o=17976931348623157e292;function a(t){if(!t)return 0===t?t:0;if(t=r(t),t===i||t===-i){var e=t<0?-1:1;return e*o}return t===t?t:0}t.exports=a},"./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"),o=NaN,a=/^\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 o;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(a,"");var n=u.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):s.test(t)?o:+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 o(t){return r(t,i(t))}t.exports=o},"./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"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js"),a=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=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:f(t)&&c(g)?i(s(t)):{}}return(p?r:o)(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"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseUniq.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArrayLikeObject.js"),s=i((function(t){return o(r(t,1,a,!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 o(t){var e=++i;return r(t)+e}t.exports=o},"./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 o(t){return null==t?[]:r(t,i(t))}t.exports=o},"./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 o(t,e){return i(t||[],e||[],r)}t.exports=o},"./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 o=r.toLowerCase();i=a(i),"m"==o&&i.length>2&&(e.push([r].concat(i.splice(0,2))),o="l",r="m"==r?"l":"L");while(1){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length<n[o])throw new Error("malformed path data");e.push([r].concat(i.splice(0,n[o])))}})),e}var o=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function a(t){var e=t.match(o);return e?e.map(Number):[]}},"./node_modules/_point-at-length@1.1.0@point-at-length/index.js":function(t,e,n){var r=n("./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js"),i=n("./node_modules/_isarray@0.0.1@isarray/index.js"),o=n("./node_modules/_abs-svg-path@0.1.1@abs-svg-path/index.js");function a(t){if(!(this instanceof a))return new a(t);this._path=i(t)?t:r(t),this._path=o(this._path),this._path=l(this._path),this._path=u(this._path)}function s(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function u(t){for(var e,n=0,r=0,i={S:{to:"C",x:3},T:{to:"Q",x:1}},o=0,a=t.length;o<a;o++){var s=t[o],u=i[s[0]];u&&(s[0]=u.to,e&&(e[0]===u.to?(n=2*e[u.x+2]-e[u.x],r=2*e[u.x+3]-e[u.x+1]):(n=e[e.length-2],r=e[e.length-1])),s.splice(1,0,n,r)),e=s}return t}function l(t){for(var e,n=[],r=["L",0,0],i=0,o=t.length;i<o;i++){var a=t[i];switch(a[0]){case"M":r=["L",a[1],a[2]],n.push(a);break;case"Z":n.push(r);break;case"H":e=n[n.length-1]||["L",0,0],n.push(["L",a[1],e[e.length-1]]);break;case"V":e=n[n.length-1]||["L",0,0],n.push(["L",e[e.length-2],a[1]]);break;default:n.push(a)}}return n}t.exports=a,a.prototype.at=function(t,e){return this._walk(t,e).pos},a.prototype.length=function(){return this._walk(null).length},a.prototype._walk=function(t,e){for(var n=[0,0],r=[0,0,0],i=[0,0],o=0,a=0;a<this._path.length;a++){var u=this._path[a];if("M"===u[0]){if(n[0]=u[1],n[1]=u[2],0===t)return{length:o,pos:n}}else if("C"===u[0]){r[0]=i[0]=n[0],r[1]=i[1]=n[1],r[2]=o;for(var l=100,c=0;c<=l;c++){var f=c/l,h=v(u,f),d=m(u,f);if(o+=s(n[0],n[1],h,d),n[0]=h,n[1]=d,"number"===typeof t&&o>=t){var p=(o-t)/(o-r[2]),g=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:o,pos:g}}r[0]=n[0],r[1]=n[1],r[2]=o}}else if("Q"===u[0]){r[0]=i[0]=n[0],r[1]=i[1]=n[1],r[2]=o;for(l=100,c=0;c<=l;c++){f=c/l,h=y(u,f),d=_(u,f);if(o+=s(n[0],n[1],h,d),n[0]=h,n[1]=d,"number"===typeof t&&o>=t){p=(o-t)/(o-r[2]),g=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:o,pos:g}}r[0]=n[0],r[1]=n[1],r[2]=o}}else if("L"===u[0]){if(r[0]=n[0],r[1]=n[1],r[2]=o,o+=s(n[0],n[1],u[1],u[2]),n[0]=u[1],n[1]=u[2],"number"===typeof t&&o>=t){p=(o-t)/(o-r[2]),g=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:o,pos:g}}r[0]=n[0],r[1]=n[1],r[2]=o}}return{length:o,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 m(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 y(t,e){return Math.pow(1-e,2)*i[0]+2*(1-e)*e*t[1]+Math.pow(e,2)*t[3]}function _(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,o;(function(n,a){i=[t],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(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;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var i={order:2,precision:2,period:null};function o(t,e){var n=[],r=[];t.forEach((function(t,i){null!==t[1]&&(r.push(t),n.push(e[i]))}));var i=r.reduce((function(t,e){return t+e[1]}),0),o=i/r.length,a=r.reduce((function(t,e){var n=e[1]-o;return t+n*n}),0),s=r.reduce((function(t,e,r){var i=n[r],o=e[1]-i[1];return t+o*o}),0);return 1-s/a}function a(t,e){for(var n=t,r=t.length-1,i=[e],o=0;o<r;o++){for(var a=o,s=o+1;s<r;s++)Math.abs(n[o][s])>Math.abs(n[o][a])&&(a=s);for(var u=o;u<r+1;u++){var l=n[u][o];n[u][o]=n[u][a],n[u][a]=l}for(var c=o+1;c<r;c++)for(var f=r;f>=o;f--)n[f][c]-=n[f][o]*n[o][c]/n[o][o]}for(var h=r-1;h>=0;h--){for(var d=0,p=h+1;p<r;p++)d+=n[p][h]*i[p];i[h]=(n[r][h]-d)/n[h][h]}return i}function s(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}var u={linear:function(t,e){for(var n=[0,0,0,0,0],r=0,i=0;i<t.length;i++)null!==t[i][1]&&(r++,n[0]+=t[i][0],n[1]+=t[i][1],n[2]+=t[i][0]*t[i][0],n[3]+=t[i][0]*t[i][1],n[4]+=t[i][1]*t[i][1]);var a=r*n[2]-n[0]*n[0],u=r*n[3]-n[0]*n[1],l=0===a?0:s(u/a,e.precision),c=s(n[1]/r-l*n[0]/r,e.precision),f=function(t){return[s(t,e.precision),s(l*t+c,e.precision)]},h=t.map((function(t){return f(t[0])}));return{points:h,predict:f,equation:[l,c],r2:s(o(t,h),e.precision),string:0===c?"y = "+l+"x":"y = "+l+"x + "+c}},exponential:function(t,e){for(var n=[0,0,0,0,0,0],r=0;r<t.length;r++)null!==t[r][1]&&(n[0]+=t[r][0],n[1]+=t[r][1],n[2]+=t[r][0]*t[r][0]*t[r][1],n[3]+=t[r][1]*Math.log(t[r][1]),n[4]+=t[r][0]*t[r][1]*Math.log(t[r][1]),n[5]+=t[r][0]*t[r][1]);var i=n[1]*n[2]-n[5]*n[5],a=Math.exp((n[2]*n[3]-n[5]*n[4])/i),u=(n[1]*n[4]-n[5]*n[3])/i,l=s(a,e.precision),c=s(u,e.precision),f=function(t){return[s(t,e.precision),s(l*Math.exp(c*t),e.precision)]},h=t.map((function(t){return f(t[0])}));return{points:h,predict:f,equation:[l,c],string:"y = "+l+"e^("+c+"x)",r2:s(o(t,h),e.precision)}},logarithmic:function(t,e){for(var n=[0,0,0,0],r=t.length,i=0;i<r;i++)null!==t[i][1]&&(n[0]+=Math.log(t[i][0]),n[1]+=t[i][1]*Math.log(t[i][0]),n[2]+=t[i][1],n[3]+=Math.pow(Math.log(t[i][0]),2));var a=(r*n[1]-n[2]*n[0])/(r*n[3]-n[0]*n[0]),u=s(a,e.precision),l=s((n[2]-u*n[0])/r,e.precision),c=function(t){return[s(t,e.precision),s(s(l+u*Math.log(t),e.precision),e.precision)]},f=t.map((function(t){return c(t[0])}));return{points:f,predict:c,equation:[l,u],string:"y = "+l+" + "+u+" ln(x)",r2:s(o(t,f),e.precision)}},power:function(t,e){for(var n=[0,0,0,0,0],r=t.length,i=0;i<r;i++)null!==t[i][1]&&(n[0]+=Math.log(t[i][0]),n[1]+=Math.log(t[i][1])*Math.log(t[i][0]),n[2]+=Math.log(t[i][1]),n[3]+=Math.pow(Math.log(t[i][0]),2));var a=(r*n[1]-n[0]*n[2])/(r*n[3]-Math.pow(n[0],2)),u=(n[2]-a*n[0])/r,l=s(Math.exp(u),e.precision),c=s(a,e.precision),f=function(t){return[s(t,e.precision),s(s(l*Math.pow(t,c),e.precision),e.precision)]},h=t.map((function(t){return f(t[0])}));return{points:h,predict:f,equation:[l,c],string:"y = "+l+"x^"+c,r2:s(o(t,h),e.precision)}},polynomial:function(t,e){for(var n=[],i=[],u=0,l=0,c=t.length,f=e.order+1,h=0;h<f;h++){for(var d=0;d<c;d++)null!==t[d][1]&&(u+=Math.pow(t[d][0],h)*t[d][1]);n.push(u),u=0;for(var p=[],g=0;g<f;g++){for(var v=0;v<c;v++)null!==t[v][1]&&(l+=Math.pow(t[v][0],h+g));p.push(l),l=0}i.push(p)}i.push(n);for(var m=a(i,f).map((function(t){return s(t,e.precision)})),y=function(t){return[s(t,e.precision),s(m.reduce((function(e,n,r){return e+n*Math.pow(t,r)}),0),e.precision)]},_=t.map((function(t){return y(t[0])})),x="y = ",b=m.length-1;b>=0;b--)x+=b>1?m[b]+"x^"+b+" + ":1===b?m[b]+"x + ":m[b];return{string:x,points:_,predict:y,equation:[].concat(r(m)).reverse(),r2:s(o(t,_),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<t.length;i++)e=n+t[i],Math.abs(n)>=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,o=n(t),a=0;if(2===e)for(i=0;i<t.length;i++)a+=(r=t[i]-o)*r;else for(i=0;i<t.length;i++)a+=Math.pow(t[i]-o,e);return a}function i(t){if(0===t.length)throw new Error("variance requires at least one data point");return r(t,2)/t.length}function o(t){if(1===t.length)return 0;var e=i(t);return Math.sqrt(e)}function a(t){if(0===t.length)throw new Error("mode requires at least one data point");if(1===t.length)return t[0];for(var e=t[0],n=NaN,r=0,i=1,o=1;o<t.length+1;o++)t[o]!==e?(r<i&&(r=i,n=e),i=1,e=t[o]):i++;return n}function s(t){return t.slice().sort((function(t,e){return t-e}))}function u(t){if(0===t.length)throw new Error("min requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]<e&&(e=t[n]);return e}function l(t){if(0===t.length)throw new Error("max requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]>e&&(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||1<e)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function f(t,e,n,r){for(n=n||0,r=r||t.length-1;n<r;){if(600<r-n){var i=r-n+1,o=e-n+1,a=Math.log(i),s=.5*Math.exp(2*a/3),u=.5*Math.sqrt(a*s*(i-s)/i);o-i/2<0&&(u*=-1),f(t,e,Math.max(n,Math.floor(e-o*s/i+u)),Math.min(r,Math.floor(e+(i-o)*s/i+u)))}var l=t[e],c=n,d=r;for(h(t,n,e),t[r]>l&&h(t,n,r);c<d;){for(h(t,c,d),c++,d--;t[c]<l;)c++;for(;t[d]>l;)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;r<e.length;r++)n.push(v(t.length,e[r]));n.push(t.length-1),n.sort(g);for(var i=[0,n.length-1];i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);p(t,n[s],n[a],n[o]),i.push(a,s,s,o)}}}(n,e);for(var r=[],i=0;i<e.length;i++)r[i]=c(n,e[i]);return r}return p(n,v(n.length,e),0,n.length-1),c(n,e)}function p(t,e,n,r){e%1==0?f(t,e,n,r):(f(t,e=Math.floor(e),n,r),f(t,e+1,e+1,r))}function g(t,e){return t-e}function v(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}function m(t,e){if(e<t[0])return 0;if(e>t[t.length-1])return 1;var n=function(t,e){for(var n=0,r=0,i=t.length;r<i;)e<=t[n=r+i>>>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<i;)e>=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 y(t){var e=d(t,.75),n=d(t,.25);if("number"==typeof e&&"number"==typeof n)return e-n}function _(t){return+d(t,.5)}function x(t){for(var e=_(t),n=[],r=0;r<t.length;r++)n.push(Math.abs(t[r]-e));return _(n)}function b(t,e){e=e||Math.random;for(var n,r,i=t.length;0<i;)r=Math.floor(e()*i--),n=t[i],t[i]=t[r],t[r]=n;return t}function w(t,e){return b(t.slice().slice(),e)}function j(t){for(var e,n=0,r=0;r<t.length;r++)0!==r&&t[r]===e||(e=t[r],n++);return n}function S(t,e){for(var n=[],r=0;r<t;r++){for(var i=[],o=0;o<e;o++)i.push(0);n.push(i)}return n}function M(t,e,n,r){var i;if(0<t){var o=(n[e]-n[t-1])/(e-t+1);i=r[e]-r[t-1]-(e-t+1)*o*o}else i=r[e]-n[e]*n[e]/(e+1);return i<0?0:i}function E(t,e,n,r,i,o,a){if(!(e<t)){var s=Math.floor((t+e)/2);r[n][s]=r[n-1][s-1],i[n][s]=s;var u=n;n<t&&(u=Math.max(u,i[n][t-1]||0)),u=Math.max(u,i[n-1][s]||0);var l,c,f,h=s-1;e<r.length-1&&(h=Math.min(h,i[n][e+1]||0));for(var d=h;u<=d&&!((l=M(d,s,o,a))+r[n-1][u-1]>=r[n][s]);--d)(c=M(u,s,o,a)+r[n-1][u-1])<r[n][s]&&(r[n][s]=c,i[n][s]=u),u++,(f=l+r[n-1][d-1])<r[n][s]&&(r[n][s]=f,i[n][s]=d);E(t,s-1,n,r,i,o,a),E(s+1,e,n,r,i,o,a)}}function P(t,e){if(t.length!==e.length)throw new Error("sampleCovariance requires samples with equal lengths");if(t.length<2)throw new Error("sampleCovariance requires at least two data points in each sample");for(var r=n(t),i=n(e),o=0,a=0;a<t.length;a++)o+=(t[a]-r)*(e[a]-i);return o/(t.length-1)}function C(t){if(t.length<2)throw new Error("sampleVariance requires at least two data points");return r(t,2)/(t.length-1)}function k(t){var e=C(t);return Math.sqrt(e)}function A(t,e,n,r){return(t*e+n*r)/(e+r)}function T(t){if(0===t.length)throw new Error("rootMeanSquare requires at least one data point");for(var e=0,n=0;n<t.length;n++)e+=Math.pow(t[n],2);return Math.sqrt(e/t.length)}function O(){this.totalCount=0,this.data={}}function I(){this.weights=[],this.bias=0}O.prototype.train=function(t,e){for(var n in this.data[e]||(this.data[e]={}),t){var r=t[n];void 0===this.data[e][n]&&(this.data[e][n]={}),void 0===this.data[e][n][r]&&(this.data[e][n][r]=0),this.data[e][n][r]++}this.totalCount++},O.prototype.score=function(t){var e,n={};for(var r in t){var i=t[r];for(e in this.data)n[e]={},this.data[e][r]?n[e][r+"_"+i]=(this.data[e][r][i]||0)/this.totalCount:n[e][r+"_"+i]=0}var o={};for(e in n)for(var a in o[e]=0,n[e])o[e]+=n[e][a];return o},I.prototype.predict=function(t){if(t.length!==this.weights.length)return null;for(var e=0,n=0;n<this.weights.length;n++)e+=this.weights[n]*t[n];return 0<(e+=this.bias)?1:0},I.prototype.train=function(t,e){if(0!==e&&1!==e)return null;t.length!==this.weights.length&&(this.weights=t,this.bias=1);var n=this.predict(t);if(n!==e){for(var r=e-n,i=0;i<this.weights.length;i++)this.weights[i]+=r*t[i];this.bias+=r}return this};var R=1e-4;function D(t){if(t<0)throw new Error("factorial requires a non-negative value");if(Math.floor(t)!==t)throw new Error("factorial requires an integer input");for(var e=1,n=2;n<=t;n++)e*=n;return e}var L=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],N=Math.log(Math.sqrt(2*Math.PI)),F={1:{.995:0,.99:0,.975:0,.95:0,.9:.02,.5:.45,.1:2.71,.05:3.84,.025:5.02,.01:6.63,.005:7.88},2:{.995:.01,.99:.02,.975:.05,.95:.1,.9:.21,.5:1.39,.1:4.61,.05:5.99,.025:7.38,.01:9.21,.005:10.6},3:{.995:.07,.99:.11,.975:.22,.95:.35,.9:.58,.5:2.37,.1:6.25,.05:7.81,.025:9.35,.01:11.34,.005:12.84},4:{.995:.21,.99:.3,.975:.48,.95:.71,.9:1.06,.5:3.36,.1:7.78,.05:9.49,.025:11.14,.01:13.28,.005:14.86},5:{.995:.41,.99:.55,.975:.83,.95:1.15,.9:1.61,.5:4.35,.1:9.24,.05:11.07,.025:12.83,.01:15.09,.005:16.75},6:{.995:.68,.99:.87,.975:1.24,.95:1.64,.9:2.2,.5:5.35,.1:10.65,.05:12.59,.025:14.45,.01:16.81,.005:18.55},7:{.995:.99,.99:1.25,.975:1.69,.95:2.17,.9:2.83,.5:6.35,.1:12.02,.05:14.07,.025:16.01,.01:18.48,.005:20.28},8:{.995:1.34,.99:1.65,.975:2.18,.95:2.73,.9:3.49,.5:7.34,.1:13.36,.05:15.51,.025:17.53,.01:20.09,.005:21.96},9:{.995:1.73,.99:2.09,.975:2.7,.95:3.33,.9:4.17,.5:8.34,.1:14.68,.05:16.92,.025:19.02,.01:21.67,.005:23.59},10:{.995:2.16,.99:2.56,.975:3.25,.95:3.94,.9:4.87,.5:9.34,.1:15.99,.05:18.31,.025:20.48,.01:23.21,.005:25.19},11:{.995:2.6,.99:3.05,.975:3.82,.95:4.57,.9:5.58,.5:10.34,.1:17.28,.05:19.68,.025:21.92,.01:24.72,.005:26.76},12:{.995:3.07,.99:3.57,.975:4.4,.95:5.23,.9:6.3,.5:11.34,.1:18.55,.05:21.03,.025:23.34,.01:26.22,.005:28.3},13:{.995:3.57,.99:4.11,.975:5.01,.95:5.89,.9:7.04,.5:12.34,.1:19.81,.05:22.36,.025:24.74,.01:27.69,.005:29.82},14:{.995:4.07,.99:4.66,.975:5.63,.95:6.57,.9:7.79,.5:13.34,.1:21.06,.05:23.68,.025:26.12,.01:29.14,.005:31.32},15:{.995:4.6,.99:5.23,.975:6.27,.95:7.26,.9:8.55,.5:14.34,.1:22.31,.05:25,.025:27.49,.01:30.58,.005:32.8},16:{.995:5.14,.99:5.81,.975:6.91,.95:7.96,.9:9.31,.5:15.34,.1:23.54,.05:26.3,.025:28.85,.01:32,.005:34.27},17:{.995:5.7,.99:6.41,.975:7.56,.95:8.67,.9:10.09,.5:16.34,.1:24.77,.05:27.59,.025:30.19,.01:33.41,.005:35.72},18:{.995:6.26,.99:7.01,.975:8.23,.95:9.39,.9:10.87,.5:17.34,.1:25.99,.05:28.87,.025:31.53,.01:34.81,.005:37.16},19:{.995:6.84,.99:7.63,.975:8.91,.95:10.12,.9:11.65,.5:18.34,.1:27.2,.05:30.14,.025:32.85,.01:36.19,.005:38.58},20:{.995:7.43,.99:8.26,.975:9.59,.95:10.85,.9:12.44,.5:19.34,.1:28.41,.05:31.41,.025:34.17,.01:37.57,.005:40},21:{.995:8.03,.99:8.9,.975:10.28,.95:11.59,.9:13.24,.5:20.34,.1:29.62,.05:32.67,.025:35.48,.01:38.93,.005:41.4},22:{.995:8.64,.99:9.54,.975:10.98,.95:12.34,.9:14.04,.5:21.34,.1:30.81,.05:33.92,.025:36.78,.01:40.29,.005:42.8},23:{.995:9.26,.99:10.2,.975:11.69,.95:13.09,.9:14.85,.5:22.34,.1:32.01,.05:35.17,.025:38.08,.01:41.64,.005:44.18},24:{.995:9.89,.99:10.86,.975:12.4,.95:13.85,.9:15.66,.5:23.34,.1:33.2,.05:36.42,.025:39.36,.01:42.98,.005:45.56},25:{.995:10.52,.99:11.52,.975:13.12,.95:14.61,.9:16.47,.5:24.34,.1:34.28,.05:37.65,.025:40.65,.01:44.31,.005:46.93},26:{.995:11.16,.99:12.2,.975:13.84,.95:15.38,.9:17.29,.5:25.34,.1:35.56,.05:38.89,.025:41.92,.01:45.64,.005:48.29},27:{.995:11.81,.99:12.88,.975:14.57,.95:16.15,.9:18.11,.5:26.34,.1:36.74,.05:40.11,.025:43.19,.01:46.96,.005:49.65},28:{.995:12.46,.99:13.57,.975:15.31,.95:16.93,.9:18.94,.5:27.34,.1:37.92,.05:41.34,.025:44.46,.01:48.28,.005:50.99},29:{.995:13.12,.99:14.26,.975:16.05,.95:17.71,.9:19.77,.5:28.34,.1:39.09,.05:42.56,.025:45.72,.01:49.59,.005:52.34},30:{.995:13.79,.99:14.95,.975:16.79,.95:18.49,.9:20.6,.5:29.34,.1:40.26,.05:43.77,.025:46.98,.01:50.89,.005:53.67},40:{.995:20.71,.99:22.16,.975:24.43,.95:26.51,.9:29.05,.5:39.34,.1:51.81,.05:55.76,.025:59.34,.01:63.69,.005:66.77},50:{.995:27.99,.99:29.71,.975:32.36,.95:34.76,.9:37.69,.5:49.33,.1:63.17,.05:67.5,.025:71.42,.01:76.15,.005:79.49},60:{.995:35.53,.99:37.48,.975:40.48,.95:43.19,.9:46.46,.5:59.33,.1:74.4,.05:79.08,.025:83.3,.01:88.38,.005:91.95},70:{.995:43.28,.99:45.44,.975:48.76,.95:51.74,.9:55.33,.5:69.33,.1:85.53,.05:90.53,.025:95.02,.01:100.42,.005:104.22},80:{.995:51.17,.99:53.54,.975:57.15,.95:60.39,.9:64.28,.5:79.33,.1:96.58,.05:101.88,.025:106.63,.01:112.33,.005:116.32},90:{.995:59.2,.99:61.75,.975:65.65,.95:69.13,.9:73.29,.5:89.33,.1:107.57,.05:113.14,.025:118.14,.01:124.12,.005:128.3},100:{.995:67.33,.99:70.06,.975:74.22,.95:77.93,.9:82.36,.5:99.33,.1:118.5,.05:124.34,.025:129.56,.01:135.81,.005:140.17}},B=Math.sqrt(2*Math.PI),z={gaussian:function(t){return Math.exp(-.5*t*t)/B}},G={nrd:function(t){var e=k(t),n=y(t);return"number"==typeof n&&(e=Math.min(e,n/1.34)),1.06*e*Math.pow(t.length,-.2)}};function q(t,e,n){var r,i;if(void 0===e)r=z.gaussian;else if("string"==typeof e){if(!z[e])throw new Error('Unknown kernel "'+e+'"');r=z[e]}else r=e;if(void 0===n)i=G.nrd(t);else if("string"==typeof n){if(!G[n])throw new Error('Unknown bandwidth method "'+n+'"');i=G[n](t)}else i=n;return function(e){var n=0,o=0;for(n=0;n<t.length;n++)o+=r((e-t[n])/i);return o/i/t.length}}var V=Math.sqrt(2*Math.PI);function Y(t){for(var e=t,n=t,r=1;r<15;r++)e+=n*=t*t/(2*r+1);return Math.round(1e4*(.5+e/V*Math.exp(-t*t/2)))/1e4}for(var H=[],W=0;W<=3.09;W+=.01)H.push(Y(W));function U(t){var e=1/(1+.5*Math.abs(t)),n=e*Math.exp(-Math.pow(t,2)-1.26551223+1.00002368*e+.37409196*Math.pow(e,2)+.09678418*Math.pow(e,3)-.18628806*Math.pow(e,4)+.27886807*Math.pow(e,5)-1.13520398*Math.pow(e,6)+1.48851587*Math.pow(e,7)-.82215223*Math.pow(e,8)+.17087277*Math.pow(e,9));return 0<=t?1-n:n-1}function X(t){var e=8*(Math.PI-3)/(3*Math.PI*(4-Math.PI)),n=Math.sqrt(Math.sqrt(Math.pow(2/(Math.PI*e)+Math.log(1-t*t)/2,2)-Math.log(1-t*t)/e)-(2/(Math.PI*e)+Math.log(1-t*t)/2));return 0<=t?n:-n}function Z(t){if("number"==typeof t)return t<0?-1:0===t?0:1;throw new TypeError("not a number")}t.linearRegression=function(t){var e,n,r=t.length;if(1===r)n=t[e=0][1];else{for(var i,o,a,s=0,u=0,l=0,c=0,f=0;f<r;f++)s+=o=(i=t[f])[0],u+=a=i[1],l+=o*o,c+=o*a;n=u/r-(e=(r*c-s*u)/(r*l-s*s))*s/r}return{m:e,b:n}},t.linearRegressionLine=function(t){return function(e){return t.b+t.m*e}},t.standardDeviation=o,t.rSquared=function(t,e){if(t.length<2)return 1;for(var n,r=0,i=0;i<t.length;i++)r+=t[i][1];n=r/t.length;for(var o=0,a=0;a<t.length;a++)o+=Math.pow(n-t[a][1],2);for(var s=0,u=0;u<t.length;u++)s+=Math.pow(t[u][1]-e(t[u][0]),2);return 1-s/o},t.mode=function(t){return a(s(t))},t.modeFast=function(t){for(var e,n=new Map,r=0,i=0;i<t.length;i++){var o=n.get(t[i]);void 0===o?o=1:o++,r<o&&(e=t[i],r=o),n.set(t[i],o)}if(0===r)throw new Error("mode requires at last one data point");return e},t.modeSorted=a,t.min=u,t.max=l,t.extent=function(t){if(0===t.length)throw new Error("extent requires at least one data point");for(var e=t[0],n=t[0],r=1;r<t.length;r++)t[r]>n&&(n=t[r]),t[r]<e&&(e=t[r]);return[e,n]},t.minSorted=function(t){return t[0]},t.maxSorted=function(t){return t[t.length-1]},t.extentSorted=function(t){return[t[0],t[t.length-1]]},t.sum=e,t.sumSimple=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n];return e},t.product=function(t){for(var e=1,n=0;n<t.length;n++)e*=t[n];return e},t.quantile=d,t.quantileSorted=c,t.quantileRank=function(t,e){return m(s(t),e)},t.quantileRankSorted=m,t.interquartileRange=y,t.iqr=y,t.medianAbsoluteDeviation=x,t.mad=x,t.chunk=function(t,e){var n=[];if(e<1)throw new Error("chunk size must be a positive number");if(Math.floor(e)!==e)throw new Error("chunk size must be an integer");for(var r=0;r<t.length;r+=e)n.push(t.slice(r,r+e));return n},t.sampleWithReplacement=function(t,e,n){if(0===t.length)return[];n=n||Math.random;for(var r=t.length,i=[],o=0;o<e;o++){var a=Math.floor(n()*r);i.push(t[a])}return i},t.shuffle=w,t.shuffleInPlace=b,t.sample=function(t,e,n){return w(t,n).slice(0,e)},t.ckmeans=function(t,e){if(e>t.length)throw new Error("cannot generate more classes than there are data values");var n=s(t);if(1===j(n))return[n];var r=S(e,n.length),i=S(e,n.length);!function(t,e,n){for(var r,i=e[0].length,o=t[Math.floor(i/2)],a=[],s=[],u=0;u<i;++u)r=t[u]-o,0===u?(a.push(r),s.push(r*r)):(a.push(a[u-1]+r),s.push(s[u-1]+r*r)),e[0][u]=M(0,u,a,s),n[0][u]=0;for(var l=1;l<e.length;++l)E(l<e.length-1?l:i-1,i-1,l,e,n,a,s)}(n,r,i);for(var o=[],a=i[0].length-1,u=i.length-1;0<=u;u--){var l=i[u][a];o[u]=n.slice(l,a+1),0<u&&(a=l-1)}return o},t.uniqueCountSorted=j,t.sumNthPowerDeviations=r,t.equalIntervalBreaks=function(t,e){if(t.length<2)return t;for(var n=u(t),r=l(t),i=[n],o=(r-n)/e,a=1;a<e;a++)i.push(i[0]+o*a);return i.push(r),i},t.sampleCovariance=P,t.sampleCorrelation=function(t,e){return P(t,e)/k(t)/k(e)},t.sampleVariance=C,t.sampleStandardDeviation=k,t.sampleSkewness=function(t){if(t.length<3)throw new Error("sampleSkewness requires at least three data points");for(var e,r=n(t),i=0,o=0,a=0;a<t.length;a++)i+=(e=t[a]-r)*e,o+=e*e*e;var s=t.length-1,u=Math.sqrt(i/s),l=t.length;return l*o/((l-1)*(l-2)*Math.pow(u,3))},t.sampleKurtosis=function(t){var e=t.length;if(e<4)throw new Error("sampleKurtosis requires at least four data points");for(var r,i=n(t),o=0,a=0,s=0;s<e;s++)o+=(r=t[s]-i)*r,a+=r*r*r*r;return(e-1)/((e-2)*(e-3))*(e*(e+1)*a/(o*o)-3*(e-1))},t.permutationsHeap=function(t){for(var e=new Array(t.length),n=[t.slice()],r=0;r<t.length;r++)e[r]=0;for(r=0;r<t.length;)if(e[r]<r){var i=0;r%2!=0&&(i=e[r]);var o=t[i];t[i]=t[r],t[r]=o,n.push(t.slice()),e[r]++,r=0}else e[r]=0,r++;return n},t.combinations=function t(e,n){var r,i,o,a,s=[];for(r=0;r<e.length;r++)if(1===n)s.push([e[r]]);else for(o=t(e.slice(r+1,e.length),n-1),i=0;i<o.length;i++)(a=o[i]).unshift(e[r]),s.push(a);return s},t.combinationsReplacement=function t(e,n){for(var r=[],i=0;i<e.length;i++)if(1===n)r.push([e[i]]);else for(var o=t(e.slice(i,e.length),n-1),a=0;a<o.length;a++)r.push([e[i]].concat(o[a]));return r},t.addToMean=function(t,e,n){return t+(n-t)/(e+1)},t.combineMeans=A,t.combineVariances=function(t,e,n,r,i,o){var a=A(e,n,i,o);return(n*(t+Math.pow(e-a,2))+o*(r+Math.pow(i-a,2)))/(n+o)},t.geometricMean=function(t){if(0===t.length)throw new Error("geometricMean requires at least one data point");for(var e=1,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("geometricMean requires only positive numbers as input");e*=t[n]}return Math.pow(e,1/t.length)},t.harmonicMean=function(t){if(0===t.length)throw new Error("harmonicMean requires at least one data point");for(var e=0,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("harmonicMean requires only positive numbers as input");e+=1/t[n]}return t.length/e},t.average=n,t.mean=n,t.median=_,t.medianSorted=function(t){return c(t,.5)},t.subtractFromMean=function(t,e,n){return(t*e-n)/(e-1)},t.rootMeanSquare=T,t.rms=T,t.variance=i,t.tTest=function(t,e){return(n(t)-e)/(o(t)/Math.sqrt(t.length))},t.tTestTwoSample=function(t,e,r){var i=t.length,o=e.length;if(!i||!o)return null;r||(r=0);var a=n(t),s=n(e),u=C(t),l=C(e);if("number"==typeof a&&"number"==typeof s&&"number"==typeof u&&"number"==typeof l){var c=((i-1)*u+(o-1)*l)/(i+o-2);return(a-s-r)/Math.sqrt(c*(1/i+1/o))}},t.BayesianClassifier=O,t.bayesian=O,t.PerceptronModel=I,t.perceptron=I,t.epsilon=R,t.factorial=D,t.gamma=function t(e){if("number"==typeof(n=e)&&isFinite(n)&&Math.floor(n)===n)return e<=0?NaN:D(e-1);var n;if(--e<0)return Math.PI/(Math.sin(Math.PI*-e)*t(-e));var r=e+.25;return Math.pow(e/Math.E,e)*Math.sqrt(2*Math.PI*(e+1/6))*(1+1/144/Math.pow(r,2)-1/12960/Math.pow(r,3)-257/207360/Math.pow(r,4)-52/2612736/Math.pow(r,5)+5741173/9405849600/Math.pow(r,6)+37529/18811699200/Math.pow(r,7))},t.gammaln=function(t){if(t<=0)return 1/0;t--;for(var e=L[0],n=1;n<15;n++)e+=L[n]/(t+n);var r=5.2421875+t;return N+Math.log(e)-r+(t+.5)*Math.log(r)},t.bernoulliDistribution=function(t){if(t<0||1<t)throw new Error("bernoulliDistribution requires probability to be between 0 and 1 inclusive");return[1-t,t]},t.binomialDistribution=function(t,e){if(!(e<0||1<e||t<=0||t%1!=0)){for(var n=0,r=0,i=[],o=1;i[n]=o*Math.pow(e,n)*Math.pow(1-e,t-n),r+=i[n],o=o*(t-++n+1)/n,r<1-R;);return i}},t.poissonDistribution=function(t){if(!(t<=0)){for(var e=0,n=0,r=[],i=1;r[e]=Math.exp(-t)*Math.pow(t,e)/i,n+=r[e],i*=++e,n<1-R;);return r}},t.chiSquaredDistributionTable=F,t.chiSquaredGoodnessOfFit=function(t,e,r){for(var i,o,a=0,s=e(n(t)),u=[],l=[],c=0;c<t.length;c++)void 0===u[t[c]]&&(u[t[c]]=0),u[t[c]]++;for(c=0;c<u.length;c++)void 0===u[c]&&(u[c]=0);for(o in s)o in u&&(l[+o]=s[o]*t.length);for(o=l.length-1;0<=o;o--)l[o]<3&&(l[o-1]+=l[o],l.pop(),u[o-1]+=u[o],u.pop());for(o=0;o<u.length;o++)a+=Math.pow(u[o]-l[o],2)/l[o];return i=u.length-1-1,F[i][r]<a},t.kernelDensityEstimation=q,t.kde=q,t.zScore=function(t,e,n){return(t-e)/n},t.cumulativeStdNormalProbability=function(t){var e=Math.abs(t),n=Math.min(Math.round(100*e),H.length-1);return 0<=t?H[n]:+(1-H[n]).toFixed(4)},t.standardNormalTable=H,t.errorFunction=U,t.erf=U,t.inverseErrorFunction=X,t.probit=function(t){return 0===t?t=R:1<=t&&(t=1-R),Math.sqrt(2)*X(2*t-1)},t.permutationTest=function(t,e,r,i){if(void 0===i&&(i=1e4),void 0===r&&(r="two_side"),"two_side"!==r&&"greater"!==r&&"less"!==r)throw new Error("`alternative` must be either 'two_side', 'greater', or 'less'");for(var o=n(t)-n(e),a=new Array(i),s=t.concat(e),u=Math.floor(s.length/2),l=0;l<i;l++){b(s);var c=s.slice(0,u),f=s.slice(u,s.length),h=n(c)-n(f);a[l]=h}var d=0;if("two_side"===r)for(l=0;l<=i;l++)Math.abs(a[l])>=Math.abs(o)&&(d+=1);else if("greater"===r)for(l=0;l<=i;l++)a[l]>=o&&(d+=1);else for(l=0;l<=i;l++)a[l]<=o&&(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 o=0;o<r;o++){var a=(e+n)/2;if(0===t(a)||Math.abs((n-e)/2)<i)return a;Z(t(a))===Z(t(e))?e=a:n=a}throw new Error("maximum number of iterations exceeded")},t.quickselect=f,t.sign=Z,t.numericSort=s,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_topojson-client@3.1.0@topojson-client/dist/topojson-client.js":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t){return t}function n(t){if(null==t)return e;var n,r,i=t.scale[0],o=t.scale[1],a=t.translate[0],s=t.translate[1];return function(t,e){e||(n=r=0);var u=2,l=t.length,c=new Array(l);c[0]=(n+=t[0])*i+a,c[1]=(r+=t[1])*o+s;while(u<l)c[u]=t[u],++u;return c}}function r(t){var e,r=n(t.transform),i=1/0,o=i,a=-i,s=-i;function u(t){t=r(t),t[0]<i&&(i=t[0]),t[0]>a&&(a=t[0]),t[1]<o&&(o=t[1]),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(++n<u)e=r(t[n],n),e[0]<i&&(i=e[0]),e[0]>a&&(a=e[0]),e[1]<o&&(o=e[1]),e[1]>s&&(s=e[1])})),t.objects)l(t.objects[e]);return[i,o,a,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 o(t,e){return"string"===typeof e&&(e=t.objects[e]),"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map((function(e){return a(t,e)}))}:a(t,e)}function a(t,e){var n=e.id,r=e.bbox,i=null==e.properties?{}:e.properties,o=s(t,e);return null==n&&null==r?{type:"Feature",properties:i,geometry:o}:null==r?{type:"Feature",id:n,properties:i,geometry:o}:{type:"Feature",id:n,bbox:r,properties:i,geometry:o}}function s(t,e){var r=n(t.transform),o=t.arcs;function a(t,e){e.length&&e.pop();for(var n=o[t<0?~t:t],a=0,s=n.length;a<s;++a)e.push(r(n[a],a));t<0&&i(e,s)}function s(t){return r(t)}function u(t){for(var e=[],n=0,r=t.length;n<r;++n)a(t[n],e);return e.length<2&&e.push(e[0]),e}function l(t){var e=u(t);while(e.length<4)e.push(e[0]);return e}function c(t){return t.map(l)}function f(t){var e,n=t.type;switch(n){case"GeometryCollection":return{type:n,geometries:t.geometries.map(f)};case"Point":e=s(t.coordinates);break;case"MultiPoint":e=t.coordinates.map(s);break;case"LineString":e=u(t.arcs);break;case"MultiLineString":e=t.arcs.map(u);break;case"Polygon":e=c(t.arcs);break;case"MultiPolygon":e=t.arcs.map(c);break;default:return null}return{type:n,coordinates:e}}return f(e)}function u(t,e){var n={},r={},i={},o=[],a=-1;function s(e){var n,r=t.arcs[e<0?~e:e],i=r[0];return t.transform?(n=[0,0],r.forEach((function(t){n[0]+=t[0],n[1]+=t[1]}))):n=r[r.length-1],e<0?[n,i]:[i,n]}function u(t,e){for(var r in t){var i=t[r];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){n[t<0?~t:t]=1})),o.push(i)}}return e.forEach((function(n,r){var i,o=t.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(i=e[++a],e[a]=n,e[r]=i)})),e.forEach((function(t){var e,n,o=s(t),a=o[0],u=o[1];if(e=i[a])if(delete i[e.end],e.push(t),e.end=u,n=r[u]){delete r[n.start];var l=n===e?e:e.concat(n);r[l.start=e.start]=i[l.end=n.end]=l}else r[e.start]=i[e.end]=e;else if(e=r[u])if(delete r[e.start],e.unshift(t),e.start=a,n=i[a]){delete i[n.end];var c=n===e?e:n.concat(e);r[c.start=n.start]=i[c.end=e.end]=c}else r[e.start]=i[e.end]=e;else e=[t],r[e.start=a]=i[e.end=u]=e})),u(i,r),u(r,i),e.forEach((function(t){n[t<0?~t:t]||o.push([t])})),o}function l(t){return s(t,c.apply(this,arguments))}function c(t,e,n){var r,i,o;if(arguments.length>1)r=f(t,e,n);else for(i=0,r=new Array(o=t.arcs.length);i<o;++i)r[i]=i;return{type:"MultiLineString",arcs:u(t,r)}}function f(t,e,n){var r,i=[],o=[];function a(t){var e=t<0?~t:t;(o[e]||(o[e]=[])).push({i:t,g:r})}function s(t){t.forEach(a)}function u(t){t.forEach(s)}function l(t){t.forEach(u)}function c(t){switch(r=t,t.type){case"GeometryCollection":t.geometries.forEach(c);break;case"LineString":s(t.arcs);break;case"MultiLineString":case"Polygon":u(t.arcs);break;case"MultiPolygon":l(t.arcs);break}}return c(e),o.forEach(null==n?function(t){i.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&i.push(t[0].i)}),i}function h(t){var e,n=-1,r=t.length,i=t[r-1],o=0;while(++n<r)e=i,i=t[n],o+=e[0]*i[1]-e[1]*i[0];return Math.abs(o)}function d(t){return s(t,p.apply(this,arguments))}function p(t,e){var n={},r=[],i=[];function o(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(o);break;case"Polygon":a(t.arcs);break;case"MultiPolygon":t.arcs.forEach(a);break}}function a(t){t.forEach((function(e){e.forEach((function(e){(n[e=e<0?~e:e]||(n[e]=[])).push(t)}))})),r.push(t)}function l(e){return h(s(t,{type:"Polygon",arcs:[e]}).coordinates[0])}return e.forEach(o),r.forEach((function(t){if(!t._){var e=[],r=[t];t._=1,i.push(e);while(t=r.pop())e.push(t),t.forEach((function(t){t.forEach((function(t){n[t<0?~t:t].forEach((function(t){t._||(t._=1,r.push(t))}))}))}))}})),r.forEach((function(t){delete t._})),{type:"MultiPolygon",arcs:i.map((function(e){var r,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){n[t<0?~t:t].length<2&&i.push(t)}))}))})),i=u(t,i),(r=i.length)>1)for(var o,a,s=1,c=l(i[0]);s<r;++s)(o=l(i[s]))>c&&(a=i[0],i[0]=i[s],i[s]=a,c=o);return i})).filter((function(t){return t.length>0}))}}function g(t,e){var n=0,r=t.length;while(n<r){var i=n+r>>>1;t[i]<e?n=i+1:r=i}return n}function v(t){var e={},n=t.map((function(){return[]}));function r(t,n){t.forEach((function(t){t<0&&(t=~t);var r=e[t];r?r.push(n):e[t]=[n]}))}function i(t,e){t.forEach((function(t){r(t,e)}))}function o(t,e){"GeometryCollection"===t.type?t.geometries.forEach((function(t){o(t,e)})):t.type in a&&a[t.type](t.arcs,e)}var a={LineString:r,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var s in t.forEach(o),e)for(var u=e[s],l=u.length,c=0;c<l;++c)for(var f=c+1;f<l;++f){var h,d=u[c],p=u[f];(h=n[d])[s=g(h,p)]!==p&&h.splice(s,0,p),(h=n[p])[s=g(h,d)]!==d&&h.splice(s,0,d)}return n}function m(t){if(null==t)return e;var n,r,i=t.scale[0],o=t.scale[1],a=t.translate[0],s=t.translate[1];return function(t,e){e||(n=r=0);var u=2,l=t.length,c=new Array(l),f=Math.round((t[0]-a)/i),h=Math.round((t[1]-s)/o);c[0]=f-n,n=f,c[1]=h-r,r=h;while(u<l)c[u]=t[u],++u;return c}}function y(t,e){if(t.transform)throw new Error("already quantized");if(e&&e.scale)u=t.bbox;else{if(!((n=Math.floor(e))>=2))throw new Error("n must be \u22652");u=t.bbox||r(t);var n,i=u[0],o=u[1],a=u[2],s=u[3];e={scale:[a-i?(a-i)/(n-1):1,s-o?(s-o)/(n-1):1],translate:[i,o]}}var u,l,c=m(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,o=new Array(i);o[0]=c(t[0],0);while(++n<i)((e=c(t[n],n))[0]||e[1])&&(o[r++]=e);return 1===r&&(o[r++]=[0,0]),o.length=r,o}for(l in f)h[l]=p(f[l]);return{type:"Topology",bbox:u,transform:e,objects:h,arcs:t.arcs.map(g)}}t.bbox=r,t.feature=o,t.merge=d,t.mergeArcs=p,t.mesh=l,t.meshArcs=c,t.neighbors=v,t.quantize=y,t.transform=n,t.untransform=m,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_tslib@1.11.1@tslib/tslib.js":function(t,e,n){(function(n){var r,i,o,a,s,u,l,c,f,h,d,p,g,v,m,y,_,x,b,w,j,S,M,E;(function(o){var a="object"===typeof n?n:"object"===typeof self?self:"object"===typeof this?this:{};function s(t,e){return t!==a&&("function"===typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(n,r){return t[n]=e?e(n,r):r}}r=[e],i=function(t){o(s(a,s(t)))}.apply(e,r),void 0===i||(t.exports=i)})((function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};o=function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},u=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},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,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))},h=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},d=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},p=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=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,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},v=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t},m=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},y=function(t){return this instanceof y?(this.v=t,this):new y(t)},_=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{u(i[t](e))}catch(n){f(o[0][3],n)}}function u(t){t.value instanceof y?Promise.resolve(t.value.v).then(l,c):f(o[0][2],t)}function l(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[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:y(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,o){e=t[n](e),i(r,o,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},j=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},S=function(t){return t&&t.__esModule?t:{default:t}},M=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},E=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",o),t("__assign",a),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",m),t("__await",y),t("__asyncGenerator",_),t("__asyncDelegator",x),t("__asyncValues",b),t("__makeTemplateObject",w),t("__importStar",j),t("__importDefault",S),t("__classPrivateFieldGet",M),t("__classPrivateFieldSet",E)}))}).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 o=i.prototype,a=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)}o.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},o.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},o.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&(e={},e[t]=n),e||n},o.addListener=function(t,e){if(!l(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"===typeof e;for(n in r)r.hasOwnProperty(n)&&-1===s(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},o.on=u("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=u("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&(n=s(i[r],e),-1!==n&&i[r].splice(n,1));return this},o.off=u("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!==typeof e||e instanceof RegExp){r=n.length;while(r--)o.call(this,e,n[r])}else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"===typeof i?o.call(this,r,i):a.call(this,r,i));return this},o.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},o.removeAllListeners=u("removeEvent"),o.emitEvent=function(t,e){var n,r,i,o,a,s=this.getListenersAsObject(t);for(o in s)if(s.hasOwnProperty(o))for(n=s[o].slice(0),i=0;i<n.length;i++)r=n[i],!0===r.once&&this.removeListener(t,r.listener),a=r.listener.apply(this,e||[]),a===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},o.trigger=u("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=a,i},r=function(){return i}.call(e,n,e,t),void 0===r||(t.exports=r)})("undefined"!==typeof window?window:this||{})},"./src/api/geo.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"),o=n("./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),a=n("./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js"),s=n("./src/view.ts"),u=r.__importDefault(n("./src/util/get-geo-projection.ts")),l={geoArea:function(t){return o.geoArea(t)},geoAreaByName:function(t){return o.geoArea(this.geoFeatureByName(t))},geoCentroid:function(t){return o.geoCentroid(t)},geoCentroidByName:function(t){return o.geoCentroid(this.geoFeatureByName(t))},geoDistance:function(t,e){return o.geoDistance(t,e)},geoLength:function(t){return o.geoLength(t)},geoLengthByName:function(t){return o.geoLength(this.geoFeatureByName(t))},geoContains:function(t,e){return o.geoContains(t,e)},geoFeatureByName:function(t){var e,n=this.rows;return n.some((function(n){return n.name===t&&(e=n,!0)})),e},geoFeatureByPosition:function(t){var e,n=this.rows;return n.some((function(n){return!!o.geoContains(n,t)&&(e=n,!0)})),e},geoNameByPosition:function(t){var e=this.geoFeatureByPosition(t);if(e)return e.name},getGeoProjection:u.default,geoProject:function(t,e,n){return e=u.default(e,n),a.geoProject(t,e)},geoProjectByName:function(t,e,n){return e=u.default(e,n),a.geoProject(this.geoFeatureByName(t),e)},geoProjectPosition:function(t,e,n){var r=u.default(e,n);return r(t)},geoProjectInvert:function(t,e,n){var r=u.default(e,n);return r.invert(t)}};i.assign(s.View.prototype,l)},"./src/api/hierarchy.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/view.ts");r.assign(i.View.prototype,{getAllNodes:function(){var t=[],e=this.root;return e&&e.each?e.each((function(e){t.push(e)})):e&&e.eachNode&&e.eachNode((function(e){t.push(e)})),t},getAllLinks:function(){var t,e=[],n=[this.root];while(t=n.pop()){var r=t.children;r&&r.forEach((function(r){e.push({source:t,target:r}),n.push(r)}))}return e}}),r.assign(i.View.prototype,{getAllEdges:i.View.prototype.getAllLinks})},"./src/api/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=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=r.__importDefault(n("./src/util/partition.ts")),a=n("./src/view.ts");i.assign(a.View.prototype,{partition:function(t,e){return void 0===e&&(e=[]),o.default(this.rows,t,e)},group:function(t,e){void 0===e&&(e=[]);var n=this.partition(t,e);return i.values(n)},groups:function(t,e){return void 0===e&&(e=[]),this.group(t,e)}})},"./src/api/statistics.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/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n("./src/view.ts"),s=r.__importDefault(n("./src/util/p-by-fraction.ts")),u=r.__importDefault(n("./src/constants.ts")),l=u.default.STATISTICS_METHODS;function c(t,e){var n=t.getColumn(e);return o.isArray(n)&&o.isArray(n[0])&&(n=o.flattenDeep(n)),n}l.forEach((function(t){a.View.prototype[t]=function(e){return i[t](c(this,e))}}));var f=i.quantile;o.assign(a.View.prototype,{average:a.View.prototype.mean,quantile:function(t,e){return f(c(this,t),e)},quantiles:function(t,e){var n=c(this,t);return e.map((function(t){return f(n,t)}))},quantilesByFraction:function(t,e){return this.quantiles(t,s.default(e))},range:function(t){return[this.min(t),this.max(t)]},extent:function(t){return this.range(t)}})},"./src/connector/default.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");i.DataSet.registerConnector("default",(function(t,e){var n;if(n=r.isString(t)?e.getView(t):t,!n)throw new TypeError("Invalid dataView");return r.deepMix([],n.rows)}))},"./src/connector/dsv.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-dsv@1.2.0@d3-dsv/dist/d3-dsv.js"),o=n("./src/data-set.ts");o.DataSet.registerConnector("dsv",(function(t,e){void 0===e&&(e={});var n=e.delimiter||",";if(!r.isString(n))throw new TypeError("Invalid delimiter: must be a string!");return i.dsvFormat(n).parse(t)})),o.DataSet.registerConnector("csv",(function(t){return i.csvParse(t)})),o.DataSet.registerConnector("tsv",(function(t){return i.tsvParse(t)}))},"./src/connector/geo-graticule.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),i=n("./src/data-set.ts");function o(t,e){e.dataType="geo-graticule";var n=r.geoGraticule().lines();return n.map((function(t,e){return t.index=""+e,t})),e.rows=n,n}e.default=o,i.DataSet.registerConnector("geo-graticule",o)},"./src/connector/geojson.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/_point-at-length@1.1.0@point-at-length/index.js")),o=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"),s=n("./src/data-set.ts"),u=a.geoPath();function l(t,e,n){n.dataType=s.DataSet.CONSTANTS.GEO;var r=o.deepMix([],t.features);return r.forEach((function(t){t.name=t.properties.name,t.longitude=[],t.latitude=[];var e=t.pathData=u(t),n=i.default(e);n._path.forEach((function(e){t.longitude.push(e[1]),t.latitude.push(e[2])}));var r=u.centroid(t);t.centroidX=r[0],t.centroidY=r[1]})),r}s.DataSet.registerConnector("geo",l),s.DataSet.registerConnector("geojson",l),s.DataSet.registerConnector("GeoJSON",l),e.default=l},"./src/connector/graph.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"),o={nodes:function(t){return t.nodes},edges:function(t){return t.edges}};function a(t,e,n){e=r.assign({},o,e),n.dataType=i.DataSet.CONSTANTS.GRAPH;var a=e.nodes,s=e.edges;if(a&&!r.isFunction(a))throw new TypeError("Invalid nodes: must be a function!");if(s&&!r.isFunction(s))throw new TypeError("Invalid edges: must be a function!");return n.rows=n.graph={nodes:a(t),edges:s(t)},r.assign(n,n.graph),n.rows}i.DataSet.registerConnector("graph",a),i.DataSet.registerConnector("diagram",a)},"./src/connector/hexjson.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-hexjson@1.1.0@d3-hexjson/build/d3-hexjson.js"),o=n("./src/data-set.ts"),a={width:1,height:1};function s(t){return t.cx=t.x,t.cy=t.y,t.x=[],t.y=[],t.vertices.forEach((function(e){t.x.push(e.x+t.cx),t.y.push(e.y+t.cy)})),t}function u(t,e,n){n.dataType=o.DataSet.CONSTANTS.HEX,e=r.assign({},a,e);var u=e.width,l=e.height,c=r.deepMix([],t);n._HexJSON=c;var f=n._GridHexJSON=i.getGridForHexJSON(c),h=n.rows=i.renderHexJSON(c,u,l).map(s);return n._gridRows=i.renderHexJSON(f,u,l).map(s),h}o.DataSet.registerConnector("hex",u),o.DataSet.registerConnector("hexjson",u),o.DataSet.registerConnector("hex-json",u),o.DataSet.registerConnector("HexJSON",u),e.default=u},"./src/connector/hierarchy.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-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js"),o=n("./src/data-set.ts");function a(t,e,n){n.dataType=o.DataSet.CONSTANTS.HIERARCHY;var a=e&&e.children?e.children:null;if(a&&!r.isFunction(a))throw new TypeError("Invalid children: must be a function!");return e.pureData?n.rows=n.root=t:n.rows=n.root=i.hierarchy(t,a),t}o.DataSet.registerConnector("hierarchy",a),o.DataSet.registerConnector("tree",a)},"./src/connector/topojson.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"),o=n("./node_modules/_topojson-client@3.1.0@topojson-client/dist/topojson-client.js"),a=r.__importDefault(n("./src/connector/geojson.ts")),s=n("./src/data-set.ts");function u(t,e,n){var r=e.object;if(!i.isString(r))throw new TypeError("Invalid object: must be a string!");var s=o.feature(t,t.objects[r]);return a.default(s,void 0,n)}s.DataSet.registerConnector("topojson",u),s.DataSet.registerConnector("TopoJSON",u)},"./src/constants.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={HIERARCHY:"hierarchy",GEO:"geo",HEX:"hex",GRAPH:"graph",TABLE:"table",GEO_GRATICULE:"geo-graticule",STATISTICS_METHODS:["max","mean","median","min","mode","product","standardDeviation","sum","sumSimple","variance"]}},"./src/data-set.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"),o=r.__importDefault(n("./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js")),a=n("./src/view.ts"),s=r.__importDefault(n("./src/constants.ts")),u=function(t){function e(e){void 0===e&&(e={state:{}});var n=t.call(this)||this;return n.isDataSet=!0,n._onChangeTimer=null,n.views={},n.state={},n.state=e.state,n}return r.__extends(e,t),e.registerConnector=function(t,n){e.connectors[t]=n},e.getConnector=function(t){return e.connectors[t]||e.connectors.default},e.registerTransform=function(t,n){e.transforms[t]=n},e.getTransform=function(t){return e.transforms[t]||e.transforms.default},e.prototype._getUniqueViewName=function(){var t=i.uniqueId("view_");while(this.views[t])t=i.uniqueId("view_");return t},e.prototype.createView=function(t,e){if(i.isNil(t)&&(t=this._getUniqueViewName()),i.isObject(t)&&(e=t,t=this._getUniqueViewName()),this.views[t])throw new Error("data view exists: "+t);var n=new a.View(this,e);return this.views[t]=n,n},e.prototype.getView=function(t){return this.views[t]},e.prototype.setView=function(t,e){this.views[t]=e},e.prototype.setState=function(t,e){var n=this;this.state[t]=e,this._onChangeTimer&&(window.clearTimeout(this._onChangeTimer),this._onChangeTimer=null),this._onChangeTimer=window.setTimeout((function(){n.emit("statechange",t,e)}),16)},e.CONSTANTS=s.default,e.connectors={},e.transforms={},e.DataSet=e,e.DataView=a.View,e.View=a.View,e.version="____DATASET_VERSION____",e}(o.default);e.DataSet=u,i.assign(u,s.default),i.assign(u.prototype,{view:u.prototype.createView}),a.View.DataSet=u},"./src/index.ts":function(t,e,n){"use strict";n("./src/api/geo.ts"),n("./src/api/hierarchy.ts"),n("./src/api/partition.ts"),n("./src/api/statistics.ts"),n("./src/connector/default.ts"),n("./src/connector/dsv.ts"),n("./src/connector/geo-graticule.ts"),n("./src/connector/geojson.ts"),n("./src/connector/graph.ts"),n("./src/connector/hexjson.ts"),n("./src/connector/hierarchy.ts"),n("./src/connector/topojson.ts"),n("./src/transform/default.ts"),n("./src/transform/filter.ts"),n("./src/transform/fold.ts"),n("./src/transform/map.ts"),n("./src/transform/partition.ts"),n("./src/transform/percent.ts"),n("./src/transform/pick.ts"),n("./src/transform/proportion.ts"),n("./src/transform/rename.ts"),n("./src/transform/reverse.ts"),n("./src/transform/sort.ts"),n("./src/transform/sort-by.ts"),n("./src/transform/subset.ts"),n("./src/transform/fill-rows.ts"),n("./src/transform/impute.ts"),n("./src/transform/aggregate.ts"),n("./src/transform/regression.ts"),n("./src/transform/kde.ts"),n("./src/transform/bin/hexagon.ts"),n("./src/transform/bin/histogram.ts"),n("./src/transform/bin/quantile.ts"),n("./src/transform/bin/rectangle.ts"),n("./src/transform/geo/centroid.ts"),n("./src/transform/geo/projection.ts"),n("./src/transform/geo/region.ts"),n("./src/transform/diagram/arc.ts"),n("./src/transform/diagram/dagre.ts"),n("./src/transform/diagram/sankey.ts"),n("./src/transform/diagram/voronoi.ts"),n("./src/transform/hierarchy/cluster.ts"),n("./src/transform/hierarchy/compact-box.ts"),n("./src/transform/hierarchy/dendrogram.ts"),n("./src/transform/hierarchy/indented.ts"),n("./src/transform/hierarchy/pack.ts"),n("./src/transform/hierarchy/partition.ts"),n("./src/transform/hierarchy/tree.ts"),n("./src/transform/hierarchy/treemap.ts"),n("./src/transform/tag-cloud.ts"),n("./src/transform/waffle.ts"),n("./src/transform/kernel-smooth/density.ts"),n("./src/transform/kernel-smooth/regression.ts");var r=n("./src/data-set.ts");t.exports=r.DataSet},"./src/transform/aggregate.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"),o=r.__importStar(n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),a=r.__importDefault(n("./src/util/partition.ts")),s=n("./src/data-set.ts"),u=s.DataSet.registerTransform,l=n("./src/util/option-parser.ts"),c={as:[],fields:[],groupBy:[],operations:[]},f="count",h={count:function(t){return t.length},distinct:function(t,e){var n=i.uniq(t.map((function(t){return t[e]})));return n.length}};function d(t,e){e=i.assign({},c,e);var n=l.getFields(e);if(!i.isArray(n))throw new TypeError("Invalid fields: it must be an array with one or more strings!");var r=e.as||[];i.isString(r)&&(r=[r]);var o=e.operations;i.isString(o)&&(o=[o]);var s=[f];if(i.isArray(o)&&o.length||(console.warn('operations is not defined, will use [ "count" ] directly.'),o=s,r=o),1!==o.length||o[0]!==f){if(o.length!==n.length)throw new TypeError("Invalid operations: it's length must be the same as fields!");if(r.length!==n.length)throw new TypeError("Invalid as: it's length must be the same as fields!")}var u=a.default(t.rows,e.groupBy),d=[];i.forIn(u,(function(t){var e=t[0];o.forEach((function(i,o){var a=r[o],s=n[o];e[a]=h[i](t,s)})),d.push(e)})),t.rows=d}s.DataSet.CONSTANTS.STATISTICS_METHODS.forEach((function(t){h[t]=function(e,n){var r=e.map((function(t){return t[n]}));return i.isArray(r)&&i.isArray(r[0])&&(r=i.flattenDeep(r)),o[t](r)}})),h.average=h.mean,u("aggregate",d),u("summary",d),e.default={VALID_AGGREGATES:i.keys(h)}},"./src/transform/bin/hexagon.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"),o=n("./src/data-set.ts"),a=n("./src/util/option-parser.ts"),s={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1},u=Math.sqrt(3),l=Math.PI/3,c=[0,l,2*l,3*l,4*l,5*l];function f(t,e,n,r){return Math.sqrt((t-n)*(t-n)+(e-r)*(e-r))}function h(t,e,n){var r=t-n;e/=2;var i=Math.floor(r/e),o=e*(i+(1===Math.abs(i%2)?1:0)),a=e*(i+(1===Math.abs(i%2)?0:1));return[o+n,a+n]}function d(t,e,n){void 0===e&&(e=[1,1]),void 0===n&&(n=[0,0]);var i={},o=r.__read(e,2),a=o[0],s=o[1],u=r.__read(n,2),l=u[0],c=u[1];return t.forEach((function(t){var e,n,o,u,d,p=r.__read(t,2),g=p[0],v=p[1],m=r.__read(h(g,a,l),2),y=m[0],_=m[1],x=r.__read(h(v,s,c),2),b=x[0],w=x[1],j=f(g,v,y,b),S=f(g,v,_,w);j<S?(o="x"+y+"y"+b,e=r.__read([y,b],2),u=e[0],d=e[1]):(o="x"+_+"y"+w,n=r.__read([_,w],2),u=n[0],d=n[1]),i[o]=i[o]||{x:u,y:d,count:0},i[o].count++})),i}function p(t,e){e=i.assign({},s,e);var n=a.getFields(e);if(!i.isArray(n)||2!==n.length)throw new TypeError("Invalid fields: it must be an array with 2 strings!");var o=r.__read(n,2),l=o[0],f=o[1],h=t.range(l),p=t.range(f),g=h[1]-h[0],v=p[1]-p[0],m=e.binWidth||[];if(2!==m.length){var y=r.__read(e.bins,2),_=y[0],x=y[1];if(_<=0||x<=0)throw new TypeError("Invalid bins: must be an array with two positive numbers (e.g. [ 30, 30 ])!");m=[g/_,v/x]}var b=r.__read(e.offset,2),w=b[0],j=b[1],S=3*m[0]/(u*m[1]),M=t.rows.map((function(t){return[t[l],S*t[f]]})),E=d(M,[m[0],S*m[1]],[w,S*j]),P=r.__read(e.as,3),C=P[0],k=P[1],A=P[2];if(!C||!k||!A)throw new TypeError('Invalid as: it must be an array with three elements (e.g. [ "x", "y", "count" ])!');var T=m[0]/u,O=c.map((function(t){return[Math.sin(t)*T,-Math.cos(t)*T]})),I=[],R=0;e.sizeByCount&&i.forIn(E,(function(t){t.count>R&&(R=t.count)})),i.forIn(E,(function(t){var n=t.x,r=t.y,i=t.count,o={};o[A]=i,e.sizeByCount?(o[C]=O.map((function(e){return n+t.count/R*e[0]})),o[k]=O.map((function(e){return(r+t.count/R*e[1])/S}))):(o[C]=O.map((function(t){return n+t[0]})),o[k]=O.map((function(t){return(r+t[1])/S}))),I.push(o)})),t.rows=I}o.DataSet.registerTransform("bin.hexagon",p),o.DataSet.registerTransform("bin.hex",p),o.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"),o=r.__importDefault(n("./src/util/partition.ts")),a=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={as:["x","count"],bins:30,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,e){e=i.assign({},u,e);var n=s.getField(e);if(0!==t.rows.length){var a=t.range(n),c=a[1]-a[0],f=e.binWidth;if(!f){var h=e.bins;if(h<=0)throw new TypeError("Invalid bins: it must be a positive number!");f=c/h}var d=e.offset%f,p=[],g=e.groupBy,v=o.default(t.rows,g);i.forIn(v,(function(t){var o={},a=t.map((function(t){return t[n]}));a.forEach((function(t){var e=r.__read(l(t,f,d),2),n=e[0],i=e[1],a=n+"-"+i;o[a]=o[a]||{x0:n,x1:i,count:0},o[a].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 h=i.pick(t[0],g);i.forIn(o,(function(t){var e=i.assign({},h);e[u]=[t.x0,t.x1],e[c]=t.count,p.push(e)}))})),t.rows=p}}a.DataSet.registerTransform("bin.histogram",c),a.DataSet.registerTransform("bin.dot",c)},"./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"),o=n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=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=a.default(h,d),g=[];i.forIn(p,(function(t){var e=t[0],i=t.map((function(t){return t[n]})),a=u.map((function(t){return o.quantile(i,t)}));e[r]=a,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"),o=n("./src/data-set.ts"),a=o.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),o=n[0],a=n[1];if(!o||!a)throw new TypeError("Invalid fields: must be an array with 2 strings!");var c=t.range(o),f=t.range(a),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],m=g[1];if(v<=0||m<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");p=[h/v,d/m]}var y=t.rows.map((function(t){return[t[o],t[a]]})),_={},x=r.__read(e.offset,2),b=x[0],w=x[1];y.forEach((function(t){var e=r.__read(l(t[0],p[0],b),2),n=e[0],i=e[1],o=r.__read(l(t[1],p[1],w),2),a=o[0],s=o[1],u=n+"-"+i+"-"+a+"-"+s;_[u]=_[u]||{x0:n,x1:i,y0:a,y1:s,count:0},_[u].count++}));var j=[],S=r.__read(e.as,3),M=S[0],E=S[1],P=S[2];if(!M||!E||!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(_,(function(t){t.count>C&&(C=t.count)})),i.forIn(_,(function(t){var e=t.x0,n=t.x1,i=t.y0,o=t.y1,a=t.count,s=a/C,u=r.__read([(e+n)/2,(i+o)/2],2),l=u[0],c=u[1],f=(n-e)*s/2,h=(o-i)*s/2,d=l-f,p=l+f,g=c-h,v=c+h,m={};m[M]=[d,p,p,d],m[E]=[g,g,v,v],m[P]=a,j.push(m)}))}else i.forIn(_,(function(t){var e={};e[M]=[t.x0,t.x1,t.x1,t.x0],e[E]=[t.y0,t.y0,t.y1,t.y1],e[P]=t.count,j.push(e)}));t.rows=j}a("bin.rectangle",c),a("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"),o={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 a(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),o=e.thickness;if(o<=0||o>=1)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*i;var u=n.minX=i+a,l=n.maxX=n.minX+n.width,c=n.minY=e.y-o/2,f=n.maxY=c+o;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),o=n.target(e),a=t[r],s=t[o];if(a&&s){var u=i[r],l=n.sourceWeight(e),c=a.minX+(a.value-u)/a.value*a.width,f=c+l/a.value*a.width;i[r]-=l;var h=i[o],d=n.targetWeight(e),p=s.minX+(s.value-h)/s.value*s.width,g=p+d/s.value*s.width;i[o]-=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({},o,e);var n={},i=t.nodes,f=t.edges;r.isArray(i)&&0!==i.length||(i=a(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"),o=r.__importDefault(n("./node_modules/_dagre@0.8.5@dagre/index.js")),a=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 o.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))})),o.default.layout(n);var r=[],a=[];n.nodes().forEach((function(t){var e=n.node(t),i=e.x,o=e.y,a=e.height,s=e.width;e.x=[i-s/2,i+s/2,i+s/2,i-s/2],e.y=[o+a/2,o+a/2,o-a/2,o-a/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})),a.push(r)})),t.nodes=r,t.edges=a}a.DataSet.registerTransform("diagram.dagre",u),a.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"),o=n("./src/data-set.ts"),a={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=a[e.nodeAlign]:r.isFunction(e.nodeAlign)&&(n=e.nodeAlign);var o=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)&&o.nodeId(e.nodeId),n&&o.nodeAlign(n),o(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 o=t.width/2;t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o]}))}o.DataSet.registerTransform("diagram.sankey",u),o.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")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n("./src/data-set.ts"),s=a.DataSet.registerTransform,u=n("./src/util/option-parser.ts"),l={as:["_x","_y"]};function c(t,e){e=o.assign({},l,e);var n=e.as;if(!o.isArray(n)||2!==n.length)throw new TypeError("Invalid as: must be an array with two strings!");var r=n[0],a=n[1],s=u.getFields(e);if(!o.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[a]=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"),o=r.__importDefault(n("./src/util/partition.ts")),a=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,a=e.orderBy,l=o.default(n,r,a),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=a.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=a.map((function(e){return t[e]})).join("-");-1===g.indexOf(e)&&(g.push(e),v[e]=t)}));var m=u(g,h);m.forEach((function(t){var e={};r.forEach((function(t){e[t]=p[t]})),a.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){var e=t[0],i=[];t.forEach((function(t){i.push(a.map((function(e){return t[e]})).join("-"))}));var o=u(h,i);o.some((function(i,o){if(o>=c-t.length)return!0;var s=d[i],u={};return r.forEach((function(t){u[t]=e[t]})),a.forEach((function(t){u[t]=s[t]})),n.push(u),!1}))}}))}a.DataSet.registerTransform("fill-rows",l),a.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"),o=n("./src/util/option-parser.ts"),a={fields:[],key:"key",retains:[],value:"value"};i.DataSet.registerTransform("fold",(function(t,e){var n=t.getColumnNames();e=r.assign({},a,e);var i=o.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"),o=i.DataSet.registerTransform,a=n("./src/util/option-parser.ts"),s={as:["_centroid_x","_centroid_y"]};function u(t,e){e=r.assign({},s,e);var n=a.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 o=e.as;if(!r.isArray(o)||2!==o.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var u=o[0],l=o[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))}))}o("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"),o=n("./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),a=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=o.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=a.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"),o=i.DataSet.registerTransform,a=n("./src/util/option-parser.ts"),s={as:["_x","_y"]};function u(t,e){e=r.assign({},s,e);var n=a.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 o=e.as;if(!r.isArray(o)||2!==o.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var u=o[0],l=o[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))}))}o("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")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=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!==a.DataSet.CONSTANTS.HIERARCHY||!t.root)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=o.assign({},u,e);var r=e.as;if(!o.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}))}a.DataSet.registerTransform("hierarchy.cluster",l),a.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")),o=n("./src/data-set.ts"),a={};function s(t,e){var n=t.root;if(e=Object.assign({},a,e),t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.default.compactBox(n,e)}o.DataSet.registerTransform("hierarchy.compact-box",s),o.DataSet.registerTransform("compact-box-tree",s),o.DataSet.registerTransform("non-layered-tidy-tree",s),o.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")),o=n("./src/data-set.ts"),a={};function s(t,e){var n=t.root;if(e=Object.assign({},a,e),t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.default.dendrogram(n,e)}o.DataSet.registerTransform("hierarchy.dendrogram",s),o.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")),o=n("./src/data-set.ts"),a={};function s(t,e){var n=t.root;if(e=Object.assign({},a,e),t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.default.indented(n,e)}o.DataSet.registerTransform("hierarchy.indented",s),o.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"),o=r.__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),a=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!==a.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=o.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}))}a.DataSet.registerTransform("hierarchy.pack",l),a.DataSet.registerTransform("hierarchy.circle-packing",l),a.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")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=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!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=o.assign({},u,e);var r,l=e.as;if(!o.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]}))}))}a.DataSet.registerTransform("hierarchy.partition",l),a.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")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=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!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=o.assign({},u,e);var r,l=e.as;if(!o.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}))}a.DataSet.registerTransform("hierarchy.tree",l),a.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")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=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!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=o.assign({},u,e);var r,l=e.as;if(!o.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]}))}))}a.DataSet.registerTransform("hierarchy.treemap",l),a.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"),o=r.__importStar(n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),a=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 o=c(t.getColumn(n)),s=a.default(t.rows,e.groupBy);i.forIn(s,(function(t){var a=c(t.map((function(t){return t[n]})));0===a.length&&(a=o),t.forEach((function(o){if(i.isUndefined(o[n]))if(i.isFunction(r))o[n]=r(o,a,e.value,t);else{if(!i.isString(r))throw new TypeError("Invalid method: must be a function or one of "+f.join(", "));o[n]=h[r](o,a,e.value)}}))}))}f.forEach((function(t){h[t]=function(e,n){return o[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"),o=r.__importDefault(n("./src/util/get-series-values.ts")),a=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(a.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=a.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 m=e.bandwidth;i.isString(m)&&s[m]?m=s[m](t.getColumn(n[0])):i.isFunction(m)?m=m(t.getColumn(n[0])):(!i.isNumber(m)||m<=0)&&(m=s.nrd(t.getColumn(n[0])));var y=o.default(g,e.step?e.step:m),_=[],x=e.groupBy,b=u.default(t.rows,x);i.forIn(b,(function(t){var o={};i.each(n,(function(n){var a=i.pick(t[0],x);o[n]=f.kernelDensityEstimation(t.map((function(t){return t[n]})),p,m);var s=r.__read(l,3),u=s[0],c=s[1],h=s[2];a[u]=n,a[c]=[],a[h]=[],i.each(y,(function(t){var r=o[n](t);r>=e.minSize&&(a[c].push(t),a[h].push(r))})),_.push(a)}))})),t.rows=_}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"),o=r.__importDefault(n("./src/util/get-series-values.ts")),a=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(a.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],m=p[2];if(!i.isString(g)||!i.isString(v)||!i.isString(m))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=a.default[e.method]}var y,_,x,b,w=r.__read(h,2),j=w[0],S=w[1],M=e.extent,E=e.bandwidth;M&&Array.isArray(M)&&Array.isArray(M[0])&&Array.isArray(M[1])?(n=r.__read(M,2),y=n[0],_=n[1]):(y=t.range(j),_=t.range(S)),E&&Array.isArray(E)&&E.slice(0,2).every(i.isNumber)&&E.slice(0,2).every((function(t){return t>0}))?(s=r.__read(E,2),x=s[0],b=s[1]):(x=l.silverman(t.getColumn(j)),b=l.silverman(t.getColumn(S)));for(var P=o.default(y,x),C=o.default(_,b),k=t.rows.length,A=[],T=0;T<P.length;T++)for(var O=0;O<C.length;O++){for(var I=0,R=P[T],D=C[O],L=0;L<k;L++)I+=d((R-t.rows[L][j])/x)*d((D-t.rows[L][S])/b);var N=1/(k*x*b)*I,F={};F[g]=R,F[v]=D,F[m]=N,A.push(F)}t.rows=A}s.DataSet.registerTransform("kernel-smooth.density",h),s.DataSet.registerTransform("kernel.density",h),e.default={KERNEL_METHODS:f}},"./src/transform/kernel-smooth/regression.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"),o=r.__importDefault(n("./src/util/get-series-values.ts")),a=r.__importDefault(n("./src/util/kernel.ts")),s=n("./src/data-set.ts"),u=n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),l=n("./src/util/option-parser.ts"),c=n("./src/util/bandwidth.ts"),f={as:["x","y"],method:"gaussian"},h=i.keys(a.default);function d(t,e,n,r){var i=(r-n)/e;return t(i)}function p(t){return function(e){return i.isArray(e)?e.map((function(e){return t(e)})):t(e)}}function g(t,e){e=i.assign({},f,e);var n=l.getFields(e);if(!i.isArray(n)||1!==n.length&&2!==n.length)throw new TypeError("invalid fields: must be an array of 1 or 2 strings!");var s,g=r.__read(e.as,2),v=g[0],m=g[1];if(!i.isString(v)||!i.isString(m))throw new TypeError("invalid as: must be an array of 2 strings!");var y=e.method;if(i.isString(y)){if(-1===h.indexOf(y))throw new TypeError("invalid method: "+y+". Must be one of "+h.join(", "));s=a.default[y]}var _=r.__read(n,2),x=_[0],b=_[1],w=t.getColumn(x),j=e.extent;!j&&i.isArray(j)||(j=t.range(x));var S=e.bandwidth;(!S||!i.isNumber(S)||S<=0)&&(S=c.silverman(w));var M,E=o.default(j,S),P=w.length,C=d.bind(null,s,S);if(i.isNil(b))M=p((function(t){var e=w.map((function(e){return C(t,e)})),n=u.sum(e),r=P*S;return n&&r?n/r:0}));else{var k=t.getColumn(b);M=p((function(t){var e=w.map((function(e){return C(t,e)})),n=u.sum(e.map((function(t,e){return t*k[e]}))),r=u.sum(e);return n&&r?n/r:0}))}var A=E.map((function(t){var e={};return e[v]=t,e[m]=M(t),e}));t.rows=A}s.DataSet.registerTransform("kernel-smooth.regression",g),s.DataSet.registerTransform("kernel.regression",g),e.default={KERNEL_METHODS:h}},"./src/transform/map.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("map",(function(t,e){t.rows=t.rows.map(e.callback||i)}))},"./src/transform/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=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=r.__importDefault(n("./src/util/partition.ts")),a=n("./src/data-set.ts"),s={groupBy:[],orderBy:[]};function u(t,e){e=i.assign({},s,e),t.rows=i.values(o.default(t.rows,e.groupBy,e.orderBy))}a.DataSet.registerTransform("partition",(function(t,e){e=i.assign({},s,e),t.rows=o.default(t.rows,e.groupBy,e.orderBy)})),a.DataSet.registerTransform("group",u),a.DataSet.registerTransform("groups",u)},"./src/transform/percent.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"),o=n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=r.__importDefault(n("./src/util/partition.ts")),s=n("./src/data-set.ts"),u=n("./src/util/option-parser.ts"),l={groupBy:[],as:"_percent"};function c(t,e){e=i.assign({},l,e);var n=u.getField(e),r=e.dimension,s=e.groupBy,c=e.as;if(!i.isString(r))throw new TypeError("Invalid dimension: must be a string!");if(i.isArray(c)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),c=c[0]),!i.isString(c))throw new TypeError("Invalid as: must be a string!");var f=t.rows,h=[],d=a.default(f,s);i.forIn(d,(function(t){var e=o.sum(t.map((function(t){return t[n]})));0===e&&console.warn("Invalid data: total sum of field "+n+" is 0!");var s=a.default(t,[r]);i.forIn(s,(function(t){var i=o.sum(t.map((function(t){return t[n]}))),a=t[0],s=a[r];a[n]=i,a[r]=s,a[c]=0===e?0:i/e,h.push(a)}))})),t.rows=h}s.DataSet.registerTransform("percent",c)},"./src/transform/pick.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"),o=n("./src/util/option-parser.ts");i.DataSet.registerTransform("pick",(function(t,e){var n=o.getFields(e,t.getColumnNames());t.rows=t.rows.map((function(t){return r.pick(t,n)}))}))},"./src/transform/proportion.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"),o=r.__importDefault(n("./src/util/partition.ts")),a=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={groupBy:[],as:"_proportion"};function l(t,e){e=i.assign({},u,e);var n=s.getField(e),r=e.dimension,a=e.groupBy,l=e.as;if(!i.isString(r))throw new TypeError("Invalid dimension: must be a string!");if(i.isArray(l)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),l=l[0]),!i.isString(l))throw new TypeError("Invalid as: must be a string!");var c=t.rows,f=[],h=o.default(c,a);i.forIn(h,(function(t){var e=t.length,a=o.default(t,[r]);i.forIn(a,(function(t){var i=t.length,o=t[0],a=o[r];o[n]=i,o[r]=a,o[l]=i/e,f.push(o)}))})),t.rows=f}a.DataSet.registerTransform("proportion",l)},"./src/transform/regression.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/_regression@2.0.1@regression/dist/regression.js")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=r.__importDefault(n("./src/util/get-series-values.ts")),s=n("./src/data-set.ts"),u=n("./src/util/option-parser.ts"),l=n("./src/util/bandwidth.ts"),c={as:["x","y"],method:"linear",order:2,precision:2},f=["linear","exponential","logarithmic","power","polynomial"];function h(t,e){e=o.assign({},c,e);var n=u.getFields(e);if(!o.isArray(n)||2!==n.length)throw new TypeError("invalid fields: must be an array of 2 strings.");var s=r.__read(n,2),h=s[0],d=s[1],p=e.method;if(-1===f.indexOf(p))throw new TypeError("invalid method: "+p+". Must be one of "+f.join(", "));var g=t.rows.map((function(t){return[t[h],t[d]]})),v=i.default[p](g,e),m=e.extent;o.isArray(m)&&2===m.length||(m=t.range(h));var y=e.bandwidth;(!o.isNumber(y)||y<=0)&&(y=l.silverman(t.getColumn(h)));var _=a.default(m,y),x=[],b=r.__read(e.as,2),w=b[0],j=b[1];_.forEach((function(t){var e={},n=r.__read(v.predict(t),2),i=n[0],o=n[1];e[w]=i,e[j]=o,isFinite(o)&&x.push(e)})),t.rows=x}s.DataSet.registerTransform("regression",h),e.default={REGRESSION_METHODS:f}},"./src/transform/rename.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");function o(t,e){var n=e.map||{},i={};r.isPlainObject(n)&&r.forIn(n,(function(t,e){r.isString(t)&&r.isString(e)&&(i[e]=t)})),t.rows.forEach((function(t){r.forIn(i,(function(e,n){var r=t[n];delete t[n],t[e]=r}))}))}i.DataSet.registerTransform("rename",o),i.DataSet.registerTransform("rename-fields",o)},"./src/transform/reverse.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./src/data-set.ts");r.DataSet.registerTransform("reverse",(function(t){t.rows.reverse()}))},"./src/transform/sort-by.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"),o=n("./src/util/option-parser.ts"),a=["ASC","DESC"];function s(t,e){var n=o.getFields(e,[t.getColumnName(0)]);if(!r.isArray(n))throw new TypeError("Invalid fields: must be an array with strings!");t.rows=r.sortBy(t.rows,n);var i=e.order;if(i&&-1===a.indexOf(i))throw new TypeError("Invalid order: "+i+" must be one of "+a.join(", "));"DESC"===i&&t.rows.reverse()}i.DataSet.registerTransform("sort-by",s),i.DataSet.registerTransform("sortBy",s)},"./src/transform/sort.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./src/data-set.ts");r.DataSet.registerTransform("sort",(function(t,e){var n=t.getColumnName(0);t.rows.sort(e.callback||function(t,e){return t[n]-e[n]})}))},"./src/transform/subset.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./src/data-set.ts"),i=n("./src/util/option-parser.ts");r.DataSet.registerTransform("subset",(function(t,e){var n=e.startRowIndex||0,r=e.endRowIndex||t.rows.length-1,o=i.getFields(e,t.getColumnNames());t.rows=t.getSubset(n,r,o)}))},"./src/transform/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=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts"),a=r.__importDefault(n("./src/util/tag-cloud.ts")),s=n("./src/util/option-parser.ts"),u={fields:["text","value"],font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:500};function l(t,e){e=i.assign({},u,e);var n=a.default();["font","fontSize","padding","rotate","size","spiral","timeInterval"].forEach((function(t){e[t]&&n[t](e[t])}));var o=s.getFields(e),l=r.__read(o,2),c=l[0],f=l[1];if(!i.isString(c)||!i.isString(f))throw new TypeError('Invalid fields: must be an array with 2 strings (e.g. [ "text", "value" ])!');var h=t.rows.map((function(t){return t.text=t[c],t.value=t[f],t}));n.words(h),e.imageMask&&n.createMask(e.imageMask);var d=n.start(),p=d._tags,g=d._bounds;p.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var v=r.__read(e.size,2),m=v[0],y=v[1],_=d.hasImage;p.push({text:"",value:0,x:_?0:g[0].x,y:_?0:g[0].y,opacity:0}),p.push({text:"",value:0,x:_?m:g[1].x,y:_?y:g[1].y,opacity:0}),t.rows=p,t._tagCloud=d}o.DataSet.registerTransform("tag-cloud",l),o.DataSet.registerTransform("word-cloud",l)},"./src/transform/waffle.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"),o=n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=r.__importDefault(n("./src/util/partition.ts")),s=n("./src/data-set.ts"),u=n("./src/util/option-parser.ts"),l={fields:["name","value"],rows:5,size:[1,1],scale:1,groupBy:[],maxCount:1e3,gapRatio:.1,as:["x","y"]};function c(t,e){e=i.assign({},l,e);var n=u.getFields(e),s=r.__read(n,2),c=s[0],f=s[1],h=r.__read(e.as,2),d=h[0],p=h[1],g=e.groupBy,v=a.default(t.rows,g),m=i.keys(v),y=r.__read(e.size,2),_=y[0],x=y[1],b=e.maxCount,w=m.length,j=x/w,S=e.rows,M=e.gapRatio,E=[],P=e.scale,C=0,k=0;i.forIn(v,(function(t){var e=o.sum(i.map(t,(function(t){return t[f]}))),n=Math.ceil(e*P/S);e*P>b&&(P=b/e,n=Math.ceil(e*P/S)),k=_/n})),i.forIn(v,(function(t){var e=[C*j,(C+1)*j],n=e[1]-e[0],r=n*(1-M)/S,o=0,a=0;i.each(t,(function(t){for(var n=t[f],s=Math.round(n*P),u=0;u<s;u++){a===S&&(a=0,o++);var l=i.pick(t,[c,f].concat(g));l[d]=o*k+k/2,l[p]=a*r+r/2+e[0],l._wStep=k,l._hStep=r,a++,E.push(l)}})),C+=1})),t.rows=E}s.DataSet.registerTransform("waffle",c)},"./src/util/bandwidth.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js");function i(t){var e=r.standardDeviation(t),n=4*Math.pow(e,5),i=3*t.length;return Math.pow(n/i,.2)}function o(t){var e=r.standardDeviation(t),n=r.interquartileRange(t);return"number"===typeof n&&(e=Math.min(e,n/1.34)),1.06*e*Math.pow(t.length,-.2)}e.silverman=i,e.nrd=o},"./src/util/get-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"),o=r.__importStar(n("./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js")),a=r.__importStar(n("./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js")),s=r.__importStar(n("./node_modules/_d3-composite-projections@1.3.2@d3-composite-projections/d3-composite-projections.js"));e.default=function(t,e){if(void 0===e&&(e=!1),i.isFunction(t))return e?t:t();if(i.isString(t)){if(o[t])return e?o[t]:o[t]();if(a[t])return e?a[t]:a[t]();if(s[t])return e?s[t]:s[t]()}return null}},"./src/util/get-series-values.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");e.default=function(t,e){var n=e||1,i=r.__read(t,2),o=i[0],a=i[1],s=[],u=o;while(u<a)s.push(u),u+=n;return s.push(a),s}},"./src/util/kernel.ts":function(t,e,n){"use strict";function r(t){return Math.abs(t)<=1?.5:0}function i(t){var e=1-Math.pow(Math.abs(t),3);return Math.pow(e,3)}Object.defineProperty(e,"__esModule",{value:!0}),e.default={boxcar:r,cosine:function(t){return Math.abs(t)<=1?Math.PI/4*Math.cos(Math.PI/2*t):0},epanechnikov:function(t){return Math.abs(t)<1?.75*(1-t*t):0},gaussian:function(t){return.3989422804*Math.exp(-.5*t*t)},quartic:function(t){if(Math.abs(t)<1){var e=1-t*t;return 15/16*e*e}return 0},triangular:function(t){var e=Math.abs(t);return e<1?1-e:0},tricube:function(t){return Math.abs(t)<1?70/81*i(t):0},triweight:function(t){if(Math.abs(t)<1){var e=1-t*t;return 35/32*e*e*e}return 0},uniform:r}},"./src/util/option-parser.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="Invalid field: it must be a string!",o="Invalid fields: it must be an array!";function a(t,e){var n=t.field,o=t.fields;if(r.isString(n))return n;if(r.isArray(n))return console.warn(i),n[0];if(console.warn(i+" will try to get fields instead."),r.isString(o))return o;if(r.isArray(o)&&o.length)return o[0];if(e)return e;throw new TypeError(i)}function s(t,e){var n=t.field,i=t.fields;if(r.isArray(i))return i;if(r.isString(i))return console.warn(o),[i];if(console.warn(o+" will try to get field instead."),r.isString(n))return console.warn(o),[n];if(r.isArray(n)&&n.length)return console.warn(o),n;if(e)return e;throw new TypeError(o)}e.getField=a,e.getFields=s},"./src/util/p-by-fraction.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=1/t,n=[],r=0;r<=1;r+=e)n.push(r);return n}},"./src/util/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=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=r.__importDefault(n("./src/util/simple-sort-by.ts"));e.default=function(t,e,n){void 0===n&&(n=[]);var r,a=t;n&&n.length&&(a=o.default(t,n)),i.isFunction(e)?r=e:i.isArray(e)?r=function(t){return"_"+e.map((function(e){return t[e]})).join("-")}:i.isString(e)&&(r=function(t){return"_"+t[e]});var s=i.groupBy(a,r);return s}},"./src/util/simple-sort-by.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");function i(t,e){void 0===e&&(e=[]);var n=void 0;return r.isFunction(e)?n=e:r.isArray(e)?n=function(t,n){for(var r=0;r<e.length;r++){var i=e[r];if(t[i]<n[i])return-1;if(t[i]>n[i])return 1}return 0}:r.isString(e)&&(n=function(t,n){return t[e]<n[e]?-1: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,o=64,a=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,(o<<5)/u,a/u);var l=0,c=0,f=0,h=n.length;--r;while(++r<h){e=n[r],s.save(),s.font=e.style+" "+e.weight+" "+~~((e.size+1)/u)+"px "+e.font;var d=s.measureText(e.text+"m").width*u,p=e.size<<1;if(e.rotate){var g=Math.sin(e.rotate*i),v=Math.cos(e.rotate*i),m=d*v,y=d*g,_=p*v,x=p*g;d=Math.max(Math.abs(m+x),Math.abs(m-x))+31>>5<<5,p=~~Math.max(Math.abs(y+_),Math.abs(y-_))}else d=d+31>>5<<5;if(p>f&&(f=p),l+d>=o<<5&&(l=0,c+=f,f=0),c+p>=a)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,(o<<5)/u,a/u).data,w=[];while(--r>=0)if(e=n[r],e.hasText){d=e.width;for(var j=d>>5,S=(p=e.y1-e.y0,0);S<p*j;S++)w[S]=0;if(l=e.xoff,null==l)return;c=e.yoff;for(var M=0,E=-1,P=0;P<p;P++){for(S=0;S<d;S++){var C=j*P+(S>>5),k=b[(c+P)*(o<<5)+(l+S)<<2]?1<<31-S%32:0;w[C]|=k,M|=k}M?E=P:(e.y0++,p--,P--,c++)}e.y1=e.y0+E,e.sprite=w.slice(0,(e.y1-e.y0)*j)}}}function p(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,l=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),f=0;f<l;f++){r=0;for(var h=0;h<=o;h++)if((r<<u|(h<o?(r=i[f*o+h])>>>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.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.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.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){var e=4,n=e*t[0]/t[1],r=0,i=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:r+=n;break;case 1:i+=e;break;case 2:r-=n;break;default:i-=e;break}return[r,i]}}function _(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function x(){return document.createElement("canvas")}function b(t){return"function"===typeof t?t:function(){return t}}var w={archimedean:m,rectangular:y};function j(){var t=[256,256],e=s,n=u,i=c,y=l,j=l,S=f,M=h,E=m,P=[],C=1/0,k=Math.random,A=x,T={};function O(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(o<<5)/e,t.height=a/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,o,a,s=n.x,u=n.y,l=Math.sqrt(t[0]*t[0]+t[1]*t[1]),c=E(t),f=k()<.5?1:-1,h=-f;while(i=c(h+=f)){if(o=~~i[0],a=~~i[1],Math.min(Math.abs(o),Math.abs(a))>=l)break;if(n.x=s+o,n.y=u+a,!(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,m=t[0]>>5,y=n.x-(g<<4),_=127&y,x=32-_,b=n.y1-n.y0,w=void 0,j=(n.y+n.y0)*m+(y>>5),S=0;S<b;S++){w=0;for(var M=0;M<=g;M++)e[j+M]|=w<<x|(M<g?(w=d[S*g+M])>>>_:0);j+=m}return delete n.sprite,!0}}return!1}return T.canvas=function(t){return arguments.length?(A=b(t),T):A},T.start=function(){var o=r.__read(t,2),a=o[0],s=o[1],u=O(A()),l=T.board?T.board:_((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=y.call(this,t,r),t.weight=j.call(this,t,r),t.rotate=S.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=M.call(this,t,r),t})).sort((function(t,e){return e.size-t.size})),p=-1,v=T.board?[{x:0,y:0},{x:a,y:s}]:null;function m(){var e=Date.now();while(Date.now()-e<C&&++p<c){var n=h[p];n.x=a*(k()+.5)>>1,n.y=s*(k()+.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 m(),T},T.createMask=function(e){var n=document.createElement("canvas"),i=r.__read(t,2),o=i[0],a=i[1],s=o>>5,u=_((o>>5)*a);n.width=o,n.height=a;var l=n.getContext("2d");l.drawImage(e,0,0,e.width,e.height,0,0,o,a);for(var c=l.getImageData(0,0,o,a).data,f=0;f<a;f++)for(var h=0;h<o;h++){var d=s*f+(h>>5),p=f*o+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?(y=b(t),T):y},T.fontWeight=function(t){return arguments.length?(j=b(t),T):j},T.rotate=function(t){return arguments.length?(S=b(t),T):S},T.text=function(t){return arguments.length?(e=b(t),T):e},T.spiral=function(t){return arguments.length?(E=w[t]||t,T):E},T.fontSize=function(t){return arguments.length?(i=b(t),T):i},T.padding=function(t){return arguments.length?(M=b(t),T):M},T.random=function(t){return arguments.length?(k=t,T):k},T}e.default=j},"./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")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js");function a(t){var e={};return o.forIn(t,(function(t,n){o.isObject(t)&&t.isView?e[n]=t:o.isArray(t)?e[n]=t.concat([]):o.isPlainObject(t)?e[n]=o.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){o.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=a(t);return this.loose||o.forIn(n,(function(t,r){o.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||o.isString(t))this.origin=e.DataSet.getConnector("default")(t,this.dataSet);else if(o.isArray(t))this.origin=t;else{if(!o.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=o.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){o.assign(this.rows[t],e)},e.prototype.findRows=function(t){return this.rows.filter((function(e){return o.isMatch(e,t)}))},e.prototype.findRow=function(t){return o.find(this.rows,t)},e.prototype.getColumnNames=function(){var t=this.rows[0];return t?o.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(o.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}})}))},ek7X:function(t,e,n){"use strict";n.r(e);var r=n("q1tI"),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},o=i,a=n("6VBw"),s=function(t,e){return r["createElement"](a["a"],Object.assign({},t,{ref:e,icon:o}))};s.displayName="CaretUpOutlined";e["default"]=r["forwardRef"](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 o=(new r.Component).updater;t.exports=i(r.Component,r.isValidElement,o)},lT4e:function(t,e,n){"use strict";var r=n("MgzW"),i=n("t33a"),o=n("2NuI"),a="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;n<e.length;n++)d(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=r({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=r({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=v(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=r({},t.propTypes,e)},statics:function(t,e){p(t,e)},autobind:function(){}};function h(t,e){var n=l.hasOwnProperty(e)?l[e]:null;w.hasOwnProperty(e)&&o("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&o("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function d(t,n){if(n){o("function"!==typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),o(!e(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=t.prototype,i=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&f.mixins(t,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var u=n[s],c=r.hasOwnProperty(s);if(h(c,s),f.hasOwnProperty(s))f[s](t,u);else{var d=l.hasOwnProperty(s),p="function"===typeof u,g=p&&!d&&!c&&!1!==n.autobind;if(g)i.push(s,u),r[s]=u;else if(c){var y=l[s];o(d&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",y,s),"DEFINE_MANY_MERGED"===y?r[s]=v(r[s],u):"DEFINE_MANY"===y&&(r[s]=m(r[s],u))}else r[s]=u}}}else;}function p(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var i=n in f;o(!i,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var a=n in t;if(a){var s=c.hasOwnProperty(n)?c[n]:null;return o("DEFINE_MANY_MERGED"===s,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(t[n]=v(t[n],r))}t[n]=r}}}function g(t,e){for(var n in o(t&&e&&"object"===typeof t&&"object"===typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),e)e.hasOwnProperty(n)&&(o(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function v(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return g(i,n),g(i,r),i}}function m(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function y(t,e){var n=e.bind(t);return n}function _(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];t[r]=y(t,i)}}var x={componentDidMount:function(){this.__isMounted=!0}},b={componentWillUnmount:function(){this.__isMounted=!1}},w={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return!!this.__isMounted}},j=function(){};function S(t){var e=s((function(t,r,a){this.__reactAutoBindPairs.length&&_(this),this.props=t,this.context=r,this.refs=i,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;o("object"===typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=s}));for(var r in e.prototype=new j,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],u.forEach(d.bind(null,e)),d(e,x),d(e,t),d(e,b),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),o(e.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)e.prototype[r]||(e.prototype[r]=null);return e}return r(j.prototype,t.prototype,w),S}t.exports=u},lnY3:function(t,e,n){},t33a:function(t,e,n){"use strict";var r={};t.exports=r},"yP6+":function(t,e,n){(function(e,r){t.exports=r(n("q1tI"))})(0,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=546)}([function(t,e,n){var r=n(166),i=n(16),o=r.mix({},r,{assign:r.mix,merge:r.deepMix,cloneDeep:r.clone,isFinite:isFinite,isNaN:isNaN,snapEqual:r.isNumberEqual,remove:r.pull,inArray:r.contains,toAllPadding:function(t){var e=0,n=0,r=0,i=0;return o.isNumber(t)||o.isString(t)?e=n=r=i=t:o.isArray(t)?(e=t[0],r=o.isNil(t[1])?t[0]:t[1],i=o.isNil(t[2])?t[0]:t[2],n=o.isNil(t[3])?r:t[3]):o.isObject(t)&&(e=t.top||0,r=t.right||0,i=t.bottom||0,n=t.left||0),[e,r,i,n]},getClipByRange:function(t){var e=t.tl,n=t.br,r=new i.Rect({attrs:{x:e.x,y:e.y,width:n.x-e.x,height:n.y-e.y}});return r}});o.Array={groupToMap:r.groupToMap,group:r.group,merge:r.merge,values:r.valuesOfKey,getRange:r.getRange,firstValue:r.firstValue,remove:r.pull},t.exports=o},function(t,e,n){var r=n(150),i={};r.merge(i,r,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,(function(e){i.augment(t,e);var o=e[n];o&&i.merge(r,o)})),t[n]=i.merge(r,t[n])}}}),t.exports=i},function(t,e,n){var r=n(39),i=n(4),o=function(t,e){if(t){var n=void 0;if(i(t)){for(var o=0,a=t.length;o<a;o++)if(n=e(t[o],o),!1===n)break}else if(r(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}};t.exports=o},function(t,e,n){var r=n(31),i=n(166),o=i.mix({assign:i.mix,isFinite:isFinite,isNaN:isNaN,Group:r.Group,Event:r.Event},i);t.exports=o},function(t,e,n){var r=n(17),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e,n){var r=n(0),i=n(132),o={version:"3.5.15",renderer:"canvas",trackingInfo:{},animate:!0,widthRatio:{column:.5,rose:.9999999,multiplePie:1/1.3},showSinglePoint:!1,connectNulls:!1,scales:{},registerTheme:function(t,e){i[t]=e},setTheme:function(t){var e={};e=r.isObject(t)?t:-1!==r.indexOf(Object.keys(i),t)?i[t]:i.default,r.deepMix(o,e)}};o.setTheme("default"),t.exports=o},function(t,e){var n=function(t){return null===t||void 0===t};t.exports=n},function(t,e,n){var r=n(1),i=n(331),o=n(133),a=n(76),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={},r.extend(s,o);var u={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};function l(t){for(var e=[],n=0;n<t.length;n++)r.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}r.augment(s,i,{isShape:!0,drawInner:function(t){var e=this,n=e._attrs;e.createPath(t);var i=t.globalAlpha;if(e.hasFill()){var o=n.fillOpacity;r.isNil(o)||1===o?t.fill():(t.globalAlpha=o,t.fill(),t.globalAlpha=i)}if(e.hasStroke()){var a=e._attrs.lineWidth;if(a>0){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&&!a.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var o=n._attrs.clip;return o?(o.invert(r,n.get("canvas")),!!o.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 o=n(65),a=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"],m="_origin";function y(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 _=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=y(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,o=i.get("labelCfg");return o||(o={},i.set("labelCfg",o)),t&&(r=g(t)),o.fields=r,u.isFunction(e)?(n||(n={}),o.callback=e):u.isObject(e)&&(n=e),o.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=y(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,a=!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"),a=!0));for(var d=[],p=0;p<h.length;p++){var v=h[p],m=t._createScale(v);"color"===s&&u.isNil(c.values)&&(m.values.length<=8?c.values=a?i.colors_pie:i.colors:m.values.length<=16?c.values=a?i.colors_pie_16:i.colors_16:c.values=i.colors_24,u.isNil(c.values)&&(c.values=i.colors)),d.push(m)}if("theta"===r.type&&"position"===s&&d.length>1){var y=d[1],_=0,x=Math.max.apply(null,y.values);isFinite(x)||(x=1),y.change({nice:!1,min:_,max:x})}c.scales=d;var b=new o[f](c);e[s]=b}},e._processData=function(){for(var t=this,e=this.get("data"),n=[],r=this._groupData(e),i=0;i<r.length;i++){var o=r[i],a=t._saveOrigin(o);n.push(t._numberic(a))}return n},e._groupData=function(t){var e=this._getGroupScales(),n=e.map((function(t){return t.field}));return u.Array.group(t,n)},e._saveOrigin=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i={};for(var o in r)i[o]=r[o];i[m]=r,e.push(i)}return e},e._numberic=function(t){for(var e=this.getAttr("position"),n=e.scales,r=[],i=0;i<t.length;i++){for(var o=t[i],a=!0,s=0;s<Math.min(2,n.length);s++){var u=n[s];if(u.isCategory){var l=u.field;o[l]=u.translate(o[l]),Number.isNaN(o[l])&&(a=!1)}}a&&r.push(o)}return r},e._getGroupScales=function(){var t=this,e=t.get("groupScales");if(!e){e=[];var n=t.get("attrs");u.each(n,(function(t){if(v.includes(t.type)){var n=t.scales;u.each(n,(function(t){t.isCategory&&-1===u.indexOf(e,t)&&e.push(t)}))}})),t.set("groupScales",e)}return e},e._updateStackRange=function(t,e,n){for(var r=u.Array.merge(n),i=e.min,o=e.max,a=0;a<r.length;a++){var s=r[a];if(u.isArray(s[t])){var l=Math.min.apply(null,s[t]),c=Math.max.apply(null,s[t]);l<i&&(i=l),c>o&&(o=c)}}(i<e.min||o>e.max)&&e.change({min:i,max:o})},e._adjust=function(t){if(t&&t.length){var e=this,n=e.get("adjusts"),r=this.viewTheme||l,i=e.getYScale(),o=e.getXScale(),s=o.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(o.isCategory||o.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 a[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 o=0;o<e.length;o++){var a=e[o],s=o;a=t._mapping(a),n.push(a),t.draw(a,i,r,s)}t.get("labelCfg")&&t._addLabels(u.union.apply(null,n),i.get("children")),t.get("sortable")?t.set("dataArray",n):t._sort(n)},e._sort=function(t){var e=this,n=e.getXScale(),r=n.field;u.each(t,(function(t){t.sort((function(t,e){return n.translate(t[m][r])-n.translate(e[m][r])}))})),e.set("dataArray",t)},e._beforeMapping=function(t){var e=this;if(e.get("sortable")){var n=e.getXScale(),r=n.field;u.each(t,(function(t){t.sort((function(t,e){return n.translate(t[r])-n.translate(e[r])}))}))}e.get("generatePoints")&&(u.each(t,(function(t){e._generatePoints(t)})),u.each(t,(function(e,n){var r=t[n+1];r&&(e[0].nextPoints=r[0].points)})))},e._addLabels=function(t,e){var n=this,r=n.get("type"),i=n.get("viewTheme")||l,o=n.get("coord"),a=c.getLabelsClass(o.type,r),s=n.get("container"),f=u.map(n.get("labelCfg").fields,(function(t){return n._createScale(t)})),h=s.addGroup(a,{_id:this.get("_id"),labelCfg:u.mix({scales:f},n.get("labelCfg")),coord:o,geom:n,geomType:r,yScale:n.getYScale(),viewTheme:i,visible:n.get("visible")});h.showLabels(t,e),n.set("labelContainer",h)},e.getShapeFactory=function(){var t=this.get("shapeFactory");if(!t){var e=this.get("shapeType");t=f.getShapeFactory(e),this.set("shapeFactory",t)}return t},e._generatePoints=function(t){for(var e=this,n=e.getShapeFactory(),r=e.getAttr("shape"),i=0;i<t.length;i++){var o=t[i],a=e.createShapePointsCfg(o),s=r?e._getAttrValues(r,o):null,u=n.getShapePoints(s,a);o.points=u}},e.createShapePointsCfg=function(t){var e,n=this.getXScale(),r=this.getYScale(),i=this._normalizeValues(t[n.field],n);return e=r?this._normalizeValues(t[r.field],r):t.y?t.y:.1,{x:i,y:e,y0:r?r.scale(this.getYMinValue()):void 0}},e.getYMinValue=function(){var t,e=this.getYScale(),n=e.min,r=e.max;return t=n>=0?n:r<=0?r:0,t},e._normalizeValues=function(t,e){var n=[];if(u.isArray(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e._mapping=function(t){for(var e=this,n=e.get("attrs"),r=[],i=0;i<t.length;i++){var o=t[i],a={};for(var s in a[m]=o[m],a.points=o.points,a.nextPoints=o.nextPoints,n)if(n.hasOwnProperty(s)){var l=n[s],c=l.names,f=e._getAttrValues(l,o);if(c.length>1)for(var h=0;h<f.length;h++){var d=f[h],p=c[h];a[p]=u.isArray(d)&&1===d.length?d[0]:d}else a[c[0]]=1===f.length?f[0]:f}r.push(a)}return r},e._getAttrValues=function(t,e){for(var n=t.scales,r=[],i=0;i<n.length;i++){var o=n[i],a=o.field;"identity"===o.type?r.push(o.value):r.push(e[a])}var s=t.mapping.apply(t,r);return s},e.getAttrValue=function(t,e){var n=this.getAttr(t),r=null;if(n){var i=this._getAttrValues(n,e);r=i[0]}return r},e.getDefaultValue=function(t){var e=this.get(t),n=this.getAttr(t);if(n){var r=n.getScale(t);"identity"===r.type&&(e=r.value)}return e},e.draw=function(t,e,n,r){for(var i=this,o=0;o<t.length;o++){var a=t[o];i.drawPoint(a,e,n,r+o)}},e.getCallbackCfg=function(t,e,n){if(!t)return e;var r={},i=t.map((function(t){return n[t]}));return u.each(e,(function(t,e){u.isFunction(t)?r[e]=t.apply(null,i):r[e]=t})),r},e._getShapeId=function(t){var e=this.get("_id"),n=this.get("keyFields");if(n&&n.length>0)u.each(n,(function(n){e+="-"+t[n]}));else{var r,i=this.get("type"),o=this.getXScale(),a=this.getYScale(),s=o.field||"x",l=a.field||"y",c=t[l];r=o.isIdentity?o.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[m])),e.get("generatePoints")&&(n.points=t.points,n.nextPoints=t.nextPoints),e.get("animate")&&(n._id=e._getShapeId(t[m])),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,o=n.name;e?e&&(e.indexOf("hollow")>-1||e.indexOf("liquid")>-1)&&(o="hollow"+u.upperFirst(o)):n.defaultShapeType.indexOf("hollow")>-1&&(o="hollow"+u.upperFirst(o));var a=i.shape[o]||{};t.style=u.mix({},a,t.style)},e.drawPoint=function(t,e,n,r){var i=this,o=t.shape,a=i.getDrawCfg(t);i._applyViewThemeShapeStyle(a,o,n);var s=n.drawShape(o,a,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 o=r.get("canvas");o.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=_},function(t,e,n){var r=n(0),i=n(25),o=r.PathUtil,a={},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=o.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}};a.registerFactory=function(t,e){var n=r.upperFirst(t),i=r.assign({},u,e);return a[n]=i,i.name=t,i},a.registerShape=function(t,e,n){var i=r.upperFirst(t),o=a[i],u=r.assign({},s,n);return o[e]=u,u},a.getShapeFactory=function(t){var e=this;t=t||"point";var n=r.upperFirst(t);return e[n]},t.exports=a},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 o=n(439);n.d(e,"a",(function(){return o["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),o=n.i(r["a"])("start","end","cancel","interrupt"),a=[],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 m(t,e,r){var o,a=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 a)if(_=a[h],_.name===r.name){if(_.state===c)return n.i(i["timeout"])(p);_.state===f?(_.state=d,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete a[h]):+h<e&&(_.state=d,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete a[h])}if(n.i(i["timeout"])((function(){r.state===c&&(r.state=f,r.timer.restart(g,r.delay,r.time),g(s))})),r.state=l,r.on.call("start",t,t.__data__,r.index,r.group),r.state===l){for(r.state=c,o=new Array(y=r.tween.length),h=0,m=-1;h<y;++h)(_=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(o[++m]=_);o.length=m+1}}function g(e){var n=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(v),r.state=h,1),i=-1,a=o.length;while(++i<a)o[i].call(t,n);r.state===h&&(r.on.call("end",t,t.__data__,r.index,r.group),v())}function v(){for(var n in r.state=d,r.timer.stop(),delete a[e],a)return;delete t.__transition}a[e]=r,r.timer=n.i(i["timer"])(s,0,r.time)}e["h"]=function(t,e,n,r,i,u){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};m(t,n,{name:e,index:r,group:i,on:o,tween:a,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:s})}},function(t,e,n){var r=n(17),i=function(t){return r(t,"Function")};t.exports=i},function(t,e,n){var r=n(17),i=function(t){return r(t,"String")};t.exports=i},function(t,e,n){var r=n(31);t.exports=r},function(t,e){var n={}.toString,r=function(t,e){return n.call(t)==="[object "+e+"]"};t.exports=r},function(t,e,n){"use strict";n.d(e,"c",(function(){return R})),e["b"]=D;var r=n(505),i=n(506),o=n(493),a=n(487),s=n(216),u=n(492),l=n(496),c=n(498),f=n(501),h=n(508),d=n(484),p=n(500),g=n(499),v=n(507),m=n(491),y=n(490),_=n(483),x=n(218),b=n(502),w=n(485),j=n(509),S=n(494),M=n(503),E=n(497),P=n(482),C=n(495),k=n(504),A=n(486),T=n(488),O=n(99),I=n(489),R=[null];function D(t,e){this._groups=t,this._parents=e}function L(){return new D([[document.documentElement]],R)}D.prototype=L.prototype={constructor:D,select:r["a"],selectAll:i["a"],filter:o["a"],data:a["a"],enter:s["a"],exit:u["a"],join:l["a"],merge:c["a"],order:f["a"],sort:h["a"],call:d["a"],nodes:p["a"],node:g["a"],size:v["a"],empty:m["a"],each:y["a"],attr:_["a"],style:x["b"],property:b["a"],classed:w["a"],text:j["a"],html:S["a"],raise:M["a"],lower:E["a"],append:P["a"],insert:C["a"],remove:k["a"],clone:A["a"],datum:T["a"],on:O["c"],dispatch:I["a"]},e["a"]=L},function(t,e){t.exports={FONT_FAMILY:'"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"'}},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(36),h=["min","max","median","start","end"],d=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,{xScales:null,yScales:null,el:null})},n.render=function(){},n.clear=function(){var t=this,e=t.get("el");e&&e.remove(),this.set("el",null)},n.destroy=function(){this.clear(),t.prototype.destroy.call(this)},n.changeVisible=function(t){var e=this;e.set("visible",t);var n=e.get("el");n&&(n.set?n.set("visible",t):n.style.display=t?"":"none")},n.parsePoint=function(t,e){var n,r,i=this,o=i.get("xScales"),a=i.get("yScales");if(l.isFunction(e)&&(e=e(o,a)),l.isArray(e)&&l.isString(e[0])&&-1!==e[0].indexOf("%"))return this._parsePercentPoint(t,e);if(l.isArray(e))n=i._getNormalizedValue(e[0],c.getFirstScale(o)),r=i._getNormalizedValue(e[1],c.getFirstScale(a));else for(var s in e){var u=e[s];o[s]&&(n=i._getNormalizedValue(u,o[s])),a[s]&&(r=i._getNormalizedValue(u,a[s],"y"))}return l.isNil(n)||l.isNil(r)||isNaN(n)||isNaN(r)?null:t.convert({x:n,y:r})},n._getNormalizedValue=function(t,e){var n,r;-1!==l.indexOf(h,t)?"start"===t?n=0:"end"===t?n=1:"median"===t?(r=e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2,n=e.scale(r)):(r=e.isCategory?"min"===t?0:e.values.length-1:e[t],n=e.scale(r)):n=e.scale(t);return n},n._parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,r=parseFloat(e[1])/100,i=t.start,o=t.end,a={x:Math.min(i.x,o.x),y:Math.min(i.y,o.y)},s=t.width*n+a.x,u=t.height*r+a.y;return{x:s,y:u}},e}(f);t.exports=d},function(t,e){var n=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(478);n.d(e,"create",(function(){return r["a"]}));var i=n(61);n.d(e,"creator",(function(){return i["a"]}));var o=n(479);n.d(e,"local",(function(){return o["a"]}));var a=n(214);n.d(e,"matcher",(function(){return a["a"]}));var s=n(480);n.d(e,"mouse",(function(){return s["a"]}));var u=n(97);n.d(e,"namespace",(function(){return u["a"]}));var l=n(98);n.d(e,"namespaces",(function(){return l["a"]}));var c=n(62);n.d(e,"clientPoint",(function(){return c["a"]}));var f=n(215);n.d(e,"select",(function(){return f["a"]}));var h=n(481);n.d(e,"selectAll",(function(){return h["a"]}));var d=n(18);n.d(e,"selection",(function(){return d["a"]}));var p=n(100);n.d(e,"selector",(function(){return p["a"]}));var g=n(219);n.d(e,"selectorAll",(function(){return g["a"]}));var v=n(218);n.d(e,"style",(function(){return v["a"]}));var m=n(510);n.d(e,"touch",(function(){return m["a"]}));var y=n(511);n.d(e,"touches",(function(){return y["a"]}));var _=n(102);n.d(e,"window",(function(){return _["a"]}));var x=n(99);n.d(e,"event",(function(){return x["a"]})),n.d(e,"customEvent",(function(){return x["b"]}))},function(t,e,n){var r=n(0),i={splitPoints:function(t){var e=[],n=t.x,i=t.y;return i=r.isArray(i)?i:[i],r.each(i,(function(t,i){var o={x:r.isArray(n)?n[i]:n,y:t};e.push(o)})),e},addFillAttrs:function(t,e){e.color&&(t.fill=e.color),r.isNumber(e.opacity)&&(t.opacity=t.fillOpacity=e.opacity)},addStrokeAttrs:function(t,e){e.color&&(t.stroke=e.color),r.isNumber(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity)}};t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;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}}(),i=n(42),o=u(i),a=n(29),s=u(a);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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 f(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 h=function(t){function e(t,n){l(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.getParentInfo=function(){return{id:r.id,name:r.name}},r.name=n,r}return f(e,t),r(e,[{key:"getChildContext",value:function(){return{addElement:this.context.addElement,updateElement:this.context.updateElement,deleteElement:this.context.deleteElement,createId:this.context.createId,getParentInfo:this.getParentInfo,getViewId:this.context.getViewId}}},{key:"componentWillMount",value:function(){var t=this.context;this.id=t.createId(),t.addElement(this.name,this.id,this.props,t.getParentInfo(),t.getViewId())}},{key:"componentWillReceiveProps",value:function(t){this.context.updateElement(this.name,this.id,t,this.context.getParentInfo(),this.context.getViewId())}},{key:"componentWillUnmount",value:function(){this.context.deleteElement(this.name,this.id)}},{key:"render",value:function(){var t=this.props.children;return t?t.length&&(t=o.default.createElement("div",null,t)):t=null,t}}]),e}(i.Component);function d(t){var e=function(e){function n(e){return l(this,n),c(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return f(n,e),r(n,[{key:"getChildContext",value:function(){return{addElement:this.context.addElement,updateElement:this.context.updateElement,deleteElement:this.context.deleteElement,createId:this.context.createId,getParentInfo:this.getParentInfo,getViewId:this.context.getViewId}}}]),n}(h);return e.contextTypes={addElement:s.default.func,updateElement:s.default.func,deleteElement:s.default.func,createId:s.default.func,getParentInfo:s.default.func,getViewId:s.default.func},e.childContextTypes={addElement:s.default.func,updateElement:s.default.func,deleteElement:s.default.func,createId:s.default.func,getParentInfo:s.default.func,getViewId:s.default.func},e.displayName=t,e}h.contextTypes={addElement:s.default.func,updateElement:s.default.func,deleteElement:s.default.func,createId:s.default.func,getParentInfo:s.default.func,getViewId:s.default.func},h.childContextTypes={addElement:s.default.func,updateElement:s.default.func,deleteElement:s.default.func,createId:s.default.func,getParentInfo:s.default.func,getViewId:s.default.func},h.generateBaseTypedComponent=d,e.default=h},function(t,e,n){var r=n(0),i=n(314);function o(t,e){if(!t.length)return[];for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];0===r?n.push(["M",o.x,o.y]):n.push(["L",o.x,o.y])}return e&&n.push(["Z"]),n}function a(t,e){var n=t.getCenter(),r=Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2));return r}function s(t,e){for(var n=t.length,r=[t[0]],i=1;i<n;i+=2){var o=e.convertPoint({x:t[i],y:t[i+1]});r.push(o.x,o.y)}return r}function u(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,s={x:t[1],y:t[2]},u={x:e[1],y:e[2]},l=[],c=r?"y":"x",f=Math.abs(u[c]-s[c])*(o-i),h=u[c]>=s[c]?1:0,d=f>Math.PI?1:0,p=n.convertPoint(u),g=a(n,p);if(g>=.5)if(f===2*Math.PI){var v={x:(u.x+s.x)/2,y:(u.y+s.y)/2},m=n.convertPoint(v);l.push(["A",g,g,0,d,h,m.x,m.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],o=t[n+1];o&&"a"===o[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}}))}var c={getLinePath:function(t,e){return o(t,e)},getSplinePath:function(t,e,n){var o=[],a=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||(o.push(t.x),o.push(t.y),s=t)})),n=n||[[0,0],[1,1]];var u=i.catmullRom2bezier(o,e,n);return u.unshift(["M",a.x,a.y]),u},getPointRadius:function(t,e){var n=a(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,o,a,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,o=t.isTransposed,a=o?n[n.length-2]===i[1]:n[n.length-1]===i[2],a?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),o=n(39),a=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=o(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,!a(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"]=S,e["a"]=M,e["c"]=E;var r=n(22),i=n(519),o=n(520),a=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),m=n(533),y=n(534),_=n(535),x=n(536),b=n(63),w=n(524),j=0;function S(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function M(t){return n.i(r["selection"])().transition(t)}function E(){return++j}var P=r["selection"].prototype;S.prototype=M.prototype={constructor:S,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:o["a"],style:v["a"],styleTween:m["a"],text:y["a"],textTween:_["a"],remove:h["a"],tween:b["a"],delay:a["a"],duration:s["a"],ease:u["a"],end:w["a"]}},function(t,e,n){var r=n(0),i=r.DomUtil,o=["start","process","end","reset"],a=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(o,(function(e){var o=r.upperFirst(e);t["_on"+o+"Listener"]=i.addEventListener(n,t[e+"Event"],r.wrapBehavior(t,"_"+e))}))},t._clearEvents=function(){var t=this;r.each(o,(function(e){var n="_on"+r.upperFirst(e)+"Listener";t[n]&&t[n].remove()}))},t.destroy=function(){this._clearEvents()},e}();t.exports=a},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"]=a,e["c"]=s,e["a"]=u;var r=n(209);function i(t,e){return function(n){return t+n*e}}function o(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 a(t,e){var o=e-t;return o?i(t,o>180||o<-180?o-360*Math.round(o/360):o):n.i(r["a"])(isNaN(t)?e:t)}function s(t){return 1===(t=+t)?u:function(e,i){return i-e?o(e,i,t):n.i(r["a"])(isNaN(e)?i:e)}}function u(t,e){var o=e-t;return o?i(t,o):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),o=n(6),a=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),a=0;a<t;a++)n[a]=arguments[a];var s=i.apply(void 0,n);return o(s)&&(s=r.apply(e,n)),s}}a(this,t),n&&a(this,{callback:n})}var e=t.prototype;return e._getAttrValue=function(t,e){var n=this.values;if(t.isCategory&&!this.linear){var r=t.translate(e);return n[r%n.length]}var i=t.scale(e);return this.getLinearValue(i)},e.getLinearValue=function(t){var e=this.values,n=e.length-1,r=Math.floor(n*t),i=n*t-r,o=e[r],a=r===n?o:e[r+1],s=o+(a-o)*i;return s},e.callback=function(t){var e=this,n=e.scales[0],r=null;return r="identity"===n.type?n.value:e._getAttrValue(n,t),r},e.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i++)r.push(e[i]);return r},e.getFields=function(){var t=this.scales,e=[];return s(t,(function(t){e.push(t.field)})),e},e.getScale=function(t){var e=this.scales,n=this.names,r=n.indexOf(t);return e[r]},e.mapping=function(){for(var t=this.scales,e=this.callback,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r;if(e){for(var a=0,s=r.length;a<s;a++)r[a]=this._toOriginParam(r[a],t[a]);o=e.apply(this,r)}return o=[].concat(o),o},e._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(i(t)){n=[];for(var r=0,o=t.length;r<o;r++)n.push(u(e,t[r]))}else n=u(e,t);return n},t}();t.exports=l},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(36),c=n(3),f=n(108),h=n(110),d=n(19),p=d.FONT_FAMILY,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 c.mix({},e,{_id:null,zIndex:4,ticks:null,line:null,tickLine:null,subTickCount:0,subTickLine:null,grid:null,label:{offset:0,offsetX:0,offsetY:0,textStyle:{},autoRotate:!0,autoHide:!1,formatter:null},labelItems:[],title:{autoRotate:!0,textStyle:{}},autoPaint:!0})},n.beforeRender=function(){var t=this,e=t.get("title"),n=t.get("label"),r=t.get("grid");e&&t.set("title",c.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:p,textAlign:"center"},offset:48},e)),n&&t.set("label",c.deepMix({autoRotate:!0,autoHide:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:p},offset:10},n)),r&&t.set("grid",c.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},r))},n.render=function(){var t=this;t.beforeRender();var e=t.get("label");e&&t.renderLabels(),t.get("autoPaint")&&t.paint(),c.isNil(t.get("title"))||t.renderTitle(),t.get("group").sort()},n.renderLabels=function(){var t=this,e=t.get("group"),n=t.get("label"),r=new h({name:"axis-label"});t.set("labelRenderer",r),r.set("labelCfg",n);var i=["formatter","htmlTemplate","labelLine","textStyle","useHtml"];c.each(i,(function(t){n[t]&&r.set(t,n[t])})),r.set("coord",t.get("coord")),r.set("group",e.addGroup()),r.set("canvas",t.get("canvas"))},n._parseTicks=function(t){t=t||[];for(var e=t.length,n=0;n<e;n++){var r=t[n];c.isObject(r)||(t[n]=this.parseTick(r,n,e))}return this.set("ticks",t),t},n._addTickItem=function(t,e,n,r){void 0===r&&(r="");var i=this.get("tickItems"),o=this.get("subTickItems"),a=this.getTickEnd(e,n,t),s={x1:e.x,y1:e.y,x2:a.x,y2:a.y};i||(i=[]),o||(o=[]),"sub"===r?o.push(s):i.push(s),this.set("tickItems",i),this.set("subTickItems",o)},n._renderLine=function(){var t,e=this,n=e.get("line");if(n){t=e.getLinePath(),n=c.mix({path:t},n);var r=e.get("group"),i=r.addShape("path",{attrs:n});i.name="axis-line",e.get("appendInfo")&&i.setSilent("appendInfo",e.get("appendInfo")),e.set("lineShape",i)}},n._processCatTicks=function(){var t=this,e=t.get("label"),n=t.get("tickLine"),r=t.get("ticks");r=t._parseTicks(r);for(var i=t._getNormalizedTicks(r),o=0;o<i.length;o+=3){var a=t.getTickPoint(i[o]),s=t.getTickPoint(i[o+1]),u=t.getTickPoint(i[o+2]),l=Math.floor(o/3),c=r[l];n&&(0===l&&t._addTickItem(l,s,n.length),t._addTickItem(l,u,n.length)),e&&t.addLabel(c,a,l)}},n._getNormalizedTicks=function(t){var e=0;t.length>1&&(e=(t[1].value-t[0].value)/2);for(var n=[],r=0;r<t.length;r++){var i=t[r],o=i.value,a=i.value-e,s=i.value+e;n.push(o,a,s)}var u=c.arrayUtil.getRange(n);return n.map((function(t){var e=(t-u.min)/(u.max-u.min);return e}))},n.addLabel=function(t,e,n){var r,i=this,o=i.get("labelItems"),a=i.get("labelRenderer"),s=c.deepMix({},i.get("label"));if(a){var u=i.get("_labelOffset");c.isNil(i.get("label").offset)||(u=i.get("label").offset);var l=i.getSideVector(u,e,n);e={x:e.x+l[0]+s.offsetX,y:e.y+l[1]+s.offsetY},s.text=t.text,s.x=e.x,s.y=e.y,s.point=e,s.textAlign=i.getTextAnchor(l),e.rotate&&(s.rotate=e.rotate),o.push(s)}return r},n._processTicks=function(){var t=this,e=t.get("label"),n=t.get("subTickCount"),r=t.get("tickLine"),i=t.get("ticks");if(i=t._parseTicks(i),c.each(i,(function(n,i){var o=t.getTickPoint(n.value,i);r&&t._addTickItem(i,o,r.length),e&&t.addLabel(n,o,i)})),n){var o=t.get("subTickLine");c.each(i,(function(e,a){if(a>0){var s=e.value-i[a-1].value;s/=t.get("subTickCount")+1;for(var u=1;u<=n;u++){var l={text:"",value:a?i[a-1].value+u*s:u*s},c=t.getTickPoint(l.value),f=void 0;f=o&&o.length?o.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 o=n.get("group"),a=o.addShape("path",{attrs:r});a.name="axis-ticks",a._id=n.get("_id")+"-ticks",a.set("coord",n.get("coord")),n.get("appendInfo")&&a.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 o=this.get("label");o&&o.autoRotate&&t.autoRotateLabels(),o&&o.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;n<r&&(n=r)})),n},n.getMaxLabelHeight=function(t){var e=t.getLabels(),n=0;return c.each(e,(function(t){var e=t.getBBox(),r=e.height;n<r&&(n=r)})),n},n.destroy=function(){var e=this;if(!e.destroyed){var n=e.get("gridGroup");n&&n.remove();var r=this.get("labelRenderer");r&&r.destroy();var i=e.get("group");i.destroy(),t.prototype.destroy.call(this)}},n.clear=function(){var t=this,e=t.get("group");if(!e.get("destroyed")&&e.get("children").length){var n=t.get("gridGroup");n&&n.clear();var r=this.get("labelRenderer");r&&r.clear();var i=t.get("group");i.clear()}},n.autoRotateLabels=function(){},n.autoHideLabels=function(){},n.renderTitle=function(){},n.getLinePath=function(){},n.getTickPoint=function(){},n.getTickEnd=function(){},n.getSideVector=function(){},e}(l);t.exports=g},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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=function(t){u(e,t);r(e);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getDefaultCfg=function(){return{_id:null,canvas:null,container:null,group:null,capture:!1,coord:null,offset:[0,0],plotRange:null,position:[0,0],visible:!0,zIndex:1}},n._init=function(){},n.clear=function(){},n.destroy=function(){t.prototype.destroy.call(this)},n.beforeRender=function(){},n.render=function(){},n.afterRender=function(){},n.beforeDraw=function(){},n.draw=function(){},n.afterDraw=function(){},n.show=function(){},n.hide=function(){},n.setOffset=function(){},n.setPosition=function(){},n.setVisible=function(){},n.setZIndex=function(){},e}(l);t.exports=c},function(t,e,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,a={};t.exports={parseRadius:function(t){var e=0,n=0,i=0,o=0;return r.isArray(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}},parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if(e=e.match(o),e[0].length>1){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=a[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,a[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),o=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=o},function(t,e,n){"use strict";e["b"]=a,e["c"]=s,e["a"]=u;var r=n(202);function i(t,e){return function(n){return t+n*e}}function o(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 a(t,e){var o=e-t;return o?i(t,o>180||o<-180?o-360*Math.round(o/360):o):n.i(r["a"])(isNaN(t)?e:t)}function s(t){return 1===(t=+t)?u:function(e,i){return i-e?o(e,i,t):n.i(r["a"])(isNaN(e)?i:e)}}function u(t,e){var o=e-t;return o?i(t,o):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;n<e.length;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)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}var a=n(56),s=n(10),u=a.mat3,l=a.vec3,c=function(){function t(e){r(this,t);var n=this.getDefaultCfg();s(this,n,e),this.init()}return o(t,[{key:"getDefaultCfg",value:function(){return{isTransposed:!1,matrix:[1,0,0,0,1,0,0,0,1]}}}]),o(t,[{key:"init",value:function(){var t=this.start,e=this.end,n={x:(t.x+e.x)/2,y:(t.y+e.y)/2};this.center=n,this.width=Math.abs(e.x-t.x),this.height=Math.abs(e.y-t.y)}},{key:"_swapDim",value:function(t){var e=this[t];if(e){var n=e.start;e.start=e.end,e.end=n}}},{key:"getCenter",value:function(){return this.center}},{key:"getWidth",value:function(){return this.width}},{key:"getHeight",value:function(){return this.height}},{key:"convertDim",value:function(t,e){var n=this[e],r=n.start,i=n.end;return r+t*(i-r)}},{key:"invertDim",value:function(t,e){var n=this[e],r=n.start,i=n.end;return(t-r)/(i-r)}},{key:"convertPoint",value:function(t){return t}},{key:"invertPoint",value:function(t){return t}},{key:"applyMatrix",value:function(t,e){var n=arguments.length>2&&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),o=[t,e,n];return l.transformMat3(o,o,i),o}},{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),o=n(279),a=n(16),s=a.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 m(t,e){return i.isEqualWith(t,e,(function(t,e){return t===e}))}var y=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"),o=d(r,p(this.get("plotRange"))),a=h(n,o),s=[0-a.minY,a.maxX-this.get("width"),a.maxY-this.get("height"),0-a.minX],u=i.toAllPadding(t),l=0;l<u.length;l++)if(u[l]===g){var c=Math.max(0,s[l]);u[l]=c+this.get("autoPaddingAppend")}return u},n._initCanvas=function(){var t=this.get("container"),e=this.get("id");!t&&e&&(t=e,this.set("container",e));var n=this.get("width"),r=this.get("height");if(i.isString(t)){if(t=document.getElementById(t),!t)throw new Error("Please specify the container for the chart!");this.set("container",t)}var o=u.createDom('<div style="position:relative;"></div>');t.appendChild(o),this.set("wrapperEl",o),this.get("forceFit")&&(n=u.getWidth(t,n),this.set("width",n));var a=this.get("renderer"),l=new s({containerDOM:o,width:n,height:r,pixelRatio:"svg"===a?1:this.get("pixelRatio"),renderer:a});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(),o=[];i.each(r,(function(t){var e=t.get("view"),r=t.getAttrsForLegend();i.each(r,(function(r){var i=r.type,a=r.getScale(i);if(a.field&&"identity"!==a.type&&!v(o,a)){o.push(a);var s=e.getFilteredOutValues(a.field);n.addLegend(a,r,t,s)}}))}));var a=this.getYScales();0===o.length&&a.length>1&&n.addMixedLegend(a,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");m(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 o(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");m(r.get("padding"),n)||(r.set("padding",n),r.repaint())}var o=e.get("middlePlot");if(e.get("limitInPlot")&&!o.attr("clip")){var a=i.getClipByRange(e.get("plotRange"));o.attr("clip",a)}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 o=r.cloneNode(!0),a=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",a);s.replaceChild(o,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"),o=e.get("canvas");o.get("timeline").stopAllAnimations(),setTimeout((function(){var t=e.toDataURL();if(window.Blob&&window.URL&&"svg"!==r){var o=t.split(","),a=o[0].match(/:(.*?);/)[1],s=atob(o[1]),u=s.length,l=new Uint8Array(u);while(u--)l[u]=s.charCodeAt(u);var c=new Blob([l],{type:a});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"),o=[];i.each(n,(function(n){var r=e.findPoint(t,n);if(r){var i=e.getTipItems(r);o=o.concat(i)}})),r=r.concat(o)}))})),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}(o);t.exports=y},function(t,e,n){var r=n(154),i=n(16),o=n(119),a=n(44),s=n(5),u=n(9),l=n(0),c={version:s.version,Animate:o,Chart:a,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),o=i.assign,a=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();o(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;i<r.length;i++){var o=r[i],a=o.region,s=t.view({start:a.start,end:a.end,padding:this.padding});s.source(o.data),this.beforeProcessView(s,o),n&&n(s,o),this.afterProcessView(s,o),o.view=s}this.facets=r},t.beforeProcessView=function(){},t.afterProcessView=function(t,e){this.autoSetAxis&&this.processAxis(t,e)},t.processAxis=function(t,e){var n=t.get("options"),r=t.get("geoms");if((!n.coord.type||"rect"===n.coord.type)&&r.length){var i=r[0].get("attrOptions").position.field,o=s(i)?i:i.split("*").map((function(t){return t.trim()})),u=o[0],l=o[1];a(n.axes)&&(n.axes={});var c=n.axes;!1!==c&&(u&&!1!==c[u]&&(c[u]=c[u]||{},this.setXAxis(u,c,e)),l&&!1!==c[l]&&(c[l]=c[l]||{},this.setYAxis(l,c,e)))}},t.setXAxis=function(){},t.setYAxis=function(){},t.renderTitle=function(t,e){this.drawColTitle(t,e)},t.getScaleText=function(t,e,n){var r;if(t){var i=n.get("scales"),o=i[t];o||(o=n.createScale(t)),r=o.getText(e)}else r=e;return r},t.drawColTitle=function(t,e){var n=this.getScaleText(e.colField,e.colValue,t),r=o({position:["50%","0%"],content:n},this.colTitle);t.guide().text(r)},t.drawRowTitle=function(t,e){var n=this.getScaleText(e.rowField,e.rowValue,t),r=o({position:["100%","50%"],content:n},u(this.rowTitle));t.guide().text(r)},t.getFilter=function(t){var e=function(e){var n=!0;return t.forEach((function(t){var r=t.field,i=t.value,o=!0;!a(i)&&r&&(o=e[r]===i),n=n&&o})),n};return e},t.getFieldValues=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[t];a(s)||r[s]||(n.push(s),r[s]=!0)}return n},t.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r},s={x:a.x+i,y:a.y+o};return{start:a,end:s}},t.generateFacets=function(){return[]},t._bindEvent=function(){var t=this.chart;t.on("afterchangedata",l(this,"onDataChange")),t.on("beforeclear",l(this,"onClear")),t.on("beforedestroy",l(this,"destroy")),t.on("beforepaint",l(this,"onPaint")),t.on("setdata",l(this,"onDataChange"))},t._clearEvent=function(){var t=this.chart;t&&(t.off("afterchangedata",c(this,"onDataChange")),t.off("beforeclear",c(this,"onClear")),t.off("beforedestroy",c(this,"destroy")),t.off("beforepaint",c(this,"onPaint")),t.off("setdata",c(this,"onDataChange")))},t._clearFacets=function(){var t=this.facets,e=this.chart;if(t)for(var n=0;n<t.length;n++){var r=t[n];e.removeView(r.view)}this.facets=null},t.onClear=function(){this.onRemove()},t.onPaint=function(){if(this.showTitle)for(var t=this.facets,e=0;e<t.length;e++){var n=t[e],r=n.view;this.renderTitle(r,n)}},t.onDataChange=function(){this._clearFacets(),this.initViews()},t.onRemove=function(){this._clearFacets(),this._clearEvent(),this.group&&this.group.remove(),this.chart=null,this.facets=null,this.group=null},t.destroy=function(){this.onRemove(),this.destroyed=!0},e}();t.exports=f},function(t,e,n){var r=n(1);function i(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function o(t,e,n,r){var i,o;return r?t<e?(i=e-t,o=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,o=t-n):(i=t-e,o=n-t),i>o?n:e}function a(t,e,n,i){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=r.mod(e,2*Math.PI),n=r.mod(n,2*Math.PI)+a,t=r.mod(t,2*Math.PI),i?e>=n?t>n&&t<e?t:o(t,n,e,!0):t<e||t>n?t:o(t,e,n):e<=n?e<t&&t<n?t:o(t,e,n,!0):t>e||t<n?t:o(t,n,e)}function s(t,e,n,i,o,s,u,l,c){var f=[u,l],h=[t,e],d=[1,0],p=r.vec2.subtract([],f,h),g=r.vec2.angleTo(d,p);g=a(g,i,o,s);var v=[n*Math.cos(g)+t,n*Math.sin(g)+e];c&&(c.x=v[0],c.y=v[1]);var m=r.vec2.distance(v,f);return m}function u(t,e,n,o,s,u){var l=0,c=Math.PI/2,f=Math.PI,h=3*Math.PI/2,d=[],p=a(l,o,s,u);p===l&&d.push(i(t,e,n,l)),p=a(c,o,s,u),p===c&&d.push(i(t,e,n,c)),p=a(f,o,s,u),p===f&&d.push(i(t,e,n,f)),p=a(h,o,s,u),p===h&&d.push(i(t,e,n,h)),d.push(i(t,e,n,o)),d.push(i(t,e,n,s));var g=1/0,v=-1/0,m=1/0,y=-1/0;return r.each(d,(function(t){g>t.x&&(g=t.x),v<t.x&&(v=t.x),m>t.y&&(m=t.y),y<t.y&&(y=t.y)})),{minX:g,minY:m,maxX:v,maxY:y}}t.exports={nearAngle:a,projectPoint:function(t,e,n,r,i,o,a,u){var l={};return s(t,e,n,r,i,o,a,u,l),l},pointDistance:s,box:u}},function(t,e,n){var r=n(1).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,o,a){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var l=[o-t,a-e];return Math.abs(r.dot(l,u))},box:function(t,e,n,r,i){var o=i/2,a=Math.min(t,n),s=Math.max(t,n),u=Math.min(e,r),l=Math.max(e,r);return{minX:a-o,minY:u-o,maxX:s+o,maxY:l+o}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){var r=n(37),i=n(50),o=Math.PI,a=Math.sin,s=Math.cos,u=Math.atan2,l=10,c=o/3;function f(t,e,n,r,i,f,h){var d,p,g,v,m,y,_;if(!e.fill){var x=e.arrowLength||l,b=e.arrowAngle?e.arrowAngle*o/180:c;_=u(r-f,n-i),m=Math.abs(e.lineWidth*s(_))/2,y=Math.abs(e.lineWidth*a(_))/2,h&&(m=-m,y=-y),d=i+x*s(_+b/2),p=f+x*a(_+b/2),g=i+x*s(_-b/2),v=f+x*a(_-b/2),t.beginPath(),t.moveTo(d-m,p-y),t.lineTo(i-m,f-y),t.lineTo(g-m,v-y),t.moveTo(i-m,f-y),t.lineTo(i+m,f+y),t.moveTo(i,f),t.stroke()}}function h(t){var e,n=[],o=r.parsePath(t.path);if(!Array.isArray(o)||0===o.length||"M"!==o[0][0]&&"m"!==o[0][0])return!1;for(var a=o.length,s=0;s<o.length;s++){var u=o[s];e=new i(u,e,s===a-1),n.push(e)}return n}function d(t,e,n,r,i,o,a){var s=a?e.startArrow:e.endArrow,u=s.d,l=0,c=i-n,f=o-r,d=Math.atan(c/f);0===f&&c<0?l=Math.PI:c>0&&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&&(a?(i+=Math.sin(Math.abs(d))*u,o=o+Math.cos(Math.abs(d))*u-.5*t.lineWidth):(i-=Math.sin(Math.abs(d))*u,o=o-Math.cos(Math.abs(d))*u+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(i,o),t.rotate(l);for(var g=0;g<p.length;g++)p[g].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}t.exports={addStartArrow:function(t,e,n,r,i,o){"object"===typeof e.startArrow?d(t,e,n,r,i,o,!0):e.startArrow&&f(t,e,n,r,i,o,!0)},addEndArrow:function(t,e,n,r,i,o){"object"===typeof e.endArrow?d(t,e,n,r,i,o,!1):e.endArrow&&f(t,e,n,r,i,o,!1)}}},function(t,e,n){var r=n(1),i=n(76),o=n(75),a=n(144),s=n(143),u=r.vec3,l=r.mat3,c=["m","l","c","a","q","h","v","t","s","z"];function f(t,e,n){return{x:n.x+t,y:n.y+e}}function h(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function d(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function p(t,e){return(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e))}function g(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))}function v(t,e,n,i,o,a,s){var u=r.mod(r.toRadian(s),2*Math.PI),l=t.x,c=t.y,f=e.x,h=e.y,d=Math.cos(u)*(l-f)/2+Math.sin(u)*(c-h)/2,v=-1*Math.sin(u)*(l-f)/2+Math.cos(u)*(c-h)/2,m=d*d/(o*o)+v*v/(a*a);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));var y=o*o*(v*v)+a*a*(d*d),_=Math.sqrt((o*o*(a*a)-y)/y);n===i&&(_*=-1),isNaN(_)&&(_=0);var x=_*o*v/a,b=_*-a*d/o,w=(l+f)/2+Math.cos(u)*x-Math.sin(u)*b,j=(c+h)/2+Math.sin(u)*x+Math.cos(u)*b,S=g([1,0],[(d-x)/o,(v-b)/a]),M=[(d-x)/o,(v-b)/a],E=[(-1*d-x)/o,(-1*v-b)/a],P=g(M,E);return p(M,E)<=-1&&(P=Math.PI),p(M,E)>=1&&(P=0),0===i&&P>0&&(P-=2*Math.PI),1===i&&P<0&&(P+=2*Math.PI),[t,w,j,o,a,S,P,u,i]}var m=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};r.augment(m,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i,o,a,s,u=c.indexOf(n)>=0,l=u?n.toUpperCase():n,d=t,p=e.endPoint,g=d[1],m=d[2];switch(l){default:break;case"M":s=u?f(g,m,p):{x:g,y:m},this.command="M",this.params=[p,s],this.subStart=s,this.endPoint=s;break;case"L":s=u?f(g,m,p):{x:g,y:m},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,m,p),o=f(d[3],d[4],p)):(i={x:g,y:m},o={x:d[3],y:d[4]}),this.command="Q",this.params=[p,i,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-i.x,o.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"T":o=u?f(g,m,p):{x:g,y:m},"Q"===e.command?(i=h(e.params[1],p),this.command="Q",this.params=[p,i,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-i.x,o.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="TL",this.params=[p,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-p.x,o.y-p.y]},this.startTangent=function(){return[p.x-o.x,p.y-o.y]});break;case"C":u?(i=f(g,m,p),o=f(d[3],d[4],p),a=f(d[5],d[6],p)):(i={x:g,y:m},o={x:d[3],y:d[4]},a={x:d[5],y:d[6]}),this.command="C",this.params=[p,i,o,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-o.x,a.y-o.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"S":u?(o=f(g,m,p),a=f(d[3],d[4],p)):(o={x:g,y:m},a={x:d[3],y:d[4]}),"C"===e.command?(i=h(e.params[2],p),this.command="C",this.params=[p,i,o,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-o.x,a.y-o.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="SQ",this.params=[p,o,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-o.x,a.y-o.y]},this.startTangent=function(){return[p.x-o.x,p.y-o.y]});break;case"A":var y=g,_=m,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 j=v(p,s,b,w,y,_,x);this.params=j;var S=e.subStart;this.subStart=S,this.endPoint=s;var M=j[5]%(2*Math.PI);r.isNumberEqual(M,2*Math.PI)&&(M=0);var E=j[6]%(2*Math.PI);r.isNumberEqual(E,2*Math.PI)&&(E=0);var P=.001;this.startTangent=function(){0===w&&(P*=-1);var t=j[3]*Math.cos(M-P)+j[1],e=j[4]*Math.sin(M-P)+j[2];return[t-S.x,e-S.y]},this.endTangent=function(){var t=j[6];t-2*Math.PI<1e-4&&(t=0);var e=j[3]*Math.cos(M+t+P)+j[1],n=j[4]*Math.sin(M+t-P)+j[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,o=r.command,a=r.params,s=r.box;if(s&&!i.box(s.minX,s.maxX,s.minY,s.maxY,t,e))return!1;switch(o){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(a[0].x,a[0].y,a[1].x,a[1].y,n,t,e);case"SQ":case"Q":return i.quadraticline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,n,t,e);case"C":return i.cubicline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y,n,t,e);case"A":var c=a,f=c[1],h=c[2],d=c[3],p=c[4],g=c[5],v=c[6],m=c[7],y=c[8],_=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,-m),l.scale(w,w,[1/x,1/b]),u.transformMat3(c,c,w),i.arcline(0,0,_,g,g+v,1-y,n,c[0],c[1])}return!1},draw:function(t){var e,n,r,i=this.command,o=this.params;switch(i){default:break;case"M":t.moveTo(o[1].x,o[1].y);break;case"TL":case"L":t.lineTo(o[1].x,o[1].y);break;case"SQ":case"Q":e=o[1],n=o[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=o[1],n=o[2],r=o[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var a=o,s=a[1],u=a[2],l=s,c=u,f=a[3],h=a[4],d=a[5],p=a[6],g=a[7],v=a[8],m=f>h?f:h,y=f>h?1:f/h,_=f>h?h/f:1;t.translate(l,c),t.rotate(g),t.scale(y,_),t.arc(0,0,m,d,d+p,1-v),t.scale(1/y,1/_),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=a.extrema(l[0].x,l[1].x,l[2].x),r=0,i=n.length;r<i;r++)n[r]=a.at(l[0].x,l[1].x,l[2].x,n[r]);for(n.push(l[0].x,l[2].x),e=a.extrema(l[0].y,l[1].y,l[2].y),r=0,i=e.length;r<i;r++)e[r]=a.at(l[0].y,l[1].y,l[2].y,e);e.push(l[0].y,l[2].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"C":for(n=o.extrema(l[0].x,l[1].x,l[2].x,l[3].x),r=0,i=n.length;r<i;r++)n[r]=o.at(l[0].x,l[1].x,l[2].x,l[3].x,n[r]);for(e=o.extrema(l[0].y,l[1].y,l[2].y,l[3].y),r=0,i=e.length;r<i;r++)e[r]=o.at(l[0].y,l[1].y,l[2].y,l[3].y,e[r]);n.push(l[0].x,l[3].x),e.push(l[0].y,l[3].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"A":var c=l,f=c[1],h=c[2],d=c[3],p=c[4],g=c[5],v=c[6],m=c[7],y=c[8],_=g,x=g+v,b=s.xExtrema(m,d,p),w=1/0,j=-1/0,S=[_,x];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var M=b+r;1===y?_<M&&M<x&&S.push(M):x<M&&M<_&&S.push(M)}for(r=0,i=S.length;r<i;r++){var E=s.xAt(m,d,p,f,S[r]);E<w&&(w=E),E>j&&(j=E)}var P=s.yExtrema(m,d,p),C=1/0,k=-1/0,A=[_,x];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var T=P+r;1===y?_<T&&T<x&&A.push(T):x<T&&T<_&&A.push(T)}for(r=0,i=A.length;r<i;r++){var O=s.yAt(m,d,p,h,A[r]);O<C&&(C=O),O>k&&(k=O)}this.box={minX:w-u,maxX:j+u,minY:C-u,maxY:k+u};break}}}),t.exports=m},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),o=n(2),a=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<r)&&(t.max=r)}else t.min=t.translate(t.min),t.max=t.translate(t.max),t.initTicks()},n.calculateTicks=function(){var t=this.min,e=this.max,n=this.minLimit,r=this.maxLimit,i=this.tickCount,o=this.tickInterval,a=this.minTickInterval,u=this.snapArray;if(1===i)throw new Error("linear scale'tickCount should not be 1");if(e<t)throw new Error("max: "+e+" should not be less than min: "+t);var l=s({min:t,max:e,minLimit:n,maxLimit:r,minCount:i,maxCount:i,interval:o,minTickInterval:a,snapArray:u});return l.ticks},n.initTicks=function(){var t=this,e=t.calculateTicks();if(t.nice)t.ticks=e,t.min=e[0],t.max=e[e.length-1];else{var n=[];o(e,(function(e){e>=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),o=this.rangeMin(),a=this.rangeMax();return o+r*(a-o)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},e}(a);a.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,o=function(t,e){return!!r(t)&&i.call(t,e)>-1};t.exports=o},function(t,e){var n=function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e};t.exports=n},function(t,e){var n=1e-5;t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;return Math.abs(t-e)<r}},function(t,e,n){t.exports={mat3:n(85),vec2:n(174),vec3:n(175),transform:n(173)}},function(t,e,n){var r=n(21);function i(t){return r(t)?Array.prototype.slice.call(t):[]}t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var 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},i=n(45);function o(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function a(t){return i.Util.isArray(t)?t.length:i.Util.isObject(t)?Object.keys(t).length:0}e.default=i.Util.mix({},i.Util,{shallowEqual:function(t,e){if(o(t,e))return!0;if("object"!==("undefined"===typeof t?"undefined":r(t))||null===t||"object"!==("undefined"===typeof e?"undefined":r(e))||null===e)return!1;if(i.Util.isArray(t)!==i.Util.isArray(e))return!1;if(a(t)!==a(e))return!1;var n=!0;return i.Util.each(t,(function(t,r){return!!o(t,e[r])||(n=!1,n)})),n},without:function(t){var e=arguments.length>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:a})},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 o(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 a(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?a:o)(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"]=a;var r=n(13);function i(t,e){var i,o;return function(){var a=n.i(r["e"])(this,t),s=a.tween;if(s!==i){o=i=s;for(var u=0,l=o.length;u<l;++u)if(o[u].name===e){o=o.slice(),o.splice(u,1);break}}a.tween=o}}function o(t,e,i){var o,a;if("function"!==typeof i)throw new Error;return function(){var s=n.i(r["e"])(this,t),u=s.tween;if(u!==o){a=(o=u).slice();for(var l={name:e,value:i},c=0,f=a.length;c<f;++c)if(a[c].name===e){a[c]=l;break}c===f&&a.push(l)}s.tween=a}}function a(t,e,i){var o=t._id;return t.each((function(){var t=n.i(r["e"])(this,o);(t.value||(t.value={}))[e]=i.apply(this,arguments)})),function(t){return n.i(r["f"])(t,o).value[e]}}e["a"]=function(t,e){var a=this._id;if(t+="",arguments.length<2){for(var s,u=n.i(r["f"])(this.node(),a).tween,l=0,c=u.length;l<c;++l)if((s=u[l]).name===t)return s.value;return null}return this.each((null==e?i:o)(a,t,e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setTheme=e.track=e.Interactions=e.PathUtil=e.Animate=e.Shape=e.Util=e.G2=e.Facet=e.Label=e.Guide=e.View=e.Geom=e.Tooltip=e.Legend=e.Axis=e.Coord=e.Chart=void 0;var r=n(422);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return b(r).default}});var i=n(424);Object.defineProperty(e,"Coord",{enumerable:!0,get:function(){return b(i).default}});var o=n(420);Object.defineProperty(e,"Axis",{enumerable:!0,get:function(){return b(o).default}});var a=n(430);Object.defineProperty(e,"Legend",{enumerable:!0,get:function(){return b(a).default}});var s=n(431);Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return b(s).default}});var u=n(427);Object.defineProperty(e,"Geom",{enumerable:!0,get:function(){return b(u).default}});var l=n(432);Object.defineProperty(e,"View",{enumerable:!0,get:function(){return b(l).default}});var c=n(428);Object.defineProperty(e,"Guide",{enumerable:!0,get:function(){return b(c).default}});var f=n(429);Object.defineProperty(e,"Label",{enumerable:!0,get:function(){return b(f).default}});var h=n(426);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return b(h).default}});var d=n(45),p=b(d),g=n(322),v=b(g),m=n(58),y=b(m),_=n(438),x=b(_);function b(t){return t&&t.__esModule?t:{default:t}}e.G2=p.default,e.Util=y.default,e.Shape=d.Shape,e.Animate=d.Animate,e.PathUtil=d.PathUtil,e.Interactions=v.default;var w=e.track=function(){},j=e.setTheme=function(t){var e=t;"string"===typeof t&&x.default[t]&&(e=x.default[t]),p.default.Global.setTheme(e)},S={G2:p.default,Util:y.default,Shape:d.Shape,Animate:d.Animate,PathUtil:d.PathUtil,track:w,setTheme:j,Interactions:v.default};e.default=S},function(t,e,n){t.exports={Position:n(235),Color:n(233),Shape:n(236),Size:n(237),Opacity:n(234),ColorUtil:n(107)}},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(105),c=n(3),f=function(t){u(n,t);r(n);var e=n.prototype;function n(e){var n;n=t.call(this)||this;var r=o(n),i={visible:!0},a=r.getDefaultCfg();return r._attrs=i,c.deepMix(i,a,e),n}return e.getDefaultCfg=function(){return{}},e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e.changeVisible=function(){},e.destroy=function(){var t=this;t._attrs={},t.removeAllListeners(),t.destroyed=!0},n}(l);t.exports=f},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(261),h=n(19),d=h.FONT_FAMILY,p=8,g=l.Event,v=l.Group,m=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:"continuous-legend",items:null,layout:"vertical",width:20,height:156,textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",stroke:"#fff",lineWidth:5,fontFamily:d},hoverTextStyle:{fill:"rgba(0,0,0,0.25)"},slidable:!0,triggerAttr:{fill:"#fff",shadowBlur:10,shadowColor:"rgba(0,0,0,0.65)",radius:2},_range:[0,100],middleBackgroundStyle:{fill:"#D9D9D9"},textOffset:4,lineStyle:{lineWidth:1,stroke:"#fff"},pointerStyle:{fill:"rgb(230, 230, 230)"}})},n._calStartPoint=function(){var t={x:10,y:this.get("titleGap")-p},e=this.get("titleShape");if(e){var n=e.getBBox();t.y+=n.height}return t},n.beforeRender=function(){var e=this.get("items");l.isArray(e)&&!l.isEmpty(e)&&(t.prototype.beforeRender.call(this),this.set("firstItem",e[0]),this.set("lastItem",e[e.length-1]))},n._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},n.render=function(){t.prototype.render.call(this),this.get("slidable")?this._renderSlider():this._renderUnslidable()},n._renderSlider=function(){var t=new v,e=new v,n=new v,r=this._calStartPoint(),i=this.get("group"),o=i.addGroup(f,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});o.translate(r.x,r.y),this.set("slider",o);var a=this._renderSliderShape();a.attr("clip",o.get("middleHandleElement")),this._renderTrigger()},n._addMiddleBar=function(t,e,n){return t.addShape(e,{attrs:l.mix({},n,this.get("middleBackgroundStyle"))}),t.addShape(e,{attrs:n})},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),r=this.get("textStyle"),i=this.get("triggerAttr"),o=l.mix({},i),a=l.mix({},i),s=l.mix({text:this._formatItemValue(t.value)+""},r),u=l.mix({text:this._formatItemValue(e.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",o,s),this._addVerticalTrigger("max",a,u)):(this._addHorizontalTrigger("min",o,s),this._addHorizontalTrigger("max",a,u))},n._addVerticalTrigger=function(t,e,n){var r=this.get("slider"),i=r.get(t+"HandleElement"),o=this.get("width"),a=i.addShape("rect",{attrs:l.mix({x:o/2-p-2,y:"min"===t?0:-p,width:2*p+2,height:p},e)}),s=i.addShape("text",{attrs:l.mix(n,{x:o+this.get("textOffset"),y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),u=this.get("layout"),c="vertical"===u?"ns-resize":"ew-resize";a.attr("cursor",c),s.attr("cursor",c),this.set(t+"ButtonElement",a),this.set(t+"TextElement",s)},n._addHorizontalTrigger=function(t,e,n){var r=this.get("slider"),i=r.get(t+"HandleElement"),o=i.addShape("rect",{attrs:l.mix({x:"min"===t?-p:0,y:-p-this.get("height")/2,width:p,height:2*p},e)}),a=i.addShape("text",{attrs:l.mix(n,{x:"min"===t?-p-4:p+4,y:p/2+this.get("textOffset")+10,textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),s=this.get("layout"),u="vertical"===s?"ns-resize":"ew-resize";o.attr("cursor",u),a.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",a)},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,o=r+n[0]/100*(i-r),a=r+n[1]/100*(i-r);t._updateElement(o,a);var s=new g("itemfilter",e,!0,!0);s.range=[o,a],t.emit("itemfilter",s)}))}this.get("hoverable")&&(this.get("group").on("mousemove",l.wrapBehavior(this,"_onMouseMove")),this.get("group").on("mouseleave",l.wrapBehavior(this,"_onMouseLeave")))},n._updateElement=function(t,e){var n=this.get("minTextElement"),r=this.get("maxTextElement");e>1&&(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"),o=this.get("canvas").get("el"),a=o.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-a.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-a.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(!(t<r[0].value||t>r[r.length-1].value)){var i,o=this.get("height"),a=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)*o,c=[[d,f+h],[d-10,f+h-5],[d-10,f+h+5]],i=l.mix({},{x:a+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*=a,c=[[f+g,p],[f+g-5,p-10],[f+g+5,p-10]],i=l.mix({},{x:f-5,y:o+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=m},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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 o in t)if(t.hasOwnProperty(o)&&!c.isObject(t[o])&&t[o]!==n[o]){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,o=n(30),a=o.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,o=0,a=0,s=t.length-1,l=0;while(++i<t.length)n=s,s=i,l+=r=t[n]*e[s]-t[s]*e[n],o+=(t[n]+t[s])*r,a+=(e[n]+e[s])*r;return l*=3,[o/l,a/l]}var d=function t(e){t.superclass.constructor.call(this,e)};u.extend(d,i),u.augment(d,{getDefaultCfg:function(){return{label:s.label,labelCfg:null,coord:null,geomType:null,zIndex:6}},_renderUI:function(){d.superclass._renderUI.call(this),this.initLabelsCfg();var t=this.addGroup(),e=this.addGroup({elCls:"x-line-group"}),n=this.get("labelRenderer");this.set("labelsGroup",t),this.set("lineGroup",e),this.get("labelRenderer").set("group",t),n.set("group",t),n.set("lineGroup",e)},initLabelsCfg:function(){var t=this,e=new a,n=t.getDefaultLabelCfg(),r=t.get("labelCfg");u.deepMix(n,r.globalCfg||r.cfg),e.set("config",!1),n.labelLine&&e.set("labelLine",n.labelLine),e.set("coord",t.get("coord")),this.set("labelRenderer",e),t.set("label",n)},getDefaultLabelCfg:function(){var t=this,e=t.get("labelCfg").cfg||t.get("labelCfg").globalCfg,n=t.get("geomType"),r=t.get("viewTheme")||s;return"polygon"===n||e&&e.offset<0&&-1===u.indexOf(l,n)?u.deepMix({},t.get("label"),r.innerLabels,e):u.deepMix({},t.get("label"),r.label,e)},getLabelsItems:function(t,e){var n=this,r=[],i=n.get("geom"),o=n.get("coord");n._getLabelCfgs(t,e);var a=n.get("labelItemCfgs");return u.each(t,(function(t,e){var s=t[c],l=a[e];if(l){u.isArray(l.text)||(l.text=[l.text]);var f=l.text.length;u.each(l.text,(function(e,a){if(u.isNil(e)||""===e)r.push(null);else{var c=n.getLabelPoint(l,t,a);c=u.mix({},l,c),c.textAlign||(c.textAlign=n.getLabelAlign(c,a,f)),i&&(c._id=i._getShapeId(s)+"-glabel-"+a+"-"+c.text),c.coord=o,r.push(c)}}))}else r.push(null)})),r},adjustItems:function(t){return u.each(t,(function(t){t&&(t.offsetX&&(t.x+=t.offsetX),t.offsetY&&(t.y+=t.offsetY))})),t},drawLines:function(t){var e=this;u.each(t,(function(t){t&&t.offset>0&&e.lineToLabel(t)}))},lineToLabel:function(){},getLabelPoint:function(t,e,n){var r=this,i=r.get("coord"),o=t.text.length;function a(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=a(e.x,n),s.y=a(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,o);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 o=this.get("yScale");if(o&&t.point){var a=t.point[o.field];a<0&&(n*=-1)}return n},getLabelOffset:function(t,e,n){var r=this,i=r.getDefaultOffset(t),o=r.get("coord"),a=o.isTransposed,s=a?"x":"y",u=a?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",o=r.get("coord");if(o.isTransposed){var a=r.getDefaultOffset(t);i=a<0?"right":0===a?"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"),o=e.get("viewTheme")||s,a=[];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,o.label.textStyle,l.textStyle),delete l.items,a.push(l)}else a.push(null)})),this.set("labelItemCfgs",a)},showLabels:function(t,e){var n=this,r=n.get("labelRenderer"),i=n.getLabelsItems(t,e);e=[].concat(e);var o=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)}))),o&&(r.set("shapes",e),r.set("type",o),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 o(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],o=2;o<n;o++){var a=t[o]-t[o-1];r>a&&(r=a)}return r}var a={getDefaultSize:function(){var t=this.get("defaultSize"),e=this.get("viewTheme")||r;if(!t){var n,i=this.get("coord"),a=this.getXScale(),s=a.values,u=this.get("dataArray");if(a.isLinear&&s.length>1){s.sort();var l=o(s,a);n=(a.max-a.min)/l,s.length>n&&(n=s.length)}else n=s.length;var c=a.range,f=1/n,h=1;if(this.isInCircle()?h=i.isTransposed&&n>1?e.widthRatio.multiplePie:e.widthRatio.rose:(a.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"),o=t.length;if(i.each(r,(function(t){"dodge"===t.type&&(e=t.dodgeBy,n=t.dodgeRatio)})),e){var a=i.Array.merge(t),s=i.Array.values(a,e);o=s.length}return{dodgeCount:o,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=a},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,o=e.field,a=e.type,s=r.Array.values(t,o);return"linear"===a?(n=r.Array.getRange(s),e.min<n.min&&(n.min=e.min),e.max>n.max&&(n.max=e.max)):"timeCat"===a?(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),o=n(37),a=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(),o=i/2+r;return{minX:e-o,minY:n-o,maxX:e+o,maxY:n+o}},_getPath:function(){var t,e=this._attrs,n=e.x,i=e.y,o=e.radius||e.r,a=e.symbol||"circle";return t=r.isFunction(a)?a:s.Symbols[a],t?t(n,i,o):(console.warn(a+" marker is not supported."),null)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n,r=o.parsePath(this._getPath());t.beginPath(),e=[];for(var i=0;i<r.length;i++){var s=r[i];n=new a(s,n,i===r.length-1),e.push(n),n.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var u=0;u<e.length;u++)e[u].draw(t)}}}),t.exports=s},function(t,e,n){var r=n(1),i=r.vec2;function o(t,e,n,r,i){var o=1-i;return o*o*(o*r+3*i*n)+i*i*(i*t+3*o*e)}function a(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function s(t,e,n,r,a,s,u,l,c,f,h){var d,p,g,v,m,y,_,x,b=.005,w=1/0,j=1e-4,S=[c,f];for(p=0;p<1;p+=.05)g=[o(t,n,a,u,p),o(e,r,s,l,p)],v=i.squaredDistance(S,g),v<w&&(d=p,w=v);w=1/0;for(var M=0;M<32;M++){if(b<j)break;_=d-b,x=d+b,g=[o(t,n,a,u,_),o(e,r,s,l,_)],v=i.squaredDistance(S,g),_>=0&&v<w?(d=_,w=v):(y=[o(t,n,a,u,x),o(e,r,s,l,x)],m=i.squaredDistance(S,y),x<=1&&m<w?(d=x,w=m):b*=.5)}return h&&(h.x=o(t,n,a,u,d),h.y=o(e,r,s,l,d)),Math.sqrt(w)}function u(t,e,n,i){var o,a,s,u=3*t-9*e+9*n-3*i,l=6*e-12*n+6*i,c=3*n-3*i,f=[];if(r.isNumberEqual(u,0))r.isNumberEqual(l,0)||(o=-c/l,o>=0&&o<=1&&f.push(o));else{var h=l*l-4*u*c;r.isNumberEqual(h,0)?f.push(-l/(2*u)):h>0&&(s=Math.sqrt(h),o=(-l+s)/(2*u),a=(-l-s)/(2*u),o>=0&&o<=1&&f.push(o),a>=0&&a<=1&&f.push(a))}return f}function l(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n}function c(t,e,n,i,o,a,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;v<h;v++){var m=f*d[v]+f,y=l(m,t,n,o,s),_=l(m,e,i,a,u),x=y*y+_*_;g+=p[v]*Math.sqrt(x)}return f*g}t.exports={at:o,derivativeAt:a,projectPoint:function(t,e,n,r,i,o,a,u,l,c){var f={};return s(t,e,n,r,i,o,a,u,l,c,f),f},pointDistance:s,extrema:u,len:c}},function(t,e,n){var r=n(48),i=n(144),o=n(75),a=n(47);t.exports={line:function(t,e,n,i,o,a,s){var u=r.box(t,e,n,i,o);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,a,s))return!1;var l=r.pointDistance(t,e,n,i,a,s);return!isNaN(l)&&l<=o/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var o=0;o<i;o++){var a=t[o][0],s=t[o][1],u=t[o+1][0],l=t[o+1][1];if(this.line(a,s,u,l,e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,a,s,u,l,c,f){return o.pointDistance(t,e,n,r,i,a,s,u,c,f)<=l/2},quadraticline:function(t,e,n,r,o,a,s,u,l){return i.pointDistance(t,e,n,r,o,a,u,l)<=s/2},arcline:function(t,e,n,r,i,o,s,u,l){return a.pointDistance(t,e,n,r,i,o,u,l)<=s/2},rect:function(t,e,n,r,i,o){return t<=i&&i<=t+n&&e<=o&&o<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,o){return t<=i&&i<=e&&n<=o&&o<=r}}},function(t,e,n){var r=n(150),i="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(typeof t===typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(t,r,i){var o=[],s=r.toLowerCase();if(i.replace(a,(function(t,e){e&&o.push(+e)})),"m"===s&&o.length>2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else while(o.length>=e[s])if(n.push([r].concat(o.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 o=[{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?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},l=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a),l=e+n*Math.sin(-r*a),c=e+n*Math.sin(-i*a);o=[["M",s,l],["A",n,n,0,+(i-r>180),0,u,c]]}else o=[["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 o},c=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,c=0,f=0;"M"===t[0][0]&&(i=+t[0][1],o=+t[0][2],a=i,c=o,f++,r[0]=["M",i,o]);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;g<v;g++){if(r.push(h=[]),d=t[g],e=d[0],e!==e.toUpperCase())switch(h[0]=e.toUpperCase(),h[0]){case"A":h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],h[6]=+d[6]+i,h[7]=+d[7]+o;break;case"V":h[1]=+d[1]+o;break;case"H":h[1]=+d[1]+i;break;case"R":n=[i,o].concat(d.slice(1));for(var m=2,y=n.length;m<y;m++)n[m]=+n[m]+i,n[++m]=+n[m]+o;r.pop(),r=r.concat(u(n,p));break;case"O":r.pop(),n=l(i,o,d[1],d[2]),n.push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(l(i,o,d[1],d[2],d[3])),h=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+d[1]+i,c=+d[2]+o;break;default:for(var _=1,x=d.length;_<x;_++)h[_]=+d[_]+(_%2?i:o)}else if("R"===e)n=[i,o].concat(d.slice(1)),r.pop(),r=r.concat(u(n,p)),h=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),n=l(i,o,d[1],d[2]),n.push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(l(i,o,d[1],d[2],d[3])),h=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,w=d.length;b<w;b++)h[b]=d[b];if(e=e.toUpperCase(),"O"!==e)switch(h[0]){case"Z":i=+a,o=+c;break;case"H":i=h[1];break;case"V":o=h[1];break;case"M":a=h[h.length-2],c=h[h.length-1];break;default:i=h[h.length-2],o=h[h.length-1]}}return r},f=function(t,e,n,r){return[t,e,n,r,n,r]},h=function(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]},d=function t(e,n,r,i,o,a,s,u,l,c){r===i&&(r+=1);var f,h,d,p,g,v=120*Math.PI/180,m=Math.PI/180*(+o||0),y=[],_=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}};if(c)h=c[0],d=c[1],p=c[2],g=c[3];else{f=_(e,n,-m),e=f.x,n=f.y,f=_(u,l,-m),u=f.x,l=f.y,e===u&&n===l&&(u+=1,l+=1);var x=(e-u)/2,b=(n-l)/2,w=x*x/(r*r)+b*b/(i*i);w>1&&(w=Math.sqrt(w),r*=w,i*=w);var j=r*r,S=i*i,M=(a===s?-1:1)*Math.sqrt(Math.abs((j*S-j*b*b-S*x*x)/(j*b*b+S*x*x)));p=M*r*b/i+(e+u)/2,g=M*-i*x/r+(n+l)/2,h=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((l-g)/i).toFixed(9)),h=e<p?Math.PI-h:h,d=u<p?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),s&&h>d&&(h-=2*Math.PI),!s&&d>h&&(d-=2*Math.PI)}var E=d-h;if(Math.abs(E)>v){var P=d,C=u,k=l;d=h+v*(s&&d>h?1:-1),u=p+r*Math.cos(d),l=g+i*Math.sin(d),y=t(u,l,r,i,o,0,s,C,k,[d,P,p,g])}E=d-h;var A=Math.cos(h),T=Math.sin(h),O=Math.cos(d),I=Math.sin(d),R=Math.tan(E/4),D=4/3*r*R,L=4/3*i*R,N=[e,n],F=[e+D*T,n-L*A],B=[u+D*I,l-L*O],z=[u,l];if(F[0]=2*N[0]-F[0],F[1]=2*N[1]-F[1],c)return[F,B,z].concat(y);y=[F,B,z].concat(y).join().split(",");for(var G=[],q=0,V=y.length;q<V;q++)G[q]=q%2?_(y[q-1],y[q],m).y:_(y[q],y[q+1],m).x;return G},p=function(t,e){var n,r=c(t),i=e&&c(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",p="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(d.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(h(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(h(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(f(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(f(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(f(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(f(e.x,e.y,e.X,e.Y));break;default:break}return t},v=function(t,e){if(t[e].length>7){t[e].shift();var o=t[e];while(o.length)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y<n;y++){r[y]&&(l=r[y][0]),"C"!==l&&(s[y]=l,y&&(p=s[y-1])),r[y]=g(r[y],o,p),"A"!==s[y]&&"C"===l&&(s[y]="C"),v(r,y),i&&(i[y]&&(l=i[y][0]),"C"!==l&&(u[y]=l,y&&(p=u[y-1])),i[y]=g(i[y],a,p),"A"!==u[y]&&"C"===l&&(u[y]="C"),v(i,y)),m(r,i,o,a,y),m(i,r,a,o,y);var _=r[y],x=i&&i[y],b=_.length,w=i&&x.length;o.x=_[b-2],o.y=_[b-1],o.bx=parseFloat(_[b-4])||o.x,o.by=parseFloat(_[b-3])||o.y,a.bx=i&&(parseFloat(x[w-4])||a.x),a.by=i&&(parseFloat(x[w-3])||a.y),a.x=i&&x[w-2],a.y=i&&x[w-1]}return i?[r,i]:r},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},m=function(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n},y=function(t,e,n,r,i,o,a,s,u){null===u&&(u=1),u=u>1?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;p<c;p++){var g=l*f[p]+l,v=m(g,t,n,i,a),y=m(g,e,r,o,s),_=v*v+y*y;d+=h[p]*Math.sqrt(_)}return l*d},_=function(t,e,n,r,i,o,a,s){for(var u,l,c,f,h=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,c=3*n-3*t):(l=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;f=-c/l,f>0&&f<1&&h.push(f)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var m=(-l+v)/(2*u);m>0&&m<1&&h.push(m);var y=(-l-v)/(2*u);y>0&&y<1&&h.push(y)}}var _,x=h.length,b=x;while(x--)f=h[x],_=1-f,d[0][x]=_*_*_*t+3*_*_*f*n+3*_*f*f*i+f*f*f*a,d[1][x]=_*_*_*e+3*_*_*f*r+3*_*f*f*o+f*f*f*s;return d[0][b]=t,d[1][b]=e,d[0][b+1]=a,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,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var u=(t*r-e*n)*(i-a)-(t-n)*(i*s-o*a),l=(t*r-e*n)*(o-s)-(e-r)*(i*s-o*a),c=(t-n)*(o-s)-(e-r)*(i-a);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,a).toFixed(2)||d>+Math.max(i,a).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(o,s).toFixed(2)||p>+Math.max(o,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 o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=v,o},j=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(" ")}},S=function(t,e){return t=j(t),e=j(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.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},M=function(t,e,n,i,o,a,s,u){r.isArray(t)||(t=[t,e,n,i,o,a,s,u]);var l=_.apply(null,t);return j(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},E=function(t,e,n,r,i,o,a,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*a,g=c*e+3*f*u*r+3*l*u*u*o+d*s,v=t+2*u*(n-t)+h*(i-2*n+t),m=e+2*u*(r-e)+h*(o-2*r+e),y=n+2*u*(i-n)+h*(a-2*i+n),_=r+2*u*(o-r)+h*(s-2*o+r),x=l*t+u*n,b=l*e+u*r,w=l*i+u*a,j=l*o+u*s,S=90-180*Math.atan2(v-y,m-_)/Math.PI;return{x:p,y:g,m:{x:v,y:m},n:{x:y,y:_},start:{x:x,y:b},end:{x:w,y:j},alpha:S}},P=function(t,e,n){var r=M(t),i=M(e);if(!S(r,i))return n?0:[];for(var o=y.apply(0,t),a=y.apply(0,e),s=~~(o/8),u=~~(a/8),l=[],c=[],f={},h=n?0:[],d=0;d<s+1;d++){var p=E.apply(0,t.concat(d/s));l.push({x:p.x,y:p.y,t:d/s})}for(var g=0;g<u+1;g++){var v=E.apply(0,e.concat(g/u));c.push({x:v.x,y:v.y,t:g/u})}for(var m=0;m<s;m++)for(var _=0;_<u;_++){var b=l[m],w=l[m+1],j=c[_],P=c[_+1],C=Math.abs(w.x-b.x)<.001?"y":"x",k=Math.abs(P.x-j.x)<.001?"y":"x",A=x(b.x,b.y,w.x,w.y,j.x,j.y,P.x,P.y);if(A){if(f[A.x.toFixed(4)]===A.y.toFixed(4))continue;f[A.x.toFixed(4)]=A.y.toFixed(4);var T=b.t+Math.abs((A[C]-b[C])/(w[C]-b[C]))*(w.t-b.t),O=j.t+Math.abs((A[k]-j[k])/(P[k]-j[k]))*(P.t-j.t);T>=0&&T<=1&&O>=0&&O<=1&&(n?h++:h.push({x:A.x,y:A.y,t1:T,t2:O}))}}return h},C=function(t,e,n){var r,i,o,a,s,u,l,c,f,h;t=p(t),e=p(e);for(var d=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])r=s=m[1],i=u=m[2];else{"C"===m[0]?(f=[r,i].concat(m.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,s,u,s,u],r=s,i=u);for(var y=0,_=e.length;y<_;y++){var x=e[y];if("M"===x[0])o=l=x[1],a=c=x[2];else{"C"===x[0]?(h=[o,a].concat(x.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,l,c,l,c],o=l,a=c);var b=P(f,h,n);if(n)d+=b;else{for(var w=0,j=b.length;w<j;w++)b[w].segment1=g,b[w].segment2=y,b[w].bez1=f,b[w].bez2=h;d=d.concat(b)}}}}}return d},k=function(t,e){return C(t,e)};function A(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function T(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var u=a/(1-a*s),l=A(o,u);i.push(l.left),o=l.right}i.push(o);var c=i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return c}var O=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 o=0;o<=n-1;o++)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,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(var s=0;s<r;s++){var u=Math.floor(i*s);o[u]=(o[u]||0)+1}var l=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(O(t[i],t[i+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},R=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r.each(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function D(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var L=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=o;l++)s[0][l]={min:l};for(var c=1;c<=i;c++){n=t[c-1];for(var f=1;f<=o;f++){r=e[f-1],a=R(n,r)?0:1;var h=s[c-1][f].min+1,d=s[c][f-1].min+1,p=s[c-1][f-1].min+a;s[c][f]=D(h,d,p)}}return s},N=function(t,e){var n=L(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i]!==r){for(var u=1;u<=r;u++){var l=n[u][u].min;s=u;for(var c=a;c<=i;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);a=s,n[u][a].type&&o.push({index:u-1,type:n[u][a].type})}for(var f=o.length-1;f>=0;f--)a=o[f].index,"add"===o[f].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}r=t.length;var h=i-r;if(r<i)for(var d=0;d<h;d++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function F(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=B(e)[0],s=1;s<=n;s++)o*=s,r=Math.floor(t.length*o),0===r?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function B(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var z=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=B(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=F(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=F(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=F(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:k}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=i,e.toRadian=a,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 o=Math.PI/180;function a(t){return t*o}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),o=n(2);t.exports=function(t,e){for(var n=[],a={},s=0;s<t.length;s++){var u=t[s],l=u[e];r(l)||(i(l)||(l=[l]),o(l,(function(t){a[t]||(n.push(t),a[t]=!0)})))}return n}},function(t,e,n){var 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},i=n(4),o=function t(e){if("object"!==("undefined"===typeof e?"undefined":r(e))||null===e)return e;var n=void 0;if(i(e)){n=[];for(var o=0,a=e.length;o<a;o++)"object"===r(e[o])&&null!=e[o]?n[o]=t(e[o]):n[o]=e[o]}else for(var s in n={},e)"object"===r(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n};t.exports=o},function(t,e,n){var r=n(40),i=n(4),o=5;function a(t,e,n,s){for(var u in n=n||0,s=s||o,e)if(e.hasOwnProperty(u)){var l=e[u];null!==l&&r(l)?(r(t[u])||(t[u]={}),n<s?a(t[u],l,n+1,s):t[u]=e[u]):i(l)?(t[u]=[],t[u]=t[u].concat(l)):void 0!==l&&(t[u]=l)}}var s=function(){for(var t=new Array(arguments.length),e=t.length,n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0],i=1;i<e;i++)a(r,t[i]);return r};t.exports=s},function(t,e,n){var r=n(2),i=n(21),o=function(t,e){if(!i(t))return t;var n=[];return r(t,(function(t,r){e(t,r)&&n.push(t)})),n};t.exports=o},function(t,e,n){var r=n(86),i=n(21),o=n(15),a=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(o(e)||o(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var a=!0,s=0;s<e.length;s++)if(a=t(e[s],n[s]),!a)break;return a}if(r(e)||r(n)){var u=Object.keys(e),l=Object.keys(n);if(u.length!==l.length)return!1;for(var c=!0,f=0;f<u.length;f++)if(c=t(e[u[f]],n[u[f]]),!c)break;return c}return!1};t.exports=a},function(t,e){var n=function(t,e,n){return t<e?e:t>n?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 o=r[n[e].name],a=t;n[e].viewId&&(a=t.views[n[e].viewId]),i[o]&&i[o](a,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),o=n(437),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}e.Util=i.default,e.Prop=a.default},function(t,e,n){"use strict";e["c"]=i,n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return a})),e["h"]=b,e["b"]=S,e["g"]=M,e["a"]=E,e["f"]=O;var r=n(90);function i(){}var o=.7,a=1/o,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]+"\\)$"),m={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 y(){return this.rgb().formatHex()}function _(){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 E(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?j(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?j(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 E(e[1],e[2],e[3],1):(e=h.exec(t))?new E(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?j(e[1],e[2],e[3],e[4]):(e=p.exec(t))?j(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?w(m[t]):"transparent"===t?new E(NaN,NaN,NaN,0):null}function w(t){return new E(t>>16&255,t>>8&255,255&t,1)}function j(t,e,n,r){return r<=0&&(t=e=n=NaN),new E(t,e,n,r)}function S(t){return t instanceof i||(t=b(t)),t?(t=t.rgb(),new E(t.r,t.g,t.b,t.opacity)):new E}function M(t,e,n,r){return 1===arguments.length?S(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+k(this.r)+k(this.g)+k(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 k(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function A(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,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,l=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=l<.5?a+o:2-a-o,s*=60):u=l>0&&l<1?0:s,new I(s,u,l,t.opacity)}function O(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 R(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:y,formatHex:y,formatHsl:_,formatRgb:x,toString:x}),n.i(r["a"])(E,M,n.i(r["b"])(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new E(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,O,n.i(r["b"])(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new I(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,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 E(R(t>=240?t-240:t+120,i,r),R(t,i,r),R(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 o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*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),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,u=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,u)}}},function(t,e,n){"use strict";var r=n(12),i=n(205),o=n(200),a=n(203),s=n(59),u=n(204),l=n(206),c=n(202);e["a"]=function(t,e){var f,h=typeof e;return null==e||"boolean"===h?n.i(c["a"])(e):("number"===h?s["a"]:"string"===h?(f=n.i(r["f"])(e))?(e=f,i["a"]):l["a"]:e instanceof r["f"]?i["a"]:e instanceof Date?a["a"]:Array.isArray(e)?o["a"]:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?u["a"]:s["a"])(t,e)}},function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*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),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,u=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,u)}}},function(t,e,n){"use strict";n(96),n(207),n(93),n(208),n(210),n(465),n(468);var r=n(60);n.d(e,"b",(function(){return r["a"]}));n(95),n(211),n(472);var i=n(213);n.d(e,"d",(function(){return i["a"]}));var o=n(474);n.d(e,"a",(function(){return o["a"]})),n.d(e,"e",(function(){return o["b"]}));n(476);var a=n(212);n.d(e,"c",(function(){return a["a"]}));n(467),n(469),n(466),n(464),n(470),n(471)},function(t,e,n){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}e["a"]=r,e["b"]=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}},function(t,e,n){"use strict";var r=n(12),i=n(212),o=n(207),a=n(210),s=n(60),u=n(211),l=n(213),c=n(209),f=n(95);e["a"]=function(t,e){var h,d=typeof e;return null==e||"boolean"===d?n.i(c["a"])(e):("number"===d?s["a"]:"string"===d?(h=n.i(r["f"])(e))?(e=h,i["a"]):l["a"]:e instanceof r["f"]?i["a"]:e instanceof Date?a["a"]:n.i(f["a"])(e)?f["b"]:Array.isArray(e)?o["a"]:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?u["a"]:s["a"])(t,e)}},function(t,e,n){"use strict";var r=n(98);e["a"]=function(t){var e=t+="",n=e.indexOf(":");return n>=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 o=document.documentElement;"onmouseenter"in o||(r={mouseenter:"mouseover",mouseleave:"mouseout"})}function a(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 o=i;i=r;try{t.call(this,this.__data__,e,n)}finally{i=o}}}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,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function c(t,e,n){var i=r.hasOwnProperty(t.type)?a:s;return function(r,o,a){var s,u=this.__on,l=i(e,o,a);if(u)for(var c=0,f=u.length;c<f;++c)if((s=u[c]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=e);this.addEventListener(t.type,l,n),s={type:t.type,name:t.name,value:e,listener:l,capture:n},u?u.push(s):this.__on=[s]}}function f(t,e,n,r){var o=i;t.sourceEvent=i,i=t;try{return e.apply(n,r)}finally{i=o}}e["c"]=function(t,e,n){var r,i,o=u(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?c:l,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var f,h=0,d=s.length;h<d;++h)for(r=0,f=s[h];r<a;++r)if((i=o[r]).type===f.type&&i.name===f.name)return f.value}},function(t,e,n){"use strict";function r(){}e["a"]=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";var r=n(99);e["a"]=function(){var t,e=r["a"];while(t=e.sourceEvent)e=t;return e}},function(t,e,n){"use strict";e["a"]=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(104);n.d(e,"now",(function(){return r["a"]})),n.d(e,"timer",(function(){return r["b"]})),n.d(e,"timerFlush",(function(){return r["c"]}));var i=n(513);n.d(e,"timeout",(function(){return i["a"]}));var o=n(512);n.d(e,"interval",(function(){return o["a"]}))},function(t,e,n){"use strict";e["a"]=p,e["d"]=v,e["b"]=m,e["c"]=y;var r,i,o=0,a=0,s=0,u=1e3,l=0,c=0,f=0,h="object"===typeof performance&&performance.now?performance:Date,d="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return c||(d(g),c=h.now()+f)}function g(){c=0}function v(){this._call=this._time=this._next=null}function m(t,e,n){var r=new v;return r.restart(t,e,n),r}function y(){p(),++o;var t,e=r;while(e)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function _(){c=(l=h.now())+f,o=a=0;try{y()}finally{o=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,o=1/0;while(n)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}function w(t){if(!o){a&&(a=clearTimeout(a));var e=t-c;e>24?(t<1/0&&(a=setTimeout(_,t-h.now()-f)),s&&(s=clearInterval(s))):(s||(l=h.now(),s=setInterval(x,u)),o=1,d(_))}}v.prototype=m.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 o=i.prototype,a=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)}o.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},o.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},o.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&(e={},e[t]=n),e||n},o.addListener=function(t,e){if(!l(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"===typeof e;for(n in r)r.hasOwnProperty(n)&&-1===s(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},o.on=u("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=u("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&(n=s(i[r],e),-1!==n&&i[r].splice(n,1));return this},o.off=u("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!==typeof e||e instanceof RegExp){r=n.length;while(r--)o.call(this,e,n[r])}else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"===typeof i?o.call(this,r,i):a.call(this,r,i));return this},o.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},o.removeAllListeners=u("removeEvent"),o.emitEvent=function(t,e){var n,r,i,o,a,s=this.getListenersAsObject(t);for(o in s)if(s.hasOwnProperty(o))for(n=s[o].slice(0),i=0;i<n.length;i++)r=n[i],!0===r.once&&this.removeListener(t,r.listener),a=r.listener.apply(this,e||[]),a===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},o.trigger=u("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=a,i},r=function(){return i}.call(e,n,e,t),void 0===r||(t.exports=r)})(this||{})},function(t,e,n){var r=0,i=n(2),o={values:n(79)};t.exports={isAdjust:function(t){return this.adjustNames.indexOf(t)>=0},_getDimValues:function(t){var e=this,n={},a=[];if(e.xField&&e.isAdjust("x")&&a.push(e.xField),e.yField&&e.isAdjust("y")&&a.push(e.yField),i(a,(function(e){var r=o.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,o){i(r,(function(r,i){n.adjustDim(i,r,e,t.length,o)}))}))},getAdjustRange:function(t,e,n){var r,i,o=this,a=n.indexOf(e),s=n.length;return!o.yField&&o.isAdjust("y")?(r=0,i=1):s>1?(r=0===a?n[0]:n[a-1],i=a===s-1?n[s-1]:n[a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==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),o=n(2),a=/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),o=n*e-i,a=t[i],s=i===n?a:t[i+1],c=l([u(a,s,o,0),u(a,s,o,1),u(a,s,o,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=a.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("-")),o(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,o=n(3),a=function t(e){t.superclass.constructor.call(this,e)};o.extend(a,i),o.augment(a,{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(){a.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;o.each(t,(function(t,r){e&&n.get("alternateColor")&&n._drawAlternativeBg(t,e,r),e=t}))},_drawGridLines:function(t,e){var n,r,i,a,s=this,u=this.get("type"),l=t.length;"line"===u||"polygon"===u?o.each(t,(function(t,c){s.get("hideFirstLine")&&0===c||s.get("hideLastLine")&&c===l-1||(a=t.points,r=[],"line"===u?(r.push(["M",a[0].x,a[0].y]),r.push(["L",a[a.length-1].x,a[a.length-1].y])):o.each(a,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])})),i=s._drawZeroLine(u,c)?o.mix({},s.get("zeroLineStyle"),{path:r}):o.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")))})):o.each(t,(function(t,u){s.get("hideFirstLine")&&0===u||s.get("hideLastLine")&&u===l-1||(a=t.points,r=[],o.each(a,(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=o.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,a,s=this,u=s.get("alternateColor");o.isString(u)?i=u:o.isArray(u)&&(i=u[0],a=u[1]),n%2===0?a&&(r=s._getBackItem(e.points,t.points,a)):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){o.each(t,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])}));for(var a=e.length-1;a>=0;a--)r.push(["L",e[a].x,e[a].y]);r.push(["Z"])}else{var s=t[0].flag;o.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=a},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(a()){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?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 a(){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:'<div class="g-labels" style="position:absolute;top:0;left:0;"></div>',itemTpl:'<div class="g-label" style="position:absolute;">{text}</div>',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<r){var o=n[i];t.changeLabel(o,e)}else{var a=t._addLabel(e,i);a&&(a._id=e._id,a.set("coord",e.coord))}}));for(var i=r-1;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,o=r.path;if(o&&l.isFunction(r.path)&&(o=r.path(t)),!o){var a=t.start||{x:t.x-t._offset.x,y:t.y-t._offset.y};o=[["M",a.x,a.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:o,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 o=t;t={},t.text=o}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 a=l.mix({},t,{textStyle:n},{x:t.x||0,y:t.y||0});return a},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 o=this.get("name"),a=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",a||n),e.name=o,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,o=c.getOuterWidth(e),a=c.getOuterHeight(e);r-=a/2,"center"===n?i-=o/2:"right"===n&&(i-=o),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),o=Math.floor(t.minY),a=Math.ceil(t.maxY)-1,s=r;s<i;s++)if(n[s]){if(s===r||s===i-1){for(var u=o;u<=a;u++)if(n[s][u]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]=[];return e},e.fillGap=function(t){for(var e=this.bitmap,n=Math.floor(t.minX),r=Math.ceil(t.maxX)-1,i=Math.floor(t.minY),o=Math.ceil(t.maxY)-1,a=n;a<=r;a++){for(var s=i;s<o;s+=8)e[a]||(e[a]=[]),e[a][s]=!0;e[a][o]=!0}for(var u=i;u<=o;u++)e[n][u]=!0,e[r][u]=!0},t}();t.exports=n},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(36),f=n(19),h=f.FONT_FAMILY,d=function(t){u(n,t);r(n);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,n._init(),n.beforeRender(),n.render(),n._adjustPositionOffset(),n._bindEvents(),n}return e.getDefaultCfg=function(){return{container:null,title:null,formatter:null,hoverable:!0,titleGap:15,position:[0,0],offset:[0,0],offsetX:null,offsetY:null}},e._init=function(){var t=this.get("group"),e=this.get("container");this.set("canvas",e.get("canvas"));var n=this.get("position");t||(t=e.addGroup({x:0-n[0],y:0-n[1]})),this.set("group",t)},e._adjustPositionOffset=function(){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),r=this.get("offsetY");if(!l.isArray(e)){var i=this.get("layout");e="vertical"===i?[e,0]:[0,e]}n&&(e[0]=n),r&&(e[1]=r);var o=this.get("group").getBBox();this.move(-o.minX+t[0]+e[0],-o.minY+t[1]+e[1])},e.beforeRender=function(){var t=this.get("group"),e=t.addGroup();this.set("itemsGroup",e)},e.render=function(){this._renderTitle()},e._renderTitle=function(){var t=this.get("title"),e=this.get("titleGap");if(e=e||0,t&&t.text){var n=this.get("group"),r=n.addShape("text",{attrs:l.mix({x:0,y:0-e,fill:"#333",textBaseline:"middle",fontFamily:h},t)});r.name="legend-title",this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",r)}},e.getCheckedCount=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=l.filter(e,(function(t){return t.get("checked")}));return n.length},e.setItems=function(t){this.set("items",t),this.clear(),this.render()},e.addItem=function(t){var e=this.get("items");e.push(t),this.clear(),this.render()},e.clear=function(){var t=this.get("itemsGroup");t.clear();var e=this.get("group");e.clear(),this.beforeRender()},e.destroy=function(){var e=this.get("group");e&&e.destroy(),this._attrs={},this.removeAllListeners(),t.prototype.destroy.call(this)},e.getWidth=function(){var t=this.get("group").getBBox();return t.width},e.getHeight=function(){var t=this.get("group").getBBox();return t.height},e.move=function(t,e){this.get("group").move(t,e)},e.draw=function(){this.get("canvas").draw()},n}(c);t.exports=d},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(114),f=n(19),h=f.FONT_FAMILY,d=l.DomUtil,p=l.Group,g="g2-legend",v="g2-legend-title",m="g2-legend-list",y="g2-legend-list-item",_="g2-legend-text",x="g2-legend-marker";function b(t,e){return t.getElementsByClassName(e)[0]}function w(t,e){var n=t.className;return l.isNil(n)?t:(n=n.split(" "),n.indexOf(e)>-1?t:t.parentNode?t.parentNode.className===g?t.parentNode:w(t.parentNode,e):null)}function j(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 S=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:'<div class="'+g+'"><h4 class="'+v+'"></h4><ul class="'+m+'"></ul></div>',itemTpl:'<li class="'+y+' item-{index} {checked}" data-color="{originColor}" data-value="{originValue}"><i class="'+x+'" style="background-color:{color};"></i><span class="'+_+'">{value}</span></li>',legendStyle:{},textStyle:{fill:"#333",fontSize:12,textAlign:"middle",textBaseline:"top",fontFamily:h},abridgeText:!1,tipTpl:'<div class="textTip"></div>',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,m);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(m)>-1)){var i=w(n,y),o=j(e,i.getAttribute("data-value"));o?(this.deactivate(),this.activate(i.getAttribute("data-value")),this.emit("itemhover",{item:o,currentTarget:i,checked:o.checked})):o||(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,m),i=this.get("unCheckColor"),o=this.get("items"),a=this.get("selectedMode"),s=r.childNodes,u=t.target,c=u.className;if(c=c.split(" "),!(c.indexOf(g)>-1||c.indexOf(m)>-1)){var f=w(u,y),h=b(f,_),d=b(f,x),p=j(o,f.getAttribute("data-value"));if(p){var v=f.className,S=f.getAttribute("data-color");if("single"===a)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=j(o,t.getAttribute("data-value"));r.checked=!1}else h&&(h.style.color=e.get("textStyle").fill),d&&(d.style.backgroundColor=S),f.className=v.replace("unChecked","checked")}));else{var M=-1!==v.indexOf("checked"),E=0;if(l.each(s,(function(t){-1!==t.className.indexOf("checked")&&E++})),!this.get("allowAllCanceled")&&M&&1===E)return void this.emit("clicklastitem",{item:p,currentTarget:f,checked:"single"===a||p.checked});p.checked=!p.checked,M?(d&&(d.style.backgroundColor=i),f.className=v.replace("checked","unChecked"),f.style.color=i):(d&&(d.style.backgroundColor=S),f.className=v.replace("unChecked","checked"),f.style.color=this.get("textStyle").fill)}this.emit("itemclick",{item:p,currentTarget:f,checked:"single"===a||p.checked})}}},n.activate=function(t){var e=this,n=this,r=n.get("items"),i=j(r,t),o=n.get("legendWrapper"),a=b(o,m),s=a.childNodes;s.forEach((function(t){var o=b(t,x),a=j(r,t.getAttribute("data-value"));if(e.get("highlight")){if(a===i&&a.checked)return void(o.style.border="1px solid #333")}else a===i?o.style.opacity=n.get("activeOpacity"):a.checked&&(o.style.opacity=n.get("inactiveOpacity"))}))},n.deactivate=function(){var t=this,e=this,n=e.get("legendWrapper"),r=b(n,m),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),o=b(i,v),a=b(i,m),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(a,l.mix({},u.LIST_CLASS,this.get(m))),o&&(n&&n.text?(o.innerHTML=n.text,d.modifyCSS(o,l.mix({},u.TITLE_CLASS,this.get(v),n))):i.removeChild(o));var w=this.get("items"),j=this.get("itemTpl"),S=this.get("position"),M=this.get("layout"),E="right"===S||"left"===S||"vertical"===M?"block":"inline-block",P=l.mix({},u.LIST_ITEM_CLASS,{display:E},this.get(y)),C=l.mix({},u.MARKER_CLASS,this.get(x));if(l.each(w,(function(e,n){var r,o=e.checked,u=t._formatItemValue(e.value),c=e.marker.fill||e.marker.stroke,f=o?c:s;r=l.isFunction(j)?j(u,f,o,n):j;var h=l.substitute(r,l.mix({},e,{index:n,checked:o?"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,_);if(d.modifyCSS(p,P),g&&d.modifyCSS(g,C),o||(p.style.color=s,g&&(g.style.backgroundColor=s)),a.appendChild(p),t.get("abridgeText")){var m=u,y=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 S=w*m.length,M=Math.floor(y/w);y<2*w?m="":y<S&&M>1&&(m=m.substr(0,M-1)+"..."),v.innerText=m,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 k=this.get("tipTpl"),A=d.createDom(k),T=this.get("tipStyle");d.modifyCSS(A,T),i.parentNode.appendChild(A),A.addEventListener("mouseover",(function(){A.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 o=this.get("legendWrapper");o.style.left=e[0]+"px",o.style.top=e[1]+"px",o.style.marginLeft=n[0]+"px",o.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=S},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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 m=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"),o=void 0;i.forEach((function(r){if(o=v(r,"legend-marker"),o){var i=r.get("checked");e.get("highlight")?r.get("value")===t&&i?o.attr("stroke","#333"):o.attr("stroke",null):r.get("value")===t&&o.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,o=this.get("unCheckColor");r.forEach((function(n){if(i=v(n,"legend-marker"),i)if(t.get("highlight")){var r=i.get("oriStroke"),a=n.get("checked");r=r&&!a?o:"",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"),o=g(n,e),a=new d("itemclick",t,!0,!0);if(a.item=o,a.currentTarget=e,a.appendInfo=t.currentTarget.get("appendInfo"),a.checked="single"===i||!r,!this.get("allowAllCanceled")&&r&&1===this.getCheckedCount())return void this.emit("clicklastitem",a);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"),m=p.get("children");l.each(m,(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")&&o&&o.marker&&c.attr("fill",o.marker.fill),c.attr("stroke")&&o&&o.marker&&c.attr("stroke",o.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")&&o&&o.marker&&c.attr("fill",r?s:o.marker.fill),c.attr("stroke")&&o&&o.marker&&c.attr("stroke",r?s:o.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",a)}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"),o=0;return"horizontal"===t&&l.each(i,(function(t){o+=(r||t.getBBox().width)+e})),o},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"),o=r.get("children"),a=e;return i&&(a+=i.getBBox().height),"vertical"===n&&l.each(o,(function(e){a+=e.getBBox().height+t})),a},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=this._getNextY(),i=this.get("unCheckColor"),o=e.addGroup({x:n,y:r,value:t.value,checked:t.checked});o.set("viewId",this.get("viewId"));var a=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=o.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},a,{x:u+n,y:r,text:this._formatItemValue(t.value)});t.checked||l.mix(d,{fill:i});var p=o.addShape("text",{attrs:d});p.attr("cursor","pointer"),p.name="legend-text",this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo"));var g=o.getBBox(),v=this.get("itemWidth"),m=o.addShape("rect",{attrs:{x:n,y:r-g.height/2,fill:"#fff",fillOpacity:0,width:v||g.width,height:g.height}});return m.attr("cursor","pointer"),m.setSilent("origin",t),m.name="legend-item",this.get("appendInfo")&&m.setSilent("appendInfo",this.get("appendInfo")),o.name="legendGroup",o},n._adjustHorizontal=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=this.get("maxLength"),r=this.get("itemGap"),i=this.get("itemMarginBottom"),o=this.get("titleShape")?this.get("titleGap"):0,a=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-s<u&&(a++,s=0),t.move(s,a*c+o),s+=u+r}))},n._adjustVertical=function(){var t=this.get("itemsGroup"),e=this.get("titleShape"),n=t.get("children"),r=this.get("maxLength"),i=this.get("itemGap"),o=this.get("itemMarginBottom"),a=this.get("titleGap"),s=e?e.getBBox().height+a:0,u=this.get("itemWidth"),c=s,f=void 0,h=void 0,d=void 0,p=0,g=0;t.getBBox().height>r&&l.each(n,(function(t){d=t.getBBox(),f=d.width,h=d.height,u?p=u+i:f>p&&(p=f+i),r-c<h?(c=s,g+=p,t.move(g,s)):t.move(g,c),c+=h+o}))},n._adjustItems=function(){var t=this.get("layout");"horizontal"===t?this._adjustHorizontal():this._adjustVertical()},n.getWidth=function(){return t.prototype.getWidth.call(this)},n.getHeight=function(){return t.prototype.getHeight.call(this)},n.move=function(e,n){t.prototype.move.call(this,e,n)},e}(c);t.exports=m},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(31),c=n(116),f=n(117),h=n(118),d=n(68),p=n(3),g=n(19),v=g.FONT_FAMILY,m=p.DomUtil,y=p.MatrixUtil,_=function(t){u(n,t);r(n);var e=n.prototype;function n(e){var n;n=t.call(this,e)||this,p.assign(o(n),h),p.assign(o(n),f);var r=n.get("crosshairs");if(r){var i="rect"===r.type?n.get("backPlot"):n.get("frontPlot"),a=new c(p.mix({plot:i,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));a.hide(),n.set("crosshairGroup",a)}return n._init_(),n.get("items")&&n.render(),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return p.mix({},e,{boardStyle:{x:0,y:0,width:100,height:100,fill:"rgba(255, 255, 255, 0.9)",radius:4,stroke:"#e2e2e2",lineWidth:1},titleStyle:{fontFamily:v,text:"",textBaseline:"top",fontSize:12,fill:"rgb(87, 87, 87)",lineHeight:20,padding:20},markerStyle:{radius:4},nameStyle:{fontFamily:v,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:8},valueStyle:{fontFamily:v,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:30},padding:{top:20,right:20,bottom:20,left:20},itemGap:10,animationDuration:200})},e._init_=function(){var t=this,e=t.get("padding"),n=t.get("frontPlot"),r=n.addGroup({capture:!1});t.set("markerGroup",r);var i=n.addGroup();i.hide(),t.set("container",i);var o=i.addShape("rect",{attrs:p.mix({},t.get("boardStyle"))});t.set("board",o);var a=t.get("titleStyle");if(t.get("showTitle")){var s=i.addShape("text",{attrs:p.mix({x:e.left,y:e.top},a)});t.set("titleShape",s),s.name="tooltip-title"}var u=i.addGroup();u.move(e.left,e.top+a.lineHeight+a.padding),t.set("itemsGroup",u)},e.render=function(){var t=this;t.clear();var e=t.get("container"),n=t.get("board"),r=t.get("showTitle"),i=t.get("titleContent"),o=this.get("titleShape"),a=this.get("itemsGroup"),s=t.get("items"),u=t.get("padding");if(o&&r&&o.attr("text",i),a){var l=t.get("itemGap"),c=0,f=0;p.each(s,(function(e){var n=t._addItem(e);n.move(c,f),a.add(n);var r=n.getBBox().height;f+=r+l}))}var h=e.getBBox(),d=h.width+u.right,g=h.height+u.bottom;n.attr("width",d),n.attr("height",g),t._alignToRight(d)},e.clear=function(){var t=this.get("titleShape"),e=this.get("itemsGroup"),n=this.get("board");t.text="",e.clear(),n.attr("width",0),n.attr("height",0)},e.show=function(){var e=this.get("container");e.show();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");e.hide();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.get("container"),n=this.get("crosshairGroup");n&&n.destroy();var r=this.get("markerGroup");r&&r.remove(),t.prototype.destroy.call(this),e.remove()},e.setPosition=function(e,n,r){var i,o=this.get("container"),a=this.get("canvas").get("el"),s=m.getWidth(a),u=m.getHeight(a),l=o.getBBox(),c=l.width,f=l.height,h=e,d=n;if(this.get("position")){var g=l.width,v=l.height;i=this._calcTooltipPosition(e,n,this.get("position"),g,v,r),e=i[0],n=i[1]}else i=this._constraintPositionInBoundary(e,n,c,f,s,u),e=i[0],n=i[1];if(this.get("inPlot")){var _=this.get("plotRange");i=this._constraintPositionInPlot(e,n,c,f,_,this.get("enterable")),e=i[0],n=i[1]}var x=this.get("markerItems");p.isEmpty(x)||(h=x[0].x,d=x[0].y);var b=[1,0,0,0,1,0,0,0,1],w=y.transform(b,[["t",e,n]]);o.stopAnimate(),o.animate({matrix:w},this.get("animationDuration"));var j=this.get("crosshairGroup");if(j){var S=this.get("items");j.setPosition(h,d,S)}t.prototype.setPosition.call(this,e,n)},e._addItem=function(t){var e=new l.Group,n=this.get("markerStyle").radius;if(t.marker){var r=p.mix({},t.marker,{x:t.marker.radius/2,y:0,symbol:t.marker.activeSymbol||t.marker.symbol});e.addShape("marker",{attrs:r}),n=t.marker.radius}var i=this.get("nameStyle");e.addShape("text",{attrs:p.mix({x:n+i.padding,y:0,text:t.name},i)});var o=this.get("valueStyle");return e.addShape("text",{attrs:p.mix({x:e.getBBox().width+o.padding,y:0,text:t.value},o)}),e},e._alignToRight=function(t){var e=this,n=this.get("itemsGroup"),r=n.get("children");p.each(r,(function(n){var r=n.get("children"),i=r[2],o=i.getBBox().width,a=t-o-2*e.get("padding").right;i.attr("x",a)}))},n}(d);t.exports=_},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(36),c=n(3),f=function(t){u(n,t);r(n);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,n._init_(),n.render(),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return c.mix({},e,{type:null,plot:null,plotRange:null,rectStyle:{fill:"#CCD6EC",opacity:.3},lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},isTransposed:!1})},e._init_=function(){var t,e=this,n=e.get("plot");t="rect"===e.type?n.addGroup({zIndex:0}):n.addGroup(),this.set("container",t)},e._addLineShape=function(t,e){var n=this.get("container"),r=n.addShape("line",{capture:!1,attrs:t});return this.set("crossLineShape"+e,r),r},e._renderHorizontalLine=function(t,e){var n=c.mix(this.get("lineStyle"),this.get("style")),r=c.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},n);this._addLineShape(r,"X")},e._renderVerticalLine=function(t,e){var n=c.mix(this.get("lineStyle"),this.get("style")),r=c.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},n);this._addLineShape(r,"Y")},e._renderBackground=function(t,e){var n=c.mix(this.get("rectStyle"),this.get("style")),r=this.get("container"),i=c.mix({x:e?e.tl.x:0,y:e?e.tl.y:t.get("height"),width:e?e.br.x-e.bl.x:t.get("width"),height:e?Math.abs(e.tl.y-e.bl.y):t.get("height")},n),o=r.addShape("rect",{attrs:i,capture:!1});return this.set("crosshairsRectShape",o),o},e._updateRectShape=function(t){var e,n=this.get("crosshairsRectShape"),r=this.get("isTransposed"),i=t[0],o=t[t.length-1],a=r?"y":"x",s=r?"height":"width",u=i[a];if(t.length>1&&i[a]>o[a]&&(u=o[a]),this.get("width"))n.attr(a,u-this.get("crosshairs").width/2),n.attr(s,this.get("width"));else if(c.isArray(i.point[a])&&!i.size){var l=i.point[a][1]-i.point[a][0];n.attr(a,i.point[a][0]),n.attr(s,l)}else e=3*i.size/4,n.attr(a,u-e),1===t.length?n.attr(s,3*i.size/2):n.attr(s,Math.abs(o[a]-i[a])+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"),o=this.get("crosshairsRectShape");i&&!i.get("destroyed")&&i.move(t,0),r&&!r.get("destroyed")&&r.move(0,e),o&&!o.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"),o=n.get("frontPlot");i?i.clear():(i=o.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,o){var a=0,s=0,u=20;if(o){var l=o.getBBox();a=l.width,s=l.height,t=l.x,e=l.y,u=5}switch(n){case"inside":t=t+a/2-r/2,e=e+s/2-i/2;break;case"top":t=t+a/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+a+u,e=e+s/2-i/2;break;case"bottom":default:t=t+a/2-r/2,e=e+s+u;break}return[t,e]},_constraintPositionInBoundary:function(t,e,r,i,o,a){return t+r+n>o?(t-=r+n,t=t<0?0:t):t+n<0?t=n:t+=n,e+i+n>a?(e-=i+n,e=e<0?0:e):e+n<0?e=n:e+=n,[t,e]},_constraintPositionInPlot:function(t,e,r,i,o,a){return t+r>o.tr.x&&(t-=a?r+1:r+2*n),t<o.tl.x&&(t=o.tl.x),a||(e+i>o.bl.y&&(e-=i+2*n),e<o.tl.y&&(e=o.tl.y)),[t,e]}};t.exports=r},function(t,e,n){var r=n(0),i=n(270),o={appear:{duration:450,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut",delay:100},leave:{duration:350,easing:"easeQuadIn"}},a={line:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},path:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},area:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:500,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:600,delay:150,easing:"easeQuadInOut"},leave:{easing:"easeQuadOut",duration:350}}},polygon:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},edge:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}},interval:{appear:function(t){var e;return t.isPolar?(e=i.appear.zoomIn,(t.isTransposed||"theta"===t.type)&&(e=i.appear.fanIn)):e=t.isRect?t.isTransposed?i.appear.scaleInX:i.appear.scaleInY:i.appear.zoomIn,e},enter:function(t){return t.isRect||t.isTransposed||"theta"===t.type?i.enter.fadeIn:i.enter.zoomIn},leave:function(){return i.leave.fadeOut},update:function(t){if("theta"===t.type)return i.update.fanIn}},point:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},schema:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},contour:null,heatmap:null,label:{appear:function(){return i.appear.fadeIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:900}}},"axis-label":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-ticks":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid-rect":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(){return i.leave.fadeIn}},labelLine:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}}};a.Action=i,a.defaultCfg=o,a.getAnimation=function(t,e,n){var i=this[t];if(i){var o=i[n];if(r.isFunction(o))return o(e)}return!1},a.getAnimateCfg=function(t,e){var n=o[e];return this[t]&&this[t].cfg&&this[t].cfg[e]?r.deepMix({},n,this[t].cfg[e]):n},a.registerAnimation=function(t,e,n){this.Action[t]||(this.Action[t]={}),this.Action[t][e]=n},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(105),o=n(0),a=function(t){r(n,t);var e=n.prototype;function n(e){var n;n=t.call(this)||this;var r={visible:!0},i=n.getDefaultCfg();return n._attrs=r,o.assign(r,i,e),n}return e.getDefaultCfg=function(){return{}},e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e.show=function(){var t=this.get("visible");t||(this.set("visible",!0),this.changeVisible(!0))},e.hide=function(){var t=this.get("visible");t&&(this.set("visible",!1),this.changeVisible(!1))},e.changeVisible=function(){},e.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},n}(i);t.exports=a},function(t,e,n){t.exports={Scale:n(277),Coord:n(273),Axis:n(272),Guide:n(275),Legend:n(276),Tooltip:n(278),Event:n(274)}},function(t,e,n){var r=n(16),i=n(0),o=n(123);function a(t,e,n){void 0===n&&(n=1);var r=[t.x,t.y,n];return i.vec3.transformMat3(r,r,e),{x:r[0],y:r[1]}}function s(t){var e=t.getBBox(),n={x:e.minX,y:e.minY},r={x:e.maxX,y:e.maxY},i=t.attr("matrix");return n=a(n,i),r=a(r,i),{minX:n.x,minY:n.y,maxX:r.x,maxY:r.y}}t.exports=function(t,e){var n=e;return i.each(t.get("children"),(function(t){t instanceof r.Group&&i.each(t.get("children"),(function(t){if(t instanceof r.Group&&t.get("children").length||t instanceof r.Path)n=o(n,t.getBBox());else if(t instanceof r.Text){var e=s(t);n=o(n,e)}}))})),n}},function(t,e){t.exports=function(t,e){return{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}}},function(t,e){t.exports=function(t){return{minX:t.tl.x,minY:t.tl.y,maxX:t.br.x,maxY:t.br.y}}},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),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="list",e.cols=null,e},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),o=i.length,a=e.cols||o,s=parseInt((o+a-1)/a),u=[];return i.forEach((function(n,l){var c=parseInt(l/a),f=l%a,h=[{field:r,value:n,values:i}],d=e.getFilter(h),p=t.filter(d),g={type:e.type,count:o,colValue:n,colField:r,rowField:null,rowValue:n,colIndex:f,rowIndex:c,cols:a,rows:s,data:p,region:e.getRegion(s,a,f,c)};u.push(g)})),u},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&n.cols*n.rowIndex+n.colIndex+1+n.cols<=n.count&&(e[t].label=null,e[t].title=null)},n.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e}(i);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(46),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="rect",e},n.generateFacets=function(t){var e=this,n=e.fields,r=[],i=1,o=1,a=n[0],s=n[1],u=[""],l=[""];return a&&(u=e.getFieldValues(a,t),o=u.length),s&&(l=e.getFieldValues(s,t),i=l.length),u.forEach((function(n,c){l.forEach((function(f,h){var d=[{field:a,value:n,values:u},{field:s,value:f,values:l}],p=e.getFilter(d),g=t.filter(p),v={type:e.type,colValue:n,rowValue:f,colField:a,rowField:s,colIndex:c,rowIndex:h,cols:o,rows:i,data:g,region:e.getRegion(i,o,c,h)};r.push(v)}))})),r},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1?(e[t].title=null,e[t].label=null):n.colIndex!==parseInt((n.cols-1)/2)&&(e[t].title=null)},n.setYAxis=function(t,e,n){0!==n.colIndex?(e[t].title=null,e[t].label=null):n.rowIndex!==parseInt((n.rows-1)/2)&&(e[t].title=null)},n.renderTitle=function(t,e){0===e.rowIndex&&this.drawColTitle(t,e),e.colIndex===e.cols-1&&this.drawRowTitle(t,e)},e}(i);t.exports=o},function(t,e,n){var r=n(69),i=n(25),o=n(0),a=function t(e){t.superclass.constructor.call(this,e)};o.extend(a,r),o.augment(a,{getPointRauis:function(t,e){return i.getPointRadius(t,e)},getCirclePoint:function(t,e,n){var r=this,i=r.get("coord"),o=i.getCenter(),a=r._isEmitLabels(),s=r.getPointRauis(i,n);if(0===s)return null;if(i.isTransposed&&s>e&&!a){var u=Math.asin(e/(2*s));t+=2*u}else s+=e;return{x:o.x+s*Math.cos(t),y:o.y+s*Math.sin(t),angle:t,r:s}},getArcPoint:function(t,e){var n,r=this;return e=e||0,n=o.isArray(t.x)||o.isArray(t.y)?{x:o.isArray(t.x)?t.x[e]:t.x,y:o.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 o.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,o=t.text[n],a=1;i._isToMiddle(e)?r=i.getMiddlePoint(e.points):(1===t.text.length&&0===n?n=1:0===n&&(a=-1),r=i.getArcPoint(e,n));var s=i.getDefaultOffset(t);s*=a;var u=i.getPointAngle(r),l=i.getCirclePoint(u,s,r);if(l?(l.text=o,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(),o=n.getDefaultOffset(t);e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?o>0?"left":"right":o>0?"right":"left"}else e="center";return e}}),t.exports=a},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,o=[],a=[],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)||a.push(t):r.isArray(n)&&r.isNil(n[0])||r.isNil(n)?a.length&&(o.push(a),a=[]):a.push(t)})),a.length&&o.push(a),o}}},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 o=n(8),a=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),a),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,o=this.splitData(t),a=this.getDrawCfg(t[0]);i._applyViewThemeShapeStyle(a,a.shape,n),a.origin=t,s.each(o,(function(t,o){if(!s.isEmpty(t)){a.splitedIndex=o,a.points=t;var u=n.drawShape(a.shape,a,e);i.appendShapeInfo(u,r+o)}}))},n}(o);o.Path=u,t.exports=u},function(t,e){var n,r,i="#1890FF",o=["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],a=["#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",m="g2-legend",y="g2-legend-title",_="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:o,colors_16:a,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[""+m]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:c,lineHeight:"20px",color:"#8C8C8C"},n[""+y]={marginBottom:"4px"},n[""+_]={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),o=n(333),a=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,o,s,a,{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,o=n.el;return i&&r.remove(i.get("children"),this),o&&(e?i&&i._cfg.tobeRemoved.push(o):o.parentNode.removeChild(o)),(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 o=r.parentNode;o.removeChild(r),o.insertBefore(r,o.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,o=i.indexOf(this),a=n.parentNode;a.removeChild(n),o===i.length-1?a.appendChild(n):a.insertBefore(n,a.childNodes[o])}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),o=n(347),a={},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 o=t[i];if(o._cfg.visible&&o._cfg.capture&&(o.isGroup?r=o.getShape(e,n):o.isHit(e,n)&&(r=o)),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=a[t];if(i||(i=r.upperFirst(t),a[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 o[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,o=i.get("parent");o&&o.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,o=-1/0,a=t.get("children");a.length>0?r.each(a,(function(t){if(t.get("visible")){if(t.isGroup&&0===t.get("children").length)return;var r=t.getBBox();if(!r)return!0;var a=[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(a),t.apply(s),t.apply(u),t.apply(l);var c=Math.min(a[0],s[0],u[0],l[0]),f=Math.max(a[0],s[0],u[0],l[0]),h=Math.min(a[1],s[1],u[1],l[1]),d=Math.max(a[1],s[1],u[1],l[1]);c<e&&(e=c),f>n&&(n=f),h<i&&(i=h),d>o&&(o=d)}})):(e=0,n=0,i=0,o=0);var s={minX:e,minY:i,maxX:n,maxY:o};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,o=r._cfg.children;if(i){var a=[t,e,1];i.invert(a,r.get("canvas")),i.isPointInPath(a[0],a[1])&&(n=l(o,t,e))}else n=l(o,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<e.length;n++){var r=e[n];r.clearTotalMatrix()}}},clear:function(t){for(var e=this._cfg.children,n=e.length-1;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),o=n(47),a=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,a=t.endAngle,s=t.clockwise,u=this.getHitLineWidth(),l=u/2,c=o.box(e,n,r,i,a,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,o=t.clockwise,a=Math.PI/180;o&&(a*=-1);var l=[],c=s(e,i,r+a),f=u(n,i,r+a),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,o=t.clockwise,a=Math.PI/180,l=[];o&&(a*=-1);var c=s(e,i,r+a),f=u(n,i,r+a),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,o=e.startAngle,a=e.endAngle,s=e.clockwise;t=t||self.get("context"),t.beginPath(),t.arc(n,r,i,o,a,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();a.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();a.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),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(o,i),r.augment(o,{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(),o=i/2+r;return{minX:e-o,minY:n-o,maxX:e+o,maxY:n+o}},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=o},function(t,e,n){var r=n(1),i=n(7),o=function t(e){t.superclass.constructor.call(this,e)};r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,o=e.height,a=this.getHitLineWidth(),s=a/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+o+s}}}),t.exports=o},function(t,e,n){var r=n(1),i=n(7),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(o,i),r.augment(o,{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,o=this.getHitLineWidth(),a=r+o/2,s=i+o/2;return{minX:e-a,minY:n-s,maxX:e+a,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,o=e.rx,a=e.ry;t=t||self.get("context");var s=o>a?o:a,u=o>a?1:o/a,l=o>a?a/o: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=o},function(t,e,n){var r=n(1),i=n(7),o=n(47),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(a,i),r.augment(a,{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,a=e.re,s=e.startAngle,u=e.endAngle,l=e.clockwise,c=this.getHitLineWidth(),f=o.box(n,r,i,s,u,l),h=o.box(n,r,a,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),m=c/2;return{minX:d-m,minY:p-m,maxX:g+m,maxY:v+m}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,o=e.re,a=e.startAngle,s=e.endAngle,u=e.clockwise,l={x:Math.cos(a)*i+n,y:Math.sin(a)*i+r},c={x:Math.cos(a)*o+n,y:Math.sin(a)*o+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,o,a,s,u),t.lineTo(f.x,f.y),t.arc(n,r,i,s,a,!u),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(7),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(o,i),r.augment(o,{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,o=e.img,a=e.width,s=e.height,u=e.sx,l=e.sy,c=e.swidth,f=e.sheight;this.set("toDraw",!1);var h=o;if(h instanceof ImageData&&(h=new Image,h.src=o),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,a,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,a,s)}}}),t.exports=o},function(t,e,n){var r=n(1),i=n(7),o=n(49),a=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,o=this.getHitLineWidth();return a.box(e,n,r,i,o)},createPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;t=t||self.get("context"),t.beginPath(),t.moveTo(n,r),t.lineTo(i,o)},afterPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2;t=t||this.get("context"),e.startArrow&&o.addStartArrow(t,e,i,a,n,r),e.endArrow&&o.addEndArrow(t,e,n,r,i,a)},getPoint:function(t){var e=this._attrs;return{x:a.at(e.x1,e.x2,t),y:a.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 o(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function a(t,e,n,r,a,s,u,l,c){var f,h,d,p,g,v,m,y=.005,_=1/0,x=1e-4,b=[u,l];for(g=0;g<1;g+=.05)d=[o(t,n,a,g),o(e,r,s,g)],h=i.squaredDistance(b,d),h<_&&(f=g,_=h);for(_=1/0,m=0;m<32;m++){if(y<x)break;var w=f-y,j=f+y;d=[o(t,n,a,w),o(e,r,s,w)],h=i.squaredDistance(b,d),w>=0&&h<_?(f=w,_=h):(p=[o(t,n,a,j),o(e,r,s,j)],v=i.squaredDistance(b,p),j<=1&&v<_?(f=j,_=v):y*=.5)}return c&&(c.x=o(t,n,a,f),c.y=o(e,r,s,f)),Math.sqrt(_)}function s(t,e,n){var i=t+n-2*e;if(r.isNumberEqual(i,0))return[.5];var o=(t-e)/i;return o<=1&&o>=0?[o]:[]}t.exports={at:o,projectPoint:function(t,e,n,r,i,o,s,u){var l={};return a(t,e,n,r,i,o,s,u,l),l},pointDistance:a,extrema:s}},function(t,e,n){var r=n(1),i=n(7),o=n(50),a=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=a.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;l<i.length;l++){var c=i[l];n=new o(c,n,l===u-1),s.push(n)}e.setSilent("segments",s),e.setSilent("tCache",null),e.setSilent("box",null)}},calculateBox:function(){var t=this,e=t.get("segments");if(!e)return null;var n=this.getHitLineWidth(),i=1/0,o=-1/0,a=1/0,s=-1/0;return r.each(e,(function(t){t.getBBox(n);var e=t.box;e&&(e.minX<i&&(i=e.minX),e.maxX>o&&(o=e.maxX),e.minY<a&&(a=e.minY),e.maxY>s&&(s=e.maxY))})),i===1/0||a===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:i,minY:a,maxX:o,maxY:s}},_setTcache:function(){var t,e,n,i,o=0,a=0,s=[],u=this._cfg.curve;u&&(r.each(u,(function(t,e){n=u[e+1],i=t.length,n&&(o+=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]=a/o,e=l.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),a+=e,t[1]=a/o,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,o=this.get("segments");if(o.length>1)if(t=o[0].endPoint,e=o[1].endPoint,n=o[1].startTangent,i=[],r.isFunction(n)){var a=n();i.push([t.x-a[0],t.y-a[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,o=this.get("segments"),a=o.length;if(a>1)if(t=o[a-2].endPoint,e=o[a-1].endPoint,n=o[a-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 o=this._cfg.curve;if(!i)return o?{x:o[0][1],y:o[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 a=o[n];if(r.isNil(a)||r.isNil(n))return null;var s=a.length,u=o[n+1];return{x:l.at(a[s-2],u[1],u[3],u[5],1-e),y:l.at(a[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,o=0;o<i;o++)n[o].draw(t)}},afterPath:function(t){var e=this,n=e._attrs,i=e.get("segments"),o=n.path;if(t=t||e.get("context"),r.isArray(i)&&1!==i.length&&(n.startArrow||n.endArrow)&&"z"!==o[o.length-1]&&"Z"!==o[o.length-1]&&!n.fill){var a=e.getStartTangent();s.addStartArrow(t,n,a[0][0],a[0][1],a[1][0],a[1][1]);var u=e.getEndTangent();s.addEndArrow(t,n,u[0][0],u[0][1],u[1][0],u[1][1])}}}),t.exports=c},function(t,e,n){var r=n(1),i=n(7),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={points:null,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this,e=t._attrs,n=e.points,i=this.getHitLineWidth();if(!n||0===n.length)return null;var o=1/0,a=1/0,s=-1/0,u=-1/0;r.each(n,(function(t){var e=t[0],n=t[1];e<o&&(o=e),e>s&&(s=e),n<a&&(a=n),n>u&&(u=n)}));var l=i/2;return{minX:o-l,minY:a-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=o},function(t,e,n){var r=n(1),i=n(7),o=n(49),a=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 o=1/0,a=1/0,s=-1/0,u=-1/0;r.each(i,(function(t){var e=t[0],n=t[1];e<o&&(o=e),e>s&&(s=e),n<a&&(a=n),n>u&&(u=n)}));var l=n/2;return{minX:o-l,minY:a-l,maxX:s+l,maxY:u+l}},_setTcache:function(){var t,e,n=this,i=n._attrs,o=i.points,s=0,u=0,l=[];o&&0!==o.length&&(r.each(o,(function(t,e){o[e+1]&&(s+=a.len(t[0],t[1],o[e+1][0],o[e+1][1]))})),s<=0||(r.each(o,(function(n,r){o[r+1]&&(t=[],t[0]=u/s,e=a.len(n[0],n[1],o[r+1][0],o[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,o=i.points;if(!(o.length<2)){for(t=t||r.get("context"),t.beginPath(),t.moveTo(o[0][0],o[0][1]),n=1,e=o.length-1;n<e;n++)t.lineTo(o[n][0],o[n][1]);t.lineTo(o[e][0],o[e][1])}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},afterPath:function(t){var e=this,n=e._attrs,r=n.points,i=r.length-1;t=t||e.get("context"),n.startArrow&&o.addStartArrow(t,n,r[1][0],r[1][1],r[0][0],r[0][1]),n.endArrow&&o.addEndArrow(t,n,r[i-1][0],r[i-1][1],r[i][0],r[i][1])},getPoint:function(t){var e,n,i=this._attrs,o=i.points,s=this.tCache;return s||(this._setTcache(),s=this.tCache),r.each(s,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),{x:a.at(o[n][0],o[n+1][0],e),y:a.at(o[n][1],o[n+1][1],e)}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(37),o=i.parseRadius,a=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,a),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,o=e.height,a=this.getHitLineWidth(),s=a/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+o+s}},createPath:function(t){var e=this,n=e._attrs,r=n.x,i=n.y,a=n.width,s=n.height,u=n.radius;if(t=t||e.get("context"),t.beginPath(),0===u)t.rect(r,i,a,s);else{var l=o(u);t.moveTo(r+l.r1,i),t.lineTo(r+a-l.r2,i),0!==l.r2&&t.arc(r+a-l.r2,i+l.r2,l.r2,-Math.PI/2,0),t.lineTo(r+a,i+s-l.r3),0!==l.r3&&t.arc(r+a-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),o=function t(e){t.superclass.constructor.call(this,e)};o.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(o,i),r.augment(o,{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,o=t.fontVariant;t.font=[i,o,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,o=t.measureText();if(!o)return{minX:r,minY:i,maxX:r,maxY:i};var a=t._getTextHeight(),s=e.textAlign,u=e.textBaseline,l=t.getHitLineWidth(),c={x:r,y:i-a};s&&("end"===s||"right"===s?c.x-=o:"center"===s&&(c.x-=o/2)),u&&("top"===u?c.y+=a:"middle"===u&&(c.y+=a/2)),this.set("startPoint",c);var f=l/2;return{minX:c.x-f,minY:c.y-f,maxX:c.x+o+f,maxY:c.y+a+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 o=n.text;if(o){var a=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),a?e._drawTextArr(t,!1):t.strokeText(o,s,u),t.globalAlpha=1}if(e.hasFill()){var c=n.fillOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),a?e._drawTextArr(t,!0):t.fillText(o,s,u)}i.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,o=this._attrs.textBaseline,a=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+a)-f+a,"middle"===o&&(n+=f-a-(f-a)/2),"top"===o&&(n+=f-a),e?t.fillText(r,u,n):t.strokeText(r,u,n)}))},measureText:function(){var t,e=this,n=e._attrs,i=n.text,o=n.font,a=n.textArr,s=0;if(!r.isNil(i)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=o,a?r.each(a,(function(e){t=u.measureText(e).width,s<t&&(s=t),u.restore()})):(s=u.measureText(i).width,u.restore()),s}}}),t.exports=o},function(t,e,n){t.exports={isFunction:n(14),isObject:n(39),isBoolean:n(191),isNil:n(6),isString:n(15),isArray:n(4),isNumber:n(11),isEmpty:n(167),uniqueId:n(194),clone:n(80),deepMix:n(81),assign:n(10),merge:n(81),upperFirst:n(189),each:n(2),isEqual:n(83),toArray:n(57),extend:n(162),augment:n(158),remove:n(156),isNumberEqual:n(55),toRadian:n(172),toDegree:n(170),mod:n(169),clamp:n(84),createDom:n(159),modifyCSS:n(160),requestAnimationFrame:n(161),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(85),vec2:n(174),vec3:n(175),transform:n(173)}},function(t,e,n){var r=n(2),i=8,o=4;function a(t){var e=[];return r(t,(function(t){e=e.concat(t)})),e}function s(t,e){var n;for(n=e;n>0;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=a(t.data),c=l.length,f=t.maxCount||i;if(u?(e=s(c-1,f-1)+1,2===e?e=f:e<f-o&&(e=f-o)):e=f,!u&&c<=e+e/2)r=[].concat(l);else{for(var h=parseInt(c/(e-1),10),d=l.map((function(t,e){return e%h===0?l.slice(e,e+h):null})).filter((function(t){return t})),p=1,g=d.length;p<g&&(u?p*h<c-h:p<e-1);p++)r.push(d[p][0]);if(l.length){r.unshift(l[0]);var v=l[c-1];-1===r.indexOf(v)&&r.push(v)}}return n.categories=l,n.ticks=r,n}},function(t,e){var n=12;function r(t){var e=1;if(t===1/0||t===-1/0)throw new Error("Not support Infinity!");if(t<1){var r=0;while(t<1)e/=10,t*=10,r++;e.toString().length>n&&(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[0])return NaN;if(e>=t[n-1])return t[n-1];for(var i=1;i<t.length;i++){if(e<t[i])break;r=t[i]}return r}function o(t,e){var n,r=t.length;if(0===r)return NaN;if(e>t[r-1])return NaN;if(e<t[0])return t[0];for(var i=1;i<t.length;i++)if(e<=t[i]){n=t[i];break}return n}var a={snapFactorTo:function(t,e,i){if(isNaN(t))return NaN;var o=1;if(0!==t){t<0&&(o=-1),t*=o;var s=r(t);o*=s,t/=s}t="floor"===i?a.snapFloor(e,t):"ceil"===i?a.snapCeiling(e,t):a.snapTo(e,t);var u=parseFloat((t*o).toPrecision(n));if(Math.abs(o)<1&&u.toString().length>n){var l=parseInt(1/o),c=o>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=o(t,e);if(isNaN(n)||isNaN(r)){if(t[0]>=e)return t[0];var a=t[t.length-1];if(a<=e)return a}return Math.abs(e-n)<Math.abs(r-e)?n:r},snapFloor:function(t,e){return i(t,e)},snapCeiling:function(t,e){return o(t,e)},fixedBase:function(t,e){var n=e.toString(),r=n.indexOf("."),i=n.indexOf("e-");if(r<0&&i<0)return Math.round(t);var o=i>=0?parseInt(n.substr(i+2),10):n.substr(r+1).length;return o>20&&(o=20),parseFloat(t.toFixed(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(26),o=n(151),a=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(a(e,(function(t,n){e[n]=t.toString()})),!t.ticks){var r=e;if(n){var i=o({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();t<e&&(t=e),t>n&&(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 o=function(t){if(i.hasOwnProperty(t)){var e=r(t);i[e]=function(e){return new i[t](e)}}};for(var a in i)o(a);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,o=function(t,e){if(!r(t))return[];var n=t?e.length:0,o=n-1;while(n--){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t};t.exports=o},function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,o=n.slice,a=function(t){for(var e=o.call(arguments,1),n=0;n<e.length;n++){var a=e[n],s=-1;while((s=i.call(t,a))>-1)r.call(t,s,1)}return t};t.exports=a},function(t,e,n){var r=n(2),i=n(53),o=function(t){var e=[];return r(t,(function(t){i(e,t)||e.push(t)})),e};t.exports=o},function(t,e,n){var r=n(14),i=n(57),o=n(10),a=function(t){for(var e=i(arguments),n=1;n<e.length;n++){var a=e[n];r(a)&&(a=a.prototype),o(t.prototype,a)}};t.exports=a},function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,o={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 o||(e="*");var n=o[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),o=function(t,e,n,o){r(e)||(n=e,e=t,t=function(){});var a=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=a(e.prototype,t);return t.prototype=i(s,t.prototype),t.superclass=a(e.prototype,e),i(s,n),i(t,o),t};t.exports=o},function(t,e,n){var r=n(2),i=n(4),o=Object.prototype.hasOwnProperty,a=function(t,e){if(!e||!i(t))return t;var n={},a=null;return r(t,(function(t){a=e(t),o.call(n,a)?n[a].push(t):n[a]=[t]})),n};t.exports=a},function(t,e,n){var r=n(14),i=n(4),o=n(163),a=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;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}var a=o(t,e);return a};t.exports=a},function(t,e,n){var r=n(164),i=function(t,e){if(!e)return[t];var n=r(t,e),i=[];for(var o in n)i.push(n[o]);return i};t.exports=i},function(t,e,n){var r=n(2),i=n(10),o=n(378),a=n(364),s=n(380),u=n(382),l=n(390),c=n(56),f=n(401),h=n(405),d=n(409),p=n(414),g={DOMUtil:o,DomUtil:o,MatrixUtil:c,PathUtil:h,arrayUtil:a,domUtil:o,eventUtil:s,formatUtil:u,mathUtil:l,matrixUtil:c,objectUtil:f,stringUtil:d,pathUtil:h,typeUtil:p,augment:n(158),clone:n(80),debounce:n(369),deepMix:n(81),each:r,extend:n(162),filter:n(82),group:n(165),groupBy:n(163),groupToMap:n(164),indexOf:n(386),isEmpty:n(167),isEqual:n(83),isEqualWith:n(387),map:n(388),mix:i,pick:n(408),throttle:n(413),toArray:n(57),toString:n(38),uniqueId:n(194)};r([o,a,s,u,l,c,f,h,d,p],(function(t){i(g,t)})),t.exports=g},function(t,e,n){var r=n(6),i=n(21),o=n(190),a=n(193),s=Object.prototype.hasOwnProperty;function u(t){if(r(t))return!0;if(i(t))return!t.length;var e=o(t);if("Map"===e||"Set"===e)return!t.size;if(a(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}t.exports=u},function(t,e,n){var r=n(4),i=n(14),o=n(2),a=function(t,e){if(r(t)){var n=t[0],a=void 0;a=i(e)?e(t[0]):t[0][e];var s=void 0;return o(t,(function(t){s=i(e)?e(t):t[e],s>a&&(n=t,a=s)})),n}};t.exports=a},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),o=n(85);t.exports=function(t,e){return t=r(t),i(e,(function(e){switch(e[0]){case"t":o.translate(t,t,[e[1],e[2]]);break;case"s":o.scale(t,t,[e[1],e[2]]);break;case"r":o.rotate(t,t,e[1]);break;case"m":o.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),o=r.direction(t,e)>=0;return n?o?2*Math.PI-i:i:o?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 o(t,e){var n=r(e),o=n.length;if(i(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}t.exports=o},function(t,e,n){var r=n(2),i=n(14),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r(t,(function(n,r){i(t)&&"prototype"===r||e.push(r)})),e};t.exports=o},function(t,e,n){var r=n(2),i=n(14),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return r(t,(function(n,r){i(t)&&"prototype"===r||e.push(n)})),e};t.exports=o},function(t,e){t.exports=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{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?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[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"),o=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 a=[],s=n.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(r.push([n].concat(a.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===a.length&&r.push([n,a[0]]),"r"===s)r.push([n].concat(a));else while(a.length>=e[s])if(r.push([n].concat(a.splice(0,e[s]))),!e[s])break})),r}},function(t,e,n){var r=n(182),i=n(180);function o(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a),l=e+n*Math.sin(-r*a),c=e+n*Math.sin(-i*a);o=[["M",s,l],["A",n,n,0,+(i-r>180),0,u,c]]}else o=[["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 o}t.exports=function(t){if(t=r(t),!t||!t.length)return[["M",0,0]];var e=[],n=0,a=0,s=0,u=0,l=0,c=void 0,f=void 0;"M"===t[0][0]&&(n=+t[0][1],a=+t[0][2],s=n,u=a,l++,e[0]=["M",n,a]);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;g<v;g++){if(e.push(h=[]),d=t[g],c=d[0],c!==c.toUpperCase())switch(h[0]=c.toUpperCase(),h[0]){case"A":h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],h[6]=+d[6]+n,h[7]=+d[7]+a;break;case"V":h[1]=+d[1]+a;break;case"H":h[1]=+d[1]+n;break;case"R":f=[n,a].concat(d.slice(1));for(var m=2,y=f.length;m<y;m++)f[m]=+f[m]+n,f[++m]=+f[m]+a;e.pop(),e=e.concat(i(f,p));break;case"O":e.pop(),f=o(n,a,d[1],d[2]),f.push(f[0]),e=e.concat(f);break;case"U":e.pop(),e=e.concat(o(n,a,d[1],d[2],d[3])),h=["U"].concat(e[e.length-1].slice(-2));break;case"M":s=+d[1]+n,u=+d[2]+a;break;default:for(var _=1,x=d.length;_<x;_++)h[_]=+d[_]+(_%2?n:a)}else if("R"===c)f=[n,a].concat(d.slice(1)),e.pop(),e=e.concat(i(f,p)),h=["R"].concat(d.slice(-2));else if("O"===c)e.pop(),f=o(n,a,d[1],d[2]),f.push(f[0]),e=e.concat(f);else if("U"===c)e.pop(),e=e.concat(o(n,a,d[1],d[2],d[3])),h=["U"].concat(e[e.length-1].slice(-2));else for(var b=0,w=d.length;b<w;b++)h[b]=d[b];if(c=c.toUpperCase(),"O"!==c)switch(h[0]){case"Z":n=+s,a=+u;break;case"H":n=h[1];break;case"V":a=h[1];break;case"M":s=h[h.length-2],u=h[h.length-1];break;default:n=h[h.length-2],a=h[h.length-1]}}return e}},function(t,e,n){var r=n(183),i=function t(e,n,r,i,o,a,s,u,l,c){r===i&&(r+=1);var f=120*Math.PI/180,h=Math.PI/180*(+o||0),d=[],p=void 0,g=void 0,v=void 0,m=void 0,y=void 0,_=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}};if(c)g=c[0],v=c[1],m=c[2],y=c[3];else{p=_(e,n,-h),e=p.x,n=p.y,p=_(u,l,-h),u=p.x,l=p.y,e===u&&n===l&&(u+=1,l+=1);var x=(e-u)/2,b=(n-l)/2,w=x*x/(r*r)+b*b/(i*i);w>1&&(w=Math.sqrt(w),r*=w,i*=w);var j=r*r,S=i*i,M=(a===s?-1:1)*Math.sqrt(Math.abs((j*S-j*b*b-S*x*x)/(j*b*b+S*x*x)));m=M*r*b/i+(e+u)/2,y=M*-i*x/r+(n+l)/2,g=Math.asin(((n-y)/i).toFixed(9)),v=Math.asin(((l-y)/i).toFixed(9)),g=e<m?Math.PI-g:g,v=u<m?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 E=v-g;if(Math.abs(E)>f){var P=v,C=u,k=l;v=g+f*(s&&v>g?1:-1),u=m+r*Math.cos(v),l=y+i*Math.sin(v),d=t(u,l,r,i,o,0,s,C,k,[v,P,m,y])}E=v-g;var A=Math.cos(g),T=Math.sin(g),O=Math.cos(v),I=Math.sin(v),R=Math.tan(E/4),D=4/3*r*R,L=4/3*i*R,N=[e,n],F=[e+D*T,n-L*A],B=[u+D*I,l-L*O],z=[u,l];if(F[0]=2*N[0]-F[0],F[1]=2*N[1]-F[1],c)return[F,B,z].concat(d);d=[F,B,z].concat(d).join().split(",");for(var G=[],q=0,V=d.length;q<V;q++)G[q]=q%2?_(d[q-1],d[q],h).y:_(d[q],d[q+1],h).x;return G},o=function(t,e,n,r){return[t,e,n,r,n,r]},a=function(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]};t.exports=function(t,e){var n=r(t),s=e&&r(e),u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=[],f=[],h="",d="",p=void 0,g=function(t,e,n){var r=void 0,s=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(i.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,s=2*e.y-e.by):(r=e.x,s=e.y),t=["C",r,s].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(a(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(a(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(o(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(o(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(o(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(o(e.x,e.y,e.X,e.Y));break;default:break}return t},v=function(t,e){if(t[e].length>7){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)}},m=function(t,e,r,i,o){t&&e&&"M"===t[o][0]&&"M"!==e[o][0]&&(e.splice(o,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=t[o][1],r.y=t[o][2],p=Math.max(n.length,s&&s.length||0))};p=Math.max(n.length,s&&s.length||0);for(var y=0;y<p;y++){n[y]&&(h=n[y][0]),"C"!==h&&(c[y]=h,y&&(d=c[y-1])),n[y]=g(n[y],u,d),"A"!==c[y]&&"C"===h&&(c[y]="C"),v(n,y),s&&(s[y]&&(h=s[y][0]),"C"!==h&&(f[y]=h,y&&(d=f[y-1])),s[y]=g(s[y],l,d),"A"!==f[y]&&"C"===h&&(f[y]="C"),v(s,y)),m(n,s,u,l,y),m(s,n,l,u,y);var _=n[y],x=s&&s[y],b=_.length,w=s&&x.length;u.x=_[b-2],u.y=_[b-1],u.bx=parseFloat(_[b-4])||u.x,u.by=parseFloat(_[b-3])||u.y,l.bx=s&&(parseFloat(x[w-4])||l.x),l.by=s&&(parseFloat(x[w-3])||l.y),l.x=s&&x[w-2],l.y=s&&x[w-1]}return s?[n,s]:n}},function(t,e,n){var r=n(181);t.exports=function(t,e,n,i,o){if(o)return[["M",+t+ +o,e],["l",n-2*o,0],["a",o,o,0,0,1,o,o],["l",0,i-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-n,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-i],["a",o,o,0,0,1,o,-o],["z"]];var a=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return a.parsePathArray=r,a}},function(t,e,n){var r=n(38),i=function(t){return r(t).toLowerCase()};t.exports=i},function(t,e,n){var r=n(38),i=function(t){var e=r(t);return e.charAt(0).toLowerCase()+e.substring(1)};t.exports=i},function(t,e,n){var r=n(38),i=function(t){return r(t).toUpperCase()};t.exports=i},function(t,e,n){var r=n(38),i=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)};t.exports=i},function(t,e){var n={}.toString,r=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")};t.exports=r},function(t,e,n){var r=n(17),i=function(t){return r(t,"Boolean")};t.exports=i},function(t,e,n){var r=n(17),i=function(t){return r(t,"Date")};t.exports=i},function(t,e){var n=Object.prototype,r=function(t){var e=t&&t.constructor,r="function"===typeof e&&e.prototype||n;return t===r};t.exports=r},function(t,e){var n=function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={COORD_FUNC_PROPS:["rotate","scale","reflect","transpose"],GEOM_FUNC_PROPS:["position","color","size","shape","opacity","tooltip","style","animate","active","select","sets"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),i=s(r),o=n(58),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}for(var u=[{prop:"onPlotMove",event:"plotmove"},{prop:"onPlotEnter",event:"plotenter"},{prop:"onPlotLeave",event:"plotleave"},{prop:"onPlotClick",event:"plotclick"},{prop:"onPlotDblClick",event:"plotdblclick"},{prop:"onItemSelected",event:"itemselected"},{prop:"onItemUnselected",event:"itemunselected"},{prop:"onItemSelectedChange",event:"itemselectedchange"},{prop:"onTooltipChange",event:"tooltip:change"},{prop:"onTooltipShow",event:"tooltip:show"},{prop:"onTooltipHide",event:"tooltip:hide"}],l=["mouseenter","mousemove","mouseleave","click","dblclick","mousedown","mouseup","touchstart","touchmove","touchend"],c=["Mouseenter","Mousemove","Mouseleave","Click","Dblclick","Mousedown","Mouseup","Touchstart","Touchmove","Touchend"],f=["point","area","line","path","interval","schema","polygon","edge","axis-title","axis-label","axis-ticks","axis-line","axis-grid","legend-title","legend-item","legend-marker","legend-text","guide-text","guide-region","guide-line","guide-image","label"],h=["onPoint","onArea","onLine","onPath","onInterval","onSchema","onPolygon","onEdge","onAxisTitle","onAxisLabel","onAxisTicks","onAxisLine","onAxisGrid","onLegendTitle","onLegendItem","onLegendMarker","onLegendText","onGuideText","onGuideRegion","onGuideLine","onGuideImage","onLabel"],d=[],p=0;p<f.length;p+=1)for(var g=0;g<l.length;g+=1)d.push({prop:""+h[p]+c[g],event:f[p]+":"+l[g]});var v=u.concat(d);function m(){return[{prop:"onMouseEnter",event:"mouseenter"},{prop:"onMouseMove",event:"mousemove"},{prop:"onMouseLeave",event:"mouseleave"},{prop:"onClick",event:"click"},{prop:"onDblClick",event:"dblclick"},{prop:"onMouseDown",event:"mousedown"},{prop:"onMouseUp",event:"mouseup"},{prop:"onTouchStart",event:"touchstart"},{prop:"onTouchMove",event:"touchmove"},{prop:"onTouchEnd",event:"touchend"}]}function y(t){var e=m();return a.default.map(e,(function(e){var n=e.event;return e.event=t+":"+n,e})),e}var _=m(),x={onMouseEnter:i.default.object,onMouseMove:i.default.object,onMouseLeave:i.default.object,onClick:i.default.oneOfType([i.default.object,i.default.func]),onDblClick:i.default.object,onMouseDown:i.default.object,onMouseUp:i.default.object,onTouchStart:i.default.object,onTouchMove:i.default.object,onTouchEnd:i.default.object},b={onMouseEnter:i.default.func,onMouseMove:i.default.func,onMouseLeave:i.default.func,onClick:i.default.func,onDblClick:i.default.func,onMouseDown:i.default.func,onMouseUp:i.default.func,onTouchStart:i.default.func,onTouchMove:i.default.func,onTouchEnd:i.default.func};function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];a.default.each(e,(function(e){var r=e.prop,i=e.event,o=n[r];if(a.default.isFunction(o))t.on(i,o);else if(a.default.isObject(o))for(var s in o)void 0!==o[s]&&t.on(s+":"+i,o[s])}))}function j(t,e){w(t,_,e)}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];a.default.each(e,(function(e){var i=e.prop,o=e.event,s=n[i],u=r[i],l=void 0;if(!a.default.shallowEqual(s,u))if(a.default.isFunction(s)&&a.default.isFunction(u))t.off(o,s),t.on(o,u);else if(a.default.isObject(s)&&a.default.isObject(u)){for(l in s)Object.prototype.hasOwnProperty.call(s,l)&&t.off(l+":"+o,s[l]);for(l in u)Object.prototype.hasOwnProperty.call(u,l)&&t.on(l+":"+o,u[l])}}))}function M(t,e,n){S(t,_,e,n)}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];a.default.each(e,(function(e){var r=e.prop,i=e.event,o=n[r];if(a.default.isFunction(o))t.off(i,o);else if(a.default.isObject(o))for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&t.off(s+":"+i,o[s])}))}function P(t,e){E(t,_,e)}e.default={baseEventObjectTypes:x,baseEventFuncTypes:b,genBaseEvents:m,genItemBaseEvents:y,bindEvents:w,bindBaseEvents:j,updateEvents:S,updateBaseEvents:M,unbindEvents:E,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<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(45),o=p(i),a=n(88),s=n(195),u=d(s),l=n(196),c=d(l),f=n(87),h=d(f);function d(t){return t&&t.__esModule?t:{default:t}}function p(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 g(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function v(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var m=u.default.COORD_FUNC_PROPS,y=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 o.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,o=v(r,["type"]),s=t.coord(i||"rect",a.Util.without(o,m));a.Prop.init(m,o,(function(t,e){"reflect"===e?a.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&&(a.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),a.Prop.init(y,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 o=i.props,a=o.name,s=o.visible,u=v(o,["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(a?[a,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,o=v(n,["name","visible"]);i||!Object.prototype.hasOwnProperty.call(e.props,"visible")?e.g2Instance=t.axis(r,o):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,o=n.data,a=n.instance,s=n.axis,u=n.filter,l=(n.geoms,v(n,["scale","data","instance","axis","filter","geoms"])),c=void 0;c=a||t.view(r({},l)),o&&c.source(o,i),i&&c.scale(i),u&&u.forEach((function(t){c.filter(t[0],t[1])})),!0===s||a||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,o=n.axis;n.geoms,v(n,["scale","data","axis","geoms"]);i&&t.source(i,r),r&&t.scale(r),!1===o&&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 o=i.props,a=(o.type,v(o,["type"]));i.g2Instance=t.guide()[i.type](a)}}}},facet:function(t,e){var n=this,r=e.facet;if(r&&!r.g2Instance){var i=r.props,o=i.children,a=i.type,s=v(i,["children","type"]);if(o){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(a,s))}else t.facet(a,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,o=n.instance,a=n.axis;n.geoms,v(n,["scale","data","instance","axis","geoms"]);i&&t.source(i,r),r&&t.scale(r),!0===a||o||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 o=n(446);n.d(e,"easeCubic",(function(){return o["a"]})),n.d(e,"easeCubicIn",(function(){return o["b"]})),n.d(e,"easeCubicOut",(function(){return o["c"]})),n.d(e,"easeCubicInOut",(function(){return o["a"]}));var a=n(450);n.d(e,"easePoly",(function(){return a["a"]})),n.d(e,"easePolyIn",(function(){return a["b"]})),n.d(e,"easePolyOut",(function(){return a["c"]})),n.d(e,"easePolyInOut",(function(){return a["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,o=e?e.length:0,a=t?Math.min(o,t.length):0,s=new Array(a),u=new Array(o);for(i=0;i<a;++i)s[i]=n.i(r["a"])(t[i],e[i]);for(;i<o;++i)u[i]=e[i];return function(t){for(i=0;i<a;++i)u[i]=s[i](t);return u}}},function(t,e,n){"use strict";var r=n(91);e["a"]=function(t){var e=t.length;return function(i){var o=Math.floor(((i%=1)<0?++i:i)*e),a=t[(o+e-1)%e],s=t[o%e],u=t[(o+1)%e],l=t[(o+2)%e];return n.i(r["b"])((i-o/e)*e,a,s,u,l)}}},function(t,e,n){"use strict";e["a"]=function(t){return function(){return t}}},function(t,e,n){"use strict";e["a"]=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(92);e["a"]=function(t,e){var i,o={},a={};for(i in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)i in t?o[i]=n.i(r["a"])(t[i],e[i]):a[i]=e[i];return function(t){for(i in o)a[i]=o[i](t);return a}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return l}));var r=n(12),i=n(91),o=n(201),a=n(41);function s(t){return function(e){var i,o,a=e.length,s=new Array(a),u=new Array(a),l=new Array(a);for(i=0;i<a;++i)o=n.i(r["e"])(e[i]),s[i]=o.r||0,u[i]=o.g||0,l[i]=o.b||0;return s=t(s),u=t(u),l=t(l),o.opacity=1,function(t){return o.r=s(t),o.g=u(t),o.b=l(t),o+""}}}e["a"]=function t(e){var i=n.i(a["c"])(e);function o(t,e){var o=i((t=n.i(r["e"])(t)).r,(e=n.i(r["e"])(e)).r),s=i(t.g,e.g),u=i(t.b,e.b),l=n.i(a["a"])(t.opacity,e.opacity);return function(e){return t.r=o(e),t.g=s(e),t.b=u(e),t.opacity=l(e),t+""}}return o.gamma=t,o}(1);var u=s(i["a"]),l=s(o["a"])},function(t,e,n){"use strict";var r=n(59),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function a(t){return function(){return t}}function s(t){return function(e){return t(e)+""}}e["a"]=function(t,e){var u,l,c,f=i.lastIndex=o.lastIndex=0,h=-1,d=[],p=[];t+="",e+="";while((u=i.exec(t))&&(l=o.exec(e)))(c=l.index)>f&&(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=o.lastIndex;return f<e.length&&(c=e.slice(f),d[h]?d[h]+=c:d[++h]=c),d.length<2?p[0]?s(p[0].x):a(e):(e=p.length,function(t){for(var n,r=0;r<e;++r)d[(n=p[r]).i]=n.x(t);return d.join("")})}},function(t,e,n){"use strict";e["a"]=i;var r=n(96);n(95);function i(t,e){var i,o=e?e.length:0,a=t?Math.min(o,t.length):0,s=new Array(a),u=new Array(o);for(i=0;i<a;++i)s[i]=n.i(r["a"])(t[i],e[i]);for(;i<o;++i)u[i]=e[i];return function(t){for(i=0;i<a;++i)u[i]=s[i](t);return u}}},function(t,e,n){"use strict";var r=n(93);e["a"]=function(t){var e=t.length;return function(i){var o=Math.floor(((i%=1)<0?++i:i)*e),a=t[(o+e-1)%e],s=t[o%e],u=t[(o+1)%e],l=t[(o+2)%e];return n.i(r["b"])((i-o/e)*e,a,s,u,l)}}},function(t,e,n){"use strict";e["a"]=function(t){return function(){return t}}},function(t,e,n){"use strict";e["a"]=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},function(t,e,n){"use strict";var r=n(96);e["a"]=function(t,e){var i,o={},a={};for(i in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)i in t?o[i]=n.i(r["a"])(t[i],e[i]):a[i]=e[i];return function(t){for(i in o)a[i]=o[i](t);return a}}},function(t,e,n){"use strict";var r=n(12),i=n(93),o=n(208),a=n(32);function s(t){return function(e){var i,o,a=e.length,s=new Array(a),u=new Array(a),l=new Array(a);for(i=0;i<a;++i)o=n.i(r["e"])(e[i]),s[i]=o.r||0,u[i]=o.g||0,l[i]=o.b||0;return s=t(s),u=t(u),l=t(l),o.opacity=1,function(t){return o.r=s(t),o.g=u(t),o.b=l(t),o+""}}}e["a"]=function t(e){var i=n.i(a["c"])(e);function o(t,e){var o=i((t=n.i(r["e"])(t)).r,(e=n.i(r["e"])(e)).r),s=i(t.g,e.g),u=i(t.b,e.b),l=n.i(a["a"])(t.opacity,e.opacity);return function(e){return t.r=o(e),t.g=s(e),t.b=u(e),t.opacity=l(e),t+""}}return o.gamma=t,o}(1);s(i["a"]),s(o["a"])},function(t,e,n){"use strict";var r=n(60),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function a(t){return function(){return t}}function s(t){return function(e){return t(e)+""}}e["a"]=function(t,e){var u,l,c,f=i.lastIndex=o.lastIndex=0,h=-1,d=[],p=[];t+="",e+="";while((u=i.exec(t))&&(l=o.exec(e)))(c=l.index)>f&&(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=o.lastIndex;return f<e.length&&(c=e.slice(f),d[h]?d[h]+=c:d[++h]=c),d.length<2?p[0]?s(p[0].x):a(e):(e=p.length,function(t){for(var n,r=0;r<e;++r)d[(n=p[r]).i]=n.x(t);return d.join("")})}},function(t,e,n){"use strict";e["a"]=function(t){return function(){return this.matches(t)}}},function(t,e,n){"use strict";var r=n(18);e["a"]=function(t){return"string"===typeof t?new r["b"]([[document.querySelector(t)]],[document.documentElement]):new r["b"]([[t]],r["c"])}},function(t,e,n){"use strict";e["b"]=o;var r=n(217),i=n(18);function o(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e["a"]=function(){return new i["b"](this._enter||this._groups.map(r["a"]),this._parents)},o.prototype={constructor:o,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e["a"]=function(t){return new Array(t.length)}},function(t,e,n){"use strict";e["a"]=s;var r=n(102);function i(t){return function(){this.style.removeProperty(t)}}function o(t,e,n){return function(){this.style.setProperty(t,e,n)}}function a(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function s(t,e){return t.style.getPropertyValue(e)||n.i(r["a"])(t).getComputedStyle(t,null).getPropertyValue(e)}e["b"]=function(t,e,n){return arguments.length>1?this.each((null==e?i:"function"===typeof e?a:o)(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,o,a=t.__transition,s=!0;if(a){for(o in e=null==e?null:e+"",a)(n=a[o]).name===e?(i=n.state>r["a"]&&n.state<r["b"],n.state=r["c"],n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[o]):s=!1;s&&delete t.__transition}}},function(t,e,n){"use strict";var r=n(12),i=n(94);e["a"]=function(t,e){var o;return("number"===typeof e?i["b"]:e instanceof r["f"]?i["c"]:(o=n.i(r["f"])(e))?(e=o,i["c"]):i["d"])(t,e)}},function(t,e,n){var r;(function(i){"use strict";var o={},a=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s=/\d\d?/,u=/\d{3}/,l=/\d{4}/,c=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,f=/\[([^]*?)\]/gm,h=function(){};function d(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function p(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function g(t,e){t=String(t),e=e||2;while(t.length<e)t="0"+t;return t}var v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"],y=d(m,3),_=d(v,3);o.i18n={dayNamesShort:_,dayNames:v,monthNamesShort:y,monthNames:m,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?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,o.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"},o.format=function(t,e,n){var r=n||o.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=o.masks[e]||e||o.masks["default"];var i=[];return e=e.replace(f,(function(t,e){return i.push(e),"??"})),e=e.replace(a,(function(e){return e in x?x[e](t,r):e.slice(1,e.length-1)})),e.replace(/\?\?/g,(function(){return i.shift()}))},o.parse=function(t,e,n){var r=n||o.i18n;if("string"!==typeof e)throw new Error("Invalid format in fecha.parse");if(e=o.masks[e]||e,t.length>1e3)return!1;var i=!0,s={};if(e.replace(a,(function(e){if(b[e]){var n=b[e],o=t.search(n[0]);~o?t.replace(n[0],(function(e){return n[1](s,e,r),t=t.substr(o+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=o:(r=function(){return o}.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),o=n(2),a=.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=a,this.dodgeRatio=s,this.adjustNames=["x","y"]},n.getDodgeOffset=function(t,e,n){var r=this,i=t.pre,o=t.next,a=o-i,s=a*r.dodgeRatio/n,u=r.marginRatio*s,l=.5*(a-n*s-(n-1)*u)+((e+1)*s+e*u)-.5*s-.5*a;return(i+o)/2+l},n.processAdjust=function(t){var e=this,n=t.length,r=e.xField;o(t,(function(t,i){for(var o=0,a=t.length;o<a;o++){var s=t[o],u=s[r],l={pre:1===a?u-1:u-.5,next:1===a?u+1:u+.5},c=e.getDodgeOffset(l,i,n);s[r]=c}}))},e}(i);i.Dodge=u,t.exports=u},function(t,e,n){var r=n(10),i=n(33),o=n(226),a=n(231),s=n(106),u=n(229),l=n(230);r(i.prototype,s),r(o.prototype,s,u),r(a.prototype,l),i.Jitter=n(228),i.Symmetric=n(232),i.Dodge=o,i.Stack=a,t.exports=i},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),o=n(10),a={merge:n(54)},s=n(33),u=n(106),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.adjustNames=["x","y"],this.groupFields=null},n.processAdjust=function(t){var e=this,n=a.merge(t);e.adjDataArray=t,e.mergeData=n,e.adjustData(t,n),e.adjFrames=null,e.mergeData=null},n.getAdjustOffset=function(t,e){var n=Math.random(),r=e-t,i=.05*r;return t+i+.9*r*n},n._adjustGroup=function(t,e,n,r){var o=this,a=o.getAdjustRange(e,n,r);i(t,(function(t){t[e]=o.getAdjustOffset(a.pre,a.next)}))},n.adjustDim=function(t,e,n){var r=this,o=r.groupData(n,t);i(o,(function(n,i){i=parseFloat(i),r._adjustGroup(n,t,i,e)}))},e}(s);o(l.prototype,u),s.Jitter=l,t.exports=l},function(t,e,n){var r={merge:n(54),values:n(79)},i=n(165),o=n(2);t.exports={processAdjust:function(t){var e=this,n=r.merge(t),o=e.dodgeBy,a=t;o&&(a=i(n,o)),e.cacheMap={},e.adjDataArray=a,e.mergeData=n,e.adjustData(a,n),e.adjDataArray=null,e.mergeData=null},getDistribution:function(t){var e=this,n=e.adjDataArray,i=e.cacheMap,a=i[t];return a||(a={},o(n,(function(e,n){var i=r.values(e,t);i.length||i.push(0),o(i,(function(t){a[t]||(a[t]=[]),a[t].push(n)}))})),i[t]=a),a},adjustDim:function(t,e,n,r,i){var a=this,s=a.getDistribution(t),u=a.groupData(n,t);o(u,(function(n,r){var u;r=parseFloat(r),u=1===e.length?{pre:e[0]-1,next:e[0]+1}:a.getAdjustRange(t,r,e),o(n,(function(e){var n=e[t],r=s[n],o=r.indexOf(i);e[t]=a.getDodgeOffset(u,o,r.length)}))}))}}},function(t,e){t.exports={_initDefaultCfg:function(){this.xField=null,this.yField=null,this.height=null,this.size=10,this.reverseOrder=!1,this.adjustNames=["y"]},processOneDimStack:function(t){var e=this,n=e.xField,r=e.yField||"y",i=e.height,o={};e.reverseOrder&&(t=t.slice(0).reverse());for(var a=0,s=t.length;a<s;a++)for(var u=t[a],l=0,c=u.length;l<c;l++){var f=u[l],h=f.size||e.size,d=2*h/i,p=f[n];o[p]||(o[p]=d/2),f[r]=o[p],o[p]+=d}},processAdjust:function(t){this.yField?this.processStack(t):this.processOneDimStack(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(4),o=n(6),a=n(33),s=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},n.processAdjust=function(t){this.processStack(t)},n.processStack=function(t){var e=this,n=e.xField,r=e.yField,a=t.length,s={positive:{},negative:{}};e.reverseOrder&&(t=t.slice(0).reverse());for(var u=0;u<a;u++)for(var l=t[u],c=0,f=l.length;c<f;c++){var h=l[c],d=h[n]||0,p=h[r],g=d.toString();if(p=i(p)?p[1]:p,!o(p)){var v=p>=0?"positive":"negative";s[v][g]||(s[v][g]=0),h[r]=[s[v][g],p+s[v][g]],s[v][g]+=p}}},e}(a);a.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),o=n(168),a=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=o(n,(function(e){var n=e[t];return a(n)?Math.max.apply(null,n):n})),i=r[t],s=a(i)?Math.max.apply(null,i):i;return s},n._getXValuesMax=function(){var t=this,e=t.yField,n=t.xField,r={},o=t.mergeData;return i(o,(function(t){var i=t[n],o=t[e],s=a(o)?Math.max.apply(null,o):o;r[i]=r[i]||0,r[i]<s&&(r[i]=s)})),r},n.processAdjust=function(t){var e=this,n=s.merge(t);e.mergeData=n,e._processSymmetric(t),e.mergeData=null},n._processSymmetric=function(t){var e,n=this,r=n.xField,o=n.yField,s=n._getMax(o),u=t[0][0];u&&a(u[o])&&(e=n._getXValuesMax()),i(t,(function(t){i(t,(function(t){var n,u=t[o];if(a(u)){var l=t[r],c=e[l];n=(s-c)/2;var f=[];i(u,(function(t){f.push(n+t)})),t[o]=f}else n=(s-u)/2,t[o]=[n,u+n]}))}))},e}(u);u.Symmetric=l,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(15),o=n(107),a=n(34),s=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["color"],n.type="color",n.gradient=null,i(n.values)&&(n.linear=!0),n}r(e,t);var n=e.prototype;return n.getLinearValue=function(t){var e=this.gradient;if(!e){var n=this.values;e=o.gradient(n),this.gradient=e}return e(t)},e}(a);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(34),o=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["opacity"],n.type="opacity",n.gradient=null,n}return r(e,t),e}(i);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(6),o=n(4),a=n(2),s=n(34),u=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["x","y"],n.type="position",n}r(e,t);var n=e.prototype;return n.mapping=function(t,e){var n,r,s,u=this.scales,l=this.coord,c=u[0],f=u[1];if(i(t)||i(e))return[];if(o(e)&&o(t)){n=[],r=[];for(var h=0,d=0,p=t.length,g=e.length;h<p&&d<g;h++,d++)s=l.convertPoint({x:c.scale(t[h]),y:f.scale(e[d])}),n.push(s.x),r.push(s.y)}else if(o(e))t=c.scale(t),r=[],a(e,(function(e){e=f.scale(e),s=l.convertPoint({x:t,y:e}),n&&n!==s.x?(o(n)||(n=[n]),n.push(s.x)):n=s.x,r.push(s.y)}));else if(o(t))e=f.scale(e),n=[],a(t,(function(t){t=c.scale(t),s=l.convertPoint({x:t,y:e}),r&&r!==s.y?(o(r)||(r=[r]),r.push(s.y)):r=s.y,n.push(s.x)}));else{t=c.scale(t),e=f.scale(e);var v=l.convertPoint({x:t,y:e});n=v.x,r=v.y}return[n,r]},e}(s);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(34),o=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["shape"],n.type="shape",n.gradient=null,n}r(e,t);var n=e.prototype;return n.getLinearValue=function(t){var e=this.values,n=Math.round((e.length-1)*t);return e[n]},e}(i);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(34),o=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["size"],n.type="size",n.gradient=null,n}return r(e,t),e}(i);t.exports=o},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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.vec2,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,{type:"circle",tickInterval:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},_labelOffset:5})},n.parseTick=function(t,e,n){return{text:t,value:e/n}},n._getCirclePoint=function(t,e){var n=this,r=n.get("center");return e=e||n.get("radius"),{x:r.x+Math.cos(t)*e,y:r.y+Math.sin(t)*e}},n.getTickPoint=function(t){var e=this,n=e.get("startAngle"),r=e.get("endAngle"),i=n+(r-n)*t;return e._getCirclePoint(i)},n.getSideVector=function(t,e){var n=this,r=n.get("center"),i=[e.x-r.x,e.y-r.y];if(!l.isNil(t)){var o=f.length(i);f.scale(i,i,t/o)}return i},n.getSidePoint=function(t,e){var n=this,r=n.getSideVector(e,t);return{x:t.x+r[0],y:t.y+r[1]}},n.getTickEnd=function(t,e){var n=this,r=n.get("tickLine");return e=e||r.length,n.getSidePoint(t,e)},n.getTextAnchor=function(t){var e;return l.snapEqual(t[0],0)?e="center":t[0]>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"),o=i,a=t.get("startAngle"),s=t.get("endAngle"),u=t.get("inner"),l=[];if(Math.abs(s-a)===2*Math.PI)l=[["M",n,r],["m",0,-o],["a",i,o,0,1,1,0,2*o],["a",i,o,0,1,1,0,-2*o],["z"]];else{var c=t._getCirclePoint(a),f=t._getCirclePoint(s),h=Math.abs(s-a)>Math.PI?1:0,d=a>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},m={x:g[0]+n,y:g[1]+r};l=[["M",v.x,v.y],["L",c.x,c.y],["A",i,o,0,h,d,f.x,f.y],["L",m.x,m.y],["A",i*u,o*u,0,h,Math.abs(d-1),v.x,v.y]]}else l=[["M",n,r],["L",c.x,c.y],["A",i,o,0,h,d,f.x,f.y],["L",n,r]]}return l},n.addLabel=function(e,n,r){var i=this,o=i.get("label").offset||i.get("_labelOffset")||.001;n=i.getSidePoint(n,o),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"),o=t.get("endAngle"),a=o-i,s=a/(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],o=r.value*a+i,s=o%(2*Math.PI);c<u?(s<=0&&(o+=Math.PI),s>Math.PI&&(o-=Math.PI),o-=Math.PI/2,t.attr("textAlign","center")):s>Math.PI/2?o-=Math.PI:s<Math.PI/2*-1&&(o+=Math.PI),t.rotateAtStart(o)}))}},e}(c);t.exports=h},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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,{inner:0,type:"helix",line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,a:0,center:null,axisStart:null,crp:[]})},n.getLinePath=function(){var t=this,e=t.get("crp"),n=t.get("axisStart"),r=h.catmullRomToBezier(e);return r.unshift(["M",n.x,n.y]),r},n.getTickPoint=function(t){var e=this,n=e.get("startAngle"),r=e.get("endAngle"),i=n+(r-n)*t;return e._getHelixPoint(i)},n._getHelixPoint=function(t){var e=this,n=e.get("center"),r=e.get("a"),i=r*t+e.get("inner");return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},n.getSideVector=function(t,e){var n=this,r=n.get("center"),i=[e.x-r.x,e.y-r.y];if(t){var o=d.length(i);d.scale(i,i,t/o)}return i},n.getSidePoint=function(t,e){var n=this,r=n.getSideVector(e,t);return{x:t.x+r[0],y:t.y+r[1]}},n.getTickEnd=function(t,e){var n=this,r=n.get("tickLine");return e=e||r.length,n.getSidePoint(t,e)},e}(c);t.exports=p},function(t,e,n){var r=n(35);r.Base=r,r.Circle=n(238),r.Grid=n(108),r.Helix=n(239),r.Line=n(241),r.Polyline=n(242),t.exports=r},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(35),c=n(3),f=c.MatrixUtil,h=f.vec2,d=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:null,y:null,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},isVertical:!1,start:null,end:null})},n._getAvgLabelLength=function(t){var e=t.get("group").get("children");return e[1].attr("x")-e[0].attr("x")},n._getAvgLabelHeightSpace=function(t){var e=t.get("group").get("children");return e[1].attr("y")-e[0].attr("y")},n.getSideVector=function(t){var e=this,n=e.get("isVertical"),r=e.get("factor");if(!c.isNumber(t))return[0,0];var i=e.get("start"),o=e.get("end"),a=e.getAxisVector(),s=h.normalize([],a),u=!1;(n&&i.y<o.y||!n&&i.x>o.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,o=r.y-n.y;return{x:n.x+i*t,y:n.y+o*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 o=t.getMaxLabelWidth(i),a=t.get("label").offset||t.get("_labelOffset");r+=o+a}}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),m=e.position;g="start"===m?{x:this.get("start").x+v[0],y:this.get("start").y+v[1]}:"end"===m?{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 y=t.get("group"),_=y.addShape("Text",{zIndex:2,attrs:u});_.name="axis-title",t.get("appendInfo")&&_.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"),o=t.get("label").offset,a=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-o-a&&(u=-1*Math.acos((s-o-a)/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-o-a)/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 o=r.get("group"),a=o.get("children"),s=n.getAxisVector();if(a.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)&&a.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(a,(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(a()){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?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 a(){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 o=h.catmullRomToBezier(i);return o.unshift(["M",n.x,n.y]),o},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"),o=e||i.length,a=r.getSideVector(o,t,n);return{x:t.x+a[0],y:t.y+a[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 o=i.get("tickPoints");r=o[n-1]}var a=[e.x-r.x,e.y-r.y],s=d.normalize([],a),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(a()){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?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 a(){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 o,a=t.getCenter(),s=Math.sqrt((r.x-a.x)*(r.x-a.x)+(r.y-a.y)*(r.y-a.y)),u=d(r,a),c=d(i,a);if(c<u&&(c+=2*f),l.isNumberEqual(r.x,i.x)&&l.isNumberEqual(r.y,i.y)&&(n.get("start")[0]!==n.get("end")[0]||n.get("start")[1]!==n.get("end")[1]))o=[["M",r.x,r.y],["A",s,s,0,1,1,2*a.x-r.x,2*a.y-r.y],["A",s,s,0,1,1,r.x,r.y]];else{var h=(c-u)%(2*f),p=h>f?1:0;o=[["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:o},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(a()){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?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 a(){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 o,a,s=n._getElementPosition(r),u=n.get("display");if(u.line){var l=s.line;o=n._drawLine(l,i)}if(u.text&&n.get("content")){var c=s.text;a=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,m=t.start,y=t.end;if(a){d<=m.x&&a.attr("textAlign","start"),g>=y.x&&a.attr("textAlign","end");var _=n.get("direction");if("upward"===_&&p<=y.y||"upward"!==_&&v>=m.y){var x,b;"upward"===_&&p<=y.y?(x="top",b=1):(x="bottom",b=-1),a.attr("textBaseline",x);var w=0;if(n.get("display").line){w=n.get("lineLength");var j=[["M",r.x,r.y],["L",r.x,r.y+w*b]];o.attr("path",j)}var S=r.y+(w+2)*b;a.attr("y",S)}}}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,o=e.get("direction"),a=e.get("style").text;a.textBaseline="upward"===o?"bottom":"top";var s="upward"===o?-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]],o=e.addShape("path",{attrs:l.mix({path:i},r)});return o},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(a()){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?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 a(){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,o=r._getRegionData(t,n);if(o.length){var a=r._getBBox(o),s=[];s.push(["M",o[0].x,a.yMin-i]);for(var u=0,c=o.length;u<c;u++){var f=["L",o[u].x,o[u].y];s.push(f)}s.push(["L",o[o.length-1].x,a.yMin-i]);var h=r.get("style"),d=h.region,p=h.text,g=e.addGroup();g.name="guide-data-region",g.addShape("path",{attrs:l.mix({path:s},d)});var v=r.get("content");v&&g.addShape("Text",{attrs:l.mix({x:(a.xMin+a.xMax)/2,y:a.yMin-i,text:v},p)}),r.get("appendInfo")&&g.setSilent("appendInfo",r.get("appendInfo")),r.set("el",g)}},n._getRegionData=function(t,e){for(var n,r=this,i=r.get("start"),o=r.get("end"),a=c.getFirstScale(r.get("xScales")).field,s=c.getFirstScale(r.get("yScales")).field,u=l.isArray(i)?i[0]:i[a],f=l.isArray(o)?o[0]:o[a],h=[],d=0,p=e.length;d<p;d++){var g=e[d];if(g[a]===u&&(n=d),d>=n){var v=r.parsePoint(t,[g[a],g[s]]);v&&h.push(v)}if(g[a]===f)break}return h},n._getBBox=function(t){for(var e=[],n=[],r=0;r<t.length;r++)e.push(t[r].x),n.push(t[r].y);var i=l.arrayUtil.getRange(e),o=l.arrayUtil.getRange(n);return{xMin:i.min,xMax:i.max,yMin:o.min,yMax:o.max}},e}(f);t.exports=h},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(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:"html",zIndex:7,position:null,alignX:"middle",alignY:"middle",offsetX:null,offsetY:null,html:null})},n.render=function(t,e){var n=this,r=n.parsePoint(t,n.get("position"));if(r){var i=e.get("canvas").get("el").parentNode,o=c.createDom('<div class="g-guide"></div>');i.appendChild(o);var a=n.get("htmlContent")||n.get("html");if(l.isFunction(a)){var s=n.get("xScales"),u=n.get("yScales");a=a(s,u)}var f=c.createDom(a);o.appendChild(f),c.modifyCSS(o,{position:"absolute"}),n._setDomPosition(o,f,r),n.set("el",o)}},n._setDomPosition=function(t,e,n){var r=this,i=r.get("alignX"),o=r.get("alignY"),a=c.getOuterWidth(e),s=c.getOuterHeight(e),u={x:n.x,y:n.y};"middle"===i&&"top"===o?u.x-=Math.round(a/2):"middle"===i&&"bottom"===o?(u.x-=Math.round(a/2),u.y-=Math.round(s)):"left"===i&&"bottom"===o?u.y-=Math.round(s):"left"===i&&"middle"===o?u.y-=Math.round(s/2):"left"===i&&"top"===o?(u.x=n.x,u.y=n.y):"right"===i&&"bottom"===o?(u.x-=Math.round(a),u.y-=Math.round(s)):"right"===i&&"middle"===o?(u.x-=Math.round(a),u.y-=Math.round(s/2)):"right"===i&&"top"===o?u.x-=Math.round(a):(u.x-=Math.round(a/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(a()){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?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 a(){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 o=n.parsePoint(t,n.get("end"));if(!o)return;i.width=o.x-r.x,i.height=o.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 a=e.addShape("Image",{zIndex:1,attrs:i});a.name="guide-image",n.get("appendInfo")&&a.setSilent("appendInfo",n.get("appendInfo")),n.set("el",a)}},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(a()){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?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 a(){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 o=e.addGroup({viewId:e.get("viewId")});n._drawLines(r,i,o);var a=n.get("text");a&&a.content&&n._drawText(r,i,o),n.set("el",o)}},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"),o=i.position,a=i.style||{};r="start"===o?0:"center"===o?.5:l.isString(o)&&-1!==o.indexOf("%")?parseInt(o,10)/100:l.isNumber(o)?o: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,a),i.autoRotate&&l.isNil(a.rotate)){var u=f.angleTo([e.x-t.x,e.y-t.y],[1,0],1);s.rotate=u}else l.isNil(a.rotate)||(s.rotate=a.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(a()){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?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 a(){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 o=e.addShape("path",{zIndex:n.get("zIndex"),attrs:l.mix({path:i},r)});o.name="guide-region",n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo")),n.set("el",o)}},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(a()){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?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 a(){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")),o=n.get("offsetX"),a=n.get("offsetY");o&&(r.x+=o),a&&(r.y+=a),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=[],o=0;o<t.length;o++)n=t[o].getBBox(),r=e[o].getBBox(),(n.width>r.width||n.height>r.height||n.width*n.height>r.width*r.height)&&i.push(t[o]);for(var a=0;a<i.length;a++)i[a].remove()}},function(t,e,n){var r=n(111);function i(t,e,n,r){var i=t.getBBox(),o=i.width,a=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=a/2,s.textAlign="left";break;case 1:s.y-=a/2,s.textAlign="right";break;case 2:s.y+=a/2,s.textAlign="right";break;case 3:s.y+=a/2,s.textAlign="left";break;case 5:s.y-=a/2;break;case 6:s.y+=a/2;break;case 7:s.x+=o/2,s.textAlign="left";break;case 8:s.x-=o/2,s.textAlign="right";break;default:break}return t.attr(s),t.getBBox()}t.exports=function(t){for(var e,n,o,a,s,u=new r,l=[],c=0;c<t.length;c++){n=t[c],o=n.attr("x"),a=n.attr("y"),s=!1;for(var f=0;f<8;f++)if(e=i(n,o,a,f),u.hasGap(e)){u.fillGap(e),s=!0;break}s||l.push(n)}for(var h=0;h<l.length;h++)l[h].remove();return s}},function(t,e,n){var r=n(111),i=20;function o(t,e){var n,r=-1,o=t.attr("x"),a=t.attr("y"),s=t.getBBox(),u=Math.sqrt(s.width*s.width+s.height*s.height),l=-r,c=0,f=0,h=function(t){return[(t*=.1)*Math.cos(t),t*Math.sin(t)]};if(e.hasGap(s))return e.fillGap(s),!0;var d=!1,p=0;while(Math.min(Math.abs(c),Math.abs(f))<u&&p<i)if(n=h(l+=r),c=~~n[0],f=~~n[1],t.attr({x:o+c,y:a+f}),p++,e.hasGap(t.getBBox())){e.fillGap(s),d=!0;break}return d}t.exports=function(t){for(var e,n=new r,i=[],a=0;a<t.length;a++)e=t[a],o(e,n)||i.push(e);for(var s=0;s<i.length;s++)i[s].remove()}},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(113),f=n(19),h=f.FONT_FAMILY,d=l.DomUtil,p="g2-legend-list",g="g2-slip",v="g2-caret-up",m="g2-caret-down",y="rgba(0,0,0,0.65)",_="rgba(0,0,0,0.25)";function x(t,e){return t.getElementsByClassName(e)[0]}var b=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-page-legend",container:null,caretStyle:{fill:"rgba(0,0,0,0.65)"},pageNumStyle:{display:"inline-block",fontSize:"12px",fontFamily:h,cursor:"default"},slipDomStyle:{width:"auto",height:"auto",position:"absolute"},slipTpl:'<div class="'+g+'" ><svg viewBox="64 64 896 896" class="g2-caret-up" data-icon="left" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"></path></svg><p class="cur-pagenum" style = "display:inline-block;vertical-align:middle;">1</p><p class="next-pagenum" style = "display:inline-block;vertical-align:middle;"">/2</p><svg viewBox="64 64 896 896" class="g2-caret-down" data-icon="right" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg></div>',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,o=i?"block":"inline-block",a=t.offsetHeight;if(t.scrollHeight>a){var s=this.get("slipTpl"),u=d.createDom(s),c=x(u,v),f=x(u,m);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:a+"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 j=e.childNodes,S=0,M=1,E=[],P=0;P<j.length;P++)j[P].style.display=o,S=j[P].offsetTop+j[P].offsetHeight,S>a&&(M++,E.forEach((function(t){t.style.display="none"})),E=[]),E.push(j[P]);g.innerText="/"+M,j.forEach((function(t){t.style.display=o,S=t.offsetTop+t.offsetHeight,S>a&&(t.style.display="none")})),c.addEventListener("click",(function(){if(j[0].style.display!==o){var t=-1;j.forEach((function(e,n){e.style.display===o&&(t=-1===t?n:t,e.style.display="none")}));for(var e=t-1;e>=0;e--){if(j[e].style.display=o,S=j[t-1].offsetTop+j[t-1].offsetHeight,j[e].style.display="none",!(S<=a))break;j[e].style.display=o}var n=Number.parseInt(h.innerText,10)-1;c.style.fill=1===n?_:y,f.style.fill=y,h.innerText=n}})),f.addEventListener("click",(function(){if(j[j.length-1].style.display!==o){var t=-1;j.forEach((function(e,n){e.style.display===o&&(t=n,e.style.display="none")}));for(var e=t+1;e<j.length;e++){if(j[e].style.display=o,S=j[e].offsetTop+j[e].offsetHeight,j[e].style.display="none",!(S<=a))break;j[e].style.display=o}var n=Number.parseInt(h.innerText,10)+1;f.style.fill=n===M?_:y,c.style.fill=y,h.innerText=n}})),this.set("slipDom",u)}},n.destroy=function(){var e=this.get("slipDom");e&&e.parentNode&&e.parentNode.removeChild(e),t.prototype.destroy.call(this)},e}(c);t.exports=b},function(t,e,n){function r(t){return function(){var e,n=s(t);if(a()){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?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 a(){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(65),c=l.ColorUtil,f=n(3),h=n(67),d=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 f.mix({},e,{type:"color-legend",layout:"vertical",triggerAttr:{fill:"#fff",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc",radius:3},isSegment:!1})},n._setPercentage=function(){var t=this.get("items");if(!t[0].percentage){var e=t[0].value,n=t[t.length-1].value;f.each(t,(function(t){t.percentage=(t.value-e)/(n-e)}))}},n._renderSliderShape=function(){this._setPercentage();var t,e=this.get("slider"),n=e.get("backgroundElement"),r=this.get("width"),i=this.get("height"),o=this.get("layout"),a=this.get("items"),s="";return"vertical"===o?(s+="l (90) ",f.each(a,(function(e){t=c.toRGB(e.color),s+=1-e.percentage+":"+t+" "}))):(s+="l (0) ",f.each(a,(function(e){t=c.toRGB(e.color),s+=e.percentage+":"+t+" "}))),this._addMiddleBar(n,"Rect",{x:0,y:0,width:r,height:i,fill:s,strokeOpacity:0})},n._renderUnslidable=function(){this._setPercentage();var t=this.get("titleShape"),e=this.get("titleGap");e=t?t.getBBox().height+e:e;var n,r=this.get("width"),i=this.get("height"),o=this.get("layout"),a=this.get("items"),s="",u=[],l=this.get("group"),h=l.addGroup(),d=a.length;if("vertical"===o){s+="l (90) ";for(var p=0;p<d;p+=1){if(0!==p&&p!==d-1&&(u.push(["M",0,i-a[p].percentage*i]),u.push(["L",r,i-a[p].percentage*i])),n=c.toRGB(a[p].color),s+=1-a[p].percentage+":"+n+" ",this.get("isSegment")&&p>0){var g=c.toRGB(a[p-1].color);s+=1-a[p].percentage+":"+g+" "}h.addShape("text",{attrs:f.mix({},{x:r+this.get("textOffset")/2,y:i-a[p].percentage*i,text:this._formatItemValue(a[p].value)+""},this.get("textStyle"),{textAlign:"start"})})}}else{s+="l (0) ";for(var v=0;v<d;v+=1){if(0!==v&&v!==d-1&&(u.push(["M",a[v].percentage*r,0]),u.push(["L",a[v].percentage*r,i])),n=c.toRGB(a[v].color),this.get("isSegment")&&v>0){var m=c.toRGB(a[v-1].color);s+=a[v].percentage+":"+m+" "}s+=a[v].percentage+":"+n+" ",h.addShape("text",{attrs:f.mix({},{x:a[v].percentage*r,y:i+5+this.get("textOffset"),text:this._formatItemValue(a[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(a()){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?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 a(){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"),o="vertical"===r?this.get("height"):f,a=t,s=this.get("height")/2,u=this.get("frontMiddleBarStyle"),c="vertical"===r?[[0,0],[i,0],[i,o],[0,o]]:[[0,s+o],[0,s-o],[a+i-4,s-o],[a+i-4,s+o]];return this._addMiddleBar(n,"Polygon",l.mix({points:c},u))},n._addHorizontalTrigger=function(t,e,n,r){var i=this.get("slider"),o=i.get(t+"HandleElement"),a=-this.get("height")/2,s=o.addShape("circle",{attrs:l.mix({x:0,y:a,r:r},e)}),u=o.addShape("text",{attrs:l.mix(n,{x:0,y:a+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"),o=i.get(t+"HandleElement"),a=o.addShape("circle",{attrs:l.mix({x:0,y:0,r:r},e)}),s=o.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";a.attr("cursor",c),s.attr("cursor",c),this.set(t+"ButtonElement",a),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"),o=l.mix({},i),a=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",o,c,s),this._addVerticalTrigger("max",a,f,u)):(this._addHorizontalTrigger("min",o,c,s),this._addHorizontalTrigger("max",a,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,o=r+n[0]/100*(i-r),a=r+n[1]/100*(i-r),s=p+n[0]/100*(d-p),u=p+n[1]/100*(d-p);t._updateElement(o,a,s,u);var l=new Event("itemfilter",e,!0,!0);l.range=[o,a],t.emit("itemfilter",l)}))}},n._updateElement=function(e,n,r,i){t.prototype._updateElement.call(this,e,n);var o=this.get("minTextElement"),a=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)o.attr("x",r+10),a.attr("x",i+10);else{var c=-this.get("height")/2;o.attr("y",c+r+10),a.attr("y",c+i+10)}},n._addCircle=function(t,e,n,r,i){var o=this.get("group"),a=o.addGroup(),s=this.get("_unslidableCircleStyle"),u=this.get("textStyle"),c=this.get("titleShape"),f=this.get("titleGap");c&&(f+=c.getBBox().height),a.addShape("circle",{attrs:l.mix({x:t,y:e+f,r:0===n?1:n},s)}),"vertical"===this.get("layout")?a.addShape("text",{attrs:l.mix({x:i+20+this.get("textOffset"),y:e+f,text:0===r?"0":r},u)}):a.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),o=t<p?p:t,a=e>d?d:e;o>a&&(o=p,a=d),"vertical"===this.get("layout")?(this._addCircle(a,a,o,r,2*a),this._addCircle(a,2*a+h+o,a,i,2*a)):(this._addCircle(a,a,o,r,2*a),this._addCircle(2*a+h+o,a,a,i,2*a))},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(a()){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?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 a(){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"),o=this.get("height")/2,a=this.get("frontMiddleBarStyle"),s="vertical"===n?[[0,0],[r,0],[r,i],[r-4,i]]:[[0,o+i/2],[0,o+i/2-4],[r,o-i/2],[r,o+i/2]];return this._addMiddleBar(e,"Polygon",l.mix({points:s},a))},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]],o=this.get("group"),a=o.addGroup();a.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(),o=this.get("textStyle"),a=this.get("titleShape"),s=this.get("titleGap");a&&(s+=a.getBBox().height),"vertical"===this.get("layout")?i.addShape("text",{attrs:l.mix({x:t+this.get("textOffset"),y:e,text:0===n?"0":n},o)}):(e+=s+this.get("textOffset")-20,a||(e+=10),i.addShape("text",{attrs:l.mix({x:t,y:e,text:0===n?"0":n},o)}))},e}(c);t.exports=f},function(t,e,n){var r=n(3),i=r.DomUtil,o=r.Group,a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,o),r.augment(a,{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")}),o="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",o),r.attr("cursor",o),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"),o=this.get("height"),a=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");a.resetMatrix(),s.resetMatrix(),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:o}),a.translate(n*i,o),s.translate(r*i,o)):(u.attr({x:0,y:o*(1-r),width:i,height:(r-n)*o}),a.translate(1,(1-n)*o),s.translate(1,(1-r)*o))},_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,o=this.get("range"),a=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-a,d=h/n*100*c;o[1]<=o[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(o[0]=this._getRange(d,o[0]),o[1]=this._getRange(d,o[0])):(this._isElement(s,"minHandleElement")&&(o[0]=this._getRange(d,o[0])),this._isElement(s,"maxHandleElement")&&(o[1]=this._getRange(d,o[1]))),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],o[0]=this._getRange(d,o[0]),o[1]=o[0]+i,o[1]>100&&(o[1]=100,o[0]=o[1]-i)),this.emit("sliderchange",{range:o}),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(),o=r.attr("matrix")[6],a=r.attr("matrix")[7],s=o+i.width,u=a+i.height,l=t.clientX-n.x,c=t.clientY-n.y;return l<o||l>s||c<a||c>u}}),t.exports=a},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function i(t){return function(){var e,n=u(t);if(s()){var r=u(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return o(this,e)}}function o(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 s(){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 u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c=n(31),f=n(68),h=n(3),d=h.DomUtil,p=n(265),g=n(116),v=n(118),m=n(117),y="g2-tooltip",_="g2-tooltip-title",x="g2-tooltip-list",b="g2-tooltip-marker",w="g2-tooltip-value",j="g2-tooltip-list-item",S=5,M=c.Marker;function E(t,e){return t.getElementsByClassName(e)[0]}function P(t,e){return Object.keys(t).forEach((function(n){e[n]&&(t[n]=h.mix(t[n],e[n]))})),t}var C=function(t){l(n,t);i(n);var e=n.prototype;function n(e){var n;n=t.call(this,e)||this,h.assign(a(n),v),h.assign(a(n),m);var r=p;n.style=P(r,e),n._init_(),n.get("items")&&n.render();var i=n.get("crosshairs");if(i){var o="rect"===i.type?n.get("backPlot"):n.get("frontPlot"),s=new g(h.mix({plot:o,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));s.hide(),n.set("crosshairGroup",s)}return n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return h.mix({},e,{containerTpl:' <div class="'+y+'"> <div class="'+_+'"></div><ul class="'+x+'"></ul></div>',itemTpl:'<li data-index={index}>\n <svg viewBox="0 0 '+S+" "+S+'" class="'+b+'"></svg>\n {name}<span class="'+w+'">{value}</span></li>',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[y]),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=E(r,_),o=E(r,x),a=t.get("items");i&&e&&(d.modifyCSS(i,t.style[_]),i.innerHTML=n),o&&(d.modifyCSS(o,t.style[x]),h.each(a,(function(e,n){o.appendChild(t._addItem(e,n))})))},e.clear=function(){var t=this.get("container");if(this.get("htmlContent"))t&&t.remove();else{var e=E(t,_),n=E(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 o=this.get("markerGroup");o&&o.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=M.Symbols[r]),e=h.isFunction(e)?e:M.Symbols.circle;var i=e(S/2,S/2,S/2),o=i.reduce((function(t,e){return""+t+e[0]+e.slice(1).join(",")}),"");return'<path d="'+o+'" fill="'+(n.fill||"none")+'" stroke="'+(n.stroke||"none")+'" />'},e._addItem=function(t,e){var n=this.get("itemTpl"),i=h.substitute(n,h.mix({index:e},t)),o=d.createDom(i);d.modifyCSS(o,this.style[j]);var a=E(o,b);if(a){d.modifyCSS(a,r({},this.style[b],{borderRadius:"unset"}));var s=this._getMarkerSvg(t);a.innerHTML=s}var u=E(o,w);return u&&d.modifyCSS(u,this.style[w]),o},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,o=this.get("container"),a=this.get("canvas").get("el"),s=d.getWidth(a),u=d.getHeight(a),l=o.clientWidth,c=o.clientHeight,f=e,p=n,g=this.get("prePosition")||{x:0,y:0};if(l||(o.style.display="block",l=o.clientWidth,c=o.clientHeight,o.style.display="none"),this.get("enterable")?(n-=o.clientHeight/2,i=[e,n],g&&e-g.x>0?e-=o.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 m=this.get("markerItems");h.isEmpty(m)||(f=m[0].x,p=m[0].y),this.set("prePosition",i);var y=this.get("follow");y&&(o.style.left=e+"px",o.style.top=n+"px");var _=this.get("crosshairGroup");if(_){var x=this.get("items");_.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(a()){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?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 a(){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 o=r.addShape("path",{attrs:{fill:t.get("boardStyle").fill}});t.set("triangleShape",o);var a=r.addGroup();a.move(e.left,e.top);var s=a.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 o=n?n.getBBox():{width:80,height:30},a=r.left+o.width+r.right,s=r.top+o.height+r.bottom;e.attr("width",a),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"),o=r.get("plotRange"),a=i.getBBox(),s=a.width,u=a.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"))t<o.tl.x?(t=o.tl.x,r._leftTriangleShape()):t+s/2>o.tr.x?(t=o.tr.x-s,r._rightTriangleShape()):r._centerTriangleShape(),e<o.tl.y?e=o.tl.y:e+u>o.bl.y&&(e=o.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,o=r.height,a=[["M",0,0],["L",e,0],["L",e/2,n],["L",0,0],["Z"]];t.attr("path",a),t.move(i/2-e/2,o-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,o=[["M",0,0],["L",e,0],["L",0,n+3],["L",0,0],["Z"]];t.attr("path",o),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,o=r.height,a=[["M",0,0],["L",e,0],["L",e,n+4],["L",0,0],["Z"]];t.attr("path",a),t.move(i-e-1,o-4)},e}(c);t.exports=g},function(t,e,n){var r,i=n(19),o=i.FONT_FAMILY,a="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[""+a]={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:o,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 o(t,e){return!e||"object"!==r(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 s(t,e){for(var n=0;n<e.length;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)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function f(t,e,n){return f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},f(t,e,n||t)}function h(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=d(t),null===t)break;return t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var p=n(10),g=n(43),v=function(t){function e(t){var n;return i(this,e),n=o(this,d(e).call(this,t)),n._init(),n}return l(e,t),u(e,[{key:"getDefaultCfg",value:function(){var t=f(d(e.prototype),"getDefaultCfg",this).call(this);return p({},t,{start:{x:0,y:0},end:{x:0,y:0},type:"cartesian",isRect:!0})}}]),u(e,[{key:"_init",value:function(){var t=this.start,e=this.end,n={start:t.x,end:e.x},r={start:t.y,end:e.y};this.x=n,this.y=r}},{key:"convertPoint",value:function(t){var e,n;return this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y),{x:this.convertDim(e,"x"),y:this.convertDim(n,"y")}}},{key:"invertPoint",value:function(t){var e=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed?{x:n,y:e}:{x:e,y:n}}}]),e}(g);t.exports=v},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 o(t,e){return!e||"object"!==r(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 s(t,e){for(var n=0;n<e.length;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)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function f(t,e,n){return f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},f(t,e,n||t)}function h(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=d(t),null===t)break;return t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var p=n(56),g=n(55),v=n(10),m=n(43),y=p.vec2,_=function(t){function e(t){var n;return i(this,e),n=o(this,d(e).call(this,t)),n._init(),n}return l(e,t),u(e,[{key:"getDefaultCfg",value:function(){var t=f(d(e.prototype),"getDefaultCfg",this).call(this);return v({},t,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})}}]),u(e,[{key:"_init",value:function(){var t=this.width,e=this.height,n=this.radius,r=this.innerRadius,i=this.startAngle,o=this.endAngle,a=(o-i)/(2*Math.PI)+1,s=Math.min(t,e)/2;n&&n>=0&&n<=1&&(s*=n);var u=Math.floor(s*(1-r)/a),l=u/(2*Math.PI),c={start:i,end:o},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 o=this.convertDim(e,"x"),a=r*o,s=this.convertDim(n,"y");return{x:i.x+Math.cos(o)*(a+s),y:i.y+Math.sin(o)*(a+s)}}},{key:"invertPoint",value:function(t){var e=this.center,n=this.a,r=this.d+this.y.start,i=y.subtract([],[t.x,t.y],[e.x,e.y]),o=y.angleTo(i,[1,0],!0),a=o*n;y.length(i)<a&&(a=y.length(i));var s=Math.floor((y.length(i)-a)/r);o=2*s*Math.PI+o;var u=n*o,l=y.length(i)-u;l=g(l,0)?0:l;var c=this.invertDim(o,"x"),f=this.invertDim(l,"y");c=g(c,0)?0:c,f=g(f,0)?0:f;var h={};return h.x=this.isTransposed?f:c,h.y=this.isTransposed?c:f,h}}]),e}(m);t.exports=_},function(t,e,n){"use strict";var r=n(43);r.Cartesian=n(266),r.Rect=r.Cartesian,r.Polar=n(269),r.Helix=n(267),t.exports=r},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 o(t,e){return!e||"object"!==r(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 s(t,e){for(var n=0;n<e.length;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)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function f(t,e,n){return f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},f(t,e,n||t)}function h(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=d(t),null===t)break;return t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var p=n(56),g=n(55),v=n(10),m=n(43),y=p.mat3,_=p.vec2,x=p.vec3,b=function(t){function e(t){var n;return i(this,e),n=o(this,d(e).call(this,t)),n._init(),n}return l(e,t),u(e,[{key:"getDefaultCfg",value:function(){var t=f(d(e.prototype),"getDefaultCfg",this).call(this);return v({},t,{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,type:"polar",isPolar:!0})}}]),u(e,[{key:"_init",value:function(){var t=this.radius,e=this.innerRadius,n=this.center,r=this.startAngle,i=this.endAngle;while(i<r)i+=2*Math.PI;this.endAngle=i;var o,a,s=this.getOneBox(),u=s.maxX-s.minX,l=s.maxY-s.minY,c=Math.abs(s.minX)/u,f=Math.abs(s.minY)/l,h=this.width,d=this.height;d/l>h/u?(o=h/u,a={x:n.x-(.5-c)*h,y:n.y-(.5-f)*o*l}):(o=d/l,a={x:n.x-(.5-c)*o*u,y:n.y-(.5-f)*d}),t?t>0&&t<=1?t*=o:(t<=0||t>o)&&(t=o):t=o;var p={start:r,end:i},g={start:e*t,end:t};this.x=p,this.y=g,this.radius=t,this.circleCentre=a,this.center=a}},{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);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}}},{key:"getRadius",value:function(){return this.radius}},{key:"convertPoint",value:function(t){var e=this.getCenter(),n=this.isTransposed?t.y:t.x,r=this.isTransposed?t.x:t.y;return n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:e.x+Math.cos(n)*r,y:e.y+Math.sin(n)*r}}},{key:"invertPoint",value:function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],r=this.x,i=[1,0,0,0,1,0,0,0,1];y.rotate(i,i,r.start);var o=[1,0,0];x.transformMat3(o,o,i),o=[o[0],o[1]];var a=_.angleTo(o,n,r.end<r.start);g(a,2*Math.PI)&&(a=0);var s=_.length(n),u=a/(r.end-r.start);u=r.end-r.start>0?u:-u;var l=this.invertDim(s,"y"),c={};return c.x=this.isTransposed?l:u,c.y=this.isTransposed?u:l,c}}]),e}(m);t.exports=b},function(t,e,n){var r=n(0),i=n(16),o=r.PathUtil;function a(t){var e,n,r,o,a,s=t.start,u=t.end,l=t.getWidth(),c=t.getHeight(),f=200;return t.isPolar?(o=t.getRadius(),r=t.getCenter(),e=t.startAngle,n=t.endAngle,a=new i.Fan({attrs:{x:r.x,y:r.y,rs:0,re:o+f,startAngle:e,endAngle:e}}),a.endState={endAngle:n}):(a=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?a.endState={height:c+2*f}:a.endState={width:l+2*f}),a.isClip=!0,a}function s(t){if(r.isEmpty(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,o=t[0].y;return r.each(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,o=o<t.y?t.y:o})),{minX:e,maxX:n,minY:i,maxY:o,centerX:(e+n)/2,centerY:(i+o)/2}}function u(t,e){var n,r,i=t.points||t.get("origin").points,o=s(i),a=e.startAngle,u=e.endAngle,l=u-a;return e.isTransposed?(n=o.maxY*l,r=o.minY*l):(n=o.maxX*l,r=o.minX*l),n+=a,r+=a,{startAngle:r,endAngle:n}}function l(t,e,n){var i={};return t.delay&&(i.delay=r.isFunction(t.delay)?t.delay(e,n):t.delay),i.easing=r.isFunction(t.easing)?t.easing(e,n):t.easing,i.duration=r.isFunction(t.duration)?t.duration(e,n):t.duration,i.callback=t.callback,i}function c(t,e){var n,r=t._id,i=t.get("index"),o=t.getBBox(),a=t.get("origin").points,s=(o.minX+o.maxX)/2;n=a[0].y-a[1].y<=0?o.maxY:o.minY;var u=[s,n,1];t.apply(u),t.attr("transform",[["t",-s,-n],["s",1,.01],["t",s,n]]);var c={transform:[["t",-s,-n],["s",1,100],["t",s,n]]},f=l(e,i,r,c);t.animate(c,f.duration,f.easing,f.callback,f.delay)}function f(t,e){var n,r=t._id,i=t.get("index"),o=t.getBBox(),a=t.get("origin").points,s=(o.minY+o.maxY)/2;n=a[0].y-a[1].y>0?o.maxX:o.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"),o=l(e,i,r,n);t.animate(n,o.duration,o.easing,(function(){t.remove()}),o.delay)}function d(t,e,n){var r,i,o=t._id,a=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,a,o,c);t.animate(c,f.duration,f.easing,f.callback,f.delay)}function p(t,e,n){var r,i,o=t._id,a=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,a,o,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=o.pathToAbsolute(t.attr("path"));t.attr("path",[i[0]]);var a={path:i},s=l(e,r,n,a);t.animate(a,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=o.pathToAbsolute(t.attr("path")),a={path:[i[0]]},s=l(e,r,n,a);t.animate(a,s.duration,s.easing,(function(){t.remove()}),s.delay)}}function m(t,e,n,r,i){var o,s=a(n),u=t.get("canvas"),c=t._id,f=t.get("index");r?(s.attr("startAngle",r),s.attr("endAngle",r),o={endAngle:i}):o=s.endState,s.set("canvas",u),t.attr("clip",s),t.setSilent("animating",!0);var h=l(e,f,c,o);s.animate(o,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 y(t,e){var n=t._id,i=t.get("index"),o=r.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),a=r.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:o,strokeOpacity:a},u=l(e,i,n,s);t.animate(s,u.duration,u.easing,u.callback,u.delay)}function _(t,e){var n=t._id,r=t.get("index"),i={fillOpacity:0,strokeOpacity:0},o=l(e,r,n,i);t.animate(i,o.duration,o.easing,(function(){t.remove()}),o.delay)}function x(t,e,n){var r=u(t,n),i=r.endAngle,o=r.startAngle;m(t,e,n,o,i)}function b(t,e,n){if("line"===t.name){var r=t.get("canvas"),a=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=o.pathToAbsolute(a.attrs.path),h=o.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]]),m=[0,0,1];t.apply(m),t.attr("clip",c),t.attr("path",v);var y={transform:[["t",-d,0]]},_=l(e,u,s,y);t.animate(y,_.duration,_.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())}),_.delay)}}function w(t,e,n){if("area"===t.name){var r=t.get("canvas"),a=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=o.pathToAbsolute(a.attrs.path),h=o.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],m=[].concat(f.slice(0,p),[["L",g,v],["L",g,h[p][2]]],f.slice(p)),y=[0,0,1];t.apply(y),t.attr("clip",c),t.attr("path",m);var _={transform:[["t",-d,0]]},x=l(e,u,s,_);t.animate(_,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:m,zoomIn:d,pathIn:g,scaleInY:c,scaleInX:f,fanIn:x,fadeIn:y},leave:{lineWidthOut:h,zoomOut:p,pathOut:v,fadeOut:_},appear:{clipIn:m,zoomIn:d,pathIn:g,scaleInY:c,scaleInX:f,fanIn:x,fadeIn:y},update:{fadeIn:y,fanIn:x,lineSlideLeft:b,areaSlideLeft:w}}},function(t,e,n){var r=n(0),i=n(119),o=r.MatrixUtil,a=o.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 o;return o=r?i.Action[n][r]:i.getAnimation(t,e,n),o}function c(t,e,n){var o=i.getAnimateCfg(t,e);return n&&n[e]?r.deepMix({},o,n[e]):o}function f(t,e,n,i){var o,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),o=l(e,i,"leave",s.animation),r.isFunction(o)){var g=n.addShape(p,{attrs:h,index:d});if(g._id=f,g.name=e,i&&"label"!==e){var v=g.getMatrix(),m=a.multiply([],v,i.matrix);g.setMatrix(m)}u=!0,o(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")),o=l(e,n,"update",s.animation),r.isFunction(o))o(t,s,n);else{var a=r.cloneDeep(t.attr());t.attr(i),t.animate(a,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")),o=l(e,n,"enter",s.animation),r.isFunction(o)&&(o(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")),o=l(e,n,"appear",s.animation),r.isFunction(o)&&(o(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"),o=t.get("canvas"),a=o.get(i+"caches")||[];0===a.length&&(e=!1);var l,c=s(n,i),h=s(r,i),d=c.concat(h);o.setSilent(i+"caches",u(d)),l=f(a,e?d:c,o,e),l||o.draw()}}},function(t,e,n){var r=n(0),i=n(30),o=i.Axis,a=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,o,a,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},o={x:1,y:f},a=!1}else{if(r){var h="left"===c?0:1;h=l(c,h),i={x:h,y:0},o={x:h,y:1}}else{var d="right"===c?1:0;d=l(c,d),i={x:d,y:0},o={x:d,y:1}}a=!0}return i=t.convert(i),o=t.convert(o),{start:i,end:o,isVertical:a}},e._getLineCfg=function(t,e,n,r){var i,o=this._getLineRange(t,e,n,r),a=o.isVertical,s=o.start,u=o.end,l=t.center;return t.isTransposed&&(a=!a),i=a&&s.x>l.x||!a&&s.y>l.y?1:-1,{isVertical:a,factor:i,start:s,end:u}},e._getCircleCfg=function(t){var e,n={},r=t.x,i=t.y,o=i.start>i.end;e=t.isTransposed?{x:o?0:1,y:0}:{x:0,y:o?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?a.angle(l,c):-1*a.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="",o=this.options;if(o[r]&&o[r].position)i=o[r].position;else{var a=t.type;t.isRect?"x"===e?i="bottom":"y"===e&&(i=n?"right":"left"):i="helix"===a?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return i},e._getAxisDefaultCfg=function(t,e,n,i){var o=this,a=o.viewTheme,s={},u=o.options,l=e.field;if(s=r.deepMix({},a.axis[i],s,u[l]),s.viewTheme=a,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,o,a){void 0===o&&(o="");var l=this,c=l._getAxisPosition(t,i,o,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,m=t.y;r.each(p,(function(e){var n="x"===i?c:e.value,r="x"===i?e.value:c,o=t.convert({x:n,y:r});if(t.isPolar){var a=t.circleCentre;m.start>m.end&&(r=1-r),o.flag=v.start>v.end?0:1,o.radius=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2))}u.push(o)})),h.push({_id:a+"-"+i+o+"-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,o=100,a=[],s=0;s<=o;s++){var u=t.convert({x:s/100,y:0});a.push(u.x),a.push(u.y)}var l=t.convert({x:0,y:0});return e.a=n,e.startAngle=r,e.endAngle=i,e.crp=a,e.axisStart=l,e.center=t.center,e.inner=t.y.start,e},e._drawAxis=function(t,e,n,i,a,s,u){var l,c,f=this.container,h=this.canvas;"cartesian"===t.type?(l=o.Line,c=this._getLineCfg(t,e,i,u)):"helix"===t.type&&"x"===i?(l=o.Helix,c=this._getHelixCfg(t)):"x"===i?(l=o.Circle,c=this._getCircleCfg(t)):(l=o.Line,c=this._getRadiusCfg(t));var d=this._getAxisCfg(t,e,n,i,u,a);d=r.mix({},d,c),"y"===i&&s&&"circle"===s.get("type")&&(d.circle=s),d._id=a+"-"+i,r.isNil(u)||(d._id=a+"-"+i+u),r.mix(d,{canvas:h,group:f.addGroup({viewId:a})});var p=new l(d);return p.render(),this.axes.push(p),p},e.createAxis=function(t,e,n){var i,o=this,a=this.coord,s=a.type;"theta"===s||"polar"===s&&a.isTransposed||(t&&!o._isHide(t.field)&&(i=o._drawAxis(a,t,e[0],"x",n)),r.isEmpty(e)||"helix"===s||r.each(e,(function(e,r){o._isHide(e.field)||o._drawAxis(a,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),o=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,o,a=this,s=a.type,u=a.cfg,l=r.mix({start:t,end:e},u);return"theta"===s?(n=i.Polar,a.hasAction("transpose")||a.transpose(),o=new n(l),o.type=s):(n=i[r.upperFirst(s||"")]||i.Rect,o=new n(l)),a._execActions(o),o},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=o},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 o(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var a=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 o=r.get("parent");o&&o.emit(i,n)}}},e.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,o(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 a=e._getShape(t.x,t.y)||t.currentTarget,s=e._getShapeEventObj(t);if(s.shape=a,o(s),n.emit("mousemove",s),e._triggerShapeEvent(a,"mousemove",s),r&&!i(r,a)){var u=e._getShapeEventObj(t);u.shape=r,u.toShape=a,o(u),e._triggerShapeEvent(r,"mouseleave",u)}if(a&&!i(r,a)){var l=e._getShapeEventObj(t);l.shape=a,l.fromShape=r,o(l),e._triggerShapeEvent(a,"mouseenter",l)}e.currentShape=a;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=a,o(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||[],o=e._getEventObj(t,r,i);!e.curViews||0===e.curViews.length||o.toElement&&"CANVAS"===o.toElement.tagName||(n.emit("plotleave",o),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,a=e._getShapeEventObj(t);a.shape=i,o(a),n.emit("click",a),e._triggerShapeEvent(i,t.type,a),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,o(l)}"dblclick"===t.type?(n.emit("plotdblclick",l),n.emit("dblclick",a)):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,o(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,o(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,o(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=a},function(t,e,n){var r=n(0),i=n(280),o=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,o=this.yScales,a=this.view,s=this.viewTheme;return this.backContainer&&a&&(this.backGroup=this.backContainer.addGroup({viewId:a.get("_id")})),this.frontContainer&&a&&(this.frontGroup=this.frontContainer.addGroup({viewId:a.get("_id")})),e.forEach((function(e){var a=e.type,u=r.deepMix({xScales:n,yScales:o,viewTheme:s},s?s.guide[a]:{},e);a=r.upperFirst(a);var l=new i[a](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"),o=e._creatGuides();r.each(o,(function(r){var o;o=r.get("top")?e.frontGroup||e.frontContainer:e.backGroup||e.backContainer,r.render(t,o,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=o},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var i=n(0),o=n(30),a=o.Legend,s=n(282),u=n(9),l=n(122),c=n(124),f=n(5),h="_origin",d=4.5,p=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,g=["cross","tick","plus","hyphen","line","hollowCircle","hollowSquare","hollowDiamond","hollowTriangle","hollowTriangleDown","hollowHexagon","hollowBowtie"];function v(t,e,n){var r;return!i.isNil(n)&&(t=n.translate(t),e=n.translate(e),r=n.isCategory?t===e:Math.abs(t-e)<=1,r)}function m(t,e){var n;return i.each(t,(function(t){if(t.get("visible")){var r=t.getYScale();if(r.field===e)return void(n=t)}})),n}var y=function(){function t(t){var e=this;e.options={},i.mix(e,t),e.clear();var n=e.chart;e.container=n.get("frontPlot"),e.plotRange=n.get("plotRange")}var e=t.prototype;return e.clear=function(){var t=this.legends;this.backRange=null,i.each(t,(function(t){i.each(t,(function(t){t.destroy()}))})),this.legends={}},e.getBackRange=function(){var t=this.backRange;if(!t){var e=this.chart.get("backPlot");t=l(e,c(this.chart.get("plotRange")));var n=this.plotRange;t.maxX-t.minX<n.br.x-n.tl.x&&t.maxY-t.minY<n.br.y-n.tl.y&&(t={minX:n.tl.x,minY:n.tl.y,maxX:n.br.x,maxY:n.br.y}),this.backRange=t}return t},e._isFieldInView=function(t,e,n){var r=!1,o=n.get("scales"),a=o[t];return a&&a.values&&(r=i.inArray(a.values,e)),r},e._bindClickEvent=function(t,e,n){var r=this,o=r.chart,a=o.get("views"),s=e.field,u=r.options;t.on("itemclick",(function(e){if(u.onClick&&!0!==u.defaultClickHandlerEnabled)u.onClick(e);else{var l=e.item,c=e.checked,f="single"===t.get("selectedMode"),h=l.dataValue;c?(i.Array.remove(n,h),r._isFieldInView(s,h,o)&&o.filter(s,(function(t){return f?t===h:!i.inArray(n,t)})),i.each(a,(function(t){r._isFieldInView(s,h,t)&&t.filter(s,(function(t){return f?t===h:!i.inArray(n,t)}))}))):f||(n.push(h),r._isFieldInView(s,h,o)&&o.filter(s,(function(t){return!i.inArray(n,t)})),i.each(a,(function(t){r._isFieldInView(s,h,t)&&t.filter(s,(function(t){return!i.inArray(n,t)}))}))),u.onClick&&u.onClick(e),o.set("keepLegend",!0),o.set("keepPadding",!0),o.repaint(),o.set("keepPadding",!1),o.set("keepLegend",!1)}}))},e._bindClickEventForMix=function(t){var e=this,n=e.chart,r=n.getAllGeoms();t.on("itemclick",(function(t){var e=t.item.field,n=t.checked;n?i.each(r,(function(t){var n=t.getYScale().field;n===e&&t.show()})):i.each(r,(function(t){var n=t.getYScale().field;n===e&&t.hide()}))}))},e._filterLabels=function(t,e,n){if(t.get("gLabel"))t.get("gLabel").set("visible",n);else{var r=e.get("labelCfg");if(r&&r.fields&&r.fields.length>0){var o=e.getXScale(),a=e.getYScale(),s=o.field,u=a.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,o=e.field;t.on("itemfilter",(function(t){var e=t.range;r.filterShape((function(t,r,a){if(!i.isNil(t[o])){var s=t[o]>=e[0]&&t[o]<=e[1];return n._filterLabels(r,a,s),s}return!0}));for(var a=r.getAllGeoms()||[],s=function(t){var n=a[t];"heatmap"===n.get("type")&&p((function(){n.drawWithRange(e)}))},u=0;u<a.length;u++)s(u)}))},e._getShapeData=function(t){var e=t.get("origin");return i.isArray(e)&&(e=e[0]),e[h]},e._bindHoverEvent=function(t,e){var n=this,r=n.chart,o=r.getAllGeoms(),a=n.options,s=r.get("canvas");t.on("itemhover",(function(t){var r=t.item.value,u=n.pre;if(u){if(u===r)return}else i.each(o,(function(o){var u=o.get("shapeContainer"),l=o.getShapes(),c=[];if(e){var f=o.get("scales")[e];i.each(l,(function(t){var i=n._getShapeData(t);i&&v(i[e],r,f)&&c.push(t)}))}else o.getYScale().field===r&&(c=l);i.isEmpty(c)||(t.shapes=c,t.geom=o,a.onHover?(a.onHover(t),u.sort(),s.draw()):o.setShapesActived(c))})),n.pre=r})),t.on("itemunhover",(function(t){n.pre=null,a.onUnhover&&a.onUnhover(t),i.each(o,(function(t){t.get("activeShapes")&&(t.clearActivedShapes(),s.draw())}))}))},e._isFiltered=function(t,e,n){if(!t.isCategory)return!0;var r=!0;return n=t.invert(n),i.each(e,(function(e){if(t.getText(e)===t.getText(n))return r=!1,!1})),r},e._alignLegend=function(t,e,n,r){var i=this,o=i.viewTheme,a=i.container,s=a.get("canvas"),u=s.get("width"),l=s.get("height"),c=i.totalRegion,f=i.plotRange,h=i.getBackRange(),d=t.get("offset")[0]||0,p=t.get("offset")[1]||0,g=t.getHeight(),v=t.getWidth(),m=o.legend.margin,y=o.legend.legendMargin,_=i.legends[r].length,x=r.split("-"),b=0,w=0,j=_>1?c:n;if("left"===x[0]||"right"===x[0])l=f.br.y,b=i._getXAlign(x[0],u,n,h,v,m),w=e?(e.get("y")||e.get("group").get("y"))+e.getHeight()+y:i._getYAlignVertical(x[1],l,j,h,0,m,s.get("height"));else if("top"===x[0]||"bottom"===x[0])if(w=i._getYAlignHorizontal(x[0],l,n,h,g,m),e){var S=e.getWidth();b=(e.get("x")||e.get("group").get("x"))+S+y}else b=i._getXAlign(x[1],u,j,h,0,m),"right"===x[1]&&(b=f.br.x-j.totalWidth);t.move(b+d,w+p)},e._getXAlign=function(t,e,n,r,i,o){var a=r.minX-i-o[3]<0?0:r.minX-i-o[3],s="left"===t?a:r.maxX+o[1];return"center"===t&&(s=(e-n.totalWidth)/2),s},e._getYAlignHorizontal=function(t,e,n,r,i,o){var a="top"===t?r.minY-i-o[0]:r.maxY+o[2];return a},e._getYAlignVertical=function(t,e,n,r,i,o,a){var s="top"===t?r.minY-i-o[0]:e-n.totalHeight;return"center"===t&&(s=(a-n.totalHeight)/2),s},e._getSubRegion=function(t){var e=0,n=0,r=0,o=0;return i.each(t,(function(t){var i=t.getWidth(),a=t.getHeight();e<i&&(e=i),r+=i,n<a&&(n=a),o+=a})),{maxWidth:e,totalWidth:r,maxHeight:n,totalHeight:o}},e._getRegion=function(){var t=this,e=t.viewTheme,n=t.legends,r=e.legend.legendMargin,o=[],a=0,s=0;return i.each(n,(function(e){var n=t._getSubRegion(e);o.push(n),a+=n.totalWidth+r,s+=n.totalHeight+r})),{totalWidth:a,totalHeight:s,subs:o}},e._addCategoryLegend=function(t,e,n,o,l){var c=this,h=t.field,d=c.options,p=d[h];p&&(d=p);var g=c.legends;g[l]=g[l]||[];var v=c.container,m=[],y=t.getTicks(),_=!0,x=n.get("shapeType")||"point",b=n.getDefaultValue("shape")||"circle";d[h]&&d[h].marker?(b=d[h].marker,x="point",_=!1):d.marker&&(b=d.marker,x="point",_=!1);var w=c.chart,j=c.viewTheme,S=w.get("canvas"),M=c.plotRange,E=l.split("-"),P="right"===E[0]||"left"===E[0]?M.bl.y-M.tr.y:S.get("width");i.each(y,(function(e){var r=e.text,a=r,s=e.value,l=t.invert(s),h={isInCircle:n.isInCircle()},d=!o||c._isFiltered(t,o,s),p=n.getAttr("color"),g=n.getAttr("shape");if(p)if(p.callback&&p.callback.length>1){var v=Array(p.callback.length-1).fill("");h.color=p.mapping.apply(p,[l].concat(v)).join("")||j.defaultColor}else h.color=p.mapping(l).join("")||j.defaultColor;if(_&&g)if(g.callback&&g.callback.length>1){var y=Array(g.callback.length-1).fill("");b=g.mapping.apply(g,[l].concat(y)).join("")}else b=g.mapping(l).join("");var w=u.getShapeFactory(x),S=w.getMarkerCfg(b,h);f.legendMarkerRadius&&(S.radius=f.legendMarkerRadius),i.isFunction(b)&&(S.symbol=b),m.push({value:a,dataValue:l,checked:d,marker:S})}));var C,k=i.deepMix({},j.legend[E[0]],d[h]||d,{viewId:w.get("_id"),maxLength:P,items:m,container:v,position:[0,0]});if(k.title&&i.deepMix(k,{title:{text:t.alias||t.field}}),c._isTailLegend(d,n))k.chart=c.chart,k.geom=n,C=new s(k);else if(d.useHtml){var A=v.get("canvas").get("el");if(v=d.container,i.isString(v)&&/^\#/.test(v)){var T=v.replace("#","");v=document.getElementById(T)}v||(v=A.parentNode),k.container=v,void 0===k.legendStyle&&(k.legendStyle={}),k.legendStyle.CONTAINER_CLASS=r({},k.legendStyle.CONTAINER_CLASS,{position:"absolute",overflow:"auto","z-index":""===A.style.zIndex?1:parseInt(A.style.zIndex,10)+1}),d.flipPage?(k.legendStyle.CONTAINER_CLASS.height="right"===E[0]||"left"===E[0]?P+"px":"auto",k.legendStyle.CONTAINER_CLASS.width="right"!==E[0]&&"left"!==E[0]?P+"px":"auto",C=new a.CatPageHtml(k)):C=new a.CatHtml(k)}else C=new a.Category(k);return c._bindClickEvent(C,t,o),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 o=e.target.get("origin");if(o){var a=o[h]||o[0][h],s=t.field;if(a){var u=a[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,o=r.legends;o[n]=o[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),o=e.mapping(i).join("");d.push({value:n.tickValue,attrValue:o,color:o,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("-"),m=p.legend[v[0]];(g&&!1===g.slidable||g[f]&&!1===g[f].slidable)&&(m=i.mix({},m,p.legend.gradient));var y=i.deepMix({},m,g[f]||g,{items:d,attr:e,formatter:t.formatter,container:c,position:[0,0]});if(y.title&&i.deepMix(y,{title:{text:t.alias||t.field}}),"color"===e.type)s=new a.Color(y);else{if("size"!==e.type)return;s=g&&"circle"===g.sizeType?new a.CircleSize(y):new a.Size(y)}return r._bindFilterEvent(s,t),o[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,o=i.options,a=t.field,s=o[a],u=i.viewTheme;if(!1===s)return null;if(s&&s.custom)i.addCustomLegend(a);else{var l,c=o.position||u.defaultLegendPosition;c=i._adjustPosition(c,i._isTailLegend(o,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,a),o.reactive&&i._bindChartMove(t))}},e.addCustomLegend=function(t){var e=this,n=e.chart,r=e.viewTheme,o=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=m(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"),y=e.plotRange,_=u.split("-"),x="right"===_[0]||"left"===_[0]?y.bl.y-y.tr.y:v.get("width"),b=i.deepMix({},r.legend[_[0]],s,{maxLength:x,items:c,container:o,position:[0,0]});if(s.useHtml){var w=s.container;if(/^\#/.test(o)){var j=w.replace("#","");w=document.getElementById(j)}else w||(w=o.get("canvas").get("el").parentNode);b.container=w,void 0===b.legendStyle&&(b.legendStyle={}),b.legendStyle.CONTAINER_CLASS||(b.legendStyle.CONTAINER_CLASS={height:"right"===_[0]||"left"===_[0]?x+"px":"auto",width:"right"!==_[0]&&"left"!==_[0]?x+"px":"auto",position:"absolute",overflow:"auto"}),p=s.flipPage?new a.CatPageHtml(b):new a.CatHtml(b)}else p=new a.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,o=[];i.each(t,(function(t){var n=t.alias||t.field,a=r[t.field];i.each(e,(function(e){if(e.getYScale()===t&&t.values&&t.values.length>0&&!1!==a){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};o.push(h)}}))}));var a={custom:!0,items:o};n.options=i.deepMix({},a,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,o){var a=n.subs[r];i.each(e,(function(n,r){var i=e[r-1];n.get("useHtml")&&!n.get("autoPosition")||t._alignLegend(n,i,a,o)})),r++})),this},t}();t.exports=y},function(t,e,n){var r=n(154),i=n(0),o=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,a={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=a.LINEAR,r=i.Array.firstValue(e,t);return i.isArray(r)&&(r=r[0]),o.test(r)?n=a.TIME:i.isString(r)&&(n=a.CAT),n},e._getScaleCfg=function(t,e,n){var o={field:e},a=i.Array.values(n,e);if(o.values=a,!r.isCategory(t)&&"time"!==t){var s=i.Array.getRange(a);o.min=s.min,o.max=s.max,o.nice=!0}return"time"===t&&(o.nice=!1),o},e.createScale=function(t,e){var n,o=this,a=o._getDef(t),s=e||[],u=i.Array.firstValue(s,t);if(i.isNumber(t)||i.isNil(u)&&!a)n=r.identity({value:t,field:t.toString(),values:[t]});else{var l;a&&(l=a.type),l=l||o._getDefaultType(t,s);var c=o._getScaleCfg(l,t,s);a&&i.mix(c,a),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<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var i=n(0),o=n(9),a=n(30),s=a.Tooltip,u=i.MatrixUtil,l=u.vec2,c=["line","area","path","areaStack"],f=["line","area","point"],h=["marker","showMarker"];function d(t,e){var n=-1;return i.each(t,(function(t,r){var o=!0;for(var a in e)if(e.hasOwnProperty(a)&&!h.includes(a)&&!i.isObject(e[a])&&e[a]!==t[a]){o=!1;break}if(o)return n=r,!1})),n}function p(t,e){if(!t)return!1;var n="";return!!t.className&&(n=i.isNil(t.className.baseVal)?t.className:t.className.baseVal,n.includes(e))}function g(t,e){var n=t.parentNode,r=!1;while(n&&n!==document.body){if(p(n,e)){r=!0;break}n=n.parentNode}return r}function v(t){var e=[];return i.each(t,(function(t){var n=d(e,t);-1===n?e.push(t):e[n]=t})),e}var m=function(){function t(t){i.assign(this,t),this.timeStamp=0,this.locked=!1}var e=t.prototype;return e._normalizeEvent=function(t){var e=this.chart,n=this._getCanvas(),r=n.getPointByClient(t.clientX,t.clientY),i=n.get("pixelRatio");r.x=r.x/i,r.y=r.y/i;var o=e.getViewsByPoint(r);return r.views=o,r},e._getCanvas=function(){return this.chart.get("canvas")},e._getTriggerEvent=function(){var t,e=this.options,n=e.triggerOn;return n&&"mousemove"!==n?"click"===n?t="plotclick":"none"===n&&(t=null):t="plotmove",t},e._getDefaultTooltipCfg=function(){var t=this,e=t.chart,n=t.viewTheme,r=t.options,o=i.mix({},n.tooltip),a=e.getAllGeoms().filter((function(t){return t.get("visible")})),s=[];i.each(a,(function(t){var e=t.get("type"),n=t.get("adjusts"),r=!1;n&&i.each(n,(function(t){if("symmetric"===t.type||"Symmetric"===t.type)return r=!0,!1})),-1!==i.indexOf(s,e)||r||s.push(e)}));var u,l=!(!a.length||!a[0].get("coord"))&&a[0].get("coord").isTransposed;if(a.length&&a[0].get("coord")&&"cartesian"===a[0].get("coord").type)if("interval"===s[0]&&!1!==r.shared){var c=i.mix({},n.tooltipCrosshairsRect);c.isTransposed=l,u={zIndex:0,crosshairs:c}}else if(i.indexOf(f,s[0])>-1){var h=i.mix({},n.tooltipCrosshairsLine);h.isTransposed=l,u={crosshairs:h}}return i.mix(o,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 o=this,a=o.tooltip,s=o.prePoint;if(!s||s.x!==t.x||s.y!==t.y){e=v(e),o.prePoint=t;var u=o.chart,l=o.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;a.get("visible")||u.emit("tooltip:show",{x:c,y:f,tooltip:a});var h=e[0],d=h.title||h.name;a.isContentChange(d,e)&&(u.emit("tooltip:change",{tooltip:a,x:c,y:f,items:e}),d=e[0].title||e[0].name,a.setContent(d,e),i.isEmpty(n)?(a.clearMarkers(),a.set("markerItems",[])):!0===o.options.hideMarkers?a.set("markerItems",n):a.setMarkers(n,l.tooltipMarker));var p=this._getCanvas();r===p&&"mini"===a.get("type")?a.hide():(a.setPosition(c,f,r),a.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,o=t._getCanvas(),a=t._getDefaultTooltipCfg(),u=t.options;u=i.deepMix({plotRange:n.get("plotRange"),capture:!1,canvas:o,frontPlot:n.get("frontPlot"),viewTheme:r.tooltip,backPlot:n.get("backPlot")},a,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,o=r.options,a=n.point;if(a&&a.x&&a.y){var s=i.isArray(a.x)?a.x[a.x.length-1]:a.x,u=i.isArray(a.y)?a.y[a.y.length-1]:a.y;a=t.applyMatrix(s,u,1),n.x=a[0],n.y=a[1],n.showMarker=!0,"l("!==n.color.substring(0,2)||o.hasOwnProperty("useHtml")&&!o.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,o=this;if(!i.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var a=o.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===a.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,a.title);i.each(n,(function(t){var n=o._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,a.title);i.each(c,(function(t){var n=o._formatMarkerOfItem(l,e,t);n&&s.push(n)})),u=u.concat(c)}}))}else{var g=e.get("shapeContainer"),v=g.get("canvas"),m=v.get("pixelRatio"),y=g.getShape(t.x*m,t.y*m);y&&y.get("visible")&&y.get("origin")&&(u=e.getTipItems(y.get("origin"),a.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]);n<h&&(h=n,f=e)})),u=u.filter((function(t){return t.title===f.title})),s=s.filter((function(t){return t.title===f.title}))}if(!1===a.shared&&u.length>1){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]}o._setTooltip(t,u,s,n)}else o.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,a=n.marker||this.viewTheme.tooltip.marker;if(i.isFunction(a)){var s=t.get("shapeType")||"point",u=t.getDefaultValue("shape")||"circle",l=o.getShapeFactory(s),c={color:e.color},f=l.getMarkerCfg(u,c);return a(f,e)}return r({fill:e.color},a)},t}();t.exports=m},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 o=n(120),a=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,o=t.end;n=p(e.x,i.x,o.x)&&p(e.y,i.y,o.y)}else{var a=t.invert(e);n=a.x>=0&&a.y>=0&&a.x<=1&&a.y<=1}}return n}var v={};s.each(a,(function(t,e){var n=s.lowerFirst(e);v[n]=function(e){var n=new t(e);return this.addGeom(n),n}}));var m=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(a,(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}),o=new u.Coord(e.coord);this.set("scaleController",i),this.set("coordController",o);var a=new u.Axis({canvas:r,viewTheme:n});this.set("axisController",a);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;i<t.length;i++){var o=t[i];o.set("data",e),o.set("coord",n),o.set("_id",r+"-geom"+i),o.set("keyFields",this.get("keyFields")),o.init()}},e._clearGeoms=function(){for(var t=this,e=t.get("geoms"),n=0;n<e.length;n++){var r=e[n];r.clear()}},e._removeGeoms=function(){var t=this,e=t.get("geoms");while(e.length>0){var n=e.shift();n.destroy()}},e._drawGeoms=function(){this.emit("beforedrawgeoms");for(var t=this.get("geoms"),e=this.get("coord"),n=0;n<t.length;n++){var r=t[n];r.setCoord(e),r.paint()}this.emit("afterdrawgeoms")},e.isShapeInView=function(t){var e=this.get("_id"),n=t._id;if(n)return n.split("-")[0]===e;var r=t;while(r){if(r.get("viewId")===e)return!0;r=r.get("parent")}return!1},e.getViewRegion=function(){var t,e,n=this,r=n.get("parent");if(r){var i=r.getViewRegion(),o=n._getViewRegion(i.start,i.end);t=o.start,e=o.end}else t=n.get("start"),e=n.get("end");return{start:t,end:e}},e._getViewRegion=function(t,e){var n=this.get("start"),r=this.get("end"),i=n.x,o=1-r.y,a=r.x,u=1-n.y,l=this.get("padding"),c=s.toAllPadding(l),f=c[0],h=c[1],d=c[2],p=c[3],g={x:i*(e.x-t.x)+t.x+p,y:o*(e.y-t.y)+t.y-d},v={x:a*(e.x-t.x)+t.x-h,y:u*(e.y-t.y)+t.y+f};return{start:g,end:v}},e._createCoord=function(){var t=this.get("coordController"),e=this.getViewRegion(),n=t.createCoord(e.start,e.end);this.set("coord",n)},e._renderAxes=function(){var t=this.get("options"),e=t.axes;if(!1!==e){var n=this.get("axisController");n.container=this.get("backPlot"),n.coord=this.get("coord"),n.options=e||{};var r=this.getXScale(),i=this.getYScales(),o=this.get("_id");n.createAxis(r,i,o)}},e._renderGuides=function(){var t=this.get("guideController");if(!s.isEmpty(t.options)){var e=this.get("coord");t.view=this,t.backContainer=this.get("backPlot"),t.frontContainer=this.get("frontPlot"),t.xScales=this._getScales("x"),t.yScales=this._getScales("y"),t.render(e)}},e._bindEvents=function(){var t=new u.Event({view:this,canvas:this.get("canvas")});t.bindEvents(),this.set("eventController",t)},e._clearEvents=function(){var t=this.get("eventController");t&&t.clearEvents()},e._getScales=function(t){for(var e=this.get("geoms"),n={},r=0;r<e.length;r++){var i=e[r],o="x"===t?i.getXScale():i.getYScale();o&&!n[o.field]&&(n[o.field]=o)}return n},e._adjustScale=function(){this._setCatScalesRange();for(var t=this.get("geoms"),e=this.get("scaleController"),n=e.defs,r=0;r<t.length;r++){var i=t[r];if("interval"===i.get("type")){var o=i.getYScale(),a=o.field,s=o.min,u=o.max,l=o.type;n[a]&&n[a].min||"time"===l||(s>0?o.change({min:0}):u<=0&&o.change({max:0}))}}},e._setCatScalesRange=function(){var t=this,e=t.get("coord"),n=t.get("viewTheme"),r=t.getXScale(),i=t.getYScales(),o=[];r&&o.push(r),o=o.concat(i);var a=e.isPolar&&d(e),u=t.get("scaleController"),l=u.defs;s.each(o,(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 o=1,s=0;a?e.isTransposed?(o=n.widthRatio.multiplePie,s=1/i*o,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;n<t.length;n++){var r=t[n],i=r.getYScale();i&&-1===s.indexOf(e,i)&&e.push(i)}return e},e.getXY=function(t){var e,n,r=this,i=r.get("coord"),o=r._getScales("x"),a=r._getScales("y");for(var u in t)o[u]&&(e=o[u].scale(t[u])),a[u]&&(n=a[u].scale(t[u]));return s.isNil(e)||s.isNil(n)?null:i.convert({x:e,y:n})},e.getSnapRecords=function(t){var e=this,n=e.get("geoms"),r=[];return s.each(n,(function(e){var n,i=e.get("dataArray");s.each(i,(function(i){n=e.findPoint(t,i),n&&r.push(n)}))})),r},e.addGeom=function(t){var e=this,n=e.get("geoms");n.push(t),t.set("view",e);var r=e.get("viewContainer");t.set("container",r),t.set("animate",e.get("animate")),t.bindEvents()},e.removeGeom=function(t){var e=this.get("geoms");s.Array.remove(e,t),t.destroy()},e.createScale=function(t,e){var n=this.get("scales"),r=this.get("parent"),i=n[t];if(!e){var o=this.get("filteredData"),a=this._getFieldsForLegend();e=o.length&&!a.includes(t)?o:this.get("data")}var s=this.get("scaleController");if(i){if(i.sync){var u=s.createScale(t,e);this._syncScale(i,u)}}else{if(i=s.createScale(t,e),i.sync&&r){var l=r.createScale(t,e);i=this._getSyncScale(l,i)}n[t]=i}return i},e._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return s.each(e,(function(e){var n=e.getFieldsForLegend();t=t.concat(n)})),s.uniq(t)},e._getSyncScale=function(t,e){return t.type!==e.type?e:(this._syncScale(t,e),t)},e._syncScale=function(t,e){var n=s.union(t.values,e.values);if(e.isLinear){var r=Math.max(t.max,e.max),i=Math.min(t.min,e.min);t.max===r&&t.min===i||t.change({min:i,max:r,values:n})}n.length!==t.values.length&&t.change({values:n})},e.getFilteredValues=function(t){var e,n=this.get("scales")[t],r=n.values,i=this._getFilters();return e=i&&i[t]?r.filter(i[t]):r.slice(0),e},e.getFilteredOutValues=function(t){var e,n=this.get("scales")[t],r=n.values,i=this._getFilters();return e=i&&i[t]?r.filter((function(){return!i[t].apply(i,arguments)})):[],e},e.filter=function(t,e){var n=this.get("options");n.filters||(n.filters={}),n.filters[t]=e,this.get("scaleController").filters=n.filters},e._getFilters=function(){var t=this.get("options");return t.filters},e.execFilter=function(t){var e=this,n=e._getFilters();return n&&(t=t.filter((function(t){var e=!0;return s.each(n,(function(n,r){if(n&&(e=n(t[r],t),!e))return!1})),e}))),t},e.axis=function(t,e){var n=this.get("options");if(!1===t)n.axes=!1;else{n.axes||(n.axes={});var r=n.axes;r[t]=e}return this},e.guide=function(){return this.get("guideController")},e._getKeyFields=function(t){var e=[];s.each(t,(function(t,n){t.key&&e.push(n)})),this.set("keyFields",e)},e.scale=function(t,e){var n=this.get("options"),r=n.scales;return s.isObject(t)?s.mix(r,t):r[t]=e,this._getKeyFields(r),this},e.tooltip=function(t){return this.set("tooltipEnable",t),this},e.animate=function(t){var e=this.get("options");return e.animate=t,this.set("animate",t),this},e.changeOptions=function(t){return this.set("options",t),this._initOptions(t),this},e.getViewsByPoint=function(t){var e=[],n=this.get("views");return g(this.get("coord"),t)&&e.push(this),s.each(n,(function(n){n.get("visible")&&g(n.get("coord"),t)&&e.push(n)})),e},e.eachShape=function(t){var e=this,n=e.get("views"),r=e.get("canvas");s.each(n,(function(e){e.eachShape(t)}));var i=this.get("geoms");return s.each(i,(function(n){var r=n.getShapes();s.each(r,(function(r){var i=r.get("origin");if(s.isArray(i)){var o=i.map((function(t){return t[f]}));t(o,r,n,e)}else{var a=i[f];t(a,r,n,e)}}))})),r.draw(),this},e.filterShape=function(t){var e=function(e,n,r,i){t(e,n,r,i)?n.show():n.hide()};return this.eachShape(e),this},e.clearInner=function(){this.set("scales",{}),this.emit("beforeclearinner");var t=this.get("options");t.geoms=null,this._clearGeoms(),this.get("guideController")&&this.get("guideController").reset(),this.get("axisController")&&this.get("axisController").clear(),this.emit("afterclearinner")},e.clear=function(){var t=this.get("options");return t.filters=null,this._removeGeoms(),this.clearInner(),this.get("guideController")&&this.get("guideController").clear(),this.set("isUpdate",!1),this.set("keyFields",[]),this},e.coord=function(t,e){var n=this.get("coordController");return n.reset({type:t,cfg:e}),n},e.resetCoord=function(){this._createCoord()},e.source=function(t,e){return this._initData(t),e&&this.scale(e),this.emit("setdata"),this},e.changeData=function(t){return this.emit("beforechangedata"),this._initData(t),this.emit("afterchangedata"),this.repaint(),this},e._initData=function(t){var e=this.get("dataView");e&&(e.off("change",s.getWrapBehavior(this,"_onViewChange")),this.set("dataView",null)),t&&t.isDataView&&(t.on("change",s.wrapBehavior(this,"_onViewChange")),this.set("dataView",t),t=t.rows),this.set("data",t)},e._onViewChange=function(){this.emit("beforechangedata");var t=this.get("dataView"),e=t.rows;this.set("data",e),this.emit("afterchangedata"),this.repaint()},e.beforeRender=function(){var t=this.get("views");s.each(t,(function(t){t.beforeRender()})),this.initView()},e.drawComponents=function(){var t=this.get("views");s.each(t,(function(t){t.drawComponents()})),this._renderAxes(),this._renderGuides()},e.drawCanvas=function(t){if(!t){var e=this.get("views"),n=this.get("backPlot");n.sort();var r=this.get("canvas"),i=this.get("animate");if(i){var o=this.get("isUpdate");s.each(e,(function(t){h.execAnimation(t,o)})),h.execAnimation(this,o)}else r.draw()}},e.render=function(t){return this.clearInner(),this.emit("beforerender"),this.beforeRender(),this.emit("beforepaint"),this.drawComponents(),this.paint(),this.emit("afterpaint"),this.drawCanvas(t),this.emit("afterrender"),this.set("rendered",!0),this},e.initView=function(){var t=this.get("data")||[],e=this.execFilter(t);this.set("filteredData",e),this._createCoord(),this.emit("beforeinitgeoms"),this._initGeoms(),this._adjustScale()},e.paint=function(){var t=this.get("views");s.each(t,(function(t){t.paint()}));var e=this.get("data");s.isEmpty(e)||this._drawGeoms(),this.get("visible")||this.changeVisible(!1,!0)},e.changeVisible=function(t,e){var n=this.get("geoms");if(s.each(n,(function(e){e.changeVisible(t,!0)})),this.get("axisController")&&this.get("axisController").changeVisible(t),this.get("guideController")&&this.get("guideController").changeVisible(t),!e){var r=this.get("canvas");r.draw()}},e.repaint=function(){this.set("isUpdate",!0),this.clearInner(),this.render()},e.destroy=function(){this._clearEvents();var e=this.get("dataView");e&&e.off("change",s.getWrapBehavior(this,"_onViewChange")),this.clear(),t.prototype.destroy.call(this)},n}(o);t.exports=m},function(t,e,n){var r=n(30),i=r.Guide,o=n(281);i.RegionFilter=o,t.exports=i},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),o=n(20),a=n(31),s=a.Path,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 i.mix({},e,{name:"regionFilter",zIndex:1,top:!0,start:null,end:null,color:null,apply:null,style:{opacity:1}})},n.render=function(t,e,n,r){var i=this,o=e.addGroup();o.name="guide-region-filter",r.once("afterpaint",(function(){if(!o.get("destroyed")){i._drawShapes(r,o);var e=i._drawClip(t);o.attr({clip:e}),i.set("clip",e),i.get("appendInfo")&&o.setSilent("appendInfo",i.get("appendInfo")),i.set("el",o)}}))},n._drawShapes=function(t,e){var n=this,r=[],o=t.getAllGeoms();return o.map((function(t){var o=t.getShapes(),a=t.get("type"),s=n._geomFilter(a);return s&&o.map((function(t){var o=t.type,a=i.cloneDeep(t.attr());n._adjustDisplay(a);var s=e.addShape(o,{attrs:a});return r.push(s),t})),t})),r},n._drawClip=function(t){var e=this,n=e.parsePoint(t,e.get("start")),r=e.parsePoint(t,e.get("end")),i=[["M",n.x,n.y],["L",r.x,n.y],["L",r.x,r.y],["L",n.x,r.y],["z"]],o=new s({attrs:{path:i,opacity:1}});return o},n._adjustDisplay=function(t){var e=this,n=e.get("color");t.fill&&(t.fill=t.fillStyle=n),t.stroke=t.strokeStyle=n},n._geomFilter=function(t){var e=this,n=e.get("apply");return!n||i.contains(n,t)},n.clear=function(){t.prototype.clear.call(this);var e=this.get("clip");e&&e.remove()},e}(o);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(0),o=n(30),a=n(5),s=o.Legend,u=s.Category,l=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,{type:"tail-legend",layout:"vertical",autoLayout:!0})},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=0,o=this.get("unCheckColor"),a=e.addGroup({x:0,y:0,value:t.value,scaleValue:t.scaleValue,checked:t.checked});a.translate(n,r),a.set("viewId",e.get("viewId"));var s=this.get("textStyle"),u=this.get("_wordSpaceing"),l=0;if(t.marker){var c=i.mix({},t.marker,{x:t.marker.radius,y:0});t.checked||(c.fill&&(c.fill=o),c.stroke&&(c.stroke=o));var f=a.addShape("marker",{type:"marker",attrs:c});f.attr("cursor","pointer"),f.name="legend-marker",l+=f.getBBox().width+u}var h=i.mix({},s,{x:l,y:0,text:this._formatItemValue(t.value)});t.checked||i.mix(h,{fill:o});var d=a.addShape("text",{attrs:h});d.attr("cursor","pointer"),d.name="legend-text",this.get("appendInfo")&&d.setSilent("appendInfo",this.get("appendInfo"));var p=a.getBBox(),g=this.get("itemWidth"),v=a.addShape("rect",{attrs:{x:n,y:r-p.height/2,fill:"#fff",fillOpacity:0,width:g||p.width,height:p.height}});return v.attr("cursor","pointer"),v.setSilent("origin",t),v.name="legend-item",this.get("appendInfo")&&v.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},n._adjust=function(){var t=this,e=t.get("geom");if(e){var n=t.get("group").attr("matrix");n[7]=0;var r=t.get("geom").get("dataArray"),o=this.get("itemsGroup").get("children"),a=0;i.each(o,(function(t){var e=r[a],n=e[e.length-1].y;i.isArray(n)&&(n=n[1]);var o=t.getBBox().height,s=t.get("x"),u=n-o/2;t.translate(s,u),a++})),t.get("autoLayout")&&t._antiCollision(o)}},n.render=function(){var e=this;t.prototype.render.call(this);var n=this.get("chart");n.once("afterpaint",(function(){e._adjust()}))},n._getPreviousY=function(t){var e=t.attr("matrix")[7],n=t.getBBox().height;return e+n},n._adjustDenote=function(t,e,n){var r=a.legend.legendMargin,i=-2,o=2*-r;t.addShape("path",{attrs:{path:"M"+i+","+e+"L"+o+","+(n+3),lineWidth:1,lineDash:[2,2],stroke:"#999999"}})},n._antiCollision=function(t){if(void 0===t&&(t=[]),t.length){var e=this;t.sort((function(t,e){var n=t.attr("matrix")[7],r=e.attr("matrix")[7];return n-r}));var n=!0,r=e.get("chart").get("plotRange"),i=r.tl.y,o=Math.abs(i-r.bl.y),a=t[0].getBBox().height,s=Number.MIN_VALUE,u=0,l=t.map((function(t){var e=t.attr("matrix")[7];return e>u&&(u=e),e<s&&(s=e),{size:t.getBBox().height,targets:[e-i]}}));s-=i;var c=0;while(n){for(var f=0;f<l.length;f++){var h=l[f],d=(Math.min.apply(s,h.targets)+Math.max.apply(s,h.targets))/2;h.pos=Math.min(Math.max(s,d-h.size/2),o-h.size)}n=!1,c=l.length;while(c--)if(c>0){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+a;n.targets.forEach((function(){var i=t[c].attr("matrix")[7],o=n.pos+r-a/2,s=Math.abs(i-o);s>a/2&&e._adjustDenote(v,o,i-e.get("group").attr("matrix")[7]/2),t[c].translate(0,-i),t[c].translate(0,o),r+=a,c++}))}))}},e}(u);t.exports=l},function(t,e,n){var r=n(0),i=n(16),o=i.Group,a="auto",s=function t(e){t.superclass.constructor.call(this,e)};r.extend(s,o),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"),o=t.get("height")||n.get("height"),a={x:0,y:0,width:i,height:o},s=t.get("backgroundShape");s?s.attr(a):(s=this.addShape("rect",{attrs:r.mix(a,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,o=n.br.y-n.tr.y,a=n.tl,s={x:a.x,y:a.y,width:i,height:o},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===a)t=0;else if(t.includes("%")){var n=this.get("canvas"),i=this.get("width")||n.get("width"),o=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*i:t*o}return t},_calculateRange:function(){var t=this,e=t.get("plotRange");r.isNil(e)&&(e={});var n=t.get("padding"),i=this.get("canvas"),o=t.get("width")||i.get("width"),a=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,o-l),d=Math.max(f,o-l),p=Math.min(a-c,u),g=Math.max(a-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 o(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var 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="circle",e},n.getRegion=function(t,e){var n=.5,r=2*Math.PI/t,i=-1*Math.PI/2+r*e,a=n/(1+1/Math.sin(r/2)),s={x:.5,y:.5},u=o(s,n-a,i),l=5*Math.PI/4,c=1*Math.PI/4;return{start:o(u,a,l),end:o(u,a,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),o=i.length,a=[];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:o,rows:1,rowIndex:0,data:c,region:e.getRegion(o,s)};a.push(f)})),a},e}(i);t.exports=a},function(t,e,n){var r=n(0),i=n(44),o={};o.Rect=n(126),o.List=n(125),o.Circle=n(284),o.Tree=n(288),o.Mirror=n(287),o.Matrix=n(286),i.prototype.facet=function(t,e){var n=o[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 a=new n(e);this.set("facets",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(126),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="matrix",e.showTitle=!1,e},n.generateFacets=function(t){for(var e=this,n=e.fields,r=n.length,i=r,o=[],a=0;a<i;a++)for(var s=n[a],u=0;u<r;u++){var l=n[u],c={type:e.type,colValue:s,rowValue:l,colField:s,rowField:l,colIndex:a,rowIndex:u,cols:i,rows:r,data:t,region:e.getRegion(r,i,a,u)};o.push(c)}return o},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].title=null,e[t].label=null)},n.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e}(i);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(125),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="mirror",this.transpose=!1,e},n.init=function(){var e=this;e.transpose?(e.cols=2,e.rows=1):(e.cols=1,e.rows=2),t.prototype.init.call(this)},n.beforeProcessView=function(t,e){this.transpose?e.colIndex%2===0?t.coord().transpose().scale(-1,1):t.coord().transpose():e.rowIndex%2!==0&&t.coord().scale(1,-1)},n.renderTitle=function(t,e){this.transpose?this.drawColTitle(t,e):this.drawRowTitle(t,e)},n.setXAxis=function(t,e,n){1!==n.colIndex&&1!==n.rowIndex||(e[t].label=null,e[t].title=null)},n.setYAxis=function(){},e}(i);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(46),o=n(0),a=o.assign,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.type="tree",e.line={lineWidth:1,stroke:"#ddd"},e.lineSmooth=!1,e},n.generateFacets=function(t){var e=this,n=e.fields;if(!n.length)throw"Please specify for the fields for facet!";var r=[],i=e.getRootFacet(t);return r.push(i),i.children=e.getChildFacets(t,1,r),e.setRegion(r),r},n.getRootFacet=function(t){var e=this,n={type:e.type,rows:e.getRows(),rowIndex:0,colIndex:0,colValue:e.rootTitle,data:t};return n},n.getRows=function(){return this.fields.length+1},n.getChildFacets=function(t,e,n){var r=this,i=r.fields,o=i.length;if(!(o<e)){var a=[],s=i[e-1],u=r.getFieldValues(s,t);return u.forEach((function(i,o){var l=[{field:s,value:i,values:u}],c=r.getFilter(l),f=t.filter(c);if(f.length){var h={type:r.type,colValue:i,colField:s,colIndex:o,rows:r.getRows(),rowIndex:e,data:f,children:r.getChildFacets(f,e+1,n)};a.push(h),n.push(h)}})),a}},n.setRegion=function(t){var e=this;e.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rows,t.cols,t.colIndex,t.rowIndex)}))},n.forceColIndex=function(t){var e=this,n=[],r=0;t.forEach((function(t){e.isLeaf(t)&&(n.push(t),t.colIndex=r,r++)})),n.forEach((function(t){t.cols=n.length}));for(var i=e.fields.length,o=i-1;o>=0;o--)for(var a=e.getFacetsByLevel(t,o),s=0;s<a.length;s++){var u=a[s];e.isLeaf(u)||(u.originColIndex=u.colIndex,u.colIndex=e.getRegionIndex(u.children),u.cols=n.length)}},n.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},n.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r},s={x:a.x+i,y:a.y+2*o/3};return{start:a,end:s}},n.getRegionIndex=function(t){var e=t[0],n=t[t.length-1];return(n.colIndex-e.colIndex)/2+e.colIndex},n.isLeaf=function(t){return!t.children||!t.children.length},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].label=null,e[t].title=null)},n.setYAxis=function(t,e,n){0!==n.originColIndex&&0!==n.colIndex&&(e[t].title=null,e[t].label=null)},n.onPaint=function(){t.prototype.onPaint.call(this),this.group.clear(),this.facets&&this.line&&this.drawLines(this.facets,this.group)},n.drawLines=function(t,e){var n=this,r=e.addGroup();t.forEach((function(t){if(!n.isLeaf(t)){var e=t.children;n._addFacetLines(t,e,r)}}))},n._addFacetLines=function(t,e,n){var r=this,i=t.view,o=i.getViewRegion(),a={x:o.start.x+(o.end.x-o.start.x)/2,y:o.start.y};e.forEach((function(t){var e=t.view.getViewRegion(),i={x:e.start.x+(e.end.x-e.start.x)/2,y:e.end.y},o={x:a.x,y:a.y+(i.y-a.y)/2},s={x:i.x,y:o.y};r._drawLine([a,o,s,i],n)}))},n._getPath=function(t){var e=this,n=[],r=e.lineSmooth;return r?(n.push(["M",t[0].x,t[0].y]),n.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,e){0===e?n.push(["M",t.x,t.y]):n.push(["L",t.x,t.y])})),n},n._drawLine=function(t,e){var n=this,r=n._getPath(t),i=n.line;e.addShape("path",{attrs:a({path:r},i)})},e}(i);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 o=n(8),a=n(128),s=n(0);n(304);var 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),a),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="area",e.shapeType="area",e.generatePoints=!0,e.sortable=!0,e},e.draw=function(t,e,n,r){var i=this,o=this.getDrawCfg(t[0]);i._applyViewThemeShapeStyle(o,o.shape,n);var a=this.splitData(t);o.origin=t,s.each(a,(function(t,a){o.splitedIndex=a;var s=t.map((function(t){return t.points}));o.points=s;var u=n.drawShape(o.shape,o,e);i.appendShapeInfo(u,r+a)}))},n}(o),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:"stack"}],e},e}(u);u.Stack=l,o.Area=u,o.AreaStack=l,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);n(305);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="edge",e.shapeType="edge",e.generatePoints=!0,e},e}(i);i.Edge=o,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(65),o=i.ColorUtil,a=n(8),s=n(0),u="_origin",l="shadowCanvas",c="valueRange",f="imageShape",h="mappedData",d="grayScaleBlurredCanvas",p="heatmapSize",g=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="heatmap",e.paletteCache={},e},n._prepareRange=function(){var t=this,e=t.get(h),n=t.getAttr("color"),r=n.field,i=1/0,o=-1/0;e.forEach((function(t){var e=t[u][r];e>o&&(o=e),e<i&&(i=e)})),i===o&&(i=o-1);var a=[i,o];t.set(c,a)},n._prepareSize=function(){var t=this,e=t.getDefaultValue("size");s.isNumber(e)||(e=t._getDefaultSize());var n=t.get("styleOptions"),r=n&&s.isObject(n.style)?n.style.blur:null;s.isFinite(r)&&null!==r||(r=e/2),t.set(p,{blur:r,radius:e})},n._getDefaultSize=function(){var t=this,e=t.getAttr("position"),n=t.get("coord"),r=Math.min(n.width/(4*e.scales[0].ticks.length),n.height/(4*e.scales[1].ticks.length));return r},n._colorize=function(t){for(var e=this,n=e.getAttr("color"),r=t.data,i=e.get("paletteCache"),a=3;a<r.length;a+=4){var s=r[a];if(s){var u=void 0;i[s]?u=i[s]:(u=o.rgb2arr(n.gradient(s/256)),i[s]=u),r[a-3]=u[0],r[a-2]=u[1],r[a-1]=u[2],r[a]=s}}},n._prepareGreyScaleBlurredCircle=function(t,e){var n=this,r=n.get(d);r||(r=document.createElement("canvas"),n.set(d,r));var i=t+e,o=r.getContext("2d");r.width=r.height=2*i,o.clearRect(0,0,r.width,r.height),o.shadowOffsetX=o.shadowOffsetY=2*i,o.shadowBlur=e,o.shadowColor="black",o.beginPath(),o.arc(-i,-i,t,0,2*Math.PI,!0),o.closePath(),o.fill()},n._drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this,a=o.get(d);i.globalAlpha=r,i.drawImage(a,t-n,e-n)},n._getShadowCanvasCtx=function(){var t=this,e=t.get(l);e||(e=document.createElement("canvas"),t.set(l,e));var n=t.get("coord");return n&&(e.width=n.width,e.height=n.height),e.getContext("2d")},n._clearShadowCanvasCtx=function(){var t=this._getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},n._getImageShape=function(){var t=this,e=t.get(f);if(e)return e;var n=t.get("container");return e=n.addShape("Image",{}),t.set(f,e),e},n.clear=function(){this._clearShadowCanvasCtx(),t.prototype.clear.call(this)},n.drawWithRange=function(t){var e=this,n=e.get("coord"),r=n.start,i=n.end,o=n.width,a=n.height,s=e.getAttr("color").field,l=e.get(p);e._clearShadowCanvasCtx();var c=e._getShadowCanvasCtx(),f=e.get(h);t&&(f=f.filter((function(e){return e[u][s]<=t[1]&&e[u][s]>=t[0]})));for(var d=e._getScale(s),g=0;g<f.length;g++){var v=f[g],m=e.getDrawCfg(v),y=d.scale(v[u][s]);e._drawGrayScaleBlurredCircle(m.x-r.x,m.y-i.y,l.radius+l.blur,y,c)}var _=c.getImageData(0,0,o,a);e._clearShadowCanvasCtx(),e._colorize(_),c.putImageData(_,0,0);var x=e._getImageShape();x.attr("x",r.x),x.attr("y",i.y),x.attr("width",o),x.attr("height",a),x.attr("img",c.canvas)},n.draw=function(t){var e=this;e.set(h,t),e._prepareRange(),e._prepareSize();var n=e.get(p);e._prepareGreyScaleBlurredCircle(n.radius,n.blur);var r=e.get(c);e.drawWithRange(r)},e}(a);a.Heatmap=g,t.exports=g},function(t,e,n){var r=n(8);r.Point=n(301),r.PointJitter=r.Point.Jitter,r.PointStack=r.Point.Stack,r.Path=n(130),r.Line=n(297),r.LineStack=r.Line.Stack,r.Interval=n(293),r.IntervalStack=r.Interval.Stack,r.IntervalDodge=r.Interval.Dodge,r.IntervalSymmetric=r.Interval.Symmetric,r.Area=n(289),r.AreaStack=r.Area.Stack,r.Polygon=n(302),r.Schema=n(303),r.SchemaDodge=r.Schema.Dodge,r.Edge=n(290),r.Heatmap=n(291),r.Venn=n(315),r.Violin=n(316),t.exports=r},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 o=n(8),a=n(0),s=n(70);n(306);var u=function(t){i(n,t);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,a.assign(r(n),s),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="interval",e.shapeType="interval",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}(o),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:"stack"}],e},e}(u),c=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),f=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:"symmetric"}],e},e}(u);u.Stack=l,u.Dodge=c,u.Symmetric=f,o.Interval=u,o.IntervalStack=l,o.IntervalDodge=c,o.IntervalSymmetric=f,t.exports=u},function(t,e,n){var r=n(69),i=n(127),o=n(296),a=n(295),s={getLabelsClass:function(t,e){var n=r;return"polar"===t?n=i:"theta"===t?n=o:"interval"!==e&&"polygon"!==e||(n=a),n}};t.exports=s},function(t,e,n){var r=n(0),i=n(69),o=function t(e){t.superclass.constructor.call(this,e)};r.extend(o,i),r.augment(o,{setLabelPosition:function(t,e,n,i){r.isFunction(i)&&(i=i(t.text,e._origin,n));var o=this.get("coord"),a=o.isTransposed,s=o.convertPoint(e.points[0]),u=o.convertPoint(e.points[2]),l=(s.x-u.x)/2*(a?-1:1),c=(s.y-u.y)/2*(a?-1:1);switch(i){case"right":a?(t.x-=l,t.y+=c,t.textAlign=t.textAlign||"center"):(t.x-=l,t.y+=c,t.textAlign=t.textAlign||"left");break;case"left":a?(t.x-=l,t.y-=c,t.textAlign=t.textAlign||"center"):(t.x+=l,t.y+=c,t.textAlign=t.textAlign||"right");break;case"bottom":a?(t.x-=2*l,t.textAlign=t.textAlign||"left"):(t.y+=2*c,t.textAlign=t.textAlign||"center");break;case"middle":a?t.x-=l:t.y+=c,t.textAlign=t.textAlign||"center";break;case"top":t.textAlign=a?t.textAlign||"left":t.textAlign||"center";break;default:break}}}),t.exports=o},function(t,e,n){var r=n(0),i=n(127),o=n(25),a=n(5),s=5;function u(t,e,n){return{x:t.x+n*Math.cos(e),y:t.y+n*Math.sin(e)}}function l(t,e,n,r,i){var o,a=!0,s=n.start,u=n.end,l=Math.min(s.y,u.y),c=Math.abs(s.y-u.y),f=0,h=Number.MIN_VALUE,d=t.map((function(t){return t.y>f&&(f=t.y),t.y<h&&(h=t.y),{size:e,targets:[t.y-l]}}));h-=l,f-l>c&&(c=f-l);while(a){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)})),a=!1,o=d.length;while(o--)if(o>0){var p=d[o-1],g=d[o];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(o,1),a=!0)}}o=0,d.forEach((function(n){var r=l+e/2;n.targets.forEach((function(){t[o].y=n.pos+r,r+=e,o++}))})),t.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var o=Math.sqrt(e-n);t.x=i?r.x+o:r.x-o}}))}var c=function t(e){t.superclass.constructor.call(this,e)};r.extend(c,i),r.augment(c,{getDefaultCfg:function(){return{label:a.thetaLabels}},getDefaultOffset:function(t){return t.offset||0},adjustItems:function(t){var e=this,n=t[0]?t[0].offset:0;return n>0&&(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(),o=n.get("label").labelHeight,a=r.getCenter(),s=i+e,u=2*s+2*o,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/o,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,o,c,a,e)})),d[0].concat(d[1])},lineToLabel:function(t){var e=this,n=e.get("coord"),r=n.getRadius(),i=t.offset,o=t.orignAngle||t.angle,a=n.getCenter(),l=u(a,o,r+s/2),c=u(a,o,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 o=n.getDefaultOffset(t);return o<=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 a,s={x:r.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};e.transLabelPoint(s);var u=o.getPointAngle(n,i);if(t.points&&t.points[0].y===t.points[1].y)a=u;else{var l=o.getPointAngle(n,s);u>=l&&(l+=2*Math.PI),a=u+(l-u)/2}return a},getCirclePoint:function(t,e){var n=this,r=n.get("coord"),i=r.getCenter(),o=r.getRadius()+e,a=u(i,t,o);return a.angle=t,a.r=o,a}}),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),o=n(130);n(307);var 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="line",e.sortable=!0,e},e}(o),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}(a);a.Stack=s,i.Line=a,i.LineStack=s,t.exports=a},function(t,e,n){var r=n(0),i="_origin",o=n(129),a="_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 o=e.attr(i);r.isArray(o)&&(o=r.cloneDeep(o)),n[i]=o})),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(a,h),n.animate?t.animate(f,300):t.attr(f),o.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"),o=i.get("canvas"),a=e.get("activedOptions");a&&a.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),o.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(a);i?(t.stopAnimate(),t.animate(e,300)):t.attr(e),o.resetZIndex(t),t.setSilent(a,null)}));var u=t.get("preHighlightShapes");if(u){var l=e.get("children");r.each(l,(function(t){var e=t.get(a);e&&(i?(t.stopAnimate(),t.animate(e,300)):t.attr(e),o.resetZIndex(t),t.setSilent(a,null))}))}t.set("activeShapes",null),t.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=this,n=e.get("shapeContainer"),o=[];if(n){var a=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][a];n===u[a]&&o.push(t)}}))}return o},getSingleShapeByPoint:function(t){var e,n=this,r=n.get("shapeContainer"),i=r.get("canvas"),o=i.get("pixelRatio");if(r&&(e=r.getShape(t.x*o,t.y*o)),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),o.toFront(n)):(r.mix(i,{fillOpacity:.3,opacity:.3}),o.resetZIndex(n));var s=l(i,n);n.setSilent(a,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",o=n(129);function a(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 o=e.attr(i);r.isArray(o)&&(o=r.cloneDeep(o)),n[i]=o})),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"),a=n.get("selectedOptions")||{},u=!1!==a.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},a),p=h.getSelectedCfg(f,d);r.mix(p,d.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",s(p,t))),a.toFront&&o.toFront(t),u?t.animate(p,300):(t.attr(p),l.draw())}else{var g=t.get("_originAttrs");a.toFront&&o.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")||{},o=!1!==i.cancelable;if("multiple"===i.mode)-1===r.indexOf(n,t)?(n.push(t),e._setShapeStatus(t,!0)):o&&(r.Array.remove(n,t),e._setShapeStatus(t,!1));else{var s=n[0];o&&(t=a(s,t)?null:t),a(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),o=i.defaultColor,a="_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[a]);var o=i.isTransposed?"y":"x";if(r.isArray(t[o])){var s=Math.abs(t[o][1]-t[o][0]);e=e<s?null:e}}return e},_snapEqual:function(t,e,n){var i;return t=n.translate(t),e=n.translate(e),i=n.isCategory?t===e:r.snapEqual(t,e),i},_getScaleValueByPoint:function(t){var e=0,n=this.get("coord"),r=this.getXScale(),i=n.invert(t),o=i.x;return this.isInCircle()&&o>(1+r.rangeMax())/2&&(o=r.rangeMin()),e=r.invert(o),r.isCategory&&(e=r.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),r=e.field,i=n.field,o=this.get("coord"),a=o.invert(t),s=e.invert(a.x),u=n.invert(a.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"),o=i.getFields();return r.each(o,(function(t){if(!t.includes(".."))return n=t,!1})),e._getScale(n)},_filterValue:function(t,e){var n=this.get("coord"),i=this.getYScale(),o=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[a];if(e[o][0]<=u&&e[o][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,o=n.translate(i[0]),a=o;r.each(i,(function(t){t=n.translate(t),t<o&&(o=t),t>a&&(a=t)}));var s=i.length;e=(a-o)/(s-1)}t.set("xDistance",e)}return e},findPoint:function(t,e){var n=this,i=n.get("type"),o=n.getXScale(),s=n.getYScale(),u=o.field,l=s.field,c=null;if(r.indexOf(["heatmap","point"],i)>-1){var f=n.get("coord"),h=f.invert(t),d=o.invert(h.x),p=s.invert(h.y),g=1/0;return r.each(e,(function(t){var e=Math.pow(t[a][u]-d,2)+Math.pow(t[a][l]-p,2);e<g&&(g=e,c=t)})),c}var v=e[0],m=e[e.length-1];if(!v)return c;var y=n._getScaleValueByPoint(t),_=v[a][u],x=v[a][l],b=m[a][u],w=s.isLinear&&r.isArray(x);if(r.isArray(_))r.each(e,(function(t){var e=t[a];if(o.translate(e[u][0])<=y&&o.translate(e[u][1])>=y){if(!w)return c=t,!1;r.isArray(c)||(c=[]),c.push(t)}})),r.isArray(c)&&(c=this._filterValue(c,t));else{var j;if(o.isLinear||"timeCat"===o.type){if((y>o.translate(b)||y<o.translate(_))&&(y>o.max||y<o.min))return null;var S,M=0,E=e.length-1;while(M<=E){S=Math.floor((M+E)/2);var P=e[S][a][u];if(n._snapEqual(P,y,o))return e[S];o.translate(P)<=o.translate(y)?(M=S+1,m=e[S],j=e[S+1]):(0===E&&(m=e[0]),E=S-1)}}else r.each(e,(function(t,i){var s=t[a];if(n._snapEqual(s[u],y,o)){if(!w)return c=t,!1;r.isArray(c)||(c=[]),c.push(t)}else o.translate(s[u])<=y&&(m=t,j=e[i+1])})),r.isArray(c)&&(c=this._filterValue(c,t));m&&j&&Math.abs(o.translate(m[a][u])-y)>Math.abs(o.translate(j[a][u])-y)&&(m=j)}var C=n.getXDistance();return!c&&Math.abs(o.translate(m[a][u])-y)<=C/2&&(c=m),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 o=this.getXScale(),a=this.getYScale(),s=o.getText(t[o.field]),u=a.getText(t[a.field]);n="( "+s+", "+u+" )"}return n},getTipValue:function(t,e){var n,i=e.field,o=t.key;if(n=t[i],r.isArray(n)){var a=[];r.each(n,(function(t){a.push(e.getText(t))})),n=a.join("-")}else n=e.getText(n,o);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 o=n.field;e=n.getText(t[o])}else{var a=this._getTipValueScale();e=s(a)}return e},getTipItems:function(t,e){var n,i,u=this,l=t[a],c=u.getTipTitle(l,e),f=u.get("tooltipCfg"),h=[];function d(e,n,i){if(!r.isNil(n)&&""!==n){var a={title:c,point:t,name:e||c,value:n,color:t.color||o,marker:!0};a.size=u._getIntervalSize(t),h.push(r.mix({},a,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 m=r.mix({},{point:t,title:c,color:t.color||o,marker:!0},g);m.size=u._getIntervalSize(t),h.push(m)}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 y=u._getTipValueScale();r.isNil(l[y.field])||(i=u.getTipValue(l,y),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 o=this.get("coord"),a=o.type;("theta"===a||"polar"===a&&o.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),o=n(0);n(308);var 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="point",e.shapeType="point",e.generatePoints=!0,e},n.drawPoint=function(t,e,n,r){var i,a=this,s=t.shape,u=a.getDrawCfg(t);if(a._applyViewThemeShapeStyle(u,s,n),o.isArray(t.y)){var l=a.hasStack();o.each(t.y,(function(t,o){u.y=t,u.yIndex=o,l&&0===o||(i=n.drawShape(s,u,e),a.appendShapeInfo(i,r+o))}))}else o.isNil(t.y)||(i=n.drawShape(s,u,e),a.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}(a),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}(a);a.Jitter=s,a.Stack=u,i.Point=a,i.PointJitter=s,i.PointStack=u,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(8),o=n(0);n(309);var 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="polygon",e.shapeType="polygon",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this,a=r.x,s=r.y;if(!o.isArray(a)||!o.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?(a=[a-h,a-h,a+h,a+h],s=[s-d,s+d,s+d,s-d]):o.isArray(a)?(n=a,a=[n[0],n[0],n[1],n[1]],s=[s-d/2,s+d/2,s+d/2,s-d/2]):o.isArray(s)&&(n=s,s=[n[0],n[1],n[1],n[0]],a=[a-h/2,a-h/2,a+h/2,a+h/2]),r.x=a,r.y=s}return r},e}(i);i.Polygon=a,t.exports=a},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 o=n(8),a=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,a.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}(o),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,o.Schema=u,o.SchemaDodge=l,t.exports=u},function(t,e,n){var r=n(0),i=n(9),o=n(25),a=n(23),s=n(5);function u(t){var e=s.shape.hollowArea,n=r.mix({},e,t.style);return a.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 a.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=[],a=[],s=[],u=[],l=t.isInCircle;return r.each(t.points,(function(t){s.push(t[1]),u.push(t[0])})),u=u.reverse(),a.push(s,u),r.each(a,(function(r,a){var s=[];r=n.parsePoints(r);var u=r[0];l&&r.push({x:u.x,y:u.y}),s=e?o.getSplinePath(r,!1,t.constraint):o.getLinePath(r,!1),a>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,o=i.convertPoint(e.points[0][1]);return n.addShape("circle",{attrs:r.mix({x:o.x,y:o.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,o=t.y0;return i=r.isArray(i)?i:[o,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 o=c(t,!0,this);return e.addShape("path",{attrs:r.mix(n,{path:o})})},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),o=n(23),a=n(5),s=n(25),u=1/3;function l(t){var e=a.shape.edge,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),t.size&&(n.lineWidth=t.size),n}var c=i.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return o.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),o=s.getLinePath(n),a=e.addShape("path",{attrs:r.mix(i,{path:o})});return a},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),o=v(n[0],n[1]);o=this.parsePath(o);var a=e.addShape("path",{attrs:r.mix(i,{path:o})});return a},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),o=d(n[0],n[1]);o=this.parsePath(o);var a=e.addShape("path",{attrs:r.mix(i,{path:o})});return a},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4.5},l(t))}}),i.registerShape("edge","arc",{draw:function(t,e){var n,i,o=t.points,a=o.length>2?"weight":"normal",s=l(t);if(t.isInCircle){var u={x:0,y:1};"normal"===a?i=p(o[0],o[1],u):(s.fill=s.stroke,i=g(o,u)),i=this.parsePath(i),n=e.addShape("path",{attrs:r.mix(s,{path:i})})}else if("normal"===a)o=this.parsePoints(o),n=e.addShape("arc",{attrs:r.mix(s,{x:(o[1].x+o[0].x)/2,y:o[0].y,r:Math.abs(o[1].x-o[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{i=[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y]];var c=f(o[1],o[3]),h=f(o[2],o[0]);i.push(c),i.push(["L",o[3].x,o[3].y]),i.push(["L",o[2].x,o[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),o=n(25),a=n(23),s=n(5),u=n(16),l=r.PathUtil;function c(t,e){var n,i,o=t.x,a=t.y,s=t.y0,u=t.size,l=s,c=a;r.isArray(a)&&(c=a[1],l=a[0]),r.isArray(o)?(n=o[0],i=o[1]):(n=o-u/2,i=o+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;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}function h(t){var e=t.x,n=t.y,i=t.y0,o=[];return r.isArray(n)?r.each(n,(function(t,n){o.push({x:r.isArray(e)?e[n]:e,y:t})})):o.push({x:e,y:n},{x:e,y:i}),o}function d(t){var e=t.x,n=r.isArray(t.y)?t.y[1]:t.y,i=r.isArray(t.y)?t.y[0]:t.y0,o=t.size,a=[];return a.push({x:e-o/2,y:n},{x:e+o/2,y:n},{x:e,y:n},{x:e,y:i},{x:e-o/2,y:i},{x:e+o/2,y:i}),a}function p(t){var e=[];return e.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]),e}function g(t){var e=s.shape.interval,n=r.mix({},e,t.style);return a.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),n}function v(t){var e=s.shape.hollowInterval,n=r.mix({},e,t.style);return a.addStrokeAttrs(n,t),n}function m(t,e){var n=[],i=t.points,o=t.nextPoints;return r.isNil(o)?e?n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[2].x,i[2].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",o[1].x,o[1].y],["L",o[0].x,o[0].y],["Z"]),n}function y(t,e){var n,i,a,s,u=e.getRadius(),l=e.innerRadius,c=u*l;return!r.isArray(t.x)&&r.isArray(t.y)&&(t.x=[t.x,t.x]),r.isArray(t.x)?(a={x:t.x[0],y:t.y[0]},s={x:t.x[1],y:t.y[1]},n=o.getPointAngle(e,a),i=o.getPointAngle(e,s),i<=n&&(i+=2*Math.PI)):(s=t,n=e.startAngle,i=o.getPointAngle(e,s)),{r:u,ir:c,startAngle:n,endAngle:i}}function _(t,e){var n,i=e.geom,o=i.get("coord"),a=e.point,s=7.5;if(o&&"theta"===o.type){var u=y(a,o),l=(u.endAngle-u.startAngle)/2+u.startAngle,c=s*Math.cos(l),f=s*Math.sin(l);n={transform:[["t",c,f]]}}return r.mix({},n)}var x=i.registerFactory("interval",{defaultShapeType:"rect",getActiveCfg:function(t,e){if(!t||r.inArray(["rect","funnel","pyramid"],t)){var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15}}var i=e.lineWidth||0;return{lineWidth:i+1}},getDefaultPoints:function(t){return c(t)},getSelectedCfg:function(t,e){return _(t,e)}});function b(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function w(t,e,n,r,i,o,a){var s=2*Math.ceil(2*t/n*4),u=[];while(r<2*-Math.PI)r+=2*Math.PI;while(r>0)r-=2*Math.PI;r=r/Math.PI/2*n;var l=o-t+r-2*t;u.push(["M",l,e]);for(var c=0,f=0;f<s;++f){var h=f%4,d=b(f*n/4,h,n,i);u.push(["C",d[0][0]+l,-d[0][1]+e,d[1][0]+l,-d[1][1]+e,d[2][0]+l,-d[2][1]+e]),f===s-1&&(c=d[2][0])}return u.push(["L",c+l,a+t]),u.push(["L",l,a+t]),u.push(["L",l,e]),u}function j(t,e,n,r,i,o,a,u){for(var l=a.getBBox(),c=l.maxX-l.minX,f=l.maxY-l.minY,h=5e3,d=300,p=0;p<r;p++){var g=o.addShape("path",{attrs:{path:w(u,l.minY+f*n,c/4,0,c/64,t,e),fill:i[p],clip:a}});"canvas"===s.renderer&&g.animate({transform:[["t",c/2,0]],repeat:!0},h-p*d)}}i.registerShape("interval","rect",{draw:function(t,e){var n=g(t),i=f(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=g(t),n=t.isInCircle;return r.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),i.registerShape("interval","hollowRect",{draw:function(t,e){var n=v(t),i=f(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=v(t),n=t.isInCircle;return r.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),i.registerShape("interval","line",{getPoints:function(t){return h(t)},draw:function(t,e){var n=v(t);n.lineWidth=t.size||1;var i=f(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=v(t);return r.mix({symbol:"line",radius:5},e)}}),i.registerShape("interval","tick",{getPoints:function(t){return d(t)},draw:function(t,e){var n=v(t);n.lineWidth||(n.lineWidth=2);var i=p(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=v(t);return r.mix({symbol:"tick",radius:5},e)}}),i.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,c(t)},draw:function(t,e){var n=g(t),i=m(t,!0);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=g(t);return r.mix({symbol:"square",radius:4},e)}}),i.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,c(t,!0)},draw:function(t,e){var n=g(t),i=m(t,!1);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=g(t);return r.mix({symbol:"square",radius:4},e)}}),i.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var n=this,i=.5,o=0,a=1/0;r.each(t.points,(function(t){t.x<a&&(a=t.x),o+=t.x}));var s=o/t.points.length,l=n.parsePoint({x:s,y:i}),c=n.parsePoint({x:a,y:.5}),f=l.x-c.x,h=Math.min(f,c.y),d=g(t),p=new u.Circle({attrs:{x:l.x,y:l.y,r:h}});return j(l.x,l.y,t.y/(2*l.y),1,[d.fill],e,p,4*h),e.addShape("circle",{attrs:r.mix(v(t),{x:l.x,y:l.y,r:h+h/8})})}});var S={};i.registerShape("interval","liquid-fill-path",{draw:function(t,e){var n=this,i=r.mix({},g(t)),o=t.shape[1],a=.5,s=0,u=1/0;r.each(t.points,(function(t){t.x<u&&(u=t.x),s+=t.x}));var c,f=s/t.points.length,h=n.parsePoint({x:f,y:a}),d=n.parsePoint({x:u,y:.5}),p=h.x-d.x,m=Math.min(p,d.y);if(S[o])c=S[o];else{var y=l.parsePathString(o);S[o]=c={segments:y}}var _=[];i.rotate&&(_.push(["r",i.rotate/180*Math.PI]),delete i.rotate);var x=e.addShape("path",{attrs:r.mix(i,{fillOpacity:0,path:c.segments})}),b=r.cloneDeep(x.getBBox()),w=b.maxX-b.minX,M=b.maxY-b.minY,E=Math.max(w,M),P=2*m/E;x.transform(_.concat([["s",P,P]]));var C=P*w/2,k=P*M/2;x.transform([["t",h.x-C,h.y-k]]),j(h.x,h.y,t.y/(2*h.y),1,[i.fill],e,x,4*d.y);var A=e.addShape("path",{attrs:r.mix(v(t),{path:c.segments})});return A.transform(_.concat([["s",P,P],["t",h.x-C,h.y-k]])),A}}),i.registerShape("interval","top-line",{draw:function(t,e){var n=g(t),i=t.style||{},o=[["M",t.points[1].x,t.points[1].y],["L",t.points[2].x,t.points[2].y]],a={stroke:i.stroke||"white",lineWidth:i.lineWidth||1,path:this.parsePath(o)},s=f(t.points);s=this.parsePath(s),delete n.stroke;var u=e.addShape("path",{attrs:r.mix(n,{zIndex:0,path:s})});return e.addShape("path",{zIndex:1,attrs:a}),u},getMarkerCfg:function(t){var e=g(t),n=t.isInCircle;return r.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),t.exports=x},function(t,e,n){var r=n(0),i=n(25),o=n(23),a=n(9),s=n(5),u=[1,1],l=[5.5,1];function c(t){var e=s.shape.line,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),t.size&&(n.lineWidth=t.size),n}function f(t){var e=s.shape.line,n=r.mix({lineWidth:2,radius:6},e,t.style);return o.addStrokeAttrs(n,t),n}function h(t,e,n,r){for(var i=[],a=r.isStack,s=[],u=0;u<t.length;u++){var l=t[u],c=o.splitPoints(l);s.push(c[0]),i.push(c[1])}var f=d(i,e,n,r),h=d(s,e,n,r);return a?f:f.concat(h)}function d(t,e,n,r){var o;if(e){var a=r.constraint;n&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=i.getSplinePath(t,!1,a)}else o=i.getLinePath(t,!1),n&&o.push(["Z"]);return o}function p(t,e){var n,i=t.points,o=t.isInCircle,a=i[0];return n=r.isArray(a.y)?h(i,e,o,t):d(i,e,o,t),n}function g(t,e){var n=[];return r.each(t,(function(r,i){var o=t[i+1];n.push(r),o&&(n=n.concat(e(r,o)))})),n}function v(t){var e=[];return r.each(t,(function(t,n){var r=0===n?["M",t.x,t.y]:["L",t.x,t.y];e.push(r)})),e}function m(t,e){var n=g(t.points,e);return v(n)}function y(t,e,n){return[["M",t-n,e],["L",t+n,e]]}function _(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}function x(t,e){return r.mix({symbol:e?_:y},f(t))}function b(t,e){return r.mix({symbol:e},f(t))}function w(t,e,n){var i=e.points[0];return n.addShape("circle",{attrs:r.mix({x:i.x,y:i.y,r:2,fill:e.color},e.style)})}var j=a.registerFactory("line",{defaultShapeType:"line",getActiveCfg:function(t,e){var n=e.lineWidth||0;return{lineWidth:n+1}},getDefaultPoints:function(t){return o.splitPoints(t)},drawShape:function(t,e,n){var r,i=this.getShape(t);return r=1===e.points.length&&s.showSinglePoint?w(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}});a.registerShape("line","line",{draw:function(t,e){var n=c(t),i=p(t,!1);return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return x(t)}}),a.registerShape("line","dot",{draw:function(t,e){var n=c(t),i=p(t,!1);return e.addShape("path",{attrs:r.mix(n,{path:i,lineDash:u})})},getMarkerCfg:function(t){var e=x(t,!1);return e.lineDash=u,e}}),a.registerShape("line","dash",{draw:function(t,e){var n=c(t),i=p(t,!1);return e.addShape("path",{attrs:r.mix({path:i,lineDash:l},n)})},getMarkerCfg:function(t){var e=x(t,!1);return e.lineDash=e.lineDash||l,e}}),a.registerShape("line","smooth",{draw:function(t,e){var n=c(t),i=this._coord;t.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var o=p(t,!0);return e.addShape("path",{attrs:r.mix(n,{path:o})})},getMarkerCfg:function(t){return x(t,!0)}}),a.registerShape("line","hv",{draw:function(t,e){var n=c(t),i=m(t,(function(t,e){var n=[];return n.push({x:e.x,y:t.y}),n}));return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return b(t,(function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]}))}}),a.registerShape("line","vh",{draw:function(t,e){var n=c(t),i=m(t,(function(t,e){var n=[];return n.push({x:t.x,y:e.y}),n}));return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return b(t,(function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]}))}}),a.registerShape("line","hvh",{draw:function(t,e){var n=c(t),i=m(t,(function(t,e){var n=[],r=(e.x-t.x)/2+t.x;return n.push({x:r,y:t.y}),n.push({x:r,y:e.y}),n}));return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return b(t,(function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]}))}}),a.registerShape("line","vhv",{draw:function(t,e){var n=c(t),i=m(t,(function(t,e){var n=[],r=(e.y-t.y)/2+t.y;return n.push({x:t.x,y:r}),n.push({x:e.x,y:r}),n}));return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return b(t,(function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}))}}),j.spline=j.smooth,t.exports=j},function(t,e,n){var r=n(0),i=n(23),o=n(5),a=n(9),s=n(16),u=s.Marker,l=r.PathUtil,c=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],f=["cross","tick","plus","hyphen","line","pointerLine","pointerArrow"],h=Math.sqrt(3);function d(t){var e=o.shape.point,n=r.mix({},e,t.style);return i.addFillAttrs(n,t),r.isNumber(t.size)&&(n.radius=t.size),n}function p(t){var e=o.shape.hollowPoint,n=r.mix({},e,t.style);return i.addStrokeAttrs(n,t),r.isNumber(t.size)&&(n.radius=t.size),n}r.mix(u.Symbols,{hexagon:function(t,e,n){var r=n/2*h;return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}});var g=a.registerFactory("point",{defaultShapeType:"hollowCircle",getActiveCfg:function(t,e){var n,i=e.radius;return n=t&&(0===t.indexOf("hollow")||-1!==r.indexOf(f,t))||!t?e.stroke||e.strokeStyle:e.fill||e.fillStyle,{radius:i+1,shadowBlur:i,shadowColor:n,stroke:n,strokeOpacity:1,lineWidth:1}},getDefaultPoints:function(t){return i.splitPoints(t)}});function v(t){var e=t.points[0].x,n=t.points[0].y,r=t.size[0],i=t.size[1],o=[["M",e-.5*r,n-.5*i],["L",e+.5*r,n-.5*i],["L",e+.5*r,n+.5*i],["L",e-.5*r,n+.5*i],["z"]];return o}a.registerShape("point","rect",{draw:function(t,e){var n=d(t),i=v(t);i=this.parsePath(i);var o=e.addShape("path",{attrs:r.mix(n,{path:i})});return o},getMarkerCfg:function(t){var e=d(t);return e.symbol="rect",e.radius=4.5,e}}),r.each(c,(function(t){a.registerShape("point",t,{draw:function(e,n){var i=d(e);return n.addShape("Marker",{attrs:r.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=d(e);return n.symbol=t,n.radius=4.5,n}}),a.registerShape("point","hollow"+r.upperFirst(t),{draw:function(e,n){var i=p(e);return n.addShape("Marker",{attrs:r.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=p(e);return n.symbol=t,n.radius=4.5,n}})})),r.each(f,(function(t){a.registerShape("point",t,{draw:function(e,n){var i=p(e);return n.addShape("Marker",{attrs:r.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=p(e);return n.symbol=t,n.radius=4.5,n}})})),a.registerShape("point","image",{draw:function(t,e){return t.points=this.parsePoints(t.points),e.addShape("image",{attrs:{x:t.points[0].x-t.size/2,y:t.points[0].y-t.size,width:t.size,height:t.size,img:t.shape[1]}})}});var m={};a.registerShape("point","path",{draw:function(t,e){var n,i=r.mix({},p(t),d(t)),o=t.shape[1],a=t.size||10;if(m[o])n=m[o];else{var s=l.parsePathString(o),u=r.flatten(s).filter((function(t){return r.isNumber(t)}));m[o]=n={range:Math.max.apply(null,u)-Math.min.apply(null,u),segments:s}}var c=a/n.range,f=[];i.rotate&&(f.push(["r",i.rotate/180*Math.PI]),delete i.rotate);var h=e.addShape("path",{attrs:r.mix(i,{path:n.segments})});return f.push(["s",c,c],["t",t.x,t.y]),h.transform(f),h}}),t.exports=g},function(t,e,n){var r=n(0),i=n(9),o=n(23),a=n(5);function s(t){var e=a.shape.polygon,n=r.mix({},e,t.style);return o.addFillAttrs(n,t),n}function u(t){var e=a.shape.hollowPolygon,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),n}function l(t){var e=t[0],n=1,i=[["M",e.x,e.y]];while(n<t.length){var o=t[n];o.x===t[n-1].x&&o.y===t[n-1].y||(i.push(["L",o.x,o.y]),o.x===e.x&&o.y===e.y&&n<t.length-1&&(e=t[n+1],i.push(["Z"]),i.push(["M",e.x,e.y]),n++)),n++}return r.isEqual(i[i.length-1],e)||i.push(["L",e.x,e.y]),i.push(["Z"]),i}var c=i.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return r.each(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e},getActiveCfg:function(t,e){var n=e.lineWidth||1;if("hollow"===t)return{lineWidth:n+1};var r=e.fillOpacity||e.opacity||1;return{fillOpacity:r-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("polygon","polygon",{draw:function(t,e){if(!r.isEmpty(t.points)){var n=s(t),i=l(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})}},getMarkerCfg:function(t){return r.mix({symbol:"square",radius:4},s(t))}}),i.registerShape("polygon","hollow",{draw:function(t,e){if(!r.isEmpty(t.points)){var n=u(t),i=l(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})}},getMarkerCfg:function(t){return r.mix({symbol:"square",radius:4},s(t))}}),t.exports=c},function(t,e,n){var r=n(0),i=n(9),o=n(23),a=n(5);function s(t){r.isArray(t)||(t=[t]);var e=t[0],n=t[t.length-1],i=t.length>1?t[1]:e,o=t.length>3?t[3]:n,a=t.length>2?t[2]:i;return{min:e,max:n,min1:i,max1:o,median:a}}function u(t,e){r.each(t,(function(t){e.push({x:t[0],y:t[1]})}))}function l(t){var e=a.shape.schema,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),n}function c(t){var e=a.shape.schema,n=r.mix({},e,t.style);return o.addFillAttrs(n,t),t.color&&(n.stroke=t.color||n.stroke),n}function f(t,e,n){var i,o,a=[];return r.isArray(e)?(o=s(e),i=[[t-n/2,o.max],[t+n/2,o.max],[t,o.max],[t,o.max1],[t-n/2,o.min1],[t-n/2,o.max1],[t+n/2,o.max1],[t+n/2,o.min1],[t,o.min1],[t,o.min],[t-n/2,o.min],[t+n/2,o.min],[t-n/2,o.median],[t+n/2,o.median]]):(e=e||.5,o=s(t),i=[[o.min,e-n/2],[o.min,e+n/2],[o.min,e],[o.min1,e],[o.min1,e-n/2],[o.min1,e+n/2],[o.max1,e+n/2],[o.max1,e-n/2],[o.max1,e],[o.max,e],[o.max,e-n/2],[o.max,e+n/2],[o.median,e-n/2],[o.median,e+n/2]]),u(i,a),a}function h(t){r.isArray(t)||(t=[t]);var e=t.sort((function(t,e){return t<e?1:-1})),n=e.length;if(n<4)for(var i=e[n-1],o=0;o<4-n;o++)e.push(i);return e}function d(t,e,n){var r=h(e),i=[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}];return i}function p(t){var e=[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]];return e}function g(t){var e=[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]];return e}var v=i.registerFactory("schema",{defaultShapeType:"",getActiveCfg:function(t,e){if("box"===t){var n=e.lineWidth||1;return{lineWidth:n+1}}var r=e.fillOpacity||e.opacity||1;return{fillOpacity:r-.15,strokeOpacity:r-.15}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("schema","box",{getPoints:function(t){return f(t.x,t.y,t.size)},draw:function(t,e){var n=l(t),i=p(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){var r=[e-6,e-3,e,e+3,e+6],i=f(t,r,n);return[["M",i[0].x+1,i[0].y],["L",i[1].x-1,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x+1,i[10].y],["L",i[11].x-1,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]},radius:6,lineWidth:1,stroke:t.color}}}),i.registerShape("schema","candle",{getPoints:function(t){return d(t.x,t.y,t.size)},draw:function(t,e){var n=c(t),i=g(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){e=[e+7.5,e+3,e-3,e-7.5];var r=d(t,e,n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},lineWidth:1,stroke:t.color,fill:t.color,radius:6}}}),t.exports=v},function(t,e,n){var r=n(0),i=n(9),o=n(23),a=n(5),s=r.PathUtil;function u(t){var e=a.shape.venn,n=r.mix({},e,t.style);return o.addFillAttrs(n,t),n}function l(t){var e=a.shape.hollowVenn,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),n}var c=i.registerFactory("venn",{defaultShapeType:"venn",getActiveCfg:function(t,e){var n=e.lineWidth||1;if("hollow"===t)return{lineWidth:n+1};var r=e.fillOpacity||e.opacity||1;return{fillOpacity:r-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("venn","venn",{draw:function(t,e){var n=t.origin._origin,i=n.path,o=u(t),a=s.parsePathString(i),l=e.addShape("path",{attrs:r.mix(o,{path:a})});return l},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},u(t))}}),i.registerShape("venn","hollow",{draw:function(t,e){var n=t.origin._origin,i=n.path,o=l(t),a=s.parsePathString(i),u=e.addShape("path",{attrs:r.mix(o,{path:a})});return u},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},u(t))}}),t.exports=c},function(t,e,n){var r=n(0),i=n(9),o=n(23),a=n(5),s=n(25);function u(t){var e=a.shape.venn,n=r.mix({},e,t.style);return o.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),n}function l(t){var e=a.shape.hollowVenn,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),n}function c(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function f(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var o=s.getSplinePath(n,!1),a=s.getSplinePath(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),a.shift();var u=o.concat(a);return n.length&&u.push(["L",n[0].x,n[0].y]),u.push(["z"]),u}function h(t){var e=Math.max.apply(null,t);return t.map((function(t){return t/e}))}var d=i.registerFactory("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],i=h(t._size);return r.each(t.y,(function(r,o){var a=i[o]*e,s=0===o,u=o===t.y.length-1;n.push({isMin:s,isMax:u,x:t.x-a,y:r}),n.unshift({isMin:s,isMax:u,x:t.x+a,y:r})})),n},getActiveCfg:function(t,e){var n=e.lineWidth||1;if("hollow"===t)return{lineWidth:n+1};var r=e.fillOpacity||e.opacity||1;return{fillOpacity:r-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("violin","violin",{draw:function(t,e){var n=u(t),i=c(t.points);i=this.parsePath(i);var o=e.addShape("path",{attrs:r.mix(n,{path:i})});return o},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},u(t))}}),i.registerShape("violin","smooth",{draw:function(t,e){var n=u(t),i=f(t.points);i=this.parsePath(i);var o=e.addShape("path",{attrs:r.mix(n,{path:i})});return o},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},u(t))}}),i.registerShape("violin","hollow",{draw:function(t,e){var n=l(t),i=c(t.points);i=this.parsePath(i);var o=e.addShape("path",{attrs:r.mix(n,{path:i})});return o},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},l(t))}}),i.registerShape("violin","smoothHollow",{draw:function(t,e){var n=l(t),i=f(t.points);i=this.parsePath(i);var o=e.addShape("path",{attrs:r.mix(n,{path:i})});return o},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},l(t))}}),t.exports=d},function(t,e,n){var r=n(0);t.exports=function(t){return r.isArray(t)?t:r.isString(t)?t.split("*"):[t]}},function(t,e,n){var r=n(0).MatrixUtil,i=r.vec2;function o(t,e,n,r){var o,a,s,u,l=[],c=!!r;if(c){s=[1/0,1/0],u=[-1/0,-1/0];for(var f=0,h=t.length;f<h;f++){var d=t[f];s=i.min([],s,d),u=i.max([],u,d)}s=i.min([],s,r[0]),u=i.max([],u,r[1])}for(var p=0,g=t.length;p<g;p++){var v=t[p];if(n)o=t[p?p-1:g-1],a=t[(p+1)%g];else{if(0===p||p===g-1){l.push(v);continue}o=t[p-1],a=t[p+1]}var m=[];m=i.sub(m,a,o),m=i.scale(m,m,e);var y=i.distance(v,o),_=i.distance(v,a),x=y+_;0!==x&&(y/=x,_/=x);var b=i.scale([],m,-y),w=i.scale([],m,_),j=i.add([],v,b),S=i.add([],v,w);c&&(j=i.max([],j,s),j=i.min([],j,u),S=i.max([],S,s),S=i.min([],S,u)),l.push(j),l.push(S)}return n&&l.push(l.shift()),l}function a(t,e,n){for(var r=!!e,i=[],a=0,s=t.length;a<s;a+=2)i.push([t[a],t[a+1]]);for(var u,l,c,f=o(i,.4,r,n),h=i.length,d=[],p=0;p<h-1;p++)u=f[2*p],l=f[2*p+1],c=i[p+1],d.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]]);return r&&(u=f[h],l=f[h+1],c=i[0],d.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]])),d}t.exports={catmullRom2bezier: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(8),o=n(0),a=n(544),s=a.venn,u=a.scaleSolution,l=a.circlePath,c=a.intersectionAreaPath,f=a.computeTextCentres;n(311);var h=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="venn",e.shapeType="venn",e.generatePoints=!1,e},n._getAttrValues=function(e,n){return"position"===e.type?[n.x,n.y]:t.prototype._getAttrValues.call(this,e,n)},n.sets=function(t){return this.set("setsField",t),this},n._initAttrs=function(){var e=this;t.prototype._initAttrs.call(this);var n=e.get("attrOptions"),r=e.get("setsField")||"sets",i=e.get("data"),a=n.size?n.size.field:"size";i.forEach((function(t){t.sets=t[r],t._sets=t[r].join("&"),t.size=t[a]}));var h=s(i),d=e.get("coord"),p=[Math.min(d.x.end,d.x.start),Math.max(d.x.end,d.x.start)],g=[Math.min(d.y.end,d.y.start),Math.max(d.y.end,d.y.start)],v=p[1]-p[0],m=g[1]-g[0],y=e.get("styleOptions"),_=y&&o.isObject(y.style)?y.style.padding:0;o.isFinite(_)||(_=0);var x=u(h,v,m,_),b=f(x,i);i.forEach((function(t){var e=t.sets,n=e.join(",");if(t.id=n,1===e.length){var r=x[n];t.path=l(r.x,r.y,r.radius),o.assign(t,r)}else{var i=e.map((function(t){return x[t]})),a=c(i);/[zZ]$/.test(a)||(a+="Z"),t.path=a;var s=b[n]||{x:0,y:0};o.assign(t,s)}}))},e}(i);i.Venn=h,t.exports=h},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 o=n(8),a=n(0),s=n(70);n(312);var u=function(t){i(n,t);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,a.assign(r(n),s),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e},e.createShapePointsCfg=function(e){var n=this,r=t.prototype.createShapePointsCfg.call(this,e);r.size=n.getNormalizedSize(e);var i=n.get("_sizeField");return r._size=e._origin[i],r},e.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e._initAttrs=function(){var e=this,n=e.get("attrOptions"),r=n.size?n.size.field:e.get("_sizeField")?e.get("_sizeField"):"size";e.set("_sizeField",r),delete n.size,t.prototype._initAttrs.call(this)},n}(o),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,o.Violin=u,o.ViolinDodge=l,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 o=n(0),a=n(28),s=["X","Y","XY","POLYGON"],u="XY",l=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.filter=!o.draggable,o.type=o.type.toUpperCase(),o.chart=n,s.includes(o.type)||(o.type=u);var a,l=o.canvas;l&&(l.get("children").map((function(t){return"plotBack"===t.get("type")?(a=t.get("plotRange"),!1):t})),o.plot={start:a.bl,end:a.tr});if(n){var c=n.get("coord");o.plot={start:c.start,end:c.end},n.on("afterrender",(function(){o.plot={start:c.start,end:c.end}})),o.isTransposed=c.isTransposed;var f=n._getScales("x"),h=n._getScales("y");o.xScale=o.xField?f[o.xField]:n.getXScale(),o.yScale=o.yField?h[o.yField]:n.getYScales()[0]}return i}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:u,startPoint:null,brushing:!1,dragging:!1,brushShape:null,container:null,polygonPath:null,style:{fill:"#C5D4EB",opacity:.3,lineWidth:1,stroke:"#82A6DD"},draggable:!1,dragOffX:0,dragOffY:0,inPlot:!0,xField:null,yField:null})},e.start=function(t){var e=this,n=e.canvas,r=e.type,i=e.brushShape;if(r){e.brushing&&e.end(t);var o={x:t.offsetX,y:t.offsetY};if(o.x){var a=e.plot&&e.inPlot,s=n.get("canvasDOM"),u=n.get("pixelRatio");if(e.selection&&(e.selection=null),e.draggable&&i&&!i.get("destroyed")){if(i.isHit(o.x*u,o.y*u)){if(s.style.cursor="move",e.selection=i,e.dragging=!0,"X"===r)e.dragoffX=o.x-i.attr("x"),e.dragoffY=0;else if("Y"===r)e.dragoffX=0,e.dragoffY=o.y-i.attr("y");else if("XY"===r)e.dragoffX=o.x-i.attr("x"),e.dragoffY=o.y-i.attr("y");else if("POLYGON"===r){var l=i.getBBox();e.dragoffX=o.x-l.minX,e.dragoffY=o.y-l.minY}e.onDragstart&&e.onDragstart(t)}e.prePoint=o}if(!e.dragging){e.onBrushstart&&e.onBrushstart(o);var c=e.container;if(a){var f=e.plot,h=f.start,d=f.end;if(o.x<h.x||o.x>d.x||o.y<d.y||o.y>h.y)return}s.style.cursor="crosshair",e.startPoint=o,e.brushShape=null,e.brushing=!0,c?c.clear():(c=n.addGroup({zIndex:5}),c.initTransform()),e.container=c,"POLYGON"===r&&(e.polygonPath="M "+o.x+" "+o.y)}}}},e.process=function(t){var e=this,n=e.brushing,r=e.dragging,i=e.type,a=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,m=a.start,y=a.end,_=e.polygonPath,x=e.brushShape,b=e.container;e.plot&&e.inPlot&&(f=e._limitCoordScope(f)),"Y"===i?(d=m.x,p=f.y>=s.y?s.y:f.y,g=Math.abs(m.x-y.x),v=Math.abs(s.y-f.y)):"X"===i?(d=f.x>=s.x?s.x:f.x,p=y.y,g=Math.abs(s.x-f.x),v=Math.abs(y.y-m.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&&(_+="L "+f.x+" "+f.y,e.polygonPath=_,x?!x.get("destroyed")&&x.attr(o.mix({},x._attrs,{path:_})):x=b.addShape("path",{attrs:o.mix(e.style,{path:_})})),"POLYGON"!==i&&(x?!x.get("destroyed")&&x.attr(o.mix({},x._attrs,{x:d,y:p,width:g,height:v})):x=b.addShape("rect",{attrs:o.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 j=e.prePoint;e.selection.translate(f.x-j.x,f.y-j.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 S=e._getSelected(),M=S.data,E=S.shapes,P=S.xValues,C=S.yValues,k={data:M,shapes:E};u&&(k[u.field]=P),l&&(k[l.field]=C),o.mix(t,k),k.x=f.x,k.y=f.y,e.onDragmove&&e.onDragmove(k),e.onBrushmove&&e.onBrushmove(k)}},e.end=function(t){var e=this;if(e.brushing||e.dragging){var n=e.data,r=e.shapes,i=e.xValues,a=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 m={data:n,shapes:r};if(h&&(m[h.field]=i),d&&(m[d.field]=a),o.mix(t,m),m.x=p,m.y=g,e.dragging)e.dragging=!1,e.onDragend&&e.onDragend(m);else if(e.brushing){e.brushing=!1;var y=e.brushShape,_=e.polygonPath;"POLYGON"===u&&(_+="z",y&&!y.get("destroyed")&&y.attr(o.mix({},y._attrs,{path:_})),e.polygonPath=_,s.draw()),e.onBrushend?e.onBrushend(m):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 a.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.x<n.x&&(t.x=n.x),t.x>r.x&&(t.x=r.x),t.y<r.y&&(t.y=r.y),t.y>n.y&&(t.y=n.y),t},e._getSelected=function(){var t=this,e=t.chart,n=t.xScale,r=t.yScale,i=t.brushShape,o=t.canvas,a=o.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*a,e.y*a)){s.push(t);var o=e._origin;c.push(o),n&&u.push(o[n.field]),r&&l.push(o[r.field])}return e})),t})),t}))}return t.shapes=s,t.xValues=u,t.yValues=l,t.data=c,o.draw(),{data:c,xValues:u,yValues:l,shapes:s}},n}(a);t.exports=l},function(t,e,n){var r=n(0),i=n(16),o=i.Group,a=r.DomUtil,s=5,u=function t(e){t.superclass.constructor.call(this,e)};r.extend(u,o),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,o=this,a=o.addGroup(),u=o.get("layout"),l=o.get("handleStyle"),c=l.img,f=l.width,h=l.height;if("horizontal"===u){var d=l.width;i="ew-resize",n=a.addShape("Image",{attrs:{x:-d/2,y:0,width:d,height:h,img:c,cursor:i}}),e=a.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=a.addShape("Image",{attrs:{x:0,y:-h/2,width:f,height:h,img:c,cursor:i}}),e=a.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),a},_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"),o=this.get("height"),a=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");a.resetMatrix?(a.resetMatrix(),s.resetMatrix()):(a.initTransform(),s.initTransform()),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:o}),a.translate(n*i,0),s.translate(r*i,0)):(u.attr({x:0,y:o*(1-r),width:i,height:(r-n)*o}),a.translate(0,(1-n)*o),s.translate(0,(1-r)*o))},_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,o=this.get("range"),a=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-a,d=h/n*100*c,p=this.get("minRange"),g=this.get("maxRange");o[1]<=o[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(o[0]=this._getRange(d,o[0]),o[1]=this._getRange(d,o[0])):(this._isElement(s,"minHandleElement")&&(o[0]=this._getRange(d,o[0]),p&&o[1]-o[0]<=p&&this._limitRange(d,p,o),g&&o[1]-o[0]>=g&&this._limitRange(d,g,o)),this._isElement(s,"maxHandleElement")&&(o[1]=this._getRange(d,o[1]),p&&o[1]-o[0]<=p&&this._limitRange(d,p,o),g&&o[1]-o[0]>=g&&this._limitRange(d,g,o))),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],this._limitRange(d,i,o)),this.emit("sliderchange",{range:o}),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=a.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=a.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=a.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 o=n(0),a=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 a=r(i);a.type=a.type.toUpperCase(),a.chart=n,a.coord=n.get("coord");var u=a.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;a.limitRange[e]=l(u,t);var n=p.defs[e]||{};a.originScaleDefsByField[e]=o.mix(n,{nice:!!n.nice}),t.isLinear&&(a.stepByField[e]=(t.max-t.min)*a.stepRatio)})),f.includes(a.type)||(a.type=h),a._disableTooltip(),i}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.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,a=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))),m=d.indexOf(l[0]),y=d.indexOf(l[g-1]);if(e>0&&m>=0){for(var _=0;_<v&&m>0;_++)m-=1,y-=1;var x=d.slice(m,y+1),b=null;if("timeCat"===a){for(var w=f.length>2?f[1]-f[0]:c,j=f[0]-w;j>=x[0];j-=w)f.unshift(j);b=f}i.scale(s,o.mix({},h,{values:x,ticks:b}))}else if(e<0&&y<=d.length-1){for(var S=0;S<v&&y<d.length-1;S++)m+=1,y+=1;var M=d.slice(m,y+1),E=null;if("timeCat"===a){for(var P=f.length>2?f[1]-f[0]:c,C=f[f.length-1]+P;C<=M[M.length-1];C+=P)f.push(C);E=f}i.scale(s,o.mix({},h,{values:M,ticks:E}))}},e._translateLinearScale=function(t,e,n){var r=this,i=r.chart,a=r.limitRange,s=t.min,l=t.max,c=t.field;if(s!==a[c].min||l!==a[c].max){var f=e/n,h=l-s,d=u(i,c);i.scale(c,o.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,o=e.coord,a=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)>a&&r.indexOf("X")>-1){h=!0;var d=n.getXScale();e._applyTranslate(d,d.isLinear?-c:c,o.width)}if(Math.abs(f)>a&&r.indexOf("Y")>-1){h=!0;var p=n.getYScales();p.forEach((function(t){e._applyTranslate(t,l.y-u.y,o.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}(a);t.exports=d},function(t,e,n){var r=n(0),i=n(52),o=n(72);t.exports=function(t){t.on("beforeinitgeoms",(function(){t.set("limitInPlot",!0);var e=t.get("data"),n=o(t);if(!n)return e;var a=t.get("geoms"),s=!1;r.each(a,(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(o){var a=t[o];if(a){var s=n[o];if("timeCat"===s.type){var u=s.values;r.isNumber(u[0])&&(a=i.toTimeStamp(a))}(s.values&&!s.values.includes(a)||s.min&&a<s.min||s.max&&a>s.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 o=e.min,a=e.max,s=a-o;r=(t.min-o)/s,i=(t.max-o)/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),o=n(0),a={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]):o.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),o=new i(e,n);return n._setInteraction(t,o),n},r.registerInteraction("brush",a.Brush),r.registerInteraction("Brush",a.Brush),r.registerInteraction("drag",a.Drag),r.registerInteraction("Drag",a.Drag),r.registerInteraction("zoom",a.Zoom),r.registerInteraction("Zoom",a.Zoom),r.registerInteraction("scroll-bar",a.ScrollBar),r.registerInteraction("ScrollBar",a.ScrollBar),r.registerInteraction("shape-select",a.ShapeSelect),r.registerInteraction("ShapeSelect",a.ShapeSelect),r.registerInteraction("slider",a.Slider),r.registerInteraction("Slider",a.Slider),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(0),o=n(28),a=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 o=r.getDefaultCfg();return n.set("_scrollBarCfg",i.deepMix({},o,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"),o=t.get("canvas"),u=o.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,m=f.size,y=t.getXScale(),_=l[y.field];_||(_=s(n,y),l[y.field]=_);var x=a(y,_,y.type),b=t.get("_horizontalBar"),w=u-m/2+d;if(b){var j=b.get("children")[1];j.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:m,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:m,stroke:v,lineCap:p}}),t.set("_horizontalBar",b)}if(c.indexOf("Y")>-1){var S=e.yStyle,M=S.offsetX,E=S.offsetY,P=S.lineCap,C=S.backgroundColor,k=S.fillerColor,A=S.size,T=t.getYScales()[0],O=l[T.field];O||(O=s(n,T),l[T.field]=O);var I=a(T,O,T.type),R=t.get("_verticalBar"),D=A/2+M;if(R){var L=R.get("children")[1];L.attr({y1:Math.max(r.tl.y+r.height*I[0]+E,r.tl.y),y2:Math.min(r.tl.y+r.height*I[1]+E,r.bl.y)})}else R=i.addGroup({className:"verticalBar"}),R.addShape("line",{attrs:{x1:D,y1:r.tl.y+E,x2:D,y2:r.bl.y+E,lineWidth:A,stroke:C,lineCap:P}}),R.addShape("line",{attrs:{x1:D,y1:Math.max(r.tl.y+r.height*I[0]+E,r.tl.y),x2:D,y2:Math.min(r.tl.y+r.height*I[1]+E,r.bl.y),lineWidth:A,stroke:k,lineCap:P}}),t.set("_verticalBar",R)}}},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}(o);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),o=n(28);function a(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,o=[];if(r.eachShape((function(n,r){r.isPointInPath(t.x,t.y)?e=r:o.push(r)})),e)if(e.get("_selected")){if(!n.cancelable)return;n.reset()}else{var s=n.selectStyle,u=n.unSelectStyle,l=a(e.attr(),e);e.set("_originAttrs",l),e.attr(s),i.each(o,(function(t){var e=t.get("_originAttrs");e&&t.attr(e),t.set("_selected",!1),u&&(e=a(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],o=r.get("children");i.each(o,(function(t){var e=t.get("_originAttrs");e&&(t._attrs=e,t.set("_originAttrs",null)),t.set("_selected",!1)})),t.canvas.draw()}},e}(o);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 o=n(318),a=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 o=r(i);return o._initContainer(),o._initStyle(),o.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"),o=n.getXScale(),u=e.xAxis||o.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),m=new a({container:e.container,width:e.domWidth,height:e.height,padding:[0,v[1],0,v[3]],animate:!1});m.source(i),m.scale(c),m.axis(!1),m.tooltip(!1),m.legend(!1),s.each(d,(function(t,e){var n=m[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))})),m.render(),e.bgChart=m,e.scale="horizontal"===e.layout?m.getXScale():m.getYScales()[0],"vertical"===e.layout&&m.destroy()},e._initRange=function(){var t=this,e=t.startRadio,n=t.endRadio,r=t._startValue,i=t._endValue,o=t.scale,a=0,s=1;g(e)?a=e:r&&(a=o.scale(o.translate(r))),g(n)?s=n:i&&(s=o.scale(o.translate(i)));var u=t.minSpan,l=t.maxSpan,c=0;if("time"===o.type||"timeCat"===o.type){var f=o.values,h=f[0],d=f[f.length-1];c=d-h}else o.isLinear&&(c=o.max-o.min);c&&u&&(t.minRange=u/c*100),c&&l&&(t.maxRange=l/c*100);var p=[100*a,100*s];return t.range=p,p},e._getHandleValue=function(t){var e,n=this,r=n.range,i=r[0]/100,o=r[1]/100,a=n.scale;return e="min"===t?n._startValue?n._startValue:a.invert(i):n._endValue?n._endValue:a.invert(o),e},e._initSlider=function(){var t=this,e=t.canvas,n=t._initRange(),r=t.scale,i=e.addGroup(o,{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,o=n.rangeElement,a=i.field,u=o.get("minTextElement"),l=o.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(a,s.mix({},f(r,a),{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 o=n(0),a=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 a=r(i);a.chart=n,a.type=a.type.toUpperCase();var s=a.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]||{};a.limitRange[e]=u(s,t),a.originScaleDefsByField[e]=o.mix(n,{nice:!!n.nice}),t.isLinear?a.stepByField[e]=(t.max-t.min)*a.stepRatio:a.stepByField[e]=a.catStep})),l.includes(a.type)||(a.type=c),i}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.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,a=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(a,f);a.scale(f,o.mix({},v,{nice:!1,min:p,max:g}))}}else{var m=t.field,y=t.values,_=i.chart,x=_.get("coord"),b=s(_,m),w=i.limitRange[m],j=w.length,S=i.maxScale,M=i.minScale,E=j/S,P=j/M,C=y.length,k=x.invertPoint(r),A=k.x,T=C-e*this.catStep,O=parseInt(T*A),I=T+O;if(e>0&&C>=E){var R=O,D=I;I>C&&(D=C-1,R=C-T);var L=y.slice(R,D);_.scale(m,o.mix({},b,{values:L}))}else if(e<0&&C<=P){var N=w.indexOf(y[0]),F=w.indexOf(y[C-1]),B=Math.max(0,N-O),z=Math.min(F+I,j),G=w.slice(B,z);_.scale(m,o.mix({},b,{values:G}))}}},e.process=function(t){var e=this,n=e.chart,r=e.type,i=n.get("coord"),o=t.deltaY,a=i.invertPoint(t);if(o){e.onZoom&&e.onZoom(o,a,e),o>0?e.onZoomin&&e.onZoomin(o,a,e):e.onZoomout&&e.onZoomout(o,a,e);var s=o/Math.abs(o);if(r.indexOf("X")>-1&&e._applyScale(n.getXScale(),s,a.x,t),r.indexOf("Y")>-1){var u=n.getYScales();u.forEach((function(n){e._applyScale(n,s,a.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}(a);t.exports=f},function(t,e,n){var r,i,o=n(0),a=n(131),s="g2-tooltip",u="g2-legend",l=o.deepMix({},a,{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),o=n(134),a=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,o),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 o=new i(t,e,!0,!0);return o.x=n.x,o.y=n.y,o.clientX=e.clientX,o.clientY=e.clientY,o.currentTarget=r,o.target=r,o},_triggerEvent:function(t,e){var n,r=this.getPointByClient(e.clientX,e.clientY),i=this.getShape(r.x,r.y,e),o=this.get("el");if("mousemove"===t){var a=this.get("preShape");if(a&&a!==i){var s=this._getEventObj("mouseleave",e,r,a);n=this.getEmitter(a,e),n&&n.emit("mouseleave",s),o.style.cursor="default"}if(i){var u=this._getEventObj("mousemove",e,r,i);if(n=this.getEmitter(i,e),n&&n.emit("mousemove",u),a!==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")&&(o.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 a(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"},o={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};function a(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:{}},a=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(o[s]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[s]))continue;i[s]||a[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,o){r.each(t,(function(t){n<t.startTime+t.duration&&i.call(t.toAttrs,o)&&(delete t.toAttrs[o],delete t.fromAttrs[o])}))})),e.toMatrix&&r.each(t,(function(t){n<t.startTime+t.duration&&t.toMatrix&&delete t.toMatrix})),t}t.exports={animate:function(t,e,n,i,o){void 0===o&&(o=0);var l=this;l.set("animating",!0);var c=l.get("timeline");c||(c=l.get("canvas").get("timeline"),l.setSilent("timeline",c));var f=l.get("animators")||[];c._timer||c.initTimer(),r.isNumber(i)&&(o=i,i=null),r.isFunction(n)?(i=n,n="easeLinear"):n=n||"easeLinear";var h=s(t,l),d={fromAttrs:a(h,l),toAttrs:h.attrs,fromMatrix:r.clone(l.getMatrix()),toMatrix:h.matrix,duration:e,easing:n,callback:i,delay:o,startTime:c.getTime(),id:r.uniqueId()};f.length>0?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"),o=t.get("pause").pauseTime;return r.each(i,(function(t){t.startTime=t.startTime+(n-o),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),o={arc:n(47),ellipse:n(143),line:n(48)},a=r.createDom('<canvas width="500" height="500"></canvas>'),s=a.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,o=n.y,a=n.r,s=n.startAngle,u=n.endAngle,l=n.clockwise,c=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,o,a,s,u,l,c,t,e)},c=function(t,e){var n=this._attrs,r=n.x,o=n.y,a=n.r,s=this.getHitLineWidth(),u=this.hasFill(),l=this.hasStroke();return u&&l?i.circle(r,o,a,t,e)||i.arcline(r,o,a,0,2*Math.PI,!1,s,t,e):u?i.circle(r,o,a,t,e):!!l&&i.arcline(r,o,a,0,2*Math.PI,!1,s,t,e)},f=function(t,e){var n=this._attrs,o=this.hasFill(),a=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 m=r.mat3.invert([],v);return r.vec3.transformMat3(g,g,m),o&&a?i.circle(0,0,h,g[0],g[1])||i.arcline(0,0,h,0,2*Math.PI,!1,f,g[0],g[1]):o?i.circle(0,0,h,g[0],g[1]):!!a&&i.arcline(0,0,h,0,2*Math.PI,!1,f,g[0],g[1])},h=function(t,e){var n=this,a=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],m=[t-l,e-c],y=r.vec2.angleTo(v,m);function _(){var t=o.arc.nearAngle(y,d,p,g);if(r.isNumberEqual(y,t)){var e=r.vec2.squaredLength(m);if(f*f<=e&&e<=h*h)return!0}return!1}function x(){var r=n.getHitLineWidth(),o={x:Math.cos(d)*f+l,y:Math.sin(d)*f+c},a={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(o.x,o.y,a.x,a.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 a&&s?_()||x():a?_():!!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,o=n.y,a=n.width,s=n.height;return i.rect(r,o,a,s,t,e)},p=function(t,e){var n=this._attrs,r=n.x1,o=n.y1,a=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,o,a,s,u,t,e)},g=function(t,e){var n=this,i=n.get("segments"),o=n.hasFill(),a=n.hasStroke();function s(){if(!r.isEmpty(i)){for(var o=n.getHitLineWidth(),a=0,s=i.length;a<s;a++)if(i[a].isInside(t,e,o))return!0;return!1}}return o&&a?u(t,e,n)||s():o?u(t,e,n):!!a&&s()},v=function(t,e){var n=this,r=n.hasFill(),o=n.hasStroke();function a(){var r=n._attrs,o=r.points;if(o.length<2)return!1;var a=n.getHitLineWidth(),s=o.slice(0);return o.length>=3&&s.push(o[0]),i.polyline(s,a,t,e)}return r&&o?u(t,e,n)||a():r?u(t,e,n):!!o&&a()},m=function(t,e){var n=this._attrs,r=n.x,o=n.y,a=n.radius||n.r,s=this.getHitLineWidth();return i.circle(r,o,a+s/2,t,e)},y=function(t,e){var n=this,r=n._attrs;if(n.hasStroke()){var o=r.points;if(o.length<2)return!1;var a=r.lineWidth;return i.polyline(o,a,t,e)}return!1},_=function(t,e){var n=this,r=n.hasFill(),o=n.hasStroke();function a(){var r=n._attrs,o=r.x,a=r.y,s=r.width,u=r.height,l=r.radius,c=n.getHitLineWidth();if(0===l){var f=c/2;return i.line(o-f,a,o+s+f,a,c,t,e)||i.line(o+s,a-f,o+s,a+u+f,c,t,e)||i.line(o+s+f,a+u,o-f,a+u,c,t,e)||i.line(o,a+u+f,o,a-f,c,t,e)}return i.line(o+l,a,o+s-l,a,c,t,e)||i.line(o+s,a+l,o+s,a+u-l,c,t,e)||i.line(o+s-l,a+u,o+l,a+u,c,t,e)||i.line(o,a+u-l,o,a+l,c,t,e)||i.arcline(o+s-l,a+l,l,1.5*Math.PI,2*Math.PI,!1,c,t,e)||i.arcline(o+s-l,a+u-l,l,0,.5*Math.PI,!1,c,t,e)||i.arcline(o+l,a+u-l,l,.5*Math.PI,Math.PI,!1,c,t,e)||i.arcline(o+l,a+l,l,Math.PI,1.5*Math.PI,!1,c,t,e)}return r&&o?u(t,e,n)||a():r?u(t,e,n):!!o&&a()},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:m,polygon:v,polyline:y,rect:_,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),o=n(103),a=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 o={},a=e.toAttrs,s=e.fromAttrs,c=e.toMatrix;if(!t.get("destroyed")){var f;for(var h in a)if(!r.isEqual(s[h],a[h]))if("path"===h){var d=a[h],p=s[h];d.length>p.length?(d=i.parsePathString(a[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(a[h]),p=i.parsePathString(s[h]),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),o[h]=[];for(var g=0;g<d.length;g++){for(var v=d[g],m=p[g],y=[],_=0;_<v.length;_++)r.isNumber(v[_])&&m&&r.isNumber(m[_])?(f=u(m[_],v[_]),y.push(f(n))):y.push(v[_]);o[h].push(y)}}else f=u(s[h],a[h]),o[h]=f(n);if(c){var x=l(e.fromMatrix,c),b=x(n);t.setMatrix(b)}t.attr(o)}}function h(t,e,n){var r,i=e.startTime;if(n<i+e.delay||e.isPaused)return!1;var o=e.duration,s=e.easing;if(n=n-i-e.delay,e.toAttrs.repeat)r=n%o/o,r=a[s](r);else{if(r=n/o,!(r<1))return t.attr(e.toAttrs),e.toMatrix&&t.setMatrix(e.toMatrix),!0;r=a[s](r)}return f(t,e,r),!1}r.augment(c,{initTimer:function(){var t,e,n,r=this,i=this,a=!1;i._timer=o.timer((function(o){if(i._current=o,r._animators.length>0){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],a=h(t,n,o),a&&(e.splice(u,1),a=!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 o(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function a(t,e){i(e)||(o(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 o=[1,0,0,0,1,0,0,0,1];return r.each(i,(function(t){r.mat3.multiply(o,t.attr("matrix"),o)})),o},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();a(t,n)}a(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(o(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),o=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],a=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<canvas id="'+e+'"></canvas>');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<n.length;i++)r=n[i],n[i].isGroup?e._drawGroup(r):e._drawShape(r);this.restoreContext(t)}},e._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},e.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},e.restoreContext=function(){this.context.restore()},e.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var a in n)if(o.indexOf(a)>-1){var s=n[a];"fillStyle"===a&&(s=i.parseStyle(s,t,e)),"strokeStyle"===a&&(s=i.parseStyle(s,t,e)),"lineDash"===a&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[a]=s}},t}();t.exports=a},function(t,e,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,a=/^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,o,s=a.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},o={x:c.maxX,y:c.maxY}):.5*Math.PI<=u&&u<Math.PI?(i={x:c.maxX,y:c.minY},o={x:c.minX,y:c.maxY}):Math.PI<=u&&u<1.5*Math.PI?(i={x:c.maxX,y:c.maxY},o={x:c.minX,y:c.minY}):(i={x:c.minX,y:c.maxY},o={x:c.maxX,y:c.minY});var h=Math.tan(u),d=h*h,p=(o.x-i.x+h*(o.y-i.y))/(d+1)+i.x,g=h*(o.x-i.x+h*(o.y-i.y))/(d+1)+i.y,v=n.createLinearGradient(i.x,i.y,p,g);return f(l,v),v}function d(t,e,n){var r=s.exec(t),i=parseFloat(r[1]),o=parseFloat(r[2]),a=parseFloat(r[3]),u=r[4];if(0===a){var c=u.match(l);return c[c.length-1].split(":")[1]}var h=e.getBBox(),d=h.maxX-h.minX,p=h.maxY-h.minY,g=Math.sqrt(d*d+p*p)/2,v=n.createRadialGradient(h.minX+d*i,h.minY+p*o,a*g,h.minX+d/2,h.minY+p/2,g);return f(u,v),v}function p(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var r,i,o=u.exec(t),a=o[1],s=o[2];function l(){r=n.createPattern(i,a),e.setSilent("pattern",r),e.setSilent("patternSource",t)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;case"n":a="no-repeat";break;default:a="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?l():(i.onload=l,i.src=i.src),r}t.exports={parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if(e=e.match(o),e[0].length>1){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),o=n(343),a=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.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},e.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},e.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},e.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new a(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},e.addGradient=function(t){var e=new i(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addArrow=function(t,e){var n=new a(t,e);return this.el.appendChild(n.el),n.id},e.addShadow=function(t){var e=new o(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addClip=function(t){var e=new s(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=l},function(t,e,n){var r=n(1),i=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("stroke","none"),o.setAttribute("fill",t.stroke||"#000"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=i,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,o):this._setMarker(t.lineWidth,o),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,i=this.cfg.path,o=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),o&&n.setAttribute("refX",o/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},function(t,e,n){var r=n(1),i=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},function(t,e,n){var r=n(1),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(t){var e=t.match(a);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),r.each(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function u(t,e){var n,o,a=i.exec(t),u=r.mod(r.toRadian(parseFloat(a[1])),2*Math.PI),l=a[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=u&&u<Math.PI?(n={x:1,y:0},o={x:0,y:1}):Math.PI<=u&&u<1.5*Math.PI?(n={x:1,y:1},o={x:0,y:0}):(n={x:0,y:1},o={x:1,y:0});var c=Math.tan(u),f=c*c,h=(o.x-n.x+c*(o.y-n.y))/(f+1)+n.x,d=c*(o.x-n.x+c*(o.y-n.y))/(f+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",h),e.setAttribute("y2",d),e.innerHTML=s(l)}function l(t,e){var n=o.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),a=parseFloat(n[3]),u=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",a),e.innerHTML=s(u)}var c=function(){function t(t){var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?(e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),u(t,e)):(e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),l(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}var e=t.prototype;return e.match=function(t,e){return this.cfg===e},t}();t.exports=c},function(t,e,n){var r=n(1),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");e.appendChild(n);var o=r.uniqueId("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var a=i.exec(t),s=a[2];n.setAttribute("href",s);var u=new Image;function l(){console.log(u.width,u.height),e.setAttribute("width",u.width),e.setAttribute("height",u.height)}return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?l():(u.onload=l,u.src=u.src),this}var e=t.prototype;return e.match=function(t,e){return this.cfg===e},t}();t.exports=o},function(t,e,n){var r=n(1),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},o={x:"-40%",y:"-40%",width:"200%",height:"200%"},a=function(){function t(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return r.each(o,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var e=t.prototype;return e.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},e.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},e._parseShadow=function(t,e){var n='<feDropShadow \n dx="'+(t.dx||0)+'" \n dy="'+(t.dy||0)+'" \n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();t.exports=a},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 o=i.parentNode;while(o&&!n[o.tagName])o=o.parentNode;i=o}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),o=i.parseRadius,a=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('<svg id="'+e+'"></svg>');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 o=t._cfg.el.childNodes.length+1;0!==o&&o!==i.length&&(e=!0)}for(var a=0;a<i.length;a++)n=i[a],n.isGroup?r._drawGroup(n,e):r._drawShape(n,e)}},e._drawShape=function(t,e){var n=this,r=t._attrs,i=t._cfg,o=i.el;i.removed||i.destroyed?o&&o.parentNode.removeChild(i.el):(e&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null),!o&&i.parent&&(n._createDom(t),n._updateShape(t)),o=i.el,!1!==i.visible?(i.visible&&o.hasAttribute("visibility")&&o.removeAttribute("visibility"),i.hasUpdate&&n._updateShape(t),r.clip&&r.clip._cfg.hasUpdate&&n._updateShape(r.clip)):o.setAttribute("visibility","hidden"))},e._updateShape=function(t){var e=this,n=t._attrs,i=t._cfg.attrs;if(i)if(t._cfg.el||e._createDom(t),"clip"in n&&this._setClip(t,n.clip),("shadowOffsetX"in n||"shadowOffsetY"in n||"shadowBlur"in n||"shadowColor"in n)&&this._setShadow(t),"text"!==t.type){for(var o in"fan"===t.type&&e._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",e._assembleMarker(n)),"rect"===t.type&&t._cfg.el.setAttribute("d",e._assembleRect(n)),n)n[o]!==i[o]&&e._setAttribute(t,o,n[o]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else e._updateText(t)},e._setAttribute=function(t,e,n){var i=t.type,o=t._attrs,a=t._cfg.el,s=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))a.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=n.map((function(t){return t[0]+","+t[1]})),n=n.join(" ")),void a.setAttribute("points",n);if("path"===e&&r.isArray(n))a.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void a.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void a.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=c[e],n){var u=null;u="boolean"===typeof n?s.getDefaultArrow(o,e):s.addArrow(o,e),a.setAttribute(e,"url(#"+u+")"),t._cfg[e]=u}else t._cfg[e]=null,a.removeAttribute(e);else"html"===e&&("string"===typeof n?a.innerHTML=n:(a.innerHTML="",a.appendChild(n))),c[e]&&a.setAttribute(c[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},e._createDom=function(t){var e=u[t.type],n=t._attrs;if(!e)throw new Error("the type"+t.type+"is not supported by svg");var r=document.createElementNS("http://www.w3.org/2000/svg",e);return t._cfg.el=r,t._cfg.parent&&t._cfg.parent.get("el").appendChild(r),t._cfg.attrs={},"text"===t.type?(r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(n.stroke||n.strokeStyle||r.setAttribute("stroke","none"),n.fill||n.fillStyle||r.setAttribute("fill","none")),r},e._assembleMarker=function(t){var e=t.r;if("undefined"===typeof t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"===typeof t.symbol?t.symbol(t.x,t.y,e):a.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map((function(t){return t.join(" ")})).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,a=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+i+",0 l 0,"+a+" l"+-i+" 0 z";var u=o(s);r.isArray(s)?1===s.length?u.r1=u.r2=u.r3=u.r4=s[0]:2===s.length?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):3===s.length?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;var l=[["M "+(e+u.r1)+","+n],["l "+(i-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(a-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-i)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-a)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]];return l.join(" ")},e._formatPath=function(t){return t=t.map((function(t){return t.join(" ")})).join(""),~t.indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);r=r.join(","),-1===r.indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var o=document.createElement("canvas");o.setAttribute("width",e.width),o.setAttribute("height",e.height),o.getContext("2d").putImageData(e,0,0),n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",o.toDataURL())}},e._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,i=t._cfg,o={x:n.x,y:n.y},a=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var l=e(s,n.re,o),c=e(u,n.re,o),f=u>s?1:0,h=Math.abs(u-s)>Math.PI?1:0,d=n.rs,p=n.re,g=e(s,n.rs,o),v=e(u,n.rs,o);n.rs>0?(a.push("M "+c.x+","+c.y),a.push("L "+v.x+","+v.y),a.push("A "+d+","+d+",0,"+h+","+(1===f?0:1)+","+g.x+","+g.y),a.push("L "+l.x+" "+l.y)):(a.push("M "+o.x+","+o.y),a.push("L "+l.x+","+l.y)),a.push("A "+p+","+p+",0,"+h+","+f+","+c.x+","+c.y),n.rs>0?a.push("L "+v.x+","+v.y):a.push("Z"),i.el.setAttribute("d",a.join(" "))},e._updateText=function(t){var e=this,n=t._attrs,r=t._cfg.attrs,i=t._cfg.el;for(var o in this._setFont(t),n)if(n[o]!==r[o]){if("text"===o){e._setText(t,""+n[o]);continue}if("fillStyle"===o||"strokeStyle"===o){this._setColor(t,o,n[o]);continue}if("matrix"===o){this._setTransform(t);continue}c[o]&&i.setAttribute(c[o],n[o])}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 o=t._attrs.x,a=e.split("\n"),s=a.length-1,u="";r.each(a,(function(t,e){0===e?"alphabetic"===i?u+='<tspan x="'+o+'" dy="'+-s+'em">'+t+"</tspan>":"top"===i?u+='<tspan x="'+o+'" dy="0.9em">'+t+"</tspan>":"middle"===i?u+='<tspan x="'+o+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===i?u+='<tspan x="'+o+'" dy="-'+(s+l)+'em">'+t+"</tspan>":"hanging"===i&&(u+='<tspan x="'+o+'" dy="'+(-(s-1)-l)+'em">'+t+"</tspan>"):u+='<tspan x="'+o+'" dy="1em">'+t+"</tspan>"})),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 o=i.find("gradient",n);o||(o=i.addGradient(n)),r.setAttribute(c[e],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var a=i.find("pattern",n);a||(a=i.addPattern(n)),r.setAttribute(c[e],"url(#"+a+")")}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=a,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=m,e.translate=y,e.rotate=_,e.scale=x,e.fromTranslation=b,e.fromRotation=w,e.fromScaling=j,e.fromMat2d=S,e.fromQuat=M,e.normalFromMat4=E,e.projection=P,e.str=C,e.frob=k,e.add=A,e.subtract=T,e.multiplyScalar=O,e.multiplyScalarAndAdd=I,e.exactEquals=R,e.equals=D;var r=n(78),i=o(r);function o(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 a(){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,o,a,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]=o,c[5]=a,c[6]=s,c[7]=u,c[8]=l,c}function f(t,e,n,r,i,o,a,s,u,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,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],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],f=c*a-s*l,h=-c*o+s*u,d=l*o-a*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*a)*p,t[3]=h*p,t[4]=(c*n-i*u)*p,t[5]=(-s*n+i*o)*p,t[6]=d*p,t[7]=(-l*n+r*u)*p,t[8]=(a*n-r*o)*p,t):null}function g(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8];return t[0]=a*c-s*l,t[1]=i*l-r*c,t[2]=r*s-i*a,t[3]=s*u-o*c,t[4]=n*c-i*u,t[5]=i*o-n*s,t[6]=o*l-a*u,t[7]=r*u-n*l,t[8]=n*a-r*o,t}function v(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8];return e*(l*o-a*u)+n*(-l*i+a*s)+r*(u*i-o*s)}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=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],m=n[5],y=n[6],_=n[7],x=n[8];return t[0]=h*r+d*a+p*l,t[1]=h*i+d*s+p*c,t[2]=h*o+d*u+p*f,t[3]=g*r+v*a+m*l,t[4]=g*i+v*s+m*c,t[5]=g*o+v*u+m*f,t[6]=y*r+_*a+x*l,t[7]=y*i+_*s+x*c,t[8]=y*o+_*u+x*f,t}function y(t,e,n){var r=e[0],i=e[1],o=e[2],a=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]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=h*r+d*a+l,t[7]=h*i+d*s+c,t[8]=h*o+d*u+f,t}function _(t,e,n){var r=e[0],i=e[1],o=e[2],a=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*a,t[1]=d*i+h*s,t[2]=d*o+h*u,t[3]=d*a-h*r,t[4]=d*s-h*i,t[5]=d*u-h*o,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 j(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 S(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 M(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,l=n*a,c=r*a,f=r*s,h=i*a,d=i*s,p=i*u,g=o*a,v=o*s,m=o*u;return t[0]=1-f-p,t[3]=c-m,t[6]=h+v,t[1]=c+m,t[4]=1-l-p,t[7]=d-g,t[2]=h-v,t[5]=d+g,t[8]=1-l-f,t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=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],m=e[15],y=n*s-r*a,_=n*u-i*a,x=n*l-o*a,b=r*u-i*s,w=r*l-o*s,j=i*l-o*u,S=c*g-f*p,M=c*v-h*p,E=c*m-d*p,P=f*v-h*g,C=f*m-d*g,k=h*m-d*v,A=y*k-_*C+x*P+b*E-w*M+j*S;return A?(A=1/A,t[0]=(s*k-u*C+l*P)*A,t[1]=(u*E-a*k-l*M)*A,t[2]=(a*C-s*E+l*S)*A,t[3]=(i*C-r*k-o*P)*A,t[4]=(n*k-i*E+o*M)*A,t[5]=(r*E-n*C-o*S)*A,t[6]=(g*j-v*w+m*b)*A,t[7]=(v*x-p*j-m*_)*A,t[8]=(p*w-g*x+m*y)*A,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 k(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 A(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}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 O(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 R(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 D(t,e){var n=t[0],r=t[1],o=t[2],a=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],m=e[5],y=e[6],_=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(o-p)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-v)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-m)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(l-y)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(c-_)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(f-x)<=i.EPSILON*Math.max(1,Math.abs(f),Math.abs(x))}e.mul=m,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=a,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=m,e.max=y,e.round=_,e.scale=x,e.scaleAndAdd=b,e.distance=w,e.squaredDistance=j,e.length=S,e.squaredLength=M,e.negate=E,e.inverse=P,e.normalize=C,e.dot=k,e.cross=A,e.lerp=T,e.random=O,e.transformMat2=I,e.transformMat2d=R,e.transformMat3=D,e.transformMat4=L,e.rotate=N,e.angle=F,e.str=B,e.exactEquals=z,e.equals=G;var r=n(78),i=o(r);function o(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 a(){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 m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function _(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 j(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function S(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function M(t){var e=t[0],n=t[1];return e*e+n*n}function E(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 k(t,e){return t[0]*e[0]+t[1]*e[1]}function A(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],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function O(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 R(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 D(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 L(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],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t}function F(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=n*n+r*r;a>0&&(a=1/Math.sqrt(a));var s=i*i+o*o;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*o)*a*s;return u>1?0:u<-1?Math.PI:Math.acos(u)}function B(t){return"vec2("+t[0]+", "+t[1]+")"}function z(t,e){return t[0]===e[0]&&t[1]===e[1]}function G(t,e){var n=t[0],r=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))}e.len=S,e.sub=h,e.mul=d,e.div=p,e.dist=w,e.sqrDist=j,e.sqrLen=M,e.forEach=function(){var t=a();return function(e,n,r,i,o,a){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;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],o(t,t,a),e[s]=t[0],e[s+1]=t[1];return e}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=a,e.clone=s,e.length=u,e.fromValues=l,e.copy=c,e.set=f,e.add=h,e.subtract=d,e.multiply=p,e.divide=g,e.ceil=v,e.floor=m,e.min=y,e.max=_,e.round=x,e.scale=b,e.scaleAndAdd=w,e.distance=j,e.squaredDistance=S,e.squaredLength=M,e.negate=E,e.inverse=P,e.normalize=C,e.dot=k,e.cross=A,e.lerp=T,e.hermite=O,e.bezier=I,e.random=R,e.transformMat4=D,e.transformMat3=L,e.transformQuat=N,e.rotateX=F,e.rotateY=B,e.rotateZ=z,e.angle=G,e.str=q,e.exactEquals=V,e.equals=Y;var r=n(78),i=o(r);function o(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 a(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function s(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function u(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function l(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function f(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function h(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function v(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function m(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function y(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function _(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function x(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function w(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}function j(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function S(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function M(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function E(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function C(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function k(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t}function T(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function O(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,u=a*(o-2)+o,l=a*(o-1),c=a*(3-2*o);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,o){var a=1-o,s=a*a,u=o*o,l=s*a,c=3*o*s,f=3*u*a,h=u*o;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 R(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,o=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=r*e,t}function D(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function L(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function N(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],l=e[2],c=i*l-o*u,f=o*s-r*l,h=r*u-i*s,d=i*h-o*f,p=o*c-r*h,g=r*f-i*c,v=2*a;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 F(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function z(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function G(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=k(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)}function q(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function V(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Y(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],u=e[2];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-u)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))}e.sub=d,e.mul=p,e.div=g,e.dist=j,e.sqrDist=S,e.len=u,e.sqrLen=M,e.forEach=function(){var t=a();return function(e,n,r,i,o,a){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;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},function(t,e,n){var r=n(6),i=n(11),o=n(152),a=5,s=7,u=[1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],l=[1,2,4,5,10],c=1e-12;t.exports=function(t){var e=t.min,n=t.max,f=t.interval,h=t.minTickInterval,d=[],p=t.minCount||a,g=t.maxCount||s,v=p===g,m=r(t.minLimit)?-1/0:t.minLimit,y=r(t.maxLimit)?1/0:t.maxLimit,_=(p+g)/2,x=_,b=t.snapArray?t.snapArray:v?u:l;if(e===m&&n===y&&v&&(f=(n-e)/(x-1)),r(e)&&(e=0),r(n)&&(n=0),Math.abs(n-e)<c&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!f&&n-e>=1&&(f=1)),r(f)){var w=(n-e)/(_-1);f=o.snapFactorTo(w,b,"ceil"),g!==p&&(x=parseInt((n-e)/f,10),x>g&&(x=g),x<p&&(x=p),f=o.snapFactorTo((n-e)/(x-1),b))}if(i(h)&&f<h&&(f=h),t.interval||g!==p){n=Math.min(o.snapMultiple(n,f,"ceil"),y),e=Math.max(o.snapMultiple(e,f,"floor"),m),x=Math.round((n-e)/f),e=o.fixedBase(e,f),n=o.fixedBase(n,f);var j=null;while(e>m&&m>-1/0&&(null===j||e<j))j=e,e=o.fixedBase(e-f,f)}else{_=parseInt(_,10);var S,M=(n+e)/2,E=o.snapMultiple(M,f,"ceil"),P=Math.floor((_-2)/2),C=E+P*f;S=_%2===0?E-P*f:E-(P+1)*f;var k=null;while(C<n&&(null===k||C>k))k=C,C=o.fixedBase(C+f,f);var A=null;while(S>e&&(null===A||S<A))A=S,S=o.fixedBase(S-f,f);n=C,e=S}n=Math.min(n,y),e=Math.max(e,m),d.push(e);for(var T=1;T<x;T++){var O=o.fixedBase(f*T+e,f);O<n&&d.push(O)}return d[d.length-1]<n&&d.push(n),{min:e,max:n,interval:f,count:x,ticks:d}}},function(t,e,n){var r=n(152),i=n(6),o=6,a=[1,2,4,6,8,12],s=6e4,u=36e5,l=864e5;function c(t){return new Date(t).getFullYear()}function f(t){return new Date(t,0,1).getTime()}function h(t){return new Date(t).getMonth()}function d(t,e){var n=c(t),r=c(e),i=h(t),o=h(e);return 12*(r-n)+(o-i)%12}function p(t,e){return new Date(t,e,1).getTime()}function g(t,e){return Math.ceil((e-t)/l)}function v(t,e){return Math.ceil((e-t)/u)}function m(t,e){return Math.ceil((e-t)/6e4)}t.exports=function(t){var e,n=t.minInterval,y=[],_=t.min,x=t.max,b=t.interval;if(x===_&&(x=_+l),i(b)){var w=x-_,j=l,S=365*j;b=parseInt(w/(t.maxCount||o),10),n&&n>b&&(b=n);var M=b/S,E=c(_);if(M>.51){for(var P=Math.ceil(M),C=c(x),k=E;k<=C+P;k+=P)y.push(f(k));b=null}else if(M>.0834){for(var A=Math.ceil(M/.0834),T=h(_),O=d(_,x),I=0;I<=O+A;I+=A)y.push(p(E,I+T));b=null}else if(b>.5*j){var R=new Date(_),D=R.getFullYear(),L=R.getMonth(_),N=R.getDate(),F=Math.ceil(b/j),B=g(_,x);b=F*j;for(var z=0;z<B+F;z+=F)y.push(new Date(D,L,N+z).getTime())}else if(b>u){var G=new Date(_),q=G.getFullYear(),V=G.getMonth(_),Y=G.getDate(),H=G.getHours(),W=r.snapTo(a,Math.ceil(b/u)),U=v(_,x);b=W*u;for(var X=0;X<=U+W;X+=W)y.push(new Date(q,V,Y,H+X).getTime())}else if(b>s){var Z=m(_,x),$=Math.ceil(b/s);b=$*s;for(var Q=0;Q<=Z+$;Q+=$)y.push(_+Q*s)}else{b<1e3&&(b=1e3),_=1e3*Math.floor(_/1e3);var K=Math.ceil((x-_)/1e3),J=Math.ceil(b/1e3);b=1e3*J;for(var tt=0;tt<K+J;tt+=J)y.push(_+1e3*tt)}}if(!y.length){_=1e3*Math.floor(_/1e3),x=1e3*Math.ceil(x/1e3),e=(x-_)/b;for(var et=0;et<=e;et++)y.push(r.fixedBase(b*et+_,b))}return{max:x,min:_,interval:b,ticks:y,count:y.length}}},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),o=n(11),a=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.isIdentity=!0,this.type="identity",this.value=null},n.getText=function(){return this.value.toString()},n.scale=function(t){return this.value!==t&&o(t)?t:this.range[0]},n.invert=function(){return this.value},e}(i);i.Identity=a,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(2),o=n(26),a=n(51);function s(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var 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),this.type="log",this.tickCount=10,this.base=2,this._minTick=null},n.calculateTicks=function(){var t,e=this,n=e.base;if(e.min<0)throw new Error("The minimum value must be greater than zero!");var r=s(n,e.max);if(e.min>0)t=Math.floor(s(n,e.min));else{var o=e.values,a=e.max;i(o,(function(t){t>0&&t<a&&(a=t)})),a===e.max&&(a=e.max/n),a>1&&(a=1),t=Math.floor(s(n,a)),e._minTick=t,e.positiveMin=a}for(var u=r-t,l=e.tickCount,c=Math.ceil(u/l),f=[],h=t;h<r+c;h+=c)f.push(Math.pow(n,h));return 0===e.min&&f.unshift(0),f},n._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r,i=this.base,o=this.positiveMin;return o&&(n=1*o/i),r=t<o?t/o/(s(i,e)-s(i,n)):(s(i,t)-s(i,n))/(s(i,e)-s(i,n)),r},n.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin(),r=this.rangeMax();return n+e*(r-n)},n.invert=function(t){var e,n=this.base,r=s(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;e=s(n,a/n);var u=1/(r-e)*o;if(t<u)return t/u*a}else e=s(n,this.min);var l=(t-i)/o,c=l*(r-e)+e;return Math.pow(n,c)},e}(a);o.Log=u,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(26),o=n(51);function a(t,e){var n=Math.E,r=Math.pow(n,Math.log(e)/t);return r}var s=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="pow",this.tickCount=10,this.exponent=2},n.calculateTicks=function(){var t,e=this,n=e.exponent,r=Math.ceil(a(n,e.max));if(t=e.min>=0?Math.floor(a(n,e.min)):0,t>r){var i=r;r=t,t=i}for(var o=r-t,s=e.tickCount,u=Math.ceil(o/s),l=[],c=t;c<r+u;c+=u)l.push(Math.pow(c,n));return l},n._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent,i=(a(r,t)-a(r,n))/(a(r,e)-a(r,n));return i},n.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin(),r=this.rangeMax();return n+e*(r-n)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin()),n=this.exponent,r=a(n,this.max),i=a(n,this.min),o=e*(r-i)+i;return Math.pow(o,n)},e}(o);i.Pow=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(26),o=n(153),a=n(222),s=n(151),u=n(52),l=n(2),c=n(11),f=n(39),h=n(15),d=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="timeCat",this.sortable=!0,this.tickCount=5,this.mask="YYYY-MM-DD"},n.init=function(){var t=this,e=this.values;l(e,(function(n,r){e[r]=t._toTimeStamp(n)})),this.sortable&&e.sort((function(t,e){return t-e})),t.ticks||(t.ticks=this.calculateTicks())},n.calculateTicks=function(){var t,e=this,n=e.tickCount;if(n){var r=s({maxCount:n,data:e.values,isRounding:e.isRounding});t=r.ticks}else t=e.values;return t},n.translate=function(t){t=this._toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=c(t)&&t<this.values.length?t:NaN),e},n.scale=function(t){var e,n=this.rangeMin(),r=this.rangeMax(),i=this.translate(t);return e=1===this.values.length||isNaN(i)?i:i>-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):a.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}(o);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),o=n(2),a=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;o(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),u<n&&(u=n),r.push(n)})),n.length>1&&(e.minTickInterval=s-i),(a(e.min)||e._toTimeStamp(e.min)>i)&&(e.min=i),(a(e.max)||e._toTimeStamp(e.max)<u)&&(e.max=u)}t.prototype.init.call(this)},n.calculateTicks=function(){var t=this,e=t.min,n=t.max,r=t.tickCount,i=t.tickInterval,o=c({min:e,max:n,minCount:r,maxCount:r,interval:i,minInterval:t.minTickInterval});return o.ticks},n.getText=function(t){var e=this.formatter;return t=this.translate(t),t=e?e(t):i.format(t,this.mask),t},n.scale=function(e){return s(e)&&(e=this.translate(e)),t.prototype.scale.call(this,e)},n.translate=function(t){return this._toTimeStamp(t)},n._toTimeStamp=function(t){return f.toTimeStamp(t)},e}(l);u.Time=h,t.exports=h},function(t,e,n){var r=n(82),i=n(53),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r(t,(function(t){return!i(e,t)}))};t.exports=o},function(t,e,n){var r=n(14),i=n(40),o=n(177);function a(t,e){var n=void 0;if(r(e)&&(n=e),i(e)&&(n=function(t){return o(t,e)}),n)for(var a=0;a<t.length;a+=1)if(n(t[a]))return t[a];return null}t.exports=a},function(t,e,n){var r=n(6),i=n(4),o=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o],s=a[e];if(!r(s)){n=i(s)?s[0]:s;break}}return n};t.exports=o},function(t,e,n){var r=n(4),i=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(r(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n};t.exports=i},function(t,e,n){var r=n(4),i=n(2),o=function(t){if(!r(t))return t;var e=[];return i(t,(function(t){r(t)?i(t,(function(t){e.push(t)})):e.push(t)})),e};t.exports=o},function(t,e,n){var r=n(82),i=n(4),o=function(t){if(t=r(t,(function(t){return!isNaN(t)})),!t.length)return{min:0,max:0};if(i(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var o=Math.max.apply(null,t),a=Math.min.apply(null,t);return{min:a,max:o}};t.exports=o},function(t,e,n){t.exports={contains:n(53),difference:n(358),find:n(359),firstValue:n(360),flatten:n(362),flattenDeep:n(361),getRange:n(363),merge:n(54),pull:n(156),pullAt:n(155),reduce:n(365),remove:n(366),sortBy:n(367),union:n(368),uniq:n(157),valuesOfKey:n(79)}},function(t,e,n){var r=n(4),i=n(40),o=n(2),a=function(t,e,n){if(!r(t)&&!i(t))return t;var a=n;return o(t,(function(t,n){a=e(a,t,n)})),a};t.exports=a},function(t,e,n){var r=n(21),i=n(155),o=function(t,e){var n=[];if(!r(t))return n;var o=-1,a=[],s=t.length;while(++o<s){var u=t[o];e(u,o,t)&&(n.push(u),a.push(o))}return i(t,a),n};t.exports=o},function(t,e,n){var r=n(15),i=n(14),o=n(4);function a(t,e){var n=void 0;if(i(e))n=function(t,n){return e(t)-e(n)};else{var a=[];r(e)?a.push(e):o(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}t.exports=a},function(t,e,n){var r=n(2),i=n(57),o=n(157),a=function(){var t=[],e=i(arguments);return r(e,(function(e){t=t.concat(e)})),o(t)};t.exports=a},function(t,e){function n(t,e,n){var r=void 0;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}t.exports=n},function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e){t.exports=function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}return e||null}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e){t.exports=function(t,e){var n=this.getHeight(t,e),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,i=parseFloat(this.getStyle(t,"paddingTop"))||0,o=parseFloat(this.getStyle(t,"paddingBottom"))||0,a=parseFloat(this.getStyle(t,"borderBottomWidth"))||0;return n+r+a+i+o}},function(t,e){t.exports=function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(t,"paddingLeft"))||0,o=parseFloat(this.getStyle(t,"paddingRight"))||0,a=parseFloat(this.getStyle(t,"borderRightWidth"))||0;return n+r+a+i+o}},function(t,e){t.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){var r=n(6);t.exports=function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(i){return r(n)?null:n}}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){t.exports={addEventListener:n(370),createDom:n(159),getBoundingClientRect:n(371),getHeight:n(372),getOuterHeight:n(373),getOuterWidth:n(374),getRatio:n(375),getStyle:n(376),getWidth:n(377),modifyCSS:n(160),requestAnimationFrame:n(161)}},function(t,e){function n(t,e){return t["_wrap_"+e]}t.exports=n},function(t,e,n){t.exports={getWrapBehavior:n(379),wrapBehavior:n(381)}},function(t,e){function n(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}t.exports=n},function(t,e,n){var r=n(383);t.exports={number2color:r,numberToColor:r,parsePath:n(384),parseRadius:n(385)}},function(t,e){var n={};t.exports=function(t){var e=n[t];if(!e){for(var r=t.toString(16),i=r.length;i<6;i++)r="0"+r;e="#"+r,n[t]=e}return e}},function(t,e,n){var r=n(4),i=n(15),o=n(2),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;t.exports=function(t){return t=t||[],r(t)?t:i(t)?(t=t.match(a),o(t,(function(e,n){if(e=e.match(s),e[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}o(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,o=0;return r(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}},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,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i};t.exports=i},function(t,e,n){var r=n(14),i=n(83),o=function(t,e,n){return r(n)?!!n(t,e):i(t,e)};t.exports=o},function(t,e,n){var r=n(2),i=n(21),o=function(t,e){if(!i(t))return t;var n=[];return r(t,(function(t,r){n.push(e(t,r))})),n};t.exports=o},function(t,e){var n=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(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),o=n(2),a=function(t,e){if(r(t)){var n=t[0],a=void 0;a=i(e)?e(t[0]):t[0][e];var s=void 0;return o(t,(function(t){s=i(e)?e(t):t[e],s<a&&(n=t,a=s)})),n}};t.exports=a},function(t,e,n){t.exports=n(2)},function(t,e,n){t.exports=n(176)},function(t,e,n){var r=n(53),i=n(179);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){t.exports={forIn:n(398),has:n(176),hasKey:n(399),hasValue:n(400),keys:n(178),isMatch:n(177),values:n(179)}},function(t,e,n){var r=n(406);function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var o=function(t,e){var n=t.length,o=e.length,a=void 0,s=void 0,u=0;if(0===n||0===o)return null;for(var l=[],c=0;c<=n;c++)l[c]=[],l[c][0]={min:c};for(var f=0;f<=o;f++)l[0][f]={min:f};for(var h=1;h<=n;h++){a=t[h-1];for(var d=1;d<=o;d++){s=e[d-1],u=r(a,s)?0:1;var p=l[h-1][d].min+1,g=l[h][d-1].min+1,v=l[h-1][d-1].min+u;l[h][d]=i(p,g,v)}}return l};t.exports=function(t,e){var n=o(t,e),r=t.length,i=e.length,a=[],s=1,u=1;if(n[r][i]!==r){for(var l=1;l<=r;l++){var c=n[l][l].min;u=l;for(var f=s;f<=i;f++)n[l][f].min<c&&(c=n[l][f].min,u=f);s=u,n[l][s].type&&a.push({index:l-1,type:n[l][s].type})}for(var h=a.length-1;h>=0;h--)s=a[h].index,"add"===a[h].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}if(r=t.length,r<i)for(var d=0;d<i-r;d++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]);return t}},function(t,e){function n(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function r(t,e,r){var i=[[t[1],t[2]]];r=r||2;var o=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var a=i,s=1/r,u=0;u<r-1;u++){var l=s/(1-s*u),c=n(a,l);o.push(c.left),a=c.right}o.push(a);var f=o.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),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 o=[].concat(t);"M"===o[0]&&(o[0]="L");for(var a=0;a<=n-1;a++)i.push(o)}return i}t.exports=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,o=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<r-n;s++)t.push(t[0]);return t}for(var u=0;u<r;u++){var l=Math.floor(o*u);a[l]=(a[l]||0)+1}var c=a.reduce((function(e,r,o){return o===n?e.concat(t[n]):e.concat(i(t[o],t[o+1],r))}),[]);return c.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||c.push("Z"),c}},function(t,e){function n(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}function r(t,e,r){for(var i=[].concat(t),o=void 0,a=1/(r+1),s=n(e)[0],u=1;u<=r;u++)a*=u,o=Math.floor(t.length*a),0===o?i.unshift([s[0]*a+t[o][0]*(1-a),s[1]*a+t[o][1]*(1-a)]):i.splice(o,0,[s[0]*a+t[o][0]*(1-a),s[1]*a+t[o][1]*(1-a)]);return i}t.exports=function(t,e){if(t.length<=1)return t;for(var i=void 0,o=0;o<e.length;o++)if(t[o][0]!==e[o][0])switch(i=n(t[o]),e[o][0]){case"M":t[o]=["M"].concat(i[0]);break;case"L":t[o]=["L"].concat(i[0]);break;case"A":t[o]=[].concat(e[o]),t[o][6]=i[0][0],t[o][7]=i[0][1];break;case"Q":if(i.length<2){if(!(o>0)){t[o]=e[o];break}i=r(i,t[o-1],1)}t[o]=["Q"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[o]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(o>0)){t[o]=e[o];break}i=r(i,t[o-1],2)}t[o]=["C"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(i.length<2){if(!(o>0)){t[o]=e[o];break}i=r(i,t[o-1],1)}t[o]=["S"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[o]=e[o]}return t}},function(t,e,n){var r=n(407),i=n(183),o=n(184),a=n(180);t.exports={catmullRom2Bezier:a,catmullRomToBezier:a,fillPath:n(403),fillPathByDiff:n(402),formatPath:n(404),intersection:r,pathIntersection:r,parsePathArray:n(181),parsePathString:n(182),pathToAbsolute:i,path2absolute:i,pathTocurve:o,path2curve:o,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),o=n(184),a=function(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n},s=function(t,e,n,r,i,o,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;g<f;g++){var v=c*h[g]+c,m=a(v,t,n,i,s),y=a(v,e,r,o,u),_=m*m+y*y;p+=d[g]*Math.sqrt(_)}return c*p},u=function(t,e,n,r,i,o,a,s){for(var u=[],l=[[],[]],c=void 0,f=void 0,h=void 0,d=void 0,p=0;p<2;++p)if(0===p?(f=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*a,h=3*n-3*t):(f=6*e-12*r+6*o,c=-3*e+9*r-9*o+3*s,h=3*r-3*e),Math.abs(c)<1e-12){if(Math.abs(f)<1e-12)continue;d=-h/f,d>0&&d<1&&u.push(d)}else{var g=f*f-4*h*c,v=Math.sqrt(g);if(!(g<0)){var m=(-f+v)/(2*c);m>0&&m<1&&u.push(m);var y=(-f-v)/(2*c);y>0&&y<1&&u.push(y)}}var _=u.length,x=_,b=void 0;while(_--)d=u[_],b=1-d,l[0][_]=b*b*b*t+3*b*b*d*n+3*b*d*d*i+d*d*d*a,l[1][_]=b*b*b*e+3*b*b*d*r+3*b*d*d*o+d*d*d*s;return l[0][x]=t,l[1][x]=e,l[0][x+1]=a,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,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var u=(t*r-e*n)*(i-a)-(t-n)*(i*s-o*a),l=(t*r-e*n)*(o-s)-(e-r)*(i*s-o*a),c=(t-n)*(o-s)-(e-r)*(i-a);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,a).toFixed(2)||d>+Math.max(i,a).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(o,s).toFixed(2)||p>+Math.max(o,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.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},d=function(t,e,n,i,o,a,s,l){r(t)||(t=[t,e,n,i,o,a,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,o,a,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*a,g=c*e+3*f*u*r+3*l*u*u*o+d*s,v=t+2*u*(n-t)+h*(i-2*n+t),m=e+2*u*(r-e)+h*(o-2*r+e),y=n+2*u*(i-n)+h*(a-2*i+n),_=r+2*u*(o-r)+h*(s-2*o+r),x=l*t+u*n,b=l*e+u*r,w=l*i+u*a,j=l*o+u*s,S=90-180*Math.atan2(v-y,m-_)/Math.PI;return{x:p,y:g,m:{x:v,y:m},n:{x:y,y:_},start:{x:x,y:b},end:{x:w,y:j},alpha:S}},g=function(t,e,n){var r=d(t),i=d(e);if(!h(r,i))return n?0:[];for(var o=s.apply(0,t),a=s.apply(0,e),u=~~(o/8),c=~~(a/8),f=[],g=[],v={},m=n?0:[],y=0;y<u+1;y++){var _=p.apply(0,t.concat(y/u));f.push({x:_.x,y:_.y,t:y/u})}for(var x=0;x<c+1;x++){var b=p.apply(0,e.concat(x/c));g.push({x:b.x,y:b.y,t:x/c})}for(var w=0;w<u;w++)for(var j=0;j<c;j++){var S=f[w],M=f[w+1],E=g[j],P=g[j+1],C=Math.abs(M.x-S.x)<.001?"y":"x",k=Math.abs(P.x-E.x)<.001?"y":"x",A=l(S.x,S.y,M.x,M.y,E.x,E.y,P.x,P.y);if(A){if(v[A.x.toFixed(4)]===A.y.toFixed(4))continue;v[A.x.toFixed(4)]=A.y.toFixed(4);var T=S.t+Math.abs((A[C]-S[C])/(M[C]-S[C]))*(M.t-S.t),O=E.t+Math.abs((A[k]-E[k])/(P[k]-E[k]))*(P.t-E.t);T>=0&&T<=1&&O>=0&&O<=1&&(n?m++:m.push({x:A.x,y:A.y,t1:T,t2:O}))}}return m},v=function(t,e,n){t=o(t),e=o(e);for(var r=void 0,i=void 0,a=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,m=t.length;v<m;v++){var y=t[v];if("M"===y[0])r=u=y[1],i=l=y[2];else{"C"===y[0]?(h=[r,i].concat(y.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,u,l,u,l],r=u,i=l);for(var _=0,x=e.length;_<x;_++){var b=e[_];if("M"===b[0])a=c=b[1],s=f=b[2];else{"C"===b[0]?(d=[a,s].concat(b.slice(1)),a=d[6],s=d[7]):(d=[a,s,a,s,c,f,c,f],a=c,s=f);var w=g(h,d,n);if(n)p+=w;else{for(var j=0,S=w.length;j<S;j++)w[j].segment1=v,w[j].segment2=_,w[j].bez1=h,w[j].bez2=d;p=p.concat(w)}}}}}return p};t.exports=function(t,e){return v(t,e)}},function(t,e,n){var r=n(2),i=n(40),o=Object.prototype.hasOwnProperty,a=function(t,e){if(null===t||!i(t))return{};var n={};return r(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n};t.exports=a},function(t,e,n){var r={lc:n(410),lowerCase:n(186),lowerFirst:n(187),substitute:n(411),uc:n(412),upperCase:n(188),upperFirst:n(189)};t.exports=r},function(t,e,n){t.exports=n(186)},function(t,e){var n=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t};t.exports=n},function(t,e,n){t.exports=n(188)},function(t,e){function n(t,e,n){var r=void 0,i=void 0,o=void 0,a=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=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=o(r);function o(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<e.length;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}}(),i=n(42),o=c(i),a=n(29),s=c(a),u=n(545),l=c(u);function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(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 d(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)}(0,l.default)(o.default.PureComponent,"`React.PureComponent` needs React >=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 o.default.createElement("div",{style:{width:e,height:n}},r)}}]),e}(o.default.PureComponent||o.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:o.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<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;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}}(),o=n(42),a=d(o),s=n(423),u=d(s),l=n(421),c=d(l),f=n(425),h=d(f);function d(t){return t&&t.__esModule?t:{default:t}}function p(t,e){var n={};for(var r in t)e.indexOf(r)>=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 m(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 y(t){var e=!0;return(null==t||0===t.length||t.rows&&0===t.rows.length)&&(e=!1),!!e}var _=function(t){function e(){var t,n,r,i;g(this,e);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return r=v(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),n=r,r._refCallback=function(t){t&&(r.chart=t.getG2Instance())},r.hasViewSource=function(){var t=!1;return a.default.Children.map(r.props.children,(function(e){!t&&e&&"function"===typeof e.type&&"View"===e.type.name&&e.props.data&&y(e.props.data)&&(t=!0)})),t},i=n,v(r,i)}return m(e,t),i(e,[{key:"getG2Instance",value:function(){return this.chart}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.width,i=t.height,o=t.placeholder,s=t.className,l=t.style;return a.default.createElement("div",{className:s,style:l},y(e)||this.hasViewSource()||!o?a.default.createElement(u.default,r({ref:this._refCallback},this.props)):a.default.createElement(c.default,{width:n,height:i,placeholder:!0===o?void 0:o}))}}]),e}(a.default.PureComponent||a.default.Component),x=function(t){function e(){return g(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return m(e,t),i(e,[{key:"render",value:function(){var t=this.props,e=t.widthErrorBoundary,n=p(t,["widthErrorBoundary"]);return!1===e?a.default.createElement(_,n):a.default.createElement(h.default,null,a.default.createElement(_,n))}}]),e}(a.default.Component);e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;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}}(),o=n(42),a=g(o),s=n(29),u=g(s),l=n(436),c=g(l),f=n(543),h=g(f),d=n(538),p=g(d);function g(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(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 y(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 _=function(t){function e(t){v(this,e);var n=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return x.call(n),n.name="Chart",n.gId=0,n.id=n.createId(),n.g2Processor=new c.default,n.forceFit=(0,p.default)((function(){n.chart&&n.chart.forceFit()}),300),n}return y(e,t),i(e,[{key:"getChildContext",value:function(){return{addElement:this.addElement,updateElement:this.updateElement,deleteElement:this.deleteElement,createId:this.createId,getParentInfo:this.getParentInfo,getViewId:this.getViewId}}},{key:"componentDidMount",value:function(){if(this.addElement(this.name,this.id,r({},this.props,{container:this.containerWrap})),this.chart=this.g2Processor.createG2Instance(),this.notifyG2Instance(),this.props.forceFit){var t=new h.default(this.forceFit);t.observe(this.containerWrap),this.observe=t}}},{key:"componentDidUpdate",value:function(){this.updateElement(this.name,this.id,r({},this.props,{container:this.containerWrap}));var t=this.g2Processor.batchedUpdate();this.chart!==t&&(this.chart=t,this.notifyG2Instance()),this.props.forceUpdate&&this.chart.forceFit()}},{key:"componentWillUnmount",value:function(){this.g2Processor.destory(),this.chart=null,this.forceFit&&this.forceFit.cancel(),this.observe&&this.observe.unobserve(this.containerWrap),this.containerWrap=null}},{key:"getG2Instance",value:function(){return this.chart}},{key:"notifyG2Instance",value:function(){this.props.onGetG2Instance&&this.props.onGetG2Instance(this.chart)}},{key:"render",value:function(){return a.default.createElement("div",{ref:this.refHandle},this.props.children)}}]),e}(o.Component);_.propTypes={data:u.default.oneOfType([u.default.arrayOf(u.default.object),u.default.object]),scale:u.default.oneOfType([u.default.object,u.default.array]),animate:u.default.bool,width:u.default.number,height:u.default.number.isRequired,onGetG2Instance:u.default.func,forceFit:u.default.bool,forceUpdate:u.default.bool},_.childContextTypes={addElement:u.default.func,updateElement:u.default.func,deleteElement:u.default.func,createId:u.default.func,getParentInfo:u.default.func,getViewId:u.default.func};var x=function(){var t=this;this.getViewId=function(){},this.getParentInfo=function(){return{id:t.id,name:t.name}},this.createId=function(){return t.gId+=1,t.gId},this.addElement=function(e,n,r,i,o){return t.g2Processor.addElement(e,n,r,i,o)},this.updateElement=function(e,n,r,i,o){t.g2Processor.updateElement(e,n,r,i,o)},this.deleteElement=function(e,n,r){t.g2Processor.deleteElement(e,n,r)},this.refHandle=function(e){t.containerWrap||(t.containerWrap=e)}};e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}e.default=i.default.generateBaseTypedComponent("Coord")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;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}}(),i=n(42),o=a(i);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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 l(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 c=function(t){function e(t){s(this,e);var n=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={hasError:!1},n}return l(e,t),r(e,[{key:"shouldComponentUpdate",value:function(){return this.state.hasError&&this.setState({hasError:!1}),!0}},{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"unstable_handleError",value:function(){this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?o.default.createElement("h1",null,"bizcharts error."):this.props.children}}]),e}(o.default.Component);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(285);var r=n(24),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}e.default=i.default.generateBaseTypedComponent("Facet")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(292);var r=n(24),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}e.default=i.default.generateBaseTypedComponent("Geom")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}var a=i.default.generateBaseTypedComponent("Guide");a.Line=i.default.generateBaseTypedComponent("GuideLine"),a.Image=i.default.generateBaseTypedComponent("GuideImage"),a.Text=i.default.generateBaseTypedComponent("GuideText"),a.Region=i.default.generateBaseTypedComponent("GuideRegion"),a.Html=i.default.generateBaseTypedComponent("GuideHtml"),a.Arc=i.default.generateBaseTypedComponent("GuideArc"),a.RegionFilter=i.default.generateBaseTypedComponent("GuideRegionFilter"),a.DataMarker=i.default.generateBaseTypedComponent("GuideDataMarker"),a.DataRegion=i.default.generateBaseTypedComponent("GuideDataRegion"),e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;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}}(),i=n(537),o=c(i),a=n(24),s=c(a),u=n(29),l=c(u);function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(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 d(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 p=function(t){function e(t){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,"Label"))}return d(e,t),r(e,[{key:"componentWillMount",value:function(){var t=this.context.getParentInfo();(0,o.default)("Geom"===t.name,"`<Label />` must be wrapped in `<Geom />`"),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),o=n(29),a=s(o);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:a.default.func,updateElement:a.default.func,deleteElement:a.default.func,createId:a.default.func,getParentInfo:a.default.func,getViewId:a.default.func},f.childContextTypes={addElement:a.default.func,updateElement:a.default.func,deleteElement:a.default.func,createId:a.default.func,getParentInfo:a.default.func,getViewId:a.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=o(r);function o(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<e.length;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}}(),i=n(24),o=u(i),a=n(29),s=u(a);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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 f(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 h=function(t){function e(t){l(this,e);var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,"View"));return n.getViewId=function(){return n.id},n}return f(e,t),r(e,[{key:"getChildContext",value:function(){return{addElement:this.context.addElement,updateElement:this.context.updateElement,deleteElement:this.context.deleteElement,createId:this.context.createId,getParentInfo:this.getParentInfo,getViewId:this.getViewId}}}]),e}(o.default);h.contextTypes={addElement:s.default.func,updateElement:s.default.func,deleteElement:s.default.func,createId:s.default.func,getParentInfo:s.default.func,getViewId:s.default.func},h.childContextTypes={addElement:s.default.func,updateElement:s.default.func,deleteElement:s.default.func,createId:s.default.func,getParentInfo:s.default.func,getViewId:s.default.func},e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={Chart:"addChart",Coord:"addCoord",Geom:"addGeom",Axis:"addAxis",Tooltip:"addTooltip",Legend:"addLegend",Label:"addLabel",View:"addView",Guide:"addGuide",GuideLine:"addGuideLine",GuideImage:"addGuideImage",GuideText:"addGuideText",GuideRegion:"addGuideRegion",GuideHtml:"addGuideHtml",GuideArc:"addGuideArc",GuideRegionFilter:"addGuideRegionFilter",GuideDataMarker:"addGuideDataMarker",GuideDataRegion:"addGuideDataRegion",Facet:"addFacet"},i={addElement:function(t,e,n){this[r[t]](e,n,n.id,n.viewId,n.parentInfo)},getConfigContainer:function(t,e){return e&&(t.views||(t.views={}),t=t.views[e],t||(t={},t.views[e]=t)),t},addUniqueElement:function(t,e,n,r,i){var o=this.getConfigContainer(t,i);return o[e],o[e]=n,r},addChart:function(t,e,n){return this.addUniqueElement(t,"chart",e,n,null)},addView:function(t,e,n){return t.views||(t.views={}),t.views[n]=e,n},addAxis:function(t,e,n,r){var i=this.getConfigContainer(t,r);return i.axises||(i.axises={}),i.axises[n]=e,n},addCoord:function(t,e,n,r){return this.addUniqueElement(t,"coord",e,n,r)},addGeom:function(t,e,n,r,i){var o=this.getConfigContainer(t,r);return o.geoms||(o.geoms={}),o.geoms[n]?i?o.geoms[n].label=e.label:(o.geoms[n].label||console.log("geom label error"),e.label=o.geoms[n].label,o.geoms[n]=e):o.geoms[n]=e,n},addLabel:function(t,e,n,r,i){var o=this.getConfigContainer(t,r);return o.geoms||(o.geoms={}),this.addGeom(t,{label:e},i.id,r,!0),n},addTooltip:function(t,e,n,r){return this.addUniqueElement(t,"tooltip",e,n,r)},addFacet:function(t,e,n,r){return this.addUniqueElement(t,"facet",e,n,r)},addLegend:function(t,e,n,r){var i=this.getConfigContainer(t,r);return i.legends||(i.legends={}),i.legends[n]=e,n},addGuide:function(t,e,n,r){return this.addUniqueElement(t,"guide",e,n,r)},addTypedGuide:function(t,e,n,r,i,o){var a=this.getConfigContainer(t,i),s=a.guide;return s||(this.addUniqueElement("guide",{},o.id,i),s=a.guide),s.elements||(s.elements={}),n.type=e,s.elements[r]=n,r},addGuideLine:function(t,e,n,r,i){this.addTypedGuide(t,"line",e,n,r,i)},addGuideImage:function(t,e,n,r,i){this.addTypedGuide(t,"image",e,n,r,i)},addGuideText:function(t,e,n,r,i){this.addTypedGuide(t,"text",e,n,r,i)},addGuideRegion:function(t,e,n,r,i){this.addTypedGuide(t,"region",e,n,r,i)},addGuideHtml:function(t,e,n,r,i){this.addTypedGuide(t,"html",e,n,r,i)},addGuideArc:function(t,e,n,r,i){this.addTypedGuide(t,"arc",e,n,r,i)},addGuideRegionFilter:function(t,e,n,r,i){this.addTypedGuide(t,"regionFilter",e,n,r,i)},addGuideDataMarker:function(t,e,n,r,i){this.addTypedGuide(t,"dataMarker",e,n,r,i)},addGuideDataRegion:function(t,e,n,r,i){this.addTypedGuide(t,"dataRegion",e,n,r,i)}};e.default=i},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0});var i={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",Facet:"deleteFacet"},o={Geom:!0,Label:!0,Facet:!0},a={deleteAxis:function(t,e,n){var r=e.axises[n].props;t.axis(r.name,!1)},deleteTooltip:function(t){t.tooltip(!1)},deleteCoord:function(t){t.coord("rect",{})},deleteLegend:function(t,e,n){var i=e.legends[n].props;t.legend.apply(t,r(i.name?[i.name,!1]:[!1]))},deleteGuide:function(t){t.guide().clear()},deleteView:function(t,e,n){e.views[n].g2Instance&&(t.removeView(e.views[n].g2Instance),delete e.views[n].g2Instance)},deleteViewElement:function(t,e,n,r){var a=this;Object.keys(n).forEach((function(t){var n=r[t],s=n.viewId;s&&(o[n.name]?e.views[s].needReExecute=!0:e.views[s].g2Instance&&a[i[n.name]]&&a[i[n.name]](e.views[s].g2Instance,e.views[s],n.id))}))},needReExecute:function(t,e){for(var n in t)if(o[e[n].name]&&!e[n].viewId)return!0;return!1},synchronizeG2Delete:function(t,e,n,r){var o=this;Object.keys(n).forEach((function(n){var a=i[r[n].name];o[a]&&!r[n].viewId&&o[a](t,e,n)})),this.deleteViewElement(t,e,n,r)}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(88),o=n(195),a=d(o),s=n(197),u=d(s),l=n(87),c=d(l),f=n(196),h=d(f);function d(t){return t&&t.__esModule?t:{default:t}}function p(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function g(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var v=a.default.COORD_FUNC_PROPS,m=a.default.GEOM_FUNC_PROPS,y={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,o=n.width,a=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),o!==c&&a!==f?t.changeSize(c,f):o!==c?t.changeWidth(c):a!==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,o=n.visible,a=g(n,["name","visible"]),s=e.updateProps,u=(s.name,s.visible),l=g(s,["name","visible"]);o!==u&&t.axis(r,!!u),i.Util.shallowEqual(a,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,o=e.tooltip.updateProps;null==n&&null==o||i.Util.shallowEqual(n,o)||t.tooltip(r({},o))}},updateCoord:function(t,e){var n=e.coord;if(n){var r=n.props,o=n.updateProps;if(null!=r&&null!=o){var a=i.Util.without(o,v.concat(["type"]));if(!i.Util.shallowEqual(r,o)){var s=t.coord(o.type,a);n.g2Instance=s,i.Prop.init(v,o,(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 o=r.name,a=r.visible,s=g(r,["name","visible"]),u=a?s:a;t.legend.apply(t,p(o?[o,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,o=g(e,["content"]),a=n.content,s=g(n,["content"]);i.Util.shallowEqual(o,s)&&i.Util.shallowEqual(r,a)||(i.Util.isArray(a)?t.label(a[0],a[1],s):t.label(a,s))}},updateGeom:function(t,e){var n=e.props,r=e.updateProps;if(n&&r&&n.type===r.type){var o=e.g2Instance;if(i.Util.shallowEqual(n,r))e.label&&this.updateLabel(o,e.label.props,e.label.updateProps);else{var a=n.adjust,s=g(n,["adjust"]),u=r.adjust,l=g(r,["adjust"]);(a||u)&&o.adjust(u),i.Prop.update(m,s,l,(function(t,e){o[e].apply(o,p(t))})),e.label&&this.updateLabel(o,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,o=e.updateProps,a=r.scale,s=r.data,u=r.animate,l=r.axis,c=r.filter,f=o.scale,h=o.animate,d=o.data,p=o.axis,g=o.filter;u!==h&&n.animate(h),s!==d&&n.changeData(d),i.Util.shallowEqual(a,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,o=n.updateProps;if(null!=r&&null!=o){var a=r.type,s=g(r,["type"]),l=o.type,c=g(o,["type"]);a===l&&i.Util.shallowEqual(s,c)||(n.props=o,u.default.facet(t,e))}}}};e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;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}}(),o=n(433),a=v(o),s=n(87),u=v(s),l=n(435),c=v(l),f=n(434),h=v(f),d=n(197),p=v(d),g=n(88);function v(t){return t&&t.__esModule?t:{default:t}}function m(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _=function(){function t(){y(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,m(n,["children"])),i=this.elementInfos[e].updateProps,o=(i.children,m(i,["children"]));if("Chart"===t||"View"===t){var a=r.data,s=m(r,["data"]),u=o.data,l=m(o,["data"]);a===u&&g.Util.isEqual(s,l)||(this.updated=!0)}else g.Util.isEqual(r,o)||(this.updated=!0)}},{key:"addElement",value:function(t,e,n,i,o){!this.chart&&this.initedG2||(this.added=!0,this.elementInfos[e]={id:e,viewId:o,parentInfo:i,name:t,props:r({},n)},i&&!this.elementInfos[i.id]&&(this.elementInfos[i.id]={id:i.id,name:i.name}),a.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=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(58),i=o(r);function o(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 o=void 0,a=void 0;i.default.each(t,(function(t){o=e[t],a=n[t],i.default.shallowEqual(a,o)||(i.default.isArray(a)||(a=[a]),r(a,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),o=n(198),a=-.14861,s=1.78277,u=-.29227,l=-.90649,c=1.97294,f=c*l,h=c*s,d=s*u-l*a;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,a=t.b/255,s=(d*a+f*e-h*r)/(d+f-h),p=a-s,g=(c*(r-s)-u*p)/l,m=Math.sqrt(g*g+p*p)/(c*s*(1-s)),y=m?Math.atan2(g,p)*o["a"]-120:NaN;return new v(y<0?y+360:y,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)*o["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*(a*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),o=n(198),a=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 j)return S(t);t instanceof i["a"]||(t=n.i(i["b"])(t));var e,r,o=x(t.r),a=x(t.g),c=x(t.b),f=m((.2225045*o+.7168786*a+.0606169*c)/u);return o===a&&a===c?e=r=f:(e=m((.4360747*o+.3850649*a+.1430804*c)/s),r=m((.0139322*o+.0971045*a+.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 m(t){return t>d?Math.pow(t,1/3):t/h+c}function y(t){return t>f?t*t*t:h*(t-c)}function _(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 j)return new j(t.h,t.c,t.l,t.opacity);if(t instanceof v||(t=p(t)),0===t.a&&0===t.b)return new j(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*o["a"];return new j(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function w(t,e,n,r){return 1===arguments.length?b(t):new j(t,e,n,null==r?1:r)}function j(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function S(t){if(isNaN(t.h))return new v(t.l,0,0,t.opacity);var e=t.h*o["b"];return new v(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}n.i(r["a"])(v,g,n.i(r["b"])(i["c"],{brighter:function(t){return new v(this.l+a*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new v(this.l-a*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=s*y(e),t=u*y(t),n=l*y(n),new i["a"](_(3.1338561*e-1.6168667*t-.4906146*n),_(-.9787684*e+1.9161415*t+.033454*n),_(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),n.i(r["a"])(j,w,n.i(r["b"])(i["c"],{brighter:function(t){return new j(this.h,this.c,this.l+a*(null==t?1:t),this.opacity)},darker:function(t){return new j(this.h,this.c,this.l-a*(null==t?1:t),this.opacity)},rgb:function(){return S(this).rgb()}}))},function(t,e,n){"use strict";var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=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;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,l=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<l)if(n=(t=i[o]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}while(++o<l)if((n=(t=i[o]).type)&&(n=s(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}},e["a"]=i},function(t,e,n){"use strict";var r=n(441);n.d(e,"a",(function(){return r["a"]}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=1.70158,i=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(r),o=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(r),a=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(r)},function(t,e,n){"use strict";e["b"]=d,e["a"]=p,e["c"]=g;var r=4/11,i=6/11,o=8/11,a=3/4,s=9/11,u=10/11,l=15/16,c=21/22,f=63/64,h=1/r/r;function d(t){return 1-p(1-t)}function p(t){return(t=+t)<r?h*t*t:t<o?h*(t-=i)*t+a:t<u?h*(t-=s)*t+l:h*(t-=c)*t+f}function g(t){return((t*=2)<=1?1-p(1-t):p(t-1)+1)/2}},function(t,e,n){"use strict";function r(t){return 1-Math.sqrt(1-t*t)}function i(t){return Math.sqrt(1- --t*t)}function o(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}e["b"]=r,e["c"]=i,e["a"]=o},function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}e["b"]=r,e["c"]=i,e["a"]=o},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return u}));var r=2*Math.PI,i=1,o=.3,a=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);function o(t){return e*Math.pow(2,10*--t)*Math.sin((i-t)/n)}return o.amplitude=function(e){return t(e,n*r)},o.period=function(n){return t(e,n)},o}(i,o),s=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);function o(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/n)}return o.amplitude=function(e){return t(e,n*r)},o.period=function(n){return t(e,n)},o}(i,o),u=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);function o(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((i-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((i+t)/n))/2}return o.amplitude=function(e){return t(e,n*r)},o.period=function(n){return t(e,n)},o}(i,o)},function(t,e,n){"use strict";function r(t){return Math.pow(2,10*t-10)}function i(t){return 1-Math.pow(2,-10*t)}function o(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}e["b"]=r,e["c"]=i,e["a"]=o},function(t,e,n){"use strict";function r(t){return+t}e["a"]=r},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=3,i=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(r),o=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(r),a=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(r)},function(t,e,n){"use strict";function r(t){return t*t}function i(t){return t*(2-t)}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}e["b"]=r,e["c"]=i,e["a"]=o},function(t,e,n){"use strict";e["b"]=o,e["c"]=a,e["a"]=s;var r=Math.PI,i=r/2;function o(t){return 1-Math.cos(t*i)}function a(t){return Math.sin(t*i)}function s(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(92);n.d(e,"interpolate",(function(){return r["a"]}));var i=n(200);n.d(e,"interpolateArray",(function(){return i["a"]}));var o=n(91);n.d(e,"interpolateBasis",(function(){return o["a"]}));var a=n(201);n.d(e,"interpolateBasisClosed",(function(){return a["a"]}));var s=n(203);n.d(e,"interpolateDate",(function(){return s["a"]}));var u=n(59);n.d(e,"interpolateNumber",(function(){return u["a"]}));var l=n(204);n.d(e,"interpolateObject",(function(){return l["a"]}));var c=n(459);n.d(e,"interpolateRound",(function(){return c["a"]}));var f=n(206);n.d(e,"interpolateString",(function(){return f["a"]}));var h=n(461);n.d(e,"interpolateTransformCss",(function(){return h["a"]})),n.d(e,"interpolateTransformSvg",(function(){return h["b"]}));var d=n(463);n.d(e,"interpolateZoom",(function(){return d["a"]}));var p=n(205);n.d(e,"interpolateRgb",(function(){return p["a"]})),n.d(e,"interpolateRgbBasis",(function(){return p["b"]})),n.d(e,"interpolateRgbBasisClosed",(function(){return p["c"]}));var g=n(456);n.d(e,"interpolateHsl",(function(){return g["a"]})),n.d(e,"interpolateHslLong",(function(){return g["b"]}));var v=n(457);n.d(e,"interpolateLab",(function(){return v["a"]}));var m=n(455);n.d(e,"interpolateHcl",(function(){return m["a"]})),n.d(e,"interpolateHclLong",(function(){return m["b"]}));var y=n(454);n.d(e,"interpolateCubehelix",(function(){return y["a"]})),n.d(e,"interpolateCubehelixLong",(function(){return y["b"]}));var _=n(458);n.d(e,"quantize",(function(){return _["a"]}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(12),i=n(41);function o(t){return function e(o){function a(e,a){var s=t((e=n.i(r["a"])(e)).h,(a=n.i(r["a"])(a)).h),u=n.i(i["a"])(e.s,a.s),l=n.i(i["a"])(e.l,a.l),c=n.i(i["a"])(e.opacity,a.opacity);return function(t){return e.h=s(t),e.s=u(t),e.l=l(Math.pow(t,o)),e.opacity=c(t),e+""}}return o=+o,a.gamma=e,a}(1)}e["a"]=o(i["b"]);var a=o(i["a"])},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(12),i=n(41);function o(t){return function(e,o){var a=t((e=n.i(r["b"])(e)).h,(o=n.i(r["b"])(o)).h),s=n.i(i["a"])(e.c,o.c),u=n.i(i["a"])(e.l,o.l),l=n.i(i["a"])(e.opacity,o.opacity);return function(t){return e.h=a(t),e.c=s(t),e.l=u(t),e.opacity=l(t),e+""}}}e["a"]=o(i["b"]);var a=o(i["a"])},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(12),i=n(41);function o(t){return function(e,o){var a=t((e=n.i(r["d"])(e)).h,(o=n.i(r["d"])(o)).h),s=n.i(i["a"])(e.s,o.s),u=n.i(i["a"])(e.l,o.l),l=n.i(i["a"])(e.opacity,o.opacity);return function(t){return e.h=a(t),e.s=s(t),e.l=u(t),e.opacity=l(t),e+""}}}e["a"]=o(i["b"]);var a=o(i["a"])},function(t,e,n){"use strict";e["a"]=o;var r=n(12),i=n(41);function o(t,e){var o=n.i(i["a"])((t=n.i(r["c"])(t)).l,(e=n.i(r["c"])(e)).l),a=n.i(i["a"])(t.a,e.a),s=n.i(i["a"])(t.b,e.b),u=n.i(i["a"])(t.opacity,e.opacity);return function(e){return t.l=o(e),t.a=a(e),t.b=s(e),t.opacity=u(e),t+""}}},function(t,e,n){"use strict";e["a"]=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){"use strict";e["a"]=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e["b"]=function(t,e,n,i,o,a){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,l/=u),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*r,skewX:Math.atan(l)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var r=n(59),i=n(462);function o(t,e,i,o){function a(t){return t.length?t.pop()+" ":""}function s(t,o,a,s,u,l){if(t!==a||o!==s){var c=u.push("translate(",null,e,null,i);l.push({i:c-4,x:n.i(r["a"])(t,a)},{i:c-2,x:n.i(r["a"])(o,s)})}else(a||s)&&u.push("translate("+a+e+s+i)}function u(t,e,i,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:i.push(a(i)+"rotate(",null,o)-2,x:n.i(r["a"])(t,e)})):e&&i.push(a(i)+"rotate("+e+o)}function l(t,e,i,s){t!==e?s.push({i:i.push(a(i)+"skewX(",null,o)-2,x:n.i(r["a"])(t,e)}):e&&i.push(a(i)+"skewX("+e+o)}function c(t,e,i,o,s,u){if(t!==i||e!==o){var l=s.push(a(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,o)})}else 1===i&&1===o||s.push(a(s)+"scale("+i+","+o+")")}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,o=i.length;while(++n<o)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var a=o(i["a"],"px, ","px)","deg)"),s=o(i["b"],", ",")",")")},function(t,e,n){"use strict";e["a"]=u,e["b"]=l;var r,i,o,a,s=n(460);function u(t){return"none"===t?s["a"]:(r||(r=document.createElement("DIV"),i=document.documentElement,o=document.defaultView),r.style.transform=t,t=o.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),n.i(s["b"])(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function l(t){return null==t?s["a"]:(a||(a=document.createElementNS("http://www.w3.org/2000/svg","g")),a.setAttribute("transform",t),(t=a.transform.baseVal.consolidate())?(t=t.matrix,n.i(s["b"])(t.a,t.b,t.c,t.d,t.e,t.f)):s["a"])}},function(t,e,n){"use strict";var r=Math.SQRT2,i=2,o=4,a=1e-12;function s(t){return((t=Math.exp(t))+1/t)/2}function u(t){return((t=Math.exp(t))-1/t)/2}function l(t){return((t=Math.exp(2*t))-1)/(t+1)}e["a"]=function(t,e){var n,c,f=t[0],h=t[1],d=t[2],p=e[0],g=e[1],v=e[2],m=p-f,y=g-h,_=m*m+y*y;if(_<a)c=Math.log(v/d)/r,n=function(t){return[f+t*m,h+t*y,d*Math.exp(r*t*c)]};else{var x=Math.sqrt(_),b=(v*v-d*d+o*_)/(2*d*i*x),w=(v*v-d*d-o*_)/(2*v*i*x),j=Math.log(Math.sqrt(b*b+1)-b),S=Math.log(Math.sqrt(w*w+1)-w);c=(S-j)/r,n=function(t){var e=t*c,n=s(j),o=d/(i*x)*(n*l(r*e+j)-u(j));return[f+o*m,h+o*y,d*n/s(r*e+j)]}}return n.duration=1e3*c,n}},function(t,e,n){"use strict";var r=n(12),i=n(32);function o(t){return function e(o){function a(e,a){var s=t((e=n.i(r["a"])(e)).h,(a=n.i(r["a"])(a)).h),u=n.i(i["a"])(e.s,a.s),l=n.i(i["a"])(e.l,a.l),c=n.i(i["a"])(e.opacity,a.opacity);return function(t){return e.h=s(t),e.s=u(t),e.l=l(Math.pow(t,o)),e.opacity=c(t),e+""}}return o=+o,a.gamma=e,a}(1)}o(i["b"]),o(i["a"])},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=n(12),i=n(32);function o(t){return function(e,o){var a=t((e=n.i(r["b"])(e)).h,(o=n.i(r["b"])(o)).h),s=n.i(i["a"])(e.c,o.c),u=n.i(i["a"])(e.l,o.l),l=n.i(i["a"])(e.opacity,o.opacity);return function(t){return e.h=a(t),e.c=s(t),e.l=u(t),e.opacity=l(t),e+""}}}o(i["b"]),o(i["a"])},function(t,e,n){"use strict";var r=n(12),i=n(32);function o(t){return function(e,o){var a=t((e=n.i(r["d"])(e)).h,(o=n.i(r["d"])(o)).h),s=n.i(i["a"])(e.s,o.s),u=n.i(i["a"])(e.l,o.l),l=n.i(i["a"])(e.opacity,o.opacity);return function(t){return e.h=a(t),e.s=s(t),e.l=u(t),e.opacity=l(t),e+""}}}o(i["b"]),o(i["a"])},function(t,e,n){"use strict";n(32)},function(t,e,n){"use strict";n(12),n(32)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e["b"]=function(t,e,n,i,o,a){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,l/=u),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*r,skewX:Math.atan(l)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var r=n(60),i=n(475);function o(t,e,i,o){function a(t){return t.length?t.pop()+" ":""}function s(t,o,a,s,u,l){if(t!==a||o!==s){var c=u.push("translate(",null,e,null,i);l.push({i:c-4,x:n.i(r["a"])(t,a)},{i:c-2,x:n.i(r["a"])(o,s)})}else(a||s)&&u.push("translate("+a+e+s+i)}function u(t,e,i,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:i.push(a(i)+"rotate(",null,o)-2,x:n.i(r["a"])(t,e)})):e&&i.push(a(i)+"rotate("+e+o)}function l(t,e,i,s){t!==e?s.push({i:i.push(a(i)+"skewX(",null,o)-2,x:n.i(r["a"])(t,e)}):e&&i.push(a(i)+"skewX("+e+o)}function c(t,e,i,o,s,u){if(t!==i||e!==o){var l=s.push(a(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,o)})}else 1===i&&1===o||s.push(a(s)+"scale("+i+","+o+")")}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,o=i.length;while(++n<o)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var a=o(i["a"],"px, ","px)","deg)"),s=o(i["b"],", ",")",")")},function(t,e,n){"use strict";e["a"]=u,e["b"]=l;var r,i,o,a,s=n(473);function u(t){return"none"===t?s["a"]:(r||(r=document.createElement("DIV"),i=document.documentElement,o=document.defaultView),r.style.transform=t,t=o.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),n.i(s["b"])(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function l(t){return null==t?s["a"]:(a||(a=document.createElementNS("http://www.w3.org/2000/svg","g")),a.setAttribute("transform",t),(t=a.transform.baseVal.consolidate())?(t=t.matrix,n.i(s["b"])(t.a,t.b,t.c,t.d,t.e,t.f)):s["a"])}},function(t,e,n){"use strict";Math.SQRT2},function(t,e,n){"use strict";e["a"]=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(61),i=n(215);e["a"]=function(t){return n.i(i["a"])(n.i(r["a"])(t).call(document.documentElement))}},function(t,e,n){"use strict";e["a"]=i;var r=0;function i(){return new o}function o(){this._="@"+(++r).toString(36)}o.prototype=i.prototype={constructor:o,get:function(t){var e=this._;while(!(e in t))if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},function(t,e,n){"use strict";var r=n(101),i=n(62);e["a"]=function(t){var e=n.i(r["a"])();return e.changedTouches&&(e=e.changedTouches[0]),n.i(i["a"])(t,e)}},function(t,e,n){"use strict";var r=n(18);e["a"]=function(t){return"string"===typeof t?new r["b"]([document.querySelectorAll(t)],[document.documentElement]):new r["b"]([null==t?[]:t],r["c"])}},function(t,e,n){"use strict";var r=n(61);e["a"]=function(t){var e="function"===typeof t?t:n.i(r["a"])(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))}},function(t,e,n){"use strict";var r=n(97);function i(t){return function(){this.removeAttribute(t)}}function o(t){return function(){this.removeAttributeNS(t.space,t.local)}}function a(t,e){return function(){this.setAttribute(t,e)}}function s(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function u(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function l(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}e["a"]=function(t,e){var c=n.i(r["a"])(t);if(arguments.length<2){var f=this.node();return c.local?f.getAttributeNS(c.space,c.local):f.getAttribute(c)}return this.each((null==e?c.local?o:i:"function"===typeof e?c.local?l:u:c.local?s:a)(c,e))}},function(t,e,n){"use strict";e["a"]=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},function(t,e,n){"use strict";function r(t){return t.trim().split(/^|\s+/)}function i(t){return t.classList||new o(t)}function o(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function a(t,e){var n=i(t),r=-1,o=e.length;while(++r<o)n.add(e[r])}function s(t,e){var n=i(t),r=-1,o=e.length;while(++r<o)n.remove(e[r])}function u(t){return function(){a(this,t)}}function l(t){return function(){s(this,t)}}function c(t,e){return function(){(e.apply(this,arguments)?a:s)(this,t)}}o.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=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 o=i(this.node()),a=-1,s=n.length;while(++a<s)if(!o.contains(n[a]))return!1;return!0}return this.each(("function"===typeof e?c:e?u:l)(n,e))}},function(t,e,n){"use strict";function r(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function i(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}e["a"]=function(t){return this.select(t?i:r)}},function(t,e,n){"use strict";var r=n(18),i=n(216),o=n(477),a="$";function s(t,e,n,r,o,a){for(var s,u=0,l=e.length,c=a.length;u<c;++u)(s=e[u])?(s.__data__=a[u],r[u]=s):n[u]=new i["b"](t,a[u]);for(;u<l;++u)(s=e[u])&&(o[u]=s)}function u(t,e,n,r,o,s,u){var l,c,f,h={},d=e.length,p=s.length,g=new Array(d);for(l=0;l<d;++l)(c=e[l])&&(g[l]=f=a+u.call(c,c.__data__,l,e),f in h?o[l]=c:h[f]=c);for(l=0;l<p;++l)f=a+u.call(t,s[l],l,s),(c=h[f])?(r[l]=c,c.__data__=s[l],h[f]=null):n[l]=new i["b"](t,s[l]);for(l=0;l<d;++l)(c=e[l])&&h[g[l]]===c&&(o[l]=c)}e["a"]=function(t,e){if(!t)return y=new Array(this.size()),p=-1,this.each((function(t){y[++p]=t})),y;var i=e?u:s,a=this._parents,l=this._groups;"function"!==typeof t&&(t=n.i(o["a"])(t));for(var c=l.length,f=new Array(c),h=new Array(c),d=new Array(c),p=0;p<c;++p){var g=a[p],v=l[p],m=v.length,y=t.call(g,g&&g.__data__,p,a),_=y.length,x=h[p]=new Array(_),b=f[p]=new Array(_),w=d[p]=new Array(m);i(g,v,x,b,w,y,e);for(var j,S,M=0,E=0;M<_;++M)if(j=x[M]){M>=E&&(E=M+1);while(!(S=b[E])&&++E<_);j._next=S||null}}return f=new r["b"](f,a),f._enter=h,f._exit=d,f}},function(t,e,n){"use strict";e["a"]=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},function(t,e,n){"use strict";var r=n(102);function i(t,e,i){var o=n.i(r["a"])(t),a=o.CustomEvent;"function"===typeof a?a=new a(e,i):(a=o.document.createEvent("Event"),i?(a.initEvent(e,i.bubbles,i.cancelable),a.detail=i.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}function o(t,e){return function(){return i(this,t,e)}}function a(t,e){return function(){return i(this,t,e.apply(this,arguments))}}e["a"]=function(t,e){return this.each(("function"===typeof e?a:o)(t,e))}},function(t,e,n){"use strict";e["a"]=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this}},function(t,e,n){"use strict";e["a"]=function(){return!this.node()}},function(t,e,n){"use strict";var r=n(217),i=n(18);e["a"]=function(){return new i["b"](this._exit||this._groups.map(r["a"]),this._parents)}},function(t,e,n){"use strict";var r=n(18),i=n(214);e["a"]=function(t){"function"!==typeof t&&(t=n.i(i["a"])(t));for(var e=this._groups,o=e.length,a=new Array(o),s=0;s<o;++s)for(var u,l=e[s],c=l.length,f=a[s]=[],h=0;h<c;++h)(u=l[h])&&t.call(u,u.__data__,h,l)&&f.push(u);return new r["b"](a,this._parents)}},function(t,e,n){"use strict";function r(){this.innerHTML=""}function i(t){return function(){this.innerHTML=t}}function o(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}e["a"]=function(t){return arguments.length?this.each(null==t?r:("function"===typeof t?o:i)(t)):this.node().innerHTML}},function(t,e,n){"use strict";var r=n(61),i=n(100);function o(){return null}e["a"]=function(t,e){var a="function"===typeof t?t:n.i(r["a"])(t),s=null==e?o:"function"===typeof e?e:n.i(i["a"])(e);return this.select((function(){return this.insertBefore(a.apply(this,arguments),s.apply(this,arguments)||null)}))}},function(t,e,n){"use strict";e["a"]=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i}},function(t,e,n){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}e["a"]=function(){return this.each(r)}},function(t,e,n){"use strict";var r=n(18);e["a"]=function(t){for(var e=this._groups,n=t._groups,i=e.length,o=n.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var l,c=e[u],f=n[u],h=c.length,d=s[u]=new Array(h),p=0;p<h;++p)(l=c[p]||f[p])&&(d[p]=l);for(;u<i;++u)s[u]=e[u];return new r["b"](s,this._parents)}},function(t,e,n){"use strict";e["a"]=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}},function(t,e,n){"use strict";e["a"]=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t}},function(t,e,n){"use strict";e["a"]=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=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 o(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?o: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,o=e.length,a=new Array(o),s=0;s<o;++s)for(var u,l,c=e[s],f=c.length,h=a[s]=new Array(f),d=0;d<f;++d)(u=c[d])&&(l=t.call(u,u.__data__,d,c))&&("__data__"in u&&(l.__data__=u.__data__),h[d]=l);return new r["b"](a,this._parents)}},function(t,e,n){"use strict";var r=n(18),i=n(219);e["a"]=function(t){"function"!==typeof t&&(t=n.i(i["a"])(t));for(var e=this._groups,o=e.length,a=[],s=[],u=0;u<o;++u)for(var l,c=e[u],f=c.length,h=0;h<f;++h)(l=c[h])&&(a.push(t.call(l,l.__data__,h,c)),s.push(l));return new r["b"](a,s)}},function(t,e,n){"use strict";e["a"]=function(){var t=0;return this.each((function(){++t})),t}},function(t,e,n){"use strict";var r=n(18);function i(t,e){return t<e?-1:t>e?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,o=n.length,a=new Array(o),s=0;s<o;++s){for(var u,l=n[s],c=l.length,f=a[s]=new Array(c),h=0;h<c;++h)(u=l[h])&&(f[h]=u);f.sort(e)}return new r["b"](a,this._parents).order()}},function(t,e,n){"use strict";function r(){this.textContent=""}function i(t){return function(){this.textContent=t}}function o(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}e["a"]=function(t){return arguments.length?this.each(null==t?r:("function"===typeof t?o:i)(t)):this.node().textContent}},function(t,e,n){"use strict";var r=n(101),i=n(62);e["a"]=function(t,e,o){arguments.length<3&&(o=e,e=n.i(r["a"])().changedTouches);for(var a,s=0,u=e?e.length:0;s<u;++s)if((a=e[s]).identifier===o)return n.i(i["a"])(t,a);return null}},function(t,e,n){"use strict";var r=n(101),i=n(62);e["a"]=function(t,e){null==e&&(e=n.i(r["a"])().touches);for(var o=0,a=e?e.length:0,s=new Array(a);o<a;++o)s[o]=n.i(i["a"])(t,e[o]);return s}},function(t,e,n){"use strict";var r=n(104);e["a"]=function(t,e,i){var o=new r["d"],a=e;return null==e?(o.restart(t,e,i),o):(e=+e,i=null==i?n.i(r["a"])():+i,o.restart((function n(r){r+=a,o.restart(n,a+=e,i),t(r)}),e,i),o)}},function(t,e,n){"use strict";var r=n(104);e["a"]=function(t,e,n){var i=new r["d"];return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";var r=n(27),i=n(13),o=[null];e["a"]=function(t,e){var n,a,s=t.__transition;if(s)for(a in e=null==e?null:e+"",s)if((n=s[a]).state>i["d"]&&n.name===e)return new r["b"]([[t]],o,e,+a);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 o=n(220);n.d(e,"interrupt",(function(){return o["a"]}))},function(t,e,n){"use strict";var r=n(22),i=n(517),o=n(518);r["selection"].prototype.interrupt=i["a"],r["selection"].prototype.transition=o["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),o=n(199),a=n(103),s={time:null,delay:0,duration:250,ease:o["easeCubicInOut"]};function u(t,e){var r;while(!(r=t.__transition)||!(r=r[e]))if(!(t=t.parentNode))return s.time=n.i(a["now"])(),s;return r}e["a"]=function(t){var e,o;t instanceof r["b"]?(e=t._id,t=t._name):(e=n.i(r["c"])(),(o=s).time=n.i(a["now"])(),t=null==t?null:t+"");for(var l=this._groups,c=l.length,f=0;f<c;++f)for(var h,d=l[f],p=d.length,g=0;g<p;++g)(h=d[g])&&n.i(i["h"])(h,t,e,g,d,o||u(h,e));return new r["b"](l,this._parents,t,e)}},function(t,e,n){"use strict";var r=n(94),i=n(22),o=n(63),a=n(221);function s(t){return function(){this.removeAttribute(t)}}function u(t){return function(){this.removeAttributeNS(t.space,t.local)}}function l(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function c(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function f(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttribute(t),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}}function h(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttributeNS(t.space,t.local),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}e["a"]=function(t,e){var d=n.i(i["namespace"])(t),p="transform"===d?r["e"]:a["a"];return this.attrTween(t,"function"===typeof e?(d.local?h:f)(d,p,n.i(o["b"])(this,"attr."+t,e)):null==e?(d.local?u:s)(d):(d.local?c:l)(d,p,e))}},function(t,e,n){"use strict";var r=n(22);function i(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function o(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function a(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&o(t,i)),n}return i._value=e,i}function s(t,e){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&i(t,o)),n}return o._value=e,o}e["a"]=function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!==typeof e)throw new Error;var o=n.i(r["namespace"])(t);return this.tween(i,(o.local?a:s)(o,e))}},function(t,e,n){"use strict";var r=n(13);function i(t,e){return function(){n.i(r["g"])(this,t).delay=+e.apply(this,arguments)}}function o(t,e){return e=+e,function(){n.i(r["g"])(this,t).delay=e}}e["a"]=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?i:o)(e,t)):n.i(r["f"])(this.node(),e).delay}},function(t,e,n){"use strict";var r=n(13);function i(t,e){return function(){n.i(r["e"])(this,t).duration=+e.apply(this,arguments)}}function o(t,e){return e=+e,function(){n.i(r["e"])(this,t).duration=e}}e["a"]=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?i:o)(e,t)):n.i(r["f"])(this.node(),e).duration}},function(t,e,n){"use strict";var r=n(13);function i(t,e){if("function"!==typeof e)throw new Error;return function(){n.i(r["e"])(this,t).ease=e}}e["a"]=function(t){var e=this._id;return arguments.length?this.each(i(e,t)):n.i(r["f"])(this.node(),e).ease}},function(t,e,n){"use strict";var r=n(13);e["a"]=function(){var t,e,i=this,o=i._id,a=i.size();return new Promise((function(s,u){var l={value:u},c={value:function(){0===--a&&s()}};i.each((function(){var i=n.i(r["e"])(this,o),a=i.on;a!==t&&(e=(t=a).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(c)),i.on=e}))}))}},function(t,e,n){"use strict";var r=n(22),i=n(27);e["a"]=function(t){"function"!==typeof t&&(t=n.i(r["matcher"])(t));for(var e=this._groups,o=e.length,a=new Array(o),s=0;s<o;++s)for(var u,l=e[s],c=l.length,f=a[s]=[],h=0;h<c;++h)(u=l[h])&&t.call(u,u.__data__,h,l)&&f.push(u);return new i["b"](a,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var r=n(27);e["a"]=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,o=n.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var l,c=e[u],f=n[u],h=c.length,d=s[u]=new Array(h),p=0;p<h;++p)(l=c[p]||f[p])&&(d[p]=l);for(;u<i;++u)s[u]=e[u];return new r["b"](s,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var r=n(13);function i(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}function o(t,e,n){var o,a,s=i(e)?r["g"]:r["e"];return function(){var r=s(this,t),i=r.on;i!==o&&(a=(o=i).copy()).on(e,n),r.on=a}}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(o(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),o=n(13);e["a"]=function(t){var e=this._name,a=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<u;++c)for(var f,h,d=s[c],p=d.length,g=l[c]=new Array(p),v=0;v<p;++v)(f=d[v])&&(h=t.call(f,f.__data__,v,d))&&("__data__"in f&&(h.__data__=f.__data__),g[v]=h,n.i(o["h"])(g[v],e,a,v,g,n.i(o["f"])(f,a)));return new i["b"](l,this._parents,e,a)}},function(t,e,n){"use strict";var r=n(22),i=n(27),o=n(13);e["a"]=function(t){var e=this._name,a=this._id;"function"!==typeof t&&(t=n.i(r["selectorAll"])(t));for(var s=this._groups,u=s.length,l=[],c=[],f=0;f<u;++f)for(var h,d=s[f],p=d.length,g=0;g<p;++g)if(h=d[g]){for(var v,m=t.call(h,h.__data__,g,d),y=n.i(o["f"])(h,a),_=0,x=m.length;_<x;++_)(v=m[_])&&n.i(o["h"])(v,e,a,_,m,y);l.push(m),c.push(h)}return new i["b"](l,c,e,a)}},function(t,e,n){"use strict";var r=n(22),i=r["selection"].prototype.constructor;e["a"]=function(){return new i(this._groups,this._parents)}},function(t,e,n){"use strict";var r=n(94),i=n(22),o=n(13),a=n(63),s=n(221);function u(t,e){var r,o,a;return function(){var s=n.i(i["style"])(this,t),u=(this.style.removeProperty(t),n.i(i["style"])(this,t));return s===u?null:s===r&&u===o?a:a=e(r=s,o=u)}}function l(t){return function(){this.style.removeProperty(t)}}function c(t,e,r){var o,a,s=r+"";return function(){var u=n.i(i["style"])(this,t);return u===s?null:u===o?a:a=e(o=u,r)}}function f(t,e,r){var o,a,s;return function(){var u=n.i(i["style"])(this,t),l=r(this),c=l+"";return null==l&&(this.style.removeProperty(t),c=l=n.i(i["style"])(this,t)),u===c?null:u===o&&c===a?s:(a=c,s=e(o=u,l))}}function h(t,e){var r,i,a,s,u="style."+e,c="end."+u;return function(){var f=n.i(o["e"])(this,t),h=f.on,d=null==f.value[u]?s||(s=l(e)):void 0;h===r&&a===d||(i=(r=h).copy()).on(c,a=d),f.on=i}}e["a"]=function(t,e,i){var o="transform"===(t+="")?r["a"]:s["a"];return null==e?this.styleTween(t,u(t,o)).on("end.style."+t,l(t)):"function"===typeof e?this.styleTween(t,f(t,o,n.i(a["b"])(this,"style."+t,e))).each(h(this._id,t)):this.styleTween(t,c(t,o,e),i).on("end.style."+t,null)}},function(t,e,n){"use strict";function r(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function i(t,e,n){var i,o;function a(){var a=e.apply(this,arguments);return a!==o&&(i=(o=a)&&r(t,a,n)),i}return a._value=e,a}e["a"]=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,i(t,e,null==n?"":n))}},function(t,e,n){"use strict";var r=n(63);function i(t){return function(){this.textContent=t}}function o(t){return function(){var e=t(this);this.textContent=null==e?"":e}}e["a"]=function(t){return this.tween("text","function"===typeof t?o(n.i(r["b"])(this,"text",t)):i(null==t?"":t+""))}},function(t,e,n){"use strict";function r(t){return function(e){this.textContent=t.call(this,e)}}function i(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&r(i)),e}return i._value=t,i}e["a"]=function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,i(t))}},function(t,e,n){"use strict";var r=n(27),i=n(13);e["a"]=function(){for(var t=this._name,e=this._id,o=n.i(r["c"])(),a=this._groups,s=a.length,u=0;u<s;++u)for(var l,c=a[u],f=c.length,h=0;h<f;++h)if(l=c[h]){var d=n.i(i["f"])(l,e);n.i(i["h"])(l,t,o,h,c,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new r["b"](a,this._parents,t,o)}},function(t,e,n){"use strict";var r=function(t,e,n,r,i,o,a,s){if(void 0===e)throw new Error("invariant requires an error message argument");if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;u=new Error(e.replace(/%s/g,(function(){return l[c++]}))),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},function(t,e,n){(function(e){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,h=c||f||Function("return this")(),d=Object.prototype,p=d.toString,g=Math.max,v=Math.min,m=function(){return h.Date.now()};function y(t,e,r){var i,o,a,s,u,l,c=0,f=!1,h=!1,d=!0;if("function"!=typeof t)throw new TypeError(n);function p(e){var n=i,r=o;return i=o=void 0,c=e,s=t.apply(r,n),s}function y(t){return c=t,u=setTimeout(j,e),f?p(t):s}function x(t){var n=t-l,r=t-c,i=e-n;return h?v(i,a-r):i}function b(t){var n=t-l,r=t-c;return void 0===l||n>=e||n<0||h&&r>=a}function j(){var t=m();if(b(t))return S(t);u=setTimeout(j,x(t))}function S(t){return u=void 0,d&&i?p(t):(i=o=void 0,s)}function M(){void 0!==u&&clearTimeout(u),c=0,i=l=o=u=void 0}function E(){return void 0===u?s:S(m())}function P(){var t=m(),n=b(t);if(i=arguments,o=this,l=t,n){if(void 0===u)return y(l);if(h)return u=setTimeout(j,e),p(l)}return void 0===u&&(u=setTimeout(j,e)),s}return e=w(e)||0,_(r)&&(f=!!r.leading,h="maxWait"in r,a=h?g(w(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d),P.cancel=M,P.flush=E,P}function _(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(_(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=_(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?r:+t}t.exports=y}).call(e,n(225))},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(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(o){return!1}}t.exports=s()?Object.assign:function(t,e){for(var n,s,u=a(t),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]),n)i.call(n,c)&&(u[c]=n[c]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(t,e,n){"use strict";var r=function(){},i=n(223),o={},a=Function.call.bind(Object.prototype.hasOwnProperty);function s(t,e,n,s,u){for(var l in t)if(a(t,l)){var c;try{if("function"!==typeof t[l]){var f=Error((s||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[l]+"`.");throw f.name="Invariant Violation",f}c=t[l](e,l,s,n,null,i)}catch(d){c=d}if(!c||c instanceof Error||r((s||"React class")+": type specification of "+n+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in o)){o[c.message]=!0;var h=u?u():"";r("Failed "+n+" type: "+c.message+(null!=h?h:""))}}}r=function(t){var e="Warning: "+t;"undefined"!==typeof console&&console.error(e);try{throw new Error(e)}catch(n){}},s.resetWarningCache=function(){o={}},t.exports=s},function(t,e,n){"use strict";var r=n(224),i=n(539),o=n(223),a=n(540),s=Function.call.bind(Object.prototype.hasOwnProperty),u=function(){};function l(){return null}u=function(t){var e="Warning: "+t;"undefined"!==typeof console&&console.error(e);try{throw new Error(e)}catch(n){}},t.exports=function(t,e){var n="function"===typeof Symbol&&Symbol.iterator,c="@@iterator";function f(t){var e=t&&(n&&t[n]||t[c]);if("function"===typeof e)return e}var h="<<anonymous>>",d={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:y(),arrayOf:_,element:x(),elementType:b(),instanceOf:w,node:E(),objectOf:S,oneOf:j,oneOfType:M,shape:P,exact:C};function p(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function g(t){this.message=t,this.stack=""}function v(t){var n={},r=0;function i(i,a,s,l,c,f,d){if(l=l||h,f=f||s,d!==o){if(e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("undefined"!==typeof console){var v=l+":"+s;!n[v]&&r<3&&(u("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[v]=!0,r++)}}return null==a[s]?i?null===a[s]?new g("The "+c+" `"+f+"` is marked as required in `"+l+"`, but its value is `null`."):new g("The "+c+" `"+f+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,s,l,c,f)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function m(t){function e(e,n,r,i,o,a){var s=e[n],u=T(s);if(u!==t){var l=O(s);return new g("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected `"+t+"`.")}return null}return v(e)}function y(){return v(l)}function _(t){function e(e,n,r,i,a){if("function"!==typeof t)return new g("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=e[n];if(!Array.isArray(s)){var u=T(s);return new g("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+r+"`, expected an array.")}for(var l=0;l<s.length;l++){var c=t(s,l,r,i,a+"["+l+"]",o);if(c instanceof Error)return c}return null}return v(e)}function x(){function e(e,n,r,i,o){var a=e[n];if(!t(a)){var s=T(a);return new g("Invalid "+i+" `"+o+"` of type `"+s+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return v(e)}function b(){function t(t,e,n,i,o){var a=t[e];if(!r.isValidElementType(a)){var s=T(a);return new g("Invalid "+i+" `"+o+"` of type `"+s+"` supplied to `"+n+"`, expected a single ReactElement type.")}return null}return v(t)}function w(t){function e(e,n,r,i,o){if(!(e[n]instanceof t)){var a=t.name||h,s=R(e[n]);return new g("Invalid "+i+" `"+o+"` of type `"+s+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return v(e)}function j(t){if(!Array.isArray(t))return u(arguments.length>1?"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,o){for(var a=e[n],s=0;s<t.length;s++)if(p(a,t[s]))return null;var u=JSON.stringify(t,(function(t,e){var n=O(e);return"symbol"===n?String(e):e}));return new g("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+u+".")}return v(e)}function S(t){function e(e,n,r,i,a){if("function"!==typeof t)return new g("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],l=T(u);if("object"!==l)return new g("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var c in u)if(s(u,c)){var f=t(u,c,r,i,a+"."+c,o);if(f instanceof Error)return f}return null}return v(e)}function M(t){if(!Array.isArray(t))return u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var e=0;e<t.length;e++){var n=t[e];if("function"!==typeof n)return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+I(n)+" at index "+e+"."),l}function r(e,n,r,i,a){for(var s=0;s<t.length;s++){var u=t[s];if(null==u(e,n,r,i,a,o))return null}return new g("Invalid "+i+" `"+a+"` supplied to `"+r+"`.")}return v(r)}function E(){function t(t,e,n,r,i){return k(t[e])?null:new g("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")}return v(t)}function P(t){function e(e,n,r,i,a){var s=e[n],u=T(s);if("object"!==u)return new g("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var l in t){var c=t[l];if(c){var f=c(s,l,r,i,a+"."+l,o);if(f)return f}}return null}return v(e)}function C(t){function e(e,n,r,a,s){var u=e[n],l=T(u);if("object"!==l)return new g("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var c=i({},e[n],t);for(var f in c){var h=t[f];if(!h)return new g("Invalid "+a+" `"+s+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=h(u,f,r,a,s+"."+f,o);if(d)return d}return null}return v(e)}function k(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(k);if(null===e||t(e))return!0;var n=f(e);if(!n)return!1;var r,i=n.call(e);if(n!==e.entries){while(!(r=i.next()).done)if(!k(r.value))return!1}else while(!(r=i.next()).done){var o=r.value;if(o&&!k(o[1]))return!1}return!0;default:return!1}}function A(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"===typeof Symbol&&e instanceof Symbol)}function T(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":A(e,t)?"symbol":e}function O(t){if("undefined"===typeof t||null===t)return""+t;var e=T(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function I(t){var e=O(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function R(t){return t.constructor&&t.constructor.name?t.constructor.name:h}return g.prototype=Error.prototype,d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d}},function(t,e,n){"use strict";(function(){var t="function"===typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,m=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function x(t){return"string"===typeof t||"function"===typeof t||t===i||t===c||t===a||t===o||t===h||t===d||"object"===typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===p||t.$$typeof===s||t.$$typeof===u||t.$$typeof===f||t.$$typeof===m||t.$$typeof===y||t.$$typeof===_||t.$$typeof===v)}function b(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:var d=t.type;switch(d){case l:case c:case i:case a:case o:case h:return d;default:var v=d&&d.$$typeof;switch(v){case u:case f:case g:case p:case s:return v;default:return e}}case r:return e}}}var w=l,j=c,S=u,M=s,E=n,P=f,C=i,k=g,A=p,T=r,O=a,I=o,R=h,D=!1;function L(t){return D||(D=!0,console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(t)||b(t)===l}function N(t){return b(t)===c}function F(t){return b(t)===u}function B(t){return b(t)===s}function z(t){return"object"===typeof t&&null!==t&&t.$$typeof===n}function G(t){return b(t)===f}function q(t){return b(t)===i}function V(t){return b(t)===g}function Y(t){return b(t)===p}function H(t){return b(t)===r}function W(t){return b(t)===a}function U(t){return b(t)===o}function X(t){return b(t)===h}e.AsyncMode=w,e.ConcurrentMode=j,e.ContextConsumer=S,e.ContextProvider=M,e.Element=E,e.ForwardRef=P,e.Fragment=C,e.Lazy=k,e.Memo=A,e.Portal=T,e.Profiler=O,e.StrictMode=I,e.Suspense=R,e.isAsyncMode=L,e.isConcurrentMode=N,e.isContextConsumer=F,e.isContextProvider=B,e.isElement=z,e.isForwardRef=G,e.isFragment=q,e.isLazy=V,e.isMemo=Y,e.isPortal=H,e.isProfiler=W,e.isStrictMode=U,e.isSuspense=X,e.isValidElementType=x,e.typeOf=b})()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2;function s(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&l()}function u(){o(s)}function l(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(u,e);i=t}return l}var u=20,l=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,f=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),u)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},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);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},d=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},p=S(0,0,0,0);function g(t){return parseFloat(t)||0}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+g(r)}),0)}function m(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=g(a)}return n}function y(t){var e=t.getBBox();return S(0,0,e.width,e.height)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=d(t).getComputedStyle(t),i=m(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),u=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=v(r,"left","right")+o),Math.round(u+a)!==n&&(u-=v(r,"top","bottom")+a)),!b(t)){var l=Math.round(s+o)-e,c=Math.round(u+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(c)&&(u-=c)}return S(i.left,i.top,s,u)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof d(t).SVGGraphicsElement}:function(t){return t instanceof d(t).SVGElement&&"function"===typeof t.getBBox}}();function b(t){return t===d(t).document.documentElement}function w(t){return r?x(t)?y(t):_(t):p}function j(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return h(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function S(t,e,n,r){return{x:t,y:e,width:n,height:r}}var M=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),E=function(){function t(t,e){var n=j(e);h(this,{target:t,contentRect:n})}return t}(),P=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new M(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new E(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),C="undefined"!==typeof WeakMap?new WeakMap:new n,k=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){k.prototype[t]=function(){var e;return(e=C.get(this))[t].apply(e,arguments)}}));var A=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:k}();e["default"]=A}.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=a(t),l=i.filter((function(e){return o(e,t)})),c=0,h=0,d=[];if(l.length>1){var p=f(l);for(n=0;n<l.length;++n){var g=l[n];g.angle=Math.atan2(g.x-p.x,g.y-p.y)}l.sort((function(t,e){return e.angle-t.angle}));var v=l[l.length-1];for(n=0;n<l.length;++n){var m=l[n];h+=(v.x+m.x)*(m.y-v.y);for(var y={x:(m.x+v.x)/2,y:(m.y+v.y)/2},_=null,x=0;x<m.parentIndex.length;++x)if(v.parentIndex.indexOf(m.parentIndex[x])>-1){var b=t[m.parentIndex[x]],w=Math.atan2(m.x-b.x,m.y-b.y),j=Math.atan2(v.x-b.x,v.y-b.y),S=j-w;S<0&&(S+=2*Math.PI);var M=j-S/2,E=u(y,{x:b.x+b.radius*Math.sin(M),y:b.y+b.radius*Math.cos(M)});E>2*b.radius&&(E=2*b.radius),(null===_||_.width>E)&&(_={circle:b,width:E,p1:m,p2:v})}null!==_&&(d.push(_),c+=s(_.circle.radius,_.width),v=m)}}else{var P=t[0];for(n=1;n<t.length;++n)t[n].radius<P.radius&&(P=t[n]);var C=!1;for(n=0;n<t.length;++n)if(u(t[n],P)>Math.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 o(t,e){for(var n=0;n<e.length;++n)if(u(t,e[n])>e[n].radius+r)return!1;return!0}function a(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=c(t[n],t[r]),o=0;o<i.length;++o){var a=i[o];a.parentIndex=[n,r],e.push(a)}return e}function s(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function u(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function l(t,e,n){if(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 o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),s=t.x+o*(e.x-t.x)/n,l=t.y+o*(e.y-t.y)/n,c=-(e.y-t.y)*(a/n),f=-(e.x-t.x)*(a/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;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function h(t,e,n,r){r=r||{};var i=r.maxIterations||100,o=r.tolerance||1e-10,a=t(e),s=t(n),u=n-e;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var l=0;l<i;++l){u/=2;var c=e+u,f=t(c);if(f*a>=0&&(e=c),Math.abs(u)<o||0===f)return c}return e+u}function d(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function p(t,e){return d(t).map((function(){return d(e)}))}function g(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function v(t){return Math.sqrt(g(t,t))}function m(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function y(t,e,n,r,i){for(var o=0;o<t.length;++o)t[o]=e*n[o]+r*i[o]}function _(t,e,n){n=n||{};var r,i=n.maxIterations||200*e.length,o=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,s=n.minErrorDelta||1e-6,u=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,c=void 0!==n.chi?n.chi:2,f=void 0!==n.psi?n.psi:-.5,h=void 0!==n.sigma?n.sigma:.5,d=e.length,p=new Array(d+1);p[0]=e,p[0].fx=t(e),p[0].id=0;for(var g=0;g<d;++g){var v=e.slice();v[g]=v[g]?v[g]*o:a,p[g+1]=v,p[g+1].fx=t(v),p[g+1].id=g+1}function m(t){for(var e=0;e<t.length;e++)p[d][e]=t[e];p[d].fx=t.fx}for(var _=function(t,e){return t.fx-e.fx},x=e.slice(),b=e.slice(),w=e.slice(),j=e.slice(),S=0;S<i;++S){if(p.sort(_),n.history){var M=p.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));M.sort((function(t,e){return t.id-e.id})),n.history.push({x:p[0].slice(),fx:p[0].fx,simplex:M})}for(r=0,g=0;g<d;++g)r=Math.max(r,Math.abs(p[0][g]-p[1][g]));if(Math.abs(p[0].fx-p[d].fx)<s&&r<u)break;for(g=0;g<d;++g){x[g]=0;for(var E=0;E<d;++E)x[g]+=p[E][g];x[g]/=d}var P=p[d];if(y(b,1+l,x,-l,P),b.fx=t(b),b.fx<p[0].fx)y(j,1+c,x,-c,P),j.fx=t(j),j.fx<b.fx?m(j):m(b);else if(b.fx>=p[d-1].fx){var C=!1;if(b.fx>P.fx?(y(w,1+f,x,-f,P),w.fx=t(w),w.fx<P.fx?m(w):C=!0):(y(w,1-f*l,x,f*l,P),w.fx=t(w),w.fx<b.fx?m(w):C=!0),C){if(h>=1)break;for(g=1;g<p.length;++g)y(p[g],1-h,p[0],h,p[g]),p[g].fx=t(p[g])}}else m(b)}return p.sort(_),{fx:p[0].fx,x:p[0]}}function x(t,e,n,r,i,o,a){var s=n.fx,u=g(n.fxprime,e),l=s,c=s,f=u,h=0;function d(c,h,d){for(var p=0;p<16;++p)if(i=(c+h)/2,y(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),f=g(r.fxprime,e),l>s+o*i*u||l>=d)h=i;else{if(Math.abs(f)<=-a*u)return i;f*(h-c)>=0&&(h=c),c=i,d=l}return 0}i=i||1,o=o||1e-6,a=a||.1;for(var p=0;p<10;++p){if(y(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),f=g(r.fxprime,e),l>s+o*i*u||p&&l>=c)return d(h,i,c);if(Math.abs(f)<=-a*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,o,a={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},u=e.slice(),l=1;n=n||{},o=n.maxIterations||20*e.length,a.fx=t(a.x,a.fxprime),r=a.fxprime.slice(),m(r,a.fxprime,-1);for(var c=0;c<o;++c){if(l=x(t,r,a,s,l),n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice(),alpha:l}),l){y(u,1,s.fxprime,-1,a.fxprime);var f=g(a.fxprime,a.fxprime),h=Math.max(0,g(u,s.fxprime)/f);y(r,h,r,-1,s.fxprime),i=a,a=s,s=i}else m(r,a.fxprime,-1);if(v(a.fxprime)<=1e-5)break}return n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice(),alpha:l}),a}function w(t,e){e=e||{},e.maxIterations=e.maxIterations||500;var n=e.initialLayout||C,r=e.lossFunction||T;t=M(t);var i,o=n(t,e),a=[],s=[];for(i in o)o.hasOwnProperty(i)&&(a.push(o[i].x),a.push(o[i].y),s.push(i));for(var u=_((function(e){for(var n={},i=0;i<s.length;++i){var a=s[i];n[a]={x:e[2*i],y:e[2*i+1],radius:o[a].radius}}return r(n,t)}),a,e),l=u.x,c=0;c<s.length;++c)i=s[c],o[i].x=l[2*c],o[i].y=l[2*c+1];return o}var j=1e-10;function S(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+j?Math.abs(t-e):h((function(r){return l(t,e,r)-n}),0,t+e)}function M(t){t=t.slice();var e,n,r,i,o=[],a={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?o.push(s.sets[0]):2==s.sets.length&&(r=s.sets[0],i=s.sets[1],a[[r,i]]=!0,a[[i,r]]=!0)}for(o.sort((function(t,e){return t>e})),e=0;e<o.length;++e)for(r=o[e],n=e+1;n<o.length;++n)i=o[n],[r,i]in a||t.push({sets:[r,i],size:0});return t}function E(t,e,n){var r=p(e.length,e.length),i=p(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var o=n[t.sets[0]],a=n[t.sets[1]],s=Math.sqrt(e[o].size/Math.PI),u=Math.sqrt(e[a].size/Math.PI),l=S(s,u,t.size);r[o][a]=r[a][o]=l;var c=0;t.size+1e-10>=Math.min(e[o].size,e[a].size)?c=1:t.size<=1e-10&&(c=-1),i[o][a]=i[a][o]=c})),{distances:r,constraints:i}}function P(t,e,n,r){var i,o=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var a=t[2*i],s=t[2*i+1],u=i+1;u<n.length;++u){var l=t[2*u],c=t[2*u+1],f=n[i][u],h=r[i][u],d=(l-a)*(l-a)+(c-s)*(c-s),p=Math.sqrt(d),g=d-f*f;h>0&&p<=f||h<0&&p>=f||(o+=2*g*g,e[2*i]+=4*g*(a-l),e[2*i+1]+=4*g*(s-c),e[2*u]+=4*g*(l-a),e[2*u+1]+=4*g*(c-s))}return o}function C(t,e){var n=A(t,e),r=e.lossFunction||T;if(t.length>=8){var i=k(t,e),o=r(i,t),a=r(n,t);o+1e-8<a&&(n=i)}return n}function k(t,e){e=e||{};var n,r=e.restarts||10,i=[],o={};for(n=0;n<t.length;++n){var a=t[n];1==a.sets.length&&(o[a.sets[0]]=i.length,i.push(a))}var s=E(t,i,o),u=s.distances,l=s.constraints,c=v(u.map(v))/u.length;u=u.map((function(t){return t.map((function(t){return t/c}))}));var f,h,p=function(t,e){return P(t,e,u,l)};for(n=0;n<r;++n){var g=d(2*u.length).map(Math.random);h=b(p,g,e),(!f||h.fx<f.fx)&&(f=h)}var y=f.x,_={};for(n=0;n<i.length;++n){var x=i[n];_[x.sets[0]]={x:y[2*n]*c,y:y[2*n+1]*c,radius:Math.sqrt(x.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)m(e.history[n].x,c);return _}function A(t,e){for(var n,r=e&&e.lossFunction?e.lossFunction:T,i={},o={},a=0;a<t.length;++a){var s=t[a];1==s.sets.length&&(n=s.sets[0],i[n]={x:1e10,y:1e10,rowid:i.length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},o[n]=[])}for(t=t.filter((function(t){return 2==t.sets.length})),a=0;a<t.length;++a){var u=t[a],l=u.hasOwnProperty("weight")?u.weight:1,f=u.sets[0],h=u.sets[1];u.size+j>=Math.min(i[f].size,i[h].size)&&(l=0),o[f].push({set:h,size:u.size,weight:l}),o[h].push({set:f,size:u.size,weight:l})}var d=[];for(n in o)if(o.hasOwnProperty(n)){var p=0;for(a=0;a<o[n].length;++a)p+=o[n][a].size*o[n][a].weight;d.push({set:n,size:p})}function g(t,e){return e.size-t.size}d.sort(g);var v={};function m(t){return t.set in v}function y(t,e){i[e].x=t.x,i[e].y=t.y,v[e]=!0}for(y({x:0,y:0},d[0].set),a=1;a<d.length;++a){var _=d[a].set,x=o[_].filter(m);if(n=i[_],x.sort(g),0===x.length)throw"ERROR: missing pairwise overlap information";for(var b=[],w=0;w<x.length;++w){var M=i[x[w].set],E=S(n.radius,M.radius,x[w].size);b.push({x:M.x+E,y:M.y}),b.push({x:M.x-E,y:M.y}),b.push({y:M.y+E,x:M.x}),b.push({y:M.y-E,x:M.x});for(var P=w+1;P<x.length;++P)for(var C=i[x[P].set],k=S(n.radius,C.radius,x[P].size),A=c({x:M.x,y:M.y,radius:E},{x:C.x,y:C.y,radius:k}),O=0;O<A.length;++O)b.push(A[O])}var I=1e50,R=b[0];for(w=0;w<b.length;++w){i[_].x=b[w].x,i[_].y=b[w].y;var D=r(i,t);D<I&&(I=D,R=b[w])}y(R,_)}return i}function T(t,e){var n=0;function r(e){return e.map((function(e){return t[e]}))}for(var o=0;o<e.length;++o){var a,s=e[o];if(1!=s.sets.length){if(2==s.sets.length){var c=t[s.sets[0]],f=t[s.sets[1]];a=l(c.radius,f.radius,u(c,f))}else a=i(r(s.sets));var h=s.hasOwnProperty("weight")?s.weight:1;n+=h*(a-s.size)*(a-s.size)}}return n}function O(t,e,n){var r;if(null===n?t.sort((function(t,e){return e.radius-t.radius})):t.sort(n),t.length>0){var i=t[0].x,o=t[0].y;for(r=0;r<t.length;++r)t[r].x-=i,t[r].y-=o}if(2==t.length){var a=u(t[0],t[1]);a<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y)}if(t.length>1){var s,l,c=Math.atan2(t[1].x,t[1].y)-e,f=Math.cos(c),h=Math.sin(c);for(r=0;r<t.length;++r)s=t[r].x,l=t[r].y,t[r].x=f*s-h*l,t[r].y=h*s+f*l}if(t.length>2){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<t.length;++r){var g=(t[r].x+p*t[r].y)/(1+p*p);t[r].x=2*g-t[r].x,t[r].y=2*g*p-t[r].y}}}}function I(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}function n(t,n){var r=e(t),i=e(n);r.parent=i}t.map((function(t){t.parent=t}));for(var r=0;r<t.length;++r)for(var i=r+1;i<t.length;++i){var o=t[r].radius+t[i].radius;u(t[r],t[i])+1e-10<o&&n(t[i],t[r])}var a,s={};for(r=0;r<t.length;++r)a=e(t[r]).parent.setid,a in s||(s[a]=[]),s[a].push(t[r]);t.map((function(t){delete t.parent}));var l=[];for(a in s)s.hasOwnProperty(a)&&l.push(s[a]);return l}function R(t){var e=function(e){var n=Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),r=Math.min.apply(null,t.map((function(t){return t[e]-t.radius})));return{max:n,min:r}};return{xRange:e("x"),yRange:e("y")}}function D(t,e,n){null===e&&(e=Math.PI/2);var r,i,o=[];for(i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push({x:a.x,y:a.y,radius:a.radius,setid:i})}var s=I(o);for(r=0;r<s.length;++r){O(s[r],e,n);var u=R(s[r]);s[r].size=(u.xRange.max-u.xRange.min)*(u.yRange.max-u.yRange.min),s[r].bounds=u}s.sort((function(t,e){return e.size-t.size})),o=s[0];var l=o.bounds,c=(l.xRange.max-l.xRange.min)/50;function f(t,e,n){if(t){var r,i,a,s=t.bounds;e?r=l.xRange.max-s.xRange.min+c:(r=l.xRange.max-s.xRange.max,a=(s.xRange.max-s.xRange.min)/2-(l.xRange.max-l.xRange.min)/2,a<0&&(r+=a)),n?i=l.yRange.max-s.yRange.min+c:(i=l.yRange.max-s.yRange.max,a=(s.yRange.max-s.yRange.min)/2-(l.yRange.max-l.yRange.min)/2,a<0&&(i+=a));for(var u=0;u<t.length;++u)t[u].x+=r,t[u].y+=i,o.push(t[u])}}var h=1;while(h<s.length)f(s[h],!0,!1),f(s[h+1],!1,!0),f(s[h+2],!0,!0),h+=3,l=R(o);var d={};for(r=0;r<o.length;++r)d[o[r].setid]=o[r];return d}function L(t,e,n,r){var i=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),i.push(t[a]));e-=2*r,n-=2*r;var s=R(i),u=s.xRange,l=s.yRange;if(u.max==u.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),t;for(var c=e/(u.max-u.min),f=n/(l.max-l.min),h=Math.min(f,c),d=(e-(u.max-u.min)*h)/2,p=(n-(l.max-l.min)*h)/2,g={},v=0;v<i.length;++v){var m=i[v];g[o[v]]={radius:h*m.radius,x:r+d+(m.x-u.min)*h,y:r+p+(m.y-l.min)*h}}return g}function N(){var t=600,n=350,r=15,i=1e3,o=Math.PI/2,a=!0,s=!0,u=!0,l=null,c=null,f={},h=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],d=0,p=function(t){if(t in f)return f[t];var e=f[t]=h[d];return d+=1,d>=h.length&&(d=0),e},g=w,v=T;function m(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={},y={};if(h.length>0){var _=g(h,{lossFunction:v});a&&(_=D(_,o,c)),m=L(_,t,n,r),y=q(m,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([m]).enter().append("svg");var w=f.select("svg").attr("width",t).attr("height",n),j={},S=!1;w.selectAll(".venn-area path").each((function(t){var n=e.select(this).attr("d");1==t.sets.length&&n&&(S=!0,j[t.sets[0]]=H(n))}));var M=function(e){return function(r){var i=e.sets.map((function(e){var i=j[e],o=m[e];return i||(i={x:t/2,y:n/2,radius:1}),o||(o={x:t/2,y:n/2,radius:1}),{x:i.x*(1-r)+o.x*r,y:i.y*(1-r)+o.y*r,radius:i.radius*(1-r)+o.radius*r}}));return W(i)}},E=w.selectAll(".venn-area").data(h,(function(t){return t.sets})),P=E.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"),k=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"),k.style("fill",(function(t){return 1==t.sets.length?p(t.sets):"#444"})));var A=f;S?(A=f.transition("venn").duration(i),A.selectAll("path").attrTween("d",M)):A.selectAll("path").attr("d",(function(t){return W(t.sets.map((function(t){return m[t]})))}));var T=A.selectAll("text").filter((function(t){return t.sets in y})).text((function(t){return b(t)})).attr("x",(function(t){return Math.floor(y[t.sets].x)})).attr("y",(function(t){return Math.floor(y[t.sets].y)}));s&&(S?"on"in T?T.on("end",F(m,b)):T.each("end",F(m,b)):T.each(F(m,b)));var O=E.exit().transition("venn").duration(i).remove();O.selectAll("path").attrTween("d",M);var I=O.selectAll("text").attr("x",t/2).attr("y",n/2);return null!==l&&(k.style("font-size","0px"),T.style("font-size",l),I.style("font-size","0px")),{circles:m,textCentres:y,nodes:E,enter:P,update:A,exit:O}}return m.wrap=function(t){return arguments.length?(s=t,m):s},m.width=function(e){return arguments.length?(t=e,m):t},m.height=function(t){return arguments.length?(n=t,m):n},m.padding=function(t){return arguments.length?(r=t,m):r},m.colours=function(t){return arguments.length?(p=t,m):p},m.fontSize=function(t){return arguments.length?(l=t,m):l},m.duration=function(t){return arguments.length?(i=t,m):i},m.layoutFunction=function(t){return arguments.length?(g=t,m):g},m.normalize=function(t){return arguments.length?(a=t,m):a},m.styled=function(t){return arguments.length?(u=t,m):u},m.orientation=function(t){return arguments.length?(o=t,m):o},m.orientationOrder=function(t){return arguments.length?(c=t,m):c},m.lossFunction=function(t){return arguments.length?(v=t,m):v},m}function F(t,n){return function(){var r,i=e.select(this),o=i.datum(),a=t[o.sets[0]].radius||50,s=n(o)||"",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()>a&&(h.pop(),g.text(h.join(" ")),h=[f],g=i.append("tspan").text(f),d++)}var v=.35-d*p/2,m=i.attr("x"),y=i.attr("y");i.selectAll("tspan").attr("x",m).attr("y",y).attr("dy",(function(t,e){return v+e*p+"em"}))}}function B(t,e,n){var r,i,o=e[0].radius-u(e[0],t);for(r=1;r<e.length;++r)i=e[r].radius-u(e[r],t),i<=o&&(o=i);for(r=0;r<n.length;++r)i=u(n[r],t)-n[r].radius,i<=o&&(o=i);return o}function z(t,e){var n,r=[];for(n=0;n<t.length;++n){var o=t[n];r.push({x:o.x,y:o.y}),r.push({x:o.x+o.radius/2,y:o.y}),r.push({x:o.x-o.radius/2,y:o.y}),r.push({x:o.x,y:o.y+o.radius/2}),r.push({x:o.x,y:o.y-o.radius/2})}var a=r[0],s=B(r[0],t,e);for(n=1;n<r.length;++n){var l=B(r[n],t,e);l>=s&&(a=r[n],s=l)}var c=_((function(n){return-1*B({x:n[0],y:n[1]},t,e)}),[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,h={x:c[0],y:c[1]},d=!0;for(n=0;n<t.length;++n)if(u(h,t[n])>t[n].radius){d=!1;break}for(n=0;n<e.length;++n)if(u(h,e[n])<e[n].radius){d=!1;break}if(!d)if(1==t.length)h={x:t[0].x,y:t[0].y};else{var p={};i(t,p),h=0===p.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==p.arcs.length?{x:p.arcs[0].circle.x,y:p.arcs[0].circle.y}:e.length?z(t,[]):f(p.arcs.map((function(t){return t.p1})))}return h}function G(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],a=i+1;a<n.length;++a){var s=t[n[a]],l=u(o,s);l+s.radius<=o.radius+1e-10?e[n[a]].push(n[i]):l+o.radius<=s.radius+1e-10&&e[n[i]].push(n[a])}return e}function q(t,e){for(var n={},r=G(t),i=0;i<e.length;++i){for(var o=e[i].sets,a={},s={},u=0;u<o.length;++u){a[o[u]]=!0;for(var l=r[o[u]],c=0;c<l.length;++c)s[l[c]]=!0}var f=[],h=[];for(var d in t)d in a?f.push(t[d]):d in s||h.push(t[d]);var p=z(f,h);n[o]=p,p.disjoint&&e[i].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}function V(t,e){for(var n=G(t.selectAll("svg").datum()),r={},i=0;i<e.sets.length;++i){var o=e.sets[i];for(var a in n)for(var s=n[a],u=0;u<s.length;++u)if(s[u]==o){r[a]=!0;break}}function l(t){for(var e=0;e<t.length;++e)if(!(t[e]in r))return!1;return!0}t.selectAll("g").sort((function(t,n){return t.sets.length!=n.sets.length?t.sets.length-n.sets.length:t==e?l(n.sets)?-1:1:n==e?l(t.sets)?1:-1:n.size-t.size}))}function Y(t,e,n){var r=[];return r.push("\nM",t,e),r.push("\nm",-n,0),r.push("\na",n,n,0,1,0,2*n,0),r.push("\na",n,n,0,1,0,2*-n,0),r.join(" ")}function H(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function W(t){var e={};i(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return Y(r.x,r.y,r.radius)}for(var o=["\nM",n[0].p2.x,n[0].p2.y],a=0;a<n.length;++a){var s=n[a],u=s.circle.radius,l=s.width>u;o.push("\nA",u,u,0,l?1:0,1,s.p1.x,s.p1.y)}return o.join(" ")}t.intersectionArea=i,t.circleCircleIntersection=c,t.circleOverlap=l,t.circleArea=s,t.distance=u,t.venn=w,t.greedyLayout=A,t.scaleSolution=L,t.normalizeSolution=D,t.bestInitialLayout=C,t.lossFunction=T,t.disjointCluster=I,t.distanceFromIntersectArea=S,t.VennDiagram=N,t.wrapText=F,t.computeTextCentres=q,t.computeTextCentre=z,t.sortAreas=V,t.circlePath=Y,t.circleFromPath=H,t.intersectionAreaPath=W,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<r;i++)n[i-2]=arguments[i];if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(e.length<10||/^[s\W]*$/.test(e))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(!t){var o=0,a="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!==typeof console&&console.error(a);try{throw new Error(a)}catch(s){}}},t.exports=r},function(t,e,n){n(64),t.exports=n(64)}])}))}}]);
|