import{a as e,n as t,o as n,r,t as i}from"./chunk-jRWAZmH_.js";import{n as a,t as o}from"./jsx-runtime-CEixWuwE.js";import{Cn as s,Gn as c,In as l,Kn as u,Ln as d,Sn as f,Wn as p,Y as m,ar as h,cr as g,ir as _,n as v,nn as y,nr as b,or as x,rr as S,sr as C,tn as w,tr as T,ur as E,wn as D,wr as O,xn as k}from"./axios-BDcMaxoP.js";import{V as A}from"./ctiAxios-HKh7HuhO.js";import{n as ee,t as te}from"./typeof-C6uZ2mkP.js";import{i as j,r as M}from"./asyncToGenerator-BFc9W-7V.js";import{t as ne}from"./tooltip-D0a9NNK5.js";import{E as re,g as ie,m as ae,w as oe}from"./sanitizeDataUtils-DBUp8Fd9.js";import{r as N}from"./react-redux-Bek2gPun.js";import{t as se}from"./es--u5We8Xl.js";import{O as ce,l as le,p as ue}from"./index-C1mw6CgG.js";import{t as de}from"./sortBy-DH7cP1bl.js";var fe={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function pe(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function me(e,t,n){var r=(n||{}).atBegin;return pe(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}d();var P=n(a());function he(e,t,n){return Math.max(t,Math.min(e,n))}var ge=function(e){[`onTouchStart`,`onTouchMove`,`onWheel`].includes(e._reactName)||e.preventDefault()},_e=function(e){for(var t=[],n=ve(e),r=ye(e),i=n;i0):0},xe=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+ +(parseInt(e.centerPadding)>0):e.slidesToShow},Se=function(e){return e&&e.offsetWidth||0},Ce=function(e){return e&&e.offsetHeight||0},we=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.startX-e.curX,r=e.startY-e.curY,i=Math.round(Math.atan2(r,n)*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?`left`:i>=135&&i<=225?`right`:t===!0?i>=35&&i<=135?`up`:`down`:`vertical`},Te=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},Ee=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},De=function(e){var t=P.Children.count(e.children),n=e.listRef,r=Math.ceil(Se(n)),i=e.trackRef&&e.trackRef.node,a=Math.ceil(Se(i)),o;if(e.vertical)o=r;else{var s=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding==`string`&&e.centerPadding.slice(-1)===`%`&&(s*=r/100),o=Math.ceil((r-s)/e.slidesToShow)}var c=n&&Ce(n.querySelector(`[data-index="0"]`)),u=c*e.slidesToShow,d=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(d=t-1-e.initialSlide);var f=e.lazyLoadedList||[],p=_e(l(l({},e),{},{currentSlide:d,lazyLoadedList:f}));f=f.concat(p);var m={slideCount:t,slideWidth:o,listWidth:r,trackWidth:a,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:f};return e.autoplaying===null&&e.autoplay&&(m.autoplaying=`playing`),m},Oe=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,a=e.index,o=e.slideCount,s=e.lazyLoad,c=e.currentSlide,u=e.centerMode,d=e.slidesToScroll,f=e.slidesToShow,p=e.useCSS,m=e.lazyLoadedList;if(t&&n)return{};var h=a,g,_,v,y={},b={},x=i?a:he(a,0,o-1);if(r){if(!i&&(a<0||a>=o))return{};a<0?h=a+o:a>=o&&(h=a-o),s&&m.indexOf(h)<0&&(m=m.concat(h)),y={animating:!0,currentSlide:h,lazyLoadedList:m,targetSlide:h},b={animating:!1,targetSlide:h}}else g=h,h<0?(g=h+o,i?o%d!==0&&(g=o-o%d):g=0):!Te(e)&&h>c?h=g=c:u&&h>=o?(h=i?o:o-1,g=i?0:o-1):h>=o&&(g=h-o,i?o%d!==0&&(g=0):g=o-f),!i&&h+f>=o&&(g=o-f),_=Be(l(l({},e),{},{slideIndex:h})),v=Be(l(l({},e),{},{slideIndex:g})),i||(_===v&&(h=g),_=v),s&&(m=m.concat(_e(l(l({},e),{},{currentSlide:h})))),p?(y={animating:!0,currentSlide:g,trackStyle:ze(l(l({},e),{},{left:_})),lazyLoadedList:m,targetSlide:x},b={animating:!1,currentSlide:g,trackStyle:Re(l(l({},e),{},{left:v})),swipeLeft:null,targetSlide:x}):y={currentSlide:g,trackStyle:Re(l(l({},e),{},{left:v})),lazyLoadedList:m,targetSlide:x};return{state:y,nextState:b}},ke=function(e,t){var n,r,i,a,o,s=e.slidesToScroll,c=e.slidesToShow,u=e.slideCount,d=e.currentSlide,f=e.targetSlide,p=e.lazyLoad,m=e.infinite;if(a=u%s!==0,n=a?0:(u-d)%s,t.message===`previous`)i=n===0?s:c-n,o=d-i,p&&!m&&(r=d-i,o=r===-1?u-1:r),m||(o=f-s);else if(t.message===`next`)i=n===0?s:n,o=d+i,p&&!m&&(o=(d+s)%u+n),m||(o=f+s);else if(t.message===`dots`)o=t.index*t.slidesToScroll;else if(t.message===`children`){if(o=t.index,m){var h=We(l(l({},e),{},{targetSlide:o}));o>t.currentSlide&&h===`left`?o-=u:o10)return{scrolling:!0};o&&(v.swipeLength=T);var E=(s?-1:1)*(v.curX>v.startX?1:-1);o&&(E=v.curY>v.startY?1:-1);var D=Math.ceil(h/g),O=we(t.touchObject,o),k=v.swipeLength;return _||(c===0&&(O===`right`||O===`down`)||c+1>=D&&(O===`left`||O===`up`)||!Te(t)&&(O===`left`||O===`up`))&&(k=v.swipeLength*u,d===!1&&f&&(f(O),C.edgeDragged=!0)),!p&&y&&(y(O),C.swiped=!0),S=i?w+b/x*k*E:s?w-k*E:w+k*E,o&&(S=w+k*E),C=l(l({},C),{},{touchObject:v,swipeLeft:S,trackStyle:Re(l(l({},t),{},{left:S}))}),Math.abs(v.curX-v.startX)10&&(C.swiping=!0,ge(e)),C}},Ne=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,a=t.listWidth,o=t.touchThreshold,s=t.verticalSwiping,c=t.listHeight,u=t.swipeToSlide,d=t.scrolling,f=t.onSwipe,p=t.targetSlide,m=t.currentSlide,h=t.infinite;if(!n)return r&&ge(e),{};var g=s?c/o:a/o,_=we(i,s),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d||!i.swipeLength)return v;if(i.swipeLength>g){ge(e),f&&f(_);var y,b,x=h?m:p;switch(_){case`left`:case`up`:b=x+Ie(t),y=u?Fe(t,b):b,v.currentDirection=0;break;case`right`:case`down`:b=x-Ie(t),y=u?Fe(t,b):b,v.currentDirection=1;break;default:y=x}v.triggerSlideHandler=y}else{var S=Be(t);v.trackStyle=ze(l(l({},t),{},{left:S}))}return v},Pe=function(e){for(var t=e.infinite?e.slideCount*2:e.slideCount,n=e.infinite?e.slidesToShow*-1:0,r=e.infinite?e.slidesToShow*-1:0,i=[];nn[n.length-1])t=n[n.length-1];else for(var i in n){if(te.swipeLeft*-1)return n=r,!1}else if(r.offsetTop+Ce(r)/2>e.swipeLeft*-1)return n=r,!1;return!0}),!n)return 0;var a=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-a)||1}else return e.slidesToScroll},Le=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error(`Keys Missing:`,e)},Re=function(e){Le(e,[`left`,`variableWidth`,`slideCount`,`slidesToShow`,`slideWidth`]);var t,n,r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=Ue(e)*e.slideWidth;var i={opacity:1,transition:``,WebkitTransition:``};if(e.useTransform){var a=e.vertical?`translate3d(0px, `+e.left+`px, 0px)`:`translate3d(`+e.left+`px, 0px, 0px)`,o=e.vertical?`translate3d(0px, `+e.left+`px, 0px)`:`translate3d(`+e.left+`px, 0px, 0px)`,s=e.vertical?`translateY(`+e.left+`px)`:`translateX(`+e.left+`px)`;i=l(l({},i),{},{WebkitTransform:a,transform:o,msTransform:s})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+`px`:i.marginLeft=e.left+`px`),i},ze=function(e){Le(e,[`left`,`variableWidth`,`slideCount`,`slidesToShow`,`slideWidth`,`speed`,`cssEase`]);var t=Re(e);return e.useTransform?(t.WebkitTransition=`-webkit-transform `+e.speed+`ms `+e.cssEase,t.transition=`transform `+e.speed+`ms `+e.cssEase):e.vertical?t.transition=`top `+e.speed+`ms `+e.cssEase:t.transition=`left `+e.speed+`ms `+e.cssEase,t},Be=function(e){if(e.unslick)return 0;Le(e,[`slideIndex`,`trackRef`,`infinite`,`centerMode`,`slideCount`,`slidesToShow`,`slidesToScroll`,`slideWidth`,`listWidth`,`variableWidth`,`slideHeight`]);var t=e.slideIndex,n=e.trackRef,r=e.infinite,i=e.centerMode,a=e.slideCount,o=e.slidesToShow,s=e.slidesToScroll,c=e.slideWidth,l=e.listWidth,u=e.variableWidth,d=e.slideHeight,f=e.fade,p=e.vertical,m=0,h,g,_=0;if(f||e.slideCount===1)return 0;var v=0;if(r?(v=-Ve(e),a%s!==0&&t+s>a&&(v=-(t>a?o-(t-a):a%s)),i&&(v+=parseInt(o/2))):(a%s!==0&&t+s>a&&(v=o-a%s),i&&(v=parseInt(o/2))),m=v*c,_=v*d,h=p?t*d*-1+_:t*c*-1+m,u===!0){var y,b=n&&n.node;if(y=t+Ve(e),g=b&&b.childNodes[y],h=g?g.offsetLeft*-1:0,i===!0){y=r?t+Ve(e):t,g=b&&b.children[y],h=0;for(var x=0;xe.currentSlide?e.targetSlide>e.currentSlide+Ge(e)?`left`:`right`:e.targetSlide0&&(a+=1),r&&t%2==0&&(a+=1),a}return r?0:t-1},Ke=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var a=(t-1)/2+1;return parseInt(i)>0&&(a+=1),!r&&t%2==0&&(a+=1),a}return r?t-1:0},qe=function(){return!!(typeof window<`u`&&window.document&&window.document.createElement)};g(),x(),_(),b(),u(),f(),j(),d();var Je=n(p()),Ye=function(e){var t,n,r,i,a=e.rtl?e.slideCount-1-e.index:e.index;r=a<0||a>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(a-e.currentSlide)%e.slideCount===0,a>e.currentSlide-i-1&&a<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=a&&a=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide;return{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":a===o}},Xe=function(e){var t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth),e.fade&&(t.position=`relative`,e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=+(e.currentSlide===e.index),e.useCSS&&(t.transition=`opacity `+e.speed+`ms `+e.cssEase+`, visibility `+e.speed+`ms `+e.cssEase)),t},Ze=function(e,t){return e.key+`-`+t},Qe=function(e){var t,n=[],r=[],i=[],a=P.Children.count(e.children),o=ve(e),s=ye(e);return P.Children.forEach(e.children,function(c,u){var d,f={message:`children`,index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};d=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?c:P.createElement(`div`,null);var p=Xe(l(l({},e),{},{index:u})),m=d.props.className||``,h=Ye(l(l({},e),{},{index:u}));if(n.push(P.cloneElement(d,{key:`original`+Ze(d,u),"data-index":u,className:(0,Je.default)(h,m),tabIndex:`-1`,"aria-hidden":!h[`slick-active`],style:l(l({outline:`none`},d.props.style||{}),p),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){var g=a-u;g<=Ve(e)&&a!==e.slidesToShow&&(t=-g,t>=o&&(d=c),h=Ye(l(l({},e),{},{index:t})),r.push(P.cloneElement(d,{key:`precloned`+Ze(d,t),"data-index":t,tabIndex:`-1`,className:(0,Je.default)(h,m),"aria-hidden":!h[`slick-active`],style:l(l({},d.props.style||{}),p),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}}))),a!==e.slidesToShow&&(t=a+u,t=_&&c<=h:c===_}),y={message:`dots`,index:p,slidesToScroll:a,currentSlide:c},b=this.clickHandler.bind(this,y);f=f.concat(P.createElement(`li`,{key:p,className:v},P.cloneElement(this.props.customPaging(p),{onClick:b})))}return P.cloneElement(this.props.appendDots(f),l({className:this.props.dotsClass},d))}}]),n}(P.PureComponent);g(),d(),x(),_(),u(),f();var nt=function(e){c(n,e);var t=k(n);function n(){return h(this,n),t.apply(this,arguments)}return S(n,[{key:`clickHandler`,value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:`render`,value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:`previous`});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(e[`slick-disabled`]=!0,t=null);var n={key:`0`,"data-role":`none`,className:(0,Je.default)(e),style:{display:`block`},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?P.cloneElement(this.props.prevArrow,l(l({},n),r)):P.createElement(`button`,C({key:`0`,type:`button`},n),` `,`Previous`)}}]),n}(P.PureComponent),rt=function(e){c(n,e);var t=k(n);function n(){return h(this,n),t.apply(this,arguments)}return S(n,[{key:`clickHandler`,value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:`render`,value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:`next`});Te(this.props)||(e[`slick-disabled`]=!0,t=null);var n={key:`1`,"data-role":`none`,className:(0,Je.default)(e),style:{display:`block`},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?P.cloneElement(this.props.nextArrow,l(l({},n),r)):P.createElement(`button`,C({key:`1`,type:`button`},n),` `,`Next`)}}]),n}(P.PureComponent);ee(),g(),y(),d(),x(),_(),b(),u(),f(),j(),D();var it=[`animating`],at=function(e){c(n,e);var t=k(n);function n(e){var r;h(this,n),r=t.call(this,e),M(T(r),`listRefHandler`,function(e){return r.list=e}),M(T(r),`trackRefHandler`,function(e){return r.track=e}),M(T(r),`adaptHeight`,function(){if(r.props.adaptiveHeight&&r.list){var e=r.list.querySelector(`[data-index="${r.state.currentSlide}"]`);r.list.style.height=Ce(e)+`px`}}),M(T(r),`componentDidMount`,function(){if(r.props.onInit&&r.props.onInit(),r.props.lazyLoad){var e=_e(l(l({},r.props),r.state));e.length>0&&(r.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),r.props.onLazyLoad&&r.props.onLazyLoad(e))}var t=l({listRef:r.list,trackRef:r.track},r.props);r.updateState(t,!0,function(){r.adaptHeight(),r.props.autoplay&&r.autoPlay(`playing`)}),r.props.lazyLoad===`progressive`&&(r.lazyLoadTimer=setInterval(r.progressiveLazyLoad,1e3)),r.ro=new s(function(){r.state.animating?(r.onWindowResized(!1),r.callbackTimers.push(setTimeout(function(){return r.onWindowResized()},r.props.speed))):r.onWindowResized()}),r.ro.observe(r.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(`.slick-slide`),function(e){e.onfocus=r.props.pauseOnFocus?r.onSlideFocus:null,e.onblur=r.props.pauseOnFocus?r.onSlideBlur:null}),window.addEventListener?window.addEventListener(`resize`,r.onWindowResized):window.attachEvent(`onresize`,r.onWindowResized)}),M(T(r),`componentWillUnmount`,function(){r.animationEndCallback&&clearTimeout(r.animationEndCallback),r.lazyLoadTimer&&clearInterval(r.lazyLoadTimer),r.callbackTimers.length&&(r.callbackTimers.forEach(function(e){return clearTimeout(e)}),r.callbackTimers=[]),window.addEventListener?window.removeEventListener(`resize`,r.onWindowResized):window.detachEvent(`onresize`,r.onWindowResized),r.autoplayTimer&&clearInterval(r.autoplayTimer),r.ro.disconnect()}),M(T(r),`componentDidUpdate`,function(e){if(r.checkImagesLoad(),r.props.onReInit&&r.props.onReInit(),r.props.lazyLoad){var t=_e(l(l({},r.props),r.state));t.length>0&&(r.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),r.props.onLazyLoad&&r.props.onLazyLoad(t))}r.adaptHeight();var n=l(l({listRef:r.list,trackRef:r.track},r.props),r.state),i=r.didPropsChange(e);i&&r.updateState(n,i,function(){r.state.currentSlide>=P.Children.count(r.props.children)&&r.changeSlide({message:`index`,index:P.Children.count(r.props.children)-r.props.slidesToShow,currentSlide:r.state.currentSlide}),(e.autoplay!==r.props.autoplay||e.autoplaySpeed!==r.props.autoplaySpeed)&&(!e.autoplay&&r.props.autoplay?r.autoPlay(`playing`):r.props.autoplay?r.autoPlay(`update`):r.pause(`paused`))})}),M(T(r),`onWindowResized`,function(e){r.debouncedResize&&r.debouncedResize.cancel(),r.debouncedResize=me(50,function(){return r.resizeWindow(e)}),r.debouncedResize()}),M(T(r),`resizeWindow`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(r.track&&r.track.node){var t=l(l({listRef:r.list,trackRef:r.track},r.props),r.state);r.updateState(t,e,function(){r.props.autoplay?r.autoPlay(`update`):r.pause(`paused`)}),r.setState({animating:!1}),clearTimeout(r.animationEndCallback),delete r.animationEndCallback}}),M(T(r),`updateState`,function(e,t,n){var i=De(e);e=l(l(l({},e),i),{},{slideIndex:i.currentSlide});var a=Be(e);e=l(l({},e),{},{left:a});var o=Re(e);(t||P.Children.count(r.props.children)!==P.Children.count(e.children))&&(i.trackStyle=o),r.setState(i,n)}),M(T(r),`ssrInit`,function(){if(r.props.variableWidth){var e=0,t=0,n=[],i=Ve(l(l(l({},r.props),r.state),{},{slideCount:r.props.children.length})),a=He(l(l(l({},r.props),r.state),{},{slideCount:r.props.children.length}));r.props.children.forEach(function(t){n.push(t.props.style.width),e+=t.props.style.width});for(var o=0;o=t&&r.onWindowResized()};if(!e.onclick)e.onclick=function(){return e.parentNode.focus()};else{var a=e.onclick;e.onclick=function(t){a(t),e.parentNode.focus()}}e.onload||(r.props.lazyLoad?e.onload=function(){r.adaptHeight(),r.callbackTimers.push(setTimeout(r.onWindowResized,r.props.speed))}:(e.onload=i,e.onerror=function(){i(),r.props.onLazyLoadError&&r.props.onLazyLoadError()}))})}),M(T(r),`progressiveLazyLoad`,function(){for(var e=[],t=l(l({},r.props),r.state),n=r.state.currentSlide;n=-Ve(t);i--)if(r.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(r.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),r.props.onLazyLoad&&r.props.onLazyLoad(e)):r.lazyLoadTimer&&(clearInterval(r.lazyLoadTimer),delete r.lazyLoadTimer)}),M(T(r),`slideHandler`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=r.props,i=n.asNavFor,a=n.beforeChange,o=n.onLazyLoad,s=n.speed,c=n.afterChange,u=r.state.currentSlide,d=Oe(l(l(l({index:e},r.props),r.state),{},{trackRef:r.track,useCSS:r.props.useCSS&&!t})),f=d.state,p=d.nextState;if(f){a&&a(u,f.currentSlide);var m=f.lazyLoadedList.filter(function(e){return r.state.lazyLoadedList.indexOf(e)<0});o&&m.length>0&&o(m),!r.props.waitForAnimate&&r.animationEndCallback&&(clearTimeout(r.animationEndCallback),c&&c(u),delete r.animationEndCallback),r.setState(f,function(){i&&r.asNavForIndex!==e&&(r.asNavForIndex=e,i.innerSlider.slideHandler(e)),p&&(r.animationEndCallback=setTimeout(function(){var e=p.animating,t=w(p,it);r.setState(t,function(){r.callbackTimers.push(setTimeout(function(){return r.setState({animating:e})},10)),c&&c(f.currentSlide),delete r.animationEndCallback})},s))})}}),M(T(r),`changeSlide`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ke(l(l({},r.props),r.state),e);if(!(n!==0&&!n)&&(t===!0?r.slideHandler(n,t):r.slideHandler(n),r.props.autoplay&&r.autoPlay(`update`),r.props.focusOnSelect)){var i=r.list.querySelectorAll(`.slick-current`);i[0]&&i[0].focus()}}),M(T(r),`clickHandler`,function(e){r.clickable===!1&&(e.stopPropagation(),e.preventDefault()),r.clickable=!0}),M(T(r),`keyHandler`,function(e){var t=Ae(e,r.props.accessibility,r.props.rtl);t!==``&&r.changeSlide({message:t})}),M(T(r),`selectHandler`,function(e){r.changeSlide(e)}),M(T(r),`disableBodyScroll`,function(){window.ontouchmove=function(e){e||=window.event,e.preventDefault&&e.preventDefault(),e.returnValue=!1}}),M(T(r),`enableBodyScroll`,function(){window.ontouchmove=null}),M(T(r),`swipeStart`,function(e){r.props.verticalSwiping&&r.disableBodyScroll();var t=je(e,r.props.swipe,r.props.draggable);t!==``&&r.setState(t)}),M(T(r),`swipeMove`,function(e){var t=Me(e,l(l(l({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));t&&(t.swiping&&(r.clickable=!1),r.setState(t))}),M(T(r),`swipeEnd`,function(e){var t=Ne(e,l(l(l({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,r.setState(t),n!==void 0&&(r.slideHandler(n),r.props.verticalSwiping&&r.enableBodyScroll())}}),M(T(r),`touchEnd`,function(e){r.swipeEnd(e),r.clickable=!0}),M(T(r),`slickPrev`,function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:`previous`})},0))}),M(T(r),`slickNext`,function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:`next`})},0))}),M(T(r),`slickGoTo`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return``;r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:`index`,index:e,currentSlide:r.state.currentSlide},t)},0))}),M(T(r),`play`,function(){var e;if(r.props.rtl)e=r.state.currentSlide-r.props.slidesToScroll;else if(Te(l(l({},r.props),r.state)))e=r.state.currentSlide+r.props.slidesToScroll;else return!1;r.slideHandler(e)}),M(T(r),`autoPlay`,function(e){r.autoplayTimer&&clearInterval(r.autoplayTimer);var t=r.state.autoplaying;if(e===`update`){if(t===`hovered`||t===`focused`||t===`paused`)return}else if(e===`leave`){if(t===`paused`||t===`focused`)return}else if(e===`blur`&&(t===`paused`||t===`hovered`))return;r.autoplayTimer=setInterval(r.play,r.props.autoplaySpeed+50),r.setState({autoplaying:`playing`})}),M(T(r),`pause`,function(e){r.autoplayTimer&&(clearInterval(r.autoplayTimer),r.autoplayTimer=null);var t=r.state.autoplaying;e===`paused`?r.setState({autoplaying:`paused`}):e===`focused`?(t===`hovered`||t===`playing`)&&r.setState({autoplaying:`focused`}):t===`playing`&&r.setState({autoplaying:`hovered`})}),M(T(r),`onDotsOver`,function(){return r.props.autoplay&&r.pause(`hovered`)}),M(T(r),`onDotsLeave`,function(){return r.props.autoplay&&r.state.autoplaying===`hovered`&&r.autoPlay(`leave`)}),M(T(r),`onTrackOver`,function(){return r.props.autoplay&&r.pause(`hovered`)}),M(T(r),`onTrackLeave`,function(){return r.props.autoplay&&r.state.autoplaying===`hovered`&&r.autoPlay(`leave`)}),M(T(r),`onSlideFocus`,function(){return r.props.autoplay&&r.pause(`focused`)}),M(T(r),`onSlideBlur`,function(){return r.props.autoplay&&r.state.autoplaying===`focused`&&r.autoPlay(`blur`)}),M(T(r),`render`,function(){var e=(0,Je.default)(`slick-slider`,r.props.className,{"slick-vertical":r.props.vertical,"slick-initialized":!0}),t=l(l({},r.props),r.state),n=Ee(t,[`fade`,`cssEase`,`speed`,`infinite`,`centerMode`,`focusOnSelect`,`currentSlide`,`lazyLoad`,`lazyLoadedList`,`rtl`,`slideWidth`,`slideHeight`,`listHeight`,`vertical`,`slidesToShow`,`slidesToScroll`,`slideCount`,`trackStyle`,`variableWidth`,`unslick`,`centerPadding`,`targetSlide`,`useCSS`]),i=r.props.pauseOnHover;n=l(l({},n),{},{onMouseEnter:i?r.onTrackOver:null,onMouseLeave:i?r.onTrackLeave:null,onMouseOver:i?r.onTrackOver:null,focusOnSelect:r.props.focusOnSelect&&r.clickable?r.selectHandler:null});var a;if(r.props.dots===!0&&r.state.slideCount>=r.props.slidesToShow){var o=Ee(t,[`dotsClass`,`slideCount`,`slidesToShow`,`currentSlide`,`slidesToScroll`,`clickHandler`,`children`,`customPaging`,`infinite`,`appendDots`]),s=r.props.pauseOnDotsHover;o=l(l({},o),{},{clickHandler:r.changeSlide,onMouseEnter:s?r.onDotsLeave:null,onMouseOver:s?r.onDotsOver:null,onMouseLeave:s?r.onDotsLeave:null}),a=P.createElement(tt,o)}var c,u,d=Ee(t,[`infinite`,`centerMode`,`currentSlide`,`slideCount`,`slidesToShow`,`prevArrow`,`nextArrow`]);d.clickHandler=r.changeSlide,r.props.arrows&&(c=P.createElement(nt,d),u=P.createElement(rt,d));var f=null;r.props.vertical&&(f={height:r.state.listHeight});var p=null;r.props.vertical===!1?r.props.centerMode===!0&&(p={padding:`0px `+r.props.centerPadding}):r.props.centerMode===!0&&(p={padding:r.props.centerPadding+` 0px`});var m=l(l({},f),p),h=r.props.touchMove,g={className:`slick-list`,style:m,onClick:r.clickHandler,onMouseDown:h?r.swipeStart:null,onMouseMove:r.state.dragging&&h?r.swipeMove:null,onMouseUp:h?r.swipeEnd:null,onMouseLeave:r.state.dragging&&h?r.swipeEnd:null,onTouchStart:h?r.swipeStart:null,onTouchMove:r.state.dragging&&h?r.swipeMove:null,onTouchEnd:h?r.touchEnd:null,onTouchCancel:r.state.dragging&&h?r.swipeEnd:null,onKeyDown:r.props.accessibility?r.keyHandler:null},_={className:e,dir:`ltr`,style:r.props.style};return r.props.unslick&&(g={className:`slick-list`},_={className:e,style:r.props.style}),P.createElement(`div`,_,r.props.unslick?``:c,P.createElement(`div`,C({ref:r.listRefHandler},g),P.createElement($e,C({ref:r.trackRefHandler},n),r.props.children)),r.props.unslick?``:u,r.props.unslick?``:a)}),r.list=null,r.track=null,r.state=l(l({},fe),{},{currentSlide:r.props.initialSlide,slideCount:P.Children.count(r.props.children)}),r.callbackTimers=[],r.clickable=!0,r.debouncedResize=null;var i=r.ssrInit();return r.state=l(l({},r.state),i),r}return S(n,[{key:`didPropsChange`,value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n{t.exports=function(e){return e.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()}).toLowerCase()}})),st=i(((e,t)=>{var n=ot(),r=function(e){return/[height|width]$/.test(e)},i=function(e){var t=``,i=Object.keys(e);return i.forEach(function(a,o){var s=e[a];a=n(a),r(a)&&typeof s==`number`&&(s+=`px`),s===!0?t+=a:s===!1?t+=`not `+a:t+=`(`+a+`: `+s+`)`,o1&&arguments[1]!==void 0?arguments[1]:!1;return r.innerSlider.slickGoTo(e,t)}),M(T(r),`slickPause`,function(){return r.innerSlider.pause(`paused`)}),M(T(r),`slickPlay`,function(){return r.innerSlider.autoPlay(`play`)}),r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return S(n,[{key:`media`,value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:`componentDidMount`,value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var i=r===0?(0,lt.default)({minWidth:0,maxWidth:n}):(0,lt.default)({minWidth:t[r-1]+1,maxWidth:n});qe()&&e.media(i,function(){e.setState({breakpoint:n})})});var n=(0,lt.default)({minWidth:t.slice(-1)[0]});qe()&&this.media(n,function(){e.setState({breakpoint:null})})}}},{key:`componentWillUnmount`,value:function(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})}},{key:`render`,value:function(){var e=this,t,n;this.state.breakpoint?(n=this.props.responsive.filter(function(t){return t.breakpoint===e.state.breakpoint}),t=n[0].settings===`unslick`?`unslick`:l(l(l({},ct),this.props),n[0].settings)):t=l(l({},ct),this.props),t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);var r=P.Children.toArray(this.props.children);r=r.filter(function(e){return typeof e==`string`?!!e.trim():!!e}),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn(`variableWidth is not supported in case of rows > 1 or slidesPerRow > 1`),t.variableWidth=!1);for(var i=[],a=null,o=0;o=r.length));d+=1)u.push(P.cloneElement(r[d],{key:100*o+10*c+d,tabIndex:-1,style:{width:`${100/t.slidesPerRow}%`,display:`inline-block`}}));s.push(P.createElement(`div`,{key:10*o+c},u))}t.variableWidth?i.push(P.createElement(`div`,{key:o,style:{width:a}},s)):i.push(P.createElement(`div`,{key:o},s))}if(t===`unslick`){var f=`regular slider `+(this.props.className||``);return P.createElement(`div`,{className:f},r)}else i.length<=t.slidesToShow&&(t.unslick=!0);return P.createElement(at,C({style:this.props.style,ref:this.innerSliderRefHandler},t),i)}}]),n}(P.Component);j(),g();var dt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i1&&arguments[1]!==void 0?arguments[1]:!1;_.current.slickGoTo(e,t)};P.useImperativeHandle(t,function(){return{goTo:v,autoPlay:_.current.innerSlider.autoPlay,innerSlider:_.current.innerSlider,prev:_.current.slickPrev,next:_.current.slickNext}},[_.current]);var y=P.useRef(P.Children.count(f.children));P.useEffect(function(){y.current!==P.Children.count(f.children)&&(v(f.initialSlide||0,!1),y.current=P.Children.count(f.children))},[f.children]);var b=C({vertical:d},f);b.effect===`fade`&&(b.fade=!0);var x=h(`carousel`,b.prefixCls),S=`slick-dots`,w=!!r,T=(0,Je.default)(S,`${S}-${l}`,typeof r==`boolean`?!1:r?.className),E=(0,Je.default)(x,M(M({},`${x}-rtl`,g===`rtl`),`${x}-vertical`,l===`left`||l===`right`));return P.createElement(`div`,{className:E},P.createElement(ut,C({ref:_},b,{dots:w,dotsClass:T,arrows:a,draggable:s})))}),F=r({__addDisposableResource:()=>zt,__assign:()=>L,__asyncDelegator:()=>jt,__asyncGenerator:()=>At,__asyncValues:()=>Mt,__await:()=>kt,__awaiter:()=>xt,__classPrivateFieldGet:()=>It,__classPrivateFieldIn:()=>Rt,__classPrivateFieldSet:()=>Lt,__createBinding:()=>Ut,__decorate:()=>mt,__disposeResources:()=>Bt,__esDecorate:()=>gt,__exportStar:()=>Ct,__extends:()=>I,__generator:()=>St,__importDefault:()=>Ft,__importStar:()=>Pt,__makeTemplateObject:()=>Nt,__metadata:()=>bt,__param:()=>ht,__propKey:()=>vt,__read:()=>Tt,__rest:()=>pt,__rewriteRelativeImportExtension:()=>Vt,__runInitializers:()=>_t,__setFunctionName:()=>yt,__spread:()=>Et,__spreadArray:()=>Ot,__spreadArrays:()=>Dt,__values:()=>wt,default:()=>qt});function I(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Ht(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function pt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function ht(e,t){return function(n,r){t(n,r,e)}}function gt(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function _t(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Tt(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Et(){for(var e=[],t=0;t1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof kt?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function jt(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:kt(e[r](t)),done:!1}:i?i(t):t}:i}}function Mt(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof wt==`function`?wt(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Nt(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function Pt(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Gt(e),r=0;r{Ht=function(e,t){return Ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ht(e,t)},L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Jt=function(e){return e!==null&&typeof e!=`function`&&isFinite(e.length)}})),Xt,Zt=t((()=>{Yt(),Xt=function(e,t){return Jt(e)?e.indexOf(t)>-1:!1}})),Qt,$t=t((()=>{Yt(),Qt=function(e,t){if(!Jt(e))return e;for(var n=[],r=0;r{$t(),Zt(),en=function(e,t){return t===void 0&&(t=[]),Qt(e,function(e){return!Xt(t,e)})}})),nn,rn,an=t((()=>{nn={}.toString,rn=function(e,t){return nn.call(e)===`[object `+t+`]`}})),z,on=t((()=>{an(),z=(function(e){return rn(e,`Function`)})})),B,sn=t((()=>{B=function(e){return e==null}})),V,cn=t((()=>{an(),V=(function(e){return Array.isArray?Array.isArray(e):rn(e,`Array`)})})),ln,un=t((()=>{ln=(function(e){var t=typeof e;return e!==null&&t===`object`||t===`function`})}));function H(e,t){if(e){var n;if(V(e))for(var r=0,i=e.length;r{cn(),un()})),fn,pn=t((()=>{dn(),on(),fn=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return H(e,function(n,r){z(e)&&r===`prototype`||t.push(r)}),t}}));function mn(e,t){var n=fn(t),r=n.length;if(B(e))return!r;for(var i=0;i{sn(),pn()})),gn,_n=t((()=>{gn=function(e){return typeof e==`object`&&!!e}})),vn,yn=t((()=>{_n(),an(),vn=function(e){if(!gn(e)||!rn(e,`Object`))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}}));function bn(e,t){if(!V(e))return null;var n;if(z(t)&&(n=t),vn(t)&&(n=function(e){return mn(e,t)}),n){for(var r=0;r{on(),hn(),cn(),yn()}));function Sn(e,t,n){n===void 0&&(n=0);for(var r=n;r{})),wn,Tn=t((()=>{sn(),cn(),wn=function(e,t){for(var n=null,r=0;r{cn(),En=function(e){if(!V(e))return[];for(var t=[],n=0;n{cn(),On=function(e,t){if(t===void 0&&(t=[]),!V(e))t.push(e);else for(var n=0;n{cn(),An=(function(e){if(V(e))return e.reduce(function(e,t){return Math.max(e,t)},e[0])})})),Mn,Nn=t((()=>{cn(),Mn=(function(e){if(V(e))return e.reduce(function(e,t){return Math.min(e,t)},e[0])})})),Pn,Fn=t((()=>{cn(),jn(),Nn(),Pn=function(e){var t=e.filter(function(e){return!isNaN(e)});if(!t.length)return{min:0,max:0};if(V(e[0])){for(var n=[],r=0;r{In=Array.prototype,Ln=In.splice,Rn=In.indexOf,zn=function(e){for(var t=[...arguments].slice(1),n=0;n-1;)Ln.call(e,i,1);return e}})),Vn,Hn,Un=t((()=>{Yt(),Vn=Array.prototype.splice,Hn=function(e,t){if(!Jt(e))return[];for(var n=e?t.length:0,r=n-1;n--;){var i=void 0,a=t[n];(n===r||a!==i)&&(i=a,Vn.call(e,a,1))}return e}})),Wn,Gn=t((()=>{dn(),cn(),yn(),Wn=function(e,t,n){if(!V(e)&&!vn(e))return e;var r=n;return H(e,function(e,n){r=t(r,e,n)}),r}})),Kn,qn=t((()=>{Yt(),Un(),Kn=function(e,t){var n=[];if(!Jt(e))return n;for(var r=-1,i=[],a=e.length;++r{an(),U=(function(e){return rn(e,`String`)})}));function Yn(e,t){var n;if(z(t))n=function(e,n){return t(e)-t(n)};else{var r=[];U(t)?r.push(t):V(t)&&(r=t),n=function(e,t){for(var n=0;nt[i])return 1;if(e[i]{cn(),Jn(),on()}));function Zn(e,t){t===void 0&&(t=new Map);var n=[];if(Array.isArray(e))for(var r=0,i=e.length;r{})),$n,er=t((()=>{Qn(),$n=function(){var e=[...arguments];return Zn([].concat.apply([],e))}})),tr,nr=t((()=>{cn(),sn(),tr=(function(e,t){for(var n=[],r={},i=0;i{Yt()}));function ar(e){if(Jt(e)){var t=e;return t[t.length-1]}}var or=t((()=>{Yt()}));function sr(e,t){return V(e)||U(e)?e[0]===t:!1}var cr=t((()=>{cn(),Jn()}));function lr(e,t){return V(e)||U(e)?e[e.length-1]===t:!1}var ur=t((()=>{cn(),Jn()})),dr,fr=t((()=>{dr=function(e,t){for(var n=0;n{pr=function(e,t){for(var n=0;n{cn(),on(),gr=Object.prototype.hasOwnProperty}));function vr(e,t){if(!t)return{0:e};if(!z(t)){var n=V(t)?t:t.replace(/\s+/g,``).split(`*`);t=function(e){for(var t=`_`,r=0,i=n.length;r{cn(),on(),_r()})),br,xr=t((()=>{yr(),br=(function(e,t){if(!t)return[e];var n=vr(e,t),r=[];for(var i in n)r.push(n[i]);return r})}));function Sr(e,t){return e[`_wrap_`+t]}var Cr=t((()=>{}));function wr(e,t){if(e[`_wrap_`+t])return e[`_wrap_`+t];var n=function(n){e[t](n)};return e[`_wrap_`+t]=n,n}var Tr=t((()=>{}));function Er(e){var t=Dr[e];if(!t){for(var n=e.toString(16),r=n.length;r<6;r++)n=`0`+n;t=`#`+n,Dr[e]=t}return t}var Dr,Or=t((()=>{Dr={}}));function kr(e){var t=0,n=0,r=0,i=0;return V(e)?e.length===1?t=n=r=i=e[0]:e.length===2?(t=r=e[0],n=i=e[1]):e.length===3?(t=e[0],n=i=e[1],r=e[2]):(t=e[0],n=e[1],r=e[2],i=e[3]):t=n=r=i=e,{r1:t,r2:n,r3:r,r4:i}}var Ar=t((()=>{cn()})),jr,Mr=t((()=>{jr=function(e,t,n){return en?n:e}})),Nr,Pr=t((()=>{Nr=function(e,t){var n=t.toString(),r=n.indexOf(`.`);if(r===-1)return Math.round(e);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(e.toFixed(i))}})),W,Fr=t((()=>{an(),W=function(e){return rn(e,`Number`)}})),Ir,Lr=t((()=>{Fr(),Ir=function(e){return W(e)&&e%1!=0}})),Rr,zr=t((()=>{Fr(),Rr=function(e){return W(e)&&e%2==0}})),Br,Vr=t((()=>{Fr(),Br=Number.isInteger?Number.isInteger:function(e){return W(e)&&e%1==0}})),Hr,Ur=t((()=>{Fr(),Hr=function(e){return W(e)&&e<0}}));function Wr(e,t,n){return n===void 0&&(n=Gr),Math.abs(e-t){Gr=1e-5})),qr,Jr=t((()=>{Fr(),qr=function(e){return W(e)&&e%2!=0}})),Yr,Xr=t((()=>{Fr(),Yr=function(e){return W(e)&&e>0}})),Zr,Qr=t((()=>{cn(),on(),Zr=(function(e,t){if(V(e)){for(var n,r=-1/0,i=0;ir&&(n=a,r=o)}return n}})})),$r,ei=t((()=>{cn(),on(),$r=(function(e,t){if(V(e)){for(var n,r=1/0,i=0;i{ti=function(e,t){return(e%t+t)%t}})),ri,ii,ai=t((()=>{ri=180/Math.PI,ii=function(e){return ri*e}})),oi,si=t((()=>{oi=parseInt})),ci,li,ui=t((()=>{ci=Math.PI/180,li=function(e){return ci*e}})),di,fi=t((()=>{dn(),di=H})),pi,mi=t((()=>{pi=(function(e,t){return e.hasOwnProperty(t)})})),hi,gi=t((()=>{mi(),hi=pi})),_i,vi=t((()=>{dn(),on(),_i=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return H(e,function(n,r){z(e)&&r===`prototype`||t.push(n)}),t}})),yi,bi=t((()=>{Zt(),vi(),yi=(function(e,t){return Xt(_i(e),t)})})),xi,Si=t((()=>{sn(),xi=(function(e){return B(e)?``:e.toString()})})),Ci,wi=t((()=>{Si(),Ci=function(e){return xi(e).toLowerCase()}})),Ti,Ei=t((()=>{Si(),Ti=function(e){var t=xi(e);return t.charAt(0).toLowerCase()+t.substring(1)}}));function Di(e,t){return!e||!t?e:e.replace(/\\?\{([^{}]+)\}/g,function(e,n){return e.charAt(0)===`\\`?e.slice(1):t[n]===void 0?``:t[n]})}var Oi=t((()=>{})),ki,Ai=t((()=>{Si(),ki=function(e){return xi(e).toUpperCase()}})),ji,Mi=t((()=>{Si(),ji=function(e){var t=xi(e);return t.charAt(0).toUpperCase()+t.substring(1)}})),Ni,Pi,Fi=t((()=>{Ni={}.toString,Pi=function(e){return Ni.call(e).replace(/^\[object /,``).replace(/]$/,``)}})),Ii,Li=t((()=>{an(),Ii=function(e){return rn(e,`Arguments`)}})),Ri,zi=t((()=>{an(),Ri=function(e){return rn(e,`Boolean`)}})),Bi,Vi=t((()=>{an(),Bi=function(e){return rn(e,`Date`)}})),Hi,Ui=t((()=>{an(),Hi=function(e){return rn(e,`Error`)}}));function Wi(e){return W(e)&&isFinite(e)}var Gi=t((()=>{Fr()})),Ki,qi=t((()=>{Ki=function(e){return e===null}})),Ji,Yi,Xi=t((()=>{Ji=Object.prototype,Yi=function(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Ji)}})),Zi,Qi=t((()=>{an(),Zi=function(e){return rn(e,`RegExp`)}})),$i,ea=t((()=>{$i=function(e){return e===void 0}})),ta,na=t((()=>{ta=function(e){return e instanceof Element||e instanceof HTMLDocument}}));function ra(e){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,16)})(e)}var ia=t((()=>{}));function aa(e){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(e)}var oa=t((()=>{}));function sa(e,t){for(var n in t)t.hasOwnProperty(n)&&n!==`constructor`&&t[n]!==void 0&&(e[n]=t[n])}function G(e,t,n,r){return t&&sa(e,t),n&&sa(e,n),r&&sa(e,r),e}var ca=t((()=>{})),la,ua=t((()=>{ca(),on(),la=function(){for(var e=[...arguments],t=e[0],n=1;n{cn(),da=function(e){if(typeof e!=`object`||!e)return e;var t;if(V(e)){t=[];for(var n=0,r=e.length;n{})),ha,ga=t((()=>{on(),ha=(function(e,t){if(!z(e))throw TypeError(`Expected a function`);var n=function(){var r=[...arguments],i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return a.set(i,o),o};return n.cache=new Map,n})}));function _a(e,t,n,r){for(var i in n||=0,r||=va,t)if(t.hasOwnProperty(i)){var a=t[i];a!==null&&vn(a)?(vn(e[i])||(e[i]={}),n{cn(),yn(),va=5,ya=function(e){for(var t=[...arguments].slice(1),n=0;n{ca(),on(),xa=function(e,t,n,r){z(t)||(n=t,t=e,e=function(){});var i=Object.create?function(e,t){return Object.create(e,{constructor:{value:t}})}:function(e,t){function n(){}n.prototype=e;var r=new n;return r.constructor=t,r},a=i(t.prototype,e);return e.prototype=G(a,e.prototype),e.superclass=i(t.prototype,t),G(a,n),G(e,r),e}})),Ca,wa=t((()=>{Yt(),Ca=function(e,t){if(!Jt(e))return-1;var n=Array.prototype.indexOf;if(n)return n.call(e,t);for(var r=-1,i=0;i{sn(),Yt(),Fi(),Xi(),Ea=Object.prototype.hasOwnProperty})),Oa,ka=t((()=>{_n(),Yt(),Jn(),Oa=function(e,t){if(e===t)return!0;if(!e||!t||U(e)||U(t))return!1;if(Jt(e)||Jt(t)){if(e.length!==t.length)return!1;for(var n=!0,r=0;r{on(),ka(),Aa=(function(e,t,n){return z(n)?!!n(e,t):Oa(e,t)})})),Ma,Na=t((()=>{Yt(),Ma=function(e,t){if(!Jt(e))return e;for(var n=[],r=0;r{sn(),un(),Pa=function(e){return e},Fa=(function(e,t){t===void 0&&(t=Pa);var n={};return ln(e)&&!B(e)&&Object.keys(e).forEach(function(r){n[r]=t(e[r],r)}),n})})),K,La=t((()=>{Jn(),K=(function(e,t,n){for(var r=0,i=U(t)?t.split(`.`):t;e&&r{un(),Jn(),Fr(),Ra=(function(e,t,n){var r=e,i=U(t)?t.split(`.`):t;return i.forEach(function(e,t){t{dn(),yn(),Ba=Object.prototype.hasOwnProperty,Va=(function(e,t){if(e===null||!vn(e))return{};var n={};return H(t,function(t){Ba.call(e,t)&&(n[t]=e[t])}),n})})),Ua,Wa=t((()=>{Gn(),Ua=(function(e,t){return Wn(e,function(e,n,r){return t.includes(r)||(e[r]=n),e},{})})})),Ga,Ka=t((()=>{Ga=(function(e,t,n){var r,i,a,o,s=0;n||={};var c=function(){s=n.leading===!1?0:Date.now(),r=null,o=e.apply(i,a),r||(i=a=null)},l=function(){var l=Date.now();!s&&n.leading===!1&&(s=l);var u=t-(l-s);return i=this,a=arguments,u<=0||u>t?(r&&=(clearTimeout(r),null),s=l,o=e.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,u)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l})})),qa,Ja=t((()=>{Yt(),qa=(function(e){return Jt(e)?Array.prototype.slice.call(e):[]})})),Ya,Xa,Za=t((()=>{Ya={},Xa=(function(e){return e||=`g`,Ya[e]?Ya[e]+=1:Ya[e]=1,e+Ya[e]})})),Qa,$a=t((()=>{Qa=(function(){})})),eo,to=t((()=>{eo=(function(e){return e})}));function no(e){return B(e)?0:Jt(e)?e.length:Object.keys(e).length}var ro=t((()=>{sn(),Yt()})),io,ao,oo=t((()=>{R(),vi(),ga(),Jn(),ao=ha(function(e,t){t===void 0&&(t={});var n=t.fontSize,r=t.fontFamily,i=t.fontWeight,a=t.fontStyle,o=t.fontVariant;return io||=document.createElement(`canvas`).getContext(`2d`),io.font=[a,o,i,n+`px`,r].join(` `),io.measureText(U(e)?e:``).width},function(e,t){return t===void 0&&(t={}),Dt([e],_i(t)).join(``)})})),so,co=t((()=>{Jn(),Si(),oo(),so=(function(e,t,n,r){r===void 0&&(r=`...`);var i=16,a=ao(r,n),o=U(e)?e:xi(e),s=t,c=[],l,u;if(ao(e,n)<=t)return e;for(;l=o.substr(0,i),u=ao(l,n),!(u+a>s&&u>s);)if(c.push(l),s-=u,o=o.substr(i),!o)return c.join(``);for(;l=o.substr(0,1),u=ao(l,n),!(u+a>s);)if(c.push(l),s-=u,o=o.substr(1),!o)return c.join(``);return``+c.join(``)+r})})),lo,uo=t((()=>{lo=function(){function e(){this.map={}}return e.prototype.has=function(e){return this.map[e]!==void 0},e.prototype.get=function(e,t){var n=this.map[e];return n===void 0?t:n},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length},e}()})),q=r({Cache:()=>lo,assign:()=>G,augment:()=>la,clamp:()=>jr,clearAnimationFrame:()=>aa,clone:()=>da,contains:()=>Xt,debounce:()=>pa,deepMix:()=>ya,difference:()=>en,each:()=>H,endsWith:()=>lr,every:()=>dr,extend:()=>xa,filter:()=>Qt,find:()=>bn,findIndex:()=>Sn,firstValue:()=>wn,fixedBase:()=>Nr,flatten:()=>En,flattenDeep:()=>On,forIn:()=>di,get:()=>K,getEllipsisText:()=>so,getRange:()=>Pn,getType:()=>Pi,getWrapBehavior:()=>Sr,group:()=>br,groupBy:()=>hr,groupToMap:()=>vr,has:()=>pi,hasKey:()=>hi,hasValue:()=>yi,head:()=>rr,identity:()=>eo,includes:()=>Xt,indexOf:()=>Ca,isArguments:()=>Ii,isArray:()=>V,isArrayLike:()=>Jt,isBoolean:()=>Ri,isDate:()=>Bi,isDecimal:()=>Ir,isElement:()=>ta,isEmpty:()=>Ta,isEqual:()=>Oa,isEqualWith:()=>Aa,isError:()=>Hi,isEven:()=>Rr,isFinite:()=>Wi,isFunction:()=>z,isInteger:()=>Br,isMatch:()=>mn,isNegative:()=>Hr,isNil:()=>B,isNull:()=>Ki,isNumber:()=>W,isNumberEqual:()=>Wr,isObject:()=>ln,isObjectLike:()=>gn,isOdd:()=>qr,isPlainObject:()=>vn,isPositive:()=>Yr,isPrototype:()=>Yi,isRegExp:()=>Zi,isString:()=>U,isType:()=>rn,isUndefined:()=>$i,keys:()=>fn,last:()=>ar,lowerCase:()=>Ci,lowerFirst:()=>Ti,map:()=>Ma,mapValues:()=>Fa,max:()=>An,maxBy:()=>Zr,measureTextWidth:()=>ao,memoize:()=>ha,min:()=>Mn,minBy:()=>$r,mix:()=>G,mod:()=>ti,noop:()=>Qa,number2color:()=>Er,omit:()=>Ua,parseRadius:()=>kr,pick:()=>Va,pull:()=>zn,pullAt:()=>Hn,reduce:()=>Wn,remove:()=>Kn,requestAnimationFrame:()=>ra,set:()=>Ra,size:()=>no,some:()=>pr,sortBy:()=>Yn,startsWith:()=>sr,substitute:()=>Di,throttle:()=>Ga,toArray:()=>qa,toDegree:()=>ii,toInteger:()=>oi,toRadian:()=>li,toString:()=>xi,union:()=>$n,uniq:()=>Zn,uniqueId:()=>Xa,upperCase:()=>ki,upperFirst:()=>ji,values:()=>_i,valuesOfKey:()=>tr,wrapBehavior:()=>wr}),J=t((()=>{Zt(),tn(),xn(),Cn(),Tn(),Dn(),kn(),Fn(),Bn(),Un(),Gn(),qn(),Xn(),er(),Qn(),nr(),ir(),or(),cr(),ur(),$t(),fr(),mr(),xr(),_r(),yr(),Cr(),Tr(),Or(),Ar(),Mr(),Pr(),Lr(),zr(),Vr(),Ur(),Kr(),Jr(),Xr(),jn(),Qr(),Nn(),ei(),ni(),ai(),si(),ui(),fi(),mi(),gi(),bi(),pn(),hn(),vi(),wi(),Ei(),Oi(),Ai(),Mi(),Fi(),Li(),cn(),Yt(),zi(),Vi(),Ui(),on(),Gi(),sn(),qi(),Fr(),un(),_n(),yn(),Xi(),Qi(),Jn(),an(),ea(),na(),ia(),oa(),ua(),fa(),ma(),ga(),ba(),dn(),Sa(),wa(),Da(),ka(),ja(),Na(),Ia(),ca(),La(),za(),Ha(),Wa(),Ka(),Ja(),Si(),Za(),$a(),to(),ro(),oo(),co(),uo()})),Y=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.COMPONENT_MAX_VIEW_PERCENTAGE=e.MIN_CHART_HEIGHT=e.MIN_CHART_WIDTH=e.FIELD_ORIGIN=e.GROUP_ATTRS=e.ELEMENT_STATE=e.PLOT_EVENTS=e.GEOMETRY_LIFE_CIRCLE=e.VIEW_LIFE_CIRCLE=e.GROUP_Z_INDEX=e.COMPONENT_TYPE=e.DIRECTION=e.LAYER=void 0,(function(e){e.FORE=`fore`,e.MID=`mid`,e.BG=`bg`})(e.LAYER||={}),(function(e){e.TOP=`top`,e.TOP_LEFT=`top-left`,e.TOP_RIGHT=`top-right`,e.RIGHT=`right`,e.RIGHT_TOP=`right-top`,e.RIGHT_BOTTOM=`right-bottom`,e.LEFT=`left`,e.LEFT_TOP=`left-top`,e.LEFT_BOTTOM=`left-bottom`,e.BOTTOM=`bottom`,e.BOTTOM_LEFT=`bottom-left`,e.BOTTOM_RIGHT=`bottom-right`,e.RADIUS=`radius`,e.CIRCLE=`circle`,e.NONE=`none`})(e.DIRECTION||={}),(function(e){e.AXIS=`axis`,e.GRID=`grid`,e.LEGEND=`legend`,e.TOOLTIP=`tooltip`,e.ANNOTATION=`annotation`,e.SLIDER=`slider`,e.SCROLLBAR=`scrollbar`,e.OTHER=`other`})(e.COMPONENT_TYPE||={}),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},(function(e){e.BEFORE_RENDER=`beforerender`,e.AFTER_RENDER=`afterrender`,e.BEFORE_PAINT=`beforepaint`,e.AFTER_PAINT=`afterpaint`,e.BEFORE_CHANGE_DATA=`beforechangedata`,e.AFTER_CHANGE_DATA=`afterchangedata`,e.BEFORE_CLEAR=`beforeclear`,e.AFTER_CLEAR=`afterclear`,e.BEFORE_DESTROY=`beforedestroy`,e.BEFORE_CHANGE_SIZE=`beforechangesize`,e.AFTER_CHANGE_SIZE=`afterchangesize`})(e.VIEW_LIFE_CIRCLE||={}),(function(e){e.BEFORE_DRAW_ANIMATE=`beforeanimate`,e.AFTER_DRAW_ANIMATE=`afteranimate`})(e.GEOMETRY_LIFE_CIRCLE||={}),(function(e){e.MOUSE_ENTER=`plot:mouseenter`,e.MOUSE_DOWN=`plot:mousedown`,e.MOUSE_MOVE=`plot:mousemove`,e.MOUSE_UP=`plot:mouseup`,e.MOUSE_LEAVE=`plot:mouseleave`,e.TOUCH_START=`plot:touchstart`,e.TOUCH_MOVE=`plot:touchmove`,e.TOUCH_END=`plot:touchend`,e.TOUCH_CANCEL=`plot:touchcancel`,e.CLICK=`plot:click`,e.DBLCLICK=`plot:dblclick`,e.CONTEXTMENU=`plot:contextmenu`,e.LEAVE=`plot:leave`,e.ENTER=`plot:enter`})(e.PLOT_EVENTS||={}),(function(e){e.ACTIVE=`active`,e.INACTIVE=`inactive`,e.SELECTED=`selected`,e.DEFAULT=`default`})(e.ELEMENT_STATE||={}),e.GROUP_ATTRS=[`color`,`shape`,`size`],e.FIELD_ORIGIN=`_origin`,e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25})),fo=r({catmullRomToBezier:()=>So,fillPath:()=>Go,fillPathByDiff:()=>Jo,formatPath:()=>Yo,intersection:()=>Uo,parsePathArray:()=>Ao,parsePathString:()=>xo,pathToAbsolute:()=>wo,pathToCurve:()=>Oo,rectPath:()=>Io});function po(e,t){var n=[],r=[];function i(e,t){if(e.length===1)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o=3&&(e.length===3&&t.push(`Q`),t=t.concat(e[1])),e.length===2&&t.push(`L`),t=t.concat(e[e.length-1]),t})}function ho(e,t,n){var r=null,i=n;return t{J(),vo=` \v\f\r \xA0 ᠎              \u2028\u2029`,yo=RegExp(`([a-z])[`+vo+`,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[`+vo+`]*,?[`+vo+`]*)+)`,`ig`),bo=RegExp(`(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[`+vo+`]*,?[`+vo+`]*`,`ig`),xo=function(e){if(!e)return null;if(V(e))return e;var t={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(e).replace(yo,function(r,i,a){var o=[],s=i.toLowerCase();if(a.replace(bo,function(e,t){t&&o.push(+t)}),s===`m`&&o.length>2&&(n.push([i].concat(o.splice(0,2))),s=`l`,i=i===`m`?`l`:`L`),s===`o`&&o.length===1&&n.push([i,o[0]]),s===`r`)n.push([i].concat(o));else for(;o.length>=t[s]&&(n.push([i].concat(o.splice(0,t[s]))),t[s]););return e}),n},So=function(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var a=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4===r?a[3]={x:+e[0],y:+e[1]}:i-2===r&&(a[2]={x:+e[0],y:+e[1]},a[3]={x:+e[2],y:+e[3]}):a[0]={x:+e[i-2],y:+e[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+e[r],y:+e[r+1]}),n.push([`C`,(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},Co=function(e,t,n,r,i){var a=[];if(i===null&&r===null&&(r=n),e=+e,t=+t,n=+n,r=+r,i!==null){var o=Math.PI/180,s=e+n*Math.cos(-r*o),c=e+n*Math.cos(-i*o),l=t+n*Math.sin(-r*o),u=t+n*Math.sin(-i*o);a=[[`M`,s,l],[`A`,n,n,0,+(i-r>180),0,c,u]]}else a=[[`M`,e,t],[`m`,0,-r],[`a`,n,r,0,1,1,0,2*r],[`a`,n,r,0,1,1,0,-2*r],[`z`]];return a},wo=function(e){if(e=xo(e),!e||!e.length)return[[`M`,0,0]];var t=[],n=0,r=0,i=0,a=0,o=0,s,c;e[0][0]===`M`&&(n=+e[0][1],r=+e[0][2],i=n,a=r,o++,t[0]=[`M`,n,r]);for(var l=e.length===3&&e[0][0]===`M`&&e[1][0].toUpperCase()===`R`&&e[2][0].toUpperCase()===`Z`,u=void 0,d=void 0,f=o,p=e.length;f1&&(x=Math.sqrt(x),n=x*n,r=x*r);var S=n*n,C=r*r,w=(a===o?-1:1)*Math.sqrt(Math.abs((S*C-S*b*b-C*y*y)/(S*b*b+C*y*y)));g=w*n*b/r+(e+s)/2,_=w*-r*y/n+(t+c)/2,m=Math.asin(((t-_)/r).toFixed(9)),h=Math.asin(((c-_)/r).toFixed(9)),m=eh&&(m-=Math.PI*2),!o&&h>m&&(h-=Math.PI*2)}var T=h-m;if(Math.abs(T)>u){var E=h,D=s,O=c;h=m+u*(o&&h>m?1:-1),s=g+n*Math.cos(h),c=_+r*Math.sin(h),f=Do(s,c,n,r,i,0,o,D,O,[h,E,g,_])}T=h-m;var k=Math.cos(m),A=Math.sin(m),ee=Math.cos(h),te=Math.sin(h),j=Math.tan(T/4),M=4/3*n*j,ne=4/3*r*j,re=[e,t],ie=[e+M*A,t-ne*k],ae=[s+M*te,c-ne*ee],oe=[s,c];if(ie[0]=2*re[0]-ie[0],ie[1]=2*re[1]-ie[1],l)return[ie,ae,oe].concat(f);f=[ie,ae,oe].concat(f).join().split(`,`);for(var N=[],se=0,ce=f.length;se7){e[t].shift();for(var i=e[t];i.length;)o[t]=`A`,r&&(s[t]=`A`),e.splice(t++,0,[`C`].concat(i.splice(0,6)));e.splice(t,1),u=Math.max(n.length,r&&r.length||0)}},p=function(e,t,i,a,o){e&&t&&e[o][0]===`M`&&t[o][0]!==`M`&&(t.splice(o,0,[`M`,a.x,a.y]),i.bx=0,i.by=0,i.x=e[o][1],i.y=e[o][2],u=Math.max(n.length,r&&r.length||0))};u=Math.max(n.length,r&&r.length||0);for(var m=0;m1?1:c<0?0:c;for(var l=c/2,u=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,m=0;m0&&p<1&&c.push(p);continue}var h=d*d-4*f*u,g=Math.sqrt(h);if(!(h<0)){var _=(-d+g)/(2*u);_>0&&_<1&&c.push(_);var v=(-d-g)/(2*u);v>0&&v<1&&c.push(v)}}for(var y=c.length,b=y,x;y--;)p=c[y],x=1-p,l[0][y]=x*x*x*e+3*x*x*p*n+3*x*p*p*i+p*p*p*o,l[1][y]=x*x*x*t+3*x*x*p*r+3*x*p*p*a+p*p*p*s;return l[0][b]=e,l[1][b]=t,l[0][b+1]=o,l[1][b+1]=s,l[0].length=l[1].length=b+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])}}},Po=function(e,t,n,r,i,a,o,s){if(!(Math.max(e,n)Math.max(i,o)||Math.max(t,r)Math.max(a,s))){var c=(e*r-t*n)*(i-o)-(e-n)*(i*s-a*o),l=(e*r-t*n)*(a-s)-(t-r)*(i*s-a*o),u=(e-n)*(a-s)-(t-r)*(i-o);if(u){var d=c/u,f=l/u,p=+d.toFixed(2),m=+f.toFixed(2);if(!(p<+Math.min(e,n).toFixed(2)||p>+Math.max(e,n).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||m<+Math.min(t,r).toFixed(2)||m>+Math.max(t,r).toFixed(2)||m<+Math.min(a,s).toFixed(2)||m>+Math.max(a,s).toFixed(2)))return{x:d,y:f}}}},Fo=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},Io=function(e,t,n,r,i){if(i)return[[`M`,+e+ +i,t],[`l`,n-i*2,0],[`a`,i,i,0,0,1,i,i],[`l`,0,r-i*2],[`a`,i,i,0,0,1,-i,i],[`l`,i*2-n,0],[`a`,i,i,0,0,1,-i,-i],[`l`,0,i*2-r],[`a`,i,i,0,0,1,i,-i],[`z`]];var a=[[`M`,e,t],[`l`,n,0],[`l`,0,r],[`l`,-n,0],[`z`]];return a.parsePathArray=Ao,a},Lo=function(e,t,n,r){return e===null&&(e=t=n=r=0),t===null&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:Io(e,t,n,r),vb:[e,t,n,r].join(` `)}},Ro=function(e,t){return e=Lo(e),t=Lo(t),Fo(t,e.x,e.y)||Fo(t,e.x2,e.y)||Fo(t,e.x,e.y2)||Fo(t,e.x2,e.y2)||Fo(e,t.x,t.y)||Fo(e,t.x2,t.y)||Fo(e,t.x,t.y2)||Fo(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)},zo=function(e,t,n,r,i,a,o,s){V(e)||(e=[e,t,n,r,i,a,o,s]);var c=No.apply(null,e);return Lo(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},Bo=function(e,t,n,r,i,a,o,s,c){var l=1-c,u=l**3,d=l**2,f=c*c,p=f*c,m=u*e+d*3*c*n+l*3*c*c*i+p*o,h=u*t+d*3*c*r+l*3*c*c*a+p*s,g=e+2*c*(n-e)+f*(i-2*n+e),_=t+2*c*(r-t)+f*(a-2*r+t),v=n+2*c*(i-n)+f*(o-2*i+n),y=r+2*c*(a-r)+f*(s-2*a+r),b=l*e+c*n,x=l*t+c*r,S=l*i+c*o,C=l*a+c*s,w=90-Math.atan2(g-v,_-y)*180/Math.PI;return{x:m,y:h,m:{x:g,y:_},n:{x:v,y},start:{x:b,y:x},end:{x:S,y:C},alpha:w}},Vo=function(e,t,n){if(!Ro(zo(e),zo(t)))return n?0:[];for(var r=Mo.apply(0,e),i=Mo.apply(0,t),a=~~(r/8),o=~~(i/8),s=[],c=[],l={},u=n?0:[],d=0;d=0&&x<=1&&S>=0&&S<=1&&(n?u+=1:u.push({x:b.x,y:b.y,t1:x,t2:S}))}}return u},Ho=function(e,t,n){e=Oo(e),t=Oo(t);for(var r,i,a,o,s,c,l,u,d,f,p=n?0:[],m=0,h=e.length;m=0;c--)o=a[c].index,a[c].type===`add`?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}r=e.length;var d=i-r;if(r0)n=go(n,e[r-1],1);else{e[r]=t[r];break}e[r]=[`Q`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;case`T`:e[r]=[`T`].concat(n[0]);break;case`C`:if(n.length<3)if(r>0)n=go(n,e[r-1],2);else{e[r]=t[r];break}e[r]=[`C`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;case`S`:if(n.length<2)if(r>0)n=go(n,e[r-1],1);else{e[r]=t[r];break}e[r]=[`S`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;default:e[r]=t[r]}return e}})),Zo=t((()=>{})),Qo=t((()=>{})),$o,es=t((()=>{$o=function(){function e(e,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=t,this.timeStamp=t.timeStamp}return e.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.toString=function(){return`[Event (type=`+this.type+`)]`},e.prototype.save=function(){},e.prototype.restore=function(){},e}()})),ts=r({default:()=>rs}),ns,rs,is=t((()=>{ns=`*`,rs=function(){function e(){this._events={}}return e.prototype.on=function(e,t,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!n}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r{J(),cs=typeof window<`u`&&window.document!==void 0})),us,ds=t((()=>{R(),is(),ls(),us=function(e){I(t,e);function t(t){var n=e.call(this)||this;return n.destroyed=!1,n.cfg=G(n.getDefaultCfg(),t),n}return t.prototype.getDefaultCfg=function(){return{}},t.prototype.get=function(e){return this.cfg[e]},t.prototype.set=function(e,t){this.cfg[e]=t},t.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},t}(rs)})),fs=r({BotInfo:()=>ws,BrowserInfo:()=>xs,NodeInfo:()=>Ss,ReactNativeInfo:()=>Ts,SearchBotDeviceInfo:()=>Cs,browserName:()=>hs,detect:()=>ps,detectOS:()=>_s,getNodeVersion:()=>vs,parseUserAgent:()=>gs});function ps(e){return e?gs(e):typeof document>`u`&&typeof navigator<`u`&&navigator.product===`ReactNative`?new Ts:typeof navigator<`u`?gs(navigator.userAgent):vs()}function ms(e){return e!==``&&ks.reduce(function(t,n){var r=n[0],i=n[1];if(t)return t;var a=i.exec(e);return!!a&&[r,a]},!1)}function hs(e){var t=ms(e);return t?t[0]:null}function gs(e){var t=ms(e);if(!t)return null;var n=t[0],r=t[1];if(n===`searchbot`)return new ws;var i=r[1]&&r[1].split(`.`).join(`_`).split(`_`).slice(0,3);i?i.length{bs=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r=0?Math.round(e):e%.5==0?Math.floor(e):Math.round(e)}var Ns,Ps,Fs=t((()=>{Ns=typeof Float32Array<`u`?Float32Array:Array,Ps=Math.random,Math.PI/180,180/Math.PI})),Is=r({add:()=>sc,adjoint:()=>Ks,clone:()=>zs,copy:()=>Bs,create:()=>Ls,determinant:()=>qs,equals:()=>fc,exactEquals:()=>dc,frob:()=>oc,fromMat2d:()=>tc,fromMat4:()=>Rs,fromQuat:()=>nc,fromRotation:()=>$s,fromScaling:()=>ec,fromTranslation:()=>Qs,fromValues:()=>Vs,identity:()=>Us,invert:()=>Gs,mul:()=>pc,multiply:()=>Js,multiplyScalar:()=>lc,multiplyScalarAndAdd:()=>uc,normalFromMat4:()=>rc,projection:()=>ic,rotate:()=>Xs,scale:()=>Zs,set:()=>Hs,str:()=>ac,sub:()=>mc,subtract:()=>cc,translate:()=>Ys,transpose:()=>Ws});function Ls(){var e=new Ns(9);return Ns!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function Rs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function zs(e){var t=new Ns(9);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 Bs(e,t){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 Vs(e,t,n,r,i,a,o,s,c){var l=new Ns(9);return l[0]=e,l[1]=t,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=c,l}function Hs(e,t,n,r,i,a,o,s,c,l){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=o,e[6]=s,e[7]=c,e[8]=l,e}function Us(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function Ws(e,t){if(e===t){var n=t[1],r=t[2],i=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=i}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function Gs(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=u*o-s*l,f=-u*a+s*c,p=l*a-o*c,m=n*d+r*f+i*p;return m?(m=1/m,e[0]=d*m,e[1]=(-u*r+i*l)*m,e[2]=(s*r-i*o)*m,e[3]=f*m,e[4]=(u*n-i*c)*m,e[5]=(-s*n+i*a)*m,e[6]=p*m,e[7]=(-l*n+r*c)*m,e[8]=(o*n-r*a)*m,e):null}function Ks(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8];return e[0]=o*u-s*l,e[1]=i*l-r*u,e[2]=r*s-i*o,e[3]=s*c-a*u,e[4]=n*u-i*c,e[5]=i*a-n*s,e[6]=a*l-o*c,e[7]=r*c-n*l,e[8]=n*o-r*a,e}function qs(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*(l*a-o*c)+n*(-l*i+o*s)+r*(c*i-a*s)}function Js(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=n[0],p=n[1],m=n[2],h=n[3],g=n[4],_=n[5],v=n[6],y=n[7],b=n[8];return e[0]=f*r+p*o+m*l,e[1]=f*i+p*s+m*u,e[2]=f*a+p*c+m*d,e[3]=h*r+g*o+_*l,e[4]=h*i+g*s+_*u,e[5]=h*a+g*c+_*d,e[6]=v*r+y*o+b*l,e[7]=v*i+y*s+b*u,e[8]=v*a+y*c+b*d,e}function Ys(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=n[0],p=n[1];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e[6]=f*r+p*o+l,e[7]=f*i+p*s+u,e[8]=f*a+p*c+d,e}function Xs(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=Math.sin(n),p=Math.cos(n);return e[0]=p*r+f*o,e[1]=p*i+f*s,e[2]=p*a+f*c,e[3]=p*o-f*r,e[4]=p*s-f*i,e[5]=p*c-f*a,e[6]=l,e[7]=u,e[8]=d,e}function Zs(e,t,n){var r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Qs(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function $s(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function ec(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function tc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e}function nc(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,d=r*s,f=i*o,p=i*s,m=i*c,h=a*o,g=a*s,_=a*c;return e[0]=1-d-m,e[3]=u-_,e[6]=f+g,e[1]=u+_,e[4]=1-l-m,e[7]=p-h,e[2]=f-g,e[5]=p+h,e[8]=1-l-d,e}function rc(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13],g=t[14],_=t[15],v=n*s-r*o,y=n*c-i*o,b=n*l-a*o,x=r*c-i*s,S=r*l-a*s,C=i*l-a*c,w=u*h-d*m,T=u*g-f*m,E=u*_-p*m,D=d*g-f*h,O=d*_-p*h,k=f*_-p*g,A=v*k-y*O+b*D+x*E-S*T+C*w;return A?(A=1/A,e[0]=(s*k-c*O+l*D)*A,e[1]=(c*E-o*k-l*T)*A,e[2]=(o*O-s*E+l*w)*A,e[3]=(i*O-r*k-a*D)*A,e[4]=(n*k-i*E+a*T)*A,e[5]=(r*E-n*O-a*w)*A,e[6]=(h*C-g*S+_*x)*A,e[7]=(g*b-m*C-_*y)*A,e[8]=(m*S-h*b+_*v)*A,e):null}function ic(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}function ac(e){return`mat3(`+e[0]+`, `+e[1]+`, `+e[2]+`, `+e[3]+`, `+e[4]+`, `+e[5]+`, `+e[6]+`, `+e[7]+`, `+e[8]+`)`}function oc(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]+e[3]*e[3]+e[4]*e[4]+e[5]*e[5]+e[6]*e[6]+e[7]*e[7]+e[8]*e[8])}function sc(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e}function cc(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}function lc(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e}function uc(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e}function dc(e,t){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]}function fc(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],d=t[0],f=t[1],p=t[2],m=t[3],h=t[4],g=t[5],_=t[6],v=t[7],y=t[8];return Math.abs(n-d)<=1e-6*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-f)<=1e-6*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-p)<=1e-6*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-m)<=1e-6*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(o-h)<=1e-6*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-g)<=1e-6*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(c-_)<=1e-6*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(l-v)<=1e-6*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-y)<=1e-6*Math.max(1,Math.abs(u),Math.abs(y))}var pc,mc,hc=t((()=>{Fs(),pc=Js,mc=cc})),gc=r({add:()=>Cc,angle:()=>$c,bezier:()=>Gc,ceil:()=>Dc,clone:()=>vc,copy:()=>xc,create:()=>_c,cross:()=>Vc,dist:()=>sl,distance:()=>Pc,div:()=>ol,divide:()=>Ec,dot:()=>Bc,equals:()=>rl,exactEquals:()=>nl,floor:()=>Oc,forEach:()=>dl,fromValues:()=>bc,hermite:()=>Wc,inverse:()=>Rc,len:()=>ll,length:()=>yc,lerp:()=>Hc,max:()=>Ac,min:()=>kc,mul:()=>al,multiply:()=>Tc,negate:()=>Lc,normalize:()=>zc,random:()=>Kc,rotateX:()=>Xc,rotateY:()=>Zc,rotateZ:()=>Qc,round:()=>jc,scale:()=>Mc,scaleAndAdd:()=>Nc,set:()=>Sc,slerp:()=>Uc,sqrDist:()=>cl,sqrLen:()=>ul,squaredDistance:()=>Fc,squaredLength:()=>Ic,str:()=>tl,sub:()=>il,subtract:()=>wc,transformMat3:()=>Jc,transformMat4:()=>qc,transformQuat:()=>Yc,zero:()=>el});function _c(){var e=new Ns(3);return Ns!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function vc(e){var t=new Ns(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function yc(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function bc(e,t,n){var r=new Ns(3);return r[0]=e,r[1]=t,r[2]=n,r}function xc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Sc(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function Cc(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function wc(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function Tc(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function Ec(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function Dc(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}function Oc(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}function kc(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function Ac(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function jc(e,t){return e[0]=Ms(t[0]),e[1]=Ms(t[1]),e[2]=Ms(t[2]),e}function Mc(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function Nc(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function Pc(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function Fc(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function Ic(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function Lc(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function Rc(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function zc(e,t){var n=t[0],r=t[1],i=t[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function Bc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Vc(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],c=n[2];return e[0]=i*c-a*s,e[1]=a*o-r*c,e[2]=r*s-i*o,e}function Hc(e,t,n,r){var i=t[0],a=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e[2]=o+r*(n[2]-o),e}function Uc(e,t,n,r){var i=Math.acos(Math.min(Math.max(Bc(t,n),-1),1)),a=Math.sin(i),o=Math.sin((1-r)*i)/a,s=Math.sin(r*i)/a;return e[0]=o*t[0]+s*n[0],e[1]=o*t[1]+s*n[1],e[2]=o*t[2]+s*n[2],e}function Wc(e,t,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,c=o*(a-2)+a,l=o*(a-1),u=o*(3-2*a);return e[0]=t[0]*s+n[0]*c+r[0]*l+i[0]*u,e[1]=t[1]*s+n[1]*c+r[1]*l+i[1]*u,e[2]=t[2]*s+n[2]*c+r[2]*l+i[2]*u,e}function Gc(e,t,n,r,i,a){var o=1-a,s=o*o,c=a*a,l=s*o,u=3*a*s,d=3*c*o,f=c*a;return e[0]=t[0]*l+n[0]*u+r[0]*d+i[0]*f,e[1]=t[1]*l+n[1]*u+r[1]*d+i[1]*f,e[2]=t[2]*l+n[2]*u+r[2]*d+i[2]*f,e}function Kc(e,t){t=t===void 0?1:t;var n=Ps()*2*Math.PI,r=Ps()*2-1,i=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*i,e[1]=Math.sin(n)*i,e[2]=r*t,e}function qc(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o||=1,e[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,e[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,e[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,e}function Jc(e,t,n){var r=t[0],i=t[1],a=t[2];return e[0]=r*n[0]+i*n[3]+a*n[6],e[1]=r*n[1]+i*n[4]+a*n[7],e[2]=r*n[2]+i*n[5]+a*n[8],e}function Yc(e,t,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=t[0],c=t[1],l=t[2],u=i*l-a*c,d=a*s-r*l,f=r*c-i*s;return u+=u,d+=d,f+=f,e[0]=s+o*u+i*f-a*d,e[1]=c+o*d+a*u-r*f,e[2]=l+o*f+r*d-i*u,e}function Xc(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function Zc(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function Qc(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function $c(e,t){var n=e[0],r=e[1],i=e[2],a=t[0],o=t[1],s=t[2],c=Math.sqrt((n*n+r*r+i*i)*(a*a+o*o+s*s)),l=c&&Bc(e,t)/c;return Math.acos(Math.min(Math.max(l,-1),1))}function el(e){return e[0]=0,e[1]=0,e[2]=0,e}function tl(e){return`vec3(`+e[0]+`, `+e[1]+`, `+e[2]+`)`}function nl(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function rl(e,t){var n=e[0],r=e[1],i=e[2],a=t[0],o=t[1],s=t[2];return Math.abs(n-a)<=1e-6*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=1e-6*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=1e-6*Math.max(1,Math.abs(i),Math.abs(s))}var il,al,ol,sl,cl,ll,ul,dl,fl=t((()=>{Fs(),il=wc,al=Tc,ol=Ec,sl=Pc,cl=Fc,ll=yc,ul=Ic,dl=function(){var e=_c();return function(t,n,r,i,a,o){var s,c;for(n||=3,r||=0,c=i?Math.min(i*n+r,t.length):t.length,s=r;syl,angle:()=>Kl,ceil:()=>Cl,clone:()=>hl,copy:()=>_l,create:()=>ml,cross:()=>Rl,dist:()=>nu,distance:()=>Al,div:()=>tu,divide:()=>Sl,dot:()=>Ll,equals:()=>Zl,exactEquals:()=>Xl,floor:()=>wl,forEach:()=>au,fromValues:()=>gl,inverse:()=>Fl,len:()=>Ql,length:()=>Ml,lerp:()=>zl,max:()=>El,min:()=>Tl,mul:()=>eu,multiply:()=>xl,negate:()=>Pl,normalize:()=>Il,random:()=>Bl,rotate:()=>Gl,round:()=>Dl,scale:()=>Ol,scaleAndAdd:()=>kl,set:()=>vl,signedAngle:()=>ql,sqrDist:()=>ru,sqrLen:()=>iu,squaredDistance:()=>jl,squaredLength:()=>Nl,str:()=>Yl,sub:()=>$l,subtract:()=>bl,transformMat2:()=>Vl,transformMat2d:()=>Hl,transformMat3:()=>Ul,transformMat4:()=>Wl,zero:()=>Jl});function ml(){var e=new Ns(2);return Ns!=Float32Array&&(e[0]=0,e[1]=0),e}function hl(e){var t=new Ns(2);return t[0]=e[0],t[1]=e[1],t}function gl(e,t){var n=new Ns(2);return n[0]=e,n[1]=t,n}function _l(e,t){return e[0]=t[0],e[1]=t[1],e}function vl(e,t,n){return e[0]=t,e[1]=n,e}function yl(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function bl(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function xl(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Sl(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Cl(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e}function wl(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e}function Tl(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function El(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}function Dl(e,t){return e[0]=Ms(t[0]),e[1]=Ms(t[1]),e}function Ol(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function kl(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Al(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)}function jl(e,t){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function Ml(e){var t=e[0],n=e[1];return Math.sqrt(t*t+n*n)}function Nl(e){var t=e[0],n=e[1];return t*t+n*n}function Pl(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Fl(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}function Il(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e}function Ll(e,t){return e[0]*t[0]+e[1]*t[1]}function Rl(e,t,n){var r=t[0]*n[1]-t[1]*n[0];return e[0]=e[1]=0,e[2]=r,e}function zl(e,t,n,r){var i=t[0],a=t[1];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e}function Bl(e,t){t=t===void 0?1:t;var n=Ps()*2*Math.PI;return e[0]=Math.cos(n)*t,e[1]=Math.sin(n)*t,e}function Vl(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i,e[1]=n[1]*r+n[3]*i,e}function Hl(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Ul(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[3]*i+n[6],e[1]=n[1]*r+n[4]*i+n[7],e}function Wl(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e}function Gl(e,t,n,r){var i=t[0]-n[0],a=t[1]-n[1],o=Math.sin(r),s=Math.cos(r);return e[0]=i*s-a*o+n[0],e[1]=i*o+a*s+n[1],e}function Kl(e,t){var n=e[0],r=e[1],i=t[0],a=t[1];return Math.abs(Math.atan2(r*i-n*a,n*i+r*a))}function ql(e,t){var n=e[0],r=e[1],i=t[0],a=t[1];return Math.atan2(n*a-r*i,n*i+r*a)}function Jl(e){return e[0]=0,e[1]=0,e}function Yl(e){return`vec2(`+e[0]+`, `+e[1]+`)`}function Xl(e,t){return e[0]===t[0]&&e[1]===t[1]}function Zl(e,t){var n=e[0],r=e[1],i=t[0],a=t[1];return Math.abs(n-i)<=1e-6*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=1e-6*Math.max(1,Math.abs(r),Math.abs(a))}var Ql,$l,eu,tu,nu,ru,iu,au,ou=t((()=>{Fs(),Ql=Ml,$l=bl,eu=xl,tu=Sl,nu=Al,ru=jl,iu=Nl,au=function(){var e=ml();return function(t,n,r,i,a,o){var s,c;for(n||=2,r||=0,c=i?Math.min(i*n+r,t.length):t.length,s=r;s{hc(),ou(),fl()})),cu=r({angleTo:()=>hu,direction:()=>mu,leftRotate:()=>uu,leftScale:()=>du,leftTranslate:()=>lu,transform:()=>pu,vertical:()=>gu});function lu(e,t,n){var r=[0,0,0,0,0,0,0,0,0];return Qs(r,n),Js(e,r,t)}function uu(e,t,n){var r=[0,0,0,0,0,0,0,0,0];return $s(r,n),Js(e,r,t)}function du(e,t,n){var r=[0,0,0,0,0,0,0,0,0];return ec(r,n),Js(e,r,t)}function fu(e,t,n){return Js(e,n,t)}function pu(e,t){for(var n=e?[].concat(e):[1,0,0,0,1,0,0,0,1],r=0,i=t.length;r=0;return n?i?Math.PI*2-r:r:i?r:Math.PI*2-r}function gu(e,t,n){return n?(e[0]=t[1],e[1]=-1*t[0]):(e[0]=-1*t[1],e[1]=t[0]),e}var _u=t((()=>{su()})),vu=r({ext:()=>cu,mat3:()=>Is,vec2:()=>pl,vec3:()=>gc}),yu=t((()=>{su(),_u()}));function bu(e,t){var n=[],r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],d=e[8],f=t[0],p=t[1],m=t[2],h=t[3],g=t[4],_=t[5],v=t[6],y=t[7],b=t[8];return n[0]=f*r+p*o+m*l,n[1]=f*i+p*s+m*u,n[2]=f*a+p*c+m*d,n[3]=h*r+g*o+_*l,n[4]=h*i+g*s+_*u,n[5]=h*a+g*c+_*d,n[6]=v*r+y*o+b*l,n[7]=v*i+y*s+b*u,n[8]=v*a+y*c+b*d,n}function xu(e,t){var n=[],r=t[0],i=t[1];return n[0]=e[0]*r+e[3]*i+e[6],n[1]=e[1]*r+e[4]*i+e[7],n}function Su(e){var t=[],n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],d=u*o-s*l,f=-u*a+s*c,p=l*a-o*c,m=n*d+r*f+i*p;return m?(m=1/m,t[0]=d*m,t[1]=(-u*r+i*l)*m,t[2]=(s*r-i*o)*m,t[3]=f*m,t[4]=(u*n-i*c)*m,t[5]=(-s*n+i*a)*m,t[6]=p*m,t[7]=(-l*n+r*c)*m,t[8]=(o*n-r*a)*m,t):null}var Cu=t((()=>{}));function wu(e){for(var t=[],n=0;ne.delay&&H(t.toAttrs,function(t,n){a.call(e.toAttrs,n)&&(delete e.toAttrs[n],delete e.fromAttrs[n])})}),e}var Ou,ku,Au,ju,Mu,Nu,Pu,Fu=t((()=>{R(),J(),yu(),ls(),Cu(),ds(),Ou=pu,ku=`matrix`,Au=[`zIndex`,`capture`,`visible`,`type`],ju=[`repeat`],Mu=`:`,Nu=`*`,Pu=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;n.attrs={};var r=n.getDefaultAttrs();return G(r,t.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(e){},t.prototype.initAttrs=function(e){},t.prototype.initAnimate=function(){this.set(`animable`,!0),this.set(`animating`,!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get(`parent`)},t.prototype.getCanvas=function(){return this.get(`canvas`)},t.prototype.attr=function(){for(var e,t=[],n=0;n0?n=Du(n,_):t.addAnimator(this),n.push(_),this.set(`animations`,n),this.set(`_pause`,{isPaused:!1})}},t.prototype.stopAnimate=function(e){var t=this;e===void 0&&(e=!0),H(this.get(`animations`),function(n){e&&(n.onFrame?t.attr(n.onFrame(1)):t.attr(n.toAttrs)),n.callback&&n.callback()}),this.set(`animating`,!1),this.set(`animations`,[])},t.prototype.pauseAnimate=function(){var e=this.get(`timeline`),t=this.get(`animations`),n=e.getTime();return H(t,function(e){e._paused=!0,e._pauseTime=n,e.pauseCallback&&e.pauseCallback()}),this.set(`_pause`,{isPaused:!0,pauseTime:n}),this},t.prototype.resumeAnimate=function(){var e=this.get(`timeline`).getTime(),t=this.get(`animations`),n=this.get(`_pause`).pauseTime;return H(t,function(t){t.startTime+=e-n,t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()}),this.set(`_pause`,{isPaused:!1}),this.set(`animations`,t),this},t.prototype.emitDelegation=function(e,t){var n=this,r=t.propagationPath;this.getEvents();var i;e===`mouseenter`?i=t.fromShape:e===`mouseleave`&&(i=t.toShape);for(var a=function(e){var a=r[e],s=a.get(`name`);if(s){if((a.isGroup()||a.isCanvas&&a.isCanvas())&&i&&os(a,i))return`break`;V(s)?H(s,function(e){n.emitDelegateEvent(a,e,t)}):o.emitDelegateEvent(a,s,t)}},o=this,s=0;s{R(),Fu(),ls(),Bu={},Vu=`_INDEX`,Hu=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var e=1/0,t=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(e){return e.get(`visible`)&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return i.length>0?H(i,function(i){var a=i.getBBox(),o=a.minX,s=a.maxX,c=a.minY,l=a.maxY;ot&&(t=s),cr&&(r=l)}):(e=0,t=0,n=0,r=0),{x:e,y:n,minX:e,minY:n,maxX:t,maxY:r,width:t-e,height:r-n}},t.prototype.getCanvasBBox=function(){var e=1/0,t=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(e){return e.get(`visible`)&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return i.length>0?H(i,function(i){var a=i.getCanvasBBox(),o=a.minX,s=a.maxX,c=a.minY,l=a.maxY;ot&&(t=s),cr&&(r=l)}):(e=0,t=0,n=0,r=0),{x:e,y:n,minX:e,minY:n,maxX:t,maxY:r,width:t-e,height:r-n}},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.children=[],t},t.prototype.onAttrChange=function(t,n,r){if(e.prototype.onAttrChange.call(this,t,n,r),t===`matrix`){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},t.prototype.applyMatrix=function(t){var n=this.getTotalMatrix();e.prototype.applyMatrix.call(this,t);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},t.prototype._applyChildrenMarix=function(e){H(this.getChildren(),function(t){t.applyMatrix(e)})},t.prototype.addShape=function(){var e=[...arguments],t=e[0],n=e[1];ln(t)?n=t:n.type=t;var r=Bu[n.type];r||(r=ji(n.type),Bu[n.type]=r);var i=new(this.getShapeBase())[r](n);return this.add(i),i},t.prototype.addGroup=function(){var e=[...arguments],t=e[0],n=e[1],r;if(z(t))r=n?new t(n):new t({parent:this});else{var i=t||{};r=new(this.getGroupBase())(i)}return this.add(r),r},t.prototype.getCanvas=function(){return this.isCanvas()?this:this.get(`canvas`)},t.prototype.getShape=function(e,t,n){if(!ss(this))return null;var r=this.getChildren(),i;if(this.isCanvas())i=this._findShape(r,e,t,n);else{var a=[e,t,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(i=this._findShape(r,a[0],a[1],n))}return i},t.prototype._findShape=function(e,t,n,r){for(var i=null,a=e.length-1;a>=0;a--){var o=e[a];if(ss(o)&&(o.isGroup()?i=o.getShape(t,n,r):o.isHit(t,n)&&(i=o)),i)break}return i},t.prototype.add=function(e){var t=this.getCanvas(),n=this.getChildren(),r=this.get(`timeline`),i=e.getParent();i&&Ru(i,e,!1),e.set(`parent`,this),t&&Iu(e,t),r&&Lu(e,r),n.push(e),e.onCanvasChange(`add`),this._applyElementMatrix(e)},t.prototype._applyElementMatrix=function(e){var t=this.getTotalMatrix();t&&e.applyMatrix(t)},t.prototype.getChildren=function(){return this.get(`children`)||[]},t.prototype.sort=function(){var e=this.getChildren();H(e,function(e,t){return e[Vu]=t,e}),e.sort(zu(function(e,t){return e.get(`zIndex`)-t.get(`zIndex`)})),this.onCanvasChange(`sort`)},t.prototype.clear=function(){if(this.set(`clearing`,!0),!this.destroyed){for(var e=this.getChildren(),t=e.length-1;t>=0;t--)e[t].destroy();this.set(`children`,[]),this.onCanvasChange(`clear`),this.set(`clearing`,!1)}},t.prototype.destroy=function(){this.get(`destroyed`)||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var e=this.getChildren();return this.getChildByIndex(e.length-1)},t.prototype.getChildByIndex=function(e){return this.getChildren()[e]},t.prototype.getCount=function(){return this.getChildren().length},t.prototype.contain=function(e){return this.getChildren().indexOf(e)>-1},t.prototype.removeChild=function(e,t){t===void 0&&(t=!0),this.contain(e)&&e.remove(t)},t.prototype.findAll=function(e){var t=[];return H(this.getChildren(),function(n){e(n)&&t.push(n),n.isGroup()&&(t=t.concat(n.findAll(e)))}),t},t.prototype.find=function(e){var t=null;return H(this.getChildren(),function(n){if(e(n)?t=n:n.isGroup()&&(t=n.find(e)),t)return!1}),t},t.prototype.findById=function(e){return this.find(function(t){return t.get(`id`)===e})},t.prototype.findByClassName=function(e){return this.find(function(t){return t.get(`className`)===e})},t.prototype.findAllByName=function(e){return this.findAll(function(t){return t.get(`name`)===e})},t}(Pu)}));function Wu(){return od||=(ld(Gu),cd.now()+sd)}function Gu(){od=0}function Ku(){this._call=this._time=this._next=null}function qu(e,t,n){var r=new Ku;return r.restart(e,t,n),r}function Ju(){Wu(),++$u;for(var e=rd,t;e;)(t=od-e._time)>=0&&e._call.call(null,t),e=e._next;--$u}function Yu(){od=(ad=cd.now())+sd,$u=ed=0;try{Ju()}finally{$u=0,Zu(),od=0}}function Xu(){var e=cd.now(),t=e-ad;t>nd&&(sd-=t,ad=e)}function Zu(){for(var e,t=rd,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:rd=n);id=e,Qu(r)}function Qu(e){$u||(ed&&=clearTimeout(ed),e-od>24?(e<1/0&&(ed=setTimeout(Yu,e-cd.now()-sd)),td&&=clearInterval(td)):(td||=(ad=cd.now(),setInterval(Xu,nd)),$u=1,ld(Yu)))}var $u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud=t((()=>{$u=0,ed=0,td=0,nd=1e3,ad=0,od=0,sd=0,cd=typeof performance==`object`&&performance.now?performance:Date,ld=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},Ku.prototype=qu.prototype={constructor:Ku,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Wu():+n)+(t==null?0:+t),!this._next&&id!==this&&(id?id._next=this:rd=this,id=this),this._call=e,this._time=n,Qu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qu())}}})),dd=t((()=>{ud()}));function fd(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var md=t((()=>{}));function hd(){}function gd(){return this.rgb().formatHex()}function _d(){return this.rgb().formatHex8()}function vd(){return Nd(this).formatHsl()}function yd(){return this.rgb().formatRgb()}function bd(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Wd.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?xd(t):n===3?new Td(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Sd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Sd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Gd.exec(e))?new Td(t[1],t[2],t[3],1):(t=Kd.exec(e))?new Td(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qd.exec(e))?Sd(t[1],t[2],t[3],t[4]):(t=Jd.exec(e))?Sd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Yd.exec(e))?Md(t[1],t[2]/100,t[3]/100,1):(t=Xd.exec(e))?Md(t[1],t[2]/100,t[3]/100,t[4]):Zd.hasOwnProperty(e)?xd(Zd[e]):e===`transparent`?new Td(NaN,NaN,NaN,0):null}function xd(e){return new Td(e>>16&255,e>>8&255,e&255,1)}function Sd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Td(e,t,n,r)}function Cd(e){return e instanceof hd||(e=bd(e)),e?(e=e.rgb(),new Td(e.r,e.g,e.b,e.opacity)):new Td}function wd(e,t,n,r){return arguments.length===1?Cd(e):new Td(e,t,n,r??1)}function Td(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ed(){return`#${jd(this.r)}${jd(this.g)}${jd(this.b)}`}function Dd(){return`#${jd(this.r)}${jd(this.g)}${jd(this.b)}${jd((isNaN(this.opacity)?1:this.opacity)*255)}`}function Od(){let e=kd(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Ad(this.r)}, ${Ad(this.g)}, ${Ad(this.b)}${e===1?`)`:`, ${e})`}`}function kd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ad(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function jd(e){return e=Ad(e),(e<16?`0`:``)+e.toString(16)}function Md(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Fd(e,t,n,r)}function Nd(e){if(e instanceof Fd)return new Fd(e.h,e.s,e.l,e.opacity);if(e instanceof hd||(e=bd(e)),!e)return new Fd;if(e instanceof Fd)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&c<1?0:o,new Fd(o,s,c,e.opacity)}function Pd(e,t,n,r){return arguments.length===1?Nd(e):new Fd(e,t,n,r??1)}function Fd(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Id(e){return e=(e||0)%360,e<0?e+360:e}function Ld(e){return Math.max(0,Math.min(1,e||0))}function Rd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd=t((()=>{md(),zd=.7,Bd=1/zd,Vd=`\\s*([+-]?\\d+)\\s*`,Hd=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Ud=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Wd=/^#([0-9a-f]{3,8})$/,Gd=RegExp(`^rgb\\(${Vd},${Vd},${Vd}\\)$`),Kd=RegExp(`^rgb\\(${Ud},${Ud},${Ud}\\)$`),qd=RegExp(`^rgba\\(${Vd},${Vd},${Vd},${Hd}\\)$`),Jd=RegExp(`^rgba\\(${Ud},${Ud},${Ud},${Hd}\\)$`),Yd=RegExp(`^hsl\\(${Hd},${Ud},${Ud}\\)$`),Xd=RegExp(`^hsla\\(${Hd},${Ud},${Ud},${Hd}\\)$`),Zd={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},fd(hd,bd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gd,formatHex:gd,formatHex8:_d,formatHsl:vd,formatRgb:yd,toString:yd}),fd(Td,wd,pd(hd,{brighter(e){return e=e==null?Bd:Bd**+e,new Td(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?zd:zd**+e,new Td(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Td(Ad(this.r),Ad(this.g),Ad(this.b),kd(this.opacity))},displayable(){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:Ed,formatHex:Ed,formatHex8:Dd,formatRgb:Od,toString:Od})),fd(Fd,Pd,pd(hd,{brighter(e){return e=e==null?Bd:Bd**+e,new Fd(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?zd:zd**+e,new Fd(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Td(Rd(e>=240?e-240:e+120,i,r),Rd(e,i,r),Rd(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Fd(Id(this.h),Ld(this.s),Ld(this.l),kd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=kd(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Id(this.h)}, ${Ld(this.s)*100}%, ${Ld(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),$d=t((()=>{Qd(),md()})),ef=t((()=>{})),tf=t((()=>{ef()})),nf,rf=t((()=>{nf=e=>()=>e}));function af(e,t){return function(n){return e+n*t}}function of(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function sf(e){return(e=+e)==1?cf:function(t,n){return n-t?of(t,n,e):nf(isNaN(t)?n:t)}}function cf(e,t){var n=t-e;return n?af(e,n):nf(isNaN(e)?t:e)}var lf=t((()=>{rf()})),uf,df=t((()=>{$d(),ef(),tf(),lf(),uf=(function e(t){var n=sf(t);function r(e,t){var r=n((e=wd(e)).r,(t=wd(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=cf(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function ff(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i{}));function hf(e,t){return(pf(t)?ff:gf)(e,t)}function gf(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o{jf(),mf()}));function vf(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var yf=t((()=>{}));function bf(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var xf=t((()=>{}));function Sf(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Af(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Cf=t((()=>{jf()}));function wf(e){return function(){return e}}function Tf(e){return function(t){return e(t)+``}}function Ef(e,t){var n=Df.lastIndex=Of.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Df.exec(e))&&(i=Of.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:bf(r,i)})),n=Of.lastIndex;return n{xf(),Df=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Of=new RegExp(Df.source,`g`)}));function Af(e,t){var n=typeof t,r;return t==null||n===`boolean`?nf(t):(n===`number`?bf:n===`string`?(r=bd(t))?(t=r,uf):Ef:t instanceof bd?uf:t instanceof Date?vf:pf(t)?ff:Array.isArray(t)?gf:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Sf:bf)(e,t)}var jf=t((()=>{$d(),df(),_f(),yf(),xf(),Cf(),kf(),rf(),mf()})),Mf=t((()=>{jf(),_f(),ef(),tf(),yf(),lf(),xf(),mf(),Cf(),kf(),df(),$d()}));function Nf(e){return+e}var Pf=t((()=>{}));function Ff(e){return e*e}function If(e){return e*(2-e)}function Lf(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var Rf=t((()=>{}));function zf(e){return e*e*e}function Bf(e){return--e*e*e+1}function Vf(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Hf=t((()=>{})),Uf,Wf,Gf,Kf,qf=t((()=>{Uf=3,Wf=(function e(t){t=+t;function n(e){return e**+t}return n.exponent=e,n})(Uf),Gf=(function e(t){t=+t;function n(e){return 1-(1-e)**t}return n.exponent=e,n})(Uf),Kf=(function e(t){t=+t;function n(e){return((e*=2)<=1?e**+t:2-(2-e)**t)/2}return n.exponent=e,n})(Uf)}));function Jf(e){return+e==1?1:1-Math.cos(e*Qf)}function Yf(e){return Math.sin(e*Qf)}function Xf(e){return(1-Math.cos(Zf*e))/2}var Zf,Qf,$f=t((()=>{Zf=Math.PI,Qf=Zf/2}));function ep(e){return(2**(-10*e)-.0009765625)*1.0009775171065494}var tp=t((()=>{}));function np(e){return ep(1-e)}function rp(e){return 1-ep(e)}function ip(e){return((e*=2)<=1?ep(1-e):2-ep(e-1))/2}var ap=t((()=>{tp()}));function op(e){return 1-Math.sqrt(1-e*e)}function sp(e){return Math.sqrt(1- --e*e)}function cp(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var lp=t((()=>{}));function up(e){return 1-dp(1-e)}function dp(e){return(e=+e){pp=4/11,mp=6/11,hp=8/11,gp=3/4,_p=9/11,vp=10/11,yp=15/16,bp=21/22,xp=63/64,Sp=1/pp/pp})),wp,Tp,Ep,Dp,Op=t((()=>{wp=1.70158,Tp=(function e(t){t=+t;function n(e){return(e=+e)*e*(t*(e-1)+e)}return n.overshoot=e,n})(wp),Ep=(function e(t){t=+t;function n(e){return--e*e*((e+1)*t+e)+1}return n.overshoot=e,n})(wp),Dp=(function e(t){t=+t;function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return n.overshoot=e,n})(wp)})),kp,Ap,jp,Mp,Np,Pp,Fp=t((()=>{tp(),kp=2*Math.PI,Ap=1,jp=.3,Mp=(function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=kp);function i(e){return t*ep(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*kp)},i.period=function(n){return e(t,n)},i})(Ap,jp),Np=(function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=kp);function i(e){return 1-t*ep(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*kp)},i.period=function(n){return e(t,n)},i})(Ap,jp),Pp=(function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=kp);function i(e){return((e=e*2-1)<0?t*ep(-e)*Math.sin((r-e)/n):2-t*ep(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*kp)},i.period=function(n){return e(t,n)},i})(Ap,jp)})),Ip=r({easeBack:()=>Dp,easeBackIn:()=>Tp,easeBackInOut:()=>Dp,easeBackOut:()=>Ep,easeBounce:()=>dp,easeBounceIn:()=>up,easeBounceInOut:()=>fp,easeBounceOut:()=>dp,easeCircle:()=>cp,easeCircleIn:()=>op,easeCircleInOut:()=>cp,easeCircleOut:()=>sp,easeCubic:()=>Vf,easeCubicIn:()=>zf,easeCubicInOut:()=>Vf,easeCubicOut:()=>Bf,easeElastic:()=>Np,easeElasticIn:()=>Mp,easeElasticInOut:()=>Pp,easeElasticOut:()=>Np,easeExp:()=>ip,easeExpIn:()=>np,easeExpInOut:()=>ip,easeExpOut:()=>rp,easeLinear:()=>Nf,easePoly:()=>Kf,easePolyIn:()=>Wf,easePolyInOut:()=>Kf,easePolyOut:()=>Gf,easeQuad:()=>Lf,easeQuadIn:()=>Ff,easeQuadInOut:()=>Lf,easeQuadOut:()=>If,easeSin:()=>Xf,easeSinIn:()=>Jf,easeSinInOut:()=>Xf,easeSinOut:()=>Yf}),Lp=t((()=>{Pf(),Rf(),Hf(),qf(),$f(),ap(),lp(),Cp(),Op(),Fp()}));function Rp(e){return Bp[e.toLowerCase()]||Ip[e]}function zp(e,t){Bp[e.toLowerCase()]=t}var Bp,Vp=t((()=>{Lp(),Bp={}})),Hp,Up,Wp=t((()=>{Hp=function(e){return[`fill`,`stroke`,`fillStyle`,`strokeStyle`].includes(e)},Up=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)}}));function Gp(e,t,n){var r={},i=t.fromAttrs,a=t.toAttrs;if(!e.destroyed){var o;for(var s in a)if(!Oa(i[s],a[s]))if(s===`path`){var c=a[s],l=i[s];c.length>l.length?(c=xo(a[s]),l=xo(i[s]),l=Jo(l,c),l=Yo(l,c),t.fromAttrs.path=l,t.toAttrs.path=c):t.pathFormatted||=(c=xo(a[s]),l=xo(i[s]),l=Yo(l,c),t.fromAttrs.path=l,t.toAttrs.path=c,!0),r[s]=[];for(var u=0;u{J(),dd(),Mf(),Vp(),Xo(),Wp(),qp=[1,0,0,0,1,0,0,0,1],Jp=function(){function e(e){this.animators=[],this.current=0,this.timer=null,this.canvas=e}return e.prototype.initTimer=function(){var e=this,t=!1,n,r,i;this.timer=qu(function(a){if(e.current=a,e.animators.length>0){for(var o=e.animators.length-1;o>=0;o--){if(n=e.animators[o],n.destroyed){e.removeAnimator(o);continue}if(!n.isAnimatePaused()){r=n.get(`animations`);for(var s=r.length-1;s>=0;s--)i=r[s],t=Kp(n,i,a),t&&(r.splice(s,1),t=!1,i.callback&&i.callback())}r.length===0&&e.removeAnimator(o)}e.canvas.get(`autoDraw`)||e.canvas.draw()}})},e.prototype.addAnimator=function(e){this.animators.push(e)},e.prototype.removeAnimator=function(e){this.animators.splice(e,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(t){t.stopAnimate(e)}),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e}()}));function Xp(e,t,n){n.name=t,n.target=e,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}function Zp(e,t,n){if(n.bubbles){var r=void 0,i=!1;if(t===`mouseenter`?(r=n.fromShape,i=!0):t===`mouseleave`&&(i=!0,r=n.toShape),e.isCanvas()&&i)return;if(r&&os(e,r)){n.bubbles=!1;return}n.name=t,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}}var Qp,$p,em,tm,nm=t((()=>{es(),ls(),Qp=40,$p=0,em=[`mousedown`,`mouseup`,`dblclick`,`mouseout`,`mouseover`,`mousemove`,`mouseleave`,`mouseenter`,`touchstart`,`touchmove`,`touchend`,`dragenter`,`dragover`,`dragleave`,`drop`,`contextmenu`,`mousewheel`],tm=function(){function e(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(e){var n=e.type;t._triggerEvent(n,e)},this._onDocumentMove=function(e){if(t.canvas.get(`el`)!==e.target&&(t.dragging||t.currentShape)){var n=t._getPointInfo(e);t.dragging&&t._emitEvent(`drag`,e,n,t.draggingShape)}},this._onDocumentMouseUp=function(e){if(t.canvas.get(`el`)!==e.target&&t.dragging){var n=t._getPointInfo(e);t.draggingShape&&t._emitEvent(`drop`,e,n,null),t._emitEvent(`dragend`,e,n,t.draggingShape),t._afterDrag(t.draggingShape,n,e)}},this.canvas=e.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var e=this,t=this.canvas.get(`el`);H(em,function(n){t.addEventListener(n,e._eventCallback)}),document&&(document.addEventListener(`mousemove`,this._onDocumentMove),document.addEventListener(`mouseup`,this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var e=this,t=this.canvas.get(`el`);H(em,function(n){t.removeEventListener(n,e._eventCallback)}),document&&(document.removeEventListener(`mousemove`,this._onDocumentMove),document.removeEventListener(`mouseup`,this._onDocumentMouseUp))},e.prototype._getEventObj=function(e,t,n,r,i,a){var o=new $o(e,t);return o.fromShape=i,o.toShape=a,o.x=n.x,o.y=n.y,o.clientX=n.clientX,o.clientY=n.clientY,o.propagationPath.push(r),o},e.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},e.prototype._getPointInfo=function(e){var t=this.canvas,n=t.getClientByEvent(e),r=t.getPointByEvent(e);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},e.prototype._triggerEvent=function(e,t){var n=this._getPointInfo(t),r=this._getShape(n,t),i=this[`_on`+e],a=!1;if(i)i.call(this,n,r,t);else{var o=this.currentShape;e===`mouseenter`||e===`dragenter`||e===`mouseover`?(this._emitEvent(e,t,n,null,null,r),r&&this._emitEvent(e,t,n,r,null,r),e===`mouseenter`&&this.draggingShape&&this._emitEvent(`dragenter`,t,n,null)):e===`mouseleave`||e===`dragleave`||e===`mouseout`?(a=!0,o&&this._emitEvent(e,t,n,o,o,null),this._emitEvent(e,t,n,null,o,null),e===`mouseleave`&&this.draggingShape&&this._emitEvent(`dragleave`,t,n,null)):this._emitEvent(e,t,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get(`destroyed`)){var s=this.canvas,c=s.get(`el`);c.style.cursor=r.attr(`cursor`)||s.get(`cursor`)}},e.prototype._onmousedown=function(e,t,n){n.button===$p&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent(`mousedown`,n,e,t,null,null)},e.prototype._emitMouseoverEvents=function(e,t,n,r){var i=this.canvas.get(`el`);n!==r&&(n&&(this._emitEvent(`mouseout`,e,t,n,n,r),this._emitEvent(`mouseleave`,e,t,n,n,r),(!r||r.get(`destroyed`))&&(i.style.cursor=this.canvas.get(`cursor`))),r&&(this._emitEvent(`mouseover`,e,t,r,n,r),this._emitEvent(`mouseenter`,e,t,r,n,r)))},e.prototype._emitDragoverEvents=function(e,t,n,r,i){r?(r!==n&&(n&&this._emitEvent(`dragleave`,e,t,n,n,r),this._emitEvent(`dragenter`,e,t,r,n,r)),i||this._emitEvent(`dragover`,e,t,r)):n&&this._emitEvent(`dragleave`,e,t,n,n,r),i&&this._emitEvent(`dragover`,e,t,r)},e.prototype._afterDrag=function(e,t,n){e&&(e.set(`capture`,!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(t,n);r!==e&&this._emitMouseoverEvents(n,t,e,r),this.currentShape=r},e.prototype._onmouseup=function(e,t,n){if(n.button===$p){var r=this.draggingShape;this.dragging?(r&&this._emitEvent(`drop`,n,e,t),this._emitEvent(`dragend`,n,e,r),this._afterDrag(r,e,n)):(this._emitEvent(`mouseup`,n,e,t),t===this.mousedownShape&&this._emitEvent(`click`,n,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(e,t,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,e,r,t,!0)},e.prototype._onmousemove=function(e,t,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,e,i,t,!1),this._emitEvent(`drag`,n,e,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,c=n.timeStamp-this.mousedownTimeStamp,l=o.clientX-e.clientX,u=o.clientY-e.clientY,d=l*l+u*u;c>120||d>Qp?s&&s.get(`draggable`)?(a=this.mousedownShape,a.set(`capture`,!1),this.draggingShape=a,this.dragging=!0,this._emitEvent(`dragstart`,n,e,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get(`draggable`)?(this.dragging=!0,this._emitEvent(`dragstart`,n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,i,t),this._emitEvent(`mousemove`,n,e,t)):(this._emitMouseoverEvents(n,e,i,t),this._emitEvent(`mousemove`,n,e,t))}else this._emitMouseoverEvents(n,e,i,t),this._emitEvent(`mousemove`,n,e,t)}},e.prototype._emitEvent=function(e,t,n,r,i,a){var o=this._getEventObj(e,t,n,r,i,a);if(r){o.shape=r,Xp(r,e,o);for(var s=r.getParent();s;)s.emitDelegation(e,o),o.propagationStopped||Zp(s,e,o),o.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;Xp(c,e,o)}},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}()})),rm,im,am,om,sm=t((()=>{R(),js(),Uu(),ls(),Yp(),nm(),rm=`px`,im=ps(),am=im&&im.name===`firefox`,om=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.cursor=`default`,t.supportCSSTransform=!1,t},t.prototype.initContainer=function(){var e=this.get(`container`);U(e)&&(e=document.getElementById(e),this.set(`container`,e))},t.prototype.initDom=function(){var e=this.createDom();this.set(`el`,e),this.get(`container`).appendChild(e),this.setDOMSize(this.get(`width`),this.get(`height`))},t.prototype.initEvents=function(){var e=new tm({canvas:this});e.init(),this.set(`eventController`,e)},t.prototype.initTimeline=function(){var e=new Jp(this);this.set(`timeline`,e)},t.prototype.setDOMSize=function(e,t){var n=this.get(`el`);cs&&(n.style.width=e+rm,n.style.height=t+rm)},t.prototype.changeSize=function(e,t){this.setDOMSize(e,t),this.set(`width`,e),this.set(`height`,t),this.onCanvasChange(`changeSize`)},t.prototype.getRenderer=function(){return this.get(`renderer`)},t.prototype.getCursor=function(){return this.get(`cursor`)},t.prototype.setCursor=function(e){this.set(`cursor`,e);var t=this.get(`el`);cs&&t&&(t.style.cursor=e)},t.prototype.getPointByEvent=function(e){if(this.get(`supportCSSTransform`)){if(am&&!B(e.layerX)&&e.layerX!==e.offsetX)return{x:e.layerX,y:e.layerY};if(!B(e.offsetX))return{x:e.offsetX,y:e.offsetY}}var t=this.getClientByEvent(e),n=t.x,r=t.y;return this.getPointByClient(n,r)},t.prototype.getClientByEvent=function(e){var t=e;return e.touches&&(t=e.type===`touchend`?e.changedTouches[0]:e.touches[0]),{x:t.clientX,y:t.clientY}},t.prototype.getPointByClient=function(e,t){var n=this.get(`el`).getBoundingClientRect();return{x:e-n.left,y:t-n.top}},t.prototype.getClientByPoint=function(e,t){var n=this.get(`el`).getBoundingClientRect();return{x:e+n.left,y:t+n.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var e=this.get(`el`);e.parentNode.removeChild(e)},t.prototype.clearEvents=function(){this.get(`eventController`).destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var t=this.get(`timeline`);this.get(`destroyed`)||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(Hu)})),cm,lm=t((()=>{R(),Uu(),cm=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var t=e.prototype.clone.call(this),n=this.getChildren(),r=0;r{R(),Fu(),Cu(),um=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype._isInBBox=function(e,t){var n=this.getBBox();return n.minX<=e&&n.maxX>=e&&n.minY<=t&&n.maxY>=t},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},t.prototype.getBBox=function(){var e=this.cfg.bbox;return e||(e=this.calculateBBox(),this.set(`bbox`,e)),e},t.prototype.getCanvasBBox=function(){var e=this.cfg.canvasBBox;return e||(e=this.calculateCanvasBBox(),this.set(`canvasBBox`,e)),e},t.prototype.applyMatrix=function(t){e.prototype.applyMatrix.call(this,t),this.set(`canvasBBox`,null)},t.prototype.calculateCanvasBBox=function(){var e=this.getBBox(),t=this.getTotalMatrix(),n=e.minX,r=e.minY,i=e.maxX,a=e.maxY;if(t){var o=xu(t,[e.minX,e.minY]),s=xu(t,[e.maxX,e.minY]),c=xu(t,[e.minX,e.maxY]),l=xu(t,[e.maxX,e.maxY]);n=Math.min(o[0],s[0],c[0],l[0]),i=Math.max(o[0],s[0],c[0],l[0]),r=Math.min(o[1],s[1],c[1],l[1]),a=Math.max(o[1],s[1],c[1],l[1])}var u=this.attrs;if(u.shadowColor){var d=u.shadowBlur,f=d===void 0?0:d,p=u.shadowOffsetX,m=p===void 0?0:p,h=u.shadowOffsetY,g=h===void 0?0:h,_=n-f+m,v=i+f+m,y=r-f+g,b=a+f+g;n=Math.min(n,_),i=Math.max(i,v),r=Math.min(r,y),a=Math.max(a,b)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},t.prototype.clearCacheBBox=function(){this.set(`bbox`,null),this.set(`canvasBBox`,null)},t.prototype.isClipShape=function(){return this.get(`isClipShape`)},t.prototype.isInShape=function(e,t){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(e,t){var n=this.get(`startArrowShape`),r=this.get(`endArrowShape`),i=[e,t,1];i=this.invertFromMatrix(i);var a=i[0],o=i[1],s=this._isInBBox(a,o);return this.isOnlyHitBox()?s:!!(s&&!this.isClipped(a,o)&&(this.isInShape(a,o)||n&&n.isHit(a,o)||r&&r.isHit(a,o)))},t}(Pu)}));function fm(e,t){mm.set(e,t)}function pm(e){return mm.get(e)}var mm,hm=t((()=>{mm=new Map}));function gm(e){var t=e.attr();return{x:t.x,y:t.y,width:t.width,height:t.height}}var _m=t((()=>{}));function vm(e){var t=e.attr(),n=t.x,r=t.y,i=t.r;return{x:n-i,y:r-i,width:i*2,height:i*2}}var ym=t((()=>{})),bm=r({distance:()=>xm,getBBoxByArray:()=>Cm,getBBoxRange:()=>wm,isNumberEqual:()=>Sm,piMod:()=>Tm});function xm(e,t,n,r){var i=e-n,a=t-r;return Math.sqrt(i*i+a*a)}function Sm(e,t){return Math.abs(e-t)<.001}function Cm(e,t){var n=Mn(e),r=Mn(t),i=An(e),a=An(t);return{x:n,y:r,width:i-n,height:a-r}}function wm(e,t,n,r){return{minX:Mn([e,n]),maxX:An([e,n]),minY:Mn([t,r]),maxY:An([t,r])}}function Tm(e){return(e+Math.PI*2)%(Math.PI*2)}var Em=t((()=>{J()})),Dm,Om=t((()=>{Em(),ou(),Dm={box:function(e,t,n,r){return Cm([e,n],[t,r])},length:function(e,t,n,r){return xm(e,t,n,r)},pointAt:function(e,t,n,r,i){return{x:(1-i)*e+i*n,y:(1-i)*t+i*r}},pointDistance:function(e,t,n,r,i,a){var o=(n-e)*(i-e)+(r-t)*(a-t);return o<0?xm(e,t,i,a):o>(n-e)*(n-e)+(r-t)*(r-t)?xm(n,r,i,a):this.pointToLine(e,t,n,r,i,a)},pointToLine:function(e,t,n,r,i,a){var o=[n-e,r-t];if(Xl(o,[0,0]))return Math.sqrt((i-e)*(i-e)+(a-t)*(a-t));var s=[-o[1],o[0]];Il(s,s);var c=[i-e,a-t];return Math.abs(Ll(c,s))},tangentAngle:function(e,t,n,r){return Math.atan2(r-t,n-e)}}}));function km(e,t,n,r,i,a){var o,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,d=u/10,f=0;f<=l;f++){var p=f*u,m=[i.apply(null,e.concat([p])),i.apply(null,t.concat([p]))],h=xm(c[0],c[1],m[0],m[1]);h=0&&h{Em(),jm=1e-4}));function Nm(e,t,n,r){var i=1-r;return i*i*e+2*r*i*t+r*r*n}function Pm(e,t,n){var r=e+n-2*t;if(Sm(r,0))return[.5];var i=(e-t)/r;return i<=1&&i>=0?[i]:[]}function Fm(e,t,n,r){return 2*(1-r)*(t-e)+2*r*(n-t)}function Im(e,t,n,r,i,a,o){var s=Nm(e,n,i,o),c=Nm(t,r,a,o),l=Dm.pointAt(e,t,n,r,o),u=Dm.pointAt(n,r,i,a,o);return[[e,t,l.x,l.y,s,c],[s,c,u.x,u.y,i,a]]}function Lm(e,t,n,r,i,a,o){if(o===0)return(xm(e,t,n,r)+xm(n,r,i,a)+xm(e,t,i,a))/2;var s=Im(e,t,n,r,i,a,.5),c=s[0],l=s[1];return c.push(o-1),l.push(o-1),Lm.apply(null,c)+Lm.apply(null,l)}var Rm,zm=t((()=>{Om(),Em(),Mm(),Rm={box:function(e,t,n,r,i,a){var o=Pm(e,n,i)[0],s=Pm(t,r,a)[0],c=[e,i],l=[t,a];return o!==void 0&&c.push(Nm(e,n,i,o)),s!==void 0&&l.push(Nm(t,r,a,s)),Cm(c,l)},length:function(e,t,n,r,i,a){return Lm(e,t,n,r,i,a,3)},nearestPoint:function(e,t,n,r,i,a,o,s){return km([e,n,i],[t,r,a],o,s,Nm)},pointDistance:function(e,t,n,r,i,a,o,s){var c=this.nearestPoint(e,t,n,r,i,a,o,s);return xm(c.x,c.y,o,s)},interpolationAt:Nm,pointAt:function(e,t,n,r,i,a,o){return{x:Nm(e,n,i,o),y:Nm(t,r,a,o)}},divide:function(e,t,n,r,i,a,o){return Im(e,t,n,r,i,a,o)},tangentAngle:function(e,t,n,r,i,a,o){var s=Fm(e,n,i,o),c=Fm(t,r,a,o);return Tm(Math.atan2(c,s))}}}));function Bm(e,t,n,r,i){var a=1-i;return a*a*a*e+3*t*i*a*a+3*n*i*i*a+r*i*i*i}function Vm(e,t,n,r,i){var a=1-i;return 3*(a*a*(t-e)+2*a*i*(n-t)+i*i*(r-n))}function Hm(e,t,n,r){var i=-3*e+9*t-9*n+3*r,a=6*e-12*t+6*n,o=3*t-3*e,s=[],c,l,u;if(Sm(i,0))Sm(a,0)||(c=-o/a,c>=0&&c<=1&&s.push(c));else{var d=a*a-4*i*o;Sm(d,0)?s.push(-a/(2*i)):d>0&&(u=Math.sqrt(d),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function Um(e,t,n,r,i,a,o,s,c){var l=Bm(e,n,i,o,c),u=Bm(t,r,a,s,c),d=Dm.pointAt(e,t,n,r,c),f=Dm.pointAt(n,r,i,a,c),p=Dm.pointAt(i,a,o,s,c),m=Dm.pointAt(d.x,d.y,f.x,f.y,c),h=Dm.pointAt(f.x,f.y,p.x,p.y,c);return[[e,t,d.x,d.y,m.x,m.y,l,u],[l,u,h.x,h.y,p.x,p.y,o,s]]}function Wm(e,t,n,r,i,a,o,s,c){if(c===0)return Am([e,n,i,o],[t,r,a,s]);var l=Um(e,t,n,r,i,a,o,s,.5),u=l[0],d=l[1];return u.push(c-1),d.push(c-1),Wm.apply(null,u)+Wm.apply(null,d)}var Gm,Km=t((()=>{Em(),Om(),Mm(),Gm={extrema:Hm,box:function(e,t,n,r,i,a,o,s){for(var c=[e,o],l=[t,s],u=Hm(e,n,i,o),d=Hm(t,r,a,s),f=0;f0?n:n*-1}var Jm,Ym=t((()=>{Em(),Jm={box:function(e,t,n,r){return{x:e-n,y:t-r,width:n*2,height:r*2}},length:function(e,t,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(e,t,n,r,i,a){var o=n,s=r;if(o===0||s===0)return{x:e,y:t};for(var c=i-e,l=a-t,u=Math.abs(c),d=Math.abs(l),f=o*o,p=s*s,m=Math.PI/4,h,g,_=0;_<4;_++){h=o*Math.cos(m),g=s*Math.sin(m);var v=(f-p)*Math.cos(m)**3/o,y=(p-f)*Math.sin(m)**3/s,b=h-v,x=g-y,S=u-v,C=d-y,w=Math.hypot(x,b),T=Math.hypot(C,S),E=w*Math.asin((b*C-x*S)/(w*T))/Math.sqrt(f+p-h*h-g*g);m+=E,m=Math.min(Math.PI/2,Math.max(0,m))}return{x:e+qm(h,c),y:t+qm(g,l)}},pointDistance:function(e,t,n,r,i,a){var o=this.nearestPoint(e,t,n,r,i,a);return xm(o.x,o.y,i,a)},pointAt:function(e,t,n,r,i){var a=2*Math.PI*i;return{x:e+n*Math.cos(a),y:t+r*Math.sin(a)}},tangentAngle:function(e,t,n,r,i){var a=2*Math.PI*i;return Tm(Math.atan2(r*Math.cos(a),-n*Math.sin(a)))}}}));function Xm(e,t,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function Zm(e,t,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function Qm(e,t,n){return Math.atan(-t/e*Math.tan(n))}function $m(e,t,n){return Math.atan(t/(e*Math.tan(n)))}function eh(e,t,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+e}function th(e,t,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+t}function nh(e,t,n,r){return(Math.atan2(r*e,n*t)+Math.PI*2)%(Math.PI*2)}function rh(e,t,n){return{x:e*Math.cos(n),y:t*Math.sin(n)}}function ih(e,t,n){var r=Math.cos(n),i=Math.sin(n);return[e*r-t*i,e*i+t*r]}var ah,oh=t((()=>{Em(),Ym(),ah={box:function(e,t,n,r,i,a,o){for(var s=Qm(n,r,i),c=1/0,l=-1/0,u=[a,o],d=-Math.PI*2;d<=Math.PI*2;d+=Math.PI){var f=s+d;al&&(l=p)}for(var m=$m(n,r,i),h=1/0,g=-1/0,_=[a,o],d=-Math.PI*2;d<=Math.PI*2;d+=Math.PI){var v=m+d;ag&&(g=y)}return{x:c,y:h,width:l-c,height:g-h}},length:function(e,t,n,r,i,a,o){},nearestPoint:function(e,t,n,r,i,a,o,s,c){var l=ih(s-e,c-t,-i),u=l[0],d=l[1],f=Jm.nearestPoint(0,0,n,r,u,d),p=nh(n,r,f.x,f.y);po&&(f=rh(n,r,o));var m=ih(f.x,f.y,i);return{x:m[0]+e,y:m[1]+t}},pointDistance:function(e,t,n,r,i,a,o,s,c){var l=this.nearestPoint(e,t,n,r,s,c);return xm(l.x,l.y,s,c)},pointAt:function(e,t,n,r,i,a,o,s){var c=(o-a)*s+a;return{x:eh(e,t,n,r,i,c),y:th(e,t,n,r,i,c)}},tangentAngle:function(e,t,n,r,i,a,o,s){var c=(o-a)*s+a,l=Xm(e,t,n,r,i,a,o,c),u=Zm(e,t,n,r,i,a,o,c);return Tm(Math.atan2(u,l))}}}));function sh(e){for(var t=0,n=[],r=0;r1||t<0||e.length<2)return null;var n=sh(e),r=n.segments,i=n.totalLength;if(i===0)return{x:e[0][0],y:e[0][1]};for(var a=0,o=null,s=0;s=a&&t<=a+d){var f=(t-a)/d;o=Dm.pointAt(l[0],l[1],u[0],u[1],f);break}a+=d}return o}function uh(e,t){if(t>1||t<0||e.length<2)return 0;for(var n=sh(e),r=n.segments,i=n.totalLength,a=0,o=0,s=0;s=a&&t<=a+d){o=Math.atan2(u[1]-l[1],u[0]-l[0]);break}a+=d}return o}function dh(e,t,n){for(var r=1/0,i=0;i{Om(),Em()})),ph,mh=t((()=>{fh(),Em(),ph={box:function(e){for(var t=[],n=[],r=0;r{fh(),mh(),gh={box:function(e){return ph.box(e)},length:function(e){return ch(hh(e))},pointAt:function(e,t){return lh(hh(e),t)},pointDistance:function(e,t,n){return dh(hh(e),t,n)},tangentAngle:function(e,t){return uh(hh(e),t)}}})),vh=r({Arc:()=>ah,Cubic:()=>Gm,Line:()=>Dm,Polygon:()=>gh,Polyline:()=>ph,Quad:()=>Rm,Util:()=>bm}),yh=t((()=>{zm(),Km(),oh(),Om(),_h(),mh(),Em()}));function bh(e,t){return!e||!t?e||t:{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}}function xh(e,t){var n=e.get(`startArrowShape`),r=e.get(`endArrowShape`),i=null,a=null;return n&&(i=n.getCanvasBBox(),t=bh(t,i)),r&&(a=r.getCanvasBBox(),t=bh(t,a)),t}var Sh=t((()=>{}));function Ch(e){for(var t=e.attr().points,n=[],r=[],i=0;i{yh(),Sh()}));function Th(e){for(var t=e.attr().points,n=[],r=[],i=0;i{yh()}));function Dh(){if(!Oh){var e=document.createElement(`canvas`);e.width=1,e.height=1,Oh=e.getContext(`2d`)}return Oh}var Oh,kh=t((()=>{Oh=null}));function Ah(e,t,n){var r=1;if(U(e)&&(r=e.split(` `).length),r>1){var i=jh(t,n);return t*r+i*(r-1)}return t}function jh(e,t){return t?t-e:e*.14}function Mh(e,t){var n=Dh(),r=0;return B(e)||e===``?r:(n.save(),n.font=t,U(e)&&e.includes(` `)?H(e.split(` `),function(e){var t=n.measureText(e).width;r{ls(),kh()}));function Fh(e){var t=e.attr(),n=t.x,r=t.y,i=t.text,a=t.fontSize,o=t.lineHeight,s=t.font;s||=Nh(t);var c=Mh(i,s),l;if(!c)l={x:n,y:r,width:0,height:0};else{var u=t.textAlign,d=t.textBaseline,f=Ah(i,a,o),p={x:n,y:r-f};u&&(u===`end`||u===`right`?p.x-=c:u===`center`&&(p.x-=c/2)),d&&(d===`top`?p.y+=f:d===`middle`&&(p.y+=f/2)),l={x:p.x,y:p.y,width:c,height:f}}return l}var Ih=t((()=>{Ph()}));function Lh(e){var t=e||[];if(V(t))return t;if(U(t))return t=t.match(Rh),H(t,function(e,n){if(e=e.match(zh),e[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}H(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t}var Rh,zh,Bh=t((()=>{J(),Rh=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,zh=/[^\s\,]+/gi})),Vh=t((()=>{su()}));function Hh(e,t,n,r){var i=[],a=!!r,o,s,c,l,u,d,f;if(a){c=r[0],l=r[1];for(var p=0,m=e.length;p{Vh()}));function Gh(e,t){var n=[],r=[];function i(e,t){if(e.length===1)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o=3&&(e.length===3&&t.push(`Q`),t=t.concat(e[1])),e.length===2&&t.push(`L`),t=t.concat(e[e.length-1]),t})}function qh(e,t,n){if(n===1)return[[].concat(e)];var r=[];if(t[0]===`L`||t[0]===`C`||t[0]===`Q`)r=r.concat(Kh(e,t,n));else{var i=[].concat(e);i[0]===`M`&&(i[0]=`L`);for(var a=0;a<=n-1;a++)r.push(i)}return r}function Jh(e,t){if(e.length===1)return e;var n=e.length-1,r=t.length-1,i=n/r,a=[];if(e.length===1&&e[0][0]===`M`){for(var o=0;o{}));function Xh(e,t,n){var r=null,i=n;return t=0;c--)o=a[c].index,a[c].type===`add`?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}if(r=e.length,r{J(),Qh=function(e,t){var n=e.length,r=t.length,i,a,o=0;if(n===0||r===0)return null;for(var s=[],c=0;c<=n;c++)s[c]=[],s[c][0]={min:c};for(var l=0;l<=r;l++)s[0][l]={min:l};for(var c=1;c<=n;c++){i=e[c-1];for(var l=1;l<=r;l++){a=t[l-1],o=+!Oa(i,a);var u=s[c-1][l].min+1,d=s[c][l-1].min+1,f=s[c-1][l-1].min+o;s[c][l]=Xh(u,d,f)}}return s}}));function eg(e){var t=[];switch(e[0]){case`M`:t.push([e[1],e[2]]);break;case`L`:t.push([e[1],e[2]]);break;case`A`:t.push([e[6],e[7]]);break;case`Q`:t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case`T`:t.push([e[1],e[2]]);break;case`C`:t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case`S`:t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case`H`:t.push([e[1],e[1]]);break;case`V`:t.push([e[1],e[1]]);break;default:}return t}function tg(e,t,n){for(var r=[].concat(e),i,a=1/(n+1),o=eg(t)[0],s=1;s<=n;s++)a*=s,i=Math.floor(e.length*a),i===0?r.unshift([o[0]*a+e[i][0]*(1-a),o[1]*a+e[i][1]*(1-a)]):r.splice(i,0,[o[0]*a+e[i][0]*(1-a),o[1]*a+e[i][1]*(1-a)]);return r}function ng(e,t){if(e.length<=1)return e;for(var n,r=0;r0)n=tg(n,e[r-1],1);else{e[r]=t[r];break}e[r]=[`Q`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;case`T`:e[r]=[`T`].concat(n[0]);break;case`C`:if(n.length<3)if(r>0)n=tg(n,e[r-1],2);else{e[r]=t[r];break}e[r]=[`C`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;case`S`:if(n.length<2)if(r>0)n=tg(n,e[r-1],1);else{e[r]=t[r];break}e[r]=[`S`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;default:e[r]=t[r]}return e}var rg=t((()=>{}));function ig(e,t,n,r,i){return i?[[`M`,+e+ +i,t],[`l`,n-i*2,0],[`a`,i,i,0,0,1,i,i],[`l`,0,r-i*2],[`a`,i,i,0,0,1,-i,i],[`l`,i*2-n,0],[`a`,i,i,0,0,1,-i,-i],[`l`,0,i*2-r],[`a`,i,i,0,0,1,i,-i],[`z`]]:[[`M`,e,t],[`l`,n,0],[`l`,0,r],[`l`,-n,0],[`z`]]}var ag=t((()=>{}));function og(e){if(!e)return null;if(V(e))return e;var t={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(e).replace(cg,function(e,r,i){var a=[],o=r.toLowerCase();if(i.replace(lg,function(e,t){t&&a.push(+t)}),o===`m`&&a.length>2&&(n.push([r].concat(a.splice(0,2))),o=`l`,r=r===`m`?`l`:`L`),o===`o`&&a.length===1&&n.push([r,a[0]]),o===`r`)n.push([r].concat(a));else for(;a.length>=t[o]&&(n.push([r].concat(a.splice(0,t[o]))),t[o]););return``}),n}var sg,cg,lg,ug=t((()=>{J(),sg=` \v\f\r \xA0 ᠎              \u2028\u2029`,cg=RegExp(`([a-z])[`+sg+`,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[`+sg+`]*,?[`+sg+`]*)+)`,`ig`),lg=RegExp(`(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[`+sg+`]*,?[`+sg+`]*`,`ig`)}));function dg(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function fg(e){var t=og(e);if(!t||!t.length)return[[`M`,0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return t;var a=[],o=0,s=0,c=0,l=0,u=0,d=t[0];(d[0]===`M`||d[0]===`m`)&&(o=+d[1],s=+d[2],c=o,l=s,u++,a[0]=[`M`,o,s]);for(var r=u,f=t.length;r{ug(),pg=/[a-z]/}));function hg(e,t,n,r,i,a,o,s,c){return xg({px:e,py:t,cx:s,cy:c,rx:n,ry:r,xAxisRotation:i,largeArcFlag:a,sweepFlag:o}).reduce(function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.x,s=t.y;return e.push(n,r,i,a,o,s),e},[])}var gg,_g,vg,yg,bg,xg,Sg=t((()=>{gg=Math.PI*2,_g=function(e,t,n,r,i,a,o){var s=e.x,c=e.y;s*=t,c*=n;var l=r*s-i*c,u=i*s+r*c;return{x:l+a,y:u+o}},vg=function(e,t){var n=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:4/3*Math.tan(t/4),r=Math.cos(e),i=Math.sin(e),a=Math.cos(e+t),o=Math.sin(e+t);return[{x:r-i*n,y:i+r*n},{x:a+o*n,y:o-a*n},{x:a,y:o}]},yg=function(e,t,n,r){var i=e*r-t*n<0?-1:1,a=e*n+t*r;return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)},bg=function(e,t,n,r,i,a,o,s,c,l,u,d){var f=i**2,p=a**2,m=u**2,h=d**2,g=f*p-f*h-p*m;g<0&&(g=0),g/=f*h+p*m,g=Math.sqrt(g)*(o===s?-1:1);var _=g*i/a*d,v=g*-a/i*u,y=l*_-c*v+(e+n)/2,b=c*_+l*v+(t+r)/2,x=(u-_)/i,S=(d-v)/a,C=(-u-_)/i,w=(-d-v)/a,T=yg(1,0,x,S),E=yg(x,S,C,w);return s===0&&E>0&&(E-=gg),s===1&&E<0&&(E+=gg),[y,b,T,E]},xg=function(e){var t=e.px,n=e.py,r=e.cx,i=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,c=s===void 0?0:s,l=e.largeArcFlag,u=l===void 0?0:l,d=e.sweepFlag,f=d===void 0?0:d,p=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];var m=Math.sin(c*gg/360),h=Math.cos(c*gg/360),g=h*(t-r)/2+m*(n-i)/2,_=-m*(t-r)/2+h*(n-i)/2;if(g===0&&_===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];a=Math.abs(a),o=Math.abs(o);var v=g**2/a**2+_**2/o**2;v>1&&(a*=Math.sqrt(v),o*=Math.sqrt(v));var y=bg(t,n,r,i,a,o,u,f,m,h,g,_),b=y[0],x=y[1],S=y[2],C=y[3],w=Math.abs(C)/(gg/4);Math.abs(1-w)<1e-7&&(w=1);var T=Math.max(Math.ceil(w),1);C/=T;for(var E=0;E{}));function Tg(e,t,n,r){return[e,t,n,r,n,r]}var Eg=t((()=>{}));function Dg(e,t){`TQ`.indexOf(e[0])<0&&(t.qx=null,t.qy=null);var n=e.slice(1),r=n[0],i=n[1];switch(e[0]){case`M`:return t.x=r,t.y=i,e;case`A`:return[`C`].concat(hg.apply(0,[t.x1,t.y1].concat(e.slice(1))));case`Q`:return t.qx=r,t.qy=i,[`C`].concat(Cg.apply(0,[t.x1,t.y1].concat(e.slice(1))));case`L`:return[`C`].concat(Tg(t.x1,t.y1,e[1],e[2]));case`H`:return[`C`].concat(Tg(t.x1,t.y1,e[1],t.y1));case`V`:return[`C`].concat(Tg(t.x1,t.y1,t.x1,e[1]));case`Z`:return[`C`].concat(Tg(t.x1,t.y1,t.x,t.y));default:}return e}var Og=t((()=>{Sg(),wg(),Eg()}));function kg(e,t){t===void 0&&(t=!1);for(var n=fg(e),r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],a=``,o=n.length,s,c,l=[],u=0;u7){e[n].shift();for(var r=e[n],i=n;r.length;)t[n]=`A`,e.splice(i+=1,0,[`C`].concat(r.splice(0,6)));e.splice(n,1)}}var jg=t((()=>{mg(),Og()}));function Mg(e,t){return Ug(e,t)}var Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg=t((()=>{J(),ag(),jg(),Ng=function(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n},Pg=function(e,t,n,r,i,a,o,s,c){c===null&&(c=1),c=c>1?1:c<0?0:c;for(var l=c/2,u=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,m=0;m0&&p<1&&c.push(p);continue}var h=d*d-4*f*u,g=Math.sqrt(h);if(!(h<0)){var _=(-d+g)/(2*u);_>0&&_<1&&c.push(_);var v=(-d-g)/(2*u);v>0&&v<1&&c.push(v)}}for(var y=c.length,b=y,x;y--;)p=c[y],x=1-p,l[0][y]=x*x*x*e+3*x*x*p*n+3*x*p*p*i+p*p*p*o,l[1][y]=x*x*x*t+3*x*x*p*r+3*x*p*p*a+p*p*p*s;return l[0][b]=e,l[1][b]=t,l[0][b+1]=o,l[1][b+1]=s,l[0].length=l[1].length=b+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])}}},Ig=function(e,t,n,r,i,a,o,s){if(!(Math.max(e,n)Math.max(i,o)||Math.max(t,r)Math.max(a,s))){var c=(e*r-t*n)*(i-o)-(e-n)*(i*s-a*o),l=(e*r-t*n)*(a-s)-(t-r)*(i*s-a*o),u=(e-n)*(a-s)-(t-r)*(i-o);if(u){var d=c/u,f=l/u,p=+d.toFixed(2),m=+f.toFixed(2);if(!(p<+Math.min(e,n).toFixed(2)||p>+Math.max(e,n).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||m<+Math.min(t,r).toFixed(2)||m>+Math.max(t,r).toFixed(2)||m<+Math.min(a,s).toFixed(2)||m>+Math.max(a,s).toFixed(2)))return{x:d,y:f}}}},Lg=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},Rg=function(e,t,n,r){return e===null&&(e=t=n=r=0),t===null&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:ig(e,t,n,r),vb:[e,t,n,r].join(` `)}},zg=function(e,t){return e=Rg(e),t=Rg(t),Lg(t,e.x,e.y)||Lg(t,e.x2,e.y)||Lg(t,e.x,e.y2)||Lg(t,e.x2,e.y2)||Lg(e,t.x,t.y)||Lg(e,t.x2,t.y)||Lg(e,t.x,t.y2)||Lg(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)},Bg=function(e,t,n,r,i,a,o,s){V(e)||(e=[e,t,n,r,i,a,o,s]);var c=Fg.apply(null,e);return Rg(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},Vg=function(e,t,n,r,i,a,o,s,c){var l=1-c,u=l**3,d=l**2,f=c*c,p=f*c,m=u*e+d*3*c*n+l*3*c*c*i+p*o,h=u*t+d*3*c*r+l*3*c*c*a+p*s,g=e+2*c*(n-e)+f*(i-2*n+e),_=t+2*c*(r-t)+f*(a-2*r+t),v=n+2*c*(i-n)+f*(o-2*i+n),y=r+2*c*(a-r)+f*(s-2*a+r),b=l*e+c*n,x=l*t+c*r,S=l*i+c*o,C=l*a+c*s,w=90-Math.atan2(g-v,_-y)*180/Math.PI;return{x:m,y:h,m:{x:g,y:_},n:{x:v,y},start:{x:b,y:x},end:{x:S,y:C},alpha:w}},Hg=function(e,t,n){if(!zg(Bg(e),Bg(t)))return n?0:[];for(var r=Pg.apply(0,e),i=Pg.apply(0,t),a=~~(r/8),o=~~(i/8),s=[],c=[],l={},u=n?0:[],d=0;d=0&&x<=1&&S>=0&&S<=1&&(n?u++:u.push({x:b.x,y:b.y,t1:x,t2:S}))}}return u},Ug=function(e,t,n){e=kg(e),t=kg(t);for(var r,i,a,o,s,c,l,u,d,f,p=n?0:[],m=0,h=e.length;m{Kg=/,?([a-z]),?/gi}));function Jg(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Yg(e,t){return Jg(e)*Jg(t)?(e[0]*t[0]+e[1]*t[1])/(Jg(e)*Jg(t)):1}function Xg(e,t){return(e[0]*t[1]1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var m=n*n*(f*f)+r*r*(d*d),h=m?Math.sqrt((n*n*(r*r)-m)/m):1;a===o&&(h*=-1),isNaN(h)&&(h=0);var g=r?h*n*f/r:0,_=n?h*-r*d/n:0,v=(s+l)/2+Math.cos(i)*g-Math.sin(i)*_,y=(c+u)/2+Math.sin(i)*g+Math.cos(i)*_,b=[(d-g)/n,(f-_)/r],x=[(-1*d-g)/n,(-1*f-_)/r],S=Xg([1,0],b),C=Xg(b,x);return Yg(b,x)<=-1&&(C=Math.PI),Yg(b,x)>=1&&(C=0),o===0&&C>0&&(C-=2*Math.PI),o===1&&C<0&&(C+=2*Math.PI),{cx:v,cy:y,rx:Zg(e,[l,u])?0:n,ry:Zg(e,[l,u])?0:r,startAngle:S,endAngle:S+C,xRotation:i,arcFlag:a,sweepFlag:o}}var $g=t((()=>{J()}));function e_(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function t_(e){e=Lh(e);for(var t=[],n=null,r=null,i=null,a=0,o=e.length,s=0;s{$g(),Bh()}));function r_(e,t,n,r){var i=.001,a={x:n.x-e.x,y:n.y-e.y},o={x:t.x-e.x,y:t.y-e.y},s={x:r.x-n.x,y:r.y-n.y},c=o.x*s.y-o.y*s.x,l=c*c,u=o.x*o.x+o.y*o.y,d=s.x*s.x+s.y*s.y,f=null;if(l>i*u*d){var p=(a.x*s.y-a.y*s.x)/c,m=(a.x*o.y-a.y*o.x)/c;i_(p,0,1)&&i_(m,0,1)&&(f={x:e.x+p*o.x,y:e.y+p*o.y})}return f}var i_,a_=t((()=>{i_=function(e,t,n){return e>=t&&e<=n}}));function o_(e){return Math.abs(e)0!=o_(s[1]-n)>0&&o_(t-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}var l_,u_=t((()=>{l_=1e-6}));function d_(e){for(var t=[],n=e.length,r=0;r1){var o=e[0],s=e[n-1];t.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return t}function f_(e,t){var n=!1;return H(e,function(e){if(r_(e.from,e.to,t.from,t.to))return n=!0,!1}),n}function p_(e){var t=e.map(function(e){return e[0]}),n=e.map(function(e){return e[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function m_(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY{u_(),a_(),J()})),__=r({catmullRom2Bezier:()=>Uh,fillPath:()=>Jh,fillPathByDiff:()=>Zh,formatPath:()=>ng,getArcParams:()=>Qg,getLineIntersect:()=>r_,isPointInPolygon:()=>c_,isPolygonsIntersect:()=>h_,parsePath:()=>Lh,parsePathArray:()=>Gg,parsePathString:()=>og,path2Absolute:()=>fg,path2Curve:()=>kg,path2Segments:()=>t_,pathIntersection:()=>Mg,reactPath:()=>ig}),v_=t((()=>{Bh(),Wh(),Yh(),$h(),rg(),Wg(),qg(),ug(),jg(),mg(),ag(),$g(),n_(),a_(),g_(),u_()}));function y_(e,t){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u,{xExtra:Math.cos(c/2-l)*(t/2*(1/Math.sin(c/2)))-t/2||0,yExtra:Math.cos(u-c/2)*(t/2*(1/Math.sin(c/2)))-t/2||0}}function x_(e){var t=e.attr(),n=t.path,r=t.stroke?t.lineWidth:0,i=y_(e.get(`segments`)||t_(n),r),a=i.x,o=i.y,s=i.width,c=i.height,l={minX:a,minY:o,maxX:a+s,maxY:o+c};return l=xh(e,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}}var S_=t((()=>{yh(),v_(),J(),Sh()}));function C_(e){var t=e.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2,o={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,a),maxY:Math.max(r,a)};return o=xh(e,o),{x:o.minX,y:o.minY,width:o.maxX-o.minX,height:o.maxY-o.minY}}var w_=t((()=>{Sh()}));function T_(e){var t=e.attr(),n=t.x,r=t.y,i=t.rx,a=t.ry;return{x:n-i,y:r-a,width:i*2,height:a*2}}var E_=t((()=>{})),D_=t((()=>{hm(),_m(),ym(),wh(),Eh(),Ih(),S_(),w_(),E_(),fm(`rect`,gm),fm(`image`,gm),fm(`circle`,vm),fm(`marker`,vm),fm(`polyline`,Ch),fm(`polygon`,Th),fm(`text`,Fh),fm(`path`,x_),fm(`line`,C_),fm(`ellipse`,T_)})),O_=r({AbstractCanvas:()=>om,AbstractGroup:()=>cm,AbstractShape:()=>um,Base:()=>us,Event:()=>$o,PathUtil:()=>fo,assembleFont:()=>Nh,getBBoxMethod:()=>pm,getOffScreenContext:()=>Dh,getTextHeight:()=>Ah,invert:()=>Su,isAllowCapture:()=>ss,multiplyVec2:()=>xu,registerBBox:()=>fm,registerEasing:()=>zp,version:()=>k_}),k_,X=t((()=>{Xo(),Zo(),Qo(),es(),ds(),sm(),lm(),dm(),D_(),Ph(),ls(),Cu(),kh(),Vp(),k_=`0.5.11`})),A_,j_,M_,N_=t((()=>{A_=1/2,j_=1/2,M_=.05})),P_,F_=t((()=>{J(),N_(),P_=function(){function e(e){var t=e.xField,n=e.yField,r=e.adjustNames,i=r===void 0?[`x`,`y`]:r,a=e.dimValuesMap;this.adjustNames=i,this.xField=t,this.yField=n,this.dimValuesMap=a}return e.prototype.isAdjust=function(e){return this.adjustNames.indexOf(e)>=0},e.prototype.getAdjustRange=function(e,t,n){var r=this.yField,i=n.indexOf(t),a=n.length,o,s;return!r&&this.isAdjust(`y`)?(o=0,s=1):a>1?(o=n[i===0?0:i-1],s=n[i===a-1?a-1:i+1],i===0?o-=(s-t)/2:o+=(t-o)/2,i===a-1?s+=(t-n[a-2])/2:s-=(s-t)/2):(o=t===0?0:t-.5,s=t===0?1:t+.5),{pre:o,next:s}},e.prototype.adjustData=function(e,t){var n=this,r=this.getDimValues(t);H(e,function(e,t){H(r,function(r,i){n.adjustDim(i,r,e,t)})})},e.prototype.groupData=function(e,t){return H(e,function(e){e[t]===void 0&&(e[t]=0)}),hr(e,t)},e.prototype.adjustDim=function(e,t,n,r){},e.prototype.getDimValues=function(e){var t=this,n=t.xField,r=t.yField,i=G({},this.dimValuesMap),a=[];if(n&&this.isAdjust(`x`)&&a.push(n),r&&this.isAdjust(`y`)&&a.push(r),a.forEach(function(t){i&&i[t]||(i[t]=tr(e,t).sort(function(e,t){return e-t}))}),!r&&this.isAdjust(`y`)){var o=`y`;i[o]=[0,1]}return i},e}()})),I_=t((()=>{})),L_,R_,z_,B_=t((()=>{F_(),I_(),L_={},R_=function(e){return L_[e.toLowerCase()]},z_=function(e,t){if(R_(e))throw Error(`Adjust type '`+e+`' existed.`);L_[e.toLowerCase()]=t}}));function V_(e,t){H_(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var H_,U_,W_=t((()=>{H_=function(e,t){return H_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},H_(e,t)},U_=function(){return U_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{W_(),J(),N_(),F_(),G_=function(e){V_(t,e);function t(t){var n=e.call(this,t)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=t.marginRatio,i=r===void 0?A_:r,a=t.dodgeRatio,o=a===void 0?j_:a,s=t.dodgeBy,c=t.intervalPadding,l=t.dodgePadding,u=t.xDimensionLength,d=t.groupNum,f=t.defaultSize,p=t.maxColumnWidth,m=t.minColumnWidth,h=t.columnWidthRatio,g=t.customOffset;return n.marginRatio=i,n.dodgeRatio=o,n.dodgeBy=s,n.intervalPadding=c,n.dodgePadding=l,n.xDimensionLegenth=u,n.groupNum=d,n.defaultSize=f,n.maxColumnWidth=p,n.minColumnWidth=m,n.columnWidthRatio=h,n.customOffset=g,n}return t.prototype.process=function(e){var t=da(e),n=En(t),r=this.dodgeBy,i=r?br(n,r):t;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],t},t.prototype.adjustDim=function(e,t,n,r){var i=this,a=this.customOffset,o=this.getDistribution(e);return H(this.groupData(n,e),function(n,s){var c=t.length===1?{pre:t[0]-1,next:t[0]+1}:i.getAdjustRange(e,parseFloat(s),t);H(n,function(t){var n=o[t[e]],s=n.indexOf(r);if(B(a))t[e]=i.getDodgeOffset(c,s,n.length);else{var l=c.pre,u=c.next;t[e]=z(a)?a(t,c):(l+u)/2+a}})}),[]},t.prototype.getDodgeOffset=function(e,t,n){var r=this,i=r.dodgeRatio,a=r.marginRatio,o=r.intervalPadding,s=r.dodgePadding,c=e.pre,l=e.next,u=l-c,d;if(!B(o)&&B(s)&&o>=0){var f=this.getIntervalOnlyOffset(n,t);d=c+f}else if(!B(s)&&B(o)&&s>=0){var f=this.getDodgeOnlyOffset(n,t);d=c+f}else if(!B(o)&&!B(s)&&o>=0&&s>=0){var f=this.getIntervalAndDodgeOffset(n,t);d=c+f}else{var p=u*i/n,m=a*p,f=1/2*(u-n*p-(n-1)*m)+((t+1)*p+t*m)-1/2*p-1/2*u;d=(c+l)/2+f}return d},t.prototype.getIntervalOnlyOffset=function(e,t){var n=this,r=n.defaultSize,i=n.intervalPadding,a=n.xDimensionLegenth,o=n.groupNum,s=n.dodgeRatio,c=n.maxColumnWidth,l=n.minColumnWidth,u=n.columnWidthRatio,d=i/a,f=(1-(o-1)*d)/o*s/(e-1),p=((1-d*(o-1))/o-f*(e-1))/e;if(p=B(u)?p:1/o/e*u,!B(c)){var m=c/a;p=Math.min(p,m)}if(!B(l)){var h=l/a;p=Math.max(p,h)}return p=r?r/a:p,f=((1-(o-1)*d)/o-e*p)/(e-1),((1/2+t)*p+t*f+1/2*d)*o-d/2},t.prototype.getDodgeOnlyOffset=function(e,t){var n=this,r=n.defaultSize,i=n.dodgePadding,a=n.xDimensionLegenth,o=n.groupNum,s=n.marginRatio,c=n.maxColumnWidth,l=n.minColumnWidth,u=n.columnWidthRatio,d=i/a,f=1*s/(o-1),p=((1-f*(o-1))/o-d*(e-1))/e;if(p=u?1/o/e*u:p,!B(c)){var m=c/a;p=Math.min(p,m)}if(!B(l)){var h=l/a;p=Math.max(p,h)}return p=r?r/a:p,f=(1-(p*e+d*(e-1))*o)/(o-1),((1/2+t)*p+t*d+1/2*f)*o-f/2},t.prototype.getIntervalAndDodgeOffset=function(e,t){var n=this,r=n.intervalPadding,i=n.dodgePadding,a=n.xDimensionLegenth,o=n.groupNum,s=r/a,c=i/a,l=((1-s*(o-1))/o-c*(e-1))/e;return((1/2+t)*l+t*c+1/2*s)*o-s/2},t.prototype.getDistribution=function(e){var t=this.adjustDataArray,n=this.cacheMap,r=n[e];return r||(r={},H(t,function(t,n){var i=tr(t,e);i.length||i.push(0),H(i,function(e){r[e]||(r[e]=[]),r[e].push(n)})}),n[e]=r),r},t}(P_)}));function q_(e,t){return(t-e)*Math.random()+e}var J_,Y_=t((()=>{W_(),J(),N_(),F_(),J_=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(e){var t=da(e),n=En(t);return this.adjustData(t,n),t},t.prototype.adjustDim=function(e,t,n){var r=this;return H(this.groupData(n,e),function(n,i){return r.adjustGroup(n,e,parseFloat(i),t)})},t.prototype.getAdjustOffset=function(e){var t=e.pre,n=e.next,r=(n-t)*M_;return q_(t+r,n-r)},t.prototype.adjustGroup=function(e,t,n,r){var i=this,a=this.getAdjustRange(t,n,r);return H(e,function(e){e[t]=i.getAdjustOffset(a)}),e},t}(P_)})),X_,Z_,Q_=t((()=>{W_(),J(),F_(),X_=lo,Z_=function(e){V_(t,e);function t(t){var n=e.call(this,t)||this,r=t.adjustNames,i=r===void 0?[`y`]:r,a=t.height,o=a===void 0?NaN:a,s=t.size,c=s===void 0?10:s,l=t.reverseOrder,u=l===void 0?!1:l;return n.adjustNames=i,n.height=o,n.size=c,n.reverseOrder=u,n}return t.prototype.process=function(e){var t=this,n=t.yField,r=t.reverseOrder,i=n?this.processStack(e):this.processOneDimStack(e);return r?this.reverse(i):i},t.prototype.reverse=function(e){return e.slice(0).reverse()},t.prototype.processStack=function(e){var t=this,n=t.xField,r=t.yField,i=t.reverseOrder?this.reverse(e):e,a=new X_,o=new X_;return i.map(function(e){return e.map(function(e){var t,i=K(e,n,0),s=K(e,[r]),c=i.toString();if(s=V(s)?s[1]:s,!B(s)){var l=s>=0?a:o;l.has(c)||l.set(c,0);var u=l.get(c),d=s+u;return l.set(c,d),U_(U_({},e),(t={},t[r]=[u,d],t))}return e})})},t.prototype.processOneDimStack=function(e){var t=this,n=this,r=n.xField,i=n.height,a=n.reverseOrder,o=`y`,s=a?this.reverse(e):e,c=new X_;return s.map(function(e){return e.map(function(e){var n,a=t.size,s=e[r],l=a*2/i;c.has(s)||c.set(s,l/2);var u=c.get(s);return c.set(s,u+l),U_(U_({},e),(n={},n[o]=u,n))})})},t}(P_)})),$_,ev=t((()=>{W_(),J(),F_(),$_=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(e){var t=En(e),n=this,r=n.xField,i=n.yField,a=this.getXValuesMaxMap(t),o=Math.max.apply(Math,Object.keys(a).map(function(e){return a[e]}));return Ma(e,function(e){return Ma(e,function(e){var t,n,s=e[i],c=e[r];if(V(s)){var l=(o-a[c])/2;return U_(U_({},e),(t={},t[i]=Ma(s,function(e){return l+e}),t))}var u=(o-s)/2;return U_(U_({},e),(n={},n[i]=[u,s+u],n))})})},t.prototype.getXValuesMaxMap=function(e){var t=this,n=this,r=n.xField,i=n.yField,a=hr(e,function(e){return e[r]});return Fa(a,function(e){return t.getDimMaxValue(e,i)})},t.prototype.getDimMaxValue=function(e,t){var n=Ma(e,function(e){return K(e,t,[])}),r=En(n);return Math.max.apply(Math,r)},t}(P_)})),tv=r({Adjust:()=>P_,getAdjust:()=>R_,registerAdjust:()=>z_}),nv=t((()=>{B_(),F_(),K_(),Y_(),Q_(),ev(),I_(),z_(`Dodge`,G_),z_(`Jitter`,J_),z_(`Stack`,Z_),z_(`Symmetric`,$_)})),rv,iv,av=t((()=>{J(),rv=function(e,t){return U(t)?t:e.invert(e.scale(t))},iv=function(){function e(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return e.prototype.mapping=function(){for(var e=this,t=[],n=0;n{J(),sv=/rgba?\(([\s.,0-9]+)\)/,cv=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,lv=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,uv=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,dv=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)},fv=function(){var e=document.createElement(`i`);return e.title=`Web Colour Picker`,e.style.display=`none`,document.body.appendChild(e),e},pv=function(e,t,n,r){return e[r]+(t[r]-e[r])*n},mv=function(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]},hv=function(e){var t=Math.round(e).toString(16);return t.length===1?`0`+t:t},gv=function(e,t){var n=isNaN(Number(t))||t<0?0:t>1?1:Number(t),r=e.length-1,i=Math.floor(r*n),a=r*n-i,o=e[i],s=i===r?o:e[i+1];return ov([pv(o,s,a,0),pv(o,s,a,1),pv(o,s,a,2)])},vv=function(e){if(e[0]===`#`&&e.length===7)return e;_v||=fv(),_v.style.color=e;var t=document.defaultView.getComputedStyle(_v,``).getPropertyValue(`color`);return t=ov(sv.exec(t)[1].split(/\s*,\s*/).map(function(e){return Number(e)})),t},yv=function(e){var t=Ma(U(e)?e.split(`-`):e,function(e){return mv(e.indexOf(`#`)===-1?vv(e):e)});return function(e){return gv(t,e)}},bv=function(e){if(dv(e)){var t,n=void 0;if(e[0]===`l`){var r=cv.exec(e),i=+r[1]+90;n=r[2],t=`linear-gradient(`+i+`deg, `}else if(e[0]===`r`){t=`radial-gradient(`;var r=lv.exec(e);n=r[4]}var a=n.match(uv);return H(a,function(e,n){var r=e.split(`:`);t+=r[1]+` `+r[0]*100+`%`,n!==a.length-1&&(t+=`, `)}),t+=`)`,t}return e},xv={rgb2arr:mv,gradient:yv,toRGB:ha(vv),toCSSGradient:bv}})),Cv,wv=t((()=>{R(),Sv(),J(),av(),Cv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`color`,n.names=[`color`],U(n.values)&&(n.linear=!0),n.gradient=xv.gradient(n.values),n}return t.prototype.getLinearValue=function(e){return this.gradient(e)},t}(iv)})),Tv,Ev=t((()=>{R(),av(),Tv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`opacity`,n.names=[`opacity`],n}return t}(iv)})),Dv,Ov=t((()=>{R(),J(),av(),Dv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.names=[`x`,`y`],n.type=`position`,n}return t.prototype.mapping=function(e,t){var n=this.scales,r=n[0],i=n[1];return B(e)||B(t)?[]:[V(e)?e.map(function(e){return r.scale(e)}):r.scale(e),V(t)?t.map(function(e){return i.scale(e)}):i.scale(t)]},t}(iv)})),kv,Av=t((()=>{R(),av(),kv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`shape`,n.names=[`shape`],n}return t.prototype.getLinearValue=function(e){var t=Math.round((this.values.length-1)*e);return this.values[t]},t}(iv)})),jv,Mv=t((()=>{R(),av(),jv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`size`,n.names=[`size`],n}return t}(iv)}));function Nv(e){return Fv[e]}function Pv(e,t){Fv[e]=t}var Fv,Iv=t((()=>{Fv={}})),Lv,Rv=t((()=>{J(),Iv(),Lv=function(){function e(e){this.type=`base`,this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return e.prototype.translate=function(e){return e},e.prototype.change=function(e){G(this.__cfg__,e),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var e=this;return Ma(this.ticks,function(t,n){return ln(t)?t:{text:e.getText(t,n),tickValue:t,value:e.scale(t)}})},e.prototype.getText=function(e,t){var n=this.formatter,r=n?n(e,t):e;return B(r)||!z(r.toString)?``:r.toString()},e.prototype.getConfig=function(e){return this.__cfg__[e]},e.prototype.init=function(){G(this,this.__cfg__),this.setDomain(),Ta(this.getConfig(`ticks`))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if(U(e)){var n=Nv(e);if(!n)throw Error(`There is no method to to calculate ticks!`);t=n(this)}else z(e)&&(t=e(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(e,t,n){return W(e)?(e-t)/(n-t):NaN},e.prototype.calcValue=function(e,t,n){return t+e*(n-t)},e}()})),zv,Bv=t((()=>{R(),J(),Rv(),zv=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cat`,t.isCategory=!0,t}return t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var e=0;ethis.max?NaN:this.values[r]},t.prototype.getText=function(t){var n=[...arguments].slice(1),r=t;return W(t)&&!this.values.includes(t)&&(r=this.values[r]),e.prototype.getText.apply(this,Dt([r],n))},t.prototype.initCfg=function(){this.tickMethod=`cat`},t.prototype.setDomain=function(){if(B(this.getConfig(`min`))&&(this.min=0),B(this.getConfig(`max`))){var e=this.values.length;this.max=e>1?e-1:e}this.translateIndexMap&&=void 0},t}(Lv)})),Vv=r({assign:()=>Uv,default:()=>_y,defaultI18n:()=>ny,format:()=>gy,parse:()=>Wv,setGlobalDateI18n:()=>iy,setGlobalDateMasks:()=>hy});function Hv(e,t){for(var n=[],r=0,i=e.length;r1e3)return null;var r={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],a=[],o=t.replace(Zv,function(e,t){return a.push(ay(t)),`@@@`}),s={},c={};o=ay(o).replace(Gv,function(e){var t=py[e],n=t[0],r=t[1],a=t[3];if(s[n])throw Error(`Invalid format. `+n+` specified twice in format`);return s[n]=!0,a&&(c[a]=!0),i.push(t),`(`+r+`)`}),Object.keys(c).forEach(function(e){if(!s[e])throw Error(`Invalid format. `+e+` is required in specified format`)}),o=o.replace(/@@@/g,function(){return a.shift()});var l=e.match(new RegExp(o,`i`));if(!l)return null;for(var u=Uv(Uv({},ry),n),d=1;d11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return g}var Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy=t((()=>{Gv=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Kv=`\\d\\d?`,qv=`\\d\\d`,Jv=`\\d{3}`,Yv=`\\d{4}`,Xv=`[^\\s]+`,Zv=/\[([^]*?)\]/gm,Qv=function(e){return function(t,n){var r=n[e].map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase());return r>-1?r:null}},$v=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],ey=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],ty=Hv(ey,3),ny={dayNamesShort:Hv($v,3),dayNames:$v,monthNamesShort:ty,monthNames:ey,amPm:[`am`,`pm`],DoFn:function(e){return e+[`th`,`st`,`nd`,`rd`][e%10>3?0:(e-e%10==10?0:1)*e%10]}},ry=Uv({},ny),iy=function(e){return ry=Uv(ry,e)},ay=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,`\\$&`)},oy=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length0?`-`:`+`)+oy(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?`-`:`+`)+oy(Math.floor(Math.abs(t)/60),2)+`:`+oy(Math.abs(t)%60,2)}},cy=function(e){return e-1},ly=[null,Kv],uy=[null,Xv],dy=[`isPm`,Xv,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],fy=[`timezoneOffset`,`[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?`,function(e){var t=(e+``).match(/([+-]|\d\d)/gi);if(t){var n=t[1]*60+parseInt(t[2],10);return t[0]===`+`?n:-n}return 0}],py={D:[`day`,Kv],DD:[`day`,qv],Do:[`day`,Kv+Xv,function(e){return parseInt(e,10)}],M:[`month`,Kv,cy],MM:[`month`,qv,cy],YY:[`year`,qv,function(e){var t=+(``+new Date().getFullYear()).substr(0,2);return+(``+(+e>68?t-1:t)+e)}],h:[`hour`,Kv,void 0,`isPm`],hh:[`hour`,qv,void 0,`isPm`],H:[`hour`,Kv],HH:[`hour`,qv],m:[`minute`,Kv],mm:[`minute`,qv],s:[`second`,Kv],ss:[`second`,qv],YYYY:[`year`,Yv],S:[`millisecond`,`\\d`,function(e){return e*100}],SS:[`millisecond`,qv,function(e){return e*10}],SSS:[`millisecond`,Jv],d:ly,dd:ly,ddd:uy,dddd:uy,MMM:[`month`,Xv,Qv(`monthNamesShort`)],MMMM:[`month`,Xv,Qv(`monthNames`)],a:dy,A:dy,ZZ:fy,Z:fy},my={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`,isoDate:`YYYY-MM-DD`,isoDateTime:`YYYY-MM-DDTHH:mm:ssZ`,shortTime:`HH:mm`,mediumTime:`HH:mm:ss`,longTime:`HH:mm:ss.SSS`},hy=function(e){return Uv(my,e)},gy=function(e,t,n){if(t===void 0&&(t=my.default),n===void 0&&(n={}),typeof e==`number`&&(e=new Date(e)),Object.prototype.toString.call(e)!==`[object Date]`||isNaN(e.getTime()))throw Error(`Invalid Date pass to format`);t=my[t]||t;var r=[];t=t.replace(Zv,function(e,t){return r.push(t),`@@@`});var i=Uv(Uv({},ry),n);return t=t.replace(Gv,function(t){return sy[t](e,i)}),t.replace(/@@@/g,function(){return r.shift()})},_y={format:gy,parse:Wv,defaultI18n:ny,setGlobalDateI18n:iy,setGlobalDateMasks:hy}}));function yy(e){return function(t,n,r,i){for(var a=B(r)?0:r,o=B(i)?t.length:i;a>>1;e(t[s])>n?o=s:a=s+1}return a}}var by=t((()=>{J()}));function xy(e,t){return(Vv[wy]||_y[wy])(e,t)}function Sy(e){return U(e)&&(e=e.indexOf(`T`)>0?new Date(e).getTime():new Date(e.replace(/-/gi,`/`)).getTime()),Bi(e)&&(e=e.getTime()),e}function Cy(e,t,n){var r=(t-e)/n,i=yy(function(e){return e[1]})(jy,r)-1,a=jy[i];return i<0?a=jy[0]:i>=jy.length&&(a=ar(jy)),a}var wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My=t((()=>{J(),vy(),by(),wy=`format`,Ty=1e3,Ey=60*Ty,Dy=60*Ey,Oy=24*Dy,ky=Oy*31,Ay=Oy*365,jy=[[`HH:mm:ss`,Ty],[`HH:mm:ss`,Ty*10],[`HH:mm:ss`,Ty*30],[`HH:mm`,Ey],[`HH:mm`,Ey*10],[`HH:mm`,Ey*30],[`HH`,Dy],[`HH`,Dy*6],[`HH`,Dy*12],[`YYYY-MM-DD`,Oy],[`YYYY-MM-DD`,Oy*4],[`YYYY-WW`,Oy*7],[`YYYY-MM`,ky],[`YYYY-MM`,ky*4],[`YYYY-MM`,ky*6],[`YYYY`,Oy*380]]})),Ny,Py=t((()=>{R(),J(),My(),Bv(),Ny=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`timeCat`,t}return t.prototype.translate=function(e){e=Sy(e);var t=this.values.indexOf(e);return t===-1&&(t=W(e)&&e-1){var r=this.values[n],i=this.formatter;return r=i?i(r,t):xy(r,this.mask),r}return e},t.prototype.initCfg=function(){this.tickMethod=`time-cat`,this.mask=`YYYY-MM-DD`,this.tickCount=7},t.prototype.setDomain=function(){var t=this.values;H(t,function(e,n){t[n]=Sy(e)}),t.sort(function(e,t){return e-t}),e.prototype.setDomain.call(this)},t}(zv)})),Fy,Iy=t((()=>{R(),J(),Rv(),Fy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return t.prototype.scale=function(e){if(B(e))return NaN;var t=this.rangeMin(),n=this.rangeMax();return this.max===this.min?t:t+this.getScalePercent(e)*(n-t)},t.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,n=rr(t),r=ar(t);nthis.max&&(this.max=r),B(this.minLimit)||(this.min=n),B(this.maxLimit)||(this.max=r)},t.prototype.setDomain=function(){var e=Pn(this.values),t=e.min,n=e.max;B(this.min)&&(this.min=t),B(this.max)&&(this.max=n),this.min>this.max&&(this.min=t,this.max=n)},t.prototype.calculateTicks=function(){var t=this,n=e.prototype.calculateTicks.call(this);return this.nice||(n=Qt(n,function(e){return e>=t.min&&e<=t.max})),n},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;return(e-n)/(t-n)},t.prototype.getInvertPercent=function(e){return(e-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t}(Lv)})),Ly,Ry=t((()=>{R(),Iy(),Ly=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`linear`,t.isLinear=!0,t}return t.prototype.invert=function(e){var t=this.getInvertPercent(e);return this.min+t*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod=`wilkinson-extended`,this.nice=!1},t}(Fy)}));function zy(e,t){var n=Math.E;return t>=0?n**+(Math.log(t)/e):n**+(Math.log(-t)/e)*-1}function By(e,t){return e===1?1:Math.log(t)/Math.log(e)}function Vy(e,t,n){B(n)&&(n=Math.max.apply(null,e));var r=n;return H(e,function(e){e>0&&e1&&(r=1),r}var Hy=t((()=>{J()})),Uy,Wy=t((()=>{R(),Hy(),Iy(),Uy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t}return t.prototype.invert=function(e){var t=this.base,n=By(t,this.max),r=this.rangeMin(),i=this.rangeMax()-r,a,o=this.positiveMin;if(o){if(e===0)return 0;a=By(t,o/t);var s=1/(n-a)*i;if(e{R(),Hy(),Iy(),Gy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pow`,t}return t.prototype.invert=function(e){var t=this.getInvertPercent(e),n=this.exponent,r=zy(n,this.max),i=zy(n,this.min),a=t*(r-i)+i;return a**+n*(a>=0?1:-1)},t.prototype.initCfg=function(){this.tickMethod=`pow`,this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;if(t===n)return 0;var r=this.exponent;return(zy(r,e)-zy(r,n))/(zy(r,t)-zy(r,n))},t}(Fy)})),qy,Jy=t((()=>{R(),J(),My(),Ry(),qy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`time`,t}return t.prototype.getText=function(e,t){var n=this.translate(e),r=this.formatter;return r?r(n,t):xy(n,this.mask)},t.prototype.scale=function(t){var n=t;return(U(n)||Bi(n))&&(n=this.translate(n)),e.prototype.scale.call(this,n)},t.prototype.translate=function(e){return Sy(e)},t.prototype.initCfg=function(){this.tickMethod=`time-pretty`,this.mask=`YYYY-MM-DD`,this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var e=this.values,t=this.getConfig(`min`),n=this.getConfig(`max`);if((!B(t)||!W(t))&&(this.min=this.translate(this.min)),(!B(n)||!W(n))&&(this.max=this.translate(this.max)),e&&e.length){var r=[],i=1/0,a=i,o=0;H(e,function(e){var t=Sy(e);if(isNaN(t))throw TypeError(`Invalid Time: `+e+` in time scale!`);i>t?(a=i,i=t):a>t&&(a=t),o1&&(this.minTickInterval=a-i),B(t)&&(this.min=i),B(n)&&(this.max=o)}},t}(Ly)})),Yy,Xy=t((()=>{R(),J(),Iy(),Yy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`quantize`,t}return t.prototype.invert=function(e){var t=this.ticks,n=t.length,r=this.getInvertPercent(e),i=Math.floor(r*(n-1));if(i>=n-1)return ar(t);if(i<0)return rr(t);var a=t[i],o=t[i+1],s=i/(n-1),c=(i+1)/(n-1);return a+(r-s)/(c-s)*(o-a)},t.prototype.initCfg=function(){this.tickMethod=`r-pretty`,this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||(ar(t)!==this.max&&t.push(this.max),rr(t)!==this.min&&t.unshift(this.min)),t},t.prototype.getScalePercent=function(e){var t=this.ticks;if(ear(t))return 1;var n=0;return H(t,function(t,r){if(e>=t)n=r;else return!1}),n/(t.length-1)},t}(Fy)})),Zy,Qy=t((()=>{R(),Xy(),Zy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`quantile`,t}return t.prototype.initCfg=function(){this.tickMethod=`quantile`,this.tickCount=5,this.nice=!0},t}(Yy)}));function $y(e){return tb[e]}function eb(e,t){if($y(e))throw Error(`type '`+e+`' existed.`);tb[e]=t}var tb,nb=t((()=>{Rv(),tb={}})),rb,ib=t((()=>{R(),J(),Rv(),rb=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`identity`,t.isIdentity=!0,t}return t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(e){return this.values[0]!==e&&W(e)?e:this.range[0]},t.prototype.invert=function(e){var t=this.range;return et[1]?NaN:this.values[0]},t}(Lv)}));function ab(e){var t=e.values,n=e.tickInterval,r=e.tickCount,i=e.showLast;if(W(n)){var a=Qt(t,function(e,t){return t%n===0}),o=ar(t);return i&&ar(a)!==o&&a.push(o),a}var s=t.length,c=e.min,l=e.max;if(B(c)&&(c=0),B(l)&&(l=t.length-1),!W(r)||r>=s)return t.slice(c,l+1);if(r<=0||l<=0)return[];for(var u=r===1?s:Math.floor(s/(r-1)),d=[],f=c,p=0;p=l);p++)f=Math.min(c+p*u,l),p===r-1&&i?d.push(t[l]):d.push(t[f]);return d}var ob=t((()=>{J()}));function sb(e){var t=e.min,n=e.max,r=e.nice,i=e.tickCount,a=new mb;return a.domain([t,n]),r&&a.nice(i),a.ticks(i)}function cb(e,t,n){var r,i=-1,a,o,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0)for(e=Math.ceil(e/s),t=Math.floor(t/s),o=Array(a=Math.ceil(t-e+1));++i=0?(a>=db?10:a>=fb?5:a>=pb?2:1)*10**i:-(10**-i)/(a>=db?10:a>=fb?5:a>=pb?2:1)}var ub,db,fb,pb,mb,hb=t((()=>{ub=5,db=Math.sqrt(50),fb=Math.sqrt(10),pb=Math.sqrt(2),mb=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},e.prototype.nice=function(e){var t,n;e===void 0&&(e=ub);var r=this._domain.slice(),i=0,a=this._domain.length-1,o=this._domain[i],s=this._domain[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=lb(o,s,e)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=lb(o,s,e)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c,this.domain(r)):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c,this.domain(r)),this},e.prototype.ticks=function(e){return e===void 0&&(e=ub),cb(this._domain[0],this._domain[this._domain.length-1],e||ub)},e}()}));function gb(e,t,n){return(n===`ceil`?Math.ceil(e/t):n===`floor`?Math.floor(e/t):Math.round(e/t))*t}function _b(e,t,n){var r=gb(e,n,`floor`),i=gb(t,n,`ceil`);r=Nr(r,n),i=Nr(i,n);for(var a=[],o=Math.max((i-r)/(2**12-1),n),s=r;s<=i;s+=o){var c=Nr(s,o);a.push(c)}return{min:r,max:i,ticks:a}}var vb=t((()=>{J()}));function yb(e,t,n){var r,i=e.minLimit,a=e.maxLimit,o=e.min,s=e.max,c=e.tickCount,l=c===void 0?5:c,u=B(i)?B(t)?o:t:i,d=B(a)?B(n)?s:n:a;if(u>d&&(r=[u,d],d=r[0],u=r[1]),l<=2)return[u,d];for(var f=(d-u)/(l-1),p=[],m=0;m{J()}));function xb(e){var t=e.min,n=e.max,r=e.tickInterval,i=e.minLimit,a=e.maxLimit,o=sb(e);return!B(i)||!B(a)?yb(e,rr(o),ar(o)):r?_b(t,n,r).ticks:o}var Sb=t((()=>{J(),hb(),vb(),bb()}));function Cb(e){return Math.abs(e)<1e-15?e:parseFloat(e.toFixed(15))}var wb=t((()=>{}));function Tb(e,t){return(e%t+t)%t}function Eb(e){return Math.round(e*0xe8d4a51000)/0xe8d4a51000}function Db(e,t,n,r,i,a){var o=no(t),s=Ca(t,e),c=0,l=Tb(r,a);return(l=0&&(c=1),1-s/(o-1)-n+c}function Ob(e,t,n){var r=no(t);return 1-Ca(t,e)/(r-1)-n+1}function kb(e,t,n,r,i,a){var o=(e-1)/(a-i),s=(t-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function Ab(e,t){return e>=t?2-(e-1)/(t-1):1}function jb(e,t,n,r){var i=t-e;return 1-.5*((t-r)**2+(e-n)**2)/(.1*i)**2}function Mb(e,t,n){var r=t-e;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function Nb(){return 1}function Pb(e,t,n,r,i,a){n===void 0&&(n=5),r===void 0&&(r=!0),i===void 0&&(i=Fb),a===void 0&&(a=[.25,.2,.5,.05]);var o=n<0?0:Math.round(n);if(Number.isNaN(e)||Number.isNaN(t)||typeof e!=`number`||typeof t!=`number`||!o)return{min:0,max:0,ticks:[]};if(t-e<1e-15||o===1)return{min:e,max:t,ticks:[e]};if(t-e>1e148){var s=n||5,c=(t-e)/s;return{min:e,max:t,ticks:Array(s).fill(null).map(function(t,n){return Cb(e+c*n)})}}for(var l={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var d=0;dl.score&&(!r||C<=e&&w>=t)&&(l.lmin=C,l.lmax=w,l.lstep=T,l.score=A)}_+=1}m+=1}}u+=1}var ee=Cb(l.lmax),te=Cb(l.lmin),j=Cb(l.lstep),M=Math.floor(Eb((ee-te)/j))+1,ne=Array(M);ne[0]=Cb(te);for(var d=1;d{J(),wb(),Fb=[1,5,2,2.5,4,3],Ib=2**-52*100}));function Rb(e){var t=e.min,n=e.max,r=e.tickCount,i=e.nice,a=e.tickInterval,o=e.minLimit,s=e.maxLimit,c=Pb(t,n,r,i).ticks;return!B(o)||!B(s)?yb(e,rr(c),ar(c)):a?_b(t,n,a).ticks:c}var zb=t((()=>{J(),Lb(),vb(),bb()}));function Bb(e){var t=e.base,n=e.tickCount,r=e.min,i=e.max,a=e.values,o,s=By(t,i);if(r>0)o=Math.floor(By(t,r));else{var c=Vy(a,t,i);o=Math.floor(By(t,c))}for(var l=s-o,u=Math.ceil(l/n),d=[],f=o;f{Hy()}));function Hb(e,t,n){if(n===void 0&&(n=5),e===t)return{max:t,min:e,ticks:[e]};var r=n<0?0:Math.round(n);if(r===0)return{max:t,min:e,ticks:[]};var i=1.5,a=.5+1.5*i,o=(t-e)/r,s=10**Math.floor(Math.log10(o)),c=s;2*s-o{wb()}));function Wb(e){var t=e.exponent,n=e.tickCount,r=Math.ceil(zy(t,e.max));return Hb(Math.floor(zy(t,e.min)),r,n).ticks.map(function(e){return e**+t*(e>=0?1:-1)})}var Gb=t((()=>{Hy(),Ub()}));function Kb(e,t){var n=e.length*t;return t===1?e[e.length-1]:t===0?e[0]:n%1==0?e.length%2==0?(e[n-1]+e[n])/2:e[n]:e[Math.ceil(n)-1]}function qb(e){var t=e.tickCount,n=e.values;if(!n||!n.length)return[];for(var r=n.slice().sort(function(e,t){return e-t}),i=[],a=0;a{}));function Yb(e){var t=e.min,n=e.max,r=e.tickCount,i=e.tickInterval,a=e.minLimit,o=e.maxLimit,s=Hb(t,n,r).ticks;return!B(a)||!B(o)?yb(e,rr(s),ar(s)):i?_b(t,n,i).ticks:s}var Xb=t((()=>{J(),vb(),Ub(),bb()}));function Zb(e){var t=e.min,n=e.max,r=e.minTickInterval,i=e.tickInterval,a=e.tickCount;if(i)a=Math.ceil((n-t)/i);else{i=Cy(t,n,a)[1];var o=(n-t)/i/a;o>1&&(i*=Math.ceil(o)),r&&i{My()}));function $b(e){return ab(L({showLast:!0},e))}var ex=t((()=>{R(),ob()}));function tx(e){return new Date(e).getFullYear()}function nx(e){return new Date(e,0,1).getTime()}function rx(e){return new Date(e).getMonth()}function ix(e,t){var n=tx(e),r=tx(t),i=rx(e),a=rx(t);return(r-n)*12+(a-i)%12}function ax(e,t){return new Date(e,t,1).getTime()}function ox(e,t){return Math.ceil((t-e)/Oy)}function sx(e,t){return Math.ceil((t-e)/Dy)}function cx(e,t){return Math.ceil((t-e)/(60*1e3))}function lx(e){var t=e.min,n=e.max,r=e.minTickInterval,i=e.tickCount,a=e.tickInterval,o=[];a||(a=(n-t)/i,r&&a31536e6)for(var c=tx(n),l=Math.ceil(a/Ay),u=s;u<=c+l;u+=l)o.push(nx(u));else if(a>26784e5)for(var d=Math.ceil(a/ky),f=rx(t),p=ix(t,n),u=0;u<=p+d;u+=d)o.push(ax(s,u+f));else if(a>864e5)for(var m=new Date(t),h=m.getFullYear(),g=m.getMonth(),_=m.getDate(),v=Math.ceil(a/Oy),y=ox(t,n),u=0;u36e5)for(var m=new Date(t),h=m.getFullYear(),g=m.getMonth(),v=m.getDate(),b=m.getHours(),x=Math.ceil(a/Dy),S=sx(t,n),u=0;u<=S+x;u+=x)o.push(new Date(h,g,v,b+u).getTime());else if(a>6e4)for(var C=cx(t,n),w=Math.ceil(a/Ey),u=0;u<=C+w;u+=w)o.push(t+u*Ey);else{var T=a;T<1e3&&(T=Ty);for(var E=Math.floor(t/Ty)*Ty,D=Math.ceil((n-t)/Ty),O=Math.ceil(T/Ty),u=0;u=512&&console.warn(`Notice: current ticks length(`+o.length+`) >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is `+a+`) is too small, increase the value to solve the problem!`),o}var ux=t((()=>{My()})),dx=t((()=>{ob(),Sb(),zb(),Vb(),Gb(),Jb(),Xb(),Iv(),Qb(),ex(),ux(),Pv(`cat`,ab),Pv(`time-cat`,$b),Pv(`wilkinson-extended`,Rb),Pv(`r-pretty`,Yb),Pv(`time`,Zb),Pv(`time-pretty`,lx),Pv(`log`,Bb),Pv(`pow`,Wb),Pv(`quantile`,qb),Pv(`d3-linear`,xb)})),fx=r({Category:()=>zv,Identity:()=>rb,Linear:()=>Ly,Log:()=>Uy,Pow:()=>Gy,Quantile:()=>Zy,Quantize:()=>Yy,Scale:()=>Lv,Time:()=>qy,TimeCat:()=>Ny,getScale:()=>$y,getTickMethod:()=>Nv,registerScale:()=>eb,registerTickMethod:()=>Pv}),px=t((()=>{Rv(),Bv(),Py(),Ry(),Wy(),Ky(),Jy(),Xy(),Qy(),nb(),ib(),dx(),eb(`cat`,zv),eb(`category`,zv),eb(`identity`,rb),eb(`linear`,Ly),eb(`log`,Uy),eb(`pow`,Gy),eb(`time`,qy),eb(`timeCat`,Ny),eb(`quantize`,Yy),eb(`quantile`,Zy)})),mx=t((()=>{px()})),hx,gx,_x,vx=t((()=>{av(),mx(),hx={},gx=function(e){return hx[e.toLowerCase()]},_x=function(e,t){if(gx(e))throw Error(`Attribute type '${e}' existed.`);hx[e.toLowerCase()]=t}})),yx=r({Attribute:()=>iv,Color:()=>Cv,Opacity:()=>Tv,Position:()=>Dv,Scale:()=>Lv,Shape:()=>kv,Size:()=>jv,getAttribute:()=>gx,registerAttribute:()=>_x}),bx=t((()=>{av(),wv(),Ev(),Ov(),Av(),Mv(),vx(),mx(),_x(`Color`,Cv),_x(`Opacity`,Tv),_x(`Position`,Dv),_x(`Shape`,kv),_x(`Size`,jv)})),xx,Sx=t((()=>{R(),yu(),J(),xx=function(){function e(e){this.type=`coordinate`,this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=e.start,n=e.end,r=e.matrix,i=r===void 0?[1,0,0,0,1,0,0,0,1]:r,a=e.isTransposed,o=a===void 0?!1:a;this.start=t,this.end=n,this.matrix=i,this.originalMatrix=Ot([],i),this.isTransposed=o}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(e){G(this,e),this.initial()},e.prototype.convertDim=function(e,t){var n,r=this[t],i=r.start,a=r.end;return this.isReflect(t)&&(n=[a,i],i=n[0],a=n[1]),i+e*(a-i)},e.prototype.invertDim=function(e,t){var n,r=this[t],i=r.start,a=r.end;return this.isReflect(t)&&(n=[a,i],i=n[0],a=n[1]),(e-i)/(a-i)},e.prototype.applyMatrix=function(e,t,n){n===void 0&&(n=0);var r=this.matrix,i=[e,t,n];return Jc(i,i,r),i},e.prototype.invertMatrix=function(e,t,n){n===void 0&&(n=0);var r=this.matrix,i=Gs([0,0,0,0,0,0,0,0,0],r),a=[e,t,n];return i&&Jc(a,a,i),a},e.prototype.convert=function(e){var t=this.convertPoint(e),n=t.x,r=t.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},e.prototype.invert=function(e){var t=this.invertMatrix(e.x,e.y,1);return this.invertPoint({x:t[0],y:t[1]})},e.prototype.rotate=function(e){var t=this.matrix,n=this.center;return lu(t,t,[-n.x,-n.y]),uu(t,t,e),lu(t,t,[n.x,n.y]),this},e.prototype.reflect=function(e){return e===`x`?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(e,t){var n=this.matrix,r=this.center;return lu(n,n,[-r.x,-r.y]),du(n,n,[e,t]),lu(n,n,[r.x,r.y]),this},e.prototype.translate=function(e,t){var n=this.matrix;return lu(n,n,[e,t]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(e){return e===`x`?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(e){this.matrix=e||Ot([],this.originalMatrix)},e}()})),Cx,wx=t((()=>{R(),Sx(),Cx=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.isRect=!0,n.type=`cartesian`,n.initial(),n}return t.prototype.initial=function(){e.prototype.initial.call(this);var t=this.start,n=this.end;this.x={start:t.x,end:n.x},this.y={start:t.y,end:n.y}},t.prototype.convertPoint=function(e){var t,n=e.x,r=e.y;return this.isTransposed&&(t=[r,n],n=t[0],r=t[1]),{x:this.convertDim(n,`x`),y:this.convertDim(r,`y`)}},t.prototype.invertPoint=function(e){var t,n=this.invertDim(e.x,`x`),r=this.invertDim(e.y,`y`);return this.isTransposed&&(t=[r,n],n=t[0],r=t[1]),{x:n,y:r}},t}(xx)})),Tx,Ex=t((()=>{R(),yu(),J(),Sx(),Tx=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;n.isHelix=!0,n.type=`helix`;var r=t.startAngle,i=r===void 0?1.25*Math.PI:r,a=t.endAngle,o=a===void 0?7.25*Math.PI:a,s=t.innerRadius,c=s===void 0?0:s,l=t.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=c,n.radius=l,n.initial(),n}return t.prototype.initial=function(){e.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+this.d*.99}},t.prototype.convertPoint=function(e){var t,n=e.x,r=e.y;this.isTransposed&&(t=[r,n],n=t[0],r=t[1]);var i=this.convertDim(n,`x`),a=this.a*i,o=this.convertDim(r,`y`);return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},t.prototype.invertPoint=function(e){var t,n=this.d+this.y.start,r=bl([0,0],[e.x,e.y],[this.center.x,this.center.y]),i=hu(r,[1,0],!0),a=i*this.a;Ml(r){R(),yu(),J(),Sx(),Dx=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;n.isPolar=!0,n.type=`polar`;var r=t.startAngle,i=r===void 0?-Math.PI/2:r,a=t.endAngle,o=a===void 0?Math.PI*3/2:a,s=t.innerRadius,c=s===void 0?0:s,l=t.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=c,n.radius=l,n.initial(),n}return t.prototype.initial=function(){for(e.prototype.initial.call(this);this.endAnglethis.width/n?(o=this.width/n,this.circleCenter={x:this.center.x-(.5-i)*this.width,y:this.center.y-(.5-a)*o*r}):(o=this.height/r,this.circleCenter={x:this.center.x-(.5-i)*o*n,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=o*this.radius:(this.radius<=0||this.radius>o)&&(this.polarRadius=o):this.polarRadius=o,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(e){var t,n=this.getCenter(),r=e.x,i=e.y;return this.isTransposed&&(t=[i,r],r=t[0],i=t[1]),r=this.convertDim(r,`x`),i=this.convertDim(i,`y`),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},t.prototype.invertPoint=function(e){var t,n=this.getCenter(),r=[e.x-n.x,e.y-n.y],i=this,a=i.startAngle,o=i.endAngle;this.isReflect(`x`)&&(t=[o,a],a=t[0],o=t[1]);var s=[1,0,0,0,1,0,0,0,1];uu(s,s,a);var c=[1,0,0];Jc(c,c,s);var l=hu([c[0],c[1]],r,o0?d:-d;var f=this.invertDim(u,`y`),p={x:0,y:0};return p.x=this.isTransposed?f:d,p.y=this.isTransposed?d:f,p},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var e=this.startAngle,t=this.endAngle;if(Math.abs(t-e)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(e),Math.cos(t)],r=[0,Math.sin(e),Math.sin(t)],i=Math.min(e,t);i{})),Ax,jx,Mx,Nx=t((()=>{kx(),Ax={},jx=function(e){return Ax[e.toLowerCase()]},Mx=function(e,t){Ax[e.toLowerCase()]=t}})),Px=r({Coordinate:()=>xx,getCoordinate:()=>jx,registerCoordinate:()=>Mx}),Fx=t((()=>{Sx(),wx(),Ex(),Ox(),Nx(),Mx(`rect`,Cx),Mx(`cartesian`,Cx),Mx(`polar`,Dx),Mx(`helix`,Tx)}));function Ix(e,t,n){var r=new $o(t,n);r.target=e,r.propagationPath.push(e),e.emitDelegation(t,r);for(var i=e.getParent();i;)i.emitDelegation(t,r),r.propagationPath.push(i),i=i.getParent()}var Lx=t((()=>{X()}));function Rx(e,t,n){return n===void 0&&(n=Gx),t?pu(n,[[`t`,-e.x,-e.y],[`r`,t],[`t`,e.x,e.y]]):null}function zx(e,t){return!e.x&&!e.y?null:pu(t||Gx,[[`t`,e.x,e.y]])}function Bx(e){var t=[1,0,0],n=[0,0,0];return Jc(n,t,e),Math.atan2(n[1],n[0])}function Vx(e,t){var n=[0,0];return Ul(n,t,e),n}function Hx(e,t){var n=Vx(e,[t.minX,t.minY]),r=Vx(e,[t.maxX,t.minY]),i=Vx(e,[t.minX,t.maxY]),a=Vx(e,[t.maxX,t.maxY]),o=Math.min(n[0],r[0],i[0],a[0]),s=Math.max(n[0],r[0],i[0],a[0]),c=Math.min(n[1],r[1],i[1],a[1]),l=Math.max(n[1],r[1],i[1],a[1]);return{x:o,y:c,minX:o,minY:c,maxX:s,maxY:l,width:s-o,height:l-c}}function Ux(e,t,n,r){if(t){var i=Rx({x:n,y:r},t,e.getMatrix());e.setMatrix(i)}}function Wx(e,t,n){var r=zx({x:t,y:n});e.attr(`matrix`,r)}var Gx,Kx=t((()=>{yu(),Gx=[1,0,0,0,1,0,0,0,1]}));function qx(e){var t=0,n=0,r=0,i=0;return W(e)?t=n=r=i=e:V(e)&&(t=e[0],r=B(e[1])?e[0]:e[1],i=B(e[2])?e[0]:e[2],n=B(e[3])?r:e[3]),[t,r,i,n]}function Jx(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n])}function Yx(e,t){return!!e.className.match(RegExp(`(\\s|^)`+t+`(\\s|$)`))}function Xx(e){var t=e.start,n=e.end,r=Math.min(t.x,n.x),i=Math.min(t.y,n.y),a=Math.max(t.x,n.x),o=Math.max(t.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}function Zx(e){var t=e.map(function(e){return e.x}),n=e.map(function(e){return e.y}),r=Math.min.apply(Math,t),i=Math.min.apply(Math,n),a=Math.max.apply(Math,t),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}function Qx(e,t,n,r){var i=e+n,a=t+r;return{x:e,y:t,width:n,height:r,minX:e,minY:t,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function $x(e,t,n){return(1-n)*e+t*n}function eS(e,t,n){return{x:e.x+Math.cos(n)*t,y:e.y+Math.sin(n)*t}}function tS(e,t){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}function nS(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),a=Math.min(e.maxY,t.maxY);return Qx(n,r,i-n,a-r)}function rS(e){var t=e.getClip(),n=t&&t.getBBox(),r;if(!e.isGroup())r=e.getBBox();else{var i=1/0,a=-1/0,o=1/0,s=-1/0,c=e.getChildren();c.length>0?H(c,function(e){if(e.get(`visible`)){if(e.isGroup()&&e.get(`children`).length===0)return!0;var t=rS(e),n=e.applyToMatrix([t.minX,t.minY,1]),r=e.applyToMatrix([t.minX,t.maxY,1]),c=e.applyToMatrix([t.maxX,t.minY,1]),l=e.applyToMatrix([t.maxX,t.maxY,1]),u=Math.min(n[0],r[0],c[0],l[0]),d=Math.max(n[0],r[0],c[0],l[0]),f=Math.min(n[1],r[1],c[1],l[1]),p=Math.max(n[1],r[1],c[1],l[1]);ua&&(a=d),fs&&(s=p)}}):(i=0,a=0,o=0,s=0),r=Qx(i,o,a-i,s-o)}return n?nS(r,n):r}function iS(e,t){if(!(!e.getClip()&&!t.getClip())){var n=t.getClip();if(!n){e.setClip(null);return}var r={type:n.get(`type`),attrs:n.attr()};e.setClip(r)}}function aS(e){return e+`px`}function oS(e,t,n,r){var i=r/tS(e,t),a=0;return n===`start`?a=0-i:n===`end`&&(a=1+i),{x:$x(e.x,t.x,a),y:$x(e.y,t.y,a)}}var sS,cS=t((()=>{J(),sS=function(e,t,n){return n===void 0&&(n=(2**-52)**.5),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t){R(),X(),J(),lS={none:[],point:[`x`,`y`],region:[`start`,`end`],points:[`points`],circle:[`center`,`radius`,`startAngle`,`endAngle`]},uS=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.initCfg(),n}return t.prototype.getDefaultCfg=function(){return{id:``,name:``,type:``,locationType:`none`,offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:`easeQuadInOut`},enter:{duration:400,easing:`easeQuadInOut`},leave:{duration:350,easing:`easeQuadIn`}},events:null,defaultCfg:{},visible:!0}},t.prototype.clear=function(){},t.prototype.update=function(e){var t=this,n=this.get(`defaultCfg`)||{};H(e,function(e,r){var i=t.get(r),a=e;i!==e&&(ln(e)&&n[r]&&(a=ya({},n[r],e)),t.set(r,a))}),this.updateInner(e),this.afterUpdate(e)},t.prototype.updateInner=function(e){},t.prototype.afterUpdate=function(e){hi(e,`visible`)&&(e.visible?this.show():this.hide()),hi(e,`capture`)&&this.setCapture(e.capture)},t.prototype.getLayoutBBox=function(){return this.getBBox()},t.prototype.getLocationType=function(){return this.get(`locationType`)},t.prototype.getOffset=function(){return{offsetX:this.get(`offsetX`),offsetY:this.get(`offsetY`)}},t.prototype.setOffset=function(e,t){this.update({offsetX:e,offsetY:t})},t.prototype.setLocation=function(e){var t=L({},e);this.update(t)},t.prototype.getLocation=function(){var e=this,t={},n=lS[this.get(`locationType`)];return H(n,function(n){t[n]=e.get(n)}),t},t.prototype.isList=function(){return!1},t.prototype.isSlider=function(){return!1},t.prototype.init=function(){},t.prototype.initCfg=function(){var e=this;H(this.get(`defaultCfg`),function(t,n){var r=e.get(n);if(ln(r)){var i=ya({},t,r);e.set(n,i)}})},t}(us)})),fS,pS,mS,hS,gS=t((()=>{R(),J(),Lx(),Kx(),cS(),dS(),fS=`update_status`,pS=[`visible`,`tip`,`delegateObject`],mS=[`container`,`group`,`shapesMap`,`isRegister`,`isUpdating`,`destroyed`],hS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},t.prototype.remove=function(){this.clear(),this.get(`group`).remove()},t.prototype.clear=function(){this.get(`group`).clear(),this.set(`shapesMap`,{}),this.clearOffScreenCache(),this.set(`isInit`,!0)},t.prototype.getChildComponentById=function(e){var t=this.getElementById(e);return t&&t.get(`component`)},t.prototype.getElementById=function(e){return this.get(`shapesMap`)[e]},t.prototype.getElementByLocalId=function(e){var t=this.getElementId(e);return this.getElementById(t)},t.prototype.getElementsByName=function(e){var t=[];return H(this.get(`shapesMap`),function(n){n.get(`name`)===e&&t.push(n)}),t},t.prototype.getContainer=function(){return this.get(`container`)},t.prototype.updateInner=function(e){this.offScreenRender(),this.get(`updateAutoRender`)&&this.render()},t.prototype.render=function(){var e=this.get(`offScreenGroup`);e||=this.offScreenRender();var t=this.get(`group`);this.updateElements(e,t),this.deleteElements(),this.applyOffset(),this.get(`eventInitted`)||(this.initEvent(),this.set(`eventInitted`,!0)),this.set(`isInit`,!1)},t.prototype.show=function(){this.get(`group`).show(),this.set(`visible`,!0)},t.prototype.hide=function(){this.get(`group`).hide(),this.set(`visible`,!1)},t.prototype.setCapture=function(e){this.get(`group`).set(`capture`,e),this.set(`capture`,e)},t.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},t.prototype.getBBox=function(){return this.get(`group`).getCanvasBBox()},t.prototype.getLayoutBBox=function(){var e=this.get(`group`),t=this.getInnerLayoutBBox(),n=e.getTotalMatrix();return n&&(t=Hx(n,t)),t},t.prototype.on=function(e,t,n){return this.get(`group`).on(e,t,n),this},t.prototype.off=function(e,t){var n=this.get(`group`);return n&&n.off(e,t),this},t.prototype.emit=function(e,t){this.get(`group`).emit(e,t)},t.prototype.init=function(){e.prototype.init.call(this),this.get(`group`)||this.initGroup(),this.offScreenRender()},t.prototype.getInnerLayoutBBox=function(){return this.get(`offScreenBBox`)||this.get(`group`).getBBox()},t.prototype.delegateEmit=function(e,t){var n=this.get(`group`);t.target=n,n.emit(e,t),Ix(n,e,t)},t.prototype.createOffScreenGroup=function(){return new(this.get(`group`).getGroupBase())({delegateObject:this.getDelegateObject()})},t.prototype.applyOffset=function(){var e=this.get(`offsetX`),t=this.get(`offsetY`);this.moveElementTo(this.get(`group`),{x:e,y:t})},t.prototype.initGroup=function(){var e=this.get(`container`);this.set(`group`,e.addGroup({id:this.get(`id`),name:this.get(`name`),capture:this.get(`capture`),visible:this.get(`visible`),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},t.prototype.offScreenRender=function(){this.clearOffScreenCache();var e=this.createOffScreenGroup();return this.renderInner(e),this.set(`offScreenGroup`,e),this.set(`offScreenBBox`,rS(e)),e},t.prototype.addGroup=function(e,t){this.appendDelegateObject(e,t);var n=e.addGroup(t);return this.get(`isRegister`)&&this.registerElement(n),n},t.prototype.addShape=function(e,t){this.appendDelegateObject(e,t);var n=e.addShape(t);return this.get(`isRegister`)&&this.registerElement(n),n},t.prototype.addComponent=function(e,t){var n=t.id,r=t.component,i=new r(L(L({},pt(t,[`id`,`component`])),{id:n,container:e,updateAutoRender:this.get(`updateAutoRender`)}));return i.init(),i.render(),this.get(`isRegister`)&&this.registerElement(i.get(`group`)),i},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){this.get(`group`).off()},t.prototype.getElementId=function(e){var t=this.get(`id`),n=this.get(`name`);return t+`-`+n+`-`+e},t.prototype.registerElement=function(e){var t=e.get(`id`);this.get(`shapesMap`)[t]=e},t.prototype.unregisterElement=function(e){var t=e.get(`id`);delete this.get(`shapesMap`)[t]},t.prototype.moveElementTo=function(e,t){var n=zx(t);e.attr(`matrix`,n)},t.prototype.addAnimation=function(e,t,n){var r=t.attr(`opacity`);B(r)&&(r=1),t.attr(`opacity`,0),t.animate({opacity:r},n)},t.prototype.removeAnimation=function(e,t,n){t.animate({opacity:0},n)},t.prototype.updateAnimation=function(e,t,n,r){t.animate(n,r)},t.prototype.updateElements=function(e,t){var n=this,r=this.get(`animate`),i=this.get(`animateOption`),a=e.getChildren().slice(0),o;H(a,function(e){var a=e.get(`id`),s=n.getElementById(a),c=e.get(`name`);if(s)if(e.get(`isComponent`)){var l=e.get(`component`),u=s.get(`component`),d=Va(l.cfg,en(fn(l.cfg),mS));u.update(d),s.set(fS,`update`)}else{var f=n.getReplaceAttrs(s,e);r&&i.update?n.updateAnimation(c,s,f,i.update):s.attr(f),e.isGroup()&&n.updateElements(e,s),H(pS,function(t){s.set(t,e.get(t))}),iS(s,e),o=s,s.set(fS,`update`)}else{t.add(e);var p=t.getChildren();if(p.splice(p.length-1,1),o){var m=p.indexOf(o);p.splice(m+1,0,e)}else p.unshift(e);if(n.registerElement(e),e.set(fS,`add`),e.get(`isComponent`)){var l=e.get(`component`);l.set(`container`,t)}else e.isGroup()&&n.registerNewGroup(e);if(o=e,r){var h=n.get(`isInit`)?i.appear:i.enter;h&&n.addAnimation(c,e,h)}}})},t.prototype.clearUpdateStatus=function(e){H(e.getChildren(),function(e){e.set(fS,null)})},t.prototype.clearOffScreenCache=function(){var e=this.get(`offScreenGroup`);e&&e.destroy(),this.set(`offScreenGroup`,null),this.set(`offScreenBBox`,null)},t.prototype.getDelegateObject=function(){var e,t=this.get(`name`);return e={},e[t]=this,e.component=this,e},t.prototype.appendDelegateObject=function(e,t){var n=e.get(`delegateObject`);t.delegateObject||={},G(t.delegateObject,n)},t.prototype.getReplaceAttrs=function(e,t){var n=e.attr(),r=t.attr();return H(n,function(e,t){r[t]===void 0&&(r[t]=void 0)}),r},t.prototype.registerNewGroup=function(e){var t=this;H(e.getChildren(),function(e){t.registerElement(e),e.set(fS,`add`),e.isGroup()&&t.registerNewGroup(e)})},t.prototype.deleteElements=function(){var e=this,t=this.get(`shapesMap`),n=[];H(t,function(e,t){!e.get(fS)||e.destroyed?n.push([t,e]):e.set(fS,null)});var r=this.get(`animate`),i=this.get(`animateOption`);H(n,function(n){var a=n[0],o=n[1];if(!o.destroyed){var s=o.get(`name`);if(r&&i.leave){var c=G({callback:function(){e.removeElement(o)}},i.leave);e.removeAnimation(s,o,c)}else e.removeElement(o)}delete t[a]})},t.prototype.removeElement=function(e){if(e.get(`isGroup`)){var t=e.get(`component`);t&&t.destroy()}e.remove()},t}(uS)}));function _S(e){for(var t=0,n=0;n0&&e.charCodeAt(t)<128?1:2}function yS(e,t,n){n===void 0&&(n=`tail`);var r=e.length,i=``;if(n===`tail`){for(var a=0,o=0;a{bS=`…`}));function SS(e){for(var t=e.map(function(e){var t=e.attr(`text`);return B(t)?``:``+t}),n=0,r=0,i=0;i=19968&&s<=40869?a+=2:a+=1}a>n&&(n=a,r=i)}return e[r].getBBox().width}function CS(e){if(e.length>OS)return SS(e);var t=0;return H(e,function(e){var n=e.getBBox().width;t=0?yS(i,l,r):ES,u&&(t.attr(`text`,u),c=!0)}return c?t.set(`tip`,i):t.set(`tip`,null),c}var ES,DS,OS,kS=t((()=>{J(),xS(),ES=`…`,DS=2,OS=400}));function AS(e,t){var n=t.x,r=t.y,i=t.content,a=t.style,o=t.id,s=t.name,c=t.rotate,l=t.maxLength,u=t.autoEllipsis,d=t.isVertical,f=t.ellipsisPosition,p=t.background,m=e.addGroup({id:o+`-group`,name:s+`-group`,attrs:{x:n,y:r}}),h=m.addShape({type:`text`,id:o,name:s,attrs:L({x:0,y:0,text:i},a)}),g=qx(K(p,`padding`,0));if(l&&u){var _=l-(g[1]+g[3]);TS(!d,h,_,f)}if(p){var v=K(p,`style`,{}),y=h.getCanvasBBox(),b=y.minX,x=y.minY,S=y.width,C=y.height;m.addShape(`rect`,{id:o+`-bg`,name:o+`-bg`,attrs:L({x:b-g[3],y:x-g[0],width:S+g[1]+g[3],height:C+g[0]+g[2]},v)}).toBack()}Wx(m,n,r),Ux(m,c,n,r)}var jS=t((()=>{R(),J(),kS(),Kx(),cS()})),Z,MS=t((()=>{Z={fontFamily:` BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, "sans-serif"`,textColor:`#2C3542`,activeTextColor:`#333333`,uncheckedColor:`#D8D8D8`,lineColor:`#416180`,regionColor:`#CCD7EB`,verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:`#fff`,descriptionIconFill:`rgba(58, 73, 101, .25)`}})),NS,PS=t((()=>{R(),J(),gS(),jS(),MS(),cS(),NS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`line`,locationType:`region`,start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Z.textColor,fontSize:12,textAlign:`center`,textBaseline:`bottom`,fontFamily:Z.fontFamily},text:{position:`center`,autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Z.lineColor,lineWidth:1}}}})},t.prototype.renderInner=function(e){this.renderLine(e),this.get(`text`)&&this.renderLabel(e)},t.prototype.renderLine=function(e){var t=this.get(`start`),n=this.get(`end`),r=this.get(`style`);this.addShape(e,{type:`line`,id:this.getElementId(`line`),name:`annotation-line`,attrs:L({x1:t.x,y1:t.y,x2:n.x,y2:n.y},r)})},t.prototype.getLabelPoint=function(e,t,n){var r=n===`start`?0:n===`center`?.5:U(n)&&n.indexOf(`%`)!==-1?parseInt(n,10)/100:W(n)?n:1;return(r>1||r<0)&&(r=1),{x:$x(e.x,t.x,r),y:$x(e.y,t.y,r)}},t.prototype.renderLabel=function(e){var t=this.get(`text`),n=this.get(`start`),r=this.get(`end`),i=t.position,a=t.content,o=t.style,s=t.offsetX,c=t.offsetY,l=t.autoRotate,u=t.maxLength,d=t.autoEllipsis,f=t.ellipsisPosition,p=t.background,m=t.isVertical,h=m===void 0?!1:m,g=this.getLabelPoint(n,r,i),_=g.x+s,v=g.y+c,y={id:this.getElementId(`line-text`),name:`annotation-line-text`,x:_,y:v,content:a,style:o,maxLength:u,autoEllipsis:d,ellipsisPosition:f,background:p,isVertical:h};if(l){var b=[r.x-n.x,r.y-n.y];y.rotate=Math.atan2(b[1],b[0])}AS(e,y)},t}(hS)})),FS,IS=t((()=>{R(),gS(),jS(),Kx(),MS(),FS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`text`,locationType:`point`,x:0,y:0,content:``,rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:`tail`,defaultCfg:{style:{fill:Z.textColor,fontSize:12,textAlign:`center`,textBaseline:`middle`,fontFamily:Z.fontFamily}}})},t.prototype.setLocation=function(e){this.set(`x`,e.x),this.set(`y`,e.y),this.resetLocation()},t.prototype.renderInner=function(e){var t=this.getLocation(),n=t.x,r=t.y,i=this.get(`content`),a=this.get(`style`);AS(e,{id:this.getElementId(`text`),name:this.get(`name`)+`-text`,x:n,y:r,content:i,style:a,maxLength:this.get(`maxLength`),autoEllipsis:this.get(`autoEllipsis`),isVertical:this.get(`isVertical`),ellipsisPosition:this.get(`ellipsisPosition`),background:this.get(`background`),rotate:this.get(`rotate`)})},t.prototype.resetLocation=function(){var e=this.getElementByLocalId(`text-group`);if(e){var t=this.getLocation(),n=t.x,r=t.y,i=this.get(`rotate`);Wx(e,n,r),Ux(e,i,n,r)}},t}(hS)})),LS,RS=t((()=>{R(),gS(),cS(),LS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`arc`,locationType:`circle`,center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:`#999`,lineWidth:1}})},t.prototype.renderInner=function(e){this.renderArc(e)},t.prototype.getArcPath=function(){var e=this.getLocation(),t=e.center,n=e.radius,r=e.startAngle,i=e.endAngle,a=eS(t,n,r),o=eS(t,n,i),s=+(i-r>Math.PI),c=[[`M`,a.x,a.y]];if(i-r===Math.PI*2){var l=eS(t,n,r+Math.PI);c.push([`A`,n,n,0,s,1,l.x,l.y]),c.push([`A`,n,n,0,s,1,o.x,o.y])}else c.push([`A`,n,n,0,s,1,o.x,o.y]);return c},t.prototype.renderArc=function(e){var t=this.getArcPath(),n=this.get(`style`);this.addShape(e,{type:`path`,id:this.getElementId(`arc`),name:`annotation-arc`,attrs:L({path:t},n)})},t}(hS)})),zS,BS=t((()=>{R(),gS(),MS(),cS(),zS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`region`,locationType:`region`,start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Z.regionColor,opacity:.4}}})},t.prototype.renderInner=function(e){this.renderRegion(e)},t.prototype.renderRegion=function(e){var t=this.get(`start`),n=this.get(`end`),r=this.get(`style`),i=Xx({start:t,end:n});this.addShape(e,{type:`rect`,id:this.getElementId(`region`),name:`annotation-region`,attrs:L({x:i.x,y:i.y,width:i.width,height:i.height},r)})},t}(hS)})),VS,HS=t((()=>{R(),gS(),cS(),VS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`image`,locationType:`region`,start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(e){this.renderImage(e)},t.prototype.getImageAttrs=function(){var e=this.get(`start`),t=this.get(`end`),n=this.get(`style`),r=Xx({start:e,end:t}),i=this.get(`src`);return L({x:r.x,y:r.y,img:i,width:r.width,height:r.height},n)},t.prototype.renderImage=function(e){this.addShape(e,{type:`image`,id:this.getElementId(`image`),name:`annotation-image`,attrs:this.getImageAttrs()})},t}(hS)})),US,WS=t((()=>{R(),J(),gS(),jS(),Kx(),MS(),US=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`dataMarker`,locationType:`point`,x:0,y:0,point:{},line:{},text:{},direction:`upward`,autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:`#FFFFFF`,stroke:`#1890FF`,lineWidth:2}},line:{display:!0,length:20,style:{stroke:Z.lineColor,lineWidth:1}},text:{content:``,display:!0,style:{fill:Z.textColor,opacity:.65,fontSize:12,textAlign:`start`,fontFamily:Z.fontFamily}}}})},t.prototype.renderInner=function(e){K(this.get(`line`),`display`)&&this.renderLine(e),K(this.get(`text`),`display`)&&this.renderText(e),K(this.get(`point`),`display`)&&this.renderPoint(e),this.get(`autoAdjust`)&&this.autoAdjust(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get(`group`),{x:this.get(`x`)+this.get(`offsetX`),y:this.get(`y`)+this.get(`offsetY`)})},t.prototype.renderPoint=function(e){var t=this.getShapeAttrs().point;this.addShape(e,{type:`circle`,id:this.getElementId(`point`),name:`annotation-point`,attrs:t})},t.prototype.renderLine=function(e){var t=this.getShapeAttrs().line;this.addShape(e,{type:`path`,id:this.getElementId(`line`),name:`annotation-line`,attrs:t})},t.prototype.renderText=function(e){var t=this.getShapeAttrs().text,n=t.x,r=t.y,i=t.text,a=pt(t,[`x`,`y`,`text`]),o=this.get(`text`),s=o.background,c=o.maxLength,l=o.autoEllipsis,u=o.isVertival,d=o.ellipsisPosition;AS(e,{x:n,y:r,id:this.getElementId(`text`),name:`annotation-text`,content:i,style:a,background:s,maxLength:c,autoEllipsis:l,isVertival:u,ellipsisPosition:d})},t.prototype.autoAdjust=function(e){var t=this.get(`direction`),n=this.get(`x`),r=this.get(`y`),i=K(this.get(`line`),`length`,0),a=this.get(`coordinateBBox`),o=e.getBBox(),s=o.minX,c=o.maxX,l=o.minY,u=o.maxY,d=e.findById(this.getElementId(`text-group`)),f=e.findById(this.getElementId(`text`)),p=e.findById(this.getElementId(`line`));if(a&&d){var m=d.attr(`x`),h=d.attr(`y`),g=f.getCanvasBBox(),_=g.width,v=g.height,y=0,b=0;if(n+s<=a.minX)if(t===`leftward`)y=1;else{var x=a.minX-(n+s);m=d.attr(`x`)+x}else if(n+c>=a.maxX)if(t===`rightward`)y=-1;else{var x=n+c-a.maxX;m=d.attr(`x`)-x}if(y&&(p&&p.attr(`path`,[[`M`,0,0],[`L`,i*y,0]]),m=(i+2+_)*y),r+l<=a.minY)if(t===`upward`)b=1;else{var x=a.minY-(r+l);h=d.attr(`y`)+x}else if(r+u>=a.maxY)if(t===`downward`)b=-1;else{var x=r+u-a.maxY;h=d.attr(`y`)-x}b&&(p&&p.attr(`path`,[[`M`,0,0],[`L`,0,i*b]]),h=(i+2+v)*b),(m!==d.attr(`x`)||h!==d.attr(`y`))&&Wx(d,m,h)}},t.prototype.getShapeAttrs=function(){var e=K(this.get(`line`),`display`),t=K(this.get(`point`),`style`,{}),n=K(this.get(`line`),`style`,{}),r=K(this.get(`text`),`style`,{}),i=this.get(`direction`),a=e?K(this.get(`line`),`length`,0):0,o=0,s=0,c=`top`,l=`start`;switch(i){case`upward`:s=-1,c=`bottom`;break;case`downward`:s=1,c=`top`;break;case`leftward`:o=-1,l=`end`;break;case`rightward`:o=1,l=`start`;break}return{point:L({x:0,y:0},t),line:L({path:[[`M`,0,0],[`L`,a*o,a*s]]},n),text:L({x:(a+2)*o,y:(a+2)*s,text:K(this.get(`text`),`content`,``),textBaseline:c,textAlign:l},r)}},t}(hS)})),GS,KS=t((()=>{R(),J(),gS(),MS(),cS(),jS(),GS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`dataRegion`,locationType:`points`,points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Z.regionColor,opacity:.4}},text:{content:``,style:{textAlign:`center`,textBaseline:`bottom`,fontSize:12,fill:Z.textColor,fontFamily:Z.fontFamily}}}})},t.prototype.renderInner=function(e){var t=K(this.get(`region`),`style`,{});K(this.get(`text`),`style`,{});var n=this.get(`lineLength`)||0,r=this.get(`points`);if(r.length){var i=Zx(r),a=[];a.push([`M`,r[0].x,i.minY-n]),r.forEach(function(e){a.push([`L`,e.x,e.y])}),a.push([`L`,r[r.length-1].x,r[r.length-1].y-n]),this.addShape(e,{type:`path`,id:this.getElementId(`region`),name:`annotation-region`,attrs:L({path:a},t)}),AS(e,L({id:this.getElementId(`text`),name:`annotation-text`,x:(i.minX+i.maxX)/2,y:i.minY-n},this.get(`text`)))}},t}(hS)})),qS,JS=t((()=>{R(),J(),gS(),cS(),qS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`regionFilter`,locationType:`region`,start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(e){var t=this,n=this.get(`start`),r=this.get(`end`),i=this.addGroup(e,{id:this.getElementId(`region-filter`),capture:!1});H(this.get(`shapes`),function(e,n){var r=e.get(`type`),a=da(e.attr());t.adjustShapeAttrs(a),t.addShape(i,{id:t.getElementId(`shape-`+r+`-`+n),capture:!1,type:r,attrs:a})});var a=Xx({start:n,end:r});i.setClip({type:`rect`,attrs:{x:a.minX,y:a.minY,width:a.width,height:a.height}})},t.prototype.adjustShapeAttrs=function(e){var t=this.get(`color`);e.fill&&=e.fillStyle=t,e.stroke=e.strokeStyle=t},t}(hS)})),YS,XS=t((()=>{R(),J(),gS(),YS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`shape`,draw:Qa})},t.prototype.renderInner=function(e){var t=this.get(`render`);z(t)&&t(e)},t}(hS)}));function ZS(e,t,n){if(e){if(typeof e.addEventListener==`function`)return e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}};if(typeof e.attachEvent==`function`)return e.attachEvent(`on`+t,n),{remove:function(){e.detachEvent(`on`+t,n)}}}}var QS=t((()=>{}));function $S(){tC=document.createElement(`table`),nC=document.createElement(`tr`),rC=/^\s*<(\w+|!)[^>]*>/,iC={tr:document.createElement(`tbody`),tbody:tC,thead:tC,tfoot:tC,td:nC,th:nC,"*":document.createElement(`div`)}}function eC(e){tC||$S();var t=rC.test(e)&&RegExp.$1;(!t||!(t in iC))&&(t=`*`);var n=iC[t];e=typeof e==`string`?e.replace(/(^\s*)|(\s*$)/g,``):e,n.innerHTML=``+e;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}var tC,nC,rC,iC,aC=t((()=>{}));function oC(e,t,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch{}finally{r=r===void 0?n:r}return r}var sC=t((()=>{}));function cC(e,t){var n=oC(e,`height`,t);return n===`auto`&&(n=e.offsetHeight),parseFloat(n)}var lC=t((()=>{sC()}));function uC(e,t){var n=cC(e,t),r=parseFloat(oC(e,`borderTopWidth`))||0,i=parseFloat(oC(e,`paddingTop`))||0,a=parseFloat(oC(e,`paddingBottom`))||0,o=parseFloat(oC(e,`borderBottomWidth`))||0,s=parseFloat(oC(e,`marginTop`))||0,c=parseFloat(oC(e,`marginBottom`))||0;return n+r+o+i+a+s+c}var dC=t((()=>{sC(),lC()}));function fC(e,t){var n=oC(e,`width`,t);return n===`auto`&&(n=e.offsetWidth),parseFloat(n)}var pC=t((()=>{sC()}));function mC(e,t){var n=fC(e,t),r=parseFloat(oC(e,`borderLeftWidth`))||0,i=parseFloat(oC(e,`paddingLeft`))||0,a=parseFloat(oC(e,`paddingRight`))||0,o=parseFloat(oC(e,`borderRightWidth`))||0,s=parseFloat(oC(e,`marginRight`))||0,c=parseFloat(oC(e,`marginLeft`))||0;return n+r+o+i+a+c+s}var hC=t((()=>{sC(),pC()}));function gC(){return window.devicePixelRatio?window.devicePixelRatio:2}var _C=t((()=>{}));function vC(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e}var yC=t((()=>{})),bC=r({addEventListener:()=>ZS,createDom:()=>eC,getHeight:()=>cC,getOuterHeight:()=>uC,getOuterWidth:()=>mC,getRatio:()=>gC,getStyle:()=>oC,getWidth:()=>fC,modifyCSS:()=>vC}),xC=t((()=>{QS(),aC(),lC(),dC(),hC(),_C(),sC(),pC(),yC()})),SC,CC=t((()=>{R(),xC(),J(),cS(),dS(),SC=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{container:null,containerTpl:`
`,updateAutoRender:!0,containerClassName:``,parent:null})},t.prototype.getContainer=function(){return this.get(`container`)},t.prototype.show=function(){var e=this.get(`container`);e.style.display=``,this.set(`visible`,!0)},t.prototype.hide=function(){var e=this.get(`container`);e.style.display=`none`,this.set(`visible`,!1)},t.prototype.setCapture=function(e){var t=this.getContainer(),n=e?`auto`:`none`;t.style.pointerEvents=n,this.set(`capture`,e)},t.prototype.getBBox=function(){var e=this.getContainer();return Qx(parseFloat(e.style.left)||0,parseFloat(e.style.top)||0,e.clientWidth,e.clientHeight)},t.prototype.clear=function(){Jx(this.get(`container`))},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get(`capture`))},t.prototype.initVisible=function(){this.get(`visible`)?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var e=this.get(`container`);if(B(e)){e=this.createDom();var t=this.get(`parent`);U(t)&&(t=document.getElementById(t),this.set(`parent`,t)),t.appendChild(e),this.get(`containerId`)&&e.setAttribute(`id`,this.get(`containerId`)),this.set(`container`,e)}else U(e)&&(e=document.getElementById(e),this.set(`container`,e));this.get(`parent`)||this.set(`parent`,e.parentNode)},t.prototype.resetStyles=function(){var e=this.get(`domStyles`),t=this.get(`defaultStyles`);e=e?ya({},t,e):t,this.set(`domStyles`,e)},t.prototype.applyStyles=function(){var e=this.get(`domStyles`);if(e){var t=this.getContainer();this.applyChildrenStyles(t,e);var n=this.get(`containerClassName`);if(n&&Yx(t,n)){var r=e[n];vC(t,r)}}},t.prototype.applyChildrenStyles=function(e,t){H(t,function(t,n){H(e.getElementsByClassName(n),function(e){vC(e,t)})})},t.prototype.applyStyle=function(e,t){vC(t,this.get(`domStyles`)[e])},t.prototype.createDom=function(){return eC(this.get(`containerTpl`))},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var e=this.get(`container`);e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(e){hi(e,`domStyles`)&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}(uS)})),wC,TC=t((()=>{R(),xC(),J(),CC(),cS(),wC=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`html`,locationType:`point`,x:0,y:0,containerTpl:`
`,alignX:`left`,alignY:`top`,html:``,zIndex:7})},t.prototype.render=function(){var e=this.getContainer(),t=this.get(`html`);Jx(e);var n=z(t)?t(e):t;if(ta(n))e.appendChild(n);else if(U(n)||W(n)){var r=eC(``+n);r&&e.appendChild(r)}this.resetPosition()},t.prototype.resetPosition=function(){var e=this.getContainer(),t=this.getLocation(),n=t.x,r=t.y,i=this.get(`alignX`),a=this.get(`alignY`),o=this.get(`offsetX`),s=this.get(`offsetY`),c=mC(e),l=uC(e),u={x:n,y:r};i===`middle`?u.x-=Math.round(c/2):i===`right`&&(u.x-=Math.round(c)),a===`middle`?u.y-=Math.round(l/2):a===`bottom`&&(u.y-=Math.round(l)),o&&(u.x+=o),s&&(u.y+=s),vC(e,{position:`absolute`,left:u.x+`px`,top:u.y+`px`,zIndex:this.get(`zIndex`)})},t}(SC)})),EC=r({Arc:()=>LS,DataMarker:()=>US,DataRegion:()=>GS,Html:()=>wC,Image:()=>VS,Line:()=>NS,Region:()=>zS,RegionFilter:()=>qS,Shape:()=>YS,Text:()=>FS}),DC=t((()=>{PS(),IS(),RS(),BS(),HS(),WS(),KS(),JS(),XS(),TC()}));function OC(e,t,n){var r=t+`Style`,i=null;return H(n,function(t,n){e[n]&&t[r]&&(i||={},G(i,t[r]))}),i}var kC=t((()=>{J()})),AC,jC=t((()=>{R(),yu(),J(),gS(),Kx(),kC(),MS(),AC=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`axis`,ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:[`autoRotate`,`autoEllipsis`,`autoHide`],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Z.lineColor}},tickLine:{style:{lineWidth:1,stroke:Z.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Z.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Z.textColor,fontFamily:Z.fontFamily,fontWeight:`normal`},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:`center`,style:{fontSize:12,fill:Z.textColor,textBaseline:`middle`,fontFamily:Z.fontFamily,textAlign:`center`},iconStyle:{fill:Z.descriptionIconFill,stroke:Z.descriptionIconStroke},description:``},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Z.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(e){this.get(`line`)&&this.drawLine(e),this.drawTicks(e),this.get(`title`)&&this.drawTitle(e)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get(`ticks`)},t.prototype.setItems=function(e){this.update({ticks:e})},t.prototype.updateItem=function(e,t){G(e,t),this.clear(),this.render()},t.prototype.clearItems=function(){var e=this.getElementByLocalId(`label-group`);e&&e.clear()},t.prototype.setItemState=function(e,t,n){e[t]=n,this.updateTickStates(e)},t.prototype.hasState=function(e,t){return!!e[t]},t.prototype.getItemStates=function(e){var t=this.get(`tickStates`),n=[];return H(t,function(t,r){e[r]&&n.push(r)}),n},t.prototype.clearItemsState=function(e){var t=this;H(this.getItemsByState(e),function(n){t.setItemState(n,e,!1)})},t.prototype.getItemsByState=function(e){var t=this;return Qt(this.getItems(),function(n){return t.hasState(n,e)})},t.prototype.getSidePoint=function(e,t){var n=this.getSideVector(t,e);return{x:e.x+n[0],y:e.y+n[1]}},t.prototype.getTextAnchor=function(e){var t;return Wr(e[0],0)?t=`center`:e[0]>0?t=`start`:e[0]<0&&(t=`end`),t},t.prototype.getTextBaseline=function(e){var t;return Wr(e[1],0)?t=`middle`:e[1]>0?t=`top`:e[1]<0&&(t=`bottom`),t},t.prototype.processOverlap=function(e){},t.prototype.drawLine=function(e){var t=this.getLinePath(),n=this.get(`line`);this.addShape(e,{type:`path`,id:this.getElementId(`line`),name:`axis-line`,attrs:G({path:t},n.style)})},t.prototype.getTickLineItems=function(e){var t=this,n=[],r=this.get(`tickLine`),i=r.alignTick,a=r.length,o=1;return e.length>=2&&(o=e[1].value-e[0].value),H(e,function(e){var r=e.point;i||(r=t.getTickPoint(e.value-o/2));var s=t.getSidePoint(r,a);n.push({startPoint:r,tickValue:e.value,endPoint:s,tickId:e.id,id:`tickline-`+e.id})}),n},t.prototype.getSubTickLineItems=function(e){var t=[],n=this.get(`subTickLine`),r=n.count,i=e.length;if(i>=2)for(var a=0;a0){var n=no(t);if(n>e.threshold){var r=Math.ceil(n/e.threshold),i=t.filter(function(e,t){return t%r===0});this.set(`ticks`,i),this.set(`originalTicks`,t)}}},t.prototype.getLabelAttrs=function(e,t,n){var r=this.get(`label`),i=r.offset,a=r.offsetX,o=r.offsetY,s=r.rotate,c=r.formatter,l=this.getSidePoint(e.point,i),u=this.getSideVector(i,l),d=c?c(e.name,e,t):e.name,f=r.style;f=z(f)?K(this.get(`theme`),[`label`,`style`],{}):f;var p=G({x:l.x+a,y:l.y+o,text:d,textAlign:this.getTextAnchor(u),textBaseline:this.getTextBaseline(u)},f);return s&&(p.matrix=Rx(l,s)),p},t.prototype.drawLabels=function(e){var t=this,n=this.get(`ticks`),r=this.addGroup(e,{name:`axis-label-group`,id:this.getElementId(`label-group`)});H(n,function(e,i){t.addShape(r,{type:`text`,name:`axis-label`,id:t.getElementId(`label-`+e.id),attrs:t.getLabelAttrs(e,i,n),delegateObject:{tick:e,item:e,index:i}})}),this.processOverlap(r);var i=r.getChildren(),a=K(this.get(`theme`),[`label`,`style`],{}),o=this.get(`label`),s=o.style,c=o.formatter;if(z(s)){var l=i.map(function(e){return K(e.get(`delegateObject`),`tick`)});H(i,function(e,t){var n=e.get(`delegateObject`).tick,r=G({},a,s(c?c(n.name,n,t):n.name,t,l));e.attr(r)})}},t.prototype.getTitleAttrs=function(){var e=this.get(`title`),t=e.style,n=e.position,r=e.offset,i=e.spacing,a=i===void 0?0:i,o=e.autoRotate,s=t.fontSize,c=.5;n===`start`?c=0:n===`end`&&(c=1);var l=this.getTickPoint(c),u=this.getSidePoint(l,r||a+s/2),d=G({x:u.x,y:u.y,text:e.text},t),f=e.rotate,p=f;return B(f)&&o&&(p=hu(this.getAxisVector(l),[1,0],!0)),p&&(d.matrix=Rx(u,p)),d},t.prototype.drawTitle=function(e){var t=this.getTitleAttrs(),n=this.addShape(e,{type:`text`,id:this.getElementId(`title`),name:`axis-title`,attrs:t});this.get(`title`)?.description&&this.drawDescriptionIcon(e,n,t.matrix)},t.prototype.drawDescriptionIcon=function(e,t,n){var r=this.addGroup(e,{name:`axis-description`,id:this.getElementById(`description`)}),i=t.getBBox(),a=i.maxX,o=i.maxY,s=i.height,c=this.get(`title`).iconStyle,l=4,u=s/2,d=u/6,f=a+l,p=o-s/2,m=[f+u,p-u],h=m[0],g=m[1],_=[h+u,g+u],v=_[0],y=_[1],b=[h,y+u],x=b[0],S=b[1],C=[f,g+u],w=C[0],T=C[1],E=[f+u,p-s/4],D=E[0],O=E[1],k=[D,O+d],A=k[0],ee=k[1],te=[A,ee+d],j=te[0],M=te[1],ne=[j,M+u*3/4],re=ne[0],ie=ne[1];this.addShape(r,{type:`path`,id:this.getElementId(`title-description-icon`),name:`axis-title-description-icon`,attrs:L({path:[[`M`,h,g],[`A`,u,u,0,0,1,v,y],[`A`,u,u,0,0,1,x,S],[`A`,u,u,0,0,1,w,T],[`A`,u,u,0,0,1,h,g],[`M`,D,O],[`L`,A,ee],[`M`,j,M],[`L`,re,ie]],lineWidth:d,matrix:n},c)}),this.addShape(r,{type:`rect`,id:this.getElementId(`title-description-rect`),name:`axis-title-description-rect`,attrs:{x:f,y:p-s/2,width:s,height:s,stroke:`#000`,fill:`#000`,opacity:0,matrix:n,cursor:`pointer`}})},t.prototype.applyTickStates=function(e,t){if(this.getItemStates(e).length){var n=this.get(`tickStates`),r=this.getElementId(`label-`+e.id),i=t.findById(r);if(i){var a=OC(e,`label`,n);a&&i.attr(a)}var o=this.getElementId(`tickline-`+e.id),s=t.findById(o);if(s){var c=OC(e,`tickLine`,n);c&&s.attr(c)}}},t.prototype.updateTickStates=function(e){var t=this.getItemStates(e),n=this.get(`tickStates`),r=this.get(`label`),i=this.getElementByLocalId(`label-`+e.id),a=this.get(`tickLine`),o=this.getElementByLocalId(`tickline-`+e.id);if(t.length){if(i){var s=OC(e,`label`,n);s&&i.attr(s)}if(o){var c=OC(e,`tickLine`,n);c&&o.attr(c)}}else i&&i.attr(r.style),o&&o.attr(a.style)},t}(hS)})),MC=r({ellipsisHead:()=>FC,ellipsisMiddle:()=>LC,ellipsisTail:()=>IC,getDefault:()=>PC});function NC(e,t,n,r){var i=t.getChildren(),a=!1;return H(i,function(t){var i=TS(e,t,n,r);a||=i}),a}function PC(){return IC}function FC(e,t,n){return NC(e,t,n,`head`)}function IC(e,t,n){return NC(e,t,n,`tail`)}function LC(e,t,n){return NC(e,t,n,`middle`)}var RC=t((()=>{J(),kS()})),zC=r({equidistance:()=>YC,equidistanceWithReverseBoth:()=>XC,getDefault:()=>GC,reserveBoth:()=>JC,reserveFirst:()=>KC,reserveLast:()=>qC});function BC(e){var t=e.attr(`matrix`);return t&&t[0]!==1}function VC(e){return(BC(e)?Bx(e.attr(`matrix`)):0)%360}function HC(e,t,n,r){var i=!1,a=VC(t),o=Math.abs(e?n.attr(`y`)-t.attr(`y`):n.attr(`x`)-t.attr(`x`)),s=(e?n.attr(`y`)>t.attr(`y`):n.attr(`x`)>t.attr(`x`))?t.getBBox():n.getBBox();if(e){var c=Math.abs(Math.cos(a));i=sS(c,0,Math.PI/180)?s.width+r>o:s.height/c+r>o}else{var c=Math.abs(Math.sin(a));i=sS(c,0,Math.PI/180)?s.width+r>o:s.height/c+r>o}return i}function UC(e,t,n,r){var i=r?.minGap||0,a=t.getChildren().slice().filter(function(e){return e.get(`visible`)});if(!a.length)return!1;var o=!1;n&&a.reverse();for(var s=a.length,c=a[0],l=1;l1){f=Math.ceil(f);for(var h=0;h2){var o=i[0],s=i[i.length-1];o.get(`visible`)||(o.show(),UC(e,t,!1,r)&&(a=!0)),s.get(`visible`)||(s.show(),UC(e,t,!0,r)&&(a=!0))}return a}var ZC=t((()=>{kS(),Kx(),cS()})),QC=r({fixedAngle:()=>nw,getDefault:()=>tw,unfixedAngle:()=>rw});function $C(e,t){H(e,function(e){var n=Rx({x:e.attr(`x`),y:e.attr(`y`)},t);e.attr(`matrix`,n)})}function ew(e,t,n,r){var i=t.getChildren();if(!i.length||!e&&i.length<2)return!1;var a=CS(i),o=!1;return o=e?!!n&&a>n:a>Math.abs(i[1].attr(`x`)-i[0].attr(`x`)),o&&$C(i,r(n,a)),o}function tw(){return nw}function nw(e,t,n,r){return ew(e,t,n,function(){return W(r)?r:e?Z.verticalAxisRotate:Z.horizontalAxisRotate})}function rw(e,t,n){return ew(e,t,n,function(t,n){if(!t)return e?Z.verticalAxisRotate:Z.horizontalAxisRotate;if(e)return-Math.acos(t/n);var r=0;return t>n?r=Math.PI/4:(r=Math.asin(t/n),r>Math.PI/4&&(r=Math.PI/4)),r})}var iw=t((()=>{J(),kS(),Kx(),MS()})),aw=r({autoEllipsis:()=>MC,autoHide:()=>zC,autoRotate:()=>QC}),ow=t((()=>{RC(),ZC(),iw()})),sw,cw=t((()=>{R(),yu(),J(),jC(),ow(),sw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`line`,locationType:`region`,start:null,end:null})},t.prototype.getLinePath=function(){var e=this.get(`start`),t=this.get(`end`),n=[];return n.push([`M`,e.x,e.y]),n.push([`L`,t.x,t.y]),n},t.prototype.getInnerLayoutBBox=function(){var t=this.get(`start`),n=this.get(`end`),r=e.prototype.getInnerLayoutBBox.call(this),i=Math.min(t.x,n.x,r.x),a=Math.min(t.y,n.y,r.y),o=Math.max(t.x,n.x,r.maxX),s=Math.max(t.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},t.prototype.isVertical=function(){var e=this.get(`start`),t=this.get(`end`);return Wr(e.x,t.x)},t.prototype.isHorizontal=function(){var e=this.get(`start`),t=this.get(`end`);return Wr(e.y,t.y)},t.prototype.getTickPoint=function(e){var t=this,n=t.get(`start`),r=t.get(`end`),i=r.x-n.x,a=r.y-n.y;return{x:n.x+i*e,y:n.y+a*e}},t.prototype.getSideVector=function(e){var t=Il([0,0],this.getAxisVector()),n=this.get(`verticalFactor`);return Ol([0,0],[t[1],t[0]*-1],e*n)},t.prototype.getAxisVector=function(){var e=this.get(`start`),t=this.get(`end`);return[t.x-e.x,t.y-e.y]},t.prototype.processOverlap=function(e){var t=this,n=this.isVertical(),r=this.isHorizontal();if(!(!n&&!r)){var i=this.get(`label`),a=this.get(`title`),o=this.get(`verticalLimitLength`),s=i.offset,c=o,l=0,u=0;if(a&&(l=a.style.fontSize,u=a.spacing),c&&=c-s-u-l,H(this.get(`overlapOrder`),function(n){i[n]&&t.canProcessOverlap(n)&&t.autoProcessOverlap(n,i[n],e,c)}),a&&B(a.offset)){var d=e.getCanvasBBox();a.offset=s+(n?d.width:d.height)+u+l/2}}},t.prototype.canProcessOverlap=function(e){var t=this.get(`label`);return e===`autoRotate`?B(t.rotate):!0},t.prototype.autoProcessOverlap=function(e,t,n,r){var i=this,a=this.isVertical(),o=!1,s=aw[e];if(t===!0)this.get(`label`),o=s.getDefault()(a,n,r);else if(z(t))o=t(a,n,r);else if(ln(t)){var c=t;s[c.type]&&(o=s[c.type](a,n,r,c.cfg))}else s[t]&&(o=s[t](a,n,r));if(e===`autoRotate`){if(o){var l=n.getChildren(),u=this.get(`verticalFactor`);H(l,function(e){if(e.attr(`textAlign`)===`center`){var t=u>0?`end`:`start`;e.attr(`textAlign`,t)}})}}else e===`autoHide`&&H(n.getChildren().slice(0),function(e){e.get(`visible`)||(i.get(`isRegister`)&&i.unregisterElement(e),e.remove())})},t}(AC)})),lw,uw=t((()=>{R(),J(),yu(),jC(),ow(),lw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`circle`,locationType:`circle`,center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getLinePath=function(){var e=this.get(`center`),t=e.x,n=e.y,r=this.get(`radius`),i=r,a=this.get(`startAngle`),o=this.get(`endAngle`),s=[];if(Math.abs(o-a)===Math.PI*2)s=[[`M`,t,n-i],[`A`,r,i,0,1,1,t,n+i],[`A`,r,i,0,1,1,t,n-i],[`Z`]];else{var c=this.getCirclePoint(a),l=this.getCirclePoint(o),u=+(Math.abs(o-a)>Math.PI),d=a>o?0:1;s=[[`M`,t,n],[`L`,c.x,c.y],[`A`,r,i,0,u,d,l.x,l.y],[`L`,t,n]]}return s},t.prototype.getTickPoint=function(e){var t=this.get(`startAngle`),n=t+(this.get(`endAngle`)-t)*e;return this.getCirclePoint(n)},t.prototype.getSideVector=function(e,t){var n=this.get(`center`),r=[t.x-n.x,t.y-n.y],i=this.get(`verticalFactor`),a=Ml(r);return Ol(r,r,i*e/a),r},t.prototype.getAxisVector=function(e){var t=this.get(`center`),n=[e.x-t.x,e.y-t.y];return[n[1],-1*n[0]]},t.prototype.getCirclePoint=function(e,t){var n=this.get(`center`);return t||=this.get(`radius`),{x:n.x+Math.cos(e)*t,y:n.y+Math.sin(e)*t}},t.prototype.canProcessOverlap=function(e){var t=this.get(`label`);return e===`autoRotate`?B(t.rotate):!0},t.prototype.processOverlap=function(e){var t=this,n=this.get(`label`),r=this.get(`title`),i=this.get(`verticalLimitLength`),a=n.offset,o=i,s=0,c=0;r&&(s=r.style.fontSize,c=r.spacing),o&&=o-a-c-s,H(this.get(`overlapOrder`),function(r){n[r]&&t.canProcessOverlap(r)&&t.autoProcessOverlap(r,n[r],e,o)}),r&&B(r.offset)&&(r.offset=a+e.getCanvasBBox().height+c+s/2)},t.prototype.autoProcessOverlap=function(e,t,n,r){var i=this,a=!1,o=aw[e];if(r>0)if(t===!0)a=o.getDefault()(!1,n,r);else if(z(t))a=t(!1,n,r);else if(ln(t)){var s=t;o[s.type]&&(a=o[s.type](!1,n,r,s.cfg))}else o[t]&&(a=o[t](!1,n,r));if(e===`autoRotate`){if(a){var c=n.getChildren(),l=this.get(`verticalFactor`);H(c,function(e){if(e.attr(`textAlign`)===`center`){var t=l>0?`end`:`start`;e.attr(`textAlign`,t)}})}}else e===`autoHide`&&H(n.getChildren().slice(0),function(e){e.get(`visible`)||(i.get(`isRegister`)&&i.unregisterElement(e),e.remove())})},t}(AC)})),dw=r({Base:()=>AC,Circle:()=>lw,Line:()=>sw}),fw=t((()=>{cw(),uw(),jC()})),pw,mw=t((()=>{R(),J(),gS(),Kx(),MS(),cS(),pw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`crosshair`,type:`base`,line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Z.lineColor}},text:{position:`start`,offset:10,autoRotate:!1,content:null,style:{fill:Z.textColor,textAlign:`center`,textBaseline:`middle`,fontFamily:Z.fontFamily}},textBackground:{padding:5,style:{stroke:Z.lineColor}}}})},t.prototype.renderInner=function(e){this.get(`line`)&&this.renderLine(e),this.get(`text`)&&(this.renderText(e),this.renderBackground(e))},t.prototype.renderText=function(e){var t=this.get(`text`),n=t.style,r=t.autoRotate,i=t.content;if(!B(i)){var a=this.getTextPoint(),o=null;r&&(o=Rx(a,this.getRotateAngle())),this.addShape(e,{type:`text`,name:`crosshair-text`,id:this.getElementId(`text`),attrs:L(L(L({},a),{text:i,matrix:o}),n)})}},t.prototype.renderLine=function(e){var t=this.getLinePath(),n=this.get(`line`).style;this.addShape(e,{type:`path`,name:`crosshair-line`,id:this.getElementId(`line`),attrs:L({path:t},n)})},t.prototype.renderBackground=function(e){var t=this.getElementId(`text`),n=e.findById(t),r=this.get(`textBackground`);if(r&&n){var i=n.getBBox(),a=qx(r.padding),o=r.style;this.addShape(e,{type:`rect`,name:`crosshair-text-background`,id:this.getElementId(`text-background`),attrs:L({x:i.x-a[3],y:i.y-a[0],width:i.width+a[1]+a[3],height:i.height+a[0]+a[2],matrix:n.attr(`matrix`)},o)}).toBack()}},t}(hS)})),hw,gw=t((()=>{R(),cS(),mw(),hw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`line`,locationType:`region`,start:null,end:null})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.start,n=e.end,r=this.get(`text`).position,i=Math.atan2(n.y-t.y,n.x-t.x);return r===`start`?i-Math.PI/2:i+Math.PI/2},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,n=e.end,r=this.get(`text`),i=r.position,a=r.offset;return oS(t,n,i,a)},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.start,n=e.end;return[[`M`,t.x,t.y],[`L`,n.x,n.y]]},t}(pw)})),_w,vw=t((()=>{R(),cS(),mw(),_w=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`circle`,locationType:`circle`,center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.startAngle,n=e.endAngle;return this.get(`text`).position===`start`?t+Math.PI/2:n-Math.PI/2},t.prototype.getTextPoint=function(){var e=this.get(`text`),t=e.position,n=e.offset,r=this.getLocation(),i=r.center,a=r.radius,o=r.startAngle,s=r.endAngle,c=t===`start`?o:s,l=this.getRotateAngle()-Math.PI,u=eS(i,a,c),d=Math.cos(l)*n,f=Math.sin(l)*n;return{x:u.x+d,y:u.y+f}},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.center,n=e.radius,r=e.startAngle,i=e.endAngle,a=null;if(i-r===Math.PI*2){var o=t.x,s=t.y;a=[[`M`,o,s-n],[`A`,n,n,0,1,1,o,s+n],[`A`,n,n,0,1,1,o,s-n],[`Z`]]}else{var c=eS(t,n,r),l=eS(t,n,i),u=+(Math.abs(i-r)>Math.PI),d=r>i?0:1;a=[[`M`,c.x,c.y],[`A`,n,n,0,u,d,l.x,l.y]]}return a},t}(pw)})),yw,bw,xw,Sw=t((()=>{yw=`g2-crosshair`,bw=yw+`-line`,xw=yw+`-text`})),Cw,ww,Tw=t((()=>{MS(),Sw(),ww=(Cw={},Cw[``+yw]={position:`relative`},Cw[``+bw]={position:`absolute`,backgroundColor:`rgba(0, 0, 0, 0.25)`},Cw[``+xw]={position:`absolute`,color:Z.textColor,fontFamily:Z.fontFamily},Cw)})),Ew,Dw=t((()=>{R(),xC(),J(),cS(),CC(),Sw(),Tw(),Ew=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`crosshair`,type:`html`,locationType:`region`,start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:`
`,crosshairTpl:`
`,textTpl:`{content}`,domStyles:null,containerClassName:yw,defaultStyles:ww,defaultCfg:{text:{position:`start`,content:null,align:`center`,offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var e=this.getContainer(),t=eC(this.get(`crosshairTpl`));e.appendChild(t),this.applyStyle(bw,t),this.set(`crosshairEl`,t)},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,n=e.end,r=this.get(`text`),i=r.position,a=r.offset;return oS(t,n,i,a)},t.prototype.resetText=function(){var e=this.get(`text`),t=this.get(`textEl`);if(e){var n=e.content;if(!t){var r=this.getContainer();t=eC(Di(this.get(`textTpl`),e)),r.appendChild(t),this.applyStyle(xw,t),this.set(`textEl`,t)}t.innerHTML=n}else t&&t.remove()},t.prototype.isVertical=function(e,t){return e.x===t.x},t.prototype.resetPosition=function(){var e=this.get(`crosshairEl`);e||=(this.initCrossHair(),this.get(`crosshairEl`));var t=this.get(`start`),n=this.get(`end`),r=Math.min(t.x,n.x),i=Math.min(t.y,n.y);this.isVertical(t,n)?vC(e,{width:`1px`,height:aS(Math.abs(n.y-t.y))}):vC(e,{height:`1px`,width:aS(Math.abs(n.x-t.x))}),vC(e,{top:aS(i),left:aS(r)}),this.alignText()},t.prototype.alignText=function(){var e=this.get(`textEl`);if(e){var t=this.get(`text`).align,n=e.clientWidth,r=this.getTextPoint();switch(t){case`center`:r.x-=n/2;break;case`right`:r.x-=n;case`left`:break}vC(e,{top:aS(r.y),left:aS(r.x)})}},t.prototype.updateInner=function(t){hi(t,`text`)&&this.resetText(),e.prototype.updateInner.call(this,t)},t}(SC)})),Ow=r({Base:()=>pw,Circle:()=>_w,Html:()=>Ew,Line:()=>hw}),kw=t((()=>{gw(),vw(),mw(),Dw()})),Aw,jw=t((()=>{R(),J(),gS(),MS(),Aw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`grid`,line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:`line`,style:{lineWidth:1,stroke:Z.lineColor}}}})},t.prototype.getLineType=function(){return(this.get(`line`)||this.get(`defaultCfg`).line).type},t.prototype.renderInner=function(e){this.drawGrid(e)},t.prototype.getAlternatePath=function(e,t){var n=this.getGridPath(e),r=t.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get(`closed`)?n=n.concat(i):(i[0][0]=`L`,n=n.concat(i),n.push([`Z`])),n},t.prototype.getPathStyle=function(){return this.get(`line`).style},t.prototype.drawGrid=function(e){var t=this,n=this.get(`line`),r=this.get(`items`),i=this.get(`alternateColor`),a=null;H(r,function(o,s){var c=o.id||s;if(n){var l=t.getPathStyle();l=z(l)?l(o,s,r):l;var u=t.getElementId(`line-`+c),d=t.getGridPath(o.points);t.addShape(e,{type:`path`,name:`grid-line`,id:u,attrs:G({path:d},l)})}if(i&&s>0){var f=t.getElementId(`region-`+c),p=s%2==0;if(U(i))p&&t.drawAlternateRegion(f,e,a.points,o.points,i);else{var m=p?i[1]:i[0];t.drawAlternateRegion(f,e,a.points,o.points,m)}}a=o})},t.prototype.drawAlternateRegion=function(e,t,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(t,{type:`path`,id:e,name:`grid-region`,attrs:{path:a,fill:i}})},t}(hS)}));function Mw(e,t,n,r){var i=n-e,a=r-t;return Math.sqrt(i*i+a*a)}var Nw,Pw=t((()=>{R(),J(),jw(),Nw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`circle`,center:null,closed:!0})},t.prototype.getGridPath=function(e,t){var n=this.getLineType(),r=this.get(`closed`),i=[];if(e.length)if(n===`circle`){var a=this.get(`center`),o=e[0],s=Mw(a.x,a.y,o.x,o.y),c=+!t;r?(i.push([`M`,a.x,a.y-s]),i.push([`A`,s,s,0,0,c,a.x,a.y+s]),i.push([`A`,s,s,0,0,c,a.x,a.y-s]),i.push([`Z`])):H(e,function(e,t){t===0?i.push([`M`,e.x,e.y]):i.push([`A`,s,s,0,0,c,e.x,e.y])})}else H(e,function(e,t){t===0?i.push([`M`,e.x,e.y]):i.push([`L`,e.x,e.y])}),r&&i.push([`Z`]);return i},t}(Aw)})),Fw,Iw=t((()=>{R(),J(),jw(),Fw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`line`})},t.prototype.getGridPath=function(e){var t=[];return H(e,function(e,n){n===0?t.push([`M`,e.x,e.y]):t.push([`L`,e.x,e.y])}),t},t}(Aw)})),Lw=r({Base:()=>Aw,Circle:()=>Nw,Line:()=>Fw}),Rw=t((()=>{jw(),Pw(),Iw()})),zw,Bw=t((()=>{R(),gS(),cS(),zw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`legend`,layout:`horizontal`,locationType:`point`,x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),n=this.get(`maxWidth`),r=this.get(`maxHeight`),i=t.width,a=t.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),Qx(t.minX,t.minY,i,a)},t.prototype.setLocation=function(e){this.set(`x`,e.x),this.set(`y`,e.y),this.resetLocation()},t.prototype.resetLocation=function(){var e=this.get(`x`),t=this.get(`y`),n=this.get(`offsetX`),r=this.get(`offsetY`);this.moveElementTo(this.get(`group`),{x:e+n,y:t+r})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get(`currentPoint`)},t.prototype.setDrawPoint=function(e){return this.set(`currentPoint`,e)},t.prototype.renderInner=function(e){this.resetDraw(),this.get(`title`)&&this.drawTitle(e),this.drawLegendContent(e),this.get(`background`)&&this.drawBackground(e)},t.prototype.drawBackground=function(e){var t=this.get(`background`),n=e.getBBox(),r=qx(t.padding),i=L({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style);this.addShape(e,{type:`rect`,id:this.getElementId(`background`),name:`legend-background`,attrs:i}).toBack()},t.prototype.drawTitle=function(e){var t=this.get(`currentPoint`),n=this.get(`title`),r=n.spacing,i=n.style,a=n.text,o=this.addShape(e,{type:`text`,id:this.getElementId(`title`),name:`legend-title`,attrs:L({text:a,x:t.x,y:t.y},i)}).getBBox();this.set(`currentPoint`,{x:t.x,y:o.maxY+r})},t.prototype.resetDraw=function(){var e=this.get(`background`),t={x:0,y:0};if(e){var n=qx(e.padding);t.x=n[3],t.y=n[0]}this.set(`currentPoint`,t)},t}(hS)})),Vw,Hw,Uw,Ww,Gw,Kw,qw=t((()=>{R(),J(),kS(),Kx(),kC(),MS(),Bw(),Vw={marker:{style:{inactiveFill:`#000`,inactiveOpacity:.45,fill:`#000`,opacity:1,size:12}},text:{style:{fill:`#ccc`,fontSize:12}}},Hw={fill:Z.textColor,fontSize:12,textAlign:`start`,textBaseline:`middle`,fontFamily:Z.fontFamily,fontWeight:`normal`,lineHeight:12},Uw=`navigation-arrow-right`,Ww=`navigation-arrow-left`,Gw={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},Kw=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var e=t.getElementByLocalId(`item-group`);if(t.currentPageIndex>1){--t.currentPageIndex,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get(`animate`)?e.animate({matrix:n},100):e.attr({matrix:n})}},t.onNavigationAfter=function(){var e=t.getElementByLocalId(`item-group`);if(t.currentPageIndexm&&(m=v),d===`horizontal`?(h&&hs}if(a===`horizontal`){var S=this.get(`maxRow`)||1,C=d+(S===1?0:b),w=s-u-m.width-m.minX;this.pageHeight=C*S,this.pageWidth=w,H(o,function(e){var t=e.getBBox(),i=l||t.width;(_&&_v&&(v=t.width)}),y=v,v+=u,s&&(v=Math.min(s,v),y=Math.min(s,y)),this.pageWidth=v,this.pageHeight=c-Math.max(m.height,d+b);var T=Math.floor(this.pageHeight/(d+b));H(o,function(e,t){t!==0&&t%T===0&&(g+=1,h.x+=v,h.y=i),n.moveElementTo(e,h),e.getParent().setClip({type:`rect`,attrs:{x:h.x,y:h.y,width:v,height:d}}),h.y+=d+b}),this.totalPagesCnt=g,this.moveElementTo(p,{x:r+y/2-m.width/2-m.minX,y:c-m.height-m.minY})}this.pageHeight&&this.pageWidth&&t.getParent().setClip({type:`rect`,attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),a===`horizontal`&&this.get(`maxRow`)?this.totalPagesCnt=Math.ceil(g/this.get(`maxRow`)):this.totalPagesCnt=g,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(p),t.attr(`matrix`,this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(e,t,n,r){var i={x:0,y:0},a=this.addGroup(e,{id:this.getElementId(`navigation-group`),name:`legend-navigation`}),o=K(r.marker,`style`,{}),s=o.size,c=s===void 0?12:s,l=pt(o,[`size`]),u=this.drawArrow(a,i,Ww,t===`horizontal`?`up`:`left`,c,l);u.on(`click`,this.onNavigationBack);var d=u.getBBox();i.x+=d.width+2;var f=this.addShape(a,{type:`text`,id:this.getElementId(`navigation-text`),name:`navigation-text`,attrs:L({x:i.x,y:i.y+c/2,text:n,textBaseline:`middle`},K(r.text,`style`))}).getBBox();return i.x+=f.width+2,this.drawArrow(a,i,Uw,t===`horizontal`?`down`:`right`,c,l).on(`click`,this.onNavigationAfter),a},t.prototype.updateNavigation=function(e){var t=ya({},Vw,this.get(`pageNavigator`)).marker.style,n=t.fill,r=t.opacity,i=t.inactiveFill,a=t.inactiveOpacity,o=this.currentPageIndex+`/`+this.totalPagesCnt,s=e?e.getChildren()[1]:this.getElementByLocalId(`navigation-text`),c=e?e.findById(this.getElementId(Ww)):this.getElementByLocalId(Ww),l=e?e.findById(this.getElementId(Uw)):this.getElementByLocalId(Uw);s.attr(`text`,o),c.attr(`opacity`,this.currentPageIndex===1?a:r),c.attr(`fill`,this.currentPageIndex===1?i:n),c.attr(`cursor`,this.currentPageIndex===1?`not-allowed`:`pointer`),l.attr(`opacity`,this.currentPageIndex===this.totalPagesCnt?a:r),l.attr(`fill`,this.currentPageIndex===this.totalPagesCnt?i:n),l.attr(`cursor`,this.currentPageIndex===this.totalPagesCnt?`not-allowed`:`pointer`);var u=c.getBBox().maxX+2;s.attr(`x`,u),u+=s.getBBox().width+2,this.updateArrowPath(l,{x:u,y:0})},t.prototype.drawArrow=function(e,t,n,r,i,a){var o=t.x,s=t.y,c=this.addShape(e,{type:`path`,id:this.getElementId(n),name:n,attrs:L({size:i,direction:r,path:[[`M`,o+i/2,s],[`L`,o,s+i],[`L`,o+i,s+i],[`Z`]],cursor:`pointer`},a)});return c.attr(`matrix`,Rx({x:o+i/2,y:s+i/2},Gw[r])),c},t.prototype.updateArrowPath=function(e,t){var n=t.x,r=t.y,i=e.attr(),a=i.size,o=i.direction,s=Rx({x:n+a/2,y:r+a/2},Gw[o]);e.attr(`path`,[[`M`,n+a/2,r],[`L`,n,r+a],[`L`,n+a,r+a],[`Z`]]),e.attr(`matrix`,s)},t.prototype.getCurrentNavigationMatrix=function(){var e=this,t=e.currentPageIndex,n=e.pageWidth,r=e.pageHeight;return zx(this.get(`layout`)===`horizontal`?{x:0,y:r*(1-t)}:{x:n*(1-t),y:0})},t.prototype.applyItemStates=function(e,t){if(this.getItemStates(e).length>0){var n=t.getChildren(),r=this.get(`itemStates`);H(n,function(t){var n=t.get(`name`).split(`-`)[2],i=OC(e,n,r);i&&(t.attr(i),n===`marker`&&!(t.get(`isStroke`)&&t.get(`isFill`))&&(t.get(`isStroke`)&&t.attr(`fill`,null),t.get(`isFill`)&&t.attr(`stroke`,null)))})}},t.prototype.getLimitItemWidth=function(){var e=this.get(`itemWidth`),t=this.get(`maxItemWidth`);return t?e&&(t=e<=t?e:t):e&&(t=e),t},t}(zw)})),Jw,Yw,Xw,Zw=t((()=>{R(),J(),MS(),cS(),Bw(),Jw=1.4,Yw=.4,Xw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`continue`,min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:`rail`,spacing:5,formatter:null,style:{fontSize:12,fill:Z.textColor,textBaseline:`middle`,fontFamily:Z.fontFamily}},handler:{size:10,style:{fill:`#fff`,stroke:`#333`}},track:{},rail:{type:`color`,size:20,defaultLength:100,style:{fill:`#DCDEE2`}},title:{spacing:5,style:{fill:Z.textColor,fontSize:12,textAlign:`start`,textBaseline:`top`}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get(`min`),max:this.get(`max`)}},t.prototype.setRange=function(e,t){this.update({min:e,max:t})},t.prototype.setValue=function(e){var t=this.getValue();this.set(`value`,e);var n=this.get(`group`);this.resetTrackClip(),this.get(`slidable`)&&this.resetHandlers(n),this.delegateEmit(`valuechanged`,{originValue:t,value:e})},t.prototype.initEvent=function(){var e=this.get(`group`);this.bindSliderEvent(e),this.bindRailEvent(e),this.bindTrackEvent(e)},t.prototype.drawLegendContent=function(e){this.drawRail(e),this.drawLabels(e),this.fixedElements(e),this.resetTrack(e),this.resetTrackClip(e),this.get(`slidable`)&&this.resetHandlers(e)},t.prototype.bindSliderEvent=function(e){this.bindHandlersEvent(e)},t.prototype.bindHandlersEvent=function(e){var t=this;e.on(`legend-handler-min:drag`,function(e){var n=t.getValueByCanvasPoint(e.x,e.y),r=t.getCurrentValue()[1];rn&&(r=n),t.setValue([r,n])})},t.prototype.bindRailEvent=function(e){},t.prototype.bindTrackEvent=function(e){var t=this,n=null;e.on(`legend-track:dragstart`,function(e){n={x:e.x,y:e.y}}),e.on(`legend-track:drag`,function(e){if(n){var r=t.getValueByCanvasPoint(n.x,n.y),i=t.getValueByCanvasPoint(e.x,e.y),a=t.getCurrentValue(),o=a[1]-a[0],s=t.getRange(),c=i-r;c<0?a[0]+c>s.min?t.setValue([a[0]+c,a[1]+c]):t.setValue([s.min,s.min+o]):c>0&&(c>0&&a[1]+ci&&(c=i),c0&&this.changeRailLength(r,i,n[i]-l)}},t.prototype.changeRailLength=function(e,t,n){var r=e.getBBox(),i=t===`height`?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height);e.attr(`path`,i)},t.prototype.changeRailPosition=function(e,t,n){var r=e.getBBox(),i=this.getRailPath(t,n,r.width,r.height);e.attr(`path`,i)},t.prototype.fixedHorizontal=function(e,t,n,r){var i=this.get(`label`),a=i.align,o=i.spacing,s=n.getBBox(),c=e.getBBox(),l=t.getBBox(),u=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),a===`rail`?(e.attr({x:r.x,y:r.y+u/2}),this.changeRailPosition(n,r.x+c.width+o,r.y),t.attr({x:r.x+c.width+s.width+o*2,y:r.y+u/2})):a===`top`?(e.attr({x:r.x,y:r.y}),t.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+o)):(this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x,y:r.y+s.height+o}),t.attr({x:r.x+s.width,y:r.y+s.height+o}))},t.prototype.fixedVertail=function(e,t,n,r){var i=this.get(`label`),a=i.align,o=i.spacing,s=n.getBBox(),c=e.getBBox(),l=t.getBBox();if(this.fitRailLength(c,l,s,n),s=n.getBBox(),a===`rail`)e.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+o),t.attr({x:r.x,y:r.y+c.height+s.height+o*2});else if(a===`right`)e.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x+s.width+o,y:r.y+s.height});else{var u=Math.max(c.width,l.width);e.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+u+o,r.y),t.attr({x:r.x,y:r.y+s.height})}},t}(zw)})),Qw=r({Base:()=>zw,Category:()=>Kw,Continuous:()=>Xw}),$w=t((()=>{qw(),Zw(),Bw()})),eT=r({CONTAINER_CLASS:()=>tT,CROSSHAIR_X:()=>cT,CROSSHAIR_Y:()=>lT,LIST_CLASS:()=>rT,LIST_ITEM_CLASS:()=>iT,MARKER_CLASS:()=>aT,NAME_CLASS:()=>sT,TITLE_CLASS:()=>nT,VALUE_CLASS:()=>oT}),tT,nT,rT,iT,aT,oT,sT,cT,lT,uT=t((()=>{tT=`g2-tooltip`,nT=`g2-tooltip-title`,rT=`g2-tooltip-list`,iT=`g2-tooltip-list-item`,aT=`g2-tooltip-marker`,oT=`g2-tooltip-value`,sT=`g2-tooltip-name`,cT=`g2-tooltip-crosshair-x`,lT=`g2-tooltip-crosshair-y`})),dT,fT,pT=t((()=>{MS(),uT(),fT=(dT={},dT[``+tT]={position:`absolute`,visibility:`visible`,zIndex:8,transition:`visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)`,backgroundColor:`rgba(255, 255, 255, 0.9)`,boxShadow:`0px 0px 10px #aeaeae`,borderRadius:`3px`,color:`rgb(87, 87, 87)`,fontSize:`12px`,fontFamily:Z.fontFamily,lineHeight:`20px`,padding:`10px 10px 6px 10px`},dT[``+nT]={marginBottom:`4px`},dT[``+rT]={margin:`0px`,listStyleType:`none`,padding:`0px`},dT[``+iT]={listStyleType:`none`,marginBottom:`4px`},dT[``+aT]={width:`8px`,height:`8px`,borderRadius:`50%`,display:`inline-block`,marginRight:`8px`},dT[``+oT]={display:`inline-block`,float:`right`,marginLeft:`30px`},dT[``+cT]={position:`absolute`,width:`1px`,backgroundColor:`rgba(0, 0, 0, 0.25)`},dT[``+lT]={position:`absolute`,height:`1px`,backgroundColor:`rgba(0, 0, 0, 0.25)`},dT)}));function mT(e,t,n,r,i){return{left:ei.x+i.width,top:ti.y+i.height}}function hT(e,t,n,r,i,a){var o=e,s=t;switch(a){case`left`:o=e-r-n,s=t-i/2;break;case`right`:o=e+n,s=t-i/2;break;case`top`:o=e-r/2,s=t-i-n;break;case`bottom`:o=e-r/2,s=t+n;break;default:o=e+n,s=t-i-n;break}return{x:o,y:s}}function gT(e,t,n,r,i,a,o){var s=hT(e,t,n,r,i,a);if(o){var c=mT(s.x,s.y,r,i,o);a===`auto`?(c.right&&(s.x=Math.max(0,e-r-n)),c.top&&(s.y=Math.max(0,t-i-n))):a===`top`||a===`bottom`?(c.left&&(s.x=o.x),c.right&&(s.x=o.x+o.width-r),a===`top`&&c.top&&(s.y=t+n),a===`bottom`&&c.bottom&&(s.y=t-i-n)):(c.top&&(s.y=o.y),c.bottom&&(s.y=o.y+o.height-i),a===`left`&&c.left&&(s.x=e+n),a===`right`&&c.right&&(s.x=e-r-n))}return s}var _T=t((()=>{}));function vT(e,t){var n=!1;return H(t,function(t){if(hi(e,t))return n=!0,!1}),n}var yT,bT=t((()=>{R(),Sv(),xC(),J(),CC(),cS(),uT(),pT(),_T(),yT=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`tooltip`,type:`html`,x:0,y:0,items:[],customContent:null,containerTpl:`
    `,itemTpl:`
  • {name}: {value}
  • `,xCrosshairTpl:`
    `,yCrosshairTpl:`
    `,title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:tT,crosshairs:null,offset:10,position:`right`,domStyles:null,defaultStyles:fT})},t.prototype.render=function(){this.get(`customContent`)?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(``),this.clearItemDoms()},t.prototype.show=function(){var e=this.getContainer();!e||this.destroyed||(this.set(`visible`,!0),vC(e,{visibility:`visible`}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var e=this.getContainer();!e||this.destroyed||(this.set(`visible`,!1),vC(e,{visibility:`hidden`}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get(`x`),y:this.get(`y`)}},t.prototype.setLocation=function(e){this.set(`x`,e.x),this.set(`y`,e.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(e){var t=e?``:`none`,n=this.get(`xCrosshairDom`),r=this.get(`yCrosshairDom`);n&&vC(n,{display:t}),r&&vC(r,{display:t})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get(`customContent`)){this.get(`container`)&&this.get(`container`).remove();var t=this.getHtmlContentNode();this.get(`parent`).appendChild(t),this.set(`container`,t),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(t){this.get(`customContent`)?this.renderCustomContent():(vT(t,[`title`,`showTitle`])&&this.resetTitle(),hi(t,`items`)&&this.renderItems()),e.prototype.updateInner.call(this,t)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var e=this.get(`x`),t=this.get(`y`),n=this.get(`offset`),r=this.getOffset(),i=r.offsetX,a=r.offsetY,o=this.get(`position`),s=this.get(`region`),c=this.getContainer(),l=this.getBBox(),u=l.width,d=l.height,f;s&&(f=Xx(s));var p=gT(e,t,n,u,d,o,f);vC(c,{left:aS(p.x+i),top:aS(p.y+a)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var e=this.getHtmlContentNode(),t=this.get(`parent`),n=this.get(`container`);n&&n.parentNode===t?t.replaceChild(e,n):t.appendChild(e),this.set(`container`,e),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var e,t=this.get(`customContent`);if(t){var n=t(this.get(`title`),this.get(`items`));e=ta(n)?n:eC(n)}return e},t.prototype.cacheDoms=function(){var e=this.getContainer(),t=e.getElementsByClassName(nT)[0],n=e.getElementsByClassName(rT)[0];this.set(`titleDom`,t),this.set(`listDom`,n)},t.prototype.resetTitle=function(){var e=this.get(`title`);this.get(`showTitle`)&&e?this.setTitle(e):this.setTitle(``)},t.prototype.setTitle=function(e){var t=this.get(`titleDom`);t&&(t.innerText=e)},t.prototype.resetCrosshairs=function(){var e=this.get(`crosshairsRegion`),t=this.get(`crosshairs`);if(!e||!t)this.clearCrosshairs();else{var n=Xx(e),r=this.get(`xCrosshairDom`),i=this.get(`yCrosshairDom`);t===`x`?(this.resetCrosshair(`x`,n),i&&(i.remove(),this.set(`yCrosshairDom`,null))):t===`y`?(this.resetCrosshair(`y`,n),r&&(r.remove(),this.set(`xCrosshairDom`,null))):(this.resetCrosshair(`x`,n),this.resetCrosshair(`y`,n)),this.setCrossHairsVisible(this.get(`visible`))}},t.prototype.resetCrosshair=function(e,t){var n=this.checkCrosshair(e),r=this.get(e);e===`x`?vC(n,{left:aS(r),top:aS(t.y),height:aS(t.height)}):vC(n,{top:aS(r),left:aS(t.x),width:aS(t.width)})},t.prototype.checkCrosshair=function(e){var t=e+`CrosshairDom`,n=e+`CrosshairTpl`,r=eT[`CROSSHAIR_`+e.toUpperCase()],i=this.get(t),a=this.get(`parent`);return i||(i=eC(this.get(n)),this.applyStyle(r,i),a.appendChild(i),this.set(t,i)),i},t.prototype.renderItems=function(){this.clearItemDoms();var e=this.get(`items`),t=this.get(`itemTpl`),n=this.get(`listDom`);n&&(H(e,function(e){var r=xv.toCSSGradient(e.color),i=eC(Di(t,L(L({},e),{color:r})));n.appendChild(i)}),this.applyChildrenStyles(n,this.get(`domStyles`)))},t.prototype.clearItemDoms=function(){this.get(`listDom`)&&Jx(this.get(`listDom`))},t.prototype.clearCrosshairs=function(){var e=this.get(`xCrosshairDom`),t=this.get(`yCrosshairDom`);e&&e.remove(),t&&t.remove(),this.set(`xCrosshairDom`,null),this.set(`yCrosshairDom`,null)},t}(SC)})),xT=r({Html:()=>yT}),ST=t((()=>{bT()})),CT,wT,TT,ET=t((()=>{CT={opacity:0},wT={stroke:`#C5C5C5`,strokeOpacity:.85},TT={fill:`#CACED4`,opacity:.85}}));function DT(e){return Ma(e,function(e,t){return[t===0?`M`:`L`,e[0],e[1]]})}function OT(e){return DT(e)}function kT(e){if(e.length<=2)return OT(e);var t=[];H(e,function(e){Oa(e,t.slice(t.length-2))||t.push(e[0],e[1])});var n=Uh(t,!1),r=rr(e),i=r[0],a=r[1];return n.unshift([`M`,i,a]),n}function AT(e,t,n,r){r===void 0&&(r=!0);var i=new Ly({values:e}),a=new zv({values:Ma(e,function(e,t){return t})}),o=Ma(e,function(e,r){return[a.scale(r)*t,n-i.scale(e)*n]});return r?kT(o):OT(o)}function jT(e,t){var n=new Ly({values:e}),r=n.max<0?n.max:Math.max(0,n.min);return t-n.scale(r)*t}function MT(e,t,n,r){var i=Dt(e),a=jT(r,n);return i.push([`L`,t,a]),i.push([`L`,0,a]),i.push([`Z`]),i}var NT=t((()=>{R(),v_(),px(),J()})),PT,FT=t((()=>{R(),gS(),ET(),NT(),PT=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`trend`,x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:CT,lineStyle:wT,areaStyle:TT})},t.prototype.renderInner=function(e){var t=this.cfg,n=t.width,r=t.height,i=t.data,a=t.smooth,o=t.isArea,s=t.backgroundStyle,c=t.lineStyle,l=t.areaStyle;this.addShape(e,{id:this.getElementId(`background`),type:`rect`,attrs:L({x:0,y:0,width:n,height:r},s)});var u=AT(i,n,r,a);if(this.addShape(e,{id:this.getElementId(`line`),type:`path`,attrs:L({path:u},c)}),o){var d=MT(u,n,r,i);this.addShape(e,{id:this.getElementId(`area`),type:`path`,attrs:L({path:d},l)})}},t.prototype.applyOffset=function(){var e=this.cfg,t=e.x,n=e.y;this.moveElementTo(this.get(`group`),{x:t,y:n})},t}(hS)})),IT,LT,RT=t((()=>{R(),gS(),IT={fill:`#F7F7F7`,stroke:`#BFBFBF`,radius:2,opacity:1,cursor:`ew-resize`,highLightFill:`#FFF`},LT=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`handler`,x:0,y:0,width:10,height:24,style:IT})},t.prototype.renderInner=function(e){var t=this.cfg,n=t.width,r=t.height,i=t.style,a=i.fill,o=i.stroke,s=i.radius,c=i.opacity,l=i.cursor;this.addShape(e,{type:`rect`,id:this.getElementId(`background`),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:c,cursor:l}});var u=1/3*n,d=2/3*n,f=1/4*r,p=3/4*r;this.addShape(e,{id:this.getElementId(`line-left`),type:`line`,attrs:{x1:u,y1:f,x2:u,y2:p,stroke:o,cursor:l}}),this.addShape(e,{id:this.getElementId(`line-right`),type:`line`,attrs:{x1:d,y1:f,x2:d,y2:p,stroke:o,cursor:l}})},t.prototype.applyOffset=function(){this.moveElementTo(this.get(`group`),{x:this.get(`x`),y:this.get(`y`)})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.bindEvents=function(){var e=this;this.get(`group`).on(`mouseenter`,function(){var t=e.get(`style`).highLightFill;e.getElementByLocalId(`background`).attr(`fill`,t),e.draw()}),this.get(`group`).on(`mouseleave`,function(){var t=e.get(`style`).fill;e.getElementByLocalId(`background`).attr(`fill`,t),e.draw()})},t.prototype.draw=function(){var e=this.get(`container`).get(`canvas`);e&&e.draw()},t}(hS)})),zT,BT,VT,HT,UT,WT=t((()=>{zT={fill:`#416180`,opacity:.05},BT={fill:`#5B8FF9`,opacity:.15,cursor:`move`},VT={width:10,height:24},HT={textBaseline:`middle`,fill:`#000`,opacity:.45},UT=`sliderchange`})),GT,KT=t((()=>{R(),J(),gS(),FT(),RT(),WT(),GT=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return function(n){t.currentTarget=e;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),t.prevX=K(r,`touches.0.pageX`,r.pageX),t.prevY=K(r,`touches.0.pageY`,r.pageY);var i=t.getContainerDOM();i.addEventListener(`mousemove`,t.onMouseMove),i.addEventListener(`mouseup`,t.onMouseUp),i.addEventListener(`mouseleave`,t.onMouseUp),i.addEventListener(`touchmove`,t.onMouseMove),i.addEventListener(`touchend`,t.onMouseUp),i.addEventListener(`touchcancel`,t.onMouseUp)}},t.onMouseMove=function(e){var n=t.cfg.width,r=[t.get(`start`),t.get(`end`)];e.stopPropagation(),e.preventDefault();var i=K(e,`touches.0.pageX`,e.pageX),a=K(e,`touches.0.pageY`,e.pageY),o=i-t.prevX,s=t.adjustOffsetRange(o/n);t.updateStartEnd(s),t.updateUI(t.getElementByLocalId(`foreground`),t.getElementByLocalId(`minText`),t.getElementByLocalId(`maxText`)),t.prevX=i,t.prevY=a,t.draw(),t.emit(UT,[t.get(`start`),t.get(`end`)].sort()),t.delegateEmit(`valuechanged`,{originValue:r,value:[t.get(`start`),t.get(`end`)]})},t.onMouseUp=function(){t.currentTarget&&=void 0;var e=t.getContainerDOM();e&&(e.removeEventListener(`mousemove`,t.onMouseMove),e.removeEventListener(`mouseup`,t.onMouseUp),e.removeEventListener(`mouseleave`,t.onMouseUp),e.removeEventListener(`touchmove`,t.onMouseMove),e.removeEventListener(`touchend`,t.onMouseUp),e.removeEventListener(`touchcancel`,t.onMouseUp))},t}return t.prototype.setRange=function(e,t){this.set(`minLimit`,e),this.set(`maxLimit`,t);var n=this.get(`start`),r=this.get(`end`),i=jr(n,e,t),a=jr(r,e,t);!this.get(`isInit`)&&(n!==i||r!==a)&&this.setValue([i,a])},t.prototype.getRange=function(){return{min:this.get(`minLimit`)||0,max:this.get(`maxLimit`)||1}},t.prototype.setValue=function(e){var t=this.getRange();if(V(e)&&e.length===2){var n=[this.get(`start`),this.get(`end`)];this.update({start:jr(e[0],t.min,t.max),end:jr(e[1],t.min,t.max)}),this.get(`updateAutoRender`)||this.render(),this.delegateEmit(`valuechanged`,{originValue:n,value:e})}},t.prototype.getValue=function(){return[this.get(`start`),this.get(`end`)]},t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`slider`,x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:zT,foregroundStyle:BT,handlerStyle:VT,textStyle:HT}})},t.prototype.update=function(t){var n=t.start,r=t.end,i=L({},t);B(n)||(i.start=jr(n,0,1)),B(r)||(i.end=jr(r,0,1)),e.prototype.update.call(this,i),this.minHandler=this.getChildComponentById(this.getElementId(`minHandler`)),this.maxHandler=this.getChildComponentById(this.getElementId(`maxHandler`)),this.trend=this.getChildComponentById(this.getElementId(`trend`))},t.prototype.init=function(){this.set(`start`,jr(this.get(`start`),0,1)),this.set(`end`,jr(this.get(`end`),0,1)),e.prototype.init.call(this)},t.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId(`foreground`),this.getElementByLocalId(`minText`),this.getElementByLocalId(`maxText`))},t.prototype.renderInner=function(e){var t=this.cfg,n=t.start,r=t.end,i=t.width,a=t.height,o=t.trendCfg,s=o===void 0?{}:o,c=t.minText,l=t.maxText,u=t.backgroundStyle,d=u===void 0?{}:u,f=t.foregroundStyle,p=f===void 0?{}:f,m=t.textStyle,h=m===void 0?{}:m,g=ya({},IT,this.cfg.handlerStyle);n*i,r*i,no(K(s,`data`))&&(this.trend=this.addComponent(e,L({component:PT,id:this.getElementId(`trend`),x:0,y:0,width:i,height:a},s))),this.addShape(e,{id:this.getElementId(`background`),type:`rect`,attrs:L({x:0,y:0,width:i,height:a},d)}),this.addShape(e,{id:this.getElementId(`minText`),type:`text`,attrs:L({y:a/2,textAlign:`right`,text:c,silent:!1},h)}),this.addShape(e,{id:this.getElementId(`maxText`),type:`text`,attrs:L({y:a/2,textAlign:`left`,text:l,silent:!1},h)}),this.addShape(e,{id:this.getElementId(`foreground`),name:`foreground`,type:`rect`,attrs:L({y:0,height:a},p)});var _=K(g,`width`,10),v=K(g,`height`,24);this.minHandler=this.addComponent(e,{component:LT,id:this.getElementId(`minHandler`),name:`handler-min`,x:0,y:(a-v)/2,width:_,height:v,cursor:`ew-resize`,style:g}),this.maxHandler=this.addComponent(e,{component:LT,id:this.getElementId(`maxHandler`),name:`handler-max`,x:0,y:(a-v)/2,width:_,height:v,cursor:`ew-resize`,style:g})},t.prototype.applyOffset=function(){this.moveElementTo(this.get(`group`),{x:this.get(`x`),y:this.get(`y`)})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.updateUI=function(e,t,n){var r=this.cfg,i=r.start,a=r.end,o=r.width,s=r.minText,c=r.maxText,l=r.handlerStyle,u=r.height,d=i*o,f=a*o;this.trend&&(this.trend.update({width:o,height:u}),this.get(`updateAutoRender`)||this.trend.render()),e.attr(`x`,d),e.attr(`width`,f-d);var p=K(l,`width`,10);t.attr(`text`,s),n.attr(`text`,c);var m=this._dodgeText([d,f],t,n),h=m[0],g=m[1];this.minHandler&&(this.minHandler.update({x:d-p/2}),this.get(`updateAutoRender`)||this.minHandler.render()),H(h,function(e,n){return t.attr(n,e)}),this.maxHandler&&(this.maxHandler.update({x:f-p/2}),this.get(`updateAutoRender`)||this.maxHandler.render()),H(g,function(e,t){return n.attr(t,e)})},t.prototype.bindEvents=function(){var e=this.get(`group`);e.on(`handler-min:mousedown`,this.onMouseDown(`minHandler`)),e.on(`handler-min:touchstart`,this.onMouseDown(`minHandler`)),e.on(`handler-max:mousedown`,this.onMouseDown(`maxHandler`)),e.on(`handler-max:touchstart`,this.onMouseDown(`maxHandler`));var t=e.findById(this.getElementId(`foreground`));t.on(`mousedown`,this.onMouseDown(`foreground`)),t.on(`touchstart`,this.onMouseDown(`foreground`))},t.prototype.adjustOffsetRange=function(e){var t=this.cfg,n=t.start,r=t.end;switch(this.currentTarget){case`minHandler`:var i=0-n,a=1-n;return Math.min(a,Math.max(i,e));case`maxHandler`:var i=0-r,a=1-r;return Math.min(a,Math.max(i,e));case`foreground`:var i=0-n,a=1-r;return Math.min(a,Math.max(i,e))}},t.prototype.updateStartEnd=function(e){var t=this.cfg,n=t.start,r=t.end;switch(this.currentTarget){case`minHandler`:n+=e;break;case`maxHandler`:r+=e;break;case`foreground`:n+=e,r+=e;break}this.set(`start`,n),this.set(`end`,r)},t.prototype._dodgeText=function(e,t,n){var r,i,a=this.cfg,o=a.handlerStyle,s=a.width,c=2,l=K(o,`width`,10),u=e[0],d=e[1],f=!1;u>d&&(r=[d,u],u=r[0],d=r[1],i=[n,t],t=i[0],n=i[1],f=!0);var p=t.getBBox(),m=n.getBBox(),h=p.width>u-c?{x:u+l/2+c,textAlign:`left`}:{x:u-l/2-c,textAlign:`right`},g=m.width>s-d-c?{x:d-l/2-c,textAlign:`right`}:{x:d+l/2+c,textAlign:`left`};return f?[g,h]:[h,g]},t.prototype.draw=function(){var e=this.get(`container`),t=e&&e.get(`canvas`);t&&t.draw()},t.prototype.getContainerDOM=function(){var e=this.get(`container`),t=e&&e.get(`canvas`);return t&&t.get(`container`)},t}(hS)})),qT=t((()=>{KT()})),JT,YT,XT,ZT=t((()=>{R(),xC(),J(),gS(),JT={trackColor:`rgba(0,0,0,0)`,thumbColor:`rgba(0,0,0,0.15)`,size:8,lineCap:`round`},YT={default:JT,hover:{thumbColor:`rgba(0,0,0,0.2)`}},XT=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.clearEvents=Qa,t.onStartEvent=function(e){return function(n){t.isMobile=e,n.originalEvent.preventDefault();var r=e?K(n.originalEvent,`touches.0.clientX`):n.clientX,i=e?K(n.originalEvent,`touches.0.clientY`):n.clientY;t.startPos=t.cfg.isHorizontal?r:i,t.bindLaterEvent()}},t.bindLaterEvent=function(){var e=t.getContainerDOM(),n=[];n=t.isMobile?[ZS(e,`touchmove`,t.onMouseMove),ZS(e,`touchend`,t.onMouseUp),ZS(e,`touchcancel`,t.onMouseUp)]:[ZS(e,`mousemove`,t.onMouseMove),ZS(e,`mouseup`,t.onMouseUp),ZS(e,`mouseleave`,t.onMouseUp)],t.clearEvents=function(){n.forEach(function(e){e.remove()})}},t.onMouseMove=function(e){var n=t.cfg,r=n.isHorizontal,i=n.thumbOffset;e.preventDefault();var a=t.isMobile?K(e,`touches.0.clientX`):e.clientX,o=t.isMobile?K(e,`touches.0.clientY`):e.clientY,s=r?a:o,c=s-t.startPos;t.startPos=s,t.updateThumbOffset(i+c)},t.onMouseUp=function(e){e.preventDefault(),t.clearEvents()},t.onTrackClick=function(e){var n=t.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=t.getContainerDOM().getBoundingClientRect(),c=e.clientX,l=e.clientY,u=r?c-s.left-i-o/2:l-s.top-a-o/2,d=t.validateRange(u);t.updateThumbOffset(d)},t.onThumbMouseOver=function(){var e=t.cfg.theme.hover.thumbColor;t.getElementByLocalId(`thumb`).attr(`stroke`,e),t.draw()},t.onThumbMouseOut=function(){var e=t.cfg.theme.default.thumbColor;t.getElementByLocalId(`thumb`).attr(`stroke`,e),t.draw()},t}return t.prototype.setRange=function(e,t){this.set(`minLimit`,e),this.set(`maxLimit`,t);var n=this.getValue(),r=jr(n,e,t);n!==r&&!this.get(`isInit`)&&this.setValue(r)},t.prototype.getRange=function(){return{min:this.get(`minLimit`)||0,max:this.get(`maxLimit`)||1}},t.prototype.setValue=function(e){var t=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get(`trackLen`)-this.get(`thumbLen`))*jr(e,t.min,t.max)}),this.delegateEmit(`valuechange`,{originalValue:n,value:this.getValue()})},t.prototype.getValue=function(){return jr(this.get(`thumbOffset`)/(this.get(`trackLen`)-this.get(`thumbLen`)),0,1)},t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`scrollbar`,isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:YT})},t.prototype.renderInner=function(e){this.renderTrackShape(e),this.renderThumbShape(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get(`group`),{x:this.get(`x`),y:this.get(`y`)})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(e){var t=this.cfg,n=t.trackLen,r=t.theme,i=ya({},YT,r===void 0?{default:{}}:r).default,a=i.lineCap,o=i.trackColor,s=i.size,c=K(this.cfg,`size`,s),l=this.get(`isHorizontal`)?{x1:0+c/2,y1:c/2,x2:n-c/2,y2:c/2,lineWidth:c,stroke:o,lineCap:a}:{x1:c/2,y1:0+c/2,x2:c/2,y2:n-c/2,lineWidth:c,stroke:o,lineCap:a};return this.addShape(e,{id:this.getElementId(`track`),name:`track`,type:`line`,attrs:l})},t.prototype.renderThumbShape=function(e){var t=this.cfg,n=t.thumbOffset,r=t.thumbLen,i=t.theme,a=ya({},YT,i).default,o=a.size,s=a.lineCap,c=a.thumbColor,l=K(this.cfg,`size`,o),u=this.get(`isHorizontal`)?{x1:n+l/2,y1:l/2,x2:n+r-l/2,y2:l/2,lineWidth:l,stroke:c,lineCap:s,cursor:`default`}:{x1:l/2,y1:n+l/2,x2:l/2,y2:n+r-l/2,lineWidth:l,stroke:c,lineCap:s,cursor:`default`};return this.addShape(e,{id:this.getElementId(`thumb`),name:`thumb`,type:`line`,attrs:u})},t.prototype.bindEvents=function(){var e=this.get(`group`);e.on(`mousedown`,this.onStartEvent(!1)),e.on(`mouseup`,this.onMouseUp),e.on(`touchstart`,this.onStartEvent(!0)),e.on(`touchend`,this.onMouseUp),e.findById(this.getElementId(`track`)).on(`click`,this.onTrackClick);var t=e.findById(this.getElementId(`thumb`));t.on(`mouseover`,this.onThumbMouseOver),t.on(`mouseout`,this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var e=this.get(`container`),t=e&&e.get(`canvas`);return t&&t.get(`container`)},t.prototype.validateRange=function(e){var t=this.cfg,n=t.thumbLen,r=t.trackLen,i=e;return e+n>r?i=r-n:e+n{ZT()})),$T=t((()=>{})),eE=t((()=>{})),tE=r({Annotation:()=>EC,Axis:()=>dw,Component:()=>uS,Crosshair:()=>Ow,Grid:()=>Lw,GroupComponent:()=>hS,HtmlComponent:()=>SC,Legend:()=>Qw,Scrollbar:()=>XT,Slider:()=>GT,TOOLTIP_CSS_CONST:()=>eT,Tooltip:()=>xT,propagationDelegate:()=>Ix}),nE=t((()=>{DC(),fw(),kw(),Rw(),$w(),ST(),dS(),gS(),CC(),qT(),QT(),$T(),eE(),Lx(),uT()})),rE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Scrollbar=t.Slider=t.HtmlTooltip=t.ContinuousLegend=t.CategoryLegend=t.CircleGrid=t.LineGrid=t.CircleAxis=t.LineAxis=t.Annotation=t.Crosshair=t.Component=t.GroupComponent=t.HtmlComponent=t.Scale=t.registerScale=t.getScale=t.Coordinate=t.registerCoordinate=t.getCoordinate=t.Color=t.Attribute=t.getAttribute=t.Adjust=t.getAdjust=t.registerAdjust=t.AbstractShape=t.AbstractGroup=t.Event=void 0;var n=(X(),e(O_));Object.defineProperty(t,`Event`,{enumerable:!0,get:function(){return n.Event}}),Object.defineProperty(t,`AbstractGroup`,{enumerable:!0,get:function(){return n.AbstractGroup}}),Object.defineProperty(t,`AbstractShape`,{enumerable:!0,get:function(){return n.AbstractShape}});var r=(nv(),e(tv));Object.defineProperty(t,`registerAdjust`,{enumerable:!0,get:function(){return r.registerAdjust}}),Object.defineProperty(t,`getAdjust`,{enumerable:!0,get:function(){return r.getAdjust}}),Object.defineProperty(t,`Adjust`,{enumerable:!0,get:function(){return r.Adjust}});var i=(bx(),e(yx));Object.defineProperty(t,`getAttribute`,{enumerable:!0,get:function(){return i.getAttribute}}),Object.defineProperty(t,`Attribute`,{enumerable:!0,get:function(){return i.Attribute}});var a=(bx(),e(yx));Object.defineProperty(t,`Color`,{enumerable:!0,get:function(){return a.Color}});var o=(Fx(),e(Px));Object.defineProperty(t,`getCoordinate`,{enumerable:!0,get:function(){return o.getCoordinate}}),Object.defineProperty(t,`registerCoordinate`,{enumerable:!0,get:function(){return o.registerCoordinate}}),Object.defineProperty(t,`Coordinate`,{enumerable:!0,get:function(){return o.Coordinate}});var s=(px(),e(fx));Object.defineProperty(t,`getScale`,{enumerable:!0,get:function(){return s.getScale}}),Object.defineProperty(t,`registerScale`,{enumerable:!0,get:function(){return s.registerScale}}),Object.defineProperty(t,`Scale`,{enumerable:!0,get:function(){return s.Scale}});var c=(nE(),e(tE));Object.defineProperty(t,`Annotation`,{enumerable:!0,get:function(){return c.Annotation}}),Object.defineProperty(t,`Component`,{enumerable:!0,get:function(){return c.Component}}),Object.defineProperty(t,`Crosshair`,{enumerable:!0,get:function(){return c.Crosshair}}),Object.defineProperty(t,`GroupComponent`,{enumerable:!0,get:function(){return c.GroupComponent}}),Object.defineProperty(t,`HtmlComponent`,{enumerable:!0,get:function(){return c.HtmlComponent}}),Object.defineProperty(t,`Slider`,{enumerable:!0,get:function(){return c.Slider}}),Object.defineProperty(t,`Scrollbar`,{enumerable:!0,get:function(){return c.Scrollbar}});var l=c.Axis.Line,u=c.Axis.Circle;t.LineAxis=l,t.CircleAxis=u;var d=c.Grid.Line,f=c.Grid.Circle;t.LineGrid=d,t.CircleGrid=f;var p=c.Legend.Category,m=c.Legend.Continuous;t.CategoryLegend=p,t.ContinuousLegend=m,t.HtmlTooltip=c.Tooltip.Html})),iE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.registerAnimation=e.getAnimation=void 0;var t={};function n(e){return t[e.toLowerCase()]}e.getAnimation=n;function r(e,n){t[e.toLowerCase()]=n}e.registerAnimation=r})),aE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.doGroupAppearAnimate=t.doAnimate=t.getDefaultAnimateCfg=t.DEFAULT_ANIMATE_CFG=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=iE();t.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:`easeQuadOut`},update:{duration:400,easing:`easeQuadInOut`},enter:{duration:400,easing:`easeQuadInOut`},leave:{duration:350,easing:`easeQuadIn`}};var o={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?`scale-in-x`:`scale-in-y`:`fade-in`},update:{animation:e.isPolar&&e.isTransposed?`sector-path-update`:null},leave:{animation:`fade-out`}}},line:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},path:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},point:{appear:{animation:`zoom-in`},enter:{animation:`zoom-in`},leave:{animation:`zoom-out`}},area:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},polygon:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},schema:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},edge:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},label:{appear:{animation:`fade-in`,delay:450},enter:{animation:`fade-in`},update:{animation:`position-update`},leave:{animation:`fade-out`}}},s={line:function(){return{animation:`wave-in`}},area:function(){return{animation:`wave-in`}},path:function(){return{animation:`fade-in`}},interval:function(e){var t;return e.isRect?t=e.isTransposed?`grow-in-x`:`grow-in-y`:(t=`grow-in-xy`,e.isPolar&&e.isTransposed&&(t=`wave-in`)),{animation:t}},schema:function(e){return{animation:e.isRect?e.isTransposed?`grow-in-x`:`grow-in-y`:`grow-in-xy`}},polygon:function(){return{animation:`fade-in`,duration:500}},edge:function(){return{animation:`fade-in`}}};function c(e,t){return{delay:(0,r.isFunction)(e.delay)?e.delay(t):e.delay,easing:(0,r.isFunction)(e.easing)?e.easing(t):e.easing,duration:(0,r.isFunction)(e.duration)?e.duration(t):e.duration,callback:e.callback,repeat:e.repeat}}function l(e,n,i){var a=o[e];return a&&((0,r.isFunction)(a)&&(a=a(n)),a=(0,r.deepMix)({},t.DEFAULT_ANIMATE_CFG,a),i)?a[i]:a}t.getDefaultAnimateCfg=l;function u(e,t,n){var o=(0,r.get)(e.get(`origin`),`data`,i.FIELD_ORIGIN),s=t.animation,l=c(t,o);if(s){var u=(0,a.getAnimation)(s);u&&u(e,l,n)}else e.animate(n.toAttrs,l)}t.doAnimate=u;function d(e,i,o,c,l){if(s[o]){var u=s[o](c),d=(0,a.getAnimation)((0,r.get)(u,`animation`,``));if(d){var f=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},t.DEFAULT_ANIMATE_CFG.appear),u),i);e.stopAnimate(),d(e,f,{coordinate:c,minYPoint:l,toAttrs:null})}}}t.doGroupAppearAnimate=d})),oE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getReplaceAttrs=t.getPolygonCentroid=t.getAngle=t.getArcPath=t.getSectorPath=t.polarToCartesian=void 0;var n=(J(),e(q));function r(e){if((0,n.isEmpty)(e))return null;var t=e[0].x,r=e[0].x,i=e[0].y,a=e[0].y;return(0,n.each)(e,function(e){t=t>e.x?e.x:t,r=re.y?e.y:i,a=a{Object.defineProperty(t,`__esModule`,{value:!0}),t.uniq=t.omit=t.padEnd=t.isBetween=void 0;var n=(J(),e(q));function r(e,t,n){return e>=Math.min(t,n)&&e<=Math.max(t,n)}t.isBetween=r;function i(e,t,r){if((0,n.isString)(e))return e.padEnd(t,r);if((0,n.isArray)(e)){var i=e.length;if(i{Object.defineProperty(t,`__esModule`,{value:!0}),t.toPoints=t.getRegionBBox=t.BBox=void 0;var n=(J(),e(q)),r=Y(),i=function(){function e(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.x=e,this.y=t,this.height=r,this.width=n}return e.fromRange=function(t,n,r,i){return new e(t,n,r-t,i-n)},e.fromObject=function(t){return new e(t.minX,t.minY,t.width,t.height)},Object.defineProperty(e.prototype,`minX`,{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`maxX`,{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`minY`,{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`maxY`,{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`tl`,{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`tr`,{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`bl`,{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`br`,{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`top`,{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`right`,{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`bottom`,{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`left`,{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height},e.prototype.contains=function(e){return e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){var e=[...arguments],t=this.clone();return(0,n.each)(e,function(e){t.x=Math.min(e.x,t.x),t.y=Math.min(e.y,t.y),t.width=Math.max(e.maxX,t.maxX)-t.x,t.height=Math.max(e.maxY,t.maxY)-t.y}),t},e.prototype.merge=function(){var e=[...arguments],t=this.clone();return(0,n.each)(e,function(e){t.x=Math.max(e.x,t.x),t.y=Math.max(e.y,t.y),t.width=Math.min(e.maxX,t.maxX)-t.x,t.height=Math.min(e.maxY,t.maxY)-t.y}),t},e.prototype.cut=function(t,n){var i=t.width,a=t.height;switch(n){case r.DIRECTION.TOP:case r.DIRECTION.TOP_LEFT:case r.DIRECTION.TOP_RIGHT:return e.fromRange(this.minX,this.minY+a,this.maxX,this.maxY);case r.DIRECTION.RIGHT:case r.DIRECTION.RIGHT_TOP:case r.DIRECTION.RIGHT_BOTTOM:return e.fromRange(this.minX,this.minY,this.maxX-i,this.maxY);case r.DIRECTION.BOTTOM:case r.DIRECTION.BOTTOM_LEFT:case r.DIRECTION.BOTTOM_RIGHT:return e.fromRange(this.minX,this.minY,this.maxX,this.maxY-a);case r.DIRECTION.LEFT:case r.DIRECTION.LEFT_TOP:case r.DIRECTION.LEFT_BOTTOM:return e.fromRange(this.minX+i,this.minY,this.maxX,this.maxY);default:return this}},e.prototype.shrink=function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return new e(this.x+a,this.y+n,this.width-a-r,this.height-n-i)},e.prototype.expand=function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return new e(this.x-a,this.y-n,this.width+a+r,this.height+n+i)},e.prototype.exceed=function(e){return[Math.max(-this.minY+e.minY,0),Math.max(this.maxX-e.maxX,0),Math.max(this.maxY-e.maxY,0),Math.max(-this.minX+e.minX,0)]},e.prototype.collide=function(e){return this.minXe.minX&&this.minYe.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY},e}();t.BBox=i,t.getRegionBBox=function(e,t){var n=t.start,r=t.end;return new i(e.x+e.width*n.x,e.y+e.height*n.y,e.width*Math.abs(r.x-n.x),e.height*Math.abs(r.y-n.y))};function a(e){return[[e.minX,e.minY],[e.maxX,e.minY],[e.maxX,e.maxY],[e.minX,e.maxY]]}t.toPoints=a})),lE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getCoordinateBBox=e.getCoordinateClipCfg=e.getAngleByPoint=e.isPointInCoordinate=e.getDistanceToCenter=e.isFullCircle=e.getXDimensionLength=void 0;var t=oE(),n=sE(),r=cE();function i(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var t=e.convert({x:0,y:0}),n=e.convert({x:1,y:0});return Math.sqrt((n.x-t.x)**2+(n.y-t.y)**2)}e.getXDimensionLength=i;function a(e){if(e.isPolar){var t=e.startAngle;return e.endAngle-t===Math.PI*2}return!1}e.isFullCircle=a;function o(e,t){var n=e.getCenter();return Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2)}e.getDistanceToCenter=o;function s(e,t){var r=!1;if(e)if(e.type===`theta`){var i=e.start,a=e.end;r=(0,n.isBetween)(t.x,i.x,a.x)&&(0,n.isBetween)(t.y,i.y,a.y)}else{var o=e.invert(t);r=(0,n.isBetween)(o.x,0,1)&&(0,n.isBetween)(o.y,0,1)}return r}e.isPointInCoordinate=s;function c(e,t){var n=e.getCenter();return Math.atan2(t.y-n.y,t.x-n.x)}e.getAngleByPoint=c;function l(e,n){n===void 0&&(n=0);var r=e.start,i=e.end,a=e.getWidth(),o=e.getHeight();if(e.isPolar){var s=e.startAngle,c=e.endAngle,l=e.getCenter(),u=e.getRadius();return{type:`path`,startState:{path:(0,t.getSectorPath)(l.x,l.y,u+n,s,s)},endState:function(e){var r=(c-s)*e+s;return{path:(0,t.getSectorPath)(l.x,l.y,u+n,s,r)}},attrs:{path:(0,t.getSectorPath)(l.x,l.y,u+n,s,c)}}}var d=e.isTransposed?{height:o+n*2}:{width:a+n*2};return{type:`rect`,startState:{x:r.x-n,y:i.y-n,width:e.isTransposed?a+n*2:0,height:e.isTransposed?0:o+n*2},endState:d,attrs:{x:r.x-n,y:i.y-n,width:a+n*2,height:o+n*2}}}e.getCoordinateClipCfg=l;function u(e,t){t===void 0&&(t=0);var n=e.start,i=e.end,a=e.getWidth(),o=e.getHeight(),s=Math.min(n.x,i.x),c=Math.min(n.y,i.y);return r.BBox.fromRange(s-t,c-t,s+a+t,c+o+t)}e.getCoordinateBBox=u})),uE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMaxScale=t.getDefaultCategoryScaleRange=t.getName=t.syncScale=t.createScaleByField=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=rE(),a=lE(),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]))?$/;function s(e){var t=`linear`;return o.test(e)?t=`timeCat`:(0,r.isString)(e)&&(t=`cat`),t}function c(e,t,a){var o=t||[];if((0,r.isNumber)(e)||(0,r.isNil)((0,r.firstValue)(o,e))&&(0,r.isEmpty)(a))return new((0,i.getScale)(`identity`))({field:e.toString(),values:[e]});var c=(0,r.valuesOfKey)(o,e),l=(0,r.get)(a,`type`,s(c[0]));return new((0,i.getScale)(l))((0,n.__assign)({field:e,values:c},a))}t.createScaleByField=c;function l(e,t){if(e.type!==`identity`&&t.type!==`identity`){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);e.change(n)}}t.syncScale=l;function u(e){return e.alias||e.field}t.getName=u;function d(e,t,n){var i=e.values.length,o;if(i===1)o=[.5,1];else{var s=1,c=0;(0,a.isFullCircle)(t)?t.isTransposed?(s=(0,r.get)(n,`widthRatio.multiplePie`,1/1.3),c=1/i*s,o=[c/2,1-c/2]):o=[0,1-1/i]:(c=1/i/2,o=[c,1-c])}return o}t.getDefaultCategoryScaleRange=d;function f(e){var t=e.values.filter(function(e){return!(0,r.isNil)(e)&&!isNaN(e)});return Math.max.apply(Math,(0,n.__spreadArray)((0,n.__spreadArray)([],t,!1),[(0,r.isNil)(e.max)?-1/0:e.max],!1))}t.getMaxScale=f})),dE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getAxisTitleText=t.getAxisDirection=t.getAxisOption=t.getCircleAxisCenterRadius=t.getAxisTitleOptions=t.getAxisThemeCfg=t.getAxisFactorByRegion=t.isVertical=t.getAxisFactor=t.getAxisRegion=t.getCircleAxisRelativeRegion=t.getLineAxisRelativeRegion=void 0;var n=(J(),e(q)),r=Y(),i=uE(),a=(yu(),e(vu));function o(e){var t,n;switch(e){case r.DIRECTION.TOP:t={x:0,y:1},n={x:1,y:1};break;case r.DIRECTION.RIGHT:t={x:1,y:0},n={x:1,y:1};break;case r.DIRECTION.BOTTOM:t={x:0,y:0},n={x:1,y:0};break;case r.DIRECTION.LEFT:t={x:0,y:0},n={x:0,y:1};break;default:t=n={x:0,y:0}}return{start:t,end:n}}t.getLineAxisRelativeRegion=o;function s(e){var t,n;return e.isTransposed?(t={x:0,y:0},n={x:1,y:0}):(t={x:0,y:0},n={x:0,y:1}),{start:t,end:n}}t.getCircleAxisRelativeRegion=s;function c(e,t){var n={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?n=o(t):e.isPolar&&(n=s(e));var r=n.start,i=n.end;return{start:e.convert(r),end:e.convert(i)}}t.getAxisRegion=c;function l(e,t){return e.isRect?e.isTransposed?[r.DIRECTION.RIGHT,r.DIRECTION.BOTTOM].includes(t)?1:-1:[r.DIRECTION.BOTTOM,r.DIRECTION.RIGHT].includes(t)?-1:1:e.isPolar&&e.x.start<0?-1:1}t.getAxisFactor=l;function u(e){var t=e.start,n=e.end;return t.x===n.x}t.isVertical=u;function d(e,t){var n=e.start,r=e.end;return u(e)?(n.y-r.y)*(t.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-t.y)>0?-1:1}t.getAxisFactorByRegion=d;function f(e,t){var r=(0,n.get)(e,[`components`,`axis`],{});return(0,n.deepMix)({},(0,n.get)(r,[`common`],{}),(0,n.deepMix)({},(0,n.get)(r,[t],{})))}t.getAxisThemeCfg=f;function p(e,t,r){var i=(0,n.get)(e,[`components`,`axis`],{});return(0,n.deepMix)({},(0,n.get)(i,[`common`,`title`],{}),(0,n.deepMix)({},(0,n.get)(i,[t,`title`],{})),r)}t.getAxisTitleOptions=p;function m(e){var t=e.x,n=e.y,r=e.circleCenter,i=n.start>n.end,o=e.isTransposed?e.convert({x:+!i,y:0}):e.convert({x:0,y:+!i}),s=[o.x-r.x,o.y-r.y],c=[1,0],l=o.y>r.y?a.vec2.angle(s,c):a.vec2.angle(s,c)*-1,u=l+(t.end-t.start);return{center:r,radius:Math.sqrt((o.x-r.x)**2+(o.y-r.y)**2),startAngle:l,endAngle:u}}t.getCircleAxisCenterRadius=m;function h(e,t){return(0,n.isBoolean)(e)?e===!1?!1:{}:(0,n.get)(e,[t])}t.getAxisOption=h;function g(e,t){return(0,n.get)(e,`position`,t)}t.getAxisDirection=g;function _(e,t){return(0,n.get)(t,[`title`,`text`],(0,i.getName)(e))}t.getAxisTitleText=_})),fE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.showGrid=t.getCircleGridItems=t.getLineGridItems=t.getGridThemeCfg=void 0;var n=(J(),e(q));function r(e,t){var r=(0,n.deepMix)({},(0,n.get)(e,[`components`,`axis`,`common`]),(0,n.get)(e,[`components`,`axis`,t]));return(0,n.get)(r,[`grid`],{})}t.getGridThemeCfg=r;function i(e,t,n,r){var i=[],a=t.getTicks();return e.isPolar&&a.push({value:1,text:``,tickValue:``}),a.reduce(function(t,a,o){var s=a.value;if(r)i.push({points:[e.convert(n===`y`?{x:0,y:s}:{x:s,y:0}),e.convert(n===`y`?{x:1,y:s}:{x:s,y:1})]});else if(o){var c=(t.value+s)/2;i.push({points:[e.convert(n===`y`?{x:0,y:c}:{x:c,y:0}),e.convert(n===`y`?{x:1,y:c}:{x:c,y:1})]})}return a},a[0]),i}t.getLineGridItems=i;function a(e,t,r,i,a){var o=t.values.length,s=[],c=r.getTicks();return c.reduce(function(t,r){var c=t?t.value:r.value,l=r.value,u=(c+l)/2;return a===`x`?s.push({points:[e.convert({x:i?l:u,y:0}),e.convert({x:i?l:u,y:1})]}):s.push({points:(0,n.map)(Array(o+1),function(t,n){return e.convert({x:n/o,y:i?l:u})})}),r},c[0]),s}t.getCircleGridItems=a;function o(e,t){var r=(0,n.get)(t,`grid`);if(r===null)return!1;var i=(0,n.get)(e,`grid`);return!(r===void 0&&i===null)}t.showGrid=o})),pE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Controller=void 0;var n=(J(),e(q));t.Controller=function(){function e(e){this.visible=!0,this.components=[],this.view=e}return e.prototype.clear=function(e){(0,n.each)(this.components,function(e){e.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(e){this.visible!==e&&(this.components.forEach(function(t){e?t.component.show():t.component.hide()}),this.visible=e)},e}()})),mE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=rE(),o=aE(),s=dE(),c=dE(),l=fE(),u=sE(),d=pE(),f=[`container`],p=(0,n.__assign)((0,n.__assign)({},o.DEFAULT_ANIMATE_CFG),{appear:null});t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(i.LAYER.BG).addGroup(),n.gridForeContainer=n.view.getLayer(i.LAYER.FORE).addGroup(),n.axisContainer=n.view.getLayer(i.LAYER.BG).addGroup(),n.axisForeContainer=n.view.getLayer(i.LAYER.FORE).addGroup(),n}return Object.defineProperty(t.prototype,`name`,{get:function(){return`axis`},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this,t=this.view.getCoordinate();(0,r.each)(this.getComponents(),function(n){var r=n.component,a=n.direction,o=n.type,c=n.extra,u=c.dim,d=c.scale,f=c.alignTick,p;if(o===i.COMPONENT_TYPE.AXIS)t.isPolar?u===`x`?p=t.isTransposed?(0,s.getAxisRegion)(t,a):(0,s.getCircleAxisCenterRadius)(t):u===`y`&&(p=t.isTransposed?(0,s.getCircleAxisCenterRadius)(t):(0,s.getAxisRegion)(t,a)):p=(0,s.getAxisRegion)(t,a);else if(o===i.COMPONENT_TYPE.GRID)if(t.isPolar){var m=void 0;m=t.isTransposed?u===`x`?(0,l.getCircleGridItems)(t,e.view.getYScales()[0],d,f,u):(0,l.getLineGridItems)(t,d,u,f):u===`x`?(0,l.getLineGridItems)(t,d,u,f):(0,l.getCircleGridItems)(t,e.view.getXScale(),d,f,u),p={items:m,center:e.view.getCoordinate().getCenter()}}else p={items:(0,l.getLineGridItems)(t,d,u,f)};r.update(p)})},t.prototype.update=function(){this.option=this.view.getOptions().axes;var e=new Map;this.updateXAxes(e),this.updateYAxes(e);var t=new Map;this.cache.forEach(function(n,r){e.has(r)?t.set(r,n):n.component.destroy()}),this.cache=t},t.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},t.prototype.getComponents=function(){var e=[];return this.cache.forEach(function(t){e.push(t)}),e},t.prototype.updateXAxes=function(e){var t=this.view.getXScale();if(!(!t||t.isIdentity)){var n=(0,c.getAxisOption)(this.option,t.field);if(n!==!1){var a=(0,s.getAxisDirection)(n,i.DIRECTION.BOTTOM),o=i.LAYER.BG,l=`x`,d=this.view.getCoordinate(),p=this.getId(`axis`,t.field),m=this.getId(`grid`,t.field);if(d.isRect){var h=this.cache.get(p);if(h){var g=this.getLineAxisCfg(t,n,a);(0,u.omit)(g,f),h.component.update(g),e.set(p,h)}else h=this.createLineAxis(t,n,o,a,l),this.cache.set(p,h),e.set(p,h);var _=this.cache.get(m);if(_){var g=this.getLineGridCfg(t,n,a,l);(0,u.omit)(g,f),_.component.update(g),e.set(m,_)}else _=this.createLineGrid(t,n,o,a,l),_&&(this.cache.set(m,_),e.set(m,_))}else if(d.isPolar){var h=this.cache.get(p);if(h){var g=d.isTransposed?this.getLineAxisCfg(t,n,i.DIRECTION.RADIUS):this.getCircleAxisCfg(t,n,a);(0,u.omit)(g,f),h.component.update(g),e.set(p,h)}else{if(d.isTransposed){if((0,r.isUndefined)(n))return;h=this.createLineAxis(t,n,o,i.DIRECTION.RADIUS,l)}else h=this.createCircleAxis(t,n,o,a,l);this.cache.set(p,h),e.set(p,h)}var _=this.cache.get(m);if(_){var g=d.isTransposed?this.getCircleGridCfg(t,n,i.DIRECTION.RADIUS,l):this.getLineGridCfg(t,n,i.DIRECTION.CIRCLE,l);(0,u.omit)(g,f),_.component.update(g),e.set(m,_)}else{if(d.isTransposed){if((0,r.isUndefined)(n))return;_=this.createCircleGrid(t,n,o,i.DIRECTION.RADIUS,l)}else _=this.createLineGrid(t,n,o,i.DIRECTION.CIRCLE,l);_&&(this.cache.set(m,_),e.set(m,_))}}}}},t.prototype.updateYAxes=function(e){var t=this,n=this.view.getYScales();(0,r.each)(n,function(n,a){if(!(!n||n.isIdentity)){var o=n.field,l=(0,c.getAxisOption)(t.option,o);if(l!==!1){var d=i.LAYER.BG,p=`y`,m=t.getId(`axis`,o),h=t.getId(`grid`,o),g=t.view.getCoordinate();if(g.isRect){var _=(0,s.getAxisDirection)(l,a===0?i.DIRECTION.LEFT:i.DIRECTION.RIGHT),v=t.cache.get(m);if(v){var y=t.getLineAxisCfg(n,l,_);(0,u.omit)(y,f),v.component.update(y),e.set(m,v)}else v=t.createLineAxis(n,l,d,_,p),t.cache.set(m,v),e.set(m,v);var b=t.cache.get(h);if(b){var y=t.getLineGridCfg(n,l,_,p);(0,u.omit)(y,f),b.component.update(y),e.set(h,b)}else b=t.createLineGrid(n,l,d,_,p),b&&(t.cache.set(h,b),e.set(h,b))}else if(g.isPolar){var v=t.cache.get(m);if(v){var y=g.isTransposed?t.getCircleAxisCfg(n,l,i.DIRECTION.CIRCLE):t.getLineAxisCfg(n,l,i.DIRECTION.RADIUS);(0,u.omit)(y,f),v.component.update(y),e.set(m,v)}else{if(g.isTransposed){if((0,r.isUndefined)(l))return;v=t.createCircleAxis(n,l,d,i.DIRECTION.CIRCLE,p)}else v=t.createLineAxis(n,l,d,i.DIRECTION.RADIUS,p);t.cache.set(m,v),e.set(m,v)}var b=t.cache.get(h);if(b){var y=g.isTransposed?t.getLineGridCfg(n,l,i.DIRECTION.CIRCLE,p):t.getCircleGridCfg(n,l,i.DIRECTION.RADIUS,p);(0,u.omit)(y,f),b.component.update(y),e.set(h,b)}else{if(g.isTransposed){if((0,r.isUndefined)(l))return;b=t.createLineGrid(n,l,d,i.DIRECTION.CIRCLE,p)}else b=t.createCircleGrid(n,l,d,i.DIRECTION.RADIUS,p);b&&(t.cache.set(h,b),e.set(h,b))}}}}})},t.prototype.createLineAxis=function(e,t,n,r,o){var s={component:new a.LineAxis(this.getLineAxisCfg(e,t,r)),layer:n,direction:r===i.DIRECTION.RADIUS?i.DIRECTION.NONE:r,type:i.COMPONENT_TYPE.AXIS,extra:{dim:o,scale:e}};return s.component.set(`field`,e.field),s.component.init(),s},t.prototype.createLineGrid=function(e,t,n,o,s){var c=this.getLineGridCfg(e,t,o,s);if(c){var l={component:new a.LineGrid(c),layer:n,direction:i.DIRECTION.NONE,type:i.COMPONENT_TYPE.GRID,extra:{dim:s,scale:e,alignTick:(0,r.get)(c,`alignTick`,!0)}};return l.component.init(),l}},t.prototype.createCircleAxis=function(e,t,n,r,o){var s={component:new a.CircleAxis(this.getCircleAxisCfg(e,t,r)),layer:n,direction:r,type:i.COMPONENT_TYPE.AXIS,extra:{dim:o,scale:e}};return s.component.set(`field`,e.field),s.component.init(),s},t.prototype.createCircleGrid=function(e,t,n,o,s){var c=this.getCircleGridCfg(e,t,o,s);if(c){var l={component:new a.CircleGrid(c),layer:n,direction:i.DIRECTION.NONE,type:i.COMPONENT_TYPE.GRID,extra:{dim:s,scale:e,alignTick:(0,r.get)(c,`alignTick`,!0)}};return l.component.init(),l}},t.prototype.getLineAxisCfg=function(e,t,i){var a=(0,r.get)(t,[`top`])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),c=(0,s.getAxisRegion)(o,i),l=(0,s.getAxisTitleText)(e,t),u=(0,s.getAxisThemeCfg)(this.view.getTheme(),i),d=(0,r.get)(t,[`title`])?(0,r.deepMix)({title:{style:{text:l}}},{title:(0,s.getAxisTitleOptions)(this.view.getTheme(),i,t.title)},t):t,f=(0,r.deepMix)((0,n.__assign)((0,n.__assign)({container:a},c),{ticks:e.getTicks().map(function(e){return{id:``+e.tickValue,name:e.text,value:e.value}}),verticalFactor:o.isPolar?(0,s.getAxisFactorByRegion)(c,o.getCenter())*-1:(0,s.getAxisFactorByRegion)(c,o.getCenter()),theme:u}),u,d),p=this.getAnimateCfg(f),m=p.animate;f.animateOption=p.animateOption,f.animate=m;var h=(0,s.isVertical)(c),g=(0,r.get)(f,`verticalLimitLength`,h?1/3:1/2);if(g<=1){var _=this.view.getCanvas().get(`width`),v=this.view.getCanvas().get(`height`);f.verticalLimitLength=g*(h?_:v)}return f},t.prototype.getLineGridCfg=function(e,t,n,i){if((0,l.showGrid)((0,s.getAxisThemeCfg)(this.view.getTheme(),n),t)){var a=(0,l.getGridThemeCfg)(this.view.getTheme(),n),o=(0,r.deepMix)({container:(0,r.get)(t,[`top`])?this.gridForeContainer:this.gridContainer},a,(0,r.get)(t,`grid`),this.getAnimateCfg(t));return o.items=(0,l.getLineGridItems)(this.view.getCoordinate(),e,i,(0,r.get)(o,`alignTick`,!0)),o}},t.prototype.getCircleAxisCfg=function(e,t,a){var o=(0,r.get)(t,[`top`])?this.axisForeContainer:this.axisContainer,c=this.view.getCoordinate(),l=e.getTicks().map(function(e){return{id:``+e.tickValue,name:e.text,value:e.value}});!e.isCategory&&Math.abs(c.endAngle-c.startAngle)===Math.PI*2&&l.pop();var u=(0,s.getAxisTitleText)(e,t),d=(0,s.getAxisThemeCfg)(this.view.getTheme(),i.DIRECTION.CIRCLE),f=(0,r.get)(t,[`title`])?(0,r.deepMix)({title:{style:{text:u}}},{title:(0,s.getAxisTitleOptions)(this.view.getTheme(),a,t.title)},t):t,p=(0,r.deepMix)((0,n.__assign)((0,n.__assign)({container:o},(0,s.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:l,verticalFactor:1,theme:d}),d,f),m=this.getAnimateCfg(p),h=m.animate,g=m.animateOption;return p.animate=h,p.animateOption=g,p},t.prototype.getCircleGridCfg=function(e,t,n,a){if((0,l.showGrid)((0,s.getAxisThemeCfg)(this.view.getTheme(),n),t)){var o=(0,l.getGridThemeCfg)(this.view.getTheme(),i.DIRECTION.RADIUS),c=(0,r.deepMix)({container:(0,r.get)(t,[`top`])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,r.get)(t,`grid`),this.getAnimateCfg(t)),u=(0,r.get)(c,`alignTick`,!0),d=a===`x`?this.view.getYScales()[0]:this.view.getXScale();return c.items=(0,l.getCircleGridItems)(this.view.getCoordinate(),d,e,u,a),c}},t.prototype.getId=function(e,t){var n=this.view.getCoordinate();return e+`-`+t+`-`+n.type},t.prototype.getAnimateCfg=function(e){return{animate:this.view.getOptions().animate&&(0,r.get)(e,`animate`),animateOption:e&&e.animateOption?(0,r.deepMix)({},p,e.animateOption):p}},t}(d.Controller)})),hE=i((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(a()),r=t(hE());function i(){return n.default.useContext(r.default)}e.default=i})),_E=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t={}.toString;e.default=function(e,n){return t.call(e)===`[object `+n+`]`}})),vE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=_E();e.default=(function(e){return Array.isArray?Array.isArray(e):t.default(e,`Array`)})})),yE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=vE(),n=function(e){if(typeof e!=`object`||!e)return e;var r;if(t.default(e)){r=[];for(var i=0,a=e.length;i{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(yE());e.default=(function(e,t){var r=(0,n.default)(e);return t.forEach(function(e){r[e]===!0?r[e]={}:r[e]===!1&&(r[e]=null)}),r})})),xE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isSamePoint=t.mergeRegion=t.intersectRect=t.inBox=t.distance=t.getPixelRatio=void 0;function n(){return window?window.devicePixelRatio:1}t.getPixelRatio=n;function r(e,t,n,r){var i=e-n,a=t-r;return Math.sqrt(i*i+a*a)}t.distance=r;function i(e,t,n,r,i,a){return i>=e&&i<=e+n&&a>=t&&a<=t+r}t.inBox=i;function a(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var t=xE(),n=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,r=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function o(e,n){var r=e.match(a);t.each(r,function(e){var t=e.split(`:`);n.addColorStop(t[0],t[1])})}function s(e,t,r){var i=n.exec(r),a=parseFloat(i[1])%360*(Math.PI/180),s=i[2],c=t.getBBox(),l,u;a>=0&&a<1/2*Math.PI?(l={x:c.minX,y:c.minY},u={x:c.maxX,y:c.maxY}):1/2*Math.PI<=a&&a{Object.defineProperty(e,`__esModule`,{value:!0});var t=xE();function n(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function r(e,t){return n(e)*n(t)?(e[0]*t[0]+e[1]*t[1])/(n(e)*n(t)):1}function i(e,t){return(e[0]*t[1]1&&(a*=Math.sqrt(g),o*=Math.sqrt(g));var _=a*a*(h*h)+o*o*(m*m),v=_?Math.sqrt((a*a*(o*o)-_)/_):1;c===l&&(v*=-1),isNaN(v)&&(v=0);var y=o?v*a*h/o:0,b=a?v*-o*m/a:0,x=(u+f)/2+Math.cos(s)*y-Math.sin(s)*b,S=(d+p)/2+Math.sin(s)*y+Math.cos(s)*b,C=[(m-y)/a,(h-b)/o],w=[(-1*m-y)/a,(-1*h-b)/o],T=i([1,0],C),E=i(C,w);return r(C,w)<=-1&&(E=Math.PI),r(C,w)>=1&&(E=0),l===0&&E>0&&(E-=2*Math.PI),l===1&&E<0&&(E+=2*Math.PI),{cx:x,cy:S,rx:t.isSamePoint(e,[f,p])?0:a,ry:t.isSamePoint(e,[f,p])?0:o,startAngle:T,endAngle:T+E,xRotation:s,arcFlag:c,sweepFlag:l}}e.default=a})),wE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.addEndArrow=t.addStartArrow=t.getShortenOffset=void 0;var n=(R(),e(F)),r=KE(),i=Math.sin,a=Math.cos,o=Math.atan2,s=Math.PI;function c(e,t,n,c,l,u,d){var f=t.stroke,p=t.lineWidth,m=n-l,h=o(c-u,m),g=new r.Path({type:`path`,canvas:e.get(`canvas`),isArrowShape:!0,attrs:{path:`M`+10*a(s/6)+`,`+10*i(s/6)+` L0,0 L`+10*a(s/6)+`,-`+10*i(s/6),stroke:f,lineWidth:p}});g.translate(l,u),g.rotateAtPoint(l,u,h),e.set(d?`startArrowShape`:`endArrowShape`,g)}function l(e,t,s,c,l,u,d){var f=t.startArrow,p=t.endArrow,m=t.stroke,h=t.lineWidth,g=d?f:p,_=g.d,v=g.fill,y=g.stroke,b=g.lineWidth,x=n.__rest(g,[`d`,`fill`,`stroke`,`lineWidth`]),S=s-l,C=o(c-u,S);_&&(l-=a(C)*_,u-=i(C)*_);var w=new r.Path({type:`path`,canvas:e.get(`canvas`),isArrowShape:!0,attrs:n.__assign(n.__assign({},x),{stroke:y||m,lineWidth:b||h,fill:v})});w.translate(l,u),w.rotateAtPoint(l,u,C),e.set(d?`startArrowShape`:`endArrowShape`,w)}function u(e,t,n,r,s){var c=o(r-t,n-e);return{dx:a(c)*s,dy:i(c)*s}}t.getShortenOffset=u;function d(e,t,n,r,i,a){typeof t.startArrow==`object`?l(e,t,n,r,i,a,!0):t.startArrow?c(e,t,n,r,i,a,!0):e.set(`startArrowShape`,null)}t.addStartArrow=d;function f(e,t,n,r,i,a){typeof t.endArrow==`object`?l(e,t,n,r,i,a,!1):t.endArrow?c(e,t,n,r,i,a,!1):e.set(`startArrowShape`,null)}t.addEndArrow=f})),TE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.mergeView=t.getMergedRegion=t.getRefreshRegion=t.refreshElement=t.drawPath=t.clearChanged=t.checkChildrenRefresh=t.checkRefresh=t.drawChildren=t.applyAttrsToContext=void 0;var n=(J(),e(q)),r=SE(),i=CE(),a=xE(),o=wE(),s={fill:`fillStyle`,stroke:`strokeStyle`,opacity:`globalAlpha`};function c(e,t){var i=t.attr();for(var a in i){var o=i[a],c=s[a]?s[a]:a;c===`matrix`&&o?e.transform(o[0],o[1],o[3],o[4],o[6],o[7]):c===`lineDash`&&e.setLineDash?n.isArray(o)&&e.setLineDash(o):(c===`strokeStyle`||c===`fillStyle`?o=r.parseStyle(e,t,o):c===`globalAlpha`&&(o*=e.globalAlpha),e[c]=o)}}t.applyAttrsToContext=c;function l(e,t,n){for(var r=0;rS?x:S,O=x>S?1:x/S,k=x>S?S/x:1;t.translate(y,b),t.rotate(T),t.scale(O,k),t.arc(0,0,D,C,w,1-E),t.scale(1/O,1/k),t.rotate(-T),t.translate(-y,-b)}break;case`Z`:t.closePath();break;default:break}if(m===`Z`)l=u;else{var A=p.length;l=[p[A-2],p[A-1]]}}}}t.drawPath=h;function g(e,t){var n=e.get(`canvas`);n&&(t===`remove`&&(e._cacheCanvasBBox=e.get(`cacheCanvasBBox`)),e.get(`hasChanged`)||(e.set(`hasChanged`,!0),e.cfg.parent&&e.cfg.parent.get(`hasChanged`)||(n.refreshElement(e,t,n),n.get(`autoDraw`)&&n.draw())))}t.refreshElement=g;function _(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var n=e.get(`cacheCanvasBBox`),r=n&&!!(n.width&&n.height),i=e.getCanvasBBox(),o=i&&!!(i.width&&i.height);r&&o?t=a.mergeRegion(n,i):r?t=n:o&&(t=i)}return t}t.getRefreshRegion=_;function v(e){if(!e.length)return null;var t=[],r=[],i=[],a=[];return n.each(e,function(e){var n=_(e);n&&(t.push(n.minX),r.push(n.minY),i.push(n.maxX),a.push(n.maxY))}),{minX:n.min(t),minY:n.min(r),maxX:n.max(i),maxY:n.max(a)}}t.getMergedRegion=v;function y(e,t){return!e||!t||!a.intersectRect(e,t)?null:{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}}t.mergeView=y})),EE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=KE(),a=TE(),o=(J(),e(q)),s=xE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onCanvasChange=function(e){a.refreshElement(this,e)},t.prototype.getShapeBase=function(){return i},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),a.applyAttrsToContext(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],n=[];o.each(e,function(e){var r=e.cfg.cacheCanvasBBox;r&&e.cfg.isInView&&(t.push(r.minX,r.maxX),n.push(r.minY,r.maxY))});var r=null;if(t.length){var i=o.min(t),a=o.max(t),c=o.min(n),l=o.max(n);r={minX:i,minY:c,x:i,y:c,maxX:a,maxY:l,width:a-i,height:l-c};var u=this.cfg.canvas;if(u){var d=u.getViewRange();this.set(`isInView`,s.intersectRect(r,d))}}else this.set(`isInView`,!1);this.set(`cacheCanvasBBox`,r)},t.prototype.draw=function(e,t){var n=this.cfg.children,r=t?this.cfg.refresh:!0;n.length&&r&&(e.save(),a.applyAttrsToContext(e,this),this._applyClip(e,this.getClip()),a.drawChildren(e,n,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set(`hasChanged`,!1)},t.prototype.skipDraw=function(){this.set(`cacheCanvasBBox`,null),this.set(`hasChanged`,!1)},t}(r.AbstractGroup)})),DE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=xE(),a=TE(),o=(X(),e(O_)),s=KE(),c=EE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return s},t.prototype.getGroupBase=function(){return c.default},t.prototype.onCanvasChange=function(e){a.refreshElement(this,e)},t.prototype.calculateBBox=function(){var e=this.get(`type`),t=this.getHitLineWidth(),n=o.getBBoxMethod(e)(this),r=t/2,i=n.x-r,a=n.y-r,s=n.x+n.width+r,c=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+t,height:n.height+t,maxX:s,maxY:c}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),a.applyAttrsToContext(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var n=this.cfg.clipShape;if(t){if(this.cfg.refresh===!1){this.set(`hasChanged`,!1);return}var r=this.getCanvasBBox();if(!i.intersectRect(t,r)){this.set(`hasChanged`,!1),this.cfg.isInView&&this._afterDraw();return}}e.save(),a.applyAttrsToContext(e,this),this._applyClip(e,n),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),n=i.intersectRect(t,e);this.set(`isInView`,n),n?this.set(`cacheCanvasBBox`,t):this.set(`cacheCanvasBBox`,null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set(`hasChanged`,!1),this.set(`refresh`,null)},t.prototype.skipDraw=function(){this.set(`cacheCanvasBBox`,null),this.set(`isInView`,null),this.set(`hasChanged`,!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,a=t.strokeOpacity,o=t.fillOpacity;this.isFill()&&(!i.isNil(o)&&o!==1?(e.globalAlpha=o,this.fill(e),e.globalAlpha=r):this.fill(e)),this.isStroke()&&n>0&&(!i.isNil(a)&&a!==1&&(e.globalAlpha=a),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,n,r,i)},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(r.AbstractShape)})),OE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=xE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,a){var o=this.attr(),s=o.x,c=o.y,l=o.r,u=a/2,d=i.distance(s,c,e,t);return r&&n?d<=l+u:r?d<=l:n?d>=l-u&&d<=l+u:!1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.r;e.beginPath(),e.arc(n,r,i,0,Math.PI*2,!1),e.closePath()},t}(r.default)})),kE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE();function i(e,t,n,r){return e/(n*n)+t/(r*r)}t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,a){var o=this.attr(),s=a/2,c=o.x,l=o.y,u=o.rx,d=o.ry,f=(e-c)*(e-c),p=(t-l)*(t-l);return r&&n?i(f,p,u+s,d+s)<=1:r?i(f,p,u,d)<=1:n?i(f,p,u-s,d-s)>=1&&i(f,p,u+s,d+s)<=1:!1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.rx,a=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(n,r,i,a,0,0,Math.PI*2,!1);else{var o=i>a?i:a,s=i>a?1:i/a,c=i>a?a/i:1;e.save(),e.translate(n,r),e.scale(s,c),e.arc(0,0,o,0,Math.PI*2),e.restore(),e.closePath()}},t}(r.default)})),AE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=xE();function a(e){return e instanceof HTMLElement&&i.isString(e.nodeName)&&e.nodeName.toUpperCase()===`CANVAS`}t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(this.get(`toDraw`)===!0){var e=this.get(`canvas`);e?e.draw():this.createPath(this.get(`context`))}},t.prototype._setImage=function(e){var t=this,n=this.attrs;if(i.isString(e)){var r=new Image;r.onload=function(){if(t.destroyed)return!1;t.attr(`img`,r),t.set(`loading`,!1),t._afterLoading();var e=t.get(`callback`);e&&e.call(t)},r.crossOrigin=`Anonymous`,r.src=e,this.set(`loading`,!0)}else e instanceof Image?(n.width||=e.width,n.height||=e.height):a(e)&&(n.width||=Number(e.getAttribute(`width`)),n.height||(n.height,Number(e.getAttribute(`height`))))},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t===`img`&&this._setImage(n)},t.prototype.createPath=function(e){if(this.get(`loading`)){this.set(`toDraw`,!0),this.set(`context`,e);return}var t=this.attr(),n=t.x,r=t.y,o=t.width,s=t.height,c=t.sx,l=t.sy,u=t.swidth,d=t.sheight,f=t.img;(f instanceof Image||a(f))&&(!i.isNil(c)&&!i.isNil(l)&&!i.isNil(u)&&!i.isNil(d)?e.drawImage(f,c,l,u,d,n,r,o,s):e.drawImage(f,n,r,o,s))},t}(r.default)})),jE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(yh(),e(vh));function r(e,t,r,i,a,o,s){var c=Math.min(e,r),l=Math.max(e,r),u=Math.min(t,i),d=Math.max(t,i),f=a/2;return o>=c-f&&o<=l+f&&s>=u-f&&s<=d+f?n.Line.pointToLine(e,t,r,i,o,s)<=a/2:!1}t.default=r})),ME=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=DE(),a=jE(),o=wE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,i=e.y2,a=e.startArrow,s=e.endArrow;a&&o.addStartArrow(this,e,r,i,t,n),s&&o.addEndArrow(this,e,t,n,r,i)},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){if(!n||!i)return!1;var o=this.attr(),s=o.x1,c=o.y1,l=o.x2,u=o.y2;return a.default(s,c,l,u,i,e,t)},t.prototype.createPath=function(e){var t=this.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2,s=t.startArrow,c=t.endArrow,l={dx:0,dy:0},u={dx:0,dy:0};s&&s.d&&(l=o.getShortenOffset(n,r,i,a,t.startArrow.d)),c&&c.d&&(u=o.getShortenOffset(n,r,i,a,t.endArrow.d)),e.beginPath(),e.moveTo(n+l.dx,r+l.dy),e.lineTo(i-u.dx,a-u.dy)},t.prototype.afterDrawPath=function(e){var t=this.get(`startArrowShape`),n=this.get(`endArrowShape`);t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,i=e.x2,a=e.y2;return r.Line.length(t,n,i,a)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,i=t.y1,a=t.x2,o=t.y2;return r.Line.pointAt(n,i,a,o,e)},t}(i.default)})),NE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(v_(),e(__)),a=DE(),o=xE(),s=TE(),c={circle:function(e,t,n){return[[`M`,e-n,t],[`A`,n,n,0,1,0,e+n,t],[`A`,n,n,0,1,0,e-n,t]]},square:function(e,t,n){return[[`M`,e-n,t-n],[`L`,e+n,t-n],[`L`,e+n,t+n],[`L`,e-n,t+n],[`Z`]]},diamond:function(e,t,n){return[[`M`,e-n,t],[`L`,e,t-n],[`L`,e+n,t],[`L`,e,t+n],[`Z`]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t+r],[`L`,e,t-r],[`L`,e+n,t+r],[`Z`]]},"triangle-down":function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t-r],[`L`,e+n,t-r],[`L`,e,t+r],[`Z`]]}};t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set(`paramsCache`,{})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),[`symbol`,`x`,`y`,`r`,`radius`].indexOf(t)!==-1&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return r.isNil(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e=this.attr(),n=e.x,r=e.y,a=e.symbol||`circle`,s=this._getR(e),c,l;if(o.isFunction(a))c=a,l=c(n,r,s),l=i.path2Absolute(l);else{if(c=t.Symbols[a],!c)return console.warn(a+` marker is not supported.`),null;l=c(n,r,s)}return l},t.prototype.createPath=function(e){var t=this._getPath(),n=this.get(`paramsCache`);s.drawPath(this,e,{path:t},n)},t.Symbols=c,t}(a.default)})),PE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(X(),e(O_));function r(e,t,r){var i=n.getOffScreenContext();return e.createPath(i),i.isPointInPath(t,r)}t.default=r})),FE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=1e-6;function n(e){return Math.abs(e)0!=n(l[1]-i)>0&&n(t-(i-c[1])*(c[0]-l[0])/(c[1]-l[1])-c[0])<0&&(a=!a)}return a}e.default=i})),IE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=xE();function n(e,n,r,i,a,o,s,c){var l=(Math.atan2(c-n,s-e)+Math.PI*2)%(Math.PI*2);if(la)return!1;var u={x:e+r*Math.cos(l),y:n+r*Math.sin(l)};return t.distance(u.x,u.y,s,c)<=o/2}e.default=n})),LE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=(yh(),e(vh)),a=(yh(),e(vh)),o=(yu(),e(vu)),s=(fl(),e(gc)),c=xE(),l=jE(),u=IE(),d=o.ext.transform;function f(e){for(var t=!1,n=e.length,r=0;rw?C:w,A=C>w?1:C/w,ee=C>w?w/C:1,te=d(null,[[`t`,-x,-S],[`r`,-D],[`s`,1/A,1/ee]]);s.transformMat3(O,O,te),f=u.default(0,0,k,T,E,t,O[0],O[1]);break;default:break}if(f)break}}return f}function m(e){for(var t=e.length,n=[],r=[],i=[],a=0;a0&&r.push(i),{polygons:n,polylines:r}}t.default=n.__assign({hasArc:f,extractPolygons:m,isPointInStroke:p},r.PathUtil)})),RE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=(J(),e(q)),a=DE(),o=(v_(),e(__)),s=TE(),c=PE(),l=FE(),u=LE(),d=wE();function f(e,t,n){for(var r=!1,i=0;i=t[0]&&e<=t[1]&&(n=(e-t[0])/(t[1]-t[0]),a=r)});var s=o[a];if(i.isNil(s)||i.isNil(a))return null;var c=s.length,l=o[a+1];return r.Cubic.pointAt(s[c-2],s[c-1],l[1],l[2],l[3],l[4],l[5],l[6],n)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set(`curve`,u.default.pathToCurve(e))},t.prototype._setTcache=function(){var e=0,t=0,n=[],a,o,s,c,l=this.get(`curve`);if(l){if(i.each(l,function(t,n){s=l[n+1],c=t.length,s&&(e+=r.Cubic.length(t[c-2],t[c-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set(`totalLength`,e),e===0){this.set(`tCache`,[]);return}i.each(l,function(i,u){s=l[u+1],c=i.length,s&&(a=[],a[0]=t/e,o=r.Cubic.length(i[c-2],i[c-1],s[1],s[2],s[3],s[4],s[5],s[6]),t+=o||0,a[1]=t/e,n.push(a))}),this.set(`tCache`,n)}},t.prototype.getStartTangent=function(){var e=this.getSegments(),t;if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},t.prototype.getEndTangent=function(){var e=this.getSegments(),t=e.length,n;if(t>1){var r=e[t-2].currentPoint,i=e[t-1].currentPoint,a=e[t-1].endTangent;n=[],a?(n.push([i[0]-a[0],i[1]-a[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},t}(a.default)})),zE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=jE();function n(e,n,r,i,a){var o=e.length;if(o<2)return!1;for(var s=0;s{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=zE(),a=FE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var s=this.attr().points,c=!1;return n&&(c=i.default(s,o,e,t,!0)),!c&&r&&(c=a.default(s,e,t)),c},t.prototype.createPath=function(e){var t=this.attr().points;if(!(t.length<2)){e.beginPath();for(var n=0;n{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=(yh(),e(vh)),a=(J(),e(q)),o=DE(),s=zE(),c=wE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow(),[`points`].indexOf(t)!==-1&&this._resetCache()},t.prototype._resetCache=function(){this.set(`totalLength`,null),this.set(`tCache`,null)},t.prototype.setArrow=function(){var e=this.attr(),t=this.attrs,n=t.points,r=t.startArrow,i=t.endArrow,a=n.length,o=n[0][0],s=n[0][1],l=n[a-1][0],u=n[a-1][1];r&&c.addStartArrow(this,e,n[1][0],n[1][1],o,s),i&&c.addEndArrow(this,e,n[a-2][0],n[a-2][1],l,u)},t.prototype.isFill=function(){return!1},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){if(!n||!i)return!1;var a=this.attr().points;return s.default(a,i,e,t,!1)},t.prototype.isStroke=function(){return!0},t.prototype.createPath=function(e){var t=this.attr(),n=t.points,r=t.startArrow,i=t.endArrow,a=n.length;if(!(n.length<2)){var o=n[0][0],s=n[0][1],l=n[a-1][0],u=n[a-1][1];if(r&&r.d){var d=c.getShortenOffset(o,s,n[1][0],n[1][1],r.d);o+=d.dx,s+=d.dy}if(i&&i.d){var d=c.getShortenOffset(n[a-2][0],n[a-2][1],l,u,i.d);l-=d.dx,u-=d.dy}e.beginPath(),e.moveTo(o,s);for(var f=0;f=t[0]&&e<=t[1]&&(i=(e-t[0])/(t[1]-t[0]),o=n)}),r.Line.pointAt(t[o][0],t[o][1],t[o+1][0],t[o+1][1],i)},t.prototype._setTcache=function(){var e=this.attr().points;if(!(!e||e.length===0)){var t=this.getTotalLength();if(!(t<=0)){var n=0,i=[],o,s;a.each(e,function(a,c){e[c+1]&&(o=[],o[0]=n/t,s=r.Line.length(a[0],a[1],e[c+1][0],e[c+1][1]),n+=s,o[1]=n/t,i.push(o))}),this.set(`tCache`,i)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(o.default)})),HE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=xE();function n(e,n,r,i,a,o,s){var c=a/2;return t.inBox(e-c,n-c,r,a,o,s)||t.inBox(e+r-c,n-c,a,i,o,s)||t.inBox(e+c,n+i-c,r,a,o,s)||t.inBox(e-c,n+c,a,i,o,s)}e.default=n})),UE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=jE(),n=IE();function r(e,r,i,a,o,s,c,l){return s/2,t.default(e+o,r,e+i-o,r,s,c,l)||t.default(e+i,r+o,e+i,r+a-o,s,c,l)||t.default(e+i-o,r+a,e+o,r+a,s,c,l)||t.default(e,r+a-o,e,r+o,s,c,l)||n.default(e+i-o,r+o,o,1.5*Math.PI,2*Math.PI,s,c,l)||n.default(e+i-o,r+a-o,o,0,.5*Math.PI,s,c,l)||n.default(e+o,r+a-o,o,.5*Math.PI,Math.PI,s,c,l)||n.default(e+o,r+o,o,Math.PI,1.5*Math.PI,s,c,l)}e.default=r})),WE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=SE(),a=xE(),o=HE(),s=UE(),c=PE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var l=this.attr(),u=l.x,d=l.y,f=l.width,p=l.height,m=l.radius;if(m){var h=!1;return n&&(h=s.default(u,d,f,p,m,i,e,t)),!h&&r&&(h=c.default(this,e,t)),h}else{var g=i/2;if(r&&n)return a.inBox(u-g,d-g,f+g,p+g,e,t);if(r)return a.inBox(u,d,f,p,e,t);if(n)return o.default(u,d,f,p,i,e,t)}},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,a=t.width,o=t.height,s=t.radius;if(e.beginPath(),s===0)e.rect(n,r,a,o);else{var c=i.parseRadius(s),l=c[0],u=c[1],d=c[2],f=c[3];e.moveTo(n+l,r),e.lineTo(n+a-u,r),u!==0&&e.arc(n+a-u,r+u,u,-Math.PI/2,0),e.lineTo(n+a,r+o-d),d!==0&&e.arc(n+a-d,r+o-d,d,0,Math.PI/2),e.lineTo(n+f,r+o),f!==0&&e.arc(n+f,r+o-f,f,Math.PI/2,Math.PI),e.lineTo(n,r+l),l!==0&&e.arc(n+l,r+l,l,Math.PI,Math.PI*1.5),e.closePath()}},t}(r.default)})),GE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=xE(),a=(X(),e(O_));t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:`sans-serif`,fontStyle:`normal`,fontWeight:`normal`,fontVariant:`normal`,textAlign:`start`,textBaseline:`bottom`})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=a.assembleFont(e)},t.prototype._setText=function(e){var t=null;i.isString(e)&&e.indexOf(` `)!==-1&&(t=e.split(` `)),this.set(`textArr`,t)},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t.startsWith(`font`)&&this._assembleFont(),t===`text`&&this._setText(n)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,n=e.fontSize*1;return t?t-n:n*.14},t.prototype._drawTextArr=function(e,t,n){var r=this.attrs,o=r.textBaseline,s=r.x,c=r.y,l=r.fontSize*1,u=this._getSpaceingY(),d=a.getTextHeight(r.text,r.fontSize,r.lineHeight),f;i.each(t,function(t,r){f=c+r*(u+l)-d+l,o===`middle`&&(f+=d-l-(d-l)/2),o===`top`&&(f+=d-l),i.isNil(t)||(n?e.fillText(t,s,f):e.strokeText(t,s,f))})},t.prototype._drawText=function(e,t){var n=this.attr(),r=n.x,a=n.y,o=this.get(`textArr`);if(o)this._drawTextArr(e,o,t);else{var s=n.text;i.isNil(s)||(t?e.fillText(s,r,a):e.strokeText(s,r,a))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,a=t.strokeOpacity,o=t.fillOpacity;this.isStroke()&&n>0&&(!i.isNil(a)&&a!==1&&(e.globalAlpha=r),this.stroke(e)),this.isFill()&&(!i.isNil(o)&&o!==1?(e.globalAlpha=o,this.fill(e),e.globalAlpha=r):this.fill(e)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(r.default)})),KE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=DE();Object.defineProperty(e,`Base`,{enumerable:!0,get:function(){return t.default}});var n=OE();Object.defineProperty(e,`Circle`,{enumerable:!0,get:function(){return n.default}});var r=kE();Object.defineProperty(e,`Ellipse`,{enumerable:!0,get:function(){return r.default}});var i=AE();Object.defineProperty(e,`Image`,{enumerable:!0,get:function(){return i.default}});var a=ME();Object.defineProperty(e,`Line`,{enumerable:!0,get:function(){return a.default}});var o=NE();Object.defineProperty(e,`Marker`,{enumerable:!0,get:function(){return o.default}});var s=RE();Object.defineProperty(e,`Path`,{enumerable:!0,get:function(){return s.default}});var c=BE();Object.defineProperty(e,`Polygon`,{enumerable:!0,get:function(){return c.default}});var l=VE();Object.defineProperty(e,`Polyline`,{enumerable:!0,get:function(){return l.default}});var u=WE();Object.defineProperty(e,`Rect`,{enumerable:!0,get:function(){return u.default}});var d=GE();Object.defineProperty(e,`Text`,{enumerable:!0,get:function(){return d.default}})})),qE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getShape=void 0;var n=(X(),e(O_));function r(e,t){if(t){var r=n.invert(t);return n.multiplyVec2(r,e)}return e}function i(e,t,n){var i=e.getTotalMatrix();if(i){var a=r([t,n,1],i);return[a[0],a[1]]}return[t,n]}function a(e,t,r){if(e.isCanvas&&e.isCanvas())return!0;if(!n.isAllowCapture(e)||e.cfg.isInView===!1)return!1;if(e.cfg.clipShape){var a=i(e,t,r),o=a[0],s=a[1];if(e.isClipped(o,s))return!1}var c=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=c.minX&&t<=c.maxX&&r>=c.minY&&r<=c.maxY}function o(e,t,n){if(!a(e,t,n))return null;for(var r=null,s=e.getChildren(),c=s.length-1;c>=0;c--){var l=s[c];if(l.isGroup())r=o(l,t,n);else if(a(l,t,n)){var u=l,d=i(l,t,n),f=d[0],p=d[1];u.isInShape(f,p)&&(r=l)}if(r)break}return r}t.getShape=o})),JE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=qE(),a=KE(),o=EE(),s=xE(),c=TE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer=`canvas`,t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){(e===`attr`||e===`sort`||e===`changeSize`)&&(this.set(`refreshElements`,[this]),this.draw())},t.prototype.getShapeBase=function(){return a},t.prototype.getGroupBase=function(){return o.default},t.prototype.getPixelRatio=function(){var e=this.get(`pixelRatio`)||s.getPixelRatio();return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement(`canvas`),t=e.getContext(`2d`);return this.set(`context`,t),e},t.prototype.setDOMSize=function(t,n){e.prototype.setDOMSize.call(this,t,n);var r=this.get(`context`),i=this.get(`el`),a=this.getPixelRatio();i.width=a*t,i.height=a*n,a>1&&r.scale(a,a)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get(`context`),n=this.get(`el`);t.clearRect(0,0,n.width,n.height)},t.prototype.getShape=function(t,n){return this.get(`quickHit`)?i.getShape(this,t,n):e.prototype.getShape.call(this,t,n,null)},t.prototype._getRefreshRegion=function(){var e=this.get(`refreshElements`),t=this.getViewRange(),n;return e.length&&e[0]===this?n=t:(n=c.getMergedRegion(e),n&&(n.minX=Math.floor(n.minX),n.minY=Math.floor(n.minY),n.maxX=Math.ceil(n.maxX),n.maxY=Math.ceil(n.maxY),n.maxY+=1,this.get(`clipView`)&&(n=c.mergeView(n,t)))),n},t.prototype.refreshElement=function(e){this.get(`refreshElements`).push(e)},t.prototype._clearFrame=function(){var e=this.get(`drawFrame`);e&&(s.clearAnimationFrame(e),this.set(`drawFrame`,null),this.set(`refreshElements`,[]))},t.prototype.draw=function(){var e=this.get(`drawFrame`);this.get(`autoDraw`)&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get(`context`),t=this.get(`el`),n=this.getChildren();e.clearRect(0,0,t.width,t.height),c.applyAttrsToContext(e,this),c.drawChildren(e,n),this.set(`refreshElements`,[])},t.prototype._drawRegion=function(){var e=this.get(`context`),t=this.get(`refreshElements`),n=this.getChildren(),r=this._getRefreshRegion();r?(e.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.save(),e.beginPath(),e.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.clip(),c.applyAttrsToContext(e,this),c.checkRefresh(this,n,r),c.drawChildren(e,n,r),e.restore()):t.length&&c.clearChanged(t),s.each(t,function(e){e.get(`hasChanged`)&&e.set(`hasChanged`,!1)}),this.set(`refreshElements`,[])},t.prototype._startDraw=function(){var e=this,t=this.get(`drawFrame`),n=this.get(`drawFrameCallback`);t||(t=s.requestAnimationFrame(function(){e.get(`localRefresh`)?e._drawRegion():e._drawAll(),e.set(`drawFrame`,null),n&&n()}),this.set(`drawFrame`,t))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var e=this.get(`el`);e.width=0,e.height=0,e.parentNode.removeChild(e)},t}(r.AbstractCanvas)})),YE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.version=t.Shape=void 0;var n=(R(),e(F));t.Shape=KE(),n.__exportStar((X(),e(O_)),t);var r=JE();Object.defineProperty(t,`Canvas`,{enumerable:!0,get:function(){return r.default}});var i=EE();Object.defineProperty(t,`Group`,{enumerable:!0,get:function(){return i.default}});var a=CE();Object.defineProperty(t,`getArcParams`,{enumerable:!0,get:function(){return a.default}}),t.version=`0.5.12`})),XE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EVENTS=e.SVG_ATTR_MAP=e.SHAPE_TO_TAGS=void 0,e.SHAPE_TO_TAGS={rect:`path`,circle:`circle`,line:`line`,path:`path`,marker:`path`,text:`text`,polyline:`polyline`,polygon:`polygon`,image:`image`,ellipse:`ellipse`,dom:`foreignObject`},e.SVG_ATTR_MAP={opacity:`opacity`,fillStyle:`fill`,fill:`fill`,fillOpacity:`fill-opacity`,strokeStyle:`stroke`,strokeOpacity:`stroke-opacity`,stroke:`stroke`,x:`x`,y:`y`,r:`r`,rx:`rx`,ry:`ry`,width:`width`,height:`height`,x1:`x1`,x2:`x2`,y1:`y1`,y2:`y2`,lineCap:`stroke-linecap`,lineJoin:`stroke-linejoin`,lineWidth:`stroke-width`,lineDash:`stroke-dasharray`,lineDashOffset:`stroke-dashoffset`,miterLimit:`stroke-miterlimit`,font:`font`,fontSize:`font-size`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,fontFamily:`font-family`,startArrow:`marker-start`,endArrow:`marker-end`,path:`d`,class:`class`,id:`id`,style:`style`,preserveAspectRatio:`preserveAspectRatio`},e.EVENTS=[`click`,`mousedown`,`mouseup`,`dblclick`,`contextmenu`,`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`mousemove`,`wheel`]})),ZE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.moveTo=t.sortDom=t.createDom=t.createSVGElement=void 0;var n=(J(),e(q)),r=XE();function i(e){return document.createElementNS(`http://www.w3.org/2000/svg`,e)}t.createSVGElement=i;function a(e){var t=r.SHAPE_TO_TAGS[e.type],n=e.getParent();if(!t)throw Error(`the type `+e.type+` is not supported by svg`);var a=i(t);if(e.get(`id`)&&(a.id=e.get(`id`)),e.set(`el`,a),e.set(`attrs`,{}),n){var o=n.get(`el`);o?o.appendChild(a):(o=n.createDom(),n.set(`el`,o),o.appendChild(a))}return a}t.createDom=a;function o(e,t){var r=e.get(`el`),i=n.toArray(r.children).sort(t),a=document.createDocumentFragment();i.forEach(function(e){a.appendChild(e)}),r.appendChild(a)}t.sortDom=o;function s(e,t){var n=e.parentNode,r=Array.from(n.childNodes).filter(function(e){return e.nodeType===1&&e.nodeName.toLowerCase()!==`defs`}),i=r[t],a=r.indexOf(e);if(i){if(a>t)n.insertBefore(e,i);else if(a{Object.defineProperty(e,`__esModule`,{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var t=ZE();function n(e,t){var n=e.cfg.el,r=e.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(!i.dx&&!i.dy&&!i.blur&&!i.color)n.removeAttribute(`filter`);else{var a=t.find(`filter`,i);a||=t.addShadow(i),n.setAttribute(`filter`,`url(#`+a+`)`)}}e.setShadow=n;function r(e){var t=e.attr().matrix;if(t){for(var n=e.cfg.el,r=[],i=0;i<9;i+=3)r.push(t[i]+`,`+t[i+1]);r=r.join(`,`),r.indexOf(`NaN`)===-1?n.setAttribute(`transform`,`matrix(`+r+`)`):console.warn(`invalid matrix:`,t)}}e.setTransform=r;function i(e,n){var r=e.getClip(),i=e.get(`el`);if(!r)i.removeAttribute(`clip-path`);else if(r&&!i.hasAttribute(`clip-path`)){t.createDom(r),r.createPath(n);var a=n.addClip(r);i.setAttribute(`clip-path`,`url(#`+a+`)`)}}e.setClip=i})),$E=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.refreshElement=e.drawChildren=void 0;var t=QE(),n=ZE();function r(e,t){t.forEach(function(t){t.draw(e)})}e.drawChildren=r;function i(e,r){var i=e.get(`canvas`);if(i&&i.get(`autoDraw`)){var a=i.get(`context`),o=e.getParent(),s=o?o.getChildren():[i],c=e.get(`el`);if(r===`remove`)if(e.get(`isClipShape`)){var l=c&&c.parentNode,u=l&&l.parentNode;l&&u&&u.removeChild(l)}else c&&c.parentNode&&c.parentNode.removeChild(c);else if(r===`show`)c.setAttribute(`visibility`,`visible`);else if(r===`hide`)c.setAttribute(`visibility`,`hidden`);else if(r===`zIndex`)n.moveTo(c,s.indexOf(e));else if(r===`sort`){var d=e.get(`children`);d&&d.length&&n.sortDom(e,function(e,t){return d.indexOf(e)-d.indexOf(t)?1:0})}else r===`clear`?c&&(c.innerHTML=``):r===`matrix`?t.setTransform(e):r===`clip`?t.setClip(e,a):r===`attr`||r===`add`&&e.draw(a)}}e.refreshElement=i})),eD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=(J(),e(q)),a=hD(),o=$E(),s=QE(),c=XE(),l=ZE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isEntityGroup=function(){return!0},t.prototype.createDom=function(){var e=l.createSVGElement(`g`);this.set(`el`,e);var t=this.getParent();if(t){var n=t.get(`el`);n?n.appendChild(e):(n=t.createDom(),t.set(`el`,n),n.appendChild(e))}return e},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get(`canvas`);if(n&&n.get(`autoDraw`)){var r=n.get(`context`);this.createPath(r,t)}},t.prototype.onCanvasChange=function(e){o.refreshElement(this,e)},t.prototype.getShapeBase=function(){return a},t.prototype.getGroupBase=function(){return t},t.prototype.draw=function(e){var t=this.getChildren(),n=this.get(`el`);this.get(`destroyed`)?n&&n.parentNode.removeChild(n):(n||this.createDom(),s.setClip(this,e),this.createPath(e),t.length&&o.drawChildren(e,t))},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get(`el`);i.each(t||n,function(e,t){c.SVG_ATTR_MAP[t]&&r.setAttribute(c.SVG_ATTR_MAP[t],e)}),s.setTransform(this)},t}(r.AbstractGroup)})),tD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=QE(),a=ZE(),o=$E(),s=XE(),c=hD(),l=eD(),u=(X(),e(O_));t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`svg`,t.canFill=!1,t.canStroke=!1,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get(`canvas`);if(n&&n.get(`autoDraw`)){var r=n.get(`context`);this.draw(r,t)}},t.prototype.getShapeBase=function(){return c},t.prototype.getGroupBase=function(){return l.default},t.prototype.onCanvasChange=function(e){o.refreshElement(this,e)},t.prototype.calculateBBox=function(){var e=this.get(`el`),t=null;if(e)t=e.getBBox();else{var n=u.getBBoxMethod(this.get(`type`));n&&(t=n(this))}if(t){var r=t.x,i=t.y,a=t.width,o=t.height,s=this.getHitLineWidth(),c=s/2,l=r-c,d=i-c;return{x:l,y:d,minX:l,minY:d,maxX:r+a+c,maxY:i+o+c,width:a+s,height:o+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},t.prototype.isFill=function(){var e=this.attr(),t=e.fill,n=e.fillStyle;return(t||n||this.isClipShape())&&this.canFill},t.prototype.isStroke=function(){var e=this.attr(),t=e.stroke,n=e.strokeStyle;return(t||n)&&this.canStroke},t.prototype.draw=function(e,t){var n=this.get(`el`);this.get(`destroyed`)?n&&n.parentNode.removeChild(n):(n||a.createDom(this),i.setClip(this,e),this.createPath(e,t),this.shadow(e,t),this.strokeAndFill(e,t),this.transform(t))},t.prototype.createPath=function(e,t){},t.prototype.strokeAndFill=function(e,t){var n=t||this.attr(),r=n.fill,i=n.fillStyle,a=n.stroke,o=n.strokeStyle,c=n.fillOpacity,l=n.strokeOpacity,u=n.lineWidth,d=this.get(`el`);this.canFill&&(t?`fill`in n?this._setColor(e,`fill`,r):`fillStyle`in n&&this._setColor(e,`fill`,i):this._setColor(e,`fill`,r||i),c&&d.setAttribute(s.SVG_ATTR_MAP.fillOpacity,c)),this.canStroke&&u>0&&(t?`stroke`in n?this._setColor(e,`stroke`,a):`strokeStyle`in n&&this._setColor(e,`stroke`,o):this._setColor(e,`stroke`,a||o),l&&d.setAttribute(s.SVG_ATTR_MAP.strokeOpacity,l),u&&d.setAttribute(s.SVG_ATTR_MAP.lineWidth,u))},t.prototype._setColor=function(e,t,n){var r=this.get(`el`);if(!n){r.setAttribute(s.SVG_ATTR_MAP[t],`none`);return}if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var i=e.find(`gradient`,n);i||=e.addGradient(n),r.setAttribute(s.SVG_ATTR_MAP[t],`url(#`+i+`)`)}else if(/^[p,P]{1}[\s]*\(/.test(n)){var i=e.find(`pattern`,n);i||=e.addPattern(n),r.setAttribute(s.SVG_ATTR_MAP[t],`url(#`+i+`)`)}else r.setAttribute(s.SVG_ATTR_MAP[t],n)},t.prototype.shadow=function(e,t){var n=this.attr(),r=t||n,a=r.shadowOffsetX,o=r.shadowOffsetY,s=r.shadowBlur,c=r.shadowColor;(a||o||s||c)&&i.setShadow(this,e)},t.prototype.transform=function(e){var t=this.attr();(e||t).matrix&&i.setTransform(this)},t.prototype.isInShape=function(e,t){return this.isPointInPath(e,t)},t.prototype.isPointInPath=function(e,t){var n=this.get(`el`),r=this.get(`canvas`).get(`el`).getBoundingClientRect(),i=e+r.left,a=t+r.top,o=document.elementFromPoint(i,a);return!!(o&&o.isEqualNode(n))},t.prototype.getHitLineWidth=function(){var e=this.attrs,t=e.lineWidth,n=e.lineAppendWidth;return this.isStroke()?t+n:0},t}(r.AbstractShape)})),nD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`circle`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,r:0})},t.prototype.createPath=function(e,t){var n=this.attr(),a=this.get(`el`);r.each(t||n,function(e,t){t===`x`||t===`y`?a.setAttribute(`c`+t,e):i.SVG_ATTR_MAP[t]&&a.setAttribute(i.SVG_ATTR_MAP[t],e)})},t}(tD().default)})),rD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dom`,t.canFill=!1,t.canStroke=!1,t}return t.prototype.createPath=function(e,t){var n=this.attr(),a=this.get(`el`);if(r.each(t||n,function(e,t){i.SVG_ATTR_MAP[t]&&a.setAttribute(i.SVG_ATTR_MAP[t],e)}),typeof n.html==`function`){var o=n.html.call(this,n);if(o instanceof Element||o instanceof HTMLDocument){for(var s=a.childNodes,c=s.length-1;c>=0;c--)a.removeChild(s[c]);a.appendChild(o)}else a.innerHTML=o}else a.innerHTML=n.html},t}(tD().default)})),iD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`ellipse`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.createPath=function(e,t){var n=this.attr(),a=this.get(`el`);r.each(t||n,function(e,t){t===`x`||t===`y`?a.setAttribute(`c`+t,e):i.SVG_ATTR_MAP[t]&&a.setAttribute(i.SVG_ATTR_MAP[t],e)})},t}(tD().default)})),aD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`image`,t.canFill=!1,t.canStroke=!1,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,width:0,height:0})},t.prototype.createPath=function(e,t){var n=this,a=this.attr(),o=this.get(`el`);r.each(t||a,function(e,t){t===`img`?n._setImage(a.img):i.SVG_ATTR_MAP[t]&&o.setAttribute(i.SVG_ATTR_MAP[t],e)})},t.prototype.setAttr=function(e,t){this.attrs[e]=t,e===`img`&&this._setImage(t)},t.prototype._setImage=function(e){var t=this.attr(),n=this.get(`el`);if(r.isString(e))n.setAttribute(`href`,e);else if(e instanceof window.Image)t.width||(n.setAttribute(`width`,e.width),this.attr(`width`,e.width)),t.height||(n.setAttribute(`height`,e.height),this.attr(`height`,e.height)),n.setAttribute(`href`,e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&e.nodeName.toUpperCase()===`CANVAS`)n.setAttribute(`href`,e.toDataURL());else if(e instanceof ImageData){var i=document.createElement(`canvas`);i.setAttribute(`width`,``+e.width),i.setAttribute(`height`,``+e.height),i.getContext(`2d`).putImageData(e,0,0),t.width||(n.setAttribute(`width`,``+e.width),this.attr(`width`,e.width)),t.height||(n.setAttribute(`height`,``+e.height),this.attr(`height`,e.height)),n.setAttribute(`href`,i.toDataURL())}},t}(tD().default)})),oD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=(J(),e(q)),a=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`line`,t.canFill=!1,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get(`el`);i.each(t||n,function(t,o){if(o===`startArrow`||o===`endArrow`)if(t){var s=i.isObject(t)?e.addArrow(n,a.SVG_ATTR_MAP[o]):e.getDefaultArrow(n,a.SVG_ATTR_MAP[o]);r.setAttribute(a.SVG_ATTR_MAP[o],`url(#`+s+`)`)}else r.removeAttribute(a.SVG_ATTR_MAP[o]);else a.SVG_ATTR_MAP[o]&&r.setAttribute(a.SVG_ATTR_MAP[o],t)})},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,i=e.x2,a=e.y2;return r.Line.length(t,n,i,a)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,i=t.y1,a=t.x2,o=t.y2;return r.Line.pointAt(n,i,a,o,e)},t}(tD().default)})),sD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t={circle:function(e,t,n){return[[`M`,e,t],[`m`,-n,0],[`a`,n,n,0,1,0,n*2,0],[`a`,n,n,0,1,0,-n*2,0]]},square:function(e,t,n){return[[`M`,e-n,t-n],[`L`,e+n,t-n],[`L`,e+n,t+n],[`L`,e-n,t+n],[`Z`]]},diamond:function(e,t,n){return[[`M`,e-n,t],[`L`,e,t-n],[`L`,e+n,t],[`L`,e,t+n],[`Z`]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t+r],[`L`,e,t-r],[`L`,e+n,t+r],[`z`]]},triangleDown:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t-r],[`L`,e+n,t-r],[`L`,e,t+r],[`Z`]]}};e.default={get:function(e){return t[e]},register:function(e,n){t[e]=n},remove:function(e){delete t[e]},getAll:function(){return t}}})),cD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=tD(),a=sD();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`marker`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.createPath=function(e){this.get(`el`).setAttribute(`d`,this._assembleMarker())},t.prototype._assembleMarker=function(){var e=this._getPath();return r.isArray(e)?e.map(function(e){return e.join(` `)}).join(``):e},t.prototype._getPath=function(){var e=this.attr(),t=e.x,n=e.y,i=e.r||e.radius,o=e.symbol||`circle`,s=r.isFunction(o)?o:a.default.get(o);return s?s(t,n,i):(console.warn(s+` symbol is not exist.`),null)},t.symbolsFactory=a.default,t}(i.default)})),lD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`path`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this,a=this.attr(),o=this.get(`el`);r.each(t||a,function(t,s){if(s===`path`&&r.isArray(t))o.setAttribute(`d`,n._formatPath(t));else if(s===`startArrow`||s===`endArrow`)if(t){var c=r.isObject(t)?e.addArrow(a,i.SVG_ATTR_MAP[s]):e.getDefaultArrow(a,i.SVG_ATTR_MAP[s]);o.setAttribute(i.SVG_ATTR_MAP[s],`url(#`+c+`)`)}else o.removeAttribute(i.SVG_ATTR_MAP[s]);else i.SVG_ATTR_MAP[s]&&o.setAttribute(i.SVG_ATTR_MAP[s],t)})},t.prototype._formatPath=function(e){var t=e.map(function(e){return e.join(` `)}).join(``);return~t.indexOf(`NaN`)?``:t},t.prototype.getTotalLength=function(){var e=this.get(`el`);return e?e.getTotalLength():null},t.prototype.getPoint=function(e){var t=this.get(`el`),n=this.getTotalLength();if(n===0)return null;var r=t?t.getPointAtLength(e*n):null;return r?{x:r.x,y:r.y}:null},t}(tD().default)})),uD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`polygon`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.createPath=function(e,t){var n=this.attr(),a=this.get(`el`);r.each(t||n,function(e,t){t===`points`&&r.isArray(e)&&e.length>=2?a.setAttribute(`points`,e.map(function(e){return e[0]+`,`+e[1]}).join(` `)):i.SVG_ATTR_MAP[t]&&a.setAttribute(i.SVG_ATTR_MAP[t],e)})},t}(tD().default)})),dD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=(yh(),e(vh)),a=(J(),e(q)),o=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`polyline`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),[`points`].indexOf(t)!==-1&&this._resetCache()},t.prototype._resetCache=function(){this.set(`totalLength`,null),this.set(`tCache`,null)},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get(`el`);a.each(t||n,function(e,t){t===`points`&&a.isArray(e)&&e.length>=2?r.setAttribute(`points`,e.map(function(e){return e[0]+`,`+e[1]}).join(` `)):o.SVG_ATTR_MAP[t]&&r.setAttribute(o.SVG_ATTR_MAP[t],e)})},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get(`totalLength`);return a.isNil(t)?(this.set(`totalLength`,r.Polyline.length(e)),this.get(`totalLength`)):t},t.prototype.getPoint=function(e){var t=this.attr().points,n=this.get(`tCache`);n||=(this._setTcache(),this.get(`tCache`));var r,o;return a.each(n,function(t,n){e>=t[0]&&e<=t[1]&&(r=(e-t[0])/(t[1]-t[0]),o=n)}),i.Line.pointAt(t[o][0],t[o][1],t[o+1][0],t[o+1][1],r)},t.prototype._setTcache=function(){var e=this.attr().points;if(!(!e||e.length===0)){var t=this.getTotalLength();if(!(t<=0)){var n=0,r=[],o,s;a.each(e,function(a,c){e[c+1]&&(o=[],o[0]=n/t,s=i.Line.length(a[0],a[1],e[c+1][0],e[c+1][1]),n+=s,o[1]=n/t,r.push(o))}),this.set(`tCache`,r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(tD().default)})),fD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parsePath=t.parseRadius=void 0;var n=(J(),e(q)),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,i=/[^\s,]+/gi;function a(e){var t=0,r=0,i=0,a=0;return n.isArray(e)?e.length===1?t=r=i=a=e[0]:e.length===2?(t=i=e[0],r=a=e[1]):e.length===3?(t=e[0],r=a=e[1],i=e[2]):(t=e[0],r=e[1],i=e[2],a=e[3]):t=r=i=a=e,{r1:t,r2:r,r3:i,r4:a}}t.parseRadius=a;function o(e){if(e||=[],n.isArray(e))return e;if(n.isString(e))return e=e.match(r),n.each(e,function(t,r){if(t=t.match(i),t[0].length>1){var a=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=a}n.each(t,function(e,n){isNaN(e)||(t[n]=+e)}),e[r]=t}),e}t.parsePath=o})),pD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=tD(),a=XE(),o=fD();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`rect`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.createPath=function(e,t){var n=this,i=this.attr(),o=this.get(`el`),s=!1,c=[`x`,`y`,`width`,`height`,`radius`];r.each(t||i,function(e,t){c.indexOf(t)!==-1&&!s?(o.setAttribute(`d`,n._assembleRect(i)),s=!0):c.indexOf(t)===-1&&a.SVG_ATTR_MAP[t]&&o.setAttribute(a.SVG_ATTR_MAP[t],e)})},t.prototype._assembleRect=function(e){var t=e.x,n=e.y,i=e.width,a=e.height,s=e.radius;if(!s)return`M `+t+`,`+n+` l `+i+`,0 l 0,`+a+` l`+-i+` 0 z`;var c=o.parseRadius(s);return r.isArray(s)?s.length===1?c.r1=c.r2=c.r3=c.r4=s[0]:s.length===2?(c.r1=c.r3=s[0],c.r2=c.r4=s[1]):s.length===3?(c.r1=s[0],c.r2=c.r4=s[1],c.r3=s[2]):(c.r1=s[0],c.r2=s[1],c.r3=s[2],c.r4=s[3]):c.r1=c.r2=c.r3=c.r4=s,[[`M `+(t+c.r1)+`,`+n],[`l `+(i-c.r1-c.r2)+`,0`],[`a `+c.r2+`,`+c.r2+`,0,0,1,`+c.r2+`,`+c.r2],[`l 0,`+(a-c.r2-c.r3)],[`a `+c.r3+`,`+c.r3+`,0,0,1,`+-c.r3+`,`+c.r3],[`l `+(c.r3+c.r4-i)+`,0`],[`a `+c.r4+`,`+c.r4+`,0,0,1,`+-c.r4+`,`+-c.r4],[`l 0,`+(c.r4+c.r1-a)],[`a `+c.r1+`,`+c.r1+`,0,0,1,`+c.r1+`,`+-c.r1],[`z`]].join(` `)},t}(i.default)})),mD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(js(),e(fs)),a=QE(),o=XE(),s=tD(),c=.3,l={top:`before-edge`,middle:`central`,bottom:`after-edge`,alphabetic:`baseline`,hanging:`hanging`},u={top:`text-before-edge`,middle:`central`,bottom:`text-after-edge`,alphabetic:`alphabetic`,hanging:`hanging`},d={left:`left`,start:`left`,center:`middle`,right:`end`,end:`end`};t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`text`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:`sans-serif`,fontStyle:`normal`,fontWeight:`normal`,fontVariant:`normal`,textAlign:`start`,textBaseline:`bottom`})},t.prototype.createPath=function(e,t){var n=this,i=this.attr(),s=this.get(`el`);this._setFont(),r.each(t||i,function(e,t){t===`text`?n._setText(``+e):t===`matrix`&&e?a.setTransform(n):o.SVG_ATTR_MAP[t]&&s.setAttribute(o.SVG_ATTR_MAP[t],e)}),s.setAttribute(`paint-order`,`stroke`),s.setAttribute(`style`,`stroke-linecap:butt; stroke-linejoin:miter;`)},t.prototype._setFont=function(){var e=this.get(`el`),t=this.attr(),n=t.textBaseline,r=t.textAlign,a=i.detect();a&&a.name===`firefox`?e.setAttribute(`dominant-baseline`,u[n]||`alphabetic`):e.setAttribute(`alignment-baseline`,l[n]||`baseline`),e.setAttribute(`text-anchor`,d[r]||`left`)},t.prototype._setText=function(e){var t=this.get(`el`),n=this.attr(),i=n.x,a=n.textBaseline,o=a===void 0?`bottom`:a;if(!e)t.innerHTML=``;else if(~e.indexOf(` `)){var s=e.split(` `),l=s.length-1,u=``;r.each(s,function(e,t){t===0?o===`alphabetic`?u+=``+e+``:o===`top`?u+=``+e+``:o===`middle`?u+=``+e+``:o===`bottom`?u+=``+e+``:o===`hanging`&&(u+=``+e+``):u+=``+e+``}),t.innerHTML=u}else t.innerHTML=e},t}(s.default)})),hD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=tD();Object.defineProperty(e,`Base`,{enumerable:!0,get:function(){return t.default}});var n=nD();Object.defineProperty(e,`Circle`,{enumerable:!0,get:function(){return n.default}});var r=rD();Object.defineProperty(e,`Dom`,{enumerable:!0,get:function(){return r.default}});var i=iD();Object.defineProperty(e,`Ellipse`,{enumerable:!0,get:function(){return i.default}});var a=aD();Object.defineProperty(e,`Image`,{enumerable:!0,get:function(){return a.default}});var o=oD();Object.defineProperty(e,`Line`,{enumerable:!0,get:function(){return o.default}});var s=cD();Object.defineProperty(e,`Marker`,{enumerable:!0,get:function(){return s.default}});var c=lD();Object.defineProperty(e,`Path`,{enumerable:!0,get:function(){return c.default}});var l=uD();Object.defineProperty(e,`Polygon`,{enumerable:!0,get:function(){return l.default}});var u=dD();Object.defineProperty(e,`Polyline`,{enumerable:!0,get:function(){return u.default}});var d=pD();Object.defineProperty(e,`Rect`,{enumerable:!0,get:function(){return d.default}});var f=mD();Object.defineProperty(e,`Text`,{enumerable:!0,get:function(){return f.default}})})),gD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE(),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function s(e){var t=e.match(o);if(!t)return``;var r=``;return t.sort(function(e,t){return e=e.split(`:`),t=t.split(`:`),Number(e[0])-Number(t[0])}),n.each(t,function(e){e=e.split(`:`),r+=``}),r}function c(e,t){var r=i.exec(e),a=n.mod(n.toRadian(parseFloat(r[1])),Math.PI*2),o=r[2],c,l;a>=0&&a<.5*Math.PI?(c={x:0,y:0},l={x:1,y:1}):.5*Math.PI<=a&&a{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE(),i={shadowColor:`color`,shadowOpacity:`opacity`,shadowBlur:`blur`,shadowOffsetX:`dx`,shadowOffsetY:`dy`},a={x:`-40%`,y:`-40%`,width:`200%`,height:`200%`};t.default=function(){function e(e){this.type=`filter`,this.cfg={},this.type=`filter`;var t=r.createSVGElement(`filter`);return n.each(a,function(e,n){t.setAttribute(n,e)}),this.el=t,this.id=n.uniqueId(`filter_`),this.el.id=this.id,this.cfg=e,this._parseShadow(e,t),this}return e.prototype.match=function(e,t){if(this.type!==e)return!1;var r=!0,i=this.cfg;return n.each(Object.keys(i),function(e){if(i[e]!==t[e])return r=!1,!1}),r},e.prototype.update=function(e,t){var n=this.cfg;return n[i[e]]=t,this._parseShadow(n,this.el),this},e.prototype._parseShadow=function(e,t){t.innerHTML=``},e}()})),vD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE();t.default=function(){function e(e,t){this.cfg={};var i=r.createSVGElement(`marker`),a=n.uniqueId(`marker_`);i.setAttribute(`id`,a);var o=r.createSVGElement(`path`);o.setAttribute(`stroke`,e.stroke||`none`),o.setAttribute(`fill`,e.fill||`none`),i.appendChild(o),i.setAttribute(`overflow`,`visible`),i.setAttribute(`orient`,`auto-start-reverse`),this.el=i,this.child=o,this.id=a;var s=e[t===`marker-start`?`startArrow`:`endArrow`];return this.stroke=e.stroke||`#000`,s===!0?this._setDefaultPath(t,o):(this.cfg=s,this._setMarker(e.lineWidth,o)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(e,t){var n=this.el;t.setAttribute(`d`,`M0,0 L`+10*Math.cos(Math.PI/6)+`,5 L0,10`),n.setAttribute(`refX`,``+10*Math.cos(Math.PI/6)),n.setAttribute(`refY`,`5`)},e.prototype._setMarker=function(e,t){var r=this.el,i=this.cfg.path,a=this.cfg.d;n.isArray(i)&&(i=i.map(function(e){return e.join(` `)}).join(``)),t.setAttribute(`d`,i),r.appendChild(t),a&&r.setAttribute(`refX`,``+a/e)},e.prototype.update=function(e){var t=this.child;t.attr?t.attr(`fill`,e):t.setAttribute(`fill`,e)},e}()})),yD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE();t.default=function(){function e(e){this.type=`clip`,this.cfg={};var t=r.createSVGElement(`clipPath`);this.el=t,this.id=n.uniqueId(`clip_`),t.id=this.id;var i=e.cfg.el;return t.appendChild(i),this.cfg=e,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}()})),bD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE(),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i;t.default=function(){function e(e){this.cfg={};var t=r.createSVGElement(`pattern`);t.setAttribute(`patternUnits`,`userSpaceOnUse`);var a=r.createSVGElement(`image`);t.appendChild(a);var o=n.uniqueId(`pattern_`);t.id=o,this.el=t,this.id=o,this.cfg=e;var s=i.exec(e)[2];a.setAttribute(`href`,s);var c=new Image;s.match(/^data:/i)||(c.crossOrigin=`Anonymous`),c.src=s;function l(){t.setAttribute(`width`,``+c.width),t.setAttribute(`height`,``+c.height)}return c.complete?l():(c.onload=l,c.src=c.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}()})),xD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=gD(),i=_D(),a=vD(),o=yD(),s=bD(),c=ZE();t.default=function(){function e(e){var t=c.createSVGElement(`defs`);t.id=n.uniqueId(`defs_`),e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return e.prototype.find=function(e,t){for(var n=this.children,r=null,i=0;i{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=XE(),a=$E(),o=QE(),s=ZE(),c=hD(),l=eD(),u=xD();t.default=function(e){n.__extends(t,e);function t(t){return e.call(this,n.__assign(n.__assign({},t),{autoDraw:!0,renderer:`svg`}))||this}return t.prototype.getShapeBase=function(){return c},t.prototype.getGroupBase=function(){return l.default},t.prototype.getShape=function(e,t,n){var r=n.target||n.srcElement;if(!i.SHAPE_TO_TAGS[r.tagName]){for(var a=r.parentNode;a&&!i.SHAPE_TO_TAGS[a.tagName];)a=a.parentNode;r=a}return this.find(function(e){return e.get(`el`)===r})},t.prototype.createDom=function(){var e=s.createSVGElement(`svg`),t=new u.default(e);return e.setAttribute(`width`,``+this.get(`width`)),e.setAttribute(`height`,``+this.get(`height`)),this.set(`context`,t),e},t.prototype.onCanvasChange=function(e){var t=this.get(`context`),n=this.get(`el`);if(e===`sort`){var r=this.get(`children`);r&&r.length&&s.sortDom(this,function(e,t){return r.indexOf(e)-r.indexOf(t)?1:0})}else if(e===`clear`){if(n){n.innerHTML=``;var i=t.el;i.innerHTML=``,n.appendChild(i)}}else e===`matrix`?o.setTransform(this):e===`clip`?o.setClip(this,t):e===`changeSize`&&(n.setAttribute(`width`,``+this.get(`width`)),n.setAttribute(`height`,``+this.get(`height`)))},t.prototype.draw=function(){var e=this.get(`context`),t=this.getChildren();o.setClip(this,e),t.length&&a.drawChildren(e,t)},t}(r.AbstractCanvas)})),CD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.version=t.Shape=void 0;var n=(R(),e(F));t.Shape=hD(),n.__exportStar((X(),e(O_)),t);var r=SD();Object.defineProperty(t,`Canvas`,{enumerable:!0,get:function(){return r.default}});var i=eD();Object.defineProperty(t,`Group`,{enumerable:!0,get:function(){return i.default}}),t.version=`0.5.6`})),wD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.registerEngine=e.getEngine=void 0;var t={};function n(e){var n=t[e];if(!n)throw Error(`G engine '`+e+`' is not exist, please register it at first.`);return n}e.getEngine=n;function r(e,n){t[e]=n}e.registerEngine=r})),TD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.modifyCSS=t.createDom=t.removeDom=t.getChartSize=void 0;var n=Y();function r(e){var t=getComputedStyle(e);return{width:(e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10),height:(e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)}}function i(e){return typeof e==`number`&&!isNaN(e)}function a(e,t,a,o){var s=a,c=o;if(t){var l=r(e);s=l.width?l.width:s,c=l.height?l.height:c}return{width:Math.max(i(s)?s:n.MIN_CHART_WIDTH,n.MIN_CHART_WIDTH),height:Math.max(i(c)?c:n.MIN_CHART_HEIGHT,n.MIN_CHART_HEIGHT)}}t.getChartSize=a;function o(e){var t=e.parentNode;t&&t.removeChild(e)}t.removeDom=o;var s=(xC(),e(bC));Object.defineProperty(t,`createDom`,{enumerable:!0,get:function(){return s.createDom}}),Object.defineProperty(t,`modifyCSS`,{enumerable:!0,get:function(){return s.modifyCSS}})})),ED=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this)||this;n.destroyed=!1;var r=t.visible;return n.visible=r===void 0?!0:r,n}return t.prototype.show=function(){this.visible||this.changeVisible(!0)},t.prototype.hide=function(){this.visible&&this.changeVisible(!1)},t.prototype.destroy=function(){this.off(),this.destroyed=!0},t.prototype.changeVisible=function(e){this.visible!==e&&(this.visible=e)},t}((0,n.__importDefault)((is(),e(ts))).default)})),DD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Facet=void 0;var n=(J(),e(q)),r=Y(),i=dE();t.Facet=function(){function e(e,t){this.destroyed=!1,this.facets=[],this.view=e,this.cfg=(0,n.deepMix)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||=this.createContainer();var e=this.view.getData();this.facets=this.generateFacets(e)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&=(this.container.remove(!0),void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(e){var t=e.region,n=e.data,r=e.padding,i=r===void 0?this.cfg.padding:r,a=this.view.createView({region:t,padding:i});a.data(n||[]),e.view=a,this.beforeEachView(a,e);var o=this.cfg.eachView;return o&&o(a,e),this.afterEachView(a,e),a},e.prototype.createContainer=function(){return this.view.getLayer(r.LAYER.FORE).addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var e=this;return this.facets.map(function(t){return e.facetToView(t)})},e.prototype.clearFacetViews=function(){var e=this;(0,n.each)(this.facets,function(t){t.view&&=(e.view.removeView(t.view),void 0)})},e.prototype.parseSpacing=function(){var e=this.view.viewBBox,t=e.width,r=e.height;return this.cfg.spacing.map(function(e,i){return(0,n.isNumber)(e)?e/(i===0?t:r):parseFloat(e)/100})},e.prototype.getFieldValues=function(e,t){var r=[],i={};return(0,n.each)(e,function(e){var a=e[t];!(0,n.isNil)(a)&&!i[a]&&(r.push(a),i[a]=!0)}),r},e.prototype.getRegion=function(e,t,n,r){var i=this.parseSpacing(),a=i[0],o=i[1],s=(1+a)/(t===0?1:t)-a,c=(1+o)/(e===0?1:e)-o,l={x:(s+a)*n,y:(c+o)*r};return{start:l,end:{x:l.x+s,y:l.y+c}}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:`#666`,fontFamily:this.view.getTheme().fontFamily}}},e.prototype.processAxis=function(e,t){var r=e.getOptions(),a=r.coordinate,o=e.geometries;if((0,n.get)(a,`type`,`rect`)===`rect`&&o.length){(0,n.isNil)(r.axes)&&(r.axes={});var s=r.axes,c=o[0].getXYFields(),l=c[0],u=c[1],d=(0,i.getAxisOption)(s,l),f=(0,i.getAxisOption)(s,u);d!==!1&&(r.axes[l]=this.getXAxisOption(l,s,d,t)),f!==!1&&(r.axes[u]=this.getYAxisOption(u,s,f,t))}},e.prototype.getFacetDataFilter=function(e){return function(t){return(0,n.every)(e,function(e){var r=e.field,i=e.value;return!(0,n.isNil)(i)&&r?t[r]===i:!0})}},e}()})),OD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.registerFacet=t.getFacet=t.Facet=void 0;var n=(J(),e(q)),r=DD();Object.defineProperty(t,`Facet`,{enumerable:!0,get:function(){return r.Facet}});var i={};t.getFacet=function(e){return i[(0,n.lowerCase)(e)]},t.registerFacet=function(e,t){i[(0,n.lowerCase)(e)]=t}})),kD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q));t.default=function(){function e(e,t){this.context=e,this.cfg=t,e.addAction(this)}return e.prototype.applyCfg=function(e){(0,n.assign)(this,e)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}()})),AD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.execute=function(){this.callback&&this.callback(this.context)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},t}((0,n.__importDefault)(kD()).default)})),jD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.createCallbackAction=t.unregisterAction=t.registerAction=t.getActionClass=t.createAction=void 0;var n=(0,(R(),e(F)).__importDefault)(AD()),r=(J(),e(q)),i={};function a(e,t){var n=i[e],r=null;if(n){var a=n.ActionClass,o=n.cfg;r=new a(t,o),r.name=e,r.init()}return r}t.createAction=a;function o(e){var t=i[e];return(0,r.get)(t,`ActionClass`)}t.getActionClass=o;function s(e,t,n){i[e]={ActionClass:t,cfg:n}}t.registerAction=s;function c(e){delete i[e]}t.unregisterAction=c;function l(e,t){var r=new n.default(t);return r.callback=e,r.name=`callback`,r}t.createCallbackAction=l})),MD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.convertPolarPath=t.convertNormalPath=t.getSplinePath=t.getLinePath=t.catmullRom2bezier=t.smoothBezier=void 0;var n=(yu(),e(vu)),r=(J(),e(q)),i=lE();function a(e,t){var n=[];if(e.length){n.push([`M`,e[0].x,e[0].y]);for(var r=1,i=e.length;r=s[u]),p=+(d>Math.PI),m=n.convert(c),h=(0,i.getDistanceToCenter)(n,m);if(h>=.5)if(d===Math.PI*2){var g={x:(c.x+s.x)/2,y:(c.y+s.y)/2},_=n.convert(g);l.push([`A`,h,h,0,p,f,_.x,_.y]),l.push([`A`,h,h,0,p,f,m.x,m.y])}else l.push([`A`,h,h,0,p,f,m.x,m.y]);return l}function l(e){(0,r.each)(e,function(t,n){if(t[0].toLowerCase()===`a`){var r=e[n-1],i=e[n+1];i&&i[0].toLowerCase()===`a`?r&&r[0].toLowerCase()===`l`&&(r[0]=`M`):r&&r[0].toLowerCase()===`a`&&i&&i[0].toLowerCase()===`l`&&(i[0]=`M`)}})}t.smoothBezier=function(e,t,r,i){var a=[],o=!!i,s,c,l,u,d,f,p;if(o){l=i[0],u=i[1];for(var m=0,h=e.length;m{Object.defineProperty(t,`__esModule`,{value:!0}),t.getScaleByField=t.isInRecords=t.getSiblingPoint=t.getSilbings=t.isInBox=t.getSpline=t.distance=t.getComponents=t.getElementsByPath=t.getIntersectElements=t.intersectRect=t.getElementValue=t.getElementsByState=t.getElementsByField=t.getElements=t.getSiblingMaskElements=t.getMaskedElements=t.isMask=t.isSlider=t.isList=t.isElementChange=t.getDelegationObject=t.getCurrentElement=void 0;var n=(J(),e(q)),r=MD(),i=cE(),a=(v_(),e(__));function o(e,t){var n=e.event.target.getCanvasBBox();return n.width>=t||n.height>=t?n:null}function s(e,t){var n=e.event.target,r=n.getCanvasBBox();return r.width>=t||r.height>=t?n.attr(`path`):null}function c(e){var t=e.event,n,r=t.target;return r&&(n=r.get(`element`)),n}t.getCurrentElement=c;function l(e){var t=e.event.target,n;return t&&(n=t.get(`delegateObject`)),n}t.getDelegationObject=l;function u(e){var t=e.event.gEvent;return!(t&&t.fromShape&&t.toShape&&t.fromShape.get(`element`)===t.toShape.get(`element`))}t.isElementChange=u;function d(e){return e&&e.component&&e.component.isList()}t.isList=d;function f(e){return e&&e.component&&e.component.isSlider()}t.isSlider=f;function p(e){var t=e.event.target;return t&&t.get(`name`)===`mask`}t.isMask=p;function m(e,t){if(e.event.target.get(`type`)===`path`){var n=s(e,t);return n?C(e.view,n):void 0}var r=o(e,t);return r?x(e.view,r):null}t.getMaskedElements=m;function h(e,t,n){var r=o(e,n);if(!r)return null;var i=e.view,a=A(i,t,{x:r.x,y:r.y}),s=A(i,t,{x:r.maxX,y:r.maxY});return x(t,{minX:a.x,minY:a.y,maxX:s.x,maxY:s.y})}t.getSiblingMaskElements=h;function g(e){var t=e.geometries,r=[];return(0,n.each)(t,function(e){var t=e.elements;r=r.concat(t)}),e.views&&e.views.length&&(0,n.each)(e.views,function(e){r=r.concat(g(e))}),r}t.getElements=g;function _(e,t,n){return g(e).filter(function(e){return y(e,t)===n})}t.getElementsByField=_;function v(e,t){var r=e.geometries,i=[];return(0,n.each)(r,function(e){var n=e.getElementsBy(function(e){return e.hasState(t)});i=i.concat(n)}),i}t.getElementsByState=v;function y(e,t){var r=e.getModel().data;return(0,n.isArray)(r)?r[0][t]:r[t]}t.getElementValue=y;function b(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY=t.x&&e.y<=t.y&&e.maxY>t.y}t.isInBox=D;function O(e){var t=e.parent,n=null;return t&&(n=t.views.filter(function(t){return t!==e})),n}t.getSilbings=O;function k(e,t){return e.getCoordinate().invert(t)}function A(e,t,n){var r=k(e,n);return t.getCoordinate().convert(r)}t.getSiblingPoint=A;function ee(e,t,r,i){var a=!1;return(0,n.each)(e,function(e){if(e[r]===t[r]&&e[i]===t[i])return a=!0,!1}),a}t.isInRecords=ee;function te(e,t){var r=e.getScaleByField(t);return!r&&e.views&&(0,n.each)(e.views,function(e){if(r=te(e,t),r)return!1}),r}t.getScaleByField=te})),PD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ND();t.default=function(){function e(e){this.actions=[],this.event=null,this.cacheMap={},this.view=e}return e.prototype.cache=function(){var e=[...arguments];if(e.length===1)return this.cacheMap[e[0]];e.length===2&&(this.cacheMap[e[0]]=e[1])},e.prototype.getAction=function(e){return this.actions.find(function(t){return t.name===e})},e.prototype.addAction=function(e){this.actions.push(e)},e.prototype.removeAction=function(e){var t=this.actions,n=this.actions.indexOf(e);n>=0&&t.splice(n,1)},e.prototype.getCurrentPoint=function(){var e=this.event;return e?e.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(e.clientX,e.clientY):{x:e.x,y:e.y}:null},e.prototype.getCurrentShape=function(){return(0,n.get)(this.event,[`gEvent`,`shape`])},e.prototype.isInPlot=function(){var e=this.getCurrentPoint();return e?this.view.isPointInPlot(e):!1},e.prototype.isInShape=function(e){var t=this.getCurrentShape();return t?t.get(`name`)===e:!1},e.prototype.isInComponent=function(e){var t=(0,r.getComponents)(this.view),n=this.getCurrentPoint();return n?!!t.find(function(t){var i=t.getBBox();return e?t.get(`name`)===e&&(0,r.isInBox)(i,n):(0,r.isInBox)(i,n)}):!1},e.prototype.destroy=function(){(0,n.each)(this.actions.slice(),function(e){e.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}()})),FD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(){function e(e,t){this.view=e,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}()})),ID=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseAction=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=jD(),a=(0,n.__importDefault)(PD()),o=(0,n.__importDefault)(FD());function s(e,t,n){var r=e.split(`:`),a=r[0],o=t.getAction(a)||(0,i.createAction)(a,t);if(!o)throw Error(`There is no action named `+a);return{action:o,methodName:r[1],arg:n}}t.parseAction=s;function c(e){var t=e.action,n=e.methodName,r=e.arg;if(t[n])t[n](r);else throw Error(`Action(`+t.name+`) doesn't have a method called `+n)}var l={START:`start`,SHOW_ENABLE:`showEnable`,END:`end`,ROLLBACK:`rollback`,PROCESSING:`processing`};t.default=function(e){(0,n.__extends)(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return t.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&=(this.context.destroy(),null),this.callbackCaches=null,this.view=null},t.prototype.initEvents=function(){var e=this;(0,r.each)(this.steps,function(t,n){(0,r.each)(t,function(t){var r=e.getActionCallback(n,t);r&&e.bindEvent(t.trigger,r)})})},t.prototype.clearEvents=function(){var e=this;(0,r.each)(this.steps,function(t,n){(0,r.each)(t,function(t){var r=e.getActionCallback(n,t);r&&e.offEvent(t.trigger,r)})})},t.prototype.initContext=function(){var e=this.view,t=new a.default(e);this.context=t;var n=this.steps;(0,r.each)(n,function(e){(0,r.each)(e,function(e){if((0,r.isFunction)(e.action))e.actionObject={action:(0,i.createCallbackAction)(e.action,t),methodName:`execute`};else if((0,r.isString)(e.action))e.actionObject=s(e.action,t,e.arg);else if((0,r.isArray)(e.action)){var n=e.action,a=(0,r.isArray)(e.arg)?e.arg:[e.arg];e.actionObject=[],(0,r.each)(n,function(n,r){e.actionObject.push(s(n,t,a[r]))})}})})},t.prototype.isAllowStep=function(e){var t=this.currentStepName,n=this.steps;if(t===e||e===l.SHOW_ENABLE)return!0;if(e===l.PROCESSING)return t===l.START;if(e===l.START)return t!==l.PROCESSING;if(e===l.END)return t===l.PROCESSING||t===l.START;if(e===l.ROLLBACK){if(n[l.END])return t===l.END;if(t===l.START)return!0}return!1},t.prototype.isAllowExecute=function(e,t){if(this.isAllowStep(e)){var n=this.getKey(e,t);return t.once&&this.emitCaches[n]?!1:t.isEnable?t.isEnable(this.context):!0}return!1},t.prototype.enterStep=function(e){this.currentStepName=e,this.emitCaches={}},t.prototype.afterExecute=function(e,t){e!==l.SHOW_ENABLE&&this.currentStepName!==e&&this.enterStep(e);var n=this.getKey(e,t);this.emitCaches[n]=!0},t.prototype.getKey=function(e,t){return e+t.trigger+t.action},t.prototype.getActionCallback=function(e,t){var n=this,i=this.context,a=this.callbackCaches,o=t.actionObject;if(t.action&&o){var s=this.getKey(e,t);if(!a[s]){var l=function(a){i.event=a,n.isAllowExecute(e,t)?((0,r.isArray)(o)?(0,r.each)(o,function(e){i.event=a,c(e)}):(i.event=a,c(o)),n.afterExecute(e,t),t.callback&&(i.event=a,t.callback(i))):i.event=null};t.debounce?a[s]=(0,r.debounce)(l,t.debounce.wait,t.debounce.immediate):t.throttle?a[s]=(0,r.throttle)(l,t.throttle.wait,{leading:t.throttle.leading,trailing:t.throttle.trailing}):a[s]=l}return a[s]}return null},t.prototype.bindEvent=function(e,t){var n=e.split(`:`);n[0]===`window`?window.addEventListener(n[1],t):n[0]===`document`?document.addEventListener(n[1],t):this.view.on(e,t)},t.prototype.offEvent=function(e,t){var n=e.split(`:`);n[0]===`window`?window.removeEventListener(n[1],t):n[0]===`document`?document.removeEventListener(n[1],t):this.view.off(e,t)},t}(o.default)})),LD=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var n=kD();Object.defineProperty(e,`Action`,{enumerable:!0,get:function(){return t(n).default}});var r=jD();Object.defineProperty(e,`createAction`,{enumerable:!0,get:function(){return r.createAction}}),Object.defineProperty(e,`registerAction`,{enumerable:!0,get:function(){return r.registerAction}}),Object.defineProperty(e,`getActionClass`,{enumerable:!0,get:function(){return r.getActionClass}})})),RD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getActionClass=t.registerAction=t.Action=t.Interaction=t.createInteraction=t.registerInteraction=t.getInteraction=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=(0,n.__importDefault)(ID()),a={};function o(e){return a[(0,r.lowerCase)(e)]}t.getInteraction=o;function s(e,t){a[(0,r.lowerCase)(e)]=t}t.registerInteraction=s;function c(e,t,n){var a=o(e);if(!a)return null;if((0,r.isPlainObject)(a)){var s=(0,r.mix)((0,r.clone)(a),n);return new i.default(t,s)}else return new a(t,n)}t.createInteraction=c;var l=FD();Object.defineProperty(t,`Interaction`,{enumerable:!0,get:function(){return(0,n.__importDefault)(l).default}});var u=LD();Object.defineProperty(t,`Action`,{enumerable:!0,get:function(){return u.Action}}),Object.defineProperty(t,`registerAction`,{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(t,`getActionClass`,{enumerable:!0,get:function(){return u.getActionClass}})})),zD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.createThemeByStyleSheet=void 0;var n=(R(),e(F)),r=(nE(),e(tE)),i=(yu(),e(vu)),a=(J(),e(q)),o=oE();function s(e){return{title:{autoRotate:!0,position:`center`,spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:`middle`,fontFamily:e.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:`equidistance`,cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:`line`,style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}function c(e){return{title:null,marker:{symbol:`circle`,spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:`start`,textBaseline:`middle`}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:`#D8D8D8`},markerStyle:{fill:`#D8D8D8`,stroke:`#D8D8D8`}},inactive:{nameStyle:{fill:`#D8D8D8`},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}function l(e){var t,l={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:`round`,lineJoin:`round`},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},u=s(e),d=c(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:`auto`,fontFamily:e.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:[`hollow-circle`,`hollow-square`,`hollow-bowtie`,`hollow-diamond`,`hollow-hexagon`,`hollow-triangle`,`hollow-triangle-down`,`circle`,`square`,`bowtie`,`diamond`,`hexagon`,`triangle`,`triangle-down`,`cross`,`tick`,`plus`,`hyphen`,`line`],line:[`line`,`dash`,`dot`,`smooth`],area:[`area`,`smooth`,`line`,`smooth-line`],interval:[`rect`,`hollow-rect`,`line`,`tick`]},sizes:[1,10],geometries:{interval:{rect:{default:{style:l.interval.default},active:{style:l.interval.active},inactive:{style:l.interval.inactive},selected:{style:function(e){var t=e.geometry.coordinate;if(t.isPolar&&t.isTransposed){var n=(0,o.getAngle)(e.getModel(),t),r=(n.startAngle+n.endAngle)/2,a=7.5,s=a*Math.cos(r),c=a*Math.sin(r);return{matrix:i.ext.transform(null,[[`t`,s,c]])}}return l.interval.selected}}},"hollow-rect":{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}},line:{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}},tick:{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}},funnel:{default:{style:l.interval.default},active:{style:l.interval.active},inactive:{style:l.interval.inactive},selected:{style:l.interval.selected}},pyramid:{default:{style:l.interval.default},active:{style:l.interval.active},inactive:{style:l.interval.inactive},selected:{style:l.interval.selected}}},line:{line:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},dot:{default:{style:(0,n.__assign)((0,n.__assign)({},l.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,n.__assign)((0,n.__assign)({},l.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,n.__assign)((0,n.__assign)({},l.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,n.__assign)((0,n.__assign)({},l.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,n.__assign)((0,n.__assign)({},l.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,n.__assign)((0,n.__assign)({},l.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,n.__assign)((0,n.__assign)({},l.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,n.__assign)((0,n.__assign)({},l.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},hv:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},vh:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},hvh:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},vhv:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}}},polygon:{polygon:{default:{style:l.interval.default},active:{style:l.interval.active},inactive:{style:l.interval.inactive},selected:{style:l.interval.selected}}},point:{circle:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},square:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},bowtie:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},diamond:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},hexagon:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},triangle:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},"triangle-down":{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},"hollow-circle":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-square":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-bowtie":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-diamond":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-hexagon":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-triangle":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-triangle-down":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},cross:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},tick:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},plus:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},hyphen:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},line:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}}},area:{area:{default:{style:l.area.default},active:{style:l.area.active},inactive:{style:l.area.inactive},selected:{style:l.area.selected}},smooth:{default:{style:l.area.default},active:{style:l.area.active},inactive:{style:l.area.inactive},selected:{style:l.area.selected}},line:{default:{style:l.hollowArea.default},active:{style:l.hollowArea.active},inactive:{style:l.hollowArea.inactive},selected:{style:l.hollowArea.selected}},"smooth-line":{default:{style:l.hollowArea.default},active:{style:l.hollowArea.active},inactive:{style:l.hollowArea.inactive},selected:{style:l.hollowArea.selected}}},schema:{candle:{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}},box:{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}}},edge:{line:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},vhv:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},smooth:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},arc:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}}},violin:{violin:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},smooth:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},hollow:{default:{style:l.hollowArea.default},active:{style:l.hollowArea.active},inactive:{style:l.hollowArea.inactive},selected:{style:l.hollowArea.selected}},"hollow-smooth":{default:{style:l.hollowArea.default},active:{style:l.hollowArea.active},inactive:{style:l.hollowArea.inactive},selected:{style:l.hollowArea.selected}}}},components:{axis:{common:u,top:{position:`top`,grid:null,title:null,verticalLimitLength:1/2},bottom:{position:`bottom`,grid:null,title:null,verticalLimitLength:1/2},left:{position:`left`,title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:`right`,title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,a.deepMix)({},u.grid,{line:{type:`line`}})},radius:{title:null,grid:(0,a.deepMix)({},u.grid,{line:{type:`circle`}})}},legend:{common:d,right:{layout:`vertical`,padding:e.legendVerticalPadding},left:{layout:`vertical`,padding:e.legendVerticalPadding},top:{layout:`horizontal`,padding:e.legendHorizontalPadding},bottom:{layout:`horizontal`,padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:`color`,size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:`rail`,spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:`middle`,fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:d.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:`auto`,marker:{symbol:`circle`,stroke:`#fff`,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0,0,0,0.09)`,lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:`rgba(0, 0, 0, 0.25)`,lineWidth:0,stroke:null}},follow:!1},domStyles:(t={},t[``+r.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={position:`absolute`,visibility:`hidden`,zIndex:8,transition:`left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s`,backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:e.tooltipContainerBorderRadius+`px`,color:e.tooltipTextFillColor,fontSize:e.tooltipTextFontSize+`px`,fontFamily:e.fontFamily,lineHeight:e.tooltipTextLineHeight+`px`,padding:`0 12px 0 12px`},t[``+r.TOOLTIP_CSS_CONST.TITLE_CLASS]={marginBottom:`12px`,marginTop:`12px`},t[``+r.TOOLTIP_CSS_CONST.LIST_CLASS]={margin:0,listStyleType:`none`,padding:0},t[``+r.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS]={listStyleType:`none`,padding:0,marginBottom:`12px`,marginTop:`12px`,marginLeft:0,marginRight:0},t[``+r.TOOLTIP_CSS_CONST.MARKER_CLASS]={width:`8px`,height:`8px`,borderRadius:`50%`,display:`inline-block`,marginRight:`8px`},t[``+r.TOOLTIP_CSS_CONST.VALUE_CLASS]={display:`inline-block`,float:`right`,marginLeft:`30px`},t)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:`start`,autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:`start`,fontFamily:e.fontFamily,textBaseline:`bottom`}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:`middle`,textAlign:`start`,fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:`start`,fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:`upward`,autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:`center`,textBaseline:`bottom`,fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}t.createThemeByStyleSheet=l})),BD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var t={100:`#000`,95:`#0D0D0D`,85:`#262626`,65:`#595959`,45:`#8C8C8C`,25:`#BFBFBF`,15:`#D9D9D9`,6:`#F0F0F0`},n={100:`#FFFFFF`,95:`#F2F2F2`,85:`#D9D9D9`,65:`#A6A6A6`,45:`#737373`,25:`#404040`,15:`#262626`,6:`#0F0F0F`},r=[`#5B8FF9`,`#5AD8A6`,`#5D7092`,`#F6BD16`,`#6F5EF9`,`#6DC8EC`,`#945FB9`,`#FF9845`,`#1E9493`,`#FF99C3`],i=[`#5B8FF9`,`#CDDDFD`,`#5AD8A6`,`#CDF3E4`,`#5D7092`,`#CED4DE`,`#F6BD16`,`#FCEBB9`,`#6F5EF9`,`#D3CEFD`,`#6DC8EC`,`#D3EEF9`,`#945FB9`,`#DECFEA`,`#FF9845`,`#FFE0C7`,`#1E9493`,`#BBDEDE`,`#FF99C3`,`#FFE0ED`],a=[`#B8E1FF`,`#9AC5FF`,`#7DAAFF`,`#5B8FF9`,`#3D76DD`,`#085EC0`,`#0047A5`,`#00318A`,`#001D70`];e.createLightStyleSheet=function(e){e===void 0&&(e={});var o=e.backgroundColor,s=o===void 0?`transparent`:o,c=e.subColor,l=c===void 0?`rgba(0,0,0,0.05)`:c,u=e.paletteQualitative10,d=u===void 0?r:u,f=e.paletteQualitative20,p=f===void 0?i:f,m=e.paletteSemanticRed,h=m===void 0?`#F4664A`:m,g=e.paletteSemanticGreen,_=g===void 0?`#30BF78`:g,v=e.paletteSemanticYellow,y=v===void 0?`#FAAD14`:v,b=e.paletteSequence,x=b===void 0?a:b,S=e.fontFamily,C=S===void 0?`"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`:S,w=e.brandColor,T=w===void 0?d[0]:w;return{backgroundColor:s,brandColor:T,subColor:l,paletteQualitative10:d,paletteQualitative20:p,paletteSemanticRed:h,paletteSemanticGreen:_,paletteSemanticYellow:y,paletteSequence:x,fontFamily:C,axisLineBorderColor:t[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:t[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:`normal`,axisTitleSpacing:12,axisTickLineBorderColor:t[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:t[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:t[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:`normal`,axisLabelOffset:8,axisGridBorderColor:t[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:t[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:`normal`,legendMarkerColor:T,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:t[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:`normal`,legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:t[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:t[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:t[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:t[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:t[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:`normal`,sliderHandlerFillColor:t[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:t[25],annotationArcBorderColor:t[15],annotationArcBorder:1,annotationLineBorderColor:t[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:t[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:`normal`,annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:t[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:t[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:`rgb(255, 255, 255)`,tooltipContainerFillOpacity:.95,tooltipContainerShadow:`0px 0px 10px #aeaeae`,tooltipContainerBorderRadius:3,tooltipTextFillColor:t[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:`bold`,labelFillColor:t[65],labelFillColorDark:`#2c3542`,labelFillColorLight:`#ffffff`,labelFontSize:12,labelLineHeight:12,labelFontWeight:`normal`,labelBorderColor:null,labelBorder:0,innerLabelFillColor:n[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:`normal`,innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:t[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:`normal`,overflowLabelBorderColor:n[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:t[25],cSliderRailHieght:16,cSliderBackgroundFillColor:`#416180`,cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:`#5B8FF9`,cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:`#F7F7F7`,cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:`#FFF`,cSliderHandlerBorderColor:`#BFBFBF`,cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:`#000`,cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:`normal`,cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:`rgba(0,0,0,0)`,scrollbarThumbFillColor:`rgba(0,0,0,0.15)`,scrollbarThumbHighlightFillColor:`rgba(0,0,0,0.2)`,pointFillColor:T,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:n[100],pointBorderOpacity:1,pointActiveBorderColor:t[100],pointSelectedBorder:2,pointSelectedBorderColor:t[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:T,hollowPointBorderOpacity:.95,hollowPointFillColor:n[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:t[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:t[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:T,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:T,areaFillOpacity:.25,areaActiveFillColor:T,areaActiveFillOpacity:.5,areaSelectedFillColor:T,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:T,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:t[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:t[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:T,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:t[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:t[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:T,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:n[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:t[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:t[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},e.antvLight=(0,e.createLightStyleSheet)()})),VD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.createTheme=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=zD(),a=BD();function o(e){var t=e.styleSheet,o=t===void 0?{}:t,s=(0,n.__rest)(e,[`styleSheet`]),c=(0,a.createLightStyleSheet)(o);return(0,r.deepMix)({},(0,i.createThemeByStyleSheet)(c),s)}t.createTheme=o})),HD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createTheme=void 0;var t=VD();Object.defineProperty(e,`createTheme`,{enumerable:!0,get:function(){return t.createTheme}})})),UD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.registerTheme=t.getTheme=void 0;var n=(J(),e(q)),r=HD(),i={default:(0,r.createTheme)({})};function a(e){return(0,n.get)(i,(0,n.lowerCase)(e),i.default)}t.getTheme=a;function o(e,t){i[(0,n.lowerCase)(e)]=(0,r.createTheme)(t)}t.registerTheme=o})),WD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.findItemsFromViewRecurisive=t.findItemsFromView=t.getTooltipItems=t.findDataByPoint=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=uE();function o(e,t,n){var i=n.translate(e),a=n.translate(t);return(0,r.isNumberEqual)(i,a)}function s(e,t){var n=t.coordinate,r=t.getXScale(),i=r.range,a=i[i.length-1],o=i[0],s=n.invert(e).x;return n.isPolar&&s>(1+a)/2&&(s=o),r.translate(r.invert(s))}function c(e,t,n){var a=n.coordinate,o=n.getYScale(),s=o.field,c=a.invert(t),l=o.invert(c.y);return(0,r.find)(e,function(e){var t=e[i.FIELD_ORIGIN];return t[s][0]<=l&&t[s][1]>=l})||e[e.length-1]}var l=(0,r.memoize)(function(e){if(e.isCategory)return 1;for(var t=e.values,n=t.length,r=e.translate(t[0]),i=r,a=0;ai&&(i=s)}return(i-r)/(n-1)});function u(e,t,n){var i=t.getAttribute(`position`).getFields(),a=t.scales,o=(0,r.isFunction)(n)||!n?i[0]:n,s=a[o],c=s?s.getText(e[o]):e[o]||o;return(0,r.isFunction)(n)?n(c,e):c}function d(e){var t=(0,r.values)(e.attributes);return(0,r.filter)(t,function(e){return(0,r.contains)(i.GROUP_ATTRS,e.type)})}function f(e){for(var t=d(e),n,r=0,i=t;r=T)if(k)(0,r.isArray)(m)||(m=[]),m.push(A);else{m=A;break}}(0,r.isArray)(m)&&(m=c(m,e,n))}else{var ee=void 0;if(!u.isLinear&&u.type!==`timeCat`){for(var y=0;yu.translate(O)||Tu.max||TMath.abs(u.translate(ee[i.FIELD_ORIGIN][f])-T)&&(w=ee)}var re=l(n.getXScale());return!m&&Math.abs(u.translate(w[i.FIELD_ORIGIN][f])-T)<=re/2&&(m=w),m}t.findDataByPoint=h;function g(e,t,o,s){o===void 0&&(o=``),s===void 0&&(s=!1);var c=e[i.FIELD_ORIGIN],l=u(c,t,o),d=t.tooltipOption,h=t.theme.defaultColor,g=[],_,v;function y(t,n){if(s||!(0,r.isNil)(n)&&n!==``){var i={title:l,data:c,mappingData:e,name:t,value:n,color:e.color||h,marker:!0};g.push(i)}}if((0,r.isObject)(d)){var b=d.fields,x=d.callback;if(x){var S=b.map(function(t){return e[i.FIELD_ORIGIN][t]}),C=x.apply(void 0,S),w=(0,n.__assign)({data:e[i.FIELD_ORIGIN],mappingData:e,title:l,color:e.color||h,marker:!0},C);g.push(w)}else for(var T=t.scales,E=0,D=b;E{Object.defineProperty(t,`__esModule`,{value:!0}),t.parsePadding=t.isAutoPadding=void 0;var n=(R(),e(F)),r=(J(),e(q));function i(e){return!(0,r.isNumber)(e)&&!(0,r.isArray)(e)}t.isAutoPadding=i;function a(e){e===void 0&&(e=0);var t=(0,r.isArray)(e)?e:[e];switch(t.length){case 0:t=[0,0,0,0];break;case 1:t=[,,,,].fill(t[0]);break;case 2:t=(0,n.__spreadArray)((0,n.__spreadArray)([],t,!0),t,!0);break;case 3:t=(0,n.__spreadArray)((0,n.__spreadArray)([],t,!0),[t[1]],!1);break;default:t=t.slice(0,4);break}return t}t.parsePadding=a})),KD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getComponentController=e.getComponentControllerNames=e.unregisterComponentController=e.registerComponentController=void 0;var t={};function n(e,n){t[e]=n}e.registerComponentController=n;function r(e){delete t[e]}e.unregisterComponentController=r;function i(){return Object.keys(t)}e.getComponentControllerNames=i;function a(e){return t[e]}e.getComponentController=a})),qD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=rE();t.default=function(){function e(e){this.option=this.wrapperOption(e)}return e.prototype.update=function(e){return this.option=this.wrapperOption(e),this},e.prototype.hasAction=function(e){var t=this.option.actions;return(0,r.some)(t,function(t){return t[0]===e})},e.prototype.create=function(e,t){var r=this.option,a=r.type,o=r.cfg,s=a===`theta`,c=(0,n.__assign)({start:e,end:t},o),l=(0,i.getCoordinate)(s?`polar`:a);return this.coordinate=new l(c),this.coordinate.type=a,s&&(this.hasAction(`transpose`)||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(e,t){return this.coordinate.update({start:e,end:t}),this.coordinate.resetMatrix(),this.execActions([`scale`,`rotate`,`translate`]),this.coordinate},e.prototype.rotate=function(e){return this.option.actions.push([`rotate`,e]),this},e.prototype.reflect=function(e){return this.option.actions.push([`reflect`,e]),this},e.prototype.scale=function(e,t){return this.option.actions.push([`scale`,e,t]),this},e.prototype.transpose=function(){return this.option.actions.push([`transpose`]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(e){return(0,n.__assign)({type:`rect`,actions:[],cfg:{}},e)},e.prototype.execActions=function(e){var t=this,n=this.option.actions;(0,r.each)(n,function(n){var i,a=n[0],o=n.slice(1);((0,r.isNil)(e)||e.includes(a))&&(i=t.coordinate)[a].apply(i,o)})},e}()})),JD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=rE();e.default=function(){function e(e,t,n){this.view=e,this.gEvent=t,this.data=n,this.type=t.type}return e.fromData=function(n,r,i){return new e(n,new t.Event(r,{}),i)},Object.defineProperty(e.prototype,`target`,{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`event`,{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`x`,{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`y`,{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`clientX`,{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`clientY`,{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return`[Event (type=`+this.type+`)]`},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}()})),YD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){var t=e.getController(`axis`),n=e.getController(`legend`),r=e.getController(`annotation`);[t,e.getController(`slider`),e.getController(`scrollbar`),n,r].forEach(function(e){e&&e.layout()})}e.default=t})),XD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ScalePool=void 0;var n=(J(),e(q)),r=uE();t.ScalePool=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(e,t,i,a){var o=i,s=this.getScaleMeta(a);if(t.length===0&&s){var c=s.scale,l={type:c.type};c.isCategory&&(l.values=c.values),o=(0,n.deepMix)(l,s.scaleDef,i)}var u=(0,r.createScaleByField)(e,t,o);return this.cacheScale(u,i,a),u},e.prototype.sync=function(e,t){var i=this;this.syncScales.forEach(function(a,o){var s=2**53-1,c=-(2**53-1),l=[];(0,n.each)(a,function(e){var t=i.getScale(e);c=(0,n.isNumber)(t.max)?Math.max(c,t.max):c,s=(0,n.isNumber)(t.min)?Math.min(s,t.min):s,(0,n.each)(t.values,function(e){l.includes(e)||l.push(e)})}),(0,n.each)(a,function(a){var o=i.getScale(a);if(o.isContinuous)o.change({min:s,max:c,values:l});else if(o.isCategory){var u=o.range,d=i.getScaleMeta(a);l&&!(0,n.get)(d,[`scaleDef`,`range`])&&(u=(0,r.getDefaultCategoryScaleRange)((0,n.deepMix)({},o,{values:l}),e,t)),o.change({values:l,range:u})}})})},e.prototype.cacheScale=function(e,t,n){var i=this.getScaleMeta(n);i&&i.scale.type===e.type?((0,r.syncScale)(i.scale,e),i.scaleDef=t):(i={key:n,scale:e,scaleDef:t},this.scales.set(n,i));var a=this.getSyncKey(i);if(i.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},e.prototype.getScale=function(e){var t=this.getScaleMeta(e);if(!t){var r=(0,n.last)(e.split(`-`)),i=this.syncScales.get(r);i&&i.length&&(t=this.getScaleMeta(i[0]))}return t&&t.scale},e.prototype.deleteScale=function(e){var t=this.getScaleMeta(e);if(t){var n=t.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(e);i!==-1&&r.splice(i,1)}}this.scales.delete(e)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(e){var t=this;this.syncScales.forEach(function(n,r){var i=n.indexOf(e);if(i!==-1)return n.splice(i,1),n.length===0&&t.syncScales.delete(r),!1})},e.prototype.getSyncKey=function(e){var t=e.scale,r=e.scaleDef,i=t.field,a=(0,n.get)(r,[`sync`]);return a===!0?i:a===!1?void 0:a},e.prototype.getScaleMeta=function(e){return this.scales.get(e)},e}()})),ZD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.PaddingCal=void 0;var n=(R(),e(F)),r=Y();t.PaddingCal=function(){function e(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.top=e,this.right=t,this.bottom=n,this.left=r}return e.instance=function(t,n,r,i){return t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=0),new e(t,n,r,i)},e.prototype.max=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return this.top=Math.max(this.top,t),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,i),this},e.prototype.shrink=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return this.top+=t,this.right+=n,this.bottom+=r,this.left+=i,this},e.prototype.inc=function(e,t){var n=e.width,i=e.height;switch(t){case r.DIRECTION.TOP:case r.DIRECTION.TOP_LEFT:case r.DIRECTION.TOP_RIGHT:this.top+=i;break;case r.DIRECTION.RIGHT:case r.DIRECTION.RIGHT_TOP:case r.DIRECTION.RIGHT_BOTTOM:this.right+=n;break;case r.DIRECTION.BOTTOM:case r.DIRECTION.BOTTOM_LEFT:case r.DIRECTION.BOTTOM_RIGHT:this.bottom+=i;break;case r.DIRECTION.LEFT:case r.DIRECTION.LEFT_TOP:case r.DIRECTION.LEFT_BOTTOM:this.left+=n;break;default:break}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,n.__spreadArray)([void 0],this.getPadding(),!1)))},e}()})),QD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.calculatePadding=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=cE(),o=GD(),s=ZD();function c(e){var t=e.padding;if(!(0,o.isAutoPadding)(t))return new(s.PaddingCal.bind.apply(s.PaddingCal,(0,n.__spreadArray)([void 0],(0,o.parsePadding)(t),!1)));var c=e.viewBBox,l=new s.PaddingCal,u=[],d=[],f=[];return(0,r.each)(e.getComponents(),function(e){var t=e.type;t===i.COMPONENT_TYPE.AXIS?u.push(e):[i.COMPONENT_TYPE.LEGEND,i.COMPONENT_TYPE.SLIDER,i.COMPONENT_TYPE.SCROLLBAR].includes(t)?d.push(e):t!==i.COMPONENT_TYPE.GRID&&t!==i.COMPONENT_TYPE.TOOLTIP&&f.push(e)}),(0,r.each)(u,function(e){var t=e.component.getLayoutBBox(),n=new a.BBox(t.x,t.y,t.width,t.height).exceed(c);l.max(n)}),(0,r.each)(d,function(e){var t=e.component,n=e.direction,r=t.getLayoutBBox(),i=t.get(`padding`),o=new a.BBox(r.x,r.y,r.width,r.height).expand(i);l.inc(o,n)}),(0,r.each)(f,function(e){var t=e.component,n=e.direction,r=t.getLayoutBBox(),i=new a.BBox(r.x,r.y,r.width,r.height);l.inc(i,n)}),l}t.calculatePadding=c})),$D=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultSyncViewPadding=void 0;function t(e,t,n){var r=n.instance();t.forEach(function(e){e.autoPadding=r.max(e.autoPadding.getPadding())})}e.defaultSyncViewPadding=t})),eO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.registerGeometry=t.View=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=(0,n.__importDefault)(ED()),o=OD(),s=RD(),c=UD(),l=cE(),u=lE(),d=sE(),f=WD(),p=GD(),m=uE(),h=HD(),g=KD(),_=(0,n.__importDefault)(qD()),v=(0,n.__importDefault)(JD()),y=(0,n.__importDefault)(YD()),b=XD(),x=ZD(),S=QD(),C=$D(),w=function(e){(0,n.__extends)(t,e);function t(t){var i=e.call(this,{visible:t.visible})||this;i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=(0,g.getComponentControllerNames)(),i.scalePool=new b.ScalePool,i.layoutFunc=y.default,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(e){var t=e.name;if(!t.includes(`:`)){var n=i.createViewEvent(e);i.doPlotEvent(n),i.emit(t,n)}},i.onDelegateEvents=function(e){var t=e.name;if(t.includes(`:`)){var n=i.createViewEvent(e);i.emit(t,n)}};var a=t.id,o=a===void 0?(0,r.uniqueId)(`view`):a,s=t.parent,l=t.canvas,u=t.backgroundGroup,d=t.middleGroup,f=t.foregroundGroup,p=t.region,m=p===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:p,_=t.padding,v=t.appendPadding,x=t.theme,S=t.options,C=t.limitInPlot,w=t.syncViewPadding;return i.parent=s,i.canvas=l,i.backgroundGroup=u,i.middleGroup=d,i.foregroundGroup=f,i.region=m,i.padding=_,i.appendPadding=v,i.options=(0,n.__assign)((0,n.__assign)({},i.options),S),i.limitInPlot=C,i.id=o,i.syncViewPadding=w,i.themeObject=(0,r.isObject)(x)?(0,r.deepMix)({},(0,c.getTheme)(`default`),(0,h.createTheme)(x)):(0,c.getTheme)(x),i.init(),i}return t.prototype.setLayout=function(e){this.layoutFunc=e},t.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},t.prototype.render=function(e,t){e===void 0&&(e=!1),this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,v.default.fromData(this,i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,t)),this.paint(e),this.emit(i.VIEW_LIFE_CIRCLE.AFTER_RENDER,v.default.fromData(this,i.VIEW_LIFE_CIRCLE.AFTER_RENDER,t)),this.visible===!1&&this.changeVisible(!1)},t.prototype.clear=function(){var e=this;this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var t=this.geometries,n=0;n{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=wD(),o=TD();t.default=function(e){(0,n.__extends)(t,e);function t(t){var s=this,c=t.container,l=t.width,u=t.height,d=t.autoFit,f=d===void 0?!1:d,p=t.padding,m=t.appendPadding,h=t.renderer,g=h===void 0?`canvas`:h,_=t.pixelRatio,v=t.localRefresh,y=v===void 0?!0:v,b=t.visible,x=b===void 0?!0:b,S=t.supportCSSTransform,C=S===void 0?!1:S,w=t.defaultInteractions,T=w===void 0?[`tooltip`,`legend-filter`,`legend-active`,`continuous-filter`,`ellipsis-text`]:w,E=t.options,D=t.limitInPlot,O=t.theme,k=t.syncViewPadding,A=(0,r.isString)(c)?document.getElementById(c):c,ee=(0,o.createDom)(`
    `);A.appendChild(ee);var te=(0,o.getChartSize)(A,f,l,u),j=new((0,a.getEngine)(g)).Canvas((0,n.__assign)({container:ee,pixelRatio:_,localRefresh:y,supportCSSTransform:C},te));return s=e.call(this,{parent:null,canvas:j,backgroundGroup:j.addGroup({zIndex:i.GROUP_Z_INDEX.BG}),middleGroup:j.addGroup({zIndex:i.GROUP_Z_INDEX.MID}),foregroundGroup:j.addGroup({zIndex:i.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:m,visible:x,options:E,limitInPlot:D,theme:O,syncViewPadding:k})||this,s.onResize=(0,r.debounce)(function(){s.forceFit()},300),s.ele=A,s.canvas=j,s.width=te.width,s.height=te.height,s.autoFit=f,s.localRefresh=y,s.renderer=g,s.wrapperElement=ee,s.updateCanvasStyle(),s.bindAutoFit(),s.initDefaultInteractions(T),s}return t.prototype.initDefaultInteractions=function(e){var t=this;(0,r.each)(e,function(e){t.interaction(e)})},t.prototype.aria=function(e){var t=`aria-label`;e===!1?this.ele.removeAttribute(t):this.ele.setAttribute(t,e.label)},t.prototype.changeSize=function(e,t){return this.width===e&&this.height===t?this:(this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=e,this.height=t,this.canvas.changeSize(e,t),this.render(!0),this.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE),this)},t.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,o.removeDom)(this.wrapperElement),this.wrapperElement=null},t.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?``:`none`,this},t.prototype.forceFit=function(){if(!this.destroyed){var e=(0,o.getChartSize)(this.ele,!0,this.width,this.height),t=e.width,n=e.height;this.changeSize(t,n)}},t.prototype.updateCanvasStyle=function(){(0,o.modifyCSS)(this.canvas.get(`el`),{display:`inline-block`,verticalAlign:`middle`})},t.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener(`resize`,this.onResize)},t.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener(`resize`,this.onResize)},t}((0,n.__importDefault)(eO()).default)})),nO=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.registerComponentController=e.Event=e.registerGeometry=e.View=e.Chart=void 0;var n=tO();Object.defineProperty(e,`Chart`,{enumerable:!0,get:function(){return t(n).default}});var r=eO();Object.defineProperty(e,`View`,{enumerable:!0,get:function(){return t(r).default}}),Object.defineProperty(e,`registerGeometry`,{enumerable:!0,get:function(){return r.registerGeometry}});var i=JD();Object.defineProperty(e,`Event`,{enumerable:!0,get:function(){return t(i).default}});var a=KD();Object.defineProperty(e,`registerComponentController`,{enumerable:!0,get:function(){return a.registerComponentController}})})),rO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=rE(),a=lE(),o=oE(),s=WD(),c=cE(),l=pE(),u=(0,n.__importDefault)(JD());function d(e){for(var t=[],n=function(n){var i=e[n];(0,r.find)(t,function(e){return e.color===i.color&&e.name===i.name&&e.value===i.value&&e.title===i.title})||t.push(i)},i=0;i1){for(var p=t[0],m=Math.abs(e.y-p[0].y),h=0,g=t;h`+i+``:i}})},t.prototype.getTitle=function(e){var t=e[0].title||e[0].name;return this.title=t,t},t.prototype.renderTooltip=function(){var e=this.view.getCanvas(),t={start:{x:0,y:0},end:{x:e.get(`width`),y:e.get(`height`)}},r=this.getTooltipCfg(),a=new i.HtmlTooltip((0,n.__assign)((0,n.__assign)({parent:e.get(`el`).parentNode,region:t},r),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},t.prototype.renderTooltipMarkers=function(e,t){for(var r=this.getTooltipMarkersGroup(),i=0,a=e;i{Object.defineProperty(e,`__esModule`,{value:!0}),e.BACKGROUND_SHAPE=void 0,e.BACKGROUND_SHAPE=`element-background`})),aO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(nE(),e(tE)),a=aE(),o=(0,n.__importDefault)(ED()),s=oE(),c=Y(),l=iO();t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;n.states=[];var r=t.shapeFactory,i=t.container,a=t.offscreenGroup,o=t.elementIndex,s=t.visible,c=s===void 0?!0:s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=c,n.elementIndex=o,n}return t.prototype.draw=function(e,t){t===void 0&&(t=!1),this.model=e,this.data=e.data,this.shapeType=this.getShapeType(e),this.drawShape(e,t),this.visible===!1&&this.changeVisible(!1)},t.prototype.update=function(e){var t=this,n=t.shapeFactory,r=t.shape;if(r){this.model=e,this.data=e.data,this.shapeType=this.getShapeType(e),this.setShapeInfo(r,e);var i=this.getOffscreenGroup(),a=n.drawShape(this.shapeType,e,i);a.cfg.data=this.data,a.cfg.origin=e,a.cfg.element=this,this.syncShapeStyle(r,a,this.getStates(),this.getAnimateCfg(`update`))}},t.prototype.destroy=function(){var t=this,r=t.shapeFactory,i=t.shape;if(i){var o=this.getAnimateCfg(`leave`);o?(0,a.doAnimate)(i,o,{coordinate:r.coordinate,toAttrs:(0,n.__assign)({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},t.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(e){e.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(e){e.hide()}))},t.prototype.setState=function(e,t){var n=this,r=n.states,a=n.shapeFactory,o=n.model,s=n.shape,c=n.shapeType,l=r.indexOf(e);if(t){if(l>-1)return;r.push(e),(e===`active`||e===`selected`)&&s?.toFront()}else{if(l===-1)return;r.splice(l,1),(e===`active`||e===`selected`)&&(this.geometry.zIndexReversed?s.setZIndex(this.geometry.elements.length-this.elementIndex):s.setZIndex(this.elementIndex))}var u=a.drawShape(c,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,u,r,null):this.syncShapeStyle(s,u,[`reset`],null),u.remove(!0);var d={state:e,stateStatus:t,element:this,target:this.container};this.container.emit(`statechange`,d),(0,i.propagationDelegate)(this.shape,`statechange`,d)},t.prototype.clearStates=function(){var e=this,t=this.states;(0,r.each)(t,function(t){e.setState(t,!1)}),this.states=[]},t.prototype.hasState=function(e){return this.states.includes(e)},t.prototype.getStates=function(){return this.states},t.prototype.getData=function(){return this.data},t.prototype.getModel=function(){return this.model},t.prototype.getBBox=function(){var e=this,t=e.shape,n=e.labelShape,r={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(r=t.getCanvasBBox()),n&&n.forEach(function(e){var t=e.getCanvasBBox();r.x=Math.min(t.x,r.x),r.y=Math.min(t.y,r.y),r.minX=Math.min(t.minX,r.minX),r.minY=Math.min(t.minY,r.minY),r.maxX=Math.max(t.maxX,r.maxX),r.maxY=Math.max(t.maxY,r.maxY)}),r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r},t.prototype.getStatesStyle=function(){if(!this.statesStyle){var e=this,t=e.shapeType,n=e.geometry,i=e.shapeFactory,a=n.stateOption,o=i.defaultShapeType,s=i.theme[t]||i.theme[o];this.statesStyle=(0,r.deepMix)({},s,a)}return this.statesStyle},t.prototype.getStateStyle=function(e,t){var n=this.getStatesStyle(),i=(0,r.get)(n,[e,`style`],{}),a=i[t]||i;return(0,r.isFunction)(a)?a(this):a},t.prototype.getAnimateCfg=function(e){var t=this,i=this.animate;if(i){var a=i[e];return a&&(0,n.__assign)((0,n.__assign)({},a),{callback:function(){var e;(0,r.isFunction)(a.callback)&&a.callback(),(e=t.geometry)==null||e.emit(c.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}})}return null},t.prototype.drawShape=function(e,t){var i;t===void 0&&(t=!1);var o=this,s=o.shapeFactory,l=o.container,u=o.shapeType;if(this.shape=s.drawShape(u,e,l),this.shape){this.setShapeInfo(this.shape,e);var d=this.shape.cfg.name;d?(0,r.isString)(d)&&(this.shape.cfg.name=[`element`,d]):this.shape.cfg.name=[`element`,this.shapeFactory.geometryType];var f=t?`enter`:`appear`,p=this.getAnimateCfg(f);p&&((i=this.geometry)==null||i.emit(c.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,a.doAnimate)(this.shape,p,{coordinate:s.coordinate,toAttrs:(0,n.__assign)({},this.shape.attr())}))}},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var e=this.container.getGroupBase();this.offscreenGroup=new e({})}return this.offscreenGroup},t.prototype.setShapeInfo=function(e,t){var n=this;e.cfg.origin=t,e.cfg.element=this,e.isGroup()&&e.get(`children`).forEach(function(e){n.setShapeInfo(e,t)})},t.prototype.syncShapeStyle=function(e,t,n,i,o){var u=this,d;if(n===void 0&&(n=[]),o===void 0&&(o=0),!(!e||!t)){var f=e.get(`clipShape`),p=t.get(`clipShape`);if(this.syncShapeStyle(f,p,n,i),e.isGroup())for(var m=e.get(`children`),h=t.get(`children`),g=0;g{Object.defineProperty(e,`__esModule`,{value:!0}),e.registerGeometryLabelLayout=e.getGeometryLabelLayout=e.registerGeometryLabel=e.getGeometryLabel=void 0;var t={},n={};function r(e){return t[e.toLowerCase()]}e.getGeometryLabel=r;function i(e,n){t[e.toLowerCase()]=n}e.registerGeometryLabel=i;function a(e){return n[e.toLowerCase()]}e.getGeometryLabelLayout=a;function o(e,t){n[e.toLowerCase()]=t}e.registerGeometryLabelLayout=o})),sO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getShapeFactory=t.registerShape=t.registerShapeFactory=void 0;var n=(R(),e(F)),r=(v_(),e(__)),i=(J(),e(q)),a=MD(),o={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(e,t){var n=this.getShape(e);return n.getPoints?n.getPoints(t):this.getDefaultPoints(t)},getShape:function(e){var t=this[e]||this[this.defaultShapeType];return t.coordinate=this.coordinate,t},getDefaultPoints:function(){return[]},getDefaultStyle:function(e){return(0,i.get)(e,[this.defaultShapeType,`default`,`style`],{})},getMarker:function(e,t){var n=this.getShape(e);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var a=this.theme,o=(0,i.get)(a,[e,`default`],{}),s=n.getMarker(t);return(0,i.deepMix)({},o,s)},drawShape:function(e,t,n){return this.getShape(e).draw(t,n)}},s={coordinate:null,parsePath:function(e){var t=this.coordinate,n=(0,r.parsePathString)(e);return n=t.isPolar?(0,a.convertPolarPath)(t,n):(0,a.convertNormalPath)(t,n),n},parsePoint:function(e){return this.coordinate.convert(e)},parsePoints:function(e){var t=this.coordinate;return e.map(function(e){return t.convert(e)})},draw:function(e,t){}},c={};function l(e,t){var r=(0,i.upperFirst)(e),a=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},o),t),{geometryType:e});return c[r]=a,a}t.registerShapeFactory=l;function u(e,t,r){var a=c[(0,i.upperFirst)(e)],o=(0,n.__assign)((0,n.__assign)({},s),r);return a[t]=o,o}t.registerShape=u;function d(e){return c[(0,i.upperFirst)(e)]}t.getShapeFactory=d})),cO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.group=void 0;var n=(J(),e(q));function r(e,t,r){if(r===void 0&&(r={}),!t)return[e];var i=(0,n.groupToMap)(e,t),a=[];if(t.length===1&&r[t[0]])for(var o=r[t[0]],s=0,c=o;s{Object.defineProperty(t,`__esModule`,{value:!0}),t.isModelChange=void 0;var n=(J(),e(q));function r(e,t){return(0,n.some)([`color`,`shape`,`size`,`x`,`y`,`isInCircle`,`data`,`style`,`defaultStyle`,`points`,`mappingData`],function(r){return!(0,n.isEqual)(e[r],t[r])})}t.isModelChange=r})),uO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseFields=void 0;var n=(J(),e(q));function r(e){return(0,n.isArray)(e)?e:e.split(`*`)}t.parseFields=r})),dO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.diff=void 0;function t(e,t){for(var n=[],r=[],i=[],a=new Map,o=0;o{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(nv(),e(tv)),i=(bx(),e(yx)),a=(J(),e(q)),o=aE(),s=(0,n.__importDefault)(ED()),c=Y(),l=sE(),u=(0,n.__importDefault)(aO()),d=oO(),f=sO(),p=cO(),m=lO(),h=uO(),g=dO(),_=lE();function v(e,t){var n=[];return(0,a.each)(t,function(t,r){r.split(` `)[0]===e&&n.push(t)}),n}t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;n.type=`base`,n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=t.container,i=t.labelsContainer,a=t.coordinate,o=t.data,s=t.sortable,c=s===void 0?!1:s,l=t.visible,u=l===void 0?!0:l,d=t.theme,f=t.scales,p=f===void 0?{}:f,m=t.scaleDefs,h=m===void 0?{}:m,g=t.intervalPadding,_=t.dodgePadding,v=t.maxColumnWidth,y=t.minColumnWidth,b=t.columnWidthRatio,x=t.roseWidthRatio,S=t.multiplePieWidthRatio,C=t.zIndexReversed;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=c,n.visible=u,n.userTheme=d,n.scales=p,n.scaleDefs=h,n.intervalPadding=g,n.dodgePadding=_,n.maxColumnWidth=v,n.minColumnWidth=y,n.columnWidthRatio=b,n.roseWidthRatio=x,n.multiplePieWidthRatio=S,n.zIndexReversed=C,n}return t.prototype.position=function(e){var t=e;(0,a.isPlainObject)(e)||(t={fields:(0,h.parseFields)(e)});var n=(0,a.get)(t,`fields`);return n.length===1&&(n.unshift(`1`),(0,a.set)(t,`fields`,n)),(0,a.set)(this.attributeOption,`position`,t),this},t.prototype.color=function(e,t){return this.createAttrOption(`color`,e,t),this},t.prototype.shape=function(e,t){return this.createAttrOption(`shape`,e,t),this},t.prototype.size=function(e,t){return this.createAttrOption(`size`,e,t),this},t.prototype.adjust=function(e){var t=e;return((0,a.isString)(e)||(0,a.isPlainObject)(e))&&(t=[e]),(0,a.each)(t,function(e,n){(0,a.isObject)(e)||(t[n]={type:e})}),this.adjustOption=t,this},t.prototype.style=function(e,t){if((0,a.isString)(e)){var n=(0,h.parseFields)(e);this.styleOption={fields:n,callback:t}}else{var r=e,n=r.fields,i=r.callback,o=r.cfg;n||i||o?this.styleOption=e:this.styleOption={cfg:e}}return this},t.prototype.tooltip=function(e,t){if((0,a.isString)(e)){var n=(0,h.parseFields)(e);this.tooltipOption={fields:n,callback:t}}else this.tooltipOption=e;return this},t.prototype.animate=function(e){return this.animateOption=e,this},t.prototype.label=function(e,t,n){if((0,a.isString)(e)){var r={};r.fields=(0,h.parseFields)(e),(0,a.isFunction)(t)?r.callback=t:(0,a.isPlainObject)(t)&&(r.cfg=t),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=e;return this},t.prototype.state=function(e){return this.stateOption=e,this},t.prototype.customInfo=function(e){return this.customOption=e,this},t.prototype.init=function(e){e===void 0&&(e={}),this.setCfg(e),this.initAttributes(),this.processData(this.data),this.adjustScale()},t.prototype.update=function(e){e===void 0&&(e={});var t=e.data,n=e.isDataChanged,r=e.isCoordinateChanged,i=this,o=i.attributeOption,s=i.lastAttributeOption;(0,a.isEqual)(o,s)?t&&(n||!(0,a.isEqual)(t,this.data))?(this.setCfg(e),this.initAttributes(),this.processData(t)):this.setCfg(e):this.init(e),this.adjustScale(),this.isCoordinateChanged=r},t.prototype.paint=function(e){e===void 0&&(e=!1),this.animateOption&&=(0,a.deepMix)({},(0,o.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var t=this.beforeMappingData,r=this.beforeMapping(t);this.dataArray=Array(r.length);for(var i=0;i=0?t:n<=0?n:0},t.prototype.createAttrOption=function(e,t,n){if((0,a.isNil)(t)||(0,a.isObject)(t))(0,a.isObject)(t)&&(0,a.isEqual)(Object.keys(t),[`values`])?(0,a.set)(this.attributeOption,e,{fields:t.values}):(0,a.set)(this.attributeOption,e,t);else{var r={};(0,a.isNumber)(t)?r.values=[t]:r.fields=(0,h.parseFields)(t),n&&((0,a.isFunction)(n)?r.callback=n:r.values=n),(0,a.set)(this.attributeOption,e,r)}},t.prototype.initAttributes=function(){var e=this,t=this,r=t.attributes,a=t.attributeOption,o=t.theme,s=t.shapeType;this.groupScales=[];var l={},u=function(t){if(a.hasOwnProperty(t)){var u=a[t];if(!u)return{value:void 0};var d=(0,n.__assign)({},u),f=d.callback,p=d.values,m=d.fields,h=(m===void 0?[]:m).map(function(n){var r=e.scales[n];return r.isCategory&&!l[n]&&c.GROUP_ATTRS.includes(t)&&(e.groupScales.push(r),l[n]=!0),r});d.scales=h,t!==`position`&&h.length===1&&h[0].type===`identity`?d.values=h[0].values:!f&&!p&&(t===`size`?d.values=o.sizes:t===`shape`?d.values=o.shapes[s]||[]:t===`color`&&(h.length?d.values=h[0].values.length<=10?o.colors10:o.colors20:d.values=o.colors10)),r[t]=new((0,i.getAttribute)(t))(d)}};for(var d in a){var f=u(d);if(typeof f==`object`)return f.value}},t.prototype.processData=function(e){this.hasSorted=!1;for(var t=this.getAttribute(`position`).scales.filter(function(e){return e.isCategory}),n=this.groupData(e),r=[],i=0,a=n.length;io&&(o=u)}var d=this.scaleDefs,f={};ie.max&&!(0,a.get)(d,[r,`max`])&&(f.max=o),e.change(f)},t.prototype.beforeMapping=function(e){var t=e;if(this.sortable&&this.sort(t),this.generatePoints)for(var n=0,r=t.length;n1)for(var f=0;f{Object.defineProperty(t,`__esModule`,{value:!0}),t.zoom=t.getIdentityMatrix=t.rotate=t.getRotateMatrix=t.translate=t.transform=void 0;var n=(yu(),e(vu)).ext.transform;t.transform=n;function r(e,t,r){var i=n(e.getMatrix(),[[`t`,t,r]]);e.setMatrix(i)}t.translate=r;function i(e,t){var r=e.attr(),i=r.x,a=r.y;return n(e.getMatrix(),[[`t`,-i,-a],[`r`,t],[`t`,i,a]])}t.getRotateMatrix=i;function a(e,t){var n=i(e,t);e.setMatrix(n)}t.rotate=a;function o(){return[1,0,0,0,1,0,0,0,1]}t.getIdentityMatrix=o;function s(e,t){var r=e.getBBox(),i=(r.minX+r.maxX)/2,a=(r.minY+r.maxY)/2;e.applyToMatrix([i,a,1]);var o=n(e.getMatrix(),[[`t`,-i,-a],[`s`,t,t],[`t`,i,a]]);e.setMatrix(o)}t.zoom=s})),mO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.checkShapeOverlap=t.getOverlapArea=t.getlLabelBackgroundInfo=t.findLabelTextShape=void 0;var n=(J(),e(q)),r=pO();function i(e){return e.find(function(e){return e.get(`type`)===`text`})}t.findLabelTextShape=i;function a(e,t,i){i===void 0&&(i=[0,0,0,0]);var a=e.getChildren()[0];if(a){var o=a.clone();t?.rotate&&(0,r.rotate)(o,-t.rotate);var s=o.getCanvasBBox(),c=s.x,l=s.y,u=s.width,d=s.height;o.destroy();var f=i;return(0,n.isNil)(f)?f=[2,2,2,2]:(0,n.isNumber)(f)&&(f=[,,,,].fill(f)),{x:c-f[3],y:l-f[0],width:u+f[1]+f[3],height:d+f[0]+f[2],rotation:t?.rotate||0}}}t.getlLabelBackgroundInfo=a;function o(e,t,n){return n===void 0&&(n=0),Math.max(0,Math.min(e.x+e.width+n,t.x+t.width+n)-Math.max(e.x-n,t.x-n))*Math.max(0,Math.min(e.y+e.height+n,t.y+t.height+n)-Math.max(e.y-n,t.y-n))}t.getOverlapArea=o;function s(e,t){var r=e.getBBox();return(0,n.some)(t,function(e){return o(r,e.getBBox(),2)>0})}t.checkShapeOverlap=s})),hO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.updateLabel=void 0;var n=(J(),e(q)),r=aE(),i=oE();function a(e,t,o){var s=o.data,c=o.origin,l=o.animateCfg,u=o.coordinate,d=(0,n.get)(l,`update`);e.set(`data`,s),e.set(`origin`,c),e.set(`animateCfg`,l),e.set(`coordinate`,u),e.set(`visible`,t.get(`visible`)),e.getChildren().forEach(function(n,f){var p=t.getChildByIndex(f);if(!p)e.removeChild(n),n.remove(!0);else{n.set(`data`,s),n.set(`origin`,c),n.set(`animateCfg`,l),n.set(`coordinate`,u);var m=(0,i.getReplaceAttrs)(n,p);d?(0,r.doAnimate)(n,d,{toAttrs:m,coordinate:u}):n.attr(m),p.isGroup()&&a(n,p,o)}}),(0,n.each)(t.getChildren(),function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))})}t.updateLabel=a})),gO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=aE(),a=oO(),o=mO(),s=oE(),c=pO(),l=Y(),u=hO();t.default=function(){function e(e){this.shapesMap={},this.lastShapesMap={};var t=e.layout,n=e.container;this.layout=t,this.container=n}return e.prototype.render=function(e,t,a){var o=this;a===void 0&&(a=!1),this.shapesMap={};var s=this.container,c=this.createOffscreenGroup();if(e.length){for(var l=0,d=e;l{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=aE(),o=oE(),s=(0,n.__importDefault)(gO());function c(e){var t=0;return(0,r.each)(e,function(e){t+=e}),t/e.length}t.default=function(){function e(e){this.geometry=e}return e.prototype.getLabelItems=function(e){var t=this,i=[],a=this.getLabelCfgs(e);return(0,r.each)(e,function(e,o){var s=a[o];if(!s||(0,r.isNil)(e.x)||(0,r.isNil)(e.y)){i.push(null);return}var c=(0,r.isArray)(s.content)?s.content:[s.content];s.content=c;var l=c.length;(0,r.each)(c,function(a,o){if((0,r.isNil)(a)||a===``){i.push(null);return}var c=(0,n.__assign)((0,n.__assign)({},s),t.getLabelPoint(s,e,o));c.textAlign||=t.getLabelAlign(c,o,l),c.offset<=0&&(c.labelLine=null),i.push(c)})}),i},e.prototype.render=function(e,t){t===void 0&&(t=!1);var n=this.getLabelItems(e),r=this.getLabelsRenderer(),i=this.getGeometryShapes();r.render(n,i,t)},e.prototype.clear=function(){var e=this.labelsRenderer;e&&e.clear()},e.prototype.destroy=function(){var e=this.labelsRenderer;e&&e.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(e,t){var n=this.geometry,i=n.type,a=n.theme;return i===`polygon`||i===`interval`&&t===`middle`||e<0&&![`line`,`point`,`path`].includes(i)?(0,r.get)(a,`innerLabels`,{}):(0,r.get)(a,`labels`,{})},e.prototype.getThemedLabelCfg=function(e){var t=this.geometry,n=this.getDefaultLabelCfg(),i=t.type,a=t.theme;return i===`polygon`||e.offset<0&&![`line`,`point`,`path`].includes(i)?(0,r.deepMix)({},n,a.innerLabels,e):(0,r.deepMix)({},n,a.labels,e)},e.prototype.setLabelPosition=function(e,t,n,r){},e.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),n=this.getOffsetVector(e);return t.isTransposed?n[0]:n[1]},e.prototype.getLabelOffsetPoint=function(e,t,n){var r=e.offset,i=this.getCoordinate().isTransposed,a=i?`x`:`y`,o=i?1:-1,s={x:0,y:0};return t>0||n===1?s[a]=r*o:s[a]=r*o*-1,s},e.prototype.getLabelPoint=function(e,t,n){var i=this.getCoordinate(),a=e.content.length;function s(t,n,i){i===void 0&&(i=!1);var a=t;return(0,r.isArray)(a)&&(a=e.content.length===1?i?c(a):a.length<=2?a[t.length-1]:c(a):a[n]),a}var l={content:e.content[n],x:0,y:0,start:{x:0,y:0},color:`#fff`},u=(0,r.isArray)(t.shape)?t.shape[0]:t.shape,d=u===`funnel`||u===`pyramid`;if(this.geometry.type===`polygon`){var f=(0,o.getPolygonCentroid)(t.x,t.y);l.x=f[0],l.y=f[1]}else this.geometry.type===`interval`&&!d?(l.x=s(t.x,n,!0),l.y=s(t.y,n)):(l.x=s(t.x,n),l.y=s(t.y,n));if(d){var p=(0,r.get)(t,`nextPoints`),m=(0,r.get)(t,`points`);if(p){var h=i.convert(m[1]),g=i.convert(p[1]);l.x=(h.x+g.x)/2,l.y=(h.y+g.y)/2}else if(u===`pyramid`){var h=i.convert(m[1]),g=i.convert(m[2]);l.x=(h.x+g.x)/2,l.y=(h.y+g.y)/2}}e.position&&this.setLabelPosition(l,t,n,e.position);var _=this.getLabelOffsetPoint(e,n,a);return l.start={x:l.x,y:l.y},l.x+=_.x,l.y+=_.y,l.color=t.color,l},e.prototype.getLabelAlign=function(e,t,n){var r=`center`;if(this.getCoordinate().isTransposed){var i=e.offset;r=i<0?`right`:i===0?`center`:`left`,n>1&&t===0&&(r===`right`?r=`left`:r===`left`&&(r=`right`))}return r},e.prototype.getLabelId=function(e){var t=this.geometry,n=t.type,r=t.getXScale(),a=t.getYScale(),o=e[i.FIELD_ORIGIN],s=t.getElementId(e);return n===`line`||n===`area`?s+=` `+o[r.field]:n===`path`&&(s+=` `+o[r.field]+`-`+o[a.field]),s},e.prototype.getLabelsRenderer=function(){var e=this.geometry,t=e.labelsContainer,n=e.labelOption,i=e.canvasRegion,o=e.animateOption,c=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new s.default({container:t,layout:(0,r.get)(n,[`cfg`,`layout`],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=i,l.animate=o?(0,a.getDefaultAnimateCfg)(`label`,c):!1,l},e.prototype.getLabelCfgs=function(e){var t=this,a=this.geometry,o=a.labelOption,s=a.scales,c=a.coordinate,l=o,u=l.fields,d=l.callback,f=l.cfg,p=u.map(function(e){return s[e]}),m=[];return(0,r.each)(e,function(e,a){var o=e[i.FIELD_ORIGIN],s=t.getLabelText(o,p),l;if(d){var h=u.map(function(e){return o[e]});if(l=d.apply(void 0,h),(0,r.isNil)(l)){m.push(null);return}}var g=(0,n.__assign)((0,n.__assign)({id:t.getLabelId(e),elementId:t.geometry.getElementId(e),data:o,mappingData:e,coordinate:c},f),l);(0,r.isFunction)(g.position)&&(g.position=g.position(o,e,a));var _=t.getLabelOffset(g.offset||0),v=t.getDefaultLabelCfg(_,g.position);g=(0,r.deepMix)({},v,g),g.offset=t.getLabelOffset(g.offset||0);var y=g.content;(0,r.isFunction)(y)?g.content=y(o,e,a):(0,r.isUndefined)(y)&&(g.content=s[0]),m.push(g)}),m},e.prototype.getLabelText=function(e,t){var n=[];return(0,r.each)(t,function(t){var i=e[t.field];i=(0,r.isArray)(i)?i.map(function(e){return t.getText(e)}):t.getText(i),(0,r.isNil)(i)||i===``?n.push(null):n.push(i)}),n},e.prototype.getOffsetVector=function(e){e===void 0&&(e=0);var t=this.getCoordinate(),n=0;return(0,r.isNumber)(e)&&(n=e),t.isTransposed?t.applyMatrix(n,0):t.applyMatrix(0,n)},e.prototype.getGeometryShapes=function(){var e=this.geometry,t={};return(0,r.each)(e.elementsMap,function(e,n){t[n]=e.shape}),(0,r.each)(e.getOffscreenGroup().getChildren(),function(n){var r=e.getElementId(n.get(`origin`).mappingData);t[r]=n}),t},e}()})),vO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),yO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMappingValue=void 0;var n=(R(),e(F));function r(e,t,r){if(!e)return r;var i;if(e.callback&&e.callback.length>1){var a=Array(e.callback.length-1).fill(``);i=e.mapping.apply(e,(0,n.__spreadArray)([t],a,!1)).join(``)}else i=e.mapping(t).join(``);return i||r}t.getMappingValue=r})),bO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(e,t,n){var r=n/2*Math.sqrt(3);return[[`M`,e,t-n],[`L`,e+r,t-n/2],[`L`,e+r,t+n/2],[`L`,e,t+n],[`L`,e-r,t+n/2],[`L`,e-r,t-n/2],[`Z`]]},bowtie:function(e,t,n){var r=n-1.5;return[[`M`,e-n,t-r],[`L`,e+n,t+r],[`L`,e+n,t-r],[`L`,e-n,t+r],[`Z`]]},cross:function(e,t,n){return[[`M`,e-n,t-n],[`L`,e+n,t+n],[`M`,e+n,t-n],[`L`,e-n,t+n]]},tick:function(e,t,n){return[[`M`,e-n/2,t-n],[`L`,e+n/2,t-n],[`M`,e,t-n],[`L`,e,t+n],[`M`,e-n/2,t+n],[`L`,e+n/2,t+n]]},plus:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t],[`M`,e,t-n],[`L`,e,t+n]]},hyphen:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t]]},line:function(e,t,n){return[[`M`,e,t-n],[`L`,e,t+n]]}}})),xO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getLegendThemeCfg=t.getCustomLegendItems=t.getLegendItems=t.getLegendLayout=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=yO(),o=sE(),s=bO(),c=[`line`,`cross`,`tick`,`plus`,`hyphen`];function l(e,t){return(0,r.isFunction)(t)?t(e):(0,r.deepMix)({},e,t)}function u(e,t){var n=e.symbol;if((0,r.isString)(n)&&c.indexOf(n)!==-1){var i=(0,r.get)(e,`style`,{}),a=(0,r.get)(i,`lineWidth`,1),o=i.stroke||i.fill||t;e.style=(0,r.deepMix)({},e.style,{lineWidth:a,stroke:o,fill:null})}}function d(e){var t=e.symbol;(0,r.isString)(t)&&s.MarkerSymbols[t]&&(e.symbol=s.MarkerSymbols[t])}function f(e){return e.startsWith(i.DIRECTION.LEFT)||e.startsWith(i.DIRECTION.RIGHT)?`vertical`:`horizontal`}t.getLegendLayout=f;function p(e,t,i,s,c){var f=i.getScale(i.type);if(f.isCategory){var p=f.field,m=t.getAttribute(`color`),h=t.getAttribute(`shape`),g=e.getTheme().defaultColor,_=t.coordinate.isPolar;return f.getTicks().map(function(i,v){var y,b=i.text,x=i.value,S=b,C=f.invert(x),w=e.filterFieldData(p,[(y={},y[p]=C,y)]).length===0;(0,r.each)(e.views,function(e){var t;e.filterFieldData(p,[(t={},t[p]=C,t)]).length||(w=!0)});var T=(0,a.getMappingValue)(m,C,g),E=(0,a.getMappingValue)(h,C,`point`),D=t.getShapeMarker(E,{color:T,isInPolar:_}),O=c;return(0,r.isFunction)(O)&&(O=O(S,v,(0,n.__assign)({name:S,value:C},(0,r.deepMix)({},s,D)))),D=(0,r.deepMix)({},s,D,(0,o.omit)((0,n.__assign)({},O),[`style`])),u(D,T),O&&O.style&&(D.style=l(D.style,O.style)),d(D),{id:C,name:S,value:C,marker:D,unchecked:w}})}return[]}t.getLegendItems=p;function m(e,t,n){return n.map(function(n,i){var a=t;(0,r.isFunction)(a)&&(a=a(n.name,i,(0,r.deepMix)({},e,n)));var o=(0,r.isFunction)(n.marker)?n.marker(n.name,i,(0,r.deepMix)({},e,n)):n.marker,s=(0,r.deepMix)({},e,a,o);return d(s),n.marker=s,n})}t.getCustomLegendItems=m;function h(e,t){var n=(0,r.get)(e,[`components`,`legend`],{});return(0,r.deepMix)({},(0,r.get)(n,[`common`],{}),(0,r.deepMix)({},(0,r.get)(n,[t],{})))}t.getLegendThemeCfg=h})),SO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Util=t.Scale=t.Coordinate=t.DIRECTION=t.LAYER=t.getAnimation=t.registerAnimation=t.getEngine=t.registerEngine=t.registerTheme=t.getTheme=t.registerFacet=t.getFacet=t.getActionClass=t.registerAction=t.registerInteraction=t.getInteraction=t.getGeometryLabelLayout=t.getGeometryLabel=t.registerGeometryLabelLayout=t.registerGeometryLabel=t.getShapeFactory=t.registerShapeFactory=t.registerShape=t.registerGeometry=t.registerComponentController=t.InteractionAction=t.Facet=t.Action=t.Interaction=t.GeometryLabel=t.Element=t.Geometry=t.TooltipController=t.ComponentController=t.Event=t.View=t.Chart=t.VERSION=void 0;var n=(R(),e(F));t.VERSION=`4.1.32`;var r=nO();Object.defineProperty(t,`Chart`,{enumerable:!0,get:function(){return r.Chart}}),Object.defineProperty(t,`View`,{enumerable:!0,get:function(){return r.View}}),Object.defineProperty(t,`Event`,{enumerable:!0,get:function(){return r.Event}});var i=pE();Object.defineProperty(t,`ComponentController`,{enumerable:!0,get:function(){return i.Controller}});var a=rO();Object.defineProperty(t,`TooltipController`,{enumerable:!0,get:function(){return(0,n.__importDefault)(a).default}});var o=fO();Object.defineProperty(t,`Geometry`,{enumerable:!0,get:function(){return(0,n.__importDefault)(o).default}});var s=aO();Object.defineProperty(t,`Element`,{enumerable:!0,get:function(){return(0,n.__importDefault)(s).default}});var c=_O();Object.defineProperty(t,`GeometryLabel`,{enumerable:!0,get:function(){return(0,n.__importDefault)(c).default}});var l=RD();Object.defineProperty(t,`Interaction`,{enumerable:!0,get:function(){return l.Interaction}}),Object.defineProperty(t,`Action`,{enumerable:!0,get:function(){return l.Action}});var u=OD();Object.defineProperty(t,`Facet`,{enumerable:!0,get:function(){return u.Facet}});var d=kD();Object.defineProperty(t,`InteractionAction`,{enumerable:!0,get:function(){return(0,n.__importDefault)(d).default}});var f=nO();Object.defineProperty(t,`registerComponentController`,{enumerable:!0,get:function(){return f.registerComponentController}});var p=nO();Object.defineProperty(t,`registerGeometry`,{enumerable:!0,get:function(){return p.registerGeometry}});var m=sO();Object.defineProperty(t,`registerShape`,{enumerable:!0,get:function(){return m.registerShape}}),Object.defineProperty(t,`registerShapeFactory`,{enumerable:!0,get:function(){return m.registerShapeFactory}}),Object.defineProperty(t,`getShapeFactory`,{enumerable:!0,get:function(){return m.getShapeFactory}});var h=oO();Object.defineProperty(t,`registerGeometryLabel`,{enumerable:!0,get:function(){return h.registerGeometryLabel}}),Object.defineProperty(t,`registerGeometryLabelLayout`,{enumerable:!0,get:function(){return h.registerGeometryLabelLayout}}),Object.defineProperty(t,`getGeometryLabel`,{enumerable:!0,get:function(){return h.getGeometryLabel}}),Object.defineProperty(t,`getGeometryLabelLayout`,{enumerable:!0,get:function(){return h.getGeometryLabelLayout}});var g=RD();Object.defineProperty(t,`getInteraction`,{enumerable:!0,get:function(){return g.getInteraction}}),Object.defineProperty(t,`registerInteraction`,{enumerable:!0,get:function(){return g.registerInteraction}}),Object.defineProperty(t,`registerAction`,{enumerable:!0,get:function(){return g.registerAction}}),Object.defineProperty(t,`getActionClass`,{enumerable:!0,get:function(){return g.getActionClass}});var _=OD();Object.defineProperty(t,`getFacet`,{enumerable:!0,get:function(){return _.getFacet}}),Object.defineProperty(t,`registerFacet`,{enumerable:!0,get:function(){return _.registerFacet}});var v=UD();Object.defineProperty(t,`getTheme`,{enumerable:!0,get:function(){return v.getTheme}}),Object.defineProperty(t,`registerTheme`,{enumerable:!0,get:function(){return v.registerTheme}});var y=wD();Object.defineProperty(t,`registerEngine`,{enumerable:!0,get:function(){return y.registerEngine}}),Object.defineProperty(t,`getEngine`,{enumerable:!0,get:function(){return y.getEngine}});var b=iE();Object.defineProperty(t,`registerAnimation`,{enumerable:!0,get:function(){return b.registerAnimation}}),Object.defineProperty(t,`getAnimation`,{enumerable:!0,get:function(){return b.getAnimation}});var x=Y();Object.defineProperty(t,`LAYER`,{enumerable:!0,get:function(){return x.LAYER}}),Object.defineProperty(t,`DIRECTION`,{enumerable:!0,get:function(){return x.DIRECTION}}),(0,n.__importStar)(vO());var S=rE();Object.defineProperty(t,`Coordinate`,{enumerable:!0,get:function(){return S.Coordinate}}),Object.defineProperty(t,`Scale`,{enumerable:!0,get:function(){return S.Scale}});var C=yO(),w=xO(),T=oE(),E=pO(),D=WD(),O=ND();t.Util={getLegendItems:w.getLegendItems,translate:E.translate,rotate:E.rotate,zoom:E.zoom,transform:E.transform,getAngle:T.getAngle,getSectorPath:T.getSectorPath,polarToCartesian:T.polarToCartesian,getDelegationObject:O.getDelegationObject,getTooltipItems:D.getTooltipItems,getMappingValue:C.getMappingValue}})),CO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.setGlobal=t.GLOBAL=void 0;var n=(J(),e(q));t.GLOBAL={locale:`en-US`};function r(e){n.each(e,function(e,n){return t.GLOBAL[n]=e})}t.setGlobal=r})),wO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=[1,1.2,1.5,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],n=5;e.default=(function(e){var t=e||{},r=t.tickCount,i=t.tickInterval,o=e||{},s=o.min,u=o.max;s=isNaN(s)?0:s,u=isNaN(u)?0:u;var d=r&&r>=2?r:n,f=i||a({tickCount:d,max:u,min:s}),p=Math.floor(s/f)*f;if(i){var m=Math.abs(Math.ceil((u-p)/i))+1;d=Math.max(d,m)}for(var h=[],g=0,_=c(f);gr&&(t=parseFloat(t.toFixed(n))),t}for(;e>10;)t*=10,e/=10;return t}function a(e){var n=e.tickCount,r=e.min,a=e.max;if(r===a)return 1*i(a);for(var s=(a-r)/(n-1),u=i(s),d=s/u,f=a/u,p=r/u,m=0,h=0;h=r}function c(e){var t=e.toString(),n=t.indexOf(`.`),r=t.indexOf(`e-`),i=r>=0?parseInt(t.substr(r+2),10):t.substr(n+1).length;return i>20&&(i=20),i}function l(e,t){return parseFloat(e.toFixed(t))}})),TO=i((t=>{var n=t&&t.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0});var i=(px(),e(fx)),a=r(wO());(0,i.registerTickMethod)(`linear-strict-tick-method`,a.default);var o=function(e){n(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`linear-strict`,n}return t.prototype.initCfg=function(){e.prototype.initCfg.call(this),this.tickMethod=`linear-strict-tick-method`},t.prototype.calculateTicks=function(){var t=this.nice;this.nice=!0;var n=e.prototype.calculateTicks.call(this);return this.nice=t,n.length&&(this.min=n[0],this.max=n[n.length-1]),n},t}(i.Linear);t.default=o,(0,i.getScale)(`linear-strict`)||(0,i.registerScale)(`linear-strict`,o)})),EO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.fadeOut=t.fadeIn=void 0;var n=(J(),e(q));function r(e,t,r){var i={fillOpacity:(0,n.isNil)(e.attr(`fillOpacity`))?1:e.attr(`fillOpacity`),strokeOpacity:(0,n.isNil)(e.attr(`strokeOpacity`))?1:e.attr(`strokeOpacity`),opacity:(0,n.isNil)(e.attr(`opacity`))?1:e.attr(`opacity`)};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(i,t)}t.fadeIn=r;function i(e,t,n){var r={fillOpacity:0,strokeOpacity:0,opacity:0},i=t.easing,a=t.duration,o=t.delay;e.animate(r,a,i,function(){e.remove(!0)},o)}t.fadeOut=i})),DO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.doScaleAnimate=t.transformShape=void 0;var n=(yu(),e(vu));function r(e,t,r){var i,a=t[0],o=t[1];return e.applyToMatrix([a,o,1]),r===`x`?(e.setMatrix(n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,.01,1],[`t`,a,o]])),i=n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,100,1],[`t`,a,o]])):r===`y`?(e.setMatrix(n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,1,.01],[`t`,a,o]])),i=n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,1,100],[`t`,a,o]])):r===`xy`&&(e.setMatrix(n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,.01,.01],[`t`,a,o]])),i=n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,100,100],[`t`,a,o]])),i}t.transformShape=r;function i(e,t,n,i,a){var o=n.start,s=n.end,c=n.getWidth(),l=n.getHeight(),u,d;a===`y`?(u=o.x+c/2,d=i.yo.x?i.x:o.x,d=o.y+l/2):a===`xy`&&(n.isPolar?(u=n.getCenter().x,d=n.getCenter().y):(u=(o.x+s.x)/2,d=(o.y+s.y)/2));var f=r(e,[u,d],a);e.animate({matrix:f},t)}t.doScaleAnimate=i})),OO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var t=DO();function n(e,n,r){var i=r.coordinate,a=r.minYPoint;(0,t.doScaleAnimate)(e,n,i,a,`x`)}e.growInX=n;function r(e,n,r){var i=r.coordinate,a=r.minYPoint;(0,t.doScaleAnimate)(e,n,i,a,`y`)}e.growInY=r;function i(e,n,r){var i=r.coordinate,a=r.minYPoint;(0,t.doScaleAnimate)(e,n,i,a,`xy`)}e.growInXY=i})),kO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pathIn=void 0;function t(e,t,n){var r=e.getTotalLength();e.attr(`lineDash`,[r]),e.animate(function(e){return{lineDashOffset:(1-e)*r}},t)}e.pathIn=t})),AO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.positionUpdate=void 0;function t(e,t,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,e.attr(r),e.animate({x:i,y:a},t)}e.positionUpdate=t})),jO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.scaleInY=t.scaleInX=void 0;var n=(yu(),e(vu));function r(e,t,r){var i=e.getBBox(),a=e.get(`origin`).mappingData.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;e.applyToMatrix([o,s,1]);var c=n.ext.transform(e.getMatrix(),[[`t`,-o,-s],[`s`,.01,1],[`t`,o,s]]);e.setMatrix(c),e.animate({matrix:n.ext.transform(e.getMatrix(),[[`t`,-o,-s],[`s`,100,1],[`t`,o,s]])},t)}t.scaleInX=r;function i(e,t,r){var i=e.getBBox(),a=e.get(`origin`).mappingData,o=(i.minX+i.maxX)/2,s=a.points,c=s[0].y-s[1].y<=0?i.maxY:i.minY;e.applyToMatrix([o,c,1]);var l=n.ext.transform(e.getMatrix(),[[`t`,-o,-c],[`s`,1,.01],[`t`,o,c]]);e.setMatrix(l),e.animate({matrix:n.ext.transform(e.getMatrix(),[[`t`,-o,-c],[`s`,1,100],[`t`,o,c]])},t)}t.scaleInY=i}));function MO(){return window?window.devicePixelRatio:1}function NO(e,t,n,r){var i=e-n,a=t-r;return Math.sqrt(i*i+a*a)}function PO(e,t,n,r,i,a){return i>=e&&i<=e+n&&a>=t&&a<=t+r}function FO(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY{J()}));function zO(e,t){H(e.match(JO),function(e){var n=e.split(`:`);t.addColorStop(n[0],n[1])})}function BO(e,t,n){var r=GO.exec(n),i=parseFloat(r[1])%360*(Math.PI/180),a=r[2],o=t.getBBox(),s,c;i>=0&&i<1/2*Math.PI?(s={x:o.minX,y:o.minY},c={x:o.maxX,y:o.maxY}):1/2*Math.PI<=i&&i{RO(),GO=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,KO=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,qO=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,JO=/[\d.]+:(#[^\s]+|[^\)]+\))/gi}));function XO(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ZO(e,t){return XO(e)*XO(t)?(e[0]*t[0]+e[1]*t[1])/(XO(e)*XO(t)):1}function QO(e,t){return(e[0]*t[1]1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var m=n*n*(f*f)+r*r*(d*d),h=m?Math.sqrt((n*n*(r*r)-m)/m):1;a===o&&(h*=-1),isNaN(h)&&(h=0);var g=r?h*n*f/r:0,_=n?h*-r*d/n:0,v=(s+l)/2+Math.cos(i)*g-Math.sin(i)*_,y=(c+u)/2+Math.sin(i)*g+Math.cos(i)*_,b=[(d-g)/n,(f-_)/r],x=[(-1*d-g)/n,(-1*f-_)/r],S=QO([1,0],b),C=QO(b,x);return ZO(b,x)<=-1&&(C=Math.PI),ZO(b,x)>=1&&(C=0),o===0&&C>0&&(C-=2*Math.PI),o===1&&C<0&&(C+=2*Math.PI),{cx:v,cy:y,rx:LO(e,[l,u])?0:n,ry:LO(e,[l,u])?0:r,startAngle:S,endAngle:S+C,xRotation:i,arcFlag:a,sweepFlag:o}}var ek=t((()=>{RO()}));function tk(e,t,n,r,i,a,o){var s=t.stroke,c=t.lineWidth,l=n-i,u=ck(r-a,l),d=new oA({type:`path`,canvas:e.get(`canvas`),isArrowShape:!0,attrs:{path:`M`+10*sk(lk/6)+`,`+10*ok(lk/6)+` L0,0 L`+10*sk(lk/6)+`,-`+10*ok(lk/6),stroke:s,lineWidth:c}});d.translate(i,a),d.rotateAtPoint(i,a,u),e.set(o?`startArrowShape`:`endArrowShape`,d)}function nk(e,t,n,r,i,a,o){var s=t.startArrow,c=t.endArrow,l=t.stroke,u=t.lineWidth,d=o?s:c,f=d.d,p=d.fill,m=d.stroke,h=d.lineWidth,g=pt(d,[`d`,`fill`,`stroke`,`lineWidth`]),_=n-i,v=ck(r-a,_);f&&(i-=sk(v)*f,a-=ok(v)*f);var y=new oA({type:`path`,canvas:e.get(`canvas`),isArrowShape:!0,attrs:L(L({},g),{stroke:m||l,lineWidth:h||u,fill:p})});y.translate(i,a),y.rotateAtPoint(i,a,v),e.set(o?`startArrowShape`:`endArrowShape`,y)}function rk(e,t,n,r,i){var a=ck(r-t,n-e);return{dx:sk(a)*i,dy:ok(a)*i}}function ik(e,t,n,r,i,a){typeof t.startArrow==`object`?nk(e,t,n,r,i,a,!0):t.startArrow?tk(e,t,n,r,i,a,!0):e.set(`startArrowShape`,null)}function ak(e,t,n,r,i,a){typeof t.endArrow==`object`?nk(e,t,n,r,i,a,!1):t.endArrow?tk(e,t,n,r,i,a,!1):e.set(`startArrowShape`,null)}var ok,sk,ck,lk,uk=t((()=>{R(),CA(),ok=Math.sin,sk=Math.cos,ck=Math.atan2,lk=Math.PI}));function dk(e,t){var n=t.attr();for(var r in n){var i=n[r],a=Ck[r]?Ck[r]:r;a===`matrix`&&i?e.transform(i[0],i[1],i[3],i[4],i[6],i[7]):a===`lineDash`&&e.setLineDash?V(i)&&e.setLineDash(i):(a===`strokeStyle`||a===`fillStyle`?i=UO(e,t,i):a===`globalAlpha`&&(i*=e.globalAlpha),e[a]=i)}}function fk(e,t,n){for(var r=0;rb?y:b,E=y>b?1:y/b,D=y>b?b/y:1;t.translate(_,v),t.rotate(C),t.scale(E,D),t.arc(0,0,T,x,S,1-w),t.scale(1/E,1/D),t.rotate(-C),t.translate(-_,-v)}break;case`Z`:t.closePath();break;default:break}if(f===`Z`)s=c;else{var O=d.length;s=[d[O-2],d[O-1]]}}}}function yk(e,t){var n=e.get(`canvas`);n&&(t===`remove`&&(e._cacheCanvasBBox=e.get(`cacheCanvasBBox`)),e.get(`hasChanged`)||(e.set(`hasChanged`,!0),e.cfg.parent&&e.cfg.parent.get(`hasChanged`)||(n.refreshElement(e,t,n),n.get(`autoDraw`)&&n.draw())))}function bk(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var n=e.get(`cacheCanvasBBox`),r=n&&!!(n.width&&n.height),i=e.getCanvasBBox(),a=i&&!!(i.width&&i.height);r&&a?t=IO(n,i):r?t=n:a&&(t=i)}return t}function xk(e){if(!e.length)return null;var t=[],n=[],r=[],i=[];return H(e,function(e){var a=bk(e);a&&(t.push(a.minX),n.push(a.minY),r.push(a.maxX),i.push(a.maxY))}),{minX:Mn(t),minY:Mn(n),maxX:An(r),maxY:An(i)}}function Sk(e,t){return!e||!t||!FO(e,t)?null:{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}}var Ck,wk=t((()=>{J(),YO(),ek(),RO(),uk(),Ck={fill:`fillStyle`,stroke:`strokeStyle`,opacity:`globalAlpha`}})),Tk,Ek=t((()=>{R(),X(),CA(),wk(),J(),RO(),Tk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onCanvasChange=function(e){yk(this,e)},t.prototype.getShapeBase=function(){return SA},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),dk(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],n=[];H(e,function(e){var r=e.cfg.cacheCanvasBBox;r&&e.cfg.isInView&&(t.push(r.minX,r.maxX),n.push(r.minY,r.maxY))});var r=null;if(t.length){var i=Mn(t),a=An(t),o=Mn(n),s=An(n);r={minX:i,minY:o,x:i,y:o,maxX:a,maxY:s,width:a-i,height:s-o};var c=this.cfg.canvas;if(c){var l=c.getViewRange();this.set(`isInView`,FO(r,l))}}else this.set(`isInView`,!1);this.set(`cacheCanvasBBox`,r)},t.prototype.draw=function(e,t){var n=this.cfg.children,r=t?this.cfg.refresh:!0;n.length&&r&&(e.save(),dk(e,this),this._applyClip(e,this.getClip()),fk(e,n,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set(`hasChanged`,!1)},t.prototype.skipDraw=function(){this.set(`cacheCanvasBBox`,null),this.set(`hasChanged`,!1)},t}(cm)})),Dk,Ok=t((()=>{R(),X(),RO(),wk(),CA(),Ek(),Dk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return SA},t.prototype.getGroupBase=function(){return Tk},t.prototype.onCanvasChange=function(e){yk(this,e)},t.prototype.calculateBBox=function(){var e=this.get(`type`),t=this.getHitLineWidth(),n=pm(e)(this),r=t/2,i=n.x-r,a=n.y-r,o=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+t,height:n.height+t,maxX:o,maxY:s}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),dk(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var n=this.cfg.clipShape;if(t){if(this.cfg.refresh===!1){this.set(`hasChanged`,!1);return}if(!FO(t,this.getCanvasBBox())){this.set(`hasChanged`,!1),this.cfg.isInView&&this._afterDraw();return}}e.save(),dk(e,this),this._applyClip(e,n),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),n=FO(t,e);this.set(`isInView`,n),n?this.set(`cacheCanvasBBox`,t):this.set(`cacheCanvasBBox`,null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set(`hasChanged`,!1),this.set(`refresh`,null)},t.prototype.skipDraw=function(){this.set(`cacheCanvasBBox`,null),this.set(`isInView`,null),this.set(`hasChanged`,!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,i=t.strokeOpacity,a=t.fillOpacity;this.isFill()&&(!B(a)&&a!==1?(e.globalAlpha=a,this.fill(e),e.globalAlpha=r):this.fill(e)),this.isStroke()&&n>0&&(!B(i)&&i!==1&&(e.globalAlpha=i),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,n,r,i)},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(um)})),kk,Ak=t((()=>{R(),Ok(),RO(),kk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.attr(),o=a.x,s=a.y,c=a.r,l=i/2,u=NO(o,s,e,t);return r&&n?u<=c+l:r?u<=c:n?u>=c-l&&u<=c+l:!1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.r;e.beginPath(),e.arc(n,r,i,0,Math.PI*2,!1),e.closePath()},t}(Dk)}));function jk(e,t,n,r){return e/(n*n)+t/(r*r)}var Mk,Nk=t((()=>{R(),Ok(),Mk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.attr(),o=i/2,s=a.x,c=a.y,l=a.rx,u=a.ry,d=(e-s)*(e-s),f=(t-c)*(t-c);return r&&n?jk(d,f,l+o,u+o)<=1:r?jk(d,f,l,u)<=1:n?jk(d,f,l-o,u-o)>=1&&jk(d,f,l+o,u+o)<=1:!1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.rx,a=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(n,r,i,a,0,0,Math.PI*2,!1);else{var o=i>a?i:a,s=i>a?1:i/a,c=i>a?a/i:1;e.save(),e.translate(n,r),e.scale(s,c),e.arc(0,0,o,0,Math.PI*2),e.restore(),e.closePath()}},t}(Dk)}));function Pk(e){return e instanceof HTMLElement&&U(e.nodeName)&&e.nodeName.toUpperCase()===`CANVAS`}var Fk,Ik=t((()=>{R(),Ok(),RO(),Fk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(this.get(`toDraw`)===!0){var e=this.get(`canvas`);e?e.draw():this.createPath(this.get(`context`))}},t.prototype._setImage=function(e){var t=this,n=this.attrs;if(U(e)){var r=new Image;r.onload=function(){if(t.destroyed)return!1;t.attr(`img`,r),t.set(`loading`,!1),t._afterLoading();var e=t.get(`callback`);e&&e.call(t)},r.crossOrigin=`Anonymous`,r.src=e,this.set(`loading`,!0)}else e instanceof Image?(n.width||=e.width,n.height||=e.height):Pk(e)&&(n.width||=Number(e.getAttribute(`width`)),n.height||(n.height,Number(e.getAttribute(`height`))))},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t===`img`&&this._setImage(n)},t.prototype.createPath=function(e){if(this.get(`loading`)){this.set(`toDraw`,!0),this.set(`context`,e);return}var t=this.attr(),n=t.x,r=t.y,i=t.width,a=t.height,o=t.sx,s=t.sy,c=t.swidth,l=t.sheight,u=t.img;(u instanceof Image||Pk(u))&&(!B(o)&&!B(s)&&!B(c)&&!B(l)?e.drawImage(u,o,s,c,l,n,r,i,a):e.drawImage(u,n,r,i,a))},t}(Dk)}));function Lk(e,t,n,r,i,a,o){var s=Math.min(e,n),c=Math.max(e,n),l=Math.min(t,r),u=Math.max(t,r),d=i/2;return a>=s-d&&a<=c+d&&o>=l-d&&o<=u+d?Dm.pointToLine(e,t,n,r,a,o)<=i/2:!1}var Rk=t((()=>{yh()})),zk,Bk=t((()=>{R(),yh(),Ok(),Rk(),uk(),zk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,i=e.y2,a=e.startArrow,o=e.endArrow;a&&ik(this,e,r,i,t,n),o&&ak(this,e,t,n,r,i)},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){if(!n||!i)return!1;var a=this.attr(),o=a.x1,s=a.y1,c=a.x2,l=a.y2;return Lk(o,s,c,l,i,e,t)},t.prototype.createPath=function(e){var t=this.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.startArrow,s=t.endArrow,c={dx:0,dy:0},l={dx:0,dy:0};o&&o.d&&(c=rk(n,r,i,a,t.startArrow.d)),s&&s.d&&(l=rk(n,r,i,a,t.endArrow.d)),e.beginPath(),e.moveTo(n+c.dx,r+c.dy),e.lineTo(i-l.dx,a-l.dy)},t.prototype.afterDrawPath=function(e){var t=this.get(`startArrowShape`),n=this.get(`endArrowShape`);t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,i=e.y2;return Dm.length(t,n,r,i)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2;return Dm.pointAt(n,r,i,a,e)},t}(Dk)})),Vk,Hk,Uk=t((()=>{R(),J(),v_(),Ok(),RO(),wk(),Vk={circle:function(e,t,n){return[[`M`,e-n,t],[`A`,n,n,0,1,0,e+n,t],[`A`,n,n,0,1,0,e-n,t]]},square:function(e,t,n){return[[`M`,e-n,t-n],[`L`,e+n,t-n],[`L`,e+n,t+n],[`L`,e-n,t+n],[`Z`]]},diamond:function(e,t,n){return[[`M`,e-n,t],[`L`,e,t-n],[`L`,e+n,t],[`L`,e,t+n],[`Z`]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t+r],[`L`,e,t-r],[`L`,e+n,t+r],[`Z`]]},"triangle-down":function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t-r],[`L`,e+n,t-r],[`L`,e,t+r],[`Z`]]}},Hk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set(`paramsCache`,{})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),[`symbol`,`x`,`y`,`r`,`radius`].indexOf(t)!==-1&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return B(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e=this.attr(),n=e.x,r=e.y,i=e.symbol||`circle`,a=this._getR(e),o,s;if(z(i))o=i,s=o(n,r,a),s=fg(s);else{if(o=t.Symbols[i],!o)return console.warn(i+` marker is not supported.`),null;s=o(n,r,a)}return s},t.prototype.createPath=function(e){var t=this._getPath(),n=this.get(`paramsCache`);vk(this,e,{path:t},n)},t.Symbols=Vk,t}(Dk)}));function Wk(e,t,n){var r=Dh();return e.createPath(r),r.isPointInPath(t,n)}var Gk=t((()=>{X()}));function Kk(e){return Math.abs(e)0!=Kk(s[1]-n)>0&&Kk(t-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}var Yk,Xk=t((()=>{Yk=1e-6}));function Zk(e,t,n,r,i,a,o,s){var c=(Math.atan2(s-t,o-e)+Math.PI*2)%(Math.PI*2);if(ci)return!1;var l={x:e+n*Math.cos(c),y:t+n*Math.sin(c)};return NO(l.x,l.y,o,s)<=a/2}var Qk=t((()=>{RO()}));function $k(e){for(var t=!1,n=e.length,r=0;r_?g:_,C=g>_?1:g/_,w=g>_?_/g:1;Jc(x,x,nA(null,[[`t`,-m,-h],[`r`,-b],[`s`,1/C,1/w]])),a=Zk(0,0,S,v,y,t,x[0],x[1]);break;default:break}if(a)break}}return a}function tA(e){for(var t=e.length,n=[],r=[],i=[],a=0;a0&&r.push(i),{polygons:n,polylines:r}}var nA,rA,iA=t((()=>{R(),X(),yh(),yu(),fl(),RO(),Rk(),Qk(),nA=pu,rA=L({hasArc:$k,extractPolygons:tA,isPointInStroke:eA},fo)}));function aA(e,t,n){for(var r=!1,i=0;i{R(),yh(),J(),Ok(),v_(),wk(),Gk(),Xk(),iA(),uk(),oA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this._setPathArr(e.path),this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t===`path`&&this._setPathArr(n),this.setArrow()},t.prototype._setPathArr=function(e){this.attrs.path=fg(e);var t=rA.hasArc(e);this.set(`hasArc`,t),this.set(`paramsCache`,{}),this.set(`segments`,null),this.set(`curve`,null),this.set(`tCache`,null),this.set(`totalLength`,null)},t.prototype.getSegments=function(){var e=this.get(`segements`);return e||(e=t_(this.attr(`path`)),this.set(`segments`,e)),e},t.prototype.setArrow=function(){var e=this.attr(),t=e.startArrow,n=e.endArrow;if(t){var r=this.getStartTangent();ik(this,e,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){var r=this.getEndTangent();ak(this,e,r[0][0],r[0][1],r[1][0],r[1][1])}},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.getSegments(),o=this.get(`hasArc`),s=!1;if(n){var c=this.getTotalLength();s=rA.isPointInStroke(a,i,e,t,c)}if(!s&&r)if(o)s=Wk(this,e,t);else{var l=this.attr(`path`),u=rA.extractPolygons(l);s=aA(u.polygons,e,t)||aA(u.polylines,e,t)}return s},t.prototype.createPath=function(e){var t=this.attr(),n=this.get(`paramsCache`);vk(this,e,t,n)},t.prototype.afterDrawPath=function(e){var t=this.get(`startArrowShape`),n=this.get(`endArrowShape`);t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.get(`totalLength`);return B(e)?(this._calculateCurve(),this._setTcache(),this.get(`totalLength`)):e},t.prototype.getPoint=function(e){var t=this.get(`tCache`);t||=(this._calculateCurve(),this._setTcache(),this.get(`tCache`));var n,r,i=this.get(`curve`);if(!t||t.length===0)return i?{x:i[0][1],y:i[0][2]}:null;H(t,function(t,i){e>=t[0]&&e<=t[1]&&(n=(e-t[0])/(t[1]-t[0]),r=i)});var a=i[r];if(B(a)||B(r))return null;var o=a.length,s=i[r+1];return Gm.pointAt(a[o-2],a[o-1],s[1],s[2],s[3],s[4],s[5],s[6],n)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set(`curve`,rA.pathToCurve(e))},t.prototype._setTcache=function(){var e=0,t=0,n=[],r,i,a,o,s=this.get(`curve`);if(s){if(H(s,function(t,n){a=s[n+1],o=t.length,a&&(e+=Gm.length(t[o-2],t[o-1],a[1],a[2],a[3],a[4],a[5],a[6])||0)}),this.set(`totalLength`,e),e===0){this.set(`tCache`,[]);return}H(s,function(c,l){a=s[l+1],o=c.length,a&&(r=[],r[0]=t/e,i=Gm.length(c[o-2],c[o-1],a[1],a[2],a[3],a[4],a[5],a[6]),t+=i||0,r[1]=t/e,n.push(r))}),this.set(`tCache`,n)}},t.prototype.getStartTangent=function(){var e=this.getSegments(),t;if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},t.prototype.getEndTangent=function(){var e=this.getSegments(),t=e.length,n;if(t>1){var r=e[t-2].currentPoint,i=e[t-1].currentPoint,a=e[t-1].endTangent;n=[],a?(n.push([i[0]-a[0],i[1]-a[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},t}(Dk)}));function cA(e,t,n,r,i){var a=e.length;if(a<2)return!1;for(var o=0;o{Rk()})),uA,dA=t((()=>{R(),Ok(),lA(),Xk(),uA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.attr().points,o=!1;return n&&(o=cA(a,i,e,t,!0)),!o&&r&&(o=Jk(a,e,t)),o},t.prototype.createPath=function(e){var t=this.attr().points;if(!(t.length<2)){e.beginPath();for(var n=0;n{R(),yh(),J(),Ok(),lA(),uk(),fA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow(),[`points`].indexOf(t)!==-1&&this._resetCache()},t.prototype._resetCache=function(){this.set(`totalLength`,null),this.set(`tCache`,null)},t.prototype.setArrow=function(){var e=this.attr(),t=this.attrs,n=t.points,r=t.startArrow,i=t.endArrow,a=n.length,o=n[0][0],s=n[0][1],c=n[a-1][0],l=n[a-1][1];r&&ik(this,e,n[1][0],n[1][1],o,s),i&&ak(this,e,n[a-2][0],n[a-2][1],c,l)},t.prototype.isFill=function(){return!1},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){if(!n||!i)return!1;var a=this.attr().points;return cA(a,i,e,t,!1)},t.prototype.isStroke=function(){return!0},t.prototype.createPath=function(e){var t=this.attr(),n=t.points,r=t.startArrow,i=t.endArrow,a=n.length;if(!(n.length<2)){var o=n[0][0],s=n[0][1],c=n[a-1][0],l=n[a-1][1];if(r&&r.d){var u=rk(o,s,n[1][0],n[1][1],r.d);o+=u.dx,s+=u.dy}if(i&&i.d){var u=rk(n[a-2][0],n[a-2][1],c,l,i.d);c-=u.dx,l-=u.dy}e.beginPath(),e.moveTo(o,s);for(var d=0;d=t[0]&&e<=t[1]&&(r=(e-t[0])/(t[1]-t[0]),i=n)}),Dm.pointAt(t[i][0],t[i][1],t[i+1][0],t[i+1][1],r)},t.prototype._setTcache=function(){var e=this.attr().points;if(!(!e||e.length===0)){var t=this.getTotalLength();if(!(t<=0)){var n=0,r=[],i,a;H(e,function(o,s){e[s+1]&&(i=[],i[0]=n/t,a=Dm.length(o[0],o[1],e[s+1][0],e[s+1][1]),n+=a,i[1]=n/t,r.push(i))}),this.set(`tCache`,r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(Dk)}));function mA(e,t,n,r,i,a,o){var s=i/2;return PO(e-s,t-s,n,i,a,o)||PO(e+n-s,t-s,i,r,a,o)||PO(e+s,t+r-s,n,i,a,o)||PO(e-s,t+s,i,r,a,o)}var hA=t((()=>{RO()}));function gA(e,t,n,r,i,a,o,s){return a/2,Lk(e+i,t,e+n-i,t,a,o,s)||Lk(e+n,t+i,e+n,t+r-i,a,o,s)||Lk(e+n-i,t+r,e+i,t+r,a,o,s)||Lk(e,t+r-i,e,t+i,a,o,s)||Zk(e+n-i,t+i,i,1.5*Math.PI,2*Math.PI,a,o,s)||Zk(e+n-i,t+r-i,i,0,.5*Math.PI,a,o,s)||Zk(e+i,t+r-i,i,.5*Math.PI,Math.PI,a,o,s)||Zk(e+i,t+i,i,Math.PI,1.5*Math.PI,a,o,s)}var _A=t((()=>{Rk(),Qk()})),vA,yA=t((()=>{R(),Ok(),YO(),RO(),hA(),_A(),Gk(),vA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.attr(),o=a.x,s=a.y,c=a.width,l=a.height,u=a.radius;if(u){var d=!1;return n&&(d=gA(o,s,c,l,u,i,e,t)),!d&&r&&(d=Wk(this,e,t)),d}else{var f=i/2;if(r&&n)return PO(o-f,s-f,c+f,l+f,e,t);if(r)return PO(o,s,c,l,e,t);if(n)return mA(o,s,c,l,i,e,t)}},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.width,a=t.height,o=t.radius;if(e.beginPath(),o===0)e.rect(n,r,i,a);else{var s=WO(o),c=s[0],l=s[1],u=s[2],d=s[3];e.moveTo(n+c,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+a-u),u!==0&&e.arc(n+i-u,r+a-u,u,0,Math.PI/2),e.lineTo(n+d,r+a),d!==0&&e.arc(n+d,r+a-d,d,Math.PI/2,Math.PI),e.lineTo(n,r+c),c!==0&&e.arc(n+c,r+c,c,Math.PI,Math.PI*1.5),e.closePath()}},t}(Dk)})),bA,xA=t((()=>{R(),Ok(),RO(),X(),bA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,text:null,fontSize:12,fontFamily:`sans-serif`,fontStyle:`normal`,fontWeight:`normal`,fontVariant:`normal`,textAlign:`start`,textBaseline:`bottom`})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=Nh(e)},t.prototype._setText=function(e){var t=null;U(e)&&e.indexOf(` `)!==-1&&(t=e.split(` `)),this.set(`textArr`,t)},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t.startsWith(`font`)&&this._assembleFont(),t===`text`&&this._setText(n)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,n=e.fontSize*1;return t?t-n:n*.14},t.prototype._drawTextArr=function(e,t,n){var r=this.attrs,i=r.textBaseline,a=r.x,o=r.y,s=r.fontSize*1,c=this._getSpaceingY(),l=Ah(r.text,r.fontSize,r.lineHeight),u;H(t,function(t,r){u=o+r*(c+s)-l+s,i===`middle`&&(u+=l-s-(l-s)/2),i===`top`&&(u+=l-s),B(t)||(n?e.fillText(t,a,u):e.strokeText(t,a,u))})},t.prototype._drawText=function(e,t){var n=this.attr(),r=n.x,i=n.y,a=this.get(`textArr`);if(a)this._drawTextArr(e,a,t);else{var o=n.text;B(o)||(t?e.fillText(o,r,i):e.strokeText(o,r,i))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,i=t.strokeOpacity,a=t.fillOpacity;this.isStroke()&&n>0&&(!B(i)&&i!==1&&(e.globalAlpha=r),this.stroke(e)),this.isFill()&&(!B(a)&&a!==1?(e.globalAlpha=a,this.fill(e),e.globalAlpha=r):this.fill(e)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(Dk)})),SA=r({Base:()=>Dk,Circle:()=>kk,Ellipse:()=>Mk,Image:()=>Fk,Line:()=>zk,Marker:()=>Hk,Path:()=>oA,Polygon:()=>uA,Polyline:()=>fA,Rect:()=>vA,Text:()=>bA}),CA=t((()=>{Ok(),Ak(),Nk(),Ik(),Bk(),Uk(),sA(),dA(),pA(),yA(),xA()}));function wA(e,t){return t?xu(Su(t),e):e}function TA(e,t,n){var r=e.getTotalMatrix();if(r){var i=wA([t,n,1],r);return[i[0],i[1]]}return[t,n]}function EA(e,t,n){if(e.isCanvas&&e.isCanvas())return!0;if(!ss(e)||e.cfg.isInView===!1)return!1;if(e.cfg.clipShape){var r=TA(e,t,n),i=r[0],a=r[1];if(e.isClipped(i,a))return!1}var o=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=o.minX&&t<=o.maxX&&n>=o.minY&&n<=o.maxY}function DA(e,t,n){if(!EA(e,t,n))return null;for(var r=null,i=e.getChildren(),a=i.length-1;a>=0;a--){var o=i[a];if(o.isGroup())r=DA(o,t,n);else if(EA(o,t,n)){var s=o,c=TA(o,t,n),l=c[0],u=c[1];s.isInShape(l,u)&&(r=o)}if(r)break}return r}var OA=t((()=>{X()})),kA,AA=t((()=>{R(),X(),OA(),CA(),Ek(),RO(),wk(),kA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer=`canvas`,t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){(e===`attr`||e===`sort`||e===`changeSize`)&&(this.set(`refreshElements`,[this]),this.draw())},t.prototype.getShapeBase=function(){return SA},t.prototype.getGroupBase=function(){return Tk},t.prototype.getPixelRatio=function(){var e=this.get(`pixelRatio`)||MO();return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement(`canvas`),t=e.getContext(`2d`);return this.set(`context`,t),e},t.prototype.setDOMSize=function(t,n){e.prototype.setDOMSize.call(this,t,n);var r=this.get(`context`),i=this.get(`el`),a=this.getPixelRatio();i.width=a*t,i.height=a*n,a>1&&r.scale(a,a)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get(`context`),n=this.get(`el`);t.clearRect(0,0,n.width,n.height)},t.prototype.getShape=function(t,n){return this.get(`quickHit`)?DA(this,t,n):e.prototype.getShape.call(this,t,n,null)},t.prototype._getRefreshRegion=function(){var e=this.get(`refreshElements`),t=this.getViewRange(),n;return e.length&&e[0]===this?n=t:(n=xk(e),n&&(n.minX=Math.floor(n.minX),n.minY=Math.floor(n.minY),n.maxX=Math.ceil(n.maxX),n.maxY=Math.ceil(n.maxY),n.maxY+=1,this.get(`clipView`)&&(n=Sk(n,t)))),n},t.prototype.refreshElement=function(e){this.get(`refreshElements`).push(e)},t.prototype._clearFrame=function(){var e=this.get(`drawFrame`);e&&(aa(e),this.set(`drawFrame`,null),this.set(`refreshElements`,[]))},t.prototype.draw=function(){var e=this.get(`drawFrame`);this.get(`autoDraw`)&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get(`context`),t=this.get(`el`),n=this.getChildren();e.clearRect(0,0,t.width,t.height),dk(e,this),fk(e,n),this.set(`refreshElements`,[])},t.prototype._drawRegion=function(){var e=this.get(`context`),t=this.get(`refreshElements`),n=this.getChildren(),r=this._getRefreshRegion();r?(e.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.save(),e.beginPath(),e.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.clip(),dk(e,this),pk(this,n,r),fk(e,n,r),e.restore()):t.length&&hk(t),H(t,function(e){e.get(`hasChanged`)&&e.set(`hasChanged`,!1)}),this.set(`refreshElements`,[])},t.prototype._startDraw=function(){var e=this,t=this.get(`drawFrame`),n=this.get(`drawFrameCallback`);t||(t=ra(function(){e.get(`localRefresh`)?e._drawRegion():e._drawAll(),e.set(`drawFrame`,null),n&&n()}),this.set(`drawFrame`,t))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var e=this.get(`el`);e.width=0,e.height=0,e.parentNode.removeChild(e)},t}(om)})),jA=r({AbstractCanvas:()=>om,AbstractGroup:()=>cm,AbstractShape:()=>um,Base:()=>us,Canvas:()=>kA,Event:()=>$o,Group:()=>Tk,PathUtil:()=>fo,Shape:()=>SA,assembleFont:()=>Nh,getArcParams:()=>$O,getBBoxMethod:()=>pm,getOffScreenContext:()=>Dh,getTextHeight:()=>Ah,invert:()=>Su,isAllowCapture:()=>ss,multiplyVec2:()=>xu,registerBBox:()=>fm,registerEasing:()=>zp,version:()=>MA}),MA,NA=t((()=>{CA(),X(),AA(),Ek(),ek(),MA=`0.5.12`})),PA=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.sectorPathUpdate=void 0;var n=(R(),e(F)),r=(NA(),e(jA)),i=(J(),e(q)),a=oE();function o(e,t){var n,a=(0,r.getArcParams)(e,t),o=a.startAngle,s=a.endAngle;return!(0,i.isNumberEqual)(o,-Math.PI*.5)&&o<-Math.PI*.5&&(o+=Math.PI*2),!(0,i.isNumberEqual)(s,-Math.PI*.5)&&s<-Math.PI*.5&&(s+=Math.PI*2),t[5]===0&&(n=[s,o],o=n[0],s=n[1]),(0,i.isNumberEqual)(o,Math.PI*1.5)&&(o=Math.PI*-.5),(0,i.isNumberEqual)(s,Math.PI*-.5)&&(s=Math.PI*1.5),{startAngle:o,endAngle:s}}function s(e){var t;return e[0]===`M`||e[0]===`L`?t=[e[1],e[2]]:(e[0]===`a`||e[0]===`A`||e[0]===`C`)&&(t=[e[e.length-2],e[e.length-1]]),t}function c(e){var t,n,r,a=e.filter(function(e){return e[0]===`A`||e[0]===`a`});if(a.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var c=a[0],l=a.length>1?a[1]:a[0],u=e.indexOf(c),d=e.indexOf(l),f=s(e[u-1]),p=s(e[d-1]),m=o(f,c),h=m.startAngle,g=m.endAngle,_=o(p,l),v=_.startAngle,y=_.endAngle;(0,i.isNumberEqual)(h,v)&&(0,i.isNumberEqual)(g,y)?(n=h,r=g):(n=Math.min(h,v),r=Math.max(g,y));var b=c[1],x=a[a.length-1][1];return b{Object.defineProperty(t,`__esModule`,{value:!0}),t.waveIn=void 0;var n=(R(),e(F)),r=lE();function i(e,t,i){var a=(0,r.getCoordinateClipCfg)(i.coordinate,20),o=a.type,s=a.startState,c=a.endState,l=e.setClip({type:o,attrs:s});l.animate(c,(0,n.__assign)((0,n.__assign)({},t),{callback:function(){e&&!e.get(`destroyed`)&&e.set(`clipShape`,null),l.remove(!0)}}))}t.waveIn=i})),IA=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.zoomOut=t.zoomIn=void 0;var n=(R(),e(F)),r=(yu(),e(vu)),i=(J(),e(q));function a(e,t,o){if(e.isGroup())(0,i.each)(e.getChildren(),function(e){a(e,t,o)});else{var s=e.getBBox(),c=(s.minX+s.maxX)/2,l=(s.minY+s.maxY)/2;if(e.applyToMatrix([c,l,1]),o===`zoomIn`){var u=r.ext.transform(e.getMatrix(),[[`t`,-c,-l],[`s`,.01,.01],[`t`,c,l]]);e.setMatrix(u),e.animate({matrix:r.ext.transform(e.getMatrix(),[[`t`,-c,-l],[`s`,100,100],[`t`,c,l]])},t)}else e.animate({matrix:r.ext.transform(e.getMatrix(),[[`t`,-c,-l],[`s`,.01,.01],[`t`,c,l]])},(0,n.__assign)((0,n.__assign)({},t),{callback:function(){e.remove(!0)}}))}}function o(e,t,n){a(e,t,`zoomIn`)}t.zoomIn=o;function s(e,t,n){a(e,t,`zoomOut`)}t.zoomOut=s})),LA=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=EO(),n=OO(),r=kO(),i=AO(),a=jO(),o=PA(),s=FA(),c=IA(),l=SO();(0,l.registerAnimation)(`fade-in`,t.fadeIn),(0,l.registerAnimation)(`fade-out`,t.fadeOut),(0,l.registerAnimation)(`grow-in-x`,n.growInX),(0,l.registerAnimation)(`grow-in-xy`,n.growInXY),(0,l.registerAnimation)(`grow-in-y`,n.growInY),(0,l.registerAnimation)(`scale-in-x`,a.scaleInX),(0,l.registerAnimation)(`scale-in-y`,a.scaleInY),(0,l.registerAnimation)(`wave-in`,s.waveIn),(0,l.registerAnimation)(`zoom-in`,c.zoomIn),(0,l.registerAnimation)(`zoom-out`,c.zoomOut),(0,l.registerAnimation)(`position-update`,i.positionUpdate),(0,l.registerAnimation)(`sector-path-update`,o.sectorPathUpdate),(0,l.registerAnimation)(`path-in`,r.pathIn)})),RA=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var t={100:`#000`,95:`#0D0D0D`,85:`#262626`,65:`#595959`,45:`#8C8C8C`,25:`#BFBFBF`,15:`#D9D9D9`,6:`#F0F0F0`},n={100:`#FFFFFF`,95:`#F2F2F2`,85:`#D9D9D9`,65:`#A6A6A6`,45:`#737373`,25:`#404040`,15:`#262626`,6:`#0F0F0F`},r=[`#5B8FF9`,`#5AD8A6`,`#5D7092`,`#F6BD16`,`#E86452`,`#6DC8EC`,`#945FB9`,`#FF9845`,`#1E9493`,`#FF99C3`],i=[`#5B8FF9`,`#CDDDFD`,`#5AD8A6`,`#CDF3E4`,`#5D7092`,`#CED4DE`,`#F6BD16`,`#FCEBB9`,`#E86452`,`#F8D0CB`,`#6DC8EC`,`#D3EEF9`,`#945FB9`,`#DECFEA`,`#FF9845`,`#FFE0C7`,`#1E9493`,`#BBDEDE`,`#FF99C3`,`#FFE0ED`],a=[`#B8E1FF`,`#9AC5FF`,`#7DAAFF`,`#5B8FF9`,`#3D76DD`,`#085EC0`,`#0047A5`,`#00318A`,`#001D70`];e.createDarkStyleSheet=function(e){e===void 0&&(e={});var o=e.backgroundColor,s=o===void 0?`#141414`:o,c=e.subColor,l=c===void 0?`rgba(255,255,255,0.05)`:c,u=e.paletteQualitative10,d=u===void 0?r:u,f=e.paletteQualitative20,p=f===void 0?i:f,m=e.paletteSemanticRed,h=m===void 0?`#F4664A`:m,g=e.paletteSemanticGreen,_=g===void 0?`#30BF78`:g,v=e.paletteSemanticYellow,y=v===void 0?`#FAAD14`:v,b=e.paletteSequence,x=b===void 0?a:b,S=e.fontFamily,C=S===void 0?`"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`:S,w=e.brandColor;return{backgroundColor:s,brandColor:w===void 0?d[0]:w,subColor:l,paletteQualitative10:d,paletteQualitative20:p,paletteSemanticRed:h,paletteSemanticGreen:_,paletteSemanticYellow:y,paletteSequence:x,fontFamily:C,axisLineBorderColor:n[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:n[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:`normal`,axisTitleSpacing:12,axisTickLineBorderColor:n[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:n[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:n[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:`normal`,axisLabelOffset:8,axisGridBorderColor:n[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:n[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:`normal`,legendMarkerColor:r[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:n[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:`normal`,legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:n[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:n[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:n[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:n[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:n[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:`normal`,sliderHandlerFillColor:t[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:t[25],annotationArcBorderColor:n[15],annotationArcBorder:1,annotationLineBorderColor:n[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:n[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:`normal`,annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:n[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:n[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:`#1f1f1f`,tooltipContainerFillOpacity:.95,tooltipContainerShadow:`0px 2px 4px rgba(0,0,0,.5)`,tooltipContainerBorderRadius:3,tooltipTextFillColor:n[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:`bold`,labelFillColor:n[65],labelFillColorDark:`#2c3542`,labelFillColorLight:`#ffffff`,labelFontSize:12,labelLineHeight:12,labelFontWeight:`normal`,labelBorderColor:null,labelBorder:0,innerLabelFillColor:t[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:`normal`,innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:n[65],overflowLabelFillColorDark:`#2c3542`,overflowLabelFillColorLight:`#ffffff`,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:`normal`,overflowLabelBorderColor:t[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:n[25],cSliderRailHieght:16,cSliderBackgroundFillColor:`#416180`,cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:`#5B8FF9`,cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:`#F7F7F7`,cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:`#FFF`,cSliderHandlerBorderColor:`#BFBFBF`,cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:`#fff`,cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:`normal`,cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:`rgba(255,255,255,0.65)`,scrollbarThumbFillColor:`rgba(0,0,0,0.35)`,scrollbarThumbHighlightFillColor:`rgba(0,0,0,0.45)`,pointFillColor:r[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:t[100],pointBorderOpacity:1,pointActiveBorderColor:n[100],pointSelectedBorder:2,pointSelectedBorderColor:n[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:r[0],hollowPointBorderOpacity:.95,hollowPointFillColor:t[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:n[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:n[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:r[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:r[0],areaFillOpacity:.25,areaActiveFillColor:r[0],areaActiveFillOpacity:.5,areaSelectedFillColor:r[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:r[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:n[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:n[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:r[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:n[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:n[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:r[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:t[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:n[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:n[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},e.antvDark=(0,e.createDarkStyleSheet)()})),zA=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.antvDark=e.antvLight=e.createThemeByStyleSheet=void 0;var t=RA();Object.defineProperty(e,`antvDark`,{enumerable:!0,get:function(){return t.antvDark}});var n=BD();Object.defineProperty(e,`antvLight`,{enumerable:!0,get:function(){return n.antvLight}});var r=zD();Object.defineProperty(e,`createThemeByStyleSheet`,{enumerable:!0,get:function(){return r.createThemeByStyleSheet}});var i=UD();(0,i.registerTheme)(`dark`,(0,r.createThemeByStyleSheet)(t.antvDark)),(0,i.registerTheme)(`default`,(0,r.createThemeByStyleSheet)(n.antvLight)),(0,i.registerTheme)(`light`,(0,r.createThemeByStyleSheet)(n.antvLight))})),BA=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e,a()):typeof define==`function`&&define.amd?define([`exports`,`react`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.ReactErrorBoundary={},n.React))})(e,(function(e,t){function n(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var r=n(t);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),e.length!==t.length||e.some(function(e,n){return!Object.is(e,t[n])})},o={error:null},s=function(e){i(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.state=o,t.updatedWithError=!1,t.resetErrorBoundary=function(){var e,n=[...arguments];t.props.onReset==null||(e=t.props).onReset.apply(e,n),t.reset()},t}t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.updatedWithError=!1,this.setState(o)},n.componentDidCatch=function(e,t){var n,r;(n=(r=this.props).onError)==null||n.call(r,e,t)},n.componentDidUpdate=function(e){var t=this.state.error,n=this.props.resetKeys;if(t!==null&&!this.updatedWithError){this.updatedWithError=!0;return}if(t!==null&&a(e.resetKeys,n)){var r,i;(r=(i=this.props).onResetKeysChange)==null||r.call(i,e.resetKeys,n),this.reset()}},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,i=t.FallbackComponent,a=t.fallback;if(e!==null){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.default.isValidElement(a))return a;if(typeof n==`function`)return n(o);if(i)return r.default.createElement(i,o);throw Error(`react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop`)}return this.props.children},t}(r.default.Component);function c(e,t){function n(n){return r.default.createElement(s,t,r.default.createElement(e,n))}return n.displayName=`withErrorBoundary(`+(e.displayName||e.name||`Unknown`)+`)`,n}function l(e){var t=r.default.useState(null),n=t[0],i=t[1];if(e)throw e;if(n)throw n;return i}e.ErrorBoundary=s,e.useErrorHandler=l,e.withErrorBoundary=c,Object.defineProperty(e,`__esModule`,{value:!0})}))})),VA=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.setDefaultErrorFallback=e.ErrorFallback=void 0;var n=t(a()),r=BA(),i=function(e){var t=e.error;return n.default.createElement(`div`,{className:`bizcharts-error`,role:`alert`},n.default.createElement(`p`,null,`BizCharts something went wrong:`),n.default.createElement(`pre`,null,t.message))};function o(e){return i(e)}e.ErrorFallback=o,e.setDefaultErrorFallback=function(e){i=e},e.default=r.ErrorBoundary})),HA=i((t=>{var n=t&&t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=t&&t.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=t&&t.__exportStar||function(e,t){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,`__esModule`,{value:!0}),t.setDefaultErrorFallback=t.VERSION=t.GLOBAL=t.setGlobal=t.registerTickMethod=t.getScale=t.registerScale=void 0;var o=i(YE()),s=i(CD()),c=SO(),l=(px(),e(fx));Object.defineProperty(t,`registerScale`,{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(t,`getScale`,{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(t,`registerTickMethod`,{enumerable:!0,get:function(){return l.registerTickMethod}});var u=CO();Object.defineProperty(t,`setGlobal`,{enumerable:!0,get:function(){return u.setGlobal}}),Object.defineProperty(t,`GLOBAL`,{enumerable:!0,get:function(){return u.GLOBAL}}),TO(),LA(),a(zA(),t),(0,c.registerEngine)(`canvas`,o),(0,c.registerEngine)(`svg`,s),a(SO(),t),t.VERSION=`4.1.22`;var d=o.Canvas.prototype.getPointByClient;o.Canvas.prototype.getPointByClient=function(e,t){var n=d.call(this,e,t),r=this.get(`el`).getBoundingClientRect(),i=this.get(`width`),a=this.get(`height`),o=r.width,s=r.height;return{x:n.x/(o/i),y:n.y/(s/a)}};var f=VA();Object.defineProperty(t,`setDefaultErrorFallback`,{enumerable:!0,get:function(){return f.setDefaultErrorFallback}})})),UA=i((e=>{var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||e.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,t),s&&e.apply(i,a)}}e.default=t})),GA,KA=t((()=>{GA=[]})),qA,JA=t((()=>{KA(),qA=function(){return GA.some(function(e){return e.activeTargets.length>0})}})),YA,XA=t((()=>{KA(),YA=function(){return GA.some(function(e){return e.skippedTargets.length>0})}})),ZA,QA,$A=t((()=>{ZA=`ResizeObserver loop completed with undelivered notifications.`,QA=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ZA}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ZA),window.dispatchEvent(e)}})),ej,tj=t((()=>{(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(ej||={})})),nj,rj=t((()=>{nj=function(e){return Object.freeze(e)}})),ij,aj=t((()=>{rj(),ij=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,nj(this)}return e}()})),oj,sj=t((()=>{rj(),oj=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,nj(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}()})),cj,lj,uj,dj,fj=t((()=>{cj=function(e){return e instanceof SVGElement&&`getBBox`in e},lj=function(e){if(cj(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},uj=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},dj=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1}})),pj,mj=t((()=>{pj=typeof window<`u`?window:{}})),hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj=t((()=>{tj(),aj(),sj(),fj(),rj(),mj(),hj=new WeakMap,gj=/auto|scroll/,_j=/^tb|vertical/,vj=/msie|trident/i.test(pj.navigator&&pj.navigator.userAgent),yj=function(e){return parseFloat(e||`0`)},bj=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ij((n?t:e)||0,(n?e:t)||0)},xj=nj({devicePixelContentBoxSize:bj(),borderBoxSize:bj(),contentBoxSize:bj(),contentRect:new oj(0,0,0,0)}),Sj=function(e,t){if(t===void 0&&(t=!1),hj.has(e)&&!t)return hj.get(e);if(lj(e))return hj.set(e,xj),xj;var n=getComputedStyle(e),r=cj(e)&&e.ownerSVGElement&&e.getBBox(),i=!vj&&n.boxSizing===`border-box`,a=_j.test(n.writingMode||``),o=!r&&gj.test(n.overflowY||``),s=!r&&gj.test(n.overflowX||``),c=r?0:yj(n.paddingTop),l=r?0:yj(n.paddingRight),u=r?0:yj(n.paddingBottom),d=r?0:yj(n.paddingLeft),f=r?0:yj(n.borderTopWidth),p=r?0:yj(n.borderRightWidth),m=r?0:yj(n.borderBottomWidth),h=r?0:yj(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:yj(n.width)-S-x,T=r?r.height:yj(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=nj({devicePixelContentBoxSize:bj(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:bj(E,D,a),contentBoxSize:bj(w,T,a),contentRect:new oj(d,c,w,T)});return hj.set(e,O),O},Cj=function(e,t,n){var r=Sj(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case ej.DEVICE_PIXEL_CONTENT_BOX:return o;case ej.BORDER_BOX:return i;default:return a}}})),Tj,Ej=t((()=>{wj(),rj(),Tj=function(){function e(e){var t=Sj(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=nj([t.borderBoxSize]),this.contentBoxSize=nj([t.contentBoxSize]),this.devicePixelContentBoxSize=nj([t.devicePixelContentBoxSize])}return e}()})),Dj,Oj=t((()=>{fj(),Dj=function(e){if(lj(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t}})),kj,Aj=t((()=>{KA(),Ej(),Oj(),wj(),kj=function(){var e=1/0,t=[];GA.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Tj(t.target),i=Dj(t.target);r.push(n),t.lastReportedSize=Cj(t.target,t.observedBox),i{KA(),Oj(),jj=function(e){GA.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(Dj(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})}})),Nj,Pj=t((()=>{JA(),XA(),$A(),Aj(),Mj(),Nj=function(){var e=0;for(jj(e);qA();)e=kj(),jj(e);return YA()&&QA(),e>0}})),Fj,Ij,Lj,Rj,zj=t((()=>{Ij=[],Lj=function(){return Ij.splice(0).forEach(function(e){return e()})},Rj=function(e){if(!Fj){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Lj()}).observe(n,{characterData:!0}),Fj=function(){n.textContent=`${t?t--:t++}`}}Ij.push(e),Fj()}})),Bj,Vj=t((()=>{zj(),Bj=function(e){Rj(function(){requestAnimationFrame(e)})}})),Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj=t((()=>{Pj(),mj(),Vj(),Hj=0,Uj=function(){return!!Hj},Wj=250,Gj={attributes:!0,characterData:!0,childList:!0,subtree:!0},Kj=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],qj=function(e){return e===void 0&&(e=0),Date.now()+e},Jj=!1,Yj=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Wj),!Jj){Jj=!0;var n=qj(e);Bj(function(){var r=!1;try{r=Nj()}finally{if(Jj=!1,e=n-qj(),!Uj())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Gj)};document.body?t():pj.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Kj.forEach(function(t){return pj.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Kj.forEach(function(t){return pj.removeEventListener(t,e.listener,!0)}),!0)},e}()),Xj=function(e){!Hj&&e>0&&Yj.start(),Hj+=e,!Hj&&Yj.stop()}})),Qj,$j,eM=t((()=>{tj(),wj(),fj(),Qj=function(e){return!cj(e)&&!dj(e)&&getComputedStyle(e).display===`inline`},$j=function(){function e(e,t){this.target=e,this.observedBox=t||ej.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Cj(this.target,this.observedBox,!0);return Qj(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}()})),tM,nM=t((()=>{tM=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}()})),rM,iM,aM,oM=t((()=>{Zj(),eM(),nM(),KA(),rM=new WeakMap,iM=function(e,t){for(var n=0;n=0&&(i&&GA.splice(GA.indexOf(n),1),n.observationTargets.splice(r,1),Xj(-1))},e.disconnect=function(e){var t=this,n=rM.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}()})),sM,cM=t((()=>{oM(),fj(),sM=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);aM.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!uj(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);aM.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!uj(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);aM.unobserve(this,e)},e.prototype.disconnect=function(){aM.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}()})),lM=r({ResizeObserver:()=>sM,ResizeObserverEntry:()=>Tj,ResizeObserverSize:()=>ij}),uM=t((()=>{cM(),Ej(),aj()})),dM=i((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,`__esModule`,{value:!0});var t={};e.default=(function(e){return e||=`g`,t[e]?t[e]+=1:t[e]=1,e+t[e]})})),hM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(function(e){var t=typeof e;return e!==null&&t===`object`||t===`function`})})),gM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=vE(),n=hM();function r(e,r){if(e){var i;if(t.default(e))for(var a=0,o=e.length;a{Object.defineProperty(e,`__esModule`,{value:!0});var t=_E();e.default=(function(e){return t.default(e,`Function`)})})),vM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(e){return typeof e==`object`&&!!e}})),yM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(e){return e!==null&&typeof e!=`function`&&isFinite(e.length)}})),bM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=_E();e.default=(function(e){return t.default(e,`String`)})})),xM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=vM(),n=yM(),r=bM(),i=function(e,a){if(e===a)return!0;if(!e||!a||r.default(e)||r.default(a))return!1;if(n.default(e)||n.default(a)){if(e.length!==a.length)return!1;for(var o=!0,s=0;s{var n=!1,r=function(){};if(n){var i=function(e,t){var n=arguments.length;t=Array(n>1?n-1:0);for(var r=1;r2?r-2:0);for(var a=2;a{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(gM()),r=t(vE()),i=t(hM());function a(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function o(e){return(0,r.default)(e)?e.length:(0,i.default)(e)?Object.keys(e).length:0}function s(e,t){if(a(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t||(0,r.default)(e)!==(0,r.default)(t)||o(e)!==o(t))return!1;var i=!0;return(0,n.default)(e,function(e,n){return a(e,t[n])?!0:(i=!1,i)}),i}e.default=s})),wM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(gM()),r=t(bM());e.default=function(e,t){var i={};return(0,n.default)(e,function(e,n){var a=!1;t.forEach(function(e){((0,r.default)(e)&&e===n||e instanceof RegExp&&n.match(e))&&(a=!0)}),a||(i[n]=e)}),i}})),TM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=gM().default})),EM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(vE()),r=t(TM());e.default=function(e){var t=[],i=function(e){if(t.push(e),t.includes(e)||typeof e!=`object`||!e)return e;var a;if((0,n.default)(e)){a=[];for(var o=0,s=e.length;o{Object.defineProperty(e,`__esModule`,{value:!0}),e.REACT_PIVATE_PROPS=void 0,e.REACT_PIVATE_PROPS=[`children`,`hooks`,`ref`],e.default={}})),OM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.TOOLTIP_EVENT=e.ANNOTATION_EVENT_TARGET=e.AXIS_EVENT_TARGET=e.LEGEND_EVENT=e.GEOM_NAME=e.LEGEND_EVENT_TARGETS=e.LIFE_CIRCLE_NAMES=e.MOBILE_EVENT_NAMES=e.DRAG_EVENT_NAMES=e.pickEventName=e.BASE_EVENT_NAMES=void 0;var n=t(TM());e.BASE_EVENT_NAMES=[`mousedown`,`mouseup`,`dblclick`,`mouseenter`,`mouseout`,`mouseover`,`mousemove`,`mouseleave`,`contextmenu`,`click`];var r=RegExp(`^on(.*)(?=(${[`mousedown`,`mouseup`,`dblclick`,`mouseenter`,`mouseout`,`mouseover`,`mousemove`,`mouseleave`,`contextmenu`,`click`,`show`,`hide`,`change`].map(function(e){return e.replace(/^\S/,function(e){return e.toUpperCase()})}).join(`|`)}))`);e.pickEventName=function(e){var t=[];return(0,n.default)(e,function(e,n){var i=n.match(/^on(.*)/);if(i){var a=n.match(r);if(a){var o=a[1].replace(/([A-Z])/g,`-$1`).toLowerCase();o=o.replace(`column`,`interval`),o?t.push([n,`${o.replace(`-`,``)}:${a[2].toLowerCase()}`]):t.push([n,a[2].toLowerCase()])}else t.push([n,i[1].toLowerCase()])}}),t},e.DRAG_EVENT_NAMES=[`dragstart`,`drag`,`dragend`,`dragover`,`dragenter`,`dragleave`,`drop`],e.MOBILE_EVENT_NAMES=[`touchstart`,`touchmove`,`touchend`],e.LIFE_CIRCLE_NAMES=[`beforerender`,`afterrender`,`beforepaint`,`afterpaint`,`beforechangedata`,`afterchangedata`,`beforeclear`,`afterclear`,`beforedestroy`],e.LEGEND_EVENT_TARGETS=[`legend`,`legend-title`,`legend-item`,`legend-item-name`,`legend-item-Maker`,`legend-item-value`],e.GEOM_NAME=[`line`,`area`,`point`,`interval`,`polygon`,`edge`,`schema`],e.LEGEND_EVENT=[`legend:valuechanged`],e.AXIS_EVENT_TARGET=[`axis-label`,`axis-line`,`axis-tick`,`axis-title`],e.ANNOTATION_EVENT_TARGET=[`annotation`,`annotation-line`,`annotation-line-text`,`annotation-image`,`annotation-region`,`annotation-text`],e.TOOLTIP_EVENT=[`tooltip:show`,`tooltip:hide`,`tooltip:change`]})),kM=i((t=>{var n=t&&t.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=t&&t.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var n=t&&t.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=t&&t.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&t!==this.chartHelper.chart.width||n>=0&&n!==this.chartHelper.chart.height){var r=t||this.chartHelper.chart.width,i=n||this.chartHelper.chart.height;this.chartHelper.chart.changeSize(r,i),this.chartHelper.chart.emit(`resize`)}else this.chartHelper.render();else this.chartHelper.render()},t.prototype.componentWillUnmount=function(){this.chartHelper.destory(),this.resizeObserver.unobserve(this.props.container)},t.prototype.getG2Instance=function(){return this.chartHelper.chart},t.prototype.render=function(){var e,t=this,n=(e=this.props,e.placeholder),i=e.data,a=e.errorContent,o=this.props.ErrorBoundaryProps;if((i===void 0||i.length===0)&&n){this.chartHelper.destory();var s=n===!0?l.default.createElement(`div`,{style:{position:`relative`,top:`48%`,color:`#aaa`,textAlign:`center`}},`暂无数据`):n;return l.default.createElement(p.default,r({},o),s)}return this.chartHelper.update(this.props),o=a?r({fallback:a},o):{FallbackComponent:p.ErrorFallback},l.default.createElement(p.default,r({},o,{key:this.chartHelper.key,onError:function(){var e=[...arguments];t.isError=!0,(0,y.isFunction)(o.onError)&&o.onError.apply(o,e)},onReset:function(){var e=[...arguments];t.isError=!1,(0,y.isFunction)(o.onReset)&&o.onReset.apply(o,e)},resetKeys:[this.chartHelper.key],fallback:a}),l.default.createElement(h.default.Provider,{value:this.chartHelper},l.default.createElement(g.default.Provider,{value:this.chartHelper.chart},l.default.createElement(_.default.Provider,{value:this.chartHelper.extendGroup},this.props.children))))},t.defaultProps={placeholder:!1,visible:!0,interactions:[],filter:[]},t}(l.default.Component);t.default=(0,m.default)(b)})),jM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTranslateDirection=e.directionToPosition=void 0;var t=Y();function n(e,n,r){return r===t.DIRECTION.TOP?[e.minX+e.width/2-n.width/2,e.minY]:r===t.DIRECTION.BOTTOM?[e.minX+e.width/2-n.width/2,e.maxY-n.height]:r===t.DIRECTION.LEFT?[e.minX,e.minY+e.height/2-n.height/2]:r===t.DIRECTION.RIGHT?[e.maxX-n.width,e.minY+e.height/2-n.height/2]:r===t.DIRECTION.TOP_LEFT||r===t.DIRECTION.LEFT_TOP?[e.tl.x,e.tl.y]:r===t.DIRECTION.TOP_RIGHT||r===t.DIRECTION.RIGHT_TOP?[e.tr.x-n.width,e.tr.y]:r===t.DIRECTION.BOTTOM_LEFT||r===t.DIRECTION.LEFT_BOTTOM?[e.bl.x,e.bl.y-n.height]:r===t.DIRECTION.BOTTOM_RIGHT||r===t.DIRECTION.RIGHT_BOTTOM?[e.br.x-n.width,e.br.y-n.height]:[0,0]}e.directionToPosition=n;function r(e,n){if(n.isTransposed)switch(e){case t.DIRECTION.BOTTOM:return t.DIRECTION.LEFT;case t.DIRECTION.LEFT:return t.DIRECTION.BOTTOM;case t.DIRECTION.RIGHT:return t.DIRECTION.TOP;case t.DIRECTION.TOP:return t.DIRECTION.RIGHT}return e}function i(e){return e===t.DIRECTION.LEFT?t.DIRECTION.RIGHT:e===t.DIRECTION.RIGHT?t.DIRECTION.LEFT:e}function a(e){return e===t.DIRECTION.TOP?t.DIRECTION.BOTTOM:e===t.DIRECTION.BOTTOM?t.DIRECTION.TOP:e}function o(e,t){var n=t.matrix[0],r=t.matrix[4],o=e;return n<0&&(o=i(o)),r<0&&(o=a(o)),o}function s(e,t){var n=e;return t.isReflect(`x`)&&(n=i(n)),t.isReflect(`y`)&&(n=a(n)),n}function c(e,t){var n=e;return n=r(n,t),n=o(n,t),n=s(n,t),n}e.getTranslateDirection=c})),MM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=rE(),o=aE(),s=cE(),c=jM(),l=sE(),u=xO(),d=uE(),f=pE();function p(e,t){return(0,r.isBoolean)(e)?e===!1?!1:{}:(0,r.get)(e,[t],e)}function m(e){return(0,r.get)(e,`position`,i.DIRECTION.BOTTOM)}t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;return n.container=n.view.getLayer(i.LAYER.FORE).addGroup(),n}return Object.defineProperty(t.prototype,`name`,{get:function(){return`legend`},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this;this.layoutBBox=this.view.viewBBox,(0,r.each)(this.components,function(t){var n=t.component,r=t.direction,i=(0,u.getLegendLayout)(r),a=n.get(`maxWidthRatio`),o=n.get(`maxHeightRatio`),l=e.getCategoryLegendSizeCfg(i,a,o),d=n.get(`maxWidth`),f=n.get(`maxHeight`);n.update({maxWidth:Math.min(l.maxWidth,d||0),maxHeight:Math.min(l.maxHeight,f||0)});var p=n.get(`padding`),m=n.getLayoutBBox(),h=new s.BBox(m.x,m.y,m.width,m.height).expand(p),g=(0,c.directionToPosition)(e.view.viewBBox,h,r),_=g[0],v=g[1],y=(0,c.directionToPosition)(e.layoutBBox,h,r),b=y[0],x=y[1],S=0,C=0;r.startsWith(`top`)||r.startsWith(`bottom`)?(S=_,C=x):(S=b,C=v),n.setLocation({x:S+p[3],y:C+p[0]}),e.layoutBBox=e.layoutBBox.cut(h,r)})},t.prototype.update=function(){var e=this;this.option=this.view.getOptions().legends;var t={},n=function(n,i,a){var o=e.getId(a.field),s=e.getComponentById(o);if(s){var c=void 0,u=p(e.option,a.field);u!==!1&&((0,r.get)(u,`custom`)?c=e.getCategoryCfg(n,i,a,u,!0):a.isLinear?c=e.getContinuousCfg(n,i,a,u):a.isCategory&&(c=e.getCategoryCfg(n,i,a,u))),c&&((0,l.omit)(c,[`container`]),s.direction=m(u),s.component.update(c),t[o]=!0)}else{var d=e.createFieldLegend(n,i,a);d&&(d.component.init(),e.components.push(d),t[o]=!0)}};if((0,r.get)(this.option,`custom`)){var a=`global-custom`,o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,l.omit)(s,[`container`]),o.component.update(s),t[a]=!0}else{var c=this.createCustomLegend(void 0,void 0,void 0,this.option);if(c){c.init();var u=i.LAYER.FORE,d=m(this.option);this.components.push({id:a,component:c,layer:u,direction:d,type:i.COMPONENT_TYPE.LEGEND,extra:void 0}),t[a]=!0}}}else this.loopLegends(n);var f=[];(0,r.each)(this.getComponents(),function(e){t[e.id]?f.push(e):e.component.destroy()}),this.components=f},t.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},t.prototype.getGeometries=function(e){var t=this,n=e.geometries;return(0,r.each)(e.views,function(e){n=n.concat(t.getGeometries(e))}),n},t.prototype.loopLegends=function(e){if(this.view.getRootView()===this.view){var t=this.getGeometries(this.view),n={};(0,r.each)(t,function(t){var i=t.getGroupAttributes();(0,r.each)(i,function(r){var i=r.getScale(r.type);!i||i.type===`identity`||n[i.field]||(e(t,r,i),n[i.field]=!0)})})}},t.prototype.createFieldLegend=function(e,t,n){var a,o=p(this.option,n.field),s=i.LAYER.FORE,c=m(o);if(o!==!1&&((0,r.get)(o,`custom`)?a=this.createCustomLegend(e,t,n,o):n.isLinear?a=this.createContinuousLegend(e,t,n,o):n.isCategory&&(a=this.createCategoryLegend(e,t,n,o))),a)return a.set(`field`,n.field),{id:this.getId(n.field),component:a,layer:s,direction:c,type:i.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},t.prototype.createCustomLegend=function(e,t,n,r){var i=this.getCategoryCfg(e,t,n,r,!0);return new a.CategoryLegend(i)},t.prototype.createContinuousLegend=function(e,t,n,r){var i=this.getContinuousCfg(e,t,n,(0,l.omit)(r,[`value`]));return new a.ContinuousLegend(i)},t.prototype.createCategoryLegend=function(e,t,n,r){var i=this.getCategoryCfg(e,t,n,r);return new a.CategoryLegend(i)},t.prototype.getContinuousCfg=function(e,t,n,i){var a=n.getTicks(),s=(0,r.find)(a,function(e){return e.value===0}),c=(0,r.find)(a,function(e){return e.value===1}),l=a.map(function(e){var r=e.value,i=e.tickValue,a=t.mapping(n.invert(r)).join(``);return{value:i,attrValue:a,color:a,scaleValue:r}});s||l.push({value:n.min,attrValue:t.mapping(n.invert(0)).join(``),color:t.mapping(n.invert(0)).join(``),scaleValue:0}),c||l.push({value:n.max,attrValue:t.mapping(n.invert(1)).join(``),color:t.mapping(n.invert(1)).join(``),scaleValue:1}),l.sort(function(e,t){return e.value-t.value});var f={min:(0,r.head)(l).value,max:(0,r.last)(l).value,colors:[],rail:{type:t.type},track:{}};t.type===`size`&&(f.track={style:{fill:t.type===`size`?this.view.getTheme().defaultColor:void 0}}),t.type===`color`&&(f.colors=l.map(function(e){return e.attrValue}));var p=this.container,h=m(i),g=(0,u.getLegendLayout)(h),_=(0,r.get)(i,`title`);return _&&=(0,r.deepMix)({text:(0,d.getName)(n)},_),f.container=p,f.layout=g,f.title=_,f.animateOption=o.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(f,i,`continuous`)},t.prototype.getCategoryCfg=function(e,t,n,a,s){var c=this.container,l=(0,r.get)(a,`position`,i.DIRECTION.BOTTOM),f=(0,u.getLegendThemeCfg)(this.view.getTheme(),l),p=(0,r.get)(f,[`marker`]),m=(0,r.get)(a,`marker`),h=(0,u.getLegendLayout)(l),g=(0,r.get)(f,[`pageNavigator`]),_=(0,r.get)(a,`pageNavigator`),v=s?(0,u.getCustomLegendItems)(p,m,a.items):(0,u.getLegendItems)(this.view,e,t,p,m),y=(0,r.get)(a,`title`);y&&=(0,r.deepMix)({text:n?(0,d.getName)(n):``},y);var b=(0,r.get)(a,`maxWidthRatio`),x=(0,r.get)(a,`maxHeightRatio`),S=this.getCategoryLegendSizeCfg(h,b,x);S.container=c,S.layout=h,S.items=v,S.title=y,S.animateOption=o.DEFAULT_ANIMATE_CFG,S.pageNavigator=(0,r.deepMix)({},g,_);var C=this.mergeLegendCfg(S,a,l);C.reversed&&C.items.reverse();var w=(0,r.get)(C,`maxItemWidth`);return w&&w<=1&&(C.maxItemWidth=this.view.viewBBox.width*w),C},t.prototype.mergeLegendCfg=function(e,t,n){var i=n.split(`-`)[0],a=(0,u.getLegendThemeCfg)(this.view.getTheme(),i);return(0,r.deepMix)({},a,e,t)},t.prototype.getId=function(e){return this.name+`-`+e},t.prototype.getComponentById=function(e){return(0,r.find)(this.components,function(t){return t.id===e})},t.prototype.getCategoryLegendSizeCfg=function(e,t,n){t===void 0&&(t=i.COMPONENT_MAX_VIEW_PERCENTAGE),n===void 0&&(n=i.COMPONENT_MAX_VIEW_PERCENTAGE);var r=this.view.viewBBox,a=r.width,o=r.height;return e===`vertical`?{maxWidth:a*t,maxHeight:o}:{maxWidth:a,maxHeight:o*n}},t}(f.Controller)})),NM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.clearList=void 0;var n=(J(),e(q)),r=`inactive`,i=`active`;function a(e){var t=e.getItems();(0,n.each)(t,function(t){e.hasState(t,i)&&e.setItemState(t,i,!1),e.hasState(t,r)&&e.setItemState(t,r,!1)})}t.clearList=a})),PM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(0,n.__importDefault)(kD()),a=ND(),o=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=``,t.ignoreItemStates=[],t}return t.prototype.getTriggerListInfo=function(){var e=(0,o.getDelegationObject)(this.context),t=null;return(0,o.isList)(e)&&(t={item:e.item,list:e.component}),t},t.prototype.getAllowComponents=function(){var e=this,t=this.context.view,n=(0,a.getComponents)(t),i=[];return(0,r.each)(n,function(t){t.isList()&&e.allowSetStateByElement(t)&&i.push(t)}),i},t.prototype.hasState=function(e,t){return e.hasState(t,this.stateName)},t.prototype.clearAllComponentsState=function(){var e=this,t=this.getAllowComponents();(0,r.each)(t,function(t){t.clearItemsState(e.stateName)})},t.prototype.allowSetStateByElement=function(e){var t=e.get(`field`);if(!t)return!1;if(this.cfg&&this.cfg.componentNames){var n=e.get(`name`);if(this.cfg.componentNames.indexOf(n)===-1)return!1}var r=this.context.view,i=(0,o.getScaleByField)(r,t);return i&&i.isCategory},t.prototype.allowSetStateByItem=function(e,t){var n=this.ignoreItemStates;return n.length?n.filter(function(n){return t.hasState(e,n)}).length===0:!0},t.prototype.setStateByElement=function(e,t,n){var r=e.get(`field`),i=this.context.view,a=(0,o.getScaleByField)(i,r),s=(0,o.getElementValue)(t,r),c=a.getText(s);this.setItemsState(e,c,n)},t.prototype.setStateEnable=function(e){var t=this,n=(0,o.getCurrentElement)(this.context);if(n){var i=this.getAllowComponents();(0,r.each)(i,function(r){t.setStateByElement(r,n,e)})}else{var a=(0,o.getDelegationObject)(this.context);if((0,o.isList)(a)){var s=a.item,c=a.component;this.allowSetStateByElement(c)&&this.allowSetStateByItem(s,c)&&this.setItemState(c,s,e)}}},t.prototype.setItemsState=function(e,t,n){var i=this,a=e.getItems();(0,r.each)(a,function(r){r.name===t&&i.setItemState(e,r,n)})},t.prototype.setItemState=function(e,t,n){e.setItemState(t,this.stateName,n)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.reset=function(){this.setStateEnable(!1)},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,n=e.item,r=this.hasState(t,n);this.setItemState(t,n,!r)}},t.prototype.clear=function(){var e=this.getTriggerListInfo();e?e.list.clearItemsState(this.stateName):this.clearAllComponentsState()},t}(i.default)})),FM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=NM(),a=(0,n.__importDefault)(PM()),o=`inactive`,s=`active`;t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=s,t.ignoreItemStates=[`unchecked`],t}return t.prototype.setItemsState=function(e,t,n){this.setHighlightBy(e,function(e){return e.name===t},n)},t.prototype.setItemState=function(e,t,n){e.getItems(),this.setHighlightBy(e,function(e){return e===t},n)},t.prototype.setHighlightBy=function(e,t,n){var i=e.getItems();if(n)(0,r.each)(i,function(n){t(n)?(e.hasState(n,o)&&e.setItemState(n,o,!1),e.setItemState(n,s,!0)):e.hasState(n,s)||e.setItemState(n,o,!0)});else{var a=e.getItemsByState(s),c=!0;(0,r.each)(a,function(e){if(!t(e))return c=!1,!1}),c?this.clear():(0,r.each)(i,function(n){t(n)&&(e.hasState(n,s)&&e.setItemState(n,s,!1),e.setItemState(n,o,!0))})}},t.prototype.highlight=function(){this.setState()},t.prototype.clear=function(){var e=this.getTriggerListInfo();if(e)(0,i.clearList)(e.list);else{var t=this.getAllowComponents();(0,r.each)(t,function(e){e.clearItemsState(s),e.clearItemsState(o)})}},t}(a.default)})),IM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.active=function(){this.setState()},t}((0,n.__importDefault)(PM()).default)})),LM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`unchecked`,t}return t.prototype.unchecked=function(){this.setState()},t}((0,n.__importDefault)(PM()).default)})),RM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(0,n.__importDefault)(kD()),a=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.filterView=function(e,t,n){var i=this;e.getScaleByField(t)&&e.filter(t,n),e.views&&e.views.length&&(0,r.each)(e.views,function(e){i.filterView(e,t,n)})},t.prototype.filter=function(){var e=(0,a.getDelegationObject)(this.context);if(e){var t=this.context.view,n=e.component,r=n.get(`field`);if((0,a.isList)(e)){if(r){var i=n.getItemsByState(`unchecked`),o=(0,a.getScaleByField)(t,r),s=i.map(function(e){return e.name});s.length?this.filterView(t,r,function(e){var t=o.getText(e);return!s.includes(t)}):this.filterView(t,r,null),t.render(!0)}}else if((0,a.isSlider)(e)){var c=n.getValue(),l=c[0],u=c[1];this.filterView(t,r,function(e){return e>=l&&e<=u}),t.render(!0)}}},t}(i.default)})),zM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`selected`,t}return t.prototype.selected=function(){this.setState()},t}((0,n.__importDefault)(PM()).default)})),BM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(FM()),r=t(IM()),i=t(LM()),a=t(RM()),o=t(zM()),s=HA();(0,s.registerAction)(`list-active`,r.default),(0,s.registerAction)(`list-selected`,o.default),(0,s.registerAction)(`list-highlight`,n.default),(0,s.registerAction)(`list-unchecked`,i.default),(0,s.registerAction)(`data-filter`,a.default),(0,s.registerAction)(`legend-item-highlight`,n.default,{componentNames:[`legend`]}),(0,s.registerInteraction)(`legend-active`,{start:[{trigger:`legend-item:mouseenter`,action:[`list-active:active`,`element-active:active`]}],end:[{trigger:`legend-item:mouseleave`,action:[`list-active:reset`,`element-active:reset`]}]}),(0,s.registerInteraction)(`legend-highlight`,{start:[{trigger:`legend-item:mouseenter`,action:[`legend-item-highlight:highlight`,`element-highlight:highlight`]}],end:[{trigger:`legend-item:mouseleave`,action:[`legend-item-highlight:reset`,`element-highlight:reset`]}]}),(0,s.registerInteraction)(`legend-filter`,{showEnable:[{trigger:`legend-item:mouseenter`,action:`cursor:pointer`},{trigger:`legend-item:mouseleave`,action:`cursor:default`}],start:[{trigger:`legend-item:click`,action:`list-unchecked:toggle`},{trigger:`legend-item:click`,action:`data-filter:filter`}]})})),VM=i((e=>{var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{Object.defineProperty(t,`__esModule`,{value:!0}),t.getBackgroundRectStyle=t.getStyle=void 0;var n=(R(),e(F)),r=(J(),e(q));function i(e,t,i,a){a===void 0&&(a=``);var o=e.style,s=o===void 0?{}:o,c=e.defaultStyle,l=e.color,u=e.size,d=(0,n.__assign)((0,n.__assign)({},c),s);return l&&(t&&(s.stroke||(d.stroke=l)),i&&(s.fill||(d.fill=l))),a&&(0,r.isNil)(s[a])&&!(0,r.isNil)(u)&&(d[a]=u),d}t.getStyle=i;function a(e){return(0,r.deepMix)({},{fill:`#CCD6EC`,fillOpacity:.3},(0,r.get)(e,[`background`,`style`]))}t.getBackgroundRectStyle=a})),UM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getRectWithCornerRadius=t.getFunnelPath=t.getIntervalRectPath=t.getBackgroundRectPath=t.parseRadius=t.getRectPath=t.getRectPoints=void 0;var n=(J(),e(q)),r=oE();function i(e){var t=e.x,r=e.y,i=e.y0,a=e.size,o,s;(0,n.isArray)(r)?(o=r[0],s=r[1]):(o=i,s=r);var c,l;(0,n.isArray)(t)?(c=t[0],l=t[1]):(c=t-a/2,l=t+a/2);var u=[{x:c,y:o},{x:c,y:s}];return u.push({x:l,y:s},{x:l,y:o}),u}t.getRectPoints=i;function a(e,t){t===void 0&&(t=!0);var n=[],r=e[0];n.push([`M`,r.x,r.y]);for(var i=1,a=e.length;it&&(r=r?t/(1+i/r):0,i=t-r),a+o>t&&(a=a?t/(1+o/a):0,o=t-a),[r||0,i||0,a||0,o||0]}t.parseRadius=o;function s(e,t,i){var a=[];if(i.isRect){var s=i.isTransposed?{x:i.start.x,y:t[0].y}:{x:t[0].x,y:i.start.y},c=i.isTransposed?{x:i.end.x,y:t[2].y}:{x:t[3].x,y:i.end.y},l=(0,n.get)(e,[`background`,`style`,`radius`]);if(l){var u=i.isTransposed?Math.abs(t[0].y-t[2].y):t[2].x-t[1].x,d=i.isTransposed?i.getWidth():i.getHeight(),f=o(l,Math.min(u,d)),p=f[0],m=f[1],h=f[2],g=f[3];a.push([`M`,s.x,c.y+p]),p!==0&&a.push([`A`,p,p,0,0,1,s.x+p,c.y]),a.push([`L`,c.x-m,c.y]),m!==0&&a.push([`A`,m,m,0,0,1,c.x,c.y+m]),a.push([`L`,c.x,s.y-h]),h!==0&&a.push([`A`,h,h,0,0,1,c.x-h,s.y]),a.push([`L`,s.x+g,s.y]),g!==0&&a.push([`A`,g,g,0,0,1,s.x,s.y-g])}else a.push([`M`,s.x,s.y]),a.push([`L`,c.x,s.y]),a.push([`L`,c.x,c.y]),a.push([`L`,s.x,c.y]),a.push([`L`,s.x,s.y]);a.push([`z`])}if(i.isPolar){var _=i.getCenter(),v=(0,r.getAngle)(e,i),y=v.startAngle,b=v.endAngle;if(i.type!==`theta`&&!i.isTransposed)a=(0,r.getSectorPath)(_.x,_.y,i.getRadius(),y,b);else{var x=function(e){return e**2},p=Math.sqrt(x(_.x-t[0].x)+x(_.y-t[0].y)),m=Math.sqrt(x(_.x-t[2].x)+x(_.y-t[2].y));a=(0,r.getSectorPath)(_.x,_.y,p,i.startAngle,i.endAngle,m)}}return a}t.getBackgroundRectPath=s;function c(e,t,n){var r=n.getWidth(),i=n.getHeight(),o=n.type===`rect`,s=[],c=(e[2].x-e[1].x)/2,l=n.isTransposed?c*i/r:c*r/i;return t===`round`?(o?(s.push([`M`,e[0].x,e[0].y+l]),s.push([`L`,e[1].x,e[1].y-l]),s.push([`A`,c,c,0,0,1,e[2].x,e[2].y-l]),s.push([`L`,e[3].x,e[3].y+l]),s.push([`A`,c,c,0,0,1,e[0].x,e[0].y+l])):(s.push([`M`,e[0].x,e[0].y]),s.push([`L`,e[1].x,e[1].y]),s.push([`A`,c,c,0,0,1,e[2].x,e[2].y]),s.push([`L`,e[3].x,e[3].y]),s.push([`A`,c,c,0,0,1,e[0].x,e[0].y])),s.push([`z`])):s=a(e),s}t.getIntervalRectPath=c;function l(e,t,r){var i=[];return(0,n.isNil)(t)?r?i.push([`M`,e[0].x,e[0].y],[`L`,e[1].x,e[1].y],[`L`,(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],[`Z`]):i.push([`M`,e[0].x,e[0].y],[`L`,e[1].x,e[1].y],[`L`,e[2].x,e[2].y],[`L`,e[3].x,e[3].y],[`Z`]):i.push([`M`,e[0].x,e[0].y],[`L`,e[1].x,e[1].y],[`L`,t[1].x,t[1].y],[`L`,t[0].x,t[0].y],[`Z`]),i}t.getFunnelPath=l;function u(e,t,n){var r,i,a,s,c=e[0],l=e[1],u=e[2],d=e[3],f=[0,0,0,0],p=f[0],m=f[1],h=f[2],g=f[3];c.ye[1].x?(d=e[0],c=e[1],l=e[2],u=e[3],a=o(n,Math.min(d.x-c.x,c.y-l.y)),p=a[0],g=a[1],h=a[2],m=a[3]):(s=o(n,Math.min(d.x-c.x,c.y-l.y)),m=s[0],h=s[1],g=s[2],p=s[3]));var _=[];return _.push([`M`,l.x,l.y+p]),p!==0&&_.push([`A`,p,p,0,0,1,l.x+p,l.y]),_.push([`L`,u.x-m,u.y]),m!==0&&_.push([`A`,m,m,0,0,1,u.x,u.y+m]),_.push([`L`,d.x,d.y-h]),h!==0&&_.push([`A`,h,h,0,0,1,d.x-h,d.y]),_.push([`L`,c.x+g,c.y]),g!==0&&_.push([`A`,g,g,0,0,1,c.x,c.y-g]),_.push([`L`,l.x,l.y+p]),_.push([`z`]),_}t.getRectWithCornerRadius=u})),WM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=sO(),i=iO(),a=HM(),o=UM(),s=(0,r.registerShapeFactory)(`interval`,{defaultShapeType:`rect`,getDefaultPoints:function(e){return(0,o.getRectPoints)(e)}});(0,r.registerShape)(`interval`,`rect`,{draw:function(e,t){var r=(0,a.getStyle)(e,!1,!0),s=t,c=e?.background;if(c){s=t.addGroup();var l=(0,a.getBackgroundRectStyle)(e),u=(0,o.getBackgroundRectPath)(e,this.parsePoints(e.points),this.coordinate);s.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},l),{path:u}),zIndex:-1,name:i.BACKGROUND_SHAPE})}var d=r.radius&&this.coordinate.isRect?(0,o.getRectWithCornerRadius)(this.parsePoints(e.points),this.coordinate,r.radius):this.parsePath((0,o.getIntervalRectPath)(e.points,r.lineCap,this.coordinate)),f=s.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:d}),name:`interval`});return c?s:f},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:`circle`,style:{r:4.5,fill:t}}:{symbol:`square`,style:{r:4,fill:t}}}}),t.default=s})),GM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getDefaultSize=void 0;var n=(J(),e(q)),r=lE();function i(e,t){var r=e.length,i=e;(0,n.isString)(i[0])&&(i=e.map(function(e){return t.translate(e)}));for(var a=i[1]-i[0],o=2;os&&(a=s)}return a}function a(e,t){if(t){var r=(0,n.flatten)(e);return(0,n.valuesOfKey)(r,t).length}return e.length}function o(e){var t=e.theme,o=e.coordinate,s=e.getXScale(),c=s.values,l=e.beforeMappingData,u=c.length,d=(0,r.getXDimensionLength)(e.coordinate),f=e.intervalPadding,p=e.dodgePadding,m=e.maxColumnWidth||t.maxColumnWidth,h=e.minColumnWidth||t.minColumnWidth,g=e.columnWidthRatio||t.columnWidthRatio,_=e.multiplePieWidthRatio||t.multiplePieWidthRatio,v=e.roseWidthRatio||t.roseWidthRatio;if(s.isLinear&&c.length>1){c.sort();var y=i(c,s);u=(s.max-s.min)/y,c.length>u&&(u=c.length)}var b=s.range,x=1/u,S=1;if(o.isPolar?S=o.isTransposed&&u>1?_:v:(s.isLinear&&(x*=b[1]-b[0]),S=g),!(0,n.isNil)(f)&&f>=0){var C=f/d;x=(1-(u-1)*C)/u}else x*=S;if(e.getAdjust(`dodge`)){var w=e.getAdjust(`dodge`).dodgeBy,T=a(l,w);if(!(0,n.isNil)(p)&&p>=0){var E=p/d;x=(x-E*(T-1))/T}else !(0,n.isNil)(f)&&f>=0&&(x*=S),x/=T;x=x>=0?x:0}if(!(0,n.isNil)(m)&&m>=0){var D=m/d;x>D&&(x=D)}if(!(0,n.isNil)(h)&&h>=0){var O=h/d;x{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=lE(),a=(0,n.__importDefault)(fO());WM();var o=GM(),s=uE();t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`interval`,n.shapeType=`interval`,n.generatePoints=!0,n.background=t.background,n}return t.prototype.createShapePointsCfg=function(t){var n=e.prototype.createShapePointsCfg.call(this,t),r,a=this.getAttribute(`size`);if(a){r=this.getAttributeValues(a,t)[0];var s=this.coordinate,c=(0,i.getXDimensionLength)(s);r/=c}else this.defaultSize||=(0,o.getDefaultSize)(this),r=this.defaultSize;return n.size=r,n},t.prototype.adjustScale=function(){e.prototype.adjustScale.call(this);var t=this.getYScale();if(this.coordinate.type===`theta`)t.change({nice:!1,min:0,max:(0,s.getMaxScale)(t)});else{var n=this.scaleDefs,i=t.field,a=t.min,o=t.max;t.type!==`time`&&(a>0&&!(0,r.get)(n,[i,`min`])&&t.change({min:0}),o<=0&&!(0,r.get)(n,[i,`max`])&&t.change({max:0}))}},t.prototype.getDrawCfg=function(t){var n=e.prototype.getDrawCfg.call(this,t);return n.background=this.background,n},t}(a.default)})),qM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q));t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelValueDir=function(e){var t=`y`,n=e.points;return n[0][t]<=n[2][t]?1:-1},t.prototype.getLabelOffsetPoint=function(t,r,i,a){var o,s=e.prototype.getLabelOffsetPoint.call(this,t,r,i),c=this.getCoordinate(),l=c.isTransposed?`x`:`y`,u=this.getLabelValueDir(t.mappingData);return s=(0,n.__assign)((0,n.__assign)({},s),(o={},o[l]=s[l]*u,o)),c.isReflect(`x`)&&(s=(0,n.__assign)((0,n.__assign)({},s),{x:s.x*-1})),c.isReflect(`y`)&&(s=(0,n.__assign)((0,n.__assign)({},s),{y:s.y*-1})),s},t.prototype.getThemedLabelCfg=function(e){var t=this.geometry,n=this.getDefaultLabelCfg(),i=t.theme;return(0,r.deepMix)({},n,i.labels,e.position===`middle`?{offset:0}:{},e)},t.prototype.setLabelPosition=function(e,t,n,i){var a=this.getCoordinate(),o=a.isTransposed,s=t.points,c=a.convert(s[0]),l=a.convert(s[2]),u=this.getLabelValueDir(t),d,f,p,m,h=(0,r.isArray)(t.shape)?t.shape[0]:t.shape;if(h===`funnel`||h===`pyramid`){var g=(0,r.get)(t,`nextPoints`),_=(0,r.get)(t,`points`);if(g){var v=a.convert(_[0]),y=a.convert(_[1]),b=a.convert(g[0]),x=a.convert(g[1]);o?(d=Math.min(b.y,v.y),p=Math.max(b.y,v.y),f=(y.x+x.x)/2,m=(v.x+b.x)/2):(d=Math.min((y.y+x.y)/2,(v.y+b.y)/2),p=Math.max((y.y+x.y)/2,(v.y+b.y)/2),f=x.x,m=v.x)}else d=Math.min(l.y,c.y),p=Math.max(l.y,c.y),f=l.x,m=c.x}else d=Math.min(l.y,c.y),p=Math.max(l.y,c.y),f=l.x,m=c.x;switch(i){case`right`:e.x=f,e.y=(d+p)/2,e.textAlign=(0,r.get)(e,`textAlign`,u>0?`left`:`right`);break;case`left`:e.x=m,e.y=(d+p)/2,e.textAlign=(0,r.get)(e,`textAlign`,u>0?`left`:`right`);break;case`bottom`:o&&(e.x=(f+m)/2),e.y=p,e.textAlign=(0,r.get)(e,`textAlign`,`center`),e.textBaseline=(0,r.get)(e,`textBaseline`,u>0?`bottom`:`top`);break;case`middle`:o&&(e.x=(f+m)/2),e.y=(d+p)/2,e.textAlign=(0,r.get)(e,`textAlign`,`center`),e.textBaseline=(0,r.get)(e,`textBaseline`,`middle`);break;case`top`:o&&(e.x=(f+m)/2),e.y=d,e.textAlign=(0,r.get)(e,`textAlign`,`center`),e.textBaseline=(0,r.get)(e,`textBaseline`,u>0?`bottom`:`top`);break;default:break}},t}((0,n.__importDefault)(_O()).default)})),JM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=lE(),a=lE(),o=(0,n.__importDefault)(_O()),s=Math.PI/2;t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),n=0;if((0,r.isNumber)(e))n=e;else if((0,r.isString)(e)&&e.indexOf(`%`)!==-1){var i=t.getRadius();t.innerRadius>0&&(i*=1-t.innerRadius),n=parseFloat(e)*.01*i}return n},t.prototype.getLabelItems=function(t){var i=e.prototype.getLabelItems.call(this,t),a=this.geometry.getYScale();return(0,r.map)(i,function(e){if(e&&a){var t=a.scale((0,r.get)(e.data,a.field));return(0,n.__assign)((0,n.__assign)({},e),{percent:t})}return e})},t.prototype.getLabelAlign=function(e){var t=this.getCoordinate(),n;if(e.labelEmit)n=e.angle<=Math.PI/2&&e.angle>=-Math.PI/2?`left`:`right`;else if(!t.isTransposed)n=`center`;else{var r=t.getCenter(),i=e.offset;n=Math.abs(e.x-r.x)<1?`center`:e.angle>Math.PI||e.angle<=0?i>0?`left`:`right`:i>0?`right`:`left`}return n},t.prototype.getLabelPoint=function(e,t,n){var r=1,i,a=e.content[n];this.isToMiddle(t)?i=this.getMiddlePoint(t.points):(e.content.length===1&&n===0?n=1:n===0&&(r=-1),i=this.getArcPoint(t,n));var o=e.offset*r,s=this.getPointAngle(i),c=e.labelEmit,l=this.getCirclePoint(s,o,i,c);return l.r===0?l.content=``:(l.content=a,l.angle=s,l.color=t.color),l.rotate=e.autoRotate?this.getLabelRotate(s,o,c):e.rotate,l.start={x:i.x,y:i.y},l},t.prototype.getArcPoint=function(e,t){return t===void 0&&(t=0),!(0,r.isArray)(e.x)&&!(0,r.isArray)(e.y)?{x:e.x,y:e.y}:{x:(0,r.isArray)(e.x)?e.x[t]:e.x,y:(0,r.isArray)(e.y)?e.y[t]:e.y}},t.prototype.getPointAngle=function(e){return(0,a.getAngleByPoint)(this.getCoordinate(),e)},t.prototype.getCirclePoint=function(e,t,r,a){var o=this.getCoordinate(),s=o.getCenter(),c=(0,i.getDistanceToCenter)(o,r);if(c===0)return(0,n.__assign)((0,n.__assign)({},s),{r:c});var l=e;return o.isTransposed&&c>t&&!a?l=e+Math.asin(t/(2*c))*2:c+=t,{x:s.x+c*Math.cos(l),y:s.y+c*Math.sin(l),r:c}},t.prototype.getLabelRotate=function(e,t,n){var r=e+s;return n&&(r-=s),r&&(r>s?r-=Math.PI:r<-s&&(r+=Math.PI)),r},t.prototype.getMiddlePoint=function(e){var t=this.getCoordinate(),n=e.length,i={x:0,y:0};return(0,r.each)(e,function(e){i.x+=e.x,i.y+=e.y}),i.x/=n,i.y/=n,i=t.convert(i),i},t.prototype.isToMiddle=function(e){return e.x.length>2},t}(o.default)})),YM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=lE(),a=oE();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultLayout=`distribute`,t}return t.prototype.getDefaultLabelCfg=function(t,n){var i=e.prototype.getDefaultLabelCfg.call(this,t,n);return(0,r.deepMix)({},i,(0,r.get)(this.geometry.theme,`pieLabels`,{}))},t.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},t.prototype.getLabelRotate=function(e,t,n){var r;return t<0&&(r=e,r>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},t.prototype.getLabelAlign=function(e){var t=this.getCoordinate().getCenter(),n=e.angle<=Math.PI/2&&e.x>=t.x?`left`:`right`;return e.offset<=0&&(n=n===`right`?`left`:`right`),n},t.prototype.getArcPoint=function(e){return e},t.prototype.getPointAngle=function(e){var t=this.getCoordinate(),n={x:(0,r.isArray)(e.x)?e.x[0]:e.x,y:e.y[0]},a={x:(0,r.isArray)(e.x)?e.x[1]:e.x,y:e.y[1]},o,s=(0,i.getAngleByPoint)(t,n);if(e.points&&e.points[0].y===e.points[1].y)o=s;else{var c=(0,i.getAngleByPoint)(t,a);s>=c&&(c+=Math.PI*2),o=s+(c-s)/2}return o},t.prototype.getCirclePoint=function(e,t){var r=this.getCoordinate(),i=r.getCenter(),o=r.getRadius()+t;return(0,n.__assign)((0,n.__assign)({},(0,a.polarToCartesian)(i.x,i.y,o,e)),{angle:e,r:o})},t}((0,n.__importDefault)(JM()).default)})),XM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(gM()),r=t(vE()),i=t(CM());e.default=(function(e,t,a,o){if(e===null){(0,n.default)(a,function(e){var n=t[e];n!==void 0&&((0,r.default)(n)||(n=[n]),o(n,e))});return}var s,c;(0,n.default)(a,function(n){s=e[n],c=t[n],(0,i.default)(c,s)||((0,r.default)(c)||(c=[c]),o(c,n))})})})),ZM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.distribute=void 0;var n=(J(),e(q)),r=oE(),i=4;function a(e,t,r,i,a,o){var s=!0,c=i.start,l=i.end,u=Math.min(c.y,l.y),d=Math.abs(c.y-l.y),f,p=0,m=Number.MIN_VALUE,h=t.map(function(e){return e.y>p&&(p=e.y),e.yd&&(d=p-u);s;)for(h.forEach(function(e){var t=(Math.min.apply(m,e.targets)+Math.max.apply(m,e.targets))/2;e.pos=Math.min(Math.max(m,t-e.size/2),d-e.size)}),s=!1,f=h.length;f--;)if(f>0){var g=h[f-1],_=h[f];g.pos+g.size>_.pos&&(g.size+=_.size,g.targets=g.targets.concat(_.targets),g.pos+g.size>d&&(g.pos=d-g.size),h.splice(f,1),s=!0)}f=0,h.forEach(function(e){var n=u+r/2;e.targets.forEach(function(){t[f].y=e.pos+n,n+=r,f++})});for(var v={},y=0,b=e;y0){var f=14,p=(u+c)*2+f*2,m={start:l.start,end:l.end},h=[[],[]];e.forEach(function(e){e&&(e.textAlign===`right`?h[0].push(e):h[1].push(e))}),h.forEach(function(e,n){var r=p/f;e.length>r&&(e.sort(function(e,t){return t[`..percent`]-e[`..percent`]}),e.splice(r,e.length-r)),e.sort(function(e,t){return e.y-t.y}),a(t,e,f,m,d,n)})}(0,n.each)(e,function(e){if(e&&e.labelLine){var t=e.offset,a=e.angle,o=(0,r.polarToCartesian)(d.x,d.y,u,a),s=(0,r.polarToCartesian)(d.x,d.y,u+t/2,a),c=e.x+(0,n.get)(e,`offsetX`,0),l=e.y+(0,n.get)(e,`offsetY`,0),f={x:c-Math.cos(a)*i,y:l-Math.sin(a)*i};(0,n.isObject)(e.labelLine)||(e.labelLine={}),e.labelLine.path=[`M `+o.x,o.y+` Q`+s.x,s.y+` `+f.x,f.y].join(`,`)}})}}t.distribute=o})),QM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.limitInCanvas=void 0;var n=(J(),e(q)),r=pO();function i(e,t,i,a){(0,n.each)(t,function(e){var t=a.minX,n=a.minY,i=a.maxX,o=a.maxY,s=e.getCanvasBBox(),c=s.minX,l=s.minY,u=s.maxX,d=s.maxY,f=s.x,p=s.y,m=s.width,h=s.height,g=f,_=p;(ci?g=i-m:u>i&&(g-=u-i),l>o?_=o-h:d>o&&(_-=d-o),(g!==f||_!==p)&&(0,r.translate)(e,g-f,_-p)})}t.limitInCanvas=i})),$M=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.limitInShape=void 0;var n=(J(),e(q));function r(e,t,r,i){(0,n.each)(t,function(e,t){var n=e.getCanvasBBox(),i=r[t].getBBox();(n.minXi.maxX||n.maxY>i.maxY)&&e.remove(!0)})}t.limitInShape=r})),eN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.overlap=t.fixedOverlap=void 0;var n=(J(),e(q)),r=100,i=function(){function e(e){e===void 0&&(e={}),this.bitmap={};var t=e.xGap,n=t===void 0?1:t,r=e.yGap,i=r===void 0?8:r;this.xGap=n,this.yGap=i}return e.prototype.hasGap=function(e){for(var t=!0,n=this.bitmap,r=Math.round(e.minX),i=Math.round(e.maxX),a=Math.round(e.minY),o=Math.round(e.maxY),s=r;s<=i;s+=1){if(!n[s]){n[s]={};continue}if(s===r||s===i){for(var c=a;c<=o;c++)if(n[s][c]){t=!1;break}}else if(n[s][a]||n[s][o]){t=!1;break}}return t},e.prototype.fillGap=function(e){for(var t=this.bitmap,n=Math.round(e.minX),r=Math.round(e.maxX),i=Math.round(e.minY),a=Math.round(e.maxY),o=n;o<=r;o+=1)t[o]||(t[o]={});for(var o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)t[o][s]=!0;t[o][a]=!0}if(this.yGap!==1)for(var o=i;o<=a;o+=1)t[n][o]=!0,t[r][o]=!0;if(this.xGap!==1)for(var o=n;o<=r;o+=1)t[o][i]=!0,t[o][a]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function a(e,t,n){n===void 0&&(n=r);var i=-1,a=e.attr(),o=a.x,s=a.y,c=e.getCanvasBBox(),l=Math.sqrt(c.width*c.width+c.height*c.height),u,d=-i,f=0,p=0,m=function(e){var t=e*.1;return[t*Math.cos(t),t*Math.sin(t)]};if(t.hasGap(c))return t.fillGap(c),!0;for(var h=!1,g=0,_={};Math.min(Math.abs(f),Math.abs(p)){var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(0,n.__importDefault)(kD()),a=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=``,t}return t.prototype.hasState=function(e){return e.hasState(this.stateName)},t.prototype.setElementState=function(e,t){e.setState(this.stateName,t)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.clear=function(){var e=this.context.view;this.clearViewState(e)},t.prototype.clearViewState=function(e){var t=this,n=(0,a.getElementsByState)(e,this.stateName);(0,r.each)(n,function(e){t.setElementState(e,!1)})},t}(i.default)})),rN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=ND(),a=(0,n.__importDefault)(nN());function o(e){return(0,r.get)(e.get(`delegateObject`),`item`)}t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreListItemStates=[`unchecked`],t}return t.prototype.isItemIgnore=function(e,t){return!!this.ignoreListItemStates.filter(function(n){return t.hasState(e,n)}).length},t.prototype.setStateByComponent=function(e,t,n){var r=this.context.view,a=e.get(`field`),o=(0,i.getElements)(r);this.setElementsStateByItem(o,a,t,n)},t.prototype.setStateByElement=function(e,t){this.setElementState(e,t)},t.prototype.isMathItem=function(e,t,n){var a=this.context.view,o=(0,i.getScaleByField)(a,t),s=(0,i.getElementValue)(e,t);return!(0,r.isNil)(s)&&n.name===o.getText(s)},t.prototype.setElementsStateByItem=function(e,t,n,i){var a=this;(0,r.each)(e,function(e){a.isMathItem(e,t,n)&&e.setState(a.stateName,i)})},t.prototype.setStateEnable=function(e){var t=(0,i.getCurrentElement)(this.context);if(t)(0,i.isElementChange)(this.context)&&this.setStateByElement(t,e);else{var n=(0,i.getDelegationObject)(this.context);if((0,i.isList)(n)){var r=n.item,a=n.component;if(r&&a&&!this.isItemIgnore(r,a)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(a,r,e)}}}},t.prototype.toggle=function(){var e=(0,i.getCurrentElement)(this.context);if(e){var t=e.hasState(this.stateName);this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}(a.default)})),iN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.active=function(){this.setState()},t}((0,n.__importDefault)(rN()).default)})),aN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(0,n.__importDefault)(kD()),i=ND(),a=(J(),e(q));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.cache={},t}return t.prototype.getColorScale=function(e,t){var n=t.geometry.getAttribute(`color`);return n?e.getScaleByField(n.getFields()[0]):null},t.prototype.getLinkPath=function(e,t){var n=this.context.view.getCoordinate().isTransposed,r=e.shape.getCanvasBBox(),i=t.shape.getCanvasBBox();return n?[[`M`,r.minX,r.minY],[`L`,i.minX,i.maxY],[`L`,i.maxX,i.maxY],[`L`,r.maxX,r.minY],[`Z`]]:[[`M`,r.maxX,r.minY],[`L`,i.minX,i.minY],[`L`,i.minX,i.maxY],[`L`,r.maxX,r.maxY],[`Z`]]},t.prototype.addLinkShape=function(e,t,r,i){var o={opacity:.4,fill:t.shape.attr(`fill`)};e.addShape({type:`path`,attrs:(0,n.__assign)((0,n.__assign)({},(0,a.deepMix)({},o,(0,a.isFunction)(i)?i(o,t):i)),{path:this.getLinkPath(t,r)})})},t.prototype.linkByElement=function(e,t){var n=this,r=this.context.view,o=this.getColorScale(r,e);if(o){var s=(0,i.getElementValue)(e,o.field);if(!this.cache[s]){var c=(0,i.getElementsByField)(r,o.field,s),l=this.linkGroup.addGroup();this.cache[s]=l;var u=c.length;(0,a.each)(c,function(e,r){if(r{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.startPoint=null,t.endPoint=null,t.isStarted=!1,t.effectSiblings=!1,t.effectByRecord=!1,t}return t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},t.prototype.getIntersectElements=function(){var e=null;if((0,i.isMask)(this.context))e=(0,i.getMaskedElements)(this.context,10);else{var t=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!t||!n)return;var r={minX:Math.min(t.x,n.x),minY:Math.min(t.y,n.y),maxX:Math.max(t.x,n.x),maxY:Math.max(t.y,n.y)},a=this.context.view;e=(0,i.getIntersectElements)(a,r)}return e},t.prototype.setStateEnable=function(e){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(e);else{var t=(0,i.getElements)(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,e):this.setElementsState(n,e,t):this.clear()}},t.prototype.setSiblingsStateByRecord=function(e,t){var n=this,a=this.context.view,o=(0,i.getSilbings)(a),s=e.map(function(e){return e.getModel().data}),c=a.getXScale().field,l=a.getYScales()[0].field;(0,r.each)(o,function(e){var r=(0,i.getElements)(e),a=r.filter(function(e){var t=e.getModel().data;return(0,i.isInRecords)(s,t,c,l)});n.setElementsState(a,t,r)})},t.prototype.setSiblingsState=function(e){var t=this,n=this.context.view,a=(0,i.getSilbings)(n);(0,i.isMask)(this.context)&&(0,r.each)(a,function(n){var r=(0,i.getElements)(n),a=(0,i.getSiblingMaskElements)(t.context,n,10);a&&a.length?t.setElementsState(a,e,r):t.clearViewState(n)})},t.prototype.setElementsState=function(e,t,n){var i=this;(0,r.each)(n,function(n){e.includes(n)?i.setElementState(n,t):i.setElementState(n,!1)})},t.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},t.prototype.clear=function(){var e=this,t=this.context.view;if(this.effectSiblings){var n=(0,i.getSilbings)(t);(0,r.each)(n,function(t){e.clearViewState(t)})}else this.clearViewState(t)},t}((0,n.__importDefault)(nN()).default)})),sN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.active=function(){this.setState()},t}((0,n.__importDefault)(oN()).default)})),cN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setStateEnable=function(e){var t=(0,r.getCurrentElement)(this.context);if(t){if(!(0,r.isElementChange)(this.context))return;e?(this.clear(),this.setElementState(t,!0)):this.hasState(t)&&this.setElementState(t,!1)}},t.prototype.toggle=function(){var e=(0,r.getCurrentElement)(this.context);if(e){var t=this.hasState(e);t||this.clear(),this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}((0,n.__importDefault)(nN()).default)})),lN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.active=function(){this.setState()},t}((0,n.__importDefault)(cN()).default)})),uN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.setHighlightBy=t.clearHighlight=void 0;var n=(J(),e(q)),r=ND(),i=`inactive`,a=`active`;function o(e){var t=(0,r.getElements)(e);(0,n.each)(t,function(e){e.hasState(a)&&e.setState(a,!1),e.hasState(i)&&e.setState(i,!1)})}t.clearHighlight=o;function s(e,t,r){(0,n.each)(e,function(e){t(e)?(e.hasState(i)&&e.setState(i,!1),e.setState(a,r)):(e.hasState(a)&&e.setState(a,!1),e.setState(i,r))})}t.setHighlightBy=s})),dN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.STATUS_ACTIVE=t.STATUS_UNACTIVE=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=ND(),a=uN(),o=(0,n.__importDefault)(rN()),s=Y();t.STATUS_UNACTIVE=s.ELEMENT_STATE.INACTIVE,t.STATUS_ACTIVE=s.ELEMENT_STATE.ACTIVE,t.default=function(e){(0,n.__extends)(o,e);function o(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName=t.STATUS_ACTIVE,n}return o.prototype.setElementsStateByItem=function(e,t,n,r){var i=this;this.setHighlightBy(e,function(e){return i.isMathItem(e,t,n)},r)},o.prototype.setElementHighlight=function(e,n){n(e)?(e.hasState(t.STATUS_UNACTIVE)&&e.setState(t.STATUS_UNACTIVE,!1),e.setState(t.STATUS_ACTIVE,!0)):e.hasState(t.STATUS_ACTIVE)||e.setState(t.STATUS_UNACTIVE,!0)},o.prototype.setHighlightBy=function(e,n,a){var o=this;if(a)(0,r.each)(e,function(e){o.setElementHighlight(e,n)});else{var s=(0,i.getElementsByState)(this.context.view,t.STATUS_ACTIVE),c=!0;(0,r.each)(s,function(e){if(!n(e))return c=!1,!1}),c?this.clear():(0,r.each)(e,function(e){n(e)&&(e.hasState(t.STATUS_ACTIVE)&&e.setState(t.STATUS_ACTIVE,!1),e.setState(t.STATUS_UNACTIVE,!0))})}},o.prototype.setElementState=function(e,t){var n=this.context.view,r=(0,i.getElements)(n);this.setHighlightBy(r,function(t){return e===t},t)},o.prototype.highlight=function(){this.setState()},o.prototype.clear=function(){var e=this.context.view;(0,a.clearHighlight)(e)},o}(o.default)})),fN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=ND(),i=(0,n.__importStar)(dN());t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setElementHighlight=function(e,t){t(e)?(e.hasState(i.STATUS_UNACTIVE)&&e.setState(i.STATUS_UNACTIVE,!1),e.setState(i.STATUS_ACTIVE,!0)):(e.setState(i.STATUS_UNACTIVE,!0),e.hasState(i.STATUS_ACTIVE)&&e.setState(i.STATUS_ACTIVE,!1))},t.prototype.setStateByElement=function(e,t){var n=this.context.view,i=n.getXScale(),a=(0,r.getElementValue)(e,i.field),o=(0,r.getElements)(n),s=o.filter(function(e){return(0,r.getElementValue)(e,i.field)===a});this.setHighlightBy(o,function(e){return s.includes(e)},t)},t.prototype.toggle=function(){var e=(0,r.getCurrentElement)(this.context);if(e){var t=e.hasState(this.stateName);this.setStateByElement(e,!t)}},t}(i.default)})),pN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setStateByElement=function(e,t){var n=this.context.view,i=e.geometry.getAttribute(`color`);if(i){var a=n.getScaleByField(i.getFields()[0]),o=(0,r.getElementValue)(e,a.field),s=(0,r.getElements)(n),c=s.filter(function(e){return(0,r.getElementValue)(e,a.field)===o});this.setHighlightBy(s,function(e){return c.includes(e)},t)}},t}((0,n.__importDefault)(dN()).default)})),mN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=ND(),i=uN();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.highlight=function(){this.setState()},t.prototype.setElementState=function(e,t){var n=this.context.view,a=(0,r.getElements)(n);(0,i.setHighlightBy)(a,function(t){return e===t},t)},t.prototype.clear=function(){var e=this.context.view;(0,i.clearHighlight)(e)},t}((0,n.__importDefault)(cN()).default)})),hN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ELEMENT_RANGE_HIGHLIGHT_EVENTS=void 0;var n=(R(),e(F)),r=nO(),i=uN(),a=(0,n.__importDefault)(oN()),o;(function(e){e.BEFORE_HIGHLIGHT=`element-range-highlight:beforehighlight`,e.AFTER_HIGHLIGHT=`element-range-highlight:afterhighlight`,e.BEFORE_CLEAR=`element-range-highlight:beforeclear`,e.AFTER_CLEAR=`element-range-highlight:afterclear`})(o||={}),t.ELEMENT_RANGE_HIGHLIGHT_EVENTS=o,t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.clearViewState=function(e){(0,i.clearHighlight)(e)},t.prototype.highlight=function(){var e=this.context,t=e.view,n={view:t,event:e.event,highlightElements:this.getIntersectElements()};t.emit(o.BEFORE_HIGHLIGHT,r.Event.fromData(t,o.BEFORE_HIGHLIGHT,n)),this.setState(),t.emit(o.AFTER_HIGHLIGHT,r.Event.fromData(t,o.AFTER_HIGHLIGHT,n))},t.prototype.clear=function(){var t=this.context.view;t.emit(o.BEFORE_CLEAR,r.Event.fromData(t,o.BEFORE_CLEAR,{})),e.prototype.clear.call(this),t.emit(o.AFTER_CLEAR,r.Event.fromData(t,o.AFTER_CLEAR,{}))},t.prototype.setElementsState=function(e,t,n){(0,i.setHighlightBy)(n,function(t){return e.indexOf(t)>=0},t)},t}(a.default)})),gN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`selected`,t}return t.prototype.selected=function(){this.setState()},t}((0,n.__importDefault)(rN()).default)})),_N=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`selected`,t}return t.prototype.selected=function(){this.setState()},t}((0,n.__importDefault)(cN()).default)})),vN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`selected`,t}return t.prototype.selected=function(){this.setState()},t}((0,n.__importDefault)(oN()).default)})),yN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setCursor=function(e){this.context.view.getCanvas().setCursor(e)},t.prototype.default=function(){this.setCursor(`default`)},t.prototype.pointer=function(){this.setCursor(`pointer`)},t.prototype.move=function(){this.setCursor(`move`)},t.prototype.crosshair=function(){this.setCursor(`crosshair`)},t.prototype.wait=function(){this.setCursor(`wait`)},t.prototype.help=function(){this.setCursor(`help`)},t.prototype.text=function(){this.setCursor(`text`)},t.prototype.eResize=function(){this.setCursor(`e-resize`)},t.prototype.wResize=function(){this.setCursor(`w-resize`)},t.prototype.nResize=function(){this.setCursor(`n-resize`)},t.prototype.sResize=function(){this.setCursor(`s-resize`)},t.prototype.neResize=function(){this.setCursor(`ne-resize`)},t.prototype.nwResize=function(){this.setCursor(`nw-resize`)},t.prototype.seResize=function(){this.setCursor(`se-resize`)},t.prototype.swResize=function(){this.setCursor(`sw-resize`)},t.prototype.nsResize=function(){this.setCursor(`ns-resize`)},t.prototype.ewResize=function(){this.setCursor(`ew-resize`)},t}((0,n.__importDefault)(kD()).default)})),bN=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(iN()),r=t(aN()),i=t(sN()),a=t(lN()),o=t(dN()),s=t(fN()),c=t(pN()),l=t(mN()),u=t(hN()),d=t(gN()),f=t(_N()),p=t(vN()),m=t(yN()),h=HA();(0,h.registerAction)(`cursor`,m.default),(0,h.registerAction)(`element-active`,n.default),(0,h.registerAction)(`element-single-active`,a.default),(0,h.registerAction)(`element-range-active`,i.default),(0,h.registerAction)(`element-highlight`,o.default),(0,h.registerAction)(`element-highlight-by-x`,s.default),(0,h.registerAction)(`element-highlight-by-color`,c.default),(0,h.registerAction)(`element-single-highlight`,l.default),(0,h.registerAction)(`element-range-highlight`,u.default),(0,h.registerAction)(`element-sibling-highlight`,u.default,{effectSiblings:!0,effectByRecord:!0}),(0,h.registerAction)(`element-selected`,d.default),(0,h.registerAction)(`element-single-selected`,f.default),(0,h.registerAction)(`element-range-selected`,p.default),(0,h.registerAction)(`element-link-by-color`,r.default),(0,h.registerInteraction)(`element-active`,{start:[{trigger:`element:mouseenter`,action:`element-active:active`}],end:[{trigger:`element:mouseleave`,action:`element-active:reset`}]}),(0,h.registerInteraction)(`element-selected`,{start:[{trigger:`element:click`,action:`element-selected:toggle`}]}),(0,h.registerInteraction)(`element-highlight`,{start:[{trigger:`element:mouseenter`,action:`element-highlight:highlight`}],end:[{trigger:`element:mouseleave`,action:`element-highlight:reset`}]}),(0,h.registerInteraction)(`element-highlight-by-x`,{start:[{trigger:`element:mouseenter`,action:`element-highlight-by-x:highlight`}],end:[{trigger:`element:mouseleave`,action:`element-highlight-by-x:reset`}]}),(0,h.registerInteraction)(`element-highlight-by-color`,{start:[{trigger:`element:mouseenter`,action:`element-highlight-by-color:highlight`}],end:[{trigger:`element:mouseleave`,action:`element-highlight-by-color:reset`}]})})),xN=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var r=n(a()),i=n(bM()),o=n(_M()),s=n(_O()),c=n(hE()),l=HA(),u=n(XM()),d=n(SM());tN(),bN();var f=n(EM());(0,l.registerGeometryLabel)(`base`,s.default);var p=[`line`,`area`],m=function(){function e(){this.config={}}return e.prototype.setView=function(e){this.view=e,this.rootChart=e.rootChart||e},e.prototype.createGeomInstance=function(e,t){this.geom=this.view[e](t);var n=t.sortable;this.geom.__beforeMapping=this.geom.beforeMapping,this.geom.beforeMapping=function(t){var r=this.getXScale();return n!==!1&&t&&t[0]&&p.includes(e)&&[`time`,`timeCat`].includes(r.type)&&this.sort(t),this.__beforeMapping(t)},this.GemoBaseClassName=e},e.prototype.update=function(e,t){var n=this;this.geom||(this.setView(t.context),this.createGeomInstance(t.GemoBaseClassName,e),this.interactionTypes=t.interactionTypes),(0,u.default)(this.config,e,[`position`,`shape`,`color`,`label`,`style`,`tooltip`,`size`,`animate`,`state`,`customInfo`],function(e,t){var r;(0,d.default)(!(t===`label`&&e[0]===!0),`label 值类型错误,应为false | LabelOption | FieldString`),(r=n.geom)[t].apply(r,e)}),(0,u.default)(this.config,e,[`adjust`],function(e,t){(0,i.default)(e[0])?n.geom[t](e[0]):n.geom[t](e)}),this.geom.state(e.state||{}),this.rootChart.on(`processElemens`,function(){(0,o.default)(e.setElements)&&e.setElements(n.geom.elements)}),(0,u.default)(this.config,e,this.interactionTypes,function(e,t){e[0]?n.rootChart.interaction(t):n.rootChart.removeInteraction(t)}),this.config=(0,f.default)(e)},e.prototype.destroy=function(){this.geom&&=(this.geom.destroy(),null),this.config={}},e}(),h=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.interactionTypes=[],n.geomHelper=new m,n}return n.prototype.componentWillUnmount=function(){this.geomHelper.destroy()},n.prototype.render=function(){var e=this;return this.geomHelper.update(this.props,this),r.default.createElement(r.default.Fragment,null,r.default.Children.map(this.props.children,function(t){return r.default.isValidElement(t)?r.default.cloneElement(t,{parentInstance:e.geomHelper.geom}):r.default.createElement(r.default.Fragment,null)}))},n}(r.default.Component);h.contextType=c.default,e.default=h})),SN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=sO(),i=HM(),a=UM();(0,r.registerShape)(`interval`,`funnel`,{getPoints:function(e){return e.size*=2,(0,a.getRectPoints)(e)},draw:function(e,t){var r=(0,i.getStyle)(e,!1,!0),o=this.parsePath((0,a.getFunnelPath)(e.points,e.nextPoints,!1));return t.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:o}),name:`interval`})},getMarker:function(e){return{symbol:`square`,style:{r:4,fill:e.color}}}})})),CN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=sO(),i=iO(),a=HM(),o=UM();(0,r.registerShape)(`interval`,`hollow-rect`,{draw:function(e,t){var r=(0,a.getStyle)(e,!0,!1),s=t,c=e?.background;if(c){s=t.addGroup();var l=(0,a.getBackgroundRectStyle)(e),u=(0,o.getBackgroundRectPath)(e,this.parsePoints(e.points),this.coordinate);s.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},l),{path:u}),zIndex:-1,name:i.BACKGROUND_SHAPE})}var d=this.parsePath((0,o.getRectPath)(e.points)),f=s.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:d}),name:`interval`});return c?s:f},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:`circle`,style:{r:4.5,stroke:t,fill:null}}:{symbol:`square`,style:{r:4,stroke:t,fill:null}}}})})),wN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=sO(),a=HM(),o=UM(),s=sE();function c(e){var t=e.x,n=e.y,i=e.y0;return(0,r.isArray)(n)?n.map(function(e,n){return{x:(0,r.isArray)(t)?t[n]:t,y:e}}):[{x:t,y:i},{x:t,y:n}]}(0,i.registerShape)(`interval`,`line`,{getPoints:function(e){return c(e)},draw:function(e,t){var r=(0,a.getStyle)(e,!0,!1,`lineWidth`),i=(0,s.omit)((0,n.__assign)({},r),[`fill`]),c=this.parsePath((0,o.getRectPath)(e.points,!1));return t.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},i),{path:c}),name:`interval`})},getMarker:function(e){return{symbol:function(e,t,n){return[[`M`,e,t-n],[`L`,e,t+n]]},style:{r:5,stroke:e.color}}}})})),TN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=sO(),i=HM(),a=UM();(0,r.registerShape)(`interval`,`pyramid`,{getPoints:function(e){return e.size*=2,(0,a.getRectPoints)(e)},draw:function(e,t){var r=(0,i.getStyle)(e,!1,!0),o=this.parsePath((0,a.getFunnelPath)(e.points,e.nextPoints,!0));return t.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:o}),name:`interval`})},getMarker:function(e){return{symbol:`square`,style:{r:4,fill:e.color}}}})})),EN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=sO(),a=HM();function o(e){var t=e.x,n=e.y,i=e.y0,a=e.size,o,s;(0,r.isArray)(n)?(o=n[0],s=n[1]):(o=i,s=n);var c=t+a/2,l=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:l,y:o},{x:c,y:o},{x:l,y:s},{x:c,y:s}]}function s(e){return[[`M`,e[0].x,e[0].y],[`L`,e[1].x,e[1].y],[`M`,e[2].x,e[2].y],[`L`,e[3].x,e[3].y],[`M`,e[4].x,e[4].y],[`L`,e[5].x,e[5].y]]}(0,i.registerShape)(`interval`,`tick`,{getPoints:function(e){return o(e)},draw:function(e,t){var r=(0,a.getStyle)(e,!0,!1),i=this.parsePath(s(e.points));return t.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:i}),name:`interval`})},getMarker:function(e){return{symbol:function(e,t,n){return[[`M`,e-n/2,t-n],[`L`,e+n/2,t-n],[`M`,e,t-n],[`L`,e,t+n],[`M`,e-n/2,t+n],[`L`,e+n/2,t+n]]},style:{r:5,stroke:e.color}}}})})),DN=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var r=n(KM()),i=n(qM()),a=n(YM()),o=n(xN()),s=HA();(0,s.registerGeometry)(`Interval`,r.default),(0,s.registerGeometryLabel)(`interval`,i.default),(0,s.registerGeometryLabel)(`pie`,a.default),SN(),CN(),wN(),TN(),EN(),(0,s.registerInteraction)(`active-region`,{start:[{trigger:`plot:mousemove`,action:`active-region:show`}],end:[{trigger:`plot:mouseleave`,action:`active-region:hide`}]}),e.default=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.interactionTypes=[`active-region`,`element-highlight`],t.GemoBaseClassName=`interval`,t}return n}(o.default)})),ON=n(ce()),kN=n(de()),AN=n(UA()),jN=n(AM()),MN=n(VM()),NN=n(DN()),PN=n(le()),FN=n(ie()),Q=n(v()),$=o(),IN=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,options:r,title:i,dodgeBy:a=`type`})=>{let o=N(e=>e.cti.ui.graphColors.columnChart),s=N(e=>e.cti.ui.generatePDF),c=N(e=>e.cti.ui.pdfSize),l=o,u=Object.keys((0,FN.default)(e,e=>e.type)),d=P.useCallback((e,t)=>{let n=Array.isArray(e)?t:e;return l[u.indexOf(n)]},[l,r,u]),f=u;f.includes(`undefined`)&&i&&(f=[i]),f=f.map((e,t)=>({id:t,name:e,marker:{style:{fill:d(e)},symbol:`square`}}));let p=(t,n,i)=>{if(!r||!r.labelView)return t;let a=e.find(e=>e.category===t);return r.labelView===0||t===`Autres`?t:a?a.label_code:`Pas de code`},m={[n]:{formatter:t=>{let r=e.find(e=>e[n]===t);return r&&r.formattedValue?r.formattedValue:t}}};if(!e.length)return null;let h=({width:r,height:i})=>(0,$.jsxs)(jN.default,{height:i,width:r,data:e,padding:`auto`,scale:m,children:[(0,$.jsx)(MN.default,{custom:!0,items:f,visible:!0,itemName:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(AN.default,{name:t,label:{style:{fill:`rgba(0,0,0,0.85)`},formatter:p}}),(0,$.jsx)(AN.default,{name:n,label:{style:{fill:`rgba(0,0,0,0.85)`}},formatter:e=>Math.round(e)===e?e:e.toFixed(2)}),(0,$.jsx)(NN.default,{adjust:[{type:`dodge`,dodgeBy:a,marginRatio:0}],color:[`type*name`,(e,t)=>d(e,t)],position:`${t}*${n}`})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:s===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(h,{width:e,height:t})}):(0,$.jsx)(h,{width:c.width,height:c.height})})};IN.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,options:Q.default.object,title:Q.default.string};var LN=P.memo(IN,PN.default),RN=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(e){return e==null}})),zN=i((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,`__esModule`,{value:!0});var t=bM();e.default=(function(e,n,r){for(var i=0,a=t.default(n)?n.split(`.`):n;e&&i{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e}e.default=t})),HN=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return t.prototype.show=function(){var e=this.context,t=e.event,n=e.view;if(!n.isTooltipLocked()){var i=this.timeStamp,a=+new Date,o=(0,r.get)(e.view.getOptions(),`tooltip.showDelay`,16);if(a-i>o){var s=this.location,c={x:t.x,y:t.y};(!s||!(0,r.isEqual)(s,c))&&this.showTooltip(n,c),this.timeStamp=a,this.location=c}}},t.prototype.hide=function(){var e=this.context.view,t=e.getController(`tooltip`),n=this.context.event,r=n.clientX,i=n.clientY;t.isCursorEntered({x:r,y:i})||e.isTooltipLocked()||(this.hideTooltip(e),this.location=null)},t.prototype.showTooltip=function(e,t){e.showTooltip(t)},t.prototype.hideTooltip=function(e){e.hideTooltip()},t}((0,n.__importDefault)(kD()).default)})),WN=i((t=>{var n=t&&t.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.registerConnector=t.Connector=void 0;var i=jD(),a=r(UN()),o=(J(),e(q)),s=HA(),c={},l=function(){function e(e){this.cfg={shared:!0},this.chartMap={},this.state={},this.id=(0,o.uniqueId)(`bx-action`),this.type=e||`tooltip`}return e.prototype.connect=function(e,t,n){return this.chartMap[e]={chart:t,pointFinder:n},t.interaction(`connect-${this.type}-${this.id}`),this.type===`tooltip`&&this.cfg.shared&&(0,o.get)(t,[`options`,`tooltip`,`shared`])===void 0&&(0,o.set)(t,[`options`,`tooltip`,`shared`],!0),this},e.prototype.unConnect=function(e){this.chartMap[e].chart.removeInteraction(`connect-${this.type}-${this.id}`),delete this.chartMap[e]},e.prototype.destroy=function(){(0,i.unregisterAction)(`connect-${this.type}-${this.id}`)},e}();t.Connector=l;var u=function(){var e=new l(`tooltip`);return(0,s.registerAction)(`connect-tooltip-${e.id}`,function(t){n(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.CM=e,n}return r.prototype.showTooltip=function(e,t){var n=e.getTooltipItems(t)||t;(0,o.forIn)(this.CM.chartMap,function(e){var r=e.chart,i=e.pointFinder;if(!(r.destroyed||!r.visible))if(i){var a=i(n,r);a&&r.showTooltip(a)}else r.showTooltip(t)})},r.prototype.hideTooltip=function(){(0,o.forIn)(this.CM.chartMap,function(e){return e.chart.hideTooltip()})},r}(a.default)),(0,s.registerInteraction)(`connect-tooltip-${e.id}`,{start:[{trigger:`plot:mousemove`,action:`connect-tooltip-${e.id}:show`}],end:[{trigger:`plot:mouseleave`,action:`connect-tooltip-${e.id}:hide`}]}),e};t.registerConnector=function(e,t,n,r,i){var a=c[e];if(n===null&&a){a.unConnect(t);return}a?a.connect(t,n,i):(c[e]=u(),c[e].cfg.shared=!!r,c[e].connect(t,n,i))},t.default=u})),GN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getItemsOfView=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=WD(),a=oE(),o=(0,n.__importDefault)(kD()),s={fill:`#CCD6EC`,opacity:.3};function c(e,t,n){var a=(0,i.findItemsFromViewRecurisive)(e,t,n);if(a.length){a=(0,r.flatten)(a);for(var o=0,s=a;o1){for(var h=a[0],g=Math.abs(t.y-h[0].y),_=0,v=a;_g.maxY&&(g=t)):(t.minXg.maxX&&(g=t)),_.x=Math.min(t.minX,_.minX),_.y=Math.min(t.minY,_.minY),_.width=Math.max(t.maxX,_.maxX)-_.x,_.height=Math.max(t.maxY,_.maxY)-_.y});var v=t.backgroundGroup,y=t.coordinateBBox,b=void 0;if(m.isRect){var x=t.getXScale(),S=e||{},C=S.appendRatio,w=S.appendWidth;(0,r.isNil)(w)&&(C=(0,r.isNil)(C)?x.isLinear?0:.25:C,w=m.isTransposed?C*g.height:C*h.width);var T=void 0,E=void 0,D=void 0,O=void 0;m.isTransposed?(T=y.minX,E=Math.min(g.minY,h.minY)-w,D=y.width,O=_.height+w*2):(T=Math.min(h.minX,g.minX)-w,E=y.minY,D=_.width+w*2,O=y.height),b=[[`M`,T,E],[`L`,T+D,E],[`L`,T+D,E+O],[`L`,T,E+O],[`Z`]]}else{var k=(0,r.head)(f),A=(0,r.last)(f),ee=(0,a.getAngle)(k.getModel(),m).startAngle,te=(0,a.getAngle)(A.getModel(),m).endAngle,j=m.getCenter(),M=m.getRadius(),ne=m.innerRadius*M;b=(0,a.getSectorPath)(j.x,j.y,M,ee,te,ne)}if(this.regionPath)this.regionPath.attr(`path`,b),this.regionPath.show();else{var re=(0,r.get)(e,`style`,s);this.regionPath=v.addShape({type:`path`,name:`active-region`,capture:!1,attrs:(0,n.__assign)((0,n.__assign)({},re),{path:b})})}}}},t.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},t.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},t}(o.default)})),KN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.showTooltip=function(e,t){var n=(0,i.getSilbings)(e);(0,r.each)(n,function(n){var r=(0,i.getSiblingPoint)(e,n,t);n.showTooltip(r)})},t.prototype.hideTooltip=function(e){var t=(0,i.getSilbings)(e);(0,r.each)(t,function(e){e.hideTooltip()})},t}((0,n.__importDefault)(UN()).default)})),qN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(nE(),e(tE)),a=(0,n.__importDefault)(kD()),o=rE();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.show=function(){var e=this.context.event,t=this.timeStamp,n=+new Date;if(n-t>16){var i=this.location,a={x:e.x,y:e.y};(!i||!(0,r.isEqual)(i,a))&&this.showTooltip(a),this.timeStamp=n,this.location=a}},t.prototype.hide=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(e){var t=this.context.event.target;if(t&&t.get(`tip`)){this.tooltip||this.renderTooltip();var r=t.get(`tip`);this.tooltip.update((0,n.__assign)({title:r},e)),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var e,t=this.context.view,a=t.canvas,s={start:{x:0,y:0},end:{x:a.get(`width`),y:a.get(`height`)}},c=t.getTheme(),l=(0,r.get)(c,[`components`,`tooltip`,`domStyles`],{}),u=new o.HtmlTooltip({parent:a.get(`el`).parentNode,region:s,visible:!1,crosshairs:null,domStyles:(0,n.__assign)({},(0,r.deepMix)({},l,(e={},e[i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":`50%`},e[i.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":`break-all`},e)))});u.init(),u.setCapture(!1),this.tooltip=u},t}(a.default)})),JN=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(GN()),r=t(KN()),i=t(UN()),a=t(qN()),o=HA();(0,o.registerAction)(`tooltip`,i.default),(0,o.registerAction)(`sibling-tooltip`,r.default),(0,o.registerAction)(`active-region`,n.default),(0,o.registerAction)(`ellipsis-text`,a.default),(0,o.registerInteraction)(`tooltip`,{start:[{trigger:`plot:mousemove`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`plot:touchmove`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:`plot:mouseleave`,action:`tooltip:hide`},{trigger:`plot:leave`,action:`tooltip:hide`},{trigger:`plot:touchend`,action:`tooltip:hide`}]}),(0,o.registerInteraction)(`ellipsis-text`,{start:[{trigger:`legend-item-name:mousemove`,action:`ellipsis-text:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`legend-item-name:touchstart`,action:`ellipsis-text:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`axis-label:mousemove`,action:`ellipsis-text:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`axis-label:touchstart`,action:`ellipsis-text:show`,throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:`legend-item-name:mouseleave`,action:`ellipsis-text:hide`},{trigger:`legend-item-name:touchend`,action:`ellipsis-text:hide`},{trigger:`axis-label:mouseleave`,action:`ellipsis-text:hide`},{trigger:`axis-label:touchend`,action:`ellipsis-text:hide`}]}),(0,o.registerInteraction)(`tooltip-click`,{start:[{trigger:`plot:click`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`plot:touchstart`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:`plot:leave`,action:`tooltip:hide`}]});var s=function(e){e.view.isTooltipLocked()?e.view.unlockTooltip():e.view.lockTooltip()};(0,o.registerInteraction)(`tooltip-lock`,{start:[{trigger:`plot:click`,action:s},{trigger:`plot:touchstart`,action:s},{trigger:`plot:touchmove`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`plot:mousemove`,action:`tooltip:show`}],end:[{trigger:`plot:click`,action:`tooltip:hide`},{trigger:`plot:leave`,action:`tooltip:hide`},{trigger:`plot:touchend`,action:`tooltip:hide`}]}),(0,o.registerInteraction)(`sibling-tooltip`,{start:[{trigger:`plot:mousemove`,action:`sibling-tooltip:show`}],end:[{trigger:`plot:mouseleave`,action:`sibling-tooltip:hide`}]})})),YN=i((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,`__esModule`,{value:!0});var t=vM(),n=_E();e.default=function(e){if(!t.default(e)||!n.default(e,`Object`))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}})),ZN=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=vE(),n=XN(),r=5;function i(e,a,o,s){for(var c in o||=0,s||=r,a)if(a.hasOwnProperty(c)){var l=a[c];l!==null&&n.default(l)?(n.default(e[c])||(e[c]={}),o{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.View=void 0;var r=n(a()),i=n(fM()),o=n(hE()),s=n(QN()),c=e.View=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.name=`view`,t}return n.prototype.componentWillUnmount=function(){this.viewHelper.destroy(),this.viewHelper=null},n.prototype.render=function(){return this.viewHelper||=new s.default(this.context.chart),this.viewHelper.update(this.props),r.default.createElement(o.default.Provider,{value:this.viewHelper.view},r.default.createElement(r.default.Fragment,null,this.props.children))},n.defaultProps={visible:!0,preInteractions:[],filter:[]},n}(r.default.Component);c.contextType=i.default,e.default=c})),eP=n(zN()),tP=n(YN()),nP=n($N()),rP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`})=>{let r=N(e=>e.cti.ui.graphColors.pieChart),i=N(e=>e.cti.ui.generatePDF),a=N(e=>e.cti.ui.pdfSize),o={[n]:{formatter:t=>{let r=e.find(e=>e[n]===t);return r&&r.formattedValue?r.formattedValue:t}}},s=(0,FN.default)(e,e=>e.type),c=({width:e,height:i,noLegend:a,dataSet:s,title:c})=>(0,$.jsxs)(jN.default,{data:s,width:e,height:i-50,padding:`auto`,scale:o,children:[(0,$.jsx)(`h3`,{className:`graph-title graph__doublePieChart-title`,children:c}),(0,$.jsx)(MN.default,{name:t,position:`right`,visible:!a}),(0,$.jsx)(tP.default,{showTitle:!1}),(0,$.jsxs)(nP.default,{data:s,animate:!0,children:[(0,$.jsx)(eP.default,{type:`theta`,radius:.85}),(0,$.jsx)(AN.default,{visible:!1}),(0,$.jsx)(NN.default,{adjust:`stack`,style:{lineWidth:1,stroke:`#f0f2f5`},position:n,color:[t,[...r]]}),(0,$.jsx)(tP.default,{shared:!0})]})]});return(0,$.jsxs)(`div`,{className:`graph-wrapper`,children:[i===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(c,{width:e/2,height:t,noLegend:!0,dataSet:Object.values(s)[0],title:Object.keys(s)[0]})}):(0,$.jsx)(c,{width:a.width/2,height:a.height-200,noLegend:!0,dataSet:Object.values(s)[0],title:Object.keys(s)[0]}),i===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(c,{width:e/2,height:t,dataSet:Object.values(s)[1],title:Object.keys(s)[1]})}):(0,$.jsx)(c,{width:a.width/2,height:a.height-200,noLegend:!0,dataSet:Object.values(s)[1],title:Object.keys(s)[1]})]})};rP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string};var iP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getSmoothViolinPath=t.getViolinPath=t.getPathPoints=void 0;var n=(J(),e(q)),r=MD();function i(e){return e?!1:e==null||isNaN(e)}function a(e){if((0,n.isArray)(e))return i(e[1].y);var t=e.y;return(0,n.isArray)(t)?i(t[0]):i(t)}function o(e,t,n){if(t===void 0&&(t=!1),n===void 0&&(n=!0),!e.length||e.length===1&&!n)return[];if(t){for(var r=[],i=0,o=e.length;i{Object.defineProperty(t,`__esModule`,{value:!0}),t.splitPoints=void 0;var n=(J(),e(q));function r(e){var t=e.x;return((0,n.isArray)(e.y)?e.y:[e.y]).map(function(e,r){return{x:(0,n.isArray)(t)?t[r]:t,y:e}})}t.splitPoints=r})),oP=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getLineMarker=void 0;var t={line:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t]]},dot:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t]]},dash:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t]]},smooth:function(e,t,n){return[[`M`,e-n,t],[`A`,n/2,n/2,0,1,1,e,t],[`A`,n/2,n/2,0,1,0,e+n,t]]},hv:function(e,t,n){return[[`M`,e-n-1,t-2.5],[`L`,e,t-2.5],[`L`,e,t+2.5],[`L`,e+n+1,t+2.5]]},vh:function(e,t,n){return[[`M`,e-n-1,t+2.5],[`L`,e,t+2.5],[`L`,e,t-2.5],[`L`,e+n+1,t-2.5]]},hvh:function(e,t,n){return[[`M`,e-(n+1),t+2.5],[`L`,e-n/2,t+2.5],[`L`,e-n/2,t-2.5],[`L`,e+n/2,t-2.5],[`L`,e+n/2,t+2.5],[`L`,e+n+1,t+2.5]]},vhv:function(e,t){return[[`M`,e-5,t+2.5],[`L`,e-5,t],[`L`,e,t],[`L`,e,t-3],[`L`,e,t+3],[`L`,e+6.5,t+3]]}};function n(e,n){var r=e.color;return{symbol:t[n],style:{lineWidth:2,r:6,stroke:r}}}e.getLineMarker=n})),sP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=sO(),i=iP(),a=HM(),o=MD(),s=aP(),c=oP();function l(e,t,n){for(var r=e.isStack,o=e.connectNulls,s=e.isInCircle,c=e.showSinglePoint,l=(0,a.getStyle)(e,!0,!1,`lineWidth`),u=(0,i.getPathPoints)(e.points,o,c),d=[],p=0,m=u.length;p{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=Y(),i=(0,n.__importDefault)(fO()),a=(0,n.__importDefault)(aO());sP();var o=lO(),s=dO();t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;n.type=`path`,n.shapeType=`line`;var r=t.connectNulls,i=r===void 0?!1:r,a=t.showSinglePoint,o=a===void 0?!0:a;return n.connectNulls=i,n.showSinglePoint=o,n}return t.prototype.updateElements=function(e,t){t===void 0&&(t=!1);for(var n=new Map,r=new Map,i=[],c=0,l=0;l{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(0,n.__importDefault)(cP());sP(),t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;n.type=`line`;var r=t.sortable;return n.sortable=r===void 0?!1:r,n}return t}(r.default)})),uP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=sO(),a=iP(),o=HM(),s=oP(),c=function(e,t,n){var r=e.x,i=e.y,a=t.x,o=t.y,s;switch(n){case`hv`:s=[{x:a,y:i}];break;case`vh`:s=[{x:r,y:o}];break;case`hvh`:var c=(a+r)/2;s=[{x:c,y:i},{x:c,y:o}];break;case`vhv`:var l=(i+o)/2;s=[{x:r,y:l},{x:a,y:l}];break;default:break}return s};function l(e,t){var n=[];return(0,r.each)(e,function(r,i){var a=e[i+1];if(n.push(r),a){var o=c(r,a,t);n=n.concat(o)}}),n}function u(e){return e.map(function(e,t){return t===0?[`M`,e.x,e.y]:[`L`,e.x,e.y]})}function d(e,t){var i=(0,a.getPathPoints)(e.points,e.connectNulls,e.showSinglePoint),s=[];return(0,r.each)(i,function(e){var n=l(e,t);s=s.concat(u(n))}),(0,n.__assign)((0,n.__assign)({},(0,o.getStyle)(e,!0,!1,`lineWidth`)),{path:s})}(0,r.each)([`hv`,`vh`,`hvh`,`vhv`],function(e){(0,i.registerShape)(`line`,e,{draw:function(t,n){var r=d(t,e);return n.addShape({type:`path`,attrs:r,name:`line`})},getMarker:function(t){return(0,s.getLineMarker)(t,e)}})})})),dP=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var r=n(lP());uP();var i=n(xN()),a=HA();uP(),(0,a.registerGeometry)(`Line`,r.default),e.default=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.GemoBaseClassName=`line`,t}return n}(i.default)})),fP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.drawPoints=t.HOLLOW_SHAPES=t.SHAPES=void 0;var n=(R(),e(F)),r=bO(),i=HM();t.SHAPES=[`circle`,`square`,`bowtie`,`diamond`,`hexagon`,`triangle`,`triangle-down`],t.HOLLOW_SHAPES=[`cross`,`tick`,`plus`,`hyphen`,`line`];function a(e,t,a,o,s){var c=(0,i.getStyle)(t,s,!s,`r`),l=e.parsePoints(t.points),u=l[0];if(t.isStack)u=l[1];else if(l.length>1){for(var d=a.addGroup(),f=0,p=l;f{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=bO(),i=sO(),a=aP(),o=fP(),s=(0,i.registerShapeFactory)(`point`,{defaultShapeType:`hollow-circle`,getDefaultPoints:function(e){return(0,a.splitPoints)(e)}});(0,n.each)(o.SHAPES,function(e){(0,i.registerShape)(`point`,`hollow-`+e,{draw:function(t,n){return(0,o.drawPoints)(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:r.MarkerSymbols[e]||e,style:{r:4.5,stroke:n,fill:null}}}})}),t.default=s})),mP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(0,n.__importDefault)(fO());pP(),t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`point`,t.shapeType=`point`,t.generatePoints=!0,t}return t.prototype.getDrawCfg=function(t){var r=e.prototype.getDrawCfg.call(this,t);return(0,n.__assign)((0,n.__assign)({},r),{isStack:!!this.getAdjust(`stack`)})},t}(r.default)})),hP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=bO(),i=sO(),a=fP();(0,n.each)(a.HOLLOW_SHAPES,function(e){(0,i.registerShape)(`point`,e,{draw:function(t,n){return(0,a.drawPoints)(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:r.MarkerSymbols[e],style:{r:4.5,stroke:n,fill:null}}}})})})),gP=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=sO(),n=HM();(0,t.registerShape)(`point`,`image`,{draw:function(e,t){var r=(0,n.getStyle)(e,!1,!1,`r`).r,i=this.parsePoints(e.points),a=i[0];if(e.isStack)a=i[1];else if(i.length>1){for(var o=t.addGroup(),s=0,c=i;s{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=bO(),i=sO(),a=fP();(0,n.each)(a.SHAPES,function(e){(0,i.registerShape)(`point`,e,{draw:function(t,n){return(0,a.drawPoints)(this,t,n,e,!1)},getMarker:function(t){var n=t.color;return{symbol:r.MarkerSymbols[e]||e,style:{r:4.5,fill:n}}}})})})),vP=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var r=n(mP()),i=n(xN()),a=HA();hP(),gP(),_P(),(0,a.registerGeometry)(`Point`,r.default),e.default=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.GemoBaseClassName=`point`,t}return n}(i.default)})),yP=n(dP()),bP=n(vP()),xP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,options:r,title:i,series:a})=>{let o=N(e=>e.cti.ui.graphColors.pieChart),s=N(e=>e.cti.ui.generatePDF),c=N(e=>e.cti.ui.pdfSize),l=o,u=Object.keys((0,FN.default)(e,e=>e.type)),d=P.useCallback(e=>{let t=Array.isArray(e)?e[0].replace(/"/gm,``):e;return l[u.indexOf(t)]},[l,r,u]),f=u;f.includes(`undefined`)&&i&&(f=[i]),f=f.map((e,t)=>({id:t,name:e,marker:{style:{fill:d(e)},symbol:`square`}}));let p=(t,n,i)=>{if(!r||!r.labelView)return t;let a=e.find(e=>e.category===t);return r.labelView===0||t===`Autres`?t:a?a.label_code:`Pas de code`},m=[],h=[],g=[],_=[];Object.values(a).forEach(e=>{h.push(e.displayName),e.type===`line`?g.push(e.displayName):_.push(e.displayName)});let v=(0,FN.default)(e,e=>e.name);for(let e in v){let t={name:e},n=v[e];h.forEach(e=>{let r=n.find(t=>t.type===e);r&&(t[e]=r.value,t[`${e}_formatted`]=r.formattedValue)}),m.push(t)}let y=e.map(e=>e.value),b=Math.max(...y)*1.1,x=Math.min(...y)*.9,S={};if(h.forEach(e=>{S[e]={min:x,max:b,formatter:t=>{let n=m.find(n=>n[e]===t);return n?n[`${e}_formatted`]??t:t}}}),!e.length)return null;let C=({width:e,height:r})=>(0,$.jsxs)(jN.default,{height:r,width:e,data:m,padding:`auto`,scale:S,children:[(0,$.jsx)(ne,{shared:!0}),(0,$.jsx)(MN.default,{custom:!0,items:f,visible:!0,itemName:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(AN.default,{name:t,label:{style:{fill:`rgba(0,0,0,0.85)`},formatter:p}}),(0,$.jsx)(AN.default,{name:n,label:{style:{fill:`rgba(0,0,0,0.85)`}},formatter:e=>Math.round(e)===e?e:e.toFixed(2)}),_.map(e=>(0,$.jsx)(NN.default,{color:[`"${e}"`,e=>d(e)],position:`${t}*${e}`},e)),g.map(e=>(0,$.jsxs)(`div`,{children:[(0,$.jsx)(yP.default,{position:`${t}*${e}`,color:[`"${e}"`,e=>d(e)],size:3,shape:`smooth`}),(0,$.jsx)(bP.default,{color:[`"${e}"`,e=>d(e)],position:`${t}*${e}`,size:3,shape:`smooth`})]},e))]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:s===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(C,{width:e,height:t})}):(0,$.jsx)(C,{width:c.width,height:c.height})})};xP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,options:Q.default.object,title:Q.default.string,serie:Q.default.object};var SP=P.memo(xP,PN.default),CP,wP=[`F - Féminin`,`Féminin`,`féminin`,`Feminin`,`feminin`,`F`],TP=[`M`,`Masculin`,`masculin`,`M - Masculin`];CP={men:TP,women:wP,all:TP.concat(wP)};var EP=CP,DP=(e,t)=>t.filter(function(t){let n=new Date(t.date_reference);return n.getFullYear()===e.getFullYear()&&n.getMonth()<=e.getMonth()}),OP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`})=>{let r=N(e=>e.cti.ui.graphColors.pieChart),i=N(e=>e.cti.ui.graphColors.sexChart);e.length===2&&EP.all.includes(e[0].name)&&(r=[],e.forEach(e=>{EP.men.includes(e.name)&&r.push(i[0]),EP.women.includes(e.name)&&r.push(i[1])}));let a=N(e=>e.cti.ui.generatePDF),o=N(e=>e.cti.ui.pdfSize),s=r,c={[n]:{formatter:t=>{let r=e.find(e=>e[n]===t);return r&&r.formattedValue?r.formattedValue:t}}},l=({width:r,height:i})=>(0,$.jsxs)(jN.default,{data:e,width:r,height:i,padding:`auto`,scale:c,children:[(0,$.jsx)(MN.default,{name:t,position:`right`}),(0,$.jsx)(tP.default,{showTitle:!1}),(0,$.jsxs)(nP.default,{data:e,animate:!0,children:[(0,$.jsx)(eP.default,{type:`theta`,radius:.85}),(0,$.jsx)(AN.default,{visible:!1}),(0,$.jsx)(NN.default,{adjust:`stack`,style:{lineWidth:1,stroke:`#f0f2f5`},position:n,color:[t,[...s]]}),(0,$.jsx)(tP.default,{shared:!0,title:(e,t)=>t.tooltipLabel??e})]})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:a===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(l,{width:e,height:t})}):(0,$.jsx)(l,{width:o.width,height:o.height})})};OP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string};var kP=n(A()),AP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,includeSeries:r=[]})=>{let i=N(e=>e.cti.ui.graphColors.lineChart),a=N(e=>e.cti.ui.graphColors.sexChart),o=N(e=>e.cti.ui.generatePDF),s=N(e=>e.cti.ui.pdfSize),c=(0,kP.default)().subtract(1,`months`),l=e.map(e=>e.value),u=i,d,f,p=Object.keys((0,FN.default)(e,e=>e.type)),m=e.map(e=>({...e}));r.length?(m=m.filter(e=>r.includes(Number(e.serie))),m=DP(new Date(c),m),l=m.map(e=>e.value),f=Math.max(...l)*1.1,d=Math.min(...l)*.9):(f=Math.max(...l)*1.1,d=Math.min(...l)*.9);let h=e=>{if(EP.men.includes(e))return a[0];if(EP.women.includes(e))return a[1];let t=p.indexOf(e);return t===-1&&(t=0),u[t]},g={[n]:{formatter:e=>{let t=m.find(t=>t[n]===e);return t&&t.formattedValue?t.formattedValue:e},min:d,max:f}},_=({width:e,height:r})=>(0,$.jsxs)(jN.default,{data:m,width:e,height:r,padding:`auto`,scale:g,children:[(0,$.jsx)(MN.default,{}),(0,$.jsx)(AN.default,{name:t}),(0,$.jsx)(AN.default,{name:n}),(0,$.jsx)(yP.default,{type:`line`,shape:`smooth`,position:`${t}*${n}`,size:2,color:[`type`,e=>h(e)]}),(0,$.jsx)(bP.default,{position:`${t}*${n}`,size:4,shape:`circle`,color:[`type`,e=>h(e)],style:{stroke:`#fff`,lineWidth:1}})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:o===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(_,{width:e,height:t})}):(0,$.jsx)(_,{width:s.width,height:s.height})})};AP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,includeSeries:Q.default.arrayOf(Q.default.number)};var jP=P.memo(AP,PN.default),MP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,options:r})=>{let i=N(e=>e.cti.ui.graphColors.columnChart),a=N(e=>e.cti.ui.generatePDF),o=N(e=>e.cti.ui.pdfSize),[s,c]=(0,P.useState)(0),l=Object.keys((0,FN.default)(e,e=>e.type));(0,P.useEffect)(()=>{let t=e.map(e=>e.value),n=Math.max(...t),r=Math.min(...t);c(Math.max(n,Math.abs(r)))},[e]);let u=e=>i[l.indexOf(e)],d=(t,n,i)=>{if(!r||!r.labelView)return t;let a=e.find(e=>e.category===t);return r.labelView===0||t===`Autres`?t:a?a.label_code:`Pas de code`},f={[t]:{formatter:e=>e<0?-e:e,nice:!0,min:-s,max:s}};if(!e.length)return null;let p=({width:r,height:i})=>(0,$.jsxs)(jN.default,{height:i,width:r,data:e,autoFit:!0,children:[(0,$.jsx)(MN.default,{itemName:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsxs)(nP.default,{data:e,scale:f,animate:!0,children:[(0,$.jsx)(AN.default,{name:n,label:{offset:12,formatter:d,style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(AN.default,{name:`value`,label:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(eP.default,{transpose:!0}),(0,$.jsx)(NN.default,{adjust:[{type:`stack`}],color:[`type`,e=>u(e)],position:`${n}*${t}`})]})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:a===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(p,{width:e,height:t})}):(0,$.jsx)(p,{width:o.width,height:o.height})})};MP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,options:Q.default.object};var NP=P.memo(MP,PN.default),PP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,options:r,title:i})=>{let a=N(e=>e.cti.ui.graphColors.columnChart),o=N(e=>e.cti.ui.generatePDF),s=N(e=>e.cti.ui.pdfSize),c=a,l=Object.keys((0,FN.default)(e,e=>e.type)),u=P.useCallback((e,t)=>{let n=Array.isArray(e)?t:e;return c[l.indexOf(n)]},[c,r,l]),d=l;d.includes(`undefined`)&&i&&(d=[i]),d=d.map((e,t)=>({id:t,name:e,marker:{style:{fill:u(e)},symbol:`square`}}));let f=(t,n,i)=>{if(!r||!r.labelView)return t;let a=e.find(e=>e.category===t);return r.labelView===0||t===`Autres`?t:a?a.label_code:`Pas de code`},p={[n]:{formatter:t=>{let r=e.find(e=>e[n]===t);return r&&r.formattedValue?r.formattedValue:t}}};if(!e.length)return null;let m=({width:r,height:i})=>(0,$.jsxs)(jN.default,{height:i,width:r,data:e,padding:`auto`,scale:p,children:[(0,$.jsx)(MN.default,{custom:!0,items:d,visible:!0,itemName:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(AN.default,{name:t,label:{style:{fill:`rgba(0,0,0,0.85)`},formatter:f}}),(0,$.jsx)(AN.default,{name:n,label:{style:{fill:`rgba(0,0,0,0.85)`}},formatter:e=>Math.round(e)===e?e:e.toFixed(2)}),(0,$.jsx)(NN.default,{adjust:[{type:`stack`}],color:[`type*name`,(e,t)=>u(e,t)],position:`${t}*${n}`}),(0,$.jsx)(tP.default,{shared:!0,title:(e,t)=>t.tooltipLabel??e})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:o===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(m,{width:e,height:t})}):(0,$.jsx)(m,{width:s.width,height:s.height})})};PP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,options:Q.default.object,title:Q.default.string};var FP=P.memo(PP,PN.default),IP=P.memo(({charts:e,data:t,tabName:n,similiTabName:r,height:i})=>{let{view:a}=ue();function o(e,i=!1){return t?e.map((e,o)=>{if(e.subCharts){let c=Object.values(e.subCharts).filter(e=>e.visibleCondition?ae(e.visibleCondition,a):!0);return(0,$.jsx)(`div`,{style:{height:`100%`},children:(0,$.jsx)(`div`,{className:`graphs`,tabname:(0,ON.default)(n),similitabname:(0,ON.default)(r),rendertypechart:`filteredSubcharts`,carousel:i?`true`:null,children:s(c,t)})},o)}else{let a;return a=e.serieIsCategory&&e.serieIsCategory===`true`?c(t,Object.values(e.series),e):l(t,e),!a||a.length<1?null:(0,$.jsx)(`div`,{style:{height:`100%`},children:(0,$.jsx)(`div`,{className:`graphs`,tabname:(0,ON.default)(n),similitabname:(0,ON.default)(r),rendertypechart:`chart`,carousel:i?`true`:null,children:f(e,a)})},o)}}):null}function s(e,t){return e.map((e,n)=>{let r=Object.values(e.series),i;return i=e.serieIsCategory!==void 0&&e.serieIsCategory===`true`?c(t,r,e):l(t,e),!i||i.length<1?null:f(e,i,n)})}function c(e,t,r){let[i,o]=e,s=[],c;r.condition&&(c=r.condition);let l=i;c&&(l=i.filter(e=>{try{return ae(c,a,e)}catch(e){return console.log(c),console.log(e),!0}}));let d=l;if(r.sortField&&r.sortField&&d.every(e=>e[r.sortField])){let e=r.sortSeq===`D`?`desc`:`asc`;d=E(d,r.sortField,e)}return r.fromTotal===`true`&&(d=o),r.maxItems&&(d=d.slice(0,Number(r.maxItems))),d.forEach((e,i)=>{t.forEach(t=>{let i={};i.name=t.displayName,t.displayNameCalc&&t.displayNameCalc===`true`&&(i.name=ae(t.displayName,a));let c=t.field;i.value=u(c,[e],r,o),i.formattedValue=i.value;let l=a.run.data[n];if(l){let e=l.datagrid.columns[t.field];if(e){let t=e.outputFormat;if(t&&t!==``){let t=e.outputFormat.trim();/^=/gm.test(t)&&(t=ae(t,a)),i.formattedValue=oe({type:e.type,format:t,data:i.value})}}}let d=r.categories[0].field;d===`CODTXT`&&e.COD?.sanitizedText&&e.TXT?.sanitizedText?i.type=`${e.COD.sanitizedText}-${e.TXT.sanitizedText}`:i.type=e[d]?.sanitizedText,i.type||=r.title,s.push(i)})}),s=s.filter(e=>!(e.name===``&&e.value===0)),s}function l(e,t){let[r]=e,i=Object.values(t.series).filter(e=>e.visible!==`false`),o=[],s;t.condition&&(s=t.condition);let c=r;s&&(c=r.filter(e=>{let t={};if(e&&Object.values(e).some(e=>e.text))for(let n in e)t[n]=e[n].text?e[n].text:e[n];return ae(s,a,t)})),c=p(c,t);let l=[],f=[],m=[],h={};if(t.categories[0].items)l=t.categories[0].items.map(e=>e.field),f=t.categories[0].items.map(e=>e.displayNameCalc===`true`?ae(e.displayName,a):e.displayName),l.forEach(e=>h[e]=c);else{let e=t.categories[0].field,n=e===`CODTXT`?`COD`:e;h=(0,FN.default)(c,e=>{let t=e[n];return t?.sanitizedText??t??``}),e===`CODTXT`?(e=`COD`,f=Object.values(h).map(e=>e[0].COD&&e[0].TXT?`${e[0].COD.sanitizedText??e[0].COD} - ${e[0].TXT.sanitizedText??e[0].TXT}`:e[0].TXT.sanitizedText??e[0].TXT)):(f=Object.values(h).map(t=>{let n=t[0][e];return n?.sanitizedText??n??``}),m=Object.values(h).map(e=>e[0].COD&&e[0].TXT?`${e[0].COD.sanitizedText??e[0].COD} - ${e[0].TXT.sanitizedText??e[0].TXT}`:e[0]?.TXT?.sanitizedText??e[0].TXT)),l=Object.keys(h)}if(l.forEach((e,r)=>{i.forEach(i=>{let s=h[e];i.condition&&(s=s.filter(e=>{try{return ae(i.condition,a,e)}catch(e){return console.log(i.condition),console.log(e),!0}}));let c=i.displayName;i.displayNameCalc&&i.displayNameCalc===`true`&&(c=ae(c,a));let l=u(i.field??e,s,t),d=l,p=a.run.data[n];if(p){let e=p.datagrid.columns[i.field];if(e){let t=e.outputFormat;if(t&&t!==``){let t=e.outputFormat.trim();/^=/gm.test(t)&&(t=ae(t,a)),d=oe({type:e.type,format:t,data:l})}}}let g={name:f[r],tooltipLabel:m[r]??null,type:c,value:u(i.field??e,s,t),formattedValue:d};t?.sortField!==``&&h[e].length===1?g[t.sortField]=h[e][0][t.sortField]:h[e].length===1&&(g.COD=h[e][0].COD),o.push(g)})}),t.sortField&&t.softField!==``){let e,n=t.sortField;if(n&&o.every(e=>e[n])){let r=t.sortSeq===`D`?`desc`:`asc`;e=E(o,n,r)}else e=d(o);o=e}return o}function u(e,t,r,i=[]){let o=a.run.data[n].datagrid.columns,s=Object.values(o).find(t=>t.dataField===e),c=!1;r.fromTotal&&r.fromTotal===`true`&&(c=!0);let l=0;if(c){let t=i.find(e=>e.OID===`-9999999`);t&&t[e]&&!isNaN(parseFloat(t[e].text))?(l=parseFloat(t[e].text),s&&s.outputFormat&&(l=l.toFixed(re(s.outputFormat)),l=Number(l))):t[e]&&!isNaN(parseFloat(t[e]))&&(l=parseFloat(t[e]),s&&s.outputFormat&&(l=l.toFixed(re(s.outputFormat)),l=Number(l)))}else l=0,t.forEach(t=>{t[e]&&!isNaN(Number(t[e].text))?l+=Number(t[e].text):t[e]&&!isNaN(Number(t[e]))&&(l+=Number(t[e]))});return Math.round(l)===l?l:Number(l.toFixed(2))}function d(e){let t=(0,FN.default)(e,e=>e.name);t=Object.values(t).map(e=>({name:e[0].name,total:e.reduce((e,t)=>t.value+e,0)}));let n=Object.values((0,kN.default)(t,e=>e.total).reverse());return n=n.map(e=>e.name),e.sort((e,t)=>n.indexOf(e.name)-n.indexOf(t.name))}function f(e,t,n=0){let r=t;switch(e.type){case`mixedChart`:return(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(SP,{data:r,title:e.title,series:e.series},n)]},n);case`columnChart`:return e.subType&&e.subType===`stacked`?(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(FP,{data:r,title:e.title},n)]},n):(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(LN,{data:r,title:e.title},n)]},n);case`pieChart`:return(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(OP,{data:r,title:e.title},n)]},n);case`pieChart2`:return(0,$.jsx)(`div`,{className:`sub-graph`,children:(0,$.jsx)(rP,{data:r,title:e.title},n)},n);case`lineChart`:return(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(jP,{data:r,title:e.title},n)]},n);case`barChart`:return e.subType===`overlaid`?(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(NP,{data:r,title:e.title,yFieldName:`name`,xFieldName:`value`},n)]},n):(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(FP,{data:r,title:e.title},n)]},n);default:return(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(`h2`,{children:`Type de graphique non disponible`})]},n)}}function p(e,t){let n=[...e],r=`COD`;if(t.sortField===``?t.maxItemsSortOn!==``&&(r=t.maxItemsSortOn):r=t.sortField,r&&n.every(e=>e[r])){let e=t.sortSeq===`D`?`desc`:`asc`,i=E(n,r,e);if(t.maxItems)i=i.slice(0,Number(t.maxItems));else switch(t.type){case`piechart`:return i=i.slice(0,12);case`linechart`:return i=i.slice(0,5);default:return i=i.slice(0,20)}return i}else return d(n)}if(!t)return null;let m=e.filter(e=>e.visibleCondition?ae(e.visibleCondition,a):!0);if(i===0)return null;if(t&&m.length>1)return(0,$.jsx)(ft,{tabPosition:`right`,forceRender:!0,autoplay:!1,autoplaySpeed:7e3,isCarousel:!0,children:o(m,!0)});if(t&&m.length===1){let e=m[0];if(e.subCharts){let i=Object.values(e.subCharts).filter(e=>e.visibleCondition?ae(e.visibleCondition,a):!0);return(0,$.jsx)(`div`,{className:`graphs`,tabname:(0,ON.default)(n),similitabname:(0,ON.default)(r),rendertypechart:`filteredChart`,children:s(i,t)})}else{let i;return i=e.serieIsCategory===`true`?c(t,Object.values(e.series),e):l(t,e),!i||i.length<1?null:(0,$.jsx)(`div`,{className:`graphs`,tabname:(0,ON.default)(n),similitabname:(0,ON.default)(r),rendertypechart:`formattedChart`,children:f(e,i)})}}else return null});export{IP as default};