(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[0],{"0016":function(t,e,i){"use strict";i("ddb0");var n=i("2b0e"),r=i("6642"),o=i("e2fa"),a=i("87e8"),s=i("dde5");const l="0 0 24 24",c=t=>t,u=t=>`ionicons ${t}`,h={"mdi-":t=>`mdi ${t}`,"icon-":c,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":u,"ion-ios":u,"ion-logo":u,"iconfont ":c,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},d={o_:"-outlined",r_:"-round",s_:"-sharp"},p={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},f=new RegExp("^("+Object.keys(h).join("|")+")"),g=new RegExp("^("+Object.keys(d).join("|")+")"),m=new RegExp("^("+Object.keys(p).join("|")+")"),v=/^[Mm]\s?[-+]?\.?\d/,y=/^img:/,b=/^svguse:/,_=/^ion-/,x=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;e["a"]=n["a"].extend({name:"QIcon",mixins:[a["a"],r["a"],o["a"]],props:{tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},computed:{classes(){return"q-icon"+(!0===this.left?" on-left":"")+(!0===this.right?" on-right":"")+(void 0!==this.color?` text-${this.color}`:"")},type(){let t,e=this.name;if("none"===e||!e)return{none:!0};if(void 0!==this.$q.iconMapFn){const t=this.$q.iconMapFn(e);if(void 0!==t){if(void 0===t.icon)return{cls:t.cls,content:void 0!==t.content?t.content:" "};if(e=t.icon,"none"===e||!e)return{none:!0}}}if(!0===v.test(e)){const[t,i=l]=e.split("|");return{svg:!0,viewBox:i,nodes:t.split("&&").map((t=>{const[e,i,n]=t.split("@@");return this.$createElement("path",{attrs:{d:e,transform:n},style:i})}))}}if(!0===y.test(e))return{img:!0,src:e.substring(4)};if(!0===b.test(e)){const[t,i=l]=e.split("|");return{svguse:!0,src:t.substring(7),viewBox:i}}let i=" ";const n=e.match(f);if(null!==n)t=h[n[1]](e);else if(!0===x.test(e))t=e;else if(!0===_.test(e))t=`ionicons ion-${!0===this.$q.platform.is.ios?"ios":"md"}${e.substr(3)}`;else if(!0===m.test(e)){t="notranslate material-symbols";const n=e.match(m);null!==n&&(e=e.substring(6),t+=p[n[1]]),i=e}else{t="notranslate material-icons";const n=e.match(g);null!==n&&(e=e.substring(2),t+=d[n[1]]),i=e}return{cls:t,content:i}}},render(t){const e={class:this.classes,style:this.sizeStyle,on:{...this.qListeners},attrs:{"aria-hidden":"true",role:"presentation"}};return!0===this.type.none?t(this.tag,e,Object(s["c"])(this,"default")):!0===this.type.img?t("span",e,Object(s["a"])([t("img",{attrs:{src:this.type.src}})],this,"default")):!0===this.type.svg?t("span",e,Object(s["a"])([t("svg",{attrs:{viewBox:this.type.viewBox||"0 0 24 24",focusable:"false"}},this.type.nodes)],this,"default")):!0===this.type.svguse?t("span",e,Object(s["a"])([t("svg",{attrs:{viewBox:this.type.viewBox,focusable:"false"}},[t("use",{attrs:{"xlink:href":this.type.src}})])],this,"default")):(void 0!==this.type.cls&&(e.class+=" "+this.type.cls),t(this.tag,e,Object(s["a"])([this.type.content],this,"default")))}})},"00ee":function(t,e,i){var n=i("b622"),r=n("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"0170":function(t,e,i){"use strict";var n=i("2b0e"),r=i("87e8"),o=i("dde5");e["a"]=n["a"].extend({name:"QItemLabel",mixins:[r["a"]],props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},computed:{classes(){return{"q-item__label--overline text-overline":this.overline,"q-item__label--caption text-caption":this.caption,"q-item__label--header":this.header,ellipsis:1===parseInt(this.lines,10)}},style(){if(void 0!==this.lines&&parseInt(this.lines,10)>1)return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":this.lines}}},render(t){return t("div",{staticClass:"q-item__label",style:this.style,class:this.classes,on:{...this.qListeners}},Object(o["c"])(this,"default"))}})},"0196":function(t,e,i){const n=i("58b4"),r=i("bbf0");function o(t){this.mode=r.BYTE,"string"===typeof t&&(t=n(t)),this.data=new Uint8Array(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(let e=0,i=this.data.length;e!0!==t.disable)),o=(t,e)=>{this.$emit("validation-"+(!0===t?"success":"error"),e)};for(let a=0;a({valid:e,comp:t})),(e=>({valid:!1,comp:t,err:e}))));else if(!0!==n){if(!1===this.greedy)return o(!1,t),!0===i&&"function"===typeof t.focus&&t.focus(),Promise.resolve(!1);e.push({valid:!1,comp:t})}}return 0===e.length?(o(!0),Promise.resolve(!0)):Promise.all(e).then((t=>{const e=t.filter((t=>!0!==t.valid));if(0===e.length)return n===this.validateIndex&&o(!0),!0;const{valid:r,comp:a,err:s}=e[0];return n===this.validateIndex&&(void 0!==s&&console.error(s),o(!1,a),!0===i&&!0!==r&&"function"===typeof a.focus&&a.focus()),!1}))},resetValidation(){this.validateIndex++,this.getValidationComponents().forEach((t=>{"function"===typeof t.resetValidation&&t.resetValidation()}))},submit(t){void 0!==t&&Object(o["l"])(t);const e=this.validateIndex+1;this.validate().then((i=>{e===this.validateIndex&&!0===i&&(void 0!==this.qListeners.submit?this.$emit("submit",t):void 0!==t&&void 0!==t.target&&"function"===typeof t.target.submit&&t.target.submit())}))},reset(t){void 0!==t&&Object(o["l"])(t),this.$emit("reset"),this.$nextTick((()=>{this.resetValidation(),!0===this.autofocus&&!0!==this.noResetFocus&&this.focus()}))},focus(){Object(s["a"])((()=>{if(!this.$el)return;const t=this.$el.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(this.$el.querySelectorAll("[tabindex]"),(t=>t.tabIndex>-1));null!==t&&void 0!==t&&t.focus({preventScroll:!0})}))},getValidationComponents(){return Array.prototype.map.call(this.$el.getElementsByClassName("q-validation-component"),(t=>t.__vue__)).filter((t=>void 0!==t&&"function"===typeof t.validate))}},render(t){return t("form",{staticClass:"q-form",on:this.onEvents},Object(a["c"])(this,"default"))}})},"0425":function(t,e){const i="[0-9]+",n="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";e.KANJI=new RegExp(r,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(o,"g"),e.NUMERIC=new RegExp(i,"g"),e.ALPHANUMERIC=new RegExp(n,"g");const a=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return a.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return l.test(t)}},"04d1":function(t,e,i){var n=i("342f"),r=n.match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},"05c0":function(t,e,i){"use strict";var n=i("2b0e"),r=i("c474"),o=i("7ee0"),a=i("9e62"),s=i("7562"),l=i("0831"),c=i("d882"),u=i("2248"),h=i("dde5"),d=i("ab41");e["a"]=n["a"].extend({name:"QTooltip",mixins:[r["a"],o["a"],a["c"],s["a"]],props:{maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:d["d"]},self:{type:String,default:"top middle",validator:d["d"]},offset:{type:Array,default:()=>[14,14],validator:d["c"]},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},computed:{anchorOrigin(){return Object(d["a"])(this.anchor,this.$q.lang.rtl)},selfOrigin(){return Object(d["a"])(this.self,this.$q.lang.rtl)},hideOnRouteChange(){return!0!==this.persistent}},methods:{__show(t){this.__showPortal(),this.__nextTick((()=>{this.observer=new MutationObserver((()=>this.updatePosition())),this.observer.observe(this.__portal.$el,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),this.updatePosition(),this.__configureScrollTarget()})),void 0===this.unwatch&&(this.unwatch=this.$watch((()=>this.$q.screen.width+"|"+this.$q.screen.height+"|"+this.self+"|"+this.anchor+"|"+this.$q.lang.rtl),this.updatePosition)),this.__setTimeout((()=>{this.__showPortal(!0),this.$emit("show",t)}),300)},__hide(t){this.__anchorCleanup(),this.__hidePortal(),this.__setTimeout((()=>{this.__hidePortal(!0),this.$emit("hide",t)}),300)},__anchorCleanup(){void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0),void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),this.__unconfigureScrollTarget(),Object(c["b"])(this,"tooltipTemp")},updatePosition(){if(void 0===this.anchorEl||void 0===this.__portal)return;const t=this.__portal.$el;8!==t.nodeType?Object(d["b"])({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)},__delayShow(t){if(!0===this.$q.platform.is.mobile){Object(u["a"])(),document.body.classList.add("non-selectable");const t=this.anchorEl,e=["touchmove","touchcancel","touchend","click"].map((e=>[t,e,"__delayHide","passiveCapture"]));Object(c["a"])(this,"tooltipTemp",e)}this.__setTimeout((()=>{this.show(t)}),this.delay)},__delayHide(t){this.__clearTimeout(),!0===this.$q.platform.is.mobile&&(Object(c["b"])(this,"tooltipTemp"),Object(u["a"])(),setTimeout((()=>{document.body.classList.remove("non-selectable")}),10)),this.__setTimeout((()=>{this.hide(t)}),this.hideDelay)},__configureAnchorEl(){if(!0===this.noParentEvent||void 0===this.anchorEl)return;const t=!0===this.$q.platform.is.mobile?[[this.anchorEl,"touchstart","__delayShow","passive"]]:[[this.anchorEl,"mouseenter","__delayShow","passive"],[this.anchorEl,"mouseleave","__delayHide","passive"]];Object(c["a"])(this,"anchor",t)},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__changeScrollEvent(this.__scrollTarget),this.__scrollTarget=void 0)},__configureScrollTarget(){if(void 0!==this.anchorEl||void 0!==this.scrollTarget){this.__scrollTarget=Object(l["d"])(this.anchorEl,this.scrollTarget);const t=!0===this.noParentEvent?this.updatePosition:this.hide;this.__changeScrollEvent(this.__scrollTarget,t)}},__renderPortal(t){return t("transition",{props:{name:this.transition}},[!0===this.showing?t("div",{staticClass:"q-tooltip q-tooltip--style q-position-engine no-pointer-events",class:this.contentClass,style:this.contentStyle,attrs:{role:"complementary"}},Object(h["c"])(this,"default")):null])}},mounted(){this.__processModelChange(this.value)}})},"068f":function(t,e,i){"use strict";var n=i("2b0e"),r=i("0d59"),o=i("6900"),a=i("87e8"),s=i("dde5");e["a"]=n["a"].extend({name:"QImg",mixins:[a["a"],o["a"]],props:{src:String,srcset:String,sizes:String,alt:String,width:String,height:String,placeholderSrc:String,basic:Boolean,contain:Boolean,position:{type:String,default:"50% 50%"},transition:{type:String,default:"fade"},imgClass:[Array,String,Object],imgStyle:Object,nativeContextMenu:Boolean,noDefaultSpinner:Boolean,spinnerColor:String,spinnerSize:String},data(){return{currentSrc:"",image:null,isLoading:!!this.src,hasError:!1,naturalRatio:void 0}},watch:{src(){this.__load()},srcset(t){this.__updateWatcher(t)}},computed:{url(){return this.currentSrc||this.placeholderSrc||void 0},attrs(){const t={role:"img"};return void 0!==this.alt&&(t["aria-label"]=this.alt),t},imgContainerStyle(){return Object.assign({backgroundSize:!0===this.contain?"contain":"cover",backgroundPosition:this.position},this.imgStyle,{backgroundImage:`url("${this.url}")`})},style(){return{width:this.width,height:this.height}},classes(){return"q-img overflow-hidden"+(!0===this.nativeContextMenu?" q-img--menu":"")}},methods:{__onLoad(t){this.isLoading=!1,this.hasError=!1,this.__computeRatio(t),this.__updateSrc(),this.__updateWatcher(this.srcset),this.$emit("load",this.currentSrc)},__onError(t){clearTimeout(this.ratioTimer),this.isLoading=!1,this.hasError=!0,this.currentSrc="",this.$emit("error",t)},__updateSrc(){if(void 0!==this.image&&!1===this.isLoading){const t=this.image.currentSrc||this.image.src;this.currentSrc!==t&&(this.currentSrc=t)}},__updateWatcher(t){t?void 0===this.unwatch&&(this.unwatch=this.$watch("$q.screen.width",this.__updateSrc)):void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0)},__load(){if(clearTimeout(this.ratioTimer),this.hasError=!1,!this.src)return this.isLoading=!1,this.image=void 0,void(this.currentSrc="");this.isLoading=!0;const t=new Image;this.image=t,t.onerror=e=>{this.image===t&&!0!==this.destroyed&&this.__onError(e)},t.onload=()=>{!0!==this.destroyed&&this.image===t&&(void 0!==t.decode?t.decode().catch((e=>{this.image===t&&!0!==this.destroyed&&this.__onError(e)})).then((()=>{this.image===t&&!0!==this.destroyed&&this.__onLoad(t)})):this.__onLoad(t))},t.src=this.src,this.srcset&&(t.srcset=this.srcset),void 0!==this.sizes?t.sizes=this.sizes:Object.assign(t,{height:this.height,width:this.width})},__computeRatio(t){const{naturalHeight:e,naturalWidth:i}=t;e||i?this.naturalRatio=0===e?1:i/e:this.ratioTimer=setTimeout((()=>{this.image===t&&!0!==this.destroyed&&this.__computeRatio(t)}),100)},__getImage(t){const e=!0===this.nativeContextMenu?[t("img",{staticClass:"absolute-full fit",attrs:{src:this.url,"aria-hidden":"true"}})]:void 0,i=void 0!==this.url?t("div",{key:this.url,staticClass:"q-img__image absolute-full",class:this.imgClass,style:this.imgContainerStyle},e):null;return!0===this.basic?i:t("transition",{props:{name:"q-transition--"+this.transition}},[i])},__getContent(t){const e=Object(s["c"])(this,!0===this.hasError?"error":"default");if(!0===this.basic)return t("div",{key:"content",staticClass:"q-img__content absolute-full"},e);const i=!0===this.isLoading?t("div",{key:"placeholder",staticClass:"q-img__loading absolute-full flex flex-center"},void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():!1===this.noDefaultSpinner?[t(r["a"],{props:{color:this.spinnerColor,size:this.spinnerSize}})]:void 0):t("div",{key:"content",staticClass:"q-img__content absolute-full"},e);return t("transition",{props:{name:"q-transition--fade"}},[i])}},render(t){return t("div",{class:this.classes,style:this.style,attrs:this.attrs,on:{...this.qListeners}},[t("div",{style:this.ratioStyle}),this.__getImage(t),this.__getContent(t)])},beforeMount(){if(void 0!==this.placeholderSrc&&void 0===this.ratio){const t=new Image;t.src=this.placeholderSrc,this.__computeRatio(t)}!0===this.isLoading&&this.__load()},beforeDestroy(){this.destroyed=!0,clearTimeout(this.ratioTimer),void 0!==this.unwatch&&this.unwatch()}})},"06cf":function(t,e,i){var n=i("83ab"),r=i("c65b"),o=i("d1e7"),a=i("5c6c"),s=i("fc6a"),l=i("a04b"),c=i("1a2d"),u=i("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=s(t),e=l(e),u)try{return h(t,e)}catch(i){}if(c(t,e))return a(!r(o.f,t,e),t[e])}},"07fa":function(t,e,i){var n=i("50c4");t.exports=function(t){return n(t.length)}},"0831":function(t,e,i){"use strict";i.d(e,"g",(function(){return s})),i.d(e,"d",(function(){return l})),i.d(e,"b",(function(){return c})),i.d(e,"c",(function(){return h})),i.d(e,"a",(function(){return d})),i.d(e,"j",(function(){return v})),i.d(e,"i",(function(){return y})),i.d(e,"h",(function(){return b})),i.d(e,"e",(function(){return x})),i.d(e,"f",(function(){return w}));i("caad");var n=i("0967"),r=i("f303");const o=!0===n["e"]?[]:[null,document,document.body,document.scrollingElement,document.documentElement];let a;function s(){if(!0===n["e"])return!1;if(void 0===a){const t=document.createElement("div"),e=document.createElement("div");Object.assign(t.style,{direction:"rtl",width:"1px",height:"1px",overflow:"auto"}),Object.assign(e.style,{width:"1000px",height:"1px"}),t.appendChild(e),document.body.appendChild(t),t.scrollLeft=-1e3,a=t.scrollLeft>=0,t.remove()}return a}function l(t,e){let i=Object(r["d"])(e);if(null===i){if(t!==Object(t)||"function"!==typeof t.closest)return window;i=t.closest(".scroll,.scroll-y,.overflow-auto")}return o.includes(i)?window:i}function c(t){return(t===window?document.body:t).scrollHeight}function u(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}const h=u;function d(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}function p(t,e,i=0){const n=void 0===arguments[3]?performance.now():arguments[3],r=u(t);i<=0?r!==e&&g(t,e):requestAnimationFrame((o=>{const a=o-n,s=r+(e-r)/Math.max(a,i)*a;g(t,s),s!==e&&p(t,e,i-a,o)}))}function f(t,e,i=0){const n=void 0===arguments[3]?performance.now():arguments[3],r=d(t);i<=0?r!==e&&m(t,e):requestAnimationFrame((o=>{const a=o-n,s=r+(e-r)/Math.max(a,i)*a;m(t,s),s!==e&&f(t,e,i-a,o)}))}function g(t,e){t!==window?t.scrollTop=e:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,e)}function m(t,e){t!==window?t.scrollLeft=e:window.scrollTo(e,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function v(t,e,i){i?p(t,e,i):g(t,e)}const y=v;function b(t,e,i){i?f(t,e,i):m(t,e)}let _;function x(){if(void 0!==_)return _;const t=document.createElement("p"),e=document.createElement("div");Object(r["b"])(t,{width:"100%",height:"200px"}),Object(r["b"])(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);const i=t.offsetWidth;e.style.overflow="scroll";let n=t.offsetWidth;return i===n&&(n=e.clientWidth),e.remove(),_=i-n,_}function w(t,e=!0){return!(!t||t.nodeType!==Node.ELEMENT_NODE)&&(e?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"])))}},"0967":function(t,e,i){"use strict";i.d(e,"e",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"f",(function(){return s})),i.d(e,"d",(function(){return o})),i.d(e,"a",(function(){return m}));var n=i("2b0e");const r="undefined"===typeof window;let o,a=!1,s=r,l=!1;function c(t,e){const i=/(edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[2]||i[4]||"0",versionNumber:i[4]||i[2]||"0",platform:e[0]||""}}function u(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}const h=!1===r&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function d(t){o={is:{...t}},delete t.mac,delete t.desktop;const e=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(t,{mobile:!0,ios:!0,platform:e,[e]:!0})}function p(t){const e=t.toLowerCase(),i=u(e),n=c(e,i),o={};n.browser&&(o[n.browser]=!0,o.version=n.version,o.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(o[n.platform]=!0);const l=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];return!0===l||e.indexOf("mobile")>-1?(o.mobile=!0,o.edga||o.edgios?(o.edge=!0,n.browser="edge"):o.crios?(o.chrome=!0,n.browser="chrome"):o.fxios&&(o.firefox=!0,n.browser="firefox")):o.desktop=!0,(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),(o.chrome||o.opr||o.safari||o.vivaldi||!0===o.mobile&&!0!==o.ios&&!0!==l)&&(o.webkit=!0),(o.rv||o.iemobile)&&(n.browser="ie",o.ie=!0),(o.safari&&o.blackberry||o.bb)&&(n.browser="blackberry",o.blackberry=!0),o.safari&&o.playbook&&(n.browser="playbook",o.playbook=!0),o.opr&&(n.browser="opera",o.opera=!0),o.safari&&o.android&&(n.browser="android",o.android=!0),o.safari&&o.kindle&&(n.browser="kindle",o.kindle=!0),o.safari&&o.silk&&(n.browser="silk",o.silk=!0),o.vivaldi&&(n.browser="vivaldi",o.vivaldi=!0),o.name=n.browser,o.platform=n.platform,!1===r&&(e.indexOf("electron")>-1?o.electron=!0:document.location.href.indexOf("-extension://")>-1?o.bex=!0:(void 0!==window.Capacitor?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),!0===h&&!0===o.mac&&(!0===o.desktop&&!0===o.safari||!0===o.nativeMobile&&!0!==o.android&&!0!==o.ios&&!0!==o.ipad)&&d(o)),a=void 0===o.nativeMobile&&void 0===o.electron&&null!==document.querySelector("[data-server-rendered]"),!0===a&&(s=!0)),o}const f=!0!==r?navigator.userAgent||navigator.vendor||window.opera:"",g={has:{touch:!1,webStorage:!1},within:{iframe:!1}},m=!1===r?{userAgent:f,is:p(f),has:{touch:h,webStorage:(()=>{try{if(window.localStorage)return!0}catch(t){}return!1})()},within:{iframe:window.self!==window.top}}:g,v={install(t,e){!0===r?e.server.push(((t,e)=>{t.platform=this.parseSSR(e.ssr)})):!0===a?(Object.assign(this,m,o,g),e.takeover.push((t=>{s=a=!1,Object.assign(t.platform,m),o=void 0})),n["a"].util.defineReactive(t,"platform",this)):(Object.assign(this,m),t.platform=this)}};!0===r?v.parseSSR=t=>{const e=t.req.headers["user-agent"]||t.req.headers["User-Agent"]||"";return{...m,userAgent:e,is:p(e)}}:l=!0===m.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple"),e["b"]=v},"09e3":function(t,e,i){"use strict";var n=i("2b0e"),r=i("87e8"),o=i("dde5");e["a"]=n["a"].extend({name:"QPageContainer",mixins:[r["a"]],inject:{layout:{default(){console.error("QPageContainer needs to be child of QLayout")}}},provide:{pageContainer:!0},computed:{style(){const t={};return!0===this.layout.header.space&&(t.paddingTop=`${this.layout.header.size}px`),!0===this.layout.right.space&&(t["padding"+(!0===this.$q.lang.rtl?"Left":"Right")]=`${this.layout.right.size}px`),!0===this.layout.footer.space&&(t.paddingBottom=`${this.layout.footer.size}px`),!0===this.layout.left.space&&(t["padding"+(!0===this.$q.lang.rtl?"Right":"Left")]=`${this.layout.left.size}px`),t}},render(t){return t("div",{staticClass:"q-page-container",style:this.style,on:{...this.qListeners}},Object(o["c"])(this,"default"))}})},"09f9":function(t,e,i){"use strict";i("ddb0");var n=i("2b0e"),r=i("0967"),o=i("d882"),a=i("1c16");const s=["sm","md","lg","xl"],{passive:l}=o["f"];e["a"]={width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1,setSizes:o["g"],setDebounce:o["g"],install(t,e,i){if(!0===r["e"])return void(t.screen=this);const{visualViewport:o}=window,c=o||window,u=document.scrollingElement||document.documentElement,h=void 0===o||!0===r["a"].is.mobile?()=>[Math.max(window.innerWidth,u.clientWidth),Math.max(window.innerHeight,u.clientHeight)]:()=>[o.width*o.scale+window.innerWidth-u.clientWidth,o.height*o.scale+window.innerHeight-u.clientHeight],d=void 0!==i.screen&&!0===i.screen.bodyClasses,p=t=>{const[e,i]=h();if(i!==this.height&&(this.height=i),e!==this.width)this.width=e;else if(!0!==t)return;let n=this.sizes;this.gt.xs=e>=n.sm,this.gt.sm=e>=n.md,this.gt.md=e>=n.lg,this.gt.lg=e>=n.xl,this.lt.sm=e{s.forEach((e=>{void 0!==t[e]&&(g[e]=t[e])}))},this.setDebounce=t=>{m=t};const v=()=>{const t=getComputedStyle(document.body);t.getPropertyValue("--q-size-sm")&&s.forEach((e=>{this.sizes[e]=parseInt(t.getPropertyValue(`--q-size-${e}`),10)})),this.setSizes=t=>{s.forEach((e=>{t[e]&&(this.sizes[e]=t[e])})),p(!0)},this.setDebounce=t=>{void 0!==f&&c.removeEventListener("resize",f,l),f=t>0?Object(a["a"])(p,t):p,c.addEventListener("resize",f,l)},this.setDebounce(m),Object.keys(g).length>0?(this.setSizes(g),g=void 0):p(),!0===d&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===r["c"]?e.takeover.push(v):v(),n["a"].util.defineReactive(t,"screen",this)}}},"0a06":function(t,e,i){"use strict";var n=i("c532"),r=i("30b5"),o=i("f6b4"),a=i("5270"),s=i("4a7b"),l=i("848b"),c=l.validators;function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&l.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var i=[],n=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var r,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!n){var u=[a,void 0];Array.prototype.unshift.apply(u,i),u=u.concat(o),r=Promise.resolve(t);while(u.length)r=r.then(u.shift(),u.shift());return r}var h=t;while(i.length){var d=i.shift(),p=i.shift();try{h=d(h)}catch(f){p(f);break}}try{r=a(h)}catch(f){return Promise.reject(f)}while(o.length)r=r.then(o.shift(),o.shift());return r},u.prototype.getUri=function(t){return t=s(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,i){return this.request(s(i||{},{method:t,url:e,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,i,n){return this.request(s(n||{},{method:t,url:e,data:i}))}})),t.exports=u},"0b25":function(t,e,i){var n=i("5926"),r=i("50c4"),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw o("Wrong length or index");return i}},"0b42":function(t,e,i){var n=i("e8b5"),r=i("68ee"),o=i("861d"),a=i("b622"),s=a("species"),l=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,r(e)&&(e===l||n(e.prototype))?e=void 0:o(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?l:e}},"0cb2":function(t,e,i){var n=i("e330"),r=i("7b0b"),o=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,n,h,d){var p=i+t.length,f=n.length,g=u;return void 0!==h&&(h=r(h),g=c),s(d,g,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,i);case"'":return l(e,p);case"<":c=h[l(s,1,-1)];break;default:var u=+s;if(0===u)return r;if(u>f){var d=o(u/10);return 0===d?r:d<=f?void 0===n[d-1]?a(s,1):n[d-1]+a(s,1):r}c=n[u-1]}return void 0===c?"":c}))}},"0cd3":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"c",(function(){return a}));var n=i("0967");function r(t,e,i){if(!0===n["e"])return i;const r=`__qcache_${e}`;return void 0===t[r]?t[r]=i:t[r]}function o(t,e,i){if(!0===n["e"])return i();const r=`__qcache_${e}`;return void 0===t[r]?t[r]=i():t[r]}function a(t,e){return{data(){const i={},n=this[t];for(const t in n)i[t]=n[t];return{[e]:i}},watch:{[t](t,i){const n=this[e];if(void 0!==i)for(const e in i)void 0===t[e]&&this.$delete(n,e);for(const e in t)n[e]!==t[e]&&this.$set(n,e,t[e])}}}}},"0cfb":function(t,e,i){var n=i("83ab"),r=i("d039"),o=i("cc12");t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(t,e,i){var n=i("d039"),r=i("b622"),o=i("c430"),a=r("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,n){e["delete"]("b"),i+=n+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},"0d51":function(t,e){var i=String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},"0d59":function(t,e,i){"use strict";var n=i("2b0e"),r=i("6642"),o=i("87e8"),a={mixins:[o["a"]],props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{cSize(){return this.size in r["c"]?`${r["c"][this.size]}px`:this.size},classes(){if(this.color)return`text-${this.color}`}}};e["a"]=n["a"].extend({name:"QSpinner",mixins:[a],props:{thickness:{type:Number,default:5}},render(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,on:{...this.qListeners},attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":this.thickness,"stroke-miterlimit":"10"}})])}})},"0df6":function(t,e,i){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"107c":function(t,e,i){var n=i("d039"),r=i("da84"),o=r.RegExp;t.exports=n((function(){var t=o("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},"10b0":function(t,e,i){"use strict";var n={single_source_shortest_paths:function(t,e,i){var r={},o={};o[e]=0;var a,s,l,c,u,h,d,p,f,g=n.PriorityQueue.make();g.push(e,0);while(!g.empty())for(l in a=g.pop(),s=a.value,c=a.cost,u=t[s]||{},u)u.hasOwnProperty(l)&&(h=u[l],d=c+h,p=o[l],f="undefined"===typeof o[l],(f||p>d)&&(o[l]=d,g.push(l,d),r[l]=s));if("undefined"!==typeof i&&"undefined"===typeof o[i]){var m=["Could not find a path from ",e," to ",i,"."].join("");throw new Error(m)}return r},extract_shortest_path_from_predecessor_list:function(t,e){var i=[],n=e;while(n)i.push(n),t[n],n=t[n];return i.reverse(),i},find_path:function(t,e,i){var r=n.single_source_shortest_paths(t,e,i);return n.extract_shortest_path_from_predecessor_list(r,i)},PriorityQueue:{make:function(t){var e,i=n.PriorityQueue,r={};for(e in t=t||{},i)i.hasOwnProperty(e)&&(r[e]=i[e]);return r.queue=[],r.sorter=t.sorter||i.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var i={value:t,cost:e};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=n},"13d2":function(t,e,i){var n=i("d039"),r=i("1626"),o=i("1a2d"),a=i("83ab"),s=i("5e77").CONFIGURABLE,l=i("8925"),c=i("69f3"),u=c.enforce,h=c.get,d=Object.defineProperty,p=a&&!n((function(){return 8!==d((function(){}),"length",{value:8}).length})),f=String(String).split("String"),g=t.exports=function(t,e,i){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),p&&i&&o(i,"arity")&&t.length!==i.arity&&d(t,"length",{value:i.arity});try{i&&o(i,"constructor")&&i.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var n=u(t);return o(n,"source")||(n.source=f.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return r(this)&&h(this).source||l(this)}),"toString")},"14c3":function(t,e,i){var n=i("c65b"),r=i("825a"),o=i("1626"),a=i("c6b6"),s=i("9263"),l=TypeError;t.exports=function(t,e){var i=t.exec;if(o(i)){var c=n(i,t,e);return null!==c&&r(c),c}if("RegExp"===a(t))return n(s,t,e);throw l("RegExp#exec called on incompatible receiver")}},1626:function(t,e){t.exports=function(t){return"function"==typeof t}},"182d":function(t,e,i){var n=i("f8cd"),r=RangeError;t.exports=function(t,e){var i=n(t);if(i%e)throw r("Wrong offset");return i}},"18d6":function(t,e,i){"use strict";var n=i("0967"),r=i("685b");e["a"]={install({$q:t}){const e=!0===n["e"]||!1===n["a"].has.webStorage?Object(r["a"])():Object(r["b"])("local");t.localStorage=e,Object.assign(this,e)}}},"19aa":function(t,e,i){var n=i("3a9b"),r=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw r("Incorrect invocation")}},"1a2d":function(t,e,i){var n=i("e330"),r=i("7b0b"),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},"1be4":function(t,e,i){var n=i("d066");t.exports=n("document","documentElement")},"1c16":function(t,e,i){"use strict";e["a"]=function(t,e=250,i){let n;function r(){const r=arguments,o=()=>{n=void 0,!0!==i&&t.apply(this,r)};clearTimeout(n),!0===i&&void 0===n&&t.apply(this,r),n=setTimeout(o,e)}return r.cancel=()=>{clearTimeout(n)},r}},"1c1c":function(t,e,i){"use strict";var n=i("2b0e"),r=i("b7fa"),o=i("87e8"),a=i("dde5");e["a"]=n["a"].extend({name:"QList",mixins:[o["a"],r["a"]],props:{bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean},computed:{classes(){return"q-list"+(!0===this.bordered?" q-list--bordered":"")+(!0===this.dense?" q-list--dense":"")+(!0===this.separator?" q-list--separator":"")+(!0===this.isDark?" q-list--dark":"")+(!0===this.padding?" q-list--padding":"")}},render(t){return t("div",{class:this.classes,on:{...this.qListeners}},Object(a["c"])(this,"default"))}})},"1c35":function(t,e,i){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var n=i("1fb5"),r=i("9152"),o=i("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),c.alloc(+t)}function _(t,e){if(c.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return J(t).length;default:if(n)return K(t).length;e=(""+e).toLowerCase(),n=!0}}function x(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return B(this,e,i);case"utf8":case"utf-8":return D(this,e,i);case"ascii":return j(this,e,i);case"latin1":case"binary":return R(this,e,i);case"base64":return P(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function S(t,e,i,n,r){if(0===t.length)return-1;if("string"===typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"===typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:C(t,e,i,n,r);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):C(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function C(t,e,i,n,r){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var u=-1;for(o=i;os&&(i=s-l),o=i;o>=0;o--){for(var h=!0,d=0;dr&&(n=r)):n=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(r+h<=i)switch(h){case 1:c<128&&(u=c);break;case 2:o=t[r+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=t[r+1],a=t[r+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),r+=h}return L(n)}e.Buffer=c,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,i){return u(null,t,e,i)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,i){return d(null,t,e,i)},c.allocUnsafe=function(t){return p(null,t)},c.allocUnsafeSlow=function(t){return p(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var o=r-n,a=i-e,s=Math.min(o,a),l=this.slice(n,r),u=t.slice(e,i),h=0;hr)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return k(this,t,e,i);case"utf8":case"utf-8":return M(this,t,e,i);case"ascii":return T(this,t,e,i);case"latin1":case"binary":return O(this,t,e,i);case"base64":return A(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function L(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var i="",n=0;while(nn)&&(i=n);for(var r="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,i,n,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function V(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r>>8*(n?r:1-r)}function q(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r>>8*(n?r:3-r)&255}function $(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function H(t,e,i,n,o){return o||$(t,e,i,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,i,n,23,4),i+4}function G(t,e,i,n,o){return o||$(t,e,i,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e0&&(r*=256))n+=this[t+--e]*r;return n},c.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||N(t,e,this.length);var n=this[t],r=1,o=0;while(++o=r&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||N(t,e,this.length);var n=e,r=1,o=this[t+--n];while(n>0&&(r*=256))o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;z(this,t,e,i,r,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):q(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);z(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);z(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):q(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return H(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return H(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return G(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return G(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+i];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function Z(t){for(var e=[],i=0;i>8,r=i%256,o.push(r),o.push(n)}return o}function J(t){return n.toByteArray(U(t))}function tt(t,e,i,n){for(var r=0;r=e.length||r>=t.length)break;e[r+i]=t[r]}return r}function et(t){return t!==t}}).call(this,i("23b3"))},"1c7e":function(t,e,i){var n=i("b622"),r=n("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(l){}return i}},"1d02":function(t,e,i){"use strict";var n=i("ebb5"),r=i("a258").findLastIndex,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("findLastIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"1d2b":function(t,e,i){"use strict";t.exports=function(t,e){return function(){for(var i=new Array(arguments.length),n=0;n0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var n=i===e?0:4-i%4;return[i,n]}function u(t){var e=c(t),i=e[0],n=e[1];return 3*(i+n)/4-n}function h(t,e,i){return 3*(e+i)/4-i}function d(t){var e,i,n=c(t),a=n[0],s=n[1],l=new o(h(t,a,s)),u=0,d=s>0?a-4:a;for(i=0;i>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,l[u++]=255&e),1===s&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function p(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function f(t,e,i){for(var n,r=[],o=e;ol?l:s+a));return 1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"219c":function(t,e,i){"use strict";var n=i("da84"),r=i("e330"),o=i("d039"),a=i("59ed"),s=i("addb"),l=i("ebb5"),c=i("04d1"),u=i("d998"),h=i("2d00"),d=i("512c"),p=l.aTypedArray,f=l.exportTypedArrayMethod,g=n.Uint16Array,m=g&&r(g.prototype.sort),v=!!m&&!(o((function(){m(new g(2),null)}))&&o((function(){m(new g(2),{})}))),y=!!m&&!o((function(){if(h)return h<74;if(c)return c<67;if(u)return!0;if(d)return d<602;var t,e,i=new g(516),n=Array(516);for(t=0;t<516;t++)e=t%4,i[t]=515-t,n[t]=t-2*e+3;for(m(i,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(i[t]!==n[t])return!0})),b=function(t){return function(e,i){return void 0!==t?+t(e,i)||0:i!==i?-1:e!==e?1:0===e&&0===i?1/e>0&&1/i<0?1:-1:e>i}};f("sort",(function(t){return void 0!==t&&a(t),y?m(this,t):s(p(this),b(t))}),!y||v)},"21cb":function(t,e,i){},"21e1":function(t,e,i){"use strict";var n=i("0967");const r=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,o=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,a=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,s=/[a-z0-9_ -]$/i;e["a"]={methods:{__onComposition(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,this.__onInput(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"===typeof t.data){const e=!0===n["a"].is.firefox?!1===s.test(t.data):!0===r.test(t.data)||!0===o.test(t.data)||!0===a.test(t.data);!0===e&&(t.target.qComposing=!0)}}}}},2248:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("0967");function r(){if(void 0!==window.getSelection){const t=window.getSelection();void 0!==t.empty?t.empty():void 0!==t.removeAllRanges&&(t.removeAllRanges(),!0!==n["b"].is.mobile&&t.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}},"22d1":function(t,e,i){"use strict";var n=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),r=function(){function t(){this.browser=new n,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new r;function a(t,e){var i=e.browser,n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18),a&&(i.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(i.ie&&"transition"in s||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||i.ie&&+i.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"23b3":function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}t.exports=i},"23cb":function(t,e,i){var n=i("5926"),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},"23e7":function(t,e,i){var n=i("da84"),r=i("06cf").f,o=i("9112"),a=i("cb2d"),s=i("6374"),l=i("e893"),c=i("94ca");t.exports=function(t,e){var i,u,h,d,p,f,g=t.target,m=t.global,v=t.stat;if(u=m?n:v?n[g]||s(g,{}):(n[g]||{}).prototype,u)for(h in e){if(p=e[h],t.dontCallGetSet?(f=r(u,h),d=f&&f.value):d=u[h],i=c(m?h:g+(v?".":"#")+h,t.forced),!i&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&o(p,"sham",!0),a(u,h,p,t)}}},"241c":function(t,e,i){var n=i("ca84"),r=i("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},2444:function(t,e,i){"use strict";(function(e){var n=i("c532"),r=i("c8af"),o=i("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function l(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=i("b50d")),t}function c(t,e,i){if(n.isString(t))try{return(e||JSON.parse)(t),n.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(i||JSON.stringify)(t)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),c(t)):t}],transformResponse:[function(t){var e=this.transitional,i=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,a=!i&&"json"===this.responseType;if(a||r&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(a)})),t.exports=u}).call(this,i("4362"))},"24e8":function(t,e,i){"use strict";i("caad");var n=i("2b0e"),r=i("58e5"),o=i("7ee0"),a=i("9e62"),s=i("efe6"),l=i("f376"),c=i("f303"),u=i("a267"),h=i("dde5"),d=i("d882"),p=i("0cd3"),f=i("e704"),g=i("0967");let m=0;const v={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},y={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};e["a"]=n["a"].extend({name:"QDialog",mixins:[l["b"],r["a"],o["a"],a["c"],s["a"]],props:{persistent:Boolean,autoClose:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:t=>"standard"===t||["top","bottom","left","right"].includes(t)},transitionShow:String,transitionHide:String},data(){return{transitionState:this.showing,animating:!1}},watch:{showing(t){this.transitionShowComputed!==this.transitionHideComputed&&this.$nextTick((()=>{this.transitionState=t}))},maximized(t){!0===this.showing&&this.__updateMaximized(t)},useBackdrop(t){this.__preventScroll(t),this.__preventFocusout(t)}},computed:{classes(){return`q-dialog__inner--${!0===this.maximized?"maximized":"minimized"} q-dialog__inner--${this.position} ${v[this.position]}`+(!0===this.animating?" q-dialog__inner--animating":"")+(!0===this.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===this.fullHeight?" q-dialog__inner--fullheight":"")+(!0===this.square?" q-dialog__inner--square":"")},transitionShowComputed(){return"q-transition--"+(void 0===this.transitionShow?y[this.position][0]:this.transitionShow)},transitionHideComputed(){return"q-transition--"+(void 0===this.transitionHide?y[this.position][1]:this.transitionHide)},transition(){return!0===this.transitionState?this.transitionHideComputed:this.transitionShowComputed},useBackdrop(){return!0===this.showing&&!0!==this.seamless},hideOnRouteChange(){return!0!==this.persistent&&!0!==this.noRouteDismiss&&!0!==this.seamless},onEvents(){const t={...this.qListeners,input:d["k"],"popup-show":d["k"],"popup-hide":d["k"]};return!0===this.autoClose&&(t.click=this.__onAutoClose),t}},methods:{focus(t){Object(f["a"])((()=>{let e=this.__getInnerNode();void 0!==e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector(t||"[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))}))},shake(){this.focus(),this.$emit("shake");const t=this.__getInnerNode();void 0!==t&&(t.classList.remove("q-animate--scale"),t.classList.add("q-animate--scale"),clearTimeout(this.shakeTimeout),this.shakeTimeout=setTimeout((()=>{t.classList.remove("q-animate--scale")}),170))},__getInnerNode(){return void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0},__show(t){this.__addHistory(),this.__refocusTarget=!0!==g["a"].is.mobile&&!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,this.$el.dispatchEvent(Object(d["c"])("popup-show",{bubbles:!0})),this.__updateMaximized(this.maximized),u["a"].register(this,(()=>{!0!==this.seamless&&(!0===this.persistent||!0===this.noEscDismiss?!0!==this.maximized&&!0!==this.noShake&&this.shake():(this.$emit("escape-key"),this.hide()))})),this.__showPortal(),this.animating=!0,!0!==this.noFocus&&(null!==document.activeElement&&document.activeElement.blur(),this.__nextTick(this.focus)),this.__setTimeout((()=>{if(!0===this.$q.platform.is.ios){if(!0!==this.seamless&&document.activeElement){const{top:t,bottom:e}=document.activeElement.getBoundingClientRect(),{innerHeight:i}=window,n=void 0!==window.visualViewport?window.visualViewport.height:i;t>0&&e>n/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-n,e>=i?1/0:Math.ceil(document.scrollingElement.scrollTop+e-n/2))),document.activeElement.scrollIntoView()}this.__portal.$el.click()}this.animating=!1,this.__showPortal(!0),this.$emit("show",t)}),300)},__hide(t){this.__removeHistory(),this.__cleanup(!0),this.__hidePortal(),this.animating=!0,void 0!==this.__refocusTarget&&null!==this.__refocusTarget&&(this.__refocusTarget.focus(t),this.__refocusTarget=void 0),this.$el.dispatchEvent(Object(d["c"])("popup-hide",{bubbles:!0})),this.__setTimeout((()=>{this.__hidePortal(!0),this.animating=!1,this.$emit("hide",t)}),300)},__cleanup(t){clearTimeout(this.shakeTimeout),!0!==t&&!0!==this.showing||(u["a"].pop(this),this.__updateMaximized(!1),!0!==this.seamless&&(this.__preventScroll(!1),this.__preventFocusout(!1)))},__updateMaximized(t){!0===t?!0!==this.isMaximized&&(m<1&&document.body.classList.add("q-body--dialog"),m++,this.isMaximized=!0):!0===this.isMaximized&&(m<2&&document.body.classList.remove("q-body--dialog"),m--,this.isMaximized=!1)},__preventFocusout(t){if(!0===this.$q.platform.is.desktop){const e=(!0===t?"add":"remove")+"EventListener";document.body[e]("focusin",this.__onFocusChange)}},__onAutoClose(t){this.hide(t),void 0!==this.qListeners.click&&this.$emit("click",t)},__onBackdropClick(t){!0!==this.persistent&&!0!==this.noBackdropDismiss?this.hide(t):!0!==this.noShake&&this.shake()},__onFocusChange(t){!0===this.__portalIsAccessible&&!0!==Object(c["a"])(this.__portal.$el,t.target)&&this.focus('[tabindex]:not([tabindex="-1"])')},__renderPortal(t){return t("div",{staticClass:"q-dialog fullscreen no-pointer-events q-dialog--"+(!0===this.useBackdrop?"modal":"seamless"),class:this.contentClass,style:this.contentStyle,attrs:this.qAttrs},[t("transition",{props:{name:"q-transition--fade"}},!0===this.useBackdrop?[t("div",{staticClass:"q-dialog__backdrop fixed-full",attrs:l["a"],on:Object(p["b"])(this,"bkdrop",{click:this.__onBackdropClick})})]:null),t("transition",{props:{name:this.transition}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-dialog__inner flex no-pointer-events",class:this.classes,attrs:{tabindex:-1},on:this.onEvents},Object(h["c"])(this,"default")):null])])}},mounted(){this.__processModelChange(this.value)},beforeDestroy(){this.__cleanup(),this.__refocusTarget=void 0}})},2626:function(t,e,i){"use strict";var n=i("d066"),r=i("9bf2"),o=i("b622"),a=i("83ab"),s=o("species");t.exports=function(t){var e=n(t),i=r.f;a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},2732:function(t,e,i){const n=i("699e");e.mul=function(t,e){const i=new Uint8Array(t.length+e.length-1);for(let r=0;r=0){const t=i[0];for(let o=0;o=1&&t<=40}},"27f9":function(t,e,i){"use strict";i("caad");var n=i("2b0e"),r=i("8572"),o=i("f89c"),a=i("cc78"),s=(i("5319"),i("ddb0"),i("d728"));const l={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},c={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},u=Object.keys(c);u.forEach((t=>{c[t].regex=new RegExp(c[t].pattern)}));const h=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+u.join("")+"])|(.)","g"),d=/[.*+?^${}()|[\]\\]/g,p=String.fromCharCode(1);var f={props:{mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean},watch:{type(){this.__updateMaskInternals()},autogrow(){this.__updateMaskInternals()},mask(t){if(void 0!==t)this.__updateMaskValue(this.innerValue,!0);else{const t=this.__unmask(this.innerValue);this.__updateMaskInternals(),this.value!==t&&this.$emit("input",t)}},fillMask(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue,!0)},reverseFillMask(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue,!0)},unmaskedValue(){!0===this.hasMask&&this.__updateMaskValue(this.innerValue)}},methods:{__getInitialMaskedValue(){if(this.__updateMaskInternals(),!0===this.hasMask){const t=this.__mask(this.__unmask(this.value));return!1!==this.fillMask?this.__fillWithMask(t):t}return this.value},__getPaddedMaskMarked(t){if(t-1){for(let n=t-e.length;n>0;n--)i+=p;e=e.slice(0,n)+i+e.slice(n)}return e},__updateMaskInternals(){if(this.hasMask=void 0!==this.mask&&this.mask.length>0&&(!0===this.autogrow||["textarea","text","search","url","tel","password"].includes(this.type)),!1===this.hasMask)return this.computedUnmask=void 0,this.maskMarked="",void(this.maskReplaced="");const t=void 0===l[this.mask]?this.mask:l[this.mask],e="string"===typeof this.fillMask&&this.fillMask.length>0?this.fillMask.slice(0,1):"_",i=e.replace(d,"\\$&"),n=[],r=[],o=[];let a=!0===this.reverseFillMask,s="",u="";t.replace(h,((t,e,i,l,h)=>{if(void 0!==l){const t=c[l];o.push(t),u=t.negate,!0===a&&(r.push("(?:"+u+"+)?("+t.pattern+"+)?(?:"+u+"+)?("+t.pattern+"+)?"),a=!1),r.push("(?:"+u+"+)?("+t.pattern+")?")}else if(void 0!==i)s="\\"+("\\"===i?"":i),o.push(i),n.push("([^"+s+"]+)?"+s+"?");else{const t=void 0!==e?e:h;s="\\"===t?"\\\\\\\\":t.replace(d,"\\\\$&"),o.push(t),n.push("([^"+s+"]+)?"+s+"?")}}));const f=new RegExp("^"+n.join("")+"("+(""===s?".":"[^"+s+"]")+"+)?$"),g=r.length-1,m=r.map(((t,e)=>0===e&&!0===this.reverseFillMask?new RegExp("^"+i+"*"+t):e===g?new RegExp("^"+t+"("+(""===u?".":u)+"+)?"+(!0===this.reverseFillMask?"$":i+"*")):new RegExp("^"+t)));this.computedMask=o,this.computedUnmask=t=>{const e=f.exec(t);null!==e&&(t=e.slice(1).join(""));const i=[],n=m.length;for(let r=0,o=t;r0?i.join(""):t},this.maskMarked=o.map((t=>"string"===typeof t?t:p)).join(""),this.maskReplaced=this.maskMarked.split(p).join(e)},__updateMaskValue(t,e,i){const n=this.$refs.input,r=n.selectionEnd,o=n.value.length-r,a=this.__unmask(t);!0===e&&this.__updateMaskInternals();const s=this.__mask(a),l=!1!==this.fillMask?this.__fillWithMask(s):s,c=this.innerValue!==l;n.value!==l&&(n.value=l),!0===c&&(this.innerValue=l),document.activeElement===n&&this.$nextTick((()=>{if(l!==this.maskReplaced)if("insertFromPaste"!==i||!0===this.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(i)>-1){const t=!0===this.reverseFillMask?0===r?l.length>s.length?1:0:Math.max(0,l.length-(l===this.maskReplaced?0:Math.min(s.length,o)+1))+1:r;n.setSelectionRange(t,t,"forward")}else if(!0===this.reverseFillMask)if(!0===c){const t=Math.max(0,l.length-(l===this.maskReplaced?0:Math.min(s.length,o+1)));1===t&&1===r?n.setSelectionRange(t,t,"forward"):this.__moveCursorRightReverse(n,t,t)}else{const t=l.length-o;n.setSelectionRange(t,t,"backward")}else if(!0===c){const t=Math.max(0,this.maskMarked.indexOf(p),Math.min(s.length,r)-1);this.__moveCursorRight(n,t,t)}else{const t=r-1;this.__moveCursorRight(n,t,t)}else{const t=r-1;this.__moveCursorRight(n,t,t)}else{const t=!0===this.reverseFillMask?this.maskReplaced.length:0;n.setSelectionRange(t,t,"forward")}}));const u=!0===this.unmaskedValue?this.__unmask(l):l;String(this.value)!==u&&this.__emitValue(u,!0)},__moveCursorForPaste(t,e,i){const n=this.__mask(this.__unmask(t.value));e=Math.max(0,this.maskMarked.indexOf(p),Math.min(n.length,e)),t.setSelectionRange(e,i,"forward")},__moveCursorLeft(t,e,i,n){const r=-1===this.maskMarked.slice(e-1).indexOf(p);let o=Math.max(0,e-1);for(;o>=0;o--)if(this.maskMarked[o]===p){e=o,!0===r&&e++;break}if(o<0&&void 0!==this.maskMarked[e]&&this.maskMarked[e]!==p)return this.__moveCursorRight(t,0,0);e>=0&&t.setSelectionRange(e,!0===n?i:e,"backward")},__moveCursorRight(t,e,i,n){const r=t.value.length;let o=Math.min(r,i+1);for(;o<=r;o++){if(this.maskMarked[o]===p){i=o;break}this.maskMarked[o-1]===p&&(i=o)}if(o>r&&void 0!==this.maskMarked[i-1]&&this.maskMarked[i-1]!==p)return this.__moveCursorLeft(t,r,r);t.setSelectionRange(n?e:i,i,"forward")},__moveCursorLeftReverse(t,e,i,n){const r=this.__getPaddedMaskMarked(t.value.length);let o=Math.max(0,e-1);for(;o>=0;o--){if(r[o-1]===p){e=o;break}if(r[o]===p&&(e=o,0===o))break}if(o<0&&void 0!==r[e]&&r[e]!==p)return this.__moveCursorRightReverse(t,0,0);e>=0&&t.setSelectionRange(e,!0===n?i:e,"backward")},__moveCursorRightReverse(t,e,i,n){const r=t.value.length,o=this.__getPaddedMaskMarked(r),a=-1===o.slice(0,i+1).indexOf(p);let s=Math.min(r,i+1);for(;s<=r;s++)if(o[s-1]===p){i=s,i>0&&!0===a&&i--;break}if(s>r&&void 0!==o[i-1]&&o[i-1]!==p)return this.__moveCursorLeftReverse(t,r,r);t.setSelectionRange(!0===n?e:i,i,"forward")},__onMaskedKeydown(t){if(!0===Object(s["c"])(t))return;const e=this.$refs.input,i=e.selectionStart,n=e.selectionEnd;if(37===t.keyCode||39===t.keyCode){const r=this["__moveCursor"+(39===t.keyCode?"Right":"Left")+(!0===this.reverseFillMask?"Reverse":"")];t.preventDefault(),r(e,i,n,t.shiftKey)}else 8===t.keyCode&&!0!==this.reverseFillMask&&i===n?this.__moveCursorLeft(e,i,n,!0):46===t.keyCode&&!0===this.reverseFillMask&&i===n&&this.__moveCursorRightReverse(e,i,n,!0);this.$emit("keydown",t)},__mask(t){if(void 0===t||null===t||""===t)return"";if(!0===this.reverseFillMask)return this.__maskReverse(t);const e=this.computedMask;let i=0,n="";for(let r=0;r=0&&n>-1;o--){const a=e[o];let s=t[n];if("string"===typeof a)r=a+r,s===a&&n--;else{if(void 0===s||!a.regex.test(s))return r;do{r=(void 0!==a.transform?a.transform(s):s)+r,n--,s=t[n]}while(i===o&&void 0!==s&&a.regex.test(s))}}return r},__unmask(t){return"string"!==typeof t||void 0===this.computedUnmask?"number"===typeof t?this.computedUnmask(""+t):t:this.computedUnmask(t)},__fillWithMask(t){return this.maskReplaced.length-t.length<=0?t:!0===this.reverseFillMask&&t.length>0?this.maskReplaced.slice(0,-t.length)+t:t+this.maskReplaced.slice(t.length)}}},g=i("21e1"),m=i("87e8"),v=i("d882"),y=i("e704");e["a"]=n["a"].extend({name:"QInput",mixins:[r["a"],f,g["a"],o["a"],a["a"],m["a"]],props:{value:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},watch:{value(t){if(!0===this.hasMask){if(!0===this.stopValueWatcher&&(this.stopValueWatcher=!1,String(t)===this.emitCachedValue))return;this.__updateMaskValue(t)}else this.innerValue!==t&&(this.innerValue=t,"number"===this.type&&!0===this.hasOwnProperty("tempValue")&&(!0===this.typedNumber?this.typedNumber=!1:delete this.tempValue));!0===this.autogrow&&this.$nextTick(this.__adjustHeight)},type(){this.$refs.input&&(this.$refs.input.value=this.value)},autogrow(t){if(!0===t)this.$nextTick(this.__adjustHeight);else if(this.qAttrs.rows>0&&void 0!==this.$refs.input){const t=this.$refs.input;t.style.height="auto"}},dense(){!0===this.autogrow&&this.$nextTick(this.__adjustHeight)}},data(){return{innerValue:this.__getInitialMaskedValue()}},computed:{isTextarea(){return"textarea"===this.type||!0===this.autogrow},isTypeText(){return!0===this.isTextarea||["text","search","url","tel","password"].includes(this.type)},fieldClass(){return"q-"+(!0===this.isTextarea?"textarea":"input")+(!0===this.autogrow?" q-textarea--autogrow":"")},hasShadow(){return"file"!==this.type&&"string"===typeof this.shadowText&&this.shadowText.length>0},onEvents(){const t={...this.qListeners,input:this.__onInput,paste:this.__onPaste,change:this.__onChange,blur:this.__onFinishEditing,focus:v["k"]};return t.compositionstart=t.compositionupdate=t.compositionend=this.__onComposition,!0===this.hasMask&&(t.keydown=this.__onMaskedKeydown),!0===this.autogrow&&(t.animationend=this.__adjustHeight),t},inputAttrs(){const t={tabindex:0,"data-autofocus":this.autofocus||void 0,rows:"textarea"===this.type?6:void 0,"aria-label":this.label,name:this.nameProp,...this.qAttrs,id:this.targetUid,type:this.type,maxlength:this.maxlength,disabled:!0===this.disable,readonly:!0===this.readonly};return!0===this.autogrow&&(t.rows=1),t}},methods:{focus(){Object(y["a"])((()=>{const t=document.activeElement;void 0===this.$refs.input||this.$refs.input===t||null!==t&&t.id===this.targetUid||this.$refs.input.focus({preventScroll:!0})}))},select(){void 0!==this.$refs.input&&this.$refs.input.select()},getNativeElement(){return this.$refs.input},__onPaste(t){if(!0===this.hasMask&&!0!==this.reverseFillMask){const e=t.target;this.__moveCursorForPaste(e,e.selectionStart,e.selectionEnd)}this.$emit("paste",t)},__onInput(t){if(!t||!t.target||!0===t.target.qComposing)return;if("file"===this.type)return void this.$emit("input",t.target.files);const e=t.target.value;if(!0===this.hasMask)this.__updateMaskValue(e,!1,t.inputType);else if(this.__emitValue(e),!0===this.isTypeText&&t.target===document.activeElement){const{selectionStart:i,selectionEnd:n}=t.target;void 0!==i&&void 0!==n&&this.$nextTick((()=>{t.target===document.activeElement&&0===e.indexOf(t.target.value)&&t.target.setSelectionRange(i,n)}))}!0===this.autogrow&&this.__adjustHeight()},__emitValue(t,e){this.emitValueFn=()=>{"number"!==this.type&&!0===this.hasOwnProperty("tempValue")&&delete this.tempValue,this.value!==t&&this.emitCachedValue!==t&&(this.emitCachedValue=t,!0===e&&(this.stopValueWatcher=!0),this.$emit("input",t),this.$nextTick((()=>{this.emitCachedValue===t&&(this.emitCachedValue=NaN)}))),this.emitValueFn=void 0},"number"===this.type&&(this.typedNumber=!0,this.tempValue=t),void 0!==this.debounce?(clearTimeout(this.emitTimer),this.tempValue=t,this.emitTimer=setTimeout(this.emitValueFn,this.debounce)):this.emitValueFn()},__adjustHeight(){const t=this.$refs.input;if(void 0!==t){const e=t.parentNode.style,{overflow:i}=t.style;e.marginBottom=t.scrollHeight-1+"px",t.style.height="1px",t.style.overflow="hidden",t.style.height=t.scrollHeight+"px",t.style.overflow=i,e.marginBottom=""}},__onChange(t){this.__onComposition(t),clearTimeout(this.emitTimer),void 0!==this.emitValueFn&&this.emitValueFn(),this.$emit("change",t)},__onFinishEditing(t){void 0!==t&&Object(v["k"])(t),clearTimeout(this.emitTimer),void 0!==this.emitValueFn&&this.emitValueFn(),this.typedNumber=!1,this.stopValueWatcher=!1,delete this.tempValue,"file"!==this.type&&setTimeout((()=>{void 0!==this.$refs.input&&(this.$refs.input.value=void 0!==this.innerValue?this.innerValue:"")}))},__getCurValue(){return!0===this.hasOwnProperty("tempValue")?this.tempValue:void 0!==this.innerValue?this.innerValue:""},__getShadowControl(t){return t("div",{staticClass:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===this.isTextarea?"":" text-no-wrap")},[t("span",{staticClass:"invisible"},this.__getCurValue()),t("span",this.shadowText)])},__getControl(t){return t(!0===this.isTextarea?"textarea":"input",{ref:"input",staticClass:"q-field__native q-placeholder",style:this.inputStyle,class:this.inputClass,attrs:this.inputAttrs,on:this.onEvents,domProps:"file"!==this.type?{value:this.__getCurValue()}:this.formDomProps})}},created(){this.emitCachedValue=NaN},mounted(){!0===this.autogrow&&this.__adjustHeight()},beforeDestroy(){this.__onFinishEditing()}})},"2a19":function(t,e,i){"use strict";i("caad");var n=i("2b0e"),r=i("cb32"),o=i("0016"),a=i("9c40"),s=i("0d59"),l=i("d882"),c=i("f303"),u=i("1c16"),h=i("5ff7"),d=i("0967");let p,f=0;const g={},m={},v={},y={},b=/^\s*$/,_=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],x=["top-left","top-right","bottom-left","bottom-right"],w={positive:{icon:t=>t.iconSet.type.positive,color:"positive"},negative:{icon:t=>t.iconSet.type.negative,color:"negative"},warning:{icon:t=>t.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:t=>t.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function S(t,e,i){if(!t)return M("parameter required");let n;const r={textColor:"white"};if(!0!==t.ignoreDefaults&&Object.assign(r,g),!1===Object(h["d"])(t)&&(r.type&&Object.assign(r,w[r.type]),t={message:t}),Object.assign(r,w[t.type||r.type],t),"function"===typeof r.icon&&(r.icon=r.icon(e.$q)),r.spinner?!0===r.spinner&&(r.spinner=s["a"]):r.spinner=!1,r.meta={hasMedia:Boolean(!1!==r.spinner||r.icon||r.avatar),hasText:k(r.message)||k(r.caption)},r.position){if(!1===_.includes(r.position))return M("wrong position",t)}else r.position="bottom";if(void 0===r.timeout)r.timeout=5e3;else{const e=parseInt(r.timeout,10);if(isNaN(e)||e<0)return M("wrong timeout",t);r.timeout=e}0===r.timeout?r.progress=!1:!0===r.progress&&(r.meta.progressClass="q-notification__progress"+(r.progressClass?` ${r.progressClass}`:""),r.meta.progressStyle={animationDuration:`${r.timeout+1e3}ms`});const o=(!0===Array.isArray(t.actions)?t.actions:[]).concat(!0!==t.ignoreDefaults&&!0===Array.isArray(g.actions)?g.actions:[]).concat(void 0!==w[t.type]&&!0===Array.isArray(w[t.type].actions)?w[t.type].actions:[]),{closeBtn:a}=r;if(a&&o.push({label:"string"===typeof a?a:e.$q.lang.label.close}),r.actions=o.map((({handler:t,noDismiss:e,style:i,class:n,attrs:r,...o})=>({staticClass:n,style:i,props:{flat:!0,...o},attrs:r,on:{click:"function"===typeof t?()=>{t(),!0!==e&&l()}:()=>{l()}}}))),void 0===r.multiLine&&(r.multiLine=r.actions.length>1),Object.assign(r.meta,{staticClass:"q-notification row items-stretch q-notification--"+(!0===r.multiLine?"multi-line":"standard")+(void 0!==r.color?` bg-${r.color}`:"")+(void 0!==r.textColor?` text-${r.textColor}`:"")+(void 0!==r.classes?` ${r.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===r.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===r.multiLine?"":" col"),leftClass:!0===r.meta.hasText?"additional":"single",attrs:{role:"alert",...r.attrs}}),!1===r.group?(r.group=void 0,r.meta.group=void 0):(void 0!==r.group&&!0!==r.group||(r.group=[r.message,r.caption,r.multiline].concat(r.actions.map((({props:t})=>`${t.label}*${t.icon}`))).join("|")),r.meta.group=r.group+"|"+r.position),0===r.actions.length?r.actions=void 0:r.meta.actionsClass="q-notification__actions row items-center "+(!0===r.multiLine?"justify-end":"col-auto")+(!0===r.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==i){clearTimeout(i.notif.meta.timer),r.meta.uid=i.notif.meta.uid;const t=v[r.position].indexOf(i.notif);v[r.position][t]=r}else{const e=m[r.meta.group];if(void 0===e){if(r.meta.uid=f++,r.meta.badge=1,-1!==["left","right","center"].indexOf(r.position))v[r.position].splice(Math.floor(v[r.position].length/2),0,r);else{const t=r.position.indexOf("top")>-1?"unshift":"push";v[r.position][t](r)}void 0!==r.group&&(m[r.meta.group]=r)}else{if(clearTimeout(e.meta.timer),void 0!==r.badgePosition){if(!1===x.includes(r.badgePosition))return M("wrong badgePosition",t)}else r.badgePosition="top-"+(r.position.indexOf("left")>-1?"right":"left");r.meta.uid=e.meta.uid,r.meta.badge=e.meta.badge+1,r.meta.badgeClass=`q-notification__badge q-notification__badge--${r.badgePosition}`+(void 0!==r.badgeColor?` bg-${r.badgeColor}`:"")+(void 0!==r.badgeTextColor?` text-${r.badgeTextColor}`:"")+(r.badgeClass?` ${r.badgeClass}`:"");const i=v[r.position].indexOf(e);v[r.position][i]=m[r.meta.group]=r}}const l=()=>{C(r,e),n=void 0};return e.$forceUpdate(),r.timeout>0&&(r.meta.timer=setTimeout((()=>{l()}),r.timeout+1e3)),void 0!==r.group?e=>{void 0!==e?M("trying to update a grouped one which is forbidden",t):l()}:(n={dismiss:l,config:t,notif:r},void 0===i?t=>{if(void 0!==n)if(void 0===t)n.dismiss();else{const i=Object.assign({},n.config,t,{group:!1,position:r.position});S(i,e,n)}}:void Object.assign(i,n))}function C(t,e){clearTimeout(t.meta.timer);const i=v[t.position].indexOf(t);if(-1!==i){void 0!==t.group&&delete m[t.meta.group];const n=e.$refs[""+t.meta.uid];if(n){const{width:t,height:e}=getComputedStyle(n);n.style.left=`${n.offsetLeft}px`,n.style.width=t,n.style.height=e}v[t.position].splice(i,1),e.$forceUpdate(),"function"===typeof t.onDismiss&&t.onDismiss()}}function k(t){return void 0!==t&&null!==t&&!0!==b.test(t)}function M(t,e){return console.error(`Notify: ${t}`,e),!1}const T={name:"QNotifications",devtools:{hide:!0},beforeCreate(){void 0===this._routerRoot&&(this._routerRoot={})},render(t){return t("div",{staticClass:"q-notifications"},_.map((e=>t("transition-group",{key:e,staticClass:y[e],tag:"div",props:{name:`q-notification--${e}`,mode:"out-in"}},v[e].map((e=>{const{meta:i}=e,n=[];if(!0===i.hasMedia&&(!1!==e.spinner?n.push(t(e.spinner,{staticClass:"q-notification__spinner q-notification__spinner--"+i.leftClass,props:{color:e.spinnerColor,size:e.spinnerSize}})):e.icon?n.push(t(o["a"],{staticClass:"q-notification__icon q-notification__icon--"+i.leftClass,attrs:{role:"img"},props:{name:e.icon,color:e.iconColor,size:e.iconSize}})):e.avatar&&n.push(t(r["a"],{staticClass:"q-notification__avatar q-notification__avatar--"+i.leftClass},[t("img",{attrs:{src:e.avatar,"aria-hidden":"true"}})]))),!0===i.hasText){let i;const r={staticClass:"q-notification__message col"};if(!0===e.html)r.domProps={innerHTML:e.caption?`
${e.message}
${e.caption}
`:e.message};else{const n=[e.message];i=e.caption?[t("div",n),t("div",{staticClass:"q-notification__caption"},[e.caption])]:n}n.push(t("div",r,i))}const s=[t("div",{staticClass:i.contentClass},n)];return!0===e.progress&&s.push(t("div",{key:`${i.uid}|p|${i.badge}`,staticClass:i.progressClass,style:i.progressStyle})),void 0!==e.actions&&s.push(t("div",{staticClass:i.actionsClass},e.actions.map((e=>t(a["a"],{...e}))))),i.badge>1&&s.push(t("div",{key:`${i.uid}|${i.badge}`,staticClass:i.badgeClass,style:e.badgeStyle},[i.badge])),t("div",{ref:""+i.uid,key:i.uid,staticClass:i.staticClass,attrs:i.attrs},[t("div",{staticClass:i.wrapperClass},s)])}))))))},mounted(){if(void 0!==this.$q.fullscreen&&!0===this.$q.fullscreen.isCapable){const t=()=>{const t=Object(c["c"])(this.$q.fullscreen.activeEl);this.$el.parentElement!==t&&t.appendChild(this.$el)};this.unwatchFullscreen=this.$watch("$q.fullscreen.activeEl",Object(u["a"])(t,50)),!0===this.$q.fullscreen.isActive&&t()}},beforeDestroy(){void 0!==this.unwatchFullscreen&&this.unwatchFullscreen()}};e["a"]={setDefaults(t){!0!==d["e"]&&!0===Object(h["d"])(t)&&Object.assign(g,t)},registerType(t,e){!0!==d["e"]&&!0===Object(h["d"])(e)&&(w[t]=e)},install({$q:t}){if(t.notify=this.create=!0===d["e"]?l["g"]:t=>S(t,p),t.notify.setDefaults=this.setDefaults,t.notify.registerType=this.registerType,void 0!==t.config.notify&&this.setDefaults(t.config.notify),!0!==d["e"]){_.forEach((t=>{v[t]=[];const e=!0===["left","center","right"].includes(t)?"center":t.indexOf("top")>-1?"top":"bottom",i=t.indexOf("left")>-1?"start":t.indexOf("right")>-1?"end":"center",n=["left","right"].includes(t)?`items-${"left"===t?"start":"end"} justify-center`:"center"===t?"flex-center":`items-${i}`;y[t]=`q-notifications__list q-notifications__list--${e} fixed column no-wrap ${n}`}));const t=document.createElement("div");document.body.appendChild(t),p=new n["a"](T),p.$mount(t)}}}},"2a62":function(t,e,i){var n=i("c65b"),r=i("825a"),o=i("dc4a");t.exports=function(t,e,i){var a,s;r(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw i;return i}a=n(a,t)}catch(l){s=!0,a=l}if("throw"===e)throw i;if(s)throw a;return r(a),i}},"2b0e":function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return Yn})); /*! * Vue.js v2.7.8 * (c) 2014-2022 Evan You * Released under the MIT License. */ var n=Object.freeze({}),r=Array.isArray;function o(t){return void 0===t||null===t}function a(t){return void 0!==t&&null!==t}function s(t){return!0===t}function l(t){return!1===t}function c(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function u(t){return"function"===typeof t}function h(t){return null!==t&&"object"===typeof t}var d=Object.prototype.toString;function p(t){return"[object Object]"===d.call(t)}function f(t){return"[object RegExp]"===d.call(t)}function g(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function m(t){return a(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===d?JSON.stringify(t,null,2):String(t)}function y(t){var e=parseFloat(t);return isNaN(e)?t:e}function b(t,e){for(var i=Object.create(null),n=t.split(","),r=0;r-1)return t.splice(i,1)}}var w=Object.prototype.hasOwnProperty;function S(t,e){return w.call(t,e)}function C(t){var e=Object.create(null);return function(i){var n=e[i];return n||(e[i]=t(i))}}var k=/-(\w)/g,M=C((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),T=C((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),O=/\B([A-Z])/g,A=C((function(t){return t.replace(O,"-$1").toLowerCase()}));function I(t,e){function i(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i}function P(t,e){return t.bind(e)}var D=Function.prototype.bind?P:I;function E(t,e){e=e||0;var i=t.length-e,n=new Array(i);while(i--)n[i]=t[i+e];return n}function L(t,e){for(var i in e)t[i]=e[i];return t}function j(t){for(var e={},i=0;i0,nt=tt&&tt.indexOf("edge/")>0;tt&&tt.indexOf("android");var rt=tt&&/iphone|ipad|ipod|ios/.test(tt);tt&&/chrome\/\d+/.test(tt),tt&&/phantomjs/.test(tt);var ot,at=tt&&tt.match(/firefox\/(\d+)/),st={}.watch,lt=!1;if(J)try{var ct={};Object.defineProperty(ct,"passive",{get:function(){lt=!0}}),window.addEventListener("test-passive",null,ct)}catch(Xa){}var ut=function(){return void 0===ot&&(ot=!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),ot},ht=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function dt(t){return"function"===typeof t&&/native code/.test(t.toString())}var pt,ft="undefined"!==typeof Symbol&&dt(Symbol)&&"undefined"!==typeof Reflect&&dt(Reflect.ownKeys);pt="undefined"!==typeof Set&&dt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var gt=null;function mt(t){void 0===t&&(t=null),t||gt&>._scope.off(),gt=t,t&&t._scope.on()}var vt=function(){function t(t,e,i,n,r,o,a,s){this.tag=t,this.data=e,this.children=i,this.text=n,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),yt=function(t){void 0===t&&(t="");var e=new vt;return e.text=t,e.isComment=!0,e};function bt(t){return new vt(void 0,void 0,void 0,String(t))}function _t(t){var e=new vt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var xt=0,wt=function(){function t(){this.id=xt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){x(this.subs,t)},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.slice();for(var i=0,n=e.length;i0&&(n=oe(n,"".concat(e||"","_").concat(i)),re(n[0])&&re(u)&&(h[l]=bt(u.text+n[0].text),n.shift()),h.push.apply(h,n)):c(n)?re(u)?h[l]=bt(u.text+n):""!==n&&h.push(bt(n)):re(n)&&re(u)?h[l]=bt(u.text+n.text):(s(t._isVList)&&a(n.tag)&&o(n.key)&&a(e)&&(n.key="__vlist".concat(e,"_").concat(i,"__")),h.push(n)));return h}function ae(t,e){var i,n,o,s,l=null;if(r(t)||"string"===typeof t)for(l=new Array(t.length),i=0,n=t.length;i0,s=e?!!e.$stable:!a,l=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&r&&r!==n&&l===r.$key&&!a&&!r.$hasNormal)return r;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=ke(t,i,c,e[c]))}else o={};for(var u in i)u in o||(o[u]=Me(i,u));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",s),X(o,"$key",l),X(o,"$hasNormal",a),o}function ke(t,e,i,n){var o=function(){var e=gt;mt(t);var i=arguments.length?n.apply(null,arguments):n({});i=i&&"object"===typeof i&&!r(i)?[i]:ne(i);var o=i&&i[0];return mt(e),i&&(!o||1===i.length&&o.isComment&&!Se(o))?void 0:i};return n.proxy&&Object.defineProperty(e,i,{get:o,enumerable:!0,configurable:!0}),o}function Me(t,e){return function(){return t[e]}}function Te(t){var e=t.$options,i=e.setup;if(i){var n=t._setupContext=Oe(t);mt(t),Ct();var r=Ue(i,null,[t._props||zt({}),n],t,"setup");if(kt(),mt(),u(r))e.render=r;else if(h(r))if(t._setupState=r,r.__sfc){var o=t._setupProxy={};for(var a in r)"__sfc"!==a&&Ht(o,r,a)}else for(var a in r)Y(a)||Ht(t,r,a);else 0}}function Oe(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};X(e,"_v_attr_proxy",!0),Ae(e,t.$attrs,n,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};Ae(e,t.$listeners,n,t,"$listeners")}return t._listenersProxy},get slots(){return Pe(t)},emit:D(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(i){return Ht(t,e,i)}))}}}function Ae(t,e,i,n,r){var o=!1;for(var a in e)a in t?e[a]!==i[a]&&(o=!0):(o=!0,Ie(t,a,n,r));for(var a in t)a in e||(o=!0,delete t[a]);return o}function Ie(t,e,i,n){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return i[n][e]}})}function Pe(t){return t._slotsProxy||De(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function De(t,e){for(var i in e)t[i]=e[i];for(var i in t)i in e||delete t[i]}function Ee(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,r=i&&i.context;t.$slots=xe(e._renderChildren,r),t.$scopedSlots=i?Ce(t.$parent,i.data.scopedSlots,t.$slots):n,t._c=function(e,i,n,r){return qe(t,e,i,n,r,!1)},t.$createElement=function(e,i,n,r){return qe(t,e,i,n,r,!0)};var o=i&&i.data;Rt(t,"$attrs",o&&o.attrs||n,null,!0),Rt(t,"$listeners",e._parentListeners||n,null,!0)}var Le=null;function je(t){_e(t.prototype),t.prototype.$nextTick=function(t){return oi(t,this)},t.prototype._render=function(){var t,e=this,i=e.$options,n=i.render,o=i._parentVnode;o&&e._isMounted&&(e.$scopedSlots=Ce(e.$parent,o.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&De(e._slotsProxy,e.$scopedSlots)),e.$vnode=o;try{mt(e),Le=e,t=n.call(e._renderProxy,e.$createElement)}catch(Xa){We(Xa,e,"render"),t=e._vnode}finally{Le=null,mt()}return r(t)&&1===t.length&&(t=t[0]),t instanceof vt||(t=yt()),t.parent=o,t}}function Re(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),h(t)?e.extend(t):t}function Be(t,e,i,n,r){var o=yt();return o.asyncFactory=t,o.asyncMeta={data:e,context:i,children:n,tag:r},o}function Fe(t,e){if(s(t.error)&&a(t.errorComp))return t.errorComp;if(a(t.resolved))return t.resolved;var i=Le;if(i&&a(t.owners)&&-1===t.owners.indexOf(i)&&t.owners.push(i),s(t.loading)&&a(t.loadingComp))return t.loadingComp;if(i&&!a(t.owners)){var n=t.owners=[i],r=!0,l=null,c=null;i.$on("hook:destroyed",(function(){return x(n,i)}));var u=function(t){for(var e=0,i=n.length;e1?E(i):i;for(var n=E(arguments,1),r='event handler for "'.concat(t,'"'),o=0,a=i.length;odocument.createEvent("Event").timeStamp&&(Ni=function(){return zi.now()})}var Vi=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function qi(){var t,e;for(Fi=Ni(),ji=!0,Pi.sort(Vi),Ri=0;RiRi&&Pi[i].id>t.id)i--;Pi.splice(i+1,0,t)}else Pi.push(t);Li||(Li=!0,oi(qi))}}function Ui(t){var e=t.$options.provide;if(e){var i=u(e)?e.call(t):e;if(!h(i))return;for(var n=Xt(t),r=ft?Reflect.ownKeys(i):Object.keys(i),o=0;o-1)if(o&&!S(r,"default"))a=!1;else if(""===a||a===A(t)){var l=Tn(String,r.type);(l<0||s-1)return this;var i=E(arguments,1);return i.unshift(this),u(t.install)?t.install.apply(t,i):u(t)&&t.apply(null,i),e.push(t),this}}function Kn(t){t.mixin=function(t){return this.options=_n(this.options,t),this}}function Zn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,n=i.cid,r=t._Ctor||(t._Ctor={});if(r[n])return r[n];var o=tn(t)||tn(i.options);var a=function(t){this._init(t)};return a.prototype=Object.create(i.prototype),a.prototype.constructor=a,a.cid=e++,a.options=_n(i.options,t),a["super"]=i,a.options.props&&Qn(a),a.options.computed&&Jn(a),a.extend=i.extend,a.mixin=i.mixin,a.use=i.use,H.forEach((function(t){a[t]=i[t]})),o&&(a.options.components[o]=a),a.superOptions=i.options,a.extendOptions=t,a.sealedOptions=L({},a.options),r[n]=a,a}}function Qn(t){var e=t.options.props;for(var i in e)An(t.prototype,"_props",i)}function Jn(t){var e=t.options.computed;for(var i in e)Rn(t.prototype,i,e[i])}function tr(t){H.forEach((function(e){t[e]=function(t,i){return i?("component"===e&&p(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&u(i)&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}}))}function er(t){return t&&(tn(t.Ctor.options)||t.tag)}function ir(t,e){return r(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function nr(t,e){var i=t.cache,n=t.keys,r=t._vnode;for(var o in i){var a=i[o];if(a){var s=a.name;s&&!e(s)&&rr(i,o,n,r)}}}function rr(t,e,i,n){var r=t[e];!r||n&&r.tag===n.tag||r.componentInstance.$destroy(),t[e]=null,x(i,e)}Hn(Yn),qn(Yn),_i(Yn),Ci(Yn),je(Yn);var or=[String,RegExp,Array],ar={name:"keep-alive",abstract:!0,props:{include:or,exclude:or,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,i=t.keys,n=t.vnodeToCache,r=t.keyToCache;if(n){var o=n.tag,a=n.componentInstance,s=n.componentOptions;e[r]={name:er(s),tag:o,componentInstance:a},i.push(r),this.max&&i.length>parseInt(this.max)&&rr(e,i[0],i,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)rr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){nr(t,(function(t){return ir(e,t)}))})),this.$watch("exclude",(function(e){nr(t,(function(t){return!ir(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ne(t),i=e&&e.componentOptions;if(i){var n=er(i),r=this,o=r.include,a=r.exclude;if(o&&(!n||!ir(o,n))||a&&n&&ir(a,n))return e;var s=this,l=s.cache,c=s.keys,u=null==e.key?i.Ctor.cid+(i.tag?"::".concat(i.tag):""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,x(c,u),c.push(u)):(this.vnodeToCache=e,this.keyToCache=u),e.data.keepAlive=!0}return e||t&&t[0]}},sr={KeepAlive:ar};function lr(t){var e={get:function(){return W}};Object.defineProperty(t,"config",e),t.util={warn:cn,extend:L,mergeOptions:_n,defineReactive:Rt},t.set=Bt,t.delete=Ft,t.nextTick=oi,t.observable=function(t){return jt(t),t},t.options=Object.create(null),H.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,L(t.options.components,sr),Xn(t),Kn(t),Zn(t),tr(t)}lr(Yn),Object.defineProperty(Yn.prototype,"$isServer",{get:ut}),Object.defineProperty(Yn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Yn,"FunctionalRenderContext",{value:Ki}),Yn.version=li;var cr=b("style,class"),ur=b("input,textarea,option,select,progress"),hr=function(t,e,i){return"value"===i&&ur(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},dr=b("contenteditable,draggable,spellcheck"),pr=b("events,caret,typing,plaintext-only"),fr=function(t,e){return br(e)||"false"===e?"false":"contenteditable"===t&&pr(e)?e:"true"},gr=b("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),mr="http://www.w3.org/1999/xlink",vr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},yr=function(t){return vr(t)?t.slice(6,t.length):""},br=function(t){return null==t||!1===t};function _r(t){var e=t.data,i=t,n=t;while(a(n.componentInstance))n=n.componentInstance._vnode,n&&n.data&&(e=xr(n.data,e));while(a(i=i.parent))i&&i.data&&(e=xr(e,i.data));return wr(e.staticClass,e.class)}function xr(t,e){return{staticClass:Sr(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function wr(t,e){return a(t)||a(e)?Sr(t,Cr(e)):""}function Sr(t,e){return t?e?t+" "+e:t:e||""}function Cr(t){return Array.isArray(t)?kr(t):h(t)?Mr(t):"string"===typeof t?t:""}function kr(t){for(var e,i="",n=0,r=t.length;n-1?Dr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Dr[t]=/HTMLUnknownElement/.test(e.toString())}var Lr=b("text,number,password,search,email,tel,url");function jr(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function Rr(t,e){var i=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i}function Br(t,e){return document.createElementNS(Tr[t],e)}function Fr(t){return document.createTextNode(t)}function Nr(t){return document.createComment(t)}function zr(t,e,i){t.insertBefore(e,i)}function Vr(t,e){t.removeChild(e)}function qr(t,e){t.appendChild(e)}function $r(t){return t.parentNode}function Hr(t){return t.nextSibling}function Gr(t){return t.tagName}function Wr(t,e){t.textContent=e}function Ur(t,e){t.setAttribute(e,"")}var Yr=Object.freeze({__proto__:null,createElement:Rr,createElementNS:Br,createTextNode:Fr,createComment:Nr,insertBefore:zr,removeChild:Vr,appendChild:qr,parentNode:$r,nextSibling:Hr,tagName:Gr,setTextContent:Wr,setStyleScope:Ur}),Xr={create:function(t,e){Kr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Kr(t,!0),Kr(e))},destroy:function(t){Kr(t,!0)}};function Kr(t,e){var i=t.data.ref;if(a(i)){var n=t.context,o=t.componentInstance||t.elm,s=e?null:o,l=e?void 0:o;if(u(i))Ue(i,n,[s],n,"template ref function");else{var c=t.data.refInFor,h="string"===typeof i||"number"===typeof i,d=$t(i),p=n.$refs;if(h||d)if(c){var f=h?p[i]:i.value;e?r(f)&&x(f,o):r(f)?f.includes(o)||f.push(o):h?(p[i]=[o],Zr(n,i,p[i])):i.value=[o]}else if(h){if(e&&p[i]!==o)return;p[i]=l,Zr(n,i,s)}else if(d){if(e&&i.value!==o)return;i.value=s}else 0}}}function Zr(t,e,i){var n=t._setupState;n&&S(n,e)&&($t(n[e])?n[e].value=i:n[e]=i)}var Qr=new vt("",{},[]),Jr=["create","activate","update","remove","destroy"];function to(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&a(t.data)===a(e.data)&&eo(t,e)||s(t.isAsyncPlaceholder)&&o(e.asyncFactory.error))}function eo(t,e){if("input"!==t.tag)return!0;var i,n=a(i=t.data)&&a(i=i.attrs)&&i.type,r=a(i=e.data)&&a(i=i.attrs)&&i.type;return n===r||Lr(n)&&Lr(r)}function io(t,e,i){var n,r,o={};for(n=e;n<=i;++n)r=t[n].key,a(r)&&(o[r]=n);return o}function no(t){var e,i,n={},l=t.modules,u=t.nodeOps;for(e=0;eg?(h=o(i[y+1])?null:i[y+1].elm,C(t,h,i,p,y,n)):p>y&&M(e,d,g)}function A(t,e,i,n){for(var r=i;r-1?go(t,e,i):gr(e)?br(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):dr(e)?t.setAttribute(e,fr(e,i)):vr(e)?br(i)?t.removeAttributeNS(mr,yr(e)):t.setAttributeNS(mr,e,i):go(t,e,i)}function go(t,e,i){if(br(i))t.removeAttribute(e);else{if(et&&!it&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==i&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,i)}}var mo={create:po,update:po};function vo(t,e){var i=e.elm,n=e.data,r=t.data;if(!(o(n.staticClass)&&o(n.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var s=_r(e),l=i._transitionClasses;a(l)&&(s=Sr(s,Cr(l))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var yo,bo={create:vo,update:vo},_o="__r",xo="__c";function wo(t){if(a(t[_o])){var e=et?"change":"input";t[e]=[].concat(t[_o],t[e]||[]),delete t[_o]}a(t[xo])&&(t.change=[].concat(t[xo],t.change||[]),delete t[xo])}function So(t,e,i){var n=yo;return function r(){var o=e.apply(null,arguments);null!==o&&Mo(t,r,i,n)}}var Co=Ze&&!(at&&Number(at[1])<=53);function ko(t,e,i,n){if(Co){var r=Fi,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}yo.addEventListener(t,e,lt?{capture:i,passive:n}:i)}function Mo(t,e,i,n){(n||yo).removeEventListener(t,e._wrapper||e,i)}function To(t,e){if(!o(t.data.on)||!o(e.data.on)){var i=e.data.on||{},n=t.data.on||{};yo=e.elm||t.elm,wo(i),Qt(i,n,ko,Mo,So,e.context),yo=void 0}}var Oo,Ao={create:To,update:To,destroy:function(t){return To(t,Qr)}};function Io(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var i,n,r=e.elm,l=t.data.domProps||{},c=e.data.domProps||{};for(i in(a(c.__ob__)||s(c._v_attr_proxy))&&(c=e.data.domProps=L({},c)),l)i in c||(r[i]="");for(i in c){if(n=c[i],"textContent"===i||"innerHTML"===i){if(e.children&&(e.children.length=0),n===l[i])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===i&&"PROGRESS"!==r.tagName){r._value=n;var u=o(n)?"":String(n);Po(r,u)&&(r.value=u)}else if("innerHTML"===i&&Ar(r.tagName)&&o(r.innerHTML)){Oo=Oo||document.createElement("div"),Oo.innerHTML="".concat(n,"");var h=Oo.firstChild;while(r.firstChild)r.removeChild(r.firstChild);while(h.firstChild)r.appendChild(h.firstChild)}else if(n!==l[i])try{r[i]=n}catch(Xa){}}}}function Po(t,e){return!t.composing&&("OPTION"===t.tagName||Do(t,e)||Eo(t,e))}function Do(t,e){var i=!0;try{i=document.activeElement!==t}catch(Xa){}return i&&t.value!==e}function Eo(t,e){var i=t.value,n=t._vModifiers;if(a(n)){if(n.number)return y(i)!==y(e);if(n.trim)return i.trim()!==e.trim()}return i!==e}var Lo={create:Io,update:Io},jo=C((function(t){var e={},i=/;(?![^(]*\))/g,n=/:(.+)/;return t.split(i).forEach((function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}));function Ro(t){var e=Bo(t.style);return t.staticStyle?L(t.staticStyle,e):e}function Bo(t){return Array.isArray(t)?j(t):"string"===typeof t?jo(t):t}function Fo(t,e){var i,n={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(i=Ro(r.data))&&L(n,i)}(i=Ro(t.data))&&L(n,i);var o=t;while(o=o.parent)o.data&&(i=Ro(o.data))&&L(n,i);return n}var No,zo=/^--/,Vo=/\s*!important$/,qo=function(t,e,i){if(zo.test(e))t.style.setProperty(e,i);else if(Vo.test(i))t.style.setProperty(A(e),i.replace(Vo,""),"important");else{var n=Ho(e);if(Array.isArray(i))for(var r=0,o=i.length;r-1?e.split(Uo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var i=" ".concat(t.getAttribute("class")||""," ");i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function Xo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Uo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var i=" ".concat(t.getAttribute("class")||""," "),n=" "+e+" ";while(i.indexOf(n)>=0)i=i.replace(n," ");i=i.trim(),i?t.setAttribute("class",i):t.removeAttribute("class")}}function Ko(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&L(e,Zo(t.name||"v")),L(e,t),e}return"string"===typeof t?Zo(t):void 0}}var Zo=C((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),Qo=J&&!it,Jo="transition",ta="animation",ea="transition",ia="transitionend",na="animation",ra="animationend";Qo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ea="WebkitTransition",ia="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(na="WebkitAnimation",ra="webkitAnimationEnd"));var oa=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function aa(t){oa((function(){oa(t)}))}function sa(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),Yo(t,e))}function la(t,e){t._transitionClasses&&x(t._transitionClasses,e),Xo(t,e)}function ca(t,e,i){var n=ha(t,e),r=n.type,o=n.timeout,a=n.propCount;if(!r)return i();var s=r===Jo?ia:ra,l=0,c=function(){t.removeEventListener(s,u),i()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l0&&(i=Jo,u=a,h=o.length):e===ta?c>0&&(i=ta,u=c,h=l.length):(u=Math.max(a,c),i=u>0?a>c?Jo:ta:null,h=i?i===Jo?o.length:l.length:0);var d=i===Jo&&ua.test(n[ea+"Property"]);return{type:i,timeout:u,propCount:h,hasTransform:d}}function da(t,e){while(t.length1}function ya(t,e){!0!==e.data.show&&fa(e)}var ba=J?{create:ya,activate:ya,remove:function(t,e){!0!==t.data.show?ga(t,e):e()}}:{},_a=[mo,bo,Ao,Lo,Wo,ba],xa=_a.concat(ho),wa=no({nodeOps:Yr,modules:xa});it&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Ia(t,"input")}));var Sa={inserted:function(t,e,i,n){"select"===i.tag?(n.elm&&!n.elm._vOptions?Jt(i,"postpatch",(function(){Sa.componentUpdated(t,e,i)})):Ca(t,e,i.context),t._vOptions=[].map.call(t.options,Ta)):("textarea"===i.tag||Lr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Oa),t.addEventListener("compositionend",Aa),t.addEventListener("change",Aa),it&&(t.vmodel=!0)))},componentUpdated:function(t,e,i){if("select"===i.tag){Ca(t,e,i.context);var n=t._vOptions,r=t._vOptions=[].map.call(t.options,Ta);if(r.some((function(t,e){return!N(t,n[e])}))){var o=t.multiple?e.value.some((function(t){return Ma(t,r)})):e.value!==e.oldValue&&Ma(e.value,r);o&&Ia(t,"change")}}}};function Ca(t,e,i){ka(t,e,i),(et||nt)&&setTimeout((function(){ka(t,e,i)}),0)}function ka(t,e,i){var n=e.value,r=t.multiple;if(!r||Array.isArray(n)){for(var o,a,s=0,l=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(N(Ta(a),n))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function Ma(t,e){return e.every((function(e){return!N(e,t)}))}function Ta(t){return"_value"in t?t._value:t.value}function Oa(t){t.target.composing=!0}function Aa(t){t.target.composing&&(t.target.composing=!1,Ia(t.target,"input"))}function Ia(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function Pa(t){return!t.componentInstance||t.data&&t.data.transition?t:Pa(t.componentInstance._vnode)}var Da={bind:function(t,e,i){var n=e.value;i=Pa(i);var r=i.data&&i.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&r?(i.data.show=!0,fa(i,(function(){t.style.display=o}))):t.style.display=n?o:"none"},update:function(t,e,i){var n=e.value,r=e.oldValue;if(!n!==!r){i=Pa(i);var o=i.data&&i.data.transition;o?(i.data.show=!0,n?fa(i,(function(){t.style.display=t.__vOriginalDisplay})):ga(i,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none"}},unbind:function(t,e,i,n,r){r||(t.style.display=t.__vOriginalDisplay)}},Ea={model:Sa,show:Da},La={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ja(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ja(Ne(e.children)):t}function Ra(t){var e={},i=t.$options;for(var n in i.propsData)e[n]=t[n];var r=i._parentListeners;for(var n in r)e[M(n)]=r[n];return e}function Ba(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Fa(t){while(t=t.parent)if(t.data.transition)return!0}function Na(t,e){return e.key===t.key&&e.tag===t.tag}var za=function(t){return t.tag||Se(t)},Va=function(t){return"show"===t.name},qa={name:"transition",props:La,abstract:!0,render:function(t){var e=this,i=this.$slots.default;if(i&&(i=i.filter(za),i.length)){0;var n=this.mode;0;var r=i[0];if(Fa(this.$vnode))return r;var o=ja(r);if(!o)return r;if(this._leaving)return Ba(t,r);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:c(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Ra(this),l=this._vnode,u=ja(l);if(o.data.directives&&o.data.directives.some(Va)&&(o.data.show=!0),u&&u.data&&!Na(o,u)&&!Se(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=L({},s);if("out-in"===n)return this._leaving=!0,Jt(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Ba(t,r);if("in-out"===n){if(Se(o))return l;var d,p=function(){d()};Jt(s,"afterEnter",p),Jt(s,"enterCancelled",p),Jt(h,"delayLeave",(function(t){d=t}))}}return r}}},$a=L({tag:String,moveClass:String},La);delete $a.mode;var Ha={props:$a,beforeMount:function(){var t=this,e=this._update;this._update=function(i,n){var r=wi(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,i,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=Ra(this),s=0;s["horizontal","vertical","cell","none"].includes(t)},wrapCells:Boolean},computed:{classes(){return`q-table--${this.separator}-separator`+(!0===this.isDark?" q-table--dark q-table__card--dark q-dark":"")+(!0===this.dense?" q-table--dense":"")+(!0===this.flat?" q-table--flat":"")+(!0===this.bordered?" q-table--bordered":"")+(!0===this.square?" q-table--square":"")+(!1===this.wrapCells?" q-table--no-wrap":"")}},render(t){return t("div",{staticClass:"q-markup-table q-table__container q-table__card",class:this.classes,on:{...this.qListeners}},[t("table",{staticClass:"q-table"},Object(a["c"])(this,"default"))])}})},"2c91":function(t,e,i){"use strict";var n=i("2b0e"),r=i("87e8");e["a"]=n["a"].extend({name:"QSpace",mixins:[r["a"]],render(t){return t("div",{staticClass:"q-space",on:{...this.qListeners}})}})},"2d00":function(t,e,i){var n,r,o=i("da84"),a=i("342f"),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(n=u.split("."),r=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(r=+n[1]))),t.exports=r},"2d83":function(t,e,i){"use strict";var n=i("387f");t.exports=function(t,e,i,r,o){var a=new Error(t);return n(a,e,i,r,o)}},"2e67":function(t,e,i){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f3a":function(t,e,i){const n=i("bbf0"),r=i("7bf0");function o(t){this.mode=n.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),t.put(i,13)}},t.exports=o},"2f62":function(t,e,i){"use strict";(function(t){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function i(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:n});else{var i=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,i.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},r=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}function a(t,e){return t.filter(e)[0]}function s(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var i=a(e,(function(e){return e.original===t}));if(i)return i.copy;var n=Array.isArray(t)?[]:{};return e.push({original:t,copy:n}),Object.keys(t).forEach((function(i){n[i]=s(t[i],e)})),n}function l(t,e){Object.keys(t).forEach((function(i){return e(t[i],i)}))}function c(t){return null!==t&&"object"===typeof t}function u(t){return t&&"function"===typeof t.then}function h(t,e){return function(){return t(e)}}var d=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=("function"===typeof i?i():i)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(t,e){this._children[t]=e},d.prototype.removeChild=function(t){delete this._children[t]},d.prototype.getChild=function(t){return this._children[t]},d.prototype.hasChild=function(t){return t in this._children},d.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},d.prototype.forEachChild=function(t){l(this._children,t)},d.prototype.forEachGetter=function(t){this._rawModule.getters&&l(this._rawModule.getters,t)},d.prototype.forEachAction=function(t){this._rawModule.actions&&l(this._rawModule.actions,t)},d.prototype.forEachMutation=function(t){this._rawModule.mutations&&l(this._rawModule.mutations,t)},Object.defineProperties(d.prototype,p);var f=function(t){this.register([],t,!1)};function g(t,e,i){if(e.update(i),i.modules)for(var n in i.modules){if(!e.getChild(n))return void 0;g(t.concat(n),e.getChild(n),i.modules[n])}}f.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},f.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,i){return e=e.getChild(i),t+(e.namespaced?i+"/":"")}),"")},f.prototype.update=function(t){g([],this.root,t)},f.prototype.register=function(t,e,i){var n=this;void 0===i&&(i=!0);var r=new d(e,i);if(0===t.length)this.root=r;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],r)}e.modules&&l(e.modules,(function(e,r){n.register(t.concat(r),e,i)}))},f.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1],n=e.getChild(i);n&&n.runtime&&e.removeChild(i)},f.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];return!!e&&e.hasChild(i)};var m;var v=function(t){var e=this;void 0===t&&(t={}),!m&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var i=t.plugins;void 0===i&&(i=[]);var n=t.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var r=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(t,e){return s.call(r,t,e)},this.commit=function(t,e,i){return l.call(r,t,e,i)},this.strict=n;var c=this._modules.root.state;w(this,c,[],this._modules.root),x(this,c),i.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:m.config.devtools;u&&o(this)},y={state:{configurable:!0}};function b(t,e,i){return e.indexOf(t)<0&&(i&&i.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function _(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var i=t.state;w(t,i,[],t._modules.root,!0),x(t,i,e)}function x(t,e,i){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,o={};l(r,(function(e,i){o[i]=h(e,t),Object.defineProperty(t.getters,i,{get:function(){return t._vm[i]},enumerable:!0})}));var a=m.config.silent;m.config.silent=!0,t._vm=new m({data:{$$state:e},computed:o}),m.config.silent=a,t.strict&&O(t),n&&(i&&t._withCommit((function(){n._data.$$state=null})),m.nextTick((function(){return n.$destroy()})))}function w(t,e,i,n,r){var o=!i.length,a=t._modules.getNamespace(i);if(n.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=n),!o&&!r){var s=A(e,i.slice(0,-1)),l=i[i.length-1];t._withCommit((function(){m.set(s,l,n.state)}))}var c=n.context=S(t,a,i);n.forEachMutation((function(e,i){var n=a+i;k(t,n,e,c)})),n.forEachAction((function(e,i){var n=e.root?i:a+i,r=e.handler||e;M(t,n,r,c)})),n.forEachGetter((function(e,i){var n=a+i;T(t,n,e,c)})),n.forEachChild((function(n,o){w(t,e,i.concat(o),n,r)}))}function S(t,e,i){var n=""===e,r={dispatch:n?t.dispatch:function(i,n,r){var o=I(i,n,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:n?t.commit:function(i,n,r){var o=I(i,n,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:n?function(){return t.getters}:function(){return C(t,e)}},state:{get:function(){return A(t.state,i)}}}),r}function C(t,e){if(!t._makeLocalGettersCache[e]){var i={},n=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,n)===e){var o=r.slice(n);Object.defineProperty(i,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=i}return t._makeLocalGettersCache[e]}function k(t,e,i,n){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){i.call(t,n.state,e)}))}function M(t,e,i,n){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r=i.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return u(r)||(r=Promise.resolve(r)),t._devtoolHook?r.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):r}))}function T(t,e,i,n){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return i(n.state,n.getters,t.state,t.getters)})}function O(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(t,e){return e.reduce((function(t,e){return t[e]}),t)}function I(t,e,i){return c(t)&&t.type&&(i=e,e=t,t=t.type),{type:t,payload:e,options:i}}function P(t){m&&t===m||(m=t,i(m))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},v.prototype.commit=function(t,e,i){var n=this,r=I(t,e,i),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,n.state)})))},v.prototype.dispatch=function(t,e){var i=this,n=I(t,e),r=n.type,o=n.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,i.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{i._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,i.state)}))}catch(c){0}t(e)}),(function(t){try{i._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,i.state,t)}))}catch(c){0}e(t)}))}))}},v.prototype.subscribe=function(t,e){return b(t,this._subscribers,e)},v.prototype.subscribeAction=function(t,e){var i="function"===typeof t?{before:t}:t;return b(i,this._actionSubscribers,e)},v.prototype.watch=function(t,e,i){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,i)},v.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},v.prototype.registerModule=function(t,e,i){void 0===i&&(i={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),w(this,this.state,t,this._modules.get(t),i.preserveState),x(this,this.state)},v.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var i=A(e.state,t.slice(0,-1));m.delete(i,t[t.length-1])})),_(this)},v.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},v.prototype.hotUpdate=function(t){this._modules.update(t),_(this,!0)},v.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(v.prototype,y);var D=N((function(t,e){var i={};return B(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=this.$store.state,i=this.$store.getters;if(t){var n=z(this.$store,"mapState",t);if(!n)return;e=n.context.state,i=n.context.getters}return"function"===typeof r?r.call(this,e,i):e[r]},i[n].vuex=!0})),i})),E=N((function(t,e){var i={};return B(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var n=this.$store.commit;if(t){var o=z(this.$store,"mapMutations",t);if(!o)return;n=o.context.commit}return"function"===typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}})),i})),L=N((function(t,e){var i={};return B(e).forEach((function(e){var n=e.key,r=e.val;r=t+r,i[n]=function(){if(!t||z(this.$store,"mapGetters",t))return this.$store.getters[r]},i[n].vuex=!0})),i})),j=N((function(t,e){var i={};return B(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var n=this.$store.dispatch;if(t){var o=z(this.$store,"mapActions",t);if(!o)return;n=o.context.dispatch}return"function"===typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}})),i})),R=function(t){return{mapState:D.bind(null,t),mapGetters:L.bind(null,t),mapMutations:E.bind(null,t),mapActions:j.bind(null,t)}};function B(t){return F(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function F(t){return Array.isArray(t)||c(t)}function N(t){return function(e,i){return"string"!==typeof e?(i=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,i)}}function z(t,e,i){var n=t._modulesNamespaceMap[i];return n}function V(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var i=t.filter;void 0===i&&(i=function(t,e,i){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var r=t.mutationTransformer;void 0===r&&(r=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var c=t.logActions;void 0===c&&(c=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var h=s(t.state);"undefined"!==typeof u&&(l&&t.subscribe((function(t,o){var a=s(o);if(i(t,h,a)){var l=H(),c=r(t),d="mutation "+t.type+l;q(u,d,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",n(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),$(u)}h=a})),c&&t.subscribeAction((function(t,i){if(o(t,i)){var n=H(),r=a(t),s="action "+t.type+n;q(u,s,e),u.log("%c action","color: #03A9F4; font-weight: bold",r),$(u)}})))}}function q(t,e,i){var n=i?t.groupCollapsed:t.group;try{n.call(t,e)}catch(r){t.log(e)}}function $(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function H(){var t=new Date;return" @ "+W(t.getHours(),2)+":"+W(t.getMinutes(),2)+":"+W(t.getSeconds(),2)+"."+W(t.getMilliseconds(),3)}function G(t,e){return new Array(e+1).join(t)}function W(t,e){return G("0",e-t.toString().length)+t}var U={Store:v,install:P,version:"3.6.2",mapState:D,mapMutations:E,mapGetters:L,mapActions:j,createNamespacedHelpers:R,createLogger:V};e["a"]=U}).call(this,i("23b3"))},"30b5":function(t,e,i){"use strict";var n=i("c532");function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,i){if(!e)return t;var o;if(i)o=i(e);else if(n.isURLSearchParams(e))o=e.toString();else{var a=[];n.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"313e":function(t,e,i){"use strict";var n={};i.r(n),i.d(n,"updateProps",(function(){return Fl})),i.d(n,"initProps",(function(){return Nl})),i.d(n,"removeElement",(function(){return Vl})),i.d(n,"removeElementWithFadeOut",(function(){return $l})),i.d(n,"isElementRemoved",(function(){return zl})),i.d(n,"extendShape",(function(){return sm})),i.d(n,"extendPath",(function(){return cm})),i.d(n,"registerShape",(function(){return um})),i.d(n,"getShapeClass",(function(){return hm})),i.d(n,"makePath",(function(){return dm})),i.d(n,"makeImage",(function(){return pm})),i.d(n,"mergePath",(function(){return gm})),i.d(n,"resizePath",(function(){return mm})),i.d(n,"subPixelOptimizeLine",(function(){return vm})),i.d(n,"subPixelOptimizeRect",(function(){return ym})),i.d(n,"subPixelOptimize",(function(){return bm})),i.d(n,"getTransform",(function(){return _m})),i.d(n,"applyTransform",(function(){return xm})),i.d(n,"transformDirection",(function(){return wm})),i.d(n,"groupTransition",(function(){return km})),i.d(n,"clipPointsByRect",(function(){return Mm})),i.d(n,"clipRectByRect",(function(){return Tm})),i.d(n,"createIcon",(function(){return Om})),i.d(n,"linePolygonIntersect",(function(){return Am})),i.d(n,"lineLineIntersect",(function(){return Im})),i.d(n,"setTooltipConfig",(function(){return Em})),i.d(n,"traverseElements",(function(){return jm})),i.d(n,"Group",(function(){return bn})),i.d(n,"Image",(function(){return Ga})),i.d(n,"Text",(function(){return ys})),i.d(n,"Circle",(function(){return Kf})),i.d(n,"Ellipse",(function(){return Jf})),i.d(n,"Sector",(function(){return vg})),i.d(n,"Ring",(function(){return _g})),i.d(n,"Polygon",(function(){return kg})),i.d(n,"Polyline",(function(){return Og})),i.d(n,"Rect",(function(){return ts})),i.d(n,"Line",(function(){return Dg})),i.d(n,"BezierCurve",(function(){return Bg})),i.d(n,"Arc",(function(){return zg})),i.d(n,"IncrementalDisplayable",(function(){return nm})),i.d(n,"CompoundPath",(function(){return qg})),i.d(n,"LinearGradient",(function(){return Wg})),i.d(n,"RadialGradient",(function(){return Yg})),i.d(n,"BoundingRect",(function(){return Gi})),i.d(n,"OrientedBoundingRect",(function(){return tm})),i.d(n,"Point",(function(){return ji})),i.d(n,"Path",(function(){return Ba})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},r(t,e)};function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}Object.create;Object.create;var a=i("22d1"),s=i("6d8b"),l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},l(t,e)};function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}Object.create;Object.create;function u(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function h(t,e){return t[0]=e[0],t[1]=e[1],t}function d(t){return[t[0],t[1]]}function p(t,e,i){return t[0]=e,t[1]=i,t}function f(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function g(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function m(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function v(t){return Math.sqrt(y(t))}function y(t){return t[0]*t[0]+t[1]*t[1]}function b(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function _(t,e){var i=v(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function x(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var w=x;function S(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var C=S;function k(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function M(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function T(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function O(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}var A=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),I=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new A(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new A(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new A(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new A(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new A(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new A(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),P=I,D=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[c]+":0",n[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}function q(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=t[c].getBoundingClientRect(),h=2*c,d=u.left,p=u.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[c].offsetLeft,t[c].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?R(s,a):R(a,s))}function $(t){return"CANVAS"===t.nodeName.toUpperCase()}var H=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,G=[],W=a["a"].browser.firefox&&+a["a"].browser.version.split(".")[0]<39;function U(t,e,i,n){return i=i||{},n?Y(t,e,i):W&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):Y(t,e,i),i}function Y(t,e,i){if(a["a"].domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if($(t)){var o=t.getBoundingClientRect();return i.zrX=n-o.left,void(i.zrY=r-o.top)}if(z(G,t,n,r))return i.zrX=G[0],void(i.zrY=G[1])}i.zrX=i.zrY=0}function X(t){return t||window.event}function K(t,e,i){if(e=X(e),null!=e.zrX)return e;var n=e.type,r=n&&n.indexOf("touch")>=0;if(r){var o="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];o&&U(t,o,e,i)}else{U(t,e,e,i);var a=Z(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&H.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Z(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;if(null==i||null==n)return e;var r=0!==n?Math.abs(n):Math.abs(i),o=n>0?-1:n<0?1:i>0?-1:1;return 3*r*o}function Q(t,e,i,n){t.addEventListener(e,i,n)}function J(t,e,i,n){t.removeEventListener(e,i,n)}var tt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function et(t){return 2===t.which||3===t.which}var it=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;o1&&n&&n.length>1){var o=nt(n)/nt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=rt(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},at="silent";function st(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:lt}}function lt(){tt(this.event)}var ct=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return c(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(E),ut=function(){function t(t,e){this.x=t,this.y=e}return t}(),ht=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dt=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o._hovered=new ut(0,0),o.storage=e,o.painter=i,o.painterRoot=r,n=n||new ct,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new P(o),o}return c(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(s["k"](ht,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=ft(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=n?new ut(e,i):this.findHover(e,i),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ut(0,0)},e.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){var r="on"+e,o=st(e,t,i);while(n)if(n[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget?n.__hostTarget:n.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,i){for(var n=this.storage.getDisplayList(),r=new ut(t,e),o=n.length-1;o>=0;o--){var a=void 0;if(n[o]!==i&&!n[o].ignore&&(a=pt(n[o],t,e))&&(!r.topTarget&&(r.topTarget=n[o]),a!==at)){r.target=n[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new it);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new ut;o.target=n.target,this.dispatchToElement(o,r,n.event)}},e}(E);function pt(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){var n=t,r=void 0,o=!1;while(n){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1;n.silent&&(r=!0)}var s=n.__hostTarget;n=s||n.parent}return!r||at}return!1}function ft(t,e,i){var n=t.painter;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}s["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){dt.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=ft(this,r,o);if("mouseup"===t&&a||(i=this.findHover(r,o),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||w(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}));var gt=dt,mt=32,vt=7;function yt(t){var e=0;while(t>=mt)e|=1&t,t>>=1;return t+e}function bt(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){while(r=0)r++;return r-e}function _t(t,e,i){i--;while(e>>1,r(a,t[o])<0?l=o:s=o+1;var c=n-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(c>0)t[s+c]=t[s+c-1],c--}t[s]=a}}function wt(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){s=n-r;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(ls&&(l=s);var c=a;a=r-l,l=r-c}a++;while(a>>1);o(t,e[i+u])>0?a=u+1:l=u}return l}function St(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){s=r+1;while(ls&&(l=s);var c=a;a=r-l,l=r-c}else{s=n-r;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a>>1);o(t,e[i+u])<0?l=u:a=u+1}return l}function Ct(t,e){var i,n,r=vt,o=0,a=0;o=t.length;var s=[];function l(t,e){i[a]=t,n[a]=e,a+=1}function c(){while(a>1){var t=a-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]n[t+1])break;h(t)}}function u(){while(a>1){var t=a-2;t>0&&n[t-1]=vt||p>=vt);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===n){for(l=0;l=0;l--)t[p+l]=t[d+l];if(0===n){v=!0;break}}if(t[h--]=s[u--],1===--a){v=!0;break}if(m=a-wt(t[c],s,0,a,a-1,e),0!==m){for(h-=m,u-=m,a-=m,p=h+1,d=u+1,l=0;l=vt||m>=vt);if(v)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(h-=n,c-=n,p=h+1,d=c+1,l=n-1;l>=0;l--)t[p+l]=t[d+l];t[h]=s[u]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l=0;l--)t[p+l]=t[d+l];t[h]=s[u]}else for(d=h-(a-1),l=0;ls&&(l=s),xt(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}var Mt=1,Tt=2,Ot=4,At=!1;function It(){At||(At=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Pt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Dt,Et=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Pt}return t.prototype.traverse=function(t,e){for(var i=0;i0&&(c.__clipPaths=[]),isNaN(c.z)&&(It(),c.z=0),isNaN(c.z2)&&(It(),c.z2=0),isNaN(c.zlevel)&&(It(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,i);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,i)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e=0&&this._roots.splice(n,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Lt=Et;Dt=a["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var jt=Dt,Rt={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Rt.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Rt.bounceIn(2*t):.5*Rt.bounceOut(2*t-1)+.5}},Bt=Rt,Ft=Math.pow,Nt=Math.sqrt,zt=1e-8,Vt=1e-4,qt=Nt(3),$t=1/3,Ht=u(),Gt=u(),Wt=u();function Ut(t){return t>-zt&&tzt||t<-zt}function Xt(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function Kt(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function Zt(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),c=t-r,u=s*s-3*a*l,h=s*l-9*a*c,d=l*l-3*s*c,p=0;if(Ut(u)&&Ut(h))if(Ut(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=h*h-4*u*d;if(Ut(g)){var m=h/u,v=(f=-s/a+m,-m/2);f>=0&&f<=1&&(o[p++]=f),v>=0&&v<=1&&(o[p++]=v)}else if(g>0){var y=Nt(g),b=u*s+1.5*a*(-h+y),_=u*s+1.5*a*(-h-y);b=b<0?-Ft(-b,$t):Ft(b,$t),_=_<0?-Ft(-_,$t):Ft(_,$t);f=(-s-(b+_))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var x=(2*u*s-3*a*h)/(2*Nt(u*u*u)),w=Math.acos(x)/3,S=Nt(u),C=Math.cos(w),k=(f=(-s-2*S*C)/(3*a),v=(-s+S*(C+qt*Math.sin(w)))/(3*a),(-s+S*(C-qt*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[p++]=f),v>=0&&v<=1&&(o[p++]=v),k>=0&&k<=1&&(o[p++]=k)}}return p}function Qt(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Ut(a)){if(Yt(o)){var c=-s/o;c>=0&&c<=1&&(r[l++]=c)}}else{var u=o*o-4*a*s;if(Ut(u))r[0]=-o/(2*a);else if(u>0){var h=Nt(u),d=(c=(-o+h)/(2*a),(-o-h)/(2*a));c>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function Jt(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,c=(s-a)*r+a,u=(l-s)*r+s,h=(u-c)*r+c;o[0]=t,o[1]=a,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=n}function te(t,e,i,n,r,o,a,s,l,c,u){var h,d,p,f,g,m=.005,v=1/0;Ht[0]=l,Ht[1]=c;for(var y=0;y<1;y+=.05)Gt[0]=Xt(t,i,r,a,y),Gt[1]=Xt(e,n,o,s,y),f=C(Ht,Gt),f=0&&f=0&&c<=1&&(r[l++]=c)}}else{var u=a*a-4*o*s;if(Ut(u)){c=-a/(2*o);c>=0&&c<=1&&(r[l++]=c)}else if(u>0){var h=Nt(u),d=(c=(-a+h)/(2*o),(-a-h)/(2*o));c>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function oe(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function ae(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function se(t,e,i,n,r,o,a,s,l){var c,u=.005,h=1/0;Ht[0]=a,Ht[1]=s;for(var d=0;d<1;d+=.05){Gt[0]=ie(t,i,r,d),Gt[1]=ie(e,n,o,d);var p=C(Ht,Gt);p=0&&p=1?1:Zt(0,n,o,1,t,l)&&Xt(0,r,a,1,l[0])}}}var he=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||s["L"],this.ondestroy=t.ondestroy||s["L"],this.onrestart=t.onrestart||s["L"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,n=t-this._startTime-this._pausedTime,r=n/i;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=n%i;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(s["w"])(t)?t:Bt[t]||ue(t)},t}(),de=he,pe=i("41ef"),fe=i("7a29"),ge=Array.prototype.slice;function me(t,e,i){return(e-t)*i+t}function ve(t,e,i,n){for(var r=e.length,o=0;on?e:t,o=Math.min(i,n),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)n.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,r=n.length,o=!1,a=De,l=e;if(Object(s["u"])(e)){var c=ke(e);a=c,(1===c&&!Object(s["z"])(e[0])||2===c&&!Object(s["z"])(e[0][0]))&&(o=!0)}else if(Object(s["z"])(e)&&!Object(s["l"])(e))a=Me;else if(Object(s["C"])(e))if(isNaN(+e)){var u=pe["g"](e);u&&(l=u,a=Ae)}else a=Me;else if(Object(s["x"])(e)){var h=Object(s["m"])({},l);h.colorStops=Object(s["H"])(e.colorStops,(function(t){return{offset:t.offset,color:pe["g"](t.color)}})),Object(fe["m"])(e)?a=Ie:Object(fe["o"])(e)&&(a=Pe),l=h}0===r?this.valType=a:a===this.valType&&a!==De||(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:e,percent:0};return i&&(d.easing=i,d.easingFunc=Object(s["w"])(i)?i:Bt[i]||ue(i)),n.push(d),d},t.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort((function(t,e){return t.time-e.time}));for(var n=this.valType,r=i.length,o=i[r-1],a=this.discrete,s=Le(n),l=Ee(n),c=0;c=0;i--)if(c[i].percent<=e)break;i=f(i,u-2)}else{for(i=p;ie)break;i=f(i-1,u-2)}r=c[i+1],n=c[i]}if(n&&r){this._lastFr=i,this._lastFrP=e;var m=r.percent-n.percent,v=0===m?1:f((e-n.percent)/m,1);r.easingFunc&&(v=r.easingFunc(v));var y=o?this._additiveValue:d?je:t[h];if(!Le(l)&&!d||y||(y=this._additiveValue=[]),this.discrete)t[h]=v<1?n.rawValue:r.rawValue;else if(Le(l))l===Te?ve(y,n[a],r[a],v):ye(y,n[a],r[a],v);else if(Ee(l)){var b=n[a],_=r[a],x=l===Ie;t[h]={type:x?"linear":"radial",x:me(b.x,_.x,v),y:me(b.y,_.y,v),colorStops:Object(s["H"])(b.colorStops,(function(t,e){var i=_.colorStops[e];return{offset:me(t.offset,i.offset,v),color:Ce(ve([],t.color,i.color,v))}})),global:_.global},x?(t[h].x2=me(b.x2,_.x2,v),t[h].y2=me(b.y2,_.y2,v)):t[h].r=me(b.r,_.r,v)}else if(d)ve(y,n[a],r[a],v),o||(t[h]=Ce(y));else{var w=me(n[a],r[a],v);o?this._additiveValue=w:t[h]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Me?t[i]=t[i]+n:e===Ae?(pe["g"](t[i],je),be(je,je,n,1),t[i]=Ce(je)):e===Te?be(t[i],t[i],n,1):e===Oe&&_e(t[i],t[i],n,1)},t}(),Be=function(){function t(t,e,i,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?Object(s["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Object(s["F"])(e),i)},t.prototype.whenWithKeys=function(t,e,i,n){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,Se(l),n),this._trackKeys.push(a)}s.addKeyframe(t,Se(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),Fe=Be;function Ne(){return(new Date).getTime()}var ze=function(t){function e(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return c(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,i=t.next;e?e.next=i:this._head=i,i?i.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=Ne()-this._pausedTime,i=e-this._time,n=this._head;while(n){var r=n.next,o=n.step(e,i);o?(n.ondestroy(),this.removeClip(n),n=r):n=r}this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(jt(e),!t._paused&&t.update())}this._running=!0,jt(e)},e.prototype.start=function(){this._running||(this._time=Ne(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ne(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ne()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var i=new Fe(t,e.loop);return this.addAnimator(i),i},e}(E),Ve=ze,qe=300,$e=a["a"].domSupported,He=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=s["H"](t,(function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:n}}(),Ge={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},We=!1;function Ue(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ye(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function Xe(t){t&&(t.zrByTouch=!0)}function Ke(t,e){return K(t.dom,new Qe(t,e),!0)}function Ze(t,e){var i=e,n=!1;while(i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot))i=i.parentNode;return n}var Qe=function(){function t(t,e){this.stopPropagation=s["L"],this.stopImmediatePropagation=s["L"],this.preventDefault=s["L"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Je={mousedown:function(t){t=K(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=K(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=K(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=K(this.dom,t);var e=t.toElement||t.relatedTarget;Ze(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){We=!0,t=K(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){We||(t=K(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=K(this.dom,t),Xe(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Je.mousemove.call(this,t),Je.mousedown.call(this,t)},touchmove:function(t){t=K(this.dom,t),Xe(t),this.handler.processGesture(t,"change"),Je.mousemove.call(this,t)},touchend:function(t){t=K(this.dom,t),Xe(t),this.handler.processGesture(t,"end"),Je.mouseup.call(this,t),+new Date-+this.__lastTouchMomentCi||t<-Ci}var Mi=[],Ti=[],Oi=fi(),Ai=Math.abs,Ii=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ki(this.rotation)||ki(this.x)||ki(this.y)||ki(this.scaleX-1)||ki(this.scaleY-1)||ki(this.skewX)||ki(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||fi(),e?this.getLocalTransform(i):Si(i),t&&(e?vi(i,t,i):mi(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&Si(i)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Mi);var i=Mi[0]<0?-1:1,n=Mi[1]<0?-1:1,r=((Mi[0]-i)*e+i)/Mi[0]||0,o=((Mi[1]-n)*e+n)/Mi[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||fi(),xi(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),r=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(vi(Ti,t.invTransform,e),e=Ti);var i=this.originX,n=this.originY;(i||n)&&(Oi[4]=i,Oi[5]=n,vi(Ti,e,Oi),Ti[4]-=i,Ti[5]-=n,e=Ti),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&M(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&M(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&Ai(t[0]-1)>1e-10&&Ai(t[3]-1)>1e-10?Math.sqrt(Ai(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Di(this,t)},t.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,c=t.x,u=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(i||n||a||s){var p=i+a,f=n+s;e[4]=-p*r-h*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=h*o,l&&bi(e,e,l),e[4]+=i+c,e[5]+=n+u,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Pi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Di(t,e){for(var i=0;if&&(f=b,gf&&(f=_,v=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,i,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],o=n[3],a=n[4],s=n[5];return e.x=i.x*r+a,e.y=i.y*o+s,e.width=i.width*r,e.height=i.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Fi.x=zi.x=i.x,Fi.y=Vi.y=i.y,Ni.x=Vi.x=i.x+i.width,Ni.y=zi.y=i.y+i.height,Fi.transform(n),Vi.transform(n),Ni.transform(n),zi.transform(n),e.x=Ri(Fi.x,Ni.x,zi.x,Vi.x),e.y=Ri(Fi.y,Ni.y,zi.y,Vi.y);var l=Bi(Fi.x,Ni.x,zi.x,Vi.x),c=Bi(Fi.y,Ni.y,zi.y,Vi.y);e.width=l-e.x,e.height=c-e.y}else e!==i&&t.copy(e,i)},t}(),Gi=Hi,Wi=i("d51b"),Ui=i("726e"),Yi={};function Xi(t,e){e=e||Ui["a"];var i=Yi[e];i||(i=Yi[e]=new Wi["a"](500));var n=i.get(t);return null==n&&(n=Ui["d"].measureText(t,e).width,i.put(t,n)),n}function Ki(t,e,i,n){var r=Xi(t,e),o=tn(e),a=Qi(0,r,i),s=Ji(0,o,n),l=new Gi(a,s,r,o);return l}function Zi(t,e,i,n){var r=((t||"")+"").split("\n"),o=r.length;if(1===o)return Ki(r[0],e,i,n);for(var a=new Gi(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function nn(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,c=i.y,u="left",h="top";if(n instanceof Array)l+=en(n[0],i.width),c+=en(n[1],i.height),u=null,h=null;else switch(n){case"left":l-=r,c+=s,u="right",h="middle";break;case"right":l+=r+a,c+=s,h="middle";break;case"top":l+=a/2,c-=r,u="center",h="bottom";break;case"bottom":l+=a/2,c+=o+r,u="center";break;case"inside":l+=a/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=r,c+=s,h="middle";break;case"insideRight":l+=a-r,c+=s,u="right",h="middle";break;case"insideTop":l+=a/2,c+=r,u="center";break;case"insideBottom":l+=a/2,c+=o-r,u="center",h="bottom";break;case"insideTopLeft":l+=r,c+=r;break;case"insideTopRight":l+=a-r,c+=r,u="right";break;case"insideBottomLeft":l+=r,c+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,c+=o-r,u="right",h="bottom";break}return t=t||{},t.x=l,t.y=c,t.align=u,t.verticalAlign=h,t}var rn="__zr_normal__",on=Pi.concat(["ignore"]),an=Object(s["N"])(Pi,(function(t,e){return t[e]=!0,t}),{ignore:!1}),sn={},ln=new Gi(0,0,0,0),cn=function(){function t(t){this.id=Object(s["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;if(r.copyTransform(e),null!=i.position){var c=ln;i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(sn,i,c):nn(sn,i,c),r.x=sn.x,r.y=sn.y,o=sn.align,a=sn.verticalAlign;var u=i.origin;if(u&&null!=i.rotation){var h=void 0,d=void 0;"center"===u?(h=.5*c.width,d=.5*c.height):(h=en(u[0],c.width),d=en(u[1],c.height)),l=!0,r.originX=-r.x+h+(n?0:c.x),r.originY=-r.y+d+(n?0:c.y)}}null!=i.rotation&&(r.rotation=i.rotation);var p=i.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==i.inside?"string"===typeof i.position&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(m=i.insideFill,v=i.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=i.outsideFill,v=i.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),m=m||"#000",m===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Mt,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?di:hi},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"===typeof e&&Object(pe["g"])(e);i||(i=[255,255,255,1]);for(var n=i[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(r?0:255)*(1-n);return i[3]=1,Object(pe["h"])(i,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(s["m"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(s["A"])(t))for(var i=t,n=Object(s["F"])(i),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(rn,!1,t)},t.prototype.useState=function(t,e,i,n){var r=t===rn,o=this.hasState();if(o||!r){var a=this.currentStates,l=this.stateTransition;if(!(Object(s["r"])(a,t)>=0)||!e&&1!==a.length){var c;if(this.stateProxy&&!r&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),c||r){r||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,d=this._textGuide;return h&&h.useState(t,e,i,u),d&&d.useState(t,e,i,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mt),c}Object(s["G"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mt)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=Object(s["r"])(n,t),o=Object(s["r"])(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},n=0;n=0&&e.splice(i,1)})),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;o0&&i.during&&o[0].during((function(t,e){i.during(e)}));for(var d=0;d0||r.force&&!a.length){var k=void 0,M=void 0,T=void 0;if(l){M={},p&&(k={});for(x=0;x<_;x++){y=m[x];M[y]=i[y],p?k[y]=n[y]:i[y]=n[y]}}else if(p){T={};for(x=0;x<_;x++){y=m[x];T[y]=Se(i[y]),pn(i,n,y)}}w=new Fe(i,!1,!1,d?Object(s["n"])(g,(function(t){return t.targetName===e})):null);w.targetName=e,r.scope&&(w.scope=r.scope),p&&k&&w.whenWithKeys(0,k,m),T&&w.whenWithKeys(0,T,m),w.whenWithKeys(null==u?500:u,l?M:n,m).delay(h||0),t.addAnimator(w,e),a.push(w)}}Object(s["K"])(cn,E),Object(s["K"])(cn,Ei);var vn=cn,yn=function(t){function e(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return c(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var i=s["r"](this._children,t);return i>=0&&this.replaceAt(e,i),this},e.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,i=this._children,n=s["r"](i,t);return n<0||(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*c+a}function Pn(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return s["C"](t)?An(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Dn(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),On),t=(+t).toFixed(e),i?t:+t}function En(t){return t.sort((function(t,e){return t-e})),t}function Ln(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,i=0;i<15;i++,e*=10)if(Math.round(t*e)/e===t)return i;return jn(t)}function jn(t){var e=t.toString().toLowerCase(),i=e.indexOf("e"),n=i>0?+e.slice(i+1):0,r=i>0?i:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-n)}function Rn(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Bn(t,e,i){if(!t[e])return 0;var n=s["N"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return 0;var r=Math.pow(10,i),o=s["H"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),a=100*r,l=s["H"](o,(function(t){return Math.floor(t)})),c=s["N"](l,(function(t,e){return t+e}),0),u=s["H"](o,(function(t,e){return t-l[e]}));while(ch&&(h=u[p],d=p);++l[d],u[d]=0,++c}return l[e]/r}function Fn(t,e){var i=Math.max(Ln(t),Ln(e)),n=t+e;return i>On?n:Dn(n,i)}var Nn=9007199254740991;function zn(t){var e=2*Math.PI;return(t%e+e)%e}function Vn(t){return t>-Tn&&t=10&&e++,e}function Wn(t,e){var i,n=Gn(t),r=Math.pow(10,n),o=t/r;return i=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Un(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],o=i-n;return o?r+o*(t[n]-r):r}function Yn(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,i=1,n=0;n=0||r&&s["r"](r,l)<0)){var c=i.getShallow(l,e);null!=c&&(o[t[a][0]]=c)}}return o}}var Zr=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Qr=Kr(Zr),Jr=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Qr(this,t,e)},t}(),to=new Wi["a"](50);function eo(t){if("string"===typeof t){var e=to.get(t);return e&&e.image}return t}function io(t,e,i,n,r){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=to.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?(e=o.image,!ro(e)&&o.pending.push(a)):(e=Ui["d"].loadImage(t,no,no),e.__zrImageSrc=t,to.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function no(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;c++)l-=a;var u=Xi(i,e);return u>l&&(i="",u=0),l=t-u,r.ellipsis=i,r.ellipsisWidth=u,r.contentWidth=l,r.containerWidth=t,r}function lo(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=Xi(t,n);if(o<=i)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?co(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Xi(t,n)}return""===t&&(t=e.placeholder),t}function co(t,e,i,n){for(var r=0,o=0,a=t.length;of&&h){var g=Math.floor(f/c);i=i.slice(0,g)}if(t&&a&&null!=d)for(var m=so(d,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vc&&mo(i,t.substring(c,u),e,l),mo(i,n[2],e,l,n[1]),c=oo.lastIndex}co){w>0?(b.tokens=b.tokens.slice(0,w),v(b,x,_),i.lines=i.lines.slice(0,y+1)):i.lines=i.lines.slice(0,y);break t}var A=C.width,I=null==A||"auto"===A;if("string"===typeof A&&"%"===A.charAt(A.length-1))S.percentWidth=A,h.push(S),S.contentWidth=Xi(S.text,T);else{if(I){var P=C.backgroundColor,D=P&&P.image;D&&(D=eo(D),ro(D)&&(S.width=Math.max(S.width,D.width*O/D.height)))}var E=g&&null!=r?r-x:null;null!=E&&E0&&f+n.accumWidth>n.width&&(o=e.split("\n"),h=!0),n.accumWidth=f}else{var g=_o(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var m=0;m=33&&e<=383}var yo=Object(s["N"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function bo(t){return!vo(t)||!!yo[t]}function _o(t,e,i,n,r){for(var o=[],a=[],s="",l="",c=0,u=0,h=0;hi:r+u+p>i)?u?(s||l)&&(f?(s||(s=l,l="",c=0,u=c),o.push(s),a.push(u-c),l+=d,c+=p,s="",u=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=d,u=p)):f?(o.push(l),a.push(c),l=d,c=p):(o.push(d),a.push(p)):(u+=p,f?(l+=d,c+=p):(l&&(s+=l,l="",c=0),s+=d))}else l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0}return o.length||s||(s=t,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=r),{accumWidth:u,lines:o,linesWidths:a}}var xo="__zr_style_"+Math.round(10*Math.random()),wo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},So={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};wo[xo]=!0;var Co=["z","z2","invisible"],ko=["invisible"],Mo=function(t){function e(e){return t.call(this,e)||this}return c(e,t),e.prototype._init=function(e){for(var i=Object(s["F"])(e),n=0;n1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(Ro[0]=Lo(r)*i+t,Ro[1]=Eo(r)*n+e,Bo[0]=Lo(o)*i+t,Bo[1]=Eo(o)*n+e,c(s,Ro,Bo),u(l,Ro,Bo),r%=jo,r<0&&(r+=jo),o%=jo,o<0&&(o+=jo),r>o&&!a?o+=jo:rr&&(Fo[0]=Lo(p)*i+t,Fo[1]=Eo(p)*n+e,c(s,Fo,s),u(l,Fo,l))}var Wo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Uo=[],Yo=[],Xo=[],Ko=[],Zo=[],Qo=[],Jo=Math.min,ta=Math.max,ea=Math.cos,ia=Math.sin,na=Math.abs,ra=Math.PI,oa=2*ra,aa="undefined"!==typeof Float32Array,sa=[];function la(t){var e=Math.round(t/ra*1e8)/1e8;return e%2*ra}function ca(t,e){var i=la(t[0]);i<0&&(i+=oa);var n=i-t[0],r=t[1];r+=n,!e&&r-i>=oa?r=i+oa:e&&i-r>=oa?r=i-oa:!e&&i>r?r=i+(oa-la(i-r)):e&&i0&&(this._ux=na(i/ci/t)||0,this._uy=na(i/ci/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Wo.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var i=na(t-this._xi),n=na(e-this._yi),r=i>this._ux||n>this._uy;if(this.addData(Wo.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(Wo.C,t,e,i,n,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(Wo.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(t,e,i,n,r,o){this._drawPendingPt(),sa[0]=n,sa[1]=r,ca(sa,o),n=sa[0],r=sa[1];var a=r-n;return this.addData(Wo.A,t,e,i,i,n,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=ea(r)*i+t,this._yi=ia(r)*i+e,this},t.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},t.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(Wo.R,t,e,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Wo.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!aa||(this.data=new Float32Array(e));for(var i=0;ic.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Xo[0]=Xo[1]=Zo[0]=Zo[1]=Number.MAX_VALUE,Ko[0]=Ko[1]=Qo[0]=Qo[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,n=0,r=0,o=0;for(t=0;ti||na(y)>n||h===e-1)&&(f=Math.sqrt(v*v+y*y),r=g,o=m);break;case Wo.C:var b=t[h++],_=t[h++],x=(g=t[h++],m=t[h++],t[h++]),w=t[h++];f=ee(r,o,b,_,g,m,x,w,10),r=x,o=w;break;case Wo.Q:b=t[h++],_=t[h++],g=t[h++],m=t[h++];f=le(r,o,b,_,g,m,10),r=g,o=m;break;case Wo.A:var S=t[h++],C=t[h++],k=t[h++],M=t[h++],T=t[h++],O=t[h++],A=O+T;h+=1;t[h++];p&&(a=ea(T)*k+S,s=ia(T)*M+C),f=ta(k,M)*Jo(oa,Math.abs(O)),r=ea(A)*k+S,o=ia(A)*M+C;break;case Wo.R:a=r=t[h++],s=o=t[h++];var I=t[h++],P=t[h++];f=2*I+2*P;break;case Wo.Z:v=a-r,y=s-o;f=Math.sqrt(v*v+y*y),r=a,o=s;break}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,c,u,h,d,p=this.data,f=this._ux,g=this._uy,m=this._len,v=e<1,y=0,b=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=this._pathLen,u=e*c,u))t:for(var x=0;x0&&(t.lineTo(h,d),_=0),w){case Wo.M:i=r=p[x++],n=o=p[x++],t.moveTo(r,o);break;case Wo.L:a=p[x++],s=p[x++];var C=na(a-r),k=na(s-o);if(C>f||k>g){if(v){var M=l[b++];if(y+M>u){var T=(u-y)/M;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}y+=M}t.lineTo(a,s),r=a,o=s,_=0}else{var O=C*C+k*k;O>_&&(h=a,d=s,_=O)}break;case Wo.C:var A=p[x++],I=p[x++],P=p[x++],D=p[x++],E=p[x++],L=p[x++];if(v){M=l[b++];if(y+M>u){T=(u-y)/M;Jt(r,A,P,E,T,Uo),Jt(o,I,D,L,T,Yo),t.bezierCurveTo(Uo[1],Yo[1],Uo[2],Yo[2],Uo[3],Yo[3]);break t}y+=M}t.bezierCurveTo(A,I,P,D,E,L),r=E,o=L;break;case Wo.Q:A=p[x++],I=p[x++],P=p[x++],D=p[x++];if(v){M=l[b++];if(y+M>u){T=(u-y)/M;ae(r,A,P,T,Uo),ae(o,I,D,T,Yo),t.quadraticCurveTo(Uo[1],Yo[1],Uo[2],Yo[2]);break t}y+=M}t.quadraticCurveTo(A,I,P,D),r=P,o=D;break;case Wo.A:var j=p[x++],R=p[x++],B=p[x++],F=p[x++],N=p[x++],z=p[x++],V=p[x++],q=!p[x++],$=B>F?B:F,H=na(B-F)>.001,G=N+z,W=!1;if(v){M=l[b++];y+M>u&&(G=N+z*(u-y)/M,W=!0),y+=M}if(H&&t.ellipse?t.ellipse(j,R,B,F,V,N,G,q):t.arc(j,R,$,N,G,q),W)break t;S&&(i=ea(N)*B+j,n=ia(N)*F+R),r=ea(G)*B+j,o=ia(G)*F+R;break;case Wo.R:i=r=p[x],n=o=p[x+1],a=p[x++],s=p[x++];var U=p[x++],Y=p[x++];if(v){M=l[b++];if(y+M>u){var X=u-y;t.moveTo(a,s),t.lineTo(a+Jo(X,U),s),X-=U,X>0&&t.lineTo(a+U,s+Jo(X,Y)),X-=Y,X>0&&t.lineTo(a+ta(U-X,0),s+Y),X-=U,X>0&&t.lineTo(a,s+ta(Y-X,0));break t}y+=M}t.rect(a,s,U,Y);break;case Wo.Z:if(v){M=l[b++];if(y+M>u){T=(u-y)/M;t.lineTo(r*(1-T)+i*T,o*(1-T)+n*T);break t}y+=M}t.closePath(),r=i,o=n}}},t.prototype.clone=function(){var e=new t,i=this.data;return e.data=i.slice?i.slice():Array.prototype.slice.call(i),e._len=this._len,e},t.CMD=Wo,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),ha=ua;function da(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,c=t;if(a>e+s&&a>n+s||at+s&&o>i+s||oe+h&&u>n+h&&u>o+h&&u>s+h||ut+h&&c>i+h&&c>r+h&&c>a+h||ce+c&&l>n+c&&l>o+c||lt+c&&s>i+c&&s>r+c||si||u+cr&&(r+=va);var d=Math.atan2(l,s);return d<0&&(d+=va),d>=n&&d<=r||d+va>=n&&d+va<=r}function ba(t,e,i,n,r,o){if(o>e&&o>n||or?s:0}var _a=ha.CMD,xa=2*Math.PI,wa=1e-4;function Sa(t,e){return Math.abs(t-e)e&&c>n&&c>o&&c>s||c1&&Ma(),p=Xt(e,n,o,s,ka[0]),d>1&&(f=Xt(e,n,o,s,ka[1]))),2===d?me&&s>n&&s>o||s=0&&c<=1){for(var u=0,h=ie(e,n,o,c),d=0;di||s<-i)return 0;var l=Math.sqrt(i*i-s*s);Ca[0]=-l,Ca[1]=l;var c=Math.abs(n-r);if(c<1e-4)return 0;if(c>=xa-1e-4){n=0,r=xa;var u=o?1:-1;return a>=Ca[0]+t&&a<=Ca[1]+t?u:0}if(n>r){var h=n;n=r,r=h}n<0&&(n+=xa,r+=xa);for(var d=0,p=0;p<2;p++){var f=Ca[p];if(f+t>a){var g=Math.atan2(s,f);u=o?1:-1;g<0&&(g=xa+g),(g>=n&&g<=r||g+xa>=n&&g+xa<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),d+=u)}}return d}function Ia(t,e,i,n,r){for(var o,a,s=t.data,l=t.len(),c=0,u=0,h=0,d=0,p=0,f=0;f1&&(i||(c+=ba(u,h,d,p,n,r))),m&&(u=s[f],h=s[f+1],d=u,p=h),g){case _a.M:d=s[f++],p=s[f++],u=d,h=p;break;case _a.L:if(i){if(da(u,h,s[f],s[f+1],e,n,r))return!0}else c+=ba(u,h,s[f],s[f+1],n,r)||0;u=s[f++],h=s[f++];break;case _a.C:if(i){if(pa(u,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,n,r))return!0}else c+=Ta(u,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],n,r)||0;u=s[f++],h=s[f++];break;case _a.Q:if(i){if(fa(u,h,s[f++],s[f++],s[f],s[f+1],e,n,r))return!0}else c+=Oa(u,h,s[f++],s[f++],s[f],s[f+1],n,r)||0;u=s[f++],h=s[f++];break;case _a.A:var v=s[f++],y=s[f++],b=s[f++],_=s[f++],x=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(x)*b+v,a=Math.sin(x)*_+y,m?(d=o,p=a):c+=ba(u,h,o,a,n,r);var C=(n-v)*_/b+v;if(i){if(ya(v,y,_,x,x+w,S,e,C,r))return!0}else c+=Aa(v,y,_,x,x+w,S,C,r);u=Math.cos(x+w)*b+v,h=Math.sin(x+w)*_+y;break;case _a.R:d=u=s[f++],p=h=s[f++];var k=s[f++],M=s[f++];if(o=d+k,a=p+M,i){if(da(d,p,o,p,e,n,r)||da(o,p,o,a,e,n,r)||da(o,a,d,a,e,n,r)||da(d,a,d,p,e,n,r))return!0}else c+=ba(o,p,o,a,n,r),c+=ba(d,a,d,p,n,r);break;case _a.Z:if(i){if(da(u,h,d,p,e,n,r))return!0}else c+=ba(u,h,d,p,n,r);u=d,h=p;break}}return i||Sa(h,p)||(c+=ba(u,h,d,p,n,r)||0),0!==c}function Pa(t,e,i){return Ia(t,0,!1,e,i)}function Da(t,e,i,n){return Ia(t,e,!0,i,n)}var Ea=Object(s["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},wo),La={style:Object(s["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},So.style)},ja=Pi.concat(["invisible","culling","z","z2","zlevel","parent"]),Ra=function(t){function e(e){return t.call(this,e)||this}return c(e,t),e.prototype.update=function(){var i=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){i.buildPath(t,i.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s.5?hi:e>.2?pi:di}if(t)return di}return hi},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(s["C"])(e)){var i=this.__zr,n=!(!i||!i.isDarkMode()),r=Object(pe["d"])(t,0)0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var r=this.path;(n||this.__dirty&Ot)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Da(o,a/s,t,e)))return!0}if(this.hasFill())return Pa(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ot,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},e.prototype.setShape=function(t,e){var i=this.shape;return i||(i=this.shape={}),"string"===typeof t?i[t]=e:Object(s["m"])(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ot)},e.prototype.createStyle=function(t){return Object(s["g"])(Ea,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=Object(s["m"])({},this.shape))},e.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var l,c=!(i&&r);if(i&&i.shape?o?r?l=i.shape:(l=Object(s["m"])({},n.shape),Object(s["m"])(l,i.shape)):(l=Object(s["m"])({},r?this.shape:n.shape),Object(s["m"])(l,i.shape)):c&&(l=n.shape),l)if(o){this.shape=Object(s["m"])({},this.shape);for(var u={},h=Object(s["F"])(l),d=0;d0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(s["g"])(Fa,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var i=Zi(e,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Io);Na.prototype.type="tspan";var za=Na,Va=Object(s["i"])({x:0,y:0},wo),qa={style:Object(s["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},So.style)};function $a(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var Ha=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.createStyle=function(t){return Object(s["g"])(Va,t)},e.prototype._getSize=function(t){var e=this.style,i=e[t];if(null!=i)return i;var n=$a(e.image)?e.image:this.__image;if(!n)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?n[t]:n[t]/n[r]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return qa},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Gi(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Io);Ha.prototype.type="image";var Ga=Ha;function Wa(t,e){var i,n,r,o,a,s=e.x,l=e.y,c=e.width,u=e.height,h=e.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0,i+n>c&&(a=i+n,i*=c/a,n*=c/a),r+o>c&&(a=r+o,r*=c/a,o*=c/a),n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),t.moveTo(s+i,l),t.lineTo(s+c-n,l),0!==n&&t.arc(s+c-n,l+n,n,-Math.PI/2,0),t.lineTo(s+c,l+u-r),0!==r&&t.arc(s+c-r,l+u-r,r,0,Math.PI/2),t.lineTo(s+o,l+u),0!==o&&t.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}var Ua=Math.round;function Ya(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s?(Ua(2*n)===Ua(2*r)&&(t.x1=t.x2=Ka(n,s,!0)),Ua(2*o)===Ua(2*a)&&(t.y1=t.y2=Ka(o,s,!0)),t):t}}function Xa(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s?(t.x=Ka(n,s,!0),t.y=Ka(r,s,!0),t.width=Math.max(Ka(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ka(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Ka(t,e,i){if(!e)return t;var n=Ua(2*t);return(n+Ua(e))%2===0?n/2:(n+(i?1:-1))/2}var Za=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Qa={},Ja=function(t){function e(e){return t.call(this,e)||this}return c(e,t),e.prototype.getDefaultShape=function(){return new Za},e.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Xa(Qa,e,this.style);i=a.x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else i=e.x,n=e.y,r=e.width,o=e.height;e.r?Wa(t,e):t.rect(i,n,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ba);Ja.prototype.type="rect";var ts=Ja,es={fill:"#000"},is=2,ns={style:Object(s["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},So.style)},rs=function(t){function e(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=es,i.attr(e),i}return c(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,M=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=r.calculatedLineHeight,O=0;O=0&&(O=_[T],"right"===O.align))this._placeToken(O,t,w,g,M,"right",v),S-=O.width,M-=O.width,T--;k+=(n-(k-f)-(m-M)-S)/2;while(C<=T)O=_[C],this._placeToken(O,t,w,g,k+O.width/2,"center",v),k+=O.width,C++;g+=w}},e.prototype._placeToken=function(t,e,i,n,r,o,a){var l=e.rich[t.styleName]||{};l.text=t.text;var c=t.verticalAlign,u=n+i/2;"top"===c?u=n+t.height/2:"bottom"===c&&(u=n+i-t.height/2);var h=!t.isLineHolder&&vs(l);h&&this._renderBackground(l,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var d=!!l.backgroundColor,p=t.textPadding;p&&(r=gs(r,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var f=this._getOrCreateChild(za),g=f.createStyle();f.useStyle(g);var m=this._defaultStyle,v=!1,y=0,b=fs("fill"in l?l.fill:"fill"in e?e.fill:(v=!0,m.fill)),_=ps("stroke"in l?l.stroke:"stroke"in e?e.stroke:d||a||m.autoStroke&&!v?null:(y=is,m.stroke)),x=l.textShadowBlur>0||e.textShadowBlur>0;g.text=t.text,g.x=r,g.y=u,x&&(g.shadowBlur=l.textShadowBlur||e.textShadowBlur||0,g.shadowColor=l.textShadowColor||e.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||e.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||e.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=t.font||Ui["a"],g.opacity=Object(s["Q"])(l.opacity,e.opacity,1),cs(g,l),_&&(g.lineWidth=Object(s["Q"])(l.lineWidth,e.lineWidth,y),g.lineDash=Object(s["P"])(l.lineDash,e.lineDash),g.lineDashOffset=e.lineDashOffset||0,g.stroke=_),b&&(g.fill=b);var w=t.contentWidth,S=t.contentHeight;f.setBoundingRect(new Gi(Qi(g.x,w,g.textAlign),Ji(g.y,S,g.textBaseline),w,S))},e.prototype._renderBackground=function(t,e,i,n,r,o){var a,l,c=t.backgroundColor,u=t.borderWidth,h=t.borderColor,d=c&&c.image,p=c&&!d,f=t.borderRadius,g=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(ts),a.useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=i,m.y=n,m.width=r,m.height=o,m.r=f,a.dirtyShape()}if(p){var v=a.style;v.fill=c||null,v.fillOpacity=Object(s["P"])(t.fillOpacity,1)}else if(d){l=this._getOrCreateChild(Ga),l.onload=function(){g.dirtyStyle()};var y=l.style;y.image=c.image,y.x=i,y.y=n,y.width=r,y.height=o}if(u&&h){v=a.style;v.lineWidth=u,v.stroke=h,v.strokeOpacity=Object(s["P"])(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var b=(a||l).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=Object(s["Q"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return us(t)&&(e=[t.fontStyle,t.fontWeight,ls(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(s["T"])(e)||t.textFont||t.font},e}(Io),os={left:!0,right:1,center:1},as={top:1,bottom:1,middle:1},ss=["fontStyle","fontWeight","fontSize","fontFamily"];function ls(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Ui["c"]+"px":t+"px":t}function cs(t,e){for(var i=0;i=0,o=!1;if(t instanceof Ba){var a=Ss(t),l=r&&a.selectFill||a.normalFill,c=r&&a.selectStroke||a.normalStroke;if(Bs(l)||Bs(c)){n=n||{};var u=n.style||{};"inherit"===u.fill?(o=!0,n=Object(s["m"])({},n),u=Object(s["m"])({},u),u.fill=l):!Bs(u.fill)&&Bs(l)?(o=!0,n=Object(s["m"])({},n),u=Object(s["m"])({},u),u.fill=Ns(l)):!Bs(u.stroke)&&Bs(c)&&(o||(n=Object(s["m"])({},n),u=Object(s["m"])({},u)),u.stroke=Ns(c)),n.style=u}}if(n&&null==n.z2){o||(n=Object(s["m"])({},n));var h=t.z2EmphasisLift;n.z2=t.z2+(null!=h?h:Is)}return n}function Qs(t,e,i){if(i&&null==i.z2){i=Object(s["m"])({},i);var n=t.z2SelectLift;i.z2=t.z2+(null!=n?n:Ps)}return i}function Js(t,e,i){var n=Object(s["r"])(t.currentStates,e)>=0,r=t.style.opacity,o=n?null:Ks(t,["opacity"],e,{opacity:1});i=i||{};var a=i.style||{};return null==a.opacity&&(i=Object(s["m"])({},i),a=Object(s["m"])({opacity:n?r:.1*o.opacity},a),i.style=a),i}function tl(t,e){var i=this.states[t];if(this.style){if("emphasis"===t)return Zs(this,t,e,i);if("blur"===t)return Js(this,t,i);if("select"===t)return Qs(this,t,i)}return i}function el(t){t.stateProxy=tl;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=tl),i&&(i.stateProxy=tl)}function il(t,e){!ul(t,e)&&!t.__highByOuter&&Ys(t,Vs)}function nl(t,e){!ul(t,e)&&!t.__highByOuter&&Ys(t,qs)}function rl(t,e){t.__highByOuter|=1<<(e||0),Ys(t,Vs)}function ol(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ys(t,qs)}function al(t){Ys(t,$s)}function sl(t){Ys(t,Hs)}function ll(t){Ys(t,Gs)}function cl(t){Ys(t,Ws)}function ul(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function hl(t){var e=t.getModel(),i=[],n=[];e.eachComponent((function(e,r){var o=Cs(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&n.push(s),o.isBlured&&(s.group.traverse((function(t){Hs(t)})),a&&i.push(r)),o.isBlured=!1})),Object(s["k"])(n,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)}))}function dl(t,e,i,n){var r=n.getModel();function o(t,e){for(var i=0;i0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),e.push(o)}}))})),e}function xl(t,e,i){Ol(t,!0),Ys(t,el),Cl(t,e,i)}function wl(t){Ol(t,!1)}function Sl(t,e,i,n){n?wl(t):xl(t,e,i)}function Cl(t,e,i){var n=bs(t);null!=e?(n.focus=e,n.blurScope=i):n.focus&&(n.focus=null)}var kl=["emphasis","blur","select"],Ml={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Tl(t,e,i,n){i=i||"itemStyle";for(var r=0;r0){var d=h.duration,p=h.delay,f=h.easing,g={duration:d,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};c?e.animateFrom(i,g):e.animateTo(i,g)}else e.stopAnimation(),!c&&e.attr(i),a&&a(1),o&&o()}function Fl(t,e,i,n,r,o){Bl("update",t,e,i,n,r,o)}function Nl(t,e,i,n,r,o){Bl("enter",t,e,i,n,r,o)}function zl(t){if(!t.__zr)return!0;for(var e=0;e=0&&i.push(t)})),i}t.topologicalTravel=function(t,e,n,r){if(t.length){var o=i(e),a=o.graph,l=o.noEntryList,c={};s["k"](t,(function(t){c[t]=!0}));while(l.length){var u=l.pop(),h=a[u],d=!!c[u];d&&(n.call(r,u,h.originalDeps.slice()),delete c[u]),s["k"](h.successor,d?f:p)}s["k"](c,(function(){var t="";throw new Error(t)}))}function p(t){a[t].entryCount--,0===a[t].entryCount&&l.push(t)}function f(t){c[t]=!0,p(t)}}}function Mc(t,e){return s["I"](s["I"]({},t,!0),e,!0)}var Tc={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Oc={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Ac="ZH",Ic="EN",Pc=Ic,Dc={},Ec={},Lc=a["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Ac)>-1?Ac:Pc}():Pc;function jc(t,e){t=t.toUpperCase(),Ec[t]=new xc(e),Dc[t]=e}function Rc(t){if(Object(s["C"])(t)){var e=Dc[t.toUpperCase()]||{};return t===Ac||t===Ic?Object(s["d"])(e):Object(s["I"])(Object(s["d"])(e),Object(s["d"])(Dc[Pc]),!1)}return Object(s["I"])(Object(s["d"])(t),Object(s["d"])(Dc[Pc]),!1)}function Bc(t){return Ec[t]}function Fc(){return Ec[Pc]}jc(Ic,Tc),jc(Ac,Oc);var Nc=1e3,zc=60*Nc,Vc=60*zc,qc=24*Vc,$c=365*qc,Hc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Gc="{yyyy}-{MM}-{dd}",Wc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gc,hour:Gc+" "+Hc.hour,minute:Gc+" "+Hc.minute,second:Gc+" "+Hc.second,millisecond:Hc.none},Uc=["year","month","day","hour","minute","second","millisecond"],Yc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Xc(t,e){return t+="","0000".substr(0,e-t.length)+t}function Kc(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Zc(t){return t===Kc(t)}function Qc(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Jc(t,e,i,n){var r=$n(t),o=r[nu(i)](),a=r[ru(i)]()+1,s=Math.floor((a-1)/3)+1,l=r[ou(i)](),c=r["get"+(i?"UTC":"")+"Day"](),u=r[au(i)](),h=(u-1)%12+1,d=r[su(i)](),p=r[lu(i)](),f=r[cu(i)](),g=n instanceof xc?n:Bc(n||Lc)||Fc(),m=g.getModel("time"),v=m.get("month"),y=m.get("monthAbbr"),b=m.get("dayOfWeek"),_=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,Xc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Xc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[c]).replace(/{ee}/g,_[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Xc(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Xc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Xc(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Xc(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Xc(f,3)).replace(/{S}/g,f+"")}function tu(t,e,i,n,r){var o=null;if(s["C"](i))o=i;else if(s["w"](i))o=i(t.value,e,{level:t.level});else{var a=s["m"]({},Hc);if(t.level>0)for(var l=0;l=0;--l)if(c[u]){o=c[u];break}o=o||a.none}if(s["t"](o)){var d=null==t.level?0:t.level>=0?t.level:o.length+t.level;d=Math.min(d,o.length-1),o=o[d]}}return Jc(new Date(t.value),o,r,n)}function eu(t,e){var i=$n(t),n=i[ru(e)]()+1,r=i[ou(e)](),o=i[au(e)](),a=i[su(e)](),s=i[lu(e)](),l=i[cu(e)](),c=0===l,u=c&&0===s,h=u&&0===a,d=h&&0===o,p=d&&1===r,f=p&&1===n;return f?"year":p?"month":d?"day":h?"hour":u?"minute":c?"second":"millisecond"}function iu(t,e,i){var n=s["z"](t)?$n(t):t;switch(e=e||eu(t,i),e){case"year":return n[nu(i)]();case"half-year":return n[ru(i)]()>=6?1:0;case"quarter":return Math.floor((n[ru(i)]()+1)/4);case"month":return n[ru(i)]();case"day":return n[ou(i)]();case"half-day":return n[au(i)]()/24;case"hour":return n[au(i)]();case"minute":return n[su(i)]();case"second":return n[lu(i)]();case"millisecond":return n[cu(i)]()}}function nu(t){return t?"getUTCFullYear":"getFullYear"}function ru(t){return t?"getUTCMonth":"getMonth"}function ou(t){return t?"getUTCDate":"getDate"}function au(t){return t?"getUTCHours":"getHours"}function su(t){return t?"getUTCMinutes":"getMinutes"}function lu(t){return t?"getUTCSeconds":"getSeconds"}function cu(t){return t?"getUTCMilliseconds":"getMilliseconds"}function uu(t){return t?"setUTCFullYear":"setFullYear"}function hu(t){return t?"setUTCMonth":"setMonth"}function du(t){return t?"setUTCDate":"setDate"}function pu(t){return t?"setUTCHours":"setHours"}function fu(t){return t?"setUTCMinutes":"setMinutes"}function gu(t){return t?"setUTCSeconds":"setSeconds"}function mu(t){return t?"setUTCMilliseconds":"setMilliseconds"}function vu(t){if(!Kn(t))return s["C"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function yu(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var bu=s["M"],_u=/([&<>"'])/g,xu={"&":"&","<":"<",">":">",'"':""","'":"'"};function wu(t){return null==t?"":(t+"").replace(_u,(function(t,e){return xu[e]}))}function Su(t,e,i){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(t){return t&&s["T"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,l=t instanceof Date;if(a||l){var c=a?$n(t):t;if(!isNaN(+c))return Jc(c,n,i);if(l)return"-"}if("ordinal"===e)return s["D"](t)?r(t):s["z"](t)&&o(t)?t+"":"-";var u=Xn(t);return o(u)?vu(u):s["D"](t)?r(t):"boolean"===typeof t?t+"":"-"}var Cu=["a","b","c","d","e","f","g"],ku=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Mu(t,e,i){s["t"](e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o':'';var a=i.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Au(t,e){return e=e||"transparent",s["C"](t)?t:s["A"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Iu(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location.href=t}else window.open(t,e)}var Pu=s["k"],Du=["left","right","top","bottom","width","height"],Eu=[["width","left","right"],["height","top","bottom"]];function Lu(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,c){var u,h,d=l.getBoundingRect(),p=e.childAt(c+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);u=o+g,u>n||l.newline?(o=0,u=g,a+=s+i,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);h=a+m,h>r||l.newline?(o+=s+i,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+i:a=h+i)}))}var ju=Lu;s["h"](Lu,"vertical"),s["h"](Lu,"horizontal");function Ru(t,e,i){var n=e.width,r=e.height,o=Pn(t.left,n),a=Pn(t.top,r),s=Pn(t.right,n),l=Pn(t.bottom,r);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=n),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=r),i=bu(i||0),{width:Math.max(s-o-i[1]-i[3],0),height:Math.max(l-a-i[0]-i[2],0)}}function Bu(t,e,i){i=bu(i||0);var n=e.width,r=e.height,o=Pn(t.left,n),a=Pn(t.top,r),s=Pn(t.right,n),l=Pn(t.bottom,r),c=Pn(t.width,n),u=Pn(t.height,r),h=i[2]+i[0],d=i[1]+i[3],p=t.aspect;switch(isNaN(c)&&(c=n-s-d-o),isNaN(u)&&(u=r-l-h-a),null!=p&&(isNaN(c)&&isNaN(u)&&(p>n/r?c=.8*n:u=.8*r),isNaN(c)&&(c=p*u),isNaN(u)&&(u=c/p)),isNaN(o)&&(o=n-s-c-d),isNaN(a)&&(a=r-l-u-h),t.left||t.right){case"center":o=n/2-c/2-i[3];break;case"right":o=n-c-d;break}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-i[0];break;case"bottom":a=r-u-h;break}o=o||0,a=a||0,isNaN(c)&&(c=n-d-o-(s||0)),isNaN(u)&&(u=r-h-a-(l||0));var f=new Gi(o+i[3],a+i[0],c,u);return f.margin=i,f}function Fu(t,e,i,n,r,o){var a,l=!r||!r.hv||r.hv[0],c=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!l&&!c)return!1;if("raw"===u)a="group"===t.type?new Gi(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();a=a.clone(),a.applyTransform(h)}var d=Bu(s["i"]({width:a.width,height:a.height},e),i,n),p=l?d.x-a.x:0,f=c?d.y-a.y:0;return"raw"===u?(o.x=p,o.y=f):(o.x+=p,o.y+=f),o===t&&t.markRedraw(),!0}function Nu(t,e){return null!=t[Eu[e][0]]||null!=t[Eu[e][1]]&&null!=t[Eu[e][2]]}function zu(t){var e=t.layoutMode||t.constructor.layoutMode;return s["A"](e)?e:e?{type:e}:null}function Vu(t,e,i){var n=i&&i.ignoreSize;!s["t"](n)&&(n=[n,n]);var r=a(Eu[0],0),o=a(Eu[1],1);function a(i,r){var o={},a=0,s={},u=0,h=2;if(Pu(i,(function(e){s[e]=t[e]})),Pu(i,(function(t){l(e,t)&&(o[t]=s[t]=e[t]),c(o,t)&&a++,c(s,t)&&u++})),n[r])return c(e,i[1])?s[i[2]]=null:c(e,i[2])&&(s[i[1]]=null),s;if(u!==h&&a){if(a>=h)return o;for(var d=0;d=0;a--)o=s["I"](o,i[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var i=t+"Index",n=t+"Id";return Pr(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(xc);function Wu(t){var e=[];return s["k"](Gu.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=s["H"](e,(function(t){return Nr(t).main})),"dataset"!==t&&s["r"](e,"dataset")<=0&&e.unshift("dataset"),e}Hr(Gu,xc),Xr(Gu),Cc(Gu),kc(Gu,Wu);var Uu=Gu,Yu="";"undefined"!==typeof navigator&&(Yu=navigator.platform||"");var Xu="rgba(0, 0, 0, 0.2)",Ku={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Xu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Xu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Xu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Xu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Xu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Xu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Yu.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Zu=Object(s["f"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Qu="original",Ju="arrayRows",th="objectRows",eh="keyedColumns",ih="typedArray",nh="unknown",rh="column",oh="row",ah={Must:1,Might:2,Not:3},sh=kr();function lh(t){sh(t).datasetMap=Object(s["f"])()}function ch(t,e,i){var n={},r=hh(e);if(!r||!t)return n;var o,a,l=[],c=[],u=e.ecModel,h=sh(u).datasetMap,d=r.uid+"_"+i.seriesLayoutBy;t=t.slice(),Object(s["k"])(t,(function(e,i){var r=Object(s["A"])(e)?e:t[i]={name:e};"ordinal"===r.type&&null==o&&(o=i,a=g(r)),n[r.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:a,valueWayDim:0});function f(t,e,i){for(var n=0;ne)return t[n];return t[i-1]}function Sh(t,e,i,n,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var u=null!=a&&n?wh(n,a):i;if(u=u||i,u&&u.length){var h=u[l];return r&&(c[r]=h),s.paletteIdx=(l+1)%u.length,h}}function Ch(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var kh,Mh,Th;"undefined"!==typeof console&&console.warn&&console.log;function Oh(t){0}function Ah(t){throw new Error(t)}var Ih="\0_ec_inner",Ph=1;var Dh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new xc(n),this._locale=new xc(r),this._optionManager=o},e.prototype.setOption=function(t,e,i){var n=Bh(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Bh(e))},e.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Th(this,r),i=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&Object(s["k"])(a,(function(t){i=!0,this._mergeOption(t,e)}),this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var i=this.option,n=this._componentsMap,r=this._componentsCount,o=[],a=Object(s["f"])(),l=e&&e.replaceMergeMainTypeMap;function c(e){var o=vh(this,e,nr(t[e])),a=n.get(e),c=a?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=lr(a,o,c);xr(u,e,Uu),i[e]=null,n.set(e,null),r.set(e,0);var h,d=[],p=[],f=0;Object(s["k"])(u,(function(t,i){var n=t.existing,r=t.newOption;if(r){var o="series"===e,a=Uu.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var l=Object(s["m"])({componentIndex:i},t.keyInfo);n=new a(r,this,this,l),Object(s["m"])(n,l),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(d.push(n.option),p.push(n),f++):(d.push(void 0),p.push(void 0))}),this),i[e]=d,n.set(e,p),r.set(e,f),"series"===e&&kh(this)}lh(this),Object(s["k"])(t,(function(t,e){null!=t&&(Uu.hasClass(e)?e&&(o.push(e),a.set(e,!0)):i[e]=null==i[e]?Object(s["d"])(t):Object(s["I"])(i[e],t,!0))})),l&&l.each((function(t,e){Uu.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Uu.topologicalTravel(o,Uu.getAllClassMainTypes(),c,this),this._seriesIndices||kh(this)},e.prototype.getOption=function(){var t=Object(s["d"])(this.option);return Object(s["k"])(t,(function(e,i){if(Uu.hasClass(i)){for(var n=nr(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!br(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}})),delete t[Ih],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e)for(var r=0;r=e:"max"===i?t<=e:t===e}function Kh(t,e){return t.join(",")===e.join(",")}var Zh=Wh,Qh=s["k"],Jh=s["A"],td=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ed(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=td.length;i=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=Fn(p,v),f=v;break}}}return n[0]=p,n[1]=f,n}))}))}var Cd,kd,Md,Td,Od,Ad=function(){function t(t){this.data=t.data||(t.sourceFormat===eh?{}:[]),this.sourceFormat=t.sourceFormat||nh,this.seriesLayoutBy=t.seriesLayoutBy||rh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;ic&&(c=p)}s[0]=l,s[1]=c}},n=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(l=o.interpolatedValue[c])}return null!=l?l+"":""}))}},t.prototype.getRawValue=function(t,e){return Zd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,i){},t}();function tp(t){var e,i;return s["A"](t)?t.type&&(i=t):e=t,{text:e,frag:i}}function ep(t){return new ip(t)}var ip=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(e=this._plan(this.context));var o,a=h(this._modBy),l=this._modDataCount||0,c=h(t&&t.modBy),u=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===c&&l===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(n)),this._modBy=c,this._modDataCount=u;var d=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(o||p1&&n>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},lp=function(){function t(t,e){if(!Object(s["z"])(e)){var i="";0,Ah(i)}this._opFn=sp[t],this._rvalFloat=Xn(e)}return t.prototype.evaluate=function(t){return Object(s["z"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Xn(t),this._rvalFloat)},t}(),cp=function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=Object(s["z"])(t)?t:Xn(t),n=Object(s["z"])(e)?e:Xn(e),r=isNaN(i),o=isNaN(n);if(r&&(i=this._incomparable),o&&(n=this._incomparable),r&&o){var a=Object(s["C"])(t),l=Object(s["C"])(e);a&&(i=l?t:0),l&&(n=a?e:0)}return in?-this._resultLT:0},t}(),up=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Xn(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i===this._rvalTypeof||"number"!==i&&"number"!==this._rvalTypeof||(e=Xn(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function hp(t,e){return"eq"===t||"ne"===t?new up("eq"===t,e):Object(s["q"])(sp,t)?new lp(t,e):null}var dp=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return rp(t,e)},t}();function pp(t,e){var i=new dp,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==rh&&Ah(a);var l=[],c={},u=t.dimensionsDefine;if(u)Object(s["k"])(u,(function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};if(l.push(n),null!=i){var r="";Object(s["q"])(c,i)&&Ah(r),c[i]=n}}));else for(var h=0;h65535?kp:Mp}function Pp(){return[1/0,-1/0]}function Dp(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Ep(t,e,i,n,r){var o=Ap[i||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new o(n),c=0;cg[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,r=this._chunks,o=this._dimensions,a=o.length,l=this._rawExtent,c=Object(s["H"])(o,(function(t){return t.property})),u=0;uv[1]&&(v[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&it))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,r=n[t],o=[];if(!r)return o;null==i&&(i=1/0);for(var a=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=c))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;r=h&&y<=d||isNaN(y))&&(l[c++]=g),g++}f=!0}else if(2===r){m=p[n[0]];var b=p[n[1]],_=t[n[1]][0],x=t[n[1]][1];for(v=0;v=h&&y<=d||isNaN(y))&&(w>=_&&w<=x||isNaN(w))&&(l[c++]=g),g++}f=!0}}if(!f)if(1===r)for(v=0;v=h&&y<=d||isNaN(y))&&(l[c++]=S)}else for(v=0;vt[M][1])&&(C=!1)}C&&(l[c++]=e.getRawIndex(v))}return cm[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),c=0,u=Math.floor(1/e),h=this.getRawIndex(0),d=new(Ip(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));d[c++]=h;for(var p=1;pi&&(i=n,r=b))}M>0&&Mc-p&&(s=c-p,a.length=s);for(var f=0;fu[1]&&(u[1]=m),h[d++]=v}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();rs&&(s=u)}return n=[a,s],this._extent[t]=n,n},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,i,n){return rp(t[n],this._dimensions[n])}Sp={arrayRows:t,objectRows:function(t,e,i,n){return rp(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return rp(r instanceof Array?r[n]:r,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}}}(),t}(),jp=Lp,Rp=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(Fp(i)){var o=i,a=void 0,l=void 0,c=void 0;if(r){var u=n[0];u.prepareSource(),c=u.getSource(),a=c.data,l=c.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),l=Object(s["E"])(a)?ih:Qu,e=[];var h=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},p=Object(s["P"])(h.seriesLayoutBy,d.seriesLayoutBy)||null,f=Object(s["P"])(h.sourceHeader,d.sourceHeader),g=Object(s["P"])(h.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!f!==!!d.sourceHeader||g;t=m?[Pd(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:g},l)]:[]}else{var v=i;if(r){var y=this._applyTransform(n);t=y.sourceList,e=y.upstreamSignList}else{var b=v.get("source",!0);t=[Pd(b,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),r=i.get("fromTransformResult",!0);if(null!=r){var o="";1!==t.length&&Np(o)}var a=[],l=[];return Object(s["k"])(t,(function(t){t.prepareSource();var e=t.getSource(r||0),i="";null==r||e||Np(i),a.push(e),l.push(t._getVersionSign())})),n?e=_p(n,a,{datasetIndex:i.componentIndex}):null!=r&&(e=[Ed(a[0])]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||i>0&&!t.noHeader;return Object(s["k"])(t.blocks,(function(t){var i=Up(t);i>=e&&(e=i+ +(n&&(!i||Gp(t)&&!t.noHeader)))})),e}return 0}function Yp(t,e,i,n){var r=e.noHeader,o=Zp(Up(e)),a=[],l=e.blocks||[];Object(s["b"])(!l||Object(s["t"])(l)),l=l||[];var c=t.orderMode;if(e.sortBlocks&&c){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(s["q"])(u,c)){var h=new cp(u[c],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===c&&l.reverse()}Object(s["k"])(l,(function(i,r){var l=e.valueFormatter,c=Wp(i)(l?Object(s["m"])(Object(s["m"])({},t),{valueFormatter:l}):t,i,r>0?o.html:0,n);null!=c&&a.push(c)}));var d="richText"===t.renderMode?a.join(o.richText):Qp(a.join(""),r?i:o.html);if(r)return d;var p=Su(e.header,"ordinal",t.useUTC),f=Vp(n,t.renderMode).nameStyle;return"richText"===t.renderMode?ef(t,p,f)+o.richText+d:Qp('
'+wu(p)+"
"+d,i)}function Xp(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,l=!e.markerType,c=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=Object(s["t"])(t)?t:[t],Object(s["H"])(t,(function(t,e){return Su(t,Object(s["t"])(f)?f[e]:f,u)}))};if(!o||!a){var d=l?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Su(c,"ordinal",u),f=e.valueType,g=a?[]:h(e.value),m=!l||!o,v=!l&&o,y=Vp(n,r),b=y.nameStyle,_=y.valueStyle;return"richText"===r?(l?"":d)+(o?"":ef(t,p,b))+(a?"":nf(t,g,m,v,_)):Qp((l?"":d)+(o?"":Jp(p,!l,b))+(a?"":tf(g,m,v,_)),i)}}function Kp(t,e,i,n,r,o){if(t){var a=Wp(t),s={useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function Zp(t){return{html:qp[t],richText:$p[t]}}function Qp(t,e){var i='
',n="margin: "+e+"px 0 0";return'
'+t+i+"
"}function Jp(t,e,i){var n=e?"margin-left:2px":"";return''+wu(t)+""}function tf(t,e,i,n){var r=i?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Object(s["t"])(t)?t:[t],''+Object(s["H"])(t,(function(t){return wu(t)})).join("  ")+""}function ef(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function nf(t,e,i,n,r){var o=[r],a=n?10:20;return i&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(s["t"])(e)?e.join(" "):e,o)}function rf(t,e){var i=t.getData().getItemVisual(e,"style"),n=i[t.visualDrawType];return Au(n)}function of(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}var af=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Zn()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,r=Ou({color:e,type:t,renderMode:i,markerId:n});return Object(s["C"])(r)?r:(this.richTextStyles[n]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};Object(s["t"])(e)?Object(s["k"])(e,(function(t){return Object(s["m"])(i,t)})):Object(s["m"])(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}();function sf(t){var e,i,n,r,o=t.series,a=t.dataIndex,l=t.multipleSeries,c=o.getData(),u=c.mapDimensionsAll("defaultedTooltip"),h=u.length,d=o.getRawValue(a),p=Object(s["t"])(d),f=rf(o,a);if(h>1||p&&!h){var g=lf(d,o,a,u,f);e=g.inlineValues,i=g.inlineValueTypes,n=g.blocks,r=g.inlineValues[0]}else if(h){var m=c.getDimensionInfo(u[0]);r=e=Zd(c,a,u[0]),i=m.type}else r=e=p?d[0]:d;var v=yr(o),y=v&&o.name||"",b=c.getName(a),_=l?y:b;return Hp("section",{header:y,noHeader:l||!v,sortParam:r,blocks:[Hp("nameValue",{markerType:"item",markerColor:f,name:_,noName:!Object(s["T"])(_),value:e,valueType:i})].concat(n||[])})}function lf(t,e,i,n,r){var o=e.getData(),a=Object(s["N"])(t,(function(t,e,i){var n=o.getDimensionInfo(i);return t||n&&!1!==n.tooltip&&null!=n.displayName}),!1),l=[],c=[],u=[];function h(t,e){var i=o.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(a?u.push(Hp("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(l.push(t),c.push(i.type)))}return n.length?Object(s["k"])(n,(function(t){h(Zd(o,i,t),t)})):Object(s["k"])(t,h),{inlineValues:l,inlineValueTypes:c,blocks:u}}var cf=kr();function uf(t,e){return t.getName(e)||t.getId(e)}var hf="__universalTransitionEnabled",df=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return o(e,t),e.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=ep({count:gf,reset:mf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var n=cf(this).sourceManager=new Rp(this);n.prepareSource();var r=this.getInitialData(t,i);yf(r,this),this.dataTask.context.data=r,cf(this).dataBeforeProcessed=r,pf(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var i=zu(this),n=i?qu(t):{},r=this.subType;Uu.hasClass(r)&&(r+="Series"),s["I"](t,e.getTheme().get(this.subType)),s["I"](t,this.getDefaultOption()),rr(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Vu(t,n,i)},e.prototype.mergeOption=function(t,e){t=s["I"](this.option,t,!0),this.fillDataTextStyle(t.data);var i=zu(this);i&&Vu(this.option,t,i);var n=cf(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);yf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,cf(this).dataBeforeProcessed=r,pf(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!s["E"](t))for(var e=["show"],i=0;ithis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=_h.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,r=this.getData(e);if("series"===n||"all"===i)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&i.push(r)}return i},e.prototype.isSelected=function(t,e){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(e);return("all"===i||i[uf(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[hf])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var i,n,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){s["A"](r.selectedMap)||(r.selectedMap={});for(var l=r.selectedMap,c=0;c0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Uu.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Uu);function pf(t){var e=t.name;yr(t)||(t.name=ff(t)||e)}function ff(t){var e=t.getRawData(),i=e.mapDimensionsAll("seriesName"),n=[];return s["k"](i,(function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)})),n.join(" ")}function gf(t){return t.model.getRawData().count()}function mf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),vf}function vf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function yf(t,e){s["k"](s["e"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(i){t.wrapMethod(i,s["h"](bf,e))}))}function bf(t,e){var i=_f(t);return i&&i.setOutputEnd((e||this).count()),e}function _f(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}s["K"](df,Jd),s["K"](df,_h),Hr(df,Uu);var xf=df,wf=function(){function t(){this.group=new bn,this.uid=Sc("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,i,n){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,i,n){},t.prototype.updateLayout=function(t,e,i,n){},t.prototype.updateVisual=function(t,e,i,n){},t.prototype.toggleBlurSeries=function(t,e,i){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();qr(wf),Xr(wf);var Sf=wf;function Cf(){var t=kr();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!(!n||!n.large),s=i.progressiveRender=!(!n||!n.progressiveRender);return!(r===a&&o===s)&&"reset"}}var kf=ha.CMD,Mf=[[],[],[]],Tf=Math.sqrt,Of=Math.atan2;function Af(t,e){if(e){var i,n,r,o,a,s,l=t.data,c=t.len(),u=kf.M,h=kf.C,d=kf.L,p=kf.R,f=kf.A,g=kf.Q;for(r=0,o=0;r1&&(a*=If(f),s*=If(f));var g=(r===o?-1:1)*If((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=g*a*p/s,v=g*-s*d/a,y=(t+i)/2+Df(h)*m-Pf(h)*v,b=(e+n)/2+Pf(h)*m+Df(h)*v,_=Rf([1,0],[(d-m)/a,(p-v)/s]),x=[(d-m)/a,(p-v)/s],w=[(-1*d-m)/a,(-1*p-v)/s],S=Rf(x,w);if(jf(x,w)<=-1&&(S=Ef),jf(x,w)>=1&&(S=0),S<0){var C=Math.round(S/Ef*1e6)/1e6;S=2*Ef+C%2*Ef}u.addData(c,y,b,a,s,_,S,h,o)}var Ff=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Nf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function zf(t){var e=new ha;if(!t)return e;var i,n=0,r=0,o=n,a=r,s=ha.CMD,l=t.match(Ff);if(!l)return e;for(var c=0;cI*I+P*P&&(C=M,k=T),{cx:C,cy:k,x0:-u,y0:-h,x1:C*(r/x-1),y1:k*(r/x-1)}}function pg(t){var e;if(Object(s["t"])(t)){var i=t.length;if(!i)return t;e=1===i?[t[0],t[0],0,0]:2===i?[t[0],t[0],t[1],t[1]]:3===i?t.concat(t[2]):t}else e=[t,t,t,t];return e}function fg(t,e){var i,n=lg(e.r,0),r=lg(e.r0||0,0),o=n>0,a=r>0;if(o||a){if(o||(n=r,r=0),r>n){var s=n;n=r,r=s}var l=e.startAngle,c=e.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=e.cx,h=e.cy,d=!!e.clockwise,p=ag(c-l),f=p>eg&&p%eg;if(f>ug&&(p=f),n>ug)if(p>eg-ug)t.moveTo(u+n*ng(l),h+n*ig(l)),t.arc(u,h,n,l,c,!d),r>ug&&(t.moveTo(u+r*ng(c),h+r*ig(c)),t.arc(u,h,r,c,l,d));else{var g=void 0,m=void 0,v=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,S=void 0,C=void 0,k=void 0,M=void 0,T=void 0,O=void 0,A=void 0,I=void 0,P=n*ng(l),D=n*ig(l),E=r*ng(c),L=r*ig(c),j=p>ug;if(j){var R=e.cornerRadius;R&&(i=pg(R),g=i[0],m=i[1],v=i[2],y=i[3]);var B=ag(n-r)/2;if(b=cg(B,v),_=cg(B,y),x=cg(B,g),w=cg(B,m),k=S=lg(b,_),M=C=lg(x,w),(S>ug||C>ug)&&(T=n*ng(c),O=n*ig(c),A=r*ng(l),I=r*ig(l),pug){var G=cg(v,k),W=cg(y,k),U=dg(A,I,P,D,n,G,d),Y=dg(T,O,E,L,n,W,d);t.moveTo(u+U.cx+U.x0,h+U.cy+U.y0),k0&&t.arc(u+U.cx,h+U.cy,G,og(U.y0,U.x0),og(U.y1,U.x1),!d),t.arc(u,h,n,og(U.cy+U.y1,U.cx+U.x1),og(Y.cy+Y.y1,Y.cx+Y.x1),!d),W>0&&t.arc(u+Y.cx,h+Y.cy,W,og(Y.y1,Y.x1),og(Y.y0,Y.x0),!d))}else t.moveTo(u+P,h+D),t.arc(u,h,n,l,c,!d);else t.moveTo(u+P,h+D);if(r>ug&&j)if(M>ug){G=cg(g,M),W=cg(m,M),U=dg(E,L,T,O,r,-W,d),Y=dg(P,D,A,I,r,-G,d);t.lineTo(u+U.cx+U.x0,h+U.cy+U.y0),M0&&t.arc(u+U.cx,h+U.cy,W,og(U.y0,U.x0),og(U.y1,U.x1),!d),t.arc(u,h,r,og(U.cy+U.y1,U.cx+U.x1),og(Y.cy+Y.y1,Y.cx+Y.x1),d),G>0&&t.arc(u+Y.cx,h+Y.cy,G,og(Y.y1,Y.x1),og(Y.y0,Y.x0),!d))}else t.lineTo(u+E,h+L),t.arc(u,h,r,c,l,d);else t.lineTo(u+E,h+L)}else t.moveTo(u,h);t.closePath()}}}var gg=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),mg=function(t){function e(e){return t.call(this,e)||this}return c(e,t),e.prototype.getDefaultShape=function(){return new gg},e.prototype.buildPath=function(t,e){fg(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ba);mg.prototype.type="sector";var vg=mg,yg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),bg=function(t){function e(e){return t.call(this,e)||this}return c(e,t),e.prototype.getDefaultShape=function(){return new yg},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},e}(Ba);bg.prototype.type="ring";var _g=bg;function xg(t,e,i,n){var r,o,a,s,l=[],c=[],u=[],h=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,g=t.length;p=2){if(n){var o=xg(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(i?a:a-1);s++){var l=o[2*s],c=o[2*s+1],u=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;sKg[1]){if(a=!1,r)return a;var c=Math.abs(Kg[0]-Xg[1]),u=Math.abs(Xg[0]-Kg[1]);Math.min(c,u)>n.len()&&(cMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Sm(t){return!t.isGroup}function Cm(t){return null!=t.shape}function km(t,e,i){if(t&&e){var n=r(t);e.traverse((function(t){if(Sm(t)&&t.anid){var e=n[t.anid];if(e){var r=o(t);t.attr(o(e)),Fl(t,r,i,bs(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){Sm(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Cm(t)&&(e.shape=Object(s["m"])({},t.shape)),e}}function Mm(t,e){return Object(s["H"])(t,(function(t){var i=t[0];i=rm(i,e.x),i=om(i,e.x+e.width);var n=t[1];return n=rm(n,e.y),n=om(n,e.y+e.height),[i,n]}))}function Tm(t,e){var i=rm(t.x,e.x),n=om(t.x+t.width,e.x+e.width),r=rm(t.y,e.y),o=om(t.y+t.height,e.y+e.height);if(n>=i&&o>=r)return{x:i,y:r,width:n-i,height:o-r}}function Om(t,e,i){var n=Object(s["m"])({rectHover:!0},e),r=n.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(s["i"])(r,i),new Ga(n)):dm(t.replace("path://",""),n,i,"center")}function Am(t,e,i,n,r){for(var o=0,a=r[r.length-1];o1)return!1;var m=Pm(p,f,u,h)/d;return!(m<0||m>1)}function Pm(t,e,i,n){return t*n-i*e}function Dm(t){return t<=1e-6&&t>=-1e-6}function Em(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,r=Object(s["C"])(e)?{formatter:e}:e,o=i.mainType,a=i.componentIndex,l={componentType:o,name:n,$vars:["name"]};l[o+"Index"]=a;var c=t.formatterParamsExtra;c&&Object(s["k"])(Object(s["F"])(c),(function(t){Object(s["q"])(l,t)||(l[t]=c[t],l.$vars.push(t))}));var u=bs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:n,option:Object(s["i"])({content:n,formatterParams:l},r)}}function Lm(t,e){var i;t.isGroup&&(i=e(t)),i||t.traverse(e)}function jm(t,e){if(t)if(Object(s["t"])(t))for(var i=0;i=0?h():u=setTimeout(h,-r),l=n};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(t){s=t},d}function Xm(t,e,i,n){var r=t[e];if(r){var o=r[Gm]||r,a=r[Um],s=r[Wm];if(s!==i||a!==n){if(null==i||!n)return t[e]=o;r=t[e]=Ym(o,i,"debounce"===n),r[Gm]=o,r[Um]=n,r[Wm]=i}return r}}function Km(t,e){var i=t[e];i&&i[Gm]&&(i.clear&&i.clear(),t[e]=i[Gm])}var Zm=kr(),Qm={itemStyle:Kr(vc,!0),lineStyle:Kr(fc,!0)},Jm={lineStyle:"stroke",itemStyle:"fill"};function tv(t,e){var i=t.visualStyleMapper||Qm[e];return i||(console.warn("Unkown style type '"+e+"'."),Qm.itemStyle)}function ev(t,e){var i=t.visualDrawType||Jm[e];return i||(console.warn("Unkown style type '"+e+"'."),"fill")}var iv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=tv(t,n),a=o(r),l=r.getShallow("decal");l&&(i.setVisual("decal",l),l.dirty=!0);var c=ev(t,n),u=a[c],h=Object(s["w"])(u)?u:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[c]||h||d){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[c]||(a[c]=p,i.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(s["w"])(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||Object(s["w"])(a.stroke)?p:a.stroke}if(i.setVisual("style",a),i.setVisual("drawType",c),!e.isSeriesFiltered(t)&&h)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=Object(s["m"])({},a);r[c]=h(n),e.setItemVisual(i,"style",r)}}}},nv=new xc,rv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=tv(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){nv.option=i[n];var a=r(nv),l=t.ensureUniqueItemVisual(e,"style");Object(s["m"])(l,a),nv.option.decal&&(t.setItemVisual(e,"decal",nv.option.decal),nv.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},ov={performRawSeries:!0,overallReset:function(t){var e=Object(s["f"])();t.eachSeries((function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+i,r=e.get(n);r||(r={},e.set(n,r)),Zm(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var i=e.getRawData(),n={},r=e.getData(),o=Zm(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=ev(e,a);r.each((function(t){var e=r.getRawIndex(t);n[e]=t})),i.each((function(t){var a=n[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var c=r.ensureUniqueItemVisual(a,"style"),u=i.getName(t)||t+"",h=i.count();c[s]=e.getColorFromPalette(u,o,h)}}))}}))}},av=Math.PI;function sv(t,e){e=e||{},s["i"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new bn,n=new ts({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);var r,o=new ys({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ts({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&(r=new zg({shape:{startAngle:-av/2,endAngle:-av/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*av/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*av/2}).delay(300).start("circularInOut"),i.add(r)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),c=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}var lv=function(){function t(t,e,i,n){this._stageTaskMap=Object(s["f"])(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=r?i.step:null,a=n&&n.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Object(s["f"])();t.eachSeries((function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;Object(s["k"])(this._allHandlers,(function(n){var r=t.get(n.uid)||t.set(n.uid,{}),o="";Object(s["b"])(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)}),this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){n=n||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(s["k"])(t,(function(t,s){if(!n.visualType||n.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each((function(t){a(n,t)&&(t.dirty(),h=!0)})),h&&u.dirty(),o.updatePayload(u,i);var p=o.getPerformArgs(u,n.block);d.each((function(t){t.perform(p)})),u.perform(p)&&(r=!0)}else c&&c.each((function(s,l){a(n,s)&&s.dirty();var c=o.getPerformArgs(s,n.block);c.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,i),s.perform(c)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,i,n){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(s["f"])(),l=t.seriesType,c=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||ep({plan:pv,reset:fv,count:vv}));l.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?i.eachRawSeries(u):l?i.eachRawSeriesByType(l,u):c&&c(i,n).each(u)},t.prototype._createOverallStageTask=function(t,e,i,n){var r=this,o=e.overallTask=e.overallTask||ep({reset:cv});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,l=o.agentStubMap=Object(s["f"])(),c=t.seriesType,u=t.getTargetSeries,h=!0,d=!1,p="";function f(t){var e=t.uid,i=l.set(e,a&&a.get(e)||(d=!0,ep({reset:uv,onDirty:dv})));i.context={model:t,overallProgress:h},i.agent=o,i.__block=h,r._pipe(t,i)}Object(s["b"])(!t.createOnAllSeries,p),c?i.eachRawSeriesByType(c,f):u?u(i,n).each(f):(h=!1,Object(s["k"])(i.getSeries(),f)),d&&o.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return Object(s["w"])(t)&&(t={overallReset:t,seriesType:yv(t)}),t.uid=Sc("stageHandler"),e&&(t.visualType=e),t},t}();function cv(t){t.overallReset(t.ecModel,t.api,t.payload)}function uv(t){return t.overallProgress&&hv}function hv(){this.agent.dirty(),this.getDownstream().dirty()}function dv(){this.agent&&this.agent.dirty()}function pv(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function fv(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=nr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(s["H"])(e,(function(t,e){return mv(e)})):gv}var gv=mv(0);function mv(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&u===r.length-c.length){var h=r.slice(0,u);"data"!==h&&(e.mainType=h,e[c.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,r=i.packedEvent,o=i.model,a=i.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(l,r,"name")&&c(l,r,"dataIndex")&&c(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,n,r));function c(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Ev=["symbol","symbolSize","symbolRotate","symbolOffset"],Lv=Ev.concat(["symbolKeepAspect"]),jv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},r={},o=!1,a=0;a=0&&ay(l)?l:.5;var c=t.createRadialGradient(a,s,0,a,s,l);return c}function cy(t,e,i){for(var n="radial"===e.type?ly(t,e,i):sy(t,e,i),r=e.colorStops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(s["z"])(t)?[t]:Object(s["t"])(t)?t:null:null}function fy(t){var e=t.style,i=e.lineDash&&e.lineWidth>0&&py(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(i){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(i=Object(s["H"])(i,(function(t){return t/r})),n/=r)}return[i,n]}var gy=new ha(!0);function my(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function vy(t){return"string"===typeof t&&"none"!==t}function yy(t){var e=t.fill;return null!=e&&"none"!==e}function by(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function _y(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function xy(t,e,i){var n=io(e.image,e.__image,i);if(ro(n)){var r=t.createPattern(n,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*s["a"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function wy(t,e,i,n){var r,o=my(i),a=yy(i),s=i.strokePercent,l=s<1,c=!e.path;e.silent&&!l||!c||e.createPathProxy();var u=e.path||gy,h=e.__dirty;if(!n){var d=i.fill,p=i.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,m=a&&!!d.image,v=o&&!!p.image,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(y=h?cy(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(b=h?cy(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),m&&(_=h||!e.__canvasFillPattern?xy(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),v&&(x=h||!e.__canvasStrokePattern?xy(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=y:m&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:v&&(x?t.strokeStyle=x:o=!1)}var S,C,k=e.getGlobalScale();u.setScale(k[0],k[1],e.segmentIgnoreThreshold),t.setLineDash&&i.lineDash&&(r=fy(e),S=r[0],C=r[1]);var M=!0;(c||h&Ot)&&(u.setDPR(t.dpr),l?u.setContext(null):(u.setContext(t),M=!1),u.reset(),e.buildPath(u,e.shape,n),u.toStatic(),e.pathUpdated()),M&&u.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),n||(i.strokeFirst?(o&&_y(t,i),a&&by(t,i)):(a&&by(t,i),o&&_y(t,i))),S&&t.setLineDash([])}function Sy(t,e,i){var n=e.__image=io(i.image,e.__image,e,e.onload);if(n&&ro(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var c=i.sx||0,u=i.sy||0;t.drawImage(n,c,u,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){c=i.sx,u=i.sy;var h=a-c,d=s-u;t.drawImage(n,c,u,h,d,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}function Cy(t,e,i){var n,r=i.text;if(null!=r&&(r+=""),r){t.font=i.font||Ui["a"],t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var o=void 0,a=void 0;t.setLineDash&&i.lineDash&&(n=fy(e),o=n[0],a=n[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),i.strokeFirst?(my(i)&&t.strokeText(r,i.x,i.y),yy(i)&&t.fillText(r,i.x,i.y)):(yy(i)&&t.fillText(r,i.x,i.y),my(i)&&t.strokeText(r,i.x,i.y)),o&&t.setLineDash([])}}var ky=["shadowBlur","shadowOffsetX","shadowOffsetY"],My=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ty(t,e,i,n,r){var o=!1;if(!n&&(i=i||{},e===i))return!1;if(n||e.opacity!==i.opacity){Fy(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?wo.opacity:a}(n||e.blend!==i.blend)&&(o||(Fy(t,r),o=!0),t.globalCompositeOperation=e.blend||wo.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,i){if(!this[wb])if(this._disposed)e_(this.id);else{var n,r,o;if(Object(s["A"])(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[wb]=!0,!this._model||e){var a=new Zh(this._api),l=this._theme,c=this._model=new Fh;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,a)}this._model.setOption(t,{replaceMerge:r},o_);var u={seriesTransition:o,optionChanged:!0};if(i)this[Sb]={silent:n,updateParams:u},this[wb]=!1,this.getZr().wakeUp();else{try{Eb(this),Rb.update.call(this,null,u)}catch(h){throw this[Sb]=null,this[wb]=!1,h}this._ssr||this._zr.flush(),this[Sb]=null,this[wb]=!1,zb.call(this,n),Vb.call(this,n)}}},e.prototype.setTheme=function(){Oh("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||rb&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(s["k"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;Object(s["k"])(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(s["k"])(n,(function(t){t.group.ignore=!1})),o}e_(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max,o=1/0;if(u_[i]){var a=o,l=o,c=-o,u=-o,h=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();Object(s["k"])(c_,(function(o,d){if(o.group===i){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(s["d"])(t)),f=o.getDom().getBoundingClientRect();a=n(f.left,a),l=n(f.top,l),c=r(f.right,c),u=r(f.bottom,u),h.push({dom:p,left:f.left,top:f.top})}})),a*=d,l*=d,c*=d,u*=d;var p=c-a,f=u-l,g=Ui["d"].createCanvas(),m=kn(g,{renderer:e?"svg":"canvas"});if(m.resize({width:p,height:f}),e){var v="";return Object(s["k"])(h,(function(t){var e=t.left-a,i=t.top-l;v+=''+t.dom+""})),m.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new ts({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),Object(s["k"])(h,(function(t){var e=new Ga({style:{x:t.left*d-a,y:t.top*d-l,image:t.dom}});m.add(e)})),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}e_(this.id)},e.prototype.convertToPixel=function(t,e){return Bb(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Bb(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var i,n=this._model,r=Tr(n,t);return Object(s["k"])(r,(function(t,n){n.indexOf("Models")>=0&&Object(s["k"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}else 0}),this)}),this),!!i}e_(this.id)},e.prototype.getVisual=function(t,e){var i=this._model,n=Tr(i,t,{defaultMainType:"series"}),r=n.seriesModel;var o=r.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=a?Bv(o,a,e):Fv(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(s["k"])(t_,(function(e){var i=function(i){var n,r=t.getModel(),o=i.target,a="globalout"===e;if(a?n={}:o&&$v(o,(function(t){var e=bs(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=Object(s["m"])({},e.eventData),!0}),!0),n){var l=n.componentType,c=n.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=n.seriesIndex);var u=l&&null!=c&&r.getComponent(l,c),h=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=i,n.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:h},t.trigger(e,n)}};i.zrEventfulCallAtLast=!0,t._zr.on(e,i,t)})),Object(s["k"])(n_,(function(e,i){t._messageCenter.on(i,(function(t){this.trigger(i,t)}),t)})),Object(s["k"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),qv(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?e_(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)e_(this.id);else{this._disposed=!0;var t=this.getDom();t&&Dr(this.getDom(),h_,"");var e=this,i=e._api,n=e._model;Object(s["k"])(e._componentsViews,(function(t){t.dispose(n,i)})),Object(s["k"])(e._chartsViews,(function(t){t.dispose(n,i)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete c_[e.id]}},e.prototype.resize=function(t){if(!this[wb])if(this._disposed)e_(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[Sb]&&(null==n&&(n=this[Sb].silent),i=!0,this[Sb]=null),this[wb]=!0;try{i&&Eb(this),Rb.update.call(this,{type:"resize",animation:Object(s["m"])({duration:0},t&&t.animation)})}catch(r){throw this[wb]=!1,r}this[wb]=!1,zb.call(this,n),Vb.call(this,n)}}},e.prototype.showLoading=function(t,e){if(this._disposed)e_(this.id);else if(Object(s["A"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),l_[t]){var i=l_[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},e.prototype.hideLoading=function(){this._disposed?e_(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(s["m"])({},t);return e.type=n_[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)e_(this.id);else if(Object(s["A"])(e)||(e={silent:!!e}),i_[t.type]&&this._model)if(this[wb])this._pendingActions.push(t);else{var i=e.silent;Nb.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&a["a"].browser.weChat&&this._throttledZrFlush(),zb.call(this,i),Vb.call(this,i)}},e.prototype.updateLabelLayout=function(){tb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)e_(this.id);else{var e=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(e);0,n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],i=[],n=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();n=n||!!s,("series"===t?i:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),n){var r,o,a=e.concat(i);kt(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(s["k"])(a,(function(e){var i=t.getComponent(e.type,e.idx),n=e.zlevel,a=e.key;null!=r&&(n=Math.max(r,n)),a?(n===r&&a!==o&&n++,o=a):o&&(n===r&&n++,o=""),r=n,i.setZLevel(n)}))}}function i(t){for(var e=[],i=t.currentStates,n=0;ne.get("hoverLayerThreshold")&&!a["a"].node&&!a["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function r(t,e){var i=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=i)}))}function l(t,e){if(!t.preventAutoZ){var i=t.get("z")||0,n=t.get("zlevel")||0;e.eachRendered((function(t){return c(t,i,n,-1/0),!0}))}}function c(t,e,i,n){var r=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var s=t.childrenRef(),l=0;l0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(zl(t))return;if(t instanceof Ba&&Ll(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&i(t)}}))}Eb=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Lb(t,!0),Lb(t,!1),e.plan()},Lb=function(t,e){for(var i=t._model,n=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l=0)){w_.push(i);var o=Sv.wrapStageHandler(i,r);o.__prio=e,o.__raw=i,t.push(o)}}function C_(t,e){l_[t]=e}function k_(t,e,i){var n=nb("registerMap");n&&n(t,e,i)}var M_=bp;x_(pb,iv),x_(mb,rv),x_(mb,ov),x_(pb,jv),x_(mb,Rv),x_(_b,Qy),p_(xd),f_(sb,wd),C_("default",sv),y_({type:Ds,event:Ds,update:Ds},s["L"]),y_({type:Es,event:Es,update:Es},s["L"]),y_({type:Ls,event:Ls,update:Ls},s["L"]),y_({type:js,event:js,update:js},s["L"]),y_({type:Rs,event:Rs,update:Rs},s["L"]),d_("light",kv),d_("dark",Pv);var T_=[],O_={registerPreprocessor:p_,registerProcessor:f_,registerPostInit:g_,registerPostUpdate:m_,registerUpdateLifecycle:v_,registerAction:y_,registerCoordinateSystem:b_,registerLayout:__,registerVisual:x_,registerTransform:M_,registerLoading:C_,registerMap:k_,registerImpl:ib,PRIORITY:xb,ComponentModel:Uu,ComponentView:Sf,SeriesModel:xf,ChartView:Hm,registerComponentModel:function(t){Uu.registerClass(t)},registerComponentView:function(t){Sf.registerClass(t)},registerSeriesModel:function(t){xf.registerClass(t)},registerChartView:function(t){Hm.registerClass(t)},registerSubTypeDefaulter:function(t,e){Uu.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Mn(t,e)}};function A_(t){Object(s["t"])(t)?Object(s["k"])(t,(function(t){A_(t)})):Object(s["r"])(T_,t)>=0||(T_.push(t),Object(s["w"])(t)&&(t={install:t}),t.install(O_))}function I_(t,e,i){var n=Ui["d"].createCanvas(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}var P_=function(t){function e(e,i,n){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||ci,"string"===typeof e?r=I_(e,i,n):s["A"](e)&&(r=e,e=r.id),o.id=e,o.dom=r;var a=r.style;return a&&(s["j"](r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=i,o.dpr=n,o}return c(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=I_("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Gi(0,0,0,0);function c(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Gi(0,0,0,0);e.copy(t),o.push(e)}else{for(var i=!1,n=1/0,r=0,c=0;c=a)}}for(var u=this.__startIndex;u15)break}}i.prevElClipPaths&&c.restore()};if(u)if(0===u.length)s=l.__endIndex;else for(var _=f.dpr,x=0;x0&&t>n[0]){for(s=0;st)break;a=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n0?j_:0),this._needsManuallyCompositing),u.__builtin__||s["G"]("ZLevel "+c+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),n.__dirty&Mt&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,s["k"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?s["I"](i[t],e,!0):i[t]=e;for(var n=0;n=G_:-l>=G_),d=l>0?l%G_:l%G_+G_,p=!1;p=!!h||!Object(fe["j"])(u)&&d>=H_===!!c;var f=t+i*$_(o),g=e+n*q_(o);this._start&&this._add("M",f,g);var m=Math.round(r*W_);if(h){var v=1/this._p,y=(c?1:-1)*(G_-v);this._add("A",i,n,m,1,+c,t+i*$_(o+y),e+n*q_(o+y)),v>.01&&this._add("A",i,n,m,0,+c,f,g)}else{var b=t+i*$_(a),_=e+n*q_(a);this._add("A",i,n,m,+p,+c,b,_)}},t.prototype.rect=function(t,e,i,n){this._add("M",t,e),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,i,n,r,o,a,s,l){for(var c=[],u=this._p,h=1;h"}function cx(t){return""}function ux(t,e){e=e||{};var i=e.newline?"\n":"";function n(t){var e=t.children,r=t.tag,o=t.attrs;return lx(r,o)+(t.text||"")+(e?""+i+Object(s["H"])(e,(function(t){return n(t)})).join(i)+i:"")+cx(r)}return n(t)}function hx(t,e,i){i=i||{};var n=i.newline?"\n":"",r=" {"+n,o=n+"}",a=Object(s["H"])(Object(s["F"])(t),(function(e){return e+r+Object(s["H"])(Object(s["F"])(t[e]),(function(i){return i+":"+t[e][i]+";"})).join(n)+o})).join(n),l=Object(s["H"])(Object(s["F"])(e),(function(t){return"@keyframes "+t+r+Object(s["H"])(Object(s["F"])(e[t]),(function(i){return i+r+Object(s["H"])(Object(s["F"])(e[t][i]),(function(n){var r=e[t][i][n];return"d"===n&&(r='path("'+r+'")'),n+":"+r+";"})).join(n)+o})).join(n)+o})).join(n);return a||l?[""].join(n):""}function dx(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function px(t,e,i,n){return sx("svg","root",{width:t,height:e,xmlns:ix,"xmlns:xlink":nx,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+t+" "+e},i)}var fx={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},gx="transform-origin";function mx(t,e,i){var n=Object(s["m"])({},t.shape);Object(s["m"])(n,e),t.buildPath(i,n);var r=new Y_;return r.reset(Object(fe["f"])(t)),i.rebuildPath(r,1),r.generateStr(),r.getStr()}function vx(t,e){var i=e.originX,n=e.originY;(i||n)&&(t[gx]=i+"px "+n+"px")}var yx={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function bx(t,e){var i=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[i]=t,i}function _x(t,e,i){var n,r,o=t.shape.paths,a={};if(Object(s["k"])(o,(function(t){var e=dx(i.zrId);e.animation=!0,wx(t,{},e,!0);var o=e.cssAnims,l=e.cssNodes,c=Object(s["F"])(o),u=c.length;if(u){r=c[u-1];var h=o[r];for(var d in h){var p=h[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var f in l){var g=l[f].animation;g.indexOf(r)>=0&&(n=g)}}})),n){e.d=!1;var l=bx(a,i);return n.replace(r,l)}}function xx(t){return Object(s["C"])(t)?fx[t]?"cubic-bezier("+fx[t]+")":ue(t)?t:"":""}function wx(t,e,i,n){var r=t.animators,o=r.length,a=[];if(t instanceof qg){var l=_x(t,e,i);if(l)a.push(l);else if(!o)return}else if(!o)return;for(var c={},u=0;u0})).length){var I=bx(h,i);return I+" "+r[0]+" both"}}for(var v in c){l=m(c[v]);l&&a.push(l)}if(a.length){var y=i.zrId+"-cls-"+i.cssClassIdx++;i.cssNodes["."+y]={animation:a.join(",")},e["class"]=y}}var Sx=Math.round;function Cx(t){return t&&Object(s["C"])(t.src)}function kx(t){return t&&Object(s["w"])(t.toDataURL)}function Mx(t,e,i,n){ex((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(fe["k"])(o)?zx(e,t,r,n):a&&Object(fe["n"])(o)?Vx(i,t,r,n):t[r]=o}),e,i,!1),Nx(i,t,n)}function Tx(t){return Object(fe["j"])(t[0]-1)&&Object(fe["j"])(t[1])&&Object(fe["j"])(t[2])&&Object(fe["j"])(t[3]-1)}function Ox(t){return Object(fe["j"])(t[4])&&Object(fe["j"])(t[5])}function Ax(t,e,i){if(e&&(!Ox(e)||!Tx(e))){var n=i?10:1e4;t.transform=Tx(e)?"translate("+Sx(e[4]*n)/n+" "+Sx(e[5]*n)/n+")":Object(fe["e"])(e)}}function Ix(t,e,i){for(var n=t.points,r=[],o=0;oc?(a=null==i[d+1]?null:i[d+1].elm,rw(t,a,i,l,d)):ow(t,e,s,c))}function lw(t,e){var i=e.elm=t.elm,n=t.children,r=e.children;t!==e&&(aw(t,e),Jx(e.text)?tw(n)&&tw(r)?n!==r&&sw(i,n,r):tw(r)?(tw(t.text)&&Xx(i,""),rw(i,null,r,0,r.length-1)):tw(n)?ow(i,n,0,n.length-1):tw(t.text)&&Xx(i,""):t.text!==e.text&&(tw(n)&&ow(i,n,0,n.length-1),Xx(i,e.text)))}function cw(t,e){if(iw(t,e))lw(t,e);else{var i=t.elm,n=Ux(i);nw(e),null!==n&&(Hx(n,e.elm,Yx(i)),ow(n,[t],0,0))}return e}var uw=0,hw=function(){function t(t,e,i){if(this.type="svg",this.refreshHover=dw("refreshHover"),this.configLayer=dw("configLayer"),this.storage=e,this._opts=i=Object(s["m"])({},i),this.root=t,this._id="zr"+uw++,this._oldVNode=px(i.width,i.height),t&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=ax("svg");aw(null,this._oldVNode),n.appendChild(r),t.appendChild(n)}this.resize(i.width,i.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",cw(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Fx(t,dx(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),i=this._backgroundColor,n=this._width,r=this._height,o=dx(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var a=[];if(i&&"none"!==i){var l=Object(fe["p"])(i),c=l.color,u=l.opacity;this._bgVNode=sx("rect","bg",{width:n,height:r,x:"0",y:"0",id:"0",fill:c,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=sx("g","main",{},[]);this._paintList(e,o,h?h.children:a),h&&a.push(h);var d=Object(s["H"])(Object(s["F"])(o.defs),(function(t){return o.defs[t]}));if(d.length&&a.push(sx("defs","defs",{},d)),t.animation){var p=hx(o.cssNodes,o.cssAnims,{newline:!0});if(p){var f=sx("style","stl",{},[],p);a.push(f)}}return px(n,r,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},ux(this.renderToVNode({animation:Object(s["P"])(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(s["P"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var i=Object(fe["p"])(t),n=i.color,r=i.opacity;e.elm.setAttribute("fill",n),r<1&&e.elm.setAttribute("fill-opacity",r)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,i){for(var n,r,o=t.length,a=[],s=0,l=0,c=0;c=0;f--)if(h&&r&&h[f]===r[f])break;for(var g=p-1;g>f;g--)s--,n=a[s-1];for(var m=f+1;m1){var c=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(c,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),n[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),n[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),n[s]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,l),n[s]=null;else if(u>1)for(var d=0;d1)for(var a=0;a30}var Ew,Lw,jw,Rw,Bw,Fw,Nw,zw=s["A"],Vw=s["H"],qw="undefined"===typeof Int32Array?Array:Int32Array,$w="e\0\0",Hw=-1,Gw=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ww=["_approximateExtent"],Uw=function(){function t(t,e){var i;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n=!1;Aw(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var r={},o=[],a={},l=!1,c={},u=0;u=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=n.getSource().sourceFormat,s=a===Qu;if(s&&!n.pure)for(var l=[],c=t;c0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(r=this.getVisual(e),s["t"](r)?r=r.slice():zw(r)&&(r=s["m"]({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,zw(e)?s["m"](n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){zw(t)?s["m"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?s["m"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;_s(i,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){s["k"](this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Vw(this.dimensions,this._getDimInfo,this),this.hostModel)),Bw(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var i=this[t];s["w"](i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(s["S"](arguments)))})},t.internalField=function(){Ew=function(t){var e=t._invertedIndicesMap;s["k"](e,(function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new qw(o.categories.length);for(var s=0;s1&&(s+="__ec__"+c),n[e]=s}}}(),t}(),Yw=Uw;function Xw(t,e){Id(t)||(t=Dd(t)),e=e||{};var i=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],r=Object(s["f"])(),o=[],a=Zw(t,i,n,e.dimensionsCount),l=e.canOmitUnusedDimensions&&Dw(a),c=n===t.dimensionsDefine,u=c?Pw(t):Iw(n),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var d=Object(s["f"])(h),p=new Tp(a),f=0;f0&&(n.name=r+(o-1)),o++,e.set(r,o)}}function Zw(t,e,i,n){var r=Math.max(t.dimensionsDetectedCount||1,e.length,i.length,n||0);return Object(s["k"])(e,(function(t){var e;Object(s["A"])(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function Qw(t,e,i){var n=e.data;if(i||n.hasOwnProperty(t)){var r=0;while(n.hasOwnProperty(t+r))r++;t+=r}return e.set(t,!0),t}var Jw=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(s["f"])(),this.categoryAxisMap=Object(s["f"])(),this.coordSysName=t}return t}();function tS(t){var e=t.get("coordinateSystem"),i=new Jw(e),n=eS[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}var eS={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",Ar).models[0],o=t.getReferringComponents("yAxis",Ar).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),iS(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),iS(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",Ar).models[0];e.coordSysDims=["single"],i.set("single",r),iS(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",Ar).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),iS(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),iS(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(s["k"])(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),iS(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function iS(t){return"category"===t.get("type")}function nS(t,e,i){i=i||{};var n,r,o,a=i.byIndex,l=i.stackedCoordDimension;rS(e)?n=e:(r=e.schema,n=r.dimensions,o=e.store);var c,u,h,d,p=!(!t||!t.get("stack"));if(Object(s["k"])(n,(function(t,e){Object(s["C"])(t)&&(n[e]=t={name:t}),p&&!t.isExtraCoord&&(a||c||!t.ordinalMeta||(c=t),u||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(u=t))})),!u||a||c||(a=!0),u){h="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var f=u.coordDim,g=u.type,m=0;Object(s["k"])(n,(function(t){t.coordDim===f&&m++}));var v={name:h,coordDim:f,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,g),y.storeDimIndex=o.ensureCalculationDimension(h,g)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(n.push(v),n.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:h}}function rS(t){return!Aw(t.schema)}function oS(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function aS(t,e){return oS(t,e)?t.getCalculationInfo("stackResultDimension"):e}function sS(t,e){var i,n=t.get("coordinateSystem"),r=Hh.get(n);return e&&e.coordSysDims&&(i=s["H"](e.coordSysDims,(function(t){var i={name:t},n=e.axisMap.get(t);if(n){var r=n.get("type");i.type=ww(r)}return i}))),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function lS(t,e,i){var n,r;return i&&s["k"](t,(function(t,o){var a=t.coordDim,s=i.categoryAxisMap.get(a);s&&(null==n&&(n=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==n||(t[n].otherDims.itemName=0),n}function cS(t,e,i){i=i||{};var n,r=e.getSourceManager(),o=!1;t?(o=!0,n=Dd(t)):(n=r.getSource(),o=n.sourceFormat===Qu);var a=tS(e),l=sS(e,a),c=i.useEncodeDefaulter,u=s["w"](c)?c:c?s["h"](ch,l,e):null,h={coordDimensions:l,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},d=Xw(n,h),p=lS(d.dimensions,i.createInvertedIndices,a),f=o?null:r.getSharedDataStore(d),g=nS(e,{schema:d,store:f}),m=new Yw(d,e);m.setCalculationInfo(g);var v=null!=p&&uS(n)?function(t,e,i,n){return n===p?i:this.defaultDimValueGetter(t,e,i,n)}:null;return m.hasItemOption=!1,m.initData(o?n:f,null,v),m}function uS(t){if(t.sourceFormat===Qu){var e=hS(t.data||[]);return!s["t"](ar(e))}}function hS(t){var e=0;while(e-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(xf),fS=pS;function gS(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=Zd(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a=0&&n.push(e[o])}return n.join(" ")}var vS=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return o(e,t),e.prototype._createSymbol=function(t,e,i,n,r){this.removeAll();var o=ny(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=yS,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){rl(this.childAt(0))},e.prototype.downplay=function(){ol(this.childAt(0))},e.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},e.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},e.prototype.updateData=function(t,i,n,r){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,i),l=o!==this._symbolType,c=r&&r.disableAnimation;if(l){var u=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,s,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):Fl(h,d,a,i),Hl(h)}if(this._updateCommon(t,i,s,n,r),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Nl(h,d,a,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,i,n,r){var o,a,l,c,u,h,d,p,f,g=this.childAt(0),m=t.hostModel;if(n&&(o=n.emphasisItemStyle,a=n.blurItemStyle,l=n.selectItemStyle,c=n.focus,u=n.blurScope,d=n.labelStatesModels,p=n.hoverScale,f=n.cursorStyle,h=n.emphasisDisabled),!n||t.hasItemOption){var v=n&&n.itemModel?n.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),l=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),c=y.get("focus"),u=y.get("blurScope"),h=y.get("disabled"),d=Kl(v),p=y.getShallow("scale"),f=v.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(b||0)*Math.PI/180||0);var _=oy(t.getItemVisual(e,"symbolOffset"),i);_&&(g.x=_[0],g.y=_[1]),f&&g.attr("cursor",f);var x=t.getItemVisual(e,"style"),w=x.fill;if(g instanceof Ga){var S=g.style;g.useStyle(Object(s["m"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},x))}else g.__isEmptyBrush?g.useStyle(Object(s["m"])({},x)):g.useStyle(x),g.style.decal=null,g.setColor(w,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var C=t.getItemVisual(e,"liftZ"),k=this._z2;null!=C?null==k&&(this._z2=g.z2,g.z2+=C):null!=k&&(g.z2=k,this._z2=null);var M=r&&r.useNameLabel;function T(e){return M?t.getName(e):gS(t,e)}Xl(g,d,{labelFetcher:m,labelDataIndex:e,defaultText:T,inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var O=g.ensureState("emphasis");if(O.style=o,g.ensureState("select").style=l,g.ensureState("blur").style=a,p){var A=Math.max(Object(s["z"])(p)?p:1.1,3/this._sizeY);O.scaleX=this._sizeX*A,O.scaleY=this._sizeY*A}this.setSymbolScale(1),Sl(this,c,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),r=bs(this).dataIndex,o=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var a=n.getTextContent();a&&Vl(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Vl(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return ry(t.getItemVisual(e,"symbolSize"))},e}(bn);function yS(t,e){this.parent.drift(t,e)}var bS=vS;function _S(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function xS(t){return null==t||Object(s["A"])(t)||(t={isIgnore:t}),t||{}}function wS(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:Kl(e),cursorStyle:e.get("cursor")}}var SS=function(){function t(t){this.group=new bn,this._SymbolCtor=t||bS}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=xS(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=wS(t),l={disableAnimation:a},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add((function(n){var r=c(n);if(_S(t,r,n,e)){var a=new o(t,n,s,l);a.setPosition(r),t.setItemGraphicEl(n,a),i.add(a)}})).update((function(u,h){var d=r.getItemGraphicEl(h),p=c(u);if(_S(t,p,u,e)){var f=t.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)i.remove(d),d=new o(t,u,s,l),d.setPosition(p);else{d.updateData(t,u,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):Fl(d,m,n)}i.add(d),t.setItemGraphicEl(u,d)}else i.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){i.remove(e)}),n)})).execute(),this._getSymbolPoint=c,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,i){var n=t._getSymbolPoint(i);e.setPosition(n),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wS(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=xS(i);for(var r=t.start;r0?i=n[0]:n[1]<0&&(i=n[1]),i}function TS(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}var OS="undefined"!==typeof Float32Array,AS=OS?Float32Array:Array;function IS(t){return Object(s["t"])(t)?OS?new Float32Array(t):t:new AS(t)}function PS(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}function DS(t,e,i,n,r,o,a,s){for(var l=PS(t,e),c=[],u=[],h=[],d=[],p=[],f=[],g=[],m=kS(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b=r||g<0)break;if(jS(v,y)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var b=v-c,_=y-u;if(b*b+_*_<.5){g+=o;continue}if(a>0){var x=g+o,w=e[2*x],S=e[2*x+1];while(w===v&&S===y&&m=n||jS(w,S))p=v,f=y;else{M=w-c,T=S-u;var I=v-c,P=w-v,D=y-u,E=S-y,L=void 0,j=void 0;if("x"===s){L=Math.abs(I),j=Math.abs(P);var R=M>0?1:-1;p=v-R*L*a,f=y,O=v+R*j*a,A=y}else if("y"===s){L=Math.abs(D),j=Math.abs(E);var B=T>0?1:-1;p=v,f=y-B*L*a,O=v,A=y+B*j*a}else L=Math.sqrt(I*I+D*D),j=Math.sqrt(P*P+E*E),k=j/(j+L),p=v-M*a*(1-k),f=y-T*a*(1-k),O=v+M*a*k,A=y+T*a*k,O=ES(O,LS(w,v)),A=ES(A,LS(S,y)),O=LS(O,ES(w,v)),A=LS(A,ES(S,y)),M=O-v,T=A-y,p=v-M*L/j,f=y-T*L/j,p=ES(p,LS(c,v)),f=ES(f,LS(u,y)),p=LS(p,ES(c,v)),f=LS(f,ES(u,y)),M=v-p,T=y-f,O=v+M*j/L,A=y+T*j/L}t.bezierCurveTo(h,d,p,f,v,y),h=O,d=A}else t.lineTo(v,y)}c=v,u=y,g+=o}return m}var BS=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),FS=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new BS},e.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0;r--)if(!jS(i[2*r-2],i[2*r-1]))break;for(;n=0){var y=s?(d-n)*v+n:(h-i)*v+i;return s?[t,y]:[y,t]}i=h,n=d;break;case a.C:h=o[c++],d=o[c++],p=o[c++],f=o[c++],g=o[c++],m=o[c++];var b=s?Zt(i,h,p,g,t,l):Zt(n,d,f,m,t,l);if(b>0)for(var _=0;_=0){y=s?Xt(n,d,f,m,x):Xt(i,h,p,g,x);return s?[t,y]:[y,t]}}i=g,n=m;break}}},e}(Ba),NS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(BS),zS=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return o(e,t),e.prototype.getDefaultShape=function(){return new NS},e.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!jS(i[2*o-2],i[2*o-1]))break;for(;re){n?r.push(a(n,l,e)):i&&r.push(a(i,l,0),a(i,l,e));break}i&&(r.push(a(i,l,0)),i=null),r.push(l),n=l}}return r}function QS(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=n.length-1;a>=0;a--){var l=t.getDimensionInfo(n[a].dimension);if(r=l&&l.coordDim,"x"===r||"y"===r){o=n[a];break}}if(o){var c=e.getAxis(r),u=s["H"](o.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),h=u.length,d=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),d.reverse());var p=ZS(u,"x"===r?i.getWidth():i.getHeight()),f=p.length;if(!f&&h)return u[0].coord<0?d[1]?d[1]:u[h-1].color:d[0]?d[0]:u[0].color;var g=10,m=p[0].coord-g,v=p[f-1].coord+g,y=v-m;if(y<.001)return"transparent";s["k"](p,(function(t){t.offset=(t.coord-m)/y})),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var b=new Wg(0,0,0,0,p,!0);return b[r]=m,b[r+"2"]=v,b}}}function JS(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!tC(o,e))){var a=e.mapDimension(o.dim),l={};return s["k"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);l[e]=1})),function(t){return!l.hasOwnProperty(e.get(a,t))}}}}function tC(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;an)return!1;return!0}function eC(t,e){return isNaN(t)||isNaN(e)}function iC(t){for(var e=t.length/2;e>0;e--)if(!eC(t[2*e-2],t[2*e-1]))break;return e-1}function nC(t,e){return[t[2*e],t[2*e+1]]}function rC(t,e,i){for(var n,r,o=t.length/2,a="x"===i?0:1,s=0,l=-1,c=0;c=e||n>=e&&r<=e){l=c;break}s=c,n=r}else n=r;return{range:[s,l],t:(e-n)/(r-n)}}function oC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var j=f.getState("emphasis").style;j.lineWidth=+f.style.lineWidth+1}bs(f).seriesIndex=t.seriesIndex,Sl(f,D,E,L);var R=YS(t.get("smooth")),B=t.get("smoothMonotone");if(f.setShape({smooth:R,smoothMonotone:B,connectNulls:S}),g){var F=a.getCalculationInfo("stackedOnSeries"),N=0;g.useStyle(s["i"](c.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),F&&(N=YS(F.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:N,smoothMonotone:B,connectNulls:S}),Tl(g,t,"areaStyle"),bs(g).seriesIndex=t.seriesIndex,Sl(g,D,E,L)}var z=function(t){n._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=x,this._points=u,this._step=T,this._valueOrigin=b,t.get("triggerLineEvent")&&(this.packEventData(t,f),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,e){bs(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=Cr(r,n);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],c=a[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=t.get("zlevel"),h=t.get("z");s=new bS(r,o),s.x=l,s.y=c,s.setZ(u,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Hm.prototype.highlight.call(this,t,e,i,n)},e.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=Cr(r,n);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Hm.prototype.downplay.call(this,t,e,i,n)},e.prototype._changePolyState=function(t){var e=this._polygon;Xs(this._polyline,t),e&&Xs(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new FS({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new zS({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0);var l=t.hostModel,c=l.get("animationDuration");s["w"](c)&&(c=c(null));var u=l.get("animationDelay")||0,h=s["w"](u)?u(null):u;t.eachItemGraphicEl((function(t,o){var l=t;if(l){var d=[t.x,t.y],p=void 0,f=void 0,g=void 0;if(i)if(r){var m=i,v=e.pointToCoord(d);n?(p=m.startAngle,f=m.endAngle,g=-v[1]/180*Math.PI):(p=m.r0,f=m.r,g=v[0])}else{var y=i;n?(p=y.x,f=y.x+y.width,g=t.x):(p=y.y+y.height,f=y.y,g=t.y)}var b=f===p?0:(g-p)/(f-p);a&&(b=1-b);var _=s["w"](u)?u(o):c*b+h,x=l.getSymbolPath(),w=x.getTextContent();l.attr({scaleX:0,scaleY:0}),l.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(oC(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new ys({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=iC(a);l>=0&&(Xl(o,Kl(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,i){return null!=i?mS(r,i):gS(r,t)},enableTextSetter:!0},sC(n,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var c=i.getLayout("points"),u=i.hostModel,h=u.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?p:0)*(m?-1:1),_=(g?0:-p)*(m?-1:1),x=g?"x":"y",w=rC(c,y,x),S=w.range,C=S[1]-S[0],k=void 0;if(C>=1){if(C>1&&!h){var M=nC(c,S[0]);s.attr({x:M[0]+b,y:M[1]+_}),r&&(k=u.getRawValue(S[0]))}else{M=l.getPointOn(y,x);M&&s.attr({x:M[0]+b,y:M[1]+_});var T=u.getRawValue(S[0]),O=u.getRawValue(S[1]);r&&(k=jr(i,d,T,O,w.t))}n.lastFrameIndex=S[0]}else{var A=1===t||n.lastFrameIndex>0?S[0]:0;M=nC(c,A);r&&(k=u.getRawValue(A)),s.attr({x:M[0]+b,y:M[1]+_})}r&&ac(s).setLabelText(k)}},e.prototype._doUpdateAnimation=function(t,e,i,n,r,o,a){var s=this._polyline,l=this._polygon,c=t.hostModel,u=DS(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,o),h=u.current,d=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(h=KS(u.current,i,r,a),d=KS(u.stackedOnCurrent,i,r,a),p=KS(u.next,i,r,a),f=KS(u.stackedOnNext,i,r,a)),US(h,p)>3e3||l&&US(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=h;var g={shape:{points:p}};u.current!==h&&(g.shape.__points=u.next),s.stopAnimation(),Fl(s,g,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Fl(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=u.status,y=0;ye&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i10&&"cartesian2d"===o.type&&r){var l=o.getBaseAxis(),c=o.getOtherAxis(l),u=l.getExtent(),h=i.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/d);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(n.lttbDownSample(n.mapDimension(c.dim),1/p));var f=void 0;Object(s["C"])(r)?f=hC[r]:Object(s["w"])(r)&&(f=r),f&&t.setData(n.downSample(n.mapDimension(c.dim),1/p,f,dC))}}}}}function fC(t){t.registerChartView(cC),t.registerSeriesModel(fS),t.registerLayout(uC("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,pC("line"))}var gC="__ec_stack_";function mC(t){return t.get("stack")||gC+t.seriesIndex}function vC(t){return t.dim+t.index}function yC(t){var e=[],i=t.axis,n="axis0";if("category"===i.type){for(var r=i.getBandWidth(),o=0;o0&&(o=null===o?l:Math.min(o,l))}i[n]=o}}return i}function xC(t){var e=_C(t),i=[];return Object(s["k"])(t,(function(t){var n,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],c=Math.abs(a[1]-a[0]),u=o.scale.getExtent(),h=Math.abs(u[1]-u[0]);n=l?c/h*l:c}else{var d=t.getData();n=Math.abs(a[1]-a[0])/d.count()}var p=Pn(t.get("barWidth"),n),f=Pn(t.get("barMaxWidth"),n),g=Pn(t.get("barMinWidth")||(TC(t)?.5:1),n),m=t.get("barGap"),v=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:vC(o),stackId:mC(t)})})),wC(i)}function wC(t){var e={};Object(s["k"])(t,(function(t,i){var n=t.axisKey,r=t.bandWidth,o=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[n]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=t.barMaxWidth;c&&(a[s].maxWidth=c);var u=t.barMinWidth;u&&(a[s].minWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var i={};return Object(s["k"])(e,(function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(s["F"])(n).length;o=Math.max(35-4*a,15)+"%"}var l=Pn(o,r),c=Pn(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,d=(u-l)/(h+(h-1)*c);d=Math.max(d,0),Object(s["k"])(n,(function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+c*n,h--}else{var n=d;e&&en&&(n=i),n!==d&&(t.width=n,u-=n+c*n,h--)}})),d=(u-l)/(h+(h-1)*c),d=Math.max(d,0);var p,f=0;Object(s["k"])(n,(function(t,e){t.width||(t.width=d),p=t,f+=t.width*(1+c)})),p&&(f-=p.width*c);var g=-f/2;Object(s["k"])(n,(function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:g,width:t.width},g+=t.width*(1+c)}))})),i}function SC(t,e,i){if(t&&e){var n=t[vC(e)];return null!=n&&null!=i?n[mC(i)]:n}}function CC(t,e){var i=bC(t,e),n=xC(i);Object(s["k"])(i,(function(t){var e=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=mC(t),a=n[vC(r)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function kC(t){return{seriesType:t,plan:Cf(),reset:function(t){if(MC(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),r=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(n.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),c=e.getCalculationInfo("stackResultDimension"),u=oS(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=OC(n,r),p=TC(t),f=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),m=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){var n,r=t.count,l=p&&IS(3*r),c=p&&s&&IS(3*r),y=p&&IS(r),b=i.master.getRect(),_=h?b.width:b.height,x=e.getStore(),w=0;while(null!=(n=t.next())){var S=x.get(u?g:o,n),C=x.get(a,n),k=d,M=void 0;u&&(M=+S-x.get(o,n));var T=void 0,O=void 0,A=void 0,I=void 0;if(h){var P=i.dataToPoint([S,C]);if(u){var D=i.dataToPoint([M,C]);k=D[0]}T=k,O=P[1]+v,A=P[0]-k,I=m,Math.abs(A)t&&(t=e),t},e.prototype.brushSelector=function(t,e,i){return i.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Mc(IC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(IC),DC=PC,EC=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),LC=function(t){function e(e){var i=t.call(this,e)||this;return i.type="sausage",i}return o(e,t),e.prototype.getDefaultShape=function(){return new EC},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,c=e.endAngle,u=e.clockwise,h=2*Math.PI,d=u?c-lMath.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}function FC(t,e,i){return e*Math.sin(t)*(i?-1:1)}function NC(t,e,i){return e*Math.cos(t)*(i?1:-1)}var zC=Math.max,VC=Math.min;function qC(t,e){var i=t.getArea&&t.getArea();if(HS(t,"cartesian2d")){var n=t.getBaseAxis();if("category"!==n.type||!n.onBand){var r=e.getLayout("bandWidth");n.isHorizontal()?(i.x-=r,i.width+=2*r):(i.y-=r,i.height+=2*r)}}return i}var $C=function(t){function e(){var i=t.call(this)||this;return i.type=e.type,i._isFirstFrame=!0,i}return o(e,t),e.prototype.render=function(t,e,i,n){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i,n))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){jm(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,i,n){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?r=c.isHorizontal():"polar"===l.type&&(r="angle"===c.dim);var u=t.isAnimationEnabled()?t:null,h=WC(t,l);h&&this._enableRealtimeSort(h,a,i);var d=t.get("clip",!0)||h,p=qC(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],b=this._backgroundEls,_=n&&n.isInitSort,x=n&&"changeAxisOrder"===n.type;function w(t){var e=QC[l.type](a,t),i=ck(l,r,e);return i.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&i.setShape("r",v),y[t]=i,i}a.diff(s).add((function(e){var i=a.getItemModel(e),n=QC[l.type](a,e,i);if(g&&w(e),a.hasValue(e)&&ZC[l.type](n)){var s=!1;d&&(s=HC[l.type](p,n));var m=GC[l.type](t,a,e,n,r,u,c.model,!1,f);h&&(m.forceLabelAnimation=!0),ek(m,a,e,i,n,t,r,"polar"===l.type),_?m.attr({shape:n}):h?UC(h,u,m,n,e,r,!1,!1):Nl(m,{shape:n},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}})).update((function(e,i){var n=a.getItemModel(e),S=QC[l.type](a,e,n);if(g){var C=void 0;0===b.length?C=w(i):(C=b[i],C.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&C.setShape("r",v),y[e]=C);var k=QC[l.type](a,e),M=lk(r,k,l);Fl(C,{shape:M},u,e)}var T=s.getItemGraphicEl(i);if(a.hasValue(e)&&ZC[l.type](S)){var O=!1;if(d&&(O=HC[l.type](p,S),O&&o.remove(T)),T?Hl(T):T=GC[l.type](t,a,e,S,r,u,c.model,!!T,f),h&&(T.forceLabelAnimation=!0),x){var A=T.getTextContent();if(A){var I=ac(A);null!=I.prevValue&&(I.prevValue=I.value)}}else ek(T,a,e,n,S,t,r,"polar"===l.type);_?T.attr({shape:S}):h?UC(h,u,T,S,e,r,!0,x):Fl(T,{shape:S},t,e,null),a.setItemGraphicEl(e,T),T.ignore=O,o.add(T)}else o.remove(T)})).remove((function(e){var i=s.getItemGraphicEl(e);i&&$l(i,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new bn);S.removeAll();for(var C=0;Co)return!0;o=c}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var i=e.scale,n=i.getExtent(),r=Math.max(0,n[0]),o=Math.min(n[1],i.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==i.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,i,n){if(this._isOrderChangedWithinSameData(t,e,i)){var r=this._dataSort(t,i,e);this._isOrderDifferentInView(r,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,i){var n=e.baseAxis,r=this._dataSort(t,n,(function(i){return t.get(t.mapDimension(e.otherAxis.dim),i)}));i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl((function(e){$l(e,t,bs(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Hm),HC={cartesian2d:function(t,e){var i=e.width<0?-1:1,n=e.height<0?-1:1;i<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=zC(e.x,t.x),s=VC(e.x+e.width,r),l=zC(e.y,t.y),c=VC(e.y+e.height,o),u=sr?s:a,e.y=h&&l>o?c:l,e.width=u?0:s-a,e.height=h?0:c-l,i<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),u||h},polar:function(t,e){var i=e.r0<=e.r?1:-1;if(i<0){var n=e.r;e.r=e.r0,e.r0=n}var r=VC(e.r,t.r),o=zC(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(i<0){n=e.r;e.r=e.r0,e.r0=n}return a}},GC={cartesian2d:function(t,e,i,n,r,o,a,l,c){var u=new ts({shape:Object(s["m"])({},n),z2:1});if(u.__dataIndex=i,u.name="item",o){var h=u.shape,d=r?"height":"width";h[d]=0}return u},polar:function(t,e,i,n,r,o,a,s,l){var c=!r&&l?jC:vg,u=new c({shape:n,z2:1});u.name="item";var h=tk(r);if(u.calculateTextPosition=RC(h,{isRoundCap:c===jC}),o){var d=u.shape,p=r?"r":"endAngle",f={};d[p]=r?0:n.startAngle,f[p]=n[p],(s?Fl:Nl)(u,{shape:f},o)}return u}};function WC(t,e){var i=t.get("realtimeSort",!0),n=e.getBaseAxis();if(i&&"category"===n.type&&"cartesian2d"===e.type)return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function UC(t,e,i,n,r,o,a,s){var l,c;o?(c={x:n.x,width:n.width},l={y:n.y,height:n.height}):(c={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(a?Fl:Nl)(i,{shape:l},e,r,null);var u=e?t.baseAxis.model:null;(a?Fl:Nl)(i,{shape:c},u,r)}function YC(t,e){for(var i=0;i0?1:-1,a=n.height>0?1:-1;return{x:n.x+o*r/2,y:n.y+a*r/2,width:n.width-o*r,height:n.height-a*r}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function JC(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function tk(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function ek(t,e,i,n,r,o,a,l){var c=e.getItemVisual(i,"style");l||t.setShape("r",n.get(["itemStyle","borderRadius"])||0),t.useStyle(c);var u=n.getShallow("cursor");u&&t.attr("cursor",u);var h=l?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",d=Kl(n);Xl(t,d,{labelFetcher:o,labelDataIndex:i,defaultText:gS(o.getData(),i),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(l&&p){var f=n.get(["label","position"]);t.textConfig.inside="middle"===f||null,BC(t,"outside"===f?h:f,tk(a),n.get(["label","rotate"]))}sc(p,d,o.getRawValue(i),(function(t){return mS(e,t)}));var g=n.getModel(["emphasis"]);Sl(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Tl(t,n),JC(r)&&(t.style.fill="none",t.style.stroke="none",Object(s["k"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function ik(t,e){var i=t.get(["itemStyle","borderColor"]);if(!i||"none"===i)return 0;var n=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,r,o)}var nk=function(){function t(){}return t}(),rk=function(t){function e(e){var i=t.call(this,e)||this;return i.type="largeBar",i}return o(e,t),e.prototype.getDefaultShape=function(){return new nk},e.prototype.buildPath=function(t,e){for(var i=e.points,n=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?i:null}),30,!1);function sk(t,e,i){for(var n=t.baseDimIdx,r=1-n,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],c=t.barWidth,u=0,h=o.length/3;u=s[0]&&e<=s[0]+l[0]&&i>=s[1]&&i<=s[1]+l[1])return a[u]}return-1}function lk(t,e,i){if(HS(i,"cartesian2d")){var n=e,r=i.getArea();return{x:t?n.x:r.x,y:t?r.y:n.y,width:t?n.width:r.width,height:t?r.height:n.height}}r=i.getArea();var o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function ck(t,e,i){var n="polar"===t.type?vg:ts;return new n({shape:lk(e,i,t),silent:!0,z2:0})}var uk=$C;function hk(t){t.registerChartView(uk),t.registerSeriesModel(DC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,s["h"](CC,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kC("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,pC("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var dk=2*Math.PI,pk=Math.PI/180;function fk(t,e){return Bu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gk(t,e){var i=fk(t,e),n=t.get("center"),r=t.get("radius");s["t"](r)||(r=[0,r]),s["t"](n)||(n=[n,n]);var o=Pn(i.width,e.getWidth()),a=Pn(i.height,e.getHeight()),l=Math.min(o,a),c=Pn(n[0],o)+i.x,u=Pn(n[1],a)+i.y,h=Pn(r[0],l/2),d=Pn(r[1],l/2);return{cx:c,cy:u,r0:h,r:d}}function mk(t,e,i){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),r=fk(t,i),o=gk(t,i),a=o.cx,s=o.cy,l=o.r,c=o.r0,u=-t.get("startAngle")*pk,h=t.get("minAngle")*pk,d=0;e.each(n,(function(t){!isNaN(t)&&d++}));var p=e.getSum(n),f=Math.PI/(p||d)*2,g=t.get("clockwise"),m=t.get("roseType"),v=t.get("stillShowZeroSum"),y=e.getDataExtent(n);y[0]=0;var b=dk,_=0,x=u,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(n,(function(t,i){var n;if(isNaN(t))e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:c,r:m?NaN:l});else{n="area"!==m?0===p&&v?f:t*f:dk/d,nr&&(r+=yk);var p=Math.atan2(s,a);if(p<0&&(p+=yk),p>=n&&p<=r||p+yk>=n&&p+yk<=r)return l[0]=u,l[1]=h,c-i;var f=i*Math.cos(n)+t,g=i*Math.sin(n)+e,m=i*Math.cos(r)+t,v=i*Math.sin(r)+e,y=(f-a)*(f-a)+(g-s)*(g-s),b=(m-a)*(m-a)+(v-s)*(v-s);return y0){e=e/180*Math.PI,Ok.fromArray(t[0]),Ak.fromArray(t[1]),Ik.fromArray(t[2]),ji.sub(Pk,Ok,Ak),ji.sub(Dk,Ik,Ak);var i=Pk.len(),n=Dk.len();if(!(i<.001||n<.001)){Pk.scale(1/i),Dk.scale(1/n);var r=Pk.dot(Dk),o=Math.cos(e);if(o1&&ji.copy(jk,Ik),jk.toArray(t[1])}}}}function Bk(t,e,i){if(i<=180&&i>0){i=i/180*Math.PI,Ok.fromArray(t[0]),Ak.fromArray(t[1]),Ik.fromArray(t[2]),ji.sub(Pk,Ak,Ok),ji.sub(Dk,Ik,Ak);var n=Pk.len(),r=Dk.len();if(!(n<.001||r<.001)){Pk.scale(1/n),Dk.scale(1/r);var o=Pk.dot(e),a=Math.cos(i);if(o=l)ji.copy(jk,Ik);else{jk.scaleAndAdd(Dk,s/Math.tan(Math.PI/2-u));var h=Ik.x!==Ak.x?(jk.x-Ak.x)/(Ik.x-Ak.x):(jk.y-Ak.y)/(Ik.y-Ak.y);if(isNaN(h))return;h<0?ji.copy(jk,Ak):h>1&&ji.copy(jk,Ik)}jk.toArray(t[1])}}}}function Fk(t,e,i,n){var r="normal"===i,o=r?t:t.ensureState(i);o.ignore=e;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function Nk(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var r=w(n[0],n[1]),o=w(n[1],n[2]);if(!r||!o)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var a=Math.min(r,o)*i,s=k([],n[1],n[0],a/r),l=k([],n[1],n[2],a/o),c=k([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var u=1;u0&&o&&w(-h/a,0,a);var m,v,y=t[0],b=t[a-1];return _(),m<0&&S(-m,.8),v<0&&S(v,.8),_(),x(m,v,1),x(v,m,-1),_(),m<0&&C(-m),v<0&&C(v),c}function _(){m=y.rect[e]-n,v=r-b.rect[e]-b.rect[i]}function x(t,e,i){if(t<0){var n=Math.min(e,-t);if(n>0){w(n*i,0,a);var r=n+t;r<0&&S(-r*i,1)}else S(-t*i,1)}}function w(i,n,r){0!==i&&(c=!0);for(var o=n;o0)for(l=0;l0;l--){d=o[l-1]*h;w(-d,l,a)}}}function C(t){var e=t<0?-1:1;t=Math.abs(t);for(var i=Math.ceil(t/(a-1)),n=0;n0?w(i,0,n+1):w(-i,a-n-1,a),t-=i,t<=0)return}}function Hk(t,e,i,n){return $k(t,"x","width",e,i,n)}function Gk(t,e,i,n){return $k(t,"y","height",e,i,n)}function Wk(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var i=new Gi(0,0,0,0);function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;ri?a:o,u=Math.abs(l.label.y-i);if(u>=c.maxY){var h=l.label.x-e-l.len2*r,d=n+l.len,f=Math.abs(h)t.unconstrainedWidth?null:p:null;n.setStyle("width",f)}var g=n.getBoundingRect();o.width=g.width;var m=(n.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-h)/2}}}function Zk(t){return"center"===t.position}function Qk(t){var e,i,n=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Uk,l=n.getLayout("viewRect"),c=n.getLayout("r"),u=l.width,h=l.x,d=l.y,p=l.height;function f(t){t.ignore=!0}function g(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}n.each((function(t){var l=n.getItemGraphicEl(t),d=l.shape,p=l.getTextContent(),m=l.getTextGuideLine(),v=n.getItemModel(t),y=v.getModel("label"),b=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),w=Pn(y.get("edgeDistance"),u),S=y.get("bleedMargin"),C=v.getModel("labelLine"),k=C.get("length");k=Pn(k,u);var M=C.get("length2");if(M=Pn(M,u),Math.abs(d.endAngle-d.startAngle)0?"right":"left":D>0?"left":"right"}var V=Math.PI,q=0,$=y.get("rotate");if(Object(s["z"])($))q=$*(V/180);else if("center"===b)q=0;else if("radial"===$||!0===$){var H=D<0?-P+V:-P;q=H}else if("tangential"===$&&"outside"!==b&&"outer"!==b){var G=Math.atan2(D,E);G<0&&(G=2*V+G);var W=E>0;W&&(G=V+G),q=G-V}if(o=!!q,p.x=T,p.y=O,p.rotation=q,p.setStyle({verticalAlign:"middle"}),L){p.setStyle({align:I});var U=p.states.select;U&&(U.x+=p.x,U.y+=p.y)}else{var Y=p.getBoundingRect().clone();Y.applyTransform(p.getComputedTransform());var X=(p.style.margin||0)+2.1;Y.y-=X/2,Y.height+=X,r.push({label:p,labelLine:m,position:b,len:k,len2:M,minTurnAngle:C.get("minTurnAngle"),maxSurfaceAngle:C.get("maxSurfaceAngle"),surfaceNormal:new ji(D,E),linePoints:A,textAlign:I,labelDistance:_,labelAlignTo:x,edgeDistance:w,bleedMargin:S,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:p.style.width})}l.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&Xk(r,e,i,c,u,p,h,d);for(var m=0;m0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=n.r0}},e.type="pie",e}(Hm),iM=eM;function nM(t,e,i){e=Object(s["t"])(e)&&{coordDimensions:e}||Object(s["m"])({encodeDefine:t.getEncode()},e);var n=t.getSource(),r=Xw(n,e).dimensions,o=new Yw(r,t);return o.initData(n,i),o}var rM=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},t}(),oM=rM,aM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new oM(s["c"](this.getData,this),s["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return nM(this,{coordDimensions:["value"],encodeDefaulter:s["h"](uh,this)})},e.prototype.getDataParams=function(e){var i=this.getData(),n=t.prototype.getDataParams.call(this,e),r=[];return i.each(i.mapDimension("value"),(function(t){r.push(t)})),n.percent=Bn(r,e,i.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},e.prototype._defaultLabelLine=function(t){rr(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(xf),sM=aM;function lM(t){return{seriesType:t,reset:function(t,e){var i=t.getData();i.filterSelf((function(t){var e=i.mapDimension("value"),n=i.get(e,t);return!(Object(s["z"])(n)&&!isNaN(n)&&n<0)}))}}}function cM(t){t.registerChartView(iM),t.registerSeriesModel(sM),zv("pie",t.registerAction),t.registerLayout(Object(s["h"])(mk,"pie")),t.registerProcessor(vk("pie")),t.registerProcessor(lM("pie"))}var uM=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return o(e,t),e.prototype.getInitialData=function(t,e){return dS(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,i){return i.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(xf),hM=uM,dM=4,pM=function(){function t(){}return t}(),fM=function(t){function e(e){var i=t.call(this,e)||this;return i._off=0,i.hoverDataIdx=-1,i}return o(e,t),e.prototype.getDefaultShape=function(){return new pM},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var i,n=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]=0;s--){var l=2*s,c=n[l]-o/2,u=n[l+1]-a/2;if(t>=c&&e>=u&&t<=c+o&&e<=u+a)return s}return-1},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();if(t=i[0],e=i[1],n.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,i=e.points,n=e.size,r=n[0],o=n[1],a=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u=0&&(l.dataIndex=i+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),mM=gM,vM=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=t.getData(),r=this._updateSymbolDraw(n,t);r.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,i){var n=t.getData(),r=this._updateSymbolDraw(n,t);r.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var r=uC("").reset(t,e,i);r.progress&&r.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,i=e&&e.getArea&&e.getArea();return t.get("clip",!0)?i:null},e.prototype._updateSymbolDraw=function(t,e){var i=this._symbolDraw,n=e.pipelineContext,r=n.large;return i&&r===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=r?new mM:new CS,this._isLargeDraw=r,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Hm),yM=vM,bM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Uu),_M=bM,xM=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),wM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ar).models[0]},e.type="cartesian2dAxis",e}(Uu);s["K"](wM,xM);var SM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},CM=s["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},SM),kM=s["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},SM),MM=s["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},kM),TM=s["i"]({logBase:10},kM),OM={category:CM,value:kM,time:MM,log:TM},AM=0,IM=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++AM}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&Object(s["H"])(n,PM);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!Object(s["C"])(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(s["f"])(this.categories))},t}();function PM(t){return Object(s["A"])(t)&&null!=t.value?t.value:t+""}var DM=IM,EM={value:1,category:1,time:1,log:1};function LM(t,e,i,n){Object(s["k"])(EM,(function(r,a){var l=Object(s["I"])(Object(s["I"])({},OM[a],!0),n,!0),c=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e+"Axis."+a,i}return o(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var i=zu(this),n=i?qu(t):{},r=e.getTheme();Object(s["I"])(t,r.get(a+"Axis")),Object(s["I"])(t,this.getDefaultOption()),t.type=jM(t),i&&Vu(t,n,i)},i.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=DM.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=e+"Axis."+a,i.defaultOption=l,i}(i);t.registerComponentModel(c)})),t.registerSubTypeDefaulter(e+"Axis",jM)}function jM(t){return t.type||(t.data?"category":"value")}var RM=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Xr(RM);var BM=RM;function FM(t){return"interval"===t.type||"log"===t.type}function NM(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=Wn(o/e,!0);null!=i&&an&&(a=r.interval=n);var s=r.intervalPrecision=VM(a),l=r.niceTickExtent=[Dn(Math.ceil(t[0]/a)*a,s),Dn(Math.floor(t[1]/a)*a,s)];return $M(l,t),r}function zM(t){var e=Math.pow(10,Gn(t)),i=t/e;return i?2===i?i=3:3===i?i=5:i*=2:i=1,Dn(i*e)}function VM(t){return Ln(t)+2}function qM(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function $M(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),qM(t,0,e),qM(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function HM(t,e){return t>=e[0]&&t<=e[1]}function GM(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function WM(t,e){return t*(e[1]-e[0])+e[0]}var UM=function(t){function e(e){var i=t.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new DM({})),Object(s["t"])(n)&&(n=new DM({categories:Object(s["H"])(n,(function(t){return Object(s["A"])(t)?t.value:t}))})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return o(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(s["C"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),HM(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),GM(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(WM(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,i=e[0];while(i<=e[1])t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(BM);BM.registerClass(UM);var YM=UM,XM=Dn,KM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return o(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return HM(t,this._extent)},e.prototype.normalize=function(t){return GM(t,this._extent)},e.prototype.scale=function(t){return WM(t,this._extent)},e.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=VM(t)},e.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;i[0]a)return[]}var l=o.length?o[o.length-1].value:n[1];return i[1]>l&&(t?o.push({value:XM(l+e,r)}):o.push({value:i[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;rn[0]&&h>>1;t[r][1]i&&(this._approxInterval=i);var o=tT.length,a=Math.min(QM(tT,this._approxInterval,0,o),o-1);this._interval=tT[a][1],this._minLevelUnit=tT[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(s["z"])(t)?t:+$n(t)},e.prototype.contain=function(t){return HM(this.parse(t),this._extent)},e.prototype.normalize=function(t){return GM(this.parse(t),this._extent)},e.prototype.scale=function(t){return WM(t,this._extent)},e.type="time",e}(ZM),tT=[["second",Nc],["minute",zc],["hour",Vc],["quarter-day",6*Vc],["half-day",12*Vc],["day",1.2*qc],["half-week",3.5*qc],["week",7*qc],["month",31*qc],["quarter",95*qc],["half-year",$c/2],["year",$c]];function eT(t,e,i,n){var r=$n(e),o=$n(i),a=function(t){return iu(r,t,n)===iu(o,t,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},h=function(){return u()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return h();case"second":return d();case"millisecond":return p()}}function iT(t,e){return t/=qc,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function nT(t){var e=30*qc;return t/=e,t>6?6:t>3?3:t>2?2:1}function rT(t){return t/=Vc,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function oT(t,e){return t/=e?zc:Nc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function aT(t){return Wn(t,!0)}function sT(t,e,i){var n=new Date(t);switch(Kc(e)){case"year":case"month":n[hu(i)](0);case"day":n[du(i)](1);case"hour":n[pu(i)](0);case"minute":n[fu(i)](0);case"second":n[gu(i)](0),n[mu(i)](0)}return n.getTime()}function lT(t,e,i,n){var r=1e4,o=Yc,a=0;function l(t,e,i,r,o,a,s){var l=new Date(e),c=e,u=l[r]();while(c1&&0===c&&o.unshift({value:o[0].value-d})}}for(c=0;c=n[0]&&b<=n[1]&&d++)}var _=(n[1]-n[0])/e;if(d>1.5*_&&p>_/1.5)break;if(u.push(v),d>_||t===o[f])break}h=[]}}}var x=Object(s["n"])(Object(s["H"])(u,(function(t){return Object(s["n"])(t,(function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=x.length-1;for(f=0;f0)n*=10;var o=[Dn(fT(e[0]/n)*n),Dn(pT(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){hT.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=mT(t)/mT(this.base),HM(t,this._extent)},e.prototype.normalize=function(t){return t=mT(t)/mT(this.base),GM(t,this._extent)},e.prototype.scale=function(t){return t=WM(t,this._extent),gT(this.base,t)},e.type="log",e}(BM),yT=vT.prototype;function bT(t,e){return dT(t,Ln(e))}yT.getMinorTicks=hT.getMinorTicks,yT.getLabel=hT.getLabel,BM.registerClass(vT);var _T=vT,xT=function(){function t(t,e,i){this._prepareParams(t,e,i)}return t.prototype._prepareParams=function(t,e,i){i[1]0&&l>0&&!c&&(a=0),a<0&&l<0&&!u&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(a=d,c=!0),null!=p&&(l=p,u=!0),{min:a,max:l,minFixed:c,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[ST[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var i=wT[t];this[i]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),wT={min:"_determinedMin",max:"_determinedMax"},ST={min:"_dataMin",max:"_dataMax"};function CT(t,e,i){var n=t.rawExtentInfo;return n||(n=new xT(t,e,i),t.rawExtentInfo=n,n)}function kT(t,e){return null==e?null:Object(s["l"])(e)?NaN:t.parse(e)}function MT(t,e){var i=t.type,n=CT(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var r=n.min,o=n.max,a=e.ecModel;if(a&&"time"===i){var l=bC("bar",a),c=!1;if(s["k"](l,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var u=xC(l),h=TT(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function TT(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=SC(n,i.axis);if(void 0===a)return{min:t,max:e};var l=1/0;s["k"](a,(function(t){l=Math.min(t.offset,l)}));var c=-1/0;s["k"](a,(function(t){c=Math.max(t.offset+t.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,h=e-t,d=1-(l+c)/o,p=h/d-h;return e+=p*(c/u),t-=p*(l/u),{min:t,max:e}}function OT(t,e){var i=e,n=MT(t,i),r=n.extent,o=i.get("splitNumber");t instanceof _T&&(t.base=i.get("logBase"));var a=t.type,s=i.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?i.get("minInterval"):null,maxInterval:l?i.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function AT(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new YM({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new cT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(BM.getClass(e)||ZM)}}function IT(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)}function PT(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(i,n){return t.scale.getFormattedLabel(i,n,e)}}(e):s["C"](e)?function(e){return function(i){var n=t.scale.getLabel(i),r=e.replace("{value}",null!=n?n:"");return r}}(e):s["w"](e)?function(e){return function(n,r){return null!=i&&(r=n.value-i),e(DT(t,n),r,null!=n.level?{level:n.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function DT(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function ET(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=i.getExtent();i instanceof YM?r=i.count():(n=i.getTicks(),r=n.length);var a,s=t.getLabelModel(),l=PT(t),c=1;r>40&&(c=Math.ceil(r/40));for(var u=0;ut[1]&&(t[1]=n[1])}))}var NT=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return s["H"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),s["n"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),zT=NT,VT=["x","y"];function qT(t){return"interval"===t.type||"time"===t.type}var $T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=VT,e}return o(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(qT(t)&&qT(e)){var i=t.getExtent(),n=e.getExtent(),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,c=(o[1]-r[1])/s,u=r[0]-i[0]*l,h=r[1]-n[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=xi([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var i=this.dataToPoint(t),n=this.dataToPoint(e),r=this.getArea(),o=new Gi(i[0],i[1],n[0]-i[0],n[1]-i[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return M(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n,e)),i[1]=a.toGlobalCoord(a.dataToCoord(r,e)),i},e.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var i=[];if(this._invTransform)return M(i,t,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n;return new Gi(i,n,r,o)},e}(zT),HT=$T,GT=kr();function WT(t){return"category"===t.type?YT(t):ZT(t)}function UT(t,e){return"category"===t.type?KT(t,e):{ticks:s["H"](t.scale.getTicks(),(function(t){return t.value}))}}function YT(t){var e=t.getLabelModel(),i=XT(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function XT(t,e){var i,n,r=QT(t,"labels"),o=jT(e),a=JT(r,o);return a||(s["w"](o)?i=oO(t,o):(n="auto"===o?eO(t):o,i=rO(t,n)),tO(r,o,{labels:i,labelCategoryInterval:n}))}function KT(t,e){var i,n,r=QT(t,"ticks"),o=jT(e),a=JT(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(i=[]),s["w"](o))i=oO(t,o,!0);else if("auto"===o){var l=XT(t,t.getLabelModel());n=l.labelCategoryInterval,i=s["H"](l.labels,(function(t){return t.tickValue}))}else n=o,i=rO(t,n,!0);return tO(r,o,{ticks:i,tickCategoryInterval:n})}function ZT(t){var e=t.scale.getTicks(),i=PT(t);return{labels:s["H"](e,(function(e,n){return{level:e.level,formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function QT(t,e){return GT(t)[e]||(GT(t)[e]=[])}function JT(t,e){for(var i=0;i40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(c*Math.cos(n)),h=Math.abs(c*Math.sin(n)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,m=Zi(i({value:l}),e.font,"center","top");f=1.3*m.width,g=1.3*m.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var v=d/u,y=p/h;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=GT(t.model),x=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function nO(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function rO(t,e,i){var n=PT(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=o[0],u=r.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=RT(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&c!==o[0]&&g(o[0]);for(var f=c;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(i?t:{formattedLabel:n(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function oO(t,e,i){var n=t.scale,r=PT(t),o=[];return s["k"](n.getTicks(),(function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var aO=[0,1],sO=function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Rn(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),lO(i,n.count())),In(t,aO,i,e)},t.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),lO(i,n.count()));var r=In(t,i,aO,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=UT(this,e),n=i.ticks,r=Object(s["H"])(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return cO(this,r,o,t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=Object(s["H"])(i,(function(t){return Object(s["H"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return n},t.prototype.getViewLabels=function(){return WT(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},t.prototype.calculateCategoryInterval=function(){return iO(this)},t}();function lO(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function cO(t,e,i,n){var r=e.length;if(t.onBand&&!i&&r){var o,a,l=t.getExtent();if(1===r)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var c=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/c;Object(s["k"])(e,(function(t){t.coord-=u/2}));var h=t.scale.getExtent();a=1+h[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var d=l[0]>l[1];p(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift()),n&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]}),p(l[1],o.coord)&&(n?o.coord=l[1]:e.pop()),n&&p(o.coord,l[1])&&e.push({coord:l[1]})}function p(t,e){return t=Dn(t),e=Dn(e),d?t>e:te[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(uO),dO=hO;function pO(t,e,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],l=r.position,c=a?"onZero":l,u=r.dim,h=n.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===u?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=["y"===u?g[p[c]]:d[0],"x"===u?g[p[c]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[l],o.labelOffset=a?g[p[l]]-g[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),s["O"](i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===c?-y:y,o.z2=1,o}function fO(t){return"cartesian2d"===t.get("coordinateSystem")}function gO(t){var e={xAxisModel:null,yAxisModel:null};return s["k"](e,(function(i,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,Ar).models[0];e[n]=o})),e}var mO=Math.log;function vO(t,e,i){var n=ZM.prototype,r=n.getTicks.call(i),o=n.getTicks.call(i,!0),a=r.length-1,s=n.getInterval.call(i),l=MT(t,e),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===t.type){var d=mO(t.base);c=[mO(c[0])/d,mO(c[1])/d]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:h});var p=n.getExtent.call(t);u&&(c[0]=p[0]),h&&(c[1]=p[1]);var f=n.getInterval.call(t),g=c[0],m=c[1];if(u&&h)f=(m-g)/a;else if(u){m=c[0]+f*a;while(mc[0]&&isFinite(g)&&isFinite(c[0]))f=zM(f),g=c[1]-f*a}else{var v=t.getTicks().length-1;v>a&&(f=zM(f));var y=f*a;m=Math.ceil(c[1]/f)*f,g=Dn(m-y),g<0&&c[0]>=0?(g=0,m=Dn(y)):m>0&&c[1]<=0&&(m=0,g=-Dn(y))}var b=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;n.setExtent.call(t,g+f*b,m+f*_),n.setInterval.call(t,f),(b||_)&&n.setNiceExtent.call(t,g+f,m-f)}var yO=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=VT,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var i=this._axesMap;function n(t){var e,i=Object(s["F"])(t),n=i.length;if(n){for(var r=[],o=n-1;o>=0;o--){var a=+i[o],l=t[a],c=l.model,u=l.scale;FM(u)&&c.get("alignTicks")&&null==c.get("interval")?r.push(l):(OT(u,c),FM(u)&&(e=l))}r.length&&(e||(e=r.pop(),OT(e.scale,e.model)),Object(s["k"])(r,(function(t){vO(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),n(i.x),n(i.y);var r={};Object(s["k"])(i.x,(function(t){_O(i,"y",t,r)})),Object(s["k"])(i.y,(function(t){_O(i,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),r=!i&&t.get("containLabel"),o=Bu(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function l(){Object(s["k"])(a,(function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),wO(t,e?o.x:o.y)}))}l(),r&&(Object(s["k"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=ET(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);o[i]-=e[i]+n,"top"===t.position?o.y+=e.height+n:"left"===t.position&&(o.x+=e.width+n)}}})),l()),Object(s["k"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i)return i[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}Object(s["A"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n0?"top":"bottom",n="center"):Vn(o-CO)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&o0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),MO={axisLine:function(t,e,i,n){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=n.transform,l=[o[0],0],c=[o[1],0];a&&(M(l,l,a),M(c,c,a));var u=Object(s["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Dg({subPixelOptimize:!0,shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",i.add(h);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);Object(s["C"])(d)&&(d=[d,d]),(Object(s["C"])(p)||Object(s["z"])(p))&&(p=[p,p]);var f=oy(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];Object(s["k"])([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],(function(e,n){if("none"!==d[n]&&null!=d[n]){var r=ny(d[n],-g/2,-m/2,g,m,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:l[0]+o*Math.cos(t.rotation),y:l[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}}))}}},axisTickLabel:function(t,e,i,n){var r=EO(i,n,e,t),o=jO(i,n,e,t);if(OO(e,o,r),LO(i,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=qk(Object(s["H"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Wk(a)}},axisName:function(t,e,i,n){var r=Object(s["O"])(t.axisName,e.get("name"));if(r){var o,a,l=e.get("nameLocation"),c=t.nameDirection,u=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,d=e.axis.getExtent(),p=d[0]>d[1]?-1:1,f=["start"===l?d[0]-p*h:"end"===l?d[1]+p*h:(d[0]+d[1])/2,PO(l)?t.labelOffset+c*h:0],g=e.get("nameRotate");null!=g&&(g=g*CO/180),PO(l)?o=kO.innerTextLayout(t.rotation,null!=g?g:t.rotation,c):(o=TO(t.rotation,l,g||0,d),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var m=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,b=Object(s["O"])(t.nameTruncateMaxWidth,v.maxWidth,a),_=new ys({x:f[0],y:f[1],rotation:o.rotation,silent:kO.isLabelSilent(e),style:Zl(u,{text:r,font:m,overflow:"truncate",width:b,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Em({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=kO.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,bs(_).eventData=x}n.add(_),_.updateTransform(),i.add(_),_.decomposeTransform()}}};function TO(t,e,i,n){var r,o,a=zn(i-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Vn(a-CO/2)?(o=l?"bottom":"top",r="center"):Vn(a-1.5*CO)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*CO&&a>CO/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function OO(t,e,i){if(!RT(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],i=i||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],c=i[0],u=i[1],h=i[i.length-1],d=i[i.length-2];!1===n?(AO(o),AO(c)):IO(o,a)&&(n?(AO(a),AO(u)):(AO(o),AO(c))),!1===r?(AO(s),AO(h)):IO(l,s)&&(r?(AO(l),AO(d)):(AO(s),AO(h)))}}function AO(t){t&&(t.ignore=!0)}function IO(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=gi([]);return bi(r,r,-t.rotation),i.applyTransform(vi([],r,t.getLocalTransform())),n.applyTransform(vi([],r,e.getLocalTransform())),i.intersect(n)}}function PO(t){return"middle"===t||"center"===t}function DO(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function $O(t){var e=HO(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=WO(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=a;null!=d.color&&(p=s["i"]({color:d.color},a));var f=s["I"](s["d"](d),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:r,axisLabel:o,name:d.text,showName:l,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:h},!1);if(s["C"](c)){var g=f.name;f.name=c.replace("{value}",null!=g?g:"")}else s["w"](c)&&(f.name=c(f.name,f));var m=new xc(f,null,this.ecModel);return s["K"](m,xM.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:s["I"]({lineStyle:{color:"#bbb"}},yA.axisLine),axisLabel:bA(yA.axisLabel,!1),axisTick:bA(yA.axisTick,!1),splitLine:bA(yA.splitLine,!0),splitArea:bA(yA.splitArea,!0),indicator:[]},e}(Uu),xA=_A,wA=["axisLine","axisTickLabel","axisName"],SA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=s["H"](i,(function(t){var i=t.model.get("showName")?t.name:"",n=new RO(t.model,{axisName:i,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));s["k"](n,(function(t){s["k"](wA,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes();if(i.length){var n=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),l=o.getModel("areaStyle"),c=r.get("show"),u=o.get("show"),h=a.get("color"),d=l.get("color"),p=s["t"](h)?h:[h],f=s["t"](d)?d:[d],g=[],m=[];if("circle"===n)for(var v=i[0].getTicksCoords(),y=e.cx,b=e.cy,_=0;_3?1.4:r>1?1.2:1.1,l=n>0?s:1/s;BA(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(i){var c=Math.abs(n),u=(n>0?1:-1)*(c>3?.4:c>1?.15:.05);BA(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:u,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!LA(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;BA(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(E);function BA(t,e,i,n,r){t.pointerChecker&&t.pointerChecker(n,r.originX,r.originY)&&(tt(n.event),FA(t,e,i,n,r))}function FA(t,e,i,n,r){r.isAvailableBehavior=Object(s["c"])(NA,null,i,n),t.trigger(e,r)}function NA(t,e,i){var n=i[t];return!t||n&&(!Object(s["C"])(n)||e.event[n+"Key"])}var zA=RA;function VA(t,e,i){var n=t.target;n.x+=e,n.y+=i,n.dirty()}function qA(t,e,i,n){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/t.zoom;t.zoom=a,r.x-=(i-r.x)*(c-1),r.y-=(n-r.y)*(c-1),r.scaleX*=c,r.scaleY*=c,r.dirty()}var $A,HA={axisPointer:1,tooltip:1,brush:1};function GA(t,e,i){var n=e.getComponentByElement(t.topTarget),r=n&&n.coordinateSystem;return n&&n!==i&&!HA.hasOwnProperty(n.mainType)&&r&&r.model!==i}function WA(t){if(Object(s["C"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var i=t;9===i.nodeType&&(i=i.firstChild);while("svg"!==i.nodeName.toLowerCase()||1!==i.nodeType)i=i.nextSibling;return i}var UA={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},YA=Object(s["F"])(UA),XA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},KA=Object(s["F"])(XA),ZA=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var i=WA(t);this._defsUsePending=[];var n=new bn;this._root=n;var r=[],o=i.getAttribute("viewBox")||"",a=parseFloat(i.getAttribute("width")||e.width),s=parseFloat(i.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),nI(i,n,null,!0,!1);var l,c,u=i.firstChild;while(u)this._parseNode(u,n,r,null,!1,!1),u=u.nextSibling;if(sI(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=cI(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(c=mI(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=n;n=new bn,n.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return e.ignoreRootClip||null==a||null==s||n.setClipPath(new ts({shape:{x:0,y:0,width:a,height:s}})),{root:n,width:a,height:s,viewBoxRect:l,viewBoxTransform:c,named:r}},t.prototype._parseNode=function(t,e,i,n,r,o){var a,l=t.nodeName.toLowerCase(),c=n;if("defs"===l&&(r=!0),"text"===l&&(o=!0),"defs"===l||"switch"===l)a=e;else{if(!r){var u=$A[l];if(u&&Object(s["q"])($A,l)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:a};i.push(d),"g"===l&&(c=d)}else n&&i.push({name:n.name,namedFrom:n,svgNodeTagLower:l,el:a});e.add(a)}}var p=QA[l];if(p&&Object(s["q"])(QA,l)){var f=p.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=f)}}if(a&&a.isGroup){var m=t.firstChild;while(m)1===m.nodeType?this._parseNode(m,a,i,c,r,o):3===m.nodeType&&o&&this._parseText(m,a),m=m.nextSibling}},t.prototype._parseText=function(t,e){var i=new za({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});eI(e,i),nI(t,i,this._defsUsePending,!1,!1),rI(i,e);var n=i.style,r=n.fontSize;r&&r<9&&(n.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var a=i.getBoundingRect();return this._textX+=a.width,e.add(i),i},t.internalField=function(){$A={g:function(t,e){var i=new bn;return eI(e,i),nI(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new ts;return eI(e,i),nI(t,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(t,e){var i=new Kf;return eI(e,i),nI(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new Dg;return eI(e,i),nI(t,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(t,e){var i=new Jf;return eI(e,i),nI(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(t,e){var i,n=t.getAttribute("points");n&&(i=iI(n));var r=new kg({shape:{points:i||[]},silent:!0});return eI(e,r),nI(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var i,n=t.getAttribute("points");n&&(i=iI(n));var r=new Og({shape:{points:i||[]},silent:!0});return eI(e,r),nI(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var i=new Ga;return eI(e,i),nI(t,i,this._defsUsePending,!1,!1),i.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(n)+parseFloat(o);var a=new bn;return eI(e,a),nI(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=n&&(this._textY=parseFloat(n));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new bn;return eI(e,a),nI(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var i=t.getAttribute("d")||"",n=Hf(i);return eI(e,n),nI(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),t}(),QA={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),i=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Wg(e,i,n,r);return JA(t,o),tI(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),i=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),r=new Yg(e,i,n);return JA(t,r),tI(t,r),r}};function JA(t,e){var i=t.getAttribute("gradientUnits");"userSpaceOnUse"===i&&(e.global=!0)}function tI(t,e){var i=t.firstChild;while(i){if(1===i.nodeType&&"stop"===i.nodeName.toLocaleLowerCase()){var n=i.getAttribute("offset"),r=void 0;r=n&&n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var o={};fI(i,o,o);var a=o.stopColor||i.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}i=i.nextSibling}}function eI(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(s["i"])(e.__inheritedStyle,t.__inheritedStyle))}function iI(t){for(var e=cI(t),i=[],n=0;n0;o-=2){var a=n[o],s=n[o-1],l=cI(a);switch(r=r||fi(),s){case"translate":yi(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_i(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":bi(r,r,-parseFloat(l[0])*hI);break;case"skewX":var c=Math.tan(parseFloat(l[0])*hI);vi(r,[1,0,c,1,0,0],r);break;case"skewY":var u=Math.tan(parseFloat(l[0])*hI);vi(r,[1,u,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}e.setLocalTransform(r)}}var pI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function fI(t,e,i){var n=t.getAttribute("style");if(n){var r;pI.lastIndex=0;while(null!=(r=pI.exec(n))){var o=r[1],a=Object(s["q"])(UA,o)?UA[o]:null;a&&(e[a]=r[2]);var l=Object(s["q"])(XA,o)?XA[o]:null;l&&(i[l]=r[2])}}}function gI(t,e,i){for(var n=0;ni&&(t=r,i=a)}if(t)return CI(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var i=[1/0,1/0],n=[-1/0,-1/0],r=this.geometries;return Object(s["k"])(r,(function(e){"polygon"===e.type?SI(e.exterior,i,n,t):Object(s["k"])(e.points,(function(e){SI(e,i,n,t)}))})),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),e=new Gi(i[0],i[1],n[0]-i[0],n[1]-i[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;n>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,n.push([s/i,l/i])}return n}function BI(t,e){return t=LI(t),s["H"](s["n"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var i=t.properties,n=t.geometry,r=[];switch(n.type){case"Polygon":var o=n.coordinates;r.push(new MI(o[0],o.slice(1)));break;case"MultiPolygon":s["k"](n.coordinates,(function(t){t[0]&&r.push(new MI(t[0],t.slice(1)))}));break;case"LineString":r.push(new TI([n.coordinates]));break;case"MultiLineString":r.push(new TI(n.coordinates))}var a=new OI(i[e||"name"],r,i.cp);return a.properties=i,a}))}for(var FI=[126,25],NI="南海诸岛",zI=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],VI=0;VI0,g={api:i,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,i),this._updateMapSelectHandler(t,l,i,n)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=s["f"](),i=s["f"](),n=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,l=t.geo.projection,c=l&&l.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){for(var e=[],i=!c&&l&&l.project,n=0;n=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Xl(e,Kl(n),{labelFetcher:d,labelDataIndex:h,defaultText:i},p);var f=e.getTextContent();if(f&&(rP(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function uP(t,e,i,n,r,o){t.data?t.data.setItemGraphicEl(o,e):bs(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:i,region:n&&n.option||{}}}function hP(t,e,i,n,r){t.data||Em({el:e,componentModel:r,itemName:i,itemTooltipOption:n.get("tooltip")})}function dP(t,e,i,n,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=n.getModel("emphasis"),a=o.get("focus");return Sl(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Il(e,r,i),a}function pP(t,e,i){var n,r=[];function o(){n=[]}function a(){n.length&&(r.push(n),n=[])}var l=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&n.push([t,e])},sphere:function(){}});return!i&&l.polygonStart(),s["k"](t,(function(t){l.lineStart();for(var e=0;e-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(xf),yP=vP;function bP(t,e){var i={};return s["k"](t,(function(t){t.each(t.mapDimension("value"),(function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(n,r){for(var o,a="ec-"+t[0].getName(r),s=0,l=1/0,c=-1/0,u=i[a].length,h=0;h1?(p.width=d,p.height=d/b):(p.height=d,p.width=d*b),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var x=t.getBoxLayoutParams();x.aspect=b,p=Bu(x,{width:v,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function DP(t,e){s["k"](e.get("geoCoord"),(function(e,i){t.addGeoCoord(i,e)}))}var EP=function(){function t(){this.dimensions=TP}return t.prototype.create=function(t,e){var i=[];function n(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new IP(o+r,o,s["m"]({nameMap:t.get("nameMap")},n(t)));a.zoomLimit=t.get("scaleLimit"),i.push(a),t.coordinateSystem=a,a.model=t,a.resize=PP,a.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=i[n]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),s["k"](r,(function(t,r){var o=s["H"](t,(function(t){return t.get("nameMap")})),a=new IP(r,r,s["m"]({nameMap:s["J"](o)},n(t[0])));a.zoomLimit=s["O"].apply(null,s["H"](t,(function(t){return t.get("scaleLimit")}))),i.push(a),a.resize=PP,a.resize(t[0],e),s["k"](t,(function(t){t.coordinateSystem=a,DP(a,t)}))})),i},t.prototype.getFilledRegions=function(t,e,i,n){for(var r=(t||[]).slice(),o=s["f"](),a=0;a=0;a--){var s=n[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function WP(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,r=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){ZP(t);var o=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=QP(t,r,t.parentNode.hierNode.defaultAncestor||n[0],e)}function UP(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function YP(t){return arguments.length?t:nD}function XP(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function KP(t,e){return Bu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ZP(t){var e=t.children,i=e.length,n=0,r=0;while(--i>=0){var o=e[i];o.hierNode.prelim+=n,o.hierNode.modifier+=n,r+=o.hierNode.change,n+=o.hierNode.shift+r}}function QP(t,e,i,n){if(e){var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,h=s.hierNode.modifier;while(s=JP(s),o=tD(o),s&&o){r=JP(r),a=tD(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-c+n(s,o);d>0&&(iD(eD(s,t,i),t,d),c+=d,l+=d),h+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=a.hierNode.modifier}s&&!JP(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!tD(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,i=t)}return i}function JP(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function tD(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function eD(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function iD(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function nD(t,e){return t.parentNode===e.parentNode?1:2}var rD=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),oD=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rD},e.prototype.buildPath=function(t,e){var i=e.childPoints,n=i.length,r=e.parentPoint,o=i[0],a=i[n-1];if(1===n)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Pn(e.forkPosition,1),h=[];h[l]=r[l],h[c]=r[c]+(a[c]-r[c])*u,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;db.x,w||(x-=Math.PI));var C=w?"left":"right",k=l.getModel("label"),M=k.get("rotate"),T=M*(Math.PI/180),O=v.getTextContent();O&&(v.setTextConfig({position:k.get("position")||C,rotation:null==M?-x:T,origin:"center"}),O.setStyle("verticalAlign","middle"))}var A=l.get(["emphasis","focus"]),I="relative"===A?s["e"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;I&&(bs(i).focus=I),cD(r,a,h,i,g,f,m,n),i.__edge&&(i.onHoverStateChange=function(e){if("blur"!==e){var n=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);n&&n.hoverState===Ms||Xs(i.__edge,e)}})}function cD(t,e,i,n,r,o,a,l){var c=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),d=t.getOrient(),p=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),g=c.getModel("lineStyle").getLineStyle(),m=n.__edge;if("curve"===u)e.parentNode&&e.parentNode!==i&&(m||(m=n.__edge=new Bg({shape:pD(h,d,p,r,r)})),Fl(m,{shape:pD(h,d,p,o,a)},t));else if("polyline"===u)if("orthogonal"===h){if(e!==i&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,y=[],b=0;be&&(e=n.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,i=e.data.getItemModel(this.dataIndex);return i.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var n=i.getData().tree.root,r=t.targetNode;if(s["C"](r)&&(r=n.getNodeById(r)),r&&n.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=n.getNodeById(o)))return{node:r}}}function PD(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function DD(t,e){var i=PD(t);return s["r"](i,e)>=0}function ED(t,e){var i=[];while(t){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}var LD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return o(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},i=t.leaves||{},n=new xc(i,this,this.ecModel),r=AD.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var i=r.getNodeByDataIndex(e);return i&&i.children.length&&i.isExpand||(t.parentModel=n),t}))}var a=0;r.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,i){var n=this.getData().tree,r=n.root.children[0],o=n.getNodeByDataIndex(t),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return Hp("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var i=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return i.treeAncestors=ED(n,this),i.collapsed=!n.isExpand,i},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(xf),jD=LD;function RD(t,e,i){var n,r=[t],o=[];while(n=r.pop())if(o.push(n),n.isExpand){var a=n.children;if(a.length)for(var s=0;s=0;o--)n.push(r[o])}}function FD(t,e){t.eachSeriesByType("tree",(function(t){ND(t,e)}))}function ND(t,e){var i=KP(t,e);t.layoutInfo=i;var n=t.get("layout"),r=0,o=0,a=null;"radial"===n?(r=2*Math.PI,o=Math.min(i.height,i.width)/2,a=YP((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=i.width,o=i.height,a=YP());var s=t.getData().tree.root,l=s.children[0];if(l){GP(s),RD(l,WP,a),s.hierNode.modifier=-l.hierNode.prelim,BD(l,UP);var c=l,u=l,h=l;BD(l,(function(t){var e=t.getLayout().x;eu.getLayout().x&&(u=t),t.depth>h.depth&&(h=t)}));var d=c===u?1:a(c,u)/2,p=d-c.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===n)f=r/(u.getLayout().x+d+p),g=o/(h.depth-1||1),BD(l,(function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=XP(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(u.getLayout().x+d+p),f=r/(h.depth-1||1),BD(l,(function(t){v=(t.getLayout().x+p)*g,m="LR"===y?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(u.getLayout().x+d+p),g=o/(h.depth-1||1),BD(l,(function(t){m=(t.getLayout().x+p)*f,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)})))}}}function zD(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(t){var i=t.getModel(),n=i.getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(s["m"])(r,n)}))}))}function VD(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=t.dataIndex,n=e.getData().tree,r=n.getNodeByDataIndex(i);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,i){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,r=NP(n,t,void 0,i);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}function qD(t){t.registerChartView(fD),t.registerSeriesModel(jD),t.registerLayout(FD),t.registerVisual(zD),VD(t)}var $D=["treemapZoomToNode","treemapRender","treemapMove"];function HD(t){for(var e=0;e<$D.length;e++)t.registerAction({type:$D[e],update:"updateView"},s["L"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function i(e,i){var n=["treemapZoomToNode","treemapRootToNode"],r=ID(t,n,e);if(r){var o=e.getViewRoot();o&&(t.direction=DD(o,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},i)}))}function GD(t){var e=t.getData(),i=e.tree,n={};i.eachNode((function(e){var i=e;while(i&&i.depth>1)i=i.parentNode;var r=xh(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}var WD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.preventUsingHoverLayer=!0,i}return o(e,t),e.prototype.getInitialData=function(t,e){var i={name:t.name,children:t.data};UD(i);var n=t.levels||[],r=this.designatedVisualItemStyle={},o=new xc({itemStyle:r},this,e);n=t.levels=YD(n,e);var a=s["H"](n||[],(function(t){return new xc(t,o,e)}),this),l=AD.createTree(i,this,c);function c(t){t.wrapMethod("getItemModel",(function(t,e){var i=l.getNodeByDataIndex(e),n=i?a[i.depth]:null;return t.parentModel=n||o,t}))}return l.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,i){var n=this.getData(),r=this.getRawValue(t),o=n.getName(t);return Hp("nameValue",{name:o,value:r})},e.prototype.getDataParams=function(e){var i=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return i.treeAncestors=ED(n,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},s["m"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=s["f"](),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){GD(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(xf);function UD(t){var e=0;s["k"](t.children,(function(t){UD(t);var i=t.value;s["t"](i)&&(i=i[0]),e+=i}));var i=t.value;s["t"](i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),s["t"](t.value)?t.value[0]=i:t.value=i}function YD(t,e){var i=nr(e.get("color")),n=nr(e.get(["aria","decal","decals"]));if(i){var r,o;t=t||[],s["k"](t,(function(t){var e=new xc(t),i=e.get("color"),n=e.get("decal");(e.get(["itemStyle","color"])||i&&"none"!==i)&&(r=!0),(e.get(["itemStyle","decal"])||n&&"none"!==n)&&(o=!0)}));var a=t[0]||(t[0]={});return r||(a.color=i.slice()),!o&&n&&(a.decal=n.slice()),t}}var XD=WD,KD=8,ZD=8,QD=5,JD=function(){function t(t){this.group=new bn,t.add(this.group)}return t.prototype.render=function(t,e,i,n){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&i){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,l,s),this._renderContent(t,l,a,s,n),Fu(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,i){for(var n=t;n;n=n.parentNode){var r=vr(n.getModel().get("name"),""),o=i.getTextRect(r),a=Math.max(o.width+2*KD,e.emptyItemWidth);e.totalWidth+=a+ZD,e.renderList.push({node:n,text:r,width:a})}},t.prototype._renderContent=function(t,e,i,n,r){for(var o=0,a=e.emptyItemWidth,l=t.get(["breadcrumb","height"]),c=Ru(e.pos,e.box),u=e.totalWidth,h=e.renderList,d=h.length-1;d>=0;d--){var p=h[d],f=p.node,g=p.width,m=p.text;u>c.width&&(u-=g-a,g=a,m=null);var v=new kg({shape:{points:tE(o,0,g,l,d===h.length-1,0===d)},style:Object(s["i"])(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new ys({style:{text:m,fill:n.getTextColor(),font:n.getFont()}}),textConfig:{position:"inside"},z2:1e4*Is,onclick:Object(s["h"])(r,f)});v.disableLabelAnimation=!0,this.group.add(v),eE(v,t,f),o+=g+ZD}},t.prototype.remove=function(){this.group.removeAll()},t}();function tE(t,e,i,n,r,o){var a=[[r?t:t-QD,e],[t+i,e],[t+i,e+n],[r?t:t-QD,e+n]];return!o&&a.splice(2,0,[t+i+QD,e+n/2]),!r&&a.push([t,e+n/2]),a}function eE(t,e,i){bs(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&ED(i,e)}}var iE=JD,nE=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,i,n,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:i,delay:n,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,i=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,r=this._storage.length;nsE||Math.abs(t.dy)>sE)){var e=this.seriesModel.getData().tree.root;if(!e)return;var i=e.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var e=t.originX,i=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var r=n.getLayout();if(!r)return;var o=new Gi(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,i-=a.y;var s=fi();yi(s,s,[-e,-i]),_i(s,s,[t.scale,t.scale]),yi(s,s,[e,i]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var i=e.seriesModel.get("nodeClick",!0);if(i){var n=e.findTarget(t.offsetX,t.offsetY);if(n){var r=n.node;if(r.getLayout().isLeafRoot)e._rootToNode(n);else if("zoomToNode"===i)e._zoomToNode(n);else if("link"===i){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Iu(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,i){var n=this;i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new iE(this.group))).render(t,e,i.node,(function(e){"animating"!==n._state&&(DD(t.getViewRoot(),e)?n._rootToNode({node:e}):n._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=vE(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},(function(n){var r=this._storage.background[n.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;i={node:n,offsetX:o[0],offsetY:o[1]}}}),this),i},e.type="treemap",e}(Hm);function vE(){return{nodeGroup:[],background:[],content:[]}}function yE(t,e,i,n,r,o,a,l,c,u){if(a){var h=a.getLayout(),d=t.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),h&&h.isInView){var f=h.width,g=h.height,m=h.borderWidth,v=h.invisible,y=a.getRawIndex(),b=l&&l.getRawIndex(),_=a.viewChildren,x=h.upperHeight,w=_&&_.length,S=p.getModel("itemStyle"),C=p.getModel(["emphasis","itemStyle"]),k=p.getModel(["blur","itemStyle"]),M=p.getModel(["select","itemStyle"]),T=S.get("borderRadius")||0,O=V("nodeGroup",oE);if(O){if(c.add(O),O.x=h.x||0,O.y=h.y||0,O.markRedraw(),gE(O).nodeWidth=f,gE(O).nodeHeight=g,h.isAboveViewRoot)return O;var A=V("background",aE,u,hE);A&&R(O,A,w&&h.upperLabelHeight);var I=p.getModel("emphasis"),P=I.get("focus"),D=I.get("blurScope"),E=I.get("disabled"),L="ancestor"===P?a.getAncestorsIndices():"descendant"===P?a.getDescendantIndices():P;if(w)Al(O)&&Ol(O,!1),A&&(Ol(A,!E),d.setItemGraphicEl(a.dataIndex,A),Cl(A,L,D));else{var j=V("content",aE,u,dE);j&&B(O,j),A.disableMorphing=!0,A&&Al(A)&&Ol(A,!1),Ol(O,!E),d.setItemGraphicEl(a.dataIndex,O),Cl(O,L,D)}return O}}}function R(e,i,n){var r=bs(i);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:f,height:g,r:T}),v)F(i);else{i.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=fE(S);l.fill=s;var c=pE(C);c.fill=C.get("borderColor");var u=pE(k);u.fill=k.get("borderColor");var h=pE(M);if(h.fill=M.get("borderColor"),n){var d=f-2*m;N(i,s,o.opacity,{x:m,y:0,width:d,height:x})}else i.removeTextContent();i.setStyle(l),i.ensureState("emphasis").style=c,i.ensureState("blur").style=u,i.ensureState("select").style=h,el(i)}e.add(i)}function B(e,i){var n=bs(i);n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex;var r=Math.max(f-2*m,0),o=Math.max(g-2*m,0);if(i.culling=!0,i.setShape({x:m,y:m,width:r,height:o,r:T}),v)F(i);else{i.invisible=!1;var s=a.getVisual("style"),l=s.fill,c=fE(S);c.fill=l,c.decal=s.decal;var u=pE(C),h=pE(k),d=pE(M);N(i,l,s.opacity,null),i.setStyle(c),i.ensureState("emphasis").style=u,i.ensureState("blur").style=h,i.ensureState("select").style=d,el(i)}e.add(i)}function F(t){!t.invisible&&o.push(t)}function N(e,i,n,r){var o=p.getModel(r?cE:lE),l=vr(p.get("name"),null),c=o.getShallow("show");Xl(e,Kl(p,r?cE:lE),{defaultText:c?l:null,inheritColor:i,defaultOpacity:n,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var d=u.style,f=Object(s["M"])(d.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-f[1]-f[3],0),i=Math.max((r?r.height:e.shape.height)-f[0]-f[2],0);d.width===t&&d.height===i||u.setStyle({width:t,height:i})},d.truncateMinChar=2,d.lineOverflow="truncate",z(d,r,h);var g=u.getState("emphasis");z(g?g.style:null,r,h)}}function z(e,i,n){var r=e?e.text:null;if(!i&&n.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,n,o,a){var s=null!=b&&i[t][b],l=r[t];return s?(i[t][b]=null,q(l,s)):v||(s=new n,s instanceof Io&&(s.z2=bE(o,a)),$(l,s)),e[t][y]=s}function q(t,e){var i=t[y]={};e instanceof oE?(i.oldX=e.x,i.oldY=e.y):i.oldShape=Object(s["m"])({},e.shape)}function $(t,e){var i=t[y]={},o=a.parentNode,s=e instanceof bn;if(o&&(!n||"drillDown"===n.direction)){var l=0,c=0,u=r.background[o.getRawIndex()];!n&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(i.oldX=0,i.oldY=c):i.oldShape={x:l,y:c,width:0,height:0}}i.fadein=!s}}function bE(t,e){return t*uE+e}var _E=mE,xE=s["k"],wE=s["A"],SE=-1,CE=function(){function t(e){var i=e.mappingMethod,n=e.type,r=this.option=s["d"](e);this.type=n,this.mappingMethod=i,this._normalizeData=RE[i];var o=t.visualHandlers[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[i],"piecewise"===i?(TE(r),kE(r)):"category"===i?r.categories?ME(r):TE(r,!0):(s["b"]("linear"!==i||r.dataExtent),TE(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return s["c"](this._normalizeData,this)},t.listVisualTypes=function(){return s["F"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,i){s["A"](t)?s["k"](t,e,i):e.call(i,t)},t.mapVisual=function(e,i,n){var r,o=s["t"](e)?[]:s["A"](e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=i.call(n,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var i,n={};return e&&xE(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(n[r]=e[r],i=!0)})),i?n:null},t.prepareVisualTypes=function(t){if(s["t"](t))t=t.slice();else{if(!wE(t))return[];var e=[];xE(t,(function(t,i){e.push(i)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,i){for(var n,r=1/0,o=0,a=e.length;o=0;o--)null==n[o]&&(delete i[e[o]],e.pop())}function TE(t,e){var i=t.visual,n=[];s["A"](i)?xE(i,(function(t){n.push(t)})):null!=i&&n.push(i);var r={color:1,symbol:1};e||1!==n.length||r.hasOwnProperty(t.type)||(n[1]=n[0]),jE(t,n)}function OE(t){return{applyVisual:function(e,i,n){var r=this.mapValueToVisual(e);n("color",t(i("color"),r))},_normalizedToVisual:EE([0,1])}}function AE(t){var e=this.option.visual;return e[Math.round(In(t,[0,1],[0,e.length-1],!0))]||{}}function IE(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function PE(t){var e=this.option.visual;return e[this.option.loop&&t!==SE?t%e.length:t]}function DE(){return this.option.visual[0]}function EE(t){return{linear:function(e){return In(e,t,this.option.visual,!0)},category:PE,piecewise:function(e,i){var n=LE.call(this,i);return null==n&&(n=In(e,t,this.option.visual,!0)),n},fixed:DE}}function LE(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=CE.findPieceIndex(t,i),r=i[n];if(r&&r.visual)return r.visual[this.type]}}function jE(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=s["H"](e,(function(t){var e=pe["g"](t);return e||[0,0,0,1]}))),e}var RE={linear:function(t){return In(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=CE.findPieceIndex(t,e,!0);if(null!=i)return In(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?SE:e},fixed:s["L"]};function BE(t,e,i){return t?e<=i:e=i.length||t===i[t.depth]){var o=XE(r,u,t,e,g,n);qE(t,o,i,n)}}))}else l=HE(u),h.fill=l}}function $E(t,e,i){var n=Object(s["m"])({},e),r=i.designatedVisualItemStyle;return Object(s["k"])(["color","colorAlpha","colorSaturation"],(function(i){r[i]=e[i];var o=t.get(i);r[i]=null,null!=o&&(n[i]=o)})),n}function HE(t){var e=WE(t,"color");if(e){var i=WE(t,"colorAlpha"),n=WE(t,"colorSaturation");return n&&(e=Object(pe["f"])(e,null,null,n)),i&&(e=Object(pe["e"])(e,i)),e}}function GE(t,e){return null!=e?Object(pe["f"])(e,null,null,t):null}function WE(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function UE(t,e,i,n,r,o){if(o&&o.length){var a=YE(e,"color")||null!=r.color&&"none"!==r.color&&(YE(e,"colorAlpha")||YE(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),c=i.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var u=e.get("colorMappingBy"),h={type:a.name,dataExtent:c,visual:a.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new FE(h);return zE(d).drColorMappingBy=u,d}}}function YE(t,e){var i=t.get(e);return Object(s["t"])(i)&&i.length?{name:e,range:i}:null}function XE(t,e,i,n,r,o){var a=Object(s["m"])({},e);if(r){var l=r.type,c="color"===l&&zE(r).drColorMappingBy,u="index"===c?n:"id"===c?o.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));a[l]=r.mapValueToVisual(u)}return a}var KE=Math.max,ZE=Math.min,QE=s["O"],JE=s["k"],tL=["itemStyle","borderWidth"],eL=["itemStyle","gapWidth"],iL=["upperLabel","show"],nL=["upperLabel","height"],rL={seriesType:"treemap",reset:function(t,e,i,n){var r=i.getWidth(),o=i.getHeight(),a=t.option,l=Bu(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),c=a.size||[],u=Pn(QE(l.width,c[0]),r),h=Pn(QE(l.height,c[1]),o),d=n&&n.type,p=["treemapZoomToNode","treemapRootToNode"],f=ID(n,p,t),g="treemapRender"===d||"treemapMove"===d?n.rootRect:null,m=t.getViewRoot(),v=PD(m);if("treemapMove"!==d){var y="treemapZoomToNode"===d?dL(t,f,m,u,h):g?[g.width,g.height]:[u,h],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var _={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};m.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(x),oL(m,_,!1,0),x=m.getLayout(),JE(v,(function(t,e){var i=(v[e+1]||m).getValue();t.setLayout(s["m"]({dataExtent:[i,i],borderWidth:0,upperHeight:0},x))}))}var w=t.getData().tree.root;w.setLayout(pL(l,g,f),!0),t.setLayoutInfo(l),fL(w,new Gi(-l.x,-l.y,r,o),v,m,0)}};function oL(t,e,i,n){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(tL),c=s.get(eL)/2,u=gL(s),h=Math.max(l,u),d=l-c,p=h-c;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:u},!0),r=KE(r-2*d,0),o=KE(o-d-p,0);var f=r*o,g=aL(t,s,f,e,i,n);if(g.length){var m={x:d,y:p,width:r,height:o},v=ZE(r,o),y=1/0,b=[];b.area=0;for(var _=0,x=g.length;_=0;l--){var c=r["asc"===n?a-l-1:l].getValue();c/i*ea[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:n,dataExtent:a}}function uL(t,e,i){for(var n=0,r=1/0,o=0,a=void 0,s=t.length;on&&(n=a));var l=t.area*t.area,c=e*e*i;return l?KE(c*n/l,l/(c*r)):1/0}function hL(t,e,i,n,r){var o=e===i.width?0:1,a=1-o,s=["x","y"],l=["width","height"],c=i[s[o]],u=e?t.area/e:0;(r||u>i[l[a]])&&(u=i[l[a]]);for(var h=0,d=t.length;hNn&&(c=Nn),a=o}cn&&(n=e);var o=n%2?n+2:n+3;r=[];for(var a=0;a0&&(b[0]=-b[0],b[1]=-b[1]);var w=y[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var S=-Math.atan2(y[1],y[0]);c[0].8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*f+l[0],n.y=-u[1]*g+l[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=f*w+l[0],n.y=l[1]+C,h=y[0]<0?"right":"left",n.originX=-f*w,n.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=x[0],n.y=x[1]+C,h="center",n.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*w+c[0],n.y=c[1]+C,h=y[0]>=0?"right":"left",n.originX=f*w,n.originY=-C;break}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||h})}}}function k(t,e){var i=t.__specifiedRotation;if(null==i){var n=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))}else t.attr("rotation",i)}},e}(bn),oj=rj,aj=function(){function t(t){this.group=new bn,this._LineCtor=t||oj}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var i=this,n=i.group,r=i._lineData;i._lineData=t,r||n.removeAll();var o=lj(t);t.diff(r).add((function(i){e._doAdd(t,i,o)})).update((function(i,n){e._doUpdate(r,t,n,i,o)})).remove((function(t){n.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,i){e.updateLayout(t,i)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=lj(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function i(t){t.isGroup||sj(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n=t.start;n0}function lj(t){var e=t.hostModel,i=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:i.get("disabled"),blurScope:i.get("blurScope"),focus:i.get("focus"),labelStatesModels:Kl(e)}}function cj(t){return isNaN(t[0])||isNaN(t[1])}function uj(t){return t&&!cj(t[0])&&!cj(t[1])}var hj=aj,dj=[],pj=[],fj=[],gj=ie,mj=C,vj=Math.abs;function yj(t,e,i){for(var n,r=t[0],o=t[1],a=t[2],s=1/0,l=i*i,c=.1,u=.1;u<=.9;u+=.1){dj[0]=gj(r[0],o[0],a[0],u),dj[1]=gj(r[1],o[1],a[1],u);var h=vj(mj(dj,e)-l);h=0?n+=c:n-=c:f>=0?n-=c:n+=c}return n}function bj(t,e){var i=[],n=ae,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),c=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");l.__original||(l.__original=[d(l[0]),d(l[1])],l[2]&&l.__original.push(d(l[2])));var p=l.__original;if(null!=l[2]){if(h(r[0],p[0]),h(r[1],p[2]),h(r[2],p[1]),c&&"none"!==c){var f=RL(t.node1),v=yj(r,p[0],f*e);n(r[0][0],r[1][0],r[2][0],v,i),r[0][0]=i[3],r[1][0]=i[4],n(r[0][1],r[1][1],r[2][1],v,i),r[0][1]=i[3],r[1][1]=i[4]}if(u&&"none"!==u){f=RL(t.node2),v=yj(r,p[1],f*e);n(r[0][0],r[1][0],r[2][0],v,i),r[1][0]=i[1],r[2][0]=i[2],n(r[0][1],r[1][1],r[2][1],v,i),r[1][1]=i[1],r[2][1]=i[2]}h(l[0],r[0]),h(l[1],r[2]),h(l[2],r[1])}else{if(h(o[0],p[0]),h(o[1],p[1]),m(a,o[1],o[0]),_(a,a),c&&"none"!==c){f=RL(t.node1);g(o[0],o[0],a,f*e)}if(u&&"none"!==u){f=RL(t.node2);g(o[1],o[1],a,-f*e)}h(l[0],o[0]),h(l[1],o[1])}}))}function _j(t){return"view"===t.type}var xj=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(t,e){var i=new CS,n=new hj,r=this.group;this._controller=new zA(e.getZr()),this._controllerHost={target:r},r.add(i.group),r.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,e,i){var n=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,l=this.group;if(_j(r)){var c={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?l.attr(c):Fl(l,c,t)}bj(t.getGraph(),jL(t));var u=t.getData();o.updateData(u);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,p),u.graph.eachNode((function(t){var e=t.dataIndex,i=t.getGraphicEl(),r=t.getModel();if(i){i.off("drag").off("dragend");var o=r.get("draggable");o&&i.on("drag",(function(){d&&(d.warmUp(),!n._layouting&&n._startForceLayoutIteration(d,p),d.setFixed(e),u.setItemLayout(e,[i.x,i.y]))})).on("dragend",(function(){d&&d.setUnfixed(e)})),i.setDraggable(o&&!!d,!!r.get("cursor"));var a=r.get(["emphasis","focus"]);"adjacency"===a&&(bs(i).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),i=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===i&&(bs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),m=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var i=u.getItemModel(e),n=i.get(["label","rotate"])||0,r=t.getSymbolPath();if(f){var o=u.getItemLayout(e),a=Math.atan2(o[1]-m,o[0]-g);a<0&&(a=2*Math.PI+a);var l=o[0]=0&&t.call(e,i[r],r)},t.prototype.eachEdge=function(t,e){for(var i=this.edges,n=i.length,r=0;r=0&&i[r].node1.dataIndex>=0&&i[r].node2.dataIndex>=0&&t.call(e,i[r],r)},t.prototype.breadthFirstTraverse=function(t,e,i,n){if(e instanceof kj||(e=this._nodesMap[Sj(e)]),e){for(var r="out"===i?"outEdges":"in"===i?"inEdges":"edges",o=0;o=0&&i.node2.dataIndex>=0}));for(r=0,o=n.length;r=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i){return this[t][e].getItemVisual(this.dataIndex,i)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}s["K"](kj,Tj("hostGraph","data")),s["K"](Mj,Tj("hostGraph","edgeData"));var Oj=Cj;function Aj(t,e,i,n,r){for(var o=new Oj(n),a=0;a "+p)),u++)}var f,g=i.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)f=dS(t,i);else{var m=Hh.get(g),v=m&&m.dimensions||[];s["r"](v,"value")<0&&v.concat(["value"]);var y=Xw(t,{coordDimensions:v,encodeDefine:i.getEncode()}).dimensions;f=new Yw(y,i),f.initData(t)}var b=new Yw(["value"],i);return b.initData(c,l),r&&r(f,b),kD({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Ij=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var i=this;function n(){return i._categoriesData}this.legendVisualProvider=new oM(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),rr(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],r=this;if(n&&i){AL(this);var o=Aj(n,i,this,!0,a);return s["k"](o.edges,(function(t){IL(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function a(t,e){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,i=t.getShallow("category"),n=e[i];return n&&(n.parentModel=t.parentModel,t.parentModel=n),t}));var i=xc.prototype.getModel;function n(t,e){var n=i.call(this,t,e);return n.resolveParentPath=o,n}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=n,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,i){if("edge"===i){var n=this.getData(),r=this.getDataParams(t,i),o=n.graph.getEdgeByIndex(t),a=n.getName(o.node1.dataIndex),s=n.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Hp("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var c=sf({series:this,dataIndex:t,multipleSeries:e});return c},e.prototype._updateCategoriesData=function(){var t=s["H"](this.option.categories||[],(function(t){return null!=t.value?t:s["m"]({value:0},t)})),e=new Yw(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(xf),Pj=Ij,Dj={type:"graphRoam",event:"graphRoam",update:"none"};function Ej(t){t.registerChartView(wj),t.registerSeriesModel(Pj),t.registerProcessor(vL),t.registerVisual(yL),t.registerVisual(_L),t.registerLayout(LL),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,VL),t.registerLayout(HL),t.registerCoordinateSystem("graphView",{dimensions:kP.dimensions,create:WL}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},s["L"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},s["L"]),t.registerAction(Dj,(function(t,e,i){e.eachComponent({mainType:"series",query:t},(function(e){var n=e.coordinateSystem,r=NP(n,t,void 0,i);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}var Lj=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),jj=function(t){function e(e){var i=t.call(this,e)||this;return i.type="pointer",i}return o(e,t),e.prototype.getDefaultShape=function(){return new Lj},e.prototype.buildPath=function(t,e){var i=Math.cos,n=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-i(a)*o*(o>=r/3?1:2),l=e.y-n(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(a)*o,e.y+n(a)*o),t.lineTo(e.x+i(e.angle)*r,e.y+n(e.angle)*r),t.lineTo(e.x-i(a)*o,e.y-n(a)*o),t.lineTo(s,l)},e}(Ba),Rj=jj;function Bj(t,e){var i=t.get("center"),n=e.getWidth(),r=e.getHeight(),o=Math.min(n,r),a=Pn(i[0],e.getWidth()),s=Pn(i[1],e.getHeight()),l=Pn(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function Fj(t,e){var i=null==t?"":t+"";return e&&(Object(s["C"])(e)?i=e.replace("{value}",i):Object(s["w"])(e)&&(i=e(t))),i}var Nj=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),r=Bj(t,i);this._renderMain(t,e,i,n,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,i,n,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),u=c.get("roundCap"),h=u?jC:vg,d=c.get("show"),p=c.getModel("lineStyle"),f=p.get("width"),g=[s,l];ca(g,!a),s=g[0],l=g[1];for(var m=l-s,v=s,y=0;d&&y=t&&(0===e?0:n[e-1][0]).8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:L}),silent:!0}))}if(y.get("show")&&I!==_){P=y.get("distance");P=P?P+l:l;for(var j=0;j<=x;j++){c=Math.cos(C),u=Math.sin(C);var R=new Dg({shape:{x1:c*(f-P)+d,y1:u*(f-P)+p,x2:c*(f-S-P)+d,y2:u*(f-S-P)+p},silent:!0,style:O});"auto"===O.stroke&&R.setStyle({stroke:n((I+j/x)/_)}),h.add(R),C+=M}C-=M}else C+=k}},e.prototype._renderPointer=function(t,e,i,n,r,o,a,l,c){var u=this.group,h=this._data,d=this._progressEls,p=[],f=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),v=t.getData(),y=v.mapDimension("value"),b=+t.get("min"),_=+t.get("max"),x=[b,_],w=[o,a];function S(e,i){var n,o=v.getItemModel(e),a=o.getModel("pointer"),s=Pn(a.get("width"),r.r),l=Pn(a.get("length"),r.r),c=t.get(["pointer","icon"]),u=a.get("offsetCenter"),h=Pn(u[0],r.r),d=Pn(u[1],r.r),p=a.get("keepAspect");return n=c?ny(c,h-s/2,d-l,s,l,null,p):new Rj({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),n.rotation=-(i+Math.PI/2),n.x=r.cx,n.y=r.cy,n}function C(t,e){var i=g.get("roundCap"),n=i?jC:vg,a=g.get("overlap"),s=a?g.get("width"):c/v.count(),u=a?r.r-s:r.r-(t+1)*s,h=a?r.r:r.r-t*s,d=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:l,r0:u,r:h}});return a&&(d.z2=_-v.get(y,t)%_),d}(m||f)&&(v.diff(h).add((function(e){var i=v.get(y,e);if(f){var n=S(e,o);Nl(n,{rotation:-((isNaN(+i)?w[0]:In(i,x,w,!0))+Math.PI/2)},t),u.add(n),v.setItemGraphicEl(e,n)}if(m){var r=C(e,o),a=g.get("clip");Nl(r,{shape:{endAngle:In(i,x,w,a)}},t),u.add(r),_s(t.seriesIndex,v.dataType,e,r),p[e]=r}})).update((function(e,i){var n=v.get(y,e);if(f){var r=h.getItemGraphicEl(i),a=r?r.rotation:o,s=S(e,a);s.rotation=a,Fl(s,{rotation:-((isNaN(+n)?w[0]:In(n,x,w,!0))+Math.PI/2)},t),u.add(s),v.setItemGraphicEl(e,s)}if(m){var l=d[i],c=l?l.shape.endAngle:o,b=C(e,c),_=g.get("clip");Fl(b,{shape:{endAngle:In(n,x,w,_)}},t),u.add(b),_s(t.seriesIndex,v.dataType,e,b),p[e]=b}})).execute(),v.each((function(t){var e=v.getItemModel(t),i=e.getModel("emphasis"),r=i.get("focus"),o=i.get("blurScope"),a=i.get("disabled");if(f){var l=v.getItemGraphicEl(t),c=v.getItemVisual(t,"style"),u=c.fill;if(l instanceof Ga){var h=l.style;l.useStyle(Object(s["m"])({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},c))}else l.useStyle(c),"pointer"!==l.type&&l.setColor(u);l.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",n(In(v.get(y,t),x,[0,1],!0))),l.z2EmphasisLift=0,Tl(l,e),Sl(l,r,o,a)}if(m){var d=p[t];d.useStyle(v.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Tl(d,e),Sl(d,r,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var i=t.getModel("anchor"),n=i.get("show");if(n){var r=i.get("size"),o=i.get("icon"),a=i.get("offsetCenter"),s=i.get("keepAspect"),l=ny(o,e.cx-r/2+Pn(a[0],e.r),e.cy-r/2+Pn(a[1],e.r),r,r,null,s);l.z2=i.get("showAbove")?1:0,l.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,i,n,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),c=+t.get("max"),u=new bn,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new ys({silent:!0}),d[t]=new ys({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var i=a.getItemModel(e),o=a.get(s,e),g=new bn,m=n(In(o,[l,c],[0,1],!0)),v=i.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=r.cx+Pn(y[0],r.r),_=r.cy+Pn(y[1],r.r),x=h[e];x.attr({z2:f?0:2,style:Zl(v,{x:b,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(x)}var w=i.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),C=r.cx+Pn(S[0],r.r),k=r.cy+Pn(S[1],r.r),M=Pn(w.get("width"),r.r),T=Pn(w.get("height"),r.r),O=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,A=(x=d[e],w.get("formatter"));x.attr({z2:f?0:2,style:Zl(w,{x:C,y:k,text:Fj(o,A),width:isNaN(M)?null:M,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:O})}),sc(x,{normal:w},o,(function(t){return Fj(t,A)})),p&&lc(x,e,a,t,{getFormattedLabel:function(t,e,i,n,r,a){return Fj(a?a.interpolatedValue:o,A)}}),g.add(x)}u.add(g)})),this.group.add(u),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(Hm),zj=Nj,Vj=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.visualStyleAccessPath="itemStyle",i}return o(e,t),e.prototype.getInitialData=function(t,e){return nM(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(xf),qj=Vj;function $j(t){t.registerChartView(zj),t.registerSeriesModel(qj)}var Hj=["itemStyle","opacity"],Gj=function(t){function e(e,i){var n=t.call(this)||this,r=n,o=new Og,a=new ys;return r.setTextContent(a),n.setTextGuideLine(o),n.updateData(e,i,!0),n}return o(e,t),e.prototype.updateData=function(t,e,i){var n=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(Hj);l=null==l?1:l,i||Hl(n),n.useStyle(t.getItemVisual(e,"style")),n.style.lineJoin="round",i?(n.setShape({points:a.points}),n.style.opacity=0,Nl(n,{style:{opacity:l}},r,e)):Fl(n,{style:{opacity:l},shape:{points:a.points}},r,e),Tl(n,o),this._updateLabel(t,e),Sl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var i=this,n=this.getTextGuideLine(),r=i.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,c=t.getItemVisual(e,"style"),u=c.fill;Xl(r,Kl(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:c.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),i.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var h=l.linePoints;n.setShape({points:h}),i.textGuideLineConfig={anchor:h?new ji(h[0][0],h[0][1]):null},Fl(r,{style:{x:l.x,y:l.y}},o,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),zk(i,Vk(a),{stroke:u})},e}(kg),Wj=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.ignoreLabelLineUpdate=!0,i}return o(e,t),e.prototype.render=function(t,e,i){var n=t.getData(),r=this._data,o=this.group;n.diff(r).add((function(t){var e=new Gj(n,t);n.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var i=r.getItemGraphicEl(e);i.updateData(n,t),o.add(i),n.setItemGraphicEl(t,i)})).remove((function(e){var i=r.getItemGraphicEl(e);$l(i,t,e)})).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Hm),Uj=Wj,Yj=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new oM(s["c"](this.getData,this),s["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return nM(this,{coordDimensions:["value"],encodeDefaulter:s["h"](uh,this)})},e.prototype._defaultLabelLine=function(t){rr(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var i=this.getData(),n=t.prototype.getDataParams.call(this,e),r=i.mapDimension("value"),o=i.getSum(r);return n.percent=o?+(i.get(r,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(xf),Xj=Yj;function Kj(t,e){return Bu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Zj(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,(function(t){return t})),r=[],o="ascending"===e,a=0,l=t.count();a_R)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&SR(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n?null:{duration:0}})}}};function SR(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}var CR=xR,kR=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&s["I"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){s["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],i=s["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);s["k"](i,(function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Uu),MR=kR,TR=function(t){function e(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.type=r||"value",a.axisIndex=o,a}return o(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(uO),OR=TR;function AR(t,e,i,n,r,o){t=t||0;var a=i[1]-i[0];if(null!=r&&(r=PR(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===n){var s=Math.abs(e[1]-e[0]);s=PR(s,[0,a]),r=o=PR(s,[r,o]),n=0}e[0]=PR(e[0],i),e[1]=PR(e[1],i);var l=IR(e,n);e[n]+=t;var c,u=r||0,h=i.slice();return l.sign<0?h[0]+=u:h[1]-=u,e[n]=PR(e[n],h),c=IR(e,n),null!=r&&(c.sign!==l.sign||c.spano&&(e[1-n]=e[n]+c.sign*o),e}function IR(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function PR(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var DR=s["k"],ER=Math.min,LR=Math.max,jR=Math.floor,RR=Math.ceil,BR=Dn,FR=Math.PI,NR=function(){function t(t,e,i){this.type="parallel",this._axesMap=s["f"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,i)}return t.prototype._init=function(t,e,i){var n=t.dimensions,r=t.parallelAxisIndex;DR(n,(function(t,i){var n=r[i],o=e.getComponent("parallelAxis",n),a=this._axesMap.set(t,new OR(t,AT(o),[0,0],o.get("type"),n)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=i&&o<=i+e.axisLength&&a>=n&&a<=n+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(i){if(t.contains(i,e)){var n=i.getData();DR(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),OT(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Bu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,i=this._rect,n=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=i[r[a]],l=[0,s],c=this.dimensions.length,u=zR(e.get("axisExpandWidth"),l),h=zR(e.get("axisExpandCount")||0,[0,c]),d=e.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,p=e.get("axisExpandWindow");if(p)t=zR(p[1]-p[0],l),p[1]=p[0]+t;else{t=zR(u*(h-1),l);var f=e.get("axisExpandCenter")||jR(c/2);p=[u*f-t/2],p[1]=p[0]+t}var g=(s-t)/(c-h);g<3&&(g=0);var m=[jR(BR(p[0]/u,1))+1,RR(BR(p[1]/u,1))-1],v=g/u*p[0];return{layout:o,pixelDimIndex:a,layoutBase:i[n[a]],layoutLength:s,axisBase:i[n[1-a]],axisLength:i[r[1-a]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:g,axisExpandWindow:p,axisCount:c,winInnerIndices:m,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;e.each((function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])})),DR(i,(function(e,i){var o=(n.axisExpandable?qR:VR)(i,n),a={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},s={horizontal:FR/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],c=s[r],u=fi();bi(u,u,c),yi(u,u,l),this._axesLayout[e]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,i,n){null==i&&(i=0),null==n&&(n=t.count());var r=this._axesMap,o=this.dimensions,a=[],l=[];s["k"](o,(function(e){a.push(t.mapDimension(e)),l.push(r.get(e).model)}));for(var c=this.hasAxisBrushed(),u=i;ur*(1-u[0])?(l="jump",a=s-r*(1-u[2])):(a=s-r*u[1])>=0&&(a=s-r*(1-u[1]))<=0&&(a=0),a*=e.axisExpandWidth/c,a?AR(a,n,o,"all"):l="none";else{var d=n[1]-n[0],p=o[1]*s/d;n=[LR(0,p-d/2)],n[1]=ER(o[1],n[0]+d),n[0]=n[1]-d}return{axisExpandWindow:n,behavior:l}},t}();function zR(t,e){return ER(LR(t,e[0]),e[1])}function VR(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function qR(t,e){var i,n,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,c=s,u=!1;return t=0;i--)En(e[i])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,r=e.length;ntB}function bB(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function _B(t,e,i,n){var r=new bn;return r.add(new ts({name:"main",style:CB(i),silent:!0,draggable:!0,cursor:"move",drift:Object(s["h"])(AB,t,e,r,["n","s","w","e"]),ondragend:Object(s["h"])(vB,e,{isEnd:!0})})),Object(s["k"])(n,(function(i){r.add(new ts({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(s["h"])(AB,t,e,r,i),ondragend:Object(s["h"])(vB,e,{isEnd:!0})}))})),r}function xB(t,e,i,n){var r=n.brushStyle.lineWidth||0,o=ZR(r,eB),a=i[0][0],s=i[1][0],l=a-r/2,c=s-r/2,u=i[0][1],h=i[1][1],d=u-o+r/2,p=h-o+r/2,f=u-a,g=h-s,m=f+r,v=g+r;SB(t,e,"main",a,s,f,g),n.transformable&&(SB(t,e,"w",l,c,o,v),SB(t,e,"e",d,c,o,v),SB(t,e,"n",l,c,m,o),SB(t,e,"s",l,p,m,o),SB(t,e,"nw",l,c,o,o),SB(t,e,"ne",d,c,o,o),SB(t,e,"sw",l,p,o,o),SB(t,e,"se",d,p,o,o))}function wB(t,e){var i=e.__brushOption,n=i.transformable,r=e.childAt(0);r.useStyle(CB(i)),r.attr({silent:!n,cursor:n?"move":"default"}),Object(s["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(i){var r=e.childOfName(i.join("")),o=1===i.length?TB(t,i[0]):OB(t,i);r&&r.attr({silent:!n,invisible:!n,cursor:n?rB[o]+"-resize":null})}))}function SB(t,e,i,n,r,o,a){var s=e.childOfName(i);s&&s.setShape(EB(DB(t,e,[[n,r],[n+o,r+a]])))}function CB(t){return Object(s["i"])({strokeNoScale:!0},t.brushStyle)}function kB(t,e,i,n){var r=[KR(t,i),KR(e,n)],o=[ZR(t,i),ZR(e,n)];return[[r[0],o[0]],[r[1],o[1]]]}function MB(t){return _m(t.group)}function TB(t,e){var i={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},r=wm(i[e],MB(t));return n[r]}function OB(t,e){var i=[TB(t,e[0]),TB(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}function AB(t,e,i,n,r,o){var a=i.__brushOption,l=t.toRectRange(a.range),c=PB(e,r,o);Object(s["k"])(n,(function(t){var e=nB[t];l[e[0]][e[1]]+=c[e[0]]})),a.range=t.fromRectRange(kB(l[0][0],l[1][0],l[0][1],l[1][1])),dB(e,i),vB(e,{isEnd:!1})}function IB(t,e,i,n){var r=e.__brushOption.range,o=PB(t,i,n);Object(s["k"])(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),dB(t,e),vB(t,{isEnd:!1})}function PB(t,e,i){var n=t.group,r=n.transformCoordToLocal(e,i),o=n.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function DB(t,e,i){var n=gB(t,e);return n&&n!==XR?n.clipPath(i,t._transform):Object(s["d"])(i)}function EB(t){var e=KR(t[0][0],t[1][0]),i=KR(t[0][1],t[1][1]),n=ZR(t[0][0],t[1][0]),r=ZR(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:r-i}}function LB(t,e,i){if(t._brushType&&!VB(t,e.offsetX,e.offsetY)){var n=t._zr,r=t._covers,o=fB(t,e,i);if(!t._dragging)for(var a=0;an.getWidth()||i<0||i>n.getHeight()}var qB={lineX:$B(0),lineY:$B(1),rect:{createCover:function(t,e){function i(t){return t}return _B({toRectRange:i,fromRectRange:i},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=bB(t);return kB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,i,n){xB(t,e,i,n)},updateCommon:wB,contain:RB},polygon:{createCover:function(t,e){var i=new bn;return i.add(new Og({name:"main",style:CB(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new kg({name:"main",draggable:!0,drift:Object(s["h"])(IB,t,e),ondragend:Object(s["h"])(vB,t,{isEnd:!0})}))},updateCoverShape:function(t,e,i,n){e.childAt(0).setShape({points:DB(t,e,i)})},updateCommon:wB,contain:RB}};function $B(t){return{createCover:function(e,i){return _B({toRectRange:function(e){var i=[e,[0,100]];return t&&i.reverse(),i},fromRectRange:function(e){return e[t]}},e,i,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var i=bB(e),n=KR(i[0][t],i[1][t]),r=ZR(i[0][t],i[1][t]);return[n,r]},updateCoverShape:function(e,i,n,r){var o,a=gB(e,i);if(a!==XR&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,o];t&&l.reverse(),xB(e,i,l,r)},updateCommon:wB,contain:RB}}var HB=sB;function GB(t){return t=YB(t),function(e){return Mm(e,t)}}function WB(t,e){return t=YB(t),function(i){var n=null!=e?e:i,r=n?t.width:t.height,o=n?t.x:t.y;return[o,o+(r||0)]}}function UB(t,e,i){var n=YB(t);return function(t,r){return n.contain(r[0],r[1])&&!GA(t,e,i)}}function YB(t){return Gi.create(t)}var XB=["axisLine","axisTickLabel","axisName"],KB=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments),(this._brushController=new HB(i.getZr())).on("brush",s["c"](this._onBrush,this))},e.prototype.render=function(t,e,i,n){if(!ZB(t,e,n)){this.axisModel=t,this.api=i,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new bn,this.group.add(this._axisGroup),t.get("show")){var o=JB(t,e),a=o.coordinateSystem,l=t.getAreaSelectStyle(),c=l.width,u=t.axis.dim,h=a.getAxisLayout(u),d=s["m"]({strokeContainThreshold:c},h),p=new RO(t,d);s["k"](XB,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,l,t,o,c,i),km(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,i,n,r,o){var a=i.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),c=Gi.create({x:a[0],y:-r/2,width:s,height:r});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:GB(c),isTargetByCursor:UB(c,o,n),getLinearBrushOtherExtent:WB(c,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(QB(i))},e.prototype._onBrush=function(t){var e=t.areas,i=this.axisModel,n=i.axis,r=s["H"](e,(function(t){return[n.coordToData(t.range[0],!0),n.coordToData(t.range[1],!0)]}));(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Sf);function ZB(t,e,i){return i&&"axisAreaSelect"===i.type&&e.findComponents({mainType:"parallelAxis",query:i})[0]===t}function QB(t){var e=t.axis;return s["H"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function JB(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var tF=KB,eF={type:"axisAreaSelect",event:"axisAreaSelected"};function iF(t){t.registerAction(eF,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var nF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function rF(t){t.registerComponentView(CR),t.registerComponentModel(MR),t.registerCoordinateSystem("parallel",WR),t.registerPreprocessor(vR),t.registerComponentModel(YR),t.registerComponentView(tF),LM(t,"parallel",YR,nF),iF(t)}function oF(t){A_(rF),t.registerChartView(cR),t.registerSeriesModel(pR),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,mR)}var aF=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),sF=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new aF},e.prototype.buildPath=function(t,e){var i=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+i,e.y2),t.bezierCurveTo(e.cpx2+i,e.cpy2,e.cpx1+i,e.cpy1,e.x1+i,e.y1)):(t.lineTo(e.x2,e.y2+i),t.bezierCurveTo(e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i)),t.closePath()},e.prototype.highlight=function(){rl(this)},e.prototype.downplay=function(){ol(this)},e}(Ba),lF=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._focusAdjacencyDisabled=!1,i}return o(e,t),e.prototype.render=function(t,e,i){var n=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,l=a.width,c=a.height,u=t.getData(),h=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(e){var i=new sF,n=bs(i);n.dataIndex=e.dataIndex,n.seriesIndex=t.seriesIndex,n.dataType="edge";var r,a,u,p,f,g,m,v,y=e.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),x=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),C=w.get("localY"),k=e.node2.getLayout(),M=e.node2.getModel(),T=M.get("localX"),O=M.get("localY"),A=e.getLayout();switch(i.shape.extent=Math.max(1,A.dy),i.shape.orient=d,"vertical"===d?(r=(null!=S?S*l:x.x)+A.sy,a=(null!=C?C*c:x.y)+x.dy,u=(null!=T?T*l:k.x)+A.ty,p=null!=O?O*c:k.y,f=r,g=a*(1-_)+p*_,m=u,v=a*_+p*(1-_)):(r=(null!=S?S*l:x.x)+x.dx,a=(null!=C?C*c:x.y)+A.sy,u=null!=T?T*l:k.x,p=(null!=O?O*c:k.y)+A.ty,f=r*(1-_)+u*_,g=a,m=r*_+u*(1-_),v=p),i.setShape({x1:r,y1:a,x2:u,y2:p,cpx1:f,cpy1:g,cpx2:m,cpy2:v}),i.useStyle(b.getItemStyle()),i.style.fill){case"source":i.style.fill=e.node1.getVisual("color"),i.style.decal=e.node1.getVisual("style").decal;break;case"target":i.style.fill=e.node2.getVisual("color"),i.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var I=e.node1.getVisual("color"),P=e.node2.getVisual("color");Object(s["C"])(I)&&Object(s["C"])(P)&&(i.style.fill=new Wg(0,0,+("horizontal"===d),+("vertical"===d),[{color:I,offset:0},{color:P,offset:1}]))}var D=y.getModel("emphasis");Tl(i,y,"lineStyle",(function(t){return t.getItemStyle()})),o.add(i),h.setItemGraphicEl(e.dataIndex,i);var E=D.get("focus");Sl(i,"adjacency"===E?e.getAdjacentDataIndices():E,D.get("blurScope"),D.get("disabled")),bs(i).dataType="edge"})),r.eachNode((function(e){var i=e.getLayout(),n=e.getModel(),r=n.get("localX"),a=n.get("localY"),s=n.getModel("emphasis"),h=new ts({shape:{x:null!=r?r*l:i.x,y:null!=a?a*c:i.y,width:i.dx,height:i.dy},style:n.getModel("itemStyle").getItemStyle(),z2:10});Xl(h,Kl(n),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),Tl(h,n),o.add(h),u.setItemGraphicEl(e.dataIndex,h),bs(h).dataType="node";var d=s.get("focus");Sl(h,"adjacency"===d?e.getAdjacentDataIndices():d,s.get("blurScope"),s.get("disabled"))})),u.eachItemGraphicEl((function(e,r){var o=u.getItemModel(r);o.get("draggable")&&(e.drift=function(e,o){n._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/l,localY:this.shape.y/c})},e.ondragend=function(){n._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(cF(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Hm);function cF(t,e,i){var n=new ts({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Nl(n,{shape:{width:t.width+20}},e,i),n}var uF=lF,hF=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.getInitialData=function(t,e){var i=t.edges||t.links,n=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[r[a].depth]=new xc(r[a],this,e));if(n&&i){var s=Aj(n,i,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var i=t.parentModel,n=i.getData().getItemLayout(e);if(n){var r=n.depth,o=i.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var i=t.parentModel,n=i.getGraph().getEdgeByIndex(e),r=n.node1.getLayout();if(r){var o=r.depth,a=i.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var i=this.option.data||this.option.nodes,n=i[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,i){function n(t){return isNaN(t)||null==t}if("edge"===i){var r=this.getDataParams(t,i),o=r.data,a=r.value,s=o.source+" -- "+o.target;return Hp("nameValue",{name:s,value:a,noValue:n(a)})}var l=this.getGraph().getNodeByIndex(t),c=l.getLayout().value,u=this.getDataParams(t,i).data.name;return Hp("nameValue",{name:null!=u?u+"":null,value:c,noValue:n(c)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,i){var n=t.prototype.getDataParams.call(this,e,i);if(null==n.value&&"node"===i){var r=this.getGraph().getNodeByIndex(e),o=r.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(xf),dF=hF;function pF(t,e){t.eachSeriesByType("sankey",(function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),r=fF(t,e);t.layoutInfo=r;var o=r.width,a=r.height,l=t.getGraph(),c=l.nodes,u=l.edges;mF(c);var h=s["n"](c,(function(t){return 0===t.getLayout().value})),d=0!==h.length?0:t.get("layoutIterations"),p=t.get("orient"),f=t.get("nodeAlign");gF(c,u,i,n,o,a,d,p,f)}))}function fF(t,e){return Bu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gF(t,e,i,n,r,o,a,s,l){vF(t,e,i,r,o,s,l),wF(t,e,o,r,n,a,s),jF(t,s)}function mF(t){s["k"](t,(function(t){var e=EF(t.outEdges,DF),i=EF(t.inEdges,DF),n=t.getValue()||0,r=Math.max(e,i,n);t.setLayout({value:r},!0)}))}function vF(t,e,i,n,r,o,a){for(var s=[],l=[],c=[],u=[],h=0,d=0;d=0;v&&m.depth>p&&(p=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===o?g.setLayout({dy:i},!0):g.setLayout({dx:i},!0);for(var y=0;yh-1?p:h-1;a&&"left"!==a&&bF(t,a,o,S);var C="vertical"===o?(r-i)/S:(n-i)/S;xF(t,C,o)}function yF(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function bF(t,e,i,n){if("right"===e){var r=[],o=t,a=0;while(o.length){for(var l=0;l0;o--)l*=.99,MF(s,l,a),kF(s,r,i,n,a),LF(s,l,a),kF(s,r,i,n,a)}function SF(t,e){var i=[],n="vertical"===e?"y":"x",r=Lr(t,(function(t){return t.getLayout()[n]}));return r.keys.sort((function(t,e){return t-e})),s["k"](r.keys,(function(t){i.push(r.buckets.get(t))})),i}function CF(t,e,i,n,r,o){var a=1/0;s["k"](t,(function(t){var e=t.length,l=0;s["k"](t,(function(t){l+=t.getLayout().value}));var c="vertical"===o?(n-(e-1)*r)/l:(i-(e-1)*r)/l;c0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]+s.getLayout()[h]+e;var p="vertical"===r?n:i;if(l=c-e-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a;for(d=u-2;d>=0;--d)s=t[d],l=s.getLayout()[o]+s.getLayout()[h]+e-c,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]}}))}function MF(t,e,i){s["k"](t.slice().reverse(),(function(t){s["k"](t,(function(t){if(t.outEdges.length){var n=EF(t.outEdges,TF,i)/EF(t.outEdges,DF);if(isNaN(n)){var r=t.outEdges.length;n=r?EF(t.outEdges,OF,i)/r:0}if("vertical"===i){var o=t.getLayout().x+(n-PF(t,i))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(n-PF(t,i))*e;t.setLayout({y:a},!0)}}}))}))}function TF(t,e){return PF(t.node2,e)*t.getValue()}function OF(t,e){return PF(t.node2,e)}function AF(t,e){return PF(t.node1,e)*t.getValue()}function IF(t,e){return PF(t.node1,e)}function PF(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function DF(t){return t.getValue()}function EF(t,e,i){var n=0,r=t.length,o=-1;while(++or&&(r=e)})),s["k"](i,(function(e){var i=new FE({type:"color",mappingMethod:"linear",dataExtent:[n,r],visual:t.get("color")}),o=i.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",o),e.setVisual("style",{fill:o}))}))}}))}function BF(t){t.registerChartView(uF),t.registerSeriesModel(dF),t.registerLayout(pF),t.registerVisual(RF),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var FF=function(){function t(){}return t.prototype.getInitialData=function(t,e){var i,n,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),l=o.get("type");"category"===a?(t.layout="horizontal",i=r.getOrdinalMeta(),n=!0):"category"===l?(t.layout="vertical",i=o.getOrdinalMeta(),n=!0):t.layout=t.layout||"horizontal";var c=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=c[u],d=c[1-u],p=[r,o],f=p[u].get("type"),g=p[1-u].get("type"),m=t.data;if(m&&n){var v=[];s["k"](m,(function(t,e){var i;s["t"](t)?(i=t.slice(),t.unshift(e)):s["t"](t.value)?(i=s["m"]({},t),i.value=i.value.slice(),t.value.unshift(e)):i=t,v.push(i)})),t.data=v}var y=this.defaultValueDimensions,b=[{name:h,type:ww(f),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:ww(g),dimsDef:y.slice()}];return nM(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:s["h"](ch,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),NF=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],i.visualDrawType="stroke",i}return o(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(xf);Object(s["K"])(NF,FF,!0);var zF=NF,VF=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;n.diff(o).add((function(t){if(n.hasValue(t)){var e=n.getItemLayout(t),i=HF(e,n,t,a,!0);n.setItemGraphicEl(t,i),r.add(i)}})).update((function(t,e){var i=o.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?(Hl(i),GF(s,i,n,t)):i=HF(s,n,t,a),r.add(i),n.setItemGraphicEl(t,i)}else r.remove(i)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=n},e.prototype.remove=function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(Hm),qF=function(){function t(){}return t}(),$F=function(t){function e(e){var i=t.call(this,e)||this;return i.type="boxplotBoxPath",i}return o(e,t),e.prototype.getDefaultShape=function(){return new qF},e.prototype.buildPath=function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();nm){var x=[y,_];n.push(x)}}}return{boxData:i,outliers:n}}var eN={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ju){var i="";0,Ah(i)}var n=tN(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function iN(t){t.registerSeriesModel(zF),t.registerChartView(UF),t.registerVisual(YF),t.registerLayout(KF),t.registerTransform(eN)}var nN=["color","borderColor"],rN=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){jm(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),i=this._data,n=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||n.removeAll(),e.diff(i).add((function(i){if(e.hasValue(i)){var a=e.getItemLayout(i);if(o&&lN(s,a))return;var l=sN(a,i,!0);Nl(l,{shape:{points:a.ends}},t,i),cN(l,e,i,r),n.add(l),e.setItemGraphicEl(i,l)}})).update((function(a,l){var c=i.getItemGraphicEl(l);if(e.hasValue(a)){var u=e.getItemLayout(a);o&&lN(s,u)?n.remove(c):(c?(Fl(c,{shape:{points:u.ends}},t,a),Hl(c)):c=sN(u,a),cN(c,e,a,r),n.add(c),e.setItemGraphicEl(a,c))}else n.remove(c)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&n.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),pN(t,this.group);var e=t.get("clip",!0)?$S(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var i,n=e.getData(),r=n.getLayout("isSimpleBox");while(null!=(i=t.next())){var o=n.getItemLayout(i),a=sN(o,i);cN(a,n,i,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){pN(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Hm),oN=function(){function t(){}return t}(),aN=function(t){function e(e){var i=t.call(this,e)||this;return i.type="normalCandlestickBox",i}return o(e,t),e.prototype.getDefaultShape=function(){return new oN},e.prototype.buildPath=function(t,e){var i=e.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(Ba);function sN(t,e,i){var n=t.ends;return new aN({shape:{points:i?uN(n,t):n},z2:100})}function lN(t,e){for(var i=!0,n=0;n0?"borderColor":"borderColor0"])||i.get(["itemStyle",t>0?"color":"color0"]),o=i.getModel("itemStyle").getItemStyle(nN);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var gN=rN,mN=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],i}return o(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,i){var n=e.getItemLayout(t);return n&&i.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(xf);Object(s["K"])(mN,FF,!0);var vN=mN;function yN(t){t&&s["t"](t.series)&&s["k"](t.series,(function(t){s["A"](t)&&"k"===t.type&&(t.type="candlestick")}))}var bN=["itemStyle","borderColor"],_N=["itemStyle","borderColor0"],xN=["itemStyle","color"],wN=["itemStyle","color0"],SN={seriesType:"candlestick",plan:Cf(),performRawSeries:!0,reset:function(t,e){function i(t,e){return e.get(t>0?xN:wN)}function n(t,e){return e.get(t>0?bN:_N)}if(!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:function(t,e){var r;while(null!=(r=t.next())){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,l=o.getItemStyle();l.fill=i(a,o),l.stroke=n(a,o)||l.fill;var c=e.ensureUniqueItemVisual(r,"style");Object(s["m"])(c,l)}}}}}},CN=SN,kN={seriesType:"candlestick",plan:Cf(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),n=TN(t,i),r=0,o=1,a=["x","y"],l=i.getDimensionIndex(i.mapDimension(a[r])),c=Object(s["H"])(i.mapDimensionsAll(a[o]),i.getDimensionIndex,i),u=c[0],h=c[1],d=c[2],p=c[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(l<0||c.length<4))return{progress:t.pipelineContext.large?g:f};function f(t,i){var a,s=i.getStore();while(null!=(a=t.next())){var c=s.get(l,a),f=s.get(u,a),g=s.get(h,a),m=s.get(d,a),v=s.get(p,a),y=Math.min(f,g),b=Math.max(f,g),_=k(y,c),x=k(b,c),w=k(m,c),S=k(v,c),C=[];M(C,x,0),M(C,_,1),C.push(O(S),O(x),O(w),O(_)),i.setItemLayout(a,{sign:MN(s,a,f,g,h),initBaseline:f>g?x[o]:_[o],ends:C,brushRect:T(m,v,c)})}function k(t,i){var n=[];return n[r]=i,n[o]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function M(t,e,i){var o=e.slice(),a=e.slice();o[r]=bm(o[r]+n/2,1,!1),a[r]=bm(a[r]-n/2,1,!0),i?t.push(o,a):t.push(a,o)}function T(t,e,i){var a=k(t,i),s=k(e,i);return a[r]-=n/2,s[r]-=n/2,{x:a[0],y:a[1],width:o?n:s[0]-a[0],height:o?s[1]-a[1]:n}}function O(t){return t[r]=bm(t[r],1),t}}function g(t,i){var n,a,s=IS(4*t.count),c=0,f=[],g=[],m=i.getStore();while(null!=(a=t.next())){var v=m.get(l,a),y=m.get(u,a),b=m.get(h,a),_=m.get(d,a),x=m.get(p,a);isNaN(v)||isNaN(_)||isNaN(x)?(s[c++]=NaN,c+=3):(s[c++]=MN(m,a,y,b,h),f[r]=v,f[o]=_,n=e.dataToPoint(f,null,g),s[c++]=n?n[0]:NaN,s[c++]=n?n[1]:NaN,f[o]=x,n=e.dataToPoint(f,null,g),s[c++]=n?n[1]:NaN)}i.setLayout("largePoints",s)}}};function MN(t,e,i,n,r){var o;return o=i>n?-1:i0?t.get(r,e-1)<=n?1:-1:1,o}function TN(t,e){var i,n=t.getBaseAxis(),r="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),o=Pn(Object(s["P"])(t.get("barMaxWidth"),r),r),a=Pn(Object(s["P"])(t.get("barMinWidth"),1),r),l=t.get("barWidth");return null!=l?Pn(l,r):Math.max(Math.min(r/2,o),a)}var ON=kN;function AN(t){t.registerChartView(gN),t.registerSeriesModel(vN),t.registerPreprocessor(yN),t.registerVisual(CN),t.registerLayout(ON)}function IN(t,e){var i=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?i:null,fill:"fill"===e.brushType?i:null}})}))}var PN=function(t){function e(e,i){var n=t.call(this)||this,r=new bS(e,i),o=new bn;return n.add(r),n.add(o),n.updateData(e,i),n}return o(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=t.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(n)/l*1e3),o!==this._period||a!==this._loop){n.stopAnimation();var u=void 0;u=s["w"](c)?c(i):c,n.__t>0&&(u=-o*n.__t),this._animateSymbol(n,o,u,a)}this._period=o,this._loop=a}},e.prototype._animateSymbol=function(t,e,i,n){if(e>0){t.__t=0;var r=this,o=t.animate("",n).when(e,{__t:1}).delay(i).during((function(){r._updateSymbolPosition(t)}));n||o.done((function(){r.remove(t)})),o.start()}},e.prototype._getLineLength=function(t){return w(t.__p1,t.__cp1)+w(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,r=t.__t,o=[t.x,t.y],a=o.slice(),s=ie,l=ne;o[0]=s(e[0],n[0],i[0],r),o[1]=s(e[1],n[1],i[1],r);var c=l(e[0],n[0],i[0],r),u=l(e[1],n[1],i[1],r);t.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0;o--)if(n[o]<=e)break;o=Math.min(o,r-2)}else{for(o=a;oe)break;o=Math.min(o-1,r-2)}var l=(e-n[o])/(n[o+1]-n[o]),c=i[o],u=i[o+1];t.x=c[0]*(1-l)+l*u[0],t.y=c[1]*(1-l)+l*u[1];var h=u[0]-c[0],d=u[1]-c[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(NN),$N=qN,HN=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),GN=function(t){function e(e){var i=t.call(this,e)||this;return i._off=0,i.hoverDataIdx=-1,i}return o(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new HN},e.prototype.buildPath=function(t,e){var i,n=e.segs,r=e.curveness;if(e.polyline)for(i=this._off;i0){t.moveTo(n[i++],n[i++]);for(var a=1;a0){var h=(s+c)/2-(l-u)*r,d=(l+u)/2-(c-s)*r;t.quadraticCurveTo(h,d,c,u)}else t.lineTo(c,u)}this.incremental&&(this._off=i,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var i=this.shape,n=i.segs,r=i.curveness,o=this.style.lineWidth;if(i.polyline)for(var a=0,s=0;s0)for(var c=n[s++],u=n[s++],h=1;h0){var f=(c+d)/2-(u-p)*r,g=(u+p)/2-(d-c)*r;if(fa(c,u,f,g,d,p,o,t,e))return a}else if(da(c,u,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();if(t=i[0],e=i[1],n.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,i=e.segs,n=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=i+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),UN=WN,YN={seriesType:"lines",plan:Cf(),reset:function(t){var e=t.coordinateSystem;if(e){var i=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(n){var s=void 0,l=r.end-r.start;if(i){for(var c=0,u=r.start;u0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(n);var c=t.get("clip",!0)&&$S(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,i){var n=t.getData(),r=this._updateLineDraw(n,t);r.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,i){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,i){var n=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=XN.reset(t,e,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,e){var i=this._lineDraw,n=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return i&&n===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=a?new UN:new hj(r?n?$N:VN:n?NN:oj),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=a),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),i="svg"===e.painter.getType();i||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(Hm),ZN=KN,QN="undefined"===typeof Uint32Array?Array:Uint32Array,JN="undefined"===typeof Float64Array?Array:Float64Array;function tz(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(s["H"])(e,(function(t){var e=[t[0].coord,t[1].coord],i={coords:e};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),Object(s["J"])([i,t[0],t[1]])})))}var ez=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.visualStyleAccessPath="lineStyle",i.visualDrawType="stroke",i}return o(e,t),e.prototype.init=function(e){e.data=e.data||[],tz(e);var i=this._processFlatCoordsArray(e.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(e.data=new Float32Array(i.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(tz(e),e.data){var i=this._processFlatCoordsArray(e.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(e.data=new Float32Array(i.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(s["e"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(s["e"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),i=e.option instanceof Array?e.option:e.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],r=0;r ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(xf),iz=ez;function nz(t){return t instanceof Array||(t=[t,t]),t}var rz={seriesType:"lines",reset:function(t){var e=nz(t.get("symbol")),i=nz(t.get("symbolSize")),n=t.getData();function r(t,e){var i=t.getItemModel(e),n=nz(i.getShallow("symbol",!0)),r=nz(i.getShallow("symbolSize",!0));n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}return n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),{dataEach:n.hasItemOption?r:null}}},oz=rz;function az(t){t.registerChartView(ZN),t.registerSeriesModel(iz),t.registerLayout(XN),t.registerVisual(oz)}var sz=256,lz=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ui["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,i,n,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),d=t.length;u.width=e,u.height=i;for(var p=0;p0){var T=o(y)?s:l;y>0&&(y=y*k+S),_[x++]=T[M],_[x++]=T[M+1],_[x++]=T[M+2],_[x++]=T[M+3]*y*256}else x+=4}return h.putImageData(b,0,0),u},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ui["d"].createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},t.prototype._getGradient=function(t,e){for(var i=this._gradientPixels,n=i[e]||(i[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),n[o++]=r[0],n[o++]=r[1],n[o++]=r[2],n[o++]=r[3];return n},t}(),cz=lz;function uz(t,e,i){var n=t[1]-t[0];e=s["H"](e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}));var r=e.length,o=0;return function(t){var n;for(n=o;n=0;n--){a=e[n].interval;if(a[0]<=t&&t<=a[1]){o=n;break}}return n>=0&&n=e[0]&&t<=e[1]}}function dz(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var pz=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(i){i===t&&(n=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):dz(r)&&this._renderOnGeo(r,t,n,i)},e.prototype.incrementalPrepareRender=function(t,e,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,i,n){var r=e.coordinateSystem;r&&(dz(r)?this.render(e,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){jm(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,i,n,r){var o,a,s,l,c=t.coordinateSystem,u=HS(c,"cartesian2d");if(u){var h=c.getAxis("x"),d=c.getAxis("y");0,o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),b=Kl(t),_=t.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),C=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],k=i;ks[1]||Al[1])continue;var I=c.dataToPoint([O,A]);M=new ts({shape:{x:I[0]-o/2,y:I[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(C[1],k)))continue;M=new ts({z2:1,shape:c.dataToRect([f.get(C[0],k)]).contentShape,style:T})}if(f.hasItemOption){var P=f.getItemModel(k),D=P.getModel("emphasis");g=D.getModel("itemStyle").getItemStyle(),m=P.getModel(["blur","itemStyle"]).getItemStyle(),v=P.getModel(["select","itemStyle"]).getItemStyle(),y=P.get(["itemStyle","borderRadius"]),x=D.get("focus"),w=D.get("blurScope"),S=D.get("disabled"),b=Kl(P)}M.shape.r=y;var E=t.getRawValue(k),L="-";E&&null!=E[2]&&(L=E[2]+""),Xl(M,b,{labelFetcher:t,labelDataIndex:k,defaultOpacity:T.opacity,defaultText:L}),M.ensureState("emphasis").style=g,M.ensureState("blur").style=m,M.ensureState("select").style=v,Sl(M,x,w,S),M.incremental=r,r&&(M.states.emphasis.hoverLayer=!0),p.add(M),f.setItemGraphicEl(k,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,e,i,n){var r=i.targetVisuals.inRange,o=i.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new cz;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),c=t.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,n.getWidth()),p=Math.min(l.height+l.y,n.getHeight()),f=d-u,g=p-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(e,i,n){var r=t.dataToPoint([e,i]);return r[0]-=u,r[1]-=h,r.push(n),r})),y=i.getExtent(),b="visualMap.continuous"===i.type?hz(y,i.option.range):uz(y,i.getPieceList(),i.option.selected);s.update(v,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var _=new Ga({style:{width:f,height:g,x:u,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(Hm),fz=pz,gz=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.getInitialData=function(t,e){return dS(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Hh.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(xf),mz=gz;function vz(t){t.registerChartView(fz),t.registerSeriesModel(mz)}var yz=["itemStyle","borderWidth"],bz=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],_z=new Kf,xz=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),c=a.master.getRect(),u={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:bz[+l],categoryDim:bz[1-+l]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=Ez(r,t),i=wz(r,t,e,u),o=Rz(r,u,i);r.setItemGraphicEl(t,o),n.add(o),qz(o,u,i)}})).update((function(t,e){var i=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=Ez(r,t),s=wz(r,t,a,u),l=Nz(r,s);i&&l!==i.__pictorialShapeStr&&(n.remove(i),r.setItemGraphicEl(t,null),i=null),i?Bz(i,u,s):i=Rz(r,u,s,!0),r.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=s,n.add(i),qz(i,u,s)}else n.remove(i)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&Fz(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl((function(e){Fz(n,bs(e).dataIndex,t,e)})):i.removeAll()},e.type="pictorialBar",e}(Hm);function wz(t,e,i,n){var r=t.getItemLayout(e),o=i.get("symbolRepeat"),a=i.get("symbolClip"),s=i.get("symbolPosition")||"start",l=i.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=i.get("symbolPatternSize")||2,h=i.isAnimationEnabled(),d={dataIndex:e,layout:r,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:h?i:null,hoverScale:h&&i.get(["emphasis","scale"]),z2:i.getShallow("z",!0)||0};Sz(i,o,r,n,d),kz(t,e,r,o,a,d.boundingLength,d.pxSign,u,n,d),Mz(i,d.symbolScale,c,n,d);var p=d.symbolSize,f=oy(i.get("symbolOffset"),p);return Tz(i,p,r,o,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function Sz(t,e,i,n,r){var o,a=n.valueDim,l=t.get("symbolBoundingData"),c=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=c.toGlobalCoord(c.dataToCoord(0)),h=1-+(i[a.wh]<=0);if(s["t"](l)){var d=[Cz(c,l[0])-u,Cz(c,l[1])-u];d[1]0?1:-1}function Cz(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function kz(t,e,i,n,r,o,a,l,c,u){var h,d=c.valueDim,p=c.categoryDim,f=Math.abs(i[p.wh]),g=t.getItemVisual(e,"symbolSize");h=s["t"](g)?g.slice():null==g?["100%","100%"]:[g,g],h[p.index]=Pn(h[p.index],f),h[d.index]=Pn(h[d.index],n?f:Math.abs(o)),u.symbolSize=h;var m=u.symbolScale=[h[0]/l,h[1]/l];m[d.index]*=(c.isHorizontal?-1:1)*a}function Mz(t,e,i,n,r){var o=t.get(yz)||0;o&&(_z.attr({scaleX:e[0],scaleY:e[1],rotation:i}),_z.updateTransform(),o/=_z.getLineScale(),o*=e[n.valueDim.index]),r.valueLineWidth=o||0}function Tz(t,e,i,n,r,o,a,l,c,u,h,d){var p=h.categoryDim,f=h.valueDim,g=d.pxSign,m=Math.max(e[f.index]+l,0),v=m;if(n){var y=Math.abs(c),b=s["O"](t.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var x=Pn(b,e[f.index]),w=Math.max(m+2*x,0),S=_?0:2*x,C=Kn(n),k=C?n:$z((y+S)/w),M=y-k*m;x=M/2/(_?k:Math.max(k-1,1)),w=m+2*x,S=_?0:2*x,C||"fixed"===n||(k=u?$z((Math.abs(u)+S)/w):0),v=k*w-S,d.repeatTimes=k,d.symbolMargin=x}var T=g*(v/2),O=d.pathPosition=[];O[p.index]=i[p.wh]/2,O[f.index]="start"===a?T:"end"===a?c-T:c/2,o&&(O[0]+=o[0],O[1]+=o[1]);var A=d.bundlePosition=[];A[p.index]=i[p.xy],A[f.index]=i[f.xy];var I=d.barRectShape=s["m"]({},i);I[f.wh]=g*Math.max(Math.abs(i[f.wh]),Math.abs(O[f.index]+T)),I[p.wh]=i[p.wh];var P=d.clipShape={};P[p.xy]=-i[p.xy],P[p.wh]=h.ecSize[p.wh],P[f.xy]=0,P[f.wh]=i[f.wh]}function Oz(t){var e=t.symbolPatternSize,i=ny(t.symbolType,-e/2,-e/2,e,e);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function Az(t,e,i,n){var r=t.__pictorialBundle,o=i.symbolSize,a=i.valueLineWidth,s=i.pathPosition,l=e.valueDim,c=i.repeatTimes||0,u=0,h=o[e.valueDim.index]+a+2*i.symbolMargin;for(zz(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=c,u0:n<0)&&(r=c-1-t),e[l.index]=h*(r-c/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:i.symbolScale[0],scaleY:i.symbolScale[1],rotation:i.rotation}}}function Iz(t,e,i,n){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?Vz(o,null,{x:i.pathPosition[0],y:i.pathPosition[1],scaleX:i.symbolScale[0],scaleY:i.symbolScale[1],rotation:i.rotation},i,n):(o=t.__pictorialMainPath=Oz(i),r.add(o),Vz(o,{x:i.pathPosition[0],y:i.pathPosition[1],scaleX:0,scaleY:0,rotation:i.rotation},{scaleX:i.symbolScale[0],scaleY:i.symbolScale[1]},i,n))}function Pz(t,e,i){var n=s["m"]({},e.barRectShape),r=t.__pictorialBarRect;r?Vz(r,null,{shape:n},e,i):(r=t.__pictorialBarRect=new ts({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,t.add(r))}function Dz(t,e,i,r){if(i.symbolClip){var o=t.__pictorialClipPath,a=s["m"]({},i.clipShape),l=e.valueDim,c=i.animationModel,u=i.dataIndex;if(o)Fl(o,{shape:a},c,u);else{a[l.wh]=0,o=new ts({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[l.wh]=i.clipShape[l.wh],n[r?"updateProps":"initProps"](o,{shape:h},c,u)}}}function Ez(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=Lz,i.isAnimationEnabled=jz,i}function Lz(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function jz(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Rz(t,e,i,n){var r=new bn,o=new bn;return r.add(o),r.__pictorialBundle=o,o.x=i.bundlePosition[0],o.y=i.bundlePosition[1],i.symbolRepeat?Az(r,e,i):Iz(r,e,i),Pz(r,i,n),Dz(r,e,i,n),r.__pictorialShapeStr=Nz(t,i),r.__pictorialSymbolMeta=i,r}function Bz(t,e,i){var n=i.animationModel,r=i.dataIndex,o=t.__pictorialBundle;Fl(o,{x:i.bundlePosition[0],y:i.bundlePosition[1]},n,r),i.symbolRepeat?Az(t,e,i,!0):Iz(t,e,i,!0),Pz(t,i,!0),Dz(t,e,i,!0)}function Fz(t,e,i,n){var r=n.__pictorialBarRect;r&&r.removeTextContent();var o=[];zz(n,(function(t){o.push(t)})),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),s["k"](o,(function(t){Vl(t,{scaleX:0,scaleY:0},i,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function Nz(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function zz(t,e,i){s["k"](t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(i,n)}))}function Vz(t,e,i,r,o,a){e&&t.attr(e),r.symbolClip&&!o?i&&t.attr(i):i&&n[o?"updateProps":"initProps"](t,i,r.animationModel,r.dataIndex,a)}function qz(t,e,i){var n=i.dataIndex,r=i.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),l=r.getModel(["blur","itemStyle"]).getItemStyle(),c=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");zz(t,(function(t){if(t instanceof Ga){var e=t.style;t.useStyle(s["m"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},i.style))}else t.useStyle(i.style);var n=t.ensureState("emphasis");n.style=a,p&&(n.scaleX=1.1*t.scaleX,n.scaleY=1.1*t.scaleY),t.ensureState("blur").style=l,t.ensureState("select").style=c,u&&(t.cursor=u),t.z2=i.z2}));var f=e.valueDim.posDesc[+(i.boundingLength>0)],g=t.__pictorialBarRect;Xl(g,Kl(r),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:gS(e.seriesModel.getData(),n),inheritColor:i.style.fill,defaultOpacity:i.style.opacity,defaultOutsidePosition:f}),Sl(t,h,d,o.get("disabled"))}function $z(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Hz=xz,Gz=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i.defaultSymbol="roundRect",i}return o(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Mc(IC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(IC),Wz=Gz;function Uz(t){t.registerChartView(Hz),t.registerSeriesModel(Wz),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(s["h"])(CC,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kC("pictorialBar"))}var Yz=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._layers=[],i}return o(e,t),e.prototype.render=function(t,e,i){var n=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),l=n.getLayout("layoutInfo"),c=l.rect,u=l.boundaryGap;function h(t){return t.name}o.x=0,o.y=c.y+u[0];var d=new yw(this._layersSeries||[],a,h,h),p=[];function f(e,i,s){var l=r._layers;if("remove"!==e){for(var c,u,h=[],d=[],f=a[i].indices,g=0;go&&(o=s),n.push(s)}for(var c=0;co&&(o=h)}return{y0:r,max:o}}function nV(t){t.registerChartView(Kz),t.registerSeriesModel(Jz),t.registerLayout(tV),t.registerProcessor(vk("themeRiver"))}var rV=2,oV=4,aV=function(t){function e(e,i,n,r){var o=t.call(this)||this;o.z2=rV,o.textConfig={inside:!0},bs(o).seriesIndex=i.seriesIndex;var a=new ys({z2:oV,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,i,n,r),o}return o(e,t),e.prototype.updateData=function(t,e,i,n,r){this.node=e,e.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var o=this;bs(o).dataIndex=e.dataIndex;var a=e.getModel(),l=a.getModel("emphasis"),c=e.getLayout(),u=s["m"]({},c);u.label=null;var h=e.getVisual("style");h.lineJoin="bevel";var d=e.getVisual("decal");d&&(h.decal=Wy(d,r));var p=Jk(a.getModel("itemStyle"),u,!0);s["m"](u,p),s["k"](Os,(function(t){var e=o.ensureState(t),i=a.getModel([t,"itemStyle"]);e.style=i.getItemStyle();var n=Jk(i,u);n&&(e.shape=n)})),t?(o.setShape(u),o.shape.r=c.r0,Fl(o,{shape:{r:c.r}},i,e.dataIndex)):(Fl(o,{shape:u},i),Hl(o)),o.useStyle(h),this._updateLabel(i);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var g=l.get("focus"),m="ancestor"===g?e.getAncestorsIndices():"descendant"===g?e.getDescendantIndices():g;Sl(this,m,l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,i=this.node.getModel(),n=i.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,l=Math.cos(a),c=Math.sin(a),u=this,h=u.getTextContent(),d=this.node.dataIndex,p=n.get("minAngle")/180*Math.PI,f=n.get("show")&&!(null!=p&&Math.abs(o)Math.PI/2?"right":"left"):C&&"center"!==C?"left"===C?(b=r.r0+S,a>Math.PI/2&&(C="right")):"right"===C&&(b=r.r-S,a>Math.PI/2&&(C="left")):(b=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,C="center"),m.style.align=C,m.style.verticalAlign=g(p,"verticalAlign")||"middle",m.x=b*l+r.cx,m.y=b*c+r.cy;var k=g(p,"rotate"),M=0;"radial"===k?(M=-a,M<-Math.PI/2&&(M+=Math.PI)):"tangential"===k?(M=Math.PI/2-a,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):s["z"](k)&&(M=k*Math.PI/180),m.rotation=M})),h.dirtyStyle()},e}(vg),sV=aV,lV="sunburstRootToNode",cV="sunburstHighlight",uV="sunburstUnhighlight";function hV(t){t.registerAction({type:lV,update:"updateView"},(function(t,e){function i(e,i){var n=ID(t,[lV],e);if(n){var r=e.getViewRoot();r&&(t.direction=DD(r,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)})),t.registerAction({type:cV,update:"none"},(function(t,e,i){function n(e){var i=ID(t,[cV],e);i&&(t.dataIndex=i.node.dataIndex)}t=Object(s["m"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},n),i.dispatchAction(Object(s["m"])(t,{type:"highlight"}))})),t.registerAction({type:uV,update:"updateView"},(function(t,e,i){t=Object(s["m"])({},t),i.dispatchAction(Object(s["m"])(t,{type:"downplay"}))}))}var dV=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i,n){var r=this;this.seriesModel=t,this.api=i,this.ecModel=e;var o=t.getData(),a=o.tree.root,l=t.getViewRoot(),c=this.group,u=t.get("renderLabelForZeroData"),h=[];l.eachNode((function(t){h.push(t)}));var d=this._oldChildren||[];function p(t,e){function i(t){return t.getId()}function n(i,n){var r=null==i?null:t[i],o=null==n?null:e[n];f(r,o)}0===t.length&&0===e.length||new yw(e,t,i,i).add(n).update(n).remove(s["h"](n,null)).execute()}function f(n,r){if(u||!n||n.getValue()||(n=null),n!==a&&r!==a)if(r&&r.piece)n?(r.piece.updateData(!1,n,t,e,i),o.setItemGraphicEl(n.dataIndex,r.piece)):g(r);else if(n){var s=new sV(n,t,e,i);c.add(s),o.setItemGraphicEl(n.dataIndex,s)}}function g(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}function m(n,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,n,t,e,i):(r.virtualPiece=new sV(n,t,e,i),c.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(c.remove(r.virtualPiece),r.virtualPiece=null)}p(h,d),m(a,l),this._initEvents(),this._oldChildren=h},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode((function(n){if(!i&&n.piece&&n.piece===e.target){var r=n.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(n);else if("link"===r){var o=n.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Iu(a,s)}}i=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:lV,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,o=t[1]-n.cy,a=Math.sqrt(r*r+o*o);return a<=n.r&&a>=n.r0}},e.type="sunburst",e}(Hm),pV=dV,fV=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.ignoreStyleOnData=!0,i}return o(e,t),e.prototype.getInitialData=function(t,e){var i={name:t.name,children:t.data};gV(i);var n=this._levelModels=s["H"](t.levels||[],(function(t){return new xc(t,this,e)}),this),r=AD.createTree(i,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var i=r.getNodeByDataIndex(e),o=n[i.depth];return o&&(t.parentModel=o),t}))}return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var i=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return i.treePathInfo=ED(n,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){GD(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(xf);function gV(t){var e=0;s["k"](t.children,(function(t){gV(t);var i=t.value;s["t"](i)&&(i=i[0]),e+=i}));var i=t.value;s["t"](i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),s["t"](t.value)?t.value[0]=i:t.value=i}var mV=fV,vV=Math.PI/180;function yV(t,e,i){e.eachSeriesByType(t,(function(t){var e=t.get("center"),n=t.get("radius");s["t"](n)||(n=[0,n]),s["t"](e)||(e=[e,e]);var r=i.getWidth(),o=i.getHeight(),a=Math.min(r,o),l=Pn(e[0],r),c=Pn(e[1],o),u=Pn(n[0],a/2),h=Pn(n[1],a/2),d=-t.get("startAngle")*vV,p=t.get("minAngle")*vV,f=t.getData().tree.root,g=t.getViewRoot(),m=g.depth,v=t.get("sort");null!=v&&bV(g,v);var y=0;s["k"](g.children,(function(t){!isNaN(t.getValue())&&y++}));var b=g.getValue(),_=Math.PI/(b||y)*2,x=g.depth>0,w=g.height-(x?-1:1),S=(h-u)/(w||1),C=t.get("clockwise"),k=t.get("stillShowZeroSum"),M=C?1:-1,T=function(e,i){if(e){var n=i;if(e!==f){var r=e.getValue(),o=0===b&&k?_:r*_;o1)r=r.parentNode;var o=i.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(s["C"])(o)&&(o=Object(pe["c"])(o,(t.depth-1)/(n-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=i(r,t,n.root.height));var l=e.ensureUniqueItemVisual(r.dataIndex,"style");Object(s["m"])(l,a)}))}))}function wV(t){t.registerChartView(pV),t.registerSeriesModel(mV),t.registerLayout(Object(s["h"])(yV,"sunburst")),t.registerProcessor(Object(s["h"])(vk,"sunburst")),t.registerVisual(xV),hV(t)}var SV={color:"fill",borderColor:"stroke"},CV={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},kV=kr(),MV=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return dS(null,this)},e.prototype.getDataParams=function(e,i,n){var r=t.prototype.getDataParams.call(this,e,i);return n&&(r.info=kV(n).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(xf),TV=MV;function OV(t,e){return e=e||[0,0],s["H"](["x","y"],(function(i,n){var r=this.getAxis(i),o=e[n],a=t[n]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function AV(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:s["c"](OV,t)}}}function IV(t,e){return e=e||[0,0],s["H"]([0,1],(function(i){var n=e[i],r=t[i]/2,o=[],a=[];return o[i]=n-r,a[i]=n+r,o[1-i]=a[1-i]=e[1-i],Math.abs(this.dataToPoint(o)[i]-this.dataToPoint(a)[i])}),this)}function PV(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:s["c"](IV,t)}}}function DV(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-r)-i.dataToCoord(n+r))}function EV(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(s["c"])(DV,t)}}}function LV(t,e){return e=e||[0,0],s["H"](["Radius","Angle"],(function(i,n){var r="get"+i+"Axis",o=this[r](),a=e[n],s=t[n]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===i&&(l=l*Math.PI/180),l}),this)}function jV(t){var e=t.getRadiusAxis(),i=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(n){var r=e.dataToRadius(n[0]),o=i.dataToAngle(n[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:s["c"](LV,t)}}}function RV(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}function BV(t,e,i,n){return t&&(t.legacy||!1!==t.legacy&&!i&&!n&&"tspan"!==e&&("text"===e||Object(s["q"])(t,"text")))}function FV(t,e,i){var n,r,o,a=t;if("text"===e)o=a;else{o={},Object(s["q"])(a,"text")&&(o.text=a.text),Object(s["q"])(a,"rich")&&(o.rich=a.rich),Object(s["q"])(a,"textFill")&&(o.fill=a.textFill),Object(s["q"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(s["q"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(s["q"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(s["q"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(s["q"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},n={};var l=Object(s["q"])(a,"textPosition");i?n.position=l?a.textPosition:"inside":l&&(n.position=a.textPosition),Object(s["q"])(a,"textPosition")&&(n.position=a.textPosition),Object(s["q"])(a,"textOffset")&&(n.offset=a.textOffset),Object(s["q"])(a,"textRotation")&&(n.rotation=a.textRotation),Object(s["q"])(a,"textDistance")&&(n.distance=a.textDistance)}return NV(o,t),Object(s["k"])(o.rich,(function(t){NV(t,t)})),{textConfig:n,textContent:r}}function NV(t,e){e&&(e.font=e.textFont||e.font,Object(s["q"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(s["q"])(e,"textAlign")&&(t.align=e.textAlign),Object(s["q"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(s["q"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(s["q"])(e,"textWidth")&&(t.width=e.textWidth),Object(s["q"])(e,"textHeight")&&(t.height=e.textHeight),Object(s["q"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(s["q"])(e,"textPadding")&&(t.padding=e.textPadding),Object(s["q"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(s["q"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(s["q"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(s["q"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(s["q"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(s["q"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(s["q"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function zV(t,e,i){var n=t;n.textPosition=n.textPosition||i.position||"inside",null!=i.offset&&(n.textOffset=i.offset),null!=i.rotation&&(n.textRotation=i.rotation),null!=i.distance&&(n.textDistance=i.distance);var r=n.textPosition.indexOf("inside")>=0,o=t.fill||"#000";VV(n,e);var a=null==n.textFill;return r?a&&(n.textFill=i.insideFill||"#fff",!n.textStroke&&i.insideStroke&&(n.textStroke=i.insideStroke),!n.textStroke&&(n.textStroke=o),null==n.textStrokeWidth&&(n.textStrokeWidth=2)):(a&&(n.textFill=t.fill||i.outsideFill||"#000"),!n.textStroke&&i.outsideStroke&&(n.textStroke=i.outsideStroke)),n.text=e.text,n.rich=e.rich,Object(s["k"])(e.rich,(function(t){VV(t,t)})),n}function VV(t,e){e&&(Object(s["q"])(e,"fill")&&(t.textFill=e.fill),Object(s["q"])(e,"stroke")&&(t.textStroke=e.fill),Object(s["q"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(s["q"])(e,"font")&&(t.font=e.font),Object(s["q"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(s["q"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(s["q"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(s["q"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(s["q"])(e,"align")&&(t.textAlign=e.align),Object(s["q"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(s["q"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(s["q"])(e,"width")&&(t.textWidth=e.width),Object(s["q"])(e,"height")&&(t.textHeight=e.height),Object(s["q"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(s["q"])(e,"padding")&&(t.textPadding=e.padding),Object(s["q"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(s["q"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(s["q"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(s["q"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(s["q"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(s["q"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(s["q"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(s["q"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(s["q"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(s["q"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(s["q"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var qV={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$V=Object(s["F"])(qV),HV=(Object(s["N"])(Pi,(function(t,e){return t[e]=1,t}),{}),Pi.join(", "),["","style","shape","extra"]),GV=kr();function WV(t,e,i,n,r){var o=t+"Animation",a=Rl(t,n,r)||{},l=GV(e).userDuring;return a.duration>0&&(a.during=l?Object(s["c"])(iq,{el:e,userDuring:l}):null,a.setToFinal=!0,a.scope=t),Object(s["m"])(a,i[o]),a}function UV(t,e,i,n){n=n||{};var r=n.dataIndex,o=n.isInit,a=n.clearStyle,l=i.isAnimationEnabled(),c=GV(t),u=e.style;c.userDuring=e.during;var h={},d={};if(aq(t,e,d),rq("shape",e,d),rq("extra",e,d),!o&&l&&(oq(t,e,h),nq("shape",t,e,h),nq("extra",t,e,h),sq(t,e,u,h)),d.style=u,ZV(t,d,a),JV(t,e),l)if(o){var p={};Object(s["k"])(HV,(function(t){var i=t?e[t]:e;i&&i.enterFrom&&(t&&(p[t]=p[t]||{}),Object(s["m"])(t?p[t]:p,i.enterFrom))}));var f=WV("enter",t,e,i,r);f.duration>0&&t.animateFrom(p,f)}else QV(t,e,r||0,i,h);YV(t,e),u?t.dirty():t.markRedraw()}function YV(t,e){for(var i=GV(t).leaveToProps,n=0;n0&&t.animateFrom(r,o)}}function JV(t,e){Object(s["q"])(e,"silent")&&(t.silent=e.silent),Object(s["q"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof Io&&Object(s["q"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof Ba&&Object(s["q"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var tq={},eq={setTransform:function(t,e){return tq.el[t]=e,this},getTransform:function(t){return tq.el[t]},setShape:function(t,e){var i=tq.el,n=i.shape||(i.shape={});return n[t]=e,i.dirtyShape&&i.dirtyShape(),this},getShape:function(t){var e=tq.el.shape;if(e)return e[t]},setStyle:function(t,e){var i=tq.el,n=i.style;return n&&(n[t]=e,i.dirtyStyle&&i.dirtyStyle()),this},getStyle:function(t){var e=tq.el.style;if(e)return e[t]},setExtra:function(t,e){var i=tq.el.extra||(tq.el.extra={});return i[t]=e,this},getExtra:function(t){var e=tq.el.extra;if(e)return e[t]}};function iq(){var t=this,e=t.el;if(e){var i=GV(e).userDuring,n=t.userDuring;i===n?(tq.el=e,n(eq)):t.el=t.userDuring=null}}function nq(t,e,i,n){var r=i[t];if(r){var o,a=e[t];if(a){var l=i.transition,c=r.transition;if(c)if(!o&&(o=n[t]={}),KV(c))Object(s["m"])(o,a);else for(var u=nr(c),h=0;h=0){!o&&(o=n[t]={});var f=Object(s["F"])(a);for(h=0;h=0)){var p=t.getAnimationStyleProps(),f=p?p.style:null;if(f){!r&&(r=n.style={});var g=Object(s["F"])(i);for(u=0;u=0?e.getStore().get(r,i):void 0}var o=e.get(n.name,i),a=n&&n.ordinalMeta;return a?a.categories[o]:o}function S(i,n){null==n&&(n=l);var r=e.getItemVisual(n,"style"),o=r&&r.fill,a=r&&r.opacity,c=b(n,fq).getItemStyle();null!=o&&(c.fill=o),null!=a&&(c.opacity=a);var u={inheritColor:Object(s["C"])(o)?o:"#000"},h=_(n,fq),d=Zl(h,null,u,!1,!0);d.text=h.getShallow("show")?Object(s["P"])(t.getFormattedLabel(n,fq),gS(e,n)):null;var p=Ql(h,u,!1);return M(i,c),c=zV(c,d,p),i&&k(c,i),c.legacy=!0,c}function C(i,n){null==n&&(n=l);var r=b(n,pq).getItemStyle(),o=_(n,pq),a=Zl(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(s["Q"])(t.getFormattedLabel(n,pq),t.getFormattedLabel(n,fq),gS(e,n)):null;var c=Ql(o,null,!0);return M(i,r),r=zV(r,a,c),i&&k(r,i),r.legacy=!0,r}function k(t,e){for(var i in e)Object(s["q"])(e,i)&&(t[i]=e[i])}function M(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function T(t,i){if(null==i&&(i=l),Object(s["q"])(SV,t)){var n=e.getItemVisual(i,"style");return n?n[SV[t]]:null}if(Object(s["q"])(CV,t))return e.getItemVisual(i,t)}function O(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return yC(Object(s["i"])({axis:e},t))}}function A(){return i.getCurrentSeriesIndices()}function I(t){return oc(t,i)}}function jq(t){var e={};return Object(s["k"])(t.dimensions,(function(i){var n=t.getDimensionInfo(i);if(!n.isExtraCoord){var r=n.coordDim,o=e[r]=e[r]||[];o[n.coordDimIndex]=t.getDimensionIndex(i)}})),e}function Rq(t,e,i,n,r,o,a){if(n){var s=Bq(t,e,i,n,r,o);return s&&a.setItemGraphicEl(i,s),s&&Sl(s,n.focus,n.blurScope,n.emphasisDisabled),s}o.remove(e)}function Bq(t,e,i,n,r,o){var a=-1,l=e;e&&Fq(e,n,r)&&(a=Object(s["r"])(o.childrenRef(),e),e=null);var c=!e,u=e;u?u.clearStates():(u=Aq(n),l&&Mq(l,u)),!1===n.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),wq.normal.cfg=wq.normal.conOpt=wq.emphasis.cfg=wq.emphasis.conOpt=wq.blur.cfg=wq.blur.conOpt=wq.select.cfg=wq.select.conOpt=null,wq.isLegacy=!1,zq(u,i,n,r,c,wq),Nq(u,i,n,r,c),Iq(t,u,i,n,wq,r,c),Object(s["q"])(n,"info")&&(kV(u).info=n.info);for(var h=0;h=0?o.replaceAt(u,a):o.add(u),u}function Fq(t,e,i){var n=kV(t),r=e.type,o=e.shape,a=e.style;return i.isUniversalTransitionEnabled()||null!=r&&r!==n.customGraphicType||"path"===r&&Kq(o)&&Xq(o)!==n.customPathData||"image"===r&&Object(s["q"])(a,"image")&&a.image!==n.customImagePath}function Nq(t,e,i,n,r){var o=i.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Fq(a,o,n)&&(a=null),a||(a=Aq(o),t.setClipPath(a)),Iq(null,a,e,o,null,n,r)}}function zq(t,e,i,n,r,o){if(!t.isGroup){Vq(i,null,o),Vq(i,pq,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(null!=a||null!=s||null!=c||null!=l){var u=t.getTextContent();if(!1===a)u&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=Aq(a),t.setTextContent(u)),Iq(null,u,e,a,null,n,r);for(var h=a&&a.style,d=0;d=u;h--){var d=e.childAt(h);XV(d,kV(e).option,r)}}}function Gq(t){new yw(t.oldChildren,t.newChildren,Wq,Wq,t).add(Uq).update(Uq).remove(Yq).execute()}function Wq(t,e){var i=t&&t.name;return null!=i?i:xq+e}function Uq(t,e){var i=this.context,n=null!=t?i.newChildren[t]:null,r=null!=e?i.oldChildren[e]:null;Bq(i.api,r,i.dataIndex,n,i.seriesModel,i.group)}function Yq(t){var e=this.context,i=e.oldChildren[t];XV(i,kV(i).option,e.seriesModel)}function Xq(t){return t&&(t.pathData||t.d)}function Kq(t){return t&&(Object(s["q"])(t,"pathData")||Object(s["q"])(t,"d"))}function Zq(t){t.registerChartView(Oq),t.registerSeriesModel(TV)}var Qq=kr(),Jq=s["d"],t$=s["c"],e$=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,l=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(l&&l.hide());a&&a.show(),l&&l.show();var c={};this.makeElOption(c,r,t,e,i);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=s["h"](i$,e,h);this.updatePointerEl(a,c,d),this.updateLabelEl(a,c,d,e)}else a=this._group=new bn,this.createPointerEl(a,c,t,e),this.createLabelEl(a,c,t,e),i.getZr().add(a);a$(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=HO(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},t.prototype.makeElOption=function(t,e,i,n,r){},t.prototype.createPointerEl=function(t,e,i,r){var o=e.pointer;if(o){var a=Qq(t).pointerEl=new n[o.type](Jq(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=Qq(t).labelEl=new ys(Jq(e.label));t.add(r),r$(r,n)}},t.prototype.updatePointerEl=function(t,e,i){var n=Qq(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,i,n){var r=Qq(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),r$(r,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),r=this._handle,o=i.getModel("handle"),a=i.get("status");if(!o.get("show")||!a||"hide"===a)return r&&n.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Om(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){tt(t.event)},onmousedown:t$(this._onHandleDragMove,this,0,0),drift:t$(this._onHandleDragMove,this),ondragend:t$(this._onHandleDragEnd,this)}),n.add(r)),a$(r,i,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");s["t"](l)||(l=[l,l]),r.scaleX=l[0]/2,r.scaleY=l[1]/2,Xm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){i$(this._axisPointerModel,!e&&this._moveAnimation,this._handle,o$(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(o$(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(o$(n)),Qq(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Km(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},t}();function i$(t,e,i,n){n$(Qq(i).lastProp,n)||(Qq(i).lastProp=n,e?Fl(i,n,t):(i.stopAnimation(),i.attr(n)))}function n$(t,e){if(s["A"](t)&&s["A"](e)){var i=!0;return s["k"](e,(function(e,n){i=i&&n$(t[n],e)})),!!i}return t===e}function r$(t,e){t[e.get(["label","show"])?"show":"hide"]()}function o$(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function a$(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)}))}var s$=e$;function l$(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function c$(t,e,i,n,r){var o=i.get("value"),a=h$(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),s=i.getModel("label"),l=bu(s.get("padding")||0),c=s.getFont(),u=Zi(a,c),h=r.position,d=u.width+l[1]+l[3],p=u.height+l[0]+l[2],f=r.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),u$(h,d,p,n);var m=s.get("backgroundColor");m&&"auto"!==m||(m=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Zl(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function u$(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function h$(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var l={value:DT(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};s["k"](n,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&l.seriesData.push(r)})),s["C"](a)?o=a.replace("{value}",o):s["w"](a)&&(o=a(l))}return o}function d$(t,e,i){var n=fi();return bi(n,n,i.rotation),yi(n,n,i.position),xm([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function p$(t,e,i,n,r,o){var a=RO.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get(["label","margin"]),c$(e,n,r,o,{position:d$(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function f$(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function g$(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function m$(t,e,i,n,r,o){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:o,clockwise:!0}}var v$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=y$(a,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var u=l$(n),h=b$[s](o,c,l);h.style=u,t.graphicKey=h.type,t.pointer=h}var d=pO(a.model,i);p$(e,t,d,i,n,r)},e.prototype.getHandleTransform=function(t,e,i){var n=pO(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=d$(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,i,n){var r=i.axis,o=r.grid,a=r.getGlobalExtent(!0),s=y$(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,c=[t.x,t.y];c[l]+=e[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var u=(s[1]+s[0])/2,h=[u,u];h[l]=c[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(s$);function y$(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var b$={line:function(t,e,i){var n=f$([e,i[0]],[e,i[1]],_$(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:g$([e-n/2,i[0]],[n,r],_$(t))}}};function _$(t){return"x"===t.dim?0:1}var x$=v$,w$=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Uu),S$=w$,C$=kr(),k$=s["k"];function M$(t,e,i){if(!a["a"].node){var n=e.getZr();C$(n).records||(C$(n).records={}),T$(n,e);var r=C$(n).records[t]||(C$(n).records[t]={});r.handler=i}}function T$(t,e){function i(i,n){t.on(i,(function(i){var r=P$(e);k$(C$(t).records,(function(t){t&&n(t,i,r.dispatchAction)})),O$(r.pendings,e)}))}C$(t).initialized||(C$(t).initialized=!0,i("click",s["h"](I$,"click")),i("mousemove",s["h"](I$,"mousemove")),i("globalout",A$))}function O$(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function A$(t,e,i){t.handler("leave",null,i)}function I$(t,e,i,n){e.handler(t,i,n)}function P$(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function D$(t,e){if(!a["a"].node){var i=e.getZr(),n=(C$(i).records||{})[t];n&&(C$(i).records[t]=null)}}var E$=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";M$("axisPointer",i,(function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){D$("axisPointer",e)},e.prototype.dispose=function(t,e){D$("axisPointer",e)},e.type="axisPointer",e}(Sf),L$=E$;function j$(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=Cr(o,t);if(null==a||a<0||s["t"](a))return{point:[]};var l=o.getItemGraphicEl(a),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(c&&c.dataToPoint)if(t.isStacked){var u=c.getBaseAxis(),h=c.getOtherAxis(u),d=h.dim,p=u.dim,f="x"===d||"radius"===d?1:0,g=o.mapDimension(p),m=[];m[f]=o.get(g,a),m[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(o.getValues(s["H"](c.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(l){var v=l.getBoundingRect().clone();v.applyTransform(l.transform),n=[v.x+v.width/2,v.y+v.height/2]}return{point:n,el:l}}var R$=kr();function B$(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(s["c"])(i.dispatchAction,i),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){U$(r)&&(r=j$({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var c=U$(r),u=o.axesInfo,h=l.axesInfo,d="leave"===n||U$(r),p={},f={},g={list:[],map:{}},m={showPointer:Object(s["h"])(z$,f),showTooltip:Object(s["h"])(V$,g)};Object(s["k"])(l.coordSysMap,(function(t,e){var i=c||t.containPoint(r);Object(s["k"])(l.coordSysAxesInfo[e],(function(t,e){var n=t.axis,o=G$(u,t);if(!d&&i&&(!u||o)){var a=o&&o.value;null!=a||c||(a=n.pointToData(r)),null!=a&&F$(t,a,m,!1,p)}}))}));var v={};return Object(s["k"])(h,(function(t,e){var i=t.linkGroup;i&&!f[e]&&Object(s["k"])(i.axesInfo,(function(e,n){var r=f[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,W$(e),W$(t)))),v[t.key]=o}}))})),Object(s["k"])(v,(function(t,e){F$(h[e],t,m,!0,p)})),q$(f,h,p),$$(g,r,t,a),H$(h,a,i),p}}function F$(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=N$(e,t),l=a.payloadBatch,c=a.snapToValue;l[0]&&null==r.seriesIndex&&Object(s["m"])(r,l[0]),!n&&t.snap&&o.containData(c)&&null!=c&&(e=c),i.showPointer(t,e,l),i.showTooltip(t,a,c)}else i.showPointer(t,e)}function N$(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,l=-1;return Object(s["k"])(e.seriesModels,(function(e,c){var u,h,d=e.getData().mapDimensionsAll(n);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(d,t,i);h=p.dataIndices,u=p.nestestValue}else{if(h=e.getData().indicesOfNearest(d[0],t,"category"===i.type?.5:null),!h.length)return;u=e.getData().get(d[0],h[0])}if(null!=u&&isFinite(u)){var f=t-u,g=Math.abs(f);g<=a&&((g=0&&l<0)&&(a=g,l=f,r=u,o.length=0),Object(s["k"])(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function z$(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function V$(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,c=UO(l),u=t.map[c];u||(u=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function q$(t,e,i){var n=i.axesInfo=[];Object(s["k"])(e,(function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function $$(t,e,i,n){if(!U$(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}function H$(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=R$(n)[r]||{},a=R$(n)[r]={};Object(s["k"])(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&Object(s["k"])(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var l=[],c=[];Object(s["k"])(o,(function(t,e){!a[e]&&c.push(t)})),Object(s["k"])(a,(function(t,e){!o[e]&&l.push(t)})),c.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function G$(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function W$(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function U$(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Y$(t){KO.registerAxisPointerClass("CartesianAxisPointer",x$),t.registerComponentModel(S$),t.registerComponentView(L$),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(s["t"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=BO(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},B$)}function X$(t){A_(lA),A_(Y$)}var K$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),c=o.dataToCoord(e),u=n.get("type");if(u&&"none"!==u){var h=l$(n),d=Q$[u](o,a,c,l);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=n.get(["label","margin"]),f=Z$(e,i,n,a,p);c$(t,i,n,r,f)},e}(s$);function Z$(t,e,i,n,r){var o=e.axis,a=o.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,h=n.getRadiusAxis().getExtent();if("radius"===o.dim){var d=fi();bi(d,d,s),yi(d,d,[n.cx,n.cy]),l=xm([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=RO.innerTextLayout(s,p*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var g=h[1];l=n.coordToPoint([g+r,a]);var m=n.cx,v=n.cy;c=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var Q$={line:function(t,e,i,n){return"angle"===t.dim?{type:"Line",shape:f$(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:m$(e.cx,e.cy,n[0],n[1],(-i-r/2)*o,(r/2-i)*o)}:{type:"Sector",shape:m$(e.cx,e.cy,i-r/2,i+r/2,0,2*Math.PI)}}},J$=K$,tH=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.findAxisModel=function(t){var e,i=this.ecModel;return i.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Uu),eH=tH,iH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ar).models[0]},e.type="polarAxis",e}(Uu);s["K"](iH,xM);var nH=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="angleAxis",e}(iH),rH=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="radiusAxis",e}(iH),oH=function(t){function e(e,i){return t.call(this,"radius",e,i)||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(uO);oH.prototype.dataToRadius=uO.prototype.dataToCoord,oH.prototype.radiusToData=uO.prototype.coordToData;var aH=oH,sH=kr(),lH=function(t){function e(e,i){return t.call(this,"angle",e,i||[0,360])||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),i=t.scale,n=i.getExtent(),r=i.count();if(n[1]-n[0]<1)return 0;var o=n[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=Zi(null==o?"":o+"",e.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),d=sH(t.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-r)<=1&&p>h?h=p:(d.lastTickCount=r,d.lastAutoInterval=h),h},e}(uO);lH.prototype.dataToAngle=uO.prototype.dataToCoord,lH.prototype.angleToData=uO.prototype.coordToData;var cH=lH,uH=["radius","angle"],hH=function(){function t(t){this.dimensions=uH,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new aH,this._angleAxis=new cH,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),r=n.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);n.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;var l=Math.atan2(-i,e)/Math.PI*180,c=la)l+=360*c;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,r=-Math.sin(i)*e+this.cy;return[n,r]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),i=e.getExtent().slice();i[0]>i[1]&&i.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var i=t-this.cx,n=e-this.cy,r=i*i+n*n-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,i){var n=dH(e);return n===this?this.dataToPoint(i):null},t.prototype.convertFromPixel=function(t,e,i){var n=dH(e);return n===this?this.pointToData(i):null},t}();function dH(t){var e=t.seriesModel,i=t.polarModel;return i&&i.coordinateSystem||e&&e.coordinateSystem}var pH=hH;function fH(t,e,i){var n=e.get("center"),r=i.getWidth(),o=i.getHeight();t.cx=Pn(n[0],r),t.cy=Pn(n[1],o);var a=t.getRadiusAxis(),l=Math.min(r,o)/2,c=e.get("radius");null==c?c=[0,"100%"]:s["t"](c)||(c=[0,c]);var u=[Pn(c[0],l),Pn(c[1],l)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function gH(t,e){var i=this,n=i.getAngleAxis(),r=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===i){var e=t.getData();s["k"](BT(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),s["k"](BT(e,"angle"),(function(t){n.scale.unionExtentFromData(e,t)}))}})),OT(n.scale,n.model),OT(r.scale,r.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),a=360/n.scale.count();n.inverse?o[1]+=a:o[1]-=a,n.setExtent(o[0],o[1])}}function mH(t){return"angleAxis"===t.mainType}function vH(t,e){if(t.type=e.get("type"),t.scale=AT(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),mH(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}var yH={dimensions:uH,create:function(t,e){var i=[];return t.eachComponent("polar",(function(t,n){var r=new pH(n+"");r.update=gH;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");vH(o,s),vH(a,l),fH(r,t,e),i.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Ar).models[0];0,t.coordinateSystem=e.coordinateSystem}})),i}},bH=yH,_H=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function xH(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),r=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:r[0],y2:r[1]}}function wH(t){var e=t.getRadiusAxis();return e.inverse?0:1}function SH(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}var CH=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.axisPointerClass="PolarAxisPointer",i}return o(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,r=n.getRadiusAxis().getExtent(),o=i.getTicksCoords(),a=i.getMinorTicksCoords(),l=s["H"](i.getViewLabels(),(function(t){t=s["d"](t);var e=i.scale,n="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=i.dataToCoord(n),t}));SH(l),SH(o),s["k"](_H,(function(e){!t.get([e,"show"])||i.scale.isBlank()&&"axisLine"!==e||kH[e](this.group,t,n,o,a,r,l)}),this)}},e.type="angleAxis",e}(KO),kH={axisLine:function(t,e,i,n,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=wH(i),c=l?0:1;a=0===o[c]?new Kf({shape:{cx:i.cx,cy:i.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new _g({shape:{cx:i.cx,cy:i.cy,r:o[l],r0:o[c]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,i,n,r,o){var a=e.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),c=o[wH(i)],u=s["H"](n,(function(t){return new Dg({shape:xH(i,[c,c+l],t.coord)})}));t.add(gm(u,{style:s["i"](a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,i,n,r,o){if(r.length){for(var a=e.getModel("axisTick"),l=e.getModel("minorTick"),c=(a.get("inside")?-1:1)*l.get("length"),u=o[wH(i)],h=[],d=0;dg?"left":"right",y=Math.abs(f[1]-m)/p<.3?"middle":f[1]>m?"top":"bottom";if(l&&l[d]){var b=l[d];s["A"](b)&&b.textStyle&&(a=new xc(b.textStyle,c,c.ecModel))}var _=new ys({silent:RO.isLabelSilent(e),style:Zl(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:n.formattedLabel,align:v,verticalAlign:y})});if(t.add(_),h){var x=RO.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=n.rawLabel,bs(_).eventData=x}}),this)},splitLine:function(t,e,i,n,r,o){var a=e.getModel("splitLine"),l=a.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d=0?"p":"n",M=_;y&&(n[s][C]||(n[s][C]={p:_,n:_}),M=n[s][C][k]);var T=void 0,O=void 0,A=void 0,I=void 0;if("radius"===h.dim){var P=h.dataToCoord(S)-_,D=o.dataToCoord(C);Math.abs(P)=I})}}}))}function RH(t){var e={};s["k"](t,(function(t,i){var n=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=LH(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/n.count(),c=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;e[a]=c;var h=EH(t);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=Pn(t.get("barWidth"),l),p=Pn(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),p&&(u[h].maxWidth=p),null!=f&&(c.gap=f),null!=g&&(c.categoryGap=g)}));var i={};return s["k"](e,(function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=Pn(t.categoryGap,r),a=Pn(t.gap,1),l=t.remainedWidth,c=t.autoWidthCount,u=(l-o)/(c+(c-1)*a);u=Math.max(u,0),s["k"](n,(function(t,e){var i=t.maxWidth;i&&i=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),i=this.getRect(),n=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[r]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-r]=0===r?i.y+i.height/2:i.x+i.width/2,n},t.prototype.convertToPixel=function(t,e,i){var n=tG(e);return n===this?this.dataToPoint(i):null},t.prototype.convertFromPixel=function(t,e,i){var n=tG(e);return n===this?this.pointToData(i):null},t}();function tG(t){var e=t.seriesModel,i=t.singleAxisModel;return i&&i.coordinateSystem||e&&e.coordinateSystem}var eG=JH;function iG(t,e){var i=[];return t.eachComponent("singleAxis",(function(n,r){var o=new eG(n,t,e);o.name="single_"+r,o.resize(n,e),n.coordinateSystem=o,i.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Ar).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),i}var nG={create:iG,dimensions:QH},rG=nG,oG=["x","y"],aG=["width","height"],sG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.coordinateSystem,s=uG(a,1-cG(o)),l=a.dataToPoint(e)[0],c=n.get("type");if(c&&"none"!==c){var u=l$(n),h=lG[c](o,l,s);h.style=u,t.graphicKey=h.type,t.pointer=h}var d=qH(i);p$(e,t,d,i,n,r)},e.prototype.getHandleTransform=function(t,e,i){var n=qH(e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=d$(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,i,n){var r=i.axis,o=r.coordinateSystem,a=cG(r),s=uG(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var c=uG(o,1-a),u=(c[1]+c[0])/2,h=[u,u];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(s$),lG={line:function(t,e,i){var n=f$([e,i[0]],[e,i[1]],cG(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:g$([e-n/2,i[0]],[n,r],cG(t))}}};function cG(t){return t.isHorizontal()?0:1}function uG(t,e){var i=t.getRect();return[i[oG[e]],i[oG[e]]+i[aG[e]]]}var hG=sG,dG=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="single",e}(Sf);function pG(t){A_(Y$),KO.registerAxisPointerClass("SingleAxisPointer",hG),t.registerComponentView(dG),t.registerComponentView(UH),t.registerComponentModel(XH),LM(t,"single",XH,XH.defaultOption),t.registerCoordinateSystem("single",rG)}var fG=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(e,i,n){var r=qu(e);t.prototype.init.apply(this,arguments),gG(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),gG(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Uu);function gG(t,e){var i,n=t.cellSize;i=s["t"](n)?n:t.cellSize=[n,n],1===i.length&&(i[1]=i[0]);var r=s["H"]([0,1],(function(t){return Nu(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));Vu(t,e,{type:"box",ignoreSize:r})}var mG=fG,vG=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=this.group;n.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,n),this._renderLines(t,o,a,n),this._renderYearText(t,o,a,n),this._renderMonthText(t,s,a,n),this._renderWeekText(t,s,o,a,n)},e.prototype._renderDayRect=function(t,e,i){for(var n=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),a=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,c=new ts({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});i.add(c)}},e.prototype._renderLines=function(t,e,i,n){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,u=0;c.time<=e.end.time;u++){d(c.formatedDate),0===u&&(c=o.getDateInfo(e.start.y+"-"+e.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,i);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,n)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,i),a,n),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,i),a,n)},e.prototype._getEdgesPoints=function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===i?0:1;return n[0][r]=n[0][r]-e/2,n[1][r]=n[1][r]+e/2,n},e.prototype._drawSplitline=function(t,e,i){var n=new Og({z2:20,shape:{points:t},style:e});i.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,e,i){for(var n=t.coordinateSystem,r=n.getDateInfo(e),o=[],a=0;a<7;a++){var s=n.getNextNDay(r.time,a),l=n.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===i?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(s["C"])(t)&&t?Tu(t,e):Object(s["w"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,i,n,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===n?(a+=r,s=["center","top"]):"left"===n?o-=r:"right"===n?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==n&&"right"!==n||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,i,n){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===i?0:1,h={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new ys({z2:30,style:Zl(r,{text:g})});m.attr(this._yearTextPositionControl(m,h[a],i,a,o)),n.add(m)}},e.prototype._monthTextPositionControl=function(t,e,i,n,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===i?(l+=r,e&&(o="center"),"start"===n&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===n&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,i,n){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),l=r.get("position"),c=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(s["C"])(o)||(o&&(e=Bc(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===l?0:1,d="horizontal"===i?0:1;a="start"===l?-a:a;for(var p="center"===c,f=0;f=n.start.time&&i.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];i[0].time>i[1].time&&(e=!0,i.reverse());var n=Math.floor(i[1].time/bG)-Math.floor(i[0].time/bG)+1,r=new Date(i[0].time),o=r.getDate(),a=i[1].date.getDate();r.setDate(o+n-1);var s=r.getDate();if(s!==a){var l=r.getTime()-i[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-i[1].time)*l>0)n-=l,r.setDate(s-l)}var c=Math.floor((n+i[0].day+6)/7),u=e?1-c:c-1;return e&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:n,weeks:c,nthWeek:u,fweek:i[0].day,lweek:i[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return null;var r=7*(t-1)-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+r),this.getDateInfo(o)},t.create=function(e,i){var n=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,i);n.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},t.dimensions=["time","value"],t}();function xG(t){var e=t.calendarModel,i=t.seriesModel,n=e?e.coordinateSystem:i?i.coordinateSystem:null;return n}var wG=_G;function SG(t){t.registerComponentModel(mG),t.registerComponentView(yG),t.registerCoordinateSystem("calendar",wG)}function CG(t,e){var i=t.existing;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}function kG(t,e){var i;return s["k"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}function MG(t,e,i){var n=s["m"]({},i),r=t[e],o=i.$action||"merge";"merge"===o?r?(s["I"](r,n,!0),Vu(r,n,{ignoreSize:!0}),$u(i,r),AG(i,r),AG(i,r,"shape"),AG(i,r,"style"),AG(i,r,"extra"),i.clipPath=r.clipPath):t[e]=n:"replace"===o?t[e]=n:"remove"===o&&r&&(t[e]=null)}var TG=["transition","enterFrom","leaveTo"],OG=TG.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function AG(t,e,i){if(i&&(!t[i]&&e[i]&&(t[i]={}),t=t[i],e=e[i]),t&&e)for(var n=i?TG:OG,r=0;r=0;c--){u=i[c],h=vr(u.id,null),d=null!=h?r.get(h):null;if(d){p=d.parent,m=EG(p);var v=p===n?{width:o,height:a}:{width:m.width,height:m.height},y={},b=Fu(d,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!EG(d).isNew&&b){for(var _=u.transition,x={},w=0;w=0)?x[S]=C:d[S]=C}Fl(d,x,t,0)}else d.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(i){BG(i,EG(i).option,e,t._lastGraphicModel)})),this._elMap=s["f"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Sf);function jG(t){var e=s["q"](DG,t)?DG[t]:hm(t);var i=new e({});return EG(i).type=t,i}function RG(t,e,i,n){var r=jG(i);return e.add(r),n.set(t,r),EG(r).id=t,EG(r).isNew=!0,r}function BG(t,e,i,n){var r=t&&t.parent;r&&("group"===t.type&&t.traverse((function(t){BG(t,e,i,n)})),XV(t,e,n),i.removeKey(EG(t).id))}function FG(t,e,i,n){t.isGroup||s["k"]([["cursor",Io.prototype.cursor],["zlevel",n||0],["z",i||0],["z2",0]],(function(i){var n=i[0];s["q"](e,n)?t[n]=s["P"](e[n],i[1]):null==t[n]&&(t[n]=i[1])})),s["k"](s["F"](e),(function(i){if(0===i.indexOf("on")){var n=e[i];t[i]=s["w"](n)?n:null}})),s["q"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function NG(t){return t=s["m"]({},t),s["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Du),(function(e){delete t[e]})),t}function zG(t,e,i){var n=bs(t).eventData;t.silent||t.ignore||n||(n=bs(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=i.info)}function VG(t){t.registerComponentModel(PG),t.registerComponentView(LG),t.registerPreprocessor((function(t){var e=t.graphic;Object(s["t"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var qG=["x","y","radius","angle","single"],$G=["cartesian2d","polar","singleAxis"];function HG(t){var e=t.get("coordinateSystem");return Object(s["r"])($G,e)>=0}function GG(t){return t+"Axis"}function WG(t,e){var i,n=Object(s["f"])(),r=[],o=Object(s["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||l(t)}));do{i=!1,t.eachComponent("dataZoom",a)}while(i);function a(t){!o.get(t.uid)&&c(t)&&(l(t),i=!0)}function l(t){o.set(t.uid,!0),r.push(t),u(t)}function c(t){var e=!1;return t.eachTargetAxis((function(t,i){var r=n.get(t);r&&r[i]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(n.get(t)||n.set(t,[]))[e]=!0}))}return r}function UG(t){var e=t.ecModel,i={infoList:[],infoMap:Object(s["f"])()};return t.eachTargetAxis((function(t,n){var r=e.getComponent(GG(t),n);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=i.infoMap.get(a);s||(s={model:o,axisModels:[]},i.infoList.push(s),i.infoMap.set(a,s)),s.axisModels.push(r)}}})),i}var YG=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),XG=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._autoThrottle=!0,i._noTarget=!0,i._rangePropMode=["percent","percent"],i}return o(e,t),e.prototype.init=function(t,e,i){var n=KG(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var e=KG(t);Object(s["I"])(this.option,t,!0),Object(s["I"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(s["f"])(),i=this._fillSpecifiedTargetAxis(e);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(s["k"])(qG,(function(i){var n=this.getReferringComponents(GG(i),Ir);if(n.specified){e=!0;var r=new YG;Object(s["k"])(n.models,(function(t){r.add(t.componentIndex)})),t.set(i,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var i=this.ecModel,n=!0;if(n){var r="vertical"===e?"y":"x",o=i.findComponents({mainType:r+"Axis"});a(o,r)}if(n){o=i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,i){var r=e[0];if(r){var o=new YG;if(o.add(r.componentIndex),t.set(i,o),n=!1,"x"===i||"y"===i){var a=r.getReferringComponents("grid",Ar).models[0];a&&Object(s["k"])(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Ar).models[0]&&o.add(t.componentIndex)}))}}}n&&Object(s["k"])(qG,(function(e){if(n){var r=i.findComponents({mainType:GG(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new YG;o.add(r[0].componentIndex),t.set(e,o),n=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,i=this.get("rangeMode");Object(s["k"])([["start","startValue"],["end","endValue"]],(function(n,r){var o=null!=t[n[0]],a=null!=t[n[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":i?e[r]=i[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,i){null==t&&(t=this.ecModel.getComponent(GG(e),i))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(i,n){Object(s["k"])(i.indexList,(function(i){t.call(e,n,i)}))}))},e.prototype.getAxisProxy=function(t,e){var i=this.getAxisModel(t,e);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[e])return this.ecModel.getComponent(GG(t),e)},e.prototype.setRawRange=function(t){var e=this.option,i=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(n){null==t[n[0]]&&null==t[n[1]]||(e[n[0]]=i[n[0]]=t[n[0]],e[n[1]]=i[n[1]]=t[n[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(s["k"])(["start","startValue","end","endValue"],(function(i){e[i]=t[i]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,i=this._targetAxisInfoMap.keys(),n=0;no[1];if(u&&!h&&!d)return!0;u&&(r=!0),h&&(e=!0),d&&(i=!0)}return r&&e&&i}))}else rW(n,(function(i){if("empty"===r)t.setData(e=e.map(i,(function(t){return a(t)?t:NaN})));else{var n={};n[i]=o,e.selectRange(n)}}));rW(n,(function(t){e.setApproximateExtent(o,t)}))}}))}function a(t){return t>=o[0]&&t<=o[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;rW(["min","max"],(function(n){var r=e.get(n+"Span"),o=e.get(n+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=In(i[0]+o,i,[0,100],!0):null!=r&&(o=In(r,[0,100],i,!0)-i[0]),t[n+"Span"]=r,t[n+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var n=Rn(i,[0,500]);n=Math.min(n,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+i[0].toFixed(n)),100!==e[1]&&r.setDeterminedMinMax("max",+i[1].toFixed(n)),r.freeze()}},t}();function sW(t,e,i){var n=[1/0,-1/0];rW(i,(function(t){FT(n,t.getData(),e)}));var r=t.getAxisModel(),o=CT(r.axis.scale,r,n).calculate();return[o.min,o.max]}var lW=aW,cW={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(i){i.eachTargetAxis((function(n,r){var o=t.getComponent(GG(n),r);e(n,r,o,i)}))}))}e((function(t,e,i,n){i.__dzAxisProxy=null}));var i=[];e((function(e,n,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new lW(e,n,o,t),i.push(r.__dzAxisProxy))}));var n=Object(s["f"])();return Object(s["k"])(i,(function(t){Object(s["k"])(t.getTargetSeriesModels(),(function(t){n.set(t.uid,t)}))})),n},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,i){t.getAxisProxy(e,i).reset(t)})),t.eachTargetAxis((function(i,n){t.getAxisProxy(i,n).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}}))}},uW=cW;function hW(t){t.registerAction("dataZoom",(function(t,e){var i=WG(e,t);Object(s["k"])(i,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var dW=!1;function pW(t){dW||(dW=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,uW),hW(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function fW(t){t.registerComponentModel(JG),t.registerComponentView(nW),pW(t)}var gW=function(){function t(){}return t}(),mW={};function vW(t,e){mW[t]=e}function yW(t){return mW[t]}var bW=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;s["k"](this.option.feature,(function(t,i){var n=yW(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(e)),s["I"](t,n.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Uu),_W=bW;function xW(t,e,i){var n=e.getBoxLayoutParams(),r=e.get("padding"),o={width:i.getWidth(),height:i.getHeight()},a=Bu(n,o,r);ju(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Fu(t,n,o,r)}function wW(t,e){var i=bu(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new ts({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var SW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,i,n){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),l=t.get("feature")||{},c=this._features||(this._features={}),u=[];s["k"](l,(function(t,e){u.push(e)})),new yw(this._featureNames||[],u).add(h).update(h).remove(s["h"](h,null)).execute(),this._featureNames=u,xW(r,t,i),r.add(wW(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,n=t.ensureState("emphasis"),a=n.textConfig||(n.textConfig={}),l=t.getTextContent(),c=l&&l.ensureState("emphasis");if(c&&!s["w"](c)&&e){var u=c.style||(c.style={}),h=Zi(e,ys.makeFont(u)),d=t.x+r.x,p=t.y+r.y+o,f=!1;p+h.height>i.getHeight()&&(a.position="top",f=!0);var g=f?-5-h.height:o+10;d+h.width/2>i.getWidth()?(a.position=["100%",g],u.align="right"):d-h.width/2<0&&(a.position=[0,g],u.align="left")}}))}function h(r,o){var a,s=u[r],h=u[o],p=l[s],f=new xc(p,t,t.ecModel);if(n&&null!=n.newTitle&&n.featureName===s&&(p.title=n.newTitle),s&&!h){if(CW(s))a={onclick:f.option.onclick,featureName:s};else{var g=yW(s);if(!g)return;a=new g}c[s]=a}else if(a=c[h],!a)return;a.uid=Sc("toolbox-feature"),a.model=f,a.ecModel=e,a.api=i;var m=a instanceof gW;s||!h?!f.get("show")||m&&a.unusable?m&&a.remove&&a.remove(e,i):(d(f,a,s),f.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&("emphasis"===e?rl:ol)(n[t])},a instanceof gW&&a.render&&a.render(f,e,i,n)):m&&a.dispose&&a.dispose(e,i)}function d(n,l,c){var u,h,d=n.getModel("iconStyle"),p=n.getModel(["emphasis","iconStyle"]),f=l instanceof gW&&l.getIcons?l.getIcons():n.get("icon"),g=n.get("title")||{};s["C"](f)?(u={},u[c]=f):u=f,s["C"](g)?(h={},h[c]=g):h=g;var m=n.iconPaths={};s["k"](u,(function(c,u){var f=Om(c,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(d.getItemStyle());var g=f.ensureState("emphasis");g.style=p.getItemStyle();var v=new ys({style:{text:h[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});f.setTextContent(v),Em({el:f,componentModel:t,itemName:u,formatterParamsExtra:{title:h[u]}}),f.__title=h[u],f.on("mouseover",(function(){var e=p.getItemStyle(),n=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";v.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),f.setTextConfig({position:p.get("textPosition")||n}),v.ignore=!t.get("showTitle"),i.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==n.get(["iconStatus",u])&&i.leaveEmphasis(this),v.hide()})),("emphasis"===n.get(["iconStatus",u])?rl:ol)(f),r.add(f),f.on("click",s["c"](l.onclick,l,e,i,u)),m[u]=f}))}},e.prototype.updateView=function(t,e,i,n){s["k"](this._features,(function(t){t instanceof gW&&t.updateView&&t.updateView(t.model,e,i,n)}))},e.prototype.remove=function(t,e){s["k"](this._features,(function(i){i instanceof gW&&i.remove&&i.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){s["k"](this._features,(function(i){i instanceof gW&&i.dispose&&i.dispose(t,e)}))},e.type="toolbox",e}(Sf);function CW(t){return 0===t.indexOf("my")}var kW=SW,MW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":i.get("type",!0)||"png",l=e.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),c=a["a"].browser;if(Object(s["w"])(MouseEvent)&&(c.newEdge||!c.ie&&!c.edge)){var u=document.createElement("a");u.download=n+"."+o,u.target="_blank",u.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||r){var d=l.split(","),p=d[0].indexOf("base64")>-1,f=r?decodeURIComponent(d[1]):d[1];p&&(f=window.atob(f));var g=n+"."+o;if(window.navigator.msSaveOrOpenBlob){var m=f.length,v=new Uint8Array(m);while(m--)v[m]=f.charCodeAt(m);var y=new Blob([v]);window.navigator.msSaveOrOpenBlob(y,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var _=b.contentWindow,x=_.document;x.open("image/svg+xml","replace"),x.write(f),x.close(),_.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var w=i.get("lang"),S='',C=window.open();C.document.write(S),C.document.title=n}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(gW),TW=MW,OW="__ec_magicType_stack__",AW=[["line","bar"],["stack"]],IW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return s["k"](t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,i){var n=this.model,r=n.get(["seriesIndex",i]);if(PW[i]){var o,a={series:[]},l=function(t){var e=t.subType,r=t.id,o=PW[i](e,r,t,n);o&&(s["i"](o,t.option),a.series.push(o));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var c=l.getAxesByScale("ordinal")[0];if(c){var u=c.dim,h=u+"Axis",d=t.getReferringComponents(h,Ar).models[0],p=d.componentIndex;a[h]=a[h]||[];for(var f=0;f<=p;f++)a[h][p]=a[h][p]||{};a[h][p].boundaryGap="bar"===i}}};s["k"](AW,(function(t){s["r"](t,i)>=0&&s["k"](t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},l);var c=i;"stack"===i&&(o=s["I"]({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),"emphasis"!==n.get(["iconStatus",i])&&(c="tiled")),e.dispatchAction({type:"changeMagicType",currentType:c,newOption:a,newTitle:o,featureName:"magicType"})}},e}(gW),PW={line:function(t,e,i,n){if("bar"===t)return s["I"]({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,i,n){if("line"===t)return s["I"]({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,i,n){var r=i.get("stack")===OW;if("line"===t||"bar"===t)return n.setIconStatus("stack",r?"normal":"emphasis"),s["I"]({id:e,stack:r?"":OW},n.get(["option","stack"])||{},!0)}};y_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var DW=IW,EW=new Array(60).join("-"),LW="\t";function jW(t){var e={},i=[],n=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else i.push(t)}})),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function RW(t){var e=[];return s["k"](t,(function(t,i){var n=t.categoryAxis,r=t.valueAxis,o=r.dim,a=[" "].concat(s["H"](t.series,(function(t){return t.name}))),l=[n.model.getCategories()];s["k"](t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var c=[a.join(LW)],u=0;u=0)return!0}var VW=new RegExp("["+LW+"]+","g");function qW(t){for(var e=t.split(/\n+/g),i=NW(e.shift()).split(VW),n=[],r=s["H"](i,(function(t){return{name:t,data:[]}})),o=0;o=0;r--){var o=i[r];if(o[n])break}if(r<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(a){var s=a.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}})),i.push(e)}function ZW(t){var e=tU(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return YW(i,(function(t,i){for(var r=e.length-1;r>=0;r--)if(t=e[r][i],t){n[i]=t;break}})),n}function QW(t){XW(t).snapshots=null}function JW(t){return tU(t).length}function tU(t){var e=XW(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var eU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){QW(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(gW);y_({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var iU=eU,nU=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],rU=function(){function t(t,e,i){var n=this;this._targetInfoList=[];var r=aU(e,t);Object(s["k"])(sU,(function(t,e){(!i||!i.include||Object(s["r"])(i.include,e)>=0)&&t(r,n._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=uU[t.brushType](0,i,e);t.__rangeOffset={offset:dU[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,i){Object(s["k"])(t,(function(t){var n=this.findTargetInfo(t,e);n&&!0!==n&&Object(s["k"])(n.coordSyses,(function(n){var r=uU[t.brushType](1,n,t.range,!0);i(t,r.values,n,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(s["k"])(t,(function(t){var i=this.findTargetInfo(t,e);if(t.range=t.range||[],i&&!0!==i){t.panelId=i.panelId;var n=uU[t.brushType](0,i.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?dU[t.brushType](n.values,r.offset,fU(n.xyMinMax,r.xyMinMax)):n.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(s["H"])(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:GB(n),isTargetByCursor:UB(n,t,i.coordSysModel),getLinearBrushOtherExtent:WB(n)}}))},t.prototype.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&Object(s["r"])(n.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=aU(e,t),r=0;rt[1]&&t.reverse(),t}function aU(t,e){return Tr(t,e,{includeMainTypes:nU})}var sU={grid:function(t,e){var i=t.xAxisModels,n=t.yAxisModels,r=t.gridModels,o=Object(s["f"])(),a={},l={};(i||n||r)&&(Object(s["k"])(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(s["k"])(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),l[e.id]=!0})),Object(s["k"])(r,(function(t){o.set(t.id,t),a[t.id]=!0,l[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];Object(s["k"])(r.getCartesians(),(function(t,e){(Object(s["r"])(i,t.getAxis("x").model)>=0||Object(s["r"])(n,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:cU.grid,xAxisDeclared:a[t.id],yAxisDeclared:l[t.id]})})))},geo:function(t,e){Object(s["k"])(t.geoModels,(function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:cU.geo})}))}},lU=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,r=t.gridModel;return!r&&i&&(r=i.axis.grid.model),!r&&n&&(r=n.axis.grid.model),r&&r===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],cU={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(_m(t)),e}},uU={lineX:Object(s["h"])(hU,0),lineY:Object(s["h"])(hU,1),rect:function(t,e,i,n){var r=t?e.pointToData([i[0][0],i[1][0]],n):e.dataToPoint([i[0][0],i[1][0]],n),o=t?e.pointToData([i[0][1],i[1][1]],n):e.dataToPoint([i[0][1],i[1][1]],n),a=[oU([r[0],o[0]]),oU([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,i,n){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(s["H"])(i,(function(i){var o=t?e.pointToData(i,n):e.dataToPoint(i,n);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function hU(t,e,i,n){var r=i.getAxis(["x","y"][t]),o=oU(Object(s["H"])([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(n[t]),!0):r.toGlobalCoord(r.dataToCoord(n[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var dU={lineX:Object(s["h"])(pU,0),lineY:Object(s["h"])(pU,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return Object(s["H"])(t,(function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]}))}};function pU(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function fU(t,e){var i=gU(t),n=gU(e),r=[i[0]/n[0],i[1]/n[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function gU(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var mU=rU,vU=s["k"],yU=_r("toolbox-dataZoom_"),bU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,i,n){this._brushController||(this._brushController=new HB(i.getZr()),this._brushController.on("brush",s["c"](this._onBrush,this)).mount()),SU(t,e,this,n,i),wU(t,e)},e.prototype.onclick=function(t,e,i){_U[i].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var i={},n=this.ecModel;this._brushController.updateCovers([]);var r=new mU(xU(this.model),n,{include:["grid"]});r.matchOutputRanges(e,n,(function(t,e,i){if("cartesian2d"===i.type){var n=t.brushType;"rect"===n?(o("x",i,e[0]),o("y",i,e[1])):o({lineX:"x",lineY:"y"}[n],i,e)}})),KW(n,i),this._dispatchZoomAction(i)}function o(t,e,r){var o=e.getAxis(t),s=o.model,l=a(t,s,n),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(r=AR(0,r.slice(),o.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(i[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){var r=i.getAxisModel(t,e.componentIndex);r&&(n=i)})),n}},e.prototype._dispatchZoomAction=function(t){var e=[];vU(t,(function(t,i){e.push(s["d"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(gW),_U={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(ZW(this.ecModel))}};function xU(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function wU(t,e){t.setIconStatus("back",JW(e)>1?"emphasis":"normal")}function SU(t,e,i,n,r){var o=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new mU(xU(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));i._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}mh("dataZoom",(function(t){var e=t.getComponent("toolbox",0),i=["feature","dataZoom"];if(e&&null!=e.get(i)){var n=e.getModel(i),r=[],o=xU(n),a=Tr(t,o);return vU(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),vU(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,i){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:yU+e+o};a[i]=o,r.push(a)}}));var CU=bU;function kU(t){t.registerComponentModel(_W),t.registerComponentView(kW),vW("saveAsImage",TW),vW("magicType",DW),vW("dataView",UW),vW("dataZoom",CU),vW("restore",iU),A_(fW)}var MU=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Uu),TU=MU;function OU(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function AU(t){if(a["a"].domSupported)for(var e=document.documentElement.style,i=0,n=t.length;i-1?(c+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(c+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var h=o*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),f=Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-d)/2))/100;c+=";"+a+":-"+f+"px";var g=e+" solid "+r+"px;",m=["position:absolute;width:"+l+"px;height:"+l+"px;",c+";"+u+";","border-bottom:"+g,"border-right:"+g,"background-color:"+n+";"];return'
'}function NU(t,e){var i="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+i,r="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+i,r+=a["a"].transformSupported?","+jU+n:",left"+n+",top"+n),LU+":"+r}function zU(t,e,i){var n=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!a["a"].transformSupported)return i?"top:"+r+";left:"+n+";":[["top",r],["left",n]];var o=a["a"].transform3dSupported,s="translate"+(o?"3d":"")+"("+n+","+r+(o?",0":"")+")";return i?"top:0;left:0;"+jU+":"+s+";":[["top",0],["left",0],[IU,s]]}function VU(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+l+"px "+o+"px "+r),Object(s["k"])(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}function qU(t,e,i){var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),l=t.get("shadowColor"),c=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=of(t,"html"),p=c+"px "+u+"px "+a+"px "+l;return n.push("box-shadow:"+p),e&&r&&n.push(NU(r,i)),o&&n.push("background-color:"+o),Object(s["k"])(["width","color","radius"],(function(e){var i="border-"+e,r=yu(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))})),n.push(VU(h)),null!=d&&n.push("padding:"+bu(d).join("px ")+"px"),n.join(";")+";"}function $U(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&N(t,a,document.body,n,r)}else{t[0]=n,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var HU=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,a["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;$U(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!s._enterable){var e=r.handler,i=r.painter.getViewportRoot();K(i,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=EU(e,"position"),n=e.style;"absolute"!==n.position&&"absolute"!==i&&(n.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,r=this._styleCoord;i.innerHTML?n.cssText=RU+qU(t,!this._firstShow,this._longHide)+zU(r[0],r[1],!0)+"border-color:"+Au(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){var o=this.el;if(null!=t){var a="";if(Object(s["C"])(r)&&"item"===i.get("trigger")&&!OU(i)&&(a=FU(i,n,r)),Object(s["C"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(s["t"])(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,n):"leave"===t&&this._hide(n))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api,n=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==n&&"click"!==n){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&r.manuallyShowTip(t,e,i,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!a["a"].node&&i.getDom()){var r=tY(n,i);this._ticket="";var o=n.dataByCoordSys,s=oY(n,e,i);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:n.position,positionDefault:"bottom"},r)}else if(n.tooltip&&null!=n.x&&null!=n.y){var c=ZU;c.x=n.x,c.y=n.y,c.update(),bs(c).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:c},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var u=j$(n,e),h=u.point[0],d=u.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:u.el,position:n.position,positionDefault:"bottom"},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(tY(n,i))},e.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),c=JU([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}}},e.prototype._tryShow=function(t,e){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(i){var o,a;this._lastDataByCoordSys=null,$v(i,(function(t){return null!=bs(t).dataIndex?(o=t,!0):null!=bs(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=Object(s["c"])(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},e.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=JU([e.tooltipOption],n),a=this._renderMode,l=[],c=Hp("section",{blocks:[],noHeader:!0}),u=[],h=new af;Object(s["k"])(t,(function(t){Object(s["k"])(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=h$(r,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),d=Hp("section",{header:o,noHeader:!Object(s["T"])(o),sortBlocks:!0,blocks:[]});c.blocks.push(d),Object(s["k"])(t.seriesDataIndices,(function(c){var p=i.getSeriesByIndex(c.seriesIndex),f=c.dataIndexInside,g=p.getDataParams(f);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=DT(e.axis,{value:r}),g.axisValueLabel=o,g.marker=h.makeTooltipMarker("item",Au(g.color),a);var m=tp(p.formatTooltip(f,!0,null)),v=m.frag;if(v){var y=JU([p],n).get("valueFormatter");d.blocks.push(y?Object(s["m"])({valueFormatter:y},v):v)}m.text&&u.push(m.text),l.push(g)}}))}}))})),c.blocks.reverse(),u.reverse();var d=e.position,p=o.get("order"),f=Kp(c,h,a,p,i.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var g="richText"===a?"\n\n":"
",m=u.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,l)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,l):this._showTooltipContent(o,m,l,Math.random()+"",r[0],r[1],d,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,i){var n=this._ecModel,r=bs(e),o=r.seriesIndex,a=n.getSeriesByIndex(o),l=r.dataModel||a,c=r.dataIndex,u=r.dataType,h=l.getData(u),d=this._renderMode,p=t.positionDefault,f=JU([h.getItemModel(c),l,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=f.get("trigger");if(null==g||"item"===g){var m=l.getDataParams(c,u),v=new af;m.marker=v.makeTooltipMarker("item",Au(m.color),d);var y=tp(l.formatTooltip(c,!1,u)),b=f.get("order"),_=f.get("valueFormatter"),x=y.frag,w=x?Kp(_?Object(s["m"])({valueFormatter:_},x):x,v,d,b,n.get("useUTC"),f.get("textStyle")):y.text,S="item_"+l.name+"_"+c;this._showOrMove(f,(function(){this._showTooltipContent(f,w,m,S,t.offsetX,t.offsetY,t.position,t.target,v)})),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var n=bs(e),r=n.tooltipConfig,o=r.option||{};if(Object(s["C"])(o)){var a=o;o={content:a,formatter:a}}var l=[o],c=this._ecModel.getComponent(n.componentMainType,n.componentIndex);c&&l.push(c),l.push({formatter:o.content});var u=t.positionDefault,h=JU(l,this._tooltipModel,u?{position:u}:null),d=h.get("content"),p=Math.random()+"",f=new af;this._showOrMove(h,(function(){var i=Object(s["d"])(h.get("formatterParams")||{});this._showTooltipContent(h,d,i,p,t.offsetX,t.offsetY,t.position,e,f)})),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,i,n,r,o,a,l,c){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var d=e,p=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor")),f=p.color;if(h)if(Object(s["C"])(h)){var g=t.ecModel.get("useUTC"),m=Object(s["t"])(i)?i[0]:i,v=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,v&&(d=Jc(m.axisValue,d,g)),d=Mu(d,i,!0)}else if(Object(s["w"])(h)){var y=Object(s["c"])((function(e,n){e===this._ticket&&(u.setContent(n,c,t,f,a),this._updatePosition(t,a,r,o,u,i,l))}),this);this._ticket=n,d=h(i,n,y)}else d=h;u.setContent(d,c,t,f,a),u.show(t,f),this._updatePosition(t,a,r,o,u,i,l)}},e.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||Object(s["t"])(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:Object(s["t"])(e)?void 0:{color:n||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,i,n,r,o,a){var l=this._api.getWidth(),c=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),d=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),Object(s["w"])(e)&&(e=e([i,n],o,r.el,p,{viewSize:[l,c],contentSize:u.slice()})),Object(s["t"])(e))i=Pn(e[0],l),n=Pn(e[1],c);else if(Object(s["A"])(e)){var f=e;f.width=u[0],f.height=u[1];var g=Bu(f,{width:l,height:c});i=g.x,n=g.y,h=null,d=null}else if(Object(s["C"])(e)&&a){var m=nY(e,p,u,t.get("borderWidth"));i=m[0],n=m[1]}else{m=eY(i,n,r,l,c,h?null:20,d?null:20);i=m[0],n=m[1]}if(h&&(i-=rY(h)?u[0]/2:"right"===h?u[0]:0),d&&(n-=rY(d)?u[1]/2:"bottom"===d?u[1]:0),OU(t)){m=iY(i,n,r,l,c);i=m[0],n=m[1]}r.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&Object(s["k"])(i,(function(i,o){var a=i.dataByAxis||[],l=t[o]||{},c=l.dataByAxis||[];r=r&&a.length===c.length,r&&Object(s["k"])(a,(function(t,i){var o=c[i]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length,r&&Object(s["k"])(a,(function(t,e){var i=l[e];r=r&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})),n&&Object(s["k"])(t.seriesDataIndices,(function(t){var i=t.seriesIndex,o=e[i],a=n[i];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!a["a"].node&&e.getDom()&&(Km(this,"_updatePosition"),this._tooltipContent.dispose(),D$("itemTooltip",e))},e.type="tooltip",e}(Sf);function JU(t,e,i){var n,r=e.ecModel;i?(n=new xc(i,r,r),n=new xc(e.option,n,r)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof xc&&(a=a.get("tooltip",!0)),Object(s["C"])(a)&&(a={formatter:a}),a&&(n=new xc(a,n,r)))}return n}function tY(t,e){return t.dispatchAction||Object(s["c"])(e.dispatchAction,e)}function eY(t,e,i,n,r,o,a){var s=i.getSize(),l=s[0],c=s[1];return null!=o&&(t+l+o+2>n?t-=l+o:t+=o),null!=a&&(e+c+a>r?e-=c+a:e+=a),[t,e]}function iY(t,e,i,n,r){var o=i.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function nY(t,e,i,n){var r=i[0],o=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-r/2,l=e.y+u/2-o/2;break;case"top":s=e.x+c/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+c/2-r/2,l=e.y+u+a;break;case"left":s=e.x-r-a,l=e.y+u/2-o/2;break;case"right":s=e.x+c+a,l=e.y+u/2-o/2}return[s,l]}function rY(t){return"center"===t||"middle"===t}function oY(t,e,i){var n=Or(t).queryOptionMap,r=n.keys()[0];if(r&&"series"!==r){var o=Pr(e,r,n.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=i.getViewOfComponentModel(a);return l.group.traverse((function(e){var i=bs(e).tooltipConfig;if(i&&i.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var aY=QU;function sY(t){A_(Y$),t.registerComponentModel(TU),t.registerComponentView(aY),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},s["L"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},s["L"])}var lY=["rect","polygon","keep","clear"];function cY(t,e){var i=nr(t?t.brush:[]);if(i.length){var n=[];s["k"](i,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))}));var r=t&&t.toolbox;s["t"](r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),l=a.type||(a.type=[]);l.push.apply(l,n),uY(l),e&&!l.length&&l.push.apply(l,lY)}}function uY(t){var e={};s["k"](t,(function(t){e[t]=1})),t.length=0,s["k"](e,(function(e,i){t.push(i)}))}var hY=s["k"];function dY(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function pY(t,e,i){var n={};return hY(e,(function(e){var o=n[e]=r();hY(t[e],(function(t,n){if(FE.isValidType(n)){var r={type:n,visual:t};i&&i(r,e),o[n]=new FE(r),"opacity"===n&&(r=s["d"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new FE(r))}}))})),n;function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function fY(t,e,i){var n;s["k"](i,(function(t){e.hasOwnProperty(t)&&dY(e[t])&&(n=!0)})),n&&s["k"](i,(function(i){e.hasOwnProperty(i)&&dY(e[i])?t[i]=s["d"](e[i]):delete t[i]}))}function gY(t,e,i,n,r,o){var a,l={};function c(t){return Bv(i,a,t)}function u(t,e){Nv(i,a,t,e)}function h(t,s){a=null==o?t:s;var h=i.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=n.call(r,t),p=e[d],f=l[d],g=0,m=f.length;ge[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&PY(e)}};function PY(t){return new Gi(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var DY=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new HB(e.getZr())).on("brush",s["c"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,i,n){this.model=t,this._updateController(t,e,i,n)},e.prototype.updateTransform=function(t,e,i,n){CY(e),this._updateController(t,e,i,n)},e.prototype.updateVisual=function(t,e,i,n){this.updateTransform(t,e,i,n)},e.prototype.updateView=function(t,e,i,n){this._updateController(t,e,i,n)},e.prototype._updateController=function(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:s["d"](i),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:s["d"](i),$from:e})},e.type="brush",e}(Sf),EY=DY,LY="#ddd",jY=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.areas=[],i.brushOption={},i}return o(e,t),e.prototype.optionUpdated=function(t,e){var i=this.option;!e&&fY(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:LY},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=s["H"](t,(function(t){return RY(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=RY(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Uu);function RY(t,e){return s["I"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new xc(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var BY=jY,FY=["rect","polygon","lineX","lineY","keep","clear"],NY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,i){var n,r,o;e.eachComponent({mainType:"brush"},(function(t){n=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=n,this._brushMode=r,s["k"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===n)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,i){this.render(t,e,i)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return s["k"](t.get("type",!0),(function(t){e[t]&&(i[t]=e[t])})),i},e.prototype.onclick=function(t,e,i){var n=this._brushType,r=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){var e={show:!0,type:FY.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(gW),zY=NY;function VY(t){t.registerComponentView(EY),t.registerComponentModel(BY),t.registerPreprocessor(cY),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,kY),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},s["L"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},s["L"]),vW("brush",zY)}var qY=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode={type:"box",ignoreSize:!0},i}return o(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Uu),$Y=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),l=s["P"](t.get("textBaseline"),t.get("textVerticalAlign")),c=new ys({style:Zl(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=c.getBoundingRect(),h=t.get("subtext"),d=new ys({style:Zl(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),f=t.get("sublink"),g=t.get("triggerEvent",!0);c.silent=!p&&!g,d.silent=!f&&!g,p&&c.on("click",(function(){Iu(p,"_"+t.get("target"))})),f&&d.on("click",(function(){Iu(f,"_"+t.get("subtarget"))})),bs(c).eventData=bs(d).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(c),h&&n.add(d);var m=n.getBoundingRect(),v=t.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=Bu(v,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),l||(l=t.get("top")||t.get("bottom"),"center"===l&&(l="middle"),"bottom"===l?y.y+=y.height:"middle"===l&&(y.y+=y.height/2),l=l||"top"),n.x=y.x,n.y=y.y,n.markRedraw();var b={align:a,verticalAlign:l};c.setStyle(b),d.setStyle(b),m=n.getBoundingRect();var _=y.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new ts({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});n.add(w)}},e.type="title",e}(Sf);function HY(t){t.registerComponentModel(qY),t.registerComponentView($Y)}var GY=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode="box",i}return o(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,i=e.data||[],n=e.axisType,r=this._names=[];"category"===n?(t=[],Object(s["k"])(i,(function(e,i){var n,o=vr(ar(e),"");Object(s["A"])(e)?(n=Object(s["d"])(e),n.value=i):n=i,t.push(n),r.push(o)}))):t=i;var o={category:"ordinal",time:"time",value:"number"}[n]||"number",a=this._data=new Yw([{name:"value",type:o}],this);a.initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Uu),WY=GY,UY=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="timeline.slider",e.defaultOption=Mc(WY.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(WY);Object(s["K"])(UY,Jd.prototype);var YY=UY,XY=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="timeline",e}(Sf),KY=XY,ZY=function(t){function e(e,i,n,r){var o=t.call(this,e,i,n)||this;return o.type=r||"value",o}return o(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(uO),QY=ZY,JY=Math.PI,tX=kr(),eX=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,i){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(n,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return Hp("nameValue",{noName:!0,value:e})},Object(s["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](n,r,a,t)}),this),this._renderAxisLabel(n,o,a,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var i,n=t.get(["label","position"]),r=t.get("orient"),o=nX(t,e);i=null==n||"auto"===n?"horizontal"===r?o.y+o.height/2=0||"+"===i?"left":"right"},h={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:JY/2},p="vertical"===r?o.height:o.width,f=t.getModel("controlStyle"),g=f.get("show",!0),m=g?f.get("itemSize"):0,v=g?f.get("itemGap"):0,y=m+v,b=t.get(["label","rotate"])||0;b=b*JY/180;var _=f.get("position",!0),x=g&&f.get("showPlayBtn",!0),w=g&&f.get("showPrevBtn",!0),S=g&&f.get("showNextBtn",!0),C=0,k=p;"left"===_||"bottom"===_?(x&&(a=[0,0],C+=y),w&&(l=[C,0],C+=y),S&&(c=[k-m,0],k-=y)):(x&&(a=[k-m,0],k-=y),w&&(l=[0,0],C+=y),S&&(c=[k-m,0],k-=y));var M=[C,k];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:p,orient:r,rotation:d[r],labelRotation:b,labelPosOpt:i,labelAlign:t.get(["label","align"])||u[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[r],playPosition:a,prevBtnPosition:l,nextBtnPosition:c,axisExtent:M,controlSize:m,controlGap:v}},e.prototype._position=function(t,e){var i=this._mainGroup,n=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=fi(),a=r.x,l=r.y+r.height;yi(o,o,[-a,-l]),bi(o,o,-JY/2),yi(o,o,[a,l]),r=r.clone(),r.applyTransform(o)}var c=v(r),u=v(i.getBoundingRect()),h=v(n.getBoundingRect()),d=[i.x,i.y],p=[n.x,n.y];p[0]=d[0]=c[0][0];var f=t.labelPosOpt;if(null==f||Object(s["C"])(f)){var g="+"===f?0:1;y(d,u,c,1,g),y(p,h,c,1,1-g)}else{g=f>=0?0:1;y(d,u,c,1,g),p[1]=d[1]+f}function m(t){t.originX=c[0][0]-t.x,t.originY=c[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function y(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}i.setPosition(d),n.setPosition(p),i.rotation=n.rotation=t.rotation,m(i),m(n)},e.prototype._createAxis=function(t,e){var i=e.getData(),n=e.get("axisType"),r=iX(e,n);r.getTicks=function(){return i.mapArray(["value"],(function(t){return{value:t}}))};var o=i.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new QY("value",r,t.axisExtent,n);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new bn;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,i,n){var r=i.getExtent();if(n.get(["lineStyle","show"])){var o=new Dg({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(s["m"])({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Dg({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(s["i"])({lineCap:"round",lineWidth:o.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,i,n){var r=this,o=n.getData(),a=i.scale.getTicks();this._tickSymbols=[],Object(s["k"])(a,(function(t){var a=i.dataToCoord(t.value),l=o.getItemModel(t.value),c=l.getModel("itemStyle"),u=l.getModel(["emphasis","itemStyle"]),h=l.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(s["c"])(r._changeTimeline,r,t.value)},p=oX(l,c,e,d);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),xl(p);var f=bs(p);l.get("tooltip")?(f.dataIndex=t.value,f.dataModel=n):f.dataIndex=f.dataModel=null,r._tickSymbols.push(p)}))},e.prototype._renderAxisLabel=function(t,e,i,n){var r=this,o=i.getLabelModel();if(o.get("show")){var a=n.getData(),l=i.getViewLabels();this._tickLabels=[],Object(s["k"])(l,(function(n){var o=n.tickValue,l=a.getItemModel(o),c=l.getModel("label"),u=l.getModel(["emphasis","label"]),h=l.getModel(["progress","label"]),d=i.dataToCoord(n.tickValue),p=new ys({x:d,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(s["c"])(r._changeTimeline,r,o),silent:!1,style:Zl(c,{text:n.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=Zl(u),p.ensureState("progress").style=Zl(h),e.add(p),xl(p),tX(p).dataIndex=o,r._tickLabels.push(p)}))}},e.prototype._renderControl=function(t,e,i,n){var r=t.controlSize,o=t.rotation,a=n.getModel("controlStyle").getItemStyle(),l=n.getModel(["emphasis","controlStyle"]).getItemStyle(),c=n.getPlayState(),u=n.get("inverse",!0);function h(t,i,c,u){if(t){var h=en(Object(s["P"])(n.get(["controlStyle",i+"BtnSize"]),r),r),d=[0,-h/2,h,h],p=rX(n,i+"Icon",d,{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:c});p.ensureState("emphasis").style=l,e.add(p),xl(p)}}h(t.nextBtnPosition,"next",Object(s["c"])(this._changeTimeline,this,u?"-":"+")),h(t.prevBtnPosition,"prev",Object(s["c"])(this._changeTimeline,this,u?"+":"-")),h(t.playPosition,c?"stop":"play",Object(s["c"])(this._handlePlayClick,this,!c),!0)},e.prototype._renderCurrentPointer=function(t,e,i,n){var r=n.getData(),o=n.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),l=this,c={onCreate:function(t){t.draggable=!0,t.drift=Object(s["c"])(l._handlePointerDrag,l),t.ondragend=Object(s["c"])(l._handlePointerDragend,l),aX(t,l._progressLine,o,i,n,!0)},onUpdate:function(t){aX(t,l._progressLine,o,i,n)}};this._currentPointer=oX(a,a,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,r=En(n.getExtent().slice());i>r[1]&&(i=r[1]),i=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var CX={min:Object(s["h"])(SX,"min"),max:Object(s["h"])(SX,"max"),average:Object(s["h"])(SX,"average"),median:Object(s["h"])(SX,"median")};function kX(t,e){var i=t.getData(),n=t.coordinateSystem;if(e&&!wX(e)&&!Object(s["t"])(e.coord)&&n){var r=n.dimensions,o=MX(e,i,n,t);if(e=Object(s["d"])(e),e.type&&CX[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(s["r"])(r,o.baseAxis.dim),l=Object(s["r"])(r,o.valueAxis.dim),c=CX[e.type](i,o.baseDataDim,o.valueDataDim,a,l);e.coord=c[0],e.value=c[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;h<2;h++)CX[u[h]]&&(u[h]=PX(i,i.mapDimension(r[h]),u[h]));e.coord=u}}return e}function MX(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(TX(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function TX(t,e){var i=t.getData().getDimensionInfo(e);return i&&i.coordDim}function OX(t,e){return!(t&&t.containData&&e.coord&&!xX(e))||t.containData(e.coord)}function AX(t,e,i){return!(t&&t.containZone&&e.coord&&i.coord&&!xX(e)&&!xX(i))||t.containZone(e.coord,i.coord)}function IX(t,e){return t?function(t,i,n,r){var o=r<2?t.coord&&t.coord[r]:t.value;return rp(o,e[r])}:function(t,i,n,r){return rp(t.value,e[r])}}function PX(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(n+=t,r++)})),n/r}return"median"===i?t.getMedian(e):t.getDataExtent(e)["max"===i?1:0]}var DX=kr(),EX=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(){this.markerGroupMap=Object(s["f"])()},e.prototype.render=function(t,e,i){var n=this,r=this.markerGroupMap;r.each((function(t){DX(t).keep=!1})),e.eachSeries((function(t){var r=yX.getMarkerModelFromSeries(t,n.type);r&&n.renderSeries(t,r,e,i)})),r.each((function(t){!DX(t).keep&&n.group.remove(t.group)}))},e.prototype.markKeep=function(t){DX(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var i=this;Object(s["k"])(t,(function(t){var n=yX.getMarkerModelFromSeries(t,i.type);if(n){var r=n.getData();r.eachItemGraphicEl((function(t){t&&(e?al(t):sl(t))}))}}))},e.type="marker",e}(Sf),LX=EX;function jX(t,e,i){var n=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=Pn(a.get("x"),i.getWidth()),l=Pn(a.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(n){var c=t.get(n.dimensions[0],r),u=t.get(n.dimensions[1],r);o=n.dataToPoint([c,u])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var RX=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.updateTransform=function(t,e,i){e.eachSeries((function(t){var e=yX.getMarkerModelFromSeries(t,"markPoint");e&&(jX(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,new CS),u=BX(r,t,e);e.setData(u),jX(e.getData(),t,n),u.each((function(t){var i=u.getItemModel(t),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),l=i.getShallow("symbolOffset"),c=i.getShallow("symbolKeepAspect");if(Object(s["w"])(n)||Object(s["w"])(r)||Object(s["w"])(o)||Object(s["w"])(l)){var h=e.getRawValue(t),d=e.getDataParams(t);Object(s["w"])(n)&&(n=n(h,d)),Object(s["w"])(r)&&(r=r(h,d)),Object(s["w"])(o)&&(o=o(h,d)),Object(s["w"])(l)&&(l=l(h,d))}var p=i.getModel("itemStyle").getItemStyle(),f=Fv(a,"color");p.fill||(p.fill=f),u.setItemVisual(t,{symbol:n,symbolSize:r,symbolRotate:o,symbolOffset:l,symbolKeepAspect:c,style:p})})),c.updateData(u),this.group.add(c.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){bs(t).dataModel=e}))})),this.markKeep(c),c.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(LX);function BX(t,e,i){var n;n=t?Object(s["H"])(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(s["m"])(Object(s["m"])({},i),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Yw(n,i),o=Object(s["H"])(i.get("data"),Object(s["h"])(kX,e));t&&(o=Object(s["n"])(o,Object(s["h"])(OX,t)));var a=IX(!!t,n);return r.initData(o,null,a),r}var FX=RX;function NX(t){t.registerComponentModel(_X),t.registerComponentView(FX),t.registerPreprocessor((function(t){fX(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var zX=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(yX),VX=zX,qX=kr(),$X=function(t,e,i,n){var r,o=t.getData();if(Object(s["t"])(n))r=n;else{var a=n.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=n.xAxis||null!=n.yAxis){var l=void 0,c=void 0;if(null!=n.yAxis||null!=n.xAxis)l=e.getAxis(null!=n.yAxis?"y":"x"),c=Object(s["O"])(n.yAxis,n.xAxis);else{var u=MX(n,o,e,t);l=u.valueAxis;var h=aS(o,u.valueDataDim);c=PX(o,h,a)}var d="x"===l.dim?0:1,p=1-d,f=Object(s["d"])(n),g={coord:[]};f.type=null,f.coord=[],f.coord[p]=-1/0,g.coord[p]=1/0;var m=i.get("precision");m>=0&&Object(s["z"])(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[d]=g.coord[d]=c,r=[f,g,{type:a,valueIndex:n.valueIndex,value:c}]}else r=[]}var v=[kX(t,r[0]),kX(t,r[1]),Object(s["m"])({},r[2])];return v[2].type=v[2].type||null,Object(s["I"])(v[2],v[0]),Object(s["I"])(v[2],v[1]),v};function HX(t){return!isNaN(t)&&!isFinite(t)}function GX(t,e,i,n){var r=1-t,o=n.dimensions[t];return HX(e[r])&&HX(i[r])&&e[t]===i[t]&&n.getAxis(o).containData(e[t])}function WX(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(GX(1,i,n,t)||GX(0,i,n,t)))return!0}return OX(t,e[0])&&OX(t,e[1])}function UX(t,e,i,n,r){var o,a=n.coordinateSystem,s=t.getItemModel(e),l=Pn(s.get("x"),r.getWidth()),c=Pn(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(c)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var u=a.dimensions,h=t.get(u[0],e),d=t.get(u[1],e);o=a.dataToPoint([h,d])}if(HS(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");u=a.dimensions;HX(t.get(u[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[i?0:1]):HX(t.get(u[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[i?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];t.setItemLayout(e,o)}var YX=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.updateTransform=function(t,e,i){e.eachSeries((function(t){var e=yX.getMarkerModelFromSeries(t,"markLine");if(e){var n=e.getData(),r=qX(e).from,o=qX(e).to;r.each((function(e){UX(r,e,!0,t,i),UX(o,e,!1,t,i)})),n.each((function(t){n.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,new hj);this.group.add(c.group);var u=XX(r,t,e),h=u.from,d=u.to,p=u.line;qX(e).from=h,qX(e).to=d,e.setData(p);var f=e.get("symbol"),g=e.get("symbolSize"),m=e.get("symbolRotate"),v=e.get("symbolOffset");function y(e,i,r){var o=e.getItemModel(i);UX(e,i,r,t,n);var l=o.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=Fv(a,"color")),e.setItemVisual(i,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(s["P"])(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:Object(s["P"])(o.get("symbolRotate",!0),m[r?0:1]),symbolSize:Object(s["P"])(o.get("symbolSize"),g[r?0:1]),symbol:Object(s["P"])(o.get("symbol",!0),f[r?0:1]),style:l})}Object(s["t"])(f)||(f=[f,f]),Object(s["t"])(g)||(g=[g,g]),Object(s["t"])(m)||(m=[m,m]),Object(s["t"])(v)||(v=[v,v]),u.from.each((function(t){y(h,t,!0),y(d,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[h.getItemLayout(t),d.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:d.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(t,"symbolOffset"),toSymbolRotate:d.getItemVisual(t,"symbolRotate"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol"),style:e})})),c.updateData(p),u.line.eachItemGraphicEl((function(t){bs(t).dataModel=e,t.traverse((function(t){bs(t).dataModel=e}))})),this.markKeep(c),c.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(LX);function XX(t,e,i){var n;n=t?Object(s["H"])(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(s["m"])(Object(s["m"])({},i),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Yw(n,i),o=new Yw(n,i),a=new Yw([],i),l=Object(s["H"])(i.get("data"),Object(s["h"])($X,e,t,i));t&&(l=Object(s["n"])(l,Object(s["h"])(WX,t)));var c=IX(!!t,n);return r.initData(Object(s["H"])(l,(function(t){return t[0]})),null,c),o.initData(Object(s["H"])(l,(function(t){return t[1]})),null,c),a.initData(Object(s["H"])(l,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}var KX=YX;function ZX(t){t.registerComponentModel(VX),t.registerComponentView(KX),t.registerPreprocessor((function(t){fX(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var QX=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(yX),JX=QX,tK=kr(),eK=function(t,e,i,n){var r=kX(t,n[0]),o=kX(t,n[1]),a=r.coord,l=o.coord;a[0]=Object(s["O"])(a[0],-1/0),a[1]=Object(s["O"])(a[1],-1/0),l[0]=Object(s["O"])(l[0],1/0),l[1]=Object(s["O"])(l[1],1/0);var c=Object(s["J"])([{},r,o]);return c.coord=[r.coord,o.coord],c.x0=r.x,c.y0=r.y,c.x1=o.x,c.y1=o.y,c};function iK(t){return!isNaN(t)&&!isFinite(t)}function nK(t,e,i,n){var r=1-t;return iK(e[r])&&iK(i[r])}function rK(t,e){var i=e.coord[0],n=e.coord[1],r={coord:i,x:e.x0,y:e.y0},o={coord:n,x:e.x1,y:e.y1};return HS(t,"cartesian2d")?!(!i||!n||!nK(1,i,n,t)&&!nK(0,i,n,t))||AX(t,r,o):OX(t,r)||OX(t,o)}function oK(t,e,i,n,r){var o,a=n.coordinateSystem,s=t.getItemModel(e),l=Pn(s.get(i[0]),r.getWidth()),c=Pn(s.get(i[1]),r.getHeight());if(isNaN(l)||isNaN(c)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(i,e));else{var u=t.get(i[0],e),h=t.get(i[1],e),d=[u,h];a.clampData&&a.clampData(d,d),o=a.dataToPoint(d,!0)}if(HS(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");u=t.get(i[0],e),h=t.get(i[1],e);iK(u)?o[0]=p.toGlobalCoord(p.getExtent()["x0"===i[0]?0:1]):iK(h)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===i[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var aK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],sK=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.updateTransform=function(t,e,i){e.eachSeries((function(t){var e=yX.getMarkerModelFromSeries(t,"markArea");if(e){var n=e.getData();n.each((function(e){var r=Object(s["H"])(aK,(function(r){return oK(n,e,r,t,i)}));n.setItemLayout(e,r);var o=n.getItemGraphicEl(e);o.setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,{group:new bn});this.group.add(c.group),this.markKeep(c);var u=lK(r,t,e);e.setData(u),u.each((function(e){var i=Object(s["H"])(aK,(function(i){return oK(u,e,i,t,n)})),o=r.getAxis("x").scale,l=r.getAxis("y").scale,c=o.getExtent(),h=l.getExtent(),d=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[l.parse(u.get("y0",e)),l.parse(u.get("y1",e))];En(d),En(p);var f=!(c[0]>d[1]||c[1]p[1]||h[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Uu),pK=dK,fK=s["h"],gK=s["k"],mK=bn,vK=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.newlineDisabled=!1,i}return o(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new mK),this.group.add(this._selectorGroup=new mK),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),l=t.get("selectorPosition",!0);!a||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(r,t,e,i,a,o,l);var c=t.getBoxLayoutParams(),u={width:i.getWidth(),height:i.getHeight()},h=t.get("padding"),d=Bu(c,u,h),p=this.layoutInner(t,r,d,n,a,l),f=Bu(s["i"]({width:p.width,height:p.height},c),u,h);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wW(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,i,n,r,o,a){var l=this.getContentGroup(),c=s["f"](),u=e.get("selectedMode"),h=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),gK(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new mK;return d.newline=!0,void l.add(d)}var p=i.getSeriesByName(a)[0];if(!c.get(a)){if(p){var f=p.getData(),g=f.getVisual("legendLineStyle")||{},m=f.getVisual("legendIcon"),v=f.getVisual("style"),y=this._createItem(p,a,o,r,e,t,g,v,m,u,n);y.on("click",fK(_K,a,null,n,h)).on("mouseover",fK(wK,p.name,null,n,h)).on("mouseout",fK(SK,p.name,null,n,h)),c.set(a,!0)}else i.eachRawSeries((function(i){if(!c.get(a)&&i.legendVisualProvider){var l=i.legendVisualProvider;if(!l.containName(a))return;var d=l.indexOfName(a),p=l.getItemVisual(d,"style"),f=l.getItemVisual(d,"legendIcon"),g=Object(pe["g"])(p.fill);g&&0===g[3]&&(g[3]=.2,p=s["m"](s["m"]({},p),{fill:Object(pe["h"])(g,"rgba")}));var m=this._createItem(i,a,o,r,e,t,{},p,f,u,n);m.on("click",fK(_K,null,a,n,h)).on("mouseover",fK(wK,null,a,n,h)).on("mouseout",fK(SK,null,a,n,h)),c.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,n,o,a)},e.prototype._createSelector=function(t,e,i,n,r){var o=this.getSelectorGroup();gK(t,(function(t){var n=t.type,r=new ys({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Xl(r,{normal:a,emphasis:s},{defaultText:t.title}),xl(r)}))},e.prototype._createItem=function(t,e,i,n,r,o,a,l,c,u,h){var d=t.visualDrawType,p=r.get("itemWidth"),f=r.get("itemHeight"),g=r.isSelected(e),m=n.get("symbolRotate"),v=n.get("symbolKeepAspect"),y=n.get("icon");c=y||c||"roundRect";var b=yK(c,n,a,l,d,g,h),_=new mK,x=n.getModel("textStyle");if(!s["w"](t.getLegendIcon)||y&&"inherit"!==y){var w="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===m?t.getData().getVisual("symbolRotate"):m:0;_.add(bK({itemWidth:p,itemHeight:f,icon:c,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}));var S="left"===o?p+5:-5,C=o,k=r.get("formatter"),M=e;s["C"](k)&&k?M=k.replace("{name}",null!=e?e:""):s["w"](k)&&(M=k(e));var T=n.get("inactiveColor");_.add(new ys({style:Zl(x,{text:M,x:S,y:f/2,fill:g?x.getTextColor():T,align:C,verticalAlign:"middle"})}));var O=new ts({shape:_.getBoundingRect(),invisible:!0}),A=n.getModel("tooltip");return A.get("show")&&Em({el:O,componentModel:r,itemName:e,itemTooltipOption:A.option}),_.add(O),_.eachChild((function(t){t.silent=!0})),O.silent=!u,this.getContentGroup().add(_),xl(_),_.__legendDataIndex=i,_},e.prototype.layoutInner=function(t,e,i,n,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();ju(t.get("orient"),a,t.get("itemGap"),i.width,i.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){ju("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:c[p]+=u[f]+d,h[1-p]+=l[g]/2-u[g]/2,s.x=h[0],s.y=h[1],a.x=c[0],a.y=c[1];var v={x:0,y:0};return v[f]=l[f]+d+u[f],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+h[1-p]),v}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Sf);function yK(t,e,i,n,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),gK(t,(function(i,n){"inherit"===t[n]&&(t[n]=e[n])}))}var l=e.getModel("itemStyle"),c=l.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?Wy(h,a):n.decal,"inherit"===c.fill&&(c.fill=n[r]),"inherit"===c.stroke&&(c.stroke=n[u]),"inherit"===c.opacity&&(c.opacity=("fill"===r?n:i).opacity),s(c,n);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,i),"auto"===c.fill&&(c.fill=n.fill),"auto"===c.stroke&&(c.stroke=n.fill),"auto"===p.stroke&&(p.stroke=n.fill),!o){var f=e.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===f?n.lineWidth>0&&g?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function bK(t){var e=t.icon||"roundRect",i=ny(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return i.setStyle(t.itemStyle),i.rotation=(t.iconRotate||0)*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}function _K(t,e,i,n){SK(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),wK(t,e,i,n)}function xK(t){var e,i=t.getZr().storage.getDisplayList(),n=0,r=i.length;while(ni[r],g=[-d.x,-d.y];e||(g[n]=c[l]);var m=[0,0],v=[-p.x,-p.y],y=s["P"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(f){var b=t.get("pageButtonPosition",!0);"end"===b?v[n]+=i[r]-p[r]:m[n]+=p[r]+y}v[1-n]+=d[o]/2-p[o]/2,c.setPosition(g),u.setPosition(m),h.setPosition(v);var _={x:0,y:0};if(_[r]=f?i[r]:d[r],_[o]=Math.max(d[o],p[o]),_[a]=Math.min(0,p[a]+v[1-n]),u.__rectSize=i[r],f){var x={x:0,y:0};x[r]=Math.max(i[r]-p[r]-y,0),x[o]=_[o],u.setClipPath(new ts({shape:x})),u.__rectSize=x[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&Fl(c,{x:w.contentPosition[0],y:w.contentPosition[1]},f?t:null),this._updatePageInfoView(t,w),_},e.prototype._pageGo=function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup;s["k"](["pagePrev","pageNext"],(function(n){var r=n+"DataIndex",o=null!=e[r],a=i.childOfName(n);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var n=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,l=e.pageCount;n&&r&&n.setStyle("text",s["C"](r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==l?"":l+""):r({current:a,total:l}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,r=t.getOrient().index,o=EK[r],a=LK[r],s=this._findTargetItemIndex(e),l=i.children(),c=l[s],u=l.length,h=u?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=y(c);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=u;++f)v=y(l[f]),(!v&&m.e>g.s+n||v&&!b(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(f=s-1,g=p,m=p,v=null;f>=-1;--f)v=y(l[f]),v&&b(m,v.s)||!(g.i=e&&t.s<=e+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,i,n=this.getContentGroup();return n.eachChild((function(n,r){var o=n.__legendDataIndex;null==i&&null!=o&&(i=r),o===t&&(e=r)})),null!=e?e:i},e.type="legend.scroll",e}(CK),RK=jK;function BK(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(i)}))}))}function FK(t){A_(OK),t.registerComponentModel(PK),t.registerComponentView(RK),BK(t)}function NK(t){A_(OK),A_(FK)}var zK=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="dataZoom.inside",e.defaultOption=Mc(ZG.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(ZG),VK=zK,qK=kr();function $K(t,e,i){qK(t).coordSysRecordMap.each((function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=i)}))}function HK(t,e){for(var i=qK(t).coordSysRecordMap,n=i.keys(),r=0;rn[i+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function KK(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var i=qK(e),n=i.coordSysRecordMap||(i.coordSysRecordMap=Object(s["f"])());n.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var i=UG(t);Object(s["k"])(i.infoList,(function(i){var r=i.model.uid,o=n.get(r)||n.set(r,WK(e,i.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(s["f"])());a.set(t.uid,{dzReferCoordSysInfo:i,model:t,getRange:null})}))})),n.each((function(t){var e,i=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=XK(r);i.enable(a.controlType,a.opt),i.setPointerChecker(t.containsPoint),Xm(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else GK(n,t)}))}))}var ZK=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return o(e,t),e.prototype.render=function(e,i,n){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),$K(n,e,{pan:Object(s["c"])(QK.pan,this),zoom:Object(s["c"])(QK.zoom,this),scrollMove:Object(s["c"])(QK.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){HK(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(eW),QK={zoom:function(t,e,i,n){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=tZ[e](null,[n.originX,n.originY],a,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/n.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return AR(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:JK((function(t,e,i,n,r,o){var a=tZ[n]([o.oldX,o.oldY],[o.newX,o.newY],e,r,i);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:JK((function(t,e,i,n,r,o){var a=tZ[n]([0,0],[o.scrollDelta,o.scrollDelta],e,r,i);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function JK(t){return function(e,i,n,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,i,n,r);return AR(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var tZ={grid:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,i,n,r){var o=i.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},eZ=ZK;function iZ(t){pW(t),t.registerComponentModel(VK),t.registerComponentView(eZ),KK(t)}var nZ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Mc(ZG.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(ZG),rZ=nZ,oZ=ts,aZ=7,sZ=1,lZ=30,cZ=7,uZ="horizontal",hZ="vertical",dZ=5,pZ=["line","bar","candlestick","scatter"],fZ={easing:"cubicOut",duration:100,delay:0},gZ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._displayables={},i}return o(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(s["c"])(this._onBrush,this),this._onBrushEnd=Object(s["c"])(this._onBrushEnd,this)},e.prototype.render=function(e,i,n,r){if(t.prototype.render.apply(this,arguments),Xm(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Km(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new bn;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,i=t.get("brushSelect"),n=i?cZ:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===uZ?{right:o.width-r.x-r.width,top:o.height-lZ-aZ-n,width:r.width,height:lZ}:{right:aZ,top:r.y,width:lZ,height:r.height},l=qu(t.option);Object(s["k"])(["right","top","width","height"],(function(t){"ph"===l[t]&&(l[t]=a[t])}));var c=Bu(l,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===hZ&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==uZ||r?i===uZ&&r?{scaleY:a?1:-1,scaleX:-1}:i!==hZ||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new oZ({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new oZ({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(s["c"])(this._onClickPanel,this)}),o=this.api.getZr();n?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),i.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,i=this._shadowSize||[],n=t.series,r=n.getRawData(),o=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=o){var a=this._shadowPolygonPts,s=this._shadowPolylinePts;if(r!==this._shadowData||o!==this._shadowDim||e[0]!==i[0]||e[1]!==i[1]){var l=r.getDataExtent(o),c=.3*(l[1]-l[0]);l=[l[0]-c,l[1]+c];var u,h=[0,e[1]],d=[0,e[0]],p=[[e[0],0],[0,0]],f=[],g=d[1]/(r.count()-1),m=0,v=Math.round(r.count()/e[0]);r.each([o],(function(t,e){if(v>0&&e%v)m+=g;else{var i=null==t||isNaN(t)||""===t,n=i?0:In(t,l,h,!0);i&&!u&&e?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!i&&u&&(p.push([m,0]),f.push([m,0])),p.push([m,n]),f.push([m,n]),m+=g,u=i}})),a=this._shadowPolygonPts=p,s=this._shadowPolylinePts=f}this._shadowData=r,this._shadowDim=o,this._shadowSize=[e[0],e[1]];for(var y=this.dataZoomModel,b=0;b<3;b++){var _=x(1===b);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function x(t){var e=y.getModel(t?"selectedDataBackground":"dataBackground"),i=new bn,n=new kg({shape:{points:a},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Og({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return i.add(n),i.add(r),i}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();Object(s["k"])(a,(function(t){if(!i&&!(!0!==e&&Object(s["r"])(pZ,t.get("type"))<0)){var a,l=n.getComponent(GG(r),o).axis,c=mZ(r),u=t.coordinateSystem;null!=c&&u.getOtherAxis&&(a=u.getOtherAxis(l).inverse),c=t.getData().mapDimension(c),i={thisAxis:l,series:t,thisDim:r,otherDim:c,otherAxisInverse:a}}}),this)}),this),i}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,i=e.handles=[null,null],n=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,l=this.api,c=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new oZ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new oZ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:c},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:sZ,fill:"rgba(0,0,0,0)"}})),Object(s["k"])([0,1],(function(e){var o=a.get("handleIcon");!ty[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var l=ny(o,-1,0,2,2,null,!0);l.attr({cursor:vZ(this._orient),draggable:!0,drift:Object(s["c"])(this._onDragMove,this,e),ondragend:Object(s["c"])(this._onDragEnd,this),onmouseover:Object(s["c"])(this._showDataInfo,this,!0),onmouseout:Object(s["c"])(this._showDataInfo,this,!1),z2:5});var c=l.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Pn(u,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),xl(l);var h=a.get("handleColor");null!=h&&(l.style.fill=h),r.add(i[e]=l);var d=a.getModel("textStyle");t.add(n[e]=new ys({silent:!0,invisible:!0,style:Zl(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=h;if(u){var p=Pn(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new ts({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),g=.8*p,m=e.moveHandleIcon=ny(a.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=o[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));d=e.moveZone=new ts({invisible:!0,shape:{y:o[1]-v,height:p+v}}),d.on("mouseover",(function(){l.enterEmphasis(f)})).on("mouseout",(function(){l.leaveEmphasis(f)})),r.add(f),r.add(m),r.add(d)}d.attr({draggable:!0,cursor:vZ(this._orient),drift:Object(s["c"])(this._onDragMove,this,"all"),ondragstart:Object(s["c"])(this._showDataInfo,this,!0),ondragend:Object(s["c"])(this._onDragEnd,this),onmouseover:Object(s["c"])(this._showDataInfo,this,!0),onmouseout:Object(s["c"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[In(t[0],[0,100],e,!0),In(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];AR(e,n,r,i.get("zoomLock")?"all":t,null!=o.minSpan?In(o.minSpan,a,r,!0):null,null!=o.maxSpan?In(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=En([In(n[0],r,a,!0),In(n[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,i=this._handleEnds,n=En(i.slice()),r=this._size;Object(s["k"])([0,1],(function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scaleX:o/2,scaleY:o/2,x:i[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]});var o={x:n[0],width:n[1]-n[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,l=[0,n[0],n[1],r[0]],c=0;ce[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,i=t.offsetY;this._brushStart=new ji(e,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var i=e.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=En([In(i.x,r,o,!0),In(i.x+i.width,r,o,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(tt(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var i=this._displayables,n=this.dataZoomModel,r=i.brushRect;r||(r=i.brushRect=new oZ({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?fZ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=UG(this.dataZoomModel).infoList;if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),r=this.api.getHeight();t={x:.2*n,y:.2*r,width:.6*n,height:.6*r}}return t},e.type="dataZoom.slider",e}(eW);function mZ(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function vZ(t){return"vertical"===t?"ns-resize":"ew-resize"}var yZ=gZ;function bZ(t){t.registerComponentModel(rZ),t.registerComponentView(yZ),pW(t)}function _Z(t){A_(iZ),A_(bZ)}var xZ={get:function(t,e,i){var n=s["d"]((wZ[t]||{})[e]);return i&&s["t"](n)?n[n.length-1]:n}},wZ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},SZ=xZ,CZ=FE.mapVisual,kZ=FE.eachVisual,MZ=s["t"],TZ=s["k"],OZ=En,AZ=In,IZ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.stateList=["inRange","outOfRange"],i.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],i.layoutMode={type:"box",ignoreSize:!0},i.dataBound=[-1/0,1/0],i.targetVisuals={},i.controllerVisuals={},i}return o(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,e){var i=this.option;!e&&fY(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=s["c"](t,this),this.controllerVisuals=pY(this.option.controller,e,t),this.targetVisuals=pY(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,i){e.push(i)})):e=nr(t),e},e.prototype.eachTargetSeries=function(t,e){s["k"](this.getTargetSeriesIndices(),(function(i){var n=this.ecModel.getSeriesByIndex(i);n&&t.call(e,n)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(i){i===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,i){var n,r=this.option,o=r.precision,a=this.dataBound,l=r.formatter;i=i||["<",">"],s["t"](t)&&(t=t.slice(),n=!0);var c=e?t:n?[u(t[0]),u(t[1])]:u(t);return s["C"](l)?l.replace("{value}",n?c[0]:c).replace("{value2}",n?c[1]:c):s["w"](l)?n?l(t[0],t[1]):l(t):n?t[0]===a[0]?i[0]+" "+c[1]:t[1]===a[1]?i[1]+" "+c[0]:c[0]+" - "+c[1]:c;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=OZ([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var i=t.dimensions,n=i.length-1;n>=0;n--){var r=i[n],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),r=e.controller||(e.controller={});s["I"](n,i),s["I"](r,i);var o=this.isCategory();function a(i){MZ(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")}}function l(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},TZ(n,(function(t,e){if(FE.isValidType(e)){var i=SZ.get(e,"inactive",o);null!=i&&(r[e]=i,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function c(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";TZ(this.stateList,(function(r){var l=this.itemSize,c=t[r];c||(c=t[r]={color:o?n:[n]}),null==c.symbol&&(c.symbol=e&&s["d"](e)||(o?a:[a])),null==c.symbolSize&&(c.symbolSize=i&&s["d"](i)||(o?l[0]:[l[0],l[0]])),c.symbol=CZ(c.symbol,(function(t){return"none"===t?a:t}));var u=c.symbolSize;if(null!=u){var h=-1/0;kZ(u,(function(t){t>h&&(h=t)})),c.symbolSize=CZ(u,(function(t){return AZ(t,[0,h],[0,l[0]],!0)}))}}),this)}a.call(this,n),a.call(this,r),l.call(this,n,"inRange","outOfRange"),c.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Uu),PZ=IZ,DZ=[20,140],EZ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=DZ[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=DZ[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):s["t"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),s["k"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=En((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],r=i.getData();r.each(this.getDataDimensionIndex(r),(function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},e.prototype.getVisualMeta=function(t){var e=LZ(this,"outOfRange",this.getExtent()),i=LZ(this,"inRange",this.option.range.slice()),n=[];function r(e,i){n.push({value:e,color:t(e,i)})}for(var o=0,a=0,s=i.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(a,"color",e),offset:o/i})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new bn("horizontal"!==e||i?"horizontal"===e&&i?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||i?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,r=i.handleThumbs,o=i.handleLabels,a=n.itemSize,s=n.getExtent();qZ([0,1],(function(l){var c=r[l];c.setStyle("fill",e.handlesColor[l]),c.y=t[l];var u=VZ(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/a[0],c.x=a[0]-h/2;var d=xm(i.handleLabelPoints[l],_m(c,this.group));o[l].setStyle({x:d[0],y:d[1],text:n.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,i,n){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",u),d=this.getControllerVisual(t,"symbolSize"),p=VZ(t,o,s,!0),f=a[0]-d/2,g={x:c.x,y:c.y};c.y=p,c.x=f;var m=xm(l.indicatorLabelPoint,_m(c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;v.setStyle({text:(i||"")+r.formatValueText(e),verticalAlign:_?y:"middle",align:_?"center":y});var x={x:f,y:p,style:{fill:h}},w={style:{x:m[0],y:m[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(x,S),v.animateTo(w,S)}else c.attr(x),v.attr(w);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var k=0;kr[1]&&(c[1]=1/0),e&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var u=this._hoverLinkDataIndices,h=[];(e||KZ(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var d=Sr(u,h);this._dispatchHighDown("downplay",zZ(d[0],i)),this._dispatchHighDown("highlight",zZ(d[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=bs(e).dataIndex){var n=bs(e),r=this.ecModel.getSeriesByIndex(n.seriesIndex);if(i.isTargetSeries(r)){var o=r.getData(n.dataType),a=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var i=0;i=0&&(r.dimension=o,n.push(r))}})),t.getData().setVisual("visualMeta",n)}}];function iQ(t,e,i,n){for(var r=e.targetVisuals[n],o=FE.prepareVisualTypes(r),a={color:Fv(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(JZ,tQ),Object(s["k"])(eQ,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(rQ))}function lQ(t){t.registerComponentModel(jZ),t.registerComponentView(QZ),sQ(t)}var cQ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._pieceList=[],i}return o(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],uQ[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=s["d"](r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=s["H"](this._pieceList,(function(t){return t=s["d"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,i={},n=FE.listVisualTypes(),r=this.isCategory();function o(t,e,i){return t&&t[e]&&t[e].hasOwnProperty(i)}s["k"](e.pieces,(function(t){s["k"](n,(function(e){t.hasOwnProperty(e)&&(i[e]=1)}))})),s["k"](i,(function(t,i){var n=!1;s["k"](this.stateList,(function(t){n=n||o(e,t,i)||o(e.target,t,i)}),this),!n&&s["k"](this.stateList,(function(t){(e[t]||(e[t]={}))[i]=SZ.get(i,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var i=this.option,n=this._pieceList,r=(e?i:t).selected||{};if(i.selected=r,s["k"](n,(function(t,e){var i=this.getSelectedMapKey(t);r.hasOwnProperty(i)||(r[i]=!0)}),this),"single"===i.selectedMode){var o=!1;s["k"](n,(function(t,e){var i=this.getSelectedMapKey(t);r[i]&&(o?r[i]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=s["d"](t)},e.prototype.getValueState=function(t){var e=FE.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],i=this._pieceList;return this.eachTargetSeries((function(n){var r=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(e,n){var o=FE.findPieceIndex(e,i);o===t&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],i=["",""],n=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return s["k"](r,(function(t){var e=t.interval;e&&(e[0]>a&&l([a,e[0]],"outOfRange"),l(e.slice()),a=e[1])}),this),{stops:e,outerColors:i}}function l(r,o){var a=n.getRepresentValue({interval:r});o||(o=n.getValueState(a));var s=t(a,o);r[0]===-1/0?i[0]=s:r[1]===1/0?i[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Mc(PZ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(PZ),uQ={splitNumber:function(t){var e=this.option,i=Math.min(e.precision,20),n=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var o=(n[1]-n[0])/r;while(+o.toFixed(i)!==o&&i<5)i++;e.precision=i,o=+o.toFixed(i),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var a=0,l=n[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function hQ(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var dQ=cQ,pQ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,r=n.getFont(),o=n.getTextColor(),a=this._getItemAlign(),l=e.itemSize,c=this._getViewData(),u=c.endsText,h=s["O"](e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],l,h,a),s["k"](c.viewPieceList,(function(n){var c=n.piece,u=new bn;u.onclick=s["c"](this._onItemClick,this,c),this._enableHoverLink(u,n.indexInModelPieceList);var d=e.getRepresentValue(c);if(this._createItemSymbol(u,d,[0,0,l[0],l[1]]),h){var p=this.visualMapModel.getValueState(d);u.add(new ys({style:{x:"right"===a?-i:l[0]+i,y:l[1]/2,text:c.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],l,h,a),ju(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var i=this;t.on("mouseover",(function(){return n("highlight")})).on("mouseout",(function(){return n("downplay")}));var n=function(t){var n=i.visualMapModel;n.option.hoverLink&&i.api.dispatchAction({type:t,batch:zZ(n.findTargetDataIndices(e),n)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return NZ(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},e.prototype._renderEndsText=function(t,e,i,n,r){if(e){var o=new bn,a=this.visualMapModel.textStyleModel;o.add(new ys({style:Zl(a,{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=s["H"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),n=t.get("orient"),r=t.get("inverse");return("horizontal"===n?r:!r)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},e.prototype._createItemSymbol=function(t,e,i){t.add(ny(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,i=e.option,n=i.selectedMode;if(n){var r=s["d"](i.selected),o=e.getSelectedMapKey(t);"single"===n||!0===n?(r[o]=!0,s["k"](r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(BZ),fQ=pQ;function gQ(t){t.registerComponentModel(dQ),t.registerComponentView(fQ),sQ(t)}function mQ(t){A_(lQ),A_(gQ)}var vQ={label:{enabled:!0},decal:{show:!1}},yQ=kr(),bQ={};function _Q(t,e){var i=t.getModel("aria");if(i.get("enabled")){var n=s["d"](vQ);s["I"](n.label,t.getLocaleModel().get("aria"),!1),s["I"](i.option,n,!1),r(),o()}function r(){var e=i.getModel("decal"),n=e.get("show");if(n){var r=s["f"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=r.get(t.type);e||(e={},r.set(t.type,e)),yQ(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(s["w"](e.enableAriaDecal))e.enableAriaDecal();else{var i=e.getData();if(e.isColorBySeries()){var n=xh(e.ecModel,e.name,bQ,t.getSeriesCount()),r=i.getVisual("decal");i.setVisual("decal",u(r,n))}else{var o=e.getRawData(),a={},l=yQ(e).scope;i.each((function(t){var e=i.getRawIndex(t);a[e]=t}));var c=o.count();o.each((function(t){var n=a[t],r=o.getName(t)||t+"",s=xh(e.ecModel,r,l,c),h=i.getItemVisual(n,"decal");i.setItemVisual(n,"decal",u(h,s))}))}}function u(t,e){var i=t?s["m"](s["m"]({},e),t):e;return i.dirty=!0,i}}))}}function o(){var n=t.getLocaleModel().get("aria"),r=i.getModel("label");if(r.option=s["i"](r.option,n),r.get("enabled")){var o=e.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,h=t.getSeriesCount(),d=r.get(["data","maxCount"])||10,p=r.get(["series","maxCount"])||10,f=Math.min(h,p);if(!(h<1)){var g=l();if(g){var m=r.get(["general","withTitle"]);u=a(m,{title:g})}else u=r.get(["general","withoutTitle"]);var v=[],y=h>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(y,{seriesCount:h}),t.eachSeries((function(t,e){if(e1?r.get(["series","multiple",o]):r.get(["series","single",o]),i=a(i,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:c(t.subType)});var s=t.getData();if(s.count()>d){var l=r.get(["data","partialData"]);i+=a(l,{displayCnt:d})}else i+=r.get(["data","allData"]);for(var u=r.get(["data","separator","middle"]),p=r.get(["data","separator","end"]),g=[],m=0;m":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},CQ=function(){function t(t){var e=this._condVal=Object(s["C"])(t)?new RegExp(t):Object(s["B"])(t)?t:null;if(null==e){var i="";0,Ah(i)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(s["C"])(e)?this._condVal.test(t):!!Object(s["z"])(e)&&this._condVal.test(t+"")},t}(),kQ=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),MQ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,i]}function f(t,i,n,r){HQ(t,n)&&HQ(i,r)||e.push(t,i,n,r,n,r)}function g(t,i,n,r,o,a){var s=Math.abs(i-t),l=4*Math.tan(s/4)/3,c=iC:T2&&l.push(e),l}function WQ(t,e,i,n,r,o,a,s,l,c){if(HQ(t,i)&&HQ(e,n)&&HQ(r,a)&&HQ(o,s))l.push(a,s);else{var u=2/c,h=u*u,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=i-t,m=n-e,v=r-a,y=o-s,b=g*g+m*m,_=v*v+y*y;if(b=0&&C=0)l.push(a,s);else{var k=[],M=[];Jt(t,i,r,a,.5,k),Jt(e,n,o,s,.5,M),WQ(k[0],M[0],k[1],M[1],k[2],M[2],k[3],M[3],l,c),WQ(k[4],M[4],k[5],M[5],k[6],M[6],k[7],M[7],l,c)}}}}function UQ(t,e){var i=GQ(t),n=[];e=e||1;for(var r=0;r0)for(c=0;cMath.abs(c),h=YQ([l,c],u?0:1,e),d=(u?s:c)/h.length,p=0;pr,a=YQ([n,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=t[s]/a.length,d=0;d1?null:new ji(g*l+t,g*c+e)}function JQ(t,e,i){var n=new ji;ji.sub(n,i,e),n.normalize();var r=new ji;ji.sub(r,t,e);var o=r.dot(n);return o}function tJ(t,e){var i=t[t.length-1];i&&i[0]===e[0]&&i[1]===e[1]||t.push(e)}function eJ(t,e,i){for(var n=t.length,r=[],o=0;oa?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),eJ(e,c,u)}function nJ(t,e,i,n){if(1===i)n.push(e);else{var r=Math.floor(i/2),o=t(e);nJ(t,o[0],r,n),nJ(t,o[1],i-r,n)}return n}function rJ(t,e){for(var i=[],n=0;n0)for(var x=n/i,w=-n/2;w<=n/2;w+=x){var S=Math.sin(w),C=Math.cos(w),k=0;for(b=0;b0;c/=2){var u=0,h=0;(t&c)>0&&(u=1),(e&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(t=c-1-t,e=c-1-e),s=t,t=e,e=s)}return l}function SJ(t){var e=1/0,i=1/0,n=-1/0,r=-1/0,o=Object(s["H"])(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),i=Math.min(l,i),n=Math.max(s,n),r=Math.max(l,r),[s,l]})),a=Object(s["H"])(o,(function(o,a){return{cp:o,z:wJ(o[0],o[1],e,i,n,r),path:t[a]}}));return a.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function CJ(t){return sJ(t.path,t.count)}function kJ(){return{fromIndividuals:[],toIndividuals:[],count:0}}function MJ(t,e,i){var n=[];function r(t){for(var e=0;e=0;r--)if(!i[r].many.length){var l=i[s].many;if(l.length<=1){if(!s)return i;s=0}o=l.length;var c=Math.ceil(o/2);i[r].many=l.slice(c,o),i[s].many=l.slice(0,c),s++}return i}var IJ={clone:function(t){for(var e=[],i=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n0){var l,c,u=n.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);OJ(t)&&(l=t,c=e),OJ(e)&&(l=e,c=t);for(var d=l?l===t:t.length>e.length,p=l?AJ(c,l):AJ(d?e:t,[d?t:e]),f=0,g=0;gEJ))for(var n=i.getIndices(),r=jJ(i),o=0;o0&&r.group.traverse((function(t){t instanceof Ba&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function $J(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function HJ(t){return Object(s["t"])(t)?t.sort().join(","):t}function GJ(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function WJ(t,e){var i=Object(s["f"])(),n=Object(s["f"])(),r=Object(s["f"])();return Object(s["k"])(t.oldSeries,(function(e,i){var o=t.oldData[i],a=$J(e),l=HJ(a);n.set(l,o),Object(s["t"])(a)&&Object(s["k"])(a,(function(t){r.set(t,{data:o,key:l})}))})),Object(s["k"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),o=$J(t),a=HJ(o),l=n.get(a);if(l)i.set(a,{oldSeries:[{divide:GJ(l),data:l}],newSeries:[{divide:GJ(e),data:e}]});else if(Object(s["t"])(o)){0;var c=[];Object(s["k"])(o,(function(t){var e=n.get(t);e&&c.push({divide:GJ(e),data:e})})),c.length&&i.set(a,{oldSeries:c,newSeries:[{data:e,divide:GJ(e)}]})}else{var u=r.get(o);if(u){var h=i.get(u.key);h||(h={oldSeries:[{data:u.data,divide:GJ(u.data)}],newSeries:[]},i.set(u.key,h)),h.newSeries.push({data:e,divide:GJ(e)})}}}})),i}function UJ(t,e){for(var i=0;i=0&&r.push({data:e.oldData[i],divide:GJ(e.oldData[i]),dim:t.dimension})})),Object(s["k"])(nr(t.to),(function(t){var e=UJ(i.updatedSeries,t);if(e>=0){var n=i.updatedSeries[e].getData();o.push({data:n,divide:GJ(n),dim:t.dimension})}})),r.length>0&&o.length>0&&qJ(r,o,n)}function XJ(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,i){Object(s["k"])(nr(i.seriesTransition),(function(t){Object(s["k"])(nr(t.to),(function(t){for(var e=i.updatedSeries,n=0;n=0&&i.attr(r.oldLayoutSelect),Object(s["r"])(h,"emphasis")>=0&&i.attr(r.oldLayoutEmphasis)),Fl(i,c,e,l)}else if(i.attr(c),!ac(i).valueAnimation){var d=Object(s["P"])(i.style.opacity,1);i.style.opacity=0,Nl(i,{style:{opacity:d}},e,l)}if(r.oldLayout=c,i.states.select){var p=r.oldLayoutSelect={};i0(p,c,n0),i0(p,i.states.select,n0)}if(i.states.emphasis){var f=r.oldLayoutEmphasis={};i0(f,c,n0),i0(f,i.states.emphasis,n0)}lc(i,l,u,e,e)}if(n&&!n.ignore&&!n.invisible){r=e0(n),o=r.oldLayout;var g={points:n.shape.points};o?(n.attr({shape:o}),Fl(n,{shape:g},e)):(n.setShape(g),n.style.strokePercent=0,Nl(n,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),o0=r0,a0=kr();function s0(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,i){var n=a0(e).labelManager;n||(n=a0(e).labelManager=new o0),n.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,i){var n=a0(e).labelManager;i.updatedSeries.forEach((function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()}))}A_([V_]),A_([fw]),A_([fC,hk,cM,cA,IA,HP,qD,mL,Ej,$j,tR,oF,BF,iN,AN,BN,az,vz,Uz,nV,wV,Zq]),A_(X$),A_(VH),A_($P),A_(pG),A_(rF),A_(SG),A_(VG),A_(kU),A_(sY),A_(Y$),A_(VY),A_(HY),A_(pX),A_(NX),A_(ZX),A_(uK),A_(NK),A_(_Z),A_(iZ),A_(bZ),A_(mQ),A_(lQ),A_(gQ),A_(wQ),A_(NQ),A_(qQ),A_(XJ),A_(s0)},"342f":function(t,e,i){var n=i("d066");t.exports=n("navigator","userAgent")||""},"34fc":function(t,e,i){const n=i("7a43"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return r[4*(t-1)+0];case n.M:return r[4*(t-1)+1];case n.Q:return r[4*(t-1)+2];case n.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return o[4*(t-1)+0];case n.M:return o[4*(t-1)+1];case n.Q:return o[4*(t-1)+2];case n.H:return o[4*(t-1)+3];default:return}}},"35a1":function(t,e,i){var n=i("f5df"),r=i("dc4a"),o=i("3f8c"),a=i("b622"),s=a("iterator");t.exports=function(t){if(void 0!=t)return r(t,s)||r(t,"@@iterator")||o[n(t)]}},3627:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a}));const n=["left","right","up","down","horizontal","vertical"],r={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0,all:!0};function o(t){const e={};return n.forEach((i=>{t[i]&&(e[i]=!0)})),0===Object.keys(e).length?r:(!0===e.horizontal&&(e.left=e.right=!0),!0===e.vertical&&(e.up=e.down=!0),!0===e.left&&!0===e.right&&(e.horizontal=!0),!0===e.up&&!0===e.down&&(e.vertical=!0),!0===e.horizontal&&!0===e.vertical&&(e.all=!0),e)}function a(t,e){return void 0===e.event&&void 0!==t.target&&!0!==t.target.draggable&&"function"===typeof e.handler&&"INPUT"!==t.target.nodeName.toUpperCase()&&(void 0===t.qClonedBy||-1===t.qClonedBy.indexOf(e.uid))}},"37e8":function(t,e,i){var n=i("83ab"),r=i("aed9"),o=i("9bf2"),a=i("825a"),s=i("fc6a"),l=i("df75");e.f=n&&!r?Object.defineProperties:function(t,e){a(t);var i,n=s(e),r=l(e),c=r.length,u=0;while(c>u)o.f(t,i=r[u++],n[i]);return t}},"387f":function(t,e,i){"use strict";t.exports=function(t,e,i,n,r){return t.config=e,i&&(t.code=i),t.request=n,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},3934:function(t,e,i){"use strict";var n=i("c532");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(t){var n=t;return e&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=r(window.location.href),function(e){var i=n.isString(e)?r(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},3980:function(t,e,i){"use strict";var n=i("2b0e"),r=i("d882"),o=i("0967"),a={data(){return{canRender:!o["f"]}},mounted(){!1===this.canRender&&(this.canRender=!0)}},s=i("0cd3");e["a"]=n["a"].extend({name:"QResizeObserver",mixins:[a],props:{debounce:{type:[String,Number],default:100}},data(){return!0===this.hasObserver?{}:{url:!0===this.$q.platform.is.ie?null:"about:blank"}},methods:{trigger(t){!0===t||0===this.debounce||"0"===this.debounce?this.__emit():null===this.timer&&(this.timer=setTimeout(this.__emit,this.debounce))},__emit(){if(null!==this.timer&&(clearTimeout(this.timer),this.timer=null),!this.$el||!this.$el.parentNode)return;const t=this.$el.parentNode,e={width:t.offsetWidth,height:t.offsetHeight};e.width===this.size.width&&e.height===this.size.height||(this.size=e,this.$emit("resize",this.size))},__cleanup(){void 0!==this.curDocView&&(void 0!==this.curDocView.removeEventListener&&this.curDocView.removeEventListener("resize",this.trigger,r["f"].passive),this.curDocView=void 0)},__onObjLoad(){this.__cleanup(),this.$el.contentDocument&&(this.curDocView=this.$el.contentDocument.defaultView,this.curDocView.addEventListener("resize",this.trigger,r["f"].passive)),this.__emit()}},render(t){if(!1!==this.canRender&&!0!==this.hasObserver)return t("object",{style:this.style,attrs:{tabindex:-1,type:"text/html",data:this.url,"aria-hidden":"true"},on:Object(s["b"])(this,"load",{load:this.__onObjLoad})})},beforeCreate(){this.size={width:-1,height:-1},!0!==o["e"]&&(this.hasObserver="undefined"!==typeof ResizeObserver,!0!==this.hasObserver&&(this.style=(this.$q.platform.is.ie?"visibility:hidden;":"")+"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;"))},mounted(){if(this.timer=null,!0===this.hasObserver)return this.observer=new ResizeObserver(this.trigger),this.observer.observe(this.$el.parentNode),void this.__emit();!0===this.$q.platform.is.ie?(this.url="about:blank",this.__emit()):this.__onObjLoad()},beforeDestroy(){clearTimeout(this.timer),!0!==this.hasObserver?this.__cleanup():void 0!==this.observer&&this.$el.parentNode&&this.observer.unobserve(this.$el.parentNode)}})},"3a9b":function(t,e,i){var n=i("e330");t.exports=n({}.isPrototypeOf)},"3b16":function(t,e,i){"use strict";i("caad");var n=i("2b0e"),r=i("9c40"),o=i("27f9"),a=i("b7fa"),s=i("87e8"),l=i("d882"),c=i("7937"),u=i("d728"),h=i("0cd3");e["a"]=n["a"].extend({name:"QPagination",mixins:[a["a"],s["a"]],props:{value:{type:Number,required:!0},min:{type:Number,default:1},max:{type:Number,required:!0},color:{type:String,default:"primary"},textColor:String,activeColor:String,activeTextColor:String,inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},maxPages:{type:Number,default:0,validator:t=>t>=0},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,dense:Boolean,padding:{type:String,default:"3px 2px"}},data(){return{newPage:null}},watch:{min(){this.model=this.value},max(){this.model=this.value}},computed:{model:{get(){return this.value},set(t){if(t=parseInt(t,10),this.disable||isNaN(t))return;const e=Object(c["a"])(t,this.min,this.max);this.$emit("input",e)}},inputPlaceholder(){return this.model+" / "+this.max},__boundaryLinks(){return this.__getBool(this.boundaryLinks,this.input)},__boundaryNumbers(){return this.__getBool(this.boundaryNumbers,!this.input)},__directionLinks(){return this.__getBool(this.directionLinks,this.input)},__ellipses(){return this.__getBool(this.ellipses,!this.input)},icons(){const t=[this.iconFirst||this.$q.iconSet.pagination.first,this.iconPrev||this.$q.iconSet.pagination.prev,this.iconNext||this.$q.iconSet.pagination.next,this.iconLast||this.$q.iconSet.pagination.last];return!0===this.$q.lang.rtl?t.reverse():t},attrs(){if(!0===this.disable)return{"aria-disabled":"true"}},btnProps(){return{round:this.round,rounded:this.rounded,outline:this.outline,unelevated:this.unelevated,push:this.push,glossy:this.glossy,dense:this.dense,padding:this.padding,color:this.color,flat:!0,size:this.size,ripple:null===this.ripple||this.ripple}},activeBtnProps(){return{flat:this.flat,color:this.activeColor||this.color,textColor:this.activeTextColor||this.textColor}}},methods:{set(t){this.model=t},setByOffset(t){this.model=this.model+t},__update(){this.model=this.newPage,this.newPage=null},__getBool(t,e){return[!0,!1].includes(t)?t:e},__getBtn(t,e,i,n){return e.props={...this.btnProps,...i},void 0!==n&&(void 0!==this.toFn?e.props.to=this.toFn(n):e.on={click:()=>this.set(n)}),t(r["a"],e)}},render(t){const e=[],i=[],n=[];if(this.__boundaryLinks&&(e.push(this.__getBtn(t,{key:"bls"},{disable:this.disable||this.value<=this.min,icon:this.icons[0]},this.min)),i.unshift(this.__getBtn(t,{key:"ble"},{disable:this.disable||this.value>=this.max,icon:this.icons[3]},this.max))),this.__directionLinks&&(e.push(this.__getBtn(t,{key:"bdp"},{disable:this.disable||this.value<=this.min,icon:this.icons[1]},this.value-1)),i.unshift(this.__getBtn(t,{key:"bdn"},{disable:this.disable||this.value>=this.max,icon:this.icons[2]},this.value+1))),!0===this.input)n.push(t(o["a"],{staticClass:"inline",style:{width:this.inputPlaceholder.length/1.5+"em"},props:{type:"number",dense:!0,value:this.newPage,disable:this.disable,dark:this.isDark,borderless:!0,inputClass:this.inputClass,inputStyle:this.inputStyle},attrs:{placeholder:this.inputPlaceholder,min:this.min,max:this.max},on:Object(h["b"])(this,"inp",{input:t=>{this.newPage=t},keyup:t=>{!0===Object(u["a"])(t,13)&&this.__update()},blur:this.__update})}));else{let r=Math.max(this.maxPages,1+(this.__ellipses?2:0)+(this.__boundaryNumbers?2:0)),o=this.min,a=this.max,s=!1,l=!1,c=!1,u=!1;this.maxPages&&rthis.min+(this.__boundaryNumbers?1:0)&&(s=!0,o+=1),this.__boundaryNumbers&&(u=!0,a-=1),this.__ellipses&&a1?arguments[1]:void 0,1),i=l(t);if(m)return r(p,this,i,e);var n=this.length,o=a(i),c=0;if(o+e>n)throw u("Wrong length");while(c=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})}))},"3d69":function(t,e,i){"use strict";var n=i("714f");e["a"]={directives:{Ripple:n["a"]},props:{ripple:{type:[Boolean,Object],default:!0}}}},"3f8c":function(t,e){t.exports={}},4002:function(t,e,i){"use strict";i("3ca3");var n,r=i("23e7"),o=i("83ab"),a=i("0d3b"),s=i("da84"),l=i("0366"),c=i("e330"),u=i("cb2d"),h=i("edd0"),d=i("19aa"),p=i("1a2d"),f=i("60da"),g=i("4df4"),m=i("4dae"),v=i("6547").codeAt,y=i("5fb2"),b=i("577e"),_=i("d44e"),x=i("d6d6"),w=i("5352"),S=i("69f3"),C=S.set,k=S.getterFor("URL"),M=w.URLSearchParams,T=w.getState,O=s.URL,A=s.TypeError,I=s.parseInt,P=Math.floor,D=Math.pow,E=c("".charAt),L=c(/./.exec),j=c([].join),R=c(1..toString),B=c([].pop),F=c([].push),N=c("".replace),z=c([].shift),V=c("".split),q=c("".slice),$=c("".toLowerCase),H=c([].unshift),G="Invalid authority",W="Invalid scheme",U="Invalid host",Y="Invalid port",X=/[a-z]/i,K=/[\d+-.a-z]/i,Z=/\d/,Q=/^0x/i,J=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,it=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ot=/[\t\n\r]/g,at=function(t){var e,i,n,r,o,a,s,l=V(t,".");if(l.length&&""==l[l.length-1]&&l.length--,e=l.length,e>4)return t;for(i=[],n=0;n1&&"0"==E(r,0)&&(o=L(Q,r)?16:8,r=q(r,8==o?1:2)),""===r)a=0;else{if(!L(10==o?tt:8==o?J:et,r))return t;a=I(r,o)}F(i,a)}for(n=0;n=D(256,5-e))return null}else if(a>255)return null;for(s=B(i),n=0;n6)return;n=0;while(d()){if(r=null,n>0){if(!("."==d()&&n<4))return;h++}if(!L(Z,d()))return;while(L(Z,d())){if(o=I(d(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}l[c]=256*l[c]+r,n++,2!=n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[c++]=e}else{if(null!==u)return;h++,c++,u=c}}if(null!==u){a=c-u,c=7;while(0!=c&&a>0)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s}else if(8!=c)return;return l},lt=function(t){for(var e=null,i=1,n=null,r=0,o=0;o<8;o++)0!==t[o]?(r>i&&(e=n,i=r),n=null,r=0):(null===n&&(n=o),++r);return r>i&&(e=n,i=r),e},ct=function(t){var e,i,n,r;if("number"==typeof t){for(e=[],i=0;i<4;i++)H(e,t%256),t=P(t/256);return j(e,".")}if("object"==typeof t){for(e="",n=lt(t),i=0;i<8;i++)r&&0===t[i]||(r&&(r=!1),n===i?(e+=i?":":"::",r=!0):(e+=R(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},ut={},ht=f({},ut,{" ":1,'"':1,"<":1,">":1,"`":1}),dt=f({},ht,{"#":1,"?":1,"{":1,"}":1}),pt=f({},dt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ft=function(t,e){var i=v(t,0);return i>32&&i<127&&!p(e,t)?t:encodeURIComponent(t)},gt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},mt=function(t,e){var i;return 2==t.length&&L(X,E(t,0))&&(":"==(i=E(t,1))||!e&&"|"==i)},vt=function(t){var e;return t.length>1&&mt(q(t,0,2))&&(2==t.length||"/"===(e=E(t,2))||"\\"===e||"?"===e||"#"===e)},yt=function(t){return"."===t||"%2e"===$(t)},bt=function(t){return t=$(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},_t={},xt={},wt={},St={},Ct={},kt={},Mt={},Tt={},Ot={},At={},It={},Pt={},Dt={},Et={},Lt={},jt={},Rt={},Bt={},Ft={},Nt={},zt={},Vt=function(t,e,i){var n,r,o,a=b(t);if(e){if(r=this.parse(a),r)throw A(r);this.searchParams=null}else{if(void 0!==i&&(n=new Vt(i,!0)),r=this.parse(a,null,n),r)throw A(r);o=T(new M),o.bindURL(this),this.searchParams=o}};Vt.prototype={type:"URL",parse:function(t,e,i){var r,o,a,s,l=this,c=e||_t,u=0,h="",d=!1,f=!1,v=!1;t=b(t),e||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,t=N(t,rt,"")),t=N(t,ot,""),r=g(t);while(u<=r.length){switch(o=r[u],c){case _t:if(!o||!L(X,o)){if(e)return W;c=wt;continue}h+=$(o),c=xt;break;case xt:if(o&&(L(K,o)||"+"==o||"-"==o||"."==o))h+=$(o);else{if(":"!=o){if(e)return W;h="",c=wt,u=0;continue}if(e&&(l.isSpecial()!=p(gt,h)||"file"==h&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=h,e)return void(l.isSpecial()&>[l.scheme]==l.port&&(l.port=null));h="","file"==l.scheme?c=Et:l.isSpecial()&&i&&i.scheme==l.scheme?c=St:l.isSpecial()?c=Tt:"/"==r[u+1]?(c=Ct,u++):(l.cannotBeABaseURL=!0,F(l.path,""),c=Ft)}break;case wt:if(!i||i.cannotBeABaseURL&&"#"!=o)return W;if(i.cannotBeABaseURL&&"#"==o){l.scheme=i.scheme,l.path=m(i.path),l.query=i.query,l.fragment="",l.cannotBeABaseURL=!0,c=zt;break}c="file"==i.scheme?Et:kt;continue;case St:if("/"!=o||"/"!=r[u+1]){c=kt;continue}c=Ot,u++;break;case Ct:if("/"==o){c=At;break}c=Bt;continue;case kt:if(l.scheme=i.scheme,o==n)l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,l.path=m(i.path),l.query=i.query;else if("/"==o||"\\"==o&&l.isSpecial())c=Mt;else if("?"==o)l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,l.path=m(i.path),l.query="",c=Nt;else{if("#"!=o){l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,l.path=m(i.path),l.path.length--,c=Bt;continue}l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,l.path=m(i.path),l.query=i.query,l.fragment="",c=zt}break;case Mt:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=i.username,l.password=i.password,l.host=i.host,l.port=i.port,c=Bt;continue}c=At}else c=Ot;break;case Tt:if(c=Ot,"/"!=o||"/"!=E(h,u+1))continue;u++;break;case Ot:if("/"!=o&&"\\"!=o){c=At;continue}break;case At:if("@"==o){d&&(h="%40"+h),d=!0,a=g(h);for(var y=0;y65535)return Y;l.port=l.isSpecial()&&w===gt[l.scheme]?null:w,h=""}if(e)return;c=Rt;continue}return Y}h+=o;break;case Et:if(l.scheme="file","/"==o||"\\"==o)c=Lt;else{if(!i||"file"!=i.scheme){c=Bt;continue}if(o==n)l.host=i.host,l.path=m(i.path),l.query=i.query;else if("?"==o)l.host=i.host,l.path=m(i.path),l.query="",c=Nt;else{if("#"!=o){vt(j(m(r,u),""))||(l.host=i.host,l.path=m(i.path),l.shortenPath()),c=Bt;continue}l.host=i.host,l.path=m(i.path),l.query=i.query,l.fragment="",c=zt}}break;case Lt:if("/"==o||"\\"==o){c=jt;break}i&&"file"==i.scheme&&!vt(j(m(r,u),""))&&(mt(i.path[0],!0)?F(l.path,i.path[0]):l.host=i.host),c=Bt;continue;case jt:if(o==n||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&mt(h))c=Bt;else if(""==h){if(l.host="",e)return;c=Rt}else{if(s=l.parseHost(h),s)return s;if("localhost"==l.host&&(l.host=""),e)return;h="",c=Rt}continue}h+=o;break;case Rt:if(l.isSpecial()){if(c=Bt,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=n&&(c=Bt,"/"!=o))continue}else l.fragment="",c=zt;else l.query="",c=Nt;break;case Bt:if(o==n||"/"==o||"\\"==o&&l.isSpecial()||!e&&("?"==o||"#"==o)){if(bt(h)?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||F(l.path,"")):yt(h)?"/"==o||"\\"==o&&l.isSpecial()||F(l.path,""):("file"==l.scheme&&!l.path.length&&mt(h)&&(l.host&&(l.host=""),h=E(h,0)+":"),F(l.path,h)),h="","file"==l.scheme&&(o==n||"?"==o||"#"==o))while(l.path.length>1&&""===l.path[0])z(l.path);"?"==o?(l.query="",c=Nt):"#"==o&&(l.fragment="",c=zt)}else h+=ft(o,dt);break;case Ft:"?"==o?(l.query="",c=Nt):"#"==o?(l.fragment="",c=zt):o!=n&&(l.path[0]+=ft(o,ut));break;case Nt:e||"#"!=o?o!=n&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":ft(o,ut)):(l.fragment="",c=zt);break;case zt:o!=n&&(l.fragment+=ft(o,ht));break}u++}},parseHost:function(t){var e,i,n;if("["==E(t,0)){if("]"!=E(t,t.length-1))return U;if(e=st(q(t,1,-1)),!e)return U;this.host=e}else if(this.isSpecial()){if(t=y(t),L(it,t))return U;if(e=at(t),null===e)return U;this.host=e}else{if(L(nt,t))return U;for(e="",i=g(t),n=0;n1?arguments[1]:void 0,n=C(e,new Vt(t,!1,i));o||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},$t=qt.prototype,Ht=function(t,e){return{get:function(){return k(this)[t]()},set:e&&function(t){return k(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(h($t,"href",Ht("serialize","setHref")),h($t,"origin",Ht("getOrigin")),h($t,"protocol",Ht("getProtocol","setProtocol")),h($t,"username",Ht("getUsername","setUsername")),h($t,"password",Ht("getPassword","setPassword")),h($t,"host",Ht("getHost","setHost")),h($t,"hostname",Ht("getHostname","setHostname")),h($t,"port",Ht("getPort","setPort")),h($t,"pathname",Ht("getPathname","setPathname")),h($t,"search",Ht("getSearch","setSearch")),h($t,"searchParams",Ht("getSearchParams")),h($t,"hash",Ht("getHash","setHash"))),u($t,"toJSON",(function(){return k(this).serialize()}),{enumerable:!0}),u($t,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),O){var Gt=O.createObjectURL,Wt=O.revokeObjectURL;Gt&&u(qt,"createObjectURL",l(Gt,O)),Wt&&u(qt,"revokeObjectURL",l(Wt,O))}_(qt,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!o},{URL:qt})},4006:function(t,e,i){const n=i("45be");function r(t,e){const i=t.a/255,n=e+'="'+t.hex+'"';return i<1?n+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':n}function o(t,e,i){let n=t+e;return"undefined"!==typeof i&&(n+=" "+i),n}function a(t,e,i){let n="",r=0,a=!1,s=0;for(let l=0;l0&&c>0&&t[l-1]||(n+=a?o("M",c+i,.5+u+i):o("m",r,0),r=0,a=!1),c+1':"",h="',d='viewBox="0 0 '+c+" "+c+'"',p=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f=''+u+h+"\n";return"function"===typeof i&&i(null,f),f}},4074:function(t,e,i){"use strict";var n=i("2b0e"),r=i("87e8"),o=i("dde5");e["a"]=n["a"].extend({name:"QItemSection",mixins:[r["a"]],props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},computed:{classes(){const t=this.avatar||this.side||this.thumbnail;return{"q-item__section--top":this.top,"q-item__section--avatar":this.avatar,"q-item__section--thumbnail":this.thumbnail,"q-item__section--side":t,"q-item__section--nowrap":this.noWrap,"q-item__section--main":!t,["justify-"+(this.top?"start":"center")]:!0}}},render(t){return t("div",{staticClass:"q-item__section column",class:this.classes,on:{...this.qListeners}},Object(o["c"])(this,"default"))}})},"40d5":function(t,e,i){var n=i("d039");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4146:function(t,e,i){const n=i("45be");function r(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}function o(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(t,e,i){let a=i,s=e;"undefined"!==typeof a||e&&e.getContext||(a=e,e=void 0),e||(s=o()),a=n.getOptions(a);const l=n.getImageWidth(t.modules.size,a),c=s.getContext("2d"),u=c.createImageData(l,l);return n.qrToImageData(u.data,t,a),r(c,s,l),c.putImageData(u,0,0),s},e.renderToDataURL=function(t,i,n){let r=n;"undefined"!==typeof r||i&&i.getContext||(r=i,i=void 0),r||(r={});const o=e.render(t,i,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}},"41ef":function(t,e,i){"use strict";i.d(e,"g",(function(){return v})),i.d(e,"c",(function(){return _})),i.d(e,"a",(function(){return x})),i.d(e,"b",(function(){return w})),i.d(e,"f",(function(){return S})),i.d(e,"e",(function(){return C})),i.d(e,"h",(function(){return k})),i.d(e,"d",(function(){return M}));var n=i("d51b"),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return t=Math.round(t),t<0?0:t>255?255:t}function a(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function h(t,e,i){return t+(e-t)*i}function d(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new n["a"](20),g=null;function m(t,e){g&&p(g,e),g=f.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var i=f.get(t);if(i)return p(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in r)return p(e,r[n]),m(t,e),e;var o=n.length;if("#"!==n.charAt(0)){var a=n.indexOf("("),s=n.indexOf(")");if(-1!==a&&s+1===o){var u=n.substr(0,a),h=n.substr(a+1,s-(a+1)).split(","),g=1;switch(u){case"rgba":if(4!==h.length)return 3===h.length?d(e,+h[0],+h[1],+h[2],1):d(e,0,0,0,1);g=c(h.pop());case"rgb":return 3!==h.length?void d(e,0,0,0,1):(d(e,l(h[0]),l(h[1]),l(h[2]),g),m(t,e),e);case"hsla":return 4!==h.length?void d(e,0,0,0,1):(h[3]=c(h[3]),y(h,e),m(t,e),e);case"hsl":return 3!==h.length?void d(e,0,0,0,1):(y(h,e),m(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===o||5===o){var v=parseInt(n.slice(1,4),16);return v>=0&&v<=4095?(d(e,(3840&v)>>4|(3840&v)>>8,240&v|(240&v)>>4,15&v|(15&v)<<4,5===o?parseInt(n.slice(4),16)/15:1),m(t,e),e):void d(e,0,0,0,1)}if(7===o||9===o){v=parseInt(n.slice(1,7),16);return v>=0&&v<=16777215?(d(e,(16711680&v)>>16,(65280&v)>>8,255&v,9===o?parseInt(n.slice(7),16)/255:1),m(t,e),e):void d(e,0,0,0,1)}}}}function y(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=c(t[1]),r=c(t[2]),a=r<=.5?r*(n+1):r+n-r*n,s=2*r-a;return e=e||[],d(e,o(255*u(s,a,i+1/3)),o(255*u(s,a,i)),o(255*u(s,a,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,c=(s+a)/2;if(0===l)e=0,i=0;else{i=c<.5?l/(s+a):l/(2-s-a);var u=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+u-d:o===s&&(e=2/3+h-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,c];return null!=t[3]&&p.push(t[3]),p}}function _(t,e){var i=v(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return k(i,4===i.length?"rgba":"rgb")}}function x(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),r=Math.floor(n),a=Math.ceil(n),l=e[r],c=e[a],u=n-r;return i[0]=o(h(l[0],c[0],u)),i[1]=o(h(l[1],c[1],u)),i[2]=o(h(l[2],c[2],u)),i[3]=s(h(l[3],c[3],u)),i}}function w(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),r=Math.floor(n),a=Math.ceil(n),l=v(e[r]),c=v(e[a]),u=n-r,d=k([o(h(l[0],c[0],u)),o(h(l[1],c[1],u)),o(h(l[2],c[2],u)),s(h(l[3],c[3],u))],"rgba");return i?{color:d,leftIndex:r,rightIndex:a,value:n}:d}}function S(t,e,i,n){var r=v(t);if(t)return r=b(r),null!=e&&(r[0]=a(e)),null!=i&&(r[1]=c(i)),null!=n&&(r[2]=c(n)),k(y(r),"rgba")}function C(t,e){var i=v(t);if(i&&null!=e)return i[3]=s(e),k(i,"rgba")}function k(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}function M(t,e){var i=v(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*e:0}},"429b":function(t,e,i){"use strict";i("caad");var n=i("2b0e"),r=i("0016"),o=i("3980"),a=i("463c"),s=i("87e8"),l=i("d882"),c=i("dde5"),u=i("0cd3"),h=i("0831");function d(t,e,i){const n=!0===i?["left","right"]:["top","bottom"];return`absolute-${!0===e?n[0]:n[1]}${t?` text-${t}`:""}`}function p(t,e){return t.priorityMatched===e.priorityMatched?e.priorityHref-t.priorityHref:e.priorityMatched-t.priorityMatched}function f(t){return t.selected=!1,t}const g=[t=>!0===t.selected&&!0===t.exact&&!0!==t.redirected,t=>!0===t.selected&&!0===t.exact,t=>!0===t.selected&&!0!==t.redirected,t=>!0===t.selected,t=>!0===t.exact&&!0!==t.redirected,t=>!0!==t.redirected,t=>!0===t.exact,t=>!0],m=g.length;e["a"]=n["a"].extend({name:"QTabs",mixins:[a["a"],s["a"]],provide(){return{tabs:this.tabs,__recalculateScroll:this.__recalculateScroll,__activateTab:this.__activateTab,__activateRoute:this.__activateRoute,__onKbdNavigate:this.__onKbdNavigate}},props:{value:[Number,String],align:{type:String,default:"center",validator:t=>["left","center","right","justify"].includes(t)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String},data(){return{tabs:{current:this.value,hasFocus:!1,activeClass:this.activeClass,activeColor:this.activeColor,activeBgColor:this.activeBgColor,indicatorClass:d(this.indicatorColor,this.switchIndicator,this.vertical),narrowIndicator:this.narrowIndicator,inlineLabel:this.inlineLabel,noCaps:this.noCaps},scrollable:!1,startArrow:!0,endArrow:!1,justify:!1}},watch:{value(t){this.__activateTab(t,!0,!0)},activeClass(t){this.tabs.activeClass=t},activeColor(t){this.tabs.activeColor=t},activeBgColor(t){this.tabs.activeBgColor=t},vertical(t){this.tabs.indicatorClass=d(this.indicatorColor,this.switchIndicator,t)},indicatorColor(t){this.tabs.indicatorClass=d(t,this.switchIndicator,this.vertical)},switchIndicator(t){this.tabs.indicatorClass=d(this.indicatorColor,t,this.vertical)},narrowIndicator(t){this.tabs.narrowIndicator=t},inlineLabel(t){this.tabs.inlineLabel=t},noCaps(t){this.tabs.noCaps=t},outsideArrows(){this.__recalculateScroll()},arrowsEnabled(t){this.__updateArrows=!0===t?this.__updateArrowsFn:l["g"],this.__recalculateScroll()},isRTL(){this.__updateArrows()}},computed:{arrowsEnabled(){return!0===this.$q.platform.is.desktop||!0===this.mobileArrows},arrowIcons(){const t=!0===this.isRTL?["end","start"]:["start","end"];return{[t[0]]:this.leftIcon||(!0===this.vertical?this.$q.iconSet.tabs.up:this.$q.iconSet.tabs.left),[t[1]]:this.rightIcon||(!0===this.vertical?this.$q.iconSet.tabs.down:this.$q.iconSet.tabs.right)}},alignClass(){const t=!0===this.scrollable?"left":!0===this.justify?"justify":this.align;return`q-tabs__content--align-${t}`},classes(){return`q-tabs--${!0===this.scrollable?"":"not-"}scrollable q-tabs--`+(!0===this.vertical?"vertical":"horizontal")+" q-tabs__arrows--"+(!0===this.arrowsEnabled&&!0===this.outsideArrows?"outside":"inside")+(!0===this.dense?" q-tabs--dense":"")+(!0===this.shrink?" col-shrink":"")+(!0===this.stretch?" self-stretch":"")},innerClass(){return this.alignClass+(void 0!==this.contentClass?` ${this.contentClass}`:"")+(!0===this.$q.platform.is.mobile?" scroll":"")},domProps(){return!0===this.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}},isRTL(){return!0!==this.vertical&&!0===this.$q.lang.rtl},__getScrollPosition(){return!0===this.vertical?t=>t.scrollTop:!0!==this.$q.lang.rtl?t=>t.scrollLeft:!0===this.rtlHasScrollBug?t=>t.scrollWidth-t.clientWidth-t.scrollLeft:t=>1-t.scrollLeft},__setScrollPosition(){return!0===this.vertical?(t,e)=>{t.scrollTop=e}:!0!==this.$q.lang.rtl?(t,e)=>{t.scrollLeft=e}:!0===this.rtlHasScrollBug?(t,e)=>{t.scrollLeft=t.scrollWidth-t.clientWidth-e}:(t,e)=>{t.scrollLeft=1-e}},__getScrollOffset(){return!0===this.vertical?t=>t.offsetTop:!0!==this.$q.lang.rtl||!0===this.rtlHasScrollBug?t=>t.offsetLeft:t=>t.offsetParent.offsetWidth-t.offsetLeft-t.clientWidth},onEvents(){return{input:l["k"],...this.qListeners,focusin:this.__onFocusin,focusout:this.__onFocusout}}},methods:{__onFocusin(t){this.tabs.hasFocus=!0,void 0!==this.qListeners.focusin&&this.$emit("focusin",t)},__onFocusout(t){this.tabs.hasFocus=!1,void 0!==this.qListeners.focusout&&this.$emit("focusout",t)},__activateTab(t,e,i){this.tabs.current!==t&&(!0!==i&&this.$emit("input",t),!0!==e&&void 0!==this.qListeners.input||(this.__animate(this.tabs.current,t),this.tabs.current=t))},__activateRoute(t){this.bufferRoute!==this.$route&&this.buffer.length>0&&(clearTimeout(this.bufferTimer),this.bufferTimer=void 0,this.buffer.length=0),this.bufferRoute=this.$route,void 0!==t&&(!0===t.remove?this.buffer=this.buffer.filter((e=>e.name!==t.name)):this.buffer.push(t)),void 0===this.bufferTimer&&(this.bufferTimer=setTimeout((()=>{let t=[];for(let e=0;e{!0!==this._isDestroyed&&this.__updateContainer({width:this.$el.offsetWidth,height:this.$el.offsetHeight})})),this.__prepareTick()},__updateContainer(t){const e=t[this.domProps.container],i=Math.min(this.$refs.content[this.domProps.scroll],Array.prototype.reduce.call(this.$refs.content.children,((t,e)=>t+(e[this.domProps.content]||0)),0)),n=e>0&&i>e;this.scrollable!==n&&(this.scrollable=n),!0===n&&this.$nextTick((()=>this.__updateArrows()));const r=ee.name===t)):null,n=void 0!==e&&null!==e&&""!==e?this.$children.find((t=>t.name===e)):null;if(i&&n){const t=i.$el.getElementsByClassName("q-tab__indicator")[0],e=n.$el.getElementsByClassName("q-tab__indicator")[0];clearTimeout(this.animateTimer),t.style.transition="none",t.style.transform="none",e.style.transition="none",e.style.transform="none";const r=t.getBoundingClientRect(),o=e.getBoundingClientRect();e.style.transform=!0===this.vertical?`translate3d(0,${r.top-o.top}px,0) scale3d(1,${o.height?r.height/o.height:1},1)`:`translate3d(${r.left-o.left}px,0,0) scale3d(${o.width?r.width/o.width:1},1,1)`,this.$nextTick((()=>{this.animateTimer=setTimeout((()=>{e.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",e.style.transform="none"}),70)}))}n&&!0===this.scrollable?this.__scrollToTab(n.$el,void 0,!0):this.__updateArrows()},__updateArrowsFn(){const{content:t}=this.$refs;if(void 0!==t){const e=t.getBoundingClientRect(),i=this.__getScrollPosition(t);this.startArrow=i>(!0===this.isRTL?1:0),this.endArrow=!0===this.vertical?Math.ceil(i+e.height){this.__scrollTowards(t)&&this.__stopAnimScroll()}),5)},__scrollToStart(){this.__animScrollTo(0)},__scrollToEnd(){this.__animScrollTo(Number.MAX_SAFE_INTEGER)},__stopAnimScroll(){clearInterval(this.scrollTimer),void 0!==this.__onAnimScrollEnd&&(this.__onAnimScrollEnd(),this.__onAnimScrollEnd=void 0)},__scrollTowards(t){const e=this.$refs.content,i=!0===this.vertical?e.scrollHeight-e.offsetHeight:e.scrollWidth-e.offsetWidth;let n=this.__getScrollPosition(e),r=!1;t=Math.max(0,Math.min(i,t));const o=t=t)&&(r=!0,n=t),this.__setScrollPosition(e,n),this.__updateArrows(),r},__scrollToTab(t,e,i){if(void 0===this.$refs.content)return;const n=this.$refs.content,r=this.__getScrollPosition(n),o=!0===this.vertical?n.offsetHeight:n.offsetWidth,a=!0===this.vertical?n.scrollHeight:n.scrollWidth,s=this.__getScrollOffset(t),l=s+(!0===this.vertical?t.offsetHeight:t.offsetWidth),c=sr+o;!0!==c&&!0!==u?e=void 0:void 0===e&&(l>=a-1?e=!0:!0===c||!0===u&&s=a-1?a:l-o:s<=1?0:s,!0!==i?()=>{setTimeout((()=>{t&&t.focus()}))}:void 0):!0!==i&&t.focus()},__onKbdNavigate(t,e){const i=t=>t===e||t.matches&&!0===t.matches(".q-tab.q-focusable"),n=Array.prototype.filter.call(this.$refs.content.children,i),r=n.length;if(0===r)return;if(36===t)return!0!==n[0].contains(document.activeElement)&&(this.__scrollToTab(n[0],!1),this.__recalculateScroll(),!0);if(35===t)return!0!==n[r-1].contains(document.activeElement)&&(this.__scrollToTab(n[r-1],!0),this.__recalculateScroll(),!0);const o=!0===this.vertical&&38===t||!0!==this.vertical&&37===t,a=!0===this.vertical&&40===t||!0!==this.vertical&&39===t,s=!0===o?-1:!0===a?1:void 0;if(void 0!==s){const t=!0===this.isRTL?-1:1,i=n.indexOf(e)+s*t;return!(i<0||i>=r||!0===n[i].contains(document.activeElement))&&(this.__scrollToTab(n[i],s===t),this.__recalculateScroll(),!0)}}},created(){this.buffer=[],this.__updateArrows=!0===this.arrowsEnabled?this.__updateArrowsFn:l["g"]},mounted(){this.rtlHasScrollBug=Object(h["g"])()},activated(){!0===this.shouldActivate&&this.__recalculateScroll()},deactivated(){this.shouldActivate=!0},beforeDestroy(){clearTimeout(this.bufferTimer),clearTimeout(this.animateTimer)},render(t){const e=[t(o["a"],{on:Object(u["b"])(this,"resize",{resize:this.__updateContainer})}),t("div",{ref:"content",staticClass:"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar relative-position",class:this.innerClass,on:!0===this.arrowsEnabled?Object(u["b"])(this,"scroll",{scroll:this.__updateArrowsFn}):void 0},Object(c["c"])(this,"default"))];return!0===this.arrowsEnabled&&e.push(t(r["a"],{staticClass:"q-tabs__arrow q-tabs__arrow--start absolute q-tab__icon",class:!0===this.startArrow?"":"q-tabs__arrow--faded",props:{name:this.arrowIcons.start},on:Object(u["b"])(this,"onS",{mousedown:this.__scrollToStart,touchstart:this.__scrollToStart,mouseup:this.__stopAnimScroll,mouseleave:this.__stopAnimScroll,touchend:this.__stopAnimScroll})}),t(r["a"],{staticClass:"q-tabs__arrow q-tabs__arrow--end absolute q-tab__icon",class:!0===this.endArrow?"":"q-tabs__arrow--faded",props:{name:this.arrowIcons.end},on:Object(u["b"])(this,"onE",{mousedown:this.__scrollToEnd,touchstart:this.__scrollToEnd,mouseup:this.__stopAnimScroll,mouseleave:this.__stopAnimScroll,touchend:this.__stopAnimScroll})})),t("div",{staticClass:"q-tabs row no-wrap items-center",class:this.classes,on:this.onEvents,attrs:{role:"tablist"}},e)}})},"42d2":function(t,e,i){"use strict";e["a"]={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}}},"42e1":function(t,e,i){"use strict";function n(t,e,i,n,r,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}i.d(e,"a",(function(){return n}))},4362:function(t,e,i){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,n="/";e.cwd=function(){return n},e.chdir=function(e){t||(t=i("df7c")),n=t.resolve(e,n)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"436b":function(t,e,i){"use strict";i("caad");var n=i("2b0e"),r=i("24e8"),o=i("9c40");i("ddb0"),i("5377");function a(t,e=new WeakMap){if(Object(t)!==t)return t;if(e.has(t))return e.get(t);const i=t instanceof Date?new Date(t):t instanceof RegExp?new RegExp(t.source,t.flags):t instanceof Set?new Set:t instanceof Map?new Map:"function"!==typeof t.constructor?Object.create(null):void 0!==t.prototype&&"function"===typeof t.prototype.constructor?t:new t.constructor;if("function"===typeof t.constructor&&"function"===typeof t.valueOf){const i=t.valueOf();if(Object(i)!==i){const n=new t.constructor(i);return e.set(t,n),n}}return e.set(t,i),t instanceof Set?t.forEach((t=>{i.add(a(t,e))})):t instanceof Map&&t.forEach(((t,n)=>{i.set(n,a(t,e))})),Object.assign(i,...Object.keys(t).map((i=>({[i]:a(t[i],e)}))))}var s=i("d728"),l=i("f09f"),c=i("a370"),u=i("4b7e"),h=i("eb85"),d=i("27f9"),p=i("0016"),f=i("b7fa"),g=i("ff7b"),m=i("f89c"),v=i("2b69"),y=i("d882"),b=i("dde5"),_=i("0cd3"),x=n["a"].extend({name:"QRadio",mixins:[f["a"],g["a"],m["b"],v["a"]],props:{value:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},computed:{isTrue(){return this.value===this.val},classes(){return"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===this.disable?" disabled":"")+(!0===this.isDark?" q-radio--dark":"")+(!0===this.dense?" q-radio--dense":"")+(!0===this.leftLabel?" reverse":"")},innerClass(){const t=void 0===this.color||!0!==this.keepColor&&!0!==this.isTrue?"":` text-${this.color}`;return`q-radio__inner--${!0===this.isTrue?"truthy":"falsy"}${t}`},computedIcon(){return!0===this.isTrue?this.checkedIcon:this.uncheckedIcon},computedTabindex(){return!0===this.disable?-1:this.tabindex||0},formAttrs(){const t={type:"radio"};return void 0!==this.name&&Object.assign(t,{name:this.name,value:this.val}),t},formDomProps(){if(void 0!==this.name&&!0===this.isTrue)return{checked:!0}},attrs(){const t={tabindex:this.computedTabindex,role:"radio","aria-label":this.label,"aria-checked":!0===this.isTrue?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{set(t){void 0!==t&&(Object(y["l"])(t),this.__refocusTarget(t)),!0!==this.disable&&!0!==this.isTrue&&this.$emit("input",this.val,t)}},render(t){const e=void 0!==this.computedIcon?[t("div",{key:"icon",staticClass:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[t(p["a"],{staticClass:"q-radio__icon",props:{name:this.computedIcon}})])]:[t("svg",{key:"svg",staticClass:"q-radio__bg absolute non-selectable",attrs:{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true"}},[t("path",{attrs:{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}}),t("path",{staticClass:"q-radio__check",attrs:{d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"}})])];!0!==this.disable&&this.__injectFormInput(e,"unshift","q-radio__native q-ma-none q-pa-none");const i=[t("div",{staticClass:"q-radio__inner relative-position",class:this.innerClass,style:this.sizeStyle},e)];void 0!==this.__refocusTargetEl&&i.push(this.__refocusTargetEl);const n=void 0!==this.label?Object(b["a"])([this.label],this,"default"):Object(b["c"])(this,"default");return void 0!==n&&i.push(t("div",{staticClass:"q-radio__label q-anchor--skip"},n)),t("div",{class:this.classes,attrs:this.attrs,on:Object(_["b"])(this,"inpExt",{click:this.set,keydown:t=>{13!==t.keyCode&&32!==t.keyCode||Object(y["l"])(t)},keyup:t=>{13!==t.keyCode&&32!==t.keyCode||this.set(t)}})},i)}}),w=i("8f8e"),S=i("85fc"),C=n["a"].extend({name:"QToggle",mixins:[S["a"]],props:{icon:String,iconColor:String},computed:{computedIcon(){return(!0===this.isTrue?this.checkedIcon:!0===this.isIndeterminate?this.indeterminateIcon:this.uncheckedIcon)||this.icon},computedIconColor(){if(!0===this.isTrue)return this.iconColor}},methods:{__getInner(t){return[t("div",{staticClass:"q-toggle__track"}),t("div",{staticClass:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==this.computedIcon?[t(p["a"],{props:{name:this.computedIcon,color:this.computedIconColor}})]:void 0)]}},created(){this.type="toggle"}}),k=i("87e8");const M={radio:x,checkbox:w["a"],toggle:C},T=Object.keys(M);var O=n["a"].extend({name:"QOptionGroup",mixins:[f["a"],k["a"]],props:{value:{required:!0},options:{type:Array,validator(t){return t.every((t=>"value"in t&&"label"in t))}},name:String,type:{default:"radio",validator:t=>T.includes(t)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},computed:{component(){return M[this.type]},model(){return Array.isArray(this.value)?this.value.slice():this.value},classes(){return"q-option-group q-gutter-x-sm"+(!0===this.inline?" q-option-group--inline":"")},attrs(){if("radio"===this.type){const t={role:"radiogroup"};return!0===this.disable&&(t["aria-disabled"]="true"),t}}},methods:{__update(t){this.$emit("input",t)}},created(){const t=Array.isArray(this.value);"radio"===this.type?t&&console.error("q-option-group: model should not be array"):!1===t&&console.error("q-option-group: model should be array in your case")},render(t){return t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},this.options.map(((e,i)=>{const n=void 0!==this.$scopedSlots["label-"+i]?this.$scopedSlots["label-"+i](e):void 0!==this.$scopedSlots.label?this.$scopedSlots.label(e):void 0;return t("div",[t(this.component,{props:{value:this.value,val:e.value,name:void 0===e.name?this.name:e.name,disable:this.disable||e.disable,label:void 0===n?e.label:void 0,leftLabel:void 0===e.leftLabel?this.leftLabel:e.leftLabel,color:void 0===e.color?this.color:e.color,checkedIcon:e.checkedIcon,uncheckedIcon:e.uncheckedIcon,dark:e.dark||this.isDark,size:void 0===e.size?this.size:e.size,dense:this.dense,keepColor:void 0===e.keepColor?this.keepColor:e.keepColor},on:Object(_["b"])(this,"inp",{input:this.__update})},n)])})))}}),A=i("0d59"),I=i("f376"),P=i("5ff7"),D=n["a"].extend({name:"DialogPlugin",mixins:[f["a"],I["b"]],inheritAttrs:!1,props:{title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:t=>["ok","cancel","none"].includes(t)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},computed:{classes(){return"q-dialog-plugin"+(!0===this.isDark?" q-dialog-plugin--dark q-dark":"")+(!1!==this.progress?" q-dialog-plugin--progress":"")},spinner(){if(!1!==this.progress)return!0===Object(P["d"])(this.progress)?{component:this.progress.spinner||A["a"],props:{color:this.progress.color||this.vmColor}}:{component:A["a"],props:{color:this.vmColor}}},hasForm(){return void 0!==this.prompt||void 0!==this.options},okLabel(){return!0===Object(P["d"])(this.ok)||!0===this.ok?this.$q.lang.label.ok:this.ok},cancelLabel(){return!0===Object(P["d"])(this.cancel)||!0===this.cancel?this.$q.lang.label.cancel:this.cancel},vmColor(){return this.color||(!0===this.isDark?"amber":"primary")},okDisabled(){return void 0!==this.prompt?void 0!==this.prompt.isValid&&!0!==this.prompt.isValid(this.prompt.model):void 0!==this.options?void 0!==this.options.isValid&&!0!==this.options.isValid(this.options.model):void 0},okProps(){return{color:this.vmColor,label:this.okLabel,ripple:!1,disable:this.okDisabled,...!0===Object(P["d"])(this.ok)?this.ok:{flat:!0}}},cancelProps(){return{color:this.vmColor,label:this.cancelLabel,ripple:!1,...!0===Object(P["d"])(this.cancel)?this.cancel:{flat:!0}}}},methods:{show(){this.$refs.dialog.show()},hide(){this.$refs.dialog.hide()},getPrompt(t){return[t(d["a"],{props:{value:this.prompt.model,type:this.prompt.type,label:this.prompt.label,stackLabel:this.prompt.stackLabel,outlined:this.prompt.outlined,filled:this.prompt.filled,standout:this.prompt.standout,rounded:this.prompt.rounded,square:this.prompt.square,counter:this.prompt.counter,maxlength:this.prompt.maxlength,prefix:this.prompt.prefix,suffix:this.prompt.suffix,color:this.vmColor,dense:!0,autofocus:!0,dark:this.isDark},attrs:this.prompt.attrs,on:Object(_["b"])(this,"prompt",{input:t=>{this.prompt.model=t},keyup:t=>{!0!==this.okDisabled&&"textarea"!==this.prompt.type&&!0===Object(s["a"])(t,13)&&this.onOk()}})})]},getOptions(t){return[t(O,{props:{value:this.options.model,type:this.options.type,color:this.vmColor,inline:this.options.inline,options:this.options.items,dark:this.isDark},on:Object(_["b"])(this,"opts",{input:t=>{this.options.model=t}})})]},getButtons(t){const e=[];if(this.cancel&&e.push(t(o["a"],{props:this.cancelProps,attrs:{"data-autofocus":"cancel"===this.focus&&!0!==this.hasForm},on:Object(_["b"])(this,"cancel",{click:this.onCancel})})),this.ok&&e.push(t(o["a"],{props:this.okProps,attrs:{"data-autofocus":"ok"===this.focus&&!0!==this.hasForm},on:Object(_["b"])(this,"ok",{click:this.onOk})})),e.length>0)return t(u["a"],{staticClass:!0===this.stackButtons?"items-end":null,props:{vertical:this.stackButtons,align:"right"}},e)},onOk(){this.$emit("ok",a(this.getData())),this.hide()},onCancel(){this.hide()},getData(){return void 0!==this.prompt?this.prompt.model:void 0!==this.options?this.options.model:void 0},getSection(t,e,i){return!0===this.html?t(c["a"],{staticClass:e,domProps:{innerHTML:i}}):t(c["a"],{staticClass:e},[i])}},render(t){const e=[];return this.title&&e.push(this.getSection(t,"q-dialog__title",this.title)),!1!==this.progress&&e.push(t(c["a"],{staticClass:"q-dialog__progress"},[t(this.spinner.component,{props:this.spinner.props})])),this.message&&e.push(this.getSection(t,"q-dialog__message",this.message)),void 0!==this.prompt?e.push(t(c["a"],{staticClass:"scroll q-dialog-plugin__form"},this.getPrompt(t))):void 0!==this.options&&e.push(t(h["a"],{props:{dark:this.isDark}}),t(c["a"],{staticClass:"scroll q-dialog-plugin__form"},this.getOptions(t)),t(h["a"],{props:{dark:this.isDark}})),(this.ok||this.cancel)&&e.push(this.getButtons(t)),t(r["a"],{ref:"dialog",props:{...this.qAttrs,value:this.value},on:Object(_["b"])(this,"hide",{hide:()=>{this.$emit("hide")}})},[t(l["a"],{staticClass:this.classes,style:this.cardStyle,class:this.cardClass,props:{dark:this.isDark}},e)])}}),E=i("0967");const L={onOk:()=>L,okCancel:()=>L,hide:()=>L,update:()=>L};function j(t,e){for(const i in e)"spinner"!==i&&Object(e[i])===e[i]?(t[i]=Object(t[i])!==t[i]?{}:{...t[i]},j(t[i],e[i])):t[i]=e[i]}let R;function B(t,e){if(void 0!==t)return t;if(void 0!==e)return e;if(void 0===R){const t=document.getElementById("q-app");t&&t.__vue__&&(R=t.__vue__.$root)}return R}var F=function(t){return({className:e,class:i,style:r,component:o,root:a,parent:s,...l})=>{if(!0===E["e"])return L;void 0!==i&&(l.cardClass=i),void 0!==r&&(l.cardStyle=r);const c=void 0!==o;let u,h;!0===c?u=o:(u=t,h=l);const d=[],p=[],f={onOk(t){return d.push(t),f},onCancel(t){return p.push(t),f},onDismiss(t){return d.push(t),p.push(t),f},hide(){return y.$refs.dialog.hide(),f},update({className:t,class:e,style:i,component:n,root:r,parent:o,...a}){return null!==y&&(void 0!==e&&(a.cardClass=e),void 0!==i&&(a.cardStyle=i),!0===c?Object.assign(l,a):(j(l,a),h={...l}),y.$forceUpdate()),f}},g=document.createElement("div");document.body.appendChild(g);let m=!1;const v={ok:t=>{m=!0,d.forEach((e=>{e(t)}))},hide:()=>{y.$destroy(),y.$el.remove(),y=null,!0!==m&&p.forEach((t=>{t()}))}};let y=new n["a"]({name:"QGlobalDialog",el:g,parent:B(s,a),render(t){return t(u,{ref:"dialog",props:l,attrs:h,on:v})},mounted(){void 0!==this.$refs.dialog?this.$refs.dialog.show():v["hook:mounted"]=()=>{void 0!==this.$refs.dialog&&this.$refs.dialog.show()}}});return f}};e["a"]={install({$q:t}){this.create=t.dialog=F(D)}}},"44ad":function(t,e,i){var n=i("e330"),r=i("d039"),o=i("c6b6"),a=Object,s=n("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},"44d2":function(t,e,i){var n=i("b622"),r=i("7c73"),o=i("9bf2").f,a=n("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},"45be":function(t,e){function i(t){if("number"===typeof t&&(t=t.toString()),"string"!==typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e="undefined"===typeof t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:n,scale:n?4:r,margin:e,color:{dark:i(t.color.dark||"#000000ff"),light:i(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,i){const n=e.getScale(t,i);return Math.floor((t+2*i.margin)*n)},e.qrToImageData=function(t,i,n){const r=i.modules.size,o=i.modules.data,a=e.getScale(r,n),s=Math.floor((r+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark];for(let e=0;e=l&&i>=l&&e{this.__tickFn===t&&(this.__tickFn(),this.__tickFn=void 0)}))}},__clearTick(){this.__tickFn=void 0},__setTimeout(t,e){clearTimeout(this.__timer),this.__timer=setTimeout(t,e)},__clearTimeout(){clearTimeout(this.__timer)}},beforeDestroy(){this.__tickFn=void 0,clearTimeout(this.__timer)}}},"467f":function(t,e,i){"use strict";var n=i("2d83");t.exports=function(t,e,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?e(n("Request failed with status code "+i.status,i.config,null,i.request,i)):t(i)}},4840:function(t,e,i){var n=i("825a"),r=i("5087"),o=i("b622"),a=o("species");t.exports=function(t,e){var i,o=n(t).constructor;return void 0===o||void 0==(i=n(o)[a])?e:r(i)}},4848:function(t,e,i){},"485a":function(t,e,i){var n=i("c65b"),r=i("1626"),o=i("861d"),a=TypeError;t.exports=function(t,e){var i,s;if("string"===e&&r(i=t.toString)&&!o(s=n(i,t)))return s;if(r(i=t.valueOf)&&!o(s=n(i,t)))return s;if("string"!==e&&r(i=t.toString)&&!o(s=n(i,t)))return s;throw a("Can't convert object to primitive value")}},4930:function(t,e,i){var n=i("2d00"),r=i("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4983:function(t,e,i){"use strict";i("caad"),i("ddb0");var n=i("2b0e"),r=i("3980"),o=i("ed5e"),a=i("75c3"),s=i("7937"),l=i("0831"),c=i("dde5"),u=i("0cd3"),h=i("1c16"),d=i("b7fa"),p=i("f376");const f=t=>t>=250?50:Math.ceil(t/5),g=["vertical","horizontal"],m={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}};e["a"]=n["a"].extend({name:"QScrollArea",mixins:[d["a"]],directives:{TouchPan:a["a"]},props:{thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},horizontal:Boolean,tabindex:[String,Number]},data(){return{tempShowing:!1,panning:!1,hover:!1,container:{vertical:0,horizontal:0},scroll:{vertical:{position:0,size:0},horizontal:{position:0,size:0}}}},computed:{classes(){return"q-scrollarea"+(!0===this.isDark?" q-scrollarea--dark":"")},verticalScrollPercentage(){const t=this.scroll.vertical.size-this.container.vertical;if(t<=0)return 0;const e=Object(s["a"])(this.scroll.vertical.position/t,0,1);return Math.round(1e4*e)/1e4},horizontalScrollPercentage(){const t=this.scroll.horizontal.size-this.container.horizontal;if(t<=0)return 0;const e=Object(s["a"])(this.scroll.horizontal.position/t,0,1);return Math.round(1e4*e)/1e4},verticalThumbHidden(){return!0!==(null===this.visible?this.hover:this.visible)&&!1===this.tempShowing&&!1===this.panning||this.scroll.vertical.size<=this.container.vertical+1},horizontalThumbHidden(){return!0!==(null===this.visible?this.hover:this.visible)&&!1===this.tempShowing&&!1===this.panning||this.scroll.horizontal.size<=this.container.horizontal+1},verticalThumbStart(){return this.verticalScrollPercentage*(this.container.vertical-this.verticalThumbSize)},horizontalThumbStart(){return this.horizontalScrollPercentage*(this.container.horizontal-this.horizontalThumbSize)},verticalThumbSize(){return Math.round(Object(s["a"])(this.container.vertical*this.container.vertical/this.scroll.vertical.size,f(this.container.vertical),this.container.vertical))},horizontalThumbSize(){return Math.round(Object(s["a"])(this.container.horizontal*this.container.horizontal/this.scroll.horizontal.size,f(this.container.horizontal),this.container.horizontal))},verticalStyle(){return{...this.thumbStyle,...this.verticalThumbStyle,top:`${this.verticalThumbStart}px`,height:`${this.verticalThumbSize}px`}},horizontalStyle(){return{...this.thumbStyle,...this.horizontalThumbStyle,left:`${this.horizontalThumbStart}px`,width:`${this.horizontalThumbSize}px`}},verticalThumbClass(){return"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===this.verticalThumbHidden?" q-scrollarea__thumb--invisible":"")},horizontalThumbClass(){return"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===this.horizontalThumbHidden?" q-scrollarea__thumb--invisible":"")},verticalBarClass(){return"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===this.verticalThumbHidden?" q-scrollarea__bar--invisible":"")},horizontalBarClass(){return"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===this.horizontalThumbHidden?" q-scrollarea__bar--invisible":"")},scrollComputed(){return{vertical:{...this.scroll.vertical,percentage:this.verticalScrollPercentage,thumbHidden:this.verticalThumbHidden,thumbStart:this.verticalThumbStart,thumbSize:this.verticalThumbSize,style:this.verticalStyle,thumbClass:this.verticalThumbClass,barClass:this.verticalBarClass},horizontal:{...this.scroll.horizontal,percentage:this.horizontalScrollPercentage,thumbHidden:this.horizontalThumbHidden,thumbStart:this.horizontalThumbStart,thumbSize:this.horizontalThumbSize,style:this.horizontalStyle,thumbClass:this.horizontalThumbClass,barClass:this.horizontalBarClass}}},mainStyle(){return!0===this.verticalThumbHidden&&!0===this.horizontalThumbHidden?this.contentStyle:this.contentActiveStyle},verticalThumbDirectives(){return[{name:"touch-pan",modifiers:{vertical:!0,prevent:!0,mouse:!0,mouseAllDir:!0},value:t=>{this.__panThumb(t,"vertical")}}]},horizontalThumbDirectives(){return[{name:"touch-pan",modifiers:{horizontal:!0,prevent:!0,mouse:!0,mouseAllDir:!0},value:t=>{this.__panThumb(t,"horizontal")}}]},scrollAttrs(){if(void 0!==this.tabindex)return{tabindex:this.tabindex}}},methods:{getScrollTarget(){return this.$refs.target},getScroll(){const t={};return g.forEach((e=>{const i=this.scrollComputed[e];t[e+"Position"]=i.position,t[e+"Percentage"]=i.percentage,t[e+"Size"]=i.size,t[e+"ContainerSize"]=this.container[e]})),t},getScrollPosition(t){return"both"===t?{top:this.scroll.vertical.position,left:this.scroll.horizontal.position}:(!0!==g.includes(t)&&(t=!0===this.horizontal?"horizontal":"vertical"),this.scroll[t].position)},getScrollPercentage(t){return"both"===t?{top:this.verticalScrollPercentage,left:this.horizontalScrollPercentage}:(!0!==g.includes(t)&&(t=!0===this.horizontal?"horizontal":"vertical"),this[`${t}ScrollPercentage`])},setScrollPosition(t,e,i){if(!1===g.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");[t,e,i]=[!0===this.horizontal?"horizontal":"vertical",t,e]}const n="vertical"===t?l["j"]:l["h"];n(this.$refs.target,e,i)},setScrollPercentage(t,e,i){if(!1===g.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPercentage (vertical/horizontal)");[t,e,i]=[!0===this.horizontal?"horizontal":"vertical",t,e]}this.setScrollPosition(t,e*(this.scroll[t].size-this.container[t]),i)},__updateContainer({height:t,width:e}){let i=!1;this.container.vertical!==t&&(this.container.vertical=t,i=!0),this.container.horizontal!==e&&(this.container.horizontal=e,i=!0),!0===i&&this.__startTimer()},__updateVerticalScroll({position:t}){this.scroll.vertical.position!==t&&(this.scroll.vertical.position=t,this.__startTimer())},__updateHorizontalScroll({position:t}){this.scroll.horizontal.position!==t&&(this.scroll.horizontal.position=t,this.__startTimer())},__updateScrollSize({height:t,width:e}){let i=!1;this.scroll.horizontal.size!==e&&(this.scroll.horizontal.size=e,i=!0),this.scroll.vertical.size!==t&&(this.scroll.vertical.size=t,i=!0),!0===i&&this.__startTimer()},__panThumb(t,e){const i=this.scrollComputed[e];if(!0===t.isFinal){if(!0!==this.panning)return;this.panning=!1}else if(!0===t.isFirst){if(!0===i.thumbHidden)return;this.refPos=i.position,this.panning=!0}else if(!0!==this.panning)return;const n=m[e],r=this.container[e],o=(i.size-r)/(r-i.thumbSize),a=t.distance[n.dist],s=this.refPos+(t.direction===n.dir?1:-1)*a*o;this.__setScroll(s,e)},__mouseDown(t,e){const i=this.scrollComputed[e];if(!0!==i.thumbHidden){const n=t[m[e].offset];if(ni.thumbStart+i.thumbSize){const t=n-i.thumbSize/2;this.__setScroll(t/this.container[e]*i.size,e)}const r="vertical"===e?this.$refs.verticalThumb:this.$refs.horizontalThumb;void 0!==r&&r.dispatchEvent(new MouseEvent(t.type,t))}},__verticalMouseDown(t){this.__mouseDown(t,"vertical")},__horizontalMouseDown(t){this.__mouseDown(t,"horizontal")},__startTimer(){!0===this.tempShowing?clearTimeout(this.timer):this.tempShowing=!0,this.timer=setTimeout((()=>{this.tempShowing=!1}),this.delay),void 0!==this.$listeners.scroll&&this.__emitScroll()},__setScroll(t,e){this.$refs.target[m[e].scroll]=t},__mouseEnter(){this.hover=!0},__mouseLeave(){this.hover=!1}},render(t){return t("div",{class:this.classes,on:Object(u["b"])(this,"desk",{mouseenter:this.__mouseEnter,mouseleave:this.__mouseLeave})},[t("div",{ref:"target",staticClass:"q-scrollarea__container scroll relative-position fit hide-scrollbar",attrs:this.scrollAttrs},[t("div",{staticClass:"q-scrollarea__content absolute",style:this.mainStyle},Object(c["a"])([t(r["a"],{props:{debounce:0},on:Object(u["b"])(this,"resizeIn",{resize:this.__updateScrollSize})})],this,"default")),t(o["a"],{on:Object(u["b"])(this,"scrollV",{scroll:this.__updateVerticalScroll})}),t(o["a"],{props:{horizontal:!0},on:Object(u["b"])(this,"scrollH",{scroll:this.__updateHorizontalScroll})})]),t(r["a"],{props:{debounce:0},on:Object(u["b"])(this,"resizeOut",{resize:this.__updateContainer})}),t("div",{class:this.verticalBarClass,style:[this.barStyle,this.verticalBarStyle],attrs:p["a"],on:Object(u["b"])(this,"barV",{mousedown:this.__verticalMouseDown})}),t("div",{class:this.horizontalBarClass,style:[this.barStyle,this.horizontalBarStyle],attrs:p["a"],on:Object(u["b"])(this,"barH",{mousedown:this.__horizontalMouseDown})}),t("div",{ref:"verticalThumb",class:this.verticalThumbClass,style:this.verticalStyle,attrs:p["a"],directives:this.verticalThumbDirectives}),t("div",{ref:"horizontalThumb",class:this.horizontalThumbClass,style:this.horizontalStyle,attrs:p["a"],directives:this.horizontalThumbDirectives})])},created(){this.__emitScroll=Object(h["a"])((()=>{const t=this.getScroll();t.ref=this,this.$emit("scroll",t)}),0)},activated(){if(void 0===this.__scrollPosition)return;const t=this.getScrollTarget();void 0!==t&&(Object(l["h"])(t,this.__scrollPosition.left),Object(l["j"])(t,this.__scrollPosition.top))},deactivated(){this.__scrollPosition=this.getScrollPosition("both")},beforeDestroy(){this.__emitScroll.cancel(),clearTimeout(this.timer)}})},"4a0c":function(t){t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},"4a7b":function(t,e,i){"use strict";var n=i("c532");t.exports=function(t,e){e=e||{};var i={},r=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function c(r){n.isUndefined(e[r])?n.isUndefined(t[r])||(i[r]=l(void 0,t[r])):i[r]=l(t[r],e[r])}n.forEach(r,(function(t){n.isUndefined(e[t])||(i[t]=l(void 0,e[t]))})),n.forEach(o,c),n.forEach(a,(function(r){n.isUndefined(e[r])?n.isUndefined(t[r])||(i[r]=l(void 0,t[r])):i[r]=l(void 0,e[r])})),n.forEach(s,(function(n){n in e?i[n]=l(t[n],e[n]):n in t&&(i[n]=l(void 0,t[n]))}));var u=r.concat(o).concat(a).concat(s),h=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return n.forEach(h,c),i}},"4b7e":function(t,e,i){"use strict";var n=i("2b0e"),r=i("99b6"),o=i("87e8"),a=i("dde5");e["a"]=n["a"].extend({name:"QCardActions",mixins:[o["a"],r["a"]],props:{vertical:Boolean},computed:{classes(){return`q-card__actions--${!0===this.vertical?"vert column":"horiz row"} ${this.alignClass}`}},render(t){return t("div",{staticClass:"q-card__actions",class:this.classes,on:{...this.qListeners}},Object(a["c"])(this,"default"))}})},"4d5a":function(t,e,i){"use strict";var n=i("2b0e"),r=i("0967"),o=i("ed5e"),a=i("3980"),s=i("87e8"),l=i("0831"),c=i("dde5"),u=i("0cd3");e["a"]=n["a"].extend({name:"QLayout",mixins:[s["a"]],provide(){return{layout:this}},props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:t=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(t.toLowerCase())}},data(){return{height:this.$q.screen.height,width:!0===this.container?0:this.$q.screen.width,containerHeight:0,scrollbarWidth:!0===r["f"]?0:Object(l["e"])(),header:{size:0,offset:0,space:!1},right:{size:300,offset:0,space:!1},footer:{size:0,offset:0,space:!1},left:{size:300,offset:0,space:!1},scroll:{position:0,direction:"down"}}},computed:{rows(){const t=this.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}},style(){return!0===this.container?null:{minHeight:this.$q.screen.height+"px"}},targetStyle(){if(0!==this.scrollbarWidth)return{[!0===this.$q.lang.rtl?"left":"right"]:`${this.scrollbarWidth}px`}},targetChildStyle(){if(0!==this.scrollbarWidth)return{[!0===this.$q.lang.rtl?"right":"left"]:0,[!0===this.$q.lang.rtl?"left":"right"]:`-${this.scrollbarWidth}px`,width:`calc(100% + ${this.scrollbarWidth}px)`}},totalWidth(){return this.width+this.scrollbarWidth},classes(){return"q-layout q-layout--"+(!0===this.container?"containerized":"standard")},scrollbarEvtAction(){return!0!==this.container&&this.scrollbarWidth>0?"add":"remove"}},watch:{scrollbarEvtAction:"__updateScrollEvent"},created(){this.instances={}},mounted(){"add"===this.scrollbarEvtAction&&this.__updateScrollEvent("add")},beforeDestroy(){"add"===this.scrollbarEvtAction&&this.__updateScrollEvent("remove")},render(t){const e=t("div",{class:this.classes,style:this.style,attrs:{tabindex:-1},on:{...this.qListeners}},Object(c["a"])([t(o["a"],{on:Object(u["b"])(this,"scroll",{scroll:this.__onPageScroll})}),t(a["a"],{on:Object(u["b"])(this,"resizeOut",{resize:this.__onPageResize})})],this,"default"));return!0===this.container?t("div",{staticClass:"q-layout-container overflow-hidden"},[t(a["a"],{on:Object(u["b"])(this,"resizeIn",{resize:this.__onContainerResize})}),t("div",{staticClass:"absolute-full",style:this.targetStyle},[t("div",{staticClass:"scroll",style:this.targetChildStyle},[e])])]):e},methods:{__animate(){void 0!==this.timer?clearTimeout(this.timer):document.body.classList.add("q-body--layout-animate"),this.timer=setTimeout((()=>{document.body.classList.remove("q-body--layout-animate"),this.timer=void 0}),150)},__onPageScroll(t){!0!==this.container&&!0===document.qScrollPrevented||(this.scroll=t),void 0!==this.qListeners.scroll&&this.$emit("scroll",t)},__onPageResize({height:t,width:e}){let i=!1;this.height!==t&&(i=!0,this.height=t,void 0!==this.qListeners["scroll-height"]&&this.$emit("scroll-height",t),this.__updateScrollbarWidth()),this.width!==e&&(i=!0,this.width=e),!0===i&&void 0!==this.qListeners.resize&&this.$emit("resize",{height:t,width:e})},__onContainerResize({height:t}){this.containerHeight!==t&&(this.containerHeight=t,this.__updateScrollbarWidth())},__updateScrollbarWidth(){if(!0===this.container){const t=this.height>this.containerHeight?Object(l["e"])():0;this.scrollbarWidth!==t&&(this.scrollbarWidth=t)}},__updateScrollEvent(t){void 0!==this.timerScrollbar&&"remove"===t&&(clearTimeout(this.timerScrollbar),this.__restoreScrollbar()),window[`${t}EventListener`]("resize",this.__hideScrollbar)},__hideScrollbar(){if(void 0===this.timerScrollbar){const t=document.body;if(t.scrollHeight>this.$q.screen.height)return;t.classList.add("hide-scrollbar")}else clearTimeout(this.timerScrollbar);this.timerScrollbar=setTimeout(this.__restoreScrollbar,200)},__restoreScrollbar(){this.timerScrollbar=void 0,document.body.classList.remove("hide-scrollbar")}}})},"4d64":function(t,e,i){var n=i("fc6a"),r=i("23cb"),o=i("07fa"),a=function(t){return function(e,i,a){var s,l=n(e),c=o(l),u=r(a,c);if(t&&i!=i){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4dae":function(t,e,i){var n=i("23cb"),r=i("07fa"),o=i("8418"),a=Array,s=Math.max;t.exports=function(t,e,i){for(var l=r(t),c=n(e,l),u=n(void 0===i?l:i,l),h=a(s(u-c,0)),d=0;c=0)e=t;else{var r=c(t);for(var o in e=r===Object.prototype?{}:Object.create(r),E&&E.set(t,e),t)h(t,o)&&(e[o]=j(t[o]))}return e}var R={}.toString;function B(t){return R.call(t).slice(8,-1)}var F="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator",N="symbol"===typeof F?function(t){var e;return null!=t&&(e=t[F])&&e.apply(t)}:function(){return null},z={};function V(t){var e,i,n,r;if(1===arguments.length){if(s(t))return t.slice();if(this===z&&"string"===typeof t)return[t];if(r=N(t)){i=[];while(n=r.next(),!n.done)i.push(n.value);return i}if(null==t)return[t];if(e=t.length,"number"===typeof e){i=new Array(e);while(e--)i[e]=t[e];return i}return[t]}e=arguments.length,i=new Array(e);while(e--)i[e]=arguments[e];return i}var q="undefined"!==typeof Symbol?function(t){return"AsyncFunction"===t[Symbol.toStringTag]}:function(){return!1},$="undefined"!==typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function H(t,e){$=t,G=e}var G=function(){return!0},W=!new Error("").stack;function U(){if(W)try{throw U.arguments,new Error}catch(t){return t}return new Error}function Y(t,e){var i=t.stack;return i?(e=e||0,0===i.indexOf(t.name)&&(e+=(t.name+t.message).split("\n").length),i.split("\n").slice(e).filter(G).map((function(t){return"\n"+t})).join("")):""}var X=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],K=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Z=X.concat(K),Q={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function J(t,e){this._e=U(),this.name=t,this.message=e}function tt(t,e){return t+". Errors: "+Object.keys(e).map((function(t){return e[t].toString()})).filter((function(t,e,i){return i.indexOf(t)===e})).join("\n")}function et(t,e,i,n){this._e=U(),this.failures=e,this.failedKeys=n,this.successCount=i,this.message=tt(t,e)}function it(t,e){this._e=U(),this.name="BulkError",this.failures=Object.keys(e).map((function(t){return e[t]})),this.failuresByPos=e,this.message=tt(t,e)}g(J).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Y(this._e,2))}},toString:function(){return this.name+": "+this.message}}),g(et).from(J),g(it).from(J);var nt=Z.reduce((function(t,e){return t[e]=e+"Error",t}),{}),rt=J,ot=Z.reduce((function(t,e){var i=e+"Error";function n(t,n){this._e=U(),this.name=i,t?"string"===typeof t?(this.message=t+(n?"\n "+n:""),this.inner=n||null):"object"===typeof t&&(this.message=t.name+" "+t.message,this.inner=t):(this.message=Q[e]||i,this.inner=null)}return g(n).from(rt),t[e]=n,t}),{});ot.Syntax=SyntaxError,ot.Type=TypeError,ot.Range=RangeError;var at=K.reduce((function(t,e){return t[e+"Error"]=ot[e],t}),{});function st(t,e){if(!t||t instanceof J||t instanceof TypeError||t instanceof SyntaxError||!t.name||!at[t.name])return t;var i=new at[t.name](e||t.message,t);return"stack"in t&&f(i,"stack",{get:function(){return this.inner.stack}}),i}var lt=Z.reduce((function(t,e){return-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=ot[e]),t}),{});function ct(){}function ut(t){return t}function ht(t,e){return null==t||t===ut?e:function(i){return e(t(i))}}function dt(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function pt(t,e){return t===ct?e:function(){var i=t.apply(this,arguments);void 0!==i&&(arguments[0]=i);var n=this.onsuccess,r=this.onerror;this.onsuccess=null,this.onerror=null;var o=e.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?dt(n,this.onsuccess):n),r&&(this.onerror=this.onerror?dt(r,this.onerror):r),void 0!==o?o:i}}function ft(t,e){return t===ct?e:function(){t.apply(this,arguments);var i=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),i&&(this.onsuccess=this.onsuccess?dt(i,this.onsuccess):i),n&&(this.onerror=this.onerror?dt(n,this.onerror):n)}}function gt(t,e){return t===ct?e:function(i){var n=t.apply(this,arguments);l(i,n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?dt(r,this.onsuccess):r),o&&(this.onerror=this.onerror?dt(o,this.onerror):o),void 0===n?void 0===a?void 0:a:l(n,a)}}function mt(t,e){return t===ct?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}}function vt(t,e){return t===ct?e:function(){var i=t.apply(this,arguments);if(i&&"function"===typeof i.then){var n=this,r=arguments.length,o=new Array(r);while(r--)o[r]=arguments[r];return i.then((function(){return e.apply(n,o)}))}return e.apply(this,arguments)}}lt.ModifyError=et,lt.DexieError=J,lt.BulkError=it;var yt={},bt=100,_t=20,xt=100,wt="undefined"===typeof Promise?[]:function(){var t=Promise.resolve();if("undefined"===typeof crypto||!crypto.subtle)return[t,c(t),t];var e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,c(e),t]}(),St=wt[0],Ct=wt[1],kt=wt[2],Mt=Ct&&Ct.then,Tt=St&&St.constructor,Ot=!!kt,At=!1,It=kt?function(){kt.then(Jt)}:o.setImmediate?setImmediate.bind(null,Jt):o.MutationObserver?function(){var t=document.createElement("div");new MutationObserver((function(){Jt(),t=null})).observe(t,{attributes:!0}),t.setAttribute("i","1")}:function(){setTimeout(Jt,0)},Pt=function(t,e){zt.push([t,e]),Et&&(It(),Et=!1)},Dt=!0,Et=!0,Lt=[],jt=[],Rt=null,Bt=ut,Ft={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Te,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(t){try{Te(t[0],t[1])}catch(e){}}))}},Nt=Ft,zt=[],Vt=0,qt=[];function $t(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ct,this._lib=!1;var e=this._PSD=Nt;if($&&(this._stackHolder=U(),this._prev=null,this._numPrev=0),"function"!==typeof t){if(t!==yt)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ut(this,this._value))}this._state=null,this._value=null,++e.ref,Wt(this,t)}var Ht={get:function(){var t=Nt,e=de;function i(i,n){var r=this,o=!t.global&&(t!==Nt||e!==de),a=o&&!me(),s=new $t((function(e,s){Xt(r,new Gt(Ce(i,t,o,a),Ce(n,t,o,a),e,s,t))}));return $&&Qt(s,this),s}return i.prototype=yt,i},set:function(t){f(this,"then",t&&t.prototype===yt?Ht:{get:function(){return t},set:Ht.set})}};function Gt(t,e,i,n,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=i,this.reject=n,this.psd=r}function Wt(t,e){try{e((function(e){if(null===t._state){if(e===t)throw new TypeError("A promise cannot be resolved with itself.");var i=t._lib&&te();e&&"function"===typeof e.then?Wt(t,(function(t,i){e instanceof $t?e._then(t,i):e.then(t,i)})):(t._state=!0,t._value=e,Yt(t)),i&&ee()}}),Ut.bind(null,t))}catch(i){Ut(t,i)}}function Ut(t,e){if(jt.push(e),null===t._state){var i=t._lib&&te();e=Bt(e),t._state=!1,t._value=e,$&&null!==e&&"object"===typeof e&&!e._promise&&C((function(){var i=v(e,"stack");e._promise=t,f(e,"stack",{get:function(){return At?i&&(i.get?i.get.apply(e):i.value):t.stack}})})),re(t),Yt(t),i&&ee()}}function Yt(t){var e=t._listeners;t._listeners=[];for(var i=0,n=e.length;i0)for(t=zt,zt=[],i=t.length,e=0;e0);Dt=!0,Et=!0}function ie(){var t=Lt;Lt=[],t.forEach((function(t){t._PSD.onunhandled.call(null,t._value,t)}));var e=qt.slice(0),i=e.length;while(i)e[--i]()}function ne(t){function e(){t(),qt.splice(qt.indexOf(e),1)}qt.push(e),++Vt,Pt((function(){0===--Vt&&ie()}),[])}function re(t){Lt.some((function(e){return e._value===t._value}))||Lt.push(t)}function oe(t){var e=Lt.length;while(e)if(Lt[--e]._value===t._value)return void Lt.splice(e,1)}function ae(t){return new $t(yt,!1,t)}function se(t,e){var i=Nt;return function(){var n=te(),r=Nt;try{return _e(i,!0),t.apply(this,arguments)}catch(o){e&&e(o)}finally{_e(r,!1),n&&ee()}}}d($t.prototype,{then:Ht,_then:function(t,e){Xt(this,new Gt(null,null,t,e,Nt))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=arguments[0],i=arguments[1];return"function"===typeof e?this.then(null,(function(t){return t instanceof e?i(t):ae(t)})):this.then(null,(function(t){return t&&t.name===e?i(t):ae(t)}))},finally:function(t){return this.then((function(e){return t(),e}),(function(e){return t(),ae(e)}))},stack:{get:function(){if(this._stack)return this._stack;try{At=!0;var t=Zt(this,[],_t),e=t.join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{At=!1}}},timeout:function(t,e){var i=this;return t<1/0?new $t((function(n,r){var o=setTimeout((function(){return r(new ot.Timeout(e))}),t);i.then(n,r).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!==typeof Symbol&&Symbol.toStringTag&&f($t.prototype,Symbol.toStringTag,"Dexie.Promise"),Ft.env=xe(),d($t,{all:function(){var t=V.apply(null,arguments).map(ve);return new $t((function(e,i){0===t.length&&e([]);var n=t.length;t.forEach((function(r,o){return $t.resolve(r).then((function(i){t[o]=i,--n||e(t)}),i)}))}))},resolve:function(t){if(t instanceof $t)return t;if(t&&"function"===typeof t.then)return new $t((function(e,i){t.then(e,i)}));var e=new $t(yt,!0,t);return Qt(e,Rt),e},reject:ae,race:function(){var t=V.apply(null,arguments).map(ve);return new $t((function(e,i){t.map((function(t){return $t.resolve(t).then(e,i)}))}))},PSD:{get:function(){return Nt},set:function(t){return Nt=t}},totalEchoes:{get:function(){return de}},newPSD:fe,usePSD:we,scheduler:{get:function(){return Pt},set:function(t){Pt=t}},rejectionMapper:{get:function(){return Bt},set:function(t){Bt=t}},follow:function(t,e){return new $t((function(i,n){return fe((function(e,i){var n=Nt;n.unhandleds=[],n.onunhandled=i,n.finalize=dt((function(){var t=this;ne((function(){0===t.unhandleds.length?e():i(t.unhandleds[0])}))}),n.finalize),t()}),e,i,n)}))}}),Tt&&(Tt.allSettled&&f($t,"allSettled",(function(){var t=V.apply(null,arguments).map(ve);return new $t((function(e){0===t.length&&e([]);var i=t.length,n=new Array(i);t.forEach((function(t,r){return $t.resolve(t).then((function(t){return n[r]={status:"fulfilled",value:t}}),(function(t){return n[r]={status:"rejected",reason:t}})).then((function(){return--i||e(n)}))}))}))})),Tt.any&&"undefined"!==typeof AggregateError&&f($t,"any",(function(){var t=V.apply(null,arguments).map(ve);return new $t((function(e,i){0===t.length&&i(new AggregateError([]));var n=t.length,r=new Array(n);t.forEach((function(t,o){return $t.resolve(t).then((function(t){return e(t)}),(function(t){r[o]=t,--n||i(new AggregateError(r))}))}))}))})));var le={awaits:0,echoes:0,id:0},ce=0,ue=[],he=0,de=0,pe=0;function fe(t,e,i,n){var r=Nt,o=Object.create(r);o.parent=r,o.ref=0,o.global=!1,o.id=++pe;var a=Ft.env;o.env=Ot?{Promise:$t,PromiseProp:{value:$t,configurable:!0,writable:!0},all:$t.all,race:$t.race,allSettled:$t.allSettled,any:$t.any,resolve:$t.resolve,reject:$t.reject,nthen:ke(a.nthen,o),gthen:ke(a.gthen,o)}:{},e&&l(o,e),++r.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=we(o,t,i,n);return 0===o.ref&&o.finalize(),s}function ge(){return le.id||(le.id=++ce),++le.awaits,le.echoes+=xt,le.id}function me(){return!!le.awaits&&(0===--le.awaits&&(le.id=0),le.echoes=le.awaits*xt,!0)}function ve(t){return le.echoes&&t&&t.constructor===Tt?(ge(),t.then((function(t){return me(),t}),(function(t){return me(),Oe(t)}))):t}function ye(t){++de,le.echoes&&0!==--le.echoes||(le.echoes=le.id=0),ue.push(Nt),_e(t,!0)}function be(){var t=ue[ue.length-1];ue.pop(),_e(t,!1)}function _e(t,e){var i=Nt;if((e?!le.echoes||he++&&t===Nt:!he||--he&&t===Nt)||Se(e?ye.bind(null,t):be),t!==Nt&&(Nt=t,i===Ft&&(Ft.env=xe()),Ot)){var n=Ft.env.Promise,r=t.env;Ct.then=r.nthen,n.prototype.then=r.gthen,(i.global||t.global)&&(Object.defineProperty(o,"Promise",r.PromiseProp),n.all=r.all,n.race=r.race,n.resolve=r.resolve,n.reject=r.reject,r.allSettled&&(n.allSettled=r.allSettled),r.any&&(n.any=r.any))}}function xe(){var t=o.Promise;return Ot?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:Ct.then,gthen:t.prototype.then}:{}}function we(t,e,i,n,r){var o=Nt;try{return _e(t,!0),e(i,n,r)}finally{_e(o,!1)}}function Se(t){Mt.call(St,t)}function Ce(t,e,i,n){return"function"!==typeof t?t:function(){var r=Nt;i&&ge(),_e(e,!0);try{return t.apply(this,arguments)}finally{_e(r,!1),n&&Se(me)}}}function ke(t,e){return function(i,n){return t.call(this,Ce(i,e),Ce(n,e))}}-1===(""+Mt).indexOf("[native code]")&&(ge=me=ct);var Me="unhandledrejection";function Te(t,e){var i;try{i=e.onuncatched(t)}catch(a){}if(!1!==i)try{var n,r={promise:e,reason:t};if(o.document&&document.createEvent?(n=document.createEvent("Event"),n.initEvent(Me,!0,!0),l(n,r)):o.CustomEvent&&(n=new CustomEvent(Me,{detail:r}),l(n,r)),n&&o.dispatchEvent&&(dispatchEvent(n),!o.PromiseRejectionEvent&&o.onunhandledrejection))try{o.onunhandledrejection(n)}catch(s){}$&&n&&!n.defaultPrevented&&console.warn("Unhandled rejection: "+(t.stack||t))}catch(a){}}var Oe=$t.reject;function Ae(t,e,i,n){if(t.idbdb&&(t._state.openComplete||Nt.letThrough||t._vip)){var r=t._createTransaction(e,i,t._dbSchema);try{r.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===nt.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return Ae(t,e,i,n)}))):Oe(o)}return r._promise(e,(function(t,e){return fe((function(){return Nt.trans=r,n(t,e,r)}))})).then((function(t){return r._completion.then((function(){return t}))}))}if(t._state.openComplete)return Oe(new ot.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return Oe(new ot.DatabaseClosed);t.open().catch(ct)}return t._state.dbReadyPromise.then((function(){return Ae(t,e,i,n)}))}var Ie="3.2.2",Pe=String.fromCharCode(65535),De=-1/0,Ee="Invalid key provided. Keys must be of type string, number, Date or Array.",Le="String expected.",je=[],Re="undefined"!==typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Be=Re,Fe=Re,Ne=function(t){return!/(dexie\.js|dexie\.min\.js)/.test(t)},ze="__dbnames",Ve="readonly",qe="readwrite";function $e(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}var He={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Ge(t){return"string"!==typeof t||/\./.test(t)?function(t){return t}:function(e){return void 0===e[t]&&t in e&&(e=L(e),delete e[t]),e}}var We=function(){function t(){}return t.prototype._trans=function(t,e,i){var n=this._tx||Nt.trans,r=this.name;function o(t,i,n){if(!n.schema[r])throw new ot.NotFound("Table "+r+" not part of transaction");return e(n.idbtrans,n)}var a=te();try{return n&&n.db===this.db?n===Nt.trans?n._promise(t,o,i):fe((function(){return n._promise(t,o,i)}),{trans:n,transless:Nt.transless||Nt}):Ae(this.db,t,[this.name],o)}finally{a&&ee()}},t.prototype.get=function(t,e){var i=this;return t&&t.constructor===Object?this.where(t).first(e):this._trans("readonly",(function(e){return i.core.get({trans:e,key:t}).then((function(t){return i.hook.reading.fire(t)}))})).then(e)},t.prototype.where=function(t){if("string"===typeof t)return new this.db.WhereClause(this,t);if(s(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var e=a(t);if(1===e.length)return this.where(e[0]).equals(t[e[0]]);var i=this.schema.indexes.concat(this.schema.primKey).filter((function(t){return t.compound&&e.every((function(e){return t.keyPath.indexOf(e)>=0}))&&t.keyPath.every((function(t){return e.indexOf(t)>=0}))}))[0];if(i&&this.db._maxKey!==Pe)return this.where(i.name).equals(i.keyPath.map((function(e){return t[e]})));!i&&$&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a compound index ["+e.join("+")+"]");var n=this.schema.idxByName,r=this.db._deps.indexedDB;function o(t,e){try{return 0===r.cmp(t,e)}catch(i){return!1}}var l=e.reduce((function(e,i){var r=e[0],a=e[1],l=n[i],c=t[i];return[r||l,r||!l?$e(a,l&&l.multi?function(t){var e=k(t,i);return s(e)&&e.some((function(t){return o(c,t)}))}:function(t){return o(c,k(t,i))}):a]}),[null,null]),c=l[0],u=l[1];return c?this.where(c.name).equals(t[c.keyPath]).filter(u):i?this.filter(u):this.where(e).equals("")},t.prototype.filter=function(t){return this.toCollection().and(t)},t.prototype.count=function(t){return this.toCollection().count(t)},t.prototype.offset=function(t){return this.toCollection().offset(t)},t.prototype.limit=function(t){return this.toCollection().limit(t)},t.prototype.each=function(t){return this.toCollection().each(t)},t.prototype.toArray=function(t){return this.toCollection().toArray(t)},t.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},t.prototype.orderBy=function(t){return new this.db.Collection(new this.db.WhereClause(this,s(t)?"["+t.join("+")+"]":t))},t.prototype.reverse=function(){return this.toCollection().reverse()},t.prototype.mapToClass=function(t){this.schema.mappedClass=t;var e=function(e){if(!e)return e;var i=Object.create(t.prototype);for(var n in e)if(h(e,n))try{i[n]=e[n]}catch(r){}return i};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=e,this.hook("reading",e),t},t.prototype.defineClass=function(){function t(t){l(this,t)}return this.mapToClass(t)},t.prototype.add=function(t,e){var i=this,n=this.schema.primKey,r=n.auto,o=n.keyPath,a=t;return o&&r&&(a=Ge(o)(t)),this._trans("readwrite",(function(t){return i.core.mutate({trans:t,type:"add",keys:null!=e?[e]:null,values:[a]})})).then((function(t){return t.numFailures?$t.reject(t.failures[0]):t.lastResult})).then((function(e){if(o)try{M(t,o,e)}catch(i){}return e}))},t.prototype.update=function(t,e){if("object"!==typeof t||s(t))return this.where(":id").equals(t).modify(e);var i=k(t,this.schema.primKey.keyPath);if(void 0===i)return Oe(new ot.InvalidArgument("Given object does not contain its primary key"));try{"function"!==typeof e?a(e).forEach((function(i){M(t,i,e[i])})):e(t,{value:t,primKey:i})}catch(On){}return this.where(":id").equals(i).modify(e)},t.prototype.put=function(t,e){var i=this,n=this.schema.primKey,r=n.auto,o=n.keyPath,a=t;return o&&r&&(a=Ge(o)(t)),this._trans("readwrite",(function(t){return i.core.mutate({trans:t,type:"put",values:[a],keys:null!=e?[e]:null})})).then((function(t){return t.numFailures?$t.reject(t.failures[0]):t.lastResult})).then((function(e){if(o)try{M(t,o,e)}catch(i){}return e}))},t.prototype.delete=function(t){var e=this;return this._trans("readwrite",(function(i){return e.core.mutate({trans:i,type:"delete",keys:[t]})})).then((function(t){return t.numFailures?$t.reject(t.failures[0]):void 0}))},t.prototype.clear=function(){var t=this;return this._trans("readwrite",(function(e){return t.core.mutate({trans:e,type:"deleteRange",range:He})})).then((function(t){return t.numFailures?$t.reject(t.failures[0]):void 0}))},t.prototype.bulkGet=function(t){var e=this;return this._trans("readonly",(function(i){return e.core.getMany({keys:t,trans:i}).then((function(t){return t.map((function(t){return e.hook.reading.fire(t)}))}))}))},t.prototype.bulkAdd=function(t,e,i){var n=this,r=Array.isArray(e)?e:void 0;i=i||(r?void 0:e);var o=i?i.allKeys:void 0;return this._trans("readwrite",(function(e){var i=n.schema.primKey,a=i.auto,s=i.keyPath;if(s&&r)throw new ot.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==t.length)throw new ot.InvalidArgument("Arguments objects and keys must have the same length");var l=t.length,c=s&&a?t.map(Ge(s)):t;return n.core.mutate({trans:e,type:"add",keys:r,values:c,wantResults:o}).then((function(t){var e=t.numFailures,i=t.results,r=t.lastResult,a=t.failures,s=o?i:r;if(0===e)return s;throw new it(n.name+".bulkAdd(): "+e+" of "+l+" operations failed",a)}))}))},t.prototype.bulkPut=function(t,e,i){var n=this,r=Array.isArray(e)?e:void 0;i=i||(r?void 0:e);var o=i?i.allKeys:void 0;return this._trans("readwrite",(function(e){var i=n.schema.primKey,a=i.auto,s=i.keyPath;if(s&&r)throw new ot.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==t.length)throw new ot.InvalidArgument("Arguments objects and keys must have the same length");var l=t.length,c=s&&a?t.map(Ge(s)):t;return n.core.mutate({trans:e,type:"put",keys:r,values:c,wantResults:o}).then((function(t){var e=t.numFailures,i=t.results,r=t.lastResult,a=t.failures,s=o?i:r;if(0===e)return s;throw new it(n.name+".bulkPut(): "+e+" of "+l+" operations failed",a)}))}))},t.prototype.bulkDelete=function(t){var e=this,i=t.length;return this._trans("readwrite",(function(i){return e.core.mutate({trans:i,type:"delete",keys:t})})).then((function(t){var n=t.numFailures,r=t.lastResult,o=t.failures;if(0===n)return r;throw new it(e.name+".bulkDelete(): "+n+" of "+i+" operations failed",o)}))},t}();function Ue(t){var e={},i=function(i,n){if(n){var r=arguments.length,o=new Array(r-1);while(--r)o[r-1]=arguments[r];return e[i].subscribe.apply(null,o),t}if("string"===typeof i)return e[i]};i.addEventType=o;for(var n=1,r=arguments.length;ne?1:tn?a:0}return this.toArray((function(t){return t.sort(s)})).then(e)},t.prototype.toArray=function(t){var e=this;return this._read((function(t){var i=e._ctx;if("next"===i.dir&&Ke(i,!0)&&i.limit>0){var n=i.valueMapper,r=ti(i,i.table.core.schema);return i.table.core.query({trans:t,limit:i.limit,values:!0,query:{index:r,range:i.range}}).then((function(t){var e=t.result;return n?e.map(n):e}))}var o=[];return ii(i,(function(t){return o.push(t)}),t,i.table.core).then((function(){return o}))}),t)},t.prototype.offset=function(t){var e=this._ctx;return t<=0||(e.offset+=t,Ke(e)?Qe(e,(function(){var e=t;return function(t,i){return 0===e||(1===e?(--e,!1):(i((function(){t.advance(e),e=0})),!1))}})):Qe(e,(function(){var e=t;return function(){return--e<0}}))),this},t.prototype.limit=function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Qe(this._ctx,(function(){var e=t;return function(t,i,n){return--e<=0&&i(n),e>=0}}),!0),this},t.prototype.until=function(t,e){return Ze(this._ctx,(function(i,n,r){return!t(i.value)||(n(r),e)})),this},t.prototype.first=function(t){return this.limit(1).toArray((function(t){return t[0]})).then(t)},t.prototype.last=function(t){return this.reverse().first(t)},t.prototype.filter=function(t){return Ze(this._ctx,(function(e){return t(e.value)})),Je(this._ctx,t),this},t.prototype.and=function(t){return this.filter(t)},t.prototype.or=function(t){return new this.db.WhereClause(this._ctx.table,t,this)},t.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},t.prototype.desc=function(){return this.reverse()},t.prototype.eachKey=function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,i){t(i.key,i)}))},t.prototype.eachUniqueKey=function(t){return this._ctx.unique="unique",this.eachKey(t)},t.prototype.eachPrimaryKey=function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,i){t(i.primaryKey,i)}))},t.prototype.keys=function(t){var e=this._ctx;e.keysOnly=!e.isMatch;var i=[];return this.each((function(t,e){i.push(e.key)})).then((function(){return i})).then(t)},t.prototype.primaryKeys=function(t){var e=this._ctx;if("next"===e.dir&&Ke(e,!0)&&e.limit>0)return this._read((function(t){var i=ti(e,e.table.core.schema);return e.table.core.query({trans:t,values:!1,limit:e.limit,query:{index:i,range:e.range}})})).then((function(t){var e=t.result;return e})).then(t);e.keysOnly=!e.isMatch;var i=[];return this.each((function(t,e){i.push(e.primaryKey)})).then((function(){return i})).then(t)},t.prototype.uniqueKeys=function(t){return this._ctx.unique="unique",this.keys(t)},t.prototype.firstKey=function(t){return this.limit(1).keys((function(t){return t[0]})).then(t)},t.prototype.lastKey=function(t){return this.reverse().firstKey(t)},t.prototype.distinct=function(){var t=this._ctx,e=t.index&&t.table.schema.idxByName[t.index];if(!e||!e.multi)return this;var i={};return Ze(this._ctx,(function(t){var e=t.primaryKey.toString(),n=h(i,e);return i[e]=!0,!n})),this},t.prototype.modify=function(t){var e=this,i=this._ctx;return this._write((function(n){var r;if("function"===typeof t)r=t;else{var o=a(t),s=o.length;r=function(e){for(var i=!1,n=0;n0&&l.mutate({trans:n,type:"add",values:p}).then((function(t){for(var e in t.failures)v.splice(parseInt(e),1);m(p.length,t)}))).then((function(){return(f.length>0||x&&"object"===typeof t)&&l.mutate({trans:n,type:"put",keys:g,values:f,criteria:x,changeSpec:"function"!==typeof t&&t}).then((function(t){return m(f.length,t)}))})).then((function(){return(v.length>0||x&&t===ui)&&l.mutate({trans:n,type:"delete",keys:v,criteria:x}).then((function(t){return m(v.length,t)}))})).then((function(){return e.length>a+s&&o(a+d)}))}))};return o(0).then((function(){if(p.length>0)throw new et("Error modifying one or more objects",p,f,g);return e.length}))}))}))},t.prototype.delete=function(){var t=this._ctx,e=t.range;return Ke(t)&&(t.isPrimKey&&!Fe||3===e.type)?this._write((function(i){var n=t.table.core.schema.primaryKey,r=e;return t.table.core.count({trans:i,query:{index:n,range:r}}).then((function(e){return t.table.core.mutate({trans:i,type:"deleteRange",range:r}).then((function(t){var i=t.failures;t.lastResult,t.results;var n=t.numFailures;if(n)throw new et("Could not delete some values",Object.keys(i).map((function(t){return i[t]})),e-n);return e-n}))}))})):this.modify(ui)},t}(),ui=function(t,e){return e.value=null};function hi(t){return Ye(ci.prototype,(function(e,i){this.db=t;var n=He,r=null;if(i)try{n=i()}catch(l){r=l}var o=e._ctx,a=o.table,s=a.hook.reading.fire;this._ctx={table:a,index:o.index,isPrimKey:!o.index||a.schema.primKey.keyPath&&o.index===a.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:s!==ut?s:null}}))}function di(t,e){return te?-1:t===e?0:1}function fi(t,e,i){var n=t instanceof wi?new t.Collection(t):t;return n._ctx.error=i?new i(e):new TypeError(e),n}function gi(t){return new t.Collection(t,(function(){return xi("")})).limit(0)}function mi(t){return"next"===t?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function vi(t){return"next"===t?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function yi(t,e,i,n,r,o){for(var a=Math.min(t.length,n.length),s=-1,l=0;l=0?t.substr(0,s)+e[s]+i.substr(s+1):null;r(t[l],c)<0&&(s=l)}return a0)&&(p=m)}return i(null!==p?function(){t.continue(p+u)}:n),!1})),p}function _i(t,e,i,n){return{type:2,lower:t,upper:e,lowerOpen:i,upperOpen:n}}function xi(t){return{type:1,lower:t,upper:t}}var wi=function(){function t(){}return Object.defineProperty(t.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),t.prototype.between=function(t,e,i,n){i=!1!==i,n=!0===n;try{return this._cmp(t,e)>0||0===this._cmp(t,e)&&(i||n)&&(!i||!n)?gi(this):new this.Collection(this,(function(){return _i(t,e,!i,!n)}))}catch(r){return fi(this,Ee)}},t.prototype.equals=function(t){return null==t?fi(this,Ee):new this.Collection(this,(function(){return xi(t)}))},t.prototype.above=function(t){return null==t?fi(this,Ee):new this.Collection(this,(function(){return _i(t,void 0,!0)}))},t.prototype.aboveOrEqual=function(t){return null==t?fi(this,Ee):new this.Collection(this,(function(){return _i(t,void 0,!1)}))},t.prototype.below=function(t){return null==t?fi(this,Ee):new this.Collection(this,(function(){return _i(void 0,t,!1,!0)}))},t.prototype.belowOrEqual=function(t){return null==t?fi(this,Ee):new this.Collection(this,(function(){return _i(void 0,t)}))},t.prototype.startsWith=function(t){return"string"!==typeof t?fi(this,Le):this.between(t,t+Pe,!0,!0)},t.prototype.startsWithIgnoreCase=function(t){return""===t?this.startsWith(t):bi(this,(function(t,e){return 0===t.indexOf(e[0])}),[t],Pe)},t.prototype.equalsIgnoreCase=function(t){return bi(this,(function(t,e){return t===e[0]}),[t],"")},t.prototype.anyOfIgnoreCase=function(){var t=V.apply(z,arguments);return 0===t.length?gi(this):bi(this,(function(t,e){return-1!==e.indexOf(t)}),t,"")},t.prototype.startsWithAnyOfIgnoreCase=function(){var t=V.apply(z,arguments);return 0===t.length?gi(this):bi(this,(function(t,e){return e.some((function(e){return 0===t.indexOf(e)}))}),t,Pe)},t.prototype.anyOf=function(){var t=this,e=V.apply(z,arguments),i=this._cmp;try{e.sort(i)}catch(o){return fi(this,Ee)}if(0===e.length)return gi(this);var n=new this.Collection(this,(function(){return _i(e[0],e[e.length-1])}));n._ondirectionchange=function(n){i="next"===n?t._ascending:t._descending,e.sort(i)};var r=0;return n._addAlgorithm((function(t,n,o){var a=t.key;while(i(a,e[r])>0)if(++r,r===e.length)return n(o),!1;return 0===i(a,e[r])||(n((function(){t.continue(e[r])})),!1)})),n},t.prototype.notEqual=function(t){return this.inAnyRange([[De,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},t.prototype.noneOf=function(){var t=V.apply(z,arguments);if(0===t.length)return new this.Collection(this);try{t.sort(this._ascending)}catch(i){return fi(this,Ee)}var e=t.reduce((function(t,e){return t?t.concat([[t[t.length-1][1],e]]):[[De,e]]}),null);return e.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})},t.prototype.inAnyRange=function(t,e){var i=this,n=this._cmp,r=this._ascending,o=this._descending,a=this._min,s=this._max;if(0===t.length)return gi(this);if(!t.every((function(t){return void 0!==t[0]&&void 0!==t[1]&&r(t[0],t[1])<=0})))return fi(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ot.InvalidArgument);var l=!e||!1!==e.includeLowers,c=e&&!0===e.includeUppers;function u(t,e){for(var i=0,r=t.length;i0){o[0]=a(o[0],e[0]),o[1]=s(o[1],e[1]);break}}return i===r&&t.push(e),t}var h,d=r;function p(t,e){return d(t[0],e[0])}try{h=t.reduce(u,[]),h.sort(p)}catch(_){return fi(this,Ee)}var f=0,g=c?function(t){return r(t,h[f][1])>0}:function(t){return r(t,h[f][1])>=0},m=l?function(t){return o(t,h[f][0])>0}:function(t){return o(t,h[f][0])>=0};function v(t){return!g(t)&&!m(t)}var y=g,b=new this.Collection(this,(function(){return _i(h[0][0],h[h.length-1][1],!l,!c)}));return b._ondirectionchange=function(t){"next"===t?(y=g,d=r):(y=m,d=o),h.sort(p)},b._addAlgorithm((function(t,e,n){var o=t.key;while(y(o))if(++f,f===h.length)return e(n),!1;return!!v(o)||(0===i._cmp(o,h[f][1])||0===i._cmp(o,h[f][0])||e((function(){d===r?t.continue(h[f][0]):t.continue(h[f][1])})),!1)})),b},t.prototype.startsWithAnyOf=function(){var t=V.apply(z,arguments);return t.every((function(t){return"string"===typeof t}))?0===t.length?gi(this):this.inAnyRange(t.map((function(t){return[t,t+Pe]}))):fi(this,"startsWithAnyOf() only works with strings")},t}();function Si(t){return Ye(wi.prototype,(function(e,i,n){this.db=t,this._ctx={table:e,index:":id"===i?null:i,or:n};var r=t._deps.indexedDB;if(!r)throw new ot.MissingAPI;this._cmp=this._ascending=r.cmp.bind(r),this._descending=function(t,e){return r.cmp(e,t)},this._max=function(t,e){return r.cmp(t,e)>0?t:e},this._min=function(t,e){return r.cmp(t,e)<0?t:e},this._IDBKeyRange=t._deps.IDBKeyRange}))}function Ci(t){return se((function(e){return ki(e),t(e.target.error),!1}))}function ki(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}var Mi="storagemutated",Ti="x-storagemutated-1",Oi=Ue(null,Mi),Ai=function(){function t(){}return t.prototype._lock=function(){return x(!Nt.global),++this._reculock,1!==this._reculock||Nt.global||(Nt.lockOwnerFor=this),this},t.prototype._unlock=function(){if(x(!Nt.global),0===--this._reculock){Nt.global||(Nt.lockOwnerFor=null);while(this._blockedFuncs.length>0&&!this._locked()){var t=this._blockedFuncs.shift();try{we(t[1],t[0])}catch(e){}}}return this},t.prototype._locked=function(){return this._reculock&&Nt.lockOwnerFor!==this},t.prototype.create=function(t){var e=this;if(!this.mode)return this;var i=this.db.idbdb,n=this.db._state.dbOpenError;if(x(!this.idbtrans),!t&&!i)switch(n&&n.name){case"DatabaseClosedError":throw new ot.DatabaseClosed(n);case"MissingAPIError":throw new ot.MissingAPI(n.message,n);default:throw new ot.OpenFailed(n)}if(!this.active)throw new ot.TransactionInactive;return x(null===this._completion._state),t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):i.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=se((function(i){ki(i),e._reject(t.error)})),t.onabort=se((function(i){ki(i),e.active&&e._reject(new ot.Abort(t.error)),e.active=!1,e.on("abort").fire(i)})),t.oncomplete=se((function(){e.active=!1,e._resolve(),"mutatedParts"in t&&Oi.storagemutated.fire(t["mutatedParts"])})),this},t.prototype._promise=function(t,e,i){var n=this;if("readwrite"===t&&"readwrite"!==this.mode)return Oe(new ot.ReadOnly("Transaction is readonly"));if(!this.active)return Oe(new ot.TransactionInactive);if(this._locked())return new $t((function(r,o){n._blockedFuncs.push([function(){n._promise(t,e,i).then(r,o)},Nt])}));if(i)return fe((function(){var t=new $t((function(t,i){n._lock();var r=e(t,i,n);r&&r.then&&r.then(t,i)}));return t.finally((function(){return n._unlock()})),t._lib=!0,t}));var r=new $t((function(t,i){var r=e(t,i,n);r&&r.then&&r.then(t,i)}));return r._lib=!0,r},t.prototype._root=function(){return this.parent?this.parent._root():this},t.prototype.waitFor=function(t){var e=this._root(),i=$t.resolve(t);if(e._waitingFor)e._waitingFor=e._waitingFor.then((function(){return i}));else{e._waitingFor=i,e._waitingQueue=[];var n=e.idbtrans.objectStore(e.storeNames[0]);(function t(){++e._spinCount;while(e._waitingQueue.length)e._waitingQueue.shift()();e._waitingFor&&(n.get(-1/0).onsuccess=t)})()}var r=e._waitingFor;return new $t((function(t,n){i.then((function(i){return e._waitingQueue.push(se(t.bind(null,i)))}),(function(t){return e._waitingQueue.push(se(n.bind(null,t)))})).finally((function(){e._waitingFor===r&&(e._waitingFor=null)}))}))},t.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ot.Abort))},t.prototype.table=function(t){var e=this._memoizedTables||(this._memoizedTables={});if(h(e,t))return e[t];var i=this.schema[t];if(!i)throw new ot.NotFound("Table "+t+" not part of transaction");var n=new this.db.Table(t,i,this);return n.core=this.db.core.table(t),e[t]=n,n},t}();function Ii(t){return Ye(Ai.prototype,(function(e,i,n,r,o){var a=this;this.db=t,this.mode=e,this.storeNames=i,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=Ue(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new $t((function(t,e){a._resolve=t,a._reject=e})),this._completion.then((function(){a.active=!1,a.on.complete.fire()}),(function(t){var e=a.active;return a.active=!1,a.on.error.fire(t),a.parent?a.parent._reject(t):e&&a.idbtrans&&a.idbtrans.abort(),Oe(t)}))}))}function Pi(t,e,i,n,r,o,a){return{name:t,keyPath:e,unique:i,multi:n,auto:r,compound:o,src:(i&&!a?"&":"")+(n?"*":"")+(r?"++":"")+Di(e)}}function Di(t){return"string"===typeof t?t:t?"["+[].join.call(t,"+")+"]":""}function Ei(t,e,i){return{name:t,primKey:e,indexes:i,mappedClass:null,idxByName:S(i,(function(t){return[t.name,t]}))}}function Li(t){return 1===t.length?t[0]:t}var ji=function(t){try{return t.only([[]]),ji=function(){return[[]]},[[]]}catch(e){return ji=function(){return Pe},Pe}};function Ri(t){return null==t?function(){}:"string"===typeof t?Bi(t):function(e){return k(e,t)}}function Bi(t){var e=t.split(".");return 1===e.length?function(e){return e[t]}:function(e){return k(e,t)}}function Fi(t){return[].slice.call(t)}var Ni=0;function zi(t){return null==t?":id":"string"===typeof t?t:"["+t.join("+")+"]"}function Vi(t,e,i){function n(t,e){var i=Fi(t.objectStoreNames);return{schema:{name:t.name,tables:i.map((function(t){return e.objectStore(t)})).map((function(t){var e=t.keyPath,i=t.autoIncrement,n=s(e),r=null==e,o={},a={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:r,compound:n,keyPath:e,autoIncrement:i,unique:!0,extractKey:Ri(e)},indexes:Fi(t.indexNames).map((function(e){return t.index(e)})).map((function(t){var e=t.name,i=t.unique,n=t.multiEntry,r=t.keyPath,a=s(r),l={name:e,compound:a,keyPath:r,unique:i,multiEntry:n,extractKey:Ri(r)};return o[zi(r)]=l,l})),getIndexByKeyPath:function(t){return o[zi(t)]}};return o[":id"]=a.primaryKey,null!=e&&(o[zi(e)]=a.primaryKey),a}))},hasGetAll:i.length>0&&"getAll"in e.objectStore(i[0])&&!("undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function r(t){if(3===t.type)return null;if(4===t.type)throw new Error("Cannot convert never type to IDBKeyRange");var i=t.lower,n=t.upper,r=t.lowerOpen,o=t.upperOpen,a=void 0===i?void 0===n?null:e.upperBound(n,!!o):void 0===n?e.lowerBound(i,!!r):e.bound(i,n,!!r,!!o);return a}function o(t){var e=t.name;function i(t){var i=t.trans,n=t.type,o=t.keys,a=t.values,s=t.range;return new Promise((function(t,l){t=se(t);var c=i.objectStore(e),u=null==c.keyPath,h="put"===n||"add"===n;if(!h&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);var d,p=(o||a||{length:1}).length;if(o&&a&&o.length!==a.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return t({numFailures:0,failures:{},results:[],lastResult:void 0});var f=[],g=[],m=0,v=function(t){++m,ki(t)};if("deleteRange"===n){if(4===s.type)return t({numFailures:m,failures:g,results:[],lastResult:void 0});3===s.type?f.push(d=c.clear()):f.push(d=c.delete(r(s)))}else{var y=h?u?[a,o]:[a,null]:[o,null],b=y[0],_=y[1];if(h)for(var x=0;x=e}));function h(){return o.length?$t.resolve(o.shift()(i.idbtrans)).then(h):$t.resolve()}return u.forEach((function(t){o.push((function(){var o=l,s=t._cfg.dbschema;on(r,o,n),on(r,s,n),l=r._dbSchema=s;var u=Ki(o,s);u.add.forEach((function(t){Zi(n,t[0],t[1].primKey,t[1].indexes)})),u.change.forEach((function(t){if(t.recreate)throw new ot.Upgrade("Not yet support for changing primary key");var e=n.objectStore(t.name);t.add.forEach((function(t){return tn(e,t)})),t.change.forEach((function(t){e.deleteIndex(t.name),tn(e,t)})),t.del.forEach((function(t){return e.deleteIndex(t)}))}));var h=t._cfg.contentUpgrade;if(h&&t._cfg.version>e){Hi(r,n),i._memoizedTables={},c=!0;var d=O(s);u.del.forEach((function(t){d[t]=o[t]})),Wi(r,[r.Transaction.prototype]),Gi(r,[r.Transaction.prototype],a(d),d),i.schema=d;var p,f=q(h);f&&ge();var g=$t.follow((function(){if(p=h(i),p&&f){var t=me.bind(null,null);p.then(t,t)}}));return p&&"function"===typeof p.then?$t.resolve(p):g.then((function(){return p}))}})),o.push((function(e){if(!c||!Be){var n=t._cfg.dbschema;Ji(n,e)}Wi(r,[r.Transaction.prototype]),Gi(r,[r.Transaction.prototype],r._storeNames,r._dbSchema),i.schema=r._dbSchema}))})),h().then((function(){Qi(l,n)}))}function Ki(t,e){var i,n={del:[],add:[],change:[]};for(i in t)e[i]||n.del.push(i);for(i in e){var r=t[i],o=e[i];if(r){var a={name:i,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(r.primKey.keyPath||"")!==""+(o.primKey.keyPath||"")||r.primKey.auto!==o.primKey.auto&&!Re)a.recreate=!0,n.change.push(a);else{var s=r.idxByName,l=o.idxByName,c=void 0;for(c in s)l[c]||a.del.push(c);for(c in l){var u=s[c],h=l[c];u?u.src!==h.src&&a.change.push(h):a.add.push(h)}(a.del.length>0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}else n.add.push([i,o])}return n}function Zi(t,e,i,n){var r=t.db.createObjectStore(e,i.keyPath?{keyPath:i.keyPath,autoIncrement:i.auto}:{autoIncrement:i.auto});return n.forEach((function(t){return tn(r,t)})),r}function Qi(t,e){a(t).forEach((function(i){e.db.objectStoreNames.contains(i)||Zi(e,i,t[i].primKey,t[i].indexes)}))}function Ji(t,e){[].slice.call(e.db.objectStoreNames).forEach((function(i){return null==t[i]&&e.db.deleteObjectStore(i)}))}function tn(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function en(t,e,i){var n={},r=b(e.objectStoreNames,0);return r.forEach((function(t){for(var e=i.objectStore(t),r=e.keyPath,o=Pi(Di(r),r||"",!1,!1,!!e.autoIncrement,r&&"string"!==typeof r,!0),a=[],s=0;sMath.pow(2,62)?0:n.oldVersion;s=u<1,t._novip.idbdb=c.result,Yi(t,u/10,a,o)}}),o),c.onsuccess=se((function(){a=null;var i=t._novip.idbdb=c.result,r=b(i.objectStoreNames);if(r.length>0)try{var o=i.transaction(Li(r),"readonly");e.autoSchema?nn(t,i,o):(on(t,t._dbSchema,o),rn(t,o)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Hi(t,o)}catch(u){}je.push(t),i.onversionchange=se((function(i){e.vcFired=!0,t.on("versionchange").fire(i)})),i.onclose=se((function(e){t.on("close").fire(e)})),s&&dn(t._deps,l),n()}),o)}))}))]).then((function(){return r(),e.onReadyBeingFired=[],$t.resolve(fn((function(){return t.on.ready.fire(t.vip)}))).then((function i(){if(e.onReadyBeingFired.length>0){var n=e.onReadyBeingFired.reduce(vt,ct);return e.onReadyBeingFired=[],$t.resolve(fn((function(){return n(t.vip)}))).then(i)}}))})).finally((function(){e.onReadyBeingFired=null,e.isBeingOpened=!1})).then((function(){return t})).catch((function(i){e.dbOpenError=i;try{a&&a.abort()}catch(On){}return n===e.openCanceller&&t._close(),Oe(i)})).finally((function(){e.openComplete=!0,o()}))}function vn(t){var e=function(e){return t.next(e)},i=function(e){return t.throw(e)},n=o(e),r=o(i);function o(t){return function(e){var i=t(e),o=i.value;return i.done?o:o&&"function"===typeof o.then?o.then(n,r):s(o)?Promise.all(o).then(n,r):n(o)}}return o(e)()}function yn(t,e,i){var n=arguments.length;if(n<2)throw new ot.InvalidArgument("Too few arguments");var r=new Array(n-1);while(--n)r[n-1]=arguments[n];i=r.pop();var o=I(r);return[t,o,i]}function bn(t,e,i,n,r){return $t.resolve().then((function(){var o=Nt.transless||Nt,a=t._createTransaction(e,i,t._dbSchema,n),s={trans:a,transless:o};if(n)a.idbtrans=n.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(h){return h.name===nt.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return bn(t,e,i,null,r)}))):Oe(h)}var l,c=q(r);c&&ge();var u=$t.follow((function(){if(l=r.call(a,a),l)if(c){var t=me.bind(null,null);l.then(t,t)}else"function"===typeof l.next&&"function"===typeof l.throw&&(l=vn(l))}),s);return(l&&"function"===typeof l.then?$t.resolve(l).then((function(t){return a.active?t:Oe(new ot.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):u.then((function(){return l}))).then((function(t){return n&&a._resolve(),a._completion.then((function(){return t}))})).catch((function(t){return a._reject(t),Oe(t)}))}))}function _n(t,e,i){for(var n=s(t)?t.slice():[t],r=0;r0,h=n(n({},i),{isVirtual:u,keyTail:e,keyLength:c,extractKey:Ri(t),unique:!u&&i.unique});if(l.push(h),h.isPrimaryKey||a.push(h),c>1){var d=2===c?t[0]:t.slice(0,c-1);s(d,e+1,i)}return l.sort((function(t,e){return t.keyTail-e.keyTail})),h}var l=s(r.primaryKey.keyPath,0,r.primaryKey);o[":id"]=[l];for(var c=0,u=r.indexes;c0?Promise.reject(i.failures[0]):o.length1?e:t}:{d:0})};function Dn(t,e,i){var n=ri(e,i);if(!isNaN(n)){if(n>0)throw RangeError();if(In(t))return l(t,{from:e,to:i,d:1});var r=t.l,o=t.r;if(ri(i,t.from)<0)return r?Dn(r,e,i):t.l={from:e,to:i,d:1,l:null,r:null},Rn(t);if(ri(e,t.to)>0)return o?Dn(o,e,i):t.r={from:e,to:i,d:1,l:null,r:null},Rn(t);ri(e,t.from)<0&&(t.from=e,t.l=null,t.d=o?o.d+1:1),ri(i,t.to)>0&&(t.to=i,t.r=null,t.d=t.l?t.l.d+1:1);var a=!t.r;r&&!t.l&&En(t,r),o&&a&&En(t,o)}}function En(t,e){function i(t,e){var n=e.from,r=e.to,o=e.l,a=e.r;Dn(t,n,r),o&&i(t,o),a&&i(t,a)}In(e)||i(t,e)}function Ln(t,e){var i=jn(e),n=i.next();if(n.done)return!1;var r=n.value,o=jn(t),a=o.next(r.from),s=a.value;while(!n.done&&!a.done){if(ri(s.from,r.to)<=0&&ri(s.to,r.from)>=0)return!0;ri(r.from,s.from)<0?r=(n=i.next(s.from)).value:s=(a=o.next(r.from)).value}return!1}function jn(t){var e=In(t)?null:{s:0,n:t};return{next:function(t){var i=arguments.length>0;while(e)switch(e.s){case 0:if(e.s=1,i)while(e.n.l&&ri(t,e.n.from)<0)e={up:e,n:e.n.l,s:1};else while(e.n.l)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!i||ri(t,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function Rn(t){var e,i,r=((null===(e=t.r)||void 0===e?void 0:e.d)||0)-((null===(i=t.l)||void 0===i?void 0:i.d)||0),o=r>1?"r":r<-1?"l":"";if(o){var a="r"===o?"l":"r",s=n({},t),l=t[o];t.from=l.from,t.to=l.to,t[o]=l[o],s[o]=l[a],t[a]=s,s.d=Bn(s)}t.d=Bn(t)}function Bn(t){var e=t.r,i=t.l;return(e?i?Math.max(e.d,i.d):e.d:i?i.d:0)+1}d(Pn.prototype,(On={add:function(t){return En(this,t),this},addKey:function(t){return Dn(this,t,t),this},addKeys:function(t){var e=this;return t.forEach((function(t){return Dn(e,t,t)})),this}},On[F]=function(){return jn(this)},On));var Fn={stack:"dbcore",level:0,create:function(t){var e=t.schema.name,i=new Pn(t.MIN_KEY,t.MAX_KEY);return n(n({},t),{table:function(r){var o=t.table(r),l=o.schema,c=l.primaryKey,u=c.extractKey,h=c.outbound,d=n(n({},o),{mutate:function(t){var n=t.trans,a=n.mutatedParts||(n.mutatedParts={}),c=function(t){var i="idb://"+e+"/"+r+"/"+t;return a[i]||(a[i]=new Pn)},u=c(""),h=c(":dels"),d=t.type,p="deleteRange"===t.type?[t.range]:"delete"===t.type?[t.keys]:t.values.length<50?[[],t.values]:[],f=p[0],g=p[1],m=t.trans["_cache"];return o.mutate(t).then((function(t){if(s(f)){"delete"!==d&&(f=t.results),u.addKeys(f);var e=Tn(f,m);e||"add"===d||h.addKeys(f),(e||g)&&Nn(c,l,e,g)}else if(f){var n={from:f.lower,to:f.upper};h.add(n),u.add(n)}else u.add(i),h.add(i),l.indexes.forEach((function(t){return c(t.name).add(i)}));return t}))}}),p=function(e){var i,n,r=e.query,o=r.index,a=r.range;return[o,new Pn(null!==(i=a.lower)&&void 0!==i?i:t.MIN_KEY,null!==(n=a.upper)&&void 0!==n?n:t.MAX_KEY)]},f={get:function(t){return[c,new Pn(t.key)]},getMany:function(t){return[c,(new Pn).addKeys(t.keys)]},count:p,query:p,openCursor:p};return a(f).forEach((function(t){d[t]=function(a){var s=Nt.subscr;if(s){var l=function(t){var i="idb://"+e+"/"+r+"/"+t;return s[i]||(s[i]=new Pn)},c=l(""),d=l(":dels"),p=f[t](a),g=p[0],m=p[1];if(l(g.name||"").add(m),!g.isPrimaryKey){if("count"!==t){var v="query"===t&&h&&a.values&&o.query(n(n({},a),{values:!1}));return o[t].apply(this,arguments).then((function(e){if("query"===t){if(h&&a.values)return v.then((function(t){var i=t.result;return c.addKeys(i),e}));var i=a.values?e.result.map(u):e.result;a.values?c.addKeys(i):d.addKeys(i)}else if("openCursor"===t){var n=e,r=a.values;return n&&Object.create(n,{key:{get:function(){return d.addKey(n.primaryKey),n.key}},primaryKey:{get:function(){var t=n.primaryKey;return d.addKey(t),t}},value:{get:function(){return r&&c.addKey(n.primaryKey),n.value}}})}return e}))}d.add(i)}}return o[t].apply(this,arguments)}})),d}})}};function Nn(t,e,i,n){function r(e){var r=t(e.name||"");function o(t){return null!=t?e.extractKey(t):null}var a=function(t){return e.multiEntry&&s(t)?t.forEach((function(t){return r.addKey(t)})):r.addKey(t)};(i||n).forEach((function(t,e){var r=i&&o(i[e]),s=n&&o(n[e]);0!==ri(r,s)&&(null!=r&&a(r),null!=s&&a(s))}))}e.indexes.forEach(r)}var zn,Vn=function(){function t(e,i){var r=this;this._middlewares={},this.verno=0;var o=t.dependencies;this._options=i=n({addons:t.addons,autoOpen:!0,indexedDB:o.indexedDB,IDBKeyRange:o.IDBKeyRange},i),this._deps={indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange};var a=i.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var s={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ct,dbReadyPromise:null,cancelOpen:ct,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};s.dbReadyPromise=new $t((function(t){s.dbReadyResolve=t})),s.openCanceller=new $t((function(t,e){s.cancelOpen=e})),this._state=s,this.name=e,this.on=Ue(this,"populate","blocked","versionchange","close",{ready:[vt,ct]}),this.on.ready.subscribe=_(this.on.ready.subscribe,(function(e){return function(i,n){t.vip((function(){var t=r._state;if(t.openComplete)t.dbOpenError||$t.resolve().then(i),n&&e(i);else if(t.onReadyBeingFired)t.onReadyBeingFired.push(i),n&&e(i);else{e(i);var o=r;n||e((function t(){o.on.ready.unsubscribe(i),o.on.ready.unsubscribe(t)}))}}))}})),this.Collection=hi(this),this.Table=Xe(this),this.Transaction=Ii(this),this.Version=ln(this),this.WhereClause=Si(this),this.on("versionchange",(function(t){t.newVersion>0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()})),this.on("blocked",(function(t){!t.newVersion||t.newVersion=0&&je.splice(e,1),this.idbdb){try{this.idbdb.close()}catch(i){}this._novip.idbdb=null}t.dbReadyPromise=new $t((function(e){t.dbReadyResolve=e})),t.openCanceller=new $t((function(e,i){t.cancelOpen=i}))},t.prototype.close=function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new ot.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)},t.prototype.delete=function(){var t=this,e=arguments.length>0,i=this._state;return new $t((function(n,r){var o=function(){t.close();var e=t._deps.indexedDB.deleteDatabase(t.name);e.onsuccess=se((function(){pn(t._deps,t.name),n()})),e.onerror=Ci(r),e.onblocked=t._fireOnBlocked};if(e)throw new ot.InvalidArgument("Arguments not allowed in db.delete()");i.isBeingOpened?i.dbReadyPromise.then(o):o()}))},t.prototype.backendDB=function(){return this.idbdb},t.prototype.isOpen=function(){return null!==this.idbdb},t.prototype.hasBeenClosed=function(){var t=this._state.dbOpenError;return t&&"DatabaseClosed"===t.name},t.prototype.hasFailed=function(){return null!==this._state.dbOpenError},t.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(t.prototype,"tables",{get:function(){var t=this;return a(this._allTables).map((function(e){return t._allTables[e]}))},enumerable:!1,configurable:!0}),t.prototype.transaction=function(){var t=yn.apply(this,arguments);return this._transaction.apply(this,t)},t.prototype._transaction=function(t,e,i){var n=this,r=Nt.trans;r&&r.db===this&&-1===t.indexOf("!")||(r=null);var o,a,s=-1!==t.indexOf("?");t=t.replace("!","").replace("?","");try{if(a=e.map((function(t){var e=t instanceof n.Table?t.name:t;if("string"!==typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e})),"r"==t||t===Ve)o=Ve;else{if("rw"!=t&&t!=qe)throw new ot.InvalidArgument("Invalid transaction mode: "+t);o=qe}if(r){if(r.mode===Ve&&o===qe){if(!s)throw new ot.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&a.forEach((function(t){if(r&&-1===r.storeNames.indexOf(t)){if(!s)throw new ot.SubTransaction("Table "+t+" not included in parent transaction.");r=null}})),s&&r&&!r.active&&(r=null)}}catch(c){return r?r._promise(null,(function(t,e){e(c)})):Oe(c)}var l=bn.bind(null,this,o,a,r,i);return r?r._promise(o,l,"lock"):Nt.trans?we(Nt.transless,(function(){return n._whenReady(l)})):this._whenReady(l)},t.prototype.table=function(t){if(!h(this._allTables,t))throw new ot.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},t}(),qn="undefined"!==typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",$n=function(){function t(t){this._subscribe=t}return t.prototype.subscribe=function(t,e,i){return this._subscribe(t&&"function"!==typeof t?t:{next:t,error:e,complete:i})},t.prototype[qn]=function(){return this},t}();function Hn(t,e){return a(e).forEach((function(i){var n=t[i]||(t[i]=new Pn);En(n,e[i])})),t}function Gn(t){return new $n((function(e){var i=q(t);function n(e){i&&ge();var n=function(){return fe(t,{subscr:e,trans:null})},r=Nt.trans?we(Nt.transless,n):n();return i&&r.then(me,me),r}var r=!1,o={},s={},l={get closed(){return r},unsubscribe:function(){r=!0,Oi.storagemutated.unsubscribe(d)}};e.start&&e.start(l);var c=!1,u=!1;function h(){return a(s).some((function(t){return o[t]&&Ln(o[t],s[t])}))}var d=function(t){Hn(o,t),h()&&p()},p=function(){if(!c&&!r){o={};var t={},i=n(t);u||(Oi(Mi,d),u=!0),c=!0,Promise.resolve(i).then((function(i){c=!1,r||(h()?p():(o={},s=t,e.next&&e.next(i)))}),(function(t){c=!1,e.error&&e.error(t),l.unsubscribe()}))}};return p(),l}))}try{zn={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch(Qn){zn={indexedDB:null,IDBKeyRange:null}}var Wn=Vn;function Un(t){var e=Yn;try{Yn=!0,Oi.storagemutated.fire(t)}finally{Yn=e}}d(Wn,n(n({},lt),{delete:function(t){var e=new Wn(t,{addons:[]});return e.delete()},exists:function(t){return new Wn(t,{addons:[]}).open().then((function(t){return t.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(t){try{return hn(Wn.dependencies).then(t)}catch(On){return Oe(new ot.MissingAPI)}},defineClass:function(){function t(t){l(this,t)}return t},ignoreTransaction:function(t){return Nt.trans?we(Nt.transless,t):t()},vip:fn,async:function(t){return function(){try{var e=vn(t.apply(this,arguments));return e&&"function"===typeof e.then?e:$t.resolve(e)}catch(Qn){return Oe(Qn)}}},spawn:function(t,e,i){try{var n=vn(t.apply(i,e||[]));return n&&"function"===typeof n.then?n:$t.resolve(n)}catch(Qn){return Oe(Qn)}},currentTransaction:{get:function(){return Nt.trans||null}},waitFor:function(t,e){var i=$t.resolve("function"===typeof t?Wn.ignoreTransaction(t):t).timeout(e||6e4);return Nt.trans?Nt.trans.waitFor(i):i},Promise:$t,debug:{get:function(){return $},set:function(t){H(t,"dexie"===t?function(){return!0}:Ne)}},derive:g,extend:l,props:d,override:_,Events:Ue,on:Oi,liveQuery:Gn,extendObservabilitySet:Hn,getByKeyPath:k,setByKeyPath:M,delByKeyPath:T,shallowClone:O,deepClone:L,getObjectDiff:Sn,cmp:ri,asap:w,minKey:De,addons:[],connections:je,errnames:nt,dependencies:zn,semVer:Ie,version:Ie.split(".").map((function(t){return parseInt(t)})).reduce((function(t,e,i){return t+e/Math.pow(10,2*i)}))})),Wn.maxKey=ji(Wn.dependencies.IDBKeyRange),"undefined"!==typeof dispatchEvent&&"undefined"!==typeof addEventListener&&(Oi(Mi,(function(t){var e;Yn||(Re?(e=document.createEvent("CustomEvent"),e.initCustomEvent(Ti,!0,!0,t)):e=new CustomEvent(Ti,{detail:t}),Yn=!0,dispatchEvent(e),Yn=!1)})),addEventListener(Ti,(function(t){var e=t.detail;Yn||Un(e)})));var Yn=!1;if("undefined"!==typeof BroadcastChannel){var Xn=new BroadcastChannel(Ti);Oi(Mi,(function(t){Yn||Xn.postMessage(t)})),Xn.onmessage=function(t){t.data&&Un(t.data)}}else if("undefined"!==typeof self&&"undefined"!==typeof navigator){Oi(Mi,(function(t){try{Yn||("undefined"!==typeof localStorage&&localStorage.setItem(Ti,JSON.stringify({trig:Math.random(),changedParts:t})),"object"===typeof self["clients"]&&r([],self["clients"].matchAll({includeUncontrolled:!0}),!0).forEach((function(e){return e.postMessage({type:Ti,changedParts:t})})))}catch(On){}})),"undefined"!==typeof addEventListener&&addEventListener("storage",(function(t){if(t.key===Ti){var e=JSON.parse(t.newValue);e&&Un(e.changedParts)}}));var Kn=self.document&&navigator.serviceWorker;Kn&&Kn.addEventListener("message",Zn)}function Zn(t){var e=t.data;e&&e.type===Ti&&Un(e.changedParts)}$t.rejectionMapper=st,H($,Ne)}).call(this,i("23b3"))},"4df4":function(t,e,i){"use strict";var n=i("0366"),r=i("c65b"),o=i("7b0b"),a=i("9bdd"),s=i("e95a"),l=i("68ee"),c=i("07fa"),u=i("8418"),h=i("9a1f"),d=i("35a1"),p=Array;t.exports=function(t){var e=o(t),i=l(this),f=arguments.length,g=f>1?arguments[1]:void 0,m=void 0!==g;m&&(g=n(g,f>2?arguments[2]:void 0));var v,y,b,_,x,w,S=d(e),C=0;if(!S||this===p&&s(S))for(v=c(e),y=i?new this(v):p(v);v>C;C++)w=m?g(e[C],C):e[C],u(y,C,w);else for(_=h(e,S),x=_.next,y=i?new this:[];!(b=r(x,_)).done;C++)w=m?a(_,g,[b.value,C],!0):b.value,u(y,C,w);return y.length=C,y}},"4e73":function(t,e,i){"use strict";var n=i("2b0e"),r=i("c474"),o=i("7ee0"),a=i("b7fa"),s=i("9e62"),l=i("7562"),c=i("f376"),u=i("0967"),h=i("d882");function d(t){for(let e=t;null!==e;e=e.parentNode)if(void 0!==e.__vue__)return e.__vue__}function p(t,e){if(null===t||null===e)return null;for(let i=t;void 0!==i;i=i.$parent)if(i===e)return!0;return!1}let f;const{notPassiveCapture:g,passiveCapture:m}=h["f"],v={click:[],focus:[]};function y(t){while(null!==(t=t.nextElementSibling))if(t.classList.contains("q-dialog--modal"))return!0;return!1}function b(t,e){for(let i=t.length-1;i>=0;i--)if(void 0===t[i](e))return}function _(t){clearTimeout(f),"focusin"===t.type&&(!0===u["a"].is.ie&&t.target===document.body||!0===t.target.hasAttribute("tabindex"))?f=setTimeout((()=>{b(v.focus,t)}),!0===u["a"].is.ie?500:200):b(v.click,t)}var x={name:"click-outside",bind(t,{value:e,arg:i},n){const r=n.componentInstance||n.context,o={trigger:e,toggleEl:i,handler(e){const i=e.target;if(!0!==e.qClickOutside&&!0===document.body.contains(i)&&8!==i.nodeType&&i!==document.documentElement&&!1===i.classList.contains("no-pointer-events")&&!0!==y(t)&&(void 0===o.toggleEl||!1===o.toggleEl.contains(i))&&(i===document.body||!1===p(d(i),r)))return e.qClickOutside=!0,o.trigger(e)}};t.__qclickoutside&&(t.__qclickoutside_old=t.__qclickoutside),t.__qclickoutside=o,0===v.click.length&&(document.addEventListener("mousedown",_,g),document.addEventListener("touchstart",_,g),document.addEventListener("focusin",_,m)),v.click.push(o.handler),o.timerFocusin=setTimeout((()=>{v.focus.push(o.handler)}),500)},update(t,{value:e,oldValue:i,arg:n}){const r=t.__qclickoutside;e!==i&&(r.trigger=e),n!==r.arg&&(r.toggleEl=n)},unbind(t){const e=t.__qclickoutside_old||t.__qclickoutside;if(void 0!==e){clearTimeout(e.timerFocusin);const i=v.click.findIndex((t=>t===e.handler)),n=v.focus.findIndex((t=>t===e.handler));i>-1&&v.click.splice(i,1),n>-1&&v.focus.splice(n,1),0===v.click.length&&(clearTimeout(f),document.removeEventListener("mousedown",_,g),document.removeEventListener("touchstart",_,g),document.removeEventListener("focusin",_,m)),delete t[t.__qclickoutside_old?"__qclickoutside_old":"__qclickoutside"]}}},w=i("0831"),S=i("a267"),C=i("dde5"),k=i("e704"),M=i("ab41");e["a"]=n["a"].extend({name:"QMenu",mixins:[c["b"],a["a"],r["a"],o["a"],s["c"],l["a"]],directives:{ClickOutside:x},props:{persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:M["d"]},self:{type:String,validator:M["d"]},offset:{type:Array,validator:M["c"]},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},computed:{anchorOrigin(){return Object(M["a"])(this.anchor||(!0===this.cover?"center middle":"bottom start"),this.$q.lang.rtl)},selfOrigin(){return!0===this.cover?this.anchorOrigin:Object(M["a"])(this.self||"top start",this.$q.lang.rtl)},menuClass(){return(!0===this.square?" q-menu--square":"")+(!0===this.isDark?" q-menu--dark q-dark":"")},hideOnRouteChange(){return!0!==this.persistent&&!0!==this.noRouteDismiss},onEvents(){const t={...this.qListeners,input:h["k"],"popup-show":h["k"],"popup-hide":h["k"]};return!0===this.autoClose&&(t.click=this.__onAutoClose),t},attrs(){return{tabindex:-1,...this.qAttrs}}},methods:{focus(){Object(k["a"])((()=>{let t=void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0;void 0!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector("[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))}))},__show(t){if(this.__refocusTarget=!0!==u["a"].is.mobile&&!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,S["a"].register(this,(()=>{!0!==this.persistent&&(this.$emit("escape-key"),this.hide())})),this.__showPortal(),this.__configureScrollTarget(),this.absoluteOffset=void 0,void 0!==t&&(this.touchPosition||this.contextMenu)){const e=Object(h["h"])(t);if(void 0!==e.left){const{top:t,left:i}=this.anchorEl.getBoundingClientRect();this.absoluteOffset={left:e.left-i,top:e.top-t}}}void 0===this.unwatch&&(this.unwatch=this.$watch((()=>this.$q.screen.width+"|"+this.$q.screen.height+"|"+this.self+"|"+this.anchor+"|"+this.$q.lang.rtl),this.updatePosition)),this.$el.dispatchEvent(Object(h["c"])("popup-show",{bubbles:!0})),!0!==this.noFocus&&null!==document.activeElement&&document.activeElement.blur(),this.__nextTick((()=>{this.updatePosition(),!0!==this.noFocus&&this.focus()})),this.__setTimeout((()=>{!0===this.$q.platform.is.ios&&(this.__avoidAutoClose=this.autoClose,this.__portal.$el.click()),this.updatePosition(),this.__showPortal(!0),this.$emit("show",t)}),300)},__hide(t){this.__anchorCleanup(!0),this.__hidePortal(),void 0===this.__refocusTarget||null===this.__refocusTarget||void 0!==t&&!0===t.qClickOutside||(this.__refocusTarget.focus(),this.__refocusTarget=void 0),this.$el.dispatchEvent(Object(h["c"])("popup-hide",{bubbles:!0})),this.__setTimeout((()=>{this.__hidePortal(!0),this.$emit("hide",t)}),300)},__anchorCleanup(t){this.absoluteOffset=void 0,void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),!0!==t&&!0!==this.showing||(S["a"].pop(this),this.__unconfigureScrollTarget())},__unconfigureScrollTarget(){void 0!==this.__scrollTarget&&(this.__changeScrollEvent(this.__scrollTarget),this.__scrollTarget=void 0)},__configureScrollTarget(){void 0===this.anchorEl&&void 0===this.scrollTarget||(this.__scrollTarget=Object(w["d"])(this.anchorEl,this.scrollTarget),this.__changeScrollEvent(this.__scrollTarget,this.updatePosition))},__onAutoClose(t){!0!==this.__avoidAutoClose?(Object(s["a"])(this,t),void 0!==this.qListeners.click&&this.$emit("click",t)):this.__avoidAutoClose=!1},updatePosition(){if(void 0===this.anchorEl||void 0===this.__portal)return;const t=this.__portal.$el;8!==t.nodeType?Object(M["b"])({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,absoluteOffset:this.absoluteOffset,fit:this.fit,cover:this.cover,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)},__onClickOutside(t){if(!0!==this.persistent&&!0===this.showing){const e=t.target.classList;return Object(s["a"])(this,t),("touchstart"===t.type||e.contains("q-dialog__backdrop"))&&Object(h["m"])(t),!0}},__renderPortal(t){return t("transition",{props:{name:this.transition}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-menu q-position-engine scroll"+this.menuClass,class:this.contentClass,style:this.contentStyle,attrs:this.attrs,on:this.onEvents,directives:[{name:"click-outside",value:this.__onClickOutside,arg:this.anchorEl}]},Object(C["c"])(this,"default")):null])}},mounted(){this.__processModelChange(this.value)},beforeDestroy(){this.__refocusTarget=void 0,!0===this.showing&&void 0!==this.anchorEl&&this.anchorEl.dispatchEvent(Object(h["c"])("popup-hide",{bubbles:!0}))}})},5087:function(t,e,i){var n=i("68ee"),r=i("0d51"),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(r(t)+" is not a constructor")}},5096:function(t,e,i){"use strict";var n=i("2b0e"),r=i("de5e"),o=i("0831");e["a"]=n["a"].extend({name:"QPageScroller",mixins:[r["a"]],props:{scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{default:()=>[18,18]}},inject:{layout:{default(){console.error("QPageScroller needs to be used within a QLayout")}}},data(){return{showing:this.__isVisible()}},computed:{scrollHeight(){return this.layout.height-(!0===this.layout.container?this.layout.containerHeight:this.$q.screen.height)},onEvents(){return{...this.qListeners,click:this.__onClick}}},watch:{"layout.scroll.position"(){this.__updateVisibility()},reverse:{handler(t){!0===t?void 0===this.heightWatcher&&(this.heightWatcher=this.$watch("scrollHeight",this.__updateVisibility)):void 0!==this.heightWatcher&&this.__cleanup()},immediate:!0}},methods:{__isVisible(){return!0===this.reverse?this.scrollHeight-this.layout.scroll.position>this.scrollOffset:this.layout.scroll.position>this.scrollOffset},__onClick(t){const e=Object(o["d"])(!0===this.layout.container?this.$el:this.layout.$el);Object(o["i"])(e,!0===this.reverse?this.layout.height:0,this.duration),this.$emit("click",t)},__updateVisibility(){const t=this.__isVisible();this.showing!==t&&(this.showing=t)},__cleanup(){this.heightWatcher(),this.heightWatcher=void 0}},render(t){return t("transition",{props:{name:"q-transition--fade"}},!0===this.showing?[t("div",{staticClass:"q-page-scroller",on:this.onEvents},[r["a"].options.render.call(this,t)])]:null)},beforeDestroy(){void 0!==this.heightWatcher&&this.__cleanup()}})},"50c4":function(t,e,i){var n=i("5926"),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},"512c":function(t,e,i){var n=i("342f"),r=n.match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},"515f":function(t,e,i){"use strict";i("5319");var n=i("0967");function r(t){return encodeURIComponent(t)}function o(t){return decodeURIComponent(t)}function a(t){return r(t===Object(t)?JSON.stringify(t):""+t)}function s(t){if(""===t)return t;0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),t=o(t.replace(/\+/g," "));try{t=JSON.parse(t)}catch(e){}return t}function l(t){const e=new Date;return e.setMilliseconds(e.getMilliseconds()+t),e.toUTCString()}function c(t){let e=0;const i=t.match(/(\d+)d/),n=t.match(/(\d+)h/),r=t.match(/(\d+)m/),o=t.match(/(\d+)s/);return i&&(e+=864e5*i[1]),n&&(e+=36e5*n[1]),r&&(e+=6e4*r[1]),o&&(e+=1e3*o[1]),0===e?t:l(e)}function u(t,e,i={},n){let o,s;void 0!==i.expires&&("[object Date]"===Object.prototype.toString.call(i.expires)?o=i.expires.toUTCString():"string"===typeof i.expires?o=c(i.expires):(s=parseFloat(i.expires),o=!1===isNaN(s)?l(864e5*s):i.expires));const u=`${r(t)}=${a(e)}`,d=[u,void 0!==o?"; Expires="+o:"",i.path?"; Path="+i.path:"",i.domain?"; Domain="+i.domain:"",i.sameSite?"; SameSite="+i.sameSite:"",i.httpOnly?"; HttpOnly":"",i.secure?"; Secure":"",i.other?"; "+i.other:""].join("");if(n){n.req.qCookies?n.req.qCookies.push(d):n.req.qCookies=[d],n.res.setHeader("Set-Cookie",n.req.qCookies);let e=n.req.headers.cookie||"";if(void 0!==o&&s<0){const i=h(t,n);void 0!==i&&(e=e.replace(`${t}=${i}; `,"").replace(`; ${t}=${i}`,"").replace(`${t}=${i}`,""))}else e=e?`${u}; ${e}`:d;n.req.headers.cookie=e}else document.cookie=d}function h(t,e){const i=e?e.req.headers:document,n=i.cookie?i.cookie.split("; "):[],r=n.length;let a,l,c,u=t?null:{},h=0;for(;hh(e,t),set:(e,i,n)=>u(e,i,n,t),has:e=>p(e,t),remove:(e,i)=>d(e,i,t),getAll:()=>h(null,t)}}e["a"]={parseSSR(t){return void 0!==t?f(t):this},install({$q:t,queues:e}){!0===n["e"]?e.server.push(((t,e)=>{t.cookies=f(e.ssr)})):(Object.assign(this,f()),t.cookies=this)}}},5270:function(t,e,i){"use strict";var n=i("c532"),r=i("c401"),o=i("2e67"),a=i("2444");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){s(t),t.headers=t.headers||{},t.data=r.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return s(t),e.data=r.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=r.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"52ee":function(t,e,i){"use strict";i("caad"),i("ddb0");var n=i("2b0e"),r=i("9c40"),o=i("a8f0"),a=i("b7fa"),s=i("f89c"),l=i("87e8"),c=i("7937");const u=["gregorian","persian"];var h={mixins:[a["a"],s["b"],l["a"]],props:{value:{required:!0},mask:{type:String},locale:Object,calendar:{type:String,validator:t=>u.includes(t),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},computed:{computedMask(){return this.__getMask()},computedLocale(){return this.__getLocale()},editable(){return!0!==this.disable&&!0!==this.readonly},computedColor(){return this.color||"primary"},computedTextColor(){return this.textColor||"white"},computedTabindex(){return!0===this.editable?0:-1},headerClass(){const t=[];return void 0!==this.color&&t.push(`bg-${this.color}`),void 0!==this.textColor&&t.push(`text-${this.textColor}`),t.join(" ")}},methods:{__getLocale(){return void 0!==this.locale?{...this.$q.lang.date,...this.locale}:this.$q.lang.date},__getCurrentDate(t){const e=new Date,i=!0===t?null:0;if("persian"===this.calendar){const t=Object(o["c"])(e);return{year:t.jy,month:t.jm,day:t.jd}}return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:i,minute:i,second:i,millisecond:i}},__getCurrentTime(){const t=new Date;return{hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}},__getDayHash(t){return t.year+"/"+Object(c["e"])(t.month)+"/"+Object(c["e"])(t.day)}}},d=i("dde5"),p=i("bd4c"),f=i("0cd3"),g=i("5ff7");const m=20,v=["Calendar","Years","Months"],y=t=>v.includes(t),b=t=>/^-?[\d]+\/[0-1]\d$/.test(t),_=" — ";e["a"]=n["a"].extend({name:"QDate",mixins:[h],props:{multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:b},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:b},navigationMaxYearMonth:{type:String,validator:b},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:y}},data(){const t=this.__getMask(),e=this.__getLocale(),i=this.__getViewModel(t,e),n=i.year,r=!0===this.$q.lang.rtl?"right":"left";return{view:this.defaultView,monthDirection:r,yearDirection:r,startYear:n-n%m-(n<0?m:0),editRange:void 0,innerMask:t,innerLocale:e,viewModel:i}},watch:{value(t){if(this.lastEmitValue===t)this.lastEmitValue=0;else{const{year:t,month:e}=this.__getViewModel(this.innerMask,this.innerLocale);this.__updateViewModel(t,e)}},view(){void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus()},"viewModel.year"(t){this.$emit("navigation",{year:t,month:this.viewModel.month})},"viewModel.month"(t){this.$emit("navigation",{year:this.viewModel.year,month:t})},computedMask(t){this.__updateValue(t,this.innerLocale,"mask"),this.innerMask=t},computedLocale(t){this.__updateValue(this.innerMask,t,"locale"),this.innerLocale=t}},computed:{classes(){const t=!0===this.landscape?"landscape":"portrait";return`q-date q-date--${t} q-date--${t}-${!0===this.minimal?"minimal":"standard"}`+(!0===this.isDark?" q-date--dark q-dark":"")+(!0===this.bordered?" q-date--bordered":"")+(!0===this.square?" q-date--square no-border-radius":"")+(!0===this.flat?" q-date--flat no-shadow":"")+(!0===this.disable?" disabled":!0===this.readonly?" q-date--readonly":"")},isImmediate(){return!0===this.emitImmediately&&!0!==this.multiple&&!0!==this.range},normalizedModel(){return!0===Array.isArray(this.value)?this.value:null!==this.value&&void 0!==this.value?[this.value]:[]},daysModel(){return this.normalizedModel.filter((t=>"string"===typeof t)).map((t=>this.__decodeString(t,this.innerMask,this.innerLocale))).filter((t=>null!==t.dateHash&&null!==t.day&&null!==t.month&&null!==t.year))},rangeModel(){const t=t=>this.__decodeString(t,this.innerMask,this.innerLocale);return this.normalizedModel.filter((t=>!0===Object(g["d"])(t)&&void 0!==t.from&&void 0!==t.to)).map((e=>({from:t(e.from),to:t(e.to)}))).filter((t=>null!==t.from.dateHash&&null!==t.to.dateHash&&t.from.dateHashnew Date(t.year,t.month-1,t.day):t=>{const e=Object(o["b"])(t.year,t.month,t.day);return new Date(e.gy,e.gm-1,e.gd)}},encodeObjectFn(){return"persian"===this.calendar?this.__getDayHash:(t,e,i)=>Object(p["c"])(new Date(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond),void 0===e?this.innerMask:e,void 0===i?this.innerLocale:i,t.year,t.timezoneOffset)},daysInModel(){return this.daysModel.length+this.rangeModel.reduce(((t,e)=>t+1+Object(p["d"])(this.getNativeDateFn(e.to),this.getNativeDateFn(e.from))),0)},headerTitle(){if(void 0!==this.title&&null!==this.title&&this.title.length>0)return this.title;if(void 0!==this.editRange){const t=this.editRange.init,e=this.getNativeDateFn(t);return this.innerLocale.daysShort[e.getDay()]+", "+this.innerLocale.monthsShort[t.month-1]+" "+t.day+_+"?"}if(0===this.daysInModel)return _;if(this.daysInModel>1)return`${this.daysInModel} ${this.innerLocale.pluralDay}`;const t=this.daysModel[0],e=this.getNativeDateFn(t);return!0===isNaN(e.valueOf())?_:void 0!==this.innerLocale.headerTitle?this.innerLocale.headerTitle(e,t):this.innerLocale.daysShort[e.getDay()]+", "+this.innerLocale.monthsShort[t.month-1]+" "+t.day},headerSubtitle(){if(void 0!==this.subtitle&&null!==this.subtitle&&this.subtitle.length>0)return this.subtitle;if(0===this.daysInModel)return _;if(this.daysInModel>1){const t=this.minSelectedModel,e=this.maxSelectedModel,i=this.innerLocale.monthsShort;return i[t.month-1]+(t.year!==e.year?" "+t.year+_+i[e.month-1]+" ":t.month!==e.month?_+i[e.month-1]:"")+" "+e.year}return this.daysModel[0].year},minSelectedModel(){const t=this.daysModel.concat(this.rangeModel.map((t=>t.from))).sort(((t,e)=>t.year-e.year||t.month-e.month));return t[0]},maxSelectedModel(){const t=this.daysModel.concat(this.rangeModel.map((t=>t.to))).sort(((t,e)=>e.year-t.year||e.month-t.month));return t[0]},dateArrow(){const t=[this.$q.iconSet.datetime.arrowLeft,this.$q.iconSet.datetime.arrowRight];return!0===this.$q.lang.rtl?t.reverse():t},computedFirstDayOfWeek(){return void 0!==this.firstDayOfWeek?Number(this.firstDayOfWeek):this.innerLocale.firstDayOfWeek},daysOfWeek(){const t=this.innerLocale.daysShort,e=this.computedFirstDayOfWeek;return e>0?t.slice(e,7).concat(t.slice(0,e)):t},daysInMonth(){const t=this.viewModel;return"persian"!==this.calendar?new Date(t.year,t.month,0).getDate():Object(o["a"])(t.year,t.month)},today(){return this.__getCurrentDate()},evtColor(){return"function"===typeof this.eventColor?this.eventColor:()=>this.eventColor},minNav(){if(void 0!==this.navigationMinYearMonth){const t=this.navigationMinYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}},maxNav(){if(void 0!==this.navigationMaxYearMonth){const t=this.navigationMaxYearMonth.split("/");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}},navBoundaries(){const t={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return void 0!==this.minNav&&this.minNav.year>=this.viewModel.year&&(t.year.prev=!1,this.minNav.year===this.viewModel.year&&this.minNav.month>=this.viewModel.month&&(t.month.prev=!1)),void 0!==this.maxNav&&this.maxNav.year<=this.viewModel.year&&(t.year.next=!1,this.maxNav.year===this.viewModel.year&&this.maxNav.month<=this.viewModel.month&&(t.month.next=!1)),t},daysMap(){const t={};return this.daysModel.forEach((e=>{const i=this.__getMonthHash(e);void 0===t[i]&&(t[i]=[]),t[i].push(e.day)})),t},rangeMap(){const t={};return this.rangeModel.forEach((e=>{const i=this.__getMonthHash(e.from),n=this.__getMonthHash(e.to);if(void 0===t[i]&&(t[i]=[]),t[i].push({from:e.from.day,to:i===n?e.to.day:void 0,range:e}),i12&&(a.year++,a.month=1)}})),t},rangeView(){if(void 0===this.editRange)return;const{init:t,initHash:e,final:i,finalHash:n}=this.editRange,[r,o]=e<=n?[t,i]:[i,t],a=this.__getMonthHash(r),s=this.__getMonthHash(o);if(a!==this.viewMonthHash&&s!==this.viewMonthHash)return;const l={};return a===this.viewMonthHash?(l.from=r.day,l.includeFrom=!0):l.from=1,s===this.viewMonthHash?(l.to=o.day,l.includeTo=!0):l.to=this.daysInMonth,l},viewMonthHash(){return this.__getMonthHash(this.viewModel)},selectionDaysMap(){const t={};if(void 0===this.options){for(let e=1;e<=this.daysInMonth;e++)t[e]=!0;return t}const e="function"===typeof this.options?this.options:t=>this.options.includes(t);for(let i=1;i<=this.daysInMonth;i++){const n=this.viewMonthHash+"/"+Object(c["e"])(i);t[i]=e(n)}return t},eventDaysMap(){const t={};if(void 0===this.events)for(let e=1;e<=this.daysInMonth;e++)t[e]=!1;else{const e="function"===typeof this.events?this.events:t=>this.events.includes(t);for(let i=1;i<=this.daysInMonth;i++){const n=this.viewMonthHash+"/"+Object(c["e"])(i);t[i]=!0===e(n)&&this.evtColor(n)}}return t},viewDays(){let t,e;const{year:i,month:n}=this.viewModel;if("persian"!==this.calendar)t=new Date(i,n-1,1),e=new Date(i,n-1,0).getDate();else{const r=Object(o["b"])(i,n,1);t=new Date(r.gy,r.gm-1,r.gd);let a=n-1,s=i;0===a&&(a=12,s--),e=Object(o["a"])(s,a)}return{days:t.getDay()-this.computedFirstDayOfWeek-1,endDay:e}},days(){const t=[],{days:e,endDay:i}=this.viewDays,n=e<0?e+7:e;if(n<6)for(let a=i-n;a<=i;a++)t.push({i:a,fill:!0});const r=t.length;for(let a=1;a<=this.daysInMonth;a++){const e={i:a,event:this.eventDaysMap[a],classes:[]};!0===this.selectionDaysMap[a]&&(e.in=!0,e.flat=!0),t.push(e)}if(void 0!==this.daysMap[this.viewMonthHash]&&this.daysMap[this.viewMonthHash].forEach((e=>{const i=r+e-1;Object.assign(t[i],{selected:!0,unelevated:!0,flat:!1,color:this.computedColor,textColor:this.computedTextColor})})),void 0!==this.rangeMap[this.viewMonthHash]&&this.rangeMap[this.viewMonthHash].forEach((e=>{if(void 0!==e.from){const i=r+e.from-1,n=r+(e.to||this.daysInMonth)-1;for(let r=i;r<=n;r++)Object.assign(t[r],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[i],{rangeFrom:!0,flat:!1}),void 0!==e.to&&Object.assign(t[n],{rangeTo:!0,flat:!1})}else if(void 0!==e.to){const i=r+e.to-1;for(let n=r;n<=i;n++)Object.assign(t[n],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[i],{flat:!1,rangeTo:!0})}else{const i=r+this.daysInMonth-1;for(let n=r;n<=i;n++)Object.assign(t[n],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor})}})),void 0!==this.rangeView){const e=r+this.rangeView.from-1,i=r+this.rangeView.to-1;for(let n=e;n<=i;n++)t[n].color=this.computedColor,t[n].editRange=!0;!0===this.rangeView.includeFrom&&(t[e].editRangeFrom=!0),!0===this.rangeView.includeTo&&(t[i].editRangeTo=!0)}this.viewModel.year===this.today.year&&this.viewModel.month===this.today.month&&(t[r+this.today.day-1].today=!0);const o=t.length%7;if(o>0){const e=7-o;for(let i=1;i<=e;i++)t.push({i:i,fill:!0})}return t.forEach((t=>{let e="q-date__calendar-item ";!0===t.fill?e+="q-date__calendar-item--fill":(e+="q-date__calendar-item--"+(!0===t.in?"in":"out"),void 0!==t.range&&(e+=" q-date__range"+(!0===t.rangeTo?"-to":!0===t.rangeFrom?"-from":"")),!0===t.editRange&&(e+=` q-date__edit-range${!0===t.editRangeFrom?"-from":""}${!0===t.editRangeTo?"-to":""}`),void 0===t.range&&!0!==t.editRange||(e+=` text-${t.color}`)),t.classes=e})),t},attrs(){return!0===this.disable?{"aria-disabled":"true"}:!0===this.readonly?{"aria-readonly":"true"}:void 0}},methods:{setToday(){const t=this.today,e=this.daysMap[this.__getMonthHash(t)];void 0!==e&&!1!==e.includes(t.day)||this.__addToModel(t),this.setCalendarTo(this.today.year,this.today.month)},setView(t){!0===y(t)&&(this.view=t)},offsetCalendar(t,e){["month","year"].includes(t)&&this["__goTo"+("month"===t?"Month":"Year")](!0===e?-1:1)},setCalendarTo(t,e){this.view="Calendar",this.__updateViewModel(t,e)},setEditingRange(t,e){if(!1===this.range||!t)return void(this.editRange=void 0);const i=Object.assign({...this.viewModel},t),n=void 0!==e?Object.assign({...this.viewModel},e):i;this.editRange={init:i,initHash:this.__getDayHash(i),final:n,finalHash:this.__getDayHash(n)},this.setCalendarTo(i.year,i.month)},__getMask(){return"persian"===this.calendar?"YYYY/MM/DD":this.mask},__decodeString(t,e,i){return Object(p["a"])(t,e,i,this.calendar,{hour:0,minute:0,second:0,millisecond:0})},__getViewModel(t,e){const i=!0===Array.isArray(this.value)?this.value:this.value?[this.value]:[];if(0===i.length)return this.__getDefaultViewModel();const n=this.__decodeString(void 0!==i[0].from?i[0].from:i[0],t,e);return null===n.dateHash?this.__getDefaultViewModel():n},__getDefaultViewModel(){let t,e;if(void 0!==this.defaultYearMonth){const i=this.defaultYearMonth.split("/");t=parseInt(i[0],10),e=parseInt(i[1],10)}else{const i=void 0!==this.today?this.today:this.__getCurrentDate();t=i.year,e=i.month}return{year:t,month:e,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:t+"/"+Object(c["e"])(e)+"/01"}},__getHeader(t){if(!0!==this.minimal)return t("div",{staticClass:"q-date__header",class:this.headerClass},[t("div",{staticClass:"relative-position"},[t("transition",{props:{name:"q-transition--fade"}},[t("div",{key:"h-yr-"+this.headerSubtitle,staticClass:"q-date__header-subtitle q-date__header-link",class:"Years"===this.view?"q-date__header-link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:Object(f["b"])(this,"vY",{click:()=>{this.view="Years"},keyup:t=>{13===t.keyCode&&(this.view="Years")}})},[this.headerSubtitle])])]),t("div",{staticClass:"q-date__header-title relative-position flex no-wrap"},[t("div",{staticClass:"relative-position col"},[t("transition",{props:{name:"q-transition--fade"}},[t("div",{key:"h-sub"+this.headerTitle,staticClass:"q-date__header-title-label q-date__header-link",class:"Calendar"===this.view?"q-date__header-link--active":"cursor-pointer",attrs:{tabindex:this.computedTabindex},on:Object(f["b"])(this,"vC",{click:()=>{this.view="Calendar"},keyup:t=>{13===t.keyCode&&(this.view="Calendar")}})},[this.headerTitle])])]),!0===this.todayBtn?t(r["a"],{staticClass:"q-date__header-today self-start",props:{icon:this.$q.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:this.computedTabindex},on:Object(f["b"])(this,"today",{click:this.setToday})}):null])])},__getNavigation(t,{label:e,view:i,key:n,dir:o,goTo:a,boundaries:s,cls:l}){return[t("div",{staticClass:"row items-center q-date__arrow"},[t(r["a"],{props:{round:!0,dense:!0,size:"sm",flat:!0,icon:this.dateArrow[0],tabindex:this.computedTabindex,disable:!1===s.prev},on:Object(f["b"])(this,"go-#"+i,{click(){a(-1)}})})]),t("div",{staticClass:"relative-position overflow-hidden flex flex-center"+l},[t("transition",{props:{name:"q-transition--jump-"+o}},[t("div",{key:n},[t(r["a"],{props:{flat:!0,dense:!0,noCaps:!0,label:e,tabindex:this.computedTabindex},on:Object(f["b"])(this,"view#"+i,{click:()=>{this.view=i}})})])])]),t("div",{staticClass:"row items-center q-date__arrow"},[t(r["a"],{props:{round:!0,dense:!0,size:"sm",flat:!0,icon:this.dateArrow[1],tabindex:this.computedTabindex,disable:!1===s.next},on:Object(f["b"])(this,"go+#"+i,{click(){a(1)}})})])]},__getCalendarView(t){return[t("div",{key:"calendar-view",staticClass:"q-date__view q-date__calendar"},[t("div",{staticClass:"q-date__navigation row items-center no-wrap"},this.__getNavigation(t,{label:this.innerLocale.months[this.viewModel.month-1],view:"Months",key:this.viewModel.month,dir:this.monthDirection,goTo:this.__goToMonth,boundaries:this.navBoundaries.month,cls:" col"}).concat(this.__getNavigation(t,{label:this.viewModel.year,view:"Years",key:this.viewModel.year,dir:this.yearDirection,goTo:this.__goToYear,boundaries:this.navBoundaries.year,cls:""}))),t("div",{staticClass:"q-date__calendar-weekdays row items-center no-wrap"},this.daysOfWeek.map((e=>t("div",{staticClass:"q-date__calendar-item"},[t("div",[e])])))),t("div",{staticClass:"q-date__calendar-days-container relative-position overflow-hidden"},[t("transition",{props:{name:"q-transition--slide-"+this.monthDirection}},[t("div",{key:this.viewMonthHash,staticClass:"q-date__calendar-days fit"},this.days.map((e=>t("div",{staticClass:e.classes},[!0===e.in?t(r["a"],{staticClass:!0===e.today?"q-date__today":null,props:{dense:!0,flat:e.flat,unelevated:e.unelevated,color:e.color,textColor:e.textColor,label:e.i,tabindex:this.computedTabindex},on:Object(f["b"])(this,"day#"+e.i,{click:()=>{this.__onDayClick(e.i)},mouseover:()=>{this.__onDayMouseover(e.i)}})},!1!==e.event?[t("div",{staticClass:"q-date__event bg-"+e.event})]:null):t("div",[e.i])]))))])])])]},__getMonthsView(t){const e=this.viewModel.year===this.today.year,i=t=>void 0!==this.minNav&&this.viewModel.year===this.minNav.year&&this.minNav.month>t||void 0!==this.maxNav&&this.viewModel.year===this.maxNav.year&&this.maxNav.month{const a=this.viewModel.month===o+1;return t("div",{staticClass:"q-date__months-item flex flex-center"},[t(r["a"],{staticClass:!0===e&&this.today.month===o+1?"q-date__today":null,props:{flat:!0!==a,label:n,unelevated:a,color:!0===a?this.computedColor:null,textColor:!0===a?this.computedTextColor:null,tabindex:this.computedTabindex,disable:i(o+1)},on:Object(f["b"])(this,"month#"+o,{click:()=>{this.__setMonth(o+1)}})})])}));return!0===this.yearsInMonthView&&n.unshift(t("div",{staticClass:"row no-wrap full-width"},[this.__getNavigation(t,{label:this.viewModel.year,view:"Years",key:this.viewModel.year,dir:this.yearDirection,goTo:this.__goToYear,boundaries:this.navBoundaries.year,cls:" col"})])),t("div",{key:"months-view",staticClass:"q-date__view q-date__months flex flex-center"},n)},__getYearsView(t){const e=this.startYear,i=e+m,n=[],o=t=>void 0!==this.minNav&&this.minNav.year>t||void 0!==this.maxNav&&this.maxNav.year{this.__setYear(a)}})})]))}return t("div",{staticClass:"q-date__view q-date__years flex flex-center"},[t("div",{staticClass:"col-auto"},[t(r["a"],{props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[0],tabindex:this.computedTabindex,disable:o(e)},on:Object(f["b"])(this,"y-",{click:()=>{this.startYear-=m}})})]),t("div",{staticClass:"q-date__years-content col self-stretch row items-center"},n),t("div",{staticClass:"col-auto"},[t(r["a"],{props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[1],tabindex:this.computedTabindex,disable:o(i)},on:Object(f["b"])(this,"y+",{click:()=>{this.startYear+=m}})})])])},__goToMonth(t){let e=this.viewModel.year,i=Number(this.viewModel.month)+t;13===i?(i=1,e++):0===i&&(i=12,e--),this.__updateViewModel(e,i),!0===this.isImmediate&&this.__emitImmediately("month")},__goToYear(t){const e=Number(this.viewModel.year)+t;this.__updateViewModel(e,this.viewModel.month),!0===this.isImmediate&&this.__emitImmediately("year")},__setYear(t){this.__updateViewModel(t,this.viewModel.month),this.view="Years"===this.defaultView?"Months":"Calendar",!0===this.isImmediate&&this.__emitImmediately("year")},__setMonth(t){this.__updateViewModel(this.viewModel.year,t),this.view="Calendar",!0===this.isImmediate&&this.__emitImmediately("month")},__getMonthHash(t){return t.year+"/"+Object(c["e"])(t.month)},__toggleDate(t,e){const i=this.daysMap[e],n=void 0!==i&&!0===i.includes(t.day)?this.__removeFromModel:this.__addToModel;n(t)},__getShortDate(t){return{year:t.year,month:t.month,day:t.day}},__onDayClick(t){const e={...this.viewModel,day:t};if(!1!==this.range)if(void 0===this.editRange){const i=this.days.find((e=>!0!==e.fill&&e.i===t));if(void 0!==i.range)return void this.__removeFromModel({target:e,from:i.range.from,to:i.range.to});if(!0===i.selected)return void this.__removeFromModel(e);const n=this.__getDayHash(e);this.editRange={init:e,initHash:n,final:e,finalHash:n},this.$emit("range-start",this.__getShortDate(e))}else{const t=this.editRange.initHash,i=this.__getDayHash(e),n=t<=i?{from:this.editRange.init,to:e}:{from:e,to:this.editRange.init};this.editRange=void 0,this.__addToModel(t===i?e:{target:e,...n}),this.$emit("range-end",{from:this.__getShortDate(n.from),to:this.__getShortDate(n.to)})}else this.__toggleDate(e,this.viewMonthHash)},__onDayMouseover(t){if(void 0!==this.editRange){const e={...this.viewModel,day:t};Object.assign(this.editRange,{final:e,finalHash:this.__getDayHash(e)})}},__updateViewModel(t,e){void 0!==this.minNav&&t<=this.minNav.year&&(t=this.minNav.year,e=this.maxNav.year&&(t=this.maxNav.year,e>this.maxNav.month&&(e=this.maxNav.month));const i=t+"/"+Object(c["e"])(e)+"/01";i!==this.viewModel.dateHash&&(this.monthDirection=this.viewModel.dateHash{this.startYear=t-t%m-(t<0?m:0),Object.assign(this.viewModel,{year:t,month:e,day:1,dateHash:i})})))},__emitValue(t,e,i){const n=null!==t&&1===t.length&&!1===this.multiple?t[0]:t;this.lastEmitValue=n;const{reason:r,details:o}=this.__getEmitParams(e,i);this.$emit("input",n,r,o)},__emitImmediately(t){const e=void 0!==this.daysModel[0]&&null!==this.daysModel[0].dateHash?{...this.daysModel[0]}:{...this.viewModel};this.$nextTick((()=>{e.year=this.viewModel.year,e.month=this.viewModel.month;const i="persian"!==this.calendar?new Date(e.year,e.month,0).getDate():Object(o["a"])(e.year,e.month);e.day=Math.min(Math.max(1,e.day),i);const n=this.__encodeEntry(e);this.lastEmitValue=n;const{details:r}=this.__getEmitParams("",e);this.$emit("input",n,t,r)}))},__getEmitParams(t,e){return void 0!==e.from?{reason:`${t}-range`,details:{...this.__getShortDate(e.target),from:this.__getShortDate(e.from),to:this.__getShortDate(e.to),changed:!0}}:{reason:`${t}-day`,details:{...this.__getShortDate(e),changed:!0}}},__encodeEntry(t,e,i){return void 0!==t.from?{from:this.encodeObjectFn(t.from,e,i),to:this.encodeObjectFn(t.to,e,i)}:this.encodeObjectFn(t,e,i)},__addToModel(t){let e;if(!0===this.multiple)if(void 0!==t.from){const i=this.__getDayHash(t.from),n=this.__getDayHash(t.to),r=this.daysModel.filter((t=>t.dateHashn)),o=this.rangeModel.filter((({from:t,to:e})=>e.dateHashn));e=r.concat(o).concat(t).map((t=>this.__encodeEntry(t)))}else{const i=this.normalizedModel.slice();i.push(this.__encodeEntry(t)),e=i}else e=this.__encodeEntry(t);this.__emitValue(e,"add",t)},__removeFromModel(t){if(!0===this.noUnset)return;let e=null;if(!0===this.multiple&&!0===Array.isArray(this.value)){const i=this.__encodeEntry(t);e=void 0!==t.from?this.value.filter((t=>void 0===t.from||t.from!==i.from&&t.to!==i.to)):this.value.filter((t=>t!==i)),0===e.length&&(e=null)}this.__emitValue(e,"remove",t)},__updateValue(t,e,i){const n=this.daysModel.concat(this.rangeModel).map((i=>this.__encodeEntry(i,t,e))).filter((t=>void 0!==t.from?null!==t.from.dateHash&&null!==t.to.dateHash:null!==t.dateHash));this.$emit("input",(!0===this.multiple?n:n[0])||null,i)}},render(t){const e=[t("div",{staticClass:"q-date__content col relative-position"},[t("transition",{props:{name:"q-transition--fade"}},[this[`__get${this.view}View`](t)])])],i=Object(d["c"])(this,"default");return void 0!==i&&e.push(t("div",{staticClass:"q-date__actions"},i)),void 0!==this.name&&!0!==this.disable&&this.__injectFormInput(e,"push"),t("div",{class:this.classes,attrs:this.attrs,on:{...this.qListeners}},[this.__getHeader(t),t("div",{staticClass:"q-date__main col column",attrs:{tabindex:-1},ref:"blurTarget"},e)])}})},5319:function(t,e,i){"use strict";var n=i("2ba4"),r=i("c65b"),o=i("e330"),a=i("d784"),s=i("d039"),l=i("825a"),c=i("1626"),u=i("5926"),h=i("50c4"),d=i("577e"),p=i("1d80"),f=i("8aa5"),g=i("dc4a"),m=i("0cb2"),v=i("14c3"),y=i("b622"),b=y("replace"),_=Math.max,x=Math.min,w=o([].concat),S=o([].push),C=o("".indexOf),k=o("".slice),M=function(t){return void 0===t?t:String(t)},T=function(){return"$0"==="a".replace(/./,"$0")}(),O=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),A=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$
")}));a("replace",(function(t,e,i){var o=O?"$":"$0";return[function(t,i){var n=p(this),o=void 0==t?void 0:g(t,b);return o?r(o,t,n,i):r(e,d(n),t,i)},function(t,r){var a=l(this),s=d(t);if("string"==typeof r&&-1===C(r,o)&&-1===C(r,"$<")){var p=i(e,a,s,r);if(p.done)return p.value}var g=c(r);g||(r=d(r));var y=a.global;if(y){var b=a.unicode;a.lastIndex=0}var T=[];while(1){var O=v(a,s);if(null===O)break;if(S(T,O),!y)break;var A=d(O[0]);""===A&&(a.lastIndex=f(s,h(a.lastIndex),b))}for(var I="",P=0,D=0;D=P&&(I+=k(s,P,L)+N,P=L+E.length)}return I+k(s,P)}]}),!A||!T||O)},5352:function(t,e,i){"use strict";i("e260");var n=i("23e7"),r=i("da84"),o=i("c65b"),a=i("e330"),s=i("83ab"),l=i("0d3b"),c=i("cb2d"),u=i("6964"),h=i("d44e"),d=i("9ed3"),p=i("69f3"),f=i("19aa"),g=i("1626"),m=i("1a2d"),v=i("0366"),y=i("f5df"),b=i("825a"),_=i("861d"),x=i("577e"),w=i("7c73"),S=i("5c6c"),C=i("9a1f"),k=i("35a1"),M=i("d6d6"),T=i("b622"),O=i("addb"),A=T("iterator"),I="URLSearchParams",P=I+"Iterator",D=p.set,E=p.getterFor(I),L=p.getterFor(P),j=Object.getOwnPropertyDescriptor,R=function(t){if(!s)return r[t];var e=j(r,t);return e&&e.value},B=R("fetch"),F=R("Request"),N=R("Headers"),z=F&&F.prototype,V=N&&N.prototype,q=r.RegExp,$=r.TypeError,H=r.decodeURIComponent,G=r.encodeURIComponent,W=a("".charAt),U=a([].join),Y=a([].push),X=a("".replace),K=a([].shift),Z=a([].splice),Q=a("".split),J=a("".slice),tt=/\+/g,et=Array(4),it=function(t){return et[t-1]||(et[t-1]=q("((?:%[\\da-f]{2}){"+t+"})","gi"))},nt=function(t){try{return H(t)}catch(e){return t}},rt=function(t){var e=X(t,tt," "),i=4;try{return H(e)}catch(n){while(i)e=X(e,it(i--),nt);return e}},ot=/[!'()~]|%20/g,at={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},st=function(t){return at[t]},lt=function(t){return X(G(t),ot,st)},ct=d((function(t,e){D(this,{type:P,iterator:C(E(t).entries),kind:e})}),"Iterator",(function(){var t=L(this),e=t.kind,i=t.iterator.next(),n=i.value;return i.done||(i.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),i}),!0),ut=function(t){this.entries=[],this.url=null,void 0!==t&&(_(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===W(t,0)?J(t,1):t:x(t)))};ut.prototype={type:I,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,n,r,a,s,l,c=k(t);if(c){e=C(t,c),i=e.next;while(!(n=o(i,e)).done){if(r=C(b(n.value)),a=r.next,(s=o(a,r)).done||(l=o(a,r)).done||!o(a,r).done)throw $("Expected sequence with length 2");Y(this.entries,{key:x(s.value),value:x(l.value)})}}else for(var u in t)m(t,u)&&Y(this.entries,{key:u,value:x(t[u])})},parseQuery:function(t){if(t){var e,i,n=Q(t,"&"),r=0;while(r0?arguments[0]:void 0;D(this,new ut(t))},dt=ht.prototype;if(u(dt,{append:function(t,e){M(arguments.length,2);var i=E(this);Y(i.entries,{key:x(t),value:x(e)}),i.updateURL()},delete:function(t){M(arguments.length,1);var e=E(this),i=e.entries,n=x(t),r=0;while(re.key?1:-1})),t.updateURL()},forEach:function(t){var e,i=E(this).entries,n=v(t,arguments.length>1?arguments[1]:void 0),r=0;while(r1?gt(arguments[1]):{})}}),g(F)){var mt=function(t){return f(this,z),new F(t,arguments.length>1?gt(arguments[1]):{})};z.constructor=mt,mt.prototype=z,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:mt})}}t.exports={URLSearchParams:ht,getState:E}},5377:function(t,e,i){var n=i("da84"),r=i("83ab"),o=i("edd0"),a=i("ad6d"),s=i("d039"),l=n.RegExp,c=l.prototype,u=r&&s((function(){var t=!0;try{l(".","d")}catch(u){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",r=function(t,n){Object.defineProperty(e,t,{get:function(){return i+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(o.hasIndices="d"),o)r(a,o[a]);var s=Object.getOwnPropertyDescriptor(c,"flags").get.call(e);return s!==n||i!==n}));u&&o(c,"flags",{configurable:!0,get:a})},5692:function(t,e,i){var n=i("c430"),r=i("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,i){var n=i("d066"),r=i("e330"),o=i("241c"),a=i("7418"),s=i("825a"),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),i=a.f;return i?l(e,i(t)):e}},"577e":function(t,e,i){var n=i("f5df"),r=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},"577e4":function(t,e){function i(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}i.prototype.set=function(t,e,i,n){const r=t*this.size+e;this.data[r]=i,n&&(this.reservedBit[r]=!0)},i.prototype.get=function(t,e){return this.data[t*this.size+e]},i.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},i.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=i},"57b0":function(t,e,i){"use strict";i("caad");var n=i("87e8");const r=["top","right","bottom","left"];e["a"]={mixins:[n["a"]],props:{type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:t=>r.includes(t)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]},computed:{formClass(){return"q-fab--form-"+(!0===this.square?"square":"rounded")},stacked(){return!1===this.externalLabel&&["top","bottom"].includes(this.labelPosition)},labelProps(){if(!0===this.externalLabel){const t=null===this.hideLabel?!1===this.showing:this.hideLabel;return{action:"push",data:{staticClass:`q-fab__label q-tooltip--style q-fab__label--external q-fab__label--external-${this.labelPosition}`+(!0===t?" q-fab__label--external-hidden":""),style:this.labelStyle,class:this.labelClass}}}return{action:["left","top"].includes(this.labelPosition)?"unshift":"push",data:{staticClass:`q-fab__label q-fab__label--internal q-fab__label--internal-${this.labelPosition}`+(!0===this.hideLabel?" q-fab__label--internal-hidden":""),style:this.labelStyle,class:this.labelClass}}}}}},"582c":function(t,e,i){"use strict";i("ddb0"),i("caad");var n=i("0967"),r=i("d882");const o=()=>!0;function a(t){return"string"===typeof t&&""!==t&&"/"!==t&&"#/"!==t}function s(t){return!0===t.startsWith("#")&&(t=t.substr(1)),!1===t.startsWith("/")&&(t="/"+t),!0===t.endsWith("/")&&(t=t.substr(0,t.length-1)),"#"+t}function l(t){if(!1===t.backButtonExit)return()=>!1;if("*"===t.backButtonExit)return o;const e=["#/"];return!0===Array.isArray(t.backButtonExit)&&e.push(...t.backButtonExit.filter(a).map(s)),()=>e.includes(window.location.hash)}e["a"]={__history:[],add:r["g"],remove:r["g"],install(t){if(!0===n["e"])return;const{cordova:e,capacitor:i}=n["a"].is;if(!0!==e&&!0!==i)return;const r=t[!0===e?"cordova":"capacitor"];if(void 0!==r&&!1===r.backButton)return;if(!0===i&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=t=>{void 0===t.condition&&(t.condition=o),this.__history.push(t)},this.remove=t=>{const e=this.__history.indexOf(t);e>=0&&this.__history.splice(e,1)};const a=l(Object.assign({backButtonExit:!0},r)),s=()=>{if(this.__history.length){const t=this.__history[this.__history.length-1];!0===t.condition()&&(this.__history.pop(),t.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===e?document.addEventListener("deviceready",(()=>{document.addEventListener("backbutton",s,!1)})):window.Capacitor.Plugins.App.addListener("backButton",s)}}},"58b4":function(t,e,i){"use strict";t.exports=function(t){for(var e=[],i=t.length,n=0;n=55296&&r<=56319&&i>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(r=1024*(r-55296)+o-56320+65536,n+=1)}r<128?e.push(r):r<2048?(e.push(r>>6|192),e.push(63&r|128)):r<55296||r>=57344&&r<65536?(e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)):r>=65536&&r<=1114111?(e.push(r>>18|240),e.push(r>>12&63|128),e.push(r>>6&63|128),e.push(63&r|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},"58e5":function(t,e,i){"use strict";var n=i("582c");e["a"]={methods:{__addHistory(){this.__historyEntry={condition:()=>!0===this.hideOnRouteChange,handler:this.hide},n["a"].add(this.__historyEntry)},__removeHistory(){void 0!==this.__historyEntry&&(n["a"].remove(this.__historyEntry),this.__historyEntry=void 0)}},beforeDestroy(){!0===this.showing&&this.__removeHistory()}}},5926:function(t,e,i){var n=i("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},"59ed":function(t,e,i){var n=i("1626"),r=i("0d51"),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(r(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5cc6":function(t,e,i){var n=i("74e8");n("Uint8",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},"5e77":function(t,e,i){var n=i("83ab"),r=i("1a2d"),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},"5f02":function(t,e,i){"use strict";t.exports=function(t){return"object"===typeof t&&!0===t.isAxiosError}},"5fb2":function(t,e,i){"use strict";var n=i("e330"),r=2147483647,o=36,a=1,s=26,l=38,c=700,u=72,h=128,d="-",p=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,g="Overflow: input needs wider integers to process",m=o-a,v=RangeError,y=n(f.exec),b=Math.floor,_=String.fromCharCode,x=n("".charCodeAt),w=n([].join),S=n([].push),C=n("".replace),k=n("".split),M=n("".toLowerCase),T=function(t){var e=[],i=0,n=t.length;while(i=55296&&r<=56319&&i>1,t+=b(t/e);while(t>m*s>>1)t=b(t/m),n+=o;return b(n+(m+1)*t/(t+l))},I=function(t){var e=[];t=T(t);var i,n,l=t.length,c=h,p=0,f=u;for(i=0;i=c&&nb((r-p)/C))throw v(g);for(p+=(x-c)*C,c=x,i=0;ir)throw v(g);if(n==c){var k=p,M=o;while(1){var I=M<=f?a:M>=f+s?s:M-f;if(kvoid 0!==t[e]));if(i=l.length,i!==Object.keys(e).filter((t=>void 0!==e[t])).length)return!1;for(s=i;0!==s--;){const i=l[s];if(!0!==a(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function s(t){return null!==t&&"object"===typeof t&&!0!==Array.isArray(t)}function l(t){return"[object Date]"===Object.prototype.toString.call(t)}function c(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function u(t){return"number"===typeof t&&isFinite(t)}},"60da":function(t,e,i){"use strict";var n=i("83ab"),r=i("e330"),o=i("c65b"),a=i("d039"),s=i("df75"),l=i("7418"),c=i("d1e7"),u=i("7b0b"),h=i("44ad"),d=Object.assign,p=Object.defineProperty,f=r([].concat);t.exports=!d||a((function(){if(n&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!=d({},t)[i]||s(d({},e)).join("")!=r}))?function(t,e){var i=u(t),r=arguments.length,a=1,d=l.f,p=c.f;while(r>a){var g,m=h(arguments[a++]),v=d?f(s(m),d(m)):s(m),y=v.length,b=0;while(y>b)g=v[b++],n&&!o(p,m,g)||(i[g]=m[g])}return i}:d},"621a":function(t,e,i){"use strict";var n=i("da84"),r=i("e330"),o=i("83ab"),a=i("a981"),s=i("5e77"),l=i("9112"),c=i("6964"),u=i("d039"),h=i("19aa"),d=i("5926"),p=i("50c4"),f=i("0b25"),g=i("77a7"),m=i("e163"),v=i("d2bb"),y=i("241c").f,b=i("9bf2").f,_=i("81d5"),x=i("4dae"),w=i("d44e"),S=i("69f3"),C=s.PROPER,k=s.CONFIGURABLE,M=S.get,T=S.set,O="ArrayBuffer",A="DataView",I="prototype",P="Wrong length",D="Wrong index",E=n[O],L=E,j=L&&L[I],R=n[A],B=R&&R[I],F=Object.prototype,N=n.Array,z=n.RangeError,V=r(_),q=r([].reverse),$=g.pack,H=g.unpack,G=function(t){return[255&t]},W=function(t){return[255&t,t>>8&255]},U=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Y=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},X=function(t){return $(t,23,4)},K=function(t){return $(t,52,8)},Z=function(t,e){b(t[I],e,{get:function(){return M(this)[e]}})},Q=function(t,e,i,n){var r=f(i),o=M(t);if(r+e>o.byteLength)throw z(D);var a=M(o.buffer).bytes,s=r+o.byteOffset,l=x(a,s,s+e);return n?l:q(l)},J=function(t,e,i,n,r,o){var a=f(i),s=M(t);if(a+e>s.byteLength)throw z(D);for(var l=M(s.buffer).bytes,c=a+s.byteOffset,u=n(+r),h=0;hnt;)(et=it[nt++])in L||l(L,et,E[et]);j.constructor=L}v&&m(B)!==F&&v(B,F);var rt=new R(new L(2)),ot=r(B.setInt8);rt.setInt8(0,2147483648),rt.setInt8(1,2147483649),!rt.getInt8(0)&&rt.getInt8(1)||c(B,{setInt8:function(t,e){ot(this,t,e<<24>>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else L=function(t){h(this,j);var e=f(t);T(this,{bytes:V(N(e),0),byteLength:e}),o||(this.byteLength=e)},j=L[I],R=function(t,e,i){h(this,B),h(t,j);var n=M(t).byteLength,r=d(e);if(r<0||r>n)throw z("Wrong offset");if(i=void 0===i?n-r:p(i),r+i>n)throw z(P);T(this,{buffer:t,byteLength:i,byteOffset:r}),o||(this.buffer=t,this.byteLength=i,this.byteOffset=r)},B=R[I],o&&(Z(L,"byteLength"),Z(R,"buffer"),Z(R,"byteLength"),Z(R,"byteOffset")),c(B,{getInt8:function(t){return Q(this,1,t)[0]<<24>>24},getUint8:function(t){return Q(this,1,t)[0]},getInt16:function(t){var e=Q(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Q(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Y(Q(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Y(Q(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return H(Q(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return H(Q(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){J(this,1,t,G,e)},setUint8:function(t,e){J(this,1,t,G,e)},setInt16:function(t,e){J(this,2,t,W,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){J(this,2,t,W,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){J(this,4,t,U,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){J(this,4,t,U,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){J(this,4,t,X,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){J(this,8,t,K,e,arguments.length>2?arguments[2]:void 0)}});w(L,O),w(R,A),t.exports={ArrayBuffer:L,DataView:R}},6374:function(t,e,i){var n=i("da84"),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},6547:function(t,e,i){var n=i("e330"),r=i("5926"),o=i("577e"),a=i("1d80"),s=n("".charAt),l=n("".charCodeAt),c=n("".slice),u=function(t){return function(e,i){var n,u,h=o(a(e)),d=r(i),p=h.length;return d<0||d>=p?t?"":void 0:(n=l(h,d),n<55296||n>56319||d+1===p||(u=l(h,d+1))<56320||u>57343?t?s(h,d):n:t?c(h,d,d+2):u-56320+(n-55296<<10)+65536)}};t.exports={codeAt:u(!1),charAt:u(!0)}},"65c6":function(t,e,i){"use strict";var n=i("2b0e"),r=i("87e8"),o=i("dde5");e["a"]=n["a"].extend({name:"QToolbar",mixins:[r["a"]],props:{inset:Boolean},render(t){return t("div",{staticClass:"q-toolbar row no-wrap items-center",class:this.inset?"q-toolbar--inset":null,on:{...this.qListeners}},Object(o["c"])(this,"default"))}})},"65f0":function(t,e,i){var n=i("0b42");t.exports=function(t,e){return new(n(t))(0===e?0:e)}},6642:function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"b",(function(){return r}));const n={xs:18,sm:24,md:32,lg:38,xl:46};function r(t){return{props:{size:String},computed:{sizeStyle(){if(void 0!==this.size)return{fontSize:this.size in t?`${t[this.size]}px`:this.size}}}}}e["a"]=r(n)},"66e5":function(t,e,i){"use strict";var n=i("2b0e"),r=i("b7fa"),o=i("e2fa"),a=i("8716"),s=i("87e8"),l=i("dde5"),c=i("d882"),u=i("d728");e["a"]=n["a"].extend({name:"QItem",mixins:[r["a"],a["a"],o["a"],s["a"]],props:{active:Boolean,clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},computed:{isActionable(){return!0===this.clickable||!0===this.hasLink||"label"===this.tag},isClickable(){return!0!==this.disable&&!0===this.isActionable},classes(){return{"q-item--clickable q-link cursor-pointer":this.isClickable,"q-focusable q-hoverable":!0===this.isClickable&&!1===this.manualFocus,"q-manual-focusable":!0===this.isClickable&&!0===this.manualFocus,"q-manual-focusable--focused":!0===this.isClickable&&!0===this.focused,"q-item--dense":this.dense,"q-item--dark":this.isDark,"q-item--active":this.active,[this.activeClass]:!0===this.active&&!0!==this.hasRouterLink&&void 0!==this.activeClass,disabled:this.disable}},style(){if(void 0!==this.insetLevel){const t=!0===this.$q.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*this.insetLevel+"px"}}},onEvents(){return{...this.qListeners,click:this.__onClick,keyup:this.__onKeyup}}},methods:{__getContent(t){const e=Object(l["d"])(this,"default",[]);return!0===this.isClickable&&e.unshift(t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"})),e},__onClick(t){!0===this.isClickable&&(void 0!==this.$refs.blurTarget&&(!0!==t.qKeyEvent&&document.activeElement===this.$el?this.$refs.blurTarget.focus():document.activeElement===this.$refs.blurTarget&&this.$el.focus()),this.$emit("click",t))},__onKeyup(t){if(!0===this.isClickable&&!0===Object(u["a"])(t,13)){Object(c["l"])(t),t.qKeyEvent=!0;const e=new MouseEvent("click",t);e.qKeyEvent=!0,this.$el.dispatchEvent(e)}this.$emit("keyup",t)}},render(t){const e={staticClass:"q-item q-item-type row no-wrap",class:this.classes,style:this.style,attrs:{},[!0===this.hasRouterLink?"nativeOn":"on"]:this.onEvents};return!0===this.isClickable?e.attrs.tabindex=this.tabindex||"0":!0===this.isActionable&&(e.attrs["aria-disabled"]="true"),!0===this.hasLink&&(e.props=this.linkProps.props,Object.assign(e.attrs,this.linkProps.attrs)),t(this.linkTag,e,this.__getContent(t))}})},"67dd":function(t,e){t.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},"685b":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return l}));var n=i("d882"),r=i("5ff7");function o(t){return!0===Object(r["a"])(t)?"__q_date|"+t.toUTCString():!0===Object(r["e"])(t)?"__q_expr|"+t.source:"number"===typeof t?"__q_numb|"+t:"boolean"===typeof t?"__q_bool|"+(t?"1":"0"):"string"===typeof t?"__q_strn|"+t:"function"===typeof t?"__q_strn|"+t.toString():t===Object(t)?"__q_objt|"+JSON.stringify(t):t}function a(t){const e=t.length;if(e<9)return t;const i=t.substr(0,8),n=t.substring(9);switch(i){case"__q_date":return new Date(n);case"__q_expr":return new RegExp(n);case"__q_numb":return Number(n);case"__q_bool":return Boolean("1"===n);case"__q_strn":return""+n;case"__q_objt":return JSON.parse(n);default:return t}}function s(){const t=()=>null;return{has:()=>!1,getLength:()=>0,getItem:t,getIndex:t,getKey:t,getAll:()=>{},getAllKeys:()=>[],set:n["g"],remove:n["g"],clear:n["g"],isEmpty:()=>!0}}function l(t){const e=window[t+"Storage"],i=t=>{const i=e.getItem(t);return i?a(i):null};return{has:t=>null!==e.getItem(t),getLength:()=>e.length,getItem:i,getIndex:t=>tt{let t;const n={},r=e.length;for(let o=0;o{const t=[],i=e.length;for(let n=0;n{e.setItem(t,o(i))},remove:t=>{e.removeItem(t)},clear:()=>{e.clear()},isEmpty:()=>0===e.length}}},"68ee":function(t,e,i){var n=i("e330"),r=i("d039"),o=i("1626"),a=i("f5df"),s=i("d066"),l=i("8925"),c=function(){},u=[],h=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=n(d.exec),f=!d.exec(c),g=function(t){if(!o(t))return!1;try{return h(c,u,t),!0}catch(e){return!1}},m=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(d,l(t))}catch(e){return!0}};m.sham=!0,t.exports=!h||r((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?m:g},6900:function(t,e,i){"use strict";e["a"]={props:{ratio:[String,Number]},computed:{ratioStyle(){const t=this.ratio||this.naturalRatio;if(void 0!==t)return{paddingBottom:100/t+"%"}}}}},6964:function(t,e,i){var n=i("cb2d");t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},"699e":function(t,e){const i=new Uint8Array(512),n=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)i[e]=t,n[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)i[e]=i[e-255]})(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return n[t]},e.exp=function(t){return i[t]},e.mul=function(t,e){return 0===t||0===e?0:i[n[t]+n[e]]}},"69f3":function(t,e,i){var n,r,o,a=i("7f9a"),s=i("da84"),l=i("e330"),c=i("861d"),u=i("9112"),h=i("1a2d"),d=i("c6cd"),p=i("f772"),f=i("d012"),g="Object already initialized",m=s.TypeError,v=s.WeakMap,y=function(t){return o(t)?r(t):n(t,{})},b=function(t){return function(e){var i;if(!c(e)||(i=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return i}};if(a||d.state){var _=d.state||(d.state=new v),x=l(_.get),w=l(_.has),S=l(_.set);n=function(t,e){if(w(_,t))throw new m(g);return e.facade=t,S(_,t,e),e},r=function(t){return x(_,t)||{}},o=function(t){return w(_,t)}}else{var C=p("state");f[C]=!0,n=function(t,e){if(h(t,C))throw new m(g);return e.facade=t,u(t,C,e),e},r=function(t){return h(t,C)?t[C]:{}},o=function(t){return h(t,C)}}t.exports={set:n,get:r,has:o,enforce:y,getterFor:b}},"6a67":function(t,e,i){"use strict";var n=i("2b0e"),r=i("9c40"),o=i("e7a9"),a=i("87e8"),s=i("f89c"),l=i("3d69"),c=i("dde5");e["a"]=n["a"].extend({name:"QBtnToggle",mixins:[a["a"],l["a"],s["b"]],props:{value:{required:!0},options:{type:Array,required:!0,validator:t=>t.every((t=>("label"in t||"icon"in t||"slot"in t)&&"value"in t))},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean},computed:{hasActiveValue(){return void 0!==this.options.find((t=>t.value===this.value))},formAttrs(){return{type:"hidden",name:this.name,value:this.value}},btnOptions(){const t=(t,e)=>void 0===t[e]?this[e]:t[e];return this.options.map(((e,i)=>({slot:e.slot,options:{key:i,class:e.class,style:e.style,on:{...this.qListeners,click:t=>this.__set(e.value,e,t)},attrs:{"aria-pressed":e.value===this.value?"true":"false",...e.attrs},props:{...e,slot:void 0,class:void 0,style:void 0,value:void 0,attrs:void 0,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,unelevated:this.unelevated,dense:this.dense,disable:!0===this.disable||!0===e.disable,color:e.value===this.value?t(e,"toggleColor"):t(e,"color"),textColor:e.value===this.value?t(e,"toggleTextColor"):t(e,"textColor"),noCaps:!0===t(e,"noCaps"),noWrap:!0===t(e,"noWrap"),size:t(e,"size"),padding:t(e,"padding"),ripple:t(e,"ripple"),stack:!0===t(e,"stack"),stretch:!0===t(e,"stretch")}}})))}},methods:{__set(t,e,i){!0!==this.readonly&&(this.value===t?!0===this.clearable&&(this.$emit("input",null,null),this.$emit("clear")):this.$emit("input",t,e),this.$emit("click",i))}},render(t){const e=this.btnOptions.map((e=>t(r["a"],{...e.options},void 0!==e.slot?Object(c["c"])(this,e.slot):void 0)));return void 0!==this.name&&!0!==this.disable&&!0===this.hasActiveValue&&this.__injectFormInput(e,"push"),t(o["a"],{staticClass:"q-btn-toggle",props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,stretch:this.stretch,unelevated:this.unelevated,glossy:this.glossy,spread:this.spread}},Object(c["a"])(e,this,"default"))}})},"6ac0":function(t,e,i){"use strict";var n=i("2b0e"),r=i("6900"),o=i("87e8");e["a"]=n["a"].extend({name:"QVideo",mixins:[r["a"],o["a"]],props:{src:{type:String,required:!0},title:String,fetchpriority:{type:String,default:"auto"},loading:{type:String,default:"eager"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin"}},computed:{iframeData(){return{attrs:{src:this.src,frameborder:"0",title:this.title,allowfullscreen:!0,fetchpriority:this.fetchpriority,loading:this.loading,referrerpolicy:this.referrerpolicy}}},classes(){return"q-video"+(void 0!==this.ratio?" q-video--responsive":"")}},render(t){return t("div",{class:this.classes,style:this.ratioStyle,on:{...this.qListeners}},[t("iframe",this.iframeData)])}})},"6ac5":function(t,e,i){"use strict";var n=i("2b0e"),r=i("87e8"),o=i("dde5");e["a"]=n["a"].extend({name:"QToolbarTitle",mixins:[r["a"]],props:{shrink:Boolean},computed:{classes(){return"q-toolbar__title ellipsis"+(!0===this.shrink?" col-shrink":"")}},render(t){return t("div",{class:this.classes,on:{...this.qListeners}},Object(o["c"])(this,"default"))}})},"6d8b":function(t,e,i){"use strict";i.d(e,"p",(function(){return m})),i.d(e,"G",(function(){return v})),i.d(e,"d",(function(){return y})),i.d(e,"I",(function(){return b})),i.d(e,"J",(function(){return _})),i.d(e,"m",(function(){return x})),i.d(e,"i",(function(){return w})),i.d(e,"r",(function(){return S})),i.d(e,"s",(function(){return C})),i.d(e,"K",(function(){return k})),i.d(e,"u",(function(){return M})),i.d(e,"k",(function(){return T})),i.d(e,"H",(function(){return O})),i.d(e,"N",(function(){return A})),i.d(e,"n",(function(){return I})),i.d(e,"o",(function(){return P})),i.d(e,"F",(function(){return D})),i.d(e,"c",(function(){return L})),i.d(e,"h",(function(){return j})),i.d(e,"t",(function(){return R})),i.d(e,"w",(function(){return B})),i.d(e,"C",(function(){return F})),i.d(e,"D",(function(){return N})),i.d(e,"z",(function(){return z})),i.d(e,"A",(function(){return V})),i.d(e,"E",(function(){return $})),i.d(e,"v",(function(){return H})),i.d(e,"x",(function(){return G})),i.d(e,"y",(function(){return W})),i.d(e,"B",(function(){return U})),i.d(e,"l",(function(){return Y})),i.d(e,"O",(function(){return X})),i.d(e,"P",(function(){return K})),i.d(e,"Q",(function(){return Z})),i.d(e,"S",(function(){return Q})),i.d(e,"M",(function(){return J})),i.d(e,"b",(function(){return tt})),i.d(e,"T",(function(){return et})),i.d(e,"R",(function(){return nt})),i.d(e,"f",(function(){return at})),i.d(e,"e",(function(){return st})),i.d(e,"g",(function(){return lt})),i.d(e,"j",(function(){return ct})),i.d(e,"q",(function(){return ut})),i.d(e,"L",(function(){return ht})),i.d(e,"a",(function(){return dt}));var n=i("726e"),r=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,h=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e{n=!1}),e),i=t.apply(this,arguments)),i}},l=i("81e7");function c(t,e,i,o){!0===i.modifiers.stop&&Object(r["k"])(t);const a=i.modifiers.color;let s=i.modifiers.center;s=!0===s||!0===o;const l=document.createElement("span"),c=document.createElement("span"),u=Object(r["h"])(t),{left:h,top:d,width:p,height:f}=e.getBoundingClientRect(),g=Math.sqrt(p*p+f*f),m=g/2,v=(p-g)/2+"px",y=s?v:u.left-h-m+"px",b=(f-g)/2+"px",_=s?b:u.top-d-m+"px";c.className="q-ripple__inner",Object(n["b"])(c,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${y},${_},0) scale3d(.2,.2,1)`,opacity:0}),l.className="q-ripple"+(a?" text-"+a:""),l.setAttribute("dir","ltr"),l.appendChild(c),e.appendChild(l);const x=()=>{l.remove(),clearTimeout(w)};i.abort.push(x);let w=setTimeout((()=>{c.classList.add("q-ripple__inner--enter"),c.style.transform=`translate3d(${v},${b},0) scale3d(1,1,1)`,c.style.opacity=.2,w=setTimeout((()=>{c.classList.remove("q-ripple__inner--enter"),c.classList.add("q-ripple__inner--leave"),c.style.opacity=0,w=setTimeout((()=>{l.remove(),i.abort.splice(i.abort.indexOf(x),1)}),275)}),250)}),50)}function u(t,{modifiers:e,value:i,arg:n}){const r=Object.assign({},l["a"].config.ripple,e,i);t.modifiers={early:!0===r.early,stop:!0===r.stop,center:!0===r.center,color:r.color||n,keyCodes:[].concat(r.keyCodes||13)}}function h(t){const e=t.__qripple;void 0!==e&&(e.abort.forEach((t=>{t()})),Object(r["b"])(e,"main"),delete t._qripple)}e["a"]={name:"ripple",inserted(t,e){void 0!==t.__qripple&&(h(t),t.__qripple_destroyed=!0);const i={enabled:!1!==e.value,modifiers:{},abort:[],start(e){!0===i.enabled&&!0!==e.qSkipRipple&&(!0!==a["a"].is.ie||e.clientX>=0)&&e.type===(!0===i.modifiers.early?"pointerdown":"click")&&c(e,t,i,!0===e.qKeyEvent)},keystart:s((e=>{!0===i.enabled&&!0!==e.qSkipRipple&&!0===Object(o["a"])(e,i.modifiers.keyCodes)&&e.type==="key"+(!0===i.modifiers.early?"down":"up")&&c(e,t,i,!0)}),300)};u(i,e),t.__qripple=i,Object(r["a"])(i,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},update(t,e){const i=t.__qripple;void 0!==i&&e.oldValue!==e.value&&(i.enabled=!1!==e.value,!0===i.enabled&&Object(e.value)===e.value&&u(i,e))},unbind(t){void 0===t.__qripple_destroyed?h(t):delete t.__qripple_destroyed}}},7156:function(t,e,i){var n=i("1626"),r=i("861d"),o=i("d2bb");t.exports=function(t,e,i){var a,s;return o&&n(a=e.constructor)&&a!==i&&r(s=a.prototype)&&s!==i.prototype&&o(t,s),t}},"726e":function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"d",(function(){return h})),i.d(e,"e",(function(){return d}));var n=12,r="sans-serif",o=n+"px "+r,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function c(t){var e={};if("undefined"===typeof JSON)return e;for(var i=0;i=0)c=l*i.length;else for(var d=0;du.includes(t)},to:[String,Object],replace:Boolean},inject:{__qFab:{default(){return{showing:!0,__onChildClick:s["g"]}}}},computed:{classes(){const t=c[this.anchor];return this.formClass+(void 0!==t?` ${t}`:"")},onEvents(){return{...this.qListeners,click:this.click}},isDisabled(){return!0!==this.__qFab.showing||!0===this.disable}},methods:{click(t){this.__qFab.__onChildClick(t),this.$emit("click",t)}},render(t){const e=[];return void 0!==this.$scopedSlots.icon?e.push(this.$scopedSlots.icon()):""!==this.icon&&e.push(t(o["a"],{props:{name:this.icon}})),""===this.label&&void 0===this.$scopedSlots.label||e[this.labelProps.action](t("div",this.labelProps.data,void 0!==this.$scopedSlots.label?this.$scopedSlots.label():[this.label])),t(r["a"],{class:this.classes,props:{...this.$props,noWrap:!0,stack:this.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:this.isDisabled},on:this.onEvents},Object(l["a"])(e,this,"default"))}})},"735e":function(t,e,i){"use strict";var n=i("ebb5"),r=i("81d5"),o=i("f495"),a=i("f5df"),s=i("c65b"),l=i("e330"),c=i("d039"),u=n.aTypedArray,h=n.exportTypedArrayMethod,d=l("".slice),p=c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));h("fill",(function(t){var e=arguments.length;u(this);var i="Big"===d(a(this),0,3)?o(t):+t;return s(r,this,i,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),p)},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7460:function(t,e,i){"use strict";var n=i("2b0e"),r=i("0016"),o=i("3d69"),a=i("87e8"),s=i("d882"),l=i("dde5"),c=i("d728");let u=0;e["a"]=n["a"].extend({name:"QTab",mixins:[o["a"],a["a"]],inject:{tabs:{default(){console.error("QTab/QRouteTab components need to be child of QTabs")}},__activateTab:{},__recalculateScroll:{},__onKbdNavigate:{}},props:{icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>"t_"+u++},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String},computed:{isActive(){return this.tabs.current===this.name},classes(){return{...!0===this.isActive?{"q-tab--active":!0,[this.tabs.activeClass]:this.tabs.activeClass,[`text-${this.tabs.activeColor}`]:this.tabs.activeColor,[`bg-${this.tabs.activeBgColor}`]:this.tabs.activeBgColor}:{"q-tab--inactive":!0},"q-tab--full":this.icon&&this.label&&!this.tabs.inlineLabel,"q-tab--no-caps":!0===this.noCaps||!0===this.tabs.noCaps,"q-focusable q-hoverable cursor-pointer":!this.disable,disabled:this.disable}},innerClass(){return(!0===this.tabs.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==this.contentClass?` ${this.contentClass}`:"")},computedTabIndex(){return!0===this.disable||!0===this.tabs.hasFocus?-1:this.tabindex||0},computedRipple(){return!1!==this.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===this.ripple?{}:this.ripple)},onEvents(){return{input:s["k"],...this.qListeners,click:this.__activate,keydown:this.__onKeydown}},attrs(){const t={tabindex:this.computedTabIndex,role:"tab","aria-selected":!0===this.isActive?"true":"false"};return!0===this.disable&&(t["aria-disabled"]="true"),t}},methods:{__activate(t,e){!0!==e&&void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus({preventScroll:!0}),!0!==this.disable&&(void 0!==this.qListeners.click&&this.$emit("click",t),this.__activateTab(this.name))},__onKeydown(t){Object(c["c"])(t)||(-1!==[13,32].indexOf(t.keyCode)?(this.__activate(t,!0),Object(s["i"])(t)):t.keyCode>=35&&t.keyCode<=40&&!0===this.__onKbdNavigate(t.keyCode,this.$el)&&Object(s["l"])(t))},__getContent(t){const e=this.tabs.narrowIndicator,i=[],n=t("div",{staticClass:"q-tab__indicator",class:this.tabs.indicatorClass});void 0!==this.icon&&i.push(t(r["a"],{staticClass:"q-tab__icon",props:{name:this.icon}})),void 0!==this.label&&i.push(t("div",{staticClass:"q-tab__label"},[this.label])),!1!==this.alert&&i.push(void 0!==this.alertIcon?t(r["a"],{staticClass:"q-tab__alert-icon",props:{color:!0!==this.alert?this.alert:void 0,name:this.alertIcon}}):t("div",{staticClass:"q-tab__alert",class:!0!==this.alert?`text-${this.alert}`:null})),!0===e&&i.push(n);const o=[t("div",{staticClass:"q-focus-helper",attrs:{tabindex:-1},ref:"blurTarget"}),t("div",{staticClass:"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable",class:this.innerClass},Object(l["a"])(i,this,"default"))];return!1===e&&o.push(n),o},__renderTab(t,e){const i={staticClass:"q-tab relative-position self-stretch flex flex-center text-center no-outline",class:this.classes,attrs:this.attrs,directives:!1===this.ripple||!0===this.disable?null:[{name:"ripple",value:this.computedRipple}]};return!0===this.hasRouterLink?t(e,{...i,nativeOn:this.onEvents,props:this.routerTabLinkProps,scopedSlots:{default:({href:e,isActive:i,isExactActive:n})=>t("a",{class:{[this.activeClass]:i,[this.exactActiveClass]:n},attrs:{...this.linkProps.attrs,href:e}},this.__getContent(t))}}):(!0===this.hasLink&&(Object.assign(i.attrs,this.linkProps.attrs),i.props=this.linkProps.props),i.on=this.onEvents,t(e,i,this.__getContent(t)))}},mounted(){this.__recalculateScroll()},beforeDestroy(){this.__recalculateScroll()},render(t){return this.__renderTab(t,"div")}})},"74e8":function(t,e,i){"use strict";var n=i("23e7"),r=i("da84"),o=i("c65b"),a=i("83ab"),s=i("8aa7"),l=i("ebb5"),c=i("621a"),u=i("19aa"),h=i("5c6c"),d=i("9112"),p=i("eac5"),f=i("50c4"),g=i("0b25"),m=i("182d"),v=i("a04b"),y=i("1a2d"),b=i("f5df"),_=i("861d"),x=i("d9b5"),w=i("7c73"),S=i("3a9b"),C=i("d2bb"),k=i("241c").f,M=i("a078"),T=i("b727").forEach,O=i("2626"),A=i("9bf2"),I=i("06cf"),P=i("69f3"),D=i("7156"),E=P.get,L=P.set,j=P.enforce,R=A.f,B=I.f,F=Math.round,N=r.RangeError,z=c.ArrayBuffer,V=z.prototype,q=c.DataView,$=l.NATIVE_ARRAY_BUFFER_VIEWS,H=l.TYPED_ARRAY_TAG,G=l.TypedArray,W=l.TypedArrayPrototype,U=l.aTypedArrayConstructor,Y=l.isTypedArray,X="BYTES_PER_ELEMENT",K="Wrong length",Z=function(t,e){U(t);var i=0,n=e.length,r=new t(n);while(n>i)r[i]=e[i++];return r},Q=function(t,e){R(t,e,{get:function(){return E(this)[e]}})},J=function(t){var e;return S(V,t)||"ArrayBuffer"==(e=b(t))||"SharedArrayBuffer"==e},tt=function(t,e){return Y(t)&&!x(e)&&e in t&&p(+e)&&e>=0},et=function(t,e){return e=v(e),tt(t,e)?h(2,t[e]):B(t,e)},it=function(t,e,i){return e=v(e),!(tt(t,e)&&_(i)&&y(i,"value"))||y(i,"get")||y(i,"set")||i.configurable||y(i,"writable")&&!i.writable||y(i,"enumerable")&&!i.enumerable?R(t,e,i):(t[e]=i.value,t)};a?($||(I.f=et,A.f=it,Q(W,"buffer"),Q(W,"byteOffset"),Q(W,"byteLength"),Q(W,"length")),n({target:"Object",stat:!0,forced:!$},{getOwnPropertyDescriptor:et,defineProperty:it}),t.exports=function(t,e,i){var a=t.match(/\d+$/)[0]/8,l=t+(i?"Clamped":"")+"Array",c="get"+t,h="set"+t,p=r[l],v=p,y=v&&v.prototype,b={},x=function(t,e){var i=E(t);return i.view[c](e*a+i.byteOffset,!0)},S=function(t,e,n){var r=E(t);i&&(n=(n=F(n))<0?0:n>255?255:255&n),r.view[h](e*a+r.byteOffset,n,!0)},A=function(t,e){R(t,e,{get:function(){return x(this,e)},set:function(t){return S(this,e,t)},enumerable:!0})};$?s&&(v=e((function(t,e,i,n){return u(t,y),D(function(){return _(e)?J(e)?void 0!==n?new p(e,m(i,a),n):void 0!==i?new p(e,m(i,a)):new p(e):Y(e)?Z(v,e):o(M,v,e):new p(g(e))}(),t,v)})),C&&C(v,G),T(k(p),(function(t){t in v||d(v,t,p[t])})),v.prototype=y):(v=e((function(t,e,i,n){u(t,y);var r,s,l,c=0,h=0;if(_(e)){if(!J(e))return Y(e)?Z(v,e):o(M,v,e);r=e,h=m(i,a);var d=e.byteLength;if(void 0===n){if(d%a)throw N(K);if(s=d-h,s<0)throw N(K)}else if(s=f(n)*a,s+h>d)throw N(K);l=s/a}else l=g(e),s=l*a,r=new z(s);L(t,{buffer:r,byteOffset:h,byteLength:s,length:l,view:new q(r)});while(c{this.transitionState=t}))}},computed:{transition(){return"q-transition--"+(!0===this.transitionState?this.transitionHide:this.transitionShow)}}}},"75c3":function(t,e,i){"use strict";var n=i("0967"),r=i("3627"),o=i("d882"),a=i("2248");function s(t,e,i){const n=Object(o["h"])(t);let r,a=n.left-e.event.x,s=n.top-e.event.y,l=Math.abs(a),c=Math.abs(s);const u=e.direction;!0===u.horizontal&&!0!==u.vertical?r=a<0?"left":"right":!0!==u.horizontal&&!0===u.vertical?r=s<0?"up":"down":!0===u.up&&s<0?(r="up",l>c&&(!0===u.left&&a<0?r="left":!0===u.right&&a>0&&(r="right"))):!0===u.down&&s>0?(r="down",l>c&&(!0===u.left&&a<0?r="left":!0===u.right&&a>0&&(r="right"))):!0===u.left&&a<0?(r="left",l0&&(r="down"))):!0===u.right&&a>0&&(r="right",l0&&(r="down")));let h=!1;if(void 0===r&&!1===i){if(!0===e.event.isFirst||void 0===e.event.lastDir)return{};r=e.event.lastDir,h=!0,"left"===r||"right"===r?(n.left-=a,l=0,a=0):(n.top-=s,c=0,s=0)}return{synthetic:h,payload:{evt:t,touch:!0!==e.event.mouse,mouse:!0===e.event.mouse,position:n,direction:r,isFirst:e.event.isFirst,isFinal:!0===i,duration:Date.now()-e.event.time,distance:{x:l,y:c},offset:{x:a,y:s},delta:{x:n.left-e.event.lastX,y:n.top-e.event.lastY}}}}function l(t){const e=t.__qtouchpan;void 0!==e&&(void 0!==e.event&&e.end(),Object(o["b"])(e,"main"),Object(o["b"])(e,"temp"),!0===n["a"].is.firefox&&Object(o["j"])(t,!1),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchpan)}let c=0;e["a"]={name:"touch-pan",bind(t,{value:e,modifiers:i}){if(void 0!==t.__qtouchpan&&(l(t),t.__qtouchpan_destroyed=!0),!0!==i.mouse&&!0!==n["a"].has.touch)return;function u(t,e){!0===i.mouse&&!0===e?Object(o["l"])(t):(!0===i.stop&&Object(o["k"])(t),!0===i.prevent&&Object(o["i"])(t))}const h={uid:"qvtp_"+c++,handler:e,modifiers:i,direction:Object(r["a"])(i),noop:o["g"],mouseStart(t){Object(r["b"])(t,h)&&Object(o["e"])(t)&&(Object(o["a"])(h,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),h.start(t,!0))},touchStart(t){if(Object(r["b"])(t,h)){const e=t.target;Object(o["a"])(h,"temp",[[e,"touchmove","move","notPassiveCapture"],[e,"touchcancel","end","passiveCapture"],[e,"touchend","end","passiveCapture"]]),h.start(t)}},start(e,r){!0===n["a"].is.firefox&&Object(o["j"])(t,!0),h.lastEvt=e;const a=Object(o["h"])(e);if(!0===r||!0===i.stop){if(!0!==h.direction.all&&(!0!==r||!0!==h.direction.mouseAllDir)){const t=e.type.indexOf("mouse")>-1?new MouseEvent(e.type,e):new TouchEvent(e.type,e);!0===e.defaultPrevented&&Object(o["i"])(t),!0===e.cancelBubble&&Object(o["k"])(t),t.qClonedBy=void 0===e.qClonedBy?[h.uid]:e.qClonedBy.concat(h.uid),t.qKeyEvent=e.qKeyEvent,t.qClickOutside=e.qClickOutside,h.initialEvent={target:e.target,event:t}}Object(o["k"])(e)}h.event={x:a.left,y:a.top,time:Date.now(),mouse:!0===r,detected:!1,isFirst:!0,isFinal:!1,lastX:a.left,lastY:a.top}},move(t){if(void 0===h.event)return;h.lastEvt=t;const e=!0===h.event.mouse,n=()=>{u(t,e),!0!==i.preserveCursor&&(document.documentElement.style.cursor="grabbing"),!0===e&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Object(a["a"])(),h.styleCleanup=t=>{if(h.styleCleanup=void 0,!0!==i.preserveCursor&&(document.documentElement.style.cursor=""),document.body.classList.remove("non-selectable"),!0===e){const e=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==t?setTimeout((()=>{e(),t()}),50):e()}else void 0!==t&&t()}};if(!0===h.event.detected){!0!==h.event.isFirst&&u(t,h.event.mouse);const{payload:e,synthetic:i}=s(t,h,!1);return void(void 0!==e&&(!1===h.handler(e)?h.end(t):(void 0===h.styleCleanup&&!0===h.event.isFirst&&n(),h.event.lastX=e.position.left,h.event.lastY=e.position.top,h.event.lastDir=!0===i?void 0:e.direction,h.event.isFirst=!1)))}if(!0===h.direction.all||!0===e&&!0===h.modifiers.mouseAllDir)return n(),h.event.detected=!0,void h.move(t);const r=Object(o["h"])(t),l=r.left-h.event.x,c=r.top-h.event.y,d=Math.abs(l),p=Math.abs(c);d!==p&&(!0===h.direction.horizontal&&d>p||!0===h.direction.vertical&&d0||!0===h.direction.left&&d>p&&l<0||!0===h.direction.right&&d>p&&l>0?(h.event.detected=!0,h.move(t)):h.end(t,!0))},end(e,i){if(void 0!==h.event){if(Object(o["b"])(h,"temp"),!0===n["a"].is.firefox&&Object(o["j"])(t,!1),!0===i)void 0!==h.styleCleanup&&h.styleCleanup(),!0!==h.event.detected&&void 0!==h.initialEvent&&h.initialEvent.target.dispatchEvent(h.initialEvent.event);else if(!0===h.event.detected){!0===h.event.isFirst&&h.handler(s(void 0===e?h.lastEvt:e,h).payload);const{payload:t}=s(void 0===e?h.lastEvt:e,h,!0),i=()=>{h.handler(t)};void 0!==h.styleCleanup?h.styleCleanup(i):i()}h.event=void 0,h.initialEvent=void 0,h.lastEvt=void 0}}};t.__qtouchpan=h,!0===i.mouse&&Object(o["a"])(h,"main",[[t,"mousedown","mouseStart","passive"+(!0===i.mouseCapture?"Capture":"")]]),!0===n["a"].has.touch&&Object(o["a"])(h,"main",[[t,"touchstart","touchStart","passive"+(!0===i.capture?"Capture":"")],[t,"touchmove","noop","notPassiveCapture"]])},update(t,{oldValue:e,value:i}){const n=t.__qtouchpan;void 0!==n&&e!==i&&("function"!==typeof i&&n.end(),n.handler=i)},unbind(t){void 0===t.__qtouchpan_destroyed?l(t):delete t.__qtouchpan_destroyed}}},"77a7":function(t,e){var i=Array,n=Math.abs,r=Math.pow,o=Math.floor,a=Math.log,s=Math.LN2,l=function(t,e,l){var c,u,h,d=i(l),p=8*l-e-1,f=(1<>1,m=23===e?r(2,-24)-r(2,-77):0,v=t<0||0===t&&1/t<0?1:0,y=0;t=n(t),t!=t||t===1/0?(u=t!=t?1:0,c=f):(c=o(a(t)/s),h=r(2,-c),t*h<1&&(c--,h*=2),t+=c+g>=1?m/h:m*r(2,1-g),t*h>=2&&(c++,h/=2),c+g>=f?(u=0,c=f):c+g>=1?(u=(t*h-1)*r(2,e),c+=g):(u=t*r(2,g-1)*r(2,e),c=0));while(e>=8)d[y++]=255&u,u/=256,e-=8;c=c<0)d[y++]=255&c,c/=256,p-=8;return d[--y]|=128*v,d},c=function(t,e){var i,n=t.length,o=8*n-e-1,a=(1<>1,l=o-7,c=n-1,u=t[c--],h=127&u;u>>=7;while(l>0)h=256*h+t[c--],l-=8;i=h&(1<<-l)-1,h>>=-l,l+=e;while(l>0)i=256*i+t[c--],l-=8;if(0===h)h=1-s;else{if(h===a)return i?NaN:u?-1/0:1/0;i+=r(2,e),h-=s}return(u?-1:1)*i*r(2,h-e)};t.exports={pack:l,unpack:c}},"77d9":function(t,e,i){i("1d02")},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"784f":function(t,e,i){!function(e,i){t.exports=i()}(window,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=4)}([function(t,e,i){var n=i(2);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,i(5).default)("7341b954",n,!0,{})},function(t,e,i){"use strict";var n=i(0);i.n(n).a},function(t,e,i){(t.exports=i(3)(!1)).push([t.i,".distpicker-address-wrapper {\n color: #9caebf;\n}\n.distpicker-address-wrapper select {\n padding: .5rem .75rem;\n height: 40px;\n font-size: 1rem;\n line-height: 1.25;\n color: #464a4c;\n background-color: #fff;\n background-image: none;\n -webkit-background-clip: padding-box;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n border-radius: .25rem;\n -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;\n transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;\n -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;\n transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;\n transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;\n}\n.distpicker-address-wrapper select option {\n font-weight: normal;\n display: block;\n white-space: pre;\n min-height: 1.2em;\n padding: 0px 2px 1px;\n}\n.distpicker-address-wrapper ul {\n margin: 0;\n padding: 0;\n}\n.distpicker-address-wrapper ul li {\n list-style: none;\n}\n.distpicker-address-wrapper .address-header {\n background-color: #fff;\n}\n.distpicker-address-wrapper .address-header ul {\n display: flex;\n justify-content: space-around;\n align-items: stretch;\n}\n.distpicker-address-wrapper .address-header ul li {\n display: inline-block;\n padding: 10px 10px 7px;\n}\n.distpicker-address-wrapper .address-header ul li.active {\n border-bottom: #52697f solid 3px;\n color: #52697f;\n}\n.distpicker-address-wrapper .address-container {\n background-color: #fff;\n}\n.distpicker-address-wrapper .address-container ul {\n height: 100%;\n overflow: auto;\n}\n.distpicker-address-wrapper .address-container ul li {\n padding: 8px 10px;\n border-top: 1px solid #f6f6f6;\n}\n.distpicker-address-wrapper .address-container ul li.active {\n color: #52697f;\n}\n.disabled-color {\n background: #f8f8f8;\n}\n",""])},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i,n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(i=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),a=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r2&&void 0!==arguments[2]?arguments[2]:"";return{code:arguments.length>3&&void 0!==arguments[3]&&arguments[3]?this.getCodeByArea(t):this.getAreaCode(t,i,e),value:t}},getCodeByArea:function(t){for(var e={},i=Object.keys(this.areas),n=0;n1?(n.forEach((function(t,n){(2===e.length&&t.slice(0,2)===e||4===e.length&&t.slice(0,4)!==e)&&(i=n)})),n[i]):n[0]},getAreaCode:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(var n in this.districts)for(var r in this.districts[n])if(t===this.districts[n][r]){if(e.length>0){var o=r;if(e){var a="city"===i?this.getAreaCode(this.currentProvince).slice(0,2):r.slice(0,2);o=this.getAreaCodeByPreCode(t,a)}if(o&&r.slice(0,2)===o.slice(0,2))return o;continue}return r}},getCodeValue:function(t){for(var e in this.districts)for(var i in this.districts[e])if(t===parseInt(i))return this.districts[e][i]},getDistricts:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e5;return this.districts[t]||[]},determineValue:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return e===i?[]:this.getDistricts(this.getAreaCode(e,n,t))},determineType:function(t){return"number"==typeof t?this.getCodeValue(t):t},cleanList:function(t){this[t]=[]},isDirectCity:function(t,e){return!(!t||!e)&&this.determineType(this.province)===this.determineType(this.city)}}};i(1);var o=function(t,e,i,n,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}(r,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.wrapper},["mobile"!==t.type?[i("label",[i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentProvince,expression:"currentProvince"}],attrs:{disabled:t.disabled||t.provinceDisabled},on:{change:[function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentProvince=e.target.multiple?i:i[0]},t.getCities]}},[i("option",{domProps:{value:t.placeholders.province}},[t._v(t._s(t.placeholders.province))]),t._v(" "),t._l(t.provinces,(function(e,n){return i("option",{key:n,domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])}))],2)]),t._v(" "),t.onlyProvince?t._e():[i("label",[i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentCity,expression:"currentCity"}],attrs:{disabled:t.disabled||t.cityDisabled},on:{change:[function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentCity=e.target.multiple?i:i[0]},t.getAreas]}},[i("option",{domProps:{value:t.placeholders.city}},[t._v(t._s(t.placeholders.city))]),t._v(" "),t._l(t.cities,(function(e,n){return i("option",{key:n,domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])}))],2)]),t._v(" "),i("label",[t.hideArea?t._e():i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentArea,expression:"currentArea"}],attrs:{disabled:t.disabled||t.areaDisabled},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentArea=e.target.multiple?i:i[0]}}},[i("option",{domProps:{value:t.placeholders.area}},[t._v(t._s(t.placeholders.area))]),t._v(" "),t._l(t.areas,(function(e,n){return i("option",{key:n,domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])}))],2)])]]:[i("div",{class:t.addressHeader},[i("ul",[i("li",{class:{active:1===t.tab},on:{click:t.resetProvince}},[t._v(t._s(t.currentProvince&&!t.staticPlaceholder?t.currentProvince:t.placeholders.province))]),t._v(" "),t.onlyProvince?t._e():[t.showCityTab?i("li",{class:{active:2===t.tab},on:{click:t.resetCity}},[t._v(t._s(t.currentCity&&!t.staticPlaceholder?t.currentCity:t.placeholders.city))]):t._e(),t._v(" "),t.showAreaTab&&!t.hideArea?i("li",{class:{active:3===t.tab}},[t._v(t._s(t.currentArea&&!t.staticPlaceholder?t.currentArea:t.placeholders.area))]):t._e()]],2)]),t._v(" "),i("div",{class:t.addressContainer},[1===t.tab?i("ul",t._l(t.provinces,(function(e,n){return i("li",{key:n,class:{active:e===t.currentProvince},on:{click:function(i){return t.chooseProvince(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),0):t._e(),t._v(" "),t.onlyProvince?t._e():[2===t.tab?i("ul",t._l(t.cities,(function(e,n){return i("li",{key:n,class:{active:e===t.currentCity},on:{click:function(i){return t.chooseCity(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),0):t._e(),t._v(" "),3!==t.tab||t.hideArea?t._e():i("ul",t._l(t.areas,(function(e,n){return i("li",{key:n,class:{active:e===t.currentArea},on:{click:function(i){return t.chooseArea(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),0)]],2)]],2)}),[],!1,null,null,null).exports;e.default=o},function(t,e,i){"use strict";function n(t,e){for(var i=[],n={},r=0;ri.parts.length&&(n.parts.length=i.parts.length)}else{var a=[];for(r=0;r{const{route:n}=this.$router.resolve(t,this.$route,e),r=t===this.to&&e===this.append?this.__checkActivation:h["g"];this.$router[!0===i?"replace":"push"](n,(()=>{r(!0)}),(t=>{t&&"NavigationDuplicated"===t.name&&r(!0)}))};void 0!==this.qListeners.click&&this.$emit("click",t,e),void 0!==t&&!1===t.navigate||e()}}else this.__checkActivation(!0);!0===e?this.$el.focus({preventScroll:!0}):void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus({preventScroll:!0})},__checkActivation(t=!1){if(!0!==this.hasRouterLink)return;const e=this.$route,{href:i,location:n,route:r}=this.$router.resolve(this.to,e,this.append),o=void 0!==r.redirectedFrom,a=c(e,r),s=!0===this.exact?c:u,l={name:this.name,selected:t,exact:this.exact,priorityMatched:r.matched.length,priorityHref:i.length};(!0===a||!0!==this.exact&&!0===u(e,r))&&this.__activateRoute({...l,redirected:o,exact:!0===this.exact||!0===a}),!0===o&&!0===s(e,{path:r.redirectedFrom,...n})&&this.__activateRoute(l),!0===this.isActive&&this.__activateRoute()}},mounted(){this.__recalculateScroll(),void 0!==this.$router&&this.__checkActivation()},beforeDestroy(){this.__recalculateScroll(),this.__activateRoute({remove:!0,name:this.name})},render(t){return this.__renderTab(t,this.linkTag)}})},7903:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const i={N1:3,N2:3,N3:40,N4:10};function n(t,i,n){switch(t){case e.Patterns.PATTERN000:return(i+n)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return n%3===0;case e.Patterns.PATTERN011:return(i+n)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(n/3))%2===0;case e.Patterns.PATTERN101:return i*n%2+i*n%3===0;case e.Patterns.PATTERN110:return(i*n%2+i*n%3)%2===0;case e.Patterns.PATTERN111:return(i*n%3+(i+n)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let n=0,r=0,o=0,a=null,s=null;for(let l=0;l=5&&(n+=i.N1+(r-5)),a=e,r=1),e=t.get(c,l),e===s?o++:(o>=5&&(n+=i.N1+(o-5)),s=e,o=1)}r>=5&&(n+=i.N1+(r-5)),o>=5&&(n+=i.N1+(o-5))}return n},e.getPenaltyN2=function(t){const e=t.size;let n=0;for(let i=0;i=10&&(1488===r||93===r)&&n++,o=o<<1&2047|t.get(a,i),a>=10&&(1488===o||93===o)&&n++}return n*i.N3},e.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let i=0;i=1024&&e=e?n:new Array(e-n.length+1).join(i)+n}},"7a29":function(t,e,i){"use strict";(function(t){i.d(e,"p",(function(){return s})),i.d(e,"j",(function(){return c})),i.d(e,"q",(function(){return h})),i.d(e,"e",(function(){return d})),i.d(e,"a",(function(){return p})),i.d(e,"b",(function(){return f})),i.d(e,"i",(function(){return g})),i.d(e,"h",(function(){return m})),i.d(e,"l",(function(){return v})),i.d(e,"n",(function(){return b})),i.d(e,"m",(function(){return _})),i.d(e,"o",(function(){return x})),i.d(e,"k",(function(){return w})),i.d(e,"d",(function(){return S})),i.d(e,"f",(function(){return C})),i.d(e,"g",(function(){return k})),i.d(e,"c",(function(){return M}));var n=i("6d8b"),r=i("41ef"),o=i("22d1"),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var i=Object(r["g"])(t);i&&(t="rgb("+i[0]+","+i[1]+","+i[2]+")",e=i[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function c(t){return t-l}function u(t){return a(1e3*t)/1e3}function h(t){return a(1e4*t)/1e4}function d(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+h(t[4])+","+h(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,i){return"top"===i?t+=e/2:"bottom"===i&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,i=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),i[0],i[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return t&&!!t.svgElement}function b(t){return v(t)||y(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function w(t){return t&&("linear"===t.type||"radial"===t.type)}function S(t){return"url(#"+t+")"}function C(t){var e=t.getGlobalScale(),i=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(i)/Math.log(10)),1)}function k(t){var e=t.x||0,i=t.y||0,r=(t.rotation||0)*n["a"],o=Object(n["P"])(t.scaleX,1),s=Object(n["P"])(t.scaleY,1),l=t.skewX||0,c=t.skewY||0,u=[];return(e||i)&&u.push("translate("+e+"px,"+i+"px)"),r&&u.push("rotate("+r+")"),1===o&&1===s||u.push("scale("+o+","+s+")"),(l||c)&&u.push("skew("+a(l*n["a"])+"deg, "+a(c*n["a"])+"deg)"),u.join(" ")}var M=function(){return o["a"].hasGlobalWindow&&Object(n["w"])(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!==typeof t?function(e){return t.from(e).toString("base64")}:function(t){return null}}()}).call(this,i("1c35").Buffer)},"7a43":function(t,e){function i(t){if("string"!==typeof t)throw new Error("Param is not a string");const i=t.toLowerCase();switch(i){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!==typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return i(t)}catch(r){return n}}},"7a77":function(t,e,i){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"7aac":function(t,e,i){"use strict";var n=i("c532");t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,i,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),n.isString(r)&&s.push("path="+r),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,i){var n=i("1d80"),r=Object;t.exports=function(t){return r(n(t))}},"7b1d":function(t,e,i){(function(e,i){t.exports=i()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s="fb15")}({"00ee":function(t,e,i){var n=i("b622"),r=n("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,i){var n=i("1c0b");t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,i){var n=i("fc6a"),r=i("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(n(t))}},"06cf":function(t,e,i){var n=i("83ab"),r=i("d1e7"),o=i("5c6c"),a=i("fc6a"),s=i("c04e"),l=i("5135"),c=i("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(t,e)}catch(i){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},"0cb2":function(t,e,i){var n=i("7b0b"),r=Math.floor,o="".replace,a=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;t.exports=function(t,e,i,l,c,u){var h=i+t.length,d=l.length,p=s;return void 0!==c&&(c=n(c),p=a),o.call(u,p,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(h);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return n;if(s>d){var u=r(s/10);return 0===u?n:u<=d?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):n}a=l[s-1]}return void 0===a?"":a}))}},"0cfb":function(t,e,i){var n=i("83ab"),r=i("d039"),o=i("cc12");t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"14c3":function(t,e,i){var n=i("c6b6"),r=i("9263");t.exports=function(t,e){var i=t.exec;if("function"===typeof i){var o=i.call(t,e);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"1be4":function(t,e,i){var n=i("d066");t.exports=n("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,i){var n=i("d039"),r=i("b622"),o=i("2d00"),a=r("species");t.exports=function(t){return o>=51||!n((function(){var e=[],i=e.constructor={};return i[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,i){var n=i("a691"),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},"23e7":function(t,e,i){var n=i("da84"),r=i("06cf").f,o=i("9112"),a=i("6eeb"),s=i("ce4e"),l=i("e893"),c=i("94ca");t.exports=function(t,e){var i,u,h,d,p,f,g=t.target,m=t.global,v=t.stat;if(u=m?n:v?n[g]||s(g,{}):(n[g]||{}).prototype,u)for(h in e){if(p=e[h],t.noTargetGet?(f=r(u,h),d=f&&f.value):d=u[h],i=c(m?h:g+(v?".":"#")+h,t.forced),!i&&void 0!==d){if(typeof p===typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&o(p,"sham",!0),a(u,h,p,t)}}},"241c":function(t,e,i){var n=i("ca84"),r=i("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},"25f0":function(t,e,i){"use strict";var n=i("6eeb"),r=i("825a"),o=i("d039"),a=i("ad6d"),s="toString",l=RegExp.prototype,c=l[s],u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),h=c.name!=s;(u||h)&&n(RegExp.prototype,s,(function(){var t=r(this),e=String(t.source),i=t.flags,n=String(void 0===i&&t instanceof RegExp&&!("flags"in l)?a.call(t):i);return"/"+e+"/"+n}),{unsafe:!0})},2626:function(t,e,i){"use strict";var n=i("d066"),r=i("9bf2"),o=i("b622"),a=i("83ab"),s=o("species");t.exports=function(t){var e=n(t),i=r.f;a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},"2d00":function(t,e,i){var n,r,o=i("da84"),a=i("342f"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?(n=c.split("."),r=n[0]+n[1]):a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(r=n[1]))),t.exports=r&&+r},"342f":function(t,e,i){var n=i("d066");t.exports=n("navigator","userAgent")||""},"37e8":function(t,e,i){var n=i("83ab"),r=i("9bf2"),o=i("825a"),a=i("df75");t.exports=n?Object.defineProperties:function(t,e){o(t);var i,n=a(e),s=n.length,l=0;while(s>l)r.f(t,i=n[l++],e[i]);return t}},"3bbe":function(t,e,i){var n=i("861d");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,i){"use strict";var n=i("6547").charAt,r=i("69f3"),o=i("7dd0"),a="String Iterator",s=r.set,l=r.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=l(this),i=e.string,r=e.index;return r>=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,i){var n=i("da84");t.exports=n},"44ad":function(t,e,i){var n=i("d039"),r=i("c6b6"),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,i){var n=i("b622"),r=i("7c73"),o=i("9bf2"),a=n("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},"44e7":function(t,e,i){var n=i("861d"),r=i("c6b6"),o=i("b622"),a=o("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==r(t))}},4930:function(t,e,i){var n=i("d039");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"4d63":function(t,e,i){var n=i("83ab"),r=i("da84"),o=i("94ca"),a=i("7156"),s=i("9bf2").f,l=i("241c").f,c=i("44e7"),u=i("ad6d"),h=i("9f7f"),d=i("6eeb"),p=i("d039"),f=i("69f3").set,g=i("2626"),m=i("b622"),v=m("match"),y=r.RegExp,b=y.prototype,_=/a/g,x=/a/g,w=new y(_)!==_,S=h.UNSUPPORTED_Y,C=n&&o("RegExp",!w||S||p((function(){return x[v]=!1,y(_)!=_||y(x)==x||"/a/i"!=y(_,"i")})));if(C){var k=function(t,e){var i,n=this instanceof k,r=c(t),o=void 0===e;if(!n&&r&&t.constructor===k&&o)return t;w?r&&!o&&(t=t.source):t instanceof k&&(o&&(e=u.call(t)),t=t.source),S&&(i=!!e&&e.indexOf("y")>-1,i&&(e=e.replace(/y/g,"")));var s=a(w?new y(t,e):y(t,e),n?this:b,k);return S&&i&&f(s,{sticky:i}),s},M=function(t){t in k||s(k,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},T=l(y),O=0;while(T.length>O)M(T[O++]);b.constructor=k,k.prototype=b,d(r,"RegExp",k)}g("RegExp")},"4d64":function(t,e,i){var n=i("fc6a"),r=i("50c4"),o=i("23cb"),a=function(t){return function(e,i,a){var s,l=n(e),c=r(l.length),u=o(a,c);if(t&&i!=i){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"50c4":function(t,e,i){var n=i("a691"),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},5135:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},5319:function(t,e,i){"use strict";var n=i("d784"),r=i("825a"),o=i("50c4"),a=i("a691"),s=i("1d80"),l=i("8aa5"),c=i("0cb2"),u=i("14c3"),h=Math.max,d=Math.min,p=function(t){return void 0===t?t:String(t)};n("replace",2,(function(t,e,i,n){var f=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=n.REPLACE_KEEPS_$0,m=f?"$":"$0";return[function(i,n){var r=s(this),o=void 0==i?void 0:i[t];return void 0!==o?o.call(i,r,n):e.call(String(r),i,n)},function(t,n){if(!f&&g||"string"===typeof n&&-1===n.indexOf(m)){var s=i(e,t,this,n);if(s.done)return s.value}var v=r(t),y=String(this),b="function"===typeof n;b||(n=String(n));var _=v.global;if(_){var x=v.unicode;v.lastIndex=0}var w=[];while(1){var S=u(v,y);if(null===S)break;if(w.push(S),!_)break;var C=String(S[0]);""===C&&(v.lastIndex=l(y,o(v.lastIndex),x))}for(var k="",M=0,T=0;T=M&&(k+=y.slice(M,A)+L,M=A+O.length)}return k+y.slice(M)}]}))},5692:function(t,e,i){var n=i("c430"),r=i("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.0",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,i){var n=i("d066"),r=i("241c"),o=i("7418"),a=i("825a");t.exports=n("Reflect","ownKeys")||function(t){var e=r.f(a(t)),i=o.f;return i?e.concat(i(t)):e}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6547:function(t,e,i){var n=i("a691"),r=i("1d80"),o=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,i){var n=i("861d"),r=i("e8b5"),o=i("b622"),a=o("species");t.exports=function(t,e){var i;return r(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!r(i.prototype)?n(i)&&(i=i[a],null===i&&(i=void 0)):i=void 0),new(void 0===i?Array:i)(0===e?0:e)}},"69f3":function(t,e,i){var n,r,o,a=i("7f9a"),s=i("da84"),l=i("861d"),c=i("9112"),u=i("5135"),h=i("c6cd"),d=i("f772"),p=i("d012"),f=s.WeakMap,g=function(t){return o(t)?r(t):n(t,{})},m=function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}};if(a){var v=h.state||(h.state=new f),y=v.get,b=v.has,_=v.set;n=function(t,e){return e.facade=t,_.call(v,t,e),e},r=function(t){return y.call(v,t)||{}},o=function(t){return b.call(v,t)}}else{var x=d("state");p[x]=!0,n=function(t,e){return e.facade=t,c(t,x,e),e},r=function(t){return u(t,x)?t[x]:{}},o=function(t){return u(t,x)}}t.exports={set:n,get:r,has:o,enforce:g,getterFor:m}},"6eeb":function(t,e,i){var n=i("da84"),r=i("9112"),o=i("5135"),a=i("ce4e"),s=i("8925"),l=i("69f3"),c=l.get,u=l.enforce,h=String(String).split("String");(t.exports=function(t,e,i,s){var l,c=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof i&&("string"!=typeof e||o(i,"name")||r(i,"name",e),l=u(i),l.source||(l.source=h.join("string"==typeof e?e:""))),t!==n?(c?!p&&t[e]&&(d=!0):delete t[e],d?t[e]=i:r(t,e,i)):d?t[e]=i:a(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},7156:function(t,e,i){var n=i("861d"),r=i("d2bb");t.exports=function(t,e,i){var o,a;return r&&"function"==typeof(o=e.constructor)&&o!==i&&n(a=o.prototype)&&a!==i.prototype&&r(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,i){var n=i("428f"),r=i("5135"),o=i("e538"),a=i("9bf2").f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});r(e,t)||a(e,t,{value:o.f(t)})}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,i){var n=i("1d80");t.exports=function(t){return Object(n(t))}},"7c73":function(t,e,i){var n,r=i("825a"),o=i("37e8"),a=i("7839"),s=i("d012"),l=i("1be4"),c=i("cc12"),u=i("f772"),h=">",d="<",p="prototype",f="script",g=u("IE_PROTO"),m=function(){},v=function(t){return d+f+h+t+d+"/"+f+h},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=c("iframe"),i="java"+f+":";return e.style.display="none",l.appendChild(e),e.src=String(i),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F},_=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}_=n?y(n):b();var t=a.length;while(t--)delete _[p][a[t]];return _()};s[g]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(m[p]=r(t),i=new m,m[p]=null,i[g]=t):i=_(),void 0===e?i:o(i,e)}},"7dd0":function(t,e,i){"use strict";var n=i("23e7"),r=i("9ed3"),o=i("e163"),a=i("d2bb"),s=i("d44e"),l=i("9112"),c=i("6eeb"),u=i("b622"),h=i("c430"),d=i("3f8c"),p=i("ae93"),f=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",y="values",b="entries",_=function(){return this};t.exports=function(t,e,i,u,p,x,w){r(i,e,u);var S,C,k,M=function(t){if(t===p&&P)return P;if(!g&&t in A)return A[t];switch(t){case v:return function(){return new i(this,t)};case y:return function(){return new i(this,t)};case b:return function(){return new i(this,t)}}return function(){return new i(this)}},T=e+" Iterator",O=!1,A=t.prototype,I=A[m]||A["@@iterator"]||p&&A[p],P=!g&&I||M(p),D="Array"==e&&A.entries||I;if(D&&(S=o(D.call(new t)),f!==Object.prototype&&S.next&&(h||o(S)===f||(a?a(S,f):"function"!=typeof S[m]&&l(S,m,_)),s(S,T,!0,!0),h&&(d[T]=_))),p==y&&I&&I.name!==y&&(O=!0,P=function(){return I.call(this)}),h&&!w||A[m]===P||l(A,m,P),d[e]=P,p)if(C={values:M(y),keys:x?P:M(v),entries:M(b)},w)for(k in C)(g||O||!(k in A))&&c(A,k,C[k]);else n({target:e,proto:!0,forced:g||O},C);return C}},"7f9a":function(t,e,i){var n=i("da84"),r=i("8925"),o=n.WeakMap;t.exports="function"===typeof o&&/native code/.test(r(o))},"825a":function(t,e,i){var n=i("861d");t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,i){var n=i("d039");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,i){"use strict";var n=i("c04e"),r=i("9bf2"),o=i("5c6c");t.exports=function(t,e,i){var a=n(e);a in t?r.f(t,a,o(0,i)):t[a]=i}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,i){var n,r,o;(function(i,a){r=[],n=a,o="function"===typeof n?n.apply(e,r):n,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var i,n,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(p.stack)||a.exec(p.stack),l=s&&s[1]||!1,c=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");l===u&&(i=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*