this.ht=this.ht||{},this.ht.vector=function(){"use strict";function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var o=0;oe.length)&&(t=e.length);for(var o=0,a=new Array(t);oi;)!et(a,o=t[i++])||~ao(n,o)||io(n,o);return n},ro=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lo=Object.keys||function(e){return no(e,ro)},de={f:ae&&!Ie?Object.defineProperties:function(e,t){gt(e);for(var o,a=At(t),i=lo(t),n=i.length,r=0;r"+e+""},po=function(){try{Z=new ActiveXObject("htmlfile")}catch(e){}po="undefined"==typeof document||document.domain&&Z?j(Z):(e=ie("iframe"),t="java"+co+":",e.style.display="none",uo.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(fo("document.F=Object")),t.close(),t.F);for(var e,t,o=ro.length;o--;)delete po[ho][ro[o]];return po()},$=(Vt[go]=!0,Object.create||function(e,t){var o;return null!==e?(N[ho]=gt(e),o=new N,N[ho]=null,o[go]=e):o=po(),void 0===t?o:so.f(o,t)}),Ie=!b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),vo=o("IE_PROTO"),yo=Object,xo=yo.prototype,de=Ie?yo.getPrototypeOf:function(e){var t,e=qe(e);return et(e,vo)?e[vo]:(t=e.constructor,K(t)&&e instanceof t?t.prototype:e instanceof yo?xo:null)},mo=$,bo=de,wo=function(e,t,o,a){return a&&a.enumerable?e[t]=o:Tt(e,t,o),e},ko=se("iterator"),t=!1;[].keys&&("next"in(o=[].keys())?(Ie=bo(bo(o)))!==Object.prototype&&(Co=Ie):t=!0);var Co=!ee(Co)||b(function(){var e={};return Co[ko].call(e)!==e})?{}:mo(Co),$=(K(Co[ko])||wo(Co,ko,function(){return this}),{IteratorPrototype:Co,BUGGY_SAFARI_ITERATORS:t}),de={};de[se("toStringTag")]="z";function To(){return this}function Vo(){return this}var Do,Io="[object z]"===String(de),So=se("toStringTag"),Lo=Object,Bo="Arguments"==D(function(){return arguments}()),Ro=Io?D:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Lo(e),So))?t:Bo?D(e):"Object"==(t=D(e))&&K(e.callee)?"Arguments":t},Po=Io?{}.toString:function(){return"[object "+Ro(this)+"]"},Ao=wt.f,_o=se("toStringTag"),o=$,Mo=function(e,t,o,a){e&&(o=o?e:e.prototype,et(o,_o)||Ao(o,_o,{configurable:!0,value:t}),a)&&!Io&&Tt(o,"toString",Po)},Oo={},Eo=o.IteratorPrototype,Ho=String,Wo=TypeError,Fo=function(e,t,o){try{return a(Ce(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}},No=function(e){if("object"==typeof e||K(e))return e;throw Wo("Can't set "+Ho(e)+" as a prototype")},Ie=Object.setPrototypeOf||("__proto__"in{}?function(){var o,a=!1,e={};try{(o=Fo(Object.prototype,"__proto__","set"))(e,[]),a=e instanceof Array}catch(e){}return function(e,t){return gt(e),No(t),a?o(e,t):e.__proto__=t,e}}():void 0),v=function(e,t){var o,a,i,n,r,l,s=e.target,u=e.global,h=e.stat,c=e.proto,d=u?p:h?p[s]:(p[s]||{}).prototype,g=u?ue:ue[s]||Tt(ue,s,{})[s],f=g.prototype;for(a in t)r=!(o=Gt(u?a:s+(h?".":"#")+a,e.forced))&&d&&et(d,a),n=g[a],r&&(l=e.dontCallGetSet?(l=Yt(d,a))&&l.value:d[a]),i=r&&l?l:t[a],r&&typeof n==typeof i||(r=e.bind&&r?Ut(i,p):e.wrap&&r?W(i):c&&K(i)?Ft(i):i,(e.sham||i&&i.sham||n&&n.sham)&&Tt(r,"sham",!0),Tt(g,a,r),c&&(et(ue,n=s+"Prototype")||Tt(ue,n,{}),Tt(ue[n],a,i),e.real)&&f&&(o||!f[a])&&Tt(f,a,i))},jo=function(e,t,o,a){t+=" Iterator";return e.prototype=mo(Eo,{next:kt(+!a,o)}),Mo(e,t,!1,!0),Oo[t]=To,e},zo=Ie,Go=k.PROPER,Uo=o.BUGGY_SAFARI_ITERATORS,Yo=se("iterator"),Xo="values",Zo="entries",t=function(){},de=e,$=function(e,t,o,a,i,n,r){jo(o,t,a);function l(e){if(e===i&&g)return g;if(!Uo&&e in c)return c[e];switch(e){case"keys":case Xo:case Zo:return function(){return new o(this,e)}}return function(){return new o(this)}}var s,u,a=t+" Iterator",h=!1,c=e.prototype,d=c[Yo]||c["@@iterator"]||i&&c[i],g=!Uo&&d||l(i),f="Array"==t&&c.entries||d;if(f&&(f=bo(f.call(new e)))!==Object.prototype&&f.next&&(Mo(f,a,!0,!0),Oo[a]=Vo),Go&&i==Xo&&d&&d.name!==Xo&&(h=!0,g=function(){return Te(d,this)}),i)if(s={values:l(Xo),keys:n?g:l("keys"),entries:l(Zo)},r)for(u in s)!Uo&&!h&&u in c||wo(c,u,s[u]);else v({target:t,proto:!0,forced:Uo||h},s);return r&&c[Yo]!==g&&wo(c,Yo,g,{name:i}),Oo[t]=g,s},qo=function(e,t){return{value:e,done:t}},Ko="Array Iterator",Jo=de.set,$o=de.getterFor(Ko),Ie=($(Array,"Array",function(e,t){Jo(this,{type:Ko,target:At(e),index:0,kind:t})},function(){var e=$o(this),t=e.target,o=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,qo(void 0,!0)):qo("keys"==o?a:"values"==o?t[a]:[a,t[a]],!1)},"values"),Oo.Arguments=Oo.Array,t(),t(),t(),{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Qo=se("toStringTag");for(Do in Ie){var ea=p[Do],ea=ea&&ea.prototype;ea&&Ro(ea)!==Qo&&Tt(ea,Qo,Do),Oo[Do]=Oo.Array}{var k=Array.isArray||function(e){return"Array"==D(e)},ta=a(Function.toString);K(Se.inspectSource)||(Se.inspectSource=function(e){return ta(e)});var o,oa=o=Se.inspectSource,aa=function(){},ia=[],na=pe("Reflect","construct"),ra=/^\s*(?:class|function)\b/,la=a(ra.exec),sa=!ra.exec(aa),ua=function(e){if(!K(e))return!1;try{return na(aa,ia,e),!0}catch(e){return!1}},e,Ie=((e=function(e){if(!K(e))return!1;switch(Ro(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return sa||!!la(ra,oa(e))}catch(e){return!0}}).sham=!0,!na||b(function(){var e;return ua(ua.call)||!ua(Object)||!ua(function(){e=!0})||e})?e:ua),ha=k,ca=Ie,da=se("species"),ga=Array,fa=function(e){var t;return void 0===(t=ha(e)&&(t=e.constructor,ca(t)&&(t===ga||ha(t.prototype))||ee(t)&&null===(t=t[da]))?void 0:t)?ga:t},pa=function(e,t){return new(fa(e))(0===t?0:t)},va=a([].push),o,e,k,Ie=function(e,t){var o=[][e];return!!o&&b(function(){o.call(null,t||function(){return 1},1)})},ya=(k=e={forEach:(o=function(d){var g=1==d,f=2==d,p=3==d,v=4==d,y=6==d,x=7==d,m=5==d||y;return function(e,t,o,a){for(var i,n,r=qe(e),l=P(r),s=Ut(t,o),u=oo(l),h=0,t=a||pa,c=g?t(e,u):f||x?t(e,0):void 0;h>>0||(Pa(Ra,e)?16:10))}:Sa,Aa=(v({global:!0,forced:parseInt!=La},{parseInt:La}),ue.parseInt),La="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,n=a([].slice),_a=TypeError,Ma=n,Oa=function(e,t){if(el,a=K(e)?e:Ea(e),i=o?Ma(arguments,l):[],e=o?function(){jt(a,this,i)}:a;return r?n(e,t):n(e)}:n})(p.setInterval,!0),n=(v({global:!0,bind:!0,forced:p.setInterval!==n},{setInterval:n}),La(p.setTimeout,!0))}v({global:!0,bind:!0,forced:p.setTimeout!==n},{setTimeout:n});var Wa=ue.setTimeout,Fa=se("species"),Na=function(e,t,o){t=ft(t);t in e?wt.f(e,t,kt(0,o)):e[t]=o},La=function(t){return 51<=ge||!b(function(){var e=[];return(e.constructor={})[Fa]=function(){return{foo:1}},1!==e[t](Boolean).foo})},n=La("slice"),ja=se("species"),za=Array,Ga=Math.max;v({target:"Array",proto:!0,forced:!n},{slice:function(e,t){var o,a,i,n=At(this),r=oo(n),l=to(e,r),s=to(void 0===t?r:t,r);if(ha(n)&&(o=n.constructor,(o=ca(o)&&(o===za||ha(o.prototype))||ee(o)&&null===(o=o[ja])?void 0:o)===za||void 0===o))return Ma(n,l,s);for(a=new(void 0===o?za:o)(Ga(s-l,0)),i=0;lo?g?(i.push(g),g="",x--):(d=Sn(v[x],o,t),Array.prototype.push.apply(i,Me(d).call(d,0,d.length-1)),g=d[d.length-1]):g=h.width===o?(i.push(u),""):u:g=h.width>o?(d=Sn(u,o,t),Array.prototype.push.apply(i,Me(d).call(d,0,d.length-1)),d[d.length-1]):u;g&&i.push(g)}}return i}function Hi(e,t,o,a,i,n){return e?(t=t&&new Yi(t),e.pressed?a||(i&&t&&0!==t.a?ht.Default.darker(t,Ui.activeDarker):n?null:Ui.emptyColor):e.hover?o||(i&&t&&0!==t.a?ht.Default.darker(t,Ui.hoverDarker):n?null:Ui.emptyColor):t?t.getRGBA():n?null:Ui.emptyColor):t}var Wi,Fi,Ni=e("Array").reduce,ji=Array.prototype,zi=function(e){var t=e.reduce;return e===ji||ve(ji,e)&&t===ji.reduce?Ni:t},Gi={HOVER:"ht.hover",ACTIVE:"ht.active",PRESSED:"ht.pressed",DISABLED:"ht.disabled",FOCUS:"ht.focus",FONT_SIZE:"ht.fontSize",FONT_FAMILY:"ht.fontFamily",FONT:"ht.font",VALUE:"ht.value",PLACEHOLDER:"ht.placeholder",TEXT_COLOR:"ht.textColor",PADDING:"ht.padding",EDITING:"ht.editing",TEXT_ALIGN:"ht.textAlign",LINE_HEIGHT:"ht.lineHeight",WORD_BREAK:"ht.wordBreak",CHECKED:"ht.checked",LABEL:"ht.label",ICON:"ht.icon",FORM_ITEM_NAME:"ht.name",FORM_ITEM_GROUP:"ht.group",ON_CLICK:"ht.onClick",ON_CHANGE:"ht.onChange",ON_KEYDOWN:"ht.onKeyDown",ON_KEYUP:"ht.onKeyUp",ON_SELECT_ROW:"ht.onSelectRow",ON_HOVER_CELL:"ht.onHoverCell",DROP_DOWN:"ht.dropDown",FORMAT:"ht.format",SHOW_TIME:"ht.showTime",DATE_TYPE:"ht.dateType",DATA_SOURCE:"ht.dataSource",DROP_ICON_WIDTH:"ht.dropIconWidth",DROP_ICON_HEIGHT:"ht.dropIconHeight",DROP_ROW_HEIGHT:"ht.dropRowHeight",DROP_WIDTH:"ht.dropWidth",DROP_BACKGROUND:"ht.dropBackground",DROP_HOVER_BACKGROUND:"ht.dropHoverBackground",DROP_LABEL_FONT:"ht.dropLabelFont",DROP_LABEL_COLOR:"ht.dropLabelColor",DROP_ACTIVE_LABEL_COLOR:"ht.dropActiveLabelColor",DROP_ACTIVE_BACKGOUND:"ht.dropActiveBackground",DROP_MAX_HEIGHT:"ht.dropMaxHeight",INPUT_TYPE:"ht.inputType",MAX_LENGTH:"ht.maxLength",ENTER_END_INPUTABLE:"ht.enterEndInputable",HOVER_INDEX:"ht.hoverIndex",DATASOURCE:"ht.dataSource",ROW_HEIGHT:"ht.rowHeight",HEAD_HEIGHT:"ht.headHeight",TRANSLATE_X:"ht.translateX",TRANSLATE_Y:"ht.translateY",SHOW_HEAD:"ht.showHead",SELECTED_INDEX:"ht.selectedIndex",SCROLL_BAR_VISIBLE:"ht.scrollBarVisible",AUTO_HIDE_SCROLL_BAR:"ht.autoHideScrollBar",COLUMNS:"ht.columns",MULTIPLE:"ht.multiple",MAX:"ht.max",MIN:"ht.min",STEP:"ht.step",SHOW_TOOLTIP:"ht.showToolTip",TOOLTIP_FORMAT:"ht.toolTipFormat",VALUE_BAR_DRAGGABLE:"ht.valueBarDraggable",MAX_SELECTION:"ht.maxSelection",HIDE_SELECTED:"ht.hideSelected"},Ui={placeholderColor:"#737373",fontSize:12,fontFamily:"arial, sans-serif",emptyColor:"rgba(0,0,0,0)",hoverDarker:5,activeDarker:11},t=ht.Default.setImage,Yi=(t("ht.vector.date",{width:16,height:16,comps:[{type:"roundRect",borderColor:"#ffffff",cornerRadius:1,rect:[1.5,6.54942,12.94,8]},{type:"shape",borderWidth:1,borderColor:"#ffffff",borderCap:"round",closePath:!0,points:[1.5,2.4523,14.44,2.4523,14.44,2.4523,14.44,2.4523,14.44,14.54942,14.44,14.54942,14.44,14.54942,1.5,14.54942,1.5,14.54942,1.5,14.54942,1.5,2.4523,1.5,2.4523,1.5,2.4523,1.5,2.4523],segments:[1,2,3,2,3,2,3,2,3,2]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[4.46,1,4.46,4]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[11.5,1,11.5,4]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[3.52013,9.50677,7.00013,9.50677,9.00013,9.50677,12.50756,9.50677],segments:[1,2,1,2]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[3.52,12.52535,12.50756,12.52535]},{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",borderCap:"round",points:[3.52013,6.54942,7.00013,6.54942,9.00013,6.54942,12.50756,6.54942],segments:[1,2,1,2]}]}),t("ht.vector.dropDownIcon",{width:18,height:10,comps:[{type:"shape",borderWidth:1,borderColor:"rgb(255,255,255)",points:[1,1,9,9,17,1]}]}),t("ht.vector.treeOpenIcon",{width:10,height:10,attachStyle:"close",blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",borderColor:"rgb(0,0,0)",closePath:!0,points:[0,0,10,5,0,10]}]}),t("ht.vector.treeCloseIcon",{width:10,height:10,attachStyle:"close",blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",borderColor:"rgb(0,0,0)",closePath:!0,points:[0,0,10,0,5,10]}]}),t("ht.vector.treeDefIcon",{width:22,height:16,blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[19.46829,3.58619,19.46829,1.10347,7.80392,1.10347,6.77294,0,0,0,0,16,19.46157,16,22,3.58619,19.46829,3.58619,6.04692,1.12664,7.07791,2.23011,18.26449,2.23011,18.26449,3.59706,2.82065,3.59706,1.12837,10.10776,1.12837,1.12664,6.04692,1.12664,18.43055,14.74166,1.12837,14.74166,1.12837,14.63244,3.68405,4.67291,20.5368,4.67291,18.43055,14.74166],segments:[1,2,2,2,2,2,2,2,2,5,1,2,2,2,2,2,2,2,5,1,2,2,2,2,2,5]}]}),t("ht.vector.treeLoadIcon",{width:32,height:32,blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[16.5125,32,7.69062,32,.5125,24.82187,.5125,16,.5125,7.17813,7.6875,0,16.5125,0,20.60625,0,24.5,1.54375,27.48125,4.35,27.84688,4.69375,27.8625,5.26563,27.51875,5.63125,27.175,5.99375,26.60313,6.0125,26.2375,5.66875,23.59375,3.18125,20.14063,1.8125,16.5125,1.8125,8.6875,1.8125,2.325,8.17812,2.325,16,2.325,23.82187,8.69062,30.1875,16.5125,30.1875,22.40937,30.1875,27.60312,26.6375,29.74063,21.14063,29.92188,20.675,30.44688,20.44063,30.9125,20.625,31.37813,20.80625,31.60938,21.33125,31.42813,21.79688,29.01563,27.99687,23.1625,32,16.5125,32],segments:[1,4,4,4,4,4,4,4,4,4,4,4,4,5]}]}),t("ht.vector.treeCheckIcon",{dataBindings:[],width:160,height:160,attachStyle:"close",blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[139.3,.47663,20.5,.47663,9.52832,.47663,.5,9.50496,.5,20.47663,.5,139.57663,.5,150.54831,9.52832,159.57663,20.5,159.57663,139.5,159.57663,150.47168,159.57663,159.5,150.54831,159.5,139.57663,159.5,20.37663,159.47367,15.05689,157.32589,9.96152,153.53619,6.22809,149.74648,2.49467,144.61954,.42337,139.3,.47663,133.1,47.37663,61.3,119.57663,60.37719,120.51835,59.11835,121.05785,57.8,121.07663,56.41253,121.11208,55.0711,120.56825,54.1,119.57663,26.4,88.27663,24.93292,87.00925,24.32978,84.99815,24.85726,83.13258,25.38474,81.26701,26.95166,79.86949,28.86517,79.55795,30.77868,79.24642,32.70799,80.07473,33.8,81.67663,57.9,108.57663,126.1,40.37663,127.27177,38.81427,129.2561,38.07551,131.1643,38.49122,133.07249,38.90692,134.56971,40.40414,134.98541,42.31234,135.40112,44.22053,134.66236,46.20486,133.1,47.37663],segments:[1,2,4,2,4,2,4,2,4,4,5,1,2,4,4,2,4,4,4,2,2,4,4,4,5]}]}),t("ht.vector.treeUnCheckIcon",{width:160,height:160,blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[130,5,30,5,16.25,5,5,16.25,5,30,5,130,5,143.75,16.25,155,30,155,130,155,143.75,155,155,143.75,155,130,155,30,155,16.25,143.75,5,130,5,142.5,130,142.5,136.875,136.875,142.5,130,142.5,30,142.5,23.125,142.5,17.5,136.875,17.5,130,17.5,30,17.5,23.125,23.125,17.5,30,17.5,130,17.5,136.875,17.5,142.5,23.125,142.5,30,142.5,130],segments:[1,2,4,2,4,2,4,2,4,5,1,4,2,4,2,4,2,4,2,5]}]}),t("ht.vector.treeUnCheckAllIcon",{width:160,height:160,blendMode:"override",comps:[{type:"shape",background:"rgb(0,0,0)",pixelPerfect:!0,points:[158.11523,31.17188,158.11523,128.82813,158.11523,136.89453,155.24414,143.80859,149.52148,149.53125,143.79883,155.25391,136.9043,158.125,128.81836,158.125,31.18164,158.125,23.11523,158.125,16.20117,155.25391,10.47852,149.53125,4.75586,143.80859,1.88477,136.91406,1.88477,128.82813,1.88477,31.17188,1.88477,23.10547,4.75586,16.19141,10.47852,10.46875,16.20117,4.74609,23.0957,1.875,31.18164,1.875,128.83789,1.875,136.9043,1.875,143.81836,4.74609,149.54102,10.46875,155.24414,16.19141,158.11523,23.10547,158.11523,31.17188,132.06055,86.52344,132.06055,73.49609,132.06055,71.73828,131.41602,70.19531,130.12695,68.92578,128.83789,67.63672,127.29492,66.99219,125.55664,66.99219,34.42383,66.99219,32.66602,66.99219,31.12305,67.63672,29.85352,68.92578,28.56445,70.21484,27.91992,71.75781,27.91992,73.49609,27.91992,86.52344,27.91992,88.28125,28.56445,89.82422,29.85352,91.09375,31.14258,92.38281,32.64648,93.02734,34.42383,93.02734,125.55664,93.02734,127.31445,93.02734,128.85742,92.38281,130.12695,91.09375,131.41602,89.78516,132.06055,88.26172,132.06055,86.52344],segments:[1,2,4,4,2,4,4,2,4,4,2,4,4,5,1,2,4,4,2,4,4,2,4,4,2,4,4,5]}]}),t("ht.vector.pagination.previous",{background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",points:[28,17,18,25,28,33]}]}),t("ht.vector.pagination.next",{background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:3.14159,points:[32,17,22,25,32,33]}]}),t("ht.vector.pagination.first",{background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:0,points:[35,17,25,25,35,33]},{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:0,points:[29,17,19,25,29,33]}]}),t("ht.vector.pagination.last",{background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:3.14159,points:[29,17,19,25,29,33]},{type:"shape",borderWidth:2,borderColor:"rgb(255,255,255)",borderCap:"round",rotation:3.14159,points:[35,17,25,25,35,33]}]}),t("ht.vector.pagination.ellipsis",{modified:"Mon Aug 26 2019 15:46:29 GMT+0800 (中国标准时间)",background:"rgb(61,61,61)",width:50,height:50,blendMode:"override",comps:[{type:"oval",background:"rgb(255,255,255)",borderColor:"#979797",rect:[12.18756,23,4,4]},{type:"oval",background:"rgb(255,255,255)",borderColor:"#979797",rect:[23,23,4,4]},{type:"oval",background:"rgb(255,255,255)",borderColor:"#979797",rect:[33.81244,23,4,4]}]}),function(){function i(e,t,o,a){c(this,i),this.r=null,this.g=null,this.b=null,this.a=null,e&&this.setColor(e,t,o,a)}return s(i,[{key:"setColor",value:function(e,t,o,a){var i;e&&!t?(i=ht.Default.toColorData(e),this.r=i[0],this.g=i[1],this.b=i[2],this.a=i[3]/255):(this.r=e,this.g=t,this.b=o,this.a=a)}},{key:"toString",value:function(){return 1!==this.a&&null!==this.a?this.getRGBA():this.getWebColor()}},{key:"getRGB",value:function(){var e=this.r,t=this.g,o=this.b;return null!==e&&null!==t&&null!==o?Ee(e=Ee(e="rgb(".concat(e,", ")).call(e,t,", ")).call(e,o,")"):null}},{key:"getRGBA",value:function(){var e=this.r,t=this.g,o=this.b,a=this.a;return null!==e&&null!==t&&null!==o?Ee(t=Ee(e=Ee(e="rgba(".concat(e,", ")).call(e,t,", ")).call(e,o,", ")).call(t,null===a?1:a.toFixed(2),")"):null}},{key:"getWebColor",value:function(){var e=this.r,t=this.g,o=this.b;return null!==e&&null!==t&&null!==o?Ee(e=Ee(e="#".concat(this._getWebValue(e))).call(e,this._getWebValue(t))).call(e,this._getWebValue(o)):null}},{key:"_getWebValue",value:function(e){e=e.toString(16);return e=1===e.length?"0"+e:e}}]),i}()),Le="top",Be="bottom",Re="right",Pe="left",Ae="center",_e="middle",Xi="multiple",Zi="single",qi="radio",Ki="checkbox",Ji="x",he="y",$i=2,Qi="e",en="category",tn="time",on="bar",an="line",nn="diffLine",rn="cube",ln="cylinder",sn="Previous",un="Next",hn="Previous Jump",cn="Next Jump",dn="First",gn="Last",fn={tooltipSyncZoom:!1},pn=/firefox/.test(window.navigator.userAgent.toLowerCase()),vn=/MSIE/.test(window.navigator.userAgent.toLowerCase()),me=ht.Default,yn=me.removeHTML,xn=me.appendToScreen,mn=me.getClientPoint,bn=me.brighter,wn=me.darker,kn=me.isString,Cn=me.getScreenPoint,Tn=me._edgeProtectMethod,Vn=me.callLater,Dn=me.isDoubleClick,In=ht.Math.fequal,He=(Wi={},Fi=document?ht.Default.createCanvas().getContext("2d"):null,function(e,t){Fi.font=e||ht.Default.labelFont;e=Wi[Fi.font];return e||(e=2*Fi.measureText("e").width,Wi[Fi.font]=e),{width:Fi.measureText(t).width+2,height:e}}),Sn=(document.createElement("input").setAttribute("style","width: 0;height: 0;"),function(e,t,o){for(var a=[],i=0,n=1,r=e.length;n<=r;n++){var l=e.substring(i,n);He(o,l).width>t&&(i=n-1===i?(a.push(e.substring(i,n)),n):(a.push(e.substring(i,n-1)),n-1))}return i!==n-1&&a.push(e.substring(i,n)),a}),Ln="|",Bn="\n",Rn=function(e,t,o){return e=e.substring(0,t-1)+o+e.substring(t-1,e.length)};function Pn(e,t){var o,a=e.prototype,i=ht.Default.getMSMap();for(o in t)i[o]&&i.hasOwnProperty(o)?i[o](a,t):a[o]=t[o]}function An(e){e=e.a(Gi.VALUE);return void 0===e?"":e}function _n(n){var r=(e=1=Math.min(t.x,o.x)&&e<=Math.max(t.x,o.x)},lineY:function(e){return a*e+i},conditionX:function(e){return e>=Math.min(t.y,o.y)&&e<=Math.max(t.y,o.y)},lineX:function(e){return(e-i)/a}}}function dr(e,t,o){return e=function(e,t){for(var o=[],a=e.length,i=0;i=Math.min(e.x,t.x)&&a.x<=Math.max(e.x,t.x)&&a.y>=Math.min(e.y,t.y)&&a.y<=Math.max(e.y,t.y)||(a.x=(Math.abs(a.x-e.x)a.height&&s-n.height>e&&(s=s-e-n.height,u="50% 100%"),i+l>a.width&&(i=a.width-l),r.left=i+"px",r.top=s+"px",t.setWidth(l),t.setHeight(e),Oi(r,"transformOrigin",u)}},{key:"registerCloseEvent",value:function(e){var t=this.graph.getView();document.addEventListener("touchstart",e),t.addEventListener("touchstart",e),document.addEventListener("mousedown",e),t.addEventListener("mousedown",e)}},{key:"unregisterCloseEvent",value:function(e){var t=this.graph.getView();document.removeEventListener("touchstart",e),t.removeEventListener("touchstart",e),document.removeEventListener("mousedown",e),t.removeEventListener("mousedown",e)}},{key:"_clearDropDown",value:function(){this._dropDown=this._dropDownView=null,this.vectorInfo.editing=!1,this.data.iv()}},{key:"documentClickHandler",value:function(e){var t,o,a,i=this.data,n=this.graph;ht.Default.isLeftButton(e)&&(t=this._dropDown,o=this._dropDownView,a=this.vectorInfo.comp,a=jn(a,i,n),o)&&(i=o.containsEvent?o.containsEvent(e):t.isClickOnDropDownView(e),ht.Default.containsPoint(a,ht.Default.getClientPoint(e))||i||this.close())}},{key:"close",value:function(){var e=this;!e._initing&&e._dropDown&&(e._dropDown.cancel(),this.vectorInfo.editing=!1,delete e._dropDown,delete e._dropDownView,this.data.iv()),hr(this)}},{key:"handleDropDownValueChange",value:function(e){this.value=e.value}},{key:"open",value:function(){var e;!this.isOpened()&&(this.init(),this.vectorInfo.editing=!0,this.data.iv(),e=this.data.a("ht.onOpen"))&&e(this.data,this.graph),ur(this)}},{key:"isOpened",value:function(){return!!this._dropDown}},{key:"handleDropDownChange",value:function(e){this.data;var t=this,o=t._dropDown,a=t._dropDownView;o&&(o.beforeClose(),"stop"===e.kind&&void 0!==(e=o.getDropDownValue())&&(this.value=e),t._clearDropDown(),ht.Default.removeHTML(a.getView()),o.removeValueChangeListener(t.handleDropDownValueChange,t),this.unregisterCloseEvent(this._documentClickHandler),o.afterClose())}},{key:"value",get:function(){var e=this.data,t=je(this.valueType.split("@"),2),o=t[0],t=t[1];if("a"===o)return e.a(t);if("s"===o)return e.s(t);if("p"===o){o=ht.Default.getter(t);if(e[o])return e[o]()}return null},set:function(e){var t=this.data,o=this.valueType,a=this.graph,o=je(o.split("@"),2),i=o[0],o=o[1],n=this.vectorInfo.onChange,r=this.value;"a"===i?t.a(o,e):"s"===i?t.s(o,e):"p"===i&&t[i=ht.Default.setter(o)]&&t[i](e),n&&n(r,e,t,a)}}]),i}(),Fr=function(){d(n,Wr);var i=g(n);function n(e,t,o,a){return c(this,n),(e=i.call(this,e,t,o,a)).dropDownClazz=ht.ui.ColorDropDown,e}return s(n)}(),Nr=function(){d(n,Wr);var i=g(n);function n(e,t,o,a){return c(this,n),(e=i.call(this,e,t,o,a)).dropDownClazz=ht.ui.DateTimeDropDown,e}return s(n,[{key:"onInit",value:function(e,t){var o=this.data,a=o.a(Gi.DATE_TYPE),i=o.a("ht.selectableFunc"),n=o.a("ht.dropDownProperty");if(e.setPropertyValue("dateTimePane.type",a,!0),e.setPropertyValue("dateTimePane.selectableFunc",i,!0),n)for(var r in n)e.setPropertyValue(r,n[r],!0)}},{key:"handleDropDownChange",value:function(e){this.data;var t=this,o=t._dropDown,a=t._dropDownView;o&&(o.beforeClose(),"stop"===e.kind&&void 0!==(e=o.getDropDownValue())&&(this.value=isNaN(new Date(e).getTime())?e:ht.Default.formatDate(new Date(e),this.data.getFormat())),t._clearDropDown(),ht.Default.removeHTML(a.getView()),o.removeValueChangeListener(t.handleDropDownValueChange,t),this.unregisterCloseEvent(this._documentClickHandler),o.afterClose())}},{key:"initDate",value:function(e){return e?new Date(e):null}}]),n}(),jr=(window.easepick&&(Br=easepick.create.prototype.updateValues,easepick.create.prototype.updateValues=function(){var t=this;Br.apply(this),null!==this.timer&&clearTimeout(this.timer),this.timer=Wa(function(){var e=t.getDate();t.oldDate&&(e=new Date(br(e,"YYYY-MM-DD ")+br(t.oldDate,"HH:mm:ss"))),t.onValueChange&&t.onValueChange(e)},10)},Rr=easepick.create.prototype.setDate,easepick.create.prototype.setDate=function(e){this.oldDate=this.getDate(),Rr.apply(this,arguments)},easepick.create.prototype.toogle=function(){this.isShown()?this.hide():this.show()},Pr=easepick.create.prototype.hide,easepick.create.prototype.hide=function(){this.onHidden&&this.onHidden(),Pr.apply(this)},Ar=easepick.create.prototype.show,easepick.create.prototype.show=function(e){this.onPreShow&&this.onPreShow(),Ar.apply(this,arguments),this.onShown&&this.onShown()},_r=easepick.RangePlugin.prototype.setDateRange,easepick.RangePlugin.prototype.setDateRange=function(e,t){this.picker.oldDate=[this.getStartDate(),this.getEndDate()],_r.apply(this,arguments)},Mr=easepick.RangePlugin.prototype.updateValues,easepick.RangePlugin.prototype.updateValues=function(){var e=this,t=(Mr.apply(this),ht.Default.clone([this.getStartDate(),this.getEndDate()])),o=this.picker.PluginManager;o&&o.instances&&o.instances.TimePlugin&&((o=o.instances.TimePlugin.timePicked).start&&(t[0]=new Date(br(t[0],"YYYY-MM-DD ")+br(o.start,"HH:mm:ss"))),o.end)&&(t[1]=new Date(br(t[1],"YYYY-MM-DD ")+br(o.end,"HH:mm:ss"))),null!==this.timer&&clearTimeout(this.timer),this.timer=Wa(function(){e.picker.onValueChange&&e.picker.onValueChange(t)},10)}),'*{box-sizing:border-box}.container{border-radius:var(--box-border-radius);color:var(--color-fg-default);cursor:default;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.8em;height:0;overflow:hidden;pointer-events:all;position:absolute;transform:scale(0);transform-origin:top left;transition:transform .3s ease-out}.container.calc{height:auto;transform:none;transition:none;visibility:hidden}.container.show{box-shadow:0 0 25px rgba(0,0,0,.3);height:auto;transform:scale(1)}.container.inline{box-shadow:0 7px 14px 0 rgba(65,69,88,.1),0 3px 6px 0 rgba(0,0,0,.07);height:auto;left:0;position:relative;top:0;transform:scaleY(1)}.container>main{background-color:var(--color-bg-default)}.container>footer,.container>header{background-color:var(--color-bg-secondary);padding:10px}.container>footer .footer-buttons{-moz-column-gap:var(--button-gap);column-gap:var(--button-gap);display:flex;justify-content:var(--button-align)}.container>footer .footer-buttons>button{background-color:transparent;border:1px solid transparent;border-radius:var(--border-radius);cursor:pointer;padding:5px 10px}.container>footer .footer-buttons>button.apply-button{background-color:var(--color-btn-primary-bg);border-color:var(--color-btn-primary-border);color:var(--color-btn-primary-fg)}.container>footer .footer-buttons>button.apply-button:hover{background-color:var(--color-btn-primary-hover-bg);border-color:var(--color-btn-primary-hover-border);color:var(--color-btn-primary-hover-fg)}.container>footer .footer-buttons>button.apply-button:disabled{background-color:var(--color-btn-primary-disabled-bg);border-color:var(--color-btn-primary-disabled-border);color:var(--color-btn-primary-disabled-fg);cursor:default}.container>footer .footer-buttons>button.cancel-button{background-color:var(--color-btn-secondary-bg);border-color:var(--color-btn-secondary-border);color:var(--color-btn-secondary-fg)}.container>footer .footer-buttons>button.cancel-button:hover{background-color:var(--color-btn-secondary-hover-bg);border-color:var(--color-btn-secondary-hover-border);color:var(--color-btn-secondary-hover-fg)}.container>footer .footer-buttons>button.cancel-button:disabled{background-color:var(--color-btn-secondary-disabled-bg);border-color:var(--color-btn-secondary-disabled-border);color:var(--color-btn-secondary-disabled-fg);cursor:default}.grid-1{grid-template-columns:repeat(1,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}.grid-5{grid-template-columns:repeat(5,1fr)}.grid-6{grid-template-columns:repeat(6,1fr)}.grid-7{grid-template-columns:repeat(7,1fr)}.grid-8{grid-template-columns:repeat(8,1fr)}.grid-9{grid-template-columns:repeat(9,1fr)}.grid-10{grid-template-columns:repeat(10,1fr)}.grid-11{grid-template-columns:repeat(11,1fr)}.grid-12{grid-template-columns:repeat(12,1fr)}.calendars{display:grid}.calendars:not(.grid-1) .calendar>.header .month-name{order:2;text-align:center}.calendars:not(.grid-1) .calendar>.header .previous-button{order:1;visibility:hidden}.calendars:not(.grid-1) .calendar>.header .next-button{order:3;visibility:hidden}.calendars:not(.grid-1) .calendar:first-child>.header .previous-button,.calendars:not(.grid-1) .calendar:last-child>.header .next-button{visibility:visible}.calendar{padding:10px}.calendar>.header{align-items:center;-moz-column-gap:5px;column-gap:5px;display:flex;justify-content:space-between;padding:10px}.calendar>.header .month-name{flex:1;font-size:15px;font-weight:500}.calendar>.header .month-name>span{font-weight:700}.calendar>.header button{align-items:center;background-color:transparent;border:1px solid transparent;border-radius:2px;color:var(--color-btn-secondary-fg);cursor:pointer;display:flex;justify-content:center;padding:4px 7px}.calendar>.header button:hover{background-color:var(--color-bg-secondary)}.calendar>.header button:hover>img,.calendar>.header button:hover>svg{fill:var(--color-fg-primary);color:var(--color-fg-primary)}.calendar>.header button>img,.calendar>.header button>svg{fill:var(--color-btn-secondary-fg);color:var(--color-btn-secondary-fg);pointer-events:none;transform:scale(.7)}.calendar>.daynames-row,.calendar>.days-grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px}.calendar>.daynames-row>.day,.calendar>.daynames-row>.dayname,.calendar>.days-grid>.day,.calendar>.days-grid>.dayname{align-items:center;cursor:default;display:flex;flex-direction:column;font-size:var(--day-fg-szie);font-family:var(--day-fg-family);justify-content:center}.calendar>.daynames-row>.dayname{color:var(--color-fg-muted);font-size:var(--week-fg-size);font-family:var(--week-fg-family);padding:5px 0}.calendar>.days-grid>.day{border:1px solid transparent;border-radius:2px;height:var(--day-height);max-height:var(--day-height);max-width:var(--day-width);min-height:var(--day-height);min-width:var(--day-width);padding:10px 0;width:var(--day-width)}.calendar>.days-grid>.day:hover{border:1px solid var(--color-fg-primary);color:var(--color-fg-primary)}.calendar>.days-grid>.day.today{color:var(--color-fg-accent)}.calendar>.days-grid>.day.selected{background-color:var(--color-fg-primary);color:var(--color-fg-selected)}@media (max-width:480px){.container:not(.inline){transform:scaleY(0)!important;transform-origin:bottom center!important}.container:not(.inline).show{bottom:0!important;left:0!important;position:fixed!important;right:0!important;top:auto!important;transform:scaleY(1)!important}.container{width:100%}.calendars{grid-template-columns:repeat(1,1fr)}.calendars .calendar{box-sizing:border-box;width:100%}.calendars .calendar:nth-child(n+2){display:none}.calendars .calendar>.days-grid>.day{height:auto;max-height:unset;max-width:unset;min-height:unset;min-width:unset;width:auto}.calendars .calendar>.header:not(.no-next-month) .next-button{visibility:visible}}.container.lock-plugin .calendars .calendar:first-child>.header.no-previous-month .previous-button,.container.lock-plugin .calendars .calendar:last-child>.header.no-next-month .next-button{visibility:hidden}.container.lock-plugin .calendar>.days-grid>.day.not-available{background-color:var(--color-bg-unavailable);color:var(--color-fg-locked);font-style:italic;pointer-events:none}.container.lock-plugin .calendar>.days-grid>.day.locked{background-color:transparent;border:1px solid var(--color-border-locked);color:var(--color-fg-locked);pointer-events:none}.container.lock-plugin .calendar>.days-grid>.day.locked:not(.start):not(.end){background-image:var(--color-bg-locked);font-style:var(--fg-style-locked)}.container.lock-plugin .preset-plugin-container>button:disabled{color:var(--color-fg-locked);pointer-events:none}.container.preset-plugin>main{display:flex}.container.preset-plugin>main.preset-left{flex-direction:row-reverse}.container.preset-plugin>main.preset-right{flex-direction:row}.container.preset-plugin>main.preset-left .preset-plugin-container,.container.preset-plugin>main.preset-right .preset-plugin-container{flex-direction:column;width:130px}.container.preset-plugin>main.preset-top{flex-direction:column-reverse}.container.preset-plugin>main.preset-bottom{flex-direction:column}.container.preset-plugin>main.preset-bottom .preset-plugin-container,.container.preset-plugin>main.preset-top .preset-plugin-container{flex-direction:row}.preset-plugin-container{background-color:var(--color-bg-secondary);display:flex;justify-content:space-between;padding:10px}.preset-plugin-container>button{background-color:var(--color-bg-default);border:1px solid transparent;border-radius:4px;color:var(--color-fg-default);padding:5px}.preset-plugin-container>button:hover{border:1px solid var(--color-fg-primary);color:var(--color-fg-primary);cursor:pointer}.range-plugin-tooltip{background-color:var(--color-bg-tooltip);border-radius:var(--border-radius);box-shadow:0 1px 3px rgba(0,0,0,.25);color:var(--color-fg-tooltip);font-size:12px;margin-top:-4px;padding:4px 8px;pointer-events:none;position:absolute;visibility:hidden;white-space:nowrap;z-index:1}.range-plugin-tooltip:before{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(0,0,0,.12);bottom:-5px;content:"";left:calc(50% - 5px);position:absolute}.range-plugin-tooltip:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid var(--color-bg-tooltip);bottom:-4px;content:"";left:calc(50% - 4px);position:absolute}.container.range-plugin .calendar>.days-grid>.day{position:relative}.container.range-plugin .calendar>.days-grid>.day.in-range:last-of-type{border-bottom-right-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>.day.in-range{background-color:var(--color-bg-inrange);border-radius:0}.container.range-plugin .calendar>.days-grid>.day.end,.container.range-plugin .calendar>.days-grid>.day.start{background-color:var(--color-fg-primary);color:var(--color-fg-selected)}.container.range-plugin .calendar>.days-grid>.day.start{border-bottom-right-radius:0;border-top-right-radius:0}.container.range-plugin .calendar>.days-grid>.day.start:after{border:8px solid transparent;border-left:8px solid var(--color-fg-primary);content:"";pointer-events:none;position:absolute;right:-14px;z-index:1}.container.range-plugin .calendar>.days-grid>.day.start.flipped{border-bottom-left-radius:0;border-bottom-right-radius:var(--border-radius);border-top-left-radius:0;border-top-right-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>.day.start.flipped:after{border-left-color:transparent;border-right-color:var(--color-fg-primary);left:-14px;right:auto}.container.range-plugin .calendar>.days-grid>.day.end{border-bottom-left-radius:0;border-top-left-radius:0}.container.range-plugin .calendar>.days-grid>.day.end:after{border:8px solid transparent;border-right:8px solid var(--color-fg-primary);content:"";left:-14px;pointer-events:none;position:absolute;z-index:1}.container.range-plugin .calendar>.days-grid>.day.end.flipped{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:0;border-top-left-radius:var(--border-radius);border-top-right-radius:0}.container.range-plugin .calendar>.days-grid>.day.end.flipped:after{border-left-color:var(--color-fg-primary);border-right-color:transparent;left:auto;right:-14px}.container.range-plugin .calendar>.days-grid>.day.start.end{border-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>.day.start.end:after{content:none}.container.range-plugin .calendar>.days-grid>div:not(.day)+.day.in-range{border-bottom-left-radius:var(--border-radius);border-top-left-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>div:nth-child(7n).in-range{border-bottom-right-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.container.range-plugin .calendar>.days-grid>div:nth-child(7n+1).in-range{border-bottom-left-radius:var(--border-radius);border-top-left-radius:var(--border-radius)}.container.preset-plugin main{display:grid}.container.preset-plugin main.preset-left>.calendars,.container.preset-plugin main.preset-top>.calendars{order:2}.container.preset-plugin main.preset-left>.preset-plugin-container,.container.preset-plugin main.preset-top>.preset-plugin-container{order:1}.container.preset-plugin main.preset-left,.container.preset-plugin main.preset-right{grid-template-columns:auto auto}.container.preset-plugin main.preset-left .preset-plugin-container,.container.preset-plugin main.preset-right .preset-plugin-container{grid-row:span 2;width:130px}.container.preset-plugin main.preset-bottom>.preset-plugin-container{order:4}.container.preset-plugin main.preset-bottom,.container.preset-plugin main.preset-top{grid-template-columns:auto}.container.preset-plugin main>.time-plugin-container{order:3}.container>main:not([class*=preset-]){flex-direction:column}.time-plugin-container{background-color:var(--color-bg-secondary);border-bottom:1px solid var(--color-border-default);display:flex;justify-content:space-around;padding:10px}.time-plugin-container input[type=time]{font-size:18px}.time-plugin-container input[type=time],.time-plugin-container select{background-color:var(--color-bg-default);border:1px solid transparent;border-radius:4px;color:var(--color-fg-default)}.time-plugin-container select{margin:0 3px}.time-plugin-container select::-webkit-scrollbar{width: 0px}.time-plugin-container select::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);border-radius: 0;background: rgba(0,0,0,0.1);}.time-plugin-container select::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);border-radius: 0;background: rgba(0,0,0,0.1);}.container.amp-plugin .calendars .calendar>.header .month-name{align-items:center;-moz-column-gap:5px;column-gap:5px;display:flex;justify-content:center}.container.amp-plugin .calendars .calendar>.header .month-name select{border:none;font-size:14px;padding:3px}.container.amp-plugin .calendars .calendar>.header .month-name select.month-name--dropdown{font-weight:700}.container.amp-plugin .calendars .calendar>.header .reset-button{order:4}.container.amp-plugin .calendars.calendars:not(.grid-1) .calendar>.header .reset-button{visibility:hidden}.container.amp-plugin .calendars.calendars:not(.grid-1) .calendar:last-child>.header .reset-button{visibility:visible}.container.amp-plugin.week-numbers .calendar>.daynames-row,.container.amp-plugin.week-numbers .calendar>.days-grid{grid-template-columns:30px repeat(7,1fr)}.container.amp-plugin.week-numbers .calendar>.daynames-row .wnum-header,.container.amp-plugin.week-numbers .calendar>.daynames-row .wnum-item,.container.amp-plugin.week-numbers .calendar>.days-grid .wnum-header,.container.amp-plugin.week-numbers .calendar>.days-grid .wnum-item{align-items:center;color:var(--color-fg-muted);display:flex;font-size:12px;justify-content:center}.container[data-theme=dark]{--color-bg-default:#22272e;--color-bg-secondary:#2d333b;--color-bg-inrange:#2c542e;--color-bg-locked:#ec775c;--color-bg-unavailable:#545d68;--color-bg-tooltip:#9e9e9e;--color-fg-default:#adbac7;--color-fg-primary:#46954a;--color-fg-secondary:#202122;--color-fg-muted:#9e9e9e;--color-fg-accent:#ec775c;--color-fg-locked:#9e9e9e;--color-btn-primary-bg:#2d333b;--color-btn-primary-fg:#46954a;--color-btn-primary-border:#46954a;--color-btn-primary-hover-bg:#46954a;--color-btn-primary-hover-fg:#fff;--color-btn-primary-hover-border:#46954a;--color-btn-secondary-bg:#2d333b;--color-btn-secondary-fg:#adbac7;--color-btn-secondary-border:#adbac7;--color-btn-secondary-hover-bg:#adbac7;--color-btn-secondary-hover-fg:#202122;--color-btn-secondary-hover-border:#adbac7;--color-border-default:#373e47;--color-border-locked:#2d333b} .container.preset-plugin main{display:grid}.container.preset-plugin main.preset-left>.calendars,.container.preset-plugin main.preset-top>.calendars{order:2}.container.preset-plugin main.preset-left>.preset-plugin-container,.container.preset-plugin main.preset-top>.preset-plugin-container{order:1}.container.preset-plugin main.preset-left,.container.preset-plugin main.preset-right{grid-template-columns:auto auto}.container.preset-plugin main.preset-left .preset-plugin-container,.container.preset-plugin main.preset-right .preset-plugin-container{grid-row:span 2;width:130px}.container.preset-plugin main.preset-bottom>.preset-plugin-container{order:4}.container.preset-plugin main.preset-bottom,.container.preset-plugin main.preset-top{grid-template-columns:auto}.container.preset-plugin main>.time-plugin-container{order:3}.container>main:not([class*=preset-]){flex-direction:column}.time-plugin-container{background-color:var(--color-bg-secondary);border-bottom:1px solid var(--color-border-default);display:flex;justify-content:space-around;padding:10px}.time-plugin-container input[type=time]{font-size:18px}.time-plugin-container input[type=time],.time-plugin-container select{background-color:var(--color-bg-default);border:1px solid transparent;border-radius:4px;color:var(--color-fg-default)}.time-plugin-container select{margin:0 3px}.calendar>.days-grid>.weekend{font-size:var(--weekend-fg-size);font-family:var(--weekend-fg-family);color:var(--weekend-fg-color);background:var(---weekend-bg)}'),zr="--color-bg-default:#fff;--color-bg-secondary:#f9f9f9;--color-fg-default:#333;--color-fg-primary:#6b82ff;--color-fg-secondary:#748194;--color-fg-selected:#fff;--color-fg-muted:#9e9e9e;--color-fg-accent:#e63757;--color-btn-primary-bg:#fff;--color-btn-primary-fg:#6b82ff;--color-btn-primary-border:#6b82ff;--color-btn-primary-hover-bg:#6b82ff;--color-btn-primary-hover-fg:#fff;--color-btn-primary-hover-border:#6b82ff;--color-btn-primary-disabled-bg:#a2b0ff;--color-btn-primary-disabled-fg:#fff;--color-btn-primary-disabled-border:#a2b0ff;--color-btn-secondary-bg:#fff;--color-btn-secondary-fg:#748194;--color-btn-secondary-border:#748194;--color-btn-secondary-hover-bg:#748194;--color-btn-secondary-hover-fg:#fff;--color-btn-secondary-hover-border:#748194;--color-btn-secondary-disabled-bg:#b5bbc4;--color-btn-secondary-disabled-fg:#fff;--color-btn-secondary-disabled-border:#b5bbc4;--color-border-default:#6b82ff;--color-border-locked:#6b82ff;--day-width:42px;--day-height:37px;--border-radius:2px;--box-border-radius:4px;--primary-color:#6b82ff;--secondary-color:#748194;--white-color:#fff;--black-color:#333;--lightgray-color:#f9f9f9;--gray-color:#9e9e9e;--red-color:#e63757;--color-bg-inrange:#d5dbff;--color-bg-tooltip:#fff;--color-fg-tooltip:#333;--day-fg-szie:13px;--day-fg-family:none;--week-fg-size:12px;--week-fg-family:none;--button-align:flex-end;--button-gap:5px;--color-fg-locked:#9e9e9e;--color-bg-locked:repeating-linear-gradient(135deg,transparent,#ffab91 2px,transparent 2px,transparent 4px);--color-bg-unavailable:#f9f9f9;--fg-style-locked:italic;--weekend-fg-family:var(--day-fg-family);--weekend-fg-color:var(--color-fg-default);---weekend-bg:inherit;--weekend-fg-size:var(--day-fg-szie);",Gr={bgDefault:"--color-bg-default",bgSecondary:"--color-bg-secondary",fgDefault:"--color-fg-default",fgPrimary:"--color-fg-primary",fgSecondary:"--color-fg-secondary",fgSelected:"--color-fg-selected",fgMuted:"--color-fg-muted",fgAccent:"--color-fg-accent",btnPrimaryBg:"--color-btn-primary-bg",btnPrimaryFg:"--color-btn-primary-fg",btnPrimaryBorderColor:"--color-btn-primary-border",btnPrimaryHoverBg:"--color-btn-primary-hover-bg",btnPrimaryHoverFg:"--color-btn-primary-hover-fg",btnPrimaryHoverBorder:"--color-btn-primary-hover-border",btnPrimaryDisabledBg:"--color-btn-primary-disabled-bg",btnPrimaryDisabledFg:"--color-btn-primary-disabled-fg",btnPrimaryDisabledBorder:"--color-btn-primary-disabled-border",btnSecondaryBg:"--color-btn-secondary-bg",btnSecondaryFg:"--color-btn-secondary-fg",btnSecondaryBorder:"--color-btn-secondary-border",btnSecondaryHoverBg:"--color-btn-secondary-hover-bg",btnSecondaryHoverFg:"--color-btn-secondary-hover-fg",btnSecondaryHoverBorder:"--color-btn-secondary-hover-border",btnSecondaryDisabledBg:"--color-btn-secondary-disabled-bg",btnSecondaryDisabledFg:"--color-btn-secondary-disabled-fg",btnSecondaryDisabledBorder:"--color-btn-secondary-disabled-border",colorBorderDefault:"--color-border-default",colorBorderLocked:"--color-border-locked",dayWidth:"--day-width",dayHeight:"--day-height",borderRadius:"--border-radius",boxBorderRadius:"--box-border-radius",primaryColor:"--primary-color",secondaryColor:"--secondary-color",whiteColor:"--white-color",blackColor:"--black-color",lightgrayColor:"--lightgray-color",grayColor:"--gray-color",redColor:"--red-color",bgInrange:"--color-bg-inrange",bgTooltip:"--color-bg-tooltip",fgTooltip:"--color-fg-tooltip",dayFgSzie:"--day-fg-szie",dayFgFamily:"--day-fg-family",weekFgSize:"--week-fg-size",weekFgFamily:"--week-fg-family",fgLocked:"--color-fg-locked",bgLocked:"--color-bg-locked",bgUnavailable:"--color-bg-unavailable",fgStyleLocked:"--fg-style-locked",weekendFgFamily:"--weekend-fg-family",weekendFgColor:"--weekend-fg-color",weekendBg:"---weekend-bg",weekendFgSize:"--weekend-fg-size",buttonAlign:"--button-align",buttonGap:"--button-gap"},Ur=function(){d(n,Wr);var i=g(n);function n(e,t,o,a){return c(this,n),(e=i.call(this,e,t,o,a)).graph=t,e.vectorInfo=o,e.dropDownClazz=easepick.create,e.defaultHostCss=zr,e}return s(n,[{key:"init",value:function(){var e=this.graph,t=this.vectorInfo,o=t.dropDownStyle,a=t.langue,i=t.autoApply,n=t.format,r=t.applyText,l=t.cancelText,s=t.dateType,u=t.selectableFunc,h=t.dropDownSyncZoom,t=t.seconds,c=(this.timePickerDOM||((c=this.timePickerDOM=document.createElement("div")).style.position="absolute",c.style.background="red",c.style.opacity="0",c.style.pointerEvents="none",this.setPosition(c),e.getView().appendChild(c)),this.replaceStr(o),this.dropDown||(this.dropDown=new this.dropDownClazz({element:this.timePickerDOM,css:":host{"+this.defaultHostCss+"}"+jr,setup:function(e){e.on("change",function(e){e=e.detail;e.view,e.date,e.target})},zIndex:10,firstDay:0,lang:a,autoApply:i,plugins:this.getPlugins(s),format:n,locale:{cancel:l,apply:r},TimePlugin:{seconds:t},LockPlugin:{filter:function(e,t){if(u)return u(e)}}})),this.dropDown);function d(e){e.stopPropagation()}c.ui.container.addEventListener("mousedown",d),c.ui.container.addEventListener("mouseup",d),c.ui.container.addEventListener("mousewheel",d),c.ui.container.addEventListener("mousemove",d),c.ui.container.addEventListener("touchstart",d),c.ui.container.addEventListener("touchend",d),h&&e instanceof ht.graph.GraphView?c.ui.container.style.transform="scale("+e.getZoom()+")":c.ui.container.style.transform=null}},{key:"onInit",value:function(t,o){var a=this,i=a.data,n=a.graph,r=(a.setPosition(a.timePickerDOM),ht.Default.callLater(function(){a.value&&(o._setDefaultValue=!0,o.setDate(a.value),o.setTime)&&o.setTime(br(new Date(a.value),"HH:mm:ss")),o.show()},a,null,10),o.onValueChange=function(e){o._setDefaultValue?delete o._setDefaultValue:(a.value=e&&br(e,t.format||""),t.onChange&&t.onChange(this.oldDate,e,i,n))},o.onHidden=function(){o.destroy(),a.timePickerDOM&&a.timePickerDOM.remove(),delete t.dropDown,hr(a)},{lang:"lang",format:"format",autoApply:"autoApply",apply:"applyText",cancel:"cancelText"});o.onPreShow=function(){for(var e in r)o.options[e]!==t[r[e]]&&(o.options[e]=t[r[e]],o.renderAll())},o.onShown=function(){ur(a)}}},{key:"setPosition",value:function(e){var t=this.data.getRect(),o=this.vectorInfo.comp.rect,a=o[0],i=o[1],n=o[2],o=o[3],r=this.graph.getScreenPoint(t.x+a,t.y+i),a=this.graph.getScreenPoint(t.x+a+n,t.y+i+o),n=sr(this.graph.getView());e.style.left=r.x-n.x+"px",e.style.top=r.y-n.y+"px",e.style.width=a.x-r.x+"px",e.style.height=a.y-r.y+"px"}},{key:"open",value:function(){this.dropDown||(this.init(),this.vectorInfo.editing=!0),this.onInit(this.vectorInfo,this.dropDown),this.data.iv(),ur(this)}},{key:"close",value:function(){this.dropDown.hide(),hr(this)}},{key:"replaceStr",value:function(){for(var e=0=t.length?qo(void 0,!0):(t=sh(t,o),e.index+=t.length,qo(t,!1))});function dh(e,t){var o=e.children;if(o)for(var a=0,i=o.length;ar.width&&(s=n+l),a&&(a.scrollBarInfo={x:r.x,y:r.y,width:r.width,height:r.height,boundWidth:o,boundHeight:s,absoluteScrollBarWidth:l},a.autoHideScrollBar=u),h&&(i={x:r.x,y:r.y,width:r.width,height:r.height},n={width:o,height:s},h={x:c,y:d},r.height>s&&0!==d&&(n.height=r.height-d),Pl(e,i,n,h,{visible:!u||g,color:t,gap:0,barWidth:l},a||{}))}},{key:"drawDragColumnLine",value:function(e,t){var o,a,i,t=t.dragColumnLineRect;t&&(o=t.x,a=t.y,i=t.width,t=t.height,e.save(),e.fillStyle="rgb(49, 141, 251)",e.fillRect(o,a,i,t),e.restore())}},{key:"onClickBadge",value:function(e,t,o){for(var e=je(e,3),a=e[0],i=e[1],n=e[2],r=this.a("onClickBadge"),l=0,s=o.length;l>>18,a[1]=128|(258048&i)>>>12,a[2]=128|(4032&i)>>>6,a[3]=128|63&i):2048>>12,a[1]=128|(4032&i)>>>6,a[2]=128|63&i):128>>6,a[1]=128|63&i):a[0]=i,this.parsedData.push(a)}this.parsedData=Ee(Array.prototype).apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function zh(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function Gh(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var o=0;o>o&1);this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=a}for(o=0;o<18;o++){a=!e&&1==(t>>o&1);this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=a}},setupTypeInfo:function(e,t){for(var t=this.errorCorrectLevel<<3|t,o=ac.getBCHTypeInfo(t),a=0;a<15;a++){var i=!e&&1==(o>>a&1);a<6?this.modules[a][8]=i:a<8?this.modules[a+1][8]=i:this.modules[this.moduleCount-15+a][8]=i}for(a=0;a<15;a++){i=!e&&1==(o>>a&1);a<8?this.modules[8][this.moduleCount-a-1]=i:a<9?this.modules[8][15-a-1+1]=i:this.modules[8][15-a-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var o=-1,a=this.moduleCount-1,i=7,n=0,r=this.moduleCount-1;0>>i&1)),s=ac.getMask(t,a,r-u),this.modules[a][r-u]=l=s?!l:l,-1==--i)&&(n++,i=7);if((a+=o)<0||this.moduleCount<=a){a-=o,o=-o;break}}}},zh.PAD0=236,zh.PAD1=17,zh.createData=function(e,t,o){for(var a=Uh.getRSBlocks(e,t),i=new Yh,n=0;n8*l)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*l+")");for(i.getLengthInBits()+4<=8*l&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*l)&&(i.put(zh.PAD0,8),!(i.getLengthInBits()>=8*l));)i.put(zh.PAD1,8);return zh.createBytes(i,a)},zh.createBytes=function(e,t){for(var o=0,a=0,i=0,n=new Array(t.length),r=new Array(t.length),l=0;l>>=1;return t},getPatternPosition:function(e){return ac.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,o){switch(e){case qh:return(t+o)%2==0;case Kh:return t%2==0;case Jh:return o%3==0;case $h:return(t+o)%3==0;case Qh:return(Math.floor(t/2)+Math.floor(o/3))%2==0;case ec:return t*o%2+t*o%3==0;case tc:return(t*o%2+t*o%3)%2==0;case oc:return(t*o%3+(t+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new Gh([1],0),o=0;o>>7-e%8&1)},put:function(e,t){for(var o=0;o>>t-o-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var rc=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function lc(e,t){for(var o,a=1,i=(e=e,(o=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a")).length+(o.length!=e?3:0)),n=0,r=rc.length;n<=r;n++){var l=0;switch(t){case Zh.L:l=rc[n][0];break;case Zh.M:l=rc[n][1];break;case Zh.Q:l=rc[n][2];break;case Zh.H:l=rc[n][3]}if(i<=l)break;a++}if(a>rc.length)throw new Error("Too long data");return a}var sc=function(){d(a,zh);var o=g(a);function a(e){var t;return c(this,a),(t=o.call(this,lc(e,Zh.H),Zh.H)).addData(e),t.make(),t}return s(a)}(),uc={};var hc=function(){d(i,ht.Data);var a=g(i);function i(e,t){var o;return c(this,i),(o=a.call(this)).init(e,t),o}return s(i,[{key:"init",value:function(e,t){var e=e.getAttrObject(),o=e.dataSource,a=e.color,e=e.total,o=o[t],i=o.name,n=o.value,n=void 0===n?0:n,o=o.color;this.a({name:void 0===i?"":i,value:n,percent:n/e,color:void 0===o?a[t]:o})}},{key:"initNodeRect",value:function(e){var t=this.getDataModel();this._initItemRect(t,e),this._initDragIconRect(t)}},{key:"_initItemRect",value:function(e,t){var e=e.getAttrObject(),o=e.rect,a=e.barWidth,i=e.padding,e=e.totalWidth,n=this.getAttrObject().percent,r=o.x,l=o.y,o=o.height,t=t?t.a("itemRect"):null;this.a("itemRect",{x:t?t.x+t.width:r+i,y:l+(o-a)/2,width:n*e,height:a})}},{key:"_initDragIconRect",value:function(e){var e=e.getAttrObject(),t=e.rect,o=e.sliderWidth,a=e.sliderHeight,i=e.sliderOffsetX,e=e.sliderOffsetY,n=this.getAttrObject().itemRect,r=t.y,t=t.height,l=n.x,n=n.width;this.a("dragIconRect",{x:l+n-o/2+i,y:r+(t-a)/2+e,width:o,height:a})}}]),i}(),cc=function(){d(t,ht.DataModel);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"init",value:function(){for(var e=this.a("dataSource"),t=0,o=e.length;ti.width&&(l=i.width-a.width),s+a.height>i.height&&(s=i.height-a.height)),this._container.style.left=l+"px",this._container.style.top=s+"px"}},{key:"hide",value:function(){yn(this._container)}}]),e}()),xc=ht.Default.containsPoint,k=function(){d(h,yc);var e=g(h);function h(){return c(this,h),e.call(this)}return s(h,[{key:"onUp",value:function(e,t,o,a,i,n){}},{key:"onMove",value:function(e,t,o,a,i,n){var r,a=H(o,t,this,a,e),t=Ye(o,t,this),l=t.rectInfo,s=t.dragSliderDataModel,t=t.dragInfo,s=s.getAttrObject(),u=s.toolTipFormat,s=s.showToolTip,a=h.getLpInDragIconsRectInfo(a,l.dragIconsRect).dragSliderData;(a=void 0===a&&t?t.dragNode:a)?(E(o,"ew-resize"),s&&(t=(l=a.getAttrObject()).name,a=l.value,l=l.percent,r="名称:"+t+"
数值:"+a+"
百分比:"+Math.floor(100*l)/100,B.show(u?u(t,a,l):r,e))):(E(o,"default"),s&&B.hide())}},{key:"onEnter",value:function(e,t,o,a,i,n){}},{key:"onLeave",value:function(e,t,o,a,i,n){B.hide()}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.rectInfo.dragIconsRect,t=h.getLpInDragIconsRectInfo(a,o),r=t.dragSliderData,t=t.index;r&&(e.dragInfo={dragNode:r,dragNodeStartValue:r.a("value"),dragStartX:a.x},r=o[t+1])&&(e.dragInfo.dragNextNode=r.dragSliderData,e.dragInfo.dragNextNodeStartValue=r.dragSliderData.a("value"))}},{key:"onDrag",value:function(e,o,a,t,i,n){var r,l,s,u,h,c,d,g,f,p,v=H(a,o,this,t,e),y=Ye(a,o,this),t=y.dragSliderDataModel,e=y.dragInfo;!y._dragSliderTimer&&t&&e&&(r=e.dragNode,l=e.dragNodeStartValue,s=e.dragStartX,u=e.dragNextNode,h=e.dragNextNodeStartValue,e=t.getAttrObject(),c=e.total,d=e.totalWidth,g=e.step,t=e.leftValue,f=e.onChange,p=h||t,y._dragSliderTimer=Wa(function(){var e=(v.x-s)/d,e=c*e,t=e%g,e=Math.floor(e/g)*g+(g/2<=t?g:0);0<=e+l&&e<=p&&(r.a("dataInfo").value=l+e,u&&(u.a("dataInfo").value=h-e),"function"==typeof f&&(t=[r.a("dataInfo")],u&&t.push(u.a("dataInfo")),f(t,o,a)),o.iv()),delete y._dragSliderTimer},10))}},{key:"onEndDrag",value:function(e,t,o,a,i,n){o=Ye(o,t,this);o._dragSliderTimer&&(clearInterval(o._dragSliderTimer),delete o._dragSliderTimer),delete o.dragInfo}}],[{key:"getLpInDragIconsRectInfo",value:function(e,t){for(var o=t.length-1;0<=o;o--){var a=t[o],i=a.dragSliderData,a=a.dragIconRect;if(xc(a,e))return{dragSliderData:i,dragIconRect:a,index:o}}return{}}}]),h}(),La=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onEnter",value:function(e,t,o,a,i,n){t=Ye(o,t,this);t.defaultCursor=o.getView().style.cursor,t.disabled?E(o,"not-allowed"):E(o,"text")}},{key:"onLeave",value:function(e,t,o,a,i,n){t=Ye(o,t,this);E(o,t.defaultCursor)}},{key:"onDown",value:function(e,i,n,t,o,a){var r,l,s,u,h,c,d,g,f,p,v,y,x,m,b,w,k,C,T,V,D,I,S,L=Ye(n,i,this);L.disabled||L.editing||(r=L.font,l=L.value,s=L.textAlign,u=L.maxLength,h=L.textColor,c=L.wordBreak,d=L.selectTextOnFocus,V=L.padding,g=L.onKeyDown,f=L.onKeyUp,p=L.onChange,v=L.lineHeight,y=L.onFocus,x=L.onBlur,b=(m=_i("textarea")).style,w=X(this,"value",i),k=(V=je(Pi(V),4))[0],C=V[1],T=V[2],V=V[3],b.color=h,b.font=r,b.paddingTop=k+"px",b.paddingRight=C+"px",b.paddingBottom=T+"px",b.paddingLeft=2+V+"px",b.textAlign=s,b.resize="none",b.overflow="hidden",b.lineHeight=v+"px",b.wordBreak=c?"break-all":"keep-word",m.value=l||"",u&&m.setAttribute("maxlength",u),n.appendHTML(m),(D=Wn(n,i,this,e))&&Mi(n,m,D),L.editing=!0,L.editingValue=l,L.inputDOM=m,i.iv(),I=function(e){Mi(n,m,D)},L.handleWindowClick=S=function e(t){var o=sr(m),a=ht.Default.getClientPoint(t);ht.Default.containsPoint(o,a)||(t.preventDefault(),Fn(i,0,m,L,w),n.ump(I),n.getView().removeEventListener("mousedown",e),n.getView().removeEventListener("touchstart",e))},m.addEventListener("mousedown",function(e){return e.stopPropagation()}),m.addEventListener("touchstart",function(e){return e.stopPropagation()}),Wa(function(){(d||y)&&m.addEventListener("focus",function(e){d&&m.select(),y&&y(e,i,n)}),m.focus(),n.mp(I);var t=null;m.addEventListener("keydown",function(e){t&&clearTimeout(t),t=Wa(function(){L.editingValue=m.value,i.a(w,m.value)},10),9===e.keyCode&&(Fn(i,0,m,L,w),n.getView().removeEventListener("mousedown",S),n.getView().removeEventListener("touchstart",S)),g&&g(e,i,n)}),(f||p)&&(m.addEventListener("keyup",function(e){f&&f(e,i,n),vn&&p&&p(m.value,i,n)}),vn||m.addEventListener("input",function(e){p&&p(m.value,i,n)})),x&&m.addEventListener("blur",function(e){x(e,i,n)}),n.getView().addEventListener("mousedown",S),n.getView().addEventListener("touchstart",S)},1))}},{key:"onDrag",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=X(this,"value",t);r.editing&&r.inputDOM&&(o&&o.isMovable&&!1===o.isMovable(t)||(Fn(t,0,r.inputDOM,r,l),o.getView().removeEventListener("mousedown",r.handleWindowClick),o.getView().removeEventListener("touchstart",r.handleWindowClick)))}}]),t}(),Da=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onEnter",value:function(e,t,o,a,i,n){t=Ye(o,t,this);t.defaultCursor=o.getView().style.cursor,t.disabled?E(o,"not-allowed"):E(o,"text")}},{key:"onLeave",value:function(e,t,o,a,i,n){t=Ye(o,t,this);E(o,t.defaultCursor)}},{key:"onDown",value:function(e,i,n,t,o,a){var r,l,s,u,h,c,d,g,f,p,v,y,x,m,b,w,k,C,T,V,D,I,S,L,B=Ye(n,i,this);B.disabled||B.editing||(r=B.font,l=B.value,s=B.textAlign,u=B.maxLength,b=B.textColor,h=B.inputType,c=B.enterEndInputable,D=B.padding,d=B.onKeyDown,g=B.onKeyUp,f=B.onChange,p=B.selectTextOnFocus,v=B.onBlur,y=B.onFocus,x=i.getAnchorRect(),m=_i(),b=b||Ui.textColor,w=m.style,k=X(this,"value",i),C=(D=je(Pi(D),4))[0],T=D[1],V=D[2],D=D[3],h&&(m.type=h),w.color=b,w.font=r,w.paddingTop=C+"px",w.paddingRight=T+"px",w.paddingBottom=V+"px",w.paddingLeft=2+D+"px",w.lineHeight=x.height+"px",w.textAlign=s,m.value=l||"",m.spellcheck=!1,u&&m.setAttribute("maxlength",u),n.appendHTML(m),(I=Wn(n,i,this,e))&&Mi(n,m,I),B.editing=!0,B.editingValue=l,B.inputDOM=m,i.iv(),S=function(e){Mi(n,m,I)},L=function e(t){var o=sr(m),a=ht.Default.getClientPoint(t);ht.Default.containsPoint(o,a)||(t.preventDefault(),Fn(i,0,m,B,k),n.ump(S),n.getView().removeEventListener("mousedown",e),n.getView().removeEventListener("touchstart",e))},m.addEventListener("mousedown",function(e){return e.stopPropagation()}),m.addEventListener("touchstart",function(e){return e.stopPropagation()}),B.handleWindowClick=L,Wa(function(){(p||y)&&m.addEventListener("focus",function(e){p&&m.select(),y&&y(e,i,n)}),m.focus(),n.mp(S);var t=null;m.addEventListener("keydown",function(e){t&&clearTimeout(t),t=Wa(function(){B.editingValue=m.value,i.a(k,m.value)},10),(9===e.keyCode||c&&ht.Default.isEnter(e))&&(Fn(i,0,m,B,k),n.getView().removeEventListener("mousedown",L),n.getView().removeEventListener("touchstart",L)),d&&d(e,i,n)}),g&&m.addEventListener("keyup",function(e){g(e,i,n)}),f&&m.addEventListener("input",function(e){f(m.value,i,n)}),v&&m.addEventListener("blur",function(e){v(e,i,n)}),n.getView().addEventListener("mousedown",L),n.getView().addEventListener("touchstart",L)},1))}},{key:"onDrag",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=X(this,"value",t);r.editing&&r.inputDOM&&(o&&o.isMovable&&!1===o.isMovable(t)||(Fn(t,0,r.inputDOM,r,l),o.getView().removeEventListener("mousedown",r.handleWindowClick),o.getView().removeEventListener("touchstart",r.handleWindowClick)))}}]),t}(),mc=ht.Default.containsPoint,$=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onEnter",value:function(e,t,o,a,i,n){t=Ye(o,t,this);t.defaultCursor=o.getView().style.cursor,t.disabled?E(o,"not-allowed"):E(o,"text")}},{key:"onLeave",value:function(e,t,o,a,i,n){t=Ye(o,t,this);E(o,t.defaultCursor)}},{key:"onDown",value:function(e,i,n,t,o,a){var r,l,s,u,h,c,d,g,f,p,v,y,x,m,b,w=Ye(n,i,this),k=Wn(n,i,this,e),C=w.buttonRects,T=w.onKeyDown,V=w.onKeyUp,D=w.onChange,I=w.min,S=w.max,L=w.onBlur,B=w.onFocus,t={x:t.x+k.rect.x,y:t.y+k.rect.y},k=C&&(mc(C[0],t)||mc(C[1],t));w.disabled||(w.editing||k?k&&(k=w.step,r=X(this,"value",i))&&(c=w.dom&&w.dom.value||i.a(r)||I||0,mc(C[0],t)?(y=function(e,t){var o,a,i,n;try{o=e.toString().split(".")[1].length}catch(e){o=0}try{a=t.toString().split(".")[1].length}catch(e){a=0}return n=Math.abs(o-a),i=Math.pow(10,Math.max(o,a)),t=0t.height&&e.x-t.x>t.width-a}}]),a}();function Dc(e){return e.touches?e.touches[0]||e.changedTouches[0]:e}Pn(Vc,{ms_ac:["rowHeight","iconWidth","iconHeight","activeColor","hoverBackground","dropBorderWidth","dropBorderColor"],_rowHeight:26,_iconWidth:20,_iconHeight:20});var Ic=function(){d(h,Vc);var u=g(h);function h(e,t,o,a,i){c(this,h),(n=u.call(this)).setSelectionMode(i?Xi:Zi),n._master=e,n._masterGraph=t,n._vectorInfo=o,n._valueName=a,n._transition=!1,n._documentClickHandler=Hr(i=n.documentClickHandler).call(i,y(n)),n._previousValue=null,n.dm().setAutoAdjustIndex(!1),n.setInteractors([new ht.graph.ScrollBarInteractor(y(n)),new ht.graph.MoveInteractor(y(n)),new ht.graph.DefaultInteractor(y(n)),new ht.graph.TouchInteractor(y(n),{selectable:!1})]);var n,r=n.getView().style,l=(r.height=0,r.boxShadow="rgba(0, 0, 0, 0.3) 0px 8px 22px",Oi(r,"transition","all 0.3s esse-in"),!1),s=null;return n.mi(function(e){var t=n._searchInputBox;"onDown"===e.kind?t&&ht.Default.containedInView(e.event,t)||(e.event.preventDefault(),e.event.stopPropagation(),s={x:Dc(e.event).clientX,y:Dc(e.event).clientY}):"onDrag"===e.kind?s&&2<=ar(s,{x:Dc(e.event).clientX,y:Dc(e.event).clientY})&&(l=!0):"onEndDrag"===e.kind?Wa(function(){l=!1,s=null},1):l||"onUp"!==e.kind||"data"!==e.type||t&&ht.Default.containedInView(e.event,t)||n._transition||e.data.a("disable")||n.handleSelectData(e.data)}),n.sm().ms(function(e){n.dm().each(function(e){e instanceof ht.Text&&e.s("text.color",n.getLabelColor(e))})}),n.mp(function(e){"background"===e.property&&(r.background=e.newValue)}),n.getView().addEventListener("mousemove",function(e){var t=n._hoverData,e=n.getDataAt(e);e!==t&&(n._hoverData=e&&n.sm().contains(e)?null:e,n._hoverData instanceof ht.Text?n._hoverData.s("text.color",n.getLabelColor(n._hoverData)):n._hoverData&&n._hoverData.s("lable.color",n.getLabelColor(e)),t instanceof ht.Text?t.s("text.color",n.getLabelColor(t)):t&&t.s("lable.color",n.getLabelColor(t)),n.redraw(),e)&&e.a("disable")&&(n._hoverData=null),e&&e.a("disable")?n.getView().style.cursor="not-allowed":n.getView().style.cursor=null}),n._initStyleByMaster(),n}return s(h,[{key:"handleScroll",value:function(e){var t=(this._vectorInfo||{}).scrollSpeed,t=void 0===t?1:t,t=pn?-e.detail*t:e.wheelDelta/40*t;!pn&&e.wheelDelta===e.wheelDeltaX||this.translate(0,t)}},{key:"_initStyleByMaster",value:function(){var e=0r&&n.shift(),t.a(this._valueName,n)}a&&a(this._previousValue,n,t,this._masterGraph),this._previousValue=n,i!==Zi&&!this._vectorInfo.hideSelected||this.close()}}},{key:"setSelectionMode",value:function(e){Xi!==e&&Zi!==e||this.sm().setSelectionMode(e)}},{key:"getNodeValue",value:function(e){return e.a("value")||e.s("label")||e.s("text")}},{key:"getNodeLabel",value:function(e){return e.s("label")||e.s("text")||e.a("value")}},{key:"setData",value:function(e){var t,a=this,i=this.dm();i.clear(),e&&e.length&&(this._vectorInfo.searchInputVisible&&((t=new ht.Text).s("text",""),t.a("_isInputNode",!0),t.setX(8),t.setAnchorX(0),i.add(t)),ze(e).call(e,function(e){var t,o=Fe(e.label)?e.label:Fe(e.value)?e.value:"";e.icon?((t=new ht.Node).setImage(e.icon),t.s({interactive:!0,preventDefaultWhenInteractive:!1,pixelPerfect:!1,"image.stretch":"uniform",label:o,"label.position":20,"label.offset.x":4,"label.font":a.getDropLabelFont()})):(t=new ht.Text).s({interactive:!0,preventDefaultWhenInteractive:!1,text:o,pixelPerfect:!1,"text.color":e.disable?a._vectorInfo.textDisableColor:a.getLabelColor(t),"text.font":a.getDropLabelFont()}),t.setX(8),t.setAnchorX(0),t.a(e),i.add(t)}),this.setDropHeight(Math.min(this.getMaxHeight(),e.length*this.getRowHeight())))}},{key:"getValue",value:function(){var t,o=this,e=this.sm(),a=e.getSelection(),e=e.getSelectionMode();return Zi===e?0===a.size()?null:this.getNodeValue(a.get(0)):Xi===e?(t=[],a.each(function(e){t.push(o.getNodeValue(e))}),t):null}},{key:"__getLabel",value:function(){var t,o=this,e=this.sm(),a=e.getSelection(),e=e.getSelectionMode();return Zi===e?0===a.size()?null:this.getNodeLabel(a.get(0)):Xi===e?(t=[],a.each(function(e){t.push(o.getNodeLabel(e))}),t):null}},{key:"toggle",value:function(){this._transition||(this._opened?this.close():this.open())}},{key:"__scrollToIndex",value:function(e){this.dm().getDatas(),this.sm();var t=this.getMaxHeight(),o=this.getRowHeight(),a=this._masterGraph;to.height&&s-t.height>n&&(s=s-n-t.height,u="50% 100%"),l+i>o.width&&(l=o.width-i),a.left=l+"px",a.top=s+"px",Oi(a,"transformOrigin",u),this._vectorInfo.searchInputVisible&&(this._addSearchInput(),n=this._rowHeight,this._vectorInfo.dropDownSyncZoom&&(n=this._rowHeight*e.getZoom()),this._searchInputBox.style.position="absolute",this._searchInputBox.style.width="100%",this._searchInputBox.style.height=n+"px",this._searchInputBox.style.background=r.dropBackground,this._searchInput.style.width="100%",this._searchInput.style.height="100%",ht.Default.callLater(function(){var e,t=this._vectorInfo.searchInputStyle||{};for(e in t)this._searchInput.style[e]=t[e]},this,null,10))}},{key:"onOpen",value:function(){}},{key:"close",value:function(){var e,t,o=this;this._transition||(t=(e=this.getView()).style,this._vectorInfo.editing=!1,this._master.iv(),this._transition=!0,this.unRegisterCloseEvent(this._documentClickHandler),Oi(t,"transform","scaleY(0)"),Wa(function(){yn(e),o._transition=!1,o.setOpened(!1)},301),hr(this),this._vectorInfo.searchInputVisible&&this._removeSearchInput())}},{key:"registerCloseEvent",value:function(e){var t=this._masterGraph.getView();document.addEventListener("touchstart",e),t.addEventListener("touchstart",e),document.addEventListener("mousedown",e),t.addEventListener("mousedown",e)}},{key:"unRegisterCloseEvent",value:function(e){var t=this._masterGraph.getView();document.removeEventListener("touchstart",e),t.removeEventListener("touchstart",e),document.removeEventListener("mousedown",e),t.removeEventListener("mousedown",e)}},{key:"_addSearchInput",value:function(){var t=this;this._searchInputBox=document.createElement("div"),this._searchInput=document.createElement("input"),this._searchInput.setAttribute("type","text"),this._searchInput.classList.add("ht-vector-search-input"),this._searchInputBox.appendChild(this._searchInput),this.getView().appendChild(this._searchInputBox),this._searchInputEvent=function(e){var o=t._searchInput.value;t.dm().each(function(e){var t;e.a("_isInputNode")||(""!==o?(t=e.a("label")||"",e.s("2d.visible",-1l/2)*(n<0?-l:l)),e.a(t,o),a&&a(s,o,e,i)}function Rc(e,t,o,a,i,n){var r=t.max,l=t.min,s=t.step,o=(o.x-a.x)/a.width*(r-l)+l,u=(a=t.value)[0],h=a[1],c=X(t.comp,"value",e),d=t.onChange,l=(o=Math.min(r,o),o=Math.max(l,o),s&&(o=o-(r=o%s)+(Math.abs(r)>s/2)*(r<0?-s:s)),null);return l=t.dragging?(r=t.dragging)<=o?[r,o]:[o,r]:(s=Math.abs(u-o),Math.abs(h-o)<=s?[u,o]:[o,h]),n||e.a(c,l),d&&d(a,l,e,i),o}function Pc(e,t){if(t&&0n-m||x.scrollBarY&&a.x>i-m))r.scrollBarVisible=!0,t.iv(),Hl(t,r);else if(Q(v,w)&&!Ri(e)&&r.rowHoverable?(f&&(null!=y&&null!==b&&b<=l.length&&y<=s.length&&h&&c&&h[y].key?(D=h[y],I=c[b],C=d[b],n=g[y],x=I[D.key],f(e,x=D.format?D.format(x,I,C,n):x,I,D,C,n,t,o)):f(e,null,null,null,null,null,t,o)),u!==d[b]&&(r.hoverIndex=d[b],t.iv())):Fe(r.hoverIndex)&&(r.hoverIndex=null,t.iv()),p&&!r.resizeBeginPoint&&O&&Q(p,w)&&!r._beginDrag){for(var A,_=r.resizeRects,M=0;M<_.length;M++)if(Q(_[M],w)){A=M;break}r.resizeColIndex=A,Fe(A)?E(o,"ew-resize"):E(o,"default")}}}},{key:"onLeave",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d=Ye(o,t,this),g=(d.hoverIndex=null,t.iv(),d.onHoverCell);g&&g(e,null,null,null,null,null,t,o),E(o,"default"),d._previousHoverCellImageInfo&&(g=d.drawCellImageInfo,r=d.dataSource,l=d.columns,s=d.handleCellImage,u=(c=d._previousHoverCellImageInfo).oldIndex,h=c.oldRowIndex,c=c.oldColIndex,s("onLeave",e,g[u],r[h],l[c],h,c,t,o),delete d._previousHoverCellImageInfo)}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){_l.apply(this,arguments);var r,l,o=Ye(o,t,this);Fe(o.resizeColIndex)&&(r=o.colWidths,t=o.rawColIndexs,l=o.rawCols,o.resizeSourceWidth=r[t[o.resizeColIndex]],o.resizeBeginPoint=a,ze(l).call(l,function(e,t){e.width=r[t]}))}},{key:"onDrag",value:function(e,t,o,a,i,n){var r,l,s,u,h,o=Ye(o,t,this),c=o.resizeBeginPoint;c?(l=o.rawCols,s=o.rawColIndexs,h=o.resizeColIndex,r=o.resizeSourceWidth,u=o.resizeRects,l=l[s[h]],s=a.x-c.x,c=(a=u[h]).x,u=a.y,h=a.width,a.height,o.resizeDragPoint={x:c+h/2,y:u},l.width=Math.max(r+s,1),t.iv()):Ml.apply(this,arguments)}},{key:"onEndDrag",value:function(e,t,o,a,i,n){Ol.apply(this,arguments);var r,l,s,o=Ye(o,t,this);o.resizeBeginPoint&&(r=X(this,"translateX",t),t.a(r),l=o.colWidths,s=0,ze(l).call(l,function(e){s+=e}),delete o.resizeBeginPoint,delete o.resizeDragPoint,delete o.resizeColIndex,sr&&(l=[r-(d[1]-d[0]),r]),u.draggingValueBar=a,t.a(s,l),h)&&(o=l.join(","),c&&(o=Ge(l).call(l,function(e){return c(e)}).join(", ")),B.show(o,e))}},{key:"onEndDrag",value:function(e,t,o,a,i,n){o=Ye(o,t,this);delete o.dragging,delete o.draggingValueBar,B.hide()}}]),t}(),jc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var r,l,s,u=Ye(o,t,this),h=X(this,"value",t);!u.disabled&&h&&((r=u.dropDown)&&r.isOpened()?r.close():(l=(r=u.value)?Me(r).call(r,0):null,s=u.valueItemInfo,(a=Pc(H(o,t,this,a,e),s))&&r&&0<=Oe(r).call(r,a)&&(e=Oe(r).call(r,a),Ii(r).call(r,e,1),s=Me(r).call(r,0),t.a(h,s),u.onChange&&u.onChange(l,s,t,o),E(o,"default"),this._hitValue=r)))}},{key:"onUp",value:function(e,t,o,a,i,n){var r,l,s,u=Ye(o,t,this);u.disabled||(this._hitValue?delete this._hitValue:(r=X(this,"value",t),u.bodyRect,l=u.scrollInfo,s=u.scrollBarInteractiveSize,H(o,t,this,a,e),0n-s||l.scrollBarY&&a.x>i-s)||Sc(t,o,u,r,!0))))}},{key:"onMove",value:function(e,t,o,a,i,n){var r,l,s=Ye(o,t,this);s.disabled?E(o,"not-allowed"):(r=s.valueItemInfo,e=H(o,t,this,a,e),Pc(e,r)?(this._oldCursor=o.getView().style.cursor,E(o,"pointer")):E(o,"default"),r=s.bodyRect,o=s.scrollInfo,l=s.scrollBarInteractiveSize,Q(r,e)&&s.autoHideScrollBar&&o&&(o.scrollBarX&&a.y>n-l||o.scrollBarY&&a.x>i-l)&&(s.scrollBarVisible=!0,t.iv(),Hl(t,s)))}},{key:"onEnter",value:function(e,t,o,a,i,n){t=Ye(o,t,this);t.disabled?E(o,"not-allowed"):E(o,"pointer"),t.disabled}},{key:"onLeave",value:function(e,t,o,a,i,n){E(o,"default")}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){_l.apply(this,arguments)}},{key:"onDrag",value:function(e,t,o,a,i,n){Ml.apply(this,arguments)}},{key:"onEndDrag",value:function(e,t,o,a,i,n){Ol.apply(this,arguments)}},{key:"onScroll",value:function(e,t,o,a,i,n){El.apply(this,arguments)}}]),t}(),zc=ht.Default.containsPoint,Gc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDoubleClick",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.treeTableDataModel,t=e.scrollBarInfo,r=e.translateX,l=e.translateY,s=e.isScrollBarDragging,u=e.rectInfo;o&&(s?e.isScrollBarDragging=!1:Ac(t,r,l,a)||u&&(s=u.togglesRect,t=u.visibleRowsRect,"doubleClickRow"===o.a("expandMode")&&o.onClickToggle(arguments,a,s)||"doubleClickRow"===o.a("selectMode")&&o.onClickVisibleRow(arguments,a,t,e)))}},{key:"onClick",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.treeTableDataModel,t=e.scrollBarInfo,r=e.translateX,l=e.translateY,s=e.isScrollBarDragging,u=e.rectInfo;o&&(s?e.isScrollBarDragging=!1:Ac(t,r,l,a)||u&&(s=u.togglesRect,t=u.checksRect,r=u.visibleRowsRect,l=u.badgesRect,o.onClickBadge(arguments,a,l)||o.onClickCheck(arguments,a,t)||("doubleClickRow"!==o.a("expandMode")&&o.onClickToggle(arguments,a,s),"doubleClickRow"!==o.a("selectMode")&&o.onClickVisibleRow(arguments,a,r,e))||o.onClickBack(arguments)))}},{key:"onMove",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),r=e.treeTableDataModel,l=e.scrollBarInfo,s=e.translateX,u=e.translateY,h=e.isScrollBarDragging,c=e.rectInfo,d=e.preHoverNode;r&&!h&&(Ac(l,s,u,a)?d&&(d.a("disabled")&&E(o,"default"),d.a("_isHovering",!1),t.iv()):c&&(h=c.visibleRowsRect,r.onHoverRow(arguments,a,h,d,e)))}},{key:"onLeave",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.preHoverNode;l&&(E(o,"default"),l.a("_isHovering",!1),delete r.preHoverNode,t.iv())}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.scrollBarInfo,t=e.translateX,r=e.translateY;Ac(o,t,r,a)&&(e.isScrollBarDragging=!0),_l.apply(this,arguments)}},{key:"onDrag",value:function(e,t,o,a,i,n){Ml.apply(this,arguments)}},{key:"onEndDrag",value:function(e,t,o,a,i,n){o=Ye(o,t,this);o&&(o.isScrollBarDragging=!1),Ol.apply(this,arguments)}},{key:"onScroll",value:function(e,t,o,a,i,n){El.apply(this,arguments)}}]),t}(),Uc=ht.Default.containsPoint,Yc=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var a=H(o,t,this,a,e),e=Ye(o,t,this),o=e.treeTableDataModel,t=e.scrollBarInfo,r=e.translateX,l=e.translateY,s=e.isScrollBarDragging,u=e.rectInfo;o&&(s?e.isScrollBarDragging=!1:_c(t,r,l,a)||u&&(s=u.togglesRect,t=u.checksRect,r=u.visibleRowsRect,o.onClickHeadCell(arguments,a)||o.onClickCheck(arguments,a,t)||o.onClickToggle(arguments,a,s)||o.onClickVisibleRow(arguments,a,r,e)||o.onClickBack(arguments)))}},{key:"onMove",value:function(e,t,o,a,i,n){var r=H(o,t,this,a,e),a=Ye(o,t,this),e=a.treeTableDataModel,l=a.scrollBarInfo,s=a.translateX,u=a.translateY,h=a.isScrollBarDragging,c=a.rectInfo,d=a.preHoverNode;if(e&&!h)if(_c(l,s,u,r))d&&(d.a("disabled")&&E(o,"default"),d.a("_isHovering",!1),t.iv());else{c&&(h=c.visibleRowsRect,e.onHoverRow(arguments,r,h,d,a));var g=!1;if(e.a("headLineDraggable")){for(var f=e.a("columnLinesRect"),p=0,v=f.length;pg.x&e.positionka(t)?1:-1})),o=oo(i),r=0;rs/2)*(a<0?-s:s)),null);return r=Fe(i)?i<=o?[i,o]:[o,i]:(l=Math.abs(u-o),Math.abs(t-o)<=l?[u,o]:[o,t]),!n&&e&&e(r),o}function _d(e,t,o,a,i,n){var r=t.max,l=t.min,s=t.step,u=r-l,o=t.inverse?(o.y-a.y)/a.height*u+l:(a.height-(o.y-a.y))/a.height*u+l,u=(a=t.value)[0],t=a[1],r=(o=Math.min(r,o),o=Math.max(l,o),s&&(o=o-(a=o%s)+(Math.abs(a)>s/2)*(a<0?-s:s)),null);return r=Fe(i)?i<=o?[i,o]:[o,i]:(l=Math.abs(u-o),Math.abs(t-o)<=l?[u,o]:[o,t]),!n&&e&&e(r),o}function Md(e,t,o,a,i){var n=o.x,r=o.y,l=o.width,o=o.height;return((o=i?o:l)-((i?a.y:a.x)-(i?r:n)))/o*(t-e)+e}function Od(s,e,t,o,a,i,n){var u,r=(l=Ye(t,e,o)).ui,l=l.option,h=r.bounds.bodyRect,c=H(t,e,o,a,s);if(r&&l&&Q(h,c))return t=r.xAxisDataZoom,e=r.yAxisDataZoom,o=t?t.slider:null,a=e?e.slider:null,u=!1,ze(l=[o,a]).call(l,function(e){var t,o,a,i,n,r,l;e&&(t=e.value,n=e.zoomIncrement,o=e.min,a=e.max,i=e.setter,n=(a-o)*n*(0t.time?1:-1}),b.length&&(h=function(e,t){var o,a,i=t.length;if(1===i)return t[0];for(;1!==i;){var n=Math.floor(i/2),r=t[n],l=r.time;if(e===l)return r;if(g=Math.abs(e-l),Fe(o)&&as&&(a=[s-(u[1]-u[0]),s]),r(a),c=a.join(","),h&&(c=Ge(a).call(a,function(e){return Ed(e,h,t,o)}).join(",")),B.show(c,e)):g.body&&ze(u=g.info).call(u,function(e){var t=e.info,o=t.barRect,a=t.setter,i=t.min,t=t.max,n=e.info.value,r=e.draggingValue,n=Md(n[0],n[1],o,l,e.axis===he)-r,o=(e.axis===he&&(n=-n),e.info.value),r=[o[0]+n,o[1]+n];r[0]t&&(r=[t-(o[1]-o[0]),t]),a(r)}),t.iv())}},{key:"onEndDrag",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d,g,f,p=Ye(o,t,this);p&&(delete p.sliderInfo,delete p.dragging,B.hide(),p._dragging)&&(r=p.ui,l=p.option,s=r.rectPoint1,u=r.rectPoint2,h=r.valueAxis,c=l.xAxis,d=l.yAxis,g=xr(s,u),delete p._dragging,delete p.rectPoint1,delete p.rectPoint2,t.iv(),g)&&(f={x:[],y:[]},ze(c).call(c,function(e){e.type;var t,o,a,i,n=[],e=(f.x.push(n),e._axisObj.zoomTimeRange);e&&(t=(e=je(e,2))[0],o=(e=e[1])-t,i=r.bounds.bodyRect,a=Math.floor((g.x-i.x)/i.width*o+t),i=Math.floor((g.x-i.x+g.width)/i.width*o+t),a=Math.max(a,t),i=Math.min(i,e),n.push(a),n.push(i))}),ze(d).call(d,function(e){var t,o,a,i,n=[];f.y.push(n),he===h&&(t=(e=je(e._axisObj.zoomValueRange,2))[0],e=e[1],a=((i=r.bounds.bodyRect).height-g.height-g.y+i.y)/i.height*(o=e-t)+t,i=(i.height-g.y+i.y)/i.height*o+t,a=Math.max(a,t),i=Math.min(i,e),n.push(a),n.push(i))}),l.onRectSelected(f,t,o))}},{key:"onDown",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.ui,s=r.option;if(l&&s&&!r.dragging){var u=l.xAxisDataZoom,h=l.yAxisDataZoom,c=H(o,t,this,a,e),u=u?u.slider:null,h=h?h.slider:null,u=(u&&Q(u.barRect,c)&&!r.sliderInfo&&(Ad(u.setter,u,c,u.barRect),t.iv()),h&&Q(h.barRect,c)&&!r.sliderInfo&&(_d(h.setter,h,c,h.barRect),t.iv()),s.onItemClicked);if(u&&ht.Default.isFunction(u)){var r=l.interactiveInfo,c=l.seriesDatas,h=l.bounds.bodyRect,l=r.axisInfos,r=s.xAxis[0]._axisObj.zoomTimeRange,d=r[0],g=r[1],f={},p=[],v=Ge(r=s.series).call(r,function(e){return e.name}),s=H(o,t,this,a,e);if(Q(h,s)&&l.length){var y,x,m=s.x,b=1/0,w=l[0];for(x in ze(c).call(c,function(e,a){var i;e&&(i={},ze(e).call(e,function(e){var t,o=e[0];ot.time?1:-1});for(var k=0;kn.height?n.height:n.width)*e:e}l.beginPath(),We(t)&&We(o)&&We(a)?xe(l,n.x,n.y,n.width,n.height,i(e)):xe(l,n.x,n.y,n.width,n.height,i(e),i(t),i(o),i(a)),l.closePath(),Ue(l).call(l)}var r=ir(l,"function"==typeof m?m(v[e],e,vr(u.color,e),h.data,h.view):m,n);B?B(l,v[e],n,{defaultDraw:t,index:e,boundary:{x:n.x,y:o,width:n.width,height:a},color:r,data:h.data,view:h.view}):t()}),l.restore())},tg=function(i,e,t,o,n){var r,l,s,a,u,h,c,d,g,f,p,v,y,x,m=n.seriesDatas[t],b=n.data,w=n.view,O=e.name,k=e.itemStyle||{},C=e.lineStyle||{},E=e.areaStyle||{},T=e.diffAreaStyle||{},V=n.bounds,V=(V.xAxisRects,V.yAxisRects,V.bodyRect),D=V.x,I=V.y,S=V.width,H=V.height,L=vr(o.color,t),t=o.xAxis[e.xAxisIndex||0],o=o.yAxis[e.yAxisIndex||0],B=(t._axisObj.unitWidth,o._axisObj.valueRange),o=n.hoverIndex,R=B[0],P=B[1],W=t._axisObj.axisInfos,t=e.smooth,F=!!e.connectNulls,A=[],_=[],N=null,M=[];m&&m.length&&W&&(r=n.interactiveInfo.axisInfos[n.valueAxis===he?e.xAxisIndex||0:e.yAxisIndex||0],l=[],n.diffPointsList.push(l),ze(m).call(m,function(e,t){var o,a;W[t]&&(o={x:W[t].position,y:Wd([I,I+H],B,e,!0)},Fe(e)?(a=N?2:1,F&&1===a&&_.length&&(a=2),A.push(o),_.push(a),N=a,r[t].series.push([O,e,C.color||L,o.x,o.y]),M.push(o)):(r[t].series.push([O,"-",C.color||L,o.x,o.y]),N=null,M.push(null)),l.push(o))}),Me(A).call(A,0),t&&2<=A.length&&(e=er(A,"number"==typeof t?t:void 0),A=e.points,_=e.segments),i.save(),i.beginPath(),i.rect(D,I,S,H),i.clip(),T&&Fe(T.targetIndex)&&(t=n.diffPointsList[T.targetIndex],e=Me(t).call(t,0),S=$d(D=Me(l).call(l,0)).call(D),e=Ee(e).call(e,S),qn(i,e),i.fillStyle=ir(i,T.color,xr(e)),Ue(i).call(i)),E.color&&(t=A[0],D=A[A.length-1],S=Hd(V,R,P),qn(i,A,_),i.lineTo(D.x,S),i.lineTo(t.x,S),i.closePath(),i.fillStyle=ir(i,E.color,V),Ue(i).call(i)),T=C.color||L,i.lineWidth=C.width||2,i.strokeStyle=ir(i,T),n.seriesColors.push(T),C.pattern&&i.setLineDash(C.pattern),qn(i,A,_),i.stroke(),i.restore(),s=k.size||0,a=k.activeSize||3,s||1!==A.length||(s=1),e=k.background,u=void 0===e?T:e,R=k.borderWidth,h=void 0===R?1:R,P=k.borderColor,c=void 0===P?T:P,d=k.visible,g=k.image,f=k.drawItem,!1!==d&&ze(M).call(M,function(e,t){i.beginPath();var o,a=s;e&&a&&("function"!=typeof d||!active&&d(e,t,m,active,b,w))&&(f?(o={x:e.x-a,y:e.y-a,width:2*a,height:2*a},f(i,m[t],o,{point:e,seriesData:m,index:t,data:b,view:w,active:n.hoverIndex===t})):g?mr(i,wr(g),"uniform",e.x-a,e.y-a,2*a,2*a):(a&&i.arc(e.x,e.y,a,0,2*Math.PI),u&&(i.fillStyle=u,Ue(i).call(i)),h&&c&&(i.lineWidth=h,i.strokeStyle=c,i.stroke())))}),void 0!==o)&&a&&(D=k.activeBackground,p=void 0===D?u:D,t=k.activeBorderColor,v=void 0===t?c:t,S=k.activeBorderWidth,y=void 0===S?h:S,n._hoverHandlers||(n._hoverHandlers=[]),x=M[o])&&("function"!=typeof d||d(x,o,m,!0,b,w))&&n._hoverHandlers.push(function(){g?mr(i,wr(g),"uniform",x.x-a,x.y-a,2*a,2*a):(i.beginPath(),i.arc(x.x,x.y,a,0,2*Math.PI),p&&(i.fillStyle=p,Ue(i).call(i)),y&&v&&(i.lineWidth=y,i.strokeStyle=v,i.stroke()))})},og=function(o,a,e,l,s){var u,h,c,d,g,i,n,f=s.seriesDatas[e],p=a.name,t=s.bounds.bodyRect,r=(t.x,t.y),v=(t.width,t.height),y=a.color||vr(l.color,e),x=l.xAxis[a.xAxisIndex||0],m=l.yAxis[a.yAxisIndex||0],b=x._axisObj.unitWidth,w=m._axisObj.valueRange,m=w[0],k=w[1],C=x._axisObj.axisInfos,T=(a.shadow,a.barWidth||.8),x=s.barSeries,V=s.barStackCount,D=s.barStackMap,V=(s.hoverIndex,x.length+V),I=Oe(x).call(x,a),S=s.barCategoryGap||0,L=(b-2*(1<=S?S:b*S))/V,B=a.label||{};if(a.stack&&D[a.stack]){var R,P,A=D[a.stack].stackData,_=0;for(R in D){if(0<=Oe(P=D[R].series).call(P,a)){I=_;break}_++}}T<1&&(T=Math.max(1,L*T)),f&&f.length&&C&&(u=[],h=s.interactiveInfo.axisInfos[s.valueAxis===he?a.xAxisIndex||0:a.yAxisIndex||0],c=Hd(t,m,k),d=[r,r+v],g=[],ze(f).call(f,function(e,t){var o,a,i,n,r="function"==typeof y?y(e,t,vr(l.color,t),s.data,s.view):y;C[t]&&(o={x:C[t].position,y:Wd(d,w,e)},A?(a=A[t]?0<=e?A[t][1]:A[t][0]:0,i=Wd(d,w,a||0),i={x:o.x-b/2+L*I+(L-T)/2+(1<=S?S:b*S),y:(o.y=r.width?e:r}),r}},{key:"caluValueRange",value:function(e){var t,o=this.axisOption,a=o.max,i=o.min,n=o.splitNumber||5,o=Math.max.apply(this,e),r=Math.min.apply(this,e),l=o=o<0?0:o,s=r,u=r<0?(Fe(a)?a:o)-(Fe(i)?i:r):Fe(a)?a:o;if(Fe(i)&&Fe(a))t=(a-i)/n;else if(Fe(a)&&a/n%1==0){var h=Fe(i)?i:s;We(i)&&0l.width&&(l=e)}),Yn(l));return s.height=l.height*e.length,t?(e=new ht.Math.Vector2(0,0),a=new ht.Math.Vector2(s.width,0),i=new ht.Math.Vector2(s.width,s.height),n=new ht.Math.Vector2(0,s.height),r=new ht.Math.Vector2(s.width/2,s.height/2),t=lr(t),e.rotateAround(r,t),a.rotateAround(r,t),i.rotateAround(r,t),n.rotateAround(r,t),xr([e,a,i,n])):s}},{key:"getBoundHeight",value:function(){var a=this,i=this.axisOption;if(i.size)return i.size;var e=this.ui,t=e.data,e=e.view;if(!i.show)return $i;var n=i.axisLabel.rotate,o=i.axisTick.show?i.axisTick.length:0,r=this.getDataZoomOption();if(r&&!1!==r.sliderVisible&&(o+=18),!i.axisLabel.show||this.isValueAxis)return o+$i;var r=zn(i.data,t,e),l=Qi;if(i.type===tn)l=this.formatter(Nd(),t,e);else if(i.type===en)return r&&ze(r).call(r,function(e,t){var o=null;Fe(e)&&(o=e.toString()),i.axisLabel.formatter&&(o=i.axisLabel.formatter(o)),n?(e=a.getTextSizeWithRotate(i.axisLabel.font,o,n),a._labelSizes[t]=e):(e=a.getTextSizeWithRotate(i.axisLabel.font,o,0),a._labelSizes[t]=e)}),o+Math.max.apply(this,Ge(t=this._labelSizes).call(t,function(e){return e.height}))+2*$i;return n?o+this.getTextSizeWithRotate(i.axisLabel.font,l,n).height+2*$i:o+ +He(i.axisLabel.font,l).height+2*$i}},{key:"draw",value:function(f){var O,a=this,i=this.ui,p=i.data,v=i.view,y=this.axisOption,E=y.type===tn,e=this.axisIndex,t=i.bounds.xAxisRects[e],x=i.boundaryGap,m=t.x,b=t.y,w=t.width,k=t.height,C=this.data||[],T=this.formatter||y.axisLabel.formatter,o=this.timeRange;if(!1!==y.show&&y.axisLine.show&&(f.save(),f.strokeStyle=y.axisLine.color,f.lineWidth=y.axisLine.width,y.axisLine.pattern&&f.setLineDash(y.axisLine.pattern),f.beginPath(),this.position===Le?(f.moveTo(m,b+k),f.lineTo(m+w,b+k)):(f.moveTo(m,b),f.lineTo(m+w,b)),f.stroke(),f.restore()),y.type===tn){C=[];if(ze(M=this.series).call(M,function(e,t){t=a.ui.seriesDatas[t];t&&t.length>C.length&&(C=Ge(t).call(t,function(e){return e[0]}))}),!(o&&o[0]&&o[1]))return;O=o[1]-o[0]}var H,V,W,F,n,D,N,I,S,r,L,l,s,B,R,u,h,c,d,g,P,j,z,G,A=0,_=0,M=1;1t.width&&!e&&(M=Math.ceil(r/t.width)),y.axisTick.show&&n&&(0===(l=Fe(y.axisTick.interval)?y.axisTick.interval:M)&&(l=1),(s=y.axisTick.drawTick)&&"function"==typeof s?ze(C).call(C,function(e,t){var o;t%l==0&&(o=m+t*_,a.position===Le?s(f,{x:o,y:b+k,tickLongness:n,label:e,index:t},i.data,i.view):s(f,{x:o,y:b,tickLongness:n,label:e,index:t},i.data,i.view))}):(f.strokeStyle=y.axisTick.color,f.beginPath(),ze(C).call(C,function(e,t){t%l==0&&(t=m+t*_,a.position===Le?(f.moveTo(t,b+k),f.lineTo(t,b+k-n)):(f.moveTo(t,b),f.lineTo(t,b+n)))}),f.stroke())),y.axisLabel.show&&(0===(B=Fe(y.axisLabel.interval)?y.axisLabel.interval:M)&&(B=1),R=[],ze(C).call(C,function(e,t){var o,a,i,n,r,l,s,u,h,c,d,g;(t%B==0||y.axisLabel.showMaxLabel&&t===C.length-1)&&("function"==typeof(o=W)&&(o=o(e.toString(),t)),a=L[t],i=H[t].position+N,We(e)&&(e=""),T&&(e=T(e,p,v)),f.save(),u=D?i:i-a.width/2,h=I,d=a.width,n=a.height,D?(0c.length&&(c=Ge(t).call(t,function(e){return e[0]}))});var x=0,m=0,r=n.axisLabel.interval;if(o?(r=r||Math.max(Math.floor(u/(y.width+10)),1),x=u/r,m=o/r):x=u/2,x&&(this.unitWidth=x,1===c.length?this.axisInfos=[{position:l+x,label:Ed(c[0],f,a,i),value:c[0]}]:this.axisInfos=Ge(c).call(c,function(e,t){return{position:(E?l+(e-p[0])/o*u:l+t*x)+H*x/2,label:Ed(e,f,a,i),value:e}}),n.axisLabel.show||n.axisTick.show)){var b=n.axisLabel.font,w=n.axisLabel.color,k=n.axisLabel.align,C=n.axisTick.length,T=(this.position===Le?s:s+2+(n.axisTick.show?n.axisTick.length:0))+F,V=n.axisLabel.drawLabel;if(n.axisTick.show&&C){var D=l,I=n.axisTick.drawTick,S=p[0],L=0;if(I&&"function"==typeof I)if(o)for(;D<=l+u+2;)I(e,{x:D,y:s,tickLongness:C,label:S,index:L},t.data,t.view),D+=x,S+=m,L++;else I(e,{x:D+u/2,y:s,tickLongness:C,label:S,index:L},t.data,t.view);else{if(e.strokeStyle=n.axisTick.color,e.beginPath(),o)for(;D<=l+u+2;)e.moveTo(D,s),e.lineTo(D,s+C),D+=x;else e.moveTo(D+u/2,s),e.lineTo(D+u/2,s+C);e.stroke()}}if(n.axisLabel.show){var B=l+W,R=p[0];if(g)if(e.font=b,e.fillStyle=w,e.textAlign=0C[1]||e=l){n=u;break}for(var h=i.length-1;0<=h;h--)if(i[h][0]<=s){r=h+1;break}i=Me(i).call(i,n,r)}if(!t)return i;var e=[],c=i.length;if(o){if(c<=o)return i;Array.prototype.push.apply(e,Ii(i).call(i,c-o,o))}var d=[];if(!(t<(c=i.length)))return o&&i.push.apply(i,e),i;var g=2*(c/t|0);if(g<3)return o&&i.push.apply(i,e),i;for(var f=0;fy[1]&&(y=b)}y[0]>x[0]?(d.push(x),d.push(y)):(d.push(y),d.push(x))}return e=Ee(d).call(d,e)}(a,r.maxVisiblePoint,r.endProtectPoint,l),y=[],x=(e.name,r.data),m=r.view,b=r.bounds.bodyRect,w=b.x,k=b.y,C=b.width,T=b.height,V=o.yAxis[e.yAxisIndex||0]._axisObj.zoomValueRange,O=V[0],E=V[1],H=i._axisObj.axisInfos,W=l[0],F=l[1]-W,o=e.smooth,N=!!e.connectNulls,D=[],I=[],S=null,L=(c&&(i=c.data,g=c.itemStyle,Xn(i))&&ze(i).call(i,function(e){var t,o,a,i;Xn(e)&&2<=e.length&&(i=H[e[0].xAxisIndex].position,t=zn(e[0].yAxisValue,x,m),t=isNaN(t)?Wd([k,k+T],V,E,!0):Wd([k,k+T],V,t,!0),o=H[e[1].xAxisIndex].position,e=zn(e[1].yAxisValue,x,m),e=isNaN(e)?Wd([k,k+T],V,O,!0):Wd([k,k+T],V,e,!0),a=xr({x:i,y:t},{x:o,y:e}),i=function(){n.save(),n.rect(b.x,b.y,b.width,b.height),n.clip(),n.fillStyle=ir(n,g.color,a),n.fillRect(a.x,a.y,a.width,a.height),n.restore()},c.drawArea?(n.save(),n.rect(b.x,b.y,b.width,b.height),n.clip(),c.drawArea(n,a,{defaultDraw:i}),n.restore()):i())}),ze(a).call(a,function(e){var t=e[0],o=e[1];Fe(o)?(t={x:w+C*((t-W)/F),y:Wd([k,k+T],V,o,!0)},D.push(t),o=S?2:1,N&&1===o&&I.length&&(o=2),I.push(o),S=o,y.push(e)):S=null}),d=Me(D).call(D,0),o&&2<=D.length&&(f="number"==typeof o?o:void 0,p=[],ze(I).call(I,function(e,t){1===e&&(v=[],p.push(v)),v.push(D[t])}),D=[],I=[],ze(p).call(p,function(e){e=er(e,f);D=Ee(D).call(D,e.points),I=Ee(I).call(I,e.segments)})),D=Ge(D).call(D,function(e){return Qn(b,e)}),n.save(),n.beginPath(),n.rect(w,k,C,T),!1!==e.clip&&n.clip(),h.color&&1n,y=[],ze(e=O?a:n).call(e,function(e,t){O?y.push([e,n[t]]):y.push([a[t],e])})),y&&y.length&&(L=T._axisObj,r=V._axisObj,B=[],l=[],s=[],ze(y).call(y,function(e,t){var o=je(e,2),a=o[0],o=o[1],i=0<=Oe(i=[Le,Be]).call(i,L.position)?{x:L.getXByValue(a),y:r.getYByValue(o)}:{x:r.getXByValue(o),y:L.getYByValue(a)};$?(B.push(i),s.push(t?2:1),l.push(e)):E=Q(A,i)?(B.push(i),l.push(e),o=E?2:1,s.push(o),o):null}),o.pointsInfo[i]={values:l,name:x,points:B},e=Me(B).call(B,0),D&&2<=B.length&&(H="number"==typeof D?D:void 0,u=[],ze(s).call(s,function(e,t){1===e&&(W=[],u.push(W)),W.push(B[t])}),B=[],s=[],ze(u).call(u,function(e){e=er(e,H);B=Ee(B).call(B,e.points),s=Ee(s).call(s,e.segments)})),S.save(),S.beginPath(),S.rect(w,k,C,z),S.clip(),t&&1s&&t+o.width/2s.x+s.width&&(i=t.x-f),e=function(){l.save();var e=i,t=h.width+6,o=h.height+6,a=n-o-3;r.position===Le&&(a=n+3),e+t+3>s.x+s.width?e=e-t-3:e+=3,l.beginPath(),xe(l,e,a,t,o,o/2),l.stroke(),l.fillStyle=b,Ue(l).call(l),yr(l,u,x,m,e,a,t,o,"center","middle"),l.restore()},w?w(l,p,v,{defaultDraw:e,bodyRect:s,position:{x:t.x,y:n},axisPosition:o,value:u,textSize:h,label:c}):e())},n?n(l,p,v,{defaultDraw:a,bodyRect:s,lineRect:xr(k,C),axisPosition:this.position,point:t,data:e}):a())},getValueByPoint:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=a.x,n=(a.y,a.width);return a.height,this.axisOption.inverse?(1-(e.x-i)/n)*t+o:(e.x-i)/n*t+o},drawMarkArea:function(n){var r,l,s,u,e,t,h,c,d=this,o=this.axisOption.markAreas;o&&((r=this.ui).data,r.view,(l=r.bounds.bodyRect).x,s=l.y,l.width,u=l.height,e=this.getDataZoomOption()||{},t=this.valueRange,h=Fe(e.min)?e.min:t[0],c=Fe(e.max)?e.max:t[1],this.position,ze(o).call(o,function(e){var t=e.color,t=void 0===t?"rgba(242,83,75,0.7)":t,o=e.range,a=e.draw,i=isNaN(o.start)?h:Math.max(h,o.start),o=isNaN(o.end)?c:Math.min(c,o.end);om&&i+a.height/2a.length&&(a=e)}),r===Le||r===Be?i?(i=Math.max(-45,i),i=Math.min(45,i),o+$n(l.axisLabel.font,a,i).height+2*$i+e):o+He(l.axisLabel.font,Qi).height+2*$i+e:(n=l.axisLabel.show?this.getMaxValueBound():{width:0,height:0},r=0,t&&!1!==t.sliderVisible&&(r+=18),r+n.width+e+2*$i)):$i}},{key:"draw",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?(bg.drawLabelTick.apply(this,arguments),bg):(wg.drawLabelTick.apply(this,arguments),wg)).drawName.apply(this,arguments)}},{key:"getXByValue",value:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=a.x,n=(a.y,a.width);return a.height,this.axisOption.inverse?i+n*(1-(e-o)/t):i+n*((e-o)/t)}},{key:"getYByValue",value:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=(a.x,a.y),a=(a.width,a.height);return this.axisOption.inverse?i+a*((e-o)/t):i+a*(1-(e-o)/t)}},{key:"getValueByPoint",value:function(e){var t,o=this.position;return(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).getValueByPoint.apply(this,arguments)}},{key:"drawSlider",value:function(e,t){var o,a=this.position;(0<=Oe(o=[Le,Be]).call(o,a)?bg:wg).drawSlider.apply(this,arguments)}},{key:"drawMarkLine",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).drawMarkLine.apply(this,arguments)}},{key:"drawAxisPointer",value:function(e,t,o){var a,i=this.position;(0<=Oe(a=[Le,Be]).call(a,i)?bg:wg).drawAxisPointer.apply(this,arguments)}},{key:"drawMarkArea",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).drawMarkArea.apply(this,arguments)}}]),n}(),Tg=function(){d(i,ug);var a=g(i);function i(e,t,o){return c(this,i),(e=a.call(this,e,t,o)).boundWidth=e.getBoundWidth()+e.getNameBound(),e}return s(i,[{key:"getNameBound",value:function(){var e,t=this.position;return(0<=Oe(e=[Le,Be]).call(e,t)?bg:wg).getNameBound.apply(this,arguments)}},{key:"caluValueRange",value:function(e){this.axisOption.autofit?this.caluValueRange2(e):this.caluValueRange1(e)}},{key:"caluValueRange1",value:function(e){var t,o=this.axisOption,a=o.max,i=o.min,n=o.splitNumber||5,o=Math.max.apply(this,e),r=Math.min.apply(this,e),l=o=o<0?0:o,s=r,u=r<0?(Fe(a)?a:o)-(Fe(i)?i:r):Fe(a)?a:o;if(Fe(i)&&Fe(a))t=(a-i)/n;else if(Fe(a)&&a/n%1==0){var h=Fe(i)?i:s;We(i)&&0=l.width?e:l}),l}},{key:"getBoundWidth",value:function(){var e,t,o,a,i,n,r,l=this.axisOption;return l.show?l.size||(i=l.axisLabel.rotate,e=l.axisTick.show?l.axisTick.length:0,t=this.getDataZoomOption(),o=0,r=this.position,t&&!1!==t.sliderVisible&&(o+=18),a=Qi,(n=this.getAxisValues())&&ze(n).call(n,function(e){e.toString().length>a.length&&(a=e)}),r===Le||r===Be?i?(i=Math.max(-45,i),i=Math.min(45,i),o+$n(l.axisLabel.font,a,i).height+2*$i+e):o+He(l.axisLabel.font,Qi).height+2*$i+e:(n=l.axisLabel.show?this.getMaxValueBound():{width:0,height:0},r=0,t&&!1!==t.sliderVisible&&(r+=18),r+n.width+e+2*$i)):$i}},{key:"draw",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?(bg.drawLabelTick.apply(this,arguments),bg):(wg.drawLabelTick.apply(this,arguments),wg)).drawName.apply(this,arguments)}},{key:"getXByValue",value:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=a.x,n=(a.y,a.width);return a.height,this.axisOption.inverse?i+n*(1-(e-o)/t):i+n*((e-o)/t)}},{key:"getYByValue",value:function(e){var t=je(this.zoomValueRange,2),o=t[0],t=t[1]-o,a=this.rect,i=(a.x,a.y),a=(a.width,a.height);return this.axisOption.inverse?i+a*((e-o)/t):i+a*(1-(e-o)/t)}},{key:"getValueByPoint",value:function(e){var t,o=this.position;return(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).getValueByPoint.apply(this,arguments)}},{key:"drawSlider",value:function(e,t){var o,a=this.position;(0<=Oe(o=[Le,Be]).call(o,a)?bg:wg).drawSlider.apply(this,arguments)}},{key:"drawMarkLine",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).drawMarkLine.apply(this,arguments)}},{key:"drawAxisPointer",value:function(e,t,o){var a,i=this.position;(0<=Oe(a=[Le,Be]).call(a,i)?bg:wg).drawAxisPointer.apply(this,arguments)}},{key:"drawMarkArea",value:function(e){var t,o=this.position;(0<=Oe(t=[Le,Be]).call(t,o)?bg:wg).drawMarkArea.apply(this,arguments)}}]),i}();function Vg(e,t){var o,a,i,n,r=t.isEmphasis,l=t.type,t=t.outFormatter,s=e.name,u=e.value,h=e.percent,c=e.seriesName,d=e.labelEmphasis,g=e.labelNormal,f=e.labelLineNormal,p=e.labelLineEmphasis,d=("label"===l?r?(o=d.font,"function"==typeof d.formatter&&(a=d.formatter(e.source,e.data,e.view))):(o=g.font,"function"==typeof g.formatter&&(a=g.formatter(e.source,e.data,e.view))):"labelLine"===l&&(r?(o=p.font,"function"==typeof p.formatter&&(a=p.formatter(e.source,e.data,e.view))):(o=f.font,"function"==typeof f.formatter&&(a=f.formatter(e.source,e.data,e.view)))),t&&(a=t),s.toString()),g=(d=a?(a=a.replace(/\n/g,"
")).replace(/\{(\w)\}/g,function(e,t){return"a"===t?c:"b"===t?s:"c"===t?u:"d"===t?(100*h).toFixed(1)+"%":e}):d).split("
");return o&&(n=(i=He(o,"e").height+1)*g.length/2),{labelTextArray:g,textHeight:i,beginHeight:n}}var Dg=ht.Default.isBoolean,Ig=function(){function t(e){c(this,t),this.initGLabel(e),this.initGLabelLine(e)}return s(t,[{key:"initGLabel",value:function(e){var t=e.getValue("label.normal.show"),o=e.getValue("label.normal.position"),a=e.getValue("label.normal.formatter"),i=e.getValue("label.normal.color"),n=e.getValue("label.normal.font"),t=(this.gLabelNormal={show:!Dg(t)||t,position:o||"center",formatter:a||function(){return""},color:i,font:n||"12px serif"},e.getValue("label.emphasis.show")),o=e.getValue("label.emphasis.position"),a=e.getValue("label.emphasis.formatter"),i=e.getValue("label.emphasis.color"),n=e.getValue("label.emphasis.font");this.gLabelEmphasis={show:!Dg(t)||t,position:o||"center",formatter:a||function(){return""},color:i,font:n||"13px serif"}}},{key:"initGLabelLine",value:function(e){var t=e.getValue("labelLine.normal.show"),o=e.getValue("labelLine.normal.length"),a=e.getValue("labelLine.normal.length2"),i=e.getValue("labelLine.normal.formatter"),n=e.getValue("labelLine.normal.width"),r=e.getValue("labelLine.normal.type"),l=e.getValue("labelLine.normal.font"),s=e.getValue("labelLine.normal.lineColor"),u=e.getValue("labelLine.normal.textColor"),t=(this.gLabelLineNormal={show:!Dg(t)||t,length:void 0===o?15:o,length2:void 0===a?10:a,formatter:i||function(){return""},width:void 0===n?1:n,type:r||"dashed",font:l||"12px serif",lineColor:s,textColor:u},e.getValue("labelLine.emphasis.show")),o=e.getValue("labelLine.emphasis.length"),a=e.getValue("labelLine.emphasis.length2"),i=e.getValue("labelLine.emphasis.formatter"),n=e.getValue("labelLine.emphasis.width"),r=e.getValue("labelLine.emphasis.type"),l=e.getValue("labelLine.emphasis.font"),s=e.getValue("labelLine.emphasis.lineColor"),u=e.getValue("labelLine.emphasis.textColor");this.gLabelLineEmphasis={show:!Dg(t)||t,length:void 0===o?15:o,length2:void 0===a?10:a,formatter:i||function(){return""},width:void 0===n?2:n,type:r||"dashed",font:l||"13px serif",lineColor:s,textColor:u}}}]),t}(),Sg=Object.assign,Lg=Object.defineProperty,Bg=a([].concat),e=!Sg||b(function(){var e,t,o,a;return ae&&1!==Sg({b:1},Sg(Lg({},"a",{enumerable:!0,get:function(){Lg(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},a="abcdefghijklmnopqrst",(e={})[o=Symbol()]=7,a.split("").forEach(function(e){t[e]=e}),7!=Sg({},e)[o])||lo(Sg({},t)).join("")!=a})?function(e,t){for(var o=qe(e),a=arguments.length,i=1,n=vs.f,r=Pt.f;i")).call(a,l)),Wg.innerHTML=l,B.show(Wg,e)}else if(B.hide(),s.series)for(var w=s.series.length-1;0<=w;w--){var k=s.series[w],C=k.lineStyle||{};if((!C.width||0!=C.width)&&x[w]){C=x[w].points;if(C)if(dr(C,null,h)<((k.lineStyle||{}).width||2)/2+y){v=w;break}}}a=r.hitSeriesIndex,l=r.hitPointIndex,e=(r.hitSeriesIndex=d,r.hitPointIndex=g,r.selectSeriesIndex);r.selectSeriesIndex=v,l===g&&a===d&&e===v||t.iv()}r.axisPointerPoint!=(r.axisPointerPoint=h)&&t.iv(),(u||c)&&(l=r.sliderInfo={info:[],body:!0},u&&l.info.push({axis:Ji,info:u}),c)&&l.info.push({axis:he,info:c})}else r.axisPointerPoint&&(delete r.axisPointerPoint,t.iv()),u&&0!=u.dataZoom.sliderVisible&&(Q(Nn(u.sliderRect,3),h)||Q(Nn(u.sliderRect2,3),h)||Q(u.valueBarRect,h))?(E(o,"ew-resize"),r.sliderInfo={axis:Ji,info:u}):c&&0!=c.dataZoom.sliderVisible&&(Q(Nn(c.sliderRect,3),h)||Q(Nn(c.sliderRect2,3),h)||Q(c.valueBarRect,h))?(E(o,"ns-resize"),r.sliderInfo={axis:he,info:c}):(delete r.sliderInfo,E(o,"default"))}}},{key:"onDown",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.ui,s=r.option;l&&s&&!r.dragging&&(s=l.xAxisDataZoom,l=l.yAxisDataZoom,o=H(o,t,this,a,e),a=s?s.slider:null,s=l?l.slider:null,a&&0!=a.dataZoom.sliderVisible&&Q(a.barRect,o)&&!r.sliderInfo&&(Ad(a.setter,a,o,a.barRect),t.iv()),s&&0!=s.dataZoom.sliderVisible&&Q(s.barRect,o)&&!r.sliderInfo&&(_d(s.setter,s,o,s.barRect),t.iv()),Dn(e))&&(a&&a.setter([a.min,a.max]),s&&s.setter([s.min,s.max]),t.iv())}},{key:"onLeave",value:function(e,t,o,a,i,n){var r=Ye(o,t,this);Fe(r.axisPointerPoint)&&(delete r.axisPointerPoint,t.iv()),Fe(r.hitPointIndex)&&(delete r.hitSeriesIndex,delete r.hitPointIndex,B.hide(),t.iv()),r.dragging||E(o,"default")}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){var r,l,s,u=Wn(o,t,this,e),h=Ye(o,t,this),c=h.sliderInfo,d=h.ui,g=h.option;if(h&&g.onRectSelected){void 0!==h.hoverIndex&&(delete h.hoverIndex,t.iv(),B.hide());var g=d.bounds.bodyRect,d={x:a.x+u.rect.x,y:a.y+u.rect.y};if(Q(g,d))return h._dragging=!0,void(h.rectPoint1=d)}c&&(g=(u=c.info).sliderRect,d=u.sliderRect2,r=u.valueBarRect,l=u.value,u=u.barRect,s=H(o,t,this,a,e),h.dragging=!0,c.body?ze(o=c.info).call(o,function(e){e.draggingValue=Md(e.info.value[0],e.info.value[1],e.info.barRect,s,e.axis===he)}):Q(Nn(g,3),s)?c.fixed=l[1]:Q(Nn(d,3),s)?c.fixed=l[0]:Q(r,s)&&(Ji===c.axis?c.draggingValue=Ad(null,c.info,s,u,null,!0):c.draggingValue=_d(null,c.info,s,u,null,!0)))}},{key:"onDrag",value:function(e,t,o,a,i,n){var l,r,s,u,h=Wn(o,t,this,e),c=Ye(o,t,this),d=c.sliderInfo,g=c.option,f=c.ui.bounds.bodyRect;c&&c._dragging&&(h={x:a.x+h.rect.x,y:a.y+h.rect.y},c.rectPoint2=Qn(f,h),c._drawTimer&&clearTimeout(c._drawTimer),c._drawTimer=Wa(function(){t.iv(),delete c._drawTimer},2)),c.dragging&&d&&(u=(h=d.info).barRect,s=h.setter,h.sliderRect,h.sliderRect2,h.valueBarRect,h.value,h.dataZoom,l=H(o,t,this,a,e),h=d.axis===Ji?Ad:_d,Q(f,l)?c.axisPointerPoint=l:c.axisPointerPoint&&delete c.axisPointerPoint,r=Ji===d.axis?g.xAxis[0].axisLabel?g.xAxis[0].axisLabel.formatter:null:g.yAxis[0].axisLabel?g.yAxis[0].axisLabel.formatter:null,Fe(d.fixed)?(a=h(s,d.info,l,u,d.fixed),B.show(r?r(a,t,o):a,e)):Fe(d.draggingValue)?(f=d.draggingValue,g=h(null,d.info,l,u,null,!0)-f,s=d.info.value,a=d.info.min,h=d.info.max,(u=[s[0]+g,s[1]+g])[0]h&&(u=[h-(s[1]-s[0]),h]),d.info.setter(u),f=u.join(","),r&&(f=Ge(u).call(u,function(e){return r(e,t,o)}).join(", ")),B.show(f,e)):d.body&&ze(g=d.info).call(g,function(e){var t=e.info,o=t.barRect,a=t.setter,i=t.min,t=t.max,n=e.info.value,r=e.draggingValue,n=Md(n[0],n[1],o,l,e.axis===he)-r,o=e.info.inverse,r=(e.axis!==he||o||(n=-n),e.axis!==he&&o&&(n=-n),e.info.value),o=[r[0]+n,r[1]+n];o[0]t&&(o=[t-(r[1]-r[0]),t]),a(o)}),t.iv())}},{key:"onEndDrag",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d,g,f,p=Ye(o,t,this);delete p.sliderInfo,delete p.dragging,B.hide(),p._dragging&&(r=p.ui,l=p.option,s=r.rectPoint1,u=r.rectPoint2,h=r.valueAxis,c=l.xAxis,d=l.yAxis,g=xr(s,u),delete p._dragging,delete p.rectPoint1,delete p.rectPoint2,t.iv(),g)&&(f={x:[],y:[]},ze(c).call(c,function(e){e.type;var t,o,a,i,n=[],e=(f.x.push(n),e._axisObj.zoomValueRange);e&&(t=(e=je(e,2))[0],o=(e=e[1])-t,i=r.bounds.bodyRect,a=Math.floor((g.x-i.x)/i.width*o+t),i=Math.floor((g.x-i.x+g.width)/i.width*o+t),a=Math.max(a,t),i=Math.min(i,e),n.push(a),n.push(i))}),ze(d).call(d,function(e){var t,o,a,i,n=[];f.y.push(n),he===h&&(t=(e=je(e._axisObj.zoomValueRange,2))[0],e=e[1],a=((i=r.bounds.bodyRect).height-g.height-g.y+i.y)/i.height*(o=e-t)+t,i=(i.height-g.y+i.y)/i.height*o+t,a=Math.max(a,t),i=Math.min(i,e),n.push(a),n.push(i))}),l.onRectSelected(f,t,o))}},{key:"onScroll",value:function(e,t,o,a,i,n){Od(e,t,o,this,a)&&(delete(e=Ye(o,t,this)).hitSeriesIndex,delete e.hitPointIndex,t.iv())}}]),t}(),Fg=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.apply(this,arguments)}return s(t,[{key:"onLeave",value:function(e,t,o,a,i,n){E(o,"default")}},{key:"onMove",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.uiInfos;l&&l.length&&(t=H(o,t,this,a,o),a=Eg(l,t),E(o,Fe(a)?"pointer":r.defaultCursor||"default"))}},{key:"onDown",value:function(e,t,o,a,i,n){var r,l,s,u,h,c,d=Ye(o,t,this),g=d.uiInfos;g&&g.length&&(a=H(o,t,this,a,o),g=Eg(g,a),a=X(this,"value",t),Fe(g))&&(r=d.onChange,h=d.dataSource,l=d.value,c=d.dataValue,u=d.multiple,s=h[g].value,u?(u=h[g].value,c=Me(h=c).call(h,0),0<=Oe(c).call(c,u)?Ii(c).call(c,Oe(c).call(c,u),1):c.push(u),t.a(a,c.join(",")),r&&r(h,c,t,o)):g!==d.activeIndex&&(t.a(a,s),r)&&r(l,s,t,o))}}]),t}();function Ng(e,t){for(var o=0;on.height?n.height:n.width)*e:e}"cylinder"===s.type?ff(l,n,r):(l.fillStyle=r,D&&(t=D.color||wn(r),o=D.opacity,Fe(o)&&(a=or(t),e=Ii(a).call(a,3,1)[0]||255,t=Ee(a="rgba(".concat(a.join(","),",")).call(a,e/255*o,")")),l.shadowColor=t,l.shadowBlur=D.blur||0,l.shadowOffsetX=(D.offsetX||0)*M,l.shadowOffsetY=(D.offsetY||0)*M),e=void 0===(a=I.topLeftRadius)?0:a,t=void 0===(o=I.topRightRadius)?null:o,o=void 0===(a=I.bottomLeftRadius)?null:a,a=void 0===(a=I.bottomRightRadius)?null:a,l.beginPath(),We(t)&&We(o)&&We(a)?xe(l,n.x,n.y,n.width,n.height,i(e)):xe(l,n.x,n.y,n.width,n.height,i(e),i(t),i(o),i(a)),l.closePath(),Ue(l).call(l))}var r=ir(l,"function"==typeof k?k(b[e],e,vr(u.color,e),h.data,h.view):k,n);_?_(l,b[e],n,{defaultDraw:t,index:e,boundary:{x:w,y:n.y,width:W,height:n.height},color:r,data:h.data,view:h.view}):t()})):(f=s.renderArea==Pe?(o=t[0],Oe(L).call(L,s)):(o=t[1],Oe(B).call(B,s)),p=(i=o).x,i.y,v=i.width,i.height,y=[],x=h.interactiveInfo.axisInfos[h.valueAxis===he?s.xAxisIndex||0:s.yAxisIndex||0],O=gf(o,a,F),E=[p,p+v],m=[],ze(b).call(b,function(e,t){var o,a,i="function"==typeof k?k(e,t,vr(u.color,t),h.data,h.view):k;V[t]&&(o={x:Wd(E,T,e),y:V[t].position},a={x:p,y:o.y-C/2+A*f+(A-S)/2+(1<=P?P:C*P),width:Math.abs(o.x-O),height:S},y.push(a),x[t].series.push([H,Fe(e)?e:"-",i,o.x,o.y,a]),s.renderArea==Pe?pf(m,s.label,u.color,{x:a.x+v-a.width,y:a.y,width:a.width,height:a.height},b,t,h.data,h.view,s.renderArea):pf(m,s.label,u.color,a,b,t,h.data,h.view,s.renderArea))}),h.labelInfo[e]=m,h.seriesColors.push(vr(u.color,e)),l.save(),ze(y).call(y,function(n,e){function t(){var e,t,o,a;function i(e){return e<1?(n.width>n.height?n.height:n.width)*e:e}"cylinder"===s.type?(t=s.renderArea==Pe?{x:n.x+v-n.width,y:n.y,width:n.width,height:n.height}:n,ff(l,t,r,s.renderArea)):(l.fillStyle=r,D&&(t=D.color||wn(r),o=D.opacity,Fe(o)&&(a=or(t),e=Ii(a).call(a,3,1)[0]||255,t=Ee(a="rgba(".concat(a.join(","),",")).call(a,e/255*o,")")),l.shadowColor=t,l.shadowBlur=D.blur||0,l.shadowOffsetX=(D.offsetX||0)*M,l.shadowOffsetY=(D.offsetY||0)*M),e=void 0===(a=I.topLeftRadius)?0:a,t=void 0===(o=I.topRightRadius)?null:o,o=void 0===(a=I.bottomLeftRadius)?null:a,a=void 0===(a=I.bottomRightRadius)?null:a,l.beginPath(),s.renderArea==Pe?We(t)&&We(o)&&We(a)?xe(l,n.x+v-n.width,n.y,n.width,n.height,i(e)):xe(l,n.x+v-n.width,n.y,n.width,n.height,i(e),i(t),i(o),i(a)):We(t)&&We(o)&&We(a)?xe(l,n.x,n.y,n.width,n.height,i(e)):xe(l,n.x,n.y,n.width,n.height,i(e),i(t),i(o),i(a)),l.closePath(),Ue(l).call(l))}var r=ir(l,"function"==typeof k?k(b[e],e,vr(u.color,e),h.data,h.view):k,n);_?s.renderArea==Pe?_(l,b[e],{x:n.x+v-n.width,y:n.y,width:n.width,height:n.height},{defaultDraw:t,index:e,boundary:{x:p,y:n.y,width:v,height:n.height},color:r,data:h.data,view:h.view}):_(l,b[e],n,{defaultDraw:t,index:e,boundary:{x:p,y:n.y,width:v,height:n.height},color:r,data:h.data,view:h.view}):t()})),l.restore())},bf=function(t,e){var o=2n.length&&(n=e)}),r.axisLabel.formatter&&(n=r.axisLabel.formatter(n)),o?a+$n(r.axisLabel.font,n,o).height+2*$i:a+He(r.axisLabel.font,n).height+2*$i):a+$i):$i)}},{key:"draw",value:function(n){var i,r,l,s,u,h,c,d,e,g,f,p,v,y,t,x,m,b,w,k,a,C,o=this.ui,T=o.data,V=o.view,D=(o.seriesDatas,o.bounds),I=this.axisOption,S=this.axisIndex,S=o.bounds.xAxisRects[S],L=this.position;!1!==I.show&&(t=this.zoomValueRange,i=I.axisLabel.rotate,r=S.x,l=S.y,s=S.width,u=S.height,!1!==I.show&&I.axisLine.show&&(n.strokeStyle=I.axisLine.color,n.lineWidth=I.axisLine.width,n.beginPath(),L==Le?(n.moveTo(r,l+u),n.lineTo(r+s,l+u)):(n.moveTo(r,l),n.lineTo(r+s,l)),n.stroke()),!1!==I.show)&&(S=je(t,3),h=S[0],t=S[1],S[2],c=t-h,S=this.getValuesByValueRange(!0),d=0,I.axisTick.show&&(d=I.axisTick.length)&&(n.strokeStyle=I.axisTick.color,n.beginPath(),ze(S).call(S,function(e){var t,o,a;We(D.bodySplitRect)?(t=r+s*((e-h)/c),L==Le?(n.moveTo(t,l+u),n.lineTo(t,l+u-d)):(n.moveTo(t,l),n.lineTo(t,l+d))):(o=r+(t=s/2),L==Le?(n.moveTo(a=o+(e-h)/c*t,l+u),n.lineTo(a,l+u-d),n.moveTo(a=o-(e-h)/c*t,l+u),n.lineTo(a,l+u-d)):(n.moveTo(a=o+(e-h)/c*t,l),n.lineTo(a,l+d),n.moveTo(a=o-(e-h)/c*t,l),n.lineTo(a,l+d)))}),n.stroke()),t=I.axisLabel.font,e=I.axisLabel.color,g=I.axisLabel.offsetX,f=I.axisLabel.offsetY,p=I.axisLabel.formatter,v=He(t,"1"),y=l+v.height,n.font=t,n.fillStyle=e,n.textAlign=Ae,n.textBaseline=_e,I.axisLabel.show&&ze(S).call(S,function(e){var t,o,a;We(D.bodySplitRect)?(t=r+s*((e-h)/c),n.save(),L==Le?n.translate(t,l+u-v.height):n.translate(t,y)):(a=(o=r+(t=s/2))+(e-h)/c*t,n.save(),L==Le?n.translate(a,l+u-v.height):n.translate(a,y),n.rotate(lr(-i)),"function"==typeof p&&(e=p(e,T,V)),n.fillText(e,g,f),n.restore(),n.save(),a=o-(e-h)/c*t,L==Le?n.translate(a,l+u-v.height):n.translate(a,y)),n.rotate(lr(-i)),"function"==typeof p&&(e=p(e,T,V)),n.fillText(e,g,f),n.restore()}),n.save(),I.splitLine.show&&(t=o.bounds.bodyRect,x=t.x,m=t.y,b=t.width,w=t.height,n.rect(x,m,b,w),n.clip(),k=I.splitLine.drawLine,n.strokeStyle=I.splitLine.color,n.lineWidth=I.splitLine.width||1,I.splitLine.pattern&&n.setLineDash(I.splitLine.pattern),n.beginPath(),We(D.bodySplitRect)?(a=b/(S.length-1)/2,ze(S).call(S,function(e,t){var o=x+b*((e-h)/c);"function"==typeof k?k(n,{x:o-a/2,y:m,width:a,height:w},e):(n.moveTo(o,m),n.lineTo(o,m+w))})):(C=b/(S.length-1)/2/2,ze(S).call(S,function(e,t){var o,a,i;e-h!=0&&(i=(a=x+(o=b/2))+(e-h)/c*o,"function"==typeof k?(k(n,{x:i-C/2,y:m,width:C,height:w},e),k(n,{x:a-(e-h)/c*o-C/2,y:m,width:C,height:w},e)):(n.moveTo(i,m),n.lineTo(i,m+w),n.moveTo(i=a-(e-h)/c*o,m),n.lineTo(i,m+w)))})),n.stroke()),n.restore())}}]),l}(),Vf=function(){d(r,lg);var n=g(r);function r(e,t,o){var a,i;return c(this,r),(i=n.call(this,e,t,o)).axisIndex=Oe(a=t.yAxis).call(a,e),i.isValueAxis=o.valueAxis===he,i.position=e.position||(i.axisIndex?Re:Pe),ze(a=t.series).call(a,function(e,t){(e.yAxisIndex||0)===i.axisIndex&&(i.series.push(e),i.seriesIndexs.push(t))}),i.labelHeight=i.getLabelHeight(),i.boundWidth=i.getBoundWidth(),i}return s(r,[{key:"getLabelHeight",value:function(){return this.getMaxValueBound().height}},{key:"getBoundWidth",value:function(){var e,t,o=this.axisOption,a=(o.data,o.axisLabel.offsetX),i=o.axisLabel.rotate;return o.size||(o.axisLabel.show?(e=zn(o.data,this.ui.data,this.ui.view),t=Qi,e&&ze(e).call(e,function(e){Fe(e)&&e.toString().length>t.length&&(t=e)}),o.axisLabel.formatter&&(t=o.axisLabel.formatter(t)),i?0+$n(o.axisLabel.font,t,i).width+o.axisTick.length+$i:0+He(o.axisLabel.font,t).width+o.axisTick.length+$i):0+a+o.axisTick.length+$i)}},{key:"draw",value:function(i){var n=this,e=this.ui,r=e.data,l=e.view,s=this.axisOption,t=this.axisIndex,o=e.bounds.yAxisRects[t],u=[];if(!1!==s.show){this.zoomValueRange;var h=s.axisLabel.rotate,c=o.x,d=o.y,g=o.width,f=o.height,p=(s.axisLine.show&&(i.strokeStyle=s.axisLine.color,i.lineWidth=s.axisLine.width,i.beginPath(),this.position===Re?(i.moveTo(c,d),i.lineTo(c,d+f)):(i.moveTo(c+g,d),i.lineTo(c+g,d+f)),i.stroke()),this.data||[]),v=0;if(s.axisTick.show&&(v=s.axisTick.length)){i.strokeStyle=s.axisTick.color,i.beginPath();for(var a=0;a<=p.length;a++){var y=d+f*(a/p.length);this.position===Re?(i.moveTo(c,y),i.lineTo(c+v,y)):(i.moveTo(c+g,y),i.lineTo(c+g-v,y))}i.stroke()}var x=g-(s.axisTick.show?v:0),m=s.axisLabel.font,b=s.axisLabel.color,w=s.axisLabel.offsetX,k=s.axisLabel.offsetY,C=s.axisLabel.formatter,T=s.axisLabel.drawLabel,V=c+x,D=(i.font=m,i.fillStyle=b,i.textAlign=this.position===Pe?Re:Pe,i.textBaseline=_e,0),x=1,I=(ze(p).call(p,function(e){C&&(e=C(e,r,l));e=$n(m,e);D+=e.height}),D>o.height&&!t&&(x=Math.ceil(D/o.height)),Fe(s.axisLabel.interval)?s.axisLabel.interval:x);if(0===I&&(I=1),ze(p).call(p,function(e,t){var o,a=d+f*((2*t+1)/(2*p.length));t%I==0&&s.axisLabel.show&&(i.save(),T&&"function"==typeof T?(o=f/p.length,T(i,e,{x:c,y:d+o*t,width:g,height:o},{data:r,view:l,index:t})):(n.position===Re?i.translate(c+(s.axisTick.show?v:0),a):i.translate(V,a),i.rotate(lr(-h)),"function"==typeof C&&(e=C(e,r,l)),i.fillText(e,w,k)),i.restore()),u.push({position:a,label:p[t]})}),this.axisInfos=u,this.unitWidth=f/p.length,i.save(),s.splitLine.show){var b=e.bounds.bodyRect,S=b.x,L=b.y,B=b.width,R=b.height;s.splitLine.interval,i.strokeStyle=s.splitLine.color,i.lineWidth=s.splitLine.width||1,s.splitLine.pattern&&i.setLineDash(s.splitLine.pattern),i.beginPath();for(var P=0;P<=p.length;P++){var A=L+R*(P/p.length);i.moveTo(S,A),i.lineTo(S+B,A)}i.stroke()}i.restore()}}}]),r}(),Df=ht.Default,If=Df.clone;Df.unionPoint;var Sf=new qc,Df=function(){d(t,yc);var e=g(t);function t(){return c(this,t),e.call(this)}return s(t,[{key:"onDown",value:function(e,t,o,a,i,n){var r=Ye(o,t,this),l=r.ui,r=r.option;if(r&&l){r=r.clickBar;if(r&&ht.Default.isFunction(r)){var s=l.interactiveInfo,l=l.bounds.bodyRect,s=s.axisInfos,a=H(o,t,this,a,e);if(Q(l,a)&&s.length){for(var u,h,c=a.y,d=1/0,g=s[0],f=0;fs)return}e._hoverData=null,o.setCursor("default"),t.iv()}}},{key:"onBeginDrag",value:function(e,t,o,a,i,n){}},{key:"onDrag",value:function(e,t,o,a,i,n){}},{key:"onEndDrag",value:function(e,t,o,a,i,n){}},{key:"onScroll",value:function(e,t,o,a,i,n){}}]),t}();function _f(e){var t;return ae?(t=Rp(p,e))&&t.value:p[e]}function Mf(t){try{return Wp(t)}catch(e){return t}}function Of(e){var t,o=Gp(e,qp," "),a=4;try{return Wp(o)}catch(e){for(;a;)o=Gp(o,(t=a--,Kp[t-1]||(Kp[t-1]=Ep("((?:%[\\da-f]{2}){"+t+"})","gi"))),Mf);return o}}function Ef(e){return $p[e]}function Hf(e){return Gp(Fp(e),Jp,Ef)}function Wf(e){this.entries=[],this.url=null,void 0!==e&&(ee(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Np(e,0)?Zp(e,1):e:ka(e)))}function Ff(){yu(this,ev);var e=Sp(this,new Wf(0>1,e+=fp(e/t);cp*ip>>1t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,o=Lp(this).entries,a=Ut(e,1fp((tp-n)/c))throw dp(hp);for(n+=(u-i)*c,i=u,h=0;htp)throw dp(hp);if(t==i){for(var d=n,g=op;;){var f=g<=r?ap:r+ip<=g?ip:g-r;if(d?@[\\\]^|]/,Mv=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ov=/^[\u0000-\u0020]+/,Ev=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Hv=/[\t\n\r]/g,Wv={},Fv=e({},Wv,{" ":1,'"':1,"<":1,">":1,"`":1}),Nv=e({},Fv,{"#":1,"?":1,"{":1,"}":1}),jv=e({},Nv,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),zv={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Gv={},Uv={},Yv={},Xv={},Zv={},qv={},Kv={},Jv={},$v={},Qv={},ey={},ty={},oy={},ay={},iy={},ny={},ry={},ly={},sy={},uy={},hy={},cy=(Uf.prototype={type:"URL",parse:function(e,t,o){var a,i,n,r,l=this,s=t||Gv,u=0,h="",c=!1,d=!1,g=!1;for(e=ka(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=xv(e,Ov,""),e=xv(e,Ev,"$1")),e=xv(e,Hv,""),a=tv(e);u<=a.length;){switch(i=a[u],s){case Gv:if(!i||!gv(Iv,i)){if(t)return Tv;s=Yv;continue}h+=kv(i),s=Uv;break;case Uv:if(i&&(gv(Sv,i)||"+"==i||"-"==i||"."==i))h+=kv(i);else{if(":"!=i){if(t)return Tv;h="",s=Yv,u=0;continue}if(t&&(l.isSpecial()!=et(zv,h)||"file"==h&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=h,t)return void(l.isSpecial()&&zv[l.scheme]==l.port&&(l.port=null));h="","file"==l.scheme?s=ay:l.isSpecial()&&o&&o.scheme==l.scheme?s=Xv:l.isSpecial()?s=Jv:"/"==a[u+1]?(s=Zv,u++):(l.cannotBeABaseURL=!0,yv(l.path,""),s=sy)}break;case Yv:if(!o||o.cannotBeABaseURL&&"#"!=i)return Tv;if(o.cannotBeABaseURL&&"#"==i){l.scheme=o.scheme,l.path=gd(o.path),l.query=o.query,l.fragment="",l.cannotBeABaseURL=!0,s=hy;break}s="file"==o.scheme?ay:qv;continue;case Xv:if("/"!=i||"/"!=a[u+1]){s=qv;continue}s=$v,u++;break;case Zv:if("/"==i){s=Qv;break}s=ly;continue;case qv:if(l.scheme=o.scheme,i==Kf)l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,l.path=gd(o.path),l.query=o.query;else if("/"==i||"\\"==i&&l.isSpecial())s=Kv;else if("?"==i)l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,l.path=gd(o.path),l.query="",s=uy;else{if("#"!=i){l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,l.path=gd(o.path),l.path.length--,s=ly;continue}l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,l.path=gd(o.path),l.query=o.query,l.fragment="",s=hy}break;case Kv:if(!l.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){l.username=o.username,l.password=o.password,l.host=o.host,l.port=o.port,s=ly;continue}s=Qv}else s=$v;break;case Jv:if(s=$v,"/"!=i||"/"!=dv(h,u+1))continue;u++;break;case $v:if("/"==i||"\\"==i)break;s=Qv;continue;case Qv:if("@"==i){c&&(h="%40"+h);for(var c=!0,f=tv(h),p=0;p=cv(256,5-t))return null}else if(255>3)&1<<(7&i)&&(t|=1<=this.data.length))return this.data instanceof Uint8Array?this.data[this.pos++]:255&this.data.charCodeAt(this.pos++)},a.prototype.readBytes=function(e){for(var t=[],o=0;o=this.data.length))return this.data instanceof Uint8Array?this.data[this.pos++]:255&this.data.charCodeAt(this.pos++)}},{key:"readBytes",value:function(e){for(var t=[],o=0;o>3)&1<<(7&i)&&(t|=1<l[0]+l[2]&&(s=l[h=0],u+=r+$+b+P+A,M++),[s,u,o.width+_+pe+w+2,o.height+P+A]),i=(b&&(n.beginPath(),n.strokeStyle=U,xe.apply(void 0,Ee(i=[n]).call(i,a,[O,E,W,H])),n.closePath(),X&&(Z&&q&&(F=ql.apply(void 0,Ee(i=[n,Z,X,q]).call(i,a))),n.fillStyle=F,Ue(n).call(n)),n.stroke()),[a[0]+_+o.width+2,a[1]+P,w,a[3]-A-P]);Q&&(i[0]=a[0]+_,a[0]+=w+2),a[2]=a[2]-w-2,fe.push({value:e.value,rect:i}),n.beginPath(),n.strokeStyle=ee,n.lineCap="round",n.moveTo(i[0],i[1]+(i[3]-w)/2),n.lineTo(i[0]+i[2],i[1]+(i[3]-w)/2+w),n.moveTo(i[0]+i[2],i[1]+(i[3]-w)/2),n.lineTo(i[0],i[1]+(i[3]-w)/2+w),n.stroke(),Zl.apply(void 0,Ee(e=[n,t,m,G]).call(e,a,["center","middle"])),s+=o.width+J+b+_+pe+w+2,ye=Math.max(ye,-ae+s-ve[0]+L),h++})):N&&(i=He(m,N),T=[V+k,D+S,I-k-L,i.height+P+A],Zl.apply(void 0,Ee(p=[n,N,m,te||Ui.placeholderColor]).call(p,T,["left","middle"])),r=i.height),n.restore(),j&&(f=[V-g/2,D-g/2,I+g,e+g],n.save(),n.beginPath(),xe.apply(void 0,Ee(K=[n]).call(K,f,[ce,de,v,ge])),n.clip(),n.fillStyle=z,Ue(n).call(n),n.restore()),o&&(o.__suggestHeight=S+B+(P+A+r)*M+$*(M-1)),C&&(C.value=c,C.valueItemInfo=fe,C.disabled=j,C.dataSource=d,C.dropIconWidth=t.getValue("dropIconWidth"),C.dropIconHeight=t.getValue("dropIconHeight"),C.dropRowHeight=t.getValue("dropRowHeight"),C.dropWidth=t.getValue("dropWidth"),C.dropBackground=t.getValue("dropBackground"),C.dropLabelFont=t.getValue("dropLabelFont"),C.dropLabelColor=t.getValue("dropLabelColor"),C.dropActiveLabelColor=t.getValue("dropActiveLabelColor"),C.dropActiveBackground=t.getValue("dropActiveBackground"),C.dropHoverBackground=t.getValue("dropHoverBackground"),C.dropMaxHeight=t.getValue("dropMaxHeight"),C.onChange=t.getValue("onChange"),C.hideSelected=t.getValue("hideSelected"),C.maxSelection=t.getValue("maxSelection"),C.pannable=t.getValue("pannable"),C.scrollBarInteractiveSize=t.getValue("scrollBarInteractiveSize"),C.scrollSpeed=t.getValue("scrollSpeed"),C.autoHideScrollBar=ne,C.dropDownSyncZoom=t.getValue("dropDownSyncZoom")),o&&C&&ie&&(C.bodyRect=x={x:V,y:D,width:I,height:e},Y={width:ye,height:0V){var I,ee,S,L,B,p=T+"-"+V+n+u,b=Lh[p],te=0,oe=0;if((b=b||(Lh[p]={}))&&b[i])L=(I=b[i])*u,B=Aa(T*(ee=1/I)),Aa(V*ee),D=Ei(i,n,B,r);else{for(;te<4;){if(L=(I=Math.sqrt(V/((D.length+oe)*u)))*u,B=Aa(T*(ee=1/I)),Aa(V*ee),(S=Ei(i,n,B,r)).length*L>V)oe+=Math.ceil((S.length*L-V)/L+.5);else{if(!(S.length*L2*L)){D=S;break}oe-=Math.floor((V-S.length*L)/L)}4==++te&&(D=S)}b[i]=I}k=x+c,C=m+y,l===Be?C=C+V-L*D.length:l===_e&&(C+=(V-L*D.length)/2),o.save(),o.translate(k,C),o.scale(I,I),k=C=0,ze(D).call(D,function(e,t){ht.Default.drawText(o,e,n,s,k,C,B,u,h,l),q&&(e=He(n,e),Sh(o,{x:k,y:C,height:u,width:B},e.width,h,s)),C+=u}),o.restore()}else if(H&&(D.length+1)*uV||A.length*_.8*_)){D=A;break}ae=P,ne*=Math.sqrt(V/(A.length*_)),4==++ie&&(D=A)}g[i]=R}k=(x+c)*P,C=(m+y)*P,ze(D).call(D,function(e,t){ht.Default.drawText(o,e,n,s,k,C,M,_,h,l),q&&(e=He(n,e),Sh(o,{x:k,y:C,height:u,width:M},e.width,h,s)),C+=u})}else!E&&U?(W=x+c,$=(v=m+y)-u,Q=v+V+u,o.save(),o.beginPath(),o.rect(W,v,T,V),o.clip(),C+=z,ze(D).call(D,function(e,t){$<=C&&C=n.length)break;var G=n[z],S=[(W-h*I/2)/I,(F-=c*I)/I,h,c];e.save(),e.globalAlpha=j,e.scale(I,I),v?v(e,G,Hn(S),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,S)),yr.apply(void 0,Ee(j=[e,G,f,g]).call(j,S,[Ae,_e]))),e.restore(),F-=u,C.push({index:z,rect:{x:S[0]*I,y:S[1]*I,width:S[2]*I,height:S[3]*I}})}for(var F=m+t/2+c/2+u-w*(c+u),U=0;U=n.length)break;var Z=n[X],B=[(W-h*L/2)/L,F/L,h,c];e.save(),e.globalAlpha=Y,e.scale(L,L),v?v(e,Z,Hn(B),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,B)),yr.apply(void 0,Ee(Y=[e,Z,f,g]).call(Y,B,[Ae,_e]))),e.restore(),F+=c*L+u,C.push({index:X,rect:{x:B[0]*L,y:B[1]*L,width:B[2]*L,height:B[3]*L}})}F=m+t/2-c/2-w*c;p=n[s];p&&(k=1-D*w,M=[(W-h*(l=1-V*w)/2)/l,F/l,h,c],e.save(),e.globalAlpha=k,e.scale(l,l),v?v(e,p,Hn(M),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,M)),yr.apply(void 0,Ee(k=[e,p,f,g]).call(k,M,[Ae,_e]))),e.restore(),C.push({index:s,rect:{x:M[0]*l,y:M[1]*l,width:M[2]*l,height:M[3]*l}}))}else{for(var q=m+t/2,K=x+b/2-h/2-u-w*h,J=0;J=n.length)break;var ee=n[Q],P=[(K-=h*R)/R,(q-c*R/2)/R,h,c];e.save(),e.globalAlpha=$,e.scale(R,R),v?v(e,ee,Hn(P),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,P)),yr.apply(void 0,Ee($=[e,ee,f,g]).call($,P,[Ae,_e]))),e.restore(),K-=u,C.push({index:Q,rect:{x:P[0]*R,y:P[1]*R,width:P[2]*R,height:P[3]*R}})}for(var K=x+b/2+h/2+u-w*(h+u),te=0;te=n.length)break;var ie=n[ae],_=[K/A,(q-c*A/2)/A,h,c];e.save(),e.globalAlpha=oe,e.scale(A,A),v?v(e,ie,Hn(_),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,_)),yr.apply(void 0,Ee(oe=[e,ie,f,g]).call(oe,_,[Ae,_e]))),e.restore(),K+=h*A+u,C.push({index:ae,rect:{x:_[0]*A,y:_[1]*A,width:_[2]*A,height:_[3]*A}})}K=x+b/2-h/2-w*h;var M,p=n[s];p&&(k=1-D*w,l=[K/(M=1-V*w),(q-c*M/2)/M,h,c],e.save(),e.globalAlpha=k,e.scale(M,M),v?v(e,p,Hn(l),a,i):(d&&(e.fillStyle=d,e.fillRect.apply(e,l)),yr.apply(void 0,Ee(m=[e,p,f,g]).call(m,l,[Ae,_e]))),e.restore(),C.push({index:s,rect:{x:l[0]*M,y:l[1]*M,width:l[2]*M,height:l[3]*M}}))}e.restore(),y&&(y.itemInfos=C,y.index=s,y.animation=E,y.dataSource=n,y.onClickItem=H,y.scrollable=o.getValue("scrollable"))}},carousel2:function(e,t,o,a,i){var n=o.getValue("dataSource"),r=o.getValue("vertical"),l=o.getValue("gap"),s=o.getValue("itemWidth"),u=o.getValue("itemHeight"),h=o.getColor("itemBackground"),c=o.getColor("itemColor"),d=o.getValue("font"),g=o.getColor("background"),f=o.getValue("drawItem"),p=o.getValue("offset")||0,v=(Ye(i,a,o),t.x),y=t.y,o=t.width,x=t.height;if(!(!(i instanceof ht.graph.GraphView||i instanceof ht.graph3d.Graph3dView)||t.height<1||t.width<1)&&(g&&(e.fillStyle=g,e.fillRect(v,y,o,x)),n)&&n.length&&s&&u){e.save(),e.beginPath(),e.rect(v,y,o,x),e.clip();var m=n.length;if(r){var b=u+l,w=y+p,k=v+(o-s)/2,C=0;if((w%=b*n.length)<=y)for(;;){if(Jn({x:k,y:w,width:s,height:u},t))break;C++,w+=b}else if(yp&&(p=e.data.length)):e.data=[]})),p){if(c=y/p,s.save(),s.translate(l+se/2,le+ue/2),U){s.save(),s.beginPath();for(var de=0;de=u.length)&&(o._frame=0),h=Nd(),o._lastTime||(o._lastTime=h),c=o._lastTime,10*u[o._frame].delay<=h-c&&(o._frame=(o._frame+1)%u.length,o._lastTime=h),c=u[o._frame||0].image,mr(e,c,"fill",r,l,s,t),a)&&i&&Vn(function(){a.iv()})):wy(n)&&!1===wy(n).isLoaded()?(d=wy(n).onLoaded,wy(n).onLoaded=function(){d(),a.iv()}):wy(n)||ky(n,function(){a.iv()}))}},r.dragSliderInteractor=new k,r.pieInteractor=new ce,r.buttonInteractor=new $u,r.inputInteractor=new Da,r.textAreaInteractor=new La,r.radioInteractor=new su,r.checkboxInteractor=new n,r.colorPickerInteractor=new wc,r.dateTimePickerInteractor=new kc,r.dateTimePickerInteractor2=new Cc,r.comboBoxInteractor=new Ec,r.tableInteractor=new Hc,r.sliderInteractor=new Fc,r.rangeSliderInteractor=new Nc,r.multipleComboBoxInteractor=new jc,r.treeInteractor=new Gc,r.treeTableInteractor=new Yc,r.chartInteractor=new Jc,r.inputNumberInteractor=new $,r.dateRangePickerInteractor=new $c,r.dateRangePickerInteractor2=new Qc,r.radioButtonInteractor=new id,r.carouselInteractor=new ud,r.timeAxisChartInteractor=new Ie,r.carouselInteractor2=new hd,r.paginationInteractor=new pd,r.textBoxInteractor=new vd,r.radioInteractor2=new o,r.valueAxisChartInteractor=new yd,r.checkGroupInteractor=new Fg,r.parallelogramTabInteractor=new jg,r.chartLegendInteractor=new t,r.barChartInteractor=new Df,r.radarInteractor=new qg,r.navigationInteractor=new qc,r.timeLineInteractor=new Lf,r.Color=Yi,r.ListView=Vc,r.ListDropDown=Ic,r.getVectorInfo=Ye,r.getVectorInstances=function(e,t){e=gr(e,t);return e&&e.vectorInfos?Ge(t=e.vectorInfos).call(t,function(e){return e.instance}):[]},r.caluMultilineSize=function(e,t){var o=e.a("ht.content"),a=e.a(Gi.FONT),i=e.a(Gi.LINE_HEIGHT),e=e.a(Gi.PADDING),e=je(Pi(e),4),n=e[0],r=e[1],l=e[2],e=e[3],o=o.split(/\n/),s=0;return ze(o).call(o,function(e){e=He(a,e);s=Math.max(s,e.width)}),{width:s+e+r,height:o.length*i+n+l}},r.caluRichTextPaneSize=function(n,r){var e=n.a("ht.content"),t=n.a("ht.borderWidth")||1,o=n.a("ht.padding"),a=n.a("ht.showArrow"),i=n.a("ht.arrowOrientation"),l=n.a("ht.vGap"),s=n.a("ht.hGap"),u=n.a("ht.font"),o=je(Pi(o),4),h=o[0],c=o[1],d=o[2],o=o[3]+c+t,c=h+d+t,g=(a&&(i===Pe||i===Re?o+=10:c+=10),0),f=0;return e&&(ze(e).call(e,function(e,t){var a=0,i=(e.length-1)*s;ze(e).call(e,function(e,t){var o=zn(e.text,n,r),e=He(e.font||u,o);a=Math.max(a,e.height),i+=e.width}),g=Math.max(g,i),f+=a}),f+=(e.length-1)*l),{width:o+=g,height:c+=f}},r.setFormData=function i(n,e,r){return(e?e.getChildren():n.dm().getDatas()).each(function(e){var t=e.a(Gi.FORM_ITEM_NAME),o=e.a(Gi.FORM_ITEM_GROUP),a=r[t];if(t)void 0!==a&&e.a(Gi.VALUE,a);else if(o){if(void 0===(a=r[o]))return;e.__inputType===qi?e.a(Gi.CHECKED,e.a(Gi.VALUE)===a):e.__inputType===Ki&&e.a(Gi.CHECKED,0<=Oe(a).call(a,e.a(Gi.VALUE)))}e.hasChildren()&&i(n,e,r)}),r},r.breakText=Ei,r.parseCSSArray=Ai,r.openColorDropDown=Sr,r.openDateTimeDropDown=Lr,r.getFormData=function(e,t){var r={},l=t?t.getChildren():e.dm().getDatas();return l.each(function(e){var t,o=e.a(Gi.FORM_ITEM_NAME),a=e.a(Gi.FORM_ITEM_GROUP);if(o)r[o]=An(e);else if(a&&!r[Gi.FORM_ITEM_GROUP])if(e.__inputType===qi)for(var i=0;i