(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[0],{"0016":function(t,e,n){"use strict";n("ddb0");var i=n("2b0e"),r=n("6642"),o=n("e2fa"),a=n("87e8"),s=n("dde5");const l="0 0 24 24",u=t=>t,c=t=>`ionicons ${t}`,h={"mdi-":t=>`mdi ${t}`,"icon-":u,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":c,"ion-ios":c,"ion-logo":c,"iconfont ":u,"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"]=i["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,n=l]=e.split("|");return{svg:!0,viewBox:n,nodes:t.split("&&").map((t=>{const[e,n,i]=t.split("@@");return this.$createElement("path",{attrs:{d:e,transform:i},style:n})}))}}if(!0===y.test(e))return{img:!0,src:e.substring(4)};if(!0===b.test(e)){const[t,n=l]=e.split("|");return{svguse:!0,src:t.substring(7),viewBox:n}}let n=" ";const i=e.match(f);if(null!==i)t=h[i[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 i=e.match(m);null!==i&&(e=e.substring(6),t+=p[i[1]]),n=e}else{t="notranslate material-icons";const i=e.match(g);null!==i&&(e=e.substring(2),t+=d[i[1]]),n=e}return{cls:t,content:n}}},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,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"0170":function(t,e,n){"use strict";var i=n("2b0e"),r=n("87e8"),o=n("dde5");e["a"]=i["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,n){const i=n("58b4"),r=n("bbf0");function o(t){this.mode=r.BYTE,"string"===typeof t&&(t=i(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,n=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!==i){if(!1===this.greedy)return o(!1,t),!0===n&&"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 i===this.validateIndex&&o(!0),!0;const{valid:r,comp:a,err:s}=e[0];return i===this.validateIndex&&(void 0!==s&&console.error(s),o(!1,a),!0===n&&!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((n=>{e===this.validateIndex&&!0===n&&(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 n="[0-9]+",i="[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(n,"g"),e.ALPHANUMERIC=new RegExp(i,"g");const a=new RegExp("^"+r+"$"),s=new RegExp("^"+n+"$"),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,n){var i=n("342f"),r=i.match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},"05c0":function(t,e,n){"use strict";var i=n("2b0e"),r=n("c474"),o=n("7ee0"),a=n("9e62"),s=n("7562"),l=n("0831"),u=n("d882"),c=n("2248"),h=n("dde5"),d=n("ab41");e["a"]=i["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(u["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(c["a"])(),document.body.classList.add("non-selectable");const t=this.anchorEl,e=["touchmove","touchcancel","touchend","click"].map((e=>[t,e,"__delayHide","passiveCapture"]));Object(u["a"])(this,"tooltipTemp",e)}this.__setTimeout((()=>{this.show(t)}),this.delay)},__delayHide(t){this.__clearTimeout(),!0===this.$q.platform.is.mobile&&(Object(u["b"])(this,"tooltipTemp"),Object(c["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(u["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)}})},"05eb":function(t,e,n){"use strict";n("caad");var i=n("2b0e"),r=n("b7fa"),o=n("87e8"),a=n("dde5");e["a"]=i["a"].extend({name:"QTimeline",mixins:[r["a"],o["a"]],provide(){return{__timeline:this}},props:{color:{type:String,default:"primary"},side:{type:String,default:"right",validator:t=>["left","right"].includes(t)},layout:{type:String,default:"dense",validator:t=>["dense","comfortable","loose"].includes(t)}},computed:{classes(){return`q-timeline--${this.layout} q-timeline--${this.layout}--${this.side}`+(!0===this.isDark?" q-timeline--dark":"")}},render(t){return t("ul",{staticClass:"q-timeline",class:this.classes,on:{...this.qListeners}},Object(a["c"])(this,"default"))}})},"068f":function(t,e,n){"use strict";var i=n("2b0e"),r=n("0d59"),o=n("6900"),a=n("87e8"),s=n("dde5");e["a"]=i["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:n}=t;e||n?this.naturalRatio=0===e?1:n/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,n=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?n:t("transition",{props:{name:"q-transition--"+this.transition}},[n])},__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 n=!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"}},[n])}},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,n){var i=n("83ab"),r=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),l=n("a04b"),u=n("1a2d"),c=n("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=i?h:function(t,e){if(t=s(t),e=l(e),c)try{return h(t,e)}catch(n){}if(u(t,e))return a(!r(o.f,t,e),t[e])}},"07fa":function(t,e,n){var i=n("50c4");t.exports=function(t){return i(t.length)}},"0831":function(t,e,n){"use strict";n.d(e,"g",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"j",(function(){return v})),n.d(e,"i",(function(){return y})),n.d(e,"h",(function(){return b})),n.d(e,"e",(function(){return x})),n.d(e,"f",(function(){return w}));n("caad");var i=n("0967"),r=n("f303");const o=!0===i["e"]?[]:[null,document,document.body,document.scrollingElement,document.documentElement];let a;function s(){if(!0===i["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 n=Object(r["d"])(e);if(null===n){if(t!==Object(t)||"function"!==typeof t.closest)return window;n=t.closest(".scroll,.scroll-y,.overflow-auto")}return o.includes(n)?window:n}function u(t){return(t===window?document.body:t).scrollHeight}function c(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}const h=c;function d(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}function p(t,e,n=0){const i=void 0===arguments[3]?performance.now():arguments[3],r=c(t);n<=0?r!==e&&g(t,e):requestAnimationFrame((o=>{const a=o-i,s=r+(e-r)/Math.max(a,n)*a;g(t,s),s!==e&&p(t,e,n-a,o)}))}function f(t,e,n=0){const i=void 0===arguments[3]?performance.now():arguments[3],r=d(t);n<=0?r!==e&&m(t,e):requestAnimationFrame((o=>{const a=o-i,s=r+(e-r)/Math.max(a,n)*a;m(t,s),s!==e&&f(t,e,n-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,n){n?p(t,e,n):g(t,e)}const y=v;function b(t,e,n){n?f(t,e,n):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 n=t.offsetWidth;e.style.overflow="scroll";let i=t.offsetWidth;return n===i&&(i=e.clientWidth),e.remove(),_=n-i,_}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,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return m}));var i=n("2b0e");const r="undefined"===typeof window;let o,a=!1,s=r,l=!1;function u(t,e){const n=/(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:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:e[0]||""}}function c(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(),n=c(e),i=u(e,n),o={};i.browser&&(o[i.browser]=!0,o.version=i.version,o.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(o[i.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,i.browser="edge"):o.crios?(o.chrome=!0,i.browser="chrome"):o.fxios&&(o.firefox=!0,i.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)&&(i.browser="ie",o.ie=!0),(o.safari&&o.blackberry||o.bb)&&(i.browser="blackberry",o.blackberry=!0),o.safari&&o.playbook&&(i.browser="playbook",o.playbook=!0),o.opr&&(i.browser="opera",o.opera=!0),o.safari&&o.android&&(i.browser="android",o.android=!0),o.safari&&o.kindle&&(i.browser="kindle",o.kindle=!0),o.safari&&o.silk&&(i.browser="silk",o.silk=!0),o.vivaldi&&(i.browser="vivaldi",o.vivaldi=!0),o.name=i.browser,o.platform=i.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})),i["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,n){"use strict";var i=n("2b0e"),r=n("87e8"),o=n("dde5");e["a"]=i["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,n){"use strict";n("ddb0");var i=n("2b0e"),r=n("0967"),o=n("d882"),a=n("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,n){if(!0===r["e"])return void(t.screen=this);const{visualViewport:o}=window,u=o||window,c=document.scrollingElement||document.documentElement,h=void 0===o||!0===r["a"].is.mobile?()=>[Math.max(window.innerWidth,c.clientWidth),Math.max(window.innerHeight,c.clientHeight)]:()=>[o.width*o.scale+window.innerWidth-c.clientWidth,o.height*o.scale+window.innerHeight-c.clientHeight],d=void 0!==n.screen&&!0===n.screen.bodyClasses,p=t=>{const[e,n]=h();if(n!==this.height&&(this.height=n),e!==this.width)this.width=e;else if(!0!==t)return;let i=this.sizes;this.gt.xs=e>=i.sm,this.gt.sm=e>=i.md,this.gt.md=e>=i.lg,this.gt.lg=e>=i.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&&u.removeEventListener("resize",f,l),f=t>0?Object(a["a"])(p,t):p,u.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(),i["a"].util.defineReactive(t,"screen",this)}}},"0a06":function(t,e,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b"),l=n("848b"),u=l.validators;function c(t){this.defaults=t,this.interceptors={request:new o,response:new o}}c.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:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var r,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!i){var c=[a,void 0];Array.prototype.unshift.apply(c,n),c=c.concat(o),r=Promise.resolve(t);while(c.length)r=r.then(c.shift(),c.shift());return r}var h=t;while(n.length){var d=n.shift(),p=n.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},c.prototype.getUri=function(t){return t=s(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,i){return this.request(s(i||{},{method:t,url:e,data:n}))}})),t.exports=c},"0b25":function(t,e,n){var i=n("5926"),r=n("50c4"),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw o("Wrong length or index");return n}},"0b42":function(t,e,n){var i=n("e8b5"),r=n("68ee"),o=n("861d"),a=n("b622"),s=a("species"),l=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,r(e)&&(e===l||i(e.prototype))?e=void 0:o(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?l:e}},"0cb2":function(t,e,n){var i=n("e330"),r=n("7b0b"),o=Math.floor,a=i("".charAt),s=i("".replace),l=i("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,i,h,d){var p=n+t.length,f=i.length,g=c;return void 0!==h&&(h=r(h),g=u),s(d,g,(function(r,s){var u;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,p);case"<":u=h[l(s,1,-1)];break;default:var c=+s;if(0===c)return r;if(c>f){var d=o(c/10);return 0===d?r:d<=f?void 0===i[d-1]?a(s,1):i[d-1]+a(s,1):r}u=i[c-1]}return void 0===u?"":u}))}},"0cd3":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n("0967");function r(t,e,n){if(!0===i["e"])return n;const r=`__qcache_${e}`;return void 0===t[r]?t[r]=n:t[r]}function o(t,e,n){if(!0===i["e"])return n();const r=`__qcache_${e}`;return void 0===t[r]?t[r]=n():t[r]}function a(t,e){return{data(){const n={},i=this[t];for(const t in i)n[t]=i[t];return{[e]:n}},watch:{[t](t,n){const i=this[e];if(void 0!==n)for(const e in n)void 0===t[e]&&this.$delete(i,e);for(const e in t)i[e]!==t[e]&&this.$set(i,e,t[e])}}}}},"0cfb":function(t,e,n){var i=n("83ab"),r=n("d039"),o=n("cc12");t.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(t,e,n){var i=n("d039"),r=n("b622"),o=n("c430"),a=r("iterator");t.exports=!i((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,i){e["delete"]("b"),n+=i+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"!==n||"x"!==new URL("http://x",void 0).host}))},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"0d59":function(t,e,n){"use strict";var i=n("2b0e"),r=n("6642"),o=n("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"]=i["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,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"107c":function(t,e,n){var i=n("d039"),r=n("da84"),o=r.RegExp;t.exports=i((function(){var t=o("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},"10b0":function(t,e,n){"use strict";var i={single_source_shortest_paths:function(t,e,n){var r={},o={};o[e]=0;var a,s,l,u,c,h,d,p,f,g=i.PriorityQueue.make();g.push(e,0);while(!g.empty())for(l in a=g.pop(),s=a.value,u=a.cost,c=t[s]||{},c)c.hasOwnProperty(l)&&(h=c[l],d=u+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 n&&"undefined"===typeof o[n]){var m=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(m)}return r},extract_shortest_path_from_predecessor_list:function(t,e){var n=[],i=e;while(i)n.push(i),t[i],i=t[i];return n.reverse(),n},find_path:function(t,e,n){var r=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i},"124f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n{i=void 0,!0!==n&&t.apply(this,r)};clearTimeout(i),!0===n&&void 0===i&&t.apply(this,r),i=setTimeout(o,e)}return r.cancel=()=>{clearTimeout(i)},r}},"1c1c":function(t,e,n){"use strict";var i=n("2b0e"),r=n("b7fa"),o=n("87e8"),a=n("dde5");e["a"]=i["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,n){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var i=n("1fb5"),r=n("9152"),o=n("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 u.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),u.alloc(+t)}function _(t,e){if(u.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 n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(i)return K(t).length;e=(""+e).toLowerCase(),i=!0}}function x(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return B(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return P(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function w(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function S(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=u.from(e,i)),u.isBuffer(e))return 0===e.length?-1:C(t,e,n,i,r);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):C(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function C(t,e,n,i,r){var o,a=1,s=t.length,l=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,d=0;dr&&(i=r)):i=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(r+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[r+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[r+1],a=t[r+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=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&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return L(i)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return d(null,t,e,n)},u.allocUnsafe=function(t){return p(null,t)},u.allocUnsafeSlow=function(t){return p(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,i,r){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var o=r-i,a=n-e,s=Math.min(o,a),l=this.slice(i,r),c=t.slice(e,n),h=0;hr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return k(this,t,e,n);case"utf8":case"utf-8":return M(this,t,e,n);case"ascii":return O(this,t,e,n);case"latin1":case"binary":return T(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function L(t){var e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);var n="",i=0;while(ii)&&(n=i);for(var r="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,i,r,o){if(!u.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,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function q(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function $(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,i,o){return o||$(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function G(t,e,n,i,o){return o||$(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}u.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e0&&(r*=256))i+=this[t+--e]*r;return i},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var i=this[t],r=1,o=0;while(++o=r&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var i=e,r=1,o=this[t+--i];while(i>0&&(r*=256))o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;z(this,t,e,n,r,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.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},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.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},u.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);z(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);z(this,t,e,n,r-1,-r)}var o=n-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+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),u.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},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.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},u.prototype.writeFloatLE=function(t,e,n){return H(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return H(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return G(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return G(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(t){for(var e=[],n=0;n>8,r=n%256,o.push(r),o.push(i)}return o}function J(t){return i.toByteArray(U(t))}function tt(t,e,n,i){for(var r=0;r=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("23b3"))},"1c7e":function(t,e,n){var i=n("b622"),r=i("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 n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(l){}return n}},"1d02":function(t,e,n){"use strict";var i=n("ebb5"),r=n("a258").findLastIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLastIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}function c(t){var e=u(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function h(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,i=u(t),a=i[0],s=i[1],l=new o(h(t,a,s)),c=0,d=s>0?a-4:a;for(n=0;n>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function p(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function f(t,e,n){for(var i,r=[],o=e;ol?l:s+a));return 1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"219c":function(t,e,n){"use strict";var i=n("da84"),r=n("e330"),o=n("d039"),a=n("59ed"),s=n("addb"),l=n("ebb5"),u=n("04d1"),c=n("d998"),h=n("2d00"),d=n("512c"),p=l.aTypedArray,f=l.exportTypedArrayMethod,g=i.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(u)return u<67;if(c)return!0;if(d)return d<602;var t,e,n=new g(516),i=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,i[t]=t-2*e+3;for(m(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==i[t])return!0})),b=function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!==n?-1:e!==e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}};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,n){},"21e1":function(t,e,n){"use strict";var i=n("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===i["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,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("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!==i["b"].is.mobile&&t.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}},"22d1":function(t,e,n){"use strict";var i=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 i,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 n=e.browser,i=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);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.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 n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},"23cb":function(t,e,n){var i=n("5926"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"23e7":function(t,e,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),u=n("94ca");t.exports=function(t,e){var n,c,h,d,p,f,g=t.target,m=t.global,v=t.stat;if(c=m?i:v?i[g]||s(g,{}):(i[g]||{}).prototype,c)for(h in e){if(p=e[h],t.dontCallGetSet?(f=r(c,h),d=f&&f.value):d=c[h],n=u(m?h:g+(v?".":"#")+h,t.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&o(p,"sham",!0),a(c,h,p,t)}}},"241c":function(t,e,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},"241e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var i=n("89a2"),r=g(i),o=n("1ba5"),a=g(o),s=n("583f"),l=g(s),u=n("a5d2"),c=g(u),h=n("e8b2"),d=g(h),p=n("be98"),f=g(p);function g(t){return t&&t.__esModule?t:{default:t}}e.EAN13=r.default,e.EAN8=a.default,e.EAN5=l.default,e.EAN2=c.default,e.UPC=d.default,e.UPCE=f.default},2444:function(t,e,n){"use strict";(function(e){var i=n("c532"),r=n("c8af"),o=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!i.isUndefined(t)&&i.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=n("b50d")),t}function u(t,e,n){if(i.isString(t))try{return(e||JSON.parse)(t),i.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),u(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||r&&i.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, */*"}}};i.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){c.headers[t]=i.merge(a)})),t.exports=c}).call(this,n("4362"))},"24e8":function(t,e,n){"use strict";n("caad");var i=n("2b0e"),r=n("58e5"),o=n("7ee0"),a=n("9e62"),s=n("efe6"),l=n("f376"),u=n("f303"),c=n("a267"),h=n("dde5"),d=n("d882"),p=n("0cd3"),f=n("e704"),g=n("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"]=i["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),c["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:n}=window,i=void 0!==window.visualViewport?window.visualViewport.height:n;t>0&&e>i/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-i,e>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+e-i/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||(c["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(u["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,n){"use strict";var i=n("d066"),r=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=i(t),n=r.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},2635:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=void 0;var i=function(){function t(t,e){for(var n=0;n=0){const t=n[0];for(let o=0;o=1&&t<=40}},"27f9":function(t,e,n){"use strict";n("caad");var i=n("2b0e"),r=n("8572"),o=n("f89c"),a=n("cc78"),s=(n("5319"),n("ddb0"),n("d728"));const l={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},u={"#":{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()}},c=Object.keys(u);c.forEach((t=>{u[t].regex=new RegExp(u[t].pattern)}));const h=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+c.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 i=t-e.length;i>0;i--)n+=p;e=e.slice(0,i)+n+e.slice(i)}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):"_",n=e.replace(d,"\\$&"),i=[],r=[],o=[];let a=!0===this.reverseFillMask,s="",c="";t.replace(h,((t,e,n,l,h)=>{if(void 0!==l){const t=u[l];o.push(t),c=t.negate,!0===a&&(r.push("(?:"+c+"+)?("+t.pattern+"+)?(?:"+c+"+)?("+t.pattern+"+)?"),a=!1),r.push("(?:"+c+"+)?("+t.pattern+")?")}else if(void 0!==n)s="\\"+("\\"===n?"":n),o.push(n),i.push("([^"+s+"]+)?"+s+"?");else{const t=void 0!==e?e:h;s="\\"===t?"\\\\\\\\":t.replace(d,"\\\\$&"),o.push(t),i.push("([^"+s+"]+)?"+s+"?")}}));const f=new RegExp("^"+i.join("")+"("+(""===s?".":"[^"+s+"]")+"+)?$"),g=r.length-1,m=r.map(((t,e)=>0===e&&!0===this.reverseFillMask?new RegExp("^"+n+"*"+t):e===g?new RegExp("^"+t+"("+(""===c?".":c)+"+)?"+(!0===this.reverseFillMask?"$":n+"*")):new RegExp("^"+t)));this.computedMask=o,this.computedUnmask=t=>{const e=f.exec(t);null!==e&&(t=e.slice(1).join(""));const n=[],i=m.length;for(let r=0,o=t;r0?n.join(""):t},this.maskMarked=o.map((t=>"string"===typeof t?t:p)).join(""),this.maskReplaced=this.maskMarked.split(p).join(e)},__updateMaskValue(t,e,n){const i=this.$refs.input,r=i.selectionEnd,o=i.value.length-r,a=this.__unmask(t);!0===e&&this.__updateMaskInternals();const s=this.__mask(a),l=!1!==this.fillMask?this.__fillWithMask(s):s,u=this.innerValue!==l;i.value!==l&&(i.value=l),!0===u&&(this.innerValue=l),document.activeElement===i&&this.$nextTick((()=>{if(l!==this.maskReplaced)if("insertFromPaste"!==n||!0===this.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(n)>-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;i.setSelectionRange(t,t,"forward")}else if(!0===this.reverseFillMask)if(!0===u){const t=Math.max(0,l.length-(l===this.maskReplaced?0:Math.min(s.length,o+1)));1===t&&1===r?i.setSelectionRange(t,t,"forward"):this.__moveCursorRightReverse(i,t,t)}else{const t=l.length-o;i.setSelectionRange(t,t,"backward")}else if(!0===u){const t=Math.max(0,this.maskMarked.indexOf(p),Math.min(s.length,r)-1);this.__moveCursorRight(i,t,t)}else{const t=r-1;this.__moveCursorRight(i,t,t)}else{const t=r-1;this.__moveCursorRight(i,t,t)}else{const t=!0===this.reverseFillMask?this.maskReplaced.length:0;i.setSelectionRange(t,t,"forward")}}));const c=!0===this.unmaskedValue?this.__unmask(l):l;String(this.value)!==c&&this.__emitValue(c,!0)},__moveCursorForPaste(t,e,n){const i=this.__mask(this.__unmask(t.value));e=Math.max(0,this.maskMarked.indexOf(p),Math.min(i.length,e)),t.setSelectionRange(e,n,"forward")},__moveCursorLeft(t,e,n,i){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===i?n:e,"backward")},__moveCursorRight(t,e,n,i){const r=t.value.length;let o=Math.min(r,n+1);for(;o<=r;o++){if(this.maskMarked[o]===p){n=o;break}this.maskMarked[o-1]===p&&(n=o)}if(o>r&&void 0!==this.maskMarked[n-1]&&this.maskMarked[n-1]!==p)return this.__moveCursorLeft(t,r,r);t.setSelectionRange(i?e:n,n,"forward")},__moveCursorLeftReverse(t,e,n,i){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===i?n:e,"backward")},__moveCursorRightReverse(t,e,n,i){const r=t.value.length,o=this.__getPaddedMaskMarked(r),a=-1===o.slice(0,n+1).indexOf(p);let s=Math.min(r,n+1);for(;s<=r;s++)if(o[s-1]===p){n=s,n>0&&!0===a&&n--;break}if(s>r&&void 0!==o[n-1]&&o[n-1]!==p)return this.__moveCursorLeftReverse(t,r,r);t.setSelectionRange(!0===i?e:n,n,"forward")},__onMaskedKeydown(t){if(!0===Object(s["c"])(t))return;const e=this.$refs.input,n=e.selectionStart,i=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,n,i,t.shiftKey)}else 8===t.keyCode&&!0!==this.reverseFillMask&&n===i?this.__moveCursorLeft(e,n,i,!0):46===t.keyCode&&!0===this.reverseFillMask&&n===i&&this.__moveCursorRightReverse(e,n,i,!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 n=0,i="";for(let r=0;r=0&&i>-1;o--){const a=e[o];let s=t[i];if("string"===typeof a)r=a+r,s===a&&i--;else{if(void 0===s||!a.regex.test(s))return r;do{r=(void 0!==a.transform?a.transform(s):s)+r,i--,s=t[i]}while(n===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=n("21e1"),m=n("87e8"),v=n("d882"),y=n("e704");e["a"]=i["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:n,selectionEnd:i}=t.target;void 0!==n&&void 0!==i&&this.$nextTick((()=>{t.target===document.activeElement&&0===e.indexOf(t.target.value)&&t.target.setSelectionRange(n,i)}))}!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:n}=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=n,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,n){"use strict";n("caad");var i=n("2b0e"),r=n("cb32"),o=n("0016"),a=n("9c40"),s=n("0d59"),l=n("d882"),u=n("f303"),c=n("1c16"),h=n("5ff7"),d=n("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,n){if(!t)return M("parameter required");let i;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:n,class:i,attrs:r,...o})=>({staticClass:i,style:n,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!==n){clearTimeout(n.notif.meta.timer),r.meta.uid=n.notif.meta.uid;const t=v[r.position].indexOf(n.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 n=v[r.position].indexOf(e);v[r.position][n]=m[r.meta.group]=r}}const l=()=>{C(r,e),i=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()}:(i={dismiss:l,config:t,notif:r},void 0===n?t=>{if(void 0!==i)if(void 0===t)i.dismiss();else{const n=Object.assign({},i.config,t,{group:!1,position:r.position});S(n,e,i)}}:void Object.assign(n,i))}function C(t,e){clearTimeout(t.meta.timer);const n=v[t.position].indexOf(t);if(-1!==n){void 0!==t.group&&delete m[t.meta.group];const i=e.$refs[""+t.meta.uid];if(i){const{width:t,height:e}=getComputedStyle(i);i.style.left=`${i.offsetLeft}px`,i.style.width=t,i.style.height=e}v[t.position].splice(n,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 O={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:n}=e,i=[];if(!0===n.hasMedia&&(!1!==e.spinner?i.push(t(e.spinner,{staticClass:"q-notification__spinner q-notification__spinner--"+n.leftClass,props:{color:e.spinnerColor,size:e.spinnerSize}})):e.icon?i.push(t(o["a"],{staticClass:"q-notification__icon q-notification__icon--"+n.leftClass,attrs:{role:"img"},props:{name:e.icon,color:e.iconColor,size:e.iconSize}})):e.avatar&&i.push(t(r["a"],{staticClass:"q-notification__avatar q-notification__avatar--"+n.leftClass},[t("img",{attrs:{src:e.avatar,"aria-hidden":"true"}})]))),!0===n.hasText){let n;const r={staticClass:"q-notification__message col"};if(!0===e.html)r.domProps={innerHTML:e.caption?`
${e.message}
${e.caption}
`:e.message};else{const i=[e.message];n=e.caption?[t("div",i),t("div",{staticClass:"q-notification__caption"},[e.caption])]:i}i.push(t("div",r,n))}const s=[t("div",{staticClass:n.contentClass},i)];return!0===e.progress&&s.push(t("div",{key:`${n.uid}|p|${n.badge}`,staticClass:n.progressClass,style:n.progressStyle})),void 0!==e.actions&&s.push(t("div",{staticClass:n.actionsClass},e.actions.map((e=>t(a["a"],{...e}))))),n.badge>1&&s.push(t("div",{key:`${n.uid}|${n.badge}`,staticClass:n.badgeClass,style:e.badgeStyle},[n.badge])),t("div",{ref:""+n.uid,key:n.uid,staticClass:n.staticClass,attrs:n.attrs},[t("div",{staticClass:n.wrapperClass},s)])}))))))},mounted(){if(void 0!==this.$q.fullscreen&&!0===this.$q.fullscreen.isCapable){const t=()=>{const t=Object(u["c"])(this.$q.fullscreen.activeEl);this.$el.parentElement!==t&&t.appendChild(this.$el)};this.unwatchFullscreen=this.$watch("$q.fullscreen.activeEl",Object(c["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",n=t.indexOf("left")>-1?"start":t.indexOf("right")>-1?"end":"center",i=["left","right"].includes(t)?`items-${"left"===t?"start":"end"} justify-center`:"center"===t?"flex-center":`items-${n}`;y[t]=`q-notifications__list q-notifications__list--${e} fixed column no-wrap ${i}`}));const t=document.createElement("div");document.body.appendChild(t),p=new i["a"](O),p.$mount(t)}}}},"2a62":function(t,e,n){var i=n("c65b"),r=n("825a"),o=n("dc4a");t.exports=function(t,e,n){var a,s;r(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw n;return n}a=i(a,t)}catch(l){s=!0,a=l}if("throw"===e)throw n;if(s)throw a;return r(a),n}},"2b0e":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return Yi})); /*! * Vue.js v2.7.8 * (c) 2014-2022 Evan You * Released under the MIT License. */ var i=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 u(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(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 n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,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(n){var i=e[n];return i||(e[n]=t(n))}}var k=/-(\w)/g,M=C((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),O=C((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),T=/\B([A-Z])/g,A=C((function(t){return t.replace(T,"-$1").toLowerCase()}));function I(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function P(t,e){return t.bind(e)}var E=Function.prototype.bind?P:I;function D(t,e){e=e||0;var n=t.length-e,i=new Array(n);while(n--)i[n]=t[n+e];return i}function L(t,e){for(var n in e)t[n]=e[n];return t}function j(t){for(var e={},n=0;n0,it=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 ut={};Object.defineProperty(ut,"passive",{get:function(){lt=!0}}),window.addEventListener("test-passive",null,ut)}catch(Xa){}var ct=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,n,i,r,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=i,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 n=0,i=e.length;n0&&(i=oe(i,"".concat(e||"","_").concat(n)),re(i[0])&&re(c)&&(h[l]=bt(c.text+i[0].text),i.shift()),h.push.apply(h,i)):u(i)?re(c)?h[l]=bt(c.text+i):""!==i&&h.push(bt(i)):re(i)&&re(c)?h[l]=bt(c.text+i.text):(s(t._isVList)&&a(i.tag)&&o(i.key)&&a(e)&&(i.key="__vlist".concat(e,"_").concat(n,"__")),h.push(i)));return h}function ae(t,e){var n,i,o,s,l=null;if(r(t)||"string"===typeof t)for(l=new Array(t.length),n=0,i=t.length;n0,s=e?!!e.$stable:!a,l=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&r&&r!==i&&l===r.$key&&!a&&!r.$hasNormal)return r;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=ke(t,n,u,e[u]))}else o={};for(var c in n)c in o||(o[c]=Me(n,c));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,n,i){var o=function(){var e=gt;mt(t);var n=arguments.length?i.apply(null,arguments):i({});n=n&&"object"===typeof n&&!r(n)?[n]:ie(n);var o=n&&n[0];return mt(e),n&&(!o||1===n.length&&o.isComment&&!Se(o))?void 0:n};return i.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function Me(t,e){return function(){return t[e]}}function Oe(t){var e=t.$options,n=e.setup;if(n){var i=t._setupContext=Te(t);mt(t),Ct();var r=Ue(n,null,[t._props||zt({}),i],t,"setup");if(kt(),mt(),c(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 Te(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};X(e,"_v_attr_proxy",!0),Ae(e,t.$attrs,i,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};Ae(e,t.$listeners,i,t,"$listeners")}return t._listenersProxy},get slots(){return Pe(t)},emit:E(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return Ht(t,e,n)}))}}}function Ae(t,e,n,i,r){var o=!1;for(var a in e)a in t?e[a]!==n[a]&&(o=!0):(o=!0,Ie(t,a,i,r));for(var a in t)a in e||(o=!0,delete t[a]);return o}function Ie(t,e,n,i){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[i][e]}})}function Pe(t){return t._slotsProxy||Ee(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function Ee(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function De(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=xe(e._renderChildren,r),t.$scopedSlots=n?Ce(t.$parent,n.data.scopedSlots,t.$slots):i,t._c=function(e,n,i,r){return qe(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return qe(t,e,n,i,r,!0)};var o=n&&n.data;Rt(t,"$attrs",o&&o.attrs||i,null,!0),Rt(t,"$listeners",e._parentListeners||i,null,!0)}var Le=null;function je(t){_e(t.prototype),t.prototype.$nextTick=function(t){return an(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,o=n._parentVnode;o&&e._isMounted&&(e.$scopedSlots=Ce(e.$parent,o.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&Ee(e._slotsProxy,e.$scopedSlots)),e.$vnode=o;try{mt(e),Le=e,t=i.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,n,i,r){var o=yt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}function Ne(t,e){if(s(t.error)&&a(t.errorComp))return t.errorComp;if(a(t.resolved))return t.resolved;var n=Le;if(n&&a(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),s(t.loading)&&a(t.loadingComp))return t.loadingComp;if(n&&!a(t.owners)){var i=t.owners=[n],r=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return x(i,n)}));var c=function(t){for(var e=0,n=i.length;e1?D(n):n;for(var i=D(arguments,1),r='event handler for "'.concat(t,'"'),o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(zn=function(){return Vn.now()})}var qn=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function $n(){var t,e;for(Fn=zn(),Rn=!0,En.sort(qn),Bn=0;BnBn&&En[n].id>t.id)n--;En.splice(n+1,0,t)}else En.push(t);jn||(jn=!0,an($n))}}function Yn(t){var e=t.$options.provide;if(e){var n=c(e)?e.call(t):e;if(!h(n))return;for(var i=Xt(t),r=ft?Reflect.ownKeys(n):Object.keys(n),o=0;o-1)if(o&&!S(r,"default"))a=!1;else if(""===a||a===A(t)){var l=Oi(String,r.type);(l<0||s-1)return this;var n=D(arguments,1);return n.unshift(this),c(t.install)?t.install.apply(t,n):c(t)&&t.apply(null,n),e.push(t),this}}function Ki(t){t.mixin=function(t){return this.options=_i(this.options,t),this}}function Zi(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=ei(t)||ei(n.options);var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=_i(n.options,t),a["super"]=n,a.options.props&&Qi(a),a.options.computed&&Ji(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,H.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=L({},a.options),r[i]=a,a}}function Qi(t){var e=t.options.props;for(var n in e)Ai(t.prototype,"_props",n)}function Ji(t){var e=t.options.computed;for(var n in e)Ri(t.prototype,n,e[n])}function tr(t){H.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&c(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function er(t){return t&&(ei(t.Ctor.options)||t.tag)}function nr(t,e){return r(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function ir(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!e(s)&&rr(n,o,i,r)}}}function rr(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,x(n,e)}Hi(Yi),qi(Yi),xn(Yi),kn(Yi),je(Yi);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,n=t.keys,i=t.vnodeToCache,r=t.keyToCache;if(i){var o=i.tag,a=i.componentInstance,s=i.componentOptions;e[r]={name:er(s),tag:o,componentInstance:a},n.push(r),this.max&&n.length>parseInt(this.max)&&rr(e,n[0],n,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){ir(t,(function(t){return nr(e,t)}))})),this.$watch("exclude",(function(e){ir(t,(function(t){return!nr(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Fe(t),n=e&&e.componentOptions;if(n){var i=er(n),r=this,o=r.include,a=r.exclude;if(o&&(!i||!nr(o,i))||a&&i&&nr(a,i))return e;var s=this,l=s.cache,u=s.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;l[c]?(e.componentInstance=l[c].componentInstance,x(u,c),u.push(c)):(this.vnodeToCache=e,this.keyToCache=c),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:ui,extend:L,mergeOptions:_i,defineReactive:Rt},t.set=Bt,t.delete=Nt,t.nextTick=an,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),Xi(t),Ki(t),Zi(t),tr(t)}lr(Yi),Object.defineProperty(Yi.prototype,"$isServer",{get:ct}),Object.defineProperty(Yi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Yi,"FunctionalRenderContext",{value:Zn}),Yi.version=un;var ur=b("style,class"),cr=b("input,textarea,option,select,progress"),hr=function(t,e,n){return"value"===n&&cr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"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,n=t,i=t;while(a(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(e=xr(i.data,e));while(a(n=n.parent))n&&n.data&&(e=xr(e,n.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,n="",i=0,r=t.length;i-1?Er[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Er[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 n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Br(t,e){return document.createElementNS(Or[t],e)}function Nr(t){return document.createTextNode(t)}function Fr(t){return document.createComment(t)}function zr(t,e,n){t.insertBefore(e,n)}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:Nr,createComment:Fr,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 n=t.data.ref;if(a(n)){var i=t.context,o=t.componentInstance||t.elm,s=e?null:o,l=e?void 0:o;if(c(n))Ue(n,i,[s],i,"template ref function");else{var u=t.data.refInFor,h="string"===typeof n||"number"===typeof n,d=$t(n),p=i.$refs;if(h||d)if(u){var f=h?p[n]:n.value;e?r(f)&&x(f,o):r(f)?f.includes(o)||f.push(o):h?(p[n]=[o],Zr(i,n,p[n])):n.value=[o]}else if(h){if(e&&p[n]!==o)return;p[n]=l,Zr(i,n,s)}else if(d){if(e&&n.value!==o)return;n.value=s}else 0}}}function Zr(t,e,n){var i=t._setupState;i&&S(i,e)&&($t(i[e])?i[e].value=n:i[e]=n)}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 n,i=a(n=t.data)&&a(n=n.attrs)&&n.type,r=a(n=e.data)&&a(n=n.attrs)&&n.type;return i===r||Lr(i)&&Lr(r)}function no(t,e,n){var i,r,o={};for(i=e;i<=n;++i)r=t[i].key,a(r)&&(o[r]=i);return o}function io(t){var e,n,i={},l=t.modules,c=t.nodeOps;for(e=0;eg?(h=o(n[y+1])?null:n[y+1].elm,C(t,h,n,p,y,i)):p>y&&M(e,d,g)}function A(t,e,n,i){for(var r=n;r-1?go(t,e,n):gr(e)?br(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):dr(e)?t.setAttribute(e,fr(e,n)):vr(e)?br(n)?t.removeAttributeNS(mr,yr(e)):t.setAttributeNS(mr,e,n):go(t,e,n)}function go(t,e,n){if(br(n))t.removeAttribute(e);else{if(et&&!nt&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var mo={create:po,update:po};function vo(t,e){var n=e.elm,i=e.data,r=t.data;if(!(o(i.staticClass)&&o(i.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var s=_r(e),l=n._transitionClasses;a(l)&&(s=Sr(s,Cr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._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,n){var i=yo;return function r(){var o=e.apply(null,arguments);null!==o&&Mo(t,r,n,i)}}var Co=Ze&&!(at&&Number(at[1])<=53);function ko(t,e,n,i){if(Co){var r=Fn,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:n,passive:i}:n)}function Mo(t,e,n,i){(i||yo).removeEventListener(t,e._wrapper||e,n)}function Oo(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},i=t.data.on||{};yo=e.elm||t.elm,wo(n),Qt(n,i,ko,Mo,So,e.context),yo=void 0}}var To,Ao={create:Oo,update:Oo,destroy:function(t){return Oo(t,Qr)}};function Io(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,i,r=e.elm,l=t.data.domProps||{},u=e.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=e.data.domProps=L({},u)),l)n in u||(r[n]="");for(n in u){if(i=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===l[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=i;var c=o(i)?"":String(i);Po(r,c)&&(r.value=c)}else if("innerHTML"===n&&Ar(r.tagName)&&o(r.innerHTML)){To=To||document.createElement("div"),To.innerHTML="".concat(i,"");var h=To.firstChild;while(r.firstChild)r.removeChild(r.firstChild);while(h.firstChild)r.appendChild(h.firstChild)}else if(i!==l[n])try{r[n]=i}catch(Xa){}}}}function Po(t,e){return!t.composing&&("OPTION"===t.tagName||Eo(t,e)||Do(t,e))}function Eo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Xa){}return n&&t.value!==e}function Do(t,e){var n=t.value,i=t._vModifiers;if(a(i)){if(i.number)return y(n)!==y(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}var Lo={create:Io,update:Io},jo=C((function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[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 No(t,e){var n,i={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=Ro(r.data))&&L(i,n)}(n=Ro(t.data))&&L(i,n);var o=t;while(o=o.parent)o.data&&(n=Ro(o.data))&&L(i,n);return i}var Fo,zo=/^--/,Vo=/\s*!important$/,qo=function(t,e,n){if(zo.test(e))t.style.setProperty(e,n);else if(Vo.test(n))t.style.setProperty(A(e),n.replace(Vo,""),"important");else{var i=Ho(e);if(Array.isArray(n))for(var r=0,o=n.length;r-1?e.split(Uo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+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 n=" ".concat(t.getAttribute("class")||""," "),i=" "+e+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):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&&!nt,Jo="transition",ta="animation",ea="transition",na="transitionend",ia="animation",ra="animationend";Qo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ea="WebkitTransition",na="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ia="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 n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Yo(t,e))}function la(t,e){t._transitionClasses&&x(t._transitionClasses,e),Xo(t,e)}function ua(t,e,n){var i=ha(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===Jo?na:ra,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l0&&(n=Jo,c=a,h=o.length):e===ta?u>0&&(n=ta,c=u,h=l.length):(c=Math.max(a,u),n=c>0?a>u?Jo:ta:null,h=n?n===Jo?o.length:l.length:0);var d=n===Jo&&ca.test(i[ea+"Property"]);return{type:n,timeout:c,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=io({nodeOps:Yr,modules:xa});nt&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Ia(t,"input")}));var Sa={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?Jt(n,"postpatch",(function(){Sa.componentUpdated(t,e,n)})):Ca(t,e,n.context),t._vOptions=[].map.call(t.options,Oa)):("textarea"===n.tag||Lr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Ta),t.addEventListener("compositionend",Aa),t.addEventListener("change",Aa),nt&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Ca(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,Oa);if(r.some((function(t,e){return!F(t,i[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,n){ka(t,e,n),(et||it)&&setTimeout((function(){ka(t,e,n)}),0)}function ka(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,l=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(F(Oa(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function Ma(t,e){return e.every((function(e){return!F(e,t)}))}function Oa(t){return"_value"in t?t._value:t.value}function Ta(t){t.target.composing=!0}function Aa(t){t.target.composing&&(t.target.composing=!1,Ia(t.target,"input"))}function Ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Pa(t){return!t.componentInstance||t.data&&t.data.transition?t:Pa(t.componentInstance._vnode)}var Ea={bind:function(t,e,n){var i=e.value;n=Pa(n);var r=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,fa(n,(function(){t.style.display=o}))):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value,r=e.oldValue;if(!i!==!r){n=Pa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?fa(n,(function(){t.style.display=t.__vOriginalDisplay})):ga(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},Da={model:Sa,show:Ea},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(Fe(e.children)):t}function Ra(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var i in r)e[M(i)]=r[i];return e}function Ba(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Na(t){while(t=t.parent)if(t.data.transition)return!0}function Fa(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,n=this.$slots.default;if(n&&(n=n.filter(za),n.length)){0;var i=this.mode;0;var r=n[0];if(Na(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:u(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,c=ja(l);if(o.data.directives&&o.data.directives.some(Va)&&(o.data.show=!0),c&&c.data&&!Fa(o,c)&&!Se(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=L({},s);if("out-in"===i)return this._leaving=!0,Jt(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Ba(t,r);if("in-out"===i){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(n,i){var r=Sn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=Ra(this),s=0;s0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},"2d83":function(t,e,n){"use strict";var i=n("387f");t.exports=function(t,e,n,r,o){var a=new Error(t);return i(a,e,n,r,o)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f3a":function(t,e,n){const i=n("bbf0"),r=n("7bf0");function o(t){this.mode=i.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&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=o},"2f62":function(t,e,n){"use strict";(function(t){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function n(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,n.call(this,t)}}function i(){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 i="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},r=i.__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 n=a(e,(function(e){return e.original===t}));if(n)return n.copy;var i=Array.isArray(t)?[]:{};return e.push({original:t,copy:i}),Object.keys(t).forEach((function(n){i[n]=s(t[n],e)})),i}function l(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function u(t){return null!==t&&"object"===typeof t}function c(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 n=t.state;this.state=("function"===typeof n?n():n)||{}},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,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return void 0;g(t.concat(i),e.getChild(i),n.modules[i])}}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,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},f.prototype.update=function(t){g([],this.root,t)},f.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var r=new d(e,n);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){i.register(t.concat(r),e,n)}))},f.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],i=e.getChild(n);i&&i.runtime&&e.removeChild(n)},f.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var m;var v=function(t){var e=this;void 0===t&&(t={}),!m&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!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,n){return l.call(r,t,e,n)},this.strict=i;var u=this._modules.root.state;w(this,u,[],this._modules.root),x(this,u),n.forEach((function(t){return t(e)}));var c=void 0!==t.devtools?t.devtools:m.config.devtools;c&&o(this)},y={state:{configurable:!0}};function b(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,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 n=t.state;w(t,n,[],t._modules.root,!0),x(t,n,e)}function x(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,o={};l(r,(function(e,n){o[n]=h(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},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&&T(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),m.nextTick((function(){return i.$destroy()})))}function w(t,e,n,i,r){var o=!n.length,a=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=i),!o&&!r){var s=A(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){m.set(s,l,i.state)}))}var u=i.context=S(t,a,n);i.forEachMutation((function(e,n){var i=a+n;k(t,i,e,u)})),i.forEachAction((function(e,n){var i=e.root?n:a+n,r=e.handler||e;M(t,i,r,u)})),i.forEachGetter((function(e,n){var i=a+n;O(t,i,e,u)})),i.forEachChild((function(i,o){w(t,e,n.concat(o),i,r)}))}function S(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=I(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:i?t.commit:function(n,i,r){var o=I(n,i,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:i?function(){return t.getters}:function(){return C(t,e)}},state:{get:function(){return A(t.state,n)}}}),r}function C(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function k(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){n.call(t,i.state,e)}))}function M(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return c(r)||(r=Promise.resolve(r)),t._devtoolHook?r.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):r}))}function O(t,e,n,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)})}function T(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,n){return u(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function P(t){m&&t===m||(m=t,n(m))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},v.prototype.commit=function(t,e,n){var i=this,r=I(t,e,n),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,i.state)})))},v.prototype.dispatch=function(t,e){var n=this,i=I(t,e),r=i.type,o=i.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,n.state)}))}catch(u){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{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},v.prototype.subscribe=function(t,e){return b(t,this._subscribers,e)},v.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return b(n,this._actionSubscribers,e)},v.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},v.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},v.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),w(this,this.state,t,this._modules.get(t),n.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 n=A(e.state,t.slice(0,-1));m.delete(n,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 E=F((function(t,e){var n={};return B(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=z(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0})),n})),D=F((function(t,e){var n={};return B(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=z(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),L=F((function(t,e){var n={};return B(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||z(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),j=F((function(t,e){var n={};return B(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=z(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),R=function(t){return{mapState:E.bind(null,t),mapGetters:L.bind(null,t),mapMutations:D.bind(null,t),mapActions:j.bind(null,t)}};function B(t){return N(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 N(t){return Array.isArray(t)||u(t)}function F(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function z(t,e,n){var i=t._modulesNamespaceMap[n];return i}function V(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var i=t.transformer;void 0===i&&(i=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 u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var h=s(t.state);"undefined"!==typeof c&&(l&&t.subscribe((function(t,o){var a=s(o);if(n(t,h,a)){var l=H(),u=r(t),d="mutation "+t.type+l;q(c,d,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",i(a)),$(c)}h=a})),u&&t.subscribeAction((function(t,n){if(o(t,n)){var i=H(),r=a(t),s="action "+t.type+i;q(c,s,e),c.log("%c action","color: #03A9F4; font-weight: bold",r),$(c)}})))}}function q(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.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:E,mapMutations:D,mapGetters:L,mapActions:j,createNamespacedHelpers:R,createLogger:V};e["a"]=U}).call(this,n("23b3"))},"30b5":function(t,e,n){"use strict";var i=n("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,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.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,n){"use strict";var i={};n.r(i),n.d(i,"updateProps",(function(){return Nl})),n.d(i,"initProps",(function(){return Fl})),n.d(i,"removeElement",(function(){return Vl})),n.d(i,"removeElementWithFadeOut",(function(){return $l})),n.d(i,"isElementRemoved",(function(){return zl})),n.d(i,"extendShape",(function(){return sm})),n.d(i,"extendPath",(function(){return um})),n.d(i,"registerShape",(function(){return cm})),n.d(i,"getShapeClass",(function(){return hm})),n.d(i,"makePath",(function(){return dm})),n.d(i,"makeImage",(function(){return pm})),n.d(i,"mergePath",(function(){return gm})),n.d(i,"resizePath",(function(){return mm})),n.d(i,"subPixelOptimizeLine",(function(){return vm})),n.d(i,"subPixelOptimizeRect",(function(){return ym})),n.d(i,"subPixelOptimize",(function(){return bm})),n.d(i,"getTransform",(function(){return _m})),n.d(i,"applyTransform",(function(){return xm})),n.d(i,"transformDirection",(function(){return wm})),n.d(i,"groupTransition",(function(){return km})),n.d(i,"clipPointsByRect",(function(){return Mm})),n.d(i,"clipRectByRect",(function(){return Om})),n.d(i,"createIcon",(function(){return Tm})),n.d(i,"linePolygonIntersect",(function(){return Am})),n.d(i,"lineLineIntersect",(function(){return Im})),n.d(i,"setTooltipConfig",(function(){return Dm})),n.d(i,"traverseElements",(function(){return jm})),n.d(i,"Group",(function(){return bi})),n.d(i,"Image",(function(){return Ga})),n.d(i,"Text",(function(){return ys})),n.d(i,"Circle",(function(){return Kf})),n.d(i,"Ellipse",(function(){return Jf})),n.d(i,"Sector",(function(){return vg})),n.d(i,"Ring",(function(){return _g})),n.d(i,"Polygon",(function(){return kg})),n.d(i,"Polyline",(function(){return Tg})),n.d(i,"Rect",(function(){return ts})),n.d(i,"Line",(function(){return Eg})),n.d(i,"BezierCurve",(function(){return Bg})),n.d(i,"Arc",(function(){return zg})),n.d(i,"IncrementalDisplayable",(function(){return im})),n.d(i,"CompoundPath",(function(){return qg})),n.d(i,"LinearGradient",(function(){return Wg})),n.d(i,"RadialGradient",(function(){return Yg})),n.d(i,"BoundingRect",(function(){return Wn})),n.d(i,"OrientedBoundingRect",(function(){return tm})),n.d(i,"Point",(function(){return Rn})),n.d(i,"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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var a=n("22d1"),s=n("6d8b"),l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)};function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function c(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,n){return t[0]=e,t[1]=n,t}function f(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function g(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function m(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[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,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function _(t,e){var n=v(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),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,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function O(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[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 n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new A(e,t),"drag",t.event);var a=this.handler.findHover(n,i,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,E=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(i=n,n=e,e=null),!n||!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",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function q(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?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,n,i){return n=n||{},i?Y(t,e,n):W&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Y(t,e,n),n}function Y(t,e,n){if(a["a"].domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if($(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(z(G,t,i,r))return n.zrX=G[0],void(n.zrY=G[1])}n.zrX=n.zrY=0}function X(t){return t||window.event}function K(t,e,n){if(e=X(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&U(t,o,e,n)}else{U(t,e,e,n);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 n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function Q(t,e,n,i){t.addEventListener(e,n,i)}function J(t,e,n,i){t.removeEventListener(e,n,i)}var tt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function et(t){return 2===t.which||3===t.which}var nt=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&i&&i.length>1){var o=it(i)/it(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=rt(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},at="silent";function st(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:lt}}function lt(){tt(this.event)}var ut=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return u(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(D),ct=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,n,i,r){var o=t.call(this)||this;return o._hovered=new ct(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new ut,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new P(o),o}return u(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,n=t.zrY,i=ft(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new ct(e,n):this.findHover(e,n),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 ct(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.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,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,o=st(e,t,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.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,n){for(var i=this.storage.getDisplayList(),r=new ct(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=pt(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==at)){r.target=i[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new nt);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new ct;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(D);function pt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i=t,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||at}return!1}function ft(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}s["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){dt.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=ft(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;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(n,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,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r=0)r++;return r-e}function _t(t,e,n){n--;while(e>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){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(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function wt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){s=i-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 u=a;a=r-l,l=r-u}a++;while(a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function St(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-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[n+c])<0?l=c:a=c+1}return l}function Ct(t,e){var n,i,r=vt,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,i[a]=e,a+=1}function u(){while(a>1){var t=a-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;h(t)}}function c(){while(a>1){var t=a-2;t>0&&i[t-1]=vt||p>=vt);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l=0;l--)t[p+l]=t[d+l];if(0===i){v=!0;break}}if(t[h--]=s[c--],1===--a){v=!0;break}if(m=a-wt(t[u],s,0,a,a-1,e),0!==m){for(h-=m,c-=m,a-=m,p=h+1,d=c+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-=i,u-=i,p=h+1,d=u+1,l=i-1;l>=0;l--)t[p+l]=t[d+l];t[h]=s[c]}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[c]}else for(d=h-(a-1),l=0;ls&&(l=s),xt(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var Mt=1,Ot=2,Tt=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 Et,Dt=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Pt}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(It(),u.z=0),isNaN(u.z2)&&(It(),u.z2=0),isNaN(u.zlevel)&&(It(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},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,n=t.length;e=0&&this._roots.splice(i,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=Dt;Et=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=Et,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,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.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,Nt=Math.pow,Ft=Math.sqrt,zt=1e-8,Vt=1e-4,qt=Ft(3),$t=1/3,Ht=c(),Gt=c(),Wt=c();function Ut(t){return t>-zt&&tzt||t<-zt}function Xt(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Kt(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Zt(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(Ut(c)&&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*c*d;if(Ut(g)){var m=h/c,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=Ft(g),b=c*s+1.5*a*(-h+y),_=c*s+1.5*a*(-h-y);b=b<0?-Nt(-b,$t):Nt(b,$t),_=_<0?-Nt(-_,$t):Nt(_,$t);f=(-s-(b+_))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var x=(2*c*s-3*a*h)/(2*Ft(c*c*c)),w=Math.acos(x)/3,S=Ft(c),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,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Ut(a)){if(Yt(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(Ut(c))r[0]=-o/(2*a);else if(c>0){var h=Ft(c),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function Jt(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function te(t,e,n,i,r,o,a,s,l,u,c){var h,d,p,f,g,m=.005,v=1/0;Ht[0]=l,Ht[1]=u;for(var y=0;y<1;y+=.05)Gt[0]=Xt(t,n,r,a,y),Gt[1]=Xt(e,i,o,s,y),f=C(Ht,Gt),f=0&&f=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(Ut(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=Ft(c),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function oe(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function ae(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function se(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;Ht[0]=a,Ht[1]=s;for(var d=0;d<1;d+=.05){Gt[0]=ne(t,n,r,d),Gt[1]=ne(e,i,o,d);var p=C(Ht,Gt);p=0&&p=1?1:Zt(0,i,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 n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;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=i%n;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]||ce(t)},t}(),de=he,pe=n("41ef"),fe=n("7a29"),ge=Array.prototype.slice;function me(t,e,n){return(e-t)*n+t}function ve(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=Ee,l=e;if(Object(s["u"])(e)){var u=ke(e);a=u,(1===u&&!Object(s["z"])(e[0])||2===u&&!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 c=pe["g"](e);c&&(l=c,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!==Ee||(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:e,percent:0};return n&&(d.easing=n,d.easingFunc=Object(s["w"])(n)?n:Bt[n]||ce(n)),i.push(d),d},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Le(i),l=De(i),u=0;u=0;n--)if(u[n].percent<=e)break;n=f(n,c-2)}else{for(n=p;ne)break;n=f(n-1,c-2)}r=u[n+1],i=u[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var m=r.percent-i.percent,v=0===m?1:f((e-i.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?i.rawValue:r.rawValue;else if(Le(l))l===Oe?ve(y,i[a],r[a],v):ye(y,i[a],r[a],v);else if(De(l)){var b=i[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 n=_.colorStops[e];return{offset:me(t.offset,n.offset,v),color:Ce(ve([],t.color,n.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,i[a],r[a],v),o||(t[h]=Ce(y));else{var w=me(i[a],r[a],v);o?this._additiveValue=w:t[h]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Me?t[n]=t[n]+i:e===Ae?(pe["g"](t[n],je),be(je,je,i,1),t[n]=Ce(je)):e===Oe?be(t[n],t[n],i,1):e===Te&&_e(t[n],t[n],i,1)},t}(),Be=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?Object(s["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}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,n){return this.whenWithKeys(t,e,Object(s["F"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,Se(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Se(e[a]),i)}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,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),Ne=Be;function Fe(){return(new Date).getTime()}var ze=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return u(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,n=t.next;e?e.next=n:this._head=n,n?n.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=Fe()-this._pausedTime,n=e-this._time,i=this._head;while(i){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),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=Fe(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Fe(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Fe()-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 n=new Ne(t,e.loop);return this.addAnimator(n),n},e}(D),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"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=s["H"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),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 n=e,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return i}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.__lastTouchMomentkn||t<-kn}var On=[],Tn=[],An=gn(),In=Math.abs,Pn=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 Mn(this.rotation)||Mn(this.x)||Mn(this.y)||Mn(this.scaleX-1)||Mn(this.scaleY-1)||Mn(this.skewX)||Mn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||gn(),e?this.getLocalTransform(n):Cn(n),t&&(e?yn(n,t,n):vn(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Cn(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(On);var n=On[0]<0?-1:1,i=On[1]<0?-1:1,r=((On[0]-n)*e+n)/On[0]||0,o=((On[1]-i)*e+i)/On[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||gn(),wn(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],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(yn(Tn,t.invTransform,e),e=Tn);var n=this.originX,i=this.originY;(n||i)&&(An[4]=n,An[5]=i,yn(Tn,e,An),Tn[4]-=n,Tn[5]-=i,e=Tn),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 n=[t,e],i=this.invTransform;return i&&M(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&M(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&In(t[0]-1)>1e-10&&In(t[3]-1)>1e-10?Math.sqrt(In(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Dn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+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&&_n(e,e,l),e[4]+=n+u,e[5]+=i+c,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}(),En=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Dn(t,e){for(var n=0;nf&&(f=b,gf&&(f=_,v=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.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,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.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))}Fn.x=Vn.x=n.x,Fn.y=qn.y=n.y,zn.x=qn.x=n.x+n.width,zn.y=Vn.y=n.y+n.height,Fn.transform(i),qn.transform(i),zn.transform(i),Vn.transform(i),e.x=Bn(Fn.x,zn.x,Vn.x,qn.x),e.y=Bn(Fn.y,zn.y,Vn.y,qn.y);var l=Nn(Fn.x,zn.x,Vn.x,qn.x),u=Nn(Fn.y,zn.y,Vn.y,qn.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Wn=Gn,Un=n("d51b"),Yn=n("726e"),Xn={};function Kn(t,e){e=e||Yn["a"];var n=Xn[e];n||(n=Xn[e]=new Un["a"](500));var i=n.get(t);return null==i&&(i=Yn["d"].measureText(t,e).width,n.put(t,i)),i}function Zn(t,e,n,i){var r=Kn(t,e),o=ei(e),a=Jn(0,r,n),s=ti(0,o,i),l=new Wn(a,s,r,o);return l}function Qn(t,e,n,i){var r=((t||"")+"").split("\n"),o=r.length;if(1===o)return Zn(r[0],e,n,i);for(var a=new Wn(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function ii(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=ni(i[0],n.width),u+=ni(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var ri="__zr_normal__",oi=En.concat(["ignore"]),ai=Object(s["N"])(En,(function(t,e){return t[e]=!0,t}),{ignore:!1}),si={},li=new Wn(0,0,0,0),ui=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,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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 n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=li;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(si,n,u):ii(si,n,u),r.x=si.x,r.y=si.y,o=si.align,a=si.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=ni(c[0],u.width),d=ni(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.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()?pn:dn},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(pe["g"])(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Object(pe["h"])(n,"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 n=t,i=Object(s["F"])(n),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(ri,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===ri,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 u;if(this.stateProxy&&!r&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),u||r){r||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,d=this._textGuide;return h&&h.useState(t,e,n,c),d&&d.useState(t,e,n,c),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mt),u}Object(s["G"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],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 n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=Object(s["r"])(i,t),o=Object(s["r"])(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||r.force&&!a.length){var k=void 0,M=void 0,O=void 0;if(l){M={},p&&(k={});for(x=0;x<_;x++){y=m[x];M[y]=n[y],p?k[y]=i[y]:n[y]=i[y]}}else if(p){O={};for(x=0;x<_;x++){y=m[x];O[y]=Se(n[y]),pi(n,i,y)}}w=new Ne(n,!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),O&&w.whenWithKeys(0,O,m),w.whenWithKeys(null==c?500:c,l?M:i,m).delay(h||0),t.addAnimator(w,e),a.push(w)}}Object(s["K"])(ui,D),Object(s["K"])(ui,Ln);var vi=ui,yi=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return u(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,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=s["r"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.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,n=this._children,i=s["r"](n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(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,n){return this.handler.on(t,e,n),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*u+a}function Pi(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)?Ai(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Ei(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Ti),t=(+t).toFixed(e),n?t:+t}function Di(t){return t.sort((function(t,e){return t-e})),t}function Li(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ji(t)}function ji(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function Ri(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Bi(t,e,n){if(!t[e])return 0;var i=s["N"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;var r=Math.pow(10,n),o=s["H"](t,(function(t){return(isNaN(t)?0:t)/i*r*100})),a=100*r,l=s["H"](o,(function(t){return Math.floor(t)})),u=s["N"](l,(function(t,e){return t+e}),0),c=s["H"](o,(function(t,e){return t-l[e]}));while(uh&&(h=c[p],d=p);++l[d],c[d]=0,++u}return l[e]/r}function Ni(t,e){var n=Math.max(Li(t),Li(e)),i=t+e;return n>Ti?i:Ei(i,n)}var Fi=9007199254740991;function zi(t){var e=2*Math.PI;return(t%e+e)%e}function Vi(t){return t>-Oi&&t=10&&e++,e}function Wi(t,e){var n,i=Gi(t),r=Math.pow(10,i),o=t/r;return n=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=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function Ui(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Yi(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0||r&&s["r"](r,l)<0)){var u=n.getShallow(l,e);null!=u&&(o[t[a][0]]=u)}}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 Un["a"](50);function eo(t){if("string"===typeof t){var e=to.get(t);return e&&e.image}return t}function no(t,e,n,i,r){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=to.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!ro(e)&&o.pending.push(a)):(e=Yn["d"].loadImage(t,io,io),e.__zrImageSrc=t,to.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function io(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;u++)l-=a;var c=Kn(n,e);return c>l&&(n="",c=0),l=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=t,r}function lo(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Kn(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?uo(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Kn(t,i)}return""===t&&(t=e.placeholder),t}function uo(t,e,n,i){for(var r=0,o=0,a=t.length;of&&h){var g=Math.floor(f/u);n=n.slice(0,g)}if(t&&a&&null!=d)for(var m=so(d,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vu&&mo(n,t.substring(u,c),e,l),mo(n,i[2],e,l,i[1]),u=oo.lastIndex}uo){w>0?(b.tokens=b.tokens.slice(0,w),v(b,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.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=Kn(S.text,O);else{if(I){var P=C.backgroundColor,E=P&&P.image;E&&(E=eo(E),ro(E)&&(S.width=Math.max(S.width,E.width*T/E.height)))}var D=g&&null!=r?r-x:null;null!=D&&D0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=_o(e,c,i.width,i.breakAll,i.accumWidth);i.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,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:r+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(c+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,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 u(e,t),e.prototype._init=function(e){for(var n=Object(s["F"])(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Ro[0]=Lo(r)*n+t,Ro[1]=Do(r)*i+e,Bo[0]=Lo(o)*n+t,Bo[1]=Do(o)*i+e,u(s,Ro,Bo),c(l,Ro,Bo),r%=jo,r<0&&(r+=jo),o%=jo,o<0&&(o+=jo),r>o&&!a?o+=jo:rr&&(No[0]=Lo(p)*n+t,No[1]=Do(p)*i+e,u(s,No,s),c(l,No,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,na=Math.sin,ia=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 ua(t,e){var n=la(t[0]);n<0&&(n+=oa);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=oa?r=n+oa:e&&n-r>=oa?r=n-oa:!e&&n>r?r=n+(oa-la(n-r)):e&&n0&&(this._ux=ia(n/cn/t)||0,this._uy=ia(n/cn/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 n=ia(t-this._xi),i=ia(e-this._yi),r=n>this._ux||i>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=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Wo.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Wo.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),sa[0]=i,sa[1]=r,ua(sa,o),i=sa[0],r=sa[1];var a=r-i;return this.addData(Wo.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=ea(r)*n+t,this._yi=na(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Wo.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Wo.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,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 n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(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,n=0,i=0,r=0,o=0;for(t=0;tn||ia(y)>i||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++],O=t[h++],T=t[h++],A=T+O;h+=1;t[h++];p&&(a=ea(O)*k+S,s=na(O)*M+C),f=ta(k,M)*Jo(oa,Math.abs(T)),r=ea(A)*k+S,o=na(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[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,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,u=this._pathLen,c=e*u,c))t:for(var x=0;x0&&(t.lineTo(h,d),_=0),w){case Wo.M:n=r=p[x++],i=o=p[x++],t.moveTo(r,o);break;case Wo.L:a=p[x++],s=p[x++];var C=ia(a-r),k=ia(s-o);if(C>f||k>g){if(v){var M=l[b++];if(y+M>c){var O=(c-y)/M;t.lineTo(r*(1-O)+a*O,o*(1-O)+s*O);break t}y+=M}t.lineTo(a,s),r=a,o=s,_=0}else{var T=C*C+k*k;T>_&&(h=a,d=s,_=T)}break;case Wo.C:var A=p[x++],I=p[x++],P=p[x++],E=p[x++],D=p[x++],L=p[x++];if(v){M=l[b++];if(y+M>c){O=(c-y)/M;Jt(r,A,P,D,O,Uo),Jt(o,I,E,L,O,Yo),t.bezierCurveTo(Uo[1],Yo[1],Uo[2],Yo[2],Uo[3],Yo[3]);break t}y+=M}t.bezierCurveTo(A,I,P,E,D,L),r=D,o=L;break;case Wo.Q:A=p[x++],I=p[x++],P=p[x++],E=p[x++];if(v){M=l[b++];if(y+M>c){O=(c-y)/M;ae(r,A,P,O,Uo),ae(o,I,E,O,Yo),t.quadraticCurveTo(Uo[1],Yo[1],Uo[2],Yo[2]);break t}y+=M}t.quadraticCurveTo(A,I,P,E),r=P,o=E;break;case Wo.A:var j=p[x++],R=p[x++],B=p[x++],N=p[x++],F=p[x++],z=p[x++],V=p[x++],q=!p[x++],$=B>N?B:N,H=ia(B-N)>.001,G=F+z,W=!1;if(v){M=l[b++];y+M>c&&(G=F+z*(c-y)/M,W=!0),y+=M}if(H&&t.ellipse?t.ellipse(j,R,B,N,V,F,G,q):t.arc(j,R,$,F,G,q),W)break t;S&&(n=ea(F)*B+j,i=na(F)*N+R),r=ea(G)*B+j,o=na(G)*N+R;break;case Wo.R:n=r=p[x],i=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>c){var X=c-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>c){O=(c-y)/M;t.lineTo(r*(1-O)+n*O,o*(1-O)+i*O);break t}y+=M}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),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=ca;function da(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+h&&c>i+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>r+h&&u>a+h||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||c+ur&&(r+=va);var d=Math.atan2(l,s);return d<0&&(d+=va),d>=i&&d<=r||d+va>=i&&d+va<=r}function ba(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var _a=ha.CMD,xa=2*Math.PI,wa=1e-4;function Sa(t,e){return Math.abs(t-e)e&&u>i&&u>o&&u>s||u1&&Ma(),p=Xt(e,i,o,s,ka[0]),d>1&&(f=Xt(e,i,o,s,ka[1]))),2===d?me&&s>i&&s>o||s=0&&u<=1){for(var c=0,h=ne(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ca[0]=-l,Ca[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=xa-1e-4){i=0,r=xa;var c=o?1:-1;return a>=Ca[0]+t&&a<=Ca[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=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);c=o?1:-1;g<0&&(g=xa+g),(g>=i&&g<=r||g+xa>=i&&g+xa<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Ia(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,p=0,f=0;f1&&(n||(u+=ba(c,h,d,p,i,r))),m&&(c=s[f],h=s[f+1],d=c,p=h),g){case _a.M:d=s[f++],p=s[f++],c=d,h=p;break;case _a.L:if(n){if(da(c,h,s[f],s[f+1],e,i,r))return!0}else u+=ba(c,h,s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case _a.C:if(n){if(pa(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=Oa(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case _a.Q:if(n){if(fa(c,h,s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=Ta(c,h,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=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):u+=ba(c,h,o,a,i,r);var C=(i-v)*_/b+v;if(n){if(ya(v,y,_,x,x+w,S,e,C,r))return!0}else u+=Aa(v,y,_,x,x+w,S,C,r);c=Math.cos(x+w)*b+v,h=Math.sin(x+w)*_+y;break;case _a.R:d=c=s[f++],p=h=s[f++];var k=s[f++],M=s[f++];if(o=d+k,a=p+M,n){if(da(d,p,o,p,e,i,r)||da(o,p,o,a,e,i,r)||da(o,a,d,a,e,i,r)||da(d,a,d,p,e,i,r))return!0}else u+=ba(o,p,o,a,i,r),u+=ba(d,a,d,p,i,r);break;case _a.Z:if(n){if(da(c,h,d,p,e,i,r))return!0}else u+=ba(c,h,d,p,i,r);c=d,h=p;break}}return n||Sa(h,p)||(u+=ba(c,h,d,p,i,r)||0),0!==u}function Pa(t,e,n){return Ia(t,0,!1,e,n)}function Ea(t,e,n,i){return Ia(t,e,!0,n,i)}var Da=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=En.concat(["invisible","culling","z","z2","zlevel","parent"]),Ra=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?dn:e>.2?fn:pn}if(t)return pn}return dn},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(s["C"])(e)){var n=this.__zr,i=!(!n||!n.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,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Tt)&&(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||n){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 n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.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)),Ea(o,a/s,t,e)))return!0}if(this.hasFill())return Pa(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Tt,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,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(s["m"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Tt)},e.prototype.createStyle=function(t){return Object(s["g"])(Da,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(s["m"])({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var l,u=!(n&&r);if(n&&n.shape?o?r?l=n.shape:(l=Object(s["m"])({},i.shape),Object(s["m"])(l,n.shape)):(l=Object(s["m"])({},r?this.shape:i.shape),Object(s["m"])(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=Object(s["m"])({},this.shape);for(var c={},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"])(Na,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 n=Qn(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Io);Fa.prototype.type="tspan";var za=Fa,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 u(e,t),e.prototype.createStyle=function(t){return Object(s["g"])(Va,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=$a(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[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 Wn(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 n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var Ua=Math.round;function Ya(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Ua(2*i)===Ua(2*r)&&(t.x1=t.x2=Ka(i,s,!0)),Ua(2*o)===Ua(2*a)&&(t.y1=t.y2=Ka(o,s,!0)),t):t}}function Xa(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ka(i,s,!0),t.y=Ka(r,s,!0),t.width=Math.max(Ka(i+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,n){if(!e)return t;var i=Ua(2*t);return(i+Ua(e))%2===0?i/2:(i+(n?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 u(e,t),e.prototype.getDefaultShape=function(){return new Za},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Xa(Qa,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?Wa(t,e):t.rect(n,i,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"},ns=2,is={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 n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=es,n.attr(e),n}return u(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),O=r.calculatedLineHeight,T=0;T=0&&(T=_[O],"right"===T.align))this._placeToken(T,t,w,g,M,"right",v),S-=T.width,M-=T.width,O--;k+=(i-(k-f)-(m-M)-S)/2;while(C<=O)T=_[C],this._placeToken(T,t,w,g,k+T.width/2,"center",v),k+=T.width,C++;g+=w}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var l=e.rich[t.styleName]||{};l.text=t.text;var u=t.verticalAlign,c=i+n/2;"top"===u?c=i+t.height/2:"bottom"===u&&(c=i+n-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,c-t.height/2,t.width,t.height);var d=!!l.backgroundColor,p=t.textPadding;p&&(r=gs(r,o,p),c-=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=ns,m.stroke)),x=l.textShadowBlur>0||e.textShadowBlur>0;g.text=t.text,g.x=r,g.y=c,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||Yn["a"],g.opacity=Object(s["Q"])(l.opacity,e.opacity,1),us(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 Wn(Jn(g.x,w,g.textAlign),ti(g.y,S,g.textBaseline),w,S))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,p=u&&!d,f=t.borderRadius,g=this;if(p||t.lineHeight||c&&h){a=this._getOrCreateChild(ts),a.useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=f,a.dirtyShape()}if(p){var v=a.style;v.fill=u||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=u.image,y.x=n,y.y=i,y.width=r,y.height=o}if(c&&h){v=a.style;v.lineWidth=c,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 cs(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)?Yn["c"]+"px":t+"px":t}function us(t,e){for(var n=0;n=0,o=!1;if(t instanceof Ba){var a=Ss(t),l=r&&a.selectFill||a.normalFill,u=r&&a.selectStroke||a.normalStroke;if(Bs(l)||Bs(u)){i=i||{};var c=i.style||{};"inherit"===c.fill?(o=!0,i=Object(s["m"])({},i),c=Object(s["m"])({},c),c.fill=l):!Bs(c.fill)&&Bs(l)?(o=!0,i=Object(s["m"])({},i),c=Object(s["m"])({},c),c.fill=Fs(l)):!Bs(c.stroke)&&Bs(u)&&(o||(i=Object(s["m"])({},i),c=Object(s["m"])({},c)),c.stroke=Fs(u)),i.style=c}}if(i&&null==i.z2){o||(i=Object(s["m"])({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:Is)}return i}function Qs(t,e,n){if(n&&null==n.z2){n=Object(s["m"])({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Ps)}return n}function Js(t,e,n){var i=Object(s["r"])(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:Ks(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(s["m"])({},n),a=Object(s["m"])({opacity:i?r:.1*o.opacity},a),n.style=a),n}function tl(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Zs(this,t,e,n);if("blur"===t)return Js(this,t,n);if("select"===t)return Qs(this,t,n)}return n}function el(t){t.stateProxy=tl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=tl),n&&(n.stateProxy=tl)}function nl(t,e){!cl(t,e)&&!t.__highByOuter&&Ys(t,Vs)}function il(t,e){!cl(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 ul(t){Ys(t,Ws)}function cl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function hl(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=Cs(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){Hs(t)})),a&&n.push(r)),o.isBlured=!1})),Object(s["k"])(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function dl(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function xl(t,e,n){Tl(t,!0),Ys(t,el),Cl(t,e,n)}function wl(t){Tl(t,!1)}function Sl(t,e,n,i){i?wl(t):xl(t,e,n)}function Cl(t,e,n){var i=bs(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var kl=["emphasis","blur","select"],Ml={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ol(t,e,n,i){n=n||"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:!c,scope:t,during:a};u?e.animateFrom(n,g):e.animateTo(n,g)}else e.stopAnimation(),!u&&e.attr(n),a&&a(1),o&&o()}function Nl(t,e,n,i,r,o){Bl("update",t,e,n,i,r,o)}function Fl(t,e,n,i,r,o){Bl("enter",t,e,n,i,r,o)}function zl(t){if(!t.__zr)return!0;for(var e=0;e=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=n(e),a=o.graph,l=o.noEntryList,u={};s["k"](t,(function(t){u[t]=!0}));while(l.length){var c=l.pop(),h=a[c],d=!!u[c];d&&(i.call(r,c,h.originalDeps.slice()),delete u[c]),s["k"](h.successor,d?f:p)}s["k"](u,(function(){var t="";throw new Error(t)}))}function p(t){a[t].entryCount--,0===a[t].entryCount&&l.push(t)}function f(t){u[t]=!0,p(t)}}}function Mu(t,e){return s["I"](s["I"]({},t,!0),e,!0)}var Ou={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:". "}}}},Tu={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:""}}}},Au="ZH",Iu="EN",Pu=Iu,Eu={},Du={},Lu=a["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Au)>-1?Au:Pu}():Pu;function ju(t,e){t=t.toUpperCase(),Du[t]=new xu(e),Eu[t]=e}function Ru(t){if(Object(s["C"])(t)){var e=Eu[t.toUpperCase()]||{};return t===Au||t===Iu?Object(s["d"])(e):Object(s["I"])(Object(s["d"])(e),Object(s["d"])(Eu[Pu]),!1)}return Object(s["I"])(Object(s["d"])(t),Object(s["d"])(Eu[Pu]),!1)}function Bu(t){return Du[t]}function Nu(){return Du[Pu]}ju(Iu,Ou),ju(Au,Tu);var Fu=1e3,zu=60*Fu,Vu=60*zu,qu=24*Vu,$u=365*qu,Hu={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}"},Gu="{yyyy}-{MM}-{dd}",Wu={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gu,hour:Gu+" "+Hu.hour,minute:Gu+" "+Hu.minute,second:Gu+" "+Hu.second,millisecond:Hu.none},Uu=["year","month","day","hour","minute","second","millisecond"],Yu=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Xu(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ku(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 Zu(t){return t===Ku(t)}function Qu(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ju(t,e,n,i){var r=$i(t),o=r[ic(n)](),a=r[rc(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[oc(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[ac(n)](),h=(c-1)%12+1,d=r[sc(n)](),p=r[lc(n)](),f=r[uc(n)](),g=i instanceof xu?i:Bu(i||Lu)||Nu(),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,Xu(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Xu(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Xu(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Xu(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Xu(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Xu(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Xu(f,3)).replace(/{S}/g,f+"")}function tc(t,e,n,i,r){var o=null;if(s["C"](n))o=n;else if(s["w"](n))o=n(t.value,e,{level:t.level});else{var a=s["m"]({},Hu);if(t.level>0)for(var l=0;l=0;--l)if(u[c]){o=u[c];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 Ju(new Date(t.value),o,r,i)}function ec(t,e){var n=$i(t),i=n[rc(e)]()+1,r=n[oc(e)](),o=n[ac(e)](),a=n[sc(e)](),s=n[lc(e)](),l=n[uc(e)](),u=0===l,c=u&&0===s,h=c&&0===a,d=h&&0===o,p=d&&1===r,f=p&&1===i;return f?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function nc(t,e,n){var i=s["z"](t)?$i(t):t;switch(e=e||ec(t,n),e){case"year":return i[ic(n)]();case"half-year":return i[rc(n)]()>=6?1:0;case"quarter":return Math.floor((i[rc(n)]()+1)/4);case"month":return i[rc(n)]();case"day":return i[oc(n)]();case"half-day":return i[ac(n)]()/24;case"hour":return i[ac(n)]();case"minute":return i[sc(n)]();case"second":return i[lc(n)]();case"millisecond":return i[uc(n)]()}}function ic(t){return t?"getUTCFullYear":"getFullYear"}function rc(t){return t?"getUTCMonth":"getMonth"}function oc(t){return t?"getUTCDate":"getDate"}function ac(t){return t?"getUTCHours":"getHours"}function sc(t){return t?"getUTCMinutes":"getMinutes"}function lc(t){return t?"getUTCSeconds":"getSeconds"}function uc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function cc(t){return t?"setUTCFullYear":"setFullYear"}function hc(t){return t?"setUTCMonth":"setMonth"}function dc(t){return t?"setUTCDate":"setDate"}function pc(t){return t?"setUTCHours":"setHours"}function fc(t){return t?"setUTCMinutes":"setMinutes"}function gc(t){return t?"setUTCSeconds":"setSeconds"}function mc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function vc(t){if(!Ki(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 yc(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 bc=s["M"],_c=/([&<>"'])/g,xc={"&":"&","<":"<",">":">",'"':""","'":"'"};function wc(t){return null==t?"":(t+"").replace(_c,(function(t,e){return xc[e]}))}function Sc(t,e,n){var i="{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 u=a?$i(t):t;if(!isNaN(+u))return Ju(u,i,n);if(l)return"-"}if("ordinal"===e)return s["D"](t)?r(t):s["z"](t)&&o(t)?t+"":"-";var c=Xi(t);return o(c)?vc(c):s["D"](t)?r(t):"boolean"===typeof t?t+"":"-"}var Cc=["a","b","c","d","e","f","g"],kc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Mc(t,e,n){s["t"](e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Ac(t,e){return e=e||"transparent",s["C"](t)?t:s["A"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Ic(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Pc=s["k"],Ec=["left","right","top","bottom","width","height"],Dc=[["width","left","right"],["height","top","bottom"]];function Lc(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,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+n,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=c+n:a=h+n)}))}var jc=Lc;s["h"](Lc,"vertical"),s["h"](Lc,"horizontal");function Rc(t,e,n){var i=e.width,r=e.height,o=Pi(t.left,i),a=Pi(t.top,r),s=Pi(t.right,i),l=Pi(t.bottom,r);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=r),n=bc(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function Bc(t,e,n){n=bc(n||0);var i=e.width,r=e.height,o=Pi(t.left,i),a=Pi(t.top,r),s=Pi(t.right,i),l=Pi(t.bottom,r),u=Pi(t.width,i),c=Pi(t.height,r),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d;break}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new Wn(o+n[3],a+n[0],u,c);return f.margin=n,f}function Nc(t,e,n,i,r,o){var a,l=!r||!r.hv||r.hv[0],u=!r||!r.hv||r.hv[1],c=r&&r.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!l&&!u)return!1;if("raw"===c)a="group"===t.type?new Wn(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=Bc(s["i"]({width:a.width,height:a.height},e),n,i),p=l?d.x-a.x:0,f=u?d.y-a.y:0;return"raw"===c?(o.x=p,o.y=f):(o.x+=p,o.y+=f),o===t&&t.markRedraw(),!0}function Fc(t,e){return null!=t[Dc[e][0]]||null!=t[Dc[e][1]]&&null!=t[Dc[e][2]]}function zc(t){var e=t.layoutMode||t.constructor.layoutMode;return s["A"](e)?e:e?{type:e}:null}function Vc(t,e,n){var i=n&&n.ignoreSize;!s["t"](i)&&(i=[i,i]);var r=a(Dc[0],0),o=a(Dc[1],1);function a(n,r){var o={},a=0,s={},c=0,h=2;if(Pc(n,(function(e){s[e]=t[e]})),Pc(n,(function(t){l(e,t)&&(o[t]=s[t]=e[t]),u(o,t)&&a++,u(s,t)&&c++})),i[r])return u(e,n[1])?s[n[2]]=null:u(e,n[2])&&(s[n[1]]=null),s;if(c!==h&&a){if(a>=h)return o;for(var d=0;d=0;a--)o=s["I"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Pr(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!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}(xu);function Wc(t){var e=[];return s["k"](Gc.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=s["H"](e,(function(t){return Fr(t).main})),"dataset"!==t&&s["r"](e,"dataset")<=0&&e.unshift("dataset"),e}Hr(Gc,xu),Xr(Gc),Cu(Gc),ku(Gc,Wc);var Uc=Gc,Yc="";"undefined"!==typeof navigator&&(Yc=navigator.platform||"");var Xc="rgba(0, 0, 0, 0.2)",Kc={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Xc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Xc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Xc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Xc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Xc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Xc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Yc.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},Zc=Object(s["f"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Qc="original",Jc="arrayRows",th="objectRows",eh="keyedColumns",nh="typedArray",ih="unknown",rh="column",oh="row",ah={Must:1,Might:2,Not:3},sh=kr();function lh(t){sh(t).datasetMap=Object(s["f"])()}function uh(t,e,n){var i={},r=hh(e);if(!r||!t)return i;var o,a,l=[],u=[],c=e.ecModel,h=sh(c).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(s["k"])(t,(function(e,n){var r=Object(s["A"])(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=g(r)),i[r.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}function Sh(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?wh(i,a):n;if(c=c||n,c&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function Ch(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var kh,Mh,Oh;"undefined"!==typeof console&&console.warn&&console.log;function Th(t){0}function Ah(t){throw new Error(t)}var Ih="\0_ec_inner",Ph=1;var Eh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new xu(i),this._locale=new xu(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=Bh(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Bh(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Oh(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Object(s["k"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Object(s["f"])(),l=e&&e.replaceMergeMainTypeMap;function u(e){var o=vh(this,e,ir(t[e])),a=i.get(e),u=a?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=lr(a,o,u);xr(c,e,Uc),n[e]=null,i.set(e,null),r.set(e,0);var h,d=[],p=[],f=0;Object(s["k"])(c,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Uc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=Object(s["m"])({componentIndex:n},t.keyInfo);i=new a(r,this,this,l),Object(s["m"])(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),p.push(i),f++):(d.push(void 0),p.push(void 0))}),this),n[e]=d,i.set(e,p),r.set(e,f),"series"===e&&kh(this)}lh(this),Object(s["k"])(t,(function(t,e){null!=t&&(Uc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(s["d"])(t):Object(s["I"])(n[e],t,!0))})),l&&l.each((function(t,e){Uc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Uc.topologicalTravel(o,Uc.getAllClassMainTypes(),u,this),this._seriesIndices||kh(this)},e.prototype.getOption=function(){var t=Object(s["d"])(this.option);return Object(s["k"])(t,(function(e,n){if(Uc.hasClass(n)){for(var i=ir(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!br(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),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 n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?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 n=0,i=td.length;n=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=Ni(p,v),f=v;break}}}return i[0]=p,i[1]=f,i}))}))}var Cd,kd,Md,Od,Td,Ad=function(){function t(t){this.data=t.data||(t.sourceFormat===eh?{}:[]),this.sourceFormat=t.sourceFormat||ih,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 n=0;nu&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(l=o.interpolatedValue[u])}return null!=l?l+"":""}))}},t.prototype.getRawValue=function(t,e){return Zd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function tp(t){var e,n;return s["A"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function ep(t){return new np(t)}var np=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,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=u,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._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(!i&&(o||p1&&i>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 n="";0,Ah(n)}this._opFn=sp[t],this._rvalFloat=Xi(e)}return t.prototype.evaluate=function(t){return Object(s["z"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Xi(t),this._rvalFloat)},t}(),up=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(s["z"])(t)?t:Xi(t),i=Object(s["z"])(e)?e:Xi(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Object(s["C"])(t),l=Object(s["C"])(e);a&&(n=l?t:0),l&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),cp=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Xi(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Xi(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function hp(t,e){return"eq"===t||"ne"===t?new cp("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 n=new dp,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==rh&&Ah(a);var l=[],u={},c=t.dimensionsDefine;if(c)Object(s["k"])(c,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(l.push(i),null!=n){var r="";Object(s["q"])(u,n)&&Ah(r),u[n]=i}}));else for(var h=0;h65535?kp:Mp}function Pp(){return[1/0,-1/0]}function Ep(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Dp(t,e,n,i,r){var o=Ap[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,l=this._rawExtent,u=Object(s["H"])(o,(function(t){return t.property})),c=0;cv[1]&&(v[1]=m)}}!i.persistent&&i.clean&&i.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,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=h&&y<=d||isNaN(y))&&(l[u++]=g),g++}f=!0}else if(2===r){m=p[i[0]];var b=p[i[1]],_=t[i[1]][0],x=t[i[1]][1];for(v=0;v=h&&y<=d||isNaN(y))&&(w>=_&&w<=x||isNaN(w))&&(l[u++]=g),g++}f=!0}}if(!f)if(1===r)for(v=0;v=h&&y<=d||isNaN(y))&&(l[u++]=S)}else for(v=0;vt[M][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(v))}return um[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),d=new(Ip(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var p=1;pn&&(n=i,r=b))}M>0&&Mu-p&&(s=u-p,a.length=s);for(var f=0;fc[1]&&(c[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 n=t.length,i=this._chunks,r=0,o=this.count();rs&&(s=c)}return i=[a,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=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,n,i){return rp(t[i],this._dimensions[i])}Sp={arrayRows:t,objectRows:function(t,e,n,i){return rp(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return rp(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),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,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Np(n)){var o=n,a=void 0,l=void 0,u=void 0;if(r){var c=i[0];c.prepareSource(),u=c.getSource(),a=u.data,l=u.sourceFormat,e=[c._getVersionSign()]}else a=o.get("data",!0),l=Object(s["E"])(a)?nh:Qc,e=[];var h=this._getSourceMetaRawOption()||{},d=u&&u.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=n;if(r){var y=this._applyTransform(i);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,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==t.length&&Fp(o)}var a=[],l=[];return Object(s["k"])(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||Fp(n),a.push(e),l.push(t._getVersionSign())})),i?e=_p(i,a,{datasetIndex:n.componentIndex}):null!=r&&(e=[Dd(a[0])]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||n>0&&!t.noHeader;return Object(s["k"])(t.blocks,(function(t){var n=Up(t);n>=e&&(e=n+ +(i&&(!n||Gp(t)&&!t.noHeader)))})),e}return 0}function Yp(t,e,n,i){var r=e.noHeader,o=Zp(Up(e)),a=[],l=e.blocks||[];Object(s["b"])(!l||Object(s["t"])(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(s["q"])(c,u)){var h=new up(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}Object(s["k"])(l,(function(n,r){var l=e.valueFormatter,u=Wp(n)(l?Object(s["m"])(Object(s["m"])({},t),{valueFormatter:l}):t,n,r>0?o.html:0,i);null!=u&&a.push(u)}));var d="richText"===t.renderMode?a.join(o.richText):Qp(a.join(""),r?n:o.html);if(r)return d;var p=Sc(e.header,"ordinal",t.useUTC),f=Vp(i,t.renderMode).nameStyle;return"richText"===t.renderMode?ef(t,p,f)+o.richText+d:Qp('
'+wc(p)+"
"+d,n)}function Xp(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,l=!e.markerType,u=e.name,c=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 Sc(t,Object(s["t"])(f)?f[e]:f,c)}))};if(!o||!a){var d=l?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Sc(u,"ordinal",c),f=e.valueType,g=a?[]:h(e.value),m=!l||!o,v=!l&&o,y=Vp(i,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,_)),n)}}function Kp(t,e,n,i,r,o){if(t){var a=Wp(t),s={useUTC:r,renderMode:n,orderMode:i,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 n='
',i="margin: "+e+"px 0 0";return'
'+t+n+"
"}function Jp(t,e,n){var i=e?"margin-left:2px":"";return''+wc(t)+""}function tf(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Object(s["t"])(t)?t:[t],''+Object(s["H"])(t,(function(t){return wc(t)})).join("  ")+""}function ef(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function nf(t,e,n,i,r){var o=[r],a=i?10:20;return n&&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 n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return Ac(i)}function of(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var af=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Zi()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Tc({color:e,type:t,renderMode:n,markerId:i});return Object(s["C"])(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(s["t"])(e)?Object(s["k"])(e,(function(t){return Object(s["m"])(n,t)})):Object(s["m"])(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function sf(t){var e,n,i,r,o=t.series,a=t.dataIndex,l=t.multipleSeries,u=o.getData(),c=u.mapDimensionsAll("defaultedTooltip"),h=c.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,c,f);e=g.inlineValues,n=g.inlineValueTypes,i=g.blocks,r=g.inlineValues[0]}else if(h){var m=u.getDimensionInfo(c[0]);r=e=Zd(u,a,c[0]),n=m.type}else r=e=p?d[0]:d;var v=yr(o),y=v&&o.name||"",b=u.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:n})].concat(i||[])})}function lf(t,e,n,i,r){var o=e.getData(),a=Object(s["N"])(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),l=[],u=[],c=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?c.push(Hp("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}return i.length?Object(s["k"])(i,(function(t){h(Zd(o,n,t),t)})):Object(s["k"])(t,h),{inlineValues:l,inlineValueTypes:u,blocks:c}}var uf=kr();function cf(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,n){this.seriesIndex=this.componentIndex,this.dataTask=ep({count:gf,reset:mf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=uf(this).sourceManager=new Rp(this);i.prepareSource();var r=this.getInitialData(t,n);yf(r,this),this.dataTask.context.data=r,uf(this).dataBeforeProcessed=r,pf(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=zc(this),i=n?qc(t):{},r=this.subType;Uc.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),n&&Vc(t,i,n)},e.prototype.mergeOption=function(t,e){t=s["I"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=zc(this);n&&Vc(this.option,t,n);var i=uf(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);yf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,uf(this).dataBeforeProcessed=r,pf(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!s["E"](t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=_h.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),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 n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[cf(i,t)])&&!i.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 n,i,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,u=0;u0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Uc.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}(Uc);function pf(t){var e=t.name;yr(t)||(t.name=ff(t)||e)}function ff(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return s["k"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.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(n){t.wrapMethod(n,s["h"](bf,e))}))}function bf(t,e){var n=_f(t);return n&&n.setOutputEnd((e||this).count()),e}function _f(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}s["K"](df,Jd),s["K"](df,_h),Hr(df,Uc);var xf=df,wf=function(){function t(){this.group=new bi,this.uid=Su("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},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 n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var kf=ha.CMD,Mf=[[],[],[]],Of=Math.sqrt,Tf=Math.atan2;function Af(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=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+n)/2+Ef(h)*m-Pf(h)*v,b=(e+i)/2+Pf(h)*m+Ef(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=Df),jf(x,w)>=1&&(S=0),S<0){var C=Math.round(S/Df*1e6)/1e6;S=2*Df+C%2*Df}c.addData(u,y,b,a,s,_,S,h,o)}var Nf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ff=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function zf(t){var e=new ha;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=ha.CMD,l=t.match(Nf);if(!l)return e;for(var u=0;uI*I+P*P&&(C=M,k=O),{cx:C,cy:k,x0:-c,y0:-h,x1:C*(r/x-1),y1:k*(r/x-1)}}function pg(t){var e;if(Object(s["t"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function fg(t,e){var n,i=lg(e.r,0),r=lg(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,d=!!e.clockwise,p=ag(u-l),f=p>eg&&p%eg;if(f>cg&&(p=f),i>cg)if(p>eg-cg)t.moveTo(c+i*ig(l),h+i*ng(l)),t.arc(c,h,i,l,u,!d),r>cg&&(t.moveTo(c+r*ig(u),h+r*ng(u)),t.arc(c,h,r,u,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,O=void 0,T=void 0,A=void 0,I=void 0,P=i*ig(l),E=i*ng(l),D=r*ig(u),L=r*ng(u),j=p>cg;if(j){var R=e.cornerRadius;R&&(n=pg(R),g=n[0],m=n[1],v=n[2],y=n[3]);var B=ag(i-r)/2;if(b=ug(B,v),_=ug(B,y),x=ug(B,g),w=ug(B,m),k=S=lg(b,_),M=C=lg(x,w),(S>cg||C>cg)&&(O=i*ig(u),T=i*ng(u),A=r*ig(l),I=r*ng(l),pcg){var G=ug(v,k),W=ug(y,k),U=dg(A,I,P,E,i,G,d),Y=dg(O,T,D,L,i,W,d);t.moveTo(c+U.cx+U.x0,h+U.cy+U.y0),k0&&t.arc(c+U.cx,h+U.cy,G,og(U.y0,U.x0),og(U.y1,U.x1),!d),t.arc(c,h,i,og(U.cy+U.y1,U.cx+U.x1),og(Y.cy+Y.y1,Y.cx+Y.x1),!d),W>0&&t.arc(c+Y.cx,h+Y.cy,W,og(Y.y1,Y.x1),og(Y.y0,Y.x0),!d))}else t.moveTo(c+P,h+E),t.arc(c,h,i,l,u,!d);else t.moveTo(c+P,h+E);if(r>cg&&j)if(M>cg){G=ug(g,M),W=ug(m,M),U=dg(D,L,O,T,r,-W,d),Y=dg(P,E,A,I,r,-G,d);t.lineTo(c+U.cx+U.x0,h+U.cy+U.y0),M0&&t.arc(c+U.cx,h+U.cy,W,og(U.y0,U.x0),og(U.y1,U.x1),!d),t.arc(c,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(c+Y.cx,h+Y.cy,G,og(Y.y1,Y.x1),og(Y.y0,Y.x0),!d))}else t.lineTo(c+D,h+L),t.arc(c,h,r,u,l,d);else t.lineTo(c+D,h+L)}else t.moveTo(c,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 u(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 u(e,t),e.prototype.getDefaultShape=function(){return new yg},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Ba);bg.prototype.type="ring";var _g=bg;function xg(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,g=t.length;p=2){if(i){var o=xg(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[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 u=Math.abs(Kg[0]-Xg[1]),c=Math.abs(Xg[0]-Kg[1]);Math.min(u,c)>i.len()&&(uMath.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,n){if(t&&e){var i=r(t);e.traverse((function(t){if(Sm(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Nl(t,r,n,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 n=t[0];n=rm(n,e.x),n=om(n,e.x+e.width);var i=t[1];return i=rm(i,e.y),i=om(i,e.y+e.height),[n,i]}))}function Om(t,e){var n=rm(t.x,e.x),i=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(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Tm(t,e,n){var i=Object(s["m"])({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(s["i"])(r,n),new Ga(i)):dm(t.replace("path://",""),i,n,"center")}function Am(t,e,n,i,r){for(var o=0,a=r[r.length-1];o1)return!1;var m=Pm(p,f,c,h)/d;return!(m<0||m>1)}function Pm(t,e,n,i){return t*i-n*e}function Em(t){return t<=1e-6&&t>=-1e-6}function Dm(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(s["C"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,l={componentType:o,name:i,$vars:["name"]};l[o+"Index"]=a;var u=t.formatterParamsExtra;u&&Object(s["k"])(Object(s["F"])(u),(function(t){Object(s["q"])(l,t)||(l[t]=u[t],l.$vars.push(t))}));var c=bs(t.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:i,option:Object(s["i"])({content:i,formatterParams:l},r)}}function Lm(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function jm(t,e){if(t)if(Object(s["t"])(t))for(var n=0;n=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function Xm(t,e,n,i){var r=t[e];if(r){var o=r[Gm]||r,a=r[Um],s=r[Wm];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=Ym(o,n,"debounce"===i),r[Gm]=o,r[Um]=i,r[Wm]=n}return r}}function Km(t,e){var n=t[e];n&&n[Gm]&&(n.clear&&n.clear(),t[e]=n[Gm])}var Zm=kr(),Qm={itemStyle:Kr(vu,!0),lineStyle:Kr(fu,!0)},Jm={lineStyle:"stroke",itemStyle:"fill"};function tv(t,e){var n=t.visualStyleMapper||Qm[e];return n||(console.warn("Unkown style type '"+e+"'."),Qm.itemStyle)}function ev(t,e){var n=t.visualDrawType||Jm[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var nv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=tv(t,i),a=o(r),l=r.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=ev(t,i),c=a[u],h=Object(s["w"])(c)?c:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[u]||h||d){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[u]||(a[u]=p,n.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(n.setVisual("style",a),n.setVisual("drawType",u),!e.isSeriesFiltered(t)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(s["m"])({},a);r[u]=h(i),e.setItemVisual(n,"style",r)}}}},iv=new xu,rv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=tv(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){iv.option=n[i];var a=r(iv),l=t.ensureUniqueItemVisual(e,"style");Object(s["m"])(l,a),iv.option.decal&&(t.setItemVisual(e,"decal",iv.option.decal),iv.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 n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Zm(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Zm(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=ev(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,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 n=new bi,i=new ts({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);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 n.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"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var lv=function(){function t(t,e,n,i){this._stageTaskMap=Object(s["f"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}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 n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.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 n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(s["f"])();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(s["k"])(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";Object(s["b"])(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,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,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};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(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(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,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(s["f"])(),l=t.seriesType,u=t.getTargetSeries;function c(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:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||ep({reset:uv});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,l=o.agentStubMap=Object(s["f"])(),u=t.seriesType,c=t.getTargetSeries,h=!0,d=!1,p="";function f(t){var e=t.uid,n=l.set(e,a&&a.get(e)||(d=!0,ep({reset:cv,onDirty:dv})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}Object(s["b"])(!t.createOnAllSeries,p),u?n.eachRawSeriesByType(u,f):c?c(n,i).each(f):(h=!1,Object(s["k"])(n.getSeries(),f)),d&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(s["w"])(t)&&(t={overallReset:t,seriesType:yv(t)}),t.uid=Su("stageHandler"),e&&(t.visualType=e),t},t}();function uv(t){t.overallReset(t.ecModel,t.api,t.payload)}function cv(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=ir(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,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Dv=["symbol","symbolSize","symbolRotate","symbolOffset"],Lv=Dv.concat(["symbolKeepAspect"]),jv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&ay(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function uy(t,e,n){for(var i="radial"===e.type?ly(t,e,n):sy(t,e,n),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,n=e.lineDash&&e.lineWidth>0&&py(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=Object(s["H"])(n,(function(t){return t/r})),i/=r)}return[n,i]}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 n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _y(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function xy(t,e,n){var i=no(e.image,e.__image,n);if(ro(i)){var r=t.createPattern(i,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,n,i){var r,o=my(n),a=yy(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||gy,h=e.__dirty;if(!i){var d=n.fill,p=n.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?uy(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(b=h?uy(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();c.setScale(k[0],k[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(r=fy(e),S=r[0],C=r[1]);var M=!0;(u||h&Tt)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),i||(n.strokeFirst?(o&&_y(t,n),a&&by(t,n)):(a&&by(t,n),o&&_y(t,n))),S&&t.setLineDash([])}function Sy(t,e,n){var i=e.__image=no(n.image,e.__image,e,e.onload);if(i&&ro(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,d=s-c;t.drawImage(i,u,c,h,d,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function Cy(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||Yn["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=fy(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(my(n)&&t.strokeText(r,n.x,n.y),yy(n)&&t.fillText(r,n.x,n.y)):(yy(n)&&t.fillText(r,n.x,n.y),my(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}var ky=["shadowBlur","shadowOffsetX","shadowOffsetY"],My=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Oy(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){Ny(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?wo.opacity:a}(i||e.blend!==n.blend)&&(o||(Ny(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,n){if(!this[wb])if(this._disposed)e_(this.id);else{var i,r,o;if(Object(s["A"])(e)&&(n=e.lazyUpdate,i=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,u=this._model=new Nh;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,a)}this._model.setOption(t,{replaceMerge:r},o_);var c={seriesTransition:o,optionChanged:!0};if(n)this[Sb]={silent:i,updateParams:c},this[wb]=!1,this.getZr().wakeUp();else{try{Db(this),Rb.update.call(this,null,c)}catch(h){throw this[Sb]=null,this[wb]=!1,h}this._ssr||this._zr.flush(),this[Sb]=null,this[wb]=!1,zb.call(this,i),Vb.call(this,i)}}},e.prototype.setTheme=function(){Th("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,n=this._model,i=[],r=this;Object(s["k"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.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"])(i,(function(t){t.group.ignore=!1})),o}e_(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(c_[n]){var a=o,l=o,u=-o,c=-o,h=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();Object(s["k"])(u_,(function(o,d){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(s["d"])(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),l=i(f.top,l),u=r(f.right,u),c=r(f.bottom,c),h.push({dom:p,left:f.left,top:f.top})}})),a*=d,l*=d,u*=d,c*=d;var p=u-a,f=c-l,g=Yn["d"].createCanvas(),m=ki(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,n=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 n,i=this._model,r=Or(i,t);return Object(s["k"])(r,(function(t,i){i.indexOf("Models")>=0&&Object(s["k"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}e_(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=Or(n,t,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Bv(o,a,e):Nv(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 n=function(n){var i,r=t.getModel(),o=n.target,a="globalout"===e;if(a?i={}:o&&$v(o,(function(t){var e=bs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return i=Object(s["m"])({},e.eventData),!0}),!0),i){var l=i.componentType,u=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=i.seriesIndex);var c=l&&null!=u&&r.getComponent(l,u),h=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:c,view:h},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(s["k"])(i_,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,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&&Er(this.getDom(),h_,"");var e=this,n=e._api,i=e._model;Object(s["k"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(s["k"])(e._chartsViews,(function(t){t.dispose(i,n)})),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 u_[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 n=e.resetOption("media"),i=t&&t.silent;this[Sb]&&(null==i&&(i=this[Sb].silent),n=!0,this[Sb]=null),this[wb]=!0;try{n&&Db(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,i),Vb.call(this,i)}}},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 n=l_[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},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=i_[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)e_(this.id);else if(Object(s["A"])(e)||(e={silent:!!e}),n_[t.type]&&this._model)if(this[wb])this._pendingActions.push(t);else{var n=e.silent;Fb.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&a["a"].browser.weChat&&this._throttledZrFlush(),zb.call(this,n),Vb.call(this,n)}},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,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.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=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,o,a=e.concat(n);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 n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(t){for(var e=[],n=t.currentStates,i=0;ie.get("hoverLayerThreshold")&&!a["a"].node&&!a["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function r(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function l(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return u(t,n,i,-1/0),!0}))}}function u(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var s=t.childrenRef(),l=0;l0?{duration:o,delay:i.get("delay"),easing:i.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 i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}Db=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 n=t._model,i=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(n);var o=Sv.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function C_(t,e){l_[t]=e}function k_(t,e,n){var i=ib("registerMap");i&&i(t,e,n)}var M_=bp;x_(pb,nv),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:Es,event:Es,update:Es},s["L"]),y_({type:Ds,event:Ds,update:Ds},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 O_=[],T_={registerPreprocessor:p_,registerProcessor:f_,registerPostInit:g_,registerPostUpdate:m_,registerUpdateLifecycle:v_,registerAction:y_,registerCoordinateSystem:b_,registerLayout:__,registerVisual:x_,registerTransform:M_,registerLoading:C_,registerMap:k_,registerImpl:nb,PRIORITY:xb,ComponentModel:Uc,ComponentView:Sf,SeriesModel:xf,ChartView:Hm,registerComponentModel:function(t){Uc.registerClass(t)},registerComponentView:function(t){Sf.registerClass(t)},registerSeriesModel:function(t){xf.registerClass(t)},registerChartView:function(t){Hm.registerClass(t)},registerSubTypeDefaulter:function(t,e){Uc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Mi(t,e)}};function A_(t){Object(s["t"])(t)?Object(s["k"])(t,(function(t){A_(t)})):Object(s["r"])(O_,t)>=0||(O_.push(t),Object(s["w"])(t)&&(t={install:t}),t.install(T_))}function I_(t,e,n){var i=Yn["d"].createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var P_=function(t){function e(e,n,i){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,i=i||cn,"string"===typeof e?r=I_(e,n,i):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=n,o.dpr=i,o}return u(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,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Wn(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Wn(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var _=f.dpr,x=0;x0&&t>i[0]){for(s=0;st)break;a=n[i[s]]}if(i.splice(s+1,0,t),n[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 n=this._zlevelList,i=0;i0?j_:0),this._needsManuallyCompositing),c.__builtin__||s["G"]("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,e(o),a=c),i.__dirty&Mt&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__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 n=this._layerConfig;n[t]?s["I"](n[t],e,!0):n[t]=e;for(var i=0;i=G_:-l>=G_),d=l>0?l%G_:l%G_+G_,p=!1;p=!!h||!Object(fe["j"])(c)&&d>=H_===!!u;var f=t+n*$_(o),g=e+i*q_(o);this._start&&this._add("M",f,g);var m=Math.round(r*W_);if(h){var v=1/this._p,y=(u?1:-1)*(G_-v);this._add("A",n,i,m,1,+u,t+n*$_(o+y),e+i*q_(o+y)),v>.01&&this._add("A",n,i,m,0,+u,f,g)}else{var b=t+n*$_(a),_=e+i*q_(a);this._add("A",n,i,m,+p,+u,b,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],c=this._p,h=1;h"}function ux(t){return""}function cx(t,e){e=e||{};var n=e.newline?"\n":"";function i(t){var e=t.children,r=t.tag,o=t.attrs;return lx(r,o)+(t.text||"")+(e?""+n+Object(s["H"])(e,(function(t){return i(t)})).join(n)+n:"")+ux(r)}return i(t)}function hx(t,e,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=Object(s["H"])(Object(s["F"])(t),(function(e){return e+r+Object(s["H"])(Object(s["F"])(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),l=Object(s["H"])(Object(s["F"])(e),(function(t){return"@keyframes "+t+r+Object(s["H"])(Object(s["F"])(e[t]),(function(n){return n+r+Object(s["H"])(Object(s["F"])(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||l?[""].join(i):""}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,n,i){return sx("svg","root",{width:t,height:e,xmlns:nx,"xmlns:xlink":ix,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}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,n){var i=Object(s["m"])({},t.shape);Object(s["m"])(i,e),t.buildPath(n,i);var r=new Y_;return r.reset(Object(fe["f"])(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function vx(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[gx]=n+"px "+i+"px")}var yx={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function bx(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function _x(t,e,n){var i,r,o=t.shape.paths,a={};if(Object(s["k"])(o,(function(t){var e=dx(n.zrId);e.animation=!0,wx(t,{},e,!0);var o=e.cssAnims,l=e.cssNodes,u=Object(s["F"])(o),c=u.length;if(c){r=u[c-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&&(i=g)}}})),i){e.d=!1;var l=bx(a,n);return i.replace(r,l)}}function xx(t){return Object(s["C"])(t)?fx[t]?"cubic-bezier("+fx[t]+")":ce(t)?t:"":""}function wx(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof qg){var l=_x(t,e,n);if(l)a.push(l);else if(!o)return}else if(!o)return;for(var u={},c=0;c0})).length){var I=bx(h,n);return I+" "+r[0]+" both"}}for(var v in u){l=m(u[v]);l&&a.push(l)}if(a.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.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,n,i){ex((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(fe["k"])(o)?zx(e,t,r,i):a&&Object(fe["n"])(o)?Vx(n,t,r,i):t[r]=o}),e,n,!1),Fx(n,t,i)}function Ox(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 Tx(t){return Object(fe["j"])(t[4])&&Object(fe["j"])(t[5])}function Ax(t,e,n){if(e&&(!Tx(e)||!Ox(e))){var i=n?10:1e4;t.transform=Ox(e)?"translate("+Sx(e[4]*i)/i+" "+Sx(e[5]*i)/i+")":Object(fe["e"])(e)}}function Ix(t,e,n){for(var i=t.points,r=[],o=0;ou?(a=null==n[d+1]?null:n[d+1].elm,rw(t,a,n,l,d)):ow(t,e,s,u))}function lw(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(aw(t,e),Jx(e.text)?tw(i)&&tw(r)?i!==r&&sw(n,i,r):tw(r)?(tw(t.text)&&Xx(n,""),rw(n,null,r,0,r.length-1)):tw(i)?ow(n,i,0,i.length-1):tw(t.text)&&Xx(n,""):t.text!==e.text&&(tw(i)&&ow(n,i,0,i.length-1),Xx(n,e.text)))}function uw(t,e){if(nw(t,e))lw(t,e);else{var n=t.elm,i=Ux(n);iw(e),null!==i&&(Hx(i,e.elm,Yx(n)),ow(i,[t],0,0))}return e}var cw=0,hw=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=dw("refreshHover"),this.configLayer=dw("configLayer"),this.storage=e,this._opts=n=Object(s["m"])({},n),this.root=t,this._id="zr"+cw++,this._oldVNode=px(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=ax("svg");aw(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.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",uw(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Nx(t,dx(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,r=this._height,o=dx(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var a=[];if(n&&"none"!==n){var l=Object(fe["p"])(n),u=l.color,c=l.opacity;this._bgVNode=sx("rect","bg",{width:i,height:r,x:"0",y:"0",id:"0",fill:u,"fill-opacity":c}),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(i,r,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},cx(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 n=Object(fe["p"])(t),i=n.color,r=n.opacity;e.elm.setAttribute("fill",i),r<1&&e.elm.setAttribute("fill-opacity",r)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0;f--)if(h&&r&&h[f]===r[f])break;for(var g=p-1;g>f;g--)s--,i=a[s-1];for(var m=f+1;m1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d1)for(var a=0;a30}var Dw,Lw,jw,Rw,Bw,Nw,Fw,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 n;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 i=!1;Aw(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},l=!1,u={},c=0;c=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===Qc;if(s&&!i.pure)for(var l=[],u=t;u0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),s["t"](r)?r=r.slice():zw(r)&&(r=s["m"]({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,zw(e)?s["m"](i,e):i[e]=n},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,n){this._itemLayouts[t]=n?s["m"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;_s(n,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(n,i){n&&t&&t.call(e,n,i)}))},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 n=this[t];s["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(s["S"](arguments)))})},t.internalField=function(){Dw=function(t){var e=t._invertedIndicesMap;s["k"](e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new qw(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),Yw=Uw;function Xw(t,e){Id(t)||(t=Ed(t)),e=e||{};var n=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Object(s["f"])(),o=[],a=Zw(t,n,i,e.dimensionsCount),l=e.canOmitUnusedDimensions&&Ew(a),u=i===t.dimensionsDefine,c=u?Pw(t):Iw(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var d=Object(s["f"])(h),p=new Op(a),f=0;f0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function Zw(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||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,n){var i=e.data;if(n||i.hasOwnProperty(t)){var r=0;while(i.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"),n=new Jw(e),i=eS[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var eS={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Ar).models[0],o=t.getReferringComponents("yAxis",Ar).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),nS(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),nS(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Ar).models[0];e.coordSysDims=["single"],n.set("single",r),nS(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Ar).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),nS(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),nS(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){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];n.set(l,s),nS(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function nS(t){return"category"===t.get("type")}function iS(t,e,n){n=n||{};var i,r,o,a=n.byIndex,l=n.stackedCoordDimension;rS(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var u,c,h,d,p=!(!t||!t.get("stack"));if(Object(s["k"])(i,(function(t,e){Object(s["C"])(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||u||!t.ordinalMeta||(u=t),c||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(c=t))})),!c||a||u||(a=!0),c){h="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var f=c.coordDim,g=c.type,m=0;Object(s["k"])(i,(function(t){t.coordDim===f&&m++}));var v={name:h,coordDim:f,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,g),y.storeDimIndex=o.ensureCalculationDimension(h,g)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.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 n,i=t.get("coordinateSystem"),r=Hh.get(i);return e&&e.coordSysDims&&(n=s["H"](e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=ww(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function lS(t,e,n){var i,r;return n&&s["k"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}function uS(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=Ed(t)):(i=r.getSource(),o=i.sourceFormat===Qc);var a=tS(e),l=sS(e,a),u=n.useEncodeDefaulter,c=s["w"](u)?u:u?s["h"](uh,l,e):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},d=Xw(i,h),p=lS(d.dimensions,n.createInvertedIndices,a),f=o?null:r.getSharedDataStore(d),g=iS(e,{schema:d,store:f}),m=new Yw(d,e);m.setCalculationInfo(g);var v=null!=p&&cS(i)?function(t,e,n,i){return i===p?n:this.defaultDimValueGetter(t,e,n,i)}:null;return m.hasItemOption=!1,m.initData(o?i:f,null,v),m}function cS(t){if(t.sourceFormat===Qc){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 n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Zd(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}var vS=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return o(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=iy(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[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 n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):Nl(h,d,a,n),Hl(h)}if(this._updateCommon(t,n,s,i,r),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Fl(h,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,l,u,c,h,d,p,f,g=this.childAt(0),m=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,l=i.selectItemStyle,u=i.focus,c=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,f=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.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(),u=y.get("focus"),c=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"),n);_&&(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 O(e){return M?t.getName(e):gS(t,e)}Xl(g,d,{labelFetcher:m,labelDataIndex:e,defaultText:O,inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=g.ensureState("emphasis");if(T.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);T.scaleX=this._sizeX*A,T.scaleY=this._sizeY*A}this.setSymbolScale(1),Sl(this,u,c,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=bs(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Vl(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Vl(i,{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}(bi);function yS(t,e){this.parent.drift(t,e)}var bS=vS;function _S(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function xS(t){return null==t||Object(s["A"])(t)||(t={isIgnore:t}),t||{}}function wS(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Kl(e),cursorStyle:e.get("cursor")}}var SS=function(){function t(t){this.group=new bi,this._SymbolCtor=t||bS}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=xS(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=wS(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(_S(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(_S(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new o(t,c,s,l),d.setPosition(p);else{d.updateData(t,c,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):Nl(d,m,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wS(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=xS(n);for(var r=t.start;r0?n=i[0]:i[1]<0&&(n=i[1]),n}function OS(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var TS="undefined"!==typeof Float32Array,AS=TS?Float32Array:Array;function IS(t){return Object(s["t"])(t)?TS?new Float32Array(t):t:new AS(t)}function PS(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function ES(t,e,n,i,r,o,a,s){for(var l=PS(t,e),u=[],c=[],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===n)t[o>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var b=v-u,_=y-c;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=i||jS(w,S))p=v,f=y;else{M=w-u,O=S-c;var I=v-u,P=w-v,E=y-c,D=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,T=v+R*j*a,A=y}else if("y"===s){L=Math.abs(E),j=Math.abs(D);var B=O>0?1:-1;p=v,f=y-B*L*a,T=v,A=y+B*j*a}else L=Math.sqrt(I*I+E*E),j=Math.sqrt(P*P+D*D),k=j/(j+L),p=v-M*a*(1-k),f=y-O*a*(1-k),T=v+M*a*k,A=y+O*a*k,T=DS(T,LS(w,v)),A=DS(A,LS(S,y)),T=LS(T,DS(w,v)),A=LS(A,DS(S,y)),M=T-v,O=A-y,p=v-M*L/j,f=y-O*L/j,p=DS(p,LS(u,v)),f=DS(f,LS(c,y)),p=LS(p,DS(u,v)),f=LS(f,DS(c,y)),M=v-p,O=y-f,T=v+M*j/L,A=y+O*j/L}t.bezierCurveTo(h,d,p,f,v,y),h=T,d=A}else t.lineTo(v,y)}u=v,c=y,g+=o}return m}var BS=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),NS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}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 n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0;r--)if(!jS(n[2*r-2],n[2*r-1]))break;for(;i=0){var y=s?(d-i)*v+i:(h-n)*v+n;return s?[t,y]:[y,t]}n=h,i=d;break;case a.C:h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++],m=o[u++];var b=s?Zt(n,h,p,g,t,l):Zt(i,d,f,m,t,l);if(b>0)for(var _=0;_=0){y=s?Xt(i,d,f,m,x):Xt(n,h,p,g,x);return s?[t,y]:[y,t]}}n=g,i=m;break}}},e}(Ba),FS=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 n=t.call(this,e)||this;return n.type="ec-polygon",n}return o(e,t),e.prototype.getDefaultShape=function(){return new FS},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!jS(n[2*o-2],n[2*o-1]))break;for(;re){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function QS(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var l=t.getDimensionInfo(i[a].dimension);if(r=l&&l.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var u=e.getAxis(r),c=s["H"](o.stops,(function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}})),h=c.length,d=o.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),d.reverse());var p=ZS(c,"x"===r?n.getWidth():n.getHeight()),f=p.length;if(!f&&h)return c[0].coord<0?d[1]?d[1]:c[h-1].color:d[0]?d[0]:c[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,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.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 n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}function eC(t,e){return isNaN(t)||isNaN(e)}function nC(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 iC(t,e){return[t[2*e],t[2*e+1]]}function rC(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}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,E,D,L);var R=YS(t.get("smooth")),B=t.get("smoothMonotone");if(f.setShape({smooth:R,smoothMonotone:B,connectNulls:S}),g){var N=a.getCalculationInfo("stackedOnSeries"),F=0;g.useStyle(s["i"](u.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(F=YS(N.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:F,smoothMonotone:B,connectNulls:S}),Ol(g,t,"areaStyle"),bs(g).seriesIndex=t.seriesIndex,Sl(g,E,D,L)}var z=function(t){i._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=c,this._step=O,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,n,i){var r=t.getData(),o=Cr(r,i);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],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");s=new bS(r,o),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,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,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Cr(r,i);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,n,i)},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 NS({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new zS({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var l=t.hostModel,u=l.get("animationDuration");s["w"](u)&&(u=u(null));var c=l.get("animationDelay")||0,h=s["w"](c)?c(null):c;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(n)if(r){var m=n,v=e.pointToCoord(d);i?(p=m.startAngle,f=m.endAngle,g=-v[1]/180*Math.PI):(p=m.r0,f=m.r,g=v[0])}else{var y=n;i?(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"](c)?c(o):u*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,n){var i=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=nC(a);l>=0&&(Xl(o,Kl(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?mS(r,n):gS(r,t)},enableTextSetter:!0},sC(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.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(u,y,x),S=w.range,C=S[1]-S[0],k=void 0;if(C>=1){if(C>1&&!h){var M=iC(u,S[0]);s.attr({x:M[0]+b,y:M[1]+_}),r&&(k=c.getRawValue(S[0]))}else{M=l.getPointOn(y,x);M&&s.attr({x:M[0]+b,y:M[1]+_});var O=c.getRawValue(S[0]),T=c.getRawValue(S[1]);r&&(k=jr(n,d,O,T,w.t))}i.lastFrameIndex=S[0]}else{var A=1===t||i.lastFrameIndex>0?S[0]:0;M=iC(u,A);r&&(k=c.getRawValue(A)),s.attr({x:M[0]+b,y:M[1]+_})}r&&au(s).setLabelText(k)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=ES(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(h=KS(c.current,n,r,a),d=KS(c.stackedOnCurrent,n,r,a),p=KS(c.next,n,r,a),f=KS(c.stackedOnNext,n,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=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Nl(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Nl(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),h=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(h||1),p=Math.round(a/d);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/p));var f=void 0;Object(s["C"])(r)?f=hC[r]:Object(s["w"])(r)&&(f=r),f&&t.setData(i.downSample(i.mapDimension(u.dim),1/p,f,dC))}}}}}function fC(t){t.registerChartView(uC),t.registerSeriesModel(fS),t.registerLayout(cC("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),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=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o0&&(o=null===o?l:Math.min(o,l))}n[i]=o}}return n}function xC(t){var e=_C(t),n=[];return Object(s["k"])(t,(function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);i=l?u/h*l:u}else{var d=t.getData();i=Math.abs(a[1]-a[0])/d.count()}var p=Pi(t.get("barWidth"),i),f=Pi(t.get("barMaxWidth"),i),g=Pi(t.get("barMinWidth")||(OC(t)?.5:1),i),m=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:vC(o),stackId:mC(t)})})),wC(n)}function wC(t){var e={};Object(s["k"])(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=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 u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Object(s["k"])(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(s["F"])(i).length;o=Math.max(35-4*a,15)+"%"}var l=Pi(o,r),u=Pi(t.gap,1),c=t.remainedWidth,h=t.autoWidthCount,d=(c-l)/(h+(h-1)*u);d=Math.max(d,0),Object(s["k"])(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,c-=i+u*i,h--}else{var i=d;e&&ei&&(i=n),i!==d&&(t.width=i,c-=i+u*i,h--)}})),d=(c-l)/(h+(h-1)*u),d=Math.max(d,0);var p,f=0;Object(s["k"])(i,(function(t,e){t.width||(t.width=d),p=t,f+=t.width*(1+u)})),p&&(f-=p.width*u);var g=-f/2;Object(s["k"])(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:g,width:t.width},g+=t.width*(1+u)}))})),n}function SC(t,e,n){if(t&&e){var i=t[vC(e)];return null!=i&&null!=n?i[mC(n)]:i}}function CC(t,e){var n=bC(t,e),i=xC(n);Object(s["k"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),o=mC(t),a=i[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(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),c=oS(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=TC(i,r),p=OC(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),m=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){var i,r=t.count,l=p&&IS(3*r),u=p&&s&&IS(3*r),y=p&&IS(r),b=n.master.getRect(),_=h?b.width:b.height,x=e.getStore(),w=0;while(null!=(i=t.next())){var S=x.get(c?g:o,i),C=x.get(a,i),k=d,M=void 0;c&&(M=+S-x.get(o,i));var O=void 0,T=void 0,A=void 0,I=void 0;if(h){var P=n.dataToPoint([S,C]);if(c){var E=n.dataToPoint([M,C]);k=E[0]}O=k,T=P[1]+v,A=P[0]-k,I=m,Math.abs(A)t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Mu(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),EC=PC,DC=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 n=t.call(this,e)||this;return n.type="sausage",n}return o(e,t),e.prototype.getDefaultShape=function(){return new DC},e.prototype.buildPath=function(t,e){var n=e.cx,i=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,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-lMath.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}function NC(t,e,n){return e*Math.sin(t)*(n?-1:1)}function FC(t,e,n){return e*Math.cos(t)*(n?1:-1)}var zC=Math.max,VC=Math.min;function qC(t,e){var n=t.getArea&&t.getArea();if(HS(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var $C=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return o(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},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,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=WC(t,l);h&&this._enableRealtimeSort(h,a,n);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,_=i&&i.isInitSort,x=i&&"changeAxisOrder"===i.type;function w(t){var e=QC[l.type](a,t),n=uk(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=QC[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&ZC[l.type](i)){var s=!1;d&&(s=HC[l.type](p,i));var m=GC[l.type](t,a,e,i,r,c,u.model,!1,f);h&&(m.forceLabelAnimation=!0),ek(m,a,e,n,i,t,r,"polar"===l.type),_?m.attr({shape:i}):h?UC(h,c,m,i,e,r,!1,!1):Fl(m,{shape:i},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),S=QC[l.type](a,e,i);if(g){var C=void 0;0===b.length?C=w(n):(C=b[n],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);Nl(C,{shape:M},c,e)}var O=s.getItemGraphicEl(n);if(a.hasValue(e)&&ZC[l.type](S)){var T=!1;if(d&&(T=HC[l.type](p,S),T&&o.remove(O)),O?Hl(O):O=GC[l.type](t,a,e,S,r,c,u.model,!!O,f),h&&(O.forceLabelAnimation=!0),x){var A=O.getTextContent();if(A){var I=au(A);null!=I.prevValue&&(I.prevValue=I.value)}}else ek(O,a,e,i,S,t,r,"polar"===l.type);_?O.attr({shape:S}):h?UC(h,c,O,S,e,r,!0,x):Nl(O,{shape:S},t,e,null),a.setItemGraphicEl(e,O),O.ignore=T,o.add(O)}else o.remove(O)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&$l(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new bi);S.removeAll();for(var C=0;Co)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.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,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.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 n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<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),u=VC(e.y+e.height,o),c=sr?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}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(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},GC={cartesian2d:function(t,e,n,i,r,o,a,l,u){var c=new ts({shape:Object(s["m"])({},i),z2:1});if(c.__dataIndex=n,c.name="item",o){var h=c.shape,d=r?"height":"width";h[d]=0}return c},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?jC:vg,c=new u({shape:i,z2:1});c.name="item";var h=tk(r);if(c.calculateTextPosition=RC(h,{isRoundCap:u===jC}),o){var d=c.shape,p=r?"r":"endAngle",f={};d[p]=r?0:i.startAngle,f[p]=i[p],(s?Nl:Fl)(c,{shape:f},o)}return c}};function WC(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function UC(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Nl:Fl)(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(a?Nl:Fl)(n,{shape:u},c,r)}function YC(t,e){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.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,n,i,r,o,a,l){var u=e.getItemVisual(n,"style");l||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(u);var c=i.getShallow("cursor");c&&t.attr("cursor",c);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(i);Xl(t,d,{labelFetcher:o,labelDataIndex:n,defaultText:gS(o.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(l&&p){var f=i.get(["label","position"]);t.textConfig.inside="middle"===f||null,BC(t,"outside"===f?h:f,tk(a),i.get(["label","rotate"]))}su(p,d,o.getRawValue(n),(function(t){return mS(e,t)}));var g=i.getModel(["emphasis"]);Sl(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Ol(t,i),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 nk(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=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(i,r,o)}var ik=function(){function t(){}return t}(),rk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return o(e,t),e.prototype.getDefaultShape=function(){return new ik},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function sk(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function lk(t,e,n){if(HS(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}r=n.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 uk(t,e,n){var i="polar"===t.type?vg:ts;return new i({shape:lk(e,n,t),silent:!0,z2:0})}var ck=$C;function hk(t){t.registerChartView(ck),t.registerSeriesModel(EC),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 n=t.componentType||"series";e.eachComponent({mainType:n,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 Bc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gk(t,e){var n=fk(t,e),i=t.get("center"),r=t.get("radius");s["t"](r)||(r=[0,r]),s["t"](i)||(i=[i,i]);var o=Pi(n.width,e.getWidth()),a=Pi(n.height,e.getHeight()),l=Math.min(o,a),u=Pi(i[0],o)+n.x,c=Pi(i[1],a)+n.y,h=Pi(r[0],l/2),d=Pi(r[1],l/2);return{cx:u,cy:c,r0:h,r:d}}function mk(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=fk(t,n),o=gk(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*pk,h=t.get("minAngle")*pk,d=0;e.each(i,(function(t){!isNaN(t)&&d++}));var p=e.getSum(i),f=Math.PI/(p||d)*2,g=t.get("clockwise"),m=t.get("roseType"),v=t.get("stillShowZeroSum"),y=e.getDataExtent(i);y[0]=0;var b=dk,_=0,x=c,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:m?NaN:l});else{i="area"!==m?0===p&&v?f:t*f:dk/d,ir&&(r+=yk);var p=Math.atan2(s,a);if(p<0&&(p+=yk),p>=i&&p<=r||p+yk>=i&&p+yk<=r)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,m=n*Math.cos(r)+t,v=n*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,Tk.fromArray(t[0]),Ak.fromArray(t[1]),Ik.fromArray(t[2]),Rn.sub(Pk,Tk,Ak),Rn.sub(Ek,Ik,Ak);var n=Pk.len(),i=Ek.len();if(!(n<.001||i<.001)){Pk.scale(1/n),Ek.scale(1/i);var r=Pk.dot(Ek),o=Math.cos(e);if(o1&&Rn.copy(jk,Ik),jk.toArray(t[1])}}}}function Bk(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,Tk.fromArray(t[0]),Ak.fromArray(t[1]),Ik.fromArray(t[2]),Rn.sub(Pk,Ak,Tk),Rn.sub(Ek,Ik,Ak);var i=Pk.len(),r=Ek.len();if(!(i<.001||r<.001)){Pk.scale(1/i),Ek.scale(1/r);var o=Pk.dot(e),a=Math.cos(n);if(o=l)Rn.copy(jk,Ik);else{jk.scaleAndAdd(Ek,s/Math.tan(Math.PI/2-c));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?Rn.copy(jk,Ak):h>1&&Rn.copy(jk,Ik)}jk.toArray(t[1])}}}}function Nk(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function Fk(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=w(i[0],i[1]),o=w(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=k([],i[1],i[0],a/r),l=k([],i[1],i[2],a/o),u=k([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c0&&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),u}function _(){m=y.rect[e]-i,v=r-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;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 n=Math.ceil(t/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),t-=n,t<=0)return}}function Hk(t,e,n,i){return $k(t,"x","width",e,n,i)}function Gk(t,e,n,i){return $k(t,"y","height",e,n,i)}function Wk(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Wn(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;rn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(h)t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var m=(i.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,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Uk,l=i.getLayout("viewRect"),u=i.getLayout("r"),c=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}i.each((function(t){var l=i.getItemGraphicEl(t),d=l.shape,p=l.getTextContent(),m=l.getTextGuideLine(),v=i.getItemModel(t),y=v.getModel("label"),b=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),w=Pi(y.get("edgeDistance"),c),S=y.get("bleedMargin"),C=v.getModel("labelLine"),k=C.get("length");k=Pi(k,c);var M=C.get("length2");if(M=Pi(M,c),Math.abs(d.endAngle-d.startAngle)0?"right":"left":E>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=E<0?-P+V:-P;q=H}else if("tangential"===$&&"outside"!==b&&"outer"!==b){var G=Math.atan2(E,D);G<0&&(G=2*V+G);var W=D>0;W&&(G=V+G),q=G-V}if(o=!!q,p.x=O,p.y=T,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 Rn(E,D),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,n,u,c,p,h,d);for(var m=0;m0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=i.r0}},e.type="pie",e}(Hm),nM=eM;function iM(t,e,n){e=Object(s["t"])(e)&&{coordDimensions:e}||Object(s["m"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Xw(i,e).dimensions,o=new Yw(r,t);return o.initData(i,n),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 n=this._getDataWithEncodedVisual();return n.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 iM(this,{coordDimensions:["value"],encodeDefaulter:s["h"](ch,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),(function(t){r.push(t)})),i.percent=Bi(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){rr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.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 n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(s["z"])(i)&&!isNaN(i)&&i<0)}))}}}function uM(t){t.registerChartView(nM),t.registerSeriesModel(sM),zv("pie",t.registerAction),t.registerLayout(Object(s["h"])(mk,"pie")),t.registerProcessor(vk("pie")),t.registerProcessor(lM("pie"))}var cM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}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,n){return n.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=cM,dM=4,pM=function(){function t(){}return t}(),fM=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}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 n,i=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,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.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,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=cC("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new mM:new CS,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},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}(Uc),_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}(Uc);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),OM=s["i"]({logBase:10},kM),TM={category:CM,value:kM,time:MM,log:OM},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 n=e.option,i=n.data,r=i&&Object(s["H"])(i,PM);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(s["C"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.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 EM=IM,DM={value:1,category:1,time:1,log:1};function LM(t,e,n,i){Object(s["k"])(DM,(function(r,a){var l=Object(s["I"])(Object(s["I"])({},TM[a],!0),i,!0),u=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return o(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=zc(this),i=n?qc(t):{},r=e.getTheme();Object(s["I"])(t,r.get(a+"Axis")),Object(s["I"])(t,this.getDefaultOption()),t.type=jM(t),n&&Vc(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=EM.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=l,n}(n);t.registerComponentModel(u)})),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 n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[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 NM(t){return"interval"===t.type||"log"===t.type}function FM(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=Wi(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=VM(a),l=r.niceTickExtent=[Ei(Math.ceil(t[0]/a)*a,s),Ei(Math.floor(t[1]/a)*a,s)];return $M(l,t),r}function zM(t){var e=Math.pow(10,Gi(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Ei(n*e)}function VM(t){return Li(t)+2}function qM(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[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 n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new EM({})),Object(s["t"])(i)&&(i=new EM({categories:Object(s["H"])(i,(function(t){return Object(s["A"])(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}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,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=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=Ei,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 n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[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,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(t?o.push({value:XM(l+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&h>>1;t[r][1]n&&(this._approxInterval=n);var o=tO.length,a=Math.min(QM(tO,this._approxInterval,0,o),o-1);this._interval=tO[a][1],this._minLevelUnit=tO[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(s["z"])(t)?t:+$i(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),tO=[["second",Fu],["minute",zu],["hour",Vu],["quarter-day",6*Vu],["half-day",12*Vu],["day",1.2*qu],["half-week",3.5*qu],["week",7*qu],["month",31*qu],["quarter",95*qu],["half-year",$u/2],["year",$u]];function eO(t,e,n,i){var r=$i(e),o=$i(n),a=function(t){return nc(r,t,i)===nc(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&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 u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}function nO(t,e){return t/=qu,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function iO(t){var e=30*qu;return t/=e,t>6?6:t>3?3:t>2?2:1}function rO(t){return t/=Vu,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function oO(t,e){return t/=e?zu:Fu,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function aO(t){return Wi(t,!0)}function sO(t,e,n){var i=new Date(t);switch(Ku(e)){case"year":case"month":i[hc(n)](0);case"day":i[dc(n)](1);case"hour":i[pc(n)](0);case"minute":i[fc(n)](0);case"second":i[gc(n)](0),i[mc(n)](0)}return i.getTime()}function lO(t,e,n,i){var r=1e4,o=Yu,a=0;function l(t,e,n,r,o,a,s){var l=new Date(e),u=e,c=l[r]();while(u1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u=i[0]&&b<=i[1]&&d++)}var _=(i[1]-i[0])/e;if(d>1.5*_&&p>_/1.5)break;if(c.push(v),d>_||t===o[f])break}h=[]}}}var x=Object(s["n"])(Object(s["H"])(c,(function(t){return Object(s["n"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=x.length-1;for(f=0;f0)i*=10;var o=[Ei(fO(e[0]/i)*i),Ei(pO(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){hO.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=mO(t)/mO(this.base),HM(t,this._extent)},e.prototype.normalize=function(t){return t=mO(t)/mO(this.base),GM(t,this._extent)},e.prototype.scale=function(t){return t=WM(t,this._extent),gO(this.base,t)},e.type="log",e}(BM),yO=vO.prototype;function bO(t,e){return dO(t,Li(e))}yO.getMinorTicks=hO.getMinorTicks,yO.getLabel=hO.getLabel,BM.registerClass(vO);var _O=vO,xO=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(a=0),a<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(a=d,u=!0),null!=p&&(l=p,c=!0),{min:a,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[SO[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=wO[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),wO={min:"_determinedMin",max:"_determinedMax"},SO={min:"_dataMin",max:"_dataMax"};function CO(t,e,n){var i=t.rawExtentInfo;return i||(i=new xO(t,e,n),t.rawExtentInfo=i,i)}function kO(t,e){return null==e?null:Object(s["l"])(e)?NaN:t.parse(e)}function MO(t,e){var n=t.type,i=CO(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var l=bC("bar",a),u=!1;if(s["k"](l,(function(t){u=u||t.getBaseAxis()===e.axis})),u){var c=xC(l),h=OO(r,o,e,c);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function OO(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=SC(i,n.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 u=-1/0;s["k"](a,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,h=e-t,d=1-(l+u)/o,p=h/d-h;return e+=p*(u/c),t-=p*(l/c),{min:t,max:e}}function TO(t,e){var n=e,i=MO(t,n),r=i.extent,o=n.get("splitNumber");t instanceof _O&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function AO(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 uO({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(BM.getClass(e)||ZM)}}function IO(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function PO(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):s["C"](e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):s["w"](e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(EO(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function EO(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function DO(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof YM?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=PO(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;ct[1]&&(t[1]=i[1])}))}var FO=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}(),zO=FO,VO=["x","y"];function qO(t){return"interval"===t.type||"time"===t.type}var $O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=VO,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(qO(t)&&qO(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=wn([],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"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.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 n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new Wn(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return M(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.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 n=[];if(this._invTransform)return M(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},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(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new Wn(n,i,r,o)},e}(zO),HO=$O,GO=kr();function WO(t){return"category"===t.type?YO(t):ZO(t)}function UO(t,e){return"category"===t.type?KO(t,e):{ticks:s["H"](t.scale.getTicks(),(function(t){return t.value}))}}function YO(t){var e=t.getLabelModel(),n=XO(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function XO(t,e){var n,i,r=QO(t,"labels"),o=jO(e),a=JO(r,o);return a||(s["w"](o)?n=oT(t,o):(i="auto"===o?eT(t):o,n=rT(t,i)),tT(r,o,{labels:n,labelCategoryInterval:i}))}function KO(t,e){var n,i,r=QO(t,"ticks"),o=jO(e),a=JO(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),s["w"](o))n=oT(t,o,!0);else if("auto"===o){var l=XO(t,t.getLabelModel());i=l.labelCategoryInterval,n=s["H"](l.labels,(function(t){return t.tickValue}))}else i=o,n=rT(t,i,!0);return tT(r,o,{ticks:n,tickCategoryInterval:i})}function ZO(t){var e=t.scale.getTicks(),n=PO(t);return{labels:s["H"](e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function QO(t,e){return GO(t)[e]||(GO(t)[e]=[])}function JO(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,m=Qn(n({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/c,y=p/h;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=GO(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 iT(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 rT(t,e,n){var i=PO(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=RO(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function oT(t,e,n){var i=t.scale,r=PO(t),o=[];return s["k"](i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var aT=[0,1],sT=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Ri(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),lT(n,i.count())),Ii(t,aT,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),lT(n,i.count()));var r=Ii(t,n,aT,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(),n=UO(this,e),i=n.ticks,r=Object(s["H"])(i,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return uT(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 n=this.scale.getMinorTicks(e),i=Object(s["H"])(n,(function(t){return Object(s["H"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},t.prototype.getViewLabels=function(){return WO(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(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return nT(this)},t}();function lT(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function uT(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a,l=t.getExtent();if(1===r)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var u=e[r-1].tickValue-e[0].tickValue,c=(e[r-1].coord-e[0].coord)/u;Object(s["k"])(e,(function(t){t.coord-=c/2}));var h=t.scale.getExtent();a=1+h[1]-e[r-1].tickValue,o={coord:e[r-1].coord+c*a},e.push(o)}var d=l[0]>l[1];p(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]}),p(l[1],o.coord)&&(i?o.coord=l[1]:e.pop()),i&&p(o.coord,l[1])&&e.push({coord:l[1]})}function p(t,e){return t=Ei(t),e=Ei(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}(cT),dT=hT;function pT(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],l=r.position,u=a?"onZero":l,c=r.dim,h=i.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"===c?[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"===c?g[p[u]]:d[0],"x"===c?g[p[u]]:d[3]],o.rotation=Math.PI/2*("x"===c?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"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===u?-y:y,o.z2=1,o}function fT(t){return"cartesian2d"===t.get("coordinateSystem")}function gT(t){var e={xAxisModel:null,yAxisModel:null};return s["k"](e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Ar).models[0];e[i]=o})),e}var mT=Math.log;function vT(t,e,n){var i=ZM.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=MO(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=mT(t.base);u=[mT(u[0])/d,mT(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=i.getExtent.call(t);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=i.getInterval.call(t),g=u[0],m=u[1];if(c&&h)f=(m-g)/a;else if(c){m=u[0]+f*a;while(mu[0]&&isFinite(g)&&isFinite(u[0]))f=zM(f),g=u[1]-f*a}else{var v=t.getTicks().length-1;v>a&&(f=zM(f));var y=f*a;m=Math.ceil(u[1]/f)*f,g=Ei(m-y),g<0&&u[0]>=0?(g=0,m=Ei(y)):m>0&&u[1]<=0&&(m=0,g=-Ei(y))}var b=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*b,m+f*_),i.setInterval.call(t,f),(b||_)&&i.setNiceExtent.call(t,g+f,m-f)}var yT=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=VO,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(s["F"])(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],l=t[a],u=l.model,c=l.scale;NM(c)&&u.get("alignTicks")&&null==u.get("interval")?r.push(l):(TO(c,u),NM(c)&&(e=l))}r.length&&(e||(e=r.pop(),TO(e.scale,e.model)),Object(s["k"])(r,(function(t){vT(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Object(s["k"])(n.x,(function(t){_T(n,"y",t,r)})),Object(s["k"])(n.y,(function(t){_T(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Bc(i,{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(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),wT(t,e?o.x:o.y)}))}l(),r&&(Object(s["k"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=DO(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),l()),Object(s["k"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(s["A"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i0?"top":"bottom",i="center"):Vi(o-CT)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,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}(),MT={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,l=[o[0],0],u=[o[1],0];a&&(M(l,l,a),M(u,u,a));var c=Object(s["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Eg({subPixelOptimize:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",n.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]-u[0])*(l[0]-u[0])+(l[1]-u[1])*(l[1]-u[1]))}],(function(e,i){if("none"!==d[i]&&null!=d[i]){var r=iy(d[i],-g/2,-m/2,g,m,c.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}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=DT(n,i,e,t),o=jT(n,i,e,t);if(TT(e,o,r),LT(n,i,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,n,i){var r=Object(s["O"])(t.axisName,e.get("name"));if(r){var o,a,l=e.get("nameLocation"),u=t.nameDirection,c=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,PT(l)?t.labelOffset+u*h:0],g=e.get("nameRotate");null!=g&&(g=g*CT/180),PT(l)?o=kT.innerTextLayout(t.rotation,null!=g?g:t.rotation,u):(o=OT(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=c.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:kT.isLabelSilent(e),style:Zl(c,{text:r,font:m,overflow:"truncate",width:b,ellipsis:y,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Dm({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=kT.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,bs(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function OT(t,e,n,i){var r,o,a=zi(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Vi(a-CT/2)?(o=l?"bottom":"top",r="center"):Vi(a-1.5*CT)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*CT&&a>CT/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function TT(t,e,n){if(!RO(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(AT(o),AT(u)):IT(o,a)&&(i?(AT(a),AT(c)):(AT(o),AT(u))),!1===r?(AT(s),AT(h)):IT(l,s)&&(r?(AT(l),AT(d)):(AT(s),AT(h)))}}function AT(t){t&&(t.ignore=!0)}function IT(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=mn([]);return _n(r,r,-t.rotation),n.applyTransform(yn([],r,t.getLocalTransform())),i.applyTransform(yn([],r,e.getLocalTransform())),n.intersect(i)}}function PT(t){return"middle"===t||"center"===t}function ET(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function $T(t){var e=HT(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=WT(n);null==o&&(r.status=s?"show":"hide");var l=i.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:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(s["C"](u)){var g=f.name;f.name=u.replace("{value}",null!=g?g:"")}else s["w"](u)&&(f.name=u(f.name,f));var m=new xu(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}(Uc),xA=_A,wA=["axisLine","axisTickLabel","axisName"],SA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=s["H"](n,(function(t){var n=t.model.get("showName")?t.name:"",i=new RT(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));s["k"](i,(function(t){s["k"](wA,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),l=o.getModel("areaStyle"),u=r.get("show"),c=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"===i)for(var v=n[0].getTicksCoords(),y=e.cx,b=e.cy,_=0;_3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;BA(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);BA(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,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}(D);function BA(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(tt(i.event),NA(t,e,n,i,r))}function NA(t,e,n,i,r){r.isAvailableBehavior=Object(s["c"])(FA,null,n,i),t.trigger(e,r)}function FA(t,e,n){var i=n[t];return!t||i&&(!Object(s["C"])(i)||e.event[i+"Key"])}var zA=RA;function VA(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function qA(t,e,n,i){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 u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var $A,HA={axisPointer:1,tooltip:1,brush:1};function GA(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!HA.hasOwnProperty(i.mainType)&&r&&r.model!==n}function WA(t){if(Object(s["C"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}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 n=WA(t);this._defsUsePending=[];var i=new bi;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),iI(n,i,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(sI(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=uI(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&&(u=mI(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;i=new bi,i.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new ts({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,l=t.nodeName.toLowerCase(),u=i;if("defs"===l&&(r=!0),"text"===l&&(o=!0),"defs"===l||"switch"===l)a=e;else{if(!r){var c=$A[l];if(c&&Object(s["q"])($A,l)){a=c.call(this,t,e);var h=t.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:a};n.push(d),"g"===l&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,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,n,u,r,o):3===m.nodeType&&o&&this._parseText(m,a),m=m.nextSibling}},t.prototype._parseText=function(t,e){var n=new za({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});eI(e,n),iI(t,n,this._defsUsePending,!1,!1),rI(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){$A={g:function(t,e){var n=new bi;return eI(e,n),iI(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new ts;return eI(e,n),iI(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(t,e){var n=new Kf;return eI(e,n),iI(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Eg;return eI(e,n),iI(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(t,e){var n=new Jf;return eI(e,n),iI(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=nI(i));var r=new kg({shape:{points:n||[]},silent:!0});return eI(e,r),iI(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=nI(i));var r=new Tg({shape:{points:n||[]},silent:!0});return eI(e,r),iI(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Ga;return eI(e,n),iI(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new bi;return eI(e,a),iI(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new bi;return eI(e,a),iI(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",i=Hf(n);return eI(e,i),iI(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),QA={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Wg(e,n,i,r);return JA(t,o),tI(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Yg(e,n,i);return JA(t,r),tI(t,r),r}};function JA(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function tI(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};fI(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function eI(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(s["i"])(e.__inheritedStyle,t.__inheritedStyle))}function nI(t){for(var e=uI(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=uI(a);switch(r=r||gn(),s){case"translate":bn(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":xn(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":_n(r,r,-parseFloat(l[0])*hI);break;case"skewX":var u=Math.tan(parseFloat(l[0])*hI);yn(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*hI);yn(r,[1,c,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,n){var i=t.getAttribute("style");if(i){var r;pI.lastIndex=0;while(null!=(r=pI.exec(i))){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&&(n[l]=r[2])}}}function gI(t,e,n){for(var i=0;in&&(t=r,n=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 n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return Object(s["k"])(r,(function(e){"polygon"===e.type?SI(e.exterior,n,i,t):Object(s["k"])(e.points,(function(e){SI(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new Wn(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}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 n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new MI(o[0],o.slice(1)));break;case"MultiPolygon":s["k"](i.coordinates,(function(t){t[0]&&r.push(new MI(t[0],t.slice(1)))}));break;case"LineString":r.push(new OI([i.coordinates]));break;case"MultiLineString":r.push(new OI(i.coordinates))}var a=new TI(n[e||"name"],r,n.cp);return a.properties=n,a}))}for(var NI=[126,25],FI="南海诸岛",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:n,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,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=s["f"](),n=s["f"](),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,l=t.geo.projection,u=l&&l.stream;function c(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=[],n=!u&&l&&l.project,i=0;i=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Xl(e,Kl(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},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 cP(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):bs(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function hP(t,e,n,i,r){t.data||Dm({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function dP(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Sl(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Il(e,r,n),a}function pP(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var l=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&l.polygonStart(),s["k"](t,(function(t){l.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},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 n={};return s["k"](t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+t[0].getName(r),s=0,l=1/0,u=-1/0,c=n[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=Bc(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 EP(t,e){s["k"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var DP=function(){function t(){this.dimensions=OP}return t.prototype.create=function(t,e){var n=[];function i(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")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.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 i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));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)},i(t[0])));a.zoomLimit=s["O"].apply(null,s["H"](t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=PP,a.resize(t[0],e),s["k"](t,(function(t){t.coordinateSystem=a,EP(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=s["f"](),a=0;a=0;a--){var s=i[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 n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){ZP(t);var o=(n[0].hierNode.prelim+n[n.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||i[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:iE}function XP(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function KP(t,e){return Bc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ZP(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function QP(t,e,n,i){if(e){var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=JP(s),o=tE(o),s&&o){r=JP(r),a=tE(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(nE(eE(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!JP(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!tE(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function JP(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function tE(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function eE(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function nE(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function iE(t,e){return t.parentNode===e.parentNode?1:2}var rE=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),oE=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 rE},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)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,u=1-l,c=Pi(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,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"),O=M*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:k.get("position")||C,rotation:null==M?-x:O,origin:"center"}),T.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(n).focus=I),uE(r,a,h,n,g,f,m,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Ms||Xs(n.__edge,e)}})}function uE(t,e,n,i,r,o,a,l){var u=e.getModel(),c=t.get("edgeShape"),h=t.get("layout"),d=t.getOrient(),p=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),g=u.getModel("lineStyle").getLineStyle(),m=i.__edge;if("curve"===c)e.parentNode&&e.parentNode!==n&&(m||(m=i.__edge=new Bg({shape:pE(h,d,p,r,r)})),Nl(m,{shape:pE(h,d,p,o,a)},t));else if("polyline"===c)if("orthogonal"===h){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,y=[],b=0;be&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.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,n=e.data.getItemModel(this.dataIndex);return n.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 i=n.getData().tree.root,r=t.targetNode;if(s["C"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function PE(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function EE(t,e){var n=PE(t);return s["r"](n,e)>=0}function DE(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var LE=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},n=t.leaves||{},i=new xu(n,this,this.ecModel),r=AE.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),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,n){var i=this.getData().tree,r=i.root.children[0],o=i.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 n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=DE(i,this),n.collapsed=!i.isExpand,n},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),jE=LE;function RE(t,e,n){var i,r=[t],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s=0;o--)i.push(r[o])}}function NE(t,e){t.eachSeriesByType("tree",(function(t){FE(t,e)}))}function FE(t,e){var n=KP(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=YP((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=YP());var s=t.getData().tree.root,l=s.children[0];if(l){GP(s),RE(l,WP,a),s.hierNode.modifier=-l.hierNode.prelim,BE(l,UP);var u=l,c=l,h=l;BE(l,(function(t){var e=t.getLayout().x;ec.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),BE(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/(c.getLayout().x+d+p),f=r/(h.depth-1||1),BE(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/(c.getLayout().x+d+p),g=o/(h.depth-1||1),BE(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 zE(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(s["m"])(r,i)}))}))}function VE(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,r=FP(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}function qE(t){t.registerChartView(fE),t.registerSeriesModel(jE),t.registerLayout(NE),t.registerVisual(zE),VE(t)}var $E=["treemapZoomToNode","treemapRender","treemapMove"];function HE(t){for(var e=0;e<$E.length;e++)t.registerAction({type:$E[e],update:"updateView"},s["L"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],r=IE(t,i,e);if(r){var o=e.getViewRoot();o&&(t.direction=EE(o,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}function GE(t){var e=t.getData(),n=e.tree,i={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var r=xh(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",r)}))}var WE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};UE(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new xu({itemStyle:r},this,e);i=t.levels=YE(i,e);var a=s["H"](i||[],(function(t){return new xu(t,o,e)}),this),l=AE.createTree(n,this,u);function u(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}return l.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return Hp("nameValue",{name:o,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=DE(i,this),n.treePathInfo=n.treeAncestors,n},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 n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},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(){GE(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 UE(t){var e=0;s["k"](t.children,(function(t){UE(t);var n=t.value;s["t"](n)&&(n=n[0]),e+=n}));var n=t.value;s["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),s["t"](t.value)?t.value[0]=n:t.value=n}function YE(t,e){var n=ir(e.get("color")),i=ir(e.get(["aria","decal","decals"]));if(n){var r,o;t=t||[],s["k"](t,(function(t){var e=new xu(t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=t[0]||(t[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),t}}var XE=WE,KE=8,ZE=8,QE=5,JE=function(){function t(t){this.group=new bi,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){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(n,l,s),this._renderContent(t,l,a,s,i),Nc(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=vr(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*KE,e.emptyItemWidth);e.totalWidth+=a+ZE,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r){for(var o=0,a=e.emptyItemWidth,l=t.get(["breadcrumb","height"]),u=Rc(e.pos,e.box),c=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;c>u.width&&(c-=g-a,g=a,m=null);var v=new kg({shape:{points:tD(o,0,g,l,d===h.length-1,0===d)},style:Object(s["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ys({style:{text:m,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*Is,onclick:Object(s["h"])(r,f)});v.disableLabelAnimation=!0,this.group.add(v),eD(v,t,f),o+=g+ZE}},t.prototype.remove=function(){this.group.removeAll()},t}();function tD(t,e,n,i,r,o){var a=[[r?t:t-QE,e],[t+n,e],[t+n,e+i],[r?t:t-QE,e+i]];return!o&&a.splice(2,0,[t+n+QE,e+i/2]),!r&&a.push([t,e+i/2]),a}function eD(t,e,n){bs(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&DE(n,e)}}var nD=JE,iD=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,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,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;isD||Math.abs(t.dy)>sD)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Wn(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=gn();bn(s,s,[-e,-n]),xn(s,s,[t.scale,t.scale]),bn(s,s,[e,n]),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 n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Ic(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new nD(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(EE(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=vD(),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 n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.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;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(Hm);function vD(){return{nodeGroup:[],background:[],content:[]}}function yD(t,e,n,i,r,o,a,l,u,c){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"]),O=S.get("borderRadius")||0,T=V("nodeGroup",oD);if(T){if(u.add(T),T.x=h.x||0,T.y=h.y||0,T.markRedraw(),gD(T).nodeWidth=f,gD(T).nodeHeight=g,h.isAboveViewRoot)return T;var A=V("background",aD,c,hD);A&&R(T,A,w&&h.upperLabelHeight);var I=p.getModel("emphasis"),P=I.get("focus"),E=I.get("blurScope"),D=I.get("disabled"),L="ancestor"===P?a.getAncestorsIndices():"descendant"===P?a.getDescendantIndices():P;if(w)Al(T)&&Tl(T,!1),A&&(Tl(A,!D),d.setItemGraphicEl(a.dataIndex,A),Cl(A,L,E));else{var j=V("content",aD,c,dD);j&&B(T,j),A.disableMorphing=!0,A&&Al(A)&&Tl(A,!1),Tl(T,!D),d.setItemGraphicEl(a.dataIndex,T),Cl(T,L,E)}return T}}}function R(e,n,i){var r=bs(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:f,height:g,r:O}),v)N(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=fD(S);l.fill=s;var u=pD(C);u.fill=C.get("borderColor");var c=pD(k);c.fill=k.get("borderColor");var h=pD(M);if(h.fill=M.get("borderColor"),i){var d=f-2*m;F(n,s,o.opacity,{x:m,y:0,width:d,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,el(n)}e.add(n)}function B(e,n){var i=bs(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(f-2*m,0),o=Math.max(g-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:r,height:o,r:O}),v)N(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=fD(S);u.fill=l,u.decal=s.decal;var c=pD(C),h=pD(k),d=pD(M);F(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,el(n)}e.add(n)}function N(t){!t.invisible&&o.push(t)}function F(e,n,i,r){var o=p.getModel(r?uD:lD),l=vr(p.get("name"),null),u=o.getShallow("show");Xl(e,Kl(p,r?uD:lD),{defaultText:u?l:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var c=e.getTextContent();if(c){var d=c.style,f=Object(s["M"])(d.padding||0);r&&(e.setTextConfig({layoutRect:r}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-f[1]-f[3],0),n=Math.max((r?r.height:e.shape.height)-f[0]-f[2],0);d.width===t&&d.height===n||c.setStyle({width:t,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",z(d,r,h);var g=c.getState("emphasis");z(g?g.style:null,r,h)}}function z(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,i,o,a){var s=null!=b&&n[t][b],l=r[t];return s?(n[t][b]=null,q(l,s)):v||(s=new i,s instanceof Io&&(s.z2=bD(o,a)),$(l,s)),e[t][y]=s}function q(t,e){var n=t[y]={};e instanceof oD?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(s["m"])({},e.shape)}function $(t,e){var n=t[y]={},o=a.parentNode,s=e instanceof bi;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function bD(t,e){return t*cD+e}var _D=mD,xD=s["k"],wD=s["A"],SD=-1,CD=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=s["d"](e);this.type=i,this.mappingMethod=n,this._normalizeData=RD[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(OD(r),kD(r)):"category"===n?r.categories?MD(r):OD(r,!0):(s["b"]("linear"!==n||r.dataExtent),OD(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,n){s["A"](t)?s["k"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=s["t"](e)?[]:s["A"](e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&xD(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(s["t"](t))t=t.slice();else{if(!wD(t))return[];var e=[];xD(t,(function(t,n){e.push(n)})),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,n){for(var i,r=1/0,o=0,a=e.length;o=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function OD(t,e){var n=t.visual,i=[];s["A"](n)?xD(n,(function(t){i.push(t)})):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),jD(t,i)}function TD(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:DD([0,1])}}function AD(t){var e=this.option.visual;return e[Math.round(Ii(t,[0,1],[0,e.length-1],!0))]||{}}function ID(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function PD(t){var e=this.option.visual;return e[this.option.loop&&t!==SD?t%e.length:t]}function ED(){return this.option.visual[0]}function DD(t){return{linear:function(e){return Ii(e,t,this.option.visual,!0)},category:PD,piecewise:function(e,n){var i=LD.call(this,n);return null==i&&(i=Ii(e,t,this.option.visual,!0)),i},fixed:ED}}function LD(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=CD.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function jD(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 RD={linear:function(t){return Ii(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=CD.findPieceIndex(t,e,!0);if(null!=n)return Ii(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?SD:e},fixed:s["L"]};function BD(t,e,n){return t?e<=n:e=n.length||t===n[t.depth]){var o=XD(r,c,t,e,g,i);qD(t,o,n,i)}}))}else l=HD(c),h.fill=l}}function $D(t,e,n){var i=Object(s["m"])({},e),r=n.designatedVisualItemStyle;return Object(s["k"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function HD(t){var e=WD(t,"color");if(e){var n=WD(t,"colorAlpha"),i=WD(t,"colorSaturation");return i&&(e=Object(pe["f"])(e,null,null,i)),n&&(e=Object(pe["e"])(e,n)),e}}function GD(t,e){return null!=e?Object(pe["f"])(e,null,null,t):null}function WD(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function UD(t,e,n,i,r,o){if(o&&o.length){var a=YD(e,"color")||null!=r.color&&"none"!==r.color&&(YD(e,"colorAlpha")||YD(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new ND(h);return zD(d).drColorMappingBy=c,d}}}function YD(t,e){var n=t.get(e);return Object(s["t"])(n)&&n.length?{name:e,range:n}:null}function XD(t,e,n,i,r,o){var a=Object(s["m"])({},e);if(r){var l=r.type,u="color"===l&&zD(r).drColorMappingBy,c="index"===u?i:"id"===u?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[l]=r.mapValueToVisual(c)}return a}var KD=Math.max,ZD=Math.min,QD=s["O"],JD=s["k"],tL=["itemStyle","borderWidth"],eL=["itemStyle","gapWidth"],nL=["upperLabel","show"],iL=["upperLabel","height"],rL={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,l=Bc(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=a.size||[],c=Pi(QD(l.width,u[0]),r),h=Pi(QD(l.height,u[1]),o),d=i&&i.type,p=["treemapZoomToNode","treemapRootToNode"],f=IE(i,p,t),g="treemapRender"===d||"treemapMove"===d?i.rootRect:null,m=t.getViewRoot(),v=PE(m);if("treemapMove"!==d){var y="treemapZoomToNode"===d?dL(t,f,m,c,h):g?[g.width,g.height]:[c,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(),JD(v,(function(t,e){var n=(v[e+1]||m).getValue();t.setLayout(s["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=t.getData().tree.root;w.setLayout(pL(l,g,f),!0),t.setLayoutInfo(l),fL(w,new Wn(-l.x,-l.y,r,o),v,m,0)}};function oL(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(tL),u=s.get(eL)/2,c=gL(s),h=Math.max(l,c),d=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=KD(r-2*d,0),o=KD(o-d-p,0);var f=r*o,g=aL(t,s,f,e,n,i);if(g.length){var m={x:d,y:p,width:r,height:o},v=ZD(r,o),y=1/0,b=[];b.area=0;for(var _=0,x=g.length;_=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ea[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function cL(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;oi&&(i=a));var l=t.area*t.area,u=e*e*n;return l?KD(u*i/l,l/(u*r)):1/0}function hL(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;hFi&&(u=Fi),a=o}ui&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(b[0]=-b[0],b[1]=-b[1]);var w=y[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var S=-Math.atan2(y[1],y[0]);u[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*w+l[0],i.y=l[1]+C,h=y[0]<0?"right":"left",i.originX=-f*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,h="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*w+u[0],i.y=u[1]+C,h=y[0]>=0?"right":"left",i.originX=f*w,i.originY=-C;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function k(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(bi),oj=rj,aj=function(){function t(t){this.group=new bi,this._LineCtor=t||oj}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=lj(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=lj(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||sj(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i0}function lj(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Kl(e)}}function uj(t){return isNaN(t[0])||isNaN(t[1])}function cj(t){return t&&!uj(t[0])&&!uj(t[1])}var hj=aj,dj=[],pj=[],fj=[],gj=ne,mj=C,vj=Math.abs;function yj(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){dj[0]=gj(r[0],o[0],a[0],c),dj[1]=gj(r[1],o[1],a[1],c);var h=vj(mj(dj,e)-l);h=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function bj(t,e){var n=[],i=ae,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=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]),u&&"none"!==u){var f=RL(t.node1),v=yj(r,p[0],f*e);i(r[0][0],r[1][0],r[2][0],v,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],v,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){f=RL(t.node2),v=yj(r,p[1],f*e);i(r[0][0],r[1][0],r[2][0],v,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],v,n),r[1][1]=n[1],r[2][1]=n[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),u&&"none"!==u){f=RL(t.node1);g(o[0],o[0],a,f*e)}if(c&&"none"!==c){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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){var n=new CS,i=new hj,r=this.group;this._controller=new zA(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,l=this.group;if(_j(r)){var u={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?l.attr(u):Nl(l,u,t)}bj(t.getGraph(),jL(t));var c=t.getData();o.updateData(c);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,p),c.graph.eachNode((function(t){var e=t.dataIndex,n=t.getGraphicEl(),r=t.getModel();if(n){n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",(function(){d&&(d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,p),d.setFixed(e),c.setItemLayout(e,[n.x,n.y]))})).on("dragend",(function(){d&&d.setUnfixed(e)})),n.setDraggable(o&&!!d,!!r.get("cursor"));var a=r.get(["emphasis","focus"]);"adjacency"===a&&(bs(n).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(bs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.eachItemGraphicEl((function(t,e){var n=c.getItemModel(e),i=n.get(["label","rotate"])||0,r=t.getSymbolPath();if(f){var o=c.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,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof kj||(e=this._nodesMap[Sj(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},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,Oj("hostGraph","data")),s["K"](Mj,Oj("hostGraph","edgeData"));var Tj=Cj;function Aj(t,e,n,i,r){for(var o=new Tj(i),a=0;a "+p)),c++)}var f,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)f=dS(t,n);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:n.getEncode()}).dimensions;f=new Yw(y,n),f.initData(t)}var b=new Yw(["value"],n);return b.initData(u,l),r&&r(f,b),kE({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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new oM(i,i),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 n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){AL(this);var o=Aj(i,n,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,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var n=xu.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=o,i}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=i,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,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.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 u=sf({series:this,dataIndex:t,multipleSeries:e});return u},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,Ej={type:"graphRoam",event:"graphRoam",update:"none"};function Dj(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(Ej,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=e.coordinateSystem,r=FP(i,t,void 0,n);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 n=t.call(this,e)||this;return n.type="pointer",n}return o(e,t),e.prototype.getDefaultShape=function(){return new Lj},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(Ba),Rj=jj;function Bj(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=Pi(n[0],e.getWidth()),s=Pi(n[1],e.getHeight()),l=Pi(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function Nj(t,e){var n=null==t?"":t+"";return e&&(Object(s["C"])(e)?n=e.replace("{value}",n):Object(s["w"])(e)&&(n=e(t))),n}var Fj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=Bj(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),h=c?jC:vg,d=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=[s,l];ua(g,!a),s=g[0],l=g[1];for(var m=l-s,v=s,y=0;d&&y=t&&(0===e?0:i[e-1][0]).8?"bottom":"middle",align:u<-.4?"left":u>.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++){u=Math.cos(C),c=Math.sin(C);var R=new Eg({shape:{x1:u*(f-P)+d,y1:c*(f-P)+p,x2:u*(f-S-P)+d,y2:c*(f-S-P)+p},silent:!0,style:T});"auto"===T.stroke&&R.setStyle({stroke:i((I+j/x)/_)}),h.add(R),C+=M}C-=M}else C+=k}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,l,u){var c=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,n){var i,o=v.getItemModel(e),a=o.getModel("pointer"),s=Pi(a.get("width"),r.r),l=Pi(a.get("length"),r.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=Pi(c[0],r.r),d=Pi(c[1],r.r),p=a.get("keepAspect");return i=u?iy(u,h-s/2,d-l,s,l,null,p):new Rj({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function C(t,e){var n=g.get("roundCap"),i=n?jC:vg,a=g.get("overlap"),s=a?g.get("width"):u/v.count(),c=a?r.r-s:r.r-(t+1)*s,h=a?r.r:r.r-t*s,d=new i({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:l,r0:c,r:h}});return a&&(d.z2=_-v.get(y,t)%_),d}(m||f)&&(v.diff(h).add((function(e){var n=v.get(y,e);if(f){var i=S(e,o);Fl(i,{rotation:-((isNaN(+n)?w[0]:Ii(n,x,w,!0))+Math.PI/2)},t),c.add(i),v.setItemGraphicEl(e,i)}if(m){var r=C(e,o),a=g.get("clip");Fl(r,{shape:{endAngle:Ii(n,x,w,a)}},t),c.add(r),_s(t.seriesIndex,v.dataType,e,r),p[e]=r}})).update((function(e,n){var i=v.get(y,e);if(f){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=S(e,a);s.rotation=a,Nl(s,{rotation:-((isNaN(+i)?w[0]:Ii(i,x,w,!0))+Math.PI/2)},t),c.add(s),v.setItemGraphicEl(e,s)}if(m){var l=d[n],u=l?l.shape.endAngle:o,b=C(e,u),_=g.get("clip");Nl(b,{shape:{endAngle:Ii(i,x,w,_)}},t),c.add(b),_s(t.seriesIndex,v.dataType,e,b),p[e]=b}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var l=v.getItemGraphicEl(t),u=v.getItemVisual(t,"style"),c=u.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},u))}else l.useStyle(u),"pointer"!==l.type&&l.setColor(c);l.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",i(Ii(v.get(y,t),x,[0,1],!0))),l.z2EmphasisLift=0,Ol(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,Ol(d,e),Sl(d,r,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=iy(o,e.cx-r/2+Pi(a[0],e.r),e.cy-r/2+Pi(a[1],e.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new bi,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 n=a.getItemModel(e),o=a.get(s,e),g=new bi,m=i(Ii(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=r.cx+Pi(y[0],r.r),_=r.cy+Pi(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=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),C=r.cx+Pi(S[0],r.r),k=r.cy+Pi(S[1],r.r),M=Pi(w.get("width"),r.r),O=Pi(w.get("height"),r.r),T=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:Nj(o,A),width:isNaN(M)?null:M,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:T})}),su(x,{normal:w},o,(function(t){return Nj(t,A)})),p&&lu(x,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return Nj(a?a.interpolatedValue:o,A)}}),g.add(x)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(Hm),zj=Fj,Vj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return o(e,t),e.prototype.getInitialData=function(t,e){return iM(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,n){var i=t.call(this)||this,r=i,o=new Tg,a=new ys;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return o(e,t),e.prototype.updateData=function(t,e,n){var i=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,n||Hl(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Fl(i,{style:{opacity:l}},r,e)):Nl(i,{style:{opacity:l},shape:{points:a.points}},r,e),Ol(i,o),this._updateLabel(t,e),Sl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;Xl(r,Kl(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Rn(h[0][0],h[0][1]):null},Nl(r,{style:{x:l.x,y:l.y}},o,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),zk(n,Vk(a),{stroke:c})},e}(kg),Wj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new Gj(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);$l(n,t,e)})).execute(),this._data=i},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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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 iM(this,{coordDimensions:["value"],encodeDefaulter:s["h"](ch,this)})},e.prototype._defaultLabelLine=function(t){rr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},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 Bc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Zj(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(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,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function SR(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var CR=xR,kR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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 n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===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=[],n=s["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);s["k"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.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}(Uc),MR=kR,OR=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||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}(cT),TR=OR;function AR(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=PR(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=PR(s,[0,a]),r=o=PR(s,[r,o]),i=0}e[0]=PR(e[0],n),e[1]=PR(e[1],n);var l=IR(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=PR(e[i],h),u=IR(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function IR(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<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 ER=s["k"],DR=Math.min,LR=Math.max,jR=Math.floor,RR=Math.ceil,BR=Ei,NR=Math.PI,FR=function(){function t(t,e,n){this.type="parallel",this._axesMap=s["f"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;ER(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new TR(t,AO(o),[0,0],o.get("type"),i)),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(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();ER(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),TO(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Bc(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,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=zR(e.get("axisExpandWidth"),l),h=zR(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");if(p)t=zR(p[1]-p[0],l),p[1]=p[0]+t;else{t=zR(c*(h-1),l);var f=e.get("axisExpandCenter")||jR(u/2);p=[c*f-t/2],p[1]=p[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var m=[jR(BR(p[0]/c,1))+1,RR(BR(p[1]/c,1))-1],v=g/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),ER(n,(function(e,n){var o=(i.axisExpandable?qR:VR)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:NR/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],c=gn();_n(c,c,u),bn(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,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,n,i){null==n&&(n=0),null==i&&(i=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 u=this.hasAxisBrushed(),c=n;cr*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?AR(a,i,o,"all"):l="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[LR(0,p-d/2)],i[1]=DR(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function zR(t,e){return DR(LR(t,e[0]),e[1])}function VR(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function qR(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t=0;n--)Di(e[n])},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 n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;itB}function bB(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function _B(t,e,n,i){var r=new bi;return r.add(new ts({name:"main",style:CB(n),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"])(i,(function(n){r.add(new ts({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(s["h"])(AB,t,e,r,n),ondragend:Object(s["h"])(vB,e,{isEnd:!0})}))})),r}function xB(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=ZR(r,eB),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,g=h-s,m=f+r,v=g+r;SB(t,e,"main",a,s,f,g),i.transformable&&(SB(t,e,"w",l,u,o,v),SB(t,e,"e",d,u,o,v),SB(t,e,"n",l,u,m,o),SB(t,e,"s",l,p,m,o),SB(t,e,"nw",l,u,o,o),SB(t,e,"ne",d,u,o,o),SB(t,e,"sw",l,p,o,o),SB(t,e,"se",d,p,o,o))}function wB(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(CB(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(s["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),o=1===n.length?OB(t,n[0]):TB(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?rB[o]+"-resize":null})}))}function SB(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(DB(EB(t,e,[[i,r],[i+o,r+a]])))}function CB(t){return Object(s["i"])({strokeNoScale:!0},t.brushStyle)}function kB(t,e,n,i){var r=[KR(t,n),KR(e,i)],o=[ZR(t,n),ZR(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function MB(t){return _m(t.group)}function OB(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=wm(n[e],MB(t));return i[r]}function TB(t,e){var n=[OB(t,e[0]),OB(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function AB(t,e,n,i,r,o){var a=n.__brushOption,l=t.toRectRange(a.range),u=PB(e,r,o);Object(s["k"])(i,(function(t){var e=iB[t];l[e[0]][e[1]]+=u[e[0]]})),a.range=t.fromRectRange(kB(l[0][0],l[1][0],l[0][1],l[1][1])),dB(e,n),vB(e,{isEnd:!1})}function IB(t,e,n,i){var r=e.__brushOption.range,o=PB(t,n,i);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,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function EB(t,e,n){var i=gB(t,e);return i&&i!==XR?i.clipPath(n,t._transform):Object(s["d"])(n)}function DB(t){var e=KR(t[0][0],t[1][0]),n=KR(t[0][1],t[1][1]),i=ZR(t[0][0],t[1][0]),r=ZR(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function LB(t,e,n){if(t._brushType&&!VB(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=fB(t,e,n);if(!t._dragging)for(var a=0;ai.getWidth()||n<0||n>i.getHeight()}var qB={lineX:$B(0),lineY:$B(1),rect:{createCover:function(t,e){function n(t){return t}return _B({toRectRange:n,fromRectRange:n},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,n,i){xB(t,e,n,i)},updateCommon:wB,contain:RB},polygon:{createCover:function(t,e){var n=new bi;return n.add(new Tg({name:"main",style:CB(e),silent:!0})),n},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,n,i){e.childAt(0).setShape({points:EB(t,e,n)})},updateCommon:wB,contain:RB}};function $B(t){return{createCover:function(e,n){return _B({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=bB(e),i=KR(n[0][t],n[1][t]),r=ZR(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,a=gB(e,n);if(a!==XR&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),xB(e,n,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(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function UB(t,e,n){var i=YB(t);return function(t,r){return i.contain(r[0],r[1])&&!GA(t,e,n)}}function YB(t){return Wn.create(t)}var XB=["axisLine","axisTickLabel","axisName"],KB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new HB(n.getZr())).on("brush",s["c"](this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!ZB(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new bi,this.group.add(this._axisGroup),t.get("show")){var o=JB(t,e),a=o.coordinateSystem,l=t.getAreaSelectStyle(),u=l.width,c=t.axis.dim,h=a.getAxisLayout(c),d=s["m"]({strokeContainThreshold:u},h),p=new RT(t,d);s["k"](XB,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,l,t,o,u,n),km(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Wn.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:GB(u),isTargetByCursor:UB(u,o,i),getLinearBrushOtherExtent:WB(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(QB(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=s["H"](e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Sf);function ZB(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[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 tN=KB,eN={type:"axisAreaSelect",event:"axisAreaSelected"};function nN(t){t.registerAction(eN,(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 iN={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function rN(t){t.registerComponentView(CR),t.registerComponentModel(MR),t.registerCoordinateSystem("parallel",WR),t.registerPreprocessor(vR),t.registerComponentModel(YR),t.registerComponentView(tN),LM(t,"parallel",YR,iN),nN(t)}function oN(t){A_(rN),t.registerChartView(uR),t.registerSeriesModel(pR),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,mR)}var aN=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}(),sN=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new aN},e.prototype.buildPath=function(t,e){var n=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+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){rl(this)},e.prototype.downplay=function(){ol(this)},e}(Ba),lN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return o(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,l=a.width,u=a.height,c=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 n=new sN,i=bs(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,c,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(),O=M.get("localX"),T=M.get("localY"),A=e.getLayout();switch(n.shape.extent=Math.max(1,A.dy),n.shape.orient=d,"vertical"===d?(r=(null!=S?S*l:x.x)+A.sy,a=(null!=C?C*u:x.y)+x.dy,c=(null!=O?O*l:k.x)+A.ty,p=null!=T?T*u:k.y,f=r,g=a*(1-_)+p*_,m=c,v=a*_+p*(1-_)):(r=(null!=S?S*l:x.x)+x.dx,a=(null!=C?C*u:x.y)+A.sy,c=null!=O?O*l:k.x,p=(null!=T?T*u:k.y)+A.ty,f=r*(1-_)+c*_,g=a,m=r*_+c*(1-_),v=p),n.setShape({x1:r,y1:a,x2:c,y2:p,cpx1:f,cpy1:g,cpx2:m,cpy2:v}),n.useStyle(b.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color"),n.style.decal=e.node1.getVisual("style").decal;break;case"target":n.style.fill=e.node2.getVisual("color"),n.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)&&(n.style.fill=new Wg(0,0,+("horizontal"===d),+("vertical"===d),[{color:I,offset:0},{color:P,offset:1}]))}var E=y.getModel("emphasis");Ol(n,y,"lineStyle",(function(t){return t.getItemStyle()})),o.add(n),h.setItemGraphicEl(e.dataIndex,n);var D=E.get("focus");Sl(n,"adjacency"===D?e.getAdjacentDataIndices():D,E.get("blurScope"),E.get("disabled")),bs(n).dataType="edge"})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),s=i.getModel("emphasis"),h=new ts({shape:{x:null!=r?r*l:n.x,y:null!=a?a*u:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Xl(h,Kl(i),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),Ol(h,i),o.add(h),c.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"))})),c.eachItemGraphicEl((function(e,r){var o=c.getItemModel(r);o.get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/l,localY:this.shape.y/u})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(uN(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Hm);function uN(t,e,n){var i=new ts({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Fl(i,{shape:{width:t.width+20}},e,n),i}var cN=lN,hN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[r[a].depth]=new xu(r[a],this,e));if(i&&n){var s=Aj(i,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.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,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return Hp("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return Hp("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e),o=r.getLayout().value;i.value=o}return i},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),dN=hN;function pN(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=fN(t,e);t.layoutInfo=r;var o=r.width,a=r.height,l=t.getGraph(),u=l.nodes,c=l.edges;mN(u);var h=s["n"](u,(function(t){return 0===t.getLayout().value})),d=0!==h.length?0:t.get("layoutIterations"),p=t.get("orient"),f=t.get("nodeAlign");gN(u,c,n,i,o,a,d,p,f)}))}function fN(t,e){return Bc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gN(t,e,n,i,r,o,a,s,l){vN(t,e,n,r,o,s,l),wN(t,e,o,r,i,a,s),jN(t,s)}function mN(t){s["k"](t,(function(t){var e=DN(t.outEdges,EN),n=DN(t.inEdges,EN),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function vN(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],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:n},!0):g.setLayout({dx:n},!0);for(var y=0;yh-1?p:h-1;a&&"left"!==a&&bN(t,a,o,S);var C="vertical"===o?(r-n)/S:(i-n)/S;xN(t,C,o)}function yN(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function bN(t,e,n,i){if("right"===e){var r=[],o=t,a=0;while(o.length){for(var l=0;l0;o--)l*=.99,MN(s,l,a),kN(s,r,n,i,a),LN(s,l,a),kN(s,r,n,i,a)}function SN(t,e){var n=[],i="vertical"===e?"y":"x",r=Lr(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),s["k"](r.keys,(function(t){n.push(r.buckets.get(t))})),n}function CN(t,e,n,i,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 u="vertical"===o?(i-(e-1)*r)/l:(n-(e-1)*r)/l;u0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;var p="vertical"===r?i:n;if(l=u-e-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)s=t[d],l=s.getLayout()[o]+s.getLayout()[h]+e-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function MN(t,e,n){s["k"](t.slice().reverse(),(function(t){s["k"](t,(function(t){if(t.outEdges.length){var i=DN(t.outEdges,ON,n)/DN(t.outEdges,EN);if(isNaN(i)){var r=t.outEdges.length;i=r?DN(t.outEdges,TN,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-PN(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-PN(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function ON(t,e){return PN(t.node2,e)*t.getValue()}function TN(t,e){return PN(t.node2,e)}function AN(t,e){return PN(t.node1,e)*t.getValue()}function IN(t,e){return PN(t.node1,e)}function PN(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function EN(t){return t.getValue()}function DN(t,e,n){var i=0,r=t.length,o=-1;while(++or&&(r=e)})),s["k"](n,(function(e){var n=new ND({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:t.get("color")}),o=n.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 BN(t){t.registerChartView(cN),t.registerSeriesModel(dN),t.registerLayout(pN),t.registerVisual(RN),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 NN=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,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",n=r.getOrdinalMeta(),i=!0):"category"===l?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c="horizontal"===t.layout?0:1,h=this._baseAxisDim=u[c],d=u[1-c],p=[r,o],f=p[c].get("type"),g=p[1-c].get("type"),m=t.data;if(m&&i){var v=[];s["k"](m,(function(t,e){var n;s["t"](t)?(n=t.slice(),t.unshift(e)):s["t"](t.value)?(n=s["m"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var y=this.defaultValueDimensions,b=[{name:h,type:ww(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:ww(g),dimsDef:y.slice()}];return iM(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:s["h"](uh,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),FN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}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"])(FN,NN,!0);var zN=FN,VN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=HN(e,i,t,a,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(Hl(n),GN(s,n,i,t)):n=HN(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(Hm),qN=function(){function t(){}return t}(),$N=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return o(e,t),e.prototype.getDefaultShape=function(){return new qN},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();im){var x=[y,_];i.push(x)}}}return{boxData:n,outliers:i}}var eF={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Jc){var n="";0,Ah(n)}var i=tF(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function nF(t){t.registerSeriesModel(zN),t.registerChartView(UN),t.registerVisual(YN),t.registerLayout(KN),t.registerTransform(eF)}var iF=["color","borderColor"],rF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){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(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&lF(s,a))return;var l=sF(a,n,!0);Fl(l,{shape:{points:a.ends}},t,n),uF(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&lF(s,c)?i.remove(u):(u?(Nl(u,{shape:{points:c.ends}},t,a),Hl(u)):u=sF(c,a),uF(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),pF(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 n,i=e.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var o=i.getItemLayout(n),a=sF(o,n);uF(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){pF(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),oF=function(){function t(){}return t}(),aF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return o(e,t),e.prototype.getDefaultShape=function(){return new oF},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Ba);function sF(t,e,n){var i=t.ends;return new aF({shape:{points:n?cF(i,t):i},z2:100})}function lF(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(iF);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var gF=rF,mF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return o(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.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"])(mF,NN,!0);var vF=mF;function yF(t){t&&s["t"](t.series)&&s["k"](t.series,(function(t){s["A"](t)&&"k"===t.type&&(t.type="candlestick")}))}var bF=["itemStyle","borderColor"],_F=["itemStyle","borderColor0"],xF=["itemStyle","color"],wF=["itemStyle","color0"],SF={seriesType:"candlestick",plan:Cf(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?xF:wF)}function i(t,e){return e.get(t>0?bF:_F)}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=n(a,o),l.stroke=i(a,o)||l.fill;var u=e.ensureUniqueItemVisual(r,"style");Object(s["m"])(u,l)}}}}}},CF=SF,kF={seriesType:"candlestick",plan:Cf(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=OF(t,n),r=0,o=1,a=["x","y"],l=n.getDimensionIndex(n.mapDimension(a[r])),u=Object(s["H"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),c=u[0],h=u[1],d=u[2],p=u[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(l<0||u.length<4))return{progress:t.pipelineContext.large?g:f};function f(t,n){var a,s=n.getStore();while(null!=(a=t.next())){var u=s.get(l,a),f=s.get(c,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,u),x=k(b,u),w=k(m,u),S=k(v,u),C=[];M(C,x,0),M(C,_,1),C.push(T(S),T(x),T(w),T(_)),n.setItemLayout(a,{sign:MF(s,a,f,g,h),initBaseline:f>g?x[o]:_[o],ends:C,brushRect:O(m,v,u)})}function k(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function M(t,e,n){var o=e.slice(),a=e.slice();o[r]=bm(o[r]+i/2,1,!1),a[r]=bm(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function O(t,e,n){var a=k(t,n),s=k(e,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function T(t){return t[r]=bm(t[r],1),t}}function g(t,n){var i,a,s=IS(4*t.count),u=0,f=[],g=[],m=n.getStore();while(null!=(a=t.next())){var v=m.get(l,a),y=m.get(c,a),b=m.get(h,a),_=m.get(d,a),x=m.get(p,a);isNaN(v)||isNaN(_)||isNaN(x)?(s[u++]=NaN,u+=3):(s[u++]=MF(m,a,y,b,h),f[r]=v,f[o]=_,i=e.dataToPoint(f,null,g),s[u++]=i?i[0]:NaN,s[u++]=i?i[1]:NaN,f[o]=x,i=e.dataToPoint(f,null,g),s[u++]=i?i[1]:NaN)}n.setLayout("largePoints",s)}}};function MF(t,e,n,i,r){var o;return o=n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1,o}function OF(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Pi(Object(s["P"])(t.get("barMaxWidth"),r),r),a=Pi(Object(s["P"])(t.get("barMinWidth"),1),r),l=t.get("barWidth");return null!=l?Pi(l,r):Math.max(Math.min(r/2,o),a)}var TF=kF;function AF(t){t.registerChartView(gF),t.registerSeriesModel(vF),t.registerPreprocessor(yF),t.registerVisual(CF),t.registerLayout(TF)}function IF(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var PF=function(t){function e(e,n){var i=t.call(this)||this,r=new bS(e,n),o=new bi;return i.add(r),i.add(o),i.updateData(e,n),i}return o(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop){i.stopAnimation();var c=void 0;c=s["w"](u)?u(n):u,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a)}this._period=o,this._loop=a}},e.prototype._animateSymbol=function(t,e,n,i){if(e>0){t.__t=0;var r=this,o=t.animate("",i).when(e,{__t:1}).delay(n).during((function(){r._updateSymbolPosition(t)}));i||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,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=[t.x,t.y],a=o.slice(),s=ne,l=ie;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=l(e[0],i[0],n[0],r),c=l(e[1],i[1],n[1],r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0;o--)if(i[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-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=c[0]-u[0],d=c[1]-u[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(FF),$F=qF,HF=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),GF=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}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 HF},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;a0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],c=i[s++],h=1;h0){var f=(u+d)/2-(c-p)*r,g=(c+p)/2-(d-u)*r;if(fa(u,c,f,g,d,p,o,t,e))return a}else if(da(u,c,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.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,n=e.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),UF=WF,YF={seriesType:"lines",plan:Cf(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&$S(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){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,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=XF.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new UF:new hj(r?i?$F:VF:i?FF:oj),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||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),ZF=KF,QF="undefined"===typeof Uint32Array?Array:Uint32Array,JF="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],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(s["J"])([n,t[0],t[1]])})))}var ez=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(e,t),e.prototype.init=function(e){e.data=e.data||[],tz(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(tz(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.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),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},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 n=this._flatCoordsOffset[2*t],i=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),nz=ez;function iz(t){return t instanceof Array||(t=[t,t]),t}var rz={seriesType:"lines",reset:function(t){var e=iz(t.get("symbol")),n=iz(t.get("symbolSize")),i=t.getData();function r(t,e){var n=t.getItemModel(e),i=iz(n.getShallow("symbol",!0)),r=iz(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},oz=rz;function az(t){t.registerChartView(ZF),t.registerSeriesModel(nz),t.registerLayout(XF),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=Yn["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p0){var O=o(y)?s:l;y>0&&(y=y*k+S),_[x++]=O[M],_[x++]=O[M+1],_[x++]=O[M+2],_[x++]=O[M+3]*y*256}else x+=4}return h.putImageData(b,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Yn["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),uz=lz;function cz(t,e,n){var i=t[1]-t[0];e=s["H"](e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,o=0;return function(t){var i;for(i=o;i=0;i--){a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i=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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):dz(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(dz(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){jm(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,c=HS(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.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=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],k=n;ks[1]||Al[1])continue;var I=u.dataToPoint([T,A]);M=new ts({shape:{x:I[0]-o/2,y:I[1]-a/2,width:o,height:a},style:O})}else{if(isNaN(f.get(C[1],k)))continue;M=new ts({z2:1,shape:u.dataToRect([f.get(C[0],k)]).contentShape,style:O})}if(f.hasItemOption){var P=f.getItemModel(k),E=P.getModel("emphasis");g=E.getModel("itemStyle").getItemStyle(),m=P.getModel(["blur","itemStyle"]).getItemStyle(),v=P.getModel(["select","itemStyle"]).getItemStyle(),y=P.get(["itemStyle","borderRadius"]),x=E.get("focus"),w=E.get("blurScope"),S=E.get("disabled"),b=Kl(P)}M.shape.r=y;var D=t.getRawValue(k),L="-";D&&null!=D[2]&&(L=D[2]+""),Xl(M,b,{labelFetcher:t,labelDataIndex:k,defaultOpacity:O.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,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new uz;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(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),y=n.getExtent(),b="visualMap.continuous"===n.type?hz(y,n.option.range):cz(y,n.getPieceList(),n.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:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(Hm),fz=pz,gz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:bz[+l],categoryDim:bz[1-+l]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=Dz(r,t),n=wz(r,t,e,c),o=Rz(r,c,n);r.setItemGraphicEl(t,o),i.add(o),qz(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=Dz(r,t),s=wz(r,t,a,c),l=Fz(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?Bz(n,c,s):n=Rz(r,c,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),qz(n,c,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&Nz(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){Nz(i,bs(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(Hm);function wz(t,e,n,i){var r=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Sz(n,o,r,i,d),kz(t,e,r,o,a,d.boundingLength,d.pxSign,c,i,d),Mz(n,d.symbolScale,u,i,d);var p=d.symbolSize,f=oy(n.get("symbolOffset"),p);return Oz(n,p,r,o,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function Sz(t,e,n,i,r){var o,a=i.valueDim,l=t.get("symbolBoundingData"),u=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[a.wh]<=0);if(s["t"](l)){var d=[Cz(u,l[0])-c,Cz(u,l[1])-c];d[1]0?1:-1}function Cz(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function kz(t,e,n,i,r,o,a,l,u,c){var h,d=u.valueDim,p=u.categoryDim,f=Math.abs(n[p.wh]),g=t.getItemVisual(e,"symbolSize");h=s["t"](g)?g.slice():null==g?["100%","100%"]:[g,g],h[p.index]=Pi(h[p.index],f),h[d.index]=Pi(h[d.index],i?f:Math.abs(o)),c.symbolSize=h;var m=c.symbolScale=[h[0]/l,h[1]/l];m[d.index]*=(u.isHorizontal?-1:1)*a}function Mz(t,e,n,i,r){var o=t.get(yz)||0;o&&(_z.attr({scaleX:e[0],scaleY:e[1],rotation:n}),_z.updateTransform(),o/=_z.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o||0}function Oz(t,e,n,i,r,o,a,l,u,c,h,d){var p=h.categoryDim,f=h.valueDim,g=d.pxSign,m=Math.max(e[f.index]+l,0),v=m;if(i){var y=Math.abs(u),b=s["O"](t.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var x=Pi(b,e[f.index]),w=Math.max(m+2*x,0),S=_?0:2*x,C=Ki(i),k=C?i:$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"===i||(k=c?$z((Math.abs(c)+S)/w):0),v=k*w-S,d.repeatTimes=k,d.symbolMargin=x}var O=g*(v/2),T=d.pathPosition=[];T[p.index]=n[p.wh]/2,T[f.index]="start"===a?O:"end"===a?u-O:u/2,o&&(T[0]+=o[0],T[1]+=o[1]);var A=d.bundlePosition=[];A[p.index]=n[p.xy],A[f.index]=n[f.xy];var I=d.barRectShape=s["m"]({},n);I[f.wh]=g*Math.max(Math.abs(n[f.wh]),Math.abs(T[f.index]+O)),I[p.wh]=n[p.wh];var P=d.clipShape={};P[p.xy]=-n[p.xy],P[p.wh]=h.ecSize[p.wh],P[f.xy]=0,P[f.wh]=n[f.wh]}function Tz(t){var e=t.symbolPatternSize,n=iy(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Az(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(zz(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Iz(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?Vz(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=Tz(n),r.add(o),Vz(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Pz(t,e,n){var i=s["m"]({},e.barRectShape),r=t.__pictorialBarRect;r?Vz(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new ts({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,t.add(r))}function Ez(t,e,n,r){if(n.symbolClip){var o=t.__pictorialClipPath,a=s["m"]({},n.clipShape),l=e.valueDim,u=n.animationModel,c=n.dataIndex;if(o)Nl(o,{shape:a},u,c);else{a[l.wh]=0,o=new ts({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[l.wh]=n.clipShape[l.wh],i[r?"updateProps":"initProps"](o,{shape:h},u,c)}}}function Dz(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Lz,n.isAnimationEnabled=jz,n}function Lz(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function jz(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Rz(t,e,n,i){var r=new bi,o=new bi;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Az(r,e,n):Iz(r,e,n),Pz(r,n,i),Ez(r,e,n,i),r.__pictorialShapeStr=Fz(t,n),r.__pictorialSymbolMeta=n,r}function Bz(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;Nl(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?Az(t,e,n,!0):Iz(t,e,n,!0),Pz(t,n,!0),Ez(t,e,n,!0)}function Nz(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];zz(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),s["k"](o,(function(t){Vl(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function Fz(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function zz(t,e,n){s["k"](t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function Vz(t,e,n,r,o,a){e&&t.attr(e),r.symbolClip&&!o?n&&t.attr(n):n&&i[o?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,a)}function qz(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),l=r.getModel(["blur","itemStyle"]).getItemStyle(),u=r.getModel(["select","itemStyle"]).getItemStyle(),c=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},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=l,t.ensureState("select").style=u,c&&(t.cursor=c),t.z2=n.z2}));var f=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;Xl(g,Kl(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:gS(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}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=Mu(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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,c=l.boundaryGap;function h(t){return t.name}o.x=0,o.y=u.y+c[0];var d=new yw(this._layersSeries||[],a,h,h),p=[];function f(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],d=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=h)}return{y0:r,max:o}}function iV(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,n,i,r){var o=t.call(this)||this;o.z2=rV,o.textConfig={inside:!0},bs(o).seriesIndex=n.seriesIndex;var a=new ys({z2:oV,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return o(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;bs(o).dataIndex=e.dataIndex;var a=e.getModel(),l=a.getModel("emphasis"),u=e.getLayout(),c=s["m"]({},u);c.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"),c,!0);s["m"](c,p),s["k"](Ts,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=Jk(n,c);i&&(e.shape=i)})),t?(o.setShape(c),o.shape.r=u.r0,Nl(o,{shape:{r:u.r}},n,e.dataIndex)):(Nl(o,{shape:c},n),Hl(o)),o.useStyle(h),this._updateLabel(n);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||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,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,l=Math.cos(a),u=Math.sin(a),c=this,h=c.getTextContent(),d=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,f=i.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*u+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",uV="sunburstHighlight",cV="sunburstUnhighlight";function hV(t){t.registerAction({type:lV,update:"updateView"},(function(t,e){function n(e,n){var i=IE(t,[lV],e);if(i){var r=e.getViewRoot();r&&(t.direction=EE(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:uV,update:"none"},(function(t,e,n){function i(e){var n=IE(t,[uV],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(s["m"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i),n.dispatchAction(Object(s["m"])(t,{type:"highlight"}))})),t.registerAction({type:cV,update:"updateView"},(function(t,e,n){t=Object(s["m"])({},t),n.dispatchAction(Object(s["m"])(t,{type:"downplay"}))}))}var dV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,l=t.getViewRoot(),u=this.group,c=t.get("renderLabelForZeroData"),h=[];l.eachNode((function(t){h.push(t)}));var d=this._oldChildren||[];function p(t,e){function n(t){return t.getId()}function i(n,i){var r=null==n?null:t[n],o=null==i?null:e[i];f(r,o)}0===t.length&&0===e.length||new yw(e,t,n,n).add(i).update(i).remove(s["h"](i,null)).execute()}function f(i,r){if(c||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):g(r);else if(i){var s=new sV(i,t,e,n);u.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function g(t){t&&t.piece&&(u.remove(t.piece),t.piece=null)}function m(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new sV(i,t,e,n),u.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(u.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 n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Ic(a,s)}}n=!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 n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},e.type="sunburst",e}(Hm),pV=dV,fV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};gV(n);var i=this._levelModels=s["H"](t.levels||[],(function(t){return new xu(t,this,e)}),this),r=AE.createTree(n,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=DE(i,this),n},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(){GE(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 n=t.value;s["t"](n)&&(n=n[0]),e+=n}));var n=t.value;s["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),s["t"](t.value)?t.value[0]=n:t.value=n}var mV=fV,vV=Math.PI/180;function yV(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");s["t"](i)||(i=[0,i]),s["t"](e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),l=Pi(e[0],r),u=Pi(e[1],o),c=Pi(i[0],a/2),h=Pi(i[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-c)/(w||1),C=t.get("clockwise"),k=t.get("stillShowZeroSum"),M=C?1:-1,O=function(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===b&&k?_:r*_;o1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(s["C"])(o)&&(o=Object(pe["c"])(o,(t.depth-1)/(i-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,t,i.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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=kV(i).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),OV=MV;function TV(t,e){return e=e||[0,0],s["H"](["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/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"](TV,t)}}}function IV(t,e){return e=e||[0,0],s["H"]([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),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 EV(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function DV(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"])(EV,t)}}}function LV(t,e){return e=e||[0,0],s["H"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=e[i],s=t[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function jV(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[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(),n=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:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function BV(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(s["q"])(t,"text")))}function NV(t,e,n){var i,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},i={};var l=Object(s["q"])(a,"textPosition");n?i.position=l?a.textPosition:"inside":l&&(i.position=a.textPosition),Object(s["q"])(a,"textPosition")&&(i.position=a.textPosition),Object(s["q"])(a,"textOffset")&&(i.offset=a.textOffset),Object(s["q"])(a,"textRotation")&&(i.rotation=a.textRotation),Object(s["q"])(a,"textDistance")&&(i.distance=a.textDistance)}return FV(o,t),Object(s["k"])(o.rich,(function(t){FV(t,t)})),{textConfig:i,textContent:r}}function FV(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,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";VV(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(s["k"])(e.rich,(function(t){VV(t,t)})),i}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"])(En,(function(t,e){return t[e]=1,t}),{}),En.join(", "),["","style","shape","extra"]),GV=kr();function WV(t,e,n,i,r){var o=t+"Animation",a=Rl(t,i,r)||{},l=GV(e).userDuring;return a.duration>0&&(a.during=l?Object(s["c"])(nq,{el:e,userDuring:l}):null,a.setToFinal=!0,a.scope=t),Object(s["m"])(a,n[o]),a}function UV(t,e,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,l=n.isAnimationEnabled(),u=GV(t),c=e.style;u.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),iq("shape",t,e,h),iq("extra",t,e,h),sq(t,e,c,h)),d.style=c,ZV(t,d,a),JV(t,e),l)if(o){var p={};Object(s["k"])(HV,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(p[t]=p[t]||{}),Object(s["m"])(t?p[t]:p,n.enterFrom))}));var f=WV("enter",t,e,n,r);f.duration>0&&t.animateFrom(p,f)}else QV(t,e,r||0,n,h);YV(t,e),c?t.dirty():t.markRedraw()}function YV(t,e){for(var n=GV(t).leaveToProps,i=0;i0&&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 n=tq.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=tq.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=tq.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=tq.el.style;if(e)return e[t]},setExtra:function(t,e){var n=tq.el.extra||(tq.el.extra={});return n[t]=e,this},getExtra:function(t){var e=tq.el.extra;if(e)return e[t]}};function nq(){var t=this,e=t.el;if(e){var n=GV(e).userDuring,i=t.userDuring;n===i?(tq.el=e,i(eq)):t.el=t.userDuring=null}}function iq(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var l=n.transition,u=r.transition;if(u)if(!o&&(o=i[t]={}),KV(u))Object(s["m"])(o,a);else for(var c=ir(u),h=0;h=0){!o&&(o=i[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=i.style={});var g=Object(s["F"])(n);for(c=0;c=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function S(n,i){null==i&&(i=l);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,u=b(i,fq).getItemStyle();null!=o&&(u.fill=o),null!=a&&(u.opacity=a);var c={inheritColor:Object(s["C"])(o)?o:"#000"},h=_(i,fq),d=Zl(h,null,c,!1,!0);d.text=h.getShallow("show")?Object(s["P"])(t.getFormattedLabel(i,fq),gS(e,i)):null;var p=Ql(h,c,!1);return M(n,u),u=zV(u,d,p),n&&k(u,n),u.legacy=!0,u}function C(n,i){null==i&&(i=l);var r=b(i,pq).getItemStyle(),o=_(i,pq),a=Zl(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(s["Q"])(t.getFormattedLabel(i,pq),t.getFormattedLabel(i,fq),gS(e,i)):null;var u=Ql(o,null,!0);return M(n,r),r=zV(r,a,u),n&&k(r,n),r.legacy=!0,r}function k(t,e){for(var n in e)Object(s["q"])(e,n)&&(t[n]=e[n])}function M(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function O(t,n){if(null==n&&(n=l),Object(s["q"])(SV,t)){var i=e.getItemVisual(n,"style");return i?i[SV[t]]:null}if(Object(s["q"])(CV,t))return e.getItemVisual(n,t)}function T(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return yC(Object(s["i"])({axis:e},t))}}function A(){return n.getCurrentSeriesIndices()}function I(t){return ou(t,n)}}function jq(t){var e={};return Object(s["k"])(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=e[r]=e[r]||[];o[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function Rq(t,e,n,i,r,o,a){if(i){var s=Bq(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Sl(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(e)}function Bq(t,e,n,i,r,o){var a=-1,l=e;e&&Nq(e,i,r)&&(a=Object(s["r"])(o.childrenRef(),e),e=null);var u=!e,c=e;c?c.clearStates():(c=Aq(i),l&&Mq(l,c)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.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(c,n,i,r,u,wq),Fq(c,n,i,r,u),Iq(t,c,n,i,wq,r,u),Object(s["q"])(i,"info")&&(kV(c).info=i.info);for(var h=0;h=0?o.replaceAt(c,a):o.add(c),c}function Nq(t,e,n){var i=kV(t),r=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&Kq(o)&&Xq(o)!==i.customPathData||"image"===r&&Object(s["q"])(a,"image")&&a.image!==i.customImagePath}function Fq(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Nq(a,o,i)&&(a=null),a||(a=Aq(o),t.setClipPath(a)),Iq(null,a,e,o,null,i,r)}}function zq(t,e,n,i,r,o){if(!t.isGroup){Vq(n,null,o),Vq(n,pq,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=Aq(a),t.setTextContent(c)),Iq(null,c,e,a,null,i,r);for(var h=a&&a.style,d=0;d=c;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 n=t&&t.name;return null!=n?n:xq+e}function Uq(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;Bq(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Yq(t){var e=this.context,n=e.oldChildren[t];XV(n,kV(n).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(Tq),t.registerSeriesModel(OV)}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,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||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 u={};this.makeElOption(u,r,t,e,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=s["h"](n$,e,h);this.updatePointerEl(a,u,d),this.updateLabelEl(a,u,d,e)}else a=this._group=new bi,this.createPointerEl(a,u,t,e),this.createLabelEl(a,u,t,e),n.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 n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=HT(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,r){var o=e.pointer;if(o){var a=Qq(t).pointerEl=new i[o.type](Jq(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Qq(t).labelEl=new ys(Jq(e.label));t.add(r),r$(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Qq(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Qq(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),r$(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Tm(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)}),i.add(r)),a$(r,n,!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){n$(this._axisPointerModel,!e&&this._moveAnimation,this._handle,o$(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(o$(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(o$(i)),Qq(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.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(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Km(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function n$(t,e,n,i){i$(Qq(n).lastProp,i)||(Qq(n).lastProp=i,e?Nl(n,i,t):(n.stopAnimation(),n.attr(i)))}function i$(t,e){if(s["A"](t)&&s["A"](e)){var n=!0;return s["k"](e,(function(e,i){n=n&&i$(t[i],e)})),!!n}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,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var s$=e$;function l$(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function u$(t,e,n,i,r){var o=n.get("value"),a=h$(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=bc(s.get("padding")||0),u=s.getFont(),c=Qn(a,u),h=r.position,d=c.width+l[1]+l[3],p=c.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),c$(h,d,p,i);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:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function c$(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function h$(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var l={value:EO(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};s["k"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);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,n){var i=gn();return _n(i,i,n.rotation),bn(i,i,n.position),xm([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function p$(t,e,n,i,r,o){var a=RT.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),u$(e,i,r,o,{position:d$(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function f$(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function g$(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function m$(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,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,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=y$(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=l$(i),h=b$[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=pT(a.model,n);p$(e,t,d,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=pT(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=d$(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=y$(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(s$);function y$(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var b$={line:function(t,e,n){var i=f$([e,n[0]],[e,n[1]],_$(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:g$([e-i/2,n[0]],[i,r],_$(t))}}};function _$(t){return"x"===t.dim?0:1}var x$=v$,w$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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}(Uc),S$=w$,C$=kr(),k$=s["k"];function M$(t,e,n){if(!a["a"].node){var i=e.getZr();C$(i).records||(C$(i).records={}),O$(i,e);var r=C$(i).records[t]||(C$(i).records[t]={});r.handler=n}}function O$(t,e){function n(n,i){t.on(n,(function(n){var r=P$(e);k$(C$(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),T$(r.pendings,e)}))}C$(t).initialized||(C$(t).initialized=!0,n("click",s["h"](I$,"click")),n("mousemove",s["h"](I$,"mousemove")),n("globalout",A$))}function T$(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function A$(t,e,n){t.handler("leave",null,n)}function I$(t,e,n,i){e.handler(t,n,i)}function P$(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function E$(t,e){if(!a["a"].node){var n=e.getZr(),i=(C$(n).records||{})[t];i&&(C$(n).records[t]=null)}}var D$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";M$("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){E$("axisPointer",e)},e.prototype.dispose=function(t,e){E$("axisPointer",e)},e.type="axisPointer",e}(Sf),L$=D$;function j$(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Cr(o,t);if(null==a||a<0||s["t"](a))return{point:[]};var l=o.getItemGraphicEl(a),u=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(u&&u.dataToPoint)if(t.isStacked){var c=u.getBaseAxis(),h=u.getOtherAxis(c),d=h.dim,p=c.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),i=u.dataToPoint(m)||[]}else i=u.dataToPoint(o.getValues(s["H"](u.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(l){var v=l.getBoundingRect().clone();v.applyTransform(l.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:l}}var R$=kr();function B$(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(s["c"])(n.dispatchAction,n),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){U$(r)&&(r=j$({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var u=U$(r),c=o.axesInfo,h=l.axesInfo,d="leave"===i||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 n=u||t.containPoint(r);Object(s["k"])(l.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=G$(c,t);if(!d&&n&&(!c||o)){var a=o&&o.value;null!=a||u||(a=i.pointToData(r)),null!=a&&N$(t,a,m,!1,p)}}))}));var v={};return Object(s["k"])(h,(function(t,e){var n=t.linkGroup;n&&!f[e]&&Object(s["k"])(n.axesInfo,(function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,W$(e),W$(t)))),v[t.key]=o}}))})),Object(s["k"])(v,(function(t,e){N$(h[e],t,m,!0,p)})),q$(f,h,p),$$(g,r,t,a),H$(h,a,n),p}}function N$(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=F$(e,t),l=a.payloadBatch,u=a.snapToValue;l[0]&&null==r.seriesIndex&&Object(s["m"])(r,l[0]),!i&&t.snap&&o.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l),n.showTooltip(t,a,u)}else n.showPointer(t,e)}function F$(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,l=-1;return Object(s["k"])(e.seriesModels,(function(e,u){var c,h,d=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(d,t,n);h=p.dataIndices,c=p.nestestValue}else{if(h=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null),!h.length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var f=t-c,g=Math.abs(f);g<=a&&((g=0&&l<0)&&(a=g,l=f,r=c,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,n,i){t[e.key]={value:n,payloadBatch:i}}function V$(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=UT(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function q$(t,e,n){var i=n.axesInfo=[];Object(s["k"])(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function $$(t,e,n,i){if(!U$(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function H$(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=R$(i)[r]||{},a=R$(i)[r]={};Object(s["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(s["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var l=[],u=[];Object(s["k"])(o,(function(t,e){!a[e]&&u.push(t)})),Object(s["k"])(a,(function(t,e){!o[e]&&l.push(t)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function G$(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function W$(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function U$(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Y$(t){KT.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=BT(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,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(e),c=i.get("type");if(c&&"none"!==c){var h=l$(i),d=Q$[c](o,a,u,l);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),f=Z$(e,n,i,a,p);u$(t,n,i,r,f)},e}(s$);function Z$(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=gn();_n(d,d,s),bn(d,d,[i.cx,i.cy]),l=xm([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=RT.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var m=i.cx,v=i.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var Q$={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:f$(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:m$(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:m$(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},J$=K$,tH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.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}(Uc),eH=tH,nH=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}(Uc);s["K"](nH,xM);var iH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="angleAxis",e}(nH),rH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="radiusAxis",e}(nH),oH=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(cT);oH.prototype.dataToRadius=cT.prototype.dataToCoord,oH.prototype.radiusToData=cT.prototype.coordToData;var aH=oH,sH=kr(),lH=function(t){function e(e,n){return t.call(this,"angle",e,n||[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(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=Qn(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),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}(cT);lH.prototype.dataToAngle=cT.prototype.dataToCoord,lH.prototype.angleToData=cT.prototype.coordToData;var uH=lH,cH=["radius","angle"],hH=function(){function t(t){this.dimensions=cH,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new aH,this._angleAxis=new uH,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=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),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 n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=la)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var i=dH(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=dH(e);return i===this?this.pointToData(n):null},t}();function dH(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var pH=hH;function fH(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=Pi(i[0],r),t.cy=Pi(i[1],o);var a=t.getRadiusAxis(),l=Math.min(r,o)/2,u=e.get("radius");null==u?u=[0,"100%"]:s["t"](u)||(u=[0,u]);var c=[Pi(u[0],l),Pi(u[1],l)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function gH(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();s["k"](BO(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),s["k"](BO(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),TO(i.scale,i.model),TO(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function mH(t){return"angleAxis"===t.mainType}function vH(t,e){if(t.type=e.get("type"),t.scale=AO(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),mH(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var yH={dimensions:cH,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new pH(i+"");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),n.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}})),n}},bH=yH,_H=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function xH(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[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],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var CH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return o(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),l=s["H"](n.getViewLabels(),(function(t){t=s["d"](t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));SH(l),SH(o),s["k"](_H,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||kH[e](this.group,t,i,o,a,r,l)}),this)}},e.type="angleAxis",e}(KT),kH={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=wH(n),u=l?0:1;a=0===o[u]?new Kf({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new _g({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),u=o[wH(n)],c=s["H"](i,(function(t){return new Eg({shape:xH(n,[u,u+l],t.coord)})}));t.add(gm(c,{style:s["i"](a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),l=e.getModel("minorTick"),u=(a.get("inside")?-1:1)*l.get("length"),c=o[wH(n)],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 xu(b.textStyle,u,u.ecModel))}var _=new ys({silent:RT.isLabelSilent(e),style:Zl(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:y})});if(t.add(_),h){var x=RT.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=i.rawLabel,bs(_).eventData=x}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine"),l=a.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d=0?"p":"n",M=_;y&&(i[s][C]||(i[s][C]={p:_,n:_}),M=i[s][C][k]);var O=void 0,T=void 0,A=void 0,I=void 0;if("radius"===h.dim){var P=h.dataToCoord(S)-_,E=o.dataToCoord(C);Math.abs(P)=I})}}}))}function RH(t){var e={};s["k"](t,(function(t,n){var i=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])/i.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=DH(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=Pi(t.get("barWidth"),l),p=Pi(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return s["k"](e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=Pi(t.categoryGap,r),a=Pi(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,c=(l-o)/(u+(u-1)*a);c=Math.max(c,0),s["k"](i,(function(t,e){var n=t.maxWidth;n&&n=e.y&&t[1]<=e.y+e.height:n.contain(n.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(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=tG(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=tG(e);return i===this?this.pointToData(n):null},t}();function tG(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var eG=JH;function nG(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new eG(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Ar).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var iG={create:nG,dimensions:QH},rG=iG,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,n,i,r){var o=n.axis,a=o.coordinateSystem,s=cG(a,1-uG(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=l$(i),h=lG[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=qH(n);p$(e,t,d,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=qH(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=d$(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=uG(r),s=cG(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 u=cG(o,1-a),c=(u[1]+u[0])/2,h=[c,c];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,n){var i=f$([e,n[0]],[e,n[1]],uG(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:g$([e-i/2,n[0]],[i,r],uG(t))}}};function uG(t){return t.isHorizontal()?0:1}function cG(t,e){var n=t.getRect();return[n[oG[e]],n[oG[e]]+n[aG[e]]]}var hG=sG,dG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="single",e}(Sf);function pG(t){A_(Y$),KT.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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e,n,i){var r=qc(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}(Uc);function gG(t,e){var n,i=t.cellSize;n=s["t"](i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=s["H"]([0,1],(function(t){return Fc(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Vc(t,e,{type:"box",ignoreSize:r})}var mG=fG,vG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new ts({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){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 u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=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,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Tg({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(s["C"])(t)&&t?Oc(t,e):Object(s["w"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},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],n,a,o)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),l=r.get("position"),u=r.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(s["C"])(o)||(o&&(e=Bu(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===l?0:1,d="horizontal"===n?0:1;a="start"===l?-a:a;for(var p="center"===u,f=0;f=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/bG)-Math.floor(n[0].time/bG)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function xG(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var wG=_G;function SG(t){t.registerComponentModel(mG),t.registerComponentView(yG),t.registerCoordinateSystem("calendar",wG)}function CG(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function kG(t,e){var n;return s["k"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function MG(t,e,n){var i=s["m"]({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(s["I"](r,i,!0),Vc(r,i,{ignoreSize:!0}),$c(n,r),AG(n,r),AG(n,r,"shape"),AG(n,r,"style"),AG(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}var OG=["transition","enterFrom","leaveTo"],TG=OG.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function AG(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?OG:TG,r=0;r=0;u--){c=n[u],h=vr(c.id,null),d=null!=h?r.get(h):null;if(d){p=d.parent,m=DG(p);var v=p===i?{width:o,height:a}:{width:m.width,height:m.height},y={},b=Nc(d,c,v,null,{hv:c.hv,boundingMode:c.bounding},y);if(!DG(d).isNew&&b){for(var _=c.transition,x={},w=0;w=0)?x[S]=C:d[S]=C}Nl(d,x,t,0)}else d.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){BG(n,DG(n).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"](EG,t)?EG[t]:hm(t);var n=new e({});return DG(n).type=t,n}function RG(t,e,n,i){var r=jG(n);return e.add(r),i.set(t,r),DG(r).id=t,DG(r).isNew=!0,r}function BG(t,e,n,i){var r=t&&t.parent;r&&("group"===t.type&&t.traverse((function(t){BG(t,e,n,i)})),XV(t,e,i),n.removeKey(DG(t).id))}function NG(t,e,n,i){t.isGroup||s["k"]([["cursor",Io.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];s["q"](e,i)?t[i]=s["P"](e[i],n[1]):null==t[i]&&(t[i]=n[1])})),s["k"](s["F"](e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=s["w"](i)?i:null}})),s["q"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function FG(t){return t=s["m"]({},t),s["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ec),(function(e){delete t[e]})),t}function zG(t,e,n){var i=bs(t).eventData;t.silent||t.ignore||i||(i=bs(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.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 n,i=Object(s["f"])(),r=[],o=Object(s["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||l(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&u(t)&&(l(t),n=!0)}function l(t){o.set(t.uid,!0),r.push(t),c(t)}function u(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}function c(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function UG(t){var e=t.ecModel,n={infoList:[],infoMap:Object(s["f"])()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(GG(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return o(e,t),e.prototype.init=function(t,e,n){var i=KG(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},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 n=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(s["f"])(),n=this._fillSpecifiedTargetAxis(e);n?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(n){var i=this.getReferringComponents(GG(n),Ir);if(i.specified){e=!0;var r=new YG;Object(s["k"])(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new YG;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){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)}))}}}i&&Object(s["k"])(qG,(function(e){if(i){var r=n.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),i=!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,n=this.get("rangeMode");Object(s["k"])([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(GG(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(s["k"])(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(GG(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(s["k"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},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 n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else rW(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));rW(i,(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,n=this._dataExtent;rW(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Ii(n[0]+o,n,[0,100],!0):null!=r&&(o=Ii(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Ri(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();function sW(t,e,n){var i=[1/0,-1/0];rW(n,(function(t){NO(i,t.getData(),e)}));var r=t.getAxisModel(),o=CO(r.axis.scale,r,i).calculate();return[o.min,o.max]}var lW=aW,uW={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(GG(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new lW(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=Object(s["f"])();return Object(s["k"])(n,(function(t){Object(s["k"])(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},cW=uW;function hW(t){t.registerAction("dataZoom",(function(t,e){var n=WG(e,t);Object(s["k"])(n,(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,cW),hW(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function fW(t){t.registerComponentModel(JG),t.registerComponentView(iW),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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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,n){var i=yW(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),s["I"](t,i.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}(Uc),_W=bW;function xW(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Bc(i,o,r);jc(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Nc(t,i,o,r)}function wW(t,e){var n=bc(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new ts({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,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,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),l=t.get("feature")||{},u=this._features||(this._features={}),c=[];s["k"](l,(function(t,e){c.push(e)})),new yw(this._featureNames||[],c).add(h).update(h).remove(s["h"](h,null)).execute(),this._featureNames=c,xW(r,t,n),r.add(wW(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),l=t.getTextContent(),u=l&&l.ensureState("emphasis");if(u&&!s["w"](u)&&e){var c=u.style||(u.style={}),h=Qn(e,ys.makeFont(c)),d=t.x+r.x,p=t.y+r.y+o,f=!1;p+h.height>n.getHeight()&&(a.position="top",f=!0);var g=f?-5-h.height:o+10;d+h.width/2>n.getWidth()?(a.position=["100%",g],c.align="right"):d-h.width/2<0&&(a.position=[0,g],c.align="left")}}))}function h(r,o){var a,s=c[r],h=c[o],p=l[s],f=new xu(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===s&&(p.title=i.newTitle),s&&!h){if(CW(s))a={onclick:f.option.onclick,featureName:s};else{var g=yW(s);if(!g)return;a=new g}u[s]=a}else if(a=u[h],!a)return;a.uid=Su("toolbox-feature"),a.model=f,a.ecModel=e,a.api=n;var m=a instanceof gW;s||!h?!f.get("show")||m&&a.unusable?m&&a.remove&&a.remove(e,n):(d(f,a,s),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?rl:ol)(i[t])},a instanceof gW&&a.render&&a.render(f,e,n,i)):m&&a.dispose&&a.dispose(e,n)}function d(i,l,u){var c,h,d=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),f=l instanceof gW&&l.getIcons?l.getIcons():i.get("icon"),g=i.get("title")||{};s["C"](f)?(c={},c[u]=f):c=f,s["C"](g)?(h={},h[u]=g):h=g;var m=i.iconPaths={};s["k"](c,(function(u,c){var f=Tm(u,{},{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[c],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});f.setTextContent(v),Dm({el:f,componentModel:t,itemName:c,formatterParamsExtra:{title:h[c]}}),f.__title=h[c],f.on("mouseover",(function(){var e=p.getItemStyle(),i=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")||i}),v.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",c])?rl:ol)(f),r.add(f),f.on("click",s["c"](l.onclick,l,e,n,c)),m[c]=f}))}},e.prototype.updateView=function(t,e,n,i){s["k"](this._features,(function(t){t instanceof gW&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){s["k"](this._features,(function(n){n instanceof gW&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){s["k"](this._features,(function(n){n instanceof gW&&n.dispose&&n.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 n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",l=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=a["a"].browser;if(Object(s["w"])(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+o,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.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=i+"."+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=n.get("lang"),S='',C=window.open();C.document.write(S),C.document.title=i}},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),OW=MW,TW="__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"),n={};return s["k"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},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,n){var i=this.model,r=i.get(["seriesIndex",n]);if(PW[n]){var o,a={series:[]},l=function(t){var e=t.subType,r=t.id,o=PW[n](e,r,t,i);o&&(s["i"](o,t.option),a.series.push(o));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var u=l.getAxesByScale("ordinal")[0];if(u){var c=u.dim,h=c+"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"===n}}};s["k"](AW,(function(t){s["r"](t,n)>=0&&s["k"](t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},l);var u=n;"stack"===n&&(o=s["I"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(u="tiled")),e.dispatchAction({type:"changeMagicType",currentType:u,newOption:a,newTitle:o,featureName:"magicType"})}},e}(gW),PW={line:function(t,e,n,i){if("bar"===t)return s["I"]({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return s["I"]({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===TW;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),s["I"]({id:e,stack:r?"":TW},i.get(["option","stack"])||{},!0)}};y_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var EW=IW,DW=new Array(60).join("-"),LW="\t";function jW(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.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:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function RW(t){var e=[];return s["k"](t,(function(t,n){var i=t.categoryAxis,r=t.valueAxis,o=r.dim,a=[" "].concat(s["H"](t.series,(function(t){return t.name}))),l=[i.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 u=[a.join(LW)],c=0;c=0)return!0}var VW=new RegExp("["+LW+"]+","g");function qW(t){for(var e=t.split(/\n+/g),n=FW(e.shift()).split(VW),i=[],r=s["H"](n,(function(t){return{name:t,data:[]}})),o=0;o=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function ZW(t){var e=tU(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return YW(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n],t){i[n]=t;break}})),i}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 nU=eU,iU=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],rU=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=aU(e,t);Object(s["k"])(sU,(function(t,e){(!n||!n.include||Object(s["r"])(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=cU[t.brushType](0,n,e);t.__rangeOffset={offset:dU[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(s["k"])(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(s["k"])(i.coordSyses,(function(i){var r=cU[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(s["k"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=cU[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?dU[t.brushType](i.values,r.offset,fU(i.xyMinMax,r.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(s["H"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:GB(i),isTargetByCursor:UB(i,t,n.coordSysModel),getLinearBrushOtherExtent:WB(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(s["r"])(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=aU(e,t),r=0;rt[1]&&t.reverse(),t}function aU(t,e){return Or(t,e,{includeMainTypes:iU})}var sU={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=Object(s["f"])(),a={},l={};(n||i||r)&&(Object(s["k"])(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(s["k"])(i,(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"])(n,t.getAxis("x").model)>=0||Object(s["r"])(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:uU.grid,xAxisDeclared:a[t.id],yAxisDeclared:l[t.id]})})))},geo:function(t,e){Object(s["k"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:uU.geo})}))}},lU=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],uU={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(_m(t)),e}},cU={lineX:Object(s["h"])(hU,0),lineY:Object(s["h"])(hU,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[oU([r[0],o[0]]),oU([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(s["H"])(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);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,n,i){var r=n.getAxis(["x","y"][t]),o=oU(Object(s["H"])([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[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,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(s["H"])(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function pU(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function fU(t,e){var n=gU(t),i=gU(e),r=[n[0]/i[0],n[1]/i[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,n,i){this._brushController||(this._brushController=new HB(n.getZr()),this._brushController.on("brush",s["c"](this._onBrush,this)).mount()),SU(t,e,this,i,n),wU(t,e)},e.prototype.onclick=function(t,e,n){_U[n].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 n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new mU(xU(this.model),i,{include:["grid"]});r.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[i],n,e)}})),KW(i,n),this._dispatchZoomAction(n)}function o(t,e,r){var o=e.getAxis(t),s=o.model,l=a(t,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=AR(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];vU(t,(function(t,n){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,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._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"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}mh("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=xU(i),a=Or(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,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:yU+e+o};a[n]=o,r.push(a)}}));var CU=bU;function kU(t){t.registerComponentModel(_W),t.registerComponentView(kW),vW("saveAsImage",OW),vW("magicType",EW),vW("dataView",UW),vW("dataZoom",CU),vW("restore",nU),A_(fW)}var MU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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}(Uc),OU=MU;function TU(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,n=0,i=t.length;n-1?(u+="top:50%",c+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(u+="left:50%",c+="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;u+=";"+a+":-"+f+"px";var g=e+" solid "+r+"px;",m=["position:absolute;width:"+l+"px;height:"+l+"px;",u+";"+c+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'
'}function FU(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=a["a"].transformSupported?","+jU+i:",left"+i+",top"+i),LU+":"+r}function zU(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!a["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=a["a"].transform3dSupported,s="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+jU+":"+s+";":[["top",0],["left",0],[IU,s]]}function VU(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/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(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function qU(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=of(t,"html"),p=u+"px "+c+"px "+a+"px "+l;return i.push("box-shadow:"+p),e&&r&&i.push(FU(r,n)),o&&i.push("background-color:"+o),Object(s["k"])(["width","color","radius"],(function(e){var n="border-"+e,r=yc(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(VU(h)),null!=d&&i.push("padding:"+bc(d).join("px ")+"px"),i.join(";")+";"}function $U(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&F(t,a,document.body,i,r)}else{t[0]=i,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,n){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 i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;$U(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!s._enterable){var e=r.handler,n=r.painter.getViewportRoot();K(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=DU(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.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 n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=RU+qU(t,!this._firstShow,this._longHide)+zU(r[0],r[1],!0)+"border-color:"+Ac(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Object(s["C"])(r)&&"item"===n.get("trigger")&&!TU(n)&&(a=NU(n,i,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(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!a["a"].node&&n.getDom()){var r=tY(i,n);this._ticket="";var o=i.dataByCoordSys,s=oY(i,e,n);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:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=ZU;u.x=i.x,u.y=i.y,u.update(),bs(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=j$(i,e),h=c.point[0],d=c.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(tY(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=JU([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var o,a;this._lastDataByCoordSys=null,$v(n,(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 n=t.get("showDelay");e=Object(s["c"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=JU([e.tooltipOption],i),a=this._renderMode,l=[],u=Hp("section",{blocks:[],noHeader:!0}),c=[],h=new af;Object(s["k"])(t,(function(t){Object(s["k"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=h$(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=Hp("section",{header:o,noHeader:!Object(s["T"])(o),sortBlocks:!0,blocks:[]});u.blocks.push(d),Object(s["k"])(t.seriesDataIndices,(function(u){var p=n.getSeriesByIndex(u.seriesIndex),f=u.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=EO(e.axis,{value:r}),g.axisValueLabel=o,g.marker=h.makeTooltipMarker("item",Ac(g.color),a);var m=tp(p.formatTooltip(f,!0,null)),v=m.frag;if(v){var y=JU([p],i).get("valueFormatter");d.blocks.push(y?Object(s["m"])({valueFormatter:y},v):v)}m.text&&c.push(m.text),l.push(g)}}))}}))})),u.blocks.reverse(),c.reverse();var d=e.position,p=o.get("order"),f=Kp(u,h,a,p,n.get("useUTC"),o.get("textStyle"));f&&c.unshift(f);var g="richText"===a?"\n\n":"
",m=c.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,n){var i=this._ecModel,r=bs(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),l=r.dataModel||a,u=r.dataIndex,c=r.dataType,h=l.getData(c),d=this._renderMode,p=t.positionDefault,f=JU([h.getItemModel(u),l,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=f.get("trigger");if(null==g||"item"===g){var m=l.getDataParams(u,c),v=new af;m.marker=v.makeTooltipMarker("item",Ac(m.color),d);var y=tp(l.formatTooltip(u,!1,c)),b=f.get("order"),_=f.get("valueFormatter"),x=y.frag,w=x?Kp(_?Object(s["m"])({valueFormatter:_},x):x,v,d,b,i.get("useUTC"),f.get("textStyle")):y.text,S="item_"+l.name+"_"+u;this._showOrMove(f,(function(){this._showTooltipContent(f,w,m,S,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=bs(e),r=i.tooltipConfig,o=r.option||{};if(Object(s["C"])(o)){var a=o;o={content:a,formatter:a}}var l=[o],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:o.content});var c=t.positionDefault,h=JU(l,this._tooltipModel,c?{position:c}:null),d=h.get("content"),p=Math.random()+"",f=new af;this._showOrMove(h,(function(){var n=Object(s["d"])(h.get("formatterParams")||{});this._showTooltipContent(h,d,n,p,t.offsetX,t.offsetY,t.position,e,f)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,l,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var d=e,p=this._getNearestPoint([r,o],n,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"])(n)?n[0]:n,v=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,v&&(d=Ju(m.axisValue,d,g)),d=Mc(d,n,!0)}else if(Object(s["w"])(h)){var y=Object(s["c"])((function(e,i){e===this._ticket&&(c.setContent(i,u,t,f,a),this._updatePosition(t,a,r,o,c,n,l))}),this);this._ticket=i,d=h(n,i,y)}else d=h;c.setContent(d,u,t,f,a),c.show(t,f),this._updatePosition(t,a,r,o,c,n,l)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(s["t"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(s["t"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=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([n,i],o,r.el,p,{viewSize:[l,u],contentSize:c.slice()})),Object(s["t"])(e))n=Pi(e[0],l),i=Pi(e[1],u);else if(Object(s["A"])(e)){var f=e;f.width=c[0],f.height=c[1];var g=Bc(f,{width:l,height:u});n=g.x,i=g.y,h=null,d=null}else if(Object(s["C"])(e)&&a){var m=iY(e,p,c,t.get("borderWidth"));n=m[0],i=m[1]}else{m=eY(n,i,r,l,u,h?null:20,d?null:20);n=m[0],i=m[1]}if(h&&(n-=rY(h)?c[0]/2:"right"===h?c[0]:0),d&&(i-=rY(d)?c[1]/2:"bottom"===d?c[1]:0),TU(t)){m=nY(n,i,r,l,u);n=m[0],i=m[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(s["k"])(n,(function(n,o){var a=n.dataByAxis||[],l=t[o]||{},u=l.dataByAxis||[];r=r&&a.length===u.length,r&&Object(s["k"])(a,(function(t,n){var o=u[n]||{},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 n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(s["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];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(),E$("itemTooltip",e))},e.type="tooltip",e}(Sf);function JU(t,e,n){var i,r=e.ecModel;n?(i=new xu(n,r,r),i=new xu(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof xu&&(a=a.get("tooltip",!0)),Object(s["C"])(a)&&(a={formatter:a}),a&&(i=new xu(a,i,r)))}return i}function tY(t,e){return t.dispatchAction||Object(s["c"])(e.dispatchAction,e)}function eY(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function nY(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function iY(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function rY(t){return"center"===t||"middle"===t}function oY(t,e,n){var i=Tr(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Pr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=bs(e).tooltipConfig;if(n&&n.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(OU),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 uY(t,e){var n=ir(t?t.brush:[]);if(n.length){var i=[];s["k"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.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,i),cY(l),e&&!l.length&&l.push.apply(l,lY)}}function cY(t){var e={};s["k"](t,(function(t){e[t]=1})),t.length=0,s["k"](e,(function(e,n){t.push(n)}))}var hY=s["k"];function dY(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function pY(t,e,n){var i={};return hY(e,(function(e){var o=i[e]=r();hY(t[e],(function(t,i){if(ND.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new ND(r),"opacity"===i&&(r=s["d"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new ND(r))}}))})),i;function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function fY(t,e,n){var i;s["k"](n,(function(t){e.hasOwnProperty(t)&&dY(e[t])&&(i=!0)})),i&&s["k"](n,(function(n){e.hasOwnProperty(n)&&dY(e[n])?t[n]=s["d"](e[n]):delete t[n]}))}function gY(t,e,n,i,r,o){var a,l={};function u(t){return Bv(n,a,t)}function c(t,e){Fv(n,a,t,e)}function h(t,s){a=null==o?t:s;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=i.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 Wn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var EY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){CY(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:s["d"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:s["d"](n),$from:e})},e.type="brush",e}(Sf),DY=EY,LY="#ddd",jY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return o(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&fY(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:LY},i.hasOwnProperty("liftZ")||(i.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}(Uc);function RY(t,e){return s["I"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new xu(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var BY=jY,NY=["rect","polygon","lineX","lineY","keep","clear"],FY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,s["k"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return s["k"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){var e={show:!0,type:NY.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=FY;function VY(t){t.registerComponentView(DY),t.registerComponentModel(BY),t.registerPreprocessor(uY),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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}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}(Uc),$Y=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),l=s["P"](t.get("textBaseline"),t.get("textVerticalAlign")),u=new ys({style:Zl(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),h=t.get("subtext"),d=new ys({style:Zl(o,{text:h,fill:o.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),f=t.get("sublink"),g=t.get("triggerEvent",!0);u.silent=!p&&!g,d.silent=!f&&!g,p&&u.on("click",(function(){Ic(p,"_"+t.get("target"))})),f&&d.on("click",(function(){Ic(f,"_"+t.get("subtarget"))})),bs(u).eventData=bs(d).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),h&&i.add(d);var m=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=Bc(v,{width:n.getWidth(),height:n.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"),i.x=y.x,i.y=y.y,i.markRedraw();var b={align:a,verticalAlign:l};u.setStyle(b),d.setStyle(b),m=i.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});i.add(w)}},e.type="title",e}(Sf);function HY(t){t.registerComponentModel(qY),t.registerComponentView($Y)}var GY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),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,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Object(s["k"])(n,(function(e,n){var i,o=vr(ar(e),"");Object(s["A"])(e)?(i=Object(s["d"])(e),i.value=n):i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"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}(Uc),WY=GY,UY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="timeline.slider",e.defaultOption=Mu(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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="timeline",e}(Sf),KY=XY,ZY=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||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}(cT),QY=ZY,JY=Math.PI,tX=kr(),eX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,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](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,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 n,i=t.get(["label","position"]),r=t.get("orient"),o=iX(t,e);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"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&&(u=[k-m,0],k-=y)):(x&&(a=[k-m,0],k-=y),w&&(l=[0,0],C+=y),S&&(u=[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:n,labelAlign:t.get(["label","align"])||c[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[r],playPosition:a,prevBtnPosition:l,nextBtnPosition:u,axisExtent:M,controlSize:m,controlGap:v}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=gn(),a=r.x,l=r.y+r.height;bn(o,o,[-a,-l]),_n(o,o,-JY/2),bn(o,o,[a,l]),r=r.clone(),r.applyTransform(o)}var u=v(r),c=v(n.getBoundingRect()),h=v(i.getBoundingRect()),d=[n.x,n.y],p=[i.x,i.y];p[0]=d[0]=u[0][0];var f=t.labelPosOpt;if(null==f||Object(s["C"])(f)){var g="+"===f?0:1;y(d,c,u,1,g),y(p,h,u,1,1-g)}else{g=f>=0?0:1;y(d,c,u,1,g),p[1]=d[1]+f}function m(t){t.originX=u[0][0]-t.x,t.originY=u[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function y(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(d),i.setPosition(p),n.rotation=i.rotation=t.rotation,m(n),m(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=nX(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new QY("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new bi;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Eg({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(s["m"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Eg({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},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(s["k"])(a,(function(t){var a=n.dataToCoord(t.value),l=o.getItemModel(t.value),u=l.getModel("itemStyle"),c=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,u,e,d);p.ensureState("emphasis").style=c.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),xl(p);var f=bs(p);l.get("tooltip")?(f.dataIndex=t.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(p)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),l=n.getViewLabels();this._tickLabels=[],Object(s["k"])(l,(function(i){var o=i.tickValue,l=a.getItemModel(o),u=l.getModel("label"),c=l.getModel(["emphasis","label"]),h=l.getModel(["progress","label"]),d=n.dataToCoord(i.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(u,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=Zl(c),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,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),c=i.get("inverse",!0);function h(t,n,u,c){if(t){var h=ni(Object(s["P"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-h/2,h,h],p=rX(i,n+"Icon",d,{x:t[0],y:t[1],originX:r/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:u});p.ensureState("emphasis").style=l,e.add(p),xl(p)}}h(t.nextBtnPosition,"next",Object(s["c"])(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",Object(s["c"])(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,u?"stop":"play",Object(s["c"])(this._handlePlayClick,this,!u),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),l=this,u={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,n,i,!0)},onUpdate:function(t){aX(t,l._progressLine,o,n,i)}};this._currentPointer=oX(a,a,this._mainGroup,{},this._currentPointer,u)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=Di(i.getExtent().slice());n>r[1]&&(n=r[1]),n=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 n=t.getData(),i=t.coordinateSystem;if(e&&!wX(e)&&!Object(s["t"])(e.coord)&&i){var r=i.dimensions,o=MX(e,n,i,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),u=CX[e.type](n,o.baseDataDim,o.valueDataDim,a,l);e.coord=u[0],e.value=u[1]}else{for(var c=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;h<2;h++)CX[c[h]]&&(c[h]=PX(n,n.mapDimension(r[h]),c[h]));e.coord=c}}return e}function MX(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(OX(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function OX(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function TX(t,e){return!(t&&t.containData&&e.coord&&!xX(e))||t.containData(e.coord)}function AX(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!xX(e)&&!xX(n))||t.containZone(e.coord,n.coord)}function IX(t,e){return t?function(t,n,i,r){var o=r<2?t.coord&&t.coord[r]:t.value;return rp(o,e[r])}:function(t,n,i,r){return rp(t.value,e[r])}}function PX(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var EX=kr(),DX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(){this.markerGroupMap=Object(s["f"])()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){EX(t).keep=!1})),e.eachSeries((function(t){var r=yX.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!EX(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){EX(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(s["k"])(t,(function(t){var i=yX.getMarkerModelFromSeries(t,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(t){t&&(e?al(t):sl(t))}))}}))},e.type="marker",e}(Sf),LX=DX;function jX(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=Pi(a.get("x"),n.getWidth()),l=Pi(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=yX.getMarkerModelFromSeries(t,"markPoint");e&&(jX(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new CS),c=BX(r,t,e);e.setData(c),jX(e.getData(),t,i),c.each((function(t){var n=c.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),l=n.getShallow("symbolOffset"),u=n.getShallow("symbolKeepAspect");if(Object(s["w"])(i)||Object(s["w"])(r)||Object(s["w"])(o)||Object(s["w"])(l)){var h=e.getRawValue(t),d=e.getDataParams(t);Object(s["w"])(i)&&(i=i(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=n.getModel("itemStyle").getItemStyle(),f=Nv(a,"color");p.fill||(p.fill=f),c.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:l,symbolKeepAspect:u,style:p})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(t){t.traverse((function(t){bs(t).dataModel=e}))})),this.markKeep(u),u.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(LX);function BX(t,e,n){var i;i=t?Object(s["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(s["m"])(Object(s["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Yw(i,n),o=Object(s["H"])(n.get("data"),Object(s["h"])(kX,e));t&&(o=Object(s["n"])(o,Object(s["h"])(TX,t)));var a=IX(!!t,i);return r.initData(o,null,a),r}var NX=RX;function FX(t){t.registerComponentModel(_X),t.registerComponentView(NX),t.registerPreprocessor((function(t){fX(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var zX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},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,n,i){var r,o=t.getData();if(Object(s["t"])(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var l=void 0,u=void 0;if(null!=i.yAxis||null!=i.xAxis)l=e.getAxis(null!=i.yAxis?"y":"x"),u=Object(s["O"])(i.yAxis,i.xAxis);else{var c=MX(i,o,e,t);l=c.valueAxis;var h=aS(o,c.valueDataDim);u=PX(o,h,a)}var d="x"===l.dim?0:1,p=1-d,f=Object(s["d"])(i),g={coord:[]};f.type=null,f.coord=[],f.coord[p]=-1/0,g.coord[p]=1/0;var m=n.get("precision");m>=0&&Object(s["z"])(u)&&(u=+u.toFixed(Math.min(m,20))),f.coord[d]=g.coord[d]=u,r=[f,g,{type:a,valueIndex:i.valueIndex,value:u}]}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,n,i){var r=1-t,o=i.dimensions[t];return HX(e[r])&&HX(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function WX(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(GX(1,n,i,t)||GX(0,n,i,t)))return!0}return TX(t,e[0])&&TX(t,e[1])}function UX(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Pi(s.get("x"),r.getWidth()),u=Pi(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([h,d])}if(HS(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;HX(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):HX(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var YX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=yX.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=qX(e).from,o=qX(e).to;r.each((function(e){UX(r,e,!0,t,n),UX(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new hj);this.group.add(u.group);var c=XX(r,t,e),h=c.from,d=c.to,p=c.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,n,r){var o=e.getItemModel(n);UX(e,n,r,t,i);var l=o.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=Nv(a,"color")),e.setItemVisual(n,{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]),c.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})})),u.updateData(p),c.line.eachItemGraphicEl((function(t){bs(t).dataModel=e,t.traverse((function(t){bs(t).dataModel=e}))})),this.markKeep(u),u.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(LX);function XX(t,e,n){var i;i=t?Object(s["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(s["m"])(Object(s["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Yw(i,n),o=new Yw(i,n),a=new Yw([],n),l=Object(s["H"])(n.get("data"),Object(s["h"])($X,e,t,n));t&&(l=Object(s["n"])(l,Object(s["h"])(WX,t)));var u=IX(!!t,i);return r.initData(Object(s["H"])(l,(function(t){return t[0]})),null,u),o.initData(Object(s["H"])(l,(function(t){return t[1]})),null,u),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 n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},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,n,i){var r=kX(t,i[0]),o=kX(t,i[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 u=Object(s["J"])([{},r,o]);return u.coord=[r.coord,o.coord],u.x0=r.x,u.y0=r.y,u.x1=o.x,u.y1=o.y,u};function nK(t){return!isNaN(t)&&!isFinite(t)}function iK(t,e,n,i){var r=1-t;return nK(e[r])&&nK(n[r])}function rK(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return HS(t,"cartesian2d")?!(!n||!i||!iK(1,n,i,t)&&!iK(0,n,i,t))||AX(t,r,o):TX(t,r)||TX(t,o)}function oK(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Pi(s.get(n[0]),r.getWidth()),u=Pi(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var c=t.get(n[0],e),h=t.get(n[1],e),d=[c,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");c=t.get(n[0],e),h=t.get(n[1],e);nK(c)?o[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):nK(h)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var aK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],sK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=yX.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=Object(s["H"])(aK,(function(r){return oK(i,e,r,t,n)}));i.setItemLayout(e,r);var o=i.getItemGraphicEl(e);o.setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new bi});this.group.add(u.group),this.markKeep(u);var c=lK(r,t,e);e.setData(c),c.each((function(e){var n=Object(s["H"])(aK,(function(n){return oK(c,e,n,t,i)})),o=r.getAxis("x").scale,l=r.getAxis("y").scale,u=o.getExtent(),h=l.getExtent(),d=[o.parse(c.get("x0",e)),o.parse(c.get("x1",e))],p=[l.parse(c.get("y0",e)),l.parse(c.get("y1",e))];Di(d),Di(p);var f=!(u[0]>d[1]||u[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}(Uc),pK=dK,fK=s["h"],gK=s["k"],mK=bi,vK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}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,n){var i=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,n,a,o,l);var u=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),d=Bc(u,c,h),p=this.layoutInner(t,r,d,i,a,l),f=Bc(s["i"]({width:p.width,height:p.height},u),c,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,n,i,r,o,a){var l=this.getContentGroup(),u=s["f"](),c=e.get("selectedMode"),h=[];n.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=n.getSeriesByName(a)[0];if(!u.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,c,i);y.on("click",fK(_K,a,null,i,h)).on("mouseover",fK(wK,p.name,null,i,h)).on("mouseout",fK(SK,p.name,null,i,h)),u.set(a,!0)}else n.eachRawSeries((function(n){if(!u.get(a)&&n.legendVisualProvider){var l=n.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(n,a,o,r,e,t,{},p,f,c,i);m.on("click",fK(_K,null,a,i,h)).on("mouseover",fK(wK,null,a,i,h)).on("mouseout",fK(SK,null,a,i,h)),u.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();gK(t,(function(t){var i=t.type,r=new ys({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"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,n,i,r,o,a,l,u,c,h){var d=t.visualDrawType,p=r.get("itemWidth"),f=r.get("itemHeight"),g=r.isSelected(e),m=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),y=i.get("icon");u=y||u||"roundRect";var b=yK(u,i,a,l,d,g,h),_=new mK,x=i.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:u,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:u,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 O=i.get("inactiveColor");_.add(new ys({style:Zl(x,{text:M,x:S,y:f/2,fill:g?x.getTextColor():O,align:C,verticalAlign:"middle"})}));var T=new ts({shape:_.getBoundingRect(),invisible:!0}),A=i.getModel("tooltip");return A.get("show")&&Dm({el:T,componentModel:r,itemName:e,itemTooltipOption:A.option}),_.add(T),_.eachChild((function(t){t.silent=!0})),T.silent=!c,this.getContentGroup().add(_),xl(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();jc(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){jc("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.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:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+d+c[f],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+h[1-p]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Sf);function yK(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),gK(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?Wy(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function bK(t){var e=t.icon||"roundRect",n=iy(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function _K(t,e,n,i){SK(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),wK(t,e,n,i)}function xK(t){var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;while(in[r],g=[-d.x,-d.y];e||(g[i]=u[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[i]+=n[r]-p[r]:m[i]+=p[r]+y}v[1-i]+=d[o]/2-p[o]/2,u.setPosition(g),c.setPosition(m),h.setPosition(v);var _={x:0,y:0};if(_[r]=f?n[r]:d[r],_[o]=Math.max(d[o],p[o]),_[a]=Math.min(0,p[a]+v[1-i]),c.__rectSize=n[r],f){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-y,0),x[o]=_[o],c.setClipPath(new ts({shape:x})),c.__rectSize=x[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&Nl(u,{x:w.contentPosition[0],y:w.contentPosition[1]},f?t:null),this._updatePageInfoView(t,w),_},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;s["k"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,l=e.pageCount;i&&r&&i.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),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=DK[r],a=LK[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=y(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=c;++f)v=y(l[f]),(!v&&m.e>g.s+i||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+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(CK),RK=jK;function BK(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function NK(t){A_(TK),t.registerComponentModel(PK),t.registerComponentView(RK),BK(t)}function FK(t){A_(TK),A_(NK)}var zK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.inside",e.defaultOption=Mu(ZG.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(ZG),VK=zK,qK=kr();function $K(t,e,n){qK(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function HK(t,e){for(var n=qK(t).coordSysRecordMap,i=n.keys(),r=0;ri[n+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 n=qK(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(s["f"])());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=UG(t);Object(s["k"])(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,WK(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(s["f"])());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=XK(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Xm(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else GK(i,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,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),$K(i,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,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=tZ[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return AR(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:JK((function(t,e,n,i,r,o){var a=tZ[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:JK((function(t,e,n,i,r,o){var a=tZ[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function JK(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,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,n,i,r){var o=n.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,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.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=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.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 nZ(t){pW(t),t.registerComponentModel(VK),t.registerComponentView(eZ),KK(t)}var iZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Mu(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=iZ,oZ=ts,aZ=7,sZ=1,lZ=30,uZ=7,cZ="horizontal",hZ="vertical",dZ=5,pZ=["line","bar","candlestick","scatter"],fZ={easing:"cubicOut",duration:100,delay:0},gZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}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,n,i,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 bi;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?uZ:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===cZ?{right:o.width-r.x-r.width,top:o.height-lZ-aZ-i,width:r.width,height:lZ}:{right:aZ,top:r.y,width:lZ,height:r.height},l=qc(t.option);Object(s["k"])(["right","top","width","height"],(function(t){"ph"===l[t]&&(l[t]=a[t])}));var u=Bc(l,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===hZ&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==cZ||r?n===cZ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==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,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.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();i?(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)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=o){var a=this._shadowPolygonPts,s=this._shadowPolylinePts;if(r!==this._shadowData||o!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var l=r.getDataExtent(o),u=.3*(l[1]-l[0]);l=[l[0]-u,l[1]+u];var c,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 n=null==t||isNaN(t)||""===t,i=n?0:Ii(t,l,h,!0);n&&!c&&e?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&c&&(p.push([m,0]),f.push([m,0])),p.push([m,i]),f.push([m,i]),m+=g,c=n}})),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"),n=new bi,i=new kg({shape:{points:a},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Tg({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();Object(s["k"])(a,(function(t){if(!n&&!(!0!==e&&Object(s["r"])(pZ,t.get("type"))<0)){var a,l=i.getComponent(GG(r),o).axis,u=mZ(r),c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),n={thisAxis:l,series:t,thisDim:r,otherDim:u,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,l=this.api,u=a.get("borderRadius")||0,c=a.get("brushSelect"),h=e.filler=new oZ({silent:c,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:u},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=iy(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 u=l.getBoundingRect(),c=a.get("handleSize");this._handleHeight=Pi(c,this._size[1]),this._handleWidth=u.width/u.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(n[e]=l);var d=a.getModel("textStyle");t.add(i[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(c){var p=Pi(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=iy(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=[Ii(t[0],[0,100],e,!0),Ii(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];AR(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?Ii(o.minSpan,a,r,!0):null,null!=o.maxSpan?Ii(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Di([Ii(i[0],r,a,!0),Ii(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Di(n.slice()),r=this._size;Object(s["k"])([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[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,i[0],i[1],r[0]],u=0;ue[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Rn(e,n),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 n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Di([Ii(n.x,r,o,!0),Ii(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.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 n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new oZ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.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),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[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 n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,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_(nZ),A_(bZ)}var xZ={get:function(t,e,n){var i=s["d"]((wZ[t]||{})[e]);return n&&s["t"](i)?i[i.length-1]:i}},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=ND.mapVisual,kZ=ND.eachVisual,MZ=s["t"],OZ=s["k"],TZ=Di,AZ=Ii,IZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&fY(n,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,n){e.push(n)})):e=ir(t),e},e.prototype.eachTargetSeries=function(t,e){s["k"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,l=r.formatter;n=n||["<",">"],s["t"](t)&&(t=t.slice(),i=!0);var u=e?t:i?[c(t[0]),c(t[1])]:c(t);return s["C"](l)?l.replace("{value}",i?u[0]:u).replace("{value2}",i?u[1]:u):s["w"](l)?i?l(t[0],t[1]):l(t):i?t[0]===a[0]?n[0]+" "+u[1]:t[1]===a[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(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=TZ([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 n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],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,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});s["I"](i,n),s["I"](r,n);var o=this.isCategory();function a(n){MZ(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function l(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},OZ(i,(function(t,e){if(ND.isValidType(e)){var n=SZ.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function u(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";OZ(this.stateList,(function(r){var l=this.itemSize,u=t[r];u||(u=t[r]={color:o?i:[i]}),null==u.symbol&&(u.symbol=e&&s["d"](e)||(o?a:[a])),null==u.symbolSize&&(u.symbolSize=n&&s["d"](n)||(o?l[0]:[l[0],l[0]])),u.symbol=CZ(u.symbol,(function(t){return"none"===t?a:t}));var c=u.symbolSize;if(null!=c){var h=-1/0;kZ(c,(function(t){t>h&&(h=t)})),u.symbolSize=CZ(c,(function(t){return AZ(t,[0,h],[0,l[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),l.call(this,i,"inRange","outOfRange"),u.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}(Uc),PZ=IZ,EZ=[20,140],DZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.optionUpdated=function(e,n){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]=EZ[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=EZ[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=Di((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=LZ(this,"outOfRange",this.getExtent()),n=LZ(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new bi("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{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 n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();qZ([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=VZ(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=xm(n.handleLabelPoints[l],_m(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=VZ(t,o,s,!0),f=a[0]-d/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var m=xm(l.indicatorLabelPoint,_m(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;v.setStyle({text:(n||"")+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};u.x=g.x,u.y=g.y,u.animateTo(x,S),v.animateTo(w,S)}else u.attr(x),v.attr(w);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var k=0;kr[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||KZ(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=Sr(c,h);this._dispatchHighDown("downplay",zZ(d[0],n)),this._dispatchHighDown("highlight",zZ(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=bs(e).dataIndex){var i=bs(e),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var o=r.getData(i.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),i.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 n=0;n=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function nQ(t,e,n,i){for(var r=e.targetVisuals[i],o=ND.prepareVisualTypes(r),a={color:Nv(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 uQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return o(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],cQ[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(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,n={},i=ND.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}s["k"](e.pieces,(function(t){s["k"](i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),s["k"](n,(function(t,n){var i=!1;s["k"](this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&s["k"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=SZ.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,s["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;s["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!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=ND.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){var o=ND.findPieceIndex(e,n);o===t&&r.push(i)}),this),e.push({seriesId:i.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 n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=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:n}}function l(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Mu(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),cQ={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,l=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function hQ(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var dQ=uQ,pQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),l=e.itemSize,u=this._getViewData(),c=u.endsText,h=s["O"](e.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],l,h,a),s["k"](u.viewPieceList,(function(i){var u=i.piece,c=new bi;c.onclick=s["c"](this._onItemClick,this,u),this._enableHoverLink(c,i.indexInModelPieceList);var d=e.getRepresentValue(u);if(this._createItemSymbol(c,d,[0,0,l[0],l[1]]),h){var p=this.visualMapModel.getValueState(d);c.add(new ys({style:{x:"right"===a?-n:l[0]+n,y:l[1]/2,text:u.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(c)}),this),c&&this._renderEndsText(t,c[1],l,h,a),jc(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:zZ(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return FZ(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new bi,a=this.visualMapModel.textStyleModel;o.add(new ys({style:Zl(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?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}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(iy(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=s["d"](n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(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 n=t.getModel("aria");if(n.get("enabled")){var i=s["d"](vQ);s["I"](i.label,t.getLocaleModel().get("aria"),!1),s["I"](n.option,i,!1),r(),o()}function r(){var e=n.getModel("decal"),i=e.get("show");if(i){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 n=e.getData();if(e.isColorBySeries()){var i=xh(e.ecModel,e.name,bQ,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",c(r,i))}else{var o=e.getRawData(),a={},l=yQ(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var u=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",s=xh(e.ecModel,r,l,u),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,s))}))}}function c(t,e){var n=t?s["m"](s["m"]({},e),t):e;return n.dirty=!0,n}}))}}function o(){var i=t.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=s["i"](r.option,i),r.get("enabled")){var o=e.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var c,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"]);c=a(m,{title:g})}else c=r.get(["general","withoutTitle"]);var v=[],y=h>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);c+=a(y,{seriesCount:h}),t.eachSeries((function(t,e){if(e1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:u(t.subType)});var s=t.getData();if(s.count()>d){var l=r.get(["data","partialData"]);n+=a(l,{displayCnt:d})}else n+=r.get(["data","allData"]);for(var c=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 n="";0,Ah(n)}}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,n]}function f(t,n,i,r){HQ(t,i)&&HQ(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nC:O2&&l.push(e),l}function WQ(t,e,n,i,r,o,a,s,l,u){if(HQ(t,n)&&HQ(e,i)&&HQ(r,a)&&HQ(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,m=i-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,n,r,a,.5,k),Jt(e,i,o,s,.5,M),WQ(k[0],M[0],k[1],M[1],k[2],M[2],k[3],M[3],l,u),WQ(k[4],M[4],k[5],M[5],k[6],M[6],k[7],M[7],l,u)}}}}function UQ(t,e){var n=GQ(t),i=[];e=e||1;for(var r=0;r0)for(u=0;uMath.abs(u),h=YQ([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;pr,a=YQ([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d1?null:new Rn(g*l+t,g*u+e)}function JQ(t,e,n){var i=new Rn;Rn.sub(i,n,e),i.normalize();var r=new Rn;Rn.sub(r,t,e);var o=r.dot(i);return o}function tJ(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function eJ(t,e,n){for(var i=t.length,r=[],o=0;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),eJ(e,u,c)}function iJ(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),o=t(e);iJ(t,o[0],r,i),iJ(t,o[1],n-r,i)}return i}function rJ(t,e){for(var n=[],i=0;i0)for(var x=i/n,w=-i/2;w<=i/2;w+=x){var S=Math.sin(w),C=Math.cos(w),k=0;for(b=0;b0;u/=2){var c=0,h=0;(t&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(t=u-1-t,e=u-1-e),s=t,t=e,e=s)}return l}function SJ(t){var e=1/0,n=1/0,i=-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),n=Math.min(l,n),i=Math.max(s,i),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,n,i,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,n){var i=[];function r(t){for(var e=0;e=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var IJ={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var l,u,c=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);TJ(t)&&(l=t,u=e),TJ(e)&&(l=e,u=t);for(var d=l?l===t:t.length>e.length,p=l?AJ(u,l):AJ(d?e:t,[d?t:e]),f=0,g=0;gDJ))for(var i=n.getIndices(),r=jJ(n),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 n=Object(s["f"])(),i=Object(s["f"])(),r=Object(s["f"])();return Object(s["k"])(t.oldSeries,(function(e,n){var o=t.oldData[n],a=$J(e),l=HJ(a);i.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=i.get(a);if(l)n.set(a,{oldSeries:[{divide:GJ(l),data:l}],newSeries:[{divide:GJ(e),data:e}]});else if(Object(s["t"])(o)){0;var u=[];Object(s["k"])(o,(function(t){var e=i.get(t);e&&u.push({divide:GJ(e),data:e})})),u.length&&n.set(a,{oldSeries:u,newSeries:[{data:e,divide:GJ(e)}]})}else{var c=r.get(o);if(c){var h=n.get(c.key);h||(h={oldSeries:[{data:c.data,divide:GJ(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({data:e,divide:GJ(e)})}}}})),n}function UJ(t,e){for(var n=0;n=0&&r.push({data:e.oldData[n],divide:GJ(e.oldData[n]),dim:t.dimension})})),Object(s["k"])(ir(t.to),(function(t){var e=UJ(n.updatedSeries,t);if(e>=0){var i=n.updatedSeries[e].getData();o.push({data:i,divide:GJ(i),dim:t.dimension})}})),r.length>0&&o.length>0&&qJ(r,o,i)}function XJ(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(s["k"])(ir(n.seriesTransition),(function(t){Object(s["k"])(ir(t.to),(function(t){for(var e=n.updatedSeries,i=0;i=0&&n.attr(r.oldLayoutSelect),Object(s["r"])(h,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Nl(n,u,e,l)}else if(n.attr(u),!au(n).valueAnimation){var d=Object(s["P"])(n.style.opacity,1);n.style.opacity=0,Fl(n,{style:{opacity:d}},e,l)}if(r.oldLayout=u,n.states.select){var p=r.oldLayoutSelect={};n0(p,u,i0),n0(p,n.states.select,i0)}if(n.states.emphasis){var f=r.oldLayoutEmphasis={};n0(f,u,i0),n0(f,n.states.emphasis,i0)}lu(n,l,c,e,e)}if(i&&!i.ignore&&!i.invisible){r=e0(i),o=r.oldLayout;var g={points:i.shape.points};o?(i.attr({shape:o}),Nl(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,Fl(i,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),o0=r0,a0=kr();function s0(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=a0(e).labelManager;i||(i=a0(e).labelManager=new o0),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=a0(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}A_([V_]),A_([fw]),A_([fC,hk,uM,uA,IA,HP,qE,mL,Dj,$j,tR,oN,BN,nF,AF,BF,az,vz,Uz,iV,wV,Zq]),A_(X$),A_(VH),A_($P),A_(pG),A_(rN),A_(SG),A_(VG),A_(kU),A_(sY),A_(Y$),A_(VY),A_(HY),A_(pX),A_(FX),A_(ZX),A_(cK),A_(FK),A_(_Z),A_(nZ),A_(bZ),A_(mQ),A_(lQ),A_(gQ),A_(wQ),A_(FQ),A_(qQ),A_(XJ),A_(s0)},"342f":function(t,e,n){var i=n("d066");t.exports=i("navigator","userAgent")||""},"349c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var i=function(){function t(t,e){for(var n=0;n{t[n]&&(e[n]=!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,n){var i=n("83ab"),r=n("aed9"),o=n("9bf2"),a=n("825a"),s=n("fc6a"),l=n("df75");e.f=i&&!r?Object.defineProperties:function(t,e){a(t);var n,i=s(e),r=l(e),u=r.length,c=0;while(u>c)o.f(t,n=r[c++],i[n]);return t}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,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,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},3980:function(t,e,n){"use strict";var i=n("2b0e"),r=n("d882"),o=n("0967"),a={data(){return{canRender:!o["f"]}},mounted(){!1===this.canRender&&(this.canRender=!0)}},s=n("0cd3");e["a"]=i["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,n){var i=n("e330");t.exports=i({}.isPrototypeOf)},"3b16":function(t,e,n){"use strict";n("caad");var i=n("2b0e"),r=n("9c40"),o=n("27f9"),a=n("b7fa"),s=n("87e8"),l=n("d882"),u=n("7937"),c=n("d728"),h=n("0cd3");e["a"]=i["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(u["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,n,i){return e.props={...this.btnProps,...n},void 0!==i&&(void 0!==this.toFn?e.props.to=this.toFn(i):e.on={click:()=>this.set(i)}),t(r["a"],e)}},render(t){const e=[],n=[],i=[];if(this.__boundaryLinks&&(e.push(this.__getBtn(t,{key:"bls"},{disable:this.disable||this.value<=this.min,icon:this.icons[0]},this.min)),n.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)),n.unshift(this.__getBtn(t,{key:"bdn"},{disable:this.disable||this.value>=this.max,icon:this.icons[2]},this.value+1))),!0===this.input)i.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(c["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,u=!1,c=!1;this.maxPages&&rthis.min+(this.__boundaryNumbers?1:0)&&(s=!0,o+=1),this.__boundaryNumbers&&(c=!0,a-=1),this.__ellipses&&a{let n=0;this.el=t,!0===this.animating?(this.__cleanup(),n=t.offsetHeight===t.scrollHeight?0:void 0):this.lastEvent="hide",this.__begin(t,n,e),this.timer=setTimeout((()=>{t.style.height=`${t.scrollHeight}px`,this.animListener=e=>{Object(e)===e&&e.target!==t||this.__end(t,"show")},t.addEventListener("transitionend",this.animListener),this.timerFallback=setTimeout(this.animListener,1.1*this.duration)}),100)},leave:(t,e)=>{let n;this.el=t,!0===this.animating?this.__cleanup():(this.lastEvent="show",n=t.scrollHeight),this.__begin(t,n,e),this.timer=setTimeout((()=>{t.style.height=0,this.animListener=e=>{Object(e)===e&&e.target!==t||this.__end(t,"hide")},t.addEventListener("transitionend",this.animListener),this.timerFallback=setTimeout(this.animListener,1.1*this.duration)}),100)}})},Object(l["c"])(this,"default"))}}),h=n("eb85"),d=n("8716"),p=n("7ee0"),f=n("b7fa"),g=n("d882");const m="q:expansion-item:close";e["a"]=i["a"].extend({name:"QExpansionItem",mixins:[f["a"],d["a"],p["a"]],props:{icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},data(){return{showing:void 0!==this.value?this.value:this.defaultOpened}},watch:{showing(t){!0===t&&void 0!==this.group&&this.$root.$emit(m,this)},group(t,e){void 0!==t&&void 0===e?this.$root.$on(m,this.__eventHandler):void 0===t&&void 0!==e&&this.$root.$off(m,this.__eventHandler)}},computed:{classes(){return"q-expansion-item--"+(!0===this.showing?"expanded":"collapsed")+" q-expansion-item--"+(!0===this.popup?"popup":"standard")},contentStyle(){if(void 0!==this.contentInsetLevel){const t=!0===this.$q.lang.rtl?"Right":"Left";return{["padding"+t]:56*this.contentInsetLevel+"px"}}},isClickable(){return!0===this.hasLink||!0!==this.expandIconToggle},expansionIcon(){return void 0!==this.expandedIcon&&!0===this.showing?this.expandedIcon:this.expandIcon||this.$q.iconSet.expansionItem[!0===this.denseToggle?"denseIcon":"icon"]},activeToggleIcon(){return!0!==this.disable&&(!0===this.hasLink||!0===this.expandIconToggle)}},methods:{__onHeaderClick(t){!0!==this.hasLink&&this.toggle(t),this.$emit("click",t)},__toggleIconKeyboard(t){13===t.keyCode&&this.__toggleIcon(t,!0)},__toggleIcon(t,e){!0!==e&&void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus(),this.toggle(t),Object(g["l"])(t)},__eventHandler(t){this!==t&&this.group===t.group&&this.hide()},__getToggleIcon(t){const e={staticClass:"q-focusable relative-position cursor-pointer"+(!0===this.denseToggle&&!0===this.switchToggleSide?" items-end":""),class:this.expandIconClass,props:{side:!0!==this.switchToggleSide,avatar:this.switchToggleSide}},n=[t(s["a"],{staticClass:"q-expansion-item__toggle-icon",class:void 0===this.expandedIcon&&!0===this.showing?"q-expansion-item__toggle-icon--rotated":void 0,props:{name:this.expansionIcon}})];return!0===this.activeToggleIcon&&(Object.assign(e,{attrs:{tabindex:0},on:Object(u["b"])(this,"inpExt",{click:this.__toggleIcon,keyup:this.__toggleIconKeyboard})}),n.unshift(t("div",{ref:"blurTarget",staticClass:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",attrs:{tabindex:-1}}))),t(o["a"],e,n)},__getHeader(t){let e;void 0!==this.$scopedSlots.header?e=[].concat(this.$scopedSlots.header()):(e=[t(o["a"],[t(a["a"],{props:{lines:this.labelLines}},[this.label||""]),this.caption?t(a["a"],{props:{lines:this.captionLines,caption:!0}},[this.caption]):null])],this.icon&&e[!0===this.switchToggleSide?"push":"unshift"](t(o["a"],{props:{side:!0===this.switchToggleSide,avatar:!0!==this.switchToggleSide}},[t(s["a"],{props:{name:this.icon}})]))),!0!==this.disable&&e[!0===this.switchToggleSide?"unshift":"push"](this.__getToggleIcon(t));const n={ref:"item",style:this.headerStyle,class:this.headerClass,props:{dark:this.isDark,disable:this.disable,dense:this.dense,insetLevel:this.headerInsetLevel}};return!0===this.isClickable&&(n.props.clickable=!0,n[!0===this.hasRouterLink?"nativeOn":"on"]={...this.qListeners,click:this.__onHeaderClick},!0===this.hasLink&&(Object.assign(n.props,this.linkProps.props),n.attrs=this.linkProps.attrs)),t(r["a"],n,e)},__getContent(t){const e=[this.__getHeader(t),t(c,{props:{duration:this.duration},on:Object(u["b"])(this,"slide",{show:()=>{this.$emit("after-show")},hide:()=>{this.$emit("after-hide")}})},[t("div",{staticClass:"q-expansion-item__content relative-position",style:this.contentStyle,directives:[{name:"show",value:this.showing}]},Object(l["c"])(this,"default"))])];return this.expandSeparator&&e.push(t(h["a"],{staticClass:"q-expansion-item__border q-expansion-item__border--top absolute-top",props:{dark:this.isDark}}),t(h["a"],{staticClass:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",props:{dark:this.isDark}})),e}},render(t){return t("div",{staticClass:"q-expansion-item q-item-type",class:this.classes},[t("div",{staticClass:"q-expansion-item__container relative-position"},this.__getContent(t))])},created(){void 0!==this.group&&this.$root.$on(m,this.__eventHandler)},beforeDestroy(){void 0!==this.group&&this.$root.$off(m,this.__eventHandler)}})},"3bbe":function(t,e,n){var i=n("1626"),r=String,o=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw o("Can't set "+r(t)+" as a prototype")}},"3c5d":function(t,e,n){"use strict";var i=n("da84"),r=n("c65b"),o=n("ebb5"),a=n("07fa"),s=n("182d"),l=n("7b0b"),u=n("d039"),c=i.RangeError,h=i.Int8Array,d=h&&h.prototype,p=d&&d.set,f=o.aTypedArray,g=o.exportTypedArrayMethod,m=!u((function(){var t=new Uint8ClampedArray(2);return r(p,t,{length:1,0:3},1),3!==t[1]})),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));g("set",(function(t){f(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=l(t);if(m)return r(p,this,n,e);var i=this.length,o=a(n),u=0;if(o+e>i)throw c("Wrong length");while(u=n.length?{value:void 0,done:!0}:(t=i(n,r),e.index+=t.length,{value:t,done:!1})}))},"3d69":function(t,e,n){"use strict";var i=n("714f");e["a"]={directives:{Ripple:i["a"]},props:{ripple:{type:[Boolean,Object],default:!0}}}},"3f8c":function(t,e){t.exports={}},4002:function(t,e,n){"use strict";n("3ca3");var i,r=n("23e7"),o=n("83ab"),a=n("0d3b"),s=n("da84"),l=n("0366"),u=n("e330"),c=n("cb2d"),h=n("edd0"),d=n("19aa"),p=n("1a2d"),f=n("60da"),g=n("4df4"),m=n("4dae"),v=n("6547").codeAt,y=n("5fb2"),b=n("577e"),_=n("d44e"),x=n("d6d6"),w=n("5352"),S=n("69f3"),C=S.set,k=S.getterFor("URL"),M=w.URLSearchParams,O=w.getState,T=s.URL,A=s.TypeError,I=s.parseInt,P=Math.floor,E=Math.pow,D=u("".charAt),L=u(/./.exec),j=u([].join),R=u(1..toString),B=u([].pop),N=u([].push),F=u("".replace),z=u([].shift),V=u("".split),q=u("".slice),$=u("".toLowerCase),H=u([].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,nt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ot=/[\t\n\r]/g,at=function(t){var e,n,i,r,o,a,s,l=V(t,".");if(l.length&&""==l[l.length-1]&&l.length--,e=l.length,e>4)return t;for(n=[],i=0;i1&&"0"==D(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)}N(n,a)}for(i=0;i=E(256,5-e))return null}else if(a>255)return null;for(s=B(n),i=0;i6)return;i=0;while(d()){if(r=null,i>0){if(!("."==d()&&i<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[u]=256*l[u]+r,i++,2!=i&&4!=i||u++}if(4!=i)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[u++]=e}else{if(null!==c)return;h++,u++,c=u}}if(null!==c){a=u-c,u=7;while(0!=u&&a>0)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s}else if(8!=u)return;return l},lt=function(t){for(var e=null,n=1,i=null,r=0,o=0;o<8;o++)0!==t[o]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(e=i,n=r),e},ut=function(t){var e,n,i,r;if("number"==typeof t){for(e=[],n=0;n<4;n++)H(e,t%256),t=P(t/256);return j(e,".")}if("object"==typeof t){for(e="",i=lt(t),n=0;n<8;n++)r&&0===t[n]||(r&&(r=!1),i===n?(e+=n?":":"::",r=!0):(e+=R(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ct={},ht=f({},ct,{" ":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 n=v(t,0);return n>32&&n<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 n;return 2==t.length&&L(X,D(t,0))&&(":"==(n=D(t,1))||!e&&"|"==n)},vt=function(t){var e;return t.length>1&&mt(q(t,0,2))&&(2==t.length||"/"===(e=D(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={},Ot={},Tt={},At={},It={},Pt={},Et={},Dt={},Lt={},jt={},Rt={},Bt={},Nt={},Ft={},zt={},Vt=function(t,e,n){var i,r,o,a=b(t);if(e){if(r=this.parse(a),r)throw A(r);this.searchParams=null}else{if(void 0!==n&&(i=new Vt(n,!0)),r=this.parse(a,null,i),r)throw A(r);o=O(new M),o.bindURL(this),this.searchParams=o}};Vt.prototype={type:"URL",parse:function(t,e,n){var r,o,a,s,l=this,u=e||_t,c=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=F(t,rt,"")),t=F(t,ot,""),r=g(t);while(c<=r.length){switch(o=r[c],u){case _t:if(!o||!L(X,o)){if(e)return W;u=wt;continue}h+=$(o),u=xt;break;case xt:if(o&&(L(K,o)||"+"==o||"-"==o||"."==o))h+=$(o);else{if(":"!=o){if(e)return W;h="",u=wt,c=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?u=Dt:l.isSpecial()&&n&&n.scheme==l.scheme?u=St:l.isSpecial()?u=Ot:"/"==r[c+1]?(u=Ct,c++):(l.cannotBeABaseURL=!0,N(l.path,""),u=Nt)}break;case wt:if(!n||n.cannotBeABaseURL&&"#"!=o)return W;if(n.cannotBeABaseURL&&"#"==o){l.scheme=n.scheme,l.path=m(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=zt;break}u="file"==n.scheme?Dt:kt;continue;case St:if("/"!=o||"/"!=r[c+1]){u=kt;continue}u=Tt,c++;break;case Ct:if("/"==o){u=At;break}u=Bt;continue;case kt:if(l.scheme=n.scheme,o==i)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query;else if("/"==o||"\\"==o&&l.isSpecial())u=Mt;else if("?"==o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query="",u=Ft;else{if("#"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.path.length--,u=Bt;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query,l.fragment="",u=zt}break;case Mt:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=Bt;continue}u=At}else u=Tt;break;case Ot:if(u=Tt,"/"!=o||"/"!=D(h,c+1))continue;c++;break;case Tt:if("/"!=o&&"\\"!=o){u=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;u=Rt;continue}return Y}h+=o;break;case Dt:if(l.scheme="file","/"==o||"\\"==o)u=Lt;else{if(!n||"file"!=n.scheme){u=Bt;continue}if(o==i)l.host=n.host,l.path=m(n.path),l.query=n.query;else if("?"==o)l.host=n.host,l.path=m(n.path),l.query="",u=Ft;else{if("#"!=o){vt(j(m(r,c),""))||(l.host=n.host,l.path=m(n.path),l.shortenPath()),u=Bt;continue}l.host=n.host,l.path=m(n.path),l.query=n.query,l.fragment="",u=zt}}break;case Lt:if("/"==o||"\\"==o){u=jt;break}n&&"file"==n.scheme&&!vt(j(m(r,c),""))&&(mt(n.path[0],!0)?N(l.path,n.path[0]):l.host=n.host),u=Bt;continue;case jt:if(o==i||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&mt(h))u=Bt;else if(""==h){if(l.host="",e)return;u=Rt}else{if(s=l.parseHost(h),s)return s;if("localhost"==l.host&&(l.host=""),e)return;h="",u=Rt}continue}h+=o;break;case Rt:if(l.isSpecial()){if(u=Bt,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=i&&(u=Bt,"/"!=o))continue}else l.fragment="",u=zt;else l.query="",u=Ft;break;case Bt:if(o==i||"/"==o||"\\"==o&&l.isSpecial()||!e&&("?"==o||"#"==o)){if(bt(h)?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||N(l.path,"")):yt(h)?"/"==o||"\\"==o&&l.isSpecial()||N(l.path,""):("file"==l.scheme&&!l.path.length&&mt(h)&&(l.host&&(l.host=""),h=D(h,0)+":"),N(l.path,h)),h="","file"==l.scheme&&(o==i||"?"==o||"#"==o))while(l.path.length>1&&""===l.path[0])z(l.path);"?"==o?(l.query="",u=Ft):"#"==o&&(l.fragment="",u=zt)}else h+=ft(o,dt);break;case Nt:"?"==o?(l.query="",u=Ft):"#"==o?(l.fragment="",u=zt):o!=i&&(l.path[0]+=ft(o,ct));break;case Ft:e||"#"!=o?o!=i&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":ft(o,ct)):(l.fragment="",u=zt);break;case zt:o!=i&&(l.fragment+=ft(o,ht));break}c++}},parseHost:function(t){var e,n,i;if("["==D(t,0)){if("]"!=D(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(nt,t))return U;if(e=at(t),null===e)return U;this.host=e}else{if(L(it,t))return U;for(e="",n=g(t),i=0;i1?arguments[1]:void 0,i=C(e,new Vt(t,!1,n));o||(e.href=i.serialize(),e.origin=i.getOrigin(),e.protocol=i.getProtocol(),e.username=i.getUsername(),e.password=i.getPassword(),e.host=i.getHost(),e.hostname=i.getHostname(),e.port=i.getPort(),e.pathname=i.getPathname(),e.search=i.getSearch(),e.searchParams=i.getSearchParams(),e.hash=i.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"))),c($t,"toJSON",(function(){return k(this).serialize()}),{enumerable:!0}),c($t,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),T){var Gt=T.createObjectURL,Wt=T.revokeObjectURL;Gt&&c(qt,"createObjectURL",l(Gt,T)),Wt&&c(qt,"revokeObjectURL",l(Wt,T))}_(qt,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!o},{URL:qt})},4006:function(t,e,n){const i=n("45be");function r(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function o(t,e,n){let i=t+e;return"undefined"!==typeof n&&(i+=" "+n),i}function a(t,e,n){let i="",r=0,a=!1,s=0;for(let l=0;l0&&u>0&&t[l-1]||(i+=a?o("M",u+n,.5+c+n):o("m",r,0),r=0,a=!1),u+1':"",h="',d='viewBox="0 0 '+u+" "+u+'"',p=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f=''+c+h+"\n";return"function"===typeof n&&n(null,f),f}},4074:function(t,e,n){"use strict";var i=n("2b0e"),r=n("87e8"),o=n("dde5");e["a"]=i["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,n){var i=n("d039");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4146:function(t,e,n){const i=n("45be");function r(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"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,n){let a=n,s=e;"undefined"!==typeof a||e&&e.getContext||(a=e,e=void 0),e||(s=o()),a=i.getOptions(a);const l=i.getImageWidth(t.modules.size,a),u=s.getContext("2d"),c=u.createImageData(l,l);return i.qrToImageData(c.data,t,a),r(u,s,l),u.putImageData(c,0,0),s},e.renderToDataURL=function(t,n,i){let r=i;"undefined"!==typeof r||n&&n.getContext||(r=n,n=void 0),r||(r={});const o=e.render(t,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}},"41ef":function(t,e,n){"use strict";n.d(e,"g",(function(){return v})),n.d(e,"c",(function(){return _})),n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return w})),n.d(e,"f",(function(){return S})),n.d(e,"e",(function(){return C})),n.d(e,"h",(function(){return k})),n.d(e,"d",(function(){return M}));var i=n("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 u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,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 i["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 n=f.get(t);if(n)return p(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in r)return p(e,r[i]),m(t,e),e;var o=i.length;if("#"!==i.charAt(0)){var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var c=i.substr(0,a),h=i.substr(a+1,s-(a+1)).split(","),g=1;switch(c){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=u(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]=u(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(i.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(i.slice(4),16)/15:1),m(t,e),e):void d(e,0,0,0,1)}if(7===o||9===o){v=parseInt(i.slice(1,7),16);return v>=0&&v<=16777215?(d(e,(16711680&v)>>16,(65280&v)>>8,255&v,9===o?parseInt(i.slice(7),16)/255:1),m(t,e),e):void d(e,0,0,0,1)}}}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=u(t[1]),r=u(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return e=e||[],d(e,o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function _(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return k(n,4===n.length?"rgba":"rgb")}}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),l=e[r],u=e[a],c=i-r;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),l=v(e[r]),u=v(e[a]),c=i-r,d=k([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return n?{color:d,leftIndex:r,rightIndex:a,value:i}:d}}function S(t,e,n,i){var r=v(t);if(t)return r=b(r),null!=e&&(r[0]=a(e)),null!=n&&(r[1]=u(n)),null!=i&&(r[2]=u(i)),k(y(r),"rgba")}function C(t,e){var n=v(t);if(n&&null!=e)return n[3]=s(e),k(n,"rgba")}function k(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function M(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}},"429b":function(t,e,n){"use strict";n("caad");var i=n("2b0e"),r=n("0016"),o=n("3980"),a=n("463c"),s=n("87e8"),l=n("d882"),u=n("dde5"),c=n("0cd3"),h=n("0831");function d(t,e,n){const i=!0===n?["left","right"]:["top","bottom"];return`absolute-${!0===e?i[0]:i[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"]=i["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,n){this.tabs.current!==t&&(!0!==n&&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],n=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)),i=e>0&&n>e;this.scrollable!==i&&(this.scrollable=i),!0===i&&this.$nextTick((()=>this.__updateArrows()));const r=ee.name===t)):null,i=void 0!==e&&null!==e&&""!==e?this.$children.find((t=>t.name===e)):null;if(n&&i){const t=n.$el.getElementsByClassName("q-tab__indicator")[0],e=i.$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)}))}i&&!0===this.scrollable?this.__scrollToTab(i.$el,void 0,!0):this.__updateArrows()},__updateArrowsFn(){const{content:t}=this.$refs;if(void 0!==t){const e=t.getBoundingClientRect(),n=this.__getScrollPosition(t);this.startArrow=n>(!0===this.isRTL?1:0),this.endArrow=!0===this.vertical?Math.ceil(n+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,n=!0===this.vertical?e.scrollHeight-e.offsetHeight:e.scrollWidth-e.offsetWidth;let i=this.__getScrollPosition(e),r=!1;t=Math.max(0,Math.min(n,t));const o=t=t)&&(r=!0,i=t),this.__setScrollPosition(e,i),this.__updateArrows(),r},__scrollToTab(t,e,n){if(void 0===this.$refs.content)return;const i=this.$refs.content,r=this.__getScrollPosition(i),o=!0===this.vertical?i.offsetHeight:i.offsetWidth,a=!0===this.vertical?i.scrollHeight:i.scrollWidth,s=this.__getScrollOffset(t),l=s+(!0===this.vertical?t.offsetHeight:t.offsetWidth),u=sr+o;!0!==u&&!0!==c?e=void 0:void 0===e&&(l>=a-1?e=!0:!0===u||!0===c&&s=a-1?a:l-o:s<=1?0:s,!0!==n?()=>{setTimeout((()=>{t&&t.focus()}))}:void 0):!0!==n&&t.focus()},__onKbdNavigate(t,e){const n=t=>t===e||t.matches&&!0===t.matches(".q-tab.q-focusable"),i=Array.prototype.filter.call(this.$refs.content.children,n),r=i.length;if(0===r)return;if(36===t)return!0!==i[0].contains(document.activeElement)&&(this.__scrollToTab(i[0],!1),this.__recalculateScroll(),!0);if(35===t)return!0!==i[r-1].contains(document.activeElement)&&(this.__scrollToTab(i[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,n=i.indexOf(e)+s*t;return!(n<0||n>=r||!0===i[n].contains(document.activeElement))&&(this.__scrollToTab(i[n],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(c["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(c["b"])(this,"scroll",{scroll:this.__updateArrowsFn}):void 0},Object(u["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(c["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(c["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,n){"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,n){"use strict";function i(t,e,n,i,r,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._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)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return i}))},4362:function(t,e,n){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,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"436b":function(t,e,n){"use strict";n("caad");var i=n("2b0e"),r=n("24e8"),o=n("9c40");n("ddb0"),n("5377");function a(t,e=new WeakMap){if(Object(t)!==t)return t;if(e.has(t))return e.get(t);const n=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 n=t.valueOf();if(Object(n)!==n){const i=new t.constructor(n);return e.set(t,i),i}}return e.set(t,n),t instanceof Set?t.forEach((t=>{n.add(a(t,e))})):t instanceof Map&&t.forEach(((t,i)=>{n.set(i,a(t,e))})),Object.assign(n,...Object.keys(t).map((n=>({[n]:a(t[n],e)}))))}var s=n("d728"),l=n("f09f"),u=n("a370"),c=n("4b7e"),h=n("eb85"),d=n("27f9"),p=n("0016"),f=n("b7fa"),g=n("ff7b"),m=n("f89c"),v=n("2b69"),y=n("d882"),b=n("dde5"),_=n("0cd3"),x=i["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 n=[t("div",{staticClass:"q-radio__inner relative-position",class:this.innerClass,style:this.sizeStyle},e)];void 0!==this.__refocusTargetEl&&n.push(this.__refocusTargetEl);const i=void 0!==this.label?Object(b["a"])([this.label],this,"default"):Object(b["c"])(this,"default");return void 0!==i&&n.push(t("div",{staticClass:"q-radio__label q-anchor--skip"},i)),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)}})},n)}}),w=n("8f8e"),S=n("9564"),C=n("87e8");const k={radio:x,checkbox:w["a"],toggle:S["a"]},M=Object.keys(k);var O=i["a"].extend({name:"QOptionGroup",mixins:[f["a"],C["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=>M.includes(t)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},computed:{component(){return k[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,n)=>{const i=void 0!==this.$scopedSlots["label-"+n]?this.$scopedSlots["label-"+n](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===i?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})},i)])})))}}),T=n("0d59"),A=n("f376"),I=n("5ff7"),P=i["a"].extend({name:"DialogPlugin",mixins:[f["a"],A["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(I["d"])(this.progress)?{component:this.progress.spinner||T["a"],props:{color:this.progress.color||this.vmColor}}:{component:T["a"],props:{color:this.vmColor}}},hasForm(){return void 0!==this.prompt||void 0!==this.options},okLabel(){return!0===Object(I["d"])(this.ok)||!0===this.ok?this.$q.lang.label.ok:this.ok},cancelLabel(){return!0===Object(I["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(I["d"])(this.ok)?this.ok:{flat:!0}}},cancelProps(){return{color:this.vmColor,label:this.cancelLabel,ripple:!1,...!0===Object(I["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(c["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,n){return!0===this.html?t(u["a"],{staticClass:e,domProps:{innerHTML:n}}):t(u["a"],{staticClass:e},[n])}},render(t){const e=[];return this.title&&e.push(this.getSection(t,"q-dialog__title",this.title)),!1!==this.progress&&e.push(t(u["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(u["a"],{staticClass:"scroll q-dialog-plugin__form"},this.getPrompt(t))):void 0!==this.options&&e.push(t(h["a"],{props:{dark:this.isDark}}),t(u["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=n("0967");const D={onOk:()=>D,okCancel:()=>D,hide:()=>D,update:()=>D};function L(t,e){for(const n in e)"spinner"!==n&&Object(e[n])===e[n]?(t[n]=Object(t[n])!==t[n]?{}:{...t[n]},L(t[n],e[n])):t[n]=e[n]}let j;function R(t,e){if(void 0!==t)return t;if(void 0!==e)return e;if(void 0===j){const t=document.getElementById("q-app");t&&t.__vue__&&(j=t.__vue__.$root)}return j}var B=function(t){return({className:e,class:n,style:r,component:o,root:a,parent:s,...l})=>{if(!0===E["e"])return D;void 0!==n&&(l.cardClass=n),void 0!==r&&(l.cardStyle=r);const u=void 0!==o;let c,h;!0===u?c=o:(c=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:n,component:i,root:r,parent:o,...a}){return null!==y&&(void 0!==e&&(a.cardClass=e),void 0!==n&&(a.cardStyle=n),!0===u?Object.assign(l,a):(L(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 i["a"]({name:"QGlobalDialog",el:g,parent:R(s,a),render(t){return t(c,{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=B(P)}}},4461:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("124f"),r=a(i),o=n("6e53");function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(t){function e(t,n){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod11)(t),n))}return u(e,t),e}(r.default);e.default=c},"44ad":function(t,e,n){var i=n("e330"),r=n("d039"),o=n("c6b6"),a=Object,s=i("".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,n){var i=n("b622"),r=n("7c73"),o=n("9bf2").f,a=i("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 n(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 n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,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,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(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,n){const i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){const r=n.modules.size,o=n.modules.data,a=e.getScale(r,i),s=Math.floor((r+2*i.margin)*a),l=i.margin*a,u=[i.color.light,i.color.dark];for(let e=0;e=l&&n>=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,n){"use strict";var i=n("2d83");t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},4727:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("124f"),r=a(i),o=n("6e53");function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(t){function e(t,n){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod10)(t),n))}return u(e,t),e}(r.default);e.default=c},4840:function(t,e,n){var i=n("825a"),r=n("5087"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[a])?e:r(n)}},4848:function(t,e,n){},"485a":function(t,e,n){var i=n("c65b"),r=n("1626"),o=n("861d"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw a("Can't convert object to primitive value")}},4930:function(t,e,n){var i=n("2d00"),r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},4983:function(t,e,n){"use strict";n("caad"),n("ddb0");var i=n("2b0e"),r=n("3980"),o=n("ed5e"),a=n("75c3"),s=n("7937"),l=n("0831"),u=n("dde5"),c=n("0cd3"),h=n("1c16"),d=n("b7fa"),p=n("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"]=i["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 n=this.scrollComputed[e];t[e+"Position"]=n.position,t[e+"Percentage"]=n.percentage,t[e+"Size"]=n.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,n){if(!1===g.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");[t,e,n]=[!0===this.horizontal?"horizontal":"vertical",t,e]}const i="vertical"===t?l["j"]:l["h"];i(this.$refs.target,e,n)},setScrollPercentage(t,e,n){if(!1===g.includes(t)){if(!0===isNaN(t))return void console.error("[QScrollArea]: wrong first param of setScrollPercentage (vertical/horizontal)");[t,e,n]=[!0===this.horizontal?"horizontal":"vertical",t,e]}this.setScrollPosition(t,e*(this.scroll[t].size-this.container[t]),n)},__updateContainer({height:t,width:e}){let n=!1;this.container.vertical!==t&&(this.container.vertical=t,n=!0),this.container.horizontal!==e&&(this.container.horizontal=e,n=!0),!0===n&&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 n=!1;this.scroll.horizontal.size!==e&&(this.scroll.horizontal.size=e,n=!0),this.scroll.vertical.size!==t&&(this.scroll.vertical.size=t,n=!0),!0===n&&this.__startTimer()},__panThumb(t,e){const n=this.scrollComputed[e];if(!0===t.isFinal){if(!0!==this.panning)return;this.panning=!1}else if(!0===t.isFirst){if(!0===n.thumbHidden)return;this.refPos=n.position,this.panning=!0}else if(!0!==this.panning)return;const i=m[e],r=this.container[e],o=(n.size-r)/(r-n.thumbSize),a=t.distance[i.dist],s=this.refPos+(t.direction===i.dir?1:-1)*a*o;this.__setScroll(s,e)},__mouseDown(t,e){const n=this.scrollComputed[e];if(!0!==n.thumbHidden){const i=t[m[e].offset];if(in.thumbStart+n.thumbSize){const t=i-n.thumbSize/2;this.__setScroll(t/this.container[e]*n.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(c["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(u["a"])([t(r["a"],{props:{debounce:0},on:Object(c["b"])(this,"resizeIn",{resize:this.__updateScrollSize})})],this,"default")),t(o["a"],{on:Object(c["b"])(this,"scrollV",{scroll:this.__updateVerticalScroll})}),t(o["a"],{props:{horizontal:!0},on:Object(c["b"])(this,"scrollH",{scroll:this.__updateHorizontalScroll})})]),t(r["a"],{props:{debounce:0},on:Object(c["b"])(this,"resizeOut",{resize:this.__updateContainer})}),t("div",{class:this.verticalBarClass,style:[this.barStyle,this.verticalBarStyle],attrs:p["a"],on:Object(c["b"])(this,"barV",{mousedown:this.__verticalMouseDown})}),t("div",{class:this.horizontalBarClass,style:[this.barStyle,this.horizontalBarStyle],attrs:p["a"],on:Object(c["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,n){"use strict";var i=n("c532");t.exports=function(t,e){e=e||{};var n={},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 i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function u(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(t[r],e[r])}i.forEach(r,(function(t){i.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),i.forEach(o,u),i.forEach(a,(function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(void 0,e[r])})),i.forEach(s,(function(i){i in e?n[i]=l(t[i],e[i]):i in t&&(n[i]=l(void 0,t[i]))}));var c=r.concat(o).concat(a).concat(s),h=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return i.forEach(h,u),n}},"4b23":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n=200){o=t.shift()-105;var s=a.SWAP[o];void 0!==s?r=e.next(t,n+1,s):(i!==a.SET_A&&i!==a.SET_B||o!==a.SHIFT||(t[0]=i===a.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),r=e.next(t,n+1,i))}else o=e.correctIndex(t,i),r=e.next(t,n+1,i);var l=e.getBar(o),u=o*n;return{result:l+r.result,checksum:u+r.checksum}}}]),e}(o.default);e.default=h},"4b7e":function(t,e,n){"use strict";var i=n("2b0e"),r=n("99b6"),o=n("87e8"),a=n("dde5");e["a"]=i["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"))}})},"4ced":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n/^(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(u["a"])([t(o["a"],{on:Object(c["b"])(this,"scroll",{scroll:this.__onPageScroll})}),t(a["a"],{on:Object(c["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(c["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 n=!1;this.height!==t&&(n=!0,this.height=t,void 0!==this.qListeners["scroll-height"]&&this.$emit("scroll-height",t),this.__updateScrollbarWidth()),this.width!==e&&(n=!0,this.width=e),!0===n&&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,n){var i=n("fc6a"),r=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s,l=i(e),u=o(l),c=r(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4dae":function(t,e,n){var i=n("23cb"),r=n("07fa"),o=n("8418"),a=Array,s=Math.max;t.exports=function(t,e,n){for(var l=r(t),u=i(e,l),c=i(void 0===n?l:n,l),h=a(s(c-u,0)),d=0;u=0)e=t;else{var r=u(t);for(var o in e=r===Object.prototype?{}:Object.create(r),D&&D.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 N="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator",F="symbol"===typeof N?function(t){var e;return null!=t&&(e=t[N])&&e.apply(t)}:function(){return null},z={};function V(t){var e,n,i,r;if(1===arguments.length){if(s(t))return t.slice();if(this===z&&"string"===typeof t)return[t];if(r=F(t)){n=[];while(i=r.next(),!i.done)n.push(i.value);return n}if(null==t)return[t];if(e=t.length,"number"===typeof e){n=new Array(e);while(e--)n[e]=t[e];return n}return[t]}e=arguments.length,n=new Array(e);while(e--)n[e]=arguments[e];return n}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 n=t.stack;return n?(e=e||0,0===n.indexOf(t.name)&&(e+=(t.name+t.message).split("\n").length),n.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,n){return n.indexOf(t)===e})).join("\n")}function et(t,e,n,i){this._e=U(),this.failures=e,this.failedKeys=i,this.successCount=n,this.message=tt(t,e)}function nt(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(nt).from(J);var it=Z.reduce((function(t,e){return t[e]=e+"Error",t}),{}),rt=J,ot=Z.reduce((function(t,e){var n=e+"Error";function i(t,i){this._e=U(),this.name=n,t?"string"===typeof t?(this.message=t+(i?"\n "+i:""),this.inner=i||null):"object"===typeof t&&(this.message=t.name+" "+t.message,this.inner=t):(this.message=Q[e]||n,this.inner=null)}return g(i).from(rt),t[e]=i,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 n=new at[t.name](e||t.message,t);return"stack"in t&&f(n,"stack",{get:function(){return this.inner.stack}}),n}var lt=Z.reduce((function(t,e){return-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=ot[e]),t}),{});function ut(){}function ct(t){return t}function ht(t,e){return null==t||t===ct?e:function(n){return e(t(n))}}function dt(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function pt(t,e){return t===ut?e:function(){var n=t.apply(this,arguments);void 0!==n&&(arguments[0]=n);var i=this.onsuccess,r=this.onerror;this.onsuccess=null,this.onerror=null;var o=e.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?dt(i,this.onsuccess):i),r&&(this.onerror=this.onerror?dt(r,this.onerror):r),void 0!==o?o:n}}function ft(t,e){return t===ut?e:function(){t.apply(this,arguments);var n=this.onsuccess,i=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?dt(n,this.onsuccess):n),i&&(this.onerror=this.onerror?dt(i,this.onerror):i)}}function gt(t,e){return t===ut?e:function(n){var i=t.apply(this,arguments);l(n,i);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===i?void 0===a?void 0:a:l(i,a)}}function mt(t,e){return t===ut?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}}function vt(t,e){return t===ut?e:function(){var n=t.apply(this,arguments);if(n&&"function"===typeof n.then){var i=this,r=arguments.length,o=new Array(r);while(r--)o[r]=arguments[r];return n.then((function(){return e.apply(i,o)}))}return e.apply(this,arguments)}}lt.ModifyError=et,lt.DexieError=J,lt.BulkError=nt;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,u(t),t];var e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,u(e),t]}(),St=wt[0],Ct=wt[1],kt=wt[2],Mt=Ct&&Ct.then,Ot=St&&St.constructor,Tt=!!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]),Dt&&(It(),Dt=!1)},Et=!0,Dt=!0,Lt=[],jt=[],Rt=null,Bt=ct,Nt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Oe,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(t){try{Oe(t[0],t[1])}catch(e){}}))}},Ft=Nt,zt=[],Vt=0,qt=[];function $t(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ut,this._lib=!1;var e=this._PSD=Ft;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=Ft,e=de;function n(n,i){var r=this,o=!t.global&&(t!==Ft||e!==de),a=o&&!me(),s=new $t((function(e,s){Xt(r,new Gt(Ce(n,t,o,a),Ce(i,t,o,a),e,s,t))}));return $&&Qt(s,this),s}return n.prototype=yt,n},set:function(t){f(this,"then",t&&t.prototype===yt?Ht:{get:function(){return t},set:Ht.set})}};function Gt(t,e,n,i,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=n,this.reject=i,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 n=t._lib&&te();e&&"function"===typeof e.then?Wt(t,(function(t,n){e instanceof $t?e._then(t,n):e.then(t,n)})):(t._state=!0,t._value=e,Yt(t)),n&&ee()}}),Ut.bind(null,t))}catch(n){Ut(t,n)}}function Ut(t,e){if(jt.push(e),null===t._state){var n=t._lib&&te();e=Bt(e),t._state=!1,t._value=e,$&&null!==e&&"object"===typeof e&&!e._promise&&C((function(){var n=v(e,"stack");e._promise=t,f(e,"stack",{get:function(){return At?n&&(n.get?n.get.apply(e):n.value):t.stack}})})),re(t),Yt(t),n&&ee()}}function Yt(t){var e=t._listeners;t._listeners=[];for(var n=0,i=e.length;n0)for(t=zt,zt=[],n=t.length,e=0;e0);Et=!0,Dt=!0}function ne(){var t=Lt;Lt=[],t.forEach((function(t){t._PSD.onunhandled.call(null,t._value,t)}));var e=qt.slice(0),n=e.length;while(n)e[--n]()}function ie(t){function e(){t(),qt.splice(qt.indexOf(e),1)}qt.push(e),++Vt,Pt((function(){0===--Vt&&ne()}),[])}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 n=Ft;return function(){var i=te(),r=Ft;try{return _e(n,!0),t.apply(this,arguments)}catch(o){e&&e(o)}finally{_e(r,!1),i&&ee()}}}d($t.prototype,{then:Ht,_then:function(t,e){Xt(this,new Gt(null,null,t,e,Ft))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=arguments[0],n=arguments[1];return"function"===typeof e?this.then(null,(function(t){return t instanceof e?n(t):ae(t)})):this.then(null,(function(t){return t&&t.name===e?n(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 n=this;return t<1/0?new $t((function(i,r){var o=setTimeout((function(){return r(new ot.Timeout(e))}),t);n.then(i,r).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!==typeof Symbol&&Symbol.toStringTag&&f($t.prototype,Symbol.toStringTag,"Dexie.Promise"),Nt.env=xe(),d($t,{all:function(){var t=V.apply(null,arguments).map(ve);return new $t((function(e,n){0===t.length&&e([]);var i=t.length;t.forEach((function(r,o){return $t.resolve(r).then((function(n){t[o]=n,--i||e(t)}),n)}))}))},resolve:function(t){if(t instanceof $t)return t;if(t&&"function"===typeof t.then)return new $t((function(e,n){t.then(e,n)}));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,n){t.map((function(t){return $t.resolve(t).then(e,n)}))}))},PSD:{get:function(){return Ft},set:function(t){return Ft=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(n,i){return fe((function(e,n){var i=Ft;i.unhandleds=[],i.onunhandled=n,i.finalize=dt((function(){var t=this;ie((function(){0===t.unhandleds.length?e():n(t.unhandleds[0])}))}),i.finalize),t()}),e,n,i)}))}}),Ot&&(Ot.allSettled&&f($t,"allSettled",(function(){var t=V.apply(null,arguments).map(ve);return new $t((function(e){0===t.length&&e([]);var n=t.length,i=new Array(n);t.forEach((function(t,r){return $t.resolve(t).then((function(t){return i[r]={status:"fulfilled",value:t}}),(function(t){return i[r]={status:"rejected",reason:t}})).then((function(){return--n||e(i)}))}))}))})),Ot.any&&"undefined"!==typeof AggregateError&&f($t,"any",(function(){var t=V.apply(null,arguments).map(ve);return new $t((function(e,n){0===t.length&&n(new AggregateError([]));var i=t.length,r=new Array(i);t.forEach((function(t,o){return $t.resolve(t).then((function(t){return e(t)}),(function(t){r[o]=t,--i||n(new AggregateError(r))}))}))}))})));var le={awaits:0,echoes:0,id:0},ue=0,ce=[],he=0,de=0,pe=0;function fe(t,e,n,i){var r=Ft,o=Object.create(r);o.parent=r,o.ref=0,o.global=!1,o.id=++pe;var a=Nt.env;o.env=Tt?{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,n,i);return 0===o.ref&&o.finalize(),s}function ge(){return le.id||(le.id=++ue),++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===Ot?(ge(),t.then((function(t){return me(),t}),(function(t){return me(),Te(t)}))):t}function ye(t){++de,le.echoes&&0!==--le.echoes||(le.echoes=le.id=0),ce.push(Ft),_e(t,!0)}function be(){var t=ce[ce.length-1];ce.pop(),_e(t,!1)}function _e(t,e){var n=Ft;if((e?!le.echoes||he++&&t===Ft:!he||--he&&t===Ft)||Se(e?ye.bind(null,t):be),t!==Ft&&(Ft=t,n===Nt&&(Nt.env=xe()),Tt)){var i=Nt.env.Promise,r=t.env;Ct.then=r.nthen,i.prototype.then=r.gthen,(n.global||t.global)&&(Object.defineProperty(o,"Promise",r.PromiseProp),i.all=r.all,i.race=r.race,i.resolve=r.resolve,i.reject=r.reject,r.allSettled&&(i.allSettled=r.allSettled),r.any&&(i.any=r.any))}}function xe(){var t=o.Promise;return Tt?{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,n,i,r){var o=Ft;try{return _e(t,!0),e(n,i,r)}finally{_e(o,!1)}}function Se(t){Mt.call(St,t)}function Ce(t,e,n,i){return"function"!==typeof t?t:function(){var r=Ft;n&&ge(),_e(e,!0);try{return t.apply(this,arguments)}finally{_e(r,!1),i&&Se(me)}}}function ke(t,e){return function(n,i){return t.call(this,Ce(n,e),Ce(i,e))}}-1===(""+Mt).indexOf("[native code]")&&(ge=me=ut);var Me="unhandledrejection";function Oe(t,e){var n;try{n=e.onuncatched(t)}catch(a){}if(!1!==n)try{var i,r={promise:e,reason:t};if(o.document&&document.createEvent?(i=document.createEvent("Event"),i.initEvent(Me,!0,!0),l(i,r)):o.CustomEvent&&(i=new CustomEvent(Me,{detail:r}),l(i,r)),i&&o.dispatchEvent&&(dispatchEvent(i),!o.PromiseRejectionEvent&&o.onunhandledrejection))try{o.onunhandledrejection(i)}catch(s){}$&&i&&!i.defaultPrevented&&console.warn("Unhandled rejection: "+(t.stack||t))}catch(a){}}var Te=$t.reject;function Ae(t,e,n,i){if(t.idbdb&&(t._state.openComplete||Ft.letThrough||t._vip)){var r=t._createTransaction(e,n,t._dbSchema);try{r.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===it.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,n,i)}))):Te(o)}return r._promise(e,(function(t,e){return fe((function(){return Ft.trans=r,i(t,e,r)}))})).then((function(t){return r._completion.then((function(){return t}))}))}if(t._state.openComplete)return Te(new ot.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return Te(new ot.DatabaseClosed);t.open().catch(ut)}return t._state.dbReadyPromise.then((function(){return Ae(t,e,n,i)}))}var Ie="3.2.2",Pe=String.fromCharCode(65535),Ee=-1/0,De="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,Ne=Re,Fe=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,n){var i=this._tx||Ft.trans,r=this.name;function o(t,n,i){if(!i.schema[r])throw new ot.NotFound("Table "+r+" not part of transaction");return e(i.idbtrans,i)}var a=te();try{return i&&i.db===this.db?i===Ft.trans?i._promise(t,o,n):fe((function(){return i._promise(t,o,n)}),{trans:i,transless:Ft.transless||Ft}):Ae(this.db,t,[this.name],o)}finally{a&&ee()}},t.prototype.get=function(t,e){var n=this;return t&&t.constructor===Object?this.where(t).first(e):this._trans("readonly",(function(e){return n.core.get({trans:e,key:t}).then((function(t){return n.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 n=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(n&&this.db._maxKey!==Pe)return this.where(n.name).equals(n.keyPath.map((function(e){return t[e]})));!n&&$&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a compound index ["+e.join("+")+"]");var i=this.schema.idxByName,r=this.db._deps.indexedDB;function o(t,e){try{return 0===r.cmp(t,e)}catch(n){return!1}}var l=e.reduce((function(e,n){var r=e[0],a=e[1],l=i[n],u=t[n];return[r||l,r||!l?$e(a,l&&l.multi?function(t){var e=k(t,n);return s(e)&&e.some((function(t){return o(u,t)}))}:function(t){return o(u,k(t,n))}):a]}),[null,null]),u=l[0],c=l[1];return u?this.where(u.name).equals(t[u.keyPath]).filter(c):n?this.filter(c):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 n=Object.create(t.prototype);for(var i in e)if(h(e,i))try{n[i]=e[i]}catch(r){}return n};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 n=this,i=this.schema.primKey,r=i.auto,o=i.keyPath,a=t;return o&&r&&(a=Ge(o)(t)),this._trans("readwrite",(function(t){return n.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(n){}return e}))},t.prototype.update=function(t,e){if("object"!==typeof t||s(t))return this.where(":id").equals(t).modify(e);var n=k(t,this.schema.primKey.keyPath);if(void 0===n)return Te(new ot.InvalidArgument("Given object does not contain its primary key"));try{"function"!==typeof e?a(e).forEach((function(n){M(t,n,e[n])})):e(t,{value:t,primKey:n})}catch(Ti){}return this.where(":id").equals(n).modify(e)},t.prototype.put=function(t,e){var n=this,i=this.schema.primKey,r=i.auto,o=i.keyPath,a=t;return o&&r&&(a=Ge(o)(t)),this._trans("readwrite",(function(t){return n.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(n){}return e}))},t.prototype.delete=function(t){var e=this;return this._trans("readwrite",(function(n){return e.core.mutate({trans:n,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(n){return e.core.getMany({keys:t,trans:n}).then((function(t){return t.map((function(t){return e.hook.reading.fire(t)}))}))}))},t.prototype.bulkAdd=function(t,e,n){var i=this,r=Array.isArray(e)?e:void 0;n=n||(r?void 0:e);var o=n?n.allKeys:void 0;return this._trans("readwrite",(function(e){var n=i.schema.primKey,a=n.auto,s=n.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,u=s&&a?t.map(Ge(s)):t;return i.core.mutate({trans:e,type:"add",keys:r,values:u,wantResults:o}).then((function(t){var e=t.numFailures,n=t.results,r=t.lastResult,a=t.failures,s=o?n:r;if(0===e)return s;throw new nt(i.name+".bulkAdd(): "+e+" of "+l+" operations failed",a)}))}))},t.prototype.bulkPut=function(t,e,n){var i=this,r=Array.isArray(e)?e:void 0;n=n||(r?void 0:e);var o=n?n.allKeys:void 0;return this._trans("readwrite",(function(e){var n=i.schema.primKey,a=n.auto,s=n.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,u=s&&a?t.map(Ge(s)):t;return i.core.mutate({trans:e,type:"put",keys:r,values:u,wantResults:o}).then((function(t){var e=t.numFailures,n=t.results,r=t.lastResult,a=t.failures,s=o?n:r;if(0===e)return s;throw new nt(i.name+".bulkPut(): "+e+" of "+l+" operations failed",a)}))}))},t.prototype.bulkDelete=function(t){var e=this,n=t.length;return this._trans("readwrite",(function(n){return e.core.mutate({trans:n,type:"delete",keys:t})})).then((function(t){var i=t.numFailures,r=t.lastResult,o=t.failures;if(0===i)return r;throw new nt(e.name+".bulkDelete(): "+i+" of "+n+" operations failed",o)}))},t}();function Ue(t){var e={},n=function(n,i){if(i){var r=arguments.length,o=new Array(r-1);while(--r)o[r-1]=arguments[r];return e[n].subscribe.apply(null,o),t}if("string"===typeof n)return e[n]};n.addEventType=o;for(var i=1,r=arguments.length;ie?1:ti?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 n=e._ctx;if("next"===n.dir&&Ke(n,!0)&&n.limit>0){var i=n.valueMapper,r=tn(n,n.table.core.schema);return n.table.core.query({trans:t,limit:n.limit,values:!0,query:{index:r,range:n.range}}).then((function(t){var e=t.result;return i?e.map(i):e}))}var o=[];return nn(n,(function(t){return o.push(t)}),t,n.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,n){return 0===e||(1===e?(--e,!1):(n((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,n,i){return--e<=0&&n(i),e>=0}}),!0),this},t.prototype.until=function(t,e){return Ze(this._ctx,(function(n,i,r){return!t(n.value)||(i(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,n){t(n.key,n)}))},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,n){t(n.primaryKey,n)}))},t.prototype.keys=function(t){var e=this._ctx;e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.key)})).then((function(){return n})).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 n=tn(e,e.table.core.schema);return e.table.core.query({trans:t,values:!1,limit:e.limit,query:{index:n,range:e.range}})})).then((function(t){var e=t.result;return e})).then(t);e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.primaryKey)})).then((function(){return n})).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 n={};return Ze(this._ctx,(function(t){var e=t.primaryKey.toString(),i=h(n,e);return n[e]=!0,!i})),this},t.prototype.modify=function(t){var e=this,n=this._ctx;return this._write((function(i){var r;if("function"===typeof t)r=t;else{var o=a(t),s=o.length;r=function(e){for(var n=!1,i=0;i0&&l.mutate({trans:i,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:i,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===hn)&&l.mutate({trans:i,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&&!Ne||3===e.type)?this._write((function(n){var i=t.table.core.schema.primaryKey,r=e;return t.table.core.count({trans:n,query:{index:i,range:r}}).then((function(e){return t.table.core.mutate({trans:n,type:"deleteRange",range:r}).then((function(t){var n=t.failures;t.lastResult,t.results;var i=t.numFailures;if(i)throw new et("Could not delete some values",Object.keys(n).map((function(t){return n[t]})),e-i);return e-i}))}))})):this.modify(hn)},t}(),hn=function(t,e){return e.value=null};function dn(t){return Ye(cn.prototype,(function(e,n){this.db=t;var i=He,r=null;if(n)try{i=n()}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:i,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!==ct?s:null}}))}function pn(t,e){return te?-1:t===e?0:1}function gn(t,e,n){var i=t instanceof Sn?new t.Collection(t):t;return i._ctx.error=n?new n(e):new TypeError(e),i}function mn(t){return new t.Collection(t,(function(){return wn("")})).limit(0)}function vn(t){return"next"===t?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function yn(t){return"next"===t?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function bn(t,e,n,i,r,o){for(var a=Math.min(t.length,i.length),s=-1,l=0;l=0?t.substr(0,s)+e[s]+n.substr(s+1):null;r(t[l],u)<0&&(s=l)}return a0)&&(p=m)}return n(null!==p?function(){t.continue(p+c)}:i),!1})),p}function xn(t,e,n,i){return{type:2,lower:t,upper:e,lowerOpen:n,upperOpen:i}}function wn(t){return{type:1,lower:t,upper:t}}var Sn=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,n,i){n=!1!==n,i=!0===i;try{return this._cmp(t,e)>0||0===this._cmp(t,e)&&(n||i)&&(!n||!i)?mn(this):new this.Collection(this,(function(){return xn(t,e,!n,!i)}))}catch(r){return gn(this,De)}},t.prototype.equals=function(t){return null==t?gn(this,De):new this.Collection(this,(function(){return wn(t)}))},t.prototype.above=function(t){return null==t?gn(this,De):new this.Collection(this,(function(){return xn(t,void 0,!0)}))},t.prototype.aboveOrEqual=function(t){return null==t?gn(this,De):new this.Collection(this,(function(){return xn(t,void 0,!1)}))},t.prototype.below=function(t){return null==t?gn(this,De):new this.Collection(this,(function(){return xn(void 0,t,!1,!0)}))},t.prototype.belowOrEqual=function(t){return null==t?gn(this,De):new this.Collection(this,(function(){return xn(void 0,t)}))},t.prototype.startsWith=function(t){return"string"!==typeof t?gn(this,Le):this.between(t,t+Pe,!0,!0)},t.prototype.startsWithIgnoreCase=function(t){return""===t?this.startsWith(t):_n(this,(function(t,e){return 0===t.indexOf(e[0])}),[t],Pe)},t.prototype.equalsIgnoreCase=function(t){return _n(this,(function(t,e){return t===e[0]}),[t],"")},t.prototype.anyOfIgnoreCase=function(){var t=V.apply(z,arguments);return 0===t.length?mn(this):_n(this,(function(t,e){return-1!==e.indexOf(t)}),t,"")},t.prototype.startsWithAnyOfIgnoreCase=function(){var t=V.apply(z,arguments);return 0===t.length?mn(this):_n(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),n=this._cmp;try{e.sort(n)}catch(o){return gn(this,De)}if(0===e.length)return mn(this);var i=new this.Collection(this,(function(){return xn(e[0],e[e.length-1])}));i._ondirectionchange=function(i){n="next"===i?t._ascending:t._descending,e.sort(n)};var r=0;return i._addAlgorithm((function(t,i,o){var a=t.key;while(n(a,e[r])>0)if(++r,r===e.length)return i(o),!1;return 0===n(a,e[r])||(i((function(){t.continue(e[r])})),!1)})),i},t.prototype.notEqual=function(t){return this.inAnyRange([[Ee,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(n){return gn(this,De)}var e=t.reduce((function(t,e){return t?t.concat([[t[t.length-1][1],e]]):[[Ee,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 n=this,i=this._cmp,r=this._ascending,o=this._descending,a=this._min,s=this._max;if(0===t.length)return mn(this);if(!t.every((function(t){return void 0!==t[0]&&void 0!==t[1]&&r(t[0],t[1])<=0})))return gn(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,u=e&&!0===e.includeUppers;function c(t,e){for(var n=0,r=t.length;n0){o[0]=a(o[0],e[0]),o[1]=s(o[1],e[1]);break}}return n===r&&t.push(e),t}var h,d=r;function p(t,e){return d(t[0],e[0])}try{h=t.reduce(c,[]),h.sort(p)}catch(_){return gn(this,De)}var f=0,g=u?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 xn(h[0][0],h[h.length-1][1],!l,!u)}));return b._ondirectionchange=function(t){"next"===t?(y=g,d=r):(y=m,d=o),h.sort(p)},b._addAlgorithm((function(t,e,i){var o=t.key;while(y(o))if(++f,f===h.length)return e(i),!1;return!!v(o)||(0===n._cmp(o,h[f][1])||0===n._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?mn(this):this.inAnyRange(t.map((function(t){return[t,t+Pe]}))):gn(this,"startsWithAnyOf() only works with strings")},t}();function Cn(t){return Ye(Sn.prototype,(function(e,n,i){this.db=t,this._ctx={table:e,index:":id"===n?null:n,or:i};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 kn(t){return se((function(e){return Mn(e),t(e.target.error),!1}))}function Mn(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}var On="storagemutated",Tn="x-storagemutated-1",An=Ue(null,On),In=function(){function t(){}return t.prototype._lock=function(){return x(!Ft.global),++this._reculock,1!==this._reculock||Ft.global||(Ft.lockOwnerFor=this),this},t.prototype._unlock=function(){if(x(!Ft.global),0===--this._reculock){Ft.global||(Ft.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&&Ft.lockOwnerFor!==this},t.prototype.create=function(t){var e=this;if(!this.mode)return this;var n=this.db.idbdb,i=this.db._state.dbOpenError;if(x(!this.idbtrans),!t&&!n)switch(i&&i.name){case"DatabaseClosedError":throw new ot.DatabaseClosed(i);case"MissingAPIError":throw new ot.MissingAPI(i.message,i);default:throw new ot.OpenFailed(i)}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}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=se((function(n){Mn(n),e._reject(t.error)})),t.onabort=se((function(n){Mn(n),e.active&&e._reject(new ot.Abort(t.error)),e.active=!1,e.on("abort").fire(n)})),t.oncomplete=se((function(){e.active=!1,e._resolve(),"mutatedParts"in t&&An.storagemutated.fire(t["mutatedParts"])})),this},t.prototype._promise=function(t,e,n){var i=this;if("readwrite"===t&&"readwrite"!==this.mode)return Te(new ot.ReadOnly("Transaction is readonly"));if(!this.active)return Te(new ot.TransactionInactive);if(this._locked())return new $t((function(r,o){i._blockedFuncs.push([function(){i._promise(t,e,n).then(r,o)},Ft])}));if(n)return fe((function(){var t=new $t((function(t,n){i._lock();var r=e(t,n,i);r&&r.then&&r.then(t,n)}));return t.finally((function(){return i._unlock()})),t._lib=!0,t}));var r=new $t((function(t,n){var r=e(t,n,i);r&&r.then&&r.then(t,n)}));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(),n=$t.resolve(t);if(e._waitingFor)e._waitingFor=e._waitingFor.then((function(){return n}));else{e._waitingFor=n,e._waitingQueue=[];var i=e.idbtrans.objectStore(e.storeNames[0]);(function t(){++e._spinCount;while(e._waitingQueue.length)e._waitingQueue.shift()();e._waitingFor&&(i.get(-1/0).onsuccess=t)})()}var r=e._waitingFor;return new $t((function(t,i){n.then((function(n){return e._waitingQueue.push(se(t.bind(null,n)))}),(function(t){return e._waitingQueue.push(se(i.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 n=this.schema[t];if(!n)throw new ot.NotFound("Table "+t+" not part of transaction");var i=new this.db.Table(t,n,this);return i.core=this.db.core.table(t),e[t]=i,i},t}();function Pn(t){return Ye(In.prototype,(function(e,n,i,r,o){var a=this;this.db=t,this.mode=e,this.storeNames=n,this.schema=i,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(),Te(t)}))}))}function En(t,e,n,i,r,o,a){return{name:t,keyPath:e,unique:n,multi:i,auto:r,compound:o,src:(n&&!a?"&":"")+(i?"*":"")+(r?"++":"")+Dn(e)}}function Dn(t){return"string"===typeof t?t:t?"["+[].join.call(t,"+")+"]":""}function Ln(t,e,n){return{name:t,primKey:e,indexes:n,mappedClass:null,idxByName:S(n,(function(t){return[t.name,t]}))}}function jn(t){return 1===t.length?t[0]:t}var Rn=function(t){try{return t.only([[]]),Rn=function(){return[[]]},[[]]}catch(e){return Rn=function(){return Pe},Pe}};function Bn(t){return null==t?function(){}:"string"===typeof t?Nn(t):function(e){return k(e,t)}}function Nn(t){var e=t.split(".");return 1===e.length?function(e){return e[t]}:function(e){return k(e,t)}}function Fn(t){return[].slice.call(t)}var zn=0;function Vn(t){return null==t?":id":"string"===typeof t?t:"["+t.join("+")+"]"}function qn(t,e,n){function i(t,e){var n=Fn(t.objectStoreNames);return{schema:{name:t.name,tables:n.map((function(t){return e.objectStore(t)})).map((function(t){var e=t.keyPath,n=t.autoIncrement,i=s(e),r=null==e,o={},a={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:r,compound:i,keyPath:e,autoIncrement:n,unique:!0,extractKey:Bn(e)},indexes:Fn(t.indexNames).map((function(e){return t.index(e)})).map((function(t){var e=t.name,n=t.unique,i=t.multiEntry,r=t.keyPath,a=s(r),l={name:e,compound:a,keyPath:r,unique:n,multiEntry:i,extractKey:Bn(r)};return o[Vn(r)]=l,l})),getIndexByKeyPath:function(t){return o[Vn(t)]}};return o[":id"]=a.primaryKey,null!=e&&(o[Vn(e)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in e.objectStore(n[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 n=t.lower,i=t.upper,r=t.lowerOpen,o=t.upperOpen,a=void 0===n?void 0===i?null:e.upperBound(i,!!o):void 0===i?e.lowerBound(n,!!r):e.bound(n,i,!!r,!!o);return a}function o(t){var e=t.name;function n(t){var n=t.trans,i=t.type,o=t.keys,a=t.values,s=t.range;return new Promise((function(t,l){t=se(t);var u=n.objectStore(e),c=null==u.keyPath,h="put"===i||"add"===i;if(!h&&"delete"!==i&&"deleteRange"!==i)throw new Error("Invalid operation type: "+i);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,Mn(t)};if("deleteRange"===i){if(4===s.type)return t({numFailures:m,failures:g,results:[],lastResult:void 0});3===s.type?f.push(d=u.clear()):f.push(d=u.delete(r(s)))}else{var y=h?c?[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()(n.idbtrans)).then(h):$t.resolve()}return c.forEach((function(t){o.push((function(){var o=l,s=t._cfg.dbschema;oi(r,o,i),oi(r,s,i),l=r._dbSchema=s;var c=Zn(o,s);c.add.forEach((function(t){Qn(i,t[0],t[1].primKey,t[1].indexes)})),c.change.forEach((function(t){if(t.recreate)throw new ot.Upgrade("Not yet support for changing primary key");var e=i.objectStore(t.name);t.add.forEach((function(t){return ei(e,t)})),t.change.forEach((function(t){e.deleteIndex(t.name),ei(e,t)})),t.del.forEach((function(t){return e.deleteIndex(t)}))}));var h=t._cfg.contentUpgrade;if(h&&t._cfg.version>e){Gn(r,i),n._memoizedTables={},u=!0;var d=T(s);c.del.forEach((function(t){d[t]=o[t]})),Un(r,[r.Transaction.prototype]),Wn(r,[r.Transaction.prototype],a(d),d),n.schema=d;var p,f=q(h);f&&ge();var g=$t.follow((function(){if(p=h(n),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(!u||!Be){var i=t._cfg.dbschema;ti(i,e)}Un(r,[r.Transaction.prototype]),Wn(r,[r.Transaction.prototype],r._storeNames,r._dbSchema),n.schema=r._dbSchema}))})),h().then((function(){Jn(l,i)}))}function Zn(t,e){var n,i={del:[],add:[],change:[]};for(n in t)e[n]||i.del.push(n);for(n in e){var r=t[n],o=e[n];if(r){var a={name:n,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(r.primKey.keyPath||"")!==""+(o.primKey.keyPath||"")||r.primKey.auto!==o.primKey.auto&&!Re)a.recreate=!0,i.change.push(a);else{var s=r.idxByName,l=o.idxByName,u=void 0;for(u in s)l[u]||a.del.push(u);for(u in l){var c=s[u],h=l[u];c?c.src!==h.src&&a.change.push(h):a.add.push(h)}(a.del.length>0||a.add.length>0||a.change.length>0)&&i.change.push(a)}}else i.add.push([n,o])}return i}function Qn(t,e,n,i){var r=t.db.createObjectStore(e,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return i.forEach((function(t){return ei(r,t)})),r}function Jn(t,e){a(t).forEach((function(n){e.db.objectStoreNames.contains(n)||Qn(e,n,t[n].primKey,t[n].indexes)}))}function ti(t,e){[].slice.call(e.db.objectStoreNames).forEach((function(n){return null==t[n]&&e.db.deleteObjectStore(n)}))}function ei(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function ni(t,e,n){var i={},r=b(e.objectStoreNames,0);return r.forEach((function(t){for(var e=n.objectStore(t),r=e.keyPath,o=En(Dn(r),r||"",!1,!1,!!e.autoIncrement,r&&"string"!==typeof r,!0),a=[],s=0;sMath.pow(2,62)?0:i.oldVersion;s=c<1,t._novip.idbdb=u.result,Xn(t,c/10,a,o)}}),o),u.onsuccess=se((function(){a=null;var n=t._novip.idbdb=u.result,r=b(n.objectStoreNames);if(r.length>0)try{var o=n.transaction(jn(r),"readonly");e.autoSchema?ii(t,n,o):(oi(t,t._dbSchema,o),ri(t,o)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Gn(t,o)}catch(c){}je.push(t),n.onversionchange=se((function(n){e.vcFired=!0,t.on("versionchange").fire(n)})),n.onclose=se((function(e){t.on("close").fire(e)})),s&&di(t._deps,l),i()}),o)}))}))]).then((function(){return r(),e.onReadyBeingFired=[],$t.resolve(fi((function(){return t.on.ready.fire(t.vip)}))).then((function n(){if(e.onReadyBeingFired.length>0){var i=e.onReadyBeingFired.reduce(vt,ut);return e.onReadyBeingFired=[],$t.resolve(fi((function(){return i(t.vip)}))).then(n)}}))})).finally((function(){e.onReadyBeingFired=null,e.isBeingOpened=!1})).then((function(){return t})).catch((function(n){e.dbOpenError=n;try{a&&a.abort()}catch(Ti){}return i===e.openCanceller&&t._close(),Te(n)})).finally((function(){e.openComplete=!0,o()}))}function vi(t){var e=function(e){return t.next(e)},n=function(e){return t.throw(e)},i=o(e),r=o(n);function o(t){return function(e){var n=t(e),o=n.value;return n.done?o:o&&"function"===typeof o.then?o.then(i,r):s(o)?Promise.all(o).then(i,r):i(o)}}return o(e)()}function yi(t,e,n){var i=arguments.length;if(i<2)throw new ot.InvalidArgument("Too few arguments");var r=new Array(i-1);while(--i)r[i-1]=arguments[i];n=r.pop();var o=I(r);return[t,o,n]}function bi(t,e,n,i,r){return $t.resolve().then((function(){var o=Ft.transless||Ft,a=t._createTransaction(e,n,t._dbSchema,i),s={trans:a,transless:o};if(i)a.idbtrans=i.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(h){return h.name===it.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return bi(t,e,n,null,r)}))):Te(h)}var l,u=q(r);u&&ge();var c=$t.follow((function(){if(l=r.call(a,a),l)if(u){var t=me.bind(null,null);l.then(t,t)}else"function"===typeof l.next&&"function"===typeof l.throw&&(l=vi(l))}),s);return(l&&"function"===typeof l.then?$t.resolve(l).then((function(t){return a.active?t:Te(new ot.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):c.then((function(){return l}))).then((function(t){return i&&a._resolve(),a._completion.then((function(){return t}))})).catch((function(t){return a._reject(t),Te(t)}))}))}function _i(t,e,n){for(var i=s(t)?t.slice():[t],r=0;r0,h=i(i({},n),{isVirtual:c,keyTail:e,keyLength:u,extractKey:Bn(t),unique:!c&&n.unique});if(l.push(h),h.isPrimaryKey||a.push(h),u>1){var d=2===u?t[0]:t.slice(0,u-1);s(d,e+1,n)}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 u=0,c=r.indexes;u0?Promise.reject(n.failures[0]):o.length1?e:t}:{d:0})};function Ei(t,e,n){var i=on(e,n);if(!isNaN(i)){if(i>0)throw RangeError();if(Ii(t))return l(t,{from:e,to:n,d:1});var r=t.l,o=t.r;if(on(n,t.from)<0)return r?Ei(r,e,n):t.l={from:e,to:n,d:1,l:null,r:null},Ri(t);if(on(e,t.to)>0)return o?Ei(o,e,n):t.r={from:e,to:n,d:1,l:null,r:null},Ri(t);on(e,t.from)<0&&(t.from=e,t.l=null,t.d=o?o.d+1:1),on(n,t.to)>0&&(t.to=n,t.r=null,t.d=t.l?t.l.d+1:1);var a=!t.r;r&&!t.l&&Di(t,r),o&&a&&Di(t,o)}}function Di(t,e){function n(t,e){var i=e.from,r=e.to,o=e.l,a=e.r;Ei(t,i,r),o&&n(t,o),a&&n(t,a)}Ii(e)||n(t,e)}function Li(t,e){var n=ji(e),i=n.next();if(i.done)return!1;var r=i.value,o=ji(t),a=o.next(r.from),s=a.value;while(!i.done&&!a.done){if(on(s.from,r.to)<=0&&on(s.to,r.from)>=0)return!0;on(r.from,s.from)<0?r=(i=n.next(s.from)).value:s=(a=o.next(r.from)).value}return!1}function ji(t){var e=Ii(t)?null:{s:0,n:t};return{next:function(t){var n=arguments.length>0;while(e)switch(e.s){case 0:if(e.s=1,n)while(e.n.l&&on(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,!n||on(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 Ri(t){var e,n,r=((null===(e=t.r)||void 0===e?void 0:e.d)||0)-((null===(n=t.l)||void 0===n?void 0:n.d)||0),o=r>1?"r":r<-1?"l":"";if(o){var a="r"===o?"l":"r",s=i({},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=Bi(s)}t.d=Bi(t)}function Bi(t){var e=t.r,n=t.l;return(e?n?Math.max(e.d,n.d):e.d:n?n.d:0)+1}d(Pi.prototype,(Ti={add:function(t){return Di(this,t),this},addKey:function(t){return Ei(this,t,t),this},addKeys:function(t){var e=this;return t.forEach((function(t){return Ei(e,t,t)})),this}},Ti[N]=function(){return ji(this)},Ti));var Ni={stack:"dbcore",level:0,create:function(t){var e=t.schema.name,n=new Pi(t.MIN_KEY,t.MAX_KEY);return i(i({},t),{table:function(r){var o=t.table(r),l=o.schema,u=l.primaryKey,c=u.extractKey,h=u.outbound,d=i(i({},o),{mutate:function(t){var i=t.trans,a=i.mutatedParts||(i.mutatedParts={}),u=function(t){var n="idb://"+e+"/"+r+"/"+t;return a[n]||(a[n]=new Pi)},c=u(""),h=u(":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),c.addKeys(f);var e=Oi(f,m);e||"add"===d||h.addKeys(f),(e||g)&&Fi(u,l,e,g)}else if(f){var i={from:f.lower,to:f.upper};h.add(i),c.add(i)}else c.add(n),h.add(n),l.indexes.forEach((function(t){return u(t.name).add(n)}));return t}))}}),p=function(e){var n,i,r=e.query,o=r.index,a=r.range;return[o,new Pi(null!==(n=a.lower)&&void 0!==n?n:t.MIN_KEY,null!==(i=a.upper)&&void 0!==i?i:t.MAX_KEY)]},f={get:function(t){return[u,new Pi(t.key)]},getMany:function(t){return[u,(new Pi).addKeys(t.keys)]},count:p,query:p,openCursor:p};return a(f).forEach((function(t){d[t]=function(a){var s=Ft.subscr;if(s){var l=function(t){var n="idb://"+e+"/"+r+"/"+t;return s[n]||(s[n]=new Pi)},u=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(i(i({},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 n=t.result;return u.addKeys(n),e}));var n=a.values?e.result.map(c):e.result;a.values?u.addKeys(n):d.addKeys(n)}else if("openCursor"===t){var i=e,r=a.values;return i&&Object.create(i,{key:{get:function(){return d.addKey(i.primaryKey),i.key}},primaryKey:{get:function(){var t=i.primaryKey;return d.addKey(t),t}},value:{get:function(){return r&&u.addKey(i.primaryKey),i.value}}})}return e}))}d.add(n)}}return o[t].apply(this,arguments)}})),d}})}};function Fi(t,e,n,i){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)};(n||i).forEach((function(t,e){var r=n&&o(n[e]),s=i&&o(i[e]);0!==on(r,s)&&(null!=r&&a(r),null!=s&&a(s))}))}e.indexes.forEach(r)}var zi,Vi=function(){function t(e,n){var r=this;this._middlewares={},this.verno=0;var o=t.dependencies;this._options=n=i({addons:t.addons,autoOpen:!0,indexedDB:o.indexedDB,IDBKeyRange:o.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var a=n.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:ut,dbReadyPromise:null,cancelOpen:ut,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,ut]}),this.on.ready.subscribe=_(this.on.ready.subscribe,(function(e){return function(n,i){t.vip((function(){var t=r._state;if(t.openComplete)t.dbOpenError||$t.resolve().then(n),i&&e(n);else if(t.onReadyBeingFired)t.onReadyBeingFired.push(n),i&&e(n);else{e(n);var o=r;i||e((function t(){o.on.ready.unsubscribe(n),o.on.ready.unsubscribe(t)}))}}))}})),this.Collection=dn(this),this.Table=Xe(this),this.Transaction=Pn(this),this.Version=li(this),this.WhereClause=Cn(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(n){}this._novip.idbdb=null}t.dbReadyPromise=new $t((function(e){t.dbReadyResolve=e})),t.openCanceller=new $t((function(e,n){t.cancelOpen=n}))},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,n=this._state;return new $t((function(i,r){var o=function(){t.close();var e=t._deps.indexedDB.deleteDatabase(t.name);e.onsuccess=se((function(){pi(t._deps,t.name),i()})),e.onerror=kn(r),e.onblocked=t._fireOnBlocked};if(e)throw new ot.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.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=yi.apply(this,arguments);return this._transaction.apply(this,t)},t.prototype._transaction=function(t,e,n){var i=this,r=Ft.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 i.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(u){return r?r._promise(null,(function(t,e){e(u)})):Te(u)}var l=bi.bind(null,this,o,a,r,n);return r?r._promise(o,l,"lock"):Ft.trans?we(Ft.transless,(function(){return i._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}(),qi="undefined"!==typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",$i=function(){function t(t){this._subscribe=t}return t.prototype.subscribe=function(t,e,n){return this._subscribe(t&&"function"!==typeof t?t:{next:t,error:e,complete:n})},t.prototype[qi]=function(){return this},t}();function Hi(t,e){return a(e).forEach((function(n){var i=t[n]||(t[n]=new Pi);Di(i,e[n])})),t}function Gi(t){return new $i((function(e){var n=q(t);function i(e){n&&ge();var i=function(){return fe(t,{subscr:e,trans:null})},r=Ft.trans?we(Ft.transless,i):i();return n&&r.then(me,me),r}var r=!1,o={},s={},l={get closed(){return r},unsubscribe:function(){r=!0,An.storagemutated.unsubscribe(d)}};e.start&&e.start(l);var u=!1,c=!1;function h(){return a(s).some((function(t){return o[t]&&Li(o[t],s[t])}))}var d=function(t){Hi(o,t),h()&&p()},p=function(){if(!u&&!r){o={};var t={},n=i(t);c||(An(On,d),c=!0),u=!0,Promise.resolve(n).then((function(n){u=!1,r||(h()?p():(o={},s=t,e.next&&e.next(n)))}),(function(t){u=!1,e.error&&e.error(t),l.unsubscribe()}))}};return p(),l}))}try{zi={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch(Qi){zi={indexedDB:null,IDBKeyRange:null}}var Wi=Vi;function Ui(t){var e=Yi;try{Yi=!0,An.storagemutated.fire(t)}finally{Yi=e}}d(Wi,i(i({},lt),{delete:function(t){var e=new Wi(t,{addons:[]});return e.delete()},exists:function(t){return new Wi(t,{addons:[]}).open().then((function(t){return t.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(t){try{return hi(Wi.dependencies).then(t)}catch(Ti){return Te(new ot.MissingAPI)}},defineClass:function(){function t(t){l(this,t)}return t},ignoreTransaction:function(t){return Ft.trans?we(Ft.transless,t):t()},vip:fi,async:function(t){return function(){try{var e=vi(t.apply(this,arguments));return e&&"function"===typeof e.then?e:$t.resolve(e)}catch(Qi){return Te(Qi)}}},spawn:function(t,e,n){try{var i=vi(t.apply(n,e||[]));return i&&"function"===typeof i.then?i:$t.resolve(i)}catch(Qi){return Te(Qi)}},currentTransaction:{get:function(){return Ft.trans||null}},waitFor:function(t,e){var n=$t.resolve("function"===typeof t?Wi.ignoreTransaction(t):t).timeout(e||6e4);return Ft.trans?Ft.trans.waitFor(n):n},Promise:$t,debug:{get:function(){return $},set:function(t){H(t,"dexie"===t?function(){return!0}:Fe)}},derive:g,extend:l,props:d,override:_,Events:Ue,on:An,liveQuery:Gi,extendObservabilitySet:Hi,getByKeyPath:k,setByKeyPath:M,delByKeyPath:O,shallowClone:T,deepClone:L,getObjectDiff:Si,cmp:on,asap:w,minKey:Ee,addons:[],connections:je,errnames:it,dependencies:zi,semVer:Ie,version:Ie.split(".").map((function(t){return parseInt(t)})).reduce((function(t,e,n){return t+e/Math.pow(10,2*n)}))})),Wi.maxKey=Rn(Wi.dependencies.IDBKeyRange),"undefined"!==typeof dispatchEvent&&"undefined"!==typeof addEventListener&&(An(On,(function(t){var e;Yi||(Re?(e=document.createEvent("CustomEvent"),e.initCustomEvent(Tn,!0,!0,t)):e=new CustomEvent(Tn,{detail:t}),Yi=!0,dispatchEvent(e),Yi=!1)})),addEventListener(Tn,(function(t){var e=t.detail;Yi||Ui(e)})));var Yi=!1;if("undefined"!==typeof BroadcastChannel){var Xi=new BroadcastChannel(Tn);An(On,(function(t){Yi||Xi.postMessage(t)})),Xi.onmessage=function(t){t.data&&Ui(t.data)}}else if("undefined"!==typeof self&&"undefined"!==typeof navigator){An(On,(function(t){try{Yi||("undefined"!==typeof localStorage&&localStorage.setItem(Tn,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:Tn,changedParts:t})})))}catch(Ti){}})),"undefined"!==typeof addEventListener&&addEventListener("storage",(function(t){if(t.key===Tn){var e=JSON.parse(t.newValue);e&&Ui(e.changedParts)}}));var Ki=self.document&&navigator.serviceWorker;Ki&&Ki.addEventListener("message",Zi)}function Zi(t){var e=t.data;e&&e.type===Tn&&Ui(e.changedParts)}$t.rejectionMapper=st,H($,Fe)}).call(this,n("23b3"))},"4df4":function(t,e,n){"use strict";var i=n("0366"),r=n("c65b"),o=n("7b0b"),a=n("9bdd"),s=n("e95a"),l=n("68ee"),u=n("07fa"),c=n("8418"),h=n("9a1f"),d=n("35a1"),p=Array;t.exports=function(t){var e=o(t),n=l(this),f=arguments.length,g=f>1?arguments[1]:void 0,m=void 0!==g;m&&(g=i(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=u(e),y=n?new this(v):p(v);v>C;C++)w=m?g(e[C],C):e[C],c(y,C,w);else for(_=h(e,S),x=_.next,y=n?new this:[];!(b=r(x,_)).done;C++)w=m?a(_,g,[b.value,C],!0):b.value,c(y,C,w);return y.length=C,y}},"4e73":function(t,e,n){"use strict";var i=n("2b0e"),r=n("c474"),o=n("7ee0"),a=n("b7fa"),s=n("9e62"),l=n("7562"),u=n("f376"),c=n("0967"),h=n("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 n=t;void 0!==n;n=n.$parent)if(n===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 n=t.length-1;n>=0;n--)if(void 0===t[n](e))return}function _(t){clearTimeout(f),"focusin"===t.type&&(!0===c["a"].is.ie&&t.target===document.body||!0===t.target.hasAttribute("tabindex"))?f=setTimeout((()=>{b(v.focus,t)}),!0===c["a"].is.ie?500:200):b(v.click,t)}var x={name:"click-outside",bind(t,{value:e,arg:n},i){const r=i.componentInstance||i.context,o={trigger:e,toggleEl:n,handler(e){const n=e.target;if(!0!==e.qClickOutside&&!0===document.body.contains(n)&&8!==n.nodeType&&n!==document.documentElement&&!1===n.classList.contains("no-pointer-events")&&!0!==y(t)&&(void 0===o.toggleEl||!1===o.toggleEl.contains(n))&&(n===document.body||!1===p(d(n),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:n,arg:i}){const r=t.__qclickoutside;e!==n&&(r.trigger=e),i!==r.arg&&(r.toggleEl=i)},unbind(t){const e=t.__qclickoutside_old||t.__qclickoutside;if(void 0!==e){clearTimeout(e.timerFocusin);const n=v.click.findIndex((t=>t===e.handler)),i=v.focus.findIndex((t=>t===e.handler));n>-1&&v.click.splice(n,1),i>-1&&v.focus.splice(i,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=n("0831"),S=n("a267"),C=n("dde5"),k=n("e704"),M=n("ab41");e["a"]=i["a"].extend({name:"QMenu",mixins:[u["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!==c["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:n}=this.anchorEl.getBoundingClientRect();this.absoluteOffset={left:e.left-n,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,n){var i=n("68ee"),r=n("0d51"),o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not a constructor")}},5096:function(t,e,n){"use strict";var i=n("2b0e"),r=n("de5e"),o=n("0831");e["a"]=i["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,n){var i=n("5926"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"512c":function(t,e,n){var i=n("342f"),r=i.match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},"515f":function(t,e,n){"use strict";n("5319");var i=n("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 u(t){let e=0;const n=t.match(/(\d+)d/),i=t.match(/(\d+)h/),r=t.match(/(\d+)m/),o=t.match(/(\d+)s/);return n&&(e+=864e5*n[1]),i&&(e+=36e5*i[1]),r&&(e+=6e4*r[1]),o&&(e+=1e3*o[1]),0===e?t:l(e)}function c(t,e,n={},i){let o,s;void 0!==n.expires&&("[object Date]"===Object.prototype.toString.call(n.expires)?o=n.expires.toUTCString():"string"===typeof n.expires?o=u(n.expires):(s=parseFloat(n.expires),o=!1===isNaN(s)?l(864e5*s):n.expires));const c=`${r(t)}=${a(e)}`,d=[c,void 0!==o?"; Expires="+o:"",n.path?"; Path="+n.path:"",n.domain?"; Domain="+n.domain:"",n.sameSite?"; SameSite="+n.sameSite:"",n.httpOnly?"; HttpOnly":"",n.secure?"; Secure":"",n.other?"; "+n.other:""].join("");if(i){i.req.qCookies?i.req.qCookies.push(d):i.req.qCookies=[d],i.res.setHeader("Set-Cookie",i.req.qCookies);let e=i.req.headers.cookie||"";if(void 0!==o&&s<0){const n=h(t,i);void 0!==n&&(e=e.replace(`${t}=${n}; `,"").replace(`; ${t}=${n}`,"").replace(`${t}=${n}`,""))}else e=e?`${c}; ${e}`:d;i.req.headers.cookie=e}else document.cookie=d}function h(t,e){const n=e?e.req.headers:document,i=n.cookie?n.cookie.split("; "):[],r=i.length;let a,l,u,c=t?null:{},h=0;for(;hh(e,t),set:(e,n,i)=>c(e,n,i,t),has:e=>p(e,t),remove:(e,n)=>d(e,n,t),getAll:()=>h(null,t)}}e["a"]={parseSSR(t){return void 0!==t?f(t):this},install({$q:t,queues:e}){!0===i["e"]?e.server.push(((t,e)=>{t.cookies=f(e.ssr)})):(Object.assign(this,f()),t.cookies=this)}}},5261:function(t,e,n){"use strict";function i(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&(n=e[n],"string"===typeof t[n]&&(t[n]=parseInt(t[n],10)));return"string"===typeof t["displayValue"]&&(t["displayValue"]="false"!=t["displayValue"]),t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},5270:function(t,e,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),a=n("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=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.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,n){"use strict";n("caad"),n("ddb0");var i=n("2b0e"),r=n("9c40"),o=n("a8f0"),a=n("b7fa"),s=n("f89c"),l=n("87e8"),u=n("7937");const c=["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=>c.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,n=!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:n,minute:n,second:n,millisecond:n}},__getCurrentTime(){const t=new Date;return{hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}},__getDayHash(t){return t.year+"/"+Object(u["e"])(t.month)+"/"+Object(u["e"])(t.day)}}},d=n("dde5"),p=n("bd4c"),f=n("0cd3"),g=n("5ff7");const m=20,v=["Calendar","Years","Months"],y=t=>v.includes(t),b=t=>/^-?[\d]+\/[0-1]\d$/.test(t),_=" — ";e["a"]=i["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(),n=this.__getViewModel(t,e),i=n.year,r=!0===this.$q.lang.rtl?"right":"left";return{view:this.defaultView,monthDirection:r,yearDirection:r,startYear:i-i%m-(i<0?m:0),editRange:void 0,innerMask:t,innerLocale:e,viewModel:n}},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,n)=>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===n?this.innerLocale:n,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,n=this.innerLocale.monthsShort;return n[t.month-1]+(t.year!==e.year?" "+t.year+_+n[e.month-1]+" ":t.month!==e.month?_+n[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 n=this.__getMonthHash(e);void 0===t[n]&&(t[n]=[]),t[n].push(e.day)})),t},rangeMap(){const t={};return this.rangeModel.forEach((e=>{const n=this.__getMonthHash(e.from),i=this.__getMonthHash(e.to);if(void 0===t[n]&&(t[n]=[]),t[n].push({from:e.from.day,to:n===i?e.to.day:void 0,range:e}),n12&&(a.year++,a.month=1)}})),t},rangeView(){if(void 0===this.editRange)return;const{init:t,initHash:e,final:n,finalHash:i}=this.editRange,[r,o]=e<=i?[t,n]:[n,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 n=1;n<=this.daysInMonth;n++){const i=this.viewMonthHash+"/"+Object(u["e"])(n);t[n]=e(i)}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 n=1;n<=this.daysInMonth;n++){const i=this.viewMonthHash+"/"+Object(u["e"])(n);t[n]=!0===e(i)&&this.evtColor(i)}}return t},viewDays(){let t,e;const{year:n,month:i}=this.viewModel;if("persian"!==this.calendar)t=new Date(n,i-1,1),e=new Date(n,i-1,0).getDate();else{const r=Object(o["b"])(n,i,1);t=new Date(r.gy,r.gm-1,r.gd);let a=i-1,s=n;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:n}=this.viewDays,i=e<0?e+7:e;if(i<6)for(let a=n-i;a<=n;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 n=r+e-1;Object.assign(t[n],{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 n=r+e.from-1,i=r+(e.to||this.daysInMonth)-1;for(let r=n;r<=i;r++)Object.assign(t[r],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[n],{rangeFrom:!0,flat:!1}),void 0!==e.to&&Object.assign(t[i],{rangeTo:!0,flat:!1})}else if(void 0!==e.to){const n=r+e.to-1;for(let i=r;i<=n;i++)Object.assign(t[i],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor});Object.assign(t[n],{flat:!1,rangeTo:!0})}else{const n=r+this.daysInMonth-1;for(let i=r;i<=n;i++)Object.assign(t[i],{range:e.range,unelevated:!0,color:this.computedColor,textColor:this.computedTextColor})}})),void 0!==this.rangeView){const e=r+this.rangeView.from-1,n=r+this.rangeView.to-1;for(let i=e;i<=n;i++)t[i].color=this.computedColor,t[i].editRange=!0;!0===this.rangeView.includeFrom&&(t[e].editRangeFrom=!0),!0===this.rangeView.includeTo&&(t[n].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 n=1;n<=e;n++)t.push({i:n,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 n=Object.assign({...this.viewModel},t),i=void 0!==e?Object.assign({...this.viewModel},e):n;this.editRange={init:n,initHash:this.__getDayHash(n),final:i,finalHash:this.__getDayHash(i)},this.setCalendarTo(n.year,n.month)},__getMask(){return"persian"===this.calendar?"YYYY/MM/DD":this.mask},__decodeString(t,e,n){return Object(p["a"])(t,e,n,this.calendar,{hour:0,minute:0,second:0,millisecond:0})},__getViewModel(t,e){const n=!0===Array.isArray(this.value)?this.value:this.value?[this.value]:[];if(0===n.length)return this.__getDefaultViewModel();const i=this.__decodeString(void 0!==n[0].from?n[0].from:n[0],t,e);return null===i.dateHash?this.__getDefaultViewModel():i},__getDefaultViewModel(){let t,e;if(void 0!==this.defaultYearMonth){const n=this.defaultYearMonth.split("/");t=parseInt(n[0],10),e=parseInt(n[1],10)}else{const n=void 0!==this.today?this.today:this.__getCurrentDate();t=n.year,e=n.month}return{year:t,month:e,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:t+"/"+Object(u["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:n,key:i,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-#"+n,{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:i},[t(r["a"],{props:{flat:!0,dense:!0,noCaps:!0,label:e,tabindex:this.computedTabindex},on:Object(f["b"])(this,"view#"+n,{click:()=>{this.view=n}})})])])]),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+#"+n,{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,n=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:i,unelevated:a,color:!0===a?this.computedColor:null,textColor:!0===a?this.computedTextColor:null,tabindex:this.computedTabindex,disable:n(o+1)},on:Object(f["b"])(this,"month#"+o,{click:()=>{this.__setMonth(o+1)}})})])}));return!0===this.yearsInMonthView&&i.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"},i)},__getYearsView(t){const e=this.startYear,n=e+m,i=[],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"},i),t("div",{staticClass:"col-auto"},[t(r["a"],{props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[1],tabindex:this.computedTabindex,disable:o(n)},on:Object(f["b"])(this,"y+",{click:()=>{this.startYear+=m}})})])])},__goToMonth(t){let e=this.viewModel.year,n=Number(this.viewModel.month)+t;13===n?(n=1,e++):0===n&&(n=12,e--),this.__updateViewModel(e,n),!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(u["e"])(t.month)},__toggleDate(t,e){const n=this.daysMap[e],i=void 0!==n&&!0===n.includes(t.day)?this.__removeFromModel:this.__addToModel;i(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 n=this.days.find((e=>!0!==e.fill&&e.i===t));if(void 0!==n.range)return void this.__removeFromModel({target:e,from:n.range.from,to:n.range.to});if(!0===n.selected)return void this.__removeFromModel(e);const i=this.__getDayHash(e);this.editRange={init:e,initHash:i,final:e,finalHash:i},this.$emit("range-start",this.__getShortDate(e))}else{const t=this.editRange.initHash,n=this.__getDayHash(e),i=t<=n?{from:this.editRange.init,to:e}:{from:e,to:this.editRange.init};this.editRange=void 0,this.__addToModel(t===n?e:{target:e,...i}),this.$emit("range-end",{from:this.__getShortDate(i.from),to:this.__getShortDate(i.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 n=t+"/"+Object(u["e"])(e)+"/01";n!==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:n})})))},__emitValue(t,e,n){const i=null!==t&&1===t.length&&!1===this.multiple?t[0]:t;this.lastEmitValue=i;const{reason:r,details:o}=this.__getEmitParams(e,n);this.$emit("input",i,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 n="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),n);const i=this.__encodeEntry(e);this.lastEmitValue=i;const{details:r}=this.__getEmitParams("",e);this.$emit("input",i,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,n){return void 0!==t.from?{from:this.encodeObjectFn(t.from,e,n),to:this.encodeObjectFn(t.to,e,n)}:this.encodeObjectFn(t,e,n)},__addToModel(t){let e;if(!0===this.multiple)if(void 0!==t.from){const n=this.__getDayHash(t.from),i=this.__getDayHash(t.to),r=this.daysModel.filter((t=>t.dateHashi)),o=this.rangeModel.filter((({from:t,to:e})=>e.dateHashi));e=r.concat(o).concat(t).map((t=>this.__encodeEntry(t)))}else{const n=this.normalizedModel.slice();n.push(this.__encodeEntry(t)),e=n}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 n=this.__encodeEntry(t);e=void 0!==t.from?this.value.filter((t=>void 0===t.from||t.from!==n.from&&t.to!==n.to)):this.value.filter((t=>t!==n)),0===e.length&&(e=null)}this.__emitValue(e,"remove",t)},__updateValue(t,e,n){const i=this.daysModel.concat(this.rangeModel).map((n=>this.__encodeEntry(n,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?i:i[0])||null,n)}},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)])])],n=Object(d["c"])(this,"default");return void 0!==n&&e.push(t("div",{staticClass:"q-date__actions"},n)),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,n){"use strict";var i=n("2ba4"),r=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),l=n("825a"),u=n("1626"),c=n("5926"),h=n("50c4"),d=n("577e"),p=n("1d80"),f=n("8aa5"),g=n("dc4a"),m=n("0cb2"),v=n("14c3"),y=n("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)},O=function(){return"$0"==="a".replace(/./,"$0")}(),T=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,n){var o=T?"$":"$0";return[function(t,n){var i=p(this),o=void 0==t?void 0:g(t,b);return o?r(o,t,i,n):r(e,d(i),t,n)},function(t,r){var a=l(this),s=d(t);if("string"==typeof r&&-1===C(r,o)&&-1===C(r,"$<")){var p=n(e,a,s,r);if(p.done)return p.value}var g=u(r);g||(r=d(r));var y=a.global;if(y){var b=a.unicode;a.lastIndex=0}var O=[];while(1){var T=v(a,s);if(null===T)break;if(S(O,T),!y)break;var A=d(T[0]);""===A&&(a.lastIndex=f(s,h(a.lastIndex),b))}for(var I="",P=0,E=0;E=P&&(I+=k(s,P,L)+F,P=L+D.length)}return I+k(s,P)}]}),!A||!O||T)},5352:function(t,e,n){"use strict";n("e260");var i=n("23e7"),r=n("da84"),o=n("c65b"),a=n("e330"),s=n("83ab"),l=n("0d3b"),u=n("cb2d"),c=n("6964"),h=n("d44e"),d=n("9ed3"),p=n("69f3"),f=n("19aa"),g=n("1626"),m=n("1a2d"),v=n("0366"),y=n("f5df"),b=n("825a"),_=n("861d"),x=n("577e"),w=n("7c73"),S=n("5c6c"),C=n("9a1f"),k=n("35a1"),M=n("d6d6"),O=n("b622"),T=n("addb"),A=O("iterator"),I="URLSearchParams",P=I+"Iterator",E=p.set,D=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"),N=R("Request"),F=R("Headers"),z=N&&N.prototype,V=F&&F.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),nt=function(t){return et[t-1]||(et[t-1]=q("((?:%[\\da-f]{2}){"+t+"})","gi"))},it=function(t){try{return H(t)}catch(e){return t}},rt=function(t){var e=X(t,tt," "),n=4;try{return H(e)}catch(i){while(n)e=X(e,nt(n--),it);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)},ut=d((function(t,e){E(this,{type:P,iterator:C(D(t).entries),kind:e})}),"Iterator",(function(){var t=L(this),e=t.kind,n=t.iterator.next(),i=n.value;return n.done||(n.value="keys"===e?i.key:"values"===e?i.value:[i.key,i.value]),n}),!0),ct=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)))};ct.prototype={type:I,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,i,r,a,s,l,u=k(t);if(u){e=C(t,u),n=e.next;while(!(i=o(n,e)).done){if(r=C(b(i.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 c in t)m(t,c)&&Y(this.entries,{key:c,value:x(t[c])})},parseQuery:function(t){if(t){var e,n,i=Q(t,"&"),r=0;while(r0?arguments[0]:void 0;E(this,new ct(t))},dt=ht.prototype;if(c(dt,{append:function(t,e){M(arguments.length,2);var n=D(this);Y(n.entries,{key:x(t),value:x(e)}),n.updateURL()},delete:function(t){M(arguments.length,1);var e=D(this),n=e.entries,i=x(t),r=0;while(re.key?1:-1})),t.updateURL()},forEach:function(t){var e,n=D(this).entries,i=v(t,arguments.length>1?arguments[1]:void 0),r=0;while(r1?gt(arguments[1]):{})}}),g(N)){var mt=function(t){return f(this,z),new N(t,arguments.length>1?gt(arguments[1]):{})};z.constructor=mt,mt.prototype=z,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:mt})}}t.exports={URLSearchParams:ht,getState:D}},5377:function(t,e,n){var i=n("da84"),r=n("83ab"),o=n("edd0"),a=n("ad6d"),s=n("d039"),l=i.RegExp,u=l.prototype,c=r&&s((function(){var t=!0;try{l(".","d")}catch(c){t=!1}var e={},n="",i=t?"dgimsy":"gimsy",r=function(t,i){Object.defineProperty(e,t,{get:function(){return n+=i,!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(u,"flags").get.call(e);return s!==i||n!==i}));c&&o(u,"flags",{configurable:!0,get:a})},5692:function(t,e,n){var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:i?"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,n){var i=n("d066"),r=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},5726:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("c243"),r=function(t,e,n){var r=t.split("").map((function(t,n){return i.BINARIES[e[n]]})).map((function(e,n){return e?e[t[n]]:""}));if(n){var o=t.length-1;r=r.map((function(t,e){return er.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,n){"use strict";n("ddb0"),n("caad");var i=n("0967"),r=n("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===i["e"])return;const{cordova:e,capacitor:n}=i["a"].is;if(!0!==e&&!0!==n)return;const r=t[!0===e?"cordova":"capacitor"];if(void 0!==r&&!1===r.backButton)return;if(!0===n&&(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)}}},"583f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n["top","middle","bottom"].includes(t)}},computed:{style(){if(void 0!==this.align)return{verticalAlign:this.align}},classes(){const t=!0===this.outline&&this.color||this.textColor;return`q-badge flex inline items-center no-wrap q-badge--${!0===this.multiLine?"multi":"single"}-line`+(!0===this.outline?" q-badge--outline":void 0!==this.color?` bg-${this.color}`:"")+(void 0!==t?` text-${t}`:"")+(!0===this.floating?" q-badge--floating":"")+(!0===this.rounded?" q-badge--rounded":"")+(!0===this.transparent?" q-badge--transparent":"")},attrs(){return{role:"alert","aria-label":this.label}}},render(t){return t("div",{style:this.style,class:this.classes,attrs:this.attrs,on:{...this.qListeners}},void 0!==this.label?[this.label]:Object(o["c"])(this,"default"))}})},"58b4":function(t,e,n){"use strict";t.exports=function(t){for(var e=[],n=t.length,i=0;i=55296&&r<=56319&&n>i+1){var o=t.charCodeAt(i+1);o>=56320&&o<=57343&&(r=1024*(r-55296)+o-56320+65536,i+=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,n){"use strict";var i=n("582c");e["a"]={methods:{__addHistory(){this.__historyEntry={condition:()=>!0===this.hideOnRouteChange,handler:this.hide},i["a"].add(this.__historyEntry)},__removeHistory(){void 0!==this.__historyEntry&&(i["a"].remove(this.__historyEntry),this.__historyEntry=void 0)}},beforeDestroy(){!0===this.showing&&this.__removeHistory()}}},5926:function(t,e,n){var i=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},"59ed":function(t,e,n){var i=n("1626"),r=n("0d51"),o=TypeError;t.exports=function(t){if(i(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,n){var i=n("74e8");i("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"5e77":function(t,e,n){var i=n("83ab"),r=n("1a2d"),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},"5f02":function(t,e,n){"use strict";t.exports=function(t){return"object"===typeof t&&!0===t.isAxiosError}},"5fb2":function(t,e,n){"use strict";var i=n("e330"),r=2147483647,o=36,a=1,s=26,l=38,u=700,c=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=i(f.exec),b=Math.floor,_=String.fromCharCode,x=i("".charCodeAt),w=i([].join),S=i([].push),C=i("".replace),k=i("".split),M=i("".toLowerCase),O=function(t){var e=[],n=0,i=t.length;while(n=55296&&r<=56319&&n>1,t+=b(t/e);while(t>m*s>>1)t=b(t/m),i+=o;return b(i+(m+1)*t/(t+l))},I=function(t){var e=[];t=O(t);var n,i,l=t.length,u=h,p=0,f=c;for(n=0;n=u&&ib((r-p)/C))throw v(g);for(p+=(x-u)*C,u=x,n=0;nr)throw v(g);if(i==u){var k=p,M=o;while(1){var I=M<=f?a:M>=f+s?s:M-f;if(kvoid 0!==t[e]));if(n=l.length,n!==Object.keys(e).filter((t=>void 0!==e[t])).length)return!1;for(s=n;0!==s--;){const n=l[s];if(!0!==a(t[n],e[n]))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 u(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function c(t){return"number"===typeof t&&isFinite(t)}},"60da":function(t,e,n){"use strict";var i=n("83ab"),r=n("e330"),o=n("c65b"),a=n("d039"),s=n("df75"),l=n("7418"),u=n("d1e7"),c=n("7b0b"),h=n("44ad"),d=Object.assign,p=Object.defineProperty,f=r([].concat);t.exports=!d||a((function(){if(i&&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={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=d({},t)[n]||s(d({},e)).join("")!=r}))?function(t,e){var n=c(t),r=arguments.length,a=1,d=l.f,p=u.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++],i&&!o(p,m,g)||(n[g]=m[g])}return n}:d},"621a":function(t,e,n){"use strict";var i=n("da84"),r=n("e330"),o=n("83ab"),a=n("a981"),s=n("5e77"),l=n("9112"),u=n("6964"),c=n("d039"),h=n("19aa"),d=n("5926"),p=n("50c4"),f=n("0b25"),g=n("77a7"),m=n("e163"),v=n("d2bb"),y=n("241c").f,b=n("9bf2").f,_=n("81d5"),x=n("4dae"),w=n("d44e"),S=n("69f3"),C=s.PROPER,k=s.CONFIGURABLE,M=S.get,O=S.set,T="ArrayBuffer",A="DataView",I="prototype",P="Wrong length",E="Wrong index",D=i[T],L=D,j=L&&L[I],R=i[A],B=R&&R[I],N=Object.prototype,F=i.Array,z=i.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,n,i){var r=f(n),o=M(t);if(r+e>o.byteLength)throw z(E);var a=M(o.buffer).bytes,s=r+o.byteOffset,l=x(a,s,s+e);return i?l:q(l)},J=function(t,e,n,i,r,o){var a=f(n),s=M(t);if(a+e>s.byteLength)throw z(E);for(var l=M(s.buffer).bytes,u=a+s.byteOffset,c=i(+r),h=0;hit;)(et=nt[it++])in L||l(L,et,D[et]);j.constructor=L}v&&m(B)!==N&&v(B,N);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)||u(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);O(this,{bytes:V(F(e),0),byteLength:e}),o||(this.byteLength=e)},j=L[I],R=function(t,e,n){h(this,B),h(t,j);var i=M(t).byteLength,r=d(e);if(r<0||r>i)throw z("Wrong offset");if(n=void 0===n?i-r:p(n),r+n>i)throw z(P);O(this,{buffer:t,byteLength:n,byteOffset:r}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=r)},B=R[I],o&&(Z(L,"byteLength"),Z(R,"buffer"),Z(R,"byteLength"),Z(R,"byteOffset")),u(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,T),w(R,A),t.exports={ArrayBuffer:L,DataView:R}},"62c5":function(t,e,n){"use strict";var i=n("ff84"),r=_(i),o=n("fd7c"),a=_(o),s=n("a2b0"),l=_(s),u=n("79f1"),c=_(u),h=n("b1d8"),d=_(h),p=n("5261"),f=_(p),g=n("bd8a"),m=_(g),v=n("dca2"),y=n("ca32"),b=_(y);function _(t){return t&&t.__esModule?t:{default:t}}var x=function(){},w=function(t,e,n){var i=new x;if("undefined"===typeof t)throw Error("No element to render on was provided.");return i._renderProperties=(0,d.default)(t),i._encodings=[],i._options=b.default,i._errorHandler=new m.default(i),"undefined"!==typeof e&&(n=n||{},n.format||(n.format=M()),i.options(n)[n.format](e,n).render()),i};for(var S in w.getModule=function(t){return r.default[t]},r.default)r.default.hasOwnProperty(S)&&C(r.default,S);function C(t,e){x.prototype[e]=x.prototype[e.toUpperCase()]=x.prototype[e.toLowerCase()]=function(n,i){var r=this;return r._errorHandler.wrapBarcodeCall((function(){i.text="undefined"===typeof i.text?void 0:""+i.text;var o=(0,a.default)(r._options,i);o=(0,f.default)(o);var s=t[e],l=k(n,s,o);return r._encodings.push(l),r}))}}function k(t,e,n){t=""+t;var i=new e(t,n);if(!i.valid())throw new v.InvalidInputException(i.constructor.name,t);var r=i.encode();r=(0,l.default)(r);for(var o=0;o=p?t?"":void 0:(i=l(h,d),i<55296||i>56319||d+1===p||(c=l(h,d+1))<56320||c>57343?t?s(h,d):i:t?u(h,d,d+2):c-56320+(i-55296<<10)+65536)}};t.exports={codeAt:c(!1),charAt:c(!0)}},"65c6":function(t,e,n){"use strict";var i=n("2b0e"),r=n("87e8"),o=n("dde5");e["a"]=i["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,n){var i=n("0b42");t.exports=function(t,e){return new(i(t))(0===e?0:e)}},6642:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return r}));const i={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(i)},"66e5":function(t,e,n){"use strict";var i=n("2b0e"),r=n("b7fa"),o=n("e2fa"),a=n("8716"),s=n("87e8"),l=n("dde5"),u=n("d882"),c=n("d728");e["a"]=i["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(c["a"])(t,13)){Object(u["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,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l}));var i=n("d882"),r=n("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 n=t.substr(0,8),i=t.substring(9);switch(n){case"__q_date":return new Date(i);case"__q_expr":return new RegExp(i);case"__q_numb":return Number(i);case"__q_bool":return Boolean("1"===i);case"__q_strn":return""+i;case"__q_objt":return JSON.parse(i);default:return t}}function s(){const t=()=>null;return{has:()=>!1,getLength:()=>0,getItem:t,getIndex:t,getKey:t,getAll:()=>{},getAllKeys:()=>[],set:i["g"],remove:i["g"],clear:i["g"],isEmpty:()=>!0}}function l(t){const e=window[t+"Storage"],n=t=>{const n=e.getItem(t);return n?a(n):null};return{has:t=>null!==e.getItem(t),getLength:()=>e.length,getItem:n,getIndex:t=>tt{let t;const i={},r=e.length;for(let o=0;o{const t=[],n=e.length;for(let i=0;i{e.setItem(t,o(n))},remove:t=>{e.removeItem(t)},clear:()=>{e.clear()},isEmpty:()=>0===e.length}}},"68ee":function(t,e,n){var i=n("e330"),r=n("d039"),o=n("1626"),a=n("f5df"),s=n("d066"),l=n("8925"),u=function(){},c=[],h=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=i(d.exec),f=!d.exec(u),g=function(t){if(!o(t))return!1;try{return h(u,c,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,n){"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,n){var i=n("cb2d");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},"699e":function(t,e){const n=new Uint8Array(512),i=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)n[e]=t,i[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)n[e]=n[e-255]})(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[i[t]+i[e]]}},"69f3":function(t,e,n){var i,r,o,a=n("7f9a"),s=n("da84"),l=n("e330"),u=n("861d"),c=n("9112"),h=n("1a2d"),d=n("c6cd"),p=n("f772"),f=n("d012"),g="Object already initialized",m=s.TypeError,v=s.WeakMap,y=function(t){return o(t)?r(t):i(t,{})},b=function(t){return function(e){var n;if(!u(e)||(n=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}};if(a||d.state){var _=d.state||(d.state=new v),x=l(_.get),w=l(_.has),S=l(_.set);i=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,i=function(t,e){if(h(t,C))throw new m(g);return e.facade=t,c(t,C,e),e},r=function(t){return h(t,C)?t[C]:{}},o=function(t){return h(t,C)}}t.exports={set:i,get:r,has:o,enforce:y,getterFor:b}},"6a67":function(t,e,n){"use strict";var i=n("2b0e"),r=n("9c40"),o=n("e7a9"),a=n("87e8"),s=n("f89c"),l=n("3d69"),u=n("dde5");e["a"]=i["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,n)=>({slot:e.slot,options:{key:n,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,n){!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",n))}},render(t){const e=this.btnOptions.map((e=>t(r["a"],{...e.options},void 0!==e.slot?Object(u["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(u["a"])(e,this,"default"))}})},"6ac0":function(t,e,n){"use strict";var i=n("2b0e"),r=n("6900"),o=n("87e8");e["a"]=i["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,n){"use strict";var i=n("2b0e"),r=n("87e8"),o=n("dde5");e["a"]=i["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,n){"use strict";n.d(e,"p",(function(){return m})),n.d(e,"G",(function(){return v})),n.d(e,"d",(function(){return y})),n.d(e,"I",(function(){return b})),n.d(e,"J",(function(){return _})),n.d(e,"m",(function(){return x})),n.d(e,"i",(function(){return w})),n.d(e,"r",(function(){return S})),n.d(e,"s",(function(){return C})),n.d(e,"K",(function(){return k})),n.d(e,"u",(function(){return M})),n.d(e,"k",(function(){return O})),n.d(e,"H",(function(){return T})),n.d(e,"N",(function(){return A})),n.d(e,"n",(function(){return I})),n.d(e,"o",(function(){return P})),n.d(e,"F",(function(){return E})),n.d(e,"c",(function(){return L})),n.d(e,"h",(function(){return j})),n.d(e,"t",(function(){return R})),n.d(e,"w",(function(){return B})),n.d(e,"C",(function(){return N})),n.d(e,"D",(function(){return F})),n.d(e,"z",(function(){return z})),n.d(e,"A",(function(){return V})),n.d(e,"E",(function(){return $})),n.d(e,"v",(function(){return H})),n.d(e,"x",(function(){return G})),n.d(e,"y",(function(){return W})),n.d(e,"B",(function(){return U})),n.d(e,"l",(function(){return Y})),n.d(e,"O",(function(){return X})),n.d(e,"P",(function(){return K})),n.d(e,"Q",(function(){return Z})),n.d(e,"S",(function(){return Q})),n.d(e,"M",(function(){return J})),n.d(e,"b",(function(){return tt})),n.d(e,"T",(function(){return et})),n.d(e,"R",(function(){return it})),n.d(e,"f",(function(){return at})),n.d(e,"e",(function(){return st})),n.d(e,"g",(function(){return lt})),n.d(e,"j",(function(){return ut})),n.d(e,"q",(function(){return ct})),n.d(e,"L",(function(){return ht})),n.d(e,"a",(function(){return dt}));var i=n("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,u=s.filter,c=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{i=!1}),e),n=t.apply(this,arguments)),n}},l=n("81e7");function u(t,e,n,o){!0===n.modifiers.stop&&Object(r["k"])(t);const a=n.modifiers.color;let s=n.modifiers.center;s=!0===s||!0===o;const l=document.createElement("span"),u=document.createElement("span"),c=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:c.left-h-m+"px",b=(f-g)/2+"px",_=s?b:c.top-d-m+"px";u.className="q-ripple__inner",Object(i["b"])(u,{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(u),e.appendChild(l);const x=()=>{l.remove(),clearTimeout(w)};n.abort.push(x);let w=setTimeout((()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${v},${b},0) scale3d(1,1,1)`,u.style.opacity=.2,w=setTimeout((()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,w=setTimeout((()=>{l.remove(),n.abort.splice(n.abort.indexOf(x),1)}),275)}),250)}),50)}function c(t,{modifiers:e,value:n,arg:i}){const r=Object.assign({},l["a"].config.ripple,e,n);t.modifiers={early:!0===r.early,stop:!0===r.stop,center:!0===r.center,color:r.color||i,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 n={enabled:!1!==e.value,modifiers:{},abort:[],start(e){!0===n.enabled&&!0!==e.qSkipRipple&&(!0!==a["a"].is.ie||e.clientX>=0)&&e.type===(!0===n.modifiers.early?"pointerdown":"click")&&u(e,t,n,!0===e.qKeyEvent)},keystart:s((e=>{!0===n.enabled&&!0!==e.qSkipRipple&&!0===Object(o["a"])(e,n.modifiers.keyCodes)&&e.type==="key"+(!0===n.modifiers.early?"down":"up")&&u(e,t,n,!0)}),300)};c(n,e),t.__qripple=n,Object(r["a"])(n,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},update(t,e){const n=t.__qripple;void 0!==n&&e.oldValue!==e.value&&(n.enabled=!1!==e.value,!0===n.enabled&&Object(e.value)===e.value&&c(n,e))},unbind(t){void 0===t.__qripple_destroyed?h(t):delete t.__qripple_destroyed}}},7156:function(t,e,n){var i=n("1626"),r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},"721a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n0?(n=0,r.textAlign="left"):"right"==t.textAlign?(n=e.width-1,r.textAlign="right"):(n=e.width/2,r.textAlign="center"),r.fillText(e.text,n,i))}},{key:"moveCanvasDrawing",value:function(t){var e=this.canvas.getContext("2d");e.translate(t.width,0)}},{key:"restoreCanvas",value:function(){var t=this.canvas.getContext("2d");t.restore()}}]),t}();e.default=u},"726e":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d}));var i=12,r="sans-serif",o=i+"px "+r,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n=0)u=l*n.length;else for(var d=0;dc.includes(t)},to:[String,Object],replace:Boolean},inject:{__qFab:{default(){return{showing:!0,__onChildClick:s["g"]}}}},computed:{classes(){const t=u[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,n){"use strict";var i=n("ebb5"),r=n("81d5"),o=n("f495"),a=n("f5df"),s=n("c65b"),l=n("e330"),u=n("d039"),c=i.aTypedArray,h=i.exportTypedArrayMethod,d=l("".slice),p=u((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));h("fill",(function(t){var e=arguments.length;c(this);var n="Big"===d(a(this),0,3)?o(t):+t;return s(r,this,n,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,n){"use strict";var i=n("2b0e"),r=n("0016"),o=n("3d69"),a=n("87e8"),s=n("d882"),l=n("dde5"),u=n("d728");let c=0;e["a"]=i["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_"+c++},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(u["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,n=[],i=t("div",{staticClass:"q-tab__indicator",class:this.tabs.indicatorClass});void 0!==this.icon&&n.push(t(r["a"],{staticClass:"q-tab__icon",props:{name:this.icon}})),void 0!==this.label&&n.push(t("div",{staticClass:"q-tab__label"},[this.label])),!1!==this.alert&&n.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&&n.push(i);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"])(n,this,"default"))];return!1===e&&o.push(i),o},__renderTab(t,e){const n={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,{...n,nativeOn:this.onEvents,props:this.routerTabLinkProps,scopedSlots:{default:({href:e,isActive:n,isExactActive:i})=>t("a",{class:{[this.activeClass]:n,[this.exactActiveClass]:i},attrs:{...this.linkProps.attrs,href:e}},this.__getContent(t))}}):(!0===this.hasLink&&(Object.assign(n.attrs,this.linkProps.attrs),n.props=this.linkProps.props),n.on=this.onEvents,t(e,n,this.__getContent(t)))}},mounted(){this.__recalculateScroll()},beforeDestroy(){this.__recalculateScroll()},render(t){return this.__renderTab(t,"div")}})},"74af":function(t,e,n){"use strict";n("caad");var i=n("2b0e"),r=n("0016"),o=n("87e8"),a=n("dde5");e["a"]=i["a"].extend({name:"QTimelineEntry",inject:{__timeline:{default(){console.error("QTimelineEntry needs to be child of QTimeline")}}},mixins:[o["a"]],props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:t=>["left","right"].includes(t)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},computed:{colorClass(){return`text-${this.color||this.__timeline.color}`},classes(){return`q-timeline__entry--${this.side}`+(void 0!==this.icon||void 0!==this.avatar?" q-timeline__entry--icon":"")},reverse(){return"comfortable"===this.__timeline.layout&&"left"===this.__timeline.side}},render(t){const e=Object(a["d"])(this,"default",[]);if(void 0!==this.body&&e.unshift(this.body),!0===this.heading){const n=[t("div"),t("div"),t(this.tag,{staticClass:"q-timeline__heading-title"},e)];return t("div",{staticClass:"q-timeline__heading",on:{...this.qListeners}},!0===this.reverse?n.reverse():n)}let n;void 0!==this.icon?n=[t(r["a"],{staticClass:"row items-center justify-center",props:{name:this.icon}})]:void 0!==this.avatar&&(n=[t("img",{staticClass:"q-timeline__dot-img",domProps:{src:this.avatar}})]);const i=[t("div",{staticClass:"q-timeline__subtitle"},[t("span",Object(a["c"])(this,"subtitle",[this.subtitle]))]),t("div",{staticClass:"q-timeline__dot",class:this.colorClass},n),t("div",{staticClass:"q-timeline__content"},[t("h6",{staticClass:"q-timeline__title"},Object(a["c"])(this,"title",[this.title]))].concat(e))];return t("li",{staticClass:"q-timeline__entry",class:this.classes,on:{...this.qListeners}},!0===this.reverse?i.reverse():i)}})},"74e8":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("c65b"),a=n("83ab"),s=n("8aa7"),l=n("ebb5"),u=n("621a"),c=n("19aa"),h=n("5c6c"),d=n("9112"),p=n("eac5"),f=n("50c4"),g=n("0b25"),m=n("182d"),v=n("a04b"),y=n("1a2d"),b=n("f5df"),_=n("861d"),x=n("d9b5"),w=n("7c73"),S=n("3a9b"),C=n("d2bb"),k=n("241c").f,M=n("a078"),O=n("b727").forEach,T=n("2626"),A=n("9bf2"),I=n("06cf"),P=n("69f3"),E=n("7156"),D=P.get,L=P.set,j=P.enforce,R=A.f,B=I.f,N=Math.round,F=r.RangeError,z=u.ArrayBuffer,V=z.prototype,q=u.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 n=0,i=e.length,r=new t(i);while(i>n)r[n]=e[n++];return r},Q=function(t,e){R(t,e,{get:function(){return D(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)},nt=function(t,e,n){return e=v(e),!(tt(t,e)&&_(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?R(t,e,n):(t[e]=n.value,t)};a?($||(I.f=et,A.f=nt,Q(W,"buffer"),Q(W,"byteOffset"),Q(W,"byteLength"),Q(W,"length")),i({target:"Object",stat:!0,forced:!$},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var a=t.match(/\d+$/)[0]/8,l=t+(n?"Clamped":"")+"Array",u="get"+t,h="set"+t,p=r[l],v=p,y=v&&v.prototype,b={},x=function(t,e){var n=D(t);return n.view[u](e*a+n.byteOffset,!0)},S=function(t,e,i){var r=D(t);n&&(i=(i=N(i))<0?0:i>255?255:255&i),r.view[h](e*a+r.byteOffset,i,!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,n,i){return c(t,y),E(function(){return _(e)?J(e)?void 0!==i?new p(e,m(n,a),i):void 0!==n?new p(e,m(n,a)):new p(e):Y(e)?Z(v,e):o(M,v,e):new p(g(e))}(),t,v)})),C&&C(v,G),O(k(p),(function(t){t in v||d(v,t,p[t])})),v.prototype=y):(v=e((function(t,e,n,i){c(t,y);var r,s,l,u=0,h=0;if(_(e)){if(!J(e))return Y(e)?Z(v,e):o(M,v,e);r=e,h=m(n,a);var d=e.byteLength;if(void 0===i){if(d%a)throw F(K);if(s=d-h,s<0)throw F(K)}else if(s=f(i)*a,s+h>d)throw F(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(u{this.transitionState=t}))}},computed:{transition(){return"q-transition--"+(!0===this.transitionState?this.transitionHide:this.transitionShow)}}}},"75c3":function(t,e,n){"use strict";var i=n("0967"),r=n("3627"),o=n("d882"),a=n("2248");function s(t,e,n){const i=Object(o["h"])(t);let r,a=i.left-e.event.x,s=i.top-e.event.y,l=Math.abs(a),u=Math.abs(s);const c=e.direction;!0===c.horizontal&&!0!==c.vertical?r=a<0?"left":"right":!0!==c.horizontal&&!0===c.vertical?r=s<0?"up":"down":!0===c.up&&s<0?(r="up",l>u&&(!0===c.left&&a<0?r="left":!0===c.right&&a>0&&(r="right"))):!0===c.down&&s>0?(r="down",l>u&&(!0===c.left&&a<0?r="left":!0===c.right&&a>0&&(r="right"))):!0===c.left&&a<0?(r="left",l0&&(r="down"))):!0===c.right&&a>0&&(r="right",l0&&(r="down")));let h=!1;if(void 0===r&&!1===n){if(!0===e.event.isFirst||void 0===e.event.lastDir)return{};r=e.event.lastDir,h=!0,"left"===r||"right"===r?(i.left-=a,l=0,a=0):(i.top-=s,u=0,s=0)}return{synthetic:h,payload:{evt:t,touch:!0!==e.event.mouse,mouse:!0===e.event.mouse,position:i,direction:r,isFirst:e.event.isFirst,isFinal:!0===n,duration:Date.now()-e.event.time,distance:{x:l,y:u},offset:{x:a,y:s},delta:{x:i.left-e.event.lastX,y:i.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===i["a"].is.firefox&&Object(o["j"])(t,!1),void 0!==e.styleCleanup&&e.styleCleanup(),delete t.__qtouchpan)}let u=0;e["a"]={name:"touch-pan",bind(t,{value:e,modifiers:n}){if(void 0!==t.__qtouchpan&&(l(t),t.__qtouchpan_destroyed=!0),!0!==n.mouse&&!0!==i["a"].has.touch)return;function c(t,e){!0===n.mouse&&!0===e?Object(o["l"])(t):(!0===n.stop&&Object(o["k"])(t),!0===n.prevent&&Object(o["i"])(t))}const h={uid:"qvtp_"+u++,handler:e,modifiers:n,direction:Object(r["a"])(n),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===i["a"].is.firefox&&Object(o["j"])(t,!0),h.lastEvt=e;const a=Object(o["h"])(e);if(!0===r||!0===n.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,i=()=>{c(t,e),!0!==n.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!==n.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&&c(t,h.event.mouse);const{payload:e,synthetic:n}=s(t,h,!1);return void(void 0!==e&&(!1===h.handler(e)?h.end(t):(void 0===h.styleCleanup&&!0===h.event.isFirst&&i(),h.event.lastX=e.position.left,h.event.lastY=e.position.top,h.event.lastDir=!0===n?void 0:e.direction,h.event.isFirst=!1)))}if(!0===h.direction.all||!0===e&&!0===h.modifiers.mouseAllDir)return i(),h.event.detected=!0,void h.move(t);const r=Object(o["h"])(t),l=r.left-h.event.x,u=r.top-h.event.y,d=Math.abs(l),p=Math.abs(u);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,n){if(void 0!==h.event){if(Object(o["b"])(h,"temp"),!0===i["a"].is.firefox&&Object(o["j"])(t,!1),!0===n)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),n=()=>{h.handler(t)};void 0!==h.styleCleanup?h.styleCleanup(n):n()}h.event=void 0,h.initialEvent=void 0,h.lastEvt=void 0}}};t.__qtouchpan=h,!0===n.mouse&&Object(o["a"])(h,"main",[[t,"mousedown","mouseStart","passive"+(!0===n.mouseCapture?"Capture":"")]]),!0===i["a"].has.touch&&Object(o["a"])(h,"main",[[t,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[t,"touchmove","noop","notPassiveCapture"]])},update(t,{oldValue:e,value:n}){const i=t.__qtouchpan;void 0!==i&&e!==n&&("function"!==typeof n&&i.end(),i.handler=n)},unbind(t){void 0===t.__qtouchpan_destroyed?l(t):delete t.__qtouchpan_destroyed}}},"77a7":function(t,e){var n=Array,i=Math.abs,r=Math.pow,o=Math.floor,a=Math.log,s=Math.LN2,l=function(t,e,l){var u,c,h,d=n(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=i(t),t!=t||t===1/0?(c=t!=t?1:0,u=f):(u=o(a(t)/s),h=r(2,-u),t*h<1&&(u--,h*=2),t+=u+g>=1?m/h:m*r(2,1-g),t*h>=2&&(u++,h/=2),u+g>=f?(c=0,u=f):u+g>=1?(c=(t*h-1)*r(2,e),u+=g):(c=t*r(2,g-1)*r(2,e),u=0));while(e>=8)d[y++]=255&c,c/=256,e-=8;u=u<0)d[y++]=255&u,u/=256,p-=8;return d[--y]|=128*v,d},u=function(t,e){var n,i=t.length,o=8*i-e-1,a=(1<>1,l=o-7,u=i-1,c=t[u--],h=127&c;c>>=7;while(l>0)h=256*h+t[u--],l-=8;n=h&(1<<-l)-1,h>>=-l,l+=e;while(l>0)n=256*n+t[u--],l-=8;if(0===h)h=1-s;else{if(h===a)return n?NaN:c?-1/0:1/0;n+=r(2,e),h-=s}return(c?-1:1)*n*r(2,h-e)};t.exports={pack:l,unpack:u}},"77d9":function(t,e,n){n("1d02")},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"784f":function(t,e,n){!function(e,n){t.exports=n()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){var i=n(2);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n(5).default)("7341b954",i,!0,{})},function(t,e,n){"use strict";var i=n(0);n.n(i).a},function(t,e,n){(t.exports=n(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,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,i=t[1]||"",r=t[3];if(!r)return i;if(e&&"function"==typeof btoa){var o=(n=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[i].concat(a).concat([o]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},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,n,e),value:t}},getCodeByArea:function(t){for(var e={},n=Object.keys(this.areas),i=0;i1?(i.forEach((function(t,i){(2===e.length&&t.slice(0,2)===e||4===e.length&&t.slice(0,4)!==e)&&(n=i)})),i[n]):i[0]},getAreaCode:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(var i in this.districts)for(var r in this.districts[i])if(t===this.districts[i][r]){if(e.length>0){var o=r;if(e){var a="city"===n?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 n in this.districts[e])if(t===parseInt(n))return this.districts[e][n]},getDistricts:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e5;return this.districts[t]||[]},determineValue:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return e===n?[]:this.getDistricts(this.getAreaCode(e,i,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)}}};n(1);var o=function(t,e,n,i,r,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._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)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.wrapper},["mobile"!==t.type?[n("label",[n("select",{directives:[{name:"model",rawName:"v-model",value:t.currentProvince,expression:"currentProvince"}],attrs:{disabled:t.disabled||t.provinceDisabled},on:{change:[function(e){var n=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?n:n[0]},t.getCities]}},[n("option",{domProps:{value:t.placeholders.province}},[t._v(t._s(t.placeholders.province))]),t._v(" "),t._l(t.provinces,(function(e,i){return n("option",{key:i,domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])}))],2)]),t._v(" "),t.onlyProvince?t._e():[n("label",[n("select",{directives:[{name:"model",rawName:"v-model",value:t.currentCity,expression:"currentCity"}],attrs:{disabled:t.disabled||t.cityDisabled},on:{change:[function(e){var n=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?n:n[0]},t.getAreas]}},[n("option",{domProps:{value:t.placeholders.city}},[t._v(t._s(t.placeholders.city))]),t._v(" "),t._l(t.cities,(function(e,i){return n("option",{key:i,domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])}))],2)]),t._v(" "),n("label",[t.hideArea?t._e():n("select",{directives:[{name:"model",rawName:"v-model",value:t.currentArea,expression:"currentArea"}],attrs:{disabled:t.disabled||t.areaDisabled},on:{change:function(e){var n=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?n:n[0]}}},[n("option",{domProps:{value:t.placeholders.area}},[t._v(t._s(t.placeholders.area))]),t._v(" "),t._l(t.areas,(function(e,i){return n("option",{key:i,domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])}))],2)])]]:[n("div",{class:t.addressHeader},[n("ul",[n("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?n("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?n("li",{class:{active:3===t.tab}},[t._v(t._s(t.currentArea&&!t.staticPlaceholder?t.currentArea:t.placeholders.area))]):t._e()]],2)]),t._v(" "),n("div",{class:t.addressContainer},[1===t.tab?n("ul",t._l(t.provinces,(function(e,i){return n("li",{key:i,class:{active:e===t.currentProvince},on:{click:function(n){return t.chooseProvince(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),0):t._e(),t._v(" "),t.onlyProvince?t._e():[2===t.tab?n("ul",t._l(t.cities,(function(e,i){return n("li",{key:i,class:{active:e===t.currentCity},on:{click:function(n){return t.chooseCity(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),0):t._e(),t._v(" "),3!==t.tab||t.hideArea?t._e():n("ul",t._l(t.areas,(function(e,i){return n("li",{key:i,class:{active:e===t.currentArea},on:{click:function(n){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,n){"use strict";function i(t,e){for(var n=[],i={},r=0;rn.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r{const{route:i}=this.$router.resolve(t,this.$route,e),r=t===this.to&&e===this.append?this.__checkActivation:h["g"];this.$router[!0===n?"replace":"push"](i,(()=>{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:n,location:i,route:r}=this.$router.resolve(this.to,e,this.append),o=void 0!==r.redirectedFrom,a=u(e,r),s=!0===this.exact?u:c,l={name:this.name,selected:t,exact:this.exact,priorityMatched:r.matched.length,priorityHref:n.length};(!0===a||!0!==this.exact&&!0===c(e,r))&&this.__activateRoute({...l,redirected:o,exact:!0===this.exact||!0===a}),!0===o&&!0===s(e,{path:r.redirectedFrom,...i})&&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 n={N1:3,N2:3,N3:40,N4:10};function i(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(n+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return n*i%2+n*i%3===0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%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 i=0,r=0,o=0,a=null,s=null;for(let l=0;l=5&&(i+=n.N1+(r-5)),a=e,r=1),e=t.get(u,l),e===s?o++:(o>=5&&(i+=n.N1+(o-5)),s=e,o=1)}r>=5&&(i+=n.N1+(r-5)),o>=5&&(i+=n.N1+(o-5))}return i},e.getPenaltyN2=function(t){const e=t.size;let i=0;for(let n=0;n=10&&(1488===r||93===r)&&i++,o=o<<1&2047|t.get(a,n),a>=10&&(1488===o||93===o)&&i++}return i*n.N3},e.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let n=0;n=1024&&e=e?i:new Array(e-i.length+1).join(n)+i}},"79f1":function(t,e,n){"use strict";function i(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return s})),n.d(e,"j",(function(){return u})),n.d(e,"q",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"i",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"l",(function(){return v})),n.d(e,"n",(function(){return b})),n.d(e,"m",(function(){return _})),n.d(e,"o",(function(){return x})),n.d(e,"k",(function(){return w})),n.d(e,"d",(function(){return S})),n.d(e,"f",(function(){return C})),n.d(e,"g",(function(){return k})),n.d(e,"c",(function(){return M}));var i=n("6d8b"),r=n("41ef"),o=n("22d1"),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=Object(r["g"])(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function u(t){return t-l}function c(t){return a(1e3*t)/1e3}function h(t){return a(1e4*t)/1e4}function d(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+h(t[4])+","+h(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[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(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function k(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i["a"],o=Object(i["P"])(t.scaleX,1),s=Object(i["P"])(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),r&&c.push("rotate("+r+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*i["a"])+"deg, "+a(u*i["a"])+"deg)"),c.join(" ")}var M=function(){return o["a"].hasGlobalWindow&&Object(i["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,n("1c35").Buffer)},"7a43":function(t,e){function n(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){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,i){if(e.isValid(t))return t;try{return n(t)}catch(r){return i}}},"7a77":function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},"7aac":function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.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,n){var i=n("1d80"),r=Object;t.exports=function(t){return r(i(t))}},"7b1d":function(t,e,n){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var i=n("1c0b");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,n){var i=n("fc6a"),r=n("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(i(t))}},"06cf":function(t,e,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;e.f=i?c:function(t,e){if(t=a(t),e=s(e,!0),u)try{return c(t,e)}catch(n){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},"0cb2":function(t,e,n){var i=n("7b0b"),r=Math.floor,o="".replace,a=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;t.exports=function(t,e,n,l,u,c){var h=n+t.length,d=l.length,p=s;return void 0!==u&&(u=i(u),p=a),o.call(c,p,(function(i,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(h);case"<":a=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return i;if(s>d){var c=r(s/10);return 0===c?i:c<=d?void 0===l[c-1]?o.charAt(1):l[c-1]+o.charAt(1):i}a=l[s-1]}return void 0===a?"":a}))}},"0cfb":function(t,e,n){var i=n("83ab"),r=n("d039"),o=n("cc12");t.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"14c3":function(t,e,n){var i=n("c6b6"),r=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"1be4":function(t,e,n){var i=n("d066");t.exports=i("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,n){var i=n("d039"),r=n("b622"),o=n("2d00"),a=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,n){var i=n("a691"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"23e7":function(t,e,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),u=n("94ca");t.exports=function(t,e){var n,c,h,d,p,f,g=t.target,m=t.global,v=t.stat;if(c=m?i:v?i[g]||s(g,{}):(i[g]||{}).prototype,c)for(h in e){if(p=e[h],t.noTargetGet?(f=r(c,h),d=f&&f.value):d=c[h],n=u(m?h:g+(v?".":"#")+h,t.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&o(p,"sham",!0),a(c,h,p,t)}}},"241c":function(t,e,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},"25f0":function(t,e,n){"use strict";var i=n("6eeb"),r=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",l=RegExp.prototype,u=l[s],c=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),h=u.name!=s;(c||h)&&i(RegExp.prototype,s,(function(){var t=r(this),e=String(t.source),n=t.flags,i=String(void 0===n&&t instanceof RegExp&&!("flags"in l)?a.call(t):n);return"/"+e+"/"+i}),{unsafe:!0})},2626:function(t,e,n){"use strict";var i=n("d066"),r=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=i(t),n=r.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},"2d00":function(t,e,n){var i,r,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,u=l&&l.v8;u?(i=u.split("."),r=i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),t.exports=r&&+r},"342f":function(t,e,n){var i=n("d066");t.exports=i("navigator","userAgent")||""},"37e8":function(t,e,n){var i=n("83ab"),r=n("9bf2"),o=n("825a"),a=n("df75");t.exports=i?Object.defineProperties:function(t,e){o(t);var n,i=a(e),s=i.length,l=0;while(s>l)r.f(t,n=i[l++],e[n]);return t}},"3bbe":function(t,e,n){var i=n("861d");t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var i=n("6547").charAt,r=n("69f3"),o=n("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),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=i(n,r),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,n){var i=n("da84");t.exports=i},"44ad":function(t,e,n){var i=n("d039"),r=n("c6b6"),o="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var i=n("b622"),r=n("7c73"),o=n("9bf2"),a=i("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,n){var i=n("861d"),r=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==r(t))}},4930:function(t,e,n){var i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"4d63":function(t,e,n){var i=n("83ab"),r=n("da84"),o=n("94ca"),a=n("7156"),s=n("9bf2").f,l=n("241c").f,u=n("44e7"),c=n("ad6d"),h=n("9f7f"),d=n("6eeb"),p=n("d039"),f=n("69f3").set,g=n("2626"),m=n("b622"),v=m("match"),y=r.RegExp,b=y.prototype,_=/a/g,x=/a/g,w=new y(_)!==_,S=h.UNSUPPORTED_Y,C=i&&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 n,i=this instanceof k,r=u(t),o=void 0===e;if(!i&&r&&t.constructor===k&&o)return t;w?r&&!o&&(t=t.source):t instanceof k&&(o&&(e=c.call(t)),t=t.source),S&&(n=!!e&&e.indexOf("y")>-1,n&&(e=e.replace(/y/g,"")));var s=a(w?new y(t,e):y(t,e),i?this:b,k);return S&&n&&f(s,{sticky:n}),s},M=function(t){t in k||s(k,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},O=l(y),T=0;while(O.length>T)M(O[T++]);b.constructor=k,k.prototype=b,d(r,"RegExp",k)}g("RegExp")},"4d64":function(t,e,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),c=o(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"50c4":function(t,e,n){var i=n("a691"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5319:function(t,e,n){"use strict";var i=n("d784"),r=n("825a"),o=n("50c4"),a=n("a691"),s=n("1d80"),l=n("8aa5"),u=n("0cb2"),c=n("14c3"),h=Math.max,d=Math.min,p=function(t){return void 0===t?t:String(t)};i("replace",2,(function(t,e,n,i){var f=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=i.REPLACE_KEEPS_$0,m=f?"$":"$0";return[function(n,i){var r=s(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,i){if(!f&&g||"string"===typeof i&&-1===i.indexOf(m)){var s=n(e,t,this,i);if(s.done)return s.value}var v=r(t),y=String(this),b="function"===typeof i;b||(i=String(i));var _=v.global;if(_){var x=v.unicode;v.lastIndex=0}var w=[];while(1){var S=c(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,O=0;O=M&&(k+=y.slice(M,A)+L,M=A+T.length)}return k+y.slice(M)}]}))},5692:function(t,e,n){var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.0",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var i=n("d066"),r=n("241c"),o=n("7418"),a=n("825a");t.exports=i("Reflect","ownKeys")||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(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,n){var i=n("a691"),r=n("1d80"),o=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(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,n){var i=n("861d"),r=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return r(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var i,r,o,a=n("7f9a"),s=n("da84"),l=n("861d"),u=n("9112"),c=n("5135"),h=n("c6cd"),d=n("f772"),p=n("d012"),f=s.WeakMap,g=function(t){return o(t)?r(t):i(t,{})},m=function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var v=h.state||(h.state=new f),y=v.get,b=v.has,_=v.set;i=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,i=function(t,e){return e.facade=t,u(t,x,e),e},r=function(t){return c(t,x)?t[x]:{}},o=function(t){return c(t,x)}}t.exports={set:i,get:r,has:o,enforce:g,getterFor:m}},"6eeb":function(t,e,n){var i=n("da84"),r=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),u=l.get,c=l.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var l,u=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||r(n,"name",e),l=c(n),l.source||(l.source=h.join("string"==typeof e?e:""))),t!==i?(u?!p&&t[e]&&(d=!0):delete t[e],d?t[e]=n:r(t,e,n)):d?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},7156:function(t,e,n){var i=n("861d"),r=n("d2bb");t.exports=function(t,e,n){var o,a;return r&&"function"==typeof(o=e.constructor)&&o!==n&&i(a=o.prototype)&&a!==n.prototype&&r(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var i=n("428f"),r=n("5135"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=i.Symbol||(i.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,n){var i=n("1d80");t.exports=function(t){return Object(i(t))}},"7c73":function(t,e,n){var i,r=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),h=">",d="<",p="prototype",f="script",g=c("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=u("iframe"),n="java"+f+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F},_=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}_=i?y(i):b();var t=a.length;while(t--)delete _[p][a[t]];return _()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[p]=r(t),n=new m,m[p]=null,n[g]=t):n=_(),void 0===e?n:o(n,e)}},"7dd0":function(t,e,n){"use strict";var i=n("23e7"),r=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),u=n("6eeb"),c=n("b622"),h=n("c430"),d=n("3f8c"),p=n("ae93"),f=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=c("iterator"),v="keys",y="values",b="entries",_=function(){return this};t.exports=function(t,e,n,c,p,x,w){r(n,e,c);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 n(this,t)};case y:return function(){return new n(this,t)};case b:return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",T=!1,A=t.prototype,I=A[m]||A["@@iterator"]||p&&A[p],P=!g&&I||M(p),E="Array"==e&&A.entries||I;if(E&&(S=o(E.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,O,!0,!0),h&&(d[O]=_))),p==y&&I&&I.name!==y&&(T=!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||T||!(k in A))&&u(A,k,C[k]);else i({target:e,proto:!0,forced:g||T},C);return C}},"7f9a":function(t,e,n){var i=n("da84"),r=n("8925"),o=i.WeakMap;t.exports="function"===typeof o&&/native code/.test(r(o))},"825a":function(t,e,n){var i=n("861d");t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var i=n("d039");t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var i=n("c04e"),r=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=i(e);a in t?r.f(t,a,o(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var i,r,o;(function(n,a){r=[],i=a,o="function"===typeof i?i.apply(e,r):i,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 n,i,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(p.stack)||a.exec(p.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*