UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 576 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldFinanceChartV2=e():t.GoldFinanceChartV2=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2252)}({0:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId=o);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var h=u.render;u.render=function(t,e){return c.call(e),h(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}e.a=i},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,n){t.exports={default:n(101),__esModule:!0}},101:function(t,e,n){n(55),t.exports=n(0).Object.getOwnPropertySymbols},102:function(t,e,n){"use strict";function i(t){var e={},n={},i={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==s.indexOf(l))e[l]=t[l];else if(a.test(l)){var u=a.exec(l)[1];u=Object(o.a)(u),i[u]=t[l]}else n[l]=t[l];return e.on=Object(r.a)(i,e.on),e.props=Object(r.a)(n,e.props),e}e.a=i;var r=n(62),o=n(103),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},103:function(t,e,n){"use strict";function i(t,e){var n=l(t,e);return n.charAt(0).toLowerCase()+n.slice(1)}e.a=i;var r=n(28),o=n.n(r),a=n(4),s=function(t){for(var e=!1,n=!1,i=!1,r=0;r<t.length;r++){var o=t[r];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,r)+"-"+t.slice(r),e=!1,i=n,n=!0,r++):n&&i&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,r-1)+"-"+t.slice(r-1),i=n,n=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,i=n,n=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.p)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},104:function(t,e,n){"use strict";function i(t,e,n,i){var o=void 0,a=void 0,s=new t({render:function(t){var n=a&&a(t);return n&&!Object(r.p)(n)&&(n=[n]),t(e,o,n||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(n,i),s.$mount(),s.init(),s.$children[0]}e.a=i;var r=n(4)},106:function(t,e,n){"use strict";e.__esModule=!0;var i=n(28),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},107:function(t,e,n){var i=n(26),r=n(3)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},11:function(t,e,n){var i=n(47),r=n(29);t.exports=function(t){return i(r(t))}},115:function(t,e,n){var i=n(107),r=n(3)("iterator"),o=n(18);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},117:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1224:function(t,e,n){t.exports={default:n(1225),__esModule:!0}},1225:function(t,e,n){n(53),n(1226),t.exports=n(0).Array.from},1226:function(t,e,n){"use strict";var i=n(38),r=n(13),o=n(24),a=n(136),s=n(137),l=n(59),u=n(1227),c=n(115);r(r.S+r.F*!n(141)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,h,f=o(t),p="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,y=void 0!==g,v=0,m=c(f);if(y&&(g=i(g,d>2?arguments[2]:void 0,2)),void 0==m||p==Array&&s(m))for(e=l(f.length),n=new p(e);e>v;v++)u(n,v,y?g(f[v],v):f[v]);else for(h=m.call(f),n=new p;!(r=h.next()).done;v++)u(n,v,y?a(h,g,[r.value,v],!0):r.value);return n.length=v,n}})},1227:function(t,e,n){"use strict";var i=n(8),r=n(19);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},13:function(t,e,n){var i=n(2),r=n(0),o=n(38),a=n(7),s=n(6),l=function(t,e,n){var u,c,h,f=t&l.F,p=t&l.G,d=t&l.S,g=t&l.P,y=t&l.B,v=t&l.W,m=p?r:r[e]||(r[e]={}),_=m.prototype,x=p?i:d?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(c=!f&&x&&void 0!==x[u])&&s(m,u)||(h=c?x[u]:n[u],m[u]=p&&"function"!=typeof x[u]?n[u]:y&&c?o(h,i):v&&x[u]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((m.virtual||(m.virtual={}))[u]=h,t&l.R&&_&&!_[u]&&a(_,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},136:function(t,e,n){var i=n(9);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},137:function(t,e,n){var i=n(18),r=n(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},14:function(t,e,n){"use strict";function i(t,e){return function(n,i){var a=this,s=Object(r.a)(n),l=Object(o.a)(e,t,s,i),u=l.$parent,c=l.remove,h=l.show,f=l.hide;return l.remove=function(){l.$removed=!0,c&&c.call(this),u.destroy()},l.show=function(){return h&&h.call.apply(h,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return f&&f.call.apply(f,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=i;var r=n(102),o=n(104)},141:function(t,e,n){var i=n(3)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},1451:function(t,e,n){function i(t){return n(r(t))}function r(t){var e=o[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var o={"./circle1.png":2258,"./circle2.png":2259,"./circle3.png":2260};i.keys=function(){return Object.keys(o)},i.resolve=r,t.exports=i,i.id=1451},15:function(t,e,n){var i=n(50),r=n(33);t.exports=Object.keys||function(t){return i(t,r)}},16:function(t,e){t.exports=!0},1630:function(t,e,n){"use strict";var i=n(58),r=n.n(i),o=n(106),a=n.n(o),s=n(1224),l=n.n(s),u=n(20),c=n(2255),h=n(1632);e.a={name:"ActGoldFinanceChartV2",components:{Chart:c.a},mixins:[u.a],data:function(){return{chartOptions:null,source:l()({length:70},function(t,e){return[e+1]}),selectedData:[],colorConfig:h.a,hasData:!1}},props:{costTable:{type:Array,default:function(){return[]}},config:{type:Object,default:function(){return{title:"",colsXText:"",colsYText:"",colsXUnit:"",colsYUnit:"",productList:[],source:[],markPoint:[]}}}},filters:{formatPrice:function(t){var e=t/1e4,n=e.toString().split(".");return n[1]&&(n[1]=n[1].substr(0,2)),n.join(".")+"万元"}},computed:{isNewVersion:function(){return!(this.costTable.length>0)},filteredCostTable:function(){return this.costTable.filter(function(t){return-1!==t.colsType.findIndex(function(t){return 3===Number(t)})}).map(function(t){return t})}},created:function(){this.costTable.length>0?(this.initConfig(),this.generateData()):(this.initConfigV2(),this.generateDataV2())},methods:a()({},function(){return{initConfigV2:function(){var t=this.config;this.chartOptions={config:{xAxis:{labelFormat:function(e){return""+(e+t.colsXUnit)}},yAxis:{labelFormat:function(e){return""+(e+t.colsYUnit)}}},data:{markPoint:[],source:[]}}},generateDataV2:function(){var t=this.config.source||[],e=this.config.markPoint||[];this.chartOptions.data={markPoint:e,source:t},this.hasData=!0}}}(),{initConfig:function(){this.chartOptions={config:{xAxis:{labelFormat:function(t){return t+"年"}},yAxis:{labelFormat:function(t){return Math.floor(Number(t)/1e4)+"万"}}},data:{markPoint:[],source:[]}}},handleOriginData:function(t,e,n,i){var r=t.colsType.findIndex(function(t){return 3===Number(t)}),o=t.colsType.findIndex(function(t){return 6===Number(t)});this.$set(n,e,[]);for(var a=1,s=0;s<t.rows.length&&!(s>=70);s++){var l=t.rows[s],u=Number(l[r]),c=Number(l[o]);i[s].push(l[r]),this.findMultiple(c,u,a)&&(n[e].push({name:1===a?"本":"x"+a,coord:[s+1,u]}),a++)}},getCurrentData:function(t){this.selectedData=t},findMultiple:function(t,e,n){return e>=t*n},generateData:function(){if(!this.filteredCostTable||!this.filteredCostTable.length)return this.$emit("error"),void(this.hasData=!1);this.hasData=!0;for(var t=JSON.parse(r()(this.source)),e=[],n=0;n<this.filteredCostTable.length;n++)this.handleOriginData(this.filteredCostTable[n],n,e,t);this.chartOptions.data={markPoint:e,source:t}}}),watch:{costTable:{handler:function(){this.generateData()}},config:{handler:function(){this.generateDataV2()},deep:!0}}}},1631:function(t,e,n){"use strict";var i=n(28),r=n.n(i),o=n(1632),a=n(2257);e.a={props:{chartOptions:{type:Object,default:function(){return{config:{xAxis:{labelFormat:function(){}},yAxis:{labelFormat:function(){}}},data:{markPoint:[],source:[]}}}}},data:function(){return{chart:null}},computed:{defaultChartOption:function(){return{grid:{height:this.remToPxBased10Px(15),top:this.remToPxBased10Px(2.6),left:this.remToPxBased10Px(4.5),right:this.remToPxBased10Px(2.3),bottom:0,containLabel:!1},tooltip:{trigger:"axis",triggerOn:"mousemove",showContent:!1,axisPointer:{type:"cross",z:1}},xAxis:{type:"category",boundaryGap:!1,axisPointer:{label:{show:!1},lineStyle:{type:"solid",width:2,color:"#eeeeee"},show:!0},axisLabel:{showMaxLabel:!0,formatter:this.chartOptions.config.xAxis.labelFormat,interval:this.getXAxisInterval(),color:"#B3B3B3",fontSize:this.remToPxBased10Px(1),lineHeight:this.remToPxBased10Px(1.5)},axisLine:{lineStyle:{color:"#F5F5F5"}}},yAxis:{axisPointer:{label:{show:!1},lineStyle:{type:"solid",width:2,color:"#eeeeee"},show:!0},axisLine:{lineStyle:{color:"#B3B3B3"}},axisLabel:{formatter:this.chartOptions.config.yAxis.labelFormat,color:"#B3B3B3",fontSize:this.remToPxBased10Px(1),lineHeight:this.remToPxBased10Px(1.5)},splitLine:{lineStyle:{color:"#F5F5F5"}}},series:{type:"line",showSymbol:!1,symbolSize:[this.remToPxBased10Px(1.4),this.remToPxBased10Px(1.4)],smooth:!0,lineStyle:{width:3}}}}},methods:{getXAxisInterval:function(){var t=this.chartOptions.data.source.length;return Math.floor(t/7)},setEcharts:function(){for(var t=this.chartOptions.data.source[0].length-1,e=[],i=0;i<t;i++)e.push(r()({},this.defaultChartOption.series,{symbol:"image://"+n(1451)("./circle"+(i+1)+".png"),areaStyle:{color:new a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:o.b[i][0]},{offset:1,color:o.b[i][1]}])},color:o.a[i],markPoint:{symbol:"image://"+n(2261)("./tag"+(i+1)+".png"),symbolSize:[this.remToPxBased10Px(1.6),this.remToPxBased10Px(1.7)],symbolOffset:["-30%","-50%"],silent:!0,label:{show:!0,formatter:"{b}",color:"#fff",fontSize:this.remToPxBased10Px(.7),position:[this.remToPxBased10Px(.5),this.remToPxBased10Px(.4)]},data:this.chartOptions.data.markPoint[i]}}));var s=r()({},this.defaultChartOption,{series:e,dataset:{source:this.chartOptions.data.source}});this.chart.setOption(s)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],n=parseFloat(getComputedStyle(e,null).fontSize);if(n>12)return t*n;var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=i/375*10;return i?t*r:10*t}},mounted:function(){var t=this;this.chart=a.init(this.$refs.chart),this.chart.getZr().on("mousemove",function(e){var n=[e.offsetX,e.offsetY],i=t.chart.convertFromPixel("grid",n);if(t.chart.containPixel("grid",n)){var r=t.chart.getOption(),o=r.dataset,a=o[0].source,s=a.find(function(t,e){return e===i[0]});s&&t.$emit("getCurrentData",s)}}),this.setEcharts()},watch:{"chartOptions.data":function(t){t&&this.setEcharts()}}}},1632:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=["rgba(255, 90, 110, 1)","rgba(140, 127, 238, 1)","rgba(255, 171, 17, 1)"],r=[["rgba(255, 90, 110, 0.2)","rgba(255, 90, 110, 0)"],["rgba(140, 127, 238, 0.2)","rgba(140, 127, 238, 0)"],["rgba(255, 171, 17, 0.2)","rgba(255, 171, 17, 0)"]]},18:function(t,e){t.exports={}},19:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},20:function(t,e,n){"use strict";var i={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{preOverflowValue:"",isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,n){e?t.show():n&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}},beforeDestroy:function(){this.hide()}};e.a=i},2252:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),r=n(2253);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createGoldFinanceChartV2=Object(i.a)(r.a,t)},e.default=r.a},2253:function(t,e,n){"use strict";function i(t){s||n(2254)}var r=n(1630),o=n(2266),a=n(1),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-b2832d64",null);u.options.__file="src\\components\\GoldFinanceChartV2\\src\\index.vue",e.a=u.exports},2254:function(t,e){},2255:function(t,e,n){"use strict";function i(t){s||n(2256)}var r=n(1631),o=n(2265),a=n(1),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-3520b25a",null);u.options.__file="src\\components\\GoldFinanceChartV2\\src\\chart.vue",e.a=u.exports},2256:function(t,e){},2257:function(t,e,n){(function(t){!function(t,n){n(e)}(0,function(t){"use strict";function e(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vy(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t){for(var e in Cy)t[e]&&(Cy[e]=t[e])}function i(){return Fy++}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function o(t){if(null==t||"object"!=typeof t)return t;var e=t,n=ky.call(t);if("[object Array]"===n){if(!G(t)){e=[];for(var i=0,r=t.length;r>i;i++)e[i]=o(t[i])}}else if(Iy[n]){if(!G(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=t[i]}}}else if(!Ay[n]&&!G(t)&&!D(t)){e={};for(var s in t)t.hasOwnProperty(s)&&s!==Ny&&(e[s]=o(t[s]))}return e}function a(t,e,n){if(!A(e)||!A(t))return n?o(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Ny){var r=t[i],s=e[i];!A(s)||!A(r)||b(s)||b(r)||D(s)||D(r)||I(s)||I(r)||G(s)||G(r)?!n&&i in t||(t[i]=o(e[i])):a(r,s,n)}return t}function s(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=a(n,t[i],e);return n}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Ny&&(t[n]=e[n]);return t}function u(t,e,n){for(var i=_(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function c(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function h(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function f(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else u(t,e,n)}function p(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function d(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Py)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function g(t,e,n){if(!t)return[];if(!e)return F(t);if(t.map&&t.map===Ey)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function y(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function v(t,e,n){if(!t)return[];if(!e)return F(t);if(t.filter&&t.filter===Oy)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function m(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function _(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function x(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(Ly.call(arguments)))}}function w(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Ly.call(arguments)))}}function b(t){return Array.isArray?Array.isArray(t):"[object Array]"===ky.call(t)}function S(t){return"function"==typeof t}function M(t){return"string"==typeof t}function T(t){return"[object String]"===ky.call(t)}function C(t){return"number"==typeof t}function A(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function I(t){return!!Ay[ky.call(t)]}function k(t){return!!Iy[ky.call(t)]}function D(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function P(t){return null!=t.colorStops}function O(t){return null!=t.image}function L(t){return"[object RegExp]"===ky.call(t)}function E(t){return t!==t}function R(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;i>n;n++)if(null!=t[n])return t[n]}function B(t,e){return null!=t?t:e}function N(t,e,n){return null!=t?t:null!=e?e:n}function F(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Ly.apply(t,e)}function z(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function V(t,e){if(!t)throw new Error(e)}function H(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function U(t){t[Hy]=!0}function G(t){return t[Hy]}function W(){return Gy?new Map:new Uy}function j(t){return new Wy(t)}function Y(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function X(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&l(n,e),n}function q(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Z(t,e){return t.hasOwnProperty(e)}function K(){}function Q(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function J(t,e){return t[0]=e[0],t[1]=e[1],t}function $(t){return[t[0],t[1]]}function tt(t,e,n){return t[0]=e,t[1]=n,t}function et(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function nt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function it(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function rt(t){return Math.sqrt(ot(t))}function ot(t){return t[0]*t[0]+t[1]*t[1]}function at(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function st(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function lt(t,e){return t[0]*e[0]+t[1]*e[1]}function ut(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function ct(t,e){var n=rt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ht(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ft(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function pt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function dt(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function gt(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function yt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function vt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function mt(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ev);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,f=0,p=0;s>f;f++){var d=1<<f;d&r||(h+=(p%2?-1:1)*t[n][f]*mt(t,e-1,c,u,r|d,o),p++)}return o[a]=h,h}function _t(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=mt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*mt(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}function xt(t,e,n,i,r){return wt(iv,e,i,r,!0)&&wt(t,n,iv[0],iv[1])}function wt(t,e,n,i,r){if(e.getBoundingClientRect&&xy.domSupported&&!Mt(e)){var o=e[nv]||(e[nv]={}),a=bt(e,o),s=St(a,o,r);if(s)return s(t,n,i),!0}return!1}function bt(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function St(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var c=t[u].getBoundingClientRect(),h=2*u,f=c.left,p=c.top;a.push(f,p),l=l&&o&&f===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?_t(s,a):_t(a,s))}function Mt(t){return"CANVAS"===t.nodeName.toUpperCase()}function Tt(t){return null==t?"":(t+"").replace(rv,function(t,e){return ov[e]})}function Ct(t,e,n,i){return n=n||{},i?At(t,e,n):lv&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):At(t,e,n),n}function At(t,e,n){if(xy.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Mt(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(wt(sv,t,i,r))return n.zrX=sv[0],void(n.zrY=sv[1])}n.zrX=n.zrY=0}function It(t){return t||window.event}function kt(t,e,n){if(e=It(e),null!=e.zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Ct(t,r,e,n)}else{Ct(t,e,e,n);var o=Dt(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&av.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Dt(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*Math.abs(0!==i?i:n)*(i>0?-1:0>i?1:n>0?-1:1)}function Pt(t,e,n,i){t.addEventListener(e,n,i)}function Ot(t,e,n,i){t.removeEventListener(e,n,i)}function Lt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Et(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Rt(){return[1,0,0,1,0,0]}function Bt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Nt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ft(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function zt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Vt(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function Ht(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ut(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Gt(t){var e=Rt();return Nt(e,t),e}function Wt(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:jt}}function jt(){uv(this.event)}function Yt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||Sv}return!1}function Xt(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Yt(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Sv)){e.target=a;break}}}function qt(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function Zt(t){for(var e=0;t>=Dv;)e|=1&t,t>>=1;return t+e}function Kt(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;Qt(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function Qt(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function Jt(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function $t(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function te(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ee(t,e){function n(t,e){l[h]=t,u[h]=e,h+=1}function i(){for(;h>1;){var t=h-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;o(t)}}function r(){for(;h>1;){var t=h-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(n){var i=l[n],r=u[n],o=l[n+1],c=u[n+1];u[n]=r+c,n===h-3&&(l[n+1]=l[n+2],u[n+1]=u[n+2]),h--;var f=te(t[o],t,i,r,0,e);i+=f,0!==(r-=f)&&0!==(c=$t(t[i+r-1],t,o,c,c-1,e))&&(c>=r?a(i,r,o,c):s(i,r,o,c))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)f[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!=--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=f[s])}for(var h,p,d,g=c;;){h=0,p=0,d=!1;do{if(e(t[l],f[s])<0){if(t[u++]=t[l++],p++,h=0,0==--o){d=!0;break}}else if(t[u++]=f[s++],h++,p=0,1==--i){d=!0;break}}while(g>(h|p));if(d)break;do{if(0!==(h=te(t[l],f,s,i,0,e))){for(a=0;h>a;a++)t[u+a]=f[s+a];if(u+=h,s+=h,1>=(i-=h)){d=!0;break}}if(t[u++]=t[l++],0==--o){d=!0;break}if(0!==(p=$t(f[s],t,l,o,0,e))){for(a=0;p>a;a++)t[u+a]=t[l+a];if(u+=p,l+=p,0===(o-=p)){d=!0;break}}if(t[u++]=f[s++],1==--i){d=!0;break}g--}while(h>=Pv||p>=Pv);if(d)break;0>g&&(g=0),g+=2}if(c=g,1>c&&(c=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=f[s]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[u+a]=f[s+a]}}else for(a=0;i>a;a++)t[u+a]=f[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)f[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,h=0,p=0;if(t[u--]=t[s--],0!=--i){if(1===o){for(u-=i,s-=i,p=u+1,h=s+1,a=i-1;a>=0;a--)t[p+a]=t[h+a];return void(t[u]=f[l])}for(var d=c;;){var g=0,y=0,v=!1;do{if(e(f[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0==--i){v=!0;break}}else if(t[u--]=f[l--],y++,g=0,1==--o){v=!0;break}}while(d>(g|y));if(v)break;do{if(0!==(g=i-te(f[l],t,n,i,i-1,e))){for(u-=g,s-=g,i-=g,p=u+1,h=s+1,a=g-1;a>=0;a--)t[p+a]=t[h+a];if(0===i){v=!0;break}}if(t[u--]=f[l--],1==--o){v=!0;break}if(0!==(y=o-$t(t[s],f,0,o,o-1,e))){for(u-=y,l-=y,o-=y,p=u+1,h=l+1,a=0;y>a;a++)t[p+a]=f[h+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0==--i){v=!0;break}d--}while(g>=Pv||y>=Pv);if(v)break;0>d&&(d=0),d+=2}if(c=d,1>c&&(c=1),1===o){for(u-=i,s-=i,p=u+1,h=s+1,a=i-1;a>=0;a--)t[p+a]=t[h+a];t[u]=f[l]}else{if(0===o)throw new Error;for(h=u-(o-1),a=0;o>a;a++)t[h+a]=f[a]}}else for(h=u-(o-1),a=0;o>a;a++)t[h+a]=f[a]}var l,u,c=Pv,h=0,f=[];return l=[],u=[],{mergeRuns:i,forceMergeRuns:r,pushRun:n}}function ne(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(Dv>r)return o=Kt(t,n,i,e),void Jt(t,n,i,n+o,e);var a=ee(t,e),s=Zt(r);do{if(o=Kt(t,n,i,e),s>o){var l=r;l>s&&(l=s),Jt(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function ie(){Ev||(Ev=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function re(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function oe(t){return t>-Vv&&Vv>t}function ae(t){return t>Vv||-Vv>t}function se(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function le(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function ue(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,f=l*l-3*s*u,p=0;if(oe(c)&&oe(h))if(oe(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[p++]=d)}else{var g=h*h-4*c*f;if(oe(g)){var y=h/c,d=-s/a+y,v=-y/2;d>=0&&1>=d&&(o[p++]=d),v>=0&&1>=v&&(o[p++]=v)}else if(g>0){var m=zv(g),_=c*s+1.5*a*(-h+m),x=c*s+1.5*a*(-h-m);_=0>_?-Fv(-_,Gv):Fv(_,Gv),x=0>x?-Fv(-x,Gv):Fv(x,Gv);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[p++]=d)}else{var w=(2*c*s-3*a*h)/(2*zv(c*c*c)),b=Math.acos(w)/3,S=zv(c),M=Math.cos(b),d=(-s-2*S*M)/(3*a),v=(-s+S*(M+Uv*Math.sin(b)))/(3*a),T=(-s+S*(M-Uv*Math.sin(b)))/(3*a);d>=0&&1>=d&&(o[p++]=d),v>=0&&1>=v&&(o[p++]=v),T>=0&&1>=T&&(o[p++]=T)}}return p}function ce(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(oe(a)){if(ae(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(oe(c))r[0]=-o/(2*a);else if(c>0){var h=zv(c),u=(-o+h)/(2*a),f=(-o-h)/(2*a);u>=0&&1>=u&&(r[l++]=u),f>=0&&1>=f&&(r[l++]=f)}}return l}function he(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function fe(t,e,n,i,r,o,a,s,l,u,c){var h,f,p,d,g,y=.005,v=1/0;Wv[0]=l,Wv[1]=u;for(var m=0;1>m;m+=.05)jv[0]=se(t,n,r,a,m),jv[1]=se(e,i,o,s,m),d=Ky(Wv,jv),v>d&&(h=m,v=d);v=1/0;for(var _=0;32>_&&!(Hv>y);_++)f=h-y,p=h+y,jv[0]=se(t,n,r,a,f),jv[1]=se(e,i,o,s,f),d=Ky(jv,Wv),f>=0&&v>d?(h=f,v=d):(Yv[0]=se(t,n,r,a,p),Yv[1]=se(e,i,o,s,p),g=Ky(Yv,Wv),1>=p&&v>g?(h=p,v=g):y*=.5);return c&&(c[0]=se(t,n,r,a,h),c[1]=se(e,i,o,s,h)),zv(v)}function pe(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,f=1/l,p=1;l>=p;p++){var d=p*f,g=se(t,n,r,a,d),y=se(e,i,o,s,d),v=g-u,m=y-c;h+=Math.sqrt(v*v+m*m),u=g,c=y}return h}function de(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function ge(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function ye(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(oe(o)){if(ae(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(oe(c)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(c>0){var h=zv(c),u=(-a+h)/(2*o),f=(-a-h)/(2*o);u>=0&&1>=u&&(r[l++]=u),f>=0&&1>=f&&(r[l++]=f)}}return l}function ve(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function me(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function _e(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;Wv[0]=a,Wv[1]=s;for(var f=0;1>f;f+=.05){jv[0]=de(t,n,r,f),jv[1]=de(e,i,o,f);var p=Ky(Wv,jv);h>p&&(u=f,h=p)}h=1/0;for(var d=0;32>d&&!(Hv>c);d++){var g=u-c,y=u+c;jv[0]=de(t,n,r,g),jv[1]=de(e,i,o,g);var p=Ky(jv,Wv);if(g>=0&&h>p)u=g,h=p;else{Yv[0]=de(t,n,r,y),Yv[1]=de(e,i,o,y);var v=Ky(Yv,Wv);1>=y&&h>v?(u=y,h=v):c*=.5}}return l&&(l[0]=de(t,n,r,u),l[1]=de(e,i,o,u)),zv(h)}function xe(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;a>=h;h++){var f=h*c,p=de(t,n,r,f),d=de(e,i,o,f),g=p-s,y=d-l;u+=Math.sqrt(g*g+y*y),s=p,l=d}return u}function we(t){var e=t&&Xv.exec(t);if(e){var n=e[1].split(","),i=+H(n[0]),r=+H(n[1]),o=+H(n[2]),a=+H(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:ue(0,i,o,1,t,s)&&se(0,r,a,1,s[0])}}}function be(t){return t=Math.round(t),0>t?0:t>255?255:t}function Se(t){return t=Math.round(t),0>t?0:t>360?360:t}function Me(t){return 0>t?0:t>1?1:t}function Te(t){var e=t;return be(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Ce(t){var e=t;return Me(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Ae(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function Ie(t,e,n){return t+(e-t)*n}function ke(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function De(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Pe(t,e){tm&&De(tm,e),tm=$v.put(t,tm||e.slice())}function Oe(t,e){if(t){e=e||[];var n=$v.get(t);if(n)return De(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in Jv)return De(e,Jv[i]),Pe(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?ke(e,+l[0],+l[1],+l[2],1):ke(e,0,0,0,1);u=Ce(l.pop());case"rgb":return l.length>=3?(ke(e,Te(l[0]),Te(l[1]),Te(l[2]),3===l.length?u:Ce(l[3])),Pe(t,e),e):void ke(e,0,0,0,1);case"hsla":return 4!==l.length?void ke(e,0,0,0,1):(l[3]=Ce(l[3]),Le(l,e),Pe(t,e),e);case"hsl":return 3!==l.length?void ke(e,0,0,0,1):(Le(l,e),Pe(t,e),e);default:return}}ke(e,0,0,0,1)}else{if(4===r||5===r){var c=parseInt(i.slice(1,4),16);return c>=0&&4095>=c?(ke(e,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(i.slice(4),16)/15:1),Pe(t,e),e):void ke(e,0,0,0,1)}if(7===r||9===r){var c=parseInt(i.slice(1,7),16);return c>=0&&16777215>=c?(ke(e,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(i.slice(7),16)/255:1),Pe(t,e),e):void ke(e,0,0,0,1)}}}}function Le(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Ce(t[1]),r=Ce(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],ke(e,be(255*Ae(a,o,n+1/3)),be(255*Ae(a,o,n)),be(255*Ae(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ee(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,f=((s-o)/6+l/2)/l;i===s?e=f-h:r===s?e=1/3+c-f:o===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function Re(t,e){var n=Oe(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return He(n,4===n.length?"rgba":"rgb")}}function Be(t){var e=Oe(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Ne(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=be(Ie(a[0],s[0],l)),n[1]=be(Ie(a[1],s[1],l)),n[2]=be(Ie(a[2],s[2],l)),n[3]=Me(Ie(a[3],s[3],l)),n}}function Fe(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Oe(e[r]),s=Oe(e[o]),l=i-r,u=He([be(Ie(a[0],s[0],l)),be(Ie(a[1],s[1],l)),be(Ie(a[2],s[2],l)),Me(Ie(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function ze(t,e,n,i){var r=Oe(t);return t?(r=Ee(r),null!=e&&(r[0]=Se(e)),null!=n&&(r[1]=Ce(n)),null!=i&&(r[2]=Ce(i)),He(Le(r),"rgba")):void 0}function Ve(t,e){var n=Oe(t);return n&&null!=e?(n[3]=Me(e),He(n,"rgba")):void 0}function He(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function Ue(t,e){var n=Oe(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Ge(){return He([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function We(t){return"linear"===t.type}function je(t){return"radial"===t.type}function Ye(t,e,n){return(e-t)*n+t}function Xe(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=Ye(e[o],n[o],i);return t}function qe(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=Ye(e[a][s],n[a][s],i)}return t}function Ze(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function Ke(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Qe(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Je(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){if(o>a)i.length=a;else for(var s=o;a>s;s++)i.push(1===n?r[s]:rm.call(r[s]))}for(var l=i[0]&&i[0].length,s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;l>u;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function $e(t){if(p(t)){var e=t.length;if(p(t[0])){for(var n=[],i=0;e>i;i++)n.push(rm.call(t[i]));return n}return rm.call(t)}return t}function tn(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function en(t){return p(t&&t[0])?2:1}function nn(t){return t===sm||t===lm}function rn(t){return t===om||t===am}function on(){return(new Date).getTime()}function an(t){var e=t.pointerType;return"pen"===e||"touch"===e}function sn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function ln(t){t&&(t.zrByTouch=!0)}function un(t,e){return kt(t.dom,new vm(t,e),!0)}function cn(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function hn(t,e){var n=e.domHandlers;xy.pointerEventsSupported?d(dm.pointer,function(i){pn(e,i,function(e){n[i].call(t,e)})}):(xy.touchEventsSupported&&d(dm.touch,function(i){pn(e,i,function(r){n[i].call(t,r),sn(e)})}),d(dm.mouse,function(i){pn(e,i,function(r){r=It(r),e.touching||n[i].call(t,r)})}))}function fn(t,e){function n(n){function i(i){i=It(i),cn(t,i.target)||(i=un(t,i),e.domHandlers[n].call(t,i))}pn(e,n,i,{capture:!0})}xy.pointerEventsSupported?d(gm.pointer,n):xy.touchEventsSupported||d(gm.mouse,n)}function pn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Pt(t.domTarget,e,n,i)}function dn(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Ot(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function gn(t){return t>Im||-Im>t}function yn(t,e){for(var n=0;n<Em.length;n++){var i=Em[n];t[i]=e[i]}}function vn(t,e){e=e||by;var n=Rm[e];n||(n=Rm[e]=new Qv(500));var i=n.get(t);return null==i&&(i=Cy.measureText(t,e).width,n.put(t,i)),i}function mn(t,e,n,i){var r=vn(t,e),o=bn(e),a=xn(0,r,n),s=wn(0,o,i);return new bv(a,s,r,o)}function _n(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return mn(r[0],e,n,i);for(var o=new bv(0,0,0,0),a=0;a<r.length;a++){var s=mn(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function xn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function wn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function bn(t){return vn("国",t)}function Sn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Mn(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=Sn(i[0],n.width),u+=Sn(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}function Tn(t,e,n,i,r){n=n||{};var o=[];Pn(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,0>=--a&&(s?l&&l():u&&u())},h=function(){0>=--a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var f=0;f<o.length;f++){var p=o[f];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Cn(t,e,n){for(var i=0;n>i;i++)t[i]=e[i]}function An(t){return p(t[0])}function In(t,e,n){if(p(e[n]))if(p(t[n])||(t[n]=[]),k(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Cn(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(An(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?Cn(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Cn(o,r,a);o.length=r.length}else t[n]=e[n]}function kn(t,e){return t===e||p(t)&&p(e)&&Dn(t,e)}function Dn(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function Pn(t,e,n,i,r,o,a,s){for(var l=_(i),u=r.duration,h=r.delay,f=r.additive,d=r.setToFinal,g=!A(o),y=t.animators,m=[],x=0;x<l.length;x++){var w=l[x],b=i[w];if(null!=b&&null!=n[w]&&(g||o[w]))if(!A(b)||p(b)||P(b))m.push(w);else{if(e){s||(n[w]=b,t.updateDuringAnimation(e));continue}Pn(t,w,n[w],b,r,o&&o[w],a,s)}else s||(n[w]=b,t.updateDuringAnimation(e),m.push(w))}var S=m.length;if(!f&&S)for(var M=0;M<y.length;M++){var T=y[M];if(T.targetName===e){var C=T.stopTracks(m);if(C){var I=c(y,T);y.splice(I,1)}}}if(r.force||(m=v(m,function(t){return!kn(i[t],n[t])}),S=m.length),S>0||r.force&&!a.length){var k=void 0,D=void 0,O=void 0;if(s){D={},d&&(k={});for(var M=0;S>M;M++){var w=m[M];D[w]=n[w],d?k[w]=i[w]:n[w]=i[w]}}else if(d){O={};for(var M=0;S>M;M++){var w=m[M];O[w]=$e(n[w]),In(n,i,w)}}var T=new hm(n,!1,!1,f?v(y,function(t){return t.targetName===e}):null);T.targetName=e,r.scope&&(T.scope=r.scope),d&&k&&T.whenWithKeys(0,k,m),O&&T.whenWithKeys(0,O,m),T.whenWithKeys(null==u?500:u,s?D:i,m).delay(h||0),t.addAnimator(T,e),a.push(T)}}function On(t){delete Wm[t]}function Ln(t){if(!t)return!1;if("string"==typeof t)return Ue(t,1)<Mm;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;i>r;r++)n+=Ue(e[r].color,1);return n/=i,Mm>n}return!1}function En(t,e){var n=new jm(i(),t,e);return Wm[n.id]=n,n}function Rn(t){t.dispose()}function Bn(){for(var t in Wm)Wm.hasOwnProperty(t)&&Wm[t].dispose();Wm={}}function Nn(t){return Wm[t]}function Fn(t,e){Gm[t]=e}function zn(t){return t.replace(/^\s+|\s+$/g,"")}function Vn(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Hn(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return M(t)?zn(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Un(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),qm),t=(+t).toFixed(e),n?t:+t}function Gn(t){return t.sort(function(t,e){return t-e}),t}function Wn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return jn(t)}function jn(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-i)}function Yn(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Xn(t,e,n){return t[e]?qn(t,n)[e]||0:0}function qn(t,e){var n=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=g(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=g(r,function(t){return Math.floor(t)}),s=y(a,function(t,e){return t+e},0),l=g(r,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,f=l.length;f>h;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return g(a,function(t){return t/i})}function Zn(t,e){var n=Math.max(Wn(t),Wn(e)),i=t+e;return n>qm?i:Un(i,n)}function Kn(t){var e=2*Math.PI;return(t%e+e)%e}function Qn(t){return t>-Xm&&Xm>t}function Jn(t){if(t instanceof Date)return t;if(M(t)){var e=Zm.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?NaN:Math.round(t))}function $n(t){return Math.pow(10,ti(t))}function ti(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ei(t,e){var n,i=ti(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function ni(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function ii(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]==(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(r,1):r++}return t}function ri(t){var e=parseFloat(t);return e==t&&(0!==e||!M(t)||t.indexOf("x")<=0)?e:NaN}function oi(t){return!isNaN(ri(t))}function ai(){return Math.round(9*Math.random())}function si(t,e){return 0===e?t:si(e,t%e)}function li(t,e){return null==t?e:null==e?t:t*e/si(t,e)}function ui(t){throw new Error(t)}function ci(t,e,n){return(e-t)*n+t}function hi(t){return t instanceof Array?t:null==t?[]:[t]}function fi(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function pi(t){return!A(t)||b(t)||t instanceof Date?t:t.value}function di(t){return A(t)&&!(t instanceof Array)}function gi(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=j();d(e,function(t,n){return A(t)?void 0:void(e[n]=null)});var s=yi(t,a,n);return(i||r)&&vi(s,t,a,e),i&&mi(s,e),i||r?_i(s,e,r):o&&xi(s,e),wi(s),s}function yi(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||Ci(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function vi(t,e,n,i){d(i,function(r,o){if(r&&null!=r.id){var a=Si(r.id),s=n.get(a);if(null!=s){var l=t[s];V(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}function mi(t,e){d(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Ci(n)&&!Ci(o)&&bi("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}function _i(t,e,n){d(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||Ci(i.existing)||i.existing&&null!=e.id&&!bi("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}function xi(t,e){d(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function wi(t){var e=j();d(t,function(t){var n=t.existing;n&&e.set(n.id,t)}),d(t,function(t){var n=t.newOption;V(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),d(t,function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(A(r)){if(o.name=null!=r.name?Si(r.name):i?i.name:Km+n,i)o.id=Si(i.id);else if(null!=r.id)o.id=Si(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function bi(t,e,n){va