PageSourceSearch

https://boonbuy.com/static/js/054785d8.4761.1790233022683.js

js boonbuy.com collected 2026-09-24 14:40:32 UTC 32,277 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkboonbuy"]=self["webpackChunkboonbuy"]||[]).push([[4761],{97493:function(t,e,i){i.d(e,{a:function(){return p}});var n=i(39094),o=i(72231),a=i(56090),r={type:"echarts:filter",transform:function(t){for(var e,i=t.upstream,r=(0,n.I)(t.config,{valueGetterAttrMap:(0,o.createHashMap)({dimension:!0}),prepareGetValue:function(t){var e="",n=t.dimension;(0,o.hasOwn)(t,"dimension")||(0,a.$8)(e);var r=i.getDimensionInfo(n);return r||(0,a.$8)(e),{dimIdx:r.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}}),s=[],l=0,u=i.count();l<u;l++)e=i.getRawDataItem(l),r.evaluate()&&s.push(e);return{data:s}}},s=i(10901),l=i(5021),u=i(75084);var h={type:"echarts:sort",transform:function(t){var e=t.upstream,i=t.config,n="",r=(0,l.qB)(i);r.length||(0,a.$8)(n);var h=[];(0,o.each)(r,function(t){var i=t.dimension,o=t.order,r=t.parser,s=t.incomparable;if(null==i&&(0,a.$8)(n),"asc"!==o&&"desc"!==o&&(0,a.$8)(n),s&&"min"!==s&&"max"!==s){var l="";0,(0,a.$8)(l)}if("asc"!==o&&"desc"!==o){var p="";0,(0,a.$8)(p)}var c=e.getDimensionInfo(i);c||(0,a.$8)(n);var d=r?(0,u.zC)(r):null;r&&!d&&(0,a.$8)(n),h.push({dimIdx:c.index,parser:d,comparator:new u.Fl(o,s)})});var p=e.sourceFormat;p!==s.Km&&p!==s.Wk&&(0,a.$8)(n);for(var c=[],d=0,v=e.count();d<v;d++)c.push(e.getRawDataItem(d));return c.sort(function(t,i){for(var n=0;n<h.length;n++){var o=h[n],a=e.retrieveValueFromItem(t,o.dimIdx),r=e.retrieveValueFromItem(i,o.dimIdx);o.parser&&(a=o.parser(a),r=o.parser(r));var s=o.comparator.evaluate(a,r);if(0!==s)return s}return 0}),{data:c}}};function p(t){t.registerTransform(r),t.registerTransform(h)}},6475:function(t,e,i){var n=i(74136),o=i(72231),a=i(19869),r=i(2010),s=i(93037),l=i(5021),u=i(78255),h=i(82762),p=r.A.mapVisual,c=r.A.eachVisual,d=o.isArray,v=o.each,g=u.Y6,f=u.Cb,y=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.stateList=["inRange","outOfRange"],i.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],i.layoutMode={type:"box",ignoreSize:!0},i.dataBound=[-1/0,1/0],i.targetVisuals={},i.controllerVisuals={},i}return(0,n.C6)(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,e){var i=this.option;!e&&s.St(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=o.bind(t,this),this.controllerVisuals=s.u1(this.option.controller,e,t),this.targetVisuals=s.u1(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,i){e.push(i)}):e=l.qB(t),e},e.prototype.eachTargetSeries=function(t,e){o.each(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&t.call(e,n)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(i){i===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,i){var n,a=this.option,r=a.precision,s=this.dataBound,l=a.formatter;i=i||["<",">"],o.isArray(t)&&(t=t.slice(),n=!0);var u=e?t:n?[h(t[0]),h(t[1])]:h(t);return o.isString(l)?l.replace("{value}",n?u[0]:u).replace("{value2}",n?u[1]:u):o.isFunction(l)?n?l(t[0],t[1]):l(t):n?t[0]===s[0]?i[0]+" "+u[1]:t[1]===s[1]?i[1]+" "+u[0]:u[0]+" - "+u[1]:u;function h(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(r,20))}},e.prototype.resetExtent=function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var i=t.dimensions,n=i.length-1;n>=0;n--){var o=i[n],a=t.getDimensionInfo(o);if(!a.isCalculationCoord)return a.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),s=e.controller||(e.controller={});
1o.merge(n,i),o.merge(s,i);var l=this.isCategory();function u(i){d(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")}}function h(t,e,i){var n=t[e],o=t[i];n&&!o&&(o=t[i]={},v(n,function(t,e){if(r.A.isValidType(e)){var i=a.A.get(e,"inactive",l);null!=i&&(o[e]=i,"color"!==e||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}function g(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor"),a=this.getItemSymbol(),r=a||"roundRect";v(this.stateList,function(a){var s=this.itemSize,u=t[a];u||(u=t[a]={color:l?n:[n]}),null==u.symbol&&(u.symbol=e&&o.clone(e)||(l?r:[r])),null==u.symbolSize&&(u.symbolSize=i&&o.clone(i)||(l?s[0]:[s[0],s[0]])),u.symbol=p(u.symbol,function(t){return"none"===t?r:t});var h=u.symbolSize;if(null!=h){var d=-1/0;c(h,function(t){t>d&&(d=t)}),u.symbolSize=p(h,function(t){return f(t,[0,d],[0,s[0]],!0)})}},this)}u.call(this,n),u.call(this,s),h.call(this,n,"inRange","outOfRange"),g.call(this,s)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(h.A);e.A=y},64909:function(t,e,i){var n=i(74136),o=i(72231),a=i(8378),r=i(72773),s=i(53196),l=i(2010),u=i(85974),h=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.autoPositionValues={left:1,right:1,top:1,bottom:1},i}return(0,n.C6)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,i,n){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,i,n):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,i=r.QX(e.get("padding")||0),n=t.getBoundingRect();t.add(new a.A({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,i){i=i||{};var n=i.forceState,a=this.visualMapModel,r={};if("color"===e){var s=a.get("contentColor");r.color=s}function u(t){return r[t]}function h(t,e){r[t]=e}var p=a.controllerVisuals[n||a.getValueState(t)],c=l.A.prepareVisualTypes(p);return o.each(c,function(n){var o=p[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",o=p.__alphaForOpacity),l.A.dependsOn(n,e)&&o&&o.applyVisual(t,u,h)}),r[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,i=this.api;s.m$(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,e,i,n){},e.type="visualMap",e}(u.A);e.A=h},52988:function(t,e,i){i.d(e,{J:function(){return r},l:function(){return s}});var n=i(72231),o=i(53196),a=[["left","right","width"],["top","bottom","height"]];function r(t,e,i){var n=t.option,r=n.align;if(null!=r&&"auto"!==r)return r;for(var s={width:e.getWidth(),height:e.getHeight()},l="horizontal"===n.orient?1:0,u=a[l],h=[0,null,10],p={},c=0;c<3;c++)p[a[1-l][c]]=h[c],p[u[c]]=2===c?i[0]:n[u[c]];var d=[["x","width",3],["y","height",0]][l],v=(0,o.dV)(p,s,n.padding);return u[(v.margin[d[2]]||0)+v[d[0]]+.5*v[d[1]]<.5*s[d[1]]?0:1]}function s(t,e){return n.each(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}},59965:function(t,e,i){i.d(e,{a:function(){return r}});var n=i(9826),o=i(47187),a=i(94918);function r(t){(0,n.Y)(o.a),(0,n.Y)(a.a)}}
1,21268:function(t,e,i){i.d(e,{A:function(){return g}});var n={type:"selectDataRange",event:"dataRangeSelected",update:"update"},o=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})},a=i(72231),r=i(93037),s=i(2010),l=i(83590),u=[{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",function(e){var n=t.pipelineContext;!e.isTargetSeries(t)||n&&n.large||i.push(r.dS(e.stateList,e.targetVisuals,a.bind(e.getValueState,e),e.getDataDimensionIndex(t.getData())))}),i}},{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),n=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var o=e.getVisualMeta(a.bind(h,null,t,e))||{stops:[],outerColors:[]},r=e.getDataDimensionIndex(i);r>=0&&(o.dimension=r,n.push(o))}}),t.getData().setVisual("visualMeta",n)}}];function h(t,e,i,n){for(var o=e.targetVisuals[n],a=s.A.prepareVisualTypes(o),r={color:(0,l.rI)(t.getData(),"color")},u=0,h=a.length;u<h;u++){var p=a[u],c=o["opacity"===p?"__alphaForOpacity":p];c&&c.applyVisual(i,d,v)}return r.color;function d(t){return r[t]}function v(t,e){r[t]=e}}var p=a.each;function c(t){var e=t&&t.visualMap;a.isArray(e)||(e=e?[e]:[]),p(e,function(t){if(t){d(t,"splitList")&&!d(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&a.isArray(e)&&p(e,function(t){a.isObject(t)&&(d(t,"start")&&!d(t,"min")&&(t.min=t.start),d(t,"end")&&!d(t,"max")&&(t.max=t.end))})}})}function d(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var v=!1;function g(t){v||(v=!0,t.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(n,o),(0,a.each)(u,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(c))}},47187:function(t,e,i){i.d(e,{a:function(){return W}});var n=i(74136),o=i(72231),a=i(6475),r=i(78255),s=i(82783),l=[20,140],u=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,n.C6)(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=l[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=l[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):o.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),o.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=r.Y6((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,i=this.getExtent();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},e.prototype.getVisualMeta=function(t){var e=h(this,"outOfRange",this.getExtent()),i=h(this,"inRange",this.option.range.slice()),n=[];function o(e,i){n.push({value:e,color:t(e,i)})}for(var a=0,r=0,s=i.length,l=e.length;r<l&&(!i.length||e[r]<=i[0]);r++)e[r]<i[a]&&o(e[r],"outOfRange");for(var u=1;a<s;a++,u=0)u&&n.length&&o(i[a],"outOfRange"),o(i[a],"inRange");for(u=1;r<l;r++)(!i.length||i[i.length-1]<e[r])&&(u&&(n.length&&o(n[n.length-1].value,"outOfRange"),u=0),o(e[r],"outOfRange"));var p=n.length;return{stops:n,outerColors:[p?n[0].color:"transparent",p?n[p-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=(0,s.G_)(a.A.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(a.A);
1function h(t,e,i){if(i[0]===i[1])return i.slice();for(var n=200,o=(i[1]-i[0])/n,a=i[0],r=[],s=0;s<=n&&a<i[1];s++)r.push(a),a+=o;return r.push(i[1]),r}var p=u,c=i(66511),d=i(52795),v=i(64909),g=i(94881),f=i(66035),y=i(8378),m=i(67808),_=i(78048),x=i(80766),S=i(52988),M=i(5021),b=i(57621),I=i(4772),V=i(77298),L=i(16237),w=i(94895),T=i(39415),A=i(48524),O=r.Cb,C=o.each,R=Math.min,k=Math.max,z=12,D=6,H=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._shapes={},i._dataInterval=[],i._handleEnds=[],i._hoverLinkDataIndices=[],i}return(0,n.C6)(e,t),e.prototype.init=function(e,i){t.prototype.init.call(this,e,i),this._hoverLinkFromSeriesMouseOver=o.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=o.bind(this._hideIndicator,this)},e.prototype.doRender=function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,i){if(e){var n=e[1-i];n=null!=n?n+"":"";var o=this.visualMapModel,a=o.get("textGap"),r=o.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([r[0]/2,0===i?-a:r[1]+a],s),u=this._applyTransform(0===i?"bottom":"top",s),h=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new g.Ay({style:(0,T.VB)(p,{x:l[0],y:l[1],verticalAlign:"horizontal"===h?"middle":u,align:"horizontal"===h?u:"center",text:n})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,i=this._shapes,n=e.itemSize,a=this._orient,r=this._useHandle,s=S.J(e,this.api,n),l=i.mainGroup=this._createBarGroup(s),u=new f.A;l.add(u),u.add(i.outOfRange=P()),u.add(i.inRange=P(null,r?F(this._orient):null,o.bind(this._dragHandle,this,"all",!1),o.bind(this._dragHandle,this,"all",!0))),u.setClipPath(new y.A({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var h=e.textStyleModel.getTextRect("国"),p=k(h.width,h.height);r&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(e,l,0,n,p,a),this._createHandle(e,l,1,n,p,a)),this._createIndicator(e,l,n,p,a),t.add(l)},e.prototype._createHandle=function(t,e,i,n,a,r){var s=o.bind(this._dragHandle,this,i,!1),l=o.bind(this._dragHandle,this,i,!0),u=(0,b.lo)(t.get("handleSize"),n[0]),h=(0,V.v5)(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),p=F(this._orient);h.attr({cursor:p,draggable:!0,drift:s,ondragend:l,onmousemove:function(t){d.ds(t.event)}}),h.x=n[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,I.ix)(h,!0),e.add(h);var c=this.visualMapModel.textStyleModel,v=new g.Ay({cursor:p,draggable:!0,drift:s,onmousemove:function(t){d.ds(t.event)},ondragend:l,style:(0,T.VB)(c,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var f=[u,0],y=this._shapes;y.handleThumbs[i]=h,y.handleLabelPoints[i]=f,y.handleLabels[i]=v},e.prototype._createIndicator=function(t,e,i,n,a){var r=(0,b.lo)(t.get("indicatorSize"),i[0]),s=(0,V.v5)(t.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var l=t.getModel("indicatorStyle").getItemStyle();if(s instanceof L.Ay){var u=s.style;s.useStyle(o.extend({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l);e.add(s);var h=this.visualMapModel.textStyleModel,p=new g.Ay({silent:!0,invisible:!0,style:(0,T.VB)(h,{x:0,y:0,text:""})});this.group.add(p);var c=[("horizontal"===a?n/2:D)+i[0]/2,0],d=this._shapes;d.indicator=s,d.indicatorLabel=p,d.indicatorLabelPoint=c,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,i,n){if(this._useHandle){if(this._dragging=!e,!e){var o=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():B(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[O(e[0],i,n,!0),O(e[1],i,n,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize[1]];(0,x.A)(e,n,o,t,0);var a=i.getExtent();this._dataInterval=[O(n[0],o,a,!0),O(n[1],o,a,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,i=e.getExtent(),n=this._shapes,o=[0,e.itemSize[1]],a=t?o:this._handleEnds,r=this._createBarVisual(this._dataInterval,i,a,"inRange"),s=this._createBarVisual(i,i,o,"outOfRange");n.inRange.setStyle({fill:r.barColor}).setShape("points",r.barPoints),n.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,r)}
1,e.prototype._createBarVisual=function(t,e,i,n){var o={forceState:n,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,o),r=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],s=this._createBarPoints(i,r);return{barColor:new c.A(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var i=100,n=[],o=(t[1]-t[0])/i;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var a=1;a<i;a++){var r=t[0]+o*a;if(r>t[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:a/i})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new f.A("horizontal"!==e||i?"horizontal"===e&&i?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||i?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,a=i.handleLabels,r=n.itemSize,s=n.getExtent(),l=this._applyTransform("left",i.mainGroup);C([0,1],function(u){var h=o[u];h.setStyle("fill",e.handlesColor[u]),h.y=t[u];var p=O(t[u],[0,r[1]],s,!0),c=this.getControllerVisual(p,"symbolSize");h.scaleX=h.scaleY=c/r[0],h.x=r[0]-c/2;var d=m.applyTransform(i.handleLabelPoints[u],m.getTransform(h,this.group));if("horizontal"===this._orient){var v="left"===l||"top"===l?(r[0]-c)/2:(r[0]-c)/-2;d[1]+=v}a[u].setStyle({x:d[0],y:d[1],text:n.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,i,n){var o=this.visualMapModel,a=o.getExtent(),r=o.itemSize,s=[0,r[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",h),c=this.getControllerVisual(t,"symbolSize"),d=O(t,a,s,!0),v=r[0]-c/2,g={x:u.x,y:u.y};u.y=d,u.x=v;var f=m.applyTransform(l.indicatorLabelPoint,m.getTransform(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var _=this._applyTransform("left",l.mainGroup),x=this._orient,S="horizontal"===x;y.setStyle({text:(i||"")+o.formatValueText(e),verticalAlign:S?_:"middle",align:S?"center":_});var M={x:v,y:d,style:{fill:p}},b={style:{x:f[0],y:f[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var I={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(M,I),y.animateTo(b,I)}else u.attr(M),y.attr(b);this._firstShowIndicator=!1;var V=this._shapes.handleLabels;if(V)for(var L=0;L<V.length;L++)this.api.enterBlur(V[L])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);n[1]=R(k(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var o=[0,n[1]],a=i.getExtent();t=R(k(o[0],t),o[1]);var r=E(i,a,o),s=[t-r,t+r],l=O(t,o,a,!0),u=[O(s[0],o,a,!0),O(s[1],o,a,!0)];s[0]<o[0]&&(u[0]=-1/0),s[1]>o[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",r):u[1]===1/0?this._showIndicator(l,u[0],"> ",r):this._showIndicator(l,l,"≈ ",r));var h=this._hoverLinkDataIndices,p=[];(e||B(i))&&(p=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var c=M.D6(h,p);this._dispatchHighDown("downplay",S.l(c[0],i)),this._dispatchHighDown("highlight",S.l(c[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if((0,A.R)(t.target,function(t){var i=(0,w.z)(t);if(null!=i.dataIndex)return e=i,!0},!0),e){var i=this.ecModel.getSeriesByIndex(e.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(i)){var o=i.getData(e.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),e.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var i=0;i<e.length;i++)this.api.leaveBlur(e[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",S.l(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)}
1,e.prototype._applyTransform=function(t,e,i,n){var a=m.getTransform(e,n?null:this.group);return o.isArray(t)?m.applyTransform(t,a,i):m.transformDirection(t,a,i)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(v.A);function P(t,e,i,n){return new _.A({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){d.ds(t.event)},ondragend:n})}function E(t,e,i){var n=z/2,o=t.get("hoverLinkDataSize");return o&&(n=O(o,e,i,!0)/2),n}function B(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function F(t){return"vertical"===t?"ns-resize":"ew-resize"}var G=H,N=i(21268);function W(t){t.registerComponentModel(p),t.registerComponentView(G),(0,N.A)(t)}},94918:function(t,e,i){i.d(e,{a:function(){return I}});var n=i(74136),o=i(72231),a=i(6475),r=i(2010),s=i(19869),l=i(78255),u=i(82783),h=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._pieceList=[],i}return(0,n.C6)(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],p[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var a=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=o.clone(a)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=o.map(this._pieceList,function(t){return t=o.clone(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,i={},n=r.A.listVisualTypes(),a=this.isCategory();function l(t,e,i){return t&&t[e]&&t[e].hasOwnProperty(i)}o.each(e.pieces,function(t){o.each(n,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),o.each(i,function(t,i){var n=!1;o.each(this.stateList,function(t){n=n||l(e,t,i)||l(e.target,t,i)},this),!n&&o.each(this.stateList,function(t){(e[t]||(e[t]={}))[i]=s.A.get(i,"inRange"===t?"active":"inactive",a)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var i=this.option,n=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,o.each(n,function(t,e){var i=this.getSelectedMapKey(t);a.hasOwnProperty(i)||(a[i]=!0)},this),"single"===i.selectedMode){var r=!1;o.each(n,function(t,e){var i=this.getSelectedMapKey(t);a[i]&&(r?a[i]=!1:r=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=o.clone(t)},e.prototype.getValueState=function(t){var e=r.A.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],a=n.getData();a.each(this.getDataDimensionIndex(a),function(e,n){var a=r.A.findPieceIndex(e,i);a===t&&o.push(n)},this),e.push({seriesId:n.id,dataIndex:o})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],i=["",""],n=this,a=this._pieceList.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),r=a[a.length-1].interval[1],r!==1/0&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return o.each(a,function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])},this),{stops:e,outerColors:i}}function l(o,a){var r=n.getRepresentValue({interval:o});a||(a=n.getValueState(r));var s=t(r,a);o[0]===-1/0?i[0]=s:o[1]===1/0?i[1]=s:e.push({value:o[0],color:s},{value:o[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,u.G_)(a.A.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,
1splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(a.A),p={splitNumber:function(t){var e=this.option,i=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;var r=(n[1]-n[0])/a;while(+r.toFixed(i)!==r&&i<5)i++;e.precision=i,r=+r.toFixed(i),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var s=0,u=n[0];s<a;u+=r,s++){var h=s===a-1?n[1]:u+r;t.push({interval:[u,h],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),(0,l.sL)(t),o.each(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(t){var e=this.option;o.each(e.categories,function(e){t.push({text:this.formatValueText(e,!0),value:e})},this),c(e,t)},pieces:function(t){var e=this.option;o.each(e.pieces,function(e,i){o.isObject(e)||(e={value:e});var n={text:"",index:i};if(null!=e.label&&(n.text=e.label),e.hasOwnProperty("value")){var a=n.value=e.value;n.interval=[a,a],n.close=[1,1]}else{for(var s=n.interval=[],l=n.close=[0,0],u=[1,0,1],h=[-1/0,1/0],p=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&null==s[c];v++)s[c]=e[d[v]],l[c]=u[v],p[c]=2===v;null==s[c]&&(s[c]=h[c])}p[0]&&s[1]===1/0&&(l[0]=0),p[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(n.value=s[0])}n.visual=r.A.retrieveVisuals(e),t.push(n)},this),c(e,t),(0,l.sL)(t),o.each(t,function(t){var e=t.close,i=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}};function c(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var d=h,v=i(64909),g=i(66035),f=i(94881),y=i(77298),m=i(53196),_=i(52988),x=i(39415),S=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,n.C6)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,a=n.getFont(),r=n.getTextColor(),s=this._getItemAlign(),l=e.itemSize,u=this._getViewData(),h=u.endsText,p=o.retrieve(e.get("showLabel",!0),!h),c=!e.get("selectedMode");h&&this._renderEndsText(t,h[0],l,p,s),o.each(u.viewPieceList,function(n){var u=n.piece,h=new g.A;h.onclick=o.bind(this._onItemClick,this,u),this._enableHoverLink(h,n.indexInModelPieceList);var d=e.getRepresentValue(u);if(this._createItemSymbol(h,d,[0,0,l[0],l[1]],c),p){var v=this.visualMapModel.getValueState(d);h.add(new f.Ay({style:{x:"right"===s?-i:l[0]+i,y:l[1]/2,text:u.text,verticalAlign:"middle",align:s,font:a,fill:r,opacity:"outOfRange"===v?.5:1},silent:c}))}t.add(h)},this),h&&this._renderEndsText(t,h[1],l,p,s),m.aP(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var i=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(t){var n=i.visualMapModel;n.option.hoverLink&&i.api.dispatchAction({type:t,batch:_.l(n.findTargetDataIndices(e),n)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return _.J(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},e.prototype._renderEndsText=function(t,e,i,n,o){if(e){var a=new g.A,r=this.visualMapModel.textStyleModel;
1a.add(new f.Ay({style:(0,x.VB)(r,{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:e})})),t.add(a)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=o.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),n=t.get("orient"),a=t.get("inverse");return("horizontal"===n?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},e.prototype._createItemSymbol=function(t,e,i,n){var o=(0,y.v5)(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color"));o.silent=n,t.add(o)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,i=e.option,n=i.selectedMode;if(n){var a=o.clone(i.selected),r=e.getSelectedMapKey(t);"single"===n||!0===n?(a[r]=!0,o.each(a,function(t,e){a[e]=e===r})):a[r]=!a[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},e.type="visualMap.piecewise",e}(v.A),M=S,b=i(21268);function I(t){t.registerComponentModel(d),t.registerComponentView(M),(0,b.A)(t)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.