vue2-openlayers 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +24 -0
- package/babel.config.js +5 -0
- package/dist/css/index.34f0f0b9.css +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/img/bottom_box.625e42a5.png +0 -0
- package/dist/img/car1.dd9a098b.png +0 -0
- package/dist/img/complete.2d0fa612.png +0 -0
- package/dist/img/diago_content.0d88c929.png +0 -0
- package/dist/img/diago_text_box.2e4da66b.png +0 -0
- package/dist/img/diago_title.2bd95b7a.png +0 -0
- package/dist/img/exception.a1eeefc3.png +0 -0
- package/dist/img/info1.829a6d7e.png +0 -0
- package/dist/img/info2.09e6e79e.png +0 -0
- package/dist/img/info3.3f96f756.png +0 -0
- package/dist/img/info4.6adcb927.png +0 -0
- package/dist/img/info5.ff3fdd2f.png +0 -0
- package/dist/img/info6.6e159d95.png +0 -0
- package/dist/img/left_box.40419b36.png +0 -0
- package/dist/img/money1.0743e701.png +0 -0
- package/dist/img/money2.58610d4d.png +0 -0
- package/dist/img/operating_fee.e6523ccc.png +0 -0
- package/dist/img/processing.28e46e7f.png +0 -0
- package/dist/img/public_content_box.39782fb5.png +0 -0
- package/dist/img/public_title_box1.6002afd4.png +0 -0
- package/dist/img/right_box.08458fe5.png +0 -0
- package/dist/img/success1.0cbc58af.png +0 -0
- package/dist/img/success2.af1a7499.png +0 -0
- package/dist/img/success3.d74caac5.png +0 -0
- package/dist/img/success4.37cc2343.png +0 -0
- package/dist/img/top_box.806bc756.png +0 -0
- package/dist/img/warehouse_map_popup.fa26d6cd.png +0 -0
- package/dist/img/work_error.3c528fdd.png +0 -0
- package/dist/img/work_su.0cbc58af.png +0 -0
- package/dist/img/work_wait.a2a706c9.png +0 -0
- package/dist/index.html +13 -0
- package/dist/js/chunk-vendors.901bdf0b.js +8 -0
- package/dist/js/chunk-vendors.901bdf0b.js.map +1 -0
- package/dist/js/index.29606843.js +2 -0
- package/dist/js/index.29606843.js.map +1 -0
- package/docs/.vuepress/config.js +25 -0
- package/docs/.vuepress/dist/404.html +20 -0
- package/docs/.vuepress/dist/assets/css/0.styles.7cfabf05.css +1 -0
- package/docs/.vuepress/dist/assets/img/7F8296FF-4A75-4013-BBFC-D482BF5303FF.597ff8a1.png +0 -0
- package/docs/.vuepress/dist/assets/img/gateway.98d6c8ec.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/mysql_images.07b3a3e5.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/nacos.741b050d.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/rabbitmq.50b12be7.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/redis_images.f0979945.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/search.83621669.svg +1 -0
- package/docs/.vuepress/dist/assets/img/server-structure.6e0aa81e.png +0 -0
- package/docs/.vuepress/dist/assets/js/10.285f55d1.js +1 -0
- package/docs/.vuepress/dist/assets/js/11.decff412.js +1 -0
- package/docs/.vuepress/dist/assets/js/12.b9ed6e21.js +1 -0
- package/docs/.vuepress/dist/assets/js/13.d9c8c7a9.js +1 -0
- package/docs/.vuepress/dist/assets/js/14.6495a0e6.js +1 -0
- package/docs/.vuepress/dist/assets/js/15.70d64d1a.js +1 -0
- package/docs/.vuepress/dist/assets/js/16.a93c018c.js +1 -0
- package/docs/.vuepress/dist/assets/js/17.ed91eb16.js +1 -0
- package/docs/.vuepress/dist/assets/js/18.d07cd593.js +1 -0
- package/docs/.vuepress/dist/assets/js/19.4b8a0f22.js +1 -0
- package/docs/.vuepress/dist/assets/js/2.2668fa1b.js +1 -0
- package/docs/.vuepress/dist/assets/js/20.52de9326.js +1 -0
- package/docs/.vuepress/dist/assets/js/21.2293a5ca.js +1 -0
- package/docs/.vuepress/dist/assets/js/3.fd22fded.js +1 -0
- package/docs/.vuepress/dist/assets/js/4.ad26b2fa.js +1 -0
- package/docs/.vuepress/dist/assets/js/5.a1c97bcb.js +1 -0
- package/docs/.vuepress/dist/assets/js/6.32f67120.js +1 -0
- package/docs/.vuepress/dist/assets/js/7.99161716.js +1 -0
- package/docs/.vuepress/dist/assets/js/8.a0d65864.js +1 -0
- package/docs/.vuepress/dist/assets/js/9.2d06e692.js +1 -0
- package/docs/.vuepress/dist/assets/js/app.0be82e56.js +15 -0
- package/docs/.vuepress/dist/config/config_list.html +58 -0
- package/docs/.vuepress/dist/config/index.html +69 -0
- package/docs/.vuepress/dist/guide/admin.html +26 -0
- package/docs/.vuepress/dist/guide/deepchange.html +213 -0
- package/docs/.vuepress/dist/guide/gateway.html +45 -0
- package/docs/.vuepress/dist/guide/hystrix.html +26 -0
- package/docs/.vuepress/dist/guide/index.html +66 -0
- package/docs/.vuepress/dist/guide/nacos.html +26 -0
- package/docs/.vuepress/dist/guide/opsdev.html +26 -0
- package/docs/.vuepress/dist/guide/rabbitmq.html +26 -0
- package/docs/.vuepress/dist/guide/skywarking.html +52 -0
- package/docs/.vuepress/dist/guide/summary.html +74 -0
- package/docs/.vuepress/dist/help/index.html +28 -0
- package/docs/.vuepress/dist/help/markdown.html +33 -0
- package/docs/.vuepress/dist/images/7F8296FF-4A75-4013-BBFC-D482BF5303FF.png +0 -0
- package/docs/.vuepress/dist/images/gateway.jpg +0 -0
- package/docs/.vuepress/dist/images/mysql_images.jpg +0 -0
- package/docs/.vuepress/dist/images/nacos.jpg +0 -0
- package/docs/.vuepress/dist/images/rabbitmq.jpg +0 -0
- package/docs/.vuepress/dist/images/redis_images.jpg +0 -0
- package/docs/.vuepress/dist/images/server-structure.png +0 -0
- package/docs/.vuepress/dist/index.html +26 -0
- package/docs/.vuepress/dist/logo.jpg +0 -0
- package/docs/.vuepress/nav.js +34 -0
- package/docs/.vuepress/public/images/7F8296FF-4A75-4013-BBFC-D482BF5303FF.png +0 -0
- package/docs/.vuepress/public/images/gateway.jpg +0 -0
- package/docs/.vuepress/public/images/mysql_images.jpg +0 -0
- package/docs/.vuepress/public/images/nacos.jpg +0 -0
- package/docs/.vuepress/public/images/rabbitmq.jpg +0 -0
- package/docs/.vuepress/public/images/redis_images.jpg +0 -0
- package/docs/.vuepress/public/images/server-structure.png +0 -0
- package/docs/.vuepress/public/logo.jpg +0 -0
- package/docs/.vuepress/sidebar.js +62 -0
- package/docs/README.md +15 -0
- package/docs/config/README.md +108 -0
- package/docs/config/config_list.md +42 -0
- package/docs/guide/README.md +79 -0
- package/docs/guide/admin.md +25 -0
- package/docs/guide/deepchange.md +393 -0
- package/docs/guide/gateway.md +40 -0
- package/docs/guide/hystrix.md +21 -0
- package/docs/guide/nacos.md +7 -0
- package/docs/guide/opsdev.md +12 -0
- package/docs/guide/rabbitmq.md +15 -0
- package/docs/guide/skywarking.md +77 -0
- package/docs/guide/summary.md +120 -0
- package/docs/help/README.md +29 -0
- package/docs/help/markdown.md +165 -0
- package/examples/App.vue +21 -0
- package/examples/assets/css/map-base.scss +333 -0
- package/examples/assets/fonts/pmzd.ttf +0 -0
- package/examples/assets/icons/index.js +9 -0
- package/examples/assets/icons/svg/404.svg +1 -0
- package/examples/assets/icons/svg/bug.svg +1 -0
- package/examples/assets/icons/svg/build.svg +1 -0
- package/examples/assets/icons/svg/button.svg +1 -0
- package/examples/assets/icons/svg/cascader.svg +1 -0
- package/examples/assets/icons/svg/chart.svg +1 -0
- package/examples/assets/icons/svg/checkbox.svg +1 -0
- package/examples/assets/icons/svg/clipboard.svg +1 -0
- package/examples/assets/icons/svg/code.svg +1 -0
- package/examples/assets/icons/svg/color.svg +1 -0
- package/examples/assets/icons/svg/component.svg +1 -0
- package/examples/assets/icons/svg/dashboard.svg +1 -0
- package/examples/assets/icons/svg/date-range.svg +1 -0
- package/examples/assets/icons/svg/date.svg +1 -0
- package/examples/assets/icons/svg/dict.svg +1 -0
- package/examples/assets/icons/svg/documentation.svg +1 -0
- package/examples/assets/icons/svg/download.svg +1 -0
- package/examples/assets/icons/svg/drag.svg +1 -0
- package/examples/assets/icons/svg/druid.svg +1 -0
- package/examples/assets/icons/svg/edit.svg +1 -0
- package/examples/assets/icons/svg/education.svg +1 -0
- package/examples/assets/icons/svg/email.svg +1 -0
- package/examples/assets/icons/svg/example.svg +1 -0
- package/examples/assets/icons/svg/excel.svg +1 -0
- package/examples/assets/icons/svg/exit-fullscreen.svg +1 -0
- package/examples/assets/icons/svg/eye-open.svg +1 -0
- package/examples/assets/icons/svg/eye.svg +1 -0
- package/examples/assets/icons/svg/form.svg +1 -0
- package/examples/assets/icons/svg/fullscreen.svg +1 -0
- package/examples/assets/icons/svg/github.svg +1 -0
- package/examples/assets/icons/svg/guide.svg +1 -0
- package/examples/assets/icons/svg/icon.svg +1 -0
- package/examples/assets/icons/svg/input.svg +1 -0
- package/examples/assets/icons/svg/international.svg +1 -0
- package/examples/assets/icons/svg/job.svg +1 -0
- package/examples/assets/icons/svg/language.svg +1 -0
- package/examples/assets/icons/svg/link.svg +1 -0
- package/examples/assets/icons/svg/list.svg +1 -0
- package/examples/assets/icons/svg/lock.svg +1 -0
- package/examples/assets/icons/svg/log.svg +1 -0
- package/examples/assets/icons/svg/logininfor.svg +1 -0
- package/examples/assets/icons/svg/message.svg +1 -0
- package/examples/assets/icons/svg/money.svg +1 -0
- package/examples/assets/icons/svg/monitor.svg +2 -0
- package/examples/assets/icons/svg/nested.svg +1 -0
- package/examples/assets/icons/svg/number.svg +1 -0
- package/examples/assets/icons/svg/online.svg +1 -0
- package/examples/assets/icons/svg/password.svg +1 -0
- package/examples/assets/icons/svg/pdf.svg +1 -0
- package/examples/assets/icons/svg/people.svg +1 -0
- package/examples/assets/icons/svg/peoples.svg +1 -0
- package/examples/assets/icons/svg/phone.svg +1 -0
- package/examples/assets/icons/svg/post.svg +1 -0
- package/examples/assets/icons/svg/qq.svg +1 -0
- package/examples/assets/icons/svg/question.svg +1 -0
- package/examples/assets/icons/svg/radio.svg +1 -0
- package/examples/assets/icons/svg/rate.svg +1 -0
- package/examples/assets/icons/svg/redis.svg +1 -0
- package/examples/assets/icons/svg/row.svg +1 -0
- package/examples/assets/icons/svg/search.svg +1 -0
- package/examples/assets/icons/svg/select.svg +1 -0
- package/examples/assets/icons/svg/server.svg +1 -0
- package/examples/assets/icons/svg/shopping.svg +1 -0
- package/examples/assets/icons/svg/size.svg +1 -0
- package/examples/assets/icons/svg/skill.svg +1 -0
- package/examples/assets/icons/svg/slider.svg +1 -0
- package/examples/assets/icons/svg/star.svg +1 -0
- package/examples/assets/icons/svg/swagger.svg +1 -0
- package/examples/assets/icons/svg/switch.svg +1 -0
- package/examples/assets/icons/svg/system.svg +2 -0
- package/examples/assets/icons/svg/tab.svg +1 -0
- package/examples/assets/icons/svg/table.svg +1 -0
- package/examples/assets/icons/svg/textarea.svg +1 -0
- package/examples/assets/icons/svg/theme.svg +1 -0
- package/examples/assets/icons/svg/time-range.svg +1 -0
- package/examples/assets/icons/svg/time.svg +1 -0
- package/examples/assets/icons/svg/tool.svg +1 -0
- package/examples/assets/icons/svg/tree-table.svg +1 -0
- package/examples/assets/icons/svg/tree.svg +1 -0
- package/examples/assets/icons/svg/turn-right.svg +1 -0
- package/examples/assets/icons/svg/upload.svg +1 -0
- package/examples/assets/icons/svg/user.svg +1 -0
- package/examples/assets/icons/svg/validCode.svg +1 -0
- package/examples/assets/icons/svg/wechat.svg +1 -0
- package/examples/assets/icons/svg/zip.svg +1 -0
- package/examples/assets/icons/svgo.yml +22 -0
- package/examples/assets/images/close_diago.png +0 -0
- package/examples/assets/images/red_circle.png +0 -0
- package/examples/assets/images/w_mj_map.png +0 -0
- package/examples/assets/images/warehouse_map_popup.png +0 -0
- package/examples/assets/images/warehouse_map_success.png +0 -0
- package/examples/assets/images/warehouse_map_warning.png +0 -0
- package/examples/assets/js/gps.js +222 -0
- package/examples/assets/logo.png +0 -0
- package/examples/components/HelloWorld.vue +273 -0
- package/examples/components/MapPopup.vue +80 -0
- package/examples/data/510000.js +2056 -0
- package/examples/data/510000.json +2055 -0
- package/examples/data/testData.js +2088 -0
- package/examples/main.js +28 -0
- package/examples/utils/echarts/esresize.js +110 -0
- package/jsconfig.json +19 -0
- package/package.json +56 -0
- package/vue-opnelayers/demo.html +1 -0
- package/vue-opnelayers/vue-openlayers.common.js +58661 -0
- package/vue-opnelayers/vue-openlayers.common.js.map +1 -0
- package/vue-opnelayers/vue-openlayers.css +1 -0
- package/vue-opnelayers/vue-openlayers.umd.js +58672 -0
- package/vue-opnelayers/vue-openlayers.umd.js.map +1 -0
- package/vue-opnelayers/vue-openlayers.umd.min.js +2 -0
- package/vue-opnelayers/vue-openlayers.umd.min.js.map +1 -0
- package/vue.config.js +54 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
(self["webpackChunkvue2_openlayers"]=self["webpackChunkvue2_openlayers"]||[]).push([[504],{81656:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,{A:function(){return i}})},19511:function(t,e,n){"use strict";var i=n(38075),r=i("ArrayBuffer.prototype.byteLength",!0),o=n(84670);t.exports=function(t){return o(t)?r?r(t):t.byteLength:NaN}},38075:function(t,e,n){"use strict";var i=n(70453),r=n(10487),o=r(i("String.prototype.indexOf"));t.exports=function(t,e){var n=i(t,!!e);return"function"===typeof n&&o(t,".prototype.")>-1?r(n):n}},10487:function(t,e,n){"use strict";var i=n(66743),r=n(70453),o=n(96897),a=n(69675),s=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),u=r("%Reflect.apply%",!0)||i.call(l,s),c=n(30655),h=r("%Math.max%");t.exports=function(t){if("function"!==typeof t)throw new a("a function is required");var e=u(i,l,arguments);return o(e,1+h(0,t.length-(arguments.length-1)),!0)};var d=function(){return u(i,s,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},4982:function(t,e,n){"use strict";var i=n(6525),r=n(38075),o=n(71589),a=n(70453),s=n(94552),l=n(920),u=n(37653),c=n(47244),h=n(64634),d=n(84670),f=n(62120),p=n(14035),g=n(37070),m=n(1189),v=n(81539),y=n(60593),_=n(25767),x=n(19511),b=r("SharedArrayBuffer.prototype.byteLength",!0),w=r("Date.prototype.getTime"),S=Object.getPrototypeOf,A=r("Object.prototype.toString"),M=a("%Set%",!0),C=r("Map.prototype.has",!0),I=r("Map.prototype.get",!0),T=r("Map.prototype.size",!0),E=r("Set.prototype.add",!0),D=r("Set.prototype.delete",!0),P=r("Set.prototype.has",!0),L=r("Set.prototype.size",!0);function R(t,e,n,i){var r,o=s(t);while((r=o.next())&&!r.done)if(z(e,r.value,n,i))return D(t,r.value),!0;return!1}function O(t){return"undefined"===typeof t?null:"object"!==typeof t?"symbol"!==typeof t&&("string"!==typeof t&&"number"!==typeof t||+t===+t):void 0}function k(t,e,n,r,o,a){var s=O(n);if(null!=s)return s;var l=I(e,s),u=i({},o,{strict:!1});return!("undefined"===typeof l&&!C(e,s)||!z(r,l,u,a))&&(!C(t,s)&&z(r,l,u,a))}function N(t,e,n){var i=O(n);return null!=i?i:P(e,i)&&!P(t,i)}function F(t,e,n,i,r,o){var a,l,u=s(t);while((a=u.next())&&!a.done)if(l=a.value,z(n,l,r,o)&&z(i,I(e,l),r,o))return D(t,l),!0;return!1}function z(t,e,n,i){var r=n||{};if(r.strict?u(t,e):t===e)return!0;var o=v(t),a=v(e);if(o!==a)return!1;if(!t||!e||"object"!==typeof t&&"object"!==typeof e)return r.strict?u(t,e):t==e;var s,l=i.has(t),c=i.has(e);if(l&&c){if(i.get(t)===i.get(e))return!0}else s={};return l||i.set(t,s),c||i.set(e,s),W(t,e,r,i)}function B(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&(!(t.length>0&&"number"!==typeof t[0])&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))))}function G(t,e,n,i){if(L(t)!==L(e))return!1;var r,o,a,l=s(t),u=s(e);while((r=l.next())&&!r.done)if(r.value&&"object"===typeof r.value)a||(a=new M),E(a,r.value);else if(!P(e,r.value)){if(n.strict)return!1;if(!N(t,e,r.value))return!1;a||(a=new M),E(a,r.value)}if(a){while((o=u.next())&&!o.done)if(o.value&&"object"===typeof o.value){if(!R(a,o.value,n.strict,i))return!1}else if(!n.strict&&!P(t,o.value)&&!R(a,o.value,n.strict,i))return!1;return 0===L(a)}return!0}function V(t,e,n,r){if(T(t)!==T(e))return!1;var o,a,l,u,c,h,d=s(t),f=s(e);while((o=d.next())&&!o.done)if(u=o.value[0],c=o.value[1],u&&"object"===typeof u)l||(l=new M),E(l,u);else if(h=I(e,u),"undefined"===typeof h&&!C(e,u)||!z(c,h,n,r)){if(n.strict)return!1;if(!k(t,e,u,c,n,r))return!1;l||(l=new M),E(l,u)}if(l){while((a=f.next())&&!a.done)if(u=a.value[0],h=a.value[1],u&&"object"===typeof u){if(!F(l,t,u,h,n,r))return!1}else if(!n.strict&&(!t.has(u)||!z(I(t,u),h,n,r))&&!F(l,t,u,h,i({},n,{strict:!1}),r))return!1;return 0===L(l)}return!0}function W(t,e,n,i){var r,a;if(typeof t!==typeof e)return!1;if(null==t||null==e)return!1;if(A(t)!==A(e))return!1;if(c(t)!==c(e))return!1;var s=h(t),l=h(e);if(s!==l)return!1;var u=t instanceof Error,v=e instanceof Error;if(u!==v)return!1;if((u||v)&&(t.name!==e.name||t.message!==e.message))return!1;var M=p(t),C=p(e);if(M!==C)return!1;if((M||C)&&(t.source!==e.source||o(t)!==o(e)))return!1;var I=f(t),T=f(e);if(I!==T)return!1;if((I||T)&&w(t)!==w(e))return!1;if(n.strict&&S&&S(t)!==S(e))return!1;var E=_(t),D=_(e);if(E!==D)return!1;if(E||D){if(t.length!==e.length)return!1;for(r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}var P=B(t),L=B(e);if(P!==L)return!1;if(P||L){if(t.length!==e.length)return!1;for(r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}var R=d(t),O=d(e);if(R!==O)return!1;if(R||O)return x(t)===x(e)&&("function"===typeof Uint8Array&&z(new Uint8Array(t),new Uint8Array(e),n,i));var k=g(t),N=g(e);if(k!==N)return!1;if(k||N)return b(t)===b(e)&&("function"===typeof Uint8Array&&z(new Uint8Array(t),new Uint8Array(e),n,i));if(typeof t!==typeof e)return!1;var F=m(t),W=m(e);if(F.length!==W.length)return!1;for(F.sort(),W.sort(),r=F.length-1;r>=0;r--)if(F[r]!=W[r])return!1;for(r=F.length-1;r>=0;r--)if(a=F[r],!z(t[a],e[a],n,i))return!1;var j=y(t),H=y(e);return j===H&&("Set"===j||"Set"===H?G(t,e,n,i):"Map"!==j||V(t,e,n,i))}t.exports=function(t,e,n){return z(t,e,n,l())}},30041:function(t,e,n){"use strict";var i=n(30655),r=n(58068),o=n(69675),a=n(75795);t.exports=function(t,e,n){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new o("`obj` must be an object or a function`");if("string"!==typeof e&&"symbol"!==typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!a&&a(t,e);if(i)i(t,e,{configurable:null===u&&h?h.configurable:!u,enumerable:null===s&&h?h.enumerable:!s,value:n,writable:null===l&&h?h.writable:!l});else{if(!c&&(s||l||u))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},38452:function(t,e,n){"use strict";var i=n(1189),r="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(30041),l=function(t){return"function"===typeof t&&"[object Function]"===o.call(t)},u=n(30592)(),c=function(t,e,n,i){if(e in t)if(!0===i){if(t[e]===n)return}else if(!l(i)||!i())return;u?s(t,e,n,!0):s(t,e,n)},h=function(t,e){var n=arguments.length>2?arguments[2]:{},o=i(e);r&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s<o.length;s+=1)c(t,o[s],e[o[s]],n[o[s]])};h.supportsDescriptors=!!u,t.exports=h},7609:function(t,e,n){var i=n(89231);(function(){for(var t in i){if(null==i||!i.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=i[t]}})();var r=n(93607);(function(){for(var t in r){if(null==r||!r.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=r[t]}})(),n(613),n(1906),n(53571),n(26804),n(15980),n(47342),n(25120),n(75868),n(12268),n(29202),n(34853),n(83296),n(19771),n(83761),n(46848),n(41913),n(86795),n(44561),n(39982),n(89878),n(77249),n(17164),n(16983),n(61029),n(63389),n(61232),n(27220),n(14102),n(36275),n(21393),n(63886),n(67770),n(76683),n(98733),n(56315),n(47226),n(87976),n(47106),n(54281),n(84069),n(59608),n(39554),n(95978),n(42623),n(24823),n(43416),n(84845),n(80630),n(39590)},50294:function(t,e,n){var i=n(95289),r={};function o(){this._coordinateSystems=[]}o.prototype={constructor:o,create:function(t,e){var n=[];i.each(r,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},update:function(t,e){i.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},o.register=function(t,e){r[t]=e},o.get=function(t){return r[t]};var a=o;t.exports=a},69498:function(t,e,n){var i=n(95289),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function o(t){i.each(r,(function(e){this[e]=i.bind(t[e],t)}),this)}var a=o;t.exports=a},40428:function(t,e,n){var i=n(89231),r=n(95289);function o(t,e){r.each(e,(function(e){e.update="updateView",i.registerAction(e,(function(n,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:n},(function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each((function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1}))})),{name:n.name,selected:r,seriesId:n.seriesId}}))}))}t.exports=o},50704:function(t,e,n){var i=n(89231),r=n(95289),o=n(54407),a=o.updateCenterAndZoom;i.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var o=a(i,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===n&&r.each(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))},54407:function(t,e){function n(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy){a[0]-=e.dx,a[1]-=e.dy;r=t.pointToData(a);t.setCenter(r)}if(null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,c=(e.originX-u[0])*(o-1),h=(e.originY-u[1])*(o-1);u[0]-=c,u[1]-=h,t.updateTransform();r=t.pointToData(a);t.setCenter(r),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}e.updateCenterAndZoom=n},53571:function(t,e,n){var i=n(89231),r=n(95289),o=n(11041),a=o.layout,s=o.largeLayout;n(31020),n(88004),n(35572),n(48807),i.registerLayout(i.PRIORITY.VISUAL.LAYOUT,r.curry(a,"bar")),i.registerLayout(i.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),i.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},88004:function(t,e,n){var i=n(29299),r=i.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});t.exports=r},35572:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(95289),a=n(76442),s=n(26746),l=s.setLabel,u=n(40590),c=n(3425),h=n(66343),d=n(75738),f=n(88336),p=f.throttle,g=n(99988),m=g.createClipPath,v=n(83759),y=["itemStyle","barBorderWidth"],_=[0,0];function x(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}o.extend(u.prototype,c);var b=r.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,n){var i,r=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=t.get("clip",!0),f=x(l,o);r.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("barBorderRadius")||0,y=[],_=this._backgroundEls||[],b=function(t){var e=T[l.type](o,t),n=B(l,i,e);return n.useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[t]=n,n};o.diff(s).add((function(e){var n=o.getItemModel(e),a=T[l.type](o,e,n);if(g&&b(e),o.hasValue(e)){if(h){var s=A[l.type](f,a);if(s)return void r.remove(u)}var u=M[l.type](e,a,i,c,!1,p);o.setItemGraphicEl(e,u),r.add(u),D(u,o,e,n,a,t,i,"polar"===l.type)}})).update((function(e,n){var u=o.getItemModel(e),d=T[l.type](o,e,u);if(g){var x;0===_.length?x=b(n):(x=_[n],x.useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&x.setShape("r",v),y[e]=x);var w=T[l.type](o,e),S=z(i,w,l);a.updateProps(x,{shape:S},c,e)}var C=s.getItemGraphicEl(n);if(o.hasValue(e)){if(h){var I=A[l.type](f,d);if(I)return void r.remove(C)}C?a.updateProps(C,{shape:d},c,e):C=M[l.type](e,d,i,c,!0,p),o.setItemGraphicEl(e,C),r.add(C),D(C,o,e,u,d,t,i,"polar"===l.type)}else r.remove(C)})).remove((function(t){var e=s.getItemGraphicEl(t);"cartesian2d"===l.type?e&&C(t,c,e):e&&I(t,c,e)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new d);w.removeAll();for(var S=0;S<y.length;++S)w.add(y[S]);r.add(w),this._backgroundEls=y,this._data=o},_renderLarge:function(t,e,n){this._clear(),R(t,this.group);var i=t.get("clip",!0)?m(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){this._removeBackground(),R(e,this.group,!0)},dispose:o.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get("animation")&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){"sector"===e.type?I(e.dataIndex,t,e):C(e.dataIndex,t,e)}))):e.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),w=Math.max,S=Math.min,A={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=w(e.x,t.x),o=S(e.x+e.width,t.x+t.width),a=w(e.y,t.y),s=S(e.y+e.height,t.y+t.height);e.x=r,e.y=a,e.width=o-r,e.height=s-a;var l=e.width<0||e.height<0;return n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),l},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}i=S(e.r,t.r);var r=w(e.r0,t.r0);e.r=i,e.r0=r;var o=i-r<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return o}},M={cartesian2d:function(t,e,n,i,r){var s=new a.Rect({shape:o.extend({},e),z2:1});if(s.name="item",i){var l=s.shape,u=n?"height":"width",c={};l[u]=0,c[u]=e[u],a[r?"updateProps":"initProps"](s,{shape:c},i,t)}return s},polar:function(t,e,n,i,r,s){var l=e.startAngle<e.endAngle,u=!n&&s?v:a.Sector,c=new u({shape:o.defaults({clockwise:l},e),z2:1});if(c.name="item",i){var h=c.shape,d=n?"r":"endAngle",f={};h[d]=n?0:e.startAngle,f[d]=e[d],a[r?"updateProps":"initProps"](c,{shape:f},i,t)}return c}};function C(t,e,n){n.style.text=null,a.updateProps(n,{shape:{width:0}},e,t,(function(){n.parent&&n.parent.remove(n)}))}function I(t,e,n){n.style.text=null,a.updateProps(n,{shape:{r:n.shape.r0}},e,t,(function(){n.parent&&n.parent.remove(n)}))}var T={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?P(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function E(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function D(t,e,n,i,r,s,u,c){var h=e.getItemVisual(n,"color"),d=e.getItemVisual(n,"opacity"),f=e.getVisual("borderColor"),p=i.getModel("itemStyle"),g=i.getModel("emphasis.itemStyle").getBarItemStyle();c||t.setShape("r",p.get("barBorderRadius")||0),t.useStyle(o.defaults({stroke:E(r)?"none":f,fill:E(r)?"none":h,opacity:d},p.getBarItemStyle()));var m=i.getShallow("cursor");m&&t.attr("cursor",m);var v=u?r.height>0?"bottom":"top":r.width>0?"left":"right";c||l(t.style,g,i,h,s,n,v),E(r)&&(g.fill=g.stroke="none"),a.setHoverStyle(t,g)}function P(t,e){var n=t.get(y)||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,r)}var L=h.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o<n.length;o+=2)i[r]=n[o+r],t.moveTo(i[0],i[1]),t.lineTo(n[o],n[o+1])}});function R(t,e,n){var i=t.getData(),r=[],o=i.getLayout("valueAxisHorizontal")?1:0;r[1-o]=i.getLayout("valueAxisStart");var a=i.getLayout("largeDataIndices"),s=i.getLayout("barWidth"),l=t.getModel("backgroundStyle"),u=t.get("showBackground",!0);if(u){var c=i.getLayout("largeBackgroundPoints"),h=[];h[1-o]=i.getLayout("backgroundStart");var d=new L({shape:{points:c},incremental:!!n,__startPoint:h,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s,silent:!0,z2:0});F(d,l,i),e.add(d)}var f=new L({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:r,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s});e.add(f),N(f,t,i),f.seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",O),f.on("mousemove",O))}var O=p((function(t){var e=this,n=k(e,t.offsetX,t.offsetY);e.dataIndex=n>=0?n:null}),30,!1);function k(t,e,n){var i=t.__baseDimIdx,r=1-i,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];_[0]=e,_[1]=n;for(var u=_[i],c=_[1-i],h=u-s,d=u+s,f=0,p=o.length/2;f<p;f++){var g=2*f,m=o[g+i],v=o[g+r];if(m>=h&&m<=d&&(l<=v?c>=l&&c<=v:c>=v&&c<=l))return a[f]}return-1}function N(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function F(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function z(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}function B(t,e,n){var i="polar"===t.type?a.Sector:a.Rect;return new i({shape:z(e,n,t),silent:!0,z2:0})}t.exports=b},29299:function(t,e,n){var i=n(33358),r=n(19554),o=i.extend({type:"series.__base_bar__",getInitialData:function(t,e){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});t.exports=o},92865:function(t,e,n){var i=n(29299),r=i.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,r.superApply(this,"getInitialData",arguments)}}),o=r;t.exports=o},82917:function(t,e,n){var i=n(89231),r=n(95289),o=n(76442),a=n(22864),s=a.createSymbol,l=n(44261),u=l.parsePercent,c=l.isNumeric,h=n(26746),d=h.setLabel,f=["itemStyle","borderWidth"],p=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],g=new o.Circle,m=i.extendChartView({type:"pictorialBar",render:function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=!!s.isHorizontal(),u=a.grid.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:p[+l],categoryDim:p[1-l]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=T(r,t),n=v(r,t,e,c),o=L(r,c,n);r.setItemGraphicEl(t,o),i.add(o),z(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=T(r,t),s=v(r,t,a,c),l=k(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?R(n,c,s):n=L(r,c,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),z(n,c,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&O(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},dispose:r.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){O(i,e.dataIndex,t,e)})):n.removeAll()}});function v(t,e,n,i){var o=t.getItemLayout(e),a=n.get("symbolRepeat"),s=n.get("symbolClip"),l=n.get("symbolPosition")||"start",c=n.get("symbolRotate"),h=(c||0)*Math.PI/180||0,d=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),p={dataIndex:e,layout:o,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:s,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:d,rotation:h,animationModel:f?n:null,hoverAnimation:f&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};y(n,a,o,i,p),x(t,e,o,a,s,p.boundingLength,p.pxSign,d,i,p),b(n,p.symbolScale,h,i,p);var g=p.symbolSize,m=n.get("symbolOffset");return r.isArray(m)&&(m=[u(m[0],g[0]),u(m[1],g[1])]),w(n,g,o,a,s,m,l,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function y(t,e,n,i,o){var a,s=i.valueDim,l=t.get("symbolBoundingData"),u=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[s.wh]<=0);if(r.isArray(l)){var d=[_(u,l[0])-c,_(u,l[1])-c];d[1]<d[0]&&d.reverse(),a=d[h]}else a=null!=l?_(u,l)-c:e?i.coordSysExtent[s.index][h]-c:n[s.wh];o.boundingLength=a,e&&(o.repeatCutLength=n[s.wh]),o.pxSign=a>0?1:a<0?-1:0}function _(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function x(t,e,n,i,o,a,s,l,c,h){var d=c.valueDim,f=c.categoryDim,p=Math.abs(n[f.wh]),g=t.getItemVisual(e,"symbolSize");r.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[f.index]=u(g[f.index],p),g[d.index]=u(g[d.index],i?p:Math.abs(a)),h.symbolSize=g;var m=h.symbolScale=[g[0]/l,g[1]/l];m[d.index]*=(c.isHorizontal?-1:1)*s}function b(t,e,n,i,r){var o=t.get(f)||0;o&&(g.attr({scale:e.slice(),rotation:n}),g.updateTransform(),o/=g.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function w(t,e,n,i,o,a,s,l,h,d,f,p){var g=f.categoryDim,m=f.valueDim,v=p.pxSign,y=Math.max(e[m.index]+l,0),_=y;if(i){var x=Math.abs(h),b=r.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=u(b,e[m.index]);var S=Math.max(y+2*b,0),A=w?0:2*b,M=c(i),C=M?i:B((x+A)/S),I=x-C*y;b=I/2/(w?C:C-1),S=y+2*b,A=w?0:2*b,M||"fixed"===i||(C=d?B((Math.abs(d)+A)/S):0),_=C*S-A,p.repeatTimes=C,p.symbolMargin=b}var T=v*(_/2),E=p.pathPosition=[];E[g.index]=n[g.wh]/2,E[m.index]="start"===s?T:"end"===s?h-T:h/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=p.bundlePosition=[];D[g.index]=n[g.xy],D[m.index]=n[m.xy];var P=p.barRectShape=r.extend({},n);P[m.wh]=v*Math.max(Math.abs(n[m.wh]),Math.abs(E[m.index]+T)),P[g.wh]=n[g.wh];var L=p.clipShape={};L[g.xy]=-n[g.xy],L[g.wh]=f.ecSize[g.wh],L[m.xy]=0,L[m.wh]=n[m.wh]}function S(t){var e=t.symbolPatternSize,n=s(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function A(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(N(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?F(t,null,p(c),n,i):F(t,null,{scale:[0,0]},n,i,(function(){r.remove(t)})),P(t,n),c++}));c<u;c++){var d=S(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var f=p(c);F(d,{position:f.position,scale:[0,0]},{scale:f.scale,rotation:f.rotation},n,i),d.on("mouseover",g).on("mouseout",m),P(d,n)}function p(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){N(t,(function(t){t.trigger("emphasis")}))}function m(){N(t,(function(t){t.trigger("normal")}))}}function M(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}o?F(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=S(n),r.add(o),F(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",a).on("mouseout",s)),P(o,n)}function C(t,e,n){var i=r.extend({},e.barRectShape),a=t.__pictorialBarRect;a?F(a,null,{shape:i},e,n):(a=t.__pictorialBarRect=new o.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function I(t,e,n,i){if(n.symbolClip){var a=t.__pictorialClipPath,s=r.extend({},n.clipShape),l=e.valueDim,u=n.animationModel,c=n.dataIndex;if(a)o.updateProps(a,{shape:s},u,c);else{s[l.wh]=0,a=new o.Rect({shape:s}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var h={};h[l.wh]=n.clipShape[l.wh],o[i?"updateProps":"initProps"](a,{shape:h},u,c)}}}function T(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=E,n.isAnimationEnabled=D,n}function E(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function D(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function P(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function L(t,e,n,i){var r=new o.Group,a=new o.Group;return r.add(a),r.__pictorialBundle=a,a.attr("position",n.bundlePosition.slice()),n.symbolRepeat?A(r,e,n):M(r,e,n),C(r,n,i),I(r,e,n,i),r.__pictorialShapeStr=k(t,n),r.__pictorialSymbolMeta=n,r}function R(t,e,n){var i=n.animationModel,r=n.dataIndex,a=t.__pictorialBundle;o.updateProps(a,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?A(t,e,n,!0):M(t,e,n,!0),C(t,n,!0),I(t,e,n,!0)}function O(t,e,n,i){var a=i.__pictorialBarRect;a&&(a.style.text=null);var s=[];N(i,(function(t){s.push(t)})),i.__pictorialMainPath&&s.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),r.each(s,(function(t){o.updateProps(t,{scale:[0,0]},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function k(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function N(t,e,n){r.each(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function F(t,e,n,i,r,a){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&o[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function z(t,e,n){var i=n.color,a=n.dataIndex,s=n.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),u=s.getModel("emphasis.itemStyle").getItemStyle(),c=s.getShallow("cursor");N(t,(function(t){t.setColor(i),t.setStyle(r.defaults({fill:i,opacity:n.opacity},l)),o.setHoverStyle(t,u),c&&(t.cursor=c),t.z2=n.z2}));var h={},f=e.valueDim.posDesc[+(n.boundingLength>0)],p=t.__pictorialBarRect;d(p.style,h,s,i,e.seriesModel,a,f),o.setHoverStyle(p,h)}function B(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var G=m;t.exports=G},3425:function(t,e,n){var i=n(81935),r=i([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getBarItemStyle:function(t){var e=r(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}};t.exports=o},26746:function(t,e,n){var i=n(76442),r=n(10589),o=r.getDefaultLabel;function a(t,e,n,r,a,l,u){var c=n.getModel("label"),h=n.getModel("emphasis.label");i.setLabelStyle(t,e,c,h,{labelFetcher:a,labelDataIndex:l,defaultText:o(a.getData(),l),isRectText:!0,autoColor:r}),s(t),s(e)}function s(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=a},46848:function(t,e,n){var i=n(89231);n(2568),n(89056);var r=n(61913),o=n(94843);i.registerVisual(r),i.registerLayout(o)},2568:function(t,e,n){var i=n(95289),r=n(33358),o=n(74370),a=o.seriesModelMixin,s=r.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(s,a,!0);var l=s;t.exports=l},89056:function(t,e,n){var i=n(95289),r=n(67955),o=n(76442),a=n(66343),s=["itemStyle"],l=["emphasis","itemStyle"],u=r.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=h(e,i,t,a,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?d(s,n,i,t):n=h(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:i.noop}),c=a.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])}});function h(t,e,n,i,r){var o=t.ends,a=new c({shape:{points:r?f(o,i,t):o}});return d(t,a,e,n,r),a}function d(t,e,n,i,r){var a=n.hostModel,u=o[r?"initProps":"updateProps"];u(e,{shape:{points:t.ends}},a,i);var c=n.getItemModel(i),h=c.getModel(s),d=n.getItemVisual(i,"color"),f=h.getItemStyle(["borderColor"]);f.stroke=d,f.strokeNoScale=!0,e.useStyle(f),e.z2=100;var p=c.getModel(l).getItemStyle();o.setHoverStyle(e,p)}function f(t,e,n){return i.map(t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var p=u;t.exports=p},94843:function(t,e,n){var i=n(95289),r=n(44261),o=r.parsePercent,a=i.each;function s(t){var e=l(t);a(e,(function(t){var e=t.seriesModels;e.length&&(u(t),a(e,(function(e,n){c(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function l(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),o=i.indexOf(n,r);o<0&&(o=n.length,n[o]=r,e[o]={axis:r,seriesModels:[]}),e[o].seriesModels.push(t)})),e}function u(t){var e,n,r=t.axis,s=t.seriesModels,l=s.length,u=t.boxWidthList=[],c=t.boxOffsetList=[],h=[];if("category"===r.type)n=r.getBandWidth();else{var d=0;a(s,(function(t){d=Math.max(d,t.getData().count())})),e=r.getExtent(),Math.abs(e[1]-e[0])}a(s,(function(t){var e=t.get("boxWidth");i.isArray(e)||(e=[e,e]),h.push([o(e[0],n)||0,o(e[1],n)||0])}));var f=.8*n-2,p=f/l*.3,g=(f-p*(l-1))/l,m=g/2-f/2;a(s,(function(t,e){c.push(m),m+=p+g,u.push(Math.min(Math.max(g,h[e][0]),h[e][1]))}))}function c(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimension(l[s],!0);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),f=_(d,c[2],h),p=_(d,c[0],h),g=_(d,c[1],h),m=_(d,c[3],h),v=_(d,c[4],h),y=[];x(y,g,0),x(y,m,1),y.push(p,g,v,m),b(y,p),b(y,v),b(y,f),r.setItemLayout(h,{initBaseline:f[s],ends:y})}function _(t,n,o){var l,u=r.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[a]+=e),l}function x(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}t.exports=s},61913:function(t){var e=["itemStyle","borderColor"];function n(t,n){var i=t.get("color");t.eachRawSeriesByType("boxplot",(function(n){var r=i[n.seriesIndex%i.length],o=n.getData();o.setVisual({legendSymbol:"roundRect",color:n.get(e)||r}),t.isSeriesFiltered(n)||o.each((function(t){var n=o.getItemModel(t);o.setItemVisual(t,{color:n.get(e,!0)})}))}))}t.exports=n},41913:function(t,e,n){var i=n(89231);n(37967),n(72940);var r=n(50871),o=n(33957),a=n(28719);i.registerPreprocessor(r),i.registerVisual(o),i.registerLayout(a)},37967:function(t,e,n){var i=n(95289),r=n(33358),o=n(74370),a=o.seriesModelMixin,s=r.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)}});i.mixin(s,a,!0);var l=s;t.exports=l},72940:function(t,e,n){var i=n(95289),r=n(67955),o=n(76442),a=n(66343),s=n(99988),l=s.createClipPath,u=["itemStyle"],c=["emphasis","itemStyle"],h=["color","color0","borderColor","borderColor0"],d=r.extend({type:"candlestick",render:function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),a=t.get("clip",!0),s=t.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var s,u=e.getItemLayout(n);if(a&&g(l,u))return;s=p(u,n,!0),o.initProps(s,{shape:{points:u.ends}},t,n),m(s,e,n,r),i.add(s),e.setItemGraphicEl(n,s)}})).update((function(s,u){var c=n.getItemGraphicEl(u);if(e.hasValue(s)){var h=e.getItemLayout(s);a&&g(l,h)?i.remove(c):(c?o.updateProps(c,{shape:{points:h.ends}},t,s):c=p(h,s),m(c,e,s,r),i.add(c),e.setItemGraphicEl(s,c))}else i.remove(c)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},_renderLarge:function(t){this._clear(),_(t,this.group);var e=t.get("clip",!0)?l(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderNormal:function(t,e){var n,i=e.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var o,a=i.getItemLayout(n);o=p(a,n),m(o,i,n,r),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(t,e){_(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:i.noop}),f=a.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))}});function p(t,e,n){var i=t.ends;return new f({shape:{points:n?v(i,t):i},z2:100})}function g(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function m(t,e,n,i){var r=e.getItemModel(n),a=r.getModel(u),s=e.getItemVisual(n,"color"),l=e.getItemVisual(n,"borderColor")||s,d=a.getItemStyle(h);t.useStyle(d),t.style.strokeNoScale=!0,t.style.fill=s,t.style.stroke=l,t.__simpleBox=i;var f=r.getModel(c).getItemStyle();o.setHoverStyle(t,f)}function v(t,e){return i.map(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var y=a.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3}});function _(t,e,n){var i=t.getData(),r=i.getLayout("largePoints"),o=new y({shape:{points:r},__sign:1});e.add(o);var a=new y({shape:{points:r},__sign:-1});e.add(a),x(1,o,t,i),x(-1,a,t,i),n&&(o.incremental=!0,a.incremental=!0)}function x(t,e,n,i){var r=t>0?"P":"N",o=i.getVisual("borderColor"+r)||i.getVisual("color"+r),a=n.getModel(u).getItemStyle(h);e.useStyle(a),e.style.fill=null,e.style.stroke=o}var b=d;t.exports=b},28719:function(t,e,n){var i=n(76442),r=i.subPixelOptimize,o=n(59039),a=n(44261),s=a.parsePercent,l=n(95289),u=l.retrieve2,c="undefined"!==typeof Float32Array?Float32Array:Array,h={seriesType:"candlestick",plan:o(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=f(t,n),o=0,a=1,s=["x","y"],l=n.mapDimension(s[o]),u=n.mapDimension(s[a],!0),h=u[0],p=u[1],g=u[2],m=u[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==l||u.length<4))return{progress:t.pipelineContext.large?y:v};function v(t,n){var s;while(null!=(s=t.next())){var u=n.get(l,s),c=n.get(h,s),f=n.get(p,s),v=n.get(g,s),y=n.get(m,s),_=Math.min(c,f),x=Math.max(c,f),b=C(_,u),w=C(x,u),S=C(v,u),A=C(y,u),M=[];I(M,w,0),I(M,b,1),M.push(E(A),E(w),E(S),E(b)),n.setItemLayout(s,{sign:d(n,s,c,f,p),initBaseline:c>f?w[a]:b[a],ends:M,brushRect:T(v,y,u)})}function C(t,n){var i=[];return i[o]=n,i[a]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var a=e.slice(),s=e.slice();a[o]=r(a[o]+i/2,1,!1),s[o]=r(s[o]-i/2,1,!0),n?t.push(a,s):t.push(s,a)}function T(t,e,n){var r=C(t,n),s=C(e,n);return r[o]-=i/2,s[o]-=i/2,{x:r[0],y:r[1],width:a?i:s[0]-r[0],height:a?s[1]-r[1]:i}}function E(t){return t[o]=r(t[o],1),t}}function y(t,n){var i,r,s=new c(4*t.count),u=0,f=[],v=[];while(null!=(r=t.next())){var y=n.get(l,r),_=n.get(h,r),x=n.get(p,r),b=n.get(g,r),w=n.get(m,r);isNaN(y)||isNaN(b)||isNaN(w)?(s[u++]=NaN,u+=3):(s[u++]=d(n,r,_,x,p),f[o]=y,f[a]=b,i=e.dataToPoint(f,null,v),s[u++]=i?i[0]:NaN,s[u++]=i?i[1]:NaN,f[a]=w,i=e.dataToPoint(f,null,v),s[u++]=i?i[1]:NaN)}n.setLayout("largePoints",s)}}};function d(t,e,n,i,r){var o;return o=n>i?-1:n<i?1:e>0?t.get(r,e-1)<=i?1:-1:1,o}function f(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=s(u(t.get("barMaxWidth"),r),r),a=s(u(t.get("barMinWidth"),1),r),l=t.get("barWidth");return null!=l?s(l,r):Math.max(Math.min(r/2,o),a)}t.exports=h},33957:function(t,e,n){var i=n(59039),r=["itemStyle","borderColor"],o=["itemStyle","borderColor0"],a=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:i(),performRawSeries:!0,reset:function(t,e){var n=t.getData();if(n.setVisual({legendSymbol:"roundRect",colorP:u(1,t),colorN:u(-1,t),borderColorP:c(1,t),borderColorN:c(-1,t)}),!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:l}}function l(t,e){var n;while(null!=(n=t.next())){var i=e.getItemModel(n),r=e.getItemLayout(n).sign;e.setItemVisual(n,{color:u(r,i),borderColor:c(r,i)})}}function u(t,e){return e.get(t>0?a:s)}function c(t,e){return e.get(t>0?r:o)}}};t.exports=l},50871:function(t,e,n){var i=n(95289);function r(t){t&&i.isArray(t.series)&&i.each(t.series,(function(t){i.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}t.exports=r},16983:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(76442),a=n(10589),s=a.getDefaultLabel,l=n(19554),u=n(11041),c=u.getLayoutOnAxis,h=n(1032),d=n(33358),f=n(40590),p=n(67955),g=n(99988),m=g.createClipPath,v=n(88190),y=n(89993),_=n(58568),x=n(12976),b=n(14774),w=o.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],A=["emphasis","itemStyle"],M=["label"],C=["emphasis","label"],I="e\0\0",T={cartesian2d:v,geo:y,singleAxis:_,polar:x,calendar:b};function E(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=j(i);e=o.makePath(a,null,r,i.layout||"center"),e.__customPathData=a}else if("image"===n)e=new o.Image({}),e.__customImagePath=t.style.image;else if("text"===n)e=new o.Text({}),e.__customText=t.style.text;else if("group"===n)e=new o.Group;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var s=o.getShapeClass(n);e=new s}return e.__customGraphicType=n,e.name=t.name,e}function D(t,e,n,i,a,s,l){var u={},c=n.style||{};if(n.shape&&(u.shape=r.clone(n.shape)),n.position&&(u.position=n.position.slice()),n.scale&&(u.scale=n.scale.slice()),n.origin&&(u.origin=n.origin.slice()),n.rotation&&(u.rotation=n.rotation),"image"===t.type&&n.style){var h=u.style={};r.each(["x","y","width","height"],(function(e){P(e,h,c,t.style,s)}))}if("text"===t.type&&n.style){h=u.style={};r.each(["x","y"],(function(e){P(e,h,c,t.style,s)})),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke)}if("group"!==t.type&&(t.useStyle(c),s)){t.style.opacity=0;var d=c.opacity;null==d&&(d=1),o.initProps(t,{style:{opacity:d}},i,e)}s?t.attr(u):o.updateProps(t,u,i,e),n.hasOwnProperty("z2")&&t.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&t.attr("silent",n.silent),n.hasOwnProperty("invisible")&&t.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&t.attr("ignore",n.ignore),n.hasOwnProperty("info")&&t.attr("info",n.info);var f=n.styleEmphasis;o.setElementHoverStyle(t,f),l&&o.setAsHighDownDispatcher(t,!1!==f)}function P(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function L(t,e,n,i){var a=t.get("renderItem"),l=t.coordinateSystem,u={};l&&(u=l.prepareCustoms?l.prepareCustoms():T[l.type](l));var h,d,f,p,g,m=r.defaults({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:x,style:b,styleEmphasis:w,visual:I,barLayout:E,currentSeriesIndices:D,font:P},u.api||{}),v={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:u.coordSys,dataInsideLength:e.count(),encode:R(t.getData())},y=!0;return function(t,n){return h=t,y=!0,a&&a(r.defaults({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},v),m)};function _(t){null==t&&(t=h),y&&(d=e.getItemModel(t),f=d.getModel(M),p=d.getModel(C),g=e.getItemVisual(t,"color"),y=!1)}function x(t,n){return null==n&&(n=h),e.get(e.getDimension(t||0),n)}function b(n,i){null==i&&(i=h),_(i);var a=d.getModel(S).getItemStyle();null!=g&&(a.fill=g);var l=e.getItemVisual(i,"opacity");null!=l&&(a.opacity=l);var u=n?G(n,f):f;return o.setTextStyle(a,u,null,{autoColor:g,isRectText:!0}),a.text=u.getShallow("show")?r.retrieve2(t.getFormattedLabel(i,"normal"),s(e,i)):null,n&&V(a,n),a}function w(n,i){null==i&&(i=h),_(i);var a=d.getModel(A).getItemStyle(),l=n?G(n,p):p;return o.setTextStyle(a,l,null,{isRectText:!0},!0),a.text=l.getShallow("show")?r.retrieve3(t.getFormattedLabel(i,"emphasis"),t.getFormattedLabel(i,"normal"),s(e,i)):null,n&&V(a,n),a}function I(t,n){return null==n&&(n=h),e.getItemVisual(n,t)}function E(t){if(l.getBaseAxis){var e=l.getBaseAxis();return c(r.defaults({axis:e},t),i)}}function D(){return n.getCurrentSeriesIndices()}function P(t){return o.getFont(t,n)}}function R(t){var e={};return r.each(t.dimensions,(function(n,i){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var o=r.coordDim,a=e[o]=e[o]||[];a[r.coordDimIndex]=i}})),e}function O(t,e,n,i,r,o){return t=k(t,e,n,i,r,o,!0),t&&o.setItemGraphicEl(e,t),t}function k(t,e,n,i,r,o,a){var s=!n;n=n||{};var l=n.type,u=n.shape,c=n.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&H(u)&&j(u)!==t.__customPathData||"image"===l&&Y(c,"image")&&c.image!==t.__customImagePath||"text"===l&&Y(u,"text")&&c.text!==t.__customText)&&(r.remove(t),t=null),!s){var h=!t;return!t&&(t=E(n)),D(t,e,n,i,o,h,a),"group"===l&&N(t,e,n,i,o),r.add(t),t}}function N(t,e,n,i,r){var o=n.children,a=o?o.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,u=!1===s;if(a||l||u)if(l)F({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:i,group:t,data:r});else{u&&t.removeAll();for(var c=0;c<a;c++)o[c]&&k(t.childAt(c),e,o[c],i,t,r)}}function F(t){new h(t.oldChildren,t.newChildren,z,z,t).add(B).update(B).remove(W).execute()}function z(t,e){var n=t&&t.name;return null!=n?n:I+e}function B(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;k(r,n.dataIndex,i,n.animatableModel,n.group,n.data)}function G(t,e){var n=new f({},e);return r.each(w,(function(e,i){t.hasOwnProperty(e)&&(n.option[i]=t[e])})),n}function V(t,e){for(var n in e)!e.hasOwnProperty(n)&&w.hasOwnProperty(n)||(t[n]=e[n])}function W(t){var e=this.context,n=e.oldChildren[t];n&&e.group.remove(n)}function j(t){return t&&(t.pathData||t.d)}function H(t){return t&&(t.hasOwnProperty("pathData")||t.hasOwnProperty("d"))}function Y(t,e){return t&&t.hasOwnProperty(e)}d.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(t,e){return l(this.getSource(),this)},getDataParams:function(t,e,n){var i=d.prototype.getDataParams.apply(this,arguments);return n&&(i.info=n.info),i}}),p.extend({type:"custom",_data:null,render:function(t,e,n,i){var r=this._data,o=t.getData(),a=this.group,s=L(t,o,e,n);o.diff(r).add((function(e){O(null,e,s(e,i),t,a,o)})).update((function(e,n){var l=r.getItemGraphicEl(n);O(l,e,s(e,i),t,a,o)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&a.remove(e)})).execute();var l=t.get("clip",!0)?m(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},incrementalPrepareRender:function(t,e,n){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,n,i,r){var o=e.getData(),a=L(e,o,n,i);function s(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)}for(var l=t.start;l<t.end;l++){var u=O(null,l,a(l,r),e,this.group,o);u.traverse(s)}},dispose:r.noop,filterForExposedEvent:function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;while((n=n.parent)&&n!==this.group)if(n.name===r)return!0;return!1}})},86795:function(t,e,n){var i=n(89231);n(63428),n(8852);var r=n(39784),o=n(32493);i.registerVisual(r("effectScatter","circle")),i.registerLayout(o("effectScatter"))},63428:function(t,e,n){var i=n(19554),r=n(33358),o=r.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});t.exports=o},8852:function(t,e,n){var i=n(89231),r=n(52033),o=n(78766),a=n(13388),s=n(32493),l=i.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(o)},render:function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i),this.group.add(r.group)},updateTransform:function(t,e,n){var i=t.getData();this.group.dirty();var r=s().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=a.clone(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}});t.exports=l},83296:function(t,e,n){var i=n(89231);n(28246),n(41114);var r=n(5045),o=n(10441),a=n(95633);i.registerVisual(r("funnel")),i.registerLayout(o),i.registerProcessor(a("funnel"))},28246:function(t,e,n){var i=n(89231),r=n(95289),o=n(80565),a=n(63199),s=a.defaultEmphasis,l=n(49442),u=l.makeSeriesEncodeForNameBased,c=n(65840),h=i.extendSeriesModel({type:"series.funnel",init:function(t){h.superApply(this,"init",arguments),this.legendVisualProvider=new c(r.bind(this.getData,this),r.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,e){return o(this,{coordDimensions:["value"],encodeDefaulter:r.curry(u,this)})},_defaultLabelLine:function(t){s(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=h.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),d=h;t.exports=d},41114:function(t,e,n){var i=n(76442),r=n(95289),o=n(67955);function a(t,e){i.Group.call(this);var n=new i.Polygon,r=new i.Polyline,o=new i.Text;this.add(n),this.add(r),this.add(o),this.highDownOnUpdate=function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(t,e,!0)}var s=a.prototype,l=["itemStyle","opacity"];s.updateData=function(t,e,n){var o=this.childAt(0),a=t.hostModel,s=t.getItemModel(e),u=t.getItemLayout(e),c=t.getItemModel(e).get(l);c=null==c?1:c,o.useStyle({}),n?(o.setShape({points:u.points}),o.setStyle({opacity:0}),i.initProps(o,{style:{opacity:c}},a,e)):i.updateProps(o,{style:{opacity:c},shape:{points:u.points}},a,e);var h=s.getModel("itemStyle"),d=t.getItemVisual(e,"color");o.setStyle(r.defaults({lineJoin:"round",fill:d},h.getItemStyle(["opacity"]))),o.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),i.setHoverStyle(this)},s._updateLabel=function(t,e){var n=this.childAt(1),r=this.childAt(2),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"color");i.updateProps(n,{shape:{points:l.linePoints||l.linePoints}},o,e),i.updateProps(r,{style:{x:l.x,y:l.y}},o,e),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var c=a.getModel("label"),h=a.getModel("emphasis.label"),d=a.getModel("labelLine"),f=a.getModel("emphasis.labelLine");u=t.getItemVisual(e,"color");i.setLabelStyle(r.style,r.hoverStyle={},c,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),r.ignore=r.normalIgnore=!c.get("show"),r.hoverIgnore=!h.get("show"),n.ignore=n.normalIgnore=!d.get("show"),n.hoverIgnore=!f.get("show"),n.setStyle({stroke:u}),n.setStyle(d.getModel("lineStyle").getLineStyle()),n.hoverStyle=f.getModel("lineStyle").getLineStyle()},r.inherits(a,i.Group);var u=o.extend({type:"funnel",render:function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new a(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(t){var e=r.getItemGraphicEl(t);o.remove(e)})).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=u;t.exports=c},10441:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(61570)),o=n(44261),a=o.parsePercent,s=o.linearMap;function l(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return"function"===typeof e?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?i[t]-i[e]:i[e]-i[t]})),r}function c(t){t.each((function(e){var n,i,r,o,a=t.getItemModel(e),s=a.getModel("label"),l=s.get("position"),u=a.get("orient"),c=a.getModel("labelLine"),h=t.getItemLayout(e),d=h.points,f="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(f)"insideLeft"===l?(i=(d[0][0]+d[3][0])/2+5,r=(d[0][1]+d[3][1])/2,n="left"):"insideRight"===l?(i=(d[1][0]+d[2][0])/2-5,r=(d[1][1]+d[2][1])/2,n="right"):(i=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,r=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,n="center"),o=[[i,r],[i,r]];else{var p,g,m,v,y=c.get("length");"left"===l?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=p-y,i=m-5,n="right"):"right"===l?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=p+y,i=m+5,n="left"):"top"===l?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-y,r=v-5,n="center"):"bottom"===l?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+y,r=v+5,n="center"):"rightTop"===l?(p="horizontal"===u?d[3][0]:d[1][0],g="horizontal"===u?d[3][1]:d[1][1],"horizontal"===u?(v=g-y,r=v-5,n="center"):(m=p+y,i=m+5,n="top")):"rightBottom"===l?(p=d[2][0],g=d[2][1],"horizontal"===u?(v=g+y,r=v+5,n="center"):(m=p+y,i=m+5,n="bottom")):"leftTop"===l?(p=d[0][0],g="horizontal"===u?d[0][1]:d[1][1],"horizontal"===u?(v=g-y,r=v-5,n="center"):(m=p-y,i=m-5,n="right")):"leftBottom"===l?(p="horizontal"===u?d[1][0]:d[3][0],g="horizontal"===u?d[1][1]:d[2][1],"horizontal"===u?(v=g+y,r=v+5,n="center"):(m=p-y,i=m-5,n="right")):(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===u?(v=g+y,r=v+5,n="center"):(m=p+y,i=m+5,n="left")),"horizontal"===u?(m=p,i=m):(v=g,r=v),o=[[p,g],[m,v]]}h.label={linePoints:o,x:i,y:r,verticalAlign:"middle",textAlign:n,inside:f}}))}function h(t,e,n){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=l(t,e),h=u(n,r),d=t.get("orient"),f=o.width,p=o.height,g=o.x,m=o.y,v="horizontal"===d?[a(t.get("minSize"),p),a(t.get("maxSize"),p)]:[a(t.get("minSize"),f),a(t.get("maxSize"),f)],y=n.getDataExtent(i),_=t.get("min"),x=t.get("max");null==_&&(_=Math.min(y[0],0)),null==x&&(x=y[1]);var b=t.get("funnelAlign"),w=t.get("gap"),S="horizontal"===d?f:p,A=(S-w*(n.count()-1))/n.count(),M=function(t,e){if("horizontal"===d){var r,o=n.get(i,t)||0,a=s(o,[_,x],v,!0);switch(b){case"top":r=m;break;case"center":r=m+(p-a)/2;break;case"bottom":r=m+(p-a);break}return[[e,r],[e,r+a]]}o=n.get(i,t)||0;var l,u=s(o,[_,x],v,!0);switch(b){case"left":l=g;break;case"center":l=g+(f-u)/2;break;case"right":l=g+f-u;break}return[[l,e],[l+u,e]]};"ascending"===r&&(A=-A,w=-w,"horizontal"===d?g+=f:m+=p,h=h.reverse());for(var C=0;C<h.length;C++){var I=h[C],T=h[C+1],E=n.getItemModel(I);if("horizontal"===d){var D=E.get("itemStyle.width");null==D?D=A:(D=a(D,f),"ascending"===r&&(D=-D));var P=M(I,g),L=M(T,g+D);g+=D+w,n.setItemLayout(I,{points:P.concat(L.slice().reverse())})}else{var R=E.get("itemStyle.height");null==R?R=A:(R=a(R,p),"ascending"===r&&(R=-R));P=M(I,"horizontal"===d?g:m),L=M(T,"horizontal"===d?g+D:m+R);m+=R+w,n.setItemLayout(I,{points:P.concat(L.slice().reverse())})}}c(n)}))}t.exports=h},34853:function(t,e,n){n(59596),n(34460)},59596:function(t,e,n){var i=n(80565),r=n(33358),o=r.extend({type:"series.gauge",getInitialData:function(t,e){return i(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),a=o;t.exports=a},34460:function(t,e,n){var i=n(92184),r=n(76442),o=n(67955),a=n(44261),s=a.parsePercent,l=a.round,u=a.linearMap;function c(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=s(n[0],e.getWidth()),l=s(n[1],e.getHeight()),u=s(t.get("radius"),o/2);return{cx:a,cy:l,r:u}}function h(t,e){return e&&("string"===typeof e?t=e.replace("{value}",null!=t?t:""):"function"===typeof e&&(t=e(t))),t}var d=2*Math.PI,f=o.extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var i=t.get("axisLine.lineStyle.color"),r=c(t,n);this._renderMain(t,e,n,i,r)},dispose:function(){},_renderMain:function(t,e,n,i,o){for(var a=this.group,s=t.getModel("axisLine"),l=s.getModel("lineStyle"),u=t.get("clockwise"),c=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,f=(h-c)%d,p=c,g=l.get("width"),m=s.get("show"),v=0;m&&v<i.length;v++){var y=Math.min(Math.max(i[v][0],0),1),_=(h=c+f*y,new r.Sector({shape:{startAngle:p,endAngle:h,cx:o.cx,cy:o.cy,clockwise:u,r0:o.r-g,r:o.r},silent:!0}));_.setStyle({fill:i[v][1]}),_.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),a.add(_),p=h}var x=function(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};if(!u){var b=c;c=h,h=b}this._renderTicks(t,e,n,x,o,c,h,u),this._renderPointer(t,e,n,x,o,c,h,u),this._renderTitle(t,e,n,x,o),this._renderDetail(t,e,n,x,o)},_renderTicks:function(t,e,n,i,o,a,u,c){for(var d=this.group,f=o.cx,p=o.cy,g=o.r,m=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),_=t.getModel("axisTick"),x=t.getModel("axisLabel"),b=t.get("splitNumber"),w=_.get("splitNumber"),S=s(y.get("length"),g),A=s(_.get("length"),g),M=a,C=(u-a)/b,I=C/w,T=y.getModel("lineStyle").getLineStyle(),E=_.getModel("lineStyle").getLineStyle(),D=0;D<=b;D++){var P=Math.cos(M),L=Math.sin(M);if(y.get("show")){var R=new r.Line({shape:{x1:P*g+f,y1:L*g+p,x2:P*(g-S)+f,y2:L*(g-S)+p},style:T,silent:!0});"auto"===T.stroke&&R.setStyle({stroke:i(D/b)}),d.add(R)}if(x.get("show")){var O=h(l(D/b*(v-m)+m),x.get("formatter")),k=x.get("distance"),N=i(D/b);d.add(new r.Text({style:r.setTextStyle({},x,{text:O,x:P*(g-S-k)+f,y:L*(g-S-k)+p,textVerticalAlign:L<-.4?"top":L>.4?"bottom":"middle",textAlign:P<-.4?"left":P>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(_.get("show")&&D!==b){for(var F=0;F<=w;F++){P=Math.cos(M),L=Math.sin(M);var z=new r.Line({shape:{x1:P*g+f,y1:L*g+p,x2:P*(g-A)+f,y2:L*(g-A)+p},silent:!0,style:E});"auto"===E.stroke&&z.setStyle({stroke:i((D+F/w)/b)}),d.add(z),M+=I}M-=I}else M+=C}},_renderPointer:function(t,e,n,o,a,l,c,h){var d=this.group,f=this._data;if(t.get("pointer.show")){var p=[+t.get("min"),+t.get("max")],g=[l,c],m=t.getData(),v=m.mapDimension("value");m.diff(f).add((function(e){var n=new i({shape:{angle:l}});r.initProps(n,{shape:{angle:u(m.get(v,e),p,g,!0)}},t),d.add(n),m.setItemGraphicEl(e,n)})).update((function(e,n){var i=f.getItemGraphicEl(n);r.updateProps(i,{shape:{angle:u(m.get(v,e),p,g,!0)}},t),d.add(i),m.setItemGraphicEl(e,i)})).remove((function(t){var e=f.getItemGraphicEl(t);d.remove(e)})).execute(),m.eachItemGraphicEl((function(t,e){var n=m.getItemModel(e),i=n.getModel("pointer");t.setShape({x:a.cx,y:a.cy,width:s(i.get("width"),a.r),r:s(i.get("length"),a.r)}),t.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",o(u(m.get(v,e),p,[0,1],!0))),r.setHoverStyle(t,n.getModel("emphasis.itemStyle").getItemStyle())})),this._data=m}else f&&f.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,e,n,i,o){var a=t.getData(),l=a.mapDimension("value"),c=t.getModel("title");if(c.get("show")){var h=c.get("offsetCenter"),d=o.cx+s(h[0],o.r),f=o.cy+s(h[1],o.r),p=+t.get("min"),g=+t.get("max"),m=t.getData().get(l,0),v=i(u(m,[p,g],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},c,{x:d,y:f,text:a.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(t,e,n,i,o){var a=t.getModel("detail"),l=+t.get("min"),c=+t.get("max");if(a.get("show")){var d=a.get("offsetCenter"),f=o.cx+s(d[0],o.r),p=o.cy+s(d[1],o.r),g=s(a.get("width"),o.r),m=s(a.get("height"),o.r),v=t.getData(),y=v.get(v.mapDimension("value"),0),_=i(u(y,[l,c],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},a,{x:f,y:p,text:h(y,a.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),p=f;t.exports=p},92184:function(t,e,n){var i=n(66343),r=i.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)}});t.exports=r},29202:function(t,e,n){var i=n(89231);n(70216),n(83552),n(33695);var r=n(22443),o=n(39784),a=n(61814),s=n(26140),l=n(25529),u=n(73630),c=n(71336),h=n(56724);i.registerProcessor(r),i.registerVisual(o("graph","circle",null)),i.registerVisual(a),i.registerVisual(s),i.registerLayout(l),i.registerLayout(i.PRIORITY.VISUAL.POST_CHART_LAYOUT,u),i.registerLayout(c),i.registerCoordinateSystem("graphView",{create:h})},70216:function(t,e,n){var i=n(89231),r=n(5628),o=n(95289),a=n(63199),s=a.defaultEmphasis,l=n(40590),u=n(8595),c=u.encodeHTML,h=n(65354),d=n(65840),f=n(35238),p=f.initCurvenessList,g=f.createEdgeMapForCurveness,m=i.extendSeriesModel({type:"series.graph",init:function(t){m.superApply(this,"init",arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new d(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){m.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){m.superApply(this,"mergeDefaultAndTheme",arguments),s(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){p(this);var a=h(i,n,this,!0,s);return o.each(a.edges,(function(t){g(t.node1,t.node2,this,t.dataIndex)}),this),a.data}function s(t,n){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var i=r.getModel("edgeLabel"),o=new l({label:i.option},i.parentModel,e),a=r.getModel("emphasis.edgeLabel"),s=new l({emphasis:{label:a.option}},a.parentModel,e);function u(t){return t=this.parsePath(t),t&&"label"===t[0]?o:t&&"emphasis"===t[0]&&"label"===t[1]?s:this.parentModel}n.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(u),t}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),l=c(l.join(" > ")),r.value&&(l+=" : "+c(r.value)),l}return m.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=o.map(this.option.categories||[],(function(t){return null!=t.value?t:o.extend({value:0},t)})),e=new r(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return m.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}}),v=m;t.exports=v},83552:function(t,e,n){var i=n(89231),r=n(95289),o=n(52033),a=n(73643),s=n(95441),l=n(43173),u=n(47114),c=u.onIrrelevantElement,h=n(76442),d=n(97615),f=n(62129),p=f.getNodeGlobalScale,g="__focusNodeAdjacency",m="__unfocusNodeAdjacency",v=["itemStyle","opacity"],y=["lineStyle","opacity"];function _(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function x(t,e,n){var i=t.getGraphicEl(),r=_(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==n||(e=r),t.setStyle("opacity",e)}}))}function b(t,e){var n=_(t,e),i=t.getGraphicEl();i.traverse((function(t){!t.isGroup&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var w=i.extendChartView({type:"graph",init:function(t,e){var n=new o,i=new a,r=this.group;this._controller=new s(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if("view"===r.type){var l={position:r.position,scale:r.scale};this._firstRender?s.attr(l):h.updateProps(s,l,t)}d(t.getGraph(),p(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var f=t.forceLayout,v=t.get("force.layoutAnimation");f&&this._startForceLayoutIteration(f,v),u.eachItemGraphicEl((function(e,r){var o=u.getItemModel(r);e.off("drag").off("dragend");var a=o.get("draggable");a&&e.on("drag",(function(){f&&(f.warmUp(),!this._layouting&&this._startForceLayoutIteration(f,v),f.setFixed(r),u.setItemLayout(r,e.position))}),this).on("dragend",(function(){f&&f.setUnfixed(r)}),this),e.setDraggable(a&&f),e[g]&&e.off("mouseover",e[g]),e[m]&&e.off("mouseout",e[m]),o.get("focusNodeAdjacency")&&(e.on("mouseover",e[g]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[m]=function(){i._dispatchUnfocus(n)}))}),this),u.graph.eachEdge((function(e){var r=e.getGraphicEl();r[g]&&r.off("mouseover",r[g]),r[m]&&r.off("mouseout",r[m]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[g]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[m]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),_=u.getLayout("cx"),x=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var n=u.getItemModel(e),i=n.get("label.rotate")||0,r=t.getSymbolPath();if(y){var o=u.getItemLayout(e),a=Math.atan2(o[1]-x,o[0]-_);a<0&&(a=2*Math.PI+a);var s=o[0]<_;s&&(a-=Math.PI);var l=s?"left":"right";h.modifyLabelStyle(r,{textRotation:-a,textPosition:l,textOrigin:"center"},{textPosition:l})}else h.modifyLabelStyle(r,{textRotation:i*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(t,e){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){n._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,n,i){var o=t.getData(),a=o.graph,s=i.dataIndex,l=i.edgeDataIndex,u=a.getNodeByIndex(s),c=a.getEdgeByIndex(l);(u||c)&&(a.eachNode((function(t){x(t,v,.1)})),a.eachEdge((function(t){x(t,y,.1)})),u&&(b(u,v),r.each(u.edges,(function(t){t.dataIndex<0||(b(t,y),b(t.node1,v),b(t.node2,v))}))),c&&(b(c,y),b(c.node1,v),b(c.node2,v)))},unfocusNodeAdjacency:function(t,e,n,i){var r=t.getData().graph;r.eachNode((function(t){x(t,v)})),r.eachEdge((function(t){x(t,y)}))},_startForceLayoutIteration:function(t,e){var n=this;(function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))})()},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,o=this.group;i.setPointerChecker((function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!c(e,n,t)})),"view"===t.coordinateSystem.type?(i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){l.updateViewOnPan(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){l.updateViewOnZoom(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(),d(t.getGraph(),p(t)),this._lineDraw.updateLayout()}),this)):i.disable()},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),n=p(t),i=[n,n];e.eachItemGraphicEl((function(t,e){t.attr("scale",i)}))},updateLayout:function(t){d(t.getGraph(),p(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});t.exports=w},97615:function(t,e,n){var i=n(35574),r=n(31138),o=n(62129),a=o.getSymbolSize,s=[],l=[],u=[],c=i.quadraticAt,h=r.distSquare,d=Math.abs;function f(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],f=1/0,p=n*n,g=.1,m=.1;m<=.9;m+=.1){s[0]=c(r[0],o[0],a[0],m),s[1]=c(r[1],o[1],a[1],m);var v=d(h(s,e)-p);v<f&&(f=v,i=m)}for(var y=0;y<32;y++){var _=i+g;l[0]=c(r[0],o[0],a[0],i),l[1]=c(r[1],o[1],a[1],i),u[0]=c(r[0],o[0],a[0],_),u[1]=c(r[1],o[1],a[1],_);v=h(l,e)-p;if(d(v)<.01)break;var x=h(u,e)-p;g/=2,v<0?x>=0?i+=g:i-=g:x>=0?i-=g:i+=g}return i}function p(t,e){var n=[],o=i.quadraticSubdivide,s=[[],[],[]],l=[[],[]],u=[];e/=2,t.eachEdge((function(t,i){var c=t.getLayout(),h=t.getVisual("fromSymbol"),d=t.getVisual("toSymbol");c.__original||(c.__original=[r.clone(c[0]),r.clone(c[1])],c[2]&&c.__original.push(r.clone(c[2])));var p=c.__original;if(null!=c[2]){if(r.copy(s[0],p[0]),r.copy(s[1],p[2]),r.copy(s[2],p[1]),h&&"none"!==h){var g=a(t.node1),m=f(s,p[0],g*e);o(s[0][0],s[1][0],s[2][0],m,n),s[0][0]=n[3],s[1][0]=n[4],o(s[0][1],s[1][1],s[2][1],m,n),s[0][1]=n[3],s[1][1]=n[4]}if(d&&"none"!==d){g=a(t.node2),m=f(s,p[1],g*e);o(s[0][0],s[1][0],s[2][0],m,n),s[1][0]=n[1],s[2][0]=n[2],o(s[0][1],s[1][1],s[2][1],m,n),s[1][1]=n[1],s[2][1]=n[2]}r.copy(c[0],s[0]),r.copy(c[1],s[2]),r.copy(c[2],s[1])}else{if(r.copy(l[0],p[0]),r.copy(l[1],p[1]),r.sub(u,l[1],l[0]),r.normalize(u,u),h&&"none"!==h){g=a(t.node1);r.scaleAndAdd(l[0],l[0],u,g*e)}if(d&&"none"!==d){g=a(t.node2);r.scaleAndAdd(l[1],l[1],u,-g*e)}r.copy(c[0],l[0]),r.copy(c[1],l[1])}}))}t.exports=p},22443:function(t){function e(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=o[i]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(i))return!1}return!0}))}),this)}t.exports=e},61814:function(t){function e(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.get("itemStyle.color")||t.getColorFromPalette(o,e);n.setItemVisual(i,"color",s);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t),o=e.getShallow("category");if(null!=o){"string"===typeof o&&(o=r["ec-"+o]);for(var a=["color","opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)null==i.getItemVisual(t,a[s],!0)&&i.setItemVisual(t,a[s],n.getItemVisual(o,a[s]))}}))}))}t.exports=e},73630:function(t,e,n){var i=n(29358),r=i.circularLayout;function o(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&r(t,"symbolSize")}))}t.exports=o},29358:function(t,e,n){var i=n(31138),r=n(62129),o=r.getSymbolSize,a=r.getNodeGlobalScale,s=n(95289),l=n(35238),u=l.getCurvenessForEdge,c=Math.PI,h=[];function d(t,e){var n=t.coordinateSystem;if(!n||"view"===n.type){var r=n.getBoundingRect(),o=t.getData(),a=o.graph,l=r.width/2+r.x,c=r.height/2+r.y,h=Math.min(r.width,r.height)/2,d=o.count();o.setLayout({cx:l,cy:c}),d&&(f[e](t,n,a,o,h,l,c,d),a.eachEdge((function(e,n){var r,o=s.retrieve3(e.getModel().get("lineStyle.curveness"),u(e,t,n),0),a=i.clone(e.node1.getLayout()),h=i.clone(e.node2.getLayout()),d=(a[0]+h[0])/2,f=(a[1]+h[1])/2;+o&&(o*=3,r=[l*o+d*(1-o),c*o+f*(1-o)]),e.setLayout([a,h,r])})))}}var f={value:function(t,e,n,i,r,o,a,s){var l=0,u=i.getSum("value"),c=2*Math.PI/(u||s);n.eachNode((function(t){var e=t.getValue("value"),n=c*(u?e:1)/2;l+=n,t.setLayout([r*Math.cos(l)+o,r*Math.sin(l)+a]),l+=n}))},symbolSize:function(t,e,n,i,r,s,l,u){var d=0;h.length=u;var f=a(t);n.eachNode((function(t){var e=o(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=f;var n=Math.asin(e/2/r);isNaN(n)&&(n=c/2),h[t.dataIndex]=n,d+=2*n}));var p=(2*c-d)/u/2,g=0;n.eachNode((function(t){var e=p+h[t.dataIndex];g+=e,t.setLayout([r*Math.cos(g)+s,r*Math.sin(g)+l]),g+=e}))}};e.circularLayout=d},56724:function(t,e,n){var i=n(92394),r=n(61570),o=r.getLayoutRect,a=n(66346);function s(t,e,n){var i=t.getBoxLayoutParams();return i.aspect=n,o(i,{width:e.getWidth(),height:e.getHeight()})}function l(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var o=t.getData(),l=o.mapArray((function(t){var e=o.getItemModel(t);return[+e.get("x"),+e.get("y")]})),u=[],c=[];a.fromPoints(l,u,c),c[0]-u[0]===0&&(c[0]+=1,u[0]-=1),c[1]-u[1]===0&&(c[1]+=1,u[1]-=1);var h=(c[0]-u[0])/(c[1]-u[1]),d=s(t,e,h);isNaN(h)&&(u=[d.x,d.y],c=[d.x+d.width,d.y+d.height]);var f=c[0]-u[0],p=c[1]-u[1],g=d.width,m=d.height,v=t.coordinateSystem=new i;v.zoomLimit=t.get("scaleLimit"),v.setBoundingRect(u[0],u[1],f,p),v.setViewRect(d.x,d.y,g,m),v.setCenter(t.get("center")),v.setZoom(t.get("zoom")),n.push(v)}})),n}t.exports=l},26140:function(t){function e(t){return t instanceof Array||(t=[t,t]),t}function n(t){t.eachSeriesByType("graph",(function(t){var n=t.getGraph(),i=t.getEdgeData(),r=e(t.get("edgeSymbol")),o=e(t.get("edgeSymbolSize")),a="lineStyle.color".split("."),s="lineStyle.opacity".split(".");i.setVisual("fromSymbol",r&&r[0]),i.setVisual("toSymbol",r&&r[1]),i.setVisual("fromSymbolSize",o&&o[0]),i.setVisual("toSymbolSize",o&&o[1]),i.setVisual("color",t.get(a)),i.setVisual("opacity",t.get(s)),i.each((function(t){var r=i.getItemModel(t),o=n.getEdgeByIndex(t),l=e(r.getShallow("symbol",!0)),u=e(r.getShallow("symbolSize",!0)),c=r.get(a),h=r.get(s);switch(c){case"source":c=o.node1.getVisual("color");break;case"target":c=o.node2.getVisual("color");break}l[0]&&o.setVisual("fromSymbol",l[0]),l[1]&&o.setVisual("toSymbol",l[1]),u[0]&&o.setVisual("fromSymbolSize",u[0]),u[1]&&o.setVisual("toSymbolSize",u[1]),o.setVisual("color",c),o.setVisual("opacity",h)}))}))}t.exports=n},2458:function(t,e,n){var i=n(31138),r=i.scaleAndAdd;function o(t,e,n){for(var o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<t.length;c++){var h=t[c];h.p||(h.p=i.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=i.clone(h.p),h.edges=null}var d=null==n.friction?.6:n.friction,f=d;return{warmUp:function(){f=.8*d},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(n){for(var o=[],a=t.length,s=0;s<e.length;s++){var c=e[s];if(!c.ignoreForceLayout){var h=c.n1,d=c.n2;i.sub(o,d.p,h.p);var p=i.len(o)-c.d,g=d.w/(h.w+d.w);isNaN(g)&&(g=0),i.normalize(o,o),!h.fixed&&r(h.p,h.p,o,g*p*f),!d.fixed&&r(d.p,d.p,o,-(1-g)*p*f)}}for(s=0;s<a;s++){var m=t[s];m.fixed||(i.sub(o,l,m.p),r(m.p,m.p,o,u*f))}for(s=0;s<a;s++){h=t[s];for(var v=s+1;v<a;v++){d=t[v];i.sub(o,d.p,h.p);p=i.len(o);0===p&&(i.set(o,Math.random()-.5,Math.random()-.5),p=1);var y=(h.rep+d.rep)/p/p;!h.fixed&&r(h.pp,h.pp,o,y),!d.fixed&&r(d.pp,d.pp,o,-y)}}var _=[];for(s=0;s<a;s++){m=t[s];m.fixed||(i.sub(_,m.p,m.pp),r(m.p,m.p,_,f),i.copy(m.pp,m.p))}f*=.992,n&&n(t,e,f<.01)}}}e.forceLayout=o},71336:function(t,e,n){var i=n(2458),r=i.forceLayout,o=n(56501),a=o.simpleLayout,s=n(29358),l=s.circularLayout,u=n(44261),c=u.linearMap,h=n(31138),d=n(95289),f=n(35238),p=f.getCurvenessForEdge;function g(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),o=i.data,s=i.edgeData,u=t.getModel("force"),f=u.get("initLayout");t.preservedPoints?o.each((function(t){var e=o.getId(t);o.setItemLayout(t,n[e]||[NaN,NaN])})):f&&"none"!==f?"circular"===f&&l(t,"value"):a(t);var g=o.getDataExtent("value"),m=s.getDataExtent("value"),v=u.get("repulsion"),y=u.get("edgeLength");d.isArray(v)||(v=[v,v]),d.isArray(y)||(y=[y,y]),y=[y[1],y[0]];var _=o.mapArray("value",(function(t,e){var n=o.getItemLayout(e),i=c(t,g,v);return isNaN(i)&&(i=(v[0]+v[1])/2),{w:i,rep:i,fixed:o.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),x=s.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),o=c(e,m,y);isNaN(o)&&(o=(y[0]+y[1])/2);var a=r.getModel(),s=d.retrieve3(a.get("lineStyle.curveness"),-p(r,t,n,!0),0);return{n1:_[r.node1.dataIndex],n2:_[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),b=(e=t.coordinateSystem,e.getBoundingRect()),w=r(_,x,{rect:b,gravity:u.get("gravity"),friction:u.get("friction")}),S=w.step;w.step=function(t){for(var e=0,r=_.length;e<r;e++)_[e].fixed&&h.copy(_[e].p,i.getNodeByIndex(e).getLayout());S((function(e,r,a){for(var s=0,l=e.length;s<l;s++)e[s].fixed||i.getNodeByIndex(s).setLayout(e[s].p),n[o.getId(s)]=e[s].p;for(s=0,l=r.length;s<l;s++){var u=r[s],c=i.getEdgeByIndex(s),d=u.n1.p,f=u.n2.p,p=c.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],h.copy(p[0],d),h.copy(p[1],f),+u.curveness&&(p[2]=[(d[0]+f[0])/2-(d[1]-f[1])*u.curveness,(d[1]+f[1])/2-(f[0]-d[0])*u.curveness]),c.setLayout(p)}t&&t(a)}))},t.forceLayout=w,t.preservedPoints=n,w.step()}else t.forceLayout=null}))}t.exports=g},33695:function(t,e,n){var i=n(89231),r=n(54407),o=r.updateCenterAndZoom;n(38615);var a={type:"graphRoam",event:"graphRoam",update:"none"};i.registerAction(a,(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var n=e.coordinateSystem,i=o(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},62129:function(t,e){function n(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scale,r=i&&i[0]||1,o=e.getZoom(),a=(o-1)*n+1;return a/r}function i(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}e.getNodeGlobalScale=n,e.getSymbolSize=i},25529:function(t,e,n){var i=n(95289),r=i.each,o=n(56501),a=o.simpleLayout,s=o.simpleLayoutEdge;function l(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];r(n.dimensions,(function(t){o=o.concat(i.mapDimension(t,!0))}));for(var l=0;l<i.count();l++){for(var u=[],c=!1,h=0;h<o.length;h++){var d=i.get(o[h],l);isNaN(d)||(c=!0),u.push(d)}c?i.setItemLayout(l,n.dataToPoint(u)):i.setItemLayout(l,[NaN,NaN])}s(i.graph,t)}else e&&"none"!==e||a(t)}))}t.exports=l},56501:function(t,e,n){var i=n(31138),r=n(95289),o=n(35238),a=o.getCurvenessForEdge;function s(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),l(n,t)}}function l(t,e){t.eachEdge((function(t,n){var o=r.retrieve3(t.getModel().get("lineStyle.curveness"),-a(t,e,n,!0),0),s=i.clone(t.node1.getLayout()),l=i.clone(t.node2.getLayout()),u=[s,l];+o&&u.push([(s[0]+l[0])/2-(s[1]-l[1])*o,(s[1]+l[1])/2-(l[0]-s[0])*o]),t.setLayout(u)}))}e.simpleLayout=s,e.simpleLayoutEdge=l},39982:function(t,e,n){n(71724),n(3196)},27016:function(t,e,n){var i=n(95289),r=256;function o(){var t=i.createCanvas();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}o.prototype={update:function(t,e,n,i,o,a){var s=this._getBrush(),l=this._getGradient(t,o,"inRange"),u=this._getGradient(t,o,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),f=t.length;h.width=e,h.height=n;for(var p=0;p<f;++p){var g=t[p],m=g[0],v=g[1],y=g[2],_=i(y);d.globalAlpha=_,d.drawImage(s,m-c,v-c)}if(!h.width||!h.height)return h;var x=d.getImageData(0,0,h.width,h.height),b=x.data,w=0,S=b.length,A=this.minOpacity,M=this.maxOpacity,C=M-A;while(w<S){_=b[w+3]/256;var I=4*Math.floor(_*(r-1));if(_>0){var T=a(_)?l:u;_>0&&(_=_*C+A),b[w++]=T[I],b[w++]=T[I+1],b[w++]=T[I+2],b[w++]=T[I+3]*_*256}else w+=4}return d.putImageData(x,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=i.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}};var a=o;t.exports=a},71724:function(t,e,n){var i=n(33358),r=n(19554),o=n(50294),a=i.extend({type:"series.heatmap",getInitialData:function(t,e){return r(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=o.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});t.exports=a},3196:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(76442),a=n(27016),s=n(95289);function l(t,e,n){var i=t[1]-t[0];e=s.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,o=0;return function(t){for(var i=o;i<r;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function u(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function c(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var h=r.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):c(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){var r=e.coordinateSystem;r&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,i,r){var a,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var c=u.getAxis("x"),h=u.getAxis("y");a=c.getBandWidth(),l=h.getBandWidth()}for(var d=this.group,f=t.getData(),p="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",y=t.getModel(p).getItemStyle(["color"]),_=t.getModel(g).getItemStyle(),x=t.getModel(m),b=t.getModel(v),w=u.type,S="cartesian2d"===w?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],A=n;A<i;A++){var M;if("cartesian2d"===w){if(isNaN(f.get(S[2],A)))continue;var C=u.dataToPoint([f.get(S[0],A),f.get(S[1],A)]);M=new o.Rect({shape:{x:Math.floor(Math.round(C[0])-a/2),y:Math.floor(Math.round(C[1])-l/2),width:Math.ceil(a),height:Math.ceil(l)},style:{fill:f.getItemVisual(A,"color"),opacity:f.getItemVisual(A,"opacity")}})}else{if(isNaN(f.get(S[1],A)))continue;M=new o.Rect({z2:1,shape:u.dataToRect([f.get(S[0],A)]).contentShape,style:{fill:f.getItemVisual(A,"color"),opacity:f.getItemVisual(A,"opacity")}})}var I=f.getItemModel(A);f.hasItemOption&&(y=I.getModel(p).getItemStyle(["color"]),_=I.getModel(g).getItemStyle(),x=I.getModel(m),b=I.getModel(v));var T=t.getRawValue(A),E="-";T&&null!=T[2]&&(E=T[2]),o.setLabelStyle(y,_,x,b,{labelFetcher:t,labelDataIndex:A,defaultText:E,isRectText:!0}),M.setStyle(y),o.setHoverStyle(M,f.hasItemOption?_:s.extend({},_)),M.incremental=r,r&&(M.useHoverLayer=!0),d.add(M),f.setItemGraphicEl(A,M)}},_renderOnGeo:function(t,e,n,i){var r=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,c=e.getData(),h=this._hmLayer||this._hmLayer||new a;h.blurSize=e.get("blurSize"),h.pointSize=e.get("pointSize"),h.minOpacity=e.get("minOpacity"),h.maxOpacity=e.get("maxOpacity");var d=t.getViewRect().clone(),f=t.getRoamTransform();d.applyTransform(f);var p=Math.max(d.x,0),g=Math.max(d.y,0),m=Math.min(d.width+d.x,i.getWidth()),v=Math.min(d.height+d.y,i.getHeight()),y=m-p,_=v-g,x=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],b=c.mapArray(x,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=p,r[1]-=g,r.push(i),r})),w=n.getExtent(),S="visualMap.continuous"===n.type?u(w,n.option.range):l(w,n.getPieceList(),n.option.selected);h.update(b,y,_,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var A=new o.Image({style:{width:y,height:_,x:p,y:g,image:h.canvas},silent:!0});this.group.add(A)},dispose:function(){}});t.exports=h},99768:function(t,e,n){var i=n(76442),r=n(51261),o=n(95289),a=n(22864),s=a.createSymbol,l=n(31138),u=n(35574);function c(t,e,n){i.Group.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}var h=c.prototype;h.createLine=function(t,e,n){return new r(t,e,n)},h._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),r=i.get("symbolSize"),a=i.get("symbol");o.isArray(r)||(r=[r,r]);var l=i.get("color")||t.getItemVisual(e,"color"),u=this.childAt(1);this._symbolType!==a&&(this.remove(u),u=s(a,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(i.getItemStyle(["color"])),u.attr("scale",r),u.setColor(l),u.attr("scale",r),this._symbolType=a,this._symbolScale=r,this._updateEffectAnimation(t,i,e))},h._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=this,a=t.getItemLayout(n),s=1e3*e.get("period"),l=e.get("loop"),u=e.get("constantSpeed"),c=o.retrieve(e.get("delay"),(function(e){return e/t.count()*s/3})),h="function"===typeof c;if(i.ignore=!0,this.updateAnimationPoints(i,a),u>0&&(s=this.getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var d=c;h&&(d=c(n)),i.__t>0&&(d=-s*i.__t),i.__t=0;var f=i.animate("",l).when(s,{__t:1}).delay(d).during((function(){r.updateSymbolPosition(i)}));l||f.done((function(){r.remove(i)})),f.start()}this._period=s,this._loop=l}},h.getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},h.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},h.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},h.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=t.position,a=[o[0],o[1]],s=u.quadraticAt,c=u.quadraticDerivativeAt;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var h=c(e[0],i[0],n[0],r),d=c(e[1],i[1],n[1],r);if(t.rotation=-Math.atan2(d,h)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastT<t.__t){var f=1.05*l.dist(a,o);t.attr("scale",[t.scale[0],f]),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)}else if(1===t.__lastT){f=2*l.dist(e,o);t.attr("scale",[t.scale[0],f])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},h.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},o.inherits(c,i.Group);var d=c;t.exports=d},83994:function(t,e,n){var i=n(80171),r=n(95289),o=n(99768),a=n(31138);function s(t,e,n){o.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var l=s.prototype;l.createLine=function(t,e,n){return new i(t,e,n)},l.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],s=e[r];i+=a.dist(o,s),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}},l.getLineLength=function(t){return this._length},l.updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(o+1,r-1);for(l=s;l>=0;l--)if(i[l]<=e)break;l=Math.min(l,r-2)}else{for(var l=o;l<r;l++)if(i[l]>e)break;l=Math.min(l-1,r-2)}a.lerp(t.position,n[l],n[l+1],(e-i[l])/(i[l+1]-i[l]));var u=n[l+1][0]-n[l][0],c=n[l+1][1]-n[l][1];t.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=e,t.ignore=!1}},r.inherits(s,o);var u=s;t.exports=u},78766:function(t,e,n){var i=n(95289),r=n(22864),o=r.createSymbol,a=n(76442),s=a.Group,l=n(44261),u=l.parsePercent,c=n(88747),h=3;function d(t){return i.isArray(t)||(t=[+t,+t]),t}function f(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function p(t,e){s.call(this);var n=new c(t,e),i=new s;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}var g=p.prototype;g.stopEffectAnimation=function(){this.childAt(1).removeAll()},g.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<h;r++){var a=o(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-r/h*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(a)}f(i,t)},g.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}f(n,t)},g.highlight=function(){this.trigger("emphasis")},g.downplay=function(){this.trigger("normal")},g.updateData=function(t,e){var n=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),r=t.getItemModel(e),o=t.getItemVisual(e,"symbol"),a=d(t.getItemVisual(e,"symbolSize")),s=t.getItemVisual(e,"color");i.attr("scale",a),i.traverse((function(t){t.attr({fill:s})}));var l=r.getShallow("symbolOffset");if(l){var c=i.position;c[0]=u(l[0],a[0]),c[1]=u(l[1],a[1])}var h=t.getItemVisual(e,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var f={};if(f.showEffectOn=n.get("showEffectOn"),f.rippleScale=r.get("rippleEffect.scale"),f.brushType=r.get("rippleEffect.brushType"),f.period=1e3*r.get("rippleEffect.period"),f.effectOffset=e/t.count(),f.z=r.getShallow("z")||0,f.zlevel=r.getShallow("zlevel")||0,f.symbolType=o,f.color=s,f.rippleEffectColor=r.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===f.showEffectOn)this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),g=function(){p.highlight(),"render"!==f.showEffectOn&&this.startEffectAnimation(f)},m=function(){p.downplay(),"render"!==f.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",g,this).on("mouseout",m,this).on("emphasis",g,this).on("normal",m,this)}this._effectCfg=f},g.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},i.inherits(p,s);var m=p;t.exports=m},90176:function(t,e,n){var i=n(76442),r=n(48458),o=n(52998),a=n(78788),s=i.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r<n.length;){var o=n[r++];if(o>0){t.moveTo(n[r++],n[r++]);for(var a=1;a<o;a++)t.lineTo(n[r++],n[r++])}}else for(r=0;r<n.length;){var s=n[r++],l=n[r++],u=n[r++],c=n[r++];if(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}},findDataIndex:function(t,e){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var s=0,l=0;l<i.length;){var u=i[l++];if(u>0)for(var c=i[l++],h=i[l++],d=1;d<u;d++){var f=i[l++],p=i[l++];if(o.containStroke(c,h,f,p))return s}s++}else for(s=0,l=0;l<i.length;){c=i[l++],h=i[l++],f=i[l++],p=i[l++];if(r>0){var g=(c+f)/2-(h-p)*r,m=(h+p)/2-(f-c)*r;if(a.containStroke(c,h,g,m,f,p))return s}else if(o.containStroke(c,h,f,p))return s;s++}return-1}});function l(){this.group=new i.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(t){this.group.removeAll();var e=new s({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},u.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(t,e){var n=new s;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},u._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var c=l;t.exports=c},18790:function(t,e,n){var i=n(76442),r=n(22864),o=r.createSymbol,a=n(48458),s=4,l=i.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var n=e.points,i=e.size,r=this.symbolProxy,o=r.shape,a=t.getContext?t.getContext():t,l=a&&i[0]<s;if(!l)for(var u=0;u<n.length;){var c=n[u++],h=n[u++];isNaN(c)||isNaN(h)||(this.softClipShape&&!this.softClipShape.contain(c,h)||(o.x=c-i[0]/2,o.y=h-i[1]/2,o.width=i[0],o.height=i[1],r.buildPath(t,o,!0)))}},afterBrush:function(t){var e=this.shape,n=e.points,i=e.size,r=i[0]<s;if(r){this.setTransform(t);for(var o=0;o<n.length;){var a=n[o++],l=n[o++];isNaN(a)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(a,l)||t.fillRect(a-i[0]/2,l-i[1]/2,i[0],i[1]))}this.restoreTransform(t)}},findDataIndex:function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1}});function u(){this.group=new i.Group}var c=u.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(t,e){this.group.removeAll();var n=new l({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},c.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},c.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new l,this._incremental.addDisplayable(i,!0)):(i=new l({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental,n)},c._setCommon=function(t,e,n,i){var r=e.hostModel;i=i||{};var a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=i.clipShape||null,t.symbolProxy=o(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var l=t.shape.size[0]<s;t.useStyle(r.getModel("itemStyle").getItemStyle(l?["color","shadowBlur","shadowColor"]:["color"]));var u=e.getVisual("color");u&&t.setColor(u),n||(t.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n+(t.startIndex||0))})))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var h=u;t.exports=h},51261:function(t,e,n){var i=n(95289),r=n(31138),o=n(22864),a=n(4154),s=n(76442),l=n(44261),u=l.round,c=["fromSymbol","toSymbol"];function h(t){return"_"+t+"Type"}function d(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var a=e.getItemVisual(n,"color"),s=e.getItemVisual(n,t+"Size"),l=e.getItemVisual(n,t+"Rotate");i.isArray(s)||(s=[s,s]);var u=o.createSymbol(r,-s[0]/2,-s[1]/2,s[0],s[1],a);return u.__specifiedRotation=null==l||isNaN(l)?void 0:+l*Math.PI/180||0,u.name=t,u}}function f(t){var e=new a({name:"line",subPixelOptimize:!0});return p(e.shape,t),e}function p(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function g(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.childOfName("label");if(e||n||!i.ignore){var o=1,a=this.parent;while(a)a.scale&&(o/=a.scale[0]),a=a.parent;var s=t.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,u=s.pointAt(0),c=s.pointAt(l),h=r.sub([],c,u);if(r.normalize(h,h),e){e.attr("position",u);var d=e.__specifiedRotation;if(null==d){var f=s.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(f[1],f[0]))}else e.attr("rotation",d);e.attr("scale",[o*l,o*l])}if(n){n.attr("position",c);d=n.__specifiedRotation;if(null==d){f=s.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(f[1],f[0]))}else n.attr("rotation",d);n.attr("scale",[o*l,o*l])}if(!i.ignore){var p,g,m,v;i.attr("position",c);var y=i.__labelDistance,_=y[0]*o,x=y[1]*o,b=l/2,w=(f=s.tangentAt(b),[f[1],-f[0]]),S=s.pointAt(b);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var A,M=f[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var C=-Math.atan2(f[1],f[0]);c[0]<u[0]&&(C=Math.PI+C),i.attr("rotation",C)}switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-x,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=x,m="top";break;default:A=0,m="middle"}switch(i.__position){case"end":p=[h[0]*_+c[0],h[1]*x+c[1]],g=h[0]>.8?"left":h[0]<-.8?"right":"center",m=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":p=[-h[0]*_+u[0],-h[1]*x+u[1]],g=h[0]>.8?"right":h[0]<-.8?"left":"center",m=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":p=[_*M+u[0],u[1]+A],g=f[0]<0?"right":"left",v=[-_*M,-A];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":p=[S[0],S[1]+A],g="center",v=[0,-A];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":p=[-_*M+c[0],c[1]+A],g=f[0]>=0?"right":"left",v=[_*M,-A];break}i.attr({style:{textVerticalAlign:i.__verticalAlign||m,textAlign:i.__textAlign||g},position:p,scale:[o,o],origin:v})}}}}function m(t,e,n){s.Group.call(this),this._createLine(t,e,n)}var v=m.prototype;v.beforeUpdate=g,v._createLine=function(t,e,n){var r=t.hostModel,o=t.getItemLayout(e),a=f(o);a.shape.percent=0,s.initProps(a,{shape:{percent:1}},r,e),this.add(a);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),i.each(c,(function(n){var i=d(n,t,e);this.add(i),this[h(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},v.updateData=function(t,e,n){var r=t.hostModel,o=this.childOfName("line"),a=t.getItemLayout(e),l={shape:{}};p(l.shape,a),s.updateProps(o,l,r,e),i.each(c,(function(n){var i=t.getItemVisual(e,n),r=h(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=d(n,t,e);this.add(o)}this[r]=i}),this),this._updateCommonStl(t,e,n)},v._updateCommonStl=function(t,e,n){var r=t.hostModel,o=this.childOfName("line"),a=n&&n.lineStyle,l=n&&n.hoverLineStyle,h=n&&n.labelModel,d=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var f=t.getItemModel(e);a=f.getModel("lineStyle").getLineStyle(),l=f.getModel("emphasis.lineStyle").getLineStyle(),h=f.getModel("label"),d=f.getModel("emphasis.label")}var p=t.getItemVisual(e,"color"),g=i.retrieve3(t.getItemVisual(e,"opacity"),a.opacity,1);o.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:g},a)),o.hoverStyle=l,i.each(c,(function(t){var e=this.childOfName(t);e&&(e.setColor(p),e.setStyle({opacity:g}))}),this);var m,v,y=h.getShallow("show"),_=d.getShallow("show"),x=this.childOfName("label");if((y||_)&&(m=p||"#000",v=r.getFormattedLabel(e,"normal",t.dataType),null==v)){var b=r.getRawValue(e);v=null==b?t.getName(e):isFinite(b)?u(b):b}var w=y?v:null,S=_?i.retrieve2(r.getFormattedLabel(e,"emphasis",t.dataType),v):null,A=x.style;if(null!=w||null!=S){s.setTextStyle(x.style,h,{text:w},{autoColor:m}),x.__textAlign=A.textAlign,x.__verticalAlign=A.textVerticalAlign,x.__position=h.get("position")||"middle";var M=h.get("distance");i.isArray(M)||(M=[M,M]),x.__labelDistance=M}x.hoverStyle=null!=S?{text:S,textFill:d.getTextColor(!0),fontStyle:d.getShallow("fontStyle"),fontWeight:d.getShallow("fontWeight"),fontSize:d.getShallow("fontSize"),fontFamily:d.getShallow("fontFamily")}:{text:null},x.ignore=!y&&!_,s.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},v.setLinePoints=function(t){var e=this.childOfName("line");p(e.shape,t),e.dirty()},i.inherits(m,s.Group);var y=m;t.exports=y},73643:function(t,e,n){var i=n(76442),r=n(51261);function o(t){this._ctor=t||r,this.group=new i.Group}var a=o.prototype;function s(t,e,n,i){var r=e.getItemLayout(n);if(d(r)){var o=new t._ctor(e,n,i);e.setItemGraphicEl(n,o),t.group.add(o)}}function l(t,e,n,i,r,o){var a=e.getItemGraphicEl(i);d(n.getItemLayout(r))?(a?a.updateData(n,r,o):a=new t._ctor(n,r,o),n.setItemGraphicEl(r,a),t.group.add(a)):t.group.remove(a)}function u(t){return t.animators&&t.animators.length>0}function c(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function h(t){return isNaN(t[0])||isNaN(t[1])}function d(t){return!h(t[0])&&!h(t[1])}a.isPersistent=function(){return!0},a.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var r=c(t);t.diff(i).add((function(n){s(e,t,n,r)})).update((function(n,o){l(e,i,t,o,n,r)})).remove((function(t){n.remove(i.getItemGraphicEl(t))})).execute()},a.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},a.incrementalPrepareUpdate=function(t){this._seriesScope=c(t),this._lineData=null,this.group.removeAll()},a.incrementalUpdate=function(t,e){function n(t){t.isGroup||u(t)||(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i<t.end;i++){var r=e.getItemLayout(i);if(d(r)){var o=new this._ctor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o)}}},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var f=o;t.exports=f},4154:function(t,e,n){var i=n(76442),r=n(31138),o=i.Line.prototype,a=i.BezierCurve.prototype;function s(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var l=i.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[s(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:o.buildPath,_buildPathCurve:a.buildPath,pointAt:function(t){return this[s(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:o.pointAt,_pointAtCurve:a.pointAt,tangentAt:function(t){var e=this.shape,n=s(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return r.normalize(n,n)},_tangentAtCurve:a.tangentAt});t.exports=l},80171:function(t,e,n){var i=n(76442),r=n(95289);function o(t,e,n){i.Group.call(this),this._createPolyline(t,e,n)}var a=o.prototype;a._createPolyline=function(t,e,n){var r=t.getItemLayout(e),o=new i.Polyline({shape:{points:r}});this.add(o),this._updateCommonStl(t,e,n)},a.updateData=function(t,e,n){var r=t.hostModel,o=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};i.updateProps(o,a,r,e),this._updateCommonStl(t,e,n)},a._updateCommonStl=function(t,e,n){var o=this.childAt(0),a=t.getItemModel(e),s=t.getItemVisual(e,"color"),l=n&&n.lineStyle,u=n&&n.hoverLineStyle;n&&!t.hasItemOption||(l=a.getModel("lineStyle").getLineStyle(),u=a.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),o.hoverStyle=u,i.setHoverStyle(this)},a.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},r.inherits(o,i.Group);var s=o;t.exports=s},88747:function(t,e,n){var i=n(95289),r=n(22864),o=r.createSymbol,a=n(76442),s=n(44261),l=s.parsePercent,u=n(10589),c=u.getDefaultLabel;function h(t,e,n){a.Group.call(this),this.updateData(t,e,n)}var d=h.prototype,f=h.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function p(t){return[t[0]/2,t[1]/2]}function g(t,e){this.parent.drift(t,e)}d._createSymbol=function(t,e,n,i,r){this.removeAll();var a=e.getItemVisual(n,"color"),s=o(t,-1,-1,2,2,a,r);s.attr({z2:100,culling:!0,scale:p(i)}),s.drift=g,this._symbolType=t,this.add(s)},d.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},d.getSymbolPath=function(){return this.childAt(0)},d.getScale=function(){return this.childAt(0).scale},d.highlight=function(){this.childAt(0).trigger("emphasis")},d.downplay=function(){this.childAt(0).trigger("normal")},d.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},d.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},d.updateData=function(t,e,n){this.silent=!1;var i=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,o=f(t,e),s=i!==this._symbolType;if(s){var l=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(i,t,e,o,l)}else{var u=this.childAt(0);u.silent=!1,a.updateProps(u,{scale:p(o)},r,e)}if(this._updateCommon(t,e,o,n),s){u=this.childAt(0);var c=n&&n.fadeIn,h={scale:u.scale.slice()};c&&(h.style={opacity:u.style.opacity}),u.scale=[0,0],c&&(u.style.opacity=0),a.initProps(u,h,r,e)}this._seriesModel=r};var m=["itemStyle"],v=["emphasis","itemStyle"],y=["label"],_=["emphasis","label"];function x(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){var n=this.__symbolOriginalScale,i=n[1]/n[0],r={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]};this.animateTo(r,400,"elasticOut")}else"normal"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}d._updateCommon=function(t,e,n,r){var o=this.childAt(0),s=t.hostModel,u=t.getItemVisual(e,"color");"image"!==o.type?o.useStyle({strokeNoScale:!0}):o.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var h=r&&r.itemStyle,d=r&&r.hoverItemStyle,f=r&&r.symbolOffset,g=r&&r.labelModel,b=r&&r.hoverLabelModel,w=r&&r.hoverAnimation,S=r&&r.cursorStyle;if(!r||t.hasItemOption){var A=r&&r.itemModel?r.itemModel:t.getItemModel(e);h=A.getModel(m).getItemStyle(["color"]),d=A.getModel(v).getItemStyle(),f=A.getShallow("symbolOffset"),g=A.getModel(y),b=A.getModel(_),w=A.getShallow("hoverAnimation"),S=A.getShallow("cursor")}else d=i.extend({},d);var M=o.style,C=t.getItemVisual(e,"symbolRotate");o.attr("rotation",(C||0)*Math.PI/180||0),f&&o.attr("position",[l(f[0],n[0]),l(f[1],n[1])]),S&&o.attr("cursor",S),o.setColor(u,r&&r.symbolInnerColor),o.setStyle(h);var I=t.getItemVisual(e,"opacity");null!=I&&(M.opacity=I);var T=t.getItemVisual(e,"liftZ"),E=o.__z2Origin;null!=T?null==E&&(o.__z2Origin=o.z2,o.z2+=T):null!=E&&(o.z2=E,o.__z2Origin=null);var D=r&&r.useNameLabel;function P(e,n){return D?t.getName(e):c(t,e)}a.setLabelStyle(M,d,g,b,{labelFetcher:s,labelDataIndex:e,defaultText:P,isRectText:!0,autoColor:u}),o.__symbolOriginalScale=p(n),o.hoverStyle=d,o.highDownOnUpdate=w&&s.isAnimationEnabled()?x:null,a.setHoverStyle(o)},d.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,(!e||!e.keepLabel)&&(n.style.text=null),a.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},i.inherits(h,a.Group);var b=h;t.exports=b},52033:function(t,e,n){var i=n(76442),r=n(88747),o=n(95289),a=o.isObject;function s(t){this.group=new i.Group,this._symbolCtor=t||r}var l=s.prototype;function u(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function c(t){return null==t||a(t)||(t={isIgnore:t}),t||{}}function h(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}l.updateData=function(t,e){e=c(e);var n=this.group,r=t.hostModel,o=this._data,a=this._symbolCtor,s=h(t);o||n.removeAll(),t.diff(o).add((function(i){var r=t.getItemLayout(i);if(u(t,r,i,e)){var o=new a(t,i,s);o.attr("position",r),t.setItemGraphicEl(i,o),n.add(o)}})).update((function(l,c){var h=o.getItemGraphicEl(c),d=t.getItemLayout(l);u(t,d,l,e)?(h?(h.updateData(t,l,s),i.updateProps(h,{position:d},r)):(h=new a(t,l),h.attr("position",d)),n.add(h),t.setItemGraphicEl(l,h)):n.remove(h)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}))})).execute(),this._data=t},l.isPersistent=function(){return!0},l.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl((function(e,n){var i=t.getItemLayout(n);e.attr("position",i)}))},l.incrementalPrepareUpdate=function(t){this._seriesScope=h(t),this._data=null,this.group.removeAll()},l.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=c(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(u(e,o,r,n)){var a=new this._symbolCtor(e,r,this._seriesScope);a.traverse(i),a.attr("position",o),this.group.add(a),e.setItemGraphicEl(r,a)}}},l.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()};var d=s;t.exports=d},99988:function(t,e,n){var i=n(76442),r=n(44261),o=r.round;function a(t,e,n){var r=t.getArea(),o=t.getBaseAxis().isHorizontal(),a=r.x,s=r.y,l=r.width,u=r.height,c=n.get("lineStyle.width")||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new i.Rect({shape:{x:a,y:s,width:l,height:u}});return e&&(h.shape[o?"width":"height"]=0,i.initProps(h,{shape:{width:l,height:u}},n)),h}function s(t,e,n){var r=t.getArea(),a=new i.Sector({shape:{cx:o(t.cx,1),cy:o(t.cy,1),r0:o(r.r0,1),r:o(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return e&&(a.shape.endAngle=r.startAngle,i.initProps(a,{shape:{endAngle:r.endAngle}},n)),a}function l(t,e,n){return t?"polar"===t.type?s(t,e,n):"cartesian2d"===t.type?a(t,e,n):null:null}e.createGridClipPath=a,e.createPolarClipPath=s,e.createClipPath=l},65354:function(t,e,n){var i=n(95289),r=n(5628),o=n(50950),a=n(75403),s=n(29966),l=n(50294),u=n(19554);function c(t,e,n,c,h){for(var d=new o(c),f=0;f<t.length;f++)d.addNode(i.retrieve(t[f].id,t[f].name,f),f);var p=[],g=[],m=0;for(f=0;f<e.length;f++){var v=e[f],y=v.source,_=v.target;d.addEdge(y,_,m)&&(g.push(v),p.push(i.retrieve(v.id,y+" > "+_)),m++)}var x,b=n.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)x=u(t,n);else{var w=l.get(b),S=w&&"view"!==w.type&&w.dimensions||[];i.indexOf(S,"value")<0&&S.concat(["value"]);var A=s(t,{coordDimensions:S});x=new r(A,n),x.initData(t)}var M=new r(["value"],n);return M.initData(g,p),h&&h(x,M),a({mainData:x,struct:d,structAttr:"graph",datas:{node:x,edge:M},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}t.exports=c},19554:function(t,e,n){var i=n(95289),r=n(5628),o=n(29966),a=n(90642),s=a.SOURCE_FORMAT_ORIGINAL,l=n(99535),u=l.getDimensionTypeByAxis,c=n(63199),h=c.getDataItemValue,d=n(50294),f=n(87749),p=f.getCoordSysInfoBySeries,g=n(3325),m=n(74051),v=m.enableDataStack,y=n(49442),_=y.makeSeriesEncodeForAxisCoordSys;function x(t,e,n){n=n||{},g.isInstance(t)||(t=g.seriesDataToSource(t));var a,s=e.get("coordinateSystem"),l=d.get(s),c=p(e);c&&(a=i.map(c.coordSysDims,(function(t){var e={name:t},n=c.axisMap.get(t);if(n){var i=n.get("type");e.type=u(i)}return e}))),a||(a=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var h,f,m=o(t,{coordDimensions:a,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?i.curry(_,a,e):null});c&&i.each(m,(function(t,e){var n=t.coordDim,i=c.categoryAxisMap.get(n);i&&(null==h&&(h=e),t.ordinalMeta=i.getOrdinalMeta()),null!=t.otherDims.itemName&&(f=!0)})),f||null==h||(m[h].otherDims.itemName=0);var y=v(e,m),x=new r(m,e);x.setCalculationInfo(y);var w=null!=h&&b(t)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return x.hasItemOption=!1,x.initData(t,null,w),x}function b(t){if(t.sourceFormat===s){var e=w(t.data||[]);return null!=e&&!i.isArray(h(e))}}function w(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var S=x;t.exports=S},80565:function(t,e,n){var i=n(29966),r=n(5628),o=n(95289),a=o.extend,s=o.isArray;function l(t,e,n){e=s(e)&&{coordDimensions:e}||a({},e);var o=t.getSource(),l=i(o,e),u=new r(l,t);return u.initData(o,n),u}t.exports=l},59039:function(t,e,n){var i=n(63199),r=i.makeInner;function o(){var t=r();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,o=n.progressiveRender,a=n.large=i&&i.large,s=n.progressiveRender=i&&i.progressiveRender;return!!(r^a||o^s)&&"reset"}}t.exports=o},38615:function(t,e,n){var i=n(89231);i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},10589:function(t,e,n){var i=n(41834),r=i.retrieveRawValue;function o(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return r(t,e,n[0]);if(i){for(var o=[],a=0;a<n.length;a++){var s=r(t,e,n[a]);o.push(s)}return o.join(" ")}}e.getDefaultLabel=o},35238:function(t,e,n){var i=n(95289),r="--\x3e",o=function(t){return t.get("autoCurveness")||null},a=function(t,e){var n=o(t),r=20,a=[];if("number"===typeof n)r=n;else if(i.isArray(n))return void(t.__curvenessList=n);e>r&&(r=e);var s=r%2?r+2:r+3;a=[];for(var l=0;l<s;l++)a.push((l%2?l+1:l)/10*(l%2?-1:1));t.__curvenessList=a},s=function(t,e,n){var i=[t.id,t.dataIndex].join("."),o=[e.id,e.dataIndex].join(".");return[n.uid,i,o].join(r)},l=function(t){var e=t.split(r);return[e[0],e[2],e[1]].join(r)},u=function(t,e){var n=s(t.node1,t.node2,e);return e.__edgeMap[n]},c=function(t,e){var n=h(s(t.node1,t.node2,e),e),i=h(s(t.node2,t.node1,e),e);return n+i},h=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function d(t){o(t)&&(t.__curvenessList=[],t.__edgeMap={},a(t))}function f(t,e,n,i){if(o(n)){var r=s(t,e,n),a=n.__edgeMap,u=a[l(r)];a[r]&&!u?a[r].isForward=!0:u&&a[r]&&(u.isForward=!0,a[r].isForward=!1),a[r]=a[r]||[],a[r].push(i)}}function p(t,e,n,r){var d=o(e),f=i.isArray(d);if(!d)return null;var p=u(t,e);if(!p)return null;for(var g=-1,m=0;m<p.length;m++)if(p[m]===n){g=m;break}var v=c(t,e);a(e,v),t.lineStyle=t.lineStyle||{};var y=s(t.node1,t.node2,e),_=e.__curvenessList,x=f||v%2?0:1;if(p.isForward)return _[x+g];var b=l(y),w=h(b,e),S=_[g+w+x];return r?f?d&&0===d[0]?(w+x)%2?S:-S:((w%2?0:1)+x)%2?S:-S:(w+x)%2?S:-S:_[g+w+x]}e.initCurvenessList=d,e.createEdgeMapForCurveness=f,e.getCurvenessForEdge=p},80047:function(t,e,n){var i=n(95289);function r(t,e,n){if(t&&i.indexOf(e,t.type)>=0){var r=n.getData().tree.root,o=t.targetNode;if("string"===typeof o&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=r.getNodeById(a)))return{node:o}}}function o(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function a(t,e){var n=o(t);return i.indexOf(n,e)>=0}function s(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}e.retrieveTargetInfo=r,e.getPathToRoot=o,e.aboveViewRoot=a,e.wrapTreePathInfo=s},74370:function(t,e,n){var i=n(80565),r=n(95289),o=n(99535),a=o.getDimensionTypeByAxis,s=n(49442),l=s.makeSeriesEncodeForAxisCoordSys,u={_baseAxisDim:null,getInitialData:function(t,e){var n,o,s=e.getComponent("xAxis",this.get("xAxisIndex")),u=e.getComponent("yAxis",this.get("yAxisIndex")),c=s.get("type"),h=u.get("type");"category"===c?(t.layout="horizontal",n=s.getOrdinalMeta(),o=!0):"category"===h?(t.layout="vertical",n=u.getOrdinalMeta(),o=!0):t.layout=t.layout||"horizontal";var d=["x","y"],f="horizontal"===t.layout?0:1,p=this._baseAxisDim=d[f],g=d[1-f],m=[s,u],v=m[f].get("type"),y=m[1-f].get("type"),_=t.data;if(_&&o){var x=[];r.each(_,(function(t,e){var n;t.value&&r.isArray(t.value)?(n=t.value.slice(),t.value.unshift(e)):r.isArray(t)?(n=t.slice(),t.unshift(e)):n=t,x.push(n)})),t.data=x}var b=this.defaultValueDimensions,w=[{name:p,type:a(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:a(y),dimsDef:b.slice()}];return i(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:r.curry(l,w,this)})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};e.seriesModelMixin=u},1906:function(t,e,n){var i=n(89231);n(59350),n(44026);var r=n(39784),o=n(32493),a=n(99610);n(48807),i.registerVisual(r("line","circle","line")),i.registerLayout(o("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,a("line"))},59350:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(19554)),o=n(33358),a=o.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return r(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});t.exports=a},44026:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(66346),a=o.fromPoints,s=n(52033),l=n(88747),u=n(64158),c=n(76442),h=n(63199),d=n(6667),f=d.Polyline,p=d.Polygon,g=n(67955),m=n(81961),v=m.prepareDataCoordInfo,y=m.getStackedOnPoint,_=n(99988),x=_.createGridClipPath,b=_.createPolarClipPath;function w(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function S(t,e){var n=[],i=[],r=[],o=[];return a(t,n,i),a(e,r,o),Math.max(Math.abs(n[0]-r[0]),Math.abs(n[1]-r[1]),Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]))}function A(t){return"number"===typeof t?t:t?.5:0}function M(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,o=e.count();r<o;r++)i.push(y(n,t,e,r));return i}function C(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0;a<t.length-1;a++){var s=t[a+1],l=t[a];o.push(l);var u=[];switch(n){case"end":u[r]=s[r],u[1-r]=l[1-r],o.push(u);break;case"middle":var c=(l[r]+s[r])/2,h=[];u[r]=h[r]=c,u[1-r]=l[1-r],h[1-r]=s[1-r],o.push(u),o.push(h);break;default:u[r]=l[r],u[1-r]=s[1-r],o.push(u)}}return t[a]&&o.push(t[a]),o}function I(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=n.length-1;a>=0;a--){var s=n[a].dimension,l=t.dimensions[s],u=t.getDimensionInfo(l);if(i=u&&u.coordDim,"x"===i||"y"===i){o=n[a];break}}if(o){var h=e.getAxis(i),d=r.map(o.stops,(function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}})),f=d.length,p=o.outerColors.slice();f&&d[0].coord>d[f-1].coord&&(d.reverse(),p.reverse());var g=10,m=d[0].coord-g,v=d[f-1].coord+g,y=v-m;if(y<.001)return"transparent";r.each(d,(function(t){t.offset=(t.coord-m)/y})),d.push({offset:f?d[f-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:p[0]||"transparent"});var _=new c.LinearGradient(0,0,0,0,d,!0);return _[i]=m,_[i+"2"]=v,_}}}function T(t,e,n){var i=t.get("showAllSymbol"),o="auto"===i;if(!i||o){var a=n.getAxesByScale("ordinal")[0];if(a&&(!o||!E(a,e))){var s=e.mapDimension(a.dim),l={};return r.each(a.getViewLabels(),(function(t){l[t.tickValue]=1})),function(t){return!l.hasOwnProperty(e.get(s,t))}}}}function E(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*l.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function D(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=x(t,e,n);if(!n.get("clip",!0)){var o=r.shape,a=Math.max(o.width,o.height);i?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return r}return b(t,e,n)}var P=g.extend({type:"line",init:function(){var t=new c.Group,e=new s;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.mapArray(a.getItemLayout),c="polar"===i.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),y=!l.isEmpty(),_=l.get("origin"),x=v(i,a,_),b=M(i,a,x),S=t.get("showSymbol"),E=S&&!c&&T(t,a,i),P=this._data;P&&P.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),P.setItemGraphicEl(e,null))})),S||d.remove(),o.add(g);var L,R=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(L=i.getArea(),null!=L.width?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r1+=.5)),this._clipShapeForSymbol=L,f&&h.type===i.type&&R===this._step?(y&&!p?p=this._newPolygon(u,b,i,m):p&&!y&&(g.remove(p),p=this._polygon=null),g.setClipPath(D(i,!1,t)),S&&d.updateData(a,{isIgnore:E,clipShape:L}),a.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),w(this._stackedOnPoints,b)&&w(this._points,u)||(m?this._updateAnimation(a,b,i,n,R,_):(R&&(u=C(u,i,R),b=C(b,i,R)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:b})))):(S&&d.updateData(a,{isIgnore:E,clipShape:L}),R&&(u=C(u,i,R),b=C(b,i,R)),f=this._newPolyline(u,i,m),y&&(p=this._newPolygon(u,b,i,m)),g.setClipPath(D(i,!0,t)));var O=I(a,i)||a.getVisual("color");f.useStyle(r.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var k=t.get("smooth");if(k=A(t.get("smooth")),f.setShape({smooth:k,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var N=a.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(r.defaults(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),N&&(F=A(N.get("smooth"))),p.setShape({smooth:k,stackedOnSmooth:F,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=a,this._coordSys=i,this._stackedOnPoints=b,this._points=u,this._step=R,this._valueOrigin=_},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),o=h.queryDataIndex(r,i);if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;a=new l(r,o),a.position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else g.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=h.queryDataIndex(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else g.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new f({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new p({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,h=u(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),d=h.current,f=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(r&&(d=C(h.current,n,r),f=C(h.stackedOnCurrent,n,r),p=C(h.next,n,r),g=C(h.stackedOnNext,n,r)),S(d,p)>3e3||s&&S(f,g)>3e3)return a.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:g}));a.shape.__points=h.current,a.shape.points=d,c.updateProps(a,{shape:{points:p}},l),s&&(s.setShape({points:d,stackedOnPoints:f}),c.updateProps(s,{shape:{points:p,stackedOnPoints:g}},l));for(var m=[],v=h.status,y=0;y<v.length;y++){var _=v[y].cmd;if("="===_){var x=t.getItemGraphicEl(v[y].idx1);x&&m.push({el:x,ptIdx:y})}}a.animators&&a.animators.length&&a.animators[0].during((function(){for(var t=0;t<m.length;t++){var e=m[t].el;e.attr("position",a.shape.__points[m[t].ptIdx])}}))},remove:function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});t.exports=P},81961:function(t,e,n){var i=n(74051),r=i.isDimensionStacked,o=n(95289),a=o.map;function s(t,e,n){var i,o=t.getBaseAxis(),s=t.getOtherAxis(o),u=l(s,n),c=o.dim,h=s.dim,d=e.mapDimension(h),f=e.mapDimension(c),p="x"===h||"radius"===h?1:0,g=a(t.dimensions,(function(t){return e.mapDimension(t)})),m=e.getCalculationInfo("stackResultDimension");return(i|=r(e,g[0]))&&(g[0]=m),(i|=r(e,g[1]))&&(g[1]=m),{dataDimsForPoint:g,valueStart:u,valueAxisDim:h,baseAxisDim:c,stacked:!!i,valueDim:d,baseDim:f,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function l(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function u(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}e.prepareDataCoordInfo=s,e.getStackedOnPoint=u},64158:function(t,e,n){var i=n(81961),r=i.prepareDataCoordInfo,o=i.getStackedOnPoint;function a(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function s(t,e,n,i,s,l,u,c){for(var h=a(t,e),d=[],f=[],p=[],g=[],m=[],v=[],y=[],_=r(s,e,u),x=r(l,t,c),b=0;b<h.length;b++){var w=h[b],S=!0;switch(w.cmd){case"=":var A=t.getItemLayout(w.idx),M=e.getItemLayout(w.idx1);(isNaN(A[0])||isNaN(A[1]))&&(A=M.slice()),d.push(A),f.push(M),p.push(n[w.idx]),g.push(i[w.idx1]),y.push(e.getRawIndex(w.idx1));break;case"+":var C=w.idx;d.push(s.dataToPoint([e.get(_.dataDimsForPoint[0],C),e.get(_.dataDimsForPoint[1],C)])),f.push(e.getItemLayout(C).slice()),p.push(o(_,s,e,C)),g.push(i[C]),y.push(e.getRawIndex(C));break;case"-":C=w.idx;var I=t.getRawIndex(C);I!==C?(d.push(t.getItemLayout(C)),f.push(l.dataToPoint([t.get(x.dataDimsForPoint[0],C),t.get(x.dataDimsForPoint[1],C)])),p.push(n[C]),g.push(o(x,l,t,C)),y.push(I)):S=!1}S&&(m.push(w),v.push(v.length))}v.sort((function(t,e){return y[t]-y[e]}));var T=[],E=[],D=[],P=[],L=[];for(b=0;b<v.length;b++){C=v[b];T[b]=d[C],E[b]=f[C],D[b]=p[C],P[b]=g[C],L[b]=m[C]}return{current:T,next:E,stackedOnCurrent:D,stackedOnNext:P,status:L}}t.exports=s},6667:function(t,e,n){var i=n(66343),r=n(31138),o=n(58458),a=r.min,s=r.max,l=r.scaleAndAdd,u=r.copy,c=[],h=[],d=[];function f(t){return isNaN(t[0])||isNaN(t[1])}function p(t,e,n,i,r,o,a,s,l,u,c){return"none"!==u&&u?g.apply(this,arguments):m.apply(this,arguments)}function g(t,e,n,i,r,o,a,s,l,c,p){for(var g=0,m=n,v=0;v<i;v++){var y=e[m];if(m>=r||m<0)break;if(f(y)){if(p){m+=o;continue}break}if(m===n)t[o>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var _=e[g],x="y"===c?1:0,b=(y[x]-_[x])*l;u(h,_),h[x]=_[x]+b,u(d,y),d[x]=y[x]-b,t.bezierCurveTo(h[0],h[1],d[0],d[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=m,m+=o}return v}function m(t,e,n,i,o,p,g,m,v,y,_){for(var x=0,b=n,w=0;w<i;w++){var S=e[b];if(b>=o||b<0)break;if(f(S)){if(_){b+=p;continue}break}if(b===n)t[p>0?"moveTo":"lineTo"](S[0],S[1]),u(h,S);else if(v>0){var A=b+p,M=e[A];if(_)while(M&&f(e[A]))A+=p,M=e[A];var C=.5,I=e[x];M=e[A];if(!M||f(M))u(d,S);else{var T,E;if(f(M)&&!_&&(M=S),r.sub(c,M,I),"x"===y||"y"===y){var D="x"===y?0:1;T=Math.abs(S[D]-I[D]),E=Math.abs(S[D]-M[D])}else T=r.dist(S,I),E=r.dist(S,M);C=E/(E+T),l(d,S,c,-v*(1-C))}a(h,h,m),s(h,h,g),a(d,d,m),s(d,d,g),t.bezierCurveTo(h[0],h[1],d[0],d[1],S[0],S[1]),l(h,S,c,v*C)}else t.lineTo(S[0],S[1]);x=b,b+=p}return w}function v(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var o=t[r];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[0]>i[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var y=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:o(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=v(n,e.smoothConstraint);if(e.connectNulls){for(;r>0;r--)if(!f(n[r-1]))break;for(;i<r;i++)if(!f(n[i]))break}while(i<r)i+=p(t,n,i,r,r,1,o.min,o.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),_=i.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:o(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length,a=e.smoothMonotone,s=v(n,e.smoothConstraint),l=v(i,e.smoothConstraint);if(e.connectNulls){for(;o>0;o--)if(!f(n[o-1]))break;for(;r<o;r++)if(!f(n[r]))break}while(r<o){var u=p(t,n,r,o,o,1,s.min,s.max,e.smooth,a,e.connectNulls);p(t,i,r+u-1,u,o,-1,l.min,l.max,e.stackedOnSmooth,a,e.connectNulls),r+=u+1,t.closePath()}}});e.Polyline=y,e.Polygon=_},44561:function(t,e,n){var i=n(89231);n(5436),n(94156);var r=n(76623),o=n(39205);i.registerLayout(r),i.registerVisual(o)},5436:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(33358)),o=n(5628),a=n(95289),s=a.concatArray,l=a.mergeAll,u=a.map,c=n(8595),h=c.encodeHTML,d=(n(50294),"undefined"===typeof Uint32Array?Array:Uint32Array),f="undefined"===typeof Float64Array?Array:Float64Array;function p(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=u(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),l([n,t[0],t[1]])})))}var g=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],p(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),g.superApply(this,"init",arguments)},mergeOption:function(t){if(p(t),t.data){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,e.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"===typeof t[0]){for(var n=t.length,i=new d(n),r=new f(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];i[a++]=o+e,i[a++]=u;for(var c=0;c<u;c++){var h=t[l++],p=t[l++];r[o++]=h,r[o++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var n=new o(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},formatTooltip:function(t){var e=this.getData(),n=e.getItemModel(t),i=n.get("name");if(i)return i;var r=n.get("fromName"),o=n.get("toName"),a=[];return null!=r&&a.push(r),null!=o&&a.push(o),h(a.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),m=g;t.exports=m},94156:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(73643),a=n(99768),s=n(51261),l=n(80171),u=n(83994),c=n(90176),h=n(76623),d=n(99988),f=d.createClipPath,p=r.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get("effect.trailLength"),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&f(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=h.reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),h=e.pipelineContext,d=h.large;return n&&i===this._hasEffet&&r===this._isPolyline&&d===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=d?new c:new o(r?i?u:l:i?a:s),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=d,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});t.exports=p},76623:function(t,e,n){var i=n(59039),r={seriesType:"lines",plan:i(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;function r(r,o){var a=[];if(i){var s,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var f=t.getLineCoords(c,a);n&&(s[h++]=f);for(var p=0;p<f;p++)d=e.dataToPoint(a[p],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),m=(f=t.getLineCoords(c,a),[]);if(n)for(var v=0;v<f;v++)m.push(e.dataToPoint(a[v]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var y=g.get("lineStyle.curveness");+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(c,m)}}return{progress:r}}};t.exports=r},39205:function(t){function e(t){return t instanceof Array||(t=[t,t]),t}var n="lineStyle.opacity".split("."),i={seriesType:"lines",reset:function(t,i,r){var o=e(t.get("symbol")),a=e(t.get("symbolSize")),s=t.getData();function l(t,i){var r=t.getItemModel(i),o=e(r.getShallow("symbol",!0)),a=e(r.getShallow("symbolSize",!0)),s=r.get(n);o[0]&&t.setItemVisual(i,"fromSymbol",o[0]),o[1]&&t.setItemVisual(i,"toSymbol",o[1]),a[0]&&t.setItemVisual(i,"fromSymbolSize",a[0]),a[1]&&t.setItemVisual(i,"toSymbolSize",a[1]),t.setItemVisual(i,"opacity",s)}return s.setVisual("fromSymbol",o&&o[0]),s.setVisual("toSymbol",o&&o[1]),s.setVisual("fromSymbolSize",a&&a[0]),s.setVisual("toSymbolSize",a&&a[1]),s.setVisual("opacity",t.get(n)),{dataEach:s.hasItemOption?l:null}}};t.exports=i},25120:function(t,e,n){var i=n(89231);n(28528),n(35784),n(50704),n(98870);var r=n(34123),o=n(93233),a=n(55547),s=n(15492),l=n(40428);i.registerLayout(r),i.registerVisual(o),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,a),i.registerPreprocessor(s),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},28528:function(t,e,n){var i=n(95289),r=n(80565),o=n(33358),a=n(8595),s=a.encodeHTML,l=a.addCommas,u=n(18171),c=n(41834),h=c.retrieveRawAttr,d=n(80218),f=n(49442),p=f.makeSeriesEncodeForNameBased,g=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var e=r(this,{coordDimensions:["value"],encodeDefaulter:i.curry(p,this)}),n=e.mapDimension("value"),o=i.createHashMap(),a=[],s=[],l=0,u=e.count();l<u;l++){var c=e.getName(l);o.set(c,!0),a.push({name:c,value:e.get(n,l),selected:h(e,l,"selected")})}var f=d.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return i.each(f.regions,(function(t){var e=t.name;o.get(e)||(a.push({name:e}),s.push(e))})),this.updateSelectedMap(a),e.appendValues([],s),e},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t,e,n,i){for(var r=this.getData(),o=l(this.getRawValue(t)),a=r.getName(t),u=this.seriesGroup,c=[],h=0;h<u.length;h++){var d=u[h].originalData.indexOfName(a),f=r.mapDimension("value");isNaN(u[h].originalData.get(f,d))||c.push(s(u[h].name))}var p="html"===i?"<br/>":"\n";return c.join(", ")+p+s(a+" : "+o)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});i.mixin(g,u);var m=g;t.exports=m},35784:function(t,e,n){var i=n(89231),r=n(95289),o=n(76442),a=n(75730),s="__seriesMapHighDown",l="__seriesMapCallKey",u=i.extendChartView({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){o=this._mapDraw;o&&r.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new a(n,!0);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var i=t.originalData,a=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var u=i.getItemLayout(n);if(u&&u.point){var d=u.point,f=u.offset,p=new o.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*f,cy:d[1],r:3},silent:!0,z2:8+(f?0:o.Z2_EMPHASIS_LIFT+1)});if(!f){var g=t.mainSeries.getData(),m=i.getName(n),v=g.indexOfName(m),y=i.getItemModel(n),_=y.getModel("label"),x=y.getModel("emphasis.label"),b=g.getItemGraphicEl(v),w=r.retrieve2(t.getFormattedLabel(v,"normal"),m),S=r.retrieve2(t.getFormattedLabel(v,"emphasis"),w),A=b[s],M=Math.random();if(!A){A=b[s]={};var C=r.curry(c,!0),I=r.curry(c,!1);b.on("mouseover",C).on("mouseout",I).on("emphasis",C).on("normal",I)}b[l]=M,r.extend(A,{recordVersion:M,circle:p,labelModel:_,hoverLabelModel:x,emphasisText:S,normalText:w}),h(A,!1)}a.add(p)}}}))}});function c(t){var e=this[s];e&&e.recordVersion===this[l]&&h(e,t)}function h(t,e){var n=t.circle,i=t.labelModel,r=t.hoverLabelModel,a=t.emphasisText,s=t.normalText;e?(n.style.extendFrom(o.setTextStyle({},r,{text:r.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=o.Z2_EMPHASIS_LIFT):(o.setTextStyle(n.style,i,{text:i.get("show")?s:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}t.exports=u},15492:function(t,e,n){var i=n(95289);function r(t){var e=[];i.each(t.series,(function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,i.defaults(t,t.mapLocation))}))}t.exports=r},55547:function(t,e,n){var i=n(95289);function r(t,e){var n={};return i.each(t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+t[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h<c;h++)l=Math.min(l,n[a][h]),u=Math.max(u,n[a][h]),s+=n[a][h];return o="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:o}))}function o(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),i.each(e,(function(t,e){for(var n=r(i.map(t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),o=0;o<t.length;o++)t[o].originalData=t[o].getData();for(o=0;o<t.length;o++)t[o].seriesGroup=t,t[o].needsDrawMap=0===o&&!t[o].getHostGeoModel(),t[o].setData(n.cloneShallow()),t[o].mainSeries=t[0]}))}t.exports=o},34123:function(t,e,n){var i=n(95289);function r(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var o={};i.each(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var r=i.getName(e),a=n.getRegion(r);if(a&&!isNaN(t)){var s=o[r]||0,l=n.dataToPoint(a.center);o[r]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var a=n.getData();a.each((function(t){var e=a.getName(t),n=a.getItemLayout(t)||{};n.showLabel=!o[e],a.setItemLayout(t,n)})),e[r]=!0}}))}t.exports=r},93233:function(t){function e(t){t.eachSeriesByType("map",(function(t){var e=t.get("color"),n=t.getModel("itemStyle"),i=n.get("areaColor"),r=n.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:i,color:r})}))}t.exports=e},19771:function(t,e,n){var i=n(89231);n(14102),n(87172),n(73556);var r=n(90461);i.registerVisual(r)},87172:function(t,e,n){var i=n(95289),r=i.each,o=i.createHashMap,a=n(33358),s=n(19554),l=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return u(n,this),s(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function u(t,e){if(!t.encodeDefine){var n=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(n){var i=t.encodeDefine=o();r(n.dimensions,(function(t){var e=c(t);i.set(t,e)}))}}}function c(t){return+t.replace("dim","")}t.exports=l},73556:function(t,e,n){var i=n(76442),r=n(67955),o=.3,a=r.extend({type:"parallel",init:function(){this._dataGroup=new i.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,n,r){var o=this._dataGroup,a=t.getData(),d=this._data,f=t.coordinateSystem,p=f.dimensions,g=c(t);function m(t){var e=u(a,o,t,p,f);h(e,a,t,g)}function v(e,n){var o=d.getItemGraphicEl(n),s=l(a,e,p,f);a.setItemGraphicEl(e,o);var u=r&&!1===r.animation?null:t;i.updateProps(o,{shape:{points:s}},u,e),h(o,a,e,g)}function y(t){var e=d.getItemGraphicEl(t);o.remove(e)}if(a.diff(d).add(m).update(v).remove(y).execute(),!this._initialized){this._initialized=!0;var _=s(f,t,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(_)}this._data=a},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=c(e),s=t.start;s<t.end;s++){var l=u(i,this._dataGroup,s,o,r);l.incremental=!0,h(l,i,s,a)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function s(t,e,n){var r=t.model,o=t.getRect(),a=new i.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),s="horizontal"===r.get("layout")?"width":"height";return a.setShape(s,0),i.initProps(a,{shape:{width:o.width,height:o.height}},e,n),a}function l(t,e,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],s=t.get(t.mapDimension(a),e);d(s,i.getAxis(a).type)||r.push(i.dataToPoint(s,a))}return r}function u(t,e,n,r,o){var a=l(t,n,r,o),s=new i.Polyline({shape:{points:a},silent:!0,z2:10});return e.add(s),t.setItemGraphicEl(n,s),s}function c(t){var e=t.get("smooth",!0);return!0===e&&(e=o),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:o}}function h(t,e,n,i){var r=i.lineStyle;if(e.hasItemOption){var o=e.getItemModel(n).getModel("lineStyle");r=o.getLineStyle()}t.useStyle(r);var a=t.style;a.fill=null,a.stroke=e.getItemVisual(n,"color"),a.opacity=e.getItemVisual(n,"opacity"),i.smooth&&(t.shape.smooth=i.smooth)}function d(t,e){return"category"===e?null==t:null==t||isNaN(t)}var f=a;t.exports=f},90461:function(t){var e=["lineStyle","normal","opacity"],n={seriesType:"parallel",reset:function(t,n,i){var r=t.getModel("itemStyle"),o=t.getModel("lineStyle"),a=n.get("color"),s=o.get("color")||r.get("color")||a[t.seriesIndex%a.length],l=t.get("inactiveOpacity"),u=t.get("activeOpacity"),c=t.getModel("lineStyle").getLineStyle(),h=t.coordinateSystem,d=t.getData(),f={normal:c.opacity,active:u,inactive:l};function p(t,n){h.eachActiveState(n,(function(t,i){var r=f[t];if("normal"===t&&n.hasItemOption){var o=n.getItemModel(i).get(e,!0);null!=o&&(r=o)}n.setItemVisual(i,"opacity",r)}),t.start,t.end)}return d.setVisual("color",s),{progress:p}}};t.exports=n},89878:function(t,e,n){var i=n(89231),r=n(95289);n(31020),n(92865),n(82917);var o=n(11041),a=o.layout,s=n(39784);n(48807),i.registerLayout(r.curry(a,"pictorialBar")),i.registerVisual(s("pictorialBar","roundRect"))},26804:function(t,e,n){var i=n(89231),r=n(95289);n(4160),n(65720);var o=n(40428),a=n(5045),s=n(23219),l=n(95633);o("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(a("pie")),i.registerLayout(r.curry(s,"pie")),i.registerProcessor(l("pie"))},4160:function(t,e,n){var i=n(89231),r=n(80565),o=n(95289),a=n(63199),s=n(44261),l=s.getPercentWithPrecision,u=n(18171),c=n(41834),h=c.retrieveRawAttr,d=n(49442),f=d.makeSeriesEncodeForNameBased,p=n(65840),g=i.extendSeriesModel({type:"series.pie",init:function(t){g.superApply(this,"init",arguments),this.legendVisualProvider=new p(o.bind(this.getData,this),o.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){g.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return r(this,{coordDimensions:["value"],encodeDefaulter:o.curry(f,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();i<r;i++)n.push({name:t.getName(i),value:t.get(e,i),selected:h(t,i,"selected")});return n},getDataParams:function(t){var e=this.getData(),n=g.superCall(this,"getDataParams",t),i=[];return e.each(e.mapDimension("value"),(function(t){i.push(t)})),n.percent=l(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){a.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});o.mixin(g,u);var m=g;t.exports=m},65720:function(t,e,n){var i=n(95289),r=n(76442),o=n(67955);function a(t,e,n,i){var r=e.getData(),o=this.dataIndex,a=r.getName(o),l=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:a,seriesId:e.id}),r.each((function(t){s(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),l,n)}))}function s(t,e,n,i,r){var o=(e.startAngle+e.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=n?i:0,u=[a*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function l(t,e){r.Group.call(this);var n=new r.Sector({z2:2}),i=new r.Polyline,o=new r.Text;this.add(n),this.add(i),this.add(o),this.updateData(t,e,!0)}var u=l.prototype;u.updateData=function(t,e,n){var o=this.childAt(0),a=this.childAt(1),l=this.childAt(2),u=t.hostModel,c=t.getItemModel(e),h=t.getItemLayout(e),d=i.extend({},h);d.label=null;var f=u.getShallow("animationTypeUpdate");if(n){o.setShape(d);var p=u.getShallow("animationType");"scale"===p?(o.shape.r=h.r0,r.initProps(o,{shape:{r:h.r}},u,e)):(o.shape.endAngle=h.startAngle,r.updateProps(o,{shape:{endAngle:h.endAngle}},u,e))}else"expansion"===f?o.setShape(d):r.updateProps(o,{shape:d},u,e);var g=t.getItemVisual(e,"color");o.useStyle(i.defaults({lineJoin:"bevel",fill:g},c.getModel("itemStyle").getItemStyle())),o.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var m=c.getShallow("cursor");m&&o.attr("cursor",m),s(this,t.getItemLayout(e),u.isSelected(t.getName(e)),u.get("selectedOffset"),u.get("animation"));var v=!n&&"transition"===f;this._updateLabel(t,e,v),this.highDownOnUpdate=u.get("silent")?null:function(t,e){var n=u.isAnimationEnabled()&&c.get("hoverAnimation");"emphasis"===e?(a.ignore=a.hoverIgnore,l.ignore=l.hoverIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r+u.get("hoverOffset")}},300,"elasticOut"))):(a.ignore=a.normalIgnore,l.ignore=l.normalIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r}},300,"elasticOut")))},r.setHoverStyle(this)},u._updateLabel=function(t,e,n){var i=this.childAt(1),o=this.childAt(2),a=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");if(!u||isNaN(u.x)||isNaN(u.y))o.ignore=o.normalIgnore=o.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0;else{var h={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},d={x:u.x,y:u.y};n?(r.updateProps(i,{shape:h},a,e),r.updateProps(o,{style:d},a,e)):(i.attr({shape:h}),o.attr({style:d})),o.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var f=s.getModel("label"),p=s.getModel("emphasis.label"),g=s.getModel("labelLine"),m=s.getModel("emphasis.labelLine");c=t.getItemVisual(e,"color");r.setLabelStyle(o.style,o.hoverStyle={},f,p,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:u.text,autoColor:c,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),o.ignore=o.normalIgnore=!f.get("show"),o.hoverIgnore=!p.get("show"),i.ignore=i.normalIgnore=!g.get("show"),i.hoverIgnore=!m.get("show"),i.setStyle({stroke:c,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(g.getModel("lineStyle").getLineStyle()),i.hoverStyle=m.getModel("lineStyle").getLineStyle();var v=g.get("smooth");v&&!0===v&&(v=.4),i.setShape({smooth:v})}},i.inherits(l,r.Group);var c=o.extend({type:"pie",init:function(){var t=new r.Group;this._sectorGroup=t},render:function(t,e,n,r){if(!r||r.from!==this.uid){var o=t.getData(),s=this._data,u=this.group,c=e.get("animation"),h=!s,d=t.get("animationType"),f=t.get("animationTypeUpdate"),p=i.curry(a,this.uid,t,c,n),g=t.get("selectedMode");if(o.diff(s).add((function(t){var e=new l(o,t);h&&"scale"!==d&&e.eachChild((function(t){t.stopAnimation(!0)})),g&&e.on("click",p),o.setItemGraphicEl(t,e),u.add(e)})).update((function(t,e){var n=s.getItemGraphicEl(e);h||"transition"===f||n.eachChild((function(t){t.stopAnimation(!0)})),n.updateData(o,t),n.off("click"),g&&n.on("click",p),u.add(n),o.setItemGraphicEl(t,n)})).remove((function(t){var e=s.getItemGraphicEl(t);u.remove(e)})).execute(),c&&o.count()>0&&(h?"scale"!==d:"transition"!==f)){for(var m=o.getItemLayout(0),v=1;isNaN(m.startAngle)&&v<o.count();++v)m=o.getItemLayout(v);var y=Math.max(n.getWidth(),n.getHeight())/2,_=i.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(m.cx,m.cy,y,m.startAngle,m.clockwise,_,t,h))}else u.removeClipPath();this._data=o}},dispose:function(){},_createClipPath:function(t,e,n,i,o,a,s,l){var u=new r.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:o}}),c=l?r.initProps:r.updateProps;return c(u,{shape:{endAngle:i+(o?1:-1)*Math.PI*2}},s,a),u},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}}}),h=c;t.exports=h},69503:function(t,e,n){var i=n(43407),r=n(44261),o=r.parsePercent,a=Math.PI/180;function s(t,e,n,i,r,o,a,s,l,u){function c(e,n,i,r){for(var o=e;o<n;o++){if(t[o].y+i>l+a)break;if(t[o].y+=i,o>e&&o+1<n&&t[o+1].y>t[o].y+t[o].height)return void h(o,i/2)}h(n-1,i/2)}function h(e,n){for(var i=e;i>=0;i--){if(t[i].y-n<l)break;if(t[i].y-=n,i>0&&t[i].y>t[i-1].y+t[i-1].height)break}}function d(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("none"===t[s].labelAlignTo){var u=Math.abs(t[s].y-i),c=t[s].len,h=t[s].len2,d=u<r+c?Math.sqrt((r+c+h)*(r+c+h)-u*u):Math.abs(t[s].x-n);e&&d>=a&&(d=a-10),!e&&d<=a&&(d=a+10),t[s].x=n+d*o,a=d}}t.sort((function(t,e){return t.y-e.y}));for(var f,p=0,g=t.length,m=[],v=[],y=0;y<g;y++){if("outer"===t[y].position&&"labelLine"===t[y].labelAlignTo){var _=t[y].x-u;t[y].linePoints[1][0]+=_,t[y].x=u}f=t[y].y-p,f<0&&c(y,g,-f,r),p=t[y].y+t[y].height}a-p<0&&h(g-1,p-a);for(y=0;y<g;y++)t[y].y>=n?v.push(t[y]):m.push(t[y]);d(m,!1,e,n,i,r),d(v,!0,e,n,i,r)}function l(t,e,n,r,o,a,l,c){for(var h=[],d=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<t.length;g++)u(t[g])||(t[g].x<e?(f=Math.min(f,t[g].x),h.push(t[g])):(p=Math.max(p,t[g].x),d.push(t[g])));s(d,e,n,r,1,o,a,l,c,p),s(h,e,n,r,-1,o,a,l,c,f);for(g=0;g<t.length;g++){var m=t[g];if(!u(m)){var v=m.linePoints;if(v){var y,_="edge"===m.labelAlignTo,x=m.textRect.width;y=_?m.x<e?v[2][0]-m.labelDistance-l-m.labelMargin:l+o-m.labelMargin-v[2][0]-m.labelDistance:m.x<e?m.x-l-m.bleedMargin:l+o-m.x-m.bleedMargin,y<m.textRect.width&&(m.text=i.truncateText(m.text,y,m.font),"edge"===m.labelAlignTo&&(x=i.getWidth(m.text,m.font)));var b=v[1][0]-v[2][0];_?m.x<e?v[2][0]=l+m.labelMargin+x+m.labelDistance:v[2][0]=l+o-m.labelMargin-x-m.labelDistance:(m.x<e?v[2][0]=m.x+m.labelDistance:v[2][0]=m.x-m.labelDistance,v[1][0]=v[2][0]+b),v[1][1]=v[2][1]=m.y}}}}function u(t){return"center"===t.position}function c(t,e,n,r,s,u){var c,h,d=t.getData(),f=[],p=!1,g=(t.get("minShowLabelAngle")||0)*a;d.each((function(r){var a=d.getItemLayout(r),l=d.getItemModel(r),u=l.getModel("label"),m=u.get("position")||l.get("emphasis.label.position"),v=u.get("distanceToLabelLine"),y=u.get("alignTo"),_=o(u.get("margin"),n),x=u.get("bleedMargin"),b=u.getFont(),w=l.getModel("labelLine"),S=w.get("length");S=o(S,n);var A=w.get("length2");if(A=o(A,n),!(a.angle<g)){var M,C,I,T,E=(a.startAngle+a.endAngle)/2,D=Math.cos(E),P=Math.sin(E);c=a.cx,h=a.cy;var L,R=t.getFormattedLabel(r,"normal")||d.getName(r),O=i.getBoundingRect(R,b,T,"top"),k="inside"===m||"inner"===m;if("center"===m)M=a.cx,C=a.cy,T="center";else{var N=(k?(a.r+a.r0)/2*D:a.r*D)+c,F=(k?(a.r+a.r0)/2*P:a.r*P)+h;if(M=N+3*D,C=F+3*P,!k){var z=N+D*(S+e-a.r),B=F+P*(S+e-a.r),G=z+(D<0?-1:1)*A,V=B;M="edge"===y?D<0?s+_:s+n-_:G+(D<0?-v:v),C=V,I=[[N,F],[z,B],[G,V]]}T=k?"center":"edge"===y?D>0?"right":"left":D>0?"left":"right"}var W=u.get("rotate");L="number"===typeof W?W*(Math.PI/180):W?D<0?-E+Math.PI:-E:0,p=!!L,a.label={x:M,y:C,position:m,height:O.height,len:S,len2:A,linePoints:I,textAlign:T,verticalAlign:"middle",rotation:L,inside:k,labelDistance:v,labelAlignTo:y,labelMargin:_,bleedMargin:x,textRect:O,text:R,font:b},k||f.push(a.label)}})),!p&&t.get("avoidLabelOverlap")&&l(f,c,h,e,n,r,s,u)}t.exports=c},23219:function(t,e,n){var i=n(44261),r=i.parsePercent,o=i.linearMap,a=n(61570),s=n(69503),l=n(95289),u=2*Math.PI,c=Math.PI/180;function h(t,e){return a.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function d(t,e,n,i){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),a=h(t,n),d=t.get("center"),f=t.get("radius");l.isArray(f)||(f=[0,f]),l.isArray(d)||(d=[d,d]);var p=r(a.width,n.getWidth()),g=r(a.height,n.getHeight()),m=Math.min(p,g),v=r(d[0],p)+a.x,y=r(d[1],g)+a.y,_=r(f[0],m/2),x=r(f[1],m/2),b=-t.get("startAngle")*c,w=t.get("minAngle")*c,S=0;e.each(i,(function(t){!isNaN(t)&&S++}));var A=e.getSum(i),M=Math.PI/(A||S)*2,C=t.get("clockwise"),I=t.get("roseType"),T=t.get("stillShowZeroSum"),E=e.getDataExtent(i);E[0]=0;var D=u,P=0,L=b,R=C?1:-1;if(e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:v,cy:y,r0:_,r:I?NaN:x,viewRect:a});else{i="area"!==I?0===A&&T?M:t*M:u/S,i<w?(i=w,D-=w):P+=t;var r=L+R*i;e.setItemLayout(n,{angle:i,startAngle:L,endAngle:r,clockwise:C,cx:v,cy:y,r0:_,r:I?o(t,E,[_,x]):x,viewRect:a}),L=r}})),D<u&&S)if(D<=.001){var O=u/S;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=O,i.startAngle=b+R*n*O,i.endAngle=b+R*(n+1)*O}}))}else M=D/P,L=b,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===w?w:t*M;i.startAngle=L,i.endAngle=L+R*r,L+=R*r}}));s(t,x,a.width,a.height,a.x,a.y)}))}t.exports=d},47342:function(t,e,n){var i=n(89231);n(39253),n(820),n(84260);var r=n(5045),o=n(39784),a=n(43079),s=n(95633),l=n(7982);i.registerVisual(r("radar")),i.registerVisual(o("radar","circle")),i.registerLayout(a),i.registerProcessor(s("radar")),i.registerPreprocessor(l)},820:function(t,e,n){var i=n(33358),r=n(80565),o=n(95289),a=n(8595),s=a.encodeHTML,l=n(65840),u=i.extend({type:"series.radar",dependencies:["radar"],init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(o.bind(this.getData,this),o.bind(this.getRawData,this))},getInitialData:function(t,e){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t,e,n,i){var r=this.getData(),a=this.coordinateSystem,l=a.getIndicatorAxes(),u=this.getData().getName(t),c="html"===i?"<br/>":"\n";return s(""===u?this.name:u)+c+o.map(l,(function(e,n){var i=r.get(r.mapDimension(e.dim),t);return s(e.name+" : "+i)})).join(c)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(o.map(n.dimensions,(function(t){return e.mapDimension(t)})),t,!0),r=0,a=i.length;r<a;r++)if(!isNaN(i[r])){var s=n.getIndicatorAxes();return n.coordToPoint(s[r].dataToCoord(i[r]),r)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),c=u;t.exports=c},84260:function(t,e,n){var i=n(89231),r=n(76442),o=n(95289),a=n(22864);function s(t){return o.isArray(t)||(t=[+t,+t]),t}var l=i.extendChartView({type:"radar",render:function(t,e,n){var i=t.coordinateSystem,l=this.group,u=t.getData(),c=this._data;function h(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.getItemVisual(e,"color");if("none"!==n){var r=s(t.getItemVisual(e,"symbolSize")),o=a.createSymbol(n,-1,-1,2,2,i),l=t.getItemVisual(e,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2],rotation:l*Math.PI/180||0}),o}}function d(e,n,i,o,a,s){i.removeAll();for(var l=0;l<n.length-1;l++){var u=h(o,a);u&&(u.__dimIdx=l,e[l]?(u.attr("position",e[l]),r[s?"initProps":"updateProps"](u,{position:n[l]},t,a)):u.attr("position",n[l]),i.add(u))}}function f(t){return o.map(t,(function(t){return[i.cx,i.cy]}))}u.diff(c).add((function(e){var n=u.getItemLayout(e);if(n){var i=new r.Polygon,o=new r.Polyline,a={shape:{points:n}};i.shape.points=f(n),o.shape.points=f(n),r.initProps(i,a,t,e),r.initProps(o,a,t,e);var s=new r.Group,l=new r.Group;s.add(o),s.add(i),s.add(l),d(o.shape.points,n,l,u,e,!0),u.setItemGraphicEl(e,s)}})).update((function(e,n){var i=c.getItemGraphicEl(n),o=i.childAt(0),a=i.childAt(1),s=i.childAt(2),l={shape:{points:u.getItemLayout(e)}};l.shape.points&&(d(o.shape.points,l.shape.points,s,u,e,!1),r.updateProps(o,l,t),r.updateProps(a,l,t),u.setItemGraphicEl(e,i))})).remove((function(t){l.remove(c.getItemGraphicEl(t))})).execute(),u.eachItemGraphicEl((function(t,e){var n=u.getItemModel(e),i=t.childAt(0),a=t.childAt(1),s=t.childAt(2),c=u.getItemVisual(e,"color");l.add(t),i.useStyle(o.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),i.hoverStyle=n.getModel("emphasis.lineStyle").getLineStyle();var h=n.getModel("areaStyle"),d=n.getModel("emphasis.areaStyle"),f=h.isEmpty()&&h.parentModel.isEmpty(),p=d.isEmpty()&&d.parentModel.isEmpty();p=p&&f,a.ignore=f,a.useStyle(o.defaults(h.getAreaStyle(),{fill:c,opacity:.7})),a.hoverStyle=d.getAreaStyle();var g=n.getModel("itemStyle").getItemStyle(["color"]),m=n.getModel("emphasis.itemStyle").getItemStyle(),v=n.getModel("label"),y=n.getModel("emphasis.label");s.eachChild((function(t){t.setStyle(g),t.hoverStyle=o.clone(m);var n=u.get(u.dimensions[t.__dimIdx],e);(null==n||isNaN(n))&&(n=""),r.setLabelStyle(t.style,t.hoverStyle,v,y,{labelFetcher:u.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:n,autoColor:c,isRectText:!0})})),t.highDownOnUpdate=function(t,e){a.attr("ignore","emphasis"===e?p:f)},r.setHoverStyle(t)})),this._data=u},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=l},7982:function(t,e,n){var i=n(95289);function r(t){var e=t.polar;if(e){i.isArray(e)||(e=[e]);var n=[];i.each(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],i.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}i.each(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}t.exports=r},43079:function(t,e,n){var i=n(95289);function r(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var s=r.getIndicatorAxes();i.each(s,(function(t,i){e.each(e.mapDimension(s[i].dim),(function(t,e){n[e]=n[e]||[];var s=r.dataToPoint(t,i);n[e][i]=o(s)?s:a(r)}))})),e.each((function(t){var s=i.find(n[t],(function(t){return o(t)}))||a(r);n[t].push(s.slice()),e.setItemLayout(t,n[t])}))}}))}function o(t){return!isNaN(t[0])&&!isNaN(t[1])}function a(t){return[t.cx,t.cy]}t.exports=r},83761:function(t,e,n){var i=n(89231);n(26588),n(21932),n(56267);var r=n(42639),o=n(5221);i.registerLayout(r),i.registerVisual(o)},26588:function(t,e,n){var i=n(33358),r=n(65354),o=n(8595),a=o.encodeHTML,s=n(40590),l=n(65523),u=(l.__DEV__,i.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(t,e){for(var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels,a=this.levelModels={},l=0;l<o.length;l++)null!=o[l].depth&&o[l].depth>=0&&(a[o[l].depth]=new s(o[l],this,e));if(i&&n){var u=r(i,n,this,!0,c);return u.data}function c(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth,r=n.levelModels[i];return r||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout().depth,o=n.levelModels[r];return o||this.parentModel})),t}))}},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getDataParams(t,n),r=i.data,o=r.source+" -- "+r.target;return i.value&&(o+=" : "+i.value),a(o)}if("node"===n){var s=this.getGraph().getNodeByIndex(t),l=s.getLayout().value,c=this.getDataParams(t,n).data.name;if(l)o=c+" : "+l;return a(o)}return u.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=u.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var i=this.getGraph().getNodeByIndex(t),r=i.getLayout().value;n.value=r}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),c=u;t.exports=c},21932:function(t,e,n){var i=n(76442),r=n(89231),o=n(95289),a=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],u=["emphasis","lineStyle","opacity"];function c(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function h(t,e,n){var i=t.getGraphicEl(),r=c(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",r)}))}function d(t,e){var n=c(t,e),i=t.getGraphicEl();i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var f=i.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),p=r.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(t,e,n){var r=this,o=t.getGraph(),a=this.group,s=t.layoutInfo,l=s.width,u=s.height,c=t.getData(),h=t.getData("edge"),d=t.get("orient");this._model=t,a.removeAll(),a.attr("position",[s.x,s.y]),o.eachEdge((function(e){var n=new f;n.dataIndex=e.dataIndex,n.seriesIndex=t.seriesIndex,n.dataType="edge";var r,o,s,c,p,g,m,v,y=e.getModel("lineStyle"),_=y.get("curveness"),x=e.node1.getLayout(),b=e.node1.getModel(),w=b.get("localX"),S=b.get("localY"),A=e.node2.getLayout(),M=e.node2.getModel(),C=M.get("localX"),I=M.get("localY"),T=e.getLayout();switch(n.shape.extent=Math.max(1,T.dy),n.shape.orient=d,"vertical"===d?(r=(null!=w?w*l:x.x)+T.sy,o=(null!=S?S*u:x.y)+x.dy,s=(null!=C?C*l:A.x)+T.ty,c=null!=I?I*u:A.y,p=r,g=o*(1-_)+c*_,m=s,v=o*_+c*(1-_)):(r=(null!=w?w*l:x.x)+x.dx,o=(null!=S?S*u:x.y)+T.sy,s=null!=C?C*l:A.x,c=(null!=I?I*u:A.y)+T.ty,p=r*(1-_)+s*_,g=o,m=r*_+s*(1-_),v=c),n.setShape({x1:r,y1:o,x2:s,y2:c,cpx1:p,cpy1:g,cpx2:m,cpy2:v}),n.setStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color");break;case"target":n.style.fill=e.node2.getVisual("color");break}i.setHoverStyle(n,e.getModel("emphasis.lineStyle").getItemStyle()),a.add(n),h.setItemGraphicEl(e.dataIndex,n)})),o.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),o=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),f=new i.Rect({shape:{x:null!=o?o*l:n.x,y:null!=s?s*u:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle()}),p=e.getModel("emphasis.itemStyle").getItemStyle();i.setLabelStyle(f.style,p,h,d,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),f.setStyle("fill",e.getVisual("color")),i.setHoverStyle(f,p),a.add(f),c.setItemGraphicEl(e.dataIndex,f),f.dataType="node"})),c.eachItemGraphicEl((function(e,i){var o=c.getItemModel(i);o.get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/l,localY:this.shape.y/u})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(n)}))})),h.eachItemGraphicEl((function(e,i){var o=h.getItemModel(i);e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(n)}))})),!this._data&&t.get("animation")&&a.setClipPath(g(a.getBoundingRect(),t,(function(){a.removeClipPath()}))),this._data=t.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,n,i){var r=t.getData(),c=r.graph,f=i.dataIndex,p=r.getItemModel(f),g=i.edgeDataIndex;if(null!=f||null!=g){var m=c.getNodeByIndex(f),v=c.getEdgeByIndex(g);if(c.eachNode((function(t){h(t,a,.1)})),c.eachEdge((function(t){h(t,l,.1)})),m){d(m,s);var y=p.get("focusNodeAdjacency");"outEdges"===y?o.each(m.outEdges,(function(t){t.dataIndex<0||(d(t,u),d(t.node2,s))})):"inEdges"===y?o.each(m.inEdges,(function(t){t.dataIndex<0||(d(t,u),d(t.node1,s))})):"allEdges"===y&&o.each(m.edges,(function(t){t.dataIndex<0||(d(t,u),t.node1!==m&&d(t.node1,s),t.node2!==m&&d(t.node2,s))}))}v&&(d(v,u),d(v.node1,s),d(v.node2,s))}},unfocusNodeAdjacency:function(t,e,n,i){var r=t.getGraph();r.eachNode((function(t){h(t,a)})),r.eachEdge((function(t){h(t,l)}))}});function g(t,e,n){var r=new i.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return i.initProps(r,{shape:{width:t.width+20}},e,n),r}t.exports=p},56267:function(t,e,n){var i=n(89231);n(38615),i.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},42639:function(t,e,n){var i=n(61570),r=n(95289),o=n(63199),a=o.groupData;function s(t,e,n){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),o=l(t,e);t.layoutInfo=o;var a=o.width,s=o.height,h=t.getGraph(),d=h.nodes,f=h.edges;c(d);var p=r.filter(d,(function(t){return 0===t.getLayout().value})),g=0!==p.length?0:t.get("layoutIterations"),m=t.get("orient"),v=t.get("nodeAlign");u(d,f,n,i,a,s,g,m,v)}))}function l(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t,e,n,i,r,o,a,s,l){h(t,e,n,r,o,s,l),m(t,e,o,r,i,a,s),E(t,s)}function c(t){r.each(t,(function(t){var e=I(t.outEdges,C),n=I(t.inEdges,C),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function h(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0,p=0;p<e.length;p++)s[p]=1;for(p=0;p<t.length;p++)l[p]=t[p].inEdges.length,0===l[p]&&u.push(t[p]);var m=-1;while(u.length){for(var v=0;v<u.length;v++){var y=u[v],_=y.hostGraph.data.getRawDataItem(y.dataIndex),x=null!=_.depth&&_.depth>=0;x&&_.depth>m&&(m=_.depth),y.setLayout({depth:x?_.depth:h},!0),"vertical"===o?y.setLayout({dy:n},!0):y.setLayout({dx:n},!0);for(var b=0;b<y.outEdges.length;b++){var w=y.outEdges[b],S=e.indexOf(w);s[S]=0;var A=w.node2,M=t.indexOf(A);0===--l[M]&&c.indexOf(A)<0&&c.push(A)}}++h,u=c,c=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var C=m>h-1?m:h-1;a&&"left"!==a&&f(t,a,o,C);d="vertical"===o?(r-n)/C:(i-n)/C;g(t,d,o)}function d(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function f(t,e,n,i){if("right"===e){var o=[],a=t,s=0;while(a.length){for(var l=0;l<a.length;l++){var u=a[l];u.setLayout({skNodeHeight:s},!0);for(var c=0;c<u.inEdges.length;c++){var h=u.inEdges[c];o.indexOf(h.node1)<0&&o.push(h.node1)}}a=o,o=[],++s}r.each(t,(function(t){d(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&p(t,i)}function p(t,e){r.each(t,(function(t){d(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function g(t,e,n){r.each(t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}function m(t,e,n,i,r,o,a){var s=v(t,a);y(s,e,n,i,r,a),_(s,r,n,i,a);for(var l=1;o>0;o--)l*=.99,x(s,l,a),_(s,r,n,i,a),T(s,l,a),_(s,r,n,i,a)}function v(t,e){var n=[],i="vertical"===e?"y":"x",o=a(t,(function(t){return t.getLayout()[i]}));return o.keys.sort((function(t,e){return t-e})),r.each(o.keys,(function(t){n.push(o.buckets.get(t))})),n}function y(t,e,n,i,o,a){var s=1/0;r.each(t,(function(t){var e=t.length,l=0;r.each(t,(function(t){l+=t.getLayout().value}));var u="vertical"===a?(i-(e-1)*o)/l:(n-(e-1)*o)/l;u<s&&(s=u)})),r.each(t,(function(t){r.each(t,(function(t,e){var n=t.getLayout().value*s;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),r.each(e,(function(t){var e=+t.getValue()*s;t.setLayout({dy:e},!0)}))}function _(t,e,n,i,o){var a="vertical"===o?"x":"y";r.each(t,(function(t){var r,s,l;t.sort((function(t,e){return t.getLayout()[a]-e.getLayout()[a]}));for(var u=0,c=t.length,h="vertical"===o?"dx":"dy",d=0;d<c;d++)s=t[d],l=u-s.getLayout()[a],l>0&&(r=s.getLayout()[a]+l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),u=s.getLayout()[a]+s.getLayout()[h]+e;var f="vertical"===o?i:n;if(l=u-e-f,l>0)for(r=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0),u=r,d=c-2;d>=0;--d)s=t[d],l=s.getLayout()[a]+s.getLayout()[h]+e-u,l>0&&(r=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),u=s.getLayout()[a]}))}function x(t,e,n){r.each(t.slice().reverse(),(function(t){r.each(t,(function(t){if(t.outEdges.length){var i=I(t.outEdges,b,n)/I(t.outEdges,C,n);if(isNaN(i)){var r=t.outEdges.length;i=r?I(t.outEdges,w,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-M(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-M(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function b(t,e){return M(t.node2,e)*t.getValue()}function w(t,e){return M(t.node2,e)}function S(t,e){return M(t.node1,e)*t.getValue()}function A(t,e){return M(t.node1,e)}function M(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function C(t){return t.getValue()}function I(t,e,n){var i=0,r=t.length,o=-1;while(++o<r){var a=+e.call(t,t[o],n);isNaN(a)||(i+=a)}return i}function T(t,e,n){r.each(t,(function(t){r.each(t,(function(t){if(t.inEdges.length){var i=I(t.inEdges,S,n)/I(t.inEdges,C,n);if(isNaN(i)){var r=t.inEdges.length;i=r?I(t.inEdges,A,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-M(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-M(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function E(t,e){var n="vertical"===e?"x":"y";r.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),r.each(t,(function(t){var e=0,n=0;r.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),r.each(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}t.exports=s},5221:function(t,e,n){var i=n(71576),r=n(95289);function o(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes;if(n.length){var o=1/0,a=-1/0;r.each(n,(function(t){var e=t.getLayout().value;e<o&&(o=e),e>a&&(a=e)})),r.each(n,(function(e){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}),r=n.mapValueToVisual(e.getLayout().value),s=e.getModel().get("itemStyle.color");null!=s?e.setVisual("color",s):e.setVisual("color",r)}))}}))}t.exports=o},15980:function(t,e,n){var i=n(89231);n(21620),n(8452);var r=n(39784),o=n(32493);n(48807),i.registerVisual(r("scatter","circle")),i.registerLayout(o("scatter"))},21620:function(t,e,n){var i=n(19554),r=n(33358),o=r.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});t.exports=o},8452:function(t,e,n){var i=n(89231),r=n(52033),o=n(18790),a=n(32493);i.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=a().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(t,e){var n=this._symbolDraw,i=e.pipelineContext,a=i.large;return n&&a===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=a?new o:new r,this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},17164:function(t,e,n){var i=n(89231),r=n(95289);n(13762),n(93102),n(21665);var o=n(5045),a=n(56437),s=n(95633);i.registerVisual(r.curry(o,"sunburst")),i.registerLayout(r.curry(a,"sunburst")),i.registerProcessor(r.curry(s,"sunburst"))},86129:function(t,e,n){var i=n(95289),r=n(76442),o={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},a=2,s=4;function l(t,e,n){r.Group.call(this);var i=new r.Sector({z2:a});i.seriesIndex=e.seriesIndex;var o=new r.Text({z2:s,silent:t.getModel("label").get("silent")});function l(){o.ignore=o.hoverIgnore}function u(){o.ignore=o.normalIgnore}this.add(i),this.add(o),this.updateData(!0,t,"normal",e,n),this.on("emphasis",l).on("normal",u).on("mouseover",l).on("mouseout",u)}var u=l.prototype;u.updateData=function(t,e,n,o,a){this.node=e,e.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=e.dataIndex;var l=e.getModel(),u=e.getLayout(),c=i.extend({},u);c.label=null;var d=h(e,o,a);p(e,o,d);var f,g=l.getModel("itemStyle").getItemStyle();if("normal"===n)f=g;else{var m=l.getModel(n+".itemStyle").getItemStyle();f=i.merge(m,g)}f=i.defaults({lineJoin:"bevel",fill:f.fill||d},f),t?(s.setShape(c),s.shape.r=u.r0,r.updateProps(s,{shape:{r:u.r}},o,e.dataIndex),s.useStyle(f)):"object"===typeof f.fill&&f.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(r.updateProps(s,{shape:c},o),s.useStyle(f)):r.updateProps(s,{shape:c,style:f},o),this._updateLabel(o,d,n);var v=l.getShallow("cursor");if(v&&s.attr("cursor",v),t){var y=o.getShallow("highlightPolicy");this._initEvents(s,e,o,y)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,r.setHoverStyle(this)},u.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(n){n.piece&&(e.node===n?n.piece.updateData(!1,n,"emphasis"):f(n,e.node,t)?n.piece.childAt(0).trigger("highlight"):t!==o.NONE&&n.piece.childAt(0).trigger("downplay"))}))},u.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},u.onHighlight=function(){this.updateData(!1,this.node,"highlight")},u.onDownplay=function(){this.updateData(!1,this.node,"downplay")},u._updateLabel=function(t,e,n){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===n||"emphasis"===n?a:o.getModel(n+".label"),l=o.getModel("emphasis.label"),u=s.get("formatter"),c=u?n:"normal",h=i.retrieve(t.getFormattedLabel(this.node.dataIndex,c,null,null,"label"),this.node.name);!1===I("show")&&(h="");var d=this.node.getLayout(),f=s.get("minAngle");null==f&&(f=a.get("minAngle")),f=f/180*Math.PI;var p=d.endAngle-d.startAngle;null!=f&&Math.abs(p)<f&&(h="");var g=this.childAt(1);r.setLabelStyle(g.style,g.hoverStyle||{},a,l,{defaultText:s.getShallow("show")?h:null,autoColor:e,useInsideStyle:!0});var m,v=(d.startAngle+d.endAngle)/2,y=Math.cos(v),_=Math.sin(v),x=I("position"),b=I("distance")||0,w=I("align");"outside"===x?(m=d.r+b,w=v>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(m=d.r0+b,v>Math.PI/2&&(w="right")):"right"===w&&(m=d.r-b,v>Math.PI/2&&(w="left")):(m=(d.r+d.r0)/2,w="center"),g.attr("style",{text:h,textAlign:w,textVerticalAlign:I("verticalAlign")||"middle",opacity:I("opacity")});var S=m*y+d.cx,A=m*_+d.cy;g.attr("position",[S,A]);var M=I("rotate"),C=0;function I(t){var e=s.get(t);return null==e?a.get(t):e}"radial"===M?(C=-v,C<-Math.PI/2&&(C+=Math.PI)):"tangential"===M?(C=Math.PI/2-v,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):"number"===typeof M&&(C=M*Math.PI/180),g.attr("rotation",C)},u._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",l)},i.inherits(l,r.Group);var c=l;function h(t,e,n){var i=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(i=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(i)return i;if(0===t.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[d(t)%a],o}function d(t){var e=t;while(e.depth>1)e=e.parentNode;var n=t.getAncestors()[0];return i.indexOf(n.children,e)}function f(t,e,n){return n!==o.NONE&&(n===o.SELF?t===e:n===o.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function p(t,e,n){var i=e.getData();i.setItemVisual(t.dataIndex,"color",n)}t.exports=c},13762:function(t,e,n){var i=n(95289),r=n(33358),o=n(35288),a=n(40590),s=n(80047),l=s.wrapTreePathInfo,u=r.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var n={name:t.name,children:t.data};c(n);var r=i.map(t.levels||[],(function(t){return new a(t,this,e)}),this),s=o.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=r[n.depth];return i&&(t.parentModel=i),t}))}return s.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=l(n,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function c(t){var e=0;i.each(t.children,(function(t){c(t);var n=t.value;i.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i.isArray(t.value)?t.value[0]=n:t.value=n}t.exports=u},93102:function(t,e,n){var i=n(95289),r=n(67955),o=n(86129),a=n(1032),s=n(8595),l=s.windowOpen,u="sunburstRootToNode",c=r.extend({type:"sunburst",init:function(){},render:function(t,e,n,r){var s=this;this.seriesModel=t,this.api=n,this.ecModel=e;var l=t.getData(),u=l.tree.root,c=t.getViewRoot(),h=this.group,d=t.get("renderLabelForZeroData"),f=[];c.eachNode((function(t){f.push(t)}));var p=this._oldChildren||[];if(v(f,p),x(u,c),r&&r.highlight&&r.highlight.piece){var g=t.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(g)}else if(r&&r.unhighlight){var m=this.virtualPiece;!m&&u.children.length&&(m=u.children[0].piece),m&&m.onNormal()}function v(t,e){function n(t){return t.getId()}function r(n,i){var r=null==n?null:t[n],o=null==i?null:e[i];y(r,o)}0===t.length&&0===e.length||new a(e,t,n,n).add(r).update(r).remove(i.curry(r,null)).execute()}function y(n,i){if(d||!n||n.getValue()||(n=null),n!==u&&i!==u)if(i&&i.piece)n?(i.piece.updateData(!1,n,"normal",t,e),l.setItemGraphicEl(n.dataIndex,i.piece)):_(i);else if(n){var r=new o(n,t,e);h.add(r),l.setItemGraphicEl(n.dataIndex,r)}}function _(t){t&&t.piece&&(h.remove(t.piece),t.piece=null)}function x(n,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",t,e):(s.virtualPiece=new o(n,t,e),h.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var r=function(t){s._rootToNode(i.parentNode)};i.piece._onclickEvent=r,s.virtualPiece.on("click",r)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=f},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";l(a,s)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:u,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}}}),h=c;t.exports=h},21665:function(t,e,n){var i=n(89231),r=n(80047),o="sunburstRootToNode";i.registerAction({type:o,update:"updateView"},(function(t,e){function n(e,n){var i=r.retrieveTargetInfo(t,[o],e);if(i){var a=e.getViewRoot();a&&(t.direction=r.aboveViewRoot(a,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)}));var a="sunburstHighlight";i.registerAction({type:a,update:"updateView"},(function(t,e){function n(e,n){var i=r.retrieveTargetInfo(t,[a],e);i&&(t.highlight=i.node)}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)}));var s="sunburstUnhighlight";i.registerAction({type:s,update:"updateView"},(function(t,e){function n(e,n){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)}))},56437:function(t,e,n){var i=n(44261),r=i.parsePercent,o=n(95289),a=Math.PI/180;function s(t,e,n,i){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");o.isArray(i)||(i=[0,i]),o.isArray(e)||(e=[e,e]);var s=n.getWidth(),u=n.getHeight(),c=Math.min(s,u),h=r(e[0],s),d=r(e[1],u),f=r(i[0],c/2),p=r(i[1],c/2),g=-t.get("startAngle")*a,m=t.get("minAngle")*a,v=t.getData().tree.root,y=t.getViewRoot(),_=y.depth,x=t.get("sort");null!=x&&l(y,x);var b=0;o.each(y.children,(function(t){!isNaN(t.getValue())&&b++}));var w=y.getValue(),S=Math.PI/(w||b)*2,A=y.depth>0,M=y.height-(A?-1:1),C=(p-f)/(M||1),I=t.get("clockwise"),T=t.get("stillShowZeroSum"),E=I?1:-1,D=function(t,e){if(t){var n=e;if(t!==v){var i=t.getValue(),a=0===w&&T?S:i*S;a<m&&(a=m),n=e+E*a;var s=t.depth-_-(A?-1:1),l=f+C*s,u=f+C*(s+1),p=t.getModel();null!=p.get("r0")&&(l=r(p.get("r0"),c/2)),null!=p.get("r")&&(u=r(p.get("r"),c/2)),t.setLayout({angle:a,startAngle:e,endAngle:n,clockwise:I,cx:h,cy:d,r0:l,r:u})}if(t.children&&t.children.length){var g=0;o.each(t.children,(function(t){g+=D(t,e+g)}))}return n-e}};if(A){var P=f,L=f+C,R=2*Math.PI;v.setLayout({angle:R,startAngle:g,endAngle:g+R,clockwise:I,cx:h,cy:d,r0:P,r:L})}D(y,g)}))}function l(t,e){var n=t.children||[];t.children=u(n,e),n.length&&o.each(t.children,(function(t){l(t,e)}))}function u(t,e){if("function"===typeof e)return t.sort(e);var n="asc"===e;return t.sort((function(t,e){var i=(t.getValue()-e.getValue())*(n?1:-1);return 0===i?(t.dataIndex-e.dataIndex)*(n?-1:1):i}))}t.exports=s},77249:function(t,e,n){var i=n(89231);n(27220),n(75772),n(29388);var r=n(61615),o=n(50501),a=n(95633);i.registerLayout(r),i.registerVisual(o),i.registerProcessor(a("themeRiver"))},75772:function(t,e,n){var i=n(33358),r=n(29966),o=n(99535),a=o.getDimensionTypeByAxis,s=n(5628),l=n(95289),u=n(63199),c=u.groupData,h=n(8595),d=h.encodeHTML,f=n(65840),p=2,g=i.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){g.superApply(this,"init",arguments),this.legendVisualProvider=new f(l.bind(this.getData,this),l.bind(this.getRawData,this))},fixData:function(t){var e=t.length,n={},i=c(t,(function(t){return n.hasOwnProperty(t[0])||(n[t[0]]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0];n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[],t[e][0]=u,t[e][1]=0,t[e][2]=s,e++)}return t},getInitialData:function(t,e){for(var n=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],i=n.get("type"),o=l.filter(t.data,(function(t){return void 0!==t[2]})),u=this.fixData(o||[]),c=[],h=this.nameMap=l.createHashMap(),d=0,f=0;f<u.length;++f)c.push(u[f][p]),h.get(u[f][p])||(h.set(u[f][p],d),d++);var g=r(u,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:a(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),m=new s(g,this);return m.initData(u),m},getLayerSeries:function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=c(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),a.push({name:n,indices:e})})),a},getAxisTooltipData:function(t,e,n){l.isArray(t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,u=0;u<s;++u){for(var c=Number.MAX_VALUE,h=-1,d=o[u].indices.length,f=0;f<d;++f){var p=r.get(t[0],o[u].indices[f]),g=Math.abs(p-e);g<=c&&(i=p,c=g,h=o[u].indices[f])}a.push(h)}return{dataIndices:a,nestestValue:i}},formatTooltip:function(t){var e=this.getData(),n=e.getName(t),i=e.get(e.mapDimension("value"),t);return(isNaN(i)||null==i)&&(i="-"),d(n+" : "+i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),m=g;t.exports=m},29388:function(t,e,n){var i=n(89231),r=n(6667),o=r.Polygon,a=n(76442),s=n(95289),l=s.bind,u=s.extend,c=n(1032),h=i.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,n){var i=t.getData(),r=this.group,s=t.getLayerSeries(),h=i.getLayout("layoutInfo"),f=h.rect,p=h.boundaryGap;function g(t){return t.name}r.attr("position",[0,f.y+p[0]]);var m=new c(this._layersSeries||[],s,g,g),v={};function y(e,n,l){var c=this._layers;if("remove"!==e){for(var h,f,p,g=[],m=[],y=s[n].indices,_=0;_<y.length;_++){var x=i.getItemLayout(y[_]),b=x.x,w=x.y0,S=x.y;g.push([b,w]),m.push([b,w+S]),h=i.getItemVisual(y[_],"color")}var A=i.getItemLayout(y[0]),M=i.getItemModel(y[_-1]),C=M.getModel("label"),I=C.get("margin");if("add"===e){var T=v[n]=new a.Group;f=new o({shape:{points:g,stackedOnPoints:m,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new a.Text({style:{x:A.x-I,y:A.y0+A.y/2}}),T.add(f),T.add(p),r.add(T),f.setClipPath(d(f.getBoundingRect(),t,(function(){f.removeClipPath()})))}else{T=c[l];f=T.childAt(0),p=T.childAt(1),r.add(T),v[n]=T,a.updateProps(f,{shape:{points:g,stackedOnPoints:m}},t),a.updateProps(p,{style:{x:A.x-I,y:A.y0+A.y/2}},t)}var E=M.getModel("emphasis.itemStyle"),D=M.getModel("itemStyle");a.setTextStyle(p.style,C,{text:C.get("show")?t.getFormattedLabel(y[_-1],"normal")||i.getName(y[_-1]):null,textVerticalAlign:"middle"}),f.setStyle(u({fill:h},D.getItemStyle(["color"]))),a.setHoverStyle(f,E.getItemStyle())}else r.remove(c[n])}m.add(l(y,this,"add")).update(l(y,this,"update")).remove(l(y,this,"remove")).execute(),this._layersSeries=s,this._layers=v},dispose:function(){}});function d(t,e,n){var i=new a.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return a.initProps(i,{shape:{width:t.width+20,height:t.height+20}},e,n),i}t.exports=h},61615:function(t,e,n){var i=n(95289),r=n(44261);function o(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,"horizontal"===l.orient){s[0]=r.parsePercent(s[0],o.height),s[1]=r.parsePercent(s[1],o.height);var u=o.height-s[0]-s[1];a(e,t,u)}else{s[0]=r.parsePercent(s[0],o.width),s[1]=r.parsePercent(s[1],o.width);var c=o.width-s[0]-s[1];a(e,t,c)}e.setLayout("layoutInfo",i)}))}function a(t,e,n){if(t.count())for(var r,o=e.coordinateSystem,a=e.getLayerSeries(),l=t.mapDimension("single"),u=t.mapDimension("value"),c=i.map(a,(function(e){return i.map(e.indices,(function(e){var n=o.dataToPoint(t.get(l,e));return n[1]=t.get(u,e),n}))})),h=s(c),d=h.y0,f=n/h.max,p=a.length,g=a[0].indices.length,m=0;m<g;++m){r=d[m]*f,t.setItemLayout(a[0].indices[m],{layerIndex:0,x:c[0][m][0],y0:r,y:c[0][m][1]*f});for(var v=1;v<p;++v)r+=c[v-1][m][1]*f,t.setItemLayout(a[v].indices[m],{layerIndex:v,x:c[v][m][0],y0:r,y:c[v][m][1]*f})}}function s(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a={},s=0;s<n;++s){for(var l=0,u=0;l<e;++l)u+=t[l][s][1];u>o&&(o=u),i.push(u)}for(var c=0;c<n;++c)r[c]=(o-i[c])/2;o=0;for(var h=0;h<n;++h){var d=i[h]+r[h];d>o&&(o=d)}return a.y0=r,a.max=o,a}t.exports=o},50501:function(t,e,n){var i=n(95289),r=i.createHashMap;function o(t){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.getRawData(),i=t.get("color"),o=r();e.each((function(t){o.set(e.getRawIndex(t),t)})),n.each((function(r){var a=n.getName(r),s=i[(t.nameMap.get(a)-1)%i.length];n.setItemVisual(r,"color",s);var l=o.get(r);null!=l&&e.setItemVisual(l,"color",s)}))}))}t.exports=o},75868:function(t,e,n){var i=n(89231);n(46526),n(80898),n(68309);var r=n(39784),o=n(3153);i.registerVisual(r("tree","circle")),i.registerLayout(o)},46526:function(t,e,n){var i=n(33358),r=n(35288),o=n(8595),a=o.encodeHTML,s=n(40590),l=i.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new s(n,this,this.ecModel),o=r.createTree(e,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=o.getNodeByDataIndex(e);return n.children.length&&n.isExpand||(t.parentModel=i),t}))}var l=0;o.eachNode("preorder",(function(t){t.depth>l&&(l=t.depth)}));var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=c})),o.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),o=i.name;while(i&&i!==n)o=i.parentNode.name+"."+o,i=i.parentNode;return a(o+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});t.exports=l},80898:function(t,e,n){var i=n(95289),r=n(76442),o=n(88747),a=n(73917),s=a.radialCoordinate,l=n(89231),u=n(66346),c=n(92394),h=n(43173),d=n(95441),f=n(47114),p=f.onIrrelevantElement,g=n(65523),m=(g.__DEV__,n(44261)),v=m.parsePercent,y=r.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=v(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var f=n[d];t.moveTo(f[0],f[1]),h[l]=f[l],t.lineTo(h[0],h[1])}}}),_=l.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new r.Group,this._controller=new d(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,n,i){var r=t.getData(),o=t.layoutInfo,a=this._mainGroup,s=t.get("layout");"radial"===s?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(t,o,s),this._updateController(t,e,n);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,edgeShape:t.get("edgeShape"),edgeForkPosition:t.get("edgeForkPosition"),orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add((function(e){x(r,e)&&w(r,e,null,a,t,u)})).update((function(e,n){var i=l.getItemGraphicEl(n);x(r,e)?w(r,e,i,a,t,u):i&&A(l,n,i,a,t,u)})).remove((function(e){var n=l.getItemGraphicEl(e);n&&A(l,e,n,a,t,u)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&r.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),n=[];e.each((function(t){var i=e.getItemLayout(t);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])}));var i=[],r=[];u.fromPoints(n,i,r);var o=this._min,a=this._max;r[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,r[0]=a?a[0]:r[0]+1),r[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,r[1]=a?a[1]:r[1]+1);var s=t.coordinateSystem=new c;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=i,this._max=r},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,o=this.group;i.setPointerChecker((function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!p(e,n,t)})),i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){h.updateViewOnPan(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}),this).on("zoom",(function(e){h.updateViewOnZoom(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)}),this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl((function(t,e){t.attr("scale",i)}))},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,r=i&&i[0]||1,o=e.getZoom(),a=(o-1)*n+1;return a/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function x(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function b(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function w(t,e,n,i,a,s){var l=!n,u=t.tree.getNodeByDataIndex(e),c=u.getModel(),h=(s=b(u,c,s),t.tree.root),d=u.parentNode===h?u:u.parentNode||u,f=t.getItemGraphicEl(d.dataIndex),p=d.getLayout(),g=f?{x:f.position[0],y:f.position[1],rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,m=u.getLayout();l?(n=new o(t,e,s),n.attr("position",[g.x,g.y])):n.updateData(t,e,s),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=m.rawX,n.__radialRawY=m.rawY,i.add(n),t.setItemGraphicEl(e,n),r.updateProps(n,{position:[m.x,m.y]},a);var v=n.getSymbolPath();if("radial"===s.layout){var y,_,x=h.children[0],w=x.getLayout(),A=x.children.length;if(m.x===w.x&&!0===u.isExpand){var M={};M.x=(x.children[0].getLayout().x+x.children[A-1].getLayout().x)/2,M.y=(x.children[0].getLayout().y+x.children[A-1].getLayout().y)/2,y=Math.atan2(M.y-w.y,M.x-w.x),y<0&&(y=2*Math.PI+y),_=M.x<w.x,_&&(y-=Math.PI)}else y=Math.atan2(m.y-w.y,m.x-w.x),y<0&&(y=2*Math.PI+y),0===u.children.length||0!==u.children.length&&!1===u.isExpand?(_=m.x<w.x,_&&(y-=Math.PI)):(_=m.x>w.x,_||(y-=Math.PI));var C=_?"left":"right",I=s.labelModel.get("rotate"),T=I*(Math.PI/180);v.setStyle({textPosition:s.labelModel.get("position")||C,textRotation:null==I?-y:T,textOrigin:"center",verticalAlign:"middle"})}S(a,u,h,n,g,p,m,i,s)}function S(t,e,n,o,a,s,l,u,c){var h=c.edgeShape,d=o.__edge;if("curve"===h)e.parentNode&&e.parentNode!==n&&(d||(d=o.__edge=new r.BezierCurve({shape:M(c,a,a),style:i.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),r.updateProps(d,{shape:M(c,s,l),style:i.defaults({opacity:1},c.lineStyle)},t));else if("polyline"===h&&"orthogonal"===c.layout&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var f=e.children,p=[],g=0;g<f.length;g++){var m=f[g].getLayout();p.push([m.x,m.y])}d||(d=o.__edge=new y({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:c.orient,forkPosition:c.edgeForkPosition},style:i.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),r.updateProps(d,{shape:{parentPoint:[l.x,l.y],childPoints:p},style:i.defaults({opacity:1},c.lineStyle)},t)}u.add(d)}function A(t,e,n,i,o,a){var s,l=t.tree.getNodeByDataIndex(e),u=t.tree.root,c=l.getModel(),h=(a=b(l,c,a),l.parentNode===u?l:l.parentNode||l),d=a.edgeShape;while(s=h.getLayout(),null==s)h=h.parentNode===u?h:h.parentNode||h;r.updateProps(n,{position:[s.x+1,s.y+1]},o,(function(){i.remove(n),t.setItemGraphicEl(e,null)})),n.fadeOut(null,{keepLabel:!0});var f=t.getItemGraphicEl(h.dataIndex),p=f.__edge,g=n.__edge||(!1===h.isExpand||1===h.children.length?p:void 0);d=a.edgeShape;g&&("curve"===d?r.updateProps(g,{shape:M(a,s,s),style:{opacity:0}},o,(function(){i.remove(g)})):"polyline"===d&&"orthogonal"===a.layout&&r.updateProps(g,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},o,(function(){i.remove(g)})))}function M(t,e,n){var i,r,o,a,l,u,c,h,d=t.orient;if("radial"===t.layout){l=e.rawX,c=e.rawY,u=n.rawX,h=n.rawY;var f=s(l,c),p=s(l,c+(h-c)*t.curvature),g=s(u,h+(c-h)*t.curvature),m=s(u,h);return{x1:f.x,y1:f.y,x2:m.x,y2:m.y,cpx1:p.x,cpy1:p.y,cpx2:g.x,cpy2:g.y}}return l=e.x,c=e.y,u=n.x,h=n.y,"LR"!==d&&"RL"!==d||(i=l+(u-l)*t.curvature,r=c,o=u+(l-u)*t.curvature,a=h),"TB"!==d&&"BT"!==d||(i=l,r=c+(h-c)*t.curvature,o=u,a=h+(c-h)*t.curvature),{x1:l,y1:c,x2:u,y2:h,cpx1:i,cpy1:r,cpx2:o,cpy2:a}}t.exports=_},73917:function(t,e,n){var i=n(61570);function r(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var e,n,i=[t];while(e=i.pop())if(n=e.children,e.isExpand&&n.length)for(var r=n.length,o=r-1;o>=0;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}function o(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){c(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=h(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function a(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function s(t){return arguments.length?t:m}function l(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n}function u(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function c(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function h(t,e,n,i){if(e){var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=d(s),o=f(o),s&&o){r=d(r),a=f(a),r.hierNode.ancestor=t;var m=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);m>0&&(g(p(s,t,n),t,m),u+=m,l+=m),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!d(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!f(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function d(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function f(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function p(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function g(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function m(t,e){return t.parentNode===e.parentNode?1:2}e.init=r,e.firstWalk=o,e.secondWalk=a,e.separation=s,e.radialCoordinate=l,e.getViewRect=u},19969:function(t,e){function n(t,e,n){var i,r=[t],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}while(i=o.pop())e(i,n)}function i(t,e){var n,i=[t];while(n=i.pop())if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}e.eachAfter=n,e.eachBefore=i},68309:function(t,e,n){var i=n(89231),r=n(54407),o=r.updateCenterAndZoom;i.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),i.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,i=o(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},3153:function(t,e,n){var i=n(19969),r=i.eachAfter,o=i.eachBefore,a=n(73917),s=a.init,l=a.firstWalk,u=a.secondWalk,c=a.separation,h=a.radialCoordinate,d=a.getViewRect;function f(t,e){t.eachSeriesByType("tree",(function(t){p(t,e)}))}function p(t,e){var n=d(t,e);t.layoutInfo=n;var i=t.get("layout"),a=0,f=0,p=null;"radial"===i?(a=2*Math.PI,f=Math.min(n.height,n.width)/2,p=c((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(a=n.width,f=n.height,p=c());var g=t.getData().tree.root,m=g.children[0];if(m){s(g),r(m,l,p),g.hierNode.modifier=-m.hierNode.prelim,o(m,u);var v=m,y=m,_=m;o(m,(function(t){var e=t.getLayout().x;e<v.getLayout().x&&(v=t),e>y.getLayout().x&&(y=t),t.depth>_.depth&&(_=t)}));var x=v===y?1:p(v,y)/2,b=x-v.getLayout().x,w=0,S=0,A=0,M=0;if("radial"===i)w=a/(y.getLayout().x+x+b),S=f/(_.depth-1||1),o(m,(function(t){A=(t.getLayout().x+b)*w,M=(t.depth-1)*S;var e=h(A,M);t.setLayout({x:e.x,y:e.y,rawX:A,rawY:M},!0)}));else{var C=t.getOrient();"RL"===C||"LR"===C?(S=f/(y.getLayout().x+x+b),w=a/(_.depth-1||1),o(m,(function(t){M=(t.getLayout().x+b)*S,A="LR"===C?(t.depth-1)*w:a-(t.depth-1)*w,t.setLayout({x:A,y:M},!0)}))):"TB"!==C&&"BT"!==C||(w=a/(y.getLayout().x+x+b),S=f/(_.depth-1||1),o(m,(function(t){A=(t.getLayout().x+b)*w,M="TB"===C?(t.depth-1)*S:f-(t.depth-1)*S,t.setLayout({x:A,y:M},!0)})))}}}t.exports=f},12268:function(t,e,n){var i=n(89231);n(59772),n(90060),n(54155);var r=n(3109),o=n(40527);i.registerVisual(r),i.registerLayout(o)},8858:function(t,e,n){var i=n(76442),r=n(61570),o=n(95289),a=n(80047),s=a.wrapTreePathInfo,l=8,u=8,c=5;function h(t){this.group=new i.Group,t.add(this.group)}function d(t,e,n,i,r,o){var a=[[r?t:t-c,e],[t+n,e],[t+n,e+i],[r?t:t-c,e+i]];return!o&&a.splice(2,0,[t+n+c,e+i/2]),!r&&a.push([t,e+i/2]),a}function f(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&s(n,e)}}h.prototype={constructor:h,render:function(t,e,n,i){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&n){var s=o.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,s,l,i),r.positionElement(a,u.pos,u.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get("name"),o=n.getTextRect(r),a=Math.max(o.width+2*l,e.emptyItemWidth);e.totalWidth+=a+u,e.renderList.push({node:i,text:r,width:a})}},_renderContent:function(t,e,n,a,s){for(var l=0,c=e.emptyItemWidth,h=t.get("breadcrumb.height"),p=r.getAvailableSize(e.pos,e.box),g=e.totalWidth,m=e.renderList,v=m.length-1;v>=0;v--){var y=m[v],_=y.node,x=y.width,b=y.text;g>p.width&&(g-=x-c,x=c,b=null);var w=new i.Polygon({shape:{points:d(l,0,x,h,v===m.length-1,0===v)},style:o.defaults(n.getItemStyle(),{lineJoin:"bevel",text:b,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:o.curry(s,_)});this.group.add(w),f(w,t,_),l+=x+u}},remove:function(){this.group.removeAll()}};var p=h;t.exports=p},59772:function(t,e,n){var i=n(95289),r=n(33358),o=n(35288),a=n(40590),s=n(8595),l=s.encodeHTML,u=s.addCommas,c=n(80047),h=c.wrapTreePathInfo,d=r.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data};f(n);var r=t.levels||[],s=this.designatedVisualItemStyle={},l=new a({itemStyle:s},this,e);r=t.levels=p(r,e);var u=i.map(r||[],(function(t){return new a(t,l,e)}),this),c=o.createTree(n,this,h);function h(t){t.wrapMethod("getItemModel",(function(t,e){var n=c.getNodeByDataIndex(e),i=u[n.depth];return t.parentModel=i||l,t}))}return c.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),r=i.isArray(n)?u(n[0]):u(n),o=e.getName(t);return l(o+": "+r)},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=h(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},i.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=i.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function f(t){var e=0;i.each(t.children,(function(t){f(t);var n=t.value;i.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i.isArray(t.value)?t.value[0]=n:t.value=n}function p(t,e){var n=e.get("color");if(n){var r;if(t=t||[],i.each(t,(function(t){var e=new a(t),n=e.get("color");(e.get("itemStyle.color")||n&&"none"!==n)&&(r=!0)})),!r){var o=t[0]||(t[0]={});o.color=n.slice()}return t}}t.exports=d},90060:function(t,e,n){var i=n(89231),r=n(95289),o=n(76442),a=n(1032),s=n(80047),l=n(8858),u=n(95441),c=n(39587),h=n(13388),d=n(3568),f=n(81935),p=n(8595),g=p.windowOpen,m=r.bind,v=o.Group,y=o.Rect,_=r.each,x=3,b=["label"],w=["emphasis","label"],S=["upperLabel"],A=["emphasis","upperLabel"],M=10,C=1,I=2,T=f([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),E=function(t){var e=T(t);return e.stroke=e.fill=e.lineWidth=null,e},D=i.extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=P(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,n,i){var o=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(r.indexOf(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var a=["treemapZoomToNode","treemapRootToNode"],l=s.retrieveTargetInfo(i,a,t),u=i&&i.type,c=t.layoutInfo,h=!this._oldTree,d=this._storage,f="treemapRootToNode"===u&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(c),g=this._doRender(p,t,f);h||u&&"treemapZoomToNode"!==u&&"treemapRootToNode"!==u?g.renderFinally():this._doAnimation(p,g,t,f),this._resetController(n),this._renderBreadcrumb(t,n,l)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new v,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){var i=e.getData().tree,o=this._oldTree,s=P(),l=P(),u=this._storage,c=[],h=r.curry(L,e,l,u,n,s,c);f(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var d=p(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:g};function f(t,e,n,i,o){function s(t){return t.getId()}function l(r,a){var s=null!=r?t[r]:null,l=null!=a?e[a]:null,u=h(s,l,n,o);u&&f(s&&s.viewChildren||[],l&&l.viewChildren||[],u,i,o+1)}i?(e=t,_(t,(function(t,e){!t.isRemoved()&&l(e,e)}))):new a(e,t,s,s).add(l).update(l).remove(r.curry(l,null)).execute()}function p(t){var e=P();return t&&_(t,(function(t,n){var i=e[n];_(t,(function(t){t&&(i.push(t),t.__tmWillDelete=1)}))})),e}function g(){_(d,(function(t){_(t,(function(t){t.parent&&t.parent.remove(t)}))})),_(c,(function(t){t.invisible=!0,t.dirty()}))}},_doAnimation:function(t,e,n,i){if(n.get("animation")){var o=n.get("animationDurationUpdate"),a=n.get("animationEasing"),s=d.createWrap();_(e.willDeleteEls,(function(t,e){_(t,(function(t,n){if(!t.invisible){var r,l=t.parent;if(i&&"drillDown"===i.direction)r=l===i.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),r="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}r&&s.add(t,r,o,a)}}))})),_(this._storage,(function(t,n){_(t,(function(t,i){var l=e.lastsForAnimation[n][i],u={};l&&("nodeGroup"===n?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=r.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,o,a))}))}),this),this._state="animating",s.done(m((function(){this._state="ready",e.renderFinally()}),this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new u(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",m(this._onPan,this)),e.on("zoom",m(this._onZoom,this)));var n=new c(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>x||Math.abs(t.dy)>x)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new c(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=h.create();h.translate(s,s,[-e,-n]),h.scale(s,s,[t.scale,t.scale]),h.translate(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&g(o,a)}}}}}),this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(s.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(t,e,n.node,m(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=P(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n}});function P(){return{nodeGroup:[],background:[],content:[]}}function L(t,e,n,i,a,s,l,u,c,h){if(l){var d=l.getLayout(),f=t.getData();if(f.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var p=d.width,g=d.height,m=d.borderWidth,_=d.invisible,x=l.getRawIndex(),M=u&&u.getRawIndex(),D=l.viewChildren,P=d.upperHeight,L=D&&D.length,O=l.getModel("itemStyle"),k=l.getModel("emphasis.itemStyle"),N=Y("nodeGroup",v);if(N){if(c.add(N),N.attr("position",[d.x||0,d.y||0]),N.__tmNodeWidth=p,N.__tmNodeHeight=g,d.isAboveViewRoot)return N;var F=l.getModel(),z=Y("background",y,h,C);if(z&&G(N,z,L&&d.upperLabelHeight),L)o.isHighDownDispatcher(N)&&o.setAsHighDownDispatcher(N,!1),z&&(o.setAsHighDownDispatcher(z,!0),f.setItemGraphicEl(l.dataIndex,z));else{var B=Y("content",y,h,I);B&&V(N,B),z&&o.isHighDownDispatcher(z)&&o.setAsHighDownDispatcher(z,!1),o.setAsHighDownDispatcher(N,!0),f.setItemGraphicEl(l.dataIndex,N)}return N}}}function G(e,n,i){if(n.dataIndex=l.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:g}),_)W(n);else{n.invisible=!1;var r=l.getVisual("borderColor",!0),a=k.get("borderColor"),s=E(O);s.fill=r;var u=T(k);if(u.fill=a,i){var c=p-2*m;j(s,u,r,c,P,{x:m,y:0,width:c,height:P})}else s.text=u.text=null;n.setStyle(s),o.setElementHoverStyle(n,u)}e.add(n)}function V(e,n){n.dataIndex=l.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(p-2*m,0),r=Math.max(g-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:i,height:r}),_)W(n);else{n.invisible=!1;var a=l.getVisual("color",!0),s=E(O);s.fill=a;var u=T(k);j(s,u,a,i,r),n.setStyle(s),o.setElementHoverStyle(n,u)}e.add(n)}function W(t){!t.invisible&&s.push(t)}function j(e,n,i,a,s,u){var c=F.get("name"),h=F.getModel(u?S:b),f=F.getModel(u?A:w),p=h.getShallow("show");o.setLabelStyle(e,n,h,f,{defaultText:p?c:null,autoColor:i,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),H(e,u,d),H(n,u,d),u&&(e.textRect=r.clone(u)),e.truncate=p&&h.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function H(e,n,i){var r=e.text;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function Y(t,i,r,o){var s=null!=M&&n[t][M],l=a[t];return s?(n[t][M]=null,U(l,s,t)):_||(s=new i({z:R(r,o)}),s.__tmDepth=r,s.__tmStorageName=t,X(l,s,t)),e[t][x]=s}function U(t,e,n){var i=t[x]={};i.old="nodeGroup"===n?e.position.slice():r.extend({},e.shape)}function X(t,e,n){var r=t[x]={},o=l.parentNode;if(o&&(!i||"drillDown"===i.direction)){var s=0,u=0,c=a.background[o.getRawIndex()];!i&&c&&c.old&&(s=c.old.width,u=c.old.height),r.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}r.fadein="nodeGroup"!==n}}function R(t,e){var n=t*M+e;return(n-1)/n}t.exports=D},54155:function(t,e,n){for(var i=n(89231),r=n(80047),o=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<a.length;s++)i.registerAction({type:a[s],update:"updateView"},o);i.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],o=r.retrieveTargetInfo(t,i,e);if(o){var a=e.getViewRoot();a&&(t.direction=r.aboveViewRoot(a,o.node)?"rollUp":"drillDown"),e.resetViewRoot(o.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))},40527:function(t,e,n){var i=n(95289),r=n(39587),o=n(44261),a=o.parsePercent,s=o.MAX_SAFE_INTEGER,l=n(61570),u=n(80047),c=Math.max,h=Math.min,d=i.retrieve,f=i.each,p=["itemStyle","borderWidth"],g=["itemStyle","gapWidth"],m=["upperLabel","show"],v=["upperLabel","height"],y={seriesType:"treemap",reset:function(t,e,n,o){var s=n.getWidth(),c=n.getHeight(),h=t.option,p=l.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),g=h.size||[],m=a(d(p.width,g[0]),s),v=a(d(p.height,g[1]),c),y=o&&o.type,x=["treemapZoomToNode","treemapRootToNode"],b=u.retrieveTargetInfo(o,x,t),w="treemapRender"===y||"treemapMove"===y?o.rootRect:null,S=t.getViewRoot(),A=u.getPathToRoot(S);if("treemapMove"!==y){var M="treemapZoomToNode"===y?C(t,b,S,m,v):w?[w.width,w.height]:[m,v],E=h.sort;E&&"asc"!==E&&"desc"!==E&&(E="desc");var D={squareRatio:h.squareRatio,sort:E,leafDepth:h.leafDepth};S.hostTree.clearLayouts();var P={x:0,y:0,width:M[0],height:M[1],area:M[0]*M[1]};S.setLayout(P),_(S,D,!1,0);P=S.getLayout();f(A,(function(t,e){var n=(A[e+1]||S).getValue();t.setLayout(i.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},P))}))}var L=t.getData().tree.root;L.setLayout(I(p,w,b),!0),t.setLayoutInfo(p),T(L,new r(-p.x,-p.y,s,c),A,S,0)}};function _(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(p),u=s.get(g)/2,d=E(s),f=Math.max(l,d),m=l-u,v=f-u;s=t.getModel();t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:d},!0),r=c(r-2*m,0),o=c(o-m-v,0);var y=r*o,b=x(t,s,y,e,n,i);if(b.length){var w={x:m,y:v,width:r,height:o},S=h(r,o),C=1/0,I=[];I.area=0;for(var T=0,D=b.length;T<D;){var P=b[T];I.push(P),I.area+=P.getLayout().area;var L=A(I,S,e.squareRatio);L<=C?(T++,C=L):(I.area-=I.pop().getLayout().area,M(I,S,w,u,!1),S=h(w.width,w.height),I.length=I.area=0,C=1/0)}if(I.length&&M(I,S,w,u,!0),!n){var R=s.get("childrenVisibleMin");null!=R&&y<R&&(n=!0)}for(T=0,D=b.length;T<D;T++)_(b[T],e,n,i+1)}}}function x(t,e,n,r,o,a){var s=t.children||[],l=r.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=r.leafDepth&&r.leafDepth<=a;if(o&&!u)return t.viewChildren=[];s=i.filter(s,(function(t){return!t.isRemoved()})),w(s,l);var c=S(e,s,l);if(0===c.sum)return t.viewChildren=[];if(c.sum=b(e,n,c.sum,l,s),0===c.sum)return t.viewChildren=[];for(var h=0,d=s.length;h<d;h++){var f=s[h].getValue()/c.sum*n;s[h].setLayout({area:f})}return u&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0),t.viewChildren=s,t.setLayout({dataExtent:c.dataExtent},!0),s}function b(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}function w(t,e){return e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i})),t}function S(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a=t.get("visualDimension");if(e&&e.length)if("value"===a&&n)s=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&s.reverse();else{var s=[1/0,-1/0];f(e,(function(t){var e=t.getValue(a);e<s[0]&&(s[0]=e),e>s[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:i,dataExtent:s}}function A(t,e,n){for(var i,r=0,o=1/0,a=0,s=t.length;a<s;a++)i=t[a].getLayout().area,i&&(i<o&&(o=i),i>r&&(r=i));var l=t.area*t.area,u=e*e*n;return l?c(u*r/l,l/(u*o)):1/0}function M(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],d=e?t.area/e:0;(r||d>n[l[a]])&&(d=n[l[a]]);for(var f=0,p=t.length;f<p;f++){var g=t[f],m={},v=d?g.getLayout().area/d:0,y=m[l[a]]=c(d-2*i,0),_=n[s[o]]+n[l[o]]-u,x=f===p-1||_<v?_:v,b=m[l[o]]=c(x-2*i,0);m[s[a]]=n[s[a]]+h(i,y/2),m[s[o]]=u+h(i,b/2),u+=x,g.setLayout(m,!0)}n[s[a]]+=d,n[l[a]]-=d}function C(t,e,n,i,r){var o,a=(e||{}).node,l=[i,r];if(!a||a===n)return l;var u=i*r,c=u*t.option.zoomToNodeRatio;while(o=a.parentNode){for(var h=0,d=o.children,f=0,g=d.length;f<g;f++)h+=d[f].getValue();var m=a.getValue();if(0===m)return l;c*=h/m;var v=o.getModel(),y=v.get(p),_=Math.max(y,E(v,y));c+=4*y*y+(3*y+_)*Math.pow(c,.5),c>s&&(c=s),a=o}c<u&&(c=u);var x=Math.pow(c/u,.5);return[i*x,r*x]}function I(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function T(t,e,n,i,o){var a=t.getLayout(),s=n[o],l=s&&s===t;if(!(s&&!l||o===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!l&&!e.intersect(a),isAboveViewRoot:l},!0);var u=new r(e.x-a.x,e.y-a.y,e.width,e.height);f(t.viewChildren||[],(function(t){T(t,u,n,i,o+1)}))}}function E(t){return t.get(m)?t.get(v):0}t.exports=y},3109:function(t,e,n){var i=n(71576),r=n(56607),o=n(95289),a=o.isArray,s="itemStyle",l={seriesType:"treemap",reset:function(t,e,n,i){var r=t.getData().tree,o=r.root;o.isRemoved()||u(o,{},t.getViewRoot().getAncestors(),t)}};function u(t,e,n,i){var r=t.getModel(),a=t.getLayout();if(a&&!a.invisible&&a.isInView){var l,f=t.getModel(s),g=c(f,e,i),v=f.get("borderColor"),y=f.get("borderColorSaturation");null!=y&&(l=h(g,t),v=d(y,l)),t.setVisual("borderColor",v);var _=t.viewChildren;if(_&&_.length){var x=p(t,r,a,f,g,_);o.each(_,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=m(r,g,t,e,x,i);u(t,o,n,i)}}))}else l=h(g,t),t.setVisual("color",l)}}function c(t,e,n){var i=o.extend({},e),r=n.designatedVisualItemStyle;return o.each(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function h(t){var e=f(t,"color");if(e){var n=f(t,"colorAlpha"),i=f(t,"colorSaturation");return i&&(e=r.modifyHSL(e,null,null,i)),n&&(e=r.modifyAlpha(e,n)),e}}function d(t,e){return null!=e?r.modifyHSL(e,null,null,t):null}function f(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function p(t,e,n,r,o,a){if(a&&a.length){var s=g(e,"color")||null!=o.color&&"none"!==o.color&&(g(e,"colorAlpha")||g(e,"colorSaturation"));if(s){var l=e.get("visualMin"),u=e.get("visualMax"),c=n.dataExtent.slice();null!=l&&l<c[0]&&(c[0]=l),null!=u&&u>c[1]&&(c[1]=u);var h=e.get("colorMappingBy"),d={type:s.name,dataExtent:c,visual:s.range};"color"!==d.type||"index"!==h&&"id"!==h?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var f=new i(d);return f.__drColorMappingBy=h,f}}}function g(t,e){var n=t.get(e);return a(n)&&n.length?{name:e,range:n}:null}function m(t,e,n,i,r,a){var s=o.extend({},e);if(r){var l=r.type,u="color"===l&&r.__drColorMappingBy,c="index"===u?i:"id"===u?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));s[l]=r.mapValueToVisual(c)}return s}t.exports=l},87759:function(t,e,n){n(35866),n(23212)},49548:function(t,e,n){n(67384),n(83657)},76683:function(t,e,n){var i=n(89231),r=n(95289),o=n(47181),a=n(38363);n(7401),n(74067),n(25178),i.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!r.isArray(e)&&(t.axisPointer.link=[e])}})),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=o.collect(t,e)})),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},a)},7401:function(t,e,n){var i=n(89231),r=i.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),o=r;t.exports=o},74067:function(t,e,n){var i=n(89231),r=n(22921),o=i.extendComponentView({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";r.register("axisPointer",n,(function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){r.unregister(e.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),o.superApply(this._model,"dispose",arguments)}}),a=o;t.exports=a},42533:function(t,e,n){var i=n(95289),r=n(11724),o=n(76442),a=n(47181),s=n(88665),l=n(88336),u=n(63199),c=u.makeInner,h=c(),d=i.clone,f=i.bind;function p(){}function g(t,e,n,i){m(h(n).lastProp,i)||(h(n).lastProp=i,e?o.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function m(t,e){if(i.isObject(t)&&i.isObject(e)){var n=!0;return i.each(e,(function(e,i){n=n&&m(t[i],e)})),!!n}return t===e}function v(t,e){t[e.get("label.show")?"show":"hide"]()}function y(t){return{position:t.position.slice(),rotation:t.rotation||0}}function _(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,r){var a=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,a,t,e,n);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var f=i.curry(g,e,d);this.updatePointerEl(l,c,f,e),this.updateLabelEl(l,c,f,e)}else l=this._group=new o.Group,this.createPointerEl(l,c,t,e),this.createLabelEl(l,c,t,e),n.getZr().add(l);_(l,e,!0),this._renderHandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(r&&i.getBandWidth()>s)return!0;if(o){var l=a.getAxisInfo(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var a=h(t).pointerEl=new o[r.type](d(e.pointer));t.add(a)}},createLabelEl:function(t,e,n,i){if(e.label){var r=h(t).labelEl=new o.Rect(d(e.label));t.add(r),v(r,i)}},updatePointerEl:function(t,e,n){var i=h(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=h(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),v(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,u=n.getModel("handle"),c=n.get("status");if(!u.get("show")||!c||"hide"===c)return a&&r.remove(a),void(this._handle=null);this._handle||(e=!0,a=this._handle=o.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),r.add(a)),_(a,n,!1);var h=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];a.setStyle(u.getItemStyle(null,h));var d=u.get("size");i.isArray(d)||(d=[d,d]),a.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){g(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(y(i)),h(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},p.prototype.constructor=p,r.enableClassExtend(p);var x=p;t.exports=x},25178:function(t,e,n){var i=n(42533),r=n(67419),o=n(30625),a=n(27963),s=i.extend({makeElOption:function(t,e,n,i,a){var s=n.axis,c=s.grid,h=i.get("type"),d=l(c,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(e,!0));if(h&&"none"!==h){var p=r.buildElStyle(i),g=u[h](s,f,d);g.style=p,t.graphicKey=g.type,t.pointer=g}var m=o.layout(c.model,n);r.buildCartesianSingleLabelElOption(e,t,m,n,i,a)},getHandleTransform:function(t,e,n){var i=o.layout(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=l(o,r).getOtherAxis(r).getGlobalExtent(),u="x"===r.dim?0:1,c=t.position;c[u]+=e[u],c[u]=Math.min(a[1],c[u]),c[u]=Math.max(a[0],c[u]);var h=(s[1]+s[0])/2,d=[h,h];d[u]=c[u];var f=[{verticalAlign:"middle"},{align:"center"}];return{position:c,rotation:t.rotation,cursorPoint:d,tooltipOption:f[u]}}});function l(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var u={line:function(t,e,n){var i=r.makeLineShape([e,n[0]],[e,n[1]],c(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:r.makeRectShape([e-i/2,n[0]],[i,o],c(t))}}};function c(t){return"x"===t.dim?0:1}a.registerAxisPointerClass("CartesianAxisPointer",s);var h=s;t.exports=h},26012:function(t,e,n){var i=n(8595),r=n(42533),o=n(76442),a=n(67419),s=n(13388),l=n(11011),u=n(27963),c=r.extend({makeElOption:function(t,e,n,r,o){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,u=s.polar,c=u.getOtherAxis(s),f=c.getExtent();l=s["dataTo"+i.capitalFirst(s.dim)](e);var p=r.get("type");if(p&&"none"!==p){var g=a.buildElStyle(r),m=d[p](s,u,l,f,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=r.get("label.margin"),y=h(e,n,r,u,v);a.buildLabelElOption(t,n,r,o,y)}});function h(t,e,n,i,r){var a=e.axis,u=a.dataToCoord(t),c=i.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,f,p=i.getRadiusAxis().getExtent();if("radius"===a.dim){var g=s.create();s.rotate(g,g,c),s.translate(g,g,[i.cx,i.cy]),h=o.applyTransform([u,-r],g);var m=e.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(c,m*Math.PI/180,-1);d=v.textAlign,f=v.textVerticalAlign}else{var y=p[1];h=i.coordToPoint([y+r,u]);var _=i.cx,x=i.cy;d=Math.abs(h[0]-_)/y<.3?"center":h[0]>_?"left":"right",f=Math.abs(h[1]-x)/y<.3?"middle":h[1]>x?"top":"bottom"}return{position:h,align:d,verticalAlign:f}}var d={line:function(t,e,n,i,r){return"angle"===t.dim?{type:"Line",shape:a.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var o=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:a.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-o/2)*s,(o/2-n)*s)}:{type:"Sector",shape:a.makeSectorShape(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};u.registerAxisPointerClass("PolarAxisPointer",c);var f=c;t.exports=f},86022:function(t,e,n){var i=n(42533),r=n(67419),o=n(71099),a=n(27963),s=["x","y"],l=["width","height"],u=i.extend({makeElOption:function(t,e,n,i,a){var s=n.axis,l=s.coordinateSystem,u=d(l,1-h(s)),f=l.dataToPoint(e)[0],p=i.get("type");if(p&&"none"!==p){var g=r.buildElStyle(i),m=c[p](s,f,u);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=o.layout(n);r.buildCartesianSingleLabelElOption(e,t,v,n,i,a)},getHandleTransform:function(t,e,n){var i=o.layout(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=h(r),s=d(o,a),l=t.position;l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=d(o,1-a),c=(u[1]+u[0])/2,f=[c,c];return f[a]=l[a],{position:l,rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(t,e,n){var i=r.makeLineShape([e,n[0]],[e,n[1]],h(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:r.makeRectShape([e-i/2,n[0]],[i,o],h(t))}}};function h(t){return t.isHorizontal()?0:1}function d(t,e){var n=t.getRect();return[n[s[e]],n[s[e]]+n[l[e]]]}a.registerAxisPointerClass("SingleAxisPointer",u);var f=u;t.exports=f},38363:function(t,e,n){var i=n(95289),r=n(63199),o=r.makeInner,a=n(47181),s=n(13390),l=i.each,u=i.curry,c=o();function h(t,e,n){var r=t.currTrigger,o=[t.x,t.y],a=t,c=t.dispatchAction||i.bind(n.dispatchAction,n),h=e.getComponent("axisPointer").coordSysAxesInfo;if(h){b(o)&&(o=s({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var f=b(o),w=a.axesInfo,S=h.axesInfo,A="leave"===r||b(o),M={},C={},I={list:[],map:{}},T={showPointer:u(p,C),showTooltip:u(g,I)};l(h.coordSysMap,(function(t,e){var n=f||t.containPoint(o);l(h.coordSysAxesInfo[e],(function(t,e){var i=t.axis,r=_(w,t);if(!A&&n&&(!w||r)){var a=r&&r.value;null!=a||f||(a=i.pointToData(o)),null!=a&&d(t,a,T,!1,M)}}))}));var E={};return l(S,(function(t,e){var n=t.linkGroup;n&&!C[e]&&l(n.axesInfo,(function(e,i){var r=C[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,x(e),x(t)))),E[t.key]=o}}))})),l(E,(function(t,e){d(S[e],t,T,!0,M)})),m(C,S,M),v(I,o,t,c),y(S,c,n),M}}function d(t,e,n,r,o){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var s=f(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==o.seriesIndex&&i.extend(o,l[0]),!r&&t.snap&&a.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l,o),n.showTooltip(t,s,u)}else n.showPointer(t,e)}function f(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return l(e.seriesModels,(function(e,u){var c,h,d=e.getData().mapDimension(i,!0);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(d,t,n);h=f.dataIndices,c=f.nestestValue}else{if(h=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null),!h.length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var p=t-c,g=Math.abs(p);g<=a&&((g<a||p>=0&&s<0)&&(a=g,s=p,r=c,o.length=0),l(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function p(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function g(t,e,n,i){var r=n.payloadBatch,o=e.axis,s=o.model,l=e.axisPointerModel;if(e.triggerTooltip&&r.length){var u=e.coordSys.model,c=a.makeKey(u),h=t.map[c];h||(h=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}function m(t,e,n){var i=n.axesInfo=[];l(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function v(t,e,n,i){if(!b(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function y(t,e,n){var r=n.getZr(),o="axisPointerLastHighlights",a=c(r)[o]||{},s=c(r)[o]={};l(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&l(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t}))}));var u=[],h=[];i.each(a,(function(t,e){!s[e]&&h.push(t)})),i.each(s,(function(t,e){!a[e]&&u.push(t)})),h.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),u.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:u})}function _(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function x(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function b(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=h},13390:function(t,e,n){var i=n(95289),r=n(63199);function o(t,e){var n,o=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=r.queryDataIndex(s,t);if(null==l||l<0||i.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)o=c.dataToPoint(s.getValues(i.map(c.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),o=[h.x+h.width/2,h.y+h.height/2]}return{point:o,el:u}}t.exports=o},22921:function(t,e,n){var i=n(95289),r=n(87190),o=n(63199),a=o.makeInner,s=a(),l=i.each;function u(t,e,n){if(!r.node){var i=e.getZr();s(i).records||(s(i).records={}),c(i,e);var o=s(i).records[t]||(s(i).records[t]={});o.handler=n}}function c(t,e){function n(n,i){t.on(n,(function(n){var r=p(e);l(s(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),h(r.pendings,e)}))}s(t).initialized||(s(t).initialized=!0,n("click",i.curry(f,"click")),n("mousemove",i.curry(f,"mousemove")),n("globalout",d))}function h(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function d(t,e,n){t.handler("leave",null,n)}function f(t,e,n,i){e.handler(t,n,i)}function p(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function g(t,e){if(!r.node){var n=e.getZr(),i=(s(n).records||{})[t];i&&(s(n).records[t]=null)}}e.register=u,e.unregister=g},47181:function(t,e,n){var i=n(95289),r=n(40590),o=i.each,a=i.curry;function s(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(n,t,e),n.seriesInvolved&&c(n,t),n}function l(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),s=r.get("link",!0)||[],l=[];o(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var c=v(n.model),d=t.coordSysAxesInfo[c]={};t.coordSysMap[c]=n;var f=n.model,p=f.getModel("tooltip",i);if(o(n.getAxes(),a(x,!1,null)),n.getTooltipAxes&&i&&p.get("show")){var g="axis"===p.get("trigger"),y="cross"===p.get("axisPointer.type"),_=n.getTooltipAxes(p.get("axisPointer.axis"));(g||y)&&o(_.baseAxes,a(x,!y||"cross",g)),y&&o(_.otherAxes,a(x,"cross",!1))}}function x(i,o,a){var c=a.model.getModel("axisPointer",r),f=c.get("show");if(f&&("auto"!==f||i||m(c))){null==o&&(o=c.get("triggerTooltip")),c=i?u(a,p,r,e,i,o):c;var g=c.get("snap"),y=v(a.model),_=o||g||"category"===a.type,x=t.axesInfo[y]={key:y,axis:a,coordSys:n,axisPointerModel:c,triggerTooltip:o,involveSeries:_,snap:g,useHandle:m(c),seriesModels:[]};d[y]=x,t.seriesInvolved|=_;var b=h(s,a);if(null!=b){var w=l[b]||(l[b]={axesInfo:{}});w.axesInfo[y]=x,w.mapper=s[b].mapper,x.linkGroup=w}}}}))}function u(t,e,n,a,s,l){var u=e.getModel("axisPointer"),c={};o(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){c[t]=i.clone(u.get(t))})),c.snap="category"!==t.type&&!!l,"cross"===u.get("type")&&(c.type="line");var h=c.label||(c.label={});if(null==h.show&&(h.show=!1),"cross"===s){var d=u.get("label.show");if(h.show=null==d||d,!l){var f=c.lineStyle=u.get("crossStyle");f&&i.defaults(h,f.textStyle)}}return t.model.getModel("axisPointer",new r(c,n,a))}function c(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get("axisPointer.show",!0)&&o(t.coordSysAxesInfo[v(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}function h(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(d(o[i+"AxisId"],n.id)||d(o[i+"AxisIndex"],n.componentIndex)||d(o[i+"AxisName"],n.name))return r}}function d(t,e){return"all"===t||i.isArray(t)&&i.indexOf(t,e)>=0||t===e}function f(t){var e=p(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=m(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function p(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[v(t)]}function g(t){var e=p(t);return e&&e.axisPointerModel}function m(t){return!!t.get("handle.show")}function v(t){return t.type+"||"+t.id}e.collect=s,e.fixValue=f,e.getAxisInfo=p,e.getAxisPointerModel=g,e.makeKey=v},67419:function(t,e,n){var i=n(95289),r=n(76442),o=n(43407),a=n(8595),s=n(13388),l=n(8426),u=n(11011);function c(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function h(t,e,n,i,r){var s=n.get("value"),l=f(s,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),u=n.getModel("label"),c=a.normalizeCssArray(u.get("padding")||0),h=u.getFont(),p=o.getBoundingRect(l,h),g=r.position,m=p.width+c[1]+c[3],v=p.height+c[0]+c[2],y=r.align;"right"===y&&(g[0]-=m),"center"===y&&(g[0]-=m/2);var _=r.verticalAlign;"bottom"===_&&(g[1]-=v),"middle"===_&&(g[1]-=v/2),d(g,m,v,i);var x=u.get("backgroundColor");x&&"auto"!==x||(x=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:m,height:v,r:u.get("borderRadius")},position:g.slice(),style:{text:l,textFont:h,textFill:u.getTextColor(),textPosition:"inside",textPadding:c,fill:x,stroke:u.get("borderColor")||"transparent",lineWidth:u.get("borderWidth")||0,shadowBlur:u.get("shadowBlur"),shadowColor:u.get("shadowColor"),shadowOffsetX:u.get("shadowOffsetX"),shadowOffsetY:u.get("shadowOffsetY")},z2:10}}function d(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function f(t,e,n,r,o){t=e.scale.parse(t);var a=e.scale.getLabel(t,{precision:o.precision}),s=o.formatter;if(s){var u={value:l.getAxisRawValue(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};i.each(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&u.seriesData.push(r)})),i.isString(s)?a=s.replace("{value}",a):i.isFunction(s)&&(a=s(u))}return a}function p(t,e,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),r.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g(t,e,n,i,r,o){var a=u.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),h(e,i,r,o,{position:p(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function m(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function v(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function y(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}e.buildElStyle=c,e.buildLabelElOption=h,e.getValueLabel=f,e.getTransformedPosition=p,e.buildCartesianSingleLabelElOption=g,e.makeLineShape=m,e.makeRectShape=v,e.makeSectorShape=y},23212:function(t,e,n){var i=n(95289),r=n(76442),o=n(40590),a=n(27963),s=n(11011),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function u(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function c(t){var e=t.getRadiusAxis();return e.inverse?0:1}function h(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var d=a.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,o=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),s=n.getMinorTicksCoords(),u=i.map(n.getViewLabels(),(function(t){t=i.clone(t);return t.coord=n.dataToCoord(t.tickValue),t}));h(u),h(a),i.each(l,(function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,r,a,s,o,u)}),this)}},_axisLine:function(t,e,n,i,o){var a,s=t.getModel("axisLine.lineStyle"),l=c(e),u=l?0:1;a=0===o[u]?new r.Circle({shape:{cx:e.cx,cy:e.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new r.Ring({shape:{cx:e.cx,cy:e.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,this.group.add(a)},_axisTick:function(t,e,n,o,a){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),h=a[c(e)],d=i.map(n,(function(t){return new r.Line({shape:u(e,[h,h+l],t.coord)})}));this.group.add(r.mergePath(d,{style:i.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,e,n,o,a){if(o.length){for(var s=t.getModel("axisTick"),l=t.getModel("minorTick"),h=(s.get("inside")?-1:1)*l.get("length"),d=a[c(e)],f=[],p=0;p<o.length;p++)for(var g=0;g<o[p].length;g++)f.push(new r.Line({shape:u(e,[d,d+h],o[p][g].coord)}));this.group.add(r.mergePath(f,{style:i.defaults(l.getModel("lineStyle").getLineStyle(),i.defaults(s.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(t,e,n,a,l,u){var h=t.getCategories(!0),d=t.getModel("axisLabel"),f=d.get("margin"),p=t.get("triggerEvent");i.each(u,(function(n,i){var a=d,u=n.tickValue,g=l[c(e)],m=e.coordToPoint([g+f,n.coord]),v=e.cx,y=e.cy,_=Math.abs(m[0]-v)/g<.3?"center":m[0]>v?"left":"right",x=Math.abs(m[1]-y)/g<.3?"middle":m[1]>y?"top":"bottom";h&&h[u]&&h[u].textStyle&&(a=new o(h[u].textStyle,d,d.ecModel));var b=new r.Text({silent:s.isLabelSilent(t)});this.group.add(b),r.setTextStyle(b.style,a,{x:m[0],y:m[1],textFill:a.getTextColor()||t.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:_,textVerticalAlign:x}),p&&(b.eventData=s.makeAxisEventDataBase(t),b.eventData.targetType="axisLabel",b.eventData.value=n.rawLabel)}),this)},_splitLine:function(t,e,n,o,a){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),h=0;c=c instanceof Array?c:[c];for(var d=[],f=0;f<n.length;f++){var p=h++%c.length;d[p]=d[p]||[],d[p].push(new r.Line({shape:u(e,a,n[f].coord)}))}for(f=0;f<d.length;f++)this.group.add(r.mergePath(d[f],{style:i.defaults({stroke:c[f%c.length]},l.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,e,n,i,o){if(i.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],c=0;c<i.length;c++)for(var h=0;h<i[c].length;h++)l.push(new r.Line({shape:u(e,o,i[c][h].coord)}));this.group.add(r.mergePath(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},_splitArea:function(t,e,n,o,a){if(n.length){var s=t.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=Math.PI/180,f=-n[0].coord*d,p=Math.min(a[0],a[1]),g=Math.max(a[0],a[1]),m=t.get("clockwise"),v=1;v<n.length;v++){var y=c++%u.length;h[y]=h[y]||[],h[y].push(new r.Sector({shape:{cx:e.cx,cy:e.cy,r0:p,r:g,startAngle:f,endAngle:-n[v].coord*d,clockwise:m},silent:!0})),f=-n[v].coord*d}for(v=0;v<h.length;v++)this.group.add(r.mergePath(h[v],{style:i.defaults({fill:u[v%u.length]},l.getAreaStyle()),silent:!0}))}}});t.exports=d},11011:function(t,e,n){var i=n(95289),r=i.retrieve,o=i.defaults,a=i.extend,s=i.each,l=n(8595),u=n(76442),c=n(40590),h=n(44261),d=h.isRadianAroundZero,f=h.remRadian,p=n(22864),g=p.createSymbol,m=n(13388),v=n(31138),y=v.applyTransform,_=n(8426),x=_.shouldShowAllLabels,b=Math.PI,w=function(t,e){this.opt=e,this.axisModel=t,o(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var n=new u.Group({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};w.prototype={constructor:w,hasBuilder:function(t){return!!S[t]},add:function(t){S[t].call(this)},getGroup:function(){return this.group}};var S={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],o=[n[1],0];i&&(y(r,r,i),y(o,o,i));var l=a({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new u.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:l,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var c=e.get("axisLine.symbol"),h=e.get("axisLine.symbolSize"),d=e.get("axisLine.symbolOffset")||0;if("number"===typeof d&&(d=[d,d]),null!=c){"string"===typeof c&&(c=[c,c]),"string"!==typeof h&&"number"!==typeof h||(h=[h,h]);var f=h[0],p=h[1];s([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((r[0]-o[0])*(r[0]-o[0])+(r[1]-o[1])*(r[1]-o[1]))}],(function(e,n){if("none"!==c[n]&&null!=c[n]){var i=g(c[n],-f/2,-p/2,f,p,l.stroke,!0),o=e.r+e.offset,a=[r[0]+o*Math.cos(t.rotation),r[1]-o*Math.sin(t.rotation)];i.attr({rotation:e.rotate,position:a,silent:!0,z2:11}),this.group.add(i)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,n=R(this,t,e),i=k(this,t,e);T(t,i,n),O(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,n=r(t.axisName,e.get("name"));if(n){var i,o,s=e.get("nameLocation"),c=t.nameDirection,h=e.getModel("nameTextStyle"),d=e.get("nameGap")||0,f=this.axisModel.axis.getExtent(),p=f[0]>f[1]?-1:1,g=["start"===s?f[0]-p*d:"end"===s?f[1]+p*d:(f[0]+f[1])/2,P(s)?t.labelOffset+c*d:0],m=e.get("nameRotate");null!=m&&(m=m*b/180),P(s)?i=M(t.rotation,null!=m?m:t.rotation,c):(i=C(t,s,m||0,f),o=t.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(i.rotation)),!isFinite(o)&&(o=null)));var v=h.getFont(),y=e.get("nameTruncate",!0)||{},_=y.ellipsis,x=r(t.nameTruncateMaxWidth,y.maxWidth,o),w=null!=_&&null!=x?l.truncateText(n,x,v,_,{minChar:2,placeholder:y.placeholder}):n,S=e.get("tooltip",!0),T=e.mainType,E={componentType:T,name:n,$vars:["name"]};E[T+"Index"]=e.componentIndex;var D=new u.Text({anid:"name",__fullText:n,__truncatedText:w,position:g,rotation:i.rotation,silent:I(e),z2:1,tooltip:S&&S.show?a({content:n,formatter:function(){return n},formatterParams:E},S):null});u.setTextStyle(D.style,h,{text:w,textFont:v,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:h.get("align")||i.textAlign,textVerticalAlign:h.get("verticalAlign")||i.textVerticalAlign}),e.get("triggerEvent")&&(D.eventData=A(e),D.eventData.targetType="axisName",D.eventData.name=n),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},A=w.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},M=w.innerTextLayout=function(t,e,n){var i,r,o=f(e-t);return d(o)?(r=n>0?"top":"bottom",i="center"):d(o-b)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<b?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}};function C(t,e,n,i){var r,o,a=f(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return d(a-b/2)?(o=l?"bottom":"top",r="center"):d(a-1.5*b)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*b&&a>b/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}var I=w.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function T(t,e,n){if(!x(t.axis)){var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(E(o),E(u)):D(o,a)&&(i?(E(a),E(c)):(E(o),E(u))),!1===r?(E(s),E(h)):D(l,s)&&(r?(E(l),E(d)):(E(s),E(h)))}}function E(t){t&&(t.ignore=!0)}function D(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=m.identity([]);return m.rotate(o,o,-t.rotation),i.applyTransform(m.mul([],o,t.getLocalTransform())),r.applyTransform(m.mul([],o,e.getLocalTransform())),i.intersect(r)}}function P(t){return"middle"===t||"center"===t}function L(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var c=t[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,e&&(y(a,a,e),y(s,s,e));var h=new u.Line({anid:r+"_"+t[l].tickValue,subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,silent:!0});o.push(h)}return o}function R(t,e,n){var i=e.axis,r=e.getModel("axisTick");if(r.get("show")&&!i.scale.isBlank()){for(var a=r.getModel("lineStyle"),s=n.tickDirection*r.get("length"),l=i.getTicksCoords(),u=L(l,t._transform,s,o(a.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),c=0;c<u.length;c++)t.group.add(u[c]);return u}}function O(t,e,n){var i=e.axis,r=e.getModel("minorTick");if(r.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=r.getModel("lineStyle"),l=n.tickDirection*r.get("length"),u=o(s.getLineStyle(),o(e.getModel("axisTick").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})),c=0;c<a.length;c++)for(var h=L(a[c],t._transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)t.group.add(h[d])}}function k(t,e,n){var i=e.axis,o=r(n.axisLabelShow,e.get("axisLabel.show"));if(o&&!i.scale.isBlank()){var a=e.getModel("axisLabel"),l=a.get("margin"),h=i.getViewLabels(),d=(r(n.labelRotate,a.get("rotate"))||0)*b/180,f=M(n.rotation,d,n.labelDirection),p=e.getCategories&&e.getCategories(!0),g=[],m=I(e),v=e.get("triggerEvent");return s(h,(function(r,o){var s=r.tickValue,h=r.formattedLabel,d=r.rawLabel,y=a;p&&p[s]&&p[s].textStyle&&(y=new c(p[s].textStyle,a,e.ecModel));var _=y.getTextColor()||e.get("axisLine.lineStyle.color"),x=i.dataToCoord(s),b=[x,n.labelOffset+n.labelDirection*l],w=new u.Text({anid:"label_"+s,position:b,rotation:f.rotation,silent:m,z2:10});u.setTextStyle(w.style,y,{text:h,textAlign:y.getShallow("align",!0)||f.textAlign,textVerticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||f.textVerticalAlign,textFill:"function"===typeof _?_("category"===i.type?d:"value"===i.type?s+"":s,o):_}),v&&(w.eventData=A(e),w.eventData.targetType="axisLabel",w.eventData.value=d),t._dumbGroup.add(w),w.updateTransform(),g.push(w),t.group.add(w),w.decomposeTransform()})),g}}var N=w;t.exports=N},27963:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(47181),a=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,i){this.axisPointerClass&&o.fixValue(t),a.superApply(this,"render",arguments),s(this,t,e,n,i,!0)},updateAxisPointer:function(t,e,n,i,r){s(this,t,e,n,i,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),a.superApply(this,"remove",arguments)},dispose:function(t,e){l(this,e),a.superApply(this,"dispose",arguments)}});function s(t,e,n,i,r,s){var u=a.getAxisPointerClass(t.axisPointerClass);if(u){var c=o.getAxisPointerModel(e);c?(t._axisPointer||(t._axisPointer=new u)).render(e,c,i,s):l(t,i)}}function l(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}var u=[];a.registerAxisPointerClass=function(t,e){u[t]=e},a.getAxisPointerClass=function(t){return t&&u[t]};var c=a;t.exports=c},83657:function(t,e,n){var i=n(95289),r=n(76442),o=n(11011),a=n(27963),s=n(30625),l=n(20168),u=l.rectCoordAxisBuildSplitArea,c=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine","minorSplitLine"],f=a.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,a){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new r.Group,this.group.add(this._axisGroup),t.get("show")){var u=t.getCoordSysModel(),c=s.layout(u,t),p=new o(t,c);i.each(h,p.add,p),this._axisGroup.add(p.getGroup()),i.each(d,(function(e){t.get(e+".show")&&this["_"+e](t,u)}),this),r.groupTransition(l,this._axisGroup,t),f.superCall(this,"render",t,e,n,a)}},remove:function(){c(this)},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var o=t.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=i.isArray(s)?s:[s];for(var l=e.coordinateSystem.getRect(),u=n.isHorizontal(),c=0,h=n.getTicksCoords({tickModel:o}),d=[],f=[],p=a.getLineStyle(),g=0;g<h.length;g++){var m=n.toGlobalCoord(h[g].coord);u?(d[0]=m,d[1]=l.y,f[0]=m,f[1]=l.y+l.height):(d[0]=l.x,d[1]=m,f[0]=l.x+l.width,f[1]=m);var v=c++%s.length,y=h[g].tickValue;this._axisGroup.add(new r.Line({anid:null!=y?"line_"+h[g].tickValue:null,subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:i.defaults({stroke:s[v]},p),silent:!0}))}}},_minorSplitLine:function(t,e){var n=t.axis,i=t.getModel("minorSplitLine"),o=i.getModel("lineStyle"),a=e.coordinateSystem.getRect(),s=n.isHorizontal(),l=n.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),d=0;d<l.length;d++)for(var f=0;f<l[d].length;f++){var p=n.toGlobalCoord(l[d][f].coord);s?(u[0]=p,u[1]=a.y,c[0]=p,c[1]=a.y+a.height):(u[0]=a.x,u[1]=p,c[0]=a.x+a.width,c[1]=p),this._axisGroup.add(new r.Line({anid:"minor_line_"+l[d][f].tickValue,subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0}))}},_splitArea:function(t,e){u(this,this._axisGroup,t,e)}});f.extend({type:"xAxis"}),f.extend({type:"yAxis"})},93296:function(t,e,n){var i=n(89231),r=n(95289),o=n(11011),a=n(33478),s=n(54266),l=n(76442),u=["axisLine","axisTickLabel","axisName"],c=i.extendComponentView({type:"parallelAxis",init:function(t,e){c.superApply(this,"init",arguments),(this._brushController=new a(e.getZr())).on("brush",r.bind(this._onBrush,this))},render:function(t,e,n,i){if(!h(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),t.get("show")){var s=f(t,e),c=s.coordinateSystem,d=t.getAreaSelectStyle(),p=d.width,g=t.axis.dim,m=c.getAxisLayout(g),v=r.extend({strokeContainThreshold:p},m),y=new o(t,v);r.each(u,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,d,t,s,p,n);var _=i&&!1===i.animation?null:t;l.groupTransition(a,this._axisGroup,_)}}},_refreshBrushController:function(t,e,n,i,r,o){var a=n.axis.getExtent(),u=a[1]-a[0],c=Math.min(30,.1*Math.abs(u)),h=l.BoundingRect.create({x:a[0],y:-r/2,width:u,height:r});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(h),isTargetByCursor:s.makeRectIsTargetByCursor(h,o,i),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(h,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(d(n))},_onBrush:function(t,e){var n=this.axisModel,i=n.axis,o=r.map(t,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},dispose:function(){this._brushController.dispose()}});function h(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function d(t){var e=t.axis;return r.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function f(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var p=c;t.exports=p},11681:function(t,e,n){var i=n(95289),r=n(76442),o=n(11011),a=n(27963),s=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea","minorSplitLine"],u=a.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,a=r.getAngleAxis(),u=n.getTicksCoords(),h=n.getMinorTicksCoords(),d=a.getExtent()[0],f=n.getExtent(),p=c(r,t,d),g=new o(t,p);i.each(s,g.add,g),this.group.add(g.getGroup()),i.each(l,(function(e){t.get(e+".show")&&!n.scale.isBlank()&&this["_"+e](t,r,d,f,u,h)}),this)}},_splitLine:function(t,e,n,o,a){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<a.length;d++){var f=c++%u.length;h[f]=h[f]||[],h[f].push(new r.Circle({shape:{cx:e.cx,cy:e.cy,r:a[d].coord}}))}for(d=0;d<h.length;d++)this.group.add(r.mergePath(h[d],{style:i.defaults({stroke:u[d%u.length],fill:null},l.getLineStyle()),silent:!0}))},_minorSplitLine:function(t,e,n,o,a,s){if(s.length){for(var l=t.getModel("minorSplitLine"),u=l.getModel("lineStyle"),c=[],h=0;h<s.length;h++)for(var d=0;d<s[h].length;d++)c.push(new r.Circle({shape:{cx:e.cx,cy:e.cy,r:s[h][d].coord}}));this.group.add(r.mergePath(c,{style:i.defaults({fill:null},u.getLineStyle()),silent:!0}))}},_splitArea:function(t,e,n,o,a){if(a.length){var s=t.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=a[0].coord,f=1;f<a.length;f++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new r.Sector({shape:{cx:e.cx,cy:e.cy,r0:d,r:a[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=a[f].coord}for(f=0;f<h.length;f++)this.group.add(r.mergePath(h[f],{style:i.defaults({fill:u[f%u.length]},l.getAreaStyle()),silent:!0}))}}});function c(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}t.exports=u},26007:function(t,e,n){var i=n(95289),r=n(11011),o=n(76442),a=n(71099),s=n(27963),l=n(20168),u=l.rectCoordAxisBuildSplitArea,c=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine"],f=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,s){var l=this.group;l.removeAll();var u=this._axisGroup;this._axisGroup=new o.Group;var c=a.layout(t),p=new r(t,c);i.each(h,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),i.each(d,(function(e){t.get(e+".show")&&this["_"+e](t)}),this),o.groupTransition(u,this._axisGroup,t),f.superCall(this,"render",t,e,n,s)},remove:function(){c(this)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel("splitLine"),i=n.getModel("lineStyle"),r=i.get("width"),a=i.get("color");a=a instanceof Array?a:[a];for(var s=t.coordinateSystem.getRect(),l=e.isHorizontal(),u=[],c=0,h=e.getTicksCoords({tickModel:n}),d=[],f=[],p=0;p<h.length;++p){var g=e.toGlobalCoord(h[p].coord);l?(d[0]=g,d[1]=s.y,f[0]=g,f[1]=s.y+s.height):(d[0]=s.x,d[1]=g,f[0]=s.x+s.width,f[1]=g);var m=c++%a.length;u[m]=u[m]||[],u[m].push(new o.Line({subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:{lineWidth:r},silent:!0}))}for(p=0;p<u.length;++p)this.group.add(o.mergePath(u[p],{style:{stroke:a[p%a.length],lineDash:i.getLineDash(r),lineWidth:r},silent:!0}))}},_splitArea:function(t){u(this,this._axisGroup,t,t)}}),p=f;t.exports=p},20168:function(t,e,n){var i=n(95289),r=n(76442);function o(t,e,n,o){var a=n.axis;if(!a.scale.isBlank()){var s=n.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=o.coordinateSystem.getRect(),h=a.getTicksCoords({tickModel:s,clamp:!0});if(h.length){var d=u.length,f=t.__splitAreaColors,p=i.createHashMap(),g=0;if(f)for(var m=0;m<h.length;m++){var v=f.get(h[m].tickValue);if(null!=v){g=(v+(d-1)*m)%d;break}}var y=a.toGlobalCoord(h[0].coord),_=l.getAreaStyle();u=i.isArray(u)?u:[u];for(m=1;m<h.length;m++){var x,b,w,S,A=a.toGlobalCoord(h[m].coord);a.isHorizontal()?(x=y,b=c.y,w=A-x,S=c.height,y=x+w):(x=c.x,b=y,w=c.width,S=A-b,y=b+S);var M=h[m-1].tickValue;null!=M&&p.set(M,g),e.add(new r.Rect({anid:null!=M?"area_"+M:null,shape:{x:x,y:b,width:w,height:S},style:i.defaults({fill:u[g]},_),silent:!0})),g=(g+1)%d}t.__splitAreaColors=p}}}function a(t){t.__splitAreaColors=null}e.rectCoordAxisBuildSplitArea=o,e.rectCoordAxisHandleRemove=a},49007:function(t,e,n){var i=n(89231),r={type:"axisAreaSelect",event:"axisAreaSelected"};i.registerAction(r,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),i.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))},98733:function(t,e,n){var i=n(89231),r=n(72603);n(48989),n(23909),n(31063),n(85084),n(81496),i.registerPreprocessor(r)},23909:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(95289),a=n(63479),s=n(40590),l=["#ddd"],u=r.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&a.replaceVisualOption(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:l},i.hasOwnProperty("liftZ")||(i.liftZ=5)},setAreas:function(t){t&&(this.areas=o.map(t,(function(t){return c(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=c(this.option,t),this.brushType=this.brushOption.brushType}});function c(t,e){return o.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new s(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var h=u;t.exports=h},31063:function(t,e,n){var i=n(89231),r=n(95289),o=n(33478),a=n(48989),s=a.layoutCovers,l=i.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new o(e.getZr())).on("brush",r.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,u.apply(this,arguments)},updateTransform:function(t,e){return s(e),u.apply(this,arguments)},updateView:u,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:r.clone(t),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:r.clone(t),$from:n})}});function u(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}t.exports=l},85084:function(t,e,n){var i=n(89231);i.registerAction({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),i.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),i.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},72603:function(t,e,n){var i=n(95289),r=["rect","polygon","keep","clear"];function o(t,e){var n=t&&t.brush;if(i.isArray(n)||(n=n?[n]:[]),n.length){var o=[];i.each(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(o=o.concat(e))}));var s=t&&t.toolbox;i.isArray(s)&&(s=s[0]),s||(s={feature:{}},t.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),c=u.type||(u.type=[]);c.push.apply(c,o),a(c),e&&!c.length&&c.push.apply(c,r)}}function a(t){var e={};i.each(t,(function(t){e[t]=1})),t.length=0,i.each(e,(function(e,n){t.push(n)}))}t.exports=o},99033:function(t,e,n){var i=n(91068),r=n(39587),o=n(76442),a=o.linePolygonIntersect,s={lineX:l(0),lineY:l(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&i.contain(n.range,t[0],t[1])},rect:function(t,e,n){var o=n.range;if(!t||o.length<=1)return!1;var s=t.x,l=t.y,u=t.width,c=t.height,h=o[0];return!!(i.contain(o,s,l)||i.contain(o,s+u,l)||i.contain(o,s,l+c)||i.contain(o,s+u,l+c)||r.create(t).contain(h[0],h[1])||a(s,l,s+u,l,o)||a(s,l,s,l+c,o)||a(s+u,l,s+u,l+c,o)||a(s,l+c,s+u,l+c,o))||void 0}}};function l(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range,o=e[t];return u(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),u(s[0],a)||u(s[1],a)||u(a[0],s)||u(a[1],s)}}}}function u(t,e){return e[0]<=t&&t<=e[1]}var c=s;t.exports=c},48989:function(t,e,n){var i=n(89231),r=n(95289),o=n(39587),a=n(63479),s=n(99033),l=n(88336),u=n(74080),c=["inBrush","outOfBrush"],h="__ecBrushSelect",d="__ecInBrushSelectEvent",f=i.PRIORITY.VISUAL.BRUSH;function p(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new u(e.option,t);n.setInputRanges(e.areas,t)}))}function g(t,e,n,i,r){if(r){var o=t.getZr();if(!o[d]){o[h]||(o[h]=m);var a=l.createOrUpdate(o,h,n,e);a(t,i)}}}function m(t,e){if(!t.isDisposed()){var n=t.getZr();n[d]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[d]=!1}}function v(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t[a.brushType](i,n,a.selectors,a))return!0}}function y(t){var e=t.brushSelector;if(r.isString(e)){var n=[];return r.each(s,(function(t,i){n[i]=function(n,i,r,o){var a=i.getItemLayout(n);return t[e](a,r,o)}})),n}if(r.isFunction(e)){var i={};return r.each(s,(function(t,n){i[n]=e})),i}return e}function _(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(r.isArray(n)?r.indexOf(n,e)<0:e!==n)}function x(t){var e=t.selectors={};return r.each(s[t.brushType],(function(n,i){e[i]=function(i){return n(i,e,t)}})),t}i.registerLayout(f,(function(t,e,n){t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),p(t)})),i.registerVisual(f,(function(t,e,n){var i,o,s=[];t.eachComponent({mainType:"brush"},(function(e,n){var l={brushId:e.id,brushIndex:n,brushName:e.name,areas:r.clone(e.areas),selected:[]};s.push(l);var u=e.option,h=u.brushLink,d=[],f=[],p=[],g=0;n||(i=u.throttleType,o=u.throttleDelay);var m=r.map(e.areas,(function(t){return x(r.defaults({boundingRect:b[t.brushType](t)},t))})),w=a.createVisualMappings(e.option,c,(function(t){t.mappingMethod="fixed"}));function S(t){return"all"===h||d[t]}function A(t){return!!t.length}function M(t,e){var n=t.coordinateSystem;g|=n.hasAxisBrushed(),S(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(f[e]=1)}))}function C(n,i,o){var a=y(n);if(a&&!_(e,i)&&(r.each(m,(function(i){a[i.brushType]&&e.brushTargetManager.controlSeries(i,n,t)&&o.push(i),g|=A(o)})),S(i)&&A(o))){var s=n.getData();s.each((function(t){v(a,o,s,t)&&(f[t]=1)}))}}r.isArray(h)&&r.each(h,(function(t){d[t]=1})),t.eachSeries((function(t,e){var n=p[e]=[];"parallel"===t.subType?M(t,e,n):C(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};l.selected.push(n);var i=y(t),r=p[e],o=t.getData(),s=S(e)?function(t){return f[t]?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return v(i,r,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};(S(e)?g:A(r))&&a.applyVisual(c,w,o,s)}))})),g(e,i,o,s,n)}));var b={lineX:r.noop,lineY:r.noop,rect:function(t){return w(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&w(e)}};function w(t){return new o(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}e.layoutCovers=p},36275:function(t,e,n){n(17354),n(89025),n(67209)},67209:function(t,e,n){var i=n(89231),r=n(95289),o=n(76442),a=n(8595),s=n(44261),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},c=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),s=i.getCellHeight(),l=e.start.time;l<=e.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,c=new o.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:r});n.add(c)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,n){var i=new o.Polyline({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"===typeof t&&t?a.formatTplSimple(t,e):"function"===typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var a=r.get("margin"),s=r.get("position");s||(s="horizontal"!==n?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,h="horizontal"===n?0:1,d={top:[u,l[h][1]],bottom:[u,l[1-h][1]],left:[l[1-h][0],c],right:[l[h][0],c]},f=e.start.y;+e.end.y>+e.start.y&&(f=f+"-"+e.end.y);var p=r.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:f},m=this._formatterLabel(p,g),v=new o.Text({z2:30});o.setTextStyle(v.style,r,{text:m}),v.attr(this._yearTextPositionControl(v,d[s],n,s,a)),i.add(v)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),s=i.get("margin"),u=i.get("position"),c=i.get("align"),h=[this._tlpoints,this._blpoints];r.isString(a)&&(a=l[a.toUpperCase()]||[]);var d="start"===u?0:1,f="horizontal"===e?0:1;s="start"===u?-s:s;for(var p="center"===c,g=0;g<h[d].length-1;g++){var m=h[d][g].slice(),v=this._firstDayOfMonth[g];if(p){var y=this._firstDayPoints[g];m[f]=(y[f]+h[0][g+1][f])/2}var _=i.get("formatter"),x=a[+v.m-1],b={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:x},w=this._formatterLabel(_,b),S=new o.Text({z2:30});r.extend(o.setTextStyle(S.style,i,{text:w}),this._monthTextPositionControl(m,p,e,u,s)),n.add(S)}}},_weekTextPositionControl:function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderWeekText:function(t,e,n,i){var a=t.getModel("dayLabel");if(a.get("show")){var l=t.coordinateSystem,c=a.get("position"),h=a.get("nameMap"),d=a.get("margin"),f=l.getFirstDayOfWeek();r.isString(h)&&(h=u[h.toUpperCase()]||[]);var p=l.getNextNDay(e.end.time,7-e.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];d=s.parsePercent(d,g["horizontal"===n?0:1]),"start"===c&&(p=l.getNextNDay(e.start.time,-(7+e.fweek)).time,d=-d);for(var m=0;m<7;m++){var v=l.getNextNDay(p,m),y=l.dataToRect([v.time],!1).center,_=m;_=Math.abs((m+f)%7);var x=new o.Text({z2:30});r.extend(o.setTextStyle(x.style,a,{text:h[_]}),this._weekTextPositionControl(y,n,c,d,g)),i.add(x)}}}});t.exports=c},39554:function(t,e,n){n(42623),n(95978)},95978:function(t,e,n){n(21963),n(30865),n(63243),n(18733),n(83631),n(37384),n(56928)},21354:function(t,e,n){n(21963),n(30865),n(63243),n(35321),n(50563),n(37384),n(56928)},42623:function(t,e,n){n(21963),n(30865),n(63243),n(19918),n(27538),n(37384),n(56928)},778:function(t,e,n){var i=n(95289),r=n(44261),o=n(64601),a=n(96748),s=i.each,l=r.asc,u=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function c(t,e,n){var i=[1/0,-1/0];return s(n,(function(t){var n=t.getData();n&&s(n.mapDimension(e,!0),(function(t){var e=n.getApproximateExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])}))})),i[1]<i[0]&&(i=[NaN,NaN]),h(t,i),i}function h(t,e){var n=t.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),o=r&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!==typeof i?e[0]=i:r&&(e[0]=o>0?0:NaN);var a=n.getMax(!0);return null!=a&&"dataMax"!==a&&"function"!==typeof a?e[1]=a:r&&(e[1]=o>0?o-1:NaN),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function d(t,e){var n=t.getAxisModel(),i=t._percentWindow,o=t._valueWindow;if(i){var a=r.getPixelPrecision(o,[0,500]);a=Math.min(a,20);var s=e||0===i[0]&&100===i[1];n.setRange(s?null:+o[0].toFixed(a),s?null:+o[1].toFixed(a))}}function f(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;s(["min","max"],(function(o){var a=n.get(o+"Span"),s=n.get(o+"ValueSpan");null!=s&&(s=t.getAxisModel().axis.scale.parse(s)),null!=s?a=r.linearMap(i[0]+s,i,[0,100],!0):null!=a&&(s=r.linearMap(a,[0,100],i,!0)-i[0]),e[o+"Span"]=a,e[o+"ValueSpan"]=s}))}u.prototype={constructor:u,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(n){if(o.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,o=this.getAxisModel(),a="x"===i||"y"===i;return a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)})),n},getMinMaxSpan:function(){return i.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e,n=this._dataExtent,i=this.getAxisModel(),o=i.axis.scale,u=this._dataZoomModel.getRangePropMode(),c=[0,100],h=[],d=[];s(["start","end"],(function(i,a){var s=t[i],l=t[i+"Value"];"percent"===u[a]?(null==s&&(s=c[a]),l=o.parse(r.linearMap(s,c,n))):(e=!0,l=null==l?n[a]:o.parse(l),s=r.linearMap(l,n,c)),d[a]=l,h[a]=s})),l(d),l(h);var f=this._minMaxSpan;function p(t,e,n,i,s){var l=s?"Span":"ValueSpan";a(0,t,n,"all",f["min"+l],f["max"+l]);for(var u=0;u<2;u++)e[u]=r.linearMap(t[u],n,i,!0),s&&(e[u]=o.parse(e[u]))}return e?p(d,h,n,c,!1):p(h,d,c,n,!0),{valueWindow:d,percentWindow:h}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,e),f(this);var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,d(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,d(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&s(i,(function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&("weakFilter"===r?e.filterSelf((function(t){for(var n,r,a,s=0;s<i.length;s++){var l=e.get(i[s],t),u=!isNaN(l),c=l<o[0],h=l>o[1];if(u&&!c&&!h)return!0;u&&(a=!0),c&&(n=!0),h&&(r=!0)}return a&&n&&r})):s(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}})),s(i,(function(t){e.setApproximateExtent(o,t)})))}))}function a(t){return t>=o[0]&&t<=o[1]}}};var p=u;t.exports=p},30865:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(95289),a=n(87190),s=n(63199),l=n(64601),u=n(778),c=o.each,h=l.eachAxisDim,d=r.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=f(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=f(t);o.merge(this.option,t,!0),o.merge(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;a.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),p(this,t);var n=this.settledOption;c([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,n,i,r){var o=this.dependentModels[e.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new u(e.name,n,this,r));t[e.name+"_"+n]=a}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();h((function(e){var n=e.axisIndex;t[n]=s.normalizeToArray(t[n])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;h((function(n){null!=t[n.axisIndex]&&(e=!0)}),this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var r="vertical"===e?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],t=!1):c(i.singleAxis,(function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)}))}t&&h((function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var o=0,a=r.length;o<a;o++)"category"===r[o].get("type")&&i.push(o);n[e.axisIndex]=i,i.length&&(t=!1)}}),this),t&&this.ecModel.eachSeries((function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&h((function(e){var i=n[e.axisIndex],r=t.get(e.axisIndex),a=t.get(e.axisId),s=t.ecModel.queryComponents({mainType:e.axis,index:r,id:a})[0];r=s.componentIndex,o.indexOf(i,r)<0&&i.push(r)}))}),this)},_autoSetOrient:function(){var t;this.eachTargetAxis((function(e){!t&&(t=e.name)}),this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var n=!0;return h((function(i){var r=t.get(i.axisIndex),o=this.dependentModels[i.axis][r];o&&o.get("type")===e||(n=!1)}),this),n},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return h((function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}}),this),t},eachTargetAxis:function(t,e){var n=this.ecModel;h((function(i){c(this.get(i.axisIndex),(function(r){t.call(e,i,r,this,n)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t){var e=this.option,n=this.settledOption;c([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),p(this,t)},setCalculatedRange:function(t){var e=this.option;c(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function f(t){var e={};return c(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}function p(t,e){var n=t._rangePropMode,i=t.get("rangeMode");c([["start","startValue"],["end","endValue"]],(function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?n[r]="percent":!o&&a?n[r]="value":i?n[r]=i[r]:o&&(n[r]="percent")}))}var g=d;t.exports=g},63243:function(t,e,n){var i=n(18328),r=i.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};function i(t,e,n,i){for(var r,o=0;o<n.length;o++)if(n[o].model===t){r=n[o];break}r||n.push(r={model:t,axisModels:[],coordIndex:i}),r.axisModels.push(e)}return t.eachTargetAxis((function(t,r){var o=e.getComponent(t.axis,r);if(o){var a=o.getCoordSysModel();a&&i(a,o,n[a.mainType]||(n[a.mainType]=[]),a.componentIndex)}}),this),n}});t.exports=r},18733:function(t,e,n){var i=n(30865),r=i.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});t.exports=r},83631:function(t,e,n){var i=n(95289),r=n(63243),o=n(96748),a=n(87103),s=i.bind,l=r.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,n,r){l.superApply(this,"render",arguments),this._range=t.getPercentRange(),i.each(this.getTargetCoordInfo(),(function(e,r){var o=i.map(e,(function(t){return a.generateCoordId(t.model)}));i.each(e,(function(e){var l=e.model,c={};i.each(["pan","zoom","scrollMove"],(function(t){c[t]=s(u[t],this,e,r)}),this),a.register(n,{coordId:a.generateCoordId(l),allCoordIds:o,containsPoint:function(t,e,n){return l.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,dataZoomModel:t,getRange:c})}),this)}),this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),u={zoom:function(t,e,n,i){var r=this._range,a=r.slice(),s=t.axisModels[0];if(s){var l=h[e](null,[i.originX,i.originY],s,n,t),u=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/i.scale,0);a[0]=(a[0]-u)*c+u,a[1]=(a[1]-u)*c+u;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return o(0,a,[0,100],0,d.minSpan,d.maxSpan),this._range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}},pan:c((function(t,e,n,i,r,o){var a=h[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:c((function(t,e,n,i,r,o){var a=h[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function c(t){return function(e,n,i,r){var a=this._range,s=a.slice(),l=e.axisModels[0];if(l){var u=t(s,l,e,n,i,r);return o(u,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1]?s:void 0}}}var h={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},d=l;t.exports=d},35321:function(t,e,n){var i=n(30865),r=i.extend({type:"dataZoom.select"});t.exports=r},50563:function(t,e,n){var i=n(63243),r=i.extend({type:"dataZoom.select"});t.exports=r},19918:function(t,e,n){var i=n(30865),r=i.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),o=r;t.exports=o},27538:function(t,e,n){var i=n(95289),r=n(88665),o=n(76442),a=n(88336),s=n(63243),l=n(44261),u=n(61570),c=n(96748),h=o.Rect,d=l.linearMap,f=l.asc,p=i.bind,g=i.each,m=7,v=1,y=30,_="horizontal",x="vertical",b=5,w=["line","bar","candlestick","scatter"],S=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){S.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){S.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){S.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new o.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===_?{right:r.width-n.x-n.width,top:r.height-y-m,width:n.width,height:y}:{right:m,top:n.y,width:y,height:n.height},a=u.getLayoutParams(t.option);i.each(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=u.getLayoutRect(a,r,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===x&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==_||r?n===_&&r?{scale:a?[-1,1]:[-1,-1]}:n!==x||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new h({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new h({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:i.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,r=n.getRawData(),a=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=a){var s=r.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,c=[0,e[1]],h=[0,e[0]],f=[[e[0],0],[0,0]],p=[],g=h[1]/(r.count()-1),m=0,v=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(v>0&&e%v)m+=g;else{var n=null==t||isNaN(t)||""===t,i=n?0:d(t,s,c,!0);n&&!u&&e?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&u&&(f.push([m,0]),p.push([m,0])),f.push([m,i]),p.push([m,i]),m+=g,u=n}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:f},style:i.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(o,a){var s=t.getAxisProxy(o.name,a).getTargetSeriesModels();i.each(s,(function(t){if(!n&&!(!0!==e&&i.indexOf(w,t.get("type"))<0)){var s,l=r.getComponent(o.axis,a).axis,u=A(o.name),c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(s=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),n={thisAxis:l,series:t,thisDim:o.name,otherDim:u,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,a=this.dataZoomModel;i.add(t.filler=new h({draggable:!0,cursor:M(this._orient),drift:p(this._onDragMove,this,"all"),ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),i.add(new h({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:v,fill:"rgba(0,0,0,0)"}})),g([0,1],(function(t){var r=o.createIcon(a.get("handleIcon"),{cursor:M(this._orient),draggable:!0,drift:p(this._onDragMove,this,t),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=r.getBoundingRect();this._handleHeight=l.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,r.setStyle(a.getModel("handleStyle").getItemStyle());var u=a.get("handleColor");null!=u&&(r.style.fill=u),i.add(e[t]=r);var c=a.textStyleModel;this.group.add(n[t]=new o.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:c.getTextColor(),textFont:c.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[d(t[0],[0,100],e,!0),d(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];c(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?d(o.minSpan,a,r,!0):null,null!=o.maxSpan?d(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=f([d(i[0],r,a,!0),d(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=f(n.slice()),r=this._size;g([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[t],r[1]/2-o/2]})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,a=["",""];if(e.get("showDetail")){var s=e.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var h=f(this._handleEnds.slice());function d(t){var e=o.getTransform(n.handles[t].parent,this.group),s=o.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+b,u=o.applyTransform([h[t]+(0===t?-l:l),this._size[1]/2],e);i[t].setStyle({x:u[0],y:u[1],textVerticalAlign:r===_?"middle":s,textAlign:r===_?s:"center",text:a[t]})}d.call(this,0),d.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(o,20));return i.isFunction(r)?r(t,a):i.isString(r)?r.replace("{value}",a):a},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n,i){this._dragging=!0,r.stop(i.event);var a=this._displayables.barGroup.getLocalTransform(),s=o.applyTransform([e,n],a,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(g(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}})),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function A(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function M(t){return"vertical"===t?"ns-resize":"ew-resize"}var C=S;t.exports=C},56928:function(t,e,n){var i=n(89231),r=n(95289),o=n(64601);i.registerAction("dataZoom",(function(t,e){var n=o.createLinkedNodesFinder(r.bind(e.eachComponent,e,"dataZoom"),o.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),i=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){i.push.apply(i,n(t).nodes)})),r.each(i,(function(e,n){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))},37384:function(t,e,n){var i=n(89231),r=n(95289),o=r.createHashMap,a=r.each;i.registerProcessor({getTargetSeries:function(t){var e=o();return t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,i){var r=i.getAxisProxy(t.name,n);a(r.getTargetSeriesModels(),(function(t){e.set(t.uid,t)}))}))})),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,i){i.getAxisProxy(t.name,n).reset(i,e)})),t.eachTargetAxis((function(t,n,i){i.getAxisProxy(t.name,n).filterData(i,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}))}})},64601:function(t,e,n){var i=n(95289),r=n(8595),o=["x","y","z","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function s(t){return i.indexOf(a,t)>=0}function l(t,e){t=t.slice();var n=i.map(t,r.capitalFirst);e=(e||[]).slice();var o=i.map(e,r.capitalFirst);return function(r,a){i.each(t,(function(t,i){for(var s={name:t,capital:n[i]},l=0;l<e.length;l++)s[e[l]]=t+o[l];r.call(a,s)}))}}var u=l(o,["axisIndex","axis","index","id"]);function c(t,e,n){return function(n){var i,s={nodes:[],records:{}};if(e((function(t){s.records[t.name]={}})),!n)return s;a(n,s);do{i=!1,t(l)}while(i);function l(t){!r(t,s)&&o(t,s)&&(a(t,s),i=!0)}return s};function r(t,e){return i.indexOf(e.nodes,t)>=0}function o(t,r){var o=!1;return e((function(e){i.each(n(t,e)||[],(function(t){r.records[e.name][t]&&(o=!0)}))})),o}function a(t,r){r.nodes.push(t),e((function(e){i.each(n(t,e)||[],(function(t){r.records[e.name][t]=!0}))}))}}e.isCoordSupported=s,e.createNameEach=l,e.eachAxisDim=u,e.createLinkedNodesFinder=c},5693:function(t,e,n){var i=n(95289),r=i.each,o="\0_ec_hist_store";function a(t,e){var n=c(t);r(e,(function(e,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function s(t){var e=c(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return r(n,(function(t,n){for(var r=e.length-1;r>=0;r--){t=e[r][n];if(t){i[n]=t;break}}})),i}function l(t){t[o]=null}function u(t){return c(t).length}function c(t){var e=t[o];return e||(e=t[o]=[{}]),e}e.push=a,e.pop=s,e.clear=l,e.count=u},87103:function(t,e,n){var i=n(95289),r=n(95441),o=n(88336),a="\0_ec_dataZoom_roams";function s(t,e){var n=c(t),r=e.dataZoomId,a=e.coordId;i.each(n,(function(t,n){var o=t.dataZoomInfos;o[r]&&i.indexOf(e.allCoordIds,a)<0&&(delete o[r],t.count--)})),d(n);var s=n[a];s||(s=n[a]={coordId:a,dataZoomInfos:{},count:0},s.controller=h(t,s),s.dispatchAction=i.curry(f,t)),!s.dataZoomInfos[r]&&s.count++,s.dataZoomInfos[r]=e;var l=p(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(e.containsPoint),o.createOrUpdate(s,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function l(t,e){var n=c(t);i.each(n,(function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)})),d(n)}function u(t){return t.type+"\0_"+t.id}function c(t){var e=t.getZr();return e[a]||(e[a]={})}function h(t,e){var n=new r(t.getZr());return i.each(["pan","zoom","scrollMove"],(function(t){n.on(t,(function(n){var r=[];i.each(e.dataZoomInfos,(function(i){if(n.isAvailableBehavior(i.dataZoomModel.option)){var o=(i.getRange||{})[t],a=o&&o(e.controller,n);!i.dataZoomModel.get("disabled",!0)&&a&&r.push({dataZoomId:i.dataZoomId,start:a[0],end:a[1]})}})),r.length&&e.dispatchAction(r)}))})),n}function d(t){i.each(t,(function(e,n){e.count||(e.controller.dispose(),delete t[n])}))}function f(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function p(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return i.each(t,(function(t){var i=t.dataZoomModel,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),o&=i.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}e.register=s,e.unregister=l,e.generateCoordId=u},21963:function(t,e,n){var i=n(85532);i.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},613:function(t,e,n){var i=n(85532),r=n(18328),o=n(49442),a=o.detectSourceFormat,s=n(90642),l=s.SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),r.extend({type:"dataset"})},61232:function(t,e,n){var i=n(89231),r=n(95289);function o(t,e){e.update="updateView",i.registerAction(e,(function(e,n){var i={};return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;r.each(o.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}))})),{selected:i,name:e.name}}))}n(86867),n(98870),n(73315),n(50704),o("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),o("select",{type:"geoSelect",event:"geoselected"}),o("unSelect",{type:"geoUnSelect",event:"geounselected"})},73315:function(t,e,n){var i=n(75730),r=n(89231),o=r.extendComponentView({type:"geo",init:function(t,e){var n=new i(e,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=o},21393:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(95289),a=n(63199),s=n(76442),l=n(61570),u=n(44261),c=u.parsePercent,h={path:null,compoundPath:null,group:s.Group,image:s.Image,text:s.Text};r.registerPreprocessor((function(t){var e=t.graphic;o.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}));var d=r.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,d.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,s=[];this._flatten(i,s);var l=a.mappingToExists(r,s);a.makeIdAndName(l);var u=this._elOptionsToUpdate=[];o.each(l,(function(t,e){var n=t.option;n&&(u.push(n),v(t,n),y(r,e,n),_(r[e],n))}),this);for(var c=r.length-1;c>=0;c--)null==r[c]?r.splice(c,1):delete r[c].$action},_flatten:function(t,e,n){o.each(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function f(t,e,n,i){var r=n.type,o=h.hasOwnProperty(r)?h[r]:s.getShapeClass(r),a=new o(n);e.add(a),i.set(t,a),a.__ecGraphicId=t}function p(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){p(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function g(t){return t=o.extend({},t),o.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(e){delete t[e]})),t}function m(t,e){var n;return o.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function v(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function y(t,e,n){var i=o.extend({},n),r=t[e],a=n.$action||"merge";"merge"===a?r?(o.merge(r,i,!0),l.mergeLayoutParam(r,i,{ignoreSize:!0}),l.copyLayoutParams(n,r)):t[e]=i:"replace"===a?t[e]=i:"remove"===a&&r&&(t[e]=null)}function _(t,e){t&&(t.hv=e.hv=[m(e,["left","right"]),m(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function x(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}r.extendComponentView({type:"graphic",init:function(t,e){this._elMap=o.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;o.each(e,(function(e){var r=e.$action,o=e.id,a=n.get(o),s=e.parentId,l=null!=s?n.get(s):i,u=e.style;"text"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var c=g(e);r&&"merge"!==r?"replace"===r?(p(a,n),f(o,l,c,n)):"remove"===r&&p(a,n):a?a.attr(c):f(o,l,c,n);var h=n.get(o);h&&(h.__ecGraphicWidthOption=e.width,h.__ecGraphicHeightOption=e.height,x(h,t,e))}))}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=0;s<n.length;s++){var u=n[s],h=r.get(u.id);if(h&&h.isGroup){var d=h.parent,f=d===i;h.__ecGraphicWidth=c(h.__ecGraphicWidthOption,f?o:d.__ecGraphicWidth)||0,h.__ecGraphicHeight=c(h.__ecGraphicHeightOption,f?a:d.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){u=n[s],h=r.get(u.id);if(h){d=h.parent;var p=d===i?{width:o,height:a}:{width:d.__ecGraphicWidth,height:d.__ecGraphicHeight};l.positionElement(h,u,p,null,{hv:u.hv,boundingMode:u.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){p(e,t)})),this._elMap=o.createHashMap()},dispose:function(){this._clear()}})},61029:function(t,e,n){n(48807),n(25178),n(76683)},48807:function(t,e,n){var i=n(89231),r=n(95289),o=n(76442);n(31020),n(49548),i.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new o.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))},33478:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(36112),a=n(76442),s=n(58391),l=n(1032),u=r.curry,c=r.each,h=r.map,d=Math.min,f=Math.max,p=Math.pow,g=1e4,m=6,v=6,y="globalPan",_={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},x={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},b={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},w=0;function S(t){o.call(this),this._zr=t,this.group=new a.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+w++,this._handlers={},c(rt,(function(t,e){this._handlers[e]=r.bind(t,this)}),this)}function A(t,e){var n=t._zr;t._enableGlobalPan||s.take(n,y,t._uid),C(n,t._handlers),t._brushType=e.brushType,t._brushOption=r.merge(r.clone(b),e,!0)}function M(t){var e=t._zr;s.release(e,y,t._uid),I(e,t._handlers),t._brushType=t._brushOption=null}function C(t,e){c(e,(function(e,n){t.on(n,e)}))}function I(t,e){c(e,(function(e,n){t.off(n,e)}))}function T(t,e){var n=st[e.brushType].createCover(t,e);return n.__brushOption=e,P(n,e),t.group.add(n),n}function E(t,e){var n=R(e);return n.endCreating&&(n.endCreating(t,e),P(e,e.__brushOption)),e}function D(t,e){var n=e.__brushOption;R(e).updateCoverShape(t,e,n.range,n)}function P(t,e){var n=e.z;null==n&&(n=g),t.traverse((function(t){t.z=n,t.z2=n}))}function L(t,e){R(e).updateCommon(t,e),D(t,e)}function R(t){return st[t.__brushOption.brushType]}function O(t,e,n){var i,r=t._panels;if(!r)return!0;var o=t._transform;return c(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function k(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function N(t){var e=t._covers,n=e.length;return c(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function F(t,e){var n=h(t._covers,(function(t){var e=t.__brushOption,n=r.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function z(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1],a=p(r*r+o*o,.5);return a>m}function B(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function G(t,e,n,i){var r=new a.Group;return r.add(new a.Rect({name:"main",style:H(n),silent:!0,draggable:!0,cursor:"move",drift:u(t,e,r,"nswe"),ondragend:u(F,e,{isEnd:!0})})),c(i,(function(n){r.add(new a.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(t,e,r,n),ondragend:u(F,e,{isEnd:!0})}))})),r}function V(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=f(r,v),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,g=c-a,m=h-s,y=g+r,_=m+r;j(t,e,"main",a,s,g,m),i.transformable&&(j(t,e,"w",l,u,o,_),j(t,e,"e",d,u,o,_),j(t,e,"n",l,u,y,o),j(t,e,"s",l,p,y,o),j(t,e,"nw",l,u,o,o),j(t,e,"ne",d,u,o,o),j(t,e,"sw",l,p,o,o),j(t,e,"se",d,p,o,o))}function W(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(H(n)),r.attr({silent:!i,cursor:i?"move":"default"}),c(["w","e","n","s","se","sw","ne","nw"],(function(n){var r=e.childOfName(n),o=X(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?x[o]+"-resize":null})}))}function j(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(J(K(t,e,[[i,r],[i+o,r+a]])))}function H(t){return r.defaults({strokeNoScale:!0},t.brushStyle)}function Y(t,e,n,i){var r=[d(t,n),d(e,i)],o=[f(t,n),f(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function U(t){return a.getTransform(t.group)}function X(t,e){if(e.length>1){e=e.split("");var n=[X(t,e[0]),X(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"};n=a.transformDirection(i[e],U(t));return r[n]}function Z(t,e,n,i,r,o,a,s){var l=i.__brushOption,u=t(l.range),h=$(n,o,a);c(r.split(""),(function(t){var e=_[t];u[e[0]][e[1]]+=h[e[0]]})),l.range=e(Y(u[0][0],u[1][0],u[0][1],u[1][1])),L(n,i),F(n,{isEnd:!1})}function q(t,e,n,i,r){var o=e.__brushOption.range,a=$(t,n,i);c(o,(function(t){t[0]+=a[0],t[1]+=a[1]})),L(t,e),F(t,{isEnd:!1})}function $(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function K(t,e,n){var i=k(t,e);return i&&!0!==i?i.clipPath(n,t._transform):r.clone(n)}function J(t){var e=d(t[0][0],t[1][0]),n=d(t[0][1],t[1][1]),i=f(t[0][0],t[1][0]),r=f(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function Q(t,e,n){if(t._brushType&&!at(t,e)){var i=t._zr,r=t._covers,o=O(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&st[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function tt(t){var e=t.event;e.preventDefault&&e.preventDefault()}function et(t,e,n){return t.childOfName("main").contain(e,n)}function nt(t,e,n,i){var o,a=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),z(t)||a){if(s&&!a){"single"===l.brushMode&&N(t);var u=r.clone(l);u.brushType=it(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=t._creatingCover=T(t,u),t._covers.push(a)}if(a){var c=st[it(t._brushType,s)],h=a.__brushOption;h.range=c.getCreatingRange(K(t,a,t._track)),i&&(E(t,a),c.updateCommon(t,a)),D(t,a),o={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&O(t,e,n)&&N(t)&&(o={isEnd:i,removeOnClick:!0});return o}function it(t,e){return"auto"===t?e.defaultBrushType:t}S.prototype={constructor:S,enableBrush:function(t){return this._brushType&&M(this),t.brushType&&A(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};r.each(t,(function(t){e[t.panelId]=r.clone(t)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){c(this._covers,t,e)},updateCovers:function(t){t=r.map(t,(function(t){return r.merge(r.clone(b),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,a=this._creatingCover;return new l(n,t,u,s).add(c).update(c).remove(h).execute(),this;function s(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function u(t,e){return s(t.__brushOption,e)}function c(e,r){var s=t[e];if(null!=r&&n[r]===a)i[e]=n[r];else{var l=i[e]=null!=r?(n[r].__brushOption=s,n[r]):E(o,T(o,s));L(o,l)}}function h(t){n[t]!==a&&o.group.remove(n[t])}},unmount:function(){return this.enableBrush(!1),N(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},r.mixin(S,o);var rt={mousedown:function(t){if(this._dragging)ot(this,t);else if(!t.target||!t.target.draggable){tt(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=O(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(Q(this,t,i),this._dragging){tt(t);var r=nt(this,t,i,!1);r&&F(this,r)}},mouseup:function(t){ot(this,t)}};function ot(t,e){if(t._dragging){tt(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=nt(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&F(t,o)}}function at(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}var st={lineX:lt(0),lineY:lt(1),rect:{createCover:function(t,e){return G(u(Z,(function(t){return t}),(function(t){return t})),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=B(t);return Y(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){V(t,e,n,i)},updateCommon:W,contain:et},polygon:{createCover:function(t,e){var n=new a.Group;return n.add(new a.Polyline({name:"main",style:H(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new a.Polygon({name:"main",draggable:!0,drift:u(q,t,e),ondragend:u(F,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:K(t,e,n)})},updateCommon:W,contain:et}};function lt(t){return{createCover:function(e,n){return G(u(Z,(function(e){var n=[e,[0,100]];return t&&n.reverse(),n}),(function(e){return e[t]})),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=B(e),i=d(n[0][t],n[1][t]),r=f(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,a=k(e,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),V(e,n,l,r)},updateCommon:W,contain:et}}var ut=S;t.exports=ut},74080:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(76442),a=n(63199),s=n(54266),l=r.each,u=r.indexOf,c=r.curry,h=["dataToPoint","pointToData"],d=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function f(t,e,n){var i=this._targetInfoList=[],r={},o=m(e,t);l(v,(function(t,e){(!n||!n.include||u(n.include,e)>=0)&&t(o,i,r)}))}var p=f.prototype;function g(t){return t[0]>t[1]&&t.reverse(),t}function m(t,e){return a.parseFinder(t,e,{includeMainTypes:d})}p.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=x[t.brushType](0,n,e);t.__rangeOffset={offset:w[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}))},p.matchOutputRanges=function(t,e,n){l(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&r.each(i.coordSyses,(function(i){var r=x[t.brushType](1,i,t.range);n(t,r.values,i,e)}))}),this)},p.setInputRanges=function(t,e){l(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=x[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?w[t.brushType](i.values,r.offset,A(i.xyMinMax,r.xyMinMax)):i.values}}),this)},p.makePanelOpts=function(t,e){return r.map(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:s.makeRectPanelClipPath(i),isTargetByCursor:s.makeRectIsTargetByCursor(i,t,n.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(i)}}))},p.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&u(i.coordSyses,e.coordinateSystem)>=0},p.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=m(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(r=0;r<y.length;r++)if(y[r](i,o))return o}return!0};var v={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=t.gridModels,a=r.createHashMap(),s={},c={};(n||i||o)&&(l(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),l(i,(function(t){var e=t.axis.grid.model;a.set(e.id,e),c[e.id]=!0})),l(o,(function(t){a.set(t.id,t),s[t.id]=!0,c[t.id]=!0})),a.each((function(t){var r=t.coordinateSystem,o=[];l(r.getCartesians(),(function(t,e){(u(n,t.getAxis("x").model)>=0||u(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:_.grid,xAxisDeclared:s[t.id],yAxisDeclared:c[t.id]})})))},geo:function(t,e){l(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:_.geo})}))}},y=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],_={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(o.getTransform(t)),e}},x={lineX:c(b,0),lineY:c(b,1),rect:function(t,e,n){var i=e[h[t]]([n[0][0],n[1][0]]),r=e[h[t]]([n[0][1],n[1][1]]),o=[g([i[0],r[0]]),g([i[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],o=r.map(n,(function(n){var r=e[h[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r}));return{values:o,xyMinMax:i}}};function b(t,e,n,i){var o=n.getAxis(["x","y"][t]),a=g(r.map([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t])):o.toGlobalCoord(o.dataToCoord(i[t]))}))),s=[];return s[t]=a,s[1-t]=[NaN,NaN],{values:a,xyMinMax:s}}var w={lineX:c(S,0),lineY:c(S,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return r.map(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function S(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function A(t,e){var n=M(t),i=M(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function M(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var C=f;t.exports=C},75730:function(t,e,n){var i=n(95289),r=n(95441),o=n(43173),a=n(47114),s=a.onIrrelevantElement,l=n(76442),u=n(80218),c=n(79865),h=c.getUID,d=n(38051);function f(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function p(t,e,n,r,o){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",(function(){t._mouseDownFlag=!0})),n.on("click",(function(a){if(t._mouseDownFlag){t._mouseDownFlag=!1;var s=a.target;while(!s.__regions)s=s.parent;if(s){var l={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:i.map(s.__regions,(function(t){return{name:t.name,from:o.uid}}))};l[e.mainType+"Id"]=e.id,r.dispatchAction(l),g(e,n)}}})))}function g(t,e){e.eachChild((function(e){i.each(e.__regions,(function(n){e.trigger(t.isSelected(n.name)?"emphasis":"normal")}))}))}function m(t,e){var n=new l.Group;this.uid=h("ec_map_draw"),this._controller=new r(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new l.Group),n.add(this._backgroundGroup=new l.Group)}m.prototype={constructor:m,draw:function(t,e,n,r,o){var a="geo"===t.mainType,s=t.getData&&t.getData();a&&e.eachComponent({mainType:"series",subType:"map"},(function(e){s||e.getHostGeoModel()!==t||(s=e.getData())}));var u=t.coordinateSystem;this._updateBackground(u);var c,h=this._regionsGroup,m=this.group,v=u.getTransformInfo(),y=!h.childAt(0)||o;if(y)m.transform=v.roamTransform,m.decomposeTransform(),m.dirty();else{var _=new d;_.transform=v.roamTransform,_.decomposeTransform();var x={scale:_.scale,position:_.position};c=_.scale,l.updateProps(m,x,t)}var b=v.rawScale,w=v.rawPosition;h.removeAll();var S=["itemStyle"],A=["emphasis","itemStyle"],M=["label"],C=["emphasis","label"],I=i.createHashMap();i.each(u.regions,(function(e){var n=I.get(e.name)||I.set(e.name,new l.Group),r=new l.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});n.add(r);var o,u=t.getRegionModel(e.name)||t,d=u.getModel(S),p=u.getModel(A),g=f(d),v=f(p),_=u.getModel(M),x=u.getModel(C);if(s){o=s.indexOfName(e.name);var T=s.getItemVisual(o,"color",!0);T&&(g.fill=T)}var E=function(t){return[t[0]*b[0]+w[0],t[1]*b[1]+w[1]]};i.each(e.geometries,(function(t){if("polygon"===t.type){for(var e=[],n=0;n<t.exterior.length;++n)e.push(E(t.exterior[n]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}));for(n=0;n<(t.interiors?t.interiors.length:0);++n){for(var i=t.interiors[n],o=(e=[],0);o<i.length;++o)e.push(E(i[o]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}))}}})),r.setStyle(g),r.style.strokeNoScale=!0,r.culling=!0;var D=_.get("show"),P=x.get("show"),L=s&&isNaN(s.get(s.mapDimension("value"),o)),R=s&&s.getItemLayout(o);if(a||L&&(D||P)||R&&R.showLabel){var O,k=a?e.name:o;(!s||o>=0)&&(O=t);var N=new l.Text({position:E(e.center.slice()),scale:[1/m.scale[0],1/m.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(N.style,N.hoverStyle={},_,x,{labelFetcher:O,labelDataIndex:k,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!y){var F=[1/c[0],1/c[1]];l.updateProps(N,{scale:F},t)}n.add(N)}if(s)s.setItemGraphicEl(o,n);else{u=t.getRegionModel(e.name);r.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:u&&u.option||{}}}var z=n.__regions||(n.__regions=[]);z.push(e),n.highDownSilentOnTouch=!!t.get("selectedMode"),l.setHoverStyle(n,v),h.add(n)})),this._updateController(t,e,n),p(this,t,h,n,r),g(t,h)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&u.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&i.each(u.makeGraphic(e,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=e},_updateController:function(t,e,n){var r=t.coordinateSystem,a=this._controller,l=this._controllerHost;l.zoomLimit=t.get("scaleLimit"),l.zoom=r.getZoom(),a.enable(t.get("roam")||!1);var u=t.mainType;function c(){var e={type:"geoRoam",componentType:u};return e[u+"Id"]=t.id,e}a.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,o.updateViewOnPan(l,t.dx,t.dy),n.dispatchAction(i.extend(c(),{dx:t.dx,dy:t.dy}))}),this),a.off("zoom").on("zoom",(function(t){if(this._mouseDownFlag=!1,o.updateViewOnZoom(l,t.scale,t.originX,t.originY),n.dispatchAction(i.extend(c(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])}))}}),this),a.setPointerChecker((function(e,i,o){return r.getViewRectAfterRoam().contain(i,o)&&!s(e,n,t)}))}};var v=m;t.exports=v},95441:function(t,e,n){var i=n(95289),r=n(36112),o=n(88665),a=n(58391);function s(t){this.pointerChecker,this._zr=t,this._opt={};var e=i.bind,n=e(l,this),o=e(u,this),a=e(c,this),s=e(h,this),f=e(d,this);r.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,r){this.disable(),this._opt=i.defaults(i.clone(r)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",o),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",s),t.on("pinch",f))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",o),t.off("mouseup",a),t.off("mousewheel",s),t.off("pinch",f)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(t){if(!(o.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function u(t){if(this._dragging&&g("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!a.isTaken(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,s=e-i,l=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&o.stop(t.event),p(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:r,newX:e,newY:n})}}function c(t){o.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function h(t){var e=g("zoomOnMouseWheel",t,this._opt),n=g("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;f(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);f(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a})}}}function d(t){if(!a.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;f(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function f(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(o.stop(i.event),p(t,e,n,i,r))}function p(t,e,n,r,o){o.isAvailableBehavior=i.bind(g,null,n,r),t.trigger(e,o)}function g(t,e,n){var r=n[t];return!t||r&&(!i.isString(r)||e.event[r+"Key"])}i.mixin(s,r);var m=s;t.exports=m},54266:function(t,e,n){var i=n(39587),r=n(47114),o=r.onIrrelevantElement,a=n(76442);function s(t){return t=c(t),function(e,n){return a.clipPointsByRect(e,t)}}function l(t,e){return t=c(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function u(t,e,n){return t=c(t),function(i,r,a){return t.contain(r[0],r[1])&&!o(i,e,n)}}function c(t){return i.create(t)}e.makeRectPanelClipPath=s,e.makeLinearBrushOtherExtent=l,e.makeRectIsTargetByCursor=u},47114:function(t,e){var n={axisPointer:1,tooltip:1,brush:1};function i(t,e,i){var r=e.getComponentByElement(t.topTarget),o=r&&r.coordinateSystem;return r&&r!==i&&!n[r.mainType]&&o&&o.model!==i}e.onIrrelevantElement=i},58391:function(t,e,n){var i=n(89231),r="\0_ec_interaction_mutex";function o(t,e,n){var i=l(t);i[e]=n}function a(t,e,n){var i=l(t),r=i[e];r===n&&(i[e]=null)}function s(t,e){return!!l(t)[e]}function l(t){return t[r]||(t[r]={})}i.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),e.take=o,e.release=a,e.isTaken=s},13785:function(t,e,n){var i=n(61570),r=i.getLayoutRect,o=i.box,a=i.positionElement,s=n(8595),l=n(76442);function u(t,e,n){var i=e.getBoxLayoutParams(),s=e.get("padding"),l={width:n.getWidth(),height:n.getHeight()},u=r(i,l,s);o(e.get("orient"),t,e.get("itemGap"),u.width,u.height),a(t,i,l,s)}function c(t,e){var n=s.normalizeCssArray(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");t=new l.Rect({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return t}e.layout=u,e.makeBackground=c},43173:function(t,e){function n(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()}function i(t,e,n,i){var r=t.target,o=t.zoomLimit,a=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,c=o.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,a[0]-=(n-a[0])*(h-1),a[1]-=(i-a[1])*(h-1),s[0]*=h,s[1]*=h,r.dirty()}e.updateViewOnPan=n,e.updateViewOnZoom=i},18171:function(t,e,n){var i=n(95289),r={updateSelectedMap:function(t){this._targetList=i.isArray(t)?t.slice():[],this._selectTargetMap=i.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),i.createHashMap())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t),i=this.get("selectedMode");"single"===i&&this._selectTargetMap.each((function(t){t.selected=!1})),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}};t.exports=r},96748:function(t){function e(t,e,r,o,a,s){t=t||0;var l=r[1]-r[0];if(null!=a&&(a=i(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===o){var u=Math.abs(e[1]-e[0]);u=i(u,[0,l]),a=s=i(u,[a,s]),o=0}e[0]=i(e[0],r),e[1]=i(e[1],r);var c=n(e,o);e[o]+=t;var h=a||0,d=r.slice();c.sign<0?d[0]+=h:d[1]-=h,e[o]=i(e[o],d);var f=n(e,o);null!=a&&(f.sign!==c.sign||f.span<a)&&(e[1-o]=e[o]+c.sign*a);f=n(e,o);return null!=s&&f.span>s&&(e[1-o]=e[o]+f.sign*s),e}function n(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function i(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}t.exports=e},59608:function(t,e,n){var i=n(89231);n(29629),n(82180),n(76575);var r=n(99268),o=n(85532);i.registerProcessor(i.PRIORITY.PROCESSOR.SERIES_FILTER,r),o.registerSubTypeDefaulter("legend",(function(){return"plain"}))},84069:function(t,e,n){n(59608),n(51866),n(30422),n(25257)},29629:function(t,e,n){var i=n(89231),r=n(95289),o=n(40590),a=n(63199),s=a.isNameSpecified,l=n(49777),u=l.legend.selector,c={all:{type:"all",title:r.clone(u.all)},inverse:{type:"inverse",title:r.clone(u.inverse)}},h=i.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){h.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;!0===e&&(e=t.selector=["all","inverse"]),r.isArray(e)&&r.each(e,(function(t,n){r.isString(t)&&(t={type:t}),e[n]=r.merge(t,c[t.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider,l=a.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(l)),l.length?e=e.concat(l):r=!0}else r=!0;r&&s(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,a=r.map(i,(function(t){return"string"!==typeof t&&"number"!==typeof t||(t={name:t}),new o(t,this,this.ecModel)}),this);this._data=a},getData:function(){return this._data},select:function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;r.each(i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){e[t.get("name",!0)]=!0}))},inverseSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&r.indexOf(this._availableNames,t)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),d=h;t.exports=d},76575:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(95289),a=n(22864),s=a.createSymbol,l=n(76442),u=n(13785),c=u.makeBackground,h=n(61570),d=o.curry,f=o.each,p=l.Group,g=r.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new p),this._backgroundEl,this.group.add(this._selectorGroup=new p),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),a=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===a?"right":"left");var s=t.get("selector",!0),l=t.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(r,t,e,n,s,a,l);var u=t.getBoxLayoutParams(),d={width:n.getWidth(),height:n.getHeight()},f=t.get("padding"),p=h.getLayoutRect(u,d,f),g=this.layoutInner(t,r,p,i,s,l),m=h.getLayoutRect(o.defaults({width:g.width,height:g.height},u),d,f);this.group.attr("position",[m.x-g.x,m.y-g.y]),this.group.add(this._backgroundEl=c(g,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,n,i,r,a,s){var l=this.getContentGroup(),u=o.createHashMap(),c=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),f(e.getData(),(function(r,o){var a=r.get("name");if(this.newlineDisabled||""!==a&&"\n"!==a){var s=n.getSeriesByName(a)[0];if(!u.get(a))if(s){var f=s.getData(),g=f.getVisual("color"),m=f.getVisual("borderColor");"function"===typeof g&&(g=g(s.getDataParams(0))),"function"===typeof m&&(m=m(s.getDataParams(0)));var x=f.getVisual("legendSymbol")||"roundRect",b=f.getVisual("symbol"),w=this._createItem(a,o,r,e,x,b,t,g,m,c);w.on("click",d(v,a,null,i,h)).on("mouseover",d(y,s.name,null,i,h)).on("mouseout",d(_,s.name,null,i,h)),u.set(a,!0)}else n.eachRawSeries((function(n){if(!u.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var l=s.indexOfName(a),f=s.getItemVisual(l,"color"),p=s.getItemVisual(l,"borderColor"),g="roundRect",m=this._createItem(a,o,r,e,g,null,t,f,p,c);m.on("click",d(v,null,a,i,h)).on("mouseover",d(y,null,a,i,h)).on("mouseout",d(_,null,a,i,h)),u.set(a,!0)}}),this)}else l.add(new p({newline:!0}))}),this),r&&this._createSelector(r,e,i,a,s)},_createSelector:function(t,e,n,i,r){var o=this.getSelectorGroup();function a(t){var i=t.type,r=new l.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel("emphasis.selectorLabel");l.setLabelStyle(r.style,r.hoverStyle={},a,s,{defaultText:t.title,isRectText:!1}),l.setHoverStyle(r)}f(t,(function(t){a(t)}))},_createItem:function(t,e,n,i,r,a,u,c,h,d){var f=i.get("itemWidth"),g=i.get("itemHeight"),v=i.get("inactiveColor"),y=i.get("inactiveBorderColor"),_=i.get("symbolKeepAspect"),x=i.getModel("itemStyle"),b=i.isSelected(t),w=new p,S=n.getModel("textStyle"),A=n.get("icon"),M=n.getModel("tooltip"),C=M.parentModel;r=A||r;var I=s(r,0,0,f,g,b?c:v,null==_||_);if(w.add(m(I,r,x,h,y,b)),!A&&a&&(a!==r||"none"===a)){var T=.8*g;"none"===a&&(a="circle");var E=s(a,(f-T)/2,(g-T)/2,T,T,b?c:v,null==_||_);w.add(m(E,a,x,h,y,b))}var D="left"===u?f+5:-5,P=u,L=i.get("formatter"),R=t;"string"===typeof L&&L?R=L.replace("{name}",null!=t?t:""):"function"===typeof L&&(R=L(t)),w.add(new l.Text({style:l.setTextStyle({},S,{text:R,x:D,y:g/2,textFill:b?S.getTextColor():v,textAlign:P,textVerticalAlign:"middle"})}));var O=new l.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:M.get("show")?o.extend({content:t,formatter:C.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},M.option):null});return w.add(O),w.eachChild((function(t){t.silent=!0})),O.silent=!d,this.getContentGroup().add(w),l.setHoverStyle(w),w.__legendDataIndex=e,w},layoutInner:function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();h.box(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(r){h.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",m=0===p?"height":"width",v=0===p?"y":"x";"end"===o?d[p]+=l[g]+f:u[p]+=c[g]+f,d[1-p]+=l[m]/2-c[m]/2,s.attr("position",d),a.attr("position",u);var y={x:0,y:0};return y[g]=l[g]+f+c[g],y[m]=Math.max(l[m],c[m]),y[v]=Math.min(0,c[v]+d[1-p]),y}return a.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function m(t,e,n,i,r,o){var a;return"line"!==e&&e.indexOf("empty")<0?(a=n.getItemStyle(),t.style.stroke=i,o||(a.stroke=r)):a=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(a)}function v(t,e,n,i){_(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),y(t,e,n,i)}function y(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function _(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}t.exports=g},51866:function(t,e,n){var i=n(29629),r=n(61570),o=r.mergeLayoutParam,a=r.getLayoutParams,s=i.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,n,i){var r=a(t);s.superCall(this,"init",t,e,n,i),l(this,t,r)},mergeOption:function(t,e){s.superCall(this,"mergeOption",t,e),l(this,this.option,t)}});function l(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,o(e,n,{type:"box",ignoreSize:r})}var u=s;t.exports=u},30422:function(t,e,n){var i=n(95289),r=n(76442),o=n(61570),a=n(76575),s=r.Group,l=["width","height"],u=["x","y"],c=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,n,o,a,s,l){var u=this;c.superCall(this,"renderInner",t,e,n,o,a,s,l);var h=this._controllerGroup,d=e.get("pageIconSize",!0);i.isArray(d)||(d=[d,d]),p("pagePrev",0);var f=e.getModel("pageTextStyle");function p(t,n){var a=t+"DataIndex",s=r.createIcon(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:i.bind(u._pageGo,u,a,e,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=t,h.add(s)}h.add(new r.Text({name:"pageText",style:{textFill:f.getTextColor(),font:f.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),p("pageNext",1)},layoutInner:function(t,e,n,r,a,s){var c=this.getSelectorGroup(),h=t.getOrient().index,d=l[h],f=u[h],p=l[1-h],g=u[1-h];a&&o.box("horizontal",c,t.get("selectorItemGap",!0));var m=t.get("selectorButtonGap",!0),v=c.getBoundingRect(),y=[-v.x,-v.y],_=i.clone(n);a&&(_[d]=n[d]-v[d]-m);var x=this._layoutContentAndController(t,r,_,h,d,p,g);if(a){if("end"===s)y[h]+=x[d]+m;else{var b=v[d]+m;y[h]-=b,x[f]-=b}x[d]+=v[d]+m,y[1-h]+=x[g]+x[p]/2-v[p]/2,x[p]=Math.max(x[p],v[p]),x[g]=Math.min(x[g],v[g]+y[1-h]),c.attr("position",y)}return x},_layoutContentAndController:function(t,e,n,a,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;o.box(t.get("orient"),c,t.get("itemGap"),a?n.width:null,a?null:n.height),o.box("horizontal",d,t.get("pageButtonItemGap",!0));var f=c.getBoundingRect(),p=d.getBoundingRect(),g=this._showController=f[s]>n[s],m=[-f.x,-f.y];e||(m[a]=c.position[a]);var v=[0,0],y=[-p.x,-p.y],_=i.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var x=t.get("pageButtonPosition",!0);"end"===x?y[a]+=n[s]-p[s]:v[a]+=p[s]+_}y[1-a]+=f[l]/2-p[l]/2,c.attr("position",m),h.attr("position",v),d.attr("position",y);var b={x:0,y:0};if(b[s]=g?n[s]:f[s],b[l]=Math.max(f[l],p[l]),b[u]=Math.min(0,p[u]+y[1-a]),h.__rectSize=n[s],g){var w={x:0,y:0};w[s]=Math.max(n[s]-p[s]-_,0),w[l]=b[l],h.setClipPath(new r.Rect({shape:w})),h.__rectSize=w[s]}else d.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(t);return null!=S.pageIndex&&r.updateProps(c,{position:S.contentPosition},!!g&&t),this._updatePageInfoView(t,S),b},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var r=n.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,s=null!=a?a+1:0,l=e.pageCount;r&&o&&r.setStyle("text",i.isString(o)?o.replace("{current}",s).replace("{total}",l):o({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=l[r],a=u[r],s=this._findTargetItemIndex(e),c=n.children(),h=c[s],d=c.length,f=d?1:0,p={contentPosition:n.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var g=x(h);p.contentPosition[r]=-g.s;for(var m=s+1,v=g,y=g,_=null;m<=d;++m)_=x(c[m]),(!_&&y.e>v.s+i||_&&!b(_,v.s))&&(v=y.i>v.i?y:_,v&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=v.i),++p.pageCount)),y=_;for(m=s-1,v=g,y=g,_=null;m>=-1;--m)_=x(c[m]),_&&b(y,_.s)||!(v.i<y.i)||(y=v,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=v.i),++p.pageCount,++p.pageIndex),v=_;return p;function x(t){if(t){var e=t.getBoundingRect(),n=e[a]+t.position[r];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+i}},_findTargetItemIndex:function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n}}),h=c;t.exports=h},82180:function(t,e,n){var i=n(89231),r=n(95289);function o(t,e,n){var i,o={},a="toggleSelected"===t;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();r.each(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);o.hasOwnProperty(e)?o[e]=o[e]&&i:o[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}i.registerAction("legendToggleSelect","legendselectchanged",r.curry(o,"toggleSelected")),i.registerAction("legendAllSelect","legendselectall",r.curry(o,"allSelect")),i.registerAction("legendInverseSelect","legendinverseselect",r.curry(o,"inverseSelect")),i.registerAction("legendSelect","legendselected",r.curry(o,"select")),i.registerAction("legendUnSelect","legendunselected",r.curry(o,"unSelect"))},99268:function(t){function e(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}t.exports=e},25257:function(t,e,n){var i=n(89231);i.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))},54281:function(t,e,n){var i=n(89231);n(30225),n(17483),i.registerPreprocessor((function(t){t.markArea=t.markArea||{}}))},47106:function(t,e,n){var i=n(89231);n(14124),n(58120),i.registerPreprocessor((function(t){t.markLine=t.markLine||{}}))},87976:function(t,e,n){var i=n(89231);n(85304),n(16796),i.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}}))},30225:function(t,e,n){var i=n(89955),r=i.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});t.exports=r},17483:function(t,e,n){var i=n(95289),r=n(56607),o=n(5628),a=n(44261),s=n(76442),l=n(18312),u=n(47381),c=function(t,e,n,r){var o=l.dataTransform(t,r[0]),a=l.dataTransform(t,r[1]),s=i.retrieve,u=o.coord,c=a.coord;u[0]=s(u[0],-1/0),u[1]=s(u[1],-1/0),c[0]=s(c[0],1/0),c[1]=s(c[1],1/0);var h=i.mergeAll([{},o,a]);return h.coord=[o.coord,a.coord],h.x0=o.x,h.y0=o.y,h.x1=a.x,h.y1=a.y,h};function h(t){return!isNaN(t)&&!isFinite(t)}function d(t,e,n,i){var r=1-t;return h(e[r])&&h(n[r])}function f(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!d(1,n,i,t)&&!d(0,n,i,t))||(l.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||l.dataFilter(t,{coord:i,x:e.x1,y:e.y1}))}function p(t,e,n,i,r){var o,s=i.coordinateSystem,l=t.getItemModel(e),u=a.parsePercent(l.get(n[0]),r.getWidth()),c=a.parsePercent(l.get(n[1]),r.getHeight());if(isNaN(u)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var d=t.get(n[0],e),f=t.get(n[1],e),p=[d,f];s.clampData&&s.clampData(p,p),o=s.dataToPoint(p,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");d=t.get(n[0],e),f=t.get(n[1],e);h(d)?o[0]=g.toGlobalCoord(g.getExtent()["x0"===n[0]?0:1]):h(f)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];return o}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function m(t,e,n){var r,a,s=["x0","y0","x1","y1"];t?(r=i.map(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return i.defaults({name:t},r)})),a=new o(i.map(s,(function(t,e){return{name:t,type:r[e%2].type}})),n)):(r=[{name:"value",type:"float"}],a=new o(r,n));var l=i.map(n.get("data"),i.curry(c,e,t,n));t&&(l=i.filter(l,i.curry(f,t)));var u=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return a.initData(l,null,u),a.hasItemOption=!0,a}u.extend({type:"markArea",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markAreaModel;if(e){var r=e.getData();r.each((function(e){var o=i.map(g,(function(i){return p(r,e,i,t,n)}));r.setItemLayout(e,o);var a=r.getItemGraphicEl(e);a.setShape("points",o)}))}}),this)},renderSeries:function(t,e,n,o){var a=t.coordinateSystem,l=t.id,u=t.getData(),c=this.markerGroupMap,d=c.get(l)||c.set(l,{group:new s.Group});this.group.add(d.group),d.__keep=!0;var f=m(a,t,e);e.setData(f),f.each((function(e){var n=i.map(g,(function(n){return p(f,e,n,t,o)})),r=!0;i.each(g,(function(t){if(r){var n=f.get(t[0],e),i=f.get(t[1],e);(h(n)||a.getAxis("x").containData(n))&&(h(i)||a.getAxis("y").containData(i))&&(r=!1)}})),f.setItemLayout(e,{points:n,allClipped:r}),f.setItemVisual(e,{color:u.getVisual("color")})})),f.diff(d.__data).add((function(t){var e=f.getItemLayout(t);if(!e.allClipped){var n=new s.Polygon({shape:{points:e.points}});f.setItemGraphicEl(t,n),d.group.add(n)}})).update((function(t,n){var i=d.__data.getItemGraphicEl(n),r=f.getItemLayout(t);r.allClipped?i&&d.group.remove(i):(i?s.updateProps(i,{shape:{points:r.points}},e,t):i=new s.Polygon({shape:{points:r.points}}),f.setItemGraphicEl(t,i),d.group.add(i))})).remove((function(t){var e=d.__data.getItemGraphicEl(t);d.group.remove(e)})).execute(),f.eachItemGraphicEl((function(t,n){var o=f.getItemModel(n),a=o.getModel("label"),l=o.getModel("emphasis.label"),u=f.getItemVisual(n,"color");t.useStyle(i.defaults(o.getModel("itemStyle").getItemStyle(),{fill:r.modifyAlpha(u,.4),stroke:u})),t.hoverStyle=o.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(t.style,t.hoverStyle,a,l,{labelFetcher:e,labelDataIndex:n,defaultText:f.getName(n)||"",isRectText:!0,autoColor:u}),s.setHoverStyle(t,{}),t.dataModel=e})),d.__data=f,d.group.silent=e.get("silent")||t.get("silent")}})},14124:function(t,e,n){var i=n(89955),r=i.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});t.exports=r},58120:function(t,e,n){var i=n(95289),r=n(5628),o=n(44261),a=n(18312),s=n(73643),l=n(47381),u=n(74051),c=u.getStackedDimension,h=function(t,e,n,r){var o=t.getData(),s=r.type;if(!i.isArray(r)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=r.xAxis||null!=r.yAxis)){var l,u;if(null!=r.yAxis||null!=r.xAxis)l=e.getAxis(null!=r.yAxis?"y":"x"),u=i.retrieve(r.yAxis,r.xAxis);else{var h=a.getAxisInfo(r,o,e,t);l=h.valueAxis;var d=c(o,h.valueDataDim);u=a.numCalculate(o,d,s)}var f="x"===l.dim?0:1,p=1-f,g=i.clone(r),m={};g.type=null,g.coord=[],m.coord=[],g.coord[p]=-1/0,m.coord[p]=1/0;var v=n.get("precision");v>=0&&"number"===typeof u&&(u=+u.toFixed(Math.min(v,20))),g.coord[f]=m.coord[f]=u,r=[g,m,{type:s,valueIndex:r.valueIndex,value:u}]}return r=[a.dataTransform(t,r[0]),a.dataTransform(t,r[1]),i.extend({},r[2])],r[2].type=r[2].type||"",i.merge(r[2],r[0]),i.merge(r[2],r[1]),r};function d(t){return!isNaN(t)&&!isFinite(t)}function f(t,e,n,i){var r=1-t,o=i.dimensions[t];return d(e[r])&&d(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function p(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(f(1,n,i,t)||f(0,n,i,t)))return!0}return a.dataFilter(t,e[0])&&a.dataFilter(t,e[1])}function g(t,e,n,i,r){var a,s=i.coordinateSystem,l=t.getItemModel(e),u=o.parsePercent(l.get("x"),r.getWidth()),c=o.parsePercent(l.get("y"),r.getHeight());if(isNaN(u)||isNaN(c)){if(i.getMarkerPosition)a=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=s.dimensions,f=t.get(h[0],e),p=t.get(h[1],e);a=s.dataToPoint([f,p])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");h=s.dimensions;d(t.get(h[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):d(t.get(h[1],e))&&(a[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(u)||(a[0]=u),isNaN(c)||(a[1]=c)}else a=[u,c];t.setItemLayout(e,a)}var m=l.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each((function(e){g(r,e,!0,t,n),g(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,n,r){var o=t.coordinateSystem,a=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(a)||u.set(a,new s);this.group.add(c.group);var h=v(o,t,e),d=h.from,f=h.to,p=h.line;e.__from=d,e.__to=f,e.setData(p);var m=e.get("symbol"),y=e.get("symbolSize");function _(e,n,i){var o=e.getItemModel(n);g(e,n,i,t,r),e.setItemVisual(n,{symbolRotate:o.get("symbolRotate"),symbolSize:o.get("symbolSize")||y[i?0:1],symbol:o.get("symbol",!0)||m[i?0:1],color:o.get("itemStyle.color")||l.getVisual("color")})}i.isArray(m)||(m=[m,m]),"number"===typeof y&&(y=[y,y]),h.from.each((function(t){_(d,t,!0),_(f,t,!1)})),p.each((function(t){var e=p.getItemModel(t).get("lineStyle.color");p.setItemVisual(t,{color:e||d.getItemVisual(t,"color")}),p.setItemLayout(t,[d.getItemLayout(t),f.getItemLayout(t)]),p.setItemVisual(t,{fromSymbolRotate:d.getItemVisual(t,"symbolRotate"),fromSymbolSize:d.getItemVisual(t,"symbolSize"),fromSymbol:d.getItemVisual(t,"symbol"),toSymbolRotate:f.getItemVisual(t,"symbolRotate"),toSymbolSize:f.getItemVisual(t,"symbolSize"),toSymbol:f.getItemVisual(t,"symbol")})})),c.updateData(p),h.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){t.dataModel=e}))})),c.__keep=!0,c.group.silent=e.get("silent")||t.get("silent")}});function v(t,e,n){var o;o=t?i.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return i.defaults({name:t},n)})):[{name:"value",type:"float"}];var s=new r(o,n),l=new r(o,n),u=new r([],n),c=i.map(n.get("data"),i.curry(h,e,t,n));t&&(c=i.filter(c,i.curry(p,t)));var d=t?a.dimValueGetter:function(t){return t.value};return s.initData(i.map(c,(function(t){return t[0]})),null,d),l.initData(i.map(c,(function(t){return t[1]})),null,d),u.initData(i.map(c,(function(t){return t[2]}))),u.hasItemOption=!0,{from:s,to:l,line:u}}t.exports=m},85304:function(t,e,n){var i=n(89955),r=i.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});t.exports=r},16796:function(t,e,n){var i=n(95289),r=n(52033),o=n(44261),a=n(5628),s=n(18312),l=n(47381);function u(t,e,n){var i=e.coordinateSystem;t.each((function(r){var a,s=t.getItemModel(r),l=o.parsePercent(s.get("x"),n.getWidth()),u=o.parsePercent(s.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var c=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);a=i.dataToPoint([c,h])}}else a=[l,u];isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u),t.setItemLayout(r,a)}))}var c=l.extend({type:"markPoint",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markPointModel;e&&(u(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,n,o){var a=t.coordinateSystem,s=t.id,l=t.getData(),c=this.markerGroupMap,d=c.get(s)||c.set(s,new r),f=h(a,t,e);e.setData(f),u(e.getData(),t,o),f.each((function(t){var n=f.getItemModel(t),r=n.getShallow("symbol"),o=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=i.isFunction(r),u=i.isFunction(o),c=i.isFunction(a);if(s||u||c){var h=e.getRawValue(t),d=e.getDataParams(t);s&&(r=r(h,d)),u&&(o=o(h,d)),c&&(a=a(h,d))}f.setItemVisual(t,{symbol:r,symbolSize:o,symbolRotate:a,color:n.get("itemStyle.color")||l.getVisual("color")})})),d.updateData(f),this.group.add(d.group),f.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),d.__keep=!0,d.group.silent=e.get("silent")||t.get("silent")}});function h(t,e,n){var r;r=t?i.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return i.defaults({name:t},n)})):[{name:"value",type:"float"}];var o=new a(r,n),l=i.map(n.get("data"),i.curry(s.dataTransform,e));return t&&(l=i.filter(l,i.curry(s.dataFilter,t))),o.initData(l,null,t?s.dimValueGetter:function(t){return t.value}),o}t.exports=c},89955:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(95289),a=n(87190),s=n(63199),l=n(8595),u=n(38738),c=l.addCommas,h=l.encodeHTML;function d(t){s.defaultEmphasis(t,"label",["show"])}var f=r.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},isAnimationEnabled:function(){if(a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,n,i){var r=this.constructor,a=this.mainType+"Model";n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),s=t[a];n&&n.data?(s?s._mergeOption(n,e,!0):(i&&d(n),o.each(n.data,(function(t){t instanceof Array?(d(t[0]),d(t[1])):d(t)})),s=new r(n,this,e),o.extend(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[a]=s):t[a]=null}),this)},formatTooltip:function(t,e,n,i){var r=this.getData(),a=this.getRawValue(t),s=o.isArray(a)?o.map(a,c).join(", "):c(a),l=r.getName(t),u=h(this.name),d="html"===i?"<br/>":"\n";return(null!=a||l)&&(u+=d),l&&(u+=h(l),null!=a&&(u+=" : ")),null!=a&&(u+=h(s)),u},getData:function(){return this._data},setData:function(t){this._data=t}});o.mixin(f,u);var p=f;t.exports=p},47381:function(t,e,n){var i=n(89231),r=n(95289),o=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=r.createHashMap()},render:function(t,e,n){var i=this.markerGroupMap;i.each((function(t){t.__keep=!1}));var r=this.type+"Model";e.eachSeries((function(t){var i=t[r];i&&this.renderSeries(t,i,e,n)}),this),i.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});t.exports=o},18312:function(t,e,n){var i=n(95289),r=n(44261),o=n(74051),a=o.isDimensionStacked,s=i.indexOf;function l(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function u(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function c(t,e,n,i,o,s){var l=[],u=a(e,i),c=u?e.getCalculationInfo("stackResultDimension"):i,h=y(e,c,t),d=e.indicesOfNearest(c,h)[0];l[o]=e.get(n,d),l[s]=e.get(c,d);var f=e.get(i,d),p=r.getPrecision(e.get(i,d));return p=Math.min(p,20),p>=0&&(l[s]=+l[s].toFixed(p)),[l,f]}var h=i.curry,d={min:h(c,"min"),max:h(c,"max"),average:h(c,"average")};function f(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!u(e)&&!i.isArray(e.coord)&&r){var o=r.dimensions,a=p(e,n,r,t);if(e=i.clone(e),e.type&&d[e.type]&&a.baseAxis&&a.valueAxis){var l=s(o,a.baseAxis.dim),c=s(o,a.valueAxis.dim),h=d[e.type](n,a.baseDataDim,a.valueDataDim,l,c);e.coord=h[0],e.value=h[1]}else{for(var f=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],g=0;g<2;g++)d[f[g]]&&(f[g]=y(n,n.mapDimension(o[g]),f[g]));e.coord=f}}return e}function p(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(g(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function g(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r<i.length;r++){var o=n.getDimensionInfo(i[r]);if(o.name===e)return o.coordDim}}function m(t,e){return!(t&&t.containData&&e.coord&&!l(e))||t.containData(e.coord)}function v(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value}function y(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e,!0)["max"===n?1:0]}e.dataTransform=f,e.getAxisInfo=p,e.dataFilter=m,e.dimValueGetter=v,e.numCalculate=y},14102:function(t,e,n){var i=n(89231),r=n(95289),o=n(88336),a=n(44259);n(9278),n(69531),n(18251);var s=5;i.extendComponentView({type:"parallel",render:function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},r.each(l,(function(t,e){n.getZr().on(e,this._handlers[e]=r.bind(t,this))}),this)),o.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){r.each(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(r.extend({type:"parallelAxisExpand"},t))}});var l={mousedown:function(t){u(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(u(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>s)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&u(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function u(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}i.registerPreprocessor(a)},18251:function(t,e,n){n(9278),n(49007),n(93296)},63389:function(t,e,n){var i=n(89231),r=n(95289),o=n(80241);n(35866),n(87759),n(51410),n(76683),n(26012),i.registerLayout(r.curry(o,"bar")),i.extendComponentView({type:"polar"})},39253:function(t,e,n){n(12228),n(45371),n(26563)},26563:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(95289),a=n(11011),s=n(76442),l=["axisLine","axisTickLabel","axisName"],u=r.extendComponentView({type:"radar",render:function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=o.map(n,(function(t){var n=new a(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));o.each(i,(function(t){o.each(l,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),a=t.getModel("splitArea"),l=r.getModel("lineStyle"),u=a.getModel("areaStyle"),c=r.get("show"),h=a.get("show"),d=l.get("color"),f=u.get("color");d=o.isArray(d)?d:[d],f=o.isArray(f)?f:[f];var p=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,_=0;_<m.length;_++){if(c){var x=T(p,d,_);p[x].push(new s.Circle({shape:{cx:v,cy:y,r:m[_].coord}}))}if(h&&_<m.length-1){x=T(g,f,_);g[x].push(new s.Ring({shape:{cx:v,cy:y,r0:m[_].coord,r:m[_+1].coord}}))}}else{var b,w=o.map(n,(function(t,n){var i=t.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),o.map(i,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(_=0;_<=b;_++){for(var A=[],M=0;M<n.length;M++)A.push(w[M][_]);if(A[0]&&A.push(A[0].slice()),c){x=T(p,d,_);p[x].push(new s.Polyline({shape:{points:A}}))}if(h&&S){x=T(g,f,_-1);g[x].push(new s.Polygon({shape:{points:A.concat(S)}}))}S=A.slice().reverse()}}var C=l.getLineStyle(),I=u.getAreaStyle();o.each(g,(function(t,e){this.group.add(s.mergePath(t,{style:o.defaults({stroke:"none",fill:f[e%f.length]},I),silent:!0}))}),this),o.each(p,(function(t,e){this.group.add(s.mergePath(t,{style:o.defaults({fill:"none",stroke:d[e%d.length]},C),silent:!0}))}),this)}function T(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}}});t.exports=u},51410:function(t,e,n){n(35866),n(11681)},27220:function(t,e,n){var i=n(89231);n(8644),n(26007),n(51102),n(76683),n(86022),i.extendComponentView({type:"single"})},47226:function(t,e,n){var i=n(89231),r=n(41030);n(68851),n(86544),n(12650),n(18150),i.registerPreprocessor(r)},12650:function(t,e,n){var i=n(95289),r=n(61569),o=n(38738),a=r.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});i.mixin(a,o);var s=a;t.exports=s},18150:function(t,e,n){var i=n(95289),r=n(39587),o=n(13388),a=n(76442),s=n(61570),l=n(93915),u=n(8671),c=n(22864),h=c.createSymbol,d=n(8426),f=n(44261),p=n(8595),g=p.encodeHTML,m=i.bind,v=i.each,y=Math.PI,_=l.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return g(s.scale.getLabel(t))},v(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,o,s,t)}),this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=x(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2<e.getHeight()/2?"-":"+":r.x+r.width/2<e.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]);var o,a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:y/2},d="vertical"===i?r.height:r.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,_=t.get("label.rotate")||0;_=_*y/180;var b=f.get("position",!0),w=p&&f.get("showPlayBtn",!0),S=p&&f.get("showPrevBtn",!0),A=p&&f.get("showNextBtn",!0),M=0,C=d;return"left"===b||"bottom"===b?(w&&(o=[0,0],M+=v),S&&(a=[M,0],M+=v),A&&(s=[C-g,0],C-=v)):(w&&(o=[C-g,0],C-=v),S&&(a=[0,0],M+=v),A&&(s=[C-g,0],C-=v)),l=[M,C],t.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:h[i],labelRotation:_,labelPosOpt:n,labelAlign:t.get("label.align")||u[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||c[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:g,controlGap:m}},_position:function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var a=o.create(),s=r.x,l=r.y+r.height;o.translate(a,a,[-s,-l]),o.rotate(a,a,-y/2),o.translate(a,a,[s,l]),r=r.clone(),r.applyTransform(a)}var u=v(r),c=v(n.getBoundingRect()),h=v(i.getBoundingRect()),d=n.position,f=i.position;f[0]=d[0]=u[0][0];var p=t.labelPosOpt;if(isNaN(p)){var g="+"===p?0:1;_(d,c,u,1,g),_(f,h,u,1,1-g)}else{g=p>=0?0:1;_(d,c,u,1,g),f[1]=d[1]+p}function m(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function _(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.attr("position",d),i.attr("position",f),n.rotation=i.rotation=t.rotation,m(n),m(i)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=d.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return t}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new u("value",r,t.axisExtent,i);return a.model=e,a},_createGroup:function(t){var e=this["_"+t]=new a.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,n,r){var o=n.getExtent();r.get("lineStyle.show")&&e.add(new a.Line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:i.extend({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),o=n.scale.getTicks();v(o,(function(t){var o=n.dataToCoord(t),s=r.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),c={position:[o,0],onclick:m(this._changeTimeline,this,t)},h=w(s,l,e,c);a.setHoverStyle(h,u.getItemStyle()),s.get("tooltip")?(h.dataIndex=t,h.dataModel=i):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,i){var r=n.getLabelModel();if(r.get("show")){var o=i.getData(),s=n.getViewLabels();v(s,(function(i){var r=i.tickValue,s=o.getItemModel(r),l=s.getModel("label"),u=s.getModel("emphasis.label"),c=n.dataToCoord(i.tickValue),h=new a.Text({position:[c,0],rotation:t.labelRotation-t.rotation,onclick:m(this._changeTimeline,this,r),silent:!1});a.setTextStyle(h.style,l,{text:i.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),a.setHoverStyle(h,a.setTextStyle({},u))}),this)}},_renderControl:function(t,e,n,i){var r=t.controlSize,o=t.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-r/2,r,r],c=i.getPlayState(),h=i.get("inverse",!0);function d(t,n,c,h){if(t){var d={position:t,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:s,onclick:c},f=b(i,n,u,d);e.add(f),a.setHoverStyle(f,l)}}d(t.nextBtnPosition,"controlStyle.nextIcon",m(this._changeTimeline,this,h?"-":"+")),d(t.prevBtnPosition,"controlStyle.prevIcon",m(this._changeTimeline,this,h?"+":"-")),d(t.playPosition,"controlStyle."+(c?"stopIcon":"playIcon"),m(this._handlePlayClick,this,!c),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=m(s._handlePointerDrag,s),t.ondragend=m(s._handlePointerDragend,s),S(t,o,n,i,!0)},onUpdate:function(t){S(t,o,n,i)}};this._currentPointer=w(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=f.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(m(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return a.applyTransform(t,e,!0)},_findNearestTick:function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)})),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}});function x(t,e){return s.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function b(t,e,n,i){var o=i.style,s=a.createIcon(t.get(e),i||{},new r(n[0],n[1],n[2],n[3]));return o&&s.setStyle(o),s}function w(t,e,n,r,o,a){var s=e.get("color");if(o)o.setColor(s),n.add(o),a&&a.onUpdate(o);else{var l=t.get("symbol");o=h(l,-1,-1,2,2,s),o.setStyle("strokeNoScale",!0),n.add(o),a&&a.onCreate(o)}var u=e.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(u),r=i.merge({rectHover:!0,z2:100},r,!0);var c=t.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],c[0]/=2,c[1]/=2,r.scale=c;var d=t.get("symbolOffset");if(d){var p=r.position=r.position||[0,0];p[0]+=f.parsePercent(d[0],c[0]),p[1]+=f.parsePercent(d[1],c[1])}var g=t.get("symbolRotate");return r.rotation=(g||0)*Math.PI/180||0,o.attr(r),o.updateTransform(),o}function S(t,e,n,i,r){if(!t.dragging){var o=i.getModel("checkpointStyle"),a=n.dataToCoord(i.getData().get(["value"],e));r||!o.get("animation",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}t.exports=_},8671:function(t,e,n){var i=n(95289),r=n(31490),o=function(t,e,n,i){r.call(this,t,e,n),this.type=i||"value",this.model=null};o.prototype={constructor:o,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},i.inherits(o,r);var a=o;t.exports=a},61569:function(t,e,n){var i=n(95289),r=n(85532),o=n(5628),a=n(63199),s=r.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,r=this._names=[];if("category"===n){var s=[];i.each(e,(function(t,e){var n,o=a.getDataItemValue(t);i.isObject(t)?(n=i.clone(t),n.value=e):n=e,s.push(n),i.isString(o)||null!=o&&!isNaN(o)||(o=""),r.push(o+"")})),e=s}var l={category:"ordinal",time:"time"}[n]||"number",u=this._data=new o([{name:"value",type:l}],this);u.initData(e,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;t.exports=l},93915:function(t,e,n){var i=n(18328),r=i.extend({type:"timeline"});t.exports=r},41030:function(t,e,n){var i=n(95289);function r(t){var e=t&&t.timeline;i.isArray(e)||(e=e?[e]:[]),i.each(e,(function(t){t&&o(t)}))}function o(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),a(t),s(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});s(r,"position")||(r.position=t.controlPosition),"none"!==r.position||s(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}i.each(t.data||[],(function(t){i.isObject(t)&&!i.isArray(t)&&(!s(t,"value")&&s(t,"name")&&(t.value=t.name),a(t))}))}function a(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},o=r.normal||(r.normal={}),a={normal:1,emphasis:1};i.each(r,(function(t,e){a[e]||s(o,e)||(o[e]=t)})),n.label&&!s(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function s(t,e){return t.hasOwnProperty(e)}t.exports=r},86544:function(t,e,n){var i=n(89231),r=n(95289);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),r.defaults({currentIndex:n.option.currentIndex},t)})),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))},68851:function(t,e,n){var i=n(85532);i.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},56315:function(t,e,n){var i=n(95289),r=n(89231),o=n(76442),a=n(61570),s=a.getLayoutRect,l=n(8595),u=l.windowOpen;r.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),r.extendComponentView({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,a=t.getModel("textStyle"),l=t.getModel("subtextStyle"),c=t.get("textAlign"),h=i.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),d=new o.Text({style:o.setTextStyle({},a,{text:t.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),f=d.getBoundingRect(),p=t.get("subtext"),g=new o.Text({style:o.setTextStyle({},l,{text:p,textFill:l.getTextColor(),y:f.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),m=t.get("link"),v=t.get("sublink"),y=t.get("triggerEvent",!0);d.silent=!m&&!y,g.silent=!v&&!y,m&&d.on("click",(function(){u(m,"_"+t.get("target"))})),v&&g.on("click",(function(){u(v,"_"+t.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(d),p&&r.add(g);var _=r.getBoundingRect(),x=t.getBoxLayoutParams();x.width=_.width,x.height=_.height;var b=s(x,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));c||(c=t.get("left")||t.get("right"),"middle"===c&&(c="center"),"right"===c?b.x+=b.width:"center"===c&&(b.x+=b.width/2)),h||(h=t.get("top")||t.get("bottom"),"center"===h&&(h="middle"),"bottom"===h?b.y+=b.height:"middle"===h&&(b.y+=b.height/2),h=h||"top"),r.attr("position",[b.x,b.y]);var w={textAlign:c,textVerticalAlign:h};d.setStyle(w),g.setStyle(w),_=r.getBoundingRect();var S=b.margin,A=t.getItemStyle(["color","opacity"]);A.fill=t.get("backgroundColor");var M=new o.Rect({shape:{x:_.x-S[3],y:_.y-S[0],width:_.width+S[1]+S[3],height:_.height+S[0]+S[2],r:t.get("borderRadius")},style:A,subPixelOptimize:!0,silent:!0});r.add(M)}}})},63886:function(t,e,n){n(70265),n(28419),n(80374),n(14723),n(16911),n(34765),n(24658)},70265:function(t,e,n){var i=n(89231),r=n(95289),o=n(23932),a=i.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),r.each(this.option.feature,(function(t,e){var n=o.get(e);n&&r.merge(t,n.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),s=a;t.exports=s},28419:function(t,e,n){var i=n(89231),r=n(95289),o=n(43407),a=n(23932),s=n(76442),l=n(40590),u=n(1032),c=n(13785),h=i.extendComponentView({type:"toolbox",render:function(t,e,n,i){var h=this.group;if(h.removeAll(),t.get("show")){var f=+t.get("itemSize"),p=t.get("feature")||{},g=this._features||(this._features={}),m=[];r.each(p,(function(t,e){m.push(e)})),new u(this._featureNames||[],m).add(v).update(v).remove(r.curry(v,null)).execute(),this._featureNames=m,c.layout(h,t,n),h.add(c.makeBackground(h.getBoundingRect(),t)),h.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=o.getBoundingRect(e,o.makeFont(i)),a=t.position[0]+h.position[0],s=t.position[1]+h.position[1]+f,l=!1;s+r.height>n.getHeight()&&(i.textPosition="top",l=!0);var u=l?-5-r.height:f+8;a+r.width/2>n.getWidth()?(i.textPosition=["100%",u],i.textAlign="right"):a-r.width/2<0&&(i.textPosition=[0,u],i.textAlign="left")}}))}function v(r,o){var s,u=m[r],c=m[o],h=p[u],f=new l(h,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(h.title=i.newTitle),u&&!c){if(d(u))s={model:f,onclick:f.option.onclick,featureName:u};else{var v=a.get(u);if(!v)return;s=new v(f,e,n)}g[u]=s}else{if(s=g[c],!s)return;s.model=f,s.ecModel=e,s.api=n}u||!c?f.get("show")&&!s.unusable?(y(f,s,u),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},s.render&&s.render(f,e,n,i)):s.remove&&s.remove(e,n):s.dispose&&s.dispose(e,n)}function y(i,o,a){var l=i.getModel("iconStyle"),u=i.getModel("emphasis.iconStyle"),c=o.getIcons?o.getIcons():i.get("icon"),d=i.get("title")||{};if("string"===typeof c){var p=c,g=d;c={},d={},c[a]=p,d[a]=g}var m=i.iconPaths={};r.each(c,(function(a,c){var p=s.createIcon(a,{},{x:-f/2,y:-f/2,width:f,height:f});p.setStyle(l.getItemStyle()),p.hoverStyle=u.getItemStyle(),p.setStyle({text:d[c],textAlign:u.get("textAlign"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&p.attr("tooltip",r.extend({content:d[c],formatter:g.get("formatter",!0)||function(){return d[c]},formatterParams:{componentType:"toolbox",name:c,title:d[c],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),s.setHoverStyle(p),t.get("showTitle")&&(p.__title=d[c],p.on("mouseover",(function(){var e=u.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";p.setStyle({textFill:u.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:u.get("textBackgroundColor"),textPosition:u.get("textPosition")||n})})).on("mouseout",(function(){p.setStyle({textFill:null,textBackgroundColor:null})}))),p.trigger(i.get("iconStatus."+c)||"normal"),h.add(p),p.on("click",r.bind(o.onclick,o,e,n,c)),m[c]=p}))}},updateView:function(t,e,n,i){r.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,n,i)}))},remove:function(t,e){r.each(this._features,(function(n){n.remove&&n.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){r.each(this._features,(function(n){n.dispose&&n.dispose(t,e)}))}});function d(t){return 0===t.indexOf("my")}t.exports=h},23932:function(t,e){var n={};function i(t,e){n[t]=e}function r(t){return n[t]}e.register=i,e.get=r},81496:function(t,e,n){var i=n(95289),r=n(23932),o=n(49777),a=o.toolbox.brush;function s(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}s.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:i.clone(a.title)};var l=s.prototype;l.render=l.updateView=function(t,e,n){var r,o,a;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length})),this._brushType=r,this._brushMode=o,i.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?a:e===r)?"emphasis":"normal")}))},l.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return i.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},l.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},r.register("brush",s);var u=s;t.exports=u},16911:function(t,e,n){var i=n(89231),r=n(95289),o=n(88665),a=n(49777),s=n(23932),l=a.toolbox.dataView,u=new Array(60).join("-"),c="\t";function h(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function d(t){var e=[];return r.each(t,(function(t,n){var i=t.categoryAxis,o=t.valueAxis,a=o.dim,s=[" "].concat(r.map(t.series,(function(t){return t.name}))),l=[i.model.getCategories()];r.each(t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(a),(function(t){return t})))}));for(var u=[s.join(c)],h=0;h<l[0].length;h++){for(var d=[],f=0;f<l.length;f++)d.push(l[f][h]);u.push(d.join(c))}e.push(u.join("\n"))})),e.join("\n\n"+u+"\n\n")}function f(t){return r.map(t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+c:"")+i.join(c))})),n.join("\n")})).join("\n\n"+u+"\n\n")}function p(t){var e=h(t);return{value:r.filter([d(e.seriesGroupByCategoryAxis),f(e.other)],(function(t){return t.replace(/[\n\t\s]/g,"")})).join("\n\n"+u+"\n\n"),meta:e.meta}}function g(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function m(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(c)>=0)return!0}var v=new RegExp("["+c+"]+","g");function y(t){for(var e=t.split(/\n+/g),n=g(e.shift()).split(v),i=[],o=r.map(n,(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var s=g(e[a]).split(v);i.push(s.shift());for(var l=0;l<s.length;l++)o[l]&&(o[l].data[a]=s[l])}return{series:o,categories:i}}function _(t){for(var e=t.split(/\n+/g),n=g(e.shift()),i=[],r=0;r<e.length;r++){var o=g(e[r]);if(o){var a,s=o.split(v),l="",u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),i[r]={name:l,value:[]},a=i[r].value):a=i[r]=[];for(var c=0;c<s.length;c++)a.push(+s[c]);1===a.length&&(u?i[r].value=a[0]:i[r]=a[0])}}return{name:n,data:i}}function x(t,e){var n=t.split(new RegExp("\n*"+u+"\n*","g")),i={series:[]};return r.each(n,(function(t,n){if(m(t)){var r=y(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=_(t);i.series.push(r)}})),i}function b(t){this._dom=null,this.model=t}function w(t,e){return r.map(t,(function(t,n){var i=e&&e[n];if(r.isObject(i)&&!r.isArray(i)){var o=r.isObject(t)&&!r.isArray(t);o||(t={value:t});var a=null!=i.name&&null==t.name;return t=r.defaults(t,i),a&&delete t.name,t}return t}))}b.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.clone(l.title),lang:r.clone(l.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},b.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var h=i.get("optionToContent"),d=i.get("contentToOption"),f=p(t);if("function"===typeof h){var g=h(e.getOption());"string"===typeof g?u.innerHTML=g:r.isDom(g)&&u.appendChild(g)}else u.appendChild(c),c.readOnly=i.get("readOnly"),c.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",c.style.color=i.get("textColor"),c.style.borderColor=i.get("textareaBorderColor"),c.style.backgroundColor=i.get("textareaColor"),c.value=f.value;var m=f.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:0;left:0;right:0;";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var w=this;function S(){n.removeChild(a),w._dom=null}o.addEventListener(_,"click",S),o.addEventListener(b,"click",(function(){var t;try{t="function"===typeof d?d(u,e.getOption()):x(c.value,m)}catch(n){throw S(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),S()})),_.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=y,_.style.cssText=y,!i.get("readOnly")&&v.appendChild(b),v.appendChild(_),a.appendChild(s),a.appendChild(u),a.appendChild(v),u.style.height=n.clientHeight-80+"px",n.appendChild(a),this._dom=a},b.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},b.prototype.dispose=function(t,e){this.remove(t,e)},s.register("dataView",b),i.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];r.each(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var o=i.get("data");n.push({name:t.name,data:w(t.data,o)})}else n.push(r.extend({type:"scatter"},t))})),e.mergeOption(r.defaults({series:n},t.newOption))}));var S=b;t.exports=S},34765:function(t,e,n){var i=n(89231),r=n(95289),o=n(33478),a=n(74080),s=n(5693),l=n(96748),u=n(49777),c=n(23932);n(21354);var h=u.toolbox.dataZoom,d=r.each,f="\0_ec_\0toolbox-dataZoom_";function p(t,e,n){(this._brushController=new o(n.getZr())).on("brush",r.bind(this._onBrush,this)).mount(),this._isZoomActive}p.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.clone(h.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var g=p.prototype;g.render=function(t,e,n,i){this.model=t,this.ecModel=e,this.api=n,_(t,e,this,i,n),y(t,e)},g.onclick=function(t,e,n){m[n].call(this)},g.remove=function(t,e){this._brushController.unmount()},g.dispose=function(t,e){this._brushController.dispose()};var m={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function v(t){var e={};return r.each(["xAxisIndex","yAxisIndex"],(function(n){e[n]=t[n],null==e[n]&&(e[n]="all"),(!1===e[n]||"none"===e[n])&&(e[n]=[])})),e}function y(t,e){t.setIconStatus("back",s.count(e)>1?"emphasis":"normal")}function _(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var s=new a(v(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!o&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}g._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new a(v(this.model.option),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[i],n,e)}})),s.push(i,n),this._dispatchZoomAction(n)}function o(t,e,r){var o=e.getAxis(t),a=o.model,s=u(t,a,i),c=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(r=l(0,r.slice(),o.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}function u(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},g._dispatchZoomAction=function(t){var e=[];d(t,(function(t,n){e.push(r.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},c.register("dataZoom",p),i.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);r.isArray(e)||(t.dataZoom=e=[e]);var n=t.toolbox;if(n&&(r.isArray(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;o("xAxis",i),o("yAxis",i)}}function o(t,n){if(n){var i=t+"Index",o=n[i];null==o||"all"===o||r.isArray(o)||(o=!1===o||"none"===o?[]:[o]),a(t,(function(a,s){if(null==o||"all"===o||-1!==r.indexOf(o,s)){var l={type:"select",$fromToolbox:!0,filterMode:n.filterMode||"filter",id:f+t+s};l[i]=s,e.push(l)}}))}}function a(e,n){var i=t[e];r.isArray(i)||(i=i?[i]:[]),d(i,n)}}));var x=p;t.exports=x},14723:function(t,e,n){var i=n(89231),r=n(95289),o=n(49777),a=n(23932),s=o.toolbox.magicType,l="__ec_magicType_stack__";function u(t){this.model=t}u.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.clone(s.title),option:{},seriesIndex:{}};var c=u.prototype;c.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return r.each(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n};var h={line:function(t,e,n,i){if("bar"===t)return r.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return r.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){var o=n.get("stack")===l;if("line"===t||"bar"===t)return i.setIconStatus("stack",o?"normal":"emphasis"),r.merge({id:e,stack:o?"":l},i.get("option.stack")||{},!0)}},d=[["line","bar"],["stack"]];c.onclick=function(t,e,n){var i=this.model,o=i.get("seriesIndex."+n);if(h[n]){var a,u={series:[]},c=function(e){var o=e.subType,a=e.id,s=h[n](o,a,e,i);s&&(r.defaults(s,e.option),u.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var c=l.getAxesByScale("ordinal")[0];if(c){var d=c.dim,f=d+"Axis",p=t.queryComponents({mainType:f,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],g=p.componentIndex;u[f]=u[f]||[];for(var m=0;m<=g;m++)u[f][g]=u[f][g]||{};u[f][g].boundaryGap="bar"===n}}};if(r.each(d,(function(t){r.indexOf(t,n)>=0&&r.each(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},c),"stack"===n){var f=u.series&&u.series[0]&&u.series[0].stack===l;a=f?r.merge({stack:s.title.tiled},s.title):r.clone(s.title)}e.dispatchAction({type:"changeMagicType",currentType:n,newOption:u,newTitle:a,featureName:"magicType"})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),a.register("magicType",u);var f=u;t.exports=f},24658:function(t,e,n){var i=n(89231),r=n(5693),o=n(49777),a=n(23932),s=o.toolbox.restore;function l(t){this.model=t}l.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:s.title};var u=l.prototype;u.onclick=function(t,e,n){r.clear(t),e.dispatchAction({type:"restore",from:this.uid})},a.register("restore",l),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var c=l;t.exports=c},80374:function(t,e,n){var i=n(87190),r=n(49777),o=n(23932),a=r.toolbox.saveAsImage;function s(t){this.model=t}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:a.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!i.canvasSupported;var l=s.prototype;l.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",s=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),u=l.length,c=new Uint8Array(u);while(u--)c[u]=l.charCodeAt(u);var h=new Blob([c]);window.navigator.msSaveOrOpenBlob(h,r+"."+a)}else{var d=n.get("lang"),f='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(d&&d[0]||"")+'" /></body>',p=window.open();p.document.write(f)}else{var g=document.createElement("a");g.download=r+"."+a,g.target="_blank",g.href=s;var m=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},o.register("saveAsImage",s);var u=s;t.exports=u},67770:function(t,e,n){var i=n(89231);n(76683),n(13281),n(97371),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},47561:function(t,e,n){var i=n(95289),r=n(56607),o=n(88665),a=n(105),s=n(87190),l=n(8595),u=i.each,c=l.toCamelCase,h=["","-webkit-","-moz-","-o-"],d="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function f(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+t+"s "+e+",top "+t+"s "+e;return i.map(h,(function(t){return t+"transition:"+n})).join(";")}function p(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),u(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function g(t){var e=[],n=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.getModel("textStyle"),a=t.get("padding");return n&&e.push(f(n)),i&&(s.canvasSupported?e.push("background-Color:"+i):(e.push("background-Color:#"+r.toHex(i)),e.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],(function(n){var i="border-"+n,r=c(i),o=t.get(r);null!=o&&e.push(i+":"+o+("color"===n?"":"px"))})),e.push(p(o)),null!=a&&e.push("padding:"+l.normalizeCssArray(a).join("px ")+"px"),e.join(";")+";"}function m(t,e,n,i,r){var o=e&&e.painter;if(n){var s=o&&o.getViewportRoot();s&&a.transformLocalCoord(t,s,document.body,i,r)}else{t[0]=i,t[1]=r;var l=o&&o.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function v(t,e,n){if(s.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),a=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0,0,0],m(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),a?document.body.appendChild(i):t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=r.handler,n=r.painter.getViewportRoot();o.normalizeEvent(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}v.prototype={constructor:v,_enterable:!0,update:function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText=d+g(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;m(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var y=v;t.exports=y},13281:function(t,e,n){var i=n(89231),r=i.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});t.exports=r},52739:function(t,e,n){var i=n(95289),r=n(21927),o=n(76442);function a(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function s(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],a(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(t){var e=t.get("alwaysShowContent");e&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);var i={},a=t,s="{marker",l="|}",u=a.indexOf(s);while(u>=0){var c=a.indexOf(l),h=a.substr(u+s.length,c-u-s.length);h.indexOf("sub")>-1?i["marker"+h]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[h],textOffset:[3,0]}:i["marker"+h]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[h]},a=a.substr(c+1),u=a.indexOf("{marker")}var d=n.getModel("textStyle"),f=d.get("fontSize"),p=n.get("textLineHeight");null==p&&(p=Math.round(3*f/2)),this.el=new r({style:o.setTextStyle({},d,{rich:i,text:t,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding"),textLineHeight:p}),z:n.get("z")}),this._zr.add(this.el);var g=this;this.el.on("mouseover",(function(){g._enterable&&(clearTimeout(g._hideTimeout),g._show=!0),g._inContent=!0})),this.el.on("mouseout",(function(){g._enterable&&g._show&&g.hideLater(g._hideDelay),g._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var n=this._styleCoord;a(n,this._zr,t,e),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var l=s;t.exports=l},97371:function(t,e,n){var i=n(89231),r=n(95289),o=n(87190),a=n(47561),s=n(52739),l=n(8595),u=n(44261),c=n(76442),h=n(13390),d=n(61570),f=n(40590),p=n(22921),g=n(8426),m=n(67419),v=n(63199),y=v.getTooltipRenderMode,_=r.bind,x=r.each,b=u.parsePercent,w=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),S=i.extendComponentView({type:"tooltip",init:function(t,e){if(!o.node){var n,i=t.getComponent("tooltip"),r=i.get("renderMode");this._renderMode=y(r),"html"===this._renderMode?(n=new a(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)}),this._newLine="<br/>"):(n=new s(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!o.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");p.register("itemTooltip",this._api,_((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!o.node){var r=M(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=w;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=h(i,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:i.position,target:l.el},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(M(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData();t=A([l.getItemModel(o),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},_tryShow:function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=r.bind(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],a=[],s=[],u=A([e.tooltipOption,i]),c=this._renderMode,h=this._newLine,d={};x(t,(function(t){x(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,o=[];if(e&&null!=i){var u=m.getValueLabel(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);r.each(t.seriesDataIndices,(function(a){var l=n.getSeriesByIndex(a.seriesIndex),h=a.dataIndexInside,f=l&&l.getDataParams(h);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=g.getAxisRawValue(e.axis,i),f.axisValueLabel=u,f){s.push(f);var p,m=l.formatTooltip(h,!0,null,c);if(r.isObject(m)){p=m.html;var v=m.markers;r.merge(d,v)}else p=m;o.push(p)}}));var f=u;"html"!==c?a.push(o.join(h)):a.push((f?l.encodeHTML(f)+h:"")+o.join(h))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,f,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(u,a,s,Math.random(),o[0],o[1],f,void 0,d)}))},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,o=e.seriesIndex,a=i.getSeriesByIndex(o),s=e.dataModel||a,l=e.dataIndex,u=e.dataType,c=s.getData(u),h=A([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var f,p,g=s.getDataParams(l,u),m=s.formatTooltip(l,!1,u,this._renderMode);r.isObject(m)?(f=m.html,p=m.markers):(f=m,p=null);var v="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,f,g,v,t.offsetX,t.offsetY,t.position,t.target,p)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"===typeof i){var r=i;i={content:r,formatter:r}}var o=new f(i,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,o,a,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent,h=t.get("formatter");a=a||t.get("position");var d=e;if(h&&"string"===typeof h)d=l.formatTpl(h,n,!0);else if("function"===typeof h){var f=_((function(e,i){e===this._ticket&&(c.setContent(i,u,t),this._updatePosition(t,a,r,o,c,n,s))}),this);this._ticket=i,d=h(n,i,f)}c.setContent(d,u,t),c.show(t),this._updatePosition(t,a,r,o,c,n,s)}},_updatePosition:function(t,e,n,i,o,a,s){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=o.getSize(),h=t.get("align"),f=t.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"===typeof e&&(e=e([n,i],a,o.el,p,{viewSize:[l,u],contentSize:c.slice()})),r.isArray(e))n=b(e[0],l),i=b(e[1],u);else if(r.isObject(e)){e.width=c[0],e.height=c[1];var g=d.getLayoutRect(e,{width:l,height:u});n=g.x,i=g.y,h=null,f=null}else if("string"===typeof e&&s){var m=T(e,p,c);n=m[0],i=m[1]}else{m=C(n,i,o,l,u,h?null:20,f?null:20);n=m[0],i=m[1]}if(h&&(n-=E(h)?c[0]/2:"right"===h?c[0]:0),f&&(i-=E(f)?c[1]/2:"bottom"===f?c[1]:0),t.get("confine")){m=I(n,i,o,l,u);n=m[0],i=m[1]}o.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&x(e,(function(e,i){var r=e.dataByAxis||{},o=t[i]||{},a=o.dataByAxis||[];n&=r.length===a.length,n&&x(r,(function(t,e){var i=a[e]||{},r=t.seriesDataIndices||[],o=i.seriesDataIndices||[];n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===o.length,n&&x(r,(function(t,e){var i=o[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){o.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",e))}});function A(t){var e=t.pop();while(t.length){var n=t.pop();n&&(f.isInstance(n)&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),e=new f(n,e,e.ecModel))}return e}function M(t,e){return t.dispatchAction||r.bind(e.dispatchAction,e)}function C(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function I(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function T(t,e,n){var i=n[0],r=n[1],o=5,a=0,s=0,l=e.width,u=e.height;switch(t){case"inside":a=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":a=e.x+l/2-i/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-i/2,s=e.y+u+o;break;case"left":a=e.x-i-o,s=e.y+u/2-r/2;break;case"right":a=e.x+l+o,s=e.y+u/2-r/2}return[a,s]}function E(t){return"center"===t||"middle"===t}t.exports=S},24823:function(t,e,n){n(43416),n(84845)},43416:function(t,e,n){var i=n(89231),r=n(2925);n(89514),n(61043),n(74660),n(49040),n(12028),i.registerPreprocessor(r)},84845:function(t,e,n){var i=n(89231),r=n(2925);n(89514),n(61043),n(84893),n(94719),n(12028),i.registerPreprocessor(r)},74660:function(t,e,n){var i=n(95289),r=n(96517),o=n(44261),a=[20,140],s=r.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=a[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=a[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):i.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=o.asc((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},getValueState:function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getVisualMeta:function(t){var e=l(this,"outOfRange",this.getExtent()),n=l(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,u=e.length;a<u&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var c=1;o<s;o++,c=0)c&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(c=1;a<u;a++)(!n.length||n[n.length-1]<e[a])&&(c&&(i.length&&r(i[i.length-1].value,"outOfRange"),c=0),r(e[a],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}}});function l(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;s<=i&&o<n[1];s++)a.push(o),o+=r;return a.push(n[1]),a}var u=s;t.exports=u},49040:function(t,e,n){var i=n(95289),r=n(25113),o=n(88665),a=n(30071),s=n(76442),l=n(44261),u=n(96748),c=n(2054),h=n(63199),d=l.linearMap,f=i.each,p=Math.min,g=Math.max,m=12,v=6,y=a.extend({type:"visualMap.continuous",init:function(){y.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_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 n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,l=this._shapes.barGroup,u=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],l),c=this._applyTransform(0===n?"bottom":"top",l),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:u[0],y:u[1],textVerticalAlign:"horizontal"===h?"middle":c,textAlign:"horizontal"===h?c:"center",text:i,textFont:d.getFont(),textFill:d.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,o=this._orient,a=this._useHandle,s=c.getItemAlign(e,this.api,r),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=_()),l.add(n.inRange=_(null,a?A(this._orient):null,i.bind(this._dragHandle,this,"all",!1),i.bind(this._dragHandle,this,"all",!0)));var u=e.textStyleModel.getTextRect("国"),h=g(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,r,h,o,s),this._createHandle(l,1,r,h,o,s)),this._createIndicator(l,r,h,o),t.add(l)},_createHandle:function(t,e,n,r,a){var l=i.bind(this._dragHandle,this,e,!1),u=i.bind(this._dragHandle,this,e,!0),c=_(x(e,r),A(this._orient),l,u);c.position[0]=n[0],t.add(c);var h=this.visualMapModel.textStyleModel,d=new s.Text({draggable:!0,drift:l,onmousemove:function(t){o.stop(t.event)},ondragend:u,style:{x:0,y:0,text:"",textFont:h.getFont(),textFill:h.getTextColor()}});this.group.add(d);var f=["horizontal"===a?r/2:1.5*r,"horizontal"===a?0===e?-1.5*r:1.5*r:0===e?-r/2:r/2],p=this._shapes;p.handleThumbs[e]=c,p.handleLabelPoints[e]=f,p.handleLabels[e]=d},_createIndicator:function(t,e,n,i){var r=_([[0,0]],"move");r.position[0]=e[0],r.attr({invisible:!0,silent:!0}),t.add(r);var o=this.visualMapModel.textStyleModel,a=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),textFill:o.getTextColor()}});this.group.add(a);var l=["horizontal"===i?n/2:v+3,0],u=this._shapes;u.indicator=r,u.indicatorLabel=a,u.indicatorLabelPoint=l},_dragHandle:function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.barGroup,!0);this._updateInterval(t,r[1]),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():S(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[d(e[0],n,i,!0),d(e[1],n,i,!0)]},_updateInterval:function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];u(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[d(i[0],r,o,!0),d(i[1],r,o,!0)]},_updateView:function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,a)},_createBarVisual:function(t,e,n,i){var o={forceState:i,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,o),s=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],l=this._createBarPoints(n,s);return{barColor:new r(0,0,0,1,a),barPoints:l,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(t,e){var n=100,i=[],r=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<n;o++){var a=t[0]+r*o;if(a>t[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels;f([0,1],(function(a){var l=r[a];l.setStyle("fill",e.handlesColor[a]),l.position[1]=t[a];var u=s.applyTransform(n.handleLabelPoints[a],s.getTransform(l,this.group));o[a].setStyle({x:u[0],y:u[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,l=[0,a[1]],u=d(t,o,l,!0),c=this._shapes,h=c.indicator;if(h){h.position[1]=u,h.attr("invisible",!1),h.setShape("points",b(!!n,i,u,a[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",f);h.setStyle("fill",p);var g=s.applyTransform(c.indicatorLabelPoint,s.getTransform(h,this.group)),m=c.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",c.barGroup),y=this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===y?v:"middle",textAlign:"horizontal"===y?"center":v,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=p(g(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_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()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=p(g(r[0],t),r[1]);var a=w(n,o,r),s=[t-a,t+a],l=d(t,r,o,!0),u=[d(s[0],r,o,!0),d(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var f=this._hoverLinkDataIndices,m=[];(e||S(n))&&(m=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var v=h.compressBatches(f,m);this._dispatchHighDown("downplay",c.makeHighDownBatch(v[0],n)),this._dispatchHighDown("highlight",c.makeHighDownBatch(v[1],n))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var r=i.getData(e.dataType),o=r.get(n.getDataDimension(r),e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,n,r){var o=s.getTransform(e,r?null:this.group);return s[i.isArray(t)?"applyTransform":"transformDirection"](t,o,n)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function _(t,e,n,i){return new s.Polygon({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){o.stop(t.event)},ondragend:i})}function x(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function b(t,e,n,i){return t?[[0,-p(e,g(n,0))],[v,0],[0,p(e,g(i-n,0))]]:[[0,0],[5,-5],[5,5]]}function w(t,e,n){var i=m/2,r=t.get("hoverLinkDataSize");return r&&(i=d(r,e,n,!0)/2),i}function S(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function A(t){return"vertical"===t?"ns-resize":"ew-resize"}var M=y;t.exports=M},84893:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(96517),a=n(71576),s=n(67759),l=n(44261),u=l.reformIntervals,c=o.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){c.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();h[this._mode].call(this),this._resetSelected(t,e);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=r.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=r.map(this._pieceList,(function(t){t=r.clone(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){var t=this.option,e={},n=a.listVisualTypes(),i=this.isCategory();function l(t,e,n){return t&&t[e]&&(r.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}r.each(t.pieces,(function(t){r.each(n,(function(n){t.hasOwnProperty(n)&&(e[n]=1)}))})),r.each(e,(function(e,n){var o=0;r.each(this.stateList,(function(e){o|=l(t,e,n)||l(t.target,e,n)}),this),!o&&r.each(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=s.get(n,"inRange"===e?"active":"inactive",i)}))}),this),o.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n=this.option,i=this._pieceList,o=(e?n:t).selected||{};if(n.selected=o,r.each(i,(function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var a=!1;r.each(i,(function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(a?o[n]=!1:a=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=r.clone(t)},getValueState:function(t){var e=a.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){var r=a.findPieceIndex(e,this._pieceList);r===t&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],n=[],i=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),a=o[o.length-1].interval[1],a!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(o,(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:n}}function l(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}}}),h={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;var a=(i[1]-i[0])/o;while(+a.toFixed(n)!==a&&n<5)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,l=i[0];s<o;l+=a,s++){var c=s===o-1?i[1]:l+a;e.push({interval:[l,c],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),u(e),r.each(e,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(){var t=this.option;r.each(t.categories,(function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})}),this),d(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;r.each(t.pieces,(function(t,n){r.isObject(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var o=i.value=t.value;i.interval=[o,o],i.close=[1,1]}else{for(var s=i.interval=[],l=i.close=[0,0],u=[1,0,1],c=[-1/0,1/0],h=[],d=0;d<2;d++){for(var f=[["gte","gt","min"],["lte","lt","max"]][d],p=0;p<3&&null==s[d];p++)s[d]=t[f[p]],l[d]=u[p],h[d]=2===p;null==s[d]&&(s[d]=c[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(i.value=s[0])}i.visual=a.retrieveVisuals(t),e.push(i)}),this),d(t,e),u(e),r.each(e,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function d(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var f=c;t.exports=f},94719:function(t,e,n){var i=n(95289),r=n(30071),o=n(76442),a=n(22864),s=a.createSymbol,l=n(61570),u=n(2054),c=r.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,a=r.getFont(),s=r.getTextColor(),u=this._getItemAlign(),c=e.itemSize,h=this._getViewData(),d=h.endsText,f=i.retrieve(e.get("showLabel",!0),!d);function p(r){var l=r.piece,h=new o.Group;h.onclick=i.bind(this._onItemClick,this,l),this._enableHoverLink(h,r.indexInModelPieceList);var d=e.getRepresentValue(l);if(this._createItemSymbol(h,d,[0,0,c[0],c[1]]),f){var p=this.visualMapModel.getValueState(d);h.add(new o.Text({style:{x:"right"===u?-n:c[0]+n,y:c[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:u,textFont:a,textFill:s,opacity:"outOfRange"===p?.5:1}}))}t.add(h)}d&&this._renderEndsText(t,d[0],c,f,u),i.each(h.viewPieceList,p,this),d&&this._renderEndsText(t,d[1],c,f,u),l.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:u.makeHighDownBatch(n.findTargetDataIndices(e),n)})}t.on("mouseover",i.bind(n,this,"highlight")).on("mouseout",i.bind(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return u.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,r){if(e){var a=new o.Group,s=this.visualMapModel.textStyleModel;a.add(new o.Text({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=i.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),o=t.get("inverse");return("horizontal"===r?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(s(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,r=i.clone(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[o]=!0,i.each(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),h=c;t.exports=h},96517:function(t,e,n){var i=n(89231),r=n(95289),o=n(87190),a=n(67759),s=n(71576),l=n(63479),u=n(63199),c=n(44261),h=s.mapVisual,d=s.eachVisual,f=r.isArray,p=r.each,g=c.asc,m=c.linearMap,v=r.noop,y=i.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,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,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,n)},optionUpdated:function(t,e){var n=this.option;o.canvasSupported||(n.realtime=!1),!e&&l.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=r.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=u.normalizeToArray(t),e},eachTargetSeries:function(t,e){r.each(this.getTargetSeriesIndices(),(function(n){t.call(e,this.ecModel.getSeriesByIndex(n))}),this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},formatValueText:function(t,e,n){var i,o,a=this.option,s=a.precision,l=this.dataBound,u=a.formatter;return n=n||["<",">"],r.isArray(t)&&(t=t.slice(),i=!0),o=e?t:i?[c(t[0]),c(t[1])]:c(t),r.isString(u)?u.replace("{value}",i?o[0]:o).replace("{value2}",i?o[1]:o):r.isFunction(u)?i?u(t[0],t[1]):u(t):i?t[0]===l[0]?n[0]+" "+o[1]:t[1]===l[1]?n[1]+" "+o[0]:o[0]+" - "+o[1]:o;function c(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var o=i[r],a=t.getDimensionInfo(o);if(!a.isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={});r.merge(i,n),r.merge(o,n);var l=this.isCategory();function u(n){f(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")},p(this.stateList,(function(t){var e=n[t];if(r.isString(e)){var i=a.get(e,"active",l);i?(n[t]={},n[t][e]=i):delete n[t]}}),this)}function c(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},p(i,(function(t,e){if(s.isValidType(e)){var n=a.get(e,"inactive",l);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function g(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor");p(this.stateList,(function(o){var a=this.itemSize,s=t[o];s||(s=t[o]={color:l?i:[i]}),null==s.symbol&&(s.symbol=e&&r.clone(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&r.clone(n)||(l?a[0]:[a[0],a[0]])),s.symbol=h(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var u=s.symbolSize;if(null!=u){var c=-1/0;d(u,(function(t){t>c&&(c=t)})),s.symbolSize=h(u,(function(t){return m(t,[0,c],[0,a[0]],!0)}))}}),this)}u.call(this,i),u.call(this,o),c.call(this,i,"inRange","outOfRange"),g.call(this,o)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v}),_=y;t.exports=_},30071:function(t,e,n){var i=n(89231),r=n(95289),o=n(76442),a=n(8595),s=n(61570),l=n(71576),u=i.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,n=a.normalizeCssArray(e.get("padding")||0),i=t.getBoundingRect();t.add(new o.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){n=n||{};var i=n.forceState,o=this.visualMapModel,a={};if("symbol"===e&&(a.symbol=o.get("itemSymbol")),"color"===e){var s=o.get("contentColor");a.color=s}function u(t){return a[t]}function c(t,e){a[t]=e}var h=o.controllerVisuals[i||o.getValueState(t)],d=l.prepareVisualTypes(h);return r.each(d,(function(i){var r=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=h.__alphaForOpacity),l.dependsOn(i,e)&&r&&r.applyVisual(t,u,c)})),a[e]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:r.noop});t.exports=u},2054:function(t,e,n){var i=n(95289),r=n(61570),o=r.getLayoutRect;function a(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var a={width:e.getWidth(),height:e.getHeight()},s="horizontal"===i.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?n[0]:i[u[d]];var f=[["x","width",3],["y","height",0]][s],p=o(h,a,i.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*a[f[1]]?0:1]}function s(t,e){return i.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}e.getItemAlign=a,e.makeHighDownBatch=s},2925:function(t,e,n){var i=n(95289),r=i.each;function o(t){var e=t&&t.visualMap;i.isArray(e)||(e=e?[e]:[]),r(e,(function(t){if(t){a(t,"splitList")&&!a(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&i.isArray(e)&&r(e,(function(t){i.isObject(t)&&(a(t,"start")&&!a(t,"min")&&(t.min=t.start),a(t,"end")&&!a(t,"max")&&(t.max=t.end))}))}}))}function a(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}t.exports=o},89514:function(t,e,n){var i=n(85532);i.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}))},61043:function(t,e,n){var i=n(89231),r=n(95289),o=n(63479),a=n(71576),s=i.PRIORITY.VISUAL.COMPONENT;function l(t,e,n,i){for(var r=e.targetVisuals[i],o=a.prepareVisualTypes(r),s={color:t.getData().getVisual("color")},l=0,u=o.length;l<u;l++){var c=o[l],h=r["opacity"===c?"__alphaForOpacity":c];h&&h.applyVisual(n,d,f)}return s.color;function d(t){return s[t]}function f(t,e){s[t]=e}}i.registerVisual(s,{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(o.incrementalApplyVisual(e.stateList,e.targetVisuals,r.bind(e.getValueState,e),e.getDataDimension(t.getData())))})),n}}),i.registerVisual(s,{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var o=e.getVisualMeta(r.bind(l,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimension(n),s=n.getDimensionInfo(a);null!=s&&(o.dimension=s.index,i.push(o))}})),t.getData().setVisual("visualMeta",i)}})},12028:function(t,e,n){var i=n(89231),r={type:"selectDataRange",event:"dataRangeSelected",update:"update"};i.registerAction(r,(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))}))},65523:function(t,e,n){var i;"undefined"!==typeof window?i=window.__DEV__:"undefined"!==typeof n.g&&(i=n.g.__DEV__),"undefined"===typeof i&&(i=!0);var r=i;e.__DEV__=r},31490:function(t,e,n){var i=n(95289),r=i.each,o=i.map,a=n(44261),s=a.linearMap,l=a.getPixelPrecision,u=a.round,c=n(38858),h=c.createAxisTicks,d=c.createAxisLabels,f=c.calculateCategoryInterval,p=[0,1],g=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function m(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function v(t,e,n,i){var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var c=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/c;r(e,(function(t){t.coord-=h/2}));var d=t.scale.getExtent();s=1+d[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var f=l[0]>l[1];p(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]}),p(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&p(a.coord,l[1])&&e.push({coord:l[1]})}function p(t,e){return t=u(t),e=u(e),f?t>e:t<e}}g.prototype={constructor:g,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),m(n,i.count())),s(t,p,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),m(n,i.count()));var r=s(t,n,p,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=h(this,e),i=n.ticks,r=o(i,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this),a=e.get("alignWithLabel");return v(this,r,a,t.clamp),r},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=o(n,(function(t){return o(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},getViewLabels:function(){return d(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var y=g;t.exports=y},92394:function(t,e,n){var i=n(95289),r=n(31138),o=n(13388),a=n(39587),s=n(38051),l=r.applyTransform;function u(){s.call(this)}function c(t){this.name=t,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function h(t,e,n,i){var r=n.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](i):null}i.mixin(u,s),c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new a(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new a(t,e,n,i)},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new a(t,e,n,i)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=r.applyTransform([],i,t),n=r.applyTransform([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),o.copy(this.transform||(this.transform=[]),e.transform||o.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],o.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,e=this._rawTransformable;return{roamTransform:t?i.slice(t):o.create(),rawScale:i.slice(e.scale),rawPosition:i.slice(e.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?l(n,t,i):r.copy(n,t)},pointToData:function(t){var e=this.invTransform;return e?l([],t,e):[t[0],t[1]]},convertToPixel:i.curry(h,"dataToPoint"),convertFromPixel:i.curry(h,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},i.mixin(c,s);var d=c;t.exports=d},15429:function(t,e,n){var i=n(95289),r={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},o={};o.categoryAxis=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),o.valueAxis=i.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},r),o.timeAxis=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},o.valueAxis),o.logAxis=i.defaults({scale:!0,logBase:10},o.valueAxis);var a=o;t.exports=a},8426:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(37221),a=n(21607),s=n(96506),l=n(44261),u=n(11041),c=u.prepareLayoutBarSeries,h=u.makeColumnLayout,d=u.retrieveColumnLayout,f=n(39587);function p(t,e){var n,i,o,a=t.type,s=e.getMin(),u=e.getMax(),d=t.getExtent();"ordinal"===a?n=e.getCategories().length:(i=e.get("boundaryGap"),r.isArray(i)||(i=[i||0,i||0]),"boolean"===typeof i[0]&&(i=[0,0]),i[0]=l.parsePercent(i[0],1),i[1]=l.parsePercent(i[1],1),o=d[1]-d[0]||Math.abs(d[0])),"dataMin"===s?s=d[0]:"function"===typeof s&&(s=s({min:d[0],max:d[1]})),"dataMax"===u?u=d[1]:"function"===typeof u&&(u=u({min:d[0],max:d[1]}));var f=null!=s,p=null!=u;null==s&&(s="ordinal"===a?n?0:NaN:d[0]-i[0]*o),null==u&&(u="ordinal"===a?n?n-1:NaN:d[1]+i[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==u||!isFinite(u))&&(u=NaN),t.setBlank(r.eqNaN(s)||r.eqNaN(u)||"ordinal"===a&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(s>0&&u>0&&!f&&(s=0),s<0&&u<0&&!p&&(u=0));var m=e.ecModel;if(m&&"time"===a){var v,y=c("bar",m);if(r.each(y,(function(t){v|=t.getBaseAxis()===e.axis})),v){var _=h(y),x=g(s,u,e,_);s=x.min,u=x.max}}return{extent:[s,u],fixMin:f,fixMax:p}}function g(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],s=d(i,n.axis);if(void 0===s)return{min:t,max:e};var l=1/0;r.each(s,(function(t){l=Math.min(t.offset,l)}));var u=-1/0;r.each(s,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,h=e-t,f=1-(l+u)/a,p=h/f-h;return e+=p*(u/c),t-=p*(l/c),{min:t,max:e}}function m(t,e){var n=p(t,e),i=n.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function v(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new o(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(s.getClass(e)||a).create(t)}}function y(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function _(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"===typeof e?(e=function(e){return function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}}(e),e):"function"===typeof e?function(i,r){return null!=n&&(r=i-n),e(x(t,i),r)}:function(e){return t.scale.getLabel(e)}}function x(t,e){return"category"===t.type?t.scale.getLabel(e):e}function b(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,o="category"===t.type,a=n.getExtent();o?r=n.count():(i=n.getTicks(),r=i.length);var s,l=t.getLabelModel(),u=_(t),c=1;r>40&&(c=Math.ceil(r/40));for(var h=0;h<r;h+=c){var d=i?i[h]:a[0]+h,f=u(d),p=l.getTextRect(f),g=w(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function w(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,o=i.height,a=r*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),s=r*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n)),l=new f(i.x,i.y,a,s);return l}function S(t){var e=t.get("interval");return null==e?"auto":e}function A(t){return"category"===t.type&&0===S(t.getLabelModel())}n(12683),n(94034),e.getScaleExtent=p,e.niceScaleExtent=m,e.createScaleByModel=v,e.ifAxisCrossZero=y,e.makeLabelFormatter=_,e.getAxisRawValue=x,e.estimateLabelUnionRect=b,e.getOptionCategoryInterval=S,e.shouldShowAllLabels=A},48267:function(t,e,n){var i=n(95289),r={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:i.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};t.exports=r},98541:function(t,e,n){var i=n(95289),r=n(15429),o=n(85532),a=n(61570),s=a.getLayoutParams,l=a.mergeLayoutParam,u=n(54874),c=["value","category","time","log"];function h(t,e,n,a){i.each(c,(function(o){e.extend({type:t+"Axis."+o,mergeDefaultAndTheme:function(e,r){var a=this.layoutMode,u=a?s(e):{},c=r.getTheme();i.merge(e,c.get(o+"Axis")),i.merge(e,this.getDefaultOption()),e.type=n(t,e),a&&l(e,u,a)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.mergeAll([{},r[o+"Axis"],a],!0)})})),o.registerSubTypeDefaulter(t+"Axis",i.curry(n,t))}t.exports=h},38858:function(t,e,n){var i=n(95289),r=n(43407),o=n(63199),a=o.makeInner,s=n(8426),l=s.makeLabelFormatter,u=s.getOptionCategoryInterval,c=s.shouldShowAllLabels,h=a();function d(t){return"category"===t.type?p(t):v(t)}function f(t,e){return"category"===t.type?m(t,e):{ticks:t.scale.getTicks()}}function p(t){var e=t.getLabelModel(),n=g(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function g(t,e){var n,r,o=y(t,"labels"),a=u(e),s=_(o,a);return s||(i.isFunction(a)?n=M(t,a):(r="auto"===a?b(t):a,n=A(t,r)),x(o,a,{labels:n,labelCategoryInterval:r}))}function m(t,e){var n,r,o=y(t,"ticks"),a=u(e),s=_(o,a);if(s)return s;if(e.get("show")&&!t.scale.isBlank()||(n=[]),i.isFunction(a))n=M(t,a,!0);else if("auto"===a){var l=g(t,t.getLabelModel());r=l.labelCategoryInterval,n=i.map(l.labels,(function(t){return t.tickValue}))}else r=a,n=A(t,r,!0);return x(o,a,{ticks:n,tickCategoryInterval:r})}function v(t){var e=t.scale.getTicks(),n=l(t);return{labels:i.map(e,(function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}function y(t,e){return h(t)[e]||(h(t)[e]=[])}function _(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function x(t,e,n){return t.push({key:e,value:n}),n}function b(t){var e=h(t).autoInterval;return null!=e?e:h(t).autoInterval=t.calculateCategoryInterval()}function w(t){var e=S(t),n=l(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,a=o.getExtent(),s=o.count();if(a[1]-a[0]<1)return 0;var u=1;s>40&&(u=Math.max(1,Math.floor(s/40)));for(var c=a[0],d=t.dataToCoord(c+1)-t.dataToCoord(c),f=Math.abs(d*Math.cos(i)),p=Math.abs(d*Math.sin(i)),g=0,m=0;c<=a[1];c+=u){var v=0,y=0,_=r.getBoundingRect(n(c),e.font,"center","top");v=1.3*_.width,y=1.3*_.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var x=g/f,b=m/p;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b))),A=h(t.model),M=t.getExtent(),C=A.lastAutoInterval,I=A.lastTickCount;return null!=C&&null!=I&&Math.abs(C-w)<=1&&Math.abs(I-s)<=1&&C>w&&A.axisExtend0===M[0]&&A.axisExtend1===M[1]?w=C:(A.lastTickCount=s,A.lastAutoInterval=w,A.axisExtend0=M[0],A.axisExtend1=M[1]),w}function S(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function A(t,e,n){var i=l(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],u=Math.max((e||0)+1,1),h=o[0],d=r.count();0!==h&&u>1&&d/u>2&&(h=Math.round(Math.ceil(h/u)*u));var f=c(t),p=a.get("showMinLabel")||f,g=a.get("showMaxLabel")||f;p&&h!==o[0]&&v(o[0]);for(var m=h;m<=o[1];m+=u)v(m);function v(t){s.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return g&&m-u!==o[1]&&v(o[1]),s}function M(t,e,n){var r=t.scale,o=l(t),a=[];return i.each(r.getTicks(),(function(t){var i=r.getLabel(t);e(t,i)&&a.push(n?t:{formattedLabel:o(t),rawLabel:i,tickValue:t})})),a}e.createAxisLabels=d,e.createAxisTicks=f,e.calculateCategoryInterval=w},17354:function(t,e,n){var i=n(95289),r=n(61570),o=n(44261),a=n(50294),s=864e5;function l(t,e,n){this._model=t}function u(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}l.prototype={constructor:l,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){t=o.parseDate(t);var e=t.getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var i=t.getDate();i=i<10?"0"+i:i;var r=t.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:e,m:n,d:i,day:r,time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},getNextNDay:function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[n,7]:[7,n];i.each([0,1],(function(t){h(a,t)&&(s[o[t]]=a[t]*l[t])}));var u={width:e.getWidth(),height:e.getHeight()},c=this._rect=r.getLayoutRect(s,u);function h(t,e){return null!=t[e]&&"auto"!==t[e]}i.each([0,1],(function(t){h(a,t)||(a[t]=c[o[t]]/l[t])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(t,e){i.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.time<r.end.time+s))return[NaN,NaN];var a=n.day,l=this._getRangeInfo([r.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},convertToPixel:i.curry(u,"dataToPoint"),convertFromPixel:i.curry(u,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(i.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var n=this.getDateInfo(e),r=n.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],t[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/s)-Math.floor(t[0].time/s)+1,i=new Date(t[0].time),r=i.getDate(),o=t[1].date.getDate();i.setDate(r+n-1);var a=i.getDate();if(a!==o){var l=i.getTime()-t[1].time>0?1:-1;while((a=i.getDate())!==o&&(i.getTime()-t[1].time)*l>0)n-=l,i.setDate(a-l)}var u=Math.floor((n+t[0].day+6)/7),c=e?1-u:u-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:u,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(i){var r=new l(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},a.register("calendar",l);var c=l;t.exports=c},89025:function(t,e,n){var i=n(95289),r=n(85532),o=n(61570),a=o.getLayoutParams,s=o.sizeCalculable,l=o.mergeLayoutParam,u=r.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,i){var r=a(t);u.superApply(this,"init",arguments),c(t,r)},mergeOption:function(t,e){u.superApply(this,"mergeOption",arguments),c(this.option,t)}});function c(t,e){var n=t.cellSize;i.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var r=i.map([0,1],(function(t){return s(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));l(t,e,{type:"box",ignoreSize:r})}var h=u;t.exports=h},14774:function(t){function e(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}t.exports=e},81663:function(t,e,n){var i=n(95289),r=n(31490),o=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom"};o.prototype={constructor:o,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},i.inherits(o,r);var a=o;t.exports=a},67384:function(t,e,n){var i=n(95289),r=n(85532),o=n(98541),a=n(48267),s=r.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(t,e){return e.type||(e.data?"category":"value")}i.merge(s.prototype,a);var u={offset:0};o("x",s,l,u),o("y",s,l,u);var c=s;t.exports=c},37548:function(t,e,n){var i=n(95289);function r(t){return this._axes[t]}var o=function(t){this._axes={},this._dimList=[],this.name=t||""};o.prototype={constructor:o,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,r,this)},getAxesByScale:function(t){return t=t.toLowerCase(),i.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n.length;r++){var o=n[r],a=this._axes[o];i[o]=a[e](t[o])}return i}};var a=o;t.exports=a},32474:function(t,e,n){var i=n(95289),r=n(39587),o=n(37548);function a(t){o.call(this,t)}a.prototype={constructor:a,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),r=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=r.toGlobalCoord(r.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return e=e||[],e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),o=Math.max(t[0],t[1])-n,a=Math.max(e[0],e[1])-i,s=new r(n,i,o,a);return s}},i.inherits(a,o);var s=a;t.exports=s},31020:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=r.isObject,a=r.each,s=r.map,l=r.indexOf,u=(r.retrieve,n(61570)),c=u.getLayoutRect,h=n(8426),d=h.createScaleByModel,f=h.ifAxisCrossZero,p=h.niceScaleExtent,g=h.estimateLabelUnionRect,m=n(32474),v=n(81663),y=n(50294),_=n(74051),x=_.getStackedDimension;function b(t,e,n){return t.getCoordSysModel()===e}function w(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}n(34499);var S=w.prototype;function A(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)M(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&M(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function M(t){return t&&"category"!==t.type&&"time"!==t.type&&f(t)}function C(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}S.type="grid",S.axisPointerEnabled=!0,S.getRect=function(){return this._rect},S.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),a(n.x,(function(t){p(t.scale,t.model)})),a(n.y,(function(t){p(t.scale,t.model)}));var i={};a(n.x,(function(t){A(n,"y",t,i)})),a(n.y,(function(t){A(n,"x",t,i)})),this.resize(this.model,e)},S.resize=function(t,e,n){var i=c(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=i;var r=this._axesList;function o(){a(r,(function(t){var e=t.isHorizontal(),n=e?[0,i.width]:[0,i.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),C(t,e?i.x:i.y)}))}o(),!n&&t.get("containLabel")&&(a(r,(function(t){if(!t.model.get("axisLabel.inside")){var e=g(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get("axisLabel.margin");i[n]-=e[n]+r,"top"===t.position?i.y+=e.height+r:"left"===t.position&&(i.x+=e.width+r)}}})),o())},S.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},S.getAxes=function(){return this._axesList.slice()},S.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}o(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},S.getCartesians=function(){return this._coordsList.slice()},S.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},S.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},S._findConvertTarget=function(t,e){var n,i,r=e.seriesModel,o=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,u=this._coordsList;if(r)n=r.coordinateSystem,l(u,n)<0&&(n=null);else if(o&&a)n=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)i=this.getAxis("x",o.componentIndex);else if(a)i=this.getAxis("y",a.componentIndex);else if(s){var c=s.coordinateSystem;c===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},S.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},S._initCartesian=function(t,e,n){var i={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},o={x:0,y:0};if(e.eachComponent("xAxis",s("x"),this),e.eachComponent("yAxis",s("y"),this),!o.x||!o.y)return this._axesMap={},void(this._axesList=[]);function s(n){return function(a,s){if(b(a,t,e)){var l=a.get("position");"x"===n?"top"!==l&&"bottom"!==l&&(l=i.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=i.left?"right":"left"),i[l]=!0;var u=new v(n,d(a),[0,0],a.get("type"),l),c="category"===u.type;u.onBand=c&&a.get("boundaryGap"),u.inverse=a.get("inverse"),a.axis=u,u.model=a,u.grid=this,u.index=s,this._axesList.push(u),r[n][s]=u,o[n]++}}}this._axesMap=r,a(r.x,(function(e,n){a(r.y,(function(i,r){var o="x"+n+"y"+r,a=new m(o);a.grid=this,a.model=t,this._coordsMap[o]=a,this._coordsList.push(a),a.addAxis(e),a.addAxis(i)}),this)}),this)},S._updateScale=function(t,e){function n(t,e,n){a(t.mapDimension(e.dim,!0),(function(n){e.scale.unionExtentFromData(t,x(t,n))}))}a(this._axesList,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeries((function(i){if(E(i)){var r=T(i,t),o=r[0],a=r[1];if(!b(o,e,t)||!b(a,e,t))return;var s=this.getCartesian(o.componentIndex,a.componentIndex),l=i.getData(),u=s.getAxis("x"),c=s.getAxis("y");"list"===l.type&&(n(l,u,i),n(l,c,i))}}),this)},S.getTooltipAxes=function(t){var e=[],n=[];return a(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);l(e,r)<0&&e.push(r),l(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}};var I=["xAxis","yAxis"];function T(t,e){return s(I,(function(e){var n=t.getReferringComponents(e)[0];return n}))}function E(t){return"cartesian2d"===t.get("coordinateSystem")}w.create=function(t,e){var n=[];return t.eachComponent("grid",(function(i,r){var o=new w(i,t,e);o.name="grid_"+r,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(e){if(E(e)){var n=T(e,t),i=n[0],r=n[1],o=i.getCoordSysModel(),a=o.coordinateSystem;e.coordinateSystem=a.getCartesian(i.componentIndex,r.componentIndex)}})),n},w.dimensions=w.prototype.dimensions=m.prototype.dimensions,y.register("cartesian2d",w);var D=w;t.exports=D},34499:function(t,e,n){n(67384);var i=n(85532),r=i.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=r},30625:function(t,e,n){var i=n(95289);function r(t,e,n){n=n||{};var r=t.coordinateSystem,o=e.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,u=s?"onZero":l,c=o.dim,h=r.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===c?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(s){var m=s.toGlobalCoord(s.dataToCoord(0));g[f.onZero]=Math.max(Math.min(m,g[1]),g[0])}a.position=["y"===c?g[f[u]]:d[0],"x"===c?g[f[u]]:d[3]],a.rotation=Math.PI/2*("x"===c?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[l],a.labelOffset=s?g[f[l]]-g[f.onZero]:0,e.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),i.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var y=e.get("axisLabel.rotate");return a.labelRotate="top"===u?-y:y,a.z2=1,a}e.layout=r},88190:function(t,e,n){var i=n(95289);function r(t,e){return e=e||[0,0],i.map(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function o(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}t.exports=o},30140:function(t,e,n){var i=n(95289),r=n(39587),o=n(92394),a=n(80218);function s(t,e,n,i){o.call(this,t),this.map=e;var r=a.load(e,n);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==i||i,this.regions=r.regions,this._rect=r.boundingRect}function l(t,e,n,i){var r=n.geoModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return!0;return!1},transformTo:function(t,e,n,i){var o=this.getBoundingRect(),a=this._invertLongitute;o=o.clone(),a&&(o.y=-o.y-o.height);var s=this._rawTransformable;if(s.transform=o.calculateTransform(new r(t,e,n,i)),s.decomposeTransform(),a){var l=s.scale;l[1]=-l[1]}s.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(t,e,n){if("string"===typeof t&&(t=this.getGeoCoord(t)),t)return o.prototype.dataToPoint.call(this,t,e,n)},convertToPixel:i.curry(l,"dataToPoint"),convertFromPixel:i.curry(l,"pointToData")},i.mixin(s,o);var u=s;t.exports=u},86867:function(t,e,n){var i=n(95289),r=n(63199),o=n(85532),a=n(40590),s=n(18171),l=n(98870),u=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){o.prototype.init.apply(this,arguments),r.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=l.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=i.reduce(t.regions||[],(function(t,n){return n.name&&t.set(n.name,new a(n,e)),t}),i.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new a(null,this,this.ecModel)},getFormattedLabel:function(t,e){e=e||"normal";var n=this.getRegionModel(t),i=n.get(("normal"===e?"":e+".")+"label.formatter"),r={name:t};return"function"===typeof i?(r.status=e,i(r)):"string"===typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});i.mixin(u,s);var c=u;t.exports=c},55021:function(t,e,n){var i=n(39587),r=n(66346),o=n(31138),a=n(91068);function s(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],a=[-e,-e],s=[],l=[],u=this.geometries,c=0;c<u.length;c++)if("polygon"===u[c].type){var h=u[c].exterior;r.fromPoints(h,s,l),o.min(n,n,s),o.max(a,a,l)}return 0===c&&(n[0]=n[1]=a[0]=a[1]=0),this._rect=new i(n[0],n[1],a[0]-n[0],a[1]-n[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++)if("polygon"===n[i].type){var o=n[i].exterior,s=n[i].interiors;if(a.contain(o,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(a.contain(s[l]))continue t;return!0}}return!1},transformTo:function(t,e,n,r){var a=this.getBoundingRect(),s=a.width/a.height;n?r||(r=n/s):n=s*r;for(var l=new i(t,e,n,r),u=a.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++)if("polygon"===c[h].type){for(var d=c[h].exterior,f=c[h].interiors,p=0;p<d.length;p++)o.applyTransform(d[p],d[p],u);for(var g=0;g<(f?f.length:0);g++)for(p=0;p<f[g].length;p++)o.applyTransform(f[g][p],f[g][p],u)}a=this._rect,a.copy(l),this.center=[a.x+a.width/2,a.y+a.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new s(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var l=s;t.exports=l},93949:function(t){var e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function n(t,n){"china"===t&&"台湾"===n.name&&n.geometries.push({type:"polygon",exterior:e[0]})}t.exports=n},9519:function(t){var e={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function n(t,n){if("world"===t){var i=e[n.name];if(i){var r=n.center;r[0]=i[0],r[1]=i[1]}}}t.exports=n},82424:function(t,e,n){for(var i=n(95289),r=n(55021),o=[126,25],a=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<a.length;s++)for(var l=0;l<a[s].length;l++)a[s][l][0]/=10.5,a[s][l][1]/=-14,a[s][l][0]+=o[0],a[s][l][1]+=o[1];function u(t,e){"china"===t&&e.push(new r("南海诸岛",i.map(a,(function(t){return{type:"polygon",exterior:t}})),o))}t.exports=u},21605:function(t){var e={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function n(t,n){if("china"===t){var i=e[n.name];if(i){var r=n.center;r[0]+=i[0]/10.5,r[1]+=-i[1]/14}}}t.exports=n},98870:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(89231)),o=n(95289),a=n(30140),s=n(61570),l=n(44261),u=n(80218),c=n(45986);function h(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])||this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var o,a=this.getBoundingRect(),u=t.get("layoutCenter"),c=t.get("layoutSize"),h=e.getWidth(),d=e.getHeight(),f=a.width/a.height*this.aspectScale,p=!1;if(u&&c&&(u=[l.parsePercent(u[0],h),l.parsePercent(u[1],d)],c=l.parsePercent(c,Math.min(h,d)),isNaN(u[0])||isNaN(u[1])||isNaN(c)||(p=!0)),p){var g={};f>1?(g.width=c,g.height=c/f):(g.height=c,g.width=c*f),g.y=u[1]-g.height/2,g.x=u[0]-g.width/2}else o=t.getBoxLayoutParams(),o.aspect=f,g=s.getLayoutRect(o,{width:h,height:d});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function d(t,e){o.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var f={dimensions:a.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("geo",(function(t,i){var r=t.get("map"),o=t.get("aspectScale"),s=!0,l=c.retrieveMap(r);l&&l[0]&&"svg"===l[0].type?(null==o&&(o=1),s=!1):null==o&&(o=.75);var u=new a(r+i,r,t.get("nameMap"),s);u.aspectScale=o,u.zoomLimit=t.get("scaleLimit"),n.push(u),d(u,t),t.coordinateSystem=u,u.model=t,u.resize=h,u.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),o.each(i,(function(t,i){var r=o.map(t,(function(t){return t.get("nameMap")})),s=new a(i,i,o.mergeAll(r));s.zoomLimit=o.retrieve.apply(null,o.map(t,(function(t){return t.get("scaleLimit")}))),n.push(s),s.resize=h,s.aspectScale=t[0].get("aspectScale"),s.resize(t[0],e),o.each(t,(function(t){t.coordinateSystem=s,d(s,t)}))})),n},getFilledRegions:function(t,e,n){for(var i=(t||[]).slice(),r=o.createHashMap(),a=0;a<i.length;a++)r.set(i[a].name,i[a]);var s=u.load(e,n);return o.each(s.regions,(function(t){var e=t.name;!r.get(e)&&i.push({name:e})})),i}};r.registerCoordinateSystem("geo",f);var p=f;t.exports=p},10205:function(t,e,n){var i=n(95289),r=i.each,o=n(46135),a=n(63199),s=a.makeInner,l=n(82424),u=n(21605),c=n(9519),h=n(93949),d=s(),f={load:function(t,e,n){var i=d(e).parsed;if(i)return i;var a,s=e.specialAreas||{},f=e.geoJSON;try{a=f?o(f,n):[]}catch(g){throw new Error("Invalid geoJson format\n"+g.message)}return l(t,a),r(a,(function(e){var n=e.name;u(t,e),c(t,e),h(t,e);var i=s[n];i&&e.transformTo(i.left,i.top,i.width,i.height)})),d(e).parsed={regions:a,boundingRect:p(a)}}};function p(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}t.exports=f},64663:function(t,e,n){var i=n(9717),r=i.parseSVG,o=i.makeViewBoxTransform,a=n(75738),s=n(15404),l=n(95289),u=l.assert,c=l.createHashMap,h=n(39587),d=n(63199),f=d.makeInner,p=f(),g={load:function(t,e){var n=p(e).originRoot;if(n)return{root:n,boundingRect:p(e).boundingRect};var i=m(e);return p(e).originRoot=i.root,p(e).boundingRect=i.boundingRect,i},makeGraphic:function(t,e,n){var i=p(e),r=i.rootMap||(i.rootMap=c()),o=r.get(n);if(o)return o;var a=i.originRoot,s=i.boundingRect;return i.originRootHostKey?o=m(e,s).root:(i.originRootHostKey=n,o=a),r.set(n,o)},removeGraphic:function(t,e,n){var i=p(e),r=i.rootMap;r&&r.removeKey(n),n===i.originRootHostKey&&(i.originRootHostKey=null)}};function m(t,e){var n,i,l=t.svgXML;try{n=l&&r(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=n.root,u(null!=i)}catch(m){throw new Error("Invalid svg format\n"+m.message)}var c=n.width,d=n.height,f=n.viewBoxRect;if(e||(e=null==c||null==d?i.getBoundingRect():new h(0,0,0,0),null!=c&&(e.width=c),null!=d&&(e.height=d)),f){var p=o(f,e.width,e.height),g=i;i=new a,i.add(g),g.scale=p.scale,g.position=p.position}return i.setClipPath(new s({shape:e.plain()})),{root:i,boundingRect:e}}t.exports=g},80218:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=r.each,a=r.createHashMap,s=n(45986),l=n(10205),u=n(64663),c=n(39587),h={geoJSON:l,svg:u},d={load:function(t,e,n){var i,r=[],s=a(),l=a(),u=p(t);return o(u,(function(a){var u=h[a.type].load(t,a,n);o(u.regions,(function(t){var n=t.name;e&&e.hasOwnProperty(n)&&(t=t.cloneShallow(n=e[n])),r.push(t),s.set(n,t),l.set(n,t.center)}));var c=u.boundingRect;c&&(i?i.union(c):i=c.clone())})),{regions:r,regionsMap:s,nameCoordMap:l,boundingRect:i||new c(0,0,0,0)}},makeGraphic:f("makeGraphic"),removeGraphic:f("removeGraphic")};function f(t){return function(e,n){var i=p(e),r=[];return o(i,(function(i){var o=h[i.type][t];o&&r.push(o(e,i,n))})),r}}function p(t){var e=s.retrieveMap(t)||[];return e}t.exports=d},45986:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=r.createHashMap,a=r.isString,s=r.isArray,l=r.each,u=(r.assert,n(9717)),c=u.parseXML,h=o(),d={registerMap:function(t,e,n){var i;return s(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),l(i,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var n=f[e];n(t)})),h.set(t,i)},retrieveMap:function(t){return h.get(t)}},f={geoJSON:function(t){var e=t.source;t.geoJSON=a(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=c(t.source)}};t.exports=d},46135:function(t,e,n){var i=n(95289),r=n(55021);function o(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++)for(var r=n[i],o=r.geometry,s=o.coordinates,l=o.encodeOffsets,u=0;u<s.length;u++){var c=s[u];if("Polygon"===o.type)s[u]=a(c,l[u],e);else if("MultiPolygon"===o.type)for(var h=0;h<c.length;h++){var d=c[h];c[h]=a(d,l[u][h],e)}}return t.UTF8Encoding=!1,t}function a(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function s(t,e){return o(t),i.map(i.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,o=t.geometry,a=o.coordinates,s=[];"Polygon"===o.type&&s.push({type:"polygon",exterior:a[0],interiors:a.slice(1)}),"MultiPolygon"===o.type&&i.each(a,(function(t){t[0]&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new r(n[e||"name"],s,n.cp);return l.properties=n,l}))}t.exports=s},89993:function(t,e,n){var i=n(95289);function r(t,e){return e=e||[0,0],i.map([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function o(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}t.exports=o},52841:function(t,e,n){var i=n(95289),r=n(85532),o=n(81935),a=n(98541),s=n(44261),l=n(48267),u=r.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i.clone(t);if(e)for(var n=e.length-1;n>=0;n--)s.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function h(t,e){return e.type||(e.data?"category":"value")}i.merge(u.prototype,l),a("parallel",u,h,c);var d=u;t.exports=d},46052:function(t,e,n){var i=n(95289),r=n(13388),o=n(61570),a=n(8426),s=n(81477),l=n(76442),u=n(44261),c=n(96748),h=i.each,d=Math.min,f=Math.max,p=Math.floor,g=Math.ceil,m=u.round,v=Math.PI;function y(t,e,n){this._axesMap=i.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function _(t,e){return d(f(t,e[0]),e[1])}function x(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function b(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}y.prototype={type:"parallel",constructor:y,_init:function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;h(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),l=this._axesMap.set(t,new s(t,a.createScaleByModel(o),[0,0],o.get("type"),i)),u="category"===l.type;l.onBand=u&&o.get("boundaryGap"),l.inverse=o.get("inverse"),o.axis=l,l.model=o,l.coordinateSystem=o.coordinateSystem=this}),this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();h(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),a.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=o.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=_(e.get("axisExpandWidth"),l),h=_(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");if(f)t=_(f[1]-f[0],l),f[1]=f[0]+t;else{t=_(c*(h-1),l);var v=e.get("axisExpandCenter")||p(u/2);f=[c*v-t/2],f[1]=f[0]+t}var y=(s-t)/(u-h);y<3&&(y=0);var x=[p(m(f[0]/c,1))+1,g(m(f[1]/c,1))-1],b=y/c*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:f,axisCount:u,winInnerIndices:x,axisExpandWindow0Pos:b}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),h(n,(function(e,n){var a=(i.axisExpandable?b:x)(n,i),s={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},l={horizontal:v/2,vertical:0},u=[s[o].x+t.x,s[o].y+t.y],c=l[o],h=r.create();r.rotate(h,h,c),r.translate(h,h,u),this._axesLayout[e]={position:u,rotation:c,transform:h,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];i.each(a,(function(e){s.push(t.mapDimension(e)),l.push(o.get(e).model)}));for(var u=this.hasAxisBrushed(),c=n;c<r;c++){var h;if(u){h="active";for(var d=t.getValues(s,c),f=0,p=a.length;f<p;f++){var g=l[f].getActiveState(d[f]);if("inactive"===g){h="inactive";break}}}else h="normal";e(h,c)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(t,e){var n=this._axesLayout[e];return l.applyTransform([t,0],n.transform)},getAxisLayout:function(t){return i.clone(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),p=null!=h[0];if(u)p&&u&&s<r*h[0]?(l="jump",a=s-r*h[2]):p&&u&&s>r*(1-h[0])?(l="jump",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?c(a,i,o,"all"):l="none";else{r=i[1]-i[0];var g=o[1]*s/r;i=[f(0,g-r/2)],i[1]=d(o[1],i[0]+r),i[0]=i[1]-r}return{axisExpandWindow:i,behavior:l}}};var w=y;t.exports=w},81477:function(t,e,n){var i=n(95289),r=n(31490),o=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.axisIndex=o};o.prototype={constructor:o,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},i.inherits(o,r);var a=o;t.exports=a},69531:function(t,e,n){var i=n(95289),r=n(85532);n(52841);var o=r.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(t){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=i.filter(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);i.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))}});t.exports=o},9278:function(t,e,n){var i=n(46052),r=n(50294);function o(t,e){var n=[];return t.eachComponent("parallel",(function(r,o){var a=new i(r,t,e);a.name="parallel_"+o,a.resize(r,e),r.coordinateSystem=a,a.model=r,n.push(a)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}r.register("parallel",{create:o})},44259:function(t,e,n){var i=n(95289),r=n(63199);function o(t){a(t),s(t)}function a(t){if(!t.parallel){var e=!1;i.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function s(t){var e=r.normalizeToArray(t.parallelAxis);i.each(e,(function(e){if(i.isObject(e)){var n=e.parallelIndex||0,o=r.normalizeToArray(t.parallel)[n];o&&o.parallelAxisDefault&&i.merge(e,o.parallelAxisDefault,!1)}}))}t.exports=o},10318:function(t,e,n){var i=n(95289),r=n(43407),o=n(31490),a=n(63199),s=a.makeInner,l=s();function u(t,e){e=e||[0,360],o.call(this,"angle",t,e),this.type="category"}u.prototype={constructor:u,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:o.prototype.dataToCoord,angleToData:o.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var a=i[0],s=t.dataToCoord(a+1)-t.dataToCoord(a),u=Math.abs(s),c=r.getBoundingRect(a,e.getFont(),"center","top"),h=Math.max(c.height,7),d=h/u;isNaN(d)&&(d=1/0);var f=Math.max(0,Math.floor(d)),p=l(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return null!=g&&null!=m&&Math.abs(g-f)<=1&&Math.abs(m-o)<=1&&g>f?f=g:(p.lastTickCount=o,p.lastAutoInterval=f),f}},i.inherits(u,o);var c=u;t.exports=c},77814:function(t,e,n){var i=n(95289),r=n(85532),o=n(98541),a=n(48267),s=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});i.merge(s.prototype,a);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function u(t,e){return e.type||(e.data?"category":"value")}o("angle",s,u,l.angle),o("radius",s,u,l.radius)},4432:function(t,e,n){var i=n(95845),r=n(10318),o=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};o.prototype={type:"polar",axisPointerEnabled:!0,constructor:o,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}}};var a=o;t.exports=a},23607:function(t,e,n){var i=n(89231);n(77814);var r=i.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=r},95845:function(t,e,n){var i=n(95289),r=n(31490);function o(t,e){r.call(this,"radius",t,e),this.type="category"}o.prototype={constructor:o,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},i.inherits(o,r);var a=o;t.exports=a},35866:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(4432),a=n(44261),s=a.parsePercent,l=n(8426),u=l.createScaleByModel,c=l.niceScaleExtent,h=n(50294),d=n(74051),f=d.getStackedDimension;function p(t,e,n){var i=e.get("center"),o=n.getWidth(),a=n.getHeight();t.cx=s(i[0],o),t.cy=s(i[1],a);var l=t.getRadiusAxis(),u=Math.min(o,a)/2,c=e.get("radius");null==c?c=[0,"100%"]:r.isArray(c)||(c=[0,c]),c=[s(c[0],u),s(c[1],u)],l.inverse?l.setExtent(c[1],c[0]):l.setExtent(c[0],c[1])}function g(t,e){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();r.each(e.mapDimension("radius",!0),(function(t){o.scale.unionExtentFromData(e,f(e,t))})),r.each(e.mapDimension("angle",!0),(function(t){i.scale.unionExtentFromData(e,f(e,t))}))}})),c(i.scale,i.model),c(o.scale,o.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),s=360/i.scale.count();i.inverse?a[1]+=s:a[1]-=s,i.setExtent(a[0],a[1])}}function m(t,e){if(t.type=e.get("type"),t.scale=u(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}n(23607);var v={dimensions:o.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new o(i);r.update=g;var a=r.getRadiusAxis(),s=r.getAngleAxis(),l=t.findAxisModel("radiusAxis"),u=t.findAxisModel("angleAxis");m(a,l),m(s,u),p(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}};h.register("polar",v)},12976:function(t,e,n){var i=n(95289);function r(t,e){return i.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="dataTo"+n,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function o(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),o=e.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:o[1],r0:o[0]},api:{coord:i.bind((function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a})),size:i.bind(r,t)}}}t.exports=o},64156:function(t,e,n){var i=n(95289),r=n(31490);function o(t,e,n){r.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}i.inherits(o,r);var a=o;t.exports=a},12228:function(t,e,n){var i=n(95289),r=n(64156),o=n(21607),a=n(44261),s=n(8426),l=s.getScaleExtent,u=s.niceScaleExtent,c=n(50294),h=n(94034);function d(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=i.map(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new r(n,"log"===t.get("axisType")?new h:new o);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}d.prototype.getIndicatorAxes=function(){return this._indicatorAxes},d.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},d.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,r=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[r,o]},d.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},d.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),o=e.getHeight(),s=Math.min(r,o)/2;this.cx=a.parsePercent(n[0],r),this.cy=a.parsePercent(n[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var l=t.get("radius");"string"!==typeof l&&"number"!==typeof l||(l=[0,l]),this.r0=a.parsePercent(l[0],s),this.r=a.parsePercent(l[1],s),i.each(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},d.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;i.each(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,o){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var a=e.getData();i.each(n,(function(t){t.scale.unionExtentFromData(a,a.mapDimension(t.dim))}))}}),this);var o=r.get("splitNumber");function s(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}i.each(n,(function(t,e){var n=l(t.scale,t.model).extent;u(t.scale,t.model);var i=t.model,r=t.scale,c=i.getMin(),h=i.getMax(),d=r.getInterval();if(null!=c&&null!=h)r.setExtent(+c,+h),r.setInterval((h-c)/o);else if(null!=c){do{p=c+d*o,r.setExtent(+c,p),r.setInterval(d),d=s(d)}while(p<n[1]&&isFinite(p)&&isFinite(n[1]))}else if(null!=h){do{g=h-d*o,r.setExtent(g,+h),r.setInterval(d),d=s(d)}while(g>n[0]&&isFinite(g)&&isFinite(n[0]))}else{var f=r.getTicks().length-1;f>o&&(d=s(d));var p=Math.ceil(n[1]/d)*d,g=a.round(p-d*o);r.setExtent(g,p),r.setInterval(d)}}))},d.dimensions=[],d.create=function(t,e){var n=[];return t.eachComponent("radar",(function(i){var r=new d(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},c.register("radar",d);var f=d;t.exports=f},45371:function(t,e,n){var i=n(89231),r=n(95289),o=n(15429),a=n(40590),s=n(48267),l=o.valueAxis;function u(t,e){return r.defaults({show:e},t)}var c=i.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),c=this.get("name"),h=this.get("name.show"),d=this.get("name.formatter"),f=this.get("nameGap"),p=this.get("triggerEvent"),g=r.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var m=c;if(null!=g.color&&(m=r.defaults({color:g.color},c)),g=r.merge(r.clone(g),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:o,axisType:l,axisLabel:u,name:g.text,nameLocation:"end",nameGap:f,nameTextStyle:m,triggerEvent:p},!1),h||(g.name=""),"string"===typeof d){var v=g.name;g.name=d.replace("{value}",null!=v?v:"")}else"function"===typeof d&&(g.name=d(g.name,g));var y=r.extend(new a(g,null,this.ecModel),s);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:r.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:u(l.axisLabel,!1),axisTick:u(l.axisTick,!1),axisType:"interval",splitLine:u(l.splitLine,!0),splitArea:u(l.splitArea,!0),indicator:[]}}),h=c;t.exports=h},51102:function(t,e,n){var i=n(95289),r=n(85532),o=n(98541),a=n(48267),s=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function u(t,e){return e.type||(e.data?"category":"value")}i.merge(s.prototype,a),o("single",s,u,l);var c=s;t.exports=c},75766:function(t,e,n){var i=n(25515),r=n(8426),o=n(61570),a=o.getLayoutRect,s=n(95289),l=s.each;function u(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}u.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:u,_init:function(t,e,n){var o=this.dimension,a=new i(o,r.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===a.type;a.onBand=s&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();l(e.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),r.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=a({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}};var c=u;t.exports=c},25515:function(t,e,n){var i=n(95289),r=n(31490),o=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom",this.orient=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(o,r);var a=o;t.exports=a},58568:function(t,e,n){var i=n(95289);function r(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function o(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}t.exports=o},71099:function(t,e,n){var i=n(95289);function r(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,o={},a=r.position,s=r.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};o.position=["vertical"===s?c.vertical[a]:u[0],"horizontal"===s?c.horizontal[a]:u[3]];var h={horizontal:0,vertical:1};o.rotation=Math.PI/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=d[a],t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),i.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var f=e.rotate;return null==f&&(f=t.get("axisLabel.rotate")),o.labelRotation="top"===a?-f:f,o.z2=1,o}e.layout=r},8644:function(t,e,n){var i=n(75766),r=n(50294);function o(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,o){var a=new i(r,t,e);a.name="single_"+o,a.resize(r,e),r.coordinateSystem=a,n.push(a)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}})),n}r.register("single",{create:o,dimensions:i.prototype.dimensions})},1032:function(t){function e(t){return t}function n(t,n,i,r,o){this._old=t,this._new=n,this._oldKeyGetter=i||e,this._newKeyGetter=r||e,this.context=o}function i(t,e,n,i,r){for(var o=0;o<t.length;o++){var a="_ec_"+r[i](t[o],o),s=e[a];null==s?(n.push(a),e[a]=o):(s.length||(e[a]=s=[s]),s.push(o))}}n.prototype={constructor:n,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,n={},r={},o=[],a=[];for(i(t,n,o,"_oldKeyGetter",this),i(e,r,a,"_newKeyGetter",this),c=0;c<t.length;c++){var s=o[c],l=r[s];if(null!=l){var u=l.length;u?(1===u&&(r[s]=null),l=l.shift()):r[s]=null,this._update&&this._update(l,c)}else this._remove&&this._remove(c)}for(var c=0;c<a.length;c++){s=a[c];if(r.hasOwnProperty(s)){l=r[s];if(null==l)continue;if(l.length){var h=0;for(u=l.length;h<u;h++)this._add&&this._add(l[h])}else this._add&&this._add(l)}}}};var r=n;t.exports=r},70362:function(t,e,n){var i=n(95289);function r(t){null!=t&&i.extend(this,t),this.otherDims={}}var o=r;t.exports=o},50950:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(11724),a=o.enableClassCheck;function s(t){return"_EC_"+t}var l=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=l.prototype;function c(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function h(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[s(t)]){var i=new c(t,e);return i.hostGraph=this,this.nodes.push(i),n[s(t)]=i,i}},u.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},u.getNodeById=function(t){return this._nodesMap[s(t)]},u.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if("number"===typeof t&&(t=this.nodes[t]),"number"===typeof e&&(e=this.nodes[e]),c.isInstance(t)||(t=i[s(t)]),c.isInstance(e)||(e=i[s(e)]),t&&e){var o=t.id+"-"+e.id,a=new h(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},u.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},u.getEdge=function(t,e){c.isInstance(t)&&(t=t.id),c.isInstance(e)&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},u.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},u.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},u.breadthFirstTraverse=function(t,e,n,i){if(c.isInstance(e)||(e=this._nodesMap[s(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null)){var a=[e];while(a.length){var l=a.shift(),u=l[r];for(o=0;o<u.length;o++){var h=u[o],d=h.node1===l?h.node2:h.node1;if(!d.__visited){if(t.call(i,d,l))return;a.push(d),d.__visited=!0}}}}}},u.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},u.clone=function(){for(var t=new l(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(i=0;i<n.length;i++){var r=n[i];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},c.prototype={constructor:c,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}}},h.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}};var d=function(t,e){return{getValue:function(n){var i=this[t][e];return i.get(i.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};r.mixin(c,d("hostGraph","data")),r.mixin(h,d("hostGraph","edgeData")),l.Node=c,l.Edge=h,a(c),a(h);var f=l;t.exports=f},5628:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(40590),a=n(1032),s=n(3325),l=n(41834),u=l.defaultDimValueGetters,c=l.DefaultDataProvider,h=n(99535),d=h.summarizeDimensions,f=n(70362),p=r.isObject,g="undefined",m=-1,v="e\0\0",y={float:typeof Float64Array===g?Array:Float64Array,int:typeof Int32Array===g?Array:Int32Array,ordinal:Array,number:Array,time:Array},_=typeof Uint32Array===g?Array:Uint32Array,x=typeof Int32Array===g?Array:Int32Array,b=typeof Uint16Array===g?Array:Uint16Array;function w(t){return t._rawCount>65535?_:b}function S(t){var e=t.constructor;return e===Array?t.slice():new e(t)}var A=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],M=["_extent","_approximateExtent","_rawExtent"];function C(t,e){r.each(A.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,r.each(M,(function(n){t[n]=r.clone(e[n])})),t._calculationInfo=r.extend(e._calculationInfo)}var I=function(t,e){t=t||["x","y"];for(var n={},i=[],o={},a=0;a<t.length;a++){var s=t[a];r.isString(s)?s=new f({name:s}):s instanceof f||(s=new f(s));var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},i.push(l),n[l]=s,s.index=a,s.createInvertedIndices&&(o[l]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=d(this),this._invertedIndicesMap=o,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},T=I.prototype;function E(t,e,n,i,r){var o=y[e.type],a=i-1,s=e.name,l=t[s][a];if(l&&l.length<n){for(var u=new o(Math.min(r-a*n,n)),c=0;c<l.length;c++)u[c]=l[c];t[s][a]=u}for(var h=i*n;h<r;h+=n)t[s].push(new o(Math.min(r-h,n)))}function D(t){var e=t._invertedIndicesMap;r.each(e,(function(n,i){var r=t._dimensionInfos[i],o=r.ordinalMeta;if(o){n=e[i]=new x(o.categories.length);for(var a=0;a<n.length;a++)n[a]=m;for(a=0;a<t._count;a++)n[t.get(i,a)]=a}}))}function P(t,e,n){var i;if(null!=e){var r=t._chunkSize,o=Math.floor(n/r),a=n%r,s=t.dimensions[e],l=t._storage[s][o];if(l){i=l[a];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(i=u.categories[i])}}return i}function L(t){return t}function R(t){return t<this._count&&t>=0?this._indices[t]:-1}function O(t,e){var n=t._idList[e];return null==n&&(n=P(t,t._idDimIdx,e)),null==n&&(n=v+e),n}function k(t){return r.isArray(t)||(t=[t]),t}function N(t,e){var n=t.dimensions,i=new I(r.map(n,t.getDimensionInfo,t),t.hostModel);C(i,t);for(var o=i._storage={},a=t._storage,s=0;s<n.length;s++){var l=n[s];a[l]&&(r.indexOf(e,l)>=0?(o[l]=F(a[l]),i._rawExtent[l]=z(),i._extent[l]=null):o[l]=a[l])}return i}function F(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=S(t[n]);return e}function z(){return[1/0,-1/0]}T.type="list",T.hasItemOption=!0,T.getDimension=function(t){return"number"!==typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},T.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},T.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},T.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return!0===e?(i||[]).slice():i&&i[e]},T.initData=function(t,e,n){var i=s.isInstance(t)||r.isArrayLike(t);i&&(t=new c(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},T.getProvider=function(){return this._rawData},T.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i)},T.appendValues=function(t,e){for(var n=this._chunkSize,i=this._storage,r=this.dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e?e.length:0),u=this._chunkCount,c=0;c<o;c++){var h=r[c];a[h]||(a[h]=z()),i[h]||(i[h]=[]),E(i,this._dimensionInfos[h],n,u,l),this._chunkCount=i[h].length}for(var d=new Array(o),f=s;f<l;f++){for(var p=f-s,g=Math.floor(f/n),m=f%n,v=0;v<o;v++){h=r[v];var y=this._dimValueGetterArrayRows(t[p]||d,h,p,v);i[h][g][m]=y;var _=a[h];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},D(this)},T._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;p<s;p++){var g=a[p];h[g]||(h[g]=z());var m=l[g];0===m.otherDims.itemName&&(n=this._nameDimIdx=p),0===m.otherDims.itemId&&(this._idDimIdx=p),o[g]||(o[g]=[]),E(o,m,i,f,e),this._chunkCount=o[g].length}for(var v=new Array(s),y=t;y<e;y++){v=r.getItem(y,v);for(var _=Math.floor(y/i),x=y%i,b=0;b<s;b++){g=a[b];var w=o[g][_],S=this._dimValueGetter(v,g,y,b);w[x]=S;var A=h[g];S<A[0]&&(A[0]=S),S>A[1]&&(A[1]=S)}if(!r.pure){var M=u[y];if(v&&null==M)if(null!=v.name)u[y]=M=v.name;else if(null!=n){var C=a[n],I=o[C][_];if(I){M=I[x];var T=l[C].ordinalMeta;T&&T.categories.length&&(M=T.categories[M])}}var P=null==v?null:v.id;null==P&&null!=M&&(d[M]=d[M]||0,P=M,d[M]>0&&(P+="__ec__"+d[M]),d[M]++),null!=P&&(c[y]=P)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},D(this)}},T.count=function(){return this._count},T.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i<n;i++)r[i]=t[i]}else r=new e(t.buffer,0,n)}else{e=w(this);var r=new e(this.count());for(i=0;i<r.length;i++)r[i]=i}return r},T.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storage;if(!n[t])return NaN;e=this.getRawIndex(e);var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize,o=n[t][i],a=o[r];return a},T.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._storage[t];if(!n)return NaN;var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize,o=n[i];return o[r]},T._getFast=function(t,e){var n=Math.floor(e/this._chunkSize),i=e%this._chunkSize,r=this._storage[t][n];return r[i]},T.getValues=function(t,e){var n=[];r.isArray(t)||(e=t,t=this.dimensions);for(var i=0,o=t.length;i<o;i++)n.push(this.get(t[i],e));return n},T.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},T.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=z();if(!e)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<r;l++){var u=this._getFast(t,this.getRawIndex(l));u<a&&(a=u),u>s&&(s=u)}return i=[a,s],this._extent[t]=i,i},T.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},T.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},T.getCalculationInfo=function(t){return this._calculationInfo[t]},T.setCalculationInfo=function(t,e){p(t)?r.extend(this._calculationInfo,t):this._calculationInfo[t]=e},T.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},T.getMedian=function(t){var e=[];this.each(t,(function(t,n){isNaN(t)||e.push(t)}));var n=[].concat(e).sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},T.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?m:i},T.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},T.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var i=0,r=this._count-1;while(i<=r){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},T.indicesOfNearest=function(t,e,n){var i=this._storage,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=e-this.get(t,u),d=Math.abs(h);d<=n&&((d<a||d===a&&h>=0&&s<0)&&(a=d,s=h,l=0),h===s&&(o[l++]=u))}return o.length=l,o},T.getRawIndex=L,T.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},T.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||P(this,this._nameDimIdx,e)||""},T.getId=function(t){return O(this,this.getRawIndex(t))},T.each=function(t,e,n,i){"use strict";if(this._count){"function"===typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this,t=r.map(k(t),this.getDimension,this);for(var o=t.length,a=0;a<this.count();a++)switch(o){case 0:e.call(n,a);break;case 1:e.call(n,this.get(t[0],a),a);break;case 2:e.call(n,this.get(t[0],a),this.get(t[1],a),a);break;default:for(var s=0,l=[];s<o;s++)l[s]=this.get(t[s],a);l[s]=a,e.apply(n,l)}}},T.filterSelf=function(t,e,n,i){"use strict";if(this._count){"function"===typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this,t=r.map(k(t),this.getDimension,this);for(var o=this.count(),a=w(this),s=new a(o),l=[],u=t.length,c=0,h=t[0],d=0;d<o;d++){var f,p=this.getRawIndex(d);if(0===u)f=e.call(n,d);else if(1===u){var g=this._getFast(h,p);f=e.call(n,g,d)}else{for(var m=0;m<u;m++)l[m]=this._getFast(h,p);l[m]=d,f=e.apply(n,l)}f&&(s[c++]=p)}return c<o&&(this._indices=s),this._count=c,this._extent={},this.getRawIndex=this._indices?R:L,this}},T.selectRange=function(t){"use strict";if(this._count){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);var i=e.length;if(i){var r=this.count(),o=w(this),a=new o(r),s=0,l=e[0],u=t[l][0],c=t[l][1],h=!1;if(!this._indices){var d=0;if(1===i){for(var f=this._storage[e[0]],p=0;p<this._chunkCount;p++)for(var g=f[p],m=Math.min(this._count-p*this._chunkSize,this._chunkSize),v=0;v<m;v++){var y=g[v];(y>=u&&y<=c||isNaN(y))&&(a[s++]=d),d++}h=!0}else if(2===i){f=this._storage[l];var _=this._storage[e[1]],x=t[e[1]][0],b=t[e[1]][1];for(p=0;p<this._chunkCount;p++){g=f[p];var S=_[p];for(m=Math.min(this._count-p*this._chunkSize,this._chunkSize),v=0;v<m;v++){y=g[v];var A=S[v];(y>=u&&y<=c||isNaN(y))&&(A>=x&&A<=b||isNaN(A))&&(a[s++]=d),d++}}h=!0}}if(!h)if(1===i)for(v=0;v<r;v++){var M=this.getRawIndex(v);y=this._getFast(l,M);(y>=u&&y<=c||isNaN(y))&&(a[s++]=M)}else for(v=0;v<r;v++){var C=!0;for(M=this.getRawIndex(v),p=0;p<i;p++){var I=e[p];y=this._getFast(n,M);(y<t[I][0]||y>t[I][1])&&(C=!1)}C&&(a[s++]=this.getRawIndex(v))}return s<r&&(this._indices=a),this._count=s,this._extent={},this.getRawIndex=this._indices?R:L,this}}},T.mapArray=function(t,e,n,i){"use strict";"function"===typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},T.map=function(t,e,n,i){"use strict";n=n||i||this,t=r.map(k(t),this.getDimension,this);var o=N(this,t);o._indices=this._indices,o.getRawIndex=o._indices?R:L;for(var a=o._storage,s=[],l=this._chunkSize,u=t.length,c=this.count(),h=[],d=o._rawExtent,f=0;f<c;f++){for(var p=0;p<u;p++)h[p]=this.get(t[p],f);h[u]=f;var g=e&&e.apply(n,h);if(null!=g){"object"!==typeof g&&(s[0]=g,g=s);for(var m=this.getRawIndex(f),v=Math.floor(m/l),y=m%l,_=0;_<g.length;_++){var x=t[_],b=g[_],w=d[x],S=a[x];S&&(S[v][y]=b),b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}}}return o},T.downSample=function(t,e,n,i){for(var r=N(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=this._chunkSize,h=r._rawExtent[t],d=new(w(this))(u),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(p+g),v=Math.floor(m/c),y=m%c;a[g]=l[v][y]}var _=n(a),x=this.getRawIndex(Math.min(p+i(a,_)||0,u-1)),b=Math.floor(x/c),S=x%c;l[b][S]=_,_<h[0]&&(h[0]=_),_>h[1]&&(h[1]=_),d[f++]=x}return r._count=f,r._indices=d,r.getRawIndex=R,r},T.getItemModel=function(t){var e=this.hostModel;return new o(this.getRawDataItem(t),e,e&&e.ecModel)},T.diff=function(t){var e=this;return new a(t?t.getIndices():[],this.getIndices(),(function(e){return O(t,e)}),(function(t){return O(e,t)}))},T.getVisual=function(t){var e=this._visual;return e&&e[t]},T.setVisual=function(t,e){if(p(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},T.setLayout=function(t,e){if(p(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},T.getLayout=function(t){return this._layout[t]},T.getItemLayout=function(t){return this._itemLayouts[t]},T.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?r.extend(this._itemLayouts[t]||{},e):e},T.clearItemLayouts=function(){this._itemLayouts.length=0},T.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},T.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,p(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],r[o]=!0);else i[e]=n,r[e]=!0},T.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var B=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};T.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(B,e)),this._graphicEls[t]=e},T.getItemGraphicEl=function(t){return this._graphicEls[t]},T.eachItemGraphicEl=function(t,e){r.each(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},T.cloneShallow=function(t){if(!t){var e=r.map(this.dimensions,this.getDimensionInfo,this);t=new I(e,this.hostModel)}if(t._storage=this._storage,C(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?R:L,t},T.wrapMethod=function(t,e){var n=this[t];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(r.slice(arguments)))})},T.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],T.CHANGABLE_METHODS=["filterSelf","selectRange"];var G=I;t.exports=G},54874:function(t,e,n){var i=n(95289),r=i.createHashMap,o=i.isObject,a=i.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&a(n,c);return new s({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var l=s.prototype;function u(t){return t._map||(t._map=r(t.categories))}function c(t){return o(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return u(this).get(t)},l.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!==typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=u(this);return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var h=s;t.exports=h},3325:function(t,e,n){var i=n(95289),r=i.createHashMap,o=i.isTypedArray,a=n(11724),s=a.enableClassCheck,l=n(90642),u=l.SOURCE_FORMAT_ORIGINAL,c=l.SERIES_LAYOUT_BY_COLUMN,h=l.SOURCE_FORMAT_UNKNOWN,d=l.SOURCE_FORMAT_TYPED_ARRAY,f=l.SOURCE_FORMAT_KEYED_COLUMNS;function p(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===f?{}:[]),this.sourceFormat=t.sourceFormat||h,this.seriesLayoutBy=t.seriesLayoutBy||c,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&r(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}p.seriesDataToSource=function(t){return new p({data:t,sourceFormat:o(t)?d:u,fromDataset:!1})},s(p);var g=p;t.exports=g},35288:function(t,e,n){var i=n(95289),r=n(75403),o=n(5628),a=n(29966),s=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};function l(t){this.root,this.data,this._nodes=[],this.hostModel=t}function u(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}s.prototype={constructor:s,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"===typeof t&&(n=e,e=t,t=null),t=t||{},i.isString(t)&&(t={order:t});var r,o=t.order||"preorder",a=this[t.attr||"children"];"preorder"===o&&(r=e.call(n,this));for(var s=0;!r&&s<a.length;s++)a[s].eachNode(t,e,n);"postorder"===o&&e.call(n,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},getAncestors:function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},l.prototype={constructor:l,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},l.createTree=function(t,e,n){var c=new l(e),h=[],d=1;function f(t,e){var n=t.value;d=Math.max(d,i.isArray(n)?n.length:1),h.push(t);var r=new s(t.name,c);e?u(r,e):c.root=r,c._nodes.push(r);var o=t.children;if(o)for(var a=0;a<o.length;a++)f(o[a],r)}f(t),c.root.updateDepthAndHeight(0);var p=a(h,{coordDimensions:["value"],dimensionsCount:d}),g=new o(p,e);return g.initData(h),n&&n(g),r({mainData:g,struct:c,structAttr:"tree"}),c.update(),c};var c=l;t.exports=c},21685:function(t,e,n){var i=n(95289),r=i.createHashMap,o=i.each,a=i.isString,s=i.defaults,l=i.extend,u=i.isObject,c=i.clone,h=n(63199),d=h.normalizeToArray,f=n(49442),p=f.guessOrdinal,g=f.BE_ORDINAL,m=n(3325),v=n(99535),y=v.OTHER_DIMENSIONS,_=n(70362);function x(t,e,n){m.isInstance(e)||(e=m.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),h=r(),f=r(),v=[],x=b(e,t,i,n.dimCount),S=0;S<x;S++){var A=i[S]=l({},u(i[S])?i[S]:{name:i[S]}),M=A.name,C=v[S]=new _;null!=M&&null==h.get(M)&&(C.name=C.displayName=M,h.set(M,S)),null!=A.type&&(C.type=A.type),null!=A.displayName&&(C.displayName=A.displayName)}var I=n.encodeDef;!I&&n.encodeDefaulter&&(I=n.encodeDefaulter(e,x)),I=r(I),I.each((function(t,e){if(t=d(t).slice(),1===t.length&&!a(t[0])&&t[0]<0)I.set(e,!1);else{var n=I.set(e,[]);o(t,(function(t,i){a(t)&&(t=h.get(t)),null!=t&&t<x&&(n[i]=t,E(v[t],e,i))}))}}));var T=0;function E(t,e,n){null!=y.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,f.set(e,!0))}o(t,(function(t,e){var n,i,r;if(a(t))n=t,t={};else{n=t.name;var l=t.ordinalMeta;t.ordinalMeta=null,t=c(t),t.ordinalMeta=l,i=t.dimsDef,r=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var h=I.get(n);if(!1!==h){h=d(h);if(!h.length)for(var f=0;f<(i&&i.length||1);f++){while(T<v.length&&null!=v[T].coordDim)T++;T<v.length&&h.push(T++)}o(h,(function(e,o){var a=v[e];if(E(s(a,t),n,o),null==a.name&&i){var l=i[o];!u(l)&&(l={name:l}),a.name=a.displayName=l.name,a.defaultTooltip=l.defaultTooltip}r&&s(a.otherDims,r)}))}}));var D=n.generateCoord,P=n.generateCoordCount,L=null!=P;P=D?P||1:0;for(var R=D||"value",O=0;O<x;O++){C=v[O]=v[O]||new _;var k=C.coordDim;null==k&&(C.coordDim=w(R,f,L),C.coordDimIndex=0,(!D||P<=0)&&(C.isExtraCoord=!0),P--),null==C.name&&(C.name=w(C.coordDim,h)),null!=C.type||p(e,O,C.name)!==g.Must&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type="ordinal")}return v}function b(t,e,n,i){var r=Math.max(t.dimensionsDetectCount||1,e.length,n.length,i||0);return o(e,(function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))})),r}function w(t,e,n){if(n||null!=e.get(t)){var i=0;while(null!=e.get(t+i))i++;t+=i}return e.set(t,!0),t}var S=x;t.exports=S},29966:function(t,e,n){var i=n(21685);function r(t,e){return e=e||{},i(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}t.exports=r},41834:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=(r.isTypedArray,r.extend),a=(r.assert,r.each),s=r.isObject,l=n(63199),u=l.getDataItemValue,c=l.isDataItemOption,h=n(44261),d=h.parseDate,f=n(3325),p=n(90642),g=p.SOURCE_FORMAT_TYPED_ARRAY,m=p.SOURCE_FORMAT_ARRAY_ROWS,v=p.SOURCE_FORMAT_ORIGINAL,y=p.SOURCE_FORMAT_OBJECT_ROWS;function _(t,e){f.isInstance(t)||(t=f.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;i===g&&(this._offset=0,this._dimSize=e,this._data=n);var r=b[i===m?i+"_"+t.seriesLayoutBy:i];o(this,r)}var x=_.prototype;x.pure=!1,x.persistent=!0,x.getSource=function(){return this._source};var b={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:A},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i<n.length;i++){var r=n[i];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:w,getItem:S,appendData:A},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;a(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},original:{count:w,getItem:S,appendData:A},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var n=this._dimSize*t,i=0;i<this._dimSize;i++)e[i]=this._data[n+i];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}};function w(){return this._data.length}function S(t){return this._data[t]}function A(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var M={arrayRows:C,objectRows:function(t,e,n,i){return null!=n?t[i]:t},keyedColumns:C,original:function(t,e,n,i){var r=u(t);return null!=n&&r instanceof Array?r[n]:r},typedArray:C};function C(t,e,n,i){return null!=n?t[n]:t}var I={arrayRows:T,objectRows:function(t,e,n,i){return E(t[e],this._dimensionInfos[e])},keyedColumns:T,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&c(t)&&(this.hasItemOption=!0),E(r instanceof Array?r[i]:r,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}};function T(t,e,n,i){return E(t[i],this._dimensionInfos[e])}function E(t,e){var n=e&&e.type;if("ordinal"===n){var i=e&&e.ordinalMeta;return i?i.parseAndCollect(t):t}return"time"===n&&"number"!==typeof t&&null!=t&&"-"!==t&&(t=+d(t)),null==t||""===t?NaN:+t}function D(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(r=s.name,o=s.index),M[a](i,e,o,r)}}}function P(t,e,n){if(t){var i=t.getProvider().getSource().sourceFormat;if(i===v||i===y){var r=t.getRawDataItem(e);return i!==v||s(r)||(r=null),r?r[n]:void 0}}}e.DefaultDataProvider=_,e.defaultDimValueGetters=I,e.retrieveRawValue=D,e.retrieveRawAttr=P},74051:function(t,e,n){var i=n(95289),r=i.each,o=i.isString;function a(t,e,n){n=n||{};var i,a,s,l,u=n.byIndex,c=n.stackedCoordDimension,h=!(!t||!t.get("stack"));if(r(e,(function(t,n){o(t)&&(e[n]=t={name:t}),h&&!t.isExtraCoord&&(u||i||!t.ordinalMeta||(i=t),a||"ordinal"===t.type||"time"===t.type||c&&c!==t.coordDim||(a=t))})),!a||u||i||(u=!0),a){s="__\0ecstackresult",l="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var d=a.coordDim,f=a.type,p=0;r(e,(function(t){t.coordDim===d&&p++})),e.push({name:s,coordDim:d,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:i&&i.name,isStackedByIndex:u,stackedOverDimension:l,stackResultDimension:s}}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}e.enableDataStack=a,e.isDimensionStacked=s,e.getStackedDimension=l},99535:function(t,e,n){var i=n(95289),r=i.each,o=i.createHashMap,a=(i.assert,n(65523)),s=(a.__DEV__,o(["tooltip","label","itemName","itemId","seriesName"]));function l(t){var e={},n=e.encode={},i=o(),a=[],l=[],c=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};r(t.dimensions,(function(e){var r=t.getDimensionInfo(e),o=r.coordDim;if(o){var d=r.coordDimIndex;u(n,o)[d]=e,r.isExtraCoord||(i.set(o,1),h(r.type)&&(a[0]=e),u(c.encode,o)[d]=r.index),r.defaultTooltip&&l.push(e)}s.each((function(t,e){var i=u(n,e),o=r.otherDims[e];null!=o&&!1!==o&&(i[o]=r.name)}))}));var d=[],f={};i.each((function(t,e){var i=n[e];f[e]=i[0],d=d.concat(i)})),e.dataDimsOnCoord=d,e.encodeFirstDimNotExtra=f;var p=n.label;p&&p.length&&(a=p.slice());var g=n.tooltip;return g&&g.length?l=g.slice():l.length||(l=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=l,e}function u(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function c(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function h(t){return!("ordinal"===t||"time"===t)}e.OTHER_DIMENSIONS=s,e.summarizeDimensions=l,e.getDimensionTypeByAxis=c},75403:function(t,e,n){var i=n(95289),r=i.each,o="\0__link_datas",a="\0__link_mainData";function s(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,f(e,n,t),r(n,(function(n){r(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,i.curry(l,t))}))})),e.wrapMethod("cloneShallow",i.curry(c,t)),r(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,i.curry(u,t))})),i.assert(n[e.dataType]===e)}function l(t,e){if(d(this)){var n=i.extend({},this[o]);n[this.dataType]=e,f(e,n,t)}else p(e,this.dataType,this[a],t);return e}function u(t,e){return t.struct&&t.struct.update(this),e}function c(t,e){return r(e[o],(function(n,i){n!==e&&p(n.cloneShallow(),i,e,t)})),e}function h(t){var e=this[a];return null==t||null==e?e:e[o][t]}function d(t){return t[a]===t}function f(t,e,n){t[o]={},r(e,(function(e,i){p(e,i,t,n)}))}function p(t,e,n,i){n[o][e]=t,t[a]=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=h}var g=s;t.exports=g},49442:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(63199)),o=r.makeInner,a=r.getDataItemValue,s=n(95289),l=s.createHashMap,u=s.each,c=s.map,h=s.isArray,d=s.isString,f=s.isObject,p=s.isTypedArray,g=s.isArrayLike,m=s.extend,v=(s.assert,n(3325)),y=n(90642),_=y.SOURCE_FORMAT_ORIGINAL,x=y.SOURCE_FORMAT_ARRAY_ROWS,b=y.SOURCE_FORMAT_OBJECT_ROWS,w=y.SOURCE_FORMAT_KEYED_COLUMNS,S=y.SOURCE_FORMAT_UNKNOWN,A=y.SOURCE_FORMAT_TYPED_ARRAY,M=y.SERIES_LAYOUT_BY_ROW,C={Must:1,Might:2,Not:3},I=o();function T(t){var e=t.option.source,n=S;if(p(e))n=A;else if(h(e)){0===e.length&&(n=x);for(var i=0,r=e.length;i<r;i++){var o=e[i];if(null!=o){if(h(o)){n=x;break}if(f(o)){n=b;break}}}}else if(f(e)){for(var a in e)if(e.hasOwnProperty(a)&&g(e[a])){n=w;break}}else if(null!=e)throw new Error("Invalid data");I(t).sourceFormat=n}function E(t){return I(t).source}function D(t){I(t).datasetMap=l()}function P(t){var e=t.option,n=e.data,i=p(n)?A:_,r=!1,o=e.seriesLayoutBy,a=e.sourceHeader,s=e.dimensions,l=z(t);if(l){var u=l.option;n=u.source,i=I(l).sourceFormat,r=!0,o=o||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var c=L(n,i,o,a,s);I(t).source=new v({data:n,fromDataset:r,seriesLayoutBy:o,sourceFormat:i,dimensionsDefine:c.dimensionsDefine,startIndex:c.startIndex,dimensionsDetectCount:c.dimensionsDetectCount,encodeDefine:e.encode})}function L(t,e,n,i,r){if(!t)return{dimensionsDefine:R(r)};var o,s;if(e===x)"auto"===i||null==i?O((function(t){null!=t&&"-"!==t&&(d(t)?null==s&&(s=1):s=0)}),n,t,10):s=i?1:0,r||1!==s||(r=[],O((function(t,e){r[e]=null!=t?t:""}),n,t)),o=r?r.length:n===M?t.length:t[0]?t[0].length:null;else if(e===b)r||(r=k(t));else if(e===w)r||(r=[],u(t,(function(t,e){r.push(e)})));else if(e===_){var l=a(t[0]);o=h(l)&&l.length||1}return{startIndex:s,dimensionsDefine:R(r),dimensionsDetectCount:o}}function R(t){if(t){var e=l();return c(t,(function(t,n){if(t=m({},f(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var i=e.get(t.name);return i?t.name+="-"+i.count++:e.set(t.name,{count:1}),t}))}}function O(t,e,n,i){if(null==i&&(i=1/0),e===M)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function k(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e){var i=[];return u(e,(function(t,e){i.push(e)})),i}}function N(t,e,n){var i={},r=z(e);if(!r||!t)return i;var o,a,s=[],l=[],c=e.ecModel,h=I(c).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),u(t,(function(e,n){!f(e)&&(t[n]={name:e}),"ordinal"===e.type&&null==o&&(o=n,a=m(t[n])),i[e.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:a,valueWayDim:0});function g(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function m(t){var e=t.dimsDef;return e?e.length:1}return u(t,(function(t,e){var n=t.name,r=m(t);if(null==o){var a=p.valueWayDim;g(i[n],a,r),g(l,a,r),p.valueWayDim+=r}else if(o===e)g(i[n],0,r),g(s,0,r);else{a=p.categoryWayDim;g(i[n],a,r),g(l,a,r),p.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function F(t,e,n){var i={},r=z(t);if(!r)return i;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==b&&a!==w||u(s,(function(t,e){"name"===(f(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},i={},r=[],l=0,u=Math.min(5,n);l<u;l++){var c=G(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);r.push(c);var h=c===C.Not;if(h&&null==t.v&&l!==o&&(t.v=l),(null==t.n||t.n===t.v||!h&&r[t.n]===C.Not)&&(t.n=l),d(t)&&r[t.n]!==C.Not)return t;h||(c===C.Might&&null==i.v&&l!==o&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(l){i.value=l.v;var c=null!=o?o:l.n;i.itemName=[c],i.seriesName=[c]}return i}function z(t){var e=t.option,n=e.data;if(!n)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}function B(t,e){return G(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function G(t,e,n,i,r,o){var s,l,u,c=5;if(p(t))return C.Not;if(i){var g=i[o];f(g)?(l=g.name,u=g.type):d(g)&&(l=g)}if(null!=u)return"ordinal"===u?C.Must:C.Not;if(e===x)if(n===M){for(var m=t[o],v=0;v<(m||[]).length&&v<c;v++)if(null!=(s=I(m[r+v])))return s}else for(v=0;v<t.length&&v<c;v++){var y=t[r+v];if(y&&null!=(s=I(y[o])))return s}else if(e===b){if(!l)return C.Not;for(v=0;v<t.length&&v<c;v++){var S=t[v];if(S&&null!=(s=I(S[l])))return s}}else if(e===w){if(!l)return C.Not;m=t[l];if(!m||p(m))return C.Not;for(v=0;v<m.length&&v<c;v++)if(null!=(s=I(m[v])))return s}else if(e===_)for(v=0;v<t.length&&v<c;v++){S=t[v];var A=a(S);if(!h(A))return C.Not;if(null!=(s=I(A[o])))return s}function I(t){var e=d(t);return null!=t&&isFinite(t)&&""!==t?e?C.Might:C.Not:e&&"-"!==t?C.Must:void 0}return C.Not}e.BE_ORDINAL=C,e.detectSourceFormat=T,e.getSource=E,e.resetSourceDefaulter=D,e.prepareSource=P,e.makeSeriesEncodeForAxisCoordSys=N,e.makeSeriesEncodeForNameBased=F,e.guessOrdinal=B},90642:function(t,e){var n="original",i="arrayRows",r="objectRows",o="keyedColumns",a="unknown",s="typedArray",l="column",u="row";e.SOURCE_FORMAT_ORIGINAL=n,e.SOURCE_FORMAT_ARRAY_ROWS=i,e.SOURCE_FORMAT_OBJECT_ROWS=r,e.SOURCE_FORMAT_KEYED_COLUMNS=o,e.SOURCE_FORMAT_UNKNOWN=a,e.SOURCE_FORMAT_TYPED_ARRAY=s,e.SERIES_LAYOUT_BY_COLUMN=l,e.SERIES_LAYOUT_BY_ROW=u},89231:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(97683)),o=n(95289),a=n(56607),s=n(87190),l=n(33863),u=n(36112),c=n(87380),h=n(69498),d=n(50294),f=n(27711),p=n(5518),g=n(54326),m=n(85532),v=n(33358),y=n(18328),_=n(67955),x=n(76442),b=n(63199),w=n(88336),S=w.throttle,A=n(89414),M=n(40949),C=n(75003),I=n(3379),T=n(27663),E=n(95239);n(613);var D=n(45986),P=o.assert,L=o.each,R=o.isFunction,O=o.isObject,k=m.parseClassType,N="4.9.0",F={zrender:"4.3.2"},z=1,B=1e3,G=800,V=900,W=5e3,j=1e3,H=1100,Y=2e3,U=3e3,X=3500,Z=4e3,q=5e3,$={PROCESSOR:{FILTER:B,SERIES_FILTER:G,STATISTIC:W},VISUAL:{LAYOUT:j,PROGRESSIVE_LAYOUT:H,GLOBAL:Y,CHART:U,POST_CHART_LAYOUT:X,COMPONENT:Z,BRUSH:q}},K="__flagInMainProcess",J="__optionUpdated",Q=/^[a-zA-Z0-9_]+$/;function tt(t,e){return function(n,i,r){e||!this._disposed?(n=n&&n.toLowerCase(),u.prototype[t].call(this,n,i,r)):xt(this.id)}}function et(){u.call(this)}function nt(t,e,n){n=n||{},"string"===typeof e&&(e=Lt[e]),this.id,this.group,this._dom=t;var i="canvas",a=this._zr=r.init(t,{renderer:n.renderer||i,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=S(o.bind(a.flush,a),17);e=o.clone(e);e&&p(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new d;var s=this._api=At(this);function c(t,e){return t.__prio-e.__prio}l(Pt,c),l(Tt,c),this._scheduler=new I(this,s,Tt,Pt),u.call(this,this._ecEventProcessor=new Mt),this._messageCenter=new et,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),dt(a,this),o.setAsPrimitive(this)}et.prototype.on=tt("on",!0),et.prototype.off=tt("off",!0),et.prototype.one=tt("one",!0),o.mixin(et,u);var it=nt.prototype;function rt(t,e,n){if(this._disposed)xt(this.id);else{var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=b.parseFinder(r,e);for(var a=0;a<o.length;a++){var s=o[a];if(s[t]&&null!=(i=s[t](r,e,n)))return i}}}it._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[J]){var e=this[J].silent;this[K]=!0,at(this),ot.update.call(this),this[K]=!1,this[J]=!1,ct.call(this,e),ht.call(this,e)}else if(t.unfinished){var n=z,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),lt(this,i),t.performVisualTasks(i),vt(this,this._model,r,"remain"),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},it.getDom=function(){return this._dom},it.getZr=function(){return this._zr},it.setOption=function(t,e,n){if(this._disposed)xt(this.id);else{var i;if(O(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[K]=!0,!this._model||e){var r=new f(this._api),o=this._theme,a=this._model=new c;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,Et),n?(this[J]={silent:i},this[K]=!1):(at(this),ot.update.call(this),this._zr.flush(),this[J]=!1,this[K]=!1,ct.call(this,i),ht.call(this,i))}},it.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},it.getModel=function(){return this._model},it.getOption=function(){return this._model&&this._model.getOption()},it.getWidth=function(){return this._zr.getWidth()},it.getHeight=function(){return this._zr.getHeight()},it.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},it.getRenderedCanvas=function(t){if(s.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},it.getSvgDataURL=function(){if(s.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return o.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},it.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;L(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return L(i,(function(t){t.group.ignore=!1})),o}xt(this.id)},it.getConnectedDataURL=function(t){if(this._disposed)xt(this.id);else if(s.canvasSupported){var e="svg"===t.type,n=this.group,i=Math.min,a=Math.max,l=1/0;if(kt[n]){var u=l,c=l,h=-l,d=-l,f=[],p=t&&t.pixelRatio||1;o.each(Ot,(function(r,s){if(r.group===n){var l=e?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(o.clone(t)),p=r.getDom().getBoundingClientRect();u=i(p.left,u),c=i(p.top,c),h=a(p.right,h),d=a(p.bottom,d),f.push({dom:l,left:p.left,top:p.top})}})),u*=p,c*=p,h*=p,d*=p;var g=h-u,m=d-c,v=o.createCanvas(),y=r.init(v,{renderer:e?"svg":"canvas"});if(y.resize({width:g,height:m}),e){var _="";return L(f,(function(t){var e=t.left-u,n=t.top-c;_+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=_,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new x.Rect({shape:{x:0,y:0,width:g,height:m},style:{fill:t.connectedBackgroundColor}})),L(f,(function(t){var e=new x.Image({style:{x:t.left*p-u,y:t.top*p-c,image:t.dom}});y.add(e)})),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},it.convertToPixel=o.curry(rt,"convertToPixel"),it.convertFromPixel=o.curry(rt,"convertFromPixel"),it.containPixel=function(t,e){if(!this._disposed){var n,i=this._model;return t=b.parseFinder(i,t),o.each(t,(function(t,i){i.indexOf("Models")>=0&&o.each(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n|=o.containPoint(e,t))}}),this)}),this),!!n}xt(this.id)},it.getVisual=function(t,e){var n=this._model;t=b.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel,r=i.getData(),o=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=o?r.getItemVisual(o,e):r.getVisual(e)},it.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},it.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var ot={prepareAndUpdate:function(t){at(this),ot.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,n),o.performDataProcessorTasks(e,t),lt(this,e),r.update(e,n),pt(e),o.performVisualTasks(e,t),gt(this,e,n,t);var l=e.get("backgroundColor")||"transparent";if(s.canvasSupported)i.setBackgroundColor(l);else{var u=a.parse(l);l=a.stringify(u,"rgb"),0===u[3]&&(l="transparent")}yt(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent((function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,e,i,t);l&&l.update&&r.push(s)}else r.push(s)}));var a=o.createHashMap();e.eachSeries((function(r){var o=n._chartsMap[r.__viewId];if(o.updateTransform){var s=o.updateTransform(r,e,i,t);s&&s.update&&a.set(r.uid,1)}else a.set(r.uid,1)})),pt(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:a}),vt(n,e,i,t,a),yt(e,this._api)}},updateView:function(t){var e=this._model;e&&(_.markUpdateMethod(t,"updateView"),pt(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),gt(this,this._model,this._api,t),yt(e,this._api))},updateVisual:function(t){ot.update.call(this,t)},updateLayout:function(t){ot.update.call(this,t)}};function at(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),ft(t,"component",e,n),ft(t,"chart",e,n),n.plan()}function st(t,e,n,i,r){var a=t._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u=n.excludeSeriesId;null!=u&&(u=o.createHashMap(b.normalizeToArray(u))),a&&a.eachComponent(l,(function(e){u&&null!=u.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else L(t._componentsViews.concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}}function lt(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))}function ut(t,e){var n=t.type,i=t.escapeConnect,r=Ct[n],a=r.actionInfo,s=(a.update||"update").split(":"),l=s.pop();s=null!=s[0]&&k(s[0]),this[K]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=o.map(t.batch,(function(e){return e=o.defaults(o.extend({},e),t),e.batch=null,e})));var h,d=[],f="highlight"===n||"downplay"===n;L(u,(function(t){h=r.action(t,this._model,this._api),h=h||o.extend({},t),h.type=a.event||h.type,d.push(h),f?st(this,l,t,"series"):s&&st(this,l,t,s.main,s.sub)}),this),"none"===l||f||s||(this[J]?(at(this),ot.update.call(this,t),this[J]=!1):ot[l].call(this,t)),h=c?{type:a.event||n,escapeConnect:i,batch:d}:d[0],this[K]=!1,!e&&this._messageCenter.trigger(h.type,h)}function ct(t){var e=this._pendingActions;while(e.length){var n=e.shift();ut.call(this,n,t)}}function ht(t){!t&&this.trigger("updated")}function dt(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e[J]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}function ft(t,e,n,i){for(var r="component"===e,o=r?t._componentsViews:t._chartsViews,a=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;function c(t){var e="_ec_"+t.id+"_"+t.type,u=a[e];if(!u){var c=k(t.type),h=r?y.getClass(c.main,c.sub):_.getClass(c.sub);u=new h,u.init(n,l),a[e]=u,o.push(u),s.add(u.group)}t.__viewId=u.__id=e,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!r&&i.prepareView(u,t,n,l)}r?n.eachComponent((function(t,e){"series"!==t&&c(e)})):n.eachSeries(c);for(u=0;u<o.length;){var h=o[u];h.__alive?u++:(!r&&h.renderTask.dispose(),s.remove(h.group),h.dispose(n,l),o.splice(u,1),delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function pt(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function gt(t,e,n,i){mt(t,e,n,i),L(t._chartsViews,(function(t){t.__alive=!1})),vt(t,e,n,i),L(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))}function mt(t,e,n,i,r){L(r||t._componentsViews,(function(t){var r=t.__model;t.render(r,e,n,i),St(r,t)}))}function vt(t,e,n,i,r){var o,a=t._scheduler;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var s=n.renderTask;a.updatePayload(s,i),r&&r.get(e.uid)&&s.dirty(),o|=s.perform(a.getPerformArgs(s)),n.group.silent=!!e.get("silent"),St(e,n),wt(e,n)})),a.unfinished|=o,bt(t,e),M(t._zr.dom,e)}function yt(t,e){L(Dt,(function(n){n(t,e)}))}it.resize=function(t){if(this._disposed)xt(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[K]=!0,n&&at(this),ot.update.call(this),this[K]=!1,ct.call(this,i),ht.call(this,i)}}},it.showLoading=function(t,e){if(this._disposed)xt(this.id);else if(O(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Rt[t]){var n=Rt[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},it.hideLoading=function(){this._disposed?xt(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},it.makeActionFromEvent=function(t){var e=o.extend({},t);return e.type=It[t.type],e},it.dispatchAction=function(t,e){this._disposed?xt(this.id):(O(e)||(e={silent:!!e}),Ct[t.type]&&this._model&&(this[K]?this._pendingActions.push(t):(ut.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&s.browser.weChat&&this._throttledZrFlush(),ct.call(this,e.silent),ht.call(this,e.silent))))},it.appendData=function(t){if(this._disposed)xt(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);i.appendData(t),this._scheduler.unfinished=!0}},it.on=tt("on",!1),it.off=tt("off",!1),it.one=tt("one",!1);var _t=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function xt(t){}function bt(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){r++})),r>e.get("hoverLayerThreshold")&&!s.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse((function(t){t.useHoverLayer=!0}))}}))}function wt(t,e){var n=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",n)}))}))}function St(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))}))}function At(t){var e=t._coordSysMgr;return o.extend(new h(t),{getCoordinateSystems:o.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function Mt(){this.eventInfo}it._initEvents=function(){L(_t,(function(t){var e=function(e){var n,i=this.getModel(),r=e.target,a="globalout"===t;if(a)n={};else if(r&&null!=r.dataIndex){var s=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=o.extend({},r.eventData));if(n){var l=n.componentType,u=n.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=n.seriesIndex);var c=l&&null!=u&&i.getComponent(l,u),h=c&&this["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:c,view:h},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),L(It,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},it.isDisposed=function(){return this._disposed},it.clear=function(){this._disposed?xt(this.id):this.setOption({series:[]},!0)},it.dispose=function(){if(this._disposed)xt(this.id);else{this._disposed=!0,b.setAttribute(this.getDom(),zt,"");var t=this._api,e=this._model;L(this._componentsViews,(function(n){n.dispose(e,t)})),L(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete Ot[this.id]}},o.mixin(nt,u),Mt.prototype={constructor:Mt,normalizeQuery:function(t){var e={},n={},i={};if(o.isString(t)){var r=k(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(t,(function(t,r){for(var o=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,o=!0)}}s.hasOwnProperty(r)&&(n[r]=t,o=!0),o||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function c(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var Ct={},It={},Tt=[],Et=[],Dt=[],Pt=[],Lt={},Rt={},Ot={},kt={},Nt=new Date-0,Ft=new Date-0,zt="_echarts_instance_";function Bt(t){var e=0,n=1,i=2,r="__connectUpdateStatus";function o(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[r]=e}}L(It,(function(a,s){t._messageCenter.on(s,(function(a){if(kt[t.group]&&t[r]!==e){if(a&&a.escapeConnect)return;var s=t.makeActionFromEvent(a),l=[];L(Ot,(function(e){e!==t&&e.group===t.group&&l.push(e)})),o(l,e),L(l,(function(t){t[r]!==n&&t.dispatchAction(s)})),o(l,i)}}))}))}function Gt(t,e,n){var i=Yt(t);if(i)return i;var r=new nt(t,e,n);return r.id="ec_"+Nt++,Ot[r.id]=r,b.setAttribute(t,zt,r.id),Bt(r),r}function Vt(t){if(o.isArray(t)){var e=t;t=null,L(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Ft++,L(e,(function(e){e.group=t}))}return kt[t]=!0,t}function Wt(t){kt[t]=!1}var jt=Wt;function Ht(t){"string"===typeof t?t=Ot[t]:t instanceof nt||(t=Yt(t)),t instanceof nt&&!t.isDisposed()&&t.dispose()}function Yt(t){return Ot[b.getAttribute(t,zt)]}function Ut(t){return Ot[t]}function Xt(t,e){Lt[t]=e}function Zt(t){Et.push(t)}function qt(t,e){ne(Tt,t,e,B)}function $t(t){Dt.push(t)}function Kt(t,e,n){"function"===typeof e&&(n=e,e="");var i=O(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,P(Q.test(i)&&Q.test(e)),Ct[i]||(Ct[i]={action:n,actionInfo:t}),It[e]=i}function Jt(t,e){d.register(t,e)}function Qt(t){var e=d.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function te(t,e){ne(Pt,t,e,j,"layout")}function ee(t,e){ne(Pt,t,e,U,"visual")}function ne(t,e,n,i,r){(R(e)||O(e))&&(n=e,e=i);var o=I.wrapStageHandler(n,r);return o.__prio=e,o.__raw=n,t.push(o),o}function ie(t,e){Rt[t]=e}function re(t){return m.extend(t)}function oe(t){return y.extend(t)}function ae(t){return v.extend(t)}function se(t){return _.extend(t)}function le(t){o.$override("createCanvas",t)}function ue(t,e,n){D.registerMap(t,e,n)}function ce(t){var e=D.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}}ee(Y,A),Zt(p),qt(V,g),ie("default",C),Kt({type:"highlight",event:"highlight",update:"highlight"},o.noop),Kt({type:"downplay",event:"downplay",update:"downplay"},o.noop),Xt("light",T),Xt("dark",E);var he={};e.version=N,e.dependencies=F,e.PRIORITY=$,e.init=Gt,e.connect=Vt,e.disConnect=Wt,e.disconnect=jt,e.dispose=Ht,e.getInstanceByDom=Yt,e.getInstanceById=Ut,e.registerTheme=Xt,e.registerPreprocessor=Zt,e.registerProcessor=qt,e.registerPostUpdate=$t,e.registerAction=Kt,e.registerCoordinateSystem=Jt,e.getCoordinateSystemDimensions=Qt,e.registerLayout=te,e.registerVisual=ee,e.registerLoading=ie,e.extendComponentModel=re,e.extendComponentView=oe,e.extendSeriesModel=ae,e.extendChartView=se,e.setCanvasCreator=le,e.registerMap=ue,e.getMap=ce,e.dataTool=he;var de=n(93607);(function(){for(var t in de)de.hasOwnProperty(t)&&(e[t]=de[t])})()},93607:function(t,e,n){var i=n(97683);e.zrender=i;var r=n(13388);e.matrix=r;var o=n(31138);e.vector=o;var a=n(95289),s=n(56607);e.color=s;var l=n(76442),u=n(44261);e.number=u;var c=n(8595);e.format=c;var h=n(88336);h.throttle;e.throttle=h.throttle;var d=n(91897);e.helper=d;var f=n(46135);e.parseGeoJSON=f;var p=n(5628);e.List=p;var g=n(40590);e.Model=g;var m=n(31490);e.Axis=m;var v=n(87190);e.env=v;var y=f,_={};a.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){_[t]=a[t]}));var x={};a.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){x[t]=l[t]})),e.parseGeoJson=y,e.util=_,e.graphic=x},91897:function(t,e,n){var i=n(95289),r=n(19554),o=n(8426),a=n(48267),s=n(40590),l=n(61570);l.getLayoutRect;e.getLayoutRect=l.getLayoutRect;var u=n(74051),c=u.enableDataStack,h=u.isDimensionStacked,d=u.getStackedDimension,f=n(21685);e.completeDimensions=f;var p=n(29966);e.createDimensions=p;var g=n(22864);function m(t){return r(t.getSource(),t)}e.createSymbol=g.createSymbol;var v={isDimensionStacked:h,enableDataStack:c,getStackedDimension:d};function y(t,e){var n=e;s.isInstance(e)||(n=new s(e),i.mixin(n,a));var r=o.createScaleByModel(n);return r.setExtent(t[0],t[1]),o.niceScaleExtent(r,n),r}function _(t){i.mixin(t,a)}e.createList=m,e.dataStack=v,e.createScale=y,e.mixinAxisModelCommonMethods=_},49777:function(t){var e={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};t.exports=e},11041:function(t,e,n){var i=n(95289),r=n(44261),o=r.parsePercent,a=n(74051),s=a.isDimensionStacked,l=n(59039),u="__ec_stack_",c=.5,h="undefined"!==typeof Float32Array?Float32Array:Array;function d(t){return t.get("stack")||u+t.seriesIndex}function f(t){return t.dim+t.index}function p(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a<t.count;a++)e.push(i.defaults({bandWidth:o,axisKey:r,stackId:u+a},t));var s=y(e),l=[];for(a=0;a<t.count;a++){var c=s[r][u+a];c.offsetCenter=c.offset+c.width/2,l.push(c)}return l}}function g(t,e){var n=[];return e.eachSeriesByType(t,(function(t){w(t)&&!S(t)&&n.push(t)})),n}function m(t){var e={};i.each(t,(function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),o=i.dim+"_"+i.index,a=r.mapDimension(i.dim),s=0,l=r.count();s<l;++s){var u=r.get(a,s);e[o]?e[o].push(u):e[o]=[u]}}));var n=[];for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(o){o.sort((function(t,e){return t-e}));for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[r]=a}}return n}function v(t){var e=m(t),n=[];return i.each(t,(function(t){var i,r=t.coordinateSystem,a=r.getBaseAxis(),s=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(s[1]-s[0]),h=a.scale.getExtent(),p=Math.abs(h[1]-h[0]);i=u?c/p*u:c}else{var g=t.getData();i=Math.abs(s[1]-s[0])/g.count()}var m=o(t.get("barWidth"),i),v=o(t.get("barMaxWidth"),i),y=o(t.get("barMinWidth")||1,i),_=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:m,barMaxWidth:v,barMinWidth:y,barGap:_,barCategoryGap:x,axisKey:f(a),stackId:d(t)})})),y(n)}function y(t){var e={};i.each(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return i.each(e,(function(t,e){n[e]={};var r=t.stacks,a=t.bandWidth,s=o(t.categoryGap,a),l=o(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),i.each(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;i.each(r,(function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;i.each(r,(function(t,i){n[e][i]=n[e][i]||{bandWidth:a,offset:p,width:t.width},p+=t.width*(1+l)}))})),n}function _(t,e,n){if(t&&e){var i=t[f(e)];return null!=i&&null!=n&&(i=i[d(n)]),i}}function x(t,e){var n=g(t,e),r=v(n),o={},a={};i.each(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),l=d(t),u=r[f(i)][l],c=u.offset,h=u.width,p=n.getOtherAxis(i),g=t.get("barMinHeight")||0;o[l]=o[l]||[],a[l]=a[l]||[],e.setLayout({bandWidth:u.bandWidth,offset:c,size:h});for(var m=e.mapDimension(p.dim),v=e.mapDimension(i.dim),y=s(e,m),_=p.isHorizontal(),x=A(i,p,y),b=0,w=e.count();b<w;b++){var S,M,C,I,T=e.get(m,b),E=e.get(v,b),D=T>=0?"p":"n",P=x;if(y&&(o[l][E]||(o[l][E]={p:x,n:x}),P=o[l][E][D]),_){var L=n.dataToPoint([T,E]);S=P,M=L[1]+c,C=L[0]-x,I=h,Math.abs(C)<g&&(C=(C<0?-1:1)*g),isNaN(C)||y&&(o[l][E][D]+=C)}else{L=n.dataToPoint([E,T]);S=L[0]+c,M=P,C=h,I=L[1]-x,Math.abs(I)<g&&(I=(I<=0?-1:1)*g),isNaN(I)||y&&(o[l][E][D]+=I)}e.setItemLayout(b,{x:S,y:M,width:C,height:I})}}),this)}var b={seriesType:"bar",plan:l(),reset:function(t){if(w(t)&&S(t)){var e=t.getData(),n=t.coordinateSystem,i=n.grid.getRect(),r=n.getBaseAxis(),o=n.getOtherAxis(r),a=e.mapDimension(o.dim),s=e.mapDimension(r.dim),l=o.isHorizontal(),u=l?0:1,d=_(v([t]),r,t).width;return d>c||(d=c),{progress:f}}function f(t,e){var c,f=t.count,p=new h(2*f),g=new h(2*f),m=new h(f),v=[],y=[],_=0,x=0;while(null!=(c=t.next()))y[u]=e.get(a,c),y[1-u]=e.get(s,c),v=n.dataToPoint(y,null,v),g[_]=l?i.x+i.width:v[0],p[_++]=v[0],g[_]=l?v[1]:i.y+i.height,p[_++]=v[1],m[x++]=c;e.setLayout({largePoints:p,largeDataIndices:m,largeBackgroundPoints:g,barWidth:d,valueAxisStart:A(r,o,!1),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}};function w(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function S(t){return t.pipelineContext&&t.pipelineContext.large}function A(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}e.getLayoutOnAxis=p,e.prepareLayoutBarSeries=g,e.makeColumnLayout=v,e.retrieveColumnLayout=_,e.layout=x,e.largeLayout=b},80241:function(t,e,n){var i=n(95289),r=n(44261),o=r.parsePercent,a=n(74051),s=a.isDimensionStacked;function l(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function u(t,e){return e.dim+t.model.componentIndex}function c(t,e,n){var r={},o=h(i.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=u(n,i),c=l(t),h=o[a][c],d=h.offset,f=h.width,p=n.getOtherAxis(i),g=t.coordinateSystem.cx,m=t.coordinateSystem.cy,v=t.get("barMinHeight")||0,y=t.get("barMinAngle")||0;r[c]=r[c]||[];for(var _=e.mapDimension(p.dim),x=e.mapDimension(i.dim),b=s(e,_),w="radius"!==i.dim||!t.get("roundCap",!0),S="radius"===p.dim?p.dataToRadius(0):p.dataToAngle(0),A=0,M=e.count();A<M;A++){var C,I,T,E,D=e.get(_,A),P=e.get(x,A),L=D>=0?"p":"n",R=S;if(b&&(r[c][P]||(r[c][P]={p:S,n:S}),R=r[c][P][L]),"radius"===p.dim){var O=p.dataToRadius(D)-S,k=i.dataToAngle(P);Math.abs(O)<v&&(O=(O<0?-1:1)*v),C=R,I=R+O,T=k-d,E=T-f,b&&(r[c][P][L]=I)}else{var N=p.dataToAngle(D,w)-S,F=i.dataToRadius(P);Math.abs(N)<y&&(N=(N<0?-1:1)*y),C=F+d,I=C+f,T=R,E=R+N,b&&(r[c][P][L]=E)}e.setItemLayout(A,{cx:g,cy:m,r0:C,r:I,startAngle:-T*Math.PI/180,endAngle:-E*Math.PI/180})}}}),this)}function h(t,e){var n={};i.each(t,(function(t,e){var i=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),s=u(r,a),c=a.getExtent(),h="category"===a.type?a.getBandWidth():Math.abs(c[1]-c[0])/i.count(),d=n[s]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;n[s]=d;var p=l(t);f[p]||d.autoWidthCount++,f[p]=f[p]||{width:0,maxWidth:0};var g=o(t.get("barWidth"),h),m=o(t.get("barMaxWidth"),h),v=t.get("barGap"),y=t.get("barCategoryGap");g&&!f[p].width&&(g=Math.min(d.remainedWidth,g),f[p].width=g,d.remainedWidth-=g),m&&(f[p].maxWidth=m),null!=v&&(d.gap=v),null!=y&&(d.categoryGap=y)}));var r={};return i.each(n,(function(t,e){r[e]={};var n=t.stacks,a=t.bandWidth,s=o(t.categoryGap,a),l=o(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),i.each(n,(function(t,e){var n=t.maxWidth;n&&n<h&&(n=Math.min(n,u),t.width&&(n=Math.min(n,t.width)),u-=n,t.width=n,c--)})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;i.each(n,(function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;i.each(n,(function(t,n){r[e][n]=r[e][n]||{offset:p,width:t.width},p+=t.width*(1+l)}))})),r}var d=c;t.exports=d},32493:function(t,e,n){var i=n(95289),r=i.map,o=n(59039),a=n(74051),s=a.isDimensionStacked;function l(t){return{seriesType:t,plan:o(),reset:function(t){var e=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,o=i.large;if(n){var a=r(n.dimensions,(function(t){return e.mapDimension(t)})).slice(0,2),l=a.length,u=e.getCalculationInfo("stackResultDimension");return s(e,a[0])&&(a[0]=u),s(e,a[1])&&(a[1]=u),l&&{progress:c}}function c(t,e){for(var i=t.end-t.start,r=o&&new Float32Array(i*l),s=t.start,u=0,c=[],h=[];s<t.end;s++){var d;if(1===l){var f=e.get(a[0],s);d=!isNaN(f)&&n.dataToPoint(f,null,h)}else{f=c[0]=e.get(a[0],s);var p=c[1]=e.get(a[1],s);d=!isNaN(f)&&!isNaN(p)&&n.dataToPoint(c,null,h)}o?(r[u++]=d?d[0]:NaN,r[u++]=d?d[1]:NaN):e.setItemLayout(s,d&&d.slice()||[NaN,NaN])}o&&e.setLayout("symbolPoints",r)}}}}t.exports=l},75003:function(t,e,n){var i=n(95289),r=n(76442),o=n(43407),a=Math.PI;function s(t,e){e=e||{},i.defaults(e,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new r.Group,s=new r.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(s);var l=e.fontSize+" sans-serif",u=new r.Rect({style:{fill:"none",text:e.text,font:l,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});if(n.add(u),e.showSpinner){var c=new r.Arc({shape:{startAngle:-a/2,endAngle:-a/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001});c.animateShape(!0).when(1e3,{endAngle:3*a/2}).start("circularInOut"),c.animateShape(!0).when(1e3,{startAngle:3*a/2}).delay(300).start("circularInOut"),n.add(c)}return n.resize=function(){var n=o.getWidth(e.text,l),i=e.showSpinner?e.spinnerRadius:0,r=(t.getWidth()-2*i-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner?0:n/2),a=t.getHeight()/2;e.showSpinner&&c.setShape({cx:r,cy:a}),u.setShape({x:r-i,y:a-i,width:2*i,height:2*i}),s.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}t.exports=s},85532:function(t,e,n){var i=n(95289),r=n(40590),o=n(79865),a=n(11724),s=a.enableClassManagement,l=a.parseClassType,u=n(63199),c=u.makeInner,h=n(61570),d=n(54350),f=c(),p=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){r.call(this,t,e,n,i),this.uid=o.getUID("ec_cpt_model")},init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?h.getLayoutParams(t):{},o=e.getTheme();i.merge(t,o.get(this.mainType)),i.merge(t,this.getDefaultOption()),n&&h.mergeLayoutParam(t,r,n)},mergeOption:function(t,e){i.merge(this.option,t,!0);var n=this.layoutMode;n&&h.mergeLayoutParam(this.option,t,n)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=f(this);if(!t.defaultOption){var e=[],n=this.constructor;while(n){var r=n.prototype.defaultOption;r&&e.push(r),n=n.superClass}for(var o={},a=e.length-1;a>=0;a--)o=i.merge(o,e[a],!0);t.defaultOption=o}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});function g(t){var e=[];return i.each(p.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=i.map(e,(function(t){return l(t).main})),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}s(p,{registerWhenExtend:!0}),o.enableSubTypeDefaulter(p),o.enableTopologicalTravel(p,g),i.mixin(p,d);var m=p;t.exports=m},87380:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=r.each,a=r.filter,s=r.map,l=r.isArray,u=r.indexOf,c=r.isObject,h=r.isString,d=r.createHashMap,f=r.assert,p=r.clone,g=r.merge,m=r.extend,v=r.mixin,y=n(63199),_=n(40590),x=n(85532),b=n(20183),w=n(18167),S=n(49442),A=S.resetSourceDefaulter,M="\0_ec_inner",C=_.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new _(n),this._optionManager=i},setOption:function(t,e){f(!(M in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):E.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this,this._api);a.length&&o(a,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,n=this._componentsMap,i=[];function r(i,r){var a=y.normalizeToArray(t[i]),s=y.mappingToExists(n.get(i),a);y.makeIdAndName(s),o(s,(function(t,e){var n=t.option;c(n)&&(t.keyInfo.mainType=i,t.keyInfo.subType=P(i,n,t.exist))}));var l=D(n,r);e[i]=[],n.set(i,[]),o(s,(function(t,r){var o=t.exist,a=t.option;if(f(c(a)||o,"Empty component definition"),a){var s=x.getClass(i,t.keyInfo.subType,!0);if(o&&o.constructor===s)o.name=t.keyInfo.name,o.mergeOption(a,this),o.optionUpdated(a,!1);else{var u=m({dependentModels:l,componentIndex:r},t.keyInfo);o=new s(a,this,this,u),m(o,u),o.init(a,this,this,u),o.optionUpdated(null,!0)}}else o.mergeOption({},this),o.optionUpdated({},!1);n.get(i)[r]=o,e[i][r]=o.option}),this),"series"===i&&L(this,n.get("series"))}A(this),o(t,(function(t,n){null!=t&&(x.hasClass(n)?n&&i.push(n):e[n]=null==e[n]?p(t):g(e[n],t,!0))})),x.topologicalTravel(i,x.getAllClassMainTypes(),r,this),this._seriesIndicesMap=d(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=p(this.option);return o(t,(function(e,n){if(x.hasClass(n)){e=y.normalizeToArray(e);for(var i=e.length-1;i>=0;i--)y.isIdInner(e[i])&&e.splice(i,1);t[n]=e}})),delete t[M],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,c=this._componentsMap.get(e);if(!c||!c.length)return[];if(null!=i)l(i)||(i=[i]),n=a(s(i,(function(t){return c[t]})),(function(t){return!!t}));else if(null!=r){var h=l(r);n=a(c,(function(t){return h&&u(r,t.id)>=0||!h&&t.id===r}))}else if(null!=o){var d=l(o);n=a(c,(function(t){return d&&u(o,t.name)>=0||!d&&t.name===o}))}else n=c.slice();return R(n,t)},findComponents:function(t){var e=t.query,n=t.mainType,i=o(e),r=i?this.queryComponents(i):this._componentsMap.get(n);return s(R(r,t));function o(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function s(e){return t.filter?a(e,t.filter):e}},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"===typeof t)n=e,e=t,i.each((function(t,i){o(t,(function(t,r){e.call(n,i,t,r)}))}));else if(h(t))o(i.get(t),e,n);else if(c(t)){var r=this.findComponents(t);o(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){O(this),o(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},eachRawSeries:function(t,e){o(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){O(this),o(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},eachRawSeriesByType:function(t,e,n){return o(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return O(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){O(this);var n=a(this._componentsMap.get("series"),t,e);L(this,n)},restoreData:function(t){var e=this._componentsMap;L(this,e.get("series"));var n=[];e.each((function(t,e){n.push(e)})),x.topologicalTravel(n,x.getAllClassMainTypes(),(function(n,i){o(e.get(n),(function(e){("series"!==n||!I(e,t))&&e.restoreData()}))}))}});function I(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function T(t,e){var n=t.color&&!t.colorLayer;o(e,(function(e,i){"colorLayer"===i&&n||x.hasClass(i)||("object"===typeof e?t[i]=t[i]?g(t[i],e,!1):p(e):null==t[i]&&(t[i]=e))}))}function E(t){this.option={},this.option[M]=1,this._componentsMap=d({series:[]}),this._seriesIndices,this._seriesIndicesMap,T(t,this._theme.option),g(t,b,!1),this.mergeOption(t)}function D(t,e){l(e)||(e=e?[e]:[]);var n={};return o(e,(function(e){n[e]=(t.get(e)||[]).slice()})),n}function P(t,e,n){var i=e.type?e.type:n?n.subType:x.determineSubType(t,e);return i}function L(t,e){t._seriesIndicesMap=d(t._seriesIndices=s(e,(function(t){return t.componentIndex}))||[])}function R(t,e){return e.hasOwnProperty("subType")?a(t,(function(t){return t.subType===e.subType})):t}function O(t){}v(C,w);var k=C;t.exports=k},40590:function(t,e,n){var i=n(95289),r=n(87190),o=n(63199),a=o.makeInner,s=n(11724),l=s.enableClassExtend,u=s.enableClassCheck,c=n(52342),h=n(27671),d=n(28301),f=n(62429),p=i.mixin,g=a();function m(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function v(t,e,n){for(var i=0;i<e.length;i++)if(e[i]&&(t=t&&"object"===typeof t?t[e[i]]:null,null==t))break;return null==t&&n&&(t=n.get(e)),t}function y(t,e){var n=g(t).getParent;return n?n.call(t,e):t.parentModel}m.prototype={constructor:m,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:v(this.option,this.parsePath(t),!e&&y(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],r=!e&&y(this,t);return null==i&&r&&(i=r.getShallow(t)),i},getModel:function(t,e){var n,i=null==t?this.option:v(this.option,t=this.parsePath(t));return e=e||(n=y(this,t))&&n.getModel(t),new m(i,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"===typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){g(this).getParent=t},isAnimationEnabled:function(){if(!r.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},l(m),u(m),p(m,c),p(m,h),p(m,d),p(m,f);var _=m;t.exports=_},27711:function(t,e,n){var i=n(95289),r=n(63199),o=n(85532),a=i.each,s=i.clone,l=i.map,u=i.merge,c=/^(min|max)?(.+)$/;function h(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function d(t,e,n){var r,o,s=[],l=[],u=t.timeline;if(t.baseOption&&(o=t.baseOption),(u||t.options)&&(o=o||{},s=(t.options||[]).slice()),t.media){o=o||{};var c=t.media;a(c,(function(t){t&&t.option&&(t.query?l.push(t):r||(r=t))}))}return o||(o=t),o.timeline||(o.timeline=u),a([o].concat(s).concat(i.map(l,(function(t){return t.option}))),(function(t){a(e,(function(e){e(t,n)}))})),{baseOption:o,timelineOptions:s,mediaDefault:r,mediaList:l}}function f(t,e,n){var r={width:e,height:n,aspectratio:e/n},o=!0;return i.each(t,(function(t,e){var n=e.match(c);if(n&&n[1]&&n[2]){var i=n[1],a=n[2].toLowerCase();p(r[a],t,i)||(o=!1)}})),o}function p(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function g(t,e){return t.join(",")===e.join(",")}function m(t,e){e=e||{},a(e,(function(e,n){if(null!=e){var i=t[n];if(o.hasClass(n)){e=r.normalizeToArray(e),i=r.normalizeToArray(i);var a=r.mappingToExists(i,e);t[n]=l(a,(function(t){return t.option&&t.exist?u(t.exist,t.option,!0):t.exist||t.option}))}else t[n]=u(i,e,!0)}}))}h.prototype={constructor:h,setOption:function(t,e){t&&i.each(r.normalizeToArray(t.series),(function(t){t&&t.data&&i.isTypedArray(t.data)&&i.setAsPrimitive(t.data)})),t=s(t);var n=this._optionBackup,o=d.call(this,t,e,!n);this._newBaseOption=o.baseOption,n?(m(n.baseOption,o.baseOption),o.timelineOptions.length&&(n.timelineOptions=o.timelineOptions),o.mediaList.length&&(n.mediaList=o.mediaList),o.mediaDefault&&(n.mediaDefault=o.mediaDefault)):this._optionBackup=o},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=s(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var u=0,c=i.length;u<c;u++)f(i[u].query,e,n)&&o.push(u);return!o.length&&r&&(o=[-1]),o.length&&!g(o,this._currentMediaIndices)&&(a=l(o,(function(t){return s(-1===t?r.option:i[t].option)}))),this._currentMediaIndices=o,a}};var v=h;t.exports=v},33358:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=n(87190),a=n(8595),s=a.formatTime,l=a.encodeHTML,u=a.addCommas,c=a.getTooltipMarker,h=n(63199),d=n(85532),f=n(18167),p=n(38738),g=n(61570),m=g.getLayoutParams,v=g.mergeLayoutParam,y=n(88545),_=y.createTask,x=n(49442),b=x.prepareSource,w=x.getSource,S=n(41834),A=S.retrieveRawValue,M=h.makeInner(),C=d.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=_({count:E,reset:D}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),b(this);var r=this.getInitialData(t,n);L(r,this),this.dataTask.context.data=r,M(this).dataBeforeProcessed=r,I(this)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?m(t):{},o=this.subType;d.hasClass(o)&&(o+="Series"),r.merge(t,e.getTheme().get(this.subType)),r.merge(t,this.getDefaultOption()),h.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&v(t,i,n)},mergeOption:function(t,e){t=r.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&v(this.option,t,n),b(this);var i=this.getInitialData(t,e);L(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,M(this).dataBeforeProcessed=i,I(this)},fillDataTextStyle:function(t){if(t&&!r.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&h.defaultEmphasis(t[n],"label",e)},getInitialData:function(){},appendData:function(t){var e=this.getRawData();e.appendData(t.data)},getData:function(t){var e=O(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return M(this).data},setData:function(t){var e=O(this);if(e){var n=e.context;n.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),n.outputData=t,e!==this.dataTask&&(n.data=t)}M(this).data=t},getSource:function(){return w(this)},getRawData:function(){return M(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,n,i){var o=this;i=i||"html";var a="html"===i?"<br/>":"\n",d="richText"===i,f={},p=0;function g(n){var a=r.reduce(n,(function(t,e,n){var i=v.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),h=[];function g(t,n){var r=v.getDimensionInfo(n);if(r&&!1!==r.otherDims.tooltip){var g=r.type,m="sub"+o.seriesIndex+"at"+p,y=c({color:w,type:"subItem",renderMode:i,markerId:m}),_="string"===typeof y?y:y.content,x=(a?_+l(r.displayName||"-")+": ":"")+l("ordinal"===g?t+"":"time"===g?e?"":s("yyyy/MM/dd hh:mm:ss",t):u(t));x&&h.push(x),d&&(f[m]=w,++p)}}y.length?r.each(y,(function(e){g(A(v,t,e),e)})):r.each(n,g);var m=a?d?"\n":"<br/>":"",_=m+h.join(m||", ");return{renderMode:i,content:_,style:f}}function m(t){return{renderMode:i,content:l(u(t)),style:f}}var v=this.getData(),y=v.mapDimension("defaultedTooltip",!0),_=y.length,x=this.getRawValue(t),b=r.isArray(x),w=v.getItemVisual(t,"color");r.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=_>1||b&&!_?g(x):m(_?A(v,t,y[0]):b?x[0]:x),M=S.content,C=o.seriesIndex+"at"+p,I=c({color:w,type:"item",renderMode:i,markerId:C});f[C]=w,++p;var T=v.getName(t),E=this.name;h.isNameSpecified(this)||(E=""),E=E?l(E)+(e?": ":a):"";var D="string"===typeof I?I:I.content,P=e?D+E+M:E+D+(T?l(T)+": "+M:M);return{html:P,markers:f}},isAnimationEnabled:function(){if(o.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=f.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function I(t){var e=t.name;h.isNameSpecified(t)||(t.name=T(t)||e)}function T(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return r.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function E(t){return t.model.getRawData().count()}function D(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),P}function P(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function L(t,e){r.each(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,r.curry(R,e))}))}function R(t){var e=O(t);e&&e.setOutputEnd(this.count())}function O(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r.mixin(C,p),r.mixin(C,f);var k=C;t.exports=k},20183:function(t){var e="";"undefined"!==typeof navigator&&(e=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:e.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};t.exports=n},27671:function(t,e,n){var i=n(81935),r=i([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o={getAreaStyle:function(t,e){return r(this,t,e)}};t.exports=o},54350:function(t){var e={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};t.exports=e},18167:function(t,e,n){var i=n(63199),r=i.makeInner,o=i.normalizeToArray,a=r();function s(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}var l={clearColorPalette:function(){a(this).colorIdx=0,a(this).colorNameMap={}},getColorFromPalette:function(t,e,n){e=e||this;var i=a(e),r=i.colorIdx||0,l=i.colorNameMap=i.colorNameMap||{};if(l.hasOwnProperty(t))return l[t];var u=o(this.get("color",!0)),c=this.get("colorLayer",!0),h=null!=n&&c?s(c,n):u;if(h=h||u,h&&h.length){var d=h[r];return t&&(l[t]=d),i.colorIdx=(r+1)%h.length,d}}};t.exports=l},38738:function(t,e,n){var i=n(41834),r=i.retrieveRawValue,o=n(8595),a=o.getTooltipMarker,s=o.formatTpl,l=n(63199),u=l.getTooltipRenderMode,c=/\{@(.+?)\}/g,h={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"color"),c=n.getItemVisual(t,"borderColor"),h=this.ecModel.getComponent("tooltip"),d=h&&h.get("renderMode"),f=u(d),p=this.mainType,g="series"===p,m=n.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:r,data:s,dataType:e,value:i,color:l,borderColor:c,dimensionNames:m?m.dimensionNames:null,encode:m?m.encode:null,marker:a({color:l,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,o){e=e||"normal";var a=this.getData(n),l=a.getItemModel(t),u=this.getDataParams(t,n);null!=i&&u.value instanceof Array&&(u.value=u.value[i]);var h=l.get("normal"===e?[o||"label","formatter"]:[e,o||"label","formatter"]);if("function"===typeof h)return u.status=e,u.dimensionIndex=i,h(u);if("string"===typeof h){var d=s(h,u);return d.replace(c,(function(e,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),r(a,t,n)}))}},getRawValue:function(t,e){return r(this.getData(e),t)},formatTooltip:function(){}};t.exports=h},62429:function(t,e,n){var i=n(81935),r=i([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),o={getItemStyle:function(t,e){var n=r(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=o},52342:function(t,e,n){var i=n(81935),r=i([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getLineStyle:function(t){var e=r(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[i,i]:[n,n])}};t.exports=o},81935:function(t,e,n){var i=n(95289);function r(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,n,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(n&&i.indexOf(n,s)>=0||r&&i.indexOf(r,s)<0)){var l=e.getShallow(s);null!=l&&(o[t[a][0]]=l)}}return o}}t.exports=r},28301:function(t,e,n){var i=n(43407),r=n(76442),o=["textStyle","color"],a={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(o):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=a},87749:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=r.createHashMap,a=(r.retrieve,r.each);function s(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=o(),this.categoryAxisMap=o(),this.firstCategoryDimIndex=null}function l(t){var e=t.get("coordinateSystem"),n=new s(e),i=u[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var u={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),c(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),c(o)&&(i.set("y",o),e.firstCategoryDimIndex,e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),c(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),c(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),c(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();a(o.parallelAxisIndex,(function(t,o){var a=r.getComponent("parallelAxis",t),l=s[o];n.set(l,a),c(a)&&null==e.firstCategoryDimIndex&&(i.set(l,a),e.firstCategoryDimIndex=o)}))}};function c(t){return"category"===t.get("type")}e.getCoordSysInfoBySeries=l},5518:function(t,e,n){var i=n(95289),r=i.each,o=i.isArray,a=i.isObject,s=n(22341),l=n(63199),u=l.normalizeToArray;function c(t,e){e=e.split(",");for(var n=t,i=0;i<e.length;i++)if(n=n&&n[e[i]],null==n)break;return n}function h(t,e,n,i){e=e.split(",");for(var r,o=t,a=0;a<e.length-1;a++)r=e[a],null==o[r]&&(o[r]={}),o=o[r];(i||null==o[e[a]])&&(o[e[a]]=n)}function d(t){r(f,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var f=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],p=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function g(t,e){s(t,e),t.series=u(t.series),r(t.series,(function(t){if(a(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var n=c(t,"pointer.color");null!=n&&h(t,"itemStyle.color",n)}d(t)}})),t.dataRange&&(t.visualMap=t.dataRange),r(p,(function(e){var n=t[e];n&&(o(n)||(n=[n]),r(n,(function(t){d(t)})))}))}t.exports=g},22341:function(t,e,n){var i=n(95289),r=n(63199),o=i.each,a=i.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=s.length;n<r;n++){var o=s[n],a=e.normal,l=e.emphasis;a&&a[o]&&(t[o]=t[o]||{},t[o].normal?i.merge(t[o].normal,a[o]):t[o].normal=a[o],a[o]=null),l&&l[o]&&(t[o]=t[o]||{},t[o].emphasis?i.merge(t[o].emphasis,l[o]):t[o].emphasis=l[o],l[o]=null)}}function u(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,o=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,i.defaults(t[e],r)):t[e]=r),o&&(t.emphasis=t.emphasis||{},t.emphasis[e]=o)}}function c(t){u(t,"itemStyle"),u(t,"lineStyle"),u(t,"areaStyle"),u(t,"label"),u(t,"labelLine"),u(t,"upperLabel"),u(t,"edgeLabel")}function h(t,e){var n=a(t)&&t[e],i=a(n)&&n.textStyle;if(i)for(var o=0,s=r.TEXT_STYLE_OPTIONS.length;o<s;o++){e=r.TEXT_STYLE_OPTIONS[o];i.hasOwnProperty(e)&&(n[e]=i[e])}}function d(t){t&&(c(t),h(t,"label"),t.emphasis&&h(t.emphasis,"label"))}function f(t){if(a(t)){l(t),c(t),h(t,"label"),h(t,"upperLabel"),h(t,"edgeLabel"),t.emphasis&&(h(t.emphasis,"label"),h(t.emphasis,"upperLabel"),h(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(l(e),d(e));var n=t.markLine;n&&(l(n),d(n));var r=t.markArea;r&&d(r);var o=t.data;if("graph"===t.type){o=o||t.nodes;var s=t.links||t.edges;if(s&&!i.isTypedArray(s))for(var f=0;f<s.length;f++)d(s[f]);i.each(t.categories,(function(t){c(t)}))}if(o&&!i.isTypedArray(o))for(f=0;f<o.length;f++)d(o[f]);e=t.markPoint;if(e&&e.data){var p=e.data;for(f=0;f<p.length;f++)d(p[f])}n=t.markLine;if(n&&n.data){var g=n.data;for(f=0;f<g.length;f++)i.isArray(g[f])?(d(g[f][0]),d(g[f][1])):d(g[f])}"gauge"===t.type?(h(t,"axisLabel"),h(t,"title"),h(t,"detail")):"treemap"===t.type?(u(t.breadcrumb,"itemStyle"),i.each(t.levels,(function(t){c(t)}))):"tree"===t.type&&c(t.leaves)}}function p(t){return i.isArray(t)?t:t?[t]:[]}function g(t){return(i.isArray(t)?t[0]:t)||{}}function m(t,e){o(p(t.series),(function(t){a(t)&&f(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),o(n,(function(e){o(p(t[e]),(function(t){t&&(h(t,"axisLabel"),h(t.axisPointer,"label"))}))})),o(p(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;h(e,"axisLabel"),h(e&&e.axisPointer,"label")})),o(p(t.calendar),(function(t){u(t,"itemStyle"),h(t,"dayLabel"),h(t,"monthLabel"),h(t,"yearLabel")})),o(p(t.radar),(function(t){h(t,"name")})),o(p(t.geo),(function(t){a(t)&&(d(t),o(p(t.regions),(function(t){d(t)})))})),o(p(t.timeline),(function(t){d(t),u(t,"label"),u(t,"itemStyle"),u(t,"controlStyle",!0);var e=t.data;i.isArray(e)&&i.each(e,(function(t){i.isObject(t)&&(u(t,"label"),u(t,"itemStyle"))}))})),o(p(t.toolbox),(function(t){u(t,"iconStyle"),o(t.feature,(function(t){u(t,"iconStyle")}))})),h(g(t.axisPointer),"label"),h(g(t.tooltip).axisPointer,"label")}t.exports=m},95633:function(t){function e(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}t.exports=e},99610:function(t){var e={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},n=function(t,e){return Math.round(t.length/2)};function i(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,i,r){var o=t.getData(),a=t.get("sampling"),s=t.coordinateSystem;if("cartesian2d"===s.type&&a){var l,u=s.getBaseAxis(),c=s.getOtherAxis(u),h=u.getExtent(),d=Math.abs(h[1]-h[0]),f=Math.round(o.count()/d);if(f>1)"string"===typeof a?l=e[a]:"function"===typeof a&&(l=a),l&&t.setData(o.downSample(o.mapDimension(c.dim),1/f,l,n))}}}}t.exports=i},54326:function(t,e,n){var i=n(95289),r=i.createHashMap,o=i.each;function a(t){var e=r();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(s)}function s(t){o(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=a.map(o,(function(o,l,u){var c,h,d=a.get(e.stackedDimension,u);if(isNaN(d))return r;s?h=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var f=NaN,p=n-1;p>=0;p--){var g=t[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return i[0]=d,i[1]=f,i}));a.hostModel.setData(l),e.data=l}))}t.exports=a},21607:function(t,e,n){var i=n(44261),r=n(8595),o=n(96506),a=n(23534),s=i.round,l=o.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<i[0]&&(t?o.push(s(i[0]-e,r)):o.push(n[0]));var l=i[0];while(l<=i[1]){if(o.push(l),l=s(l+e,r),l===o[o.length-1])break;if(o.length>a)return[]}var u=o.length?o[o.length-1]:i[1];return n[1]>u&&(t?o.push(s(u+e,r)):o.push(n[1])),o},getMinorTicks:function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),o=1;o<e.length;o++){var a=e[o],s=e[o-1],l=0,u=[],c=a-s,h=c/t;while(l<t-1){var d=i.round(s+(l+1)*h);d>r[0]&&d<r[1]&&u.push(d),l++}n.push(u)}return n},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=i.getPrecisionSafe(t)||0:"auto"===n&&(n=this._intervalPrecision),t=s(t,n,!0),r.addCommas(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=a.intervalScaleNiceTicks(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=s(Math.ceil(e[1]/r)*r))}});l.create=function(){return new l};var u=l;t.exports=u},94034:function(t,e,n){var i=n(95289),r=n(96506),o=n(44261),a=n(21607),s=r.prototype,l=a.prototype,u=o.getPrecisionSafe,c=o.round,h=Math.floor,d=Math.ceil,f=Math.pow,p=Math.log,g=r.extend({type:"log",base:10,$constructor:function(){r.apply(this,arguments),this._originalScale=new a},getTicks:function(t){var e=this._originalScale,n=this._extent,r=e.getExtent();return i.map(l.getTicks.call(this,t),(function(t){var i=o.round(f(this.base,t));return i=t===n[0]&&e.__fixMin?m(i,r[0]):i,i=t===n[1]&&e.__fixMax?m(i,r[1]):i,i}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var n=this.base;t=p(t)/p(n),e=p(e)/p(n),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this);e[0]=f(t,e[0]),e[1]=f(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=m(e[0],i[0])),n.__fixMax&&(e[1]=m(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=p(t[0])/p(e),t[1]=p(t[1])/p(e),s.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=o.quantity(n),r=t/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var a=[o.round(d(e[0]/i)*i),o.round(h(e[1]/i)*i)];this._interval=i,this._niceExtent=a}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function m(t,e){return c(t,u(e))}i.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=p(e)/p(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var v=g;t.exports=v},37221:function(t,e,n){var i=n(95289),r=n(96506),o=n(54874),a=r.prototype,s=r.extend({type:"ordinal",init:function(t,e){t&&!i.isArray(t)||(t=new o({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"===typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),a.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return a.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(a.scale.call(this,t))},getTicks:function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:i.noop,niceExtent:i.noop});s.create=function(){return new s};var l=s;t.exports=l},96506:function(t,e,n){var i=n(11724);function r(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}r.prototype.parse=function(t){return t},r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},r.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r.prototype.getLabel=null,i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0});var o=r;t.exports=o},12683:function(t,e,n){var i=n(95289),r=n(44261),o=n(8595),a=n(23534),s=n(21607),l=s.prototype,u=Math.ceil,c=Math.floor,h=1e3,d=60*h,f=60*d,p=24*f,g=function(t,e,n,i){while(n<i){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},m=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return o.formatTime(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=p,e[1]+=p),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-p}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=r.round(c(e[0]/i)*i)),t.fixMax||(e[1]=r.round(u(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,o=i[1]-i[0],s=o/t;null!=e&&s<e&&(s=e),null!=n&&s>n&&(s=n);var l=v.length,h=g(v,s,0,l),d=v[Math.min(h,l-1)],f=d[1];if("year"===d[0]){var p=o/f,m=r.nice(p/t,!0);f*=m}var y=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,_=[Math.round(u((i[0]-y)/f)*f+y),Math.round(c((i[1]-y)/f)*f+y)];a.fixExtent(_,i),this._stepLvl=d,this._interval=f,this._niceExtent=_},parse:function(t){return+r.parseDate(t)}});i.each(["contain","normalize"],(function(t){m.prototype[t]=function(e){return l[t].call(this,this.parse(e))}}));var v=[["hh:mm:ss",h],["hh:mm:ss",5*h],["hh:mm:ss",10*h],["hh:mm:ss",15*h],["hh:mm:ss",30*h],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",5*d],["hh:mm\nMM-dd",10*d],["hh:mm\nMM-dd",15*d],["hh:mm\nMM-dd",30*d],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",2*f],["hh:mm\nMM-dd",6*f],["hh:mm\nMM-dd",12*f],["MM-dd\nyyyy",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];m.create=function(t){return new m({useUTC:t.ecModel.get("useUTC")})};var y=m;t.exports=y},23534:function(t,e,n){var i=n(44261),r=i.round;function o(t,e,n,o){var s={},u=t[1]-t[0],c=s.interval=i.nice(u/e,!0);null!=n&&c<n&&(c=s.interval=n),null!=o&&c>o&&(c=s.interval=o);var h=s.intervalPrecision=a(c),d=s.niceTickExtent=[r(Math.ceil(t[0]/c)*c,h),r(Math.floor(t[1]/c)*c,h)];return l(d,t),s}function a(t){return i.getPrecisionSafe(t)+2}function s(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function l(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),s(t,0,e),s(t,1,e),t[0]>t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=o,e.getIntervalPrecision=a,e.fixExtent=l},3379:function(t,e,n){var i=n(95289),r=i.each,o=i.map,a=i.isFunction,s=i.createHashMap,l=i.noop,u=n(88545),c=u.createTask,h=n(79865),d=h.getUID,f=n(87380),p=n(69498),g=n(63199),m=g.normalizeToArray;function v(t,e,n,i){this.ecInstance=t,this.api=e,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=s()}var y=v.prototype;function _(t,e,n,i,o){var a;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}o=o||{},r(e,(function(e,r){if(!o.visualType||o.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){s(o,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),x(c,i);var f=t.getPerformArgs(c,o.block);d.each((function(t){t.perform(f)})),a|=c.perform(f)}else u&&u.each((function(r,l){s(o,r)&&r.dirty();var u=t.getPerformArgs(r,o.block);u.skip=!e.performRawSeries&&n.isSeriesFiltered(r.context.model),x(r,i),a|=r.perform(u)}))}})),t.unfinished|=a}y.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},y.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},y.getPipeline=function(t){return this._pipelineMap.get(t)},y.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},y.restorePipelines=function(t){var e=this,n=e._pipelineMap=s();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),L(e,t,t.dataTask)}))},y.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;r(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&b(this,i,r,e,n),i.overallReset&&w(this,i,r,e,n)}),this)},y.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,L(this,e,r)},y.performDataProcessorTasks=function(t,e){_(this,this._dataProcessorHandlers,t,e,{block:!0})},y.performVisualTasks=function(t,e,n){_(this,this._visualHandlers,t,e,n)},y.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},y.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var x=y.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function b(t,e,n,i,r){var o=n.seriesTaskMap||(n.seriesTaskMap=s()),a=e.seriesType,l=e.getTargetSeries;function u(n){var a=n.uid,s=o.get(a)||o.set(a,c({plan:I,reset:T,count:P}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},L(t,n,s)}e.createOnAllSeries?i.eachRawSeries(u):a?i.eachRawSeriesByType(a,u):l&&l(i,r).each(u);var h=t._pipelineMap;o.each((function(t,e){h.get(e)||(t.dispose(),o.removeKey(e))}))}function w(t,e,n,i,o){var a=n.overallTask=n.overallTask||c({reset:S});a.context={ecModel:i,api:o,overallReset:e.overallReset,scheduler:t};var l=a.agentStubMap=a.agentStubMap||s(),u=e.seriesType,h=e.getTargetSeries,d=!0,f=e.modifyOutputEnd;function p(e){var n=e.uid,i=l.get(n);i||(i=l.set(n,c({reset:A,onDirty:C})),a.dirty()),i.context={model:e,overallProgress:d,modifyOutputEnd:f},i.agent=a,i.__block=d,L(t,e,i)}u?i.eachRawSeriesByType(u,p):h?h(i,o).each(p):(d=!1,r(i.getSeries(),p));var g=t._pipelineMap;l.each((function(t,e){g.get(e)||(t.dispose(),a.dirty(),l.removeKey(e))}))}function S(t){t.overallReset(t.ecModel,t.api,t.payload)}function A(t,e){return t.overallProgress&&M}function M(){this.agent.dirty(),this.getDownstream().dirty()}function C(){this.agent&&this.agent.dirty()}function I(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function T(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=m(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?o(e,(function(t,e){return D(e)})):E}var E=D(0);function D(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function P(t){return t.data.count()}function L(t,e,n){var i=e.uid,r=t._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function R(t){O=null;try{t(k,N)}catch(e){}return O}v.wrapStageHandler=function(t,e){return a(t)&&(t={overallReset:t,seriesType:R(t)}),t.uid=d("stageHandler"),e&&(t.visualType=e),t};var O,k={},N={};function F(t,e){for(var n in e.prototype)t[n]=l}F(k,f),F(N,p),k.eachSeriesByType=k.eachRawSeriesByType=function(t){O=t},k.eachComponent=function(t){"series"===t.mainType&&t.subType&&(O=t.subType)};var z=v;t.exports=z},88545:function(t,e,n){var i=n(95289),r=(i.assert,i.isArray),o=n(65523);o.__DEV__;function a(t){return new s(t)}function s(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}var l=s.prototype;l.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var a,s=f(this._modBy),l=this._modDataCount||0,u=f(t&&t.modBy),d=t&&t.modDataCount||0;function f(t){return!(t>=1)&&(t=1),t}s===u&&l===d||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=h(this,i)),this._modBy=u,this._modDataCount=d;var p=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,m=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(a||g<m)){var v=this._progress;if(r(v))for(var y=0;y<v.length;y++)c(this,v[y],g,m,u,d);else c(this,v,g,m,u,d)}this._dueIndex=m;var _=null!=this._settedOutputEnd?this._settedOutputEnd:m;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var u=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function c(t,e,n,i,r,o){u.reset(n,i,r,o),t._callingProgress=e,t._callingProgress({start:n,end:i,count:i-n,next:u.next},t.context)}function h(t,e){var n,i;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&(n=t._reset(t.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),r(n)&&!n.length&&(n=null)),t._progress=n,t._modBy=t._modDataCount=null;var o=t._downstream;return o&&o.dirty(),i}l.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},l.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},l.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},l.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},l.getUpstream=function(){return this._upstream},l.getDownstream=function(){return this._downstream},l.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e.createTask=a},95239:function(t){var e="#eee",n=function(){return{axisLine:{lineStyle:{color:e}},axisTick:{lineStyle:{color:e}},axisLabel:{textStyle:{color:e}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:e}}}},i=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],r={color:i,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:e},crossStyle:{color:e},label:{color:"#000"}}},legend:{textStyle:{color:e}},textStyle:{color:e},title:{textStyle:{color:e}},toolbox:{iconStyle:{normal:{borderColor:e}}},dataZoom:{textStyle:{color:e}},visualMap:{textStyle:{color:e}},timeline:{lineStyle:{color:e},itemStyle:{normal:{color:i[1]}},label:{normal:{textStyle:{color:e}}},controlStyle:{normal:{color:e,borderColor:e}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:i},gauge:{title:{textStyle:{color:e}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};r.categoryAxis.splitLine.show=!1;var o=r;t.exports=o},27663:function(t){var e=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:e,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],e]};t.exports=n},3568:function(t,e,n){var i=n(95289);function r(){var t,e=[],n={};return{add:function(t,r,o,a,s){return i.isString(a)&&(s=a,a=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:r,time:o,delay:a,easing:s}),!0)},done:function(e){return t=e,this},start:function(){for(var i=e.length,r=0,o=e.length;r<o;r++){var a=e[r];a.el.animateTo(a.target,a.time,a.delay,a.easing,s)}return this;function s(){i--,i||(e.length=0,n={},t&&t())}}}}e.createWrap=r},11724:function(t,e,n){var i=n(65523),r=(i.__DEV__,n(95289)),o=".",a="___EC__COMPONENT__CONTAINER___";function s(t){var e={main:"",sub:""};return t&&(t=t.split(o),e.main=t[0]||"",e.sub=t[1]||""),e}function l(t){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function u(t,e){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return r.extend(n.prototype,t),n.extend=this.extend,n.superCall=d,n.superApply=f,r.inherits(n,this),n.superClass=e,n}}var c=0;function h(t){var e=["__\0is_clz",c++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function d(t,e){var n=r.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function f(t,e,n){return this.superClass.prototype[e].apply(t,n)}function p(t,e){e=e||{};var n={};function i(t){var e=n[t.main];return e&&e[a]||(e=n[t.main]={},e[a]=!0),e}if(t.registerClass=function(t,e){if(e)if(l(e),e=s(e),e.sub){if(e.sub!==a){var r=i(e);r[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[a]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=s(t);var e=[],i=n[t.main];return i&&i[a]?r.each(i,(function(t,n){n!==a&&e.push(t)})):e.push(i),e},t.hasClass=function(t){return t=s(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(n,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){t=s(t);var e=n[t.main];return e&&e[a]},t.parseClassType=s,e.registerWhenExtend){var o=t.extend;o&&(t.extend=function(e){var n=o.call(this,e);return t.registerClass(n,e.type)})}return t}function g(t,e){}e.parseClassType=s,e.enableClassExtend=u,e.enableClassCheck=h,e.enableClassManagement=p,e.setReadOnly=g},79865:function(t,e,n){var i=n(95289),r=n(11724),o=r.parseClassType,a=0;function s(t){return[t||"",a++,Math.random().toFixed(5)].join("_")}function l(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=o(t),e[t.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var a=o(n).main;t.hasSubTypes(n)&&e[a]&&(r=e[a](i))}return r},t}function u(t,e){function n(t){var n={},a=[];return i.each(t,(function(s){var l=r(n,s),u=l.originalDeps=e(s),c=o(u,t);l.entryCount=c.length,0===l.entryCount&&a.push(s),i.each(c,(function(t){i.indexOf(l.predecessor,t)<0&&l.predecessor.push(t);var e=r(n,t);i.indexOf(e.successor,t)<0&&e.successor.push(s)}))})),{graph:n,noEntryList:a}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function o(t,e){var n=[];return i.each(t,(function(t){i.indexOf(e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,o){if(t.length){var a=n(e),s=a.graph,l=a.noEntryList,u={};i.each(t,(function(t){u[t]=!0}));while(l.length){var c=l.pop(),h=s[c],d=!!u[c];d&&(r.call(o,c,h.originalDeps.slice()),delete u[c]),i.each(h.successor,d?p:f)}i.each(u,(function(){throw new Error("Circle dependency may exists")}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){u[t]=!0,f(t)}}}e.getUID=s,e.enableSubTypeDefaulter=l,e.enableTopologicalTravel=u},8595:function(t,e,n){var i=n(95289),r=n(43407),o=n(44261);function a(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function s(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var l=i.normalizeCssArray,u=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(t){return null==t?"":(t+"").replace(u,(function(t,e){return c[e]}))}var d=["a","b","c","d","e","f","g"],f=function(t,e){return"{"+t+(null==e?"":e)+"}"};function p(t,e,n){i.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var o=e[0].$vars||[],a=0;a<o.length;a++){var s=d[a];t=t.replace(f(s),f(s,0))}for(var l=0;l<r;l++)for(var u=0;u<o.length;u++){var c=e[l][o[u]];t=t.replace(f(d[u],l),n?h(c):c)}return t}function g(t,e,n){return i.each(e,(function(e,i){t=t.replace("{"+i+"}",n?h(e):e)})),t}function m(t,e){t=i.isString(t)?{color:t,extraCssText:e}:t||{};var n=t.color,r=t.type,o=(e=t.extraCssText,t.renderMode||"html"),a=t.markerId||"X";return n?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+h(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+h(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{marker"+a+"|} ",style:{color:n}}:""}function v(t,e){return t+="","0000".substr(0,e-t.length)+t}function y(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=o.parseDate(e),r=n?"UTC":"",a=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,l=i["get"+r+"Date"](),u=i["get"+r+"Hours"](),c=i["get"+r+"Minutes"](),h=i["get"+r+"Seconds"](),d=i["get"+r+"Milliseconds"]();return t=t.replace("MM",v(s,2)).replace("M",s).replace("yyyy",a).replace("yy",a%100).replace("dd",v(l,2)).replace("d",l).replace("hh",v(u,2)).replace("h",u).replace("mm",v(c,2)).replace("m",c).replace("ss",v(h,2)).replace("s",h).replace("SSS",v(d,3)),t}function _(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var x=r.truncateText;function b(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function w(t,e,n,i,o,a,s,l){return r.getBoundingRect(t,e,n,i,o,l,a,s)}function S(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location=t}else window.open(t,e)}e.addCommas=a,e.toCamelCase=s,e.normalizeCssArray=l,e.encodeHTML=h,e.formatTpl=p,e.formatTplSimple=g,e.getTooltipMarker=m,e.formatTime=y,e.capitalFirst=_,e.truncateText=x,e.getTextBoundingRect=b,e.getTextRect=w,e.windowOpen=S},76442:function(t,e,n){var i=n(95289),r=n(15009),o=n(56607),a=n(13388),s=n(31138),l=n(66343),u=n(38051),c=n(1635);e.Image=c;var h=n(75738);e.Group=h;var d=n(21927);e.Text=d;var f=n(30074);e.Circle=f;var p=n(91036);e.Sector=p;var g=n(39496);e.Ring=g;var m=n(24570);e.Polygon=m;var v=n(65542);e.Polyline=v;var y=n(15404);e.Rect=y;var _=n(91636);e.Line=_;var x=n(77402);e.BezierCurve=x;var b=n(64336);e.Arc=b;var w=n(24582);e.CompoundPath=w;var S=n(25113);e.LinearGradient=S;var A=n(78051);e.RadialGradient=A;var M=n(39587);e.BoundingRect=M;var C=n(48458);e.IncrementalDisplayable=C;var I=n(32250),T=Math.max,E=Math.min,D={},P=1,L={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},R="emphasis",O="normal",k=1,N={},F={};function z(t){return l.extend(t)}function B(t,e){return r.extendFromString(t,e)}function G(t,e){F[t]=e}function V(t){if(F.hasOwnProperty(t))return F[t]}function W(t,e,n,i){var o=r.createFromString(t,e);return n&&("center"===i&&(n=H(n,o.getBoundingRect())),U(o,n)),o}function j(t,e,n){var i=new c({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(H(e,r))}}});return i}function H(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var Y=r.mergePath;function U(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function X(t){return I.subPixelOptimizeLine(t.shape,t.shape,t.style),t}function Z(t){return I.subPixelOptimizeRect(t.shape,t.shape,t.style),t}var q=I.subPixelOptimize;function $(t){return null!=t&&"none"!==t}var K=i.createHashMap(),J=0;function Q(t){if("string"!==typeof t)return t;var e=K.get(t);return e||(e=o.lift(t,-.1),J<1e4&&(K.set(t,e),J++)),e}function tt(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var i=t.style;for(var r in e)null!=e[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}function et(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.__zr,i=t.useHoverLayer&&n&&"canvas"===n.painter.type;if(t.__highlighted=i?"layer":"plain",!(t.isGroup||!n&&t.useHoverLayer)){var r=t,o=t.style;i&&(r=n.addHover(t),o=r.style),At(o),i||tt(r),o.extendFrom(e),nt(o,e,"fill"),nt(o,e,"stroke"),St(o),i||(t.dirty(!1),t.z2+=P)}}}function nt(t,e,n){!$(e[n])&&$(t[n])&&(t[n]=Q(t[n]))}function it(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var n=t.style,i=t.__cachedNormalStl;i&&(At(n),t.setStyle(i),St(n));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===P&&(t.z2=r)}}function rt(t,e,n){var i,r=O,o=O;t.__highlighted&&(r=R,i=!0),e(t,n),t.__highlighted&&(o=R,i=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,n)})),i&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,o)}function ot(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,it(t),et(t))}function at(t){!ct(this,t)&&!this.__highByOuter&&rt(this,et)}function st(t){!ct(this,t)&&!this.__highByOuter&&rt(this,it)}function lt(t){this.__highByOuter|=1<<(t||0),rt(this,et)}function ut(t){!(this.__highByOuter&=~(1<<(t||0)))&&rt(this,it)}function ct(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ht(t,e){dt(t,!0),rt(t,ot,e)}function dt(t,e){var n=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!n||t.__highDownDispatcher){var i=n?"off":"on";t[i]("mouseover",at)[i]("mouseout",st),t[i]("emphasis",lt)[i]("normal",ut),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n}}function ft(t){return!(!t||!t.__highDownDispatcher)}function pt(t){var e=N[t];return null==e&&k<=32&&(e=N[t]=k++),e}function gt(t,e,n,r,o,a,s){o=o||D;var l,u=o.labelFetcher,c=o.labelDataIndex,h=o.labelDimIndex,d=o.labelProp,f=n.getShallow("show"),p=r.getShallow("show");(f||p)&&(u&&(l=u.getFormattedLabel(c,"normal",null,h,d)),null==l&&(l=i.isFunction(o.defaultText)?o.defaultText(c,o):o.defaultText));var g=f?l:null,m=p?i.retrieve2(u?u.getFormattedLabel(c,"emphasis",null,h,d):null,l):null;null==g&&null==m||(vt(t,n,a,o),vt(e,r,s,o,!0)),t.text=g,e.text=m}function mt(t,e,n){var r=t.style;e&&(At(r),t.setStyle(e),St(r)),r=t.__hoverStl,n&&r&&(At(r),i.extend(r,n),St(r))}function vt(t,e,n,r,o){return _t(t,e,r,o),n&&i.extend(t,n),t}function yt(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,_t(t,e,r,i)}function _t(t,e,n,r){if(n=n||D,n.isRectText){var o;n.getTextPosition?o=n.getTextPosition(e,r):(o=e.getShallow("position")||(r?null:"inside"),"outside"===o&&(o="top")),t.textPosition=o,t.textOffset=e.getShallow("offset");var a=e.getShallow("rotate");null!=a&&(a*=Math.PI/180),t.textRotation=a,t.textDistance=i.retrieve2(e.getShallow("distance"),r?null:5)}var s,l=e.ecModel,u=l&&l.option.textStyle,c=xt(e);if(c)for(var h in s={},c)if(c.hasOwnProperty(h)){var d=e.getModel(["rich",h]);bt(s[h]={},d,u,n,r)}return t.rich=s,bt(t,e,u,n,r,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function xt(t){var e;while(t&&t!==t.ecModel){var n=(t.option||D).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}function bt(t,e,n,r,o,a){n=!o&&n||D,t.textFill=wt(e.getShallow("color"),r)||n.color,t.textStroke=wt(e.getShallow("textBorderColor"),r)||n.textBorderColor,t.textStrokeWidth=i.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),o||(a&&(t.insideRollbackOpt=r,St(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),a&&r.disableBox||(t.textBackgroundColor=wt(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=wt(e.getShallow("borderColor"),r),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function wt(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function St(t){var e,n=t.textPosition,i=t.insideRollbackOpt;if(i&&null==t.textFill){var r=i.autoColor,o=i.isRectText,a=i.useInsideStyle,s=!1!==a&&(!0===a||o&&n&&"string"===typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function At(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function Mt(t,e){var n=e&&e.getModel("textStyle");return i.trim([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function Ct(t,e,n,i,r,o){"function"===typeof r&&(o=r,r=null);var a=i&&i.isAnimationEnabled();if(a){var s=t?"Update":"",l=i.getShallow("animationDuration"+s),u=i.getShallow("animationEasing"+s),c=i.getShallow("animationDelay"+s);"function"===typeof c&&(c=c(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"===typeof l&&(l=l(r)),l>0?e.animateTo(n,l,c||0,u,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function It(t,e,n,i,r){Ct(!0,t,e,n,i,r)}function Tt(t,e,n,i,r){Ct(!1,t,e,n,i,r)}function Et(t,e){var n=a.identity([]);while(t&&t!==e)a.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function Dt(t,e,n){return e&&!i.isArrayLike(e)&&(e=u.getLocalTransform(e)),n&&(e=a.invert([],e)),s.applyTransform([],t,e)}function Pt(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Dt(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Lt(t,e,n,r){if(t&&e){var o=a(t);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=l(t);t.attr(l(e)),It(t,i,n,t.dataIndex)}}}))}function a(t){var e={};return t.traverse((function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)})),e}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=i.extend({},t.shape)),e}}function Rt(t,e){return i.map(t,(function(t){var n=t[0];n=T(n,e.x),n=E(n,e.x+e.width);var i=t[1];return i=T(i,e.y),i=E(i,e.y+e.height),[n,i]}))}function Ot(t,e){var n=T(t.x,e.x),i=E(t.x+t.width,e.x+e.width),r=T(t.y,e.y),o=E(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function kt(t,e,n){e=i.extend({rectHover:!0},e);var r=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),i.defaults(r,n),new c(e)):W(t.replace("path://",""),e,n,"center")}function Nt(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Ft(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Ft(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,d=zt(c,h,l,u);if(Bt(d))return!1;var f=t-r,p=e-o,g=zt(f,p,l,u)/d;if(g<0||g>1)return!1;var m=zt(f,p,c,h)/d;return!(m<0||m>1)}function zt(t,e,n,i){return t*i-n*e}function Bt(t){return t<=1e-6&&t>=-1e-6}G("circle",f),G("sector",p),G("ring",g),G("polygon",m),G("polyline",v),G("rect",y),G("line",_),G("bezierCurve",x),G("arc",b),e.Z2_EMPHASIS_LIFT=P,e.CACHED_LABEL_STYLE_PROPERTIES=L,e.extendShape=z,e.extendPath=B,e.registerShape=G,e.getShapeClass=V,e.makePath=W,e.makeImage=j,e.mergePath=Y,e.resizePath=U,e.subPixelOptimizeLine=X,e.subPixelOptimizeRect=Z,e.subPixelOptimize=q,e.setElementHoverStyle=ot,e.setHoverStyle=ht,e.setAsHighDownDispatcher=dt,e.isHighDownDispatcher=ft,e.getHighlightDigit=pt,e.setLabelStyle=gt,e.modifyLabelStyle=mt,e.setTextStyle=vt,e.setText=yt,e.getFont=Mt,e.updateProps=It,e.initProps=Tt,e.getTransform=Et,e.applyTransform=Dt,e.transformDirection=Pt,e.groupTransition=Lt,e.clipPointsByRect=Rt,e.clipRectByRect=Ot,e.createIcon=kt,e.linePolygonIntersect=Nt,e.lineLineIntersect=Ft},61570:function(t,e,n){var i=n(95289),r=n(39587),o=n(44261),a=o.parsePercent,s=n(8595),l=i.each,u=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function h(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);c=o+m,c>i||l.newline?(o=0,c=m,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);h=a+v,h>r||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=a,"horizontal"===t?o=c+n:a=h+n)}))}var d=h,f=i.curry(h,"vertical"),p=i.curry(h,"horizontal");function g(t,e,n){var i=e.width,r=e.height,o=a(t.x,i),l=a(t.y,r),u=a(t.x2,i),c=a(t.y2,r);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),n=s.normalizeCssArray(n||0),{width:Math.max(u-o-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function m(t,e,n){n=s.normalizeCssArray(n||0);var i=e.width,o=e.height,l=a(t.left,i),u=a(t.top,o),c=a(t.right,i),h=a(t.bottom,o),d=a(t.width,i),f=a(t.height,o),p=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(f)&&(f=o-h-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>i/o?d=.8*i:f=.8*o),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=o-h-f-p),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g;break}switch(t.top||t.bottom){case"middle":case"center":u=o/2-f/2-n[0];break;case"bottom":u=o-f-p;break}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(f)&&(f=o-p-u-(h||0));var v=new r(l+n[3],u+n[0],d,f);return v.margin=n,v}function v(t,e,n,o,a){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();c=c.clone(),c.applyTransform(h)}e=m(i.defaults({width:c.width,height:c.height},e),n,o);var d=t.position,f=s?e.x-c.x:0,p=l?e.y-c.y:0;t.attr("position","raw"===u?[f,p]:[d[0]+f,d[1]+p])}}function y(t,e){return null!=t[c[e][0]]||null!=t[c[e][1]]&&null!=t[c[e][2]]}function _(t,e,n){!i.isObject(n)&&(n={});var r=n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var o=s(c[0],0),a=s(c[1],1);function s(n,i){var o={},a=0,s={},c=0,d=2;if(l(n,(function(e){s[e]=t[e]})),l(n,(function(t){u(e,t)&&(o[t]=s[t]=e[t]),h(o,t)&&a++,h(s,t)&&c++})),r[i])return h(e,n[1])?s[n[2]]=null:h(e,n[2])&&(s[n[1]]=null),s;if(c!==d&&a){if(a>=d)return o;for(var f=0;f<n.length;f++){var p=n[f];if(!u(o,p)&&u(t,p)){o[p]=t[p];break}}return o}return s}function u(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){l(t,(function(t){e[t]=n[t]}))}d(c[0],t,o),d(c[1],t,a)}function x(t){return b({},t)}function b(t,e){return e&&t&&l(u,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}e.LOCATION_PARAMS=u,e.HV_NAMES=c,e.box=d,e.vbox=f,e.hbox=p,e.getAvailableSize=g,e.getLayoutRect=m,e.positionElement=v,e.sizeCalculable=y,e.mergeLayoutParam=_,e.getLayoutParams=x,e.copyLayoutParams=b},63199:function(t,e,n){var i=n(95289),r=n(87190),o=i.each,a=i.isObject,s=i.isArray,l="series\0";function u(t){return t instanceof Array?t:null==t?[]:[t]}function c(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;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var h=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d(t){return!a(t)||s(t)||t instanceof Date?t:t.value}function f(t){return a(t)&&!(t instanceof Array)}function p(t,e){e=(e||[]).slice();var n=i.map(t||[],(function(t,e){return{exist:t}}));return o(e,(function(t,i){if(a(t)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=t.id&&n[r].exist.id===t.id+"")return n[r].option=t,void(e[i]=null);for(r=0;r<n.length;r++){var o=n[r].exist;if(!n[r].option&&(null==o.id||null==t.id)&&null!=t.name&&!v(t)&&!v(o)&&o.name===t.name+"")return n[r].option=t,void(e[i]=null)}}})),o(e,(function(t,e){if(a(t)){for(var i=0;i<n.length;i++){var r=n[i].exist;if(!n[i].option&&!v(r)&&null==t.id){n[i].option=t;break}}i>=n.length&&n.push({option:t})}})),n}function g(t){var e=i.createHashMap();o(t,(function(t,n){var i=t.exist;i&&e.set(i.id,t)})),o(t,(function(t,n){var r=t.option;i.assert(!r||null==r.id||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})})),o(t,(function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(a(r)){if(o.name=null!=r.name?r.name+"":i?i.name:l+n,i)o.id=i.id;else if(null!=r.id)o.id=r.id+"";else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(e.get(o.id))}e.set(o.id,t)}}))}function m(t){var e=t.name;return!(!e||!e.indexOf(l))}function v(t){return a(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function y(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++)for(var o=t[i].seriesId,a=u(t[i].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var h=a[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function _(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?i.isArray(e.dataIndex)?i.map(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?i.isArray(e.name)?i.map(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function x(){var t="__\0ec_inner_"+b+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}var b=0;function w(t,e,n){if(i.isString(e)){var r={};r[e+"Index"]=0,e=r}var a=n&&n.defaultMainType;!a||S(e,a+"Index")||S(e,a+"Id")||S(e,a+"Name")||(e[a+"Index"]=0);var s={};return o(e,(function(r,o){r=e[o];if("dataIndex"!==o&&"dataIndexInside"!==o){var a=o.match(/^(\w+)(Index|Id|Name)$/)||[],l=a[1],u=(a[2]||"").toLowerCase();if(!(!l||!u||null==r||"index"===u&&"none"===r||n&&n.includeMainTypes&&i.indexOf(n.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===r||(c[u]=r);var h=t.queryComponents(c);s[l+"Models"]=h,s[l+"Model"]=h[0]}}else s[o]=r})),s}function S(t,e){return t&&t.hasOwnProperty(e)}function A(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function M(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function C(t){return"auto"===t?r.domSupported?"html":"richText":t||"html"}function I(t,e){var n=i.createHashMap(),r=[];return i.each(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}e.normalizeToArray=u,e.defaultEmphasis=c,e.TEXT_STYLE_OPTIONS=h,e.getDataItemValue=d,e.isDataItemOption=f,e.mappingToExists=p,e.makeIdAndName=g,e.isNameSpecified=m,e.isIdInner=v,e.compressBatches=y,e.queryDataIndex=_,e.makeInner=x,e.parseFinder=w,e.setAttribute=A,e.getAttribute=M,e.getTooltipRenderMode=C,e.groupData=I},44261:function(t,e,n){var i=n(95289),r=1e-4;function o(t){return t.replace(/^\s+|\s+$/g,"")}function a(t,e,n,i){var r=e[1]-e[0],o=n[1]-n[0];if(0===r)return 0===o?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]}function s(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return"string"===typeof t?o(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function l(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function u(t){return t.sort((function(t,e){return t-e})),t}function c(t){if(t=+t,isNaN(t))return 0;var e=1,n=0;while(Math.round(t*e)/e!==t)e*=10,n++;return n}function h(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function d(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 f(t,e,n){if(!t[e])return 0;var r=i.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var o=Math.pow(10,n),a=i.map(t,(function(t){return(isNaN(t)?0:t)/r*o*100})),s=100*o,l=i.map(a,(function(t){return Math.floor(t)})),u=i.reduce(l,(function(t,e){return t+e}),0),c=i.map(a,(function(t,e){return t-l[e]}));while(u<s){for(var h=Number.NEGATIVE_INFINITY,d=null,f=0,p=c.length;f<p;++f)c[f]>h&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[e]/o}var p=9007199254740991;function g(t){var e=2*Math.PI;return(t%e+e)%e}function m(t){return t>-r&&t<r}var v=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function y(t){if(t instanceof Date)return t;if("string"===typeof t){var e=v.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]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function _(t){return Math.pow(10,x(t))}function x(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 b(t,e){var n,i=x(t),r=Math.pow(10,i),o=t/r;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function w(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 S(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!==1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function A(t){return t-parseFloat(t)>=0}e.linearMap=a,e.parsePercent=s,e.round=l,e.asc=u,e.getPrecision=c,e.getPrecisionSafe=h,e.getPixelPrecision=d,e.getPercentWithPrecision=f,e.MAX_SAFE_INTEGER=p,e.remRadian=g,e.isRadianAroundZero=m,e.parseDate=y,e.quantity=_,e.quantityExponent=x,e.nice=b,e.quantile=w,e.reformIntervals=S,e.isNumeric=A},83759:function(t,e,n){var i=n(76442),r=i.extendShape,o=r({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u),g=c?u-l<2*Math.PI:l-u<2*Math.PI;g&&(t.moveTo(h*r+n,d*r+i),t.arc(h*s+n,d*s+i,a,-Math.PI+l,l,!c)),t.arc(n,i,o,l,u,!c),t.moveTo(f*o+n,p*o+i),t.arc(f*s+n,p*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&(t.arc(n,i,r,u,l,c),t.moveTo(h*r+n,p*r+i)),t.closePath()}});t.exports=o},22864:function(t,e,n){var i=n(95289),r=n(76442),o=n(39587),a=n(43407),s=a.calculateTextPosition,l=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),u=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),c=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-c+h*f,l+s+d*f,n-c,l+s),t.closePath()}}),h=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),d={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:u,pin:c,arrow:h,triangle:l},f={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},p={};i.each(d,(function(t,e){p[e]=new t}));var g=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=s(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=p[i];r||(i="rect",r=p[i]),f[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function m(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function v(t,e,n,i,a,s,l){var u,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),u=0===t.indexOf("image://")?r.makeImage(t.slice(8),new o(e,n,i,a),l?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new o(e,n,i,a),l?"center":"cover"):new g({shape:{symbolType:t,x:e,y:n,width:i,height:a}}),u.__isEmptyBrush=c,u.setColor=m,u.setColor(s),u}e.createSymbol=v},88336:function(t,e){var n="\0__throttleOriginMethod",i="\0__throttleRate",r="\0__throttleType";function o(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){i=(new Date).getTime(),o=this,a=arguments;var t=s||e,d=s||n;s=null,r=i-(d?l:u)-t,clearTimeout(c),d?c=setTimeout(h,t):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function a(t,e,a,s){var l=t[e];if(l){var u=l[n]||l,c=l[r],h=l[i];if(h!==a||c!==s){if(null==a||!s)return t[e]=u;l=t[e]=o(u,a,"debounce"===s),l[n]=u,l[r]=s,l[i]=a}return l}}function s(t,e){var i=t[e];i&&i[n]&&(t[e]=i[n])}e.throttle=o,e.createOrUpdate=a,e.clear=s},67955:function(t,e,n){var i=n(95289),r=i.each,o=n(75738),a=n(79865),s=n(11724),l=n(63199),u=n(76442),c=n(88545),h=c.createTask,d=n(59039),f=l.makeInner(),p=d();function g(){this.group=new o,this.uid=a.getUID("viewChart"),this.renderTask=h({plan:_,reset:x}),this.renderTask.context={view:this}}g.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){y(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){y(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var m=g.prototype;function v(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!u.isHighDownDispatcher(t)))for(var i=0,r=t.childCount();i<r;i++)v(t.childAt(i),e,n)}function y(t,e,n){var i=l.queryDataIndex(t,e),o=e&&null!=e.highlightKey?u.getHighlightDigit(e.highlightKey):null;null!=i?r(l.normalizeToArray(i),(function(e){v(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){v(t,n,o)}))}function _(t){return p(t.model)}function x(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&f(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),b[l]}m.updateView=m.updateLayout=m.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},s.enableClassExtend(g,["dispose"]),s.enableClassManagement(g,{registerWhenExtend:!0}),g.markUpdateMethod=function(t,e){f(t).updateMethod=e};var b={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},w=g;t.exports=w},18328:function(t,e,n){var i=n(75738),r=n(79865),o=n(11724),a=function(){this.group=new i,this.uid=r.getUID("viewComponent")};a.prototype={constructor:a,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};var s=a.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,n,i){},o.enableClassExtend(a),o.enableClassManagement(a,{registerWhenExtend:!0});var l=a;t.exports=l},65840:function(t){function e(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){var n=e();return n.indexOfName(t)>=0},this.indexOfName=function(e){var n=t();return n.indexOfName(e)},this.getItemVisual=function(e,n){var i=t();return i.getItemVisual(e,n)}}var n=e;t.exports=n},71576:function(t,e,n){var i=n(95289),r=n(56607),o=n(44261),a=o.linearMap,s=i.each,l=i.isObject,u=-1,c=function(t){var e=t.mappingMethod,n=t.type,r=this.option=i.clone(t);this.type=n,this.mappingMethod=e,this._normalizeData=S[e];var o=h[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._doMap=o._doMap[e],"piecewise"===e?(p(r),d(r)):"category"===e?r.categories?f(r):p(r,!0):(i.assert("linear"!==e||r.dataExtent),p(r))};c.prototype={constructor:c,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return i.bind(this._normalizeData,this)}};var h=c.visualHandlers={color:{applyVisual:v("color"),getColorMapper:function(){var t=this.option;return i.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),y.call(this,t)}:function(e,n,i){var o=!!i;return!n&&(e=this._normalizeData(e)),i=r.fastLerp(e,t.parsedVisual,i),o?i:r.stringify(i,"rgba")},this)},_doMap:{linear:function(t){return r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")},category:y,piecewise:function(t,e){var n=b.call(this,e);return null==n&&(n=r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:_}},colorHue:g((function(t,e){return r.modifyHSL(t,e)})),colorSaturation:g((function(t,e){return r.modifyHSL(t,null,e)})),colorLightness:g((function(t,e){return r.modifyHSL(t,null,null,e)})),colorAlpha:g((function(t,e){return r.modifyAlpha(t,e)})),opacity:{applyVisual:v("opacity"),_doMap:x([0,1])},liftZ:{applyVisual:v("liftZ"),_doMap:{linear:_,category:_,piecewise:_,fixed:_}},symbol:{applyVisual:function(t,e,n){var r=this.mapValueToVisual(t);if(i.isString(r))n("symbol",r);else if(l(r))for(var o in r)r.hasOwnProperty(o)&&n(o,r[o])},_doMap:{linear:m,category:y,piecewise:function(t,e){var n=b.call(this,e);return null==n&&(n=m.call(this,t)),n},fixed:_}},symbolSize:{applyVisual:v("symbolSize"),_doMap:x([0,1])}};function d(t){var e=t.pieceList;t.hasSpecialVisual=!1,i.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function f(t){var e=t.categories,n=t.visual,r=t.categoryMap={};if(s(e,(function(t,e){r[t]=e})),!i.isArray(n)){var o=[];i.isObject(n)?s(n,(function(t,e){var n=r[e];o[null!=n?n:u]=t})):o[u]=n,n=w(t,o)}for(var a=e.length-1;a>=0;a--)null==n[a]&&(delete r[e[a]],e.pop())}function p(t,e){var n=t.visual,r=[];i.isObject(n)?s(n,(function(t){r.push(t)})):null!=n&&r.push(n);var o={color:1,symbol:1};e||1!==r.length||o.hasOwnProperty(t.type)||(r[1]=r[0]),w(t,r)}function g(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:x([0,1])}}function m(t){var e=this.option.visual;return e[Math.round(a(t,[0,1],[0,e.length-1],!0))]||{}}function v(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function y(t){var e=this.option.visual;return e[this.option.loop&&t!==u?t%e.length:t]}function _(){return this.option.visual[0]}function x(t){return{linear:function(e){return a(e,t,this.option.visual,!0)},category:y,piecewise:function(e,n){var i=b.call(this,n);return null==i&&(i=a(e,t,this.option.visual,!0)),i},fixed:_}}function b(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=c.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function w(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=i.map(e,(function(t){return r.parse(t)}))),e}var S={linear:function(t){return a(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=c.findPieceIndex(t,e,!0);if(null!=n)return a(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?u:e},fixed:i.noop};function A(t,e,n){return t?e<=n:e<n}c.listVisualTypes=function(){var t=[];return i.each(h,(function(e,n){t.push(n)})),t},c.addVisualHandler=function(t,e){h[t]=e},c.isValidType=function(t){return h.hasOwnProperty(t)},c.eachVisual=function(t,e,n){i.isObject(t)?i.each(t,e,n):e.call(n,t)},c.mapVisual=function(t,e,n){var r,o=i.isArray(t)?[]:i.isObject(t)?{}:(r=!0,null);return c.eachVisual(t,(function(t,i){var a=e.call(n,t,i);r?o=a:o[i]=a})),o},c.retrieveVisuals=function(t){var e,n={};return t&&s(h,(function(i,r){t.hasOwnProperty(r)&&(n[r]=t[r],e=!0)})),e?n:null},c.prepareVisualTypes=function(t){if(l(t)){var e=[];s(t,(function(t,n){e.push(n)})),t=e}else{if(!i.isArray(t))return[];t=t.slice()}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},c.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},c.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||"string"===typeof s&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(A(c[1],t,u[1]))return o}else if(u[1]===1/0){if(A(c[0],u[0],t))return o}else if(A(c[0],u[0],t)&&A(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}};var M=c;t.exports=M},40949:function(t,e,n){var i=n(95289),r=n(49777),o=n(41834),a=o.retrieveRawValue;function s(t,e){var n=e.getModel("aria");if(n.get("show"))if(n.get("description"))t.setAttribute("aria-label",n.get("description"));else{var o=0;e.eachSeries((function(t,e){++o}),this);var s,l=n.get("data.maxCount")||10,u=n.get("series.maxCount")||10,c=Math.min(o,u);if(!(o<1)){var h=m();s=h?p(g("general.withTitle"),{title:h}):g("general.withoutTitle");var d=[],f=o>1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:o}),e.eachSeries((function(t,e){if(e<c){var n,i=t.get("name"),r="series."+(o>1?"multiple":"single")+".";n=g(i?r+"withName":r+"withoutName"),n=p(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:v(t.subType)});var s=t.getData();window.data=s,s.count()>l?n+=p(g("data.partialData"),{displayCnt:l}):n+=g("data.allData");for(var u=[],h=0;h<s.count();h++)if(h<l){var f=s.getName(h),m=a(s,h);u.push(p(g(f?"data.withName":"data.withoutName"),{name:f,value:m}))}n+=u.join(g("data.separator.middle"))+g("data.separator.end"),d.push(n)}})),s+=d.join(g("series.multiple.separator.middle"))+g("series.multiple.separator.end"),t.setAttribute("aria-label",s)}}function p(t,e){if("string"!==typeof t)return t;var n=t;return i.each(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function g(t){var e=n.get(t);if(null==e){for(var i=t.split("."),o=r.aria,a=0;a<i.length;++a)o=o[i[a]];return o}return e}function m(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}function v(t){return r.series.typeNames[t]||"自定义图"}}t.exports=s},5045:function(t,e,n){var i=n(95289),r=i.createHashMap;function o(t){return{getTargetSeries:function(e){var n={},i=r();return e.eachSeriesByType(t,(function(t){t.__paletteScope=n,i.set(t.uid,t)})),i},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(e){var o,a=i[e],s=null!=a&&r.getItemVisual(a,"color",!0),l=null!=a&&r.getItemVisual(a,"borderColor",!0);if(s&&l||(o=n.getItemModel(e)),!s){var u=o.get("itemStyle.color")||t.getColorFromPalette(n.getName(e)||e+"",t.__paletteScope,n.count());null!=a&&r.setItemVisual(a,"color",u)}if(!l){var c=o.get("itemStyle.borderColor");null!=a&&r.setItemVisual(a,"borderColor",c)}}))}}}t.exports=o},89414:function(t,e,n){var i=n(44696),r=n(95289),o=r.isFunction,a={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=(t.visualColorAccessPath||"itemStyle.color").split("."),a=t.get(r),s=!o(a)||a instanceof i?null:a;a&&!s||(a=t.getColorFromPalette(t.name,null,e.getSeriesCount())),n.setVisual("color",a);var l=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=t.get(l);if(n.setVisual("borderColor",u),!e.isSeriesFiltered(t)){s&&n.each((function(e){n.setItemVisual(e,"color",s(t.getDataParams(e)))}));var c=function(t,e){var n=t.getItemModel(e),i=n.get(r,!0),o=n.get(l,!0);null!=i&&t.setItemVisual(e,"color",i),null!=o&&t.setItemVisual(e,"borderColor",o)};return{dataEach:n.hasItemOption?c:null}}}};t.exports=a},39784:function(t,e,n){var i=n(95289),r=i.isFunction;function o(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,i,o){var a=t.getData(),s=t.get("symbol"),l=t.get("symbolSize"),u=t.get("symbolKeepAspect"),c=t.get("symbolRotate"),h=r(s),d=r(l),f=r(c),p=h||d||f,g=!h&&s?s:e,m=d?null:l;if(a.setVisual({legendSymbol:n||g,symbol:g,symbolSize:m,symbolKeepAspect:u,symbolRotate:c}),!i.isSeriesFiltered(t))return{dataEach:a.hasItemOption||p?v:null};function v(e,n){if(p){var i=t.getRawValue(n),r=t.getDataParams(n);h&&e.setItemVisual(n,"symbol",s(i,r)),d&&e.setItemVisual(n,"symbolSize",l(i,r)),f&&e.setItemVisual(n,"symbolRotate",c(i,r))}if(e.hasItemOption){var o=e.getItemModel(n),a=o.getShallow("symbol",!0),u=o.getShallow("symbolSize",!0),g=o.getShallow("symbolRotate",!0),m=o.getShallow("symbolKeepAspect",!0);null!=a&&e.setItemVisual(n,"symbol",a),null!=u&&e.setItemVisual(n,"symbolSize",u),null!=g&&e.setItemVisual(n,"symbolRotate",g),null!=m&&e.setItemVisual(n,"symbolKeepAspect",m)}}}}}t.exports=o},67759:function(t,e,n){var i=n(95289),r={get:function(t,e,n){var r=i.clone((o[t]||{})[e]);return n&&i.isArray(r)?r[r.length-1]:r}},o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},a=r;t.exports=a},63479:function(t,e,n){var i=n(95289),r=n(71576),o=i.each;function a(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function s(t,e,n){var a={};return o(e,(function(e){var l=a[e]=s();o(t[e],(function(t,o){if(r.isValidType(o)){var a={type:o,visual:t};n&&n(a,e),l[o]=new r(a),"opacity"===o&&(a=i.clone(a),a.type="colorAlpha",l.__hidden.__alphaForOpacity=new r(a))}}))})),a;function s(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function l(t,e,n){var r;i.each(n,(function(t){e.hasOwnProperty(t)&&a(e[t])&&(r=!0)})),r&&i.each(n,(function(n){e.hasOwnProperty(n)&&a(e[n])?t[n]=i.clone(e[n]):delete t[n]}))}function u(t,e,n,o,a,s){var l,u={};function c(t){return n.getItemVisual(l,t)}function h(t,e){n.setItemVisual(l,t,e)}function d(t,i){l=null==s?t:i;var r=n.getRawDataItem(l);if(!r||!1!==r.visualMap)for(var d=o.call(a,t),f=e[d],p=u[d],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(t,c,h)}}i.each(t,(function(t){var n=r.prepareVisualTypes(e[t]);u[t]=n})),null==s?n.each(d):n.each([s],d)}function c(t,e,n,o){var a={};function s(t,i){function r(t){return i.getItemVisual(l,t)}function s(t,e){i.setItemVisual(l,t,e)}var l;null!=o&&(o=i.getDimension(o));while(null!=(l=t.next())){var u=i.getRawDataItem(l);if(!u||!1!==u.visualMap)for(var c=null!=o?i.get(o,l,!0):l,h=n(c),d=e[h],f=a[h],p=0,g=f.length;p<g;p++){var m=f[p];d[m]&&d[m].applyVisual(c,r,s)}}}return i.each(t,(function(t){var n=r.prepareVisualTypes(e[t]);a[t]=n})),{progress:s}}e.createVisualMappings=s,e.replaceVisualOption=l,e.applyVisual=u,e.incrementalApplyVisual=c},30655:function(t,e,n){"use strict";var i=n(70453),r=i("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}t.exports=r},41237:function(t){"use strict";t.exports=EvalError},69383:function(t){"use strict";t.exports=Error},79290:function(t){"use strict";t.exports=RangeError},79538:function(t){"use strict";t.exports=ReferenceError},58068:function(t){"use strict";t.exports=SyntaxError},69675:function(t){"use strict";t.exports=TypeError},35345:function(t){"use strict";t.exports=URIError},82682:function(t,e,n){"use strict";var i=n(69600),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(t,e,n){for(var i=0,r=t.length;i<r;i++)o.call(t,i)&&(null==n?e(t[i],i,t):e.call(n,t[i],i,t))},s=function(t,e,n){for(var i=0,r=t.length;i<r;i++)null==n?e(t.charAt(i),i,t):e.call(n,t.charAt(i),i,t)},l=function(t,e,n){for(var i in t)o.call(t,i)&&(null==n?e(t[i],i,t):e.call(n,t[i],i,t))},u=function(t,e,n){if(!i(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===r.call(t)?a(t,e,o):"string"===typeof t?s(t,e,o):l(t,e,o)};t.exports=u},89353:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,i=Math.max,r="[object Function]",o=function(t,e){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var r=0;r<e.length;r+=1)n[r+t.length]=e[r];return n},a=function(t,e){for(var n=[],i=e||0,r=0;i<t.length;i+=1,r+=1)n[r]=t[i];return n},s=function(t,e){for(var n="",i=0;i<t.length;i+=1)n+=t[i],i+1<t.length&&(n+=e);return n};t.exports=function(t){var l=this;if("function"!==typeof l||n.apply(l)!==r)throw new TypeError(e+l);for(var u,c=a(arguments,1),h=function(){if(this instanceof u){var e=l.apply(this,o(c,arguments));return Object(e)===e?e:this}return l.apply(t,o(c,arguments))},d=i(0,l.length-c.length),f=[],p=0;p<d;p++)f[p]="$"+p;if(u=Function("binder","return function ("+s(f,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var g=function(){};g.prototype=l.prototype,u.prototype=new g,g.prototype=null}return u}},66743:function(t,e,n){"use strict";var i=n(89353);t.exports=Function.prototype.bind||i},74462:function(t){"use strict";var e=function(){return"string"===typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(r){n=null}e.functionsHaveConfigurableNames=function(){if(!e()||!n)return!1;var t=n((function(){}),"name");return!!t&&!!t.configurable};var i=Function.prototype.bind;e.boundFunctionsHaveNames=function(){return e()&&"function"===typeof i&&""!==function(){}.bind().name},t.exports=e},70453:function(t,e,n){"use strict";var i,r=n(69383),o=n(41237),a=n(79290),s=n(79538),l=n(58068),u=n(69675),c=n(35345),h=Function,d=function(t){try{return h('"use strict"; return ('+t+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(N){f=null}var p=function(){throw new u},g=f?function(){try{return p}catch(t){try{return f(arguments,"callee").get}catch(e){return p}}}():p,m=n(64039)(),v=n(80024)(),y=Object.getPrototypeOf||(v?function(t){return t.__proto__}:null),_={},x="undefined"!==typeof Uint8Array&&y?y(Uint8Array):i,b={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":m&&y?y([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"===typeof Atomics?i:Atomics,"%BigInt%":"undefined"===typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":_,"%Int8Array%":"undefined"===typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&y?y(y([][Symbol.iterator]())):i,"%JSON%":"object"===typeof JSON?JSON:i,"%Map%":"undefined"===typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&m&&y?y((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?i:Promise,"%Proxy%":"undefined"===typeof Proxy?i:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&m&&y?y((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&y?y(""[Symbol.iterator]()):i,"%Symbol%":m?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":x,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?i:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"===typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?i:WeakSet};if(y)try{null.error}catch(N){var w=y(y(N));b["%Error.prototype%"]=w}var S=function t(e){var n;if("%AsyncFunction%"===e)n=d("async function () {}");else if("%GeneratorFunction%"===e)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=d("async function* () {}");else if("%AsyncGenerator%"===e){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=t("%AsyncGenerator%");r&&y&&(n=y(r.prototype))}return b[e]=n,n},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=n(66743),C=n(9957),I=M.call(Function.call,Array.prototype.concat),T=M.call(Function.apply,Array.prototype.splice),E=M.call(Function.call,String.prototype.replace),D=M.call(Function.call,String.prototype.slice),P=M.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,O=function(t){var e=D(t,0,1),n=D(t,-1);if("%"===e&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return E(t,L,(function(t,e,n,r){i[i.length]=n?E(r,R,"$1"):e||t})),i},k=function(t,e){var n,i=t;if(C(A,i)&&(n=A[i],i="%"+n[0]+"%"),C(b,i)){var r=b[i];if(r===_&&(r=S(i)),"undefined"===typeof r&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new l("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,t))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=O(t),i=n.length>0?n[0]:"",r=k("%"+i+"%",e),o=r.name,a=r.value,s=!1,c=r.alias;c&&(i=c[0],T(n,I([0,1],c)));for(var h=1,d=!0;h<n.length;h+=1){var p=n[h],g=D(p,0,1),m=D(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&d||(s=!0),i+="."+p,o="%"+i+"%",C(b,o))a=b[o];else if(null!=a){if(!(p in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(f&&h+1>=n.length){var v=f(a,p);d=!!v,a=d&&"get"in v&&!("originalValue"in v.get)?v.get:a[p]}else d=C(a,p),a=a[p];d&&!s&&(b[o]=a)}}return a}},75795:function(t,e,n){"use strict";var i=n(70453),r=i("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}t.exports=r},29790:function(t){"use strict";var e="undefined"!==typeof BigInt&&BigInt;t.exports=function(){return"function"===typeof e&&"function"===typeof BigInt&&"bigint"===typeof e(42)&&"bigint"===typeof BigInt(42)}},30592:function(t,e,n){"use strict";var i=n(30655),r=function(){return!!i};r.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(t){return!0}},t.exports=r},80024:function(t){"use strict";var e={__proto__:null,foo:{}},n=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof n)}},64039:function(t,e,n){"use strict";var i="undefined"!==typeof Symbol&&Symbol,r=n(41333);t.exports=function(){return"function"===typeof i&&("function"===typeof Symbol&&("symbol"===typeof i("foo")&&("symbol"===typeof Symbol("bar")&&r())))}},41333:function(t){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var i=42;for(e in t[e]=i,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(o.value!==i||!0!==o.enumerable)return!1}return!0}},49092:function(t,e,n){"use strict";var i=n(41333);t.exports=function(){return i()&&!!Symbol.toStringTag}},9957:function(t,e,n){"use strict";var i=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=n(66743);t.exports=o.call(i,r)},20063:function(t,e,n){"use strict";var i=n(9957),r=n(920)(),o=n(69675),a={assert:function(t,e){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new o("`O` is not an object");if("string"!==typeof e)throw new o("`slot` must be a string");if(r.assert(t),!a.has(t,e))throw new o("`"+e+"` is not present on `O`")},get:function(t,e){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new o("`O` is not an object");if("string"!==typeof e)throw new o("`slot` must be a string");var n=r.get(t);return n&&n["$"+e]},has:function(t,e){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new o("`O` is not an object");if("string"!==typeof e)throw new o("`slot` must be a string");var n=r.get(t);return!!n&&i(n,"$"+e)},set:function(t,e,n){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new o("`O` is not an object");if("string"!==typeof e)throw new o("`slot` must be a string");var i=r.get(t);i||(i={},r.set(t,i)),i["$"+e]=n}};Object.freeze&&Object.freeze(a),t.exports=a},47244:function(t,e,n){"use strict";var i=n(49092)(),r=n(38075),o=r("Object.prototype.toString"),a=function(t){return!(i&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},s=function(t){return!!a(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=s,t.exports=l?a:s},84670:function(t,e,n){"use strict";var i=n(10487),r=n(38075),o=n(70453),a=o("%ArrayBuffer%",!0),s=r("ArrayBuffer.prototype.byteLength",!0),l=r("Object.prototype.toString"),u=!!a&&!s&&new a(0).slice,c=!!u&&i(u);t.exports=s||c?function(t){if(!t||"object"!==typeof t)return!1;try{return s?s(t):c(t,0),!0}catch(e){return!1}}:a?function(t){return"[object ArrayBuffer]"===l(t)}:function(t){return!1}},39803:function(t,e,n){"use strict";var i=n(29790)();if(i){var r=BigInt.prototype.valueOf,o=function(t){try{return r.call(t),!0}catch(e){}return!1};t.exports=function(t){return null!==t&&"undefined"!==typeof t&&"boolean"!==typeof t&&"string"!==typeof t&&"number"!==typeof t&&"symbol"!==typeof t&&"function"!==typeof t&&("bigint"===typeof t||o(t))}}else t.exports=function(t){return!1}},75128:function(t,e,n){"use strict";var i=n(38075),r=i("Boolean.prototype.toString"),o=i("Object.prototype.toString"),a=function(t){try{return r(t),!0}catch(e){return!1}},s="[object Boolean]",l=n(49092)();t.exports=function(t){return"boolean"===typeof t||null!==t&&"object"===typeof t&&(l&&Symbol.toStringTag in t?a(t):o(t)===s)}},69600:function(t){"use strict";var e,n,i=Function.prototype.toString,r="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof r&&"function"===typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},r((function(){throw 42}),null,e)}catch(_){_!==n&&(r=null)}else r=null;var o=/^\s*class\b/,a=function(t){try{var e=i.call(t);return o.test(e)}catch(n){return!1}},s=function(t){try{return!a(t)&&(i.call(t),!0)}catch(e){return!1}},l=Object.prototype.toString,u="[object Object]",c="[object Function]",h="[object GeneratorFunction]",d="[object HTMLAllCollection]",f="[object HTML document.all class]",p="[object HTMLCollection]",g="function"===typeof Symbol&&!!Symbol.toStringTag,m=!(0 in[,]),v=function(){return!1};if("object"===typeof document){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(t){if((m||!t)&&("undefined"===typeof t||"object"===typeof t))try{var e=l.call(t);return(e===d||e===f||e===p||e===u)&&null==t("")}catch(n){}return!1})}t.exports=r?function(t){if(v(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;try{r(t,null,e)}catch(i){if(i!==n)return!1}return!a(t)&&s(t)}:function(t){if(v(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if(g)return s(t);if(a(t))return!1;var e=l.call(t);return!(e!==c&&e!==h&&!/^\[object HTML/.test(e))&&s(t)}},62120:function(t,e,n){"use strict";var i=Date.prototype.getDay,r=function(t){try{return i.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,a="[object Date]",s=n(49092)();t.exports=function(t){return"object"===typeof t&&null!==t&&(s?r(t):o.call(t)===a)}},83802:function(t){"use strict";var e,n="function"===typeof Map&&Map.prototype?Map:null,i="function"===typeof Set&&Set.prototype?Set:null;n||(e=function(t){return!1});var r=n?Map.prototype.has:null,o=i?Set.prototype.has:null;e||r||(e=function(t){return!1}),t.exports=e||function(t){if(!t||"object"!==typeof t)return!1;try{if(r.call(t),o)try{o.call(t)}catch(e){return!0}return t instanceof n}catch(e){}return!1}},21703:function(t,e,n){"use strict";var i=Number.prototype.toString,r=function(t){try{return i.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,a="[object Number]",s=n(49092)();t.exports=function(t){return"number"===typeof t||"object"===typeof t&&(s?r(t):o.call(t)===a)}},14035:function(t,e,n){"use strict";var i,r,o,a,s=n(38075),l=n(49092)();if(l){i=s("Object.prototype.hasOwnProperty"),r=s("RegExp.prototype.exec"),o={};var u=function(){throw o};a={toString:u,valueOf:u},"symbol"===typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=u)}var c=s("Object.prototype.toString"),h=Object.getOwnPropertyDescriptor,d="[object RegExp]";t.exports=l?function(t){if(!t||"object"!==typeof t)return!1;var e=h(t,"lastIndex"),n=e&&i(e,"value");if(!n)return!1;try{r(t,a)}catch(s){return s===o}}:function(t){return!(!t||"object"!==typeof t&&"function"!==typeof t)&&c(t)===d}},90256:function(t){"use strict";var e,n="function"===typeof Map&&Map.prototype?Map:null,i="function"===typeof Set&&Set.prototype?Set:null;i||(e=function(t){return!1});var r=n?Map.prototype.has:null,o=i?Set.prototype.has:null;e||o||(e=function(t){return!1}),t.exports=e||function(t){if(!t||"object"!==typeof t)return!1;try{if(o.call(t),r)try{r.call(t)}catch(e){return!0}return t instanceof i}catch(e){}return!1}},37070:function(t,e,n){"use strict";var i=n(38075),r=i("SharedArrayBuffer.prototype.byteLength",!0);t.exports=r?function(t){if(!t||"object"!==typeof t)return!1;try{return r(t),!0}catch(e){return!1}}:function(t){return!1}},4761:function(t,e,n){"use strict";var i=String.prototype.valueOf,r=function(t){try{return i.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,a="[object String]",s=n(49092)();t.exports=function(t){return"string"===typeof t||"object"===typeof t&&(s?r(t):o.call(t)===a)}},93612:function(t,e,n){"use strict";var i=Object.prototype.toString,r=n(64039)();if(r){var o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,s=function(t){return"symbol"===typeof t.valueOf()&&a.test(o.call(t))};t.exports=function(t){if("symbol"===typeof t)return!0;if("[object Symbol]"!==i.call(t))return!1;try{return s(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},87842:function(t){"use strict";var e,n="function"===typeof WeakMap&&WeakMap.prototype?WeakMap:null,i="function"===typeof WeakSet&&WeakSet.prototype?WeakSet:null;n||(e=function(t){return!1});var r=n?n.prototype.has:null,o=i?i.prototype.has:null;e||r||(e=function(t){return!1}),t.exports=e||function(t){if(!t||"object"!==typeof t)return!1;try{if(r.call(t,r),o)try{o.call(t,o)}catch(e){return!0}return t instanceof n}catch(e){}return!1}},12648:function(t,e,n){"use strict";var i=n(70453),r=n(38075),o=i("%WeakSet%",!0),a=r("WeakSet.prototype.has",!0);if(a){var s=r("WeakMap.prototype.has",!0);t.exports=function(t){if(!t||"object"!==typeof t)return!1;try{if(a(t,a),s)try{s(t,s)}catch(e){return!0}return t instanceof o}catch(e){}return!1}}else t.exports=function(t){return!1}},64634:function(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},82488:function(){},58859:function(t,e,n){var i="function"===typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=i&&r&&"function"===typeof r.get?r.get:null,a=i&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"===typeof l.get?l.get:null,c=s&&Set.prototype.forEach,h="function"===typeof WeakMap&&WeakMap.prototype,d=h?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,g="function"===typeof WeakRef&&WeakRef.prototype,m=g?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,y=Object.prototype.toString,_=Function.prototype.toString,x=String.prototype.match,b=String.prototype.slice,w=String.prototype.replace,S=String.prototype.toUpperCase,A=String.prototype.toLowerCase,M=RegExp.prototype.test,C=Array.prototype.concat,I=Array.prototype.join,T=Array.prototype.slice,E=Math.floor,D="function"===typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,L="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"===typeof Symbol&&"object"===typeof Symbol.iterator,O="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R||"symbol")?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function F(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||M.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var i=t<0?-E(-t):E(t);if(i!==t){var r=String(i),o=b.call(e,r.length+1);return w.call(r,n,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(e,n,"$&_")}var z=n(42634),B=z.custom,G=$(B)?B:null;function V(t,e,n){var i="double"===(n.quoteStyle||e)?'"':"'";return i+t+i}function W(t){return w.call(String(t),/"/g,""")}function j(t){return"[object Array]"===tt(t)&&(!O||!("object"===typeof t&&O in t))}function H(t){return"[object Date]"===tt(t)&&(!O||!("object"===typeof t&&O in t))}function Y(t){return"[object RegExp]"===tt(t)&&(!O||!("object"===typeof t&&O in t))}function U(t){return"[object Error]"===tt(t)&&(!O||!("object"===typeof t&&O in t))}function X(t){return"[object String]"===tt(t)&&(!O||!("object"===typeof t&&O in t))}function Z(t){return"[object Number]"===tt(t)&&(!O||!("object"===typeof t&&O in t))}function q(t){return"[object Boolean]"===tt(t)&&(!O||!("object"===typeof t&&O in t))}function $(t){if(R)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!L)return!1;try{return L.call(t),!0}catch(e){}return!1}function K(t){if(!t||"object"!==typeof t||!D)return!1;try{return D.call(t),!0}catch(e){}return!1}t.exports=function t(e,i,r,s){var l=i||{};if(Q(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!Q(l,"customInspect")||l.customInspect;if("boolean"!==typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=l.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return ut(e,l);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var f=String(e);return d?F(e,f):f}if("bigint"===typeof e){var p=String(e)+"n";return d?F(e,p):p}var g="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof r&&(r=0),r>=g&&g>0&&"object"===typeof e)return j(e)?"[Array]":"[Object]";var m=gt(l,r);if("undefined"===typeof s)s=[];else if(nt(s,e)>=0)return"[Circular]";function y(e,n,i){if(n&&(s=T.call(s),s.push(n)),i){var o={depth:l.depth};return Q(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),t(e,o,r+1,s)}return t(e,l,r+1,s)}if("function"===typeof e&&!Y(e)){var _=et(e),x=vt(e,y);return"[Function"+(_?": "+_:" (anonymous)")+"]"+(x.length>0?" { "+I.call(x,", ")+" }":"")}if($(e)){var S=R?w.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(e);return"object"!==typeof e||R?S:ht(S)}if(lt(e)){for(var M="<"+A.call(String(e.nodeName)),E=e.attributes||[],P=0;P<E.length;P++)M+=" "+E[P].name+"="+V(W(E[P].value),"double",l);return M+=">",e.childNodes&&e.childNodes.length&&(M+="..."),M+="</"+A.call(String(e.nodeName))+">",M}if(j(e)){if(0===e.length)return"[]";var B=vt(e,y);return m&&!pt(B)?"["+mt(B,m)+"]":"[ "+I.call(B,", ")+" ]"}if(U(e)){var J=vt(e,y);return"cause"in Error.prototype||!("cause"in e)||k.call(e,"cause")?0===J.length?"["+String(e)+"]":"{ ["+String(e)+"] "+I.call(J,", ")+" }":"{ ["+String(e)+"] "+I.call(C.call("[cause]: "+y(e.cause),J),", ")+" }"}if("object"===typeof e&&h){if(G&&"function"===typeof e[G]&&z)return z(e,{depth:g-r});if("symbol"!==h&&"function"===typeof e.inspect)return e.inspect()}if(it(e)){var ct=[];return a&&a.call(e,(function(t,n){ct.push(y(n,e,!0)+" => "+y(t,e))})),ft("Map",o.call(e),ct,m)}if(at(e)){var yt=[];return c&&c.call(e,(function(t){yt.push(y(t,e))})),ft("Set",u.call(e),yt,m)}if(rt(e))return dt("WeakMap");if(st(e))return dt("WeakSet");if(ot(e))return dt("WeakRef");if(Z(e))return ht(y(Number(e)));if(K(e))return ht(y(D.call(e)));if(q(e))return ht(v.call(e));if(X(e))return ht(y(String(e)));if("undefined"!==typeof window&&e===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&e===globalThis||"undefined"!==typeof n.g&&e===n.g)return"{ [object globalThis] }";if(!H(e)&&!Y(e)){var _t=vt(e,y),xt=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object,bt=e instanceof Object?"":"null prototype",wt=!xt&&O&&Object(e)===e&&O in e?b.call(tt(e),8,-1):bt?"Object":"",St=xt||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"",At=St+(wt||bt?"["+I.call(C.call([],wt||[],bt||[]),": ")+"] ":"");return 0===_t.length?At+"{}":m?At+"{"+mt(_t,m)+"}":At+"{ "+I.call(_t,", ")+" }"}return String(e)};var J=Object.prototype.hasOwnProperty||function(t){return t in this};function Q(t,e){return J.call(t,e)}function tt(t){return y.call(t)}function et(t){if(t.name)return t.name;var e=x.call(_.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function nt(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}function it(t){if(!o||!t||"object"!==typeof t)return!1;try{o.call(t);try{u.call(t)}catch(e){return!0}return t instanceof Map}catch(n){}return!1}function rt(t){if(!d||!t||"object"!==typeof t)return!1;try{d.call(t,d);try{p.call(t,p)}catch(e){return!0}return t instanceof WeakMap}catch(n){}return!1}function ot(t){if(!m||!t||"object"!==typeof t)return!1;try{return m.call(t),!0}catch(e){}return!1}function at(t){if(!u||!t||"object"!==typeof t)return!1;try{u.call(t);try{o.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}function st(t){if(!p||!t||"object"!==typeof t)return!1;try{p.call(t,p);try{d.call(t,d)}catch(e){return!0}return t instanceof WeakSet}catch(n){}return!1}function lt(t){return!(!t||"object"!==typeof t)&&("undefined"!==typeof HTMLElement&&t instanceof HTMLElement||"string"===typeof t.nodeName&&"function"===typeof t.getAttribute)}function ut(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return ut(b.call(t,0,e.maxStringLength),e)+i}var r=w.call(w.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ct);return V(r,"single",e)}function ct(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+S.call(e.toString(16))}function ht(t){return"Object("+t+")"}function dt(t){return t+" { ? }"}function ft(t,e,n,i){var r=i?mt(n,i):I.call(n,", ");return t+" ("+e+") {"+r+"}"}function pt(t){for(var e=0;e<t.length;e++)if(nt(t[e],"\n")>=0)return!1;return!0}function gt(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=I.call(Array(t.indent+1)," ")}return{base:n,prev:I.call(Array(e+1),n)}}function mt(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+I.call(t,","+n)+"\n"+e.prev}function vt(t,e){var n=j(t),i=[];if(n){i.length=t.length;for(var r=0;r<t.length;r++)i[r]=Q(t,r)?e(t[r],t):""}var o,a="function"===typeof P?P(t):[];if(R){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in t)Q(t,l)&&(n&&String(Number(l))===l&&l<t.length||R&&o["$"+l]instanceof Symbol||(M.call(/[^\w$]/,l)?i.push(e(l,t)+": "+e(t[l],t)):i.push(l+": "+e(t[l],t))));if("function"===typeof P)for(var u=0;u<a.length;u++)k.call(t,a[u])&&i.push("["+e(a[u])+"]: "+e(t[a[u]],t));return i}},89211:function(t){"use strict";var e=function(t){return t!==t};t.exports=function(t,n){return 0===t&&0===n?1/t===1/n:t===n||!(!e(t)||!e(n))}},37653:function(t,e,n){"use strict";var i=n(38452),r=n(10487),o=n(89211),a=n(9394),s=n(36576),l=r(a(),Object);i(l,{getPolyfill:a,implementation:o,shim:s}),t.exports=l},9394:function(t,e,n){"use strict";var i=n(89211);t.exports=function(){return"function"===typeof Object.is?Object.is:i}},36576:function(t,e,n){"use strict";var i=n(9394),r=n(38452);t.exports=function(){var t=i();return r(Object,{is:t},{is:function(){return Object.is!==t}}),t}},28875:function(t,e,n){"use strict";var i;if(!Object.keys){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(1093),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"===typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"===typeof window[t])try{h(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(t){if("undefined"===typeof window||!f)return h(t);try{return h(t)}catch(e){return!1}};i=function(t){var e=null!==t&&"object"===typeof t,n="[object Function]"===o.call(t),i=a(t),s=e&&"[object String]"===o.call(t),h=[];if(!e&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var d=u&&n;if(s&&t.length>0&&!r.call(t,0))for(var f=0;f<t.length;++f)h.push(String(f));if(i&&t.length>0)for(var g=0;g<t.length;++g)h.push(String(g));else for(var m in t)d&&"prototype"===m||!r.call(t,m)||h.push(String(m));if(l)for(var v=p(t),y=0;y<c.length;++y)v&&"constructor"===c[y]||!r.call(t,c[y])||h.push(c[y]);return h}}t.exports=i},1189:function(t,e,n){"use strict";var i=Array.prototype.slice,r=n(1093),o=Object.keys,a=o?function(t){return o(t)}:n(28875),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return r(t)?s(i.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},1093:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),i="[object Arguments]"===n;return i||(i="[object Array]"!==n&&null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),i}},38403:function(t,e,n){"use strict";var i=n(1189),r=n(41333)(),o=n(38075),a=Object,s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),u=r?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var n=a(t);if(1===arguments.length)return n;for(var o=1;o<arguments.length;++o){var c=a(arguments[o]),h=i(c),d=r&&(Object.getOwnPropertySymbols||u);if(d)for(var f=d(c),p=0;p<f.length;++p){var g=f[p];l(c,g)&&s(h,g)}for(var m=0;m<h.length;++m){var v=h[m];if(l(c,v)){var y=c[v];n[v]=y}}}return n}},6525:function(t,e,n){"use strict";var i=n(38452),r=n(10487),o=n(38403),a=n(11514),s=n(40984),l=r.apply(a()),u=function(t,e){return l(Object,arguments)};i(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},11514:function(t,e,n){"use strict";var i=n(38403),r=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},i=0;i<e.length;++i)n[e[i]]=e[i];var r=Object.assign({},n),o="";for(var a in r)o+=a;return t!==o},o=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1};t.exports=function(){return Object.assign?r()||o()?i:Object.assign:i}},40984:function(t,e,n){"use strict";var i=n(38452),r=n(11514);t.exports=function(){var t=r();return i(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},76578:function(t){"use strict";t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},35341:function(t){!function(e,n){t.exports=n()}(0,(function(){"use strict";function t(t,i,r,o,a){!function t(n,i,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,l=i-r+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1),d=Math.max(r,Math.floor(i-l*c/s+h)),f=Math.min(o,Math.floor(i+(s-l)*c/s+h));t(n,i,d,f,a)}var p=n[i],g=r,m=o;for(e(n,r,i),a(n[o],p)>0&&e(n,r,o);g<m;){for(e(n,g,m),g++,m--;a(n[g],p)<0;)g++;for(;a(n[m],p)>0;)m--}0===a(n[r],p)?e(n,r,m):e(n,++m,o),m<=i&&(r=m+1),i<=m&&(o=m-1)}}(t,i,r||0,o||t.length-1,a||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return t<e?-1:t>e?1:0}var i=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,n,i,r){r||(r=p(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<n;o++){var a=t.children[o];s(r,t.leaf?i(a):a)}return r}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,n,i,r,o){for(var a=[n,i];a.length;)if(!((i=a.pop())-(n=a.pop())<=r)){var s=n+Math.ceil((i-n)/r/2)*r;t(e,s,n,i,o),a.push(n,s,s,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!f(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?i(a):a;f(t,s)&&(e.leaf?n.push(a):d(t,s)?this._all(a,n):r.push(a))}e=r.pop()}return n},i.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var n=[];e;){for(var i=0;i<e.children.length;i++){var r=e.children[i],o=e.leaf?this.toBBox(r):r;if(f(t,o)){if(e.leaf||d(t,o))return!0;n.push(r)}}e=n.pop()}return!1},i.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var i=this.data;this.data=n,n=i}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},i.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},i.prototype.clear=function(){return this.data=p([]),this},i.prototype.remove=function(t,e){if(!t)return this;for(var n,i,o,a=this.data,s=this.toBBox(t),l=[],u=[];a||l.length;){if(a||(a=l.pop(),i=l[l.length-1],n=u.pop(),o=!0),a.leaf){var c=r(t,a.children,e);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!d(a,s)?i?(n++,a=i.children[n],o=!1):a=null:(l.push(a),u.push(n),n=0,i=a,a=a.children[0])}return this},i.prototype.toBBox=function(t){return t},i.prototype.compareMinX=function(t,e){return t.minX-e.minX},i.prototype.compareMinY=function(t,e){return t.minY-e.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(t){return this.data=t,this},i.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},i.prototype._build=function(t,e,n,i){var r,a=n-e+1,s=this._maxEntries;if(a<=s)return o(r=p(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,i-1))),(r=p([])).leaf=!1,r.height=i;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));g(t,e,n,u,this.compareMinX);for(var c=e;c<=n;c+=u){var h=Math.min(c+u-1,n);g(t,c,h,l,this.compareMinY);for(var d=c;d<=h;d+=l){var f=Math.min(d+l-1,h);r.children.push(this._build(t,d,f,i-1))}}return o(r,this.toBBox),r},i.prototype._chooseSubtree=function(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){for(var r=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],u=c(l),h=(d=t,f=l,(Math.max(f.maxX,d.maxX)-Math.min(f.minX,d.minX))*(Math.max(f.maxY,d.maxY)-Math.min(f.minY,d.minY))-u);h<o?(o=h,r=u<r?u:r,a=l):h===o&&u<r&&(r=u,a=l)}e=a||e.children[0]}var d,f;return e},i.prototype._insert=function(t,e,n){var i=n?t:this.toBBox(t),r=[],o=this._chooseSubtree(i,this.data,e,r);for(o.children.push(t),s(o,i);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s=p(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(t,e){this.data=p([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,s,l,u,h,d=1/0,f=1/0,p=e;p<=n-e;p++){var g=a(t,0,p,this.toBBox),m=a(t,p,n,this.toBBox),v=(r=g,o=m,s=void 0,l=void 0,u=void 0,h=void 0,s=Math.max(r.minX,o.minX),l=Math.max(r.minY,o.minY),u=Math.min(r.maxX,o.maxX),h=Math.min(r.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,h-l)),y=c(g)+c(m);v<d?(d=v,i=p,f=y<f?y:f):v===d&&y<f&&(f=y,i=p)}return i||n-e},i.prototype._chooseSplitAxis=function(t,e,n){var i=t.leaf?this.compareMinX:l,r=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},i.prototype._allDistMargin=function(t,e,n,i){t.children.sort(i);for(var r=this.toBBox,o=a(t,0,e,r),l=a(t,n-e,n,r),u=h(o)+h(l),c=e;c<n-e;c++){var d=t.children[c];s(o,t.leaf?r(d):d),u+=h(o)}for(var f=n-e-1;f>=e;f--){var p=t.children[f];s(l,t.leaf?r(p):p),u+=h(l)}return u},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)s(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}))},77675:function(t,e,n){"use strict";var i=n(43206),r=n(69675),o=Object;t.exports=i((function(){if(null==this||this!==o(this))throw new r("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t}),"get flags",!0)},71589:function(t,e,n){"use strict";var i=n(38452),r=n(10487),o=n(77675),a=n(15330),s=n(43984),l=r(a());i(l,{getPolyfill:a,implementation:o,shim:s}),t.exports=l},15330:function(t,e,n){"use strict";var i=n(77675),r=n(38452).supportsDescriptors,o=Object.getOwnPropertyDescriptor;t.exports=function(){if(r&&"gim"===/a/gim.flags){var t=o(RegExp.prototype,"flags");if(t&&"function"===typeof t.get&&"boolean"===typeof RegExp.prototype.dotAll&&"boolean"===typeof RegExp.prototype.hasIndices){var e="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){e+="d"}}),Object.defineProperty(n,"sticky",{get:function(){e+="y"}}),"dy"===e)return t.get}}return i}},43984:function(t,e,n){"use strict";var i=n(38452).supportsDescriptors,r=n(15330),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,l=Object.getPrototypeOf,u=/a/;t.exports=function(){if(!i||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=r(),e=l(u),n=o(e,"flags");return n&&n.get===t||a(e,"flags",{configurable:!0,enumerable:!1,get:t}),t}},96897:function(t,e,n){"use strict";var i=n(70453),r=n(30041),o=n(30592)(),a=n(75795),s=n(69675),l=i("%Math.floor%");t.exports=function(t,e){if("function"!==typeof t)throw new s("`fn` is not a function");if("number"!==typeof e||e<0||e>4294967295||l(e)!==e)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,u=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(i=!1),c&&!c.writable&&(u=!1)}return(i||u||!n)&&(o?r(t,"length",e,!0,!0):r(t,"length",e)),t}},43206:function(t,e,n){"use strict";var i=n(30041),r=n(30592)(),o=n(74462).functionsHaveConfigurableNames(),a=n(69675);t.exports=function(t,e){if("function"!==typeof t)throw new a("`fn` is not a function");var n=arguments.length>2&&!!arguments[2];return n&&!o||(r?i(t,"name",e,!0,!0):i(t,"name",e)),t}},920:function(t,e,n){"use strict";var i=n(70453),r=n(38075),o=n(58859),a=n(69675),s=i("%WeakMap%",!0),l=i("%Map%",!0),u=r("WeakMap.prototype.get",!0),c=r("WeakMap.prototype.set",!0),h=r("WeakMap.prototype.has",!0),d=r("Map.prototype.get",!0),f=r("Map.prototype.set",!0),p=r("Map.prototype.has",!0),g=function(t,e){for(var n,i=t;null!==(n=i.next);i=n)if(n.key===e)return i.next=n.next,n.next=t.next,t.next=n,n},m=function(t,e){var n=g(t,e);return n&&n.value},v=function(t,e,n){var i=g(t,e);i?i.value=n:t.next={key:e,next:t.next,value:n}},y=function(t,e){return!!g(t,e)};t.exports=function(){var t,e,n,i={assert:function(t){if(!i.has(t))throw new a("Side channel does not contain "+o(t))},get:function(i){if(s&&i&&("object"===typeof i||"function"===typeof i)){if(t)return u(t,i)}else if(l){if(e)return d(e,i)}else if(n)return m(n,i)},has:function(i){if(s&&i&&("object"===typeof i||"function"===typeof i)){if(t)return h(t,i)}else if(l){if(e)return p(e,i)}else if(n)return y(n,i);return!1},set:function(i,r){s&&i&&("object"===typeof i||"function"===typeof i)?(t||(t=new s),c(t,i,r)):l?(e||(e=new l),f(e,i,r)):(n||(n={key:{},next:null}),v(n,i,r))}};return i}},81820:function(t,e,n){"use strict";var i=n(20063),r=SyntaxError,o="object"===typeof StopIteration?StopIteration:null;t.exports=function(t){if(!o)throw new r("this environment lacks StopIteration");i.set(t,"[[Done]]",!1);var e={next:function(){var t=i.get(this,"[[Iterator]]"),e=i.get(t,"[[Done]]");try{return{done:e,value:e?void 0:t.next()}}catch(n){if(i.set(t,"[[Done]]",!0),n!==o)throw n;return{done:!0,value:void 0}}}};return i.set(e,"[[Iterator]]",t),e}},85471:function(t,e,n){"use strict";n.d(e,{Ay:function(){return Ji}});
|
2
|
+
/*!
|
3
|
+
* Vue.js v2.7.16
|
4
|
+
* (c) 2014-2023 Evan You
|
5
|
+
* Released under the MIT License.
|
6
|
+
*/
|
7
|
+
var i=Object.freeze({}),r=Array.isArray;function o(t){return void 0===t||null===t}function a(t){return void 0!==t&&null!==t}function s(t){return!0===t}function l(t){return!1===t}function u(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return"function"===typeof t}function h(t){return null!==t&&"object"===typeof t}var d=Object.prototype.toString;function f(t){return"[object Object]"===d.call(t)}function p(t){return"[object RegExp]"===d.call(t)}function g(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function m(t){return a(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||f(t)&&t.toString===d?JSON.stringify(t,y,2):String(t)}function y(t,e){return e&&e.__v_isRef?e.value:e}function _(t){var e=parseFloat(t);return isNaN(e)?t:e}function x(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}x("slot,component",!0);var b=x("key,ref,slot,slot-scope,is");function w(t,e){var n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);var i=t.indexOf(e);if(i>-1)return t.splice(i,1)}}var S=Object.prototype.hasOwnProperty;function A(t,e){return S.call(t,e)}function M(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var C=/-(\w)/g,I=M((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),T=M((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),E=/\B([A-Z])/g,D=M((function(t){return t.replace(E,"-$1").toLowerCase()}));function P(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function L(t,e){return t.bind(e)}var R=Function.prototype.bind?L:P;function O(t,e){e=e||0;var n=t.length-e,i=new Array(n);while(n--)i[n]=t[n+e];return i}function k(t,e){for(var n in e)t[n]=e[n];return t}function N(t){for(var e={},n=0;n<t.length;n++)t[n]&&k(e,t[n]);return e}function F(t,e,n){}var z=function(t,e,n){return!1},B=function(t){return t};function G(t,e){if(t===e)return!0;var n=h(t),i=h(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every((function(t,n){return G(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return G(t[n],e[n])}))}catch(l){return!1}}function V(t,e){for(var n=0;n<t.length;n++)if(G(t[n],e))return n;return-1}function W(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function j(t,e){return t===e?0===t&&1/t!==1/e:t===t||e===e}var H="data-server-rendered",Y=["component","directive","filter"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],X={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:z,isReservedAttr:z,isUnknownElement:z,getTagNamespace:F,parsePlatformTagName:B,mustUseProp:z,async:!0,_lifecycleHooks:U},Z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function q(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function $(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var K=new RegExp("[^".concat(Z.source,".$_\\d]"));function J(t){if(!K.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Q="__proto__"in{},tt="undefined"!==typeof window,et=tt&&window.navigator.userAgent.toLowerCase(),nt=et&&/msie|trident/.test(et),it=et&&et.indexOf("msie 9.0")>0,rt=et&&et.indexOf("edge/")>0;et&&et.indexOf("android");var ot=et&&/iphone|ipad|ipod|ios/.test(et);et&&/chrome\/\d+/.test(et),et&&/phantomjs/.test(et);var at,st=et&&et.match(/firefox\/(\d+)/),lt={}.watch,ut=!1;if(tt)try{var ct={};Object.defineProperty(ct,"passive",{get:function(){ut=!0}}),window.addEventListener("test-passive",null,ct)}catch(Qa){}var ht=function(){return void 0===at&&(at=!tt&&"undefined"!==typeof n.g&&(n.g["process"]&&"server"===n.g["process"].env.VUE_ENV)),at},dt=tt&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ft(t){return"function"===typeof t&&/native code/.test(t.toString())}var pt,gt="undefined"!==typeof Symbol&&ft(Symbol)&&"undefined"!==typeof Reflect&&ft(Reflect.ownKeys);pt="undefined"!==typeof Set&&ft(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var mt=null;function vt(t){void 0===t&&(t=null),t||mt&&mt._scope.off(),mt=t,t&&t._scope.on()}var yt=function(){function t(t,e,n,i,r,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),_t=function(t){void 0===t&&(t="");var e=new yt;return e.text=t,e.isComment=!0,e};function xt(t){return new yt(void 0,void 0,void 0,String(t))}function bt(t){var e=new yt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}"function"===typeof SuppressedError&&SuppressedError;var wt=0,St=[],At=function(){for(var t=0;t<St.length;t++){var e=St[t];e.subs=e.subs.filter((function(t){return t})),e._pending=!1}St.length=0},Mt=function(){function t(){this._pending=!1,this.id=wt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,St.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var n=0,i=e.length;n<i;n++){var r=e[n];0,r.update()}},t}();Mt.target=null;var Ct=[];function It(t){Ct.push(t),Mt.target=t}function Tt(){Ct.pop(),Mt.target=Ct[Ct.length-1]}var Et=Array.prototype,Dt=Object.create(Et),Pt=["push","pop","shift","unshift","splice","sort","reverse"];Pt.forEach((function(t){var e=Et[t];$(Dt,t,(function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&a.observeArray(r),a.dep.notify(),o}))}));var Lt=Object.getOwnPropertyNames(Dt),Rt={},Ot=!0;function kt(t){Ot=t}var Nt={notify:F,depend:F,addSub:F,removeSub:F},Ft=function(){function t(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),this.value=t,this.shallow=e,this.mock=n,this.dep=n?Nt:new Mt,this.vmCount=0,$(t,"__ob__",this),r(t)){if(!n)if(Q)t.__proto__=Dt;else for(var i=0,o=Lt.length;i<o;i++){var a=Lt[i];$(t,a,Dt[a])}e||this.observeArray(t)}else{var s=Object.keys(t);for(i=0;i<s.length;i++){a=s[i];Bt(t,a,Rt,void 0,e,n)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)zt(t[e],!1,this.mock)},t}();function zt(t,e,n){return t&&A(t,"__ob__")&&t.__ob__ instanceof Ft?t.__ob__:!Ot||!n&&ht()||!r(t)&&!f(t)||!Object.isExtensible(t)||t.__v_skip||Ut(t)||t instanceof yt?void 0:new Ft(t,e,n)}function Bt(t,e,n,i,o,a,s){void 0===s&&(s=!1);var l=new Mt,u=Object.getOwnPropertyDescriptor(t,e);if(!u||!1!==u.configurable){var c=u&&u.get,h=u&&u.set;c&&!h||n!==Rt&&2!==arguments.length||(n=t[e]);var d=o?n&&n.__ob__:zt(n,!1,a);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=c?c.call(t):n;return Mt.target&&(l.depend(),d&&(d.dep.depend(),r(e)&&Wt(e))),Ut(e)&&!o?e.value:e},set:function(e){var i=c?c.call(t):n;if(j(i,e)){if(h)h.call(t,e);else{if(c)return;if(!o&&Ut(i)&&!Ut(e))return void(i.value=e);n=e}d=o?e&&e.__ob__:zt(e,!1,a),l.notify()}}}),l}}function Gt(t,e,n){if(!Yt(t)){var i=t.__ob__;return r(t)&&g(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),i&&!i.shallow&&i.mock&&zt(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isVue||i&&i.vmCount?n:i?(Bt(i.value,e,n,void 0,i.shallow,i.mock),i.dep.notify(),n):(t[e]=n,n)}}function Vt(t,e){if(r(t)&&g(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||Yt(t)||A(t,e)&&(delete t[e],n&&n.dep.notify())}}function Wt(t){for(var e=void 0,n=0,i=t.length;n<i;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),r(e)&&Wt(e)}function jt(t){return Ht(t,!0),$(t,"__v_isShallow",!0),t}function Ht(t,e){if(!Yt(t)){zt(t,e,ht());0}}function Yt(t){return!(!t||!t.__v_isReadonly)}function Ut(t){return!(!t||!0!==t.__v_isRef)}function Xt(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(Ut(t))return t.value;var i=t&&t.__ob__;return i&&i.dep.depend(),t},set:function(t){var i=e[n];Ut(i)&&!Ut(t)?i.value=t:e[n]=t}})}var Zt="watcher";"".concat(Zt," callback"),"".concat(Zt," getter"),"".concat(Zt," cleanup");var qt;var $t=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=qt,!t&&qt&&(this.index=(qt.scopes||(qt.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=qt;try{return qt=this,t()}finally{qt=e}}else 0},t.prototype.on=function(){qt=this},t.prototype.off=function(){qt=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}},t}();function Kt(t,e){void 0===e&&(e=qt),e&&e.active&&e.effects.push(t)}function Jt(){return qt}function Qt(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}var te=M((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var i="!"===t.charAt(0);return t=i?t.slice(1):t,{name:t,once:n,capture:i,passive:e}}));function ee(t,e){function n(){var t=n.fns;if(!r(t))return Ke(t,null,arguments,e,"v-on handler");for(var i=t.slice(),o=0;o<i.length;o++)Ke(i[o],null,arguments,e,"v-on handler")}return n.fns=t,n}function ne(t,e,n,i,r,a){var l,u,c,h;for(l in t)u=t[l],c=e[l],h=te(l),o(u)||(o(c)?(o(u.fns)&&(u=t[l]=ee(u,a)),s(h.once)&&(u=t[l]=r(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,t[l]=c));for(l in e)o(t[l])&&(h=te(l),i(h.name,e[l],h.capture))}function ie(t,e,n){var i;t instanceof yt&&(t=t.data.hook||(t.data.hook={}));var r=t[e];function l(){n.apply(this,arguments),w(i.fns,l)}o(r)?i=ee([l]):a(r.fns)&&s(r.merged)?(i=r,i.fns.push(l)):i=ee([r,l]),i.merged=!0,t[e]=i}function re(t,e,n){var i=e.options.props;if(!o(i)){var r={},s=t.attrs,l=t.props;if(a(s)||a(l))for(var u in i){var c=D(u);oe(r,l,u,c,!0)||oe(r,s,u,c,!1)}return r}}function oe(t,e,n,i,r){if(a(e)){if(A(e,n))return t[n]=e[n],r||delete e[n],!0;if(A(e,i))return t[n]=e[i],r||delete e[i],!0}return!1}function ae(t){for(var e=0;e<t.length;e++)if(r(t[e]))return Array.prototype.concat.apply([],t);return t}function se(t){return u(t)?[xt(t)]:r(t)?ue(t):void 0}function le(t){return a(t)&&a(t.text)&&l(t.isComment)}function ue(t,e){var n,i,l,c,h=[];for(n=0;n<t.length;n++)i=t[n],o(i)||"boolean"===typeof i||(l=h.length-1,c=h[l],r(i)?i.length>0&&(i=ue(i,"".concat(e||"","_").concat(n)),le(i[0])&&le(c)&&(h[l]=xt(c.text+i[0].text),i.shift()),h.push.apply(h,i)):u(i)?le(c)?h[l]=xt(c.text+i):""!==i&&h.push(xt(i)):le(i)&&le(c)?h[l]=xt(c.text+i.text):(s(t._isVList)&&a(i.tag)&&o(i.key)&&a(e)&&(i.key="__vlist".concat(e,"_").concat(n,"__")),h.push(i)));return h}function ce(t,e){var n,i,o,s,l=null;if(r(t)||"string"===typeof t)for(l=new Array(t.length),n=0,i=t.length;n<i;n++)l[n]=e(t[n],n);else if("number"===typeof t)for(l=new Array(t),n=0;n<t;n++)l[n]=e(n+1,n);else if(h(t))if(gt&&t[Symbol.iterator]){l=[];var u=t[Symbol.iterator](),c=u.next();while(!c.done)l.push(e(c.value,l.length)),c=u.next()}else for(o=Object.keys(t),l=new Array(o.length),n=0,i=o.length;n<i;n++)s=o[n],l[n]=e(t[s],s,n);return a(l)||(l=[]),l._isVList=!0,l}function he(t,e,n,i){var r,o=this.$scopedSlots[t];o?(n=n||{},i&&(n=k(k({},i),n)),r=o(n)||(c(e)?e():e)):r=this.$slots[t]||(c(e)?e():e);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},r):r}function de(t){return Mi(this.$options,"filters",t,!0)||B}function fe(t,e){return r(t)?-1===t.indexOf(e):t!==e}function pe(t,e,n,i,r){var o=X.keyCodes[e]||n;return r&&i&&!X.keyCodes[e]?fe(r,i):o?fe(o,t):i?D(i)!==e:void 0===t}function ge(t,e,n,i,o){if(n)if(h(n)){r(n)&&(n=N(n));var a=void 0,s=function(r){if("class"===r||"style"===r||b(r))a=t;else{var s=t.attrs&&t.attrs.type;a=i||X.mustUseProp(e,s,r)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=I(r),u=D(r);if(!(l in a)&&!(u in a)&&(a[r]=n[r],o)){var c=t.on||(t.on={});c["update:".concat(r)]=function(t){n[r]=t}}};for(var l in n)s(l)}else;return t}function me(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e||(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),ye(i,"__static__".concat(t),!1)),i}function ve(t,e,n){return ye(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function ye(t,e,n){if(r(t))for(var i=0;i<t.length;i++)t[i]&&"string"!==typeof t[i]&&_e(t[i],"".concat(e,"_").concat(i),n);else _e(t,e,n)}function _e(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function xe(t,e){if(e)if(f(e)){var n=t.on=t.on?k({},t.on):{};for(var i in e){var r=n[i],o=e[i];n[i]=r?[].concat(r,o):o}}else;return t}function be(t,e,n,i){e=e||{$stable:!n};for(var o=0;o<t.length;o++){var a=t[o];r(a)?be(a,e,n):a&&(a.proxy&&(a.fn.proxy=!0),e[a.key]=a.fn)}return i&&(e.$key=i),e}function we(t,e){for(var n=0;n<e.length;n+=2){var i=e[n];"string"===typeof i&&i&&(t[e[n]]=e[n+1])}return t}function Se(t,e){return"string"===typeof t?e+t:t}function Ae(t){t._o=ve,t._n=_,t._s=v,t._l=ce,t._t=he,t._q=G,t._i=V,t._m=me,t._f=de,t._k=pe,t._b=ge,t._v=xt,t._e=_t,t._u=be,t._g=xe,t._d=we,t._p=Se}function Me(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var o=t[i],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in n)n[u].every(Ce)&&delete n[u];return n}function Ce(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Ie(t){return t.isComment&&t.asyncFactory}function Te(t,e,n,r){var o,a=Object.keys(n).length>0,s=e?!!e.$stable:!a,l=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&r&&r!==i&&l===r.$key&&!a&&!r.$hasNormal)return r;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=Ee(t,n,u,e[u]))}else o={};for(var c in n)c in o||(o[c]=De(n,c));return e&&Object.isExtensible(e)&&(e._normalized=o),$(o,"$stable",s),$(o,"$key",l),$(o,"$hasNormal",a),o}function Ee(t,e,n,i){var o=function(){var e=mt;vt(t);var n=arguments.length?i.apply(null,arguments):i({});n=n&&"object"===typeof n&&!r(n)?[n]:se(n);var o=n&&n[0];return vt(e),n&&(!o||1===n.length&&o.isComment&&!Ie(o))?void 0:n};return i.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function De(t,e){return function(){return t[e]}}function Pe(t){var e=t.$options,n=e.setup;if(n){var i=t._setupContext=Le(t);vt(t),It();var r=Ke(n,null,[t._props||jt({}),i],t,"setup");if(Tt(),vt(),c(r))e.render=r;else if(h(r))if(t._setupState=r,r.__sfc){var o=t._setupProxy={};for(var a in r)"__sfc"!==a&&Xt(o,r,a)}else for(var a in r)q(a)||Xt(t,r,a);else 0}}function Le(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};$(e,"_v_attr_proxy",!0),Re(e,t.$attrs,i,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};Re(e,t.$listeners,i,t,"$listeners")}return t._listenersProxy},get slots(){return ke(t)},emit:R(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return Xt(t,e,n)}))}}}function Re(t,e,n,i,r){var o=!1;for(var a in e)a in t?e[a]!==n[a]&&(o=!0):(o=!0,Oe(t,a,i,r));for(var a in t)a in e||(o=!0,delete t[a]);return o}function Oe(t,e,n,i){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[i][e]}})}function ke(t){return t._slotsProxy||Ne(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function Ne(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function Fe(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=Me(e._renderChildren,r),t.$scopedSlots=n?Te(t.$parent,n.data.scopedSlots,t.$slots):i,t._c=function(e,n,i,r){return Ue(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return Ue(t,e,n,i,r,!0)};var o=n&&n.data;Bt(t,"$attrs",o&&o.attrs||i,null,!0),Bt(t,"$listeners",e._parentListeners||i,null,!0)}var ze=null;function Be(t){Ae(t.prototype),t.prototype.$nextTick=function(t){return cn(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,i=e._parentVnode;i&&t._isMounted&&(t.$scopedSlots=Te(t.$parent,i.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&Ne(t._slotsProxy,t.$scopedSlots)),t.$vnode=i;var o,a=mt,s=ze;try{vt(t),ze=t,o=n.call(t._renderProxy,t.$createElement)}catch(Qa){$e(Qa,t,"render"),o=t._vnode}finally{ze=s,vt(a)}return r(o)&&1===o.length&&(o=o[0]),o instanceof yt||(o=_t()),o.parent=i,o}}function Ge(t,e){return(t.__esModule||gt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),h(t)?e.extend(t):t}function Ve(t,e,n,i,r){var o=_t();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}function We(t,e){if(s(t.error)&&a(t.errorComp))return t.errorComp;if(a(t.resolved))return t.resolved;var n=ze;if(n&&a(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),s(t.loading)&&a(t.loadingComp))return t.loadingComp;if(n&&!a(t.owners)){var i=t.owners=[n],r=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return w(i,n)}));var c=function(t){for(var e=0,n=i.length;e<n;e++)i[e].$forceUpdate();t&&(i.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},d=W((function(n){t.resolved=Ge(n,e),r?i.length=0:c(!0)})),f=W((function(e){a(t.errorComp)&&(t.error=!0,c(!0))})),p=t(d,f);return h(p)&&(m(p)?o(t.resolved)&&p.then(d,f):m(p.component)&&(p.component.then(d,f),a(p.error)&&(t.errorComp=Ge(p.error,e)),a(p.loading)&&(t.loadingComp=Ge(p.loading,e),0===p.delay?t.loading=!0:l=setTimeout((function(){l=null,o(t.resolved)&&o(t.error)&&(t.loading=!0,c(!1))}),p.delay||200)),a(p.timeout)&&(u=setTimeout((function(){u=null,o(t.resolved)&&f(null)}),p.timeout)))),r=!1,t.loading?t.loadingComp:t.resolved}}function je(t){if(r(t))for(var e=0;e<t.length;e++){var n=t[e];if(a(n)&&(a(n.componentOptions)||Ie(n)))return n}}var He=1,Ye=2;function Ue(t,e,n,i,o,a){return(r(n)||u(n))&&(o=i,i=n,n=void 0),s(a)&&(o=Ye),Xe(t,e,n,i,o)}function Xe(t,e,n,i,o){if(a(n)&&a(n.__ob__))return _t();if(a(n)&&a(n.is)&&(e=n.is),!e)return _t();var s,l;if(r(i)&&c(i[0])&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),o===Ye?i=se(i):o===He&&(i=ae(i)),"string"===typeof e){var u=void 0;l=t.$vnode&&t.$vnode.ns||X.getTagNamespace(e),s=X.isReservedTag(e)?new yt(X.parsePlatformTagName(e),n,i,void 0,void 0,t):n&&n.pre||!a(u=Mi(t.$options,"components",e))?new yt(e,n,i,void 0,void 0,t):li(u,n,t,i,e)}else s=li(e,n,t,i);return r(s)?s:a(s)?(a(l)&&Ze(s,l),a(n)&&qe(n),s):_t()}function Ze(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),a(t.children))for(var i=0,r=t.children.length;i<r;i++){var l=t.children[i];a(l.tag)&&(o(l.ns)||s(n)&&"svg"!==l.tag)&&Ze(l,e,n)}}function qe(t){h(t.style)&&gn(t.style),h(t.class)&&gn(t.class)}function $e(t,e,n){It();try{if(e){var i=e;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var a=!1===r[o].call(i,t,e,n);if(a)return}catch(Qa){Je(Qa,i,"errorCaptured hook")}}}Je(t,e,n)}finally{Tt()}}function Ke(t,e,n,i,r){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&m(o)&&!o._handled&&(o.catch((function(t){return $e(t,i,r+" (Promise/async)")})),o._handled=!0)}catch(Qa){$e(Qa,i,r)}return o}function Je(t,e,n){if(X.errorHandler)try{return X.errorHandler.call(null,t,e,n)}catch(Qa){Qa!==t&&Qe(Qa,null,"config.errorHandler")}Qe(t,e,n)}function Qe(t,e,n){if(!tt||"undefined"===typeof console)throw t;console.error(t)}var tn,en=!1,nn=[],rn=!1;function on(){rn=!1;var t=nn.slice(0);nn.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ft(Promise)){var an=Promise.resolve();tn=function(){an.then(on),ot&&setTimeout(F)},en=!0}else if(nt||"undefined"===typeof MutationObserver||!ft(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())tn="undefined"!==typeof setImmediate&&ft(setImmediate)?function(){setImmediate(on)}:function(){setTimeout(on,0)};else{var sn=1,ln=new MutationObserver(on),un=document.createTextNode(String(sn));ln.observe(un,{characterData:!0}),tn=function(){sn=(sn+1)%2,un.data=String(sn)},en=!0}function cn(t,e){var n;if(nn.push((function(){if(t)try{t.call(e)}catch(Qa){$e(Qa,e,"nextTick")}else n&&n(e)})),rn||(rn=!0,tn()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}function hn(t){return function(e,n){if(void 0===n&&(n=mt),n)return dn(n,t,e)}}function dn(t,e,n){var i=t.$options;i[e]=vi(i[e],n)}hn("beforeMount"),hn("mounted"),hn("beforeUpdate"),hn("updated"),hn("beforeDestroy"),hn("destroyed"),hn("activated"),hn("deactivated"),hn("serverPrefetch"),hn("renderTracked"),hn("renderTriggered"),hn("errorCaptured");var fn="2.7.16";var pn=new pt;function gn(t){return mn(t,pn),pn.clear(),t}function mn(t,e){var n,i,o=r(t);if(!(!o&&!h(t)||t.__v_skip||Object.isFrozen(t)||t instanceof yt)){if(t.__ob__){var a=t.__ob__.dep.id;if(e.has(a))return;e.add(a)}if(o){n=t.length;while(n--)mn(t[n],e)}else if(Ut(t))mn(t.value,e);else{i=Object.keys(t),n=i.length;while(n--)mn(t[i[n]],e)}}}var vn,yn=0,_n=function(){function t(t,e,n,i,r){Kt(this,qt&&!qt._vm?qt:t?t._scope:void 0),(this.vm=t)&&r&&(t._watcher=this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++yn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new pt,this.newDepIds=new pt,this.expression="",c(e)?this.getter=e:(this.getter=J(e),this.getter||(this.getter=F)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;It(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Qa){if(!this.user)throw Qa;$e(Qa,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&gn(t),Tt(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Kn(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||h(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');Ke(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&w(this.vm._scope.effects,this),this.active){var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}();function xn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&An(t,e)}function bn(t,e){vn.$on(t,e)}function wn(t,e){vn.$off(t,e)}function Sn(t,e){var n=vn;return function i(){var r=e.apply(null,arguments);null!==r&&n.$off(t,i)}}function An(t,e,n){vn=t,ne(e,n||{},bn,wn,Sn,t),vn=void 0}function Mn(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(r(t))for(var o=0,a=t.length;o<a;o++)i.$on(t[o],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(r(t)){for(var i=0,o=t.length;i<o;i++)n.$off(t[i],e);return n}var a,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;var l=s.length;while(l--)if(a=s[l],a===e||a.fn===e){s.splice(l,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?O(n):n;for(var i=O(arguments,1),r='event handler for "'.concat(t,'"'),o=0,a=n.length;o<a;o++)Ke(n[o],e,i,e,r)}return e}}var Cn=null;function In(t){var e=Cn;return Cn=t,function(){Cn=e}}function Tn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function En(t){t.prototype._update=function(t,e){var n=this,i=n.$el,r=n._vnode,o=In(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n);var a=n;while(a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode)a.$parent.$el=a.$el,a=a.$parent},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){kn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||w(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),kn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Dn(t,e,n){var i;t.$el=e,t.$options.render||(t.$options.render=_t),kn(t,"beforeMount"),i=function(){t._update(t._render(),n)};var r={before:function(){t._isMounted&&!t._isDestroyed&&kn(t,"beforeUpdate")}};new _n(t,i,F,r,!0),n=!1;var o=t._preWatchers;if(o)for(var a=0;a<o.length;a++)o[a].run();return null==t.$vnode&&(t._isMounted=!0,kn(t,"mounted")),t}function Pn(t,e,n,r,o){var a=r.data.scopedSlots,s=t.$scopedSlots,l=!!(a&&!a.$stable||s!==i&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key),u=!!(o||t.$options._renderChildren||l),c=t.$vnode;t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o;var h=r.data.attrs||i;t._attrsProxy&&Re(t._attrsProxy,h,c.data&&c.data.attrs||i,t,"$attrs")&&(u=!0),t.$attrs=h,n=n||i;var d=t.$options._parentListeners;if(t._listenersProxy&&Re(t._listenersProxy,n,d||i,t,"$listeners"),t.$listeners=t.$options._parentListeners=n,An(t,n,d),e&&t.$options.props){kt(!1);for(var f=t._props,p=t.$options._propKeys||[],g=0;g<p.length;g++){var m=p[g],v=t.$options.props;f[m]=Ci(m,v,e,t)}kt(!0),t.$options.propsData=e}u&&(t.$slots=Me(o,r.context),t.$forceUpdate())}function Ln(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Rn(t,e){if(e){if(t._directInactive=!1,Ln(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Rn(t.$children[n]);kn(t,"activated")}}function On(t,e){if((!e||(t._directInactive=!0,!Ln(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)On(t.$children[n]);kn(t,"deactivated")}}function kn(t,e,n,i){void 0===i&&(i=!0),It();var r=mt,o=Jt();i&&vt(t);var a=t.$options[e],s="".concat(e," hook");if(a)for(var l=0,u=a.length;l<u;l++)Ke(a[l],t,n||null,t,s);t._hasHookEvent&&t.$emit("hook:"+e),i&&(vt(r),o&&o.on()),Tt()}var Nn=[],Fn=[],zn={},Bn=!1,Gn=!1,Vn=0;function Wn(){Vn=Nn.length=Fn.length=0,zn={},Bn=Gn=!1}var jn=0,Hn=Date.now;if(tt&&!nt){var Yn=window.performance;Yn&&"function"===typeof Yn.now&&Hn()>document.createEvent("Event").timeStamp&&(Hn=function(){return Yn.now()})}var Un=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Xn(){var t,e;for(jn=Hn(),Gn=!0,Nn.sort(Un),Vn=0;Vn<Nn.length;Vn++)t=Nn[Vn],t.before&&t.before(),e=t.id,zn[e]=null,t.run();var n=Fn.slice(),i=Nn.slice();Wn(),$n(n),Zn(i),At(),dt&&X.devtools&&dt.emit("flush")}function Zn(t){var e=t.length;while(e--){var n=t[e],i=n.vm;i&&i._watcher===n&&i._isMounted&&!i._isDestroyed&&kn(i,"updated")}}function qn(t){t._inactive=!1,Fn.push(t)}function $n(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Rn(t[e],!0)}function Kn(t){var e=t.id;if(null==zn[e]&&(t!==Mt.target||!t.noRecurse)){if(zn[e]=!0,Gn){var n=Nn.length-1;while(n>Vn&&Nn[n].id>t.id)n--;Nn.splice(n+1,0,t)}else Nn.push(t);Bn||(Bn=!0,cn(Xn))}}function Jn(t){var e=t.$options.provide;if(e){var n=c(e)?e.call(t):e;if(!h(n))return;for(var i=Qt(t),r=gt?Reflect.ownKeys(n):Object.keys(n),o=0;o<r.length;o++){var a=r[o];Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(n,a))}}}function Qn(t){var e=ti(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(n){Bt(t,n,e[n])})),kt(!0))}function ti(t,e){if(t){for(var n=Object.create(null),i=gt?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){var a=t[o].from;if(a in e._provided)n[o]=e._provided[a];else if("default"in t[o]){var s=t[o].default;n[o]=c(s)?s.call(e):s}else 0}}return n}}function ei(t,e,n,o,a){var l,u=this,c=a.options;A(o,"_uid")?(l=Object.create(o),l._original=o):(l=o,o=o._original);var h=s(c._compiled),d=!h;this.data=t,this.props=e,this.children=n,this.parent=o,this.listeners=t.on||i,this.injections=ti(c.inject,o),this.slots=function(){return u.$slots||Te(o,t.scopedSlots,u.$slots=Me(n,o)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Te(o,t.scopedSlots,this.slots())}}),h&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Te(o,t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,i){var a=Ue(l,t,e,n,i,d);return a&&!r(a)&&(a.fnScopeId=c._scopeId,a.fnContext=o),a}:this._c=function(t,e,n,i){return Ue(l,t,e,n,i,d)}}function ni(t,e,n,o,s){var l=t.options,u={},c=l.props;if(a(c))for(var h in c)u[h]=Ci(h,c,e||i);else a(n.attrs)&&ri(u,n.attrs),a(n.props)&&ri(u,n.props);var d=new ei(n,u,s,o,t),f=l.render.call(null,d._c,d);if(f instanceof yt)return ii(f,n,d.parent,l,d);if(r(f)){for(var p=se(f)||[],g=new Array(p.length),m=0;m<p.length;m++)g[m]=ii(p[m],n,d.parent,l,d);return g}}function ii(t,e,n,i,r){var o=bt(t);return o.fnContext=n,o.fnOptions=i,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function ri(t,e){for(var n in e)t[I(n)]=e[n]}function oi(t){return t.name||t.__name||t._componentTag}Ae(ei.prototype);var ai={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;ai.prepatch(n,n)}else{var i=t.componentInstance=ui(t,Cn);i.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,i=e.componentInstance=t.componentInstance;Pn(i,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,kn(n,"mounted")),t.data.keepAlive&&(e._isMounted?qn(n):Rn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?On(e,!0):e.$destroy())}},si=Object.keys(ai);function li(t,e,n,i,r){if(!o(t)){var l=n.$options._base;if(h(t)&&(t=l.extend(t)),"function"===typeof t){var u;if(o(t.cid)&&(u=t,t=We(u,l),void 0===t))return Ve(u,e,n,i,r);e=e||{},$i(t),a(e.model)&&di(t.options,e);var c=re(e,t,r);if(s(t.options.functional))return ni(t,c,e,n,i);var d=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var f=e.slot;e={},f&&(e.slot=f)}ci(e);var p=oi(t.options)||r,g=new yt("vue-component-".concat(t.cid).concat(p?"-".concat(p):""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:c,listeners:d,tag:r,children:i},u);return g}}}function ui(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;return a(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new t.componentOptions.Ctor(n)}function ci(t){for(var e=t.hook||(t.hook={}),n=0;n<si.length;n++){var i=si[n],r=e[i],o=ai[i];r===o||r&&r._merged||(e[i]=r?hi(o,r):o)}}function hi(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}function di(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),s=o[i],l=e.model.callback;a(s)?(r(s)?-1===s.indexOf(l):s!==l)&&(o[i]=[l].concat(s)):o[i]=l}var fi=F,pi=X.optionMergeStrategies;function gi(t,e,n){if(void 0===n&&(n=!0),!e)return t;for(var i,r,o,a=gt?Reflect.ownKeys(e):Object.keys(e),s=0;s<a.length;s++)i=a[s],"__ob__"!==i&&(r=t[i],o=e[i],n&&A(t,i)?r!==o&&f(r)&&f(o)&&gi(r,o):Gt(t,i,o));return t}function mi(t,e,n){return n?function(){var i=c(e)?e.call(n,n):e,r=c(t)?t.call(n,n):t;return i?gi(i,r):r}:e?t?function(){return gi(c(e)?e.call(this,this):e,c(t)?t.call(this,this):t)}:e:t}function vi(t,e){var n=e?t?t.concat(e):r(e)?e:[e]:t;return n?yi(n):n}function yi(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function _i(t,e,n,i){var r=Object.create(t||null);return e?k(r,e):r}pi.data=function(t,e,n){return n?mi(t,e,n):e&&"function"!==typeof e?t:mi(t,e)},U.forEach((function(t){pi[t]=vi})),Y.forEach((function(t){pi[t+"s"]=_i})),pi.watch=function(t,e,n,i){if(t===lt&&(t=void 0),e===lt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};for(var a in k(o,t),e){var s=o[a],l=e[a];s&&!r(s)&&(s=[s]),o[a]=s?s.concat(l):r(l)?l:[l]}return o},pi.props=pi.methods=pi.inject=pi.computed=function(t,e,n,i){if(!t)return e;var r=Object.create(null);return k(r,t),e&&k(r,e),r},pi.provide=function(t,e){return t?function(){var n=Object.create(null);return gi(n,c(t)?t.call(this):t),e&&gi(n,c(e)?e.call(this):e,!1),n}:e};var xi=function(t,e){return void 0===e?t:e};function bi(t,e){var n=t.props;if(n){var i,o,a,s={};if(r(n)){i=n.length;while(i--)o=n[i],"string"===typeof o&&(a=I(o),s[a]={type:null})}else if(f(n))for(var l in n)o=n[l],a=I(l),s[a]=f(o)?o:{type:o};else 0;t.props=s}}function wi(t,e){var n=t.inject;if(n){var i=t.inject={};if(r(n))for(var o=0;o<n.length;o++)i[n[o]]={from:n[o]};else if(f(n))for(var a in n){var s=n[a];i[a]=f(s)?k({from:a},s):{from:s}}else 0}}function Si(t){var e=t.directives;if(e)for(var n in e){var i=e[n];c(i)&&(e[n]={bind:i,update:i})}}function Ai(t,e,n){if(c(e)&&(e=e.options),bi(e,n),wi(e,n),Si(e),!e._base&&(e.extends&&(t=Ai(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=Ai(t,e.mixins[i],n);var o,a={};for(o in t)s(o);for(o in e)A(t,o)||s(o);function s(i){var r=pi[i]||xi;a[i]=r(t[i],e[i],n,i)}return a}function Mi(t,e,n,i){if("string"===typeof n){var r=t[e];if(A(r,n))return r[n];var o=I(n);if(A(r,o))return r[o];var a=T(o);if(A(r,a))return r[a];var s=r[n]||r[o]||r[a];return s}}function Ci(t,e,n,i){var r=e[t],o=!A(n,t),a=n[t],s=Pi(Boolean,r.type);if(s>-1)if(o&&!A(r,"default"))a=!1;else if(""===a||a===D(t)){var l=Pi(String,r.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=Ii(i,r,t);var u=Ot;kt(!0),zt(a),kt(u)}return a}function Ii(t,e,n){if(A(e,"default")){var i=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:c(i)&&"Function"!==Ei(e.type)?i.call(t):i}}var Ti=/^\s*function (\w+)/;function Ei(t){var e=t&&t.toString().match(Ti);return e?e[1]:""}function Di(t,e){return Ei(t)===Ei(e)}function Pi(t,e){if(!r(e))return Di(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(Di(e[n],t))return n;return-1}var Li={enumerable:!0,configurable:!0,get:F,set:F};function Ri(t,e,n){Li.get=function(){return this[e][n]},Li.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Li)}function Oi(t){var e=t.$options;if(e.props&&ki(t,e.props),Pe(t),e.methods&&ji(t,e.methods),e.data)Ni(t);else{var n=zt(t._data={});n&&n.vmCount++}e.computed&&Bi(t,e.computed),e.watch&&e.watch!==lt&&Hi(t,e.watch)}function ki(t,e){var n=t.$options.propsData||{},i=t._props=jt({}),r=t.$options._propKeys=[],o=!t.$parent;o||kt(!1);var a=function(o){r.push(o);var a=Ci(o,e,n,t);Bt(i,o,a,void 0,!0),o in t||Ri(t,"_props",o)};for(var s in e)a(s);kt(!0)}function Ni(t){var e=t.$options.data;e=t._data=c(e)?Fi(e,t):e||{},f(e)||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);while(r--){var o=n[r];0,i&&A(i,o)||q(o)||Ri(t,"_data",o)}var a=zt(e);a&&a.vmCount++}function Fi(t,e){It();try{return t.call(e,e)}catch(Qa){return $e(Qa,e,"data()"),{}}finally{Tt()}}var zi={lazy:!0};function Bi(t,e){var n=t._computedWatchers=Object.create(null),i=ht();for(var r in e){var o=e[r],a=c(o)?o:o.get;0,i||(n[r]=new _n(t,a||F,F,zi)),r in t||Gi(t,r,o)}}function Gi(t,e,n){var i=!ht();c(n)?(Li.get=i?Vi(e):Wi(n),Li.set=F):(Li.get=n.get?i&&!1!==n.cache?Vi(e):Wi(n.get):F,Li.set=n.set||F),Object.defineProperty(t,e,Li)}function Vi(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Mt.target&&e.depend(),e.value}}function Wi(t){return function(){return t.call(this,this)}}function ji(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?F:R(e[n],t)}function Hi(t,e){for(var n in e){var i=e[n];if(r(i))for(var o=0;o<i.length;o++)Yi(t,n,i[o]);else Yi(t,n,i)}}function Yi(t,e,n,i){return f(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,i)}function Ui(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Gt,t.prototype.$delete=Vt,t.prototype.$watch=function(t,e,n){var i=this;if(f(e))return Yi(i,t,e,n);n=n||{},n.user=!0;var r=new _n(i,t,e,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');It(),Ke(e,i,[r.value],i,o),Tt()}return function(){r.teardown()}}}var Xi=0;function Zi(t){t.prototype._init=function(t){var e=this;e._uid=Xi++,e._isVue=!0,e.__v_skip=!0,e._scope=new $t(!0),e._scope.parent=void 0,e._scope._vm=!0,t&&t._isComponent?qi(e,t):e.$options=Ai($i(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Tn(e),xn(e),Fe(e),kn(e,"beforeCreate",void 0,!1),Qn(e),Oi(e),Jn(e),kn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function qi(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function $i(t){var e=t.options;if(t.super){var n=$i(t.super),i=t.superOptions;if(n!==i){t.superOptions=n;var r=Ki(t);r&&k(t.extendOptions,r),e=t.options=Ai(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Ki(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}function Ji(t){this._init(t)}function Qi(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=O(arguments,1);return n.unshift(this),c(t.install)?t.install.apply(t,n):c(t)&&t.apply(null,n),e.push(t),this}}function tr(t){t.mixin=function(t){return this.options=Ai(this.options,t),this}}function er(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=oi(t)||oi(n.options);var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Ai(n.options,t),a["super"]=n,a.options.props&&nr(a),a.options.computed&&ir(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Y.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=k({},a.options),r[i]=a,a}}function nr(t){var e=t.options.props;for(var n in e)Ri(t.prototype,"_props",n)}function ir(t){var e=t.options.computed;for(var n in e)Gi(t.prototype,n,e[n])}function rr(t){Y.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&f(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&c(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function or(t){return t&&(oi(t.Ctor.options)||t.tag)}function ar(t,e){return r(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!p(t)&&t.test(e)}function sr(t,e){var n=t.cache,i=t.keys,r=t._vnode,o=t.$vnode;for(var a in n){var s=n[a];if(s){var l=s.name;l&&!e(l)&&lr(n,a,i,r)}}o.componentOptions.children=void 0}function lr(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,w(n,e)}Zi(Ji),Ui(Ji),Mn(Ji),En(Ji),Be(Ji);var ur=[String,RegExp,Array],cr={name:"keep-alive",abstract:!0,props:{include:ur,exclude:ur,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,i=t.vnodeToCache,r=t.keyToCache;if(i){var o=i.tag,a=i.componentInstance,s=i.componentOptions;e[r]={name:or(s),tag:o,componentInstance:a},n.push(r),this.max&&n.length>parseInt(this.max)&&lr(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)lr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){sr(t,(function(t){return ar(e,t)}))})),this.$watch("exclude",(function(e){sr(t,(function(t){return!ar(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=je(t),n=e&&e.componentOptions;if(n){var i=or(n),r=this,o=r.include,a=r.exclude;if(o&&(!i||!ar(o,i))||a&&i&&ar(a,i))return e;var s=this,l=s.cache,u=s.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;l[c]?(e.componentInstance=l[c].componentInstance,w(u,c),u.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}},hr={KeepAlive:cr};function dr(t){var e={get:function(){return X}};Object.defineProperty(t,"config",e),t.util={warn:fi,extend:k,mergeOptions:Ai,defineReactive:Bt},t.set=Gt,t.delete=Vt,t.nextTick=cn,t.observable=function(t){return zt(t),t},t.options=Object.create(null),Y.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,k(t.options.components,hr),Qi(t),tr(t),er(t),rr(t)}dr(Ji),Object.defineProperty(Ji.prototype,"$isServer",{get:ht}),Object.defineProperty(Ji.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ji,"FunctionalRenderContext",{value:ei}),Ji.version=fn;var fr=x("style,class"),pr=x("input,textarea,option,select,progress"),gr=function(t,e,n){return"value"===n&&pr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},mr=x("contenteditable,draggable,spellcheck"),vr=x("events,caret,typing,plaintext-only"),yr=function(t,e){return Sr(e)||"false"===e?"false":"contenteditable"===t&&vr(e)?e:"true"},_r=x("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),xr="http://www.w3.org/1999/xlink",br=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},wr=function(t){return br(t)?t.slice(6,t.length):""},Sr=function(t){return null==t||!1===t};function Ar(t){var e=t.data,n=t,i=t;while(a(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(e=Mr(i.data,e));while(a(n=n.parent))n&&n.data&&(e=Mr(e,n.data));return Cr(e.staticClass,e.class)}function Mr(t,e){return{staticClass:Ir(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function Cr(t,e){return a(t)||a(e)?Ir(t,Tr(e)):""}function Ir(t,e){return t?e?t+" "+e:t:e||""}function Tr(t){return Array.isArray(t)?Er(t):h(t)?Dr(t):"string"===typeof t?t:""}function Er(t){for(var e,n="",i=0,r=t.length;i<r;i++)a(e=Tr(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function Dr(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var Pr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Lr=x("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Rr=x("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Or=function(t){return Lr(t)||Rr(t)};function kr(t){return Rr(t)?"svg":"math"===t?"math":void 0}var Nr=Object.create(null);function Fr(t){if(!tt)return!0;if(Or(t))return!1;if(t=t.toLowerCase(),null!=Nr[t])return Nr[t];var e=document.createElement(t);return t.indexOf("-")>-1?Nr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Nr[t]=/HTMLUnknownElement/.test(e.toString())}var zr=x("text,number,password,search,email,tel,url");function Br(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function Gr(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Vr(t,e){return document.createElementNS(Pr[t],e)}function Wr(t){return document.createTextNode(t)}function jr(t){return document.createComment(t)}function Hr(t,e,n){t.insertBefore(e,n)}function Yr(t,e){t.removeChild(e)}function Ur(t,e){t.appendChild(e)}function Xr(t){return t.parentNode}function Zr(t){return t.nextSibling}function qr(t){return t.tagName}function $r(t,e){t.textContent=e}function Kr(t,e){t.setAttribute(e,"")}var Jr=Object.freeze({__proto__:null,createElement:Gr,createElementNS:Vr,createTextNode:Wr,createComment:jr,insertBefore:Hr,removeChild:Yr,appendChild:Ur,parentNode:Xr,nextSibling:Zr,tagName:qr,setTextContent:$r,setStyleScope:Kr}),Qr={create:function(t,e){to(e)},update:function(t,e){t.data.ref!==e.data.ref&&(to(t,!0),to(e))},destroy:function(t){to(t,!0)}};function to(t,e){var n=t.data.ref;if(a(n)){var i=t.context,o=t.componentInstance||t.elm,s=e?null:o,l=e?void 0:o;if(c(n))Ke(n,i,[s],i,"template ref function");else{var u=t.data.refInFor,h="string"===typeof n||"number"===typeof n,d=Ut(n),f=i.$refs;if(h||d)if(u){var p=h?f[n]:n.value;e?r(p)&&w(p,o):r(p)?p.includes(o)||p.push(o):h?(f[n]=[o],eo(i,n,f[n])):n.value=[o]}else if(h){if(e&&f[n]!==o)return;f[n]=l,eo(i,n,s)}else if(d){if(e&&n.value!==o)return;n.value=s}else 0}}}function eo(t,e,n){var i=t._setupState;i&&A(i,e)&&(Ut(i[e])?i[e].value=n:i[e]=n)}var no=new yt("",{},[]),io=["create","activate","update","remove","destroy"];function ro(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&a(t.data)===a(e.data)&&oo(t,e)||s(t.isAsyncPlaceholder)&&o(e.asyncFactory.error))}function oo(t,e){if("input"!==t.tag)return!0;var n,i=a(n=t.data)&&a(n=n.attrs)&&n.type,r=a(n=e.data)&&a(n=n.attrs)&&n.type;return i===r||zr(i)&&zr(r)}function ao(t,e,n){var i,r,o={};for(i=e;i<=n;++i)r=t[i].key,a(r)&&(o[r]=i);return o}function so(t){var e,n,i={},l=t.modules,c=t.nodeOps;for(e=0;e<io.length;++e)for(i[io[e]]=[],n=0;n<l.length;++n)a(l[n][io[e]])&&i[io[e]].push(l[n][io[e]]);function h(t){return new yt(c.tagName(t).toLowerCase(),{},[],void 0,t)}function d(t,e){function n(){0===--n.listeners&&f(t)}return n.listeners=e,n}function f(t){var e=c.parentNode(t);a(e)&&c.removeChild(e,t)}function p(t,e,n,i,r,o,l){if(a(t.elm)&&a(o)&&(t=o[l]=bt(t)),t.isRootInsert=!r,!g(t,e,n,i)){var u=t.data,h=t.children,d=t.tag;a(d)?(t.elm=t.ns?c.createElementNS(t.ns,d):c.createElement(d,t),S(t),_(t,h,e),a(u)&&w(t,e),y(n,t.elm,i)):s(t.isComment)?(t.elm=c.createComment(t.text),y(n,t.elm,i)):(t.elm=c.createTextNode(t.text),y(n,t.elm,i))}}function g(t,e,n,i){var r=t.data;if(a(r)){var o=a(t.componentInstance)&&r.keepAlive;if(a(r=r.hook)&&a(r=r.init)&&r(t,!1),a(t.componentInstance))return m(t,e),y(n,t.elm,i),s(o)&&v(t,e,n,i),!0}}function m(t,e){a(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,b(t)?(w(t,e),S(t)):(to(t),e.push(t))}function v(t,e,n,r){var o,s=t;while(s.componentInstance)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<i.activate.length;++o)i.activate[o](no,s);e.push(s);break}y(n,t.elm,r)}function y(t,e,n){a(t)&&(a(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function _(t,e,n){if(r(e)){0;for(var i=0;i<e.length;++i)p(e[i],n,t.elm,null,!0,e,i)}else u(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function b(t){while(t.componentInstance)t=t.componentInstance._vnode;return a(t.tag)}function w(t,n){for(var r=0;r<i.create.length;++r)i.create[r](no,t);e=t.data.hook,a(e)&&(a(e.create)&&e.create(no,t),a(e.insert)&&n.push(t))}function S(t){var e;if(a(e=t.fnScopeId))c.setStyleScope(t.elm,e);else{var n=t;while(n)a(e=n.context)&&a(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent}a(e=Cn)&&e!==t.context&&e!==t.fnContext&&a(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function A(t,e,n,i,r,o){for(;i<=r;++i)p(n[i],o,t,e,!1,n,i)}function M(t){var e,n,r=t.data;if(a(r))for(a(e=r.hook)&&a(e=e.destroy)&&e(t),e=0;e<i.destroy.length;++e)i.destroy[e](t);if(a(e=t.children))for(n=0;n<t.children.length;++n)M(t.children[n])}function C(t,e,n){for(;e<=n;++e){var i=t[e];a(i)&&(a(i.tag)?(I(i),M(i)):f(i.elm))}}function I(t,e){if(a(e)||a(t.data)){var n,r=i.remove.length+1;for(a(e)?e.listeners+=r:e=d(t.elm,r),a(n=t.componentInstance)&&a(n=n._vnode)&&a(n.data)&&I(n,e),n=0;n<i.remove.length;++n)i.remove[n](t,e);a(n=t.data.hook)&&a(n=n.remove)?n(t,e):e()}else f(t.elm)}function T(t,e,n,i,r){var s,l,u,h,d=0,f=0,g=e.length-1,m=e[0],v=e[g],y=n.length-1,_=n[0],x=n[y],b=!r;while(d<=g&&f<=y)o(m)?m=e[++d]:o(v)?v=e[--g]:ro(m,_)?(D(m,_,i,n,f),m=e[++d],_=n[++f]):ro(v,x)?(D(v,x,i,n,y),v=e[--g],x=n[--y]):ro(m,x)?(D(m,x,i,n,y),b&&c.insertBefore(t,m.elm,c.nextSibling(v.elm)),m=e[++d],x=n[--y]):ro(v,_)?(D(v,_,i,n,f),b&&c.insertBefore(t,v.elm,m.elm),v=e[--g],_=n[++f]):(o(s)&&(s=ao(e,d,g)),l=a(_.key)?s[_.key]:E(_,e,d,g),o(l)?p(_,i,t,m.elm,!1,n,f):(u=e[l],ro(u,_)?(D(u,_,i,n,f),e[l]=void 0,b&&c.insertBefore(t,u.elm,m.elm)):p(_,i,t,m.elm,!1,n,f)),_=n[++f]);d>g?(h=o(n[y+1])?null:n[y+1].elm,A(t,h,n,f,y,i)):f>y&&C(e,d,g)}function E(t,e,n,i){for(var r=n;r<i;r++){var o=e[r];if(a(o)&&ro(t,o))return r}}function D(t,e,n,r,l,u){if(t!==e){a(e.elm)&&a(r)&&(e=r[l]=bt(e));var h=e.elm=t.elm;if(s(t.isAsyncPlaceholder))a(e.asyncFactory.resolved)?R(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,f=e.data;a(f)&&a(d=f.hook)&&a(d=d.prepatch)&&d(t,e);var p=t.children,g=e.children;if(a(f)&&b(e)){for(d=0;d<i.update.length;++d)i.update[d](t,e);a(d=f.hook)&&a(d=d.update)&&d(t,e)}o(e.text)?a(p)&&a(g)?p!==g&&T(h,p,g,n,u):a(g)?(a(t.text)&&c.setTextContent(h,""),A(h,null,g,0,g.length-1,n)):a(p)?C(p,0,p.length-1):a(t.text)&&c.setTextContent(h,""):t.text!==e.text&&c.setTextContent(h,e.text),a(f)&&a(d=f.hook)&&a(d=d.postpatch)&&d(t,e)}}}function P(t,e,n){if(s(n)&&a(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var L=x("attrs,class,staticClass,staticStyle,key");function R(t,e,n,i){var r,o=e.tag,l=e.data,u=e.children;if(i=i||l&&l.pre,e.elm=t,s(e.isComment)&&a(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(a(l)&&(a(r=l.hook)&&a(r=r.init)&&r(e,!0),a(r=e.componentInstance)))return m(e,n),!0;if(a(o)){if(a(u))if(t.hasChildNodes())if(a(r=l)&&a(r=r.domProps)&&a(r=r.innerHTML)){if(r!==t.innerHTML)return!1}else{for(var c=!0,h=t.firstChild,d=0;d<u.length;d++){if(!h||!R(h,u[d],n,i)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else _(e,u,n);if(a(l)){var f=!1;for(var p in l)if(!L(p)){f=!0,w(e,n);break}!f&&l["class"]&&gn(l["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,r){if(!o(e)){var l=!1,u=[];if(o(t))l=!0,p(e,u);else{var d=a(t.nodeType);if(!d&&ro(t,e))D(t,e,u,null,null,r);else{if(d){if(1===t.nodeType&&t.hasAttribute(H)&&(t.removeAttribute(H),n=!0),s(n)&&R(t,e,u))return P(e,u,!0),t;t=h(t)}var f=t.elm,g=c.parentNode(f);if(p(e,u,f._leaveCb?null:g,c.nextSibling(f)),a(e.parent)){var m=e.parent,v=b(e);while(m){for(var y=0;y<i.destroy.length;++y)i.destroy[y](m);if(m.elm=e.elm,v){for(var _=0;_<i.create.length;++_)i.create[_](no,m);var x=m.data.hook.insert;if(x.merged)for(var w=x.fns.slice(1),S=0;S<w.length;S++)w[S]()}else to(m);m=m.parent}}a(g)?C([t],0,0):a(t.tag)&&M(t)}}return P(e,u,l),e.elm}a(t)&&M(t)}}var lo={create:uo,update:uo,destroy:function(t){uo(t,no)}};function uo(t,e){(t.data.directives||e.data.directives)&&co(t,e)}function co(t,e){var n,i,r,o=t===no,a=e===no,s=fo(t.data.directives,t.context),l=fo(e.data.directives,e.context),u=[],c=[];for(n in l)i=s[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,go(r,"update",e,t),r.def&&r.def.componentUpdated&&c.push(r)):(go(r,"bind",e,t),r.def&&r.def.inserted&&u.push(r));if(u.length){var h=function(){for(var n=0;n<u.length;n++)go(u[n],"inserted",e,t)};o?ie(e,"insert",h):h()}if(c.length&&ie(e,"postpatch",(function(){for(var n=0;n<c.length;n++)go(c[n],"componentUpdated",e,t)})),!o)for(n in s)l[n]||go(s[n],"unbind",t,t,a)}var ho=Object.create(null);function fo(t,e){var n,i,r=Object.create(null);if(!t)return r;for(n=0;n<t.length;n++){if(i=t[n],i.modifiers||(i.modifiers=ho),r[po(i)]=i,e._setupState&&e._setupState.__sfc){var o=i.def||Mi(e,"_setupState","v-"+i.name);i.def="function"===typeof o?{bind:o,update:o}:o}i.def=i.def||Mi(e.$options,"directives",i.name,!0)}return r}function po(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function go(t,e,n,i,r){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,i,r)}catch(Qa){$e(Qa,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var mo=[Qr,lo];function vo(t,e){var n=e.componentOptions;if((!a(n)||!1!==n.Ctor.options.inheritAttrs)&&(!o(t.data.attrs)||!o(e.data.attrs))){var i,r,l,u=e.elm,c=t.data.attrs||{},h=e.data.attrs||{};for(i in(a(h.__ob__)||s(h._v_attr_proxy))&&(h=e.data.attrs=k({},h)),h)r=h[i],l=c[i],l!==r&&yo(u,i,r,e.data.pre);for(i in(nt||rt)&&h.value!==c.value&&yo(u,"value",h.value),c)o(h[i])&&(br(i)?u.removeAttributeNS(xr,wr(i)):mr(i)||u.removeAttribute(i))}}function yo(t,e,n,i){i||t.tagName.indexOf("-")>-1?_o(t,e,n):_r(e)?Sr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):mr(e)?t.setAttribute(e,yr(e,n)):br(e)?Sr(n)?t.removeAttributeNS(xr,wr(e)):t.setAttributeNS(xr,e,n):_o(t,e,n)}function _o(t,e,n){if(Sr(n))t.removeAttribute(e);else{if(nt&&!it&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var xo={create:vo,update:vo};function bo(t,e){var n=e.elm,i=e.data,r=t.data;if(!(o(i.staticClass)&&o(i.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var s=Ar(e),l=n._transitionClasses;a(l)&&(s=Ir(s,Tr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var wo,So={create:bo,update:bo},Ao="__r",Mo="__c";function Co(t){if(a(t[Ao])){var e=nt?"change":"input";t[e]=[].concat(t[Ao],t[e]||[]),delete t[Ao]}a(t[Mo])&&(t.change=[].concat(t[Mo],t.change||[]),delete t[Mo])}function Io(t,e,n){var i=wo;return function r(){var o=e.apply(null,arguments);null!==o&&Do(t,r,n,i)}}var To=en&&!(st&&Number(st[1])<=53);function Eo(t,e,n,i){if(To){var r=jn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}wo.addEventListener(t,e,ut?{capture:n,passive:i}:n)}function Do(t,e,n,i){(i||wo).removeEventListener(t,e._wrapper||e,n)}function Po(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},i=t.data.on||{};wo=e.elm||t.elm,Co(n),ne(n,i,Eo,Do,Io,e.context),wo=void 0}}var Lo,Ro={create:Po,update:Po,destroy:function(t){return Po(t,no)}};function Oo(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,i,r=e.elm,l=t.data.domProps||{},u=e.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=e.data.domProps=k({},u)),l)n in u||(r[n]="");for(n in u){if(i=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===l[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=i;var c=o(i)?"":String(i);ko(r,c)&&(r.value=c)}else if("innerHTML"===n&&Rr(r.tagName)&&o(r.innerHTML)){Lo=Lo||document.createElement("div"),Lo.innerHTML="<svg>".concat(i,"</svg>");var h=Lo.firstChild;while(r.firstChild)r.removeChild(r.firstChild);while(h.firstChild)r.appendChild(h.firstChild)}else if(i!==l[n])try{r[n]=i}catch(Qa){}}}}function ko(t,e){return!t.composing&&("OPTION"===t.tagName||No(t,e)||Fo(t,e))}function No(t,e){var n=!0;try{n=document.activeElement!==t}catch(Qa){}return n&&t.value!==e}function Fo(t,e){var n=t.value,i=t._vModifiers;if(a(i)){if(i.number)return _(n)!==_(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}var zo={create:Oo,update:Oo},Bo=M((function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function Go(t){var e=Vo(t.style);return t.staticStyle?k(t.staticStyle,e):e}function Vo(t){return Array.isArray(t)?N(t):"string"===typeof t?Bo(t):t}function Wo(t,e){var n,i={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=Go(r.data))&&k(i,n)}(n=Go(t.data))&&k(i,n);var o=t;while(o=o.parent)o.data&&(n=Go(o.data))&&k(i,n);return i}var jo,Ho=/^--/,Yo=/\s*!important$/,Uo=function(t,e,n){if(Ho.test(e))t.style.setProperty(e,n);else if(Yo.test(n))t.style.setProperty(D(e),n.replace(Yo,""),"important");else{var i=Zo(e);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)t.style[i]=n[r];else t.style[i]=n}},Xo=["Webkit","Moz","ms"],Zo=M((function(t){if(jo=jo||document.createElement("div").style,t=I(t),"filter"!==t&&t in jo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Xo.length;n++){var i=Xo[n]+e;if(i in jo)return i}}));function qo(t,e){var n=e.data,i=t.data;if(!(o(n.staticStyle)&&o(n.style)&&o(i.staticStyle)&&o(i.style))){var r,s,l=e.elm,u=i.staticStyle,c=i.normalizedStyle||i.style||{},h=u||c,d=Vo(e.data.style)||{};e.data.normalizedStyle=a(d.__ob__)?k({},d):d;var f=Wo(e,!0);for(s in h)o(f[s])&&Uo(l,s,"");for(s in f)r=f[s],Uo(l,s,null==r?"":r)}}var $o={create:qo,update:qo},Ko=/\s+/;function Jo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Ko).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Qo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Ko).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" ".concat(t.getAttribute("class")||""," "),i=" "+e+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ta(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&k(e,ea(t.name||"v")),k(e,t),e}return"string"===typeof t?ea(t):void 0}}var ea=M((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),na=tt&&!it,ia="transition",ra="animation",oa="transition",aa="transitionend",sa="animation",la="animationend";na&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(oa="WebkitTransition",aa="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(sa="WebkitAnimation",la="webkitAnimationEnd"));var ua=tt?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function ca(t){ua((function(){ua(t)}))}function ha(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Jo(t,e))}function da(t,e){t._transitionClasses&&w(t._transitionClasses,e),Qo(t,e)}function fa(t,e,n){var i=ga(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===ia?aa:la,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l<a&&u()}),o+1),t.addEventListener(s,c)}var pa=/\b(transform|all)(,|$)/;function ga(t,e){var n,i=window.getComputedStyle(t),r=(i[oa+"Delay"]||"").split(", "),o=(i[oa+"Duration"]||"").split(", "),a=ma(r,o),s=(i[sa+"Delay"]||"").split(", "),l=(i[sa+"Duration"]||"").split(", "),u=ma(s,l),c=0,h=0;e===ia?a>0&&(n=ia,c=a,h=o.length):e===ra?u>0&&(n=ra,c=u,h=l.length):(c=Math.max(a,u),n=c>0?a>u?ia:ra:null,h=n?n===ia?o.length:l.length:0);var d=n===ia&&pa.test(i[oa+"Property"]);return{type:n,timeout:c,propCount:h,hasTransform:d}}function ma(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return va(e)+va(t[n])})))}function va(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function ya(t,e){var n=t.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=ta(t.data.transition);if(!o(i)&&!a(n._enterCb)&&1===n.nodeType){var r=i.css,s=i.type,l=i.enterClass,u=i.enterToClass,d=i.enterActiveClass,f=i.appearClass,p=i.appearToClass,g=i.appearActiveClass,m=i.beforeEnter,v=i.enter,y=i.afterEnter,x=i.enterCancelled,b=i.beforeAppear,w=i.appear,S=i.afterAppear,A=i.appearCancelled,M=i.duration,C=Cn,I=Cn.$vnode;while(I&&I.parent)C=I.context,I=I.parent;var T=!C._isMounted||!t.isRootInsert;if(!T||w||""===w){var E=T&&f?f:l,D=T&&g?g:d,P=T&&p?p:u,L=T&&b||m,R=T&&c(w)?w:v,O=T&&S||y,k=T&&A||x,N=_(h(M)?M.enter:M);0;var F=!1!==r&&!it,z=ba(R),B=n._enterCb=W((function(){F&&(da(n,P),da(n,D)),B.cancelled?(F&&da(n,E),k&&k(n)):O&&O(n),n._enterCb=null}));t.data.show||ie(t,"insert",(function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),R&&R(n,B)})),L&&L(n),F&&(ha(n,E),ha(n,D),ca((function(){da(n,E),B.cancelled||(ha(n,P),z||(xa(N)?setTimeout(B,N):fa(n,s,B)))}))),t.data.show&&(e&&e(),R&&R(n,B)),F||z||B()}}}function _a(t,e){var n=t.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=ta(t.data.transition);if(o(i)||1!==n.nodeType)return e();if(!a(n._leaveCb)){var r=i.css,s=i.type,l=i.leaveClass,u=i.leaveToClass,c=i.leaveActiveClass,d=i.beforeLeave,f=i.leave,p=i.afterLeave,g=i.leaveCancelled,m=i.delayLeave,v=i.duration,y=!1!==r&&!it,x=ba(f),b=_(h(v)?v.leave:v);0;var w=n._leaveCb=W((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(da(n,u),da(n,c)),w.cancelled?(y&&da(n,l),g&&g(n)):(e(),p&&p(n)),n._leaveCb=null}));m?m(S):S()}function S(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),d&&d(n),y&&(ha(n,l),ha(n,c),ca((function(){da(n,l),w.cancelled||(ha(n,u),x||(xa(b)?setTimeout(w,b):fa(n,s,w)))}))),f&&f(n,w),y||x||w())}}function xa(t){return"number"===typeof t&&!isNaN(t)}function ba(t){if(o(t))return!1;var e=t.fns;return a(e)?ba(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function wa(t,e){!0!==e.data.show&&ya(e)}var Sa=tt?{create:wa,activate:wa,remove:function(t,e){!0!==t.data.show?_a(t,e):e()}}:{},Aa=[xo,So,Ro,zo,$o,Sa],Ma=Aa.concat(mo),Ca=so({nodeOps:Jr,modules:Ma});it&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Oa(t,"input")}));var Ia={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?ie(n,"postpatch",(function(){Ia.componentUpdated(t,e,n)})):Ta(t,e,n.context),t._vOptions=[].map.call(t.options,Pa)):("textarea"===n.tag||zr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",La),t.addEventListener("compositionend",Ra),t.addEventListener("change",Ra),it&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Ta(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,Pa);if(r.some((function(t,e){return!G(t,i[e])}))){var o=t.multiple?e.value.some((function(t){return Da(t,r)})):e.value!==e.oldValue&&Da(e.value,r);o&&Oa(t,"change")}}}};function Ta(t,e,n){Ea(t,e,n),(nt||rt)&&setTimeout((function(){Ea(t,e,n)}),0)}function Ea(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],r)o=V(i,Pa(a))>-1,a.selected!==o&&(a.selected=o);else if(G(Pa(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function Da(t,e){return e.every((function(e){return!G(e,t)}))}function Pa(t){return"_value"in t?t._value:t.value}function La(t){t.target.composing=!0}function Ra(t){t.target.composing&&(t.target.composing=!1,Oa(t.target,"input"))}function Oa(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ka(t){return!t.componentInstance||t.data&&t.data.transition?t:ka(t.componentInstance._vnode)}var Na={bind:function(t,e,n){var i=e.value;n=ka(n);var r=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,ya(n,(function(){t.style.display=o}))):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value,r=e.oldValue;if(!i!==!r){n=ka(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?ya(n,(function(){t.style.display=t.__vOriginalDisplay})):_a(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},Fa={model:Ia,show:Na},za={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ba(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ba(je(e.children)):t}function Ga(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var i in r)e[I(i)]=r[i];return e}function Va(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Wa(t){while(t=t.parent)if(t.data.transition)return!0}function ja(t,e){return e.key===t.key&&e.tag===t.tag}var Ha=function(t){return t.tag||Ie(t)},Ya=function(t){return"show"===t.name},Ua={name:"transition",props:za,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Ha),n.length)){0;var i=this.mode;0;var r=n[0];if(Wa(this.$vnode))return r;var o=Ba(r);if(!o)return r;if(this._leaving)return Va(t,r);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:u(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Ga(this),l=this._vnode,c=Ba(l);if(o.data.directives&&o.data.directives.some(Ya)&&(o.data.show=!0),c&&c.data&&!ja(o,c)&&!Ie(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=k({},s);if("out-in"===i)return this._leaving=!0,ie(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Va(t,r);if("in-out"===i){if(Ie(o))return l;var d,f=function(){d()};ie(s,"afterEnter",f),ie(s,"enterCancelled",f),ie(h,"delayLeave",(function(t){d=t}))}}return r}}},Xa=k({tag:String,moveClass:String},za);delete Xa.mode;var Za={props:Xa,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=In(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=Ga(this),s=0;s<r.length;s++){var l=r[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(i){var u=[],c=[];for(s=0;s<i.length;s++){l=i[s];l.data.transition=a,l.data.pos=l.elm.getBoundingClientRect(),n[l.key]?u.push(l):c.push(l)}this.kept=t(e,null,u),this.removed=c}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(qa),t.forEach($a),t.forEach(Ka),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,i=n.style;ha(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(aa,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(aa,t),n._moveCb=null,da(n,e))})}})))},methods:{hasMove:function(t,e){if(!na)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Qo(n,t)})),Jo(n,e),n.style.display="none",this.$el.appendChild(n);var i=ga(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function qa(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function $a(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ka(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate(".concat(i,"px,").concat(r,"px)"),o.transitionDuration="0s"}}var Ja={Transition:Ua,TransitionGroup:Za};Ji.config.mustUseProp=gr,Ji.config.isReservedTag=Or,Ji.config.isReservedAttr=fr,Ji.config.getTagNamespace=kr,Ji.config.isUnknownElement=Fr,k(Ji.options.directives,Fa),k(Ji.options.components,Ja),Ji.prototype.__patch__=tt?Ca:F,Ji.prototype.$mount=function(t,e){return t=t&&tt?Br(t):void 0,Dn(this,t,e)},tt&&setTimeout((function(){X.devtools&&dt&&dt.emit("init",Ji)}),0)},81539:function(t,e,n){"use strict";var i=n(4761),r=n(21703),o=n(75128),a=n(93612),s=n(39803);t.exports=function(t){return null==t||"object"!==typeof t&&"function"!==typeof t?null:i(t)?"String":r(t)?"Number":o(t)?"Boolean":a(t)?"Symbol":s(t)?"BigInt":void 0}},60593:function(t,e,n){"use strict";var i=n(83802),r=n(90256),o=n(87842),a=n(12648);t.exports=function(t){if(t&&"object"===typeof t){if(i(t))return"Map";if(r(t))return"Set";if(o(t))return"WeakMap";if(a(t))return"WeakSet"}return!1}},25767:function(t,e,n){"use strict";var i=n(82682),r=n(39209),o=n(10487),a=n(38075),s=n(75795),l=a("Object.prototype.toString"),u=n(49092)(),c="undefined"===typeof globalThis?n.g:globalThis,h=r(),d=a("String.prototype.slice"),f=Object.getPrototypeOf,p=a("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},g={__proto__:null};i(h,u&&s&&f?function(t){var e=new c[t];if(Symbol.toStringTag in e){var n=f(e),i=s(n,Symbol.toStringTag);if(!i){var r=f(n);i=s(r,Symbol.toStringTag)}g["$"+t]=o(i.get)}}:function(t){var e=new c[t],n=e.slice||e.set;n&&(g["$"+t]=o(n))});var m=function(t){var e=!1;return i(g,(function(n,i){if(!e)try{"$"+n(t)===i&&(e=d(i,1))}catch(r){}})),e},v=function(t){var e=!1;return i(g,(function(n,i){if(!e)try{n(t),e=d(i,1)}catch(r){}})),e};t.exports=function(t){if(!t||"object"!==typeof t)return!1;if(!u){var e=d(l(t),8,-1);return p(h,e)>-1?e:"Object"===e&&v(t)}return s?m(t):null}},42073:function(t,e,n){var i=n(1200),r=n(36112),o=n(38051),a=n(31615),s=n(95289),l=function(t){o.call(this,t),r.call(this,t),a.call(this,t),this.id=t.id||i()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,a),s.mixin(l,o),s.mixin(l,r);var u=l;t.exports=u},16713:function(t,e,n){var i=n(95289),r=n(31138),o=n(89944),a=n(36112),s=n(88665),l=n(15174),u="silent";function c(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:h}}function h(){s.stop(this.event)}function d(){}d.prototype.dispose=function(){};var f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(t,e,n,i){a.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new d,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,o.call(this),this.setHandlerProxy(n)};function g(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i,r=t;while(r){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||u}return!1}function m(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(f,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=m(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?{x:e,y:n}:this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,n=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!n&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,o=c(e,t,n);while(i)if(i[r]&&(o.cancelBubble=i[r].call(i,o)),i.trigger(e,o),i=i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},o=i.length-1;o>=0;o--){var a;if(i[o]!==n&&!i[o].ignore&&(a=g(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==u)){r.target=i[o];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){p.prototype[t]=function(e){var n,i,o=e.zrX,a=e.zrY,s=m(this,o,a);if("mouseup"===t&&s||(n=this.findHover(o,a),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}})),i.mixin(p,a),i.mixin(p,o);var v=p;t.exports=v},93288:function(t,e,n){var i=n(95289),r=n(49999),o=r.devicePixelRatio,a=n(96727),s=n(94364);function l(){return!1}function u(t,e,n){var r=i.createCanvas(),o=e.getWidth(),a=e.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=o+"px",s.height=a+"px",r.setAttribute("data-zr-dom-id",t)),r.width=o*n,r.height=a*n,r}var c=function(t,e,n){var r;n=n||o,"string"===typeof t?r=u(t,e,n):i.isObject(t)&&(r=t,t=r.id),this.id=t,this.dom=r;var a=r.style;a&&(r.onselectstart=l,a["-webkit-user-select"]="none",a["user-select"]="none",a["-webkit-touch-callout"]="none",a["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",a["padding"]=0,a["margin"]=0,a["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};c.prototype={constructor:c,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=u("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(t,e){var n,i=this.dom,r=this.ctx,o=i.width,l=i.height,u=(e=e||this.clearColor,this.motionBlur&&!t),c=this.lastFrameAlpha,h=this.dpr;(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/h,l/h)),r.clearRect(0,0,o,l),e&&"transparent"!==e)&&(e.colorStops?(n=e.__canvasGradient||a.getGradient(r,e,{x:0,y:0,width:o,height:l}),e.__canvasGradient=n):e.image&&(n=s.prototype.getCanvasPattern.call(e,r)),r.save(),r.fillStyle=n||e,r.fillRect(0,0,o,l),r.restore());if(u){var d=this.domBack;r.save(),r.globalAlpha=c,r.drawImage(d,0,0,o,l),r.restore()}}};var h=c;t.exports=h},97518:function(t,e,n){var i=n(49999),r=i.devicePixelRatio,o=n(95289),a=n(19559),s=n(39587),l=n(33863),u=n(93288),c=n(39058),h=n(1635),d=n(87190),f=1e5,p=314159,g=.01,m=.001;function v(t){return parseInt(t,10)}function y(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}var _=new s(0,0,0,0),x=new s(0,0,0,0);function b(t,e,n){return _.copy(t.getBoundingRect()),t.transform&&_.applyTransform(t.transform),x.width=e,x.height=n,!_.intersect(x)}function w(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function S(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.setTransform(e),e.beginPath(),i.buildPath(e,i.shape),e.clip(),i.restoreTransform(e)}}function A(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var M=function(t,e,n){this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=o.extend({},n||{}),this.dpr=n.devicePixelRatio||r,this._singleCanvas=i,this.root=t;var a=t.style;a&&(a["-webkit-tap-highlight-color"]="transparent",a["-webkit-user-select"]=a["user-select"]=a["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var s=this._zlevelList=[],l=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var c=t.width,h=t.height;null!=n.width&&(c=n.width),null!=n.height&&(h=n.height),this.dpr=n.devicePixelRatio||1,t.width=c*this.dpr,t.height=h*this.dpr,this._width=c,this._height=h;var d=new u(t,this,this.dpr);d.__builtin__=!0,d.initContext(),l[p]=d,d.zlevel=p,s.push(p),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=A(this._width,this._height);t.appendChild(f)}this._hoverlayer=null,this._hoverElements=[]};M.prototype={constructor:M,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],o=this._layers[r];if(!o.__builtin__&&o.refresh){var a=0===i?this._backgroundColor:null;o.refresh(a)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return n.__from=t,t.__hoverMir=n,e&&n.setStyle(e),this._hoverElements.push(n),n}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,i=o.indexOf(n,e);i>=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n<e.length;n++){var i=e[n].__from;i&&(i.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){l(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(f));var i={};n.ctx.save();for(var r=0;r<e;){var o=t[r],a=o.__from;a&&a.__zr?(r++,a.invisible||(o.transform=a.transform,o.invTransform=a.invTransform,o.__clipPaths=a.__clipPaths,this._doPaintEl(o,n,!0,i))):(t.splice(r,1),a.__hoverMir=null,e--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(f)},_paintList:function(t,e,n){if(this._redrawId===n){e=e||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;c((function(){r._paintList(t,e,n)}))}}},_compositeManually:function(){var t=this.getLayer(p).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},_doPaintList:function(t,e){for(var n=[],i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i],a=this._layers[r];a.__builtin__&&a!==this._hoverlayer&&(a.__dirty||e)&&n.push(a)}for(var s=!0,l=0;l<n.length;l++){a=n[l];var u=a.ctx,c={};u.save();var h=e?a.__startIndex:a.__drawIndex,f=!e&&a.incremental&&Date.now,p=f&&Date.now(),g=a.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(a.__startIndex===a.__endIndex)a.clear(!1,g);else if(h===a.__startIndex){var m=t[h];m.incremental&&m.notClear&&!e||a.clear(!1,g)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=a.__startIndex);for(var v=h;v<a.__endIndex;v++){var y=t[v];if(this._doPaintEl(y,a,e,c),y.__dirty=y.__dirtyText=!1,f){var _=Date.now()-p;if(_>15)break}}a.__drawIndex=v,a.__drawIndex<a.__endIndex&&(s=!1),c.prevElClipPaths&&u.restore(),u.restore()}return d.wxa&&o.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),s},_doPaintEl:function(t,e,n,i){var r=e.ctx,o=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!o||o[0]||o[3])&&(!t.culling||!b(t,this._width,this._height))){var a=t.__clipPaths,s=i.prevElClipPaths;s&&!w(a,s)||(s&&(r.restore(),i.prevElClipPaths=null,i.prevEl=null),a&&(r.save(),S(a,r),i.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=p);var n=this._layers[t];return n||(n=new u("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?o.merge(n,this._layerConfig[t],!0):this._layerConfig[t-g]&&o.merge(n,this._layerConfig[t-g],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=null,s=-1,l=this._domRoot;if(n[t])a("ZLevel "+t+" has been used already");else if(y(e)){if(r>0&&t>i[0]){for(s=0;s<r-1;s++)if(i[s]<t&&i[s+1]>t)break;o=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else a("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],n=this._layers[i],n.__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],n=this._layers[i],n.__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var r,o=null,s=0;for(n=0;n<t.length;n++){i=t[n];var l,u=i.zlevel;r!==u&&(r=u,s=0),i.incremental?(l=this.getLayer(u+m,this._needsManuallyCompositing),l.incremental=!0,s=1):l=this.getLayer(u+(s>0?g:0),this._needsManuallyCompositing),l.__builtin__||a("ZLevel "+u+" has been used by unkown layer "+l.id),l!==o&&(l.__used=!0,l.__startIndex!==n&&(l.__dirty=!0),l.__startIndex=n,l.incremental?l.__drawIndex=-1:l.__drawIndex=n,e(n),o=l),i.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=n))}e(n),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?o.merge(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+g){var a=this._layers[r];o.merge(a,n[t],!0)}}}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(o.indexOf(n,t),1))},resize:function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var r in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);o.each(this._progressiveLayers,(function(n){n.resize(t,e)})),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(p).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[p].dom;var e=new u("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height,r=e.ctx;this.eachLayer((function(t){t.__builtin__?r.drawImage(t.dom,0,0,n,i):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())}))}else for(var o={},a=this.storage.getDisplayList(!0),s=0;s<a.length;s++){var l=a[s];this._doPaintEl(l,e,!0,o)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||v(s[n])||v(a.style[n]))-(v(s[r])||0)-(v(s[o])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,u=o.hasStroke()?o.lineWidth:0,c=Math.max(u/2,-s+a),d=Math.max(u/2,s+a),f=Math.max(u/2,-l+a),p=Math.max(u/2,l+a),g=r.width+c+d,m=r.height+f+p;n.width=g*e,n.height=m*e,i.scale(e,e),i.clearRect(0,0,g,m),i.dpr=e;var v={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[c-r.x,f-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(i);var y=h,_=new y({style:{x:0,y:0,image:n}});return null!=v.position&&(_.position=t.position=v.position),null!=v.rotation&&(_.rotation=t.rotation=v.rotation),null!=v.scale&&(_.scale=t.scale=v.scale),_}};var C=M;t.exports=C},65728:function(t,e,n){var i=n(95289),r=n(87190),o=n(75738),a=n(33863);function s(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i<o;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,r.canvasSupported&&a(n,s)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];var r=i,o=t;while(r)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.clipPath}if(t.isGroup){for(var a=t._children,s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof o&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof o&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array){e=0;for(var r=t.length;e<r;e++)this.delRoot(t[e])}else{var a=i.indexOf(this._roots,t);a>=0&&(this.delFromStorage(t),this._roots.splice(a,1),t instanceof o&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;t.exports=u},9874:function(t,e,n){var i=n(95289),r=n(88665),o=r.Dispatcher,a=n(39058),s=n(56831),l=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,o.call(this)};l.prototype={constructor:l,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){var e=i.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,r=[],o=[],a=0;a<i;a++){var s=n[a],l=s.step(t,e);l&&(r.push(l),o.push(s))}for(a=0;a<i;)n[a]._needsRemove?(n[a]=n[i-1],n.pop(),i--):a++;i=r.length;for(a=0;a<i;a++)o[a].fire(r[a]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){var t=this;function e(){t._running&&(a(e),!t._paused&&t._update())}this._running=!0,a(e)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){e=e||{};var n=new s(t,e.loop,e.getter,e.setter);return this.addAnimator(n),n}},i.mixin(l,o);var u=l;t.exports=u},56831:function(t,e,n){var i=n(90132),r=n(56607),o=n(95289),a=o.isArrayLike,s=Array.prototype.slice;function l(t,e){return t[e]}function u(t,e,n){t[e]=n}function c(t,e,n){return(e-t)*n+t}function h(t,e,n){return n>.5?e:t}function d(t,e,n,i,r){var o=t.length;if(1===r)for(var a=0;a<o;a++)i[a]=c(t[a],e[a],n);else{var s=o&&t[0].length;for(a=0;a<o;a++)for(var l=0;l<s;l++)i[a][l]=c(t[a][l],e[a][l],n)}}function f(t,e,n){var i=t.length,r=e.length;if(i!==r){var o=i>r;if(o)t.length=r;else for(var a=i;a<r;a++)t.push(1===n?e[a]:s.call(e[a]))}var l=t[0]&&t[0].length;for(a=0;a<t.length;a++)if(1===n)isNaN(t[a])&&(t[a]=e[a]);else for(var u=0;u<l;u++)isNaN(t[a][u])&&(t[a][u]=e[a][u])}function p(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var r=0;r<i;r++)if(t[r]!==e[r])return!1}else{var o=t[0].length;for(r=0;r<i;r++)for(var a=0;a<o;a++)if(t[r][a]!==e[r][a])return!1}return!0}function g(t,e,n,i,r,o,a,s,l){var u=t.length;if(1===l)for(var c=0;c<u;c++)s[c]=m(t[c],e[c],n[c],i[c],r,o,a);else{var h=t[0].length;for(c=0;c<u;c++)for(var d=0;d<h;d++)s[c][d]=m(t[c][d],e[c][d],n[c][d],i[c][d],r,o,a)}}function m(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function v(t){if(a(t)){var e=t.length;if(a(t[0])){for(var n=[],i=0;i<e;i++)n.push(s.call(t[i]));return n}return s.call(t)}return t}function y(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function _(t){var e=t[t.length-1].value;return a(e&&e[0])?2:1}function x(t,e,n,o,s,l){var u=t._getter,v=t._setter,x="spline"===e,b=o.length;if(b){var w,S=o[0].value,A=a(S),M=!1,C=!1,I=A?_(o):0;o.sort((function(t,e){return t.time-e.time})),w=o[b-1].time;for(var T=[],E=[],D=o[0].value,P=!0,L=0;L<b;L++){T.push(o[L].time/w);var R=o[L].value;if(A&&p(R,D,I)||!A&&R===D||(P=!1),D=R,"string"===typeof R){var O=r.parse(R);O?(R=O,M=!0):C=!0}E.push(R)}if(l||!P){var k=E[b-1];for(L=0;L<b-1;L++)A?f(E[L],k,I):!isNaN(E[L])||isNaN(k)||C||M||(E[L]=k);A&&f(u(t._target,s),k,I);var N,F,z,B,G,V,W=0,j=0;if(M)var H=[0,0,0,0];var Y=function(t,e){var n;if(e<0)n=0;else if(e<j){for(N=Math.min(W+1,b-1),n=N;n>=0;n--)if(T[n]<=e)break;n=Math.min(n,b-2)}else{for(n=W;n<b;n++)if(T[n]>e)break;n=Math.min(n-1,b-2)}W=n,j=e;var i=T[n+1]-T[n];if(0!==i)if(F=(e-T[n])/i,x)if(B=E[n],z=E[0===n?n:n-1],G=E[n>b-2?b-1:n+1],V=E[n>b-3?b-1:n+2],A)g(z,B,G,V,F,F*F,F*F*F,u(t,s),I);else{if(M)r=g(z,B,G,V,F,F*F,F*F*F,H,1),r=y(H);else{if(C)return h(B,G,F);r=m(z,B,G,V,F,F*F,F*F*F)}v(t,s,r)}else if(A)d(E[n],E[n+1],F,u(t,s),I);else{var r;if(M)d(E[n],E[n+1],F,H,1),r=y(H);else{if(C)return h(E[n],E[n+1],F);r=c(E[n],E[n+1],F)}v(t,s,r)}},U=new i({target:t._target,life:w,loop:t._loop,delay:t._delay,onframe:Y,ondestroy:n});return e&&"spline"!==e&&(U.easing=e),U}}}var b=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||l,this._setter=i||u,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:v(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;n<e;n++)t[n].call(this)},start:function(t,e){var n,i=this,r=0,o=function(){r--,r||i._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var s=x(this,t,o,this._tracks[a],a,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(t,e){l(t,e);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var w=b;t.exports=w},90132:function(t,e,n){var i=n(23003);function r(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var r=this.easing,o="string"===typeof r?i[r]:r,a="function"===typeof o?o(n):n;return this.fire("frame",a),1===n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var o=r;t.exports=o},23003:function(t){var e={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-e.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*e.bounceIn(2*t):.5*e.bounceOut(2*t-1)+.5}},n=e;t.exports=n},39058:function(t){var e="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=e},49999:function(t,e){var n=1;"undefined"!==typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var i=0,r=n;e.debugMode=i,e.devicePixelRatio=r},83602:function(t,e,n){var i=n(57624),r=i.normalizeRadian,o=2*Math.PI;function a(t,e,n,i,a,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=e;var d=Math.sqrt(u*u+c*c);if(d-h>n||d+h<n)return!1;if(Math.abs(i-a)%o<1e-4)return!0;if(s){var f=i;i=r(a),a=r(f)}else i=r(i),a=r(a);i>a&&(a+=o);var p=Math.atan2(c,u);return p<0&&(p+=o),p>=i&&p<=a||p+o>=i&&p+o<=a}e.containStroke=a},94084:function(t,e,n){var i=n(35574);function r(t,e,n,r,o,a,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>e+d&&h>r+d&&h>a+d&&h>l+d||h<e-d&&h<r-d&&h<a-d&&h<l-d||c>t+d&&c>n+d&&c>o+d&&c>s+d||c<t-d&&c<n-d&&c<o-d&&c<s-d)return!1;var f=i.cubicProjectPoint(t,e,n,r,o,a,s,l,c,h,null);return f<=d/2}e.containStroke=r},52998:function(t,e){function n(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}e.containStroke=n},70703:function(t,e,n){var i=n(17004),r=n(52998),o=n(94084),a=n(78788),s=n(83602),l=n(57624),u=l.normalizeRadian,c=n(35574),h=n(12462),d=i.CMD,f=2*Math.PI,p=1e-4;function g(t,e){return Math.abs(t-e)<p}var m=[-1,-1,-1],v=[-1,-1];function y(){var t=v[0];v[0]=v[1],v[1]=t}function _(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var h=c.cubicRootAt(e,i,o,s,u,m);if(0===h)return 0;for(var d,f,p=0,g=-1,_=0;_<h;_++){var x=m[_],b=0===x||1===x?.5:1,w=c.cubicAt(t,n,r,a,x);w<l||(g<0&&(g=c.cubicExtrema(e,i,o,s,v),v[1]<v[0]&&g>1&&y(),d=c.cubicAt(e,i,o,s,v[0]),g>1&&(f=c.cubicAt(e,i,o,s,v[1]))),2===g?x<v[0]?p+=d<e?b:-b:x<v[1]?p+=f<d?b:-b:p+=s<f?b:-b:x<v[0]?p+=d<e?b:-b:p+=s<d?b:-b)}return p}function x(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=c.quadraticRootAt(e,i,o,s,m);if(0===l)return 0;var u=c.quadraticExtremum(e,i,o);if(u>=0&&u<=1){for(var h=0,d=c.quadraticAt(e,i,o,u),f=0;f<l;f++){var p=0===m[f]||1===m[f]?.5:1,g=c.quadraticAt(t,n,r,m[f]);g<a||(m[f]<u?h+=d<e?p:-p:h+=o<d?p:-p)}return h}p=0===m[0]||1===m[0]?.5:1,g=c.quadraticAt(t,n,r,m[0]);return g<a?0:o<e?p:-p}function b(t,e,n,i,r,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);m[0]=-l,m[1]=l;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c%f<1e-4){i=0,r=f;var h=o?1:-1;return a>=m[0]+t&&a<=m[1]+t?h:0}if(o){l=i;i=u(r),r=u(l)}else i=u(i),r=u(r);i>r&&(r+=f);for(var d=0,p=0;p<2;p++){var g=m[p];if(g+t>a){var v=Math.atan2(s,g);h=o?1:-1;v<0&&(v=f+v),(v>=i&&v<=r||v+f>=i&&v+f<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),d+=h)}}return d}function w(t,e,n,i,l){for(var u=0,c=0,f=0,p=0,m=0,v=0;v<t.length;){var y=t[v++];switch(y===d.M&&v>1&&(n||(u+=h(c,f,p,m,i,l))),1===v&&(c=t[v],f=t[v+1],p=c,m=f),y){case d.M:p=t[v++],m=t[v++],c=p,f=m;break;case d.L:if(n){if(r.containStroke(c,f,t[v],t[v+1],e,i,l))return!0}else u+=h(c,f,t[v],t[v+1],i,l)||0;c=t[v++],f=t[v++];break;case d.C:if(n){if(o.containStroke(c,f,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],e,i,l))return!0}else u+=_(c,f,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],i,l)||0;c=t[v++],f=t[v++];break;case d.Q:if(n){if(a.containStroke(c,f,t[v++],t[v++],t[v],t[v+1],e,i,l))return!0}else u+=x(c,f,t[v++],t[v++],t[v],t[v+1],i,l)||0;c=t[v++],f=t[v++];break;case d.A:var w=t[v++],S=t[v++],A=t[v++],M=t[v++],C=t[v++],I=t[v++];v+=1;var T=1-t[v++],E=Math.cos(C)*A+w,D=Math.sin(C)*M+S;v>1?u+=h(c,f,E,D,i,l):(p=E,m=D);var P=(i-w)*M/A+w;if(n){if(s.containStroke(w,S,M,C,C+I,T,e,P,l))return!0}else u+=b(w,S,M,C,C+I,T,P,l);c=Math.cos(C+I)*A+w,f=Math.sin(C+I)*M+S;break;case d.R:p=c=t[v++],m=f=t[v++];var L=t[v++],R=t[v++];E=p+L,D=m+R;if(n){if(r.containStroke(p,m,E,m,e,i,l)||r.containStroke(E,m,E,D,e,i,l)||r.containStroke(E,D,p,D,e,i,l)||r.containStroke(p,D,p,m,e,i,l))return!0}else u+=h(E,m,E,D,i,l),u+=h(p,D,p,m,i,l);break;case d.Z:if(n){if(r.containStroke(c,f,p,m,e,i,l))return!0}else u+=h(c,f,p,m,i,l);c=p,f=m;break}}return n||g(f,m)||(u+=h(c,f,p,m,i,l)||0),0!==u}function S(t,e,n){return w(t,0,!1,e,n)}function A(t,e,n,i){return w(t,e,!0,n,i)}e.contain=S,e.containStroke=A},91068:function(t,e,n){var i=n(12462),r=1e-8;function o(t,e){return Math.abs(t-e)<r}function a(t,e,n){var r=0,a=t[0];if(!a)return!1;for(var s=1;s<t.length;s++){var l=t[s];r+=i(a[0],a[1],l[0],l[1],e,n),a=l}var u=t[0];return o(a[0],u[0])&&o(a[1],u[1])||(r+=i(a[0],a[1],u[0],u[1],e,n)),0!==r}e.contain=a},78788:function(t,e,n){var i=n(35574),r=i.quadraticProjectPoint;function o(t,e,n,i,o,a,s,l,u){if(0===s)return!1;var c=s;if(u>e+c&&u>i+c&&u>a+c||u<e-c&&u<i-c&&u<a-c||l>t+c&&l>n+c&&l>o+c||l<t-c&&l<n-c&&l<o-c)return!1;var h=r(t,e,n,i,o,a,l,u,null);return h<=c/2}e.containStroke=o},43407:function(t,e,n){var i=n(39587),r=n(30098),o=n(95289),a=o.getContext,s=o.extend,l=o.retrieve2,u=o.retrieve3,c=o.trim,h={},d=0,f=5e3,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",m={};function v(t,e){m[t]=e}function y(t,e){e=e||g;var n=t+":"+e;if(h[n])return h[n];for(var i=(t+"").split("\n"),r=0,o=0,a=i.length;o<a;o++)r=Math.max(P(i[o],e).width,r);return d>f&&(d=0,h={}),d++,h[n]=r,r}function _(t,e,n,i,r,o,a,s){return a?b(t,e,n,i,r,o,a,s):x(t,e,n,i,r,o,s)}function x(t,e,n,r,o,a,s){var l=L(t,e,o,a,s),u=y(t,e);o&&(u+=o[1]+o[3]);var c=l.outerHeight,h=w(0,u,n),d=S(0,c,r),f=new i(h,d,u,c);return f.lineHeight=l.lineHeight,f}function b(t,e,n,r,o,a,s,l){var u=R(t,{rich:s,truncate:l,font:e,textAlign:n,textPadding:o,textLineHeight:a}),c=u.outerWidth,h=u.outerHeight,d=w(0,c,n),f=S(0,h,r);return new i(d,f,c,h)}function w(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function S(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function A(t,e,n){var i=e.textPosition,r=e.textDistance,o=n.x,a=n.y;r=r||0;var s=n.height,l=n.width,u=s/2,c="left",h="top";switch(i){case"left":o-=r,a+=u,c="right",h="middle";break;case"right":o+=r+l,a+=u,h="middle";break;case"top":o+=l/2,a-=r,c="center",h="bottom";break;case"bottom":o+=l/2,a+=s+r,c="center";break;case"inside":o+=l/2,a+=u,c="center",h="middle";break;case"insideLeft":o+=r,a+=u,h="middle";break;case"insideRight":o+=l-r,a+=u,c="right",h="middle";break;case"insideTop":o+=l/2,a+=r,c="center";break;case"insideBottom":o+=l/2,a+=s-r,c="center",h="bottom";break;case"insideTopLeft":o+=r,a+=r;break;case"insideTopRight":o+=l-r,a+=r,c="right";break;case"insideBottomLeft":o+=r,a+=s-r,h="bottom";break;case"insideBottomRight":o+=l-r,a+=s-r,c="right",h="bottom";break}return t=t||{},t.x=o,t.y=a,t.textAlign=c,t.textVerticalAlign=h,t}function M(t,e,n){var i={textPosition:t,textDistance:n};return A({},i,e)}function C(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=I(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=T(o[a],r);return o.join("\n")}function I(t,e,n,i){i=s({},i),i.font=e;n=l(n,"...");i.maxIterations=l(i.maxIterations,2);var r=i.minChar=l(i.minChar,0);i.cnCharWidth=y("国",e);var o=i.ascCharWidth=y("a",e);i.placeholder=l(i.placeholder,"");for(var a=t=Math.max(0,t-1),u=0;u<r&&a>=o;u++)a-=o;var c=y(n,e);return c>a&&(n="",c=0),a=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=a,i.containerWidth=t,i}function T(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=y(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?E(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=y(t,i)}return""===t&&(t=e.placeholder),t}function E(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function D(t){return y("国",t)}function P(t,e){return m.measureText(t,e)}function L(t,e,n,i,r){null!=t&&(t+="");var o=l(i,D(e)),a=t?t.split("\n"):[],s=a.length*o,u=s,c=!0;if(n&&(u+=n[0]+n[2]),t&&r){c=!1;var h=r.outerHeight,d=r.outerWidth;if(null!=h&&u>h)t="",a=[];else if(null!=d)for(var f=I(d-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),p=0,g=a.length;p<g;p++)a[p]=T(a[p],f)}return{lines:a,height:s,outerHeight:u,lineHeight:o,canCacheByTextString:c}}function R(t,e){var n={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return n;var i,o=p.lastIndex=0;while(null!=(i=p.exec(t))){var a=i.index;a>o&&O(n,t.substring(o,a)),O(n,i[2],i[1]),o=p.lastIndex}o<t.length&&O(n,t.substring(o,t.length));var s=n.lines,c=0,h=0,d=[],f=e.textPadding,g=e.truncate,m=g&&g.outerWidth,v=g&&g.outerHeight;f&&(null!=m&&(m-=f[1]+f[3]),null!=v&&(v-=f[0]+f[2]));for(var _=0;_<s.length;_++){for(var x=s[_],b=0,w=0,S=0;S<x.tokens.length;S++){var A=x.tokens[S],M=A.styleName&&e.rich[A.styleName]||{},I=A.textPadding=M.textPadding,T=A.font=M.font||e.font,E=A.textHeight=l(M.textHeight,D(T));if(I&&(E+=I[0]+I[2]),A.height=E,A.lineHeight=u(M.textLineHeight,e.textLineHeight,E),A.textAlign=M&&M.textAlign||e.textAlign,A.textVerticalAlign=M&&M.textVerticalAlign||"middle",null!=v&&c+A.lineHeight>v)return{lines:[],width:0,height:0};A.textWidth=y(A.text,T);var P=M.textWidth,L=null==P||"auto"===P;if("string"===typeof P&&"%"===P.charAt(P.length-1))A.percentWidth=P,d.push(A),P=0;else{if(L){P=A.textWidth;var R=M.textBackgroundColor,k=R&&R.image;k&&(k=r.findExistImage(k),r.isImageReady(k)&&(P=Math.max(P,k.width*E/k.height)))}var N=I?I[1]+I[3]:0;P+=N;var F=null!=m?m-w:null;null!=F&&F<P&&(!L||F<N?(A.text="",A.textWidth=P=0):(A.text=C(A.text,F-N,T,g.ellipsis,{minChar:g.minChar}),A.textWidth=y(A.text,T),P=A.textWidth+N))}w+=A.width=P,M&&(b=Math.max(b,A.lineHeight))}x.width=w,x.lineHeight=b,c+=b,h=Math.max(h,w)}n.outerWidth=n.width=l(e.textWidth,h),n.outerHeight=n.height=l(e.textHeight,c),f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(_=0;_<d.length;_++){A=d[_];var z=A.percentWidth;A.width=parseInt(z,10)/100*h}return n}function O(t,e,n){for(var i=""===e,r=e.split("\n"),o=t.lines,a=0;a<r.length;a++){var s=r[a],l={styleName:n,text:s,isLineHolder:!s&&!i};if(a)o.push({tokens:[l]});else{var u=(o[o.length-1]||(o[0]={tokens:[]})).tokens,c=u.length;1===c&&u[0].isLineHolder?u[0]=l:(s||!c||i)&&u.push(l)}}}function k(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&c(e)||t.textFont||t.font}m.measureText=function(t,e){var n=a();return n.font=e||g,n.measureText(t)},e.DEFAULT_FONT=g,e.$override=v,e.getWidth=y,e.getBoundingRect=_,e.adjustTextX=w,e.adjustTextY=S,e.calculateTextPosition=A,e.adjustTextPositionOnRect=M,e.truncateText=C,e.getLineHeight=D,e.measureText=P,e.parsePlainText=L,e.parseRichText=R,e.makeFont=k},57624:function(t,e){var n=2*Math.PI;function i(t){return t%=n,t<0&&(t+=n),t}e.normalizeRadian=i},12462:function(t){function e(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=i<e?1:-1,s=(o-e)/(i-e);1!==s&&0!==s||(a=i<e?.5:-.5);var l=s*(n-t)+t;return l===r?1/0:l>r?a:0}t.exports=e},75738:function(t,e,n){var i=n(95289),r=n(42073),o=n(39587),a=function(t){for(var e in t=t||{},r.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof a&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,r=this._children,o=i.indexOf(r,t);return o<0||(r.splice(o,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof a&&t.delChildrenFromStorage(n)),e&&e.refresh()),this},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n.length;e++)t=n[e],i&&(i.delFromStorage(t),t instanceof a&&t.delChildrenFromStorage(i)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof a&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof a&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new o(0,0,0,0),i=t||this._children,r=[],a=0;a<i.length;a++){var s=i[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(n.copy(l),n.applyTransform(u),e=e||n.clone(),e.union(n)):(e=e||l.clone(),e.union(l))}}return e||n}},i.inherits(a,r);var s=a;t.exports=s},39587:function(t,e,n){var i=n(31138),r=n(13388),o=i.applyTransform,a=Math.min,s=Math.max;function l(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}l.prototype={constructor:l,union:function(t){var e=a(t.x,this.x),n=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this.height=s(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(r){if(r){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this.height,o(t,t,r),o(e,e,r),o(n,n,r),o(i,i,r),this.x=a(t[0],e[0],n[0],i[0]),this.y=a(t[1],e[1],n[1],i[1]);var l=s(t[0],e[0],n[0],i[0]),u=s(t[1],e[1],n[1],i[1]);this.width=l-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,o=r.create();return r.translate(o,o,[-e.x,-e.y]),r.scale(o,o,[n,i]),r.translate(o,o,[t.x,t.y]),o},intersect:function(t){if(!t)return!1;t instanceof l||(t=l.create(t));var e=this,n=e.x,i=e.x+e.width,r=e.y,o=e.y+e.height,a=t.x,s=t.x+t.width,u=t.y,c=t.y+t.height;return!(i<a||s<n||o<u||c<r)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(t){return new l(t.x,t.y,t.width,t.height)};var u=l;t.exports=u},15174:function(t,e,n){var i=n(88665),r=function(){this._track=[]};function o(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function a(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}r.prototype={constructor:r,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var r=t.touches;if(r){for(var o={points:[],touches:[],target:e,event:t},a=0,s=r.length;a<s;a++){var l=r[a],u=i.clientToLocal(n,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},_recognize:function(t){for(var e in s)if(s.hasOwnProperty(e)){var n=s[e](this._track,t);if(n)return n}}};var s={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var s=o(i)/o(r);!isFinite(s)&&(s=1),e.pinchScale=s;var l=a(i);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},l=r;t.exports=l},60348:function(t){var e=function(){this.head=null,this.tail=null,this._len=0},n=e.prototype;n.insert=function(t){var e=new i(t);return this.insertEntry(e),e},n.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var i=function(t){this.value=t,this.next,this.prev},r=function(t){this._list=new e,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},o=r.prototype;o.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},o.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}};var a=r;t.exports=a},17004:function(t,e,n){var i=n(35574),r=n(31138),o=n(66346),a=n(39587),s=n(49999),l=s.devicePixelRatio,u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],h=[],d=[],f=[],p=Math.min,g=Math.max,m=Math.cos,v=Math.sin,y=Math.sqrt,_=Math.abs,x="undefined"!==typeof Float32Array,b=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};b.prototype={constructor:b,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,n){n=n||0,this._ux=_(n/l/t)||0,this._uy=_(n/l/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=_(t-this._xi)>this._ux||_(e-this._yi)>this._uy||this._len<5;return this.addData(u.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(u.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(u.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(u.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=m(r)*n+t,this._yi=v(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(u.R,t,e,n,i),this},closePath:function(){this.addData(u.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length===e||!x||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,r=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=t-l,h=e-u,d=y(c*c+h*h),f=l,m=u,v=a.length;c/=d,h/=d,o<0&&(o=r+o),o%=r,f-=o*c,m-=o*h;while(c>0&&f<=t||c<0&&f>=t||0===c&&(h>0&&m<=e||h<0&&m>=e))i=this._dashIdx,n=a[i],f+=c*n,m+=h*n,this._dashIdx=(i+1)%v,c>0&&f<l||c<0&&f>l||h>0&&m<u||h<0&&m>u||s[i%2?"moveTo":"lineTo"](c>=0?p(f,t):g(f,t),h>=0?p(m,e):g(m,e));c=f-t,h=m-e,this._dashOffset=-y(c*c+h*h)},_dashedBezierTo:function(t,e,n,r,o,a){var s,l,u,c,h,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,m=this._xi,v=this._yi,_=i.cubicAt,x=0,b=this._dashIdx,w=p.length,S=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=_(m,t,n,o,s+.1)-_(m,t,n,o,s),u=_(v,e,r,a,s+.1)-_(v,e,r,a,s),x+=y(l*l+u*u);for(;b<w;b++)if(S+=p[b],S>f)break;s=(S-f)/x;while(s<=1)c=_(m,t,n,o,s),h=_(v,e,r,a,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=p[b]/x,b=(b+1)%w;b%2!==0&&g.lineTo(o,a),l=o-c,u=a-h,this._dashOffset=-y(l*l+u*u)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){c[0]=c[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,s=0,l=0;l<t.length;){var p=t[l++];switch(1===l&&(e=t[l],n=t[l+1],i=e,s=n),p){case u.M:i=t[l++],s=t[l++],e=i,n=s,d[0]=i,d[1]=s,f[0]=i,f[1]=s;break;case u.L:o.fromLine(e,n,t[l],t[l+1],d,f),e=t[l++],n=t[l++];break;case u.C:o.fromCubic(e,n,t[l++],t[l++],t[l++],t[l++],t[l],t[l+1],d,f),e=t[l++],n=t[l++];break;case u.Q:o.fromQuadratic(e,n,t[l++],t[l++],t[l],t[l+1],d,f),e=t[l++],n=t[l++];break;case u.A:var g=t[l++],y=t[l++],_=t[l++],x=t[l++],b=t[l++],w=t[l++]+b;l+=1;var S=1-t[l++];1===l&&(i=m(b)*_+g,s=v(b)*x+y),o.fromArc(g,y,_,x,b,w,S,d,f),e=m(w)*_+g,n=v(w)*x+y;break;case u.R:i=e=t[l++],s=n=t[l++];var A=t[l++],M=t[l++];o.fromLine(i,s,i+A,s+M,d,f);break;case u.Z:e=i,n=s;break}r.min(c,c,d),r.max(h,h,f)}return 0===l&&(c[0]=c[1]=h[0]=h[1]=0),new a(c[0],c[1],h[0]-c[0],h[1]-c[1])},rebuildPath:function(t){for(var e,n,i,r,o,a,s=this.data,l=this._ux,c=this._uy,h=this._len,d=0;d<h;){var f=s[d++];switch(1===d&&(i=s[d],r=s[d+1],e=i,n=r),f){case u.M:e=i=s[d++],n=r=s[d++],t.moveTo(i,r);break;case u.L:o=s[d++],a=s[d++],(_(o-i)>l||_(a-r)>c||d===h-1)&&(t.lineTo(o,a),i=o,r=a);break;case u.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case u.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case u.A:var p=s[d++],g=s[d++],y=s[d++],x=s[d++],b=s[d++],w=s[d++],S=s[d++],A=s[d++],M=y>x?y:x,C=y>x?1:y/x,I=y>x?x/y:1,T=Math.abs(y-x)>.001,E=b+w;T?(t.translate(p,g),t.rotate(S),t.scale(C,I),t.arc(0,0,M,b,E,1-A),t.scale(1/C,1/I),t.rotate(-S),t.translate(-p,-g)):t.arc(p,g,M,b,E,1-A),1===d&&(e=m(b)*y+p,n=v(b)*x+g),i=m(E)*y+p,r=v(E)*x+g;break;case u.R:e=i=s[d],n=r=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case u.Z:t.closePath(),i=e,r=n}}}},b.CMD=u;var w=b;t.exports=w},38409:function(t){function e(){}function n(t,e,n,i){for(var r=0,o=e.length,a=0,s=0;r<o;r++){var l=e[r];if(l.removed){for(u=[],c=s;c<s+l.count;c++)u.push(c);l.indices=u,s+=l.count}else{for(var u=[],c=a;c<a+l.count;c++)u.push(c);l.indices=u,a+=l.count,l.added||(s+=l.count)}}return e}function i(t){return{newPos:t.newPos,components:t.components.slice(0)}}e.prototype={diff:function(t,e,r){r||(r=function(t,e){return t===e}),this.equals=r;var o=this;t=t.slice(),e=e.slice();var a=e.length,s=t.length,l=1,u=a+s,c=[{newPos:-1,components:[]}],h=this.extractCommon(c[0],e,t,0);if(c[0].newPos+1>=a&&h+1>=s){for(var d=[],f=0;f<e.length;f++)d.push(f);return[{indices:d,count:e.length}]}function p(){for(var r=-1*l;r<=l;r+=2){var u,h=c[r-1],d=c[r+1],f=(d?d.newPos:0)-r;h&&(c[r-1]=void 0);var p=h&&h.newPos+1<a,g=d&&0<=f&&f<s;if(p||g){if(!p||g&&h.newPos<d.newPos?(u=i(d),o.pushComponent(u.components,void 0,!0)):(u=h,u.newPos++,o.pushComponent(u.components,!0,void 0)),f=o.extractCommon(u,e,t,r),u.newPos+1>=a&&f+1>=s)return n(o,u.components,e,t);c[r]=u}else c[r]=void 0}l++}while(l<=u){var g=p();if(g)return g}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){var r=e.length,o=n.length,a=t.newPos,s=a-i,l=0;while(a+1<r&&s+1<o&&this.equals(e[a+1],n[s+1]))a++,s++,l++;return l&&t.components.push({count:l}),t.newPos=a,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var r=new e;function o(t,e,n){return r.diff(t,e,n)}t.exports=o},66346:function(t,e,n){var i=n(31138),r=n(35574),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=i.create(),h=i.create(),d=i.create();function f(t,e,n){if(0!==t.length){var i,r=t[0],s=r[0],l=r[0],u=r[1],c=r[1];for(i=1;i<t.length;i++)r=t[i],s=o(s,r[0]),l=a(l,r[0]),u=o(u,r[1]),c=a(c,r[1]);e[0]=s,e[1]=u,n[0]=l,n[1]=c}}function p(t,e,n,i,r,s){r[0]=o(t,n),r[1]=o(e,i),s[0]=a(t,n),s[1]=a(e,i)}var g=[],m=[];function v(t,e,n,i,s,l,u,c,h,d){var f,p=r.cubicExtrema,v=r.cubicAt,y=p(t,n,s,u,g);for(h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0,f=0;f<y;f++){var _=v(t,n,s,u,g[f]);h[0]=o(_,h[0]),d[0]=a(_,d[0])}for(y=p(e,i,l,c,m),f=0;f<y;f++){var x=v(e,i,l,c,m[f]);h[1]=o(x,h[1]),d[1]=a(x,d[1])}h[0]=o(t,h[0]),d[0]=a(t,d[0]),h[0]=o(u,h[0]),d[0]=a(u,d[0]),h[1]=o(e,h[1]),d[1]=a(e,d[1]),h[1]=o(c,h[1]),d[1]=a(c,d[1])}function y(t,e,n,i,s,l,u,c){var h=r.quadraticExtremum,d=r.quadraticAt,f=a(o(h(t,n,s),1),0),p=a(o(h(e,i,l),1),0),g=d(t,n,s,f),m=d(e,i,l,p);u[0]=o(t,s,g),u[1]=o(e,l,m),c[0]=a(t,s,g),c[1]=a(e,l,m)}function _(t,e,n,r,o,a,f,p,g){var m=i.min,v=i.max,y=Math.abs(o-a);if(y%u<1e-4&&y>1e-4)return p[0]=t-n,p[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(c[0]=l(o)*n+t,c[1]=s(o)*r+e,h[0]=l(a)*n+t,h[1]=s(a)*r+e,m(p,c,h),v(g,c,h),o%=u,o<0&&(o+=u),a%=u,a<0&&(a+=u),o>a&&!f?a+=u:o<a&&f&&(o+=u),f){var _=a;a=o,o=_}for(var x=0;x<a;x+=Math.PI/2)x>o&&(d[0]=l(x)*n+t,d[1]=s(x)*r+e,m(p,d,p),v(g,d,g))}e.fromPoints=f,e.fromLine=p,e.fromCubic=v,e.fromQuadratic=y,e.fromArc=_},35574:function(t,e,n){var i=n(31138),r=i.create,o=i.distSquare,a=Math.pow,s=Math.sqrt,l=1e-8,u=1e-4,c=s(3),h=1/3,d=r(),f=r(),p=r();function g(t){return t>-l&&t<l}function m(t){return t>l||t<-l}function v(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 y(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function _(t,e,n,i,r,o){var l=i+3*(e-n)-t,u=3*(n-2*e+t),d=3*(e-t),f=t-r,p=u*u-3*l*d,m=u*d-9*l*f,v=d*d-3*u*f,y=0;if(g(p)&&g(m))if(g(u))o[0]=0;else{var _=-d/u;_>=0&&_<=1&&(o[y++]=_)}else{var x=m*m-4*p*v;if(g(x)){var b=m/p,w=(_=-u/l+b,-b/2);_>=0&&_<=1&&(o[y++]=_),w>=0&&w<=1&&(o[y++]=w)}else if(x>0){var S=s(x),A=p*u+1.5*l*(-m+S),M=p*u+1.5*l*(-m-S);A=A<0?-a(-A,h):a(A,h),M=M<0?-a(-M,h):a(M,h);_=(-u-(A+M))/(3*l);_>=0&&_<=1&&(o[y++]=_)}else{var C=(2*p*u-3*l*m)/(2*s(p*p*p)),I=Math.acos(C)/3,T=s(p),E=Math.cos(I),D=(_=(-u-2*T*E)/(3*l),w=(-u+T*(E+c*Math.sin(I)))/(3*l),(-u+T*(E-c*Math.sin(I)))/(3*l));_>=0&&_<=1&&(o[y++]=_),w>=0&&w<=1&&(o[y++]=w),D>=0&&D<=1&&(o[y++]=D)}}return y}function x(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(g(a)){if(m(o)){var c=-l/o;c>=0&&c<=1&&(r[u++]=c)}}else{var h=o*o-4*a*l;if(g(h))r[0]=-o/(2*a);else if(h>0){var d=s(h),f=(c=(-o+d)/(2*a),(-o-d)/(2*a));c>=0&&c<=1&&(r[u++]=c),f>=0&&f<=1&&(r[u++]=f)}}return u}function b(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 w(t,e,n,i,r,a,l,c,h,g,m){var y,_,x,b,w,S=.005,A=1/0;d[0]=h,d[1]=g;for(var M=0;M<1;M+=.05)f[0]=v(t,n,r,l,M),f[1]=v(e,i,a,c,M),b=o(d,f),b<A&&(y=M,A=b);A=1/0;for(var C=0;C<32;C++){if(S<u)break;_=y-S,x=y+S,f[0]=v(t,n,r,l,_),f[1]=v(e,i,a,c,_),b=o(f,d),_>=0&&b<A?(y=_,A=b):(p[0]=v(t,n,r,l,x),p[1]=v(e,i,a,c,x),w=o(p,d),x<=1&&w<A?(y=x,A=w):S*=.5)}return m&&(m[0]=v(t,n,r,l,y),m[1]=v(e,i,a,c,y)),s(A)}function S(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function A(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function M(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),l=t-i,u=0;if(g(o)){if(m(a)){var c=-l/a;c>=0&&c<=1&&(r[u++]=c)}}else{var h=a*a-4*o*l;if(g(h)){c=-a/(2*o);c>=0&&c<=1&&(r[u++]=c)}else if(h>0){var d=s(h),f=(c=(-a+d)/(2*o),(-a-d)/(2*o));c>=0&&c<=1&&(r[u++]=c),f>=0&&f<=1&&(r[u++]=f)}}return u}function C(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function I(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 T(t,e,n,i,r,a,l,c,h){var g,m=.005,v=1/0;d[0]=l,d[1]=c;for(var y=0;y<1;y+=.05){f[0]=S(t,n,r,y),f[1]=S(e,i,a,y);var _=o(d,f);_<v&&(g=y,v=_)}v=1/0;for(var x=0;x<32;x++){if(m<u)break;var b=g-m,w=g+m;f[0]=S(t,n,r,b),f[1]=S(e,i,a,b);_=o(f,d);if(b>=0&&_<v)g=b,v=_;else{p[0]=S(t,n,r,w),p[1]=S(e,i,a,w);var A=o(p,d);w<=1&&A<v?(g=w,v=A):m*=.5}}return h&&(h[0]=S(t,n,r,g),h[1]=S(e,i,a,g)),s(v)}e.cubicAt=v,e.cubicDerivativeAt=y,e.cubicRootAt=_,e.cubicExtrema=x,e.cubicSubdivide=b,e.cubicProjectPoint=w,e.quadraticAt=S,e.quadraticDerivativeAt=A,e.quadraticRootAt=M,e.quadraticExtremum=C,e.quadraticSubdivide=I,e.quadraticProjectPoint=T},105:function(t,e,n){var i=n(87190),r=n(58656),o=r.buildTransformer,a="___zrEVENTSAVED",s=[];function l(t,e,n,i,r){return u(s,e,i,r,!0)&&u(t,n,s[0],s[1])}function u(t,e,n,r,o){if(e.getBoundingClientRect&&i.domSupported&&!d(e)){var s=e[a]||(e[a]={}),l=c(e,s),u=h(l,s,o);if(u)return u(t,n,r),!0}return!1}function c(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;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 h(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],a=e.srcCoords,s=!0,l=[],u=[],c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,f=h.left,p=h.top;l.push(f,p),s=s&&a&&f===a[d]&&p===a[d+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return s&&r?r:(e.srcCoords=l,e[i]=n?o(u,l):o(l,u))}function d(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=l,e.transformCoordWithViewport=u,e.isCanvasEl=d},87190:function(t){var e={};e="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:i(navigator.userAgent);var n=e;function i(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1]),a&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!==typeof document}}t.exports=n},88665:function(t,e,n){var i=n(36112);e.Dispatcher=i;var r=n(87190),o=n(105),a=o.isCanvasEl,s=o.transformCoordWithViewport,l="undefined"!==typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function h(t,e,n,i){return n=n||{},i||!r.canvasSupported?d(t,e,n):r.browser.firefox&&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):d(t,e,n),n}function d(t,e,n){if(r.domSupported&&t.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(a(t)){var l=t.getBoundingClientRect();return n.zrX=i-l.left,void(n.zrY=o-l.top)}if(s(c,t,i,o))return n.zrX=c[0],void(n.zrY=c[1])}n.zrX=n.zrY=0}function f(t){return t||window.event}function p(t,e,n){if(e=f(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&h(t,o,e,n)}else h(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var a=e.button;return null==e.which&&void 0!==a&&u.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function g(t,e,n,i){l?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}function m(t,e,n,i){l?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}var v=l?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function y(t){return 2===t.which||3===t.which}function _(t){return t.which>1}e.clientToLocal=h,e.getNativeEvent=f,e.normalizeEvent=p,e.addEventListener=g,e.removeEventListener=m,e.stop=v,e.isMiddleOrRightButtonOnMouseUpDown=y,e.notLeftMouse=_},58656:function(t,e){var n=Math.log(2);function i(t,e,r,o,a,s){var l=o+"-"+a,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<<u)-1&~a)/n);return t[r][c]}var h=o|1<<r,d=r+1;while(o&1<<d)d++;for(var f=0,p=0,g=0;p<u;p++){var m=1<<p;m&a||(f+=(g%2?-1:1)*t[r][p]*i(t,e-1,d,h,a|m,s),g++)}return s[l]=f,f}function r(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]]],r={},o=i(n,8,0,0,0,r);if(0!==o){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*i(n,7,0===s?1:0,1<<s,1<<l,r)/o*e[s];return function(t,e,n){var i=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/i,t[1]=(e*a[3]+n*a[4]+a[5])/i}}}e.buildTransformer=r},1200:function(t){var e=2311;function n(){return e++}t.exports=n},19559:function(t,e,n){var i=n(49999),r=i.debugMode,o=function(){};1===r&&(o=console.error);var a=o;t.exports=a},13388:function(t,e){var n="undefined"===typeof Float32Array?Array:Float32Array;function i(){var t=new n(6);return r(t),t}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(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 a(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 s(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 l(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 u(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 c(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 h(t){var e=i();return o(e,t),e}e.create=i,e.identity=r,e.copy=o,e.mul=a,e.translate=s,e.rotate=l,e.scale=u,e.invert=c,e.clone=h},33863:function(t){var e=32,n=7;function i(t){var n=0;while(t>=e)n|=1&t,t>>=1;return t+n}function r(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r<n&&i(t[r],t[r-1])<0)r++;o(t,e,r)}else while(r<n&&i(t[r],t[r-1])>=0)r++;return r-e}function o(t,e,n){n--;while(e<n){var i=t[e];t[e++]=t[n],t[n--]=i}}function a(t,e,n,i,r){for(i===e&&i++;i<n;i++){var o,a=t[i],s=e,l=i;while(s<l)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:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function s(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){s=i-r;while(l<s&&o(t,e[n+r+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(l<s&&o(t,e[n+r-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function l(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){s=r+1;while(l<s&&o(t,e[n+r-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l<s&&o(t,e[n+r+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function u(t,e){var i,r,o=n,a=0,u=0;a=t.length;var c=[];function h(t,e){i[u]=t,r[u]=e,u+=1}function d(){while(u>1){var t=u-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;p(t)}}function f(){while(u>1){var t=u-2;t>0&&r[t-1]<r[t+1]&&t--,p(t)}}function p(n){var o=i[n],a=r[n],c=i[n+1],h=r[n+1];r[n]=a+h,n===u-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),u--;var d=l(t[c],t,o,a,0,e);o+=d,a-=d,0!==a&&(h=s(t[o+a-1],t,c,h,h-1,e),0!==h&&(a<=h?g(o,a,c,h):m(o,a,c,h)))}function g(i,r,a,u){var h=0;for(h=0;h<r;h++)c[h]=t[i+h];var d=0,f=a,p=i;if(t[p++]=t[f++],0!==--u)if(1!==r){var g,m,v,y=o;while(1){g=0,m=0,v=!1;do{if(e(t[f],c[d])<0){if(t[p++]=t[f++],m++,g=0,0===--u){v=!0;break}}else if(t[p++]=c[d++],g++,m=0,1===--r){v=!0;break}}while((g|m)<y);if(v)break;do{if(g=l(t[f],c,d,r,0,e),0!==g){for(h=0;h<g;h++)t[p+h]=c[d+h];if(p+=g,d+=g,r-=g,r<=1){v=!0;break}}if(t[p++]=t[f++],0===--u){v=!0;break}if(m=s(c[d],t,f,u,0,e),0!==m){for(h=0;h<m;h++)t[p+h]=t[f+h];if(p+=m,f+=m,u-=m,0===u){v=!0;break}}if(t[p++]=c[d++],1===--r){v=!0;break}y--}while(g>=n||m>=n);if(v)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===r){for(h=0;h<u;h++)t[p+h]=t[f+h];t[p+u]=c[d]}else{if(0===r)throw new Error;for(h=0;h<r;h++)t[p+h]=c[d+h]}}else{for(h=0;h<u;h++)t[p+h]=t[f+h];t[p+u]=c[d]}else for(h=0;h<r;h++)t[p+h]=c[d+h]}function m(i,r,a,u){var h=0;for(h=0;h<u;h++)c[h]=t[a+h];var d=i+r-1,f=u-1,p=a+u-1,g=0,m=0;if(t[p--]=t[d--],0!==--r)if(1!==u){var v=o;while(1){var y=0,_=0,x=!1;do{if(e(c[f],t[d])<0){if(t[p--]=t[d--],y++,_=0,0===--r){x=!0;break}}else if(t[p--]=c[f--],_++,y=0,1===--u){x=!0;break}}while((y|_)<v);if(x)break;do{if(y=r-l(c[f],t,i,r,r-1,e),0!==y){for(p-=y,d-=y,r-=y,m=p+1,g=d+1,h=y-1;h>=0;h--)t[m+h]=t[g+h];if(0===r){x=!0;break}}if(t[p--]=c[f--],1===--u){x=!0;break}if(_=u-s(t[d],c,0,u,u-1,e),0!==_){for(p-=_,f-=_,u-=_,m=p+1,g=f+1,h=0;h<_;h++)t[m+h]=c[g+h];if(u<=1){x=!0;break}}if(t[p--]=t[d--],0===--r){x=!0;break}v--}while(y>=n||_>=n);if(x)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===u){for(p-=r,d-=r,m=p+1,g=d+1,h=r-1;h>=0;h--)t[m+h]=t[g+h];t[p]=c[f]}else{if(0===u)throw new Error;for(g=p-(u-1),h=0;h<u;h++)t[g+h]=c[h]}}else{for(p-=r,d-=r,m=p+1,g=d+1,h=r-1;h>=0;h--)t[m+h]=t[g+h];t[p]=c[f]}else for(g=p-(u-1),h=0;h<u;h++)t[g+h]=c[h]}i=[],r=[],this.mergeRuns=d,this.forceMergeRuns=f,this.pushRun=h}function c(t,n,o,s){o||(o=0),s||(s=t.length);var l=s-o;if(!(l<2)){var c=0;if(l<e)return c=r(t,o,s,n),void a(t,o,s,o+c,n);var h=new u(t,n),d=i(l);do{if(c=r(t,o,s,n),c<d){var f=l;f>d&&(f=d),a(t,o,o+f,o+c,n),c=f}h.pushRun(o,c),h.mergeRuns(),l-=c,o+=c}while(0!==l);h.forceMergeRuns()}}t.exports=c},95289:function(t,e){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},i={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,o=Array.prototype,a=o.forEach,s=o.filter,l=o.slice,u=o.map,c=o.reduce,h={};function d(t,e){"createCanvas"===t&&(y=null),h[t]=e}function f(t){if(null==t||"object"!==typeof t)return t;var e=t,o=r.call(t);if("[object Array]"===o){if(!q(t)){e=[];for(var a=0,s=t.length;a<s;a++)e[a]=f(t[a])}}else if(i[o]){if(!q(t)){var l=t.constructor;if(t.constructor.from)e=l.from(t);else{e=new l(t.length);for(a=0,s=t.length;a<s;a++)e[a]=f(t[a])}}}else if(!n[o]&&!q(t)&&!z(t))for(var u in e={},t)t.hasOwnProperty(u)&&(e[u]=f(t[u]));return e}function p(t,e,n){if(!k(e)||!k(t))return n?f(e):t;for(var i in e)if(e.hasOwnProperty(i)){var r=t[i],o=e[i];!k(o)||!k(r)||L(o)||L(r)||z(o)||z(r)||N(o)||N(r)||q(o)||q(r)?!n&&i in t||(t[i]=f(e[i],!0)):p(r,o,n)}return t}function g(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=p(n,t[i],e);return n}function m(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function v(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}var y,_=function(){return h.createCanvas()};function x(){return y||(y=_().getContext("2d")),y}function b(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function w(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function S(t,e,n){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,v(t,e,n)}function A(t){if(t)return"string"!==typeof t&&"number"===typeof t.length}function M(t,e,n){if(t&&e)if(t.forEach&&t.forEach===a)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;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 C(t,e,n){if(t&&e){if(t.map&&t.map===u)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}}function I(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===c)return t.reduce(e,n,i);for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function T(t,e,n){if(t&&e){if(t.filter&&t.filter===s)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}}function E(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function D(t,e){var n=l.call(arguments,2);return function(){return t.apply(e,n.concat(l.call(arguments)))}}function P(t){var e=l.call(arguments,1);return function(){return t.apply(this,e.concat(l.call(arguments)))}}function L(t){return"[object Array]"===r.call(t)}function R(t){return"function"===typeof t}function O(t){return"[object String]"===r.call(t)}function k(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function N(t){return!!n[r.call(t)]}function F(t){return!!i[r.call(t)]}function z(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function B(t){return t!==t}function G(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]}function V(t,e){return null!=t?t:e}function W(t,e,n){return null!=t?t:null!=e?e:n}function j(){return Function.call.apply(l,arguments)}function H(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 Y(t,e){if(!t)throw new Error(e)}function U(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}h.createCanvas=function(){return document.createElement("canvas")};var X="__ec_primitive__";function Z(t){t[X]=!0}function q(t){return t[X]}function $(t){var e=L(t);this.data={};var n=this;function i(t,i){e?n.set(t,i):n.set(i,t)}t instanceof $?t.each(i):t&&M(t,i)}function K(t){return new $(t)}function J(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function Q(){}$.prototype={constructor:$,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){for(var n in void 0!==e&&(t=D(t,e)),this.data)this.data.hasOwnProperty(n)&&t(this.data[n],n)},removeKey:function(t){delete this.data[t]}},e.$override=d,e.clone=f,e.merge=p,e.mergeAll=g,e.extend=m,e.defaults=v,e.createCanvas=_,e.getContext=x,e.indexOf=b,e.inherits=w,e.mixin=S,e.isArrayLike=A,e.each=M,e.map=C,e.reduce=I,e.filter=T,e.find=E,e.bind=D,e.curry=P,e.isArray=L,e.isFunction=R,e.isString=O,e.isObject=k,e.isBuiltInObject=N,e.isTypedArray=F,e.isDom=z,e.eqNaN=B,e.retrieve=G,e.retrieve2=V,e.retrieve3=W,e.slice=j,e.normalizeCssArray=H,e.assert=Y,e.trim=U,e.setAsPrimitive=Z,e.isPrimitive=q,e.createHashMap=K,e.concatArray=J,e.noop=Q},31138:function(t,e){var n="undefined"===typeof Float32Array?Array:Float32Array;function i(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(d(t))}var h=c;function d(t){return t[0]*t[0]+t[1]*t[1]}var f=d;function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function m(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=_;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=b;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function A(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function C(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function I(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}e.create=i,e.copy=r,e.clone=o,e.set=a,e.add=s,e.scaleAndAdd=l,e.sub=u,e.len=c,e.length=h,e.lenSquare=d,e.lengthSquare=f,e.mul=p,e.div=g,e.dot=m,e.scale=v,e.normalize=y,e.distance=_,e.dist=x,e.distanceSquare=b,e.distSquare=w,e.negate=S,e.lerp=A,e.applyTransform=M,e.min=C,e.max=I},77884:function(t,e,n){var i=n(88665),r=i.addEventListener,o=i.removeEventListener,a=i.normalizeEvent,s=i.getNativeEvent,l=n(95289),u=n(36112),c=n(87190),h=300,d=c.domSupported,f=function(){var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=l.map(t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),p={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function g(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}function m(t){var e=t.pointerType;return"pen"===e||"touch"===e}function v(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 y(t){t&&(t.zrByTouch=!0)}function _(t,e){return a(t.dom,new b(t,e),!0)}function x(t,e){var n=e,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return i}function b(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}var w=b.prototype;w.stopPropagation=w.stopImmediatePropagation=w.preventDefault=l.noop;var S={mousedown:function(t){t=a(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=a(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||E(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=a(this.dom,t),E(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=a(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=x(this,e),this.trigger("mouseout",t)},touchstart:function(t){t=a(this.dom,t),y(t),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),S.mousemove.call(this,t),S.mousedown.call(this,t)},touchmove:function(t){t=a(this.dom,t),y(t),this.handler.processGesture(t,"change"),S.mousemove.call(this,t)},touchend:function(t){t=a(this.dom,t),y(t),this.handler.processGesture(t,"end"),S.mouseup.call(this,t),+new Date-this._lastTouchMoment<h&&S.click.call(this,t)},pointerdown:function(t){S.mousedown.call(this,t)},pointermove:function(t){m(t)||S.mousemove.call(this,t)},pointerup:function(t){S.mouseup.call(this,t)},pointerout:function(t){m(t)||S.mouseout.call(this,t)}};l.each(["click","mousewheel","dblclick","contextmenu"],(function(t){S[t]=function(e){e=a(this.dom,e),this.trigger(t,e)}}));var A={pointermove:function(t){m(t)||A.mousemove.call(this,t)},pointerup:function(t){A.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this._pointerCapturing;E(this,!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function M(t,e){var n=e.domHandlers;c.pointerEventsSupported?l.each(f.pointer,(function(i){I(e,i,(function(e){n[i].call(t,e)}))})):(c.touchEventsSupported&&l.each(f.touch,(function(i){I(e,i,(function(r){n[i].call(t,r),v(e)}))})),l.each(f.mouse,(function(i){I(e,i,(function(r){r=s(r),e.touching||n[i].call(t,r)}))})))}function C(t,e){function n(n){function i(i){i=s(i),x(t,i.target)||(i=_(t,i),e.domHandlers[n].call(t,i))}I(e,n,i,{capture:!0})}c.pointerEventsSupported?l.each(p.pointer,n):c.touchEventsSupported||l.each(p.mouse,n)}function I(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,r(t.domTarget,g(e),n,i)}function T(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&o(t.domTarget,g(n),e[n],t.listenerOpts[n]);t.mounted={}}function E(t,e){if(t._mayPointerCapture=null,d&&t._pointerCapturing^e){t._pointerCapturing=e;var n=t._globalHandlerScope;e?C(t,n):T(n)}}function D(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function P(t,e){u.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new D(t,S),d&&(this._globalHandlerScope=new D(document,A)),this._pointerCapturing=!1,this._mayPointerCapture=null,M(this,this._localHandlerScope)}var L=P.prototype;L.dispose=function(){T(this._localHandlerScope),d&&T(this._globalHandlerScope)},L.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},l.mixin(P,u);var R=P;t.exports=R},24582:function(t,e,n){var i=n(66343),r=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}});t.exports=r},44232:function(t,e,n){var i=n(95289),r=n(96727),o=n(42073),a=n(81619);function s(t){for(var e in t=t||{},o.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?o.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t,this),this.dirty(!1),this},calculateTextPosition:null},i.inherits(s,o),i.mixin(s,a);var l=s;t.exports=l},44696:function(t){var e=function(t){this.colorStops=t||[]};e.prototype={constructor:e,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var n=e;t.exports=n},1635:function(t,e,n){var i=n(44232),r=n(39587),o=n(95289),a=n(30098);function s(t){i.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=a.createOrUpdateImage(i,this._image,this,this.onload);if(r&&a.isImageReady(r)){var o=n.x||0,s=n.y||0,l=n.width,u=n.height,c=r.width/r.height;if(null==l&&null!=u?l=u*c:null==u&&null!=l?u=l/c:null==l&&null==u&&(l=r.width,u=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,d=n.sy||0;t.drawImage(r,h,d,n.sWidth,n.sHeight,o,s,l,u)}else if(n.sx&&n.sy){h=n.sx,d=n.sy;var f=l-h,p=u-d;t.drawImage(r,h,d,f,p,o,s,l,u)}else t.drawImage(r,o,s,l,u);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},o.inherits(s,i);var l=s;t.exports=l},48458:function(t,e,n){var i=n(95289),r=i.inherits,o=n(44232),a=n(39587);function s(t){o.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},s.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},s.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},s.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},s.prototype.brush=function(t,e){for(var n=this._cursor;n<this._displayables.length;n++){var i=this._displayables[n];i.beforeBrush&&i.beforeBrush(t),i.brush(t,n===this._cursor?null:this._displayables[n-1]),i.afterBrush&&i.afterBrush(t)}this._cursor=n;for(n=0;n<this._temporaryDisplayables.length;n++){i=this._temporaryDisplayables[n];i.beforeBrush&&i.beforeBrush(t),i.brush(t,0===n?null:this._temporaryDisplayables[n-1]),i.afterBrush&&i.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var l=[];s.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new a(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(l)),t.union(i)}this._rect=t}return this._rect},s.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(t,e))return!0}return!1},r(s,o);var u=s;t.exports=u},25113:function(t,e,n){var i=n(95289),r=n(44696),o=function(t,e,n,i,o,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,r.call(this,o)};o.prototype={constructor:o},i.inherits(o,r);var a=o;t.exports=a},66343:function(t,e,n){var i=n(44232),r=n(95289),o=n(17004),a=n(70703),s=n(94364),l=s.prototype.getCanvasPattern,u=Math.abs,c=new o(!0);function h(t){i.call(this,t),this.path=null}h.prototype={constructor:h,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var n,i=this.style,r=this.path||c,o=i.hasStroke(),a=i.hasFill(),s=i.fill,u=i.stroke,h=a&&!!s.colorStops,d=o&&!!u.colorStops,f=a&&!!s.image,p=o&&!!u.image;(i.bind(t,this,e),this.setTransform(t),this.__dirty)&&(h&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(t,s,n)),d&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,u,n)));h?t.fillStyle=this._fillGradient:f&&(t.fillStyle=l.call(s,t)),d?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=l.call(u,t));var g=i.lineDash,m=i.lineDashOffset,v=!!t.setLineDash,y=this.getGlobalScale();if(r.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!v&&o?(r.beginPath(t),g&&!v&&(r.setLineDash(g),r.setLineDashOffset(m)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),a)if(null!=i.fillOpacity){var _=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,r.fill(t),t.globalAlpha=_}else r.fill(t);if(g&&v&&(t.setLineDash(g),t.lineDashOffset=m),o)if(null!=i.strokeOpacity){_=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,r.stroke(t),t.globalAlpha=_}else r.stroke(t);g&&v&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new o},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new o),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var a=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=a/s,r.height+=a/s,r.x-=a/s/2,r.y-=a/s/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),a.containStroke(o,s/l,t,e)))return!0}if(r.hasFill())return a.contain(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(r.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},h.extend=function(t){var e=function(e){h.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in r.inherits(e,h),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},r.inherits(h,i);var d=h;t.exports=d},94364:function(t){var e=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};e.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var n=e;t.exports=n},78051:function(t,e,n){var i=n(95289),r=n(44696),o=function(t,e,n,i,o){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=o||!1,r.call(this,i)};o.prototype={constructor:o},i.inherits(o,r);var a=o;t.exports=a},96727:function(t,e,n){var i=n(64180),r=n(90592),o=r.ContextCachedBy,a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],s=function(t){this.extendFrom(t,!1)};function l(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=t.createLinearGradient(i,o,r,a);return s}function u(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*i+n.x,s=s*r+n.y,l*=o);var u=t.createRadialGradient(a,s,0,a,s,l);return u}s.prototype={constructor:s,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){var r=this,s=n&&n.style,l=!s||t.__attrCachedBy!==o.STYLE_BIND;t.__attrCachedBy=o.STYLE_BIND;for(var u=0;u<a.length;u++){var c=a[u],h=c[0];(l||r[h]!==s[h])&&(t[h]=i(t,h,r[h]||c[1]))}if((l||r.fill!==s.fill)&&(t.fillStyle=r.fill),(l||r.stroke!==s.stroke)&&(t.strokeStyle=r.stroke),(l||r.opacity!==s.opacity)&&(t.globalAlpha=null==r.opacity?1:r.opacity),(l||r.blend!==s.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var d=r.lineWidth;t.lineWidth=d/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"===typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i="radial"===e.type?u:l,r=i(t,e,n),o=e.colorStops,a=0;a<o.length;a++)r.addColorStop(o[a].offset,o[a].color);return r}};for(var c=s.prototype,h=0;h<a.length;h++){var d=a[h];d[0]in c||(c[d[0]]=d[1])}s.getGradient=c.getGradient;var f=s;t.exports=f},21927:function(t,e,n){var i=n(44232),r=n(95289),o=n(43407),a=n(95112),s=n(90592),l=s.ContextCachedBy,u=function(t){i.call(this,t)};u.prototype={constructor:u,type:"text",brush:function(t,e){var n=this.style;this.__dirty&&a.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;null!=i&&(i+=""),a.needDrawText(i,n)?(this.setTransform(t),a.renderText(this,t,i,n,null,e),this.restoreTransform(t)):t.__attrCachedBy=l.NONE},getBoundingRect:function(){var t=this.style;if(this.__dirty&&a.normalizeTextStyle(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var n=o.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(n.x+=t.x||0,n.y+=t.y||0,a.getStroke(t.textStroke,t.textStrokeWidth)){var i=t.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},r.inherits(u,i);var c=u;t.exports=c},90592:function(t,e){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},i=9;e.ContextCachedBy=n,e.WILL_BE_RESTORED=i},58458:function(t,e,n){var i=n(87190),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function o(t){return i.browser.ie&&i.browser.version>=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var o=0;o<n.length;o++){var a=n[o],s=a&&a.shape,l=a&&a.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var u=0;u<r.length;u++)r[u][2]=i[r[u][0]],i[r[u][0]]=r[u][1];e=!0;break}}if(t.apply(this,arguments),e)for(u=0;u<r.length;u++)i[r[u][0]]=r[u][2]}:t}t.exports=o},64180:function(t){var e={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function n(t,n,i){return e.hasOwnProperty(n)?i*t.dpr:i}t.exports=n},30098:function(t,e,n){var i=n(60348),r=new i(50);function o(t){if("string"===typeof t){var e=r.get(t);return e&&e.image}return t}function a(t,e,n,i,o){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var a=r.get(t),u={hostEl:n,cb:i,cbPayload:o};return a?(e=a.image,!l(e)&&a.pending.push(u)):(e=new Image,e.onload=e.onerror=s,r.put(t,e.__cachedImgObj={image:e,pending:[u]}),e.src=e.__zrImageSrc=t),e}return t}return e}function s(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function l(t){return t&&t.width&&t.height}e.findExistImage=o,e.createOrUpdateImage=a,e.isImageReady=l},18205:function(t,e,n){var i=n(68504),r=n(73342);function o(t,e,n){var o=e.points,a=e.smooth;if(o&&o.length>=2){if(a&&"spline"!==a){var s=r(o,a,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var l=o.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=o[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===a&&(o=i(o,n)),t.moveTo(o[0][0],o[0][1]);u=1;for(var f=o.length;u<f;u++)t.lineTo(o[u][0],o[u][1])}n&&t.closePath()}}e.buildPath=o},29621:function(t,e){function n(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}e.buildPath=n},73342:function(t,e,n){var i=n(31138),r=i.min,o=i.max,a=i.scale,s=i.distance,l=i.add,u=i.clone,c=i.sub;function h(t,e,n,i){var h,d,f,p,g=[],m=[],v=[],y=[];if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var _=0,x=t.length;_<x;_++)r(f,f,t[_]),o(p,p,t[_]);r(f,f,i[0]),o(p,p,i[1])}for(_=0,x=t.length;_<x;_++){var b=t[_];if(n)h=t[_?_-1:x-1],d=t[(_+1)%x];else{if(0===_||_===x-1){g.push(u(t[_]));continue}h=t[_-1],d=t[_+1]}c(m,d,h),a(m,m,e);var w=s(b,h),S=s(b,d),A=w+S;0!==A&&(w/=A,S/=A),a(v,m,-w),a(y,m,S);var M=l([],b,v),C=l([],b,y);i&&(o(M,M,f),r(M,M,p),o(C,C,f),r(C,C,p)),g.push(M),g.push(C)}return n&&g.push(g.shift()),g}t.exports=h},68504:function(t,e,n){var i=n(31138),r=i.distance;function o(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function a(t,e){for(var n=t.length,i=[],a=0,s=1;s<n;s++)a+=r(t[s-1],t[s]);var l=a/2;l=l<n?n:l;for(s=0;s<l;s++){var u,c,h,d=s/(l-1)*(e?n:n-1),f=Math.floor(d),p=d-f,g=t[f%n];e?(u=t[(f-1+n)%n],c=t[(f+1)%n],h=t[(f+2)%n]):(u=t[0===f?f:f-1],c=t[f>n-2?n-1:f+1],h=t[f>n-3?n-1:f+2]);var m=p*p,v=p*m;i.push([o(u[0],g[0],c[0],h[0],p,m,v),o(u[1],g[1],c[1],h[1],p,m,v)])}return i}t.exports=a},32250:function(t,e){var n=Math.round;function i(t,e,i){if(e){var r=e.x1,a=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=a,t.y1=s,t.y2=l;var u=i&&i.lineWidth;u&&(n(2*r)===n(2*a)&&(t.x1=t.x2=o(r,u,!0)),n(2*s)===n(2*l)&&(t.y1=t.y2=o(s,u,!0)))}}function r(t,e,n){if(e){var i=e.x,r=e.y,a=e.width,s=e.height;t.x=i,t.y=r,t.width=a,t.height=s;var l=n&&n.lineWidth;l&&(t.x=o(i,l,!0),t.y=o(r,l,!0),t.width=Math.max(o(i+a,l,!1)-t.x,0===a?0:1),t.height=Math.max(o(r+s,l,!1)-t.y,0===s?0:1))}}function o(t,e,i){if(!e)return t;var r=n(2*t);return(r+n(e))%2===0?r/2:(r+(i?1:-1))/2}e.subPixelOptimizeLine=i,e.subPixelOptimizeRect=r,e.subPixelOptimize=o},95112:function(t,e,n){var i=n(95289),r=i.retrieve2,o=i.retrieve3,a=i.each,s=i.normalizeCssArray,l=i.isString,u=i.isObject,c=n(43407),h=n(29621),d=n(30098),f=n(64180),p=n(90592),g=p.ContextCachedBy,m=p.WILL_BE_RESTORED,v=c.DEFAULT_FONT,y={left:1,right:1,center:1},_={top:1,bottom:1,middle:1},x=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(t){return A(t),a(t.rich,A),t}function A(t){if(t){t.font=c.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||_[n]?n:"top";var i=t.textPadding;i&&(t.textPadding=s(t.textPadding))}}function M(t,e,n,i,r,o){i.rich?I(t,e,n,i,r,o):C(t,e,n,i,r,o)}function C(t,e,n,i,r,o){"use strict";var a,s=P(i),l=!1,u=e.__attrCachedBy===g.PLAIN_TEXT;o!==m?(o&&(a=o.style,l=!s&&u&&a),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(e.__attrCachedBy=g.NONE);var h=i.font||v;l&&h===(a.font||v)||(e.font=h);var d=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,d=t.__computedFont=e.font);var p=i.textPadding,y=i.textLineHeight,_=t.__textCotentBlock;_&&!t.__dirtyText||(_=t.__textCotentBlock=c.parsePlainText(n,d,p,y,i.truncate));var b=_.outerHeight,S=_.lines,A=_.lineHeight,M=O(w,t,i,r),C=M.baseX,I=M.baseY,T=M.textAlign||"left",D=M.textVerticalAlign;E(e,i,r,C,I);var R=c.adjustTextY(I,b,D),k=C,z=R;if(s||p){var G=c.getWidth(n,d),V=G;p&&(V+=p[1]+p[3]);var W=c.adjustTextX(C,V,T);s&&L(t,e,i,W,R,V,b),p&&(k=B(C,T,p),z+=p[0])}e.textAlign=T,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var j=0;j<x.length;j++){var H=x[j],Y=H[0],U=H[1],X=i[Y];l&&X===a[Y]||(e[U]=f(e,U,X||H[2]))}z+=A/2;var Z=i.textStrokeWidth,q=l?a.textStrokeWidth:null,$=!l||Z!==q,K=!l||$||i.textStroke!==a.textStroke,J=N(i.textStroke,Z),Q=F(i.textFill);if(J&&($&&(e.lineWidth=Z),K&&(e.strokeStyle=J)),Q&&(l&&i.textFill===a.textFill||(e.fillStyle=Q)),1===S.length)J&&e.strokeText(S[0],k,z),Q&&e.fillText(S[0],k,z);else for(j=0;j<S.length;j++)J&&e.strokeText(S[j],k,z),Q&&e.fillText(S[j],k,z),z+=A}function I(t,e,n,i,r,o){o!==m&&(e.__attrCachedBy=g.NONE);var a=t.__textCotentBlock;a&&!t.__dirtyText||(a=t.__textCotentBlock=c.parseRichText(n,i)),T(t,e,a,i,r)}function T(t,e,n,i,r){var o=n.width,a=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=O(w,t,i,r),h=u.baseX,d=u.baseY,f=u.textAlign,p=u.textVerticalAlign;E(e,i,r,h,d);var g=c.adjustTextX(h,a,f),m=c.adjustTextY(d,s,p),v=g,y=m;l&&(v+=l[3],y+=l[0]);var _=v+o;P(i)&&L(t,e,i,g,m,a,s);for(var x=0;x<n.lines.length;x++){var b,S=n.lines[x],A=S.tokens,M=A.length,C=S.lineHeight,I=S.width,T=0,R=v,k=_,N=M-1;while(T<M&&(b=A[T],!b.textAlign||"left"===b.textAlign))D(t,e,b,i,C,y,R,"left"),I-=b.width,R+=b.width,T++;while(N>=0&&(b=A[N],"right"===b.textAlign))D(t,e,b,i,C,y,k,"right"),I-=b.width,k-=b.width,N--;R+=(o-(R-v)-(_-k)-I)/2;while(T<=N)b=A[T],D(t,e,b,i,C,y,R+b.width/2,"center"),R+=b.width,T++;y+=C}}function E(t,e,n,i,r){if(n&&e.textRotation){var o=e.textOrigin;"center"===o?(i=n.width/2+n.x,r=n.height/2+n.y):o&&(i=o[0]+n.x,r=o[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function D(t,e,n,i,a,s,l,u){var c=i.rich[n.styleName]||{};c.text=n.text;var h=n.textVerticalAlign,d=s+a/2;"top"===h?d=s+n.height/2:"bottom"===h&&(d=s+a-n.height/2),!n.isLineHolder&&P(c)&&L(t,e,c,"right"===u?l-n.width:"center"===u?l-n.width/2:l,d-n.height/2,n.width,n.height);var f=n.textPadding;f&&(l=B(l,u,f),d-=n.height/2-f[2]-n.textHeight/2),k(e,"shadowBlur",o(c.textShadowBlur,i.textShadowBlur,0)),k(e,"shadowColor",c.textShadowColor||i.textShadowColor||"transparent"),k(e,"shadowOffsetX",o(c.textShadowOffsetX,i.textShadowOffsetX,0)),k(e,"shadowOffsetY",o(c.textShadowOffsetY,i.textShadowOffsetY,0)),k(e,"textAlign",u),k(e,"textBaseline","middle"),k(e,"font",n.font||v);var p=N(c.textStroke||i.textStroke,m),g=F(c.textFill||i.textFill),m=r(c.textStrokeWidth,i.textStrokeWidth);p&&(k(e,"lineWidth",m),k(e,"strokeStyle",p),e.strokeText(n.text,l,d)),g&&(k(e,"fillStyle",g),e.fillText(n.text,l,d))}function P(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function L(t,e,n,i,r,o,a){var s=n.textBackgroundColor,c=n.textBorderWidth,f=n.textBorderColor,p=l(s);if(k(e,"shadowBlur",n.textBoxShadowBlur||0),k(e,"shadowColor",n.textBoxShadowColor||"transparent"),k(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),k(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),p||c&&f){e.beginPath();var g=n.textBorderRadius;g?h.buildPath(e,{x:i,y:r,width:o,height:a,r:g}):e.rect(i,r,o,a),e.closePath()}if(p)if(k(e,"fillStyle",s),null!=n.fillOpacity){var m=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=m}else e.fill();else if(u(s)){var v=s.image;v=d.createOrUpdateImage(v,null,t,R,s),v&&d.isImageReady(v)&&e.drawImage(v,i,r,o,a)}if(c&&f)if(k(e,"lineWidth",c),k(e,"strokeStyle",f),null!=n.strokeOpacity){m=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=m}else e.stroke()}function R(t,e){e.image=t}function O(t,e,n,i){var r=n.x||0,o=n.y||0,a=n.textAlign,s=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)r=i.x+z(l[0],i.width),o=i.y+z(l[1],i.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(b,n,i):c.calculateTextPosition(b,n,i);r=u.x,o=u.y,a=a||u.textAlign,s=s||u.textVerticalAlign}var h=n.textOffset;h&&(r+=h[0],o+=h[1])}return t=t||{},t.baseX=r,t.baseY=o,t.textAlign=a,t.textVerticalAlign=s,t}function k(t,e,n){return t[e]=f(t,e,n),t[e]}function N(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function F(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function z(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function B(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function G(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}e.normalizeTextStyle=S,e.renderText=M,e.getBoxPosition=O,e.getStroke=N,e.getFill=F,e.parsePercent=z,e.needDrawText=G},81619:function(t,e,n){var i=n(95112),r=n(39587),o=n(90592),a=o.WILL_BE_RESTORED,s=new r,l=function(){};l.prototype={constructor:l,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&i.normalizeTextStyle(n,!0);var r=n.text;if(null!=r&&(r+=""),i.needDrawText(r,n)){t.save();var o=this.transform;n.transformText?this.setTransform(t):o&&(s.copy(e),s.applyTransform(o),e=s),i.renderText(this,t,r,n,e,a),t.restore()}}};var u=l;t.exports=u},64336:function(t,e,n){var i=n(66343),r=i.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)}});t.exports=r},77402:function(t,e,n){var i=n(66343),r=n(31138),o=n(35574),a=o.quadraticSubdivide,s=o.cubicSubdivide,l=o.quadraticAt,u=o.cubicAt,c=o.quadraticDerivativeAt,h=o.cubicDerivativeAt,d=[];function f(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?h:u)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?h:u)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?c:l)(t.x1,t.cpx1,t.x2,e),(n?c:l)(t.y1,t.cpy1,t.y2,e)]}var p=i.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,f=e.percent;0!==f&&(t.moveTo(n,i),null==c||null==h?(f<1&&(a(n,l,r,f,d),l=d[1],r=d[2],a(i,u,o,f,d),u=d[1],o=d[2]),t.quadraticCurveTo(l,u,r,o)):(f<1&&(s(n,l,c,r,f,d),l=d[1],c=d[2],r=d[3],s(i,u,h,o,f,d),u=d[1],h=d[2],o=d[3]),t.bezierCurveTo(l,u,c,h,r,o)))},pointAt:function(t){return f(this.shape,t,!1)},tangentAt:function(t){var e=f(this.shape,t,!0);return r.normalize(e,e)}});t.exports=p},30074:function(t,e,n){var i=n(66343),r=i.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=r},34586:function(t,e,n){var i=n(66343),r=i.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()}});t.exports=r},91636:function(t,e,n){var i=n(66343),r=n(32250),o=r.subPixelOptimizeLine,a={},s=i.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n,i,r,s;this.subPixelOptimize?(o(a,e,this.style),n=a.x1,i=a.y1,r=a.x2,s=a.y2):(n=e.x1,i=e.y1,r=e.x2,s=e.y2);var l=e.percent;0!==l&&(t.moveTo(n,i),l<1&&(r=n*(1-l)+r*l,s=i*(1-l)+s*l),t.lineTo(r,s))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=s},24570:function(t,e,n){var i=n(66343),r=n(18205),o=i.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){r.buildPath(t,e,!0)}});t.exports=o},65542:function(t,e,n){var i=n(66343),r=n(18205),o=i.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){r.buildPath(t,e,!1)}});t.exports=o},15404:function(t,e,n){var i=n(66343),r=n(29621),o=n(32250),a=o.subPixelOptimizeRect,s={},l=i.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n,i,o,l;this.subPixelOptimize?(a(s,e,this.style),n=s.x,i=s.y,o=s.width,l=s.height,s.r=e.r,e=s):(n=e.x,i=e.y,o=e.width,l=e.height),e.r?r.buildPath(t,e):t.rect(n,i,o,l),t.closePath()}});t.exports=l},39496:function(t,e,n){var i=n(66343),r=i.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}});t.exports=r},91036:function(t,e,n){var i=n(66343),r=n(58458),o=i.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:r(i.prototype.brush),buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(a),c=Math.sin(a);t.moveTo(u*r+n,c*r+i),t.lineTo(u*o+n,c*o+i),t.arc(n,i,o,a,s,!l),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,a,l),t.closePath()}});t.exports=o},31615:function(t,e,n){var i=n(56831),r=n(19559),o=n(95289),a=o.isString,s=o.isFunction,l=o.isObject,u=o.isArrayLike,c=o.indexOf,h=function(){this.animators=[]};function d(t,e,n,i,r,o,l,u){a(i)?(o=r,r=i,i=0):s(r)?(o=r,r="linear",i=0):s(i)?(o=i,i=0):s(n)?(o=n,n=500):n||(n=500),t.stopAnimation(),f(t,"",t,e,n,i,u);var c=t.animators.slice(),h=c.length;function d(){h--,h||o&&o()}h||o&&o();for(var p=0;p<c.length;p++)c[p].done(d).start(r,l)}function f(t,e,n,i,r,o,a){var s={},c=0;for(var h in i)i.hasOwnProperty(h)&&(null!=n[h]?l(i[h])&&!u(i[h])?f(t,e?e+"."+h:h,n[h],i[h],r,o,a):(a?(s[h]=n[h],p(t,e,h,i[h])):s[h]=i[h],c++):null==i[h]||a||p(t,e,h,i[h]));c>0&&t.animate(e,!1).when(null==r?500:r,s).delay(o||0)}function p(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}h.prototype={constructor:h,animate:function(t,e){var n,o=!1,a=this,s=this.__zr;if(t){var l=t.split("."),u=a;o="shape"===l[0];for(var h=0,d=l.length;h<d;h++)u&&(u=u[l[h]]);u&&(n=u)}else n=a;if(n){var f=a.animators,p=new i(n,e);return p.during((function(t){a.dirty(o)})).done((function(){f.splice(c(f,p),1)})),f.push(p),s&&s.animation.addAnimator(p),p}r('Property "'+t+'" is not existed in element '+a.id)},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,r,o){d(this,t,e,n,i,r,o)},animateFrom:function(t,e,n,i,r,o){d(this,t,e,n,i,r,o,!0)}};var g=h;t.exports=g},89944:function(t){function e(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function n(t,e){return{target:t,topTarget:e&&e.topTarget}}e.prototype={constructor:e,_dragStart:function(t){var e=t.target;while(e&&!e.draggable)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(n(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,r=t.offsetY,o=i-this._x,a=r-this._y;this._x=i,this._y=r,e.drift(o,a,t),this.dispatchToElement(n(e,t),"drag",t.event);var s=this.findHover(i,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.dispatchToElement(n(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(n(s,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(n(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var i=e;t.exports=i},36112:function(t){var e=Array.prototype.slice,n=function(t){this._$handlers={},this._$eventProcessor=t};function i(t,e){var n=t._$eventProcessor;return null!=e&&n&&n.normalizeQuery&&(e=n.normalizeQuery(e)),e}function r(t,e,n,r,o,a){var s=t._$handlers;if("function"===typeof n&&(o=r,r=n,n=null),!r||!e)return t;n=i(t,n),s[e]||(s[e]=[]);for(var l=0;l<s[e].length;l++)if(s[e][l].h===r)return t;var u={h:r,one:a,query:n,ctx:o||t,callAtLast:r.zrEventfulCallAtLast},c=s[e].length-1,h=s[e][c];return h&&h.callAtLast?s[e].splice(c,0,u):s[e].push(u),t}n.prototype={constructor:n,one:function(t,e,n,i){return r(this,t,e,n,i,!0)},on:function(t,e,n,i){return r(this,t,e,n,i,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){var n=this._$handlers[t],i=this._$eventProcessor;if(n){var r=arguments,o=r.length;o>3&&(r=e.call(r,1));for(var a=n.length,s=0;s<a;){var l=n[s];if(i&&i.filter&&null!=l.query&&!i.filter(t,l.query))s++;else{switch(o){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,r[1]);break;case 3:l.h.call(l.ctx,r[1],r[2]);break;default:l.h.apply(l.ctx,r);break}l.one?(n.splice(s,1),a--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this},triggerWithContext:function(t){var n=this._$handlers[t],i=this._$eventProcessor;if(n){var r=arguments,o=r.length;o>4&&(r=e.call(r,1,r.length-1));for(var a=r[r.length-1],s=n.length,l=0;l<s;){var u=n[l];if(i&&i.filter&&null!=u.query&&!i.filter(t,u.query))l++;else{switch(o){case 1:u.h.call(a);break;case 2:u.h.call(a,r[1]);break;case 3:u.h.call(a,r[1],r[2]);break;default:u.h.apply(a,r);break}u.one?(n.splice(l,1),s--):l++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this}};var o=n;t.exports=o},38051:function(t,e,n){var i=n(13388),r=n(31138),o=i.identity,a=5e-5;function s(t){return t>a||t<-a}var l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var c=[];u.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),r=this.transform;if(n||e){r=r||i.create(),n?this.getLocalTransform(r):o(r),e&&(n?i.mul(r,t.transform,r):i.copy(r,t.transform)),this.transform=r;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(c);var s=c[0]<0?-1:1,l=c[1]<0?-1:1,u=((c[0]-s)*a+s)/c[0]||0,h=((c[1]-l)*a+l)/c[1]||0;r[0]*=u,r[1]*=u,r[2]*=h,r[3]*=h}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,r)}else r&&o(r)},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var h=[],d=i.create();u.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(h,t.invTransform,e),e=h);var n=this.origin;n&&(n[0]||n[1])&&(d[4]=n[0],d[5]=n[1],i.mul(h,e,d),h[4]-=n[0],h[5]-=n[1],e=h),this.setLocalTransform(e)}},u.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},u.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},u.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},l.getLocalTransform=function(t,e){e=e||[],o(e);var n=t.origin,r=t.scale||[1,1],a=t.rotation||0,s=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),i.scale(e,e,r),a&&i.rotate(e,e,a),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=s[0],e[5]+=s[1],e};var f=l;t.exports=f},23947:function(t,e,n){var i=n(73653),r=i.createElement,o=n(95289),a=n(19559),s=n(66343),l=n(1635),u=n(21927),c=n(38409),h=n(31646),d=n(2773),f=n(27346),p=n(8908),g=p.path,m=p.image,v=p.text;function y(t){return parseInt(t,10)}function _(t){return t instanceof s?g:t instanceof l?m:t instanceof u?v:g}function x(t,e){return e&&t&&e.parentNode!==t}function b(t,e,n){if(x(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function w(t,e){if(x(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function S(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function A(t){return t.__textSvgEl}function M(t){return t.__svgEl}var C=function(t,e,n,i){this.root=t,this.storage=e,this._opts=n=o.extend({},n||{});var a=r("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=r("g");a.appendChild(s);var l=r("g");a.appendChild(l),this.gradientManager=new h(i,l),this.clipPathManager=new d(i,l),this.shadowManager=new f(i,l);var u=document.createElement("div");u.style.cssText="overflow:hidden;position:relative",this._svgDom=a,this._svgRoot=l,this._backgroundRoot=s,this._viewport=u,t.appendChild(u),u.appendChild(a),this.resize(n.width,n.height),this._visibleList=[]};function I(t){return function(){a('In SVG mode painter not support method "'+t+'"')}}C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=r("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n=this._svgRoot,i=this._visibleList,r=t.length,o=[];for(e=0;e<r;e++){var a=t[e],s=_(a),l=M(a)||A(a);a.invisible||(a.__dirty&&(s&&s.brush(a),this.clipPathManager.update(a),a.style&&(this.gradientManager.update(a.style.fill),this.gradientManager.update(a.style.stroke),this.shadowManager.update(l,a)),a.__dirty=!1),o.push(a))}var u,h=c(i,o);for(e=0;e<h.length;e++){var d=h[e];if(d.removed)for(var f=0;f<d.count;f++){a=i[d.indices[f]],l=M(a);var p=A(a);S(n,l),S(n,p)}}for(e=0;e<h.length;e++){d=h[e];if(d.added)for(f=0;f<d.count;f++){a=o[d.indices[f]],l=M(a),p=A(a);u?b(n,l,u):w(n,l),l?b(n,p,l):u?b(n,p,u):w(n,p),b(n,p,l),u=p||l||u,this.gradientManager.addWithoutUpdate(l||p,a),this.shadowManager.addWithoutUpdate(l||p,a),this.clipPathManager.markUsed(a)}else if(!d.removed)for(f=0;f<d.count;f++){a=o[d.indices[f]],l=M(a),p=A(a),l=M(a),p=A(a);this.gradientManager.markUsed(a),this.gradientManager.addWithoutUpdate(l||p,a),this.shadowManager.markUsed(a),this.shadowManager.addWithoutUpdate(l||p,a),this.clipPathManager.markUsed(a),p&&b(n,p,l),u=l||p||u}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=o},_getDefs:function(t){var e=this._svgDom,n=e.getElementsByTagName("defs");if(0===n.length){if(t){n=e.insertBefore(r("defs"),e.firstChild);return n.contains||(n.contains=function(t){var e=n.children;if(!e)return!1;for(var i=e.length-1;i>=0;--i)if(e[i]===t)return!0;return!1}),n}return null}return n[0]},resize:function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+"px",r.height=e+"px";var o=this._svgDom;o.setAttribute("width",t),o.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||y(s[n])||y(a.style[n]))-(y(s[r])||0)-(y(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var t=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+t}},o.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(t){C.prototype[t]=I(t)}));var T=C;t.exports=T},73653:function(t,e){var n="http://www.w3.org/2000/svg";function i(t){return document.createElementNS(n,t)}e.createElement=i},8908:function(t,e,n){var i=n(73653),r=i.createElement,o=n(17004),a=n(39587),s=n(13388),l=n(43407),u=n(95112),c=n(21927),h=o.CMD,d=Array.prototype.join,f="none",p=Math.round,g=Math.sin,m=Math.cos,v=Math.PI,y=2*Math.PI,_=180/v,x=1e-4;function b(t){return p(1e4*t)/1e4}function w(t){return t<x&&t>-x}function S(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==f}function A(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==f}function M(t,e){e&&C(t,"transform","matrix("+d.call(e,",")+")")}function C(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function I(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}function T(t,e,n,i){if(S(e,n)){var r=n?e.textFill:e.fill;r="transparent"===r?f:r,C(t,"fill",r),C(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else C(t,"fill",f);if(A(e,n)){var o=n?e.textStroke:e.stroke;o="transparent"===o?f:o,C(t,"stroke",o);var a=n?e.textStrokeWidth:e.lineWidth,s=!n&&e.strokeNoScale?i.getLineScale():1;C(t,"stroke-width",a/s),C(t,"paint-order",n?"stroke":"fill"),C(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity);var l=e.lineDash;l?(C(t,"stroke-dasharray",e.lineDash.join(",")),C(t,"stroke-dashoffset",p(e.lineDashOffset||0))):C(t,"stroke-dasharray",""),e.lineCap&&C(t,"stroke-linecap",e.lineCap),e.lineJoin&&C(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&C(t,"stroke-miterlimit",e.miterLimit)}else C(t,"stroke",f)}function E(t){for(var e=[],n=t.data,i=t.len(),r=0;r<i;){var o=n[r++],a="",s=0;switch(o){case h.M:a="M",s=2;break;case h.L:a="L",s=2;break;case h.Q:a="Q",s=4;break;case h.C:a="C",s=6;break;case h.A:var l=n[r++],u=n[r++],c=n[r++],d=n[r++],f=n[r++],x=n[r++],S=n[r++],A=n[r++],M=Math.abs(x),C=w(M-y)||(A?x>=y:-x>=y),I=x>0?x%y:x%y+y,T=!1;T=!!C||!w(M)&&I>=v===!!A;var E=b(l+c*m(f)),D=b(u+d*g(f));C&&(x=A?y-1e-4:1e-4-y,T=!0,9===r&&e.push("M",E,D));var P=b(l+c*m(f+x)),L=b(u+d*g(f+x));e.push("A",b(c),b(d),p(S*_),+T,+A,P,L);break;case h.Z:a="Z";break;case h.R:P=b(n[r++]),L=b(n[r++]);var R=b(n[r++]),O=b(n[r++]);e.push("M",P,L,"L",P+R,L,"L",P+R,L+O,"L",P,L+O,"L",P,L);break}a&&e.push(a);for(var k=0;k<s;k++)e.push(b(n[r++]))}return e.join(" ")}var D={brush:function(t){var e=t.style,n=t.__svgEl;n||(n=r("path"),t.__svgEl=n),t.path||t.createPathProxy();var i=t.path;if(t.__dirtyPath){i.beginPath(),i.subPixelOptimize=!1,t.buildPath(i,t.shape),t.__dirtyPath=!1;var o=E(i);o.indexOf("NaN")<0&&C(n,"d",o)}T(n,e,!1,t),M(n,t.transform),null!=e.text?F(t,t.getBoundingRect()):V(t)}},P={brush:function(t){var e=t.style,n=e.image;if(n instanceof HTMLImageElement){var i=n.src;n=i}if(n){var o=e.x||0,a=e.y||0,s=e.width,l=e.height,u=t.__svgEl;u||(u=r("image"),t.__svgEl=u),n!==t.__imageSrc&&(I(u,"href",n),t.__imageSrc=n),C(u,"width",s),C(u,"height",l),C(u,"x",o),C(u,"y",a),M(u,t.transform),null!=e.text?F(t,t.getBoundingRect()):V(t)}}},L={},R=new a,O={},k=[],N={left:"start",right:"end",center:"middle",middle:"middle"},F=function(t,e){var n=t.style,i=t.transform,o=t instanceof c||n.transformText;t.__dirty&&u.normalizeTextStyle(n,!0);var a=n.text;if(null!=a&&(a+=""),u.needDrawText(a,n)){null==a&&(a=""),!o&&i&&(R.copy(e),R.applyTransform(i),e=R);var s=t.__textSvgEl;s||(s=r("text"),t.__textSvgEl=s);var h=s.style,d=n.font||l.DEFAULT_FONT,f=s.__computedFont;d!==s.__styleFont&&(h.font=s.__styleFont=d,f=s.__computedFont=h.font);var p=n.textPadding,g=n.textLineHeight,m=t.__textCotentBlock;m&&!t.__dirtyText||(m=t.__textCotentBlock=l.parsePlainText(a,f,p,g,n.truncate));var v=m.outerHeight,y=m.lineHeight;u.getBoxPosition(O,t,n,e);var _=O.baseX,x=O.baseY,b=O.textAlign||"left",w=O.textVerticalAlign;z(s,o,i,n,e,_,x);var S=l.adjustTextY(x,v,w),A=_,M=S;p&&(A=B(_,b,p),M+=p[0]),M+=y/2,T(s,n,!0,t);var C=m.canCacheByTextString,I=t.__tspanList||(t.__tspanList=[]),E=I.length;if(C&&t.__canCacheByTextString&&t.__text===a){if(t.__dirtyText&&E)for(var D=0;D<E;++D)G(I[D],b,A,M+D*y)}else{t.__text=a,t.__canCacheByTextString=C;var P=m.lines,L=P.length;for(D=0;D<L;D++){var k=I[D],N=P[D];k?k.__zrText!==N&&(k.innerHTML="",k.appendChild(document.createTextNode(N))):(k=I[D]=r("tspan"),s.appendChild(k),k.appendChild(document.createTextNode(N))),G(k,b,A,M+D*y)}if(E>L){for(;D<E;D++)s.removeChild(I[D]);I.length=L}}}};function z(t,e,n,i,r,o,a){s.identity(k),e&&n&&s.copy(k,n);var l=i.textRotation;if(r&&l){var u=i.textOrigin;"center"===u?(o=r.width/2+r.x,a=r.height/2+r.y):u&&(o=u[0]+r.x,a=u[1]+r.y),k[4]-=o,k[5]-=a,s.rotate(k,k,l),k[4]+=o,k[5]+=a}M(t,k)}function B(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function G(t,e,n,i){C(t,"dominant-baseline","middle"),C(t,"text-anchor",N[e]),C(t,"x",n),C(t,"y",i)}function V(t){t&&t.__textSvgEl&&(t.__textSvgEl.parentNode&&t.__textSvgEl.parentNode.removeChild(t.__textSvgEl),t.__textSvgEl=null,t.__tspanList=[],t.__text=null)}L.drawRectText=F,L.brush=function(t){var e=t.style;null!=e.text?F(t,!1):V(t)},e.path=D,e.image=P,e.text=L},2773:function(t,e,n){var i=n(36633),r=n(95289),o=n(13388);function a(t,e){i.call(this,t,e,"clipPath","__clippath_in_use__")}r.inherits(a,i),a.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var n=this.getTextSvgElement(t);n&&this.updateDom(n,t.__clipPaths,!0),this.markUsed(t)},a.prototype.updateDom=function(t,e,n){if(e&&e.length>0){var i,r,a=this.getDefs(!0),s=e[0],l=n?"_textDom":"_dom";s[l]?(r=s[l].getAttribute("id"),i=s[l],a.contains(i)||a.appendChild(i)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",r),a.appendChild(i),s[l]=i);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!n){var c=Array.prototype.slice.call(s.transform);o.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var h=this.getSvgElement(s);i.innerHTML="",i.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(i,e.slice(1),n)}else t&&t.setAttribute("clip-path","none")},a.prototype.markUsed=function(t){var e=this;t.__clipPaths&&r.each(t.__clipPaths,(function(t){t._dom&&i.prototype.markUsed.call(e,t._dom),t._textDom&&i.prototype.markUsed.call(e,t._textDom)}))};var s=a;t.exports=s},36633:function(t,e,n){var i=n(73653),r=i.createElement,o=n(95289),a=n(66343),s=n(1635),l=n(21927),u=n(8908),c=u.path,h=u.image,d=u.text,f="0",p="1";function g(t,e,n,i,r){this._zrId=t,this._svgRoot=e,this._tagNames="string"===typeof n?[n]:n,this._markLabel=i,this._domName=r||"_dom",this.nextId=0}g.prototype.createElement=r,g.prototype.getDefs=function(t){var e=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");return 0===n.length?t?(n=e.insertBefore(this.createElement("defs"),e.firstChild),n.contains||(n.contains=function(t){var e=n.children;if(!e)return!1;for(var i=e.length-1;i>=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},g.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"===typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},g.prototype.addDom=function(t){var e=this.getDefs(!0);e.appendChild(t)},g.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},g.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return o.each(this._tagNames,(function(n){var i=t.getElementsByTagName(n);e=e.concat([].slice.call(i))})),e},g.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;o.each(t,(function(t){t[e._markLabel]=f}))},g.prototype.markUsed=function(t){t&&(t[this._markLabel]=p)},g.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),n=this;o.each(e,(function(e){e[n._markLabel]!==p&&t.removeChild(e)}))}},g.prototype.getSvgProxy=function(t){return t instanceof a?c:t instanceof s?h:t instanceof l?d:c},g.prototype.getTextSvgElement=function(t){return t.__textSvgEl},g.prototype.getSvgElement=function(t){return t.__svgEl};var m=g;t.exports=m},31646:function(t,e,n){var i=n(36633),r=n(95289),o=n(19559),a=n(56607);function s(t,e){i.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}r.inherits(s,i),s.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;r.each(["fill","stroke"],(function(i){if(e.style[i]&&("linear"===e.style[i].type||"radial"===e.style[i].type)){var r,o=e.style[i],a=n.getDefs(!0);o._dom?(r=o._dom,a.contains(o._dom)||n.addDom(r)):r=n.add(o),n.markUsed(e);var s=r.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}}))}},s.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return o("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},s.prototype.update=function(t){var e=this;i.prototype.update.call(this,t,(function(){var n=t.type,i=t._dom.tagName;"linear"===n&&"linearGradient"===i||"radial"===n&&"radialGradient"===i?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},s.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void o("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,r=n.length;i<r;++i){var s=this.createElement("stop");s.setAttribute("offset",100*n[i].offset+"%");var l=n[i].color;if(l.indexOf("rgba")>-1){var u=a.parse(l)[3],c=a.toHex(l);s.setAttribute("stop-color","#"+c),s.setAttribute("stop-opacity",u)}else s.setAttribute("stop-color",n[i].color);e.appendChild(s)}t._dom=e},s.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&i.prototype.markUsed.call(this,e._dom),e=t.style.stroke,e&&e._dom&&i.prototype.markUsed.call(this,e._dom)}};var l=s;t.exports=l},27346:function(t,e,n){var i=n(36633),r=n(95289);function o(t,e){i.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function a(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}r.inherits(o,i),o.prototype.addWithoutUpdate=function(t,e){if(e&&a(e.style)){var n;if(e._shadowDom){n=e._shadowDom;var i=this.getDefs(!0);i.contains(e._shadowDom)||this.addDom(n)}else n=this.add(e);this.markUsed(e);var r=n.getAttribute("id");t.style.filter="url(#"+r+")"}},o.prototype.add=function(t){var e=this.createElement("filter");return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},o.prototype.update=function(t,e){var n=e.style;if(a(n)){var r=this;i.prototype.update.call(this,e,(function(){r.updateDom(e,e._shadowDom)}))}else this.remove(t,e)},o.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter="")},o.prototype.updateDom=function(t,e){var n=e.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var i,r,o,a,s=t.style,l=t.scale&&t.scale[0]||1,u=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,r=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);i=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}n.setAttribute("dx",i/l),n.setAttribute("dy",r/u),n.setAttribute("flood-color",a);var c=o/2/l,h=o/2/u,d=c+" "+h;n.setAttribute("stdDeviation",d),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(n),t._shadowDom=e},o.prototype.markUsed=function(t){t._shadowDom&&i.prototype.markUsed.call(this,t._shadowDom)};var s=o;t.exports=s},39590:function(t,e,n){n(8908);var i=n(97683),r=i.registerPainter,o=n(23947);r("svg",o)},56607:function(t,e,n){var i=n(60348),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return t=Math.round(t),t<0?0:t>255?255:t}function a(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function u(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i(20),g=null;function m(t,e){g&&f(g,e),g=p.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var n=p.get(t);if(n)return f(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in r)return f(e,r[i]),m(t,e),e;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===i.length){var s=i.substr(0,o),c=i.substr(o+1,a-(o+1)).split(","),h=1;switch(s){case"rgba":if(4!==c.length)return void d(e,0,0,0,1);h=u(c.pop());case"rgb":return 3!==c.length?void d(e,0,0,0,1):(d(e,l(c[0]),l(c[1]),l(c[2]),h),m(t,e),e);case"hsla":return 4!==c.length?void d(e,0,0,0,1):(c[3]=u(c[3]),y(c,e),m(t,e),e);case"hsl":return 3!==c.length?void d(e,0,0,0,1):(y(c,e),m(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=4095?(d(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),m(t,e),e):void d(e,0,0,0,1)}if(7===i.length){g=parseInt(i.substr(1),16);return g>=0&&g<=16777215?(d(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),m(t,e),e):void d(e,0,0,0,1)}}}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=u(t[1]),r=u(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return e=e||[],d(e,o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function x(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return T(n,4===n.length?"rgba":"rgb")}}function b(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),l=e[r],u=e[a],c=i-r;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}}var S=w;function A(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),l=v(e[r]),u=v(e[a]),c=i-r,d=T([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return n?{color:d,leftIndex:r,rightIndex:a,value:i}:d}}var M=A;function C(t,e,n,i){if(t=v(t),t)return t=_(t),null!=e&&(t[0]=a(e)),null!=n&&(t[1]=u(n)),null!=i&&(t[2]=u(i)),T(y(t),"rgba")}function I(t,e){if(t=v(t),t&&null!=e)return t[3]=s(e),T(t,"rgba")}function T(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+")"}}e.parse=v,e.lift=x,e.toHex=b,e.fastLerp=w,e.fastMapToColor=S,e.lerp=A,e.mapToColor=M,e.modifyHSL=C,e.modifyAlpha=I,e.stringify=T},9717:function(t,e,n){var i=n(75738),r=n(1635),o=n(21927),a=n(30074),s=n(15404),l=n(34586),u=n(91636),c=n(66343),h=n(24570),d=n(65542),f=n(25113),p=n(96727),g=n(13388),m=n(15009),v=m.createFromString,y=n(95289),_=y.isString,x=y.extend,b=y.defaults,w=y.trim,S=y.each,A=/[\s,]+/;function M(t){if(_(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}9===t.nodeType&&(t=t.firstChild);while("svg"!==t.nodeName.toLowerCase()||1!==t.nodeType)t=t.nextSibling;return t}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(t,e){e=e||{};var n=M(t);if(!n)throw new Error("Illegal svg");var r=new i;this._root=r;var o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(l)&&(l=null),R(n,r,null,!0);var u,c,h=n.firstChild;while(h)this._parseNode(h,r),h=h.nextSibling;if(o){var d=w(o).split(A);d.length>=4&&(u={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(u&&null!=a&&null!=l&&(c=G(u,a,l),!e.ignoreViewBox)){var f=r;r=new i,r.add(f),f.scale=c.scale.slice(),f.position=c.position.slice()}return e.ignoreRootClip||null==a||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:a,height:l}})),{root:r,width:a,height:l,viewBoxRect:u,viewBoxTransform:c}},C.prototype._parseNode=function(t,e){var n,i=t.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){var r=T[i];if(r){var o=r.call(this,t),a=t.getAttribute("id");a&&(this._defs[a]=o)}}else{r=I[i];r&&(n=r.call(this,t,e),e.add(n))}var s=t.firstChild;while(s)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},C.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new o({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});D(e,r),R(t,r,this._defs);var a=r.style.fontSize;a&&a<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=a/9,r.scale[1]*=a/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var I={g:function(t,e){var n=new i;return D(e,n),R(t,n,this._defs),n},rect:function(t,e){var n=new s;return D(e,n),R(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new a;return D(e,n),R(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new u;return D(e,n),R(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new l;return D(e,n),R(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=P(n));var i=new h({shape:{points:n||[]}});return D(e,i),R(t,i,this._defs),i},polyline:function(t,e){var n=new c;D(e,n),R(t,n,this._defs);var i=t.getAttribute("points");i&&(i=P(i));var r=new d({shape:{points:i||[]}});return r},image:function(t,e){var n=new r;return D(e,n),R(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,r=t.getAttribute("y")||0,o=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new i;return D(e,s),R(t,s,this._defs),s},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var o=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0,s=new i;return D(e,s),R(t,s,this._defs),this._textX+=o,this._textY+=a,s},path:function(t,e){var n=t.getAttribute("d")||"",i=v(n);return D(e,i),R(t,i,this._defs),i}},T={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),o=new f(e,n,i,r);return E(t,o),o},radialgradient:function(t){}};function E(t,e){var n=t.firstChild;while(n){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}function D(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),b(e.__inheritedStyle,t.__inheritedStyle))}function P(t){for(var e=w(t).split(A),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}var L={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function R(t,e,n,i){var r=e.__inheritedStyle||{},o="text"===e.type;if(1===t.nodeType&&(F(t,e),x(r,B(t)),!i))for(var a in L)if(L.hasOwnProperty(a)){var s=t.getAttribute(a);null!=s&&(r[L[a]]=s)}var l=o?"textFill":"fill",u=o?"textStroke":"stroke";e.style=e.style||new p;var c=e.style;null!=r.fill&&c.set(l,k(r.fill,n)),null!=r.stroke&&c.set(u,k(r.stroke,n)),S(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&o?"textStrokeWidth":t;null!=r[t]&&c.set(e,parseFloat(r[t]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),S(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=r[t]&&c.set(t,r[t])})),r.lineDash&&(e.style.lineDash=w(r.lineDash).split(A)),c[u]&&"none"!==c[u]&&(e[u]=!0),e.__inheritedStyle=r}var O=/url\(\s*#(.*?)\)/;function k(t,e){var n=e&&t&&t.match(O);if(n){var i=w(n[1]),r=e[i];return r}return t}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function F(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,r=[];n.replace(N,(function(t,e,n){r.push(e,n)}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1];switch(i=i||g.create(),s){case"translate":a=w(a).split(A),g.translate(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=w(a).split(A),g.scale(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=w(a).split(A),g.rotate(i,i,parseFloat(a[0]));break;case"skew":a=w(a).split(A),console.warn("Skew transform is not supported yet");break;case"matrix":a=w(a).split(A);i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5]);break}}e.setLocalTransform(i)}}var z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function B(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};z.lastIndex=0;while(null!=(i=z.exec(e)))r[i[1]]=i[2];for(var o in L)L.hasOwnProperty(o)&&null!=r[o]&&(n[L[o]]=r[o]);return n}function G(t,e,n){var i=e/t.width,r=n/t.height,o=Math.min(i,r),a=[o,o],s=[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+n/2];return{scale:a,position:s}}function V(t,e){var n=new C;return n.parse(t,e)}e.parseXML=M,e.makeViewBoxTransform=G,e.parseSVG=V},15009:function(t,e,n){var i=n(66343),r=n(17004),o=n(92291),a=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.PI,c=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},h=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(c(t)*c(e))},d=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(h(t,e))};function f(t,e,n,i,r,o,c,f,p,g,m){var v=p*(u/180),y=l(v)*(t-n)/2+s(v)*(e-i)/2,_=-1*s(v)*(t-n)/2+l(v)*(e-i)/2,x=y*y/(c*c)+_*_/(f*f);x>1&&(c*=a(x),f*=a(x));var b=(r===o?-1:1)*a((c*c*(f*f)-c*c*(_*_)-f*f*(y*y))/(c*c*(_*_)+f*f*(y*y)))||0,w=b*c*_/f,S=b*-f*y/c,A=(t+n)/2+l(v)*w-s(v)*S,M=(e+i)/2+s(v)*w+l(v)*S,C=d([1,0],[(y-w)/c,(_-S)/f]),I=[(y-w)/c,(_-S)/f],T=[(-1*y-w)/c,(-1*_-S)/f],E=d(I,T);h(I,T)<=-1&&(E=u),h(I,T)>=1&&(E=0),0===o&&E>0&&(E-=2*u),1===o&&E<0&&(E+=2*u),m.addData(g,A,M,c,f,C,E,v,o)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m(t){if(!t)return new r;for(var e,n=0,i=0,o=n,a=i,s=new r,l=r.CMD,u=t.match(p),c=0;c<u.length;c++){for(var h,d=u[c],m=d.charAt(0),v=d.match(g)||[],y=v.length,_=0;_<y;_++)v[_]=parseFloat(v[_]);var x=0;while(x<y){var b,w,S,A,M,C,I,T=n,E=i;switch(m){case"l":n+=v[x++],i+=v[x++],h=l.L,s.addData(h,n,i);break;case"L":n=v[x++],i=v[x++],h=l.L,s.addData(h,n,i);break;case"m":n+=v[x++],i+=v[x++],h=l.M,s.addData(h,n,i),o=n,a=i,m="l";break;case"M":n=v[x++],i=v[x++],h=l.M,s.addData(h,n,i),o=n,a=i,m="L";break;case"h":n+=v[x++],h=l.L,s.addData(h,n,i);break;case"H":n=v[x++],h=l.L,s.addData(h,n,i);break;case"v":i+=v[x++],h=l.L,s.addData(h,n,i);break;case"V":i=v[x++],h=l.L,s.addData(h,n,i);break;case"C":h=l.C,s.addData(h,v[x++],v[x++],v[x++],v[x++],v[x++],v[x++]),n=v[x-2],i=v[x-1];break;case"c":h=l.C,s.addData(h,v[x++]+n,v[x++]+i,v[x++]+n,v[x++]+i,v[x++]+n,v[x++]+i),n+=v[x-2],i+=v[x-1];break;case"S":b=n,w=i;var D=s.len(),P=s.data;e===l.C&&(b+=n-P[D-4],w+=i-P[D-3]),h=l.C,T=v[x++],E=v[x++],n=v[x++],i=v[x++],s.addData(h,b,w,T,E,n,i);break;case"s":b=n,w=i;D=s.len(),P=s.data;e===l.C&&(b+=n-P[D-4],w+=i-P[D-3]),h=l.C,T=n+v[x++],E=i+v[x++],n+=v[x++],i+=v[x++],s.addData(h,b,w,T,E,n,i);break;case"Q":T=v[x++],E=v[x++],n=v[x++],i=v[x++],h=l.Q,s.addData(h,T,E,n,i);break;case"q":T=v[x++]+n,E=v[x++]+i,n+=v[x++],i+=v[x++],h=l.Q,s.addData(h,T,E,n,i);break;case"T":b=n,w=i;D=s.len(),P=s.data;e===l.Q&&(b+=n-P[D-4],w+=i-P[D-3]),n=v[x++],i=v[x++],h=l.Q,s.addData(h,b,w,n,i);break;case"t":b=n,w=i;D=s.len(),P=s.data;e===l.Q&&(b+=n-P[D-4],w+=i-P[D-3]),n+=v[x++],i+=v[x++],h=l.Q,s.addData(h,b,w,n,i);break;case"A":S=v[x++],A=v[x++],M=v[x++],C=v[x++],I=v[x++],T=n,E=i,n=v[x++],i=v[x++],h=l.A,f(T,E,n,i,C,I,S,A,M,h,s);break;case"a":S=v[x++],A=v[x++],M=v[x++],C=v[x++],I=v[x++],T=n,E=i,n+=v[x++],i+=v[x++],h=l.A,f(T,E,n,i,C,I,S,A,M,h,s);break}}"z"!==m&&"Z"!==m||(h=l.Z,s.addData(h),n=o,i=a),e=h}return s.toStatic(),s}function v(t,e){var n=m(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e)}else{e=t;n.rebuildPath(e)}},e.applyTransform=function(t){o(n,t),this.dirty(!0)},e}function y(t,e){return new i(v(t,e))}function _(t,e){return i.extend(v(t,e))}function x(t,e){for(var n=[],r=t.length,o=0;o<r;o++){var a=t[o];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}var s=new i(e);return s.createPathProxy(),s.buildPath=function(t){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e)},s}e.createFromString=y,e.extendFromString=_,e.mergePath=x},92291:function(t,e,n){var i=n(17004),r=n(31138),o=r.applyTransform,a=i.CMD,s=[[],[],[]],l=Math.sqrt,u=Math.atan2;function c(t,e){var n,i,r,c,h,d=t.data,f=a.M,p=a.C,g=a.L,m=a.R,v=a.A,y=a.Q;for(r=0,c=0;r<d.length;){switch(n=d[r++],c=r,i=0,n){case f:i=1;break;case g:i=1;break;case p:i=3;break;case y:i=2;break;case v:var _=e[4],x=e[5],b=l(e[0]*e[0]+e[1]*e[1]),w=l(e[2]*e[2]+e[3]*e[3]),S=u(-e[1]/w,e[0]/b);d[r]*=b,d[r++]+=_,d[r]*=w,d[r++]+=x,d[r++]*=b,d[r++]*=w,d[r++]+=S,d[r++]+=S,r+=2,c=r;break;case m:A[0]=d[r++],A[1]=d[r++],o(A,A,e),d[c++]=A[0],d[c++]=A[1],A[0]+=d[r++],A[1]+=d[r++],o(A,A,e),d[c++]=A[0],d[c++]=A[1]}for(h=0;h<i;h++){var A=s[h];A[0]=d[r++],A[1]=d[r++],o(A,A,e),d[c++]=A[0],d[c++]=A[1]}}}t.exports=c},51722:function(t,e,n){var i=n(19559),r=n(96670),o=n(95289),a=o.each;function s(t){return parseInt(t,10)}function l(t,e){r.initVML(),this.root=t,this.storage=e;var n=document.createElement("div"),i=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",t.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize();var o=e.delFromStorage,a=e.addToStorage;e.delFromStorage=function(t){o.call(e,t),t&&t.onRemove&&t.onRemove(i)},e.addToStorage=function(t){t.onAdd&&t.onAdd(i),a.call(e,t)},this._firstPaint=!0}function u(t){return function(){i('In IE8.0 VML mode painter not support method "'+t+'"')}}l.prototype={constructor:l,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,n=0;n<t.length;n++){var i=t[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(e),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(e),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,e),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!==t||this._height!==e){this._width=t,this._height=e;var n=this._vmlViewport.style;n.width=t+"px",n.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||s(e.width))-s(e.paddingLeft)-s(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||s(e.height))-s(e.paddingTop)-s(e.paddingBottom)|0}},a(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){l.prototype[t]=u(t)}));var c=l;t.exports=c},96670:function(t,e,n){var i,r=n(87190),o="urn:schemas-microsoft-com:vml",a="undefined"===typeof window?null:window,s=!1,l=a&&a.document;function u(t){return i(t)}if(l&&!r.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",o),i=function(t){return l.createElement("<zrvml:"+t+' class="zrvml">')}}catch(h){i=function(t){return l.createElement("<"+t+' xmlns="'+o+'" class="zrvml">')}}function c(){if(!s&&l){s=!0;var t=l.styleSheets;t.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}e.doc=l,e.createNode=u,e.initVML=c},84833:function(t,e,n){var i=n(87190),r=n(31138),o=r.applyTransform,a=n(39587),s=n(56607),l=n(43407),u=n(95112),c=n(81619),h=n(44232),d=n(1635),f=n(21927),p=n(66343),g=n(17004),m=n(44696),v=n(96670),y=g.CMD,_=Math.round,x=Math.sqrt,b=Math.abs,w=Math.cos,S=Math.sin,A=Math.max;if(!i.canvasSupported){var M=",",C="progid:DXImageTransform.Microsoft",I=21600,T=I/2,E=1e5,D=1e3,P=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=I+","+I,t.coordorigin="0,0"},L=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},R=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},O=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},k=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},N=function(t,e,n){return(parseFloat(t)||0)*E+(parseFloat(e)||0)*D+n},F=u.parsePercent,z=function(t,e,n){var i=s.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=R(i[0],i[1],i[2]),t.opacity=n*i[3])},B=function(t){var e=s.parse(t);return[R(e[0],e[1],e[2]),e[3]]},G=function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof m){var r,a=0,s=[0,0],l=0,u=1,c=n.getBoundingRect(),h=c.width,d=c.height;if("linear"===i.type){r="gradient";var f=n.transform,p=[i.x*h,i.y*d],g=[i.x2*h,i.y2*d];f&&(o(p,p,f),o(g,g,f));var v=g[0]-p[0],y=g[1]-p[1];a=180*Math.atan2(v,y)/Math.PI,a<0&&(a+=360),a<1e-6&&(a=0)}else{r="gradientradial";p=[i.x*h,i.y*d],f=n.transform;var _=n.scale,x=h,b=d;s=[(p[0]-c.x)/x,(p[1]-c.y)/b],f&&o(p,p,f),x/=_[0]*I,b/=_[1]*I;var w=A(x,b);l=0/w,u=2*i.r/w-l}var S=i.colorStops.slice();S.sort((function(t,e){return t.offset-e.offset}));for(var M=S.length,C=[],T=[],E=0;E<M;E++){var D=S[E],P=B(D.color);T.push(D.offset*u+l+" "+P[0]),0!==E&&E!==M-1||C.push(P)}if(M>=2){var L=C[0][0],R=C[1][0],O=C[0][1]*e.opacity,k=C[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=L,t.color2=R,t.colors=T.join(","),t.opacity=k,t.opacity2=O}"radial"===r&&(t.focusposition=s.join(","))}else z(t,i,e.opacity)},V=function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof m||z(t,e.stroke,e.opacity)},W=function(t,e,n,i){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof m&&k(t,o),o||(o=v.createNode(e)),r?G(o,n,i):V(o,n),O(t,o)):(t[r?"filled":"stroked"]="false",k(t,o))},j=[[],[],[]],H=function(t,e){var n,i,r,a,s,l,u=y.M,c=y.C,h=y.L,d=y.A,f=y.Q,p=[],g=t.data,m=t.len();for(a=0;a<m;){switch(r=g[a++],i="",n=0,r){case u:i=" m ",n=1,s=g[a++],l=g[a++],j[0][0]=s,j[0][1]=l;break;case h:i=" l ",n=1,s=g[a++],l=g[a++],j[0][0]=s,j[0][1]=l;break;case f:case c:i=" c ",n=3;var v,b,A=g[a++],C=g[a++],E=g[a++],D=g[a++];r===f?(v=E,b=D,E=(E+2*A)/3,D=(D+2*C)/3,A=(s+2*A)/3,C=(l+2*C)/3):(v=g[a++],b=g[a++]),j[0][0]=A,j[0][1]=C,j[1][0]=E,j[1][1]=D,j[2][0]=v,j[2][1]=b,s=v,l=b;break;case d:var P=0,L=0,R=1,O=1,k=0;e&&(P=e[4],L=e[5],R=x(e[0]*e[0]+e[1]*e[1]),O=x(e[2]*e[2]+e[3]*e[3]),k=Math.atan2(-e[1]/O,e[0]/R));var N=g[a++],F=g[a++],z=g[a++],B=g[a++],G=g[a++]+k,V=g[a++]+G+k;a++;var W=g[a++],H=N+w(G)*z,Y=F+S(G)*B,U=(A=N+w(V)*z,C=F+S(V)*B,W?" wa ":" at ");Math.abs(H-A)<1e-4&&(Math.abs(V-G)>.01?W&&(H+=270/I):Math.abs(Y-F)<1e-4?W&&H<N||!W&&H>N?C-=270/I:C+=270/I:W&&Y<F||!W&&Y>F?A+=270/I:A-=270/I),p.push(U,_(((N-z)*R+P)*I-T),M,_(((F-B)*O+L)*I-T),M,_(((N+z)*R+P)*I-T),M,_(((F+B)*O+L)*I-T),M,_((H*R+P)*I-T),M,_((Y*O+L)*I-T),M,_((A*R+P)*I-T),M,_((C*O+L)*I-T)),s=A,l=C;break;case y.R:var X=j[0],Z=j[1];X[0]=g[a++],X[1]=g[a++],Z[0]=X[0]+g[a++],Z[1]=X[1]+g[a++],e&&(o(X,X,e),o(Z,Z,e)),X[0]=_(X[0]*I-T),Z[0]=_(Z[0]*I-T),X[1]=_(X[1]*I-T),Z[1]=_(Z[1]*I-T),p.push(" m ",X[0],M,X[1]," l ",Z[0],M,X[1]," l ",Z[0],M,Z[1]," l ",X[0],M,Z[1]);break;case y.Z:p.push(" x ")}if(n>0){p.push(i);for(var q=0;q<n;q++){var $=j[q];e&&o($,$,e),p.push(_($[0]*I-T),M,_($[1]*I-T),q<n-1?M:"")}}}return p.join("")};p.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=v.createNode("shape"),P(n),this._vmlEl=n),W(n,"fill",e,this),W(n,"stroke",e,this);var i=this.transform,r=null!=i,o=n.getElementsByTagName("stroke")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=x(b(s))}o.weight=a+"px"}var l=this.path||(this.path=new g);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=H(l,this.transform),n.style.zIndex=N(this.zlevel,this.z,this.z2),O(t,n),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},p.prototype.onRemove=function(t){k(t,this._vmlEl),this.removeRectText(t)},p.prototype.onAdd=function(t){O(t,this._vmlEl),this.appendRectText(t)};var Y=function(t){return"object"===typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};d.prototype.brushVML=function(t){var e,n,i=this.style,r=i.image;if(Y(r)){var a=r.src;if(a===this._imageSrc)e=this._imageWidth,n=this._imageHeight;else{var s=r.runtimeStyle,l=s.width,u=s.height;s.width="auto",s.height="auto",e=r.width,n=r.height,s.width=l,s.height=u,this._imageSrc=a,this._imageWidth=e,this._imageHeight=n}r=a}else r===this._imageSrc&&(e=this._imageWidth,n=this._imageHeight);if(r){var c=i.x||0,h=i.y||0,d=i.width,f=i.height,p=i.sWidth,g=i.sHeight,m=i.sx||0,y=i.sy||0,b=p&&g,w=this._vmlEl;w||(w=v.doc.createElement("div"),P(w),this._vmlEl=w);var S,I=w.style,T=!1,E=1,D=1;if(this.transform&&(S=this.transform,E=x(S[0]*S[0]+S[1]*S[1]),D=x(S[2]*S[2]+S[3]*S[3]),T=S[1]||S[2]),T){var L=[c,h],R=[c+d,h],k=[c,h+f],F=[c+d,h+f];o(L,L,S),o(R,R,S),o(k,k,S),o(F,F,S);var z=A(L[0],R[0],k[0],F[0]),B=A(L[1],R[1],k[1],F[1]),G=[];G.push("M11=",S[0]/E,M,"M12=",S[2]/D,M,"M21=",S[1]/E,M,"M22=",S[3]/D,M,"Dx=",_(c*E+S[4]),M,"Dy=",_(h*D+S[5])),I.padding="0 "+_(z)+"px "+_(B)+"px 0",I.filter=C+".Matrix("+G.join("")+", SizingMethod=clip)"}else S&&(c=c*E+S[4],h=h*D+S[5]),I.filter="",I.left=_(c)+"px",I.top=_(h)+"px";var V=this._imageEl,W=this._cropEl;V||(V=v.doc.createElement("div"),this._imageEl=V);var j=V.style;if(b){if(e&&n)j.width=_(E*e*d/p)+"px",j.height=_(D*n*f/g)+"px";else{var H=new Image,U=this;H.onload=function(){H.onload=null,e=H.width,n=H.height,j.width=_(E*e*d/p)+"px",j.height=_(D*n*f/g)+"px",U._imageWidth=e,U._imageHeight=n,U._imageSrc=r},H.src=r}W||(W=v.doc.createElement("div"),W.style.overflow="hidden",this._cropEl=W);var X=W.style;X.width=_((d+m*d/p)*E),X.height=_((f+y*f/g)*D),X.filter=C+".Matrix(Dx="+-m*d/p*E+",Dy="+-y*f/g*D+")",W.parentNode||w.appendChild(W),V.parentNode!==W&&W.appendChild(V)}else j.width=_(E*d)+"px",j.height=_(D*f)+"px",w.appendChild(V),W&&W.parentNode&&(w.removeChild(W),this._cropEl=null);var Z="",q=i.opacity;q<1&&(Z+=".Alpha(opacity="+_(100*q)+") "),Z+=C+".AlphaImageLoader(src="+r+", SizingMethod=scale)",j.filter=Z,w.style.zIndex=N(this.zlevel,this.z,this.z2),O(t,w),null!=i.text&&this.drawRectText(t,this.getBoundingRect())}},d.prototype.onRemove=function(t){k(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},d.prototype.onAdd=function(t){O(t,this._vmlEl),this.appendRectText(t)};var U,X="normal",Z={},q=0,$=100,K=document.createElement("div"),J=function(t){var e=Z[t];if(!e){q>$&&(q=0,Z={});var n,i=K.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(r){}e={style:i.fontStyle||X,variant:i.fontVariant||X,weight:i.fontWeight||X,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},Z[t]=e,q++}return e};l.$override("measureText",(function(t,e){var n=v.doc;U||(U=n.createElement("div"),U.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(U));try{U.style.font=e}catch(i){}return U.innerHTML="",U.appendChild(n.createTextNode(t)),{width:U.offsetWidth}}));for(var Q=new a,tt=function(t,e,n,i){var r=this.style;this.__dirty&&u.normalizeTextStyle(r,!0);var a=r.text;if(null!=a&&(a+=""),a){if(r.rich){var s=l.parseRichText(a,r);a=[];for(var c=0;c<s.lines.length;c++){for(var h=s.lines[c].tokens,d=[],f=0;f<h.length;f++)d.push(h[f].text);a.push(d.join(""))}a=a.join("\n")}var p,g,m=r.textAlign,y=r.textVerticalAlign,x=J(r.font),b=x.style+" "+x.variant+" "+x.weight+" "+x.size+'px "'+x.family+'"';n=n||l.getBoundingRect(a,b,m,y,r.textPadding,r.textLineHeight);var w=this.transform;if(w&&!i&&(Q.copy(e),Q.applyTransform(w),e=Q),i)p=e.x,g=e.y;else{var S=r.textPosition;if(S instanceof Array)p=e.x+F(S[0],e.width),g=e.y+F(S[1],e.height),m=m||"left";else{var A=this.calculateTextPosition?this.calculateTextPosition({},r,e):l.calculateTextPosition({},r,e);p=A.x,g=A.y,m=m||A.textAlign,y=y||A.textVerticalAlign}}p=l.adjustTextX(p,n.width,m),g=l.adjustTextY(g,n.height,y),g+=n.height/2;var C,I,T,E=v.createNode,D=this._textVmlEl;D?(T=D.firstChild,C=T.nextSibling,I=C.nextSibling):(D=E("line"),C=E("path"),I=E("textpath"),T=E("skew"),I.style["v-text-align"]="left",P(D),C.textpathok=!0,I.on=!0,D.from="0 0",D.to="1000 0.05",O(D,T),O(D,C),O(D,I),this._textVmlEl=D);var R=[p,g],k=D.style;w&&i?(o(R,R,w),T.on=!0,T.matrix=w[0].toFixed(3)+M+w[2].toFixed(3)+M+w[1].toFixed(3)+M+w[3].toFixed(3)+",0,0",T.offset=(_(R[0])||0)+","+(_(R[1])||0),T.origin="0 0",k.left="0px",k.top="0px"):(T.on=!1,k.left=_(p)+"px",k.top=_(g)+"px"),I.string=L(a);try{I.style.font=b}catch(z){}W(D,"fill",{fill:r.textFill,opacity:r.opacity},this),W(D,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash||null},this),D.style.zIndex=N(this.zlevel,this.z,this.z2),O(t,D)}},et=function(t){k(t,this._textVmlEl),this._textVmlEl=null},nt=function(t){O(t,this._textVmlEl)},it=[c,h,d,p,f],rt=0;rt<it.length;rt++){var ot=it[rt].prototype;ot.drawRectText=tt,ot.removeRectText=et,ot.appendRectText=nt}f.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},f.prototype.onRemove=function(t){this.removeRectText(t)},f.prototype.onAdd=function(t){this.appendRectText(t)}}},80630:function(t,e,n){n(84833);var i=n(97683),r=i.registerPainter,o=n(51722);r("vml",o)},97683:function(t,e,n){var i=n(1200),r=n(87190),o=n(95289),a=n(16713),s=n(65728),l=n(97518),u=n(9874),c=n(77884),h=!r.canvasSupported,d={canvas:l},f={},p="4.3.2";function g(t,e){var n=new x(i(),t,e);return f[n.id]=n,n}function m(t){if(t)t.dispose();else{for(var e in f)f.hasOwnProperty(e)&&f[e].dispose();f={}}return this}function v(t){return f[t]}function y(t,e){d[t]=e}function _(t){delete f[t]}var x=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,l=new s,f=n.renderer;if(h){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&d[f]||(f="canvas");var p=new d[f](e,l,n,t);this.storage=l,this.painter=p;var g=r.node||r.worker?null:new c(p.getViewportRoot(),p.root);this.handler=new a(l,p,g,p.root),this.animation=new u({stage:{update:o.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var m=l.delFromStorage,v=l.addToStorage;l.delFromStorage=function(t){m.call(l,t),t&&t.removeSelfFromZr(i)},l.addToStorage=function(t){v.call(l,t),t.addSelfToZr(i)}};x.prototype={constructor:x,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var n=this.painter.addHover(t,e);return this.refreshHover(),n}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,_(this.id)}},e.version=p,e.init=g,e.dispose=m,e.getInstance=v,e.registerPainter=y},39209:function(t,e,n){"use strict";var i=n(76578),r="undefined"===typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e<i.length;e++)"function"===typeof r[i[e]]&&(t[t.length]=i[e]);return t}},79306:function(t,e,n){"use strict";var i=n(94901),r=n(16823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},28551:function(t,e,n){"use strict";var i=n(20034),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},19617:function(t,e,n){"use strict";var i=n(25397),r=n(35610),o=n(26198),a=function(t){return function(e,n,a){var s=i(e),l=o(s);if(0===l)return!t&&-1;var u,c=r(a,l);if(t&&n!==n){while(l>c)if(u=s[c++],u!==u)return!0}else for(;l>c;c++)if((t||c in s)&&s[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},34527:function(t,e,n){"use strict";var i=n(43724),r=n(34376),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},44576:function(t,e,n){"use strict";var i=n(79504),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},77740:function(t,e,n){"use strict";var i=n(39297),r=n(35031),o=n(77347),a=n(24913);t.exports=function(t,e,n){for(var s=r(e),l=a.f,u=o.f,c=0;c<s.length;c++){var h=s[c];i(t,h)||n&&i(n,h)||l(t,h,u(e,h))}}},66699:function(t,e,n){"use strict";var i=n(43724),r=n(24913),o=n(6980);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},36840:function(t,e,n){"use strict";var i=n(94901),r=n(24913),o=n(50283),a=n(39433);t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:e;if(i(n)&&o(n,u,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(c){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},39433:function(t,e,n){"use strict";var i=n(24475),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},43724:function(t,e,n){"use strict";var i=n(79039);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,e,n){"use strict";var i=n(24475),r=n(20034),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},96837:function(t){"use strict";var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},79392:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},77388:function(t,e,n){"use strict";var i,r,o=n(24475),a=n(79392),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=c.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},88727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},46518:function(t,e,n){"use strict";var i=n(24475),r=n(77347).f,o=n(66699),a=n(36840),s=n(39433),l=n(77740),u=n(92796);t.exports=function(t,e){var n,c,h,d,f,p,g=t.target,m=t.global,v=t.stat;if(c=m?i:v?i[g]||s(g,{}):i[g]&&i[g].prototype,c)for(h in e){if(f=e[h],t.dontCallGetSet?(p=r(c,h),d=p&&p.value):d=c[h],n=u(m?h:g+(v?".":"#")+h,t.forced),!n&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(t.sham||d&&d.sham)&&o(f,"sham",!0),a(c,h,f,t)}}},79039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},40616:function(t,e,n){"use strict";var i=n(79039);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},69565:function(t,e,n){"use strict";var i=n(40616),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},10350:function(t,e,n){"use strict";var i=n(43724),r=n(39297),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},79504:function(t,e,n){"use strict";var i=n(40616),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},97751:function(t,e,n){"use strict";var i=n(24475),r=n(94901),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},55966:function(t,e,n){"use strict";var i=n(79306),r=n(64117);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},24475:function(t,e,n){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:function(t,e,n){"use strict";var i=n(79504),r=n(48981),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},30421:function(t){"use strict";t.exports={}},35917:function(t,e,n){"use strict";var i=n(43724),r=n(79039),o=n(4055);t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},47055:function(t,e,n){"use strict";var i=n(79504),r=n(79039),o=n(44576),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},33706:function(t,e,n){"use strict";var i=n(79504),r=n(94901),o=n(77629),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},91181:function(t,e,n){"use strict";var i,r,o,a=n(58622),s=n(24475),l=n(20034),u=n(66699),c=n(39297),h=n(77629),d=n(66119),f=n(30421),p="Object already initialized",g=s.TypeError,m=s.WeakMap,v=function(t){return o(t)?r(t):i(t,{})},y=function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return n}};if(a||h.state){var _=h.state||(h.state=new m);_.get=_.get,_.has=_.has,_.set=_.set,i=function(t,e){if(_.has(t))throw new g(p);return e.facade=t,_.set(t,e),e},r=function(t){return _.get(t)||{}},o=function(t){return _.has(t)}}else{var x=d("state");f[x]=!0,i=function(t,e){if(c(t,x))throw new g(p);return e.facade=t,u(t,x,e),e},r=function(t){return c(t,x)?t[x]:{}},o=function(t){return c(t,x)}}t.exports={set:i,get:r,has:o,enforce:v,getterFor:y}},34376:function(t,e,n){"use strict";var i=n(44576);t.exports=Array.isArray||function(t){return"Array"===i(t)}},94901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},92796:function(t,e,n){"use strict";var i=n(79039),r=n(94901),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===c||n!==u&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},64117:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},20034:function(t,e,n){"use strict";var i=n(94901);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},96395:function(t){"use strict";t.exports=!1},10757:function(t,e,n){"use strict";var i=n(97751),r=n(94901),o=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},26198:function(t,e,n){"use strict";var i=n(18014);t.exports=function(t){return i(t.length)}},50283:function(t,e,n){"use strict";var i=n(79504),r=n(79039),o=n(94901),a=n(39297),s=n(43724),l=n(10350).CONFIGURABLE,u=n(33706),c=n(91181),h=c.enforce,d=c.get,f=String,p=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),y=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),_=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===g(f(e),0,7)&&(e="["+m(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=h(t);return a(i,"source")||(i.source=v(_,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return o(this)&&d(this).source||u(this)}),"toString")},80741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},24913:function(t,e,n){"use strict";var i=n(43724),r=n(35917),o=n(48686),a=n(28551),s=n(56969),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var i=c(t,e);i&&i[f]&&(t[e]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:h in n?n[h]:i[h],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return u(t,e,n)}catch(i){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},77347:function(t,e,n){"use strict";var i=n(43724),r=n(69565),o=n(48773),a=n(6980),s=n(25397),l=n(56969),u=n(39297),c=n(35917),h=Object.getOwnPropertyDescriptor;e.f=i?h:function(t,e){if(t=s(t),e=l(e),c)try{return h(t,e)}catch(n){}if(u(t,e))return a(!r(o.f,t,e),t[e])}},38480:function(t,e,n){"use strict";var i=n(61828),r=n(88727),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},33717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1625:function(t,e,n){"use strict";var i=n(79504);t.exports=i({}.isPrototypeOf)},61828:function(t,e,n){"use strict";var i=n(79504),r=n(39297),o=n(25397),a=n(19617).indexOf,s=n(30421),l=i([].push);t.exports=function(t,e){var n,i=o(t),u=0,c=[];for(n in i)!r(s,n)&&r(i,n)&&l(c,n);while(e.length>u)r(i,n=e[u++])&&(~a(c,n)||l(c,n));return c}},48773:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},84270:function(t,e,n){"use strict";var i=n(69565),r=n(94901),o=n(20034),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw new a("Can't convert object to primitive value")}},35031:function(t,e,n){"use strict";var i=n(97751),r=n(79504),o=n(38480),a=n(33717),s=n(28551),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},67750:function(t,e,n){"use strict";var i=n(64117),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},66119:function(t,e,n){"use strict";var i=n(25745),r=n(33392),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},77629:function(t,e,n){"use strict";var i=n(96395),r=n(24475),o=n(39433),a="__core-js_shared__",s=t.exports=r[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},25745:function(t,e,n){"use strict";var i=n(77629);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},4495:function(t,e,n){"use strict";var i=n(77388),r=n(79039),o=n(24475),a=o.String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},35610:function(t,e,n){"use strict";var i=n(91291),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},25397:function(t,e,n){"use strict";var i=n(47055),r=n(67750);t.exports=function(t){return i(r(t))}},91291:function(t,e,n){"use strict";var i=n(80741);t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},18014:function(t,e,n){"use strict";var i=n(91291),r=Math.min;t.exports=function(t){var e=i(t);return e>0?r(e,9007199254740991):0}},48981:function(t,e,n){"use strict";var i=n(67750),r=Object;t.exports=function(t){return r(i(t))}},72777:function(t,e,n){"use strict";var i=n(69565),r=n(20034),o=n(10757),a=n(55966),s=n(84270),l=n(78227),u=TypeError,c=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,c);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},56969:function(t,e,n){"use strict";var i=n(72777),r=n(10757);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},16823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},33392:function(t,e,n){"use strict";var i=n(79504),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},7040:function(t,e,n){"use strict";var i=n(4495);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:function(t,e,n){"use strict";var i=n(43724),r=n(79039);t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},58622:function(t,e,n){"use strict";var i=n(24475),r=n(94901),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},78227:function(t,e,n){"use strict";var i=n(24475),r=n(25745),o=n(39297),a=n(33392),s=n(4495),l=n(7040),u=i.Symbol,c=r("wks"),h=l?u["for"]||u:u&&u.withoutSetter||a;t.exports=function(t){return o(c,t)||(c[t]=s&&o(u,t)?u[t]:h("Symbol."+t)),c[t]}},44114:function(t,e,n){"use strict";var i=n(46518),r=n(48981),o=n(26198),a=n(34527),s=n(96837),l=n(79039),u=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=u||!c();i({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var l=0;l<i;l++)e[n]=arguments[l],n++;return a(e,n),n}})},94552:function(t,e,n){"use strict";var i=n(47244),r=n(81820);if(n(64039)()||n(41333)()){var o=Symbol.iterator;t.exports=function(t){return null!=t&&"undefined"!==typeof t[o]?t[o]():i(t)?Array.prototype[o].call(t):void 0}}else{var a=n(64634),s=n(4761),l=n(70453),u=l("%Map%",!0),c=l("%Set%",!0),h=n(38075),d=h("Array.prototype.push"),f=h("String.prototype.charCodeAt"),p=h("String.prototype.slice"),g=function(t,e){var n=t.length;if(e+1>=n)return e+1;var i=f(t,e);if(i<55296||i>56319)return e+1;var r=f(t,e+1);return r<56320||r>57343?e+1:e+2},m=function(t){var e=0;return{next:function(){var n,i=e>=t.length;return i||(n=t[e],e+=1),{done:i,value:n}}}},v=function(t,e){if(a(t)||i(t))return m(t);if(s(t)){var n=0;return{next:function(){var e=g(t,n),i=p(t,n,e);return n=e,{done:e>t.length,value:i}}}}return e&&"undefined"!==typeof t["_es6-shim iterator_"]?t["_es6-shim iterator_"]():void 0};if(u||c){var y=n(83802),_=n(90256),x=h("Map.prototype.forEach",!0),b=h("Set.prototype.forEach",!0);if("undefined"===typeof process||!process.versions||!process.versions.node)var w=h("Map.prototype.iterator",!0),S=h("Set.prototype.iterator",!0);var A=h("Map.prototype.@@iterator",!0)||h("Map.prototype._es6-shim iterator_",!0),M=h("Set.prototype.@@iterator",!0)||h("Set.prototype._es6-shim iterator_",!0),C=function(t){if(y(t)){if(w)return r(w(t));if(A)return A(t);if(x){var e=[];return x(t,(function(t,n){d(e,[n,t])})),m(e)}}if(_(t)){if(S)return r(S(t));if(M)return M(t);if(b){var n=[];return b(t,(function(t){d(n,t)})),m(n)}}};t.exports=function(t){return C(t)||v(t)}}else t.exports=function(t){if(null!=t)return v(t,!0)}}},17724:function(t,e,n){"use strict";n.d(e,{v:function(){return h}});var i=n(80278),r=n(42165),o=Object.defineProperty,a=(t,e)=>o(t,"name",{value:e,configurable:!0}),s=class{constructor(t){this.points=t.points||[],this.duration=t.duration||1e4,this.sharpness=t.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=t.stepLength||60,this.length=this.points.length,this.delay=0;for(let e=0;e<this.length;e++)this.points[e].z=this.points[e].z||0;for(let e=0;e<this.length-1;e++){const t=this.points[e],n=this.points[e+1];this.centers.push({x:(t.x+n.x)/2,y:(t.y+n.y)/2,z:(t.z+n.z)/2})}this.controls.push([this.points[0],this.points[0]]);for(let e=0;e<this.centers.length-1;e++){const t=this.points[e+1].x-(this.centers[e].x+this.centers[e+1].x)/2,n=this.points[e+1].y-(this.centers[e].y+this.centers[e+1].y)/2,i=this.points[e+1].z-(this.centers[e].y+this.centers[e+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e].x+t),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e].y+n),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e].z+i)},{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e+1].x+t),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e+1].y+n),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e+1].z+i)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this}cacheSteps(t){const e=[];let n=this.pos(0);e.push(0);for(let i=0;i<this.duration;i+=10){const r=this.pos(i),o=Math.sqrt((r.x-n.x)*(r.x-n.x)+(r.y-n.y)*(r.y-n.y)+(r.z-n.z)*(r.z-n.z));o>t&&(e.push(i),n=r)}return e}vector(t){const e=this.pos(t+10),n=this.pos(t-10);return{angle:180*Math.atan2(e.y-n.y,e.x-n.x)/3.14,speed:Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y)+(n.z-e.z)*(n.z-e.z))}}pos(t){let e=t-this.delay;e<0&&(e=0),e>this.duration&&(e=this.duration-1);const n=e/this.duration;if(n>=1)return this.points[this.length-1];const i=Math.floor((this.points.length-1)*n),r=(this.length-1)*n-i;return u(r,this.points[i],this.controls[i][1],this.controls[i+1][0],this.points[i+1])}};a(s,"Spline");var l=s;function u(t,e,n,i,r){const o=c(t),a={x:r.x*o[0]+i.x*o[1]+n.x*o[2]+e.x*o[3],y:r.y*o[0]+i.y*o[1]+n.y*o[2]+e.y*o[3],z:r.z*o[0]+i.z*o[1]+n.z*o[2]+e.z*o[3]};return a}function c(t){const e=t*t,n=e*t;return[n,3*e*(1-t),3*t*(1-t)*(1-t),(1-t)*(1-t)*(1-t)]}function h(t,e={}){const n=e.resolution||1e4,o=e.sharpness||.85,s=[],u=(0,r.bg)(t).coordinates.map((t=>({x:t[0],y:t[1]}))),c=new l({duration:n,points:u,sharpness:o}),h=a((t=>{var e=c.pos(t);Math.floor(t/100)%2===0&&s.push([e.x,e.y])}),"pushCoord");for(var d=0;d<c.duration;d+=10)h(d);return h(c.duration),(0,i.wi)(s,e.properties)}a(u,"bezier"),a(c,"B"),a(h,"bezierSpline")},80278:function(t,e,n){"use strict";n.d(e,{Et:function(){return O},Gv:function(){return k},N4:function(){return d},cJ:function(){return C},tR:function(){return P},wi:function(){return y},zx:function(){return p}});var i=n(4982),r=Object.defineProperty,o=(t,e)=>r(t,"name",{value:e,configurable:!0}),a=class{constructor(t){var e,n,i;this.direction=!1,this.compareProperties=!0,this.precision=10**-(null!=(e=null==t?void 0:t.precision)?e:17),this.direction=null!=(n=null==t?void 0:t.direction)&&n,this.compareProperties=null==(i=null==t?void 0:t.compareProperties)||i}compare(t,e){if(t.type!==e.type)return!1;if(!s(t,e))return!1;switch(t.type){case"Point":return this.compareCoord(t.coordinates,e.coordinates);case"LineString":return this.compareLine(t.coordinates,e.coordinates);case"Polygon":return this.comparePolygon(t,e);case"GeometryCollection":return this.compareGeometryCollection(t,e);case"Feature":return this.compareFeature(t,e);case"FeatureCollection":return this.compareFeatureCollection(t,e);default:if(t.type.startsWith("Multi")){const n=l(t),i=l(e);return n.every((t=>i.some((e=>this.compare(t,e)))))}}return!1}compareCoord(t,e){return t.length===e.length&&t.every(((t,n)=>Math.abs(t-e[n])<this.precision))}compareLine(t,e,n=0,i=!1){if(!s(t,e))return!1;const r=t;let o=e;if(i&&!this.compareCoord(r[0],o[0])){const t=this.fixStartIndex(o,r);if(!t)return!1;o=t}const a=this.compareCoord(r[n],o[n]);return this.direction||a?this.comparePath(r,o):!!this.compareCoord(r[n],o[o.length-(1+n)])&&this.comparePath(r.slice().reverse(),o)}fixStartIndex(t,e){let n,i=-1;for(let r=0;r<t.length;r++)if(this.compareCoord(t[r],e[0])){i=r;break}return i>=0&&(n=[].concat(t.slice(i,t.length),t.slice(1,i+1))),n}comparePath(t,e){return t.every(((t,n)=>this.compareCoord(t,e[n])))}comparePolygon(t,e){if(this.compareLine(t.coordinates[0],e.coordinates[0],1,!0)){const n=t.coordinates.slice(1,t.coordinates.length),i=e.coordinates.slice(1,e.coordinates.length);return n.every((t=>i.some((e=>this.compareLine(t,e,1,!0)))))}return!1}compareGeometryCollection(t,e){return s(t.geometries,e.geometries)&&this.compareBBox(t,e)&&t.geometries.every(((t,n)=>this.compare(t,e.geometries[n])))}compareFeature(t,e){return t.id===e.id&&(!this.compareProperties||i(t.properties,e.properties))&&this.compareBBox(t,e)&&this.compare(t.geometry,e.geometry)}compareFeatureCollection(t,e){return s(t.features,e.features)&&this.compareBBox(t,e)&&t.features.every(((t,n)=>this.compare(t,e.features[n])))}compareBBox(t,e){return Boolean(!t.bbox&&!e.bbox)||!(!t.bbox||!e.bbox)&&this.compareCoord(t.bbox,e.bbox)}};o(a,"GeojsonEquality");function s(t,e){return t.coordinates?t.coordinates.length===e.coordinates.length:t.length===e.length}function l(t){return t.coordinates.map((e=>({type:t.type.replace("Multi",""),coordinates:e})))}o(s,"sameLength"),o(l,"explode");var u=6371008.8,c={centimeters:100*u,centimetres:100*u,degrees:360/(2*Math.PI),feet:3.28084*u,inches:39.37*u,kilometers:u/1e3,kilometres:u/1e3,meters:u,metres:u,miles:u/1609.344,millimeters:1e3*u,millimetres:1e3*u,nauticalmiles:u/1852,radians:1,yards:1.0936*u},h={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:2.9155334959812285e-7,millimeters:1e6,millimetres:1e6,yards:1.195990046};function d(t,e,n={}){const i={type:"Feature"};return(0===n.id||n.id)&&(i.id=n.id),n.bbox&&(i.bbox=n.bbox),i.properties=e||{},i.geometry=t,i}function f(t,e,n={}){switch(t){case"Point":return p(e).geometry;case"LineString":return y(e).geometry;case"Polygon":return m(e).geometry;case"MultiPoint":return w(e).geometry;case"MultiLineString":return b(e).geometry;case"MultiPolygon":return S(e).geometry;default:throw new Error(t+" is invalid")}}function p(t,e,n={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!O(t[0])||!O(t[1]))throw new Error("coordinates must contain numbers");const i={type:"Point",coordinates:t};return d(i,e,n)}function g(t,e,n={}){return x(t.map((t=>p(t,e))),n)}function m(t,e,n={}){for(const r of t){if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(r[r.length-1].length!==r[0].length)throw new Error("First and last Position are not equivalent.");for(let t=0;t<r[r.length-1].length;t++)if(r[r.length-1][t]!==r[0][t])throw new Error("First and last Position are not equivalent.")}const i={type:"Polygon",coordinates:t};return d(i,e,n)}function v(t,e,n={}){return x(t.map((t=>m(t,e))),n)}function y(t,e,n={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");const i={type:"LineString",coordinates:t};return d(i,e,n)}function _(t,e,n={}){return x(t.map((t=>y(t,e))),n)}function x(t,e={}){const n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function b(t,e,n={}){const i={type:"MultiLineString",coordinates:t};return d(i,e,n)}function w(t,e,n={}){const i={type:"MultiPoint",coordinates:t};return d(i,e,n)}function S(t,e,n={}){const i={type:"MultiPolygon",coordinates:t};return d(i,e,n)}function A(t,e,n={}){const i={type:"GeometryCollection",geometries:t};return d(i,e,n)}function M(t,e=0){if(e&&!(e>=0))throw new Error("precision must be a positive number");const n=Math.pow(10,e||0);return Math.round(t*n)/n}function C(t,e="kilometers"){const n=c[e];if(!n)throw new Error(e+" units is invalid");return t*n}function I(t,e="kilometers"){const n=c[e];if(!n)throw new Error(e+" units is invalid");return t/n}function T(t,e){return D(I(t,e))}function E(t){let e=t%360;return e<0&&(e+=360),e}function D(t){const e=t%(2*Math.PI);return 180*e/Math.PI}function P(t){const e=t%360;return e*Math.PI/180}function L(t,e="kilometers",n="kilometers"){if(!(t>=0))throw new Error("length must be a positive number");return C(I(t,e),n)}function R(t,e="meters",n="kilometers"){if(!(t>=0))throw new Error("area must be a positive number");const i=h[e];if(!i)throw new Error("invalid original units");const r=h[n];if(!r)throw new Error("invalid final units");return t/i*r}function O(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function k(t){return null!==t&&"object"===typeof t&&!Array.isArray(t)}function N(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((t=>{if(!O(t))throw new Error("bbox must only contain numbers")}))}function F(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}o(d,"feature"),o(f,"geometry"),o(p,"point"),o(g,"points"),o(m,"polygon"),o(v,"polygons"),o(y,"lineString"),o(_,"lineStrings"),o(x,"featureCollection"),o(b,"multiLineString"),o(w,"multiPoint"),o(S,"multiPolygon"),o(A,"geometryCollection"),o(M,"round"),o(C,"radiansToLength"),o(I,"lengthToRadians"),o(T,"lengthToDegrees"),o(E,"bearingToAzimuth"),o(D,"radiansToDegrees"),o(P,"degreesToRadians"),o(L,"convertLength"),o(R,"convertArea"),o(O,"isNumber"),o(k,"isObject"),o(N,"validateBBox"),o(F,"validateId")},42165:function(t,e,n){"use strict";n.d(e,{bg:function(){return d},uG:function(){return a}});var i=n(80278),r=Object.defineProperty,o=(t,e)=>r(t,"name",{value:e,configurable:!0});function a(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return[...t.geometry.coordinates];if("Point"===t.type)return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}function s(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function l(t){if(t.length>1&&(0,i.Et)(t[0])&&(0,i.Et)(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return l(t[0]);throw new Error("coordinates must only contain numbers")}function u(t,e,n){if(!e||!n)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.type)}function c(t,e,n){if(!t)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!t||"Feature"!==t.type||!t.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.geometry.type)}function h(t,e,n){if(!t)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!t||"FeatureCollection"!==t.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(const i of t.features){if(!i||"Feature"!==i.type||!i.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!i.geometry||i.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+i.geometry.type)}}function d(t){return"Feature"===t.type?t.geometry:t}function f(t,e){return"FeatureCollection"===t.type?"FeatureCollection":"GeometryCollection"===t.type?"GeometryCollection":"Feature"===t.type&&null!==t.geometry?t.geometry.type:t.type}o(a,"getCoord"),o(s,"getCoords"),o(l,"containsNumber"),o(u,"geojsonType"),o(c,"featureOf"),o(h,"collectionOf"),o(d,"getGeom"),o(f,"getType")},93526:function(t,e,n){"use strict";n.d(e,{B:function(){return E}});var i=n(42165),r=n(80278),o=Object.defineProperty,a=(t,e)=>o(t,"name",{value:e,configurable:!0});function s(t,e,n={}){var o=(0,i.uG)(t),a=(0,i.uG)(e),s=(0,r.tR)(a[1]-o[1]),l=(0,r.tR)(a[0]-o[0]),u=(0,r.tR)(o[1]),c=(0,r.tR)(a[1]),h=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(u)*Math.cos(c);return(0,r.cJ)(2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h)),n.units)}a(s,"distance");var l=Object.defineProperty,u=(t,e)=>l(t,"name",{value:e,configurable:!0});function c(t,e,n){if(null!==t)for(var i,r,o,a,s,l,u,h,d=0,f=0,p=t.type,g="FeatureCollection"===p,m="Feature"===p,v=g?t.features.length:1,y=0;y<v;y++){u=g?t.features[y].geometry:m?t.geometry:t,h=!!u&&"GeometryCollection"===u.type,s=h?u.geometries.length:1;for(var _=0;_<s;_++){var x=0,b=0;if(a=h?u.geometries[_]:u,null!==a){l=a.coordinates;var w=a.type;switch(d=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(l,f,y,x,b))return!1;f++,x++;break;case"LineString":case"MultiPoint":for(i=0;i<l.length;i++){if(!1===e(l[i],f,y,x,b))return!1;f++,"MultiPoint"===w&&x++}"LineString"===w&&x++;break;case"Polygon":case"MultiLineString":for(i=0;i<l.length;i++){for(r=0;r<l[i].length-d;r++){if(!1===e(l[i][r],f,y,x,b))return!1;f++}"MultiLineString"===w&&x++,"Polygon"===w&&b++}"Polygon"===w&&x++;break;case"MultiPolygon":for(i=0;i<l.length;i++){for(b=0,r=0;r<l[i].length;r++){for(o=0;o<l[i][r].length-d;o++){if(!1===e(l[i][r][o],f,y,x,b))return!1;f++}b++}x++}break;case"GeometryCollection":for(i=0;i<a.geometries.length;i++)if(!1===c(a.geometries[i],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function h(t,e,n,i){var r=n;return c(t,(function(t,i,o,a,s){r=0===i&&void 0===n?t:e(r,t,i,o,a,s)}),i),r}function d(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length;n++)if(!1===e(t.features[n].properties,n))break;break;case"Feature":e(t.properties,0);break}}function f(t,e,n){var i=n;return d(t,(function(t,r){i=0===r&&void 0===n?t:e(i,t,r)})),i}function p(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)if(!1===e(t.features[n],n))break}function g(t,e,n){var i=n;return p(t,(function(t,r){i=0===r&&void 0===n?t:e(i,t,r)})),i}function m(t){var e=[];return c(t,(function(t){e.push(t)})),e}function v(t,e){var n,i,r,o,a,s,l,u,c,h,d=0,f="FeatureCollection"===t.type,p="Feature"===t.type,g=f?t.features.length:1;for(n=0;n<g;n++){for(s=f?t.features[n].geometry:p?t.geometry:t,u=f?t.features[n].properties:p?t.properties:{},c=f?t.features[n].bbox:p?t.bbox:void 0,h=f?t.features[n].id:p?t.id:void 0,l=!!s&&"GeometryCollection"===s.type,a=l?s.geometries.length:1,r=0;r<a;r++)if(o=l?s.geometries[r]:s,null!==o)switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,d,u,c,h))return!1;break;case"GeometryCollection":for(i=0;i<o.geometries.length;i++)if(!1===e(o.geometries[i],d,u,c,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,d,u,c,h))return!1;d++}}function y(t,e,n){var i=n;return v(t,(function(t,r,o,a,s){i=0===r&&void 0===n?t:e(i,t,r,o,a,s)})),i}function _(t,e){v(t,(function(t,n,i,o,a){var s,l=null===t?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==e((0,r.N4)(t,i,{bbox:o,id:a}),n,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon";break}for(var u=0;u<t.coordinates.length;u++){var c=t.coordinates[u],h={type:s,coordinates:c};if(!1===e((0,r.N4)(h,i),n,u))return!1}}))}function x(t,e,n){var i=n;return _(t,(function(t,r,o){i=0===r&&0===o&&void 0===n?t:e(i,t,r,o)})),i}function b(t,e){_(t,(function(t,n,i){var o=0;if(t.geometry){var a=t.geometry.type;if("Point"!==a&&"MultiPoint"!==a){var s,l=0,u=0,h=0;return!1!==c(t,(function(a,c,d,f,p){if(void 0===s||n>l||f>u||p>h)return s=a,l=n,u=f,h=p,void(o=0);var g=(0,r.wi)([s,a],t.properties);if(!1===e(g,n,i,p,o))return!1;o++,s=a}))&&void 0}}}))}function w(t,e,n){var i=n,r=!1;return b(t,(function(t,o,a,s,l){i=!1===r&&void 0===n?t:e(i,t,o,a,s,l),r=!0})),i}function S(t,e){if(!t)throw new Error("geojson is required");_(t,(function(t,n,i){if(null!==t.geometry){var o=t.geometry.type,a=t.geometry.coordinates;switch(o){case"LineString":if(!1===e(t,n,i,0,0))return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(!1===e((0,r.wi)(a[s],t.properties),n,i,s))return!1;break}}}))}function A(t,e,n){var i=n;return S(t,(function(t,r,o,a){i=0===r&&void 0===n?t:e(i,t,r,o,a)})),i}function M(t,e){if(e=e||{},!(0,r.Gv)(e))throw new Error("options is invalid");var n,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,n=t.features[i].geometry;break;case"Feature":l=l||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var u=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=u.length+s-1),(0,r.wi)([u[s],u[s+1]],l,e);case"Polygon":return a<0&&(a=u.length+a),s<0&&(s=u[a].length+s-1),(0,r.wi)([u[a][s],u[a][s+1]],l,e);case"MultiLineString":return o<0&&(o=u.length+o),s<0&&(s=u[o].length+s-1),(0,r.wi)([u[o][s],u[o][s+1]],l,e);case"MultiPolygon":return o<0&&(o=u.length+o),a<0&&(a=u[o].length+a),s<0&&(s=u[o][a].length-s-1),(0,r.wi)([u[o][a][s],u[o][a][s+1]],l,e)}throw new Error("geojson is invalid")}function C(t,e){if(e=e||{},!(0,r.Gv)(e))throw new Error("options is invalid");var n,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,n=t.features[i].geometry;break;case"Feature":l=l||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var u=n.coordinates;switch(n.type){case"Point":return(0,r.zx)(u,l,e);case"MultiPoint":return o<0&&(o=u.length+o),(0,r.zx)(u[o],l,e);case"LineString":return s<0&&(s=u.length+s),(0,r.zx)(u[s],l,e);case"Polygon":return a<0&&(a=u.length+a),s<0&&(s=u[a].length+s),(0,r.zx)(u[a][s],l,e);case"MultiLineString":return o<0&&(o=u.length+o),s<0&&(s=u[o].length+s),(0,r.zx)(u[o][s],l,e);case"MultiPolygon":return o<0&&(o=u.length+o),a<0&&(a=u[o].length+a),s<0&&(s=u[o][a].length-s),(0,r.zx)(u[o][a][s],l,e)}throw new Error("geojson is invalid")}u(c,"coordEach"),u(h,"coordReduce"),u(d,"propEach"),u(f,"propReduce"),u(p,"featureEach"),u(g,"featureReduce"),u(m,"coordAll"),u(v,"geomEach"),u(y,"geomReduce"),u(_,"flattenEach"),u(x,"flattenReduce"),u(b,"segmentEach"),u(w,"segmentReduce"),u(S,"lineEach"),u(A,"lineReduce"),u(M,"findSegment"),u(C,"findPoint");var I=Object.defineProperty,T=(t,e)=>I(t,"name",{value:e,configurable:!0});function E(t,e={}){return w(t,((t,n)=>{const i=n.geometry.coordinates;return t+s(i[0],i[1],e)}),0)}T(E,"length")},50071:function(t,e,n){"use strict";var i=n(34120),r=n(32135),o=n(1685);const a={LENGTH:"length"};class s extends o.Ay{constructor(t,e,n){super(t),this.element=e,this.index=n}}class l extends i.A{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t||[],this.unique_)for(let n=0,i=this.array_.length;n<i;++n)this.assertUnique_(this.array_[n],n);this.updateLength_()}clear(){while(this.getLength()>0)this.pop()}extend(t){for(let e=0,n=t.length;e<n;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)t(e[n],n,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(a.LENGTH)}insertAt(t,e){if(t<0||t>this.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new s(r.A.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)}removeAt(t){if(t<0||t>=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new s(r.A.REMOVE,e,t)),e}setAt(t,e){const n=this.getLength();if(t>=n)return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new s(r.A.REMOVE,i,t)),this.dispatchEvent(new s(r.A.ADD,e,t))}updateLength_(){this.set(a.LENGTH,this.array_.length)}assertUnique_(t,e){for(let n=0,i=this.array_.length;n<i;++n)if(this.array_[n]===t&&n!==e)throw new Error("Duplicate item added to a unique collection")}}e.A=l},32135:function(t,e){"use strict";e.A={ADD:"add",REMOVE:"remove"}},90025:function(t,e){"use strict";class n{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}e.A=n},86717:function(t,e,n){"use strict";var i=n(34120),r=n(6837),o=n(90588),a=n(9438);class s extends i.A{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if("function"===typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new s(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const n=this.getStyle();return n&&t.setStyle(n),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,a.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=(0,a.KT)(t,r.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?l(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function l(t){if("function"===typeof t)return t;let e;if(Array.isArray(t))e=t;else{(0,o.v)("function"===typeof t.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`");const n=t;e=[n]}return function(){return e}}e.A=s},43938:function(t,e,n){"use strict";n.d(e,{RA:function(){return u},f6:function(){return s}});var i=n(79332),r=n(6837),o=(n(6141),n(7771)),a=n(9438);n(74238);i.A;function s(t,e,n){const i=t;let s=!0,l=!1,u=!1;const c=[(0,a.Jz)(i,r.A.LOAD,(function(){u=!0,l||e()}))];return i.src&&o.DT?(l=!0,i.decode().then((function(){s&&e()})).catch((function(t){s&&(u?e():n())}))):c.push((0,a.Jz)(i,r.A.ERROR,n)),function(){s=!1,c.forEach(a.JH)}}function l(t,e){return new Promise(((n,i)=>{function r(){a(),n(t)}function o(){a(),i(new Error("Image load error"))}function a(){t.removeEventListener("load",r),t.removeEventListener("error",o)}t.addEventListener("load",r),t.addEventListener("error",o),e&&(t.src=e)}))}function u(t,e){return e&&(t.src=e),t.src&&o.DT?new Promise(((e,n)=>t.decode().then((()=>e(t))).catch((i=>t.complete&&t.width?e(t):n(i))))):l(t)}},6141:function(t,e){"use strict";e.A={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},40190:function(t,e,n){"use strict";var i=n(8143),r=n(11078),o=n(68711),a=n(43938);class s extends i.A{constructor(t,e,n,i,r,o){super(t,e,o),this.crossOrigin_=i,this.src_=n,this.key=n,this.image_=new Image,null!==i&&(this.image_.crossOrigin=i),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=r.A.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=r.A.ERROR,this.unlistenImage_(),this.image_=l(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=r.A.LOADED:this.state=r.A.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==r.A.ERROR&&(this.state=r.A.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==r.A.IDLE&&(this.state=r.A.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,a.f6)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function l(){const t=(0,o.Y)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}e.A=s},77235:function(t,e,n){"use strict";n.d(e,{A:function(){return wt}});var i=n(34120),r=n(50071),o=n(32135),a=n(80310),s=n(90025),l=n(74238),u=n(4087),c=n(9703),h=n(70915),d=n(82241),f=n(60764),p=n(6933);class g extends s.A{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,u.b0)()}calculateMatrices2D(t){const e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;(0,c.Zz)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,c.T9)(i,n)}forEachFeatureAtCoordinate(t,e,n,i,r,o,a,s){let l;const u=e.viewState;function c(t,e,n,i){return r.call(o,e,t?n:null,i)}const d=u.projection,g=(0,p.Li)(t.slice(),d),m=[[0,0]];if(d.canWrapX()&&i){const t=d.getExtent(),e=(0,h.RG)(t);m.push([-e,0],[e,0])}const v=e.layerStatesArray,y=v.length,_=[],x=[];for(let h=0;h<m.length;h++)for(let i=y-1;i>=0;--i){const r=v[i],o=r.layer;if(o.hasRenderer()&&(0,f.l)(r,u)&&a.call(s,o)){const i=o.getRenderer(),a=o.getSource();if(i&&a){const o=a.getWrapX()?g:t,s=c.bind(null,r.managed);x[0]=o[0]+m[h][0],x[1]=o[1]+m[h][1],l=i.forEachFeatureAtCoordinate(x,e,n,s,_)}if(l)return l}}if(0===_.length)return;const b=1/_.length;return _.forEach(((t,e)=>t.distanceSq+=e*b)),_.sort(((t,e)=>t.distanceSq-e.distanceSq)),_.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,n,i,r,o){const a=this.forEachFeatureAtCoordinate(t,e,n,i,l.rT,this,r,o);return void 0!==a}getMap(){return this.map_}renderFrame(t){(0,u.b0)()}scheduleExpireIconCache(t){d.ue.canExpireCache()&&t.postRenderFunctions.push(m)}}function m(t,e){d.ue.expire()}var v=g,y=n(28450),_=n(9960),x=n(83984),b=n(25176),w=n(38774),S=n(9438),A=n(68711);class M extends v{constructor(t){super(t),this.fontChangeListenerKey_=(0,S.KT)(w.yY,y.A.PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=b.XI+" ol-layers";const n=t.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const n=this.getMap();if(n.hasListener(t)){const i=new _.A(t,void 0,e);n.dispatchEvent(i)}}disposeInternal(){(0,S.JH)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(x.A.PRECOMPOSE,t);const e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),n=e.some((t=>t.layer instanceof a.A&&t.layer.getDeclutter()));n&&(t.declutter={});const i=t.viewState;this.children_.length=0;const r=[];let o=null;for(let a=0,s=e.length;a<s;++a){const n=e[a];t.layerIndex=a;const s=n.layer,l=s.getSourceState();if(!(0,f.l)(n,i)||"ready"!=l&&"undefined"!=l){s.unrender();continue}const u=s.render(t,o);u&&(u!==o&&(this.children_.push(u),o=u),r.push(n))}this.declutter(t,r),(0,A.WM)(this.element_,this.children_),this.dispatchRenderEvent(x.A.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}declutter(t,e){if(t.declutter){for(let n=e.length-1;n>=0;--n){const i=e[n],r=i.layer;r.getDeclutter()&&r.renderDeclutter(t,i)}e.forEach((e=>e.layer.renderDeferred(t)))}}}var C=M,I=n(6837),T=n(58620),E=n(1685),D=n(90588),P=n(43530);class L extends E.Ay{constructor(t,e){super(t),this.layer=e}}const R={LAYERS:"layers"};class O extends T.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let n=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(R.LAYERS,this.handleLayersChanged_),n?Array.isArray(n)?n=new r.A(n.slice(),{unique:!0}):(0,D.v)("function"===typeof n.getArray,"Expected `layers` to be an array or a `Collection`"):n=new r.A(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(S.JH),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push((0,S.KT)(t,o.A.ADD,this.handleLayersAdd_,this),(0,S.KT)(t,o.A.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(S.JH);(0,P.I)(this.listenerKeys_);const e=t.getArray();for(let n=0,i=e.length;n<i;n++){const t=e[n];this.registerLayerListeners_(t),this.dispatchEvent(new L("addlayer",t))}this.changed()}registerLayerListeners_(t){const e=[(0,S.KT)(t,y.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,S.KT)(t,I.A.CHANGE,this.handleLayerChange_,this)];t instanceof O&&e.push((0,S.KT)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,S.KT)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,u.v6)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new L("addlayer",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new L("removelayer",t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new L("addlayer",e)),this.changed()}handleLayersRemove_(t){const e=t.element,n=(0,u.v6)(e);this.listenerKeys_[n].forEach(S.JH),delete this.listenerKeys_[n],this.dispatchEvent(new L("removelayer",e)),this.changed()}getLayers(){return this.get(R.LAYERS)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,n=t.length;e<n;++e)this.dispatchEvent(new L("removelayer",t[e]))}this.set(R.LAYERS,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const i=this.getLayerState();let r=i.zIndex;t||void 0!==i.zIndex||(r=0);for(let o=n,a=e.length;o<a;o++){const t=e[o];t.opacity*=i.opacity,t.visible=t.visible&&i.visible,t.maxResolution=Math.min(t.maxResolution,i.maxResolution),t.minResolution=Math.max(t.minResolution,i.minResolution),t.minZoom=Math.max(t.minZoom,i.minZoom),t.maxZoom=Math.min(t.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==t.extent?t.extent=(0,h._N)(t.extent,i.extent):t.extent=i.extent),void 0===t.zIndex&&(t.zIndex=r)}return e}getSourceState(){return"ready"}}var k=O;class N extends E.Ay{constructor(t,e,n){super(t),this.map=e,this.frameState=void 0!==n?n:null}}var F=N;class z extends F{constructor(t,e,n,i,r,o){super(t,e,r),this.originalEvent=n,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==i&&i,this.activePointers=o}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}}var B=z,G=n(73445),V={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},W=n(79332),j=n(7771);class H extends W.A{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const n=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=n,this.pointerdownListenerKey_=(0,S.KT)(n,V.POINTERDOWN,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,S.KT)(n,V.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(I.A.TOUCHMOVE,this.boundHandleTouchMove_,!!j.FT&&{passive:!1})}emulateClick_(t){let e=new B(G.A.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new B(G.A.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const e=new B(G.A.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,n=e.pointerId;if(e.type==G.A.POINTERUP||e.type==G.A.POINTERCANCEL){delete this.trackedTouches_[n];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=G.A.POINTERDOWN&&e.type!=G.A.POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new B(G.A.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(S.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new B(G.A.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,S.KT)(t,G.A.POINTERMOVE,this.handlePointerMove_,this),(0,S.KT)(t,G.A.POINTERUP,this.handlePointerUp_,this),(0,S.KT)(this.element_,G.A.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,S.KT)(this.element_.getRootNode(),G.A.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new B(G.A.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new B(G.A.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"===typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,S.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(I.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,S.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(S.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}var Y=H,U=n(82585),X={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};const Z=1/0;class q{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,P.I)(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const i=this.keyFunction_(n);return delete this.queuedElements_[i],n}enqueue(t){(0,D.v)(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=Z&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],a=t;while(t<i>>1){const r=this.getLeftChildIndex_(t),o=this.getRightChildIndex_(t),a=o<i&&n[o]<n[r]?o:r;e[t]=e[a],n[t]=n[a],t=a}e[t]=r,n[t]=o,this.siftDown_(a,t)}siftDown_(t,e){const n=this.elements_,i=this.priorities_,r=n[e],o=i[e];while(e>t){const t=this.getParentIndex_(e);if(!(i[t]>o))break;n[e]=n[t],i[e]=i[t],e=t}n[e]=r,i[e]=o}reprioritize(){const t=this.priorityFunction_,e=this.elements_,n=this.priorities_;let i=0;const r=e.length;let o,a,s;for(a=0;a<r;++a)o=e[a],s=t(o),s==Z?delete this.queuedElements_[this.keyFunction_(o)]:(n[i]=s,e[i++]=o);e.length=i,n.length=i,this.heapify_()}}var $=q,K=n(11078);class J extends ${constructor(t,e){super((function(e){return t.apply(null,e)}),(function(t){return t[0].getKey()})),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);if(e){const e=t[0];e.addEventListener(I.A.CHANGE,this.boundHandleTileChange_)}return e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,n=e.getState();if(n===K.A.LOADED||n===K.A.ERROR||n===K.A.EMPTY){n!==K.A.ERROR&&e.removeEventListener(I.A.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let n,i,r,o=0;while(this.tilesLoading_<t&&o<e&&this.getCount()>0)i=this.dequeue()[0],r=i.getKey(),n=i.getState(),n!==K.A.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load())}}var Q=J;function tt(t,e,n,i,r){if(!t||!(n in t.wantedTiles))return Z;if(!t.wantedTiles[n][e.getKey()])return Z;const o=t.viewState.center,a=i[0]-o[0],s=i[1]-o[1];return 65536*Math.log(r)+Math.sqrt(a*a+s*s)/r}var et=n(58694),nt=n(62703);class it extends i.A{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){(0,A.bf)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&(0,A.bf)(this.element);for(let e=0,n=this.listenerKeys.length;e<n;++e)(0,S.JH)(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){const e=this.target_?this.target_:t.getOverlayContainerStopEvent();e.appendChild(this.element),this.render!==l.tV&&this.listenerKeys.push((0,S.KT)(t,U.A.POSTRENDER,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_="string"===typeof t?document.getElementById(t):t}}var rt=it,ot=n(66514);class at extends rt{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1);const e=void 0!==t.className?t.className:"ol-attribution",n=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.expandClassName?t.expandClassName:e+"-expand",r=void 0!==t.collapseLabel?t.collapseLabel:"›",o=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"===typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r,this.collapseLabel_.className=o):this.collapseLabel_=r;const a=void 0!==t.label?t.label:"i";"string"===typeof a?(this.label_=document.createElement("span"),this.label_.textContent=a,this.label_.className=i):this.label_=a;const s=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=n,this.toggleButton_.appendChild(s),this.toggleButton_.addEventListener(I.A.CLICK,this.handleClick_.bind(this),!1);const l=e+" "+b.XI+" "+b.$N+(this.collapsed_&&this.collapsible_?" "+b.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),u=this.element;u.className=l,u.appendChild(this.toggleButton_),u.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=Array.from(new Set(this.getMap().getAllLayers().flatMap((e=>e.getAttributions(t))))),n=!this.getMap().getAllLayers().some((t=>t.getSource()&&!1===t.getSource().getAttributionsCollapsible()));return this.overrideCollapsible_||this.setCollapsible(n),e}async updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=await Promise.all(this.collectSourceAttributions_(t).map((t=>(0,l.hq)((()=>t))))),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,ot.aI)(e,this.renderedAttributions_)){(0,A.gS)(this.ulElement_);for(let t=0,n=e.length;t<n;++t){const n=document.createElement("li");n.innerHTML=e[t],this.ulElement_.appendChild(n)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(b.nT),this.collapsed_?(0,A.fo)(this.collapseLabel_,this.label_):(0,A.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}}var st=at,lt=n(93474);class ut extends rt{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",n=void 0!==t.label?t.label:"⇧",i=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"===typeof n?(this.label_=document.createElement("span"),this.label_.className=i,this.label_.textContent=n):(this.label_=n,this.label_.classList.add(i));const r=t.tipLabel?t.tipLabel:"Reset rotation",o=document.createElement("button");o.className=e+"-reset",o.setAttribute("type","button"),o.title=r,o.appendChild(this.label_),o.addEventListener(I.A.CLICK,this.handleClick_.bind(this),!1);const a=e+" "+b.XI+" "+b.$N,s=this.element;s.className=a,s.appendChild(o),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(b.Si)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap(),e=t.getView();if(!e)return;const n=e.getRotation();void 0!==n&&(this.duration_>0&&n%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:lt.vT}):e.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const n=e.viewState.rotation;if(n!=this.rotation_){const t="rotate("+n+"rad)";if(this.autoHide_){const t=this.element.classList.contains(b.Si);t||0!==n?t&&0!==n&&this.element.classList.remove(b.Si):this.element.classList.add(b.Si)}this.label_.style.transform=t}this.rotation_=n}}var ct=ut;class ht extends rt{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",n=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",r=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",o=void 0!==t.zoomInLabel?t.zoomInLabel:"+",a=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",s=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=i,u.setAttribute("type","button"),u.title=s,u.appendChild("string"===typeof o?document.createTextNode(o):o),u.addEventListener(I.A.CLICK,this.handleClick_.bind(this,n),!1);const c=document.createElement("button");c.className=r,c.setAttribute("type","button"),c.title=l,c.appendChild("string"===typeof a?document.createTextNode(a):a),c.addEventListener(I.A.CLICK,this.handleClick_.bind(this,-n),!1);const h=e+" "+b.XI+" "+b.$N,d=this.element;d.className=h,d.appendChild(u),d.appendChild(c),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap(),n=e.getView();if(!n)return;const i=n.getZoom();if(void 0!==i){const e=n.getConstrainedZoom(i+t);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:e,duration:this.duration_,easing:lt.vT})):n.setZoom(e)}}}var dt=ht;function ft(t){t=t||{};const e=new r.A,n=void 0===t.zoom||t.zoom;n&&e.push(new dt(t.zoomOptions));const i=void 0===t.rotate||t.rotate;i&&e.push(new ct(t.rotateOptions));const o=void 0===t.attribution||t.attribution;return o&&e.push(new st(t.attributionOptions)),e}var pt=n(31130),gt=n(46800),mt=n(6782),vt=n(54422);function yt(t){t instanceof f.A?t.setMapInternal(null):t instanceof k&&t.getLayers().forEach(yt)}function _t(t,e){if(t instanceof f.A)t.setMapInternal(e);else if(t instanceof k){const n=t.getLayers().getArray();for(let t=0,i=n.length;t<i;++t)_t(n[t],e)}}class xt extends i.A{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=bt(t);this.renderComplete_,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:j.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,c.vt)(),this.pixelToCoordinateTransform_=(0,c.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=t.moveTolerance,this.keyboardEventTarget_=e.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver((()=>this.updateSize())),this.controls=e.controls||ft(),this.interactions=e.interactions||(0,pt.N)({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new Q(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(X.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(X.VIEW,this.handleViewChanged_),this.addChangeListener(X.SIZE,this.handleSizeChanged_),this.addChangeListener(X.TARGET,this.handleTargetChanged_),this.setProperties(e.values);const n=this;!t.view||t.view instanceof et.Ay||t.view.then((function(t){n.setView(new et.Ay(t))})),this.controls.addEventListener(o.A.ADD,(t=>{t.element.setMap(this)})),this.controls.addEventListener(o.A.REMOVE,(t=>{t.element.setMap(null)})),this.interactions.addEventListener(o.A.ADD,(t=>{t.element.setMap(this)})),this.interactions.addEventListener(o.A.REMOVE,(t=>{t.element.setMap(null)})),this.overlays_.addEventListener(o.A.ADD,(t=>{this.addOverlayInternal_(t.element)})),this.overlays_.addEventListener(o.A.REMOVE,(t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){const e=this.getLayerGroup().getLayers();e.push(t)}handleLayerAdd_(t){_t(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,n){if(!this.frameState_||!this.renderer_)return;const i=this.getCoordinateFromPixelInternal(t);n=void 0!==n?n:{};const r=void 0!==n.hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:l.rT,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,a,e,null,o,null)}getFeaturesAtPixel(t,e){const n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n}getAllLayers(){const t=[];function e(n){n.forEach((function(n){n instanceof k?e(n.getLayers()):t.push(n)}))}return e(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};const i=void 0!==e.layerFilter?e.layerFilter:l.rT,r=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,o,i,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_,n=e.getBoundingClientRect(),i=this.getSize(),r=n.width/i[0],o=n.height/i[1],a="changedTouches"in t?t.changedTouches[0]:t;return[(a.clientX-n.left)/r,(a.clientY-n.top)/o]}getTarget(){return this.get(X.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,gt.te)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,c.Bb)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(X.LAYERGROUP)}setLayers(t){const e=this.getLayerGroup();if(t instanceof r.A)return void e.setLayers(t);const n=e.getLayers();n.clear(),n.extend(t)}getLayers(){const t=this.getLayerGroup().getLayers();return t}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e];if(!n.visible)continue;const i=n.layer.getRenderer();if(i&&!i.ready)return!0;const r=n.layer.getSource();if(r&&r.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,gt.Ad)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,c.Bb)(e.coordinateToPixelTransform,t.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(X.SIZE)}getView(){return this.get(X.VIEW)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,n,i){return tt(this.frameState_,t,e,n,i)}handleBrowserEvent(t,e){e=e||t.type;const n=new B(e,this,t);this.handleMapBrowserEvent(n)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,n=e.type;if(n===V.POINTERDOWN||n===I.A.WHEEL||n===I.A.KEYDOWN){const t=this.getOwnerDocument(),n=this.viewport_.getRootNode?this.viewport_.getRootNode():t,i=e.target;if(this.overlayContainerStopEvent_.contains(i)||!(n===t?t.documentElement:n).contains(i))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.getMap()!==this||!i.getActive()||!this.getTargetElement())continue;const r=i.handleEvent(t);if(!r||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let n=this.maxTilesLoading_,i=n;if(t){const e=t.viewHints;if(e[nt.A.ANIMATING]||e[nt.A.INTERACTING]){const e=Date.now()-t.time>8;n=e?0:8,i=e?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(x.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(x.A.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new F(U.A.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new F(U.A.LOADSTART,this,t))));const n=this.postRenderFunctions_;for(let i=0,r=n.length;i<r;++i)n[i](this,t);n.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,S.JH)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(I.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(I.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,A.bf)(this.viewport_)}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e="string"===typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new C(this)),this.mapBrowserEventHandler_=new Y(this,this.moveTolerance_);for(const e in G.A)this.mapBrowserEventHandler_.addEventListener(G.A[e],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(I.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(I.A.WHEEL,this.boundHandleBrowserEvent_,!!j.FT&&{passive:!1});const t=this.keyboardEventTarget_?this.keyboardEventTarget_:e;this.targetChangeHandlerKeys_=[(0,S.KT)(t,I.A.KEYDOWN,this.handleBrowserEvent,this),(0,S.KT)(t,I.A.KEYPRESS,this.handleBrowserEvent,this)];const n=e.getRootNode();n instanceof ShadowRoot&&this.resizeObserver_.observe(n.host),this.resizeObserver_.observe(e)}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,S.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,S.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,S.KT)(t,y.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,S.KT)(t,I.A.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(S.JH),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new L("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,S.KT)(t,y.A.PROPERTYCHANGE,this.render,this),(0,S.KT)(t,I.A.CHANGE,this.render,this),(0,S.KT)(t,"addlayer",this.handleLayerAdd_,this),(0,S.KT)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){const e=this.getLayerGroup().getLayers();return e.remove(t)}handleLayerRemove_(t){yt(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),n=this.getView(),i=this.frameState_;let r=null;if(void 0!==e&&(0,mt.Ie)(e)&&n&&n.isDef()){const i=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),o=n.getState();if(r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,h.Bg)(o.center,o.resolution,o.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:o,viewHints:i,wantedTiles:{},mapId:(0,u.v6)(this),renderTargets:{}},o.nextCenter&&o.nextResolution){const t=isNaN(o.nextRotation)?o.rotation:o.nextRotation;r.nextExtent=(0,h.Bg)(o.nextCenter,o.nextResolution,t,e)}}if(this.frameState_=r,this.renderer_.renderFrame(r),r){if(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),i){const t=!this.previousExtent_||!(0,h.Im)(this.previousExtent_)&&!(0,h.aI)(r.extent,this.previousExtent_);t&&(this.dispatchEvent(new F(U.A.MOVESTART,this,i)),this.previousExtent_=(0,h.aZ)(this.previousExtent_))}const t=this.previousExtent_&&!r.viewHints[nt.A.ANIMATING]&&!r.viewHints[nt.A.INTERACTING]&&!(0,h.aI)(r.extent,this.previousExtent_);t&&(this.dispatchEvent(new F(U.A.MOVEEND,this,r)),(0,h.o8)(r.extent,this.previousExtent_))}this.dispatchEvent(new F(U.A.POSTRENDER,this,r)),this.renderComplete_=this.hasListener(U.A.LOADSTART)||this.hasListener(U.A.LOADEND)||this.hasListener(x.A.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new L("removelayer",e)),this.set(X.LAYERGROUP,t)}setSize(t){this.set(X.SIZE,t)}setTarget(t){this.set(X.TARGET,t)}setView(t){if(!t||t instanceof et.Ay)return void this.set(X.VIEW,t);this.set(X.VIEW,new et.Ay);const e=this;t.then((function(t){e.setView(new et.Ay(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){const n=getComputedStyle(t),i=t.offsetWidth-parseFloat(n["borderLeftWidth"])-parseFloat(n["paddingLeft"])-parseFloat(n["paddingRight"])-parseFloat(n["borderRightWidth"]),r=t.offsetHeight-parseFloat(n["borderTopWidth"])-parseFloat(n["paddingTop"])-parseFloat(n["paddingBottom"])-parseFloat(n["borderBottomWidth"]);isNaN(i)||isNaN(r)||(e=[i,r],!(0,mt.Ie)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,vt.R8)("No map visible because the map container's width or height are 0."))}const n=this.getSize();!e||n&&(0,ot.aI)(e,n)||(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}}function bt(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},i=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new k({layers:t.layers});let o,a,s;return n[X.LAYERGROUP]=i,n[X.TARGET]=t.target,n[X.VIEW]=t.view instanceof et.Ay?t.view:new et.Ay,void 0!==t.controls&&(Array.isArray(t.controls)?o=new r.A(t.controls.slice()):((0,D.v)("function"===typeof t.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),o=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?a=new r.A(t.interactions.slice()):((0,D.v)("function"===typeof t.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),a=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?s=new r.A(t.overlays.slice()):((0,D.v)("function"===typeof t.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),s=t.overlays):s=new r.A,{controls:o,interactions:a,keyboardEventTarget:e,overlays:s,values:n}}var wt=xt},73445:function(t,e,n){"use strict";var i=n(6837);e.A={SINGLECLICK:"singleclick",CLICK:i.A.CLICK,DBLCLICK:i.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},82585:function(t,e){"use strict";e.A={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},34120:function(t,e,n){"use strict";var i=n(1685),r=n(28450),o=n(11854),a=n(4087),s=n(43530);class l extends i.Ay{constructor(t,e,n){super(t),this.key=e,this.oldValue=n}}class u extends o.A{constructor(t){super(),this.on,this.once,this.un,(0,a.v6)(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(t,e){let n;n=`change:${t}`,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e)),n=r.A.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,n){const i=this.values_||(this.values_={});if(n)i[t]=e;else{const n=i[t];i[t]=e,n!==e&&this.notify(t,n)}}setProperties(t,e){for(const n in t)this.set(n,t[n],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const n=this.values_[t];delete this.values_[t],(0,s.p)(this.values_)&&(this.values_=null),e||this.notify(t,n)}}}e.A=u},28450:function(t,e){"use strict";e.A={PROPERTYCHANGE:"propertychange"}},11854:function(t,e,n){"use strict";n.d(e,{e:function(){return s}});var i=n(79332),r=n(6837),o=n(9438);class a extends i.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(r.A.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=(0,o.KT)(this,t[r],e);return i}return(0,o.KT)(this,t,e)}onceInternal(t,e){let n;if(Array.isArray(t)){const i=t.length;n=new Array(i);for(let r=0;r<i;++r)n[r]=(0,o.Jz)(this,t[r],e)}else n=(0,o.Jz)(this,t,e);return e.ol_key=n,n}unInternal(t,e){const n=e.ol_key;if(n)s(n);else if(Array.isArray(t))for(let i=0,r=t.length;i<r;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)}}function s(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)(0,o.JH)(t[e]);else(0,o.JH)(t)}a.prototype.on,a.prototype.once,a.prototype.un,e.A=a},11795:function(t,e,n){"use strict";var i=n(34120),r=n(82585),o=n(25176),a=n(70915),s=n(9438),l=n(68711);const u={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"};class c extends i.A{constructor(t){super(),this.on,this.once,this.un,this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+o.Q5,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===t.autoPan?{}:t.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(u.ELEMENT,this.handleElementChanged),this.addChangeListener(u.MAP,this.handleMapChanged),this.addChangeListener(u.OFFSET,this.handleOffsetChanged),this.addChangeListener(u.POSITION,this.handlePositionChanged),this.addChangeListener(u.POSITIONING,this.handlePositioningChanged),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(t.positioning||"top-left"),void 0!==t.position&&this.setPosition(t.position)}getElement(){return this.get(u.ELEMENT)}getId(){return this.id}getMap(){return this.get(u.MAP)||null}getOffset(){return this.get(u.OFFSET)}getPosition(){return this.get(u.POSITION)}getPositioning(){return this.get(u.POSITIONING)}handleElementChanged(){(0,l.gS)(this.element);const t=this.getElement();t&&this.element.appendChild(t)}handleMapChanged(){this.mapPostrenderListenerKey&&((0,l.bf)(this.element),(0,s.JH)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,s.KT)(t,r.A.POSTRENDER,this.render,this),this.updatePixelPosition();const e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(t){this.set(u.ELEMENT,t)}setMap(t){this.set(u.MAP,t)}setOffset(t){this.set(u.OFFSET,t)}setPosition(t){this.set(u.POSITION,t)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(t){const e=this.getMap();if(!e||!e.getTargetElement()||!this.get(u.POSITION))return;const n=this.getRect(e.getTargetElement(),e.getSize()),i=this.getElement(),r=this.getRect(i,[(0,l.Gq)(i),(0,l.DK)(i)]);t=t||{};const o=void 0===t.margin?20:t.margin;if(!(0,a.ms)(n,r)){const i=r[0]-n[0],a=n[2]-r[2],s=r[1]-n[1],l=n[3]-r[3],u=[0,0];if(i<0?u[0]=i-o:a<0&&(u[0]=Math.abs(a)+o),s<0?u[1]=s-o:l<0&&(u[1]=Math.abs(l)+o),0!==u[0]||0!==u[1]){const n=e.getView().getCenterInternal(),i=e.getPixelFromCoordinateInternal(n);if(!i)return;const r=[i[0]+u[0],i[1]+u[1]],o=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(r),duration:o.duration,easing:o.easing})}}}getRect(t,e){const n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[i,r,i+e[0],r+e[1]]}setPositioning(t){this.set(u.POSITIONING,t)}setVisible(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)}updatePixelPosition(){const t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e)return void this.setVisible(!1);const n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}updateRenderedPosition(t,e){const n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);const o=Math.round(t[0]+i[0])+"px",a=Math.round(t[1]+i[1])+"px";let s="0%",l="0%";"bottom-right"==r||"center-right"==r||"top-right"==r?s="-100%":"bottom-center"!=r&&"center-center"!=r&&"top-center"!=r||(s="-50%"),"bottom-left"==r||"bottom-center"==r||"bottom-right"==r?l="-100%":"center-left"!=r&&"center-center"!=r&&"center-right"!=r||(l="-50%");const u=`translate(${s}, ${l}) translate(${o}, ${a})`;this.rendered.transform_!=u&&(this.rendered.transform_=u,n.transform=u)}getOptions(){return this.options}}e.A=c},8143:function(t,e,n){"use strict";var i=n(79332),r=n(6837),o=n(11078),a=n(4087),s=n(93474);class l extends i.A{constructor(t,e,n){super(),n=n||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=void 0===n.transition?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(r.A.CHANGE)}release(){this.state===o.A.ERROR&&this.setState(o.A.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){let t=this.interimTile;if(!t)return this;do{if(t.getState()==o.A.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){let t=this.interimTile;if(!t)return;let e=this;do{if(t.getState()==o.A.LOADED){t.interimTile=null;break}t.getState()==o.A.LOADING?e=t:t.getState()==o.A.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==o.A.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){(0,a.b0)()}getAlpha(t,e){if(!this.transition_)return 1;let n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;const i=e-n+1e3/60;return i>=this.transition_?1:(0,s.a6)(i/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}e.A=l},91110:function(t,e,n){"use strict";n.d(e,{N:function(){return r}});class i{constructor(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function r(t,e,n,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=r,o):new i(t,e,n,r)}e.A=i},11078:function(t,e){"use strict";e.A={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},58694:function(t,e,n){"use strict";n.d(e,{Ay:function(){return L}});var i=n(34120),r=n(62703),o={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},a=n(57115),s=n(46800),l=n(74238),u=n(6933),c=n(90588),h=n(61597);function d(t,e,n){return function(i,r,o,a,s){if(!i)return;if(!r&&!e)return i;const l=e?0:o[0]*r,u=e?0:o[1]*r,c=s?s[0]:0,d=s?s[1]:0;let f=t[0]+l/2+c,p=t[2]-l/2+c,g=t[1]+u/2+d,m=t[3]-u/2+d;f>p&&(f=(p+f)/2,p=f),g>m&&(g=(m+g)/2,m=g);let v=(0,h.qE)(i[0],f,p),y=(0,h.qE)(i[1],g,m);if(a&&n&&r){const t=30*r;v+=-t*Math.log(1+Math.max(0,f-i[0])/t)+t*Math.log(1+Math.max(0,i[0]-p)/t),y+=-t*Math.log(1+Math.max(0,g-i[1])/t)+t*Math.log(1+Math.max(0,i[1]-m)/t)}return[v,y]}}function f(t){return t}var p=n(70915),g=n(66514);function m(t,e,n,i){const r=(0,p.RG)(e)/n[0],o=(0,p.Oq)(e)/n[1];return i?Math.min(t,Math.max(r,o)):Math.min(t,Math.min(r,o))}function v(t,e,n){let i=Math.min(t,e);const r=50;return i*=Math.log(1+r*Math.max(0,t/e-1))/r+1,n&&(i=Math.max(i,n),i/=Math.log(1+r*Math.max(0,n/t-1))/r+1),(0,h.qE)(i,n/2,2*e)}function y(t,e,n,i){return e=void 0===e||e,function(r,o,a,s){if(void 0!==r){const l=t[0],u=t[t.length-1],c=n?m(l,n,a,i):l;if(s)return e?v(r,c,u):(0,h.qE)(r,u,c);const d=Math.min(c,r),f=Math.floor((0,g.FT)(t,d,o));return t[f]>c&&f<t.length-1?t[f+1]:t[f]}}}function _(t,e,n,i,r,o){return i=void 0===i||i,n=void 0!==n?n:0,function(a,s,l,u){if(void 0!==a){const c=r?m(e,r,l,o):e;if(u)return i?v(a,c,n):(0,h.qE)(a,n,c);const d=1e-9,f=Math.ceil(Math.log(e/c)/Math.log(t)-d),p=-s*(.5-d)+.5,g=Math.min(c,a),y=Math.floor(Math.log(e/g)/Math.log(t)+p),_=Math.max(f,y),x=e/Math.pow(t,_);return(0,h.qE)(x,n,c)}}}function x(t,e,n,i,r){return n=void 0===n||n,function(o,a,s,l){if(void 0!==o){const a=i?m(t,i,s,r):t;return n&&l?v(o,a,e):(0,h.qE)(o,e,a)}}}var b=n(24498),w=n(93474),S=n(79787);const A=0;class M extends i.A{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,s.Av)(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&(0,s.RJ)(),t.center&&(t.center=(0,s.Ad)(t.center,this.projection_)),t.extent&&(t.extent=(0,s.SD)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const s in o)delete e[s];this.setProperties(e,!0);const n=T(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=n.minZoom;const i=I(t),r=n.constraint,a=E(t);this.constraints_={center:i,resolution:r,rotation:a},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const n=this.getCenterInternal();if(n){const i=t||[0,0,0,0];e=e||[0,0,0,0];const r=this.getResolution(),o=r/2*(i[3]-e[3]+e[1]-i[1]),a=r/2*(i[0]-e[0]+e[2]-i[2]);this.setCenterInternal([n[0]+o,n[1]-a])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let n=0;n<e.length;++n){let t=arguments[n];t.center&&(t=Object.assign({},t),t.center=(0,s.Ad)(t.center,this.getProjection())),t.anchor&&(t=Object.assign({},t),t.anchor=(0,s.Ad)(t.anchor,this.getProjection())),e[n]=t}this.animateInternal.apply(this,e)}animateInternal(t){let e,n=arguments.length;n>1&&"function"===typeof arguments[n-1]&&(e=arguments[n-1],--n);let i=0;for(;i<n&&!this.isDef();++i){const t=arguments[i];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(i===n)return void(e&&C(e,!0));let o=Date.now(),a=this.targetCenter_.slice(),s=this.targetResolution_,l=this.targetRotation_;const u=[];for(;i<n;++i){const t=arguments[i],n={start:o,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||w.T9,callback:e};if(t.center&&(n.sourceCenter=a,n.targetCenter=t.center.slice(),a=n.targetCenter),void 0!==t.zoom?(n.sourceResolution=s,n.targetResolution=this.getResolutionForZoom(t.zoom),s=n.targetResolution):t.resolution&&(n.sourceResolution=s,n.targetResolution=t.resolution,s=n.targetResolution),void 0!==t.rotation){n.sourceRotation=l;const e=(0,h.xP)(t.rotation-l+Math.PI,2*Math.PI)-Math.PI;n.targetRotation=l+e,l=n.targetRotation}D(n)?n.complete=!0:o+=n.duration,u.push(n)}this.animations_.push(u),this.setHint(r.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[r.A.ANIMATING]>0}getInteracting(){return this.hints_[r.A.INTERACTING]>0}cancelAnimations(){let t;this.setHint(r.A.ANIMATING,-this.hints_[r.A.ANIMATING]);for(let e=0,n=this.animations_.length;e<n;++e){const n=this.animations_[e];if(n[0].callback&&C(n[0].callback,!1),!t)for(let e=0,i=n.length;e<i;++e){const i=n[e];if(!i.complete){t=i.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const t=Date.now();let e=!1;for(let n=this.animations_.length-1;n>=0;--n){const i=this.animations_[n];let o=!0;for(let n=0,r=i.length;n<r;++n){const r=i[n];if(r.complete)continue;const a=t-r.start;let s=r.duration>0?a/r.duration:1;s>=1?(r.complete=!0,s=1):o=!1;const l=r.easing(s);if(r.sourceCenter){const t=r.sourceCenter[0],e=r.sourceCenter[1],n=r.targetCenter[0],i=r.targetCenter[1];this.nextCenter_=r.targetCenter;const o=t+l*(n-t),a=e+l*(i-e);this.targetCenter_=[o,a]}if(r.sourceResolution&&r.targetResolution){const t=1===l?r.targetResolution:r.sourceResolution+l*(r.targetResolution-r.sourceResolution);if(r.anchor){const e=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(n,r.anchor)}this.nextResolution_=r.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==r.sourceRotation&&void 0!==r.targetRotation){const t=1===l?(0,h.xP)(r.targetRotation+Math.PI,2*Math.PI)-Math.PI:r.sourceRotation+l*(r.targetRotation-r.sourceRotation);if(r.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,r.anchor)}this.nextRotation_=r.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!r.complete)break}if(o){this.animations_[n]=null,this.setHint(r.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=i[0].callback;t&&C(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let n;const i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],(0,u.e$)(n,t-this.getRotation()),(0,u.WQ)(n,e)),n}calculateCenterZoom(t,e){let n;const i=this.getCenterInternal(),r=this.getResolution();if(void 0!==i&&void 0!==r){const o=e[0]-t*(e[0]-i[0])/r,a=e[1]-t*(e[1]-i[1])/r;n=[o,a]}return n}getViewportSize_(t){const e=this.viewportSize_;if(t){const n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?(0,s.te)(t,this.getProjection()):t}getCenterInternal(){return this.get(o.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,s.JR)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,c.v)(e,"The view center is not defined");const n=this.getResolution();(0,c.v)(void 0!==n,"The view resolution is not defined");const i=this.getRotation();return(0,c.v)(void 0!==i,"The view rotation is not defined"),(0,p.Bg)(e,n,i,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(o.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,s.SD)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const n=(0,p.RG)(t)/e[0],i=(0,p.Oq)(t)/e[1];return Math.max(n,i)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(e/n)/Math.log(t);return function(n){const r=e/Math.pow(t,n*i);return r}}getRotation(){return this.get(o.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/e;return function(t){const i=Math.log(n/t)/e/r;return i}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),n=this.getRotation();let i=this.getCenterInternal();const r=this.padding_;if(r){const t=this.getViewportSizeMinusPadding_();i=P(i,this.getViewportSize_(),[t[0]/2+r[3],t[1]/2+r[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,n,i=this.minZoom_||0;if(this.resolutions_){const r=(0,g.FT)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=(0,h.qE)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,(0,h.qE)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let n;if((0,c.v)(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){(0,c.v)(!(0,p.Im)(t),"Cannot fit empty extent provided as `geometry`");const e=(0,s.SD)(t,this.getProjection());n=(0,S.VY)(e)}else if("Circle"===t.getType()){const e=(0,s.SD)(t.getExtent(),this.getProjection());n=(0,S.VY)(e),n.rotate(this.getRotation(),(0,p.q1)(e))}else{const e=(0,s.Tf)();n=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(n,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride();let a=1/0,s=1/0,l=-1/0,u=-1/0;for(let c=0,h=r.length;c<h;c+=o){const t=r[c]*n-r[c+1]*i,e=r[c]*i+r[c+1]*n;a=Math.min(a,t),s=Math.min(s,e),l=Math.max(l,t),u=Math.max(u,e)}return[a,s,l,u]}fitInternal(t,e){e=e||{};let n=e.size;n||(n=this.getViewportSizeMinusPadding_());const i=void 0!==e.padding?e.padding:[0,0,0,0],r=void 0!==e.nearest&&e.nearest;let o;o=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const a=this.rotatedExtentForGeometry(t);let s=this.getResolutionForExtentInternal(a,[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]);s=isNaN(s)?o:Math.max(s,o),s=this.getConstrainedResolution(s,r?0:1);const u=this.getRotation(),c=Math.sin(u),h=Math.cos(u),d=(0,p.q1)(a);d[0]+=(i[1]-i[3])/2*s,d[1]+=(i[0]-i[2])/2*s;const f=d[0]*h-d[1]*c,g=d[1]*h+d[0]*c,m=this.getConstrainedCenter([f,g],s),v=e.callback?e.callback:l.tV;void 0!==e.duration?this.animateInternal({resolution:s,center:m,duration:e.duration,easing:e.easing},v):(this.targetResolution_=s,this.targetCenter_=m,this.applyTargetState_(!1,!0),C(v,!0))}centerOn(t,e,n){this.centerOnInternal((0,s.Ad)(t,this.getProjection()),e,n)}centerOnInternal(t,e,n){this.setCenterInternal(P(t,e,n,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,n,i){let r;const o=this.padding_;if(o&&t){const a=this.getViewportSizeMinusPadding_(-n),s=P(t,i,[a[0]/2+o[3],a[1]/2+o[0]],e,n);r=[t[0]-s[0],t[1]-s[1]]}return r}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,s.te)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,s.Ad)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,s.Ad)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(i,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,s.Ad)(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){const n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getViewportSize_(i),a=this.constraints_.resolution(this.targetResolution_,0,r,n),s=this.constraints_.center(this.targetCenter_,a,r,n,this.calculateCenterShift(this.targetCenter_,a,i,r));this.get(o.ROTATION)!==i&&this.set(o.ROTATION,i),this.get(o.RESOLUTION)!==a&&(this.set(o.RESOLUTION,a),this.set("zoom",this.getZoom(),!0)),s&&this.get(o.CENTER)&&(0,u.aI)(this.get(o.CENTER),s)||this.set(o.CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,n){t=void 0!==t?t:200;const i=e||0,r=this.constraints_.rotation(this.targetRotation_),o=this.getViewportSize_(r),a=this.constraints_.resolution(this.targetResolution_,i,o),s=this.constraints_.center(this.targetCenter_,a,o,!1,this.calculateCenterShift(this.targetCenter_,a,r,o));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=a,this.targetRotation_=r,this.targetCenter_=s,void this.applyTargetState_();n=n||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===a&&this.getRotation()===r&&this.getCenterInternal()&&(0,u.aI)(this.getCenterInternal(),s)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:r,center:s,resolution:a,duration:t,easing:w.vT,anchor:n}))}beginInteraction(){this.resolveConstraints(0),this.setHint(r.A.INTERACTING,1)}endInteraction(t,e,n){n=n&&(0,s.Ad)(n,this.getProjection()),this.endInteractionInternal(t,e,n)}endInteractionInternal(t,e,n){this.getInteracting()&&(this.setHint(r.A.INTERACTING,-1),this.resolveConstraints(t,e,n))}getConstrainedCenter(t,e){const n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)}getConstrainedZoom(t,e){const n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))}getConstrainedResolution(t,e){e=e||0;const n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,n)}}function C(t,e){setTimeout((function(){t(e)}),0)}function I(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}const e=(0,s.Av)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,d(t,!1,!1)}return f}function T(t){let e,n,i;const r=28,o=2;let l=void 0!==t.minZoom?t.minZoom:A,u=void 0!==t.maxZoom?t.maxZoom:r;const c=void 0!==t.zoomFactor?t.zoomFactor:o,h=void 0!==t.multiWorld&&t.multiWorld,d=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,f=void 0!==t.showFullExtent&&t.showFullExtent,g=(0,s.Av)(t.projection,"EPSG:3857"),m=g.getExtent();let v=t.constrainOnlyCenter,b=t.extent;if(h||b||!g.isGlobal()||(v=!1,b=m),void 0!==t.resolutions){const r=t.resolutions;n=r[l],i=void 0!==r[u]?r[u]:r[r.length-1],e=t.constrainResolution?y(r,d,!v&&b,f):x(n,i,d,!v&&b,f)}else{const h=m?Math.max((0,p.RG)(m),(0,p.Oq)(m)):360*s.Ig.degrees/g.getMetersPerUnit(),y=h/a.R/Math.pow(o,A),w=y/Math.pow(o,r-A);n=t.maxResolution,void 0!==n?l=0:n=y/Math.pow(c,l),i=t.minResolution,void 0===i&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(c,u):y/Math.pow(c,u):w),u=l+Math.floor(Math.log(n/i)/Math.log(c)),i=n/Math.pow(c,u-l),e=t.constrainResolution?_(c,n,i,d,!v&&b,f):x(n,i,d,!v&&b,f)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:l,zoomFactor:c}}function E(t){const e=void 0===t.enableRotation||t.enableRotation;if(e){const e=t.constrainRotation;return void 0===e||!0===e?(0,b.cq)():!1===e?b.dv:"number"===typeof e?(0,b.a$)(e):b.dv}return b.b8}function D(t){return!(t.sourceCenter&&t.targetCenter&&!(0,u.aI)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function P(t,e,n,i,r){const o=Math.cos(-r);let a=Math.sin(-r),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;s+=(e[0]/2-n[0])*i,l+=(n[1]-e[1]/2)*i,a=-a;const u=s*o-l*a,c=l*o+s*a;return[u,c]}var L=M},62703:function(t,e){"use strict";e.A={ANIMATING:0,INTERACTING:1}},66514:function(t,e,n){"use strict";function i(t,e,n){let i,o;n=n||r;let a=0,s=t.length,l=!1;while(a<s)i=a+(s-a>>1),o=+n(t[i],e),o<0?a=i+1:(s=i,l=!o);return l?a:~a}function r(t,e){return t>e?1:t<e?-1:0}function o(t,e,n){if(t[0]<=e)return 0;const i=t.length;if(e<=t[i-1])return i-1;if("function"===typeof n){for(let r=1;r<i;++r){const i=t[r];if(i===e)return r;if(i<e)return n(e,t[r-1],i)>0?r-1:r}return i-1}if(n>0){for(let n=1;n<i;++n)if(t[n]<e)return n-1;return i-1}if(n<0){for(let n=1;n<i;++n)if(t[n]<=e)return n;return i-1}for(let r=1;r<i;++r){if(t[r]==e)return r;if(t[r]<e)return t[r-1]-e<e-t[r]?r-1:r}return i-1}function a(t,e,n){while(e<n){const i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function s(t,e){const n=Array.isArray(e)?e:[e],i=n.length;for(let r=0;r<i;r++)t[t.length]=n[r]}function l(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function u(t,e,n){const i=e||r;return t.every((function(e,r){if(0===r)return!0;const o=i(t[r-1],e);return!(o>0||n&&0===o)}))}n.d(e,{El:function(){return i},FT:function(){return o},V_:function(){return r},WC:function(){return u},X$:function(){return s},aI:function(){return l},gI:function(){return a}})},90588:function(t,e,n){"use strict";function i(t,e){if(!t)throw new Error(e)}n.d(e,{v:function(){return i}})},85745:function(t,e,n){"use strict";n.d(e,{_j:function(){return A},oJ:function(){return m},sH:function(){return S},$C:function(){return I},cD:function(){return w},S8:function(){return M},eE:function(){return b},dI:function(){return C},fu:function(){return x}});var i={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},r={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};r.max=r.whitepoint[2].D65,r.rgb=function(t,e){e=e||r.whitepoint[2].E;var n,i,o,a=t[0]/e[0],s=t[1]/e[1],l=t[2]/e[2];return n=3.240969941904521*a+-1.537383177570093*s+-.498610760293*l,i=-.96924363628087*a+1.87596750150772*s+.041555057407175*l,o=.055630079696993*a+-.20397695888897*s+1.056971514242878*l,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[255*n,255*i,255*o]},i.xyz=function(t,e){var n=t[0]/255,i=t[1]/255,o=t[2]/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;var a=.41239079926595*n+.35758433938387*i+.18048078840183*o,s=.21263900587151*n+.71516867876775*i+.072192315360733*o,l=.019330818715591*n+.11919477979462*i+.95053215224966*o;return e=e||r.whitepoint[2].E,[a*e[0],s*e[1],l*e[2]]};var o=r,a={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,n){var i,r,a,s,l,u,c,h,d,f,p,g,m;if(a=t[0],s=t[1],l=t[2],0===a)return[0,0,0];var v=.0011070564598794539;return e=e||"D65",n=n||2,d=o.whitepoint[n][e][0],f=o.whitepoint[n][e][1],p=o.whitepoint[n][e][2],g=4*d/(d+15*f+3*p),m=9*f/(d+15*f+3*p),i=s/(13*a)+g||0,r=l/(13*a)+m||0,c=a>8?f*Math.pow((a+16)/116,3):f*a*v,u=9*c*i/(4*r)||0,h=c*(12-3*i-20*r)/(4*r)||0,[u,c,h]}};o.luv=function(t,e,n){var i,r,a,s,l,u,c,h,d,f,p,g,m,v=.008856451679035631,y=903.2962962962961;e=e||"D65",n=n||2,d=o.whitepoint[n][e][0],f=o.whitepoint[n][e][1],p=o.whitepoint[n][e][2],g=4*d/(d+15*f+3*p),m=9*f/(d+15*f+3*p),u=t[0],c=t[1],h=t[2],i=4*u/(u+15*c+3*h)||0,r=9*c/(u+15*c+3*h)||0;var _=c/f;return a=_<=v?y*_:116*Math.pow(_,1/3)-16,s=13*a*(i-g),l=13*a*(r-m),[a,s,l]};var s={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(t){var e,n,i,r=t[0],o=t[1],a=t[2];return i=a/360*2*Math.PI,e=o*Math.cos(i),n=o*Math.sin(i),[r,e,n]},xyz:function(t){return a.xyz(s.luv(t))}},l=s;a.lchuv=function(t){var e=t[0],n=t[1],i=t[2],r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n),a=360*o/2/Math.PI;return a<0&&(a+=360),[e,r,a]},o.lchuv=function(t){return a.lchuv(o.luv(t))};var u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},c=d,h={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function d(t){var e,n,i=[],r=1;if("number"===typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if("number"===typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),u[t])i=u[t].slice(),n="rgb";else if("transparent"===t)r=0,n="rgb",i=[0,0,0];else if("#"===t[0]){var o=t.slice(1),a=o.length,s=a<=4;r=1,s?(i=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],4===a&&(r=parseInt(o[3]+o[3],16)/255)):(i=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],8===a&&(r=parseInt(o[6]+o[7],16)/255)),i[0]||(i[0]=0),i[1]||(i[1]=0),i[2]||(i[2]=0),n="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var l=e[1];n=l.replace(/a$/,"");var c="cmyk"===n?4:"gray"===n?1:3;i=e[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===n&&(n=i.shift()),i=i.map((function(t,e){if("%"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:"rgb"===n?255*t:"h"===n[0]?100*t:"l"!==n[0]||e?"lab"===n?125*t:"lch"===n?e<2?150*t:360*t:"o"!==n[0]||e?"oklab"===n?.4*t:"oklch"===n?e<2?.4*t:360*t:t:t:100*t;if("h"===n[e]||2===e&&"h"===n[n.length-1]){if(void 0!==h[t])return h[t];if(t.endsWith("deg"))return parseFloat(t);if(t.endsWith("turn"))return 360*parseFloat(t);if(t.endsWith("grad"))return 360*parseFloat(t)/400;if(t.endsWith("rad"))return 180*parseFloat(t)/Math.PI}return"none"===t?0:parseFloat(t)})),r=i.length>c?i.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(i=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),n=t.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:n,values:i,alpha:r}}var f={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,n,i,r,o,a=t[0]/360,s=t[1]/100,l=t[2]/100,u=0;if(0===s)return o=255*l,[o,o,o];for(n=l<.5?l*(1+s):l+s-l*s,e=2*l-n,r=[0,0,0];u<3;)i=a+1/3*-(u-1),i<0?i++:i>1&&i--,o=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,r[u++]=255*o;return r}};function p(t){var e;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var n=c(t);if(!n.space)return[];const r="h"===n.space[0]?f.min:i.min,o="h"===n.space[0]?f.max:i.max;return e=Array(3),e[0]=Math.min(Math.max(n.values[0],r[0]),o[0]),e[1]=Math.min(Math.max(n.values[1],r[1]),o[1]),e[2]=Math.min(Math.max(n.values[2],r[2]),o[2]),"h"===n.space[0]&&(e=f.rgb(e)),e.push(Math.min(Math.max(n.alpha,0),1)),e}i.hsl=function(t){var e,n,i,r=t[0]/255,o=t[1]/255,a=t[2]/255,s=Math.min(r,o,a),l=Math.max(r,o,a),u=l-s;return l===s?e=0:r===l?e=(o-a)/u:o===l?e=2+(a-r)/u:a===l&&(e=4+(r-o)/u),e=Math.min(60*e,360),e<0&&(e+=360),i=(s+l)/2,n=l===s?0:i<=.5?u/(l+s):u/(2-l-s),[e,100*n,100*i]};var g=n(61597);function m(t){return"string"===typeof t?t:C(t)}const v=1024,y={};let _=0;function x(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function b(t){const e=o.lchuv(i.xyz(t));return e[3]=t[3],e}function w(t){const e=o.rgb(l.xyz(t));return e[3]=t[3],e}function S(t){if(y.hasOwnProperty(t))return y[t];if(_>=v){let t=0;for(const e in y)0===(3&t++)&&(delete y[e],--_)}const e=p(t);if(4!==e.length)throw new Error('Failed to parse "'+t+'" as color');for(const n of e)if(isNaN(n))throw new Error('Failed to parse "'+t+'" as color');return M(e),y[t]=e,++_,e}function A(t){return Array.isArray(t)?t:S(t)}function M(t){return t[0]=(0,g.qE)(t[0]+.5|0,0,255),t[1]=(0,g.qE)(t[1]+.5|0,0,255),t[2]=(0,g.qE)(t[2]+.5|0,0,255),t[3]=(0,g.qE)(t[3],0,1),t}function C(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let n=t[1];n!=(0|n)&&(n=n+.5|0);let i=t[2];i!=(0|i)&&(i=i+.5|0);const r=void 0===t[3]?1:Math.round(1e3*t[3])/1e3;return"rgba("+e+","+n+","+i+","+r+")"}function I(t){try{return S(t),!0}catch(e){return!1}}},77295:function(t,e,n){"use strict";n.d(e,{F:function(){return l}});var i=n(6141),r=n(68711),o=n(97907),a=n(82241),s=n(85745);function l(t){return t?Array.isArray(t)?(0,s.dI)(t):"object"===typeof t&&"src"in t?u(t):t:null}function u(t){if(!t.offset||!t.size)return a.ue.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,n=a.ue.getPattern(e,void 0,t.color);if(n)return n;const s=a.ue.get(t.src,"anonymous",null);if(s.getImageState()!==i.A.LOADED)return null;const l=(0,r.Y)(t.size[0],t.size[1]);return l.drawImage(s.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),(0,o.J)(l.canvas,e,void 0,i.A.LOADED,t.color,!0),a.ue.getPattern(e,void 0,t.color)}},54422:function(t,e,n){"use strict";n.d(e,{R8:function(){return o}});const i={info:1,warn:2,error:3,none:4};let r=i.info;function o(...t){r>i.warn||console.warn(...t)}},6933:function(t,e,n){"use strict";n.d(e,{Li:function(){return l},WQ:function(){return r},aI:function(){return o},e$:function(){return a},hs:function(){return s}});var i=n(70915);function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){let n=!0;for(let i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function a(t,e){const n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function s(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){const n=(0,i.RG)(e.getExtent()),r=u(t,e,n);r&&(t[0]-=r*n)}return t}function u(t,e,n){const r=e.getExtent();let o=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(n=n||(0,i.RG)(r),o=Math.floor((t[0]-r[0])/n)),o}},25176:function(t,e,n){"use strict";n.d(e,{$N:function(){return a},K5:function(){return c},Q5:function(){return r},Si:function(){return i},XI:function(){return o},nT:function(){return s}});const i="ol-hidden",r="ol-selectable",o="ol-unselectable",a="ol-control",s="ol-collapsed",l=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),u=["style","variant","weight","size","lineHeight","family"],c=function(t){const e=t.match(l);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,r=u.length;i<r;++i){const t=e[i+1];void 0!==t&&(n[u[i]]=t)}return n.families=n.family.split(/,\s?/),n}},68711:function(t,e,n){"use strict";n.d(e,{DK:function(){return u},Gq:function(){return l},WM:function(){return f},Y:function(){return r},Yg:function(){return s},bf:function(){return h},fo:function(){return c},gS:function(){return d},lr:function(){return a}});var i=n(7771);function r(t,e,n,r){let o;return o=n&&n.length?n.shift():i.Wl?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",r)}let o;function a(){return o||(o=r(1,1)),o}function s(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function l(t){let e=t.offsetWidth;const n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function u(t){let e=t.offsetHeight;const n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function c(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function h(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function d(t){while(t.lastChild)t.removeChild(t.lastChild)}function f(t,e){const n=t.childNodes;for(let i=0;1;++i){const r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}},93474:function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}n.d(e,{T9:function(){return o},a6:function(){return i},sn:function(){return a},vT:function(){return r}})},9438:function(t,e,n){"use strict";n.d(e,{JH:function(){return a},Jz:function(){return o},KT:function(){return r}});var i=n(43530);function r(t,e,n,i,r){if(i&&i!==t&&(n=n.bind(i)),r){const i=n;n=function(){t.removeEventListener(e,n),i.apply(this,arguments)}}const o={target:t,type:e,listener:n};return t.addEventListener(e,n),o}function o(t,e,n,i){return r(t,e,n,i,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,i.I)(t))}},1685:function(t,e,n){"use strict";class i{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}e.Ay=i},6837:function(t,e){"use strict";e.A={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},79332:function(t,e,n){"use strict";var i=n(90025),r=n(1685),o=n(74238),a=n(43530);class s extends i.A{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const n=this.listeners_||(this.listeners_={}),i=n[t]||(n[t]=[]);i.includes(e)||i.push(e)}dispatchEvent(t){const e="string"===typeof t,n=e?t:t.type,i=this.listeners_&&this.listeners_[n];if(!i)return;const a=e?new r.Ay(t):t;a.target||(a.target=this.eventTarget_||this);const s=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let u;n in s||(s[n]=0,l[n]=0),++s[n];for(let r=0,o=i.length;r<o;++r)if(u="handleEvent"in i[r]?i[r].handleEvent(a):i[r].call(this,a),!1===u||a.propagationStopped){u=!1;break}if(0===--s[n]){let t=l[n];delete l[n];while(t--)this.removeEventListener(n,o.tV);delete s[n]}return u}disposeInternal(){this.listeners_&&(0,a.I)(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){if(!this.listeners_)return;const n=this.listeners_[t];if(!n)return;const i=n.indexOf(e);-1!==i&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[i]=o.tV,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}}e.A=s},70915:function(t,e,n){"use strict";n.d(e,{$C:function(){return x},$u:function(){return z},Bg:function(){return E},HY:function(){return N},Im:function(){return F},Ld:function(){return l},Li:function(){return V},Mx:function(){return B},N:function(){return p},NW:function(){return G},Oq:function(){return P},Py:function(){return R},QJ:function(){return W},R:function(){return M},R8:function(){return b},RG:function(){return k},Rj:function(){return h},S5:function(){return f},Tr:function(){return r},UG:function(){return A},Vy:function(){return v},WU:function(){return O},X$:function(){return _},Ym:function(){return u},Yw:function(){return D},_N:function(){return L},aI:function(){return y},aZ:function(){return g},dP:function(){return m},k_:function(){return C},ms:function(){return c},o8:function(){return s},q1:function(){return I},qF:function(){return T},r:function(){return a},sB:function(){return S},vz:function(){return d}});var i=n(11580);function r(t){const e=f();for(let n=0,i=t.length;n<i;++n)x(e,t[n]);return e}function o(t,e,n){const i=Math.min.apply(null,t),r=Math.min.apply(null,e),o=Math.max.apply(null,t),a=Math.max.apply(null,e);return p(i,r,o,a,n)}function a(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function s(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,n){let i,r;return i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,i*i+r*r}function u(t,e){return h(t,e[0],e[1])}function c(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function h(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function d(t,e){const n=t[0],r=t[1],o=t[2],a=t[3],s=e[0],l=e[1];let u=i.A.UNKNOWN;return s<n?u|=i.A.LEFT:s>o&&(u|=i.A.RIGHT),l<r?u|=i.A.BELOW:l>a&&(u|=i.A.ABOVE),u===i.A.UNKNOWN&&(u=i.A.INTERSECTING),u}function f(){return[1/0,1/0,-1/0,-1/0]}function p(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function g(t){return p(1/0,1/0,-1/0,-1/0,t)}function m(t,e){const n=t[0],i=t[1];return p(n,i,n,i,e)}function v(t,e,n,i,r){const o=g(r);return b(o,t,e,n,i)}function y(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function _(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function x(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function b(t,e,n,i,r){for(;n<i;n+=r)w(t,e[n],e[n+1]);return t}function w(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function S(t,e){let n;return n=e(M(t)),n||(n=e(C(t)),n||(n=e(O(t)),n||(n=e(R(t)),n||!1)))}function A(t){let e=0;return F(t)||(e=k(t)*P(t)),e}function M(t){return[t[0],t[1]]}function C(t){return[t[2],t[1]]}function I(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function T(t,e){let n;if("bottom-left"===e)n=M(t);else if("bottom-right"===e)n=C(t);else if("top-left"===e)n=R(t);else{if("top-right"!==e)throw new Error("Invalid corner");n=O(t)}return n}function E(t,e,n,i,r){const[o,a,s,l,u,c,h,d]=D(t,e,n,i);return p(Math.min(o,s,u,h),Math.min(a,l,c,d),Math.max(o,s,u,h),Math.max(a,l,c,d),r)}function D(t,e,n,i){const r=e*i[0]/2,o=e*i[1]/2,a=Math.cos(n),s=Math.sin(n),l=r*a,u=r*s,c=o*a,h=o*s,d=t[0],f=t[1];return[d-l+h,f-u-c,d-l-h,f-u+c,d+l-h,f+u+c,d+l+h,f+u-c,d-l+h,f-u-c]}function P(t){return t[3]-t[1]}function L(t,e,n){const i=n||f();return N(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):g(i),i}function R(t){return[t[0],t[3]]}function O(t){return[t[2],t[3]]}function k(t){return t[2]-t[0]}function N(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function F(t){return t[2]<t[0]||t[3]<t[1]}function z(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function B(t,e,n){let r=!1;const o=d(t,e),a=d(t,n);if(o===i.A.INTERSECTING||a===i.A.INTERSECTING)r=!0;else{const s=t[0],l=t[1],u=t[2],c=t[3],h=e[0],d=e[1],f=n[0],p=n[1],g=(p-d)/(f-h);let m,v;a&i.A.ABOVE&&!(o&i.A.ABOVE)&&(m=f-(p-c)/g,r=m>=s&&m<=u),r||!(a&i.A.RIGHT)||o&i.A.RIGHT||(v=p-(f-u)*g,r=v>=l&&v<=c),r||!(a&i.A.BELOW)||o&i.A.BELOW||(m=f-(p-l)/g,r=m>=s&&m<=u),r||!(a&i.A.LEFT)||o&i.A.LEFT||(v=p-(f-s)*g,r=v>=l&&v<=c)}return r}function G(t,e,n,i){if(F(t))return g(n);let r=[];if(i>1){const e=t[2]-t[0],n=t[3]-t[1];for(let o=0;o<i;++o)r.push(t[0]+e*o/i,t[1],t[2],t[1]+n*o/i,t[2]-e*o/i,t[3],t[0],t[3]-n*o/i)}else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);const a=[],s=[];for(let o=0,l=r.length;o<l;o+=2)a.push(r[o]),s.push(r[o+1]);return o(a,s,n)}function V(t,e){const n=e.getExtent(),i=I(t);if(e.canWrapX()&&(i[0]<n[0]||i[0]>=n[2])){const e=k(n),r=Math.floor((i[0]-n[0])/e),o=r*e;t[0]-=o,t[2]-=o}return t}function W(t,e,n){if(e.canWrapX()){const i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];V(t,e);const r=k(i);if(k(t)>r&&!n)return[[i[0],t[1],i[2],t[3]]];if(t[0]<i[0])return[[t[0]+r,t[1],i[2],t[3]],[i[0],t[1],t[2],t[3]]];if(t[2]>i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-r,t[3]]]}return[t]}},11580:function(t,e){"use strict";e.A={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},19003:function(t,e,n){"use strict";n.d(e,{A:function(){return dt}});var i=n(86717),r=n(24778),o=n(44294),a=n(11217),s=n(79787),l=n(62096),u=n(70915),c=n(92497),h=n(66514),d=n(56361),f=n(61597);class p extends l.Ay{constructor(t,e){super(),e&&!Array.isArray(t[0])?this.setFlatCoordinates(e,t):this.setCoordinates(t,e)}appendPoint(t){(0,h.X$)(this.flatCoordinates,t.getFlatCoordinates()),this.changed()}clone(){const t=new p(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){if(i<(0,u.Ld)(this.getExtent(),t,e))return i;const r=this.flatCoordinates,o=this.stride;for(let a=0,s=r.length;a<s;a+=o){const s=(0,f.hG)(t,e,r[a],r[a+1]);if(s<i){i=s;for(let t=0;t<o;++t)n[t]=r[a+t];n.length=o}}return i}getCoordinates(){return(0,d.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(t){const e=this.flatCoordinates.length/this.stride;return t<0||e<=t?null:new o.A(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)}getPoints(){const t=this.flatCoordinates,e=this.layout,n=this.stride,i=[];for(let r=0,a=t.length;r<a;r+=n){const a=new o.A(t.slice(r,r+n),e);i.push(a)}return i}getType(){return"MultiPoint"}intersectsExtent(t){const e=this.flatCoordinates,n=this.stride;for(let i=0,r=e.length;i<r;i+=n){const n=e[i],r=e[i+1];if((0,u.Rj)(t,n,r))return!0}return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,c.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}var g=p,m=n(63953),v=n(83671),y=n(79969),_=n(4350);class x extends l.Ay{constructor(t,e,n){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,e);else if(void 0!==e&&n)this.setFlatCoordinates(e,t),this.ends_=n;else{const e=t,n=[],i=[];for(let t=0,o=e.length;t<o;++t){const r=e[t];(0,h.X$)(n,r.getFlatCoordinates()),i.push(n.length)}const r=0===e.length?this.getLayout():e[0].getLayout();this.setFlatCoordinates(r,n),this.ends_=i}}appendLineString(t){(0,h.X$)(this.flatCoordinates,t.getFlatCoordinates().slice()),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new x(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,u.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,m.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,m.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,n,i))}getCoordinateAtM(t,e,n){return"XYM"!=this.layout&&"XYZM"!=this.layout||0===this.flatCoordinates.length?null:(e=void 0!==e&&e,n=void 0!==n&&n,(0,y.L8)(this.flatCoordinates,0,this.ends_,this.stride,t,e,n))}getCoordinates(){return(0,d.cD)(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(t){return t<0||this.ends_.length<=t?null:new a.A(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLineStrings(){const t=this.flatCoordinates,e=this.ends_,n=this.layout,i=[];let r=0;for(let o=0,s=e.length;o<s;++o){const s=e[o],l=new a.A(t.slice(r,s),n);i.push(l),r=s}return i}getFlatMidpoints(){const t=[],e=this.flatCoordinates;let n=0;const i=this.ends_,r=this.stride;for(let o=0,a=i.length;o<a;++o){const a=i[o],s=(0,y.SH)(e,n,a,r,.5);(0,h.X$)(t,s),n=a}return t}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,v.AL)(this.flatCoordinates,0,this.ends_,this.stride,t,e,0,n),new x(e,"XY",n)}getType(){return"MultiLineString"}intersectsExtent(t){return(0,_.fB)(this.flatCoordinates,0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,c.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}var b=x,w=n(22616),S=n(71225),A=n(28609),M=n(54049),C=n(52845);class I extends l.Ay{constructor(t,e,n){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!n&&!Array.isArray(t[0])){const i=t,r=[],o=[];for(let t=0,e=i.length;t<e;++t){const e=i[t],n=r.length,a=e.getEnds();for(let t=0,i=a.length;t<i;++t)a[t]+=n;(0,h.X$)(r,e.getFlatCoordinates()),o.push(a)}e=0===i.length?this.getLayout():i[0].getLayout(),t=r,n=o}void 0!==e&&n?(this.setFlatCoordinates(e,t),this.endss_=n):this.setCoordinates(t,e)}appendPolygon(t){let e;if(this.flatCoordinates){const n=this.flatCoordinates.length;(0,h.X$)(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(let t=0,i=e.length;t<i;++t)e[t]+=n}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()}clone(){const t=this.endss_.length,e=new Array(t);for(let i=0;i<t;++i)e[i]=this.endss_[i].slice();const n=new I(this.flatCoordinates.slice(),this.layout,e);return n.applyProperties(this),n}closestPointXY(t,e,n,i){return i<(0,u.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,m.c)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,m.te)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,n,i))}containsXY(t,e){return(0,C.Gd)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)}getArea(){return(0,A.Cs)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,S.NK)(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,(0,d.Dz)(e,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const t=(0,M.C)(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,w.p)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new g(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,S.mb)(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,S.NK)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,v.sx)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),e,0,n),new I(e,"XY",n)}getPolygon(t){if(t<0||this.endss_.length<=t)return null;let e;if(0===t)e=0;else{const n=this.endss_[t-1];e=n[n.length-1]}const n=this.endss_[t].slice(),i=n[n.length-1];if(0!==e)for(let r=0,o=n.length;r<o;++r)n[r]-=e;return new s.Ay(this.flatCoordinates.slice(e,i),this.layout,n)}getPolygons(){const t=this.layout,e=this.flatCoordinates,n=this.endss_,i=[];let r=0;for(let o=0,a=n.length;o<a;++o){const a=n[o].slice(),l=a[a.length-1];if(0!==r)for(let t=0,e=a.length;t<e;++t)a[t]-=r;const u=new s.Ay(e.slice(r,l),t,a);i.push(u),r=l}return i}getType(){return"MultiPolygon"}intersectsExtent(t){return(0,_.Wp)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,c.d6)(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{const t=n[n.length-1];this.flatCoordinates.length=0===t.length?0:t[t.length-1]}this.changed()}}var T=I,E=n(6837),D=n(27430),P=n(9438);class L extends D.A{constructor(t){super(),this.geometries_=t,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(P.JH),this.changeEventsKeys_.length=0}listenGeometriesChange_(){const t=this.geometries_;for(let e=0,n=t.length;e<n;++e)this.changeEventsKeys_.push((0,P.KT)(t[e],E.A.CHANGE,this.changed,this))}clone(){const t=new L(R(this.geometries_));return t.applyProperties(this),t}closestPointXY(t,e,n,i){if(i<(0,u.Ld)(this.getExtent(),t,e))return i;const r=this.geometries_;for(let o=0,a=r.length;o<a;++o)i=r[o].closestPointXY(t,e,n,i);return i}containsXY(t,e){const n=this.geometries_;for(let i=0,r=n.length;i<r;++i)if(n[i].containsXY(t,e))return!0;return!1}computeExtent(t){(0,u.aZ)(t);const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)(0,u.X$)(t,e[n].getExtent());return t}getGeometries(){return R(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let t=[];const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)e[n].getType()===this.getType()?t=t.concat(e[n].getGeometriesArrayRecursive()):t.push(e[n]);return t}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=[],n=this.geometries_;let i=!1;for(let r=0,o=n.length;r<o;++r){const o=n[r],a=o.getSimplifiedGeometry(t);e.push(a),a!==o&&(i=!0)}if(i){const t=new L(e);return t}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this}getType(){return"GeometryCollection"}intersectsExtent(t){const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)if(e[n].intersectsExtent(t))return!0;return!1}isEmpty(){return 0===this.geometries_.length}rotate(t,e){const n=this.geometries_;for(let i=0,r=n.length;i<r;++i)n[i].rotate(t,e);this.changed()}scale(t,e,n){n||(n=(0,u.q1)(this.getExtent()));const i=this.geometries_;for(let r=0,o=i.length;r<o;++r)i[r].scale(t,e,n);this.changed()}setGeometries(t){this.setGeometriesArray(R(t))}setGeometriesArray(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()}applyTransform(t){const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)e[n].applyTransform(t);this.changed()}translate(t,e){const n=this.geometries_;for(let i=0,r=n.length;i<r;++i)n[i].translate(t,e);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function R(t){return t.map((t=>t.clone()))}var O=L,k=n(4087),N=n(46800);class F{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=i.A,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let n=e.dataProjection?(0,N.Jt)(e.dataProjection):this.readProjection(t);e.extent&&n&&"tile-pixels"===n.getUnits()&&(n=(0,N.Jt)(n),n.setWorldExtent(e.extent)),e={dataProjection:n,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},t)}getType(){return(0,k.b0)()}readFeature(t,e){return(0,k.b0)()}readFeatures(t,e){return(0,k.b0)()}readGeometry(t,e){return(0,k.b0)()}readProjection(t){return(0,k.b0)()}writeFeature(t,e){return(0,k.b0)()}writeFeatures(t,e){return(0,k.b0)()}writeGeometry(t,e){return(0,k.b0)()}}var z=F;function B(t,e,n){const i=n?(0,N.Jt)(n.featureProjection):null,r=n?(0,N.Jt)(n.dataProjection):null;let o=t;if(i&&r&&!(0,N.tI)(i,r)){e&&(o=t.clone());const n=e?i:r,a=e?r:i;"tile-pixels"===n.getUnits()?o.transform(n,a):o.applyTransform((0,N.RG)(n,a))}if(e&&n&&void 0!==n.decimals){const e=Math.pow(10,n.decimals),i=function(t){for(let n=0,i=t.length;n<i;++n)t[n]=Math.round(t[n]*e)/e;return t};o===t&&(o=t.clone()),o.applyTransform(i)}return o}const G={Point:o.A,LineString:a.A,Polygon:s.Ay,MultiPoint:g,MultiLineString:b,MultiPolygon:T};function V(t,e,n){return Array.isArray(e[0])?((0,S.mb)(t,0,e,n)||(t=t.slice(),(0,S.NK)(t,0,e,n)),t):((0,S.PA)(t,0,e,n)||(t=t.slice(),(0,S.ug)(t,0,e,n)),t)}function W(t,e){const n=t.geometry;if(!n)return[];if(Array.isArray(n))return n.map((e=>W({...t,geometry:e}))).flat();const i="MultiPolygon"===n.type?"Polygon":n.type;if("GeometryCollection"===i||"Circle"===i)throw new Error("Unsupported geometry type: "+i);const o=n.layout.length;return B(new r.Ay(i,"Polygon"===i?V(n.flatCoordinates,n.ends,o):n.flatCoordinates,n.ends?.flat(),o,t.properties||{},t.id).enableSimplifyTransformed(),!1,e)}function j(t,e){if(!t)return null;if(Array.isArray(t)){const n=t.map((t=>j(t,e)));return new O(n)}const n=G[t.type];return B(new n(t.flatCoordinates,t.layout,t.ends),!1,e)}class H extends z{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(Y(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(Y(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return(0,k.b0)()}readFeaturesFromObject(t,e){return(0,k.b0)()}readGeometry(t,e){return this.readGeometryFromObject(Y(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return(0,k.b0)()}readProjection(t){return this.readProjectionFromObject(Y(t))}readProjectionFromObject(t){return(0,k.b0)()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return(0,k.b0)()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return(0,k.b0)()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return(0,k.b0)()}}function Y(t){if("string"===typeof t){const e=JSON.parse(t);return e||null}return null!==t?t:null}var U=H,X=n(43530);class Z extends U{constructor(t){t=t||{},super(),this.dataProjection=(0,N.Jt)(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=(0,N.Jt)(t.featureProjection)),t.featureClass&&(this.featureClass=t.featureClass),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let n=null;n="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};const o=q(n["geometry"],e);if(this.featureClass===r.Ay)return W({geometry:o,id:n["id"],properties:n["properties"]},e);const a=new i.A;return this.geometryName_?a.setGeometryName(this.geometryName_):this.extractGeometryName_&&n["geometry_name"]&&a.setGeometryName(n["geometry_name"]),a.setGeometry(j(o,e)),"id"in n&&a.setId(n["id"]),n["properties"]&&a.setProperties(n["properties"],!0),a}readFeaturesFromObject(t,e){const n=t;let i=null;if("FeatureCollection"===n["type"]){const n=t;i=[];const r=n["features"];for(let t=0,o=r.length;t<o;++t){const n=this.readFeatureFromObject(r[t],e);n&&i.push(n)}}else i=[this.readFeatureFromObject(t,e)];return i.flat()}readGeometryFromObject(t,e){return $(t,e)}readProjectionFromObject(t){const e=t["crs"];let n;if(e)if("name"==e["type"])n=(0,N.Jt)(e["properties"]["name"]);else{if("EPSG"!==e["type"])throw new Error("Unknown SRS type");n=(0,N.Jt)("EPSG:"+e["properties"]["code"])}else n=this.dataProjection;return n}writeFeatureObject(t,e){e=this.adaptOptions(e);const n={type:"Feature",geometry:null,properties:null},i=t.getId();if(void 0!==i&&(n.id=i),!t.hasProperties())return n;const r=t.getProperties(),o=t.getGeometry();return o&&(n.geometry=rt(o,e),delete r[t.getGeometryName()]),(0,X.p)(r)||(n.properties=r),n}writeFeaturesObject(t,e){e=this.adaptOptions(e);const n=[];for(let i=0,r=t.length;i<r;++i)n.push(this.writeFeatureObject(t[i],e));return{type:"FeatureCollection",features:n}}writeGeometryObject(t,e){return rt(t,this.adaptOptions(e))}}function q(t,e){if(!t)return null;let n;switch(t["type"]){case"Point":n=J(t);break;case"LineString":n=Q(t);break;case"Polygon":n=it(t);break;case"MultiPoint":n=et(t);break;case"MultiLineString":n=tt(t);break;case"MultiPolygon":n=nt(t);break;case"GeometryCollection":n=K(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return n}function $(t,e){const n=q(t,e);return j(n,e)}function K(t,e){const n=t["geometries"].map((function(t){return q(t,e)}));return n}function J(t){const e=t["coordinates"];return{type:"Point",flatCoordinates:e,layout:(0,l.p0)(e.length)}}function Q(t){const e=t["coordinates"],n=e.flat();return{type:"LineString",flatCoordinates:n,ends:[n.length],layout:(0,l.p0)(e[0]?.length||2)}}function tt(t){const e=t["coordinates"],n=e[0]?.[0]?.length||2,i=[],r=(0,c.KG)(i,0,e,n);return{type:"MultiLineString",flatCoordinates:i,ends:r,layout:(0,l.p0)(n)}}function et(t){const e=t["coordinates"];return{type:"MultiPoint",flatCoordinates:e.flat(),layout:(0,l.p0)(e[0]?.length||2)}}function nt(t){const e=t["coordinates"],n=[],i=e[0]?.[0]?.[0].length||2,r=(0,c.d6)(n,0,e,i);return{type:"MultiPolygon",flatCoordinates:n,ends:r,layout:(0,l.p0)(i)}}function it(t){const e=t["coordinates"],n=[],i=e[0]?.[0]?.length,r=(0,c.KG)(n,0,e,i);return{type:"Polygon",flatCoordinates:n,ends:r,layout:(0,l.p0)(i)}}function rt(t,e){t=B(t,!0,e);const n=t.getType();let i;switch(n){case"Point":i=ct(t,e);break;case"LineString":i=at(t,e);break;case"Polygon":i=ht(t,e);break;case"MultiPoint":i=lt(t,e);break;case"MultiLineString":i=st(t,e);break;case"MultiPolygon":i=ut(t,e);break;case"GeometryCollection":i=ot(t,e);break;case"Circle":i={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return i}function ot(t,e){e=Object.assign({},e),delete e.featureProjection;const n=t.getGeometriesArray().map((function(t){return rt(t,e)}));return{type:"GeometryCollection",geometries:n}}function at(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function st(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function lt(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function ut(t,e){let n;return e&&(n=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(n)}}function ct(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function ht(t,e){let n;return e&&(n=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(n)}}var dt=Z},74238:function(t,e,n){"use strict";n.d(e,{B4:function(){return s},W8:function(){return o},hq:function(){return l},rT:function(){return r},tV:function(){return a}});var i=n(66514);function r(){return!0}function o(){return!1}function a(){}function s(t){let e,n,r,o=!1;return function(){const a=Array.prototype.slice.call(arguments);return o&&this===r&&(0,i.aI)(a,n)||(o=!0,r=this,n=a,e=t.apply(this,arguments)),e}}function l(t){function e(){let e;try{e=t()}catch(n){return Promise.reject(n)}return e instanceof Promise?e:Promise.resolve(e)}return e()}},27430:function(t,e,n){"use strict";var i=n(34120),r=n(4087),o=n(9703),a=n(70915),s=n(46800),l=n(74238),u=n(87622);const c=(0,o.vt)();class h extends i.A{constructor(){super(),this.extent_=(0,a.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,l.B4)(((t,e,n)=>{if(!n)return this.getSimplifiedGeometry(e);const i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,r.b0)()}closestPointXY(t,e,n,i){return(0,r.b0)()}containsXY(t,e){const n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,r.b0)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,a.aZ)(t),this.extentRevision_=this.getRevision()}return(0,a.$u)(this.extent_,t)}rotate(t,e){(0,r.b0)()}scale(t,e,n){(0,r.b0)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,r.b0)()}getType(){return(0,r.b0)()}applyTransform(t){(0,r.b0)()}intersectsExtent(t){return(0,r.b0)()}translate(t,e){(0,r.b0)()}transform(t,e){const n=(0,s.Jt)(t),i="tile-pixels"==n.getUnits()?function(t,i,r){const l=n.getExtent(),h=n.getWorldExtent(),d=(0,a.Oq)(h)/(0,a.Oq)(l);return(0,o.Zz)(c,h[0],h[3],d,-d,0,0,0),(0,u.Rc)(t,0,t.length,r,c,i),(0,s.RG)(n,e)(t,i,r)}:(0,s.RG)(n,e);return this.applyTransform(i),this}}e.A=h},11217:function(t,e,n){"use strict";var i=n(62096),r=n(63953),o=n(70915),a=n(92497),s=n(83671),l=n(66514),u=n(91374),c=n(56361),h=n(79969),d=n(4350),f=n(50904);class p extends i.Ay{constructor(t,e){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}appendCoordinate(t){(0,l.X$)(this.flatCoordinates,t),this.changed()}clone(){const t=new p(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,o.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,i))}forEachSegment(t){return(0,u.j)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinateAtM(t,e){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(e=void 0!==e&&e,(0,h.gr)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e))}getCoordinates(){return(0,c.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(t,e){return(0,h.SH)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)}getLength(){return(0,f.k)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,s.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new p(e,"XY")}getType(){return"LineString"}intersectsExtent(t){return(0,d.gp)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}e.A=p},44294:function(t,e,n){"use strict";var i=n(62096),r=n(70915),o=n(92497),a=n(61597);class s extends i.Ay{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new s(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){const r=this.flatCoordinates,o=(0,a.hG)(t,e,r[0],r[1]);if(o<i){const t=this.stride;for(let e=0;e<t;++e)n[e]=r[e];return n.length=t,o}return i}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,r.dP)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,r.Rj)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,o._n)(this.flatCoordinates,0,t,this.stride),this.changed()}}e.A=s},79787:function(t,e,n){"use strict";n.d(e,{Ay:function(){return _},VY:function(){return x}});var i=n(62096),r=n(63953),o=n(70915),a=n(92497),s=n(83671),l=n(56361),u=n(28609);class c extends i.Ay{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new c(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,n,i){return i<(0,o.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))}getArea(){return(0,u.eN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,l.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,s.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new c(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}var h=c,d=n(44294),f=n(66514),p=n(22616),g=n(4350),m=n(71225),v=n(52845);class y extends i.Ay{constructor(t,e,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&n?(this.setFlatCoordinates(e,t),this.ends_=n):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,f.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new y(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,o.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))}containsXY(t,e){return(0,v.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return(0,u.PK)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,m.ug)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,l.cD)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,o.q1)(this.getExtent());this.flatInteriorPoint_=(0,p.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new d.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new h(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[];let r=0;for(let o=0,a=n.length;o<a;++o){const a=n[o],s=new h(e.slice(r,a),t);i.push(s),r=a}return i}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,m.PA)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,m.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,s.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,n),new y(e,"XY",n)}getType(){return"Polygon"}intersectsExtent(t){return(0,g.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,a.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}var _=y;function x(t){if((0,o.Im)(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],i=t[2],r=t[3],a=[e,n,e,r,i,r,i,n,e,n];return new y(a,"XY",[a.length])}},62096:function(t,e,n){"use strict";n.d(e,{p0:function(){return l},v7:function(){return c}});var i=n(27430),r=n(4087),o=n(70915),a=n(87622);class s extends i.A{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,o.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,r.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t),n=e.getFlatCoordinates();return n.length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=u(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,r.b0)()}setLayout(t,e,n){let i;if(t)i=u(t);else{for(let t=0;t<n;++t){if(0===e.length)return this.layout="XY",void(this.stride=2);e=e[0]}i=e.length,t=l(i)}this.layout=t,this.stride=i}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())}rotate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();(0,a.e$)(n,0,n.length,i,t,e,n),this.changed()}}scale(t,e,n){void 0===e&&(e=t),n||(n=(0,o.q1)(this.getExtent()));const i=this.getFlatCoordinates();if(i){const r=this.getStride();(0,a.hs)(i,0,i.length,r,t,e,n,i),this.changed()}}translate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();(0,a.Tl)(n,0,n.length,i,t,e,n),this.changed()}}}function l(t){let e;return 2==t?e="XY":3==t?e="XYZ":4==t&&(e="XYZM"),e}function u(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function c(t,e,n){const i=t.getFlatCoordinates();if(!i)return null;const r=t.getStride();return(0,a.Rc)(i,0,i.length,r,e,n)}e.Ay=s},28609:function(t,e,n){"use strict";function i(t,e,n,i){let r=0,o=t[n-i],a=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];r+=a*n-o*i,o=n,a=i}return r/2}function r(t,e,n,r){let o=0;for(let a=0,s=n.length;a<s;++a){const s=n[a];o+=i(t,e,s,r),e=s}return o}function o(t,e,n,i){let o=0;for(let a=0,s=n.length;a<s;++a){const s=n[a];o+=r(t,e,s,i),e=s[s.length-1]}return o}n.d(e,{Cs:function(){return o},PK:function(){return r},eN:function(){return i}})},54049:function(t,e,n){"use strict";n.d(e,{C:function(){return r}});var i=n(70915);function r(t,e,n,r){const o=[];let a=(0,i.S5)();for(let s=0,l=n.length;s<l;++s){const l=n[s];a=(0,i.Vy)(t,e,l[0],r),o.push((a[0]+a[2])/2,(a[1]+a[3])/2),e=l[l.length-1]}return o}},63953:function(t,e,n){"use strict";n.d(e,{HX:function(){return a},MD:function(){return o},c:function(){return s},n:function(){return l},oW:function(){return u},te:function(){return c}});var i=n(61597);function r(t,e,n,r,o,a,s){const l=t[e],u=t[e+1],c=t[n]-l,h=t[n+1]-u;let d;if(0===c&&0===h)d=e;else{const f=((o-l)*c+(a-u)*h)/(c*c+h*h);if(f>1)d=n;else{if(f>0){for(let o=0;o<r;++o)s[o]=(0,i.Cc)(t[e+o],t[n+o],f);return void(s.length=r)}d=e}}for(let i=0;i<r;++i)s[i]=t[d+i];s.length=r}function o(t,e,n,r,o){let a=t[e],s=t[e+1];for(e+=r;e<n;e+=r){const n=t[e],r=t[e+1],l=(0,i.hG)(a,s,n,r);l>o&&(o=l),a=n,s=r}return o}function a(t,e,n,i,r){for(let a=0,s=n.length;a<s;++a){const s=n[a];r=o(t,e,s,i,r),e=s}return r}function s(t,e,n,i,r){for(let o=0,s=n.length;o<s;++o){const s=n[o];r=a(t,e,s,i,r),e=s[s.length-1]}return r}function l(t,e,n,o,a,s,l,u,c,h,d){if(e==n)return h;let f,p;if(0===a){if(p=(0,i.hG)(l,u,t[e],t[e+1]),p<h){for(f=0;f<o;++f)c[f]=t[e+f];return c.length=o,p}return h}d=d||[NaN,NaN];let g=e+o;while(g<n)if(r(t,g-o,g,o,l,u,d),p=(0,i.hG)(l,u,d[0],d[1]),p<h){for(h=p,f=0;f<o;++f)c[f]=d[f];c.length=o,g+=o}else g+=o*Math.max((Math.sqrt(p)-Math.sqrt(h))/a|0,1);if(s&&(r(t,n-o,e,o,l,u,d),p=(0,i.hG)(l,u,d[0],d[1]),p<h)){for(h=p,f=0;f<o;++f)c[f]=d[f];c.length=o}return h}function u(t,e,n,i,r,o,a,s,u,c,h){h=h||[NaN,NaN];for(let d=0,f=n.length;d<f;++d){const f=n[d];c=l(t,e,f,i,r,o,a,s,u,c,h),e=f}return c}function c(t,e,n,i,r,o,a,s,l,c,h){h=h||[NaN,NaN];for(let d=0,f=n.length;d<f;++d){const f=n[d];c=u(t,e,f,i,r,o,a,s,l,c,h),e=f[f.length-1]}return c}},52845:function(t,e,n){"use strict";n.d(e,{Gd:function(){return s},a_:function(){return o},t7:function(){return r},zb:function(){return a}});var i=n(70915);function r(t,e,n,r,a){const s=(0,i.sB)(a,(function(i){return!o(t,e,n,r,i[0],i[1])}));return!s}function o(t,e,n,i,r,o){let a=0,s=t[n-i],l=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];l<=o?i>o&&(n-s)*(o-l)-(r-s)*(i-l)>0&&a++:i<=o&&(n-s)*(o-l)-(r-s)*(i-l)<0&&a--,s=n,l=i}return 0!==a}function a(t,e,n,i,r,a){if(0===n.length)return!1;if(!o(t,e,n[0],i,r,a))return!1;for(let s=1,l=n.length;s<l;++s)if(o(t,n[s-1],n[s],i,r,a))return!1;return!0}function s(t,e,n,i,r,o){if(0===n.length)return!1;for(let s=0,l=n.length;s<l;++s){const l=n[s];if(a(t,e,l,i,r,o))return!0;e=l[l.length-1]}return!1}},92497:function(t,e,n){"use strict";function i(t,e,n,i){for(let r=0,o=n.length;r<o;++r)t[e++]=n[r];return e}function r(t,e,n,i){for(let r=0,o=n.length;r<o;++r){const o=n[r];for(let n=0;n<i;++n)t[e++]=o[n]}return e}function o(t,e,n,i,o){o=o||[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=r(t,e,n[s],i);o[a++]=l,e=l}return o.length=a,o}function a(t,e,n,i,r){r=r||[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=o(t,e,n[s],i,r[a]);0===l.length&&(l[0]=e),r[a++]=l,e=l[l.length-1]}return r.length=a,r}n.d(e,{KG:function(){return o},_n:function(){return i},d6:function(){return a},z2:function(){return r}})},56361:function(t,e,n){"use strict";function i(t,e,n,i,r){r=void 0!==r?r:[];let o=0;for(let a=e;a<n;a+=i)r[o++]=t.slice(a,a+i);return r.length=o,r}function r(t,e,n,r,o){o=void 0!==o?o:[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=n[s];o[a++]=i(t,e,l,r,o[a]),e=l}return o.length=a,o}function o(t,e,n,i,o){o=void 0!==o?o:[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=n[s];o[a++]=1===l.length&&l[0]===e?[]:r(t,e,l,i,o[a]),e=l[l.length-1]}return o.length=a,o}n.d(e,{Dz:function(){return o},cD:function(){return r},n2:function(){return i}})},22616:function(t,e,n){"use strict";n.d(e,{J:function(){return o},p:function(){return a}});var i=n(66514),r=n(52845);function o(t,e,n,o,a,s,l){let u,c,h,d,f,p,g;const m=a[s+1],v=[];for(let i=0,r=n.length;i<r;++i){const r=n[i];for(d=t[r-o],p=t[r-o+1],u=e;u<r;u+=o)f=t[u],g=t[u+1],(m<=p&&g<=m||p<=m&&m<=g)&&(h=(m-p)/(g-p)*(f-d)+d,v.push(h)),d=f,p=g}let y=NaN,_=-1/0;for(v.sort(i.V_),d=v[0],u=1,c=v.length;u<c;++u){f=v[u];const i=Math.abs(f-d);i>_&&(h=(d+f)/2,(0,r.zb)(t,e,n,o,h,m)&&(y=h,_=i)),d=f}return isNaN(y)&&(y=a[s]),l?(l.push(y,m,_),l):[y,m,_]}function a(t,e,n,i,r){let a=[];for(let s=0,l=n.length;s<l;++s){const l=n[s];a=o(t,e,l,i,r,2*s,a),e=l[l.length-1]}return a}},79969:function(t,e,n){"use strict";n.d(e,{L8:function(){return s},SH:function(){return o},gr:function(){return a}});var i=n(66514),r=n(61597);function o(t,e,n,o,a,s,l){let u,c;const h=(n-e)/o;if(1===h)u=e;else if(2===h)u=e,c=a;else if(0!==h){let r=t[e],s=t[e+1],l=0;const h=[0];for(let i=e+o;i<n;i+=o){const e=t[i],n=t[i+1];l+=Math.sqrt((e-r)*(e-r)+(n-s)*(n-s)),h.push(l),r=e,s=n}const d=a*l,f=(0,i.El)(h,d);f<0?(c=(d-h[-f-2])/(h[-f-1]-h[-f-2]),u=e+(-f-2)*o):u=e+f*o}l=l>1?l:2,s=s||new Array(l);for(let i=0;i<l;++i)s[i]=void 0===u?NaN:void 0===c?t[u+i]:(0,r.Cc)(t[u+i],t[u+o+i],c);return s}function a(t,e,n,i,o,a){if(n==e)return null;let s;if(o<t[e+i-1])return a?(s=t.slice(e,e+i),s[i-1]=o,s):null;if(t[n-1]<o)return a?(s=t.slice(n-i,n),s[i-1]=o,s):null;if(o==t[e+i-1])return t.slice(e,e+i);let l=e/i,u=n/i;while(l<u){const e=l+u>>1;o<t[(e+1)*i-1]?u=e:l=e+1}const c=t[l*i-1];if(o==c)return t.slice((l-1)*i,(l-1)*i+i);const h=t[(l+1)*i-1],d=(o-c)/(h-c);s=[];for(let f=0;f<i-1;++f)s.push((0,r.Cc)(t[(l-1)*i+f],t[l*i+f],d));return s.push(o),s}function s(t,e,n,i,r,o,s){if(s)return a(t,e,n[n.length-1],i,r,o);let l;if(r<t[i-1])return o?(l=t.slice(0,i),l[i-1]=r,l):null;if(t[t.length-1]<r)return o?(l=t.slice(t.length-i),l[i-1]=r,l):null;for(let u=0,c=n.length;u<c;++u){const o=n[u];if(e!=o){if(r<t[e+i-1])return null;if(r<=t[o-1])return a(t,e,o,i,r,!1);e=o}}return null}},4350:function(t,e,n){"use strict";n.d(e,{HT:function(){return u},Wp:function(){return c},fB:function(){return s},gp:function(){return a},sj:function(){return l}});var i=n(70915),r=n(91374),o=n(52845);function a(t,e,n,o,a){const s=(0,i.R8)((0,i.S5)(),t,e,n,o);return!!(0,i.HY)(a,s)&&(!!(0,i.ms)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||(0,r.j)(t,e,n,o,(function(t,e){return(0,i.Mx)(a,t,e)})))))}function s(t,e,n,i,r){for(let o=0,s=n.length;o<s;++o){if(a(t,e,n[o],i,r))return!0;e=n[o]}return!1}function l(t,e,n,i,r){return!!a(t,e,n,i,r)||(!!(0,o.a_)(t,e,n,i,r[0],r[1])||(!!(0,o.a_)(t,e,n,i,r[0],r[3])||(!!(0,o.a_)(t,e,n,i,r[2],r[1])||!!(0,o.a_)(t,e,n,i,r[2],r[3]))))}function u(t,e,n,i,r){if(!l(t,e,n[0],i,r))return!1;if(1===n.length)return!0;for(let s=1,l=n.length;s<l;++s)if((0,o.t7)(t,n[s-1],n[s],i,r)&&!a(t,n[s-1],n[s],i,r))return!1;return!0}function c(t,e,n,i,r){for(let o=0,a=n.length;o<a;++o){const a=n[o];if(u(t,e,a,i,r))return!0;e=a[a.length-1]}return!1}},50904:function(t,e,n){"use strict";function i(t,e,n,i){let r=t[e],o=t[e+1],a=0;for(let s=e+i;s<n;s+=i){const e=t[s],n=t[s+1];a+=Math.sqrt((e-r)*(e-r)+(n-o)*(n-o)),r=e,o=n}return a}n.d(e,{k:function(){return i}})},71225:function(t,e,n){"use strict";function i(t,e,n,i){while(e<n-i){for(let r=0;r<i;++r){const o=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=o}e+=i,n-=i}}function r(t,e,n,i){let r=0,o=t[n-i],a=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];r+=(n-o)*(i+a),o=n,a=i}return 0===r?void 0:r>0}function o(t,e,n,i,o){o=void 0!==o&&o;for(let a=0,s=n.length;a<s;++a){const s=n[a],l=r(t,e,s,i);if(0===a){if(o&&l||!o&&!l)return!1}else if(o&&!l||!o&&l)return!1;e=s}return!0}function a(t,e,n,i,r){for(let a=0,s=n.length;a<s;++a){const s=n[a];if(!o(t,e,s,i,r))return!1;s.length&&(e=s[s.length-1])}return!0}function s(t,e,n,o,a){a=void 0!==a&&a;for(let s=0,l=n.length;s<l;++s){const l=n[s],u=r(t,e,l,o),c=0===s?a&&u||!a&&!u:a&&!u||!a&&u;c&&i(t,e,l,o),e=l}return e}function l(t,e,n,i,r){for(let o=0,a=n.length;o<a;++o)e=s(t,e,n[o],i,r);return e}function u(t,e){const n=[];let i,o=0,a=0;for(let s=0,l=e.length;s<l;++s){const l=e[s],u=r(t,o,l,2);if(void 0===i&&(i=u),u===i)n.push(e.slice(a,s+1));else{if(0===n.length)continue;n[n.length-1].push(e[a])}a=s+1,o=l}return n}n.d(e,{yJ:function(){return u},PA:function(){return o},mb:function(){return a},ug:function(){return s},NK:function(){return l}})},91374:function(t,e,n){"use strict";function i(t,e,n,i,r){let o;for(e+=i;e<n;e+=i)if(o=r(t.slice(e-i,e),t.slice(e,e+i)),o)return o;return!1}n.d(e,{j:function(){return i}})},83671:function(t,e,n){"use strict";n.d(e,{AL:function(){return o},Hg:function(){return l},P4:function(){return r},n$:function(){return a},sx:function(){return u}});var i=n(61597);function r(t,e,n,r,o,a,s){const l=(n-e)/r;if(l<3){for(;e<n;e+=r)a[s++]=t[e],a[s++]=t[e+1];return s}const u=new Array(l);u[0]=1,u[l-1]=1;const c=[e,n-r];let h=0;while(c.length>0){const n=c.pop(),a=c.pop();let s=0;const l=t[a],d=t[a+1],f=t[n],p=t[n+1];for(let e=a+r;e<n;e+=r){const n=t[e],r=t[e+1],o=(0,i.Q1)(n,r,l,d,f,p);o>s&&(h=e,s=o)}s>o&&(u[(h-e)/r]=1,a+r<h&&c.push(a,h),h+r<n&&c.push(h,n))}for(let i=0;i<l;++i)u[i]&&(a[s++]=t[e+i*r],a[s++]=t[e+i*r+1]);return s}function o(t,e,n,i,o,a,s,l){for(let u=0,c=n.length;u<c;++u){const c=n[u];s=r(t,e,c,i,o,a,s),l.push(s),e=c}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,n,i,r,o,s){if(e==n)return s;let l,u,c=a(t[e],r),h=a(t[e+1],r);e+=i,o[s++]=c,o[s++]=h;do{if(l=a(t[e],r),u=a(t[e+1],r),e+=i,e==n)return o[s++]=l,o[s++]=u,s}while(l==c&&u==h);while(e<n){const n=a(t[e],r),d=a(t[e+1],r);if(e+=i,n==l&&d==u)continue;const f=l-c,p=u-h,g=n-c,m=d-h;f*m==p*g&&(f<0&&g<f||f==g||f>0&&g>f)&&(p<0&&m<p||p==m||p>0&&m>p)?(l=n,u=d):(o[s++]=l,o[s++]=u,c=l,h=u,l=n,u=d)}return o[s++]=l,o[s++]=u,s}function l(t,e,n,i,r,o,a,l){for(let u=0,c=n.length;u<c;++u){const c=n[u];a=s(t,e,c,i,r,o,a),l.push(a),e=c}return a}function u(t,e,n,i,r,o,a,s){for(let u=0,c=n.length;u<c;++u){const c=n[u],h=[];a=l(t,e,c,i,r,o,a,h),s.push(h),e=c[c.length-1]}return a}},87622:function(t,e,n){"use strict";function i(t,e,n,i,r,o){o=o||[];let a=0;for(let s=e;s<n;s+=i){const e=t[s],n=t[s+1];o[a++]=r[0]*e+r[2]*n+r[4],o[a++]=r[1]*e+r[3]*n+r[5]}return o&&o.length!=a&&(o.length=a),o}function r(t,e,n,i,r,o,a){a=a||[];const s=Math.cos(r),l=Math.sin(r),u=o[0],c=o[1];let h=0;for(let d=e;d<n;d+=i){const e=t[d]-u,n=t[d+1]-c;a[h++]=u+e*s-n*l,a[h++]=c+e*l+n*s;for(let r=d+2;r<d+i;++r)a[h++]=t[r]}return a&&a.length!=h&&(a.length=h),a}function o(t,e,n,i,r,o,a,s){s=s||[];const l=a[0],u=a[1];let c=0;for(let h=e;h<n;h+=i){const e=t[h]-l,n=t[h+1]-u;s[c++]=l+r*e,s[c++]=u+o*n;for(let r=h+2;r<h+i;++r)s[c++]=t[r]}return s&&s.length!=c&&(s.length=c),s}function a(t,e,n,i,r,o,a){a=a||[];let s=0;for(let l=e;l<n;l+=i){a[s++]=t[l]+r,a[s++]=t[l+1]+o;for(let e=l+2;e<l+i;++e)a[s++]=t[e]}return a&&a.length!=s&&(a.length=s),a}n.d(e,{Rc:function(){return i},Tl:function(){return a},e$:function(){return r},hs:function(){return o}})},7771:function(t,e,n){"use strict";n.d(e,{DT:function(){return c},FT:function(){return h},Wl:function(){return u},_p:function(){return r},cr:function(){return l},ew:function(){return s},j:function(){return a}});const i="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",r=i.includes("firefox"),o=i.includes("safari")&&!i.includes("chrom"),a=(o&&(i.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(i)),i.includes("webkit")&&!i.includes("edge")),s=i.includes("macintosh"),l="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,u="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,c="undefined"!==typeof Image&&Image.prototype.decode,h=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(e){}return t}()},71603:function(t,e,n){"use strict";n.d(e,{Ay:function(){return u},e4:function(){return s},D2:function(){return l}});var i=n(34120),r={ACTIVE:"active"},o=n(93474);class a extends i.A{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(r.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(r.ACTIVE,t)}setMap(t){this.map_=t}}function s(t,e,n){const i=t.getCenterInternal();if(i){const r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:o.sn,center:t.getConstrainedCenter(r)})}}function l(t,e,n,i){const r=t.getZoom();if(void 0===r)return;const a=t.getConstrainedZoom(r+e),s=t.getResolutionForZoom(a);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:n,duration:void 0!==i?i:250,easing:o.vT})}var u=a},21409:function(t,e,n){"use strict";n.d(e,{v:function(){return a}});var i=n(71603),r=n(73445);class o extends i.Ay{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==r.A.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==r.A.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==r.A.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==r.A.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function a(t){const e=t.length;let n=0,i=0;for(let r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return{clientX:n/e,clientY:i/e}}e.A=o},31130:function(t,e,n){"use strict";n.d(e,{N:function(){return it}});var i=n(50071),r=n(71603),o=n(73445);class a extends r.Ay{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==o.A.DBLCLICK){const n=t.originalEvent,i=t.map,o=t.coordinate,a=n.shiftKey?-this.delta_:this.delta_,s=i.getView();(0,r.D2)(s,a,o,this.duration_),n.preventDefault(),e=!0}return!e}}var s=a,l=n(21409),u=n(74238),c=n(7771),h=n(90588);function d(t){const e=arguments;return function(t){let n=!0;for(let i=0,r=e.length;i<r;++i)if(n=n&&e[i](t),!n)break;return n}}const f=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},p=function(t){const e=t.map.getTargetElement(),n=t.map.getOwnerDocument().activeElement;return e.contains(n)},g=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||p(t)},m=u.rT,v=function(t){const e=t.originalEvent;return 0==e.button&&!(c.j&&c.ew&&e.ctrlKey)},y=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},_=function(t){const e=t.originalEvent;return c.ew?e.metaKey:e.ctrlKey},x=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},b=function(t){const e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},w=function(t){const e=t.originalEvent;return(0,h.v)(void 0!==e,"mapBrowserEvent must originate from a pointer event"),"mouse"==e.pointerType},S=function(t){const e=t.originalEvent;return(0,h.v)(void 0!==e,"mapBrowserEvent must originate from a pointer event"),e.isPrimary&&0===e.button};var A=n(93474),M=n(6933);class C extends l.A{constructor(t){super({stopDown:u.W8}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:d(y,S);this.condition_=t.onFocusOnly?d(g,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const n=this.targetPointers,i=e.getEventPixel((0,l.v)(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){const e=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],n=t.map,r=n.getView();(0,M.hs)(e,r.getResolution()),(0,M.e$)(e,r.getRotation()),r.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=n.length,t.originalEvent.preventDefault()}handleUpEvent(t){const e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),r=n.getCenterInternal(),o=e.getPixelFromCoordinateInternal(r),a=e.getCoordinateFromPixelInternal([o[0]-t*Math.cos(i),o[1]-t*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(a),duration:500,easing:A.vT})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){const e=t.map,n=e.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}var I=C,T=n(24498);class E extends l.A{constructor(t){t=t||{},super({stopDown:u.W8}),this.condition_=t.condition?t.condition:f,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!w(t))return;const e=t.map,n=e.getView();if(n.getConstraints().rotation===T.b8)return;const i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){const t=o-this.lastAngle_;n.adjustRotationInternal(-t)}this.lastAngle_=o}handleUpEvent(t){if(!w(t))return!0;const e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1}handleDownEvent(t){if(!w(t))return!1;if(v(t)&&this.condition_(t)){const e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1}}var D=E,P=n(1685),L=n(90025),R=n(79787);class O extends L.A{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]],i=n.map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new R.Ay([i])}getGeometry(){return this.geometry_}}var k=O;const N={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class F extends P.Ay{constructor(t,e,n){super(t),this.coordinate=e,this.mapBrowserEvent=n}}class z extends l.A{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new k(t.className||"ol-dragbox"),this.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:v,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,n){const i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new F(N.BOXDRAG,t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new F(e?N.BOXEND:N.BOXCANCEL,t.coordinate,t)),!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new F(N.BOXSTART,t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new F(N.BOXCANCEL,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}}var B=z;class G extends B{constructor(t){t=t||{};const e=t.condition?t.condition:x;super({condition:e,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap(),n=e.getView();let i=this.getGeometry();if(this.out_){const t=n.rotatedExtentForGeometry(i),e=n.getResolutionForExtentInternal(t),r=n.getResolution()/e;i=i.clone(),i.scale(r*r)}n.fitInternal(i,{duration:this.duration_,easing:A.vT})}}var V=G,W=n(6837),j={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class H extends r.Ay{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return y(t)&&b(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==W.A.KEYDOWN){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&(i==j.DOWN||i==j.LEFT||i==j.RIGHT||i==j.UP)){const o=t.map,a=o.getView(),s=a.getResolution()*this.pixelDelta_;let l=0,u=0;i==j.DOWN?u=-s:i==j.LEFT?l=-s:i==j.RIGHT?l=s:u=s;const c=[l,u];(0,M.e$)(c,a.getRotation()),(0,r.e4)(a,c,this.duration_),n.preventDefault(),e=!0}}return!e}}var Y=H;class U extends r.Ay{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!_(t)&&b(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==W.A.KEYDOWN||t.type==W.A.KEYPRESS){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&("+"===i||"-"===i)){const o=t.map,a="+"===i?this.delta_:-this.delta_,s=o.getView();(0,r.D2)(s,a,void 0,this.duration_),n.preventDefault(),e=!0}}return!e}}var X=U;class Z{constructor(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let n=e-3;while(n>0&&this.points_[n+2]>t)n-=3;const i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;const r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}var q=Z,$=n(61597);class K extends r.Ay{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:m;this.condition_=t.onFocusOnly?d(g,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;const e=t.getView();e.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t))return!0;const e=t.type;if(e!==W.A.WHEEL)return!0;const n=t.map,i=t.originalEvent;let r;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==W.A.WHEEL&&(r=i.deltaY,c._p&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=c.cr),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),0===r)return!1;this.lastDelta_=r;const o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const a=n.getView();if("trackpad"===this.mode_&&!a.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=r;const s=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),s),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let n=-(0,$.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),(0,r.D2)(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}}var J=K;class Q extends l.A{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=u.W8),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=r;const o=t.map,a=o.getView();a.getConstraints().rotation!==T.b8&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel((0,l.v)(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}var tt=Q;class et extends l.A{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=u.W8),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,a=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;const s=t.map,u=s.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel((0,l.v)(this.targetPointers))),s.render(),u.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map,n=e.getView(),i=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}var nt=et;function it(t){t=t||{};const e=new i.A,n=new q(-.005,.05,100),r=void 0===t.altShiftDragRotate||t.altShiftDragRotate;r&&e.push(new D);const o=void 0===t.doubleClickZoom||t.doubleClickZoom;o&&e.push(new s({delta:t.zoomDelta,duration:t.zoomDuration}));const a=void 0===t.dragPan||t.dragPan;a&&e.push(new I({onFocusOnly:t.onFocusOnly,kinetic:n}));const l=void 0===t.pinchRotate||t.pinchRotate;l&&e.push(new tt);const u=void 0===t.pinchZoom||t.pinchZoom;u&&e.push(new nt({duration:t.zoomDuration}));const c=void 0===t.keyboard||t.keyboard;c&&(e.push(new Y),e.push(new X({delta:t.zoomDelta,duration:t.zoomDuration})));const h=void 0===t.mouseWheelZoom||t.mouseWheelZoom;h&&e.push(new J({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration}));const d=void 0===t.shiftDragZoom||t.shiftDragZoom;return d&&e.push(new V({duration:t.zoomDuration})),e}},58620:function(t,e,n){"use strict";var i=n(34120),r=n(75332),o=n(4087),a=n(90588),s=n(61597);class l extends i.A{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"===typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[r.A.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,a.v)("number"===typeof e[r.A.OPACITY],"Layer opacity must be a number"),e[r.A.VISIBLE]=void 0===t.visible||t.visible,e[r.A.Z_INDEX]=t.zIndex,e[r.A.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[r.A.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[r.A.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[r.A.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,s.qE)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return(0,o.b0)()}getLayerStatesArray(t){return(0,o.b0)()}getExtent(){return this.get(r.A.EXTENT)}getMaxResolution(){return this.get(r.A.MAX_RESOLUTION)}getMinResolution(){return this.get(r.A.MIN_RESOLUTION)}getMinZoom(){return this.get(r.A.MIN_ZOOM)}getMaxZoom(){return this.get(r.A.MAX_ZOOM)}getOpacity(){return this.get(r.A.OPACITY)}getSourceState(){return(0,o.b0)()}getVisible(){return this.get(r.A.VISIBLE)}getZIndex(){return this.get(r.A.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(r.A.EXTENT,t)}setMaxResolution(t){this.set(r.A.MAX_RESOLUTION,t)}setMinResolution(t){this.set(r.A.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(r.A.MAX_ZOOM,t)}setMinZoom(t){this.set(r.A.MIN_ZOOM,t)}setOpacity(t){(0,a.v)("number"===typeof t,"Layer opacity must be a number"),this.set(r.A.OPACITY,t)}setVisible(t){this.set(r.A.VISIBLE,t)}setZIndex(t){this.set(r.A.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}e.A=l},80310:function(t,e,n){"use strict";n.d(e,{A:function(){return ne}});var i=n(60764),r=n(35341),o=n(29276),a=n(27733),s=n(13628),l=n(49700),u=n(86936),c=n(953),h=n(6782);const d="#333";class f{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=(0,h.xq)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new s.A({color:d}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new f({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,h.xq)(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}var p=f,g=n(66514),m=n(85745);let v=0;const y=0,_=1<<v++,x=1<<v++,b=1<<v++,w=1<<v++,S=1<<v++,A=1<<v++,M=Math.pow(2,v)-1,C={[_]:"boolean",[x]:"number",[b]:"string",[w]:"color",[S]:"number[]",[A]:"size"},I=Object.keys(C).map(Number).sort(g.V_);function T(t){const e=[];for(const n of I)E(t,n)&&e.push(C[n]);return 0===e.length?"untyped":e.length<3?e.join(" or "):e.slice(0,-1).join(", ")+", or "+e[e.length-1]}function E(t,e){return(t&e)===e}function D(t,e){return!!(t&e)}function P(t,e){return t===e}class L{constructor(t,e){this.type=t,this.value=e}}class R{constructor(t,e,...n){this.type=t,this.operator=e,this.args=n}}function O(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1,style:{}}}function k(t){switch(t){case"string":return b;case"color":return w;case"number":return x;case"boolean":return _;case"number[]":return S;default:throw new Error(`Unrecognized type hint: ${t}`)}}function N(t,e,n){switch(typeof t){case"boolean":return new L(_,t);case"number":return new L(n===A?A:x,t);case"string":{let e=b;return(0,m.$C)(t)&&(e|=w),P(e&n,y)||(e&=n),new L(e,t)}default:}if(!Array.isArray(t))throw new Error("Expression must be an array or a primitive value");if(0===t.length)throw new Error("Empty expression");if("string"===typeof t[0])return et(t,e,n);for(const r of t)if("number"!==typeof r)throw new Error("Expected an array of numbers");let i=S;return 2===t.length?i|=A:3!==t.length&&4!==t.length||(i|=w),n&&(i&=n),new L(i,t)}const F={Get:"get",Var:"var",Concat:"concat",GeometryType:"geometry-type",Any:"any",All:"all",Not:"!",Resolution:"resolution",Zoom:"zoom",Time:"time",Equal:"==",NotEqual:"!=",GreaterThan:">",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string"},z={[F.Get]:tt((([t,e])=>void 0!==e?k(e.value):M),H(1,2),B),[F.Var]:tt((([t])=>t.type),H(1,1),G),[F.Id]:tt(x|b,j,V),[F.Concat]:tt(b,H(2,1/0),Y(M)),[F.GeometryType]:tt(b,j,W),[F.Resolution]:tt(x,j),[F.Zoom]:tt(x,j),[F.Time]:tt(x,j),[F.Any]:tt(_,H(2,1/0),Y(_)),[F.All]:tt(_,H(2,1/0),Y(_)),[F.Not]:tt(_,H(1,1),Y(_)),[F.Equal]:tt(_,H(2,2),Y(M),U),[F.NotEqual]:tt(_,H(2,2),Y(M),U),[F.GreaterThan]:tt(_,H(2,2),Y(M),U),[F.GreaterThanOrEqualTo]:tt(_,H(2,2),Y(M),U),[F.LessThan]:tt(_,H(2,2),Y(M),U),[F.LessThanOrEqualTo]:tt(_,H(2,2),Y(M),U),[F.Multiply]:tt((t=>{let e=x|w;for(let n=0;n<t.length;n++)e&=t[n].type;return e}),H(2,1/0),Y(x|w),U),[F.Coalesce]:tt((t=>{let e=M;for(let n=1;n<t.length;n+=2)e&=t[n].type;return e&=t[t.length-1].type,e}),H(2,1/0),Y(M),U),[F.Divide]:tt(x,H(2,2),Y(x)),[F.Add]:tt(x,H(2,1/0),Y(x)),[F.Subtract]:tt(x,H(2,2),Y(x)),[F.Clamp]:tt(x,H(3,3),Y(x)),[F.Mod]:tt(x,H(2,2),Y(x)),[F.Pow]:tt(x,H(2,2),Y(x)),[F.Abs]:tt(x,H(1,1),Y(x)),[F.Floor]:tt(x,H(1,1),Y(x)),[F.Ceil]:tt(x,H(1,1),Y(x)),[F.Round]:tt(x,H(1,1),Y(x)),[F.Sin]:tt(x,H(1,1),Y(x)),[F.Cos]:tt(x,H(1,1),Y(x)),[F.Atan]:tt(x,H(1,2),Y(x)),[F.Sqrt]:tt(x,H(1,1),Y(x)),[F.Match]:tt((t=>{let e=M;for(let n=2;n<t.length;n+=2)e&=t[n].type;return e&=t[t.length-1].type,e}),H(4,1/0),Z,q),[F.Between]:tt(_,H(3,3),Y(x)),[F.Interpolate]:tt((t=>{let e=w|x;for(let n=3;n<t.length;n+=2)e&=t[n].type;return e}),H(6,1/0),Z,$),[F.Case]:tt((t=>{let e=M;for(let n=1;n<t.length;n+=2)e&=t[n].type;return e&=t[t.length-1].type,e}),H(3,1/0),X,K),[F.In]:tt(_,H(2,2),J),[F.Number]:tt(x,H(1,1/0),Y(M)),[F.String]:tt(b,H(1,1/0),Y(M)),[F.Array]:tt((t=>2===t.length?S|A:3===t.length||4===t.length?S|w:S),H(1,1/0),Y(x)),[F.Color]:tt(w,H(1,4),Y(x)),[F.Band]:tt(x,H(1,3),Y(x)),[F.Palette]:tt(w,H(2,2),Q),[F.ToString]:tt(b,H(1,1),Y(_|x|b|w))};function B(t,e){const n=N(t[1],e);if(!(n instanceof L))throw new Error("Expected a literal argument for get operation");if("string"!==typeof n.value)throw new Error("Expected a string argument for get operation");if(e.properties.add(n.value),3===t.length){const i=N(t[2],e);return[n,i]}return[n]}function G(t,e,n,i){const r=t[1];if("string"!==typeof r)throw new Error("Expected a string argument for var operation");if(e.variables.add(r),!("variables"in e.style)||void 0===e.style.variables[r])return[new L(M,r)];const o=e.style.variables[r],a=N(o,e);if(a.value=r,i&&!D(i,a.type))throw new Error(`The variable ${r} has type ${T(a.type)} but the following type was expected: ${T(i)}`);return[a]}function V(t,e){e.featureId=!0}function W(t,e){e.geometryType=!0}function j(t,e){const n=t[0];if(1!==t.length)throw new Error(`Expected no arguments for ${n} operation`);return[]}function H(t,e){return function(n,i){const r=n[0],o=n.length-1;if(t===e){if(o!==t){const e=1===t?"":"s";throw new Error(`Expected ${t} argument${e} for ${r}, got ${o}`)}}else if(o<t||o>e){const n=e===1/0?`${t} or more`:`${t} to ${e}`;throw new Error(`Expected ${n} arguments for ${r}, got ${o}`)}}}function Y(t){return function(e,n){const i=e[0],r=e.length-1,o=new Array(r);for(let a=0;a<r;++a){const r=N(e[a+1],n);if(!D(t,r.type)){const e=T(t),n=T(r.type);throw new Error(`Unexpected type for argument ${a} of ${i} operation, got ${e} but expected ${n}`)}r.type&=t,o[a]=r}return o}}function U(t,e,n){const i=t[0],r=t.length-1;let o=M;for(let s=0;s<n.length;++s)o&=n[s].type;if(o===y)throw new Error(`No common type could be found for arguments of ${i} operation`);const a=new Array(r);for(let s=0;s<r;++s)a[s]=N(t[s+1],e,o);return a}function X(t,e){const n=t[0],i=t.length-1;if(i%2===0)throw new Error(`An odd amount of arguments was expected for operation ${n}, got ${JSON.stringify(i)} instead`)}function Z(t,e){const n=t[0],i=t.length-1;if(i%2===1)throw new Error(`An even amount of arguments was expected for operation ${n}, got ${JSON.stringify(i)} instead`)}function q(t,e,n,i){const r=t.length-1,o=N(t[1],e);let a=o.type;const s=N(t[t.length-1],e);let l=void 0!==i?i&s.type:s.type;const u=new Array(r-2);for(let h=0;h<r-2;h+=2){const n=N(t[h+2],e),i=N(t[h+3],e);a&=n.type,l&=i.type,u[h]=n,u[h+1]=i}const c=b|x|_;if(!D(c,a))throw new Error(`Expected an input of type ${T(c)} for the interpolate operation, got ${T(a)} instead`);if(a&=c,P(l,y))throw new Error("Could not find a common output type for the following match operation: "+JSON.stringify(t));for(let h=0;h<r-2;h+=2){const n=N(t[h+2],e,a),i=N(t[h+3],e,l);u[h]=n,u[h+1]=i}return[N(t[1],e,a),...u,N(t[t.length-1],e,l)]}function $(t,e,n,i){const r=t[1];let o;switch(r[0]){case"linear":o=1;break;case"exponential":if(o=r[1],"number"!==typeof o)throw new Error(`Expected a number base for exponential interpolation, got ${JSON.stringify(o)} instead`);break;default:o=null}if(!o)throw new Error(`Invalid interpolation type: ${JSON.stringify(r)}`);o=N(o,e);let a=N(t[2],e);if(!D(x,a.type))throw new Error(`Expected an input of type number for the interpolate operation, got ${T(a.type)} instead`);a=N(t[2],e,x);const s=new Array(t.length-3);for(let l=0;l<s.length;l+=2){let n=N(t[l+3],e);if(!D(x,n.type))throw new Error(`Expected all stop input values in the interpolate operation to be of type number, got ${T(n.type)} at position ${l+2} instead`);let i=N(t[l+4],e);if(!D(x|w,i.type))throw new Error(`Expected all stop output values in the interpolate operation to be a number or color, got ${T(i.type)} at position ${l+3} instead`);n=N(t[l+3],e,x),i=N(t[l+4],e,x|w),s[l]=n,s[l+1]=i}return[o,a,...s]}function K(t,e,n,i){const r=N(t[t.length-1],e,i);let o=void 0!==i?i&r.type:r.type;const a=new Array(t.length-1);for(let s=0;s<a.length-1;s+=2){const n=N(t[s+1],e),r=N(t[s+2],e,i);if(!D(_,n.type))throw new Error(`Expected all conditions in the case operation to be of type boolean, got ${T(n.type)} at position ${s} instead`);o&=r.type,a[s]=n,a[s+1]=r}if(P(o,y))throw new Error("Could not find a common output type for the following case operation: "+JSON.stringify(t));for(let s=0;s<a.length-1;s+=2)a[s+1]=N(t[s+2],e,o);return a[a.length-1]=N(t[t.length-1],e,o),a}function J(t,e){let n=t[2];if(!Array.isArray(n))throw new Error('The "in" operator was provided a literal value which was not an array as second argument.');if("string"===typeof n[0]){if("literal"!==n[0])throw new Error('For the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions.');if(!Array.isArray(n[1]))throw new Error('The "in" operator was provided a literal value which was not an array as second argument.');n=n[1]}let i=b|x;const r=new Array(n.length);for(let a=0;a<r.length;a++){const t=N(n[a],e);i&=t.type,r[a]=t}if(P(i,y))throw new Error("Could not find a common type for the following in operation: "+JSON.stringify(t));const o=N(t[1],e,i);return[o,...r]}function Q(t,e){const n=N(t[1],e,x);if(n.type!==x)throw new Error(`The first argument of palette must be an number, got ${T(n.type)} instead`);const i=t[2];if(!Array.isArray(i))throw new Error("The second argument of palette must be an array");const r=new Array(i.length);for(let o=0;o<r.length;o++){const t=N(i[o],e,w);if(!(t instanceof L))throw new Error(`The palette color at index ${o} must be a literal value`);if(!D(t.type,w))throw new Error(`The palette color at index ${o} should be of type color, got ${T(t.type)} instead`);r[o]=t}return[n,...r]}function tt(t,...e){return function(n,i,r){const o=n[0];let a=[];for(let t=0;t<e.length;t++)a=e[t](n,i,a,r)||a;let s="function"===typeof t?t(a):t;if(void 0!==r){if(!D(s,r))throw new Error(`The following expression was expected to return ${T(r)}, but returns ${T(s)} instead: ${JSON.stringify(n)}`);s&=r}if(s===y)throw new Error(`No matching type was found for the following expression: ${JSON.stringify(n)}`);return new R(s,o,...a)}}function et(t,e,n){const i=t[0],r=z[i];if(!r)throw new Error(`Unknown operator: ${i}`);return r(t,e,n)}function nt(t){if(!t)return"";const e=t.getType();switch(e){case"Point":case"LineString":case"Polygon":return e;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return e.substring(5);case"Circle":return"Polygon";case"GeometryCollection":return nt(t.getGeometries()[0]);default:return""}}function it(){return{variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""}}function rt(t,e,n){const i=N(t,n);if(!D(e,i.type)){const t=T(e),n=T(i.type);throw new Error(`Expected expression to be of type ${t}, got ${n}`)}return ot(i,n)}function ot(t,e){if(t instanceof L){if(t.type===w&&"string"===typeof t.value){const e=(0,m.sH)(t.value);return function(){return e}}return function(){return t.value}}const n=t.operator;switch(n){case F.Number:case F.String:case F.Coalesce:return at(t,e);case F.Get:case F.Var:return st(t,e);case F.Id:return t=>t.featureId;case F.GeometryType:return t=>t.geometryType;case F.Concat:{const n=t.args.map((t=>ot(t,e)));return t=>"".concat(...n.map((e=>e(t).toString())))}case F.Resolution:return t=>t.resolution;case F.Any:case F.All:case F.Between:case F.In:case F.Not:return ut(t,e);case F.Equal:case F.NotEqual:case F.LessThan:case F.LessThanOrEqualTo:case F.GreaterThan:case F.GreaterThanOrEqualTo:return lt(t,e);case F.Multiply:case F.Divide:case F.Add:case F.Subtract:case F.Clamp:case F.Mod:case F.Pow:case F.Abs:case F.Floor:case F.Ceil:case F.Round:case F.Sin:case F.Cos:case F.Atan:case F.Sqrt:return ct(t,e);case F.Case:return ht(t,e);case F.Match:return dt(t,e);case F.Interpolate:return ft(t,e);case F.ToString:return pt(t,e);default:throw new Error(`Unsupported operator ${n}`)}}function at(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let o=0;o<i;++o)r[o]=ot(t.args[o],e);switch(n){case F.Coalesce:return t=>{for(let e=0;e<i;++e){const n=r[e](t);if("undefined"!==typeof n&&null!==n)return n}throw new Error("Expected one of the values to be non-null")};case F.Number:case F.String:return t=>{for(let e=0;e<i;++e){const i=r[e](t);if(typeof i===n)return i}throw new Error(`Expected one of the values to be a ${n}`)};default:throw new Error(`Unsupported assertion operator ${n}`)}}function st(t,e){const n=t.args[0],i=n.value;switch(t.operator){case F.Get:return t=>t.properties[i];case F.Var:return t=>t.variables[i];default:throw new Error(`Unsupported accessor operator ${t.operator}`)}}function lt(t,e){const n=t.operator,i=ot(t.args[0],e),r=ot(t.args[1],e);switch(n){case F.Equal:return t=>i(t)===r(t);case F.NotEqual:return t=>i(t)!==r(t);case F.LessThan:return t=>i(t)<r(t);case F.LessThanOrEqualTo:return t=>i(t)<=r(t);case F.GreaterThan:return t=>i(t)>r(t);case F.GreaterThanOrEqualTo:return t=>i(t)>=r(t);default:throw new Error(`Unsupported comparison operator ${n}`)}}function ut(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let o=0;o<i;++o)r[o]=ot(t.args[o],e);switch(n){case F.Any:return t=>{for(let e=0;e<i;++e)if(r[e](t))return!0;return!1};case F.All:return t=>{for(let e=0;e<i;++e)if(!r[e](t))return!1;return!0};case F.Between:return t=>{const e=r[0](t),n=r[1](t),i=r[2](t);return e>=n&&e<=i};case F.In:return t=>{const e=r[0](t);for(let n=1;n<i;++n)if(e===r[n](t))return!0;return!1};case F.Not:return t=>!r[0](t);default:throw new Error(`Unsupported logical operator ${n}`)}}function ct(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let o=0;o<i;++o)r[o]=ot(t.args[o],e);switch(n){case F.Multiply:return t=>{let e=1;for(let n=0;n<i;++n)e*=r[n](t);return e};case F.Divide:return t=>r[0](t)/r[1](t);case F.Add:return t=>{let e=0;for(let n=0;n<i;++n)e+=r[n](t);return e};case F.Subtract:return t=>r[0](t)-r[1](t);case F.Clamp:return t=>{const e=r[0](t),n=r[1](t);if(e<n)return n;const i=r[2](t);return e>i?i:e};case F.Mod:return t=>r[0](t)%r[1](t);case F.Pow:return t=>Math.pow(r[0](t),r[1](t));case F.Abs:return t=>Math.abs(r[0](t));case F.Floor:return t=>Math.floor(r[0](t));case F.Ceil:return t=>Math.ceil(r[0](t));case F.Round:return t=>Math.round(r[0](t));case F.Sin:return t=>Math.sin(r[0](t));case F.Cos:return t=>Math.cos(r[0](t));case F.Atan:return 2===i?t=>Math.atan2(r[0](t),r[1](t)):t=>Math.atan(r[0](t));case F.Sqrt:return t=>Math.sqrt(r[0](t));default:throw new Error(`Unsupported numeric operator ${n}`)}}function ht(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=ot(t.args[r],e);return t=>{for(let e=0;e<n-1;e+=2){const n=i[e](t);if(n)return i[e+1](t)}return i[n-1](t)}}function dt(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=ot(t.args[r],e);return t=>{const e=i[0](t);for(let r=1;r<n;r+=2)if(e===i[r](t))return i[r+1](t);return i[n-1](t)}}function ft(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=ot(t.args[r],e);return t=>{const e=i[0](t),r=i[1](t);let o,a;for(let s=2;s<n;s+=2){const n=i[s](t);let l=i[s+1](t);const u=Array.isArray(l);if(u&&(l=(0,m.fu)(l)),n>=r)return 2===s?l:u?mt(e,r,o,a,n,l):gt(e,r,o,a,n,l);o=n,a=l}return a}}function pt(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let o=0;o<i;++o)r[o]=ot(t.args[o],e);switch(n){case F.ToString:return e=>{const n=r[0](e);return t.args[0].type===w?(0,m.dI)(n):n.toString()};default:throw new Error(`Unsupported convert operator ${n}`)}}function gt(t,e,n,i,r,o){const a=r-n;if(0===a)return i;const s=e-n,l=1===t?s/a:(Math.pow(t,s)-1)/(Math.pow(t,a)-1);return i+l*(o-i)}function mt(t,e,n,i,r,o){const a=r-n;if(0===a)return i;const s=(0,m.eE)(i),l=(0,m.eE)(o);let u=l[2]-s[2];u>180?u-=360:u<-180&&(u+=360);const c=[gt(t,e,n,s[0],r,l[0]),gt(t,e,n,s[1],r,l[1]),s[2]+gt(t,e,n,0,r,u),gt(t,e,n,i[3],r,o[3])];return(0,m.S8)((0,m.cD)(c))}var vt=n(43530);function yt(t){return!0}function _t(t){const e=O(),n=bt(t,e),i=it();return function(t,r){if(i.properties=t.getPropertiesInternal(),i.resolution=r,e.featureId){const e=t.getId();i.featureId=void 0!==e?e:null}return e.geometryType&&(i.geometryType=nt(t.getGeometry())),n(i)}}function xt(t){const e=O(),n=t.length,i=new Array(n);for(let a=0;a<n;++a)i[a]=wt(t[a],e);const r=it(),o=new Array(n);return function(t,a){if(r.properties=t.getPropertiesInternal(),r.resolution=a,e.featureId){const e=t.getId();r.featureId=void 0!==e?e:null}let s=0;for(let e=0;e<n;++e){const t=i[e](r);t&&(o[s]=t,s+=1)}return o.length=s,o}}function bt(t,e){const n=t.length,i=new Array(n);for(let r=0;r<n;++r){const n=t[r],o="filter"in n?rt(n.filter,_,e):yt;let a;if(Array.isArray(n.style)){const t=n.style.length;a=new Array(t);for(let i=0;i<t;++i)a[i]=wt(n.style[i],e)}else a=[wt(n.style,e)];i[r]={filter:o,styles:a}}return function(e){const r=[];let o=!1;for(let a=0;a<n;++a){const n=i[a].filter;if(n(e)&&(!t[a].else||!o)){o=!0;for(const t of i[a].styles){const n=t(e);n&&r.push(n)}}}return r}}function wt(t,e){const n=St(t,"",e),i=At(t,"",e),r=Mt(t,e),a=Ct(t,e),s=Dt(t,"z-index",e);if(!n&&!i&&!r&&!a&&!(0,vt.p)(t))throw new Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(t));const l=new o.Ay;return function(t){let e=!0;if(n){const i=n(t);i&&(e=!1),l.setFill(i)}if(i){const n=i(t);n&&(e=!1),l.setStroke(n)}if(r){const n=r(t);n&&(e=!1),l.setText(n)}if(a){const n=a(t);n&&(e=!1),l.setImage(n)}return s&&l.setZIndex(s(t)),e?null:l}}function St(t,e,n){let i;if(i=e+"fill-pattern-src"in t?Lt(t,e+"fill-",n):Ot(t,e+"fill-color",n),!i)return null;const r=new s.A;return function(t){const e=i(t);return"none"===e?null:(r.setColor(e),r)}}function At(t,e,n){const i=Dt(t,e+"stroke-width",n),r=Ot(t,e+"stroke-color",n);if(!i&&!r)return null;const o=Pt(t,e+"stroke-line-cap",n),a=Pt(t,e+"stroke-line-join",n),s=kt(t,e+"stroke-line-dash",n),l=Dt(t,e+"stroke-line-dash-offset",n),u=Dt(t,e+"stroke-miter-limit",n),h=new c.A;return function(t){if(r){const e=r(t);if("none"===e)return null;h.setColor(e)}if(i&&h.setWidth(i(t)),o){const e=o(t);if("butt"!==e&&"round"!==e&&"square"!==e)throw new Error("Expected butt, round, or square line cap");h.setLineCap(e)}if(a){const e=a(t);if("bevel"!==e&&"round"!==e&&"miter"!==e)throw new Error("Expected bevel, round, or miter line join");h.setLineJoin(e)}return s&&h.setLineDash(s(t)),l&&h.setLineDashOffset(l(t)),u&&h.setMiterLimit(u(t)),h}}function Mt(t,e){const n="text-",i=Pt(t,n+"value",e);if(!i)return null;const r=St(t,n,e),o=St(t,n+"background-",e),a=At(t,n,e),s=At(t,n+"background-",e),l=Pt(t,n+"font",e),u=Dt(t,n+"max-angle",e),c=Dt(t,n+"offset-x",e),h=Dt(t,n+"offset-y",e),d=Rt(t,n+"overflow",e),f=Pt(t,n+"placement",e),g=Dt(t,n+"repeat",e),m=zt(t,n+"scale",e),v=Rt(t,n+"rotate-with-view",e),y=Dt(t,n+"rotation",e),_=Pt(t,n+"align",e),x=Pt(t,n+"justify",e),b=Pt(t,n+"baseline",e),w=kt(t,n+"padding",e),S=Yt(t,n+"declutter-mode"),A=new p({declutterMode:S});return function(t){if(A.setText(i(t)),r&&A.setFill(r(t)),o&&A.setBackgroundFill(o(t)),a&&A.setStroke(a(t)),s&&A.setBackgroundStroke(s(t)),l&&A.setFont(l(t)),u&&A.setMaxAngle(u(t)),c&&A.setOffsetX(c(t)),h&&A.setOffsetY(h(t)),d&&A.setOverflow(d(t)),f){const e=f(t);if("point"!==e&&"line"!==e)throw new Error("Expected point or line for text-placement");A.setPlacement(e)}if(g&&A.setRepeat(g(t)),m&&A.setScale(m(t)),v&&A.setRotateWithView(v(t)),y&&A.setRotation(y(t)),_){const e=_(t);if("left"!==e&&"center"!==e&&"right"!==e&&"end"!==e&&"start"!==e)throw new Error("Expected left, right, center, start, or end for text-align");A.setTextAlign(e)}if(x){const e=x(t);if("left"!==e&&"right"!==e&&"center"!==e)throw new Error("Expected left, right, or center for text-justify");A.setJustify(e)}if(b){const e=b(t);if("bottom"!==e&&"top"!==e&&"middle"!==e&&"alphabetic"!==e&&"hanging"!==e)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");A.setTextBaseline(e)}return w&&A.setPadding(w(t)),A}}function Ct(t,e){return"icon-src"in t?It(t,e):"shape-points"in t?Tt(t,e):"circle-radius"in t?Et(t,e):null}function It(t,e){const n="icon-",i=n+"src",r=Zt(t[i],i),o=Nt(t,n+"anchor",e),a=zt(t,n+"scale",e),s=Dt(t,n+"opacity",e),u=Nt(t,n+"displacement",e),c=Dt(t,n+"rotation",e),h=Rt(t,n+"rotate-with-view",e),d=Wt(t,n+"anchor-origin"),f=jt(t,n+"anchor-x-units"),p=jt(t,n+"anchor-y-units"),g=Ut(t,n+"color"),m=Vt(t,n+"cross-origin"),v=Ht(t,n+"offset"),y=Wt(t,n+"offset-origin"),_=Bt(t,n+"width"),x=Bt(t,n+"height"),b=Gt(t,n+"size"),w=Yt(t,n+"declutter-mode"),S=new l.A({src:r,anchorOrigin:d,anchorXUnits:f,anchorYUnits:p,color:g,crossOrigin:m,offset:v,offsetOrigin:y,height:x,width:_,size:b,declutterMode:w});return function(t){return s&&S.setOpacity(s(t)),u&&S.setDisplacement(u(t)),c&&S.setRotation(c(t)),h&&S.setRotateWithView(h(t)),a&&S.setScale(a(t)),o&&S.setAnchor(o(t)),S}}function Tt(t,e){const n="shape-",i=n+"points",r=n+"radius",o=qt(t[i],i),a=qt(t[r],r),s=St(t,n,e),l=At(t,n,e),c=zt(t,n+"scale",e),h=Nt(t,n+"displacement",e),d=Dt(t,n+"rotation",e),f=Rt(t,n+"rotate-with-view",e),p=Bt(t,n+"radius2"),g=Bt(t,n+"angle"),m=Yt(t,n+"declutter-mode"),v=new u.A({points:o,radius:a,radius2:p,angle:g,declutterMode:m});return function(t){return s&&v.setFill(s(t)),l&&v.setStroke(l(t)),h&&v.setDisplacement(h(t)),d&&v.setRotation(d(t)),f&&v.setRotateWithView(f(t)),c&&v.setScale(c(t)),v}}function Et(t,e){const n="circle-",i=St(t,n,e),r=At(t,n,e),o=Dt(t,n+"radius",e),s=zt(t,n+"scale",e),l=Nt(t,n+"displacement",e),u=Dt(t,n+"rotation",e),c=Rt(t,n+"rotate-with-view",e),h=Yt(t,n+"declutter-mode"),d=new a.A({radius:5,declutterMode:h});return function(t){return o&&d.setRadius(o(t)),i&&d.setFill(i(t)),r&&d.setStroke(r(t)),l&&d.setDisplacement(l(t)),u&&d.setRotation(u(t)),c&&d.setRotateWithView(c(t)),s&&d.setScale(s(t)),d}}function Dt(t,e,n){if(!(e in t))return;const i=rt(t[e],x,n);return function(t){return qt(i(t),e)}}function Pt(t,e,n){if(!(e in t))return null;const i=rt(t[e],b,n);return function(t){return Zt(i(t),e)}}function Lt(t,e,n){const i=Pt(t,e+"pattern-src",n),r=Ft(t,e+"pattern-offset",n),o=Ft(t,e+"pattern-size",n),a=Ot(t,e+"color",n);return function(t){return{src:i(t),offset:r&&r(t),size:o&&o(t),color:a&&a(t)}}}function Rt(t,e,n){if(!(e in t))return null;const i=rt(t[e],_,n);return function(t){const n=i(t);if("boolean"!==typeof n)throw new Error(`Expected a boolean for ${e}`);return n}}function Ot(t,e,n){if(!(e in t))return null;const i=rt(t[e],w|b,n);return function(t){return $t(i(t),e)}}function kt(t,e,n){if(!(e in t))return null;const i=rt(t[e],S,n);return function(t){return Xt(i(t),e)}}function Nt(t,e,n){if(!(e in t))return null;const i=rt(t[e],S,n);return function(t){const n=Xt(i(t),e);if(2!==n.length)throw new Error(`Expected two numbers for ${e}`);return n}}function Ft(t,e,n){if(!(e in t))return null;const i=rt(t[e],S,n);return function(t){return Kt(i(t),e)}}function zt(t,e,n){if(!(e in t))return null;const i=rt(t[e],S|x,n);return function(t){return Jt(i(t),e)}}function Bt(t,e){const n=t[e];if(void 0!==n){if("number"!==typeof n)throw new Error(`Expected a number for ${e}`);return n}}function Gt(t,e){const n=t[e];if(void 0!==n){if("number"===typeof n)return(0,h.xq)(n);if(!Array.isArray(n))throw new Error(`Expected a number or size array for ${e}`);if(2!==n.length||"number"!==typeof n[0]||"number"!==typeof n[1])throw new Error(`Expected a number or size array for ${e}`);return n}}function Vt(t,e){const n=t[e];if(void 0!==n){if("string"!==typeof n)throw new Error(`Expected a string for ${e}`);return n}}function Wt(t,e){const n=t[e];if(void 0!==n){if("bottom-left"!==n&&"bottom-right"!==n&&"top-left"!==n&&"top-right"!==n)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return n}}function jt(t,e){const n=t[e];if(void 0!==n){if("pixels"!==n&&"fraction"!==n)throw new Error(`Expected pixels or fraction for ${e}`);return n}}function Ht(t,e){const n=t[e];if(void 0!==n)return Xt(n,e)}function Yt(t,e){const n=t[e];if(void 0!==n){if("string"!==typeof n)throw new Error(`Expected a string for ${e}`);if("declutter"!==n&&"obstacle"!==n&&"none"!==n)throw new Error(`Expected declutter, obstacle, or none for ${e}`);return n}}function Ut(t,e){const n=t[e];if(void 0!==n)return $t(n,e)}function Xt(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for ${e}`);const n=t.length;for(let i=0;i<n;++i)if("number"!==typeof t[i])throw new Error(`Expected an array of numbers for ${e}`);return t}function Zt(t,e){if("string"!==typeof t)throw new Error(`Expected a string for ${e}`);return t}function qt(t,e){if("number"!==typeof t)throw new Error(`Expected a number for ${e}`);return t}function $t(t,e){if("string"===typeof t)return t;const n=Xt(t,e),i=n.length;if(i<3||i>4)throw new Error(`Expected a color with 3 or 4 values for ${e}`);return n}function Kt(t,e){const n=Xt(t,e);if(2!==n.length)throw new Error(`Expected an array of two numbers for ${e}`);return n}function Jt(t,e){return"number"===typeof t?t:Kt(t,e)}const Qt={RENDER_ORDER:"renderOrder"};class te extends i.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(Qt.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const n=this.getDeclutter();n in t.declutter===!1&&(t.declutter[n]=new r(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(Qt.RENDER_ORDER,t)}setStyle(t){this.style_=void 0===t?o.d1:t;const e=ee(t);this.styleFunction_=null===t?void 0:(0,o.mC)(e),this.changed()}}function ee(t){if(void 0===t)return o.d1;if(!t)return null;if("function"===typeof t)return t;if(t instanceof o.Ay)return t;if(!Array.isArray(t))return xt([t]);if(0===t.length)return[];const e=t.length,n=t[0];if(n instanceof o.Ay){const n=new Array(e);for(let i=0;i<e;++i){const e=t[i];if(!(e instanceof o.Ay))throw new Error("Expected a list of style instances");n[i]=e}return n}if("style"in n){const n=new Array(e);for(let i=0;i<e;++i){const e=t[i];if(!("style"in e))throw new Error("Expected a list of rules with a style property");n[i]=e}return _t(n)}const i=t;return xt(i)}var ne=te},60764:function(t,e,n){"use strict";n.d(e,{l:function(){return d}});var i=n(58620),r=n(6837),o=n(75332),a=n(83984),s=n(58694),l=n(90588),u=n(70915),c=n(9438);class h extends i.A{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(o.A.SOURCE,this.handleSourcePropertyChange_);const n=t.source?t.source:null;this.setSource(n)}getLayersArray(t){return t=t||[],t.push(this),t}getLayerStatesArray(t){return t=t||[],t.push(this.getLayerState()),t}getSource(){return this.get(o.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,c.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,c.KT)(t,r.A.CHANGE,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const n=this.getMapInternal();let i;!t&&n&&(t=n.getView()),e=t instanceof s.Ay?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),i=e.layerStatesArray?e.layerStatesArray.find((t=>t.layer===this)):this.getLayerState();const r=this.getExtent();return d(i,e.viewState)&&(!r||(0,u.HY)(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e;const n=this.getSource();if(n&&(e=n.getAttributions()),!e)return[];const i=t instanceof s.Ay?t.getViewStateAndExtent():t;let r=e(i);return Array.isArray(r)||(r=[r]),r}render(t,e){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(o.A.MAP,t)}getMapInternal(){return this.get(o.A.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,c.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,c.JH)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,c.KT)(t,a.A.PRECOMPOSE,(function(t){const e=t,n=e.frameState.layerStatesArray,i=this.getLayerState(!1);(0,l.v)(!n.some((function(t){return t.layer===i.layer})),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),n.push(i)}),this),this.mapRenderKey_=(0,c.KT)(this,r.A.CHANGE,t.render,t),this.changed())}setSource(t){this.set(o.A.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;const i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}e.A=h},75332:function(t,e){"use strict";e.A={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},1067:function(t,e,n){"use strict";n.d(e,{A:function(){return b}});var i=n(60764),r={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class o extends i.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getPreload(){return this.get(r.PRELOAD)}setPreload(t){this.set(r.PRELOAD,t)}getUseInterimTilesOnError(){return this.get(r.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(t){this.set(r.USE_INTERIM_TILES_ON_ERROR,t)}getData(t){return super.getData(t)}}var a=o,s=n(18860),l=n(40190),u=n(75727),c=n(91110),h=n(11078),d=n(9703),f=n(66514),p=n(70915),g=n(46800),m=n(4087),v=n(6782);class y extends s.A{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=(0,p.S5)(),this.tmpTileRange_=new c.A(0,0,0,0)}isDrawableTile(t){const e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==h.A.LOADED||n==h.A.EMPTY||n==h.A.ERROR&&!i}getTile(t,e,n,i){const r=i.pixelRatio,o=i.viewState.projection,a=this.getLayer(),s=a.getSource();let l=s.getTile(t,e,n,r,o);return l.getState()==h.A.ERROR&&a.getUseInterimTilesOnError()&&a.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(l)||(l=l.getInterimTile()),l}getData(t){const e=this.frameState;if(!e)return null;const n=this.getLayer(),i=(0,d.Bb)(e.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!(0,p.Ym)(r,i))return null;const o=e.pixelRatio,a=e.viewState.projection,s=e.viewState,c=n.getRenderSource(),f=c.getTileGridForProjection(s.projection),g=c.getTilePixelRatio(e.pixelRatio);for(let d=f.getZForResolution(s.resolution);d>=f.getMinZoom();--d){const t=f.getTileCoordForCoordAndZ(i,d),e=c.getTile(d,t[1],t[2],o,a);if(!(e instanceof l.A||e instanceof u.A)||e instanceof u.A&&e.getState()===h.A.EMPTY)return null;if(e.getState()!==h.A.LOADED)continue;const n=f.getOrigin(d),r=(0,v.xq)(f.getTileSize(d)),p=f.getResolution(d),m=Math.floor(g*((i[0]-n[0])/p-t[1]*r[0])),y=Math.floor(g*((n[1]-i[1])/p-t[2]*r[1])),_=Math.round(g*c.getGutterForProjection(s.projection));return this.getImageData(e.getImage(),m+_,y+_)}return null}loadedTileCallback(t,e,n){return!!this.isDrawableTile(n)&&super.loadedTileCallback(t,e,n)}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){const n=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,o=i.resolution,a=i.center,s=i.rotation,l=t.pixelRatio,u=this.getLayer(),c=u.getSource(),v=c.getRevision(),y=c.getTileGridForProjection(r),_=y.getZForResolution(o,c.zDirection),x=y.getResolution(_);let b=t.extent;const w=t.viewState.resolution,S=c.getTilePixelRatio(l);this.prepareContainer(t,e);const A=this.context.canvas.width,M=this.context.canvas.height,C=n.extent&&(0,g.SD)(n.extent,r);C&&(b=(0,p._N)(b,(0,g.SD)(n.extent,r)));const I=x*A/2/S,T=x*M/2/S,E=[a[0]-I,a[1]-T,a[0]+I,a[1]+T],D=y.getTileRangeForExtentAndZ(b,_),P={};P[_]={};const L=this.createLoadedTileFinder(c,r,P),R=this.tmpExtent,O=this.tmpTileRange_;this.newTiles_=!1;const k=s?(0,p.Yw)(i.center,w,s,t.size):void 0;for(let d=D.minX;d<=D.maxX;++d)for(let e=D.minY;e<=D.maxY;++e){if(s&&!y.tileCoordIntersectsViewport([_,d,e],k))continue;const i=this.getTile(_,d,e,t);if(this.isDrawableTile(i)){const e=(0,m.v6)(this);if(i.getState()==h.A.LOADED){P[_][i.tileCoord.toString()]=i;let t=i.inTransition(e);t&&1!==n.opacity&&(i.endTransition(e),t=!1),this.newTiles_||!t&&this.renderedTiles.includes(i)||(this.newTiles_=!0)}if(1===i.getAlpha(e,t.time))continue}const r=y.getTileCoordChildTileRange(i.tileCoord,O,R);let o=!1;r&&(o=L(_+1,r)),o||y.forEachTileCoordParentTileRange(i.tileCoord,L,O,R)}const N=x/o*l/S,F=this.getRenderContext(t);(0,d.Zz)(this.tempTransform,A/2,M/2,N,N,0,-A/2,-M/2),C&&this.clipUnrotated(F,t,C),c.getInterpolate()||(F.imageSmoothingEnabled=!1),this.preRender(F,t),this.renderedTiles.length=0;let z,B,G,V=Object.keys(P).map(Number);V.sort(f.V_),1!==n.opacity||this.containerReused&&!c.getOpaque(t.viewState.projection)?(z=[],B=[]):V=V.reverse();for(let h=V.length-1;h>=0;--h){const e=V[h],n=c.getTilePixelSize(e,l,r),i=y.getResolution(e),o=i/x,a=n[0]*o*N,s=n[1]*o*N,u=y.getTileCoordForCoordAndZ((0,p.Py)(E),e),f=y.getTileCoordExtent(u),g=(0,d.Bb)(this.tempTransform,[S*(f[0]-E[0])/x,S*(E[3]-f[3])/x]),v=S*c.getGutterForProjection(r),b=P[e];for(const r in b){const n=b[r],i=n.tileCoord,o=u[1]-i[1],l=Math.round(g[0]-(o-1)*a),h=u[2]-i[2],d=Math.round(g[1]-(h-1)*s),f=Math.round(g[0]-o*a),y=Math.round(g[1]-h*s),x=l-f,w=d-y,S=_===e,A=S&&1!==n.getAlpha((0,m.v6)(this),t.time);let M=!1;if(!A)if(z){G=[f,y,f+x,y,f+x,y+w,f,y+w];for(let t=0,n=z.length;t<n;++t)if(_!==e&&e<B[t]){const e=z[t];(0,p.HY)([f,y,f+x,y+w],[e[0],e[3],e[4],e[7]])&&(M||(F.save(),M=!0),F.beginPath(),F.moveTo(G[0],G[1]),F.lineTo(G[2],G[3]),F.lineTo(G[4],G[5]),F.lineTo(G[6],G[7]),F.moveTo(e[6],e[7]),F.lineTo(e[4],e[5]),F.lineTo(e[2],e[3]),F.lineTo(e[0],e[1]),F.clip())}z.push(G),B.push(e)}else F.clearRect(f,y,x,w);this.drawTileImage(n,t,f,y,x,w,v,S),z&&!A?(M&&F.restore(),this.renderedTiles.unshift(n)):this.renderedTiles.push(n),this.updateUsedTiles(t.usedTiles,c,n)}}return this.renderedRevision=v,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!(0,p.aI)(this.renderedExtent_,E),this.renderedExtent_=E,this.renderedPixelRatio=l,this.renderedProjection=r,this.manageTilePyramid(t,c,y,l,r,b,_,u.getPreload()),this.scheduleExpireCache(t,c),this.postRender(this.context,t),n.extent&&F.restore(),F.imageSmoothingEnabled=!0,this.container}drawTileImage(t,e,n,i,r,o,a,s){const l=this.getTileImage(t);if(!l)return;const u=this.getRenderContext(e),c=(0,m.v6)(this),h=e.layerStatesArray[e.layerIndex],d=h.opacity*(s?t.getAlpha(c,e.time):1),f=d!==u.globalAlpha;f&&(u.save(),u.globalAlpha=d),u.drawImage(l,a,a,l.width-2*a,l.height-2*a,n,i,r,o),f&&u.restore(),d!==h.opacity?e.animate=!0:s&&t.endTransition(c)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}scheduleExpireCache(t,e){if(e.canExpireCache()){const n=function(t,e,n){const i=(0,m.v6)(t);i in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,e);t.postRenderFunctions.push(n)}}updateUsedTiles(t,e,n){const i=(0,m.v6)(e);i in t||(t[i]={}),t[i][n.getKey()]=!0}manageTilePyramid(t,e,n,i,r,o,a,s,l){const u=(0,m.v6)(e);u in t.wantedTiles||(t.wantedTiles[u]={});const c=t.wantedTiles[u],d=t.tileQueue,f=n.getMinZoom(),g=t.viewState.rotation,v=g?(0,p.Yw)(t.viewState.center,t.viewState.resolution,g,t.size):void 0;let y,_,x,b,w,S,A=0;for(S=f;S<=a;++S)for(_=n.getTileRangeForExtentAndZ(o,S,_),x=n.getResolution(S),b=_.minX;b<=_.maxX;++b)for(w=_.minY;w<=_.maxY;++w)g&&!n.tileCoordIntersectsViewport([S,b,w],v)||(a-S<=s?(++A,y=e.getTile(S,b,w,i,r),y.getState()==h.A.IDLE&&(c[y.getKey()]=!0,d.isKeyQueued(y.getKey())||d.enqueue([y,u,n.getTileCoordCenter(y.tileCoord),x])),void 0!==l&&l(y)):e.useTile(S,b,w,r));e.updateCacheSize(A,r)}}var _=y;class x extends a{constructor(t){super(t)}createRenderer(){return new _(this)}}var b=x},23875:function(t,e,n){"use strict";n.d(e,{A:function(){return bt}});var i=n(80310);const r={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},o=[r.FILL],a=[r.STROKE],s=[r.BEGIN_PATH],l=[r.CLOSE_PATH];var u=r,c=n(11580),h=n(32826),d=n(77295),f=n(70915),p=n(38774),g=n(66514),m=n(56361);class v extends h.A{constructor(t,e,n,i){super(),this.tolerance=t,this.maxExtent=e,this.pixelRatio=i,this.maxLineWidth=0,this.resolution=n,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(t){const e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))}appendFlatPointCoordinates(t,e){const n=this.getBufferedMaxExtent(),i=this.tmpCoordinate_,r=this.coordinates;let o=r.length;for(let a=0,s=t.length;a<s;a+=e)i[0]=t[a],i[1]=t[a+1],(0,f.Ym)(n,i)&&(r[o++]=i[0],r[o++]=i[1]);return o}appendFlatLineCoordinates(t,e,n,i,r,o){const a=this.coordinates;let s=a.length;const l=this.getBufferedMaxExtent();o&&(e+=i);let u=t[e],h=t[e+1];const d=this.tmpCoordinate_;let p,g,m,v=!0;for(p=e+i;p<n;p+=i)d[0]=t[p],d[1]=t[p+1],m=(0,f.vz)(l,d),m!==g?(v&&(a[s++]=u,a[s++]=h,v=!1),a[s++]=d[0],a[s++]=d[1]):m===c.A.INTERSECTING?(a[s++]=d[0],a[s++]=d[1],v=!1):v=!0,u=d[0],h=d[1],g=m;return(r&&v||p===e+i)&&(a[s++]=u,a[s++]=h),s}drawCustomCoordinates_(t,e,n,i,r){for(let o=0,a=n.length;o<a;++o){const a=n[o],s=this.appendFlatLineCoordinates(t,e,a,i,!1,!1);r.push(s),e=a}return e}drawCustom(t,e,n,i,r){this.beginGeometry(t,e,r);const o=t.getType(),a=t.getStride(),s=this.coordinates.length;let l,c,h,d,f;switch(o){case"MultiPolygon":l=t.getOrientedFlatCoordinates(),d=[];const e=t.getEndss();f=0;for(let t=0,n=e.length;t<n;++t){const n=[];f=this.drawCustomCoordinates_(l,f,e[t],a,n),d.push(n)}this.instructions.push([u.CUSTOM,s,d,t,n,m.Dz,r]),this.hitDetectionInstructions.push([u.CUSTOM,s,d,t,i||n,m.Dz,r]);break;case"Polygon":case"MultiLineString":h=[],l="Polygon"==o?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),f=this.drawCustomCoordinates_(l,0,t.getEnds(),a,h),this.instructions.push([u.CUSTOM,s,h,t,n,m.cD,r]),this.hitDetectionInstructions.push([u.CUSTOM,s,h,t,i||n,m.cD,r]);break;case"LineString":case"Circle":l=t.getFlatCoordinates(),c=this.appendFlatLineCoordinates(l,0,l.length,a,!1,!1),this.instructions.push([u.CUSTOM,s,c,t,n,m.n2,r]),this.hitDetectionInstructions.push([u.CUSTOM,s,c,t,i||n,m.n2,r]);break;case"MultiPoint":l=t.getFlatCoordinates(),c=this.appendFlatPointCoordinates(l,a),c>s&&(this.instructions.push([u.CUSTOM,s,c,t,n,m.n2,r]),this.hitDetectionInstructions.push([u.CUSTOM,s,c,t,i||n,m.n2,r]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),c=this.coordinates.length,this.instructions.push([u.CUSTOM,s,c,t,n,void 0,r]),this.hitDetectionInstructions.push([u.CUSTOM,s,c,t,i||n,void 0,r]);break;default:}this.endGeometry(e)}beginGeometry(t,e,n){this.beginGeometryInstruction1_=[u.BEGIN_GEOMETRY,e,0,t,n],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[u.BEGIN_GEOMETRY,e,0,t,n],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const n=t.length;let i,r,o=-1;for(e=0;e<n;++e)i=t[e],r=i[0],r==u.END_GEOMETRY?o=e:r==u.BEGIN_GEOMETRY&&(i[2]=e,(0,g.gI)(this.hitDetectionInstructions,o,e),o=-1)}setFillStrokeStyle(t,e){const n=this.state;if(t){const e=t.getColor();n.fillPatternScale=e&&"object"===typeof e&&"src"in e?this.pixelRatio:1,n.fillStyle=(0,d.F)(e||p.qY)}else n.fillStyle=void 0;if(e){const t=e.getColor();n.strokeStyle=(0,d.F)(t||p.NT);const i=e.getLineCap();n.lineCap=void 0!==i?i:p._m;const r=e.getLineDash();n.lineDash=r?r.slice():p.Oq;const o=e.getLineDashOffset();n.lineDashOffset=o||p.vk;const a=e.getLineJoin();n.lineJoin=void 0!==a?a:p._K;const s=e.getWidth();n.lineWidth=void 0!==s?s:p.aq;const l=e.getMiterLimit();n.miterLimit=void 0!==l?l:p.eL,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0}createFill(t){const e=t.fillStyle,n=[u.SET_FILL_STYLE,e];return"string"!==typeof e&&n.push(t.fillPatternScale),n}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[u.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const n=t.fillStyle;"string"===typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)}updateStrokeStyle(t,e){const n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!(0,g.aI)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[u.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,f.o8)(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;(0,f.r)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}var y=v;class _ extends y{constructor(t,e,n,i){super(t,e,n,i),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e,n){if(!this.image_||this.maxExtent&&!(0,f.Ym)(this.maxExtent,t.getFlatCoordinates()))return;this.beginGeometry(t,e,n);const i=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(i,r);this.instructions.push([u.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([u.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e,n){if(!this.image_)return;this.beginGeometry(t,e,n);const i=t.getFlatCoordinates(),r=[];for(let s=0,l=i.length;s<l;s+=t.getStride())this.maxExtent&&!(0,f.Ym)(this.maxExtent,i.slice(s,s+2))||r.push(i[s],i[s+1]);const o=this.coordinates.length,a=this.appendFlatPointCoordinates(r,2);this.instructions.push([u.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([u.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){const n=t.getAnchor(),i=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=i[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}var x=_;class b extends y{constructor(t,e,n,i){super(t,e,n,i)}drawFlatCoordinates_(t,e,n,i){const r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,n,i,!1,!1),a=[u.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n}drawLineString(t,e,n){const i=this.state,r=i.strokeStyle,o=i.lineWidth;if(void 0===r||void 0===o)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e,n),this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,p.Oq,p.vk],s);const l=t.getFlatCoordinates(),c=t.getStride();this.drawFlatCoordinates_(l,0,l.length,c),this.hitDetectionInstructions.push(a),this.endGeometry(e)}drawMultiLineString(t,e,n){const i=this.state,r=i.strokeStyle,o=i.lineWidth;if(void 0===r||void 0===o)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e,n),this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,p.Oq,p.vk],s);const l=t.getEnds(),c=t.getFlatCoordinates(),h=t.getStride();let d=0;for(let a=0,s=l.length;a<s;++a)d=this.drawFlatCoordinates_(c,d,l[a],h);this.hitDetectionInstructions.push(a),this.endGeometry(e)}finish(){const t=this.state;return void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(a),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(a),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(s)}}var w=b,S=n(83671);class A extends y{constructor(t,e,n,i){super(t,e,n,i)}drawFlatCoordinatess_(t,e,n,i){const r=this.state,c=void 0!==r.fillStyle,h=void 0!==r.strokeStyle,d=n.length;this.instructions.push(s),this.hitDetectionInstructions.push(s);for(let o=0;o<d;++o){const r=n[o],a=this.coordinates.length,s=this.appendFlatLineCoordinates(t,e,r,i,!0,!h),c=[u.MOVE_TO_LINE_TO,a,s];this.instructions.push(c),this.hitDetectionInstructions.push(c),h&&(this.instructions.push(l),this.hitDetectionInstructions.push(l)),e=r}return c&&(this.instructions.push(o),this.hitDetectionInstructions.push(o)),h&&(this.instructions.push(a),this.hitDetectionInstructions.push(a)),e}drawCircle(t,e,n){const i=this.state,r=i.fillStyle,l=i.strokeStyle;if(void 0===r&&void 0===l)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,n),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([u.SET_FILL_STYLE,p.qY]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,p.Oq,p.vk]);const c=t.getFlatCoordinates(),h=t.getStride(),d=this.coordinates.length;this.appendFlatLineCoordinates(c,0,c.length,h,!1,!1);const f=[u.CIRCLE,d];this.instructions.push(s,f),this.hitDetectionInstructions.push(s,f),void 0!==i.fillStyle&&(this.instructions.push(o),this.hitDetectionInstructions.push(o)),void 0!==i.strokeStyle&&(this.instructions.push(a),this.hitDetectionInstructions.push(a)),this.endGeometry(e)}drawPolygon(t,e,n){const i=this.state,r=i.fillStyle,o=i.strokeStyle;if(void 0===r&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,n),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([u.SET_FILL_STYLE,p.qY]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,p.Oq,p.vk]);const a=t.getEnds(),s=t.getOrientedFlatCoordinates(),l=t.getStride();this.drawFlatCoordinatess_(s,0,a,l),this.endGeometry(e)}drawMultiPolygon(t,e,n){const i=this.state,r=i.fillStyle,o=i.strokeStyle;if(void 0===r&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,n),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([u.SET_FILL_STYLE,p.qY]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([u.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,p.Oq,p.vk]);const a=t.getEndss(),s=t.getOrientedFlatCoordinates(),l=t.getStride();let c=0;for(let u=0,h=a.length;u<h;++u)c=this.drawFlatCoordinatess_(s,c,a[u],l);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const t=this.tolerance;if(0!==t){const e=this.coordinates;for(let n=0,i=e.length;n<i;++n)e[n]=(0,S.n$)(e[n],t)}return super.finish()}setFillStrokeStyles_(){const t=this.state,e=t.fillStyle;void 0!==e&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)}}var M=A,C=n(4087),I=n(61597);function T(t,e,n,i,r){const o=[];let a=n,s=0,l=e.slice(n,2);while(s<t&&a+r<i){const[n,i]=l.slice(-2),u=e[a+r],c=e[a+r+1],h=Math.sqrt((u-n)*(u-n)+(c-i)*(c-i));if(s+=h,s>=t){const e=(t-s+h)/h,d=(0,I.Cc)(n,u,e),f=(0,I.Cc)(i,c,e);l.push(d,f),o.push(l),l=[d,f],s==t&&(a+=r),s=0}else if(s<t)l.push(e[a+r],e[a+r+1]),a+=r;else{const t=h-s,e=(0,I.Cc)(n,u,t/h),d=(0,I.Cc)(i,c,t/h);l.push(e,d),o.push(l),l=[e,d],s=0,a+=r}}return s>0&&o.push(l),o}function E(t,e,n,i,r){let o,a,s,l,u,c,h,d,f,p,g=n,m=n,v=0,y=0,_=n;for(a=n;a<i;a+=r){const n=e[a],i=e[a+1];void 0!==u&&(f=n-u,p=i-c,l=Math.sqrt(f*f+p*p),void 0!==h&&(y+=s,o=Math.acos((h*f+d*p)/(s*l)),o>t&&(y>v&&(v=y,g=_,m=a),y=0,_=a-r)),s=l,h=f,d=p),u=n,c=i}return y+=l,y>v?[_,a]:[g,m]}const D={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class P extends y{constructor(t,e,n,i){super(t,e,n,i),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[p.qY]={fillStyle:p.qY},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e,n){const i=this.textFillState_,r=this.textStrokeState_,o=this.textState_;if(""===this.text_||!o||!i&&!r)return;const a=this.coordinates;let s=a.length;const l=t.getType();let c=null,h=t.getStride();if("line"!==o.placement||"LineString"!=l&&"MultiLineString"!=l&&"Polygon"!=l&&"MultiPolygon"!=l){let i=o.overflow?null:[];switch(l){case"Point":case"MultiPoint":c=t.getFlatCoordinates();break;case"LineString":c=t.getFlatMidpoint();break;case"Circle":c=t.getCenter();break;case"MultiLineString":c=t.getFlatMidpoints(),h=2;break;case"Polygon":c=t.getFlatInteriorPoint(),o.overflow||i.push(c[2]/this.resolution),h=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();c=[];for(let t=0,n=e.length;t<n;t+=3)o.overflow||i.push(e[t+2]/this.resolution),c.push(e[t],e[t+1]);if(0===c.length)return;h=2;break;default:}const r=this.appendFlatPointCoordinates(c,h);if(r===s)return;if(i&&(r-s)/2!==c.length/h){let t=s/2;i=i.filter(((e,n)=>{const i=a[2*(t+n)]===c[n*h]&&a[2*(t+n)+1]===c[n*h+1];return i||--t,i}))}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&this.updateFillStyle(this.state,this.createFill),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e,n);let d=o.padding;if(d!=p.Tq&&(o.scale[0]<0||o.scale[1]<0)){let t=o.padding[0],e=o.padding[1],n=o.padding[2],i=o.padding[3];o.scale[0]<0&&(e=-e,i=-i),o.scale[1]<0&&(t=-t,n=-n),d=[t,e,n,i]}const f=this.pixelRatio;this.instructions.push([u.DRAW_IMAGE,s,r,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,d==p.Tq?p.Tq:d.map((function(t){return t*f})),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]);const g=1/f,m=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=p.qY,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([u.DRAW_IMAGE,s,r,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[g,g],NaN,this.declutterMode_,this.declutterImageWithText_,d,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?p.qY:this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]),o.backgroundFill&&(this.state.fillStyle=m,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}else{if(!(0,f.HY)(this.maxExtent,t.getExtent()))return;let i;if(c=t.getFlatCoordinates(),"LineString"==l)i=[c.length];else if("MultiLineString"==l)i=t.getEnds();else if("Polygon"==l)i=t.getEnds().slice(0,1);else if("MultiPolygon"==l){const e=t.getEndss();i=[];for(let t=0,n=e.length;t<n;++t)i.push(e[t][0])}this.beginGeometry(t,e,n);const r=o.repeat,u=r?void 0:o.textAlign;let d=0;for(let t=0,e=i.length;t<e;++t){let e;e=r?T(r*this.resolution,c,d,i[t],h):[c.slice(d,i[t])];for(let n=0,r=e.length;n<r;++n){const r=e[n];let l=0,c=r.length;if(void 0==u){const t=E(o.maxAngle,r,0,r.length,2);l=t[0],c=t[1]}for(let t=l;t<c;t+=h)a.push(r[t],r[t+1]);const f=a.length;d=i[t],this.drawChars_(s,f),s=f}}this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||p.MY,justify:e.justify,textBaseline:e.textBaseline||p.M8,scale:e.scale});const o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))}drawChars_(t,e){const n=this.textStrokeState_,i=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const s=this.pixelRatio,l=D[i.textBaseline],c=this.textOffsetY_*s,h=this.text_,d=n?n.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([u.DRAW_CHARS,t,e,l,i.overflow,a,i.maxAngle,s,c,r,d*s,h,o,1,this.declutterMode_]),this.hitDetectionInstructions.push([u.DRAW_CHARS,t,e,l,i.overflow,a?p.qY:a,i.maxAngle,s,c,r,d*s,h,o,1/s,this.declutterMode_])}setTextStyle(t,e){let n,i,r;if(t){const e=t.getFill();e?(i=this.textFillState_,i||(i={},this.textFillState_=i),i.fillStyle=(0,d.F)(e.getColor()||p.qY)):(i=null,this.textFillState_=i);const o=t.getStroke();if(o){r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const t=o.getLineDash(),e=o.getLineDashOffset(),n=o.getWidth(),i=o.getMiterLimit();r.lineCap=o.getLineCap()||p._m,r.lineDash=t?t.slice():p.Oq,r.lineDashOffset=void 0===e?p.vk:e,r.lineJoin=o.getLineJoin()||p._K,r.lineWidth=void 0===n?p.aq:n,r.miterLimit=void 0===i?p.eL:i,r.strokeStyle=(0,d.F)(o.getColor()||p.NT)}else r=null,this.textStrokeState_=r;n=this.textState_;const a=t.getFont()||p.ZV;(0,p.fZ)(a);const s=t.getScaleArray();n.overflow=t.getOverflow(),n.font=a,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.repeat=t.getRepeat(),n.justify=t.getJustify(),n.textBaseline=t.getTextBaseline()||p.M8,n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||p.Tq,n.scale=void 0===s?[1,1]:s;const l=t.getOffsetX(),u=t.getOffsetY(),c=t.getRotateWithView(),h=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===l?0:l,this.textOffsetY_=void 0===u?0:u,this.textRotateWithView_=void 0!==c&&c,this.textRotation_=void 0===h?0:h,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:(0,C.v6)(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.repeat||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=i&&i.fillStyle?"string"==typeof i.fillStyle?i.fillStyle:"|"+(0,C.v6)(i.fillStyle):""}else this.text_="";this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}var L=P;const R={Circle:M,Default:y,Image:x,LineString:w,Polygon:M,Text:L};class O{constructor(t,e,n,i){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const n=this.buildersByZIndex_[e];for(const i in n){const r=n[i].finish();t[e][i]=r}}return t}getBuilder(t,e){const n=void 0!==t?t.toString():"0";let i=this.buildersByZIndex_[n];void 0===i&&(i={},this.buildersByZIndex_[n]=i);let r=i[e];if(void 0===r){const t=R[e];r=new t(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[e]=r}return r}}var k=O,N=n(18860),F=n(40808),z=n(9703),B=n(87622);function G(t,e,n,i,r,o,a,s,l,u,c,h){let d=t[e],f=t[e+1],p=0,g=0,m=0,v=0;function y(){p=d,g=f,e+=i,d=t[e],f=t[e+1],v+=m,m=Math.sqrt((d-p)*(d-p)+(f-g)*(f-g))}do{y()}while(e<n-i&&v+m<o);let _=0===m?0:(o-v)/m;const x=(0,I.Cc)(p,d,_),b=(0,I.Cc)(g,f,_),w=e-i,S=v,A=o+s*l(u,r,c);while(e<n-i&&v+m<A)y();_=0===m?0:(A-v)/m;const M=(0,I.Cc)(p,d,_),C=(0,I.Cc)(g,f,_);let T;if(h){const t=[x,b,M,C];(0,B.e$)(t,0,4,2,h,t,t),T=t[0]>t[2]}else T=x>M;const E=Math.PI,D=[],P=w+i===e;let L;if(e=w,m=0,v=S,d=t[e],f=t[e+1],P){y(),L=Math.atan2(f-g,d-p),T&&(L+=L>0?-E:E);const t=(M+x)/2,e=(C+b)/2;return D[0]=[t,e,(A-o)/2,L,r],D}r=r.replace(/\n/g," ");for(let R=0,O=r.length;R<O;){y();let t=Math.atan2(f-g,d-p);if(T&&(t+=t>0?-E:E),void 0!==L){let e=t-L;if(e+=e>E?-2*E:e<-E?2*E:0,Math.abs(e)>a)return null}L=t;const h=R;let x=0;for(;R<O;++R){const t=T?O-R-1:R,a=s*l(u,r[t],c);if(e+i<n&&v+m<o+x+a/2)break;x+=a}if(R===h)continue;const b=T?r.substring(O-h,O-R):r.substring(h,R);_=0===m?0:(o+x/2-v)/m;const w=(0,I.Cc)(p,d,_),S=(0,I.Cc)(g,f,_);D.push([w,S,x/2,t,b]),o+=x}return D}var V=n(50904);const W=(0,f.S5)(),j=[],H=[],Y=[],U=[];function X(t){return t[3].declutterBox}const Z=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function q(t,e){return"start"===e?e=Z.test(t)?"right":"left":"end"===e&&(e=Z.test(t)?"left":"right"),D[e]}function $(t,e,n){return n>0&&t.push("\n",""),t.push(e,""),t}class K{constructor(t,e,n,i,r){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,z.vt)(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=r?new F.A:null}getZIndexContext(){return this.zIndexContext_}createLabel(t,e,n,i){const r=t+e+n+i;if(this.labels_[r])return this.labels_[r];const o=i?this.strokeStates[i]:null,a=n?this.fillStates[n]:null,s=this.textStates[e],l=this.pixelRatio,u=[s.scale[0]*l,s.scale[1]*l],c=Array.isArray(t),h=s.justify?D[s.justify]:q(Array.isArray(t)?t[0]:t,s.textAlign||p.MY),d=i&&o.lineWidth?o.lineWidth:0,f=c?t:t.split("\n").reduce($,[]),{width:g,height:m,widths:v,heights:y,lineWidths:_}=(0,p.jT)(s,f),x=g+d,b=[],w=(x+2)*u[0],S=(m+d)*u[1],A={width:w<0?Math.floor(w):Math.ceil(w),height:S<0?Math.floor(S):Math.ceil(S),contextInstructions:b};1==u[0]&&1==u[1]||b.push("scale",u),i&&(b.push("strokeStyle",o.strokeStyle),b.push("lineWidth",d),b.push("lineCap",o.lineCap),b.push("lineJoin",o.lineJoin),b.push("miterLimit",o.miterLimit),b.push("setLineDash",[o.lineDash]),b.push("lineDashOffset",o.lineDashOffset)),n&&b.push("fillStyle",a.fillStyle),b.push("textBaseline","middle"),b.push("textAlign","center");const M=.5-h;let C=h*x+M*d;const I=[],T=[];let E,P=0,L=0,R=0,O=0;for(let p=0,D=f.length;p<D;p+=2){const t=f[p];if("\n"===t){L+=P,P=0,C=h*x+M*d,++O;continue}const e=f[p+1]||s.font;e!==E&&(i&&I.push("font",e),n&&T.push("font",e),E=e),P=Math.max(P,y[R]);const r=[t,C+M*v[R]+h*(v[R]-_[O]),.5*(d+P)+L];C+=v[R],i&&I.push("strokeText",r),n&&T.push("fillText",r),++R}return Array.prototype.push.apply(b,I),Array.prototype.push.apply(b,T),this.labels_[r]=A,A}replayTextBackground_(t,e,n,i,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignAndScaleFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())}calculateImageOrLabelDimensions_(t,e,n,i,r,o,a,s,l,u,c,h,d,p,g,m){a*=h[0],s*=h[1];let v=n-a,y=i-s;const _=r+l>t?t-l:r,x=o+u>e?e-u:o,b=p[3]+_*h[0]+p[1],w=p[0]+x*h[1]+p[2],S=v-p[3],A=y-p[0];let M;return(g||0!==c)&&(j[0]=S,U[0]=S,j[1]=A,H[1]=A,H[0]=S+b,Y[0]=H[0],Y[1]=A+w,U[1]=Y[1]),0!==c?(M=(0,z.Zz)((0,z.vt)(),n,i,1,1,c,-n,-i),(0,z.Bb)(M,j),(0,z.Bb)(M,H),(0,z.Bb)(M,Y),(0,z.Bb)(M,U),(0,f.N)(Math.min(j[0],H[0],Y[0],U[0]),Math.min(j[1],H[1],Y[1],U[1]),Math.max(j[0],H[0],Y[0],U[0]),Math.max(j[1],H[1],Y[1],U[1]),W)):(0,f.N)(Math.min(S,S+b),Math.min(A,A+w),Math.max(S,S+b),Math.max(A,A+w),W),d&&(v=Math.round(v),y=Math.round(y)),{drawImageX:v,drawImageY:y,drawImageW:_,drawImageH:x,originX:l,originY:u,declutterBox:{minX:W[0],minY:W[1],maxX:W[2],maxY:W[3],value:m},canvasTransform:M,scale:h}}replayImageOrLabel_(t,e,n,i,r,o,a){const s=!(!o&&!a),l=i.declutterBox,u=a?a[2]*i.scale[0]/2:0,c=l.minX-u<=e[0]&&l.maxX+u>=0&&l.minY-u<=e[1]&&l.maxY+u>=0;return c&&(s&&this.replayTextBackground_(t,j,H,Y,U,o,a),(0,p.Jw)(t,i.canvasTransform,r,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(t){const e=this.alignAndScaleFill_;if(e){const n=(0,z.Bb)(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(n[0]%i,n[1]%i),1!==e&&t.scale(e,e),t.rotate(this.viewRotation_)}t.fill(),e&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,n,i){const r=this.textStates[e],o=this.createLabel(t,e,i,n),a=this.strokeStates[n],s=this.pixelRatio,l=q(Array.isArray(t)?t[0]:t,r.textAlign||p.MY),u=D[r.textBaseline||p.M8],c=a&&a.lineWidth?a.lineWidth:0,h=o.width/s-2*r.scale[0],d=l*h+2*(.5-l)*c,f=u*o.height/s+2*(.5-u)*c;return{label:o,anchorX:d,anchorY:f}}execute_(t,e,n,i,r,o,a,s){const l=this.zIndexContext_;let c;this.pixelCoordinates_&&(0,g.aI)(n,this.renderedTransform_)?c=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),c=(0,B.Rc)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),(0,z.k3)(this.renderedTransform_,n));let h=0;const d=i.length;let m,v,y,_,x,b,w,S,A,M,C,I,T,E=0,D=0,P=0,L=null,R=null;const O=this.coordinateCache_,k=this.viewRotation_,N=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,F={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:k},W=this.instructions!=i||this.overlaps?0:200;let j,H,Y,U;while(h<d){const n=i[h],d=n[0];switch(d){case u.BEGIN_GEOMETRY:j=n[1],U=n[3],j.getGeometry()?void 0===a||(0,f.HY)(a,U.getExtent())?++h:h=n[2]+1:h=n[2],l&&(l.zIndex=n[4]);break;case u.BEGIN_PATH:D>W&&(this.fill_(t),D=0),P>W&&(t.stroke(),P=0),D||P||(t.beginPath(),x=NaN,b=NaN),++h;break;case u.CIRCLE:E=n[1];const i=c[E],d=c[E+1],g=c[E+2],z=c[E+3],B=g-i,Z=z-d,$=Math.sqrt(B*B+Z*Z);t.moveTo(i+$,d),t.arc(i,d,$,0,2*Math.PI,!0),++h;break;case u.CLOSE_PATH:t.closePath(),++h;break;case u.CUSTOM:E=n[1],m=n[2];const K=n[3],J=n[4],Q=n[5];F.geometry=K,F.feature=j,h in O||(O[h]=[]);const tt=O[h];Q?Q(c,E,m,2,tt):(tt[0]=c[E],tt[1]=c[E+1],tt.length=2),l&&(l.zIndex=n[6]),J(tt,F),++h;break;case u.DRAW_IMAGE:E=n[1],m=n[2],A=n[3],v=n[4],y=n[5];let et=n[6];const nt=n[7],it=n[8],rt=n[9],ot=n[10];let at=n[11];const st=n[12];let lt=n[13];_=n[14]||"declutter";const ut=n[15];if(!A&&n.length>=20){M=n[19],C=n[20],I=n[21],T=n[22];const t=this.drawLabelWithPointPlacement_(M,C,I,T);A=t.label,n[3]=A;const e=n[23];v=(t.anchorX-e)*this.pixelRatio,n[4]=v;const i=n[24];y=(t.anchorY-i)*this.pixelRatio,n[5]=y,et=A.height,n[6]=et,lt=A.width,n[13]=lt}let ct,ht,dt,ft;n.length>25&&(ct=n[25]),n.length>17?(ht=n[16],dt=n[17],ft=n[18]):(ht=p.Tq,dt=!1,ft=!1),ot&&N?at+=k:ot||N||(at-=k);let pt=0;for(;E<m;E+=2){if(ct&&ct[pt++]<lt/this.pixelRatio)continue;const n=this.calculateImageOrLabelDimensions_(A.width,A.height,c[E],c[E+1],lt,et,v,y,it,rt,at,st,r,ht,dt||ft,j),i=[t,e,A,n,nt,dt?L:null,ft?R:null];if(s){let t,e,r,o,a;if(ut){const n=m-E;if(!ut[n]){ut[n]={args:i,declutterMode:_};continue}const o=ut[n];t=o.args,e=o.declutterMode,delete ut[n],r=X(t)}if(!t||"declutter"===e&&s.collides(r)||(o=!0),"declutter"===_&&s.collides(n.declutterBox)||(a=!0),"declutter"===e&&"declutter"===_){const t=o&&a;o=t,a=t}o&&("none"!==e&&s.insert(r),this.replayImageOrLabel_.apply(this,t)),a&&("none"!==_&&s.insert(n.declutterBox),this.replayImageOrLabel_.apply(this,i))}else this.replayImageOrLabel_.apply(this,i)}++h;break;case u.DRAW_CHARS:const gt=n[1],mt=n[2],vt=n[3],yt=n[4];T=n[5];const _t=n[6],xt=n[7],bt=n[8];I=n[9];const wt=n[10];M=n[11],C=n[12];const St=[n[13],n[13]];_=n[14]||"declutter";const At=this.textStates[C],Mt=At.font,Ct=[At.scale[0]*xt,At.scale[1]*xt];let It;Mt in this.widths_?It=this.widths_[Mt]:(It={},this.widths_[Mt]=It);const Tt=(0,V.k)(c,gt,mt,2),Et=Math.abs(Ct[0])*(0,p.TA)(Mt,M,It);if(yt||Et<=Tt){const n=this.textStates[C].textAlign,i=(Tt-Et)*q(M,n),r=G(c,gt,mt,2,M,i,_t,Math.abs(Ct[0]),p.TA,Mt,It,N?0:this.viewRotation_);t:if(r){const n=[];let i,o,a,l,u;if(I)for(i=0,o=r.length;i<o;++i){u=r[i],a=u[4],l=this.createLabel(a,C,"",I),v=u[2]+(Ct[0]<0?-wt:wt),y=vt*l.height+2*(.5-vt)*wt*Ct[1]/Ct[0]-bt;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,u[0],u[1],l.width,l.height,v,y,0,0,u[3],St,!1,p.Tq,!1,j);if(s&&"declutter"===_&&s.collides(o.declutterBox))break t;n.push([t,e,l,o,1,null,null])}if(T)for(i=0,o=r.length;i<o;++i){u=r[i],a=u[4],l=this.createLabel(a,C,T,""),v=u[2],y=vt*l.height-bt;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,u[0],u[1],l.width,l.height,v,y,0,0,u[3],St,!1,p.Tq,!1,j);if(s&&"declutter"===_&&s.collides(o.declutterBox))break t;n.push([t,e,l,o,1,null,null])}s&&"none"!==_&&s.load(n.map(X));for(let t=0,e=n.length;t<e;++t)this.replayImageOrLabel_.apply(this,n[t])}}++h;break;case u.END_GEOMETRY:if(void 0!==o){j=n[1];const t=o(j,U,_);if(t)return t}++h;break;case u.FILL:W?D++:this.fill_(t),++h;break;case u.MOVE_TO_LINE_TO:for(E=n[1],m=n[2],H=c[E],Y=c[E+1],t.moveTo(H,Y),x=H+.5|0,b=Y+.5|0,E+=2;E<m;E+=2)H=c[E],Y=c[E+1],w=H+.5|0,S=Y+.5|0,E!=m-2&&w===x&&S===b||(t.lineTo(H,Y),x=w,b=S);++h;break;case u.SET_FILL_STYLE:L=n,this.alignAndScaleFill_=n[2],D&&(this.fill_(t),D=0,P&&(t.stroke(),P=0)),t.fillStyle=n[1],++h;break;case u.SET_STROKE_STYLE:R=n,P&&(t.stroke(),P=0),this.setStrokeStyle_(t,n),++h;break;case u.STROKE:W?P++:t.stroke(),++h;break;default:++h;break}}D&&this.fill_(t),P&&t.stroke()}execute(t,e,n,i,r,o){this.viewRotation_=i,this.execute_(t,e,n,this.instructions,r,void 0,void 0,o)}executeHitDetection(t,e,n,i,r){return this.viewRotation_=n,this.execute_(t,[t.canvas.width,t.canvas.height],e,this.hitDetectionInstructions,!0,i,r)}}var J=K,Q=n(68711),tt=n(43530);const et=["Polygon","Circle","LineString","Image","Text","Default"],nt=["Image","Text"],it=et.filter((t=>!nt.includes(t)));class rt{constructor(t,e,n,i,r,o,a){this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,z.vt)(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(r,a)}clip(t,e){const n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()}createExecutors_(t,e){for(const n in t){let i=this.executorsByZIndex_[n];void 0===i&&(i={},this.executorsByZIndex_[n]=i);const r=t[n];for(const t in r){const n=r[t];i[t]=new J(this.resolution_,this.pixelRatio_,this.overlaps_,n,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const n=this.executorsByZIndex_[e];for(let e=0,i=t.length;e<i;++e)if(t[e]in n)return!0}return!1}forEachFeatureAtCoordinate(t,e,n,i,r,o){i=Math.round(i);const a=2*i+1,s=(0,z.Zz)(this.hitDetectionTransform_,i+.5,i+.5,1/e,-1/e,-n,-t[0],-t[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=(0,Q.Y)(a,a,void 0,{willReadFrequently:!0}));const u=this.hitDetectionContext_;let c;u.canvas.width!==a||u.canvas.height!==a?(u.canvas.width=a,u.canvas.height=a):l||u.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(c=(0,f.S5)(),(0,f.$C)(c,t),(0,f.r)(c,e*(this.renderBuffer_+i),c));const h=at(i);let d;function p(t,e,n){const s=u.getImageData(0,0,a,a).data;for(let l=0,c=h.length;l<c;l++)if(s[h[l]]>0){if(!o||"none"===n||"Image"!==d&&"Text"!==d||o.includes(t)){const n=(h[l]-3)/4,o=i-n%a,s=i-(n/a|0),u=r(t,e,o*o+s*s);if(u)return u}u.clearRect(0,0,a,a);break}}const m=Object.keys(this.executorsByZIndex_).map(Number);let v,y,_,x,b;for(m.sort(g.V_),v=m.length-1;v>=0;--v){const t=m[v].toString();for(_=this.executorsByZIndex_[t],y=et.length-1;y>=0;--y)if(d=et[y],x=_[d],void 0!==x&&(b=x.executeHitDetection(u,s,n,p,c),b))return b}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const n=e[0],i=e[1],r=e[2],o=e[3],a=[n,i,n,o,r,o,r,i];return(0,B.Rc)(a,0,8,2,t,a),a}isEmpty(){return(0,tt.p)(this.executorsByZIndex_)}execute(t,e,n,i,r,o,a){const s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(g.V_),o=o||et;const l=et.length;let u,c,h,d,f;for(a&&s.reverse(),u=0,c=s.length;u<c;++u){const c=s[u].toString();for(f=this.executorsByZIndex_[c],h=0,d=o.length;h<d;++h){const c=o[h],d=f[c];if(void 0!==d){const o=null===a?void 0:d.getZIndexContext(),f=o?o.getContext():t,p=this.maxExtent_&&"Image"!==c&&"Text"!==c;if(p&&(f.save(),this.clip(f,n)),o&&"Text"!==c&&"Image"!==c?o.pushFunction((t=>d.execute(t,e,n,i,r,a))):d.execute(f,e,n,i,r,a),p&&f.restore(),o){o.offset();const t=s[u]*l+h;this.deferredZIndexContexts_[t]||(this.deferredZIndexContexts_[t]=[]),this.deferredZIndexContexts_[t].push(o)}}}}this.renderedContext_=t}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const t=this.deferredZIndexContexts_,e=Object.keys(t).map(Number).sort(g.V_);for(let n=0,i=e.length;n<i;++n)t[e[n]].forEach((t=>{t.draw(this.renderedContext_),t.clear()})),t[e[n]].length=0}}const ot={};function at(t){if(void 0!==ot[t])return ot[t];const e=2*t+1,n=t*t,i=new Array(n+1);for(let o=0;o<=t;++o)for(let r=0;r<=t;++r){const a=o*o+r*r;if(a>n)break;let s=i[a];s||(s=[],i[a]=s),s.push(4*((t+o)*e+(t+r))+3),o>0&&s.push(4*((t-o)*e+(t+r))+3),r>0&&(s.push(4*((t+o)*e+(t-r))+3),o>0&&s.push(4*((t-o)*e+(t-r))+3))}const r=[];for(let o=0,a=i.length;o<a;++o)i[o]&&r.push(...i[o]);return ot[t]=r,r}var st=rt,lt=n(83984),ut=n(62703),ct=n(2236),ht=n(49700),dt=n(46800);const ft=.5;function pt(t,e,n,i,r,o,a,s,l){const u=l?(0,dt.JR)(r,l):r,c=t[0]*ft,h=t[1]*ft,d=(0,Q.Y)(c,h);d.imageSmoothingEnabled=!1;const p=d.canvas,m=new ct.A(d,ft,r,null,a,s,l?(0,dt.FO)((0,dt.Tf)(),l):null),v=n.length,y=Math.floor(16777215/v),_={};for(let g=1;g<=v;++g){const t=n[g-1],e=t.getStyleFunction()||i;if(!e)continue;let r=e(t,o);if(!r)continue;Array.isArray(r)||(r=[r]);const a=g*y,s=a.toString(16).padStart(7,"#00000");for(let n=0,i=r.length;n<i;++n){const e=r[n],i=e.getGeometryFunction()(t);if(!i||!(0,f.HY)(u,i.getExtent()))continue;const o=e.clone(),a=o.getFill();a&&a.setColor(s);const l=o.getStroke();l&&(l.setColor(s),l.setLineDash(null)),o.setText(void 0);const c=e.getImage();if(c){const t=c.getImageSize();if(!t)continue;const e=(0,Q.Y)(t[0],t[1],void 0,{alpha:!1}),n=e.canvas;e.fillStyle=s,e.fillRect(0,0,n.width,n.height),o.setImage(new ht.A({img:n,anchor:c.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:c.getOrigin(),opacity:1,size:c.getSize(),scale:c.getScale(),rotation:c.getRotation(),rotateWithView:c.getRotateWithView()}))}const h=o.getZIndex()||0;let d=_[h];d||(d={},_[h]=d,d["Polygon"]=[],d["Circle"]=[],d["LineString"]=[],d["Point"]=[]);const p=i.getType();if("GeometryCollection"===p){const t=i.getGeometriesArrayRecursive();for(let e=0,n=t.length;e<n;++e){const n=t[e];d[n.getType().replace("Multi","")].push(n,o)}}else d[p.replace("Multi","")].push(i,o)}}const x=Object.keys(_).map(Number).sort(g.V_);for(let f=0,g=x.length;f<g;++f){const t=_[x[f]];for(const n in t){const i=t[n];for(let t=0,n=i.length;t<n;t+=2){m.setStyle(i[t+1]);for(let n=0,r=e.length;n<r;++n)m.setTransform(e[n]),m.drawGeometry(i[t])}}}return d.getImageData(0,0,p.width,p.height)}function gt(t,e,n){const i=[];if(n){const r=Math.floor(Math.round(t[0])*ft),o=Math.floor(Math.round(t[1])*ft),a=4*((0,I.qE)(r,0,n.width-1)+(0,I.qE)(o,0,n.height-1)*n.width),s=n.data[a],l=n.data[a+1],u=n.data[a+2],c=u+256*(l+256*s),h=Math.floor(16777215/e.length);c&&c%h===0&&i.push(e[c/h-1])}return i}var mt=n(73608),vt=n(6933);class yt extends N.A{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.clipped_=!1,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,f.S5)(),this.wrappedRenderedExtent_=(0,f.S5)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedPixelRatio_=1,this.renderedRenderOrder_=null,this.renderedFrameDeclutter_,this.replayGroup_=null,this.replayGroupChanged=!0,this.clipping=!0,this.targetContext_=null,this.opacity_=1}renderWorlds(t,e,n){const i=e.extent,r=e.viewState,o=r.center,a=r.resolution,s=r.projection,l=r.rotation,u=s.getExtent(),c=this.getLayer().getSource(),h=this.getLayer().getDeclutter(),d=e.pixelRatio,p=e.viewHints,g=!(p[ut.A.ANIMATING]||p[ut.A.INTERACTING]),m=this.context,v=Math.round((0,f.RG)(i)/a*d),y=Math.round((0,f.Oq)(i)/a*d),_=c.getWrapX()&&s.canWrapX(),x=_?(0,f.RG)(u):null,b=_?Math.ceil((i[2]-u[2])/x)+1:1;let w=_?Math.floor((i[0]-u[0])/x):0;do{let i=this.getRenderTransform(o,a,0,d,v,y,w*x);e.declutter&&(i=i.slice(0)),t.execute(m,[m.canvas.width,m.canvas.height],i,l,g,void 0===n?et:n?nt:it,n?h&&e.declutter[h]:void 0)}while(++w<b)}setDrawContext_(){1!==this.opacity_&&(this.targetContext_=this.context,this.context=(0,Q.Y)(this.context.canvas.width,this.context.canvas.height,N.B))}resetDrawContext_(){if(1!==this.opacity_){const t=this.targetContext_.globalAlpha;this.targetContext_.globalAlpha=this.opacity_,this.targetContext_.drawImage(this.context.canvas,0,0),this.targetContext_.globalAlpha=t,(0,Q.Yg)(this.context),N.B.push(this.context.canvas),this.context=this.targetContext_,this.targetContext_=null}}renderDeclutter(t){this.replayGroup_&&this.getLayer().getDeclutter()&&this.renderWorlds(this.replayGroup_,t,!0)}renderDeferredInternal(t){this.replayGroup_&&(this.replayGroup_.renderDeferred(),this.clipped_&&this.context.restore(),this.resetDrawContext_())}renderFrame(t,e){const n=t.layerStatesArray[t.layerIndex];this.opacity_=n.opacity;const i=t.viewState;this.prepareContainer(t,e);const r=this.context,o=this.replayGroup_;let a=o&&!o.isEmpty();if(!a){const t=this.getLayer().hasListener(lt.A.PRERENDER)||this.getLayer().hasListener(lt.A.POSTRENDER);if(!t)return null}this.setDrawContext_(),this.preRender(r,t);const s=i.projection;if(this.clipped_=!1,a&&n.extent&&this.clipping){const e=(0,dt.SD)(n.extent,s);a=(0,f.HY)(e,t.extent),this.clipped_=a&&!(0,f.ms)(e,t.extent),this.clipped_&&this.clipUnrotated(r,t,e)}return a&&this.renderWorlds(o,t,!this.getLayer().getDeclutter()&&void 0),!t.declutter&&this.clipped_&&r.restore(),this.postRender(r,t),this.renderedRotation_!==i.rotation&&(this.renderedRotation_=i.rotation,this.hitDetectionImageData_=null),t.declutter||this.resetDrawContext_(),this.container}getFeatures(t){return new Promise((e=>{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=this.frameState.size.slice(),e=this.renderedCenter_,n=this.renderedResolution_,i=this.renderedRotation_,r=this.renderedProjection_,o=this.wrappedRenderedExtent_,a=this.getLayer(),s=[],l=t[0]*ft,u=t[1]*ft;s.push(this.getRenderTransform(e,n,i,ft,l,u,0).slice());const c=a.getSource(),h=r.getExtent();if(c.getWrapX()&&r.canWrapX()&&!(0,f.ms)(h,o)){let t=o[0];const r=(0,f.RG)(h);let a,c=0;while(t<h[0])--c,a=r*c,s.push(this.getRenderTransform(e,n,i,ft,l,u,a).slice()),t+=r;c=0,t=o[2];while(t>h[2])++c,a=r*c,s.push(this.getRenderTransform(e,n,i,ft,l,u,a).slice()),t-=r}const d=(0,dt.Tf)();this.hitDetectionImageData_=pt(t,s,this.renderedFeatures_,a.getStyleFunction(),o,n,i,(0,mt.j)(n,this.renderedPixelRatio_),d?r:null)}e(gt(t,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(t,e,n,i,r){if(!this.replayGroup_)return;const o=e.viewState.resolution,a=e.viewState.rotation,s=this.getLayer(),l={},u=function(t,e,n){const o=(0,C.v6)(t),a=l[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return l[o]=!0,r.splice(r.lastIndexOf(a),1),i(t,s,e);a.geometry=e,a.distanceSq=n}}else{if(0===n)return l[o]=!0,i(t,s,e);r.push(l[o]={feature:t,layer:s,geometry:e,distanceSq:n,callback:i})}};let c;const h=[this.replayGroup_],d=this.getLayer().getDeclutter();return h.some((i=>c=i.forEachFeatureAtCoordinate(t,o,a,n,u,d&&e.declutter[d]?e.declutter[d].all().map((t=>t.value)):null))),c}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),n=e.getSource();if(!n)return!1;const i=t.viewHints[ut.A.ANIMATING],r=t.viewHints[ut.A.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&i||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const s=t.extent,l=t.viewState,u=l.projection,c=l.resolution,h=t.pixelRatio,d=e.getRevision(),p=e.getRenderBuffer();let m=e.getRenderOrder();void 0===m&&(m=mt.Eo);const v=l.center.slice(),y=(0,f.r)(s,p*c),_=y.slice(),x=[y.slice()],b=u.getExtent();if(n.getWrapX()&&u.canWrapX()&&!(0,f.ms)(b,t.extent)){const t=(0,f.RG)(b),e=Math.max((0,f.RG)(y)/2,t);y[0]=b[0]-e,y[2]=b[2]+e,(0,vt.Li)(v,u);const n=(0,f.Li)(x[0],u);n[0]<b[0]&&n[2]<b[2]?x.push([n[0]+t,n[1],n[2]+t,n[3]]):n[0]>b[0]&&n[2]>b[2]&&x.push([n[0]-t,n[1],n[2]-t,n[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==d&&this.renderedRenderOrder_==m&&this.renderedFrameDeclutter_===!!t.declutter&&(0,f.ms)(this.wrappedRenderedExtent_,y))return(0,g.aI)(this.renderedExtent_,_)||(this.hitDetectionImageData_=null,this.renderedExtent_=_),this.renderedCenter_=v,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const w=new k((0,mt.gY)(c,h),y,c,h),S=(0,dt.Tf)();let A;if(S){for(let t=0,e=x.length;t<e;++t){const e=x[t],i=(0,dt.JR)(e,u);n.loadFeatures(i,(0,dt.vN)(c,u),S)}A=(0,dt.FO)(S,u)}else for(let f=0,g=x.length;f<g;++f)n.loadFeatures(x[f],c,u);const M=(0,mt.j)(c,h);let C=!0;const I=(t,n)=>{let i;const r=t.getStyleFunction()||e.getStyleFunction();if(r&&(i=r(t,c)),i){const e=this.renderFeature(t,M,i,w,A,this.getLayer().getDeclutter(),n);C=C&&!e}},T=(0,dt.JR)(y,u),E=n.getFeaturesInExtent(T);m&&E.sort(m);for(let f=0,g=E.length;f<g;++f)I(E[f],f);this.renderedFeatures_=E,this.ready=C;const D=w.finish(),P=new st(y,c,h,n.getOverlaps(),D,e.getRenderBuffer(),!!t.declutter);return this.renderedResolution_=c,this.renderedRevision_=d,this.renderedRenderOrder_=m,this.renderedFrameDeclutter_=!!t.declutter,this.renderedExtent_=_,this.wrappedRenderedExtent_=y,this.renderedCenter_=v,this.renderedProjection_=u,this.renderedPixelRatio_=h,this.replayGroup_=P,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,n,i,r,o,a){if(!n)return!1;let s=!1;if(Array.isArray(n))for(let l=0,u=n.length;l<u;++l)s=(0,mt.nl)(i,t,n[l],e,this.boundHandleStyleImageChange_,r,o,a)||s;else s=(0,mt.nl)(i,t,n,e,this.boundHandleStyleImageChange_,r,o,a);return s}}var _t=yt;class xt extends i.A{constructor(t){super(t)}createRenderer(){return new _t(this)}}var bt=xt},61597:function(t,e,n){"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}function r(t,e,n,i,r,a){const s=r-n,l=a-i;if(0!==s||0!==l){const o=((t-n)*s+(e-i)*l)/(s*s+l*l);o>1?(n=r,i=a):o>0&&(n+=s*o,i+=l*o)}return o(t,e,n,i)}function o(t,e,n,i){const r=n-t,o=i-e;return r*r+o*o}function a(t){const e=t.length;for(let i=0;i<e;i++){let n=i,r=Math.abs(t[i][i]);for(let a=i+1;a<e;a++){const e=Math.abs(t[a][i]);e>r&&(r=e,n=a)}if(0===r)return null;const o=t[n];t[n]=t[i],t[i]=o;for(let a=i+1;a<e;a++){const n=-t[a][i]/t[i][i];for(let r=i;r<e+1;r++)i==r?t[a][r]=0:t[a][r]+=n*t[i][r]}}const n=new Array(e);for(let i=e-1;i>=0;i--){n[i]=t[i][e]/t[i][i];for(let r=i-1;r>=0;r--)t[r][e]-=t[r][i]*n[i]}return n}function s(t){return t*Math.PI/180}function l(t,e){const n=t%e;return n*e<0?n+e:n}function u(t,e,n){return t+n*(e-t)}function c(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function h(t,e){return Math.floor(c(t,e))}function d(t,e){return Math.ceil(c(t,e))}n.d(e,{Cc:function(){return u},KU:function(){return a},Mg:function(){return c},Q1:function(){return r},RI:function(){return h},eh:function(){return s},hG:function(){return o},mk:function(){return d},qE:function(){return i},xP:function(){return l}})},43530:function(t,e,n){"use strict";function i(t){for(const e in t)delete t[e]}function r(t){let e;for(e in t)return!1;return!e}n.d(e,{I:function(){return i},p:function(){return r}})},46800:function(t,e,n){"use strict";n.d(e,{Ig:function(){return i},Av:function(){return W},RJ:function(){return R},tI:function(){return j},Ad:function(){return K},SD:function(){return Q},Jt:function(){return z},hO:function(){return B},RG:function(){return Y},FO:function(){return H},Tf:function(){return q},te:function(){return $},JR:function(){return J},vN:function(){return tt},pd:function(){return U}});const i={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class r{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||i[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}var o=r;const a=6378137,s=Math.PI*a,l=[-s,-s,s,s],u=[-180,-85,180,85],c=a*Math.log(Math.tan(Math.PI/2));class h extends o{constructor(t){super({code:t,units:"m",extent:l,global:!0,worldExtent:u,getPointResolution:function(t,e){return t/Math.cosh(e[1]/a)}})}}const d=[new h("EPSG:3857"),new h("EPSG:102100"),new h("EPSG:102113"),new h("EPSG:900913"),new h("http://www.opengis.net/def/crs/EPSG/0/3857"),new h("http://www.opengis.net/gml/srs/epsg.xml#3857")];function f(t,e,n){const i=t.length;n=n>1?n:2,void 0===e&&(e=n>2?t.slice():new Array(i));for(let r=0;r<i;r+=n){e[r]=s*t[r]/180;let n=a*Math.log(Math.tan(Math.PI*(+t[r+1]+90)/360));n>c?n=c:n<-c&&(n=-c),e[r+1]=n}return e}function p(t,e,n){const i=t.length;n=n>1?n:2,void 0===e&&(e=n>2?t.slice():new Array(i));for(let r=0;r<i;r+=n)e[r]=180*t[r]/s,e[r+1]=360*Math.atan(Math.exp(t[r+1]/a))/Math.PI-90;return e}const g=6378137,m=[-180,-90,180,90],v=Math.PI*g/180;class y extends o{constructor(t,e){super({code:t,units:"degrees",extent:m,axisOrientation:e,global:!0,metersPerUnit:v,worldExtent:m})}}const _=[new y("CRS:84"),new y("EPSG:4326","neu"),new y("urn:ogc:def:crs:OGC:1.3:CRS84"),new y("urn:ogc:def:crs:OGC:2:84"),new y("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new y("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new y("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let x={};function b(t){return x[t]||x[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function w(t,e){x[t]=e}let S={};function A(t,e,n){const i=t.getCode(),r=e.getCode();i in S||(S[i]={}),S[i][r]=n}function M(t,e){let n;return t in S&&e in S[t]&&(n=S[t][e]),n}var C=n(70915),I=n(6933),T=n(61597);const E=6371008.8;function D(t,e,n){n=n||E;const i=(0,T.eh)(t[1]),r=(0,T.eh)(e[1]),o=(r-i)/2,a=(0,T.eh)(e[0]-t[0])/2,s=Math.sin(o)*Math.sin(o)+Math.sin(a)*Math.sin(a)*Math.cos(i)*Math.cos(r);return 2*n*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))}var P=n(54422);let L=!0;function R(t){const e=void 0===t||t;L=!e}function O(t,e){if(void 0!==e)for(let n=0,i=t.length;n<i;++n)e[n]=t[n];else e=t.slice();return e}function k(t,e){if(void 0!==e&&t!==e){for(let n=0,i=t.length;n<i;++n)e[n]=t[n];t=e}return t}function N(t){w(t.getCode(),t),A(t,t,O)}function F(t){t.forEach(N)}function z(t){return"string"===typeof t?b(t):t||null}function B(t,e,n,r){let o;t=z(t);const a=t.getPointResolutionFunc();if(a){if(o=a(e,n),r&&r!==t.getUnits()){const e=t.getMetersPerUnit();e&&(o=o*e/i[r])}}else{const a=t.getUnits();if("degrees"==a&&!r||"degrees"==r)o=e;else{const s=H(t,z("EPSG:4326"));if(s===k&&"degrees"!==a)o=e*t.getMetersPerUnit();else{let t=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];t=s(t,t,2);const i=D(t.slice(0,2),t.slice(2,4)),r=D(t.slice(4,6),t.slice(6,8));o=(i+r)/2}const l=r?i[r]:t.getMetersPerUnit();void 0!==l&&(o/=l)}}return o}function G(t){F(t),t.forEach((function(e){t.forEach((function(t){e!==t&&A(e,t,O)}))}))}function V(t,e,n,i){t.forEach((function(t){e.forEach((function(e){A(t,e,n),A(e,t,i)}))}))}function W(t,e){return t?"string"===typeof t?z(t):t:z(e)}function j(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return n;const i=H(t,e);return i===O&&n}function H(t,e){const n=t.getCode(),i=e.getCode();let r=M(n,i);return r||(r=k),r}function Y(t,e){const n=z(t),i=z(e);return H(n,i)}function U(t,e,n){const i=Y(e,n);return i(t,void 0,t.length)}function X(t,e,n,i){const r=Y(e,n);return(0,C.NW)(t,r,void 0,i)}let Z=null;function q(){return Z}function $(t,e){return Z?U(t,e,Z):t}function K(t,e){return Z?U(t,Z,e):(L&&!(0,I.aI)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(L=!1,(0,P.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function J(t,e){return Z?X(t,e,Z):t}function Q(t,e){return Z?X(t,Z,e):t}function tt(t,e){if(!Z)return t;const n=z(e).getMetersPerUnit(),i=Z.getMetersPerUnit();return n&&i?t*n/i:t}function et(){G(d),G(_),V(_,d,f,p)}et()},87331:function(t,e,n){"use strict";n.d(e,{r2:function(){return s}});var i=n(2236),r=n(9703),o=n(73608),a=n(46800);function s(t){if(!(t.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");const e=t.inversePixelTransform[0],n=t.inversePixelTransform[1],s=Math.sqrt(e*e+n*n),l=t.frameState,u=(0,r.lw)(t.inversePixelTransform.slice(),l.coordinateToPixelTransform),c=(0,o.j)(l.viewState.resolution,s);let h;const d=(0,a.Tf)();return d&&(h=(0,a.FO)(d,l.viewState.projection)),new i.A(t.context,s,l.extent,u,l.viewState.rotation,c,h)}},9960:function(t,e,n){"use strict";var i=n(1685);class r extends i.Ay{constructor(t,e,n,i){super(t),this.inversePixelTransform=e,this.frameState=n,this.context=i}}e.A=r},83984:function(t,e){"use strict";e.A={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},24778:function(t,e,n){"use strict";var i=n(9703),r=n(70915),o=n(83671),a=n(66514),s=n(22616),l=n(46800),u=n(71225),c=n(79969),h=n(54049),d=n(74238),f=n(87622);const p=(0,i.vt)();class g{constructor(t,e,n,i,r,o){this.styleFunction,this.extent_,this.id_=o,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n||null,this.properties_=r,this.squaredTolerance_,this.stride_=i,this.simplifiedGeometry_}get(t){return this.properties_[t]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?(0,r.dP)(this.flatCoordinates_):(0,r.Vy)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const t=(0,r.q1)(this.getExtent());this.flatInteriorPoints_=(0,s.J)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const t=(0,u.yJ)(this.flatCoordinates_,this.ends_),e=(0,h.C)(this.flatCoordinates_,0,t,2);this.flatInteriorPoints_=(0,s.p)(this.flatCoordinates_,0,t,2,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=(0,c.SH)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const t=this.flatCoordinates_;let e=0;const n=this.ends_;for(let i=0,r=n.length;i<r;++i){const r=n[i],o=(0,c.SH)(t,e,r,2,.5);(0,a.X$)(this.flatMidpoints_,o),e=r}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(t){return this}simplifyTransformed(t,e){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(t){t=(0,l.Jt)(t);const e=t.getExtent(),n=t.getWorldExtent();if(e&&n){const t=(0,r.Oq)(n)/(0,r.Oq)(e);(0,i.Zz)(p,n[0],n[3],t,-t,0,0,0),(0,f.Rc)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,p,this.flatCoordinates_)}}applyTransform(t){t(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){return new g(this.type_,this.flatCoordinates_.slice(),this.ends_?.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=(0,d.B4)(((t,e)=>{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const n=this.simplifiedGeometry_.getFlatCoordinates();let i;switch(this.type_){case"LineString":n.length=(0,o.P4)(n,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,n,0),i=[n.length];break;case"MultiLineString":i=[],n.length=(0,o.AL)(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,n,0,i);break;case"Polygon":i=[],n.length=(0,o.Hg)(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),n,0,i);break;default:}return i&&(this.simplifiedGeometry_=new g(this.type_,n,i,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_})),this}}g.prototype.getFlatCoordinates=g.prototype.getOrientedFlatCoordinates,e.Ay=g},32826:function(t,e){"use strict";class n{drawCustom(t,e,n,i,r){}drawGeometry(t){}setStyle(t){}drawCircle(t,e,n){}drawFeature(t,e,n){}drawGeometryCollection(t,e,n){}drawLineString(t,e,n){}drawMultiLineString(t,e,n){}drawMultiPoint(t,e,n){}drawMultiPolygon(t,e,n){}drawPoint(t,e,n){}drawPolygon(t,e,n){}drawText(t,e,n){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}}e.A=n},38774:function(t,e,n){"use strict";n.d(e,{Jw:function(){return D},M8:function(){return v},MY:function(){return m},NT:function(){return g},Oq:function(){return h},TA:function(){return T},Tq:function(){return y},ZV:function(){return l},_K:function(){return f},_m:function(){return c},aq:function(){return _},eL:function(){return p},fZ:function(){return A},jT:function(){return E},qY:function(){return u},vk:function(){return d},yY:function(){return x}});var i=n(34120),r=n(7771),o=n(43530),a=n(68711),s=n(25176);const l="10px sans-serif",u="#000",c="round",h=[],d=0,f="round",p=10,g="#000",m="center",v="middle",y=[0,0,0,0],_=1,x=new i.A;let b,w=null;const S={},A=function(){const t=100,e="32px ",n=["monospace","serif"],i=n.length,r="wmytzilWMYTZIL@#/&?$%10";let a,l;function u(t,o,a){let s=!0;for(let u=0;u<i;++u){const i=n[u];if(l=I(t+" "+o+" "+e+i,r),a!=i){const n=I(t+" "+o+" "+e+a+","+i,r);s=s&&n!=l}}return!!s}function c(){let e=!0;const n=x.getKeys();for(let i=0,r=n.length;i<r;++i){const r=n[i];x.get(r)<t&&(u.apply(this,r.split("\n"))?((0,o.I)(S),w=null,b=void 0,x.set(r,t)):(x.set(r,x.get(r)+1,!0),e=!1))}e&&(clearInterval(a),a=void 0)}return function(e){const n=(0,s.K5)(e);if(!n)return;const i=n.families;for(let r=0,o=i.length;r<o;++r){const e=i[r],o=n.style+"\n"+n.weight+"\n"+e;void 0===x.get(o)&&(x.set(o,t,!0),u(n.style,n.weight,e)||(x.set(o,0,!0),void 0===a&&(a=setInterval(c,32))))}}}(),M=function(){let t;return function(e){let n=S[e];if(void 0==n){if(r.Wl){const t=(0,s.K5)(e),i=C(e,"Žg"),r=isNaN(Number(t.lineHeight))?1.2:Number(t.lineHeight);n=r*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);S[e]=n}return n}}();function C(t,e){return w||(w=(0,a.Y)(1,1)),t!=b&&(w.font=t,b=w.font),w.measureText(e)}function I(t,e){return C(t,e).width}function T(t,e,n){if(e in n)return n[e];const i=e.split("\n").reduce(((e,n)=>Math.max(e,I(t,n))),0);return n[e]=i,i}function E(t,e){const n=[],i=[],r=[];let o=0,a=0,s=0,l=0;for(let u=0,c=e.length;u<=c;u+=2){const h=e[u];if("\n"===h||u===c){o=Math.max(o,a),r.push(a),a=0,s+=l,l=0;continue}const d=e[u+1]||t.font,f=I(d,h);n.push(f),a+=f;const p=M(d);i.push(p),l=Math.max(l,p)}return{width:o,height:s,widths:n,heights:i,lineWidths:r}}function D(t,e,n,i,r,o,a,s,l,u,c){t.save(),1!==n&&(void 0===t.globalAlpha?t.globalAlpha=t=>t.globalAlpha*=n:t.globalAlpha*=n),e&&t.transform.apply(t,e),i.contextInstructions?(t.translate(l,u),t.scale(c[0],c[1]),P(i,t)):c[0]<0||c[1]<0?(t.translate(l,u),t.scale(c[0],c[1]),t.drawImage(i,r,o,a,s,0,0,a,s)):t.drawImage(i,r,o,a,s,l,u,a*c[0],s*c[1]),t.restore()}function P(t,e){const n=t.contextInstructions;for(let i=0,r=n.length;i<r;i+=2)Array.isArray(n[i+1])?e[n[i]].apply(e,n[i+1]):e[n[i]]=n[i+1]}},2236:function(t,e,n){"use strict";var i=n(32826),r=n(77295),o=n(9703),a=n(38774),s=n(66514),l=n(70915),u=n(61597),c=n(87622),h=n(62096);class d extends i.A{constructor(t,e,n,i,r,a,s){super(),this.context_=t,this.pixelRatio_=e,this.extent_=n,this.transform_=i,this.transformRotation_=i?(0,u.Mg)(Math.atan2(i[1],i[0]),10):0,this.viewRotation_=r,this.squaredTolerance_=a,this.userTransform_=s,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,o.vt)()}drawImages_(t,e,n,i){if(!this.image_)return;const r=(0,c.Rc)(t,e,n,i,this.transform_,this.pixelCoordinates_),a=this.context_,s=this.tmpLocalTransform_,l=a.globalAlpha;1!=this.imageOpacity_&&(a.globalAlpha=l*this.imageOpacity_);let u=this.imageRotation_;0===this.transformRotation_&&(u-=this.viewRotation_),this.imageRotateWithView_&&(u+=this.viewRotation_);for(let c=0,h=r.length;c<h;c+=2){const t=r[c]-this.imageAnchorX_,e=r[c+1]-this.imageAnchorY_;if(0!==u||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const n=t+this.imageAnchorX_,i=e+this.imageAnchorY_;(0,o.Zz)(s,n,i,1,1,u,-n,-i),a.save(),a.transform.apply(a,s),a.translate(n,i),a.scale(this.imageScale_[0],this.imageScale_[1]),a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),a.restore()}else a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,t,e,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(a.globalAlpha=l)}drawText_(t,e,n,i){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const r=(0,c.Rc)(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_;let a=this.textRotation_;for(0===this.transformRotation_&&(a-=this.viewRotation_),this.textRotateWithView_&&(a+=this.viewRotation_);e<n;e+=i){const t=r[e]+this.textOffsetX_,n=r[e+1]+this.textOffsetY_;0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]?(o.save(),o.translate(t-this.textOffsetX_,n-this.textOffsetY_),o.rotate(a),o.translate(this.textOffsetX_,this.textOffsetY_),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.restore()):(this.textStrokeState_&&o.strokeText(this.text_,t,n),this.textFillState_&&o.fillText(this.text_,t,n))}}moveToLineTo_(t,e,n,i,r){const o=this.context_,a=(0,c.Rc)(t,e,n,i,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);let s=a.length;r&&(s-=2);for(let l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return r&&o.closePath(),n}drawRings_(t,e,n,i){for(let r=0,o=n.length;r<o;++r)e=this.moveToLineTo_(t,e,n[r],i,!0);return e}drawCircle(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=(0,h.v7)(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],i=e[3]-e[1],r=Math.sqrt(n*n+i*i),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}}setStyle(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())}setTransform(t){this.transform_=t}drawGeometry(t){const e=t.getType();switch(e){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t);break;default:}}drawFeature(t,e){const n=e.getGeometryFunction()(t);n&&(this.setStyle(e),this.drawGeometry(n))}drawGeometryCollection(t){const e=t.getGeometriesArray();for(let n=0,i=e.length;n<i;++n)this.drawGeometry(e[n])}drawPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)}drawMultiPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)}drawLineString(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getExtent();if((0,l.HY)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getFlatCoordinates();let i=0;const r=t.getEnds(),o=t.getStride();e.beginPath();for(let t=0,a=r.length;t<a;++t)i=this.moveToLineTo_(n,i,r[t],o,!1);e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getOrientedFlatCoordinates();let i=0;const r=t.getEndss(),o=t.getStride();e.beginPath();for(let t=0,a=r.length;t<a;++t){const e=r[t];i=this.drawRings_(n,i,e,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){const e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})}setContextStrokeState_(t){const e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),(0,s.aI)(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset,e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})}setContextTextState_(t){const e=this.context_,n=this.contextTextState_,i=t.textAlign?t.textAlign:a.MY;n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=i&&(n.textAlign=i,e.textAlign=i),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=i,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:i,textBaseline:t.textBaseline})}setFillStrokeStyle(t,e){if(t){const e=t.getColor();this.fillState_={fillStyle:(0,r.F)(e||a.qY)}}else this.fillState_=null;if(e){const t=e.getColor(),n=e.getLineCap(),i=e.getLineDash(),o=e.getLineDashOffset(),s=e.getLineJoin(),l=e.getWidth(),u=e.getMiterLimit(),c=i||a.Oq;this.strokeState_={lineCap:void 0!==n?n:a._m,lineDash:1===this.pixelRatio_?c:c.map((t=>t*this.pixelRatio_)),lineDashOffset:(o||a.vk)*this.pixelRatio_,lineJoin:void 0!==s?s:a._K,lineWidth:(void 0!==l?l:a.aq)*this.pixelRatio_,miterLimit:void 0!==u?u:a.eL,strokeStyle:(0,r.F)(t||a.NT)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const n=t.getPixelRatio(this.pixelRatio_),i=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=i[0]*n,this.imageAnchorY_=i[1]*n,this.imageHeight_=e[1]*n,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/n,o[1]*this.pixelRatio_/n],this.imageWidth_=e[0]*n}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:(0,r.F)(t||a.qY)}}else this.textFillState_=null;const n=t.getStroke();if(n){const t=n.getColor(),e=n.getLineCap(),i=n.getLineDash(),o=n.getLineDashOffset(),s=n.getLineJoin(),l=n.getWidth(),u=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:a._m,lineDash:i||a.Oq,lineDashOffset:o||a.vk,lineJoin:void 0!==s?s:a._K,lineWidth:void 0!==l?l:a.aq,miterLimit:void 0!==u?u:a.eL,strokeStyle:(0,r.F)(t||a.NT)}}else this.textStrokeState_=null;const i=t.getFont(),o=t.getOffsetX(),s=t.getOffsetY(),l=t.getRotateWithView(),u=t.getRotation(),c=t.getScaleArray(),h=t.getText(),d=t.getTextAlign(),f=t.getTextBaseline();this.textState_={font:void 0!==i?i:a.ZV,textAlign:void 0!==d?d:a.MY,textBaseline:void 0!==f?f:a.M8},this.text_=void 0!==h?Array.isArray(h)?h.reduce(((t,e,n)=>t+(n%2?" ":e)),""):h:"",this.textOffsetX_=void 0!==o?this.pixelRatio_*o:0,this.textOffsetY_=void 0!==s?this.pixelRatio_*s:0,this.textRotateWithView_=void 0!==l&&l,this.textRotation_=void 0!==u?u:0,this.textScale_=[this.pixelRatio_*c[0],this.pixelRatio_*c[1]]}else this.text_=""}}e.A=d},40808:function(t,e,n){"use strict";var i=n(68711);class r{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy((0,i.lr)(),{get:(t,e)=>{if("function"===typeof(0,i.lr)()[e])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e),this.pushMethodArgs_},set:(t,e,n)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e,n),!0)})}pushMethodArgs_=(...t)=>(this.instructions_[this.zIndex+this.offset_].push(t),this);pushFunction(t){this.instructions_[this.zIndex+this.offset_].push(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach((e=>{for(let n=0,i=e.length;n<i;++n){const i=e[n];if("function"===typeof i){i(t);continue}const r=e[++n];if("function"===typeof t[i])t[i](...r);else{if("function"===typeof r){t[i]=r(t);continue}t[i]=r}}}))}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}}e.A=r},18860:function(t,e,n){"use strict";n.d(e,{B:function(){return v},A:function(){return b}});var i=n(6837),r=n(6141),o=n(11854),a=n(4087);class s extends o.A{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t}getFeatures(t){return(0,a.b0)()}getData(t){return null}prepareFrame(t){return(0,a.b0)()}renderFrame(t,e){return(0,a.b0)()}loadedTileCallback(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n}createLoadedTileFinder(t,e,n){return(i,r)=>{const o=this.loadedTileCallback.bind(this,n,i);return t.forEachLoadedTile(e,i,r,o)}}forEachFeatureAtCoordinate(t,e,n,i,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()!==r.A.LOADED&&e.getState()!==r.A.ERROR||this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=r.A.LOADED&&e!=r.A.ERROR&&t.addEventListener(i.A.CHANGE,this.boundHandleImageChange_),e==r.A.IDLE&&(t.load(),e=t.getState()),e==r.A.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}}var l=s,u=n(9960),c=n(83984),h=n(40808),d=n(9703),f=n(85745),p=n(68711),g=n(66514),m=n(70915);const v=[];let y=null;function _(){y=(0,p.Y)(1,1,void 0,{willReadFrequently:!0})}class x extends l{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,d.vt)(),this.pixelTransform=(0,d.vt)(),this.inversePixelTransform=(0,d.vt)(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,n){let i;y||_(),y.clearRect(0,0,1,1);try{y.drawImage(t,e,n,1,1,0,0,1,1),i=y.getImageData(0,0,1,1).data}catch(r){return y=null,null}return i}getBackground(t){const e=this.getLayer();let n=e.getBackground();return"function"===typeof n&&(n=n(t.viewState.resolution)),n||void 0}useContainer(t,e,n){const i=this.getLayer().getClassName();let r,o;if(t&&t.className===i&&(!n||t&&t.style.backgroundColor&&(0,g.aI)((0,f._j)(t.style.backgroundColor),(0,f._j)(n)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(o=e.getContext("2d"))}if(o&&o.canvas.style.transform===e?(this.container=t,this.context=o,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=i;let t=r.style;t.position="absolute",t.width="100%",t.height="100%",o=(0,p.Y)();const e=o.canvas;r.appendChild(e),t=e.style,t.position="absolute",t.left="0",t.transformOrigin="top left",this.container=r,this.context=o}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)}clipUnrotated(t,e,n){const i=(0,m.Py)(n),r=(0,m.WU)(n),o=(0,m.k_)(n),a=(0,m.R)(n);(0,d.Bb)(e.coordinateToPixelTransform,i),(0,d.Bb)(e.coordinateToPixelTransform,r),(0,d.Bb)(e.coordinateToPixelTransform,o),(0,d.Bb)(e.coordinateToPixelTransform,a);const s=this.inversePixelTransform;(0,d.Bb)(s,i),(0,d.Bb)(s,r),(0,d.Bb)(s,o),(0,d.Bb)(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}prepareContainer(t,e){const n=t.extent,i=t.viewState.resolution,r=t.viewState.rotation,o=t.pixelRatio,a=Math.round((0,m.RG)(n)/i*o),s=Math.round((0,m.Oq)(n)/i*o);(0,d.Zz)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/o,1/o,r,-a/2,-s/2),(0,d.T9)(this.inversePixelTransform,this.pixelTransform);const l=(0,d.dI)(this.pixelTransform);if(this.useContainer(e,l,this.getBackground(t)),!this.containerReused){const t=this.context.canvas;t.width!=a||t.height!=s?(t.width=a,t.height=s):this.context.clearRect(0,0,a,s),l!==t.style.transform&&(t.style.transform=l)}}dispatchRenderEvent_(t,e,n){const i=this.getLayer();if(i.hasListener(t)){const r=new u.A(t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}}preRender(t,e){this.frameState=e,e.declutter||this.dispatchRenderEvent_(c.A.PRERENDER,t,e)}postRender(t,e){e.declutter||this.dispatchRenderEvent_(c.A.POSTRENDER,t,e)}renderDeferredInternal(t){}getRenderContext(t){return t.declutter&&!this.deferredContext_&&(this.deferredContext_=new h.A),t.declutter?this.deferredContext_.getContext():this.context}renderDeferred(t){t.declutter&&(this.dispatchRenderEvent_(c.A.PRERENDER,this.context,t),t.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(t),this.dispatchRenderEvent_(c.A.POSTRENDER,this.context,t))}getRenderTransform(t,e,n,i,r,o,a){const s=r/2,l=o/2,u=i/e,c=-u,h=-t[0]+a,f=-t[1];return(0,d.Zz)(this.tempTransform,s,l,u,c,-n,h,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}}var b=x},73608:function(t,e,n){"use strict";n.d(e,{Eo:function(){return s},gY:function(){return u},j:function(){return l},nl:function(){return h}});var i=n(6141),r=n(4087);const o=.5,a={Point:y,LineString:g,Polygon:x,MultiPoint:_,MultiLineString:m,MultiPolygon:v,GeometryCollection:p,Circle:c};function s(t,e){return parseInt((0,r.v6)(t),10)-parseInt((0,r.v6)(e),10)}function l(t,e){const n=u(t,e);return n*n}function u(t,e){return o*t/e}function c(t,e,n,i,r){const o=n.getFill(),a=n.getStroke();if(o||a){const s=t.getBuilder(n.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(e,i,r)}const s=n.getText();if(s&&s.getText()){const r=t.getBuilder(n.getZIndex(),"Text");r.setTextStyle(s),r.drawText(e,i)}}function h(t,e,n,r,o,a,s,l){const u=[],c=n.getImage();if(c){let t=!0;const e=c.getImageState();e==i.A.LOADED||e==i.A.ERROR?t=!1:e==i.A.IDLE&&c.load(),t&&u.push(c.ready())}const h=n.getFill();h&&h.loading()&&u.push(h.ready());const f=u.length>0;return f&&Promise.all(u).then((()=>o(null))),d(t,e,n,r,a,s,l),f}function d(t,e,n,i,r,o,s){const l=n.getGeometryFunction()(e);if(!l)return;const u=l.simplifyTransformed(i,r),c=n.getRenderer();if(c)f(t,u,n,e,s);else{const i=a[u.getType()];i(t,u,n,e,s,o)}}function f(t,e,n,i,r){if("GeometryCollection"==e.getType()){const o=e.getGeometries();for(let e=0,a=o.length;e<a;++e)f(t,o[e],n,i,r);return}const o=t.getBuilder(n.getZIndex(),"Default");o.drawCustom(e,i,n.getRenderer(),n.getHitDetectionRenderer(),r)}function p(t,e,n,i,r,o){const s=e.getGeometriesArray();let l,u;for(l=0,u=s.length;l<u;++l){const e=a[s[l].getType()];e(t,s[l],n,i,r,o)}}function g(t,e,n,i,r){const o=n.getStroke();if(o){const a=t.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(e,i,r)}const a=n.getText();if(a&&a.getText()){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(e,i,r)}}function m(t,e,n,i,r){const o=n.getStroke();if(o){const a=t.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,i,r)}const a=n.getText();if(a&&a.getText()){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(e,i,r)}}function v(t,e,n,i,r){const o=n.getFill(),a=n.getStroke();if(a||o){const s=t.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,i,r)}const s=n.getText();if(s&&s.getText()){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,i,r)}}function y(t,e,n,r,o,a){const s=n.getImage(),l=n.getText(),u=l&&l.getText(),c=a&&s&&u?{}:void 0;if(s){if(s.getImageState()!=i.A.LOADED)return;const a=t.getBuilder(n.getZIndex(),"Image");a.setImageStyle(s,c),a.drawPoint(e,r,o)}if(u){const i=t.getBuilder(n.getZIndex(),"Text");i.setTextStyle(l,c),i.drawText(e,r,o)}}function _(t,e,n,r,o,a){const s=n.getImage(),l=s&&0!==s.getOpacity(),u=n.getText(),c=u&&u.getText(),h=a&&l&&c?{}:void 0;if(l){if(s.getImageState()!=i.A.LOADED)return;const a=t.getBuilder(n.getZIndex(),"Image");a.setImageStyle(s,h),a.drawMultiPoint(e,r,o)}if(c){const i=t.getBuilder(n.getZIndex(),"Text");i.setTextStyle(u,h),i.drawText(e,r,o)}}function x(t,e,n,i,r){const o=n.getFill(),a=n.getStroke();if(o||a){const s=t.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(e,i,r)}const s=n.getText();if(s&&s.getText()){const o=t.getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,i,r)}}},75727:function(t,e,n){"use strict";n.d(e,{A:function(){return M}});const i=.5;var r=n(6837),o=n(8143),a=n(11078),s=n(70915),l=n(46800),u=n(61597);const c=10,h=.25;class d{constructor(t,e,n,i,r,o){this.sourceProj_=t,this.targetProj_=e;let a={};const u=(0,l.RG)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+"/"+t[1];return a[e]||(a[e]=u(t)),a[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&(0,s.RG)(i)>=(0,s.RG)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,s.RG)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,s.RG)(this.targetProj_.getExtent()):null;const h=(0,s.Py)(n),d=(0,s.WU)(n),f=(0,s.k_)(n),p=(0,s.R)(n),g=this.transformInv_(h),m=this.transformInv_(d),v=this.transformInv_(f),y=this.transformInv_(p),_=c+(o?Math.max(0,Math.ceil(Math.log2((0,s.UG)(n)/(o*o*256*256)))):0);if(this.addQuad_(h,d,f,p,g,m,v,y,_),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach((function(e,n,i){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach((e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){const n=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];n[0][0]-t>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-t>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-t>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);const i=Math.min(n[0][0],n[1][0],n[2][0]),r=Math.max(n[0][0],n[1][0],n[2][0]);r-i<this.sourceWorldWidth_/2&&(e.source=n)}}))}a={}}addTriangle_(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})}addQuad_(t,e,n,i,r,o,a,l,c){const d=(0,s.Tr)([r,o,a,l]),f=this.sourceWorldWidth_?(0,s.RG)(d)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,g=this.sourceProj_.canWrapX()&&f>.5&&f<1;let m=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const r=(0,s.Tr)([t,e,n,i]),o=(0,s.RG)(r)/this.targetWorldWidth_;m=o>h||m}!g&&this.sourceProj_.isGlobal()&&f&&(m=f>h||m)}if(!m&&this.maxSourceExtent_&&isFinite(d[0])&&isFinite(d[1])&&isFinite(d[2])&&isFinite(d[3])&&!(0,s.HY)(d,this.maxSourceExtent_))return;let v=0;if(!m&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1])))if(c>0)m=!0;else if(v=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(l[0])&&isFinite(l[1])?0:1),1!=v&&2!=v&&4!=v&&8!=v)return;if(c>0){if(!m){const e=[(t[0]+n[0])/2,(t[1]+n[1])/2],i=this.transformInv_(e);let o;if(g){const t=((0,u.xP)(r[0],p)+(0,u.xP)(a[0],p))/2;o=t-(0,u.xP)(i[0],p)}else o=(r[0]+a[0])/2-i[0];const s=(r[1]+a[1])/2-i[1],l=o*o+s*s;m=l>this.errorThresholdSquared_}if(m){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){const s=[(e[0]+n[0])/2,(e[1]+n[1])/2],u=this.transformInv_(s),h=[(i[0]+t[0])/2,(i[1]+t[1])/2],d=this.transformInv_(h);this.addQuad_(t,e,s,h,r,o,u,d,c-1),this.addQuad_(h,s,n,i,d,u,a,l,c-1)}else{const s=[(t[0]+e[0])/2,(t[1]+e[1])/2],u=this.transformInv_(s),h=[(n[0]+i[0])/2,(n[1]+i[1])/2],d=this.transformInv_(h);this.addQuad_(t,s,h,i,r,u,d,l,c-1),this.addQuad_(s,e,n,h,u,o,a,d,c-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&v)&&this.addTriangle_(t,n,i,r,a,l),0==(14&v)&&this.addTriangle_(t,n,e,r,a,o),v&&(0==(13&v)&&this.addTriangle_(e,i,t,o,l,r),0==(7&v)&&this.addTriangle_(e,i,n,o,l,a))}calculateSourceExtent(){const t=(0,s.S5)();return this.triangles_.forEach((function(e,n,i){const r=e.source;(0,s.$C)(t,r[0]),(0,s.$C)(t,r[1]),(0,s.$C)(t,r[2])})),t}getTriangles(){return this.triangles_}}var f=d,p=n(68711);let g;const m=[];function v(t,e,n,i,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,r)),t.restore()}function y(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function _(){if(void 0===g){const t=(0,p.Y)(6,6,m);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",v(t,4,5,4,0),v(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;g=y(e,0)||y(e,4)||y(e,8),(0,p.Yg)(t),m.push(t.canvas)}return g}function x(t,e,n,i){const r=(0,l.pd)(n,e,t);let o=(0,l.hO)(e,i,n);const a=e.getMetersPerUnit();void 0!==a&&(o*=a);const u=t.getMetersPerUnit();void 0!==u&&(o/=u);const c=t.getExtent();if(!c||(0,s.Ym)(c,r)){const e=(0,l.hO)(t,o,r)/o;isFinite(e)&&e>0&&(o/=e)}return o}function b(t,e,n,i){const r=(0,s.q1)(n);let o=x(t,e,r,i);return(!isFinite(o)||o<=0)&&(0,s.sB)(n,(function(n){return o=x(t,e,n,i),isFinite(o)&&o>0})),o}function w(t,e,n,i,r,o,a,l,c,h,d,f,g,v){const y=(0,p.Y)(Math.round(n*t),Math.round(n*e),m);if(f||(y.imageSmoothingEnabled=!1),0===c.length)return y.canvas;function x(t){return Math.round(t*n)/n}y.scale(n,n),y.globalCompositeOperation="lighter";const b=(0,s.S5)();let w;c.forEach((function(t,e,n){(0,s.X$)(b,t.extent)}));const S=n/i,A=(f?1:1+Math.pow(2,-24))/S;if(!g||1!==c.length||0!==h){if(w=(0,p.Y)(Math.round((0,s.RG)(b)*S),Math.round((0,s.Oq)(b)*S),m),f||(w.imageSmoothingEnabled=!1),r&&v){const t=(r[0]-b[0])*S,e=-(r[3]-b[3])*S,n=(0,s.RG)(r)*S,i=(0,s.Oq)(r)*S;w.rect(t,e,n,i),w.clip()}c.forEach((function(t,e,n){if(t.image.width>0&&t.image.height>0){if(t.clipExtent){w.save();const e=(t.clipExtent[0]-b[0])*S,n=-(t.clipExtent[3]-b[3])*S,i=(0,s.RG)(t.clipExtent)*S,r=(0,s.Oq)(t.clipExtent)*S;w.rect(f?e:Math.round(e),f?n:Math.round(n),f?i:Math.round(e+i)-Math.round(e),f?r:Math.round(n+r)-Math.round(n)),w.clip()}const e=(t.extent[0]-b[0])*S,n=-(t.extent[3]-b[3])*S,i=(0,s.RG)(t.extent)*S,r=(0,s.Oq)(t.extent)*S;w.drawImage(t.image,h,h,t.image.width-2*h,t.image.height-2*h,f?e:Math.round(e),f?n:Math.round(n),f?i:Math.round(e+i)-Math.round(e),f?r:Math.round(n+r)-Math.round(n)),t.clipExtent&&w.restore()}}))}const M=(0,s.Py)(a);return l.getTriangles().forEach((function(t,e,n){const i=t.source,r=t.target;let a=i[0][0],l=i[0][1],h=i[1][0],d=i[1][1],p=i[2][0],g=i[2][1];const m=x((r[0][0]-M[0])/o),v=x(-(r[0][1]-M[1])/o),S=x((r[1][0]-M[0])/o),C=x(-(r[1][1]-M[1])/o),I=x((r[2][0]-M[0])/o),T=x(-(r[2][1]-M[1])/o),E=a,D=l;a=0,l=0,h-=E,d-=D,p-=E,g-=D;const P=[[h,d,0,0,S-m],[p,g,0,0,I-m],[0,0,h,d,C-v],[0,0,p,g,T-v]],L=(0,u.KU)(P);if(!L)return;if(y.save(),y.beginPath(),_()||!f){y.moveTo(S,C);const t=4,e=m-S,n=v-C;for(let i=0;i<t;i++)y.lineTo(S+x((i+1)*e/t),C+x(i*n/(t-1))),i!=t-1&&y.lineTo(S+x((i+1)*e/t),C+x((i+1)*n/(t-1)));y.lineTo(I,T)}else y.moveTo(S,C),y.lineTo(m,v),y.lineTo(I,T);let R;if(y.clip(),y.transform(L[0],L[2],L[1],L[3],m,v),y.translate(b[0]-E,b[3]-D),w)R=w.canvas,y.scale(A,-A);else{const t=c[0],e=t.extent;R=t.image,y.scale((0,s.RG)(e)/R.width,-(0,s.Oq)(e)/R.height)}y.drawImage(R,0,0),y.restore()})),w&&((0,p.Yg)(w),m.push(w.canvas)),d&&(y.save(),y.globalCompositeOperation="source-over",y.strokeStyle="black",y.lineWidth=1,l.getTriangles().forEach((function(t,e,n){const i=t.target,r=(i[0][0]-M[0])/o,a=-(i[0][1]-M[1])/o,s=(i[1][0]-M[0])/o,l=-(i[1][1]-M[1])/o,u=(i[2][0]-M[0])/o,c=-(i[2][1]-M[1])/o;y.beginPath(),y.moveTo(s,l),y.lineTo(r,a),y.lineTo(u,c),y.closePath(),y.stroke()})),y.restore()),y.canvas}var S=n(9438);class A extends o.A{constructor(t,e,n,r,o,l,c,h,d,p,g,m){super(o,a.A.IDLE,m),this.renderEdges_=void 0!==g&&g,this.pixelRatio_=c,this.gutter_=h,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=r,this.wrappedTileCoord_=l||o,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=t.canWrapX()?t.getExtent():void 0;const v=r.getTileCoordExtent(this.wrappedTileCoord_),y=this.targetTileGrid_.getExtent();let _=this.sourceTileGrid_.getExtent();const x=y?(0,s._N)(v,y):v;if(0===(0,s.UG)(x))return void(this.state=a.A.EMPTY);const w=t.getExtent();w&&(_=_?(0,s._N)(_,w):w);const S=r.getResolution(this.wrappedTileCoord_[0]),A=b(t,n,x,S);if(!isFinite(A)||A<=0)return void(this.state=a.A.EMPTY);const M=void 0!==p?p:i;if(this.triangulation_=new f(t,n,x,_,A*M,S),0===this.triangulation_.getTriangles().length)return void(this.state=a.A.EMPTY);this.sourceZ_=e.getZForResolution(A);let C=this.triangulation_.calculateSourceExtent();if(_&&(t.canWrapX()?(C[1]=(0,u.qE)(C[1],_[1],_[3]),C[3]=(0,u.qE)(C[3],_[1],_[3])):C=(0,s._N)(C,_)),(0,s.UG)(C)){let n=0,i=0;t.canWrapX()&&(n=(0,s.RG)(w),i=Math.floor((C[0]-w[0])/n));const r=(0,s.QJ)(C.slice(),t,!0);r.forEach((t=>{const r=e.getTileRangeForExtentAndZ(t,this.sourceZ_);for(let e=r.minX;e<=r.maxX;e++)for(let t=r.minY;t<=r.maxY;t++){const r=d(this.sourceZ_,e,t,c);if(r){const t=i*n;this.sourceTiles_.push({tile:r,offset:t})}}++i})),0===this.sourceTiles_.length&&(this.state=a.A.EMPTY)}else this.state=a.A.EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach((e=>{const n=e.tile;if(n&&n.getState()==a.A.LOADED){const i=this.sourceTileGrid_.getTileCoordExtent(n.tileCoord);i[0]+=e.offset,i[2]+=e.offset;const r=this.clipExtent_?.slice();r&&(r[0]+=e.offset,r[2]+=e.offset),t.push({extent:i,clipExtent:r,image:n.getImage()})}})),this.sourceTiles_.length=0,0===t.length)this.state=a.A.ERROR;else{const e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"===typeof n?n:n[0],r="number"===typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=w(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=a.A.LOADED}this.changed()}load(){if(this.state==a.A.IDLE){this.state=a.A.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((({tile:e})=>{const n=e.getState();if(n==a.A.IDLE||n==a.A.LOADING){t++;const n=(0,S.KT)(e,r.A.CHANGE,(function(i){const r=e.getState();r!=a.A.LOADED&&r!=a.A.ERROR&&r!=a.A.EMPTY||((0,S.JH)(n),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(n)}})),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function({tile:t},e,n){const i=t.getState();i==a.A.IDLE&&t.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(S.JH),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,p.Yg)(this.canvas_.getContext("2d")),m.push(this.canvas_),this.canvas_=null),super.release()}}var M=A},24498:function(t,e,n){"use strict";n.d(e,{a$:function(){return a},b8:function(){return r},cq:function(){return s},dv:function(){return o}});var i=n(61597);function r(t){if(void 0!==t)return 0}function o(t){if(void 0!==t)return t}function a(t){const e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?(t=Math.floor(t/e+.5)*e,t):void 0}}function s(t){const e=void 0===t?(0,i.eh)(5):t;return function(t,n){return n||void 0===t?t:Math.abs(t)<=e?0:t}}},6782:function(t,e,n){"use strict";function i(t){return t[0]>0&&t[1]>0}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,{Ie:function(){return i},hs:function(){return r},xq:function(){return o}})},16444:function(t,e,n){"use strict";var i=n(34120),r=n(46800);class o extends i.A{constructor(t){super(),this.projection=(0,r.Jt)(t.projection),this.attributions_=a(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise((function(t,n){e.viewResolver=t,e.viewRejector=n}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=a(t),this.changed()}setState(t){this.state_=t,this.changed()}}function a(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e.A=o},10592:function(t,e,n){"use strict";n.d(e,{A:function(){return I}});var i=n(50071),r=n(32135),o=n(1685),a=n(6837),s=n(28450),l=n(35341),u=n(70915),c=n(4087),h=n(43530);class d{constructor(t){this.rbush_=new l(t),this.items_={}}insert(t,e){const n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[(0,c.v6)(e)]=n}load(t,e){const n=new Array(e.length);for(let i=0,r=e.length;i<r;i++){const r=t[i],o=e[i],a={minX:r[0],minY:r[1],maxX:r[2],maxY:r[3],value:o};n[i]=a,this.items_[(0,c.v6)(o)]=a}this.rbush_.load(n)}remove(t){const e=(0,c.v6)(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)}update(t,e){const n=this.items_[(0,c.v6)(e)],i=[n.minX,n.minY,n.maxX,n.maxY];(0,u.aI)(i,t)||(this.remove(e),this.insert(t,e))}getAll(){const t=this.rbush_.all();return t.map((function(t){return t.value}))}getInExtent(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]},n=this.rbush_.search(e);return n.map((function(t){return t.value}))}forEach(t){return this.forEach_(this.getAll(),t)}forEachInExtent(t,e){return this.forEach_(this.getInExtent(t),e)}forEach_(t,e){let n;for(let i=0,r=t.length;i<r;i++)if(n=e(t[i]),n)return n;return n}isEmpty(){return(0,h.p)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){const e=this.rbush_.toJSON();return(0,u.N)(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){this.rbush_.load(t.rbush_.all());for(const e in t.items_)this.items_[e]=t.items_[e]}}var f=d,p=n(24778),g=n(16444),m={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"},v=n(74238);n(46800);function y(t,e){return[[-1/0,-1/0,1/0,1/0]]}var _=n(90588),x=n(66514),b=n(9438);let w=!1;function S(t,e,n,i,r,o,a){const s=new XMLHttpRequest;s.open("GET","function"===typeof t?t(n,i,r):t,!0),"arraybuffer"==e.getType()&&(s.responseType="arraybuffer"),s.withCredentials=w,s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){const t=e.getType();try{let i;"text"==t||"json"==t?i=s.responseText:"xml"==t?i=s.responseXML||s.responseText:"arraybuffer"==t&&(i=s.response),i?o(e.readFeatures(i,{extent:n,featureProjection:r}),e.readProjection(i)):a()}catch{a()}}else a()},s.onerror=a,s.send()}function A(t,e){return function(n,i,r,o,a){const s=this;S(t,e,n,i,r,(function(t,e){s.addFeatures(t),void 0!==o&&o(t)}),a||v.tV)}}class M extends o.Ay{constructor(t,e,n){super(t),this.feature=e,this.features=n}}class C extends g.A{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=v.tV,this.format_=t.format,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&((0,_.v)(this.format_,"`format` must be set when `url` is set"),this.loader_=A(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:y;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let n,r;this.featuresRtree_=e?new f:null,this.loadedExtentsRtree_=new f,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?r=t.features:t.features&&(n=t.features,r=n.getArray()),e||void 0!==n||(n=new i.A(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=(0,c.v6)(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const n=t.getGeometry();if(n){const e=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new M(m.ADDFEATURE,t))}setupChangeEvents_(t,e){e instanceof p.Ay||(this.featureChangeKeys_[t]=[(0,b.KT)(e,a.A.CHANGE,this.handleFeatureChange_,this),(0,b.KT)(e,s.A.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let n=!0;if(void 0!==e.getId()){const t=String(e.getId());if(t in this.idIndex_)if(e instanceof p.Ay){const i=this.idIndex_[t];i instanceof p.Ay?Array.isArray(i)?i.push(e):this.idIndex_[t]=[i,e]:n=!1}else n=!1;else this.idIndex_[t]=e}return n&&((0,_.v)(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),n}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],n=[],i=[];for(let r=0,o=t.length;r<o;r++){const e=t[r],i=(0,c.v6)(e);this.addToIndex_(i,e)&&n.push(e)}for(let r=0,o=n.length;r<o;r++){const t=n[r],o=(0,c.v6)(t);this.setupChangeEvents_(o,t);const a=t.getGeometry();if(a){const n=a.getExtent();e.push(n),i.push(t)}else this.nullGeometryFeatures_[o]=t}if(this.featuresRtree_&&this.featuresRtree_.load(e,i),this.hasListener(m.ADDFEATURE))for(let r=0,o=n.length;r<o;r++)this.dispatchEvent(new M(m.ADDFEATURE,n[r]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(m.ADDFEATURE,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(m.REMOVEFEATURE,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(r.A.ADD,(t=>{e||(e=!0,this.addFeature(t.element),e=!1)})),t.addEventListener(r.A.REMOVE,(t=>{e||(e=!0,this.removeFeature(t.element),e=!1)})),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_){const e=this.featureChangeKeys_[t];e.forEach(b.JH)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const t=t=>{this.removeFeatureInternal(t)};this.featuresRtree_.forEach(t);for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new M(m.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){const i=n.getGeometry();if(i instanceof p.Ay||i.intersectsCoordinate(t))return e(n)}))}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,(function(n){const i=n.getGeometry();if(i instanceof p.Ay||i.intersectsExtent(t)){const t=e(n);if(t)return t}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,h.p)(this.nullGeometryFeatures_)||(0,x.X$)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){const n=e&&e.canWrapX()&&this.getWrapX();if(!n)return this.featuresRtree_.getInExtent(t);const i=(0,u.QJ)(t,e);return[].concat(...i.map((t=>this.featuresRtree_.getInExtent(t))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const n=t[0],i=t[1];let r=null;const o=[NaN,NaN];let a=1/0;const s=[-1/0,-1/0,1/0,1/0];return e=e||v.rT,this.featuresRtree_.forEachInExtent(s,(function(t){if(e(t)){const e=t.getGeometry(),l=a;if(a=e instanceof p.Ay?0:e.closestPointXY(n,i,o,a),a<l){r=t;const e=Math.sqrt(a);s[0]=n-e,s[1]=i-e,s[2]=n+e,s[3]=i+e}}})),r}getExtent(t){return this.featuresRtree_.getExtent(t)}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,n=(0,c.v6)(e),i=e.getGeometry();if(i){const t=i.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(t,e)):this.featuresRtree_&&this.featuresRtree_.update(t,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);const r=e.getId();if(void 0!==r){const t=r.toString();this.idIndex_[t]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[t]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new M(m.CHANGEFEATURE,e))}hasFeature(t){const e=t.getId();return void 0!==e?e in this.idIndex_:(0,c.v6)(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,h.p)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,n){const i=this.loadedExtentsRtree_,r=this.strategy_(t,e,n);for(let o=0,a=r.length;o<a;++o){const t=r[o],a=i.forEachInExtent(t,(function(e){return(0,u.ms)(e.extent,t)}));a||(++this.loadingExtentsCount_,this.dispatchEvent(new M(m.FEATURESLOADSTART)),this.loader_.call(this,t,e,n,(t=>{--this.loadingExtentsCount_,this.dispatchEvent(new M(m.FEATURESLOADEND,void 0,t))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new M(m.FEATURESLOADERROR))})),i.insert(t,{extent:t.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let n;e.forEachInExtent(t,(function(e){if((0,u.aI)(e.extent,t))return n=e,!0})),n&&e.remove(n)}removeFeatures(t){const e=[];for(let n=0,i=t.length;n<i;++n){const i=t[n],r=this.removeFeatureInternal(i);r&&e.push(r)}e.length>0&&this.changed()}removeFeature(t){if(!t)return;const e=this.removeFeatureInternal(t);e&&this.changed()}removeFeatureInternal(t){const e=(0,c.v6)(t);if(!(e in this.uidIndex_))return;e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);const n=this.featureChangeKeys_[e];n?.forEach(b.JH),delete this.featureChangeKeys_[e];const i=t.getId();if(void 0!==i){const e=i.toString(),n=this.idIndex_[e];n===t?delete this.idIndex_[e]:Array.isArray(n)&&(n.splice(n.indexOf(t),1),1===n.length&&(this.idIndex_[e]=n[0]))}return delete this.uidIndex_[e],this.hasListener(m.REMOVEFEATURE)&&this.dispatchEvent(new M(m.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let e=!1;for(const n in this.idIndex_){const i=this.idIndex_[n];if(t instanceof p.Ay&&Array.isArray(i)&&i.includes(t))i.splice(i.indexOf(t),1);else if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}}return e}setLoader(t){this.loader_=t}setUrl(t){(0,_.v)(this.format_,"`format` must be set when `url` is set"),this.url_=t,this.setLoader(A(t,this.format_))}}var I=C},78892:function(t,e,n){"use strict";n.d(e,{A:function(){return tt}});var i=n(6837),r=n(40190),o=n(75727),a=n(90588);class s{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){while(this.canExpireCache())this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;while(e)t(e.value_,e.key_,this),e=e.newer}get(t,e){const n=this.entries_[t];return(0,a.v)(void 0!==n,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(t){const e=this.entries_[t];return(0,a.v)(void 0!==e,"Tried to get a value for a key that does not exist in the cache"),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){return this.entries_[t]?.value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){(0,a.v)(!(t in this.entries_),"Tried to set a value for a key that is used already");const n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_}setSize(t){this.highWaterMark=t}}var l=s;function u(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function c(t,e,n){return t+"/"+e+"/"+n}function h(t){return c(t[0],t[1],t[2])}function d(t){return t.split("/").map(Number)}function f(t){return(t[1]<<t[0])+t[2]}function p(t,e){const n=t[0],i=t[1],r=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;const o=e.getFullTileRange(n);return!o||o.containsXY(i,r)}class g extends l{clear(){while(this.getCount()>0)this.pop().release();super.clear()}expireCache(t){while(this.canExpireCache()){const e=this.peekLast();if(e.getKey()in t)break;this.pop().release()}}pruneExceptNewestZ(){if(0===this.getCount())return;const t=this.peekFirstKey(),e=d(t),n=e[0];this.forEach((t=>{t.tileCoord[0]!==n&&(this.remove(h(t.tileCoord)),t.release())}))}}var m=g,v=n(11078),y={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},_=n(1685),x=n(16444),b=n(4087),w=n(46800),S=n(91110),A=n(57115),M=n(61597),C=n(70915),I=n(4350),T=n(66514),E=n(6782);const D=[0,0,0],P=5;class L{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,a.v)((0,T.WC)(this.resolutions_,((t,e)=>e-t),!0),"`resolutions` must be sorted in descending order"),!t.origins)for(let i=0,r=this.resolutions_.length-1;i<r;++i)if(e){if(this.resolutions_[i]/this.resolutions_[i+1]!==e){e=void 0;break}}else e=this.resolutions_[i]/this.resolutions_[i+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,a.v)(this.origins_.length==this.resolutions_.length,"Number of `origins` and `resolutions` must be equal"));const n=t.extent;void 0===n||this.origin_||this.origins_||(this.origin_=(0,C.Py)(n)),(0,a.v)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,"Either `origin` or `origins` must be configured, never both"),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,a.v)(this.tileSizes_.length==this.resolutions_.length,"Number of `tileSizes` and `resolutions` must be equal")),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:A.R,(0,a.v)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,"Either `tileSize` or `tileSizes` must be configured, never both"),this.extent_=void 0!==n?n:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map(((t,e)=>{const i=new S.A(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(n){const t=this.getTileRangeForExtentAndZ(n,e);i.minX=Math.max(t.minX,i.minX),i.maxX=Math.min(t.maxX,i.maxX),i.minY=Math.max(t.minY,i.minY),i.maxY=Math.min(t.maxY,i.maxY)}return i})):n&&this.calculateTileRanges_(n)}forEachTileCoord(t,e,n){const i=this.getTileRangeForExtentAndZ(t,e);for(let r=i.minX,o=i.maxX;r<=o;++r)for(let t=i.minY,a=i.maxY;t<=a;++t)n([e,r,t])}forEachTileCoordParentTileRange(t,e,n,i){let r,o,a,s=null,l=t[0]-1;2===this.zoomFactor_?(o=t[1],a=t[2]):s=this.getTileCoordExtent(t,i);while(l>=this.minZoom){if(void 0!==o&&void 0!==a?(o=Math.floor(o/2),a=Math.floor(a/2),r=(0,S.N)(o,o,a,a,n)):r=this.getTileRangeForExtentAndZ(s,l,n),e(l,r))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){const n=2*t[1],i=2*t[2];return(0,S.N)(n,n+1,i,i+1,e)}const i=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(i,t[0]+1,e)}return null}getTileRangeForTileCoordAndZ(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;const i=t[0],r=t[1],o=t[2];if(e===i)return(0,S.N)(r,o,r,o,n);if(this.zoomFactor_){const t=Math.pow(this.zoomFactor_,e-i),a=Math.floor(r*t),s=Math.floor(o*t);if(e<i)return(0,S.N)(a,a,s,s,n);const l=Math.floor(t*(r+1))-1,u=Math.floor(t*(o+1))-1;return(0,S.N)(a,l,s,u,n)}const a=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e,n)}getTileRangeForExtentAndZ(t,e,n){this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,D);const i=D[1],r=D[2];this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,D);const o=D[1],a=D[2];return(0,S.N)(i,o,r,a,n)}getTileCoordCenter(t){const e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=(0,E.xq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*n,e[1]-(t[2]+.5)*i[1]*n]}getTileCoordExtent(t,e){const n=this.getOrigin(t[0]),i=this.getResolution(t[0]),r=(0,E.xq)(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*r[0]*i,a=n[1]-(t[2]+1)*r[1]*i,s=o+r[0]*i,l=a+r[1]*i;return(0,C.N)(o,a,s,l,e)}getTileCoordForCoordAndResolution(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)}getTileCoordForXYAndResolution_(t,e,n,i,r){const o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),l=(0,E.xq)(this.getTileSize(o),this.tmpSize_);let c=a*(t-s[0])/n/l[0],h=a*(s[1]-e)/n/l[1];return i?(c=(0,M.mk)(c,P)-1,h=(0,M.mk)(h,P)-1):(c=(0,M.RI)(c,P),h=(0,M.RI)(h,P)),u(o,c,h,r)}getTileCoordForXYAndZ_(t,e,n,i,r){const o=this.getOrigin(n),a=this.getResolution(n),s=(0,E.xq)(this.getTileSize(n),this.tmpSize_);let l=(t-o[0])/a/s[0],c=(o[1]-e)/a/s[1];return i?(l=(0,M.mk)(l,P)-1,c=(0,M.mk)(c,P)-1):(l=(0,M.RI)(l,P),c=(0,M.RI)(c,P)),u(n,l,c,r)}getTileCoordForCoordAndZ(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)}getTileCoordResolution(t){return this.resolutions_[t[0]]}getTileSize(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]}getFullTileRange(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null}getZForResolution(t,e){const n=(0,T.FT)(this.resolutions_,t,e||0);return(0,M.qE)(n,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return(0,I.sj)(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){const e=this.resolutions_.length,n=new Array(e);for(let i=this.minZoom;i<e;++i)n[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=n}}var R=L;function O(t){let e=t.getDefaultTileGrid();return e||(e=B(t),t.setDefaultTileGrid(e)),e}function k(t,e,n){const i=e[0],r=t.getTileCoordCenter(e),o=G(n);if(!(0,C.Ym)(o,r)){const e=(0,C.RG)(o),n=Math.ceil((o[0]-r[0])/e);return r[0]+=e*n,t.getTileCoordForCoordAndZ(r,i)}return e}function N(t,e,n,i){i=void 0!==i?i:"top-left";const r=z(t,e,n);return new R({extent:t,origin:(0,C.qF)(t,i),resolutions:r,tileSize:n})}function F(t){const e=t||{},n=e.extent||(0,w.Jt)("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:z(n,e.maxZoom,e.tileSize,e.maxResolution)};return new R(i)}function z(t,e,n,i){e=void 0!==e?e:A.L,n=(0,E.xq)(void 0!==n?n:A.R);const r=(0,C.Oq)(t),o=(0,C.RG)(t);i=i>0?i:Math.max(o/n[0],r/n[1]);const a=e+1,s=new Array(a);for(let l=0;l<a;++l)s[l]=i/Math.pow(2,l);return s}function B(t,e,n,i){const r=G(t);return N(r,e,n,i)}function G(t){t=(0,w.Jt)(t);let e=t.getExtent();if(!e){const n=180*w.Ig.degrees/t.getMetersPerUnit();e=(0,C.N)(-n,-n,n,n)}return e}class V extends x.A{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate}),this.on,this.once,this.un,this.opaque_=void 0!==t.opaque&&t.opaque,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;const e=[256,256];this.tileGrid&&(0,E.xq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),e),this.tileCache=new m(t.cacheSize||0),this.tmpSize=[0,0],this.key_=t.key||"",this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(t,e){const n=this.getTileCacheForProjection(t);n&&n.expireCache(e)}forEachLoadedTile(t,e,n,i){const r=this.getTileCacheForProjection(t);if(!r)return!1;let o,a,s,l=!0;for(let u=n.minX;u<=n.maxX;++u)for(let t=n.minY;t<=n.maxY;++t)a=c(e,u,t),s=!1,r.containsKey(a)&&(o=r.get(a),s=o.getState()===v.A.LOADED,s&&(s=!1!==i(o))),s||(l=!1);return l}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getOpaque(t){return this.opaque_}getResolutions(t){const e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,n,i,r){return(0,b.b0)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:O(t)}getTileCacheForProjection(t){const e=this.getProjection();return(0,a.v)(null===e||(0,w.tI)(e,t),"A VectorTile source can only be rendered if it has a projection compatible with the view projection."),this.tileCache}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,n){const i=this.getTileGridForProjection(n),r=this.getTilePixelRatio(e),o=(0,E.xq)(i.getTileSize(t),this.tmpSize);return 1==r?o:(0,E.hs)(o,r,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){e=void 0!==e?e:this.getProjection();const n=this.getTileGridForProjection(e);return this.getWrapX()&&e.isGlobal()&&(t=k(n,t,e)),p(t,n)?t:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(t,e){const n=this.getTileCacheForProjection(e);t>n.highWaterMark&&(n.highWaterMark=t)}useTile(t,e,n,i){}}class W extends _.Ay{constructor(t,e){super(t),this.tile=e}}var j=V;function H(t,e){const n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){if(a)return t.replace(n,a[0].toString()).replace(i,a[1].toString()).replace(r,a[2].toString()).replace(o,(function(){const t=a[0],n=e.getFullTileRange(t);if(!n)throw new Error("The {-y} placeholder requires a tile grid with extent");const i=n.getHeight()-a[2]-1;return i.toString()}))}}function Y(t,e){const n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=H(t[r],e);return U(i)}function U(t){return 1===t.length?t[0]:function(e,n,i){if(!e)return;const r=f(e),o=(0,M.xP)(r,t.length);return t[o](e,n,i)}}function X(t){const e=[];let n=/\{([a-z])-([a-z])\}/.exec(t);if(n){const i=n[1].charCodeAt(0),r=n[2].charCodeAt(0);let o;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t),n){const i=parseInt(n[2],10);for(let r=parseInt(n[1],10);r<=i;r++)e.push(t.replace(n[0],r.toString()));return e}return e.push(t),e}class Z extends j{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===Z.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){const e=t.target,n=(0,b.v6)(e),i=e.getState();let r;i==v.A.LOADING?(this.tileLoadingKeys_[n]=!0,r=y.TILELOADSTART):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],r=i==v.A.ERROR?y.TILELOADERROR:i==v.A.LOADED?y.TILELOADEND:void 0),void 0!=r&&this.dispatchEvent(new W(r,e))}setTileLoadFunction(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof e?this.setKey(e):this.changed()}setUrl(t){const e=X(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Y(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,n){}useTile(t,e,n){const i=c(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)}}var q=Z;class $ extends q{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:K,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:void 0===t.interpolate||t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=void 0!==t.tileClass?t.tileClass:r.A,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1}expireCache(t,e){const n=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==n?e:{});for(const i in this.tileCacheForProjection){const t=this.tileCacheForProjection[i];t.expireCache(t==n?e:{})}}getGutterForProjection(t){return this.getProjection()&&t&&!(0,w.tI)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=":disable-interpolation"),t}getOpaque(t){return!(this.getProjection()&&t&&!(0,w.tI)(this.getProjection(),t))&&super.getOpaque(t)}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||(0,w.tI)(e,t)))return this.tileGrid;const n=(0,b.v6)(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=O(t)),this.tileGridForProjection[n]}getTileCacheForProjection(t){const e=this.getProjection();if(!e||(0,w.tI)(e,t))return this.tileCache;const n=(0,b.v6)(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new m(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]}createTile_(t,e,n,r,o,a){const s=[t,e,n],l=this.getTileCoordForTileUrlFunction(s,o),u=l?this.tileUrlFunction(l,r,o):void 0,c=new this.tileClass(s,void 0!==u?v.A.IDLE:v.A.EMPTY,void 0!==u?u:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return c.key=a,c.addEventListener(i.A.CHANGE,this.handleTileChange.bind(this)),c}getTile(t,e,n,i,r){const a=this.getProjection();if(!a||!r||(0,w.tI)(a,r))return this.getTileInternal(t,e,n,i,a||r);const s=this.getTileCacheForProjection(r),l=[t,e,n];let u;const c=h(l);s.containsKey(c)&&(u=s.get(c));const d=this.getKey();if(u&&u.key==d)return u;const f=this.getTileGridForProjection(a),p=this.getTileGridForProjection(r),g=this.getTileCoordForTileUrlFunction(l,r),m=new o.A(a,f,r,p,l,g,this.getTilePixelRatio(i),this.getGutter(),((t,e,n,i)=>this.getTileInternal(t,e,n,i,a)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return m.key=d,u?(m.interimTile=u,m.refreshInterimChain(),s.replace(c,m)):s.set(c,m),m}getTileInternal(t,e,n,i,r){let o=null;const a=c(t,e,n),s=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=s){const l=o;o=this.createTile_(t,e,n,i,r,s),l.getState()==v.A.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,n,i,r,s),this.tileCache.set(a,o);return o}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}setTileGridForProjection(t,e){const n=(0,w.Jt)(t);if(n){const t=(0,b.v6)(n);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}}function K(t,e){t.getImage().src=e}var J=$;class Q extends J{constructor(t){t=t||{};const e=void 0!==t.projection?t.projection:"EPSG:3857",n=void 0!==t.tileGrid?t.tileGrid:F({extent:G(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}var tt=Q},27733:function(t,e,n){"use strict";var i=n(86936);class r extends i.A{constructor(t){t=t||{radius:5},super({points:1/0,fill:t.fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new r({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}setRadius(t){this.radius_=t,this.render()}}e.A=r},13628:function(t,e,n){"use strict";var i=n(6141),r=n(97907);class o{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){const t=this.getColor();return new o({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&"object"===typeof t&&"src"in t){const e=(0,r.J)(null,t.src,"anonymous",void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then((()=>{this.patternImage_=null})),e.getImageState()===i.A.IDLE&&e.load(),e.getImageState()===i.A.LOADING&&(this.patternImage_=e)}this.color_=t}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}e.A=o},49700:function(t,e,n){"use strict";var i=n(6837),r=n(6141),o=n(10940),a=n(85745),s=n(90588),l=n(97907),u=n(4087);function c(t,e,n,i){return void 0!==n&&void 0!==i?[n/t,i/e]:void 0!==n?n/t:void 0!==i?i/e:1}class h extends o.A{constructor(t){t=t||{};const e=void 0!==t.opacity?t.opacity:1,n=void 0!==t.rotation?t.rotation:0,i=void 0!==t.scale?t.scale:1,o=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:n,scale:i,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:o,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null;const h=void 0!==t.img?t.img:null;let d,f=t.src;if((0,s.v)(!(void 0!==f&&h),"`image` and `src` cannot be provided at the same time"),void 0!==f&&0!==f.length||!h||(f=h.src||(0,u.v6)(h)),(0,s.v)(void 0!==f&&f.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,s.v)(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==t.src?d=r.A.IDLE:void 0!==h&&(d="complete"in h?h.complete?h.src?r.A.LOADED:r.A.IDLE:r.A.LOADING:r.A.LOADED),this.color_=void 0!==t.color?(0,a._j)(t.color):null,this.iconImage_=(0,l.J)(h,f,this.crossOrigin_,d,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,void 0!==t.width||void 0!==t.height){let e,n;if(t.size)[e,n]=t.size;else{const i=this.getImage(1);if(i.width&&i.height)e=i.width,n=i.height;else if(i instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const n=this.iconImage_.getSize();this.setScale(c(n[0],n[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(c(e,n,t.width,t.height))}}clone(){let t,e,n;return this.initialOptions_?(e=this.initialOptions_.width,n=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new h({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]-e[0]/n[0],t[1]+e[1]/n[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=n[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==r.A.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==r.A.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(i.A.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(i.A.CHANGE,t)}ready(){return this.iconImage_.ready()}}e.A=h},97907:function(t,e,n){"use strict";n.d(e,{J:function(){return d}});var i=n(79332),r=n(6837),o=n(6141),a=n(85745),s=n(68711),l=n(43938),u=n(82241);let c=null;class h extends i.A{constructor(t,e,n,i,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=n,this.canvas_={},this.color_=r,this.imageState_=void 0===i?o.A.IDLE:i,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===o.A.LOADED){c||(c=(0,s.Y)(1,1,void 0,{willReadFrequently:!0})),c.drawImage(this.image_,0,0);try{c.getImageData(0,0,1,1),this.tainted_=!1}catch(t){c=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(r.A.CHANGE)}handleImageError_(){this.imageState_=o.A.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=o.A.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],n=(0,s.Y)(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===o.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=o.A.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch(t){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,l.RA)(this.image_,this.src_).then((t=>{this.image_=t,this.handleImageLoad_()})).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==o.A.LOADED)return;const e=this.image_,n=document.createElement("canvas");n.width=Math.ceil(e.width*t),n.height=Math.ceil(e.height*t);const i=n.getContext("2d");i.scale(t,t),i.drawImage(e,0,0),i.globalCompositeOperation="multiply",i.fillStyle=(0,a.oJ)(this.color_),i.fillRect(0,0,n.width/t,n.height/t),i.globalCompositeOperation="destination-in",i.drawImage(e,0,0),this.canvas_[t]=n}ready(){return this.ready_||(this.ready_=new Promise((t=>{this.imageState_===o.A.LOADED||this.imageState_===o.A.ERROR?t():this.addEventListener(r.A.CHANGE,(function e(){this.imageState_!==o.A.LOADED&&this.imageState_!==o.A.ERROR||(this.removeEventListener(r.A.CHANGE,e),t())}))}))),this.ready_}}function d(t,e,n,i,r,o){let a=void 0===e?void 0:u.ue.get(e,n,r);return a||(a=new h(t,t&&"src"in t?t.src||void 0:e,n,i,r),u.ue.set(e,n,r,a,o)),o&&a&&!u.ue.getPattern(e,n,r)&&u.ue.set(e,n,r,a,o),a}},82241:function(t,e,n){"use strict";n.d(e,{ue:function(){return l}});var i=n(6141),r=n(85745),o=n(68711);class a{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const n=this.cache_[e];0!==(3&t++)||n.hasListener()||(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e,n){const i=s(t,e,n);return i in this.cache_?this.cache_[i]:null}getPattern(t,e,n){const i=s(t,e,n);return i in this.patternCache_?this.patternCache_[i]:null}set(t,e,n,r,a){const l=s(t,e,n),u=l in this.cache_;this.cache_[l]=r,a&&(r.getImageState()===i.A.IDLE&&r.load(),r.getImageState()===i.A.LOADING?r.ready().then((()=>{this.patternCache_[l]=(0,o.lr)().createPattern(r.getImage(1),"repeat")})):this.patternCache_[l]=(0,o.lr)().createPattern(r.getImage(1),"repeat")),u||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function s(t,e,n){const i=n?(0,r._j)(n):"null";return e+":"+t+":"+i}const l=new a},10940:function(t,e,n){"use strict";var i=n(4087),r=n(6782);class o{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,r.xq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new o({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,i.b0)()}getImage(t){return(0,i.b0)()}getHitDetectionImage(){return(0,i.b0)()}getPixelRatio(t){return 1}getImageState(){return(0,i.b0)()}getImageSize(){return(0,i.b0)()}getOrigin(){return(0,i.b0)()}getSize(){return(0,i.b0)()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,r.xq)(t)}listenImageChange(t){(0,i.b0)()}load(){(0,i.b0)()}unlistenImageChange(t){(0,i.b0)()}ready(){return Promise.resolve()}}e.A=o},86936:function(t,e,n){"use strict";var i=n(6141),r=n(10940),o=n(85745),a=n(77295),s=n(68711),l=n(38774);class u extends r.A{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode}),this.canvases_,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=t.radius,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?i.A.LOADING:i.A.LOADED,this.imageState_===i.A.LOADING&&this.ready().then((()=>this.imageState_=i.A.LOADED)),this.render()}clone(){const t=this.getScale(),e=new u({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),n=this.getScaleArray();return[t[0]/2-e[0]/n[0],t[1]/2+e[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){let e=this.canvases_[t];if(!e){const n=this.renderOptions_,i=(0,s.Y)(n.size*t,n.size*t);this.draw_(n,i,t),e=i.canvas,this.canvases_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let i=this.radius_,r=void 0===this.radius2_?i:this.radius2_;if(i<r){const t=i;i=r,r=t}const o=void 0===this.radius2_?this.points_:2*this.points_,a=2*Math.PI/o,s=r*Math.sin(a),l=Math.sqrt(r*r-s*s),u=i-l,c=Math.sqrt(s*s+u*u),h=c/s;if("miter"===t&&h<=n)return h*e;const d=e/2/h,f=e/2*(u/c),p=Math.sqrt((i+d)*(i+d)+f*f),g=p-i;if(void 0===this.radius2_||"bevel"===t)return 2*g;const m=i*Math.sin(a),v=Math.sqrt(i*i-m*m),y=r-v,_=Math.sqrt(m*m+y*y),x=_/m;if(x<=n){const t=x*e/2-r-i;return 2*Math.max(g,t)}return 2*g}createRenderOptions(){let t,e=l._m,n=l._K,i=0,r=null,o=0,s=0;this.stroke_&&(t=(0,a.F)(this.stroke_.getColor()??l.NT),s=this.stroke_.getWidth()??l.aq,r=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset()??0,n=this.stroke_.getLineJoin()??l._K,e=this.stroke_.getLineCap()??l._m,i=this.stroke_.getMiterLimit()??l.eL);const u=this.calculateLineJoinSize_(n,s,i),c=Math.max(this.radius_,this.radius2_||0),h=Math.ceil(2*c+u);return{strokeStyle:t,strokeWidth:s,size:h,lineCap:e,lineDash:r,lineDashOffset:o,lineJoin:n,miterLimit:i}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;this.canvases_={},this.hitDetectionCanvas_=null,this.size_=[t,t]}draw_(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=l.qY),e.fillStyle=(0,a.F)(t),e.fill()}t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){let e;if(this.fill_){let n=this.fill_.getColor(),i=0;"string"===typeof n&&(n=(0,o._j)(n)),null===n?i=1:Array.isArray(n)&&(i=4===n.length?n[3]:1),0===i&&(e=(0,s.Y)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_;const n=this.radius_;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{const i=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);const r=this.angle_-Math.PI/2,o=2*Math.PI/e;for(let a=0;a<e;a++){const e=r+a*o,s=a%2===0?n:i;t.lineTo(s*Math.cos(e),s*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=l.qY,e.fill(),t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}e.A=u},953:function(t,e){"use strict";class n{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}clone(){const t=this.getColor();return new n({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setWidth(t){this.width_=t}}e.A=n},29276:function(t,e,n){"use strict";n.d(e,{d1:function(){return c},mC:function(){return l}});var i=n(27733),r=n(13628),o=n(953),a=n(90588);class s{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=h,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"===typeof t&&(t=t.clone()),new s({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){"function"===typeof t?this.geometryFunction_=t:"string"===typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=h,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function l(t){let e;if("function"===typeof t)e=t;else{let n;if(Array.isArray(t))n=t;else{(0,a.v)("function"===typeof t.getZIndex,"Expected an `Style` or an array of `Style`");const e=t;n=[e]}e=function(){return n}}return e}let u=null;function c(t,e){if(!u){const t=new r.A({color:"rgba(255,255,255,0.4)"}),e=new o.A({color:"#3399CC",width:1.25});u=[new s({image:new i.A({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return u}function h(t){return t.getGeometry()}e.Ay=s},57115:function(t,e,n){"use strict";n.d(e,{L:function(){return i},R:function(){return r}});const i=42,r=256},9703:function(t,e,n){"use strict";n.d(e,{Bb:function(){return s},T9:function(){return u},Zz:function(){return l},dI:function(){return d},k3:function(){return a},lw:function(){return o},vt:function(){return r}});var i=n(90588);new Array(6);function r(){return[1,0,0,1,0,0]}function o(t,e){const n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],c=e[2],h=e[3],d=e[4],f=e[5];return t[0]=n*l+r*u,t[1]=i*l+o*u,t[2]=n*c+r*h,t[3]=i*c+o*h,t[4]=n*d+r*f+a,t[5]=i*d+o*f+s,t}function a(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 s(t,e){const n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function l(t,e,n,i,r,o,a,s){const l=Math.sin(o),u=Math.cos(o);return t[0]=i*u,t[1]=r*l,t[2]=-i*l,t[3]=r*u,t[4]=a*i*u-s*i*l+e,t[5]=a*r*l+s*r*u+n,t}function u(t,e){const n=c(e);(0,i.v)(0!==n,"Transformation matrix cannot be inverted");const r=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];return t[0]=s/n,t[1]=-o/n,t[2]=-a/n,t[3]=r/n,t[4]=(a*u-s*l)/n,t[5]=-(r*u-o*l)/n,t}function c(t){return t[0]*t[3]-t[1]*t[2]}const h=[1e6,1e6,1e6,1e6,2,2];function d(t){const e="matrix("+t.map(((t,e)=>Math.round(t*h[e])/h[e])).join(", ")+")";return e}},4087:function(t,e,n){"use strict";function i(){throw new Error("Unimplemented abstract method.")}n.d(e,{b0:function(){return i},v6:function(){return o}});let r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}}}]);
|
8
|
+
//# sourceMappingURL=chunk-vendors.901bdf0b.js.map
|