@deep-eye/core 0.9.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/README.md +113 -174
  3. package/dist/components/chat/ChatBot.vue.d.ts +48 -17
  4. package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
  5. package/dist/components/chat/attachmentController.d.ts +25 -0
  6. package/dist/components/chat/attachmentController.d.ts.map +1 -0
  7. package/dist/components/chat/attachments.d.ts +12 -0
  8. package/dist/components/chat/attachments.d.ts.map +1 -0
  9. package/dist/components/chat/chatContext.d.ts +14 -0
  10. package/dist/components/chat/chatContext.d.ts.map +1 -0
  11. package/dist/components/chat/chatErrors.d.ts +16 -0
  12. package/dist/components/chat/chatErrors.d.ts.map +1 -0
  13. package/dist/components/chat/chatQueue.d.ts +6 -0
  14. package/dist/components/chat/chatQueue.d.ts.map +1 -0
  15. package/dist/components/chat/components/ArtifactPreview.vue.d.ts.map +1 -1
  16. package/dist/components/chat/components/ChatActionbar.vue.d.ts +3 -3
  17. package/dist/components/chat/components/ChatActionbar.vue.d.ts.map +1 -1
  18. package/dist/components/chat/components/ChatAttachments.vue.d.ts +12 -0
  19. package/dist/components/chat/components/ChatAttachments.vue.d.ts.map +1 -0
  20. package/dist/components/chat/components/ChatFilePreview.vue.d.ts +45 -0
  21. package/dist/components/chat/components/ChatFilePreview.vue.d.ts.map +1 -0
  22. package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts +24 -0
  23. package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts.map +1 -0
  24. package/dist/components/chat/components/ChatImageLightbox.vue.d.ts +16 -0
  25. package/dist/components/chat/components/ChatImageLightbox.vue.d.ts.map +1 -0
  26. package/dist/components/chat/components/ChatMediaPreview.vue.d.ts +9 -0
  27. package/dist/components/chat/components/ChatMediaPreview.vue.d.ts.map +1 -0
  28. package/dist/components/chat/components/ChatMessage.vue.d.ts +43 -2
  29. package/dist/components/chat/components/ChatMessage.vue.d.ts.map +1 -1
  30. package/dist/components/chat/components/ChatOfficePreview.vue.d.ts +9 -0
  31. package/dist/components/chat/components/ChatOfficePreview.vue.d.ts.map +1 -0
  32. package/dist/components/chat/components/ChatProvider.vue.d.ts +73 -0
  33. package/dist/components/chat/components/ChatProvider.vue.d.ts.map +1 -0
  34. package/dist/components/chat/components/ChatQueue.vue.d.ts +16 -0
  35. package/dist/components/chat/components/ChatQueue.vue.d.ts.map +1 -0
  36. package/dist/components/chat/components/ChatReasoning.vue.d.ts +21 -0
  37. package/dist/components/chat/components/ChatReasoning.vue.d.ts.map +1 -0
  38. package/dist/components/chat/components/ChatSender.vue.d.ts +34 -17
  39. package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
  40. package/dist/components/chat/components/ChatSidebarResizeHandle.vue.d.ts +13 -0
  41. package/dist/components/chat/components/ChatSidebarResizeHandle.vue.d.ts.map +1 -0
  42. package/dist/components/chat/components/ChatToolGroup.vue.d.ts +28 -0
  43. package/dist/components/chat/components/ChatToolGroup.vue.d.ts.map +1 -0
  44. package/dist/components/chat/components/ConversationList.vue.d.ts +129 -0
  45. package/dist/components/chat/components/ConversationList.vue.d.ts.map +1 -0
  46. package/dist/components/chat/components/InputContentParts.vue.d.ts +8 -0
  47. package/dist/components/chat/components/InputContentParts.vue.d.ts.map +1 -0
  48. package/dist/components/chat/components/MessageBubble.vue.d.ts +43 -2
  49. package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
  50. package/dist/components/chat/components/TextPartRenderer.vue.d.ts.map +1 -1
  51. package/dist/components/chat/components/ToolCallPart.vue.d.ts +12 -3
  52. package/dist/components/chat/components/ToolCallPart.vue.d.ts.map +1 -1
  53. package/dist/components/chat/components/index.d.ts +9 -0
  54. package/dist/components/chat/components/index.d.ts.map +1 -1
  55. package/dist/components/chat/composables/index.d.ts +0 -1
  56. package/dist/components/chat/composables/index.d.ts.map +1 -1
  57. package/dist/components/chat/composables/useChatVoice.d.ts +45 -0
  58. package/dist/components/chat/composables/useChatVoice.d.ts.map +1 -0
  59. package/dist/components/chat/composables/useConversation.d.ts +1 -5
  60. package/dist/components/chat/composables/useConversation.d.ts.map +1 -1
  61. package/dist/components/chat/composables/useMeasuredHeight.d.ts +11 -0
  62. package/dist/components/chat/composables/useMeasuredHeight.d.ts.map +1 -0
  63. package/dist/components/chat/composables/useStreamSmoothing.d.ts +13 -0
  64. package/dist/components/chat/composables/useStreamSmoothing.d.ts.map +1 -0
  65. package/dist/components/chat/index.d.ts +12 -4
  66. package/dist/components/chat/index.d.ts.map +1 -1
  67. package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
  68. package/dist/components/chat/mdoc/MediaImageStack.vue.d.ts.map +1 -1
  69. package/dist/components/chat/previewRenderers.d.ts +6 -0
  70. package/dist/components/chat/previewRenderers.d.ts.map +1 -0
  71. package/dist/components/chat/qiniuUpload.d.ts +10 -0
  72. package/dist/components/chat/qiniuUpload.d.ts.map +1 -0
  73. package/dist/components/chat/responseStream.d.ts +17 -0
  74. package/dist/components/chat/responseStream.d.ts.map +1 -0
  75. package/dist/components/chat/toolLabels.d.ts +4 -0
  76. package/dist/components/chat/toolLabels.d.ts.map +1 -0
  77. package/dist/components/chat/toolStatus.d.ts +16 -0
  78. package/dist/components/chat/toolStatus.d.ts.map +1 -0
  79. package/dist/components/chat/types.d.ts +457 -144
  80. package/dist/components/chat/types.d.ts.map +1 -1
  81. package/dist/components/visualization/types.d.ts +8 -7
  82. package/dist/components/visualization/types.d.ts.map +1 -1
  83. package/dist/components/visualization/utils.d.ts +4 -2
  84. package/dist/components/visualization/utils.d.ts.map +1 -1
  85. package/dist/composables/useMindMapTheme.d.ts +4 -7
  86. package/dist/composables/useMindMapTheme.d.ts.map +1 -1
  87. package/dist/errors-CHzikrqu.js +70 -0
  88. package/dist/errors-upLl4kf2.cjs +1 -0
  89. package/dist/index-B4hgICk-.cjs +198 -0
  90. package/dist/index-BJdNN1GV.cjs +33 -0
  91. package/dist/index-Bj9h-xEr.cjs +112 -0
  92. package/dist/index-BufnUXnQ.js +5071 -0
  93. package/dist/index-CnxZBHPD.js +42825 -0
  94. package/dist/index-DF8KmkKX.js +38392 -0
  95. package/dist/index-DPhuLMkO.cjs +1 -0
  96. package/dist/index-Dq4cniDm.cjs +5 -0
  97. package/dist/index-cW_BnxHR.js +1722 -0
  98. package/dist/index-iCVvFIlX.js +28 -0
  99. package/dist/index.cjs +275 -134
  100. package/dist/index.js +20496 -10365
  101. package/dist/media-community-skin-Djo8L1G9.js +302 -0
  102. package/dist/media-community-skin-YI6NjsJg.cjs +1 -0
  103. package/dist/media-core-CkW37AYl.js +3827 -0
  104. package/dist/media-core-Rxz2MNwG.cjs +1 -0
  105. package/dist/media-outlet-CZTh6XmJ.cjs +1 -0
  106. package/dist/media-outlet-D2rcuhYN.js +2 -0
  107. package/dist/media-player-BZrIM0O_.js +387 -0
  108. package/dist/media-player-D_USOhtK.cjs +1 -0
  109. package/dist/media-ui-DfPbRfFS.js +2832 -0
  110. package/dist/media-ui-zZVnK1ts.cjs +1 -0
  111. package/dist/prod-Ba2x-T01.cjs +4 -0
  112. package/dist/prod-DBMM0zDd.js +992 -0
  113. package/dist/provider-B7wAEcCR.js +163 -0
  114. package/dist/provider-BPphQwpc.cjs +1 -0
  115. package/dist/provider-BSeBwvzM.cjs +1 -0
  116. package/dist/provider-DgSZc2dM.js +162 -0
  117. package/dist/provider-EKFFiZS1.js +27 -0
  118. package/dist/provider-O8r0RFmF.cjs +1 -0
  119. package/dist/provider-WrRdjcjY.js +483 -0
  120. package/dist/provider-sqICX3H9.cjs +1 -0
  121. package/dist/srt-parser-BECMkbXb.cjs +2 -0
  122. package/dist/srt-parser-BR28Llpk.js +27 -0
  123. package/dist/ssa-parser-BJTK0kd-.js +209 -0
  124. package/dist/ssa-parser-CuKkTpK_.cjs +4 -0
  125. package/dist/style.css +1 -1
  126. package/package.json +7 -2
  127. package/dist/components/chat/AiConversation.vue.d.ts +0 -28
  128. package/dist/components/chat/AiConversation.vue.d.ts.map +0 -1
  129. package/dist/components/chat/components/AssistantTrace.vue.d.ts +0 -27
  130. package/dist/components/chat/components/AssistantTrace.vue.d.ts.map +0 -1
  131. package/dist/components/chat/composables/useConversationStream.d.ts +0 -3
  132. package/dist/components/chat/composables/useConversationStream.d.ts.map +0 -1
  133. package/dist/components/chat/presentation.d.ts +0 -27
  134. package/dist/components/chat/presentation.d.ts.map +0 -1
@@ -0,0 +1,112 @@
1
+ "use strict";const zu=require("./index-DPhuLMkO.cjs"),Wat=require("vue");function jat(Vu,fv){for(var oo=0;oo<fv.length;oo++){const ui=fv[oo];if(typeof ui!="string"&&!Array.isArray(ui)){for(const ao in ui)if(ao!=="default"&&!(ao in Vu)){const so=Object.getOwnPropertyDescriptor(ui,ao);so&&Object.defineProperty(Vu,ao,so.get?so:{enumerable:!0,get:()=>ui[ao]})}}}return Object.freeze(Object.defineProperty(Vu,Symbol.toStringTag,{value:"Module"}))}var BO={exports:{}};(function(Vu,fv){(function(oo,ui){Vu.exports=ui(zu.requireLib(),Wat)})(zu.commonjsGlobal,function(oo,ui){var ao=function(n,e){return ao=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},ao(n,e)};function so(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ao(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Dt=function(){return Dt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Dt.apply(this,arguments)};function gn(n,e,t,r){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(h){a(h)}}function l(c){try{u(r.throw(c))}catch(h){a(h)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(n,[])).next())})}function vn(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(t=0)),t;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Bu(n,e,t){for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof zu.commonjsGlobal<"u"?zu.commonjsGlobal:typeof self<"u"?self:{};function GO(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function sp(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ow={exports:{}};/*!
2
+
3
+ JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4
+ <http://stuartk.com/jszip>
5
+
6
+ (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
7
+ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
8
+
9
+ JSZip uses the library pako released under the MIT license :
10
+ https://github.com/nodeca/pako/blob/main/LICENSE
11
+ */(function(n,e){(function(t){n.exports=t()})(function(){return function t(r,i,o){function a(u,c){if(!i[u]){if(!r[u]){var h=typeof sp=="function"&&sp;if(!c&&h)return h(u,!0);if(s)return s(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var f=i[u]={exports:{}};r[u][0].call(f.exports,function(g){var y=r[u][1][g];return a(y||g)},f,f.exports,t,r,i,o)}return i[u].exports}for(var s=typeof sp=="function"&&sp,l=0;l<o.length;l++)a(o[l]);return a}({1:[function(t,r,i){var o=t("./utils"),a=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(l){for(var u,c,h,d,f,g,y,_=[],v=0,p=l.length,x=p,b=o.getTypeOf(l)!=="string";v<l.length;)x=p-v,h=b?(u=l[v++],c=v<p?l[v++]:0,v<p?l[v++]:0):(u=l.charCodeAt(v++),c=v<p?l.charCodeAt(v++):0,v<p?l.charCodeAt(v++):0),d=u>>2,f=(3&u)<<4|c>>4,g=1<x?(15&c)<<2|h>>6:64,y=2<x?63&h:64,_.push(s.charAt(d)+s.charAt(f)+s.charAt(g)+s.charAt(y));return _.join("")},i.decode=function(l){var u,c,h,d,f,g,y=0,_=0,v="data:";if(l.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var p,x=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&x--,l.charAt(l.length-2)===s.charAt(64)&&x--,x%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=a.uint8array?new Uint8Array(0|x):new Array(0|x);y<l.length;)u=s.indexOf(l.charAt(y++))<<2|(d=s.indexOf(l.charAt(y++)))>>4,c=(15&d)<<4|(f=s.indexOf(l.charAt(y++)))>>2,h=(3&f)<<6|(g=s.indexOf(l.charAt(y++))),p[_++]=u,f!==64&&(p[_++]=c),g!==64&&(p[_++]=h);return p}},{"./support":30,"./utils":32}],2:[function(t,r,i){var o=t("./external"),a=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),l=t("./stream/DataLengthProbe");function u(c,h,d,f,g){this.compressedSize=c,this.uncompressedSize=h,this.crc32=d,this.compression=f,this.compressedContent=g}u.prototype={getContentWorker:function(){var c=new a(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),h=this;return c.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){return new a(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(c,h,d){return c.pipe(new s).pipe(new l("uncompressedSize")).pipe(h.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",h)},r.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,r,i){var o=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,r,i){var o=t("./utils"),a=function(){for(var s,l=[],u=0;u<256;u++){s=u;for(var c=0;c<8;c++)s=1&s?3988292384^s>>>1:s>>>1;l[u]=s}return l}();r.exports=function(s,l){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?function(u,c,h,d){var f=a,g=d+h;u^=-1;for(var y=d;y<g;y++)u=u>>>8^f[255&(u^c[y])];return-1^u}(0|l,s,s.length,0):function(u,c,h,d){var f=a,g=d+h;u^=-1;for(var y=d;y<g;y++)u=u>>>8^f[255&(u^c.charCodeAt(y))];return-1^u}(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(t,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,r,i){var o=null;o=typeof Promise<"u"?Promise:t("lie"),r.exports={Promise:o}},{lie:37}],7:[function(t,r,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=t("pako"),s=t("./utils"),l=t("./stream/GenericWorker"),u=o?"uint8array":"array";function c(h,d){l.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=d,this.meta={}}i.magic="\b\0",s.inherits(c,l),c.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,h.data),!1)},c.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(d){h.push({data:d,meta:h.meta})}},i.compressWorker=function(h){return new c("Deflate",h)},i.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,r,i){function o(f,g){var y,_="";for(y=0;y<g;y++)_+=String.fromCharCode(255&f),f>>>=8;return _}function a(f,g,y,_,v,p){var x,b,S=f.file,M=f.compression,I=p!==u.utf8encode,C=s.transformTo("string",p(S.name)),A=s.transformTo("string",u.utf8encode(S.name)),D=S.comment,N=s.transformTo("string",p(D)),L=s.transformTo("string",u.utf8encode(D)),E=A.length!==S.name.length,k=L.length!==D.length,z="",F="",W="",q=S.dir,j=S.date,J={crc32:0,compressedSize:0,uncompressedSize:0};g&&!y||(J.crc32=f.crc32,J.compressedSize=f.compressedSize,J.uncompressedSize=f.uncompressedSize);var H=0;g&&(H|=8),I||!E&&!k||(H|=2048);var K=0,ut=0;q&&(K|=16),v==="UNIX"?(ut=798,K|=function(ot,Rt){var Jt=ot;return ot||(Jt=Rt?16893:33204),(65535&Jt)<<16}(S.unixPermissions,q)):(ut=20,K|=function(ot){return 63&(ot||0)}(S.dosPermissions)),x=j.getUTCHours(),x<<=6,x|=j.getUTCMinutes(),x<<=5,x|=j.getUTCSeconds()/2,b=j.getUTCFullYear()-1980,b<<=4,b|=j.getUTCMonth()+1,b<<=5,b|=j.getUTCDate(),E&&(F=o(1,1)+o(c(C),4)+A,z+="up"+o(F.length,2)+F),k&&(W=o(1,1)+o(c(N),4)+L,z+="uc"+o(W.length,2)+W);var at="";return at+=`
12
+ \0`,at+=o(H,2),at+=M.magic,at+=o(x,2),at+=o(b,2),at+=o(J.crc32,4),at+=o(J.compressedSize,4),at+=o(J.uncompressedSize,4),at+=o(C.length,2),at+=o(z.length,2),{fileRecord:h.LOCAL_FILE_HEADER+at+C+z,dirRecord:h.CENTRAL_FILE_HEADER+o(ut,2)+at+o(N.length,2)+"\0\0\0\0"+o(K,4)+o(_,4)+C+z+N}}var s=t("../utils"),l=t("../stream/GenericWorker"),u=t("../utf8"),c=t("../crc32"),h=t("../signature");function d(f,g,y,_){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=y,this.encodeFileName=_,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,l),d.prototype.push=function(f){var g=f.meta.percent||0,y=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,l.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:y?(g+100*(y-_-1))/y:100}}))},d.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var g=this.streamFiles&&!f.file.dir;if(g){var y=a(f,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(f){this.accumulate=!1;var g=this.streamFiles&&!f.file.dir,y=a(f,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),g)this.push({data:function(_){return h.DATA_DESCRIPTOR+o(_.crc32,4)+o(_.compressedSize,4)+o(_.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var f=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var y=this.bytesWritten-f,_=function(v,p,x,b,S){var M=s.transformTo("string",S(b));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(v,2)+o(v,2)+o(p,4)+o(x,4)+o(M.length,2)+M}(this.dirRecords.length,y,f,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(f){this._sources.push(f);var g=this;return f.on("data",function(y){g.processChunk(y)}),f.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),f.on("error",function(y){g.error(y)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(f){var g=this._sources;if(!l.prototype.error.call(this,f))return!1;for(var y=0;y<g.length;y++)try{g[y].error(f)}catch{}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var f=this._sources,g=0;g<f.length;g++)f[g].lock()},r.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,r,i){var o=t("../compressions"),a=t("./ZipFileWorker");i.generateWorker=function(s,l,u){var c=new a(l.streamFiles,u,l.platform,l.encodeFileName),h=0;try{s.forEach(function(d,f){h++;var g=function(p,x){var b=p||x,S=o[b];if(!S)throw new Error(b+" is not a valid compression method !");return S}(f.options.compression,l.compression),y=f.options.compressionOptions||l.compressionOptions||{},_=f.dir,v=f.date;f._compressWorker(g,y).withStreamInfo("file",{name:d,dir:_,date:v,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(c)}),c.entriesCount=h}catch(d){c.error(d)}return c}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,r,i){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new o;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(o.prototype=t("./object")).loadAsync=t("./load"),o.support=t("./support"),o.defaults=t("./defaults"),o.version="3.10.1",o.loadAsync=function(a,s){return new o().loadAsync(a,s)},o.external=t("./external"),r.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,r,i){var o=t("./utils"),a=t("./external"),s=t("./utf8"),l=t("./zipEntries"),u=t("./stream/Crc32Probe"),c=t("./nodejsUtils");function h(d){return new a.Promise(function(f,g){var y=d.decompressed.getContentWorker().pipe(new u);y.on("error",function(_){g(_)}).on("end",function(){y.streamInfo.crc32!==d.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}r.exports=function(d,f){var g=this;return f=o.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),c.isNode&&c.isStream(d)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",d,!0,f.optimizedBinaryString,f.base64).then(function(y){var _=new l(f);return _.load(y),_}).then(function(y){var _=[a.Promise.resolve(y)],v=y.files;if(f.checkCRC32)for(var p=0;p<v.length;p++)_.push(h(v[p]));return a.Promise.all(_)}).then(function(y){for(var _=y.shift(),v=_.files,p=0;p<v.length;p++){var x=v[p],b=x.fileNameStr,S=o.resolve(x.fileNameStr);g.file(S,x.decompressed,{binary:!0,optimizedBinaryString:!0,date:x.date,dir:x.dir,comment:x.fileCommentStr.length?x.fileCommentStr:null,unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions,createFolders:f.createFolders}),x.dir||(g.file(S).unsafeOriginalName=b)}return _.zipComment.length&&(g.comment=_.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,r,i){var o=t("../utils"),a=t("../stream/GenericWorker");function s(l,u){a.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(u)}o.inherits(s,a),s.prototype._bindStream=function(l){var u=this;(this._stream=l).pause(),l.on("data",function(c){u.push({data:c,meta:{percent:0}})}).on("error",function(c){u.isPaused?this.generatedError=c:u.error(c)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,r,i){var o=t("readable-stream").Readable;function a(s,l,u){o.call(this,l),this._helper=s;var c=this;s.on("data",function(h,d){c.push(h)||c._helper.pause(),u&&u(d)}).on("error",function(h){c.emit("error",h)}).on("end",function(){c.push(null)})}t("../utils").inherits(a,o),a.prototype._read=function(){this._helper.resume()},r.exports=a},{"../utils":32,"readable-stream":16}],14:[function(t,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,a);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,a)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var a=new Buffer(o);return a.fill(0),a},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(t,r,i){function o(S,M,I){var C,A=s.getTypeOf(M),D=s.extend(I||{},c);D.date=D.date||new Date,D.compression!==null&&(D.compression=D.compression.toUpperCase()),typeof D.unixPermissions=="string"&&(D.unixPermissions=parseInt(D.unixPermissions,8)),D.unixPermissions&&16384&D.unixPermissions&&(D.dir=!0),D.dosPermissions&&16&D.dosPermissions&&(D.dir=!0),D.dir&&(S=v(S)),D.createFolders&&(C=_(S))&&p.call(this,C,!0);var N=A==="string"&&D.binary===!1&&D.base64===!1;I&&I.binary!==void 0||(D.binary=!N),(M instanceof h&&M.uncompressedSize===0||D.dir||!M||M.length===0)&&(D.base64=!1,D.binary=!0,M="",D.compression="STORE",A="string");var L=null;L=M instanceof h||M instanceof l?M:g.isNode&&g.isStream(M)?new y(S,M):s.prepareContent(S,M,D.binary,D.optimizedBinaryString,D.base64);var E=new d(S,L,D);this.files[S]=E}var a=t("./utf8"),s=t("./utils"),l=t("./stream/GenericWorker"),u=t("./stream/StreamHelper"),c=t("./defaults"),h=t("./compressedObject"),d=t("./zipObject"),f=t("./generate"),g=t("./nodejsUtils"),y=t("./nodejs/NodejsStreamInputAdapter"),_=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var M=S.lastIndexOf("/");return 0<M?S.substring(0,M):""},v=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},p=function(S,M){return M=M!==void 0?M:c.createFolders,S=v(S),this.files[S]||o.call(this,S,null,{dir:!0,createFolders:M}),this.files[S]};function x(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var M,I,C;for(M in this.files)C=this.files[M],(I=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&S(I,C)},filter:function(S){var M=[];return this.forEach(function(I,C){S(I,C)&&M.push(C)}),M},file:function(S,M,I){if(arguments.length!==1)return S=this.root+S,o.call(this,S,M,I),this;if(x(S)){var C=S;return this.filter(function(D,N){return!N.dir&&C.test(D)})}var A=this.files[this.root+S];return A&&!A.dir?A:null},folder:function(S){if(!S)return this;if(x(S))return this.filter(function(A,D){return D.dir&&S.test(A)});var M=this.root+S,I=p.call(this,M),C=this.clone();return C.root=I.name,C},remove:function(S){S=this.root+S;var M=this.files[S];if(M||(S.slice(-1)!=="/"&&(S+="/"),M=this.files[S]),M&&!M.dir)delete this.files[S];else for(var I=this.filter(function(A,D){return D.name.slice(0,S.length)===S}),C=0;C<I.length;C++)delete this.files[I[C].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var M,I={};try{if((I=s.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=I.type.toLowerCase(),I.compression=I.compression.toUpperCase(),I.type==="binarystring"&&(I.type="string"),!I.type)throw new Error("No output type specified.");s.checkSupport(I.type),I.platform!=="darwin"&&I.platform!=="freebsd"&&I.platform!=="linux"&&I.platform!=="sunos"||(I.platform="UNIX"),I.platform==="win32"&&(I.platform="DOS");var C=I.comment||this.comment||"";M=f.generateWorker(this,I,C)}catch(A){(M=new l("error")).error(A)}return new u(M,I.type||"string",I.mimeType)},generateAsync:function(S,M){return this.generateInternalStream(S).accumulate(M)},generateNodeStream:function(S,M){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(M)}};r.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,r,i){r.exports=t("stream")},{stream:void 0}],17:[function(t,r,i){var o=t("./DataReader");function a(s){o.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}t("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),u=s.charCodeAt(1),c=s.charCodeAt(2),h=s.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===l&&this.data[d+1]===u&&this.data[d+2]===c&&this.data[d+3]===h)return d-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),u=s.charCodeAt(1),c=s.charCodeAt(2),h=s.charCodeAt(3),d=this.readData(4);return l===d[0]&&u===d[1]&&c===d[2]&&h===d[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./DataReader":18}],18:[function(t,r,i){var o=t("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,u=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)u=(u<<8)+this.byteAt(l);return this.index+=s,u},readString:function(s){return o.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},r.exports=a},{"../utils":32}],19:[function(t,r,i){var o=t("./Uint8ArrayReader");function a(s){o.call(this,s)}t("../utils").inherits(a,o),a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,r,i){var o=t("./DataReader");function a(s){o.call(this,s)}t("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,r,i){var o=t("./ArrayReader");function a(s){o.call(this,s)}t("../utils").inherits(a,o),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,r,i){var o=t("../utils"),a=t("../support"),s=t("./ArrayReader"),l=t("./StringReader"),u=t("./NodeBufferReader"),c=t("./Uint8ArrayReader");r.exports=function(h){var d=o.getTypeOf(h);return o.checkSupport(d),d!=="string"||a.uint8array?d==="nodebuffer"?new u(h):a.uint8array?new c(o.transformTo("uint8array",h)):new s(o.transformTo("array",h)):new l(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,r,i){var o=t("./GenericWorker"),a=t("../utils");function s(l){o.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(s,o),s.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,r,i){var o=t("./GenericWorker"),a=t("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,o),s.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,r,i){var o=t("../utils"),a=t("./GenericWorker");function s(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}o.inherits(s,a),s.prototype.processChunk=function(l){if(l){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+l.data.length}a.prototype.processChunk.call(this,l)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,r,i){var o=t("../utils"),a=t("./GenericWorker");function s(l){a.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(c){u.dataIsReady=!0,u.data=c,u.max=c&&c.length||0,u.type=o.getTypeOf(c),u.isPaused||u._tickAndRepeat()},function(c){u.error(c)})}o.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,u);break;case"uint8array":l=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":l=this.data.slice(this.index,u)}return this.index=u,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,r,i){function o(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var l=0;l<this._listeners[a].length;l++)this._listeners[a][l].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(l){s.processChunk(l)}),a.on("end",function(){s.end()}),a.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},r.exports=o},{}],29:[function(t,r,i){var o=t("../utils"),a=t("./ConvertWorker"),s=t("./GenericWorker"),l=t("../base64"),u=t("../support"),c=t("../external"),h=null;if(u.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(g,y){return new c.Promise(function(_,v){var p=[],x=g._internalType,b=g._outputType,S=g._mimeType;g.on("data",function(M,I){p.push(M),y&&y(I)}).on("error",function(M){p=[],v(M)}).on("end",function(){try{var M=function(I,C,A){switch(I){case"blob":return o.newBlob(o.transformTo("arraybuffer",C),A);case"base64":return l.encode(C);default:return o.transformTo(I,C)}}(b,function(I,C){var A,D=0,N=null,L=0;for(A=0;A<C.length;A++)L+=C[A].length;switch(I){case"string":return C.join("");case"array":return Array.prototype.concat.apply([],C);case"uint8array":for(N=new Uint8Array(L),A=0;A<C.length;A++)N.set(C[A],D),D+=C[A].length;return N;case"nodebuffer":return Buffer.concat(C);default:throw new Error("concat : unsupported type '"+I+"'")}}(x,p),S);_(M)}catch(I){v(I)}p=[]}).resume()})}function f(g,y,_){var v=y;switch(y){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=y,this._mimeType=_,o.checkSupport(v),this._worker=g.pipe(new a(v)),g.lock()}catch(p){this._worker=new s("error"),this._worker.error(p)}}f.prototype={accumulate:function(g){return d(this,g)},on:function(g,y){var _=this;return g==="data"?this._worker.on(g,function(v){y.call(_,v.data,v.meta)}):this._worker.on(g,function(){o.delay(y,arguments,_)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},g)}},r.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(o),i.blob=a.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(t,r,i){for(var o=t("./utils"),a=t("./support"),s=t("./nodejsUtils"),l=t("./stream/GenericWorker"),u=new Array(256),c=0;c<256;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;u[254]=u[254]=1;function h(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}i.utf8encode=function(f){return a.nodebuffer?s.newBufferFrom(f,"utf-8"):function(g){var y,_,v,p,x,b=g.length,S=0;for(p=0;p<b;p++)(64512&(_=g.charCodeAt(p)))==55296&&p+1<b&&(64512&(v=g.charCodeAt(p+1)))==56320&&(_=65536+(_-55296<<10)+(v-56320),p++),S+=_<128?1:_<2048?2:_<65536?3:4;for(y=a.uint8array?new Uint8Array(S):new Array(S),p=x=0;x<S;p++)(64512&(_=g.charCodeAt(p)))==55296&&p+1<b&&(64512&(v=g.charCodeAt(p+1)))==56320&&(_=65536+(_-55296<<10)+(v-56320),p++),_<128?y[x++]=_:(_<2048?y[x++]=192|_>>>6:(_<65536?y[x++]=224|_>>>12:(y[x++]=240|_>>>18,y[x++]=128|_>>>12&63),y[x++]=128|_>>>6&63),y[x++]=128|63&_);return y}(f)},i.utf8decode=function(f){return a.nodebuffer?o.transformTo("nodebuffer",f).toString("utf-8"):function(g){var y,_,v,p,x=g.length,b=new Array(2*x);for(y=_=0;y<x;)if((v=g[y++])<128)b[_++]=v;else if(4<(p=u[v]))b[_++]=65533,y+=p-1;else{for(v&=p===2?31:p===3?15:7;1<p&&y<x;)v=v<<6|63&g[y++],p--;1<p?b[_++]=65533:v<65536?b[_++]=v:(v-=65536,b[_++]=55296|v>>10&1023,b[_++]=56320|1023&v)}return b.length!==_&&(b.subarray?b=b.subarray(0,_):b.length=_),o.applyFromCharCode(b)}(f=o.transformTo(a.uint8array?"uint8array":"array",f))},o.inherits(h,l),h.prototype.processChunk=function(f){var g=o.transformTo(a.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var y=g;(g=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),g.set(y,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var _=function(p,x){var b;for((x=x||p.length)>p.length&&(x=p.length),b=x-1;0<=b&&(192&p[b])==128;)b--;return b<0||b===0?x:b+u[p[b]]>x?b:x}(g),v=g;_!==g.length&&(a.uint8array?(v=g.subarray(0,_),this.leftOver=g.subarray(_,g.length)):(v=g.slice(0,_),this.leftOver=g.slice(_,g.length))),this.push({data:i.utf8decode(v),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,o.inherits(d,l),d.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,r,i){var o=t("./support"),a=t("./base64"),s=t("./nodejsUtils"),l=t("./external");function u(y){return y}function c(y,_){for(var v=0;v<y.length;++v)_[v]=255&y.charCodeAt(v);return _}t("setimmediate"),i.newBlob=function(y,_){i.checkSupport("blob");try{return new Blob([y],{type:_})}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(y),v.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(y,_,v){var p=[],x=0,b=y.length;if(b<=v)return String.fromCharCode.apply(null,y);for(;x<b;)_==="array"||_==="nodebuffer"?p.push(String.fromCharCode.apply(null,y.slice(x,Math.min(x+v,b)))):p.push(String.fromCharCode.apply(null,y.subarray(x,Math.min(x+v,b)))),x+=v;return p.join("")},stringifyByChar:function(y){for(var _="",v=0;v<y.length;v++)_+=String.fromCharCode(y[v]);return _},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function d(y){var _=65536,v=i.getTypeOf(y),p=!0;if(v==="uint8array"?p=h.applyCanBeUsed.uint8array:v==="nodebuffer"&&(p=h.applyCanBeUsed.nodebuffer),p)for(;1<_;)try{return h.stringifyByChunk(y,v,_)}catch{_=Math.floor(_/2)}return h.stringifyByChar(y)}function f(y,_){for(var v=0;v<y.length;v++)_[v]=y[v];return _}i.applyFromCharCode=d;var g={};g.string={string:u,array:function(y){return c(y,new Array(y.length))},arraybuffer:function(y){return g.string.uint8array(y).buffer},uint8array:function(y){return c(y,new Uint8Array(y.length))},nodebuffer:function(y){return c(y,s.allocBuffer(y.length))}},g.array={string:d,array:u,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(y)}},g.arraybuffer={string:function(y){return d(new Uint8Array(y))},array:function(y){return f(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:u,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(new Uint8Array(y))}},g.uint8array={string:d,array:function(y){return f(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:u,nodebuffer:function(y){return s.newBufferFrom(y)}},g.nodebuffer={string:d,array:function(y){return f(y,new Array(y.length))},arraybuffer:function(y){return g.nodebuffer.uint8array(y).buffer},uint8array:function(y){return f(y,new Uint8Array(y.length))},nodebuffer:u},i.transformTo=function(y,_){if(_=_||"",!y)return _;i.checkSupport(y);var v=i.getTypeOf(_);return g[v][y](_)},i.resolve=function(y){for(var _=y.split("/"),v=[],p=0;p<_.length;p++){var x=_[p];x==="."||x===""&&p!==0&&p!==_.length-1||(x===".."?v.pop():v.push(x))}return v.join("/")},i.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":o.nodebuffer&&s.isBuffer(y)?"nodebuffer":o.uint8array&&y instanceof Uint8Array?"uint8array":o.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(y){if(!o[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(y){var _,v,p="";for(v=0;v<(y||"").length;v++)p+="\\x"+((_=y.charCodeAt(v))<16?"0":"")+_.toString(16).toUpperCase();return p},i.delay=function(y,_,v){setImmediate(function(){y.apply(v||null,_||[])})},i.inherits=function(y,_){function v(){}v.prototype=_.prototype,y.prototype=new v},i.extend=function(){var y,_,v={};for(y=0;y<arguments.length;y++)for(_ in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],_)&&v[_]===void 0&&(v[_]=arguments[y][_]);return v},i.prepareContent=function(y,_,v,p,x){return l.Promise.resolve(_).then(function(b){return o.blob&&(b instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b))!==-1)&&typeof FileReader<"u"?new l.Promise(function(S,M){var I=new FileReader;I.onload=function(C){S(C.target.result)},I.onerror=function(C){M(C.target.error)},I.readAsArrayBuffer(b)}):b}).then(function(b){var S=i.getTypeOf(b);return S?(S==="arraybuffer"?b=i.transformTo("uint8array",b):S==="string"&&(x?b=a.decode(b):v&&p!==!0&&(b=function(M){return c(M,o.uint8array?new Uint8Array(M.length):new Array(M.length))}(b))),b):l.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,r,i){var o=t("./reader/readerFor"),a=t("./utils"),s=t("./signature"),l=t("./zipEntry"),u=t("./support");function c(h){this.files=[],this.loadOptions=h}c.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var d=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(d)+", expected "+a.pretty(h)+")")}},isSignature:function(h,d){var f=this.reader.index;this.reader.setIndex(h);var g=this.reader.readString(4)===d;return this.reader.setIndex(f),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),d=u.uint8array?"uint8array":"array",f=a.transformTo(d,h);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,d,f,g=this.zip64EndOfCentralSize-44;0<g;)h=this.reader.readInt(2),d=this.reader.readInt(4),f=this.reader.readData(d),this.zip64ExtensibleData[h]={id:h,length:d,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,d;for(h=0;h<this.files.length;h++)d=this.files[h],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(h=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var d=h;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var g=d-f;if(0<g)this.isSignature(d,s.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(h){this.reader=o(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,r,i){var o=t("./reader/readerFor"),a=t("./utils"),s=t("./compressedObject"),l=t("./crc32"),u=t("./utf8"),c=t("./compressions"),h=t("./support");function d(f,g){this.options=f,this.loadOptions=g}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var g,y;if(f.skip(22),this.fileNameLength=f.readInt(2),y=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(y),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((g=function(_){for(var v in c)if(Object.prototype.hasOwnProperty.call(c,v)&&c[v].magic===_)return c[v];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,g,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var g=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(g),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=o(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var g,y,_,v=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<v;)g=f.readInt(2),y=f.readInt(2),_=f.readData(y),this.extraFields[g]={id:g,length:y,value:_};f.setIndex(v)},handleUTF8:function(){var f=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var y=a.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var v=a.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var g=o(f.value);return g.readInt(1)!==1||l(this.fileName)!==g.readInt(4)?null:u.utf8decode(g.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var g=o(f.value);return g.readInt(1)!==1||l(this.fileComment)!==g.readInt(4)?null:u.utf8decode(g.readData(f.length-5))}return null}},r.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,r,i){function o(g,y,_){this.name=g,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=y,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var a=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),l=t("./utf8"),u=t("./compressedObject"),c=t("./stream/GenericWorker");o.prototype={internalStream:function(g){var y=null,_="string";try{if(!g)throw new Error("No output type specified.");var v=(_=g.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),y=this._decompressWorker();var p=!this._dataBinary;p&&!v&&(y=y.pipe(new l.Utf8EncodeWorker)),!p&&v&&(y=y.pipe(new l.Utf8DecodeWorker))}catch(x){(y=new c("error")).error(x)}return new a(y,_,"")},async:function(g,y){return this.internalStream(g).accumulate(y)},nodeStream:function(g,y){return this.internalStream(g||"nodebuffer").toNodejsStream(y)},_compressWorker:function(g,y){if(this._data instanceof u&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new l.Utf8EncodeWorker)),u.createWorkerFrom(_,g,y)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof c?this._data:new s(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<h.length;f++)o.prototype[h[f]]=d;r.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,r,i){(function(o){var a,s,l=o.MutationObserver||o.WebKitMutationObserver;if(l){var u=0,c=new l(g),h=o.document.createTextNode("");c.observe(h,{characterData:!0}),a=function(){h.data=u=++u%2}}else if(o.setImmediate||o.MessageChannel===void 0)a="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var y=o.document.createElement("script");y.onreadystatechange=function(){g(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},o.document.documentElement.appendChild(y)}:function(){setTimeout(g,0)};else{var d=new o.MessageChannel;d.port1.onmessage=g,a=function(){d.port2.postMessage(0)}}var f=[];function g(){var y,_;s=!0;for(var v=f.length;v;){for(_=f,f=[],y=-1;++y<v;)_[y]();v=f.length}s=!1}r.exports=function(y){f.push(y)!==1||s||a()}}).call(this,typeof lo<"u"?lo:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(t,r,i){var o=t("immediate");function a(){}var s={},l=["REJECTED"],u=["FULFILLED"],c=["PENDING"];function h(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,v!==a&&y(this,v)}function d(v,p,x){this.promise=v,typeof p=="function"&&(this.onFulfilled=p,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}function f(v,p,x){o(function(){var b;try{b=p(x)}catch(S){return s.reject(v,S)}b===v?s.reject(v,new TypeError("Cannot resolve promise with itself")):s.resolve(v,b)})}function g(v){var p=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof p=="function")return function(){p.apply(v,arguments)}}function y(v,p){var x=!1;function b(I){x||(x=!0,s.reject(v,I))}function S(I){x||(x=!0,s.resolve(v,I))}var M=_(function(){p(S,b)});M.status==="error"&&b(M.value)}function _(v,p){var x={};try{x.value=v(p),x.status="success"}catch(b){x.status="error",x.value=b}return x}(r.exports=h).prototype.finally=function(v){if(typeof v!="function")return this;var p=this.constructor;return this.then(function(x){return p.resolve(v()).then(function(){return x})},function(x){return p.resolve(v()).then(function(){throw x})})},h.prototype.catch=function(v){return this.then(null,v)},h.prototype.then=function(v,p){if(typeof v!="function"&&this.state===u||typeof p!="function"&&this.state===l)return this;var x=new this.constructor(a);return this.state!==c?f(x,this.state===u?v:p,this.outcome):this.queue.push(new d(x,v,p)),x},d.prototype.callFulfilled=function(v){s.resolve(this.promise,v)},d.prototype.otherCallFulfilled=function(v){f(this.promise,this.onFulfilled,v)},d.prototype.callRejected=function(v){s.reject(this.promise,v)},d.prototype.otherCallRejected=function(v){f(this.promise,this.onRejected,v)},s.resolve=function(v,p){var x=_(g,p);if(x.status==="error")return s.reject(v,x.value);var b=x.value;if(b)y(v,b);else{v.state=u,v.outcome=p;for(var S=-1,M=v.queue.length;++S<M;)v.queue[S].callFulfilled(p)}return v},s.reject=function(v,p){v.state=l,v.outcome=p;for(var x=-1,b=v.queue.length;++x<b;)v.queue[x].callRejected(p);return v},h.resolve=function(v){return v instanceof this?v:s.resolve(new this(a),v)},h.reject=function(v){var p=new this(a);return s.reject(p,v)},h.all=function(v){var p=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=v.length,b=!1;if(!x)return this.resolve([]);for(var S=new Array(x),M=0,I=-1,C=new this(a);++I<x;)A(v[I],I);return C;function A(D,N){p.resolve(D).then(function(L){S[N]=L,++M!==x||b||(b=!0,s.resolve(C,S))},function(L){b||(b=!0,s.reject(C,L))})}},h.race=function(v){var p=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=v.length,b=!1;if(!x)return this.resolve([]);for(var S=-1,M=new this(a);++S<x;)I=v[S],p.resolve(I).then(function(C){b||(b=!0,s.resolve(M,C))},function(C){b||(b=!0,s.reject(M,C))});var I;return M}},{immediate:36}],38:[function(t,r,i){var o={};(0,t("./lib/utils/common").assign)(o,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),r.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,r,i){var o=t("./zlib/deflate"),a=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/messages"),u=t("./zlib/zstream"),c=Object.prototype.toString,h=0,d=-1,f=0,g=8;function y(v){if(!(this instanceof y))return new y(v);this.options=a.assign({level:d,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},v||{});var p=this.options;p.raw&&0<p.windowBits?p.windowBits=-p.windowBits:p.gzip&&0<p.windowBits&&p.windowBits<16&&(p.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var x=o.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(x!==h)throw new Error(l[x]);if(p.header&&o.deflateSetHeader(this.strm,p.header),p.dictionary){var b;if(b=typeof p.dictionary=="string"?s.string2buf(p.dictionary):c.call(p.dictionary)==="[object ArrayBuffer]"?new Uint8Array(p.dictionary):p.dictionary,(x=o.deflateSetDictionary(this.strm,b))!==h)throw new Error(l[x]);this._dict_set=!0}}function _(v,p){var x=new y(p);if(x.push(v,!0),x.err)throw x.msg||l[x.err];return x.result}y.prototype.push=function(v,p){var x,b,S=this.strm,M=this.options.chunkSize;if(this.ended)return!1;b=p===~~p?p:p===!0?4:0,typeof v=="string"?S.input=s.string2buf(v):c.call(v)==="[object ArrayBuffer]"?S.input=new Uint8Array(v):S.input=v,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new a.Buf8(M),S.next_out=0,S.avail_out=M),(x=o.deflate(S,b))!==1&&x!==h)return this.onEnd(x),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(S.output,S.next_out))):this.onData(a.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&x!==1);return b===4?(x=o.deflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===h):b!==2||(this.onEnd(h),!(S.avail_out=0))},y.prototype.onData=function(v){this.chunks.push(v)},y.prototype.onEnd=function(v){v===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},i.Deflate=y,i.deflate=_,i.deflateRaw=function(v,p){return(p=p||{}).raw=!0,_(v,p)},i.gzip=function(v,p){return(p=p||{}).gzip=!0,_(v,p)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,r,i){var o=t("./zlib/inflate"),a=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/constants"),u=t("./zlib/messages"),c=t("./zlib/zstream"),h=t("./zlib/gzheader"),d=Object.prototype.toString;function f(y){if(!(this instanceof f))return new f(y);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},y||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||y&&y.windowBits||(_.windowBits+=32),15<_.windowBits&&_.windowBits<48&&!(15&_.windowBits)&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var v=o.inflateInit2(this.strm,_.windowBits);if(v!==l.Z_OK)throw new Error(u[v]);this.header=new h,o.inflateGetHeader(this.strm,this.header)}function g(y,_){var v=new f(_);if(v.push(y,!0),v.err)throw v.msg||u[v.err];return v.result}f.prototype.push=function(y,_){var v,p,x,b,S,M,I=this.strm,C=this.options.chunkSize,A=this.options.dictionary,D=!1;if(this.ended)return!1;p=_===~~_?_:_===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof y=="string"?I.input=s.binstring2buf(y):d.call(y)==="[object ArrayBuffer]"?I.input=new Uint8Array(y):I.input=y,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new a.Buf8(C),I.next_out=0,I.avail_out=C),(v=o.inflate(I,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&A&&(M=typeof A=="string"?s.string2buf(A):d.call(A)==="[object ArrayBuffer]"?new Uint8Array(A):A,v=o.inflateSetDictionary(this.strm,M)),v===l.Z_BUF_ERROR&&D===!0&&(v=l.Z_OK,D=!1),v!==l.Z_STREAM_END&&v!==l.Z_OK)return this.onEnd(v),!(this.ended=!0);I.next_out&&(I.avail_out!==0&&v!==l.Z_STREAM_END&&(I.avail_in!==0||p!==l.Z_FINISH&&p!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(x=s.utf8border(I.output,I.next_out),b=I.next_out-x,S=s.buf2string(I.output,x),I.next_out=b,I.avail_out=C-b,b&&a.arraySet(I.output,I.output,x,b,0),this.onData(S)):this.onData(a.shrinkBuf(I.output,I.next_out)))),I.avail_in===0&&I.avail_out===0&&(D=!0)}while((0<I.avail_in||I.avail_out===0)&&v!==l.Z_STREAM_END);return v===l.Z_STREAM_END&&(p=l.Z_FINISH),p===l.Z_FINISH?(v=o.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===l.Z_OK):p!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(I.avail_out=0))},f.prototype.onData=function(y){this.chunks.push(y)},f.prototype.onEnd=function(y){y===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},i.Inflate=f,i.inflate=g,i.inflateRaw=function(y,_){return(_=_||{}).raw=!0,g(y,_)},i.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,r,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var c=u.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var h in c)c.hasOwnProperty(h)&&(l[h]=c[h])}}return l},i.shrinkBuf=function(l,u){return l.length===u?l:l.subarray?l.subarray(0,u):(l.length=u,l)};var a={arraySet:function(l,u,c,h,d){if(u.subarray&&l.subarray)l.set(u.subarray(c,c+h),d);else for(var f=0;f<h;f++)l[d+f]=u[c+f]},flattenChunks:function(l){var u,c,h,d,f,g;for(u=h=0,c=l.length;u<c;u++)h+=l[u].length;for(g=new Uint8Array(h),u=d=0,c=l.length;u<c;u++)f=l[u],g.set(f,d),d+=f.length;return g}},s={arraySet:function(l,u,c,h,d){for(var f=0;f<h;f++)l[d+f]=u[c+f]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(o)},{}],42:[function(t,r,i){var o=t("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new o.Buf8(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function c(h,d){if(d<65537&&(h.subarray&&s||!h.subarray&&a))return String.fromCharCode.apply(null,o.shrinkBuf(h,d));for(var f="",g=0;g<d;g++)f+=String.fromCharCode(h[g]);return f}l[254]=l[254]=1,i.string2buf=function(h){var d,f,g,y,_,v=h.length,p=0;for(y=0;y<v;y++)(64512&(f=h.charCodeAt(y)))==55296&&y+1<v&&(64512&(g=h.charCodeAt(y+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),y++),p+=f<128?1:f<2048?2:f<65536?3:4;for(d=new o.Buf8(p),y=_=0;_<p;y++)(64512&(f=h.charCodeAt(y)))==55296&&y+1<v&&(64512&(g=h.charCodeAt(y+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),y++),f<128?d[_++]=f:(f<2048?d[_++]=192|f>>>6:(f<65536?d[_++]=224|f>>>12:(d[_++]=240|f>>>18,d[_++]=128|f>>>12&63),d[_++]=128|f>>>6&63),d[_++]=128|63&f);return d},i.buf2binstring=function(h){return c(h,h.length)},i.binstring2buf=function(h){for(var d=new o.Buf8(h.length),f=0,g=d.length;f<g;f++)d[f]=h.charCodeAt(f);return d},i.buf2string=function(h,d){var f,g,y,_,v=d||h.length,p=new Array(2*v);for(f=g=0;f<v;)if((y=h[f++])<128)p[g++]=y;else if(4<(_=l[y]))p[g++]=65533,f+=_-1;else{for(y&=_===2?31:_===3?15:7;1<_&&f<v;)y=y<<6|63&h[f++],_--;1<_?p[g++]=65533:y<65536?p[g++]=y:(y-=65536,p[g++]=55296|y>>10&1023,p[g++]=56320|1023&y)}return c(p,g)},i.utf8border=function(h,d){var f;for((d=d||h.length)>h.length&&(d=h.length),f=d-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?d:f+l[h[f]]>d?f:d}},{"./common":41}],43:[function(t,r,i){r.exports=function(o,a,s,l){for(var u=65535&o|0,c=o>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3<s?2e3:s;c=c+(u=u+a[l++]|0)|0,--h;);u%=65521,c%=65521}return u|c<<16|0}},{}],44:[function(t,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,r,i){var o=function(){for(var a,s=[],l=0;l<256;l++){a=l;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;s[l]=a}return s}();r.exports=function(a,s,l,u){var c=o,h=u+l;a^=-1;for(var d=u;d<h;d++)a=a>>>8^c[255&(a^s[d])];return-1^a}},{}],46:[function(t,r,i){var o,a=t("../utils/common"),s=t("./trees"),l=t("./adler32"),u=t("./crc32"),c=t("./messages"),h=0,d=4,f=0,g=-2,y=-1,_=4,v=2,p=8,x=9,b=286,S=30,M=19,I=2*b+1,C=15,A=3,D=258,N=D+A+1,L=42,E=113,k=1,z=2,F=3,W=4;function q(O,st){return O.msg=c[st],st}function j(O){return(O<<1)-(4<O?9:0)}function J(O){for(var st=O.length;0<=--st;)O[st]=0}function H(O){var st=O.state,it=st.pending;it>O.avail_out&&(it=O.avail_out),it!==0&&(a.arraySet(O.output,st.pending_buf,st.pending_out,it,O.next_out),O.next_out+=it,st.pending_out+=it,O.total_out+=it,O.avail_out-=it,st.pending-=it,st.pending===0&&(st.pending_out=0))}function K(O,st){s._tr_flush_block(O,0<=O.block_start?O.block_start:-1,O.strstart-O.block_start,st),O.block_start=O.strstart,H(O.strm)}function ut(O,st){O.pending_buf[O.pending++]=st}function at(O,st){O.pending_buf[O.pending++]=st>>>8&255,O.pending_buf[O.pending++]=255&st}function ot(O,st){var it,Z,U=O.max_chain_length,tt=O.strstart,ft=O.prev_length,gt=O.nice_match,rt=O.strstart>O.w_size-N?O.strstart-(O.w_size-N):0,It=O.window,zt=O.w_mask,Ct=O.prev,Zt=O.strstart+D,Te=It[tt+ft-1],ce=It[tt+ft];O.prev_length>=O.good_match&&(U>>=2),gt>O.lookahead&&(gt=O.lookahead);do if(It[(it=st)+ft]===ce&&It[it+ft-1]===Te&&It[it]===It[tt]&&It[++it]===It[tt+1]){tt+=2,it++;do;while(It[++tt]===It[++it]&&It[++tt]===It[++it]&&It[++tt]===It[++it]&&It[++tt]===It[++it]&&It[++tt]===It[++it]&&It[++tt]===It[++it]&&It[++tt]===It[++it]&&It[++tt]===It[++it]&&tt<Zt);if(Z=D-(Zt-tt),tt=Zt-D,ft<Z){if(O.match_start=st,gt<=(ft=Z))break;Te=It[tt+ft-1],ce=It[tt+ft]}}while((st=Ct[st&zt])>rt&&--U!=0);return ft<=O.lookahead?ft:O.lookahead}function Rt(O){var st,it,Z,U,tt,ft,gt,rt,It,zt,Ct=O.w_size;do{if(U=O.window_size-O.lookahead-O.strstart,O.strstart>=Ct+(Ct-N)){for(a.arraySet(O.window,O.window,Ct,Ct,0),O.match_start-=Ct,O.strstart-=Ct,O.block_start-=Ct,st=it=O.hash_size;Z=O.head[--st],O.head[st]=Ct<=Z?Z-Ct:0,--it;);for(st=it=Ct;Z=O.prev[--st],O.prev[st]=Ct<=Z?Z-Ct:0,--it;);U+=Ct}if(O.strm.avail_in===0)break;if(ft=O.strm,gt=O.window,rt=O.strstart+O.lookahead,It=U,zt=void 0,zt=ft.avail_in,It<zt&&(zt=It),it=zt===0?0:(ft.avail_in-=zt,a.arraySet(gt,ft.input,ft.next_in,zt,rt),ft.state.wrap===1?ft.adler=l(ft.adler,gt,zt,rt):ft.state.wrap===2&&(ft.adler=u(ft.adler,gt,zt,rt)),ft.next_in+=zt,ft.total_in+=zt,zt),O.lookahead+=it,O.lookahead+O.insert>=A)for(tt=O.strstart-O.insert,O.ins_h=O.window[tt],O.ins_h=(O.ins_h<<O.hash_shift^O.window[tt+1])&O.hash_mask;O.insert&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[tt+A-1])&O.hash_mask,O.prev[tt&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=tt,tt++,O.insert--,!(O.lookahead+O.insert<A)););}while(O.lookahead<N&&O.strm.avail_in!==0)}function Jt(O,st){for(var it,Z;;){if(O.lookahead<N){if(Rt(O),O.lookahead<N&&st===h)return k;if(O.lookahead===0)break}if(it=0,O.lookahead>=A&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+A-1])&O.hash_mask,it=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),it!==0&&O.strstart-it<=O.w_size-N&&(O.match_length=ot(O,it)),O.match_length>=A)if(Z=s._tr_tally(O,O.strstart-O.match_start,O.match_length-A),O.lookahead-=O.match_length,O.match_length<=O.max_lazy_match&&O.lookahead>=A){for(O.match_length--;O.strstart++,O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+A-1])&O.hash_mask,it=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart,--O.match_length!=0;);O.strstart++}else O.strstart+=O.match_length,O.match_length=0,O.ins_h=O.window[O.strstart],O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+1])&O.hash_mask;else Z=s._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++;if(Z&&(K(O,!1),O.strm.avail_out===0))return k}return O.insert=O.strstart<A-1?O.strstart:A-1,st===d?(K(O,!0),O.strm.avail_out===0?F:W):O.last_lit&&(K(O,!1),O.strm.avail_out===0)?k:z}function wt(O,st){for(var it,Z,U;;){if(O.lookahead<N){if(Rt(O),O.lookahead<N&&st===h)return k;if(O.lookahead===0)break}if(it=0,O.lookahead>=A&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+A-1])&O.hash_mask,it=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),O.prev_length=O.match_length,O.prev_match=O.match_start,O.match_length=A-1,it!==0&&O.prev_length<O.max_lazy_match&&O.strstart-it<=O.w_size-N&&(O.match_length=ot(O,it),O.match_length<=5&&(O.strategy===1||O.match_length===A&&4096<O.strstart-O.match_start)&&(O.match_length=A-1)),O.prev_length>=A&&O.match_length<=O.prev_length){for(U=O.strstart+O.lookahead-A,Z=s._tr_tally(O,O.strstart-1-O.prev_match,O.prev_length-A),O.lookahead-=O.prev_length-1,O.prev_length-=2;++O.strstart<=U&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+A-1])&O.hash_mask,it=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),--O.prev_length!=0;);if(O.match_available=0,O.match_length=A-1,O.strstart++,Z&&(K(O,!1),O.strm.avail_out===0))return k}else if(O.match_available){if((Z=s._tr_tally(O,0,O.window[O.strstart-1]))&&K(O,!1),O.strstart++,O.lookahead--,O.strm.avail_out===0)return k}else O.match_available=1,O.strstart++,O.lookahead--}return O.match_available&&(Z=s._tr_tally(O,0,O.window[O.strstart-1]),O.match_available=0),O.insert=O.strstart<A-1?O.strstart:A-1,st===d?(K(O,!0),O.strm.avail_out===0?F:W):O.last_lit&&(K(O,!1),O.strm.avail_out===0)?k:z}function xt(O,st,it,Z,U){this.good_length=O,this.max_lazy=st,this.nice_length=it,this.max_chain=Z,this.func=U}function Ot(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=p,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*I),this.dyn_dtree=new a.Buf16(2*(2*S+1)),this.bl_tree=new a.Buf16(2*(2*M+1)),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(C+1),this.heap=new a.Buf16(2*b+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*b+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function bt(O){var st;return O&&O.state?(O.total_in=O.total_out=0,O.data_type=v,(st=O.state).pending=0,st.pending_out=0,st.wrap<0&&(st.wrap=-st.wrap),st.status=st.wrap?L:E,O.adler=st.wrap===2?0:1,st.last_flush=h,s._tr_init(st),f):q(O,g)}function Nt(O){var st=bt(O);return st===f&&function(it){it.window_size=2*it.w_size,J(it.head),it.max_lazy_match=o[it.level].max_lazy,it.good_match=o[it.level].good_length,it.nice_match=o[it.level].nice_length,it.max_chain_length=o[it.level].max_chain,it.strstart=0,it.block_start=0,it.lookahead=0,it.insert=0,it.match_length=it.prev_length=A-1,it.match_available=0,it.ins_h=0}(O.state),st}function se(O,st,it,Z,U,tt){if(!O)return g;var ft=1;if(st===y&&(st=6),Z<0?(ft=0,Z=-Z):15<Z&&(ft=2,Z-=16),U<1||x<U||it!==p||Z<8||15<Z||st<0||9<st||tt<0||_<tt)return q(O,g);Z===8&&(Z=9);var gt=new Ot;return(O.state=gt).strm=O,gt.wrap=ft,gt.gzhead=null,gt.w_bits=Z,gt.w_size=1<<gt.w_bits,gt.w_mask=gt.w_size-1,gt.hash_bits=U+7,gt.hash_size=1<<gt.hash_bits,gt.hash_mask=gt.hash_size-1,gt.hash_shift=~~((gt.hash_bits+A-1)/A),gt.window=new a.Buf8(2*gt.w_size),gt.head=new a.Buf16(gt.hash_size),gt.prev=new a.Buf16(gt.w_size),gt.lit_bufsize=1<<U+6,gt.pending_buf_size=4*gt.lit_bufsize,gt.pending_buf=new a.Buf8(gt.pending_buf_size),gt.d_buf=1*gt.lit_bufsize,gt.l_buf=3*gt.lit_bufsize,gt.level=st,gt.strategy=tt,gt.method=it,Nt(O)}o=[new xt(0,0,0,0,function(O,st){var it=65535;for(it>O.pending_buf_size-5&&(it=O.pending_buf_size-5);;){if(O.lookahead<=1){if(Rt(O),O.lookahead===0&&st===h)return k;if(O.lookahead===0)break}O.strstart+=O.lookahead,O.lookahead=0;var Z=O.block_start+it;if((O.strstart===0||O.strstart>=Z)&&(O.lookahead=O.strstart-Z,O.strstart=Z,K(O,!1),O.strm.avail_out===0)||O.strstart-O.block_start>=O.w_size-N&&(K(O,!1),O.strm.avail_out===0))return k}return O.insert=0,st===d?(K(O,!0),O.strm.avail_out===0?F:W):(O.strstart>O.block_start&&(K(O,!1),O.strm.avail_out),k)}),new xt(4,4,8,4,Jt),new xt(4,5,16,8,Jt),new xt(4,6,32,32,Jt),new xt(4,4,16,16,wt),new xt(8,16,32,32,wt),new xt(8,16,128,128,wt),new xt(8,32,128,256,wt),new xt(32,128,258,1024,wt),new xt(32,258,258,4096,wt)],i.deflateInit=function(O,st){return se(O,st,p,15,8,0)},i.deflateInit2=se,i.deflateReset=Nt,i.deflateResetKeep=bt,i.deflateSetHeader=function(O,st){return O&&O.state?O.state.wrap!==2?g:(O.state.gzhead=st,f):g},i.deflate=function(O,st){var it,Z,U,tt;if(!O||!O.state||5<st||st<0)return O?q(O,g):g;if(Z=O.state,!O.output||!O.input&&O.avail_in!==0||Z.status===666&&st!==d)return q(O,O.avail_out===0?-5:g);if(Z.strm=O,it=Z.last_flush,Z.last_flush=st,Z.status===L)if(Z.wrap===2)O.adler=0,ut(Z,31),ut(Z,139),ut(Z,8),Z.gzhead?(ut(Z,(Z.gzhead.text?1:0)+(Z.gzhead.hcrc?2:0)+(Z.gzhead.extra?4:0)+(Z.gzhead.name?8:0)+(Z.gzhead.comment?16:0)),ut(Z,255&Z.gzhead.time),ut(Z,Z.gzhead.time>>8&255),ut(Z,Z.gzhead.time>>16&255),ut(Z,Z.gzhead.time>>24&255),ut(Z,Z.level===9?2:2<=Z.strategy||Z.level<2?4:0),ut(Z,255&Z.gzhead.os),Z.gzhead.extra&&Z.gzhead.extra.length&&(ut(Z,255&Z.gzhead.extra.length),ut(Z,Z.gzhead.extra.length>>8&255)),Z.gzhead.hcrc&&(O.adler=u(O.adler,Z.pending_buf,Z.pending,0)),Z.gzindex=0,Z.status=69):(ut(Z,0),ut(Z,0),ut(Z,0),ut(Z,0),ut(Z,0),ut(Z,Z.level===9?2:2<=Z.strategy||Z.level<2?4:0),ut(Z,3),Z.status=E);else{var ft=p+(Z.w_bits-8<<4)<<8;ft|=(2<=Z.strategy||Z.level<2?0:Z.level<6?1:Z.level===6?2:3)<<6,Z.strstart!==0&&(ft|=32),ft+=31-ft%31,Z.status=E,at(Z,ft),Z.strstart!==0&&(at(Z,O.adler>>>16),at(Z,65535&O.adler)),O.adler=1}if(Z.status===69)if(Z.gzhead.extra){for(U=Z.pending;Z.gzindex<(65535&Z.gzhead.extra.length)&&(Z.pending!==Z.pending_buf_size||(Z.gzhead.hcrc&&Z.pending>U&&(O.adler=u(O.adler,Z.pending_buf,Z.pending-U,U)),H(O),U=Z.pending,Z.pending!==Z.pending_buf_size));)ut(Z,255&Z.gzhead.extra[Z.gzindex]),Z.gzindex++;Z.gzhead.hcrc&&Z.pending>U&&(O.adler=u(O.adler,Z.pending_buf,Z.pending-U,U)),Z.gzindex===Z.gzhead.extra.length&&(Z.gzindex=0,Z.status=73)}else Z.status=73;if(Z.status===73)if(Z.gzhead.name){U=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>U&&(O.adler=u(O.adler,Z.pending_buf,Z.pending-U,U)),H(O),U=Z.pending,Z.pending===Z.pending_buf_size)){tt=1;break}tt=Z.gzindex<Z.gzhead.name.length?255&Z.gzhead.name.charCodeAt(Z.gzindex++):0,ut(Z,tt)}while(tt!==0);Z.gzhead.hcrc&&Z.pending>U&&(O.adler=u(O.adler,Z.pending_buf,Z.pending-U,U)),tt===0&&(Z.gzindex=0,Z.status=91)}else Z.status=91;if(Z.status===91)if(Z.gzhead.comment){U=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>U&&(O.adler=u(O.adler,Z.pending_buf,Z.pending-U,U)),H(O),U=Z.pending,Z.pending===Z.pending_buf_size)){tt=1;break}tt=Z.gzindex<Z.gzhead.comment.length?255&Z.gzhead.comment.charCodeAt(Z.gzindex++):0,ut(Z,tt)}while(tt!==0);Z.gzhead.hcrc&&Z.pending>U&&(O.adler=u(O.adler,Z.pending_buf,Z.pending-U,U)),tt===0&&(Z.status=103)}else Z.status=103;if(Z.status===103&&(Z.gzhead.hcrc?(Z.pending+2>Z.pending_buf_size&&H(O),Z.pending+2<=Z.pending_buf_size&&(ut(Z,255&O.adler),ut(Z,O.adler>>8&255),O.adler=0,Z.status=E)):Z.status=E),Z.pending!==0){if(H(O),O.avail_out===0)return Z.last_flush=-1,f}else if(O.avail_in===0&&j(st)<=j(it)&&st!==d)return q(O,-5);if(Z.status===666&&O.avail_in!==0)return q(O,-5);if(O.avail_in!==0||Z.lookahead!==0||st!==h&&Z.status!==666){var gt=Z.strategy===2?function(rt,It){for(var zt;;){if(rt.lookahead===0&&(Rt(rt),rt.lookahead===0)){if(It===h)return k;break}if(rt.match_length=0,zt=s._tr_tally(rt,0,rt.window[rt.strstart]),rt.lookahead--,rt.strstart++,zt&&(K(rt,!1),rt.strm.avail_out===0))return k}return rt.insert=0,It===d?(K(rt,!0),rt.strm.avail_out===0?F:W):rt.last_lit&&(K(rt,!1),rt.strm.avail_out===0)?k:z}(Z,st):Z.strategy===3?function(rt,It){for(var zt,Ct,Zt,Te,ce=rt.window;;){if(rt.lookahead<=D){if(Rt(rt),rt.lookahead<=D&&It===h)return k;if(rt.lookahead===0)break}if(rt.match_length=0,rt.lookahead>=A&&0<rt.strstart&&(Ct=ce[Zt=rt.strstart-1])===ce[++Zt]&&Ct===ce[++Zt]&&Ct===ce[++Zt]){Te=rt.strstart+D;do;while(Ct===ce[++Zt]&&Ct===ce[++Zt]&&Ct===ce[++Zt]&&Ct===ce[++Zt]&&Ct===ce[++Zt]&&Ct===ce[++Zt]&&Ct===ce[++Zt]&&Ct===ce[++Zt]&&Zt<Te);rt.match_length=D-(Te-Zt),rt.match_length>rt.lookahead&&(rt.match_length=rt.lookahead)}if(rt.match_length>=A?(zt=s._tr_tally(rt,1,rt.match_length-A),rt.lookahead-=rt.match_length,rt.strstart+=rt.match_length,rt.match_length=0):(zt=s._tr_tally(rt,0,rt.window[rt.strstart]),rt.lookahead--,rt.strstart++),zt&&(K(rt,!1),rt.strm.avail_out===0))return k}return rt.insert=0,It===d?(K(rt,!0),rt.strm.avail_out===0?F:W):rt.last_lit&&(K(rt,!1),rt.strm.avail_out===0)?k:z}(Z,st):o[Z.level].func(Z,st);if(gt!==F&&gt!==W||(Z.status=666),gt===k||gt===F)return O.avail_out===0&&(Z.last_flush=-1),f;if(gt===z&&(st===1?s._tr_align(Z):st!==5&&(s._tr_stored_block(Z,0,0,!1),st===3&&(J(Z.head),Z.lookahead===0&&(Z.strstart=0,Z.block_start=0,Z.insert=0))),H(O),O.avail_out===0))return Z.last_flush=-1,f}return st!==d?f:Z.wrap<=0?1:(Z.wrap===2?(ut(Z,255&O.adler),ut(Z,O.adler>>8&255),ut(Z,O.adler>>16&255),ut(Z,O.adler>>24&255),ut(Z,255&O.total_in),ut(Z,O.total_in>>8&255),ut(Z,O.total_in>>16&255),ut(Z,O.total_in>>24&255)):(at(Z,O.adler>>>16),at(Z,65535&O.adler)),H(O),0<Z.wrap&&(Z.wrap=-Z.wrap),Z.pending!==0?f:1)},i.deflateEnd=function(O){var st;return O&&O.state?(st=O.state.status)!==L&&st!==69&&st!==73&&st!==91&&st!==103&&st!==E&&st!==666?q(O,g):(O.state=null,st===E?q(O,-3):f):g},i.deflateSetDictionary=function(O,st){var it,Z,U,tt,ft,gt,rt,It,zt=st.length;if(!O||!O.state||(tt=(it=O.state).wrap)===2||tt===1&&it.status!==L||it.lookahead)return g;for(tt===1&&(O.adler=l(O.adler,st,zt,0)),it.wrap=0,zt>=it.w_size&&(tt===0&&(J(it.head),it.strstart=0,it.block_start=0,it.insert=0),It=new a.Buf8(it.w_size),a.arraySet(It,st,zt-it.w_size,it.w_size,0),st=It,zt=it.w_size),ft=O.avail_in,gt=O.next_in,rt=O.input,O.avail_in=zt,O.next_in=0,O.input=st,Rt(it);it.lookahead>=A;){for(Z=it.strstart,U=it.lookahead-(A-1);it.ins_h=(it.ins_h<<it.hash_shift^it.window[Z+A-1])&it.hash_mask,it.prev[Z&it.w_mask]=it.head[it.ins_h],it.head[it.ins_h]=Z,Z++,--U;);it.strstart=Z,it.lookahead=A-1,Rt(it)}return it.strstart+=it.lookahead,it.block_start=it.strstart,it.insert=it.lookahead,it.lookahead=0,it.match_length=it.prev_length=A-1,it.match_available=0,O.next_in=gt,O.input=rt,O.avail_in=ft,it.wrap=tt,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,r,i){r.exports=function(o,a){var s,l,u,c,h,d,f,g,y,_,v,p,x,b,S,M,I,C,A,D,N,L,E,k,z;s=o.state,l=o.next_in,k=o.input,u=l+(o.avail_in-5),c=o.next_out,z=o.output,h=c-(a-o.avail_out),d=c+(o.avail_out-257),f=s.dmax,g=s.wsize,y=s.whave,_=s.wnext,v=s.window,p=s.hold,x=s.bits,b=s.lencode,S=s.distcode,M=(1<<s.lenbits)-1,I=(1<<s.distbits)-1;t:do{x<15&&(p+=k[l++]<<x,x+=8,p+=k[l++]<<x,x+=8),C=b[p&M];e:for(;;){if(p>>>=A=C>>>24,x-=A,(A=C>>>16&255)===0)z[c++]=65535&C;else{if(!(16&A)){if(!(64&A)){C=b[(65535&C)+(p&(1<<A)-1)];continue e}if(32&A){s.mode=12;break t}o.msg="invalid literal/length code",s.mode=30;break t}D=65535&C,(A&=15)&&(x<A&&(p+=k[l++]<<x,x+=8),D+=p&(1<<A)-1,p>>>=A,x-=A),x<15&&(p+=k[l++]<<x,x+=8,p+=k[l++]<<x,x+=8),C=S[p&I];n:for(;;){if(p>>>=A=C>>>24,x-=A,!(16&(A=C>>>16&255))){if(!(64&A)){C=S[(65535&C)+(p&(1<<A)-1)];continue n}o.msg="invalid distance code",s.mode=30;break t}if(N=65535&C,x<(A&=15)&&(p+=k[l++]<<x,(x+=8)<A&&(p+=k[l++]<<x,x+=8)),f<(N+=p&(1<<A)-1)){o.msg="invalid distance too far back",s.mode=30;break t}if(p>>>=A,x-=A,(A=c-h)<N){if(y<(A=N-A)&&s.sane){o.msg="invalid distance too far back",s.mode=30;break t}if(E=v,(L=0)===_){if(L+=g-A,A<D){for(D-=A;z[c++]=v[L++],--A;);L=c-N,E=z}}else if(_<A){if(L+=g+_-A,(A-=_)<D){for(D-=A;z[c++]=v[L++],--A;);if(L=0,_<D){for(D-=A=_;z[c++]=v[L++],--A;);L=c-N,E=z}}}else if(L+=_-A,A<D){for(D-=A;z[c++]=v[L++],--A;);L=c-N,E=z}for(;2<D;)z[c++]=E[L++],z[c++]=E[L++],z[c++]=E[L++],D-=3;D&&(z[c++]=E[L++],1<D&&(z[c++]=E[L++]))}else{for(L=c-N;z[c++]=z[L++],z[c++]=z[L++],z[c++]=z[L++],2<(D-=3););D&&(z[c++]=z[L++],1<D&&(z[c++]=z[L++]))}break}}break}}while(l<u&&c<d);l-=D=x>>3,p&=(1<<(x-=D<<3))-1,o.next_in=l,o.next_out=c,o.avail_in=l<u?u-l+5:5-(l-u),o.avail_out=c<d?d-c+257:257-(c-d),s.hold=p,s.bits=x}},{}],49:[function(t,r,i){var o=t("../utils/common"),a=t("./adler32"),s=t("./crc32"),l=t("./inffast"),u=t("./inftrees"),c=1,h=2,d=0,f=-2,g=1,y=852,_=592;function v(L){return(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function p(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function x(L){var E;return L&&L.state?(E=L.state,L.total_in=L.total_out=E.total=0,L.msg="",E.wrap&&(L.adler=1&E.wrap),E.mode=g,E.last=0,E.havedict=0,E.dmax=32768,E.head=null,E.hold=0,E.bits=0,E.lencode=E.lendyn=new o.Buf32(y),E.distcode=E.distdyn=new o.Buf32(_),E.sane=1,E.back=-1,d):f}function b(L){var E;return L&&L.state?((E=L.state).wsize=0,E.whave=0,E.wnext=0,x(L)):f}function S(L,E){var k,z;return L&&L.state?(z=L.state,E<0?(k=0,E=-E):(k=1+(E>>4),E<48&&(E&=15)),E&&(E<8||15<E)?f:(z.window!==null&&z.wbits!==E&&(z.window=null),z.wrap=k,z.wbits=E,b(L))):f}function M(L,E){var k,z;return L?(z=new p,(L.state=z).window=null,(k=S(L,E))!==d&&(L.state=null),k):f}var I,C,A=!0;function D(L){if(A){var E;for(I=new o.Buf32(512),C=new o.Buf32(32),E=0;E<144;)L.lens[E++]=8;for(;E<256;)L.lens[E++]=9;for(;E<280;)L.lens[E++]=7;for(;E<288;)L.lens[E++]=8;for(u(c,L.lens,0,288,I,0,L.work,{bits:9}),E=0;E<32;)L.lens[E++]=5;u(h,L.lens,0,32,C,0,L.work,{bits:5}),A=!1}L.lencode=I,L.lenbits=9,L.distcode=C,L.distbits=5}function N(L,E,k,z){var F,W=L.state;return W.window===null&&(W.wsize=1<<W.wbits,W.wnext=0,W.whave=0,W.window=new o.Buf8(W.wsize)),z>=W.wsize?(o.arraySet(W.window,E,k-W.wsize,W.wsize,0),W.wnext=0,W.whave=W.wsize):(z<(F=W.wsize-W.wnext)&&(F=z),o.arraySet(W.window,E,k-z,F,W.wnext),(z-=F)?(o.arraySet(W.window,E,k-z,z,0),W.wnext=z,W.whave=W.wsize):(W.wnext+=F,W.wnext===W.wsize&&(W.wnext=0),W.whave<W.wsize&&(W.whave+=F))),0}i.inflateReset=b,i.inflateReset2=S,i.inflateResetKeep=x,i.inflateInit=function(L){return M(L,15)},i.inflateInit2=M,i.inflate=function(L,E){var k,z,F,W,q,j,J,H,K,ut,at,ot,Rt,Jt,wt,xt,Ot,bt,Nt,se,O,st,it,Z,U=0,tt=new o.Buf8(4),ft=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return f;(k=L.state).mode===12&&(k.mode=13),q=L.next_out,F=L.output,J=L.avail_out,W=L.next_in,z=L.input,j=L.avail_in,H=k.hold,K=k.bits,ut=j,at=J,st=d;t:for(;;)switch(k.mode){case g:if(k.wrap===0){k.mode=13;break}for(;K<16;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if(2&k.wrap&&H===35615){tt[k.check=0]=255&H,tt[1]=H>>>8&255,k.check=s(k.check,tt,2,0),K=H=0,k.mode=2;break}if(k.flags=0,k.head&&(k.head.done=!1),!(1&k.wrap)||(((255&H)<<8)+(H>>8))%31){L.msg="incorrect header check",k.mode=30;break}if((15&H)!=8){L.msg="unknown compression method",k.mode=30;break}if(K-=4,O=8+(15&(H>>>=4)),k.wbits===0)k.wbits=O;else if(O>k.wbits){L.msg="invalid window size",k.mode=30;break}k.dmax=1<<O,L.adler=k.check=1,k.mode=512&H?10:12,K=H=0;break;case 2:for(;K<16;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if(k.flags=H,(255&k.flags)!=8){L.msg="unknown compression method",k.mode=30;break}if(57344&k.flags){L.msg="unknown header flags set",k.mode=30;break}k.head&&(k.head.text=H>>8&1),512&k.flags&&(tt[0]=255&H,tt[1]=H>>>8&255,k.check=s(k.check,tt,2,0)),K=H=0,k.mode=3;case 3:for(;K<32;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}k.head&&(k.head.time=H),512&k.flags&&(tt[0]=255&H,tt[1]=H>>>8&255,tt[2]=H>>>16&255,tt[3]=H>>>24&255,k.check=s(k.check,tt,4,0)),K=H=0,k.mode=4;case 4:for(;K<16;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}k.head&&(k.head.xflags=255&H,k.head.os=H>>8),512&k.flags&&(tt[0]=255&H,tt[1]=H>>>8&255,k.check=s(k.check,tt,2,0)),K=H=0,k.mode=5;case 5:if(1024&k.flags){for(;K<16;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}k.length=H,k.head&&(k.head.extra_len=H),512&k.flags&&(tt[0]=255&H,tt[1]=H>>>8&255,k.check=s(k.check,tt,2,0)),K=H=0}else k.head&&(k.head.extra=null);k.mode=6;case 6:if(1024&k.flags&&(j<(ot=k.length)&&(ot=j),ot&&(k.head&&(O=k.head.extra_len-k.length,k.head.extra||(k.head.extra=new Array(k.head.extra_len)),o.arraySet(k.head.extra,z,W,ot,O)),512&k.flags&&(k.check=s(k.check,z,ot,W)),j-=ot,W+=ot,k.length-=ot),k.length))break t;k.length=0,k.mode=7;case 7:if(2048&k.flags){if(j===0)break t;for(ot=0;O=z[W+ot++],k.head&&O&&k.length<65536&&(k.head.name+=String.fromCharCode(O)),O&&ot<j;);if(512&k.flags&&(k.check=s(k.check,z,ot,W)),j-=ot,W+=ot,O)break t}else k.head&&(k.head.name=null);k.length=0,k.mode=8;case 8:if(4096&k.flags){if(j===0)break t;for(ot=0;O=z[W+ot++],k.head&&O&&k.length<65536&&(k.head.comment+=String.fromCharCode(O)),O&&ot<j;);if(512&k.flags&&(k.check=s(k.check,z,ot,W)),j-=ot,W+=ot,O)break t}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(512&k.flags){for(;K<16;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if(H!==(65535&k.check)){L.msg="header crc mismatch",k.mode=30;break}K=H=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),L.adler=k.check=0,k.mode=12;break;case 10:for(;K<32;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}L.adler=k.check=v(H),K=H=0,k.mode=11;case 11:if(k.havedict===0)return L.next_out=q,L.avail_out=J,L.next_in=W,L.avail_in=j,k.hold=H,k.bits=K,2;L.adler=k.check=1,k.mode=12;case 12:if(E===5||E===6)break t;case 13:if(k.last){H>>>=7&K,K-=7&K,k.mode=27;break}for(;K<3;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}switch(k.last=1&H,K-=1,3&(H>>>=1)){case 0:k.mode=14;break;case 1:if(D(k),k.mode=20,E!==6)break;H>>>=2,K-=2;break t;case 2:k.mode=17;break;case 3:L.msg="invalid block type",k.mode=30}H>>>=2,K-=2;break;case 14:for(H>>>=7&K,K-=7&K;K<32;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if((65535&H)!=(H>>>16^65535)){L.msg="invalid stored block lengths",k.mode=30;break}if(k.length=65535&H,K=H=0,k.mode=15,E===6)break t;case 15:k.mode=16;case 16:if(ot=k.length){if(j<ot&&(ot=j),J<ot&&(ot=J),ot===0)break t;o.arraySet(F,z,W,ot,q),j-=ot,W+=ot,J-=ot,q+=ot,k.length-=ot;break}k.mode=12;break;case 17:for(;K<14;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if(k.nlen=257+(31&H),H>>>=5,K-=5,k.ndist=1+(31&H),H>>>=5,K-=5,k.ncode=4+(15&H),H>>>=4,K-=4,286<k.nlen||30<k.ndist){L.msg="too many length or distance symbols",k.mode=30;break}k.have=0,k.mode=18;case 18:for(;k.have<k.ncode;){for(;K<3;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}k.lens[ft[k.have++]]=7&H,H>>>=3,K-=3}for(;k.have<19;)k.lens[ft[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,it={bits:k.lenbits},st=u(0,k.lens,0,19,k.lencode,0,k.work,it),k.lenbits=it.bits,st){L.msg="invalid code lengths set",k.mode=30;break}k.have=0,k.mode=19;case 19:for(;k.have<k.nlen+k.ndist;){for(;xt=(U=k.lencode[H&(1<<k.lenbits)-1])>>>16&255,Ot=65535&U,!((wt=U>>>24)<=K);){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if(Ot<16)H>>>=wt,K-=wt,k.lens[k.have++]=Ot;else{if(Ot===16){for(Z=wt+2;K<Z;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if(H>>>=wt,K-=wt,k.have===0){L.msg="invalid bit length repeat",k.mode=30;break}O=k.lens[k.have-1],ot=3+(3&H),H>>>=2,K-=2}else if(Ot===17){for(Z=wt+3;K<Z;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}K-=wt,O=0,ot=3+(7&(H>>>=wt)),H>>>=3,K-=3}else{for(Z=wt+7;K<Z;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}K-=wt,O=0,ot=11+(127&(H>>>=wt)),H>>>=7,K-=7}if(k.have+ot>k.nlen+k.ndist){L.msg="invalid bit length repeat",k.mode=30;break}for(;ot--;)k.lens[k.have++]=O}}if(k.mode===30)break;if(k.lens[256]===0){L.msg="invalid code -- missing end-of-block",k.mode=30;break}if(k.lenbits=9,it={bits:k.lenbits},st=u(c,k.lens,0,k.nlen,k.lencode,0,k.work,it),k.lenbits=it.bits,st){L.msg="invalid literal/lengths set",k.mode=30;break}if(k.distbits=6,k.distcode=k.distdyn,it={bits:k.distbits},st=u(h,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,it),k.distbits=it.bits,st){L.msg="invalid distances set",k.mode=30;break}if(k.mode=20,E===6)break t;case 20:k.mode=21;case 21:if(6<=j&&258<=J){L.next_out=q,L.avail_out=J,L.next_in=W,L.avail_in=j,k.hold=H,k.bits=K,l(L,at),q=L.next_out,F=L.output,J=L.avail_out,W=L.next_in,z=L.input,j=L.avail_in,H=k.hold,K=k.bits,k.mode===12&&(k.back=-1);break}for(k.back=0;xt=(U=k.lencode[H&(1<<k.lenbits)-1])>>>16&255,Ot=65535&U,!((wt=U>>>24)<=K);){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if(xt&&!(240&xt)){for(bt=wt,Nt=xt,se=Ot;xt=(U=k.lencode[se+((H&(1<<bt+Nt)-1)>>bt)])>>>16&255,Ot=65535&U,!(bt+(wt=U>>>24)<=K);){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}H>>>=bt,K-=bt,k.back+=bt}if(H>>>=wt,K-=wt,k.back+=wt,k.length=Ot,xt===0){k.mode=26;break}if(32&xt){k.back=-1,k.mode=12;break}if(64&xt){L.msg="invalid literal/length code",k.mode=30;break}k.extra=15&xt,k.mode=22;case 22:if(k.extra){for(Z=k.extra;K<Z;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}k.length+=H&(1<<k.extra)-1,H>>>=k.extra,K-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=23;case 23:for(;xt=(U=k.distcode[H&(1<<k.distbits)-1])>>>16&255,Ot=65535&U,!((wt=U>>>24)<=K);){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if(!(240&xt)){for(bt=wt,Nt=xt,se=Ot;xt=(U=k.distcode[se+((H&(1<<bt+Nt)-1)>>bt)])>>>16&255,Ot=65535&U,!(bt+(wt=U>>>24)<=K);){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}H>>>=bt,K-=bt,k.back+=bt}if(H>>>=wt,K-=wt,k.back+=wt,64&xt){L.msg="invalid distance code",k.mode=30;break}k.offset=Ot,k.extra=15&xt,k.mode=24;case 24:if(k.extra){for(Z=k.extra;K<Z;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}k.offset+=H&(1<<k.extra)-1,H>>>=k.extra,K-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){L.msg="invalid distance too far back",k.mode=30;break}k.mode=25;case 25:if(J===0)break t;if(ot=at-J,k.offset>ot){if((ot=k.offset-ot)>k.whave&&k.sane){L.msg="invalid distance too far back",k.mode=30;break}Rt=ot>k.wnext?(ot-=k.wnext,k.wsize-ot):k.wnext-ot,ot>k.length&&(ot=k.length),Jt=k.window}else Jt=F,Rt=q-k.offset,ot=k.length;for(J<ot&&(ot=J),J-=ot,k.length-=ot;F[q++]=Jt[Rt++],--ot;);k.length===0&&(k.mode=21);break;case 26:if(J===0)break t;F[q++]=k.length,J--,k.mode=21;break;case 27:if(k.wrap){for(;K<32;){if(j===0)break t;j--,H|=z[W++]<<K,K+=8}if(at-=J,L.total_out+=at,k.total+=at,at&&(L.adler=k.check=k.flags?s(k.check,F,at,q-at):a(k.check,F,at,q-at)),at=J,(k.flags?H:v(H))!==k.check){L.msg="incorrect data check",k.mode=30;break}K=H=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;K<32;){if(j===0)break t;j--,H+=z[W++]<<K,K+=8}if(H!==(4294967295&k.total)){L.msg="incorrect length check",k.mode=30;break}K=H=0}k.mode=29;case 29:st=1;break t;case 30:st=-3;break t;case 31:return-4;case 32:default:return f}return L.next_out=q,L.avail_out=J,L.next_in=W,L.avail_in=j,k.hold=H,k.bits=K,(k.wsize||at!==L.avail_out&&k.mode<30&&(k.mode<27||E!==4))&&N(L,L.output,L.next_out,at-L.avail_out)?(k.mode=31,-4):(ut-=L.avail_in,at-=L.avail_out,L.total_in+=ut,L.total_out+=at,k.total+=at,k.wrap&&at&&(L.adler=k.check=k.flags?s(k.check,F,at,L.next_out-at):a(k.check,F,at,L.next_out-at)),L.data_type=k.bits+(k.last?64:0)+(k.mode===12?128:0)+(k.mode===20||k.mode===15?256:0),(ut==0&&at===0||E===4)&&st===d&&(st=-5),st)},i.inflateEnd=function(L){if(!L||!L.state)return f;var E=L.state;return E.window&&(E.window=null),L.state=null,d},i.inflateGetHeader=function(L,E){var k;return L&&L.state&&2&(k=L.state).wrap?((k.head=E).done=!1,d):f},i.inflateSetDictionary=function(L,E){var k,z=E.length;return L&&L.state?(k=L.state).wrap!==0&&k.mode!==11?f:k.mode===11&&a(1,E,z,0)!==k.check?-3:N(L,E,z,z)?(k.mode=31,-4):(k.havedict=1,d):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,r,i){var o=t("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(c,h,d,f,g,y,_,v){var p,x,b,S,M,I,C,A,D,N=v.bits,L=0,E=0,k=0,z=0,F=0,W=0,q=0,j=0,J=0,H=0,K=null,ut=0,at=new o.Buf16(16),ot=new o.Buf16(16),Rt=null,Jt=0;for(L=0;L<=15;L++)at[L]=0;for(E=0;E<f;E++)at[h[d+E]]++;for(F=N,z=15;1<=z&&at[z]===0;z--);if(z<F&&(F=z),z===0)return g[y++]=20971520,g[y++]=20971520,v.bits=1,0;for(k=1;k<z&&at[k]===0;k++);for(F<k&&(F=k),L=j=1;L<=15;L++)if(j<<=1,(j-=at[L])<0)return-1;if(0<j&&(c===0||z!==1))return-1;for(ot[1]=0,L=1;L<15;L++)ot[L+1]=ot[L]+at[L];for(E=0;E<f;E++)h[d+E]!==0&&(_[ot[h[d+E]]++]=E);if(I=c===0?(K=Rt=_,19):c===1?(K=a,ut-=257,Rt=s,Jt-=257,256):(K=l,Rt=u,-1),L=k,M=y,q=E=H=0,b=-1,S=(J=1<<(W=F))-1,c===1&&852<J||c===2&&592<J)return 1;for(;;){for(C=L-q,D=_[E]<I?(A=0,_[E]):_[E]>I?(A=Rt[Jt+_[E]],K[ut+_[E]]):(A=96,0),p=1<<L-q,k=x=1<<W;g[M+(H>>q)+(x-=p)]=C<<24|A<<16|D|0,x!==0;);for(p=1<<L-1;H&p;)p>>=1;if(p!==0?(H&=p-1,H+=p):H=0,E++,--at[L]==0){if(L===z)break;L=h[d+_[E]]}if(F<L&&(H&S)!==b){for(q===0&&(q=F),M+=k,j=1<<(W=L-q);W+q<z&&!((j-=at[W+q])<=0);)W++,j<<=1;if(J+=1<<W,c===1&&852<J||c===2&&592<J)return 1;g[b=H&S]=F<<24|W<<16|M-y|0}}return H!==0&&(g[M+H]=L-q<<24|64<<16|0),v.bits=F,0}},{"../utils/common":41}],51:[function(t,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,r,i){var o=t("../utils/common"),a=0,s=1;function l(U){for(var tt=U.length;0<=--tt;)U[tt]=0}var u=0,c=29,h=256,d=h+1+c,f=30,g=19,y=2*d+1,_=15,v=16,p=7,x=256,b=16,S=17,M=18,I=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=new Array(2*(d+2));l(N);var L=new Array(2*f);l(L);var E=new Array(512);l(E);var k=new Array(256);l(k);var z=new Array(c);l(z);var F,W,q,j=new Array(f);function J(U,tt,ft,gt,rt){this.static_tree=U,this.extra_bits=tt,this.extra_base=ft,this.elems=gt,this.max_length=rt,this.has_stree=U&&U.length}function H(U,tt){this.dyn_tree=U,this.max_code=0,this.stat_desc=tt}function K(U){return U<256?E[U]:E[256+(U>>>7)]}function ut(U,tt){U.pending_buf[U.pending++]=255&tt,U.pending_buf[U.pending++]=tt>>>8&255}function at(U,tt,ft){U.bi_valid>v-ft?(U.bi_buf|=tt<<U.bi_valid&65535,ut(U,U.bi_buf),U.bi_buf=tt>>v-U.bi_valid,U.bi_valid+=ft-v):(U.bi_buf|=tt<<U.bi_valid&65535,U.bi_valid+=ft)}function ot(U,tt,ft){at(U,ft[2*tt],ft[2*tt+1])}function Rt(U,tt){for(var ft=0;ft|=1&U,U>>>=1,ft<<=1,0<--tt;);return ft>>>1}function Jt(U,tt,ft){var gt,rt,It=new Array(_+1),zt=0;for(gt=1;gt<=_;gt++)It[gt]=zt=zt+ft[gt-1]<<1;for(rt=0;rt<=tt;rt++){var Ct=U[2*rt+1];Ct!==0&&(U[2*rt]=Rt(It[Ct]++,Ct))}}function wt(U){var tt;for(tt=0;tt<d;tt++)U.dyn_ltree[2*tt]=0;for(tt=0;tt<f;tt++)U.dyn_dtree[2*tt]=0;for(tt=0;tt<g;tt++)U.bl_tree[2*tt]=0;U.dyn_ltree[2*x]=1,U.opt_len=U.static_len=0,U.last_lit=U.matches=0}function xt(U){8<U.bi_valid?ut(U,U.bi_buf):0<U.bi_valid&&(U.pending_buf[U.pending++]=U.bi_buf),U.bi_buf=0,U.bi_valid=0}function Ot(U,tt,ft,gt){var rt=2*tt,It=2*ft;return U[rt]<U[It]||U[rt]===U[It]&&gt[tt]<=gt[ft]}function bt(U,tt,ft){for(var gt=U.heap[ft],rt=ft<<1;rt<=U.heap_len&&(rt<U.heap_len&&Ot(tt,U.heap[rt+1],U.heap[rt],U.depth)&&rt++,!Ot(tt,gt,U.heap[rt],U.depth));)U.heap[ft]=U.heap[rt],ft=rt,rt<<=1;U.heap[ft]=gt}function Nt(U,tt,ft){var gt,rt,It,zt,Ct=0;if(U.last_lit!==0)for(;gt=U.pending_buf[U.d_buf+2*Ct]<<8|U.pending_buf[U.d_buf+2*Ct+1],rt=U.pending_buf[U.l_buf+Ct],Ct++,gt===0?ot(U,rt,tt):(ot(U,(It=k[rt])+h+1,tt),(zt=I[It])!==0&&at(U,rt-=z[It],zt),ot(U,It=K(--gt),ft),(zt=C[It])!==0&&at(U,gt-=j[It],zt)),Ct<U.last_lit;);ot(U,x,tt)}function se(U,tt){var ft,gt,rt,It=tt.dyn_tree,zt=tt.stat_desc.static_tree,Ct=tt.stat_desc.has_stree,Zt=tt.stat_desc.elems,Te=-1;for(U.heap_len=0,U.heap_max=y,ft=0;ft<Zt;ft++)It[2*ft]!==0?(U.heap[++U.heap_len]=Te=ft,U.depth[ft]=0):It[2*ft+1]=0;for(;U.heap_len<2;)It[2*(rt=U.heap[++U.heap_len]=Te<2?++Te:0)]=1,U.depth[rt]=0,U.opt_len--,Ct&&(U.static_len-=zt[2*rt+1]);for(tt.max_code=Te,ft=U.heap_len>>1;1<=ft;ft--)bt(U,It,ft);for(rt=Zt;ft=U.heap[1],U.heap[1]=U.heap[U.heap_len--],bt(U,It,1),gt=U.heap[1],U.heap[--U.heap_max]=ft,U.heap[--U.heap_max]=gt,It[2*rt]=It[2*ft]+It[2*gt],U.depth[rt]=(U.depth[ft]>=U.depth[gt]?U.depth[ft]:U.depth[gt])+1,It[2*ft+1]=It[2*gt+1]=rt,U.heap[1]=rt++,bt(U,It,1),2<=U.heap_len;);U.heap[--U.heap_max]=U.heap[1],function(ce,fn){var Ir,Cn,Tr,Fe,ti,Ii,En=fn.dyn_tree,eo=fn.max_code,Qs=fn.stat_desc.static_tree,we=fn.stat_desc.has_stree,un=fn.stat_desc.extra_bits,Uh=fn.stat_desc.extra_base,Aa=fn.stat_desc.max_length,wu=0;for(Fe=0;Fe<=_;Fe++)ce.bl_count[Fe]=0;for(En[2*ce.heap[ce.heap_max]+1]=0,Ir=ce.heap_max+1;Ir<y;Ir++)Aa<(Fe=En[2*En[2*(Cn=ce.heap[Ir])+1]+1]+1)&&(Fe=Aa,wu++),En[2*Cn+1]=Fe,eo<Cn||(ce.bl_count[Fe]++,ti=0,Uh<=Cn&&(ti=un[Cn-Uh]),Ii=En[2*Cn],ce.opt_len+=Ii*(Fe+ti),we&&(ce.static_len+=Ii*(Qs[2*Cn+1]+ti)));if(wu!==0){do{for(Fe=Aa-1;ce.bl_count[Fe]===0;)Fe--;ce.bl_count[Fe]--,ce.bl_count[Fe+1]+=2,ce.bl_count[Aa]--,wu-=2}while(0<wu);for(Fe=Aa;Fe!==0;Fe--)for(Cn=ce.bl_count[Fe];Cn!==0;)eo<(Tr=ce.heap[--Ir])||(En[2*Tr+1]!==Fe&&(ce.opt_len+=(Fe-En[2*Tr+1])*En[2*Tr],En[2*Tr+1]=Fe),Cn--)}}(U,tt),Jt(It,Te,U.bl_count)}function O(U,tt,ft){var gt,rt,It=-1,zt=tt[1],Ct=0,Zt=7,Te=4;for(zt===0&&(Zt=138,Te=3),tt[2*(ft+1)+1]=65535,gt=0;gt<=ft;gt++)rt=zt,zt=tt[2*(gt+1)+1],++Ct<Zt&&rt===zt||(Ct<Te?U.bl_tree[2*rt]+=Ct:rt!==0?(rt!==It&&U.bl_tree[2*rt]++,U.bl_tree[2*b]++):Ct<=10?U.bl_tree[2*S]++:U.bl_tree[2*M]++,It=rt,Te=(Ct=0)===zt?(Zt=138,3):rt===zt?(Zt=6,3):(Zt=7,4))}function st(U,tt,ft){var gt,rt,It=-1,zt=tt[1],Ct=0,Zt=7,Te=4;for(zt===0&&(Zt=138,Te=3),gt=0;gt<=ft;gt++)if(rt=zt,zt=tt[2*(gt+1)+1],!(++Ct<Zt&&rt===zt)){if(Ct<Te)for(;ot(U,rt,U.bl_tree),--Ct!=0;);else rt!==0?(rt!==It&&(ot(U,rt,U.bl_tree),Ct--),ot(U,b,U.bl_tree),at(U,Ct-3,2)):Ct<=10?(ot(U,S,U.bl_tree),at(U,Ct-3,3)):(ot(U,M,U.bl_tree),at(U,Ct-11,7));It=rt,Te=(Ct=0)===zt?(Zt=138,3):rt===zt?(Zt=6,3):(Zt=7,4)}}l(j);var it=!1;function Z(U,tt,ft,gt){at(U,(u<<1)+(gt?1:0),3),function(rt,It,zt,Ct){xt(rt),ut(rt,zt),ut(rt,~zt),o.arraySet(rt.pending_buf,rt.window,It,zt,rt.pending),rt.pending+=zt}(U,tt,ft)}i._tr_init=function(U){it||(function(){var tt,ft,gt,rt,It,zt=new Array(_+1);for(rt=gt=0;rt<c-1;rt++)for(z[rt]=gt,tt=0;tt<1<<I[rt];tt++)k[gt++]=rt;for(k[gt-1]=rt,rt=It=0;rt<16;rt++)for(j[rt]=It,tt=0;tt<1<<C[rt];tt++)E[It++]=rt;for(It>>=7;rt<f;rt++)for(j[rt]=It<<7,tt=0;tt<1<<C[rt]-7;tt++)E[256+It++]=rt;for(ft=0;ft<=_;ft++)zt[ft]=0;for(tt=0;tt<=143;)N[2*tt+1]=8,tt++,zt[8]++;for(;tt<=255;)N[2*tt+1]=9,tt++,zt[9]++;for(;tt<=279;)N[2*tt+1]=7,tt++,zt[7]++;for(;tt<=287;)N[2*tt+1]=8,tt++,zt[8]++;for(Jt(N,d+1,zt),tt=0;tt<f;tt++)L[2*tt+1]=5,L[2*tt]=Rt(tt,5);F=new J(N,I,h+1,d,_),W=new J(L,C,0,f,_),q=new J(new Array(0),A,0,g,p)}(),it=!0),U.l_desc=new H(U.dyn_ltree,F),U.d_desc=new H(U.dyn_dtree,W),U.bl_desc=new H(U.bl_tree,q),U.bi_buf=0,U.bi_valid=0,wt(U)},i._tr_stored_block=Z,i._tr_flush_block=function(U,tt,ft,gt){var rt,It,zt=0;0<U.level?(U.strm.data_type===2&&(U.strm.data_type=function(Ct){var Zt,Te=4093624447;for(Zt=0;Zt<=31;Zt++,Te>>>=1)if(1&Te&&Ct.dyn_ltree[2*Zt]!==0)return a;if(Ct.dyn_ltree[18]!==0||Ct.dyn_ltree[20]!==0||Ct.dyn_ltree[26]!==0)return s;for(Zt=32;Zt<h;Zt++)if(Ct.dyn_ltree[2*Zt]!==0)return s;return a}(U)),se(U,U.l_desc),se(U,U.d_desc),zt=function(Ct){var Zt;for(O(Ct,Ct.dyn_ltree,Ct.l_desc.max_code),O(Ct,Ct.dyn_dtree,Ct.d_desc.max_code),se(Ct,Ct.bl_desc),Zt=g-1;3<=Zt&&Ct.bl_tree[2*D[Zt]+1]===0;Zt--);return Ct.opt_len+=3*(Zt+1)+5+5+4,Zt}(U),rt=U.opt_len+3+7>>>3,(It=U.static_len+3+7>>>3)<=rt&&(rt=It)):rt=It=ft+5,ft+4<=rt&&tt!==-1?Z(U,tt,ft,gt):U.strategy===4||It===rt?(at(U,2+(gt?1:0),3),Nt(U,N,L)):(at(U,4+(gt?1:0),3),function(Ct,Zt,Te,ce){var fn;for(at(Ct,Zt-257,5),at(Ct,Te-1,5),at(Ct,ce-4,4),fn=0;fn<ce;fn++)at(Ct,Ct.bl_tree[2*D[fn]+1],3);st(Ct,Ct.dyn_ltree,Zt-1),st(Ct,Ct.dyn_dtree,Te-1)}(U,U.l_desc.max_code+1,U.d_desc.max_code+1,zt+1),Nt(U,U.dyn_ltree,U.dyn_dtree)),wt(U),gt&&xt(U)},i._tr_tally=function(U,tt,ft){return U.pending_buf[U.d_buf+2*U.last_lit]=tt>>>8&255,U.pending_buf[U.d_buf+2*U.last_lit+1]=255&tt,U.pending_buf[U.l_buf+U.last_lit]=255&ft,U.last_lit++,tt===0?U.dyn_ltree[2*ft]++:(U.matches++,tt--,U.dyn_ltree[2*(k[ft]+h+1)]++,U.dyn_dtree[2*K(tt)]++),U.last_lit===U.lit_bufsize-1},i._tr_align=function(U){at(U,2,3),ot(U,x,N),function(tt){tt.bi_valid===16?(ut(tt,tt.bi_buf),tt.bi_buf=0,tt.bi_valid=0):8<=tt.bi_valid&&(tt.pending_buf[tt.pending++]=255&tt.bi_buf,tt.bi_buf>>=8,tt.bi_valid-=8)}(U)}},{"../utils/common":41}],53:[function(t,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,r,i){(function(o){(function(a,s){if(!a.setImmediate){var l,u,c,h,d=1,f={},g=!1,y=a.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(a);_=_&&_.setTimeout?_:a,l={}.toString.call(a.process)==="[object process]"?function(b){process.nextTick(function(){p(b)})}:function(){if(a.postMessage&&!a.importScripts){var b=!0,S=a.onmessage;return a.onmessage=function(){b=!1},a.postMessage("","*"),a.onmessage=S,b}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",x,!1):a.attachEvent("onmessage",x),function(b){a.postMessage(h+b,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(b){p(b.data)},function(b){c.port2.postMessage(b)}):y&&"onreadystatechange"in y.createElement("script")?(u=y.documentElement,function(b){var S=y.createElement("script");S.onreadystatechange=function(){p(b),S.onreadystatechange=null,u.removeChild(S),S=null},u.appendChild(S)}):function(b){setTimeout(p,0,b)},_.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var S=new Array(arguments.length-1),M=0;M<S.length;M++)S[M]=arguments[M+1];var I={callback:b,args:S};return f[d]=I,l(d),d++},_.clearImmediate=v}function v(b){delete f[b]}function p(b){if(g)setTimeout(p,0,b);else{var S=f[b];if(S){g=!0;try{(function(M){var I=M.callback,C=M.args;switch(C.length){case 0:I();break;case 1:I(C[0]);break;case 2:I(C[0],C[1]);break;case 3:I(C[0],C[1],C[2]);break;default:I.apply(s,C)}})(S)}finally{v(b),g=!1}}}}function x(b){b.source===a&&typeof b.data=="string"&&b.data.indexOf(h)===0&&p(+b.data.slice(h.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof lo<"u"?lo:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ow);var WO=ow.exports;const jO=GO(WO);var lp={exports:{}};/**
13
+ * @license
14
+ * Lodash <https://lodash.com/>
15
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
16
+ * Released under MIT license <https://lodash.com/license>
17
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
18
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
19
+ */lp.exports,function(n,e){(function(){var t,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",h=1,d=2,f=4,g=1,y=2,_=1,v=2,p=4,x=8,b=16,S=32,M=64,I=128,C=256,A=512,D=30,N="...",L=800,E=16,k=1,z=2,F=3,W=1/0,q=9007199254740991,j=17976931348623157e292,J=NaN,H=4294967295,K=H-1,ut=H>>>1,at=[["ary",I],["bind",_],["bindKey",v],["curry",x],["curryRight",b],["flip",A],["partial",S],["partialRight",M],["rearg",C]],ot="[object Arguments]",Rt="[object Array]",Jt="[object AsyncFunction]",wt="[object Boolean]",xt="[object Date]",Ot="[object DOMException]",bt="[object Error]",Nt="[object Function]",se="[object GeneratorFunction]",O="[object Map]",st="[object Number]",it="[object Null]",Z="[object Object]",U="[object Promise]",tt="[object Proxy]",ft="[object RegExp]",gt="[object Set]",rt="[object String]",It="[object Symbol]",zt="[object Undefined]",Ct="[object WeakMap]",Zt="[object WeakSet]",Te="[object ArrayBuffer]",ce="[object DataView]",fn="[object Float32Array]",Ir="[object Float64Array]",Cn="[object Int8Array]",Tr="[object Int16Array]",Fe="[object Int32Array]",ti="[object Uint8Array]",Ii="[object Uint8ClampedArray]",En="[object Uint16Array]",eo="[object Uint32Array]",Qs=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,un=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uh=/&(?:amp|lt|gt|quot|#39);/g,Aa=/[&<>"']/g,wu=RegExp(Uh.source),pQ=RegExp(Aa.source),dQ=/<%-([\s\S]+?)%>/g,fQ=/<%([\s\S]+?)%>/g,p5=/<%=([\s\S]+?)%>/g,gQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vQ=/^\w*$/,yQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zx=/[\\^$.*+?()[\]{}|]/g,mQ=RegExp(Zx.source),qx=/^\s+/,_Q=/\s/,xQ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bQ=/\{\n\/\* \[wrapped with (.+)\] \*/,wQ=/,? & /,SQ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,MQ=/[()=,{}\[\]\/\s]/,IQ=/\\(\\)?/g,TQ=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,d5=/\w*$/,CQ=/^[-+]0x[0-9a-f]+$/i,AQ=/^0b[01]+$/i,kQ=/^\[object .+?Constructor\]$/,DQ=/^0o[0-7]+$/i,LQ=/^(?:0|[1-9]\d*)$/,NQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tg=/($^)/,PQ=/['\n\r\u2028\u2029\\]/g,Cg="\\ud800-\\udfff",EQ="\\u0300-\\u036f",RQ="\\ufe20-\\ufe2f",OQ="\\u20d0-\\u20ff",f5=EQ+RQ+OQ,g5="\\u2700-\\u27bf",v5="a-z\\xdf-\\xf6\\xf8-\\xff",zQ="\\xac\\xb1\\xd7\\xf7",VQ="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",BQ="\\u2000-\\u206f",FQ=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",y5="A-Z\\xc0-\\xd6\\xd8-\\xde",m5="\\ufe0e\\ufe0f",_5=zQ+VQ+BQ+FQ,Kx="['’]",GQ="["+Cg+"]",x5="["+_5+"]",Ag="["+f5+"]",b5="\\d+",WQ="["+g5+"]",w5="["+v5+"]",S5="[^"+Cg+_5+b5+g5+v5+y5+"]",Yx="\\ud83c[\\udffb-\\udfff]",jQ="(?:"+Ag+"|"+Yx+")",M5="[^"+Cg+"]",Jx="(?:\\ud83c[\\udde6-\\uddff]){2}",$x="[\\ud800-\\udbff][\\udc00-\\udfff]",Su="["+y5+"]",I5="\\u200d",T5="(?:"+w5+"|"+S5+")",HQ="(?:"+Su+"|"+S5+")",C5="(?:"+Kx+"(?:d|ll|m|re|s|t|ve))?",A5="(?:"+Kx+"(?:D|LL|M|RE|S|T|VE))?",k5=jQ+"?",D5="["+m5+"]?",UQ="(?:"+I5+"(?:"+[M5,Jx,$x].join("|")+")"+D5+k5+")*",XQ="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ZQ="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",L5=D5+k5+UQ,qQ="(?:"+[WQ,Jx,$x].join("|")+")"+L5,KQ="(?:"+[M5+Ag+"?",Ag,Jx,$x,GQ].join("|")+")",YQ=RegExp(Kx,"g"),JQ=RegExp(Ag,"g"),Qx=RegExp(Yx+"(?="+Yx+")|"+KQ+L5,"g"),$Q=RegExp([Su+"?"+w5+"+"+C5+"(?="+[x5,Su,"$"].join("|")+")",HQ+"+"+A5+"(?="+[x5,Su+T5,"$"].join("|")+")",Su+"?"+T5+"+"+C5,Su+"+"+A5,ZQ,XQ,b5,qQ].join("|"),"g"),QQ=RegExp("["+I5+Cg+f5+m5+"]"),ttt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ett=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ntt=-1,qe={};qe[fn]=qe[Ir]=qe[Cn]=qe[Tr]=qe[Fe]=qe[ti]=qe[Ii]=qe[En]=qe[eo]=!0,qe[ot]=qe[Rt]=qe[Te]=qe[wt]=qe[ce]=qe[xt]=qe[bt]=qe[Nt]=qe[O]=qe[st]=qe[Z]=qe[ft]=qe[gt]=qe[rt]=qe[Ct]=!1;var Ue={};Ue[ot]=Ue[Rt]=Ue[Te]=Ue[ce]=Ue[wt]=Ue[xt]=Ue[fn]=Ue[Ir]=Ue[Cn]=Ue[Tr]=Ue[Fe]=Ue[O]=Ue[st]=Ue[Z]=Ue[ft]=Ue[gt]=Ue[rt]=Ue[It]=Ue[ti]=Ue[Ii]=Ue[En]=Ue[eo]=!0,Ue[bt]=Ue[Nt]=Ue[Ct]=!1;var rtt={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},itt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ott={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},att={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},stt=parseFloat,ltt=parseInt,N5=typeof lo=="object"&&lo&&lo.Object===Object&&lo,utt=typeof self=="object"&&self&&self.Object===Object&&self,Rn=N5||utt||Function("return this")(),tb=e&&!e.nodeType&&e,tl=tb&&!0&&n&&!n.nodeType&&n,P5=tl&&tl.exports===tb,eb=P5&&N5.process,ei=function(){try{var et=tl&&tl.require&&tl.require("util").types;return et||eb&&eb.binding&&eb.binding("util")}catch{}}(),E5=ei&&ei.isArrayBuffer,R5=ei&&ei.isDate,O5=ei&&ei.isMap,z5=ei&&ei.isRegExp,V5=ei&&ei.isSet,B5=ei&&ei.isTypedArray;function Cr(et,dt,ct){switch(ct.length){case 0:return et.call(dt);case 1:return et.call(dt,ct[0]);case 2:return et.call(dt,ct[0],ct[1]);case 3:return et.call(dt,ct[0],ct[1],ct[2])}return et.apply(dt,ct)}function ctt(et,dt,ct,Gt){for(var he=-1,Ee=et==null?0:et.length;++he<Ee;){var Sn=et[he];dt(Gt,Sn,ct(Sn),et)}return Gt}function ni(et,dt){for(var ct=-1,Gt=et==null?0:et.length;++ct<Gt&&dt(et[ct],ct,et)!==!1;);return et}function htt(et,dt){for(var ct=et==null?0:et.length;ct--&&dt(et[ct],ct,et)!==!1;);return et}function F5(et,dt){for(var ct=-1,Gt=et==null?0:et.length;++ct<Gt;)if(!dt(et[ct],ct,et))return!1;return!0}function ka(et,dt){for(var ct=-1,Gt=et==null?0:et.length,he=0,Ee=[];++ct<Gt;){var Sn=et[ct];dt(Sn,ct,et)&&(Ee[he++]=Sn)}return Ee}function kg(et,dt){var ct=et==null?0:et.length;return!!ct&&Mu(et,dt,0)>-1}function nb(et,dt,ct){for(var Gt=-1,he=et==null?0:et.length;++Gt<he;)if(ct(dt,et[Gt]))return!0;return!1}function Ke(et,dt){for(var ct=-1,Gt=et==null?0:et.length,he=Array(Gt);++ct<Gt;)he[ct]=dt(et[ct],ct,et);return he}function Da(et,dt){for(var ct=-1,Gt=dt.length,he=et.length;++ct<Gt;)et[he+ct]=dt[ct];return et}function rb(et,dt,ct,Gt){var he=-1,Ee=et==null?0:et.length;for(Gt&&Ee&&(ct=et[++he]);++he<Ee;)ct=dt(ct,et[he],he,et);return ct}function ptt(et,dt,ct,Gt){var he=et==null?0:et.length;for(Gt&&he&&(ct=et[--he]);he--;)ct=dt(ct,et[he],he,et);return ct}function ib(et,dt){for(var ct=-1,Gt=et==null?0:et.length;++ct<Gt;)if(dt(et[ct],ct,et))return!0;return!1}var dtt=ob("length");function ftt(et){return et.split("")}function gtt(et){return et.match(SQ)||[]}function G5(et,dt,ct){var Gt;return ct(et,function(he,Ee,Sn){if(dt(he,Ee,Sn))return Gt=Ee,!1}),Gt}function Dg(et,dt,ct,Gt){for(var he=et.length,Ee=ct+(Gt?1:-1);Gt?Ee--:++Ee<he;)if(dt(et[Ee],Ee,et))return Ee;return-1}function Mu(et,dt,ct){return dt===dt?Ctt(et,dt,ct):Dg(et,W5,ct)}function vtt(et,dt,ct,Gt){for(var he=ct-1,Ee=et.length;++he<Ee;)if(Gt(et[he],dt))return he;return-1}function W5(et){return et!==et}function j5(et,dt){var ct=et==null?0:et.length;return ct?sb(et,dt)/ct:J}function ob(et){return function(dt){return dt==null?t:dt[et]}}function ab(et){return function(dt){return et==null?t:et[dt]}}function H5(et,dt,ct,Gt,he){return he(et,function(Ee,Sn,je){ct=Gt?(Gt=!1,Ee):dt(ct,Ee,Sn,je)}),ct}function ytt(et,dt){var ct=et.length;for(et.sort(dt);ct--;)et[ct]=et[ct].value;return et}function sb(et,dt){for(var ct,Gt=-1,he=et.length;++Gt<he;){var Ee=dt(et[Gt]);Ee!==t&&(ct=ct===t?Ee:ct+Ee)}return ct}function lb(et,dt){for(var ct=-1,Gt=Array(et);++ct<et;)Gt[ct]=dt(ct);return Gt}function mtt(et,dt){return Ke(dt,function(ct){return[ct,et[ct]]})}function U5(et){return et&&et.slice(0,K5(et)+1).replace(qx,"")}function Ar(et){return function(dt){return et(dt)}}function ub(et,dt){return Ke(dt,function(ct){return et[ct]})}function Xh(et,dt){return et.has(dt)}function X5(et,dt){for(var ct=-1,Gt=et.length;++ct<Gt&&Mu(dt,et[ct],0)>-1;);return ct}function Z5(et,dt){for(var ct=et.length;ct--&&Mu(dt,et[ct],0)>-1;);return ct}function _tt(et,dt){for(var ct=et.length,Gt=0;ct--;)et[ct]===dt&&++Gt;return Gt}var xtt=ab(rtt),btt=ab(itt);function wtt(et){return"\\"+att[et]}function Stt(et,dt){return et==null?t:et[dt]}function Iu(et){return QQ.test(et)}function Mtt(et){return ttt.test(et)}function Itt(et){for(var dt,ct=[];!(dt=et.next()).done;)ct.push(dt.value);return ct}function cb(et){var dt=-1,ct=Array(et.size);return et.forEach(function(Gt,he){ct[++dt]=[he,Gt]}),ct}function q5(et,dt){return function(ct){return et(dt(ct))}}function La(et,dt){for(var ct=-1,Gt=et.length,he=0,Ee=[];++ct<Gt;){var Sn=et[ct];(Sn===dt||Sn===c)&&(et[ct]=c,Ee[he++]=ct)}return Ee}function Lg(et){var dt=-1,ct=Array(et.size);return et.forEach(function(Gt){ct[++dt]=Gt}),ct}function Ttt(et){var dt=-1,ct=Array(et.size);return et.forEach(function(Gt){ct[++dt]=[Gt,Gt]}),ct}function Ctt(et,dt,ct){for(var Gt=ct-1,he=et.length;++Gt<he;)if(et[Gt]===dt)return Gt;return-1}function Att(et,dt,ct){for(var Gt=ct+1;Gt--;)if(et[Gt]===dt)return Gt;return Gt}function Tu(et){return Iu(et)?Dtt(et):dtt(et)}function Ti(et){return Iu(et)?Ltt(et):ftt(et)}function K5(et){for(var dt=et.length;dt--&&_Q.test(et.charAt(dt)););return dt}var ktt=ab(ott);function Dtt(et){for(var dt=Qx.lastIndex=0;Qx.test(et);)++dt;return dt}function Ltt(et){return et.match(Qx)||[]}function Ntt(et){return et.match($Q)||[]}var Ptt=function et(dt){dt=dt==null?Rn:Cu.defaults(Rn.Object(),dt,Cu.pick(Rn,ett));var ct=dt.Array,Gt=dt.Date,he=dt.Error,Ee=dt.Function,Sn=dt.Math,je=dt.Object,hb=dt.RegExp,Ett=dt.String,ri=dt.TypeError,Ng=ct.prototype,Rtt=Ee.prototype,Au=je.prototype,Pg=dt["__core-js_shared__"],Eg=Rtt.toString,Ge=Au.hasOwnProperty,Ott=0,Y5=function(){var m=/[^.]+$/.exec(Pg&&Pg.keys&&Pg.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),Rg=Au.toString,ztt=Eg.call(je),Vtt=Rn._,Btt=hb("^"+Eg.call(Ge).replace(Zx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Og=P5?dt.Buffer:t,Na=dt.Symbol,zg=dt.Uint8Array,J5=Og?Og.allocUnsafe:t,Vg=q5(je.getPrototypeOf,je),$5=je.create,Q5=Au.propertyIsEnumerable,Bg=Ng.splice,tR=Na?Na.isConcatSpreadable:t,Zh=Na?Na.iterator:t,el=Na?Na.toStringTag:t,Fg=function(){try{var m=al(je,"defineProperty");return m({},"",{}),m}catch{}}(),Ftt=dt.clearTimeout!==Rn.clearTimeout&&dt.clearTimeout,Gtt=Gt&&Gt.now!==Rn.Date.now&&Gt.now,Wtt=dt.setTimeout!==Rn.setTimeout&&dt.setTimeout,Gg=Sn.ceil,Wg=Sn.floor,pb=je.getOwnPropertySymbols,jtt=Og?Og.isBuffer:t,eR=dt.isFinite,Htt=Ng.join,Utt=q5(je.keys,je),Mn=Sn.max,Un=Sn.min,Xtt=Gt.now,Ztt=dt.parseInt,nR=Sn.random,qtt=Ng.reverse,db=al(dt,"DataView"),qh=al(dt,"Map"),fb=al(dt,"Promise"),ku=al(dt,"Set"),Kh=al(dt,"WeakMap"),Yh=al(je,"create"),jg=Kh&&new Kh,Du={},Ktt=sl(db),Ytt=sl(qh),Jtt=sl(fb),$tt=sl(ku),Qtt=sl(Kh),Hg=Na?Na.prototype:t,Jh=Hg?Hg.valueOf:t,rR=Hg?Hg.toString:t;function B(m){if(en(m)&&!pe(m)&&!(m instanceof Ce)){if(m instanceof ii)return m;if(Ge.call(m,"__wrapped__"))return iO(m)}return new ii(m)}var Lu=function(){function m(){}return function(w){if(!$e(w))return{};if($5)return $5(w);m.prototype=w;var T=new m;return m.prototype=t,T}}();function Ug(){}function ii(m,w){this.__wrapped__=m,this.__actions__=[],this.__chain__=!!w,this.__index__=0,this.__values__=t}B.templateSettings={escape:dQ,evaluate:fQ,interpolate:p5,variable:"",imports:{_:B}},B.prototype=Ug.prototype,B.prototype.constructor=B,ii.prototype=Lu(Ug.prototype),ii.prototype.constructor=ii;function Ce(m){this.__wrapped__=m,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function tet(){var m=new Ce(this.__wrapped__);return m.__actions__=fr(this.__actions__),m.__dir__=this.__dir__,m.__filtered__=this.__filtered__,m.__iteratees__=fr(this.__iteratees__),m.__takeCount__=this.__takeCount__,m.__views__=fr(this.__views__),m}function eet(){if(this.__filtered__){var m=new Ce(this);m.__dir__=-1,m.__filtered__=!0}else m=this.clone(),m.__dir__*=-1;return m}function net(){var m=this.__wrapped__.value(),w=this.__dir__,T=pe(m),P=w<0,V=T?m.length:0,G=gnt(0,V,this.__views__),Y=G.start,$=G.end,nt=$-Y,yt=P?$:Y-1,_t=this.__iteratees__,St=_t.length,Pt=0,Xt=Un(nt,this.__takeCount__);if(!T||!P&&V==nt&&Xt==nt)return CR(m,this.__actions__);var ne=[];t:for(;nt--&&Pt<Xt;){yt+=w;for(var me=-1,re=m[yt];++me<St;){var Se=_t[me],Le=Se.iteratee,Lr=Se.type,lr=Le(re);if(Lr==z)re=lr;else if(!lr){if(Lr==k)continue t;break t}}ne[Pt++]=re}return ne}Ce.prototype=Lu(Ug.prototype),Ce.prototype.constructor=Ce;function nl(m){var w=-1,T=m==null?0:m.length;for(this.clear();++w<T;){var P=m[w];this.set(P[0],P[1])}}function ret(){this.__data__=Yh?Yh(null):{},this.size=0}function iet(m){var w=this.has(m)&&delete this.__data__[m];return this.size-=w?1:0,w}function oet(m){var w=this.__data__;if(Yh){var T=w[m];return T===l?t:T}return Ge.call(w,m)?w[m]:t}function aet(m){var w=this.__data__;return Yh?w[m]!==t:Ge.call(w,m)}function set(m,w){var T=this.__data__;return this.size+=this.has(m)?0:1,T[m]=Yh&&w===t?l:w,this}nl.prototype.clear=ret,nl.prototype.delete=iet,nl.prototype.get=oet,nl.prototype.has=aet,nl.prototype.set=set;function Oo(m){var w=-1,T=m==null?0:m.length;for(this.clear();++w<T;){var P=m[w];this.set(P[0],P[1])}}function uet(){this.__data__=[],this.size=0}function cet(m){var w=this.__data__,T=Xg(w,m);if(T<0)return!1;var P=w.length-1;return T==P?w.pop():Bg.call(w,T,1),--this.size,!0}function het(m){var w=this.__data__,T=Xg(w,m);return T<0?t:w[T][1]}function pet(m){return Xg(this.__data__,m)>-1}function det(m,w){var T=this.__data__,P=Xg(T,m);return P<0?(++this.size,T.push([m,w])):T[P][1]=w,this}Oo.prototype.clear=uet,Oo.prototype.delete=cet,Oo.prototype.get=het,Oo.prototype.has=pet,Oo.prototype.set=det;function zo(m){var w=-1,T=m==null?0:m.length;for(this.clear();++w<T;){var P=m[w];this.set(P[0],P[1])}}function fet(){this.size=0,this.__data__={hash:new nl,map:new(qh||Oo),string:new nl}}function get(m){var w=iv(this,m).delete(m);return this.size-=w?1:0,w}function vet(m){return iv(this,m).get(m)}function yet(m){return iv(this,m).has(m)}function met(m,w){var T=iv(this,m),P=T.size;return T.set(m,w),this.size+=T.size==P?0:1,this}zo.prototype.clear=fet,zo.prototype.delete=get,zo.prototype.get=vet,zo.prototype.has=yet,zo.prototype.set=met;function rl(m){var w=-1,T=m==null?0:m.length;for(this.__data__=new zo;++w<T;)this.add(m[w])}function _et(m){return this.__data__.set(m,l),this}function xet(m){return this.__data__.has(m)}rl.prototype.add=rl.prototype.push=_et,rl.prototype.has=xet;function Ci(m){var w=this.__data__=new Oo(m);this.size=w.size}function bet(){this.__data__=new Oo,this.size=0}function wet(m){var w=this.__data__,T=w.delete(m);return this.size=w.size,T}function Set(m){return this.__data__.get(m)}function Met(m){return this.__data__.has(m)}function Iet(m,w){var T=this.__data__;if(T instanceof Oo){var P=T.__data__;if(!qh||P.length<i-1)return P.push([m,w]),this.size=++T.size,this;T=this.__data__=new zo(P)}return T.set(m,w),this.size=T.size,this}Ci.prototype.clear=bet,Ci.prototype.delete=wet,Ci.prototype.get=Set,Ci.prototype.has=Met,Ci.prototype.set=Iet;function iR(m,w){var T=pe(m),P=!T&&ll(m),V=!T&&!P&&za(m),G=!T&&!P&&!V&&Ru(m),Y=T||P||V||G,$=Y?lb(m.length,Ett):[],nt=$.length;for(var yt in m)(w||Ge.call(m,yt))&&!(Y&&(yt=="length"||V&&(yt=="offset"||yt=="parent")||G&&(yt=="buffer"||yt=="byteLength"||yt=="byteOffset")||Go(yt,nt)))&&$.push(yt);return $}function oR(m){var w=m.length;return w?m[Ib(0,w-1)]:t}function Tet(m,w){return ov(fr(m),il(w,0,m.length))}function Cet(m){return ov(fr(m))}function gb(m,w,T){(T!==t&&!Ai(m[w],T)||T===t&&!(w in m))&&Vo(m,w,T)}function $h(m,w,T){var P=m[w];(!(Ge.call(m,w)&&Ai(P,T))||T===t&&!(w in m))&&Vo(m,w,T)}function Xg(m,w){for(var T=m.length;T--;)if(Ai(m[T][0],w))return T;return-1}function Aet(m,w,T,P){return Pa(m,function(V,G,Y){w(P,V,T(V),Y)}),P}function aR(m,w){return m&&ro(w,An(w),m)}function ket(m,w){return m&&ro(w,vr(w),m)}function Vo(m,w,T){w=="__proto__"&&Fg?Fg(m,w,{configurable:!0,enumerable:!0,value:T,writable:!0}):m[w]=T}function vb(m,w){for(var T=-1,P=w.length,V=ct(P),G=m==null;++T<P;)V[T]=G?t:Yb(m,w[T]);return V}function il(m,w,T){return m===m&&(T!==t&&(m=m<=T?m:T),w!==t&&(m=m>=w?m:w)),m}function oi(m,w,T,P,V,G){var Y,$=w&h,nt=w&d,yt=w&f;if(T&&(Y=V?T(m,P,V,G):T(m)),Y!==t)return Y;if(!$e(m))return m;var _t=pe(m);if(_t){if(Y=ynt(m),!$)return fr(m,Y)}else{var St=Xn(m),Pt=St==Nt||St==se;if(za(m))return DR(m,$);if(St==Z||St==ot||Pt&&!V){if(Y=nt||Pt?{}:KR(m),!$)return nt?ant(m,ket(Y,m)):ont(m,aR(Y,m))}else{if(!Ue[St])return V?m:{};Y=mnt(m,St,$)}}G||(G=new Ci);var Xt=G.get(m);if(Xt)return Xt;G.set(m,Y),MO(m)?m.forEach(function(re){Y.add(oi(re,w,T,re,m,G))}):wO(m)&&m.forEach(function(re,Se){Y.set(Se,oi(re,w,T,Se,m,G))});var ne=yt?nt?Ob:Rb:nt?vr:An,me=_t?t:ne(m);return ni(me||m,function(re,Se){me&&(Se=re,re=m[Se]),$h(Y,Se,oi(re,w,T,Se,m,G))}),Y}function Det(m){var w=An(m);return function(T){return sR(T,m,w)}}function sR(m,w,T){var P=T.length;if(m==null)return!P;for(m=je(m);P--;){var V=T[P],G=w[V],Y=m[V];if(Y===t&&!(V in m)||!G(Y))return!1}return!0}function lR(m,w,T){if(typeof m!="function")throw new ri(a);return op(function(){m.apply(t,T)},w)}function Qh(m,w,T,P){var V=-1,G=kg,Y=!0,$=m.length,nt=[],yt=w.length;if(!$)return nt;T&&(w=Ke(w,Ar(T))),P?(G=nb,Y=!1):w.length>=i&&(G=Xh,Y=!1,w=new rl(w));t:for(;++V<$;){var _t=m[V],St=T==null?_t:T(_t);if(_t=P||_t!==0?_t:0,Y&&St===St){for(var Pt=yt;Pt--;)if(w[Pt]===St)continue t;nt.push(_t)}else G(w,St,P)||nt.push(_t)}return nt}var Pa=RR(no),uR=RR(mb,!0);function Let(m,w){var T=!0;return Pa(m,function(P,V,G){return T=!!w(P,V,G),T}),T}function Zg(m,w,T){for(var P=-1,V=m.length;++P<V;){var G=m[P],Y=w(G);if(Y!=null&&($===t?Y===Y&&!Dr(Y):T(Y,$)))var $=Y,nt=G}return nt}function Net(m,w,T,P){var V=m.length;for(T=ve(T),T<0&&(T=-T>V?0:V+T),P=P===t||P>V?V:ve(P),P<0&&(P+=V),P=T>P?0:TO(P);T<P;)m[T++]=w;return m}function cR(m,w){var T=[];return Pa(m,function(P,V,G){w(P,V,G)&&T.push(P)}),T}function On(m,w,T,P,V){var G=-1,Y=m.length;for(T||(T=xnt),V||(V=[]);++G<Y;){var $=m[G];w>0&&T($)?w>1?On($,w-1,T,P,V):Da(V,$):P||(V[V.length]=$)}return V}var yb=OR(),hR=OR(!0);function no(m,w){return m&&yb(m,w,An)}function mb(m,w){return m&&hR(m,w,An)}function qg(m,w){return ka(w,function(T){return Wo(m[T])})}function ol(m,w){w=Ra(w,m);for(var T=0,P=w.length;m!=null&&T<P;)m=m[io(w[T++])];return T&&T==P?m:t}function pR(m,w,T){var P=w(m);return pe(m)?P:Da(P,T(m))}function ar(m){return m==null?m===t?zt:it:el&&el in je(m)?fnt(m):Cnt(m)}function _b(m,w){return m>w}function Pet(m,w){return m!=null&&Ge.call(m,w)}function Eet(m,w){return m!=null&&w in je(m)}function Ret(m,w,T){return m>=Un(w,T)&&m<Mn(w,T)}function xb(m,w,T){for(var P=T?nb:kg,V=m[0].length,G=m.length,Y=G,$=ct(G),nt=1/0,yt=[];Y--;){var _t=m[Y];Y&&w&&(_t=Ke(_t,Ar(w))),nt=Un(_t.length,nt),$[Y]=!T&&(w||V>=120&&_t.length>=120)?new rl(Y&&_t):t}_t=m[0];var St=-1,Pt=$[0];t:for(;++St<V&&yt.length<nt;){var Xt=_t[St],ne=w?w(Xt):Xt;if(Xt=T||Xt!==0?Xt:0,!(Pt?Xh(Pt,ne):P(yt,ne,T))){for(Y=G;--Y;){var me=$[Y];if(!(me?Xh(me,ne):P(m[Y],ne,T)))continue t}Pt&&Pt.push(ne),yt.push(Xt)}}return yt}function Oet(m,w,T,P){return no(m,function(V,G,Y){w(P,T(V),G,Y)}),P}function tp(m,w,T){w=Ra(w,m),m=QR(m,w);var P=m==null?m:m[io(si(w))];return P==null?t:Cr(P,m,T)}function dR(m){return en(m)&&ar(m)==ot}function zet(m){return en(m)&&ar(m)==Te}function Vet(m){return en(m)&&ar(m)==xt}function ep(m,w,T,P,V){return m===w?!0:m==null||w==null||!en(m)&&!en(w)?m!==m&&w!==w:Bet(m,w,T,P,ep,V)}function Bet(m,w,T,P,V,G){var Y=pe(m),$=pe(w),nt=Y?Rt:Xn(m),yt=$?Rt:Xn(w);nt=nt==ot?Z:nt,yt=yt==ot?Z:yt;var _t=nt==Z,St=yt==Z,Pt=nt==yt;if(Pt&&za(m)){if(!za(w))return!1;Y=!0,_t=!1}if(Pt&&!_t)return G||(G=new Ci),Y||Ru(m)?XR(m,w,T,P,V,G):pnt(m,w,nt,T,P,V,G);if(!(T&g)){var Xt=_t&&Ge.call(m,"__wrapped__"),ne=St&&Ge.call(w,"__wrapped__");if(Xt||ne){var me=Xt?m.value():m,re=ne?w.value():w;return G||(G=new Ci),V(me,re,T,P,G)}}return Pt?(G||(G=new Ci),dnt(m,w,T,P,V,G)):!1}function Fet(m){return en(m)&&Xn(m)==O}function bb(m,w,T,P){var V=T.length,G=V,Y=!P;if(m==null)return!G;for(m=je(m);V--;){var $=T[V];if(Y&&$[2]?$[1]!==m[$[0]]:!($[0]in m))return!1}for(;++V<G;){$=T[V];var nt=$[0],yt=m[nt],_t=$[1];if(Y&&$[2]){if(yt===t&&!(nt in m))return!1}else{var St=new Ci;if(P)var Pt=P(yt,_t,nt,m,w,St);if(!(Pt===t?ep(_t,yt,g|y,P,St):Pt))return!1}}return!0}function fR(m){if(!$e(m)||wnt(m))return!1;var w=Wo(m)?Btt:kQ;return w.test(sl(m))}function Get(m){return en(m)&&ar(m)==ft}function Wet(m){return en(m)&&Xn(m)==gt}function jet(m){return en(m)&&hv(m.length)&&!!qe[ar(m)]}function gR(m){return typeof m=="function"?m:m==null?yr:typeof m=="object"?pe(m)?mR(m[0],m[1]):yR(m):zO(m)}function wb(m){if(!ip(m))return Utt(m);var w=[];for(var T in je(m))Ge.call(m,T)&&T!="constructor"&&w.push(T);return w}function Het(m){if(!$e(m))return Tnt(m);var w=ip(m),T=[];for(var P in m)P=="constructor"&&(w||!Ge.call(m,P))||T.push(P);return T}function Sb(m,w){return m<w}function vR(m,w){var T=-1,P=gr(m)?ct(m.length):[];return Pa(m,function(V,G,Y){P[++T]=w(V,G,Y)}),P}function yR(m){var w=Vb(m);return w.length==1&&w[0][2]?JR(w[0][0],w[0][1]):function(T){return T===m||bb(T,m,w)}}function mR(m,w){return Fb(m)&&YR(w)?JR(io(m),w):function(T){var P=Yb(T,m);return P===t&&P===w?Jb(T,m):ep(w,P,g|y)}}function Kg(m,w,T,P,V){m!==w&&yb(w,function(G,Y){if(V||(V=new Ci),$e(G))Uet(m,w,Y,T,Kg,P,V);else{var $=P?P(Wb(m,Y),G,Y+"",m,w,V):t;$===t&&($=G),gb(m,Y,$)}},vr)}function Uet(m,w,T,P,V,G,Y){var $=Wb(m,T),nt=Wb(w,T),yt=Y.get(nt);if(yt){gb(m,T,yt);return}var _t=G?G($,nt,T+"",m,w,Y):t,St=_t===t;if(St){var Pt=pe(nt),Xt=!Pt&&za(nt),ne=!Pt&&!Xt&&Ru(nt);_t=nt,Pt||Xt||ne?pe($)?_t=$:cn($)?_t=fr($):Xt?(St=!1,_t=DR(nt,!0)):ne?(St=!1,_t=LR(nt,!0)):_t=[]:ap(nt)||ll(nt)?(_t=$,ll($)?_t=CO($):(!$e($)||Wo($))&&(_t=KR(nt))):St=!1}St&&(Y.set(nt,_t),V(_t,nt,P,G,Y),Y.delete(nt)),gb(m,T,_t)}function _R(m,w){var T=m.length;if(T)return w+=w<0?T:0,Go(w,T)?m[w]:t}function xR(m,w,T){w.length?w=Ke(w,function(G){return pe(G)?function(Y){return ol(Y,G.length===1?G[0]:G)}:G}):w=[yr];var P=-1;w=Ke(w,Ar(ee()));var V=vR(m,function(G,Y,$){var nt=Ke(w,function(yt){return yt(G)});return{criteria:nt,index:++P,value:G}});return ytt(V,function(G,Y){return int(G,Y,T)})}function Xet(m,w){return bR(m,w,function(T,P){return Jb(m,P)})}function bR(m,w,T){for(var P=-1,V=w.length,G={};++P<V;){var Y=w[P],$=ol(m,Y);T($,Y)&&np(G,Ra(Y,m),$)}return G}function Zet(m){return function(w){return ol(w,m)}}function Mb(m,w,T,P){var V=P?vtt:Mu,G=-1,Y=w.length,$=m;for(m===w&&(w=fr(w)),T&&($=Ke(m,Ar(T)));++G<Y;)for(var nt=0,yt=w[G],_t=T?T(yt):yt;(nt=V($,_t,nt,P))>-1;)$!==m&&Bg.call($,nt,1),Bg.call(m,nt,1);return m}function wR(m,w){for(var T=m?w.length:0,P=T-1;T--;){var V=w[T];if(T==P||V!==G){var G=V;Go(V)?Bg.call(m,V,1):Ab(m,V)}}return m}function Ib(m,w){return m+Wg(nR()*(w-m+1))}function qet(m,w,T,P){for(var V=-1,G=Mn(Gg((w-m)/(T||1)),0),Y=ct(G);G--;)Y[P?G:++V]=m,m+=T;return Y}function Tb(m,w){var T="";if(!m||w<1||w>q)return T;do w%2&&(T+=m),w=Wg(w/2),w&&(m+=m);while(w);return T}function xe(m,w){return jb($R(m,w,yr),m+"")}function Ket(m){return oR(Ou(m))}function Yet(m,w){var T=Ou(m);return ov(T,il(w,0,T.length))}function np(m,w,T,P){if(!$e(m))return m;w=Ra(w,m);for(var V=-1,G=w.length,Y=G-1,$=m;$!=null&&++V<G;){var nt=io(w[V]),yt=T;if(nt==="__proto__"||nt==="constructor"||nt==="prototype")return m;if(V!=Y){var _t=$[nt];yt=P?P(_t,nt,$):t,yt===t&&(yt=$e(_t)?_t:Go(w[V+1])?[]:{})}$h($,nt,yt),$=$[nt]}return m}var SR=jg?function(m,w){return jg.set(m,w),m}:yr,Jet=Fg?function(m,w){return Fg(m,"toString",{configurable:!0,enumerable:!1,value:Qb(w),writable:!0})}:yr;function $et(m){return ov(Ou(m))}function ai(m,w,T){var P=-1,V=m.length;w<0&&(w=-w>V?0:V+w),T=T>V?V:T,T<0&&(T+=V),V=w>T?0:T-w>>>0,w>>>=0;for(var G=ct(V);++P<V;)G[P]=m[P+w];return G}function Qet(m,w){var T;return Pa(m,function(P,V,G){return T=w(P,V,G),!T}),!!T}function Yg(m,w,T){var P=0,V=m==null?P:m.length;if(typeof w=="number"&&w===w&&V<=ut){for(;P<V;){var G=P+V>>>1,Y=m[G];Y!==null&&!Dr(Y)&&(T?Y<=w:Y<w)?P=G+1:V=G}return V}return Cb(m,w,yr,T)}function Cb(m,w,T,P){var V=0,G=m==null?0:m.length;if(G===0)return 0;w=T(w);for(var Y=w!==w,$=w===null,nt=Dr(w),yt=w===t;V<G;){var _t=Wg((V+G)/2),St=T(m[_t]),Pt=St!==t,Xt=St===null,ne=St===St,me=Dr(St);if(Y)var re=P||ne;else yt?re=ne&&(P||Pt):$?re=ne&&Pt&&(P||!Xt):nt?re=ne&&Pt&&!Xt&&(P||!me):Xt||me?re=!1:re=P?St<=w:St<w;re?V=_t+1:G=_t}return Un(G,K)}function MR(m,w){for(var T=-1,P=m.length,V=0,G=[];++T<P;){var Y=m[T],$=w?w(Y):Y;if(!T||!Ai($,nt)){var nt=$;G[V++]=Y===0?0:Y}}return G}function IR(m){return typeof m=="number"?m:Dr(m)?J:+m}function kr(m){if(typeof m=="string")return m;if(pe(m))return Ke(m,kr)+"";if(Dr(m))return rR?rR.call(m):"";var w=m+"";return w=="0"&&1/m==-1/0?"-0":w}function Ea(m,w,T){var P=-1,V=kg,G=m.length,Y=!0,$=[],nt=$;if(T)Y=!1,V=nb;else if(G>=i){var yt=w?null:cnt(m);if(yt)return Lg(yt);Y=!1,V=Xh,nt=new rl}else nt=w?[]:$;t:for(;++P<G;){var _t=m[P],St=w?w(_t):_t;if(_t=T||_t!==0?_t:0,Y&&St===St){for(var Pt=nt.length;Pt--;)if(nt[Pt]===St)continue t;w&&nt.push(St),$.push(_t)}else V(nt,St,T)||(nt!==$&&nt.push(St),$.push(_t))}return $}function Ab(m,w){return w=Ra(w,m),m=QR(m,w),m==null||delete m[io(si(w))]}function TR(m,w,T,P){return np(m,w,T(ol(m,w)),P)}function Jg(m,w,T,P){for(var V=m.length,G=P?V:-1;(P?G--:++G<V)&&w(m[G],G,m););return T?ai(m,P?0:G,P?G+1:V):ai(m,P?G+1:0,P?V:G)}function CR(m,w){var T=m;return T instanceof Ce&&(T=T.value()),rb(w,function(P,V){return V.func.apply(V.thisArg,Da([P],V.args))},T)}function kb(m,w,T){var P=m.length;if(P<2)return P?Ea(m[0]):[];for(var V=-1,G=ct(P);++V<P;)for(var Y=m[V],$=-1;++$<P;)$!=V&&(G[V]=Qh(G[V]||Y,m[$],w,T));return Ea(On(G,1),w,T)}function AR(m,w,T){for(var P=-1,V=m.length,G=w.length,Y={};++P<V;){var $=P<G?w[P]:t;T(Y,m[P],$)}return Y}function Db(m){return cn(m)?m:[]}function Lb(m){return typeof m=="function"?m:yr}function Ra(m,w){return pe(m)?m:Fb(m,w)?[m]:rO(Oe(m))}var tnt=xe;function Oa(m,w,T){var P=m.length;return T=T===t?P:T,!w&&T>=P?m:ai(m,w,T)}var kR=Ftt||function(m){return Rn.clearTimeout(m)};function DR(m,w){if(w)return m.slice();var T=m.length,P=J5?J5(T):new m.constructor(T);return m.copy(P),P}function Nb(m){var w=new m.constructor(m.byteLength);return new zg(w).set(new zg(m)),w}function ent(m,w){var T=w?Nb(m.buffer):m.buffer;return new m.constructor(T,m.byteOffset,m.byteLength)}function nnt(m){var w=new m.constructor(m.source,d5.exec(m));return w.lastIndex=m.lastIndex,w}function rnt(m){return Jh?je(Jh.call(m)):{}}function LR(m,w){var T=w?Nb(m.buffer):m.buffer;return new m.constructor(T,m.byteOffset,m.length)}function NR(m,w){if(m!==w){var T=m!==t,P=m===null,V=m===m,G=Dr(m),Y=w!==t,$=w===null,nt=w===w,yt=Dr(w);if(!$&&!yt&&!G&&m>w||G&&Y&&nt&&!$&&!yt||P&&Y&&nt||!T&&nt||!V)return 1;if(!P&&!G&&!yt&&m<w||yt&&T&&V&&!P&&!G||$&&T&&V||!Y&&V||!nt)return-1}return 0}function int(m,w,T){for(var P=-1,V=m.criteria,G=w.criteria,Y=V.length,$=T.length;++P<Y;){var nt=NR(V[P],G[P]);if(nt){if(P>=$)return nt;var yt=T[P];return nt*(yt=="desc"?-1:1)}}return m.index-w.index}function PR(m,w,T,P){for(var V=-1,G=m.length,Y=T.length,$=-1,nt=w.length,yt=Mn(G-Y,0),_t=ct(nt+yt),St=!P;++$<nt;)_t[$]=w[$];for(;++V<Y;)(St||V<G)&&(_t[T[V]]=m[V]);for(;yt--;)_t[$++]=m[V++];return _t}function ER(m,w,T,P){for(var V=-1,G=m.length,Y=-1,$=T.length,nt=-1,yt=w.length,_t=Mn(G-$,0),St=ct(_t+yt),Pt=!P;++V<_t;)St[V]=m[V];for(var Xt=V;++nt<yt;)St[Xt+nt]=w[nt];for(;++Y<$;)(Pt||V<G)&&(St[Xt+T[Y]]=m[V++]);return St}function fr(m,w){var T=-1,P=m.length;for(w||(w=ct(P));++T<P;)w[T]=m[T];return w}function ro(m,w,T,P){var V=!T;T||(T={});for(var G=-1,Y=w.length;++G<Y;){var $=w[G],nt=P?P(T[$],m[$],$,T,m):t;nt===t&&(nt=m[$]),V?Vo(T,$,nt):$h(T,$,nt)}return T}function ont(m,w){return ro(m,Bb(m),w)}function ant(m,w){return ro(m,ZR(m),w)}function $g(m,w){return function(T,P){var V=pe(T)?ctt:Aet,G=w?w():{};return V(T,m,ee(P,2),G)}}function Nu(m){return xe(function(w,T){var P=-1,V=T.length,G=V>1?T[V-1]:t,Y=V>2?T[2]:t;for(G=m.length>3&&typeof G=="function"?(V--,G):t,Y&&sr(T[0],T[1],Y)&&(G=V<3?t:G,V=1),w=je(w);++P<V;){var $=T[P];$&&m(w,$,P,G)}return w})}function RR(m,w){return function(T,P){if(T==null)return T;if(!gr(T))return m(T,P);for(var V=T.length,G=w?V:-1,Y=je(T);(w?G--:++G<V)&&P(Y[G],G,Y)!==!1;);return T}}function OR(m){return function(w,T,P){for(var V=-1,G=je(w),Y=P(w),$=Y.length;$--;){var nt=Y[m?$:++V];if(T(G[nt],nt,G)===!1)break}return w}}function snt(m,w,T){var P=w&_,V=rp(m);function G(){var Y=this&&this!==Rn&&this instanceof G?V:m;return Y.apply(P?T:this,arguments)}return G}function zR(m){return function(w){w=Oe(w);var T=Iu(w)?Ti(w):t,P=T?T[0]:w.charAt(0),V=T?Oa(T,1).join(""):w.slice(1);return P[m]()+V}}function Pu(m){return function(w){return rb(RO(EO(w).replace(YQ,"")),m,"")}}function rp(m){return function(){var w=arguments;switch(w.length){case 0:return new m;case 1:return new m(w[0]);case 2:return new m(w[0],w[1]);case 3:return new m(w[0],w[1],w[2]);case 4:return new m(w[0],w[1],w[2],w[3]);case 5:return new m(w[0],w[1],w[2],w[3],w[4]);case 6:return new m(w[0],w[1],w[2],w[3],w[4],w[5]);case 7:return new m(w[0],w[1],w[2],w[3],w[4],w[5],w[6])}var T=Lu(m.prototype),P=m.apply(T,w);return $e(P)?P:T}}function lnt(m,w,T){var P=rp(m);function V(){for(var G=arguments.length,Y=ct(G),$=G,nt=Eu(V);$--;)Y[$]=arguments[$];var yt=G<3&&Y[0]!==nt&&Y[G-1]!==nt?[]:La(Y,nt);if(G-=yt.length,G<T)return WR(m,w,Qg,V.placeholder,t,Y,yt,t,t,T-G);var _t=this&&this!==Rn&&this instanceof V?P:m;return Cr(_t,this,Y)}return V}function VR(m){return function(w,T,P){var V=je(w);if(!gr(w)){var G=ee(T,3);w=An(w),T=function($){return G(V[$],$,V)}}var Y=m(w,T,P);return Y>-1?V[G?w[Y]:Y]:t}}function BR(m){return Fo(function(w){var T=w.length,P=T,V=ii.prototype.thru;for(m&&w.reverse();P--;){var G=w[P];if(typeof G!="function")throw new ri(a);if(V&&!Y&&rv(G)=="wrapper")var Y=new ii([],!0)}for(P=Y?P:T;++P<T;){G=w[P];var $=rv(G),nt=$=="wrapper"?zb(G):t;nt&&Gb(nt[0])&&nt[1]==(I|x|S|C)&&!nt[4].length&&nt[9]==1?Y=Y[rv(nt[0])].apply(Y,nt[3]):Y=G.length==1&&Gb(G)?Y[$]():Y.thru(G)}return function(){var yt=arguments,_t=yt[0];if(Y&&yt.length==1&&pe(_t))return Y.plant(_t).value();for(var St=0,Pt=T?w[St].apply(this,yt):_t;++St<T;)Pt=w[St].call(this,Pt);return Pt}})}function Qg(m,w,T,P,V,G,Y,$,nt,yt){var _t=w&I,St=w&_,Pt=w&v,Xt=w&(x|b),ne=w&A,me=Pt?t:rp(m);function re(){for(var Se=arguments.length,Le=ct(Se),Lr=Se;Lr--;)Le[Lr]=arguments[Lr];if(Xt)var lr=Eu(re),Nr=_tt(Le,lr);if(P&&(Le=PR(Le,P,V,Xt)),G&&(Le=ER(Le,G,Y,Xt)),Se-=Nr,Xt&&Se<yt){var hn=La(Le,lr);return WR(m,w,Qg,re.placeholder,T,Le,hn,$,nt,yt-Se)}var ki=St?T:this,Ho=Pt?ki[m]:m;return Se=Le.length,$?Le=Ant(Le,$):ne&&Se>1&&Le.reverse(),_t&&nt<Se&&(Le.length=nt),this&&this!==Rn&&this instanceof re&&(Ho=me||rp(Ho)),Ho.apply(ki,Le)}return re}function FR(m,w){return function(T,P){return Oet(T,m,w(P),{})}}function tv(m,w){return function(T,P){var V;if(T===t&&P===t)return w;if(T!==t&&(V=T),P!==t){if(V===t)return P;typeof T=="string"||typeof P=="string"?(T=kr(T),P=kr(P)):(T=IR(T),P=IR(P)),V=m(T,P)}return V}}function Pb(m){return Fo(function(w){return w=Ke(w,Ar(ee())),xe(function(T){var P=this;return m(w,function(V){return Cr(V,P,T)})})})}function ev(m,w){w=w===t?" ":kr(w);var T=w.length;if(T<2)return T?Tb(w,m):w;var P=Tb(w,Gg(m/Tu(w)));return Iu(w)?Oa(Ti(P),0,m).join(""):P.slice(0,m)}function unt(m,w,T,P){var V=w&_,G=rp(m);function Y(){for(var $=-1,nt=arguments.length,yt=-1,_t=P.length,St=ct(_t+nt),Pt=this&&this!==Rn&&this instanceof Y?G:m;++yt<_t;)St[yt]=P[yt];for(;nt--;)St[yt++]=arguments[++$];return Cr(Pt,V?T:this,St)}return Y}function GR(m){return function(w,T,P){return P&&typeof P!="number"&&sr(w,T,P)&&(T=P=t),w=jo(w),T===t?(T=w,w=0):T=jo(T),P=P===t?w<T?1:-1:jo(P),qet(w,T,P,m)}}function nv(m){return function(w,T){return typeof w=="string"&&typeof T=="string"||(w=li(w),T=li(T)),m(w,T)}}function WR(m,w,T,P,V,G,Y,$,nt,yt){var _t=w&x,St=_t?Y:t,Pt=_t?t:Y,Xt=_t?G:t,ne=_t?t:G;w|=_t?S:M,w&=~(_t?M:S),w&p||(w&=-4);var me=[m,w,V,Xt,St,ne,Pt,$,nt,yt],re=T.apply(t,me);return Gb(m)&&tO(re,me),re.placeholder=P,eO(re,m,w)}function Eb(m){var w=Sn[m];return function(T,P){if(T=li(T),P=P==null?0:Un(ve(P),292),P&&eR(T)){var V=(Oe(T)+"e").split("e"),G=w(V[0]+"e"+(+V[1]+P));return V=(Oe(G)+"e").split("e"),+(V[0]+"e"+(+V[1]-P))}return w(T)}}var cnt=ku&&1/Lg(new ku([,-0]))[1]==W?function(m){return new ku(m)}:nw;function jR(m){return function(w){var T=Xn(w);return T==O?cb(w):T==gt?Ttt(w):mtt(w,m(w))}}function Bo(m,w,T,P,V,G,Y,$){var nt=w&v;if(!nt&&typeof m!="function")throw new ri(a);var yt=P?P.length:0;if(yt||(w&=-97,P=V=t),Y=Y===t?Y:Mn(ve(Y),0),$=$===t?$:ve($),yt-=V?V.length:0,w&M){var _t=P,St=V;P=V=t}var Pt=nt?t:zb(m),Xt=[m,w,T,P,V,_t,St,G,Y,$];if(Pt&&Int(Xt,Pt),m=Xt[0],w=Xt[1],T=Xt[2],P=Xt[3],V=Xt[4],$=Xt[9]=Xt[9]===t?nt?0:m.length:Mn(Xt[9]-yt,0),!$&&w&(x|b)&&(w&=-25),!w||w==_)var ne=snt(m,w,T);else w==x||w==b?ne=lnt(m,w,$):(w==S||w==(_|S))&&!V.length?ne=unt(m,w,T,P):ne=Qg.apply(t,Xt);var me=Pt?SR:tO;return eO(me(ne,Xt),m,w)}function HR(m,w,T,P){return m===t||Ai(m,Au[T])&&!Ge.call(P,T)?w:m}function UR(m,w,T,P,V,G){return $e(m)&&$e(w)&&(G.set(w,m),Kg(m,w,t,UR,G),G.delete(w)),m}function hnt(m){return ap(m)?t:m}function XR(m,w,T,P,V,G){var Y=T&g,$=m.length,nt=w.length;if($!=nt&&!(Y&&nt>$))return!1;var yt=G.get(m),_t=G.get(w);if(yt&&_t)return yt==w&&_t==m;var St=-1,Pt=!0,Xt=T&y?new rl:t;for(G.set(m,w),G.set(w,m);++St<$;){var ne=m[St],me=w[St];if(P)var re=Y?P(me,ne,St,w,m,G):P(ne,me,St,m,w,G);if(re!==t){if(re)continue;Pt=!1;break}if(Xt){if(!ib(w,function(Se,Le){if(!Xh(Xt,Le)&&(ne===Se||V(ne,Se,T,P,G)))return Xt.push(Le)})){Pt=!1;break}}else if(!(ne===me||V(ne,me,T,P,G))){Pt=!1;break}}return G.delete(m),G.delete(w),Pt}function pnt(m,w,T,P,V,G,Y){switch(T){case ce:if(m.byteLength!=w.byteLength||m.byteOffset!=w.byteOffset)return!1;m=m.buffer,w=w.buffer;case Te:return!(m.byteLength!=w.byteLength||!G(new zg(m),new zg(w)));case wt:case xt:case st:return Ai(+m,+w);case bt:return m.name==w.name&&m.message==w.message;case ft:case rt:return m==w+"";case O:var $=cb;case gt:var nt=P&g;if($||($=Lg),m.size!=w.size&&!nt)return!1;var yt=Y.get(m);if(yt)return yt==w;P|=y,Y.set(m,w);var _t=XR($(m),$(w),P,V,G,Y);return Y.delete(m),_t;case It:if(Jh)return Jh.call(m)==Jh.call(w)}return!1}function dnt(m,w,T,P,V,G){var Y=T&g,$=Rb(m),nt=$.length,yt=Rb(w),_t=yt.length;if(nt!=_t&&!Y)return!1;for(var St=nt;St--;){var Pt=$[St];if(!(Y?Pt in w:Ge.call(w,Pt)))return!1}var Xt=G.get(m),ne=G.get(w);if(Xt&&ne)return Xt==w&&ne==m;var me=!0;G.set(m,w),G.set(w,m);for(var re=Y;++St<nt;){Pt=$[St];var Se=m[Pt],Le=w[Pt];if(P)var Lr=Y?P(Le,Se,Pt,w,m,G):P(Se,Le,Pt,m,w,G);if(!(Lr===t?Se===Le||V(Se,Le,T,P,G):Lr)){me=!1;break}re||(re=Pt=="constructor")}if(me&&!re){var lr=m.constructor,Nr=w.constructor;lr!=Nr&&"constructor"in m&&"constructor"in w&&!(typeof lr=="function"&&lr instanceof lr&&typeof Nr=="function"&&Nr instanceof Nr)&&(me=!1)}return G.delete(m),G.delete(w),me}function Fo(m){return jb($R(m,t,sO),m+"")}function Rb(m){return pR(m,An,Bb)}function Ob(m){return pR(m,vr,ZR)}var zb=jg?function(m){return jg.get(m)}:nw;function rv(m){for(var w=m.name+"",T=Du[w],P=Ge.call(Du,w)?T.length:0;P--;){var V=T[P],G=V.func;if(G==null||G==m)return V.name}return w}function Eu(m){var w=Ge.call(B,"placeholder")?B:m;return w.placeholder}function ee(){var m=B.iteratee||tw;return m=m===tw?gR:m,arguments.length?m(arguments[0],arguments[1]):m}function iv(m,w){var T=m.__data__;return bnt(w)?T[typeof w=="string"?"string":"hash"]:T.map}function Vb(m){for(var w=An(m),T=w.length;T--;){var P=w[T],V=m[P];w[T]=[P,V,YR(V)]}return w}function al(m,w){var T=Stt(m,w);return fR(T)?T:t}function fnt(m){var w=Ge.call(m,el),T=m[el];try{m[el]=t;var P=!0}catch{}var V=Rg.call(m);return P&&(w?m[el]=T:delete m[el]),V}var Bb=pb?function(m){return m==null?[]:(m=je(m),ka(pb(m),function(w){return Q5.call(m,w)}))}:rw,ZR=pb?function(m){for(var w=[];m;)Da(w,Bb(m)),m=Vg(m);return w}:rw,Xn=ar;(db&&Xn(new db(new ArrayBuffer(1)))!=ce||qh&&Xn(new qh)!=O||fb&&Xn(fb.resolve())!=U||ku&&Xn(new ku)!=gt||Kh&&Xn(new Kh)!=Ct)&&(Xn=function(m){var w=ar(m),T=w==Z?m.constructor:t,P=T?sl(T):"";if(P)switch(P){case Ktt:return ce;case Ytt:return O;case Jtt:return U;case $tt:return gt;case Qtt:return Ct}return w});function gnt(m,w,T){for(var P=-1,V=T.length;++P<V;){var G=T[P],Y=G.size;switch(G.type){case"drop":m+=Y;break;case"dropRight":w-=Y;break;case"take":w=Un(w,m+Y);break;case"takeRight":m=Mn(m,w-Y);break}}return{start:m,end:w}}function vnt(m){var w=m.match(bQ);return w?w[1].split(wQ):[]}function qR(m,w,T){w=Ra(w,m);for(var P=-1,V=w.length,G=!1;++P<V;){var Y=io(w[P]);if(!(G=m!=null&&T(m,Y)))break;m=m[Y]}return G||++P!=V?G:(V=m==null?0:m.length,!!V&&hv(V)&&Go(Y,V)&&(pe(m)||ll(m)))}function ynt(m){var w=m.length,T=new m.constructor(w);return w&&typeof m[0]=="string"&&Ge.call(m,"index")&&(T.index=m.index,T.input=m.input),T}function KR(m){return typeof m.constructor=="function"&&!ip(m)?Lu(Vg(m)):{}}function mnt(m,w,T){var P=m.constructor;switch(w){case Te:return Nb(m);case wt:case xt:return new P(+m);case ce:return ent(m,T);case fn:case Ir:case Cn:case Tr:case Fe:case ti:case Ii:case En:case eo:return LR(m,T);case O:return new P;case st:case rt:return new P(m);case ft:return nnt(m);case gt:return new P;case It:return rnt(m)}}function _nt(m,w){var T=w.length;if(!T)return m;var P=T-1;return w[P]=(T>1?"& ":"")+w[P],w=w.join(T>2?", ":" "),m.replace(xQ,`{
20
+ /* [wrapped with `+w+`] */
21
+ `)}function xnt(m){return pe(m)||ll(m)||!!(tR&&m&&m[tR])}function Go(m,w){var T=typeof m;return w=w??q,!!w&&(T=="number"||T!="symbol"&&LQ.test(m))&&m>-1&&m%1==0&&m<w}function sr(m,w,T){if(!$e(T))return!1;var P=typeof w;return(P=="number"?gr(T)&&Go(w,T.length):P=="string"&&w in T)?Ai(T[w],m):!1}function Fb(m,w){if(pe(m))return!1;var T=typeof m;return T=="number"||T=="symbol"||T=="boolean"||m==null||Dr(m)?!0:vQ.test(m)||!gQ.test(m)||w!=null&&m in je(w)}function bnt(m){var w=typeof m;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?m!=="__proto__":m===null}function Gb(m){var w=rv(m),T=B[w];if(typeof T!="function"||!(w in Ce.prototype))return!1;if(m===T)return!0;var P=zb(T);return!!P&&m===P[0]}function wnt(m){return!!Y5&&Y5 in m}var Snt=Pg?Wo:iw;function ip(m){var w=m&&m.constructor,T=typeof w=="function"&&w.prototype||Au;return m===T}function YR(m){return m===m&&!$e(m)}function JR(m,w){return function(T){return T==null?!1:T[m]===w&&(w!==t||m in je(T))}}function Mnt(m){var w=uv(m,function(P){return T.size===u&&T.clear(),P}),T=w.cache;return w}function Int(m,w){var T=m[1],P=w[1],V=T|P,G=V<(_|v|I),Y=P==I&&T==x||P==I&&T==C&&m[7].length<=w[8]||P==(I|C)&&w[7].length<=w[8]&&T==x;if(!(G||Y))return m;P&_&&(m[2]=w[2],V|=T&_?0:p);var $=w[3];if($){var nt=m[3];m[3]=nt?PR(nt,$,w[4]):$,m[4]=nt?La(m[3],c):w[4]}return $=w[5],$&&(nt=m[5],m[5]=nt?ER(nt,$,w[6]):$,m[6]=nt?La(m[5],c):w[6]),$=w[7],$&&(m[7]=$),P&I&&(m[8]=m[8]==null?w[8]:Un(m[8],w[8])),m[9]==null&&(m[9]=w[9]),m[0]=w[0],m[1]=V,m}function Tnt(m){var w=[];if(m!=null)for(var T in je(m))w.push(T);return w}function Cnt(m){return Rg.call(m)}function $R(m,w,T){return w=Mn(w===t?m.length-1:w,0),function(){for(var P=arguments,V=-1,G=Mn(P.length-w,0),Y=ct(G);++V<G;)Y[V]=P[w+V];V=-1;for(var $=ct(w+1);++V<w;)$[V]=P[V];return $[w]=T(Y),Cr(m,this,$)}}function QR(m,w){return w.length<2?m:ol(m,ai(w,0,-1))}function Ant(m,w){for(var T=m.length,P=Un(w.length,T),V=fr(m);P--;){var G=w[P];m[P]=Go(G,T)?V[G]:t}return m}function Wb(m,w){if(!(w==="constructor"&&typeof m[w]=="function")&&w!="__proto__")return m[w]}var tO=nO(SR),op=Wtt||function(m,w){return Rn.setTimeout(m,w)},jb=nO(Jet);function eO(m,w,T){var P=w+"";return jb(m,_nt(P,knt(vnt(P),T)))}function nO(m){var w=0,T=0;return function(){var P=Xtt(),V=E-(P-T);if(T=P,V>0){if(++w>=L)return arguments[0]}else w=0;return m.apply(t,arguments)}}function ov(m,w){var T=-1,P=m.length,V=P-1;for(w=w===t?P:w;++T<w;){var G=Ib(T,V),Y=m[G];m[G]=m[T],m[T]=Y}return m.length=w,m}var rO=Mnt(function(m){var w=[];return m.charCodeAt(0)===46&&w.push(""),m.replace(yQ,function(T,P,V,G){w.push(V?G.replace(IQ,"$1"):P||T)}),w});function io(m){if(typeof m=="string"||Dr(m))return m;var w=m+"";return w=="0"&&1/m==-1/0?"-0":w}function sl(m){if(m!=null){try{return Eg.call(m)}catch{}try{return m+""}catch{}}return""}function knt(m,w){return ni(at,function(T){var P="_."+T[0];w&T[1]&&!kg(m,P)&&m.push(P)}),m.sort()}function iO(m){if(m instanceof Ce)return m.clone();var w=new ii(m.__wrapped__,m.__chain__);return w.__actions__=fr(m.__actions__),w.__index__=m.__index__,w.__values__=m.__values__,w}function Dnt(m,w,T){(T?sr(m,w,T):w===t)?w=1:w=Mn(ve(w),0);var P=m==null?0:m.length;if(!P||w<1)return[];for(var V=0,G=0,Y=ct(Gg(P/w));V<P;)Y[G++]=ai(m,V,V+=w);return Y}function Lnt(m){for(var w=-1,T=m==null?0:m.length,P=0,V=[];++w<T;){var G=m[w];G&&(V[P++]=G)}return V}function Nnt(){var m=arguments.length;if(!m)return[];for(var w=ct(m-1),T=arguments[0],P=m;P--;)w[P-1]=arguments[P];return Da(pe(T)?fr(T):[T],On(w,1))}var Pnt=xe(function(m,w){return cn(m)?Qh(m,On(w,1,cn,!0)):[]}),Ent=xe(function(m,w){var T=si(w);return cn(T)&&(T=t),cn(m)?Qh(m,On(w,1,cn,!0),ee(T,2)):[]}),Rnt=xe(function(m,w){var T=si(w);return cn(T)&&(T=t),cn(m)?Qh(m,On(w,1,cn,!0),t,T):[]});function Ont(m,w,T){var P=m==null?0:m.length;return P?(w=T||w===t?1:ve(w),ai(m,w<0?0:w,P)):[]}function znt(m,w,T){var P=m==null?0:m.length;return P?(w=T||w===t?1:ve(w),w=P-w,ai(m,0,w<0?0:w)):[]}function Vnt(m,w){return m&&m.length?Jg(m,ee(w,3),!0,!0):[]}function Bnt(m,w){return m&&m.length?Jg(m,ee(w,3),!0):[]}function Fnt(m,w,T,P){var V=m==null?0:m.length;return V?(T&&typeof T!="number"&&sr(m,w,T)&&(T=0,P=V),Net(m,w,T,P)):[]}function oO(m,w,T){var P=m==null?0:m.length;if(!P)return-1;var V=T==null?0:ve(T);return V<0&&(V=Mn(P+V,0)),Dg(m,ee(w,3),V)}function aO(m,w,T){var P=m==null?0:m.length;if(!P)return-1;var V=P-1;return T!==t&&(V=ve(T),V=T<0?Mn(P+V,0):Un(V,P-1)),Dg(m,ee(w,3),V,!0)}function sO(m){var w=m==null?0:m.length;return w?On(m,1):[]}function Gnt(m){var w=m==null?0:m.length;return w?On(m,W):[]}function Wnt(m,w){var T=m==null?0:m.length;return T?(w=w===t?1:ve(w),On(m,w)):[]}function jnt(m){for(var w=-1,T=m==null?0:m.length,P={};++w<T;){var V=m[w];P[V[0]]=V[1]}return P}function lO(m){return m&&m.length?m[0]:t}function Hnt(m,w,T){var P=m==null?0:m.length;if(!P)return-1;var V=T==null?0:ve(T);return V<0&&(V=Mn(P+V,0)),Mu(m,w,V)}function Unt(m){var w=m==null?0:m.length;return w?ai(m,0,-1):[]}var Xnt=xe(function(m){var w=Ke(m,Db);return w.length&&w[0]===m[0]?xb(w):[]}),Znt=xe(function(m){var w=si(m),T=Ke(m,Db);return w===si(T)?w=t:T.pop(),T.length&&T[0]===m[0]?xb(T,ee(w,2)):[]}),qnt=xe(function(m){var w=si(m),T=Ke(m,Db);return w=typeof w=="function"?w:t,w&&T.pop(),T.length&&T[0]===m[0]?xb(T,t,w):[]});function Knt(m,w){return m==null?"":Htt.call(m,w)}function si(m){var w=m==null?0:m.length;return w?m[w-1]:t}function Ynt(m,w,T){var P=m==null?0:m.length;if(!P)return-1;var V=P;return T!==t&&(V=ve(T),V=V<0?Mn(P+V,0):Un(V,P-1)),w===w?Att(m,w,V):Dg(m,W5,V,!0)}function Jnt(m,w){return m&&m.length?_R(m,ve(w)):t}var $nt=xe(uO);function uO(m,w){return m&&m.length&&w&&w.length?Mb(m,w):m}function Qnt(m,w,T){return m&&m.length&&w&&w.length?Mb(m,w,ee(T,2)):m}function trt(m,w,T){return m&&m.length&&w&&w.length?Mb(m,w,t,T):m}var ert=Fo(function(m,w){var T=m==null?0:m.length,P=vb(m,w);return wR(m,Ke(w,function(V){return Go(V,T)?+V:V}).sort(NR)),P});function nrt(m,w){var T=[];if(!(m&&m.length))return T;var P=-1,V=[],G=m.length;for(w=ee(w,3);++P<G;){var Y=m[P];w(Y,P,m)&&(T.push(Y),V.push(P))}return wR(m,V),T}function Hb(m){return m==null?m:qtt.call(m)}function rrt(m,w,T){var P=m==null?0:m.length;return P?(T&&typeof T!="number"&&sr(m,w,T)?(w=0,T=P):(w=w==null?0:ve(w),T=T===t?P:ve(T)),ai(m,w,T)):[]}function irt(m,w){return Yg(m,w)}function ort(m,w,T){return Cb(m,w,ee(T,2))}function art(m,w){var T=m==null?0:m.length;if(T){var P=Yg(m,w);if(P<T&&Ai(m[P],w))return P}return-1}function srt(m,w){return Yg(m,w,!0)}function lrt(m,w,T){return Cb(m,w,ee(T,2),!0)}function urt(m,w){var T=m==null?0:m.length;if(T){var P=Yg(m,w,!0)-1;if(Ai(m[P],w))return P}return-1}function crt(m){return m&&m.length?MR(m):[]}function hrt(m,w){return m&&m.length?MR(m,ee(w,2)):[]}function prt(m){var w=m==null?0:m.length;return w?ai(m,1,w):[]}function drt(m,w,T){return m&&m.length?(w=T||w===t?1:ve(w),ai(m,0,w<0?0:w)):[]}function frt(m,w,T){var P=m==null?0:m.length;return P?(w=T||w===t?1:ve(w),w=P-w,ai(m,w<0?0:w,P)):[]}function grt(m,w){return m&&m.length?Jg(m,ee(w,3),!1,!0):[]}function vrt(m,w){return m&&m.length?Jg(m,ee(w,3)):[]}var yrt=xe(function(m){return Ea(On(m,1,cn,!0))}),mrt=xe(function(m){var w=si(m);return cn(w)&&(w=t),Ea(On(m,1,cn,!0),ee(w,2))}),_rt=xe(function(m){var w=si(m);return w=typeof w=="function"?w:t,Ea(On(m,1,cn,!0),t,w)});function xrt(m){return m&&m.length?Ea(m):[]}function brt(m,w){return m&&m.length?Ea(m,ee(w,2)):[]}function wrt(m,w){return w=typeof w=="function"?w:t,m&&m.length?Ea(m,t,w):[]}function Ub(m){if(!(m&&m.length))return[];var w=0;return m=ka(m,function(T){if(cn(T))return w=Mn(T.length,w),!0}),lb(w,function(T){return Ke(m,ob(T))})}function cO(m,w){if(!(m&&m.length))return[];var T=Ub(m);return w==null?T:Ke(T,function(P){return Cr(w,t,P)})}var Srt=xe(function(m,w){return cn(m)?Qh(m,w):[]}),Mrt=xe(function(m){return kb(ka(m,cn))}),Irt=xe(function(m){var w=si(m);return cn(w)&&(w=t),kb(ka(m,cn),ee(w,2))}),Trt=xe(function(m){var w=si(m);return w=typeof w=="function"?w:t,kb(ka(m,cn),t,w)}),Crt=xe(Ub);function Art(m,w){return AR(m||[],w||[],$h)}function krt(m,w){return AR(m||[],w||[],np)}var Drt=xe(function(m){var w=m.length,T=w>1?m[w-1]:t;return T=typeof T=="function"?(m.pop(),T):t,cO(m,T)});function hO(m){var w=B(m);return w.__chain__=!0,w}function Lrt(m,w){return w(m),m}function av(m,w){return w(m)}var Nrt=Fo(function(m){var w=m.length,T=w?m[0]:0,P=this.__wrapped__,V=function(G){return vb(G,m)};return w>1||this.__actions__.length||!(P instanceof Ce)||!Go(T)?this.thru(V):(P=P.slice(T,+T+(w?1:0)),P.__actions__.push({func:av,args:[V],thisArg:t}),new ii(P,this.__chain__).thru(function(G){return w&&!G.length&&G.push(t),G}))});function Prt(){return hO(this)}function Ert(){return new ii(this.value(),this.__chain__)}function Rrt(){this.__values__===t&&(this.__values__=IO(this.value()));var m=this.__index__>=this.__values__.length,w=m?t:this.__values__[this.__index__++];return{done:m,value:w}}function Ort(){return this}function zrt(m){for(var w,T=this;T instanceof Ug;){var P=iO(T);P.__index__=0,P.__values__=t,w?V.__wrapped__=P:w=P;var V=P;T=T.__wrapped__}return V.__wrapped__=m,w}function Vrt(){var m=this.__wrapped__;if(m instanceof Ce){var w=m;return this.__actions__.length&&(w=new Ce(this)),w=w.reverse(),w.__actions__.push({func:av,args:[Hb],thisArg:t}),new ii(w,this.__chain__)}return this.thru(Hb)}function Brt(){return CR(this.__wrapped__,this.__actions__)}var Frt=$g(function(m,w,T){Ge.call(m,T)?++m[T]:Vo(m,T,1)});function Grt(m,w,T){var P=pe(m)?F5:Let;return T&&sr(m,w,T)&&(w=t),P(m,ee(w,3))}function Wrt(m,w){var T=pe(m)?ka:cR;return T(m,ee(w,3))}var jrt=VR(oO),Hrt=VR(aO);function Urt(m,w){return On(sv(m,w),1)}function Xrt(m,w){return On(sv(m,w),W)}function Zrt(m,w,T){return T=T===t?1:ve(T),On(sv(m,w),T)}function pO(m,w){var T=pe(m)?ni:Pa;return T(m,ee(w,3))}function dO(m,w){var T=pe(m)?htt:uR;return T(m,ee(w,3))}var qrt=$g(function(m,w,T){Ge.call(m,T)?m[T].push(w):Vo(m,T,[w])});function Krt(m,w,T,P){m=gr(m)?m:Ou(m),T=T&&!P?ve(T):0;var V=m.length;return T<0&&(T=Mn(V+T,0)),pv(m)?T<=V&&m.indexOf(w,T)>-1:!!V&&Mu(m,w,T)>-1}var Yrt=xe(function(m,w,T){var P=-1,V=typeof w=="function",G=gr(m)?ct(m.length):[];return Pa(m,function(Y){G[++P]=V?Cr(w,Y,T):tp(Y,w,T)}),G}),Jrt=$g(function(m,w,T){Vo(m,T,w)});function sv(m,w){var T=pe(m)?Ke:vR;return T(m,ee(w,3))}function $rt(m,w,T,P){return m==null?[]:(pe(w)||(w=w==null?[]:[w]),T=P?t:T,pe(T)||(T=T==null?[]:[T]),xR(m,w,T))}var Qrt=$g(function(m,w,T){m[T?0:1].push(w)},function(){return[[],[]]});function tit(m,w,T){var P=pe(m)?rb:H5,V=arguments.length<3;return P(m,ee(w,4),T,V,Pa)}function eit(m,w,T){var P=pe(m)?ptt:H5,V=arguments.length<3;return P(m,ee(w,4),T,V,uR)}function nit(m,w){var T=pe(m)?ka:cR;return T(m,cv(ee(w,3)))}function rit(m){var w=pe(m)?oR:Ket;return w(m)}function iit(m,w,T){(T?sr(m,w,T):w===t)?w=1:w=ve(w);var P=pe(m)?Tet:Yet;return P(m,w)}function oit(m){var w=pe(m)?Cet:$et;return w(m)}function ait(m){if(m==null)return 0;if(gr(m))return pv(m)?Tu(m):m.length;var w=Xn(m);return w==O||w==gt?m.size:wb(m).length}function sit(m,w,T){var P=pe(m)?ib:Qet;return T&&sr(m,w,T)&&(w=t),P(m,ee(w,3))}var lit=xe(function(m,w){if(m==null)return[];var T=w.length;return T>1&&sr(m,w[0],w[1])?w=[]:T>2&&sr(w[0],w[1],w[2])&&(w=[w[0]]),xR(m,On(w,1),[])}),lv=Gtt||function(){return Rn.Date.now()};function uit(m,w){if(typeof w!="function")throw new ri(a);return m=ve(m),function(){if(--m<1)return w.apply(this,arguments)}}function fO(m,w,T){return w=T?t:w,w=m&&w==null?m.length:w,Bo(m,I,t,t,t,t,w)}function gO(m,w){var T;if(typeof w!="function")throw new ri(a);return m=ve(m),function(){return--m>0&&(T=w.apply(this,arguments)),m<=1&&(w=t),T}}var Xb=xe(function(m,w,T){var P=_;if(T.length){var V=La(T,Eu(Xb));P|=S}return Bo(m,P,w,T,V)}),vO=xe(function(m,w,T){var P=_|v;if(T.length){var V=La(T,Eu(vO));P|=S}return Bo(w,P,m,T,V)});function yO(m,w,T){w=T?t:w;var P=Bo(m,x,t,t,t,t,t,w);return P.placeholder=yO.placeholder,P}function mO(m,w,T){w=T?t:w;var P=Bo(m,b,t,t,t,t,t,w);return P.placeholder=mO.placeholder,P}function _O(m,w,T){var P,V,G,Y,$,nt,yt=0,_t=!1,St=!1,Pt=!0;if(typeof m!="function")throw new ri(a);w=li(w)||0,$e(T)&&(_t=!!T.leading,St="maxWait"in T,G=St?Mn(li(T.maxWait)||0,w):G,Pt="trailing"in T?!!T.trailing:Pt);function Xt(hn){var ki=P,Ho=V;return P=V=t,yt=hn,Y=m.apply(Ho,ki),Y}function ne(hn){return yt=hn,$=op(Se,w),_t?Xt(hn):Y}function me(hn){var ki=hn-nt,Ho=hn-yt,VO=w-ki;return St?Un(VO,G-Ho):VO}function re(hn){var ki=hn-nt,Ho=hn-yt;return nt===t||ki>=w||ki<0||St&&Ho>=G}function Se(){var hn=lv();if(re(hn))return Le(hn);$=op(Se,me(hn))}function Le(hn){return $=t,Pt&&P?Xt(hn):(P=V=t,Y)}function Lr(){$!==t&&kR($),yt=0,P=nt=V=$=t}function lr(){return $===t?Y:Le(lv())}function Nr(){var hn=lv(),ki=re(hn);if(P=arguments,V=this,nt=hn,ki){if($===t)return ne(nt);if(St)return kR($),$=op(Se,w),Xt(nt)}return $===t&&($=op(Se,w)),Y}return Nr.cancel=Lr,Nr.flush=lr,Nr}var cit=xe(function(m,w){return lR(m,1,w)}),hit=xe(function(m,w,T){return lR(m,li(w)||0,T)});function pit(m){return Bo(m,A)}function uv(m,w){if(typeof m!="function"||w!=null&&typeof w!="function")throw new ri(a);var T=function(){var P=arguments,V=w?w.apply(this,P):P[0],G=T.cache;if(G.has(V))return G.get(V);var Y=m.apply(this,P);return T.cache=G.set(V,Y)||G,Y};return T.cache=new(uv.Cache||zo),T}uv.Cache=zo;function cv(m){if(typeof m!="function")throw new ri(a);return function(){var w=arguments;switch(w.length){case 0:return!m.call(this);case 1:return!m.call(this,w[0]);case 2:return!m.call(this,w[0],w[1]);case 3:return!m.call(this,w[0],w[1],w[2])}return!m.apply(this,w)}}function dit(m){return gO(2,m)}var fit=tnt(function(m,w){w=w.length==1&&pe(w[0])?Ke(w[0],Ar(ee())):Ke(On(w,1),Ar(ee()));var T=w.length;return xe(function(P){for(var V=-1,G=Un(P.length,T);++V<G;)P[V]=w[V].call(this,P[V]);return Cr(m,this,P)})}),Zb=xe(function(m,w){var T=La(w,Eu(Zb));return Bo(m,S,t,w,T)}),xO=xe(function(m,w){var T=La(w,Eu(xO));return Bo(m,M,t,w,T)}),git=Fo(function(m,w){return Bo(m,C,t,t,t,w)});function vit(m,w){if(typeof m!="function")throw new ri(a);return w=w===t?w:ve(w),xe(m,w)}function yit(m,w){if(typeof m!="function")throw new ri(a);return w=w==null?0:Mn(ve(w),0),xe(function(T){var P=T[w],V=Oa(T,0,w);return P&&Da(V,P),Cr(m,this,V)})}function mit(m,w,T){var P=!0,V=!0;if(typeof m!="function")throw new ri(a);return $e(T)&&(P="leading"in T?!!T.leading:P,V="trailing"in T?!!T.trailing:V),_O(m,w,{leading:P,maxWait:w,trailing:V})}function _it(m){return fO(m,1)}function xit(m,w){return Zb(Lb(w),m)}function bit(){if(!arguments.length)return[];var m=arguments[0];return pe(m)?m:[m]}function wit(m){return oi(m,f)}function Sit(m,w){return w=typeof w=="function"?w:t,oi(m,f,w)}function Mit(m){return oi(m,h|f)}function Iit(m,w){return w=typeof w=="function"?w:t,oi(m,h|f,w)}function Tit(m,w){return w==null||sR(m,w,An(w))}function Ai(m,w){return m===w||m!==m&&w!==w}var Cit=nv(_b),Ait=nv(function(m,w){return m>=w}),ll=dR(function(){return arguments}())?dR:function(m){return en(m)&&Ge.call(m,"callee")&&!Q5.call(m,"callee")},pe=ct.isArray,kit=E5?Ar(E5):zet;function gr(m){return m!=null&&hv(m.length)&&!Wo(m)}function cn(m){return en(m)&&gr(m)}function Dit(m){return m===!0||m===!1||en(m)&&ar(m)==wt}var za=jtt||iw,Lit=R5?Ar(R5):Vet;function Nit(m){return en(m)&&m.nodeType===1&&!ap(m)}function Pit(m){if(m==null)return!0;if(gr(m)&&(pe(m)||typeof m=="string"||typeof m.splice=="function"||za(m)||Ru(m)||ll(m)))return!m.length;var w=Xn(m);if(w==O||w==gt)return!m.size;if(ip(m))return!wb(m).length;for(var T in m)if(Ge.call(m,T))return!1;return!0}function Eit(m,w){return ep(m,w)}function Rit(m,w,T){T=typeof T=="function"?T:t;var P=T?T(m,w):t;return P===t?ep(m,w,t,T):!!P}function qb(m){if(!en(m))return!1;var w=ar(m);return w==bt||w==Ot||typeof m.message=="string"&&typeof m.name=="string"&&!ap(m)}function Oit(m){return typeof m=="number"&&eR(m)}function Wo(m){if(!$e(m))return!1;var w=ar(m);return w==Nt||w==se||w==Jt||w==tt}function bO(m){return typeof m=="number"&&m==ve(m)}function hv(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=q}function $e(m){var w=typeof m;return m!=null&&(w=="object"||w=="function")}function en(m){return m!=null&&typeof m=="object"}var wO=O5?Ar(O5):Fet;function zit(m,w){return m===w||bb(m,w,Vb(w))}function Vit(m,w,T){return T=typeof T=="function"?T:t,bb(m,w,Vb(w),T)}function Bit(m){return SO(m)&&m!=+m}function Fit(m){if(Snt(m))throw new he(o);return fR(m)}function Git(m){return m===null}function Wit(m){return m==null}function SO(m){return typeof m=="number"||en(m)&&ar(m)==st}function ap(m){if(!en(m)||ar(m)!=Z)return!1;var w=Vg(m);if(w===null)return!0;var T=Ge.call(w,"constructor")&&w.constructor;return typeof T=="function"&&T instanceof T&&Eg.call(T)==ztt}var Kb=z5?Ar(z5):Get;function jit(m){return bO(m)&&m>=-9007199254740991&&m<=q}var MO=V5?Ar(V5):Wet;function pv(m){return typeof m=="string"||!pe(m)&&en(m)&&ar(m)==rt}function Dr(m){return typeof m=="symbol"||en(m)&&ar(m)==It}var Ru=B5?Ar(B5):jet;function Hit(m){return m===t}function Uit(m){return en(m)&&Xn(m)==Ct}function Xit(m){return en(m)&&ar(m)==Zt}var Zit=nv(Sb),qit=nv(function(m,w){return m<=w});function IO(m){if(!m)return[];if(gr(m))return pv(m)?Ti(m):fr(m);if(Zh&&m[Zh])return Itt(m[Zh]());var w=Xn(m),T=w==O?cb:w==gt?Lg:Ou;return T(m)}function jo(m){if(!m)return m===0?m:0;if(m=li(m),m===W||m===-1/0){var w=m<0?-1:1;return w*j}return m===m?m:0}function ve(m){var w=jo(m),T=w%1;return w===w?T?w-T:w:0}function TO(m){return m?il(ve(m),0,H):0}function li(m){if(typeof m=="number")return m;if(Dr(m))return J;if($e(m)){var w=typeof m.valueOf=="function"?m.valueOf():m;m=$e(w)?w+"":w}if(typeof m!="string")return m===0?m:+m;m=U5(m);var T=AQ.test(m);return T||DQ.test(m)?ltt(m.slice(2),T?2:8):CQ.test(m)?J:+m}function CO(m){return ro(m,vr(m))}function Kit(m){return m?il(ve(m),-9007199254740991,q):m===0?m:0}function Oe(m){return m==null?"":kr(m)}var Yit=Nu(function(m,w){if(ip(w)||gr(w)){ro(w,An(w),m);return}for(var T in w)Ge.call(w,T)&&$h(m,T,w[T])}),AO=Nu(function(m,w){ro(w,vr(w),m)}),dv=Nu(function(m,w,T,P){ro(w,vr(w),m,P)}),Jit=Nu(function(m,w,T,P){ro(w,An(w),m,P)}),$it=Fo(vb);function Qit(m,w){var T=Lu(m);return w==null?T:aR(T,w)}var tot=xe(function(m,w){m=je(m);var T=-1,P=w.length,V=P>2?w[2]:t;for(V&&sr(w[0],w[1],V)&&(P=1);++T<P;)for(var G=w[T],Y=vr(G),$=-1,nt=Y.length;++$<nt;){var yt=Y[$],_t=m[yt];(_t===t||Ai(_t,Au[yt])&&!Ge.call(m,yt))&&(m[yt]=G[yt])}return m}),eot=xe(function(m){return m.push(t,UR),Cr(kO,t,m)});function not(m,w){return G5(m,ee(w,3),no)}function rot(m,w){return G5(m,ee(w,3),mb)}function iot(m,w){return m==null?m:yb(m,ee(w,3),vr)}function oot(m,w){return m==null?m:hR(m,ee(w,3),vr)}function aot(m,w){return m&&no(m,ee(w,3))}function sot(m,w){return m&&mb(m,ee(w,3))}function lot(m){return m==null?[]:qg(m,An(m))}function uot(m){return m==null?[]:qg(m,vr(m))}function Yb(m,w,T){var P=m==null?t:ol(m,w);return P===t?T:P}function cot(m,w){return m!=null&&qR(m,w,Pet)}function Jb(m,w){return m!=null&&qR(m,w,Eet)}var hot=FR(function(m,w,T){w!=null&&typeof w.toString!="function"&&(w=Rg.call(w)),m[w]=T},Qb(yr)),pot=FR(function(m,w,T){w!=null&&typeof w.toString!="function"&&(w=Rg.call(w)),Ge.call(m,w)?m[w].push(T):m[w]=[T]},ee),dot=xe(tp);function An(m){return gr(m)?iR(m):wb(m)}function vr(m){return gr(m)?iR(m,!0):Het(m)}function fot(m,w){var T={};return w=ee(w,3),no(m,function(P,V,G){Vo(T,w(P,V,G),P)}),T}function got(m,w){var T={};return w=ee(w,3),no(m,function(P,V,G){Vo(T,V,w(P,V,G))}),T}var vot=Nu(function(m,w,T){Kg(m,w,T)}),kO=Nu(function(m,w,T,P){Kg(m,w,T,P)}),yot=Fo(function(m,w){var T={};if(m==null)return T;var P=!1;w=Ke(w,function(G){return G=Ra(G,m),P||(P=G.length>1),G}),ro(m,Ob(m),T),P&&(T=oi(T,h|d|f,hnt));for(var V=w.length;V--;)Ab(T,w[V]);return T});function mot(m,w){return DO(m,cv(ee(w)))}var _ot=Fo(function(m,w){return m==null?{}:Xet(m,w)});function DO(m,w){if(m==null)return{};var T=Ke(Ob(m),function(P){return[P]});return w=ee(w),bR(m,T,function(P,V){return w(P,V[0])})}function xot(m,w,T){w=Ra(w,m);var P=-1,V=w.length;for(V||(V=1,m=t);++P<V;){var G=m==null?t:m[io(w[P])];G===t&&(P=V,G=T),m=Wo(G)?G.call(m):G}return m}function bot(m,w,T){return m==null?m:np(m,w,T)}function wot(m,w,T,P){return P=typeof P=="function"?P:t,m==null?m:np(m,w,T,P)}var LO=jR(An),NO=jR(vr);function Sot(m,w,T){var P=pe(m),V=P||za(m)||Ru(m);if(w=ee(w,4),T==null){var G=m&&m.constructor;V?T=P?new G:[]:$e(m)?T=Wo(G)?Lu(Vg(m)):{}:T={}}return(V?ni:no)(m,function(Y,$,nt){return w(T,Y,$,nt)}),T}function Mot(m,w){return m==null?!0:Ab(m,w)}function Iot(m,w,T){return m==null?m:TR(m,w,Lb(T))}function Tot(m,w,T,P){return P=typeof P=="function"?P:t,m==null?m:TR(m,w,Lb(T),P)}function Ou(m){return m==null?[]:ub(m,An(m))}function Cot(m){return m==null?[]:ub(m,vr(m))}function Aot(m,w,T){return T===t&&(T=w,w=t),T!==t&&(T=li(T),T=T===T?T:0),w!==t&&(w=li(w),w=w===w?w:0),il(li(m),w,T)}function kot(m,w,T){return w=jo(w),T===t?(T=w,w=0):T=jo(T),m=li(m),Ret(m,w,T)}function Dot(m,w,T){if(T&&typeof T!="boolean"&&sr(m,w,T)&&(w=T=t),T===t&&(typeof w=="boolean"?(T=w,w=t):typeof m=="boolean"&&(T=m,m=t)),m===t&&w===t?(m=0,w=1):(m=jo(m),w===t?(w=m,m=0):w=jo(w)),m>w){var P=m;m=w,w=P}if(T||m%1||w%1){var V=nR();return Un(m+V*(w-m+stt("1e-"+((V+"").length-1))),w)}return Ib(m,w)}var Lot=Pu(function(m,w,T){return w=w.toLowerCase(),m+(T?PO(w):w)});function PO(m){return $b(Oe(m).toLowerCase())}function EO(m){return m=Oe(m),m&&m.replace(NQ,xtt).replace(JQ,"")}function Not(m,w,T){m=Oe(m),w=kr(w);var P=m.length;T=T===t?P:il(ve(T),0,P);var V=T;return T-=w.length,T>=0&&m.slice(T,V)==w}function Pot(m){return m=Oe(m),m&&pQ.test(m)?m.replace(Aa,btt):m}function Eot(m){return m=Oe(m),m&&mQ.test(m)?m.replace(Zx,"\\$&"):m}var Rot=Pu(function(m,w,T){return m+(T?"-":"")+w.toLowerCase()}),Oot=Pu(function(m,w,T){return m+(T?" ":"")+w.toLowerCase()}),zot=zR("toLowerCase");function Vot(m,w,T){m=Oe(m),w=ve(w);var P=w?Tu(m):0;if(!w||P>=w)return m;var V=(w-P)/2;return ev(Wg(V),T)+m+ev(Gg(V),T)}function Bot(m,w,T){m=Oe(m),w=ve(w);var P=w?Tu(m):0;return w&&P<w?m+ev(w-P,T):m}function Fot(m,w,T){m=Oe(m),w=ve(w);var P=w?Tu(m):0;return w&&P<w?ev(w-P,T)+m:m}function Got(m,w,T){return T||w==null?w=0:w&&(w=+w),Ztt(Oe(m).replace(qx,""),w||0)}function Wot(m,w,T){return(T?sr(m,w,T):w===t)?w=1:w=ve(w),Tb(Oe(m),w)}function jot(){var m=arguments,w=Oe(m[0]);return m.length<3?w:w.replace(m[1],m[2])}var Hot=Pu(function(m,w,T){return m+(T?"_":"")+w.toLowerCase()});function Uot(m,w,T){return T&&typeof T!="number"&&sr(m,w,T)&&(w=T=t),T=T===t?H:T>>>0,T?(m=Oe(m),m&&(typeof w=="string"||w!=null&&!Kb(w))&&(w=kr(w),!w&&Iu(m))?Oa(Ti(m),0,T):m.split(w,T)):[]}var Xot=Pu(function(m,w,T){return m+(T?" ":"")+$b(w)});function Zot(m,w,T){return m=Oe(m),T=T==null?0:il(ve(T),0,m.length),w=kr(w),m.slice(T,T+w.length)==w}function qot(m,w,T){var P=B.templateSettings;T&&sr(m,w,T)&&(w=t),m=Oe(m),w=dv({},w,P,HR);var V=dv({},w.imports,P.imports,HR),G=An(V),Y=ub(V,G),$,nt,yt=0,_t=w.interpolate||Tg,St="__p += '",Pt=hb((w.escape||Tg).source+"|"+_t.source+"|"+(_t===p5?TQ:Tg).source+"|"+(w.evaluate||Tg).source+"|$","g"),Xt="//# sourceURL="+(Ge.call(w,"sourceURL")?(w.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ntt+"]")+`
22
+ `;m.replace(Pt,function(re,Se,Le,Lr,lr,Nr){return Le||(Le=Lr),St+=m.slice(yt,Nr).replace(PQ,wtt),Se&&($=!0,St+=`' +
23
+ __e(`+Se+`) +
24
+ '`),lr&&(nt=!0,St+=`';
25
+ `+lr+`;
26
+ __p += '`),Le&&(St+=`' +
27
+ ((__t = (`+Le+`)) == null ? '' : __t) +
28
+ '`),yt=Nr+re.length,re}),St+=`';
29
+ `;var ne=Ge.call(w,"variable")&&w.variable;if(!ne)St=`with (obj) {
30
+ `+St+`
31
+ }
32
+ `;else if(MQ.test(ne))throw new he(s);St=(nt?St.replace(Qs,""):St).replace(we,"$1").replace(un,"$1;"),St="function("+(ne||"obj")+`) {
33
+ `+(ne?"":`obj || (obj = {});
34
+ `)+"var __t, __p = ''"+($?", __e = _.escape":"")+(nt?`, __j = Array.prototype.join;
35
+ function print() { __p += __j.call(arguments, '') }
36
+ `:`;
37
+ `)+St+`return __p
38
+ }`;var me=OO(function(){return Ee(G,Xt+"return "+St).apply(t,Y)});if(me.source=St,qb(me))throw me;return me}function Kot(m){return Oe(m).toLowerCase()}function Yot(m){return Oe(m).toUpperCase()}function Jot(m,w,T){if(m=Oe(m),m&&(T||w===t))return U5(m);if(!m||!(w=kr(w)))return m;var P=Ti(m),V=Ti(w),G=X5(P,V),Y=Z5(P,V)+1;return Oa(P,G,Y).join("")}function $ot(m,w,T){if(m=Oe(m),m&&(T||w===t))return m.slice(0,K5(m)+1);if(!m||!(w=kr(w)))return m;var P=Ti(m),V=Z5(P,Ti(w))+1;return Oa(P,0,V).join("")}function Qot(m,w,T){if(m=Oe(m),m&&(T||w===t))return m.replace(qx,"");if(!m||!(w=kr(w)))return m;var P=Ti(m),V=X5(P,Ti(w));return Oa(P,V).join("")}function tat(m,w){var T=D,P=N;if($e(w)){var V="separator"in w?w.separator:V;T="length"in w?ve(w.length):T,P="omission"in w?kr(w.omission):P}m=Oe(m);var G=m.length;if(Iu(m)){var Y=Ti(m);G=Y.length}if(T>=G)return m;var $=T-Tu(P);if($<1)return P;var nt=Y?Oa(Y,0,$).join(""):m.slice(0,$);if(V===t)return nt+P;if(Y&&($+=nt.length-$),Kb(V)){if(m.slice($).search(V)){var yt,_t=nt;for(V.global||(V=hb(V.source,Oe(d5.exec(V))+"g")),V.lastIndex=0;yt=V.exec(_t);)var St=yt.index;nt=nt.slice(0,St===t?$:St)}}else if(m.indexOf(kr(V),$)!=$){var Pt=nt.lastIndexOf(V);Pt>-1&&(nt=nt.slice(0,Pt))}return nt+P}function eat(m){return m=Oe(m),m&&wu.test(m)?m.replace(Uh,ktt):m}var nat=Pu(function(m,w,T){return m+(T?" ":"")+w.toUpperCase()}),$b=zR("toUpperCase");function RO(m,w,T){return m=Oe(m),w=T?t:w,w===t?Mtt(m)?Ntt(m):gtt(m):m.match(w)||[]}var OO=xe(function(m,w){try{return Cr(m,t,w)}catch(T){return qb(T)?T:new he(T)}}),rat=Fo(function(m,w){return ni(w,function(T){T=io(T),Vo(m,T,Xb(m[T],m))}),m});function iat(m){var w=m==null?0:m.length,T=ee();return m=w?Ke(m,function(P){if(typeof P[1]!="function")throw new ri(a);return[T(P[0]),P[1]]}):[],xe(function(P){for(var V=-1;++V<w;){var G=m[V];if(Cr(G[0],this,P))return Cr(G[1],this,P)}})}function oat(m){return Det(oi(m,h))}function Qb(m){return function(){return m}}function aat(m,w){return m==null||m!==m?w:m}var sat=BR(),lat=BR(!0);function yr(m){return m}function tw(m){return gR(typeof m=="function"?m:oi(m,h))}function uat(m){return yR(oi(m,h))}function cat(m,w){return mR(m,oi(w,h))}var hat=xe(function(m,w){return function(T){return tp(T,m,w)}}),pat=xe(function(m,w){return function(T){return tp(m,T,w)}});function ew(m,w,T){var P=An(w),V=qg(w,P);T==null&&!($e(w)&&(V.length||!P.length))&&(T=w,w=m,m=this,V=qg(w,An(w)));var G=!($e(T)&&"chain"in T)||!!T.chain,Y=Wo(m);return ni(V,function($){var nt=w[$];m[$]=nt,Y&&(m.prototype[$]=function(){var yt=this.__chain__;if(G||yt){var _t=m(this.__wrapped__),St=_t.__actions__=fr(this.__actions__);return St.push({func:nt,args:arguments,thisArg:m}),_t.__chain__=yt,_t}return nt.apply(m,Da([this.value()],arguments))})}),m}function dat(){return Rn._===this&&(Rn._=Vtt),this}function nw(){}function fat(m){return m=ve(m),xe(function(w){return _R(w,m)})}var gat=Pb(Ke),vat=Pb(F5),yat=Pb(ib);function zO(m){return Fb(m)?ob(io(m)):Zet(m)}function mat(m){return function(w){return m==null?t:ol(m,w)}}var _at=GR(),xat=GR(!0);function rw(){return[]}function iw(){return!1}function bat(){return{}}function wat(){return""}function Sat(){return!0}function Mat(m,w){if(m=ve(m),m<1||m>q)return[];var T=H,P=Un(m,H);w=ee(w),m-=H;for(var V=lb(P,w);++T<m;)w(T);return V}function Iat(m){return pe(m)?Ke(m,io):Dr(m)?[m]:fr(rO(Oe(m)))}function Tat(m){var w=++Ott;return Oe(m)+w}var Cat=tv(function(m,w){return m+w},0),Aat=Eb("ceil"),kat=tv(function(m,w){return m/w},1),Dat=Eb("floor");function Lat(m){return m&&m.length?Zg(m,yr,_b):t}function Nat(m,w){return m&&m.length?Zg(m,ee(w,2),_b):t}function Pat(m){return j5(m,yr)}function Eat(m,w){return j5(m,ee(w,2))}function Rat(m){return m&&m.length?Zg(m,yr,Sb):t}function Oat(m,w){return m&&m.length?Zg(m,ee(w,2),Sb):t}var zat=tv(function(m,w){return m*w},1),Vat=Eb("round"),Bat=tv(function(m,w){return m-w},0);function Fat(m){return m&&m.length?sb(m,yr):0}function Gat(m,w){return m&&m.length?sb(m,ee(w,2)):0}return B.after=uit,B.ary=fO,B.assign=Yit,B.assignIn=AO,B.assignInWith=dv,B.assignWith=Jit,B.at=$it,B.before=gO,B.bind=Xb,B.bindAll=rat,B.bindKey=vO,B.castArray=bit,B.chain=hO,B.chunk=Dnt,B.compact=Lnt,B.concat=Nnt,B.cond=iat,B.conforms=oat,B.constant=Qb,B.countBy=Frt,B.create=Qit,B.curry=yO,B.curryRight=mO,B.debounce=_O,B.defaults=tot,B.defaultsDeep=eot,B.defer=cit,B.delay=hit,B.difference=Pnt,B.differenceBy=Ent,B.differenceWith=Rnt,B.drop=Ont,B.dropRight=znt,B.dropRightWhile=Vnt,B.dropWhile=Bnt,B.fill=Fnt,B.filter=Wrt,B.flatMap=Urt,B.flatMapDeep=Xrt,B.flatMapDepth=Zrt,B.flatten=sO,B.flattenDeep=Gnt,B.flattenDepth=Wnt,B.flip=pit,B.flow=sat,B.flowRight=lat,B.fromPairs=jnt,B.functions=lot,B.functionsIn=uot,B.groupBy=qrt,B.initial=Unt,B.intersection=Xnt,B.intersectionBy=Znt,B.intersectionWith=qnt,B.invert=hot,B.invertBy=pot,B.invokeMap=Yrt,B.iteratee=tw,B.keyBy=Jrt,B.keys=An,B.keysIn=vr,B.map=sv,B.mapKeys=fot,B.mapValues=got,B.matches=uat,B.matchesProperty=cat,B.memoize=uv,B.merge=vot,B.mergeWith=kO,B.method=hat,B.methodOf=pat,B.mixin=ew,B.negate=cv,B.nthArg=fat,B.omit=yot,B.omitBy=mot,B.once=dit,B.orderBy=$rt,B.over=gat,B.overArgs=fit,B.overEvery=vat,B.overSome=yat,B.partial=Zb,B.partialRight=xO,B.partition=Qrt,B.pick=_ot,B.pickBy=DO,B.property=zO,B.propertyOf=mat,B.pull=$nt,B.pullAll=uO,B.pullAllBy=Qnt,B.pullAllWith=trt,B.pullAt=ert,B.range=_at,B.rangeRight=xat,B.rearg=git,B.reject=nit,B.remove=nrt,B.rest=vit,B.reverse=Hb,B.sampleSize=iit,B.set=bot,B.setWith=wot,B.shuffle=oit,B.slice=rrt,B.sortBy=lit,B.sortedUniq=crt,B.sortedUniqBy=hrt,B.split=Uot,B.spread=yit,B.tail=prt,B.take=drt,B.takeRight=frt,B.takeRightWhile=grt,B.takeWhile=vrt,B.tap=Lrt,B.throttle=mit,B.thru=av,B.toArray=IO,B.toPairs=LO,B.toPairsIn=NO,B.toPath=Iat,B.toPlainObject=CO,B.transform=Sot,B.unary=_it,B.union=yrt,B.unionBy=mrt,B.unionWith=_rt,B.uniq=xrt,B.uniqBy=brt,B.uniqWith=wrt,B.unset=Mot,B.unzip=Ub,B.unzipWith=cO,B.update=Iot,B.updateWith=Tot,B.values=Ou,B.valuesIn=Cot,B.without=Srt,B.words=RO,B.wrap=xit,B.xor=Mrt,B.xorBy=Irt,B.xorWith=Trt,B.zip=Crt,B.zipObject=Art,B.zipObjectDeep=krt,B.zipWith=Drt,B.entries=LO,B.entriesIn=NO,B.extend=AO,B.extendWith=dv,ew(B,B),B.add=Cat,B.attempt=OO,B.camelCase=Lot,B.capitalize=PO,B.ceil=Aat,B.clamp=Aot,B.clone=wit,B.cloneDeep=Mit,B.cloneDeepWith=Iit,B.cloneWith=Sit,B.conformsTo=Tit,B.deburr=EO,B.defaultTo=aat,B.divide=kat,B.endsWith=Not,B.eq=Ai,B.escape=Pot,B.escapeRegExp=Eot,B.every=Grt,B.find=jrt,B.findIndex=oO,B.findKey=not,B.findLast=Hrt,B.findLastIndex=aO,B.findLastKey=rot,B.floor=Dat,B.forEach=pO,B.forEachRight=dO,B.forIn=iot,B.forInRight=oot,B.forOwn=aot,B.forOwnRight=sot,B.get=Yb,B.gt=Cit,B.gte=Ait,B.has=cot,B.hasIn=Jb,B.head=lO,B.identity=yr,B.includes=Krt,B.indexOf=Hnt,B.inRange=kot,B.invoke=dot,B.isArguments=ll,B.isArray=pe,B.isArrayBuffer=kit,B.isArrayLike=gr,B.isArrayLikeObject=cn,B.isBoolean=Dit,B.isBuffer=za,B.isDate=Lit,B.isElement=Nit,B.isEmpty=Pit,B.isEqual=Eit,B.isEqualWith=Rit,B.isError=qb,B.isFinite=Oit,B.isFunction=Wo,B.isInteger=bO,B.isLength=hv,B.isMap=wO,B.isMatch=zit,B.isMatchWith=Vit,B.isNaN=Bit,B.isNative=Fit,B.isNil=Wit,B.isNull=Git,B.isNumber=SO,B.isObject=$e,B.isObjectLike=en,B.isPlainObject=ap,B.isRegExp=Kb,B.isSafeInteger=jit,B.isSet=MO,B.isString=pv,B.isSymbol=Dr,B.isTypedArray=Ru,B.isUndefined=Hit,B.isWeakMap=Uit,B.isWeakSet=Xit,B.join=Knt,B.kebabCase=Rot,B.last=si,B.lastIndexOf=Ynt,B.lowerCase=Oot,B.lowerFirst=zot,B.lt=Zit,B.lte=qit,B.max=Lat,B.maxBy=Nat,B.mean=Pat,B.meanBy=Eat,B.min=Rat,B.minBy=Oat,B.stubArray=rw,B.stubFalse=iw,B.stubObject=bat,B.stubString=wat,B.stubTrue=Sat,B.multiply=zat,B.nth=Jnt,B.noConflict=dat,B.noop=nw,B.now=lv,B.pad=Vot,B.padEnd=Bot,B.padStart=Fot,B.parseInt=Got,B.random=Dot,B.reduce=tit,B.reduceRight=eit,B.repeat=Wot,B.replace=jot,B.result=xot,B.round=Vat,B.runInContext=et,B.sample=rit,B.size=ait,B.snakeCase=Hot,B.some=sit,B.sortedIndex=irt,B.sortedIndexBy=ort,B.sortedIndexOf=art,B.sortedLastIndex=srt,B.sortedLastIndexBy=lrt,B.sortedLastIndexOf=urt,B.startCase=Xot,B.startsWith=Zot,B.subtract=Bat,B.sum=Fat,B.sumBy=Gat,B.template=qot,B.times=Mat,B.toFinite=jo,B.toInteger=ve,B.toLength=TO,B.toLower=Kot,B.toNumber=li,B.toSafeInteger=Kit,B.toString=Oe,B.toUpper=Yot,B.trim=Jot,B.trimEnd=$ot,B.trimStart=Qot,B.truncate=tat,B.unescape=eat,B.uniqueId=Tat,B.upperCase=nat,B.upperFirst=$b,B.each=pO,B.eachRight=dO,B.first=lO,ew(B,function(){var m={};return no(B,function(w,T){Ge.call(B.prototype,T)||(m[T]=w)}),m}(),{chain:!1}),B.VERSION=r,ni(["bind","bindKey","curry","curryRight","partial","partialRight"],function(m){B[m].placeholder=B}),ni(["drop","take"],function(m,w){Ce.prototype[m]=function(T){T=T===t?1:Mn(ve(T),0);var P=this.__filtered__&&!w?new Ce(this):this.clone();return P.__filtered__?P.__takeCount__=Un(T,P.__takeCount__):P.__views__.push({size:Un(T,H),type:m+(P.__dir__<0?"Right":"")}),P},Ce.prototype[m+"Right"]=function(T){return this.reverse()[m](T).reverse()}}),ni(["filter","map","takeWhile"],function(m,w){var T=w+1,P=T==k||T==F;Ce.prototype[m]=function(V){var G=this.clone();return G.__iteratees__.push({iteratee:ee(V,3),type:T}),G.__filtered__=G.__filtered__||P,G}}),ni(["head","last"],function(m,w){var T="take"+(w?"Right":"");Ce.prototype[m]=function(){return this[T](1).value()[0]}}),ni(["initial","tail"],function(m,w){var T="drop"+(w?"":"Right");Ce.prototype[m]=function(){return this.__filtered__?new Ce(this):this[T](1)}}),Ce.prototype.compact=function(){return this.filter(yr)},Ce.prototype.find=function(m){return this.filter(m).head()},Ce.prototype.findLast=function(m){return this.reverse().find(m)},Ce.prototype.invokeMap=xe(function(m,w){return typeof m=="function"?new Ce(this):this.map(function(T){return tp(T,m,w)})}),Ce.prototype.reject=function(m){return this.filter(cv(ee(m)))},Ce.prototype.slice=function(m,w){m=ve(m);var T=this;return T.__filtered__&&(m>0||w<0)?new Ce(T):(m<0?T=T.takeRight(-m):m&&(T=T.drop(m)),w!==t&&(w=ve(w),T=w<0?T.dropRight(-w):T.take(w-m)),T)},Ce.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Ce.prototype.toArray=function(){return this.take(H)},no(Ce.prototype,function(m,w){var T=/^(?:filter|find|map|reject)|While$/.test(w),P=/^(?:head|last)$/.test(w),V=B[P?"take"+(w=="last"?"Right":""):w],G=P||/^find/.test(w);V&&(B.prototype[w]=function(){var Y=this.__wrapped__,$=P?[1]:arguments,nt=Y instanceof Ce,yt=$[0],_t=nt||pe(Y),St=function(Se){var Le=V.apply(B,Da([Se],$));return P&&Pt?Le[0]:Le};_t&&T&&typeof yt=="function"&&yt.length!=1&&(nt=_t=!1);var Pt=this.__chain__,Xt=!!this.__actions__.length,ne=G&&!Pt,me=nt&&!Xt;if(!G&&_t){Y=me?Y:new Ce(this);var re=m.apply(Y,$);return re.__actions__.push({func:av,args:[St],thisArg:t}),new ii(re,Pt)}return ne&&me?m.apply(this,$):(re=this.thru(St),ne?P?re.value()[0]:re.value():re)})}),ni(["pop","push","shift","sort","splice","unshift"],function(m){var w=Ng[m],T=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",P=/^(?:pop|shift)$/.test(m);B.prototype[m]=function(){var V=arguments;if(P&&!this.__chain__){var G=this.value();return w.apply(pe(G)?G:[],V)}return this[T](function(Y){return w.apply(pe(Y)?Y:[],V)})}}),no(Ce.prototype,function(m,w){var T=B[w];if(T){var P=T.name+"";Ge.call(Du,P)||(Du[P]=[]),Du[P].push({name:w,func:T})}}),Du[Qg(t,v).name]=[{name:"wrapper",func:t}],Ce.prototype.clone=tet,Ce.prototype.reverse=eet,Ce.prototype.value=net,B.prototype.at=Nrt,B.prototype.chain=Prt,B.prototype.commit=Ert,B.prototype.next=Rrt,B.prototype.plant=zrt,B.prototype.reverse=Vrt,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Brt,B.prototype.first=B.prototype.head,Zh&&(B.prototype[Zh]=Ort),B},Cu=Ptt();tl?((tl.exports=Cu)._=Cu,tb._=Cu):Rn._=Cu}).call(lo)}(lp,lp.exports);for(var X=lp.exports,kn=[],gv=0;gv<256;++gv)kn.push((gv+256).toString(16).slice(1));function HO(n,e=0){return(kn[n[e+0]]+kn[n[e+1]]+kn[n[e+2]]+kn[n[e+3]]+"-"+kn[n[e+4]]+kn[n[e+5]]+"-"+kn[n[e+6]]+kn[n[e+7]]+"-"+kn[n[e+8]]+kn[n[e+9]]+"-"+kn[n[e+10]]+kn[n[e+11]]+kn[n[e+12]]+kn[n[e+13]]+kn[n[e+14]]+kn[n[e+15]]).toLowerCase()}var up,UO=new Uint8Array(16);function XO(){if(!up&&(up=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!up))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return up(UO)}var ZO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const aw={randomUUID:ZO};function qO(n,e,t){if(aw.randomUUID&&!n)return aw.randomUUID();n=n||{};var r=n.random||(n.rng||XO)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,HO(r)}/*! *****************************************************************************
39
+ Copyright (c) Microsoft Corporation.
40
+
41
+ Permission to use, copy, modify, and/or distribute this software for any
42
+ purpose with or without fee is hereby granted.
43
+
44
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
45
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
46
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
47
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
48
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
49
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
50
+ PERFORMANCE OF THIS SOFTWARE.
51
+ ***************************************************************************** */var vv=function(n,e){return vv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},vv(n,e)};function Q(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vv(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var KO=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),YO=function(){function n(){this.browser=new KO,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return n}(),oe=new YO;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(oe.wxa=!0,oe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?oe.worker=!0:!oe.hasGlobalWindow||"Deno"in window?(oe.node=!0,oe.svgSupported=!0):JO(navigator.userAgent,oe);function JO(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),i=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),o=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),i&&(t.ie=!0,t.version=i[1]),o&&(t.edge=!0,t.version=o[1],t.newEdge=+o[1].split(".")[0]>18),a&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var yv=12,sw="sans-serif",Uo=yv+"px "+sw,$O=20,QO=100,t3="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function e3(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t<n.length;t++){var r=String.fromCharCode(t+32),i=(n.charCodeAt(t)-$O)/QO;e[r]=i}return e}var n3=e3(t3),Xo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var n,e;return function(t,r){if(!n){var i=Xo.createCanvas();n=i&&i.getContext("2d")}if(n)return e!==r&&(e=n.font=r||Uo),n.measureText(t);t=t||"",r=r||Uo;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||yv,s=0;if(r.indexOf("mono")>=0)s=a*t.length;else for(var l=0;l<t.length;l++){var u=n3[t[l]];s+=u==null?a:u*a}return{width:s}}}(),loadImage:function(n,e,t){var r=new Image;return r.onload=e,r.onerror=t,r.src=n,r}},lw=Di(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,e){return n["[object "+e+"]"]=!0,n},{}),uw=Di(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,e){return n["[object "+e+"Array]"]=!0,n},{}),ul=Object.prototype.toString,cp=Array.prototype,r3=cp.forEach,i3=cp.filter,mv=cp.slice,o3=cp.map,cw=(function(){}).constructor,hp=cw?cw.prototype:null,_v="__proto__",a3=2311;function hw(){return a3++}function ci(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];typeof console<"u"&&console.error.apply(console,n)}function Wt(n){if(n==null||typeof n!="object")return n;var e=n,t=ul.call(n);if(t==="[object Array]"){if(!Fu(n)){e=[];for(var r=0,i=n.length;r<i;r++)e[r]=Wt(n[r])}}else if(uw[t]){if(!Fu(n)){var o=n.constructor;if(o.from)e=o.from(n);else{e=new o(n.length);for(var r=0,i=n.length;r<i;r++)e[r]=n[r]}}}else if(!lw[t]&&!Fu(n)&&!Va(n)){e={};for(var a in n)n.hasOwnProperty(a)&&a!==_v&&(e[a]=Wt(n[a]))}return e}function Yt(n,e,t){if(!Vt(e)||!Vt(n))return t?Wt(e):n;for(var r in e)if(e.hasOwnProperty(r)&&r!==_v){var i=n[r],o=e[r];Vt(o)&&Vt(i)&&!ht(o)&&!ht(i)&&!Va(o)&&!Va(i)&&!pw(o)&&!pw(i)&&!Fu(o)&&!Fu(i)?Yt(i,o,t):(t||!(r in n))&&(n[r]=Wt(e[r]))}return n}function xv(n,e){for(var t=n[0],r=1,i=n.length;r<i;r++)t=Yt(t,n[r],e);return t}function lt(n,e){if(Object.assign)Object.assign(n,e);else for(var t in e)e.hasOwnProperty(t)&&t!==_v&&(n[t]=e[t]);return n}function Ft(n,e,t){for(var r=ue(e),i=0,o=r.length;i<o;i++){var a=r[i];(t?e[a]!=null:n[a]==null)&&(n[a]=e[a])}return n}function te(n,e){if(n){if(n.indexOf)return n.indexOf(e);for(var t=0,r=n.length;t<r;t++)if(n[t]===e)return t}return-1}function s3(n,e){var t=n.prototype;function r(){}r.prototype=e.prototype,n.prototype=new r;for(var i in t)t.hasOwnProperty(i)&&(n.prototype[i]=t[i]);n.prototype.constructor=n,n.superClass=e}function nn(n,e,t){if(n="prototype"in n?n.prototype:n,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&(t?e[o]!=null:n[o]==null)&&(n[o]=e[o])}else Ft(n,e,t)}function zn(n){return!n||typeof n=="string"?!1:typeof n.length=="number"}function R(n,e,t){if(n&&e)if(n.forEach&&n.forEach===r3)n.forEach(e,t);else if(n.length===+n.length)for(var r=0,i=n.length;r<i;r++)e.call(t,n[r],r,n);else for(var o in n)n.hasOwnProperty(o)&&e.call(t,n[o],o,n)}function pt(n,e,t){if(!n)return[];if(!e)return bv(n);if(n.map&&n.map===o3)return n.map(e,t);for(var r=[],i=0,o=n.length;i<o;i++)r.push(e.call(t,n[i],i,n));return r}function Di(n,e,t,r){if(n&&e){for(var i=0,o=n.length;i<o;i++)t=e.call(r,t,n[i],i,n);return t}}function Me(n,e,t){if(!n)return[];if(!e)return bv(n);if(n.filter&&n.filter===i3)return n.filter(e,t);for(var r=[],i=0,o=n.length;i<o;i++)e.call(t,n[i],i,n)&&r.push(n[i]);return r}function l3(n,e,t){if(n&&e){for(var r=0,i=n.length;r<i;r++)if(e.call(t,n[r],r,n))return n[r]}}function ue(n){if(!n)return[];if(Object.keys)return Object.keys(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(t);return e}function u3(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return function(){return n.apply(e,t.concat(mv.call(arguments)))}}var At=hp&&Et(hp.bind)?hp.call.bind(hp.bind):u3;function qt(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return n.apply(this,e.concat(mv.call(arguments)))}}function ht(n){return Array.isArray?Array.isArray(n):ul.call(n)==="[object Array]"}function Et(n){return typeof n=="function"}function Tt(n){return typeof n=="string"}function pp(n){return ul.call(n)==="[object String]"}function ye(n){return typeof n=="number"}function Vt(n){var e=typeof n;return e==="function"||!!n&&e==="object"}function pw(n){return!!lw[ul.call(n)]}function Zn(n){return!!uw[ul.call(n)]}function Va(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function dp(n){return n.colorStops!=null}function c3(n){return n.image!=null}function dw(n){return ul.call(n)==="[object RegExp]"}function Ba(n){return n!==n}function rn(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=0,r=n.length;t<r;t++)if(n[t]!=null)return n[t]}function Ht(n,e){return n??e}function Pr(n,e,t){return n??e??t}function bv(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return mv.apply(n,e)}function wv(n){if(typeof n=="number")return[n,n,n,n];var e=n.length;return e===2?[n[0],n[1],n[0],n[1]]:e===3?[n[0],n[1],n[2],n[1]]:n}function Bt(n,e){if(!n)throw new Error(e)}function hi(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var fw="__ec_primitive__";function fp(n){n[fw]=!0}function Fu(n){return n[fw]}var h3=function(){function n(){this.data={}}return n.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},n.prototype.has=function(e){return this.data.hasOwnProperty(e)},n.prototype.get=function(e){return this.data[e]},n.prototype.set=function(e,t){return this.data[e]=t,this},n.prototype.keys=function(){return ue(this.data)},n.prototype.forEach=function(e){var t=this.data;for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)},n}(),gw=typeof Map=="function";function p3(){return gw?new Map:new h3}var d3=function(){function n(e){var t=ht(e);this.data=p3();var r=this;e instanceof n?e.each(i):e&&R(e,i);function i(o,a){t?r.set(o,a):r.set(a,o)}}return n.prototype.hasKey=function(e){return this.data.has(e)},n.prototype.get=function(e){return this.data.get(e)},n.prototype.set=function(e,t){return this.data.set(e,t),t},n.prototype.each=function(e,t){this.data.forEach(function(r,i){e.call(t,r,i)})},n.prototype.keys=function(){var e=this.data.keys();return gw?Array.from(e):e},n.prototype.removeKey=function(e){this.data.delete(e)},n}();function Lt(n){return new d3(n)}function Gu(n,e){for(var t=new n.constructor(n.length+e.length),r=0;r<n.length;r++)t[r]=n[r];for(var i=n.length,r=0;r<e.length;r++)t[r+i]=e[r];return t}function gp(n,e){var t;if(Object.create)t=Object.create(n);else{var r=function(){};r.prototype=n,t=new r}return e&&lt(t,e),t}function vw(n){var e=n.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function kt(n,e){return n.hasOwnProperty(e)}function Qe(){}var vp=180/Math.PI;function Fa(n,e){return n==null&&(n=0),e==null&&(e=0),[n,e]}function qn(n,e){return n[0]=e[0],n[1]=e[1],n}function uo(n){return[n[0],n[1]]}function f3(n,e,t){return n[0]=e,n[1]=t,n}function yw(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function Sv(n,e,t,r){return n[0]=e[0]+t[0]*r,n[1]=e[1]+t[1]*r,n}function Ga(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function Mv(n){return Math.sqrt(g3(n))}function g3(n){return n[0]*n[0]+n[1]*n[1]}function yp(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function cl(n,e){var t=Mv(e);return t===0?(n[0]=0,n[1]=0):(n[0]=e[0]/t,n[1]=e[1]/t),n}function Iv(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var Zo=Iv;function v3(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])}var Wa=v3;function mp(n,e,t,r){return n[0]=e[0]+r*(t[0]-e[0]),n[1]=e[1]+r*(t[1]-e[1]),n}function Dn(n,e,t){var r=e[0],i=e[1];return n[0]=t[0]*r+t[2]*i+t[4],n[1]=t[1]*r+t[3]*i+t[5],n}function qo(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function Ko(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}var hl=function(){function n(e,t){this.target=e,this.topTarget=t&&t.topTarget}return n}(),y3=function(){function n(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new hl(t,e),"dragstart",e.event))},n.prototype._drag=function(e){var t=this._draggingTarget;if(t){var r=e.offsetX,i=e.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,t.drift(o,a,e),this.handler.dispatchToElement(new hl(t,e),"drag",e.event);var s=this.handler.findHover(r,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new hl(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new hl(s,e),"dragenter",e.event))}},n.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new hl(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new hl(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},n}(),Er=function(){function n(e){e&&(this._$eventProcessor=e)}return n.prototype.on=function(e,t,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof t=="function"&&(i=r,r=t,t=null),!r||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),o[e]||(o[e]=[]);for(var s=0;s<o[e].length;s++)if(o[e][s].h===r)return this;var l={h:r,query:t,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=o[e].length-1,c=o[e][u];return c&&c.callAtLast?o[e].splice(u,0,l):o[e].push(l),this},n.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},n.prototype.off=function(e,t){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(t){if(r[e]){for(var i=[],o=0,a=r[e].length;o<a;o++)r[e][o].h!==t&&i.push(r[e][o]);r[e]=i}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},n.prototype.trigger=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[e],o=this._$eventProcessor;if(i)for(var a=t.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(e,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},n.prototype.triggerWithContext=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[e],o=this._$eventProcessor;if(i)for(var a=t.length,s=t[a-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(e,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},n}(),m3=Math.log(2);function Tv(n,e,t,r,i,o){var a=r+"-"+i,s=n.length;if(o.hasOwnProperty(a))return o[a];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/m3);return n[t][l]}for(var u=r|1<<t,c=t+1;r&1<<c;)c++;for(var h=0,d=0,f=0;d<s;d++){var g=1<<d;g&i||(h+=(f%2?-1:1)*n[t][d]*Tv(n,e-1,c,u,i|g,o),f++)}return o[a]=h,h}function mw(n,e){var t=[[n[0],n[1],1,0,0,0,-e[0]*n[0],-e[0]*n[1]],[0,0,0,n[0],n[1],1,-e[1]*n[0],-e[1]*n[1]],[n[2],n[3],1,0,0,0,-e[2]*n[2],-e[2]*n[3]],[0,0,0,n[2],n[3],1,-e[3]*n[2],-e[3]*n[3]],[n[4],n[5],1,0,0,0,-e[4]*n[4],-e[4]*n[5]],[0,0,0,n[4],n[5],1,-e[5]*n[4],-e[5]*n[5]],[n[6],n[7],1,0,0,0,-e[6]*n[6],-e[6]*n[7]],[0,0,0,n[6],n[7],1,-e[7]*n[6],-e[7]*n[7]]],r={},i=Tv(t,8,0,0,0,r);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Tv(t,7,a===0?1:0,1<<a,1<<s,r)/i*e[a];return function(l,u,c){var h=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/h,l[1]=(u*o[3]+c*o[4]+o[5])/h}}}var _w="___zrEVENTSAVED",Cv=[];function _3(n,e,t,r,i){return Av(Cv,e,r,i,!0)&&Av(n,t,Cv[0],Cv[1])}function Av(n,e,t,r,i){if(e.getBoundingClientRect&&oe.domSupported&&!xw(e)){var o=e[_w]||(e[_w]={}),a=x3(e,o),s=b3(a,o,i);if(s)return s(n,t,r),!0}return!1}function x3(n,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var r=["left","right"],i=["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",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),n.appendChild(a),t.push(a)}return t}function b3(n,e,t){for(var r=t?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),h=2*u,d=c.left,f=c.top;a.push(d,f),l=l&&o&&d===o[h]&&f===o[h+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=t?mw(s,a):mw(a,s))}function xw(n){return n.nodeName.toUpperCase()==="CANVAS"}var w3=/([&<>"'])/g,S3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Kn(n){return n==null?"":(n+"").replace(w3,function(e,t){return S3[t]})}var M3=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,kv=[],I3=oe.browser.firefox&&+oe.browser.version.split(".")[0]<39;function Dv(n,e,t,r){return t=t||{},r?bw(n,e,t):I3&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):bw(n,e,t),t}function bw(n,e,t){if(oe.domSupported&&n.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(xw(n)){var o=n.getBoundingClientRect();t.zrX=r-o.left,t.zrY=i-o.top;return}else if(Av(kv,n,r,i)){t.zrX=kv[0],t.zrY=kv[1];return}}t.zrX=t.zrY=0}function Lv(n){return n||window.event}function Rr(n,e,t){if(e=Lv(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Dv(n,o,e,t)}else{Dv(n,e,e,t);var a=T3(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&M3.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function T3(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var i=Math.abs(r!==0?r:t),o=r>0?-1:r<0?1:t>0?-1:1;return 3*i*o}function Nv(n,e,t,r){n.addEventListener(e,t,r)}function C3(n,e,t,r){n.removeEventListener(e,t,r)}var co=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function ww(n){return n.which===2||n.which===3}var A3=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var i=e.touches;if(i){for(var o={points:[],touches:[],target:t,event:e},a=0,s=i.length;a<s;a++){var l=i[a],u=Dv(r,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},n.prototype._recognize=function(e){for(var t in Pv)if(Pv.hasOwnProperty(t)){var r=Pv[t](this._track,e);if(r)return r}},n}();function Sw(n){var e=n[1][0]-n[0][0],t=n[1][1]-n[0][1];return Math.sqrt(e*e+t*t)}function k3(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}var Pv={pinch:function(n,e){var t=n.length;if(t){var r=(n[t-1]||{}).points,i=(n[t-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=Sw(r)/Sw(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=k3(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:n[0].target,event:e}}}}};function mr(){return[1,0,0,1,0,0]}function _p(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Ev(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function ho(n,e,t){var r=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],o=e[0]*t[2]+e[2]*t[3],a=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=i,n[2]=o,n[3]=a,n[4]=s,n[5]=l,n}function Li(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function ja(n,e,t,r){r===void 0&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),h=Math.cos(t);return n[0]=i*h+s*c,n[1]=-i*c+s*h,n[2]=o*h+l*c,n[3]=-o*c+h*l,n[4]=h*(a-r[0])+c*(u-r[1])+r[0],n[5]=h*(u-r[1])-c*(a-r[0])+r[1],n}function Rv(n,e,t){var r=t[0],i=t[1];return n[0]=e[0]*r,n[1]=e[1]*i,n[2]=e[2]*r,n[3]=e[3]*i,n[4]=e[4]*r,n[5]=e[5]*i,n}function pl(n,e){var t=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=t*a-o*r;return l?(l=1/l,n[0]=a*l,n[1]=-o*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-a*i)*l,n[5]=(o*i-t*s)*l,n):null}function D3(n){var e=mr();return Ev(e,n),e}var $t=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,i){e.x=t.x+r.x*i,e.y=t.y+r.y*i},n.lerp=function(e,t,r,i){var o=1-i;e.x=o*t.x+i*r.x,e.y=o*t.y+i*r.y},n}(),xp=Math.min,bp=Math.max,Ha=new $t,Ua=new $t,Xa=new $t,Za=new $t,Wu=new $t,ju=new $t,Qt=function(){function n(e,t,r,i){r<0&&(e=e+r,r=-r),i<0&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=r,this.height=i}return n.prototype.union=function(e){var t=xp(e.x,this.x),r=xp(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=bp(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=bp(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,i=e.height/t.height,o=mr();return Li(o,o,[-t.x,-t.y]),Rv(o,o,[r,i]),Li(o,o,[e.x,e.y]),o},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(o<l||u<i||s<c||h<a);if(t){var f=1/0,g=0,y=Math.abs(o-l),_=Math.abs(u-i),v=Math.abs(s-c),p=Math.abs(h-a),x=Math.min(y,_),b=Math.min(v,p);o<l||u<i?x>g&&(g=x,y<_?$t.set(ju,-y,0):$t.set(ju,_,0)):x<f&&(f=x,y<_?$t.set(Wu,y,0):$t.set(Wu,-_,0)),s<c||h<a?b>g&&(g=b,v<p?$t.set(ju,0,-v):$t.set(ju,0,p)):x<f&&(f=x,v<p?$t.set(Wu,0,v):$t.set(Wu,0,-p))}return t&&$t.copy(t,d?Wu:ju),d},n.prototype.contain=function(e,t){var r=this;return e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];e.x=t.x*i+a,e.y=t.y*o+s,e.width=t.width*i,e.height=t.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ha.x=Xa.x=t.x,Ha.y=Za.y=t.y,Ua.x=Za.x=t.x+t.width,Ua.y=Xa.y=t.y+t.height,Ha.transform(r),Za.transform(r),Ua.transform(r),Xa.transform(r),e.x=xp(Ha.x,Ua.x,Xa.x,Za.x),e.y=xp(Ha.y,Ua.y,Xa.y,Za.y);var l=bp(Ha.x,Ua.x,Xa.x,Za.x),u=bp(Ha.y,Ua.y,Xa.y,Za.y);e.width=l-e.x,e.height=u-e.y},n}(),Mw="silent";function L3(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:N3}}function N3(){co(this.event)}var P3=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Er),Hu=function(){function n(e,t){this.x=e,this.y=t}return n}(),E3=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ov=new Qt(0,0,0,0),Iw=function(n){Q(e,n);function e(t,r,i,o,a){var s=n.call(this)||this;return s._hovered=new Hu(0,0),s.storage=t,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new P3,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new y3(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(R(E3,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,i=t.zrY,o=Cw(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new Hu(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Hu(0,0)},e.prototype.dispatch=function(t,r){var i=this[t];i&&i.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,i){t=t||{};var o=t.target;if(!(o&&o.silent)){for(var a="on"+r,s=L3(r,t,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,i){var o=this.storage.getDisplayList(),a=new Hu(t,r);if(Tw(o,a,t,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Qt(t-u,r-u,l,l),h=o.length-1;h>=0;h--){var d=o[h];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Ov.copy(d.getBoundingRect()),d.transform&&Ov.applyTransform(d.transform),Ov.intersect(c)&&s.push(d))}if(s.length)for(var f=4,g=Math.PI/12,y=Math.PI*2,_=0;_<u;_+=f)for(var v=0;v<y;v+=g){var p=t+_*Math.cos(v),x=r+_*Math.sin(v);if(Tw(s,a,p,x,i),a.target)return a}}return a},e.prototype.processGesture=function(t,r){this._gestureMgr||(this._gestureMgr=new A3);var i=this._gestureMgr;r==="start"&&i.clear();var o=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),o){var a=o.type;t.gestureEvent=a;var s=new Hu;s.target=o.target,this.dispatchToElement(s,a,o.event)}},e}(Er);R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){Iw.prototype[n]=function(e){var t=e.zrX,r=e.zrY,i=Cw(this,t,r),o,a;if((n!=="mouseup"||!i)&&(o=this.findHover(t,r),a=o.target),n==="mousedown")this._downEl=a,this._downPoint=[e.zrX,e.zrY],this._upEl=a;else if(n==="mouseup")this._upEl=a;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||Zo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,n,e)}});function R3(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,t))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?Mw:!0}return!1}function Tw(n,e,t,r,i){for(var o=n.length-1;o>=0;o--){var a=n[o],s=void 0;if(a!==i&&!a.ignore&&(s=R3(a,t,r))&&(!e.topTarget&&(e.topTarget=a),s!==Mw)){e.target=a;break}}}function Cw(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}var Aw=32,Uu=7;function O3(n){for(var e=0;n>=Aw;)e|=n&1,n>>=1;return n+e}function kw(n,e,t,r){var i=e+1;if(i===t)return 1;if(r(n[i++],n[e])<0){for(;i<t&&r(n[i],n[i-1])<0;)i++;z3(n,e,i)}else for(;i<t&&r(n[i],n[i-1])>=0;)i++;return i-e}function z3(n,e,t){for(t--;e<t;){var r=n[e];n[e++]=n[t],n[t--]=r}}function Dw(n,e,t,r,i){for(r===e&&r++;r<t;r++){for(var o=n[r],a=e,s=r,l;a<s;)l=a+s>>>1,i(o,n[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;u>0;)n[a+u]=n[a+u-1],u--}n[a]=o}}function zv(n,e,t,r,i,o){var a=0,s=0,l=1;if(o(n,e[t+i])>0){for(s=r-i;l<s&&o(n,e[t+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(n,e[t+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(n,e[t+c])>0?a=c+1:l=c}return l}function Vv(n,e,t,r,i,o){var a=0,s=0,l=1;if(o(n,e[t+i])<0){for(s=i+1;l<s&&o(n,e[t+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(n,e[t+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(n,e[t+c])<0?l=c:a=c+1}return l}function V3(n,e){var t=Uu,r,i,o=0,a=[];r=[],i=[];function s(f,g){r[o]=f,i[o]=g,o+=1}function l(){for(;o>1;){var f=o-2;if(f>=1&&i[f-1]<=i[f]+i[f+1]||f>=2&&i[f-2]<=i[f]+i[f-1])i[f-1]<i[f+1]&&f--;else if(i[f]>i[f+1])break;c(f)}}function u(){for(;o>1;){var f=o-2;f>0&&i[f-1]<i[f+1]&&f--,c(f)}}function c(f){var g=r[f],y=i[f],_=r[f+1],v=i[f+1];i[f]=y+v,f===o-3&&(r[f+1]=r[f+2],i[f+1]=i[f+2]),o--;var p=Vv(n[_],n,g,y,0,e);g+=p,y-=p,y!==0&&(v=zv(n[g+y-1],n,_,v,v-1,e),v!==0&&(y<=v?h(g,y,_,v):d(g,y,_,v)))}function h(f,g,y,_){var v=0;for(v=0;v<g;v++)a[v]=n[f+v];var p=0,x=y,b=f;if(n[b++]=n[x++],--_===0){for(v=0;v<g;v++)n[b+v]=a[p+v];return}if(g===1){for(v=0;v<_;v++)n[b+v]=n[x+v];n[b+_]=a[p];return}for(var S=t,M,I,C;;){M=0,I=0,C=!1;do if(e(n[x],a[p])<0){if(n[b++]=n[x++],I++,M=0,--_===0){C=!0;break}}else if(n[b++]=a[p++],M++,I=0,--g===1){C=!0;break}while((M|I)<S);if(C)break;do{if(M=Vv(n[x],a,p,g,0,e),M!==0){for(v=0;v<M;v++)n[b+v]=a[p+v];if(b+=M,p+=M,g-=M,g<=1){C=!0;break}}if(n[b++]=n[x++],--_===0){C=!0;break}if(I=zv(a[p],n,x,_,0,e),I!==0){for(v=0;v<I;v++)n[b+v]=n[x+v];if(b+=I,x+=I,_-=I,_===0){C=!0;break}}if(n[b++]=a[p++],--g===1){C=!0;break}S--}while(M>=Uu||I>=Uu);if(C)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),g===1){for(v=0;v<_;v++)n[b+v]=n[x+v];n[b+_]=a[p]}else{if(g===0)throw new Error;for(v=0;v<g;v++)n[b+v]=a[p+v]}}function d(f,g,y,_){var v=0;for(v=0;v<_;v++)a[v]=n[y+v];var p=f+g-1,x=_-1,b=y+_-1,S=0,M=0;if(n[b--]=n[p--],--g===0){for(S=b-(_-1),v=0;v<_;v++)n[S+v]=a[v];return}if(_===1){for(b-=g,p-=g,M=b+1,S=p+1,v=g-1;v>=0;v--)n[M+v]=n[S+v];n[b]=a[x];return}for(var I=t;;){var C=0,A=0,D=!1;do if(e(a[x],n[p])<0){if(n[b--]=n[p--],C++,A=0,--g===0){D=!0;break}}else if(n[b--]=a[x--],A++,C=0,--_===1){D=!0;break}while((C|A)<I);if(D)break;do{if(C=g-Vv(a[x],n,f,g,g-1,e),C!==0){for(b-=C,p-=C,g-=C,M=b+1,S=p+1,v=C-1;v>=0;v--)n[M+v]=n[S+v];if(g===0){D=!0;break}}if(n[b--]=a[x--],--_===1){D=!0;break}if(A=_-zv(n[p],a,0,_,_-1,e),A!==0){for(b-=A,x-=A,_-=A,M=b+1,S=x+1,v=0;v<A;v++)n[M+v]=a[S+v];if(_<=1){D=!0;break}}if(n[b--]=n[p--],--g===0){D=!0;break}I--}while(C>=Uu||A>=Uu);if(D)break;I<0&&(I=0),I+=2}if(t=I,t<1&&(t=1),_===1){for(b-=g,p-=g,M=b+1,S=p+1,v=g-1;v>=0;v--)n[M+v]=n[S+v];n[b]=a[x]}else{if(_===0)throw new Error;for(S=b-(_-1),v=0;v<_;v++)n[S+v]=a[v]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function wp(n,e,t,r){t||(t=0),r||(r=n.length);var i=r-t;if(!(i<2)){var o=0;if(i<Aw){o=kw(n,t,r,e),Dw(n,t,r,t+o,e);return}var a=V3(n,e),s=O3(i);do{if(o=kw(n,t,r,e),o<s){var l=i;l>s&&(l=s),Dw(n,t,t+l,t+o,e),o=l}a.pushRun(t,o),a.mergeRuns(),i-=o,t+=o}while(i!==0);a.forceMergeRuns()}}var Ni=1,Sp=2,Xu=4,Lw=!1;function Bv(){Lw||(Lw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Nw(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var B3=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Nw}return n.prototype.traverse=function(e,t){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,t)},n.prototype.getDisplayList=function(e,t){t=t||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(t),r},n.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,r=this._displayList,i=0,o=t.length;i<o;i++)this._updateAndAddDisplayable(t[i],null,e);r.length=this._displayListLen,wp(r,Nw)},n.prototype._updateAndAddDisplayable=function(e,t,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t?t=t.slice():t=[];for(var o=i,a=e;o;)o.parent=a,o.updateTransform(),t.push(o),a=o,o=o.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Ni),this._updateAndAddDisplayable(u,t,r)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Bv(),c.z=0),isNaN(c.z2)&&(Bv(),c.z2=0),isNaN(c.zlevel)&&(Bv(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t<r;t++)this.delRoot(e[t]);return}var i=te(this._roots,e);i>=0&&this._roots.splice(i,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}(),Mp;Mp=oe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};var Zu={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-Zu.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?Zu.bounceIn(n*2)*.5:Zu.bounceOut(n*2-1)*.5+.5}},Ip=Math.pow,Yo=Math.sqrt,Pw=1e-8,Ew=1e-4,Rw=Yo(3),Tp=1/3,Pi=Fa(),Or=Fa(),dl=Fa();function Jo(n){return n>-1e-8&&n<Pw}function Ow(n){return n>Pw||n<-1e-8}function yn(n,e,t,r,i){var o=1-i;return o*o*(o*n+3*i*e)+i*i*(i*r+3*o*t)}function zw(n,e,t,r,i){var o=1-i;return 3*(((e-n)*o+2*(t-e)*i)*o+(r-t)*i*i)}function Cp(n,e,t,r,i,o){var a=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-i,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(Jo(c)&&Jo(h))if(Jo(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[f++]=g)}else{var y=h*h-4*c*d;if(Jo(y)){var _=h/c,g=-s/a+_,v=-_/2;g>=0&&g<=1&&(o[f++]=g),v>=0&&v<=1&&(o[f++]=v)}else if(y>0){var p=Yo(y),x=c*s+1.5*a*(-h+p),b=c*s+1.5*a*(-h-p);x<0?x=-Ip(-x,Tp):x=Ip(x,Tp),b<0?b=-Ip(-b,Tp):b=Ip(b,Tp);var g=(-s-(x+b))/(3*a);g>=0&&g<=1&&(o[f++]=g)}else{var S=(2*c*s-3*a*h)/(2*Yo(c*c*c)),M=Math.acos(S)/3,I=Yo(c),C=Math.cos(M),g=(-s-2*I*C)/(3*a),v=(-s+I*(C+Rw*Math.sin(M)))/(3*a),A=(-s+I*(C-Rw*Math.sin(M)))/(3*a);g>=0&&g<=1&&(o[f++]=g),v>=0&&v<=1&&(o[f++]=v),A>=0&&A<=1&&(o[f++]=A)}}return f}function Vw(n,e,t,r,i){var o=6*t-12*e+6*n,a=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(Jo(a)){if(Ow(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Jo(c))i[0]=-o/(2*a);else if(c>0){var h=Yo(c),u=(-o+h)/(2*a),d=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function $o(n,e,t,r,i,o){var a=(e-n)*i+n,s=(t-e)*i+e,l=(r-t)*i+t,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=n,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function Bw(n,e,t,r,i,o,a,s,l,u,c){var h,d=.005,f=1/0,g,y,_,v;Pi[0]=l,Pi[1]=u;for(var p=0;p<1;p+=.05)Or[0]=yn(n,t,i,a,p),Or[1]=yn(e,r,o,s,p),_=Wa(Pi,Or),_<f&&(h=p,f=_);f=1/0;for(var x=0;x<32&&!(d<Ew);x++)g=h-d,y=h+d,Or[0]=yn(n,t,i,a,g),Or[1]=yn(e,r,o,s,g),_=Wa(Or,Pi),g>=0&&_<f?(h=g,f=_):(dl[0]=yn(n,t,i,a,y),dl[1]=yn(e,r,o,s,y),v=Wa(dl,Pi),y<=1&&v<f?(h=y,f=v):d*=.5);return c&&(c[0]=yn(n,t,i,a,h),c[1]=yn(e,r,o,s,h)),Yo(f)}function F3(n,e,t,r,i,o,a,s,l){for(var u=n,c=e,h=0,d=1/l,f=1;f<=l;f++){var g=f*d,y=yn(n,t,i,a,g),_=yn(e,r,o,s,g),v=y-u,p=_-c;h+=Math.sqrt(v*v+p*p),u=y,c=_}return h}function In(n,e,t,r){var i=1-r;return i*(i*n+2*r*e)+r*r*t}function Fv(n,e,t,r){return 2*((1-r)*(e-n)+r*(t-e))}function G3(n,e,t,r,i){var o=n-2*e+t,a=2*(e-n),s=n-r,l=0;if(Jo(o)){if(Ow(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Jo(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=Yo(c),u=(-a+h)/(2*o),d=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Fw(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function qu(n,e,t,r,i){var o=(e-n)*r+n,a=(t-e)*r+e,s=(a-o)*r+o;i[0]=n,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=t}function Gw(n,e,t,r,i,o,a,s,l){var u,c=.005,h=1/0;Pi[0]=a,Pi[1]=s;for(var d=0;d<1;d+=.05){Or[0]=In(n,t,i,d),Or[1]=In(e,r,o,d);var f=Wa(Pi,Or);f<h&&(u=d,h=f)}h=1/0;for(var g=0;g<32&&!(c<Ew);g++){var y=u-c,_=u+c;Or[0]=In(n,t,i,y),Or[1]=In(e,r,o,y);var f=Wa(Or,Pi);if(y>=0&&f<h)u=y,h=f;else{dl[0]=In(n,t,i,_),dl[1]=In(e,r,o,_);var v=Wa(dl,Pi);_<=1&&v<h?(u=_,h=v):c*=.5}}return l&&(l[0]=In(n,t,i,u),l[1]=In(e,r,o,u)),Yo(h)}function W3(n,e,t,r,i,o,a){for(var s=n,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=In(n,t,i,d),g=In(e,r,o,d),y=f-s,_=g-l;u+=Math.sqrt(y*y+_*_),s=f,l=g}return u}var j3=/cubic-bezier\(([0-9,\.e ]+)\)/;function Gv(n){var e=n&&j3.exec(n);if(e){var t=e[1].split(","),r=+hi(t[0]),i=+hi(t[1]),o=+hi(t[2]),a=+hi(t[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Cp(0,r,o,1,l,s)&&yn(0,i,a,1,s[0])}}}var H3=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Qe,this.ondestroy=e.ondestroy||Qe,this.onrestart=e.onrestart||Qe,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,i=e-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Et(e)?e:Zu[e]||Gv(e)},n}(),Ww=function(){function n(e){this.value=e}return n}(),U3=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new Ww(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),Ku=function(){function n(e){this._list=new U3,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,i=this._map,o=null;if(i[e]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Ww(t),s.key=e,r.insertEntry(s),i[e]=s}return o},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}(),jw={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 pi(n){return n=Math.round(n),n<0?0:n>255?255:n}function X3(n){return n=Math.round(n),n<0?0:n>360?360:n}function Yu(n){return n<0?0:n>1?1:n}function Wv(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?pi(parseFloat(e)/100*255):pi(parseInt(e,10))}function qa(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Yu(parseFloat(e)/100):Yu(parseFloat(e))}function jv(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function Qo(n,e,t){return n+(e-n)*t}function zr(n,e,t,r,i){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function Hv(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var Hw=new Ku(20),Ap=null;function fl(n,e){Ap&&Hv(Ap,e),Ap=Hw.put(n,Ap||e.slice())}function _r(n,e){if(n){e=e||[];var t=Hw.get(n);if(t)return Hv(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in jw)return Hv(e,jw[r]),fl(n,e),e;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){zr(e,0,0,0,1);return}return zr(e,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),fl(n,e),e}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){zr(e,0,0,0,1);return}return zr(e,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),fl(n,e),e}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?zr(e,+u[0],+u[1],+u[2],1):zr(e,0,0,0,1);c=qa(u.pop());case"rgb":if(u.length>=3)return zr(e,Wv(u[0]),Wv(u[1]),Wv(u[2]),u.length===3?c:qa(u[3])),fl(n,e),e;zr(e,0,0,0,1);return;case"hsla":if(u.length!==4){zr(e,0,0,0,1);return}return u[3]=qa(u[3]),Uv(u,e),fl(n,e),e;case"hsl":if(u.length!==3){zr(e,0,0,0,1);return}return Uv(u,e),fl(n,e),e;default:return}}zr(e,0,0,0,1)}}function Uv(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=qa(n[1]),i=qa(n[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return e=e||[],zr(e,pi(jv(a,o,t+1/3)*255),pi(jv(a,o,t)*255),pi(jv(a,o,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function Z3(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,i=Math.min(e,t,r),o=Math.max(e,t,r),a=o-i,s=(o+i)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(o+i):u=a/(2-o-i);var c=((o-e)/6+a/2)/a,h=((o-t)/6+a/2)/a,d=((o-r)/6+a/2)/a;e===o?l=d-h:t===o?l=1/3+c-d:r===o&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var f=[l*360,u,s];return n[3]!=null&&f.push(n[3]),f}}function Xv(n,e){var t=_r(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return po(t,t.length===4?"rgba":"rgb")}}function Zv(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return t[0]=pi(Qo(a[0],s[0],l)),t[1]=pi(Qo(a[1],s[1],l)),t[2]=pi(Qo(a[2],s[2],l)),t[3]=Yu(Qo(a[3],s[3],l)),t}}function q3(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=_r(e[i]),s=_r(e[o]),l=r-i,u=po([pi(Qo(a[0],s[0],l)),pi(Qo(a[1],s[1],l)),pi(Qo(a[2],s[2],l)),Yu(Qo(a[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function Ju(n,e,t,r){var i=_r(n);if(n)return i=Z3(i),e!=null&&(i[0]=X3(e)),t!=null&&(i[1]=qa(t)),r!=null&&(i[2]=qa(r)),po(Uv(i),"rgba")}function kp(n,e){var t=_r(n);if(t&&e!=null)return t[3]=Yu(e),po(t,"rgba")}function po(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function Dp(n,e){var t=_r(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Uw=new Ku(100);function qv(n){if(Tt(n)){var e=Uw.get(n);return e||(e=Xv(n,-.1),Uw.put(n,e)),e}else if(dp(n)){var t=lt({},n);return t.colorStops=pt(n.colorStops,function(r){return{offset:r.offset,color:Xv(r.color,-.1)}}),t}return n}var Lp=Math.round;function $u(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=_r(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var K3=1e-4;function ta(n){return n<K3&&n>-1e-4}function Np(n){return Lp(n*1e3)/1e3}function Kv(n){return Lp(n*1e4)/1e4}function Y3(n){return"matrix("+Np(n[0])+","+Np(n[1])+","+Np(n[2])+","+Np(n[3])+","+Kv(n[4])+","+Kv(n[5])+")"}var J3={left:"start",right:"end",center:"middle",middle:"middle"};function $3(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function Q3(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function tz(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Xw(n){return n&&!!n.image}function ez(n){return n&&!!n.svgElement}function Yv(n){return Xw(n)||ez(n)}function Zw(n){return n.type==="linear"}function qw(n){return n.type==="radial"}function Kw(n){return n&&(n.type==="linear"||n.type==="radial")}function Pp(n){return"url(#"+n+")"}function Yw(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Jw(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*vp,i=Ht(n.scaleX,1),o=Ht(n.scaleY,1),a=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(i!==1||o!==1)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+Lp(a*vp)+"deg, "+Lp(s*vp)+"deg)"),l.join(" ")}var nz=function(){return oe.hasGlobalWindow&&Et(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return process.env.NODE_ENV!=="production"&&ci("Base64 isn't natively supported in the current environment."),null}}(),Jv=Array.prototype.slice;function fo(n,e,t){return(e-n)*t+n}function $v(n,e,t,r){for(var i=e.length,o=0;o<i;o++)n[o]=fo(e[o],t[o],r);return n}function rz(n,e,t,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){n[a]||(n[a]=[]);for(var s=0;s<o;s++)n[a][s]=fo(e[a][s],t[a][s],r)}return n}function Ep(n,e,t,r){for(var i=e.length,o=0;o<i;o++)n[o]=e[o]+t[o]*r;return n}function $w(n,e,t,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){n[a]||(n[a]=[]);for(var s=0;s<o;s++)n[a][s]=e[a][s]+t[a][s]*r}return n}function iz(n,e){for(var t=n.length,r=e.length,i=t>r?e:n,o=Math.min(t,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(t,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function oz(n,e,t){var r=n,i=e;if(!(!r.push||!i.push)){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(t===1?i[l]:Jv.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(t===1)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function Qu(n){if(zn(n)){var e=n.length;if(zn(n[0])){for(var t=[],r=0;r<e;r++)t.push(Jv.call(n[r]));return t}return Jv.call(n)}return n}function Rp(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function az(n){return zn(n&&n[0])?2:1}var Op=0,zp=1,Qw=2,tc=3,Qv=4,ty=5,t2=6;function e2(n){return n===Qv||n===ty}function Vp(n){return n===zp||n===Qw}var ec=[0,0,0,0],sz=function(){function n(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=t2,l=t;if(zn(t)){var u=az(t);s=u,(u===1&&!ye(t[0])||u===2&&!ye(t[0][0]))&&(a=!0)}else if(ye(t)&&!Ba(t))s=Op;else if(Tt(t))if(!isNaN(+t))s=Op;else{var c=_r(t);c&&(l=c,s=tc)}else if(dp(t)){var h=lt({},l);h.colorStops=pt(t.colorStops,function(f){return{offset:f.offset,color:_r(f.color)}}),Zw(t)?s=Qv:qw(t)&&(s=ty),l=h}o===0?this.valType=s:(s!==this.valType||s===t2)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:l,rawValue:t,percent:0};return r&&(d.easing=r,d.easingFunc=Et(r)?r:Zu[r]||Gv(r)),i.push(d),d},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(y,_){return y.time-_.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=Vp(i),u=e2(i),c=0;c<o;c++){var h=r[c],d=h.value,f=a.value;h.percent=h.time/e,s||(l&&c!==o-1?oz(d,f,i):u&&iz(d.colorStops,f.colorStops))}if(!s&&i!==ty&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var g=r[0].value,c=0;c<o;c++)i===Op?r[c].additiveValue=r[c].value-g:i===tc?r[c].additiveValue=Ep([],r[c].value,g,-1):Vp(i)&&(r[c].additiveValue=i===zp?Ep([],r[c].value,g,-1):$w([],r[c].value,g,-1))}},n.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===tc,c,h=this._lastFr,d=Math.min,f,g;if(s===1)f=g=a[0];else{if(t<0)c=0;else if(t<this._lastFrP){var y=d(h+1,s-1);for(c=y;c>=0&&!(a[c].percent<=t);c--);c=d(c,s-2)}else{for(c=h;c<s&&!(a[c].percent>t);c++);c=d(c-1,s-2)}g=a[c+1],f=a[c]}if(f&&g){this._lastFr=c,this._lastFrP=t;var _=g.percent-f.percent,v=_===0?1:d((t-f.percent)/_,1);g.easingFunc&&(v=g.easingFunc(v));var p=r?this._additiveValue:u?ec:e[l];if((Vp(o)||u)&&!p&&(p=this._additiveValue=[]),this.discrete)e[l]=v<1?f.rawValue:g.rawValue;else if(Vp(o))o===zp?$v(p,f[i],g[i],v):rz(p,f[i],g[i],v);else if(e2(o)){var x=f[i],b=g[i],S=o===Qv;e[l]={type:S?"linear":"radial",x:fo(x.x,b.x,v),y:fo(x.y,b.y,v),colorStops:pt(x.colorStops,function(I,C){var A=b.colorStops[C];return{offset:fo(I.offset,A.offset,v),color:Rp($v([],I.color,A.color,v))}}),global:b.global},S?(e[l].x2=fo(x.x2,b.x2,v),e[l].y2=fo(x.y2,b.y2,v)):e[l].r=fo(x.r,b.r,v)}else if(u)$v(p,f[i],g[i],v),r||(e[l]=Rp(p));else{var M=fo(f[i],g[i],v);r?this._additiveValue=M:e[l]=M}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,i=this._additiveValue;t===Op?e[r]=e[r]+i:t===tc?(_r(e[r],ec),Ep(ec,ec,i,1),e[r]=Rp(ec)):t===zp?Ep(e[r],e[r],i,1):t===Qw&&$w(e[r],e[r],i,1)},n}(),ey=function(){function n(e,t,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){ci("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,ue(t),r)},n.prototype.whenWithKeys=function(e,t,r,i){for(var o=this._tracks,a=0;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new sz(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var h=c.keyframes,d=h[h.length-1];u=d&&d.value,c.valType===tc&&u&&(u=Rp(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Qu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Qu(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r<t;r++)e[r].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var r=0;r<t.length;r++)t[r].call(this)},n.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,r=0;r<t.length;r++)e[t[r]].setFinished()},n.prototype._getAdditiveTrack=function(e){var t,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(e);o&&(t=o)}return t},n.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new H3({life:i,loop:this._loop,delay:this._delay||0,onframe:function(f){t._started=2;var g=t._additiveAnimators;if(g){for(var y=!1,_=0;_<g.length;_++)if(g[_]._clip){y=!0;break}y||(t._additiveAnimators=null)}for(var _=0;_<r.length;_++)r[_].step(t._target,f);var v=t._onframeCbs;if(v)for(var _=0;_<v.length;_++)v[_](t._target,f)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},n.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},n.prototype.delay=function(e){return this._delay=e,this},n.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},n.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},n.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(e){return this._tracks[e]},n.prototype.getTracks=function(){var e=this;return pt(this._trackKeys,function(t){return e._tracks[t]})},n.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<e.length;o++){var a=r[e[o]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!r[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(e,t,r){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var o=t[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(e[o]=Qu(l.rawValue))}}}},n.prototype.__changeFinalValue=function(e,t){t=t||ue(e);for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,e[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},n}();function gl(){return new Date().getTime()}var lz=function(n){Q(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,i=t.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=gl()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(Mp(r),!t._paused&&t.update())}Mp(r)},e.prototype.start=function(){this._running||(this._time=gl(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=gl(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=gl()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var i=new ey(t,r.loop);return this.addAnimator(i),i},e}(Er),uz=300,ny=oe.domSupported,ry=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=pt(n,function(i){var o=i.replace("mouse","pointer");return t.hasOwnProperty(o)?o:i});return{mouse:n,touch:e,pointer:r}}(),n2={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},r2=!1;function iy(n){var e=n.pointerType;return e==="pen"||e==="touch"}function cz(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function oy(n){n&&(n.zrByTouch=!0)}function hz(n,e){return Rr(n.dom,new pz(n,e),!0)}function i2(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var pz=function(){function n(e,t){this.stopPropagation=Qe,this.stopImmediatePropagation=Qe,this.preventDefault=Qe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),di={mousedown:function(n){n=Rr(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Rr(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=Rr(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=Rr(this.dom,n);var e=n.toElement||n.relatedTarget;i2(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){r2=!0,n=Rr(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){r2||(n=Rr(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=Rr(this.dom,n),oy(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),di.mousemove.call(this,n),di.mousedown.call(this,n)},touchmove:function(n){n=Rr(this.dom,n),oy(n),this.handler.processGesture(n,"change"),di.mousemove.call(this,n)},touchend:function(n){n=Rr(this.dom,n),oy(n),this.handler.processGesture(n,"end"),di.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<uz&&di.click.call(this,n)},pointerdown:function(n){di.mousedown.call(this,n)},pointermove:function(n){iy(n)||di.mousemove.call(this,n)},pointerup:function(n){di.mouseup.call(this,n)},pointerout:function(n){iy(n)||di.mouseout.call(this,n)}};R(["click","dblclick","contextmenu"],function(n){di[n]=function(e){e=Rr(this.dom,e),this.trigger(n,e)}});var ay={pointermove:function(n){iy(n)||ay.mousemove.call(this,n)},pointerup:function(n){ay.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),e&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function dz(n,e){var t=e.domHandlers;oe.pointerEventsSupported?R(ry.pointer,function(r){Bp(e,r,function(i){t[r].call(n,i)})}):(oe.touchEventsSupported&&R(ry.touch,function(r){Bp(e,r,function(i){t[r].call(n,i),cz(e)})}),R(ry.mouse,function(r){Bp(e,r,function(i){i=Lv(i),e.touching||t[r].call(n,i)})}))}function fz(n,e){oe.pointerEventsSupported?R(n2.pointer,t):oe.touchEventsSupported||R(n2.mouse,t);function t(r){function i(o){o=Lv(o),i2(n,o.target)||(o=hz(n,o),e.domHandlers[r].call(n,o))}Bp(e,r,i,{capture:!0})}}function Bp(n,e,t,r){n.mounted[e]=t,n.listenerOpts[e]=r,Nv(n.domTarget,e,t,r)}function sy(n){var e=n.mounted;for(var t in e)e.hasOwnProperty(t)&&C3(n.domTarget,t,e[t],n.listenerOpts[t]);n.mounted={}}var o2=function(){function n(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return n}(),gz=function(n){Q(e,n);function e(t,r){var i=n.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=r,i._localHandlerScope=new o2(t,di),ny&&(i._globalHandlerScope=new o2(document,ay)),dz(i,i._localHandlerScope),i}return e.prototype.dispose=function(){sy(this._localHandlerScope),ny&&sy(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ny&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var r=this._globalHandlerScope;t?fz(this,r):sy(r)}},e}(Er),a2=1;oe.hasGlobalWindow&&(a2=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Fp=a2,ly=.4,uy="#333",cy="#ccc",vz="#eee",s2=_p,yz=5e-5;function Ka(n){return n>yz||n<-5e-5}var Ya=[],vl=[],hy=mr(),py=Math.abs,go=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return Ka(this.rotation)||Ka(this.x)||Ka(this.y)||Ka(this.scaleX-1)||Ka(this.scaleY-1)||Ka(this.skewX)||Ka(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(s2(r),this.invTransform=null);return}r=r||mr(),t?this.getLocalTransform(r):s2(r),e&&(t?ho(r,e,r):Ev(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ya);var r=Ya[0]<0?-1:1,i=Ya[1]<0?-1:1,o=((Ya[0]-r)*t+r)/Ya[0]||0,a=((Ya[1]-i)*t+i)/Ya[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||mr(),pl(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),o=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(o),t=Math.sqrt(t),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||mr(),ho(vl,e.invTransform,t),t=vl);var r=this.originX,i=this.originY;(r||i)&&(hy[4]=r,hy[5]=i,ho(vl,t,hy),vl[4]-=r,vl[5]-=i,t=vl),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],i=this.invTransform;return i&&Dn(r,r,i),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],i=this.transform;return i&&Dn(r,r,i),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&py(e[0]-1)>1e-10&&py(e[3]-1)>1e-10?Math.sqrt(py(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){l2(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,i=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,h=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var g=r+s,y=i+l;t[4]=-g*o-d*y*a,t[5]=-y*a-f*g*o}else t[4]=t[5]=0;return t[0]=o,t[3]=a,t[1]=f*o,t[2]=d*a,u&&ja(t,t,u),t[4]+=r+c,t[5]+=i+h,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),Ei=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function l2(n,e){for(var t=0;t<Ei.length;t++){var r=Ei[t];n[r]=e[r]}}var u2={};function xr(n,e){e=e||Uo;var t=u2[e];t||(t=u2[e]=new Ku(500));var r=t.get(n);return r==null&&(r=Xo.measureText(n,e).width,t.put(n,r)),r}function c2(n,e,t,r){var i=xr(n,e),o=Gp(e),a=rc(0,i,t),s=yl(0,o,r),l=new Qt(a,s,i,o);return l}function nc(n,e,t,r){var i=((n||"")+"").split(`
52
+ `),o=i.length;if(o===1)return c2(i[0],e,t,r);for(var a=new Qt(0,0,0,0),s=0;s<i.length;s++){var l=c2(i[s],e,t,r);s===0?a.copy(l):a.union(l)}return a}function rc(n,e,t){return t==="right"?n-=e:t==="center"&&(n-=e/2),n}function yl(n,e,t){return t==="middle"?n-=e/2:t==="bottom"&&(n-=e),n}function Gp(n){return xr("国",n)}function fi(n,e){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*e:parseFloat(n):n}function Wp(n,e,t){var r=e.position||"inside",i=e.distance!=null?e.distance:5,o=t.height,a=t.width,s=o/2,l=t.x,u=t.y,c="left",h="top";if(r instanceof Array)l+=fi(r[0],t.width),u+=fi(r[1],t.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=h,n}var dy="__zr_normal__",fy=Ei.concat(["ignore"]),mz=Di(Ei,function(n,e){return n[e]=!0,n},{ignore:!1}),ml={},_z=new Qt(0,0,0,0),jp=function(){function n(e){this.id=hw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=t.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var u=!1;if(o.copyTransform(t),r.position!=null){var c=_z;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ml,r,c):Wp(ml,r,c),o.x=ml.x,o.y=ml.y,a=ml.align,s=ml.verticalAlign;var h=r.origin;if(h&&r.rotation!=null){var d=void 0,f=void 0;h==="center"?(d=c.width*.5,f=c.height*.5):(d=fi(h[0],c.width),f=fi(h[1],c.height)),u=!0,o.originX=-o.x+d+(i?0:c.x),o.originY=-o.y+f+(i?0:c.y)}}r.rotation!=null&&(o.rotation=r.rotation);var g=r.offset;g&&(o.x+=g[0],o.y+=g[1],u||(o.originX=-g[0],o.originY=-g[1]));var y=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,p=void 0,x=void 0;y&&this.canBeInsideText()?(v=r.insideFill,p=r.insideStroke,(v==null||v==="auto")&&(v=this.getInsideTextFill()),(p==null||p==="auto")&&(p=this.getInsideTextStroke(v),x=!0)):(v=r.outsideFill,p=r.outsideStroke,(v==null||v==="auto")&&(v=this.getOutsideFill()),(p==null||p==="auto")&&(p=this.getOutsideStroke(v),x=!0)),v=v||"#000",(v!==_.fill||p!==_.stroke||x!==_.autoStroke||a!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=v,_.stroke=p,_.autoStroke=x,_.align=a,_.verticalAlign=s,t.setDefaultTextStyle(_)),t.__dirty|=Ni,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?cy:uy},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&_r(t);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,po(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},lt(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Vt(e))for(var r=e,i=ue(r),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,e[a])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==dy)){var a=i.targetName,s=a?t[a]:t;i.saveTo(s)}}},n.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,fy)},n.prototype._savePrimaryToNormal=function(e,t,r){for(var i=0;i<r.length;i++){var o=r[i];e[o]!=null&&!(o in t)&&(t[o]=this[o])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(dy,!1,e)},n.prototype.useState=function(e,t,r,i){var o=e===dy,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(te(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!o){ci("State "+e+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,d=this._textGuide;return h&&h.useState(e,t,r,c),d&&d.useState(e,t,r,c),o?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var i=[],o=this.currentStates,a=e.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(e[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&i.push(c)}var h=i[a-1],d=!!(h&&h.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(","),f,this._normalState,!1,!t&&!this.__inHover&&g&&g.duration>0,g);var y=this._textContent,_=this._textGuide;y&&y.useStates(e,t,d),_&&_.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},n.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},n.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},n.prototype.removeState=function(e){var t=te(this.currentStates,e);if(t>=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var i=this.currentStates.slice(),o=te(i,e),a=te(i,t)>=0;o>=0?a?i.splice(o,1):i[o]=t:r&&!a&&i.push(t),this.useStates(i)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,i=0;i<e.length;i++){var o=e[i];lt(t,o),o.textConfig&&(r=r||{},lt(r,o.textConfig))}return r&&(t.textConfig=r),t},n.prototype._applyStateObj=function(e,t,r,i,o,a){var s=!(t&&i);t&&t.textConfig?(this.textConfig=lt({},i?this.textConfig:r.textConfig),lt(this.textConfig,t.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<fy.length;c++){var h=fy[c],d=o&&mz[h];t&&t[h]!=null?d?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&r[h]!=null&&(d?(u=!0,l[h]=r[h]):this[h]=r[h])}if(!o)for(var c=0;c<this.animators.length;c++){var f=this.animators[c],g=f.targetName;f.getLoop()||f.__changeFinalValue(g?(t||r)[g]:t||r)}u&&this._transitionState(e,l,a)},n.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},n.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},n.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new go,this._attachComponent(e),this._textContent=e,this.markRedraw()}},n.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),lt(this.textConfig,e),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=Ni;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,r=this._textGuide;t&&(t.__inHover=e),r&&(r.__inHover=e)},n.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var r=0;r<t.length;r++)e.animation.addAnimator(t[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var r=0;r<t.length;r++)e.animation.removeAnimator(t[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},n.prototype.animate=function(e,t,r){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){ci('Property "'+e+'" is not existed in element '+this.id);return}var o=new ey(i,t,r);return e&&(o.targetName=e),this.addAnimator(o,e),o},n.prototype.addAnimator=function(e,t){var r=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var o=i.animators,a=te(o,e);a>=0&&o.splice(a,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,i=r.length,o=[],a=0;a<i;a++){var s=r[a];!e||e===s.scope?s.stop(t):o.push(s)}return this.animators=o,this},n.prototype.animateTo=function(e,t,r){gy(this,e,t,r)},n.prototype.animateFrom=function(e,t,r){gy(this,e,t,r,!0)},n.prototype._transitionState=function(e,t,r,i){for(var o=gy(this,t,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=e},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var e=n.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ni;var t={};function r(o,a,s){t[o+a+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+a+"', '"+s+"' instead"),t[o+a+s]=!0)}function i(o,a,s,l){Object.defineProperty(e,o,{get:function(){if(process.env.NODE_ENV!=="production"&&r(o,s,l),!this[a]){var c=this[a]=[];u(this,c)}return this[a]},set:function(c){process.env.NODE_ENV!=="production"&&r(o,s,l),this[s]=c[0],this[l]=c[1],this[a]=c,u(this,c)}});function u(c,h){Object.defineProperty(h,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(h,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),n}();nn(jp,Er),nn(jp,go);function gy(n,e,t,r,i){t=t||{};var o=[];h2(n,"",n,e,t,r,o,i);var a=o.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&t.during&&o[0].during(function(g,y){t.during(y)});for(var d=0;d<o.length;d++){var f=o[d];f.done(c),f.aborted(h),t.force&&f.duration(t.duration),f.start(t.easing)}return o}function vy(n,e,t){for(var r=0;r<t;r++)n[r]=e[r]}function xz(n){return zn(n[0])}function bz(n,e,t){if(zn(e[t]))if(zn(n[t])||(n[t]=[]),Zn(e[t])){var r=e[t].length;n[t].length!==r&&(n[t]=new e[t].constructor(r),vy(n[t],e[t],r))}else{var i=e[t],o=n[t],a=i.length;if(xz(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?vy(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else vy(o,i,a);o.length=i.length}else n[t]=e[t]}function wz(n,e){return n===e||zn(n)&&zn(e)&&Sz(n,e)}function Sz(n,e){var t=n.length;if(t!==e.length)return!1;for(var r=0;r<t;r++)if(n[r]!==e[r])return!1;return!0}function h2(n,e,t,r,i,o,a,s){for(var l=ue(r),u=i.duration,c=i.delay,h=i.additive,d=i.setToFinal,f=!Vt(o),g=n.animators,y=[],_=0;_<l.length;_++){var v=l[_],p=r[v];if(p!=null&&t[v]!=null&&(f||o[v]))if(Vt(p)&&!zn(p)&&!dp(p)){if(e){s||(t[v]=p,n.updateDuringAnimation(e));continue}h2(n,v,t[v],p,i,o&&o[v],a,s)}else y.push(v);else s||(t[v]=p,n.updateDuringAnimation(e),y.push(v))}var x=y.length;if(!h&&x)for(var b=0;b<g.length;b++){var S=g[b];if(S.targetName===e){var M=S.stopTracks(y);if(M){var I=te(g,S);g.splice(I,1)}}}if(i.force||(y=Me(y,function(N){return!wz(r[N],t[N])}),x=y.length),x>0||i.force&&!a.length){var C=void 0,A=void 0,D=void 0;if(s){A={},d&&(C={});for(var b=0;b<x;b++){var v=y[b];A[v]=t[v],d?C[v]=r[v]:t[v]=r[v]}}else if(d){D={};for(var b=0;b<x;b++){var v=y[b];D[v]=Qu(t[v]),bz(t,r,v)}}var S=new ey(t,!1,!1,h?Me(g,function(L){return L.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),d&&C&&S.whenWithKeys(0,C,y),D&&S.whenWithKeys(0,D,y),S.whenWithKeys(u??500,s?A:r,y).delay(c||0),n.addAnimator(S,e),a.push(S)}}var jt=function(n){Q(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===t)return r[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),process.env.NODE_ENV!=="production"&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,r){if(t&&t!==this&&t.parent!==this&&r&&r.parent===this){var i=this._children,o=i.indexOf(r);o>=0&&(i.splice(o,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var i=te(this._children,t);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(t,r){var i=this._children,o=i[r];if(t&&t!==this&&t.parent!==this&&t!==o){i[r]=t,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,i=this._children,o=te(i,t);return o<0?this:(i.splice(o,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,i=0;i<t.length;i++){var o=t[i];r&&o.removeSelfFromZr(r),o.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,r){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];t.call(r,a,o)}return this},e.prototype.traverse=function(t,r){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=t.call(r,o);o.isGroup&&!a&&o.traverse(t,r)}return this},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var r=new Qt(0,0,0,0),i=t||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(Qt.applyTransform(r,u,c),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}}return a||r},e}(jp);jt.prototype.type="group";/*!
53
+ * ZRender, a high performance 2d drawing library.
54
+ *
55
+ * Copyright (c) 2013, Baidu Inc.
56
+ * All rights reserved.
57
+ *
58
+ * LICENSE
59
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
60
+ */var ic={},p2={};function Mz(n){delete p2[n]}function Iz(n){if(!n)return!1;if(typeof n=="string")return Dp(n,1)<ly;if(n.colorStops){for(var e=n.colorStops,t=0,r=e.length,i=0;i<r;i++)t+=Dp(e[i].color,1);return t/=r,t<ly}return!1}var Tz=function(){function n(e,t,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=t,this.id=e;var o=new B3,a=r.renderer||"canvas";if(ic[a]||(a=ue(ic)[0]),process.env.NODE_ENV!=="production"&&!ic[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new ic[a](t,o,r,e),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!oe.node&&!oe.worker&&!l?new gz(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,h=c==null||c==="auto"?oe.touchEventsSupported:!!c,d=44,f;h&&(f=Ht(r.pointerSize,d)),this.handler=new Iw(o,s,u,s.root,f),this.animation=new lz({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},n.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},n.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Iz(e))},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(e){this._darkMode=e},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},n.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},n.prototype.flush=function(){this._disposed||this._flush(!1)},n.prototype._flush=function(e){var t,r=gl();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=gl();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this._disposed||this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},n.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},n.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof jt&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},n.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Mz(this.id))},n}();function d2(n,e){var t=new Tz(hw(),n,e);return p2[t.id]=t,t}function Cz(n,e){ic[n]=e}var yy;function Az(n){if(typeof yy=="function")return yy(n)}function kz(n){yy=n}var Dz=1e-4,f2=20;function Lz(n){return n.replace(/^\s+|\s+$/g,"")}function Ae(n,e,t,r){var i=e[0],o=e[1],a=t[0],s=t[1],l=o-i,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(r)if(l>0){if(n<=i)return a;if(n>=o)return s}else{if(n>=i)return a;if(n<=o)return s}else{if(n===i)return a;if(n===o)return s}return(n-i)/l*u+a}function Mt(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return Tt(n)?Lz(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ye(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),f2),n=(+n).toFixed(e),t?n:+n}function Vr(n){return n.sort(function(e,t){return e-t}),n}function Ri(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return my(n)}function my(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,i=t>0?t:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function g2(n,e){var t=Math.log,r=Math.LN10,i=Math.floor(t(n[1]-n[0])/r),o=Math.round(t(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Nz(n,e){var t=Di(n,function(f,g){return f+(isNaN(g)?0:g)},0);if(t===0)return[];for(var r=Math.pow(10,e),i=pt(n,function(f){return(isNaN(f)?0:f)/t*r*100}),o=r*100,a=pt(i,function(f){return Math.floor(f)}),s=Di(a,function(f,g){return f+g},0),l=pt(i,function(f,g){return f-a[g]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return pt(a,function(f){return f/r})}function Pz(n,e){var t=Math.max(Ri(n),Ri(e)),r=n+e;return t>f2?r:Ye(r,t)}var v2=9007199254740991;function y2(n){var e=Math.PI*2;return(n%e+e)%e}function oc(n){return n>-1e-4&&n<Dz}var Ez=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Oi(n){if(n instanceof Date)return n;if(Tt(n)){var e=Ez.exec(n);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(n==null)return new Date(NaN);return new Date(Math.round(n))}function Rz(n){return Math.pow(10,Hp(n))}function Hp(n){if(n===0)return 0;var e=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,e)>=10&&e++,e}function m2(n,e){var t=Hp(n),r=Math.pow(10,t),i=n/r,o;return i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10,n=o*r,t>=-20?+n.toFixed(t<0?-t:0):n}function _y(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),i=+n[r-1],o=t-r;return o?i+o*(n[r]-i):i}function _2(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r<n.length;){for(var i=n[r].interval,o=n[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-t),e=i[a],t=o[a];i[0]===i[1]&&o[0]*o[1]!==1?n.splice(r,1):r++}return n;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function vo(n){var e=parseFloat(n);return e==n&&(e!==0||!Tt(n)||n.indexOf("x")<=0)?e:NaN}function xy(n){return!isNaN(vo(n))}function x2(){return Math.round(Math.random()*9)}function b2(n,e){return e===0?n:b2(e,n%e)}function w2(n,e){return n==null?e:e==null?n:n*e/b2(n,e)}var Oz="[ECharts] ",S2={},zz=typeof console<"u"&&console.warn&&console.log;function Up(n,e,t){if(zz){if(t){if(S2[e])return;S2[e]=!0}console[n](Oz+e)}}function Vz(n,e){Up("log",n,e)}function Xe(n,e){Up("warn",n,e)}function Vn(n,e){Up("error",n,e)}function gi(n){process.env.NODE_ENV!=="production"&&Up("warn","DEPRECATED: "+n,!0)}function on(n,e,t){process.env.NODE_ENV!=="production"&&gi((t?"["+t+"]":"")+(n+" is deprecated, use "+e+" instead."))}function Yn(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t="";if(process.env.NODE_ENV!=="production"){var r=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Ba(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":Et(i)?"function () { ... }":dw(i)?i+"":null};t=pt(n,function(i){if(Tt(i))return i;var o=r(i);if(o!=null)return o;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(a,s){var l=r(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return t}function Ie(n){throw new Error(n)}function M2(n,e,t){return(e-n)*t+n}var I2="series\0",T2="\0_ec_\0";function Ne(n){return n instanceof Array?n:n==null?[]:[n]}function Ja(n,e,t){if(n){n[e]=n[e]||{},n.emphasis=n.emphasis||{},n.emphasis[e]=n.emphasis[e]||{};for(var r=0,i=t.length;r<i;r++){var o=t[r];!n.emphasis[e].hasOwnProperty(o)&&n[e].hasOwnProperty(o)&&(n.emphasis[e][o]=n[e][o])}}}var C2=["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 _l(n){return Vt(n)&&!ht(n)&&!(n instanceof Date)?n.value:n}function Bz(n){return Vt(n)&&!(n instanceof Array)}function A2(n,e,t){var r=t==="normalMerge",i=t==="replaceMerge",o=t==="replaceAll";n=n||[],e=(e||[]).slice();var a=Lt();R(e,function(l,u){if(!Vt(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!L2(l.id)&&D2(l.id),l.name!=null&&!L2(l.name)&&D2(l.name))});var s=Fz(n,a,t);return(r||i)&&Gz(s,n,a,e),r&&Wz(s,e),r||i?jz(s,e,i):o&&Hz(s,e),Uz(s),s}function Fz(n,e,t){var r=[];if(t==="replaceAll")return r;for(var i=0;i<n.length;i++){var o=n[i];o&&o.id!=null&&e.set(o.id,i),r.push({existing:t==="replaceMerge"||xl(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Gz(n,e,t,r){R(r,function(i,o){if(!(!i||i.id==null)){var a=ac(i.id),s=t.get(a);if(s!=null){var l=n[s];Bt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}})}function Wz(n,e){R(e,function(t,r){if(!(!t||t.name==null))for(var i=0;i<n.length;i++){var o=n[i].existing;if(!n[i].newOption&&o&&(o.id==null||t.id==null)&&!xl(t)&&!xl(o)&&k2("name",o,t)){n[i].newOption=t,e[r]=null;return}}})}function jz(n,e,t){R(e,function(r){if(r){for(var i,o=0;(i=n[o])&&(i.newOption||xl(i.existing)||i.existing&&r.id!=null&&!k2("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=t):n.push({newOption:r,brandNew:t,existing:null,keyInfo:null}),o++}})}function Hz(n,e){R(e,function(t){n.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Uz(n){var e=Lt();R(n,function(t){var r=t.existing;r&&e.set(r.id,t)}),R(n,function(t){var r=t.newOption;Bt(!r||r.id==null||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})}),R(n,function(t,r){var i=t.existing,o=t.newOption,a=t.keyInfo;if(Vt(o)){if(a.name=o.name!=null?ac(o.name):i?i.name:I2+r,i)a.id=ac(i.id);else if(o.id!=null)a.id=ac(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(e.get(a.id))}e.set(a.id,t)}})}function k2(n,e,t){var r=pn(e[n],null),i=pn(t[n],null);return r!=null&&i!=null&&r===i}function ac(n){if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;return pn(n,"")}function pn(n,e){return n==null?e:Tt(n)?n:ye(n)||pp(n)?n+"":e}function D2(n){process.env.NODE_ENV!=="production"&&Xe("`"+n+"` is invalid id or name. Must be a string or number.")}function L2(n){return pp(n)||xy(n)}function by(n){var e=n.name;return!!(e&&e.indexOf(I2))}function xl(n){return n&&n.id!=null&&ac(n.id).indexOf(T2)===0}function Xz(n){return T2+n}function Zz(n,e,t){R(n,function(r){var i=r.newOption;Vt(i)&&(r.keyInfo.mainType=e,r.keyInfo.subType=qz(e,i,r.existing,t))})}function qz(n,e,t,r){var i=e.type?e.type:t?t.subType:r.determineSubType(n,e);return i}function Kz(n,e){var t={},r={};return i(n||[],t),i(e||[],r,t),[o(t),o(r)];function i(a,s,l){for(var u=0,c=a.length;u<c;u++){var h=pn(a[u].seriesId,null);if(h==null)return;for(var d=Ne(a[u].dataIndex),f=l&&l[h],g=0,y=d.length;g<y;g++){var _=d[g];f&&f[_]?f[_]=null:(s[h]||(s[h]={}))[_]=1}}}function o(a,s){var l=[];for(var u in a)if(a.hasOwnProperty(u)&&a[u]!=null)if(s)l.push(+u);else{var c=o(a[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function $a(n,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ht(e.dataIndex)?pt(e.dataIndex,function(t){return n.indexOfRawIndex(t)}):n.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ht(e.name)?pt(e.name,function(t){return n.indexOfName(t)}):n.indexOfName(e.name)}function de(){var n="__ec_inner_"+Yz++;return function(e){return e[n]||(e[n]={})}}var Yz=x2();function sc(n,e,t){var r=wy(e,t),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=t?t.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(u,c){var h=lc(n,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=h.models,s[c+"Model"]=h.models[0]}),s}function wy(n,e){var t;if(Tt(n)){var r={};r[n+"Index"]=0,t=r}else t=n;var i=Lt(),o={},a=!1;return R(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();if(!(!c||!h||e&&e.includeMainTypes&&te(e.includeMainTypes,c)<0)){a=a||!!c;var d=i.get(c)||i.set(c,{});d[h]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var an={useDefault:!0,enableAll:!1,enableNone:!1},Jz={useDefault:!1,enableAll:!0,enableNone:!0};function lc(n,e,t,r){r=r||an;var i=t.index,o=t.id,a=t.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=n.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(Bt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Bt(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=n.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function N2(n,e,t){n.setAttribute?n.setAttribute(e,t):n[e]=t}function $z(n,e){return n.getAttribute?n.getAttribute(e):n[e]}function Qz(n){return n==="auto"?oe.domSupported?"html":"richText":n||"html"}function Sy(n,e){var t=Lt(),r=[];return R(n,function(i){var o=e(i);(t.get(o)||(r.push(o),t.set(o,[]))).push(i)}),{keys:r,buckets:t}}function P2(n,e,t,r,i){var o=e==null||e==="auto";if(r==null)return r;if(ye(r)){var a=M2(t||0,r,i);return Ye(a,o?Math.max(Ri(t||0),Ri(r)):e)}else{if(Tt(r))return i<1?t:r;for(var s=[],l=t,u=r,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var d=n.getDimensionInfo(h);if(d&&d.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var f=l&&l[h]?l[h]:0,g=u[h],a=M2(f,g,i);s[h]=Ye(a,o?Math.max(Ri(f),Ri(g)):e)}}return s}}var tV=".",Qa="___EC__COMPONENT__CONTAINER___",E2="___EC__EXTENDED_CLASS___";function zi(n){var e={main:"",sub:""};if(n){var t=n.split(tV);e.main=t[0]||"",e.sub=t[1]||""}return e}function eV(n){Bt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function nV(n){return!!(n&&n[E2])}function My(n,e){n.$constructor=n,n.extend=function(t){process.env.NODE_ENV!=="production"&&R(e,function(o){t[o]||console.warn("Method `"+o+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var r=this,i;return rV(r)?i=function(o){Q(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(t.$constructor||r).apply(this,arguments)},s3(i,this)),lt(i.prototype,t),i[E2]=!0,i.extend=this.extend,i.superCall=aV,i.superApply=sV,i.superClass=r,i}}function rV(n){return Et(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function R2(n,e){n.extend=e.extend}var iV=Math.round(Math.random()*10);function oV(n){var e=["__\0is_clz",iV++].join("_");n.prototype[e]=!0,process.env.NODE_ENV!=="production"&&Bt(!n.isInstance,'The method "is" can not be defined.'),n.isInstance=function(t){return!!(t&&t[e])}}function aV(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return this.superClass.prototype[e].apply(n,t)}function sV(n,e,t){return this.superClass.prototype[e].apply(n,t)}function Xp(n){var e={};n.registerClass=function(r){var i=r.type||r.prototype.type;if(i){eV(i),r.prototype.type=i;var o=zi(i);if(!o.sub)process.env.NODE_ENV!=="production"&&e[o.main]&&console.warn(o.main+" exists."),e[o.main]=r;else if(o.sub!==Qa){var a=t(o);a[o.sub]=r}}return r},n.getClass=function(r,i,o){var a=e[r];if(a&&a[Qa]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return a},n.getClassesByMainType=function(r){var i=zi(r),o=[],a=e[i.main];return a&&a[Qa]?R(a,function(s,l){l!==Qa&&o.push(s)}):o.push(a),o},n.hasClass=function(r){var i=zi(r);return!!e[i.main]},n.getAllClassMainTypes=function(){var r=[];return R(e,function(i,o){r.push(o)}),r},n.hasSubTypes=function(r){var i=zi(r),o=e[i.main];return o&&o[Qa]};function t(r){var i=e[r.main];return(!i||!i[Qa])&&(i=e[r.main]={},i[Qa]=!0),i}}function ts(n,e){for(var t=0;t<n.length;t++)n[t][1]||(n[t][1]=n[t][0]);return e=e||!1,function(r,i,o){for(var a={},s=0;s<n.length;s++){var l=n[s][1];if(!(i&&te(i,l)>=0||o&&te(o,l)<0)){var u=r.getShallow(l,e);u!=null&&(a[n[s][0]]=u)}}return a}}var lV=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],uV=ts(lV),cV=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return uV(this,e,t)},n}(),Iy=new Ku(50);function hV(n){if(typeof n=="string"){var e=Iy.get(n);return e&&e.image}else return n}function Ty(n,e,t,r,i){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var o=Iy.get(n),a={hostEl:t,cb:r,cbPayload:i};return o?(e=o.image,!Zp(e)&&o.pending.push(a)):(e=Xo.loadImage(n,O2,O2),e.__zrImageSrc=n,Iy.put(n,e.__cachedImgObj={image:e,pending:[a]})),e}else return n;else return e}function O2(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<n.pending.length;e++){var t=n.pending[e],r=t.cb;r&&r(this,t.cbPayload),t.hostEl.dirty()}n.pending.length=0}function Zp(n){return n&&n.width&&n.height}var Cy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function pV(n,e,t,r,i,o){if(!t){n.text="",n.isTruncated=!1;return}var a=(e+"").split(`
61
+ `);o=z2(t,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)V2(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;n.text=a.join(`
62
+ `),n.isTruncated=s}function z2(n,e,t,r){r=r||{};var i=lt({},r);i.font=e,t=Ht(t,"..."),i.maxIterations=Ht(r.maxIterations,2);var o=i.minChar=Ht(r.minChar,0);i.cnCharWidth=xr("国",e);var a=i.ascCharWidth=xr("a",e);i.placeholder=Ht(r.placeholder,"");for(var s=n=Math.max(0,n-1),l=0;l<o&&s>=a;l++)s-=a;var u=xr(t,e);return u>s&&(t="",u=0),s=n-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=n,i}function V2(n,e,t){var r=t.containerWidth,i=t.font,o=t.contentWidth;if(!r){n.textLine="",n.isTruncated=!1;return}var a=xr(e,i);if(a<=r){n.textLine=e,n.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?dV(e,o,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*o/a):0;e=e.substr(0,l),a=xr(e,i)}e===""&&(e=t.placeholder),n.textLine=e,n.isTruncated=!0}function dV(n,e,t,r){for(var i=0,o=0,a=n.length;o<a&&i<e;o++){var s=n.charCodeAt(o);i+=0<=s&&s<=127?t:r}return o}function fV(n,e){n!=null&&(n+="");var t=e.overflow,r=e.padding,i=e.font,o=t==="truncate",a=Gp(i),s=Ht(e.lineHeight,a),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,h=e.width,d;h!=null&&(t==="break"||t==="breakAll")?d=n?F2(n,e.font,h,t==="breakAll",0).lines:[]:d=n?n.split(`
63
+ `):[];var f=d.length*s,g=Ht(e.height,f);if(f>g&&u){var y=Math.floor(g/s);c=c||d.length>y,d=d.slice(0,y)}if(n&&o&&h!=null)for(var _=z2(h,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v={},p=0;p<d.length;p++)V2(v,d[p],_),d[p]=v.textLine,c=c||v.isTruncated;for(var x=g,b=0,p=0;p<d.length;p++)b=Math.max(xr(d[p],i),b);h==null&&(h=b);var S=b;return r&&(x+=r[0]+r[2],S+=r[1]+r[3],h+=r[1]+r[3]),l&&(S=h),{lines:d,height:g,outerWidth:S,outerHeight:x,lineHeight:s,calculatedLineHeight:a,contentWidth:b,contentHeight:f,width:h,isTruncated:c}}var gV=function(){function n(){}return n}(),B2=function(){function n(e){this.tokens=[],e&&(this.tokens=e)}return n}(),vV=function(){function n(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return n}();function yV(n,e){var t=new vV;if(n!=null&&(n+=""),!n)return t;for(var r=e.width,i=e.height,o=e.overflow,a=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,s=Cy.lastIndex=0,l;(l=Cy.exec(n))!=null;){var u=l.index;u>s&&Ay(t,n.substring(s,u),e,a),Ay(t,l[2],e,a,l[1]),s=Cy.lastIndex}s<n.length&&Ay(t,n.substring(s,n.length),e,a);var c=[],h=0,d=0,f=e.padding,g=o==="truncate",y=e.lineOverflow==="truncate",_={};function v(J,H,K){J.width=H,J.lineHeight=K,h+=K,d=Math.max(d,H)}t:for(var p=0;p<t.lines.length;p++){for(var x=t.lines[p],b=0,S=0,M=0;M<x.tokens.length;M++){var I=x.tokens[M],C=I.styleName&&e.rich[I.styleName]||{},A=I.textPadding=C.padding,D=A?A[1]+A[3]:0,N=I.font=C.font||e.font;I.contentHeight=Gp(N);var L=Ht(C.height,I.contentHeight);if(I.innerHeight=L,A&&(L+=A[0]+A[2]),I.height=L,I.lineHeight=Pr(C.lineHeight,e.lineHeight,L),I.align=C&&C.align||e.align,I.verticalAlign=C&&C.verticalAlign||"middle",y&&i!=null&&h+I.lineHeight>i){var E=t.lines.length;M>0?(x.tokens=x.tokens.slice(0,M),v(x,S,b),t.lines=t.lines.slice(0,p+1)):t.lines=t.lines.slice(0,p),t.isTruncated=t.isTruncated||t.lines.length<E;break t}var k=C.width,z=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")I.percentWidth=k,c.push(I),I.contentWidth=xr(I.text,N);else{if(z){var F=C.backgroundColor,W=F&&F.image;W&&(W=hV(W),Zp(W)&&(I.width=Math.max(I.width,W.width*L/W.height)))}var q=g&&r!=null?r-S:null;q!=null&&q<I.width?!z||q<D?(I.text="",I.width=I.contentWidth=0):(pV(_,I.text,q-D,N,e.ellipsis,{minChar:e.truncateMinChar}),I.text=_.text,t.isTruncated=t.isTruncated||_.isTruncated,I.width=I.contentWidth=xr(I.text,N)):I.contentWidth=xr(I.text,N)}I.width+=D,S+=I.width,C&&(b=Math.max(b,I.lineHeight))}v(x,S,b)}t.outerWidth=t.width=Ht(r,d),t.outerHeight=t.height=Ht(i,h),t.contentHeight=h,t.contentWidth=d,f&&(t.outerWidth+=f[1]+f[3],t.outerHeight+=f[0]+f[2]);for(var p=0;p<c.length;p++){var I=c[p],j=I.percentWidth;I.width=parseInt(j,10)/100*t.width}return t}function Ay(n,e,t,r,i){var o=e==="",a=i&&t.rich[i]||{},s=n.lines,l=a.font||t.font,u=!1,c,h;if(r){var d=a.padding,f=d?d[1]+d[3]:0;if(a.width!=null&&a.width!=="auto"){var g=fi(a.width,r.width)+f;s.length>0&&g+r.accumWidth>r.width&&(c=e.split(`
64
+ `),u=!0),r.accumWidth=g}else{var y=F2(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+f,h=y.linesWidths,c=y.lines}}else c=e.split(`
65
+ `);for(var _=0;_<c.length;_++){var v=c[_],p=new gV;if(p.styleName=i,p.text=v,p.isLineHolder=!v&&!o,typeof a.width=="number"?p.width=a.width:p.width=h?h[_]:xr(v,l),!_&&!u){var x=(s[s.length-1]||(s[0]=new B2)).tokens,b=x.length;b===1&&x[0].isLineHolder?x[0]=p:(v||!b||o)&&x.push(p)}else s.push(new B2([p]))}}function mV(n){var e=n.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var _V=Di(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function xV(n){return mV(n)?!!_V[n]:!0}function F2(n,e,t,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<n.length;h++){var d=n.charAt(h);if(d===`
66
+ `){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var f=xr(d,e),g=r?!1:!xV(d);if(o.length?c+f>t:i+c+f>t){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=f)):g?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f));continue}c+=f,g?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var ky="__zr_style_"+Math.round(Math.random()*10),es={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};es[ky]=!0;var G2=["z","z2","invisible"],bV=["invisible"],Br=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=ue(t),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(t[o]):n.prototype.attrKV.call(this,o,t[o])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&wV(this,t,r)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,r){return this.rectContain(t,r)},e.prototype.traverse=function(t,r){t.call(r,this)},e.prototype.rectContain=function(t,r){var i=this.transformCoordToLocal(t,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Qt(0,0,0,0)),r?Qt.applyTransform(t,i,r):t.copy(i),(a||s||l)&&(t.width+=a*2+Math.abs(s),t.height+=a*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-a),t.y=Math.min(t.y,t.y+l-a));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Qt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,r){t!=="style"?n.prototype.attrKV.call(this,t,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(t,r){return typeof t=="string"?this.style[t]=r:lt(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Sp,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Sp)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return gp(es,t)},e.prototype.useStyle=function(t){t[ky]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[ky]},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,r,G2)},e.prototype._applyStateObj=function(t,r,i,o,a,s){n.prototype._applyStateObj.call(this,t,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.style?a?o?u=r.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(u,r.style)):l&&(u=i.style),u)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=ue(c),d=0;d<h.length;d++){var f=h[d];f in u&&(u[f]=u[f],this.style[f]=c[f])}for(var g=ue(u),d=0;d<g.length;d++){var f=g[d];this.style[f]=this.style[f]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var y=this.__inHover?bV:G2,d=0;d<y.length;d++){var f=y[d];r&&r[f]!=null?this[f]=r[f]:l&&i[f]!=null&&(this[f]=i[f])}},e.prototype._mergeStates=function(t){for(var r=n.prototype._mergeStates.call(this,t),i,o=0;o<t.length;o++){var a=t[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(r.style=i),r},e.prototype._mergeStyle=function(t,r){return lt(t,r),t},e.prototype.getAnimationStyleProps=function(){return qp},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Ni|Sp}(),e}(jp),Dy=new Qt(0,0,0,0),Ly=new Qt(0,0,0,0);function wV(n,e,t){return Dy.copy(n.getBoundingRect()),n.transform&&Dy.applyTransform(n.transform),Ly.width=e,Ly.height=t,!Dy.intersect(Ly)}var ur=Math.min,cr=Math.max,Ny=Math.sin,Py=Math.cos,ns=Math.PI*2,Kp=Fa(),Yp=Fa(),Jp=Fa();function $p(n,e,t){if(n.length!==0){for(var r=n[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<n.length;l++)r=n[l],i=ur(i,r[0]),o=cr(o,r[0]),a=ur(a,r[1]),s=cr(s,r[1]);e[0]=i,e[1]=a,t[0]=o,t[1]=s}}function W2(n,e,t,r,i,o){i[0]=ur(n,t),i[1]=ur(e,r),o[0]=cr(n,t),o[1]=cr(e,r)}var j2=[],H2=[];function SV(n,e,t,r,i,o,a,s,l,u){var c=Vw,h=yn,d=c(n,t,i,a,j2);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<d;f++){var g=h(n,t,i,a,j2[f]);l[0]=ur(g,l[0]),u[0]=cr(g,u[0])}d=c(e,r,o,s,H2);for(var f=0;f<d;f++){var y=h(e,r,o,s,H2[f]);l[1]=ur(y,l[1]),u[1]=cr(y,u[1])}l[0]=ur(n,l[0]),u[0]=cr(n,u[0]),l[0]=ur(a,l[0]),u[0]=cr(a,u[0]),l[1]=ur(e,l[1]),u[1]=cr(e,u[1]),l[1]=ur(s,l[1]),u[1]=cr(s,u[1])}function MV(n,e,t,r,i,o,a,s){var l=Fw,u=In,c=cr(ur(l(n,t,i),1),0),h=cr(ur(l(e,r,o),1),0),d=u(n,t,i,c),f=u(e,r,o,h);a[0]=ur(n,i,d),a[1]=ur(e,o,f),s[0]=cr(n,i,d),s[1]=cr(e,o,f)}function IV(n,e,t,r,i,o,a,s,l){var u=qo,c=Ko,h=Math.abs(i-o);if(h%ns<1e-4&&h>1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Kp[0]=Py(i)*t+n,Kp[1]=Ny(i)*r+e,Yp[0]=Py(o)*t+n,Yp[1]=Ny(o)*r+e,u(s,Kp,Yp),c(l,Kp,Yp),i=i%ns,i<0&&(i=i+ns),o=o%ns,o<0&&(o=o+ns),i>o&&!a?o+=ns:i<o&&a&&(i+=ns),a){var d=o;o=i,i=d}for(var f=0;f<o;f+=Math.PI/2)f>i&&(Jp[0]=Py(f)*t+n,Jp[1]=Ny(f)*r+e,u(s,Jp,s),c(l,Jp,l))}var Re={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},rs=[],is=[],Vi=[],ea=[],Bi=[],Fi=[],Ey=Math.min,Ry=Math.max,os=Math.cos,as=Math.sin,yo=Math.abs,Oy=Math.PI,na=Oy*2,zy=typeof Float32Array<"u",uc=[];function Vy(n){var e=Math.round(n/Oy*1e8)/1e8;return e%2*Oy}function By(n,e){var t=Vy(n[0]);t<0&&(t+=na);var r=t-n[0],i=n[1];i+=r,!e&&i-t>=na?i=t+na:e&&t-i>=na?i=t-na:!e&&t>i?i=t+(na-Vy(t-i)):e&&t<i&&(i=t-(na-Vy(i-t))),n[0]=t,n[1]=i}var Gi=function(){function n(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(e,t,r){r=r||0,r>0&&(this._ux=yo(r/Fp/e)||0,this._uy=yo(r/Fp/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Re.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=yo(e-this._xi),i=yo(t-this._yi),o=r>this._ux||i>this._uy;if(this.addData(Re.L,e,t),this._ctx&&o&&this._ctx.lineTo(e,t),o)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(e,t,r,i,o,a){return this._drawPendingPt(),this.addData(Re.C,e,t,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(e,t,r,i,o,a),this._xi=o,this._yi=a,this},n.prototype.quadraticCurveTo=function(e,t,r,i){return this._drawPendingPt(),this.addData(Re.Q,e,t,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,i),this._xi=r,this._yi=i,this},n.prototype.arc=function(e,t,r,i,o,a){this._drawPendingPt(),uc[0]=i,uc[1]=o,By(uc,a),i=uc[0],o=uc[1];var s=o-i;return this.addData(Re.A,e,t,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(e,t,r,i,o,a),this._xi=os(o)*r+e,this._yi=as(o)*r+t,this},n.prototype.arcTo=function(e,t,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,i,o),this},n.prototype.rect=function(e,t,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,i),this.addData(Re.R,e,t,r,i),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Re.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&zy&&(this.data=new Float32Array(t));for(var r=0;r<t;r++)this.data[r]=e[r];this._len=t},n.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,r=0,i=this._len,o=0;o<t;o++)r+=e[o].len();zy&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var o=0;o<t;o++)for(var a=e[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},n.prototype.addData=function(e,t,r,i,o,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var h=0;h<arguments.length;h++)c[this._len++]=arguments[h]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,zy&&this._len>11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){Vi[0]=Vi[1]=Bi[0]=Bi[1]=Number.MAX_VALUE,ea[0]=ea[1]=Fi[0]=Fi[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,i=0,o=0,a;for(a=0;a<this._len;){var s=e[a++],l=a===1;switch(l&&(t=e[a],r=e[a+1],i=t,o=r),s){case Re.M:t=i=e[a++],r=o=e[a++],Bi[0]=i,Bi[1]=o,Fi[0]=i,Fi[1]=o;break;case Re.L:W2(t,r,e[a],e[a+1],Bi,Fi),t=e[a++],r=e[a++];break;case Re.C:SV(t,r,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Bi,Fi),t=e[a++],r=e[a++];break;case Re.Q:MV(t,r,e[a++],e[a++],e[a],e[a+1],Bi,Fi),t=e[a++],r=e[a++];break;case Re.A:var u=e[a++],c=e[a++],h=e[a++],d=e[a++],f=e[a++],g=e[a++]+f;a+=1;var y=!e[a++];l&&(i=os(f)*h+u,o=as(f)*d+c),IV(u,c,h,d,f,g,y,Bi,Fi),t=os(g)*h+u,r=as(g)*d+c;break;case Re.R:i=t=e[a++],o=r=e[a++];var _=e[a++],v=e[a++];W2(i,o,i+_,o+v,Bi,Fi);break;case Re.Z:t=i,r=o;break}qo(Vi,Vi,Bi),Ko(ea,ea,Fi)}return a===0&&(Vi[0]=Vi[1]=ea[0]=ea[1]=0),new Qt(Vi[0],Vi[1],ea[0]-Vi[0],ea[1]-Vi[1])},n.prototype._calculateLength=function(){var e=this.data,t=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,d=0;d<t;){var f=e[d++],g=d===1;g&&(o=e[d],a=e[d+1],s=o,l=a);var y=-1;switch(f){case Re.M:o=s=e[d++],a=l=e[d++];break;case Re.L:{var _=e[d++],v=e[d++],p=_-o,x=v-a;(yo(p)>r||yo(x)>i||d===t-1)&&(y=Math.sqrt(p*p+x*x),o=_,a=v);break}case Re.C:{var b=e[d++],S=e[d++],_=e[d++],v=e[d++],M=e[d++],I=e[d++];y=F3(o,a,b,S,_,v,M,I,10),o=M,a=I;break}case Re.Q:{var b=e[d++],S=e[d++],_=e[d++],v=e[d++];y=W3(o,a,b,S,_,v,10),o=_,a=v;break}case Re.A:var C=e[d++],A=e[d++],D=e[d++],N=e[d++],L=e[d++],E=e[d++],k=E+L;d+=1,g&&(s=os(L)*D+C,l=as(L)*N+A),y=Ry(D,N)*Ey(na,Math.abs(E)),o=os(k)*D+C,a=as(k)*N+A;break;case Re.R:{s=o=e[d++],l=a=e[d++];var z=e[d++],F=e[d++];y=z*2+F*2;break}case Re.Z:{var p=s-o,x=l-a;y=Math.sqrt(p*p+x*x),o=s,a=l;break}}y>=0&&(u[h++]=y,c+=y)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,u,c,h,d,f=t<1,g,y,_=0,v=0,p,x=0,b,S;if(!(f&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,y=this._pathLen,p=t*y,!p)))t:for(var M=0;M<a;){var I=r[M++],C=M===1;switch(C&&(u=r[M],c=r[M+1],s=u,l=c),I!==Re.L&&x>0&&(e.lineTo(b,S),x=0),I){case Re.M:s=u=r[M++],l=c=r[M++],e.moveTo(u,c);break;case Re.L:{h=r[M++],d=r[M++];var A=yo(h-u),D=yo(d-c);if(A>i||D>o){if(f){var N=g[v++];if(_+N>p){var L=(p-_)/N;e.lineTo(u*(1-L)+h*L,c*(1-L)+d*L);break t}_+=N}e.lineTo(h,d),u=h,c=d,x=0}else{var E=A*A+D*D;E>x&&(b=h,S=d,x=E)}break}case Re.C:{var k=r[M++],z=r[M++],F=r[M++],W=r[M++],q=r[M++],j=r[M++];if(f){var N=g[v++];if(_+N>p){var L=(p-_)/N;$o(u,k,F,q,L,rs),$o(c,z,W,j,L,is),e.bezierCurveTo(rs[1],is[1],rs[2],is[2],rs[3],is[3]);break t}_+=N}e.bezierCurveTo(k,z,F,W,q,j),u=q,c=j;break}case Re.Q:{var k=r[M++],z=r[M++],F=r[M++],W=r[M++];if(f){var N=g[v++];if(_+N>p){var L=(p-_)/N;qu(u,k,F,L,rs),qu(c,z,W,L,is),e.quadraticCurveTo(rs[1],is[1],rs[2],is[2]);break t}_+=N}e.quadraticCurveTo(k,z,F,W),u=F,c=W;break}case Re.A:var J=r[M++],H=r[M++],K=r[M++],ut=r[M++],at=r[M++],ot=r[M++],Rt=r[M++],Jt=!r[M++],wt=K>ut?K:ut,xt=yo(K-ut)>.001,Ot=at+ot,bt=!1;if(f){var N=g[v++];_+N>p&&(Ot=at+ot*(p-_)/N,bt=!0),_+=N}if(xt&&e.ellipse?e.ellipse(J,H,K,ut,Rt,at,Ot,Jt):e.arc(J,H,wt,at,Ot,Jt),bt)break t;C&&(s=os(at)*K+J,l=as(at)*ut+H),u=os(Ot)*K+J,c=as(Ot)*ut+H;break;case Re.R:s=u=r[M],l=c=r[M+1],h=r[M++],d=r[M++];var Nt=r[M++],se=r[M++];if(f){var N=g[v++];if(_+N>p){var O=p-_;e.moveTo(h,d),e.lineTo(h+Ey(O,Nt),d),O-=Nt,O>0&&e.lineTo(h+Nt,d+Ey(O,se)),O-=se,O>0&&e.lineTo(h+Ry(Nt-O,0),d+se),O-=Nt,O>0&&e.lineTo(h,d+Ry(se-O,0));break t}_+=N}e.rect(h,d,Nt,se);break;case Re.Z:if(f){var N=g[v++];if(_+N>p){var L=(p-_)/N;e.lineTo(u*(1-L)+s*L,c*(1-L)+l*L);break t}_+=N}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=Re,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function ra(n,e,t,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=n;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>n+s&&o>t+s||o<n-s&&o<t-s)return!1;if(n!==t)l=(e-r)/(n-t),u=(n*r-t*e)/(n-t);else return Math.abs(o-n)<=s/2;var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function TV(n,e,t,r,i,o,a,s,l,u,c){if(l===0)return!1;var h=l;if(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>n+h&&u>t+h&&u>i+h&&u>a+h||u<n-h&&u<t-h&&u<i-h&&u<a-h)return!1;var d=Bw(n,e,t,r,i,o,a,s,u,c,null);return d<=h/2}function U2(n,e,t,r,i,o,a,s,l){if(a===0)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>n+u&&s>t+u&&s>i+u||s<n-u&&s<t-u&&s<i-u)return!1;var c=Gw(n,e,t,r,i,o,s,l,null);return c<=u/2}var X2=Math.PI*2;function br(n){return n%=X2,n<0&&(n+=X2),n}var cc=Math.PI*2;function CV(n,e,t,r,i,o,a,s,l){if(a===0)return!1;var u=a;s-=n,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(r-i)%cc<1e-4)return!0;if(o){var h=r;r=br(i),i=br(h)}else r=br(r),i=br(i);r>i&&(i+=cc);var d=Math.atan2(l,s);return d<0&&(d+=cc),d>=r&&d<=i||d+cc>=r&&d+cc<=i}function mo(n,e,t,r,i,o){if(o>e&&o>r||o<e&&o<r||r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;(a===1||a===0)&&(s=r<e?.5:-.5);var l=a*(t-n)+n;return l===i?1/0:l>i?s:0}var ia=Gi.CMD,ss=Math.PI*2,AV=1e-4;function kV(n,e){return Math.abs(n-e)<AV}var Jn=[-1,-1,-1],Fr=[-1,-1];function DV(){var n=Fr[0];Fr[0]=Fr[1],Fr[1]=n}function LV(n,e,t,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c=Cp(e,r,o,s,u,Jn);if(c===0)return 0;for(var h=0,d=-1,f=void 0,g=void 0,y=0;y<c;y++){var _=Jn[y],v=_===0||_===1?.5:1,p=yn(n,t,i,a,_);p<l||(d<0&&(d=Vw(e,r,o,s,Fr),Fr[1]<Fr[0]&&d>1&&DV(),f=yn(e,r,o,s,Fr[0]),d>1&&(g=yn(e,r,o,s,Fr[1]))),d===2?_<Fr[0]?h+=f<e?v:-v:_<Fr[1]?h+=g<f?v:-v:h+=s<g?v:-v:_<Fr[0]?h+=f<e?v:-v:h+=s<f?v:-v)}return h}function NV(n,e,t,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=G3(e,r,o,s,Jn);if(l===0)return 0;var u=Fw(e,r,o);if(u>=0&&u<=1){for(var c=0,h=In(e,r,o,u),d=0;d<l;d++){var f=Jn[d]===0||Jn[d]===1?.5:1,g=In(n,t,i,Jn[d]);g<a||(Jn[d]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}else{var f=Jn[0]===0||Jn[0]===1?.5:1,g=In(n,t,i,Jn[0]);return g<a?0:o<e?f:-f}}function PV(n,e,t,r,i,o,a,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Jn[0]=-l,Jn[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=ss-1e-4){r=0,i=ss;var c=o?1:-1;return a>=Jn[0]+n&&a<=Jn[1]+n?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=ss,i+=ss);for(var d=0,f=0;f<2;f++){var g=Jn[f];if(g+n>a){var y=Math.atan2(s,g),c=o?1:-1;y<0&&(y=ss+y),(y>=r&&y<=i||y+ss>=r&&y+ss<=i)&&(y>Math.PI/2&&y<Math.PI*1.5&&(c=-c),d+=c)}}return d}function Z2(n,e,t,r,i){for(var o=n.data,a=n.len(),s=0,l=0,u=0,c=0,h=0,d,f,g=0;g<a;){var y=o[g++],_=g===1;switch(y===ia.M&&g>1&&(t||(s+=mo(l,u,c,h,r,i))),_&&(l=o[g],u=o[g+1],c=l,h=u),y){case ia.M:c=o[g++],h=o[g++],l=c,u=h;break;case ia.L:if(t){if(ra(l,u,o[g],o[g+1],e,r,i))return!0}else s+=mo(l,u,o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case ia.C:if(t){if(TV(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],e,r,i))return!0}else s+=LV(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case ia.Q:if(t){if(U2(l,u,o[g++],o[g++],o[g],o[g+1],e,r,i))return!0}else s+=NV(l,u,o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case ia.A:var v=o[g++],p=o[g++],x=o[g++],b=o[g++],S=o[g++],M=o[g++];g+=1;var I=!!(1-o[g++]);d=Math.cos(S)*x+v,f=Math.sin(S)*b+p,_?(c=d,h=f):s+=mo(l,u,d,f,r,i);var C=(r-v)*b/x+v;if(t){if(CV(v,p,b,S,S+M,I,e,C,i))return!0}else s+=PV(v,p,b,S,S+M,I,C,i);l=Math.cos(S+M)*x+v,u=Math.sin(S+M)*b+p;break;case ia.R:c=l=o[g++],h=u=o[g++];var A=o[g++],D=o[g++];if(d=c+A,f=h+D,t){if(ra(c,h,d,h,e,r,i)||ra(d,h,d,f,e,r,i)||ra(d,f,c,f,e,r,i)||ra(c,f,c,h,e,r,i))return!0}else s+=mo(d,h,d,f,r,i),s+=mo(c,f,c,h,r,i);break;case ia.Z:if(t){if(ra(l,u,c,h,e,r,i))return!0}else s+=mo(l,u,c,h,r,i);l=c,u=h;break}}return!t&&!kV(u,h)&&(s+=mo(l,u,c,h,r,i)||0),s!==0}function EV(n,e,t){return Z2(n,0,!1,e,t)}function RV(n,e,t,r){return Z2(n,e,!0,t,r)}var Qp=Ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},es),OV={style:Ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qp.style)},Fy=Ei.concat(["invisible","culling","z","z2","zlevel","parent"]),ae=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<Fy.length;++s)i[Fy[s]]=this[Fy[s]];i.__dirty|=Ni}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var r=ue(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<r.length;o++){var a=r[o],s=t[a];a==="style"?this.style?lt(this.style,s):this.useStyle(s):a==="shape"?lt(this.shape,s):n.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(Tt(t)){var r=Dp(t,0);return r>.5?uy:r>.2?vz:cy}else if(t)return cy}return uy},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(Tt(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=Dp(t,0)<ly;if(o===a)return r}},e.prototype.buildPath=function(t,r,i){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Gi(!1)},e.prototype.hasStroke=function(){var t=this.style,r=t.stroke;return!(r==null||r==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,i=!t;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&Xu)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),t=a.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),o=this.getBoundingRect(),a=this.style;if(t=i[0],r=i[1],o.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),RV(s,l/u,t,r)))return!0}if(this.hasFill())return EV(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Xu,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=r:lt(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Xu)},e.prototype.createStyle=function(t){return gp(Qp,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=lt({},this.shape))},e.prototype._applyStateObj=function(t,r,i,o,a,s){n.prototype._applyStateObj.call(this,t,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.shape?a?o?u=r.shape:(u=lt({},i.shape),lt(u,r.shape)):(u=lt({},o?this.shape:i.shape),lt(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=lt({},this.shape);for(var c={},h=ue(u),d=0;d<h.length;d++){var f=h[d];typeof u[f]=="object"?this.shape[f]=u[f]:c[f]=u[f]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var r=n.prototype._mergeStates.call(this,t),i,o=0;o<t.length;o++){var a=t[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(r.shape=i),r},e.prototype.getAnimationStyleProps=function(){return OV},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var r=function(o){Q(a,o);function a(s){var l=o.call(this,s)||this;return t.init&&t.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return Wt(t.style)},a.prototype.getDefaultShape=function(){return Wt(t.shape)},a}(e);for(var i in t)typeof t[i]=="function"&&(r.prototype[i]=t[i]);return r},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Ni|Sp|Xu}(),e}(Br),zV=Ft({strokeFirst:!0,font:Uo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Qp),bl=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,r=t.stroke;return r!=null&&r!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return gp(zV,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var i=nc(r,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var o=t.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Br);bl.prototype.type="tspan";var VV=Ft({x:0,y:0},es),BV={style:Ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qp.style)};function FV(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var Tn=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return gp(VV,t)},e.prototype._getSize=function(t){var r=this.style,i=r[t];if(i!=null)return i;var o=FV(r.image)?r.image:this.__image;if(!o)return 0;var a=t==="width"?"height":"width",s=r[a];return s==null?o[t]:o[t]/o[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return BV},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Qt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Br);Tn.prototype.type="image";function GV(n,e){var t=e.x,r=e.y,i=e.width,o=e.height,a=e.r,s,l,u,c;i<0&&(t=t+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[3]):s=l=u=c=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+c>i&&(h=u+c,u*=i/h,c*=i/h),l+u>o&&(h=l+u,l*=o/h,u*=o/h),s+c>o&&(h=s+c,s*=o/h,c*=o/h),n.moveTo(t+s,r),n.lineTo(t+i-l,r),l!==0&&n.arc(t+i-l,r+l,l,-Math.PI/2,0),n.lineTo(t+i,r+o-u),u!==0&&n.arc(t+i-u,r+o-u,u,0,Math.PI/2),n.lineTo(t+c,r+o),c!==0&&n.arc(t+c,r+o-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var wl=Math.round;function q2(n,e,t){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;n.x1=r,n.x2=i,n.y1=o,n.y2=a;var s=t&&t.lineWidth;return s&&(wl(r*2)===wl(i*2)&&(n.x1=n.x2=ls(r,s,!0)),wl(o*2)===wl(a*2)&&(n.y1=n.y2=ls(o,s,!0))),n}}function K2(n,e,t){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;n.x=r,n.y=i,n.width=o,n.height=a;var s=t&&t.lineWidth;return s&&(n.x=ls(r,s,!0),n.y=ls(i,s,!0),n.width=Math.max(ls(r+o,s,!1)-n.x,o===0?0:1),n.height=Math.max(ls(i+a,s,!1)-n.y,a===0?0:1)),n}}function ls(n,e,t){if(!e)return n;var r=wl(n*2);return(r+wl(e))%2===0?r/2:(r+(t?1:-1))/2}var WV=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),jV={},fe=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new WV},e.prototype.buildPath=function(t,r){var i,o,a,s;if(this.subPixelOptimize){var l=K2(jV,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?GV(t,r):t.rect(i,o,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ae);fe.prototype.type="rect";var Y2={fill:"#000"},J2=2,HV={style:Ft({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},qp.style)},ge=function(n){Q(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Y2,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var r=this._children[t];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):n.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var r=this.innerTransformable;return r?r.getLocalTransform(t):n.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,ZV(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].__zr=t},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Qt(0,0,0,0),r=this._children,i=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(t.copy(l),t.applyTransform(u),o=o||t.clone(),o.union(t)):(o=o||l.clone(),o.union(l))}this._rect=o||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Y2},e.prototype.setTextContent=function(t){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,r){if(!r)return t;var i=r.rich,o=t.rich||i&&{};return lt(t,r),i&&o?(this._mergeRich(o,i),t.rich=o):o&&(t.rich=o),t},e.prototype._mergeRich=function(t,r){for(var i=ue(r),o=0;o<i.length;o++){var a=i[o];t[a]=t[a]||{},lt(t[a],r[a])}},e.prototype.getAnimationStyleProps=function(){return HV},e.prototype._getOrCreateChild=function(t){var r=this._children[this._childCursor];return(!r||!(r instanceof t))&&(r=new t),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var t=this.style,r=t.font||Uo,i=t.padding,o=aS(t),a=fV(o,t),s=Gy(t),l=!!t.backgroundColor,u=a.outerHeight,c=a.outerWidth,h=a.contentWidth,d=a.lines,f=a.lineHeight,g=this._defaultStyle;this.isTruncated=!!a.isTruncated;var y=t.x||0,_=t.y||0,v=t.align||g.align||"left",p=t.verticalAlign||g.verticalAlign||"top",x=y,b=yl(_,a.contentHeight,p);if(s||i){var S=rc(y,c,v),M=yl(_,u,p);s&&this._renderBackground(t,t,S,M,c,u)}b+=f/2,i&&(x=oS(y,v,i),p==="top"?b+=i[0]:p==="bottom"&&(b-=i[2]));for(var I=0,C=!1,A=iS("fill"in t?t.fill:(C=!0,g.fill)),D=rS("stroke"in t?t.stroke:!l&&(!g.autoStroke||C)?(I=J2,g.stroke):null),N=t.textShadowBlur>0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),E=a.calculatedLineHeight,k=0;k<d.length;k++){var z=this._getOrCreateChild(bl),F=z.createStyle();z.useStyle(F),F.text=d[k],F.x=x,F.y=b,F.textAlign=v,F.textBaseline="middle",F.opacity=t.opacity,F.strokeFirst=!0,N&&(F.shadowBlur=t.textShadowBlur||0,F.shadowColor=t.textShadowColor||"transparent",F.shadowOffsetX=t.textShadowOffsetX||0,F.shadowOffsetY=t.textShadowOffsetY||0),F.stroke=D,F.fill=A,D&&(F.lineWidth=t.lineWidth||I,F.lineDash=t.lineDash,F.lineDashOffset=t.lineDashOffset||0),F.font=r,tS(F,t),b+=f,L&&z.setBoundingRect(new Qt(rc(F.x,h,F.textAlign),yl(F.y,E,F.textBaseline),h,E))}},e.prototype._updateRichTexts=function(){var t=this.style,r=aS(t),i=yV(r,t),o=i.width,a=i.outerWidth,s=i.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,d=t.align||h.align,f=t.verticalAlign||h.verticalAlign;this.isTruncated=!!i.isTruncated;var g=rc(u,a,d),y=yl(c,s,f),_=g,v=y;l&&(_+=l[3],v+=l[0]);var p=_+o;Gy(t)&&this._renderBackground(t,t,g,y,a,s);for(var x=!!t.backgroundColor,b=0;b<i.lines.length;b++){for(var S=i.lines[b],M=S.tokens,I=M.length,C=S.lineHeight,A=S.width,D=0,N=_,L=p,E=I-1,k=void 0;D<I&&(k=M[D],!k.align||k.align==="left");)this._placeToken(k,t,C,v,N,"left",x),A-=k.width,N+=k.width,D++;for(;E>=0&&(k=M[E],k.align==="right");)this._placeToken(k,t,C,v,L,"right",x),A-=k.width,L-=k.width,E--;for(N+=(o-(N-_)-(p-L)-A)/2;D<=E;)k=M[D],this._placeToken(k,t,C,v,N+k.width/2,"center",x),N+=k.width,D++;v+=C}},e.prototype._placeToken=function(t,r,i,o,a,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,h=o+i/2;c==="top"?h=o+t.height/2:c==="bottom"&&(h=o+i-t.height/2);var d=!t.isLineHolder&&Gy(u);d&&this._renderBackground(u,r,s==="right"?a-t.width:s==="center"?a-t.width/2:a,h-t.height/2,t.width,t.height);var f=!!u.backgroundColor,g=t.textPadding;g&&(a=oS(a,s,g),h-=t.height/2-g[0]-t.innerHeight/2);var y=this._getOrCreateChild(bl),_=y.createStyle();y.useStyle(_);var v=this._defaultStyle,p=!1,x=0,b=iS("fill"in u?u.fill:"fill"in r?r.fill:(p=!0,v.fill)),S=rS("stroke"in u?u.stroke:"stroke"in r?r.stroke:!f&&!l&&(!v.autoStroke||p)?(x=J2,v.stroke):null),M=u.textShadowBlur>0||r.textShadowBlur>0;_.text=t.text,_.x=a,_.y=h,M&&(_.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,_.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=t.font||Uo,_.opacity=Pr(u.opacity,r.opacity,1),tS(_,u),S&&(_.lineWidth=Pr(u.lineWidth,r.lineWidth,x),_.lineDash=Ht(u.lineDash,r.lineDash),_.lineDashOffset=r.lineDashOffset||0,_.stroke=S),b&&(_.fill=b);var I=t.contentWidth,C=t.contentHeight;y.setBoundingRect(new Qt(rc(_.x,I,_.textAlign),yl(_.y,C,_.textBaseline),I,C))},e.prototype._renderBackground=function(t,r,i,o,a,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,d=l&&!h,f=t.borderRadius,g=this,y,_;if(d||t.lineHeight||u&&c){y=this._getOrCreateChild(fe),y.useStyle(y.createStyle()),y.style.fill=null;var v=y.shape;v.x=i,v.y=o,v.width=a,v.height=s,v.r=f,y.dirtyShape()}if(d){var p=y.style;p.fill=l||null,p.fillOpacity=Ht(t.fillOpacity,1)}else if(h){_=this._getOrCreateChild(Tn),_.onload=function(){g.dirtyStyle()};var x=_.style;x.image=l.image,x.x=i,x.y=o,x.width=a,x.height=s}if(u&&c){var p=y.style;p.lineWidth=u,p.stroke=c,p.strokeOpacity=Ht(t.strokeOpacity,1),p.lineDash=t.borderDash,p.lineDashOffset=t.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(p.strokeFirst=!0,p.lineWidth*=2)}var b=(y||_).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=Pr(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return eS(t)&&(r=[t.fontStyle,t.fontWeight,Q2(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&hi(r)||t.textFont||t.font},e}(Br),UV={left:!0,right:1,center:1},XV={top:1,bottom:1,middle:1},$2=["fontStyle","fontWeight","fontSize","fontFamily"];function Q2(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?yv+"px":n+"px"}function tS(n,e){for(var t=0;t<$2.length;t++){var r=$2[t],i=e[r];i!=null&&(n[r]=i)}}function eS(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function ZV(n){return nS(n),R(n.rich,nS),n}function nS(n){if(n){n.font=ge.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||UV[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||XV[t]?t:"top";var r=n.padding;r&&(n.padding=wv(n.padding))}}function rS(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function iS(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function oS(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function aS(n){var e=n.text;return e!=null&&(e+=""),e}function Gy(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}var Ut=de(),Wy=function(n,e,t,r){if(r){var i=Ut(r);i.dataIndex=t,i.dataType=e,i.seriesIndex=n,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=Ut(o);a.seriesIndex=n,a.dataIndex=t,a.dataType=e,a.ssrType="chart"})}},sS=1,lS={},uS=de(),jy=de(),Hy=0,hc=1,td=2,$n=["emphasis","blur","select"],pc=["normal","emphasis","blur","select"],Sl=10,qV=9,us="highlight",ed="downplay",dc="select",nd="unselect",fc="toggleSelect";function Ml(n){return n!=null&&n!=="none"}function rd(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function cS(n){rd(n,"emphasis",td)}function hS(n){n.hoverState===td&&rd(n,"normal",Hy)}function Uy(n){rd(n,"blur",hc)}function pS(n){n.hoverState===hc&&rd(n,"normal",Hy)}function KV(n){n.selected=!0}function YV(n){n.selected=!1}function dS(n,e,t){e(n,t)}function _o(n,e,t){dS(n,e,t),n.isGroup&&n.traverse(function(r){dS(r,e,t)})}function id(n,e){switch(e){case"emphasis":n.hoverState=td;break;case"normal":n.hoverState=Hy;break;case"blur":n.hoverState=hc;break;case"select":n.selected=!0}}function JV(n,e,t,r){for(var i=n.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=l??r[s]}for(var a=0;a<n.animators.length;a++){var u=n.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(o,e)}return o}function $V(n,e,t,r){var i=t&&te(t,"select")>=0,o=!1;if(n instanceof ae){var a=uS(n),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Ml(s)||Ml(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=lt({},r),u=lt({},u),u.fill=s):!Ml(u.fill)&&Ml(s)?(o=!0,r=lt({},r),u=lt({},u),u.fill=qv(s)):!Ml(u.stroke)&&Ml(l)&&(o||(r=lt({},r),u=lt({},u)),u.stroke=qv(l)),r.style=u}}if(r&&r.z2==null){o||(r=lt({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??Sl)}return r}function QV(n,e,t){if(t&&t.z2==null){t=lt({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??qV)}return t}function tB(n,e,t){var r=te(n.currentStates,e)>=0,i=n.style.opacity,o=r?null:JV(n,["opacity"],e,{opacity:1});t=t||{};var a=t.style||{};return a.opacity==null&&(t=lt({},t),a=lt({opacity:r?i:o.opacity*.1},a),t.style=a),t}function Xy(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return $V(this,n,e,t);if(n==="blur")return tB(this,n,t);if(n==="select")return QV(this,n,t)}return t}function cs(n){n.stateProxy=Xy;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=Xy),t&&(t.stateProxy=Xy)}function fS(n,e){!_S(n,e)&&!n.__highByOuter&&_o(n,cS)}function gS(n,e){!_S(n,e)&&!n.__highByOuter&&_o(n,hS)}function xo(n,e){n.__highByOuter|=1<<(e||0),_o(n,cS)}function bo(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&_o(n,hS)}function vS(n){_o(n,Uy)}function Zy(n){_o(n,pS)}function yS(n){_o(n,KV)}function mS(n){_o(n,YV)}function _S(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function xS(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(i,o){var a=jy(o),s=i==="series",l=s?n.getViewOfSeriesModel(o):n.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){pS(u)}),s&&t.push(o)),a.isBlured=!1}),R(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function qy(n,e,t,r){var i=r.getModel();t=t||"coordinateSystem";function o(u,c){for(var h=0;h<c.length;h++){var d=u.getItemGraphicEl(c[h]);d&&Zy(d)}}if(n!=null&&!(!e||e==="none")){var a=i.getSeriesByIndex(n),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=a===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var d=h&&s?h===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!d||e==="series"&&c)){var f=r.getViewOfSeriesModel(u);if(f.group.traverse(function(_){_.__highByOuter&&c&&e==="self"||Uy(_)}),zn(e))o(u.getData(),e);else if(Vt(e))for(var g=ue(e),y=0;y<g.length;y++)o(u.getData(g[y]),e[g[y]]);l.push(u),jy(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var h=r.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function Ky(n,e,t){if(!(n==null||e==null)){var r=t.getModel().getComponent(n,e);if(r){jy(r).isBlured=!0;var i=t.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){Uy(o)})}}}function eB(n,e,t){var r=n.seriesIndex,i=n.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&Vn("Unknown dataType "+e.dataType);return}var o=$a(i,e);o=(ht(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Ut(a);qy(r,u.focus,u.blurScope,t)}else{var c=n.get(["emphasis","focus"]),h=n.get(["emphasis","blurScope"]);c!=null&&qy(r,c,h,t)}}function Yy(n,e,t,r){var i={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||e==null||t==null)return i;var o=r.getModel().getComponent(n,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!oa(s[u])&&Vn("param should be highDownDispatcher"),Ut(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function nB(n,e,t){process.env.NODE_ENV!=="production"&&!oa(n)&&Vn("param should be highDownDispatcher");var r=Ut(n),i=Yy(r.componentMainType,r.componentIndex,r.componentHighDownName,t),o=i.dispatchers,a=i.focusSelf;o?(a&&Ky(r.componentMainType,r.componentIndex,t),R(o,function(s){return fS(s,e)})):(qy(r.seriesIndex,r.focus,r.blurScope,t),r.focus==="self"&&Ky(r.componentMainType,r.componentIndex,t),fS(n,e))}function rB(n,e,t){process.env.NODE_ENV!=="production"&&!oa(n)&&Vn("param should be highDownDispatcher"),xS(t);var r=Ut(n),i=Yy(r.componentMainType,r.componentIndex,r.componentHighDownName,t).dispatchers;i?R(i,function(o){return gS(o,e)}):gS(n,e)}function iB(n,e,t){if($y(e)){var r=e.dataType,i=n.getData(r),o=$a(i,e);ht(o)||(o=[o]),n[e.type===fc?"toggleSelect":e.type===dc?"select":"unselect"](o,r)}}function bS(n){var e=n.getAllData();R(e,function(t){var r=t.data,i=t.type;r.eachItemGraphicEl(function(o,a){n.isSelected(a,i)?yS(o):mS(o)})})}function oB(n){var e=[];return n.eachSeries(function(t){var r=t.getAllData();R(r,function(i){i.data;var o=i.type,a=t.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:t.seriesIndex};o!=null&&(s.dataType=o),e.push(s)}})}),e}function hs(n,e,t){ps(n,!0),_o(n,cs),Jy(n,e,t)}function aB(n){ps(n,!1)}function Ze(n,e,t,r){r?aB(n):hs(n,e,t)}function Jy(n,e,t){var r=Ut(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var wS=["emphasis","blur","select"],sB={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ln(n,e,t,r){t=t||"itemStyle";for(var i=0;i<wS.length;i++){var o=wS[i],a=e.getModel([o,t]),s=n.ensureState(o);s.style=r?r(a):a[sB[t]]()}}function ps(n,e){var t=e===!1,r=n;n.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=n.highDownSilentOnTouch),(!t||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!t)}function oa(n){return!!(n&&n.__highDownDispatcher)}function lB(n,e,t){var r=Ut(n);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=t}function uB(n){var e=lS[n];return e==null&&sS<=32&&(e=lS[n]=sS++),e}function $y(n){var e=n.type;return e===dc||e===nd||e===fc}function SS(n){var e=n.type;return e===us||e===ed}function cB(n){var e=uS(n);e.normalFill=n.style.fill,e.normalStroke=n.style.stroke;var t=n.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Il=Gi.CMD,hB=[[],[],[]],MS=Math.sqrt,pB=Math.atan2;function IS(n,e){if(e){var t=n.data,r=n.len(),i,o,a,s,l,u,c=Il.M,h=Il.C,d=Il.L,f=Il.R,g=Il.A,y=Il.Q;for(a=0,s=0;a<r;){switch(i=t[a++],s=a,o=0,i){case c:o=1;break;case d:o=1;break;case h:o=3;break;case y:o=2;break;case g:var _=e[4],v=e[5],p=MS(e[0]*e[0]+e[1]*e[1]),x=MS(e[2]*e[2]+e[3]*e[3]),b=pB(-e[1]/x,e[0]/p);t[a]*=p,t[a++]+=_,t[a]*=x,t[a++]+=v,t[a++]*=p,t[a++]*=x,t[a++]+=b,t[a++]+=b,a+=2,s=a;break;case f:u[0]=t[a++],u[1]=t[a++],Dn(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[a++],u[1]+=t[a++],Dn(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<o;l++){var S=hB[l];S[0]=t[a++],S[1]=t[a++],Dn(S,S,e),t[s++]=S[0],t[s++]=S[1]}}n.increaseVersion()}}var Qy=Math.sqrt,od=Math.sin,ad=Math.cos,gc=Math.PI;function TS(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function tm(n,e){return(n[0]*e[0]+n[1]*e[1])/(TS(n)*TS(e))}function CS(n,e){return(n[0]*e[1]<n[1]*e[0]?-1:1)*Math.acos(tm(n,e))}function AS(n,e,t,r,i,o,a,s,l,u,c){var h=l*(gc/180),d=ad(h)*(n-t)/2+od(h)*(e-r)/2,f=-1*od(h)*(n-t)/2+ad(h)*(e-r)/2,g=d*d/(a*a)+f*f/(s*s);g>1&&(a*=Qy(g),s*=Qy(g));var y=(i===o?-1:1)*Qy((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,_=y*a*f/s,v=y*-s*d/a,p=(n+t)/2+ad(h)*_-od(h)*v,x=(e+r)/2+od(h)*_+ad(h)*v,b=CS([1,0],[(d-_)/a,(f-v)/s]),S=[(d-_)/a,(f-v)/s],M=[(-1*d-_)/a,(-1*f-v)/s],I=CS(S,M);if(tm(S,M)<=-1&&(I=gc),tm(S,M)>=1&&(I=0),I<0){var C=Math.round(I/gc*1e6)/1e6;I=gc*2+C%2*gc}c.addData(u,p,x,a,s,b,I,h,o)}var dB=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,fB=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gB(n){var e=new Gi;if(!n)return e;var t=0,r=0,i=t,o=r,a,s=Gi.CMD,l=n.match(dB);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,f=c.match(fB)||[],g=f.length,y=0;y<g;y++)f[y]=parseFloat(f[y]);for(var _=0;_<g;){var v=void 0,p=void 0,x=void 0,b=void 0,S=void 0,M=void 0,I=void 0,C=t,A=r,D=void 0,N=void 0;switch(h){case"l":t+=f[_++],r+=f[_++],d=s.L,e.addData(d,t,r);break;case"L":t=f[_++],r=f[_++],d=s.L,e.addData(d,t,r);break;case"m":t+=f[_++],r+=f[_++],d=s.M,e.addData(d,t,r),i=t,o=r,h="l";break;case"M":t=f[_++],r=f[_++],d=s.M,e.addData(d,t,r),i=t,o=r,h="L";break;case"h":t+=f[_++],d=s.L,e.addData(d,t,r);break;case"H":t=f[_++],d=s.L,e.addData(d,t,r);break;case"v":r+=f[_++],d=s.L,e.addData(d,t,r);break;case"V":r=f[_++],d=s.L,e.addData(d,t,r);break;case"C":d=s.C,e.addData(d,f[_++],f[_++],f[_++],f[_++],f[_++],f[_++]),t=f[_-2],r=f[_-1];break;case"c":d=s.C,e.addData(d,f[_++]+t,f[_++]+r,f[_++]+t,f[_++]+r,f[_++]+t,f[_++]+r),t+=f[_-2],r+=f[_-1];break;case"S":v=t,p=r,D=e.len(),N=e.data,a===s.C&&(v+=t-N[D-4],p+=r-N[D-3]),d=s.C,C=f[_++],A=f[_++],t=f[_++],r=f[_++],e.addData(d,v,p,C,A,t,r);break;case"s":v=t,p=r,D=e.len(),N=e.data,a===s.C&&(v+=t-N[D-4],p+=r-N[D-3]),d=s.C,C=t+f[_++],A=r+f[_++],t+=f[_++],r+=f[_++],e.addData(d,v,p,C,A,t,r);break;case"Q":C=f[_++],A=f[_++],t=f[_++],r=f[_++],d=s.Q,e.addData(d,C,A,t,r);break;case"q":C=f[_++]+t,A=f[_++]+r,t+=f[_++],r+=f[_++],d=s.Q,e.addData(d,C,A,t,r);break;case"T":v=t,p=r,D=e.len(),N=e.data,a===s.Q&&(v+=t-N[D-4],p+=r-N[D-3]),t=f[_++],r=f[_++],d=s.Q,e.addData(d,v,p,t,r);break;case"t":v=t,p=r,D=e.len(),N=e.data,a===s.Q&&(v+=t-N[D-4],p+=r-N[D-3]),t+=f[_++],r+=f[_++],d=s.Q,e.addData(d,v,p,t,r);break;case"A":x=f[_++],b=f[_++],S=f[_++],M=f[_++],I=f[_++],C=t,A=r,t=f[_++],r=f[_++],d=s.A,AS(C,A,t,r,M,I,x,b,S,d,e);break;case"a":x=f[_++],b=f[_++],S=f[_++],M=f[_++],I=f[_++],C=t,A=r,t+=f[_++],r+=f[_++],d=s.A,AS(C,A,t,r,M,I,x,b,S,d,e);break}}(h==="z"||h==="Z")&&(d=s.Z,e.addData(d),t=i,r=o),a=d}return e.toStatic(),e}var kS=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(ae);function DS(n){return n.setData!=null}function LS(n,e){var t=gB(n),r=lt({},e);return r.buildPath=function(i){if(DS(i)){i.setData(t.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;t.rebuildPath(o,1)}},r.applyTransform=function(i){IS(t,i),this.dirtyShape()},r}function NS(n,e){return new kS(LS(n,e))}function vB(n,e){var t=LS(n,e),r=function(i){Q(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return o}(kS);return r}function yB(n,e){for(var t=[],r=n.length,i=0;i<r;i++){var o=n[i];t.push(o.getUpdatedPathProxy(!0))}var a=new ae(e);return a.createPathProxy(),a.buildPath=function(s){if(DS(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}function em(n,e){e=e||{};var t=new ae;return n.shape&&t.setShape(n.shape),t.setStyle(n.style),e.bakeTransform?IS(t.path,n.getComputedTransform()):e.toLocal?t.setLocalTransform(n.getComputedTransform()):t.copyTransform(n),t.buildPath=n.buildPath,t.applyTransform=t.applyTransform,t.z=n.z,t.z2=n.z2,t.zlevel=n.zlevel,t}var mB=function(){function n(){this.cx=0,this.cy=0,this.r=0}return n}(),wo=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new mB},e.prototype.buildPath=function(t,r){t.moveTo(r.cx+r.r,r.cy),t.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e}(ae);wo.prototype.type="circle";var _B=function(){function n(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return n}(),sd=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new _B},e.prototype.buildPath=function(t,r){var i=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,u=s*i,c=l*i;t.moveTo(o-s,a),t.bezierCurveTo(o-s,a-c,o-u,a-l,o,a-l),t.bezierCurveTo(o+u,a-l,o+s,a-c,o+s,a),t.bezierCurveTo(o+s,a+c,o+u,a+l,o,a+l),t.bezierCurveTo(o-u,a+l,o-s,a+c,o-s,a),t.closePath()},e}(ae);sd.prototype.type="ellipse";var PS=Math.PI,nm=PS*2,ds=Math.sin,Tl=Math.cos,xB=Math.acos,Bn=Math.atan2,ES=Math.abs,vc=Math.sqrt,yc=Math.max,Wi=Math.min,vi=1e-4;function bB(n,e,t,r,i,o,a,s){var l=t-n,u=r-e,c=a-i,h=s-o,d=h*l-c*u;if(!(d*d<vi))return d=(c*(e-o)-h*(n-i))/d,[n+d*l,e+d*u]}function ld(n,e,t,r,i,o,a){var s=n-t,l=e-r,u=(a?o:-o)/vc(s*s+l*l),c=u*l,h=-u*s,d=n+c,f=e+h,g=t+c,y=r+h,_=(d+g)/2,v=(f+y)/2,p=g-d,x=y-f,b=p*p+x*x,S=i-o,M=d*y-g*f,I=(x<0?-1:1)*vc(yc(0,S*S*b-M*M)),C=(M*x-p*I)/b,A=(-M*p-x*I)/b,D=(M*x+p*I)/b,N=(-M*p+x*I)/b,L=C-_,E=A-v,k=D-_,z=N-v;return L*L+E*E>k*k+z*z&&(C=D,A=N),{cx:C,cy:A,x0:-c,y0:-h,x1:C*(i/S-1),y1:A*(i/S-1)}}function wB(n){var e;if(ht(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function SB(n,e){var t,r=yc(e.r,0),i=yc(e.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,h=e.cy,d=!!e.clockwise,f=ES(u-l),g=f>nm&&f%nm;if(g>vi&&(f=g),!(r>vi))n.moveTo(c,h);else if(f>nm-vi)n.moveTo(c+r*Tl(l),h+r*ds(l)),n.arc(c,h,r,l,u,!d),i>vi&&(n.moveTo(c+i*Tl(u),h+i*ds(u)),n.arc(c,h,i,u,l,d));else{var y=void 0,_=void 0,v=void 0,p=void 0,x=void 0,b=void 0,S=void 0,M=void 0,I=void 0,C=void 0,A=void 0,D=void 0,N=void 0,L=void 0,E=void 0,k=void 0,z=r*Tl(l),F=r*ds(l),W=i*Tl(u),q=i*ds(u),j=f>vi;if(j){var J=e.cornerRadius;J&&(t=wB(J),y=t[0],_=t[1],v=t[2],p=t[3]);var H=ES(r-i)/2;if(x=Wi(H,v),b=Wi(H,p),S=Wi(H,y),M=Wi(H,_),A=I=yc(x,b),D=C=yc(S,M),(I>vi||C>vi)&&(N=r*Tl(u),L=r*ds(u),E=i*Tl(l),k=i*ds(l),f<PS)){var K=bB(z,F,E,k,N,L,W,q);if(K){var ut=z-K[0],at=F-K[1],ot=N-K[0],Rt=L-K[1],Jt=1/ds(xB((ut*ot+at*Rt)/(vc(ut*ut+at*at)*vc(ot*ot+Rt*Rt)))/2),wt=vc(K[0]*K[0]+K[1]*K[1]);A=Wi(I,(r-wt)/(Jt+1)),D=Wi(C,(i-wt)/(Jt-1))}}}if(!j)n.moveTo(c+z,h+F);else if(A>vi){var xt=Wi(v,A),Ot=Wi(p,A),bt=ld(E,k,z,F,r,xt,d),Nt=ld(N,L,W,q,r,Ot,d);n.moveTo(c+bt.cx+bt.x0,h+bt.cy+bt.y0),A<I&&xt===Ot?n.arc(c+bt.cx,h+bt.cy,A,Bn(bt.y0,bt.x0),Bn(Nt.y0,Nt.x0),!d):(xt>0&&n.arc(c+bt.cx,h+bt.cy,xt,Bn(bt.y0,bt.x0),Bn(bt.y1,bt.x1),!d),n.arc(c,h,r,Bn(bt.cy+bt.y1,bt.cx+bt.x1),Bn(Nt.cy+Nt.y1,Nt.cx+Nt.x1),!d),Ot>0&&n.arc(c+Nt.cx,h+Nt.cy,Ot,Bn(Nt.y1,Nt.x1),Bn(Nt.y0,Nt.x0),!d))}else n.moveTo(c+z,h+F),n.arc(c,h,r,l,u,!d);if(!(i>vi)||!j)n.lineTo(c+W,h+q);else if(D>vi){var xt=Wi(y,D),Ot=Wi(_,D),bt=ld(W,q,N,L,i,-Ot,d),Nt=ld(z,F,E,k,i,-xt,d);n.lineTo(c+bt.cx+bt.x0,h+bt.cy+bt.y0),D<C&&xt===Ot?n.arc(c+bt.cx,h+bt.cy,D,Bn(bt.y0,bt.x0),Bn(Nt.y0,Nt.x0),!d):(Ot>0&&n.arc(c+bt.cx,h+bt.cy,Ot,Bn(bt.y0,bt.x0),Bn(bt.y1,bt.x1),!d),n.arc(c,h,i,Bn(bt.cy+bt.y1,bt.cx+bt.x1),Bn(Nt.cy+Nt.y1,Nt.cx+Nt.x1),d),xt>0&&n.arc(c+Nt.cx,h+Nt.cy,xt,Bn(Nt.y1,Nt.x1),Bn(Nt.y0,Nt.x0),!d))}else n.lineTo(c+W,h+q),n.arc(c,h,i,u,l,d)}n.closePath()}}}var MB=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),Qn=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new MB},e.prototype.buildPath=function(t,r){SB(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ae);Qn.prototype.type="sector";var IB=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),mc=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new IB},e.prototype.buildPath=function(t,r){var i=r.cx,o=r.cy,a=Math.PI*2;t.moveTo(i+r.r,o),t.arc(i,o,r.r,0,a,!1),t.moveTo(i+r.r0,o),t.arc(i,o,r.r0,0,a,!0)},e}(ae);mc.prototype.type="ring";function TB(n,e,t,r){var i=[],o=[],a=[],s=[],l,u,c,h;if(r){c=[1/0,1/0],h=[-1/0,-1/0];for(var d=0,f=n.length;d<f;d++)qo(c,c,n[d]),Ko(h,h,n[d]);qo(c,c,r[0]),Ko(h,h,r[1])}for(var d=0,f=n.length;d<f;d++){var g=n[d];if(t)l=n[d?d-1:f-1],u=n[(d+1)%f];else if(d===0||d===f-1){i.push(uo(n[d]));continue}else l=n[d-1],u=n[d+1];Ga(o,u,l),yp(o,o,e);var y=Iv(g,l),_=Iv(g,u),v=y+_;v!==0&&(y/=v,_/=v),yp(a,o,-y),yp(s,o,_);var p=yw([],g,a),x=yw([],g,s);r&&(Ko(p,p,c),qo(p,p,h),Ko(x,x,c),qo(x,x,h)),i.push(p),i.push(x)}return t&&i.push(i.shift()),i}function RS(n,e,t){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=TB(i,r,t,e.smoothConstraint);n.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(t?a:a-1);s++){var l=o[s*2],u=o[s*2+1],c=i[(s+1)%a];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)n.lineTo(i[s][0],i[s][1])}t&&n.closePath()}}var CB=function(){function n(){this.points=null,this.smooth=0,this.smoothConstraint=null}return n}(),tr=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new CB},e.prototype.buildPath=function(t,r){RS(t,r,!0)},e}(ae);tr.prototype.type="polygon";var AB=function(){function n(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return n}(),er=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new AB},e.prototype.buildPath=function(t,r){RS(t,r,!1)},e}(ae);er.prototype.type="polyline";var kB={},DB=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),mn=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new DB},e.prototype.buildPath=function(t,r){var i,o,a,s;if(this.subPixelOptimize){var l=q2(kB,r,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=r.x1,o=r.y1,a=r.x2,s=r.y2;var u=r.percent;u!==0&&(t.moveTo(i,o),u<1&&(a=i*(1-u)+a*u,s=o*(1-u)+s*u),t.lineTo(a,s))},e.prototype.pointAt=function(t){var r=this.shape;return[r.x1*(1-t)+r.x2*t,r.y1*(1-t)+r.y2*t]},e}(ae);mn.prototype.type="line";var hr=[],LB=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return n}();function OS(n,e,t){var r=n.cpx2,i=n.cpy2;return r!=null||i!=null?[(t?zw:yn)(n.x1,n.cpx1,n.cpx2,n.x2,e),(t?zw:yn)(n.y1,n.cpy1,n.cpy2,n.y2,e)]:[(t?Fv:In)(n.x1,n.cpx1,n.x2,e),(t?Fv:In)(n.y1,n.cpy1,n.y2,e)]}var _c=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new LB},e.prototype.buildPath=function(t,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,h=r.cpy2,d=r.percent;d!==0&&(t.moveTo(i,o),c==null||h==null?(d<1&&(qu(i,l,a,d,hr),l=hr[1],a=hr[2],qu(o,u,s,d,hr),u=hr[1],s=hr[2]),t.quadraticCurveTo(l,u,a,s)):(d<1&&($o(i,l,c,a,d,hr),l=hr[1],c=hr[2],a=hr[3],$o(o,u,h,s,d,hr),u=hr[1],h=hr[2],s=hr[3]),t.bezierCurveTo(l,u,c,h,a,s)))},e.prototype.pointAt=function(t){return OS(this.shape,t,!1)},e.prototype.tangentAt=function(t){var r=OS(this.shape,t,!0);return cl(r,r)},e}(ae);_c.prototype.type="bezier-curve";var NB=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),ud=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new NB},e.prototype.buildPath=function(t,r){var i=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),h=Math.sin(s);t.moveTo(c*a+i,h*a+o),t.arc(i,o,a,s,l,!u)},e}(ae);ud.prototype.type="arc";var rm=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,r=this.shapeChanged(),i=0;i<t.length;i++)r=r||t[i].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(r[0],r[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(t,i[o].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],r=0;r<t.length;r++)t[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ae.prototype.getBoundingRect.call(this)},e}(ae),zS=function(){function n(e){this.colorStops=e||[]}return n.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},n}(),xc=function(n){Q(e,n);function e(t,r,i,o,a,s){var l=n.call(this,a)||this;return l.x=t??0,l.y=r??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return e}(zS),VS=function(n){Q(e,n);function e(t,r,i,o,a){var s=n.call(this,o)||this;return s.x=t??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return e}(zS),fs=[0,0],gs=[0,0],cd=new $t,hd=new $t,pd=function(){function n(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new $t;for(var r=0;r<2;r++)this._axes[r]=new $t;e&&this.fromBoundingRect(e,t)}return n.prototype.fromBoundingRect=function(e,t){var r=this._corners,i=this._axes,o=e.x,a=e.y,s=o+e.width,l=a+e.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),t)for(var u=0;u<4;u++)r[u].transform(t);$t.sub(i[0],r[1],r[0]),$t.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(r[0])},n.prototype.intersect=function(e,t){var r=!0,i=!t;return cd.set(1/0,1/0),hd.set(0,0),!this._intersectCheckOneSide(this,e,cd,hd,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,cd,hd,i,-1)&&(r=!1,i)||i||$t.copy(t,r?cd:hd),r},n.prototype._intersectCheckOneSide=function(e,t,r,i,o,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,fs),this._getProjMinMaxOnAxis(l,t._corners,gs),fs[1]<gs[0]||fs[0]>gs[1]){if(s=!1,o)return s;var c=Math.abs(gs[0]-fs[1]),h=Math.abs(fs[0]-gs[1]);Math.min(c,h)>i.len()&&(c<h?$t.scale(i,u,-c*a):$t.scale(i,u,h*a))}else if(r){var c=Math.abs(gs[0]-fs[1]),h=Math.abs(fs[0]-gs[1]);Math.min(c,h)<r.len()&&(c<h?$t.scale(r,u,c*a):$t.scale(r,u,-h*a))}}return s},n.prototype._getProjMinMaxOnAxis=function(e,t,r){for(var i=this._axes[e],o=this._origin,a=t[0].dot(i)+o[e],s=a,l=a,u=1;u<t.length;u++){var c=t[u].dot(i)+o[e];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},n}(),PB=[],EB=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,r){t.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,r){r?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,r){r=r||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var r=this._cursor;r<this._displayables.length;r++)t&&t(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)t&&t(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var r=this._displayables[t];r.parent=this,r.update(),r.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var r=this._temporaryDisplayables[t];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Qt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(PB)),t.union(o)}this._rect=t}return this._rect},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(t,r))return!0}return!1},e}(Br),BS=de();function Cl(n,e,t,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l=n==="update";if(s){var u=void 0,c=void 0,h=void 0;r?(u=Ht(r.duration,200),c=Ht(r.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(h=o.delay)),Et(h)&&(h=h(t,i)),Et(u)&&(u=u(t));var d={duration:u||0,delay:h,easing:c};return d}else return null}function im(n,e,t,r,i,o,a){var s=!1,l;Et(i)?(a=o,o=i,i=null):Vt(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=n==="leave";u||e.stopAnimation("leave");var c=Cl(n,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h=c.duration,d=c.delay,f=c.easing,g={duration:h,delay:d||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:n,during:a};s?e.animateFrom(t,g):e.animateTo(t,g)}else e.stopAnimation(),!s&&e.attr(t),a&&a(1),o&&o()}function _e(n,e,t,r,i,o){im("update",n,e,t,r,i,o)}function We(n,e,t,r,i,o){im("enter",n,e,t,r,i,o)}function Al(n){if(!n.__zr)return!0;for(var e=0;e<n.animators.length;e++){var t=n.animators[e];if(t.scope==="leave")return!0}return!1}function aa(n,e,t,r,i,o){Al(n)||im("leave",n,e,t,r,i,o)}function FS(n,e,t,r){n.removeTextContent(),n.removeTextGuideLine(),aa(n,{style:{opacity:0}},e,t,r)}function bc(n,e,t){function r(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(i){i.isGroup||FS(i,e,t,r)}):FS(n,e,t,r)}function yi(n){BS(n).oldStyle=n.style}function RB(n){return BS(n).oldStyle}var dd=Math.max,fd=Math.min,om={};function OB(n){return ae.extend(n)}var zB=vB;function VB(n,e){return zB(n,e)}function mi(n,e){om[n]=e}function am(n){if(om.hasOwnProperty(n))return om[n]}function gd(n,e,t,r){var i=NS(n,e);return t&&(r==="center"&&(t=WS(t,i.getBoundingRect())),jS(i,t)),i}function GS(n,e,t){var r=new Tn({style:{image:n,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(t==="center"){var o={width:i.width,height:i.height};r.setStyle(WS(e,o))}}});return r}function WS(n,e){var t=e.width/e.height,r=n.height*t,i;r<=n.width?i=n.height:(r=n.width,i=r/t);var o=n.x+n.width/2,a=n.y+n.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var Gr=yB;function jS(n,e){if(n.applyTransform){var t=n.getBoundingRect(),r=t.calculateTransform(e);n.applyTransform(r)}}function kl(n,e){return q2(n,n,{lineWidth:e}),n}function BB(n){return K2(n.shape,n.shape,n.style),n}var vd=ls;function vs(n,e){for(var t=_p([]);n&&n!==e;)ho(t,n.getLocalTransform(),t),n=n.parent;return t}function _i(n,e,t){return e&&!zn(e)&&(e=go.getLocalTransform(e)),t&&(e=pl([],e)),Dn([],n,e)}function yd(n,e,t){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),o=[n==="left"?-r:n==="right"?r:0,n==="top"?-i:n==="bottom"?i:0];return o=_i(o,e,t),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function HS(n){return!n.isGroup}function FB(n){return n.shape!=null}function wc(n,e,t){if(!n||!e)return;function r(a){var s={};return a.traverse(function(l){HS(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return FB(a)&&(s.shape=lt({},a.shape)),s}var o=r(n);e.traverse(function(a){if(HS(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),_e(a,l,t,Ut(a).dataIndex)}}})}function US(n,e){return pt(n,function(t){var r=t[0];r=dd(r,e.x),r=fd(r,e.x+e.width);var i=t[1];return i=dd(i,e.y),i=fd(i,e.y+e.height),[r,i]})}function GB(n,e){var t=dd(n.x,e.x),r=fd(n.x+n.width,e.x+e.width),i=dd(n.y,e.y),o=fd(n.y+n.height,e.y+e.height);if(r>=t&&o>=i)return{x:t,y:i,width:r-t,height:o-i}}function Sc(n,e,t){var r=lt({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(i.image=n.slice(8),Ft(i,t),new Tn(r)):gd(n.replace("path://",""),r,t,"center")}function Mc(n,e,t,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(XS(n,e,t,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function XS(n,e,t,r,i,o,a,s){var l=t-n,u=r-e,c=a-i,h=s-o,d=sm(c,h,l,u);if(WB(d))return!1;var f=n-i,g=e-o,y=sm(f,g,l,u)/d;if(y<0||y>1)return!1;var _=sm(f,g,c,h)/d;return!(_<0||_>1)}function sm(n,e,t,r){return n*r-t*e}function WB(n){return n<=1e-6&&n>=-1e-6}function ys(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,i=Tt(e)?{formatter:e}:e,o=t.mainType,a=t.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=n.formatterParamsExtra;l&&R(ue(l),function(c){kt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ut(n.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Ft({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function ZS(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function sa(n,e){if(n)if(ht(n))for(var t=0;t<n.length;t++)ZS(n[t],e);else ZS(n,e)}mi("circle",wo),mi("ellipse",sd),mi("sector",Qn),mi("ring",mc),mi("polygon",tr),mi("polyline",er),mi("rect",fe),mi("line",mn),mi("bezierCurve",_c),mi("arc",ud);const ms=Object.freeze(Object.defineProperty({__proto__:null,Arc:ud,BezierCurve:_c,BoundingRect:Qt,Circle:wo,CompoundPath:rm,Ellipse:sd,Group:jt,Image:Tn,IncrementalDisplayable:EB,Line:mn,LinearGradient:xc,OrientedBoundingRect:pd,Path:ae,Point:$t,Polygon:tr,Polyline:er,RadialGradient:VS,Rect:fe,Ring:mc,Sector:Qn,Text:ge,applyTransform:_i,clipPointsByRect:US,clipRectByRect:GB,createIcon:Sc,extendPath:VB,extendShape:OB,getShapeClass:am,getTransform:vs,groupTransition:wc,initProps:We,isElementRemoved:Al,lineLineIntersect:XS,linePolygonIntersect:Mc,makeImage:GS,makePath:gd,mergePath:Gr,registerShape:mi,removeElement:aa,removeElementWithFadeOut:bc,resizePath:jS,setTooltipConfig:ys,subPixelOptimize:vd,subPixelOptimizeLine:kl,subPixelOptimizeRect:BB,transformDirection:yd,traverseElements:sa,updateProps:_e},Symbol.toStringTag,{value:"Module"}));var md={};function qS(n,e){for(var t=0;t<$n.length;t++){var r=$n[t],i=e[r],o=n.ensureState(r);o.style=o.style||{},o.style.text=i}var a=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:e.normal}),n.useStates(a,!0)}function lm(n,e,t){var r=n.labelFetcher,i=n.labelDataIndex,o=n.labelDimIndex,a=e.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Et(n.defaultText)?n.defaultText(i,n,t):n.defaultText);for(var l={normal:s},u=0;u<$n.length;u++){var c=$n[u],h=e[c];l[c]=Ht(r?r.getFormattedLabel(i,c,null,o,h&&h.get("formatter")):null,s)}return l}function Nn(n,e,t,r){t=t||md;for(var i=n instanceof ge,o=!1,a=0;a<pc.length;a++){var s=e[pc[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?n:n.getTextContent();if(o){i||(l||(l=new ge,n.setTextContent(l)),n.stateProxy&&(l.stateProxy=n.stateProxy));var u=lm(t,e),c=e.normal,h=!!c.getShallow("show"),d=ze(c,r&&r.normal,t,!1,!i);d.text=u.normal,i||n.setTextConfig(_d(c,t,!1));for(var a=0;a<$n.length;a++){var f=$n[a],s=e[f];if(s){var g=l.ensureState(f),y=!!Ht(s.getShallow("show"),h);if(y!==h&&(g.ignore=!y),g.style=ze(s,r&&r[f],t,!0,!i),g.style.text=u[f],!i){var _=n.ensureState(f);_.textConfig=_d(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),t.enableTextSetter&&(Dl(l).setLabelText=function(v){var p=lm(t,e,v);qS(l,p)})}else l&&(l.ignore=!0);n.dirty()}function _n(n,e){e=e||"label";for(var t={normal:n.getModel(e)},r=0;r<$n.length;r++){var i=$n[r];t[i]=n.getModel([i,e])}return t}function ze(n,e,t,r,i){var o={};return jB(o,n,t,r,i),e&&lt(o,e),o}function _d(n,e,t){e=e||{};var r={},i,o=n.getShallow("rotate"),a=Ht(n.getShallow("distance"),t?null:5),s=n.getShallow("offset");return i=n.getShallow("position")||(t?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=n.get("color")==="inherit"?e.inheritColor||null:"auto",r}function jB(n,e,t,r,i){t=t||md;var o=e.ecModel,a=o&&o.option.textStyle,s=HB(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);$S(l[u]={},c,a,t,r,i,!1,!0)}}l&&(n.rich=l);var h=e.get("overflow");h&&(n.overflow=h);var d=e.get("minMargin");d!=null&&(n.margin=d),$S(n,e,a,t,r,i,!0,!1)}function HB(n){for(var e;n&&n!==n.ecModel;){var t=(n.option||md).rich;if(t){e=e||{};for(var r=ue(t),i=0;i<r.length;i++){var o=r[i];e[o]=1}}n=n.parentModel}return e}var KS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],YS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],JS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function $S(n,e,t,r,i,o,a,s){t=!i&&t||md;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Ht(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&on("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&on("color: 'auto'","color: 'inherit'"),l?c=l:c=null),o||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(n.fill=u),c!=null&&(n.stroke=c);var d=Ht(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(n.lineWidth=d);var f=Ht(e.getShallow("textBorderType"),t.textBorderType);f!=null&&(n.lineDash=f);var g=Ht(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);g!=null&&(n.lineDashOffset=g),!i&&h==null&&!s&&(h=r&&r.defaultOpacity),h!=null&&(n.opacity=h),!i&&!o&&n.fill==null&&r.inheritColor&&(n.fill=r.inheritColor);for(var y=0;y<KS.length;y++){var _=KS[y],v=Ht(e.getShallow(_),t[_]);v!=null&&(n[_]=v)}for(var y=0;y<YS.length;y++){var _=YS[y],v=e.getShallow(_);v!=null&&(n[_]=v)}if(n.verticalAlign==null){var p=e.getShallow("baseline");p!=null&&(n.verticalAlign=p)}if(!a||!r.disableBox){for(var y=0;y<JS.length;y++){var _=JS[y],v=e.getShallow(_);v!=null&&(n[_]=v)}var x=e.getShallow("borderType");x!=null&&(n.borderDash=x),(n.backgroundColor==="auto"||n.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&n.backgroundColor==="auto"&&on("backgroundColor: 'auto'","backgroundColor: 'inherit'"),n.backgroundColor=l),(n.borderColor==="auto"||n.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&n.borderColor==="auto"&&on("borderColor: 'auto'","borderColor: 'inherit'"),n.borderColor=l)}}function um(n,e){var t=e&&e.getModel("textStyle");return hi([n.fontStyle||t&&t.getShallow("fontStyle")||"",n.fontWeight||t&&t.getShallow("fontWeight")||"",(n.fontSize||t&&t.getShallow("fontSize")||12)+"px",n.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Dl=de();function QS(n,e,t,r){if(n){var i=Dl(n);i.prevValue=i.value,i.value=t;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function tM(n,e,t,r,i){var o=Dl(n);if(!o.valueAnimation||o.prevValue===o.value)return;var a=o.defaultInterpolatedText,s=Ht(o.interpolatedValue,o.prevValue),l=o.value;function u(c){var h=P2(t,o.precision,s,l,c);o.interpolatedValue=c===1?null:h;var d=lm({labelDataIndex:e,labelFetcher:i,defaultText:a?a(h):h+""},o.statesModels,h);qS(n,d)}n.percent=0,(o.prevValue==null?We:_e)(n,{percent:1},r,e,null,u)}var UB=["textStyle","color"],cm=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],hm=new ge,XB=function(){function n(){}return n.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(UB):null)},n.prototype.getFont=function(){return um({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<cm.length;r++)t[cm[r]]=this.getShallow(cm[r]);return hm.useStyle(t),hm.update(),hm.getBoundingRect()},n}(),eM=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ZB=ts(eM),qB=function(){function n(){}return n.prototype.getLineStyle=function(e){return ZB(this,e)},n}(),nM=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],KB=ts(nM),YB=function(){function n(){}return n.prototype.getItemStyle=function(e,t){return KB(this,e,t)},n}(),ke=function(){function n(e,t,r){this.parentModel=t,this.ecModel=r,this.option=e}return n.prototype.init=function(e,t,r){},n.prototype.mergeOption=function(e,t){Yt(this.option,e,!0)},n.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},n.prototype.getShallow=function(e,t){var r=this.option,i=r==null?r:r[e];if(i==null&&!t){var o=this.parentModel;o&&(i=o.getShallow(e))}return i},n.prototype.getModel=function(e,t){var r=e!=null,i=r?this.parsePath(e):null,o=r?this._doGet(i):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new n(o,t,this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){var e=this.constructor;return new e(Wt(this.option))},n.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},n.prototype.resolveParentPath=function(e){return e},n.prototype.isAnimationEnabled=function(){if(!oe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(e,t){var r=this.option;if(!e)return r;for(var i=0;i<e.length&&!(e[i]&&(r=r&&typeof r=="object"?r[e[i]]:null,r==null));i++);return r==null&&t&&(r=t._doGet(this.resolveParentPath(e),t.parentModel)),r},n}();My(ke),oV(ke),nn(ke,qB),nn(ke,YB),nn(ke,cV),nn(ke,XB);var JB=Math.round(Math.random()*10);function Ll(n){return[n||"",JB++].join("_")}function $B(n){var e={};n.registerSubTypeDefaulter=function(t,r){var i=zi(t);e[i.main]=r},n.determineSubType=function(t,r){var i=r.type;if(!i){var o=zi(t).main;n.hasSubTypes(t)&&e[o]&&(i=e[o](r))}return i}}function QB(n,e){n.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=t(a),c=u.graph,h=u.noEntryList,d={};for(R(o,function(p){d[p]=!0});h.length;){var f=h.pop(),g=c[f],y=!!d[f];y&&(s.call(l,f,g.originalDeps.slice()),delete d[f]),R(g.successor,y?v:_)}R(d,function(){var p="";throw process.env.NODE_ENV!=="production"&&(p=Yn("Circular dependency may exists: ",d,o,a)),new Error(p)});function _(p){c[p].entryCount--,c[p].entryCount===0&&h.push(p)}function v(p){d[p]=!0,_(p)}};function t(o){var a={},s=[];return R(o,function(l){var u=r(a,l),c=u.originalDeps=e(l),h=i(c,o);u.entryCount=h.length,u.entryCount===0&&s.push(l),R(h,function(d){te(u.predecessor,d)<0&&u.predecessor.push(d);var f=r(a,d);te(f.successor,d)<0&&f.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return R(o,function(l){te(a,l)>=0&&s.push(l)}),s}}function la(n,e){return Yt(Yt({},n,!0),e,!0)}const t4={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},e4={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},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:""}}}};var xd="ZH",pm="EN",Nl=pm,bd={},dm={},rM=oe.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Nl).toUpperCase();return n.indexOf(xd)>-1?xd:Nl}():Nl;function iM(n,e){n=n.toUpperCase(),dm[n]=new ke(e),bd[n]=e}function n4(n){if(Tt(n)){var e=bd[n.toUpperCase()]||{};return n===xd||n===pm?Wt(e):Yt(Wt(e),Wt(bd[Nl]),!1)}else return Yt(Wt(n),Wt(bd[Nl]),!1)}function fm(n){return dm[n]}function r4(){return dm[Nl]}iM(pm,t4),iM(xd,e4);var gm=1e3,vm=gm*60,Ic=vm*60,Wr=Ic*24,oM=Wr*365,Tc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},wd="{yyyy}-{MM}-{dd}",aM={year:"{yyyy}",month:"{yyyy}-{MM}",day:wd,hour:wd+" "+Tc.hour,minute:wd+" "+Tc.minute,second:wd+" "+Tc.second,millisecond:Tc.none},ym=["year","month","day","hour","minute","second","millisecond"],sM=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ua(n,e){return n+="","0000".substr(0,e-n.length)+n}function Pl(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function i4(n){return n===Pl(n)}function o4(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Sd(n,e,t,r){var i=Oi(n),o=i[mm(t)](),a=i[El(t)]()+1,s=Math.floor((a-1)/3)+1,l=i[Md(t)](),u=i["get"+(t?"UTC":"")+"Day"](),c=i[Cc(t)](),h=(c-1)%12+1,d=i[Id(t)](),f=i[Td(t)](),g=i[Cd(t)](),y=c>=12?"pm":"am",_=y.toUpperCase(),v=r instanceof ke?r:fm(r||rM)||r4(),p=v.getModel("time"),x=p.get("month"),b=p.get("monthAbbr"),S=p.get("dayOfWeek"),M=p.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,y+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,ua(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[a-1]).replace(/{MMM}/g,b[a-1]).replace(/{MM}/g,ua(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ua(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,M[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ua(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ua(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ua(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,ua(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,ua(g,3)).replace(/{S}/g,g+"")}function a4(n,e,t,r,i){var o=null;if(Tt(t))o=t;else if(Et(t))o=t(n.value,e,{level:n.level});else{var a=lt({},Tc);if(n.level>0)for(var s=0;s<ym.length;++s)a[ym[s]]="{primary|"+a[ym[s]]+"}";var l=t?t.inherit===!1?t:Ft(t,a):a,u=lM(n.value,i);if(l[u])o=l[u];else if(l.inherit){for(var c=sM.indexOf(u),s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ht(o)){var h=n.level==null?0:n.level>=0?n.level:o.length+n.level;h=Math.min(h,o.length-1),o=o[h]}}return Sd(new Date(n.value),o,i,r)}function lM(n,e){var t=Oi(n),r=t[El(e)]()+1,i=t[Md(e)](),o=t[Cc(e)](),a=t[Id(e)](),s=t[Td(e)](),l=t[Cd(e)](),u=l===0,c=u&&s===0,h=c&&a===0,d=h&&o===0,f=d&&i===1,g=f&&r===1;return g?"year":f?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function uM(n,e,t){var r=ye(n)?Oi(n):n;switch(e=e||lM(n,t),e){case"year":return r[mm(t)]();case"half-year":return r[El(t)]()>=6?1:0;case"quarter":return Math.floor((r[El(t)]()+1)/4);case"month":return r[El(t)]();case"day":return r[Md(t)]();case"half-day":return r[Cc(t)]()/24;case"hour":return r[Cc(t)]();case"minute":return r[Id(t)]();case"second":return r[Td(t)]();case"millisecond":return r[Cd(t)]()}}function mm(n){return n?"getUTCFullYear":"getFullYear"}function El(n){return n?"getUTCMonth":"getMonth"}function Md(n){return n?"getUTCDate":"getDate"}function Cc(n){return n?"getUTCHours":"getHours"}function Id(n){return n?"getUTCMinutes":"getMinutes"}function Td(n){return n?"getUTCSeconds":"getSeconds"}function Cd(n){return n?"getUTCMilliseconds":"getMilliseconds"}function s4(n){return n?"setUTCFullYear":"setFullYear"}function cM(n){return n?"setUTCMonth":"setMonth"}function hM(n){return n?"setUTCDate":"setDate"}function pM(n){return n?"setUTCHours":"setHours"}function dM(n){return n?"setUTCMinutes":"setMinutes"}function fM(n){return n?"setUTCSeconds":"setSeconds"}function gM(n){return n?"setUTCMilliseconds":"setMilliseconds"}function vM(n){if(!xy(n))return Tt(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function yM(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var Rl=wv;function _m(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&hi(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=e==="time",s=n instanceof Date;if(a||s){var l=a?Oi(n):n;if(isNaN(+l)){if(s)return"-"}else return Sd(l,r,t)}if(e==="ordinal")return pp(n)?i(n):ye(n)&&o(n)?n+"":"-";var u=vo(n);return o(u)?vM(u):pp(n)?i(n):typeof n=="boolean"?n+"":"-"}var mM=["a","b","c","d","e","f","g"],xm=function(n,e){return"{"+n+(e??"")+"}"};function _M(n,e,t){ht(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=mM[o];n=n.replace(xm(a),xm(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];n=n.replace(xm(mM[l],s),t?Kn(u):u)}return n}function l4(n,e,t){return R(e,function(r,i){n=n.replace("{"+i+"}",r)}),n}function u4(n,e){var t=Tt(n)?{color:n,extraCssText:e}:n||{},r=t.color,i=t.type;e=t.extraCssText;var o=t.renderMode||"html";if(!r)return"";if(o==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Kn(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Kn(r)+";"+(e||"")+'"></span>';var a=t.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function _s(n,e){return e=e||"transparent",Tt(n)?n:Vt(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function Ad(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var kd=R,xM=["left","right","top","bottom","width","height"],xs=[["width","left","right"],["height","top","bottom"]];function bm(n,e,t,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),h=e.childAt(u+1),d=h&&h.getBoundingRect(),f,g;if(n==="horizontal"){var y=c.width+(d?-d.x+c.x:0);f=o+y,f>r||l.newline?(o=0,f=y,a+=s+t,s=c.height):s=Math.max(s,c.height)}else{var _=c.height+(d?-d.y+c.y:0);g=a+_,g>i||l.newline?(o+=s+t,a=0,g=_,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),n==="horizontal"?o=f+t:a=g+t)})}var bs=bm;qt(bm,"vertical"),qt(bm,"horizontal");function c4(n,e,t){var r=e.width,i=e.height,o=Mt(n.left,r),a=Mt(n.top,i),s=Mt(n.right,r),l=Mt(n.bottom,i);return(isNaN(o)||isNaN(parseFloat(n.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(n.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=i),t=Rl(t||0),{width:Math.max(s-o-t[1]-t[3],0),height:Math.max(l-a-t[0]-t[2],0)}}function dn(n,e,t){t=Rl(t||0);var r=e.width,i=e.height,o=Mt(n.left,r),a=Mt(n.top,i),s=Mt(n.right,r),l=Mt(n.bottom,i),u=Mt(n.width,r),c=Mt(n.height,i),h=t[2]+t[0],d=t[1]+t[3],f=n.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-h-a),f!=null&&(isNaN(u)&&isNaN(c)&&(f>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-h),n.left||n.right){case"center":o=r/2-u/2-t[3];break;case"right":o=r-u-d;break}switch(n.top||n.bottom){case"middle":case"center":a=i/2-c/2-t[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var g=new Qt(o+t[3],a+t[0],u,c);return g.margin=t,g}function Dd(n,e,t,r,i,o){var a=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(o=o||n,o.x=n.x,o.y=n.y,!a&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new Qt(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var h=dn(Ft({width:u.width,height:u.height},e),t,r),d=a?h.x-u.x:0,f=s?h.y-u.y:0;return l==="raw"?(o.x=d,o.y=f):(o.x+=d,o.y+=f),o===n&&n.markRedraw(),!0}function h4(n,e){return n[xs[e][0]]!=null||n[xs[e][1]]!=null&&n[xs[e][2]]!=null}function Ac(n){var e=n.layoutMode||n.constructor.layoutMode;return Vt(e)?e:e?{type:e}:null}function ca(n,e,t){var r=t&&t.ignoreSize;!ht(r)&&(r=[r,r]);var i=a(xs[0],0),o=a(xs[1],1);u(xs[0],n,i),u(xs[1],n,o);function a(c,h){var d={},f=0,g={},y=0,_=2;if(kd(c,function(x){g[x]=n[x]}),kd(c,function(x){s(e,x)&&(d[x]=g[x]=e[x]),l(d,x)&&f++,l(g,x)&&y++}),r[h])return l(e,c[1])?g[c[2]]=null:l(e,c[2])&&(g[c[1]]=null),g;if(y===_||!f)return g;if(f>=_)return d;for(var v=0;v<c.length;v++){var p=c[v];if(!s(d,p)&&s(n,p)){d[p]=n[p];break}}return d}function s(c,h){return c.hasOwnProperty(h)}function l(c,h){return c[h]!=null&&c[h]!=="auto"}function u(c,h,d){kd(c,function(f){h[f]=d[f]})}}function Ol(n){return bM({},n)}function bM(n,e){return e&&n&&kd(xM,function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}var p4=de(),le=function(n){Q(e,n);function e(t,r,i){var o=n.call(this,t,r,i)||this;return o.uid=Ll("ec_cpt_model"),o}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,r){var i=Ac(this),o=i?Ol(t):{},a=r.getTheme();Yt(t,a.get(this.mainType)),Yt(t,this.getDefaultOption()),i&&ca(t,o,i)},e.prototype.mergeOption=function(t,r){Yt(this.option,t,!0);var i=Ac(this);i&&ca(this.option,t,i)},e.prototype.optionUpdated=function(t,r){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!nV(t))return t.defaultOption;var r=p4(this);if(!r.defaultOption){for(var i=[],o=t;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Yt(s,i[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var i=t+"Index",o=t+"Id";return lc(this.ecModel,t,{index:this.get(i,!0),id:this.get(o,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(ke);R2(le,ke),Xp(le),$B(le),QB(le,d4);function d4(n){var e=[];return R(le.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=pt(e,function(t){return zi(t).main}),n!=="dataset"&&te(e,"dataset")<=0&&e.unshift("dataset"),e}var wM="";typeof navigator<"u"&&(wM=navigator.platform||"");var zl="rgba(0, 0, 0, 0.2)";const f4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:wM.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var wm=Lt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),jr="original",Fn="arrayRows",Hr="objectRows",ji="keyedColumns",So="typedArray",SM="unknown",Hi="column",Vl="row",Pn={Must:1,Might:2,Not:3},MM=de();function g4(n){MM(n).datasetMap=Lt()}function IM(n,e,t){var r={},i=Mm(e);if(!i||!n)return r;var o=[],a=[],s=e.ecModel,l=MM(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,c,h;n=n.slice(),R(n,function(y,_){var v=Vt(y)?y:n[_]={name:y};v.type==="ordinal"&&c==null&&(c=_,h=g(v)),r[v.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});R(n,function(y,_){var v=y.name,p=g(y);if(c==null){var x=d.valueWayDim;f(r[v],x,p),f(a,x,p),d.valueWayDim+=p}else if(c===_)f(r[v],0,p),f(o,0,p);else{var x=d.categoryWayDim;f(r[v],x,p),f(a,x,p),d.categoryWayDim+=p}});function f(y,_,v){for(var p=0;p<v;p++)y.push(_+p)}function g(y){var _=y.dimsDef;return _?_.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function Sm(n,e,t){var r={},i=Mm(n);if(!i)return r;var o=e.sourceFormat,a=e.dimensionsDefine,s;(o===Hr||o===ji)&&R(a,function(c,h){(Vt(c)?c.name:c)==="name"&&(s=h)});var l=function(){for(var c={},h={},d=[],f=0,g=Math.min(5,t);f<g;f++){var y=CM(e.data,o,e.seriesLayoutBy,a,e.startIndex,f);d.push(y);var _=y===Pn.Not;if(_&&c.v==null&&f!==s&&(c.v=f),(c.n==null||c.n===c.v||!_&&d[c.n]===Pn.Not)&&(c.n=f),v(c)&&d[c.n]!==Pn.Not)return c;_||(y===Pn.Might&&h.v==null&&f!==s&&(h.v=f),(h.n==null||h.n===h.v)&&(h.n=f))}function v(p){return p.v!=null&&p.n!=null}return v(c)?c:v(h)?h:null}();if(l){r.value=[l.v];var u=s??l.n;r.itemName=[u],r.seriesName=[u]}return r}function Mm(n){var e=n.get("data",!0);if(!e)return lc(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},an).models[0]}function v4(n){return!n.get("transform",!0)&&!n.get("fromTransformResult",!0)?[]:lc(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},an).models}function TM(n,e){return CM(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,e)}function CM(n,e,t,r,i,o){var a,s=5;if(Zn(n))return Pn.Not;var l,u;if(r){var c=r[o];Vt(c)?(l=c.name,u=c.type):Tt(c)&&(l=c)}if(u!=null)return u==="ordinal"?Pn.Must:Pn.Not;if(e===Fn){var h=n;if(t===Vl){for(var d=h[o],f=0;f<(d||[]).length&&f<s;f++)if((a=b(d[i+f]))!=null)return a}else for(var f=0;f<h.length&&f<s;f++){var g=h[i+f];if(g&&(a=b(g[o]))!=null)return a}}else if(e===Hr){var y=n;if(!l)return Pn.Not;for(var f=0;f<y.length&&f<s;f++){var _=y[f];if(_&&(a=b(_[l]))!=null)return a}}else if(e===ji){var v=n;if(!l)return Pn.Not;var d=v[l];if(!d||Zn(d))return Pn.Not;for(var f=0;f<d.length&&f<s;f++)if((a=b(d[f]))!=null)return a}else if(e===jr)for(var p=n,f=0;f<p.length&&f<s;f++){var _=p[f],x=_l(_);if(!ht(x))return Pn.Not;if((a=b(x[o]))!=null)return a}function b(S){var M=Tt(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return M?Pn.Might:Pn.Not;if(M&&S!=="-")return Pn.Must}return Pn.Not}var Im=Lt();function y4(n,e){Bt(Im.get(n)==null&&e),Im.set(n,e)}function m4(n,e,t){var r=Im.get(e);if(!r)return t;var i=r(n);if(!i)return t;if(process.env.NODE_ENV!=="production")for(var o=0;o<i.length;o++)Bt(xl(i[o]));return t.concat(i)}var AM=de(),_4=de(),Tm=function(){function n(){}return n.prototype.getColorFromPalette=function(e,t,r){var i=Ne(this.get("color",!0)),o=this.get("colorLayer",!0);return kM(this,AM,i,o,e,t,r)},n.prototype.clearColorPalette=function(){b4(this,AM)},n}();function Cm(n,e,t,r){var i=Ne(n.get(["aria","decal","decals"]));return kM(n,_4,i,null,e,t,r)}function x4(n,e){for(var t=n.length,r=0;r<t;r++)if(n[r].length>e)return n[r];return n[t-1]}function kM(n,e,t,r,i,o,a){o=o||n;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=a==null||!r?t:x4(r,a);if(c=c||t,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function b4(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var Ld,kc,DM,Am="\0_ec_inner",LM=1,w4={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},S4={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Nd={};function M4(n){R(n,function(e,t){if(!le.hasClass(t)){var r=w4[t];r&&!Nd[r]&&(Vn("Component "+t+` is used but not imported.
67
+ import { `+r+` } from 'echarts/components';
68
+ echarts.use([`+r+"]);"),Nd[r]=!0)}})}var km=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,i,o,a,s){o=o||{},this.option=null,this._theme=new ke(o),this._locale=new ke(a),this._optionManager=s},e.prototype.setOption=function(t,r,i){process.env.NODE_ENV!=="production"&&(Bt(t!=null,"option is null/undefined"),Bt(t[Am]!==LM,"please use chart.getOption()"));var o=EM(r);this._optionManager.setOption(t,i,o),this._resetOption(null,o)},e.prototype.resetOption=function(t,r){return this._resetOption(t,EM(r))},e.prototype._resetOption=function(t,r){var i=!1,o=this._optionManager;if(!t||t==="recreate"){var a=o.mountOption(t==="recreate");process.env.NODE_ENV!=="production"&&M4(a),!this.option||t==="recreate"?DM(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=o.getMediaOption(this);l.length&&R(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Lt(),u=r&&r.replaceMergeMainTypeMap;g4(this),R(t,function(h,d){h!=null&&(le.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Wt(h):Yt(i[d],h,!0))}),u&&u.each(function(h,d){le.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),le.topologicalTravel(s,le.getAllClassMainTypes(),c,this);function c(h){var d=m4(this,h,Ne(t[h])),f=o.get(h),g=f?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=A2(f,d,g);Zz(y,h,le),i[h]=null,o.set(h,null),a.set(h,0);var _=[],v=[],p=0,x,b;R(y,function(S,M){var I=S.existing,C=S.newOption;if(!C)I&&(I.mergeOption({},this),I.optionUpdated({},!1));else{var A=h==="series",D=le.getClass(h,S.keyInfo.subType,!A);if(!D){if(process.env.NODE_ENV!=="production"){var N=S.keyInfo.subType,L=S4[N];Nd[N]||(Nd[N]=!0,Vn(L?"Series "+N+` is used but not imported.
69
+ import { `+L+` } from 'echarts/charts';
70
+ echarts.use([`+L+"]);":"Unknown series "+N))}return}if(h==="tooltip"){if(x){process.env.NODE_ENV!=="production"&&(b||(Xe("Currently only one tooltip component is allowed."),b=!0));return}x=!0}if(I&&I.constructor===D)I.name=S.keyInfo.name,I.mergeOption(C,this),I.optionUpdated(C,!1);else{var E=lt({componentIndex:M},S.keyInfo);I=new D(C,this,this,E),lt(I,E),S.brandNew&&(I.__requireNewView=!0),I.init(C,this,this),I.optionUpdated(null,!0)}}I?(_.push(I.option),v.push(I),p++):(_.push(void 0),v.push(void 0))},this),i[h]=_,o.set(h,v),a.set(h,p),h==="series"&&Ld(this)}this._seriesIndices||Ld(this)},e.prototype.getOption=function(){var t=Wt(this.option);return R(t,function(r,i){if(le.hasClass(i)){for(var o=Ne(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!xl(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,t[i]=o}}),delete t[Am],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var i=this._componentsMap.get(t);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},e.prototype.queryComponents=function(t){var r=t.mainType;if(!r)return[];var i=t.index,o=t.id,a=t.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],R(Ne(i),function(u){s[u]&&l.push(s[u])})):o!=null?l=NM("id",o,s):a!=null?l=NM("name",a,s):l=Me(s,function(u){return!!u}),PM(l,t)},e.prototype.findComponents=function(t){var r=t.query,i=t.mainType,o=s(r),a=o?this.queryComponents(o):Me(this._componentsMap.get(i),function(u){return!!u});return l(PM(a,t));function s(u){var c=i+"Index",h=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[h]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[h],name:u[d]}:null}function l(u){return t.filter?Me(u,t.filter):u}},e.prototype.eachComponent=function(t,r,i){var o=this._componentsMap;if(Et(t)){var a=r,s=t;o.each(function(h,d){for(var f=0;h&&f<h.length;f++){var g=h[f];g&&s.call(a,d,g,g.componentIndex)}})}else for(var l=Tt(t)?o.get(t):Vt(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(i,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var r=pn(t,null);return Me(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Me(this._componentsMap.get("series"),function(r){return!!r&&r.subType===t})},e.prototype.getSeries=function(){return Me(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,r){kc(this),R(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(r,o,i)},this)},e.prototype.eachRawSeries=function(t,r){R(this._componentsMap.get("series"),function(i){i&&t.call(r,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(t,r,i){kc(this),R(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===t&&r.call(i,a,o)},this)},e.prototype.eachRawSeriesByType=function(t,r,i){return R(this.getSeriesByType(t),r,i)},e.prototype.isSeriesFiltered=function(t){return kc(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,r){kc(this);var i=[];R(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];t.call(r,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=Lt(i)},e.prototype.restoreData=function(t){Ld(this);var r=this._componentsMap,i=[];r.each(function(o,a){le.hasClass(a)&&i.push(a)}),le.topologicalTravel(i,le.getAllClassMainTypes(),function(o){R(r.get(o),function(a){a&&(o!=="series"||!I4(a,t))&&a.restoreData()})})},e.internalField=function(){Ld=function(t){var r=t._seriesIndices=[];R(t._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),t._seriesIndicesMap=Lt(r)},kc=function(t){if(process.env.NODE_ENV!=="production"&&!t._seriesIndices)throw new Error("Option should contains series.")},DM=function(t,r){t.option={},t.option[Am]=LM,t._componentsMap=Lt({series:[]}),t._componentsCount=Lt();var i=r.aria;Vt(i)&&i.enabled==null&&(i.enabled=!0),T4(r,t._theme.option),Yt(r,f4,!1),t._mergeOption(r,null)}}(),e}(ke);function I4(n,e){if(e){var t=e.seriesIndex,r=e.seriesId,i=e.seriesName;return t!=null&&n.componentIndex!==t||r!=null&&n.id!==r||i!=null&&n.name!==i}}function T4(n,e){var t=n.color&&!n.colorLayer;R(e,function(r,i){i==="colorLayer"&&t||le.hasClass(i)||(typeof r=="object"?n[i]=n[i]?Yt(n[i],r,!1):Wt(r):n[i]==null&&(n[i]=r))})}function NM(n,e,t){if(ht(e)){var r=Lt();return R(e,function(o){if(o!=null){var a=pn(o,null);a!=null&&r.set(o,!0)}}),Me(t,function(o){return o&&r.get(o[n])})}else{var i=pn(e,null);return Me(t,function(o){return o&&i!=null&&o[n]===i})}}function PM(n,e){return e.hasOwnProperty("subType")?Me(n,function(t){return t&&t.subType===e.subType}):n}function EM(n){var e=Lt();return n&&R(Ne(n.replaceMerge),function(t){process.env.NODE_ENV!=="production"&&Bt(le.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)}),{replaceMergeMainTypeMap:e}}nn(km,Tm);var C4=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],RM=function(){function n(e){R(C4,function(t){this[t]=At(e[t],e)},this)}return n}(),Dm={},Bl=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(e,t){var r=[];R(Dm,function(i,o){var a=i.create(e,t);r=r.concat(a||[])}),this._coordinateSystems=r},n.prototype.update=function(e,t){R(this._coordinateSystems,function(r){r.update&&r.update(e,t)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(e,t){Dm[e]=t},n.get=function(e){return Dm[e]},n}(),A4=/^(min|max)?(.+)$/,k4=function(){function n(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return n.prototype.setOption=function(e,t,r){e&&(R(Ne(e.series),function(a){a&&a.data&&Zn(a.data)&&fp(a.data)}),R(Ne(e.dataset),function(a){a&&a.source&&Zn(a.source)&&fp(a.source)})),e=Wt(e);var i=this._optionBackup,o=D4(e,t,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},n.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Wt(e?t.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(e){var t,r=this._timelineOptions;if(r.length){var i=e.getComponent("timeline");i&&(t=Wt(r[i.getCurrentIndex()]))}return t},n.prototype.getMediaOption=function(e){var t=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,u=i.length;l<u;l++)L4(i[l].query,t,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!P4(a,this._currentMediaIndices)&&(s=pt(a,function(c){return Wt(c===-1?o.option:i[c].option)})),this._currentMediaIndices=a,s},n}();function D4(n,e,t){var r=[],i,o,a=n.baseOption,s=n.timeline,l=n.options,u=n.media,c=!!n.media,h=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((h||c)&&(n.options=n.media=null),o=n),c&&(ht(u)?R(u,function(f){process.env.NODE_ENV!=="production"&&f&&!f.option&&Vt(f.query)&&Vt(f.query.option)&&Vn("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),f&&f.option&&(f.query?r.push(f):i||(i=f))}):process.env.NODE_ENV!=="production"&&Vn("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(o),R(l,function(f){return d(f)}),R(r,function(f){return d(f.option)});function d(f){R(e,function(g){g(f,t)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function L4(n,e,t){var r={width:e,height:t,aspectratio:e/t},i=!0;return R(n,function(o,a){var s=a.match(A4);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();N4(r[u],o,l)||(i=!1)}}),i}function N4(n,e,t){return t==="min"?n>=e:t==="max"?n<=e:n===e}function P4(n,e){return n.join(",")===e.join(",")}var Ur=R,Dc=Vt,OM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lm(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=OM.length;t<r;t++){var i=OM[t],o=e.normal,a=e.emphasis;o&&o[i]&&(process.env.NODE_ENV!=="production"&&on("itemStyle.normal."+i,i),n[i]=n[i]||{},n[i].normal?Yt(n[i].normal,o[i]):n[i].normal=o[i],o[i]=null),a&&a[i]&&(process.env.NODE_ENV!=="production"&&on("itemStyle.emphasis."+i,"emphasis."+i),n[i]=n[i]||{},n[i].emphasis?Yt(n[i].emphasis,a[i]):n[i].emphasis=a[i],a[i]=null)}}function Gn(n,e,t){if(n&&n[e]&&(n[e].normal||n[e].emphasis)){var r=n[e].normal,i=n[e].emphasis;r&&(process.env.NODE_ENV!=="production"&&gi("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),t?(n[e].normal=n[e].emphasis=null,Ft(n[e],r)):n[e]=r),i&&(process.env.NODE_ENV!=="production"&&gi(e+".emphasis has been changed to emphasis."+e+" since 4.0"),n.emphasis=n.emphasis||{},n.emphasis[e]=i,i.focus&&(n.emphasis.focus=i.focus),i.blurScope&&(n.emphasis.blurScope=i.blurScope))}}function Lc(n){Gn(n,"itemStyle"),Gn(n,"lineStyle"),Gn(n,"areaStyle"),Gn(n,"label"),Gn(n,"labelLine"),Gn(n,"upperLabel"),Gn(n,"edgeLabel")}function sn(n,e){var t=Dc(n)&&n[e],r=Dc(t)&&t.textStyle;if(r){process.env.NODE_ENV!=="production"&&gi("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,o=C2.length;i<o;i++){var a=C2[i];r.hasOwnProperty(a)&&(t[a]=r[a])}}}function Xr(n){n&&(Lc(n),sn(n,"label"),n.emphasis&&sn(n.emphasis,"label"))}function E4(n){if(Dc(n)){Lm(n),Lc(n),sn(n,"label"),sn(n,"upperLabel"),sn(n,"edgeLabel"),n.emphasis&&(sn(n.emphasis,"label"),sn(n.emphasis,"upperLabel"),sn(n.emphasis,"edgeLabel"));var e=n.markPoint;e&&(Lm(e),Xr(e));var t=n.markLine;t&&(Lm(t),Xr(t));var r=n.markArea;r&&Xr(r);var i=n.data;if(n.type==="graph"){i=i||n.nodes;var o=n.links||n.edges;if(o&&!Zn(o))for(var a=0;a<o.length;a++)Xr(o[a]);R(n.categories,function(u){Lc(u)})}if(i&&!Zn(i))for(var a=0;a<i.length;a++)Xr(i[a]);if(e=n.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)Xr(s[a]);if(t=n.markLine,t&&t.data)for(var l=t.data,a=0;a<l.length;a++)ht(l[a])?(Xr(l[a][0]),Xr(l[a][1])):Xr(l[a]);n.type==="gauge"?(sn(n,"axisLabel"),sn(n,"title"),sn(n,"detail")):n.type==="treemap"?(Gn(n.breadcrumb,"itemStyle"),R(n.levels,function(u){Lc(u)})):n.type==="tree"&&Lc(n.leaves)}}function Mo(n){return ht(n)?n:n?[n]:[]}function zM(n){return(ht(n)?n[0]:n)||{}}function R4(n,e){Ur(Mo(n.series),function(r){Dc(r)&&E4(r)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ur(t,function(r){Ur(Mo(n[r]),function(i){i&&(sn(i,"axisLabel"),sn(i.axisPointer,"label"))})}),Ur(Mo(n.parallel),function(r){var i=r&&r.parallelAxisDefault;sn(i,"axisLabel"),sn(i&&i.axisPointer,"label")}),Ur(Mo(n.calendar),function(r){Gn(r,"itemStyle"),sn(r,"dayLabel"),sn(r,"monthLabel"),sn(r,"yearLabel")}),Ur(Mo(n.radar),function(r){sn(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name,process.env.NODE_ENV!=="production"&&gi("name property in radar component has been changed to axisName")),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap,process.env.NODE_ENV!=="production"&&gi("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Ur(r.indicator,function(i){i.text&&on("text","name","radar.indicator")})}),Ur(Mo(n.geo),function(r){Dc(r)&&(Xr(r),Ur(Mo(r.regions),function(i){Xr(i)}))}),Ur(Mo(n.timeline),function(r){Xr(r),Gn(r,"label"),Gn(r,"itemStyle"),Gn(r,"controlStyle",!0);var i=r.data;ht(i)&&R(i,function(o){Vt(o)&&(Gn(o,"label"),Gn(o,"itemStyle"))})}),Ur(Mo(n.toolbox),function(r){Gn(r,"iconStyle"),Ur(r.feature,function(i){Gn(i,"iconStyle")})}),sn(zM(n.axisPointer),"label"),sn(zM(n.tooltip).axisPointer,"label")}function O4(n,e){for(var t=e.split(","),r=n,i=0;i<t.length&&(r=r&&r[t[i]],r!=null);i++);return r}function z4(n,e,t,r){for(var i=e.split(","),o=n,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=t)}function VM(n){n&&R(V4,function(e){e[0]in n&&!(e[1]in n)&&(n[e[1]]=n[e[0]])})}var V4=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],B4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Nm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Nc(n){var e=n&&n.itemStyle;if(e)for(var t=0;t<Nm.length;t++){var r=Nm[t][1],i=Nm[t][0];e[r]!=null&&(e[i]=e[r],process.env.NODE_ENV!=="production"&&on(r,i))}}function BM(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&on("label.margin","label.edgeDistance","pie"),n.edgeDistance=n.margin)}function FM(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay,process.env.NODE_ENV!=="production"&&on("downplay","blur","sunburst"))}function F4(n){n&&n.focusNodeAdjacency!=null&&(n.emphasis=n.emphasis||{},n.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&on("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),n.emphasis.focus="adjacency"))}function GM(n,e){if(n)for(var t=0;t<n.length;t++)e(n[t]),n[t]&&GM(n[t].children,e)}function WM(n,e){R4(n,e),n.series=Ne(n.series),R(n.series,function(t){if(Vt(t)){var r=t.type;if(r==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow,process.env.NODE_ENV!=="production"&&on("clipOverflow","clip","line"));else if(r==="pie"||r==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise,process.env.NODE_ENV!=="production"&&on("clockWise","clockwise")),BM(t.label);var i=t.data;if(i&&!Zn(i))for(var o=0;o<i.length;o++)BM(i[o]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&on("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if(r==="gauge"){var a=O4(t,"pointer.color");a!=null&&z4(t,"itemStyle.color",a)}else if(r==="bar"){Nc(t),Nc(t.backgroundStyle),Nc(t.emphasis);var i=t.data;if(i&&!Zn(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(Nc(i[o]),Nc(i[o]&&i[o].emphasis))}else if(r==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s,process.env.NODE_ENV!=="production"&&on("highlightPolicy","emphasis.focus","sunburst"))),FM(t),GM(t.data,FM)}else r==="graph"||r==="sankey"?F4(t):r==="map"&&(t.mapType&&!t.map&&(process.env.NODE_ENV!=="production"&&on("mapType","map","map"),t.map=t.mapType),t.mapLocation&&(process.env.NODE_ENV!=="production"&&gi("`mapLocation` is not used anymore."),Ft(t,t.mapLocation)));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&on("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),VM(t)}}),n.dataRange&&(n.visualMap=n.dataRange),R(B4,function(t){var r=n[t];r&&(ht(r)||(r=[r]),R(r,function(i){VM(i)}))})}function G4(n){var e=Lt();n.eachSeries(function(t){var r=t.get("stack");if(r){var i=e.get(r)||e.set(r,[]),o=t.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:t};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),e.each(W4)}function W4(n){R(n,function(e,t){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,c,h){var d=a.get(e.stackedDimension,h);if(isNaN(d))return i;var f,g;s?g=a.getRawIndex(h):f=a.get(e.stackedByDimension,h);for(var y=NaN,_=t-1;_>=0;_--){var v=n[_];if(s||(g=v.data.rawIndexOf(v.stackedByDimension,f)),g>=0){var p=v.data.getByRawIndex(v.stackResultDimension,g);if(l==="all"||l==="positive"&&p>0||l==="negative"&&p<0||l==="samesign"&&d>=0&&p>0||l==="samesign"&&d<=0&&p<0){d=Pz(d,p),y=p;break}}}return r[0]=d,r[1]=y,r})})}var Pd=function(){function n(e){this.data=e.data||(e.sourceFormat===ji?{}:[]),this.sourceFormat=e.sourceFormat||SM,this.seriesLayoutBy=e.seriesLayoutBy||Hi,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;r<t.length;r++){var i=t[r];i.type==null&&TM(this,r)===Pn.Must&&(i.type="ordinal")}}return n}();function Pm(n){return n instanceof Pd}function Em(n,e,t){t=t||jM(n);var r=e.seriesLayoutBy,i=H4(n,t,r,e.sourceHeader,e.dimensions),o=new Pd({data:n,sourceFormat:t,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Wt(e)});return o}function Rm(n){return new Pd({data:n,sourceFormat:Zn(n)?So:jr})}function j4(n){return new Pd({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:Wt(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})}function jM(n){var e=SM;if(Zn(n))e=So;else if(ht(n)){n.length===0&&(e=Fn);for(var t=0,r=n.length;t<r;t++){var i=n[t];if(i!=null){if(ht(i)||Zn(i)){e=Fn;break}else if(Vt(i)){e=Hr;break}}}}else if(Vt(n)){for(var o in n)if(kt(n,o)&&zn(n[o])){e=ji;break}}return e}function H4(n,e,t,r,i){var o,a;if(!n)return{dimensionsDefine:HM(i),startIndex:a,dimensionsDetectedCount:o};if(e===Fn){var s=n;r==="auto"||r==null?UM(function(u){u!=null&&u!=="-"&&(Tt(u)?a==null&&(a=1):a=0)},t,s,10):a=ye(r)?r:r?1:0,!i&&a===1&&(i=[],UM(function(u,c){i[c]=u!=null?u+"":""},t,s,1/0)),o=i?i.length:t===Vl?s.length:s[0]?s[0].length:null}else if(e===Hr)i||(i=U4(n));else if(e===ji)i||(i=[],R(n,function(u,c){i.push(c)}));else if(e===jr){var l=_l(n[0]);o=ht(l)&&l.length||1}else e===So&&process.env.NODE_ENV!=="production"&&Bt(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:HM(i),dimensionsDetectedCount:o}}function U4(n){for(var e=0,t;e<n.length&&!(t=n[e++]););if(t)return ue(t)}function HM(n){if(n){var e=Lt();return pt(n,function(t,r){t=Vt(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=e.get(i.name);return o?i.name+="-"+o.count++:e.set(i.name,{count:1}),i})}}function UM(n,e,t,r){if(e===Vl)for(var i=0;i<t.length&&i<r;i++)n(t[i]?t[i][0]:null,i);else for(var o=t[0]||[],i=0;i<o.length&&i<r;i++)n(o[i],i)}function XM(n){var e=n.sourceFormat;return e===Hr||e===ji}var ws,Ss,Ms,ZM,qM,KM=function(){function n(e,t){var r=Pm(e)?e:Rm(e);this._source=r;var i=this._data=r.data;if(r.sourceFormat===So){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=i}qM(this,i,r)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(e,t){},n.prototype.appendData=function(e){},n.prototype.clean=function(){},n.protoInitialize=function(){var e=n.prototype;e.pure=!1,e.persistent=!0}(),n.internalField=function(){var e;qM=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,h=l.startIndex,d=l.dimensionsDefine,f=ZM[zm(u,c)];if(process.env.NODE_ENV!=="production"&&Bt(f,"Invalide sourceFormat: "+u),lt(a,f),u===So)a.getItem=t,a.count=i,a.fillStorage=r;else{var g=JM(u,c);a.getItem=At(g,null,s,h,d);var y=QM(u,c);a.count=At(y,null,s,h,d)}};var t=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,h=0;h<u;h++)s[h]=l[c+h];return s},r=function(a,s,l,u){for(var c=this._data,h=this._dimSize,d=0;d<h;d++){for(var f=u[d],g=f[0]==null?1/0:f[0],y=f[1]==null?-1/0:f[1],_=s-a,v=l[d],p=0;p<_;p++){var x=c[p*h+d];v[a+p]=x,x<g&&(g=x),x>y&&(y=x)}f[0]=g,f[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};ZM=(e={},e[Fn+"_"+Hi]={pure:!0,appendData:o},e[Fn+"_"+Vl]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Hr]={pure:!0,appendData:o},e[ji]={pure:!0,appendData:function(a){var s=this._data;R(a,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},e[jr]={appendData:o},e[So]={persistent:!1,pure:!0,appendData:function(a){process.env.NODE_ENV!=="production"&&Bt(Zn(a),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}}(),n}(),YM=function(n,e,t,r){return n[r]},X4=(ws={},ws[Fn+"_"+Hi]=function(n,e,t,r){return n[r+e]},ws[Fn+"_"+Vl]=function(n,e,t,r,i){r+=e;for(var o=i||[],a=n,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},ws[Hr]=YM,ws[ji]=function(n,e,t,r,i){for(var o=i||[],a=0;a<t.length;a++){var s=t[a].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=n[s];o[a]=l?l[r]:null}return o},ws[jr]=YM,ws);function JM(n,e){var t=X4[zm(n,e)];return process.env.NODE_ENV!=="production"&&Bt(t,'Do not support get item on "'+n+'", "'+e+'".'),t}var $M=function(n,e,t){return n.length},Z4=(Ss={},Ss[Fn+"_"+Hi]=function(n,e,t){return Math.max(0,n.length-e)},Ss[Fn+"_"+Vl]=function(n,e,t){var r=n[0];return r?Math.max(0,r.length-e):0},Ss[Hr]=$M,Ss[ji]=function(n,e,t){var r=t[0].name;if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;var i=n[r];return i?i.length:0},Ss[jr]=$M,Ss);function QM(n,e){var t=Z4[zm(n,e)];return process.env.NODE_ENV!=="production"&&Bt(t,'Do not support count on "'+n+'", "'+e+'".'),t}var Om=function(n,e,t){return n[e]},q4=(Ms={},Ms[Fn]=Om,Ms[Hr]=function(n,e,t){return n[t]},Ms[ji]=Om,Ms[jr]=function(n,e,t){var r=_l(n);return r instanceof Array?r[e]:r},Ms[So]=Om,Ms);function tI(n){var e=q4[n];return process.env.NODE_ENV!=="production"&&Bt(e,'Do not support get value on "'+n+'".'),e}function zm(n,e){return n===Fn?n+"_"+e:n}function Fl(n,e,t){if(n){var r=n.getRawDataItem(e);if(r!=null){var i=n.getStore(),o=i.getSource().sourceFormat;if(t!=null){var a=n.getDimensionIndex(t),s=i.getDimensionProperty(a);return tI(o)(r,a,s)}else{var l=r;return o===jr&&(l=_l(r)),l}}}}var K4=/\{@(.+?)\}/g,Ed=function(){function n(){}return n.prototype.getDataParams=function(e,t){var r=this.getData(t),i=this.getRawValue(e,t),o=r.getRawIndex(e),a=r.getName(e),s=r.getRawDataItem(e),l=r.getItemVisual(e,"style"),u=l&&l[r.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,d=h==="series",f=r.userOutput&&r.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:o,data:s,dataType:t,value:i,color:u,borderColor:c,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,t,r,i,o,a){t=t||"normal";var s=this.getData(r),l=this.getDataParams(e,r);if(a&&(l.value=a.interpolatedValue),i!=null&&ht(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(e);o=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Et(o))return l.status=t,l.dimensionIndex=i,o(l);if(Tt(o)){var c=_M(o,l);return c.replace(K4,function(h,d){var f=d.length,g=d;g.charAt(0)==="["&&g.charAt(f-1)==="]"&&(g=+g.slice(1,f-1),process.env.NODE_ENV!=="production"&&isNaN(g)&&Vn("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var y=Fl(s,e,g);if(a&&ht(a.interpolatedValue)){var _=s.getDimensionIndex(g);_>=0&&(y=a.interpolatedValue[_])}return y!=null?y+"":""})}},n.prototype.getRawValue=function(e,t){return Fl(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function eI(n){var e,t;return Vt(n)?n.type?t=n:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Yn(n)):e=n,{text:e,frag:t}}function Pc(n){return new Y4(n)}var Y4=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(a!==l||s!==u)&&(o="reset");function c(p){return!(p>=1)&&(p=1),p}var h;(this._dirty||o==="reset")&&(this._dirty=!1,h=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(t?(process.env.NODE_ENV!=="production"&&Bt(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!=="production"&&Bt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,g=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(h||f<g)){var y=this._progress;if(ht(y))for(var _=0;_<y.length;_++)this._doProgress(y[_],f,g,l,u);else this._doProgress(y,f,g,l,u)}this._dueIndex=g;var v=this._settedOutputEnd!=null?this._settedOutputEnd:g;process.env.NODE_ENV!=="production"&&Bt(v>=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(e,t,r,i,o){nI.reset(t,r,i,o),this._callingProgress=e,this._callingProgress({start:t,end:r,count:r-t,next:nI.next},this.context)},n.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,r;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(r=t.forceFirstProgress,t=t.progress),ht(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&Bt(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},n}(),nI=function(){var n,e,t,r,i,o={reset:function(l,u,c,h){e=l,n=u,t=c,r=h,i=Math.ceil(r/t),o.next=t>1&&r>0?s:a}};return o;function a(){return e<n?e++:null}function s(){var l=e%i*t+Math.ceil(e/i),u=e>=n?null:l<r?l:e;return e++,u}}();function ha(n,e){var t=e&&e.type;return t==="ordinal"?n:(t==="time"&&!ye(n)&&n!=null&&n!=="-"&&(n=+Oi(n)),n==null||n===""?NaN:Number(n))}var J4=Lt({number:function(n){return parseFloat(n)},time:function(n){return+Oi(n)},trim:function(n){return Tt(n)?hi(n):n}});function rI(n){return J4.get(n)}var iI={lt:function(n,e){return n<e},lte:function(n,e){return n<=e},gt:function(n,e){return n>e},gte:function(n,e){return n>=e}},$4=function(){function n(e,t){if(!ye(t)){var r="";process.env.NODE_ENV!=="production"&&(r='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),Ie(r)}this._opFn=iI[e],this._rvalFloat=vo(t)}return n.prototype.evaluate=function(e){return ye(e)?this._opFn(e,this._rvalFloat):this._opFn(vo(e),this._rvalFloat)},n}(),oI=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=ye(e)?e:vo(e),i=ye(t)?t:vo(t),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=Tt(e),l=Tt(t);s&&(r=l?e:0),l&&(i=s?t:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},n}(),Q4=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=vo(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=vo(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function t6(n,e){return n==="eq"||n==="ne"?new Q4(n==="eq",e):kt(iI,n)?new $4(n,e):null}var e6=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return ha(e,t)},n}();function n6(n,e){var t=new e6,r=n.data,i=t.sourceFormat=n.sourceFormat,o=n.startIndex,a="";n.seriesLayoutBy!==Hi&&(process.env.NODE_ENV!=="production"&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ie(a));var s=[],l={},u=n.dimensionsDefine;if(u)R(u,function(y,_){var v=y.name,p={index:_,name:v,displayName:y.displayName};if(s.push(p),v!=null){var x="";kt(l,v)&&(process.env.NODE_ENV!=="production"&&(x='dimension name "'+v+'" duplicated.'),Ie(x)),l[v]=p}});else for(var c=0;c<n.dimensionsDetectedCount;c++)s.push({index:c});var h=JM(i,Hi);e.__isBuiltIn&&(t.getRawDataItem=function(y){return h(r,o,s,y)},t.getRawData=At(r6,null,n)),t.cloneRawData=At(i6,null,n);var d=QM(i,Hi);t.count=At(d,null,r,o,s);var f=tI(i);t.retrieveValue=function(y,_){var v=h(r,o,s,y);return g(v,_)};var g=t.retrieveValueFromItem=function(y,_){if(y!=null){var v=s[_];if(v)return f(y,_,v.name)}};return t.getDimensionInfo=At(o6,null,s,l),t.cloneAllDimensionInfo=At(a6,null,s),t}function r6(n){var e=n.sourceFormat;if(!Vm(e)){var t="";process.env.NODE_ENV!=="production"&&(t="`getRawData` is not supported in source format "+e),Ie(t)}return n.data}function i6(n){var e=n.sourceFormat,t=n.data;if(!Vm(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`cloneRawData` is not supported in source format "+e),Ie(r)}if(e===Fn){for(var i=[],o=0,a=t.length;o<a;o++)i.push(t[o].slice());return i}else if(e===Hr){for(var i=[],o=0,a=t.length;o<a;o++)i.push(lt({},t[o]));return i}}function o6(n,e,t){if(t!=null){if(ye(t)||!isNaN(t)&&!kt(e,t))return n[t];if(kt(e,t))return e[t]}}function a6(n){return Wt(n)}var aI=Lt();function s6(n){n=Wt(n);var e=n.type,t="";e||(process.env.NODE_ENV!=="production"&&(t="Must have a `type` when `registerTransform`."),Ie(t));var r=e.split(":");r.length!==2&&(process.env.NODE_ENV!=="production"&&(t='Name must include namespace like "ns:regression".'),Ie(t));var i=!1;r[0]==="echarts"&&(e=r[1],i=!0),n.__isBuiltIn=i,aI.set(e,n)}function l6(n,e,t){var r=Ne(n),i=r.length,o="";i||(process.env.NODE_ENV!=="production"&&(o="If `transform` declared, it should at least contain one transform."),Ie(o));for(var a=0,s=i;a<s;a++){var l=r[a];e=u6(l,e,t,i===1?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function u6(n,e,t,r){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),Ie(i)),Vt(n)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof n+"."),Ie(i));var o=n.type,a=aI.get(o);a||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+o+'".'),Ie(i));var s=pt(e,function(c){return n6(c,a)}),l=Ne(a.transform({upstream:s[0],upstreamList:s,config:Wt(n.config)}));if(process.env.NODE_ENV!=="production"&&n.print){var u=pt(l,function(c){var h=r!=null?" === pipe index: "+r:"";return["=== dataset index: "+t.datasetIndex+h+" ===","- transform result data:",Yn(c.data),"- transform result dimensions:",Yn(c.dimensions)].join(`
71
+ `)}).join(`
72
+ `);Vz(u)}return pt(l,function(c,h){var d="";Vt(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),Ie(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),Ie(d));var f=jM(c.data);Vm(f)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),Ie(d));var g,y=e[0];if(y&&h===0&&!c.dimensions){var _=y.startIndex;_&&(c.data=y.data.slice(0,_).concat(c.data)),g={seriesLayoutBy:Hi,sourceHeader:_,dimensions:y.metaRawOption.dimensions}}else g={seriesLayoutBy:Hi,sourceHeader:0,dimensions:c.dimensions};return Em(c.data,g,null)})}function Vm(n){return n===Fn||n===Hr}var Rd="undefined",c6=typeof Uint32Array===Rd?Array:Uint32Array,h6=typeof Uint16Array===Rd?Array:Uint16Array,sI=typeof Int32Array===Rd?Array:Int32Array,lI=typeof Float64Array===Rd?Array:Float64Array,uI={float:lI,int:sI,ordinal:Array,number:Array,time:lI},Bm;function Gl(n){return n>65535?c6:h6}function Wl(){return[1/0,-1/0]}function p6(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function cI(n,e,t,r,i){var o=uI[t||"float"];if(i){var a=n[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];n[e]=l}}else n[e]=new o(r)}var Fm=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Lt()}return n.prototype.initData=function(e,t,r){process.env.NODE_ENV!=="production"&&Bt(Et(e.getItem)&&Et(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),o=this.defaultDimValueGetter=Bm[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[];var a=XM(i);this._dimensions=pt(t,function(s){return process.env.NODE_ENV!=="production"&&a&&Bt(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(e,t){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(e);if(o!=null){if(i[o].type===t)return o}else o=i.length;return i[o]={type:t},r.set(e,o),this._chunks[o]=new uI[t||"float"](this._rawCount),this._rawExtent[o]=Wl(),o},n.prototype.collectOrdinalMeta=function(e,t){var r=this._chunks[e],i=this._dimensions[e],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[e]=Wl());for(var l=o[e],u=a;u<s;u++){var c=r[u]=t.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=t,i.ordinalOffset=s,i.type="ordinal"},n.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],r=t.ordinalMeta;return r},n.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},n.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&Bt(!this._indices,"appendData can only be called on raw data.");var t=this._provider,r=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},n.prototype.appendValues=function(e,t){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<o;u++){var c=i[u];cI(r,u,c.type,l,!0)}for(var h=[],d=s;d<l;d++)for(var f=d-s,g=0;g<o;g++){var c=i[g],y=Bm.arrayRows.call(this,e[f]||h,c.property,f,g);r[g][d]=y;var _=a[g];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=pt(a,function(p){return p.property}),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=Wl()),cI(o,c,h.type,t,r)}if(i.fillStorage)i.fillStorage(e,t,o,l);else for(var d=[],f=e;f<t;f++){d=i.getItem(f,d);for(var g=0;g<s;g++){var y=o[g],_=this._dimValueGetter(d,u[g],f,g);y[f]=_;var v=l[g];_<v[0]&&(v[0]=_),_>v[1]&&(v[1]=_)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(t)]:NaN},n.prototype.getValues=function(e,t){var r=[],i=[];if(t==null){t=e,e=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=e;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],t));return r},n.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var r=this._chunks[e];return r?r[t]:NaN},n.prototype.getSum=function(e){var t=this._chunks[e],r=0;if(t)for(var i=0,o=this.count();i<o;i++){var a=this.get(e,i);isNaN(a)||(r+=a)}return r},n.prototype.getMedian=function(e){var t=[];this.each([e],function(o){isNaN(o)||t.push(o)});var r=t.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},n.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&r<this._count&&r===e)return e;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(t[a]<e)i=a+1;else if(t[a]>e)o=a-1;else return a}return-1},n.prototype.indicesOfNearest=function(e,t,r){var i=this._chunks,o=i[e],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c<h;c++){var d=this.getRawIndex(c),f=t-o[d],g=Math.abs(f);g<=r&&((g<s||g===s&&f>=0&&l<0)&&(s=g,l=f,u=0),f===l&&(a[u++]=c))}return a.length=u,a},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,i=this._count;if(r===Array){e=new r(i);for(var o=0;o<i;o++)e[o]=t[o]}else e=new r(t.buffer,0,i)}else{var r=Gl(this._rawCount);e=new r(this.count());for(var o=0;o<e.length;o++)e[o]=o}return e},n.prototype.filter=function(e,t){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=Gl(r._rawCount),a=new o(i),s=[],l=e.length,u=0,c=e[0],h=r._chunks,d=0;d<i;d++){var f=void 0,g=r.getRawIndex(d);if(l===0)f=t(d);else if(l===1){var y=h[c][g];f=t(y,d)}else{for(var _=0;_<l;_++)s[_]=h[e[_]][g];s[_]=d,f=t.apply(null,s)}f&&(a[u++]=g)}return u<i&&(r._indices=a),r._count=u,r._extent=[],r._updateGetRawIdx(),r},n.prototype.selectRange=function(e){var t=this.clone(),r=t._count;if(!r)return this;var i=ue(e),o=i.length;if(!o)return this;var a=t.count(),s=Gl(t._rawCount),l=new s(a),u=0,c=i[0],h=e[c][0],d=e[c][1],f=t._chunks,g=!1;if(!t._indices){var y=0;if(o===1){for(var _=f[i[0]],v=0;v<r;v++){var p=_[v];(p>=h&&p<=d||isNaN(p))&&(l[u++]=y),y++}g=!0}else if(o===2){for(var _=f[i[0]],x=f[i[1]],b=e[i[1]][0],S=e[i[1]][1],v=0;v<r;v++){var p=_[v],M=x[v];(p>=h&&p<=d||isNaN(p))&&(M>=b&&M<=S||isNaN(M))&&(l[u++]=y),y++}g=!0}}if(!g)if(o===1)for(var v=0;v<a;v++){var I=t.getRawIndex(v),p=f[i[0]][I];(p>=h&&p<=d||isNaN(p))&&(l[u++]=I)}else for(var v=0;v<a;v++){for(var C=!0,I=t.getRawIndex(v),A=0;A<o;A++){var D=i[A],p=f[D][I];(p<e[D][0]||p>e[D][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(v))}return u<a&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},n.prototype.map=function(e,t){var r=this.clone(e);return this._updateDims(r,e,t),r},n.prototype.modify=function(e,t){this._updateDims(this,e,t)},n.prototype._updateDims=function(e,t,r){for(var i=e._chunks,o=[],a=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=Wl();for(var h=0;h<s;h++){for(var d=e.getRawIndex(h),f=0;f<a;f++)l[f]=i[t[f]][d];l[a]=h;var g=r&&r.apply(null,l);if(g!=null){typeof g!="object"&&(o[0]=g,g=o);for(var c=0;c<g.length;c++){var y=t[c],_=g[c],v=u[y],p=i[y];p&&(p[d]=_),_<v[0]&&(v[0]=_),_>v[1]&&(v[1]=_)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),i=r._chunks,o=i[e],a=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,h,d,f=new(Gl(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));f[s++]=u;for(var g=1;g<a-1;g+=l){for(var y=Math.min(g+l,a-1),_=Math.min(g+l*2,a),v=(_+y)/2,p=0,x=y;x<_;x++){var b=this.getRawIndex(x),S=o[b];isNaN(S)||(p+=S)}p/=_-y;var M=g,I=Math.min(g+l,a),C=g-1,A=o[u];c=-1,d=M;for(var D=-1,N=0,x=M;x<I;x++){var b=this.getRawIndex(x),S=o[b];if(isNaN(S)){N++,D<0&&(D=b);continue}h=Math.abs((C-v)*(S-A)-(C-x)*(p-A)),h>c&&(c=h,d=b)}N>0&&N<I-M&&(f[s++]=Math.min(D,d),d=Math.max(D,d)),f[s++]=d,u=d}return f[s++]=this.getRawIndex(a-1),r._count=s,r._indices=f,r.getRawIndex=this._getRawIdx,r},n.prototype.minmaxDownSample=function(e,t){for(var r=this.clone([e],!0),i=r._chunks,o=Math.floor(1/t),a=i[e],s=this.count(),l=new(Gl(this._rawCount))(Math.ceil(s/o)*2),u=0,c=0;c<s;c+=o){var h=c,d=a[this.getRawIndex(h)],f=c,g=a[this.getRawIndex(f)],y=o;c+o>s&&(y=s-c);for(var _=0;_<y;_++){var v=this.getRawIndex(c+_),p=a[v];p<d&&(d=p,h=c+_),p>g&&(g=p,f=c+_)}var x=this.getRawIndex(h),b=this.getRawIndex(f);h<f?(l[u++]=x,l[u++]=b):(l[u++]=b,l[u++]=x)}return r._count=u,r._indices=l,r._updateGetRawIdx(),r},n.prototype.downSample=function(e,t,r,i){for(var o=this.clone([e],!0),a=o._chunks,s=[],l=Math.floor(1/t),u=a[e],c=this.count(),h=o._rawExtent[e]=Wl(),d=new(Gl(this._rawCount))(Math.ceil(c/l)),f=0,g=0;g<c;g+=l){l>c-g&&(l=c-g,s.length=l);for(var y=0;y<l;y++){var _=this.getRawIndex(g+y);s[y]=u[_]}var v=r(s),p=this.getRawIndex(Math.min(g+i(s,v)||0,c-1));u[p]=v,v<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),d[f++]=p}return o._count=f,o._indices=d,o._updateGetRawIdx(),o},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:t(o);break;case 1:t(i[e[0]][s],o);break;case 2:t(i[e[0]][s],i[e[1]][s],o);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[e[l]][s];u[l]=o,t.apply(null,u)}}},n.prototype.getDataExtent=function(e){var t=this._chunks[e],r=Wl();if(!t)return r;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=r;for(var s=a[0],l=a[1],u=0;u<i;u++){var c=this.getRawIndex(u),h=t[c];h<s&&(s=h),h>l&&(l=h)}return a=[s,l],this._extent[e]=a,a},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],i=this._chunks,o=0;o<i.length;o++)r.push(i[o][t]);return r},n.prototype.clone=function(e,t){var r=new n,i=this._chunks,o=e&&Di(e,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?p6(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),t||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},n.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Wt(this._extent),e._rawExtent=Wt(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var r=this._indices.length;t=new e(r);for(var i=0;i<r;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},n.prototype._getRawIdxIdentity=function(e){return e},n.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,i,o){return ha(t[o],this._dimensions[o])}Bm={arrayRows:e,objectRows:function(t,r,i,o){return ha(t[r],this._dimensions[o])},keyedColumns:e,original:function(t,r,i,o){var a=t&&(t.value==null?t:t.value);return ha(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(t,r,i,o){return t[o]}}}(),n}(),hI=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,i,o;if(Ec(e)){var a=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=a.get("data",!0),l=Zn(s)?So:jr,o=[];var h=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},f=Ht(h.seriesLayoutBy,d.seriesLayoutBy)||null,g=Ht(h.sourceHeader,d.sourceHeader),y=Ht(h.dimensions,d.dimensions),_=f!==d.seriesLayoutBy||!!g!=!!d.sourceHeader||y;i=_?[Em(s,{seriesLayoutBy:f,sourceHeader:g,dimensions:y},l)]:[]}else{var v=e;if(r){var p=this._applyTransform(t);i=p.sourceList,o=p.upstreamSignList}else{var x=v.get("source",!0);i=[Em(x,this._getSourceMetaRawOption(),null)],o=[]}}process.env.NODE_ENV!=="production"&&Bt(i&&o),this._setLocalSource(i,o)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&Bt(i!=null||r!=null),i!=null){var o="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),dI(o))}var a,s=[],l=[];return R(e,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&(process.env.NODE_ENV!=="production"&&(h="Can not retrieve result by `fromTransformResult`: "+i),dI(h)),s.push(c),l.push(u._getVersionSign())}),r?a=l6(r,s,{datasetIndex:t.componentIndex}):i!=null&&(a=[j4(s[0])]),{sourceList:a,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var r=e[t];if(r._isDirty()||this._upstreamSignList[t]!==r._getVersionSign())return!0}},n.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return t},n.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&Bt(Ec(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},n.prototype._innerGetDataStore=function(e,t,r){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];Ec(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,r):(s=new Fm,s.initData(new KM(t,e.length),e)),a[r]=s}return s},n.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ec(e)){var t=Mm(e);return t?[t.getSourceManager()]:[]}else return pt(v4(e),function(r){return r.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,r,i;if(Ec(e))t=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=e;t=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:r,dimensions:i}},n}();function pI(n){var e=n.option.transform;e&&fp(n.option.transform)}function Ec(n){return n.mainType==="series"}function dI(n){throw new Error(n)}var d6="line-height:1";function fI(n){var e=n.lineHeight;return e==null?d6:"line-height:"+Kn(e+"")+"px"}function gI(n,e){var t=n.color||"#6e7079",r=n.fontSize||12,i=n.fontWeight||"400",o=n.color||"#464646",a=n.fontSize||14,s=n.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Kn(r+"")+"px;color:"+Kn(t)+";font-weight:"+Kn(i+""),valueStyle:"font-size:"+Kn(a+"")+"px;color:"+Kn(o)+";font-weight:"+Kn(s+"")}:{nameStyle:{fontSize:r,fill:t,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var f6=[0,10,20,30],g6=["",`
73
+ `,`
74
+
75
+ `,`
76
+
77
+
78
+ `];function xn(n,e){return e.type=n,e}function Gm(n){return n.type==="section"}function vI(n){return Gm(n)?v6:y6}function yI(n){if(Gm(n)){var e=0,t=n.blocks.length,r=t>1||t>0&&!n.noHeader;return R(n.blocks,function(i){var o=yI(i);o>=e&&(e=o+ +(r&&(!o||Gm(i)&&!i.noHeader)))}),e}return 0}function v6(n,e,t,r){var i=e.noHeader,o=m6(yI(e)),a=[],s=e.blocks||[];Bt(!s||ht(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(kt(u,l)){var c=new oI(u[l],null);s.sort(function(y,_){return c.evaluate(y.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(y,_){var v=e.valueFormatter,p=vI(y)(v?lt(lt({},n),{valueFormatter:v}):n,y,_>0?o.html:0,r);p!=null&&a.push(p)});var h=n.renderMode==="richText"?a.join(o.richText):Wm(r,a.join(""),i?t:o.html);if(i)return h;var d=_m(e.header,"ordinal",n.useUTC),f=gI(r,n.renderMode).nameStyle,g=fI(r);return n.renderMode==="richText"?_I(n,d,f)+o.richText+h:Wm(r,'<div style="'+f+";"+g+';">'+Kn(d)+"</div>"+h,t)}function y6(n,e,t,r){var i=n.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(b){return b=ht(b)?b:[b],pt(b,function(S,M){return _m(S,ht(f)?f[M]:f,u)})};if(!(o&&a)){var h=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=o?"":_m(l,"ordinal",u),f=e.valueType,g=a?[]:c(e.value,e.dataIndex),y=!s||!o,_=!s&&o,v=gI(r,i),p=v.nameStyle,x=v.valueStyle;return i==="richText"?(s?"":h)+(o?"":_I(n,d,p))+(a?"":b6(n,g,y,_,x)):Wm(r,(s?"":h)+(o?"":_6(d,!s,p))+(a?"":x6(g,y,_,x)),t)}}function mI(n,e,t,r,i,o){if(n){var a=vI(n),s={useUTC:i,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return a(s,n,0,o)}}function m6(n){return{html:f6[n],richText:g6[n]}}function Wm(n,e,t){var r='<div style="clear:both"></div>',i="margin: "+t+"px 0 0",o=fI(n);return'<div style="'+i+";"+o+';">'+e+r+"</div>"}function _6(n,e,t){var r=e?"margin-left:2px":"";return'<span style="'+t+";"+r+'">'+Kn(n)+"</span>"}function x6(n,e,t,r){var i=t?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return n=ht(n)?n:[n],'<span style="'+o+";"+r+'">'+pt(n,function(a){return Kn(a)}).join("&nbsp;&nbsp;")+"</span>"}function _I(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function b6(n,e,t,r,i){var o=[i],a=r?10:20;return t&&o.push({padding:[0,0,0,a],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(ht(e)?e.join(" "):e,o)}function xI(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return _s(r)}function bI(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var jm=function(){function n(){this.richTextStyles={},this._nextStyleNameId=x2()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var i=r==="richText"?this._generateStyleName():null,o=u4({color:t,type:e,renderMode:r,markerId:i});return Tt(o)?o:(process.env.NODE_ENV!=="production"&&Bt(i),this.richTextStyles[i]=o.style,o.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};ht(t)?R(t,function(o){return lt(r,o)}):lt(r,t);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},n}();function wI(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,i=e.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=e.getRawValue(t),l=ht(s),u=xI(e,t),c,h,d,f;if(a>1||l&&!a){var g=w6(s,e,t,o,u);c=g.inlineValues,h=g.inlineValueTypes,d=g.blocks,f=g.inlineValues[0]}else if(a){var y=i.getDimensionInfo(o[0]);f=c=Fl(i,t,o[0]),h=y.type}else f=c=l?s[0]:s;var _=by(e),v=_&&e.name||"",p=i.getName(t),x=r?v:p;return xn("section",{header:v,noHeader:r||!_,sortParam:f,blocks:[xn("nameValue",{markerType:"item",markerColor:u,name:x,noName:!hi(x),value:c,valueType:h,dataIndex:t})].concat(d||[])})}function w6(n,e,t,r,i){var o=e.getData(),a=Di(n,function(h,d,f){var g=o.getDimensionInfo(f);return h=h||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];r.length?R(r,function(h){c(Fl(o,t,h),h)}):R(n,c);function c(h,d){var f=o.getDimensionInfo(d);!f||f.otherDims.tooltip===!1||(a?u.push(xn("nameValue",{markerType:"subItem",markerColor:i,name:f.displayName,value:h,valueType:f.type})):(s.push(h),l.push(f.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var pa=de();function Od(n,e){return n.getName(e)||n.getId(e)}var zd="__universalTransitionEnabled",Ve=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Pc({count:M6,reset:I6}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var o=pa(this).sourceManager=new hI(this);o.prepareSource();var a=this.getInitialData(t,i);MI(a,this),this.dataTask.context.data=a,process.env.NODE_ENV!=="production"&&Bt(a,"getInitialData returned invalid data."),pa(this).dataBeforeProcessed=a,SI(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(t,r){var i=Ac(this),o=i?Ol(t):{},a=this.subType;le.hasClass(a)&&(a+="Series"),Yt(t,r.getTheme().get(this.subType)),Yt(t,this.getDefaultOption()),Ja(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ca(t,o,i)},e.prototype.mergeOption=function(t,r){t=Yt(this.option,t,!0),this.fillDataTextStyle(t.data);var i=Ac(this);i&&ca(this.option,t,i);var o=pa(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(t,r);MI(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,pa(this).dataBeforeProcessed=a,SI(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!Zn(t))for(var r=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Ja(t[i],"label",r)},e.prototype.getInitialData=function(t,r){},e.prototype.appendData=function(t){var r=this.getRawData();r.appendData(t.data)},e.prototype.getData=function(t){var r=Hm(this);if(r){var i=r.context.data;return t==null||!i.getLinkedData?i:i.getLinkedData(t)}else return pa(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var r=Hm(this);if(r){var i=r.context;i.outputData=t,r!==this.dataTask&&(i.data=t)}pa(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Lt(t)},e.prototype.getSourceManager=function(){return pa(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return pa(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,r,i){return wI({series:this,dataIndex:t,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(oe.node&&!(t&&t.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,i){var o=this.ecModel,a=Tm.prototype.getColorFromPalette.call(this,t,r,i);return a||(a=o.getColorFromPalette(t,r,i)),a},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Od(a,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,r){for(var i=[],o=0;o<t.length;o++)i[0]=t[o],this.isSelected(t[o],r)?this.unselect(i,r):this.select(i,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,r=ue(t),i=[],o=0;o<r.length;o++){var a=t[r[o]];a>=0&&i.push(a)}return i},e.prototype.isSelected=function(t,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[Od(o,t)])&&!o.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[zd])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){Vt(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var h=r[c],d=Od(t,h);u[d]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var f=r[l-1],d=Od(t,f);a.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(o={},o[d]=t.getRawIndex(f),o)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var r=[];t.hasItemOption&&t.each(function(i){var o=t.getRawDataItem(i);o&&o.selected&&r.push(i)}),r.length>0&&this._innerSelect(t,r)}},e.registerClass=function(t){return le.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(le);nn(Ve,Ed),nn(Ve,Tm),R2(Ve,le);function SI(n){var e=n.name;by(n)||(n.name=S6(n)||e)}function S6(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return R(t,function(i){var o=e.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function M6(n){return n.model.getRawData().count()}function I6(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),T6}function T6(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function MI(n,e){R(Gu(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,qt(C6,e))})}function C6(n,e){var t=Hm(n);return t&&t.setOutputEnd((e||this).count()),e}function Hm(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(n.uid))}return r}}var He=function(){function n(){this.group=new jt,this.uid=Ll("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,i){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,i){},n.prototype.updateLayout=function(e,t,r,i){},n.prototype.updateVisual=function(e,t,r,i){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();My(He),Xp(He);function jl(){var n=de();return function(e){var t=n(e),r=e.pipelineContext,i=!!t.large,o=!!t.progressiveRender,a=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var II=de(),A6=jl(),Pe=function(){function n(){this.group=new jt,this.uid=Ll("viewChart"),this.renderTask=Pc({plan:k6,reset:D6}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},n.prototype.highlight=function(e,t,r,i){var o=e.getData(i&&i.dataType);if(!o){process.env.NODE_ENV!=="production"&&Vn("Unknown dataType "+i.dataType);return}CI(o,i,"emphasis")},n.prototype.downplay=function(e,t,r,i){var o=e.getData(i&&i.dataType);if(!o){process.env.NODE_ENV!=="production"&&Vn("Unknown dataType "+i.dataType);return}CI(o,i,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,i){this.render(e,t,r,i)},n.prototype.updateLayout=function(e,t,r,i){this.render(e,t,r,i)},n.prototype.updateVisual=function(e,t,r,i){this.render(e,t,r,i)},n.prototype.eachRendered=function(e){sa(this.group,e)},n.markUpdateMethod=function(e,t){II(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function TI(n,e,t){n&&oa(n)&&(e==="emphasis"?xo:bo)(n,t)}function CI(n,e,t){var r=$a(n,e),i=e&&e.highlightKey!=null?uB(e.highlightKey):null;r!=null?R(Ne(r),function(o){TI(n.getItemGraphicEl(o),t,i)}):n.eachItemGraphicEl(function(o){TI(o,t,i)})}My(Pe,["dispose"]),Xp(Pe);function k6(n){return A6(n.model)}function D6(n){var e=n.model,t=n.ecModel,r=n.api,i=n.payload,o=e.pipelineContext.progressiveRender,a=n.view,s=i&&II(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,t,r,i),L6[l]}var L6={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Vd="\0__throttleOriginMethod",AI="\0__throttleRate",kI="\0__throttleType";function Um(n,e,t){var r,i=0,o=0,a=null,s,l,u,c;e=e||0;function h(){o=new Date().getTime(),a=null,n.apply(l,u||[])}var d=function(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];r=new Date().getTime(),l=this,u=f;var y=c||e,_=c||t;c=null,s=r-(_?i:o)-y,clearTimeout(a),_?a=setTimeout(h,y):s>=0?h():a=setTimeout(h,-s),i=r};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(f){c=f},d}function Hl(n,e,t,r){var i=n[e];if(i){var o=i[Vd]||i,a=i[kI],s=i[AI];if(s!==t||a!==r){if(t==null||!r)return n[e]=o;i=n[e]=Um(o,t,r==="debounce"),i[Vd]=o,i[kI]=r,i[AI]=t}return i}}function Rc(n,e){var t=n[e];t&&t[Vd]&&(t.clear&&t.clear(),n[e]=t[Vd])}var DI=de(),LI={itemStyle:ts(nM,!0),lineStyle:ts(eM,!0)},N6={lineStyle:"stroke",itemStyle:"fill"};function NI(n,e){var t=n.visualStyleMapper||LI[e];return t||(console.warn("Unknown style type '"+e+"'."),LI.itemStyle)}function PI(n,e){var t=n.visualDrawType||N6[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var P6={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=n.getModel(r),o=NI(n,r),a=o(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=PI(n,r),u=a[l],c=Et(u)?u:null,h=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||h){var d=n.getColorFromPalette(n.name,null,e.getSeriesCount());a[l]||(a[l]=d,t.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Et(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||Et(a.stroke)?d:a.stroke}if(t.setVisual("style",a),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(f,g){var y=n.getDataParams(g),_=lt({},a);_[l]=c(y),f.setItemVisual(g,"style",_)}}}},Oc=new ke,E6={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=NI(n,r),o=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){Oc.option=l[r];var u=i(Oc),c=a.ensureUniqueItemVisual(s,"style");lt(c,u),Oc.option.decal&&(a.setItemVisual(s,"decal",Oc.option.decal),Oc.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},R6={performRawSeries:!0,overallReset:function(n){var e=Lt();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+r,o=e.get(i);o||(o={},e.set(i,o)),DI(t).scope=o}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),i={},o=t.getData(),a=DI(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=PI(t,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],h=o.getItemVisual(c,"colorFromPalette");if(h){var d=o.ensureUniqueItemVisual(c,"style"),f=r.getName(u)||u+"",g=r.count();d[l]=t.getColorFromPalette(f,a,g)}})}})}},Bd=Math.PI;function O6(n,e){e=e||{},Ft(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new jt,r=new fe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var i=new ge({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new fe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(o);var a;return e.showSpinner&&(a=new ud({shape:{startAngle:-Bd/2,endAngle:-Bd/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:Bd*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Bd*3/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var EI=function(){function n(e,t,r,i){this._stageTaskMap=Lt(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,o=!t&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),i=e.getData(),o=i.count(),a=r.progressiveEnabled&&t.incrementalPrepareRender&&o>=r.threshold,s=e.get("large")&&o>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?o:null;e.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=Lt();e.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),t._pipe(i,i.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;R(this._allHandlers,function(i){var o=e.get(i.uid)||e.set(i.uid,{}),a="";process.env.NODE_ENV!=="production"&&(a='"reset" and "overallReset" must not be both specified.'),Bt(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,t,r),i.overallReset&&this._createOverallStageTask(i,o,t,r)},this)},n.prototype.prepareView=function(e,t,r,i){var o=e.renderTask,a=o.context;a.model=t,a.ecModel=r,a.api=i,o.__block=!e.incrementalPrepareRender,this._pipe(t,o)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,i){i=i||{};var o=!1,a=this;R(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),h=c.seriesTaskMap,d=c.overallTask;if(d){var f,g=d.agentStubMap;g.each(function(_){s(i,_)&&(_.dirty(),f=!0)}),f&&d.dirty(),a.updatePayload(d,r);var y=a.getPerformArgs(d,i.block);g.each(function(_){_.perform(y)}),d.perform(y)&&(o=!0)}else h&&h.each(function(_,v){s(i,_)&&_.dirty();var p=a.getPerformArgs(_,i.block);p.skip=!l.performRawSeries&&t.isSeriesFiltered(_.context.model),a.updatePayload(_,r),_.perform(p)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,i){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=Lt(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(h){var d=h.uid,f=s.set(d,a&&a.get(d)||Pc({plan:G6,reset:W6,count:H6}));f.context={model:h,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(h,f)}},n.prototype._createOverallStageTask=function(e,t,r,i){var o=this,a=t.overallTask=t.overallTask||Pc({reset:z6});a.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Lt(),u=e.seriesType,c=e.getTargetSeries,h=!0,d=!1,f="";process.env.NODE_ENV!=="production"&&(f='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),Bt(!e.createOnAllSeries,f),u?r.eachRawSeriesByType(u,g):c?c(r,i).each(g):(h=!1,R(r.getSeries(),g));function g(y){var _=y.uid,v=l.set(_,s&&s.get(_)||(d=!0,Pc({reset:V6,onDirty:F6})));v.context={model:y,overallProgress:h},v.agent=a,v.__block=h,o._pipe(y,v)}d&&a.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},n.wrapStageHandler=function(e,t){return Et(e)&&(e={overallReset:e,seriesType:U6(e)}),e.uid=Ll("stageHandler"),t&&(e.visualType=t),e},n}();function z6(n){n.overallReset(n.ecModel,n.api,n.payload)}function V6(n){return n.overallProgress&&B6}function B6(){this.agent.dirty(),this.getDownstream().dirty()}function F6(){this.agent&&this.agent.dirty()}function G6(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function W6(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=Ne(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?pt(e,function(t,r){return RI(r)}):j6}var j6=RI(0);function RI(n){return function(e,t){var r=t.data,i=t.resetDefines[n];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function H6(n){return n.data.count()}function U6(n){Fd=null;try{n(zc,OI)}catch{}return Fd}var zc={},OI={},Fd;zI(zc,km),zI(OI,RM),zc.eachSeriesByType=zc.eachRawSeriesByType=function(n){Fd=n},zc.eachComponent=function(n){n.mainType==="series"&&n.subType&&(Fd=n.subType)};function zI(n,e){for(var t in e.prototype)n[t]=Qe}var VI=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const X6={color:VI,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],VI]};var Wn="#B9B8CE",BI="#100C2A",Gd=function(){return{axisLine:{lineStyle:{color:Wn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},FI=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],GI={darkMode:!0,color:FI,backgroundColor:BI,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Wn},pageTextStyle:{color:Wn}},textStyle:{color:Wn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Wn}},dataZoom:{borderColor:"#71708A",textStyle:{color:Wn},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Wn}},timeline:{lineStyle:{color:Wn},label:{color:Wn},controlStyle:{color:Wn,borderColor:Wn}},calendar:{itemStyle:{color:BI},dayLabel:{color:Wn},monthLabel:{color:Wn},yearLabel:{color:Wn}},timeAxis:Gd(),logAxis:Gd(),valueAxis:Gd(),categoryAxis:Gd(),line:{symbol:"circle"},graph:{color:FI},gauge:{title:{color:Wn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Wn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};GI.categoryAxis.splitLine.show=!1;var Z6=function(){function n(){}return n.prototype.normalizeQuery=function(e){var t={},r={},i={};if(Tt(e)){var o=zi(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};R(e,function(l,u){for(var c=!1,h=0;h<a.length;h++){var d=a[h],f=u.lastIndexOf(d);if(f>0&&f===u.length-d.length){var g=u.slice(0,f);g!=="data"&&(t.mainType=g,t[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:i}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=t.cptQuery,u=t.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(e,t.otherQuery,i,o));function c(h,d,f,g){return h[f]==null||d[g||f]===h[f]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),Xm=["symbol","symbolSize","symbolRotate","symbolOffset"],WI=Xm.concat(["symbolKeepAspect"]),q6={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a<Xm.length;a++){var s=Xm[a],l=n.get(s);Et(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||n.defaultSymbol,t.setVisual(lt({legendIcon:n.legendIcon||r.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},r)),e.isSeriesFiltered(n))return;var u=ue(i);function c(h,d){for(var f=n.getRawValue(d),g=n.getDataParams(d),y=0;y<u.length;y++){var _=u[y];h.setItemVisual(d,_,i[_](f,g))}}return{dataEach:o?c:null}}},K6={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!n.hasSymbolVisual||e.isSeriesFiltered(n))return;var t=n.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<WI.length;s++){var l=WI[s],u=a.getShallow(l,!0);u!=null&&i.setItemVisual(o,l,u)}}return{dataEach:t.hasItemOption?r:null}}};function Zm(n,e,t){switch(t){case"color":var r=n.getItemVisual(e,"style");return r[n.getVisual("drawType")];case"opacity":return n.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(e,t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Vc(n,e){switch(e){case"color":var t=n.getVisual("style");return t[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function jI(n,e,t,r){switch(t){case"color":var i=n.ensureUniqueItemVisual(e,"style");i[n.getVisual("drawType")]=r,n.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(e,t,r);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function HI(n,e){function t(r,i){var o=[];return r.eachComponent({mainType:"series",subType:n,query:i},function(a){o.push(a.seriesIndex)}),o}R([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(r){e(r[0],function(i,o,a){i=lt({},i),process.env.NODE_ENV!=="production"&&on(i.type,r[1]),a.dispatchAction(lt(i,{type:r[1],seriesIndex:t(o,i)}))})})}function Ul(n,e,t,r,i){var o=n+e;t.isSilent(o)||(process.env.NODE_ENV!=="production"&&gi("event "+o+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var h=a.getData(),d=$a(h,i.fromActionPayload);t.trigger(o,{type:o,seriesId:a.id,name:ht(d)?h.getName(d[0]):h.getName(d),selected:Tt(l)?l:lt({},l)})}}))}function Y6(n,e,t){n.on("selectchanged",function(r){var i=t.getModel();r.isFromClick?(Ul("map","selectchanged",e,i,r),Ul("pie","selectchanged",e,i,r)):r.fromAction==="select"?(Ul("map","selected",e,i,r),Ul("pie","selected",e,i,r)):r.fromAction==="unselect"&&(Ul("map","unselected",e,i,r),Ul("pie","unselected",e,i,r))})}function Is(n,e,t){for(var r;n&&!(e(n)&&(r=n,t));)n=n.__hostTarget||n.parent;return r}var J6=Math.round(Math.random()*9),$6=typeof Object.defineProperty=="function",Q6=function(){function n(){this._id="__ec_inner_"+J6++}return n.prototype.get=function(e){return this._guard(e)[this._id]},n.prototype.set=function(e,t){var r=this._guard(e);return $6?Object.defineProperty(r,this._id,{value:t,enumerable:!1,configurable:!0}):r[this._id]=t,this},n.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},n.prototype.has=function(e){return!!this._guard(e)[this._id]},n.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},n}(),t8=ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,r=e.cy,i=e.width/2,o=e.height/2;n.moveTo(t,r-o),n.lineTo(t+i,r+o),n.lineTo(t-i,r+o),n.closePath()}}),e8=ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,r=e.cy,i=e.width/2,o=e.height/2;n.moveTo(t,r-o),n.lineTo(t+i,r),n.lineTo(t,r+o),n.lineTo(t-i,r),n.closePath()}}),n8=ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=a*.6,g=a*.7;n.moveTo(t-c,l+s),n.arc(t,l,a,Math.PI-u,Math.PI*2+u),n.bezierCurveTo(t+c-h*f,l+s+d*f,t,r-g,t,r),n.bezierCurveTo(t,r-g,t-c+h*f,l+s+d*f,t-c,l+s),n.closePath()}}),r8=ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;n.moveTo(i,o),n.lineTo(i+a,o+t),n.lineTo(i,o+t/4*3),n.lineTo(i-a,o+t),n.lineTo(i,o),n.closePath()}}),i8={line:mn,rect:fe,roundRect:fe,square:fe,circle:wo,diamond:e8,pin:n8,arrow:r8,triangle:t8},o8={line:function(n,e,t,r,i){i.x1=n,i.y1=e+r/2,i.x2=n+t,i.y2=e+r/2},rect:function(n,e,t,r,i){i.x=n,i.y=e,i.width=t,i.height=r},roundRect:function(n,e,t,r,i){i.x=n,i.y=e,i.width=t,i.height=r,i.r=Math.min(t,r)/4},square:function(n,e,t,r,i){var o=Math.min(t,r);i.x=n,i.y=e,i.width=o,i.height=o},circle:function(n,e,t,r,i){i.cx=n+t/2,i.cy=e+r/2,i.r=Math.min(t,r)/2},diamond:function(n,e,t,r,i){i.cx=n+t/2,i.cy=e+r/2,i.width=t,i.height=r},pin:function(n,e,t,r,i){i.x=n+t/2,i.y=e+r/2,i.width=t,i.height=r},arrow:function(n,e,t,r,i){i.x=n+t/2,i.y=e+r/2,i.width=t,i.height=r},triangle:function(n,e,t,r,i){i.cx=n+t/2,i.cy=e+r/2,i.width=t,i.height=r}},Wd={};R(i8,function(n,e){Wd[e]=new n});var a8=ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,e,t){var r=Wp(n,e,t),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(r.y=t.y+t.height*.4),r},buildPath:function(n,e,t){var r=e.symbolType;if(r!=="none"){var i=Wd[r];i||(r="rect",i=Wd[r]),o8[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(n,i.shape,t)}}});function s8(n,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=n,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=n:t.fill=n,this.markRedraw()}}function ln(n,e,t,r,i,o,a){var s=n.indexOf("empty")===0;s&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var l;return n.indexOf("image://")===0?l=GS(n.slice(8),new Qt(e,t,r,i),a?"center":"cover"):n.indexOf("path://")===0?l=gd(n.slice(7),{},new Qt(e,t,r,i),a?"center":"cover"):l=new a8({shape:{symbolType:n,x:e,y:t,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=s8,o&&l.setColor(o),l}function Xl(n){return ht(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function Ts(n,e){if(n!=null)return ht(n)||(n=[n,n]),[Mt(n[0],e[0])||0,Mt(Ht(n[1],n[0]),e[1])||0]}function Cs(n){return isFinite(n)}function l8(n,e,t){var r=e.x==null?0:e.x,i=e.x2==null?1:e.x2,o=e.y==null?0:e.y,a=e.y2==null?0:e.y2;e.global||(r=r*t.width+t.x,i=i*t.width+t.x,o=o*t.height+t.y,a=a*t.height+t.y),r=Cs(r)?r:0,i=Cs(i)?i:1,o=Cs(o)?o:0,a=Cs(a)?a:0;var s=n.createLinearGradient(r,o,i,a);return s}function u8(n,e,t){var r=t.width,i=t.height,o=Math.min(r,i),a=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(a=a*r+t.x,s=s*i+t.y,l=l*o),a=Cs(a)?a:.5,s=Cs(s)?s:.5,l=l>=0&&Cs(l)?l:.5;var u=n.createRadialGradient(a,s,0,a,s,l);return u}function qm(n,e,t){for(var r=e.type==="radial"?u8(n,e,t):l8(n,e,t),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function c8(n,e){if(n===e||!n&&!e)return!1;if(!n||!e||n.length!==e.length)return!0;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!0;return!1}function jd(n){return parseInt(n,10)}function Zl(n,e,t){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(t[r]!=null&&t[r]!=="auto")return parseFloat(t[r]);var s=document.defaultView.getComputedStyle(n);return(n[i]||jd(s[r])||jd(n.style[r]))-(jd(s[o])||0)-(jd(s[a])||0)|0}function h8(n,e){return!n||n==="solid"||!(e>0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:ye(n)?[n]:ht(n)?n:null}function Km(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&h8(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var i=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;i&&i!==1&&(t=pt(t,function(o){return o/i}),r/=i)}return[t,r]}var p8=new Gi(!0);function Hd(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function UI(n){return typeof n=="string"&&n!=="none"}function Ud(n){var e=n.fill;return e!=null&&e!=="none"}function XI(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function ZI(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function Ym(n,e,t){var r=Ty(e.image,e.__image,t);if(Zp(r)){var i=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*vp),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function d8(n,e,t,r){var i,o=Hd(t),a=Ud(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||p8,h=e.__dirty;if(!r){var d=t.fill,f=t.stroke,g=a&&!!d.colorStops,y=o&&!!f.colorStops,_=a&&!!d.image,v=o&&!!f.image,p=void 0,x=void 0,b=void 0,S=void 0,M=void 0;(g||y)&&(M=e.getBoundingRect()),g&&(p=h?qm(n,d,M):e.__canvasFillGradient,e.__canvasFillGradient=p),y&&(x=h?qm(n,f,M):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),_&&(b=h||!e.__canvasFillPattern?Ym(n,d,e):e.__canvasFillPattern,e.__canvasFillPattern=b),v&&(S=h||!e.__canvasStrokePattern?Ym(n,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),g?n.fillStyle=p:_&&(b?n.fillStyle=b:a=!1),y?n.strokeStyle=x:v&&(S?n.strokeStyle=S:o=!1)}var I=e.getGlobalScale();c.setScale(I[0],I[1],e.segmentIgnoreThreshold);var C,A;n.setLineDash&&t.lineDash&&(i=Km(e),C=i[0],A=i[1]);var D=!0;(u||h&Xu)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),D=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(n,l?s:1),C&&(n.setLineDash(C),n.lineDashOffset=A),r||(t.strokeFirst?(o&&ZI(n,t),a&&XI(n,t)):(a&&XI(n,t),o&&ZI(n,t))),C&&n.setLineDash([])}function f8(n,e,t){var r=e.__image=Ty(t.image,e.__image,e,e.onload);if(!(!r||!Zp(r))){var i=t.x||0,o=t.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,i,o,a,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,h=a-u,d=s-c;n.drawImage(r,u,c,h,d,i,o,a,s)}else n.drawImage(r,i,o,a,s)}}function g8(n,e,t){var r,i=t.text;if(i!=null&&(i+=""),i){n.font=t.font||Uo,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var o=void 0,a=void 0;n.setLineDash&&t.lineDash&&(r=Km(e),o=r[0],a=r[1]),o&&(n.setLineDash(o),n.lineDashOffset=a),t.strokeFirst?(Hd(t)&&n.strokeText(i,t.x,t.y),Ud(t)&&n.fillText(i,t.x,t.y)):(Ud(t)&&n.fillText(i,t.x,t.y),Hd(t)&&n.strokeText(i,t.x,t.y)),o&&n.setLineDash([])}}var qI=["shadowBlur","shadowOffsetX","shadowOffsetY"],KI=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function YI(n,e,t,r,i){var o=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){pr(n,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(a)?es.opacity:a}(r||e.blend!==t.blend)&&(o||(pr(n,i),o=!0),n.globalCompositeOperation=e.blend||es.blend);for(var s=0;s<qI.length;s++){var l=qI[s];(r||e[l]!==t[l])&&(o||(pr(n,i),o=!0),n[l]=n.dpr*(e[l]||0))}return(r||e.shadowColor!==t.shadowColor)&&(o||(pr(n,i),o=!0),n.shadowColor=e.shadowColor||es.shadowColor),o}function JI(n,e,t,r,i){var o=Bc(e,i.inHover),a=r?null:t&&Bc(t,i.inHover)||{};if(o===a)return!1;var s=YI(n,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(pr(n,i),s=!0),UI(o.fill)&&(n.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(pr(n,i),s=!0),UI(o.stroke)&&(n.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(pr(n,i),s=!0),n.globalAlpha=o.opacity==null?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);n.lineWidth!==u&&(s||(pr(n,i),s=!0),n.lineWidth=u)}for(var c=0;c<KI.length;c++){var h=KI[c],d=h[0];(r||o[d]!==a[d])&&(s||(pr(n,i),s=!0),n[d]=o[d]||h[1])}return s}function v8(n,e,t,r,i){return YI(n,Bc(e,i.inHover),t&&Bc(t,i.inHover),r,i)}function $I(n,e){var t=e.transform,r=n.dpr||1;t?n.setTransform(r*t[0],r*t[1],r*t[2],r*t[3],r*t[4],r*t[5]):n.setTransform(r,0,0,r,0,0)}function y8(n,e,t){for(var r=!1,i=0;i<n.length;i++){var o=n[i];r=r||o.isZeroArea(),$I(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}t.allClipped=r}function m8(n,e){return n&&e?n[0]!==e[0]||n[1]!==e[1]||n[2]!==e[2]||n[3]!==e[3]||n[4]!==e[4]||n[5]!==e[5]:!(!n&&!e)}var QI=1,tT=2,eT=3,nT=4;function _8(n){var e=Ud(n),t=Hd(n);return!(n.lineDash||!(+e^+t)||e&&typeof n.fill!="string"||t&&typeof n.stroke!="string"||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}function pr(n,e){e.batchFill&&n.fill(),e.batchStroke&&n.stroke(),e.batchFill="",e.batchStroke=""}function Bc(n,e){return e&&n.__hoverStyle||n.style}function rT(n,e){As(n,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function As(n,e,t,r){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=-2,e.__isRendered=!1;return}var o=e.__clipPaths,a=t.prevElClipPaths,s=!1,l=!1;if((!a||c8(o,a))&&(a&&a.length&&(pr(n,t),n.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),o&&o.length&&(pr(n,t),n.save(),y8(o,n,t),s=!0),t.prevElClipPaths=o),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof ae&&e.autoBatch&&_8(e.style);s||m8(i,u.transform)?(pr(n,t),$I(n,e)):c||pr(n,t);var h=Bc(e,t.inHover);e instanceof ae?(t.lastDrawType!==QI&&(l=!0,t.lastDrawType=QI),JI(n,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&n.beginPath(),d8(n,e,h,c),c&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof bl?(t.lastDrawType!==eT&&(l=!0,t.lastDrawType=eT),JI(n,e,u,l,t),g8(n,e,h)):e instanceof Tn?(t.lastDrawType!==tT&&(l=!0,t.lastDrawType=tT),v8(n,e,u,l,t),f8(n,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==nT&&(l=!0,t.lastDrawType=nT),x8(n,e,t)),c&&r&&pr(n,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function x8(n,e,t){var r=e.getDisplayables(),i=e.getTemporalDisplayables();n.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},a,s;for(a=e.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),As(n,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),As(n,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,n.restore()}var Jm=new Q6,iT=new Ku(100),oT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ql(n,e){if(n==="none")return null;var t=e.getDevicePixelRatio(),r=e.getZr(),i=r.painter.type==="svg";n.dirty&&Jm.delete(n);var o=Jm.get(n);if(o)return o;var a=Ft(n,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/t,Jm.set(n,s),n.dirty=!1,s;function l(u){for(var c=[t],h=!0,d=0;d<oT.length;++d){var f=a[oT[d]];if(f!=null&&!ht(f)&&!Tt(f)&&!ye(f)&&typeof f!="boolean"){h=!1;break}c.push(f)}var g;if(h){g=c.join(",")+(i?"-svg":"");var y=iT.get(g);y&&(i?u.svgElement=y:u.image=y)}var _=sT(a.dashArrayX),v=b8(a.dashArrayY),p=aT(a.symbol),x=w8(_),b=lT(v),S=!i&&Xo.createCanvas(),M=i&&{tag:"g",attrs:{},key:"dcl",children:[]},I=A(),C;S&&(S.width=I.width*t,S.height=I.height*t,C=S.getContext("2d")),D(),h&&iT.put(g,S||M),u.image=S,u.svgElement=M,u.svgWidth=I.width,u.svgHeight=I.height;function A(){for(var N=1,L=0,E=x.length;L<E;++L)N=w2(N,x[L]);for(var k=1,L=0,E=p.length;L<E;++L)k=w2(k,p[L].length);N*=k;var z=b*x.length*p.length;if(process.env.NODE_ENV!=="production"){var F=function(W){console.warn("Calculated decal size is greater than "+W+" due to decal option settings so "+W+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+W+" to be larger to avoid incontinuity.")};N>a.maxTileWidth&&F("maxTileWidth"),z>a.maxTileHeight&&F("maxTileHeight")}return{width:Math.max(1,Math.min(N,a.maxTileWidth)),height:Math.max(1,Math.min(z,a.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,S.width,S.height),a.backgroundColor&&(C.fillStyle=a.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var N=0,L=0;L<v.length;++L)N+=v[L];if(N<=0)return;for(var E=-b,k=0,z=0,F=0;E<I.height;){if(k%2===0){for(var W=z/2%p.length,q=0,j=0,J=0;q<I.width*2;){for(var H=0,L=0;L<_[F].length;++L)H+=_[F][L];if(H<=0)break;if(j%2===0){var K=(1-a.symbolSize)*.5,ut=q+_[F][j]*K,at=E+v[k]*K,ot=_[F][j]*a.symbolSize,Rt=v[k]*a.symbolSize,Jt=J/2%p[W].length;wt(ut,at,ot,Rt,p[W][Jt])}q+=_[F][j],++J,++j,j===_[F].length&&(j=0)}++F,F===_.length&&(F=0)}E+=v[k],++z,++k,k===v.length&&(k=0)}function wt(xt,Ot,bt,Nt,se){var O=i?1:t,st=ln(se,xt*O,Ot*O,bt*O,Nt*O,a.color,a.symbolKeepAspect);if(i){var it=r.painter.renderOneToVNode(st);it&&M.children.push(it)}else rT(C,st)}}}}function aT(n){if(!n||n.length===0)return[["rect"]];if(Tt(n))return[[n]];for(var e=!0,t=0;t<n.length;++t)if(!Tt(n[t])){e=!1;break}if(e)return aT([n]);for(var r=[],t=0;t<n.length;++t)Tt(n[t])?r.push([n[t]]):r.push(n[t]);return r}function sT(n){if(!n||n.length===0)return[[0,0]];if(ye(n)){var e=Math.ceil(n);return[[e,e]]}for(var t=!0,r=0;r<n.length;++r)if(!ye(n[r])){t=!1;break}if(t)return sT([n]);for(var i=[],r=0;r<n.length;++r)if(ye(n[r])){var e=Math.ceil(n[r]);i.push([e,e])}else{var e=pt(n[r],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function b8(n){if(!n||typeof n=="object"&&n.length===0)return[0,0];if(ye(n)){var e=Math.ceil(n);return[e,e]}var t=pt(n,function(r){return Math.ceil(r)});return n.length%2?t.concat(t):t}function w8(n){return pt(n,function(e){return lT(e)})}function lT(n){for(var e=0,t=0;t<n.length;++t)e+=n[t];return n.length%2===1?e*2:e}function S8(n,e){n.eachRawSeries(function(t){if(!n.isSeriesFiltered(t)){var r=t.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=ql(s,e)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=ql(i,e)}}})}var xi=new Er,Xd={};function M8(n,e){process.env.NODE_ENV!=="production"&&Xd[n]&&Vn("Already has an implementation of "+n+"."),Xd[n]=e}function I8(n){return process.env.NODE_ENV!=="production"&&(Xd[n]||Vn("Implementation of "+n+" doesn't exists.")),Xd[n]}var T8=1,C8=800,A8=900,k8=1e3,D8=2e3,L8=5e3,uT=1e3,N8=1100,$m=2e3,cT=3e3,P8=4e3,Zd=4500,E8=4600,R8=5e3,O8=6e3,hT=7e3,z8={PROCESSOR:{FILTER:k8,SERIES_FILTER:C8,STATISTIC:L8},VISUAL:{LAYOUT:uT,PROGRESSIVE_LAYOUT:N8,GLOBAL:$m,CHART:cT,POST_CHART_LAYOUT:E8,COMPONENT:P8,BRUSH:R8,CHART_ITEM:Zd,ARIA:O8,DECAL:hT}},jn="__flagInMainProcess",dr="__pendingUpdate",Qm="__needsUpdateStatus",pT=/^[a-zA-Z0-9_]+$/,t0="__connectUpdateStatus",dT=0,V8=1,B8=2;function fT(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){wr(this.id);return}return vT(this,n,e)}}function gT(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return vT(this,n,e)}}function vT(n,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Er.prototype[e].apply(n,t)}var yT=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(Er),mT=yT.prototype;mT.on=gT("on"),mT.off=gT("off");var Kl,e0,qd,da,n0,r0,i0,Fc,Gc,_T,xT,o0,bT,Kd,wT,ST,Zr,MT,IT=function(n){Q(e,n);function e(t,r,i){var o=n.call(this,new Z6)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},Tt(r)&&(r=TT[r]),o._dom=t;var a="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=oe.hasGlobalWindow?window:zu.commonjsGlobal;u&&(a=Ht(u.__ECHARTS__DEFAULT__RENDERER__,a),s=Ht(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=Ht(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr&&kz(function(f){var g=Ut(f),y=g.dataIndex;if(y!=null){var _=Lt();return _.set("series_index",g.seriesIndex),_.set("data_index",y),g.ssrType&&_.set("ssr_type",g.ssrType),_}});var c=o._zr=d2(t,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ht(i.useDirtyRect,l),useCoarsePointer:Ht(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=Um(At(c.flush,c),17),r=Wt(r),r&&WM(r,!0),o._theme=r,o._locale=n4(i.locale||rM),o._coordSysMgr=new Bl;var h=o._api=wT(o);function d(f,g){return f.__prio-g.__prio}return wp(Jd,d),wp(s0,d),o._scheduler=new EI(o,h,s0,Jd),o._messageCenter=new yT,o._initEvents(),o.resize=At(o.resize,o),c.animation.on("frame",o._onframe,o),_T(c,o),xT(c,o),fp(o),o}return e.prototype._onframe=function(){if(!this._disposed){MT(this);var t=this._scheduler;if(this[dr]){var r=this[dr].silent;this[jn]=!0;try{Kl(this),da.update.call(this,null,this[dr].updateParams)}catch(l){throw this[jn]=!1,this[dr]=null,l}this._zr.flush(),this[jn]=!1,this[dr]=null,Fc.call(this,r),Gc.call(this,r)}else if(t.unfinished){var i=T8,o=this._model,a=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(o),t.performDataProcessorTasks(o),r0(this,o),t.performVisualTasks(o),Kd(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,i){if(this[jn]){process.env.NODE_ENV!=="production"&&Vn("`setOption` should not be called during main process.");return}if(this._disposed){wr(this.id);return}var o,a,s;if(Vt(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[jn]=!0,!this._model||r){var l=new k4(this._api),u=this._theme,c=this._model=new km;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:a},l0);var h={seriesTransition:s,optionChanged:!0};if(i)this[dr]={silent:o,updateParams:h},this[jn]=!1,this.getZr().wakeUp();else{try{Kl(this),da.update.call(this,null,h)}catch(d){throw this[dr]=null,this[jn]=!1,d}this._ssr||this._zr.flush(),this[dr]=null,this[jn]=!1,Fc.call(this,o),Gc.call(this,o)}},e.prototype.setTheme=function(){gi("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||oe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return process.env.NODE_ENV!=="production"&&on("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(oe.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return R(r,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){wr(this.id);return}t=t||{};var r=t.excludeComponents,i=this._model,o=[],a=this;R(r,function(l){i.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return R(o,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){wr(this.id);return}var r=t.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(CT[i]){var l=s,u=s,c=-s,h=-s,d=[],f=t&&t.pixelRatio||this.getDevicePixelRatio();R(jc,function(x,b){if(x.group===i){var S=r?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Wt(t)),M=x.getDom().getBoundingClientRect();l=o(M.left,l),u=o(M.top,u),c=a(M.right,c),h=a(M.bottom,h),d.push({dom:S,left:M.left,top:M.top})}}),l*=f,u*=f,c*=f,h*=f;var g=c-l,y=h-u,_=Xo.createCanvas(),v=d2(_,{renderer:r?"svg":"canvas"});if(v.resize({width:g,height:y}),r){var p="";return R(d,function(x){var b=x.left-l,S=x.top-u;p+='<g transform="translate('+b+","+S+')">'+x.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=p,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}else return t.connectedBackgroundColor&&v.add(new fe({shape:{x:0,y:0,width:g,height:y},style:{fill:t.connectedBackgroundColor}})),R(d,function(x){var b=new Tn({style:{x:x.left*f-l,y:x.top*f-u,image:x.dom}});v.add(b)}),v.refreshImmediately(),_.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return n0(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return n0(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){wr(this.id);return}var i=this._model,o,a=sc(i,t);return R(a,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?o=o||h.containPoint(r,u):process.env.NODE_ENV!=="production"&&Xe(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Xe(l+": containPoint is not supported")},this)},this),!!o},e.prototype.getVisual=function(t,r){var i=this._model,o=sc(i,t,{defaultMainType:"series"}),a=o.seriesModel;process.env.NODE_ENV!=="production"&&(a||Xe("There is no specified series model"));var s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?Zm(s,l,r):Vc(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;R(F8,function(r){var i=function(o){var a=t.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&Is(s,function(g){var y=Ut(g);if(y&&y.dataIndex!=null){var _=y.dataModel||a.getSeriesByIndex(y.seriesIndex);return l=_&&_.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=lt({},y.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var d=c&&h!=null&&a.getComponent(c,h),f=d&&t[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&f)&&Xe("model or view can not be found by params"),l.event=o,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:f},t.trigger(r,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(r,i,t)}),R(Wc,function(r,i){t._messageCenter.on(i,function(o){this.trigger(i,o)},t)}),R(["selectchanged"],function(r){t._messageCenter.on(r,function(i){this.trigger(r,i)},t)}),Y6(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){wr(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){wr(this.id);return}this._disposed=!0;var t=this.getDom();t&&N2(this.getDom(),c0,"");var r=this,i=r._api,o=r._model;R(r._componentsViews,function(a){a.dispose(o,i)}),R(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete jc[r.id]},e.prototype.resize=function(t){if(this[jn]){process.env.NODE_ENV!=="production"&&Vn("`resize` should not be called during main process.");return}if(this._disposed){wr(this.id);return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=t&&t.silent;this[dr]&&(o==null&&(o=this[dr].silent),i=!0,this[dr]=null),this[jn]=!0;try{i&&Kl(this),da.update.call(this,{type:"resize",animation:lt({duration:0},t&&t.animation)})}catch(a){throw this[jn]=!1,a}this[jn]=!1,Fc.call(this,o),Gc.call(this,o)}},e.prototype.showLoading=function(t,r){if(this._disposed){wr(this.id);return}if(Vt(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!u0[t]){process.env.NODE_ENV!=="production"&&Xe("Loading effects "+t+" not exists.");return}var i=u0[t](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)},e.prototype.hideLoading=function(){if(this._disposed){wr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=lt({},t);return r.type=Wc[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){wr(this.id);return}if(Vt(r)||(r={silent:!!r}),!!Yd[t.type]&&this._model){if(this[jn]){this._pendingActions.push(t);return}var i=r.silent;i0.call(this,t,i);var o=r.flush;o?this._zr.flush():o!==!1&&oe.browser.weChat&&this._throttledZrFlush(),Fc.call(this,i),Gc.call(this,i)}},e.prototype.updateLabelLayout=function(){xi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){wr(this.id);return}var r=t.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);process.env.NODE_ENV!=="production"&&Bt(t.data&&o),o.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Kl=function(h){var d=h._scheduler;d.restorePipelines(h._model),d.prepareStageTasks(),e0(h,!0),e0(h,!1),d.plan()},e0=function(h,d){for(var f=h._model,g=h._scheduler,y=d?h._componentsViews:h._chartsViews,_=d?h._componentsMap:h._chartsMap,v=h._zr,p=h._api,x=0;x<y.length;x++)y[x].__alive=!1;d?f.eachComponent(function(M,I){M!=="series"&&b(I)}):f.eachSeries(b);function b(M){var I=M.__requireNewView;M.__requireNewView=!1;var C="_ec_"+M.id+"_"+M.type,A=!I&&_[C];if(!A){var D=zi(M.type),N=d?He.getClass(D.main,D.sub):Pe.getClass(D.sub);process.env.NODE_ENV!=="production"&&Bt(N,D.sub+" does not exist."),A=new N,A.init(f,p),_[C]=A,y.push(A),v.add(A.group)}M.__viewId=A.__id=C,A.__alive=!0,A.__model=M,A.group.__ecComponentInfo={mainType:M.mainType,index:M.componentIndex},!d&&g.prepareView(A,M,f,p)}for(var x=0;x<y.length;){var S=y[x];S.__alive?x++:(!d&&S.renderTask.dispose(),v.remove(S.group),S.dispose(f,p),y.splice(x,1),_[S.__id]===S&&delete _[S.__id],S.__id=S.group.__ecComponentInfo=null)}},qd=function(h,d,f,g,y){var _=h._model;if(_.setUpdatePayload(f),!g){R([].concat(h._componentsViews).concat(h._chartsViews),S);return}var v={};v[g+"Id"]=f[g+"Id"],v[g+"Index"]=f[g+"Index"],v[g+"Name"]=f[g+"Name"];var p={mainType:g,query:v};y&&(p.subType=y);var x=f.excludeSeriesId,b;x!=null&&(b=Lt(),R(Ne(x),function(M){var I=pn(M,null);I!=null&&b.set(I,!0)})),_&&_.eachComponent(p,function(M){var I=b&&b.get(M.id)!=null;if(!I)if(SS(f))if(M instanceof Ve)f.type===us&&!f.notBlur&&!M.get(["emphasis","disabled"])&&eB(M,f,h._api);else{var C=Yy(M.mainType,M.componentIndex,f.name,h._api),A=C.focusSelf,D=C.dispatchers;f.type===us&&A&&!f.notBlur&&Ky(M.mainType,M.componentIndex,h._api),D&&R(D,function(N){f.type===us?xo(N):bo(N)})}else $y(f)&&M instanceof Ve&&(iB(M,f,h._api),bS(M),Zr(h))},h),_&&_.eachComponent(p,function(M){var I=b&&b.get(M.id)!=null;I||S(h[g==="series"?"_chartsMap":"_componentsMap"][M.__viewId])},h);function S(M){M&&M.__alive&&M[d]&&M[d](M.__model,_,h._api,f)}},da={prepareAndUpdate:function(h){Kl(this),da.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,d){var f=this._model,g=this._api,y=this._zr,_=this._coordSysMgr,v=this._scheduler;if(f){f.setUpdatePayload(h),v.restoreData(f,h),v.performSeriesTasks(f),_.create(f,g),v.performDataProcessorTasks(f,h),r0(this,f),_.update(f,g),t(f),v.performVisualTasks(f,h),o0(this,f,g,h,d);var p=f.get("backgroundColor")||"transparent",x=f.get("darkMode");y.setBackgroundColor(p),x!=null&&x!=="auto"&&y.setDarkMode(x),xi.trigger("afterupdate",f,g)}},updateTransform:function(h){var d=this,f=this._model,g=this._api;if(f){f.setUpdatePayload(h);var y=[];f.eachComponent(function(v,p){if(v!=="series"){var x=d.getViewOfComponentModel(p);if(x&&x.__alive)if(x.updateTransform){var b=x.updateTransform(p,f,g,h);b&&b.update&&y.push(x)}else y.push(x)}});var _=Lt();f.eachSeries(function(v){var p=d._chartsMap[v.__viewId];if(p.updateTransform){var x=p.updateTransform(v,f,g,h);x&&x.update&&_.set(v.uid,1)}else _.set(v.uid,1)}),t(f),this._scheduler.performVisualTasks(f,h,{setDirty:!0,dirtyMap:_}),Kd(this,f,g,h,{},_),xi.trigger("afterupdate",f,g)}},updateView:function(h){var d=this._model;d&&(d.setUpdatePayload(h),Pe.markUpdateMethod(h,"updateView"),t(d),this._scheduler.performVisualTasks(d,h,{setDirty:!0}),o0(this,d,this._api,h,{}),xi.trigger("afterupdate",d,this._api))},updateVisual:function(h){var d=this,f=this._model;f&&(f.setUpdatePayload(h),f.eachSeries(function(g){g.getData().clearAllVisual()}),Pe.markUpdateMethod(h,"updateVisual"),t(f),this._scheduler.performVisualTasks(f,h,{visualType:"visual",setDirty:!0}),f.eachComponent(function(g,y){if(g!=="series"){var _=d.getViewOfComponentModel(y);_&&_.__alive&&_.updateVisual(y,f,d._api,h)}}),f.eachSeries(function(g){var y=d._chartsMap[g.__viewId];y.updateVisual(g,f,d._api,h)}),xi.trigger("afterupdate",f,this._api))},updateLayout:function(h){da.update.call(this,h)}},n0=function(h,d,f,g){if(h._disposed){wr(h.id);return}for(var y=h._model,_=h._coordSysMgr.getCoordinateSystems(),v,p=sc(y,f),x=0;x<_.length;x++){var b=_[x];if(b[d]&&(v=b[d](y,p,g))!=null)return v}process.env.NODE_ENV!=="production"&&Xe("No coordinate system that supports "+d+" found by the given finder.")},r0=function(h,d){var f=h._chartsMap,g=h._scheduler;d.eachSeries(function(y){g.updateStreamModes(y,f[y.__viewId])})},i0=function(h,d){var f=this,g=this.getModel(),y=h.type,_=h.escapeConnect,v=Yd[y],p=v.actionInfo,x=(p.update||"update").split(":"),b=x.pop(),S=x[0]!=null&&zi(x[0]);this[jn]=!0;var M=[h],I=!1;h.batch&&(I=!0,M=pt(h.batch,function(k){return k=Ft(lt({},k),h),k.batch=null,k}));var C=[],A,D=$y(h),N=SS(h);if(N&&xS(this._api),R(M,function(k){if(A=v.action(k,f._model,f._api),A=A||lt({},k),A.type=p.event||A.type,C.push(A),N){var z=wy(h),F=z.queryOptionMap,W=z.mainTypeSpecified,q=W?F.keys()[0]:"series";qd(f,b,k,q),Zr(f)}else D?(qd(f,b,k,"series"),Zr(f)):S&&qd(f,b,k,S.main,S.sub)}),b!=="none"&&!N&&!D&&!S)try{this[dr]?(Kl(this),da.update.call(this,h),this[dr]=null):da[b].call(this,h)}catch(k){throw this[jn]=!1,k}if(I?A={type:p.event||y,escapeConnect:_,batch:C}:A=C[0],this[jn]=!1,!d){var L=this._messageCenter;if(L.trigger(A.type,A),D){var E={type:"selectchanged",escapeConnect:_,selected:oB(g),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(E.type,E)}}},Fc=function(h){for(var d=this._pendingActions;d.length;){var f=d.shift();i0.call(this,f,h)}},Gc=function(h){!h&&this.trigger("updated")},_T=function(h,d){h.on("rendered",function(f){d.trigger("rendered",f),h.animation.isFinished()&&!d[dr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},xT=function(h,d){h.on("mouseover",function(f){var g=f.target,y=Is(g,oa);y&&(nB(y,f,d._api),Zr(d))}).on("mouseout",function(f){var g=f.target,y=Is(g,oa);y&&(rB(y,f,d._api),Zr(d))}).on("click",function(f){var g=f.target,y=Is(g,function(p){return Ut(p).dataIndex!=null},!0);if(y){var _=y.selected?"unselect":"select",v=Ut(y);d._api.dispatchAction({type:_,dataType:v.dataType,dataIndexInside:v.dataIndex,seriesIndex:v.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(d){d.clearColorPalette()})}function r(h){var d=[],f=[],g=!1;if(h.eachComponent(function(p,x){var b=x.get("zlevel")||0,S=x.get("z")||0,M=x.getZLevelKey();g=g||!!M,(p==="series"?f:d).push({zlevel:b,z:S,idx:x.componentIndex,type:p,key:M})}),g){var y=d.concat(f),_,v;wp(y,function(p,x){return p.zlevel===x.zlevel?p.z-x.z:p.zlevel-x.zlevel}),R(y,function(p){var x=h.getComponent(p.type,p.idx),b=p.zlevel,S=p.key;_!=null&&(b=Math.max(_,b)),S?(b===_&&S!==v&&b++,v=S):v&&(b===_&&b++,v=""),_=b,x.setZLevel(b)})}}o0=function(h,d,f,g,y){r(d),bT(h,d,f,g,y),R(h._chartsViews,function(_){_.__alive=!1}),Kd(h,d,f,g,y),R(h._chartsViews,function(_){_.__alive||_.remove(d,f)})},bT=function(h,d,f,g,y,_){R(_||h._componentsViews,function(v){var p=v.__model;u(p,v),v.render(p,d,f,g),s(p,v),c(p,v)})},Kd=function(h,d,f,g,y,_){var v=h._scheduler;y=lt(y||{},{updatedSeries:d.getSeries()}),xi.trigger("series:beforeupdate",d,f,y);var p=!1;d.eachSeries(function(x){var b=h._chartsMap[x.__viewId];b.__alive=!0;var S=b.renderTask;v.updatePayload(S,g),u(x,b),_&&_.get(x.uid)&&S.dirty(),S.perform(v.getPerformArgs(S))&&(p=!0),b.group.silent=!!x.get("silent"),a(x,b),bS(x)}),v.unfinished=p||v.unfinished,xi.trigger("series:layoutlabels",d,f,y),xi.trigger("series:transition",d,f,y),d.eachSeries(function(x){var b=h._chartsMap[x.__viewId];s(x,b),c(x,b)}),o(h,d),xi.trigger("series:afterupdate",d,f,y)},Zr=function(h){h[Qm]=!0,h.getZr().wakeUp()},MT=function(h){h[Qm]&&(h.getZr().storage.traverse(function(d){Al(d)||i(d)}),h[Qm]=!1)};function i(h){for(var d=[],f=h.currentStates,g=0;g<f.length;g++){var y=f[g];y==="emphasis"||y==="blur"||y==="select"||d.push(y)}h.selected&&h.states.select&&d.push("select"),h.hoverState===td&&h.states.emphasis?d.push("emphasis"):h.hoverState===hc&&h.states.blur&&d.push("blur"),h.useStates(d)}function o(h,d){var f=h._zr,g=f.storage,y=0;g.traverse(function(_){_.isGroup||y++}),y>d.get("hoverLayerThreshold")&&!oe.node&&!oe.worker&&d.eachSeries(function(_){if(!_.preventUsingHoverLayer){var v=h._chartsMap[_.__viewId];v.__alive&&v.eachRendered(function(p){p.states.emphasis&&(p.states.emphasis.hoverLayer=!0)})}})}function a(h,d){var f=h.get("blendMode")||null;d.eachRendered(function(g){g.isGroup||(g.style.blend=f)})}function s(h,d){if(!h.preventAutoZ){var f=h.get("z")||0,g=h.get("zlevel")||0;d.eachRendered(function(y){return l(y,f,g,-1/0),!0})}}function l(h,d,f,g){var y=h.getTextContent(),_=h.getTextGuideLine(),v=h.isGroup;if(v)for(var p=h.childrenRef(),x=0;x<p.length;x++)g=Math.max(l(p[x],d,f,g),g);else h.z=d,h.zlevel=f,g=Math.max(h.z2,g);if(y&&(y.z=d,y.zlevel=f,isFinite(g)&&(y.z2=g+2)),_){var b=h.textGuideLineConfig;_.z=d,_.zlevel=f,isFinite(g)&&(_.z2=g+(b&&b.showAbove?1:-1))}return g}function u(h,d){d.eachRendered(function(f){if(!Al(f)){var g=f.getTextContent(),y=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function c(h,d){var f=h.getModel("stateAnimation"),g=h.isAnimationEnabled(),y=f.get("duration"),_=y>0?{duration:y,delay:f.get("delay"),easing:f.get("easing")}:null;d.eachRendered(function(v){if(v.states&&v.states.emphasis){if(Al(v))return;if(v instanceof ae&&cB(v),v.__dirty){var p=v.prevStates;p&&v.useStates(p)}if(g){v.stateTransition=_;var x=v.getTextContent(),b=v.getTextGuideLine();x&&(x.stateTransition=_),b&&(b.stateTransition=_)}v.__dirty&&i(v)}})}wT=function(h){return new(function(d){Q(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(g){for(;g;){var y=g.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);g=g.parent}},f.prototype.enterEmphasis=function(g,y){xo(g,y),Zr(h)},f.prototype.leaveEmphasis=function(g,y){bo(g,y),Zr(h)},f.prototype.enterBlur=function(g){vS(g),Zr(h)},f.prototype.leaveBlur=function(g){Zy(g),Zr(h)},f.prototype.enterSelect=function(g){yS(g),Zr(h)},f.prototype.leaveSelect=function(g){mS(g),Zr(h)},f.prototype.getModel=function(){return h.getModel()},f.prototype.getViewOfComponentModel=function(g){return h.getViewOfComponentModel(g)},f.prototype.getViewOfSeriesModel=function(g){return h.getViewOfSeriesModel(g)},f}(RM))(h)},ST=function(h){function d(f,g){for(var y=0;y<f.length;y++){var _=f[y];_[t0]=g}}R(Wc,function(f,g){h._messageCenter.on(g,function(y){if(CT[h.group]&&h[t0]!==dT){if(y&&y.escapeConnect)return;var _=h.makeActionFromEvent(y),v=[];R(jc,function(p){p!==h&&p.group===h.group&&v.push(p)}),d(v,dT),R(v,function(p){p[t0]!==V8&&p.dispatchAction(_)}),d(v,B8)}})})}}(),e}(Er),a0=IT.prototype;a0.on=fT("on"),a0.off=fT("off"),a0.one=function(n,e,t){var r=this;gi("ECharts#one is deprecated.");function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];e&&e.apply&&e.apply(this,o),r.off(n,i)}this.on.call(this,n,i,t)};var F8=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function wr(n){process.env.NODE_ENV!=="production"&&Xe("Instance "+n+" has been disposed")}var Yd={},Wc={},s0=[],l0=[],Jd=[],TT={},u0={},jc={},CT={},G8=+new Date-0,c0="_echarts_instance_";function W8(n,e,t){var r=!t.ssr;if(r){if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Initialize failed: invalid dom.");var i=j8(n);if(i)return process.env.NODE_ENV!=="production"&&Xe("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&Va(n)&&n.nodeName.toUpperCase()!=="CANVAS"&&(!n.clientWidth&&(!t||t.width==null)||!n.clientHeight&&(!t||t.height==null))&&Xe("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var o=new IT(n,e,t);return o.id="ec_"+G8++,jc[o.id]=o,r&&N2(n,c0,o.id),ST(o),xi.trigger("afterinit",o),o}function j8(n){return jc[$z(n,c0)]}function AT(n,e){TT[n]=e}function kT(n){te(l0,n)<0&&l0.push(n)}function DT(n,e){p0(s0,n,e,D8)}function H8(n){h0("afterinit",n)}function U8(n){h0("afterupdate",n)}function h0(n,e){xi.on(n,e)}function Ui(n,e,t){Et(e)&&(t=e,e="");var r=Vt(n)?n.type:[n,n={event:e}][0];n.event=(n.event||r).toLowerCase(),e=n.event,!Wc[e]&&(Bt(pT.test(r)&&pT.test(e)),Yd[r]||(Yd[r]={action:t,actionInfo:n}),Wc[e]=r)}function X8(n,e){Bl.register(n,e)}function Z8(n,e){p0(Jd,n,e,uT,"layout")}function ks(n,e){p0(Jd,n,e,cT,"visual")}var LT=[];function p0(n,e,t,r,i){if((Et(e)||Vt(e))&&(t=e,e=r),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");R(n,function(a){Bt(a.__raw!==t)})}if(!(te(LT,t)>=0)){LT.push(t);var o=EI.wrapStageHandler(t,i);o.__prio=e,o.__raw=t,n.push(o)}}function NT(n,e){u0[n]=e}function q8(n,e,t){var r=I8("registerMap");r&&r(n,e,t)}var K8=s6;ks($m,P6),ks(Zd,E6),ks(Zd,R6),ks($m,q6),ks(Zd,K6),ks(hT,S8),kT(WM),DT(A8,G4),NT("default",O6),Ui({type:us,event:us,update:us},Qe),Ui({type:ed,event:ed,update:ed},Qe),Ui({type:dc,event:dc,update:dc},Qe),Ui({type:nd,event:nd,update:nd},Qe),Ui({type:fc,event:fc,update:fc},Qe),AT("light",X6),AT("dark",GI);var PT=[],Y8={registerPreprocessor:kT,registerProcessor:DT,registerPostInit:H8,registerPostUpdate:U8,registerUpdateLifecycle:h0,registerAction:Ui,registerCoordinateSystem:X8,registerLayout:Z8,registerVisual:ks,registerTransform:K8,registerLoading:NT,registerMap:q8,registerImpl:M8,PRIORITY:z8,ComponentModel:le,ComponentView:He,SeriesModel:Ve,ChartView:Pe,registerComponentModel:function(n){le.registerClass(n)},registerComponentView:function(n){He.registerClass(n)},registerSeriesModel:function(n){Ve.registerClass(n)},registerChartView:function(n){Pe.registerClass(n)},registerSubTypeDefaulter:function(n,e){le.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){Cz(n,e)}};function ie(n){if(ht(n)){R(n,function(e){ie(e)});return}te(PT,n)>=0||(PT.push(n),Et(n)&&(n={install:n}),n.install(Y8))}function Hc(n){return n==null?0:n.length||1}function ET(n){return n}var Io=function(){function n(e,t,r,i,o,a){this._old=e,this._new=t,this._oldKeyGetter=r||ET,this._newKeyGetter=i||ET,this.context=o,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},i=new Array(e.length),o=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<e.length;a++){var s=i[a],l=r[s],u=Hc(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},i={},o=[],a=[];this._initIndexMap(e,r,o,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=r[l],c=i[l],h=Hc(u),d=Hc(c);if(h>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(h===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(h===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var f=0;f<h;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},n.prototype._performRestAdd=function(e,t){for(var r=0;r<e.length;r++){var i=e[r],o=t[i],a=Hc(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);t[i]=null}},n.prototype._initIndexMap=function(e,t,r,i){for(var o=this._diffModeMultiple,a=0;a<e.length;a++){var s="_ec_"+this[i](e[a],a);if(o||(r[a]=s),!!t){var l=t[s],u=Hc(l);u===0?(t[s]=a,o&&r.push(s)):u===1?t[s]=[l,a]:l.push(a)}}},n}(),J8=function(){function n(e,t){this._encode=e,this._schema=t}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n}();function $8(n,e){var t={},r=t.encode={},i=Lt(),o=[],a=[],s={};R(n.dimensions,function(d){var f=n.getDimensionInfo(d),g=f.coordDim;if(g){process.env.NODE_ENV!=="production"&&Bt(wm.get(g)==null);var y=f.coordDimIndex;d0(r,g)[y]=d,f.isExtraCoord||(i.set(g,1),Q8(f.type)&&(o[0]=d),d0(s,g)[y]=n.getDimensionIndex(f.name)),f.defaultTooltip&&a.push(d)}wm.each(function(_,v){var p=d0(r,v),x=f.otherDims[v];x!=null&&x!==!1&&(p[x]=f.name)})});var l=[],u={};i.each(function(d,f){var g=r[f];u[f]=g[0],l=l.concat(g)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=pt(l,function(d){return n.getDimensionInfo(d).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,t.userOutput=new J8(s,e),t}function d0(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function $d(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function Q8(n){return!(n==="ordinal"||n==="time")}var Qd=function(){function n(e){this.otherDims={},e!=null&&lt(this,e)}return n}(),tF=de(),eF={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},RT=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=VT(this.source)))},n.prototype.getSourceDimensionIndex=function(e){return Ht(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},n.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=XM(this.source),r=!BT(e),i="",o=[],a=0,s=0;a<e;a++){var l=void 0,u=void 0,c=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===a)l=t?h.name:null,u=h.type,c=h.ordinalMeta,s++;else{var d=this.getSourceDimension(a);d&&(l=t?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=eF[u]||"f",c&&(i+=c.uid),i+="$"}var f=this.source,g=[f.seriesLayoutBy,f.startIndex,i].join("$$");return{dimensions:o,hash:g}},n.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,r=0;t<this._fullDimCount;t++){var i=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===t)o.isCalculationCoord||(i=o.name),r++;else{var a=this.getSourceDimension(t);a&&(i=a.name)}e.push(i)}return e},n.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function OT(n){return n instanceof RT}function zT(n){for(var e=Lt(),t=0;t<(n||[]).length;t++){var r=n[t],i=Vt(r)?r.name:r;i!=null&&e.get(i)==null&&e.set(i,t)}return e}function VT(n){var e=tF(n);return e.dimNameMap||(e.dimNameMap=zT(n.dimensionsDefine))}function BT(n){return n>30}var Uc=Vt,fa=pt,nF=typeof Int32Array>"u"?Array:Int32Array,rF="e\0\0",FT=-1,iF=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],oF=["_approximateExtent"],GT,tf,Xc,Yl,f0,Zc,g0,nr=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;OT(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c<r.length;c++){var h=r[c],d=Tt(h)?new Qd({name:h}):h instanceof Qd?h:new Qd(h),f=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var g=d.otherDims=d.otherDims||{};a.push(f),o[f]=d,u[f]!=null&&(l=!0),d.createInvertedIndices&&(s[f]=[]),g.itemName===0&&(this._nameDimIdx=c),g.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&Bt(i||d.storeDimIndex>=0),i&&(d.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=Lt();R(a,function(_){y.set(o[_].storeDimIndex,_)})}}return n.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var r=this._dimIdxToName.get(t);if(r!=null)return r;var i=this._schema.getSourceDimension(t);if(i)return i.name},n.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},n.prototype._recognizeDimIndex=function(e){if(ye(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},n.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Unknown dimension "+e);return t},n.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},n.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(r){return t.hasOwnProperty(r)?t[r]:void 0}:function(r){return t[r]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(e,t){var r=this._dimSummary;if(t==null)return r.encodeFirstDimNotExtra[e];var i=r.encode[e];return i?i[t]:null},n.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,r=t.encode[e];return(r||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(e,t,r){var i=this,o;if(e instanceof Fm&&(o=e),!o){var a=this.dimensions,s=Pm(e)||zn(e)?new KM(e,a.length):e;o=new Fm;var l=fa(a,function(u){return{type:i._dimInfos[u].type,property:u}});o.initData(s,l,r)}this._store=o,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=$8(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},n.prototype.appendValues=function(e,t){var r=this._store.appendValues(e,t&&t.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=t[l],a&&g0(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,r=0;r<t.length;r++){var i=this._dimInfos[t[r]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==So&&!e.fillStorage},n.prototype._doInit=function(e,t){if(!(e>=t)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===jr;if(l&&!i.pure)for(var u=[],c=e;c<t;c++){var h=i.getItem(c,u);if(!this.hasItemOption&&Bz(h)&&(this.hasItemOption=!0),h){var d=h.name;o[c]==null&&d!=null&&(o[c]=pn(d,null));var f=h.id;a[c]==null&&f!=null&&(a[c]=pn(f,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)g0(this,c);GT(this)}},n.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},n.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},n.prototype.setCalculationInfo=function(e,t){Uc(e)?lt(this._calculationInfo,e):this._calculationInfo[e]=t},n.prototype.getName=function(e){var t=this.getRawIndex(e),r=this._nameList[t];return r==null&&this._nameDimIdx!=null&&(r=Xc(this,this._nameDimIdx,t)),r==null&&(r=""),r},n.prototype._getCategory=function(e,t){var r=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[r]:r},n.prototype.getId=function(e){return tf(this,this.getRawIndex(e))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(e,t){var r=this._store,i=this._dimInfos[e];if(i)return r.get(i.storeDimIndex,t)},n.prototype.getByRawIndex=function(e,t){var r=this._store,i=this._dimInfos[e];if(i)return r.getByRawIndex(i.storeDimIndex,t)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},n.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},n.prototype.getValues=function(e,t){var r=this,i=this._store;return ht(e)?i.getValues(fa(e,function(o){return r._getStoreDimIndex(o)}),t):i.getValues(e)},n.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,r=0,i=t.length;r<i;r++)if(isNaN(this._store.get(t[r],e)))return!1;return!0},n.prototype.indexOfName=function(e){for(var t=0,r=this._store.count();t<r;t++)if(this.getName(t)===e)return t;return-1},n.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},n.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},n.prototype.rawIndexOf=function(e,t){var r=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Do not supported yet");var i=r&&r[t];return i==null||isNaN(i)?FT:i},n.prototype.indicesOfNearest=function(e,t,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,r)},n.prototype.each=function(e,t,r){Et(e)&&(r=t,t=e,e=[]);var i=r||this,o=fa(Yl(e),this._getStoreDimIndex,this);this._store.each(o,i?At(t,i):t)},n.prototype.filterSelf=function(e,t,r){Et(e)&&(r=t,t=e,e=[]);var i=r||this,o=fa(Yl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?At(t,i):t),this},n.prototype.selectRange=function(e){var t=this,r={},i=ue(e);return R(i,function(o){var a=t._getStoreDimIndex(o);r[a]=e[o]}),this._store=this._store.selectRange(r),this},n.prototype.mapArray=function(e,t,r){Et(e)&&(r=t,t=e,e=[]),r=r||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},r),i},n.prototype.map=function(e,t,r,i){var o=r||i||this,a=fa(Yl(e),this._getStoreDimIndex,this),s=Zc(this);return s._store=this._store.map(a,o?At(t,o):t),s},n.prototype.modify=function(e,t,r,i){var o=this,a=r||i||this;process.env.NODE_ENV!=="production"&&R(Yl(e),function(l){var u=o.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=fa(Yl(e),this._getStoreDimIndex,this);this._store.modify(s,a?At(t,a):t)},n.prototype.downSample=function(e,t,r,i){var o=Zc(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),t,r,i),o},n.prototype.minmaxDownSample=function(e,t){var r=Zc(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),r},n.prototype.lttbDownSample=function(e,t){var r=Zc(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),r},n.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},n.prototype.getItemModel=function(e){var t=this.hostModel,r=this.getRawDataItem(e);return new ke(r,t,t&&t.ecModel)},n.prototype.diff=function(e){var t=this;return new Io(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return tf(e,r)},function(r){return tf(t,r)})},n.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},n.prototype.setVisual=function(e,t){this._visual=this._visual||{},Uc(e)?lt(this._visual,e):this._visual[e]=t},n.prototype.getItemVisual=function(e,t){var r=this._itemVisuals[e],i=r&&r[t];return i??this.getVisual(t)},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var o=i[t];return o==null&&(o=this.getVisual(t),ht(o)?o=o.slice():Uc(o)&&(o=lt({},o)),i[t]=o),o},n.prototype.setItemVisual=function(e,t,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Uc(t)?lt(i,t):i[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){Uc(e)?lt(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?lt(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;Wy(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){R(this._graphicEls,function(r,i){r&&e&&e.call(t,r,i)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:fa(this.dimensions,this._getDimInfo,this),this.hostModel)),f0(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];Et(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return t.apply(this,[i].concat(bv(arguments)))})},n.internalField=function(){GT=function(e){var t=e._invertedIndicesMap;R(t,function(r,i){var o=e._dimInfos[i],a=o.ordinalMeta,s=e._store;if(a){r=t[i]=new nF(a.categories.length);for(var l=0;l<r.length;l++)r[l]=FT;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},Xc=function(e,t,r){return pn(e._getCategory(t,r),null)},tf=function(e,t){var r=e._idList[t];return r==null&&e._idDimIdx!=null&&(r=Xc(e,e._idDimIdx,t)),r==null&&(r=rF+t),r},Yl=function(e){return ht(e)||(e=e!=null?[e]:[]),e},Zc=function(e){var t=new n(e._schema?e._schema:fa(e.dimensions,e._getDimInfo,e),e.hostModel);return f0(t,e),t},f0=function(e,t){R(iF.concat(t.__wrappedMethods||[]),function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e.__wrappedMethods=t.__wrappedMethods,R(oF,function(r){e[r]=Wt(t[r])}),e._calculationInfo=lt({},t._calculationInfo)},g0=function(e,t){var r=e._nameList,i=e._idList,o=e._nameDimIdx,a=e._idDimIdx,s=r[t],l=i[t];if(s==null&&o!=null&&(r[t]=s=Xc(e,o,t)),l==null&&a!=null&&(i[t]=l=Xc(e,a,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[t]=l}}}(),n}();function qc(n,e){Pm(n)||(n=Rm(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],i=Lt(),o=[],a=sF(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&BT(a),l=r===n.dimensionsDefine,u=l?VT(n):zT(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,a));for(var h=Lt(c),d=new sI(a),f=0;f<d.length;f++)d[f]=-1;function g(A){var D=d[A];if(D<0){var N=r[A],L=Vt(N)?N:{name:N},E=new Qd,k=L.name;k!=null&&u.get(k)!=null&&(E.name=E.displayName=k),L.type!=null&&(E.type=L.type),L.displayName!=null&&(E.displayName=L.displayName);var z=o.length;return d[A]=z,E.storeDimIndex=A,o.push(E),E}return o[D]}if(!s)for(var f=0;f<a;f++)g(f);h.each(function(A,D){var N=Ne(A).slice();if(N.length===1&&!Tt(N[0])&&N[0]<0){h.set(D,!1);return}var L=h.set(D,[]);R(N,function(E,k){var z=Tt(E)?u.get(E):E;z!=null&&z<a&&(L[k]=z,_(g(z),D,k))})});var y=0;R(t,function(A){var D,N,L,E;if(Tt(A))D=A,E={};else{E=A,D=E.name;var k=E.ordinalMeta;E.ordinalMeta=null,E=lt({},E),E.ordinalMeta=k,N=E.dimsDef,L=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var z=h.get(D);if(z!==!1){if(z=Ne(z),!z.length)for(var F=0;F<(N&&N.length||1);F++){for(;y<a&&g(y).coordDim!=null;)y++;y<a&&z.push(y++)}R(z,function(W,q){var j=g(W);if(l&&E.type!=null&&(j.type=E.type),_(Ft(j,E),D,q),j.name==null&&N){var J=N[q];!Vt(J)&&(J={name:J}),j.name=j.displayName=J.name,j.defaultTooltip=J.defaultTooltip}L&&Ft(j.otherDims,L)})}});function _(A,D,N){wm.get(D)!=null?A.otherDims[D]=N:(A.coordDim=D,A.coordDimIndex=N,i.set(D,!0))}var v=e.generateCoord,p=e.generateCoordCount,x=p!=null;p=v?p||1:0;var b=v||"value";function S(A){A.name==null&&(A.name=A.coordDim)}if(s)R(o,function(A){S(A)}),o.sort(function(A,D){return A.storeDimIndex-D.storeDimIndex});else for(var M=0;M<a;M++){var I=g(M),C=I.coordDim;C==null&&(I.coordDim=lF(b,i,x),I.coordDimIndex=0,(!v||p<=0)&&(I.isExtraCoord=!0),p--),S(I),I.type==null&&(TM(n,M)===Pn.Must||I.isExtraCoord&&(I.otherDims.itemName!=null||I.otherDims.seriesName!=null))&&(I.type="ordinal")}return aF(o),new RT({source:n,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function aF(n){for(var e=Lt(),t=0;t<n.length;t++){var r=n[t],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function sF(n,e,t,r){var i=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return R(e,function(o){var a;Vt(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function lF(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var uF=function(){function n(e){this.coordSysDims=[],this.axisMap=Lt(),this.categoryAxisMap=Lt(),this.coordSysName=e}return n}();function cF(n){var e=n.get("coordinateSystem"),t=new uF(e),r=hF[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var hF={cartesian2d:function(n,e,t,r){var i=n.getReferringComponents("xAxis",an).models[0],o=n.getReferringComponents("yAxis",an).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+rn(n.get("xAxisIndex"),n.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+rn(n.get("xAxisIndex"),n.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],t.set("x",i),t.set("y",o),Jl(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Jl(o)&&(r.set("y",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var i=n.getReferringComponents("singleAxis",an).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",i),Jl(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var i=n.getReferringComponents("polar",an).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],t.set("radius",o),t.set("angle",a),Jl(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Jl(a)&&(r.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var i=n.ecModel,o=i.getComponent("parallel",n.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();R(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];t.set(c,u),Jl(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Jl(n){return n.get("type")==="category"}function pF(n,e,t){t=t||{};var r=t.byIndex,i=t.stackedCoordDimension,o,a,s;dF(e)?o=e:(a=e.schema,o=a.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,h,d;if(R(o,function(p,x){Tt(p)&&(o[x]=p={name:p}),l&&!p.isExtraCoord&&(!r&&!u&&p.ordinalMeta&&(u=p),!c&&p.type!=="ordinal"&&p.type!=="time"&&(!i||i===p.coordDim)&&(c=p))}),c&&!r&&!u&&(r=!0),c){h="__\0ecstackresult_"+n.id,d="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var f=c.coordDim,g=c.type,y=0;R(o,function(p){p.coordDim===f&&y++});var _={name:h,coordDim:f,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},v={name:d,coordDim:d,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(_.storeDimIndex=s.ensureCalculationDimension(d,g),v.storeDimIndex=s.ensureCalculationDimension(h,g)),a.appendCalculationDimension(_),a.appendCalculationDimension(v)):(o.push(_),o.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:h}}function dF(n){return!OT(n.schema)}function ga(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function WT(n,e){return ga(n,e)?n.getCalculationInfo("stackResultDimension"):e}function fF(n,e){var t=n.get("coordinateSystem"),r=Bl.get(t),i;return e&&e.coordSysDims&&(i=pt(e.coordSysDims,function(o){var a={name:o},s=e.axisMap.get(o);if(s){var l=s.get("type");a.type=$d(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function gF(n,e,t){var r,i;return t&&R(n,function(o,a){var s=o.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),e&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(n[r].otherDims.itemName=0),r}function To(n,e,t){t=t||{};var r=e.getSourceManager(),i,o=!1;n?(o=!0,i=Rm(n)):(i=r.getSource(),o=i.sourceFormat===jr);var a=cF(e),s=fF(e,a),l=t.useEncodeDefaulter,u=Et(l)?l:l?qt(IM,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=qc(i,c),d=gF(h.dimensions,t.createInvertedIndices,a),f=o?null:r.getSharedDataStore(h),g=pF(e,{schema:h,store:f}),y=new nr(h,e);y.setCalculationInfo(g);var _=d!=null&&vF(i)?function(v,p,x,b){return b===d?x:this.defaultDimValueGetter(v,p,x,b)}:null;return y.hasItemOption=!1,y.initData(o?i:f,null,_),y}function vF(n){if(n.sourceFormat===jr){var e=yF(n.data||[]);return!ht(_l(e))}}function yF(n){for(var e=0;e<n.length&&n[e]==null;)e++;return n[e]}var Xi=function(){function n(e){this._setting=e||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(e){return this._setting[e]},n.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Xp(Xi);var mF=0,v0=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++mF}return n.createByAxisModel=function(e){var t=e.option,r=t.data,i=r&&pt(r,_F);return new n({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!Tt(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=Lt(this.categories))},n}();function _F(n){return Vt(n)&&n.value!=null?n.value:n+""}function xF(n){var e=Math.pow(10,Hp(Math.abs(n))),t=Math.abs(n/e);return t===0||t===1||t===2||t===3||t===5}function y0(n){return n.type==="interval"||n.type==="log"}function bF(n,e,t,r){var i={},o=n[1]-n[0],a=i.interval=m2(o/e);t!=null&&a<t&&(a=i.interval=t),r!=null&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=jT(a),l=i.niceTickExtent=[Ye(Math.ceil(n[0]/a)*a,s),Ye(Math.floor(n[1]/a)*a,s)];return wF(l,n),i}function m0(n){var e=Math.pow(10,Hp(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ye(t*e)}function jT(n){return Ri(n)+2}function HT(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function wF(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),HT(n,0,e),HT(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function ef(n,e){return n>=e[0]&&n<=e[1]}function nf(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function rf(n,e){return n*(e[1]-e[0])+e[0]}var of=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new v0({})),ht(i)&&(i=new v0({categories:pt(i,function(o){return Vt(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:Tt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),ef(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),nf(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(rf(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,i=r[0];i<=r[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a<l;++a){var u=r[a];i[a]=u,o[u]=a}for(var c=0;a<s;++a){for(;o[c]!=null;)c++;i.push(c),o[c]=a}},e.prototype._getTickNumber=function(t){var r=this._ticksByOrdinalNumber;return r&&t>=0&&t<r.length?r[t]:t},e.prototype.getRawOrdinalNumber=function(t){var r=this._ordinalNumbersByTick;return r&&t>=0&&t<r.length?r[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var r=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Xi);Xi.registerClass(of);var Ds=Ye,Co=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return ef(t,this._extent)},e.prototype.normalize=function(t){return nf(t,this._extent)},e.prototype.scale=function(t){return rf(t,this._extent)},e.prototype.setExtent=function(t,r){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(r)||(i[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jT(t)},e.prototype.getTicks=function(t){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]<o[0]&&(t?s.push({value:Ds(o[0]-r,a)}):s.push({value:i[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=Ds(u+r,a),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(t?s.push({value:Ds(c+r,a)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;a<r.length;a++){for(var s=r[a],l=r[a-1],u=0,c=[],h=s.value-l.value,d=h/t;u<t-1;){var f=Ds(l.value+(u+1)*d);f>o[0]&&f<o[1]&&c.push(f),u++}i.push(c)}return i},e.prototype.getLabel=function(t,r){if(t==null)return"";var i=r&&r.precision;i==null?i=Ri(t.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=Ds(t.value,i,!0);return vM(o)},e.prototype.calcNiceTicks=function(t,r,i){t=t||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=bF(o,t,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);t.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(r[0]=Ds(Math.floor(r[0]/a)*a)),t.fixMax||(r[1]=Ds(Math.ceil(r[1]/a)*a))},e.prototype.setNiceExtent=function(t,r){this._niceExtent=[t,r]},e.type="interval",e}(Xi);Xi.registerClass(Co);var UT=typeof Float32Array<"u",SF=UT?Float32Array:Array;function Zi(n){return ht(n)?UT?new Float32Array(n):n:new SF(n)}var _0="__ec_stack_";function XT(n){return n.get("stack")||_0+n.seriesIndex}function x0(n){return n.dim+n.index}function MF(n){var e=[],t=n.axis,r="axis0";if(t.type==="category"){for(var i=t.getBandWidth(),o=0;o<n.count;o++)e.push(Ft({bandWidth:i,axisKey:r,stackId:_0+o},n));for(var a=KT(e),s=[],o=0;o<n.count;o++){var l=a[r][_0+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ZT(n,e){var t=[];return e.eachSeriesByType(n,function(r){$T(r)&&t.push(r)}),t}function IF(n){var e={};R(n,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),d=c.dim+"_"+c.index,f=h.getDimensionIndex(h.mapDimension(c.dim)),g=h.getStore(),y=0,_=g.count();y<_;++y){var v=g.get(f,y);e[d]?e[d].push(v):e[d]=[v]}});var t={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(l,u){return l-u});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}t[r]=o}}return t}function qT(n){var e=IF(n),t=[];return R(n,function(r){var i=r.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=e[l],c=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),d=Math.abs(h[1]-h[0]);s=u?c/d*u:c}else{var f=r.getData();s=Math.abs(a[1]-a[0])/f.count()}var g=Mt(r.get("barWidth"),s),y=Mt(r.get("barMaxWidth"),s),_=Mt(r.get("barMinWidth")||(QT(r)?.5:1),s),v=r.get("barGap"),p=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:g,barMaxWidth:y,barMinWidth:_,barGap:v,barCategoryGap:p,axisKey:x0(o),stackId:XT(r)})}),KT(t)}function KT(n){var e={};R(n,function(r,i){var o=r.axisKey,a=r.bandWidth,s=e[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[o]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=r.barMaxWidth;h&&(l[u].maxWidth=h);var d=r.barMinWidth;d&&(l[u].minWidth=d);var f=r.barGap;f!=null&&(s.gap=f);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var t={};return R(e,function(r,i){t[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=ue(o).length;s=Math.max(35-l*4,15)+"%"}var u=Mt(s,a),c=Mt(r.gap,1),h=r.remainedWidth,d=r.autoWidthCount,f=(h-u)/(d+(d-1)*c);f=Math.max(f,0),R(o,function(v){var p=v.maxWidth,x=v.minWidth;if(v.width){var b=v.width;p&&(b=Math.min(b,p)),x&&(b=Math.max(b,x)),v.width=b,h-=b+c*b,d--}else{var b=f;p&&p<b&&(b=Math.min(p,h)),x&&x>b&&(b=x),b!==f&&(v.width=b,h-=b+c*b,d--)}}),f=(h-u)/(d+(d-1)*c),f=Math.max(f,0);var g=0,y;R(o,function(v,p){v.width||(v.width=f),y=v,g+=v.width*(1+c)}),y&&(g-=y.width*c);var _=-g/2;R(o,function(v,p){t[i][p]=t[i][p]||{bandWidth:a,offset:_,width:v.width},_+=v.width*(1+c)})}),t}function TF(n,e,t){if(n&&e){var r=n[x0(e)];return r}}function YT(n,e){var t=ZT(n,e),r=qT(t);R(t,function(i){var o=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=XT(i),u=r[x0(s)][l],c=u.offset,h=u.width;o.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function JT(n){return{seriesType:n,plan:jl(),reset:function(e){if($T(e)){var t=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),o=r.getOtherAxis(i),a=t.getDimensionIndex(t.mapDimension(o.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(o.dim),c=t.getCalculationInfo("stackResultDimension"),h=ga(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),f=CF(i,o),g=QT(e),y=e.get("barMinHeight")||0,_=c&&t.getDimensionIndex(c),v=t.getLayout("size"),p=t.getLayout("offset");return{progress:function(x,b){for(var S=x.count,M=g&&Zi(S*3),I=g&&l&&Zi(S*3),C=g&&Zi(S),A=r.master.getRect(),D=d?A.width:A.height,N,L=b.getStore(),E=0;(N=x.next())!=null;){var k=L.get(h?_:a,N),z=L.get(s,N),F=f,W=void 0;h&&(W=+k-L.get(a,N));var q=void 0,j=void 0,J=void 0,H=void 0;if(d){var K=r.dataToPoint([k,z]);if(h){var ut=r.dataToPoint([W,z]);F=ut[0]}q=F,j=K[1]+p,J=K[0]-F,H=v,Math.abs(J)<y&&(J=(J<0?-1:1)*y)}else{var K=r.dataToPoint([z,k]);if(h){var ut=r.dataToPoint([z,W]);F=ut[1]}q=K[0]+p,j=F,J=v,H=K[1]-F,Math.abs(H)<y&&(H=(H<=0?-1:1)*y)}g?(M[E]=q,M[E+1]=j,M[E+2]=d?J:H,I&&(I[E]=d?A.x:q,I[E+1]=d?j:A.y,I[E+2]=D),C[N]=N):b.setItemLayout(N,{x:q,y:j,width:J,height:H}),E+=3}g&&b.setLayout({largePoints:M,largeDataIndices:C,largeBackgroundPoints:I,valueAxisHorizontal:d})}}}}}}function $T(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function QT(n){return n.pipelineContext&&n.pipelineContext.large}function CF(n,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var AF=function(n,e,t,r){for(;t<r;){var i=t+r>>>1;n[i][1]<e?t=i+1:r=i}return t},b0=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="time",r}return e.prototype.getLabel=function(t){var r=this.getSetting("useUTC");return Sd(t.value,aM[o4(Pl(this._minLevelUnit))]||aM.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return a4(t,r,i,a,o)},e.prototype.getTicks=function(){var t=this._interval,r=this._extent,i=[];if(!t)return i;i.push({value:r[0],level:0});var o=this.getSetting("useUTC"),a=RF(this._minLevelUnit,this._approxInterval,o,r);return i=i.concat(a),i.push({value:r[1],level:0}),i},e.prototype.calcNiceExtent=function(t){var r=this._extent;if(r[0]===r[1]&&(r[0]-=Wr,r[1]+=Wr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Wr}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,r,i){t=t||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/t,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=af.length,l=Math.min(AF(af,this._approxInterval,0,s),s-1);this._interval=af[l][1],this._minLevelUnit=af[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return ye(t)?t:+Oi(t)},e.prototype.contain=function(t){return ef(this.parse(t),this._extent)},e.prototype.normalize=function(t){return nf(this.parse(t),this._extent)},e.prototype.scale=function(t){return rf(t,this._extent)},e.type="time",e}(Co),af=[["second",gm],["minute",vm],["hour",Ic],["quarter-day",Ic*6],["half-day",Ic*12],["day",Wr*1.2],["half-week",Wr*3.5],["week",Wr*7],["month",Wr*31],["quarter",Wr*95],["half-year",oM/2],["year",oM]];function kF(n,e,t,r){var i=Oi(e),o=Oi(t),a=function(g){return uM(i,g,r)===uM(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},f=function(){return d()&&a("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return f()}}function DF(n,e){return n/=Wr,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function LF(n){var e=30*Wr;return n/=e,n>6?6:n>3?3:n>2?2:1}function NF(n){return n/=Ic,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function tC(n,e){return n/=e?vm:gm,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function PF(n){return m2(n)}function EF(n,e,t){var r=new Date(n);switch(Pl(e)){case"year":case"month":r[cM(t)](0);case"day":r[hM(t)](1);case"hour":r[pM(t)](0);case"minute":r[dM(t)](0);case"second":r[fM(t)](0),r[gM(t)](0)}return r.getTime()}function RF(n,e,t,r){var i=1e4,o=sM,a=0;function s(D,N,L,E,k,z,F){for(var W=new Date(N),q=N,j=W[E]();q<L&&q<=r[1];)F.push({value:q}),j+=D,W[k](j),q=W.getTime();F.push({value:q,notAdd:!0})}function l(D,N,L){var E=[],k=!N.length;if(!kF(Pl(D),r[0],r[1],t)){k&&(N=[{value:EF(new Date(r[0]),D,t)},{value:r[1]}]);for(var z=0;z<N.length-1;z++){var F=N[z].value,W=N[z+1].value;if(F!==W){var q=void 0,j=void 0,J=void 0,H=!1;switch(D){case"year":q=Math.max(1,Math.round(e/Wr/365)),j=mm(t),J=s4(t);break;case"half-year":case"quarter":case"month":q=LF(e),j=El(t),J=cM(t);break;case"week":case"half-week":case"day":q=DF(e),j=Md(t),J=hM(t),H=!0;break;case"half-day":case"quarter-day":case"hour":q=NF(e),j=Cc(t),J=pM(t);break;case"minute":q=tC(e,!0),j=Id(t),J=dM(t);break;case"second":q=tC(e,!1),j=Td(t),J=fM(t);break;case"millisecond":q=PF(e),j=Cd(t),J=gM(t);break}s(q,F,W,j,J,H,E),D==="year"&&L.length>1&&z===0&&L.unshift({value:L[0].value-q})}}for(var z=0;z<E.length;z++)L.push(E[z]);return E}}for(var u=[],c=[],h=0,d=0,f=0;f<o.length&&a++<i;++f){var g=Pl(o[f]);if(i4(o[f])){l(o[f],u[u.length-1]||[],c);var y=o[f+1]?Pl(o[f+1]):null;if(g!==y){if(c.length){d=h,c.sort(function(D,N){return D.value-N.value});for(var _=[],v=0;v<c.length;++v){var p=c[v].value;(v===0||c[v-1].value!==p)&&(_.push(c[v]),p>=r[0]&&p<=r[1]&&h++)}var x=(r[1]-r[0])/e;if(h>x*1.5&&d>x/1.5||(u.push(_),h>x||n===o[f]))break}c=[]}}}process.env.NODE_ENV!=="production"&&a>=i&&Xe("Exceed safe limit.");for(var b=Me(pt(u,function(N){return Me(N,function(L){return L.value>=r[0]&&L.value<=r[1]&&!L.notAdd})}),function(N){return N.length>0}),S=[],M=b.length-1,f=0;f<b.length;++f)for(var I=b[f],C=0;C<I.length;++C)S.push({value:I[C].value,level:M-f});S.sort(function(D,N){return D.value-N.value});for(var A=[],f=0;f<S.length;++f)(f===0||S[f].value!==S[f-1].value)&&A.push(S[f]);return A}Xi.registerClass(b0);var eC=Xi.prototype,Kc=Co.prototype,OF=Ye,zF=Math.floor,VF=Math.ceil,sf=Math.pow,bi=Math.log,w0=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Co,t._interval=0,t}return e.prototype.getTicks=function(t){var r=this._originalScale,i=this._extent,o=r.getExtent(),a=Kc.getTicks.call(this,t);return pt(a,function(s){var l=s.value,u=Ye(sf(this.base,l));return u=l===i[0]&&this._fixMin?lf(u,o[0]):u,u=l===i[1]&&this._fixMax?lf(u,o[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,r){var i=bi(this.base);t=bi(Math.max(0,t))/i,r=bi(Math.max(0,r))/i,Kc.setExtent.call(this,t,r)},e.prototype.getExtent=function(){var t=this.base,r=eC.getExtent.call(this);r[0]=sf(t,r[0]),r[1]=sf(t,r[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(r[0]=lf(r[0],o[0])),this._fixMax&&(r[1]=lf(r[1],o[1])),r},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var r=this.base;t[0]=bi(t[0])/bi(r),t[1]=bi(t[1])/bi(r),eC.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(t){t=t||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=Rz(i),a=t/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Ye(VF(r[0]/o)*o),Ye(zF(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Kc.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=bi(t)/bi(this.base),ef(t,this._extent)},e.prototype.normalize=function(t){return t=bi(t)/bi(this.base),nf(t,this._extent)},e.prototype.scale=function(t){return t=rf(t,this._extent),sf(this.base,t)},e.type="log",e}(Xi),nC=w0.prototype;nC.getMinorTicks=Kc.getMinorTicks,nC.getLabel=Kc.getLabel;function lf(n,e){return OF(n,Ri(e))}Xi.registerClass(w0);var BF=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var o=t.get("min",!0);o==null&&(o=t.get("startValue",!0));var a=this._modelMinRaw=o;Et(a)?this._modelMinNum=uf(e,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=uf(e,a));var s=this._modelMaxRaw=t.get("max",!0);if(Et(s)?this._modelMaxNum=uf(e,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=uf(e,s)),i)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=ht(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[fi(u[0],1),fi(u[1],1)]}},n.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,r=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=e?null:r-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?i?0:NaN:t-o[0]*a),l==null&&(l=e?i?i-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Ba(s)||Ba(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(s=d,u=!0),f!=null&&(l=f,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},n.prototype.modifyDataMinMax=function(e,t){process.env.NODE_ENV!=="production"&&Bt(!this.frozen),this[GF[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=FF[e];process.env.NODE_ENV!=="production"&&Bt(!this.frozen&&this[r]==null),this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),FF={min:"_determinedMin",max:"_determinedMax"},GF={min:"_dataMin",max:"_dataMax"};function rC(n,e,t){var r=n.rawExtentInfo;return r||(r=new BF(n,e,t),n.rawExtentInfo=r,r)}function uf(n,e){return e==null?null:Ba(e)?NaN:n.parse(e)}function iC(n,e){var t=n.type,r=rC(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&t==="time"){var s=ZT("bar",a),l=!1;if(R(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=qT(s),c=WF(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function WF(n,e,t,r){var i=t.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=TF(r,t.axis);if(a===void 0)return{min:n,max:e};var s=1/0;R(a,function(f){s=Math.min(f.offset,s)});var l=-1/0;R(a,function(f){l=Math.max(f.offset+f.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,h=1-(s+l)/o,d=c/h-c;return e+=d*(l/u),n-=d*(s/u),{min:n,max:e}}function $l(n,e){var t=e,r=iC(n,t),i=r.extent,o=t.get("splitNumber");n instanceof w0&&(n.base=t.get("logBase"));var a=n.type,s=t.get("interval"),l=a==="interval"||a==="time";n.setExtent(i[0],i[1]),n.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function cf(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new of({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new b0({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(Xi.getClass(e)||Co)}}function jF(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function Ql(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(i,o){return n.scale.getFormattedLabel(i,o,r)}}(e):Tt(e)?function(r){return function(i){var o=n.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(e):Et(e)?function(r){return function(i,o){return t!=null&&(o=i.value-t),r(S0(n,i),o,i.level!=null?{level:i.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function S0(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function HF(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,i,o=t.getExtent();t instanceof of?i=t.count():(r=t.getTicks(),i=r.length);var a=n.getLabelModel(),s=Ql(n),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var h=r?r[c]:{value:o[0]+c},d=s(h,c),f=a.getTextRect(d),g=UF(f,a.get("rotate")||0);l?l.union(g):l=g}return l}}function UF(n,e){var t=e*Math.PI/180,r=n.width,i=n.height,o=r*Math.abs(Math.cos(t))+Math.abs(i*Math.sin(t)),a=r*Math.abs(Math.sin(t))+Math.abs(i*Math.cos(t)),s=new Qt(n.x,n.y,o,a);return s}function M0(n){var e=n.get("interval");return e??"auto"}function oC(n){return n.type==="category"&&M0(n.getLabelModel())===0}function hf(n,e){var t={};return R(n.mapDimensionsAll(e),function(r){t[WT(n,r)]=!0}),ue(t)}function XF(n,e,t){e&&R(hf(e,t),function(r){var i=e.getApproximateExtent(r);i[0]<n[0]&&(n[0]=i[0]),i[1]>n[1]&&(n[1]=i[1])})}var Yc=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),ZF=1e-8;function aC(n,e){return Math.abs(n-e)<ZF}function Ls(n,e,t){var r=0,i=n[0];if(!i)return!1;for(var o=1;o<n.length;o++){var a=n[o];r+=mo(i[0],i[1],a[0],a[1],e,t),i=a}var s=n[0];return(!aC(i[0],s[0])||!aC(i[1],s[1]))&&(r+=mo(i[0],i[1],s[0],s[1],e,t)),r!==0}var qF=[];function I0(n,e){for(var t=0;t<n.length;t++)Dn(n[t],n[t],e)}function sC(n,e,t,r){for(var i=0;i<n.length;i++){var o=n[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(qo(e,e,o),Ko(t,t,o))}}function KF(n){for(var e=0,t=0,r=0,i=n.length,o=n[i-1][0],a=n[i-1][1],s=0;s<i;s++){var l=n[s][0],u=n[s][1],c=o*u-l*a;e+=c,t+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[t/e/3,r/e/3,e]:[n[0][0]||0,n[0][1]||0]}var lC=function(){function n(e){this.name=e}return n.prototype.setCenter=function(e){this._center=e},n.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},n}(),uC=function(){function n(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return n}(),cC=function(){function n(e){this.type="linestring",this.points=e}return n}(),hC=function(n){Q(e,n);function e(t,r,i){var o=n.call(this,t)||this;return o.type="geoJSON",o.geometries=r,o._center=i&&[i[0],i[1]],o}return e.prototype.calcCenter=function(){for(var t=this.geometries,r,i=0,o=0;o<t.length;o++){var a=t[o],s=a.exterior,l=s&&s.length;l>i&&(r=a,i=l)}if(r)return KF(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var i=[1/0,1/0],o=[-1/0,-1/0],a=this.geometries;return R(a,function(s){s.type==="polygon"?sC(s.exterior,i,o,t):R(s.points,function(l){sC(l,i,o,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])||(i[0]=i[1]=o[0]=o[1]=0),r=new Qt(i[0],i[1],o[0]-i[0],o[1]-i[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(t[0],t[1]))return!1;t:for(var o=0,a=i.length;o<a;o++){var s=i[o];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Ls(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(Ls(u[c],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,r,i,o){var a=this.getBoundingRect(),s=a.width/a.height;i?o||(o=i/s):i=s*o;for(var l=new Qt(t,r,i,o),u=a.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++){var d=c[h];d.type==="polygon"?(I0(d.exterior,u),R(d.interiors,function(f){I0(f,u)})):R(d.points,function(f){I0(f,u)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var r=new e(t,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},e}(lC),YF=function(n){Q(e,n);function e(t,r){var i=n.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=r,i}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,r=t.getBoundingRect(),i=[r.x+r.width/2,r.y+r.height/2],o=_p(qF),a=t;a&&!a.isGeoSVGGraphicRoot;)ho(o,a.getLocalTransform(),o),a=a.parent;return pl(o,o),Dn(i,i,o),i},e}(lC);function JF(n){if(!n.UTF8Encoding)return n;var e=n,t=e.UTF8Scale;t==null&&(t=1024);var r=e.features;return R(r,function(i){var o=i.geometry,a=o.encodeOffsets,s=o.coordinates;if(a)switch(o.type){case"LineString":o.coordinates=pC(s,a,t);break;case"Polygon":T0(s,a,t);break;case"MultiLineString":T0(s,a,t);break;case"MultiPolygon":R(s,function(l,u){return T0(l,a[u],t)})}}),e.UTF8Encoding=!1,e}function T0(n,e,t){for(var r=0;r<n.length;r++)n[r]=pC(n[r],e[r],t)}function pC(n,e,t){for(var r=[],i=e[0],o=e[1],a=0;a<n.length;a+=2){var s=n.charCodeAt(a)-64,l=n.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=o,i=s,o=l,r.push([s/t,l/t])}return r}function $F(n,e){return n=JF(n),pt(Me(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,i=t.geometry,o=[];switch(i.type){case"Polygon":var a=i.coordinates;o.push(new uC(a[0],a.slice(1)));break;case"MultiPolygon":R(i.coordinates,function(l){l[0]&&o.push(new uC(l[0],l.slice(1)))});break;case"LineString":o.push(new cC([i.coordinates]));break;case"MultiLineString":o.push(new cC(i.coordinates))}var s=new hC(r[e||"name"],o,r.cp);return s.properties=r,s})}var Jc=de();function dC(n,e){var t=pt(e,function(r){return n.scale.parse(r)});return n.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function QF(n){var e=n.getLabelModel().get("customValues");if(e){var t=Ql(n),r=n.scale.getExtent(),i=dC(n,e),o=Me(i,function(a){return a>=r[0]&&a<=r[1]});return{labels:pt(o,function(a){var s={value:a};return{formattedLabel:t(s),rawLabel:n.scale.getLabel(s),tickValue:a}})}}return n.type==="category"?eG(n):rG(n)}function tG(n,e){var t=n.getTickModel().get("customValues");if(t){var r=n.scale.getExtent(),i=dC(n,t);return{ticks:Me(i,function(o){return o>=r[0]&&o<=r[1]})}}return n.type==="category"?nG(n,e):{ticks:pt(n.scale.getTicks(),function(o){return o.value})}}function eG(n){var e=n.getLabelModel(),t=fC(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function fC(n,e){var t=gC(n,"labels"),r=M0(e),i=vC(t,r);if(i)return i;var o,a;return Et(r)?o=_C(n,r):(a=r==="auto"?iG(n):r,o=mC(n,a)),yC(t,r,{labels:o,labelCategoryInterval:a})}function nG(n,e){var t=gC(n,"ticks"),r=M0(e),i=vC(t,r);if(i)return i;var o,a;if((!e.get("show")||n.scale.isBlank())&&(o=[]),Et(r))o=_C(n,r,!0);else if(r==="auto"){var s=fC(n,n.getLabelModel());a=s.labelCategoryInterval,o=pt(s.labels,function(l){return l.tickValue})}else a=r,o=mC(n,a,!0);return yC(t,r,{ticks:o,tickCategoryInterval:a})}function rG(n){var e=n.scale.getTicks(),t=Ql(n);return{labels:pt(e,function(r,i){return{level:r.level,formattedLabel:t(r,i),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function gC(n,e){return Jc(n)[e]||(Jc(n)[e]=[])}function vC(n,e){for(var t=0;t<n.length;t++)if(n[t].key===e)return n[t].value}function yC(n,e,t){return n.push({key:e,value:t}),t}function iG(n){var e=Jc(n).autoInterval;return e??(Jc(n).autoInterval=n.calculateCategoryInterval())}function oG(n){var e=aG(n),t=Ql(n),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=n.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),d=0,f=0;l<=o[1];l+=s){var g=0,y=0,_=nc(t({value:l}),e.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),f=Math.max(f,y,7)}var v=d/c,p=f/h;isNaN(v)&&(v=1/0),isNaN(p)&&(p=1/0);var x=Math.max(0,Math.floor(Math.min(v,p))),b=Jc(n.model),S=n.getExtent(),M=b.lastAutoInterval,I=b.lastTickCount;return M!=null&&I!=null&&Math.abs(M-x)<=1&&Math.abs(I-a)<=1&&M>x&&b.axisExtent0===S[0]&&b.axisExtent1===S[1]?x=M:(b.lastTickCount=a,b.lastAutoInterval=x,b.axisExtent0=S[0],b.axisExtent1=S[1]),x}function aG(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function mC(n,e,t){var r=Ql(n),i=n.scale,o=i.getExtent(),a=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=oC(n),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&y(o[0]);for(var g=u;g<=o[1];g+=l)y(g);f&&g-l!==o[1]&&y(o[1]);function y(_){var v={value:_};s.push(t?_:{formattedLabel:r(v),rawLabel:i.getLabel(v),tickValue:_})}return s}function _C(n,e,t){var r=n.scale,i=Ql(n),o=[];return R(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;e(a.value,s)&&o.push(t?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var xC=[0,1],wi=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=r&&e<=i},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return g2(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(r=r.slice(),bC(r,i.count())),Ae(e,xC,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),bC(r,i.count()));var o=Ae(e,r,xC,t);return this.scale.scale(o)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=tG(this,t),i=r.ticks,o=pt(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=t.get("alignWithLabel");return sG(this,o,a,e.clamp),o},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),i=pt(r,function(o){return pt(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},n.prototype.getViewLabels=function(){return QF(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},n.prototype.calculateCategoryInterval=function(){return oG(this)},n}();function bC(n,e){var t=n[1]-n[0],r=e,i=t/r/2;n[0]+=i,n[1]-=i}function sG(n,e,t,r){var i=e.length;if(!n.onBand||t||!i)return;var o=n.getExtent(),a,s;if(i===1)e[0].coord=o[0],a=e[1]={coord:o[1],tickValue:e[0].tickValue};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;R(e,function(f){f.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[i-1].tickValue,a={coord:e[i-1].coord+u*s,tickValue:c[1]+1},e.push(a)}var h=o[0]>o[1];d(e[0].coord,o[0])&&(r?e[0].coord=o[0]:e.shift()),r&&d(o[0],e[0].coord)&&e.unshift({coord:o[0]}),d(o[1],a.coord)&&(r?a.coord=o[1]:e.pop()),r&&d(a.coord,o[1])&&e.push({coord:o[1]});function d(f,g){return f=Ye(f),g=Ye(g),h?f>g:f<g}}var $c=Math.PI*2,Ns=Gi.CMD,lG=["top","right","bottom","left"];function uG(n,e,t,r,i){var o=t.width,a=t.height;switch(n){case"top":r.set(t.x+o/2,t.y-e),i.set(0,-1);break;case"bottom":r.set(t.x+o/2,t.y+a+e),i.set(0,1);break;case"left":r.set(t.x-e,t.y+a/2),i.set(-1,0);break;case"right":r.set(t.x+o+e,t.y+a/2),i.set(1,0);break}}function cG(n,e,t,r,i,o,a,s,l){a-=n,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*t+n,h=s*t+e;if(Math.abs(r-i)%$c<1e-4)return l[0]=c,l[1]=h,u-t;if(o){var d=r;r=br(i),i=br(d)}else r=br(r),i=br(i);r>i&&(i+=$c);var f=Math.atan2(s,a);if(f<0&&(f+=$c),f>=r&&f<=i||f+$c>=r&&f+$c<=i)return l[0]=c,l[1]=h,u-t;var g=t*Math.cos(r)+n,y=t*Math.sin(r)+e,_=t*Math.cos(i)+n,v=t*Math.sin(i)+e,p=(g-a)*(g-a)+(y-s)*(y-s),x=(_-a)*(_-a)+(v-s)*(v-s);return p<x?(l[0]=g,l[1]=y,Math.sqrt(p)):(l[0]=_,l[1]=v,Math.sqrt(x))}function pf(n,e,t,r,i,o,a,s){var l=i-n,u=o-e,c=t-n,h=r-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var f=l*c+u*h,g=f/d;s&&(g=Math.min(Math.max(g,0),1)),g*=d;var y=a[0]=n+g*c,_=a[1]=e+g*h;return Math.sqrt((y-i)*(y-i)+(_-o)*(_-o))}function wC(n,e,t,r,i,o,a){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=a[0]=Math.min(Math.max(i,n),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var Si=[];function hG(n,e,t){var r=wC(e.x,e.y,e.width,e.height,n.x,n.y,Si);return t.set(Si[0],Si[1]),r}function pG(n,e,t){for(var r=0,i=0,o=0,a=0,s,l,u=1/0,c=e.data,h=n.x,d=n.y,f=0;f<c.length;){var g=c[f++];f===1&&(r=c[f],i=c[f+1],o=r,a=i);var y=u;switch(g){case Ns.M:o=c[f++],a=c[f++],r=o,i=a;break;case Ns.L:y=pf(r,i,c[f],c[f+1],h,d,Si,!0),r=c[f++],i=c[f++];break;case Ns.C:y=Bw(r,i,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],h,d,Si),r=c[f++],i=c[f++];break;case Ns.Q:y=Gw(r,i,c[f++],c[f++],c[f],c[f+1],h,d,Si),r=c[f++],i=c[f++];break;case Ns.A:var _=c[f++],v=c[f++],p=c[f++],x=c[f++],b=c[f++],S=c[f++];f+=1;var M=!!(1-c[f++]);s=Math.cos(b)*p+_,l=Math.sin(b)*x+v,f<=1&&(o=s,a=l);var I=(h-_)*x/p+_;y=cG(_,v,x,b,b+S,M,I,d,Si),r=Math.cos(b+S)*p+_,i=Math.sin(b+S)*x+v;break;case Ns.R:o=r=c[f++],a=i=c[f++];var C=c[f++],A=c[f++];y=wC(o,a,C,A,h,d,Si);break;case Ns.Z:y=pf(r,i,o,a,h,d,Si,!0),r=o,i=a;break}y<u&&(u=y,t.set(Si[0],Si[1]))}return u}var Mi=new $t,Be=new $t,tn=new $t,qi=new $t,Ki=new $t;function SC(n,e){if(n){var t=n.getTextGuideLine(),r=n.getTextContent();if(r&&t){var i=n.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||lG,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=n.getComputedTransform(),h=c&&pl([],c),d=e.get("length2")||0;u&&tn.copy(u);for(var f=0;f<a.length;f++){var g=a[f];uG(g,0,s,Mi,qi),$t.scaleAndAdd(Be,Mi,qi,d),Be.transform(h);var y=n.getBoundingRect(),_=u?u.distance(Be):n instanceof ae?pG(Be,n.path,tn):hG(Be,y,tn);_<l&&(l=_,Be.transform(c),tn.transform(c),tn.toArray(o[0]),Be.toArray(o[1]),Mi.toArray(o[2]))}MC(o,e.get("minTurnAngle")),t.setShape({points:o})}}}var df=[],rr=new $t;function MC(n,e){if(e<=180&&e>0){e=e/180*Math.PI,Mi.fromArray(n[0]),Be.fromArray(n[1]),tn.fromArray(n[2]),$t.sub(qi,Mi,Be),$t.sub(Ki,tn,Be);var t=qi.len(),r=Ki.len();if(!(t<.001||r<.001)){qi.scale(1/t),Ki.scale(1/r);var i=qi.dot(Ki),o=Math.cos(e);if(o<i){var a=pf(Be.x,Be.y,tn.x,tn.y,Mi.x,Mi.y,df,!1);rr.fromArray(df),rr.scaleAndAdd(Ki,a/Math.tan(Math.PI-e));var s=tn.x!==Be.x?(rr.x-Be.x)/(tn.x-Be.x):(rr.y-Be.y)/(tn.y-Be.y);if(isNaN(s))return;s<0?$t.copy(rr,Be):s>1&&$t.copy(rr,tn),rr.toArray(n[1])}}}}function dG(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Mi.fromArray(n[0]),Be.fromArray(n[1]),tn.fromArray(n[2]),$t.sub(qi,Be,Mi),$t.sub(Ki,tn,Be);var r=qi.len(),i=Ki.len();if(!(r<.001||i<.001)){qi.scale(1/r),Ki.scale(1/i);var o=qi.dot(e),a=Math.cos(t);if(o<a){var s=pf(Be.x,Be.y,tn.x,tn.y,Mi.x,Mi.y,df,!1);rr.fromArray(df);var l=Math.PI/2,u=Math.acos(Ki.dot(e)),c=l+u-t;if(c>=l)$t.copy(rr,tn);else{rr.scaleAndAdd(Ki,s/Math.tan(Math.PI/2-c));var h=tn.x!==Be.x?(rr.x-Be.x)/(tn.x-Be.x):(rr.y-Be.y)/(tn.y-Be.y);if(isNaN(h))return;h<0?$t.copy(rr,Be):h>1&&$t.copy(rr,tn)}rr.toArray(n[1])}}}}function C0(n,e,t,r){var i=t==="normal",o=i?n:n.ensureState(t);o.ignore=e;var a=r.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?n.useStyle(s):o.style=s}function fG(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var i=Zo(r[0],r[1]),o=Zo(r[1],r[2]);if(!i||!o){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var a=Math.min(i,o)*t,s=mp([],r[1],r[0],a/i),l=mp([],r[1],r[2],a/o),u=mp([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)n.lineTo(r[c][0],r[c][1])}function A0(n,e,t){var r=n.getTextGuideLine(),i=n.getTextContent();if(!i){r&&n.removeTextGuideLine();return}for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<pc.length;l++){var u=pc[l],c=e[u],h=u==="normal";if(c){var d=c.get("show"),f=h?s:Ht(i.states[u]&&i.states[u].ignore,s);if(f||!Ht(d,a)){var g=h?r:r&&r.states[u];g&&(g.ignore=!0),r&&C0(r,!0,u,c);continue}r||(r=new er,n.setTextGuideLine(r),!h&&(s||!a)&&C0(r,!0,"normal",e.normal),n.stateProxy&&(r.stateProxy=n.stateProxy)),C0(r,!1,u,c)}}if(r){Ft(r.style,t),r.style.fill=null;var y=o.get("showAbove"),_=n.textGuideLineConfig=n.textGuideLineConfig||{};_.showAbove=y||!1,r.buildPath=fG}}function k0(n,e){e=e||"labelLine";for(var t={normal:n.getModel(e)},r=0;r<$n.length;r++){var i=$n[r];t[i]=n.getModel([i,e])}return t}function IC(n){for(var e=[],t=0;t<n.length;t++){var r=n[t];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new pd(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function TC(n,e,t,r,i,o){var a=n.length;if(a<2)return;n.sort(function(M,I){return M.rect[e]-I.rect[e]});for(var s=0,l,u=!1,c=0;c<a;c++){var h=n[c],d=h.rect;l=d[e]-s,l<0&&(d[e]-=l,h.label[e]-=l,u=!0),s=d[e]+d[t]}var f=n[0],g=n[a-1],y,_;v(),y<0&&b(-y,.8),_<0&&b(_,.8),v(),p(y,_,1),p(_,y,-1),v(),y<0&&S(-y),_<0&&S(_);function v(){y=f.rect[e]-r,_=i-g.rect[e]-g.rect[t]}function p(M,I,C){if(M<0){var A=Math.min(I,-M);if(A>0){x(A*C,0,a);var D=A+M;D<0&&b(-D*C,1)}else b(-M*C,1)}}function x(M,I,C){M!==0&&(u=!0);for(var A=I;A<C;A++){var D=n[A],N=D.rect;N[e]+=M,D.label[e]+=M}}function b(M,I){for(var C=[],A=0,D=1;D<a;D++){var N=n[D-1].rect,L=Math.max(n[D].rect[e]-N[e]-N[t],0);C.push(L),A+=L}if(A){var E=Math.min(Math.abs(M)/A,I);if(M>0)for(var D=0;D<a-1;D++){var k=C[D]*E;x(k,0,D+1)}else for(var D=a-1;D>0;D--){var k=C[D-1]*E;x(-k,D,a)}}}function S(M){var I=M<0?-1:1;M=Math.abs(M);for(var C=Math.ceil(M/(a-1)),A=0;A<a-1;A++)if(I>0?x(C,0,A+1):x(-C,a-A-1,a),M-=C,M<=0)return}return u}function gG(n,e,t,r){return TC(n,"x","width",e,t)}function CC(n,e,t,r){return TC(n,"y","height",e,t)}function AC(n){var e=[];n.sort(function(y,_){return _.priority-y.priority});var t=new Qt(0,0,0,0);function r(y){if(!y.ignore){var _=y.ensureState("emphasis");_.ignore==null&&(_.ignore=!1)}y.ignore=!0}for(var i=0;i<n.length;i++){var o=n[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;t.copy(o.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=o.obb,d=!1,f=0;f<e.length;f++){var g=e[f];if(t.intersect(g.rect)){if(a&&g.axisAligned){d=!0;break}if(g.obb||(g.obb=new pd(g.localRect,g.transform)),h||(h=new pd(s,l)),h.intersect(g.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function vG(n){if(n){for(var e=[],t=0;t<n.length;t++)e.push(n[t].slice());return e}}function yG(n,e){var t=n.label,r=e&&e.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:vG(r&&r.shape.points)}}var kC=["align","verticalAlign","width","height","fontSize"],ir=new go,D0=de(),mG=de();function ff(n,e,t){for(var r=0;r<t.length;r++){var i=t[r];e[i]!=null&&(n[i]=e[i])}}var gf=["x","y","rotation"],_G=function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(e,t,r,i,o){var a=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();Qt.applyTransform(c,c,u),u?ir.setLocalTransform(u):(ir.x=ir.y=ir.rotation=ir.originX=ir.originY=0,ir.scaleX=ir.scaleY=1),ir.rotation=br(ir.rotation);var h=i.__hostTarget,d;if(h){d=h.getBoundingRect().plain();var f=h.getComputedTransform();Qt.applyTransform(d,d,f)}var g=d&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:g,seriesModel:r,dataIndex:e,dataType:t,layoutOption:o,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:g&&g.ignore,x:ir.x,y:ir.y,scaleX:ir.scaleX,scaleY:ir.scaleY,rotation:ir.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},n.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var r=e.__model,i=r.get("labelLayout");(Et(i)||ue(i).length)&&e.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=Ut(o);a&&!a.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,r,a,i)})},n.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),r=e.getHeight();function i(x,b){return function(){SC(x,b)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,u=a.defaultAttr,c=void 0;Et(a.layoutOption)?c=a.layoutOption(yG(a,l)):c=a.layoutOption,c=c||{},a.computedLayoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=Mt(c.x,t),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Mt(c.y,r),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var f=l.getTextGuideLine();f&&(f.setShape({points:c.labelLinePoints}),d=!1)}var g=D0(s);g.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var y=0;y<kC.length;y++){var _=kC[y];s.setStyle(_,c[_]!=null?c[_]:u.style[_])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var v=a.seriesModel;if(a.dataIndex!=null){var p=a.seriesModel.getData(a.dataType);v=p.getItemModel(a.dataIndex)}s.on("drag",i(l,v.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},n.prototype.layout=function(e){var t=e.getWidth(),r=e.getHeight(),i=IC(this._labelList),o=Me(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=Me(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});gG(o,0,t),CC(a,0,r);var s=Me(i,function(l){return l.layoutOption.hideOverlap});AC(s)},n.prototype.processLabelsOverall=function(){var e=this;R(this._chartViewList,function(t){var r=t.__model,i=t.ignoreLabelLineUpdate,o=r.isAnimationEnabled();t.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!i,l=a.getTextContent();!s&&l&&(s=D0(l).needsUpdateLabelLine),s&&e._updateLabelLine(a,r),o&&e._animateLabels(a,r)})})},n.prototype._updateLabelLine=function(e,t){var r=e.getTextContent(),i=Ut(e),o=i.dataIndex;if(r&&o!=null){var a=t.getData(i.dataType),s=a.getItemModel(o),l={},u=a.getItemVisual(o,"style");if(u){var c=a.getVisual("drawType");l.stroke=u[c]}var h=s.getModel("labelLine");A0(e,k0(s),l),SC(e,h)}},n.prototype._animateLabels=function(e,t){var r=e.getTextContent(),i=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!Al(e))){var o=D0(r),a=o.oldLayout,s=Ut(e),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=t.getData(s.dataType);if(a){r.attr(a);var h=e.prevStates;h&&(te(h,"select")>=0&&r.attr(o.oldLayoutSelect),te(h,"emphasis")>=0&&r.attr(o.oldLayoutEmphasis)),_e(r,u,t,l)}else if(r.attr(u),!Dl(r).valueAnimation){var d=Ht(r.style.opacity,1);r.style.opacity=0,We(r,{style:{opacity:d}},t,l)}if(o.oldLayout=u,r.states.select){var f=o.oldLayoutSelect={};ff(f,u,gf),ff(f,r.states.select,gf)}if(r.states.emphasis){var g=o.oldLayoutEmphasis={};ff(g,u,gf),ff(g,r.states.emphasis,gf)}tM(r,l,c,t,t)}if(i&&!i.ignore&&!i.invisible){var o=mG(i),a=o.oldLayout,y={points:i.shape.points};a?(i.attr({shape:a}),_e(i,{shape:y},t)):(i.setShape(y),i.style.strokePercent=0,We(i,{style:{strokePercent:1}},t)),o.oldLayout=y}},n}(),L0=de();function xG(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var i=L0(t).labelManager;i||(i=L0(t).labelManager=new _G),i.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var i=L0(t).labelManager;r.updatedSeries.forEach(function(o){i.addLabelsOfSeries(t.getViewOfSeriesModel(o))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}var N0=Math.sin,P0=Math.cos,DC=Math.PI,Ps=Math.PI*2,bG=180/DC,LC=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,i,o,a){this._add("C",e,t,r,i,o,a)},n.prototype.quadraticCurveTo=function(e,t,r,i){this._add("Q",e,t,r,i)},n.prototype.arc=function(e,t,r,i,o,a){this.ellipse(e,t,r,r,0,i,o,a)},n.prototype.ellipse=function(e,t,r,i,o,a,s,l){var u=s-a,c=!l,h=Math.abs(u),d=ta(h-Ps)||(c?u>=Ps:-u>=Ps),f=u>0?u%Ps:u%Ps+Ps,g=!1;d?g=!0:ta(h)?g=!1:g=f>=DC==!!c;var y=e+r*P0(a),_=t+i*N0(a);this._start&&this._add("M",y,_);var v=Math.round(o*bG);if(d){var p=1/this._p,x=(c?1:-1)*(Ps-p);this._add("A",r,i,v,1,+c,e+r*P0(a+x),t+i*N0(a+x)),p>.01&&this._add("A",r,i,v,0,+c,y,_)}else{var b=e+r*P0(s),S=t+i*N0(s);this._add("A",r,i,v,+g,+c,b,S)}},n.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,i,o,a,s,l,u){for(var c=[],h=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}c.push(Math.round(f*h)/h)}this._d.push(e+c.join(" ")),this._start=e==="Z"},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},n.prototype.getStr=function(){return this._str},n}(),E0="none",wG=Math.round;function SG(n){var e=n.fill;return e!=null&&e!==E0}function MG(n){var e=n.stroke;return e!=null&&e!==E0}var R0=["lineCap","miterLimit","lineJoin"],IG=pt(R0,function(n){return"stroke-"+n.toLowerCase()});function TG(n,e,t,r){var i=e.opacity==null?1:e.opacity;if(t instanceof Tn){n("opacity",i);return}if(SG(e)){var o=$u(e.fill);n("fill",o.color);var a=e.fillOpacity!=null?e.fillOpacity*o.opacity*i:o.opacity*i;a<1&&n("fill-opacity",a)}else n("fill",E0);if(MG(e)){var s=$u(e.stroke);n("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if(u!==1&&n("stroke-width",u),h&&n("paint-order",h?"stroke":"fill"),c<1&&n("stroke-opacity",c),e.lineDash){var d=Km(t),f=d[0],g=d[1];f&&(g=wG(g||0),n("stroke-dasharray",f.join(",")),(g||r)&&n("stroke-dashoffset",g))}for(var y=0;y<R0.length;y++){var _=R0[y];if(e[_]!==Qp[_]){var v=e[_]||Qp[_];v&&n(IG[y],v)}}}}var NC="http://www.w3.org/2000/svg",PC="http://www.w3.org/1999/xlink",CG="http://www.w3.org/2000/xmlns/",AG="http://www.w3.org/XML/1998/namespace",EC="ecmeta_";function RC(n){return document.createElementNS(NC,n)}function bn(n,e,t,r,i){return{tag:n,attrs:t||{},children:r,text:i,key:e}}function kG(n,e){var t=[];if(e)for(var r in e){var i=e[r],o=r;i!==!1&&(i!==!0&&i!=null&&(o+='="'+i+'"'),t.push(o))}return"<"+n+" "+t.join(" ")+">"}function DG(n){return"</"+n+">"}function O0(n,e){e=e||{};var t=e.newline?`
79
+ `:"";function r(i){var o=i.children,a=i.tag,s=i.attrs,l=i.text;return kG(a,s)+(a!=="style"?Kn(l):l||"")+(o?""+t+pt(o,function(u){return r(u)}).join(t)+t:"")+DG(a)}return r(n)}function LG(n,e,t){t=t||{};var r=t.newline?`
80
+ `:"",i=" {"+r,o=r+"}",a=pt(ue(n),function(l){return l+i+pt(ue(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+o}).join(r),s=pt(ue(e),function(l){return"@keyframes "+l+i+pt(ue(e[l]),function(u){return u+i+pt(ue(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(r)+o}).join(r)+o}).join(r);return!a&&!s?"":["<![CDATA[",a,s,"]]>"].join(r)}function z0(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function OC(n,e,t,r){return bn("svg","root",{width:n,height:e,xmlns:NC,"xmlns:xlink":PC,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var NG=0;function zC(){return NG++}var VC={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Es="transform-origin";function PG(n,e,t){var r=lt({},n.shape);lt(r,e),n.buildPath(t,r);var i=new LC;return i.reset(Yw(n)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function EG(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[Es]=t+"px "+r+"px")}var RG={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function BC(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function OG(n,e,t){var r=n.shape.paths,i={},o,a;if(R(r,function(l){var u=z0(t.zrId);u.animation=!0,vf(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,d=ue(c),f=d.length;if(f){a=d[f-1];var g=c[a];for(var y in g){var _=g[y];i[y]=i[y]||{d:""},i[y].d+=_.d||""}for(var v in h){var p=h[v].animation;p.indexOf(a)>=0&&(o=p)}}}),!!o){e.d=!1;var s=BC(i,t);return o.replace(a,s)}}function FC(n){return Tt(n)?VC[n]?"cubic-bezier("+VC[n]+")":Gv(n)?n:"":""}function vf(n,e,t,r){var i=n.animators,o=i.length,a=[];if(n instanceof rm){var s=OG(n,e,t);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],d=FC(c.getClip().easing),f=c.getDelay();d?h.push(d):h.push("linear"),f&&h.push(f/1e3+"s"),c.getLoop()&&h.push("infinite");var g=h.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(c)}function y(p){var x=p[1],b=x.length,S={},M={},I={},C="animation-timing-function";function A(wt,xt,Ot){for(var bt=wt.getTracks(),Nt=wt.getMaxTime(),se=0;se<bt.length;se++){var O=bt[se];if(O.needsAnimate()){var st=O.keyframes,it=O.propName;if(Ot&&(it=Ot(it)),it)for(var Z=0;Z<st.length;Z++){var U=st[Z],tt=Math.round(U.time/Nt*100)+"%",ft=FC(U.easing),gt=U.rawValue;(Tt(gt)||ye(gt))&&(xt[tt]=xt[tt]||{},xt[tt][it]=U.rawValue,ft&&(xt[tt][C]=ft))}}}}for(var D=0;D<b;D++){var N=x[D],L=N.targetName;L?L==="shape"&&A(N,M):!r&&A(N,S)}for(var E in S){var k={};l2(k,n),lt(k,S[E]);var z=Jw(k),F=S[E][C];I[E]=z?{transform:z}:{},EG(I[E],k),F&&(I[E][C]=F)}var W,q=!0;for(var E in M){I[E]=I[E]||{};var j=!W,F=M[E][C];j&&(W=new Gi);var J=W.len();W.reset(),I[E].d=PG(n,M[E],W);var H=W.len();if(!j&&J!==H){q=!1;break}F&&(I[E][C]=F)}if(!q)for(var E in I)delete I[E].d;if(!r)for(var D=0;D<b;D++){var N=x[D],L=N.targetName;L==="style"&&A(N,I,function(bt){return RG[bt]})}for(var K=ue(I),ut=!0,at,D=1;D<K.length;D++){var ot=K[D-1],Rt=K[D];if(I[ot][Es]!==I[Rt][Es]){ut=!1;break}at=I[ot][Es]}if(ut&&at){for(var E in I)I[E][Es]&&delete I[E][Es];e[Es]=at}if(Me(K,function(wt){return ue(I[wt]).length>0}).length){var Jt=BC(I,t);return Jt+" "+p[0]+" both"}}for(var _ in l){var s=y(l[_]);s&&a.push(s)}if(a.length){var v=t.zrId+"-cls-"+zC();t.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function zG(n,e,t){if(!n.ignore)if(n.isSilent()){var r={"pointer-events":"none"};GC(r,e,t)}else{var i=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},o=i.fill;if(!o){var a=n.style&&n.style.fill,s=n.states.select&&n.states.select.style&&n.states.select.style.fill,l=n.currentStates.indexOf("select")>=0&&s||a;l&&(o=qv(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&n.transform?n.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),GC(r,e,t)}}function GC(n,e,t,r){var i=JSON.stringify(n),o=t.cssStyleCache[i];o||(o=t.zrId+"-cls-"+zC(),t.cssStyleCache[i]=o,t.cssNodes["."+o+":hover"]=n),e.class=e.class?e.class+" "+o:o}var Qc=Math.round;function WC(n){return n&&Tt(n.src)}function jC(n){return n&&Et(n.toDataURL)}function V0(n,e,t,r){TG(function(i,o){var a=i==="fill"||i==="stroke";a&&Kw(o)?KC(e,n,i,r):a&&Yv(o)?YC(t,n,i,r):n[i]=o,a&&r.ssr&&o==="none"&&(n["pointer-events"]="visible")},e,t,!1),HG(t,n,r)}function B0(n,e){var t=Az(e);t&&(t.each(function(r,i){r!=null&&(n[(EC+i).toLowerCase()]=r+"")}),e.isSilent()&&(n[EC+"silent"]="true"))}function HC(n){return ta(n[0]-1)&&ta(n[1])&&ta(n[2])&&ta(n[3]-1)}function VG(n){return ta(n[4])&&ta(n[5])}function F0(n,e,t){if(e&&!(VG(e)&&HC(e))){var r=1e4;n.transform=HC(e)?"translate("+Qc(e[4]*r)/r+" "+Qc(e[5]*r)/r+")":Y3(e)}}function UC(n,e,t){for(var r=n.points,i=[],o=0;o<r.length;o++)i.push(Qc(r[o][0]*t)/t),i.push(Qc(r[o][1]*t)/t);e.points=i.join(" ")}function XC(n){return!n.smooth}function BG(n){var e=pt(n,function(t){return typeof t=="string"?[t,t]:t});return function(t,r,i){for(var o=0;o<e.length;o++){var a=e[o],s=t[a[0]];s!=null&&(r[a[1]]=Qc(s*i)/i)}}}var FG={circle:[BG(["cx","cy","r"])],polyline:[UC,XC],polygon:[UC,XC]};function GG(n){for(var e=n.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function ZC(n,e){var t=n.style,r=n.shape,i=FG[n.type],o={},a=e.animation,s="path",l=n.style.strokePercent,u=e.compress&&Yw(n)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](r))&&!(a&&GG(n))&&!(l<1)){s=n.type;var c=Math.pow(10,u);i[0](r,o,c)}else{var h=!n.path||n.shapeChanged();n.path||n.createPathProxy();var d=n.path;h&&(d.beginPath(),n.buildPath(d,n.shape),n.pathUpdated());var f=d.getVersion(),g=n,y=g.__svgPathBuilder;(g.__svgPathVersion!==f||!y||l!==g.__svgPathStrokePercent)&&(y||(y=g.__svgPathBuilder=new LC),y.reset(u),d.rebuildPath(y,l),y.generateStr(),g.__svgPathVersion=f,g.__svgPathStrokePercent=l),o.d=y.getStr()}return F0(o,n.transform),V0(o,t,n,e),B0(o,n),e.animation&&vf(n,o,e),e.emphasis&&zG(n,o,e),bn(s,n.id+"",o)}function WG(n,e){var t=n.style,r=t.image;if(r&&!Tt(r)&&(WC(r)?r=r.src:jC(r)&&(r=r.toDataURL())),!!r){var i=t.x||0,o=t.y||0,a=t.width,s=t.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),F0(l,n.transform),V0(l,t,n,e),B0(l,n),e.animation&&vf(n,l,e),bn("image",n.id+"",l)}}function jG(n,e){var t=n.style,r=t.text;if(r!=null&&(r+=""),!(!r||isNaN(t.x)||isNaN(t.y))){var i=t.font||Uo,o=t.x||0,a=$3(t.y||0,Gp(i),t.textBaseline),s=J3[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(eS(t)){var u="",c=t.fontStyle,h=Q2(t.fontSize);if(!parseFloat(h))return;var d=t.fontFamily||sw,f=t.fontWeight;u+="font-size:"+h+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),f&&f!=="normal"&&(u+="font-weight:"+f+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),F0(l,n.transform),V0(l,t,n,e),B0(l,n),e.animation&&vf(n,l,e),bn("text",n.id+"",l,void 0,r)}}function qC(n,e){if(n instanceof ae)return ZC(n,e);if(n instanceof Tn)return WG(n,e);if(n instanceof bl)return jG(n,e)}function HG(n,e,t){var r=n.style;if(Q3(r)){var i=tz(n),o=t.shadowCache,a=o[i];if(!a){var s=n.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,d=r.shadowBlur,f=$u(r.shadowColor),g=f.opacity,y=f.color,_=d/2/l,v=d/2/u,p=_+" "+v;a=t.zrId+"-s"+t.shadowIdx++,t.defs[a]=bn("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[bn("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:p,"flood-color":y,"flood-opacity":g})]),o[i]=a}e.filter=Pp(a)}}function KC(n,e,t,r){var i=n[t],o,a={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Zw(i))o="linearGradient",a.x1=i.x,a.y1=i.y,a.x2=i.x2,a.y2=i.y2;else if(qw(i))o="radialGradient",a.cx=Ht(i.x,.5),a.cy=Ht(i.y,.5),a.r=Ht(i.r,.5);else{process.env.NODE_ENV!=="production"&&ci("Illegal gradient type.");return}for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=Kv(s[u].offset)*100+"%",d=s[u].color,f=$u(d),g=f.color,y=f.opacity,_={offset:h};_["stop-color"]=g,y<1&&(_["stop-opacity"]=y),l.push(bn("stop",u+"",_))}var v=bn(o,"",a,l),p=O0(v),x=r.gradientCache,b=x[p];b||(b=r.zrId+"-g"+r.gradientIdx++,x[p]=b,a.id=b,r.defs[b]=bn(o,b,a,l)),e[t]=Pp(b)}function YC(n,e,t,r){var i=n.style[t],o=n.getBoundingRect(),a={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",h;if(Xw(i)){var d=i.imageWidth,f=i.imageHeight,g=void 0,y=i.image;if(Tt(y)?g=y:WC(y)?g=y.src:jC(y)&&(g=y.toDataURL()),typeof Image>"u"){var _="Image width/height must been given explictly in svg-ssr renderer.";Bt(d,_),Bt(f,_)}else if(d==null||f==null){var v=function(D,N){if(D){var L=D.elm,E=d||N.width,k=f||N.height;D.tag==="pattern"&&(u?(k=1,E/=o.width):c&&(E=1,k/=o.height)),D.attrs.width=E,D.attrs.height=k,L&&(L.setAttribute("width",E),L.setAttribute("height",k))}},p=Ty(g,null,n,function(D){l||v(M,D),v(h,D)});p&&p.width&&p.height&&(d=d||p.width,f=f||p.height)}h=bn("image","img",{href:g,width:d,height:f}),a.width=d,a.height=f}else i.svgElement&&(h=Wt(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(h){var x,b;l?x=b=1:u?(b=1,x=a.width/o.width):c?(x=1,b=a.height/o.height):a.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(a.width=x),b!=null&&!isNaN(b)&&(a.height=b);var S=Jw(i);S&&(a.patternTransform=S);var M=bn("pattern","",a,[h]),I=O0(M),C=r.patternCache,A=C[I];A||(A=r.zrId+"-p"+r.patternIdx++,C[I]=A,a.id=A,M=r.defs[A]=bn("pattern",A,a,[h])),e[t]=Pp(A)}}function UG(n,e,t){var r=t.clipPathCache,i=t.defs,o=r[n.id];if(!o){o=t.zrId+"-c"+t.clipPathIdx++;var a={id:o};r[n.id]=o,i[o]=bn("clipPath",o,a,[ZC(n,t)])}e["clip-path"]=Pp(o)}function JC(n){return document.createTextNode(n)}function Rs(n,e,t){n.insertBefore(e,t)}function $C(n,e){n.removeChild(e)}function QC(n,e){n.appendChild(e)}function tA(n){return n.parentNode}function eA(n){return n.nextSibling}function G0(n,e){n.textContent=e}var nA=58,XG=120,ZG=bn("","");function W0(n){return n===void 0}function Yi(n){return n!==void 0}function qG(n,e,t){for(var r={},i=e;i<=t;++i){var o=n[i].key;o!==void 0&&(process.env.NODE_ENV!=="production"&&r[o]!=null&&console.error("Duplicate key "+o),r[o]=i)}return r}function th(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function eh(n){var e,t=n.children,r=n.tag;if(Yi(r)){var i=n.elm=RC(r);if(j0(ZG,n),ht(t))for(e=0;e<t.length;++e){var o=t[e];o!=null&&QC(i,eh(o))}else Yi(n.text)&&!Vt(n.text)&&QC(i,JC(n.text))}else n.elm=JC(n.text);return n.elm}function rA(n,e,t,r,i){for(;r<=i;++r){var o=t[r];o!=null&&Rs(n,eh(o),e)}}function yf(n,e,t,r){for(;t<=r;++t){var i=e[t];if(i!=null)if(Yi(i.tag)){var o=tA(i.elm);$C(o,i.elm)}else $C(n,i.elm)}}function j0(n,e){var t,r=e.elm,i=n&&n.attrs||{},o=e.attrs||{};if(i!==o){for(t in o){var a=o[t],s=i[t];s!==a&&(a===!0?r.setAttribute(t,""):a===!1?r.removeAttribute(t):t==="style"?r.style.cssText=a:t.charCodeAt(0)!==XG?r.setAttribute(t,a):t==="xmlns:xlink"||t==="xmlns"?r.setAttributeNS(CG,t,a):t.charCodeAt(3)===nA?r.setAttributeNS(AG,t,a):t.charCodeAt(5)===nA?r.setAttributeNS(PC,t,a):r.setAttribute(t,a))}for(t in i)t in o||r.removeAttribute(t)}}function KG(n,e,t){for(var r=0,i=0,o=e.length-1,a=e[0],s=e[o],l=t.length-1,u=t[0],c=t[l],h,d,f,g;r<=o&&i<=l;)a==null?a=e[++r]:s==null?s=e[--o]:u==null?u=t[++i]:c==null?c=t[--l]:th(a,u)?(tu(a,u),a=e[++r],u=t[++i]):th(s,c)?(tu(s,c),s=e[--o],c=t[--l]):th(a,c)?(tu(a,c),Rs(n,a.elm,eA(s.elm)),a=e[++r],c=t[--l]):th(s,u)?(tu(s,u),Rs(n,s.elm,a.elm),s=e[--o],u=t[++i]):(W0(h)&&(h=qG(e,r,o)),d=h[u.key],W0(d)?Rs(n,eh(u),a.elm):(f=e[d],f.tag!==u.tag?Rs(n,eh(u),a.elm):(tu(f,u),e[d]=void 0,Rs(n,f.elm,a.elm))),u=t[++i]);(r<=o||i<=l)&&(r>o?(g=t[l+1]==null?null:t[l+1].elm,rA(n,g,t,i,l)):yf(n,e,r,o))}function tu(n,e){var t=e.elm=n.elm,r=n.children,i=e.children;n!==e&&(j0(n,e),W0(e.text)?Yi(r)&&Yi(i)?r!==i&&KG(t,r,i):Yi(i)?(Yi(n.text)&&G0(t,""),rA(t,null,i,0,i.length-1)):Yi(r)?yf(t,r,0,r.length-1):Yi(n.text)&&G0(t,""):n.text!==e.text&&(Yi(r)&&yf(t,r,0,r.length-1),G0(t,e.text)))}function YG(n,e){if(th(n,e))tu(n,e);else{var t=n.elm,r=tA(t);eh(e),r!==null&&(Rs(r,e.elm,eA(t)),yf(r,[n],0,0))}return e}var JG=0,$G=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=iA("refreshHover"),this.configLayer=iA("configLayer"),this.storage=t,this._opts=r=lt({},r),this.root=e,this._id="zr"+JG++,this._oldVNode=OC(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=RC("svg");j0(null,this._oldVNode),i.appendChild(o),e.appendChild(i)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",YG(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return qC(e,z0(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=z0(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis,o.ssr=this._opts.ssr;var a=[],s=this._bgVNode=QG(r,i,this._backgroundColor,o);s&&a.push(s);var l=e.compress?null:this._mainVNode=bn("g","main",{},[]);this._paintList(t,o,l?l.children:a),l&&a.push(l);var u=pt(ue(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(bn("defs","defs",{},u)),e.animation){var c=LG(o.cssNodes,o.cssAnims,{newline:!0});if(c){var h=bn("style","stl",{},[],c);a.push(h)}}return OC(r,i,a,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},O0(this.renderToVNode({animation:Ht(e.cssAnimation,!0),emphasis:Ht(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ht(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var i=e.length,o=[],a=0,s,l,u=0,c=0;c<i;c++){var h=e[c];if(!h.invisible){var d=h.__clipPaths,f=d&&d.length||0,g=l&&l.length||0,y=void 0;for(y=Math.max(f-1,g-1);y>=0&&!(d&&l&&d[y]===l[y]);y--);for(var _=g-1;_>y;_--)a--,s=o[a-1];for(var v=y+1;v<f;v++){var p={};UG(d[v],p,t);var x=bn("g","clip-g-"+u++,p,[]);(s?s.children:r).push(x),o[a++]=x,s=x}l=d;var b=qC(h,t);b&&(s?s.children:r).push(b)}}},n.prototype.resize=function(e,t){var r=this._opts,i=this.root,o=this._viewport;if(e!=null&&(r.width=e),t!=null&&(r.height=t),i&&o&&(o.style.display="none",e=Zl(i,0,r),t=Zl(i,1,r),o.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,o){var a=o.style;a.width=e+"px",a.height=t+"px"}if(Yv(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},n.prototype.toDataURL=function(e){var t=this.renderToString(),r="data:image/svg+xml;";return e?(t=nz(t),t&&r+"base64,"+t):r+"charset=UTF-8,"+encodeURIComponent(t)},n}();function iA(n){return function(){process.env.NODE_ENV!=="production"&&ci('In SVG mode painter not support method "'+n+'"')}}function QG(n,e,t,r){var i;if(t&&t!=="none")if(i=bn("rect","bg",{width:n,height:e,x:"0",y:"0"}),Kw(t))KC({fill:t},i.attrs,"fill",r);else if(Yv(t))YC({style:{fill:t},dirty:Qe,getBoundingRect:function(){return{width:n,height:e}}},i.attrs,"fill",r);else{var o=$u(t),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}function tW(n){n.registerPainter("svg",$G)}function oA(n,e,t){var r=Xo.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",n)),r.width=i*t,r.height=o*t,r}var H0=function(n){Q(e,n);function e(t,r,i){var o=n.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||Fp,typeof t=="string"?a=oA(t,r,i):Vt(t)&&(a=t,t=a.id),o.id=t,o.dom=a;var s=a.style;return s&&(vw(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=oA("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new Qt(0,0,0,0);function c(p){if(!(!p.isFinite()||p.isZero()))if(a.length===0){var x=new Qt(0,0,0,0);x.copy(p),a.push(x)}else{for(var b=!1,S=1/0,M=0,I=0;I<a.length;++I){var C=a[I];if(C.intersect(p)){var A=new Qt(0,0,0,0);A.copy(C),A.union(p),a[I]=A,b=!0;break}else if(l){u.copy(p),u.union(C);var D=p.width*p.height,N=C.width*C.height,L=u.width*u.height,E=L-D-N;E<S&&(S=E,M=I)}}if(l&&(a[M].union(p),b=!0),!b){var x=new Qt(0,0,0,0);x.copy(p),a.push(x)}l||(l=a.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var d=t[h];if(d){var f=d.shouldBePainted(i,o,!0,!0),g=d.__isRendered&&(d.__dirty&Ni||!f)?d.getPrevPaintRect():null;g&&c(g);var y=f&&(d.__dirty&Ni||!d.__isRendered)?d.getPaintRect():null;y&&c(y)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var d=r[h],f=d&&d.shouldBePainted(i,o,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var g=d.getPrevPaintRect();g&&c(g)}}var _;do{_=!1;for(var h=0;h<a.length;){if(a[h].isZero()){a.splice(h,1);continue}for(var v=h+1;v<a.length;)a[h].intersect(a[v])?(_=!0,a[h].union(a[v]),a.splice(v,1)):v++;h++}}while(_);return this._paintRects=a,a},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,r){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=t+"px",a.height=r+"px"),o.width=t*i,o.height=r*i,s&&(s.width=t*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,r,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,h=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/h,l/h));var f=this.domBack;function g(y,_,v,p){if(a.clearRect(y,_,v,p),r&&r!=="transparent"){var x=void 0;if(dp(r)){var b=r.global||r.__width===v&&r.__height===p;x=b&&r.__canvasGradient||qm(a,r,{x:0,y:0,width:v,height:p}),r.__canvasGradient=x,r.__width=v,r.__height=p}else c3(r)&&(r.scaleX=r.scaleX||h,r.scaleY=r.scaleY||h,x=Ym(a,r,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));a.save(),a.fillStyle=x||r,a.fillRect(y,_,v,p),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(f,y,_,v,p),a.restore())}!i||u?g(0,0,s,l):i.length&&R(i,function(y){g(y.x*h,y.y*h,y.width*h,y.height*h)})},e}(Er),aA=1e5,Os=314159,mf=.01,eW=.001;function nW(n){return n?n.__builtin__?!0:!(typeof n.resize!="function"||typeof n.refresh!="function"):!1}function rW(n,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+n+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var iW=function(){function n(e,t,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=lt({},r||{}),this.dpr=r.devicePixelRatio||Fp,this._singleCanvas=o,this.root=e;var a=e.style;a&&(vw(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var u=e,c=u.width,h=u.height;r.width!=null&&(c=r.width),r.height!=null&&(h=r.height),this.dpr=r.devicePixelRatio||1,u.width=c*this.dpr,u.height=h*this.dpr,this._width=c,this._height=h;var d=new H0(u,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Os]=d,d.zlevel=Os,s.push(Os),this._domRoot=e}else{this._width=Zl(e,0,r),this._height=Zl(e,1,r);var f=this._domRoot=rW(this._width,this._height);e.appendChild(f)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,r,e,this._redrawId);for(var o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(e){var t=e.length,r=this._hoverlayer;if(r&&r.clear(),!!t){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<t;a++){var s=e[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(aA)),o||(o=r.ctx,o.save()),As(o,s,i,a===t-1))}o&&o.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(aA)},n.prototype.paintOne=function(e,t){rT(e,t)},n.prototype._paintList=function(e,t,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(e);var o=this._doPaintList(e,t,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Mp(function(){l._paintList(e,t,r,i)})}}},n.prototype._compositeManually=function(){var e=this.getLayer(Os).ctx,t=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,t,r),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,t,r)})},n.prototype._doPaintList=function(e,t,r){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u)}for(var c=!0,h=!1,d=function(y){var _=o[y],v=_.ctx,p=a&&_.createRepaintRects(e,t,f._width,f._height),x=r?_.__startIndex:_.__drawIndex,b=!r&&_.incremental&&Date.now,S=b&&Date.now(),M=_.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(_.__startIndex===_.__endIndex)_.clear(!1,M,p);else if(x===_.__startIndex){var I=e[x];(!I.incremental||!I.notClear||r)&&_.clear(!1,M,p)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=_.__startIndex);var C,A=function(E){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=x;C<_.__endIndex;C++){var z=e[C];if(z.__inHover&&(h=!0),i._doPaintEl(z,_,a,E,k,C===_.__endIndex-1),b){var F=Date.now()-S;if(F>15)break}}k.prevElClipPaths&&v.restore()};if(p)if(p.length===0)C=_.__endIndex;else for(var D=f.dpr,N=0;N<p.length;++N){var L=p[N];v.save(),v.beginPath(),v.rect(L.x*D,L.y*D,L.width*D,L.height*D),v.clip(),A(L),v.restore()}else v.save(),A(),v.restore();_.__drawIndex=C,_.__drawIndex<_.__endIndex&&(c=!1)},f=this,g=0;g<o.length;g++)d(g);return oe.wxa&&R(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:c,needsRefreshHover:h}},n.prototype._doPaintEl=function(e,t,r,i,o,a){var s=t.ctx;if(r){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(As(s,e,o,a),e.setPrevPaintRect(l))}else As(s,e,o,a)},n.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Os);var r=this._layers[e];return r||(r=new H0("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?Yt(r,this._layerConfig[e],!0):this._layerConfig[e-mf]&&Yt(r,this._layerConfig[e-mf],!0),t&&(r.virtual=t),this.insertLayer(e,r),r.initContext()),r},n.prototype.insertLayer=function(e,t){var r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(r[e]){process.env.NODE_ENV!=="production"&&ci("ZLevel "+e+" has been used already");return}if(!nW(t)){process.env.NODE_ENV!=="production"&&ci("Layer of zlevel "+e+" is not valid");return}if(o>0&&e>i[0]){for(l=0;l<o-1&&!(i[l]<e&&i[l+1]>e);l++);s=r[i[l]]}if(i.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(t.dom,u.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i];e.call(t,this._layers[o],o)}},n.prototype.eachBuiltinLayer=function(e,t){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__&&e.call(t,a,o)}},n.prototype.eachOtherLayer=function(e,t){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__||e.call(t,a,o)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,d){h.__dirty=h.__used=!1});function t(h){o&&(o.__endIndex!==h&&(o.__dirty=!0),o.__endIndex=h)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,c=void 0;s!==u&&(s=u,a=0),i.incremental?(c=this.getLayer(u+eW,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?mf:0),this._needsManuallyCompositing),c.__builtin__||ci("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),o=c),i.__dirty&Ni&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,d){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,R(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Yt(r[e],t,!0):r[e]=t;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===e||o===e+mf){var a=this._layers[o];Yt(a,r[e],!0)}}}},n.prototype.delLayer=function(e){var t=this._layers,r=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],r.splice(te(r,e),1))},n.prototype.resize=function(e,t){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,o=this.root;if(e!=null&&(i.width=e),t!=null&&(i.height=t),e=Zl(o,0,i),t=Zl(o,1,i),r.style.display="",this._width!==e||t!==this._height){r.style.width=e+"px",r.style.height=t+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Os).resize(e,t)}return this},n.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Os].dom;var t=new H0("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var r=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,o=t.dom.height;this.eachLayer(function(h){h.__builtin__?r.drawImage(h.dom,0,0,i,o):h.renderToCanvas&&(r.save(),h.renderToCanvas(r),r.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];As(r,c,a,l===u-1)}return t.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n}();function oW(n){n.registerPainter("canvas",iW)}var aW=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(process.env.NODE_ENV!=="production"){var r=t.coordinateSystem;if(r!=="polar"&&r!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return To(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var r=new jt,i=ln("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);r.add(i),i.setStyle(t.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=t.itemHeight*.8,u=ln(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);r.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?a:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Ve);function eu(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var i=Fl(n,e,t[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a<t.length;a++)o.push(Fl(n,e,t[a]));return o.join(" ")}}function sA(n,e){var t=n.mapDimensionsAll("defaultedLabel");if(!ht(e))return e+"";for(var r=[],i=0;i<t.length;i++){var o=n.getDimensionIndex(t[i]);o>=0&&r.push(e[o])}return r.join(" ")}var nh=function(n){Q(e,n);function e(t,r,i,o){var a=n.call(this)||this;return a.updateData(t,r,i,o),a}return e.prototype._createSymbol=function(t,r,i,o,a){this.removeAll();var s=ln(t,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=sW,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){xo(this.childAt(0))},e.prototype.downplay=function(){bo(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,o){this.silent=!1;var a=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=a!==this._symbolType,c=o&&o.disableAnimation;if(u){var h=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,t,r,l,h)}else{var d=this.childAt(0);d.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(f):_e(d,f,s,r),yi(d)}if(this._updateCommon(t,r,l,i,o),u){var d=this.childAt(0);if(!c){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,We(d,f,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,o,a){var s=this.childAt(0),l=t.hostModel,u,c,h,d,f,g,y,_,v;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,h=o.selectItemStyle,d=o.focus,f=o.blurScope,y=o.labelStatesModels,_=o.hoverScale,v=o.cursorStyle,g=o.emphasisDisabled),!o||t.hasItemOption){var p=o&&o.itemModel?o.itemModel:t.getItemModel(r),x=p.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),h=p.getModel(["select","itemStyle"]).getItemStyle(),c=p.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),f=x.get("blurScope"),g=x.get("disabled"),y=_n(p),_=x.getShallow("scale"),v=p.getShallow("cursor")}var b=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=Ts(t.getItemVisual(r,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),v&&s.attr("cursor",v);var M=t.getItemVisual(r,"style"),I=M.fill;if(s instanceof Tn){var C=s.style;s.useStyle(lt({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},M))}else s.__isEmptyBrush?s.useStyle(lt({},M)):s.useStyle(M),s.style.decal=null,s.setColor(I,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(r,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var N=a&&a.useNameLabel;Nn(s,y,{labelFetcher:l,labelDataIndex:r,defaultText:L,inheritColor:I,defaultOpacity:M.opacity});function L(z){return N?t.getName(z):eu(t,z)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var E=s.ensureState("emphasis");E.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var k=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;E.scaleX=this._sizeX*k,E.scaleY=this._sizeY*k,this.setSymbolScale(1),Ze(this,d,f,g)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var o=this.childAt(0),a=Ut(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&aa(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();aa(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return Xl(t.getItemVisual(r,"symbolSize"))},e}(jt);function sW(n,e){this.parent.drift(n,e)}function U0(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function lA(n){return n!=null&&!Vt(n)&&(n={isIgnore:n}),n||{}}function uA(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:_n(e),cursorStyle:e.get("cursor")}}var rh=function(){function n(e){this.group=new jt,this._SymbolCtor=e||nh}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=lA(t);var r=this.group,i=e.hostModel,o=this._data,a=this._SymbolCtor,s=t.disableAnimation,l=uA(e),u={disableAnimation:s},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};o||r.removeAll(),e.diff(o).add(function(h){var d=c(h);if(U0(e,d,h,t)){var f=new a(e,h,l,u);f.setPosition(d),e.setItemGraphicEl(h,f),r.add(f)}}).update(function(h,d){var f=o.getItemGraphicEl(d),g=c(h);if(!U0(e,g,h,t)){r.remove(f);return}var y=e.getItemVisual(h,"symbol")||"circle",_=f&&f.getSymbolType&&f.getSymbolType();if(!f||_&&_!==y)r.remove(f),f=new a(e,h,l,u),f.setPosition(g);else{f.updateData(e,h,l,u);var v={x:g[0],y:g[1]};s?f.attr(v):_e(f,v,i)}r.add(f),e.setItemGraphicEl(h,f)}).remove(function(h){var d=o.getItemGraphicEl(h);d&&d.fadeOut(function(){r.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var o=e._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=uA(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=lA(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=e.start;o<e.end;o++){var a=t.getItemLayout(o);if(U0(t,a,o,r)){var s=new this._SymbolCtor(t,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),t.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},n.prototype.eachRendered=function(e){sa(this._progressiveEls||this.group,e)},n.prototype.remove=function(e){var t=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},r.hostModel)}):t.removeAll()},n}();function cA(n,e,t){var r=n.getBaseAxis(),i=n.getOtherAxis(r),o=lW(i,t),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c=s==="x"||s==="radius"?1:0,h=pt(n.dimensions,function(g){return e.mapDimension(g)}),d=!1,f=e.getCalculationInfo("stackResultDimension");return ga(e,h[0])&&(d=!0,h[0]=f),ga(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function lW(n,e){var t=0,r=n.scale.getExtent();return e==="start"?t=r[0]:e==="end"?t=r[1]:ye(e)&&!isNaN(e)?t=e:r[0]>0?t=r[0]:r[1]<0&&(t=r[1]),t}function hA(n,e,t,r){var i=NaN;n.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=n.valueStart);var o=n.baseDataOffset,a=[];return a[o]=t.get(n.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function uW(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function cW(n,e,t,r,i,o,a,s){for(var l=uW(n,e),u=[],c=[],h=[],d=[],f=[],g=[],y=[],_=cA(i,e,a),v=n.getLayout("points")||[],p=e.getLayout("points")||[],x=0;x<l.length;x++){var b=l[x],S=!0,M=void 0,I=void 0;switch(b.cmd){case"=":M=b.idx*2,I=b.idx1*2;var C=v[M],A=v[M+1],D=p[I],N=p[I+1];(isNaN(C)||isNaN(A))&&(C=D,A=N),u.push(C,A),c.push(D,N),h.push(t[M],t[M+1]),d.push(r[I],r[I+1]),y.push(e.getRawIndex(b.idx1));break;case"+":var L=b.idx,E=_.dataDimsForPoint,k=i.dataToPoint([e.get(E[0],L),e.get(E[1],L)]);I=L*2,u.push(k[0],k[1]),c.push(p[I],p[I+1]);var z=hA(_,i,e,L);h.push(z[0],z[1]),d.push(r[I],r[I+1]),y.push(e.getRawIndex(L));break;case"-":S=!1}S&&(f.push(b),g.push(g.length))}g.sort(function(ot,Rt){return y[ot]-y[Rt]});for(var F=u.length,W=Zi(F),q=Zi(F),j=Zi(F),J=Zi(F),H=[],x=0;x<g.length;x++){var K=g[x],ut=x*2,at=K*2;W[ut]=u[at],W[ut+1]=u[at+1],q[ut]=c[at],q[ut+1]=c[at+1],j[ut]=h[at],j[ut+1]=h[at+1],J[ut]=d[at],J[ut+1]=d[at+1],H[x]=f[K]}return{current:W,next:q,stackedOnCurrent:j,stackedOnNext:J,status:H}}var va=Math.min,ya=Math.max;function zs(n,e){return isNaN(n)||isNaN(e)}function X0(n,e,t,r,i,o,a,s,l){for(var u,c,h,d,f,g,y=t,_=0;_<r;_++){var v=e[y*2],p=e[y*2+1];if(y>=i||y<0)break;if(zs(v,p)){if(l){y+=o;continue}break}if(y===t)n[o>0?"moveTo":"lineTo"](v,p),h=v,d=p;else{var x=v-u,b=p-c;if(x*x+b*b<.5){y+=o;continue}if(a>0){for(var S=y+o,M=e[S*2],I=e[S*2+1];M===v&&I===p&&_<r;)_++,S+=o,y+=o,M=e[S*2],I=e[S*2+1],v=e[y*2],p=e[y*2+1],x=v-u,b=p-c;var C=_+1;if(l)for(;zs(M,I)&&C<r;)C++,S+=o,M=e[S*2],I=e[S*2+1];var A=.5,D=0,N=0,L=void 0,E=void 0;if(C>=r||zs(M,I))f=v,g=p;else{D=M-u,N=I-c;var k=v-u,z=M-v,F=p-c,W=I-p,q=void 0,j=void 0;if(s==="x"){q=Math.abs(k),j=Math.abs(z);var J=D>0?1:-1;f=v-J*q*a,g=p,L=v+J*j*a,E=p}else if(s==="y"){q=Math.abs(F),j=Math.abs(W);var H=N>0?1:-1;f=v,g=p-H*q*a,L=v,E=p+H*j*a}else q=Math.sqrt(k*k+F*F),j=Math.sqrt(z*z+W*W),A=j/(j+q),f=v-D*a*(1-A),g=p-N*a*(1-A),L=v+D*a*A,E=p+N*a*A,L=va(L,ya(M,v)),E=va(E,ya(I,p)),L=ya(L,va(M,v)),E=ya(E,va(I,p)),D=L-v,N=E-p,f=v-D*q/j,g=p-N*q/j,f=va(f,ya(u,v)),g=va(g,ya(c,p)),f=ya(f,va(u,v)),g=ya(g,va(c,p)),D=v-f,N=p-g,L=v+D*j/q,E=p+N*j/q}n.bezierCurveTo(h,d,f,g,v,p),h=L,d=E}else n.lineTo(v,p)}u=v,c=p,y+=o}return _}var pA=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),hW=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new pA},e.prototype.buildPath=function(t,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&zs(i[a*2-2],i[a*2-1]);a--);for(;o<a&&zs(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=X0(t,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(t,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=Gi.CMD,s,l,u=r==="x",c=[],h=0;h<o.length;){var d=o[h++],f=void 0,g=void 0,y=void 0,_=void 0,v=void 0,p=void 0,x=void 0;switch(d){case a.M:s=o[h++],l=o[h++];break;case a.L:if(f=o[h++],g=o[h++],x=u?(t-s)/(f-s):(t-l)/(g-l),x<=1&&x>=0){var b=u?(g-l)*x+l:(f-s)*x+s;return u?[t,b]:[b,t]}s=f,l=g;break;case a.C:f=o[h++],g=o[h++],y=o[h++],_=o[h++],v=o[h++],p=o[h++];var S=u?Cp(s,f,y,v,t,c):Cp(l,g,_,p,t,c);if(S>0)for(var M=0;M<S;M++){var I=c[M];if(I<=1&&I>=0){var b=u?yn(l,g,_,p,I):yn(s,f,y,v,I);return u?[t,b]:[b,t]}}s=v,l=p;break}}},e}(ae),pW=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(pA),dA=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new pW},e.prototype.buildPath=function(t,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&zs(i[s*2-2],i[s*2-1]);s--);for(;a<s&&zs(i[a*2],i[a*2+1]);a++);}for(;a<s;){var u=X0(t,i,a,s,s,1,r.smooth,l,r.connectNulls);X0(t,o,a+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=u+1,t.closePath()}},e}(ae);function fA(n,e,t,r,i){var o=n.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=t.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new fe({shape:{x:a,y:s,width:l,height:u}});if(e){var d=n.getBaseAxis(),f=d.isHorizontal(),g=d.inverse;f?(g&&(h.shape.x+=l),h.shape.width=0):(g||(h.shape.y+=u),h.shape.height=0);var y=Et(i)?function(_){i(_,h)}:null;We(h,{shape:{width:l,height:u,x:a,y:s}},t,null,r,y)}return h}function gA(n,e,t){var r=n.getArea(),i=Ye(r.r0,1),o=Ye(r.r,1),a=new Qn({shape:{cx:Ye(n.cx,1),cy:Ye(n.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s=n.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,We(a,{shape:{endAngle:r.endAngle,r:o}},t)}return a}function ih(n,e,t,r,i){if(n){if(n.type==="polar")return gA(n,e,t);if(n.type==="cartesian2d")return fA(n,e,t,r,i)}else return null;return null}function Vs(n,e){return n.type===e}function vA(n,e){if(n.length===e.length){for(var t=0;t<n.length;t++)if(n[t]!==e[t])return;return!0}}function yA(n){for(var e=1/0,t=1/0,r=-1/0,i=-1/0,o=0;o<n.length;){var a=n[o++],s=n[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(t=Math.min(s,t),i=Math.max(s,i))}return[[e,t],[r,i]]}function mA(n,e){var t=yA(n),r=t[0],i=t[1],o=yA(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function _A(n){return ye(n)?n:n?.5:0}function dW(n,e,t){if(!t.valueDim)return[];for(var r=e.count(),i=Zi(r*2),o=0;o<r;o++){var a=hA(t,n,e,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function ma(n,e,t,r,i){var o=t.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(i){for(l=0;l<n.length;l+=2){var f=e||n;!isNaN(f[l])&&!isNaN(f[l+1])&&d.push(n[l],n[l+1])}n=d}for(l=0;l<n.length-2;l+=2)switch(h[0]=n[l+2],h[1]=n[l+3],c[0]=n[l],c[1]=n[l+1],s.push(c[0],c[1]),r){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var g=(c[a]+h[a])/2,y=[];u[a]=y[a]=g,u[1-a]=c[1-a],y[1-a]=h[1-a],s.push(u[0],u[1]),s.push(y[0],y[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(n[l++],n[l++]),s}function fW(n,e){var t=[],r=n.length,i,o;function a(c,h,d){var f=c.coord,g=(d-f)/(h.coord-f),y=q3(g,[c.color,h.color]);return{coord:d,color:y}}for(var s=0;s<r;s++){var l=n[s],u=l.coord;if(u<0)i=l;else if(u>e){o?t.push(a(o,l,e)):i&&t.push(a(i,l,0),a(i,l,e));break}else i&&(t.push(a(i,l,0)),i=null),t.push(l),o=l}return t}function gW(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,o,a=r.length-1;a>=0;a--){var s=n.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(!o){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(i),u=pt(o.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=fW(u,i==="x"?t.getWidth():t.getHeight()),f=d.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var g=10,y=d[0].coord-g,_=d[f-1].coord+g,v=_-y;if(v<.001)return"transparent";R(d,function(x){x.offset=(x.coord-y)/v}),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var p=new xc(0,0,0,0,d,!0);return p[i]=y,p[i+"2"]=_,p}}function vW(n,e,t){var r=n.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=t.getAxesByScale("ordinal")[0];if(o&&!(i&&yW(o,e))){var a=e.mapDimension(o.dim),s={};return R(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}function yW(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(nh.getSymbolSize(e,a)[n.isHorizontal()?1:0]*1.5>r)return!1;return!0}function mW(n,e){return isNaN(n)||isNaN(e)}function _W(n){for(var e=n.length/2;e>0&&mW(n[e*2-2],n[e*2-1]);e--);return e-1}function xA(n,e){return[n[e*2],n[e*2+1]]}function xW(n,e,t){for(var r=n.length/2,i=t==="x"?0:1,o,a,s=0,l=-1,u=0;u<r;u++)if(a=n[u*2+i],!(isNaN(a)||isNaN(n[u*2+1-i]))){if(u===0){o=a;continue}if(o<=e&&a>=e||o>=e&&a<=e){l=u;break}s=u,o=a}return{range:[s,l],t:(e-o)/(a-o)}}function bA(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e<$n.length;e++)if(n.get([$n[e],"endLabel","show"]))return!0;return!1}function Z0(n,e,t,r){if(Vs(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=bA(r)?function(f,g){n._endLabelOnDuring(f,g,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=fA(e,t,r,function(){var f=n._endLabel;f&&t&&s.originalX!=null&&f.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=d*2):(h.x-=d,h.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&r.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),gA(e,t,r)}function bW(n,e){var t=e.getBaseAxis(),r=t.isHorizontal(),i=t.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:n.get("align")||o,verticalAlign:n.get("verticalAlign")||a}}}var wW=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(){var t=new jt,r=new rh;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=t,this._changePolyState=At(this._changePolyState,this)},e.prototype.render=function(t,r,i){var o=t.coordinateSystem,a=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],h=o.type==="polar",d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,_=this._lineGroup,v=!r.ssr&&t.get("animation"),p=!u.isEmpty(),x=u.get("origin"),b=cA(o,s,x),S=p&&dW(o,s,b),M=t.get("showSymbol"),I=t.get("connectNulls"),C=M&&!h&&vW(t,s,o),A=this._data;A&&A.eachItemGraphicEl(function(ot,Rt){ot.__temp&&(a.remove(ot),A.setItemGraphicEl(Rt,null))}),M||f.remove(),a.add(_);var D=h?!1:t.get("step"),N;o&&o.getArea&&t.get("clip",!0)&&(N=o.getArea(),N.width!=null?(N.x-=.1,N.y-=.1,N.width+=.2,N.height+=.2):N.r0&&(N.r0-=.5,N.r+=.5)),this._clipShapeForSymbol=N;var L=gW(s,o,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(g&&d.type===o.type&&D===this._step))M&&f.updateData(s,{isIgnore:C,clipShape:N,disableAnimation:!0,getSymbolPoint:function(ot){return[c[ot*2],c[ot*2+1]]}}),v&&this._initSymbolLabelAnimation(s,o,N),D&&(S&&(S=ma(S,c,o,D,I)),c=ma(c,null,o,D,I)),g=this._newPolyline(c),p?y=this._newPolygon(c,S):y&&(_.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,_s(L)),_.setClipPath(Z0(this,o,!0,t));else{p&&!y?y=this._newPolygon(c,S):y&&!p&&(_.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,_s(L));var E=_.getClipPath();if(E){var k=Z0(this,o,!1,t);We(E,{shape:k.shape},t)}else _.setClipPath(Z0(this,o,!0,t));M&&f.updateData(s,{isIgnore:C,clipShape:N,disableAnimation:!0,getSymbolPoint:function(ot){return[c[ot*2],c[ot*2+1]]}}),(!vA(this._stackedOnPoints,S)||!vA(this._points,c))&&(v?this._doUpdateAnimation(s,S,o,i,D,x,I):(D&&(S&&(S=ma(S,c,o,D,I)),c=ma(c,null,o,D,I)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:S})))}var z=t.getModel("emphasis"),F=z.get("focus"),W=z.get("blurScope"),q=z.get("disabled");if(g.useStyle(Ft(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Ln(g,t,"lineStyle"),g.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var j=g.getState("emphasis").style;j.lineWidth=+g.style.lineWidth+1}Ut(g).seriesIndex=t.seriesIndex,Ze(g,F,W,q);var J=_A(t.get("smooth")),H=t.get("smoothMonotone");if(g.setShape({smooth:J,smoothMonotone:H,connectNulls:I}),y){var K=s.getCalculationInfo("stackedOnSeries"),ut=0;y.useStyle(Ft(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),K&&(ut=_A(K.get("smooth"))),y.setShape({smooth:J,stackedOnSmooth:ut,smoothMonotone:H,connectNulls:I}),Ln(y,t,"areaStyle"),Ut(y).seriesIndex=t.seriesIndex,Ze(y,F,W,q)}var at=this._changePolyState;s.eachItemGraphicEl(function(ot){ot&&(ot.onHoverStateChange=at)}),this._polyline.onHoverStateChange=at,this._data=s,this._coordSys=o,this._stackedOnPoints=S,this._points=c,this._step=D,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,g),y&&this.packEventData(t,y))},e.prototype.packEventData=function(t,r){Ut(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,o){var a=t.getData(),s=$a(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var d=t.get("zlevel")||0,f=t.get("z")||0;u=new nh(a,s),u.x=c,u.y=h,u.setZ(d,f);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=d,g.z=f,g.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Pe.prototype.highlight.call(this,t,r,i,o)},e.prototype.downplay=function(t,r,i,o){var a=t.getData(),s=$a(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Pe.prototype.downplay.call(this,t,r,i,o)},e.prototype._changePolyState=function(t){var r=this._polygon;id(this._polyline,t),r&&id(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new hW({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new dA({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var u=t.hostModel,c=u.get("animationDuration");Et(c)&&(c=c(null));var h=u.get("animationDelay")||0,d=Et(h)?h(null):h;t.eachItemGraphicEl(function(f,g){var y=f;if(y){var _=[f.x,f.y],v=void 0,p=void 0,x=void 0;if(i)if(a){var b=i,S=r.pointToCoord(_);o?(v=b.startAngle,p=b.endAngle,x=-S[1]/180*Math.PI):(v=b.r0,p=b.r,x=S[0])}else{var M=i;o?(v=M.x,p=M.x+M.width,x=f.x):(v=M.y+M.height,p=M.y,x=f.y)}var I=p===v?0:(x-v)/(p-v);l&&(I=1-I);var C=Et(h)?h(g):c*I+d,A=y.getSymbolPath(),D=A.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var o=t.getModel("endLabel");if(bA(t)){var a=t.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ge({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=_W(l);c>=0&&(Nn(s,_n(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:c,defaultText:function(h,d,f){return f!=null?sA(a,f):eu(a,h)},enableTextSetter:!0},bW(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var h=i.getLayout("points"),d=i.hostModel,f=d.get("connectNulls"),g=s.get("precision"),y=s.get("distance")||0,_=l.getBaseAxis(),v=_.isHorizontal(),p=_.inverse,x=r.shape,b=p?v?x.x:x.y+x.height:v?x.x+x.width:x.y,S=(v?y:0)*(p?-1:1),M=(v?0:-y)*(p?-1:1),I=v?"x":"y",C=xW(h,b,I),A=C.range,D=A[1]-A[0],N=void 0;if(D>=1){if(D>1&&!f){var L=xA(h,A[0]);u.attr({x:L[0]+S,y:L[1]+M}),a&&(N=d.getRawValue(A[0]))}else{var L=c.getPointOn(b,I);L&&u.attr({x:L[0]+S,y:L[1]+M});var E=d.getRawValue(A[0]),k=d.getRawValue(A[1]);a&&(N=P2(i,g,E,k,C.t))}o.lastFrameIndex=A[0]}else{var z=t===1||o.lastFrameIndex>0?A[0]:0,L=xA(h,z);a&&(N=d.getRawValue(z)),u.attr({x:L[0]+S,y:L[1]+M})}if(a){var F=Dl(u);typeof F.setLabelText=="function"&&F.setLabelText(N)}}},e.prototype._doUpdateAnimation=function(t,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,h=t.hostModel,d=cW(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),f=d.current,g=d.stackedOnCurrent,y=d.next,_=d.stackedOnNext;if(a&&(g=ma(d.stackedOnCurrent,d.current,i,a,l),f=ma(d.current,null,i,a,l),_=ma(d.stackedOnNext,d.next,i,a,l),y=ma(d.next,null,i,a,l)),mA(f,y)>3e3||c&&mA(g,_)>3e3){u.stopAnimation(),u.setShape({points:y}),c&&(c.stopAnimation(),c.setShape({points:y,stackedOnPoints:_}));return}u.shape.__points=d.current,u.shape.points=f;var v={shape:{points:y}};d.current!==f&&(v.shape.__points=d.next),u.stopAnimation(),_e(u,v,h),c&&(c.setShape({points:f,stackedOnPoints:g}),c.stopAnimation(),_e(c,{shape:{stackedOnPoints:_}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var p=[],x=d.status,b=0;b<x.length;b++){var S=x[b].cmd;if(S==="="){var M=t.getItemGraphicEl(x[b].idx1);M&&p.push({el:M,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var I=u.shape.__points,C=0;C<p.length;C++){var A=p[C].el,D=p[C].ptIdx*2;A.x=I[D],A.y=I[D+1],A.markRedraw()}})},e.prototype.remove=function(t){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Pe);function oh(n,e){return{seriesType:n,plan:jl(),reset:function(t){var r=t.getData(),i=t.coordinateSystem,o=t.pipelineContext,a=e||o.large;if(i){var s=pt(i.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");ga(r,s[0])&&(s[0]=u),ga(r,s[1])&&(s[1]=u);var c=r.getStore(),h=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(f,g){for(var y=f.end-f.start,_=a&&Zi(y*l),v=[],p=[],x=f.start,b=0;x<f.end;x++){var S=void 0;if(l===1){var M=c.get(h,x);S=i.dataToPoint(M,null,p)}else v[0]=c.get(h,x),v[1]=c.get(d,x),S=i.dataToPoint(v,null,p);a?(_[b++]=S[0],_[b++]=S[1]):g.setItemLayout(x,S.slice())}a&&g.setLayout("points",_)}}}}}}var SW={average:function(n){for(var e=0,t=0,r=0;r<n.length;r++)isNaN(n[r])||(e+=n[r],t++);return t===0?NaN:e/t},sum:function(n){for(var e=0,t=0;t<n.length;t++)e+=n[t]||0;return e},max:function(n){for(var e=-1/0,t=0;t<n.length;t++)n[t]>e&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t<n.length;t++)n[t]<e&&(e=n[t]);return isFinite(e)?e:NaN},nearest:function(n){return n[0]}},MW=function(n){return Math.round(n.length/2)};function wA(n){return{seriesType:n,reset:function(e,t,r){var i=e.getData(),o=e.get("sampling"),a=e.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),h=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(h||1),f=Math.round(s/d);if(isFinite(f)&&f>1){o==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/f)):o==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/f));var g=void 0;Tt(o)?g=SW[o]:Et(o)&&(g=o),g&&e.setData(i.downSample(i.mapDimension(u.dim),1/f,g,MW))}}}}}function IW(n){n.registerChartView(wW),n.registerSeriesModel(aW),n.registerLayout(oh("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,wA("line"))}var ah=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return To(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,i){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(t),s=o.dataToPoint(a);if(i)R(o.getAxes(),function(d,f){if(d.type==="category"&&r!=null){var g=d.getTicksCoords(),y=d.getTickModel().get("alignWithLabel"),_=a[f],v=r[f]==="x1"||r[f]==="y1";if(v&&!y&&(_+=1),g.length<2)return;if(g.length===2){s[f]=d.toGlobalCoord(d.getExtent()[v?1:0]);return}for(var p=void 0,x=void 0,b=1,S=0;S<g.length;S++){var M=g[S].coord,I=S===g.length-1?g[S-1].tickValue+b:g[S].tickValue;if(I===_){x=M;break}else if(I<_)p=M;else if(p!=null&&I>_){x=(M+p)/2;break}S===1&&(b=I-g[0].tickValue)}x==null&&(p?p&&(x=g[g.length-1].coord):x=g[0].coord),s[f]=d.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=o.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Ve);Ve.registerClass(ah);var TW=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return To(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,i){return i.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=la(ah.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(ah),CW=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),_f=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new CW},e.prototype.buildPath=function(t,r){var i=r.cx,o=r.cy,a=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-a)*.5,u=a+l,c=r.startAngle,h=r.endAngle,d=r.clockwise,f=Math.PI*2,g=d?h-c<f:c-h<f;g||(c=h-(d?f:-f));var y=Math.cos(c),_=Math.sin(c),v=Math.cos(h),p=Math.sin(h);g?(t.moveTo(y*a+i,_*a+o),t.arc(y*u+i,_*u+o,l,-Math.PI+c,c,!d)):t.moveTo(y*s+i,_*s+o),t.arc(i,o,s,c,h,!d),t.arc(v*u+i,p*u+o,l,h-Math.PI*2,h-Math.PI,!d),a!==0&&t.arc(i,o,a,h,c,d)},e}(ae);function AW(n,e){e=e||{};var t=e.isRoundCap;return function(r,i,o){var a=i.position;if(!a||a instanceof Array)return Wp(r,i,o);var s=n(a),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,h=u.cy,d=u.r,f=u.r0,g=(d+f)/2,y=u.startAngle,_=u.endAngle,v=(y+_)/2,p=t?Math.abs(d-f)/2:0,x=Math.cos,b=Math.sin,S=c+d*x(y),M=h+d*b(y),I="left",C="top";switch(s){case"startArc":S=c+(f-l)*x(v),M=h+(f-l)*b(v),I="center",C="top";break;case"insideStartArc":S=c+(f+l)*x(v),M=h+(f+l)*b(v),I="center",C="bottom";break;case"startAngle":S=c+g*x(y)+xf(y,l+p,!1),M=h+g*b(y)+bf(y,l+p,!1),I="right",C="middle";break;case"insideStartAngle":S=c+g*x(y)+xf(y,-l+p,!1),M=h+g*b(y)+bf(y,-l+p,!1),I="left",C="middle";break;case"middle":S=c+g*x(v),M=h+g*b(v),I="center",C="middle";break;case"endArc":S=c+(d+l)*x(v),M=h+(d+l)*b(v),I="center",C="bottom";break;case"insideEndArc":S=c+(d-l)*x(v),M=h+(d-l)*b(v),I="center",C="top";break;case"endAngle":S=c+g*x(_)+xf(_,l+p,!0),M=h+g*b(_)+bf(_,l+p,!0),I="left",C="middle";break;case"insideEndAngle":S=c+g*x(_)+xf(_,-l+p,!0),M=h+g*b(_)+bf(_,-l+p,!0),I="right",C="middle";break;default:return Wp(r,i,o)}return r=r||{},r.x=S,r.y=M,r.align=I,r.verticalAlign=C,r}}function kW(n,e,t,r){if(ye(r)){n.setTextConfig({rotation:r});return}else if(ht(e)){n.setTextConfig({rotation:0});return}var i=n.shape,o=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(o+a)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:n.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),n.setTextConfig({rotation:c})}function xf(n,e,t){return e*Math.sin(n)*(t?-1:1)}function bf(n,e,t){return e*Math.cos(n)*(t?1:-1)}function Bs(n,e,t){var r=n.get("borderRadius");if(r==null)return t?{cornerRadius:0}:null;ht(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:pt(r,function(o){return fi(o,i)})}}var q0=Math.max,K0=Math.min;function DW(n,e){var t=n.getArea&&n.getArea();if(Vs(n,"cartesian2d")){var r=n.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(t.x-=i,t.width+=i*2):(t.y-=i,t.height+=i*2)}}return t}var LW=function(n){Q(e,n);function e(){var t=n.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,r,i,o){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var a=t.get("coordinateSystem");a==="cartesian2d"||a==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,r,i):this._renderNormal(t,r,i,o)):process.env.NODE_ENV!=="production"&&Xe("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,r){this._progressiveEls=[],this._incrementalRenderLarge(t,r)},e.prototype.eachRendered=function(t){sa(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t,r,i,o){var a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var d=t.isAnimationEnabled()?t:null,f=NW(t,u);f&&this._enableRealtimeSort(f,s,i);var g=t.get("clip",!0)||f,y=DW(u,s);a.removeClipPath();var _=t.get("roundCap",!0),v=t.get("showBackground",!0),p=t.getModel("backgroundStyle"),x=p.get("borderRadius")||0,b=[],S=this._backgroundEls,M=o&&o.isInitSort,I=o&&o.type==="changeAxisOrder";function C(N){var L=wf[u.type](s,N),E=BW(u,h,L);return E.useStyle(p.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",x):E.setShape("cornerRadius",x),b[N]=E,E}s.diff(l).add(function(N){var L=s.getItemModel(N),E=wf[u.type](s,N,L);if(v&&C(N),!(!s.hasValue(N)||!CA[u.type](E))){var k=!1;g&&(k=SA[u.type](y,E));var z=MA[u.type](t,s,N,E,h,d,c.model,!1,_);f&&(z.forceLabelAnimation=!0),kA(z,s,N,L,E,t,h,u.type==="polar"),M?z.attr({shape:E}):f?IA(f,d,z,E,N,h,!1,!1):We(z,{shape:E},t,N),s.setItemGraphicEl(N,z),a.add(z),z.ignore=k}}).update(function(N,L){var E=s.getItemModel(N),k=wf[u.type](s,N,E);if(v){var z=void 0;S.length===0?z=C(L):(z=S[L],z.useStyle(p.getItemStyle()),u.type==="cartesian2d"?z.setShape("r",x):z.setShape("cornerRadius",x),b[N]=z);var F=wf[u.type](s,N),W=PA(h,F,u);_e(z,{shape:W},d,N)}var q=l.getItemGraphicEl(L);if(!s.hasValue(N)||!CA[u.type](k)){a.remove(q);return}var j=!1;if(g&&(j=SA[u.type](y,k),j&&a.remove(q)),q?yi(q):q=MA[u.type](t,s,N,k,h,d,c.model,!!q,_),f&&(q.forceLabelAnimation=!0),I){var J=q.getTextContent();if(J){var H=Dl(J);H.prevValue!=null&&(H.prevValue=H.value)}}else kA(q,s,N,E,k,t,h,u.type==="polar");M?q.attr({shape:k}):f?IA(f,d,q,k,N,h,!0,I):_e(q,{shape:k},t,N,null),s.setItemGraphicEl(N,q),q.ignore=j,a.add(q)}).remove(function(N){var L=l.getItemGraphicEl(N);L&&bc(L,t,N)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new jt);A.removeAll();for(var D=0;D<b.length;++D)A.add(b[D]);a.add(A),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(t,r,i){this._clear(),LA(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,r){this._removeBackground(),LA(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var r=t.get("clip",!0)&&ih(t.coordinateSystem,!1,t),i=this.group;r?i.setClipPath(r):i.removeClipPath()},e.prototype._enableRealtimeSort=function(t,r,i){var o=this;if(r.count()){var a=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,t,i),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(a.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){o._updateSortWithinSameData(r,s,a,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,r,i){var o=[];return t.each(t.mapDimension(r.dim),function(a,s){var l=i(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:pt(o,function(a){return a.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,r,i){for(var o=i.scale,a=t.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(a,o.getRawOrdinalNumber(l)),h=c<0?Number.MIN_VALUE:r(t.indexOfRawIndex(c));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var i=r.scale,o=i.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],i.getOrdinalMeta().categories.length-1);a<=s;++a)if(t.ordinalNumbers[a]!==i.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(t,r,i,o){if(this._isOrderChangedWithinSameData(t,r,i)){var a=this._dataSort(t,i,r);this._isOrderDifferentInView(a,i)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(t,r,i){var o=r.baseAxis,a=this._dataSort(t,o,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(o){bc(o,t,Ut(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Pe),SA={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=n.x+n.width,o=n.y+n.height,a=q0(e.x,n.x),s=K0(e.x+e.width,i),l=q0(e.y,n.y),u=K0(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>i?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var i=K0(e.r,n.r),o=q0(e.r0,n.r0);e.r=i,e.r0=o;var a=i-o<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return a}},MA={cartesian2d:function(n,e,t,r,i,o,a,s,l){var u=new fe({shape:lt({},r),z2:1});if(u.__dataIndex=t,u.name="item",o){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(n,e,t,r,i,o,a,s,l){var u=!i&&l?_f:Qn,c=new u({shape:r,z2:1});c.name="item";var h=AA(i);if(c.calculateTextPosition=AW(h,{isRoundCap:u===_f}),o){var d=c.shape,f=i?"r":"endAngle",g={};d[f]=i?r.r0:r.startAngle,g[f]=r[f],(s?_e:We)(c,{shape:g},o)}return c}};function NW(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(r.type!=="category"&&Xe("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Xe("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function IA(n,e,t,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?_e:We)(t,{shape:l},e,i,null);var c=e?n.baseAxis.model:null;(a?_e:We)(t,{shape:u},c,i)}function TA(n,e){for(var t=0;t<e.length;t++)if(!isFinite(n[e[t]]))return!0;return!1}var PW=["x","y","width","height"],EW=["cx","cy","r","startAngle","endAngle"],CA={cartesian2d:function(n){return!TA(n,PW)},polar:function(n){return!TA(n,EW)}},wf={cartesian2d:function(n,e,t){var r=n.getItemLayout(e),i=t?OW(t,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function RW(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function AA(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function kA(n,e,t,r,i,o,a,s){var l=e.getItemVisual(t,"style");if(s){if(!o.get("roundCap")){var u=n.shape,c=Bs(r.getModel("itemStyle"),u,!0);lt(u,c),n.setShape(u)}}else{var h=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",h)}n.useStyle(l);var d=r.getShallow("cursor");d&&n.attr("cursor",d);var f=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=_n(r);Nn(n,g,{labelFetcher:o,labelDataIndex:t,defaultText:eu(o.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var y=n.getTextContent();if(s&&y){var _=r.get(["label","position"]);n.textConfig.inside=_==="middle"?!0:null,kW(n,_==="outside"?f:_,AA(a),r.get(["label","rotate"]))}QS(y,g,o.getRawValue(t),function(p){return sA(e,p)});var v=r.getModel(["emphasis"]);Ze(n,v.get("focus"),v.get("blurScope"),v.get("disabled")),Ln(n,r),RW(i)&&(n.style.fill="none",n.style.stroke="none",R(n.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function OW(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var zW=function(){function n(){}return n}(),DA=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new zW},e.prototype.buildPath=function(t,r){for(var i=r.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[o]=u,l[a]=i[c+2],s[o]=i[c+o],s[a]=i[c+a],t.rect(s[0],s[1],l[0],l[1])},e}(ae);function LA(n,e,t,r){var i=n.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=n.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new DA({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var h=new DA({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,Ut(h).seriesIndex=n.seriesIndex,n.get("silent")||(h.on("mousedown",NA),h.on("mousemove",NA)),t&&t.push(h)}var NA=Um(function(n){var e=this,t=VW(e,n.offsetX,n.offsetY);Ut(e).dataIndex=t>=0?t:null},30,!1);function VW(n,e,t){for(var r=n.baseDimIdx,i=1-r,o=n.shape.points,a=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,h=o.length/3;c<h;c++){var d=c*3;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return a[c]}return-1}function PA(n,e,t){if(Vs(t,"cartesian2d")){var r=e,i=t.getArea();return{x:n?r.x:i.x,y:n?i.y:r.y,width:n?r.width:i.width,height:n?i.height:r.height}}else{var i=t.getArea(),o=e;return{cx:i.cx,cy:i.cy,r0:n?i.r0:o.r0,r:n?i.r:o.r,startAngle:n?o.startAngle:0,endAngle:n?o.endAngle:Math.PI*2}}}function BW(n,e,t){var r=n.type==="polar"?Qn:fe;return new r({shape:PA(e,t,n),silent:!0,z2:0})}function FW(n){n.registerChartView(LW),n.registerSeriesModel(TW),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,qt(YT,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,JT("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,wA("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var EA=Math.PI*2,Sf=Math.PI/180;function RA(n,e){return dn(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function OA(n,e){var t=RA(n,e),r=n.get("center"),i=n.get("radius");ht(i)||(i=[0,i]);var o=Mt(t.width,e.getWidth()),a=Mt(t.height,e.getHeight()),s=Math.min(o,a),l=Mt(i[0],s/2),u=Mt(i[1],s/2),c,h,d=n.coordinateSystem;if(d){var f=d.dataToPoint(r);c=f[0]||0,h=f[1]||0}else ht(r)||(r=[r,r]),c=Mt(r[0],o)+t.x,h=Mt(r[1],a)+t.y;return{cx:c,cy:h,r0:l,r:u}}function GW(n,e,t){e.eachSeriesByType(n,function(r){var i=r.getData(),o=i.mapDimension("value"),a=RA(r,t),s=OA(r,t),l=s.cx,u=s.cy,c=s.r,h=s.r0,d=-r.get("startAngle")*Sf,f=r.get("endAngle"),g=r.get("padAngle")*Sf;f=f==="auto"?d-EA:-f*Sf;var y=r.get("minAngle")*Sf,_=y+g,v=0;i.each(o,function(W){!isNaN(W)&&v++});var p=i.getSum(o),x=Math.PI/(p||v)*2,b=r.get("clockwise"),S=r.get("roseType"),M=r.get("stillShowZeroSum"),I=i.getDataExtent(o);I[0]=0;var C=b?1:-1,A=[d,f],D=C*g/2;By(A,!b),d=A[0],f=A[1];var N=zA(r);N.startAngle=d,N.endAngle=f,N.clockwise=b;var L=Math.abs(f-d),E=L,k=0,z=d;if(i.setLayout({viewRect:a,r:c}),i.each(o,function(W,q){var j;if(isNaN(W)){i.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:l,cy:u,r0:h,r:S?NaN:c});return}S!=="area"?j=p===0&&M?x:W*x:j=L/v,j<_?(j=_,E-=_):k+=W;var J=z+C*j,H=0,K=0;g>j?(H=z+C*j/2,K=H):(H=z+D,K=J-D),i.setItemLayout(q,{angle:j,startAngle:H,endAngle:K,clockwise:b,cx:l,cy:u,r0:h,r:S?Ae(W,I,[h,c]):c}),z=J}),E<EA&&v)if(E<=.001){var F=L/v;i.each(o,function(W,q){if(!isNaN(W)){var j=i.getItemLayout(q);j.angle=F;var J=0,H=0;F<g?(J=d+C*(q+1/2)*F,H=J):(J=d+C*q*F+D,H=d+C*(q+1)*F-D),j.startAngle=J,j.endAngle=H}})}else x=E/k,z=d,i.each(o,function(W,q){if(!isNaN(W)){var j=i.getItemLayout(q),J=j.angle===_?_:W*x,H=0,K=0;J<g?(H=z+C*J/2,K=H):(H=z+D,K=z+C*J-D),j.startAngle=H,j.endAngle=K,z+=C*J}})})}var zA=de();function sh(n){return{seriesType:n,reset:function(e,t){var r=t.findComponents({mainType:"legend"});if(!(!r||!r.length)){var i=e.getData();i.filterSelf(function(o){for(var a=i.getName(o),s=0;s<r.length;s++)if(!r[s].isSelected(a))return!1;return!0})}}}}var WW=Math.PI/180;function VA(n,e,t,r,i,o,a,s,l,u){if(n.length<2)return;function c(y){for(var _=y.rB,v=_*_,p=0;p<y.list.length;p++){var x=y.list[p],b=Math.abs(x.label.y-t),S=r+x.len,M=S*S,I=Math.sqrt(Math.abs((1-b*b/v)*M)),C=e+(I+x.len2)*i,A=C-x.label.x,D=x.targetTextWidth-A*i;BA(x,D,!0),x.label.x=C}}function h(y){for(var _={list:[],maxY:0},v={list:[],maxY:0},p=0;p<y.length;p++)if(y[p].labelAlignTo==="none"){var x=y[p],b=x.label.y>t?v:_,S=Math.abs(x.label.y-t);if(S>=b.maxY){var M=x.label.x-e-x.len2*i,I=r+x.len,C=Math.abs(M)<I?Math.sqrt(S*S/(1-M*M/I/I)):I;b.rB=C,b.maxY=S}b.list.push(x)}c(_),c(v)}for(var d=n.length,f=0;f<d;f++)if(n[f].position==="outer"&&n[f].labelAlignTo==="labelLine"){var g=n[f].label.x-u;n[f].linePoints[1][0]+=g,n[f].label.x=u}CC(n,l,l+a)&&h(n)}function jW(n,e,t,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<n.length;d++){var f=n[d].label;Y0(n[d])||(f.x<e?(c=Math.min(c,f.x),l.push(n[d])):(h=Math.max(h,f.x),u.push(n[d])))}for(var d=0;d<n.length;d++){var g=n[d];if(!Y0(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var f=g.label,y=g.linePoints,_=void 0;g.labelAlignTo==="edge"?f.x<e?_=y[2][0]-g.labelDistance-a-g.edgeDistance:_=a+i-g.edgeDistance-y[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?f.x<e?_=c-a-g.bleedMargin:_=a+i-h-g.bleedMargin:f.x<e?_=f.x-a-g.bleedMargin:_=a+i-f.x-g.bleedMargin,g.targetTextWidth=_,BA(g,_)}}VA(u,e,t,r,1,i,o,a,s,h),VA(l,e,t,r,-1,i,o,a,s,c);for(var d=0;d<n.length;d++){var g=n[d];if(!Y0(g)&&g.linePoints){var f=g.label,y=g.linePoints,v=g.labelAlignTo==="edge",p=f.style.padding,x=p?p[1]+p[3]:0,b=f.style.backgroundColor?0:x,S=g.rect.width+b,M=y[1][0]-y[2][0];v?f.x<e?y[2][0]=a+g.edgeDistance+S+g.labelDistance:y[2][0]=a+i-g.edgeDistance-S-g.labelDistance:(f.x<e?y[2][0]=f.x+g.labelDistance:y[2][0]=f.x-g.labelDistance,y[1][0]=y[2][0]+M),y[1][1]=y[2][1]=f.y}}}function BA(n,e,t){if(t===void 0&&(t=!1),n.labelStyleWidth==null){var r=n.label,i=r.style,o=n.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||t){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",a)}else{var f=e-l,g=e<c?f:t?f>n.unconstrainedWidth?null:f:null;r.setStyle("width",g)}var y=r.getBoundingRect();o.width=y.width;var _=(r.style.margin||0)+2.1;o.height=y.height+_,o.y-=(o.height-h)/2}}}function Y0(n){return n.position==="center"}function HW(n){var e=n.getData(),t=[],r,i,o=!1,a=(n.get("minShowLabelAngle")||0)*WW,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function f(M){M.ignore=!0}function g(M){if(!M.ignore)return!0;for(var I in M.states)if(M.states[I].ignore===!1)return!0;return!1}e.each(function(M){var I=e.getItemGraphicEl(M),C=I.shape,A=I.getTextContent(),D=I.getTextGuideLine(),N=e.getItemModel(M),L=N.getModel("label"),E=L.get("position")||N.get(["emphasis","label","position"]),k=L.get("distanceToLabelLine"),z=L.get("alignTo"),F=Mt(L.get("edgeDistance"),u),W=L.get("bleedMargin"),q=N.getModel("labelLine"),j=q.get("length");j=Mt(j,u);var J=q.get("length2");if(J=Mt(J,u),Math.abs(C.endAngle-C.startAngle)<a){R(A.states,f),A.ignore=!0,D&&(R(D.states,f),D.ignore=!0);return}if(g(A)){var H=(C.startAngle+C.endAngle)/2,K=Math.cos(H),ut=Math.sin(H),at,ot,Rt,Jt;r=C.cx,i=C.cy;var wt=E==="inside"||E==="inner";if(E==="center")at=C.cx,ot=C.cy,Jt="center";else{var xt=(wt?(C.r+C.r0)/2*K:C.r*K)+r,Ot=(wt?(C.r+C.r0)/2*ut:C.r*ut)+i;if(at=xt+K*3,ot=Ot+ut*3,!wt){var bt=xt+K*(j+l-C.r),Nt=Ot+ut*(j+l-C.r),se=bt+(K<0?-1:1)*J,O=Nt;z==="edge"?at=K<0?c+F:c+u-F:at=se+(K<0?-k:k),ot=O,Rt=[[xt,Ot],[bt,Nt],[se,O]]}Jt=wt?"center":z==="edge"?K>0?"right":"left":K>0?"left":"right"}var st=Math.PI,it=0,Z=L.get("rotate");if(ye(Z))it=Z*(st/180);else if(E==="center")it=0;else if(Z==="radial"||Z===!0){var U=K<0?-H+st:-H;it=U}else if(Z==="tangential"&&E!=="outside"&&E!=="outer"){var tt=Math.atan2(K,ut);tt<0&&(tt=st*2+tt);var ft=ut>0;ft&&(tt=st+tt),it=tt-st}if(o=!!it,A.x=at,A.y=ot,A.rotation=it,A.setStyle({verticalAlign:"middle"}),wt){A.setStyle({align:Jt});var gt=A.states.select;gt&&(gt.x+=A.x,gt.y+=A.y)}else{var rt=A.getBoundingRect().clone();rt.applyTransform(A.getComputedTransform());var It=(A.style.margin||0)+2.1;rt.y-=It/2,rt.height+=It,t.push({label:A,labelLine:D,position:E,len:j,len2:J,minTurnAngle:q.get("minTurnAngle"),maxSurfaceAngle:q.get("maxSurfaceAngle"),surfaceNormal:new $t(K,ut),linePoints:Rt,textAlign:Jt,labelDistance:k,labelAlignTo:z,edgeDistance:F,bleedMargin:W,rect:rt,unconstrainedWidth:rt.width,labelStyleWidth:A.style.width})}I.setTextConfig({inside:wt})}}),!o&&n.get("avoidLabelOverlap")&&jW(t,r,i,l,u,d,c,h);for(var y=0;y<t.length;y++){var _=t[y],v=_.label,p=_.labelLine,x=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:_.textAlign}),x&&(R(v.states,f),v.ignore=!0);var b=v.states.select;b&&(b.x+=v.x,b.y+=v.y)}if(p){var S=_.linePoints;x||!S?(R(p.states,f),p.ignore=!0):(MC(S,_.minTurnAngle),dG(S,_.surfaceNormal,_.maxSurfaceAngle),p.setShape({points:S}),v.__hostTarget.textGuideLineConfig={anchor:new $t(S[0][0],S[0][1])})}}}var UW=function(n){Q(e,n);function e(t,r,i){var o=n.call(this)||this;o.z2=2;var a=new ge;return o.setTextContent(a),o.updateData(t,r,i,!0),o}return e.prototype.updateData=function(t,r,i,o){var a=this,s=t.hostModel,l=t.getItemModel(r),u=l.getModel("emphasis"),c=t.getItemLayout(r),h=lt(Bs(l.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){a.setShape(h);return}if(o){a.setShape(h);var d=s.getShallow("animationType");s.ecModel.ssr?(We(a,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),a.originX=h.cx,a.originY=h.cy):d==="scale"?(a.shape.r=c.r0,We(a,{shape:{r:c.r}},s,r)):i!=null?(a.setShape({startAngle:i,endAngle:i}),We(a,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(a.shape.endAngle=c.startAngle,_e(a,{shape:{endAngle:c.endAngle}},s,r))}else yi(a),_e(a,{shape:h},s,r);a.useStyle(t.getItemVisual(r,"style")),Ln(a,l);var f=(c.startAngle+c.endAngle)/2,g=s.get("selectedOffset"),y=Math.cos(f)*g,_=Math.sin(f)*g,v=l.getShallow("cursor");v&&a.attr("cursor",v),this._updateLabel(s,t,r),a.ensureState("emphasis").shape=lt({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Bs(u.getModel("itemStyle"),c)),lt(a.ensureState("select"),{x:y,y:_,shape:Bs(l.getModel(["select","itemStyle"]),c)}),lt(a.ensureState("blur"),{shape:Bs(l.getModel(["blur","itemStyle"]),c)});var p=a.getTextGuideLine(),x=a.getTextContent();p&&lt(p.ensureState("select"),{x:y,y:_}),lt(x.ensureState("select"),{x:y,y:_}),Ze(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r,i){var o=this,a=r.getItemModel(i),s=a.getModel("labelLine"),l=r.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;Nn(o,_n(a),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(i,"normal")||r.getName(i)});var h=o.getTextContent();o.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var d=t.get(["label","position"]);if(d!=="outside"&&d!=="outer")o.removeTextGuideLine();else{var f=this.getTextGuideLine();f||(f=new er,this.setTextGuideLine(f)),A0(this,k0(a),{stroke:u,opacity:Pr(s.get(["lineStyle","opacity"]),c,1)})}},e}(Qn),XW=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,i,o){var a=t.getData(),s=this._data,l=this.group,u;if(!s&&a.count()>0){for(var c=a.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<a.count();++h)c=a.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&t.get("showEmptyCircle")){var d=zA(t),f=new Qn({shape:lt(OA(t,i),d)});f.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,l.add(f)}a.diff(s).add(function(g){var y=new UW(a,g,u);a.setItemGraphicEl(g,y),l.add(y)}).update(function(g,y){var _=s.getItemGraphicEl(y);_.updateData(a,g,u),_.off("click"),l.add(_),a.setItemGraphicEl(g,_)}).remove(function(g){var y=s.getItemGraphicEl(g);bc(y,t,g)}).execute(),HW(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=t[0]-o.cx,s=t[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},e.type="pie",e}(Pe);function nu(n,e,t){e=ht(e)&&{coordDimensions:e}||lt({encodeDefine:n.getEncode()},e);var r=n.getSource(),i=qc(r,e).dimensions,o=new nr(i,n);return o.initData(r,t),o}var lh=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}(),ZW=de(),qW=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new lh(At(this.getData,this),At(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return nu(this,{coordDimensions:["value"],encodeDefaulter:qt(Sm,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),i=ZW(r),o=i.seats;if(!o){var a=[];r.each(r.mapDimension("value"),function(l){a.push(l)}),o=i.seats=Nz(a,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=o[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Ja(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Ve);function KW(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(i){var o=r.mapDimension("value"),a=r.get(o,i);return!(ye(a)&&!isNaN(a)&&a<0)})}}}function YW(n){n.registerChartView(XW),n.registerSeriesModel(qW),HI("pie",n.registerAction),n.registerLayout(qt(GW,"pie")),n.registerProcessor(sh("pie")),n.registerProcessor(KW("pie"))}var JW=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return To(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,i){return i.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Ve),FA=4,$W=function(){function n(){}return n}(),QW=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new $W},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var i=r.points,o=r.size,a=this.symbolProxy,s=a.shape,l=t.getContext?t.getContext():t,u=l&&o[0]<FA,c=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<i.length;){var d=i[h++],f=i[h++];isNaN(d)||isNaN(f)||c&&!c.contain(d,f)||(s.x=d-o[0]/2,s.y=f-o[1]/2,s.width=o[0],s.height=o[1],a.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,r=t.points,i=t.size,o=this._ctx,a=this.softClipShape,s;if(o){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||a&&!a.contain(l,u)||o.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,r){for(var i=this.shape,o=i.points,a=i.size,s=Math.max(a[0],4),l=Math.max(a[1],4),u=o.length/2-1;u>=0;u--){var c=u*2,h=o[c]-s/2,d=o[c+1]-l/2;if(t>=h&&r>=d&&t<=h+s&&r<=d+l)return u}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),o=this.getBoundingRect();if(t=i[0],r=i[1],o.contain(t,r)){var a=this.hoverDataIdx=this.findDataIndex(t,r);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.points,o=r.size,a=o[0],s=o[1],l=1/0,u=1/0,c=-1/0,h=-1/0,d=0;d<i.length;){var f=i[d++],g=i[d++];l=Math.min(f,l),c=Math.max(f,c),u=Math.min(g,u),h=Math.max(g,h)}t=this._rect=new Qt(l-a/2,u-s/2,c-l+a,h-u+s)}return t},e}(ae),tj=function(){function n(){this.group=new jt}return n.prototype.updateData=function(e,t){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,t)},n.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,o=r.startIndex*4*2;t=new Float32Array(t.buffer,o,i)}r.setShape("points",t),r.reset()})},n.prototype.incrementalPrepareUpdate=function(e){this._clear()},n.prototype.incrementalUpdate=function(e,t,r){var i=this._newAdded[0],o=t.getLayout("points"),a=i&&i.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:o}),this._setCommon(u,t,r)}},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new QW({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},n.prototype._setCommon=function(e,t,r){var i=t.hostModel;r=r||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=r.clipShape||null,e.symbolProxy=ln(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<FA;e.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Ut(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}(),ej=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var o=t.getData(),a=this._updateSymbolDraw(o,t);a.updateData(o,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var o=t.getData(),a=this._updateSymbolDraw(o,t);a.incrementalPrepareUpdate(o),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,i){var o=t.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var a=oh("").reset(t,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var r=t.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,r){var i=this._symbolDraw,o=r.pipelineContext,a=o.large;return(!i||a!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=a?new tj:new rh,this._isLargeDraw=a,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Pe),nj=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(le),J0=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",an).models[0]},e.type="cartesian2dAxis",e}(le);nn(J0,Yc);var GA={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},rj=Yt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},GA),$0=Yt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},GA),ij=Yt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$0),oj=Ft({logBase:10},$0);const WA={category:rj,value:$0,time:ij,log:oj};var aj={value:1,category:1,time:1,log:1};function ru(n,e,t,r){R(aj,function(i,o){var a=Yt(Yt({},WA[o],!0),r,!0),s=function(l){Q(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var d=Ac(this),f=d?Ol(c):{},g=h.getTheme();Yt(c,g.get(o+"Axis")),Yt(c,this.getDefaultOption()),c.type=jA(c),d&&ca(c,f,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=v0.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+o,u.defaultOption=a,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",jA)}function jA(n){return n.type||(n.data?"category":"value")}var sj=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return pt(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Me(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}(),Q0=["x","y"];function HA(n){return n.type==="interval"||n.type==="time"}var lj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Q0,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!HA(t)||!HA(r))){var i=t.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,h=(s[1]-a[1])/u,d=a[0]-i[0]*c,f=a[1]-o[0]*h,g=this._transform=[c,0,0,h,d,f];this._invTransform=pl([],g)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var i=this.dataToPoint(t),o=this.dataToPoint(r),a=this.getArea(),s=new Qt(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var o=t[0],a=t[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return Dn(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(t[0]),u=o.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var i=[];if(this._invTransform)return Dn(i,t,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(t[0]),r),i[1]=a.coordToData(a.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-t,a=Math.min(i[0],i[1])-t,s=Math.max(r[0],r[1])-o+t,l=Math.max(i[0],i[1])-a+t;return new Qt(o,a,s,l)},e}(sj),uj=function(n){Q(e,n);function e(t,r,i,o,a){var s=n.call(this,t,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(wi);function t1(n,e,t){t=t||{};var r=n.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g=u==="x"?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var y=a.toGlobalCoord(a.dataToCoord(0));g[d.onZero]=Math.max(Math.min(y,g[1]),g[0])}o.position=[u==="y"?g[d[l]]:h[0],u==="x"?g[d[l]]:h[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=_[s],o.labelOffset=a?g[d[s]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),rn(t.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-v:v,o.z2=1,o}function UA(n){return n.get("coordinateSystem")==="cartesian2d"}function XA(n){var e={xAxisModel:null,yAxisModel:null};return R(e,function(t,r){var i=r.replace(/Model$/,""),o=n.getReferringComponents(i,an).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error(i+' "'+Pr(n.get(i+"Index"),n.get(i+"Id"),0)+'" not found');e[r]=o}),e}var e1=Math.log;function ZA(n,e,t){var r=Co.prototype,i=r.getTicks.call(t),o=r.getTicks.call(t,!0),a=i.length-1,s=r.getInterval.call(t),l=iC(n,e),u=l.extent,c=l.fixMin,h=l.fixMax;if(n.type==="log"){var d=e1(n.base);u=[e1(u[0])/d,e1(u[1])/d]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var f=r.getExtent.call(n);c&&(u[0]=f[0]),h&&(u[1]=f[1]);var g=r.getInterval.call(n),y=u[0],_=u[1];if(c&&h)g=(_-y)/a;else if(c)for(_=u[0]+g*a;_<u[1]&&isFinite(_)&&isFinite(u[1]);)g=m0(g),_=u[0]+g*a;else if(h)for(y=u[1]-g*a;y>u[0]&&isFinite(y)&&isFinite(u[0]);)g=m0(g),y=u[1]-g*a;else{var v=n.getTicks().length-1;v>a&&(g=m0(g));var p=g*a;_=Math.ceil(u[1]/g)*g,y=Ye(_-p),y<0&&u[0]>=0?(y=0,_=Ye(p)):_>0&&u[1]<=0&&(_=0,y=-Ye(p))}var x=(i[0].value-o[0].value)/s,b=(i[a].value-o[a].value)/s;if(r.setExtent.call(n,y+g*x,_+g*b),r.setInterval.call(n,g),(x||b)&&r.setNiceExtent.call(n,y+g,_-g),process.env.NODE_ENV!=="production"){var S=r.getTicks.call(n);S[1]&&(!xF(g)||my(S[1].value)>my(g))&&Xe("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var cj=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Q0,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function i(a){var s,l=ue(a),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var d=+l[h],f=a[d],g=f.model,y=f.scale;y0(y)&&g.get("alignTicks")&&g.get("interval")==null?c.push(f):($l(y,g),y0(y)&&(s=f))}c.length&&(s||(s=c.pop(),$l(s.scale,s.model)),R(c,function(_){ZA(_.scale,_.model,s.scale)}))}}i(r.x),i(r.y);var o={};R(r.x,function(a){qA(r,"y",a,o)}),R(r.y,function(a){qA(r,"x",a,o)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var i=e.getBoxLayoutParams(),o=!r&&e.get("containLabel"),a=dn(i,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=HF(u);if(c){var h=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[h]-=c[h]+d,u.position==="top"?a.y+=c.height+d:u.position==="left"&&(a.x+=c.width+d)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var c=u.isHorizontal(),h=c?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(h[d],h[1-d]),hj(u,c?a.x:a.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}Vt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===e||o[i].getAxis("y").index===t)return o[i]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(e,t,r){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},n.prototype.convertFromPixel=function(e,t,r){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},n.prototype._findConvertTarget=function(e){var t=e.seriesModel,r=e.xAxisModel||t&&t.getReferringComponents("xAxis",an).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",an).models[0],o=e.gridModel,a=this._coordsList,s,l;if(t)s=t.coordinateSystem,te(a,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},n.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},n.prototype._initCartesian=function(e,t,r){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,R(s.x,function(c,h){R(s.y,function(d,f){var g="x"+h+"y"+f,y=new lj(g);y.master=i,y.model=e,i._coordsMap[g]=y,i._coordsList.push(y),y.addAxis(c),y.addAxis(d)})});function u(c){return function(h,d){if(n1(h,e)){var f=h.get("position");c==="x"?f!=="top"&&f!=="bottom"&&(f=a.bottom?"top":"bottom"):f!=="left"&&f!=="right"&&(f=a.left?"right":"left"),a[f]=!0;var g=new uj(c,cf(h),[0,0],h.get("type"),f),y=g.type==="category";g.onBand=y&&h.get("boundaryGap"),g.inverse=h.get("inverse"),h.axis=g,g.model=h,g.grid=o,g.index=d,o._axesList.push(g),s[c][d]=g,l[c]++}}}},n.prototype._updateScale=function(e,t){R(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),e.eachSeries(function(i){if(UA(i)){var o=XA(i),a=o.xAxisModel,s=o.yAxisModel;if(!n1(a,t)||!n1(s,t))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),h=l.getAxis("y");r(u,c),r(u,h)}},this);function r(i,o){R(hf(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},n.prototype.getTooltipAxes=function(e){var t=[],r=[];return R(this.getCartesians(),function(i){var o=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),a=i.getOtherAxis(o);te(t,o)<0&&t.push(o),te(r,a)<0&&r.push(a)}),{baseAxes:t,otherAxes:r}},n.create=function(e,t){var r=[];return e.eachComponent("grid",function(i,o){var a=new n(i,e,t);a.name="grid_"+o,a.resize(i,t,!0),i.coordinateSystem=a,r.push(a)}),e.eachSeries(function(i){if(UA(i)){var o=XA(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Pr(a.get("gridIndex"),a.get("gridId"),0)+'" not found');if(a.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),r},n.dimensions=Q0,n}();function n1(n,e){return n.getCoordSysModel()===e}function qA(n,e,t,r){t.getAxesOnZeroOf=function(){return o?[o]:[]};var i=n[e],o,a=t.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)KA(i[l])&&(o=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&KA(i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0);function c(h){return h.dim+"_"+h.index}}function KA(n){return n&&n.type!=="category"&&n.type!=="time"&&jF(n)}function hj(n,e){var t=n.getExtent(),r=t[0]+t[1];n.toGlobalCoord=n.dim==="x"?function(i){return i+e}:function(i){return r-i+e},n.toLocalCoord=n.dim==="x"?function(i){return i-e}:function(i){return r-i+e}}var _a=Math.PI,or=function(){function n(e,t){this.group=new jt,this.opt=t,this.axisModel=e,Ft(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new jt({x:t.position[0],y:t.position[1],rotation:t.rotation});r.updateTransform(),this._transformGroup=r}return n.prototype.hasBuilder=function(e){return!!YA[e]},n.prototype.add=function(e){YA[e](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(e,t,r){var i=y2(t-e),o,a;return oc(i)?(a=r>0?"top":"bottom",o="center"):oc(i-_a)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<_a?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),YA={axisLine:function(n,e,t,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisLine")),!!i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Dn(s,s,a),Dn(l,l,a));var c=lt({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new mn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});kl(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var d=e.get(["axisLine","symbol"]);if(d!=null){var f=e.get(["axisLine","symbolSize"]);Tt(d)&&(d=[d,d]),(Tt(f)||ye(f))&&(f=[f,f]);var g=Ts(e.get(["axisLine","symbolOffset"])||0,f),y=f[0],_=f[1];R([{rotate:n.rotation+Math.PI/2,offset:g[0],r:0},{rotate:n.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,p){if(d[p]!=="none"&&d[p]!=null){var x=ln(d[p],-y/2,-_/2,y,_,c.stroke,!0),b=v.r+v.offset,S=u?l:s;x.attr({rotation:v.rotate,x:S[0]+b*Math.cos(n.rotation),y:S[1]-b*Math.sin(n.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(n,e,t,r){var i=fj(t,r,e,n),o=vj(t,r,e,n);if(dj(e,o,i),gj(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=IC(pt(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));AC(a)}},axisName:function(n,e,t,r){var i=rn(n.axisName,e.get("name"));if(i){var o=e.get("nameLocation"),a=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,$A(o)?n.labelOffset+a*l:0],d,f=e.get("nameRotate");f!=null&&(f=f*_a/180);var g;$A(o)?d=or.innerTextLayout(n.rotation,f??n.rotation,a):(d=pj(n.rotation,o,f||0,u),g=n.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(d.rotation)),!isFinite(g)&&(g=null)));var y=s.getFont(),_=e.get("nameTruncate",!0)||{},v=_.ellipsis,p=rn(n.nameTruncateMaxWidth,_.maxWidth,g),x=new ge({x:h[0],y:h[1],rotation:d.rotation,silent:or.isLabelSilent(e),style:ze(s,{text:i,font:y,overflow:"truncate",width:p,ellipsis:v,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(ys({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var b=or.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,Ut(x).eventData=b}r.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function pj(n,e,t,r){var i=y2(t-n),o,a,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return oc(i-_a/2)?(a=l?"bottom":"top",o="center"):oc(i-_a*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<_a*1.5&&i>_a/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function dj(n,e,t){if(!oC(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),i=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],h=t[t.length-1],d=t[t.length-2];r===!1?(qr(o),qr(u)):JA(o,a)&&(r?(qr(a),qr(c)):(qr(o),qr(u))),i===!1?(qr(s),qr(h)):JA(l,s)&&(i?(qr(l),qr(d)):(qr(s),qr(h)))}}function qr(n){n&&(n.ignore=!0)}function JA(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var i=_p([]);return ja(i,i,-n.rotation),t.applyTransform(ho([],i,n.getLocalTransform())),r.applyTransform(ho([],i,e.getLocalTransform())),t.intersect(r)}}function $A(n){return n==="middle"||n==="center"}function QA(n,e,t,r,i){for(var o=[],a=[],s=[],l=0;l<n.length;l++){var u=n[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=t,e&&(Dn(a,a,e),Dn(s,s,e));var c=new mn({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});kl(c.shape,c.style.lineWidth),c.anid=i+"_"+n[l].tickValue,o.push(c)}return o}function fj(n,e,t,r){var i=t.axis,o=t.getModel("axisTick"),a=o.get("show");if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=QA(u,e.transform,l,Ft(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)n.add(c[h]);return c}}function gj(n,e,t,r){var i=t.axis,o=t.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Ft(s.getLineStyle(),Ft(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=QA(a[c],e.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)n.add(h[d])}}function vj(n,e,t,r){var i=t.axis,o=rn(r.axisLabelShow,t.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=t.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(rn(r.labelRotate,a.get("rotate"))||0)*_a/180,c=or.innerTextLayout(r.rotation,u,r.labelDirection),h=t.getCategories&&t.getCategories(!0),d=[],f=or.isLabelSilent(t),g=t.get("triggerEvent");return R(l,function(y,_){var v=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(y.tickValue):y.tickValue,p=y.formattedLabel,x=y.rawLabel,b=a;if(h&&h[v]){var S=h[v];Vt(S)&&S.textStyle&&(b=new ke(S.textStyle,a,t.ecModel))}var M=b.getTextColor()||t.get(["axisLine","lineStyle","color"]),I=i.dataToCoord(v),C=b.getShallow("align",!0)||c.textAlign,A=Ht(b.getShallow("alignMinLabel",!0),C),D=Ht(b.getShallow("alignMaxLabel",!0),C),N=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,L=Ht(b.getShallow("verticalAlignMinLabel",!0),N),E=Ht(b.getShallow("verticalAlignMaxLabel",!0),N),k=new ge({x:I,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:f,z2:10+(y.level||0),style:ze(b,{text:p,align:_===0?A:_===l.length-1?D:C,verticalAlign:_===0?L:_===l.length-1?E:N,fill:Et(M)?M(i.type==="category"?x:i.type==="value"?v+"":v,_):M})});if(k.anid="label_"+v,ys({el:k,componentModel:t,itemName:p,formatterParamsExtra:{isTruncated:function(){return k.isTruncated},value:x,tickIndex:_}}),g){var z=or.makeAxisEventDataBase(t);z.targetType="axisLabel",z.value=x,z.tickIndex=_,i.type==="category"&&(z.dataIndex=v),Ut(k).eventData=z}e.add(k),k.updateTransform(),d.push(k),n.add(k),k.decomposeTransform()}),d}}function yj(n,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return mj(t,n,e),t.seriesInvolved&&xj(t,n),t}function mj(n,e,t){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];R(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=uh(s.model),u=n.coordSysAxesInfo[l]={};n.coordSysMap[l]=s;var c=s.model,h=c.getModel("tooltip",r);if(R(s.getAxes(),qt(y,!1,null)),s.getTooltipAxes&&r&&h.get("show")){var d=h.get("trigger")==="axis",f=h.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(h.get(["axisPointer","axis"]));(d||f)&&R(g.baseAxes,qt(y,f?"cross":!0,d)),f&&R(g.otherAxes,qt(y,"cross",!1))}function y(_,v,p){var x=p.model.getModel("axisPointer",i),b=x.get("show");if(!(!b||b==="auto"&&!_&&!o1(x))){v==null&&(v=x.get("triggerTooltip")),x=_?_j(p,h,i,e,_,v):x;var S=x.get("snap"),M=x.get("triggerEmphasis"),I=uh(p.model),C=v||S||p.type==="category",A=n.axesInfo[I]={key:I,axis:p,coordSys:s,axisPointerModel:x,triggerTooltip:v,triggerEmphasis:M,involveSeries:C,snap:S,useHandle:o1(x),seriesModels:[],linkGroup:null};u[I]=A,n.seriesInvolved=n.seriesInvolved||C;var D=bj(o,p);if(D!=null){var N=a[D]||(a[D]={axesInfo:{}});N.axesInfo[I]=A,N.mapper=o[D].mapper,A.linkGroup=N}}}})}function _j(n,e,t,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};R(s,function(d){l[d]=Wt(a.get(d))}),l.snap=n.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!o){var h=l.lineStyle=a.get("crossStyle");h&&Ft(u,h.textStyle)}}return n.model.getModel("axisPointer",new ke(l,t,r))}function xj(n,e){e.eachSeries(function(t){var r=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),o=t.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||o===!1||t.get(["axisPointer","show"],!0)===!1||R(n.coordSysAxesInfo[uh(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(t),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=t.getData().count())})})}function bj(n,e){for(var t=e.model,r=e.dim,i=0;i<n.length;i++){var o=n[i]||{};if(r1(o[r+"AxisId"],t.id)||r1(o[r+"AxisIndex"],t.componentIndex)||r1(o[r+"AxisName"],t.name))return i}}function r1(n,e){return n==="all"||ht(n)&&te(n,e)>=0||n===e}function wj(n){var e=i1(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,i=t.option,o=t.get("status"),a=t.get("value");a!=null&&(a=r.parse(a));var s=o1(t);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function i1(n){var e=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[uh(n)]}function Sj(n){var e=i1(n);return e&&e.axisPointerModel}function o1(n){return!!n.get(["handle","show"])}function uh(n){return n.type+"||"+n.id}var a1={},Fs=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,o){this.axisPointerClass&&wj(t),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,r,i,o){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,r){var i=this._axisPointer;i&&i.remove(r)},e.prototype.dispose=function(t,r){this._disposeAxisPointer(r),n.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,r,i){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=Sj(t);a?(this._axisPointer||(this._axisPointer=new o)).render(t,a,r,i):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,r){if(process.env.NODE_ENV!=="production"&&a1[t])throw new Error("axisPointer "+t+" exists");a1[t]=r},e.getAxisPointerClass=function(t){return t&&a1[t]},e.type="axis",e}(He),s1=de();function tk(n,e,t,r){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=s1(n).splitAreaColors,d=Lt(),f=0;if(h)for(var g=0;g<u.length;g++){var y=h.get(u[g].tickValue);if(y!=null){f=(y+(c-1)*g)%c;break}}var _=i.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=ht(s)?s:[s];for(var g=1;g<u.length;g++){var p=i.toGlobalCoord(u[g].coord),x=void 0,b=void 0,S=void 0,M=void 0;i.isHorizontal()?(x=_,b=l.y,S=p-x,M=l.height,_=x+S):(x=l.x,b=_,S=l.width,M=p-b,_=b+M);var I=u[g-1].tickValue;I!=null&&d.set(I,f),e.add(new fe({anid:I!=null?"area_"+I:null,shape:{x,y:b,width:S,height:M},style:Ft({fill:s[f]},v),autoBatch:!0,silent:!0})),f=(f+1)%c}s1(n).splitAreaColors=d}}}function ek(n){s1(n).splitAreaColors=null}var Mj=["axisLine","axisTickLabel","axisName"],Ij=["splitArea","splitLine","minorSplitLine"],nk=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new jt,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=t1(s,t),u=new or(t,lt({handleAutoShown:function(h){for(var d=s.coordinateSystem.getCartesians(),f=0;f<d.length;f++)if(y0(d[f].getOtherAxis(t.axis).scale))return!0;return!1}},l));R(Mj,u.add,u),this._axisGroup.add(u.getGroup()),R(Ij,function(h){t.get([h,"show"])&&Tj[h](this,this._axisGroup,t,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||wc(a,this._axisGroup,t),n.prototype.render.call(this,t,r,i,o)}},e.prototype.remove=function(){ek(this)},e.type="cartesianAxis",e}(Fs),Tj={splitLine:function(n,e,t,r){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=o.get("showMinLine")!==!1,u=o.get("showMaxLine")!==!1;s=ht(s)?s:[s];for(var c=r.coordinateSystem.getRect(),h=i.isHorizontal(),d=0,f=i.getTicksCoords({tickModel:o}),g=[],y=[],_=a.getLineStyle(),v=0;v<f.length;v++){var p=i.toGlobalCoord(f[v].coord);if(!(v===0&&!l||v===f.length-1&&!u)){var x=f[v].tickValue;h?(g[0]=p,g[1]=c.y,y[0]=p,y[1]=c.y+c.height):(g[0]=c.x,g[1]=p,y[0]=c.x+c.width,y[1]=p);var b=d++%s.length,S=new mn({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:Ft({stroke:s[b]},_),silent:!0});kl(S.shape,_.lineWidth),e.add(S)}}}},minorSplitLine:function(n,e,t,r){var i=t.axis,o=t.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),f=0;f<u.length;f++)for(var g=0;g<u[f].length;g++){var y=i.toGlobalCoord(u[f][g].coord);l?(c[0]=y,c[1]=s.y,h[0]=y,h[1]=s.y+s.height):(c[0]=s.x,c[1]=y,h[0]=s.x+s.width,h[1]=y);var _=new mn({anid:"minor_line_"+u[f][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});kl(_.shape,d.lineWidth),e.add(_)}},splitArea:function(n,e,t,r){tk(n,e,t,r)}},rk=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(nk),Cj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=rk.type,t}return e.type="yAxis",e}(nk),Aj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,r){this.group.removeAll(),t.get("show")&&this.group.add(new fe({shape:t.coordinateSystem.getRect(),style:Ft({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(He),ik={offset:0};function ok(n){n.registerComponentView(Aj),n.registerComponentModel(nj),n.registerCoordinateSystem("cartesian2d",cj),ru(n,"x",J0,ik),ru(n,"y",J0,ik),n.registerComponentView(rk),n.registerComponentView(Cj),n.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function kj(n){ie(ok),n.registerSeriesModel(JW),n.registerChartView(ej),n.registerLayout(oh("scatter"))}function Dj(n){n.eachSeriesByType("radar",function(e){var t=e.getData(),r=[],i=e.coordinateSystem;if(i){var o=i.getIndicatorAxes();R(o,function(a,s){t.each(t.mapDimension(o[s].dim),function(l,u){r[u]=r[u]||[];var c=i.dataToPoint(l,s);r[u][s]=ak(c)?c:sk(i)})}),t.each(function(a){var s=l3(r[a],function(l){return ak(l)})||sk(i);r[a].push(s.slice()),t.setItemLayout(a,r[a])})}})}function ak(n){return!isNaN(n[0])&&!isNaN(n[1])}function sk(n){return[n.cx,n.cy]}function Lj(n){var e=n.polar;if(e){ht(e)||(e=[e]);var t=[];R(e,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),n.radar=n.radar||[],ht(n.radar)||(n.radar=[n.radar]),n.radar.push(r)):t.push(r)}),n.polar=t}R(n.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var Nj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var o=t.coordinateSystem,a=this.group,s=t.getData(),l=this._data;function u(d,f){var g=d.getItemVisual(f,"symbol")||"circle";if(g!=="none"){var y=Xl(d.getItemVisual(f,"symbolSize")),_=ln(g,-1,-1,2,2),v=d.getItemVisual(f,"symbolRotate")||0;return _.attr({style:{strokeNoScale:!0},z2:100,scaleX:y[0]/2,scaleY:y[1]/2,rotation:v*Math.PI/180||0}),_}}function c(d,f,g,y,_,v){g.removeAll();for(var p=0;p<f.length-1;p++){var x=u(y,_);x&&(x.__dimIdx=p,d[p]?(x.setPosition(d[p]),ms[v?"initProps":"updateProps"](x,{x:f[p][0],y:f[p][1]},t,_)):x.setPosition(f[p]),g.add(x))}}function h(d){return pt(d,function(f){return[o.cx,o.cy]})}s.diff(l).add(function(d){var f=s.getItemLayout(d);if(f){var g=new tr,y=new er,_={shape:{points:f}};g.shape.points=h(f),y.shape.points=h(f),We(g,_,t,d),We(y,_,t,d);var v=new jt,p=new jt;v.add(y),v.add(g),v.add(p),c(y.shape.points,f,p,s,d,!0),s.setItemGraphicEl(d,v)}}).update(function(d,f){var g=l.getItemGraphicEl(f),y=g.childAt(0),_=g.childAt(1),v=g.childAt(2),p={shape:{points:s.getItemLayout(d)}};p.shape.points&&(c(y.shape.points,p.shape.points,v,s,d,!1),yi(_),yi(y),_e(y,p,t),_e(_,p,t),s.setItemGraphicEl(d,g))}).remove(function(d){a.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,f){var g=s.getItemModel(f),y=d.childAt(0),_=d.childAt(1),v=d.childAt(2),p=s.getItemVisual(f,"style"),x=p.fill;a.add(d),y.useStyle(Ft(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),Ln(y,g,"lineStyle"),Ln(_,g,"areaStyle");var b=g.getModel("areaStyle"),S=b.isEmpty()&&b.parentModel.isEmpty();_.ignore=S,R(["emphasis","select","blur"],function(C){var A=g.getModel([C,"areaStyle"]),D=A.isEmpty()&&A.parentModel.isEmpty();_.ensureState(C).ignore=D&&S}),_.useStyle(Ft(b.getAreaStyle(),{fill:x,opacity:.7,decal:p.decal}));var M=g.getModel("emphasis"),I=M.getModel("itemStyle").getItemStyle();v.eachChild(function(C){if(C instanceof Tn){var A=C.style;C.useStyle(lt({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},p))}else C.useStyle(p),C.setColor(x),C.style.strokeNoScale=!0;var D=C.ensureState("emphasis");D.style=Wt(I);var N=s.getStore().get(s.getDimensionIndex(C.__dimIdx),f);(N==null||isNaN(N))&&(N=""),Nn(C,_n(g),{labelFetcher:s.hostModel,labelDataIndex:f,labelDimIndex:C.__dimIdx,defaultText:N,inheritColor:x,defaultOpacity:p.opacity})}),Ze(d,M.get("focus"),M.get("blurScope"),M.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Pe),Pj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new lh(At(this.getData,this),At(this.getRawData,this))},e.prototype.getInitialData=function(t,r){return nu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,r,i){var o=this.getData(),a=this.coordinateSystem,s=a.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=xI(this,t);return xn("section",{header:u,sortBlocks:!0,blocks:pt(s,function(h){var d=o.get(o.mapDimension(h.dim),t);return xn("nameValue",{markerType:"subItem",markerColor:c,name:h.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var r=this.getData(),i=this.coordinateSystem,o=r.getValues(pt(i.dimensions,function(u){return r.mapDimension(u)}),t),a=0,s=o.length;a<s;a++)if(!isNaN(o[a])){var l=i.getIndicatorAxes();return i.coordToPoint(l[a].dataToCoord(o[a]),a)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Ve),ch=WA.value;function Mf(n,e){return Ft({show:e},n)}var Ej=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),r=this.get("splitNumber"),i=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),d=this.get("triggerEvent"),f=pt(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var y=l;g.color!=null&&(y=Ft({color:g.color},l));var _=Yt(Wt(g),{boundaryGap:t,splitNumber:r,scale:i,axisLine:o,axisTick:a,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:y,triggerEvent:d},!1);if(Tt(c)){var v=_.name;_.name=c.replace("{value}",v??"")}else Et(c)&&(_.name=c(_.name,_));var p=new ke(_,null,this.ecModel);return nn(p,Yc.prototype),p.mainType="radar",p.componentIndex=this.componentIndex,p},this);this._indicatorModels=f},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Yt({lineStyle:{color:"#bbb"}},ch.axisLine),axisLabel:Mf(ch.axisLabel,!1),axisTick:Mf(ch.axisTick,!1),splitLine:Mf(ch.splitLine,!0),splitArea:Mf(ch.splitArea,!0),indicator:[]},e}(le),Rj=["axisLine","axisTickLabel","axisName"],Oj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var o=this.group;o.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes(),o=pt(i,function(a){var s=a.model.get("showName")?a.name:"",l=new or(a.model,{axisName:s,position:[r.cx,r.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});R(o,function(a){R(Rj,a.add,a),this.group.add(a.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var o=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),c=a.get("show"),h=s.get("show"),d=l.get("color"),f=u.get("color"),g=ht(d)?d:[d],y=ht(f)?f:[f],_=[],v=[];function p(z,F,W){var q=W%F.length;return z[q]=z[q]||[],q}if(o==="circle")for(var x=i[0].getTicksCoords(),b=r.cx,S=r.cy,M=0;M<x.length;M++){if(c){var I=p(_,g,M);_[I].push(new wo({shape:{cx:b,cy:S,r:x[M].coord}}))}if(h&&M<x.length-1){var I=p(v,y,M);v[I].push(new mc({shape:{cx:b,cy:S,r0:x[M].coord,r:x[M+1].coord}}))}}else for(var C,A=pt(i,function(F,W){var q=F.getTicksCoords();return C=C==null?q.length-1:Math.min(q.length-1,C),pt(q,function(j){return r.coordToPoint(j.coord,W)})}),D=[],M=0;M<=C;M++){for(var N=[],L=0;L<i.length;L++)N.push(A[L][M]);if(N[0]?N.push(N[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+M),c){var I=p(_,g,M);_[I].push(new er({shape:{points:N}}))}if(h&&D){var I=p(v,y,M-1);v[I].push(new tr({shape:{points:N.concat(D)}}))}D=N.slice().reverse()}var E=l.getLineStyle(),k=u.getAreaStyle();R(v,function(z,F){this.group.add(Gr(z,{style:Ft({stroke:"none",fill:y[F%y.length]},k),silent:!0}))},this),R(_,function(z,F){this.group.add(Gr(z,{style:Ft({fill:"none",stroke:g[F%g.length]},E),silent:!0}))},this)},e.type="radar",e}(He),zj=function(n){Q(e,n);function e(t,r,i){var o=n.call(this,t,r,i)||this;return o.type="value",o.angle=0,o.name="",o}return e}(wi),Vj=function(){function n(e,t,r){this.dimensions=[],this._model=e,this._indicatorAxes=pt(e.getIndicatorModels(),function(i,o){var a="indicator_"+o,s=new zj(a,new Co);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(a),s},this),this.resize(e,r)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(e,t){var r=this._indicatorAxes[t];return this.coordToPoint(r.dataToCoord(e),t)},n.prototype.coordToPoint=function(e,t){var r=this._indicatorAxes[t],i=r.angle,o=this.cx+e*Math.cos(i),a=this.cy-e*Math.sin(i);return[o,a]},n.prototype.pointToData=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=Math.sqrt(t*t+r*r);t/=i,r/=i;for(var o=Math.atan2(-r,t),a=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(o-c.angle);h<a&&(s=c,l=u,a=h)}return[l,+(s&&s.coordToData(i))]},n.prototype.resize=function(e,t){var r=e.get("center"),i=t.getWidth(),o=t.getHeight(),a=Math.min(i,o)/2;this.cx=Mt(r[0],i),this.cy=Mt(r[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Tt(s)||ye(s))&&(s=[0,s]),this.r0=Mt(s[0],a),this.r=Mt(s[1],a),R(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},n.prototype.update=function(e,t){var r=this._indicatorAxes,i=this._model;R(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();R(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var o=i.get("splitNumber"),a=new Co;a.setExtent(0,o),a.setInterval(1),R(r,function(s,l){ZA(s.scale,s.model,a)})},n.prototype.convertToPixel=function(e,t,r){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(e,t,r){return console.warn("Not implemented."),null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.create=function(e,t){var r=[];return e.eachComponent("radar",function(i){var o=new n(i,e,t);r.push(o),i.coordinateSystem=o}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},n.dimensions=[],n}();function Bj(n){n.registerCoordinateSystem("radar",Vj),n.registerComponentModel(Ej),n.registerComponentView(Oj),n.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(r){t.setItemVisual(r,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function Fj(n){ie(Bj),n.registerChartView(Nj),n.registerSeriesModel(Pj),n.registerLayout(Dj),n.registerProcessor(sh("radar")),n.registerPreprocessor(Lj)}var lk="\0_ec_interaction_mutex";function Gj(n,e,t){var r=l1(n);r[e]=t}function Wj(n,e,t){var r=l1(n),i=r[e];i===t&&(r[e]=null)}function uk(n,e){return!!l1(n)[e]}function l1(n){return n[lk]||(n[lk]={})}Ui({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Qe);var hh=function(n){Q(e,n);function e(t){var r=n.call(this)||this;r._zr=t;var i=At(r._mousedownHandler,r),o=At(r._mousemoveHandler,r),a=At(r._mouseupHandler,r),s=At(r._mousewheelHandler,r),l=At(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=Ft(Wt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",i),t.on("mousemove",o),t.on("mouseup",a)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},r.disable=function(){t.off("mousedown",i),t.off("mousemove",o),t.off("mouseup",a),t.off("mousewheel",s),t.off("pinch",l)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!ww(t)){for(var r=t.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=t.offsetX,o=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,o)&&(this._x=i,this._y=o,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!If("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||uk(this._zr,"globalPan"))){var r=t.offsetX,i=t.offsetY,o=this._x,a=this._y,s=r-o,l=i-a;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&co(t.event),ck(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:o,oldY:a,newX:r,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){ww(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var r=If("zoomOnMouseWheel",t,this._opt),i=If("moveOnMouseWheel",t,this._opt),o=t.wheelDelta,a=Math.abs(o),s=t.offsetX,l=t.offsetY;if(!(o===0||!r&&!i)){if(r){var u=a>3?1.4:a>1?1.2:1.1,c=o>0?u:1/u;u1(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(o),d=(o>0?1:-1)*(h>3?.4:h>1?.15:.05);u1(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!uk(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:.9090909090909091;u1(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Er);function u1(n,e,t,r,i){n.pointerChecker&&n.pointerChecker(r,i.originX,i.originY)&&(co(r.event),ck(n,e,t,r,i))}function ck(n,e,t,r,i){i.isAvailableBehavior=At(If,null,t,r),n.trigger(e,i)}function If(n,e,t){var r=t[n];return!n||r&&(!Tt(r)||e.event[r+"Key"])}function c1(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function h1(n,e,t,r){var i=n.target,o=n.zoomLimit,a=n.zoom=n.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/n.zoom;n.zoom=a,i.x-=(t-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var jj={axisPointer:1,tooltip:1,brush:1};function Tf(n,e,t){var r=e.getComponentByElement(n.topTarget),i=r&&r.coordinateSystem;return r&&r!==t&&!jj.hasOwnProperty(r.mainType)&&i&&i.model!==t}function hk(n){if(Tt(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var p1,Cf={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},pk=ue(Cf),Af={"alignment-baseline":"textBaseline","stop-color":"stopColor"},dk=ue(Af),Hj=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=hk(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Illegal svg");this._defsUsePending=[];var i=new jt;this._root=i;var o=[],a=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Sr(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,o,null,!1,!1),u=u.nextSibling;Zj(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(a){var d=kf(a);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(h=bk(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var f=i;i=new jt,i.add(f),f.scaleX=f.scaleY=h.scale,f.x=h.x,f.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new fe({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:h,named:o}},n.prototype._parseNode=function(e,t,r,i,o,a){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(o=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=t;else{if(!o){var c=p1[s];if(c&&kt(p1,s)){l=c.call(this,e,t);var h=e.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var f=fk[s];if(f&&kt(fk,s)){var g=f.call(this,e),y=e.getAttribute("id");y&&(this._defs[y]=g)}}if(l&&l.isGroup)for(var _=e.firstChild;_;)_.nodeType===1?this._parseNode(_,l,r,u,o,a):_.nodeType===3&&a&&this._parseText(_,l),_=_.nextSibling},n.prototype._parseText=function(e,t){var r=new bl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Kr(t,r),Sr(e,r,this._defsUsePending,!1,!1),Uj(r,t);var i=r.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,r.scaleX*=o/9,r.scaleY*=o/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){p1={g:function(e,t){var r=new jt;return Kr(t,r),Sr(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new fe;return Kr(t,r),Sr(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new wo;return Kr(t,r),Sr(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new mn;return Kr(t,r),Sr(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new sd;return Kr(t,r),Sr(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),i;r&&(i=yk(r));var o=new tr({shape:{points:i||[]},silent:!0});return Kr(t,o),Sr(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,t){var r=e.getAttribute("points"),i;r&&(i=yk(r));var o=new er({shape:{points:i||[]},silent:!0});return Kr(t,o),Sr(e,o,this._defsUsePending,!1,!1),o},image:function(e,t){var r=new Tn;return Kr(t,r),Sr(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new jt;return Kr(t,s),Sr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var o=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",s=new jt;return Kr(t,s),Sr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(e,t){var r=e.getAttribute("d")||"",i=NS(r);return Kr(t,i),Sr(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),n}(),fk={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),i=parseInt(n.getAttribute("y2")||"0",10),o=new xc(e,t,r,i);return gk(n,o),vk(n,o),o},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),i=new VS(e,t,r);return gk(n,i),vk(n,i),i}};function gk(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function vk(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var o={};xk(t,o,o);var a=o.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}t=t.nextSibling}}function Kr(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Ft(e.__inheritedStyle,n.__inheritedStyle))}function yk(n){for(var e=kf(n),t=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);t.push([i,o])}return t}function Sr(n,e,t,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};n.nodeType===1&&(Yj(n,e),xk(n,a,s),r||Jj(n,a,s)),o.style=o.style||{},a.fill!=null&&(o.style.fill=mk(o,"fill",a.fill,t)),a.stroke!=null&&(o.style.stroke=mk(o,"stroke",a.stroke,t)),R(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(o.style[l]=parseFloat(a[l]))}),R(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(o.style[l]=a[l])}),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=pt(kf(a.lineDash),function(l){return parseFloat(l)})),(a.visibility==="hidden"||a.visibility==="collapse")&&(o.invisible=!0),a.display==="none"&&(o.ignore=!0)}function Uj(n,e){var t=e.__selfStyle;if(t){var r=t.textBaseline,i=r;!r||r==="auto"||r==="baseline"?i="alphabetic":r==="before-edge"||r==="text-before-edge"?i="top":r==="after-edge"||r==="text-after-edge"?i="bottom":(r==="central"||r==="mathematical")&&(i="middle"),n.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&(a==="middle"&&(s="center"),n.style.textAlign=s)}}var Xj=/^url\(\s*#(.*?)\)/;function mk(n,e,t,r){var i=t&&t.match(Xj);if(i){var o=hi(i[1]);r.push([n,e,o]);return}return t==="none"&&(t=null),t}function Zj(n,e){for(var t=0;t<e.length;t++){var r=e[t];r[0].style[r[1]]=n[r[2]]}}var qj=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kf(n){return n.match(qj)||[]}var Kj=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,d1=Math.PI/180;function Yj(n,e){var t=n.getAttribute("transform");if(t){t=t.replace(/,/g," ");var r=[],i=null;t.replace(Kj,function(h,d,f){return r.push(d,f),""});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=kf(a);switch(i=i||mr(),s){case"translate":Li(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Rv(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ja(i,i,-parseFloat(l[0])*d1,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*d1);ho(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*d1);ho(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var _k=/([^\s:;]+)\s*:\s*([^:;]+)/g;function xk(n,e,t){var r=n.getAttribute("style");if(r){_k.lastIndex=0;for(var i;(i=_k.exec(r))!=null;){var o=i[1],a=kt(Cf,o)?Cf[o]:null;a&&(e[a]=i[2]);var s=kt(Af,o)?Af[o]:null;s&&(t[s]=i[2])}}}function Jj(n,e,t){for(var r=0;r<pk.length;r++){var i=pk[r],o=n.getAttribute(i);o!=null&&(e[Cf[i]]=o)}for(var r=0;r<dk.length;r++){var i=dk[r],o=n.getAttribute(i);o!=null&&(t[Af[i]]=o)}}function bk(n,e){var t=e.width/n.width,r=e.height/n.height,i=Math.min(t,r);return{scale:i,x:-(n.x+n.width/2)*i+(e.x+e.width/2),y:-(n.y+n.height/2)*i+(e.y+e.height/2)}}function $j(n,e){var t=new Hj;return t.parse(n,e)}var Qj=Lt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),tH=function(){function n(e,t){this.type="geoSVG",this._usedGraphicMap=Lt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=hk(t)}return n.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=nH(e.named),r=t.regions,i=t.regionsMap;this._regions=r,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(e){var t,r;try{t=e&&$j(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=t.root,Bt(r!=null)}catch(_){throw new Error(`Invalid svg format
81
+ `+_.message)}var i=new jt;i.add(r),i.isGeoSVGGraphicRoot=!0;var o=t.width,a=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,d=void 0;if(o!=null?(u=0,h=o):s&&(u=s.x,h=s.width),a!=null?(c=0,d=a):s&&(c=s.y,d=s.height),u==null||c==null){var f=r.getBoundingRect();u==null&&(u=f.x,h=f.width),c==null&&(c=f.y,d=f.height)}l=this._boundingRect=new Qt(u,c,h,d)}if(s){var g=bk(s,l);r.scaleX=r.scaleY=g.scale,r.x=g.x,r.y=g.y}i.setClipPath(new fe({shape:l.plain()}));var y=[];return R(t.named,function(_){Qj.get(_.svgNodeTagLower)!=null&&(y.push(_),eH(_.el))}),{root:i,boundingRect:l,named:y}},n.prototype.useGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,r),r)},n.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);r&&(t.removeKey(e),this._freedGraphics.push(r))},n}();function eH(n){n.silent=!1,n.isGroup&&n.traverse(function(e){e.silent=!1})}function nH(n){var e=[],t=Lt();return R(n,function(r){if(r.namedFrom==null){var i=new YF(r.name,r.el);e.push(i),t.set(r.name,i)}}),{regions:e,regionsMap:t}}for(var f1=[126,25],wk="南海诸岛",Gs=[[[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]]],Ws=0;Ws<Gs.length;Ws++)for(var iu=0;iu<Gs[Ws].length;iu++)Gs[Ws][iu][0]/=10.5,Gs[Ws][iu][1]/=-10.5/.75,Gs[Ws][iu][0]+=f1[0],Gs[Ws][iu][1]+=f1[1];function rH(n,e){if(n==="china"){for(var t=0;t<e.length;t++)if(e[t].name===wk)return;e.push(new hC(wk,pt(Gs,function(r){return{type:"polygon",exterior:r}}),f1))}}var iH={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function oH(n,e){if(n==="china"){var t=iH[e.name];if(t){var r=e.getCenter();r[0]+=t[0]/10.5,r[1]+=-t[1]/(10.5/.75),e.setCenter(r)}}}var aH=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function sH(n,e){n==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:aH[0]})}var lH="name",uH=function(){function n(e,t,r){this.type="geoJSON",this._parsedMap=Lt(),this._mapName=e,this._specialAreas=r,this._geoJSON=hH(t)}return n.prototype.load=function(e,t){t=t||lH;var r=this._parsedMap.get(t);if(!r){var i=this._parseToRegions(t);r=this._parsedMap.set(t,{regions:i,boundingRect:cH(i)})}var o=Lt(),a=[];return R(r.regions,function(s){var l=s.name;e&&kt(e,l)&&(s=s.cloneShallow(l=e[l])),a.push(s),o.set(l,s)}),{regions:a,boundingRect:r.boundingRect||new Qt(0,0,0,0),regionsMap:o}},n.prototype._parseToRegions=function(e){var t=this._mapName,r=this._geoJSON,i;try{i=r?$F(r,e):[]}catch(o){throw new Error(`Invalid geoJson format
82
+ `+o.message)}return rH(t,i),R(i,function(o){var a=o.name;oH(t,o),sH(t,o);var s=this._specialAreas&&this._specialAreas[a];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),i},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();function cH(n){for(var e,t=0;t<n.length;t++){var r=n[t].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function hH(n){return Tt(n)?typeof JSON<"u"&&JSON.parse?JSON.parse(n):new Function("return ("+n+");")():n}var ph=Lt();const Ao={registerMap:function(n,e,t){if(e.svg){var r=new tH(n,e.svg);ph.set(n,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var r=new uH(n,i,t);ph.set(n,r)}},getGeoResource:function(n){return ph.get(n)},getMapForUser:function(n){var e=ph.get(n);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(n,e,t){var r=ph.get(n);if(!r){process.env.NODE_ENV!=="production"&&console.error("Map "+n+" not exists. The GeoJSON of the map must be provided.");return}return r.load(e,t)}};var g1=["rect","circle","line","ellipse","polygon","polyline","path"],pH=Lt(g1),dH=Lt(g1.concat(["g"])),fH=Lt(g1.concat(["g"])),Sk=de();function Df(n){var e=n.getItemStyle(),t=n.get("areaColor");return t!=null&&(e.fill=t),e}function Mk(n){var e=n.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Ik=function(){function n(e){var t=new jt;this.uid=Ll("ec_map_draw"),this._controller=new hh(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new jt),t.add(this._svgGroup=new jt)}return n.prototype.draw=function(e,t,r,i,o){var a=e.mainType==="geo",s=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},function(v){!s&&v.getHostGeoModel()===e&&(s=v.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,h=l.getTransformInfo(),d=h.raw,f=h.roam,g=!u.childAt(0)||o;g?(c.x=f.x,c.y=f.y,c.scaleX=f.scaleX,c.scaleY=f.scaleY,c.dirty()):_e(c,f,e);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,_={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:y,isGeo:a,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(_):l.resourceType==="geoSVG"&&this._buildSVG(_),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,i)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Lt(),r=Lt(),i=this._regionsGroup,o=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(f,g){return g&&(f=g(f)),f&&[f[0]*o.scaleX+o.x,f[1]*o.scaleY+o.y]}function h(f){for(var g=[],y=!u&&l&&l.project,_=0;_<f.length;++_){var v=c(f[_],y);v&&g.push(v)}return g}function d(f){return{shape:{points:h(f)}}}i.removeAll(),R(e.geo.regions,function(f){var g=f.name,y=t.get(g),_=r.get(g)||{},v=_.dataIdx,p=_.regionModel;if(!y){y=t.set(g,new jt),i.add(y),v=s?s.indexOfName(g):null,p=e.isGeo?a.getRegionModel(g):s?s.getItemModel(v):null;var x=p.get("silent",!0);x!=null&&(y.silent=x),r.set(g,{dataIdx:v,regionModel:p})}var b=[],S=[];R(f.geometries,function(C){if(C.type==="polygon"){var A=[C.exterior].concat(C.interiors||[]);u&&(A=Lk(A,u)),R(A,function(N){b.push(new tr(d(N)))})}else{var D=C.points;u&&(D=Lk(D,u,!0)),R(D,function(N){S.push(new er(d(N)))})}});var M=c(f.getCenter(),l&&l.project);function I(C,A){if(C.length){var D=new rm({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});y.add(D),Tk(e,D,v,p),Ck(e,D,g,p,a,v,M),A&&(Mk(D),R(D.states,Mk))}}I(b),I(S,!0)}),t.each(function(f,g){var y=r.get(g),_=y.dataIdx,v=y.regionModel;Ak(e,f,g,v,a,_),kk(e,f,g,v,a),Dk(e,f,g,v,a)},this)},n.prototype._buildSVG=function(e){var t=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=Lt(),o=!1;R(this._svgGraphicRecord.named,function(a){var s=a.name,l=e.mapOrGeoModel,u=e.data,c=a.svgNodeTagLower,h=a.el,d=u?u.indexOfName(s):null,f=l.getRegionModel(s);pH.get(c)!=null&&h instanceof Br&&Tk(e,h,d,f),h instanceof Br&&(h.culling=!0);var g=f.get("silent",!0);if(g!=null&&(h.silent=g),h.z2EmphasisLift=0,!a.namedFrom&&(fH.get(c)!=null&&Ck(e,h,s,f,l,d,null),Ak(e,h,s,f,l,d),kk(e,h,s,f,l),dH.get(c)!=null)){var y=Dk(e,h,s,f,l);y==="self"&&(o=!0);var _=i.get(s)||i.set(s,[]);_.push(h)}},this),this._enableBlurEntireSVG(o,e)},n.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var r=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=r.opacity;this._svgGraphicRecord.root.traverse(function(o){if(!o.isGroup){cs(o);var a=o.ensureState("blur").style||{};a.opacity==null&&i!=null&&(a.opacity=i),o.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},n.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var r=t.coordinateSystem;if(r.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var o=i.get(e);return o?[o]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},n.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},n.prototype._useSVG=function(e){var t=Ao.getGeoResource(e);if(t&&t.type==="geoSVG"){var r=t.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},n.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ao.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype._updateController=function(e,t,r){var i=e.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=i.getZoom(),o.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}o.off("pan").on("pan",function(u){this._mouseDownFlag=!1,c1(a,u.dx,u.dy),r.dispatchAction(lt(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,h1(a,u.scale,u.originX,u.originY),r.dispatchAction(lt(l(),{totalZoom:a.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),o.setPointerChecker(function(u,c,h){return i.containPoint([c,h])&&!Tf(u,r,e)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Sk(t).ignore)})},n.prototype._updateMapSelectHandler=function(e,t,r,i){var o=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){o._mouseDownFlag=!0}),t.on("click",function(a){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},n}();function Tk(n,e,t,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Df(i),u=Df(o),c=Df(s),h=Df(a),d=n.data;if(d){var f=d.getItemVisual(t,"style"),g=d.getItemVisual(t,"decal");n.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),g&&(l.decal=ql(g,n.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,cs(e)}function Ck(n,e,t,r,i,o,a){var s=n.data,l=n.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?t:o,d=void 0;(!s||o>=0)&&(d=i);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Nn(e,_n(r),{labelFetcher:d,labelDataIndex:h,defaultText:t},f);var g=e.getTextContent();if(g&&(Sk(g).ignore=g.ignore,e.textConfig&&a)){var y=e.getBoundingRect().clone();e.textConfig.layoutRect=y,e.textConfig.position=[(a[0]-y.x)/y.width*100+"%",(a[1]-y.y)/y.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Ak(n,e,t,r,i,o){n.data?n.data.setItemGraphicEl(o,e):Ut(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:r&&r.option||{}}}function kk(n,e,t,r,i){n.data||ys({el:e,componentModel:i,itemName:t,itemTooltipOption:r.get("tooltip")})}function Dk(n,e,t,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Ze(e,a,o.get("blurScope"),o.get("disabled")),n.isGeo&&lB(e,i,t),a}function Lk(n,e,t){var r=[],i;function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),R(n,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),r}var gH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,o){if(!(o&&o.type==="mapToggleSelect"&&o.from===this.uid)){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&o&&o.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===t.id){var s=this._mapDraw;s&&a.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new Ik(i);a.add(s.group),s.draw(t,r,i,this,o),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(t,r,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,r,i){var o=t.originalData,a=this.group;o.each(o.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=o.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,h=u.offset,d=new wo({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+h*9,cy:c[1],r:3},silent:!0,z2:8+(h?0:Sl+1)});if(!h){var f=t.mainSeries.getData(),g=o.getName(l),y=f.indexOfName(g),_=o.getItemModel(l),v=_.getModel("label"),p=f.getItemGraphicEl(y);Nn(d,_n(_),{labelFetcher:{getFormattedLabel:function(x,b){return t.getFormattedLabel(y,b)}},defaultText:g}),d.disableLabelAnimation=!0,v.get("position")||d.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(x){id(d,x)}}a.add(d)}}})},e.type="map",e}(Pe),vH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),o=this.coordinateSystem,a=o.getRegion(i);return a&&o.dataToPoint(a.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var r=nu(this,{coordDimensions:["value"],encodeDefaulter:qt(Sm,this)}),i=Lt(),o=[],a=0,s=r.count();a<s;a++){var l=r.getName(a);i.set(l,a)}var u=Ao.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return R(u.regions,function(c){var h=c.name,d=i.get(h),f=c.properties&&c.properties.echartsStyle,g;d==null?(g={name:h},o.push(g)):g=r.getRawDataItem(d),f&&Yt(g,f)}),r.appendData(o),r},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var r=this.getData();return r.get(r.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var r=this.getData();return r.getItemModel(r.indexOfName(t))},e.prototype.formatTooltip=function(t,r,i){for(var o=this.getData(),a=this.getRawValue(t),s=o.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var h=l[c].originalData.indexOfName(s),d=o.mapDimension("value");isNaN(l[c].originalData.get(d,h))||u.push(l[c].name)}return xn("section",{header:u.join(", "),noHeader:!u.length,blocks:[xn("nameValue",{name:s,value:a})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var r=t.icon||"roundRect",i=ln(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Ve);function yH(n,e){var t={};return R(n,function(r){r.each(r.mapDimension("value"),function(i,o){var a="ec-"+r.getName(o);t[a]=t[a]||[],isNaN(i)||t[a].push(i)})}),n[0].map(n[0].mapDimension("value"),function(r,i){for(var o="ec-"+n[0].getName(i),a=0,s=1/0,l=-1/0,u=t[o].length,c=0;c<u;c++)s=Math.min(s,t[o][c]),l=Math.max(l,t[o][c]),a+=t[o][c];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=a/u:h=a,u===0?NaN:h})}function mH(n){var e={};n.eachSeriesByType("map",function(t){var r=t.getHostGeoModel(),i=r?"o"+r.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),R(e,function(t,r){for(var i=yH(pt(t,function(a){return a.getData()}),t[0].get("mapValueCalculation")),o=0;o<t.length;o++)t[o].originalData=t[o].getData();for(var o=0;o<t.length;o++)t[o].seriesGroup=t,t[o].needsDrawMap=o===0&&!t[o].getHostGeoModel(),t[o].setData(i.cloneShallow()),t[o].mainSeries=t[0]})}function _H(n){var e={};n.eachSeriesByType("map",function(t){var r=t.getMapType();if(!(t.getHostGeoModel()||e[r])){var i={};R(t.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&n.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var h=l.getName(c),d=s.getRegion(h);if(!(!d||isNaN(u))){var f=i[h]||0,g=s.dataToPoint(d.getCenter());i[h]=f+1,l.setItemLayout(c,{point:g,offset:f})}})});var o=t.getData();o.each(function(a){var s=o.getName(a),l=o.getItemLayout(a)||{};l.showLabel=!i[s],o.setItemLayout(a,l)}),e[r]=!0}})}var Nk=Dn,dh=function(n){Q(e,n);function e(t){var r=n.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new go,r._rawTransformable=new go,r.name=t,r}return e.prototype.setBoundingRect=function(t,r,i,o){return this._rect=new Qt(t,r,i,o),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,r,i,o){this._transformTo(t,r,i,o),this._viewRect=new Qt(t,r,i,o)},e.prototype._transformTo=function(t,r,i,o){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new Qt(t,r,i,o));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,r){t&&(this._center=[Mt(t[0],r.getWidth()),Mt(t[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var r=this.zoomLimit;r&&(r.max!=null&&(t=Math.min(r.max,t)),r.min!=null&&(t=Math.max(r.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),r=t.x+t.width/2,i=t.y+t.height/2;return[r,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),o=this.getCenter(),a=this.getZoom();o=Dn([],o,t),i=Dn([],i,t),r.originX=o[0],r.originY=o[1],r.x=i[0]-o[0],r.y=i[1]-o[1],r.scaleX=r.scaleY=a,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,r=this._rawTransformable;r.parent=t,t.updateTransform(),r.updateTransform(),Ev(this.transform||(this.transform=[]),r.transform||mr()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],pl(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,r=this._roamTransformable,i=new go;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,r,i){var o=r?this._rawTransform:this.transform;return i=i||[],o?Nk(i,t,o):qn(i,t)},e.prototype.pointToData=function(t){var r=this.invTransform;return r?Nk([],t,r):[t[0],t[1]]},e.prototype.convertToPixel=function(t,r,i){var o=Pk(r);return o===this?o.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,r,i){var o=Pk(r);return o===this?o.pointToData(i):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(go);function Pk(n){var e=n.seriesModel;return e?e.coordinateSystem:null}var xH={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Ek=["lng","lat"],v1=function(n){Q(e,n);function e(t,r,i){var o=n.call(this,t)||this;o.dimensions=Ek,o.type="geo",o._nameCoordMap=Lt(),o.map=r;var a=i.projection,s=Ao.load(r,i.nameMap,i.nameProperty),l=Ao.getGeoResource(r),u=o.resourceType=l?l.type:null,c=o.regions=s.regions,h=xH[l.type];o._regionsMap=s.regionsMap,o.regions=s.regions,process.env.NODE_ENV!=="production"&&a&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Xe("Map "+r+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||(process.env.NODE_ENV!=="production"&&Xe("project and unproject must be both provided in the projeciton."),a=null)),o.projection=a;var d;if(a)for(var f=0;f<c.length;f++){var g=c[f].getBoundingRect(a);d=d||g.clone(),d.union(g)}else d=s.boundingRect;return o.setBoundingRect(d.x,d.y,d.width,d.height),o.aspectScale=a?1:Ht(i.aspectScale,h.aspectScale),o._invertLongitute=a?!1:h.invertLongitute,o}return e.prototype._transformTo=function(t,r,i,o){var a=this.getBoundingRect(),s=this._invertLongitute;a=a.clone(),s&&(a.y=-a.y-a.height);var l=this._rawTransformable;l.transform=a.calculateTransform(new Qt(t,r,i,o));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var r=this.regions,i=0;i<r.length;i++){var o=r[i];if(o.type==="geoJSON"&&o.contain(t))return r[i]}},e.prototype.addGeoCoord=function(t,r){this._nameCoordMap.set(t,r)},e.prototype.getGeoCoord=function(t){var r=this._regionsMap.get(t);return this._nameCoordMap.get(t)||r&&r.getCenter()},e.prototype.dataToPoint=function(t,r,i){if(Tt(t)&&(t=this.getGeoCoord(t)),t){var o=this.projection;return o&&(t=o.project(t)),t&&this.projectedToPoint(t,r,i)}},e.prototype.pointToData=function(t){var r=this.projection;return r&&(t=r.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return n.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,r,i){return n.prototype.dataToPoint.call(this,t,r,i)},e.prototype.convertToPixel=function(t,r,i){var o=Rk(r);return o===this?o.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,r,i){var o=Rk(r);return o===this?o.pointToData(i):null},e}(dh);nn(v1,dh);function Rk(n){var e=n.geoModel,t=n.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",an).models[0]||{}).coordinateSystem:null}function Ok(n,e){var t=n.get("boundingCoords");if(t!=null){var r=t[0],i=t[1];if(!(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(M,I,C,A){for(var D=C-M,N=A-I,L=0;L<=100;L++){var E=L/100,k=o.project([M+D*E,I+N*E]);qo(r,r,k),Ko(i,i,k)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var h=this.getBoundingRect(),d=n.get("layoutCenter"),f=n.get("layoutSize"),g=e.getWidth(),y=e.getHeight(),_=h.width/h.height*this.aspectScale,v=!1,p,x;d&&f&&(p=[Mt(d[0],g),Mt(d[1],y)],x=Mt(f,Math.min(g,y)),!isNaN(p[0])&&!isNaN(p[1])&&!isNaN(x)?v=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var b;if(v)b={},_>1?(b.width=x,b.height=x/_):(b.height=x,b.width=x*_),b.y=p[1]-b.height/2,b.x=p[0]-b.width/2;else{var S=n.getBoxLayoutParams();S.aspect=_,b=dn(S,{width:g,height:y})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function bH(n,e){R(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var wH=function(){function n(){this.dimensions=Ek}return n.prototype.create=function(e,t){var r=[];function i(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}e.eachComponent("geo",function(a,s){var l=a.get("map"),u=new v1(l+s,l,lt({nameMap:a.get("nameMap")},i(a)));u.zoomLimit=a.get("scaleLimit"),r.push(u),a.coordinateSystem=u,u.model=a,u.resize=Ok,u.resize(a,t)}),e.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=r[l]}});var o={};return e.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();o[s]=o[s]||[],o[s].push(a)}}),R(o,function(a,s){var l=pt(a,function(c){return c.get("nameMap")}),u=new v1(s,s,lt({nameMap:xv(l)},i(a[0])));u.zoomLimit=rn.apply(null,pt(a,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Ok,u.resize(a[0],t),R(a,function(c){c.coordinateSystem=u,bH(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,i){for(var o=(e||[]).slice(),a=Lt(),s=0;s<o.length;s++)a.set(o[s].name,o[s]);var l=Ao.load(t,r,i);return R(l.regions,function(u){var c=u.name,h=a.get(c),d=u.properties&&u.properties.echartsStyle;h||(h={name:c},o.push(h)),d&&Yt(h,d)}),o},n}(),zk=new wH,SH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,i){var o=Ao.getGeoResource(t.map);if(o&&o.type==="geoJSON"){var a=t.itemStyle=t.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(t,i),Ja(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,r=this.option;r.regions=zk.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var i={};this._optionModelMap=Di(r.regions||[],function(o,a){var s=a.name;return s&&(o.set(s,new ke(a,t,t.ecModel)),a.selected&&(i[s]=!0)),o},Lt()),r.selectedMap||(r.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ke(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,r){var i=this.getRegionModel(t),o=r==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),a={name:t};if(Et(o))return a.status=r,o(a);if(Tt(o))return o.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var r=this.option,i=r.selectedMode;if(i){i!=="multiple"&&(r.selectedMap=null);var o=r.selectedMap||(r.selectedMap={});o[t]=!0}},e.prototype.unSelect=function(t){var r=this.option.selectedMap;r&&(r[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var r=this.option.selectedMap;return!!(r&&r[t])},e.type="geo",e.layoutMode="box",e.defaultOption={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"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(le);function Vk(n,e){return n.pointToProjected?n.pointToProjected(e):n.pointToData(e)}function y1(n,e,t,r){var i=n.getZoom(),o=n.getCenter(),a=e.zoom,s=n.projectedToPoint?n.projectedToPoint(o):n.dataToPoint(o);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,n.setCenter(Vk(n,s),r)),a!=null){if(t){var l=t.min||0,u=t.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}n.scaleX*=a,n.scaleY*=a;var c=(e.originX-n.x)*(a-1),h=(e.originY-n.y)*(a-1);n.x-=c,n.y-=h,n.updateTransform(),n.setCenter(Vk(n,s),r),n.setZoom(a*i)}return{center:n.getCenter(),zoom:n.getZoom()}}var MH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,r){this._api=r},e.prototype.render=function(t,r,i,o){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Ik(i));var a=this._mapDraw;a.draw(t,r,i,this,o),a.group.on("click",this._handleRegionClick,this),a.group.silent=t.get("silent"),this.group.add(a.group),this.updateSelectStatus(t,r,i)},e.prototype._handleRegionClick=function(t){var r;Is(t.target,function(i){return(r=Ut(i).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(t,r,i){var o=this;this._mapDraw.group.traverse(function(a){var s=Ut(a).eventData;if(s)return o._model.isSelected(s.name)?i.enterSelect(a):i.leaveSelect(a),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(He);function IH(n,e,t){Ao.registerMap(n,e,t)}function Bk(n){n.registerCoordinateSystem("geo",zk),n.registerComponentModel(SH),n.registerComponentView(MH),n.registerImpl("registerMap",IH),n.registerImpl("getMap",function(t){return Ao.getMapForUser(t)});function e(t,r){r.update="geo:updateSelectStatus",n.registerAction(r,function(i,o){var a={},s=[];return o.eachComponent({mainType:"geo",query:i},function(l){l[t](i.name);var u=l.coordinateSystem;R(u.regions,function(h){a[h.name]=l.isSelected(h.name)||!1});var c=[];R(a,function(h,d){a[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:a,allSelected:s,name:i.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,r,i){var o=t.componentType||"series";r.eachComponent({mainType:o,query:t},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=y1(s,t,a.get("scaleLimit"),i);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),o==="series"&&R(a.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function TH(n){ie(Bk),n.registerChartView(gH),n.registerSeriesModel(vH),n.registerLayout(_H),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mH),HI("map",n.registerAction)}function CH(n){var e=n;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],r,i;r=t.pop();)if(i=r.children,r.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},t.push(s)}}function AH(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,i=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){LH(n);var o=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(n.hierNode.prelim=i.hierNode.prelim+e(n,i),n.hierNode.modifier=n.hierNode.prelim-o):n.hierNode.prelim=o}else i&&(n.hierNode.prelim=i.hierNode.prelim+e(n,i));n.parentNode.hierNode.defaultAncestor=NH(n,i,n.parentNode.hierNode.defaultAncestor||r[0],e)}function kH(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Fk(n){return arguments.length?n:RH}function fh(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function DH(n,e){return dn(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function LH(n){for(var e=n.children,t=e.length,r=0,i=0;--t>=0;){var o=e[t];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function NH(n,e,t,r){if(e){for(var i=n,o=n,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=m1(s),o=_1(o),s&&o;){i=m1(i),a=_1(a),i.hierNode.ancestor=n;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);d>0&&(EH(PH(s,n,t),n,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!m1(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!_1(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,t=n)}return t}function m1(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _1(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function PH(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function EH(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function RH(n,e){return n.parentNode===e.parentNode?1:2}var OH=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),zH=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new OH},e.prototype.buildPath=function(t,r){var i=r.childPoints,o=i.length,a=r.parentPoint,s=i[0],l=i[o-1];if(o===1){t.moveTo(a[0],a[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,d=Mt(r.forkPosition,1),f=[];f[c]=a[c],f[h]=a[h]+(l[h]-a[h])*d,t.moveTo(a[0],a[1]),t.lineTo(f[0],f[1]),t.moveTo(s[0],s[1]),f[c]=s[c],t.lineTo(f[0],f[1]),f[c]=l[c],t.lineTo(f[0],f[1]),t.lineTo(l[0],l[1]);for(var g=1;g<o-1;g++){var y=i[g];t.moveTo(y[0],y[1]),f[c]=y[c],t.lineTo(f[0],f[1])}},e}(ae),VH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new jt,t}return e.prototype.init=function(t,r){this._controller=new hh(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,r,i){var o=t.getData(),a=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(t,i),this._updateController(t,r,i);var u=this._data;o.diff(u).add(function(c){Gk(o,c)&&Wk(o,c,null,s,t)}).update(function(c,h){var d=u.getItemGraphicEl(h);if(!Gk(o,c)){d&&Uk(u,h,d,s,t);return}Wk(o,c,d,s,t)}).remove(function(c){var h=u.getItemGraphicEl(c);h&&Uk(u,c,h,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(c,h){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:h})})}),this._data=o},e.prototype._updateViewCoordSys=function(t,r){var i=t.getData(),o=[];i.each(function(h){var d=i.getItemLayout(h);d&&!isNaN(d.x)&&!isNaN(d.y)&&o.push([+d.x,+d.y])});var a=[],s=[];$p(o,a,s);var l=this._min,u=this._max;s[0]-a[0]===0&&(a[0]=l?l[0]:a[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-a[1]===0&&(a[1]=l?l[1]:a[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new dh;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),c.setCenter(t.get("center"),r),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=a,this._max=s},e.prototype._updateController=function(t,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;a.setPointerChecker(function(u,c,h){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,h)&&!Tf(u,i,t)}),a.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){c1(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){h1(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(t),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var r=t.getData(),i=this._getNodeGlobalScale(t);r.eachItemGraphicEl(function(o,a){o.setSymbolScale(i)})},e.prototype._getNodeGlobalScale=function(t){var r=t.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,o=r.scaleX||1,a=r.getZoom(),s=(a-1)*i+1;return s/o},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Pe);function Gk(n,e){var t=n.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function Wk(n,e,t,r,i){var o=!t,a=n.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=a.isExpand===!1&&a.children.length!==0?l:"#fff",c=n.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=n.getItemGraphicEl(h.dataIndex),f=h.getLayout(),g=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:f,y=a.getLayout();o?(t=new nh(n,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=g.x,t.y=g.y):t.updateData(n,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=y.rawX,t.__radialRawY=y.rawY,r.add(t),n.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,_e(t,{x:y.x,y:y.y},i);var _=t.getSymbolPath();if(i.get("layout")==="radial"){var v=c.children[0],p=v.getLayout(),x=v.children.length,b=void 0,S=void 0;if(y.x===p.x&&a.isExpand===!0&&v.children.length){var M={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};b=Math.atan2(M.y-p.y,M.x-p.x),b<0&&(b=Math.PI*2+b),S=M.x<p.x,S&&(b=b-Math.PI)}else b=Math.atan2(y.y-p.y,y.x-p.x),b<0&&(b=Math.PI*2+b),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(S=y.x<p.x,S&&(b=b-Math.PI)):(S=y.x>p.x,S||(b=b-Math.PI));var I=S?"left":"right",C=s.getModel("label"),A=C.get("rotate"),D=A*(Math.PI/180),N=_.getTextContent();N&&(_.setTextConfig({position:C.get("position")||I,rotation:A==null?-b:D,origin:"center"}),N.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),E=L==="relative"?Gu(a.getAncestorsIndices(),a.getDescendantIndices()):L==="ancestor"?a.getAncestorsIndices():L==="descendant"?a.getDescendantIndices():null;E&&(Ut(t).focus=E),BH(i,a,c,t,g,f,y,r),t.__edge&&(t.onHoverStateChange=function(k){if(k!=="blur"){var z=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex);z&&z.hoverState===hc||id(t.__edge,k)}})}function BH(n,e,t,r,i,o,a,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),h=n.getOrient(),d=n.get(["lineStyle","curveness"]),f=n.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),y=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(y||(y=r.__edge=new _c({shape:x1(c,h,d,i,i)})),_e(y,{shape:x1(c,h,d,o,a)},n));else if(u==="polyline"){if(c==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var _=e.children,v=[],p=0;p<_.length;p++){var x=_[p].getLayout();v.push([x.x,x.y])}y||(y=r.__edge=new zH({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:f}})),_e(y,{shape:{parentPoint:[a.x,a.y],childPoints:v}},n)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}y&&!(u==="polyline"&&!e.isExpand)&&(y.useStyle(Ft({strokeNoScale:!0,fill:null},g)),Ln(y,l,"lineStyle"),cs(y),s.add(y))}function jk(n,e,t,r,i){var o=e.tree.root,a=Hk(o,n),s=a.source,l=a.sourceLayout,u=e.getItemGraphicEl(n.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),f=r.get("edgeShape"),g=r.get("layout"),y=r.get("orient"),_=r.get(["lineStyle","curveness"]);d&&(f==="curve"?aa(d,{shape:x1(g,y,_,l,l),style:{opacity:0}},r,{cb:function(){t.remove(d)},removeOpt:i}):f==="polyline"&&r.get("layout")==="orthogonal"&&aa(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){t.remove(d)},removeOpt:i}))}}function Hk(n,e){for(var t=e.parentNode===n?e:e.parentNode||e,r;r=t.getLayout(),r==null;)t=t.parentNode===n?t:t.parentNode||t;return{source:t,sourceLayout:r}}function Uk(n,e,t,r,i){var o=n.tree.getNodeByDataIndex(e),a=n.tree.root,s=Hk(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};aa(t,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(t),n.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach(function(u){jk(u,n,r,i,l)}),jk(o,n,r,i,l)}function x1(n,e,t,r,i){var o,a,s,l,u,c,h,d;if(n==="radial"){u=r.rawX,h=r.rawY,c=i.rawX,d=i.rawY;var f=fh(u,h),g=fh(u,h+(d-h)*t),y=fh(c,d+(h-d)*t),_=fh(c,d);return{x1:f.x||0,y1:f.y||0,x2:_.x||0,y2:_.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:y.x||0,cpy2:y.y||0}}else u=r.x,h=r.y,c=i.x,d=i.y,(e==="LR"||e==="RL")&&(o=u+(c-u)*t,a=h,s=c+(u-c)*t,l=d),(e==="TB"||e==="BT")&&(o=u,a=h+(d-h)*t,s=c,l=d+(h-d)*t);return{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var Yr=de();function Xk(n){var e=n.mainData,t=n.datas;t||(t={main:e},n.datasAttr={main:"data"}),n.datas=n.mainData=null,Zk(e,t,n),R(t,function(r){R(e.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,qt(FH,n))})}),e.wrapMethod("cloneShallow",qt(WH,n)),R(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,qt(GH,n))}),Bt(t[e.dataType]===e)}function FH(n,e){if(UH(this)){var t=lt({},Yr(this).datas);t[this.dataType]=e,Zk(e,t,n)}else b1(e,this.dataType,Yr(this).mainData,n);return e}function GH(n,e){return n.struct&&n.struct.update(),e}function WH(n,e){return R(Yr(e).datas,function(t,r){t!==e&&b1(t.cloneShallow(),r,e,n)}),e}function jH(n){var e=Yr(this).mainData;return n==null||e==null?e:Yr(e).datas[n]}function HH(){var n=Yr(this).mainData;return n==null?[{data:n}]:pt(ue(Yr(n).datas),function(e){return{type:e,data:Yr(n).datas[e]}})}function UH(n){return Yr(n).mainData===n}function Zk(n,e,t){Yr(n).datas={},R(e,function(r,i){b1(r,i,n,t)})}function b1(n,e,t,r){Yr(t).datas[e]=n,Yr(n).mainData=t,n.dataType=e,r.struct&&(n[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=n),n.getLinkedData=jH,n.getLinkedDataAll=HH}var XH=function(){function n(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(e,t,r){Et(e)&&(r=t,t=e,e=null),e=e||{},Tt(e)&&(e={order:e});var i=e.order||"preorder",o=this[e.attr||"children"],a;i==="preorder"&&(a=t.call(r,this));for(var s=0;!a&&s<o.length;s++)o[s].eachNode(e,t,r);i==="postorder"&&t.call(r,this)},n.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,i=r.length;t<i;t++){var o=r[t].getNodeById(e);if(o)return o}},n.prototype.contains=function(e){if(e===this)return!0;for(var t=0,r=this.children,i=r.length;t<i;t++){var o=r[t].contains(e);if(o)return o}},n.prototype.getAncestors=function(e){for(var t=[],r=e?this:this.parentNode;r;)t.push(r),r=r.parentNode;return t.reverse(),t},n.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},n.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},n.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},n.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},n.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},n.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},n}(),w1=function(){function n(e){this.type="tree",this._nodes=[],this.hostModel=e}return n.prototype.eachNode=function(e,t,r){this.root.eachNode(e,t,r)},n.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},n.prototype.getNodeById=function(e){return this.root.getNodeById(e)},n.prototype.update=function(){for(var e=this.data,t=this._nodes,r=0,i=t.length;r<i;r++)t[r].dataIndex=-1;for(var r=0,i=e.count();r<i;r++)t[e.getRawIndex(r)].dataIndex=r},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(e,t,r){var i=new n(t),o=[],a=1;s(e);function s(c,h){var d=c.value;a=Math.max(a,ht(d)?d.length:1),o.push(c);var f=new XH(pn(c.name,""),i);h?ZH(f,h):i.root=f,i._nodes.push(f);var g=c.children;if(g)for(var y=0;y<g.length;y++)s(g[y],f)}i.root.updateDepthAndHeight(0);var l=qc(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new nr(l,t);return u.initData(o),r&&r(u),Xk({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},n}();function ZH(n,e){var t=e.children;n.parentNode!==e&&(t.push(n),n.parentNode=e)}function gh(n,e,t){if(n&&te(e,n.type)>=0){var r=t.getData().tree.root,i=n.targetNode;if(Tt(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=n.targetNodeId;if(o!=null&&(i=r.getNodeById(o)))return{node:i}}}function qk(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function S1(n,e){var t=qk(n);return te(t,e)>=0}function Lf(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var qH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},i=t.leaves||{},o=new ke(i,this,this.ecModel),a=w1.createTree(r,this,s);function s(h){h.wrapMethod("getItemModel",function(d,f){var g=a.getNodeByDataIndex(f);return g&&g.children.length&&g.isExpand||(d.parentModel=o),d})}var l=0;a.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",function(h){var d=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=d&&d.collapsed!=null?!d.collapsed:h.depth<=c}),a.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,i){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return xn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Lf(i,this),r.collapsed=!i.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Ve);function KH(n,e,t){for(var r=[n],i=[],o;o=r.pop();)if(i.push(o),o.isExpand){var a=o.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;o=i.pop();)e(o,t)}function vh(n,e){for(var t=[n],r;r=t.pop();)if(e(r),r.isExpand){var i=r.children;if(i.length)for(var o=i.length-1;o>=0;o--)t.push(i[o])}}function YH(n,e){n.eachSeriesByType("tree",function(t){JH(t,e)})}function JH(n,e){var t=DH(n,e);n.layoutInfo=t;var r=n.get("layout"),i=0,o=0,a=null;r==="radial"?(i=2*Math.PI,o=Math.min(t.height,t.width)/2,a=Fk(function(x,b){return(x.parentNode===b.parentNode?1:2)/x.depth})):(i=t.width,o=t.height,a=Fk());var s=n.getData().tree.root,l=s.children[0];if(l){CH(s),KH(l,AH,a),s.hierNode.modifier=-l.hierNode.prelim,vh(l,kH);var u=l,c=l,h=l;vh(l,function(x){var b=x.getLayout().x;b<u.getLayout().x&&(u=x),b>c.getLayout().x&&(c=x),x.depth>h.depth&&(h=x)});var d=u===c?1:a(u,c)/2,f=d-u.getLayout().x,g=0,y=0,_=0,v=0;if(r==="radial")g=i/(c.getLayout().x+d+f),y=o/(h.depth-1||1),vh(l,function(x){_=(x.getLayout().x+f)*g,v=(x.depth-1)*y;var b=fh(_,v);x.setLayout({x:b.x,y:b.y,rawX:_,rawY:v},!0)});else{var p=n.getOrient();p==="RL"||p==="LR"?(y=o/(c.getLayout().x+d+f),g=i/(h.depth-1||1),vh(l,function(x){v=(x.getLayout().x+f)*y,_=p==="LR"?(x.depth-1)*g:i-(x.depth-1)*g,x.setLayout({x:_,y:v},!0)})):(p==="TB"||p==="BT")&&(g=i/(c.getLayout().x+d+f),y=o/(h.depth-1||1),vh(l,function(x){_=(x.getLayout().x+f)*g,v=p==="TB"?(x.depth-1)*y:o-(x.depth-1)*y,x.setLayout({x:_,y:v},!0)}))}}}function $H(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");lt(s,a)})})}function QH(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var i=e.dataIndex,o=r.getData().tree,a=o.getNodeByDataIndex(i);a.isExpand=!a.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var o=i.coordinateSystem,a=y1(o,e,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}function t7(n){n.registerChartView(VH),n.registerSeriesModel(qH),n.registerLayout(YH),n.registerVisual($H),QH(n)}var Kk=["treemapZoomToNode","treemapRender","treemapMove"];function e7(n){for(var e=0;e<Kk.length;e++)n.registerAction({type:Kk[e],update:"updateView"},Qe);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"treemap",query:t},i);function i(o,a){var s=["treemapZoomToNode","treemapRootToNode"],l=gh(t,s,o);if(l){var u=o.getViewRoot();u&&(t.direction=S1(u,l.node)?"rollUp":"drillDown"),o.resetViewRoot(l.node)}}})}function Yk(n){var e=n.getData(),t=e.tree,r={};t.eachNode(function(i){for(var o=i;o&&o.depth>1;)o=o.parentNode;var a=Cm(n.ecModel,o.name||o.dataIndex+"",r);i.setVisual("decal",a)})}var n7=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};Jk(i);var o=t.levels||[],a=this.designatedVisualItemStyle={},s=new ke({itemStyle:a},this,r);o=t.levels=r7(o,r);var l=pt(o||[],function(h){return new ke(h,s,r)},this),u=w1.createTree(i,this,c);function c(h){h.wrapMethod("getItemModel",function(d,f){var g=u.getNodeByDataIndex(f),y=g?l[g.depth]:null;return d.parentModel=y||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,i){var o=this.getData(),a=this.getRawValue(t),s=o.getName(t);return xn("nameValue",{name:s,value:a})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Lf(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},lt(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=Lt(),this._idIndexMapCount=0);var i=r.get(t);return i==null&&r.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Yk(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Ve);function Jk(n){var e=0;R(n.children,function(r){Jk(r);var i=r.value;ht(i)&&(i=i[0]),e+=i});var t=n.value;ht(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ht(n.value)?n.value[0]=t:n.value=t}function r7(n,e){var t=Ne(e.get("color")),r=Ne(e.get(["aria","decal","decals"]));if(t){n=n||[];var i,o;R(n,function(s){var l=new ke(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(o=!0)});var a=n[0]||(n[0]={});return i||(a.color=t.slice()),!o&&r&&(a.decal=r.slice()),n}}var i7=8,$k=8,M1=5,o7=function(){function n(e){this.group=new jt,e.add(this.group)}return n.prototype.render=function(e,t,r,i){var o=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!o.get("show")||!r)){var s=o.getModel("itemStyle"),l=o.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),h={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,h,u),this._renderContent(e,h,s,l,u,c,i),Dd(a,h.pos,h.box)}},n.prototype._prepare=function(e,t,r){for(var i=e;i;i=i.parentNode){var o=pn(i.getModel().get("name"),""),a=r.getTextRect(o),s=Math.max(a.width+i7*2,t.emptyItemWidth);t.totalWidth+=s+$k,t.renderList.push({node:i,text:o,width:s})}},n.prototype._renderContent=function(e,t,r,i,o,a,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),h=c4(t.pos,t.box),d=t.totalWidth,f=t.renderList,g=i.getModel("itemStyle").getItemStyle(),y=f.length-1;y>=0;y--){var _=f[y],v=_.node,p=_.width,x=_.text;d>h.width&&(d-=p-u,p=u,x=null);var b=new tr({shape:{points:a7(l,0,p,c,y===f.length-1,y===0)},style:Ft(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new ge({style:ze(o,{text:x})}),textConfig:{position:"inside"},z2:Sl*1e4,onclick:qt(s,v)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=ze(a,{text:x}),b.ensureState("emphasis").style=g,Ze(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),s7(b,e,v),l+=p+$k}},n.prototype.remove=function(){this.group.removeAll()},n}();function a7(n,e,t,r,i,o){var a=[[i?n:n-M1,e],[n+t,e],[n+t,e+r],[i?n:n-M1,e+r]];return!o&&a.splice(2,0,[n+t+M1,e+r/2]),!i&&a.push([n,e+r/2]),a}function s7(n,e,t){Ut(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Lf(t,e)}}var l7=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,i,o){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:i,easing:o}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:r,aborted:r})}return this},n}();function u7(){return new l7}var I1=jt,Qk=fe,tD=3,eD="label",nD="upperLabel",c7=Sl*10,h7=Sl*2,p7=Sl*3,js=ts([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rD=function(n){var e=js(n);return e.stroke=e.fill=e.lineWidth=null,e},Nf=de(),d7=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=yh(),t}return e.prototype.render=function(t,r,i,o){var a=r.findComponents({mainType:"series",subType:"treemap",query:o});if(!(te(a,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=gh(o,s,t),u=o&&o.type,c=t.layoutInfo,h=!this._oldTree,d=this._storage,f=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:o.direction}:null,g=this._giveContainerGroup(c),y=t.get("animation"),_=this._doRender(g,t,f);y&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(g,_,t,f):_.renderFinally(),this._resetController(i),this._renderBreadcrumb(t,i,l)}},e.prototype._giveContainerGroup=function(t){var r=this._containerGroup;return r||(r=this._containerGroup=new I1,this._initEvents(r),this.group.add(r)),r.x=t.x,r.y=t.y,r},e.prototype._doRender=function(t,r,i){var o=r.getData().tree,a=this._oldTree,s=yh(),l=yh(),u=this._storage,c=[];function h(p,x,b,S){return f7(r,l,u,i,s,c,p,x,b,S)}y(o.root?[o.root]:[],a&&a.root?[a.root]:[],t,o===a||!a,0);var d=_(u);if(this._oldTree=o,this._storage=l,this._controllerHost){var f=this.seriesModel.layoutInfo,g=o.root.getLayout();g.width===f.width&&g.height===f.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:v};function y(p,x,b,S,M){S?(x=p,R(p,function(A,D){!A.isRemoved()&&C(D,D)})):new Io(x,p,I,I).add(C).update(C).remove(qt(C,null)).execute();function I(A){return A.getId()}function C(A,D){var N=A!=null?p[A]:null,L=D!=null?x[D]:null,E=h(N,L,b,M);E&&y(N&&N.viewChildren||[],L&&L.viewChildren||[],E,S,M+1)}}function _(p){var x=yh();return p&&R(p,function(b,S){var M=x[S];R(b,function(I){I&&(M.push(I),Nf(I).willDelete=!0)})}),x}function v(){R(d,function(p){R(p,function(x){x.parent&&x.parent.remove(x)})}),R(c,function(p){p.invisible=!0,p.dirty()})}},e.prototype._doAnimation=function(t,r,i,o){var a=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Et(a)?0:a)||0,u=(Et(s)?null:s)||"cubicOut",c=u7();R(r.willDeleteEls,function(h,d){R(h,function(f,g){if(!f.invisible){var y=f.parent,_,v=Nf(y);if(o&&o.direction==="drillDown")_=y===o.rootNodeGroup?{shape:{x:0,y:0,width:v.nodeWidth,height:v.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var p=0,x=0;v.willDelete||(p=v.nodeWidth/2,x=v.nodeHeight/2),_=d==="nodeGroup"?{x:p,y:x,style:{opacity:0}}:{shape:{x:p,y:x,width:0,height:0},style:{opacity:0}}}_&&c.add(f,_,l,0,u)}})}),R(this._storage,function(h,d){R(h,function(f,g){var y=r.lastsForAnimation[d][g],_={};y&&(f instanceof jt?y.oldX!=null&&(_.x=f.x,_.y=f.y,f.x=y.oldX,f.y=y.oldY):(y.oldShape&&(_.shape=lt({},f.shape),f.setShape(y.oldShape)),y.fadein?(f.setStyle("opacity",0),_.style={opacity:1}):f.style.opacity!==1&&(_.style={opacity:1})),c.add(f,_,l,0,u))})},this),this._state="animating",c.finished(At(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(t){var r=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),r||(r=this._controller=new hh(t.getZr()),r.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),r.on("pan",At(this._onPan,this)),r.on("zoom",At(this._onZoom,this)));var o=new Qt(0,0,t.getWidth(),t.getHeight());r.setPointerChecker(function(a,s,l){return o.contain(s,l)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>tD||Math.abs(t.dy)>tD)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var r=t.originX,i=t.originY,o=t.scale;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var s=a.getLayout();if(!s)return;var l=new Qt(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var h=c.zoom=c.zoom||1;if(h*=o,u){var d=u.min||0,f=u.max||1/0;h=Math.max(Math.min(f,h),d)}var g=h/c.zoom;c.zoom=h;var y=this.seriesModel.layoutInfo;r-=y.x,i-=y.y;var _=mr();Li(_,_,[-r,-i]),Rv(_,_,[g,g]),Li(_,_,[r,i]),l.applyTransform(_),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(i){if(r._state==="ready"){var o=r.seriesModel.get("nodeClick",!0);if(o){var a=r.findTarget(i.offsetX,i.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)r._rootToNode(a);else if(o==="zoomToNode")r._zoomToNode(a);else if(o==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Ad(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,i){var o=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new o7(this.group))).render(t,r,i.node,function(a){o._state!=="animating"&&(S1(t.getViewRoot(),a)?o._rootToNode({node:a}):o._zoomToNode({node:a}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=yh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var i,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Pe);function yh(){return{nodeGroup:[],background:[],content:[]}}function f7(n,e,t,r,i,o,a,s,l,u){if(!a)return;var c=a.getLayout(),h=n.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var f=c.width,g=c.height,y=c.borderWidth,_=c.invisible,v=a.getRawIndex(),p=s&&s.getRawIndex(),x=a.viewChildren,b=c.upperHeight,S=x&&x.length,M=d.getModel("itemStyle"),I=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),D=M.get("borderRadius")||0,N=ot("nodeGroup",I1);if(!N)return;if(l.add(N),N.x=c.x||0,N.y=c.y||0,N.markRedraw(),Nf(N).nodeWidth=f,Nf(N).nodeHeight=g,c.isAboveViewRoot)return N;var L=ot("background",Qk,u,h7);L&&J(N,L,S&&c.upperLabelHeight);var E=d.getModel("emphasis"),k=E.get("focus"),z=E.get("blurScope"),F=E.get("disabled"),W=k==="ancestor"?a.getAncestorsIndices():k==="descendant"?a.getDescendantIndices():k;if(S)oa(N)&&ps(N,!1),L&&(ps(L,!F),h.setItemGraphicEl(a.dataIndex,L),Jy(L,W,z));else{var q=ot("content",Qk,u,p7);q&&H(N,q),L.disableMorphing=!0,L&&oa(L)&&ps(L,!1),ps(N,!F),h.setItemGraphicEl(a.dataIndex,N);var j=d.getShallow("cursor");j&&q.attr("cursor",j),Jy(N,W,z)}return N;function J(wt,xt,Ot){var bt=Ut(xt);if(bt.dataIndex=a.dataIndex,bt.seriesIndex=n.seriesIndex,xt.setShape({x:0,y:0,width:f,height:g,r:D}),_)K(xt);else{xt.invisible=!1;var Nt=a.getVisual("style"),se=Nt.stroke,O=rD(M);O.fill=se;var st=js(I);st.fill=I.get("borderColor");var it=js(C);it.fill=C.get("borderColor");var Z=js(A);if(Z.fill=A.get("borderColor"),Ot){var U=f-2*y;ut(xt,se,Nt.opacity,{x:y,y:0,width:U,height:b})}else xt.removeTextContent();xt.setStyle(O),xt.ensureState("emphasis").style=st,xt.ensureState("blur").style=it,xt.ensureState("select").style=Z,cs(xt)}wt.add(xt)}function H(wt,xt){var Ot=Ut(xt);Ot.dataIndex=a.dataIndex,Ot.seriesIndex=n.seriesIndex;var bt=Math.max(f-2*y,0),Nt=Math.max(g-2*y,0);if(xt.culling=!0,xt.setShape({x:y,y,width:bt,height:Nt,r:D}),_)K(xt);else{xt.invisible=!1;var se=a.getVisual("style"),O=se.fill,st=rD(M);st.fill=O,st.decal=se.decal;var it=js(I),Z=js(C),U=js(A);ut(xt,O,se.opacity,null),xt.setStyle(st),xt.ensureState("emphasis").style=it,xt.ensureState("blur").style=Z,xt.ensureState("select").style=U,cs(xt)}wt.add(xt)}function K(wt){!wt.invisible&&o.push(wt)}function ut(wt,xt,Ot,bt){var Nt=d.getModel(bt?nD:eD),se=pn(d.get("name"),null),O=Nt.getShallow("show");Nn(wt,_n(d,bt?nD:eD),{defaultText:O?se:null,inheritColor:xt,defaultOpacity:Ot,labelFetcher:n,labelDataIndex:a.dataIndex});var st=wt.getTextContent();if(st){var it=st.style,Z=wv(it.padding||0);bt&&(wt.setTextConfig({layoutRect:bt}),st.disableLabelLayout=!0),st.beforeUpdate=function(){var tt=Math.max((bt?bt.width:wt.shape.width)-Z[1]-Z[3],0),ft=Math.max((bt?bt.height:wt.shape.height)-Z[0]-Z[2],0);(it.width!==tt||it.height!==ft)&&st.setStyle({width:tt,height:ft})},it.truncateMinChar=2,it.lineOverflow="truncate",at(it,bt,c);var U=st.getState("emphasis");at(U?U.style:null,bt,c)}}function at(wt,xt,Ot){var bt=wt?wt.text:null;if(!xt&&Ot.isLeafRoot&&bt!=null){var Nt=n.get("drillDownIcon",!0);wt.text=Nt?Nt+" "+bt:bt}}function ot(wt,xt,Ot,bt){var Nt=p!=null&&t[wt][p],se=i[wt];return Nt?(t[wt][p]=null,Rt(se,Nt)):_||(Nt=new xt,Nt instanceof Br&&(Nt.z2=g7(Ot,bt)),Jt(se,Nt)),e[wt][v]=Nt}function Rt(wt,xt){var Ot=wt[v]={};xt instanceof I1?(Ot.oldX=xt.x,Ot.oldY=xt.y):Ot.oldShape=lt({},xt.shape)}function Jt(wt,xt){var Ot=wt[v]={},bt=a.parentNode,Nt=xt instanceof jt;if(bt&&(!r||r.direction==="drillDown")){var se=0,O=0,st=i.background[bt.getRawIndex()];!r&&st&&st.oldShape&&(se=st.oldShape.width,O=st.oldShape.height),Nt?(Ot.oldX=0,Ot.oldY=O):Ot.oldShape={x:se,y:O,width:0,height:0}}Ot.fadein=!Nt}}function g7(n,e){return n*c7+e}var mh=R,v7=Vt,Pf=-1,wn=function(){function n(e){var t=e.mappingMethod,r=e.type,i=this.option=Wt(e);this.type=r,this.mappingMethod=t,this._normalizeData=_7[t];var o=n.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[t],t==="piecewise"?(T1(i),y7(i)):t==="category"?i.categories?m7(i):T1(i,!0):(Bt(t!=="linear"||i.dataExtent),T1(i))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return At(this._normalizeData,this)},n.listVisualTypes=function(){return ue(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){Vt(e)?R(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var i,o=ht(e)?[]:Vt(e)?{}:(i=!0,null);return n.eachVisual(e,function(a,s){var l=t.call(r,a,s);i?o=l:o[s]=l}),o},n.retrieveVisuals=function(e){var t={},r;return e&&mh(n.visualHandlers,function(i,o){e.hasOwnProperty(o)&&(t[o]=e[o],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(ht(e))e=e.slice();else if(v7(e)){var t=[];mh(e,function(r,i){t.push(i)}),e=t}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var i,o=1/0,a=0,s=t.length;a<s;a++){var l=t[a].value;if(l!=null){if(l===e||Tt(l)&&l===e+"")return a;r&&d(l,a)}}for(var a=0,s=t.length;a<s;a++){var u=t[a],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(Rf(h[1],e,c[1]))return a}else if(c[1]===1/0){if(Rf(h[0],c[0],e))return a}else if(Rf(h[0],c[0],e)&&Rf(h[1],e,c[1]))return a;r&&d(c[0],a),r&&d(c[1],a)}}if(r)return e===1/0?t.length-1:e===-1/0?0:i;function d(f,g){var y=Math.abs(f-e);y<o&&(o=y,i=g)}},n.visualHandlers={color:{applyVisual:_h("color"),getColorMapper:function(){var e=this.option;return At(e.mappingMethod==="category"?function(t,r){return!r&&(t=this._normalizeData(t)),xh.call(this,t)}:function(t,r,i){var o=!!i;return!r&&(t=this._normalizeData(t)),i=Zv(t,e.parsedVisual,i),o?i:po(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return po(Zv(e,this.option.parsedVisual),"rgba")},category:xh,piecewise:function(e,t){var r=A1.call(this,t);return r==null&&(r=po(Zv(e,this.option.parsedVisual),"rgba")),r},fixed:Hs}},colorHue:Ef(function(e,t){return Ju(e,t)}),colorSaturation:Ef(function(e,t){return Ju(e,null,t)}),colorLightness:Ef(function(e,t){return Ju(e,null,null,t)}),colorAlpha:Ef(function(e,t){return kp(e,t)}),decal:{applyVisual:_h("decal"),_normalizedToVisual:{linear:null,category:xh,piecewise:null,fixed:null}},opacity:{applyVisual:_h("opacity"),_normalizedToVisual:C1([0,1])},liftZ:{applyVisual:_h("liftZ"),_normalizedToVisual:{linear:Hs,category:Hs,piecewise:Hs,fixed:Hs}},symbol:{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("symbol",i)},_normalizedToVisual:{linear:iD,category:xh,piecewise:function(e,t){var r=A1.call(this,t);return r==null&&(r=iD.call(this,e)),r},fixed:Hs}},symbolSize:{applyVisual:_h("symbolSize"),_normalizedToVisual:C1([0,1])}},n}();function y7(n){var e=n.pieceList;n.hasSpecialVisual=!1,R(e,function(t,r){t.originIndex=r,t.visual!=null&&(n.hasSpecialVisual=!0)})}function m7(n){var e=n.categories,t=n.categoryMap={},r=n.visual;if(mh(e,function(a,s){t[a]=s}),!ht(r)){var i=[];Vt(r)?mh(r,function(a,s){var l=t[s];i[l??Pf]=a}):i[Pf]=r,r=oD(n,i)}for(var o=e.length-1;o>=0;o--)r[o]==null&&(delete t[e[o]],e.pop())}function T1(n,e){var t=n.visual,r=[];Vt(t)?mh(t,function(o){r.push(o)}):t!=null&&r.push(t);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(n.type)&&(r[1]=r[0]),oD(n,r)}function Ef(n){return{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("color",n(t("color"),i))},_normalizedToVisual:C1([0,1])}}function iD(n){var e=this.option.visual;return e[Math.round(Ae(n,[0,1],[0,e.length-1],!0))]||{}}function _h(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function xh(n){var e=this.option.visual;return e[this.option.loop&&n!==Pf?n%e.length:n]}function Hs(){return this.option.visual[0]}function C1(n){return{linear:function(e){return Ae(e,n,this.option.visual,!0)},category:xh,piecewise:function(e,t){var r=A1.call(this,t);return r==null&&(r=Ae(e,n,this.option.visual,!0)),r},fixed:Hs}}function A1(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=wn.findPieceIndex(n,t),i=t[r];if(i&&i.visual)return i.visual[this.type]}}function oD(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=pt(e,function(t){var r=_r(t);return!r&&process.env.NODE_ENV!=="production"&&Xe("'"+t+"' is an illegal color, fallback to '#000000'",!0),r||[0,0,0,1]})),e}var _7={linear:function(n){return Ae(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=wn.findPieceIndex(n,e,!0);if(t!=null)return Ae(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??Pf},fixed:Qe};function Rf(n,e,t){return n?e<=t:e<t}var x7="itemStyle",aD=de();const b7={seriesType:"treemap",reset:function(n){var e=n.getData().tree,t=e.root;t.isRemoved()||sD(t,{},n.getViewRoot().getAncestors(),n)}};function sD(n,e,t,r){var i=n.getModel(),o=n.getLayout(),a=n.hostTree.data;if(!(!o||o.invisible||!o.isInView)){var s=i.getModel(x7),l=w7(s,e,r),u=a.ensureUniqueItemVisual(n.dataIndex,"style"),c=s.get("borderColor"),h=s.get("borderColorSaturation"),d;h!=null&&(d=lD(l),c=S7(h,d)),u.stroke=c;var f=n.viewChildren;if(!f||!f.length)d=lD(l),u.fill=d;else{var g=M7(n,i,o,s,l,f);R(f,function(y,_){if(y.depth>=t.length||y===t[y.depth]){var v=I7(i,l,y,_,g,r);sD(y,v,t,r)}})}}}function w7(n,e,t){var r=lt({},e),i=t.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],function(o){i[o]=e[o];var a=n.get(o);i[o]=null,a!=null&&(r[o]=a)}),r}function lD(n){var e=k1(n,"color");if(e){var t=k1(n,"colorAlpha"),r=k1(n,"colorSaturation");return r&&(e=Ju(e,null,null,r)),t&&(e=kp(e,t)),e}}function S7(n,e){return e!=null?Ju(e,null,null,n):null}function k1(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function M7(n,e,t,r,i,o){if(!(!o||!o.length)){var a=D1(e,"color")||i.color!=null&&i.color!=="none"&&(D1(e,"colorAlpha")||D1(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};h.type==="color"&&(c==="index"||c==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var d=new wn(h);return aD(d).drColorMappingBy=c,d}}}function D1(n,e){var t=n.get(e);return ht(t)&&t.length?{name:e,range:t}:null}function I7(n,e,t,r,i,o){var a=lt({},e);if(i){var s=i.type,l=s==="color"&&aD(i).drColorMappingBy,u=l==="index"?r:l==="id"?o.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var bh=Math.max,Of=Math.min,uD=rn,L1=R,cD=["itemStyle","borderWidth"],T7=["itemStyle","gapWidth"],C7=["upperLabel","show"],A7=["upperLabel","height"];const k7={seriesType:"treemap",reset:function(n,e,t,r){var i=t.getWidth(),o=t.getHeight(),a=n.option,s=dn(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=a.size||[],u=Mt(uD(s.width,l[0]),i),c=Mt(uD(s.height,l[1]),o),h=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],f=gh(r,d,n),g=h==="treemapRender"||h==="treemapMove"?r.rootRect:null,y=n.getViewRoot(),_=qk(y);if(h!=="treemapMove"){var v=h==="treemapZoomToNode"?R7(n,f,y,u,c):g?[g.width,g.height]:[u,c],p=a.sort;p&&p!=="asc"&&p!=="desc"&&(p="desc");var x={squareRatio:a.squareRatio,sort:p,leafDepth:a.leafDepth};y.hostTree.clearLayouts();var b={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};y.setLayout(b),hD(y,x,!1,0),b=y.getLayout(),L1(_,function(M,I){var C=(_[I+1]||y).getValue();M.setLayout(lt({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var S=n.getData().tree.root;S.setLayout(O7(s,g,f),!0),n.setLayoutInfo(s),dD(S,new Qt(-s.x,-s.y,i,o),_,y,0)}};function hD(n,e,t,r){var i,o;if(!n.isRemoved()){var a=n.getLayout();i=a.width,o=a.height;var s=n.getModel(),l=s.get(cD),u=s.get(T7)/2,c=fD(s),h=Math.max(l,c),d=l-u,f=h-u;n.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),i=bh(i-2*d,0),o=bh(o-d-f,0);var g=i*o,y=D7(n,s,g,e,t,r);if(y.length){var _={x:d,y:f,width:i,height:o},v=Of(i,o),p=1/0,x=[];x.area=0;for(var b=0,S=y.length;b<S;){var M=y[b];x.push(M),x.area+=M.getLayout().area;var I=E7(x,v,e.squareRatio);I<=p?(b++,p=I):(x.area-=x.pop().getLayout().area,pD(x,v,_,u,!1),v=Of(_.width,_.height),x.length=x.area=0,p=1/0)}if(x.length&&pD(x,v,_,u,!0),!t){var C=s.get("childrenVisibleMin");C!=null&&g<C&&(t=!0)}for(var b=0,S=y.length;b<S;b++)hD(y[b],e,t,r+1)}}}function D7(n,e,t,r,i,o){var a=n.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=o;if(i&&!l)return n.viewChildren=[];a=Me(a,function(f){return!f.isRemoved()}),N7(a,s);var u=P7(e,a,s);if(u.sum===0)return n.viewChildren=[];if(u.sum=L7(e,t,u.sum,s,a),u.sum===0)return n.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*t;a[c].setLayout({area:d})}return l&&(a.length&&n.setLayout({isLeafRoot:!0},!0),a.length=0),n.viewChildren=a,n.setLayout({dataExtent:u.dataExtent},!0),a}function L7(n,e,t,r,i){if(!r)return t;for(var o=n.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i[r==="asc"?a-l-1:l].getValue();u/t*e<o&&(s=l,t-=u)}return r==="asc"?i.splice(0,a-s):i.splice(s,a-s),t}function N7(n,e){return e&&n.sort(function(t,r){var i=e==="asc"?t.getValue()-r.getValue():r.getValue()-t.getValue();return i===0?e==="asc"?t.dataIndex-r.dataIndex:r.dataIndex-t.dataIndex:i}),n}function P7(n,e,t){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a=n.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:a==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],L1(e,function(l){var u=l.getValue(a);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function E7(n,e,t){for(var r=0,i=1/0,o=0,a=void 0,s=n.length;o<s;o++)a=n[o].getLayout().area,a&&(a<i&&(i=a),a>r&&(r=a));var l=n.area*n.area,u=e*e*t;return l?bh(u*r/l,l/(u*i)):1/0}function pD(n,e,t,r,i){var o=e===t.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=t[s[o]],c=e?n.area/e:0;(i||c>t[l[a]])&&(c=t[l[a]]);for(var h=0,d=n.length;h<d;h++){var f=n[h],g={},y=c?f.getLayout().area/c:0,_=g[l[a]]=bh(c-2*r,0),v=t[s[o]]+t[l[o]]-u,p=h===d-1||v<y?v:y,x=g[l[o]]=bh(p-2*r,0);g[s[a]]=t[s[a]]+Of(r,_/2),g[s[o]]=u+Of(r,x/2),u+=p,f.setLayout(g,!0)}t[s[a]]+=c,t[l[a]]-=c}function R7(n,e,t,r,i){var o=(e||{}).node,a=[r,i];if(!o||o===t)return a;for(var s,l=r*i,u=l*n.option.zoomToNodeRatio;s=o.parentNode;){for(var c=0,h=s.children,d=0,f=h.length;d<f;d++)c+=h[d].getValue();var g=o.getValue();if(g===0)return a;u*=c/g;var y=s.getModel(),_=y.get(cD),v=Math.max(_,fD(y));u+=4*_*_+(3*_+v)*Math.pow(u,.5),u>v2&&(u=v2),o=s}u<l&&(u=l);var p=Math.pow(u/l,.5);return[r*p,i*p]}function O7(n,e,t){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!t)return r;var i=t.node,o=i.getLayout();if(!o)return r;for(var a=[o.width/2,o.height/2],s=i;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:n.width/2-a[0],y:n.height/2-a[1]}}function dD(n,e,t,r,i){var o=n.getLayout(),a=t[i],s=a&&a===n;if(!(a&&!s||i===t.length&&n!==r)){n.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new Qt(e.x-o.x,e.y-o.y,e.width,e.height);L1(n.viewChildren||[],function(u){dD(u,l,t,r,i+1)})}}function fD(n){return n.get(C7)?n.get(A7):0}function z7(n){n.registerSeriesModel(n7),n.registerChartView(d7),n.registerVisual(b7),n.registerLayout(k7),e7(n)}function V7(n){var e=n.findComponents({mainType:"legend"});!e||!e.length||n.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),i=t.getGraph(),o=i.data,a=r.mapArray(r.getName);o.filterSelf(function(s){var l=o.getItemModel(s),u=l.getShallow("category");if(u!=null){ye(u)&&(u=a[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function B7(n){var e={};n.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),i=t.getData(),o={};r.each(function(a){var s=r.getName(a);o["ec-"+s]=a;var l=r.getItemModel(a),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),r.setItemVisual(a,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++){var d=l.getShallow(c[h],!0);d!=null&&r.setItemVisual(a,c[h],d)}}),r.count()&&i.each(function(a){var s=i.getItemModel(a),l=s.getShallow("category");if(l!=null){Tt(l)&&(l=o["ec-"+l]);var u=r.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(a,"style");lt(c,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],d=0;d<h.length;d++)i.setItemVisual(a,h[d],r.getItemVisual(l,h[d]))}})})}function zf(n){return n instanceof Array||(n=[n,n]),n}function F7(n){n.eachSeriesByType("graph",function(e){var t=e.getGraph(),r=e.getEdgeData(),i=zf(e.get("edgeSymbol")),o=zf(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(a){var s=r.getItemModel(a),l=t.getEdgeByIndex(a),u=zf(s.getShallow("symbol",!0)),c=zf(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(a,"style");switch(lt(d,h),d.stroke){case"source":{var f=l.node1.getVisual("style");d.stroke=f&&f.fill;break}case"target":{var f=l.node2.getVisual("style");d.stroke=f&&f.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var N1="-->",Vf=function(n){return n.get("autoCurveness")||null},gD=function(n,e){var t=Vf(n),r=20,i=[];if(ye(t))r=t;else if(ht(t)){n.__curvenessList=t;return}e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));n.__curvenessList=i},wh=function(n,e,t){var r=[n.id,n.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[t.uid,r,i].join(N1)},vD=function(n){var e=n.split(N1);return[e[0],e[2],e[1]].join(N1)},G7=function(n,e){var t=wh(n.node1,n.node2,e);return e.__edgeMap[t]},W7=function(n,e){var t=P1(wh(n.node1,n.node2,e),e),r=P1(wh(n.node2,n.node1,e),e);return t+r},P1=function(n,e){var t=e.__edgeMap;return t[n]?t[n].length:0};function j7(n){Vf(n)&&(n.__curvenessList=[],n.__edgeMap={},gD(n))}function H7(n,e,t,r){if(Vf(t)){var i=wh(n,e,t),o=t.__edgeMap,a=o[vD(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}function E1(n,e,t,r){var i=Vf(e),o=ht(i);if(!i)return null;var a=G7(n,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===t){s=l;break}var u=W7(n,e);gD(e,u),n.lineStyle=n.lineStyle||{};var c=wh(n.node1,n.node2,e),h=e.__curvenessList,d=o||u%2?0:1;if(a.isForward)return h[d+s];var f=vD(c),g=P1(f,e),y=h[s+g+d];return r?o?i&&i[0]===0?(g+d)%2?y:-y:((g%2?0:1)+d)%2?y:-y:(g+d)%2?y:-y:h[s+g+d]}function yD(n){var e=n.coordinateSystem;if(!(e&&e.type!=="view")){var t=n.getGraph();t.eachNode(function(r){var i=r.getModel();r.setLayout([+i.get("x"),+i.get("y")])}),R1(t,n)}}function R1(n,e){n.eachEdge(function(t,r){var i=Pr(t.getModel().get(["lineStyle","curveness"]),-E1(t,e,r,!0),0),o=uo(t.node1.getLayout()),a=uo(t.node2.getLayout()),s=[o,a];+i&&s.push([(o[0]+a[0])/2-(o[1]-a[1])*i,(o[1]+a[1])/2-(a[0]-o[0])*i]),t.setLayout(s)})}function U7(n,e){n.eachSeriesByType("graph",function(t){var r=t.get("layout"),i=t.coordinateSystem;if(i&&i.type!=="view"){var o=t.getData(),a=[];R(i.dimensions,function(d){a=a.concat(o.mapDimensionsAll(d))});for(var s=0;s<o.count();s++){for(var l=[],u=!1,c=0;c<a.length;c++){var h=o.get(a[c],s);isNaN(h)||(u=!0),l.push(h)}u?o.setItemLayout(s,i.dataToPoint(l)):o.setItemLayout(s,[NaN,NaN])}R1(o.graph,t)}else(!r||r==="none")&&yD(t)})}function Sh(n){var e=n.coordinateSystem;if(e.type!=="view")return 1;var t=n.option.nodeScaleRatio,r=e.scaleX,i=e.getZoom(),o=(i-1)*t+1;return o/r}function Mh(n){var e=n.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var mD=Math.PI,O1=[];function z1(n,e,t,r){var i=n.coordinateSystem;if(!(i&&i.type!=="view")){var o=i.getBoundingRect(),a=n.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),!!h){if(t){var d=i.pointToData(r),f=d[0],g=d[1],y=[f-l,g-u];cl(y,y),yp(y,y,c),t.setLayout([l+y[0],u+y[1]],!0);var _=n.get(["circular","rotateLabel"]);_D(t,_,l,u)}X7[e](n,s,a,c,l,u,h),s.eachEdge(function(v,p){var x=Pr(v.getModel().get(["lineStyle","curveness"]),E1(v,n,p),0),b=uo(v.node1.getLayout()),S=uo(v.node2.getLayout()),M,I=(b[0]+S[0])/2,C=(b[1]+S[1])/2;+x&&(x*=3,M=[l*x+I*(1-x),u*x+C*(1-x)]),v.setLayout([b,S,M])})}}}var X7={value:function(n,e,t,r,i,o,a){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||a);e.eachNode(function(c){var h=c.getValue("value"),d=u*(l?h:1)/2;s+=d,c.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=d})},symbolSize:function(n,e,t,r,i,o,a){var s=0;O1.length=a;var l=Sh(n);e.eachNode(function(h){var d=Mh(h);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var f=Math.asin(d/2/r);isNaN(f)&&(f=mD/2),O1[h.dataIndex]=f,s+=f*2});var u=(2*mD-s)/a/2,c=0;e.eachNode(function(h){var d=u+O1[h.dataIndex];c+=d,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=d})}};function _D(n,e,t,r){var i=n.getGraphicEl();if(i){var o=n.getModel(),a=o.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=n.getLayout(),u=Math.atan2(l[1]-r,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var d=s.ensureState("emphasis");lt(d.textConfig||(d.textConfig={}),{position:h})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function Z7(n){n.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&z1(e,"symbolSize")})}var ou=Sv;function q7(n,e,t){for(var r=n,i=e,o=t.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=Fa(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=uo(h.p),h.edges=null}var d=t.friction==null?.6:t.friction,f=d,g,y;return{warmUp:function(){f=d*.8},setFixed:function(_){r[_].fixed=!0},setUnfixed:function(_){r[_].fixed=!1},beforeStep:function(_){g=_},afterStep:function(_){y=_},step:function(_){g&&g(r,i);for(var v=[],p=r.length,x=0;x<i.length;x++){var b=i[x];if(!b.ignoreForceLayout){var S=b.n1,M=b.n2;Ga(v,M.p,S.p);var I=Mv(v)-b.d,C=M.w/(S.w+M.w);isNaN(C)&&(C=0),cl(v,v),!S.fixed&&ou(S.p,S.p,v,C*I*f),!M.fixed&&ou(M.p,M.p,v,-(1-C)*I*f)}}for(var x=0;x<p;x++){var A=r[x];A.fixed||(Ga(v,l,A.p),ou(A.p,A.p,v,u*f))}for(var x=0;x<p;x++)for(var S=r[x],D=x+1;D<p;D++){var M=r[D];Ga(v,M.p,S.p);var I=Mv(v);I===0&&(f3(v,Math.random()-.5,Math.random()-.5),I=1);var N=(S.rep+M.rep)/I/I;!S.fixed&&ou(S.pp,S.pp,v,N),!M.fixed&&ou(M.pp,M.pp,v,-N)}for(var L=[],x=0;x<p;x++){var A=r[x];A.fixed||(Ga(L,A.p,A.pp),ou(A.p,A.p,L,f),qn(A.pp,A.p))}f=f*.992;var E=f<.01;y&&y(r,i,E),_&&_(E)}}}function K7(n){n.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},i=e.getGraph(),o=i.data,a=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?o.each(function(x){var b=o.getId(x);o.setItemLayout(x,r[b]||[NaN,NaN])}):!l||l==="none"?yD(e):l==="circular"&&z1(e,"value");var u=o.getDataExtent("value"),c=a.getDataExtent("value"),h=s.get("repulsion"),d=s.get("edgeLength"),f=ht(h)?h:[h,h],g=ht(d)?d:[d,d];g=[g[1],g[0]];var y=o.mapArray("value",function(x,b){var S=o.getItemLayout(b),M=Ae(x,u,f);return isNaN(M)&&(M=(f[0]+f[1])/2),{w:M,rep:M,fixed:o.getItemModel(b).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),_=a.mapArray("value",function(x,b){var S=i.getEdgeByIndex(b),M=Ae(x,c,g);isNaN(M)&&(M=(g[0]+g[1])/2);var I=S.getModel(),C=Pr(S.getModel().get(["lineStyle","curveness"]),-E1(S,e,b,!0),0);return{n1:y[S.node1.dataIndex],n2:y[S.node2.dataIndex],d:M,curveness:C,ignoreForceLayout:I.get("ignoreForceLayout")}}),v=t.getBoundingRect(),p=q7(y,_,{rect:v,gravity:s.get("gravity"),friction:s.get("friction")});p.beforeStep(function(x,b){for(var S=0,M=x.length;S<M;S++)x[S].fixed&&qn(x[S].p,i.getNodeByIndex(S).getLayout())}),p.afterStep(function(x,b,S){for(var M=0,I=x.length;M<I;M++)x[M].fixed||i.getNodeByIndex(M).setLayout(x[M].p),r[o.getId(M)]=x[M].p;for(var M=0,I=b.length;M<I;M++){var C=b[M],A=i.getEdgeByIndex(M),D=C.n1.p,N=C.n2.p,L=A.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],qn(L[0],D),qn(L[1],N),+C.curveness&&(L[2]=[(D[0]+N[0])/2-(D[1]-N[1])*C.curveness,(D[1]+N[1])/2-(N[0]-D[0])*C.curveness]),A.setLayout(L)}}),e.forceLayout=p,e.preservedPoints=r,p.step()}else e.forceLayout=null})}function Y7(n,e,t){var r=lt(n.getBoxLayoutParams(),{aspect:t});return dn(r,{width:e.getWidth(),height:e.getHeight()})}function J7(n,e){var t=[];return n.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var o=r.getData(),a=o.mapArray(function(_){var v=o.getItemModel(_);return[+v.get("x"),+v.get("y")]}),s=[],l=[];$p(a,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=Y7(r,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var h=l[0]-s[0],d=l[1]-s[1],f=c.width,g=c.height,y=r.coordinateSystem=new dh;y.zoomLimit=r.get("scaleLimit"),y.setBoundingRect(s[0],s[1],h,d),y.setViewRect(c.x,c.y,f,g),y.setCenter(r.get("center"),e),y.setZoom(r.get("zoom")),t.push(y)}}),t}var xD=mn.prototype,V1=_c.prototype,bD=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}();(function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e})(bD);function B1(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}var $7=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new bD},e.prototype.buildPath=function(t,r){B1(r)?xD.buildPath.call(this,t,r):V1.buildPath.call(this,t,r)},e.prototype.pointAt=function(t){return B1(this.shape)?xD.pointAt.call(this,t):V1.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var r=this.shape,i=B1(r)?[r.x2-r.x1,r.y2-r.y1]:V1.tangentAt.call(this,t);return cl(i,i)},e}(ae),F1=["fromSymbol","toSymbol"];function wD(n){return"_"+n+"Type"}function SD(n,e,t){var r=e.getItemVisual(t,n);if(!r||r==="none")return r;var i=e.getItemVisual(t,n+"Size"),o=e.getItemVisual(t,n+"Rotate"),a=e.getItemVisual(t,n+"Offset"),s=e.getItemVisual(t,n+"KeepAspect"),l=Xl(i),u=Ts(a||0,l);return r+l+u+(o||"")+(s||"")}function MD(n,e,t){var r=e.getItemVisual(t,n);if(!(!r||r==="none")){var i=e.getItemVisual(t,n+"Size"),o=e.getItemVisual(t,n+"Rotate"),a=e.getItemVisual(t,n+"Offset"),s=e.getItemVisual(t,n+"KeepAspect"),l=Xl(i),u=Ts(a||0,l),c=ln(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=n,c}}function Q7(n){var e=new $7({name:"line",subPixelOptimize:!0});return G1(e.shape,n),e}function G1(n,e){n.x1=e[0][0],n.y1=e[0][1],n.x2=e[1][0],n.y2=e[1][1],n.percent=1;var t=e[2];t?(n.cpx1=t[0],n.cpy1=t[1]):(n.cpx1=NaN,n.cpy1=NaN)}var W1=function(n){Q(e,n);function e(t,r,i){var o=n.call(this)||this;return o._createLine(t,r,i),o}return e.prototype._createLine=function(t,r,i){var o=t.hostModel,a=t.getItemLayout(r),s=Q7(a);s.shape.percent=0,We(s,{shape:{percent:1}},o,r),this.add(s),R(F1,function(l){var u=MD(l,t,r);this.add(u),this[wD(l)]=SD(l,t,r)},this),this._updateCommonStl(t,r,i)},e.prototype.updateData=function(t,r,i){var o=t.hostModel,a=this.childOfName("line"),s=t.getItemLayout(r),l={shape:{}};G1(l.shape,s),_e(a,l,o,r),R(F1,function(u){var c=SD(u,t,r),h=wD(u);if(this[h]!==c){this.remove(this.childOfName(u));var d=MD(u,t,r);this.add(d)}this[h]=c},this),this._updateCommonStl(t,r,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,r,i){var o=t.hostModel,a=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,h=i&&i.emphasisDisabled,d=i&&i.focus,f=i&&i.blurScope;if(!i||t.hasItemOption){var g=t.getItemModel(r),y=g.getModel("emphasis");s=y.getModel("lineStyle").getLineStyle(),l=g.getModel(["blur","lineStyle"]).getLineStyle(),u=g.getModel(["select","lineStyle"]).getLineStyle(),h=y.get("disabled"),d=y.get("focus"),f=y.get("blurScope"),c=_n(g)}var _=t.getItemVisual(r,"style"),v=_.stroke;a.useStyle(_),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=s,a.ensureState("blur").style=l,a.ensureState("select").style=u,R(F1,function(M){var I=this.childOfName(M);if(I){I.setColor(v),I.style.opacity=_.opacity;for(var C=0;C<$n.length;C++){var A=$n[C],D=a.getState(A);if(D){var N=D.style||{},L=I.ensureState(A),E=L.style||(L.style={});N.stroke!=null&&(E[I.__isEmptyBrush?"stroke":"fill"]=N.stroke),N.opacity!=null&&(E.opacity=N.opacity)}}I.markRedraw()}},this);var p=o.getRawValue(r);Nn(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(M,I){return o.getFormattedLabel(M,I,t.dataType)}},inheritColor:v||"#000",defaultOpacity:_.opacity,defaultText:(p==null?t.getName(r):isFinite(p)?Ye(p):p)+""});var x=this.getTextContent();if(x){var b=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=b.get("position")||"middle";var S=b.get("distance");ht(S)||(S=[S,S]),x.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Ze(this,d,f,h)},e.prototype.highlight=function(){xo(this)},e.prototype.downplay=function(){bo(this)},e.prototype.updateLayout=function(t,r){this.setLinePoints(t.getItemLayout(r))},e.prototype.setLinePoints=function(t){var r=this.childOfName("line");G1(r.shape,t),r.dirty()},e.prototype.beforeUpdate=function(){var t=this,r=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),o=t.getTextContent();if(!r&&!i&&(!o||o.ignore))return;for(var a=1,s=this.parent;s;)s.scaleX&&(a/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),h=l.pointAt(u),d=Ga([],h,c);cl(d,d);function f(D,N){var L=D.__specifiedRotation;if(L==null){var E=l.tangentAt(N);D.attr("rotation",(N===1?-1:1)*Math.PI/2-Math.atan2(E[1],E[0]))}else D.attr("rotation",L)}if(r&&(r.setPosition(c),f(r,0),r.scaleX=r.scaleY=a*u,r.markRedraw()),i&&(i.setPosition(h),f(i,1),i.scaleX=i.scaleY=a*u,i.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var g=void 0,y=void 0,_=o.__labelDistance,v=_[0]*a,p=_[1]*a,x=u/2,b=l.tangentAt(x),S=[b[1],-b[0]],M=l.pointAt(x);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var I=b[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var C=-Math.atan2(b[1],b[0]);h[0]<c[0]&&(C=Math.PI+C),o.rotation=C}var A=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-p,y="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=p,y="top";break;default:A=0,y="middle"}switch(o.__position){case"end":o.x=d[0]*v+h[0],o.y=d[1]*p+h[1],g=d[0]>.8?"left":d[0]<-.8?"right":"center",y=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*v+c[0],o.y=-d[1]*p+c[1],g=d[0]>.8?"right":d[0]<-.8?"left":"center",y=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=v*I+c[0],o.y=c[1]+A,g=b[0]<0?"right":"left",o.originX=-v*I,o.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=M[0],o.y=M[1]+A,g="center",o.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-v*I+h[0],o.y=h[1]+A,g=b[0]>=0?"right":"left",o.originX=v*I,o.originY=-A;break}o.scaleX=o.scaleY=a,o.setStyle({verticalAlign:o.__verticalAlign||y,align:o.__align||g})}},e}(jt),j1=function(){function n(e){this.group=new jt,this._LineCtor=e||W1}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,i=r.group,o=r._lineData;r._lineData=e,o||i.removeAll();var a=ID(e);e.diff(o).add(function(s){t._doAdd(e,s,a)}).update(function(s,l){t._doUpdate(o,e,l,s,a)}).remove(function(s){i.remove(o.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ID(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!t9(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(H1(o)){var a=new this._LineCtor(t,i,this._seriesScope);a.traverse(r),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},n.prototype.remove=function(){this.group.removeAll()},n.prototype.eachRendered=function(e){sa(this._progressiveEls||this.group,e)},n.prototype._doAdd=function(e,t,r){var i=e.getItemLayout(t);if(H1(i)){var o=new this._LineCtor(e,t,r);e.setItemGraphicEl(t,o),this.group.add(o)}},n.prototype._doUpdate=function(e,t,r,i,o){var a=e.getItemGraphicEl(r);if(!H1(t.getItemLayout(i))){this.group.remove(a);return}a?a.updateData(t,i,o):a=new this._LineCtor(t,i,o),t.setItemGraphicEl(i,a),this.group.add(a)},n}();function t9(n){return n.animators&&n.animators.length>0}function ID(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:_n(e)}}function TD(n){return isNaN(n[0])||isNaN(n[1])}function H1(n){return n&&!TD(n[0])&&!TD(n[1])}var U1=[],X1=[],Z1=[],au=In,q1=Wa,CD=Math.abs;function AD(n,e,t){for(var r=n[0],i=n[1],o=n[2],a=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){U1[0]=au(r[0],i[0],o[0],c),U1[1]=au(r[1],i[1],o[1],c);var h=CD(q1(U1,e)-l);h<a&&(a=h,s=c)}for(var d=0;d<32;d++){var f=s+u;X1[0]=au(r[0],i[0],o[0],s),X1[1]=au(r[1],i[1],o[1],s),Z1[0]=au(r[0],i[0],o[0],f),Z1[1]=au(r[1],i[1],o[1],f);var h=q1(X1,e)-l;if(CD(h)<.01)break;var g=q1(Z1,e)-l;u/=2,h<0?g>=0?s=s+u:s=s-u:g>=0?s=s-u:s=s+u}return s}function K1(n,e){var t=[],r=qu,i=[[],[],[]],o=[[],[]],a=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[uo(u[0]),uo(u[1])],u[2]&&u.__original.push(uo(u[2])));var d=u.__original;if(u[2]!=null){if(qn(i[0],d[0]),qn(i[1],d[2]),qn(i[2],d[1]),c&&c!=="none"){var f=Mh(s.node1),g=AD(i,d[0],f*e);r(i[0][0],i[1][0],i[2][0],g,t),i[0][0]=t[3],i[1][0]=t[4],r(i[0][1],i[1][1],i[2][1],g,t),i[0][1]=t[3],i[1][1]=t[4]}if(h&&h!=="none"){var f=Mh(s.node2),g=AD(i,d[1],f*e);r(i[0][0],i[1][0],i[2][0],g,t),i[1][0]=t[1],i[2][0]=t[2],r(i[0][1],i[1][1],i[2][1],g,t),i[1][1]=t[1],i[2][1]=t[2]}qn(u[0],i[0]),qn(u[1],i[2]),qn(u[2],i[1])}else{if(qn(o[0],d[0]),qn(o[1],d[1]),Ga(a,o[1],o[0]),cl(a,a),c&&c!=="none"){var f=Mh(s.node1);Sv(o[0],o[0],a,f*e)}if(h&&h!=="none"){var f=Mh(s.node2);Sv(o[1],o[1],a,-f*e)}qn(u[0],o[0]),qn(u[1],o[1])}})}function kD(n){return n.type==="view"}var e9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var i=new rh,o=new j1,a=this.group;this._controller=new hh(r.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(o.group),this._symbolDraw=i,this._lineDraw=o,this._firstRender=!0},e.prototype.render=function(t,r,i){var o=this,a=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(kD(a)){var c={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?u.attr(c):_e(u,c,t)}K1(t.getGraph(),Sh(t));var h=t.getData();s.updateData(h);var d=t.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(t,r,i),clearTimeout(this._layoutTimeout);var f=t.forceLayout,g=t.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,g);var y=t.get("layout");h.graph.eachNode(function(x){var b=x.dataIndex,S=x.getGraphicEl(),M=x.getModel();if(S){S.off("drag").off("dragend");var I=M.get("draggable");I&&S.on("drag",function(A){switch(y){case"force":f.warmUp(),!o._layouting&&o._startForceLayoutIteration(f,g),f.setFixed(b),h.setItemLayout(b,[S.x,S.y]);break;case"circular":h.setItemLayout(b,[S.x,S.y]),x.setLayout({fixed:!0},!0),z1(t,"symbolSize",x,[A.offsetX,A.offsetY]),o.updateLayout(t);break;case"none":default:h.setItemLayout(b,[S.x,S.y]),R1(t.getGraph(),t),o.updateLayout(t);break}}).on("dragend",function(){f&&f.setUnfixed(b)}),S.setDraggable(I,!!M.get("cursor"));var C=M.get(["emphasis","focus"]);C==="adjacency"&&(Ut(S).focus=x.getAdjacentDataIndices())}}),h.graph.eachEdge(function(x){var b=x.getGraphicEl(),S=x.getModel().get(["emphasis","focus"]);b&&S==="adjacency"&&(Ut(b).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var _=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),v=h.getLayout("cx"),p=h.getLayout("cy");h.graph.eachNode(function(x){_D(x,_,v,p)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var i=this;(function o(){t.step(function(a){i.updateLayout(i._model),(i._layouting=!a)&&(r?i._layoutTimeout=setTimeout(o,16):o())})})()},e.prototype._updateController=function(t,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(u,c,h){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,h)&&!Tf(u,i,t)}),!kD(t.coordinateSystem)){a.disable();return}a.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){c1(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){h1(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(),K1(t.getGraph(),Sh(t)),o._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),i=Sh(t);r.eachItemGraphicEl(function(o,a){o&&o.setSymbolScale(i)})},e.prototype.updateLayout=function(t){K1(t.getGraph(),Sh(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Pe);function su(n){return"_EC_"+n}var n9=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(r[su(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var i=new Us(e,t);return i.hostGraph=this,this.nodes.push(i),r[su(e)]=i,i},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[su(e)]},n.prototype.addEdge=function(e,t,r){var i=this._nodesMap,o=this._edgesMap;if(ye(e)&&(e=this.nodes[e]),ye(t)&&(t=this.nodes[t]),e instanceof Us||(e=i[su(e)]),t instanceof Us||(t=i[su(t)]),!(!e||!t)){var a=e.id+"-"+t.id,s=new DD(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),o[a]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Us&&(e=e.id),t instanceof Us&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&e.call(t,r[o],o)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&r[o].node1.dataIndex>=0&&r[o].node2.dataIndex>=0&&e.call(t,r[o],o)},n.prototype.breadthFirstTraverse=function(e,t,r,i){if(t instanceof Us||(t=this._nodesMap[su(t)]),!!t){for(var o=r==="out"?"outEdges":r==="in"?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(i,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[o],a=0;a<u.length;a++){var c=u[a],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(e.call(i,h,l))return;s.push(h),h.__visited=!0}}}},n.prototype.update=function(){for(var e=this.data,t=this.edgeData,r=this.nodes,i=this.edges,o=0,a=r.length;o<a;o++)r[o].dataIndex=-1;for(var o=0,a=e.count();o<a;o++)r[e.getRawIndex(o)].dataIndex=o;t.filterSelf(function(s){var l=i[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var o=0,a=i.length;o<a;o++)i[o].dataIndex=-1;for(var o=0,a=t.count();o<a;o++)i[t.getRawIndex(o)].dataIndex=o},n.prototype.clone=function(){for(var e=new n(this._directed),t=this.nodes,r=this.edges,i=0;i<t.length;i++)e.addNode(t[i].id,t[i].dataIndex);for(var i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},n}(),Us=function(){function n(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var r=this.edges[t];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},n.prototype.getTrajectoryDataIndices=function(){for(var e=Lt(),t=Lt(),r=0;r<this.edges.length;r++){var i=this.edges[r];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],a=[i.node2],s=0;s<o.length;){var l=o[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),o.push(l.inEdges[u].node1)}for(s=0;s<a.length;){var c=a[s];s++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),a.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},n}(),DD=function(){function n(e,t,r){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=r??-1}return n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},n.prototype.getTrajectoryDataIndices=function(){var e=Lt(),t=Lt();e.set(this.dataIndex,!0);for(var r=[this.node1],i=[this.node2],o=0;o<r.length;){var a=r[o];o++,t.set(a.dataIndex,!0);for(var s=0;s<a.inEdges.length;s++)e.set(a.inEdges[s].dataIndex,!0),r.push(a.inEdges[s].node1)}for(o=0;o<i.length;){var l=i[o];o++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},n}();function LD(n,e){return{getValue:function(t){var r=this[n][e];return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,r){this.dataIndex>=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}nn(Us,LD("hostGraph","data")),nn(DD,LD("hostGraph","edgeData"));function ND(n,e,t,r,i){for(var o=new n9(r),a=0;a<n.length;a++)o.addNode(rn(n[a].id,n[a].name,a),a);for(var s=[],l=[],u=0,a=0;a<e.length;a++){var c=e[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(rn(pn(c.id,null),h+" > "+d)),u++)}var f=t.get("coordinateSystem"),g;if(f==="cartesian2d"||f==="polar")g=To(n,t);else{var y=Bl.get(f),_=y?y.dimensions||[]:[];te(_,"value")<0&&_.concat(["value"]);var v=qc(n,{coordDimensions:_,encodeDefine:t.getEncode()}).dimensions;g=new nr(v,t),g.initData(n)}var p=new nr(["value"],t);return p.initData(l,s),i&&i(g,p),Xk({mainData:g,struct:o,structAttr:"graph",datas:{node:g,edge:p},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var r9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new lh(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),Ja(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var i=t.edges||t.links||[],o=t.data||t.nodes||[],a=this;{j7(this);var s=ND(o,i,this,!0,l);return R(s.edges,function(u){H7(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(g){var y=a._categoriesModels,_=g.getShallow("category"),v=y[_];return v&&(v.parentModel=g.parentModel,g.parentModel=v),g});var h=ke.prototype.getModel;function d(g,y){var _=h.call(this,g,y);return _.resolveParentPath=f,_}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=f,g.getModel=d,g});function f(g){if(g&&(g[0]==="label"||g[1]==="label")){var y=g.slice();return g[0]==="label"?y[0]="edgeLabel":g[1]==="label"&&(y[1]="edgeLabel"),y}return g}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,i){if(i==="edge"){var o=this.getData(),a=this.getDataParams(t,i),s=o.graph.getEdgeByIndex(t),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xn("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}var h=wI({series:this,dataIndex:t,multipleSeries:r});return h},e.prototype._updateCategoriesData=function(){var t=pt(this.option.categories||[],function(i){return i.value!=null?i:lt({value:0},i)}),r=new nr(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ve),i9={type:"graphRoam",event:"graphRoam",update:"none"};function o9(n){n.registerChartView(e9),n.registerSeriesModel(r9),n.registerProcessor(V7),n.registerVisual(B7),n.registerVisual(F7),n.registerLayout(U7),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,Z7),n.registerLayout(K7),n.registerCoordinateSystem("graphView",{dimensions:dh.dimensions,create:J7}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Qe),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Qe),n.registerAction(i9,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(i){var o=i.coordinateSystem,a=y1(o,e,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}var a9=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),s9=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new a9},e.prototype.buildPath=function(t,r){var i=Math.cos,o=Math.sin,a=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=a/3?1:2),c=r.y-o(l)*s*(s>=a/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+i(l)*s,r.y+o(l)*s),t.lineTo(r.x+i(r.angle)*a,r.y+o(r.angle)*a),t.lineTo(r.x-i(l)*s,r.y-o(l)*s),t.lineTo(u,c)},e}(ae);function l9(n,e){var t=n.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i),a=Mt(t[0],e.getWidth()),s=Mt(t[1],e.getHeight()),l=Mt(n.get("radius"),o/2);return{cx:a,cy:s,r:l}}function Bf(n,e){var t=n==null?"":n+"";return e&&(Tt(e)?t=e.replace("{value}",t):Et(e)&&(t=e(n))),t}var u9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeAll();var o=t.get(["axisLine","lineStyle","color"]),a=l9(t,i);this._renderMain(t,r,i,o,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,i,o,a){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),d=h.get("roundCap"),f=d?_f:Qn,g=h.get("show"),y=h.getModel("lineStyle"),_=y.get("width"),v=[u,c];By(v,!l),u=v[0],c=v[1];for(var p=c-u,x=u,b=[],S=0;g&&S<o.length;S++){var M=Math.min(Math.max(o[S][0],0),1);c=u+p*M;var I=new f({shape:{startAngle:x,endAngle:c,cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-_,r:a.r},silent:!0});I.setStyle({fill:o[S][1]}),I.setStyle(y.getLineStyle(["color","width"])),b.push(I),x=c}b.reverse(),R(b,function(A){return s.add(A)});var C=function(A){if(A<=0)return o[0][1];var D;for(D=0;D<o.length;D++)if(o[D][0]>=A&&(D===0?0:o[D-1][0])<A)return o[D][1];return o[D-1][1]};this._renderTicks(t,r,i,C,a,u,c,l,_),this._renderTitleAndDetail(t,r,i,C,a),this._renderAnchor(t,a),this._renderPointer(t,r,i,C,a,u,c,l,_)},e.prototype._renderTicks=function(t,r,i,o,a,s,l,u,c){for(var h=this.group,d=a.cx,f=a.cy,g=a.r,y=+t.get("min"),_=+t.get("max"),v=t.getModel("splitLine"),p=t.getModel("axisTick"),x=t.getModel("axisLabel"),b=t.get("splitNumber"),S=p.get("splitNumber"),M=Mt(v.get("length"),g),I=Mt(p.get("length"),g),C=s,A=(l-s)/b,D=A/S,N=v.getModel("lineStyle").getLineStyle(),L=p.getModel("lineStyle").getLineStyle(),E=v.get("distance"),k,z,F=0;F<=b;F++){if(k=Math.cos(C),z=Math.sin(C),v.get("show")){var W=E?E+c:c,q=new mn({shape:{x1:k*(g-W)+d,y1:z*(g-W)+f,x2:k*(g-M-W)+d,y2:z*(g-M-W)+f},style:N,silent:!0});N.stroke==="auto"&&q.setStyle({stroke:o(F/b)}),h.add(q)}if(x.get("show")){var W=x.get("distance")+E,j=Bf(Ye(F/b*(_-y)+y),x.get("formatter")),J=o(F/b),H=k*(g-M-W)+d,K=z*(g-M-W)+f,ut=x.get("rotate"),at=0;ut==="radial"?(at=-C+2*Math.PI,at>Math.PI/2&&(at+=Math.PI)):ut==="tangential"?at=-C-Math.PI/2:ye(ut)&&(at=ut*Math.PI/180),at===0?h.add(new ge({style:ze(x,{text:j,x:H,y:K,verticalAlign:z<-.8?"top":z>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:J}),silent:!0})):h.add(new ge({style:ze(x,{text:j,x:H,y:K,verticalAlign:"middle",align:"center"},{inheritColor:J}),silent:!0,originX:H,originY:K,rotation:at}))}if(p.get("show")&&F!==b){var W=p.get("distance");W=W?W+c:c;for(var ot=0;ot<=S;ot++){k=Math.cos(C),z=Math.sin(C);var Rt=new mn({shape:{x1:k*(g-W)+d,y1:z*(g-W)+f,x2:k*(g-I-W)+d,y2:z*(g-I-W)+f},silent:!0,style:L});L.stroke==="auto"&&Rt.setStyle({stroke:o((F+ot/S)/b)}),h.add(Rt),C+=D}C-=D}else C+=A}},e.prototype._renderPointer=function(t,r,i,o,a,s,l,u,c){var h=this.group,d=this._data,f=this._progressEls,g=[],y=t.get(["pointer","show"]),_=t.getModel("progress"),v=_.get("show"),p=t.getData(),x=p.mapDimension("value"),b=+t.get("min"),S=+t.get("max"),M=[b,S],I=[s,l];function C(D,N){var L=p.getItemModel(D),E=L.getModel("pointer"),k=Mt(E.get("width"),a.r),z=Mt(E.get("length"),a.r),F=t.get(["pointer","icon"]),W=E.get("offsetCenter"),q=Mt(W[0],a.r),j=Mt(W[1],a.r),J=E.get("keepAspect"),H;return F?H=ln(F,q-k/2,j-z,k,z,null,J):H=new s9({shape:{angle:-Math.PI/2,width:k,r:z,x:q,y:j}}),H.rotation=-(N+Math.PI/2),H.x=a.cx,H.y=a.cy,H}function A(D,N){var L=_.get("roundCap"),E=L?_f:Qn,k=_.get("overlap"),z=k?_.get("width"):c/p.count(),F=k?a.r-z:a.r-(D+1)*z,W=k?a.r:a.r-D*z,q=new E({shape:{startAngle:s,endAngle:N,cx:a.cx,cy:a.cy,clockwise:u,r0:F,r:W}});return k&&(q.z2=Ae(p.get(x,D),[b,S],[100,0],!0)),q}(v||y)&&(p.diff(d).add(function(D){var N=p.get(x,D);if(y){var L=C(D,s);We(L,{rotation:-((isNaN(+N)?I[0]:Ae(N,M,I,!0))+Math.PI/2)},t),h.add(L),p.setItemGraphicEl(D,L)}if(v){var E=A(D,s),k=_.get("clip");We(E,{shape:{endAngle:Ae(N,M,I,k)}},t),h.add(E),Wy(t.seriesIndex,p.dataType,D,E),g[D]=E}}).update(function(D,N){var L=p.get(x,D);if(y){var E=d.getItemGraphicEl(N),k=E?E.rotation:s,z=C(D,k);z.rotation=k,_e(z,{rotation:-((isNaN(+L)?I[0]:Ae(L,M,I,!0))+Math.PI/2)},t),h.add(z),p.setItemGraphicEl(D,z)}if(v){var F=f[N],W=F?F.shape.endAngle:s,q=A(D,W),j=_.get("clip");_e(q,{shape:{endAngle:Ae(L,M,I,j)}},t),h.add(q),Wy(t.seriesIndex,p.dataType,D,q),g[D]=q}}).execute(),p.each(function(D){var N=p.getItemModel(D),L=N.getModel("emphasis"),E=L.get("focus"),k=L.get("blurScope"),z=L.get("disabled");if(y){var F=p.getItemGraphicEl(D),W=p.getItemVisual(D,"style"),q=W.fill;if(F instanceof Tn){var j=F.style;F.useStyle(lt({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},W))}else F.useStyle(W),F.type!=="pointer"&&F.setColor(q);F.setStyle(N.getModel(["pointer","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",o(Ae(p.get(x,D),M,[0,1],!0))),F.z2EmphasisLift=0,Ln(F,N),Ze(F,E,k,z)}if(v){var J=g[D];J.useStyle(p.getItemVisual(D,"style")),J.setStyle(N.getModel(["progress","itemStyle"]).getItemStyle()),J.z2EmphasisLift=0,Ln(J,N),Ze(J,E,k,z)}}),this._progressEls=g)},e.prototype._renderAnchor=function(t,r){var i=t.getModel("anchor"),o=i.get("show");if(o){var a=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=ln(s,r.cx-a/2+Mt(l[0],r.r),r.cy-a/2+Mt(l[1],r.r),a,a,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,i,o,a){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),h=+t.get("max"),d=new jt,f=[],g=[],y=t.isAnimationEnabled(),_=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(v){f[v]=new ge({silent:!0}),g[v]=new ge({silent:!0})}).update(function(v,p){f[v]=s._titleEls[p],g[v]=s._detailEls[p]}).execute(),l.each(function(v){var p=l.getItemModel(v),x=l.get(u,v),b=new jt,S=o(Ae(x,[c,h],[0,1],!0)),M=p.getModel("title");if(M.get("show")){var I=M.get("offsetCenter"),C=a.cx+Mt(I[0],a.r),A=a.cy+Mt(I[1],a.r),D=f[v];D.attr({z2:_?0:2,style:ze(M,{x:C,y:A,text:l.getName(v),align:"center",verticalAlign:"middle"},{inheritColor:S})}),b.add(D)}var N=p.getModel("detail");if(N.get("show")){var L=N.get("offsetCenter"),E=a.cx+Mt(L[0],a.r),k=a.cy+Mt(L[1],a.r),z=Mt(N.get("width"),a.r),F=Mt(N.get("height"),a.r),W=t.get(["progress","show"])?l.getItemVisual(v,"style").fill:S,D=g[v],q=N.get("formatter");D.attr({z2:_?0:2,style:ze(N,{x:E,y:k,text:Bf(x,q),width:isNaN(z)?null:z,height:isNaN(F)?null:F,align:"center",verticalAlign:"middle"},{inheritColor:W})}),QS(D,{normal:N},x,function(J){return Bf(J,q)}),y&&tM(D,v,l,t,{getFormattedLabel:function(J,H,K,ut,at,ot){return Bf(ot?ot.interpolatedValue:x,q)}}),b.add(D)}d.add(b)}),this.group.add(d),this._titleEls=f,this._detailEls=g},e.type="gauge",e}(Pe),c9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return nu(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Ve);function h9(n){n.registerChartView(u9),n.registerSeriesModel(c9)}var p9=["itemStyle","opacity"],d9=function(n){Q(e,n);function e(t,r){var i=n.call(this)||this,o=i,a=new er,s=new ge;return o.setTextContent(s),i.setTextGuideLine(a),i.updateData(t,r,!0),i}return e.prototype.updateData=function(t,r,i){var o=this,a=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(p9);c=c??1,i||yi(o),o.useStyle(t.getItemVisual(r,"style")),o.style.lineJoin="round",i?(o.setShape({points:l.points}),o.style.opacity=0,We(o,{style:{opacity:c}},a,r)):_e(o,{style:{opacity:c},shape:{points:l.points}},a,r),Ln(o,s),this._updateLabel(t,r),Ze(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var i=this,o=this.getTextGuideLine(),a=i.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,h=t.getItemVisual(r,"style"),d=h.fill;Nn(a,_n(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:h.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var f=c.linePoints;o.setShape({points:f}),i.textGuideLineConfig={anchor:f?new $t(f[0][0],f[0][1]):null},_e(a,{style:{x:c.x,y:c.y}},s,r),a.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),A0(i,k0(l),{stroke:d})},e}(tr),f9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,i){var o=t.getData(),a=this._data,s=this.group;o.diff(a).add(function(l){var u=new d9(o,l);o.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=a.getItemGraphicEl(u);c.updateData(o,l),s.add(c),o.setItemGraphicEl(l,c)}).remove(function(l){var u=a.getItemGraphicEl(l);bc(u,t,l)}).execute(),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Pe),g9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new lh(At(this.getData,this),At(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return nu(this,{coordDimensions:["value"],encodeDefaulter:qt(Sm,this)})},e.prototype._defaultLabelLine=function(t){Ja(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),i=n.prototype.getDataParams.call(this,t),o=r.mapDimension("value"),a=r.getSum(o);return i.percent=a?+(r.get(o,t)/a*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ve);function v9(n,e){return dn(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function y9(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),i=[],o=e==="ascending",a=0,s=n.count();a<s;a++)i[a]=a;return Et(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return o?r[l]-r[u]:r[u]-r[l]}),i}function m9(n){var e=n.hostModel,t=e.get("orient");n.each(function(r){var i=n.getItemModel(r),o=i.getModel("label"),a=o.get("position"),s=i.getModel("labelLine"),l=n.getItemLayout(r),u=l.points,c=a==="inner"||a==="inside"||a==="center"||a==="insideLeft"||a==="insideRight",h,d,f,g;if(c)a==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,f=(u[0][1]+u[3][1])/2,h="left"):a==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,f=(u[1][1]+u[2][1])/2,h="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,f=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),g=[[d,f],[d,f]];else{var y=void 0,_=void 0,v=void 0,p=void 0,x=s.get("length");process.env.NODE_ENV!=="production"&&(t==="vertical"&&["top","bottom"].indexOf(a)>-1&&(a="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t==="horizontal"&&["left","right"].indexOf(a)>-1&&(a="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),a==="left"?(y=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,v=y-x,d=v-5,h="right"):a==="right"?(y=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,v=y+x,d=v+5,h="left"):a==="top"?(y=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,p=_-x,f=p-5,h="center"):a==="bottom"?(y=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,p=_+x,f=p+5,h="center"):a==="rightTop"?(y=t==="horizontal"?u[3][0]:u[1][0],_=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(p=_-x,f=p-5,h="center"):(v=y+x,d=v+5,h="top")):a==="rightBottom"?(y=u[2][0],_=u[2][1],t==="horizontal"?(p=_+x,f=p+5,h="center"):(v=y+x,d=v+5,h="bottom")):a==="leftTop"?(y=u[0][0],_=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(p=_-x,f=p-5,h="center"):(v=y-x,d=v-5,h="right")):a==="leftBottom"?(y=t==="horizontal"?u[1][0]:u[3][0],_=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(p=_+x,f=p+5,h="center"):(v=y-x,d=v-5,h="right")):(y=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,t==="horizontal"?(p=_+x,f=p+5,h="center"):(v=y+x,d=v+5,h="left")),t==="horizontal"?(v=y,d=v):(p=_,f=p),g=[[y,_],[v,p]]}l.label={linePoints:g,x:d,y:f,verticalAlign:"middle",textAlign:h,inside:c}})}function _9(n,e){n.eachSeriesByType("funnel",function(t){var r=t.getData(),i=r.mapDimension("value"),o=t.get("sort"),a=v9(t,e),s=t.get("orient"),l=a.width,u=a.height,c=y9(r,o),h=a.x,d=a.y,f=s==="horizontal"?[Mt(t.get("minSize"),u),Mt(t.get("maxSize"),u)]:[Mt(t.get("minSize"),l),Mt(t.get("maxSize"),l)],g=r.getDataExtent(i),y=t.get("min"),_=t.get("max");y==null&&(y=Math.min(g[0],0)),_==null&&(_=g[1]);var v=t.get("funnelAlign"),p=t.get("gap"),x=s==="horizontal"?l:u,b=(x-p*(r.count()-1))/r.count(),S=function(k,z){if(s==="horizontal"){var F=r.get(i,k)||0,W=Ae(F,[y,_],f,!0),q=void 0;switch(v){case"top":q=d;break;case"center":q=d+(u-W)/2;break;case"bottom":q=d+(u-W);break}return[[z,q],[z,q+W]]}var j=r.get(i,k)||0,J=Ae(j,[y,_],f,!0),H;switch(v){case"left":H=h;break;case"center":H=h+(l-J)/2;break;case"right":H=h+l-J;break}return[[H,z],[H+J,z]]};o==="ascending"&&(b=-b,p=-p,s==="horizontal"?h+=l:d+=u,c=c.reverse());for(var M=0;M<c.length;M++){var I=c[M],C=c[M+1],A=r.getItemModel(I);if(s==="horizontal"){var D=A.get(["itemStyle","width"]);D==null?D=b:(D=Mt(D,l),o==="ascending"&&(D=-D));var N=S(I,h),L=S(C,h+D);h+=D+p,r.setItemLayout(I,{points:N.concat(L.slice().reverse())})}else{var E=A.get(["itemStyle","height"]);E==null?E=b:(E=Mt(E,u),o==="ascending"&&(E=-E));var N=S(I,d),L=S(C,d+E);d+=E+p,r.setItemLayout(I,{points:N.concat(L.slice().reverse())})}}m9(r)})}function x9(n){n.registerChartView(f9),n.registerSeriesModel(g9),n.registerLayout(_9),n.registerProcessor(sh("funnel"))}var b9=.3,w9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new jt,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,r,i,o){this._progressiveEls=null;var a=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,h=RD(t);s.diff(l).add(d).update(f).remove(g).execute();function d(_){var v=ED(s,a,_,c,u);Y1(v,s,_,h)}function f(_,v){var p=l.getItemGraphicEl(v),x=PD(s,_,c,u);s.setItemGraphicEl(_,p),_e(p,{shape:{points:x}},t,_),yi(p),Y1(p,s,_,h)}function g(_){var v=l.getItemGraphicEl(_);a.remove(v)}if(!this._initialized){this._initialized=!0;var y=S9(u,t,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(y)}this._data=s},e.prototype.incrementalPrepareRender=function(t,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,r,i){for(var o=r.getData(),a=r.coordinateSystem,s=a.dimensions,l=RD(r),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var h=ED(o,this._dataGroup,c,s,a);h.incremental=!0,Y1(h,o,c,l),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Pe);function S9(n,e,t){var r=n.model,i=n.getRect(),o=new fe({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a=r.get("layout")==="horizontal"?"width":"height";return o.setShape(a,0),We(o,{shape:{width:i.width,height:i.height}},e,t),o}function PD(n,e,t,r){for(var i=[],o=0;o<t.length;o++){var a=t[o],s=n.get(n.mapDimension(a),e);M9(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function ED(n,e,t,r,i){var o=PD(n,t,r,i),a=new er({shape:{points:o},z2:10});return e.add(a),n.setItemGraphicEl(t,a),a}function RD(n){var e=n.get("smooth",!0);return e===!0&&(e=b9),e=vo(e),Ba(e)&&(e=0),{smooth:e}}function Y1(n,e,t,r){n.useStyle(e.getItemVisual(t,"style")),n.style.fill=null,n.setShape("smooth",r.smooth);var i=e.getItemModel(t),o=i.getModel("emphasis");Ln(n,i,"lineStyle"),Ze(n,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function M9(n,e){return e==="category"?n==null:n==null||isNaN(n)}var I9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,r){return To(null,this,{useEncodeDefaulter:At(T9,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var r=this.coordinateSystem,i=this.getData(),o=[];return r.eachActiveState(i,function(a,s){t===a&&o.push(i.getRawIndex(s))}),o},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={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"},e}(Ve);function T9(n){var e=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(e){var t={};return R(e.dimensions,function(r){var i=C9(r);t[r]=i}),t}}function C9(n){return+n.replace("dim","")}var A9=["lineStyle","opacity"],k9={seriesType:"parallel",reset:function(n,e){var t=n.coordinateSystem,r={normal:n.get(["lineStyle","opacity"]),active:n.get("activeOpacity"),inactive:n.get("inactiveOpacity")};return{progress:function(i,o){t.eachActiveState(o,function(a,s){var l=r[a];if(a==="normal"&&o.hasItemOption){var u=o.getItemModel(s).get(A9,!0);u!=null&&(l=u)}var c=o.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function D9(n){L9(n),N9(n)}function L9(n){if(!n.parallel){var e=!1;R(n.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(n.parallel=[{}])}}function N9(n){var e=Ne(n.parallelAxis);R(e,function(t){if(Vt(t)){var r=t.parallelIndex||0,i=Ne(n.parallel)[r];i&&i.parallelAxisDefault&&Yt(t,i.parallelAxisDefault,!1)}})}var P9=5,E9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this._model=t,this._api=i,this._handlers||(this._handlers={},R(R9,function(o,a){i.getZr().on(a,this._handlers[a]=At(o,this))},this)),Hl(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,r){Rc(this,"_throttledDispatchExpand"),R(this._handlers,function(i,o){r.getZr().off(o,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(lt({type:"parallelAxisExpand"},t))},e.type="parallel",e}(He),R9={mousedown:function(n){J1(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var e=this._mouseDownPoint;if(J1(this,"click")&&e){var t=[n.offsetX,n.offsetY],r=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(r>P9)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!J1(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function J1(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var O9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Yt(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var i=t.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],i=Me(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);R(i,function(o){t.push("dim"+o.get("dim")),r.push(o.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(le),z9=function(n){Q(e,n);function e(t,r,i,o,a){var s=n.call(this,t,r,i)||this;return s.type=o||"value",s.axisIndex=a,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(wi);function Xs(n,e,t,r,i,o){n=n||0;var a=t[1]-t[0];if(i!=null&&(i=lu(i,[0,a])),o!=null&&(o=Math.max(o,i??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=lu(s,[0,a]),i=o=lu(s,[i,o]),r=0}e[0]=lu(e[0],t),e[1]=lu(e[1],t);var l=$1(e,r);e[r]+=n;var u=i||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=lu(e[r],c);var h;return h=$1(e,r),i!=null&&(h.sign!==l.sign||h.span<i)&&(e[1-r]=e[r]+l.sign*i),h=$1(e,r),o!=null&&h.span>o&&(e[1-r]=e[r]+h.sign*o),e}function $1(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function lu(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var Q1=R,OD=Math.min,zD=Math.max,VD=Math.floor,V9=Math.ceil,BD=Ye,B9=Math.PI,F9=function(){function n(e,t,r){this.type="parallel",this._axesMap=Lt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var i=e.dimensions,o=e.parallelAxisIndex;Q1(i,function(a,s){var l=o[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(a,new z9(a,cf(u),[0,0],u.get("type"),l)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,i=t.layoutBase,o=t.pixelDimIndex,a=e[1-o],s=e[o];return a>=r&&a<=r+t.axisLength&&s>=i&&s<=i+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var i=r.getData();Q1(this.dimensions,function(o){var a=this._axesMap.get(o);a.scale.unionExtentFromData(i,i.mapDimension(o)),$l(a.scale,a.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=dn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a=o==="horizontal"?0:1,s=t[i[a]],l=[0,s],u=this.dimensions.length,c=Ff(e.get("axisExpandWidth"),l),h=Ff(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow"),g;if(f)g=Ff(f[1]-f[0],l),f[1]=f[0]+g;else{g=Ff(c*(h-1),l);var y=e.get("axisExpandCenter")||VD(u/2);f=[c*y-g/2],f[1]=f[0]+g}var _=(s-g)/(u-h);_<3&&(_=0);var v=[VD(BD(f[0]/c,1))+1,V9(BD(f[1]/c,1))-1],p=_/c*f[0];return{layout:o,pixelDimIndex:a,layoutBase:t[r[a]],layoutLength:s,axisBase:t[r[1-a]],axisLength:t[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:_,axisExpandWindow:f,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:p}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;t.each(function(a){var s=[0,i.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),Q1(r,function(a,s){var l=(i.axisExpandable?W9:G9)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:B9/2,vertical:0},h=[u[o].x+e.x,u[o].y+e.y],d=c[o],f=mr();ja(f,f,d),Li(f,f,h),this._axesLayout[a]={position:h,rotation:d,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,i){r==null&&(r=0),i==null&&(i=e.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];R(a,function(_){s.push(e.mapDimension(_)),l.push(o.get(_).model)});for(var u=this.hasAxisBrushed(),c=r;c<i;c++){var h=void 0;if(!u)h="normal";else{h="active";for(var d=e.getValues(s,c),f=0,g=a.length;f<g;f++){var y=l[f].getActiveState(d[f]);if(y==="inactive"){h="inactive";break}}}t(h,c)}},n.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,r=!1,i=0,o=e.length;i<o;i++)t.get(e[i]).model.getActiveState()!=="normal"&&(r=!0);return r},n.prototype.axisCoordToPoint=function(e,t){var r=this._axesLayout[t];return _i([e,0],r.transform)},n.prototype.getAxisLayout=function(e){return Wt(this._axesLayout[e])},n.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),r=t.pixelDimIndex,i=t.axisExpandWindow.slice(),o=i[1]-i[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s=e[r]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),d=h[0]!=null;if(c)d&&c&&s<o*h[0]?(u="jump",l=s-o*h[2]):d&&c&&s>o*(1-h[0])?(u="jump",l=s-o*(1-h[2])):(l=s-o*h[1])>=0&&(l=s-o*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?Xs(l,i,a,"all"):u="none";else{var f=i[1]-i[0],g=a[1]*s/f;i=[zD(0,g-f/2)],i[1]=OD(a[1],i[0]+f),i[0]=i[1]-f}return{axisExpandWindow:i,behavior:u}},n}();function Ff(n,e){return OD(zD(n,e[0]),e[1])}function G9(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function W9(n,e){var t=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,o=e.axisCollapseWidth,a=e.winInnerIndices,s,l=o,u=!1,c;return n<a[0]?(s=n*o,c=o):n<=a[1]?(s=e.axisExpandWindow0Pos+n*r-e.axisExpandWindow[0],l=r,u=!0):(s=t-(i-1-n)*o,c=o),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function j9(n,e){var t=[];return n.eachComponent("parallel",function(r,i){var o=new F9(r,n,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,t.push(o)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var i=r.getReferringComponents("parallel",an).models[0];r.coordinateSystem=i.coordinateSystem}}),t}var H9={create:j9},t_=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return ts([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var r=this.activeIntervals=Wt(t);if(r)for(var i=r.length-1;i>=0;i--)Vr(r[i])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var o=0,a=r.length;o<a;o++)if(r[o][0]<=t&&t<=r[o][1])return"active";return"inactive"},e}(le);nn(t_,Yc);var Zs=!0,Ih=Math.min,uu=Math.max,U9=Math.pow,X9=1e4,Z9=6,q9=6,FD="globalPan",K9={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Y9={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},GD={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},J9=0,e_=function(n){Q(e,n);function e(t){var r=n.call(this)||this;return r._track=[],r._covers=[],r._handlers={},process.env.NODE_ENV!=="production"&&Bt(t),r._zr=t,r.group=new jt,r._uid="brushController_"+J9++,R(iU,function(i,o){this._handlers[o]=At(i,this)},r),r}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&Bt(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var r=this._zr;this._enableGlobalPan||Gj(r,FD,this._uid),R(this._handlers,function(i,o){r.on(o,i)}),this._brushType=t.brushType,this._brushOption=Yt(Wt(GD),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Wj(t,FD,this._uid),R(this._handlers,function(r,i){t.off(i,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var r=this._panels={};R(t,function(i){r[i.panelId]=Wt(i)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&Bt(this._mounted),t=pt(t,function(d){return Yt(Wt(GD),d,!0)});var r="\0-brush-index-",i=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new Io(i,t,u,l).add(c).update(c).remove(h).execute(),this;function l(d,f){return(d.id!=null?d.id:r+f)+"-"+d.brushType}function u(d,f){return l(d.__brushOption,f)}function c(d,f){var g=t[d];if(f!=null&&i[f]===s)o[d]=i[f];else{var y=o[d]=f!=null?(i[f].__brushOption=g,i[f]):jD(a,WD(a,g));n_(a,y)}}function h(d){i[d]!==s&&a.group.remove(i[d])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),o_(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Er);function WD(n,e){var t=Gf[e.brushType].createCover(n,e);return t.__brushOption=e,UD(t,e),n.group.add(t),t}function jD(n,e){var t=r_(e);return t.endCreating&&(t.endCreating(n,e),UD(e,e.__brushOption)),e}function HD(n,e){var t=e.__brushOption;r_(e).updateCoverShape(n,e,t.range,t)}function UD(n,e){var t=e.z;t==null&&(t=X9),n.traverse(function(r){r.z=t,r.z2=t})}function n_(n,e){r_(e).updateCommon(n,e),HD(n,e)}function r_(n){return Gf[n.__brushOption.brushType]}function i_(n,e,t){var r=n._panels;if(!r)return Zs;var i,o=n._transform;return R(r,function(a){a.isTargetByCursor(e,t,o)&&(i=a)}),i}function XD(n,e){var t=n._panels;if(!t)return Zs;var r=e.__brushOption.panelId;return r!=null?t[r]:Zs}function o_(n){var e=n._covers,t=e.length;return R(e,function(r){n.group.remove(r)},n),e.length=0,!!t}function qs(n,e){var t=pt(n._covers,function(r){var i=r.__brushOption,o=Wt(i.range);return{brushType:i.brushType,panelId:i.panelId,range:o}});n.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function $9(n){var e=n._track;if(!e.length)return!1;var t=e[e.length-1],r=e[0],i=t[0]-r[0],o=t[1]-r[1],a=U9(i*i+o*o,.5);return a>Z9}function ZD(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function qD(n,e,t,r){var i=new jt;return i.add(new fe({name:"main",style:s_(t),silent:!0,draggable:!0,cursor:"move",drift:qt(JD,n,e,i,["n","s","w","e"]),ondragend:qt(qs,e,{isEnd:!0})})),R(r,function(o){i.add(new fe({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:qt(JD,n,e,i,o),ondragend:qt(qs,e,{isEnd:!0})}))}),i}function KD(n,e,t,r){var i=r.brushStyle.lineWidth||0,o=uu(i,q9),a=t[0][0],s=t[1][0],l=a-i/2,u=s-i/2,c=t[0][1],h=t[1][1],d=c-o+i/2,f=h-o+i/2,g=c-a,y=h-s,_=g+i,v=y+i;ko(n,e,"main",a,s,g,y),r.transformable&&(ko(n,e,"w",l,u,o,v),ko(n,e,"e",d,u,o,v),ko(n,e,"n",l,u,_,o),ko(n,e,"s",l,f,_,o),ko(n,e,"nw",l,u,o,o),ko(n,e,"ne",d,u,o,o),ko(n,e,"sw",l,f,o,o),ko(n,e,"se",d,f,o,o))}function a_(n,e){var t=e.__brushOption,r=t.transformable,i=e.childAt(0);i.useStyle(s_(t)),i.attr({silent:!r,cursor:r?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=e.childOfName(o.join("")),s=o.length===1?l_(n,o[0]):tU(n,o);a&&a.attr({silent:!r,invisible:!r,cursor:r?Y9[s]+"-resize":null})})}function ko(n,e,t,r,i,o,a){var s=e.childOfName(t);s&&s.setShape(nU(u_(n,e,[[r,i],[r+o,i+a]])))}function s_(n){return Ft({strokeNoScale:!0},n.brushStyle)}function YD(n,e,t,r){var i=[Ih(n,t),Ih(e,r)],o=[uu(n,t),uu(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function Q9(n){return vs(n.group)}function l_(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=yd(t[e],Q9(n));return r[i]}function tU(n,e){var t=[l_(n,e[0]),l_(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function JD(n,e,t,r,i,o){var a=t.__brushOption,s=n.toRectRange(a.range),l=$D(e,i,o);R(r,function(u){var c=K9[u];s[c[0]][c[1]]+=l[c[0]]}),a.range=n.fromRectRange(YD(s[0][0],s[1][0],s[0][1],s[1][1])),n_(e,t),qs(e,{isEnd:!1})}function eU(n,e,t,r){var i=e.__brushOption.range,o=$D(n,t,r);R(i,function(a){a[0]+=o[0],a[1]+=o[1]}),n_(n,e),qs(n,{isEnd:!1})}function $D(n,e,t){var r=n.group,i=r.transformCoordToLocal(e,t),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function u_(n,e,t){var r=XD(n,e);return r&&r!==Zs?r.clipPath(t,n._transform):Wt(t)}function nU(n){var e=Ih(n[0][0],n[1][0]),t=Ih(n[0][1],n[1][1]),r=uu(n[0][0],n[1][0]),i=uu(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:i-t}}function rU(n,e,t){if(!(!n._brushType||oU(n,e.offsetX,e.offsetY))){var r=n._zr,i=n._covers,o=i_(n,e,t);if(!n._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===Zs||s.panelId===o.panelId)&&Gf[s.brushType].contain(i[a],t[0],t[1]))return}o&&r.setCursorStyle("crosshair")}}function c_(n){var e=n.event;e.preventDefault&&e.preventDefault()}function h_(n,e,t){return n.childOfName("main").contain(e,t)}function QD(n,e,t,r){var i=n._creatingCover,o=n._creatingPanel,a=n._brushOption,s;if(n._track.push(t.slice()),$9(n)||i){if(o&&!i){a.brushMode==="single"&&o_(n);var l=Wt(a);l.brushType=tL(l.brushType,o),l.panelId=o===Zs?null:o.panelId,i=n._creatingCover=WD(n,l),n._covers.push(i)}if(i){var u=Gf[tL(n._brushType,o)],c=i.__brushOption;c.range=u.getCreatingRange(u_(n,i,n._track)),r&&(jD(n,i),u.updateCommon(n,i)),HD(n,i),s={isEnd:r}}}else r&&a.brushMode==="single"&&a.removeOnClick&&i_(n,e,t)&&o_(n)&&(s={isEnd:r,removeOnClick:!0});return s}function tL(n,e){return n==="auto"?(process.env.NODE_ENV!=="production"&&Bt(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):n}var iU={mousedown:function(n){if(this._dragging)eL(this,n);else if(!n.target||!n.target.draggable){c_(n);var e=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;var t=this._creatingPanel=i_(this,n,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(n){var e=n.offsetX,t=n.offsetY,r=this.group.transformCoordToLocal(e,t);if(rU(this,n,r),this._dragging){c_(n);var i=QD(this,n,r,!1);i&&qs(this,i)}},mouseup:function(n){eL(this,n)}};function eL(n,e){if(n._dragging){c_(e);var t=e.offsetX,r=e.offsetY,i=n.group.transformCoordToLocal(t,r),o=QD(n,e,i,!0);n._dragging=!1,n._track=[],n._creatingCover=null,o&&qs(n,o)}}function oU(n,e,t){var r=n._zr;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}var Gf={lineX:nL(0),lineY:nL(1),rect:{createCover:function(n,e){function t(r){return r}return qD({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=ZD(n);return YD(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){KD(n,e,t,r)},updateCommon:a_,contain:h_},polygon:{createCover:function(n,e){var t=new jt;return t.add(new er({name:"main",style:s_(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new tr({name:"main",draggable:!0,drift:qt(eU,n,e),ondragend:qt(qs,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:u_(n,e,t)})},updateCommon:a_,contain:h_}};function nL(n){return{createCover:function(e,t){return qD({toRectRange:function(r){var i=[r,[0,100]];return n&&i.reverse(),i},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=ZD(e),r=Ih(t[0][n],t[1][n]),i=uu(t[0][n],t[1][n]);return[r,i]},updateCoverShape:function(e,t,r,i){var o,a=XD(e,t);if(a!==Zs&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(n);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,o];n&&l.reverse(),KD(e,t,l,i)},updateCommon:a_,contain:h_}}function rL(n){return n=p_(n),function(e){return US(e,n)}}function iL(n,e){return n=p_(n),function(t){var r=e??t,i=r?n.width:n.height,o=r?n.x:n.y;return[o,o+(i||0)]}}function oL(n,e,t){var r=p_(n);return function(i,o){return r.contain(o[0],o[1])&&!Tf(i,e,t)}}function p_(n){return Qt.create(n)}var aU=["axisLine","axisTickLabel","axisName"],sU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new e_(r.getZr())).on("brush",At(this._onBrush,this))},e.prototype.render=function(t,r,i,o){if(!lU(t,r,o)){this.axisModel=t,this.api=i,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new jt,this.group.add(this._axisGroup),!!t.get("show")){var s=cU(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,h=t.axis.dim,d=l.getAxisLayout(h),f=lt({strokeContainThreshold:c},d),g=new or(t,f);R(aU,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(f,u,t,s,c,i),wc(a,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,i,o,a,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),h=Qt.create({x:l[0],y:-a/2,width:u,height:a});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:rL(h),isTargetByCursor:oL(h,s,o),getLinearBrushOtherExtent:iL(h,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(uU(i))},e.prototype._onBrush=function(t){var r=t.areas,i=this.axisModel,o=i.axis,a=pt(r,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(He);function lU(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function uU(n){var e=n.axis;return pt(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function cU(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}var hU={type:"axisAreaSelect",event:"axisAreaSelected"};function pU(n){n.registerAction(hU,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var dU={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function aL(n){n.registerComponentView(E9),n.registerComponentModel(O9),n.registerCoordinateSystem("parallel",H9),n.registerPreprocessor(D9),n.registerComponentModel(t_),n.registerComponentView(sU),ru(n,"parallel",t_,dU),pU(n)}function fU(n){ie(aL),n.registerChartView(w9),n.registerSeriesModel(I9),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,k9)}var gU=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),vU=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new gU},e.prototype.buildPath=function(t,r){var i=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+i,r.y2),t.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(t.lineTo(r.x2,r.y2+i),t.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),t.closePath()},e.prototype.highlight=function(){xo(this)},e.prototype.downplay=function(){bo(this)},e}(ae),yU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,i){var o=this,a=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,h=t.getData(),d=t.getData("edge"),f=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(g){var y=new vU,_=Ut(y);_.dataIndex=g.dataIndex,_.seriesIndex=t.seriesIndex,_.dataType="edge";var v=g.getModel(),p=v.getModel("lineStyle"),x=p.get("curveness"),b=g.node1.getLayout(),S=g.node1.getModel(),M=S.get("localX"),I=S.get("localY"),C=g.node2.getLayout(),A=g.node2.getModel(),D=A.get("localX"),N=A.get("localY"),L=g.getLayout(),E,k,z,F,W,q,j,J;y.shape.extent=Math.max(1,L.dy),y.shape.orient=f,f==="vertical"?(E=(M!=null?M*u:b.x)+L.sy,k=(I!=null?I*c:b.y)+b.dy,z=(D!=null?D*u:C.x)+L.ty,F=N!=null?N*c:C.y,W=E,q=k*(1-x)+F*x,j=z,J=k*x+F*(1-x)):(E=(M!=null?M*u:b.x)+b.dx,k=(I!=null?I*c:b.y)+L.sy,z=D!=null?D*u:C.x,F=(N!=null?N*c:C.y)+L.ty,W=E*(1-x)+z*x,q=k,j=E*x+z*(1-x),J=F),y.setShape({x1:E,y1:k,x2:z,y2:F,cpx1:W,cpy1:q,cpx2:j,cpy2:J}),y.useStyle(p.getItemStyle()),sL(y.style,f,g);var H=""+v.get("value"),K=_n(v,"edgeLabel");Nn(y,K,{labelFetcher:{getFormattedLabel:function(ot,Rt,Jt,wt,xt,Ot){return t.getFormattedLabel(ot,Rt,"edge",wt,Pr(xt,K.normal&&K.normal.get("formatter"),H),Ot)}},labelDataIndex:g.dataIndex,defaultText:H}),y.setTextConfig({position:"inside"});var ut=v.getModel("emphasis");Ln(y,v,"lineStyle",function(ot){var Rt=ot.getItemStyle();return sL(Rt,f,g),Rt}),s.add(y),d.setItemGraphicEl(g.dataIndex,y);var at=ut.get("focus");Ze(y,at==="adjacency"?g.getAdjacentDataIndices():at==="trajectory"?g.getTrajectoryDataIndices():at,ut.get("blurScope"),ut.get("disabled"))}),a.eachNode(function(g){var y=g.getLayout(),_=g.getModel(),v=_.get("localX"),p=_.get("localY"),x=_.getModel("emphasis"),b=_.get(["itemStyle","borderRadius"])||0,S=new fe({shape:{x:v!=null?v*u:y.x,y:p!=null?p*c:y.y,width:y.dx,height:y.dy,r:b},style:_.getModel("itemStyle").getItemStyle(),z2:10});Nn(S,_n(_),{labelFetcher:{getFormattedLabel:function(I,C){return t.getFormattedLabel(I,C,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),S.disableLabelAnimation=!0,S.setStyle("fill",g.getVisual("color")),S.setStyle("decal",g.getVisual("style").decal),Ln(S,_),s.add(S),h.setItemGraphicEl(g.dataIndex,S),Ut(S).dataType="node";var M=x.get("focus");Ze(S,M==="adjacency"?g.getAdjacentDataIndices():M==="trajectory"?g.getTrajectoryDataIndices():M,x.get("blurScope"),x.get("disabled"))}),h.eachItemGraphicEl(function(g,y){var _=h.getItemModel(y);_.get("draggable")&&(g.drift=function(v,p){o._focusAdjacencyDisabled=!0,this.shape.x+=v,this.shape.y+=p,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(y),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){o._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(mU(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Pe);function sL(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),i=t.node2.getVisual("color");Tt(r)&&Tt(i)&&(n.fill=new xc(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function mU(n,e,t){var r=new fe({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return We(r,{shape:{width:n.width+20}},e,t),r}var _U=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var i=t.edges||t.links||[],o=t.data||t.nodes||[],a=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<a.length;l++)if(a[l].depth!=null&&a[l].depth>=0)s[a[l].depth]=new ke(a[l],this,r);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");var u=ND(o,i,this,!0,c);return u.data;function c(h,d){h.wrapMethod("getItemModel",function(f,g){var y=f.parentModel,_=y.getData().getItemLayout(g);if(_){var v=_.depth,p=y.levelModels[v];p&&(f.parentModel=p)}return f}),d.wrapMethod("getItemModel",function(f,g){var y=f.parentModel,_=y.getGraph().getEdgeByIndex(g),v=_.node1.getLayout();if(v){var p=v.depth,x=y.levelModels[p];x&&(f.parentModel=x)}return f})}},e.prototype.setNodePosition=function(t,r){var i=this.option.data||this.option.nodes,o=i[t];o.localX=r[0],o.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,i){function o(f){return isNaN(f)||f==null}if(i==="edge"){var a=this.getDataParams(t,i),s=a.data,l=a.value,u=s.source+" -- "+s.target;return xn("nameValue",{name:u,value:l,noValue:o(l)})}else{var c=this.getGraph().getNodeByIndex(t),h=c.getLayout().value,d=this.getDataParams(t,i).data.name;return xn("nameValue",{name:d!=null?d+"":null,value:h,noValue:o(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var i=n.prototype.getDataParams.call(this,t,r);if(i.value==null&&r==="node"){var o=this.getGraph().getNodeByIndex(t),a=o.getLayout().value;i.value=a}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Ve);function xU(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),i=t.get("nodeGap"),o=bU(t,e);t.layoutInfo=o;var a=o.width,s=o.height,l=t.getGraph(),u=l.nodes,c=l.edges;SU(u);var h=Me(u,function(y){return y.getLayout().value===0}),d=h.length!==0?0:t.get("layoutIterations"),f=t.get("orient"),g=t.get("nodeAlign");wU(u,c,r,i,a,s,d,f,g)})}function bU(n,e){return dn(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wU(n,e,t,r,i,o,a,s,l){MU(n,e,t,i,o,s,l),AU(n,e,o,i,r,a,s),zU(n,s)}function SU(n){R(n,function(e){var t=ba(e.outEdges,Wf),r=ba(e.inEdges,Wf),i=e.getValue()||0,o=Math.max(t,r,i);e.setLayout({value:o},!0)})}function MU(n,e,t,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(var d=0;d<n.length;d++)l[d]=n[d].inEdges.length,l[d]===0&&u.push(n[d]);for(var f=-1;u.length;){for(var g=0;g<u.length;g++){var y=u[g],_=y.hostGraph.data.getRawDataItem(y.dataIndex),v=_.depth!=null&&_.depth>=0;v&&_.depth>f&&(f=_.depth),y.setLayout({depth:v?_.depth:h},!0),o==="vertical"?y.setLayout({dy:t},!0):y.setLayout({dx:t},!0);for(var p=0;p<y.outEdges.length;p++){var x=y.outEdges[p],b=e.indexOf(x);s[b]=0;var S=x.node2,M=n.indexOf(S);--l[M]===0&&c.indexOf(S)<0&&c.push(S)}}++h,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var I=f>h-1?f:h-1;a&&a!=="left"&&IU(n,a,o,I);var C=o==="vertical"?(i-t)/I:(r-t)/I;CU(n,C,o)}function lL(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function IU(n,e,t,r){if(e==="right"){for(var i=[],o=n,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}R(n,function(h){lL(h)||h.setLayout({depth:Math.max(0,r-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&TU(n,r)}function TU(n,e){R(n,function(t){!lL(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function CU(n,e,t){R(n,function(r){var i=r.getLayout().depth*e;t==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function AU(n,e,t,r,i,o,a){var s=kU(n,a);DU(s,e,t,r,i,a),d_(s,i,t,r,a);for(var l=1;o>0;o--)l*=.99,LU(s,l,a),d_(s,i,t,r,a),OU(s,l,a),d_(s,i,t,r,a)}function kU(n,e){var t=[],r=e==="vertical"?"y":"x",i=Sy(n,function(o){return o.getLayout()[r]});return i.keys.sort(function(o,a){return o-a}),R(i.keys,function(o){t.push(i.buckets.get(o))}),t}function DU(n,e,t,r,i,o){var a=1/0;R(n,function(s){var l=s.length,u=0;R(s,function(h){u+=h.getLayout().value});var c=o==="vertical"?(r-(l-1)*i)/u:(t-(l-1)*i)/u;c<a&&(a=c)}),R(n,function(s){R(s,function(l,u){var c=l.getLayout().value*a;o==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),R(e,function(s){var l=+s.getValue()*a;s.setLayout({dy:l},!0)})}function d_(n,e,t,r,i){var o=i==="vertical"?"x":"y";R(n,function(a){a.sort(function(y,_){return y.getLayout()[o]-_.getLayout()[o]});for(var s,l,u,c=0,h=a.length,d=i==="vertical"?"dx":"dy",f=0;f<h;f++)l=a[f],u=c-l.getLayout()[o],u>0&&(s=l.getLayout()[o]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]+l.getLayout()[d]+e;var g=i==="vertical"?r:t;if(u=c-e-g,u>0){s=l.getLayout()[o]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var f=h-2;f>=0;--f)l=a[f],u=l.getLayout()[o]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[o]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]}})}function LU(n,e,t){R(n.slice().reverse(),function(r){R(r,function(i){if(i.outEdges.length){var o=ba(i.outEdges,NU,t)/ba(i.outEdges,Wf);if(isNaN(o)){var a=i.outEdges.length;o=a?ba(i.outEdges,PU,t)/a:0}if(t==="vertical"){var s=i.getLayout().x+(o-xa(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-xa(i,t))*e;i.setLayout({y:l},!0)}}})})}function NU(n,e){return xa(n.node2,e)*n.getValue()}function PU(n,e){return xa(n.node2,e)}function EU(n,e){return xa(n.node1,e)*n.getValue()}function RU(n,e){return xa(n.node1,e)}function xa(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function Wf(n){return n.getValue()}function ba(n,e,t){for(var r=0,i=n.length,o=-1;++o<i;){var a=+e(n[o],t);isNaN(a)||(r+=a)}return r}function OU(n,e,t){R(n,function(r){R(r,function(i){if(i.inEdges.length){var o=ba(i.inEdges,EU,t)/ba(i.inEdges,Wf);if(isNaN(o)){var a=i.inEdges.length;o=a?ba(i.inEdges,RU,t)/a:0}if(t==="vertical"){var s=i.getLayout().x+(o-xa(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-xa(i,t))*e;i.setLayout({y:l},!0)}}})})}function zU(n,e){var t=e==="vertical"?"x":"y";R(n,function(r){r.outEdges.sort(function(i,o){return i.node2.getLayout()[t]-o.node2.getLayout()[t]}),r.inEdges.sort(function(i,o){return i.node1.getLayout()[t]-o.node1.getLayout()[t]})}),R(n,function(r){var i=0,o=0;R(r.outEdges,function(a){a.setLayout({sy:i},!0),i+=a.getLayout().dy}),R(r.inEdges,function(a){a.setLayout({ty:o},!0),o+=a.getLayout().dy})})}function VU(n){n.eachSeriesByType("sankey",function(e){var t=e.getGraph(),r=t.nodes,i=t.edges;if(r.length){var o=1/0,a=-1/0;R(r,function(s){var l=s.getLayout().value;l<o&&(o=l),l>a&&(a=l)}),R(r,function(s){var l=new wn({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&R(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function BU(n){n.registerChartView(yU),n.registerSeriesModel(_U),n.registerLayout(xU),n.registerVisual(VU),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var uL=function(){function n(){}return n.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},n.prototype.getInitialData=function(e,t){var r,i=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type"),l;a==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",r=o.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[c],d=u[1-c],f=[i,o],g=f[c].get("type"),y=f[1-c].get("type"),_=e.data;if(_&&l){var v=[];R(_,function(b,S){var M;ht(b)?(M=b.slice(),b.unshift(S)):ht(b.value)?(M=lt({},b),M.value=M.value.slice(),b.value.unshift(S)):M=b,v.push(M)}),e.data=v}var p=this.defaultValueDimensions,x=[{name:h,type:$d(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:$d(y),dimsDef:p.slice()}];return nu(this,{coordDimensions:x,dimensionsCount:p.length+1,encodeDefaulter:qt(IM,x,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),cL=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Ve);nn(cL,uL,!0);var FU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var o=t.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=t.get("layout")==="horizontal"?1:0;o.diff(s).add(function(u){if(o.hasValue(u)){var c=o.getItemLayout(u),h=hL(c,o,u,l,!0);o.setItemGraphicEl(u,h),a.add(h)}}).update(function(u,c){var h=s.getItemGraphicEl(c);if(!o.hasValue(u)){a.remove(h);return}var d=o.getItemLayout(u);h?(yi(h),pL(d,h,o,u)):h=hL(d,o,u,l),a.add(h),o.setItemGraphicEl(u,h)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&a.remove(c)}).execute(),this._data=o},e.prototype.remove=function(t){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(o){o&&r.remove(o)})},e.type="boxplot",e}(Pe),GU=function(){function n(){}return n}(),WU=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new GU},e.prototype.buildPath=function(t,r){var i=r.points,o=0;for(t.moveTo(i[o][0],i[o][1]),o++;o<4;o++)t.lineTo(i[o][0],i[o][1]);for(t.closePath();o<i.length;o++)t.moveTo(i[o][0],i[o][1]),o++,t.lineTo(i[o][0],i[o][1])},e}(ae);function hL(n,e,t,r,i){var o=n.ends,a=new WU({shape:{points:i?jU(o,r,n):o}});return pL(n,a,e,t,i),a}function pL(n,e,t,r,i){var o=t.hostModel,a=ms[i?"initProps":"updateProps"];a(e,{shape:{points:n.ends}},o,r),e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(r),l=s.getModel("emphasis");Ln(e,s),Ze(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function jU(n,e,t){return pt(n,function(r){return r=r.slice(),r[e]=t.initBaseline,r})}var Th=R;function HU(n){var e=UU(n);Th(e,function(t){var r=t.seriesModels;r.length&&(XU(t),Th(r,function(i,o){ZU(i,t.boxOffsetList[o],t.boxWidthList[o])}))})}function UU(n){var e=[],t=[];return n.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),o=te(t,i);o<0&&(o=t.length,t[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(r)}),e}function XU(n){var e=n.axis,t=n.seriesModels,r=t.length,i=n.boxWidthList=[],o=n.boxOffsetList=[],a=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Th(t,function(g){l=Math.max(l,g.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Th(t,function(g){var y=g.get("boxWidth");ht(y)||(y=[y,y]),a.push([Mt(y[0],s)||0,Mt(y[1],s)||0])});var c=s*.8-2,h=c/r*.3,d=(c-h*(r-1))/r,f=d/2-c/2;Th(t,function(g,y){o.push(f),f+=h+d,i.push(Math.min(Math.max(d,a[y][0]),a[y][1]))})}function ZU(n,e,t){var r=n.coordinateSystem,i=n.getData(),o=t/2,a=n.get("layout")==="horizontal"?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var h=0;h<i.count();h++){var d=i.get(u,h),f=x(d,c[2],h),g=x(d,c[0],h),y=x(d,c[1],h),_=x(d,c[3],h),v=x(d,c[4],h),p=[];b(p,y,!1),b(p,_,!0),p.push(g,y,v,_),S(p,g),S(p,v),S(p,f),i.setItemLayout(h,{initBaseline:f[s],ends:p})}function x(M,I,C){var A=i.get(I,C),D=[];D[a]=M,D[s]=A;var N;return isNaN(M)||isNaN(A)?N=[NaN,NaN]:(N=r.dataToPoint(D),N[a]+=e),N}function b(M,I,C){var A=I.slice(),D=I.slice();A[a]+=o,D[a]-=o,C?M.push(A,D):M.push(D,A)}function S(M,I){var C=I.slice(),A=I.slice();C[a]-=o,A[a]+=o,M.push(C,A)}}function qU(n,e){e=e||{};for(var t=[],r=[],i=e.boundIQR,o=i==="none"||i===0,a=0;a<n.length;a++){var s=Vr(n[a].slice()),l=_y(s,.25),u=_y(s,.5),c=_y(s,.75),h=s[0],d=s[s.length-1],f=(i??1.5)*(c-l),g=o?h:Math.max(h,l-f),y=o?d:Math.min(d,c+f),_=e.itemNameFormatter,v=Et(_)?_({value:a}):Tt(_)?_.replace("{value}",a+""):a+"";t.push([v,g,l,u,c,y]);for(var p=0;p<s.length;p++){var x=s[p];if(x<g||x>y){var b=[v,x];r.push(b)}}}return{boxData:t,outliers:r}}var KU={type:"echarts:boxplot",transform:function(n){var e=n.upstream;if(e.sourceFormat!==Fn){var t="";process.env.NODE_ENV!=="production"&&(t=Yn("source data is not applicable for this boxplot transform. Expect number[][].")),Ie(t)}var r=qU(e.getRawData(),n.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function YU(n){n.registerSeriesModel(cL),n.registerChartView(FU),n.registerLayout(HU),n.registerTransform(KU)}var JU=["itemStyle","borderColor"],$U=["itemStyle","borderColor0"],QU=["itemStyle","borderColorDoji"],tX=["itemStyle","color"],eX=["itemStyle","color0"];function f_(n,e){return e.get(n>0?tX:eX)}function g_(n,e){return e.get(n===0?QU:n>0?JU:$U)}var nX={seriesType:"candlestick",plan:jl(),performRawSeries:!0,reset:function(n,e){if(!e.isSeriesFiltered(n)){var t=n.pipelineContext.large;return!t&&{progress:function(r,i){for(var o;(o=r.next())!=null;){var a=i.getItemModel(o),s=i.getItemLayout(o).sign,l=a.getItemStyle();l.fill=f_(s,a),l.stroke=g_(s,a)||l.fill;var u=i.ensureUniqueItemVisual(o,"style");lt(u,l)}}}}}},rX=["color","borderColor"],iX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,i,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){sa(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),i=this._data,o=this.group,a=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||o.removeAll(),r.diff(i).add(function(c){if(r.hasValue(c)){var h=r.getItemLayout(c);if(s&&dL(u,h))return;var d=v_(h,c,!0);We(d,{shape:{points:h.ends}},t,c),y_(d,r,c,a),o.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,h){var d=i.getItemGraphicEl(h);if(!r.hasValue(c)){o.remove(d);return}var f=r.getItemLayout(c);if(s&&dL(u,f)){o.remove(d);return}d?(_e(d,{shape:{points:f.ends}},t,c),yi(d)):d=v_(f),y_(d,r,c,a),o.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&o.remove(h)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),fL(t,this.group);var r=t.get("clip",!0)?ih(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var i=r.getData(),o=i.getLayout("isSimpleBox"),a;(a=t.next())!=null;){var s=i.getItemLayout(a),l=v_(s);y_(l,i,a,o),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){fL(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Pe),oX=function(){function n(){}return n}(),aX=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new oX},e.prototype.buildPath=function(t,r){var i=r.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(ae);function v_(n,e,t){var r=n.ends;return new aX({shape:{points:t?sX(r,n):r},z2:100})}function dL(n,e){for(var t=!0,r=0;r<e.ends.length;r++)if(n.contain(e.ends[r][0],e.ends[r][1])){t=!1;break}return t}function y_(n,e,t,r){var i=e.getItemModel(t);n.useStyle(e.getItemVisual(t,"style")),n.style.strokeNoScale=!0,n.__simpleBox=r,Ln(n,i);var o=e.getItemLayout(t).sign;R(n.states,function(s,l){var u=i.getModel(l),c=f_(o,u),h=g_(o,u)||c,d=s.style||(s.style={});c&&(d.fill=c),h&&(d.stroke=h)});var a=i.getModel("emphasis");Ze(n,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function sX(n,e){return pt(n,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var lX=function(){function n(){}return n}(),m_=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new lX},e.prototype.buildPath=function(t,r){for(var i=r.points,o=0;o<i.length;)if(this.__sign===i[o++]){var a=i[o++];t.moveTo(a,i[o++]),t.lineTo(a,i[o++])}else o+=3},e}(ae);function fL(n,e,t,r){var i=n.getData(),o=i.getLayout("largePoints"),a=new m_({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new m_({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new m_({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),__(1,a,n),__(-1,s,n),__(0,l,n),r&&(a.incremental=!0,s.incremental=!0),t&&t.push(a,s)}function __(n,e,t,r){var i=g_(n,t)||f_(n,t),o=t.getModel("itemStyle").getItemStyle(rX);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var gL=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,i){var o=r.getItemLayout(t);return o&&i.rect(o.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Ve);nn(gL,uL,!0);function uX(n){!n||!ht(n.series)||R(n.series,function(e){Vt(e)&&e.type==="k"&&(e.type="candlestick")})}var cX={seriesType:"candlestick",plan:jl(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=hX(n,t),i=0,o=1,a=["x","y"],s=t.getDimensionIndex(t.mapDimension(a[i])),l=pt(t.mapDimensionsAll(a[o]),t.getDimensionIndex,t),u=l[0],c=l[1],h=l[2],d=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?g:f};function f(y,_){for(var v,p=_.getStore();(v=y.next())!=null;){var x=p.get(s,v),b=p.get(u,v),S=p.get(c,v),M=p.get(h,v),I=p.get(d,v),C=Math.min(b,S),A=Math.max(b,S),D=W(C,x),N=W(A,x),L=W(M,x),E=W(I,x),k=[];q(k,N,0),q(k,D,1),k.push(J(E),J(N),J(L),J(D));var z=_.getItemModel(v),F=!!z.get(["itemStyle","borderColorDoji"]);_.setItemLayout(v,{sign:vL(p,v,b,S,c,F),initBaseline:b>S?N[o]:D[o],ends:k,brushRect:j(M,I,x)})}function W(H,K){var ut=[];return ut[i]=K,ut[o]=H,isNaN(K)||isNaN(H)?[NaN,NaN]:e.dataToPoint(ut)}function q(H,K,ut){var at=K.slice(),ot=K.slice();at[i]=vd(at[i]+r/2,1,!1),ot[i]=vd(ot[i]-r/2,1,!0),ut?H.push(at,ot):H.push(ot,at)}function j(H,K,ut){var at=W(H,ut),ot=W(K,ut);return at[i]-=r/2,ot[i]-=r/2,{x:at[0],y:at[1],width:r,height:ot[1]-at[1]}}function J(H){return H[i]=vd(H[i],1),H}}function g(y,_){for(var v=Zi(y.count*4),p=0,x,b=[],S=[],M,I=_.getStore(),C=!!n.get(["itemStyle","borderColorDoji"]);(M=y.next())!=null;){var A=I.get(s,M),D=I.get(u,M),N=I.get(c,M),L=I.get(h,M),E=I.get(d,M);if(isNaN(A)||isNaN(L)||isNaN(E)){v[p++]=NaN,p+=3;continue}v[p++]=vL(I,M,D,N,c,C),b[i]=A,b[o]=L,x=e.dataToPoint(b,null,S),v[p++]=x?x[0]:NaN,v[p++]=x?x[1]:NaN,b[o]=E,x=e.dataToPoint(b,null,S),v[p++]=x?x[1]:NaN}_.setLayout("largePoints",v)}}};function vL(n,e,t,r,i,o){var a;return t>r?a=-1:t<r?a=1:a=o?0:e>0?n.get(i,e-1)<=r?1:-1:1,a}function hX(n,e){var t=n.getBaseAxis(),r,i=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),o=Mt(Ht(n.get("barMaxWidth"),i),i),a=Mt(Ht(n.get("barMinWidth"),1),i),s=n.get("barWidth");return s!=null?Mt(s,i):Math.max(Math.min(i/2,o),a)}function pX(n){n.registerChartView(iX),n.registerSeriesModel(gL),n.registerPreprocessor(uX),n.registerVisual(nX),n.registerLayout(cX)}function yL(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var dX=function(n){Q(e,n);function e(t,r){var i=n.call(this)||this,o=new nh(t,r),a=new jt;return i.add(o),i.add(a),i.updateData(t,r),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,i=t.color,o=t.rippleNumber,a=this.childAt(1),s=0;s<o;s++){var l=ln(r,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/o*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),a.add(l)}yL(a,t)},e.prototype.updateEffectAnimation=function(t){for(var r=this._effectCfg,i=this.childAt(1),o=["symbolType","period","rippleScale","rippleNumber"],a=0;a<o.length;a++){var s=o[a];if(r[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}yL(i,t)},e.prototype.highlight=function(){xo(this)},e.prototype.downplay=function(){bo(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,r){var i=this,o=t.hostModel;this.childAt(0).updateData(t,r);var a=this.childAt(1),s=t.getItemModel(r),l=t.getItemVisual(r,"symbol"),u=Xl(t.getItemVisual(r,"symbolSize")),c=t.getItemVisual(r,"style"),h=c&&c.fill,d=s.getModel("emphasis");a.setScale(u),a.traverse(function(_){_.setStyle("fill",h)});var f=Ts(t.getItemVisual(r,"symbolOffset"),u);f&&(a.x=f[0],a.y=f[1]);var g=t.getItemVisual(r,"symbolRotate");a.rotation=(g||0)*Math.PI/180||0;var y={};y.showEffectOn=o.get("showEffectOn"),y.rippleScale=s.get(["rippleEffect","scale"]),y.brushType=s.get(["rippleEffect","brushType"]),y.period=s.get(["rippleEffect","period"])*1e3,y.effectOffset=r/t.count(),y.z=o.getShallow("z")||0,y.zlevel=o.getShallow("zlevel")||0,y.symbolType=l,y.color=h,y.rippleEffectColor=s.get(["rippleEffect","color"]),y.rippleNumber=s.get(["rippleEffect","number"]),y.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(y):this.startEffectAnimation(y),this._effectCfg=y):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(_){_==="emphasis"?y.showEffectOn!=="render"&&i.startEffectAnimation(y):_==="normal"&&y.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=y,Ze(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(jt),fX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new rh(dX)},e.prototype.render=function(t,r,i){var o=t.getData(),a=this._symbolDraw;a.updateData(o,{clipShape:this._getClipShape(t)}),this.group.add(a.group)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,i=r&&r.getArea&&r.getArea();return t.get("clip",!0)?i:null},e.prototype.updateTransform=function(t,r,i){var o=t.getData();this.group.dirty();var a=oh("").reset(t,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var r=t.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=D3(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Pe),gX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return To(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,r,i){return i.point(r.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Ve);function vX(n){n.registerChartView(fX),n.registerSeriesModel(gX),n.registerLayout(oh("effectScatter"))}var mL=function(n){Q(e,n);function e(t,r,i){var o=n.call(this)||this;return o.add(o.createLine(t,r,i)),o._updateEffectSymbol(t,r),o}return e.prototype.createLine=function(t,r,i){return new W1(t,r,i)},e.prototype._updateEffectSymbol=function(t,r){var i=t.getItemModel(r),o=i.getModel("effect"),a=o.get("symbolSize"),s=o.get("symbol");ht(a)||(a=[a,a]);var l=t.getItemVisual(r,"style"),u=o.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=ln(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(o.getItemStyle(["color"])),c.scaleX=a[0],c.scaleY=a[1],c.setColor(u),this._symbolType=s,this._symbolScale=a,this._updateEffectAnimation(t,o,r))},e.prototype._updateEffectAnimation=function(t,r,i){var o=this.childAt(1);if(o){var a=t.getItemLayout(i),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),h=rn(r.get("delay"),function(f){return f/t.count()*s/3});if(o.ignore=!0,this._updateAnimationPoints(o,a),c>0&&(s=this._getLineLength(o)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){o.stopAnimation();var d=void 0;Et(h)?d=h(i):d=h,o.__t>0&&(d=-s*o.__t),this._animateSymbol(o,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,i,o,a){if(r>0){t.__t=0;var s=this,l=t.animate("",o).when(a?r*2:r,{__t:a?2:1}).delay(i).during(function(){s._updateSymbolPosition(t)});o||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Zo(t.__p1,t.__cp1)+Zo(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,i){this.childAt(0).updateData(t,r,i),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,i=t.__p2,o=t.__cp1,a=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=In,c=Fv;s[0]=u(r[0],o[0],i[0],a),s[1]=u(r[1],o[1],i[1],a);var h=t.__t<1?c(r[0],o[0],i[0],a):c(i[0],o[0],r[0],1-a),d=t.__t<1?c(r[1],o[1],i[1],a):c(i[1],o[1],r[1],1-a);t.rotation=-Math.atan2(d,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Zo(l,s)*1.05,a===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Zo(r,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,r){this.childAt(0).updateLayout(t,r);var i=t.getItemModel(r).getModel("effect");this._updateEffectAnimation(t,i,r)},e}(jt),_L=function(n){Q(e,n);function e(t,r,i){var o=n.call(this)||this;return o._createPolyline(t,r,i),o}return e.prototype._createPolyline=function(t,r,i){var o=t.getItemLayout(r),a=new er({shape:{points:o}});this.add(a),this._updateCommonStl(t,r,i)},e.prototype.updateData=function(t,r,i){var o=t.hostModel,a=this.childAt(0),s={shape:{points:t.getItemLayout(r)}};_e(a,s,o,r),this._updateCommonStl(t,r,i)},e.prototype._updateCommonStl=function(t,r,i){var o=this.childAt(0),a=t.getItemModel(r),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||t.hasItemOption){var h=a.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),c=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}o.useStyle(t.getItemVisual(r,"style")),o.style.fill=null,o.style.strokeNoScale=!0;var d=o.ensureState("emphasis");d.style=s,Ze(this,l,u,c)},e.prototype.updateLayout=function(t,r){var i=this.childAt(0);i.setShape("points",t.getItemLayout(r))},e}(jt),yX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,r,i){return new _L(t,r,i)},e.prototype._updateAnimationPoints=function(t,r){this._points=r;for(var i=[0],o=0,a=1;a<r.length;a++){var s=r[a-1],l=r[a];o+=Zo(s,l),i.push(o)}if(o===0){this._length=0;return}for(var a=0;a<i.length;a++)i[a]/=o;this._offsets=i,this._length=o},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var r=t.__t<1?t.__t:2-t.__t,i=this._points,o=this._offsets,a=i.length;if(o){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,a-1);for(l=u;l>=0&&!(o[l]<=r);l--);l=Math.min(l,a-2)}else{for(l=s;l<a&&!(o[l]>r);l++);l=Math.min(l-1,a-2)}var c=(r-o[l])/(o[l+1]-o[l]),h=i[l],d=i[l+1];t.x=h[0]*(1-c)+c*d[0],t.y=h[1]*(1-c)+c*d[1];var f=t.__t<1?d[0]-h[0]:h[0]-d[0],g=t.__t<1?d[1]-h[1]:h[1]-d[1];t.rotation=-Math.atan2(g,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(mL),mX=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),_X=function(n){Q(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mX},e.prototype.buildPath=function(t,r){var i=r.segs,o=r.curveness,a;if(r.polyline)for(a=this._off;a<i.length;){var s=i[a++];if(s>0){t.moveTo(i[a++],i[a++]);for(var l=1;l<s;l++)t.lineTo(i[a++],i[a++])}}else for(a=this._off;a<i.length;){var u=i[a++],c=i[a++],h=i[a++],d=i[a++];if(t.moveTo(u,c),o>0){var f=(u+h)/2-(c-d)*o,g=(c+d)/2-(h-u)*o;t.quadraticCurveTo(f,g,h,d)}else t.lineTo(h,d)}this.incremental&&(this._off=a,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var i=this.shape,o=i.segs,a=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<o.length;){var c=o[u++];if(c>0)for(var h=o[u++],d=o[u++],f=1;f<c;f++){var g=o[u++],y=o[u++];if(ra(h,d,g,y,s,t,r))return l}l++}else for(var l=0,u=0;u<o.length;){var h=o[u++],d=o[u++],g=o[u++],y=o[u++];if(a>0){var _=(h+g)/2-(d-y)*a,v=(d+y)/2-(g-h)*a;if(U2(h,d,_,v,g,y,s,t,r))return l}else if(ra(h,d,g,y,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),o=this.getBoundingRect();if(t=i[0],r=i[1],o.contain(t,r)){var a=this.hoverDataIdx=this.findDataIndex(t,r);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.segs,o=1/0,a=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],h=i[u++];o=Math.min(c,o),s=Math.max(c,s),a=Math.min(h,a),l=Math.max(h,l)}t=this._rect=new Qt(o,a,s,l)}return t},e}(ae),xX=function(){function n(){this.group=new jt}return n.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},n.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},n.prototype.incrementalUpdate=function(e,t){var r=this._newAdded[0],i=t.getLayout("linesPoints"),o=r&&r.shape.segs;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,t),l.__startIndex=e.start}},n.prototype.remove=function(){this._clear()},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new _X({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},n.prototype._setCommon=function(e,t,r){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=t.getVisual("style");o&&o.stroke&&e.setStyle("stroke",o.stroke),e.setStyle("fill",null);var a=Ut(e);a.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){a.dataIndex=null;var l=e.hoverDataIdx;l>0&&(a.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}(),xL={seriesType:"lines",plan:jl(),reset:function(n){var e=n.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&Vn("The lines series must have a coordinate system.");return}var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(t){for(var u=0,c=i.start;c<i.end;c++)u+=n.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,d=[],c=i.start;c<i.end;c++){var f=n.getLineCoords(c,a);t&&(s[h++]=f);for(var g=0;g<f;g++)d=e.dataToPoint(a[g],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var y=o.getItemModel(c),f=n.getLineCoords(c,a),_=[];if(t)for(var v=0;v<f;v++)_.push(e.dataToPoint(a[v]));else{_[0]=e.dataToPoint(a[0]),_[1]=e.dataToPoint(a[1]);var p=y.get(["lineStyle","curveness"]);+p&&(_[2]=[(_[0][0]+_[1][0])/2-(_[0][1]-_[1][1])*p,(_[0][1]+_[1][1])/2-(_[1][0]-_[0][0])*p])}o.setItemLayout(c,_)}}}}},bX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var o=t.getData(),a=this._updateLineDraw(o,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(o);var h=t.get("clip",!0)&&ih(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var o=t.getData(),a=this._updateLineDraw(o,t);a.incrementalPrepareUpdate(o),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,i){var o=t.getData(),a=t.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=xL.reset(t,r,i);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,r){var i=this._lineDraw,o=this._showEffect(r),a=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&o&&l&&console.warn("Large lines not support effect"),(!i||o!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new xX:new j1(a?o?yX:_L:o?mL:W1),this._hasEffet=o,this._isPolyline=a,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Pe),wX=typeof Uint32Array>"u"?Array:Uint32Array,SX=typeof Float64Array>"u"?Array:Float64Array;function bL(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),n.data=pt(e,function(t){var r=[t[0].coord,t[1].coord],i={coords:r};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),xv([i,t[0],t[1]])}))}var MX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],bL(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(bL(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Gu(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Gu(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),i=r.option instanceof Array?r.option:r.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(i instanceof Array&&i.length>0&&i[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(i)+". Lines must have 2d coords array in data item.");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[t*2],o=this._flatCoordsOffset[t*2+1],a=0;a<o;a++)r[a]=r[a]||[],r[a][0]=this._flatCoords[i+a*2],r[a][1]=this._flatCoords[i+a*2+1];return o}else{for(var s=this._getCoordsFromItemModel(t),a=0;a<s.length;a++)r[a]=r[a]||[],r[a][0]=s[a][0],r[a][1]=s[a][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),ye(t[0])){for(var i=t.length,o=new wX(i),a=new SX(i),s=0,l=0,u=0,c=0;c<i;){u++;var h=t[c++];o[l++]=s+r,o[l++]=h;for(var d=0;d<h;d++){var f=t[c++],g=t[c++];if(a[s++]=f,a[s++]=g,c>i&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,l),flatCoords:a,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,r){if(process.env.NODE_ENV!=="production"){var i=Bl.get(t.coordinateSystem);if(!i)throw new Error("Unknown coordinate system "+t.coordinateSystem)}var o=new nr(["value"],this);return o.hasItemOption=!1,o.initData(t.data,[],function(a,s,l,u){if(a instanceof Array)return NaN;o.hasItemOption=!0;var c=a.value;if(c!=null)return c instanceof Array?c[u]:c}),o},e.prototype.formatTooltip=function(t,r,i){var o=this.getData(),a=o.getItemModel(t),s=a.get("name");if(s)return s;var l=a.get("fromName"),u=a.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xn("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Ve);function jf(n){return n instanceof Array||(n=[n,n]),n}var IX={seriesType:"lines",reset:function(n){var e=jf(n.get("symbol")),t=jf(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function i(o,a){var s=o.getItemModel(a),l=jf(s.getShallow("symbol",!0)),u=jf(s.getShallow("symbolSize",!0));l[0]&&o.setItemVisual(a,"fromSymbol",l[0]),l[1]&&o.setItemVisual(a,"toSymbol",l[1]),u[0]&&o.setItemVisual(a,"fromSymbolSize",u[0]),u[1]&&o.setItemVisual(a,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}};function TX(n){n.registerChartView(bX),n.registerSeriesModel(MX),n.registerLayout(xL),n.registerVisual(IX)}var CX=256,AX=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Xo.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,i,o,a){var s=this._getBrush(),l=this._getGradient(o,"inRange"),u=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),f=e.length;h.width=t,h.height=r;for(var g=0;g<f;++g){var y=e[g],_=y[0],v=y[1],p=y[2],x=i(p);d.globalAlpha=x,d.drawImage(s,_-c,v-c)}if(!h.width||!h.height)return h;for(var b=d.getImageData(0,0,h.width,h.height),S=b.data,M=0,I=S.length,C=this.minOpacity,A=this.maxOpacity,D=A-C;M<I;){var x=S[M+3]/256,N=Math.floor(x*(CX-1))*4;if(x>0){var L=a(x)?l:u;x>0&&(x=x*D+C),S[M++]=L[N],S[M++]=L[N+1],S[M++]=L[N+2],S[M++]=L[N+3]*x*256}else M+=4}return d.putImageData(b,0,0),h},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Xo.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,i=r[t]||(r[t]=new Uint8ClampedArray(256*4)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[t](s/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i},n}();function kX(n,e,t){var r=n[1]-n[0];e=pt(e,function(a){return{interval:[(a.interval[0]-n[0])/r,(a.interval[1]-n[0])/r]}});var i=e.length,o=0;return function(a){var s;for(s=o;s<i;s++){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}if(s===i)for(s=o-1;s>=0;s--){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}return s>=0&&s<i&&t[s]}}function DX(n,e){var t=n[1]-n[0];return e=[(e[0]-n[0])/t,(e[1]-n[0])/t],function(r){return r>=e[0]&&r<=e[1]}}function wL(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var LX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var o;if(r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(o=s)})}),process.env.NODE_ENV!=="production"&&!o)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var a=t.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):wL(a)&&this._renderOnGeo(a,t,o,i)},e.prototype.incrementalPrepareRender=function(t,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,i,o){var a=r.coordinateSystem;a&&(wL(a)?this.render(r,i,o):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,o,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){sa(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,i,o,a){var s=t.coordinateSystem,l=Vs(s,"cartesian2d"),u,c,h,d;if(l){var f=s.getAxis("x"),g=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(f.type==="category"&&g.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(f.onBand&&g.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=f.getBandWidth()+.5,c=g.getBandWidth()+.5,h=f.scale.getExtent(),d=g.scale.getExtent()}for(var y=this.group,_=t.getData(),v=t.getModel(["emphasis","itemStyle"]).getItemStyle(),p=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),S=_n(t),M=t.getModel("emphasis"),I=M.get("focus"),C=M.get("blurScope"),A=M.get("disabled"),D=l?[_.mapDimension("x"),_.mapDimension("y"),_.mapDimension("value")]:[_.mapDimension("time"),_.mapDimension("value")],N=i;N<o;N++){var L=void 0,E=_.getItemVisual(N,"style");if(l){var k=_.get(D[0],N),z=_.get(D[1],N);if(isNaN(_.get(D[2],N))||isNaN(k)||isNaN(z)||k<h[0]||k>h[1]||z<d[0]||z>d[1])continue;var F=s.dataToPoint([k,z]);L=new fe({shape:{x:F[0]-u/2,y:F[1]-c/2,width:u,height:c},style:E})}else{if(isNaN(_.get(D[1],N)))continue;L=new fe({z2:1,shape:s.dataToRect([_.get(D[0],N)]).contentShape,style:E})}if(_.hasItemOption){var W=_.getItemModel(N),q=W.getModel("emphasis");v=q.getModel("itemStyle").getItemStyle(),p=W.getModel(["blur","itemStyle"]).getItemStyle(),x=W.getModel(["select","itemStyle"]).getItemStyle(),b=W.get(["itemStyle","borderRadius"]),I=q.get("focus"),C=q.get("blurScope"),A=q.get("disabled"),S=_n(W)}L.shape.r=b;var j=t.getRawValue(N),J="-";j&&j[2]!=null&&(J=j[2]+""),Nn(L,S,{labelFetcher:t,labelDataIndex:N,defaultOpacity:E.opacity,defaultText:J}),L.ensureState("emphasis").style=v,L.ensureState("blur").style=p,L.ensureState("select").style=x,Ze(L,I,C,A),L.incremental=a,a&&(L.states.emphasis.hoverLayer=!0),y.add(L),_.setItemGraphicEl(N,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,r,i,o){var a=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new AX;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),h=t.getRoamTransform();c.applyTransform(h);var d=Math.max(c.x,0),f=Math.max(c.y,0),g=Math.min(c.width+c.x,o.getWidth()),y=Math.min(c.height+c.y,o.getHeight()),_=g-d,v=y-f,p=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(p,function(I,C,A){var D=t.dataToPoint([I,C]);return D[0]-=d,D[1]-=f,D.push(A),D}),b=i.getExtent(),S=i.type==="visualMap.continuous"?DX(b,i.option.range):kX(b,i.getPieceList(),i.option.selected);u.update(x,_,v,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var M=new Tn({style:{width:_,height:v,x:d,y:f,image:u.canvas},silent:!0});this.group.add(M)},e.type="heatmap",e}(Pe),NX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return To(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Bl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Ve);function PX(n){n.registerChartView(LX),n.registerSeriesModel(NX)}var EX=["itemStyle","borderWidth"],SL=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],x_=new wo,RX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),h=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:SL[+c],categoryDim:SL[1-+c]};a.diff(s).add(function(g){if(a.hasValue(g)){var y=DL(a,g),_=ML(a,g,y,d),v=LL(a,d,_);a.setItemGraphicEl(g,v),o.add(v),EL(v,d,_)}}).update(function(g,y){var _=s.getItemGraphicEl(y);if(!a.hasValue(g)){o.remove(_);return}var v=DL(a,g),p=ML(a,g,v,d),x=PL(a,p);_&&x!==_.__pictorialShapeStr&&(o.remove(_),a.setItemGraphicEl(g,null),_=null),_?WX(_,d,p):_=LL(a,d,p,!0),a.setItemGraphicEl(g,_),_.__pictorialSymbolMeta=p,o.add(_),EL(_,d,p)}).remove(function(g){var y=s.getItemGraphicEl(g);y&&NL(s,g,y.__pictorialSymbolMeta.animationModel,y)}).execute();var f=t.get("clip",!0)?ih(t.coordinateSystem,!1,t):null;return f?o.setClipPath(f):o.removeClipPath(),this._data=a,this.group},e.prototype.remove=function(t,r){var i=this.group,o=this._data;t.get("animation")?o&&o.eachItemGraphicEl(function(a){NL(o,Ut(a).dataIndex,t,a)}):i.removeAll()},e.type="pictorialBar",e}(Pe);function ML(n,e,t,r){var i=n.getItemLayout(e),o=t.get("symbolRepeat"),a=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),d={dataIndex:e,layout:i,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};OX(t,o,i,r,d),zX(n,e,i,o,a,d.boundingLength,d.pxSign,c,r,d),VX(t,d.symbolScale,u,r,d);var f=d.symbolSize,g=Ts(t.get("symbolOffset"),f);return BX(t,f,i,o,a,g,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function OX(n,e,t,r,i){var o=r.valueDim,a=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[o.wh]<=0),c;if(ht(a)){var h=[b_(s,a[0])-l,b_(s,a[1])-l];h[1]<h[0]&&h.reverse(),c=h[u]}else a!=null?c=b_(s,a)-l:e?c=r.coordSysExtent[o.index][u]-l:c=t[o.wh];i.boundingLength=c,e&&(i.repeatCutLength=t[o.wh]);var d=o.xy==="x",f=s.inverse;i.pxSign=d&&!f||!d&&f?c>=0?1:-1:c>0?1:-1}function b_(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function zX(n,e,t,r,i,o,a,s,l,u){var c=l.valueDim,h=l.categoryDim,d=Math.abs(t[h.wh]),f=n.getItemVisual(e,"symbolSize"),g;ht(f)?g=f.slice():f==null?g=["100%","100%"]:g=[f,f],g[h.index]=Mt(g[h.index],d),g[c.index]=Mt(g[c.index],r?d:Math.abs(o)),u.symbolSize=g;var y=u.symbolScale=[g[0]/s,g[1]/s];y[c.index]*=(l.isHorizontal?-1:1)*a}function VX(n,e,t,r,i){var o=n.get(EX)||0;o&&(x_.attr({scaleX:e[0],scaleY:e[1],rotation:t}),x_.updateTransform(),o/=x_.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o||0}function BX(n,e,t,r,i,o,a,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,g=h.pxSign,y=Math.max(e[f.index]+s,0),_=y;if(r){var v=Math.abs(l),p=rn(n.get("symbolMargin"),"15%")+"",x=!1;p.lastIndexOf("!")===p.length-1&&(x=!0,p=p.slice(0,p.length-1));var b=Mt(p,e[f.index]),S=Math.max(y+b*2,0),M=x?0:b*2,I=xy(r),C=I?r:RL((v+M)/S),A=v-C*y;b=A/2/(x?C:Math.max(C-1,1)),S=y+b*2,M=x?0:b*2,!I&&r!=="fixed"&&(C=u?RL((Math.abs(u)+M)/S):0),_=C*S-M,h.repeatTimes=C,h.symbolMargin=b}var D=g*(_/2),N=h.pathPosition=[];N[d.index]=t[d.wh]/2,N[f.index]=a==="start"?D:a==="end"?l-D:l/2,o&&(N[0]+=o[0],N[1]+=o[1]);var L=h.bundlePosition=[];L[d.index]=t[d.xy],L[f.index]=t[f.xy];var E=h.barRectShape=lt({},t);E[f.wh]=g*Math.max(Math.abs(t[f.wh]),Math.abs(N[f.index]+D)),E[d.wh]=t[d.wh];var k=h.clipShape={};k[d.xy]=-t[d.xy],k[d.wh]=c.ecSize[d.wh],k[f.xy]=0,k[f.wh]=t[f.wh]}function IL(n){var e=n.symbolPatternSize,t=ln(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function TL(n,e,t,r){var i=n.__pictorialBundle,o=t.symbolSize,a=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+t.symbolMargin*2;for(w_(n,function(y){y.__pictorialAnimationIndex=c,y.__pictorialRepeatTimes=u,c<u?cu(y,null,g(c),t,r):cu(y,null,{scaleX:0,scaleY:0},t,r,function(){i.remove(y)}),c++});c<u;c++){var d=IL(t);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var f=g(c);cu(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},t,r)}function g(y){var _=s.slice(),v=t.pxSign,p=y;return(t.symbolRepeatDirection==="start"?v>0:v<0)&&(p=u-1-y),_[l.index]=h*(p-u/2+.5)+s[l.index],{x:_[0],y:_[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function CL(n,e,t,r){var i=n.__pictorialBundle,o=n.__pictorialMainPath;o?cu(o,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(o=n.__pictorialMainPath=IL(t),i.add(o),cu(o,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function AL(n,e,t){var r=lt({},e.barRectShape),i=n.__pictorialBarRect;i?cu(i,null,{shape:r},e,t):(i=n.__pictorialBarRect=new fe({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,n.add(i))}function kL(n,e,t,r){if(t.symbolClip){var i=n.__pictorialClipPath,o=lt({},t.clipShape),a=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)_e(i,{shape:o},s,l);else{o[a.wh]=0,i=new fe({shape:o}),n.__pictorialBundle.setClipPath(i),n.__pictorialClipPath=i;var u={};u[a.wh]=t.clipShape[a.wh],ms[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function DL(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=FX,t.isAnimationEnabled=GX,t}function FX(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function GX(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function LL(n,e,t,r){var i=new jt,o=new jt;return i.add(o),i.__pictorialBundle=o,o.x=t.bundlePosition[0],o.y=t.bundlePosition[1],t.symbolRepeat?TL(i,e,t):CL(i,e,t),AL(i,t,r),kL(i,e,t,r),i.__pictorialShapeStr=PL(n,t),i.__pictorialSymbolMeta=t,i}function WX(n,e,t){var r=t.animationModel,i=t.dataIndex,o=n.__pictorialBundle;_e(o,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,i),t.symbolRepeat?TL(n,e,t,!0):CL(n,e,t,!0),AL(n,t,!0),kL(n,e,t,!0)}function NL(n,e,t,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];w_(r,function(a){o.push(a)}),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),R(o,function(a){aa(a,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function PL(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function w_(n,e,t){R(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function cu(n,e,t,r,i,o){e&&n.attr(e),r.symbolClip&&!i?t&&n.attr(t):t&&ms[i?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,o)}function EL(n,e,t){var r=t.dataIndex,i=t.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");w_(n,function(y){if(y instanceof Tn){var _=y.style;y.useStyle(lt({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},t.style))}else y.useStyle(t.style);var v=y.ensureState("emphasis");v.style=a,d&&(v.scaleX=y.scaleX*1.1,v.scaleY=y.scaleY*1.1),y.ensureState("blur").style=s,y.ensureState("select").style=l,u&&(y.cursor=u),y.z2=t.z2});var f=e.valueDim.posDesc[+(t.boundingLength>0)],g=n.__pictorialBarRect;g.ignoreClip=!0,Nn(g,_n(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:eu(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:f}),Ze(n,c,h,o.get("disabled"))}function RL(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}var jX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=la(ah.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(ah);function HX(n){n.registerChartView(RX),n.registerSeriesModel(jX),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,qt(YT,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,JT("pictorialBar"))}var UX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,i){var o=t.getData(),a=this,s=this.group,l=t.getLayerSeries(),u=o.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;s.x=0,s.y=c.y+h[0];function d(_){return _.name}var f=new Io(this._layersSeries||[],l,d,d),g=[];f.add(At(y,this,"add")).update(At(y,this,"update")).remove(At(y,this,"remove")).execute();function y(_,v,p){var x=a._layers;if(_==="remove"){s.remove(x[v]);return}for(var b=[],S=[],M,I=l[v].indices,C=0;C<I.length;C++){var A=o.getItemLayout(I[C]),D=A.x,N=A.y0,L=A.y;b.push(D,N),S.push(D,N+L),M=o.getItemVisual(I[C],"style")}var E,k=o.getItemLayout(I[0]),z=t.getModel("label"),F=z.get("margin"),W=t.getModel("emphasis");if(_==="add"){var q=g[v]=new jt;E=new dA({shape:{points:b,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),q.add(E),s.add(q),t.isAnimationEnabled()&&E.setClipPath(XX(E.getBoundingRect(),t,function(){E.removeClipPath()}))}else{var q=x[p];E=q.childAt(0),s.add(q),g[v]=q,_e(E,{shape:{points:b,stackedOnPoints:S}},t),yi(E)}Nn(E,_n(t),{labelDataIndex:I[C-1],defaultText:o.getName(I[C-1]),inheritColor:M.fill},{normal:{verticalAlign:"middle"}}),E.setTextConfig({position:null,local:!0});var j=E.getTextContent();j&&(j.x=k.x-F,j.y=k.y0+k.y/2),E.useStyle(M),o.setItemGraphicEl(v,E),Ln(E,t),Ze(E,W.get("focus"),W.get("blurScope"),W.get("disabled"))}this._layersSeries=l,this._layers=g},e.type="themeRiver",e}(Pe);function XX(n,e,t){var r=new fe({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return We(r,{shape:{x:n.x-50,width:n.width+100,height:n.height+20}},e,t),r}var S_=2,ZX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new lh(At(this.getData,this),At(this.getRawData,this))},e.prototype.fixData=function(t){var r=t.length,i={},o=Sy(t,function(d){return i.hasOwnProperty(d[0]+"")||(i[d[0]+""]=-1),d[2]}),a=[];o.buckets.each(function(d,f){a.push({name:f,dataList:d})});for(var s=a.length,l=0;l<s;++l){for(var u=a[l].name,c=0;c<a[l].dataList.length;++c){var h=a[l].dataList[c][0]+"";i[h]=l}for(var h in i)i.hasOwnProperty(h)&&i[h]!==l&&(i[h]=l,t[r]=[h,0,u],r++)}return t},e.prototype.getInitialData=function(t,r){for(var i=this.getReferringComponents("singleAxis",an).models[0],o=i.get("type"),a=Me(t.data,function(g){return g[2]!==void 0}),s=this.fixData(a||[]),l=[],u=this.nameMap=Lt(),c=0,h=0;h<s.length;++h)l.push(s[h][S_]),u.get(s[h][S_])||(u.set(s[h][S_],c),c++);var d=qc(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:$d(o)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new nr(d,this);return f.initData(s),f},e.prototype.getLayerSeries=function(){for(var t=this.getData(),r=t.count(),i=[],o=0;o<r;++o)i[o]=o;var a=t.mapDimension("single"),s=Sy(i,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(h,d){return t.get(a,h)-t.get(a,d)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,r,i){ht(t)||(t=t?[t]:[]);for(var o=this.getData(),a=this.getLayerSeries(),s=[],l=a.length,u,c=0;c<l;++c){for(var h=Number.MAX_VALUE,d=-1,f=a[c].indices.length,g=0;g<f;++g){var y=o.get(t[0],a[c].indices[g]),_=Math.abs(y-r);_<=h&&(u=y,h=_,d=a[c].indices[g])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,r,i){var o=this.getData(),a=o.getName(t),s=o.get(o.mapDimension("value"),t);return xn("nameValue",{name:a,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Ve);function qX(n,e){n.eachSeriesByType("themeRiver",function(t){var r=t.getData(),i=t.coordinateSystem,o={},a=i.getRect();o.rect=a;var s=t.get("boundaryGap"),l=i.getAxis();if(o.boundaryGap=s,l.orient==="horizontal"){s[0]=Mt(s[0],a.height),s[1]=Mt(s[1],a.height);var u=a.height-s[0]-s[1];OL(r,t,u)}else{s[0]=Mt(s[0],a.width),s[1]=Mt(s[1],a.width);var c=a.width-s[0]-s[1];OL(r,t,c)}r.setLayout("layoutInfo",o)})}function OL(n,e,t){if(n.count())for(var r=e.coordinateSystem,i=e.getLayerSeries(),o=n.mapDimension("single"),a=n.mapDimension("value"),s=pt(i,function(_){return pt(_.indices,function(v){var p=r.dataToPoint(n.get(o,v));return p[1]=n.get(a,v),p})}),l=KX(s),u=l.y0,c=t/l.max,h=i.length,d=i[0].indices.length,f,g=0;g<d;++g){f=u[g]*c,n.setItemLayout(i[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:f,y:s[0][g][1]*c});for(var y=1;y<h;++y)f+=s[y-1][g][1]*c,n.setItemLayout(i[y].indices[g],{layerIndex:y,x:s[y][g][0],y0:f,y:s[y][g][1]*c})}}function KX(n){for(var e=n.length,t=n[0].length,r=[],i=[],o=0,a=0;a<t;++a){for(var s=0,l=0;l<e;++l)s+=n[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<t;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<t;++c){var h=r[c]+i[c];h>o&&(o=h)}return{y0:i,max:o}}function YX(n){n.registerChartView(UX),n.registerSeriesModel(ZX),n.registerLayout(qX),n.registerProcessor(sh("themeRiver"))}var JX=2,$X=4,zL=function(n){Q(e,n);function e(t,r,i,o){var a=n.call(this)||this;a.z2=JX,a.textConfig={inside:!0},Ut(a).seriesIndex=r.seriesIndex;var s=new ge({z2:$X,silent:t.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,t,r,i,o),a}return e.prototype.updateData=function(t,r,i,o,a){this.node=r,r.piece=this,i=i||this._seriesModel,o=o||this._ecModel;var s=this;Ut(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),h=lt({},c);h.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var f=r.getVisual("decal");f&&(d.decal=ql(f,a));var g=Bs(l.getModel("itemStyle"),h,!0);lt(h,g),R($n,function(p){var x=s.ensureState(p),b=l.getModel([p,"itemStyle"]);x.style=b.getItemStyle();var S=Bs(b,h);S&&(x.shape=S)}),t?(s.setShape(h),s.shape.r=c.r0,We(s,{shape:{r:c.r}},i,r.dataIndex)):(_e(s,{shape:h},i),yi(s)),s.useStyle(d),this._updateLabel(i);var y=l.getShallow("cursor");y&&s.attr("cursor",y),this._seriesModel=i||this._seriesModel,this._ecModel=o||this._ecModel;var _=u.get("focus"),v=_==="relative"?Gu(r.getAncestorsIndices(),r.getDescendantIndices()):_==="ancestor"?r.getAncestorsIndices():_==="descendant"?r.getDescendantIndices():_;Ze(this,v,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,i=this.node.getModel(),o=i.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,u=Math.cos(l),c=Math.sin(l),h=this,d=h.getTextContent(),f=this.node.dataIndex,g=o.get("minAngle")/180*Math.PI,y=o.get("show")&&!(g!=null&&Math.abs(s)<g);d.ignore=!y,R(pc,function(v){var p=v==="normal"?i.getModel("label"):i.getModel([v,"label"]),x=v==="normal",b=x?d:d.ensureState(v),S=t.getFormattedLabel(f,v);x&&(S=S||r.node.name),b.style=ze(p,{},null,v!=="normal",!0),S&&(b.style.text=S);var M=p.get("show");M!=null&&!x&&(b.ignore=!M);var I=_(p,"position"),C=x?h:h.states[v],A=C.style.fill;C.textConfig={outsideFill:p.get("color")==="inherit"?A:null,inside:I!=="outside"};var D,N=_(p,"distance")||0,L=_(p,"align"),E=_(p,"rotate"),k=Math.PI*.5,z=Math.PI*1.5,F=br(E==="tangential"?Math.PI/2-l:l),W=F>k&&!oc(F-k)&&F<z;I==="outside"?(D=a.r+N,L=W?"right":"left"):!L||L==="center"?(s===2*Math.PI&&a.r0===0?D=0:D=(a.r+a.r0)/2,L="center"):L==="left"?(D=a.r0+N,L=W?"right":"left"):L==="right"&&(D=a.r-N,L=W?"left":"right"),b.style.align=L,b.style.verticalAlign=_(p,"verticalAlign")||"middle",b.x=D*u+a.cx,b.y=D*c+a.cy;var q=0;E==="radial"?q=br(-l)+(W?Math.PI:0):E==="tangential"?q=br(Math.PI/2-l)+(W?Math.PI:0):ye(E)&&(q=E*Math.PI/180),b.rotation=br(q)});function _(v,p){var x=v.get(p);return x??o.get(p)}d.dirtyStyle()},e}(Qn),M_="sunburstRootToNode",VL="sunburstHighlight",QX="sunburstUnhighlight";function tZ(n){n.registerAction({type:M_,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(i,o){var a=gh(e,[M_],i);if(a){var s=i.getViewRoot();s&&(e.direction=S1(s,a.node)?"rollUp":"drillDown"),i.resetViewRoot(a.node)}}}),n.registerAction({type:VL,update:"none"},function(e,t,r){e=lt({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(o){var a=gh(e,[VL],o);a&&(e.dataIndex=a.node.dataIndex)}process.env.NODE_ENV!=="production"&&on("sunburstHighlight","highlight"),r.dispatchAction(lt(e,{type:"highlight"}))}),n.registerAction({type:QX,update:"updateView"},function(e,t,r){e=lt({},e),process.env.NODE_ENV!=="production"&&on("sunburstUnhighlight","downplay"),r.dispatchAction(lt(e,{type:"downplay"}))})}var eZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,o){var a=this;this.seriesModel=t,this.api=i,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,h=t.get("renderLabelForZeroData"),d=[];u.eachNode(function(p){d.push(p)});var f=this._oldChildren||[];g(d,f),v(l,u),this._initEvents(),this._oldChildren=d;function g(p,x){if(p.length===0&&x.length===0)return;new Io(x,p,b,b).add(S).update(S).remove(qt(S,null)).execute();function b(M){return M.getId()}function S(M,I){var C=M==null?null:p[M],A=I==null?null:x[I];y(C,A)}}function y(p,x){if(!h&&p&&!p.getValue()&&(p=null),p!==l&&x!==l){if(x&&x.piece)p?(x.piece.updateData(!1,p,t,r,i),s.setItemGraphicEl(p.dataIndex,x.piece)):_(x);else if(p){var b=new zL(p,t,r,i);c.add(b),s.setItemGraphicEl(p.dataIndex,b)}}}function _(p){p&&p.piece&&(c.remove(p.piece),p.piece=null)}function v(p,x){x.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,p,t,r,i):(a.virtualPiece=new zL(p,t,r,i),c.add(a.virtualPiece)),x.piece.off("click"),a.virtualPiece.on("click",function(b){a._rootToNode(x.parentNode)})):a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,o=t.seriesModel.getViewRoot();o.eachNode(function(a){if(!i&&a.piece&&a.piece===r.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(a);else if(s==="link"){var l=a.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Ad(u,c)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:M_,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=t[0]-o.cx,s=t[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},e.type="sunburst",e}(Pe),nZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};BL(i);var o=this._levelModels=pt(t.levels||[],function(l){return new ke(l,this,r)},this),a=w1.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var h=a.getNodeByDataIndex(c),d=o[h.depth];return d&&(u.parentModel=d),u})}return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=Lf(i,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Yk(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Ve);function BL(n){var e=0;R(n.children,function(r){BL(r);var i=r.value;ht(i)&&(i=i[0]),e+=i});var t=n.value;ht(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ht(n.value)?n.value[0]=t:n.value=t}var FL=Math.PI/180;function rZ(n,e,t){e.eachSeriesByType(n,function(r){var i=r.get("center"),o=r.get("radius");ht(o)||(o=[0,o]),ht(i)||(i=[i,i]);var a=t.getWidth(),s=t.getHeight(),l=Math.min(a,s),u=Mt(i[0],a),c=Mt(i[1],s),h=Mt(o[0],l/2),d=Mt(o[1],l/2),f=-r.get("startAngle")*FL,g=r.get("minAngle")*FL,y=r.getData().tree.root,_=r.getViewRoot(),v=_.depth,p=r.get("sort");p!=null&&GL(_,p);var x=0;R(_.children,function(F){!isNaN(F.getValue())&&x++});var b=_.getValue(),S=Math.PI/(b||x)*2,M=_.depth>0,I=_.height-(M?-1:1),C=(d-h)/(I||1),A=r.get("clockwise"),D=r.get("stillShowZeroSum"),N=A?1:-1,L=function(F,W){if(F){var q=W;if(F!==y){var j=F.getValue(),J=b===0&&D?S:j*S;J<g&&(J=g),q=W+N*J;var H=F.depth-v-(M?-1:1),K=h+C*H,ut=h+C*(H+1),at=r.getLevelModel(F);if(at){var ot=at.get("r0",!0),Rt=at.get("r",!0),Jt=at.get("radius",!0);Jt!=null&&(ot=Jt[0],Rt=Jt[1]),ot!=null&&(K=Mt(ot,l/2)),Rt!=null&&(ut=Mt(Rt,l/2))}F.setLayout({angle:J,startAngle:W,endAngle:q,clockwise:A,cx:u,cy:c,r0:K,r:ut})}if(F.children&&F.children.length){var wt=0;R(F.children,function(xt){wt+=L(xt,W+wt)})}return q-W}};if(M){var E=h,k=h+C,z=Math.PI*2;y.setLayout({angle:z,startAngle:f,endAngle:f+z,clockwise:A,cx:u,cy:c,r0:E,r:k})}L(_,f)})}function GL(n,e){var t=n.children||[];n.children=iZ(t,e),t.length&&R(n.children,function(r){GL(r,e)})}function iZ(n,e){if(Et(e)){var t=pt(n,function(i,o){var a=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return a}},index:o}});return t.sort(function(i,o){return e(i.params,o.params)}),pt(t,function(i){return n[i.index]})}else{var r=e==="asc";return n.sort(function(i,o){var a=(i.getValue()-o.getValue())*(r?1:-1);return a===0?(i.dataIndex-o.dataIndex)*(r?-1:1):a})}}function oZ(n){var e={};function t(r,i,o){for(var a=r;a&&a.depth>1;)a=a.parentNode;var s=i.getColorFromPalette(a.name||a.dataIndex+"",e);return r.depth>1&&Tt(s)&&(s=Xv(s,(r.depth-1)/(o-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var i=r.getData(),o=i.tree;o.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(a,r,o.root.height));var u=i.ensureUniqueItemVisual(a.dataIndex,"style");lt(u,l)})})}function aZ(n){n.registerChartView(eZ),n.registerSeriesModel(nZ),n.registerLayout(qt(rZ,"sunburst")),n.registerProcessor(qt(sh,"sunburst")),n.registerVisual(oZ),tZ(n)}var WL={color:"fill",borderColor:"stroke"},sZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Do=de(),lZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return To(null,this)},e.prototype.getDataParams=function(t,r,i){var o=n.prototype.getDataParams.call(this,t,r);return i&&(o.info=Do(i).info),o},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ve);function uZ(n,e){return e=e||[0,0],pt(["x","y"],function(t,r){var i=this.getAxis(t),o=e[r],a=n[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))},this)}function cZ(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:At(uZ,n)}}}function hZ(n,e){return e=e||[0,0],pt([0,1],function(t){var r=e[t],i=n[t]/2,o=[],a=[];return o[t]=r-i,a[t]=r+i,o[1-t]=a[1-t]=e[1-t],Math.abs(this.dataToPoint(o)[t]-this.dataToPoint(a)[t])},this)}function pZ(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:At(hZ,n)}}}function dZ(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,i=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-i)-t.dataToCoord(r+i))}function fZ(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:At(dZ,n)}}}function gZ(n,e){return e=e||[0,0],pt(["Radius","Angle"],function(t,r){var i="get"+t+"Axis",o=this[i](),a=e[r],s=n[r]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function vZ(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(i){var o=e.dataToRadius(i[0]),a=t.dataToAngle(i[1]),s=n.coordToPoint([o,a]);return s.push(o,a*Math.PI/180),s},size:At(gZ,n)}}}function yZ(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,i){return n.dataToPoint(r,i)}}}}var jL={};function HL(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||kt(n,"text")))}function UL(n,e,t){var r=n,i,o,a;if(e==="text")a=r;else{a={},kt(r,"text")&&(a.text=r.text),kt(r,"rich")&&(a.rich=r.rich),kt(r,"textFill")&&(a.fill=r.textFill),kt(r,"textStroke")&&(a.stroke=r.textStroke),kt(r,"fontFamily")&&(a.fontFamily=r.fontFamily),kt(r,"fontSize")&&(a.fontSize=r.fontSize),kt(r,"fontStyle")&&(a.fontStyle=r.fontStyle),kt(r,"fontWeight")&&(a.fontWeight=r.fontWeight),o={type:"text",style:a,silent:!0},i={};var s=kt(r,"textPosition");t?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),kt(r,"textPosition")&&(i.position=r.textPosition),kt(r,"textOffset")&&(i.offset=r.textOffset),kt(r,"textRotation")&&(i.rotation=r.textRotation),kt(r,"textDistance")&&(i.distance=r.textDistance)}return XL(a,n),R(a.rich,function(l){XL(l,l)}),{textConfig:i,textContent:o}}function XL(n,e){e&&(e.font=e.textFont||e.font,kt(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),kt(e,"textAlign")&&(n.align=e.textAlign),kt(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),kt(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),kt(e,"textWidth")&&(n.width=e.textWidth),kt(e,"textHeight")&&(n.height=e.textHeight),kt(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),kt(e,"textPadding")&&(n.padding=e.textPadding),kt(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),kt(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),kt(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),kt(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),kt(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),kt(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),kt(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function ZL(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var i=r.textPosition.indexOf("inside")>=0,o=n.fill||"#000";qL(r,e);var a=r.textFill==null;return i?a&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=o),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(a&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,R(e.rich,function(s){qL(s,s)}),r}function qL(n,e){e&&(kt(e,"fill")&&(n.textFill=e.fill),kt(e,"stroke")&&(n.textStroke=e.fill),kt(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),kt(e,"font")&&(n.font=e.font),kt(e,"fontStyle")&&(n.fontStyle=e.fontStyle),kt(e,"fontWeight")&&(n.fontWeight=e.fontWeight),kt(e,"fontSize")&&(n.fontSize=e.fontSize),kt(e,"fontFamily")&&(n.fontFamily=e.fontFamily),kt(e,"align")&&(n.textAlign=e.align),kt(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),kt(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),kt(e,"width")&&(n.textWidth=e.width),kt(e,"height")&&(n.textHeight=e.height),kt(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),kt(e,"padding")&&(n.textPadding=e.padding),kt(e,"borderColor")&&(n.textBorderColor=e.borderColor),kt(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),kt(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),kt(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),kt(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),kt(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),kt(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),kt(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),kt(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),kt(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),kt(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}function KL(n,e){if(process.env.NODE_ENV!=="production"){var t=n+"^_^"+e;jL[t]||(console.warn('[ECharts] DEPRECATED: "'+n+'" has been deprecated. '+e),jL[t]=!0)}}var YL={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},JL=ue(YL),Hf=Di(Ei,function(n,e){return n[e]=1,n},{}),$L=Ei.join(", "),Uf=["","style","shape","extra"],hu=de();function I_(n,e,t,r,i){var o=n+"Animation",a=Cl(n,r,i)||{},s=hu(e).userDuring;return a.duration>0&&(a.during=s?At(wZ,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=n),lt(a,t[o]),a}function Xf(n,e,t,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=t.isAnimationEnabled(),l=hu(n),u=e.style;l.userDuring=e.during;var c={},h={};if(MZ(n,e,h),eN("shape",e,h),eN("extra",e,h),!o&&s&&(SZ(n,e,c),tN("shape",n,e,c),tN("extra",n,e,c),IZ(n,e,u,c)),h.style=u,mZ(n,h,a),xZ(n,e),s)if(o){var d={};R(Uf,function(g){var y=g?e[g]:e;y&&y.enterFrom&&(g&&(d[g]=d[g]||{}),lt(g?d[g]:d,y.enterFrom))});var f=I_("enter",n,e,t,i);f.duration>0&&n.animateFrom(d,f)}else _Z(n,e,i||0,t,c);QL(n,e),u?n.dirty():n.markRedraw()}function QL(n,e){for(var t=hu(n).leaveToProps,r=0;r<Uf.length;r++){var i=Uf[r],o=i?e[i]:e;o&&o.leaveTo&&(t||(t=hu(n).leaveToProps={}),i&&(t[i]=t[i]||{}),lt(i?t[i]:t,o.leaveTo))}}function Zf(n,e,t,r){if(n){var i=n.parent,o=hu(n).leaveToProps;if(o){var a=I_("update",n,e,t,0);a.done=function(){i.remove(n)},n.animateTo(o,a)}else i.remove(n)}}function Ks(n){return n==="all"}function mZ(n,e,t){var r=e.style;if(!n.isGroup&&r){if(t){n.useStyle({});for(var i=n.animators,o=0;o<i.length;o++){var a=i[o];a.targetName==="style"&&a.changeTarget(n.style)}}n.setStyle(r)}e.style=null,n.attr(e),e.style=r}function _Z(n,e,t,r,i){{var o=I_("update",n,e,r,t);o.duration>0&&n.animateFrom(i,o)}}function xZ(n,e){kt(e,"silent")&&(n.silent=e.silent),kt(e,"ignore")&&(n.ignore=e.ignore),n instanceof Br&&kt(e,"invisible")&&(n.invisible=e.invisible),n instanceof ae&&kt(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var Ji={},bZ={setTransform:function(n,e){return process.env.NODE_ENV!=="production"&&Bt(kt(Hf,n),"Only "+$L+" available in `setTransform`."),Ji.el[n]=e,this},getTransform:function(n){return process.env.NODE_ENV!=="production"&&Bt(kt(Hf,n),"Only "+$L+" available in `getTransform`."),Ji.el[n]},setShape:function(n,e){process.env.NODE_ENV!=="production"&&pu(n);var t=Ji.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){process.env.NODE_ENV!=="production"&&pu(n);var e=Ji.el.shape;if(e)return e[n]},setStyle:function(n,e){process.env.NODE_ENV!=="production"&&pu(n);var t=Ji.el,r=t.style;return r&&(process.env.NODE_ENV!=="production"&&Ba(e)&&Xe("style."+n+" must not be assigned with NaN."),r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){process.env.NODE_ENV!=="production"&&pu(n);var e=Ji.el.style;if(e)return e[n]},setExtra:function(n,e){process.env.NODE_ENV!=="production"&&pu(n);var t=Ji.el.extra||(Ji.el.extra={});return t[n]=e,this},getExtra:function(n){process.env.NODE_ENV!=="production"&&pu(n);var e=Ji.el.extra;if(e)return e[n]}};function pu(n){if(process.env.NODE_ENV!=="production"&&(n==="transition"||n==="enterFrom"||n==="leaveTo"))throw new Error('key must not be "'+n+'"')}function wZ(){var n=this,e=n.el;if(e){var t=hu(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}Ji.el=e,r(bZ)}}function tN(n,e,t,r){var i=t[n];if(i){var o=e[n],a;if(o){var s=t.transition,l=i.transition;if(l)if(!a&&(a=r[n]={}),Ks(l))lt(a,o);else for(var u=Ne(l),c=0;c<u.length;c++){var h=u[c],d=o[h];a[h]=d}else if(Ks(s)||te(s,n)>=0){!a&&(a=r[n]={});for(var f=ue(o),c=0;c<f.length;c++){var h=f[c],d=o[h];TZ(i[h],d)&&(a[h]=d)}}}}}function eN(n,e,t){var r=e[n];if(r)for(var i=t[n]={},o=ue(r),a=0;a<o.length;a++){var s=o[a];i[s]=Qu(r[s])}}function SZ(n,e,t){for(var r=e.transition,i=Ks(r)?Ei:Ne(r||[]),o=0;o<i.length;o++){var a=i[o];if(!(a==="style"||a==="shape"||a==="extra")){var s=n[a];process.env.NODE_ENV!=="production"&&nN(a,"el.transition"),t[a]=s}}}function MZ(n,e,t){for(var r=0;r<JL.length;r++){var i=JL[r],o=YL[i],a=e[i];a&&(t[o[0]]=a[0],t[o[1]]=a[1])}for(var r=0;r<Ei.length;r++){var s=Ei[r];e[s]!=null&&(t[s]=e[s])}}function IZ(n,e,t,r){if(t){var i=n.style,o;if(i){var a=t.transition,s=e.transition;if(a&&!Ks(a)){var l=Ne(a);!o&&(o=r.style={});for(var u=0;u<l.length;u++){var c=l[u],h=i[c];o[c]=h}}else if(n.getAnimationStyleProps&&(Ks(s)||Ks(a)||te(s,"style")>=0)){var d=n.getAnimationStyleProps(),f=d?d.style:null;if(f){!o&&(o=r.style={});for(var g=ue(t),u=0;u<g.length;u++){var c=g[u];if(f[c]){var h=i[c];o[c]=h}}}}}}}function TZ(n,e){return zn(n)?n!==e:n!=null&&isFinite(n)}var nN;process.env.NODE_ENV!=="production"&&(nN=function(n,e){kt(Hf,n)||Xe("Prop `"+n+"` is not a permitted in `"+e+"`. Only `"+ue(Hf).join("`, `")+"` are permitted.")});var rN=de(),CZ=["percent","easing","shape","style","extra"];function iN(n){n.stopAnimation("keyframe"),n.attr(rN(n))}function qf(n,e,t){if(!(!t.isAnimationEnabled()||!e)){if(ht(e)){R(e,function(s){qf(n,s,t)});return}var r=e.keyframes,i=e.duration;if(t&&i==null){var o=Cl("enter",t,0);i=o&&o.duration}if(!(!r||!i)){var a=rN(n);R(Uf,function(s){if(!(s&&!n[s])){var l,u=!1;r.sort(function(c,h){return c.percent-h.percent}),R(r,function(c){var h=n.animators,d=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!d){var f=ue(d);if(s||(f=Me(f,function(_){return te(CZ,_)<0})),!!f.length){l||(l=n.animate(s,e.loop,!0),l.scope="keyframe");for(var g=0;g<h.length;g++)h[g]!==l&&h[g].targetName===l.targetName&&h[g].stopTracks(f);s&&(a[s]=a[s]||{});var y=s?a[s]:a;R(f,function(_){y[_]=((s?n[s]:n)||{})[_]}),l.whenWithKeys(i*c.percent,d,f,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Xe("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(i).start(e.easing))}})}}}var Lo="emphasis",wa="normal",T_="blur",C_="select",Sa=[wa,Lo,T_,C_],A_={normal:["itemStyle"],emphasis:[Lo,"itemStyle"],blur:[T_,"itemStyle"],select:[C_,"itemStyle"]},k_={normal:["label"],emphasis:[Lo,"label"],blur:[T_,"label"],select:[C_,"label"]},AZ=["x","y"],kZ="e\0\0",Jr={normal:{},emphasis:{},blur:{},select:{}},oN={cartesian2d:cZ,geo:pZ,single:fZ,polar:vZ,calendar:yZ};function Kf(n){return n instanceof ae}function D_(n){return n instanceof Br}function DZ(n,e){e.copyTransform(n),D_(e)&&D_(n)&&(e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel,e.invisible=n.invisible,e.ignore=n.ignore,Kf(e)&&Kf(n)&&e.setShape(n.shape))}var LZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,o){this._progressiveEls=null;var a=this._data,s=t.getData(),l=this.group,u=sN(t,s,r,i);a||l.removeAll(),s.diff(a).add(function(h){P_(i,null,h,u(h,o),t,l,s)}).remove(function(h){var d=a.getItemGraphicEl(h);d&&Zf(d,Do(d).option,t)}).update(function(h,d){var f=a.getItemGraphicEl(d);P_(i,f,h,u(h,o),t,l,s)}).execute();var c=t.get("clip",!0)?ih(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,r,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,r,i,o,a){var s=r.getData(),l=sN(r,s,i,o),u=this._progressiveEls=[];function c(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var d=P_(null,null,h,l(h,a),r,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(t){sa(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,r,i,o){var a=r.element;if(a==null||i.name===a)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===a)return!0;return!1},e.type="custom",e}(Pe);function L_(n){var e=n.type,t;if(e==="path"){var r=n.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=pN(r);t=gd(o,null,i,r.layout||"center"),Do(t).customPathData=o}else if(e==="image")t=new Tn({}),Do(t).customImagePath=n.style.image;else if(e==="text")t=new ge({});else if(e==="group")t=new jt;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var a=am(e);if(!a){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),Ie(s)}t=new a}return Do(t).customGraphicType=e,t.name=n.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function N_(n,e,t,r,i,o,a){iN(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=AZ);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;kt(u,"textFill")&&(u.fill=u.textFill),kt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=Kf(e)?l.decal:null;n&&h&&(h.dirty=!0,c=ql(h,n)),l.__decalPattern=c}if(D_(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Xf(e,r,o,{dataIndex:t,isInit:a,clearStyle:!0}),qf(e,r.keyframeAnimation,o)}function aN(n,e,t,r,i){var o=e.isGroup?null:e,a=i&&i[n].cfg;if(o){var s=o.ensureState(n);if(r===!1){var l=o.getState(n);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),cs(o)}}function NZ(n,e,t){if(!n.isGroup){var r=n,i=t.currentZ,o=t.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;a!=null&&(r.z2=a||0);for(var s=0;s<Sa.length;s++)PZ(r,e,Sa[s])}}function PZ(n,e,t){var r=t===wa,i=r?e:Yf(e,t),o=i?i.z2:null,a;o!=null&&(a=r?n:n.ensureState(t),a.z2=o||0)}function sN(n,e,t,r){var i=n.get("renderItem"),o=n.coordinateSystem,a={};o&&(process.env.NODE_ENV!=="production"&&(Bt(i,"series.render is required."),Bt(o.prepareCustoms||oN[o.type],"This coordSys does not support custom series.")),a=o.prepareCustoms?o.prepareCustoms(o):oN[o.type](o));for(var s=Ft({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:b,style:M,ordinalRawValue:S,styleEmphasis:I,visual:D,barLayout:N,currentSeriesIndices:L,font:E},a.api||{}),l={context:{},seriesId:n.id,seriesName:n.name,seriesIndex:n.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:EZ(n.getData())},u,c,h={},d={},f={},g={},y=0;y<Sa.length;y++){var _=Sa[y];f[_]=n.getModel(A_[_]),g[_]=n.getModel(k_[_])}function v(k){return k===u?c||(c=e.getItemModel(k)):e.getItemModel(k)}function p(k,z){return e.hasItemOption?k===u?h[z]||(h[z]=v(k).getModel(A_[z])):v(k).getModel(A_[z]):f[z]}function x(k,z){return e.hasItemOption?k===u?d[z]||(d[z]=v(k).getModel(k_[z])):v(k).getModel(k_[z]):g[z]}return function(k,z){return u=k,c=null,h={},d={},i&&i(Ft({dataIndexInside:k,dataIndex:e.getRawIndex(k),actionType:z?z.type:null},l),s)};function b(k,z){return z==null&&(z=u),e.getStore().get(e.getDimensionIndex(k||0),z)}function S(k,z){z==null&&(z=u),k=k||0;var F=e.getDimensionInfo(k);if(!F){var W=e.getDimensionIndex(k);return W>=0?e.getStore().get(W,z):void 0}var q=e.get(F.name,z),j=F&&F.ordinalMeta;return j?j.categories[q]:q}function M(k,z){process.env.NODE_ENV!=="production"&&KL("api.style","Please write literal style directly instead."),z==null&&(z=u);var F=e.getItemVisual(z,"style"),W=F&&F.fill,q=F&&F.opacity,j=p(z,wa).getItemStyle();W!=null&&(j.fill=W),q!=null&&(j.opacity=q);var J={inheritColor:Tt(W)?W:"#000"},H=x(z,wa),K=ze(H,null,J,!1,!0);K.text=H.getShallow("show")?Ht(n.getFormattedLabel(z,wa),eu(e,z)):null;var ut=_d(H,J,!1);return A(k,j),j=ZL(j,K,ut),k&&C(j,k),j.legacy=!0,j}function I(k,z){process.env.NODE_ENV!=="production"&&KL("api.styleEmphasis","Please write literal style directly instead."),z==null&&(z=u);var F=p(z,Lo).getItemStyle(),W=x(z,Lo),q=ze(W,null,null,!0,!0);q.text=W.getShallow("show")?Pr(n.getFormattedLabel(z,Lo),n.getFormattedLabel(z,wa),eu(e,z)):null;var j=_d(W,null,!0);return A(k,F),F=ZL(F,q,j),k&&C(F,k),F.legacy=!0,F}function C(k,z){for(var F in z)kt(z,F)&&(k[F]=z[F])}function A(k,z){k&&(k.textFill&&(z.textFill=k.textFill),k.textPosition&&(z.textPosition=k.textPosition))}function D(k,z){if(z==null&&(z=u),kt(WL,k)){var F=e.getItemVisual(z,"style");return F?F[WL[k]]:null}if(kt(sZ,k))return e.getItemVisual(z,k)}function N(k){if(o.type==="cartesian2d"){var z=o.getBaseAxis();return MF(Ft({axis:z},k))}}function L(){return t.getCurrentSeriesIndices()}function E(k){return um(k,t)}}function EZ(n){var e={};return R(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var i=r.coordDim,o=e[i]=e[i]||[];o[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function P_(n,e,t,r,i,o,a){if(!r){o.remove(e);return}var s=E_(n,e,t,r,i,o);return s&&a.setItemGraphicEl(t,s),s&&Ze(s,r.focus,r.blurScope,r.emphasisDisabled),s}function E_(n,e,t,r,i,o){process.env.NODE_ENV!=="production"&&Bt(r,"should not have an null/undefined element setting");var a=-1,s=e;e&&lN(e,r,i)&&(a=te(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=L_(r),s&&DZ(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Jr.normal.cfg=Jr.normal.conOpt=Jr.emphasis.cfg=Jr.emphasis.conOpt=Jr.blur.cfg=Jr.blur.conOpt=Jr.select.cfg=Jr.select.conOpt=null,Jr.isLegacy=!1,OZ(u,t,r,i,l,Jr),RZ(u,t,r,i,l),N_(n,u,t,r,Jr,i,l),kt(r,"info")&&(Do(u).info=r.info);for(var c=0;c<Sa.length;c++){var h=Sa[c];if(h!==wa){var d=Yf(r,h),f=R_(r,d,h);aN(h,u,d,f,Jr)}}return NZ(u,r,i),r.type==="group"&&zZ(n,u,t,r,i),a>=0?o.replaceAt(u,a):o.add(u),u}function lN(n,e,t){var r=Do(n),i=e.type,o=e.shape,a=e.style;return t.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&GZ(o)&&pN(o)!==r.customPathData||i==="image"&&kt(a,"image")&&a.image!==r.customImagePath}function RZ(n,e,t,r,i){var o=t.clipPath;if(o===!1)n&&n.getClipPath()&&n.removeClipPath();else if(o){var a=n.getClipPath();a&&lN(a,o,r)&&(a=null),a||(a=L_(o),process.env.NODE_ENV!=="production"&&Bt(Kf(a),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),n.setClipPath(a)),N_(null,a,e,o,null,r,i)}}function OZ(n,e,t,r,i,o){if(!n.isGroup){uN(t,null,o),uN(t,Lo,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(a!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(a===!1)c&&n.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=L_(a),n.setTextContent(c)),N_(null,c,e,a,null,r,i);for(var h=a&&a.style,d=0;d<Sa.length;d++){var f=Sa[d];if(f!==wa){var g=o[f].conOpt;aN(f,c,g,R_(a,g,f),null)}}h?c.dirty():c.markRedraw()}}}}function uN(n,e,t){var r=e?Yf(n,e):n,i=e?R_(n,r,Lo):n.style,o=n.type,a=r?r.textConfig:null,s=n.textContent,l=s?e?Yf(s,e):s:null;if(i&&(t.isLegacy||HL(i,o,!!a,!!l))){t.isLegacy=!0;var u=UL(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&Bt(c.type==="text",'textContent.type must be "text"')}var h=e?t[e]:t.normal;h.cfg=a,h.conOpt=l}function Yf(n,e){return e?n?n[e]:null:n}function R_(n,e,t){var r=e&&e.style;return r==null&&t===Lo&&n&&(r=n.styleEmphasis),r}function zZ(n,e,t,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!a&&!l&&!u)){if(l){BZ({api:n,oldChildren:e.children()||[],newChildren:o||[],dataIndex:t,seriesModel:i,group:e});return}u&&e.removeAll();for(var c=0;c<a;c++){var h=o[c],d=e.childAt(c);h?(h.ignore==null&&(h.ignore=!1),E_(n,d,t,h,i,e)):(process.env.NODE_ENV!=="production"&&Bt(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var f=e.childCount()-1;f>=c;f--){var g=e.childAt(f);VZ(e,g,i)}}}function VZ(n,e,t){e&&Zf(e,Do(n).option,t)}function BZ(n){new Io(n.oldChildren,n.newChildren,cN,cN,n).add(hN).update(hN).remove(FZ).execute()}function cN(n,e){var t=n&&n.name;return t??kZ+e}function hN(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,i=e!=null?t.oldChildren[e]:null;E_(t.api,i,t.dataIndex,r,t.seriesModel,t.group)}function FZ(n){var e=this.context,t=e.oldChildren[n];t&&Zf(t,Do(t).option,e.seriesModel)}function pN(n){return n&&(n.pathData||n.d)}function GZ(n){return n&&(kt(n,"pathData")||kt(n,"d"))}function WZ(n){n.registerChartView(LZ),n.registerSeriesModel(lZ)}var Ys=de(),dN=Wt,O_=At,z_=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,i){var o=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new jt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var d=qt(fN,t,h);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,t)}yN(s,t,!0),this._renderHandle(o)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),i=e.axis,o=i.type==="category",a=t.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=i1(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,i,o){},n.prototype.createPointerEl=function(e,t,r,i){var o=t.pointer;if(o){var a=Ys(e).pointerEl=new ms[o.type](dN(t.pointer));e.add(a)}},n.prototype.createLabelEl=function(e,t,r,i){if(t.label){var o=Ys(e).labelEl=new ge(dN(t.label));e.add(o),vN(o,i)}},n.prototype.updatePointerEl=function(e,t,r){var i=Ys(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),r(i,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,i){var o=Ys(e).labelEl;o&&(o.setStyle(t.label.style),r(o,{x:t.label.x,y:t.label.y}),vN(o,i))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=t.getModel("handle"),a=t.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Sc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){co(u.event)},onmousedown:O_(this._onHandleDragMove,this,0,0),drift:O_(this._onHandleDragMove,this),ondragend:O_(this._onHandleDragEnd,this)}),r.add(i)),yN(i,t,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ht(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Hl(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){fN(this._axisPointerModel,!t&&this._moveAnimation,this._handle,V_(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(V_(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(V_(i)),Ys(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,i=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Rc(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function fN(n,e,t,r){gN(Ys(t).lastProp,r)||(Ys(t).lastProp=r,e?_e(t,r,n):(t.stopAnimation(),t.attr(r)))}function gN(n,e){if(Vt(n)&&Vt(e)){var t=!0;return R(e,function(r,i){t=t&&gN(n[i],r)}),!!t}else return n===e}function vN(n,e){n[e.get(["label","show"])?"show":"hide"]()}function V_(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function yN(n,e,t){var r=e.get("z"),i=e.get("zlevel");n&&n.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=t)})}function B_(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function mN(n,e,t,r,i){var o=t.get("value"),a=_N(o,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Rl(s.get("padding")||0),u=s.getFont(),c=nc(a,u),h=i.position,d=c.width+l[1]+l[3],f=c.height+l[0]+l[2],g=i.align;g==="right"&&(h[0]-=d),g==="center"&&(h[0]-=d/2);var y=i.verticalAlign;y==="bottom"&&(h[1]-=f),y==="middle"&&(h[1]-=f/2),jZ(h,d,f,r);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=e.get(["axisLine","lineStyle","color"])),n.label={x:h[0],y:h[1],style:ze(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function jZ(n,e,t,r){var i=r.getWidth(),o=r.getHeight();n[0]=Math.min(n[0]+e,i)-e,n[1]=Math.min(n[1]+t,o)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function _N(n,e,t,r,i){n=e.scale.parse(n);var o=e.scale.getLabel({value:n},{precision:i.precision}),a=i.formatter;if(a){var s={value:S0(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};R(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),Tt(a)?o=a.replace("{value}",o):Et(a)&&(o=a(s))}return o}function F_(n,e,t){var r=mr();return ja(r,r,t.rotation),Li(r,r,t.position),_i([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function xN(n,e,t,r,i,o){var a=or.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),mN(e,r,i,o,{position:F_(r.axis,n,t),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function G_(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function bN(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function wN(n,e,t,r,i,o){return{cx:n,cy:e,r0:t,r,startAngle:i,endAngle:o,clockwise:!0}}var HZ=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=SN(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=B_(o),f=UZ[u](s,h,c);f.style=d,t.graphicKey=f.type,t.pointer=f}var g=t1(l.model,i);xN(r,t,g,i,o,a)},e.prototype.getHandleTransform=function(t,r,i){var o=t1(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=F_(r.axis,t,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=SN(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,h=[t.x,t.y];h[c]+=r[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var d=(u[1]+u[0])/2,f=[d,d];f[c]=h[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:f,tooltipOption:g[c]}},e}(z_);function SN(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var UZ={line:function(n,e,t){var r=G_([e,t[0]],[e,t[1]],MN(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:bN([e-r/2,t[0]],[r,i],MN(n))}}};function MN(n){return n.dim==="x"?0:1}var XZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(le),No=de(),ZZ=R;function IN(n,e,t){if(!oe.node){var r=e.getZr();No(r).records||(No(r).records={}),qZ(r,e);var i=No(r).records[n]||(No(r).records[n]={});i.handler=t}}function qZ(n,e){if(No(n).initialized)return;No(n).initialized=!0,t("click",qt(TN,"click")),t("mousemove",qt(TN,"mousemove")),t("globalout",YZ);function t(r,i){n.on(r,function(o){var a=JZ(e);ZZ(No(n).records,function(s){s&&i(s,o,a.dispatchAction)}),KZ(a.pendings,e)})}}function KZ(n,e){var t=n.showTip.length,r=n.hideTip.length,i;t?i=n.showTip[t-1]:r&&(i=n.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function YZ(n,e,t){n.handler("leave",null,t)}function TN(n,e,t,r){e.handler(n,t,r)}function JZ(n){var e={showTip:[],hideTip:[]},t=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function W_(n,e){if(!oe.node){var t=e.getZr(),r=(No(t).records||{})[n];r&&(No(t).records[n]=null)}}var $Z=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var o=r.getComponent("tooltip"),a=t.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";IN("axisPointer",i,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){W_("axisPointer",r)},e.prototype.dispose=function(t,r){W_("axisPointer",r)},e.type="axisPointer",e}(He);function CN(n,e){var t=[],r=n.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=$a(o,n);if(a==null||a<0||ht(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,f=h==="x"||h==="radius"?1:0,g=o.mapDimension(d),y=[];y[f]=o.get(g,a),y[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),t=l.dataToPoint(y)||[]}else t=l.dataToPoint(o.getValues(pt(l.dimensions,function(v){return o.mapDimension(v)}),a))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),t=[_.x+_.width/2,_.y+_.height/2]}return{point:t,el:s}}var AN=de();function QZ(n,e,t){var r=n.currTrigger,i=[n.x,n.y],o=n,a=n.dispatchAction||At(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Jf(i)&&(i=CN({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Jf(i),u=o.axesInfo,c=s.axesInfo,h=r==="leave"||Jf(i),d={},f={},g={list:[],map:{}},y={showPointer:qt(eq,f),showTooltip:qt(nq,g)};R(s.coordSysMap,function(v,p){var x=l||v.containPoint(i);R(s.coordSysAxesInfo[p],function(b,S){var M=b.axis,I=aq(u,b);if(!h&&x&&(!u||I)){var C=I&&I.value;C==null&&!l&&(C=M.pointToData(i)),C!=null&&kN(b,C,y,!1,d)}})});var _={};return R(c,function(v,p){var x=v.linkGroup;x&&!f[p]&&R(x.axesInfo,function(b,S){var M=f[S];if(b!==v&&M){var I=M.value;x.mapper&&(I=v.axis.scale.parse(x.mapper(I,DN(b),DN(v)))),_[v.key]=I}})}),R(_,function(v,p){kN(c[p],v,y,!0,d)}),rq(f,c,d),iq(g,i,n,a),oq(c,a,t),d}}function kN(n,e,t,r,i){var o=n.axis;if(!(o.scale.isBlank()||!o.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var a=tq(e,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&lt(i,s[0]),!r&&n.snap&&o.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,a,l)}}function tq(n,e){var t=e.axis,r=t.dim,i=n,o=[],a=Number.MAX_VALUE,s=-1;return R(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),h,d;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(c,n,t);d=f.dataIndices,h=f.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!d.length)return;h=l.getData().get(c[0],d[0])}if(!(h==null||!isFinite(h))){var g=n-h,y=Math.abs(g);y<=a&&((y<a||g>=0&&s<0)&&(a=y,s=g,i=h,o.length=0),R(d,function(_){o.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:o,snapToValue:i}}function eq(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function nq(n,e,t,r){var i=t.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=uh(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function rq(n,e,t){var r=t.axesInfo=[];R(e,function(i,o){var a=i.axisPointerModel.option,s=n[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function iq(n,e,t,r){if(Jf(e)||!n.list.length){r({type:"hideTip"});return}var i=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:n.list})}function oq(n,e,t){var r=t.getZr(),i="axisPointerLastHighlights",o=AN(r)[i]||{},a=AN(r)[i]={};R(n,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&R(h.seriesDataIndices,function(d){var f=d.seriesIndex+" | "+d.dataIndex;a[f]=d})});var s=[],l=[];R(o,function(u,c){!a[c]&&l.push(u)}),R(a,function(u,c){!o[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function aq(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function DN(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function Jf(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function Ch(n){Fs.registerAxisPointerClass("CartesianAxisPointer",HZ),n.registerComponentModel(XZ),n.registerComponentView($Z),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!ht(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=yj(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},QZ)}function sq(n){ie(ok),ie(Ch)}var lq=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,o,a){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),h=s.dataToCoord(r),d=o.get("type");if(d&&d!=="none"){var f=B_(o),g=cq[d](s,l,h,c);g.style=f,t.graphicKey=g.type,t.pointer=g}var y=o.get(["label","margin"]),_=uq(r,i,o,l,y);mN(t,i,o,a,_)},e}(z_);function uq(n,e,t,r,i){var o=e.axis,a=o.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,h;if(o.dim==="radius"){var d=mr();ja(d,d,s),Li(d,d,[r.cx,r.cy]),u=_i([a,-i],d);var f=e.getModel("axisLabel").get("rotate")||0,g=or.innerTextLayout(s,f*Math.PI/180,-1);c=g.textAlign,h=g.textVerticalAlign}else{var y=l[1];u=r.coordToPoint([y+i,a]);var _=r.cx,v=r.cy;c=Math.abs(u[0]-_)/y<.3?"center":u[0]>_?"left":"right",h=Math.abs(u[1]-v)/y<.3?"middle":u[1]>v?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var cq={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:G_(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var i=Math.max(1,n.getBandWidth()),o=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:wN(e.cx,e.cy,r[0],r[1],(-t-i/2)*o,(-t+i/2)*o)}:{type:"Sector",shape:wN(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}},hq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,i=this.ecModel;return i.eachComponent(t,function(o){o.getCoordSysModel()===this&&(r=o)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(le),j_=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",an).models[0]},e.type="polarAxis",e}(le);nn(j_,Yc);var pq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(j_),dq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(j_),H_=function(n){Q(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(wi);H_.prototype.dataToRadius=wi.prototype.dataToCoord,H_.prototype.radiusToData=wi.prototype.coordToData;var fq=de(),U_=function(n){Q(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=nc(s==null?"":s+"",r.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)),g=fq(t.model),y=g.lastAutoInterval,_=g.lastTickCount;return y!=null&&_!=null&&Math.abs(y-f)<=1&&Math.abs(_-a)<=1&&y>f?f=y:(g.lastTickCount=a,g.lastAutoInterval=f),f},e}(wi);U_.prototype.dataToAngle=wi.prototype.dataToCoord,U_.prototype.angleToData=wi.prototype.coordToData;var LN=["radius","angle"],gq=function(){function n(e){this.dimensions=LN,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new H_,this._angleAxis=new U_,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&t.push(r),i.scale.type===e&&t.push(i),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);i.inverse?a=s-360:s=a+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=u<a?1:-1;u<a||u>s;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*t+this.cx,o=-Math.sin(r)*t+this.cy;return[i,o]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),o=Math.PI/180,a=1e-4;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,h=u*u+c*c,d=this.r,f=this.r0;return d!==f&&h-a<=d*d&&h+a>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var i=NN(t);return i===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var i=NN(t);return i===this?this.pointToData(r):null},n}();function NN(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vq(n,e,t){var r=e.get("center"),i=t.getWidth(),o=t.getHeight();n.cx=Mt(r[0],i),n.cy=Mt(r[1],o);var a=n.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");l==null?l=[0,"100%"]:ht(l)||(l=[0,l]);var u=[Mt(l[0],s),Mt(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function yq(n,e){var t=this,r=t.getAngleAxis(),i=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();R(hf(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),R(hf(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),$l(r.scale,r.model),$l(i.scale,i.model),r.type==="category"&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function mq(n){return n.mainType==="angleAxis"}function PN(n,e){var t;if(n.type=e.get("type"),n.scale=cf(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),mq(e)){n.inverse=n.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=(t=e.get("endAngle"))!==null&&t!==void 0?t:r+(n.inverse?-360:360);n.setExtent(r,i)}e.axis=n,n.model=e}var _q={dimensions:LN,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,i){var o=new gq(i+"");o.update=yq;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");PN(a,l),PN(s,u),vq(o,r,e),t.push(o),r.coordinateSystem=o,o.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",an).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+rn(r.get("polarIndex"),r.get("polarId"),0)+'" not found');r.coordinateSystem=i.coordinateSystem}}),t}},xq=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function $f(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),i=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function Qf(n){var e=n.getRadiusAxis();return e.inverse?0:1}function EN(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var bq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,o=i.polar,a=o.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=pt(i.getViewLabels(),function(c){c=Wt(c);var h=i.scale,d=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});EN(u),EN(s),R(xq,function(c){t.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&wq[c](this.group,t,o,s,l,a,u)},this)}},e.type="angleAxis",e}(Fs),wq={axisLine:function(n,e,t,r,i,o){var a=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Qf(t),h=c?0:1,d,f=Math.abs(u[1]-u[0])===360?"Circle":"Arc";o[h]===0?d=new ms[f]({shape:{cx:t.cx,cy:t.cy,r:o[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):d=new mc({shape:{cx:t.cx,cy:t.cy,r:o[c],r0:o[h]},style:a.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,n.add(d)},axisTick:function(n,e,t,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Qf(t)],u=pt(r,function(c){return new mn({shape:$f(t,[l,l+s],c.coord)})});n.add(Gr(u,{style:Ft(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Qf(t)],c=[],h=0;h<i.length;h++)for(var d=0;d<i[h].length;d++)c.push(new mn({shape:$f(t,[u,u+l],i[h][d].coord)}));n.add(Gr(c,{style:Ft(s.getModel("lineStyle").getLineStyle(),Ft(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,e,t,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");R(a,function(h,d){var f=l,g=h.tickValue,y=o[Qf(t)],_=t.coordToPoint([y+u,h.coord]),v=t.cx,p=t.cy,x=Math.abs(_[0]-v)/y<.3?"center":_[0]>v?"left":"right",b=Math.abs(_[1]-p)/y<.3?"middle":_[1]>p?"top":"bottom";if(s&&s[g]){var S=s[g];Vt(S)&&S.textStyle&&(f=new ke(S.textStyle,l,l.ecModel))}var M=new ge({silent:or.isLabelSilent(e),style:ze(f,{x:_[0],y:_[1],fill:f.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:x,verticalAlign:b})});if(n.add(M),c){var I=or.makeAxisEventDataBase(e);I.targetType="axisLabel",I.value=h.rawLabel,Ut(M).eventData=I}},this)},splitLine:function(n,e,t,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<r.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new mn({shape:$f(t,o,r[h].coord)}))}for(var h=0;h<c.length;h++)n.add(Gr(c[h],{style:Ft({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(n,e,t,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new mn({shape:$f(t,o,i[u][c].coord)}));n.add(Gr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(n,e,t,r,i,o){if(r.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-r[0].coord*h,f=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),y=e.get("clockwise"),_=1,v=r.length;_<=v;_++){var p=_===v?r[0].coord:r[_].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new Qn({shape:{cx:t.cx,cy:t.cy,r0:f,r:g,startAngle:d,endAngle:-p*h,clockwise:y},silent:!0})),d=-p*h}for(var _=0;_<c.length;_++)n.add(Gr(c[_],{style:Ft({fill:l[_%l.length]},s.getAreaStyle()),silent:!0}))}}},Sq=["axisLine","axisTickLabel","axisName"],Mq=["splitLine","splitArea","minorSplitLine"],Iq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,o=this._axisGroup=new jt;this.group.add(o);var a=t.axis,s=a.polar,l=s.getAngleAxis(),u=a.getTicksCoords(),c=a.getMinorTicksCoords(),h=l.getExtent()[0],d=a.getExtent(),f=Cq(s,t,h),g=new or(t,f);R(Sq,g.add,g),o.add(g.getGroup()),wc(i,o,t),R(Mq,function(y){t.get([y,"show"])&&!a.scale.isBlank()&&Tq[y](this.group,t,s,h,d,u,c)},this)}},e.type="radiusAxis",e}(Fs),Tq={splitLine:function(n,e,t,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),h=Math.PI/180,d=c.getExtent(),f=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],y=0;y<o.length;y++){var _=u++%l.length;g[_]=g[_]||[],g[_].push(new ms[f]({shape:{cx:t.cx,cy:t.cy,r:Math.max(o[y].coord,0),startAngle:-d[0]*h,endAngle:-d[1]*h,clockwise:c.inverse}}))}for(var y=0;y<g.length;y++)n.add(Gr(g[y],{style:Ft({stroke:l[y%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(n,e,t,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new wo({shape:{cx:t.cx,cy:t.cy,r:a[c][h].coord}}));n.add(Gr(u,{style:Ft({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(n,e,t,r,i,o){if(o.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=o[0].coord,d=1;d<o.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new Qn({shape:{cx:t.cx,cy:t.cy,r0:h,r:o[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=o[d].coord}for(var d=0;d<c.length;d++)n.add(Gr(c[d],{style:Ft({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function Cq(n,e,t){return{position:[n.cx,n.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function RN(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function ON(n,e){return e.dim+n.model.componentIndex}function Aq(n,e,t){var r={},i=kq(Me(e.getSeriesByType(n),function(o){return!e.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));e.eachSeriesByType(n,function(o){if(o.coordinateSystem.type==="polar"){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),u=ON(s,l),c=RN(o),h=i[u][c],d=h.offset,f=h.width,g=s.getOtherAxis(l),y=o.coordinateSystem.cx,_=o.coordinateSystem.cy,v=o.get("barMinHeight")||0,p=o.get("barMinAngle")||0;r[c]=r[c]||[];for(var x=a.mapDimension(g.dim),b=a.mapDimension(l.dim),S=ga(a,x),M=l.dim!=="radius"||!o.get("roundCap",!0),I=g.model,C=I.get("startValue"),A=g.dataToCoord(C||0),D=0,N=a.count();D<N;D++){var L=a.get(x,D),E=a.get(b,D),k=L>=0?"p":"n",z=A;S&&(r[c][E]||(r[c][E]={p:A,n:A}),z=r[c][E][k]);var F=void 0,W=void 0,q=void 0,j=void 0;if(g.dim==="radius"){var J=g.dataToCoord(L)-A,H=l.dataToCoord(E);Math.abs(J)<v&&(J=(J<0?-1:1)*v),F=z,W=z+J,q=H-d,j=q-f,S&&(r[c][E][k]=W)}else{var K=g.dataToCoord(L,M)-A,ut=l.dataToCoord(E);Math.abs(K)<p&&(K=(K<0?-1:1)*p),F=ut+d,W=F+f,q=z,j=z+K,S&&(r[c][E][k]=j)}a.setItemLayout(D,{cx:y,cy:_,r0:F,r:W,startAngle:-q*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:q>=j})}}})}function kq(n){var e={};R(n,function(r,i){var o=r.getData(),a=r.coordinateSystem,s=a.getBaseAxis(),l=ON(a,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/o.count(),h=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;e[l]=h;var f=RN(r);d[f]||h.autoWidthCount++,d[f]=d[f]||{width:0,maxWidth:0};var g=Mt(r.get("barWidth"),c),y=Mt(r.get("barMaxWidth"),c),_=r.get("barGap"),v=r.get("barCategoryGap");g&&!d[f].width&&(g=Math.min(h.remainedWidth,g),d[f].width=g,h.remainedWidth-=g),y&&(d[f].maxWidth=y),_!=null&&(h.gap=_),v!=null&&(h.categoryGap=v)});var t={};return R(e,function(r,i){t[i]={};var o=r.stacks,a=r.bandWidth,s=Mt(r.categoryGap,a),l=Mt(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),R(o,function(y,_){var v=y.maxWidth;v&&v<h&&(v=Math.min(v,u),y.width&&(v=Math.min(v,y.width)),u-=v,y.width=v,c--)}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d=0,f;R(o,function(y,_){y.width||(y.width=h),f=y,d+=y.width*(1+l)}),f&&(d-=f.width*l);var g=-d/2;R(o,function(y,_){t[i][_]=t[i][_]||{offset:g,width:y.width},g+=y.width*(1+l)})}),t}var Dq={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Lq={splitNumber:5},Nq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(He);function Pq(n){ie(Ch),Fs.registerAxisPointerClass("PolarAxisPointer",lq),n.registerCoordinateSystem("polar",_q),n.registerComponentModel(hq),n.registerComponentView(Nq),ru(n,"angle",pq,Dq),ru(n,"radius",dq,Lq),n.registerComponentView(bq),n.registerComponentView(Iq),n.registerLayout(qt(Aq,"bar"))}function X_(n,e){e=e||{};var t=n.coordinateSystem,r=n.axis,i={},o=r.position,a=r.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[a==="vertical"?u.vertical[o]:l[0],a==="horizontal"?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[o],n.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),rn(e.labelInside,n.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=e.rotate;return d==null&&(d=n.get(["axisLabel","rotate"])),i.labelRotation=o==="top"?-d:d,i.z2=1,i}var Eq=["axisLine","axisTickLabel","axisName"],Rq=["splitArea","splitLine"],Oq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,r,i,o){var a=this.group;a.removeAll();var s=this._axisGroup;this._axisGroup=new jt;var l=X_(t),u=new or(t,l);R(Eq,u.add,u),a.add(this._axisGroup),a.add(u.getGroup()),R(Rq,function(c){t.get([c,"show"])&&zq[c](this,this.group,this._axisGroup,t)},this),wc(s,this._axisGroup,t),n.prototype.render.call(this,t,r,i,o)},e.prototype.remove=function(){ek(this)},e.type="singleAxis",e}(Fs),zq={splitLine:function(n,e,t,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],d=0,f=i.getTicksCoords({tickModel:o}),g=[],y=[],_=0;_<f.length;++_){var v=i.toGlobalCoord(f[_].coord);c?(g[0]=v,g[1]=u.y,y[0]=v,y[1]=u.y+u.height):(g[0]=u.x,g[1]=v,y[0]=u.x+u.width,y[1]=v);var p=new mn({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0});kl(p.shape,l);var x=d++%s.length;h[x]=h[x]||[],h[x].push(p)}for(var b=a.getLineStyle(["color"]),_=0;_<h.length;++_)e.add(Gr(h[_],{style:Ft({stroke:s[_%s.length]},b),silent:!0}))}},splitArea:function(n,e,t,r){tk(n,t,r,r)}},tg=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={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}}},e}(le);nn(tg,Yc.prototype);var Vq=function(n){Q(e,n);function e(t,r,i,o,a){var s=n.call(this,t,r,i)||this;return s.type=o||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,r){return this.coordinateSystem.pointToData(t)[0]},e}(wi),zN=["single"],Bq=function(){function n(e,t,r){this.type="single",this.dimension="single",this.dimensions=zN,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var i=this.dimension,o=new Vq(i,cf(e),[0,0],e.get("type"),e.get("position")),a=o.type==="category";o.onBand=a&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},n.prototype.update=function(e,t){e.eachSeries(function(r){if(r.coordinateSystem===this){var i=r.getData();R(i.mapDimensionsAll(this.dimension),function(o){this._axis.scale.unionExtentFromData(i,o)},this),$l(this._axis.scale,this._axis.model)}},this)},n.prototype.resize=function(e,t){this._rect=dn({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},n.prototype.getRect=function(){return this._rect},n.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,r=t.isHorizontal(),i=r?[0,e.width]:[0,e.height],o=t.inverse?1:0;t.setExtent(i[o],i[1-o]),this._updateAxisTransform(t,r?e.x:e.y)},n.prototype._updateAxisTransform=function(e,t){var r=e.getExtent(),i=r[0]+r[1],o=e.isHorizontal();e.toGlobalCoord=o?function(a){return a+t}:function(a){return i-a+t},e.toLocalCoord=o?function(a){return a-t}:function(a){return i-a+t}},n.prototype.getAxis=function(){return this._axis},n.prototype.getBaseAxis=function(){return this._axis},n.prototype.getAxes=function(){return[this._axis]},n.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},n.prototype.containPoint=function(e){var t=this.getRect(),r=this.getAxis(),i=r.orient;return i==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),i=[],o=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[o]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-o]=o===0?r.y+r.height/2:r.x+r.width/2,i},n.prototype.convertToPixel=function(e,t,r){var i=VN(t);return i===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var i=VN(t);return i===this?this.pointToData(r):null},n}();function VN(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Fq(n,e){var t=[];return n.eachComponent("singleAxis",function(r,i){var o=new Bq(r,n,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,t.push(o)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",an).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),t}var Gq={create:Fq,dimensions:zN},BN=["x","y"],Wq=["width","height"],jq=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,o,a){var s=i.axis,l=s.coordinateSystem,u=Z_(l,1-eg(s)),c=l.dataToPoint(r)[0],h=o.get("type");if(h&&h!=="none"){var d=B_(o),f=Hq[h](s,c,u);f.style=d,t.graphicKey=f.type,t.pointer=f}var g=X_(i);xN(r,t,g,i,o,a)},e.prototype.getHandleTransform=function(t,r,i){var o=X_(r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=F_(r.axis,t,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,o){var a=i.axis,s=a.coordinateSystem,l=eg(a),u=Z_(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=Z_(s,1-l),d=(h[1]+h[0])/2,f=[d,d];return f[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},e}(z_),Hq={line:function(n,e,t){var r=G_([e,t[0]],[e,t[1]],eg(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),i=t[1]-t[0];return{type:"Rect",shape:bN([e-r/2,t[0]],[r,i],eg(n))}}};function eg(n){return n.isHorizontal()?0:1}function Z_(n,e){var t=n.getRect();return[t[BN[e]],t[BN[e]]+t[Wq[e]]]}var Uq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(He);function Xq(n){ie(Ch),Fs.registerAxisPointerClass("SingleAxisPointer",jq),n.registerComponentView(Uq),n.registerComponentView(Oq),n.registerComponentModel(tg),ru(n,"single",tg,tg.defaultOption),n.registerCoordinateSystem("single",Gq)}var Zq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,i){var o=Ol(t);n.prototype.init.apply(this,arguments),FN(t,o)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),FN(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(le);function FN(n,e){var t=n.cellSize,r;ht(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var i=pt([0,1],function(o){return h4(e,o)&&(r[o]="auto"),r[o]!=null&&r[o]!=="auto"});ca(n,e,{type:"box",ignoreSize:i})}var qq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var o=this.group;o.removeAll();var a=t.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,o),this._renderLines(t,s,l,o),this._renderYearText(t,s,l,o),this._renderMonthText(t,u,l,o),this._renderWeekText(t,u,s,l,o)},e.prototype._renderDayRect=function(t,r,i){for(var o=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),s=o.getCellWidth(),l=o.getCellHeight(),u=r.start.time;u<=r.end.time;u=o.getNextNDay(u,1).time){var c=o.dataToRect([u],!1).tl,h=new fe({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:a});i.add(h)}},e.prototype._renderLines=function(t,r,i,o){var a=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=r.start,d=0;h.time<=r.end.time;d++){g(h.formatedDate),d===0&&(h=s.getDateInfo(r.start.y+"-"+r.start.m));var f=h.date;f.setMonth(f.getMonth()+1),h=s.getDateInfo(f)}g(s.getNextNDay(r.end.time,1).formatedDate);function g(y){a._firstDayOfMonth.push(s.getDateInfo(y)),a._firstDayPoints.push(s.dataToRect([y],!1).tl);var _=a._getLinePointsOfOneWeek(t,y,i);a._tlpoints.push(_[0]),a._blpoints.push(_[_.length-1]),u&&a._drawSplitline(_,l,o)}u&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,c,i),l,o),u&&this._drawSplitline(a._getEdgesPoints(a._blpoints,c,i),l,o)},e.prototype._getEdgesPoints=function(t,r,i){var o=[t[0].slice(),t[t.length-1].slice()],a=i==="horizontal"?0:1;return o[0][a]=o[0][a]-r/2,o[1][a]=o[1][a]+r/2,o},e.prototype._drawSplitline=function(t,r,i){var o=new er({z2:20,shape:{points:t},style:r});i.add(o)},e.prototype._getLinePointsOfOneWeek=function(t,r,i){for(var o=t.coordinateSystem,a=o.getDateInfo(r),s=[],l=0;l<7;l++){var u=o.getNextNDay(a.time,l),c=o.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return Tt(t)&&t?l4(t,r):Et(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,i,o,a){var s=r[0],l=r[1],u=["center","bottom"];o==="bottom"?(l+=a,u=["center","top"]):o==="left"?s-=a:o==="right"?(s+=a,u=["center","top"]):l-=a;var c=0;return(o==="left"||o==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,i,o){var a=t.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,f={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],h],right:[u[d][0],h]},g=r.start.y;+r.end.y>+r.start.y&&(g=g+"-"+r.end.y);var y=a.get("formatter"),_={start:r.start.y,end:r.end.y,nameMap:g},v=this._formatterLabel(y,_),p=new ge({z2:30,style:ze(a,{text:v}),silent:a.get("silent")});p.attr(this._yearTextPositionControl(p,f[l],i,l,s)),o.add(p)}},e.prototype._monthTextPositionControl=function(t,r,i,o,a){var s="left",l="top",u=t[0],c=t[1];return i==="horizontal"?(c=c+a,r&&(s="center"),o==="start"&&(l="bottom")):(u=u+a,r&&(l="middle"),o==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,i,o){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),c=a.get("align"),h=[this._tlpoints,this._blpoints];(!s||Tt(s))&&(s&&(r=fm(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,f=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var g=c==="center",y=a.get("silent"),_=0;_<h[d].length-1;_++){var v=h[d][_].slice(),p=this._firstDayOfMonth[_];if(g){var x=this._firstDayPoints[_];v[f]=(x[f]+h[0][_+1][f])/2}var b=a.get("formatter"),S=s[+p.m-1],M={yyyy:p.y,yy:(p.y+"").slice(2),MM:p.m,M:+p.m,nameMap:S},I=this._formatterLabel(b,M),C=new ge({z2:30,style:lt(ze(a,{text:I}),this._monthTextPositionControl(v,g,i,u,l)),silent:y});o.add(C)}}},e.prototype._weekTextPositionControl=function(t,r,i,o,a){var s="center",l="middle",u=t[0],c=t[1],h=i==="start";return r==="horizontal"?(u=u+o+(h?1:-1)*a[0]/2,s=h?"right":"left"):(c=c+o+(h?1:-1)*a[1]/2,l=h?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,r,i,o,a){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),h=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||Tt(c)){c&&(r=fm(c)||r);var f=r.get(["time","dayOfWeekShort"]);c=f||pt(r.get(["time","dayOfWeekAbbr"]),function(M){return M[0]})}var g=l.getNextNDay(i.end.time,7-i.lweek).time,y=[l.getCellWidth(),l.getCellHeight()];h=Mt(h,Math.min(y[1],y[0])),u==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,h=-h);for(var _=s.get("silent"),v=0;v<7;v++){var p=l.getNextNDay(g,v),x=l.dataToRect([p.time],!1).center,b=v;b=Math.abs((v+d)%7);var S=new ge({z2:30,style:lt(ze(s,{text:c[b]}),this._weekTextPositionControl(x,o,u,h,y)),silent:_});a.add(S)}}},e.type="calendar",e}(He),q_=864e5,Kq=function(){function n(e,t,r){this.type="calendar",this.dimensions=n.dimensions,this.getDimensionsInfo=n.getDimensionsInfo,this._model=e}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(e){e=Oi(e);var t=e.getFullYear(),r=e.getMonth()+1,i=r<10?"0"+r:""+r,o=e.getDate(),a=o<10?"0"+o:""+o,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:a,day:s,time:e.getTime(),formatedDate:t+"-"+i+"-"+a,date:e}},n.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},n.prototype.update=function(e,t){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 r=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];R([0,1],function(h){c(o,h)&&(a[i[h]]=o[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=dn(a,l);R([0,1],function(h){c(o,h)||(o[h]=u[i[h]]/s[h])});function c(h,d){return h[d]!=null&&h[d]!=="auto"}this._sw=o[0],this._sh=o[1]},n.prototype.dataToPoint=function(e,t){ht(e)&&(e=e[0]),t==null&&(t=!0);var r=this.getDateInfo(e),i=this._rangeInfo,o=r.formatedDate;if(t&&!(r.time>=i.start.time&&r.time<i.end.time+q_))return[NaN,NaN];var a=r.day,s=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},n.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},n.prototype.dataToRect=function(e,t){var r=this.dataToPoint(e,t);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},n.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,t-1,i):this._getDateByWeeksAndDay(t,r-1,i)},n.prototype.convertToPixel=function(e,t,r){var i=GN(t);return i===this?i.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var i=GN(t);return i===this?i.pointToData(r):null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(ht(e)&&e.length===1&&(e=e[0]),ht(e))t=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(t=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),o=i.date;o.setMonth(o.getMonth()+1);var a=this.getNextNDay(o,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(t=[r,r])}if(!t)return process.env.NODE_ENV!=="production"&&ci("Invalid date range."),e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var i=Math.floor(t[1].time/q_)-Math.floor(t[0].time/q_)+1,o=new Date(t[0].time),a=o.getDate(),s=t[1].date.getDate();o.setDate(a+i-1);var l=o.getDate();if(l!==s)for(var u=o.getTime()-t[1].time>0?1:-1;(l=o.getDate())!==s&&(o.getTime()-t[1].time)*u>0;)i-=u,o.setDate(l-u);var c=Math.floor((i+t[0].day+6)/7),h=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:c,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var o=(e-1)*7-i.fweek+t,a=new Date(i.start.time);return a.setDate(+i.start.d+o),this.getDateInfo(a)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(i){var o=new n(i);r.push(o),i.coordinateSystem=o}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function GN(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}function Yq(n){n.registerComponentModel(Zq),n.registerComponentView(qq),n.registerCoordinateSystem("calendar",Kq)}function Jq(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function WN(n,e){var t;return R(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function $q(n,e,t){var r=lt({},t),i=n[e],o=t.$action||"merge";if(o==="merge")if(i){if(process.env.NODE_ENV!=="production"){var a=t.type;Bt(!a||i.type===a,'Please set $action: "replace" to change `type`')}Yt(i,r,!0),ca(i,r,{ignoreSize:!0}),bM(t,i),ng(t,i),ng(t,i,"shape"),ng(t,i,"style"),ng(t,i,"extra"),t.clipPath=i.clipPath}else n[e]=r;else o==="replace"?n[e]=r:o==="remove"&&i&&(n[e]=null)}var jN=["transition","enterFrom","leaveTo"],Qq=jN.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ng(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?jN:Qq,i=0;i<r.length;i++){var o=r[i];n[o]==null&&e[o]!=null&&(n[o]=e[o])}}function tK(n,e){if(n&&(n.hv=e.hv=[WN(e,["left","right"]),WN(e,["top","bottom"])],n.type==="group")){var t=n,r=e;t.width==null&&(t.width=r.width=0),t.height==null&&(t.height=r.height=0)}}var eK=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,r){var i=this.option.elements;this.option.elements=null,n.prototype.mergeOption.call(this,t,r),this.option.elements=i},e.prototype.optionUpdated=function(t,r){var i=this.option,o=(r?i:t).elements,a=i.elements=r?[]:i.elements,s=[];this._flatten(o,s,null);var l=A2(a,s,"normalMerge"),u=this._elOptionsToUpdate=[];R(l,function(c,h){var d=c.newOption;process.env.NODE_ENV!=="production"&&Bt(Vt(d)||c.existing,"Empty graphic option definition"),d&&(u.push(d),Jq(c,d),$q(a,h,d),tK(a[h],d))},this),i.elements=Me(a,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,r,i){R(t,function(o){if(o){i&&(o.parentOption=i),r.push(o);var a=o.children;a&&a.length&&this._flatten(a,r,o),delete o.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(le),HN={path:null,compoundPath:null,group:jt,image:Tn,text:ge},$r=de(),nK=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=Lt()},e.prototype.render=function(t,r,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},e.prototype._updateElements=function(t){var r=t.useElOptionsToUpdate();if(r){var i=this._elMap,o=this.group,a=t.get("z"),s=t.get("zlevel");R(r,function(l){var u=pn(l.id,null),c=u!=null?i.get(u):null,h=pn(l.parentId,null),d=h!=null?i.get(h):o,f=l.type,g=l.style;f==="text"&&g&&l.hv&&l.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var y=l.textContent,_=l.textConfig;if(g&&HL(g,f,!!_,!!y)){var v=UL(g,f,!0);!_&&v.textConfig&&(_=l.textConfig=v.textConfig),!y&&v.textContent&&(y=v.textContent)}var p=rK(l);process.env.NODE_ENV!=="production"&&c&&Bt(d===c.parent,"Changing parent is not supported.");var x=l.$action||"merge",b=x==="merge",S=x==="replace";if(b){var M=!c,I=c;M?I=UN(u,d,l.type,i):(I&&($r(I).isNew=!1),iN(I)),I&&(Xf(I,p,t,{isInit:M}),XN(I,l,a,s))}else if(S){rg(c,l,i,t);var C=UN(u,d,l.type,i);C&&(Xf(C,p,t,{isInit:!0}),XN(C,l,a,s))}else x==="remove"&&(QL(c,l),rg(c,l,i,t));var A=i.get(u);if(A&&y)if(b){var D=A.getTextContent();D?D.attr(y):A.setTextContent(new ge(y))}else S&&A.setTextContent(new ge(y));if(A){var N=l.clipPath;if(N){var L=N.type,E=void 0,M=!1;if(b){var k=A.getClipPath();M=!k||$r(k).type!==L,E=M?K_(L):k}else S&&(M=!0,E=K_(L));A.setClipPath(E),Xf(E,N,t,{isInit:M}),qf(E,N.keyframeAnimation,t)}var z=$r(A);A.setTextConfig(_),z.option=l,iK(A,t,l),ys({el:A,componentModel:t,itemName:A.name,itemTooltipOption:l.tooltip}),qf(A,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,r){for(var i=t.option.elements,o=this.group,a=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<i.length;c++){var h=i[c],d=pn(h.id,null),f=d!=null?a.get(d):null;if(!(!f||!f.isGroup)){var g=f.parent,y=g===o,_=$r(f),v=$r(g);_.width=Mt(_.option.width,y?s:v.width)||0,_.height=Mt(_.option.height,y?l:v.height)||0}}for(var c=i.length-1;c>=0;c--){var h=i[c],d=pn(h.id,null),f=d!=null?a.get(d):null;if(f){var g=f.parent,v=$r(g),p=g===o?{width:s,height:l}:{width:v.width,height:v.height},x={},b=Dd(f,h,p,null,{hv:h.hv,boundingMode:h.bounding},x);if(!$r(f).isNew&&b){for(var S=h.transition,M={},I=0;I<u.length;I++){var C=u[I],A=x[C];S&&(Ks(S)||te(S,C)>=0)?M[C]=A:f[C]=A}_e(f,M,t,0)}else f.attr(x)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(i){rg(i,$r(i).option,r,t._lastGraphicModel)}),this._elMap=Lt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(He);function K_(n){process.env.NODE_ENV!=="production"&&Bt(n,"graphic type MUST be set");var e=kt(HN,n)?HN[n]:am(n);process.env.NODE_ENV!=="production"&&Bt(e,"graphic type "+n+" can not be found");var t=new e({});return $r(t).type=n,t}function UN(n,e,t,r){var i=K_(t);return e.add(i),r.set(n,i),$r(i).id=n,$r(i).isNew=!0,i}function rg(n,e,t,r){var i=n&&n.parent;i&&(n.type==="group"&&n.traverse(function(o){rg(o,e,t,r)}),Zf(n,e,r),t.removeKey($r(n).id))}function XN(n,e,t,r){n.isGroup||R([["cursor",Br.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(i){var o=i[0];kt(e,o)?n[o]=Ht(e[o],i[1]):n[o]==null&&(n[o]=i[1])}),R(ue(e),function(i){if(i.indexOf("on")===0){var o=e[i];n[i]=Et(o)?o:null}}),kt(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function rK(n){return n=lt({},n),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(xM),function(e){delete n[e]}),n}function iK(n,e,t){var r=Ut(n).eventData;!n.silent&&!n.ignore&&!r&&(r=Ut(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function oK(n){n.registerComponentModel(eK),n.registerComponentView(nK),n.registerPreprocessor(function(e){var t=e.graphic;ht(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var ZN=["x","y","radius","angle","single"],aK=["cartesian2d","polar","singleAxis"];function sK(n){var e=n.get("coordinateSystem");return te(aK,e)>=0}function Ma(n){return process.env.NODE_ENV!=="production"&&Bt(n),n+"Axis"}function lK(n,e){var t=Lt(),r=[],i=Lt();n.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var o;do o=!1,n.eachComponent("dataZoom",a);while(o);function a(c){!i.get(c.uid)&&l(c)&&(s(c),o=!0)}function s(c){i.set(c.uid,!0),r.push(c),u(c)}function l(c){var h=!1;return c.eachTargetAxis(function(d,f){var g=t.get(d);g&&g[f]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,d){(t.get(h)||t.set(h,[]))[d]=!0})}return r}function qN(n){var e=n.ecModel,t={infoList:[],infoMap:Lt()};return n.eachTargetAxis(function(r,i){var o=e.getComponent(Ma(r),i);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=t.infoMap.get(s);l||(l={model:a,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(o)}}}),t}var Y_=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ah=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,i){var o=KN(t);this.settledOption=o,this.mergeDefaultAndTheme(t,i),this._doInit(o)},e.prototype.mergeOption=function(t){var r=KN(t);Yt(this.option,t,!0),Yt(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(r[o[0]]=i[o[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=Lt(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return R(ZN,function(i){var o=this.getReferringComponents(Ma(i),Jz);if(o.specified){r=!0;var a=new Y_;R(o.models,function(s){a.add(s.componentIndex)}),t.set(i,a)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var i=this.ecModel,o=!0;if(o){var a=r==="vertical"?"y":"x",s=i.findComponents({mainType:a+"Axis"});l(s,a)}if(o){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var h=u[0];if(h){var d=new Y_;if(d.add(h.componentIndex),t.set(c,d),o=!1,c==="x"||c==="y"){var f=h.getReferringComponents("grid",an).models[0];f&&R(u,function(g){h.componentIndex!==g.componentIndex&&f===g.getReferringComponents("grid",an).models[0]&&d.add(g.componentIndex)})}}}o&&R(ZN,function(u){if(o){var c=i.findComponents({mainType:Ma(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var h=new Y_;h.add(c[0].componentIndex),t.set(u,h),o=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,i=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],function(o,a){var s=t[o[0]]!=null,l=t[o[1]]!=null;s&&!l?r[a]="percent":!s&&l?r[a]="value":i?r[a]=i[a]:s&&(r[a]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,i){t==null&&(t=this.ecModel.getComponent(Ma(r),i))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(i,o){R(i.indexList,function(a){t.call(r,o,a)})})},e.prototype.getAxisProxy=function(t,r){var i=this.getAxisModel(t,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){process.env.NODE_ENV!=="production"&&Bt(t&&r!=null);var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[r])return this.ecModel.getComponent(Ma(t),r)},e.prototype.setRawRange=function(t){var r=this.option,i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(o){(t[o[0]]!=null||t[o[1]]!=null)&&(r[o[0]]=i[o[0]]=t[o[0]],r[o[1]]=i[o[1]]=t[o[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;R(["start","startValue","end","endValue"],function(i){r[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),o=0;o<i.length;o++)for(var a=i[o],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(a,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&Bt(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(le);function KN(n){var e={};return R(["start","end","startValue","endValue","throttle"],function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}var uK=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Ah),J_=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,o){this.dataZoomModel=t,this.ecModel=r,this.api=i},e.type="dataZoom",e}(He),cK=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(J_),du=R,YN=Vr,hK=function(){function n(e,t,r,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=r}return n.prototype.hostedBy=function(e){return this._dataZoomModel===e},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(sK(t)){var r=Ma(this._dimName),i=t.getReferringComponents(r,an).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return Wt(this._minMaxSpan)},n.prototype.calculateDataWindow=function(e){var t=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],u;du(["start","end"],function(d,f){var g=e[d],y=e[d+"Value"];o[f]==="percent"?(g==null&&(g=a[f]),y=i.parse(Ae(g,a,t))):(u=!0,y=y==null?t[f]:i.parse(y),g=Ae(y,t,a)),l[f]=y==null||isNaN(y)?t[f]:y,s[f]=g==null||isNaN(g)?a[f]:g}),YN(l),YN(s);var c=this._minMaxSpan;u?h(l,s,t,a,!1):h(s,l,a,t,!0);function h(d,f,g,y,_){var v=_?"Span":"ValueSpan";Xs(0,d,g,"all",c["min"+v],c["max"+v]);for(var p=0;p<2;p++)f[p]=Ae(d[p],g,y,!0),_&&(f[p]=i.parse(f[p]))}return{valueWindow:l,percentWindow:s}},n.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=pK(this,this._dimName,t),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),o=e.get("filterMode"),a=this._valueWindow;if(o==="none")return;du(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(o==="weakFilter"){var h=u.getStore(),d=pt(c,function(f){return u.getDimensionIndex(f)},u);u.filterSelf(function(f){for(var g,y,_,v=0;v<c.length;v++){var p=h.get(d[v],f),x=!isNaN(p),b=p<a[0],S=p>a[1];if(x&&!b&&!S)return!0;x&&(_=!0),b&&(g=!0),S&&(y=!0)}return _&&g&&y})}else du(c,function(f){if(o==="empty")l.setData(u=u.map(f,function(y){return s(y)?y:NaN}));else{var g={};g[f]=a,u.selectRange(g)}});du(c,function(f){u.setApproximateExtent(a,f)})}});function s(l){return l>=a[0]&&l<=a[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;du(["min","max"],function(i){var o=t.get(i+"Span"),a=t.get(i+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=Ae(r[0]+a,r,[0,100],!0):o!=null&&(a=Ae(o,[0,100],r,!0)-r[0]),e[i+"Span"]=o,e[i+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var i=g2(r,[0,500]);i=Math.min(i,20);var o=e.axis.scale.rawExtentInfo;t[0]!==0&&o.setDeterminedMinMax("min",+r[0].toFixed(i)),t[1]!==100&&o.setDeterminedMinMax("max",+r[1].toFixed(i)),o.freeze()}},n}();function pK(n,e,t){var r=[1/0,-1/0];du(t,function(a){XF(r,a.getData(),e)});var i=n.getAxisModel(),o=rC(i.axis.scale,i,r).calculate();return[o.min,o.max]}var dK={getTargetSeries:function(n){function e(i){n.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=n.getComponent(Ma(a),s);i(a,s,l,o)})})}e(function(i,o,a,s){a.__dzAxisProxy=null});var t=[];e(function(i,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new hK(i,o,s,n),t.push(a.__dzAxisProxy))});var r=Lt();return R(t,function(i){R(i.getTargetSeriesModels(),function(o){r.set(o.uid,o)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).reset(t)}),t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),o=r.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function fK(n){n.registerAction("dataZoom",function(e,t){var r=lK(t,e);R(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var JN=!1;function $_(n){JN||(JN=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,dK),fK(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function gK(n){n.registerComponentModel(uK),n.registerComponentView(cK),$_(n)}var Qr=function(){function n(){}return n}(),$N={};function fu(n,e){$N[n]=e}function QN(n){return $N[n]}var vK=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;R(this.option.feature,function(r,i){var o=QN(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(t)),Yt(r,o.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(le);function yK(n,e,t){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:t.getWidth(),height:t.getHeight()},a=dn(r,o,i);bs(e.get("orient"),n,e.get("itemGap"),a.width,a.height),Dd(n,r,o,i)}function tP(n,e){var t=Rl(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new fe({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var mK=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,o){var a=this.group;if(a.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),h=[];R(u,function(g,y){h.push(y)}),new Io(this._featureNames||[],h).add(d).update(d).remove(qt(d,null)).execute(),this._featureNames=h;function d(g,y){var _=h[g],v=h[y],p=u[_],x=new ke(p,t,t.ecModel),b;if(o&&o.newTitle!=null&&o.featureName===_&&(p.title=o.newTitle),_&&!v){if(_K(_))b={onclick:x.option.onclick,featureName:_};else{var S=QN(_);if(!S)return;b=new S}c[_]=b}else if(b=c[v],!b)return;b.uid=Ll("toolbox-feature"),b.model=x,b.ecModel=r,b.api=i;var M=b instanceof Qr;if(!_&&v){M&&b.dispose&&b.dispose(r,i);return}if(!x.get("show")||M&&b.unusable){M&&b.remove&&b.remove(r,i);return}f(x,b,_),x.setIconStatus=function(I,C){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[I]=C,D[I]&&(C==="emphasis"?xo:bo)(D[I])},b instanceof Qr&&b.render&&b.render(x,r,i,o)}function f(g,y,_){var v=g.getModel("iconStyle"),p=g.getModel(["emphasis","iconStyle"]),x=y instanceof Qr&&y.getIcons?y.getIcons():g.get("icon"),b=g.get("title")||{},S,M;Tt(x)?(S={},S[_]=x):S=x,Tt(b)?(M={},M[_]=b):M=b;var I=g.iconPaths={};R(S,function(C,A){var D=Sc(C,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(v.getItemStyle());var N=D.ensureState("emphasis");N.style=p.getItemStyle();var L=new ge({style:{text:M[A],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:um({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},r)},ignore:!0});D.setTextContent(L),ys({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:M[A]}}),D.__title=M[A],D.on("mouseover",function(){var E=p.getItemStyle(),k=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:p.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),D.setTextConfig({position:p.get("textPosition")||k}),L.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(g.get(["iconStatus",A])==="emphasis"?xo:bo)(D),a.add(D),D.on("click",At(y.onclick,y,r,i,A)),I[A]=D})}yK(a,t,i),a.add(tP(a.getBoundingRect(),t)),l||a.eachChild(function(g){var y=g.__title,_=g.ensureState("emphasis"),v=_.textConfig||(_.textConfig={}),p=g.getTextContent(),x=p&&p.ensureState("emphasis");if(x&&!Et(x)&&y){var b=x.style||(x.style={}),S=nc(y,ge.makeFont(b)),M=g.x+a.x,I=g.y+a.y+s,C=!1;I+S.height>i.getHeight()&&(v.position="top",C=!0);var A=C?-5-S.height:s+10;M+S.width/2>i.getWidth()?(v.position=["100%",A],b.align="right"):M-S.width/2<0&&(v.position=[0,A],b.align="left")}})},e.prototype.updateView=function(t,r,i,o){R(this._features,function(a){a instanceof Qr&&a.updateView&&a.updateView(a.model,r,i,o)})},e.prototype.remove=function(t,r){R(this._features,function(i){i instanceof Qr&&i.remove&&i.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){R(this._features,function(i){i instanceof Qr&&i.dispose&&i.dispose(t,r)})},e.type="toolbox",e}(He);function _K(n){return n.indexOf("my")===0}var xK=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var i=this.model,o=i.get("name")||t.get("title.0.text")||"echarts",a=r.getZr().painter.getType()==="svg",s=a?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=oe.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=o+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||a){var d=l.split(","),f=d[0].indexOf("base64")>-1,g=a?decodeURIComponent(d[1]):d[1];f&&(g=window.atob(g));var y=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var _=g.length,v=new Uint8Array(_);_--;)v[_]=g.charCodeAt(_);var p=new Blob([v]);window.navigator.msSaveOrOpenBlob(p,y)}else{var x=document.createElement("iframe");document.body.appendChild(x);var b=x.contentWindow,S=b.document;S.open("image/svg+xml","replace"),S.write(g),S.close(),b.focus(),S.execCommand("SaveAs",!0,y),document.body.removeChild(x)}}else{var M=i.get("lang"),I='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(M&&M[0]||"")+'" /></body>',C=window.open();C.document.write(I),C.document.title=o}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(Qr),eP="__ec_magicType_stack__",bK=[["line","bar"],["stack"]],wK=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),i={};return R(t.get("type"),function(o){r[o]&&(i[o]=r[o])}),i},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,i){var o=this.model,a=o.get(["seriesIndex",i]);if(nP[i]){var s={series:[]},l=function(h){var d=h.subType,f=h.id,g=nP[i](d,f,h,o);g&&(Ft(g,h.option),s.series.push(g));var y=h.coordinateSystem;if(y&&y.type==="cartesian2d"&&(i==="line"||i==="bar")){var _=y.getAxesByScale("ordinal")[0];if(_){var v=_.dim,p=v+"Axis",x=h.getReferringComponents(p,an).models[0],b=x.componentIndex;s[p]=s[p]||[];for(var S=0;S<=b;S++)s[p][b]=s[p][b]||{};s[p][b].boundaryGap=i==="bar"}}};R(bK,function(h){te(h,i)>=0&&R(h,function(d){o.setIconStatus(d,"normal")})}),o.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var u,c=i;i==="stack"&&(u=Yt({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Qr),nP={line:function(n,e,t,r){if(n==="bar")return Yt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Yt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var i=t.get("stack")===eP;if(n==="line"||n==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),Yt({id:e,stack:i?"":eP},r.get(["option","stack"])||{},!0)}};Ui({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});var ig=new Array(60).join("-"),gu=" ";function SK(n){var e={},t=[],r=[];return n.eachRawSeries(function(i){var o=i.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var a=o.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;e[s]||(e[s]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function MK(n){var e=[];return R(n,function(t,r){var i=t.categoryAxis,o=t.valueAxis,a=o.dim,s=[" "].concat(pt(t.series,function(f){return f.name})),l=[i.model.getCategories()];R(t.series,function(f){var g=f.getRawData();l.push(f.getRawData().mapArray(g.mapDimension(a),function(y){return y}))});for(var u=[s.join(gu)],c=0;c<l[0].length;c++){for(var h=[],d=0;d<l.length;d++)h.push(l[d][c]);u.push(h.join(gu))}e.push(u.join(`
83
+ `))}),e.join(`
84
+
85
+ `+ig+`
86
+
87
+ `)}function IK(n){return pt(n,function(e){var t=e.getRawData(),r=[e.name],i=[];return t.each(t.dimensions,function(){for(var o=arguments.length,a=arguments[o-1],s=t.getName(a),l=0;l<o-1;l++)i[l]=arguments[l];r.push((s?s+gu:"")+i.join(gu))}),r.join(`
88
+ `)}).join(`
89
+
90
+ `+ig+`
91
+
92
+ `)}function TK(n){var e=SK(n);return{value:Me([MK(e.seriesGroupByCategoryAxis),IK(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
93
+
94
+ `+ig+`
95
+
96
+ `),meta:e.meta}}function og(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function CK(n){var e=n.slice(0,n.indexOf(`
97
+ `));if(e.indexOf(gu)>=0)return!0}var Q_=new RegExp("["+gu+"]+","g");function AK(n){for(var e=n.split(/\n+/g),t=og(e.shift()).split(Q_),r=[],i=pt(t,function(l){return{name:l,data:[]}}),o=0;o<e.length;o++){var a=og(e[o]).split(Q_);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function kK(n){for(var e=n.split(/\n+/g),t=og(e.shift()),r=[],i=0;i<e.length;i++){var o=og(e[i]);if(o){var a=o.split(Q_),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);l.length===1&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:t,data:r}}function DK(n,e){var t=n.split(new RegExp(`
98
+ *`+ig+`
99
+ *`,"g")),r={series:[]};return R(t,function(i,o){if(CK(i)){var a=AK(i),s=e[o],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:a.categories},r.series=r.series.concat(a.series))}else{var a=kK(i);r.series.push(a)}}),r}var LK=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var i=r.getDom(),o=this.model;this._dom&&i.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=o.get("optionToContent"),d=o.get("contentToOption"),f=TK(t);if(Et(h)){var g=h(r.getOption());Tt(g)?u.innerHTML=g:Va(g)&&u.appendChild(g)}else{c.readOnly=o.get("readOnly");var y=c.style;y.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",y.color=o.get("textColor"),y.borderColor=o.get("textareaBorderColor"),y.backgroundColor=o.get("textareaColor"),c.value=f.value,u.appendChild(c)}var _=f.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:5px;left:0;right:0";var p="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),b=document.createElement("div");p+=";background-color:"+o.get("buttonColor"),p+=";color:"+o.get("buttonTextColor");var S=this;function M(){i.removeChild(a),S._dom=null}Nv(x,"click",M),Nv(b,"click",function(){if(d==null&&h!=null||d!=null&&h==null){process.env.NODE_ENV!=="production"&&Xe("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),M();return}var I;try{Et(d)?I=d(u,r.getOption()):I=DK(c.value,_)}catch(C){throw M(),new Error("Data view format error "+C)}I&&r.dispatchAction({type:"changeDataView",newOption:I}),M()}),x.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=x.style.cssText=p,!o.get("readOnly")&&v.appendChild(b),v.appendChild(x),a.appendChild(s),a.appendChild(u),a.appendChild(v),u.style.height=i.clientHeight-80+"px",i.appendChild(a),this._dom=a},e.prototype.remove=function(t,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(Qr);function NK(n,e){return pt(n,function(t,r){var i=e&&e[r];if(Vt(i)&&!ht(i)){var o=Vt(t)&&!ht(t);o||(t={value:t});var a=i.name!=null&&t.name==null;return t=Ft(t,i),a&&delete t.name,t}else return t})}Ui({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,e){var t=[];R(n.newOption.series,function(r){var i=e.getSeriesByName(r.name)[0];if(!i)t.push(lt({type:"scatter"},r));else{var o=i.get("data");t.push({name:r.name,data:NK(r.data,o)})}}),e.mergeOption(Ft({series:t},n.newOption))});var rP=R,iP=de();function PK(n,e){var t=tx(n);rP(e,function(r,i){for(var o=t.length-1;o>=0;o--){var a=t[o];if(a[i])break}if(o<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function EK(n){var e=tx(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return rP(t,function(i,o){for(var a=e.length-1;a>=0;a--)if(i=e[a][o],i){r[o]=i;break}}),r}function RK(n){iP(n).snapshots=null}function OK(n){return tx(n).length}function tx(n){var e=iP(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var zK=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){RK(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(Qr);Ui({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});var VK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ex=function(){function n(e,t,r){var i=this;this._targetInfoList=[];var o=oP(t,e);R(BK,function(a,s){(!r||!r.include||te(r.include,s)>=0)&&a(o,i._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,i,o){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var a=rx[r.brushType](0,o,i);r.__rangeOffset={offset:uP[r.brushType](a.values,r.range,[1,1]),xyMinMax:a.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){R(e,function(i){var o=this.findTargetInfo(i,t);o&&o!==!0&&R(o.coordSyses,function(a){var s=rx[i.brushType](1,a,i.range,!0);r(i,s.values,a,t)})},this)},n.prototype.setInputRanges=function(e,t){R(e,function(r){var i=this.findTargetInfo(r,t);if(process.env.NODE_ENV!=="production"&&(Bt(!i||i===!0||r.coordRange,"coordRange must be specified when coord index specified."),Bt(!i||i!==!0||r.range,"range must be specified in global brush.")),r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var o=rx[r.brushType](0,i.coordSys,r.coordRange),a=r.__rangeOffset;r.range=a?uP[r.brushType](o.values,a.offset,FK(o.xyMinMax,a.xyMinMax)):o.values}},this)},n.prototype.makePanelOpts=function(e,t){return pt(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:rL(i),isTargetByCursor:oL(i,e,r.coordSysModel),getLinearBrushOtherExtent:iL(i)}})},n.prototype.controlSeries=function(e,t,r){var i=this.findTargetInfo(e,r);return i===!0||i&&te(i.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,i=oP(t,e),o=0;o<r.length;o++){var a=r[o],s=e.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<aP.length;l++)if(aP[l](i,a))return a}return!0},n}();function nx(n){return n[0]>n[1]&&n.reverse(),n}function oP(n,e){return sc(n,e,{includeMainTypes:VK})}var BK={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,i=n.gridModels,o=Lt(),a={},s={};!t&&!r&&!i||(R(t,function(l){var u=l.axis.grid.model;o.set(u.id,u),a[u.id]=!0}),R(r,function(l){var u=l.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),R(i,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var u=l.coordinateSystem,c=[];R(u.getCartesians(),function(h,d){(te(t,h.getAxis("x").model)>=0||te(r,h.getAxis("y").model)>=0)&&c.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:sP.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){R(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:sP.geo})})}},aP=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,i=n.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],sP={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(vs(n)),e}},rx={lineX:qt(lP,0),lineY:qt(lP,1),rect:function(n,e,t,r){var i=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),o=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),a=[nx([i[0],o[0]]),nx([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(n,e,t,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=pt(t,function(a){var s=n?e.pointToData(a,r):e.dataToPoint(a,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:o,xyMinMax:i}}};function lP(n,e,t,r){process.env.NODE_ENV!=="production"&&Bt(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var i=t.getAxis(["x","y"][n]),o=nx(pt([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),a=[];return a[n]=o,a[1-n]=[NaN,NaN],{values:o,xyMinMax:a}}var uP={lineX:qt(cP,0),lineY:qt(cP,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return pt(n,function(r,i){return[r[0]-t[0]*e[i][0],r[1]-t[1]*e[i][1]]})}};function cP(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function FK(n,e){var t=hP(n),r=hP(e),i=[t[0]/r[0],t[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function hP(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}var ix=R,GK=Xz("toolbox-dataZoom_"),WK=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,o){this._brushController||(this._brushController=new e_(i.getZr()),this._brushController.on("brush",At(this._onBrush,this)).mount()),UK(t,r,this,o,i),HK(t,r)},e.prototype.onclick=function(t,r,i){jK[i].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var i={},o=this.ecModel;this._brushController.updateCovers([]);var a=new ex(ox(this.model),o,{include:["grid"]});a.matchOutputRanges(r,o,function(u,c,h){if(h.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",h,c[0]),s("y",h,c[1])):s({lineX:"x",lineY:"y"}[d],h,c)}}),PK(o,i),this._dispatchZoomAction(i);function s(u,c,h){var d=c.getAxis(u),f=d.model,g=l(u,f,o),y=g.findRepresentativeAxisProxy(f).getMinMaxSpan();(y.minValueSpan!=null||y.maxValueSpan!=null)&&(h=Xs(0,h.slice(),d.scale.getExtent(),0,y.minValueSpan,y.maxValueSpan)),g&&(i[g.id]={dataZoomId:g.id,startValue:h[0],endValue:h[1]})}function l(u,c,h){var d;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(f){var g=f.getAxisModel(u,c.componentIndex);g&&(d=f)}),d}},e.prototype._dispatchZoomAction=function(t){var r=[];ix(t,function(i,o){r.push(Wt(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(Qr),jK={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(EK(this.ecModel))}};function ox(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function HK(n,e){n.setIconStatus("back",OK(e)>1?"emphasis":"normal")}function UK(n,e,t,r,i){var o=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(o=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=o,n.setIconStatus("zoom",o?"emphasis":"normal");var a=new ex(ox(n),e,{include:["grid"]}),s=a.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}y4("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),i=[],o=ox(r),a=sc(n,o);ix(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ix(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var h=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:GK+u+h};d[c]=h,i.push(d)}return i});function XK(n){n.registerComponentModel(vK),n.registerComponentView(mK),fu("saveAsImage",xK),fu("magicType",wK),fu("dataView",LK),fu("dataZoom",WK),fu("restore",zK),ie(gK)}var ZK=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(le);function pP(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function dP(n){if(oe.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t<r;t++)if(n[t]in e)return n[t]}}var fP=dP(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qK=dP(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function gP(n,e){if(!n)return e;e=yM(e,!0);var t=n.indexOf(e);return n=t===-1?e:"-"+n.slice(0,t)+"-"+e,n.toLowerCase()}function KK(n,e){var t=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n);return t?t[e]:null}var YK=gP(qK,"transition"),ax=gP(fP,"transform"),JK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(oe.transform3dSupported?"will-change:transform;":"");function $K(n){return n=n==="left"?"right":n==="right"?"left":n==="top"?"bottom":"top",n}function QK(n,e,t){if(!Tt(t)||t==="inside")return"";var r=n.get("backgroundColor"),i=n.get("borderWidth");e=_s(e);var o=$K(t),a=Math.max(Math.round(i)*1.5,6),s="",l=ax+":",u;te(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=a+i,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),f=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-h)/2)*100)/100;s+=";"+o+":-"+f+"px";var g=e+" solid "+i+"px;",y=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'<div style="'+y.join("")+'"></div>'}function tY(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,i="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,i+=oe.transformSupported?","+ax+r:",left"+r+",top"+r),YK+":"+i}function vP(n,e,t){var r=n.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!oe.transformSupported)return t?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=oe.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return t?"top:0;left:0;"+ax+":"+a+";":[["top",0],["left",0],[fP,a]]}function eY(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont());var i=Ht(n.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+i+"px");var o=n.get("textShadowColor"),a=n.get("textShadowBlur")||0,s=n.get("textShadowOffsetX")||0,l=n.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),R(["decoration","align"],function(u){var c=n.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function nY(n,e,t){var r=[],i=n.get("transitionDuration"),o=n.get("backgroundColor"),a=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),h=bI(n,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(tY(i,t)),o&&r.push("background-color:"+o),R(["width","color","radius"],function(f){var g="border-"+f,y=yM(g),_=n.get(y);_!=null&&r.push(g+":"+_+(f==="color"?"":"px"))}),r.push(eY(c)),h!=null&&r.push("padding:"+Rl(h).join("px ")+"px"),r.join(";")+";"}function yP(n,e,t,r,i){var o=e&&e.painter;if(t){var a=o&&o.getViewportRoot();a&&_3(n,a,t,r,i)}else{n[0]=r,n[1]=i;var s=o&&o.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var rY=function(){function n(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,oe.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=t.appendTo,a=o&&(Tt(o)?document.querySelector(o):Va(o)?o:Et(o)&&o(e.getDom()));yP(this._styleCoord,i,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(r),this._api=e,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Rr(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),r=KK(t,"position"),i=t.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=e.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=JK+nY(e,!this._firstShow,this._longHide)+vP(o[0],o[1],!0)+("border-color:"+_s(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,i,o){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(Tt(o)&&r.get("trigger")==="item"&&!pP(r)&&(s=QK(r,i,o)),Tt(e))a.innerHTML=e+s;else if(e){a.innerHTML="",ht(e)||(e=[e]);for(var l=0;l<e.length;l++)Va(e[l])&&e[l].parentNode!==a&&a.appendChild(e[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},n.prototype.moveTo=function(e,t){if(this.el){var r=this._styleCoord;if(yP(r,this._zr,this._container,e,t),r[0]!=null&&r[1]!=null){var i=this.el.style,o=vP(r[0],r[1]);R(o,function(a){i[a[0]]=a[1]})}}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",oe.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(At(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},n}(),iY=function(){function n(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),_P(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return n.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(e,t,r,i,o){var a=this;Vt(e)&&Ie(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new ge({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:bI(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=r.get(u)}),R(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),r=mP(e.style);return[t.width+r.left+r.right,t.height+r.top+r.bottom]},n.prototype.moveTo=function(e,t){var r=this.el;if(r){var i=this._styleCoord;_P(i,this._zr,e,t),e=i[0],t=i[1];var o=r.style,a=Ia(o.borderWidth||0),s=mP(o);r.x=e+a+s.left,r.y=t+a+s.top,r.markRedraw()}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(At(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function Ia(n){return Math.max(0,n)}function mP(n){var e=Ia(n.shadowBlur||0),t=Ia(n.shadowOffsetX||0),r=Ia(n.shadowOffsetY||0);return{left:Ia(e-t),right:Ia(e+t),top:Ia(e-r),bottom:Ia(e+r)}}function _P(n,e,t,r){n[0]=t,n[1]=r,n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var oY=new fe({shape:{x:-1,y:-1,width:2,height:2}}),aY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){if(!(oe.node||!r.getDom())){var i=t.getComponent("tooltip"),o=this._renderMode=Qz(i.get("renderMode"));this._tooltipContent=o==="richText"?new iY(r):new rY(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,r,i){if(!(oe.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=r,this._api=i;var o=this._tooltipContent;o.update(t),o.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Hl(this,"_updatePosition",50,"fixRate"):Rc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,r=t.get("triggerOn");IN("itemTooltip",this._api,At(function(i,o,a){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,i=this._api,o=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(t,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,i,o){if(!(o.from===this.uid||oe.node||!i.getDom())){var a=xP(o,i);this._ticket="";var s=o.dataByCoordSys,l=cY(o,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=oY;c.x=o.x,c.y=o.y,c.update(),Ut(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,i,o))return;var h=CN(o,r),d=h.point[0],f=h.point[1];d!=null&&f!=null&&this._tryShow({offsetX:d,offsetY:f,target:h.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},e.prototype.manuallyHideTip=function(t,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(xP(o,i))},e.prototype._manuallyAxisShowTip=function(t,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=r.getSeriesByIndex(a);if(u){var c=u.getData(),h=kh([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},e.prototype._tryShow=function(t,r){var i=t.target,o=this._tooltipModel;if(o){this._lastX=t.offsetX,this._lastY=t.offsetY;var a=t.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,t);else if(i){var s=Ut(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Is(i,function(c){if(Ut(c).dataIndex!=null)return l=c,!0;if(Ut(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(t,l,r):u?this._showComponentItemTooltip(t,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var i=t.get("showDelay");r=At(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(t,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=kh([r.tooltipOption],o),l=this._renderMode,u=[],c=xn("section",{blocks:[],noHeader:!0}),h=[],d=new jm;R(t,function(p){R(p.dataByAxis,function(x){var b=i.getComponent(x.axisDim+"Axis",x.axisIndex),S=x.value;if(!(!b||S==null)){var M=_N(S,b.axis,i,x.seriesDataIndices,x.valueLabelOpt),I=xn("section",{header:M,noHeader:!hi(M),sortBlocks:!0,blocks:[]});c.blocks.push(I),R(x.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,N=A.getDataParams(D);if(!(N.dataIndex<0)){N.axisDim=x.axisDim,N.axisIndex=x.axisIndex,N.axisType=x.axisType,N.axisId=x.axisId,N.axisValue=S0(b.axis,{value:S}),N.axisValueLabel=M,N.marker=d.makeTooltipMarker("item",_s(N.color),l);var L=eI(A.formatTooltip(D,!0,null)),E=L.frag;if(E){var k=kh([A],o).get("valueFormatter");I.blocks.push(k?lt({valueFormatter:k},E):E)}L.text&&h.push(L.text),u.push(N)}})}})}),c.blocks.reverse(),h.reverse();var f=r.position,g=s.get("order"),y=mI(c,d,l,g,i.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var _=l==="richText"?`
100
+
101
+ `:"<br/>",v=h.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,f,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",a[0],a[1],f,null,d)})},e.prototype._showSeriesItemTooltip=function(t,r,i){var o=this._ecModel,a=Ut(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,h=a.dataType,d=u.getData(h),f=this._renderMode,g=t.positionDefault,y=kh([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),_=y.get("trigger");if(!(_!=null&&_!=="item")){var v=u.getDataParams(c,h),p=new jm;v.marker=p.makeTooltipMarker("item",_s(v.color),f);var x=eI(u.formatTooltip(c,!1,h)),b=y.get("order"),S=y.get("valueFormatter"),M=x.frag,I=M?mI(S?lt({valueFormatter:S},M):M,p,f,b,o.get("useUTC"),y.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,I,v,C,t.offsetX,t.offsetY,t.position,t.target,p)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,i){var o=this._renderMode==="html",a=Ut(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Tt(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Wt(l),l.content=Kn(l.content));var h=[l],d=this._ecModel.getComponent(a.componentMainType,a.componentIndex);d&&h.push(d),h.push({formatter:l.content});var f=t.positionDefault,g=kh(h,this._tooltipModel,f?{position:f}:null),y=g.get("content"),_=Math.random()+"",v=new jm;this._showOrMove(g,function(){var p=Wt(g.get("formatterParams")||{});this._showTooltipContent(g,y,p,_,t.offsetX,t.offsetY,t.position,r,v)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,i,o,a,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var d=t.get("formatter");l=l||t.get("position");var f=r,g=this._getNearestPoint([a,s],i,t.get("trigger"),t.get("borderColor")),y=g.color;if(d)if(Tt(d)){var _=t.ecModel.get("useUTC"),v=ht(i)?i[0]:i,p=v&&v.axisType&&v.axisType.indexOf("time")>=0;f=d,p&&(f=Sd(v.axisValue,f,_)),f=_M(f,i,!0)}else if(Et(d)){var x=At(function(b,S){b===this._ticket&&(h.setContent(S,c,t,y,l),this._updatePosition(t,l,a,s,h,i,u))},this);this._ticket=o,f=d(i,o,x)}else f=d;h.setContent(f,c,t,y,l),h.show(t,y),this._updatePosition(t,l,a,s,h,i,u)}},e.prototype._getNearestPoint=function(t,r,i,o){if(i==="axis"||ht(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ht(r))return{color:o||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var h=a.getSize(),d=t.get("align"),f=t.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),Et(r)&&(r=r([i,o],s,a.el,g,{viewSize:[u,c],contentSize:h.slice()})),ht(r))i=Mt(r[0],u),o=Mt(r[1],c);else if(Vt(r)){var y=r;y.width=h[0],y.height=h[1];var _=dn(y,{width:u,height:c});i=_.x,o=_.y,d=null,f=null}else if(Tt(r)&&l){var v=uY(r,g,h,t.get("borderWidth"));i=v[0],o=v[1]}else{var v=sY(i,o,a,u,c,d?null:20,f?null:20);i=v[0],o=v[1]}if(d&&(i-=bP(d)?h[0]/2:d==="right"?h[0]:0),f&&(o-=bP(f)?h[1]/2:f==="bottom"?h[1]:0),pP(t)){var v=lY(i,o,a,u,c);i=v[0],o=v[1]}a.moveTo(i,o)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===t.length;return a&&R(i,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},h=c.dataByAxis||[];a=a&&u.length===h.length,a&&R(u,function(d,f){var g=h[f]||{},y=d.seriesDataIndices||[],_=g.seriesDataIndices||[];a=a&&d.value===g.value&&d.axisType===g.axisType&&d.axisId===g.axisId&&y.length===_.length,a&&R(y,function(v,p){var x=_[p];a=a&&v.seriesIndex===x.seriesIndex&&v.dataIndex===x.dataIndex}),o&&R(d.seriesDataIndices,function(v){var p=v.seriesIndex,x=r[p],b=o[p];x&&b&&b.data!==x.data&&(a=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!a},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){oe.node||!r.getDom()||(Rc(this,"_updatePosition"),this._tooltipContent.dispose(),W_("itemTooltip",r))},e.type="tooltip",e}(He);function kh(n,e,t){var r=e.ecModel,i;t?(i=new ke(t,r,r),i=new ke(e.option,i,r)):i=e;for(var o=n.length-1;o>=0;o--){var a=n[o];a&&(a instanceof ke&&(a=a.get("tooltip",!0)),Tt(a)&&(a={formatter:a}),a&&(i=new ke(a,i,r)))}return i}function xP(n,e){return n.dispatchAction||At(e.dispatchAction,e)}function sY(n,e,t,r,i,o,a){var s=t.getSize(),l=s[0],u=s[1];return o!=null&&(n+l+o+2>r?n-=l+o:n+=o),a!=null&&(e+u+a>i?e-=u+a:e+=a),[n,e]}function lY(n,e,t,r,i){var o=t.getSize(),a=o[0],s=o[1];return n=Math.min(n+a,r)-a,e=Math.min(e+s,i)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function uY(n,e,t,r){var i=t[0],o=t[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function bP(n){return n==="center"||n==="middle"}function cY(n,e,t){var r=wy(n).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=lc(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=t.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=Ut(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function hY(n){ie(Ch),n.registerComponentModel(ZK),n.registerComponentView(aY),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qe),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qe)}var pY=["rect","polygon","keep","clear"];function dY(n,e){var t=Ne(n?n.brush:[]);if(t.length){var r=[];R(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var i=n&&n.toolbox;ht(i)&&(i=i[0]),i||(i={feature:{}},n.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),fY(s),e&&!s.length&&s.push.apply(s,pY)}}function fY(n){var e={};R(n,function(t){e[t]=1}),n.length=0,R(e,function(t,r){n.push(r)})}var wP=R;function SP(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function sx(n,e,t){var r={};return wP(e,function(o){var a=r[o]=i();wP(n[o],function(s,l){if(wn.isValidType(l)){var u={type:l,visual:s};t&&t(u,o),a[l]=new wn(u),l==="opacity"&&(u=Wt(u),u.type="colorAlpha",a.__hidden.__alphaForOpacity=new wn(u))}})}),r;function i(){var o=function(){};o.prototype.__hidden=o.prototype;var a=new o;return a}}function MP(n,e,t){var r;R(t,function(i){e.hasOwnProperty(i)&&SP(e[i])&&(r=!0)}),r&&R(t,function(i){e.hasOwnProperty(i)&&SP(e[i])?n[i]=Wt(e[i]):delete n[i]})}function gY(n,e,t,r,i,o){var a={};R(n,function(h){var d=wn.prepareVisualTypes(e[h]);a[h]=d});var s;function l(h){return Zm(t,s,h)}function u(h,d){jI(t,s,h,d)}t.each(c);function c(h,d){s=h;var f=t.getRawDataItem(s);if(!(f&&f.visualMap===!1))for(var g=r.call(i,h),y=e[g],_=a[g],v=0,p=_.length;v<p;v++){var x=_[v];y[x]&&y[x].applyVisual(h,l,u)}}}function vY(n,e,t,r){var i={};return R(n,function(o){var a=wn.prepareVisualTypes(e[o]);i[o]=a}),{progress:function(o,a){var s;r!=null&&(s=a.getDimensionIndex(r));function l(b){return Zm(a,c,b)}function u(b,S){jI(a,c,b,S)}for(var c,h=a.getStore();(c=o.next())!=null;){var d=a.getRawDataItem(c);if(!(d&&d.visualMap===!1))for(var f=r!=null?h.get(s,c):c,g=t(f),y=e[g],_=i[g],v=0,p=_.length;v<p;v++){var x=_[v];y[x]&&y[x].applyVisual(f,l,u)}}}}}function yY(n){var e=n.brushType,t={point:function(r){return IP[e].point(r,t,n)},rect:function(r){return IP[e].rect(r,t,n)}};return t}var IP={lineX:TP(0),lineY:TP(1),rect:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])},rect:function(n,e,t){return n&&t.boundingRect.intersect(n)}},polygon:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])&&Ls(t.range,n[0],n[1])},rect:function(n,e,t){var r=t.range;if(!n||r.length<=1)return!1;var i=n.x,o=n.y,a=n.width,s=n.height,l=r[0];if(Ls(r,i,o)||Ls(r,i+a,o)||Ls(r,i,o+s)||Ls(r,i+a,o+s)||Qt.create(n).contain(l[0],l[1])||Mc(i,o,i+a,o,r)||Mc(i,o,i,o+s,r)||Mc(i+a,o,i+a,o+s,r)||Mc(i,o+s,i+a,o+s,r))return!0}}};function TP(n){var e=["x","y"],t=["width","height"];return{point:function(r,i,o){if(r){var a=o.range,s=r[n];return Dh(s,a)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[n]],r[e[n]]+r[t[n]]];return s[1]<s[0]&&s.reverse(),Dh(s[0],a)||Dh(s[1],a)||Dh(a[0],s)||Dh(a[1],s)}}}}function Dh(n,e){return e[0]<=n&&n<=e[1]}var CP=["inBrush","outOfBrush"],lx="__ecBrushSelect",ux="__ecInBrushSelectEvent";function AP(n){n.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new ex(e.option,n);t.setInputRanges(e.areas,n)})}function mY(n,e,t){var r=[],i,o;n.eachComponent({mainType:"brush"},function(a){t&&t.type==="takeGlobalCursor"&&a.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),AP(n),n.eachComponent({mainType:"brush"},function(a,s){var l={brushId:a.id,brushIndex:s,brushName:a.name,areas:Wt(a.areas),selected:[]};r.push(l);var u=a.option,c=u.brushLink,h=[],d=[],f=[],g=!1;s||(i=u.throttleType,o=u.throttleDelay);var y=pt(a.areas,function(S){var M=wY[S.brushType],I=Ft({boundingRect:M?M(S):void 0},S);return I.selectors=yY(I),I}),_=sx(a.option,CP,function(S){S.mappingMethod="fixed"});ht(c)&&R(c,function(S){h[S]=1});function v(S){return c==="all"||!!h[S]}function p(S){return!!S.length}n.eachSeries(function(S,M){var I=f[M]=[];S.subType==="parallel"?x(S,M):b(S,M,I)});function x(S,M){var I=S.coordinateSystem;g=g||I.hasAxisBrushed(),v(M)&&I.eachActiveState(S.getData(),function(C,A){C==="active"&&(d[A]=1)})}function b(S,M,I){if(!(!S.brushSelector||bY(a,M))&&(R(y,function(A){a.brushTargetManager.controlSeries(A,S,n)&&I.push(A),g=g||p(I)}),v(M)&&p(I))){var C=S.getData();C.each(function(A){kP(S,I,C,A)&&(d[A]=1)})}}n.eachSeries(function(S,M){var I={seriesId:S.id,seriesIndex:M,seriesName:S.name,dataIndex:[]};l.selected.push(I);var C=f[M],A=S.getData(),D=v(M)?function(N){return d[N]?(I.dataIndex.push(A.getRawIndex(N)),"inBrush"):"outOfBrush"}:function(N){return kP(S,C,A,N)?(I.dataIndex.push(A.getRawIndex(N)),"inBrush"):"outOfBrush"};(v(M)?g:p(C))&&gY(CP,_,A,D)})}),_Y(e,i,o,r,t)}function _Y(n,e,t,r,i){if(i){var o=n.getZr();if(!o[ux]){o[lx]||(o[lx]=xY);var a=Hl(o,lx,t,e);a(n,r)}}}function xY(n,e){if(!n.isDisposed()){var t=n.getZr();t[ux]=!0,n.dispatchAction({type:"brushSelect",batch:e}),t[ux]=!1}}function kP(n,e,t,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(n.brushSelector(r,t,a.selectors,a))return!0}}function bY(n,e){var t=n.option.seriesIndex;return t!=null&&t!=="all"&&(ht(t)?te(t,e)<0:e!==t)}var wY={rect:function(n){return DP(n.range)},polygon:function(n){for(var e,t=n.range,r=0,i=t.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=t[r];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&&DP(e)}};function DP(n){return new Qt(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var SY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new e_(r.getZr())).on("brush",At(this._onBrush,this)).mount()},e.prototype.render=function(t,r,i,o){this.model=t,this._updateController(t,r,i,o)},e.prototype.updateTransform=function(t,r,i,o){AP(r),this._updateController(t,r,i,o)},e.prototype.updateVisual=function(t,r,i,o){this.updateTransform(t,r,i,o)},e.prototype.updateView=function(t,r,i,o){this._updateController(t,r,i,o)},e.prototype._updateController=function(t,r,i,o){(!o||o.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Wt(i),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Wt(i),$from:r})},e.type="brush",e}(He),MY="#ddd",IY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&MP(i,t,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:MY},o.hasOwnProperty("liftZ")||(o.liftZ=5)},e.prototype.setAreas=function(t){process.env.NODE_ENV!=="production"&&(Bt(ht(t)),R(t,function(r){Bt(r.brushType,"Illegal areas")})),t&&(this.areas=pt(t,function(r){return LP(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=LP(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(le);function LP(n,e){return Yt({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new ke(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}var TY=["rect","polygon","lineX","lineY","keep","clear"],CY=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i){var o,a,s;r.eachComponent({mainType:"brush"},function(l){o=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=o,this._brushMode=a,R(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===o)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,i){this.render(t,r,i)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),i={};return R(t.get("type",!0),function(o){r[o]&&(i[o]=r[o])}),i},e.prototype.onclick=function(t,r,i){var o=this._brushType,a=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?o:o===i?!1:i,brushMode:i==="keep"?a==="multiple"?"single":"multiple":a}})},e.getDefaultOption=function(t){var r={show:!0,type:TY.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(Qr);function AY(n){n.registerComponentView(SY),n.registerComponentModel(IY),n.registerPreprocessor(dY),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mY),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Qe),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Qe),fu("brush",CY)}var kY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(le),DY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){if(this.group.removeAll(),!!t.get("show")){var o=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ht(t.get("textBaseline"),t.get("textVerticalAlign")),c=new ge({style:ze(a,{text:t.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),d=t.get("subtext"),f=new ge({style:ze(s,{text:d,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=t.get("link"),y=t.get("sublink"),_=t.get("triggerEvent",!0);c.silent=!g&&!_,f.silent=!y&&!_,g&&c.on("click",function(){Ad(g,"_"+t.get("target"))}),y&&f.on("click",function(){Ad(y,"_"+t.get("subtarget"))}),Ut(c).eventData=Ut(f).eventData=_?{componentType:"title",componentIndex:t.componentIndex}:null,o.add(c),d&&o.add(f);var v=o.getBoundingRect(),p=t.getBoxLayoutParams();p.width=v.width,p.height=v.height;var x=dn(p,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),o.x=x.x,o.y=x.y,o.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),f.setStyle(b),v=o.getBoundingRect();var S=x.margin,M=t.getItemStyle(["color","opacity"]);M.fill=t.get("backgroundColor");var I=new fe({shape:{x:v.x-S[3],y:v.y-S[0],width:v.width+S[1]+S[3],height:v.height+S[0]+S[2],r:t.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});o.add(I)}},e.type="title",e}(He);function LY(n){n.registerComponentModel(kY),n.registerComponentView(DY)}var NP=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],i=t.axisType,o=this._names=[],a;i==="category"?(a=[],R(r,function(u,c){var h=pn(_l(u),""),d;Vt(u)?(d=Wt(u),d.value=c):d=c,a.push(d),o.push(h)})):a=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new nr([{name:"value",type:s}],this);l.initData(a,o)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(le),PP=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=la(NP.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(NP);nn(PP,Ed.prototype);var NY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(He),PY=function(n){Q(e,n);function e(t,r,i,o){var a=n.call(this,t,r,i)||this;return a.type=o||"value",a}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(wi),cx=Math.PI,EP=de(),EY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,i){if(this.model=t,this.api=i,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var o=this._layout(t,i),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xn("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](o,a,l,t)},this),this._renderAxisLabel(o,s,l,t),this._position(o,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var i=t.get(["label","position"]),o=t.get("orient"),a=OY(t,r),s;i==null||i==="auto"?s=o==="horizontal"?a.y+a.height/2<r.getHeight()/2?"-":"+":a.x+a.width/2<r.getWidth()/2?"+":"-":Tt(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:cx/2},h=o==="vertical"?a.height:a.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,_=g+y,v=t.get(["label","rotate"])||0;v=v*cx/180;var p,x,b,S=d.get("position",!0),M=f&&d.get("showPlayBtn",!0),I=f&&d.get("showPrevBtn",!0),C=f&&d.get("showNextBtn",!0),A=0,D=h;S==="left"||S==="bottom"?(M&&(p=[0,0],A+=_),I&&(x=[A,0],A+=_),C&&(b=[D-g,0],D-=_)):(M&&(p=[D-g,0],D-=_),I&&(x=[0,0],A+=_),C&&(b=[D-g,0],D-=_));var N=[A,D];return t.get("inverse")&&N.reverse(),{viewRect:a,mainLength:h,orient:o,rotation:c[o],labelRotation:v,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[o],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[o],playPosition:p,prevBtnPosition:x,nextBtnPosition:b,axisExtent:N,controlSize:g,controlGap:y}},e.prototype._position=function(t,r){var i=this._mainGroup,o=this._labelGroup,a=t.viewRect;if(t.orient==="vertical"){var s=mr(),l=a.x,u=a.y+a.height;Li(s,s,[-l,-u]),ja(s,s,-cx/2),Li(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var c=p(a),h=p(i.getBoundingRect()),d=p(o.getBoundingRect()),f=[i.x,i.y],g=[o.x,o.y];g[0]=f[0]=c[0][0];var y=t.labelPosOpt;if(y==null||Tt(y)){var _=y==="+"?0:1;x(f,h,c,1,_),x(g,d,c,1,1-_)}else{var _=y>=0?0:1;x(f,h,c,1,_),g[1]=f[1]+y}i.setPosition(f),o.setPosition(g),i.rotation=o.rotation=t.rotation,v(i),v(o);function v(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function p(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function x(b,S,M,I,C){b[I]+=M[I][C]-S[I][C]}},e.prototype._createAxis=function(t,r){var i=r.getData(),o=r.get("axisType"),a=RY(r,o);a.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new PY("value",a,t.axisExtent,o);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new jt;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,i,o){var a=i.getExtent();if(o.get(["lineStyle","show"])){var s=new mn({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:lt({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new mn({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:Ft({lineCap:"round",lineWidth:s.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,i,o){var a=this,s=o.getData(),l=i.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=i.dataToCoord(u.value),h=s.getItemModel(u.value),d=h.getModel("itemStyle"),f=h.getModel(["emphasis","itemStyle"]),g=h.getModel(["progress","itemStyle"]),y={x:c,y:0,onclick:At(a._changeTimeline,a,u.value)},_=RP(h,d,r,y);_.ensureState("emphasis").style=f.getItemStyle(),_.ensureState("progress").style=g.getItemStyle(),hs(_);var v=Ut(_);h.get("tooltip")?(v.dataIndex=u.value,v.dataModel=o):v.dataIndex=v.dataModel=null,a._tickSymbols.push(_)})},e.prototype._renderAxisLabel=function(t,r,i,o){var a=this,s=i.getLabelModel();if(s.get("show")){var l=o.getData(),u=i.getViewLabels();this._tickLabels=[],R(u,function(c){var h=c.tickValue,d=l.getItemModel(h),f=d.getModel("label"),g=d.getModel(["emphasis","label"]),y=d.getModel(["progress","label"]),_=i.dataToCoord(c.tickValue),v=new ge({x:_,y:0,rotation:t.labelRotation-t.rotation,onclick:At(a._changeTimeline,a,h),silent:!1,style:ze(f,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});v.ensureState("emphasis").style=ze(g),v.ensureState("progress").style=ze(y),r.add(v),hs(v),EP(v).dataIndex=h,a._tickLabels.push(v)})}},e.prototype._renderControl=function(t,r,i,o){var a=t.controlSize,s=t.rotation,l=o.getModel("controlStyle").getItemStyle(),u=o.getModel(["emphasis","controlStyle"]).getItemStyle(),c=o.getPlayState(),h=o.get("inverse",!0);d(t.nextBtnPosition,"next",At(this._changeTimeline,this,h?"-":"+")),d(t.prevBtnPosition,"prev",At(this._changeTimeline,this,h?"+":"-")),d(t.playPosition,c?"stop":"play",At(this._handlePlayClick,this,!c),!0);function d(f,g,y,_){if(f){var v=fi(Ht(o.get(["controlStyle",g+"BtnSize"]),a),a),p=[0,-v/2,v,v],x=zY(o,g+"Icon",p,{x:f[0],y:f[1],originX:a/2,originY:0,rotation:_?-s:0,rectHover:!0,style:l,onclick:y});x.ensureState("emphasis").style=u,r.add(x),hs(x)}}},e.prototype._renderCurrentPointer=function(t,r,i,o){var a=o.getData(),s=o.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=At(u._handlePointerDrag,u),h.ondragend=At(u._handlePointerDragend,u),OP(h,u._progressLine,s,i,o,!0)},onUpdate:function(h){OP(h,u._progressLine,s,i,o)}};this._currentPointer=RP(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var i=this._toAxisCoord(t)[0],o=this._axis,a=Vr(o.getExtent().slice());i>a[1]&&(i=a[1]),i<a[0]&&(i=a[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=t.model;t._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var r=this._mainGroup.getLocalTransform();return _i(t,r,!0)},e.prototype._findNearestTick=function(t){var r=this.model.getData(),i=1/0,o,a=this._axis;return r.each(["value"],function(s,l){var u=a.dataToCoord(s),c=Math.abs(u-t);c<i&&(i=c,o=l)}),o},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var r=this.model.getCurrentIndex();t==="+"?t=r+1:t==="-"&&(t=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),r=this._tickSymbols,i=this._tickLabels;if(r)for(var o=0;o<r.length;o++)r&&r[o]&&r[o].toggleState("progress",o<t);if(i)for(var o=0;o<i.length;o++)i&&i[o]&&i[o].toggleState("progress",EP(i[o]).dataIndex<=t)},e.type="timeline.slider",e}(NY);function RY(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new of({ordinalMeta:n.getCategories(),extent:[1/0,-1/0]});case"time":return new b0({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new Co}}function OY(n,e){return dn(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},n.get("padding"))}function zY(n,e,t,r){var i=r.style,o=Sc(n.get(["controlStyle",e]),r,new Qt(t[0],t[1],t[2],t[3]));return i&&o.setStyle(i),o}function RP(n,e,t,r,i,o){var a=e.get("color");if(i)i.setColor(a),t.add(i),o&&o.onUpdate(i);else{var s=n.get("symbol");i=ln(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),t.add(i),o&&o.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=Yt({rectHover:!0,z2:100},r,!0);var u=Xl(n.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Ts(n.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var h=n.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function OP(n,e,t,r,i,o){if(!n.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",t));if(o||!a.get("animation",!0))n.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};n.stopAnimation(null,!0),n.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function VY(n){n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,r){var i=t.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ft({currentIndex:i.option.currentIndex},e)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var r=t.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function BY(n){var e=n&&n.timeline;ht(e)||(e=e?[e]:[]),R(e,function(t){t&&FY(t)})}function FY(n){var e=n.type,t={number:"value",time:"time"};if(t[e]&&(n.axisType=t[e],delete n.type),zP(n),Js(n,"controlPosition")){var r=n.controlStyle||(n.controlStyle={});Js(r,"position")||(r.position=n.controlPosition),r.position==="none"&&!Js(r,"show")&&(r.show=!1,delete r.position),delete n.controlPosition}R(n.data||[],function(i){Vt(i)&&!ht(i)&&(!Js(i,"value")&&Js(i,"name")&&(i.value=i.name),zP(i))})}function zP(n){var e=n.itemStyle||(n.itemStyle={}),t=e.emphasis||(e.emphasis={}),r=n.label||n.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};R(r,function(a,s){!o[s]&&!Js(i,s)&&(i[s]=a)}),t.label&&!Js(r,"emphasis")&&(r.emphasis=t.label,delete t.label)}function Js(n,e){return n.hasOwnProperty(e)}function GY(n){n.registerComponentModel(PP),n.registerComponentView(EY),n.registerSubTypeDefaulter("timeline",function(){return"slider"}),VY(n),n.registerPreprocessor(BY)}function hx(n,e){if(!n)return!1;for(var t=ht(n)?n:[n],r=0;r<t.length;r++)if(t[r]&&t[r][e])return!0;return!1}function ag(n){Ja(n,"label",["show"])}var sg=de(),Po=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,r,i){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(oe.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,r){this._mergeOption(t,r,!1,!1)},e.prototype._mergeOption=function(t,r,i,o){var a=this.mainType;i||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=sg(s)[a];if(!l||!l.data){sg(s)[a]=null;return}u?u._mergeOption(l,r,!0):(o&&ag(l),R(l.data,function(c){c instanceof Array?(ag(c[0]),ag(c[1])):ag(c)}),u=this.createMarkerModelFromSeries(l,this,r),lt(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),sg(s)[a]=u},this)},e.prototype.formatTooltip=function(t,r,i){var o=this.getData(),a=this.getRawValue(t),s=o.getName(t);return xn("section",{header:this.name,blocks:[xn("nameValue",{name:s,value:a,noName:!s,noValue:a==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,r){var i=Ed.prototype.getDataParams.call(this,t,r),o=this.__hostSeries;return o&&(i.seriesId=o.id,i.seriesName=o.name,i.seriesType=o.subType),i},e.getMarkerModelFromSeries=function(t,r){return sg(t)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(le);nn(Po,Ed.prototype);var WY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Po);function px(n){return!(isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y)))}function jY(n){return!isNaN(parseFloat(n.x))&&!isNaN(parseFloat(n.y))}function lg(n,e,t,r,i,o){var a=[],s=ga(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=fx(e,l,n),c=e.indicesOfNearest(l,u)[0];a[i]=e.get(t,c),a[o]=e.get(l,c);var h=e.get(r,c),d=Ri(e.get(r,c));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var dx={min:qt(lg,"min"),max:qt(lg,"max"),average:qt(lg,"average"),median:qt(lg,"median")};function Lh(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,i=r&&r.dimensions;if(!jY(e)&&!ht(e.coord)&&ht(i)){var o=VP(e,t,r,n);if(e=Wt(e),e.type&&dx[e.type]&&o.baseAxis&&o.valueAxis){var a=te(i,o.baseAxis.dim),s=te(i,o.valueAxis.dim),l=dx[e.type](t,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!ht(i))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)dx[u[c]]&&(u[c]=fx(t,t.mapDimension(i[c]),u[c]));return e}}function VP(n,e,t,r){var i={};return n.valueIndex!=null||n.valueDim!=null?(i.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,i.valueAxis=t.getAxis(HY(r,i.valueDataDim)),i.baseAxis=t.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=t.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function HY(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Nh(n,e){return n&&n.containData&&e.coord&&!px(e)?n.containData(e.coord):!0}function UY(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!px(e)&&!px(t)?n.containZone(e.coord,t.coord):!0}function BP(n,e){return n?function(t,r,i,o){var a=o<2?t.coord&&t.coord[o]:t.value;return ha(a,e[o])}:function(t,r,i,o){return ha(t.value,e[o])}}function fx(n,e,t){if(t==="average"){var r=0,i=0;return n.each(e,function(o,a){isNaN(o)||(r+=o,i++)}),r/i}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var gx=de(),vx=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Lt()},e.prototype.render=function(t,r,i){var o=this,a=this.markerGroupMap;a.each(function(s){gx(s).keep=!1}),r.eachSeries(function(s){var l=Po.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,r,i)}),a.each(function(s){!gx(s).keep&&o.group.remove(s.group)})},e.prototype.markKeep=function(t){gx(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var i=this;R(t,function(o){var a=Po.getMarkerModelFromSeries(o,i.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(r?vS(l):Zy(l))})}})},e.type="marker",e}(He);function FP(n,e,t){var r=e.coordinateSystem;n.each(function(i){var o=n.getItemModel(i),a,s=Mt(o.get("x"),t.getWidth()),l=Mt(o.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(e.getMarkerPosition)a=e.getMarkerPosition(n.getValues(n.dimensions,i));else if(r){var u=n.get(r.dimensions[0],i),c=n.get(r.dimensions[1],i);a=r.dataToPoint([u,c])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),n.setItemLayout(i,a)})}var XY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(o){var a=Po.getMarkerModelFromSeries(o,"markPoint");a&&(FP(a.getData(),o,i),this.markerGroupMap.get(o.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,i,o){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new rh),h=ZY(a,t,r);r.setData(h),FP(r.getData(),t,o),h.each(function(d){var f=h.getItemModel(d),g=f.getShallow("symbol"),y=f.getShallow("symbolSize"),_=f.getShallow("symbolRotate"),v=f.getShallow("symbolOffset"),p=f.getShallow("symbolKeepAspect");if(Et(g)||Et(y)||Et(_)||Et(v)){var x=r.getRawValue(d),b=r.getDataParams(d);Et(g)&&(g=g(x,b)),Et(y)&&(y=y(x,b)),Et(_)&&(_=_(x,b)),Et(v)&&(v=v(x,b))}var S=f.getModel("itemStyle").getItemStyle(),M=Vc(l,"color");S.fill||(S.fill=M),h.setItemVisual(d,{symbol:g,symbolSize:y,symbolRotate:_,symbolOffset:v,symbolKeepAspect:p,style:S})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(d){d.traverse(function(f){Ut(f).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(vx);function ZY(n,e,t){var r;n?r=pt(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return lt(lt({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new nr(r,t),o=pt(t.get("data"),qt(Lh,e));n&&(o=Me(o,qt(Nh,n)));var a=BP(!!n,r);return i.initData(o,null,a),i}function qY(n){n.registerComponentModel(WY),n.registerComponentView(XY),n.registerPreprocessor(function(e){hx(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var KY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Po),ug=de(),YY=function(n,e,t,r){var i=n.getData(),o;if(ht(r))o=r;else{var a=r.type;if(a==="min"||a==="max"||a==="average"||a==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=rn(r.yAxis,r.xAxis);else{var u=VP(r,i,e,n);s=u.valueAxis;var c=WT(i,u.valueDataDim);l=fx(i,c,a)}var h=s.dim==="x"?0:1,d=1-h,f=Wt(r),g={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,g.coord[d]=1/0;var y=t.get("precision");y>=0&&ye(l)&&(l=+l.toFixed(Math.min(y,20))),f.coord[h]=g.coord[h]=l,o=[f,g,{type:a,valueIndex:r.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&ci("Invalid markLine data."),o=[]}var _=[Lh(n,o[0]),Lh(n,o[1]),lt({},o[2])];return _[2].type=_[2].type||null,Yt(_[2],_[0]),Yt(_[2],_[1]),_};function cg(n){return!isNaN(n)&&!isFinite(n)}function GP(n,e,t,r){var i=1-n,o=r.dimensions[n];return cg(e[i])&&cg(t[i])&&e[n]===t[n]&&r.getAxis(o).containData(e[n])}function JY(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(GP(1,t,r,n)||GP(0,t,r,n)))return!0}return Nh(n,e[0])&&Nh(n,e[1])}function yx(n,e,t,r,i){var o=r.coordinateSystem,a=n.getItemModel(e),s,l=Mt(a.get("x"),i.getWidth()),u=Mt(a.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=o.dimensions,h=n.get(c[0],e),d=n.get(c[1],e);s=o.dataToPoint([h,d])}if(Vs(o,"cartesian2d")){var f=o.getAxis("x"),g=o.getAxis("y"),c=o.dimensions;cg(n.get(c[0],e))?s[0]=f.toGlobalCoord(f.getExtent()[t?0:1]):cg(n.get(c[1],e))&&(s[1]=g.toGlobalCoord(g.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var $Y=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(o){var a=Po.getMarkerModelFromSeries(o,"markLine");if(a){var s=a.getData(),l=ug(a).from,u=ug(a).to;l.each(function(c){yx(l,c,!0,o,i),yx(u,c,!1,o,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,i,o){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new j1);this.group.add(c.group);var h=QY(a,t,r),d=h.from,f=h.to,g=h.line;ug(r).from=d,ug(r).to=f,r.setData(g);var y=r.get("symbol"),_=r.get("symbolSize"),v=r.get("symbolRotate"),p=r.get("symbolOffset");ht(y)||(y=[y,y]),ht(_)||(_=[_,_]),ht(v)||(v=[v,v]),ht(p)||(p=[p,p]),h.from.each(function(b){x(d,b,!0),x(f,b,!1)}),g.each(function(b){var S=g.getItemModel(b).getModel("lineStyle").getLineStyle();g.setItemLayout(b,[d.getItemLayout(b),f.getItemLayout(b)]),S.stroke==null&&(S.stroke=d.getItemVisual(b,"style").fill),g.setItemVisual(b,{fromSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(b,"symbolOffset"),fromSymbolRotate:d.getItemVisual(b,"symbolRotate"),fromSymbolSize:d.getItemVisual(b,"symbolSize"),fromSymbol:d.getItemVisual(b,"symbol"),toSymbolKeepAspect:f.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(b,"symbolOffset"),toSymbolRotate:f.getItemVisual(b,"symbolRotate"),toSymbolSize:f.getItemVisual(b,"symbolSize"),toSymbol:f.getItemVisual(b,"symbol"),style:S})}),c.updateData(g),h.line.eachItemGraphicEl(function(b){Ut(b).dataModel=r,b.traverse(function(S){Ut(S).dataModel=r})});function x(b,S,M){var I=b.getItemModel(S);yx(b,S,M,t,o);var C=I.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Vc(l,"color")),b.setItemVisual(S,{symbolKeepAspect:I.get("symbolKeepAspect"),symbolOffset:Ht(I.get("symbolOffset",!0),p[M?0:1]),symbolRotate:Ht(I.get("symbolRotate",!0),v[M?0:1]),symbolSize:Ht(I.get("symbolSize"),_[M?0:1]),symbol:Ht(I.get("symbol",!0),y[M?0:1]),style:C})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(vx);function QY(n,e,t){var r;n?r=pt(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return lt(lt({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new nr(r,t),o=new nr(r,t),a=new nr([],t),s=pt(t.get("data"),qt(YY,e,n,t));n&&(s=Me(s,qt(JY,n)));var l=BP(!!n,r);return i.initData(pt(s,function(u){return u[0]}),null,l),o.initData(pt(s,function(u){return u[1]}),null,l),a.initData(pt(s,function(u){return u[2]})),a.hasItemOption=!0,{from:i,to:o,line:a}}function tJ(n){n.registerComponentModel(KY),n.registerComponentView($Y),n.registerPreprocessor(function(e){hx(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var eJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Po),hg=de(),nJ=function(n,e,t,r){var i=r[0],o=r[1];if(!(!i||!o)){var a=Lh(n,i),s=Lh(n,o),l=a.coord,u=s.coord;l[0]=rn(l[0],-1/0),l[1]=rn(l[1],-1/0),u[0]=rn(u[0],1/0),u[1]=rn(u[1],1/0);var c=xv([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function pg(n){return!isNaN(n)&&!isFinite(n)}function WP(n,e,t,r){var i=1-n;return pg(e[i])&&pg(t[i])}function rJ(n,e){var t=e.coord[0],r=e.coord[1],i={coord:t,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return Vs(n,"cartesian2d")?t&&r&&(WP(1,t,r)||WP(0,t,r))?!0:UY(n,i,o):Nh(n,i)||Nh(n,o)}function jP(n,e,t,r,i){var o=r.coordinateSystem,a=n.getItemModel(e),s,l=Mt(a.get(t[0]),i.getWidth()),u=Mt(a.get(t[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),h=n.getValues(["x1","y1"],e),d=o.clampData(c),f=o.clampData(h),g=[];t[0]==="x0"?g[0]=d[0]>f[0]?h[0]:c[0]:g[0]=d[0]>f[0]?c[0]:h[0],t[1]==="y0"?g[1]=d[1]>f[1]?h[1]:c[1]:g[1]=d[1]>f[1]?c[1]:h[1],s=r.getMarkerPosition(g,t,!0)}else{var y=n.get(t[0],e),_=n.get(t[1],e),v=[y,_];o.clampData&&o.clampData(v,v),s=o.dataToPoint(v,!0)}if(Vs(o,"cartesian2d")){var p=o.getAxis("x"),x=o.getAxis("y"),y=n.get(t[0],e),_=n.get(t[1],e);pg(y)?s[0]=p.toGlobalCoord(p.getExtent()[t[0]==="x0"?0:1]):pg(_)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var HP=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],iJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(o){var a=Po.getMarkerModelFromSeries(o,"markArea");if(a){var s=a.getData();s.each(function(l){var u=pt(HP,function(h){return jP(s,l,h,o,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,i,o){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new jt});this.group.add(c.group),this.markKeep(c);var h=oJ(a,t,r);r.setData(h),h.each(function(d){var f=pt(HP,function(C){return jP(h,d,C,t,o)}),g=a.getAxis("x").scale,y=a.getAxis("y").scale,_=g.getExtent(),v=y.getExtent(),p=[g.parse(h.get("x0",d)),g.parse(h.get("x1",d))],x=[y.parse(h.get("y0",d)),y.parse(h.get("y1",d))];Vr(p),Vr(x);var b=!(_[0]>p[1]||_[1]<p[0]||v[0]>x[1]||v[1]<x[0]),S=!b;h.setItemLayout(d,{points:f,allClipped:S});var M=h.getItemModel(d).getModel("itemStyle").getItemStyle(),I=Vc(l,"color");M.fill||(M.fill=I,Tt(M.fill)&&(M.fill=kp(M.fill,.4))),M.stroke||(M.stroke=I),h.setItemVisual(d,"style",M)}),h.diff(hg(c).data).add(function(d){var f=h.getItemLayout(d);if(!f.allClipped){var g=new tr({shape:{points:f.points}});h.setItemGraphicEl(d,g),c.group.add(g)}}).update(function(d,f){var g=hg(c).data.getItemGraphicEl(f),y=h.getItemLayout(d);y.allClipped?g&&c.group.remove(g):(g?_e(g,{shape:{points:y.points}},r,d):g=new tr({shape:{points:y.points}}),h.setItemGraphicEl(d,g),c.group.add(g))}).remove(function(d){var f=hg(c).data.getItemGraphicEl(d);c.group.remove(f)}).execute(),h.eachItemGraphicEl(function(d,f){var g=h.getItemModel(f),y=h.getItemVisual(f,"style");d.useStyle(h.getItemVisual(f,"style")),Nn(d,_n(g),{labelFetcher:r,labelDataIndex:f,defaultText:h.getName(f)||"",inheritColor:Tt(y.fill)?kp(y.fill,1):"#000"}),Ln(d,g),Ze(d,null,null,g.get(["emphasis","disabled"])),Ut(d).dataModel=r}),hg(c).data=h,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(vx);function oJ(n,e,t){var r,i,o=["x0","y0","x1","y1"];if(n){var a=pt(n&&n.dimensions,function(u){var c=e.getData(),h=c.getDimensionInfo(c.mapDimension(u))||{};return lt(lt({},h),{name:u,ordinalMeta:null})});i=pt(o,function(u,c){return{name:u,type:a[c%2].type}}),r=new nr(i,t)}else i=[{name:"value",type:"float"}],r=new nr(i,t);var s=pt(t.get("data"),qt(nJ,e,n,t));n&&(s=Me(s,qt(rJ,n)));var l=n?function(u,c,h,d){var f=u.coord[Math.floor(d/2)][d%2];return ha(f,i[d])}:function(u,c,h,d){return ha(u.value,i[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}function aJ(n){n.registerComponentModel(eJ),n.registerComponentView(iJ),n.registerPreprocessor(function(e){hx(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var sJ=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},mx=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,i=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),ht(r)&&R(r,function(o,a){Tt(o)&&(o={type:o}),r[a]=Yt(o,sJ(i,o.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<t.length;i++){var o=t[i].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var r=[],i=[];t.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var h=l.legendVisualProvider,d=h.getAllNames();t.isSeriesFiltered(l)||(i=i.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&by(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=Lt(),s=pt(o,function(l){return(Tt(l)||ye(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new ke(l,this,this.ecModel))},this);this._data=Me(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;R(o,function(a){r[a.get("name")]=!1})}r[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var r=this.option.selected;r.hasOwnProperty(t)||(r[t]=!0),this[r[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,r=this.option.selected;R(t,function(i){r[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,r=this.option.selected;R(t,function(i){var o=i.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},e.prototype.isSelected=function(t){var r=this.option.selected;return!(r.hasOwnProperty(t)&&!r[t])&&te(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(le),vu=qt,_x=R,dg=jt,UP=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new dg),this.group.add(this._selectorGroup=new dg),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var a=t.get("align"),s=t.get("orient");(!a||a==="auto")&&(a=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,t,r,i,l,s,u);var c=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},d=t.get("padding"),f=dn(c,h,d),g=this.layoutInner(t,a,f,o,l,u),y=dn(Ft({width:g.width,height:g.height},c),h,d);this.group.x=y.x-g.x,this.group.y=y.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=tP(g,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,i,o,a,s,l){var u=this.getContentGroup(),c=Lt(),h=r.get("selectedMode"),d=[];i.eachRawSeries(function(f){!f.get("legendHoverLink")&&d.push(f.id)}),_x(r.getData(),function(f,g){var y=f.get("name");if(!this.newlineDisabled&&(y===""||y===`
102
+ `)){var _=new dg;_.newline=!0,u.add(_);return}var v=i.getSeriesByName(y)[0];if(!c.get(y)){if(v){var p=v.getData(),x=p.getVisual("legendLineStyle")||{},b=p.getVisual("legendIcon"),S=p.getVisual("style"),M=this._createItem(v,y,g,f,r,t,x,S,b,h,o);M.on("click",vu(XP,y,null,o,d)).on("mouseover",vu(xx,v.name,null,o,d)).on("mouseout",vu(bx,v.name,null,o,d)),i.ssr&&M.eachChild(function(I){var C=Ut(I);C.seriesIndex=v.seriesIndex,C.dataIndex=g,C.ssrType="legend"}),c.set(y,!0)}else i.eachRawSeries(function(I){if(!c.get(y)&&I.legendVisualProvider){var C=I.legendVisualProvider;if(!C.containName(y))return;var A=C.indexOfName(y),D=C.getItemVisual(A,"style"),N=C.getItemVisual(A,"legendIcon"),L=_r(D.fill);L&&L[3]===0&&(L[3]=.2,D=lt(lt({},D),{fill:po(L,"rgba")}));var E=this._createItem(I,y,g,f,r,t,{},D,N,h,o);E.on("click",vu(XP,null,y,o,d)).on("mouseover",vu(xx,null,y,o,d)).on("mouseout",vu(bx,null,y,o,d)),i.ssr&&E.eachChild(function(k){var z=Ut(k);z.seriesIndex=I.seriesIndex,z.dataIndex=g,z.ssrType="legend"}),c.set(y,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(y)||console.warn(y+" series not exists. Legend data should be same with series name or data name."))}},this),a&&this._createSelector(a,r,o,s,l)},e.prototype._createSelector=function(t,r,i,o,a){var s=this.getSelectorGroup();_x(t,function(l){var u=l.type,c=new ge({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(c);var h=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);Nn(c,{normal:h,emphasis:d},{defaultText:l.title}),hs(c)})},e.prototype._createItem=function(t,r,i,o,a,s,l,u,c,h,d){var f=t.visualDrawType,g=a.get("itemWidth"),y=a.get("itemHeight"),_=a.isSelected(r),v=o.get("symbolRotate"),p=o.get("symbolKeepAspect"),x=o.get("icon");c=x||c||"roundRect";var b=lJ(c,o,l,u,f,_,d),S=new dg,M=o.getModel("textStyle");if(Et(t.getLegendIcon)&&(!x||x==="inherit"))S.add(t.getLegendIcon({itemWidth:g,itemHeight:y,icon:c,iconRotate:v,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:p}));else{var I=x==="inherit"&&t.getData().getVisual("symbol")?v==="inherit"?t.getData().getVisual("symbolRotate"):v:0;S.add(uJ({itemWidth:g,itemHeight:y,icon:c,iconRotate:I,itemStyle:b.itemStyle,symbolKeepAspect:p}))}var C=s==="left"?g+5:-5,A=s,D=a.get("formatter"),N=r;Tt(D)&&D?N=D.replace("{name}",r??""):Et(D)&&(N=D(r));var L=_?M.getTextColor():o.get("inactiveColor");S.add(new ge({style:ze(M,{text:N,x:C,y:y/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));var E=new fe({shape:S.getBoundingRect(),style:{fill:"transparent"}}),k=o.getModel("tooltip");return k.get("show")&&ys({el:E,componentModel:a,itemName:r,itemTooltipOption:k.option}),S.add(E),S.eachChild(function(z){z.silent=!0}),E.silent=!h,this.getContentGroup().add(S),hs(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(t,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();bs(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){bs("horizontal",u,t.get("selectorItemGap",!0));var d=u.getBoundingRect(),f=[-d.x,-d.y],g=t.get("selectorButtonGap",!0),y=t.getOrient().index,_=y===0?"width":"height",v=y===0?"height":"width",p=y===0?"y":"x";s==="end"?f[y]+=c[_]+g:h[y]+=d[_]+g,f[1-y]+=c[v]/2-d[v]/2,u.x=f[0],u.y=f[1],l.x=h[0],l.y=h[1];var x={x:0,y:0};return x[_]=c[_]+g+d[_],x[v]=Math.max(c[v],d[v]),x[p]=Math.min(0,d[p]+f[1-y]),x}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(He);function lJ(n,e,t,r,i,o,a){function s(_,v){_.lineWidth==="auto"&&(_.lineWidth=v.lineWidth>0?2:0),_x(_,function(p,x){_[x]==="inherit"&&(_[x]=v[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?r.decal:ql(h,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:t).opacity),s(u,r);var d=e.getModel("lineStyle"),f=d.getLineStyle();if(s(f,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),f.stroke==="auto"&&(f.stroke=r.fill),!o){var g=e.get("inactiveBorderWidth"),y=u[c];u.lineWidth=g==="auto"?r.lineWidth>0&&y?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=d.get("inactiveColor"),f.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function uJ(n){var e=n.icon||"roundRect",t=ln(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function XP(n,e,t,r){bx(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),xx(n,e,t,r)}function ZP(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,i=e.length;r<i&&!(t=e[r].states.emphasis);)r++;return t&&t.hoverLayer}function xx(n,e,t,r){ZP(t)||t.dispatchAction({type:"highlight",seriesName:n,name:e,excludeSeriesId:r})}function bx(n,e,t,r){ZP(t)||t.dispatchAction({type:"downplay",seriesName:n,name:e,excludeSeriesId:r})}function cJ(n){var e=n.findComponents({mainType:"legend"});e&&e.length&&n.filterSeries(function(t){for(var r=0;r<e.length;r++)if(!e[r].isSelected(t.name))return!1;return!0})}function Ph(n,e,t){var r=n==="allSelect"||n==="inverseSelect",i={},o=[];t.eachComponent({mainType:"legend",query:e},function(s){r?s[n]():s[n](e.name),qP(s,i),o.push(s.componentIndex)});var a={};return t.eachComponent("legend",function(s){R(i,function(l,u){s[l?"select":"unSelect"](u)}),qP(s,a)}),r?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function qP(n,e){var t=e||{};return R(n.getData(),function(r){var i=r.get("name");if(!(i===`
103
+ `||i==="")){var o=n.isSelected(i);kt(t,i)?t[i]=t[i]&&o:t[i]=o}}),t}function hJ(n){n.registerAction("legendToggleSelect","legendselectchanged",qt(Ph,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",qt(Ph,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",qt(Ph,"inverseSelect")),n.registerAction("legendSelect","legendselected",qt(Ph,"select")),n.registerAction("legendUnSelect","legendunselected",qt(Ph,"unSelect"))}function KP(n){n.registerComponentModel(mx),n.registerComponentView(UP),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,cJ),n.registerSubTypeDefaulter("legend",function(){return"plain"}),hJ(n)}var pJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,r,i){var o=Ol(t);n.prototype.init.call(this,t,r,i),YP(this,t,o)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),YP(this,this.option,t)},e.type="legend.scroll",e.defaultOption=la(mx.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}),e}(mx);function YP(n,e,t){var r=n.getOrient(),i=[1,1];i[r.index]=0,ca(e,t,{type:"box",ignoreSize:!!i})}var JP=jt,Sx=["width","height"],Mx=["x","y"],dJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new JP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new JP)},e.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,r,i,o,a,s,l){var u=this;n.prototype.renderInner.call(this,t,r,i,o,a,s,l);var c=this._controllerGroup,h=r.get("pageIconSize",!0),d=ht(h)?h:[h,h];g("pagePrev",0);var f=r.getModel("pageTextStyle");c.add(new ge({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(y,_){var v=y+"DataIndex",p=Sc(r.get("pageIcons",!0)[r.getOrient().name][_],{onclick:At(u._pageGo,u,v,r,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});p.name=y,c.add(p)}},e.prototype.layoutInner=function(t,r,i,o,a,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=Sx[u],h=Mx[u],d=Sx[1-u],f=Mx[1-u];a&&bs("horizontal",l,t.get("selectorItemGap",!0));var g=t.get("selectorButtonGap",!0),y=l.getBoundingRect(),_=[-y.x,-y.y],v=Wt(i);a&&(v[c]=i[c]-y[c]-g);var p=this._layoutContentAndController(t,o,v,u,c,d,f,h);if(a){if(s==="end")_[u]+=p[c]+g;else{var x=y[c]+g;_[u]-=x,p[h]-=x}p[c]+=y[c]+g,_[1-u]+=p[f]+p[d]/2-y[d]/2,p[d]=Math.max(p[d],y[d]),p[f]=Math.min(p[f],y[f]+_[1-u]),l.x=_[0],l.y=_[1],l.markRedraw()}return p},e.prototype._layoutContentAndController=function(t,r,i,o,a,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;bs(t.get("orient"),c,t.get("itemGap"),o?i.width:null,o?null:i.height),bs("horizontal",d,t.get("pageButtonItemGap",!0));var f=c.getBoundingRect(),g=d.getBoundingRect(),y=this._showController=f[a]>i[a],_=[-f.x,-f.y];r||(_[o]=c[u]);var v=[0,0],p=[-g.x,-g.y],x=Ht(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(y){var b=t.get("pageButtonPosition",!0);b==="end"?p[o]+=i[a]-g[a]:v[o]+=g[a]+x}p[1-o]+=f[s]/2-g[s]/2,c.setPosition(_),h.setPosition(v),d.setPosition(p);var S={x:0,y:0};if(S[a]=y?i[a]:f[a],S[s]=Math.max(f[s],g[s]),S[l]=Math.min(0,g[l]+p[1-o]),h.__rectSize=i[a],y){var M={x:0,y:0};M[a]=Math.max(i[a]-g[a]-x,0),M[s]=S[s],h.setClipPath(new fe({shape:M})),h.__rectSize=M[a]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var I=this._getPageInfo(t);return I.pageIndex!=null&&_e(c,{x:I.contentPosition[0],y:I.contentPosition[1]},y?t:null),this._updatePageInfoView(t,I),S},e.prototype._pageGo=function(t,r,i){var o=this._getPageInfo(r)[t];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",d=r[h]!=null,f=i.childOfName(c);f&&(f.setStyle("fill",d?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),f.cursor=d?"pointer":"default")});var o=i.childOfName("pageText"),a=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",Tt(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=Sx[a],l=Mx[a],u=this._findTargetItemIndex(r),c=i.children(),h=c[u],d=c.length,f=d?1:0,g={contentPosition:[i.x,i.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var y=b(h);g.contentPosition[a]=-y.s;for(var _=u+1,v=y,p=y,x=null;_<=d;++_)x=b(c[_]),(!x&&p.e>v.s+o||x&&!S(x,v.s))&&(p.i>v.i?v=p:v=x,v&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=v.i),++g.pageCount)),p=x;for(var _=u-1,v=y,p=y,x=null;_>=-1;--_)x=b(c[_]),(!x||!S(p,x.s))&&v.i<p.i&&(p=v,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=v.i),++g.pageCount,++g.pageIndex),v=x;return g;function b(M){if(M){var I=M.getBoundingRect(),C=I[l]+M[l];return{s:C,e:C+I[s],i:M.__legendDataIndex}}}function S(M,I){return M.e>=I&&M.s<=I+o}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===t&&(r=s)}),r??o},e.type="legend.scroll",e}(UP);function fJ(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function gJ(n){ie(KP),n.registerComponentModel(pJ),n.registerComponentView(dJ),fJ(n)}function vJ(n){ie(KP),ie(gJ)}var yJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=la(Ah.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ah),Ix=de();function mJ(n,e,t){Ix(n).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function _J(n,e){for(var t=Ix(n).coordSysRecordMap,r=t.keys(),i=0;i<r.length;i++){var o=r[i],a=t.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||$P(t,a))}}}function $P(n,e){if(e){n.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function xJ(n,e){var t={model:e,containsPoint:qt(wJ,e),dispatchAction:qt(bJ,n),dataZoomInfoMap:null,controller:null},r=t.controller=new hh(n.getZr());return R(["pan","zoom","scrollMove"],function(i){r.on(i,function(o){var a=[];t.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,o);!s.model.get("disabled",!0)&&u&&a.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),a.length&&t.dispatchAction(a)})}),t}function bJ(n,e){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function wJ(n,e,t,r){return n.coordinateSystem.containPoint([t,r])}function SJ(n){var e,t="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return n.each(function(o){var a=o.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;r[t+s]>r[t+e]&&(e=s),i=i&&a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function MJ(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=Ix(t),i=r.coordSysRecordMap||(r.coordSysRecordMap=Lt());i.each(function(o){o.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var a=qN(o);R(a.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,xJ(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Lt());c.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),i.each(function(o){var a=o.controller,s,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){$P(i,o);return}var c=SJ(l);a.enable(c.controlType,c.opt),a.setPointerChecker(o.containsPoint),Hl(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var IJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,i){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),mJ(i,t,{pan:At(Tx.pan,this),zoom:At(Tx.zoom,this),scrollMove:At(Tx.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){_J(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(J_),Tx={zoom:function(n,e,t,r){var i=this.range,o=i.slice(),a=n.axisModels[0];if(a){var s=Cx[e](null,[r.originX,r.originY],a,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Xs(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}},pan:QP(function(n,e,t,r,i,o){var a=Cx[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,t);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:QP(function(n,e,t,r,i,o){var a=Cx[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,t);return a.signal*(n[1]-n[0])*o.scrollDelta})};function QP(n){return function(e,t,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=n(a,s,e,t,r,i);if(Xs(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var Cx={grid:function(n,e,t,r,i){var o=t.axis,a={},s=i.model.coordinateSystem.getRect();return n=n||[0,0],o.dim==="x"?(a.pixel=e[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(n,e,t,r,i){var o=t.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(a.pixel=e[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(n,e,t,r,i){var o=t.axis,a=i.model.coordinateSystem.getRect(),s={};return n=n||[0,0],o.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function tE(n){$_(n),n.registerComponentModel(yJ),n.registerComponentView(IJ),MJ(n)}var TJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=la(Ah.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ah),Eh=fe,eE=7,CJ=1,Ax=30,AJ=7,Rh="horizontal",nE="vertical",kJ=5,DJ=["line","bar","candlestick","scatter"],LJ={easing:"cubicOut",duration:100,delay:0},NJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=At(this._onBrush,this),this._onBrushEnd=At(this._onBrushEnd,this)},e.prototype.render=function(t,r,i,o){if(n.prototype.render.apply(this,arguments),Hl(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Rc(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new jt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,i=t.get("brushSelect"),o=i?AJ:0,a=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Rh?{right:s.width-a.x-a.width,top:s.height-Ax-eE-o,width:a.width,height:Ax}:{right:eE,top:a.y,width:Ax,height:a.height},u=Ol(t.option);R(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=dn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===nE&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,i=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Rh&&!a?{scaleY:l?1:-1,scaleX:1}:i===Rh&&a?{scaleY:l?1:-1,scaleX:-1}:i===nE&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,o=t.get("brushSelect");i.add(new Eh({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var a=new Eh({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:At(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(a)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,i=this._shadowSize||[],o=t.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var h=a.getDataExtent(l),d=(h[1]-h[0])*.3;h=[h[0]-d,h[1]+d];var f=[0,r[1]],g=[0,r[0]],y=[[r[0],0],[0,0]],_=[],v=g[1]/(a.count()-1),p=0,x=Math.round(a.count()/r[0]),b;a.each([l],function(A,D){if(x>0&&D%x){p+=v;return}var N=A==null||isNaN(A)||A==="",L=N?0:Ae(A,h,f,!0);N&&!b&&D?(y.push([y[y.length-1][0],0]),_.push([_[_.length-1][0],0])):!N&&b&&(y.push([p,0]),_.push([p,0])),y.push([p,L]),_.push([p,L]),p+=v,b=N}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=_}this._shadowData=a,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var S=this.dataZoomModel;function M(A){var D=S.getModel(A?"selectedDataBackground":"dataBackground"),N=new jt,L=new tr({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new er({shape:{points:c},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return N.add(L),N.add(E),N}for(var I=0;I<3;I++){var C=M(I===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var i,o=this.ecModel;return t.eachTargetAxis(function(a,s){var l=t.getAxisProxy(a,s).getTargetSeriesModels();R(l,function(u){if(!i&&!(r!==!0&&te(DJ,u.get("type"))<0)){var c=o.getComponent(Ma(a),s).axis,h=PJ(a),d,f=u.coordinateSystem;h!=null&&f.getOtherAxis&&(d=f.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),i={thisAxis:c,series:u,thisDim:a,otherDim:h,otherAxisInverse:d}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,i=r.handles=[null,null],o=r.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),d=r.filler=new Eh({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(d),a.add(new Eh({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:CJ,fill:"rgba(0,0,0,0)"}})),R([0,1],function(x){var b=l.get("handleIcon");!Wd[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b,process.env.NODE_ENV!=="production"&&gi("handleIcon now needs 'path://' prefix when using a path string"));var S=ln(b,-1,0,2,2,null,!0);S.attr({cursor:rE(this._orient),draggable:!0,drift:At(this._onDragMove,this,x),ondragend:At(this._onDragEnd,this),onmouseover:At(this._showDataInfo,this,!0),onmouseout:At(this._showDataInfo,this,!1),z2:5});var M=S.getBoundingRect(),I=l.get("handleSize");this._handleHeight=Mt(I,this._size[1]),this._handleWidth=M.width/M.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),hs(S);var C=l.get("handleColor");C!=null&&(S.style.fill=C),a.add(i[x]=S);var A=l.getModel("textStyle"),D=l.get("handleLabel")||{},N=D.show||!1;t.add(o[x]=new ge({silent:!0,invisible:!N,style:ze(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var f=d;if(h){var g=Mt(l.get("moveHandleSize"),s[1]),y=r.moveHandle=new fe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),_=g*.8,v=r.moveHandleIcon=ln(l.get("moveHandleIcon"),-_/2,-_/2,_,_,"#fff",!0);v.silent=!0,v.y=s[1]+g/2-.5,y.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var p=Math.min(s[1]/2,Math.max(g,10));f=r.moveZone=new fe({invisible:!0,shape:{y:s[1]-p,height:g+p}}),f.on("mouseover",function(){u.enterEmphasis(y)}).on("mouseout",function(){u.leaveEmphasis(y)}),a.add(y),a.add(v),a.add(f)}f.attr({draggable:!0,cursor:rE(this._orient),drift:At(this._onDragMove,this,"all"),ondragstart:At(this._showDataInfo,this,!0),ondragend:At(this._onDragEnd,this),onmouseover:At(this._showDataInfo,this,!0),onmouseout:At(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Ae(t[0],[0,100],r,!0),Ae(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var i=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Xs(r,o,a,i.get("zoomLock")?"all":t,s.minSpan!=null?Ae(s.minSpan,l,a,!0):null,s.maxSpan!=null?Ae(s.maxSpan,l,a,!0):null);var u=this._range,c=this._range=Vr([Ae(o[0],a,l,!0),Ae(o[1],a,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,i=this._handleEnds,o=Vr(i.slice()),a=this._size;R([0,1],function(f){var g=r.handles[f],y=this._handleHeight;g.attr({scaleX:y/2,scaleY:y/2,x:i[f]+(f?-1:1),y:a[1]/2-y/2})},this),r.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,o[0],o[1],a[0]],c=0;c<l.length;c++){var h=l[c],d=h.getClipPath();d||(d=new fe,h.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:a[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var r=this.dataZoomModel,i=this._displayables,o=i.handleLabels,a=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var d=Vr(this._handleEnds.slice());f.call(this,0),f.call(this,1);function f(g){var y=vs(i.handles[g].parent,this.group),_=yd(g===0?"right":"left",y),v=this._handleWidth/2+kJ,p=_i([d[g]+(g===0?-v:v),this._size[1]/2],y);o[g].setStyle({x:p[0],y:p[1],verticalAlign:a===Rh?"middle":_,align:a===Rh?_:"center",text:s[g]})}},e.prototype._formatLabel=function(t,r){var i=this.dataZoomModel,o=i.get("labelFormatter"),a=i.get("labelPrecision");(a==null||a==="auto")&&(a=r.getPixelPrecision());var s=t==null||isNaN(t)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(a,20));return Et(o)?o(t,s):Tt(o)?o.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var r=this.dataZoomModel.get("handleLabel")||{},i=r.show||!1,o=this.dataZoomModel.getModel(["emphasis","handleLabel"]),a=o.get("show")||!1,s=t||this._dragging?a:i,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,r,i,o){this._dragging=!0,co(o.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=_i([r,i],a,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",i[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,i=t.offsetY;this._brushStart=new $t(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(i.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=Vr([Ae(i.x,a,s,!0),Ae(i.x+i.width,a,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(co(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var i=this._displayables,o=this.dataZoomModel,a=i.brushRect;a||(a=i.brushRect=new Eh({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),a.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?LJ:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=qN(this.dataZoomModel).infoList;if(!t&&r.length){var i=r[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var o=this.api.getWidth(),a=this.api.getHeight();t={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return t},e.type="dataZoom.slider",e}(J_);function PJ(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function rE(n){return n==="vertical"?"ns-resize":"ew-resize"}function iE(n){n.registerComponentModel(TJ),n.registerComponentView(NJ),$_(n)}function EJ(n){ie(tE),ie(iE)}var oE={get:function(n,e,t){var r=Wt((RJ[n]||{})[e]);return t&&ht(r)?r[r.length-1]:r}},RJ={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]}},aE=wn.mapVisual,OJ=wn.eachVisual,zJ=ht,sE=R,VJ=Vr,BJ=Ae,fg=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&MP(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=At(t,this),this.controllerVisuals=sx(this.option.controller,r,t),this.targetVisuals=sx(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,o){r.push(o)}):r=Ne(t),r},e.prototype.eachTargetSeries=function(t,r){R(this.getTargetSeriesIndices(),function(i){var o=this.ecModel.getSeriesByIndex(i);o&&t.call(r,o)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(i){i===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,i){var o=this.option,a=o.precision,s=this.dataBound,l=o.formatter,u;i=i||["<",">"],ht(t)&&(t=t.slice(),u=!0);var c=r?t:u?[h(t[0]),h(t[1])]:h(t);if(Tt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Et(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+c[1]:t[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,r=VJ([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var i=t.dimensions,o=i.length-1;o>=0;o--){var a=i[o],s=t.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},o=r.target||(r.target={}),a=r.controller||(r.controller={});Yt(o,i),Yt(a,i);var s=this.isCategory();l.call(this,o),l.call(this,a),u.call(this,o,"inRange","outOfRange"),c.call(this,a);function l(h){zJ(r.color)&&!h.inRange&&(h.inRange={color:r.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,d,f){var g=h[d],y=h[f];g&&!y&&(y=h[f]={},sE(g,function(_,v){if(wn.isValidType(v)){var p=oE.get(v,"inactive",s);p!=null&&(y[v]=p,v==="color"&&!y.hasOwnProperty("opacity")&&!y.hasOwnProperty("colorAlpha")&&(y.opacity=[0,0]))}}))}function c(h){var d=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,f=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),y=this.getItemSymbol(),_=y||"roundRect";sE(this.stateList,function(v){var p=this.itemSize,x=h[v];x||(x=h[v]={color:s?g:[g]}),x.symbol==null&&(x.symbol=d&&Wt(d)||(s?_:[_])),x.symbolSize==null&&(x.symbolSize=f&&Wt(f)||(s?p[0]:[p[0],p[0]])),x.symbol=aE(x.symbol,function(M){return M==="none"?_:M});var b=x.symbolSize;if(b!=null){var S=-1/0;OJ(b,function(M){M>S&&(S=M)}),x.symbolSize=aE(b,function(M){return BJ(M,[0,S],[0,p[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(le),lE=[20,140],FJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=lE[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=lE[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):ht(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=Vr((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]<t[0]&&(r[0]=t[0]),r[1]<t[0]&&(r[1]=t[0]),r},e.prototype.getValueState=function(t){var r=this.option.range,i=this.getExtent();return(r[0]<=i[0]||r[0]<=t)&&(r[1]>=i[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(i){var o=[],a=i.getData();a.each(this.getDataDimensionIndex(a),function(s,l){t[0]<=s&&s<=t[1]&&o.push(l)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getVisualMeta=function(t){var r=uE(this,"outOfRange",this.getExtent()),i=uE(this,"inRange",this.option.range.slice()),o=[];function a(f,g){o.push({value:f,color:t(f,g)})}for(var s=0,l=0,u=i.length,c=r.length;l<c&&(!i.length||r[l]<=i[0]);l++)r[l]<i[s]&&a(r[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&o.length&&a(i[s],"outOfRange"),a(i[s],"inRange");for(var h=1;l<c;l++)(!i.length||i[i.length-1]<r[l])&&(h&&(o.length&&a(o[o.length-1].value,"outOfRange"),h=0),a(r[l],"outOfRange"));var d=o.length;return{stops:o,outerColors:[d?o[0].color:"transparent",d?o[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=la(fg.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(fg);function uE(n,e,t){if(t[0]===t[1])return t.slice();for(var r=200,i=(t[1]-t[0])/r,o=t[0],a=[],s=0;s<=r&&o<t[1];s++)a.push(o),o+=i;return a.push(t[1]),a}var cE=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r},e.prototype.render=function(t,r,i,o){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,r,i,o)},e.prototype.renderBackground=function(t){var r=this.visualMapModel,i=Rl(r.get("padding")||0),o=t.getBoundingRect();t.add(new fe({z2:-1,silent:!0,shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[3]+i[1],height:o.height+i[0]+i[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,r,i){i=i||{};var o=i.forceState,a=this.visualMapModel,s={};if(r==="color"){var l=a.get("contentColor");s.color=l}function u(f){return s[f]}function c(f,g){s[f]=g}var h=a.controllerVisuals[o||a.getValueState(t)],d=wn.prepareVisualTypes(h);return R(d,function(f){var g=h[f];i.convertOpacityToAlpha&&f==="opacity"&&(f="colorAlpha",g=h.__alphaForOpacity),wn.dependsOn(f,r)&&g&&g.applyVisual(t,u,c)}),s[r]},e.prototype.positionGroup=function(t){var r=this.visualMapModel,i=this.api;Dd(t,r.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,r,i,o){},e.type="visualMap",e}(He),hE=[["left","right","width"],["top","bottom","height"]];function pE(n,e,t){var r=n.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var o={width:e.getWidth(),height:e.getHeight()},a=r.orient==="horizontal"?1:0,s=hE[a],l=[0,null,10],u={},c=0;c<3;c++)u[hE[1-a][c]]=l[c],u[s[c]]=c===2?t[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][a],d=dn(u,o,r.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+d[h[1]]*.5<o[h[1]]*.5?0:1]}function gg(n,e){return R(n||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),n}var $i=Ae,GJ=R,dE=Math.min,kx=Math.max,WJ=12,jJ=6,HJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,r){n.prototype.init.call(this,t,r),this._hoverLinkFromSeriesMouseOver=At(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=At(this._hideIndicator,this)},e.prototype.doRender=function(t,r,i,o){(!o||o.type!=="selectDataRange"||o.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,r=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(r);var i=t.get("text");this._renderEndsText(r,i,0),this._renderEndsText(r,i,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(t,r,i){if(r){var o=r[1-i];o=o!=null?o+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),h=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new ge({style:ze(f,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":h,align:d==="horizontal"?h:"center",text:o})}))}},e.prototype._renderBar=function(t){var r=this.visualMapModel,i=this._shapes,o=r.itemSize,a=this._orient,s=this._useHandle,l=pE(r,this.api,o),u=i.mainGroup=this._createBarGroup(l),c=new jt;u.add(c),c.add(i.outOfRange=fE()),c.add(i.inRange=fE(null,s?vE(this._orient):null,At(this._dragHandle,this,"all",!1),At(this._dragHandle,this,"all",!0))),c.setClipPath(new fe({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var h=r.textStyleModel.getTextRect("国"),d=kx(h.width,h.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,u,0,o,d,a),this._createHandle(r,u,1,o,d,a)),this._createIndicator(r,u,o,d,a),t.add(u)},e.prototype._createHandle=function(t,r,i,o,a,s){var l=At(this._dragHandle,this,i,!1),u=At(this._dragHandle,this,i,!0),c=fi(t.get("handleSize"),o[0]),h=ln(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=vE(this._orient);h.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(v){co(v.event)}}),h.x=o[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ps(h,!0),r.add(h);var f=this.visualMapModel.textStyleModel,g=new ge({cursor:d,draggable:!0,drift:l,onmousemove:function(v){co(v.event)},ondragend:u,style:ze(f,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var y=[c,0],_=this._shapes;_.handleThumbs[i]=h,_.handleLabelPoints[i]=y,_.handleLabels[i]=g},e.prototype._createIndicator=function(t,r,i,o,a){var s=fi(t.get("indicatorSize"),i[0]),l=ln(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Tn){var c=l.style;l.useStyle(lt({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var h=this.visualMapModel.textStyleModel,d=new ge({silent:!0,invisible:!0,style:ze(h,{x:0,y:0,text:""})});this.group.add(d);var f=[(a==="horizontal"?o/2:jJ)+i[0]/2,0],g=this._shapes;g.indicator=l,g.indicatorLabel=d,g.indicatorLabelPoint=f,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,r,i,o){if(this._useHandle){if(this._dragging=!r,!r){var a=this._applyTransform([i,o],this._shapes.mainGroup,!0);this._updateInterval(t,a[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():gE(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,r=this._dataInterval=t.getSelected(),i=t.getExtent(),o=[0,t.itemSize[1]];this._handleEnds=[$i(r[0],i,o,!0),$i(r[1],i,o,!0)]},e.prototype._updateInterval=function(t,r){r=r||0;var i=this.visualMapModel,o=this._handleEnds,a=[0,i.itemSize[1]];Xs(r,o,a,t,0);var s=i.getExtent();this._dataInterval=[$i(o[0],a,s,!0),$i(o[1],a,s,!0)]},e.prototype._updateView=function(t){var r=this.visualMapModel,i=r.getExtent(),o=this._shapes,a=[0,r.itemSize[1]],s=t?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,a,"outOfRange");o.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),o.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,r,i,o){var a={forceState:o,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,a),l=[this.getControllerVisual(t[0],"symbolSize",a),this.getControllerVisual(t[1],"symbolSize",a)],u=this._createBarPoints(i,l);return{barColor:new xc(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,r){var i=100,o=[],a=(t[1]-t[0])/i;o.push({color:this.getControllerVisual(t[0],"color",r),offset:0});for(var s=1;s<i;s++){var l=t[0]+a*s;if(l>t[1])break;o.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return o.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),o},e.prototype._createBarPoints=function(t,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,i=this.visualMapModel.get("inverse");return new jt(r==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var i=this._shapes,o=this.visualMapModel,a=i.handleThumbs,s=i.handleLabels,l=o.itemSize,u=o.getExtent(),c=this._applyTransform("left",i.mainGroup);GJ([0,1],function(h){var d=a[h];d.setStyle("fill",r.handlesColor[h]),d.y=t[h];var f=$i(t[h],[0,l[1]],u,!0),g=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=g/l[0],d.x=l[0]-g/2;var y=_i(i.handleLabelPoints[h],vs(d,this.group));if(this._orient==="horizontal"){var _=c==="left"||c==="top"?(l[0]-g)/2:(l[0]-g)/-2;y[1]+=_}s[h].setStyle({x:y[0],y:y[1],text:o.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,i,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var d={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",d),g=this.getControllerVisual(t,"symbolSize"),y=$i(t,s,u,!0),_=l[0]-g/2,v={x:h.x,y:h.y};h.y=y,h.x=_;var p=_i(c.indicatorLabelPoint,vs(h,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),S=this._orient,M=S==="horizontal";x.setStyle({text:(i||"")+a.formatValueText(r),verticalAlign:M?b:"middle",align:M?"center":b});var I={x:_,y,style:{fill:f}},C={style:{x:p[0],y:p[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=v.x,h.y=v.y,h.animateTo(I,A),x.animateTo(C,A)}else h.attr(I),x.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var N=0;N<D.length;N++)this.api.enterBlur(D[N])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(r){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,o=t._applyTransform([r.offsetX,r.offsetY],t._shapes.mainGroup,!0,!0);o[1]=dE(kx(0,o[1]),i[1]),t._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,r){var i=this.visualMapModel,o=i.itemSize;if(i.option.hoverLink){var a=[0,o[1]],s=i.getExtent();t=dE(kx(a[0],t),a[1]);var l=UJ(i,s,a),u=[t-l,t+l],c=$i(t,a,s,!0),h=[$i(u[0],a,s,!0),$i(u[1],a,s,!0)];u[0]<a[0]&&(h[0]=-1/0),u[1]>a[1]&&(h[1]=1/0),r&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,f=[];(r||gE(i))&&(f=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var g=Kz(d,f);this._dispatchHighDown("downplay",gg(g[0],i)),this._dispatchHighDown("highlight",gg(g[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(Is(t.target,function(l){var u=Ut(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(i)){var a=i.getData(r.dataType),s=a.getStore().get(o.getDataDimensionIndex(a),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i<r.length;i++)this.api.leaveBlur(r[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",gg(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,r,i,o){var a=vs(r,o?null:this.group);return ht(t)?_i(t,a,i):yd(t,a,i)},e.prototype._dispatchHighDown=function(t,r){r&&r.length&&this.api.dispatchAction({type:t,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(cE);function fE(n,e,t,r){return new tr({shape:{points:n},draggable:!!t,cursor:e,drift:t,onmousemove:function(i){co(i.event)},ondragend:r})}function UJ(n,e,t){var r=WJ/2,i=n.get("hoverLinkDataSize");return i&&(r=$i(i,e,t,!0)/2),r}function gE(n){var e=n.get("hoverLinkOnHandle");return!!(e??n.get("realtime"))}function vE(n){return n==="vertical"?"ns-resize":"ew-resize"}var XJ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},ZJ=function(n,e){e.eachComponent({mainType:"visualMap",query:n},function(t){t.setSelected(n.selected)})},qJ=[{createOnAllSeries:!0,reset:function(n,e){var t=[];return e.eachComponent("visualMap",function(r){var i=n.pipelineContext;!r.isTargetSeries(n)||i&&i.large||t.push(vY(r.stateList,r.targetVisuals,At(r.getValueState,r),r.getDataDimensionIndex(n.getData())))}),t}},{createOnAllSeries:!0,reset:function(n,e){var t=n.getData(),r=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(n)){var o=i.getVisualMeta(At(KJ,null,n,i))||{stops:[],outerColors:[]},a=i.getDataDimensionIndex(t);a>=0&&(o.dimension=a,r.push(o))}}),n.getData().setVisual("visualMeta",r)}}];function KJ(n,e,t,r){for(var i=e.targetVisuals[r],o=wn.prepareVisualTypes(i),a={color:Vc(n.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,h,d)}return a.color;function h(f){return a[f]}function d(f,g){a[f]=g}}var yE=R;function YJ(n){var e=n&&n.visualMap;ht(e)||(e=e?[e]:[]),yE(e,function(t){if(t){yu(t,"splitList")&&!yu(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&ht(r)&&yE(r,function(i){Vt(i)&&(yu(i,"start")&&!yu(i,"min")&&(i.min=i.start),yu(i,"end")&&!yu(i,"max")&&(i.max=i.end))})}})}function yu(n,e){return n&&n.hasOwnProperty&&n.hasOwnProperty(e)}var mE=!1;function _E(n){mE||(mE=!0,n.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(XJ,ZJ),R(qJ,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(YJ))}function xE(n){n.registerComponentModel(FJ),n.registerComponentView(HJ),_E(n)}var JJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],$J[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var o=this.option.categories;this.resetVisual(function(a,s){i==="categories"?(a.mappingMethod="category",a.categories=Wt(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=pt(this._pieceList,function(l){return l=Wt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},i=wn.listVisualTypes(),o=this.isCategory();R(t.pieces,function(s){R(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),R(r,function(s,l){var u=!1;R(this.stateList,function(c){u=u||a(t,c,l)||a(t.target,c,l)},this),!u&&R(this.stateList,function(c){(t[c]||(t[c]={}))[l]=oE.get(l,c==="inRange"?"active":"inactive",o)})},this);function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var i=this.option,o=this._pieceList,a=(r?i:t).selected||{};if(i.selected=a,R(o,function(l,u){var c=this.getSelectedMapKey(l);a.hasOwnProperty(c)||(a[c]=!0)},this),i.selectedMode==="single"){var s=!1;R(o,function(l,u){var c=this.getSelectedMapKey(l);a[c]&&(s?a[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Wt(t)},e.prototype.getValueState=function(t){var r=wn.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],i=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=wn.findPieceIndex(l,i);c===t&&a.push(u)},this),r.push({seriesId:o.id,dataIndex:a})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var i=t.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],i=["",""],o=this;function a(c,h){var d=o.getRepresentValue({interval:c});h||(h=o.getValueState(d));var f=t(d,h);c[0]===-1/0?i[0]=f:c[1]===1/0?i[1]=f:r.push({value:c[0],color:f},{value:c[1],color:f})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var h=c.interval;h&&(h[0]>u&&a([u,h[0]],"outOfRange"),a(h.slice()),u=h[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=la(fg.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(fg),$J={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(t)!==o&&t<5;)t++;e.precision=t,o=+o.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;n.push({interval:[s,l],close:[1,1]})}e.maxOpen&&n.push({interval:[r[1],1/0],close:[0,0]}),_2(n),R(n,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(n){var e=this.option;R(e.categories,function(t){n.push({text:this.formatValueText(t,!0),value:t})},this),bE(e,n)},pieces:function(n){var e=this.option;R(e.pieces,function(t,r){Vt(t)||(t={value:t});var i={text:"",index:r};if(t.label!=null&&(i.text=t.label),t.hasOwnProperty("value")){var o=i.value=t.value;i.interval=[o,o],i.close=[1,1]}else{for(var a=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var d=[["gte","gt","min"],["lte","lt","max"]][h],f=0;f<3&&a[h]==null;f++)a[h]=t[d[f]],s[h]=l[f],c[h]=f===2;a[h]==null&&(a[h]=u[h])}c[0]&&a[1]===1/0&&(s[0]=0),c[1]&&a[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&a[0]>a[1]&&console.warn("Piece "+r+"is illegal: "+a+" lower bound should not greater then uppper bound."),a[0]===a[1]&&s[0]&&s[1]&&(i.value=a[0])}i.visual=wn.retrieveVisuals(t),n.push(i)},this),bE(e,n),_2(n),R(n,function(t){var r=t.close,i=[["<","≤"][r[1]],[">","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function bE(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}var QJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,i=r.get("textGap"),o=r.textStyleModel,a=o.getFont(),s=o.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),h=c.endsText,d=rn(r.get("showLabel",!0),!h),f=!r.get("selectedMode");h&&this._renderEndsText(t,h[0],u,d,l),R(c.viewPieceList,function(g){var y=g.piece,_=new jt;_.onclick=At(this._onItemClick,this,y),this._enableHoverLink(_,g.indexInModelPieceList);var v=r.getRepresentValue(y);if(this._createItemSymbol(_,v,[0,0,u[0],u[1]],f),d){var p=this.visualMapModel.getValueState(v);_.add(new ge({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:y.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:p==="outOfRange"?.5:1},silent:f}))}t.add(_)},this),h&&this._renderEndsText(t,h[1],u,d,l),bs(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var i=this;t.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:a,batch:gg(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return pE(t,this.api,t.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,r,i,o,a){if(r){var s=new jt,l=this.visualMapModel.textStyleModel;s.add(new ge({style:ze(l,{x:o?a==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?a:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=pt(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),o=t.get("orient"),a=t.get("inverse");return(o==="horizontal"?a:!a)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(t,r,i,o){var a=ln(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color"));a.silent=o,t.add(a)},e.prototype._onItemClick=function(t){var r=this.visualMapModel,i=r.option,o=i.selectedMode;if(o){var a=Wt(i.selected),s=r.getSelectedMapKey(t);o==="single"||o===!0?(a[s]=!0,R(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},e.type="visualMap.piecewise",e}(cE);function wE(n){n.registerComponentModel(JJ),n.registerComponentView(QJ),_E(n)}function t$(n){ie(xE),ie(wE)}var e$={label:{enabled:!0},decal:{show:!1}},SE=de(),n$={};function r$(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Wt(e$);Yt(r.label,n.getLocaleModel().get("aria"),!1),Yt(t.option,r,!1),i(),o();function i(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=Lt();n.eachSeries(function(d){if(!d.isColorBySeries()){var f=h.get(d.type);f||(f={},h.set(d.type,f)),SE(d).scope=f}}),n.eachRawSeries(function(d){if(n.isSeriesFiltered(d))return;if(Et(d.enableAriaDecal)){d.enableAriaDecal();return}var f=d.getData();if(d.isColorBySeries()){var g=Cm(d.ecModel,d.name,n$,n.getSeriesCount()),y=f.getVisual("decal");f.setVisual("decal",b(y,g))}else{var _=d.getRawData(),v={},p=SE(d).scope;f.each(function(S){var M=f.getRawIndex(S);v[M]=S});var x=_.count();_.each(function(S){var M=v[S],I=_.getName(S)||S+"",C=Cm(d.ecModel,I,p,x),A=f.getItemVisual(M,"decal");f.setItemVisual(M,"decal",b(A,C))})}function b(S,M){var I=S?lt(lt({},M),S):M;return I.dirty=!0,I}})}}function o(){var u=e.getZr().dom;if(u){var c=n.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=Ft(h.option,c),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var d=n.getSeriesCount(),f=h.get(["data","maxCount"])||10,g=h.get(["series","maxCount"])||10,y=Math.min(d,g),_;if(!(d<1)){var v=s();if(v){var p=h.get(["general","withTitle"]);_=a(p,{title:v})}else _=h.get(["general","withoutTitle"]);var x=[],b=d>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);_+=a(b,{seriesCount:d}),n.eachSeries(function(C,A){if(A<y){var D=void 0,N=C.get("name"),L=N?"withName":"withoutName";D=d>1?h.get(["series","multiple",L]):h.get(["series","single",L]),D=a(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var E=C.getData();if(E.count()>f){var k=h.get(["data","partialData"]);D+=a(k,{displayCnt:f})}else D+=h.get(["data","allData"]);for(var z=h.get(["data","separator","middle"]),F=h.get(["data","separator","end"]),W=h.get(["data","excludeDimensionId"]),q=[],j=0;j<E.count();j++)if(j<f){var J=E.getName(j),H=W?Me(E.getValues(j),function(ut,at){return te(W,at)===-1}):E.getValues(j),K=h.get(["data",J?"withName":"withoutName"]);q.push(a(K,{name:J,value:H.join(z)}))}D+=q.join(z)+F,x.push(D)}});var S=h.getModel(["series","multiple","separator"]),M=S.get("middle"),I=S.get("end");_+=x.join(M)+I,u.setAttribute("aria-label",_)}}}}function a(u,c){if(!Tt(u))return u;var h=u;return R(c,function(d,f){h=h.replace(new RegExp("\\{\\s*"+f+"\\s*\\}","g"),d)}),h}function s(){var u=n.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=n.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function i$(n){if(!(!n||!n.aria)){var e=n.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},R(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function o$(n){n.registerPreprocessor(i$),n.registerVisual(n.PRIORITY.VISUAL.ARIA,r$)}var ME={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},a$=function(){function n(e){var t=this._condVal=Tt(e)?new RegExp(e):dw(e)?e:null;if(t==null){var r="";process.env.NODE_ENV!=="production"&&(r=Yn("Illegal regexp",e,"in")),Ie(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return Tt(t)?this._condVal.test(e):ye(t)?this._condVal.test(e+""):!1},n}(),s$=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),l$=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},n}(),u$=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},n}(),c$=function(){function n(){}return n.prototype.evaluate=function(){return!this.child.evaluate()},n}(),h$=function(){function n(){}return n.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,r=t(this.valueGetterParam),i=e?this.valueParser(r):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(e?i:r))return!1;return!0},n}();function Dx(n,e){if(n===!0||n===!1){var t=new s$;return t.value=n,t}var r="";return TE(n)||(process.env.NODE_ENV!=="production"&&(r=Yn("Illegal config. Expect a plain object but actually",n)),Ie(r)),n.and?IE("and",n,e):n.or?IE("or",n,e):n.not?p$(n,e):d$(n,e)}function IE(n,e,t){var r=e[n],i="";process.env.NODE_ENV!=="production"&&(i=Yn('"and"/"or" condition should only be `'+n+": [...]` and must not be empty array.","Illegal condition:",e)),ht(r)||Ie(i),r.length||Ie(i);var o=n==="and"?new l$:new u$;return o.children=pt(r,function(a){return Dx(a,t)}),o.children.length||Ie(i),o}function p$(n,e){var t=n.not,r="";process.env.NODE_ENV!=="production"&&(r=Yn('"not" condition should only be `not: {}`.',"Illegal condition:",n)),TE(t)||Ie(r);var i=new c$;return i.child=Dx(t,e),i.child||Ie(r),i}function d$(n,e){for(var t="",r=e.prepareGetValue(n),i=[],o=ue(n),a=n.parser,s=a?rI(a):null,l=0;l<o.length;l++){var u=o[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=kt(ME,u)?ME[u]:u,h=n[u],d=s?s(h):h,f=t6(c,d)||c==="reg"&&new a$(d);f||(process.env.NODE_ENV!=="production"&&(t=Yn('Illegal relational operation: "'+u+'" in condition:',n)),Ie(t)),i.push(f)}}i.length||(process.env.NODE_ENV!=="production"&&(t=Yn("Relational condition must have at least one operator.","Illegal condition:",n)),Ie(t));var g=new h$;return g.valueGetterParam=r,g.valueParser=s,g.getValue=e.getValue,g.subCondList=i,g}function TE(n){return Vt(n)&&!zn(n)}var f$=function(){function n(e,t){this._cond=Dx(e,t)}return n.prototype.evaluate=function(){return this._cond.evaluate()},n}();function g$(n,e){return new f$(n,e)}var v$={type:"echarts:filter",transform:function(n){for(var e=n.upstream,t,r=g$(n.config,{valueGetterAttrMap:Lt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;kt(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=Yn('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),Ie(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=Yn("Can not find dimension info via: "+u+`.
104
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
105
+ `,"Illegal condition:",s,`.
106
+ `)),Ie(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),i=[],o=0,a=e.count();o<a;o++)t=e.getRawDataItem(o),r.evaluate()&&i.push(t);return{data:i}}},Lx="";process.env.NODE_ENV!=="production"&&(Lx=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var y$={type:"echarts:sort",transform:function(n){var e=n.upstream,t=n.config,r="",i=Ne(t);i.length||(process.env.NODE_ENV!=="production"&&(r="Empty `config` in sort transform."),Ie(r));var o=[];R(i,function(c){var h=c.dimension,d=c.order,f=c.parser,g=c.incomparable;if(h==null&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "dimension" specified.'+Lx),Ie(r)),d!=="asc"&&d!=="desc"&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "order" specified.'+Lx),Ie(r)),g&&g!=="min"&&g!=="max"){var y="";process.env.NODE_ENV!=="production"&&(y='incomparable must be "min" or "max" rather than "'+g+'".'),Ie(y)}if(d!=="asc"&&d!=="desc"){var _="";process.env.NODE_ENV!=="production"&&(_='order must be "asc" or "desc" rather than "'+d+'".'),Ie(_)}var v=e.getDimensionInfo(h);v||(process.env.NODE_ENV!=="production"&&(r=Yn("Can not find dimension info via: "+h+`.
107
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
108
+ `,"Illegal config:",c,`.
109
+ `)),Ie(r));var p=f?rI(f):null;f&&!p&&(process.env.NODE_ENV!=="production"&&(r=Yn("Invalid parser name "+f+`.
110
+ `,"Illegal config:",c,`.
111
+ `)),Ie(r)),o.push({dimIdx:v.index,parser:p,comparator:new oI(d,g)})});var a=e.sourceFormat;a!==Fn&&a!==Hr&&(process.env.NODE_ENV!=="production"&&(r='sourceFormat "'+a+'" is not supported yet'),Ie(r));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,h){for(var d=0;d<o.length;d++){var f=o[d],g=e.retrieveValueFromItem(c,f.dimIdx),y=e.retrieveValueFromItem(h,f.dimIdx);f.parser&&(g=f.parser(g),y=f.parser(y));var _=f.comparator.evaluate(g,y);if(_!==0)return _}return 0}),{data:s}}};function m$(n){n.registerTransform(v$),n.registerTransform(y$)}var _$=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,r,i){n.prototype.init.call(this,t,r,i),this._sourceManager=new hI(this),pI(this)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),pI(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Hi},e}(le),x$=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(He);function b$(n){n.registerComponentModel(_$),n.registerComponentView(x$)}var Qi=Gi.CMD;function mu(n,e){return Math.abs(n-e)<1e-5}function Nx(n){var e=n.data,t=n.len(),r=[],i,o=0,a=0,s=0,l=0;function u(E,k){i&&i.length>2&&r.push(i),i=[E,k]}function c(E,k,z,F){mu(E,z)&&mu(k,F)||i.push(E,k,z,F,z,F)}function h(E,k,z,F,W,q){var j=Math.abs(k-E),J=Math.tan(j/4)*4/3,H=k<E?-1:1,K=Math.cos(E),ut=Math.sin(E),at=Math.cos(k),ot=Math.sin(k),Rt=K*W+z,Jt=ut*q+F,wt=at*W+z,xt=ot*q+F,Ot=W*J*H,bt=q*J*H;i.push(Rt-Ot*ut,Jt+bt*K,wt+Ot*ot,xt-bt*at,wt,xt)}for(var d,f,g,y,_=0;_<t;){var v=e[_++],p=_===1;switch(p&&(o=e[_],a=e[_+1],s=o,l=a,(v===Qi.L||v===Qi.C||v===Qi.Q)&&(i=[s,l])),v){case Qi.M:o=s=e[_++],a=l=e[_++],u(s,l);break;case Qi.L:d=e[_++],f=e[_++],c(o,a,d,f),o=d,a=f;break;case Qi.C:i.push(e[_++],e[_++],e[_++],e[_++],o=e[_++],a=e[_++]);break;case Qi.Q:d=e[_++],f=e[_++],g=e[_++],y=e[_++],i.push(o+2/3*(d-o),a+2/3*(f-a),g+2/3*(d-g),y+2/3*(f-y),g,y),o=g,a=y;break;case Qi.A:var x=e[_++],b=e[_++],S=e[_++],M=e[_++],I=e[_++],C=e[_++]+I;_+=1;var A=!e[_++];d=Math.cos(I)*S+x,f=Math.sin(I)*M+b,p?(s=d,l=f,u(s,l)):c(o,a,d,f),o=Math.cos(C)*S+x,a=Math.sin(C)*M+b;for(var D=(A?-1:1)*Math.PI/2,N=I;A?N>C:N<C;N+=D){var L=A?Math.max(N+D,C):Math.min(N+D,C);h(N,L,x,b,S,M)}break;case Qi.R:s=o=e[_++],l=a=e[_++],d=s+e[_++],f=l+e[_++],u(d,l),c(d,l,d,f),c(d,f,s,f),c(s,f,s,l),c(s,l,d,l);break;case Qi.Z:i&&c(o,a,s,l),o=s,a=l;break}}return i&&i.length>2&&r.push(i),r}function Px(n,e,t,r,i,o,a,s,l,u){if(mu(n,t)&&mu(e,r)&&mu(i,a)&&mu(o,s)){l.push(a,s);return}var c=2/u,h=c*c,d=a-n,f=s-e,g=Math.sqrt(d*d+f*f);d/=g,f/=g;var y=t-n,_=r-e,v=i-a,p=o-s,x=y*y+_*_,b=v*v+p*p;if(x<h&&b<h){l.push(a,s);return}var S=d*y+f*_,M=-d*v-f*p,I=x-S*S,C=b-M*M;if(I<h&&S>=0&&C<h&&M>=0){l.push(a,s);return}var A=[],D=[];$o(n,t,i,a,.5,A),$o(e,r,o,s,.5,D),Px(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Px(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function w$(n,e){var t=Nx(n),r=[];e=e||1;for(var i=0;i<t.length;i++){var o=t[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],d=o[u++],f=o[u++],g=o[u++],y=o[u++];Px(s,l,c,h,d,f,g,y,a,e),s=g,l=y}r.push(a)}return r}function CE(n,e,t){var r=n[e],i=n[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*t)),s=Math.floor(t/a);s===0&&(s=1,a=t);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,h=t-c;if(h>0)for(var u=0;u<h;u++)l[u%a]+=1;return l}function AE(n,e,t){for(var r=n.r0,i=n.r,o=n.startAngle,a=n.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),h=CE([l,u],c?0:1,e),d=(c?s:u)/h.length,f=0;f<h.length;f++)for(var g=(c?u:s)/h[f],y=0;y<h[f];y++){var _={};c?(_.startAngle=o+d*f,_.endAngle=o+d*(f+1),_.r0=r+g*y,_.r=r+g*(y+1)):(_.startAngle=o+g*y,_.endAngle=o+g*(y+1),_.r0=r+d*f,_.r=r+d*(f+1)),_.clockwise=n.clockwise,_.cx=n.cx,_.cy=n.cy,t.push(_)}}function S$(n,e,t){for(var r=n.width,i=n.height,o=r>i,a=CE([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=n[s]/a.length,d=0;d<a.length;d++)for(var f=n[l]/a[d],g=0;g<a[d];g++){var y={};y[u]=d*h,y[c]=g*f,y[s]=h,y[l]=f,y.x+=n.x,y.y+=n.y,t.push(y)}}function kE(n,e,t,r){return n*r-t*e}function M$(n,e,t,r,i,o,a,s){var l=t-n,u=r-e,c=a-i,h=s-o,d=kE(c,h,l,u);if(Math.abs(d)<1e-6)return null;var f=n-i,g=e-o,y=kE(f,g,c,h)/d;return y<0||y>1?null:new $t(y*l+n,y*u+e)}function I$(n,e,t){var r=new $t;$t.sub(r,t,e),r.normalize();var i=new $t;$t.sub(i,n,e);var o=i.dot(r);return o}function _u(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function T$(n,e,t){for(var r=n.length,i=[],o=0;o<r;o++){var a=n[o],s=n[(o+1)%r],l=M$(a[0],a[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&i.push({projPt:I$(l,e,t),pt:l,idx:o})}if(i.length<2)return[{points:n},{points:n}];i.sort(function(_,v){return _.projPt-v.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}for(var d=[u.pt.x,u.pt.y],f=[c.pt.x,c.pt.y],g=[d],y=[f],o=u.idx+1;o<=c.idx;o++)_u(g,n[o].slice());_u(g,f),_u(g,d);for(var o=c.idx+1;o<=u.idx+r;o++)_u(y,n[o%r].slice());return _u(y,d),_u(y,f),[{points:g},{points:y}]}function DE(n){var e=n.points,t=[],r=[];$p(e,t,r);var i=new Qt(t[0],t[1],r[0]-t[0],r[1]-t[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new $t,c=new $t;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),T$(e,u,c)}function vg(n,e,t,r){if(t===1)r.push(e);else{var i=Math.floor(t/2),o=n(e);vg(n,o[0],i,r),vg(n,o[1],t-i,r)}return r}function C$(n,e){for(var t=[],r=0;r<e;r++)t.push(em(n));return t}function A$(n,e){e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel}function k$(n){for(var e=[],t=0;t<n.length;)e.push([n[t++],n[t++]]);return e}function D$(n,e){var t=[],r=n.shape,i;switch(n.type){case"rect":S$(r,e,t),i=fe;break;case"sector":AE(r,e,t),i=Qn;break;case"circle":AE({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,t),i=Qn;break;default:var o=n.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=pt(w$(n.getUpdatedPathProxy(),a),function(v){return k$(v)}),l=s.length;if(l===0)vg(DE,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,h=pt(s,function(v){var p=[],x=[];$p(v,p,x);var b=(x[1]-p[1])*(x[0]-p[0]);return c+=b,{poly:v,area:b}});h.sort(function(v,p){return p.area-v.area});for(var d=e,u=0;u<l;u++){var f=h[u];if(d<=0)break;var g=u===l-1?d:Math.ceil(f.area/c*e);g<0||(vg(DE,{points:f.poly},g,t),d-=g)}}i=tr;break}if(!i)return C$(n,e);for(var y=[],u=0;u<t.length;u++){var _=new i;_.setShape(t[u]),A$(n,_),y.push(_)}return y}function L$(n,e){var t=n.length,r=e.length;if(t===r)return[n,e];for(var i=[],o=[],a=t<r?n:e,s=Math.min(t,r),l=Math.abs(r-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],d=l,f=2;f<s;){var g=a[f-2],y=a[f-1],_=a[f++],v=a[f++],p=a[f++],x=a[f++],b=a[f++],S=a[f++];if(d<=0){h.push(_,v,p,x,b,S);continue}for(var M=Math.min(d,c-1)+1,I=1;I<=M;I++){var C=I/M;$o(g,_,p,b,C,i),$o(y,v,x,S,C,o),g=i[3],y=o[3],h.push(i[1],o[1],i[2],o[2],g,y),_=i[5],v=o[5],p=i[6],x=o[6]}d-=M-1}return a===n?[h,e]:[n,h]}function LE(n,e){for(var t=n.length,r=n[t-2],i=n[t-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function N$(n,e){for(var t,r,i,o=[],a=[],s=0;s<Math.max(n.length,e.length);s++){var l=n[s],u=e[s],c=void 0,h=void 0;l?u?(t=L$(l,u),c=t[0],h=t[1],r=c,i=h):(h=LE(i||l,l),c=l):(c=LE(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}function NE(n){for(var e=0,t=0,r=0,i=n.length,o=0,a=i-2;o<i;a=o,o+=2){var s=n[a],l=n[a+1],u=n[o],c=n[o+1],h=s*c-u*l;e+=h,t+=(s+u)*h,r+=(l+c)*h}return e===0?[n[0]||0,n[1]||0]:[t/e/3,r/e/3,e]}function P$(n,e,t,r){for(var i=(n.length-2)/6,o=1/0,a=0,s=n.length,l=s-2,u=0;u<i;u++){for(var c=u*6,h=0,d=0;d<s;d+=2){var f=d===0?c:(c+d-2)%l+2,g=n[f]-t[0],y=n[f+1]-t[1],_=e[d]-r[0],v=e[d+1]-r[1],p=_-g,x=v-y;h+=p*p+x*x}h<o&&(o=h,a=u)}return a}function E$(n){for(var e=[],t=n.length,r=0;r<t;r+=2)e[r]=n[t-r-2],e[r+1]=n[t-r-1];return e}function R$(n,e,t,r){for(var i=[],o,a=0;a<n.length;a++){var s=n[a],l=e[a],u=NE(s),c=NE(l);o==null&&(o=u[2]<0!=c[2]<0);var h=[],d=[],f=0,g=1/0,y=[],_=s.length;o&&(s=E$(s));for(var v=P$(s,l,u,c)*6,p=_-2,x=0;x<p;x+=2){var b=(v+x)%p+2;h[x+2]=s[b]-u[0],h[x+3]=s[b+1]-u[1]}h[0]=s[v]-u[0],h[1]=s[v+1]-u[1];for(var S=r/t,M=-r/2;M<=r/2;M+=S){for(var I=Math.sin(M),C=Math.cos(M),A=0,x=0;x<s.length;x+=2){var D=h[x],N=h[x+1],L=l[x]-c[0],E=l[x+1]-c[1],k=L*C-E*I,z=L*I+E*C;y[x]=k,y[x+1]=z;var F=k-D,W=z-N;A+=F*F+W*W}if(A<g){g=A,f=M;for(var q=0;q<y.length;q++)d[q]=y[q]}}i.push({from:h,to:d,fromCp:u,toCp:c,rotation:-f})}return i}function yg(n){return n.__isCombineMorphing}var PE="__mOriginal_";function mg(n,e,t){var r=PE+e,i=n[r]||n[e];n[r]||(n[r]=n[e]);var o=t.replace,a=t.after,s=t.before;n[e]=function(){var l=arguments,u;return s&&s.apply(this,l),o?u=o.apply(this,l):u=i.apply(this,l),a&&a.apply(this,l),u}}function Oh(n,e){var t=PE+e;n[t]&&(n[e]=n[t],n[t]=null)}function EE(n,e){for(var t=0;t<n.length;t++)for(var r=n[t],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function RE(n,e){var t=n.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=N$(Nx(t),Nx(r)),o=i[0],a=i[1],s=n.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&EE(o,s),l&&EE(a,l),mg(e,"updateTransform",{replace:u}),e.transform=null;var c=R$(o,a,10,Math.PI),h=[];mg(e,"buildPath",{replace:function(d){for(var f=e.__morphT,g=1-f,y=[],_=0;_<c.length;_++){var v=c[_],p=v.from,x=v.to,b=v.rotation*f,S=v.fromCp,M=v.toCp,I=Math.sin(b),C=Math.cos(b);mp(y,S,M,f);for(var A=0;A<p.length;A+=2){var D=p[A],N=p[A+1],L=x[A],E=x[A+1],k=D*g+L*f,z=N*g+E*f;h[A]=k*C-z*I+y[0],h[A+1]=k*I+z*C+y[1]}var F=h[0],W=h[1];d.moveTo(F,W);for(var A=2;A<p.length;){var L=h[A++],E=h[A++],q=h[A++],j=h[A++],J=h[A++],H=h[A++];F===L&&W===E&&q===J&&j===H?d.lineTo(J,H):d.bezierCurveTo(L,E,q,j,J,H),F=J,W=H}}}})}function Ex(n,e,t){if(!n||!e)return e;var r=t.done,i=t.during;RE(n,e),e.__morphT=0;function o(){Oh(e,"buildPath"),Oh(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Ft({during:function(a){e.dirtyShape(),i&&i(a)},done:function(){o(),r&&r()}},t)),e}function O$(n,e,t,r,i,o){var a=16;n=i===t?0:Math.round(32767*(n-t)/(i-t)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var s=0,l,u=(1<<a)/2;u>0;u/=2){var c=0,h=0;(n&u)>0&&(c=1),(e&u)>0&&(h=1),s+=u*u*(3*c^h),h===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function _g(n){var e=1/0,t=1/0,r=-1/0,i=-1/0,o=pt(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(h,t),r=Math.max(c,r),i=Math.max(h,i),[c,h]}),a=pt(o,function(s,l){return{cp:s,z:O$(s[0],s[1],e,t,r,i),path:n[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function OE(n){return D$(n.path,n.count)}function Rx(){return{fromIndividuals:[],toIndividuals:[],count:0}}function z$(n,e,t){var r=[];function i(S){for(var M=0;M<S.length;M++){var I=S[M];yg(I)?i(I.childrenRef()):I instanceof ae&&r.push(I)}}i(n);var o=r.length;if(!o)return Rx();var a=t.dividePath||OE,s=a({path:e,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),Rx();r=_g(r),s=_g(s);for(var l=t.done,u=t.during,c=t.individualDelay,h=new go,d=0;d<o;d++){var f=r[d],g=s[d];g.parent=e,g.copyTransform(h),c||RE(f,g)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function y(S){for(var M=0;M<s.length;M++)s[M].addSelfToZr(S)}mg(e,"addSelfToZr",{after:function(S){y(S)}}),mg(e,"removeSelfFromZr",{after:function(S){for(var M=0;M<s.length;M++)s[M].removeSelfFromZr(S)}});function _(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Oh(e,"addSelfToZr"),Oh(e,"removeSelfFromZr")}var v=s.length;if(c)for(var p=v,x=function(){p--,p===0&&(_(),l&&l())},d=0;d<v;d++){var b=c?Ft({delay:(t.delay||0)+c(d,v,r[d],s[d]),done:x},t):t;Ex(r[d],s[d],b)}else e.__morphT=0,e.animateTo({__morphT:1},Ft({during:function(S){for(var M=0;M<v;M++){var I=s[M];I.__morphT=e.__morphT,I.dirtyShape()}u&&u(S)},done:function(){_();for(var S=0;S<n.length;S++)Oh(n[S],"updateTransform");l&&l()}},t));return e.__zr&&y(e.__zr),{fromIndividuals:r,toIndividuals:s,count:v}}function V$(n,e,t){var r=e.length,i=[],o=t.dividePath||OE;function a(f){for(var g=0;g<f.length;g++){var y=f[g];yg(y)?a(y.childrenRef()):y instanceof ae&&i.push(y)}}if(yg(n)){a(n.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(em(i[l++%s]));i.length=r}else{i=o({path:n,count:r});for(var c=n.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),Rx()}i=_g(i),e=_g(e);for(var h=t.individualDelay,u=0;u<r;u++){var d=h?Ft({delay:(t.delay||0)+h(u,r,i[u],e[u])},t):t;Ex(i[u],e[u],d)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function zE(n){return ht(n[0])}function VE(n,e){for(var t=[],r=n.length,i=0;i<r;i++)t.push({one:n[i],many:[]});for(var i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)t[a%r].many.push(e[i][a])}for(var s=0,i=r-1;i>=0;i--)if(!t[i].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var o=l.length,u=Math.ceil(o/2);t[i].many=l.slice(u,o),t[s].many=l.slice(0,u),s++}return t}var B$={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r<n.count;r++){var i=em(n.path);i.setStyle("opacity",t),e.push(i)}return e},split:null};function Ox(n,e,t,r,i,o){if(!n.length||!e.length)return;var a=Cl("update",r,i);if(!(a&&a.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),u,c;zE(n)&&(u=n,c=e),zE(e)&&(u=e,c=n);function h(v,p,x,b,S){var M=v.many,I=v.one;if(M.length===1&&!S){var C=p?M[0]:I,A=p?I:M[0];if(yg(C))h({many:[C],one:A},!0,x,b,!0);else{var D=s?Ft({delay:s(x,b)},l):l;Ex(C,A,D),o(C,A,C,A,D)}}else for(var N=Ft({dividePath:B$[t],individualDelay:s&&function(W,q,j,J){return s(W+x,b)}},l),L=p?z$(M,I,N):V$(I,M,N),E=L.fromIndividuals,k=L.toIndividuals,z=E.length,F=0;F<z;F++){var D=s?Ft({delay:s(F,z)},l):l;o(E[F],k[F],p?M[F]:v.one,p?v.one:M[F],D)}}for(var d=u?u===n:n.length>e.length,f=u?VE(c,u):VE(d?e:n,[d?n:e]),g=0,y=0;y<f.length;y++)g+=f[y].many.length;for(var _=0,y=0;y<f.length;y++)h(f[y],d,_,g),_+=f[y].many.length}function $s(n){if(!n)return[];if(ht(n)){for(var e=[],t=0;t<n.length;t++)e.push($s(n[t]));return e}var r=[];return n.traverse(function(i){i instanceof ae&&!i.disableMorphing&&!i.invisible&&!i.ignore&&r.push(i)}),r}var BE=1e4,F$=0,FE=1,GE=2,G$=de();function W$(n,e){for(var t=n.dimensions,r=0;r<t.length;r++){var i=n.getDimensionInfo(t[r]);if(i&&i.otherDims[e]===0)return t[r]}}function j$(n,e,t){var r=n.getDimensionInfo(t),i=r&&r.ordinalMeta;if(r){var o=n.get(r.name,e);return i&&i.categories[o]||o+""}}function WE(n,e,t,r){var i=r?"itemChildGroupId":"itemGroupId",o=W$(n,i);if(o){var a=j$(n,e,o);return a}var s=n.getRawDataItem(e),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return t||n.getId(e)}function jE(n){var e=[];return R(n,function(t){var r=t.data,i=t.dataGroupId;if(r.count()>BE){process.env.NODE_ENV!=="production"&&Xe("Universal transition is disabled on large data > 10k.");return}for(var o=r.getIndices(),a=0;a<o.length;a++)e.push({data:r,groupId:WE(r,a,i,!1),childGroupId:WE(r,a,i,!0),divide:t.divide,dataIndex:a})}),e}function zx(n,e,t){n.traverse(function(r){r instanceof ae&&We(r,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Vx(n){if(n.parent){var e=n.getComputedTransform();n.setLocalTransform(e),n.parent.remove(n)}}function xu(n){n.stopAnimation(),n.isGroup&&n.traverse(function(e){e.stopAnimation()})}function H$(n,e,t){var r=Cl("update",t,e);r&&n.traverse(function(i){if(i instanceof Br){var o=RB(i);o&&i.animateFrom({style:o},r)}})}function U$(n,e){var t=n.length;if(t!==e.length)return!1;for(var r=0;r<t;r++){var i=n[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function HE(n,e,t){var r=jE(n),i=jE(e);function o(x,b,S,M,I){(S||x)&&b.animateFrom({style:S&&S!==x?lt(lt({},S.style),x.style):x.style},I)}var a=!1,s=F$,l=Lt(),u=Lt();r.forEach(function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<i.length;c++){var h=i[c].groupId;if(u.get(h)){s=FE;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=GE;break}}function f(x,b){return function(S){var M=S.data,I=S.dataIndex;return b?M.getId(I):x?s===FE?S.childGroupId:S.groupId:s===GE?S.childGroupId:S.groupId}}var g=U$(r,i),y={};if(!g)for(var c=0;c<i.length;c++){var _=i[c],v=_.data.getItemGraphicEl(_.dataIndex);v&&(y[v.id]=!0)}function p(x,b){var S=r[b],M=i[x],I=M.data.hostModel,C=S.data.getItemGraphicEl(S.dataIndex),A=M.data.getItemGraphicEl(M.dataIndex);if(C===A){A&&H$(A,M.dataIndex,I);return}C&&y[C.id]||A&&(xu(A),C?(xu(C),Vx(C),a=!0,Ox($s(C),$s(A),M.divide,I,x,o)):zx(A,I,x))}new Io(r,i,f(!0,g),f(!1,g),null,"multiple").update(p).updateManyToOne(function(x,b){var S=i[x],M=S.data,I=M.hostModel,C=M.getItemGraphicEl(S.dataIndex),A=Me(pt(b,function(D){return r[D].data.getItemGraphicEl(r[D].dataIndex)}),function(D){return D&&D!==C&&!y[D.id]});C&&(xu(C),A.length?(R(A,function(D){xu(D),Vx(D)}),a=!0,Ox($s(A),$s(C),S.divide,I,x,o)):zx(C,I,S.dataIndex))}).updateOneToMany(function(x,b){var S=r[b],M=S.data.getItemGraphicEl(S.dataIndex);if(!(M&&y[M.id])){var I=Me(pt(x,function(A){return i[A].data.getItemGraphicEl(i[A].dataIndex)}),function(A){return A&&A!==M}),C=i[x[0]].data.hostModel;I.length&&(R(I,function(A){return xu(A)}),M?(xu(M),Vx(M),a=!0,Ox($s(M),$s(I),S.divide,C,x[0],o)):R(I,function(A){return zx(A,C,x[0])}))}}).updateManyToMany(function(x,b){new Io(b,x,function(S){return r[S].data.getId(r[S].dataIndex)},function(S){return i[S].data.getId(i[S].dataIndex)}).update(function(S,M){p(x[S],b[M])}).execute()}).execute(),a&&R(e,function(x){var b=x.data,S=b.hostModel,M=S&&t.getViewOfSeriesModel(S),I=Cl("update",S,0);M&&S.isAnimationEnabled()&&I&&I.duration>0&&M.group.traverse(function(C){C instanceof ae&&!C.animators.length&&C.animateFrom({style:{opacity:0}},I)})})}function UE(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function XE(n){return ht(n)?n.sort().join(","):n}function Ta(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function X$(n,e){var t=Lt(),r=Lt(),i=Lt();R(n.oldSeries,function(a,s){var l=n.oldDataGroupIds[s],u=n.oldData[s],c=UE(a),h=XE(c);r.set(h,{dataGroupId:l,data:u}),ht(c)&&R(c,function(d){i.set(d,{key:h,dataGroupId:l,data:u})})});function o(a){t.get(a)&&Xe("Duplicated seriesKey in universalTransition "+a)}return R(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var s=a.get("dataGroupId"),l=a.getData(),u=UE(a),c=XE(u),h=r.get(c);if(h)process.env.NODE_ENV!=="production"&&o(c),t.set(c,{oldSeries:[{dataGroupId:h.dataGroupId,divide:Ta(h.data),data:h.data}],newSeries:[{dataGroupId:s,divide:Ta(l),data:l}]});else if(ht(u)){process.env.NODE_ENV!=="production"&&o(c);var d=[];R(u,function(y){var _=r.get(y);_.data&&d.push({dataGroupId:_.dataGroupId,divide:Ta(_.data),data:_.data})}),d.length&&t.set(c,{oldSeries:d,newSeries:[{dataGroupId:s,data:l,divide:Ta(l)}]})}else{var f=i.get(u);if(f){var g=t.get(f.key);g||(g={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Ta(f.data)}],newSeries:[]},t.set(f.key,g)),g.newSeries.push({dataGroupId:s,data:l,divide:Ta(l)})}}}}),t}function ZE(n,e){for(var t=0;t<n.length;t++){var r=e.seriesIndex!=null&&e.seriesIndex===n[t].seriesIndex||e.seriesId!=null&&e.seriesId===n[t].id;if(r)return t}}function Z$(n,e,t,r){var i=[],o=[];R(Ne(n.from),function(a){var s=ZE(e.oldSeries,a);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ta(e.oldData[s]),groupIdDim:a.dimension})}),R(Ne(n.to),function(a){var s=ZE(t.updatedSeries,a);if(s>=0){var l=t.updatedSeries[s].getData();o.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ta(l),groupIdDim:a.dimension})}}),i.length>0&&o.length>0&&HE(i,o,r)}function q$(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){R(Ne(r.seriesTransition),function(i){R(Ne(i.to),function(o){for(var a=r.updatedSeries,s=0;s<a.length;s++)(o.seriesIndex!=null&&o.seriesIndex===a[s].seriesIndex||o.seriesId!=null&&o.seriesId===a[s].id)&&(a[s][zd]=!0)})})}),n.registerUpdateLifecycle("series:transition",function(e,t,r){var i=G$(t);if(i.oldSeries&&r.updatedSeries&&r.optionChanged){var o=r.seriesTransition;if(o)R(Ne(o),function(f){Z$(f,i,r,t)});else{var a=X$(i,r);R(a.keys(),function(f){var g=a.get(f);HE(g.oldSeries,g.newSeries,t)})}R(r.updatedSeries,function(f){f[zd]&&(f[zd]=!1)})}for(var s=e.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],h=0;h<s.length;h++){var d=s[h].getData();d.count()<BE&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),c.push(d))}})}ie([oW]),ie([tW]),ie([IW,FW,YW,kj,Fj,TH,t7,z7,o9,h9,x9,fU,BU,YU,pX,vX,TX,PX,HX,YX,aZ,WZ]),ie(sq),ie(Pq),ie(Bk),ie(Xq),ie(aL),ie(Yq),ie(oK),ie(XK),ie(hY),ie(Ch),ie(AY),ie(LY),ie(GY),ie(qY),ie(tJ),ie(aJ),ie(vJ),ie(EJ),ie(tE),ie(iE),ie(t$),ie(xE),ie(wE),ie(o$),ie(m$),ie(b$),ie(q$),ie(xG);var xg=1;function Mr(n){var e=60,t=62,r=45,i=47,o=33,a=39,s=34,l=63,u=`\r
112
+ >/= `,c=0;return xg=1,qE(function h(){for(var d=[];n[c];){if(n.charCodeAt(c)==e){if(n.charCodeAt(c+1)===i)return c=n.indexOf(">",c),d;if(n.charCodeAt(c+1)===o){if(n.charCodeAt(c+2)==r){for(;n.charCodeAt(c)!==t||n.charCodeAt(c-1)!=r||n.charCodeAt(c-2)!=r||c==-1;)c=n.indexOf(">",c+1);c===-1&&(c=n.length)}else for(c+=2;n.charCodeAt(c)!==t;c++);c++;continue}if(n.charCodeAt(c+1)===l){c=n.indexOf(">",c),c++;continue}for(var f=++c;u.indexOf(n[c])===-1;c++);for(var g=n.slice(f,c),y=!1,_={};n.charCodeAt(c)!==t;c++){var v=n.charCodeAt(c);if(v>64&&v<91||v>96&&v<123){for(f=c;u.indexOf(n[c])===-1;c++);for(var p=n.slice(f,c),x=n.charCodeAt(c);x!==a&&x!==s;)c++,x=n.charCodeAt(c);var b=n[c],S=++c;c=n.indexOf(b,S);var M=n.slice(S,c);y||(_={},y=!0),_[p]=M}}var I=[];n.charCodeAt(c-1)!==i&&(c++,I=h()),d.push({children:I,tagName:g,attrs:_})}else{var C=c;(c=n.indexOf("<",c)-1)===-2&&(c=n.length);var A=n.slice(C,c+1);A.length>0&&d.push(A)}c++}return d}())}function qE(n){var e={};if(n===void 0)return{};if(n.length===1&&typeof n[0]=="string")return n[0];for(var t in n.forEach(function(r){if(e[r.tagName]||(e[r.tagName]=[]),typeof r=="object"){var i=qE(r.children);typeof i=="object"&&(r.attrs&&(i.attrs=r.attrs),i.attrs===void 0?i.attrs={order:xg}:i.attrs.order=xg),xg++,e[r.tagName].push(i)}}),e)e[t].length==1&&(e[t]=e[t][0]);return e}function be(n){return n/12700}function bg(n){return n/100}function wg(n){return n/6e4}function Ca(n){return n/1e5}function Bx(n){var e=Math.ceil(n/26),t=(n%26||26)-1+65;return String.fromCharCode(t).repeat(e)}function Je(n,e,t){var r={type:"solidFill"};if(n["a:srgbClr"])r.color="#"+n["a:srgbClr"].attrs.val;else if(n["a:schemeClr"]){var i=n["a:schemeClr"].attrs.val;t&&(i=t.getColorThemeName(i)),r.color=e.getColor(i)}else if(n["a:sysClr"])r.color="#"+n["a:sysClr"].attrs.lastClr;else if(n["a:prstClr"]){var o=X.get(n["a:prstClr"],["attrs","val"]);r.color=function(d){var f,g=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],y=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],_=g.indexOf(d);return _!=-1&&(f=y[_]),"#".concat(f||"000000")}(o)}var a=n["a:srgbClr"]||n["a:schemeClr"]||n["a:sysClr"],s=X.get(a,["a:alpha","attrs","val"],1e5);r.alpha=s/1e5;var l=X.get(a,["a:shade","attrs","val"]);l&&(r.shade=l/1e5);var u=X.get(a,["a:lumMod","attrs","val"]);u&&(r.lumMod=u/1e5);var c=X.get(a,["a:lumOff","attrs","val"]);c&&(r.lumOff=c/1e5);var h=X.get(a,["a:tint","attrs","val"]);return h&&(r.tint=h/1e5),r}function zh(n,e,t){var r,i={type:"blipFill"},o=X.get(n,["a:blip","attrs","r:embed"]);if(o){var a=(r=t.rels[o])===null||r===void 0?void 0:r.target;a&&(i.base64=e.getMedia(a))}var s=X.get(n,["a:blip","a:alphaModFix","attrs","amt"]);s&&(i.alpha=s/1e5);var l=X.get(n,["a:stretch","a:fillRect","attrs"]);return l&&(i.fillRect={},l.b&&(i.fillRect.b=l.b/1e5),l.t&&(i.fillRect.t=l.t/1e5),l.r&&(i.fillRect.r=l.r/1e5),l.l&&(i.fillRect.l=l.l/1e5)),i}function Vh(n,e,t){var r={type:"gradFill",tileRect:{},lin:{},gsList:[]};r.flip=n.attrs.flip,r.path=X.get(n,["a:path","attrs","path"])||"linear",r.rotWithShape=n.attrs.rotWithShape==="1",X.get(n,["a:lin","attrs","ang"])&&(r.lin.ang=wg(n["a:lin"].attrs.ang)),X.get(n,["a:lin","attrs","scaled"])&&(r.lin.scaled=n["a:lin"].attrs.scaled==="1");var i=X.get(n,["a:gsLst","a:gs"])||[];return r.gsList=i.map(function(o){return{color:Je(o,e,t),pos:Ca(o.attrs.pos)}}),X.get(n,["a:tileRect","attrs","l"])&&(r.tileRect.l=Ca(n["a:tileRect"].attrs.l)),X.get(n,["a:tileRect","attrs","t"])&&(r.tileRect.t=Ca(n["a:tileRect"].attrs.t)),X.get(n,["a:tileRect","attrs","r"])&&(r.tileRect.r=Ca(n["a:tileRect"].attrs.r)),X.get(n,["a:tileRect","attrs","b"])&&(r.tileRect.b=Ca(n["a:tileRect"].attrs.b)),r}function Fx(n){return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Gx(n){return n<.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055}function KE(n,e){var t=n[0],r=n[1],i=n[2],o=Fx(t/255)*e,a=Fx(r/255)*e,s=Fx(i/255)*e;return[Math.round(255*Gx(o)),Math.round(255*Gx(a)),Math.round(255*Gx(s))]}function Wx(n,e,t){var r=n/255,i=e/255,o=t/255,a=Math.max(r,i,o),s=Math.min(r,i,o),l=a-s,u=0,c=(a+s)/2;return l===0?u=0:a===r?u=(i-o)/l%6:a===i?u=(o-r)/l+2:a===o&&(u=(r-i)/l+4),(u=Math.round(60*u))<0&&(u+=360),{h:u,s:l===0||c===0||c===1?0:l/(1-Math.abs(2*c-1)),l:c}}function jx(n,e,t){var r,i,o,a=(1-Math.abs(2*t-1))*e,s=a*(1-Math.abs(n/60%2-1)),l=t-a/2;return n<60?(r=a,i=s,o=0):n<120?(r=s,i=a,o=0):n<180?(r=0,i=a,o=s):n<240?(r=0,i=s,o=a):n<300?(r=s,i=0,o=a):(r=a,i=0,o=s),[r=Math.round(255*(r+l)),i=Math.round(255*(i+l)),o=Math.round(255*(o+l))]}function De(n,e){if(!n||n.type==="none")return"";if(n.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(n.color)){var t=parseInt(n.color.substr(1,2),16),r=parseInt(n.color.substr(3,2),16),i=parseInt(n.color.substr(5,2),16);if(n.shade){var o=KE([t,r,i],n.shade);t=o[0],r=o[1],i=o[2]}if(n.lumMod){var a=function(c,h,d,f){var g=Wx(c,h,d),y=g.h,_=g.l*f;return _>=1&&(_=1),jx(y,g.s,_)}(t,r,i,n.lumMod);t=a[0],r=a[1],i=a[2]}if(n.lumOff&&(a=function(c,h,d,f){var g=Wx(c,h,d),y=g.h,_=f+g.l;return _>1&&(_=1),jx(y,g.s,_)}(t,r,i,n.lumOff),t=a[0],r=a[1],i=a[2]),n.tint||e!=null&&e.light){var s=function(c,h,d,f){var g=Wx(c,h,d),y=g.h,_=g.l;return f>=1&&(f=1),jx(y,g.s,_*f+(1-f))}(t,r,i,n.tint||(e==null?void 0:e.light));t=s[0],r=s[1],i=s[2]}if(e!=null&&e.dark){var l=KE([t,r,i],e==null?void 0:e.dark);t=l[0],r=l[1],i=l[2]}var u=n.alpha;return"rgba(".concat(t,",").concat(r,",").concat(i,",").concat(u,")")}}var Bh=function(){function n(e,t,r){this.uuid=qO(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=e,this.ctx=t,this.group=r;var i=X.get(e,["p:nvSpPr","p:nvPr"]);if(i){var o=X.get(i,"p:ph");o&&o.attrs&&(this.idx=o.attrs.idx,this.type=o.attrs.type),X.get(i,["attrs","userDrawn"])&&(this.userDrawn=X.get(i,["attrs","userDrawn"])==="1")}if(this.order=X.get(e,"attrs.order",0),this.source["p:spPr"])(a=this.getXfrm())&&(this.offset={x:Math.round(be(parseInt(a["a:off"].attrs.x))),y:Math.round(be(parseInt(a["a:off"].attrs.y)))},this.extend={w:Math.round(be(parseInt(a["a:ext"].attrs.cx))),h:Math.round(be(parseInt(a["a:ext"].attrs.cy||"0")))},this.rotate=wg(parseInt(X.get(a,"attrs.rot",0))),this.flipV=X.get(a,"attrs.flipV")==="1",this.flipH=X.get(a,"attrs.flipH")==="1");else if(this.source["p:xfrm"]){var a=this.source["p:xfrm"];this.offset={x:Math.round(be(parseInt(a["a:off"].attrs.x))),y:Math.round(be(parseInt(a["a:off"].attrs.y)))},this.extend={w:Math.round(be(parseInt(a["a:ext"].attrs.cx))),h:Math.round(be(parseInt(a["a:ext"].attrs.cy)))}}if(r){var s=r.extend,l=r.chExtend,u=r.chOffset,c=l.w===0?0:s.w/l.w,h=l.h===0?0:s.h/l.h;this.extend.w=this.extend.w*c,this.extend.h=this.extend.h*h,this.offset.x=(this.offset.x-u.x)*c,this.offset.y=(this.offset.y-u.y)*h}}return Object.defineProperty(n.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),n.prototype.getColorThemeName=function(e){return this.ctx.getColorThemeName(e)},n.prototype.getXfrm=function(){var e=this.source["p:spPr"]["a:xfrm"];return e||(this.idx?e=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(e=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),e},n}(),K$=function(){function n(e,t){this.props={},this.inheritProps={},this.source=e,this.node=t,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return n.prototype._getInheritBodyProps=function(){var e,t=this.node.ctx,r=this.node.type,i=this.node.idx;if(r||i)switch(t.slideType){case"slideMaster":break;case"slideLayout":(e=r?t.slideMaster.getNodeByType(r):t.slideMaster.getNodeByIdx(i))&&(this.inheritProps=X.get(e,["textBody","props"])||{});break;case"slide":(e=r?t.slideLayout.slideMaster.getNodeByType(r):t.slideLayout.slideMaster.getNodeByIdx(i))&&Object.assign(this.inheritProps,X.get(e,["textBody","props"])||{}),(e=r?t.slideLayout.getNodeByType(r):t.slideLayout.getNodeByIdx(i))&&Object.assign(this.inheritProps,X.get(e,["textBody","props"])||{})}},n.prototype._parseBodyProps=function(){var e=this,t=X.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(t).forEach(function(a){switch(a){case"anchor":e.props.anchor=t[a];break;case"rtlCol":e.props.rtlCol=t[a]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":e.props[a]=be(parseInt(t[a]));break;case"order":break;default:e.props[a]=t[a]}});var r=X.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(r){this.props.normAutofit={};var i=r.fontScale;i&&(this.props.normAutofit.fontScale=Ca(parseInt(i)));var o=r.lnSpcReduction;o&&(this.props.normAutofit.lnSpcReduction=Ca(parseInt(o)))}},n.prototype._parseLstStyle=function(){var e=this,t={},r=X.get(this.source,"a:lstStyle")||{};Object.keys(r).forEach(function(i){if(i.startsWith("a:")&&i.endsWith("pPr")){var o=i.substr(2,i.length-5);t[o]={props:e._formatPPr(r[i])};var a=X.get(r[i],["a:defRPr"]);t[o].defRPr=e._formatRPr(a)}}),this.lstStyle=t},n.prototype._parseText=function(){var e=this,t=X.get(this.source,["a:p"])||[];Array.isArray(t)||(t=[t]),this.paragraphs=t.map(function(r){return e._parseParagraph(r)})},n.prototype._parseParagraph=function(e){var t=this,r={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=X.get(e,["a:pPr"])||{};r.props=this._formatPPr(i);var o=X.get(e,["a:endParaRPr"]);r.endParaRProps=this._formatRPr(o);var a=X.get(e,["a:r"])||[];Array.isArray(a)||(a=[a]);var s=X.get(e,["a:br"])||[];return Array.isArray(s)||(s=[s]),(a=a.concat(s.map(function(l){return Dt({isBr:!0},l)}))).sort(function(l,u){return X.get(l,["attrs","order"])-X.get(u,["attrs","order"])}),r.rows=a.map(function(l){return t._parseRow(l)}),r.inheritProps=this._getInheritPProps(r.props.level),r.inheritRProps=this._getInheritRProps(r.props.level),r},n.prototype._getInheritPProps=function(e){e===void 0&&(e="0");var t,r={},i=this.node.ctx,o=this.node.type,a=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(r,X.get(i.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(r,X.get(i,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(r,X.get(i.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(r,X.get(i.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(o||a)&&(t=o?i.slideMaster.getNodeByType(o):i.slideMaster.getNodeByIdx(a))&&Object.assign(r,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(r,X.get(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(r,X.get(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(o||a)&&(["subTitle","ctrTitle","title"].includes(o)&&Object.assign(r,X.get(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=o?i.slideLayout.slideMaster.getNodeByType(o):i.slideLayout.slideMaster.getNodeByIdx(a))&&Object.assign(r,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=o?i.slideLayout.getNodeByType(o):i.slideLayout.getNodeByIdx(a))&&Object.assign(r,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}))}return r},n.prototype._getInheritRProps=function(e){e===void 0&&(e="0");var t,r={},i=this.node.ctx,o=this.node.type,a=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(r,X.get(i.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(r,X.get(i,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(r,X.get(i.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(r,X.get(i.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(o||a)&&(t=o?i.slideMaster.getNodeByType(o):i.slideMaster.getNodeByIdx(a))&&(r=X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(r,X.get(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(r,X.get(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(o||a)&&(["subTitle","ctrTitle","title"].includes(o)&&Object.assign(r,X.get(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=o?i.slideLayout.slideMaster.getNodeByType(o):i.slideLayout.slideMaster.getNodeByIdx(a))&&Object.assign(r,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=o?i.slideLayout.getNodeByType(o):i.slideLayout.getNodeByIdx(a))&&Object.assign(r,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}))}var s=X.get(this.node.source,["p:style","a:fontRef"]);return X.get(s,"a:schemeClr")&&(r.color=Je(s,this.node.theme,this.node)),X.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])&&Object.assign(r,X.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])),r},n.prototype._formatPPr=function(e){var t={},r=X.get(e,"attrs")||{};return Object.keys(r).forEach(function(i){switch(i){case"algn":t.align=r[i];break;case"marL":t.marginLeft=be(parseInt(r[i]));break;case"indent":t.indent=be(parseInt(r[i]));break;case"lvl":t.level=r[i]}}),X.get(e,["a:lnSpc","a:spcPct","attrs","val"])&&(t.lineHeight=parseInt(e["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),X.get(e,["a:buAutoNum","attrs","type"])&&(t.buAutoNum=e["a:buAutoNum"].attrs.type),X.get(e,["a:buChar","attrs","char"])&&(t.buChar=e["a:buChar"].attrs.char),X.get(e,["a:spcBef","a:spcPts","attrs","val"])&&(t.spaceBefore=bg(parseInt(e["a:spcBef"]["a:spcPts"].attrs.val))),X.get(e,["a:spcAft","a:spcPts","attrs","val"])&&(t.spaceAfter=bg(parseInt(e["a:spcAft"]["a:spcPts"].attrs.val))),t},n.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var t={props:{},text:""},r=X.get(e,["a:rPr"])||{};return t.props=this._formatRPr(r),t.text=X.get(e,"a:t")||"",t},n.prototype._formatRPr=function(e){var t={},r=X.get(e,"attrs")||{};Object.keys(r).forEach(function(a){switch(a){case"sz":t.size=parseInt(r[a])/100;break;case"b":t.bold=r[a]==="1";break;case"i":t.italic=r[a]==="1";break;case"u":t.underline=r[a];break;case"strike":t.strike=r[a];break;case"order":case"dirty":break;default:t[a]=r[a]}});var i=X.get(e,"a:solidFill");i&&(t.color=Je(i,this.node.theme,this.node));var o=X.get(e,"a:highlight");return o&&(t.background=Je(o,this.node.theme,this.node)),t.typeface=X.get(e,["a:ea","attrs","typeface"]),t},n}();function bu(n,e,t){var r={};if(!X.get(n,"a:noFill")){X.get(n,"attrs.w")&&(r.width=be(parseInt(X.get(n,"attrs.w"))));var i=X.get(n,"a:solidFill");i&&(r.color=Je(i,e,t));var o=X.get(n,"a:prstDash");if(o&&(r.type=o.attrs.val),X.get(n,["a:miter"])&&(r.lineJoin="miter"),X.get(n,["a:bevel"])&&(r.lineJoin="bevel"),X.get(n,["a:round"])&&(r.lineJoin="round"),X.get(n,["a:miter","attrs","lim"])&&(r.miterLim=be(parseInt(X.get(n,["a:miter","attrs","lim"])))),X.get(n,["a:headEnd"])){var a=X.get(n,["a:headEnd","attrs"]);r.headEnd={type:a.type,len:a.len,w:a.w}}if(X.get(n,["a:tailEnd"])){var s=X.get(n,["a:tailEnd","attrs"]);r.tailEnd={type:s.type,len:s.len,w:s.w}}return r}}var Fh=function(n){function e(t,r,i,o){var a=n.call(this,t,i,o)||this;return a.border={},a.prstGeom={},a.isTextBox=!1,a.pptx=r,a._parseShape(),a._parIsTextBox(),a._parsePrstGeom(),a._parseBackground(),a._parseBorder(),a._parseTxt(),a}return so(e,n),e.prototype._parseShape=function(){if(this.shape=X.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&X.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var t=X.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),r=[],i=[],o=function(s){switch(s){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":i=Array.isArray(t[s])?t[s]:[t[s]],r=r.concat(i.map(function(l){return{order:l.attrs.order,type:s.split(":")[1],points:(Array.isArray(l["a:pt"])?l["a:pt"]:[l["a:pt"]]).map(function(u){return[be(parseInt(X.get(u,["attrs","x"]))),be(parseInt(X.get(u,["attrs","y"])))]})}}));break;case"a:close":i=Array.isArray(t[s])?t[s]:[t[s]],r=r.concat(i.map(function(l){return{order:l.attrs.order,type:s.split(":")[1]}}))}};for(var a in t)o(a);r.sort(function(s,l){return s.order-l.order}),this.prstGeom.pathList=r,X.get(t,["attrs","w"])&&(this.prstGeom.w=be(parseInt(X.get(t,["attrs","w"])))),X.get(t,["attrs","h"])&&(this.prstGeom.h=be(parseInt(X.get(t,["attrs","h"]))))}},e.prototype._parIsTextBox=function(){this.isTextBox=X.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},e.prototype._parsePrstGeom=function(){var t=this,r=X.get(this.source,["p:spPr","a:prstGeom"]),i=X.get(r,["a:avLst","a:gd"]);i&&(Array.isArray(i)||(i=[i]),this.prstGeom.gd=i.map(function(o){var a=["pie","chord","arc"].includes(t.shape)||["blockArc"].includes(t.shape)&&["adj1","adj2"].includes(o.attrs.name)?wg(parseInt(o.attrs.fmla.split(" ")[1])):Ca(parseInt(o.attrs.fmla.split(" ")[1]));return{name:o.attrs.name,fmla:a}}))},e.prototype._parseBackground=function(){if(!X.get(this.source,["p:spPr","a:noFill"]))if(X.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var t=X.get(this.source,["p:spPr","a:solidFill"]);if(t)this.background=Je(t,this.theme,this);else{var r=X.get(this.source,["p:spPr","a:gradFill"]);if(r)this.background=Vh(r,this.theme,this);else{var i=X.get(this.source,["p:spPr","a:blipFill"]);if(i)this.background=zh(i,this.pptx,this.ctx);else{var o=X.get(this.source,["p:style","a:fillRef"]);o&&(this.background=Je(o,this.theme,this))}}}}},e.prototype._parseBorder=function(){var t=X.get(this.source,["p:style","a:lnRef"]);if(t){var r=parseInt(t.attrs.idx),i=this.theme.getLineStyle(r);this.border=Dt(Dt({},i),this.border),this.border.color&&this.border.color.color||(this.border.color=Je(t,this.theme,this))}var o=X.get(this.source,["p:spPr","a:ln"]);o&&Object.assign(this.border,bu(o,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=e.defaultBorderWidth)},e.prototype._parseTxt=function(){this.textBody=new K$(X.get(this.source,["p:txBody"]),this)},e.defaultBorderWidth=.75,e}(Bh),Sg=function(n){function e(t,r,i,o,a){var s,l,u=n.call(this,r,o,a)||this;u.userDrawn=!0,u.pptx=i,u.path=t;var c=X.get(u.source,["p:blipFill","a:srcRect"]);c&&(u.clip={},c.attrs.b&&(u.clip.b=parseInt(c.attrs.b)/1e5),c.attrs.t&&(u.clip.t=parseInt(c.attrs.t)/1e5),c.attrs.l&&(u.clip.l=parseInt(c.attrs.l)/1e5),c.attrs.r&&(u.clip.r=parseInt(c.attrs.r)/1e5));var h=X.get(r,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(h){var d=(s=u.ctx.rels[h])===null||s===void 0?void 0:s.target;u.audioFile=u.pptx.getMedia(d)}var f=X.get(r,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(f){var g=(l=u.ctx.rels[f])===null||l===void 0?void 0:l.target;u.videoFile=u.pptx.getMedia(g)}return u}return so(e,n),Object.defineProperty(e.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),e}(Bh),YE=function(n){function e(t,r,i,o){var a=n.call(this,t,i,o)||this;return a.userDrawn=!0,a.props={tableStyleId:""},a.tableGrid={gridCol:[]},a.tr=[],a.tableStyles={},a.pptx=r,a._parseTableProps(),a._parseTableGrid(),a._parseTr(),a._parseInheritStyles(),a}return so(e,n),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype._parseTableProps=function(){var t=X.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=X.get(t,"a:tableStyleId"),this.tableStyles=X.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},X.get(t,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),X.get(t,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),X.get(t,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),X.get(t,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),X.get(t,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),X.get(t,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},e.prototype._parseTableGrid=function(){var t=X.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(t)for(var r=0;r<t.length;r++){var i=X.get(t[r],["attrs","w"]);this.tableGrid.gridCol.push({width:be(parseInt(i))})}},e.prototype._parseTr=function(){var t=[],r=X.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(r)||(r=[r]);for(var i=0;i<r.length;i++){var o={props:{},td:[]},a=r[i];o.props.height=be(parseInt(X.get(a,["attrs","h"])));var s=X.get(a,["a:tc"]);Array.isArray(s)||(s=[s]);for(var l=0;l<s.length;l++)o.td.push(this._parseTd(s[l]));t.push(o)}this.tr=t},e.prototype._parseTd=function(t){var r,i,o,a,s=this,l={props:{border:{}},paragraphs:[]},u=X.get(t,["a:tcPr","attrs"]);u!=null&&u.marB&&(l.props.marB=be(parseInt(u==null?void 0:u.marB))),u!=null&&u.marT&&(l.props.marT=be(parseInt(u==null?void 0:u.marT))),u!=null&&u.marL&&(l.props.marL=be(parseInt(u==null?void 0:u.marL))),u!=null&&u.marR&&(l.props.marR=be(parseInt(u==null?void 0:u.marR))),u!=null&&u.anchor&&(l.props.anchor=u==null?void 0:u.anchor);var c=X.get(t,["a:tcPr"]);X.get(c,["a:lnR"])&&(l.props.border.right=bu(X.get(c,["a:lnR"]),this.theme,this.ctx)),X.get(c,["a:lnL"])&&(l.props.border.left=bu(X.get(c,["a:lnL"]),this.theme,this.ctx)),X.get(c,["a:lnT"])&&(l.props.border.top=bu(X.get(c,["a:lnT"]),this.theme,this.ctx)),X.get(c,["a:lnB"])&&(l.props.border.bottom=bu(X.get(c,["a:lnB"]),this.theme,this.ctx)),!((r=t==null?void 0:t.attrs)===null||r===void 0)&&r.rowSpan&&(l.props.rowSpan=parseInt(t.attrs.rowSpan)),!((i=t==null?void 0:t.attrs)===null||i===void 0)&&i.gridSpan&&(l.props.gridSpan=parseInt(t.attrs.gridSpan)),!((o=t==null?void 0:t.attrs)===null||o===void 0)&&o.vMerge&&(l.props.vMerge=t.attrs.vMerge==="1"),!((a=t==null?void 0:t.attrs)===null||a===void 0)&&a.hMerge&&(l.props.hMerge=t.attrs.hMerge==="1");var h=X.get(t,["a:tcPr","a:solidFill"]);h&&(l.props.background=Je(h,this.theme,this.ctx));var d=X.get(t,["a:txBody"]),f=X.get(d,["a:p"]);return Array.isArray(f)||(f=[f]),l.paragraphs=f.map(function(g){return s._parseParagraph(g)}),l},e.prototype._parseParagraph=function(t){var r=this,i={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},o=X.get(t,["a:pPr"])||{};i.props=this._formatPPr(o);var a=X.get(t,["a:endParaRPr"]);i.endParaRProps=this._formatRPr(a);var s=X.get(t,["a:r"])||[];Array.isArray(s)||(s=[s]);var l=X.get(t,["a:br"])||[];return Array.isArray(l)||(l=[l]),(s=s.concat(l.map(function(u){return Dt({isBr:!0},u)}))).sort(function(u,c){return X.get(u,["attrs","order"])-X.get(c,["attrs","order"])}),i.rows=s.map(function(u){return r._parseRow(u)}),i},e.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var r={props:{},text:""},i=X.get(t,["a:rPr"])||{};return r.props=this._formatRPr(i),r.text=X.get(t,"a:t")||"",r},e.prototype._formatPPr=function(t){var r={},i=X.get(t,"attrs")||{};return Object.keys(i).forEach(function(o){o==="algn"&&(r.align=i[o])}),X.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(r.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),X.get(t,["a:buAutoNum","attrs","type"])&&(r.buAutoNum=t["a:buAutoNum"].attrs.type),X.get(t,["a:buChar","attrs","char"])&&(r.buChar=t["a:buChar"].attrs.char),X.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(r.spaceBefore=bg(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),X.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(r.spaceAfter=bg(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),r},e.prototype._formatRPr=function(t){var r={},i=X.get(t,"attrs")||{};Object.keys(i).forEach(function(s){switch(s){case"sz":r.size=parseInt(i[s])/100;break;case"b":r.bold=i[s]==="1";break;case"i":r.italic=i[s]==="1";break;case"u":r.underline=i[s];break;case"strike":r.strike=i[s];break;case"order":case"dirty":break;default:r[s]=i[s]}});var o=X.get(t,"a:solidFill");o&&(r.color=Je(o,this.theme,this.ctx));var a=X.get(t,"a:highlight");return a&&(r.background=Je(a,this.theme,this.ctx)),r.typeface=X.get(t,["a:ea","attrs","typeface"]),r},e.prototype._isLastCol=function(t,r){var i,o;if(r===t.length-1)return!0;for(var a=r+1;a<t.length;a++)if(!(!((i=t[a].props)===null||i===void 0)&&i.hMerge)&&!(!((o=t[a].props)===null||o===void 0)&&o.vMerge))return!1;return!0},e.prototype._isBandRow=function(t){var r;return!((r=this.props)===null||r===void 0)&&r.firstRow?t%2==1:t%2==0},e.prototype._isBandCol=function(t){var r;return!((r=this.props)===null||r===void 0)&&r.firstCol?t%2==1:t%2==0},e.prototype._parseInheritStyles=function(){var t,r,i,o,a,s,l,u,c=this,h=(r=(t=this.tableStyles)===null||t===void 0?void 0:t.wholeTbl)===null||r===void 0?void 0:r.tcStyle,d=(o=(i=this.tableStyles)===null||i===void 0?void 0:i.wholeTbl)===null||o===void 0?void 0:o.tcTxStyle,f=(s=(a=this.slideMaster.defaultTextStyle)===null||a===void 0?void 0:a.lvl1)===null||s===void 0?void 0:s.props,g=(u=(l=this.slideMaster.defaultTextStyle)===null||l===void 0?void 0:l.lvl1)===null||u===void 0?void 0:u.defRPr;this.tr.forEach(function(y,_){y.td.forEach(function(v,p){var x,b,S,M,I,C,A,D,N,L,E,k,z,F,W,q,j,J,H,K,ut,at,ot,Rt,Jt,wt,xt,Ot,bt,Nt,se,O,st,it,Z,U,tt,ft,gt,rt,It,zt,Ct,Zt,Te,ce,fn,Ir,Cn,Tr,Fe,ti,Ii,En,eo,Qs,we=Dt(Dt({},f),h),un=Dt(Dt({},g),d);c.props.firstRow&&_===0?(we=Dt(Dt(Dt({},we),(b=(x=c.tableStyles)===null||x===void 0?void 0:x.firstRow)===null||b===void 0?void 0:b.tcStyle),{border:Dt(Dt({},we==null?void 0:we.border),(I=(M=(S=c.tableStyles)===null||S===void 0?void 0:S.firstRow)===null||M===void 0?void 0:M.tcStyle)===null||I===void 0?void 0:I.border)}),un=Dt(Dt({},un),(A=(C=c.tableStyles)===null||C===void 0?void 0:C.firstRow)===null||A===void 0?void 0:A.tcTxStyle)):c.props.lastRow&&_===c.tr.length-1?(we=Dt(Dt(Dt({},we),(N=(D=c.tableStyles)===null||D===void 0?void 0:D.lastRow)===null||N===void 0?void 0:N.tcStyle),{border:Dt(Dt({},we==null?void 0:we.border),(k=(E=(L=c.tableStyles)===null||L===void 0?void 0:L.lastRow)===null||E===void 0?void 0:E.tcStyle)===null||k===void 0?void 0:k.border)}),un=Dt(Dt({},un),(F=(z=c.tableStyles)===null||z===void 0?void 0:z.lastRow)===null||F===void 0?void 0:F.tcTxStyle)):c.props.firstCol&&p===0?(we=Dt(Dt(Dt({},we),(q=(W=c.tableStyles)===null||W===void 0?void 0:W.firstCol)===null||q===void 0?void 0:q.tcStyle),{border:Dt(Dt({},we==null?void 0:we.border),(H=(J=(j=c.tableStyles)===null||j===void 0?void 0:j.firstCol)===null||J===void 0?void 0:J.tcStyle)===null||H===void 0?void 0:H.border)}),un=Dt(Dt({},un),(ut=(K=c.tableStyles)===null||K===void 0?void 0:K.firstCol)===null||ut===void 0?void 0:ut.tcTxStyle)):c.props.lastCol&&c._isLastCol(y.td,p)?(we=Dt(Dt(Dt({},we),(ot=(at=c.tableStyles)===null||at===void 0?void 0:at.lastCol)===null||ot===void 0?void 0:ot.tcStyle),{border:Dt(Dt({},we==null?void 0:we.border),(wt=(Jt=(Rt=c.tableStyles)===null||Rt===void 0?void 0:Rt.lastCol)===null||Jt===void 0?void 0:Jt.tcStyle)===null||wt===void 0?void 0:wt.border)}),un=Dt(Dt({},un),(Ot=(xt=c.tableStyles)===null||xt===void 0?void 0:xt.lastCol)===null||Ot===void 0?void 0:Ot.tcTxStyle)):(c.props.bandRow&&(c._isBandRow(_)?(we=Dt(Dt(Dt({},we),(Nt=(bt=c.tableStyles)===null||bt===void 0?void 0:bt.band1H)===null||Nt===void 0?void 0:Nt.tcStyle),{border:Dt(Dt({},we==null?void 0:we.border),(st=(O=(se=c.tableStyles)===null||se===void 0?void 0:se.band1H)===null||O===void 0?void 0:O.tcStyle)===null||st===void 0?void 0:st.border)}),un=Dt(Dt({},un),(Z=(it=c.tableStyles)===null||it===void 0?void 0:it.band1H)===null||Z===void 0?void 0:Z.tcTxStyle)):(we=Dt(Dt(Dt({},we),(tt=(U=c.tableStyles)===null||U===void 0?void 0:U.band2V)===null||tt===void 0?void 0:tt.tcStyle),{border:Dt(Dt({},we==null?void 0:we.border),(rt=(gt=(ft=c.tableStyles)===null||ft===void 0?void 0:ft.band2V)===null||gt===void 0?void 0:gt.tcStyle)===null||rt===void 0?void 0:rt.border)}),un=Dt(Dt({},un),(zt=(It=c.tableStyles)===null||It===void 0?void 0:It.band2V)===null||zt===void 0?void 0:zt.tcTxStyle))),c.props.bandCol&&(c._isBandCol(p)?(we=Dt(Dt(Dt({},we),(Zt=(Ct=c.tableStyles)===null||Ct===void 0?void 0:Ct.band1V)===null||Zt===void 0?void 0:Zt.tcStyle),{border:Dt(Dt({},we==null?void 0:we.border),(fn=(ce=(Te=c.tableStyles)===null||Te===void 0?void 0:Te.band1V)===null||ce===void 0?void 0:ce.tcStyle)===null||fn===void 0?void 0:fn.border)}),un=Dt(Dt({},un),(Cn=(Ir=c.tableStyles)===null||Ir===void 0?void 0:Ir.band1V)===null||Cn===void 0?void 0:Cn.tcTxStyle)):(we=Dt(Dt(Dt({},we),(Fe=(Tr=c.tableStyles)===null||Tr===void 0?void 0:Tr.band2H)===null||Fe===void 0?void 0:Fe.tcStyle),{border:Dt(Dt({},we==null?void 0:we.border),(En=(Ii=(ti=c.tableStyles)===null||ti===void 0?void 0:ti.band2H)===null||Ii===void 0?void 0:Ii.tcStyle)===null||En===void 0?void 0:En.border)}),un=Dt(Dt({},un),(Qs=(eo=c.tableStyles)===null||eo===void 0?void 0:eo.band2H)===null||Qs===void 0?void 0:Qs.tcTxStyle)))),v.inheritTcStyle=we,v.inheritTcTxStyle=un})})},e}(Bh),Hx=function(){function n(e,t,r,i){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=X.get(e,["attrs","order"]),this.pptx=t,this.ctx=r,this.source=e,this.group=i,this.source["p:grpSpPr"]){var o=X.get(this.source,["p:grpSpPr","a:xfrm"]);if(o&&(this.offset={x:Math.round(be(parseInt(o["a:off"].attrs.x))),y:Math.round(be(parseInt(o["a:off"].attrs.y)))},this.chOffset={x:Math.round(be(parseInt(o["a:chOff"].attrs.x))),y:Math.round(be(parseInt(o["a:chOff"].attrs.y)))},this.extend={w:Math.round(be(parseInt(o["a:ext"].attrs.cx))),h:Math.round(be(parseInt(o["a:ext"].attrs.cy)))},this.chExtend={w:Math.round(be(parseInt(o["a:chExt"].attrs.cx))),h:Math.round(be(parseInt(o["a:chExt"].attrs.cy)))},this.rotate=wg(parseInt(X.get(o,"attrs.rot",0))),this.flipV=X.get(o,"attrs.flipV")==="1",this.flipH=X.get(o,"attrs.flipH")==="1"),i){var a=i.extend,s=i.chExtend,l=i.chOffset,u=a.w/s.w,c=a.h/s.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*c,this.offset.x=(this.offset.x-l.x)*u,this.offset.y=(this.offset.y-l.y)*c}}this._parseBackground(),this._parseNodes()}return n.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},n.prototype._parseBackground=function(){var e=X.get(this.source,["p:grpSpPr"]);e&&e["a:solidFill"]?this.background=Je(e["a:solidFill"],this.ctx.theme,this.ctx):e&&e["a:gradFill"]?this.background=Vh(e["a:gradFill"],this.ctx.theme,this.ctx):e&&e["a:blipFill"]&&(this.background=zh(e["a:blipFill"],this.pptx,this.ctx))},n.prototype._parseNodes=function(){var e=this.source;Gh(this.nodes,e,this.pptx,this.ctx,this)},n}(),JE=function(n){function e(t,r,i,o){var a=n.call(this,t,i,o)||this;return a.nodes=[],a.pptx=r,a}return so(e,n),e.prototype.parseNode=function(){return gn(this,void 0,void 0,function(){var t,r,i,o,a,s,l,u,c;return vn(this,function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),(t=X.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[t]?(r=this.ctx.rels[t].target,o=Mr,[4,this.pptx.getXmlByPath(r)]):[2];case 1:return i=o.apply(void 0,[h.sent()]),(a=X.get(i,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[a]?(s=this.ctx.rels[a].target,[4,this.pptx.getXmlByPath(s)]):[2];case 2:return l=(l=h.sent()).replace(/dsp:/g,"p:"),u=Mr(l),c=X.get(u,["p:drawing","p:spTree"]),Gh(this.nodes,c,this.pptx,this.ctx),[3,4];case 3:return h.sent(),[3,4];case 4:return[2]}})})},e}(Bh),$E=function(n){function e(t,r,i,o){var a=n.call(this,t,i,o)||this;return a.options={title:{},tooltip:{},legend:{},series:[],color:[]},a.userDrawn=!0,a.pptx=r,a}return so(e,n),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype.parseNode=function(){return gn(this,void 0,void 0,function(){var t,r,i,o,a,s;return vn(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(t=X.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[t]?(r=this.ctx.rels[t].target,o=Mr,[4,this.pptx.getXmlByPath(r)]):[2];case 1:return i=o.apply(void 0,[l.sent()]),a=X.get(i,["c:chartSpace","c:chart"]),s=X.get(a,["c:plotArea"]),X.get(s,["c:lineChart"])?this.parseLine(X.get(s,["c:lineChart"]),a):X.get(s,["c:line3DChart"])?this.parseLine(X.get(s,["c:line3DChart"]),a):X.get(s,["c:areaChart"])?this.parseAreaLine(X.get(s,["c:areaChart"]),a):X.get(s,["c:area3DChart"])?this.parseAreaLine(X.get(s,["c:area3DChart"]),a):X.get(s,["c:barChart"])?this.parseBar(X.get(s,["c:barChart"]),a):X.get(s,["c:bar3DChart"])?this.parseBar(X.get(s,["c:bar3DChart"]),a):X.get(s,["c:pieChart"])?this.parsePie(X.get(s,["c:pieChart"])):X.get(s,["c:pie3DChart"])?this.parsePie(X.get(s,["c:pie3DChart"])):X.get(s,["c:doughnutChart"])&&this.parseDoughnutChart(X.get(s,["c:doughnutChart"])),[3,3];case 2:return l.sent(),[3,3];case 3:return[2]}})})},e.prototype.parseAreaLine=function(t,r){this.parseLine(t,r),this.options.series=this.options.series.map(function(i){return i.areaStyle={},i})},e.prototype.parseLine=function(t,r){var i=X.get(t,["c:ser"]);Array.isArray(i)||(i=[i]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(X.get(r,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(i[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(i,t),this.options.color=this.parseLineColors(i),this.options.legend={bottom:"bottom",left:"center"},X.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(o){return(100*o).toFixed(2)+"%"})},e.prototype.parseBar=function(t,r){var i=X.get(t,["c:ser"]);Array.isArray(i)||(i=[i]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(X.get(r,["c:title"]))},X.get(t,["c:barDir","attrs","val"])==="bar"?(this.options.yAxis={type:"category",data:this.getCategory(i[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(i[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(i,t),this.options.color=this.parseBarColors(i),this.options.legend={bottom:"bottom",left:"center"},X.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(o){return(100*o).toFixed(2)+"%"})},e.prototype.parsePie=function(t){var r=X.get(t,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(r)},this.options.color=this.parsePieColors(r),this.options.series=[this.parsePieSeries(r,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parseDoughnutChart=function(t){var r=X.get(t,["c:ser"]);this.options.title.text=this.parsePieTitle(r),this.options.color=this.parsePieColors(r),this.options.series=[this.parsePieSeries(r,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parsePieTitle=function(t){return X.get(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},e.prototype.parseChartTitle=function(t){var r=X.get(t,["c:tx","c:rich","a:p"]);return Array.isArray(r)||(r=[r]),r.map(function(i){var o=X.get(i,["a:r"]);return Array.isArray(o)||(o=[o]),o.map(function(a){return X.get(a,["a:t"])||""}).join("")}).join("")||"图表标题"},e.prototype.parseBarColors=function(t){var r=this;return t.map(function(i){return De(Je(X.get(i,["c:spPr","a:solidFill"]),r.theme,r.ctx))})},e.prototype.parseLineColors=function(t){var r=this;return t.map(function(i){return De(Je(X.get(i,["c:spPr","a:ln","a:solidFill"])||X.get(i,["c:spPr","a:solidFill"]),r.theme,r.ctx))})},e.prototype.parsePieColors=function(t){var r=this,i=[],o=X.get(t,["c:dPt"]);return Array.isArray(o)||(o=[o]),o.forEach(function(a){i.push(De(Je(X.get(a,["c:spPr","a:solidFill"]),r.theme,r.ctx)))}),i},e.prototype.parsePieSeries=function(t,r){var i={type:"pie",radius:"80%",startAngle:90,data:[]};X.get(r,["c:holeSize","attrs","val"])&&(i.radius=["".concat(.8*X.get(r,["c:holeSize","attrs","val"]),"%"),"80%"]);var o=X.get(r,["c:firstSliceAng","attrs","val"]);o&&(i.startAngle=90-o);for(var a=this.getCategory(t),s=this.getVal(t),l=0;l<a.length;l++)i.data.push({name:a[l],value:s[l]});return i},e.prototype.parseBarSeries=function(t,r){var i,o=this,a=X.get(r,["c:grouping","attrs","val"]);a==="stacked"?i="Ad":a==="percentStacked"&&(i="total");var s=t.map(function(u){return{type:"bar",name:X.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:o.getVal(u),stack:i}});if(a==="percentStacked"){var l=[];s.forEach(function(u,c){l=c===0?Bu([],u.data):l.map(function(h,d){return h+u.data[d]})}),s.forEach(function(u){u.data=u.data.map(function(c,h){return l[h]<=0?0:c/l[h]})})}return s},e.prototype.parseLineSeries=function(t,r){var i,o=this,a=X.get(r,["c:grouping","attrs","val"]);a==="stacked"?i="Ad":a==="percentStacked"&&(i="total");var s=t.map(function(u){return{type:"line",name:X.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:o.getVal(u),stack:i}});if(i==="total"){var l=[];s.forEach(function(u,c){l=c===0?Bu([],u.data):l.map(function(h,d){return h+u.data[d]})}),s.forEach(function(u){u.data=u.data.map(function(c,h){return l[h]<=0?0:c/l[h]})})}return s},e.prototype.getCategory=function(t){if(X.get(t,["c:cat","c:strRef"])){var r=X.get(t,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(r)||(r=[r]),r.map(function(i){return X.get(i,["c:v"])})}if(X.get(t,["c:cat","c:numRef"]))return r=X.get(t,["c:cat","c:numRef","c:numCache","c:pt"]),Array.isArray(r)||(r=[r]),r.map(function(i){return X.get(i,["c:v"])})},e.prototype.getVal=function(t){var r=X.get(t,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(r)||(r=[r]),r.map(function(i){return+X.get(i,["c:v"])})},e}(Bh);function QE(n){var e={},t=X.get(n,"attrs")||{};return Object.keys(t).forEach(function(r){switch(r){case"algn":e.align=t[r];break;case"marL":e.marginLeft=be(parseInt(t[r]));break;case"indent":e.indent=be(parseInt(t[r]));break;case"lvl":e.level=t[r]}}),X.get(n,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(n["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),e}function t5(n,e,t){var r={},i=X.get(n,"attrs")||{};Object.keys(i).forEach(function(a){switch(a){case"sz":r.size=parseInt(i[a])/100;break;case"b":r.bold=i[a]==="1";break;case"i":r.italic=i[a]==="1";break;case"u":r.underline=i[a];break;case"strike":r.strike=i[a];break;case"order":case"dirty":break;default:r[a]=i[a]}});var o=X.get(n,"a:solidFill");return o&&(r.color=Je(o,e,t)),r}function Gh(n,e,t,r,i){return gn(this,void 0,void 0,function(){var o,a,s,l,u,c,h,d,f,g,y,_,v,p,x,b,S,M,I,C,A;return vn(this,function(D){switch(D.label){case 0:for(s in a=[],o=e)a.push(s);l=0,D.label=1;case 1:if(!(l<a.length))return[3,17];if(!((s=a[l])in o))return[3,16];switch(u=s){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(c=Array.isArray(e[u])?e[u]:[e[u]],C=0;C<c.length;C++)v=c[C],n.push(new Fh(v,t,r,i));return[3,16];case 3:for(h=Array.isArray(e[u])?e[u]:[e[u]],C=0;C<h.length;C++)d=h[C],f=d["p:blipFill"]["a:blip"].attrs["r:embed"],g=r.rels[f].target,y=new Sg(g,d,t,r,i),n.push(y);return[3,16];case 4:for(_=Array.isArray(e[u])?e[u]:[e[u]],C=0;C<_.length;C++)v=_[C],n.push(new Fh(v,t,r,i));return[3,16];case 5:p=Array.isArray(e[u])?e[u]:[e[u]],C=0,D.label=6;case 6:if(!(C<p.length))return[3,13];switch(x=p[C],b=X.get(x,["a:graphic","a:graphicData","attrs","uri"]),b){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return n.push(new YE(x,t,r,i)),[3,12];case 8:return[4,(S=new JE(x,t,r,i)).parseNode()];case 9:return D.sent(),n.push(S),[3,12];case 10:return[4,(M=new $E(x,t,r,i)).parseNode()];case 11:return D.sent(),n.push(M),[3,12];case 12:return C++,[3,6];case 13:return[3,16];case 14:for(I=Array.isArray(e[u])?e[u]:[e[u]],C=0;C<I.length;C++)A=I[C],n.push(new Hx(A,t,r,i));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}})})}var Y$=function(){function n(e,t,r){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=r}return Object.defineProperty(n.prototype,"index",{get:function(){if(!this.name)return 0;var e=this.name.match(/(\d+)/);return e?parseInt(e[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),n.prototype.load=function(){return gn(this,void 0,void 0,function(){return vn(this,function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return e.sent(),[2]}})})},n.prototype._loadRels=function(){return gn(this,void 0,void 0,function(){var e,t,r,i=this;return vn(this,function(o){switch(o.label){case 0:return t=Mr,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[o.sent()]),r=X.get(e,["Relationships","Relationship"])||[],Array.isArray(r)||(r=[r]),r.forEach(function(a){switch(X.get(a,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var s=a.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),i.slideLayout=i.pptx.getSlideLayout(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var l=a.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),i.rels[a.attrs.Id]={type:a.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},n.prototype._loadBackground=function(){var e=X.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);e&&e["a:solidFill"]?this.background=Je(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Vh(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=zh(e["a:blipFill"],this.pptx,this))},n.prototype._loadNodes=function(){return gn(this,void 0,void 0,function(){var e;return vn(this,function(t){switch(t.label){case 0:return e=X.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,Gh(this.nodes,e,this.pptx,this)];case 1:return t.sent(),[2]}})})},n.prototype.getColorThemeName=function(e){return this.slideLayout.getColorThemeName(e)},n.prototype.getNodeInheritAttrsByType=function(e,t){var r=this.slideLayout.getNodeByType(e),i=X.get(r.source,t);return i||this.slideLayout.getNodeInheritAttrsByType(e,t)},n.prototype.getNodeInheritAttrsByIdx=function(e,t){var r=this.slideLayout.getNodeByIdx(e),i=X.get(r.source,t);return i||this.slideLayout.getNodeInheritAttrsByIdx(e,t)},n}(),J$=function(){function n(e,t,r){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=r}return Object.defineProperty(n.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),n.prototype.load=function(){return gn(this,void 0,void 0,function(){return vn(this,function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),[4,this._loadBackground()];case 2:return e.sent(),[4,this._loadNodes()];case 3:return e.sent(),[2]}})})},n.prototype._loadRels=function(){return gn(this,void 0,void 0,function(){var e,t,r,i=this;return vn(this,function(o){switch(o.label){case 0:return t=Mr,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[o.sent()]),r=X.get(e,["Relationships","Relationship"])||[],Array.isArray(r)||(r=[r]),r.forEach(function(a){switch(X.get(a,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var s=a.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),i.slideMaster=i.pptx.getSlideMaster(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=a.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),i.rels[a.attrs.Id]={type:a.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},n.prototype._loadBackground=function(){return gn(this,void 0,void 0,function(){var e;return vn(this,function(t){return(e=X.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&e["a:solidFill"]?this.background=Je(e["a:solidFill"],this.theme):e&&e["a:gradFill"]?this.background=Vh(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=zh(e["a:blipFill"],this.pptx,this)),[2]})})},n.prototype._loadNodes=function(){return gn(this,void 0,void 0,function(){var e;return vn(this,function(t){return e=X.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),Gh(this.nodes,e,this.pptx,this),[2]})})},n.prototype.getColorThemeName=function(e){return this.slideMaster.getColorThemeName(e)},n.prototype.getNodeByType=function(e){return this.nodes.find(function(t){return t.type===e})},n.prototype.getNodeByIdx=function(e){return this.nodes.find(function(t){return t.idx===e})},n.prototype.getNodeInheritAttrsByType=function(e,t){var r=this.slideMaster.getNodeByType(e);return r&&X.get(r.source,t)},n.prototype.getNodeInheritAttrsByIdx=function(e,t){var r=this.slideMaster.getNodeByIdx(e);return r&&X.get(r.source,t)},n}(),$$=function(){function n(e,t,r){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=e,this.source=t,this.pptx=r,this.load()}return Object.defineProperty(n.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),n.prototype.load=function(){return gn(this,void 0,void 0,function(){return vn(this,function(e){switch(e.label){case 0:return[4,this._parseRels()];case 1:return e.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}})})},n.prototype._parseRels=function(){return gn(this,void 0,void 0,function(){var e,t,r,i=this;return vn(this,function(o){switch(o.label){case 0:return t=Mr,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[o.sent()]),r=X.get(e,["Relationships","Relationship"])||[],Array.isArray(r)||(r=[r]),r.forEach(function(a){switch(X.get(a,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var s=a.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),i.theme=i.pptx.getTheme(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=a.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),i.rels[a.attrs.Id]={type:a.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},n.prototype._parseColorMap=function(){this.colorMap=X.omit(X.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},n.prototype.getColorThemeName=function(e){return this.colorMap[e]||e},n.prototype._parseBackground=function(){var e=X.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),t=X.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);e&&e["a:solidFill"]?this.background=Je(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Vh(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]?this.background=zh(e["a:blipFill"],this.pptx,this):t&&(this.background=Je(t,this.theme,this))},n.prototype._parseDefaultTextStyle=function(){var e=this,t=this.pptx.defaultTextStyleSource;Object.keys(t).forEach(function(r){if(r.startsWith("a:")&&r.endsWith("pPr")){var i=r.substr(2,r.length-5),o=X.get(t[r],["a:defRPr"]);e.defaultTextStyle[i]={props:QE(t[r]),defRPr:t5(o,e.theme,e)}}})},n.prototype._parseTextStyles=function(){var e=this,t=X.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach(function(r){var i=e.textStyles[r],o=X.get(t,"p:".concat(r))||{};Object.keys(o).forEach(function(a){if(a.startsWith("a:")&&a.endsWith("pPr")){var s=a.substr(2,a.length-5);i[s]={},i[s].props=QE(o[a]);var l=X.get(o[a],["a:defRPr"]);i[s].defRPr=t5(l,e.theme,e)}})})},n.prototype._parseTableStyles=function(){var e=this,t={},r=X.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(r)||(r=[r]),r.forEach(function(i){var o=X.get(i,["attrs","styleId"]);t[o]={},Object.keys(i).forEach(function(a){if(a.startsWith("a:")){var s=a.substr(2);t[o][s]={};var l=X.get(i[a],["a:tcStyle"]);if(l){var u={};X.get(l,["a:fill","a:solidFill"])&&(u.background=Je(X.get(l,["a:fill","a:solidFill"]),e.theme,e));var c=X.get(l,"a:tcBdr");c&&(u.border={},Object.keys(c).forEach(function(f){if(f.startsWith("a:")){var g=f.substr(2),y=X.get(c[f],["a:ln"]);u.border[g]=bu(y,e.theme,e)}})),t[o][s].tcStyle=u}var h=X.get(i[a],["a:tcTxStyle"]);if(h){var d={};d.color=Je(h,e.theme,e),X.get(h,["attrs","b"])==="on"&&(d.bold=!0),t[o][s].tcTxStyle=d}}})}),this.tableStyles=t},n.prototype._loadNodes=function(){return gn(this,void 0,void 0,function(){var e;return vn(this,function(t){return e=X.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),Gh(this.nodes,e,this.pptx,this),[2]})})},n.prototype.getNodeByType=function(e){return this.nodes.find(function(t){return t.type===e})},n.prototype.getNodeByIdx=function(e){return this.nodes.find(function(t){return t.idx===e})},n.prototype.getNodeInheritAttrsByType=function(e,t){},n.prototype.getNodeInheritAttrsByIdx=function(e,t){},n}(),Q$=function(){function n(e,t,r){this.clrScheme={},this.borderScheme=[],this.name=e,this.source=t,this.pptx=r,this._parseClrScheme(),this._parseLineStyleLst()}return n.prototype._parseClrScheme=function(){var e=X.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var t in e)if(t.startsWith("a:")){var r=t.substring(2),i=X.get(e[t],["a:sysClr","attrs","lastClr"])||X.get(e[t],["a:srgbClr","attrs","val"]);this.clrScheme[r]="#"+i}},n.prototype._parseLineStyleLst=function(){var e=this,t=X.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=t.map(function(r){var i={color:{}};return X.get(r,["attrs","w"])&&(i.width=be(parseInt(X.get(r,["attrs","w"])))),X.get(r,["attrs","algn"])&&(i.algn=X.get(r,["attrs","algn"])),X.get(r,["attrs","cap"])&&(i.cap=X.get(r,["attrs","cap"])),X.get(r,["attrs","cmpd"])&&(i.cmpd=X.get(r,["attrs","cmpd"])),X.get(r,["a:miter","attrs","lim"])&&(i.miterLim=be(parseInt(X.get(r,["a:miter","attrs","lim"])))),X.get(r,["a:prstDash","attrs","val"])&&(i.type=X.get(r,["a:prstDash","attrs","val"])),X.get(r,["a:solidFill"])&&(i.color=Je(X.get(r,["a:solidFill"]),e)),i})},n.prototype.getColor=function(e){if(e!=="phClr")return this.clrScheme[e]||this.defaultColor},n.prototype.getLineStyle=function(e){return this.borderScheme[e-1]},n}(),tQ=function(){function n(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={}}return n.prototype.load=function(e){return gn(this,void 0,void 0,function(){var t,r;return vn(this,function(i){switch(i.label){case 0:return t=new jO,r=this,[4,t.loadAsync(e)];case 1:return r._zipContents=i.sent(),[4,this._loadThumbnail()];case 2:return i.sent(),[4,this._loadMedia()];case 3:return i.sent(),[4,this._loadPresentation()];case 4:return i.sent(),[4,this._loadContentTypes()];case 5:return i.sent(),[2]}})})},n.prototype._loadThumbnail=function(){return gn(this,void 0,void 0,function(){var e;return vn(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:e=t.sent(),this.thumbnail="data:image/jpeg;base64,"+e,t.label=2;case 2:return[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}})})},n.prototype._loadPresentation=function(){return gn(this,void 0,void 0,function(){var e,t,r;return vn(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return e=i.sent(),t=Mr(e),r=t["p:presentation"]["p:sldSz"].attrs,this.width=be(parseInt(r.cx)),this.height=be(parseInt(r.cy)),this.defaultTextStyleSource=X.get(t,["p:presentation","p:defaultTextStyle"]),[3,3];case 2:return i.sent(),[3,3];case 3:return[2]}})})},n.prototype._loadContentTypes=function(){return gn(this,void 0,void 0,function(){var e,t,r,i,o,a,s,l,u,c,h,d,f,g,y,_,v,p,x,b,S;return vn(this,function(M){switch(M.label){case 0:return M.trys.push([0,22,,23]),t=Mr,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(e=t.apply(void 0,[M.sent()]),r=e.Types.Override,!(i=r.filter(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"})))return[3,5];o=0,a=i,M.label=2;case 2:return o<a.length?(s=a[o],p=s.attrs.PartName.substr(1),l=Mr,[4,this._zipContents.files[p].async("text")]):[3,5];case 3:x=l.apply(void 0,[M.sent()]),this.themes.push(new Q$(p,x,this)),M.label=4;case 4:return o++,[3,2];case 5:return(u=r.find(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"}))?(p=u.attrs.PartName.substr(1),c=Mr,[4,this._zipContents.files[p].async("text")]):[3,7];case 6:x=c.apply(void 0,[M.sent()]),this.tableStyles=x,M.label=7;case 7:h=r.filter(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"}),v=0,M.label=8;case 8:return v<h.length?(p=h[v].attrs.PartName.substr(1),d=Mr,[4,this._zipContents.files[p].async("text")]):[3,11];case 9:x=d.apply(void 0,[M.sent()]),this.slideMaster.push(new $$(p,x,this)),M.label=10;case 10:return v++,[3,8];case 11:f=r.filter(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"}),v=0,M.label=12;case 12:return v<f.length?(p=f[v].attrs.PartName.substr(1),g=Mr,[4,this._zipContents.files[p].async("text")]):[3,16];case 13:return x=g.apply(void 0,[M.sent()]),[4,(y=new J$(p,x,this)).load()];case 14:M.sent(),this.slideLayouts.push(y),M.label=15;case 15:return v++,[3,12];case 16:_=r.filter(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"}),v=0,M.label=17;case 17:return v<_.length?(p=_[v].attrs.PartName.substr(1),b=Mr,[4,this._zipContents.files[p].async("text")]):[3,21];case 18:return x=b.apply(void 0,[M.sent()]),[4,(S=new Y$(p,x,this)).load()];case 19:M.sent(),this.slides.push(S),M.label=20;case 20:return v++,[3,17];case 21:return this.slides.sort(function(I,C){return I.index-C.index}),[3,23];case 22:return M.sent(),[3,23];case 23:return[2]}})})},n.prototype._loadMedia=function(){return gn(this,void 0,void 0,function(){var e,t,r,i,o,a,s,l,u,c,h,d,f,g=this;return vn(this,function(y){switch(y.label){case 0:e=Object.keys(this._zipContents.files).filter(function(v){return v.startsWith("ppt/media/image")}).map(function(v){return g._zipContents.files[v]}),t=0,r=e,y.label=1;case 1:return t<r.length?(i=r[t],o=function(v){var p;switch(v){case"jpg":case"jpeg":p="image/jpeg";break;case"png":p="image/png";break;case"gif":p="image/gif";break;case"emf":p="image/x-emf";break;case"wmf":p="image/x-wmf";break;default:p="image/*"}return p}((_=i.name).substr(2+(~-_.lastIndexOf(".")>>>0))),[4,i.async("base64")]):[3,4];case 2:a=y.sent(),this.medias[i.name]="data:".concat(o,";base64,").concat(a),y.label=3;case 3:return t++,[3,1];case 4:s=Object.keys(this._zipContents.files).filter(function(v){return v.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(v.split(".").pop().toLowerCase())}).map(function(v){return g._zipContents.files[v]}),l=0,u=s,y.label=5;case 5:return l<u.length?(c=u[l],h=c.name.split(".").pop().toLowerCase(),[4,c.async("arraybuffer")]):[3,8];case 6:d=y.sent(),f=new Blob([d],{type:"".concat(["mp3","wav"].includes(h)?"audio":"video","/").concat(h)}),this.medias[c.name]=URL.createObjectURL(f),y.label=7;case 7:return l++,[3,5];case 8:return[2]}var _})})},n.prototype.getXmlByPath=function(e){return gn(this,void 0,void 0,function(){return vn(this,function(t){switch(t.label){case 0:if(!this._zipContents.files[e])throw new Error("文件不存在");return[4,this._zipContents.files[e].async("text")];case 1:return[2,t.sent()]}})})},n.prototype.getSlideLayout=function(e){return this.slideLayouts.find(function(t){return t.name===e})},n.prototype.getSlideMaster=function(e){return this.slideMaster.find(function(t){return t.name===e})},n.prototype.getTheme=function(e){return this.themes.find(function(t){return t.name===e})},n.prototype.getMedia=function(e){return this.medias[e]},n}();function Ux(n){var e=n.extend,t=n.offset,r=n.clip,i=n.base64,o=n.audioFile,a=n.videoFile,s=document.createElement("div");s.style.setProperty("position","absolute"),s.style.setProperty("left",t.x+"px"),s.style.setProperty("top",t.y+"px");var l,u,c,h,d=document.createElement("div");d.style.setProperty("position","absolute"),d.style.setProperty("left","0"),d.style.setProperty("top","0"),d.style.setProperty("width",e.w+"px"),d.style.setProperty("height",e.h+"px"),d.style.setProperty("overflow","hidden"),r?(l=e.w/(1-(r.l===void 0?0:r.l)-(r.r===void 0?0:r.r)),u=e.h/(1-(r.t===void 0?0:r.t)-(r.b===void 0?0:r.b)),c=-1*l*(r.l===void 0?0:r.l),h=-1*u*(r.t===void 0?0:r.t)):(l=e.w,u=e.h,c=0);var f=document.createElement("img");if(f.src=i,f.width=l,f.height=u,f.style.setProperty("position","absolute"),f.style.setProperty("left",c+"px"),f.style.setProperty("top",h+"px"),d.append(f),s.append(d),o){var g=document.createElement("audio");g.style.position="absolute",g.style.left="0",g.style.top="0",g.src=o,g.controls=!0,g.style.transform="translate(-50%)",s.append(g)}if(a){var y=document.createElement("video");y.style.position="absolute",y.style.left="0",y.style.top="0",y.width=e.w,y.height=e.h,y.src=a,y.controls=!0,s.append(y)}return s}function eQ(n,e,t){var r,i=n.props,o=n.text,a=Dt(Dt({},e),i),s=document.createElement("span");s.innerHTML=o;var l=18;a.size&&(!((r=t==null?void 0:t.normAutofit)===null||r===void 0)&&r.fontScale?(l=a.size*t.normAutofit.fontScale,s.style.fontSize=l+"px"):(l=a.size,s.style.fontSize=l+"px"));var u=De(a.color);u&&(s.style.color=u);var c=/^[^\u4e00-\u9fff]+$/;if(a.typeface)switch(s.style.fontFamily=a.typeface,a.typeface){case"DengXian":c.test(o)&&(s.style.letterSpacing=-.04*l+"px");break;case"DengXian Light":c.test(o)&&(s.style.letterSpacing=-.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":c.test(o)&&(s.style.fontSize=.85*parseInt(s.style.fontSize)+"px");break;case"华文中宋":s.style.fontSize=.85*parseInt(s.style.fontSize)+"px";break;case"FangSong":s.style.letterSpacing=-.08*l+"px"}else c.test(o)&&(s.style.letterSpacing=-.04*l+"px");return a.bold&&(s.style.fontWeight="bold"),a.italic&&(s.style.fontStyle="italic"),a.underline&&a.underline!=="none"&&(s.style.textDecoration="underline"),a.background&&(s.style.backgroundColor=De(a.background)),s.style.wordBreak="break-word",s}function nQ(n,e,t){var r=document.createElement("span"),i=n.firstElementChild;switch(r.style.fontSize=i.style.fontSize,r.style.color=i.style.color,r.style.fontWeight=i.style.fontWeight,r.style.fontStyle=i.style.fontStyle,r.style.marginRight="10px",e.buAutoNum){case"arabicPeriod":default:r.textContent=t+".";break;case"circleNumDbPlain":r.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][t-1]||t+"";break;case"romanUcPeriod":r.textContent=function(o){var a=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof o!="number"||o<1||o>3999)throw new Error("Input must be a number between 1 and 3999.");for(var s="",l=0;l<a.length;l++)for(;o>=a[l].value;)s+=a[l].numeral,o-=a[l].value;return s}(t)+".";break;case"alphaUcPeriod":r.textContent=Bx(t)+".";break;case"alphaLcPeriod":r.textContent=Bx(t).toLowerCase()+".";break;case"alphaLcParenR":r.textContent=Bx(t).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":r.textContent=function(o){var a=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(o)||o<0)return"";for(var s="",l=o.toString(),u=0;u<l.length;u++)s+=a[parseInt(l[u],10)];return s}(t)+"."}n.prepend(r)}function Mg(n,e,t){var r,i,o,a;e===void 0&&(e=0),t===void 0&&(t={});var s=n.inheritProps,l=n.inheritRProps,u=n.props,c=n.rows,h=Dt(Dt({},s),u),d=function(){for(var M,I,C=0,A=0,D=c;A<D.length;A++){var N=D[A];N.props&&N.props.size&&(C=Math.max(C,N.props.size))}var L=((I=(M=t==null?void 0:t.bodyProps)===null||M===void 0?void 0:M.normAutofit)===null||I===void 0?void 0:I.fontScale)||1;return(C||l.size||18)*L},f=document.createElement("div"),g=t.isFirst?0:h.spaceBefore||0,y=t.isLast?0:h.spaceAfter||0;f.style.margin="".concat(Math.floor(.2*d()),"px 0 0 0"),f.style.padding="".concat(Math.floor(g),"px 0px ").concat(Math.floor(y),"px 0px");var _=document.createElement("p");_.style.margin="0",_.style.padding="0px",_.style.wordBreak="break-word",_.style.textAlign=h.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[h.align]||"center",h.align==="dist"&&(_.style.textAlignLast="justify");var v=h.hasOwnProperty("lineHeight")?h.lineHeight:1;if(!((i=(r=t.bodyProps)===null||r===void 0?void 0:r.normAutofit)===null||i===void 0)&&i.lnSpcReduction&&(v*=1-((a=(o=t.bodyProps)===null||o===void 0?void 0:o.normAutofit)===null||a===void 0?void 0:a.lnSpcReduction)),_.style.lineHeight=v+"",_.style.fontSize=d()+"px",c.length){for(var p=0,x=c;p<x.length;p++){var b=x[p];_.appendChild(eQ(b,Dt(Dt({},l),{marginTop:Math.floor(.2*d())}),t.bodyProps))}h.buAutoNum?nQ(_,h,e):h.buChar&&function(M,I){var C=document.createElement("span"),A=M.firstElementChild;C.style.color=A.style.color,C.style.fontSize=A.style.fontSize,C.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[I.buChar]||"■",C.style.marginRight="10px",M.prepend(C)}(_,h),_.style.paddingLeft=(h.marginLeft||0)+(h.indent||0)+"px"}else{var S=document.createElement("span");S.innerHTML="&nbsp;",S.style.fontSize=l.size+"px",_.appendChild(S)}return f.appendChild(_),f}var e5="http://www.w3.org/2000/svg";function mt(n){return document.createElementNS(e5,n)}function Eo(n){var e=n.extend;return .16667*Math.min(e.w,e.h)}function Kt(n,e,t){t===void 0&&(t=0);var r=e.prstGeom,i=((r==null?void 0:r.gd)||[]).find(function(o){return o.name===n});return i?i.fmla:t}function vt(n,e,t){t===void 0&&(t=0);var r=e.extend,i=e.prstGeom,o=((i==null?void 0:i.gd)||[]).find(function(a){return a.name===n});return o?Math.min(r.w,r.h)*o.fmla:t}function n5(n,e,t){t===void 0&&(t=0);var r=e.extend,i=e.prstGeom,o=((i==null?void 0:i.gd)||[]).find(function(a){return a.name===n});return o?Math.max(r.w,r.h)*o.fmla:t}function to(n,e){var t=0;switch(n){case"sm":t=1*e;break;case"med":t=1.5*e;break;case"lg":t=2.5*e}return Math.max(t,2)}function r5(n,e,t,r){r===void 0&&(r=!1);var i=n.border,o=i===void 0?{}:i,a=n.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,f=d===void 0?"med":d,g=h.w,y=g===void 0?"med":g,_=to(f,l),v=to(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(a,"-").concat(r?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*v)),x.setAttribute("refX",_+"px"),x.setAttribute("refY",v+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var S=mt("ellipse");S.setAttribute("cx",_+"px"),S.setAttribute("cy",v+"px"),S.setAttribute("rx",_+"px"),S.setAttribute("ry",v+"px"),S.setAttribute("fill",De(u)||"transparent"),x.appendChild(S),p.appendChild(x),e.appendChild(p),t.setAttribute(r?"marker-start":"marker-end","url(#".concat(b,")"))}function i5(n,e,t,r){r===void 0&&(r=!1);var i=n.border,o=i===void 0?{}:i,a=n.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,f=d===void 0?"med":d,g=h.w,y=g===void 0?"med":g,_=to(f,l),v=to(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(a,"-").concat(r?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*v)),x.setAttribute("refX",(r?.9*_:1.1*_)+"px"),x.setAttribute("refY",v+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var S=mt("path"),M=r?["M ".concat(2*_,",0"),"L 0,".concat(v),"L ".concat(2*_,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(v),"L 0,".concat(2*v),"Z"].join(" ");S.setAttribute("d",M),S.setAttribute("fill",De(u)||"transparent"),x.appendChild(S),p.appendChild(x),e.appendChild(p),t.setAttribute(r?"marker-start":"marker-end","url(#".concat(b,")"))}function o5(n,e,t,r){r===void 0&&(r=!1);var i=n.border,o=i===void 0?{}:i,a=n.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,f=d===void 0?"med":d,g=h.w,y=g===void 0?"med":g,_=to(f,l),v=to(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(a,"-").concat(r?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*v)),x.setAttribute("refX",_+"px"),x.setAttribute("refY",v+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var S=mt("path"),M=["M 0,".concat(v),"L ".concat(_,",0"),"L ".concat(2*_,",").concat(v),"L ".concat(_,",").concat(2*v),"Z"].join(" ");S.setAttribute("d",M),S.setAttribute("fill",De(u)||"transparent"),x.appendChild(S),p.appendChild(x),e.appendChild(p),t.setAttribute(r?"marker-start":"marker-end","url(#".concat(b,")"))}function a5(n,e,t,r){r===void 0&&(r=!1);var i=n.border,o=i===void 0?{}:i,a=n.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,f=d===void 0?"med":d,g=h.w,y=g===void 0?"med":g,_=to(f,l),v=to(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(a,"-").concat(r?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_+2*l," ").concat(2*v+2*l));var S=r?y==="lg"?2*l:3*l:y==="lg"?2*_:2*_-l;x.setAttribute("refX",S+"px"),x.setAttribute("refY",v+l+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var M=mt("path"),I=r?["M ".concat(2*_+l,", ").concat(l),"L ".concat(l,",").concat(v+l),"L ".concat(2*_+l,",").concat(2*v+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*_+l,",").concat(v+l),"L ".concat(l,",").concat(2*v+l)].join(" ");M.setAttribute("d",I),M.setAttribute("stroke-width",l+"px"),M.setAttribute("stroke",De(u)||"transparent"),M.setAttribute("fill","transparent"),M.setAttribute("stroke-linecap","round"),M.setAttribute("stroke-linejoin","miter"),M.style.overflow="visible",x.appendChild(M),p.appendChild(x),e.appendChild(p),t.setAttribute(r?"marker-start":"marker-end","url(#".concat(b,")"))}function s5(n,e,t,r){r===void 0&&(r=!1);var i=n.border,o=i===void 0?{}:i,a=n.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=r?s:c,d=h.len,f=d===void 0?"med":d,g=h.w,y=g===void 0?"med":g,_=to(f,l),v=to(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(a,"-").concat(r?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*v));var S=r?y==="sm"?1.5*l:2*l:y==="sm"?2*_-1.5*l:2*_-2*l;x.setAttribute("refX",S+"px"),x.setAttribute("refY",v+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var M=mt("path"),I=r?["M 0, ".concat(v),"L ".concat(2*_,",0"),"L ".concat(_,",").concat(v),"L ".concat(2*_,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(v),"L 0,".concat(2*v),"L ".concat(_,",").concat(v),"Z"].join(" ");M.setAttribute("d",I),M.setAttribute("fill",De(u)||"transparent"),M.style.overflow="visible",x.appendChild(M),p.appendChild(x),e.appendChild(p),t.setAttribute(r?"marker-start":"marker-end","url(#".concat(b,")"))}function Wh(n,e,t){var r=n.border,i=r===void 0?{}:r;n.extend;var o=i.headEnd,a=i.tailEnd;if(o&&o.type!=="none")switch(o.type){case"triangle":i5(n,e,t,!0);break;case"oval":r5(n,e,t,!0);break;case"diamond":o5(n,e,t,!0);break;case"arrow":a5(n,e,t,!0);break;case"stealth":s5(n,e,t,!0)}if(a&&a.type!=="none")switch(a.type){case"triangle":i5(n,e,t,!1);break;case"oval":r5(n,e,t,!1);break;case"diamond":o5(n,e,t,!1);break;case"arrow":a5(n,e,t,!1);break;case"stealth":s5(n,e,t,!1)}}function l5(n){var e=n.extend,t=mt("rect");return t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("width",e.w+"px"),t.setAttribute("height",e.h+"px"),t}function Hn(n,e,t,r,i){var o=n*Math.PI/180;return[o===0||o===2*Math.PI?e+r:o===Math.PI?e-r:o===Math.PI/2||o===3*Math.PI/2?e:o>0&&o<Math.PI/2||o>3*Math.PI/2&&o<2*Math.PI?e+Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(Math.tan(o),2)/Math.pow(i,2))):e-Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(Math.tan(o),2)/Math.pow(i,2))),o===0||o===2*Math.PI||o===Math.PI?t:o===Math.PI/2?t+i:o===3*Math.PI/2?t-i:o>Math.PI&&o<2*Math.PI?t-Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(o),2)/Math.pow(r,2))):t+Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(o),2)/Math.pow(r,2)))]}function jh(n,e){var t=0;return(e>n&&e-n>180||e<n&&n-e<180)&&(t=1),t}function Hh(n){var e=n.extend,t=.146*e.w,r=.146*e.h;return{top:r,bottom:r,left:t,right:t,w:e.w-2*t,h:e.h-2*r}}function Xx(n){var e=n.extend,t=n.offset,r=n.border,i=n.background,o=n.rotate,a=n.flipH,s=n.flipV,l=document.createElement("div"),u=t.x,c=t.y;l.className="shape-wrapper shape-".concat(n.shape),l.style.setProperty("position","absolute"),l.style.setProperty("width",(e.w||1)+"px"),l.style.setProperty("height",(e.h||1)+"px"),l.style.setProperty("left",u+"px"),l.style.setProperty("top",c+"px");var h,d=document.createElementNS(e5,"svg");d.style.setProperty("position","absolute"),d.setAttribute("width","100%"),d.setAttribute("height","100%"),d.style.setProperty("left","0"),d.style.setProperty("top","0"),d.style.overflow="visible";var f={left:0,top:0,bottom:0,w:e.w,h:e.h},g=!0;switch(n.shape){case"customGeom":h=function(v){var p=v.prstGeom,x=p===void 0?{}:p,b=v.extend,S=x.pathList,M=x.w,I=x.h,C=mt("path"),A={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},D=b.w/M,N=b.h/I,L=S.map(function(E){var k=A[E.type],z=Array.isArray(E.points)?E.points.map(function(F){return"".concat(F[0]*D,",").concat(F[1]*N)}).join(" "):"";return z?"".concat(k," ").concat(z):"".concat(k)}).join(" ");return C.setAttribute("d",L),C.style.fillRule="evenodd",C}(n),Wh(n,d,h);break;case"flowChartProcess":case"rect":h=l5(n);break;case"snip1Rect":h=function(v){var p=v.extend,x=mt("polygon"),b=vt("adj",v,Eo(v)),S=["0,0","".concat(p.w-b,",0"),"".concat(p.w,",").concat(b),"".concat(p.w,",").concat(p.h),"0,".concat(p.h)].join(" ");return x.setAttribute("points",S),x}(n);break;case"snip2SameRect":h=function(v){var p=v.extend,x=mt("polygon"),b=vt("adj1",v,Eo(v)),S=vt("adj2",v,0),M=[[b,0],[p.w-b,0],[p.w,b],[p.w,p.h-S],[p.w-S,p.h],[S,p.h],[0,p.h-S],[0,b]].map(function(I){return"".concat(I[0],",").concat(I[1])}).join(" ");return x.setAttribute("points",M),x}(n);break;case"snip2DiagRect":h=function(v){var p=v.extend,x=mt("polygon"),b=vt("adj1",v,0),S=vt("adj2",v,Eo(v)),M=[[b,0],[p.w-S,0],[p.w,S],[p.w,p.h-b],[p.w-b,p.h],[S,p.h],[0,p.h-S],[0,b]].map(function(I){return"".concat(I[0],",").concat(I[1])}).join(" ");return x.setAttribute("points",M),x}(n);break;case"snipRoundRect":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,Eo(v)),S=vt("adj2",v,Eo(v)),M=["M ".concat(b,",0"),"L ".concat(p.w-S,",0"),"L ".concat(p.w,",").concat(S),"L ".concat(p.w,",").concat(p.h),"L 0,".concat(p.h),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return x.setAttribute("d",M),x}(n);break;case"roundRect":h=function(v){var p=l5(v),x=vt("adj",v,Eo(v));return p.setAttribute("rx",x+"px"),p.setAttribute("ry",x+"px"),p}(n);break;case"round1Rect":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,Eo(v)),S=["M 0,0","L ".concat(p.w-b,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(b),"L ".concat(p.w,",").concat(p.h),"L 0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",S),x}(n);break;case"round2SameRect":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,Eo(v)),S=vt("adj2",v,0),M=["M ".concat(b,",0"),"L ".concat(p.w-b,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(b),"L ".concat(p.w,",").concat(p.h-S),"Q ".concat(p.w,",").concat(p.h," ").concat(p.w-S,",").concat(p.h),"L ".concat(S,",").concat(p.h),"Q 0,".concat(p.h," 0,").concat(p.h-S),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return x.setAttribute("d",M),x}(n);break;case"round2DiagRect":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,Eo(v)),S=vt("adj2",v,0),M=["M ".concat(b,",0"),"L ".concat(p.w-S,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(S),"L ".concat(p.w,",").concat(p.h-b),"Q ".concat(p.w,",").concat(p.h," ").concat(p.w-b,",").concat(p.h),"L ".concat(S,",").concat(p.h),"Q 0,".concat(p.h," 0,").concat(p.h-S),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return x.setAttribute("d",M),x}(n);break;case"triangle":h=function(v){var p=v.extend,x=mt("polygon"),b=["".concat(p.w/2,",0"),"0,".concat(p.h),"".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("points",b),x}(n);break;case"rtTriangle":h=function(v){var p=v.extend,x=mt("polygon"),b=["0,".concat(p.h),"0,0","".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("points",b),x}(n);break;case"ellipse":h=function(v){var p=v.extend,x=mt("ellipse"),b=p.w/2,S=p.h/2,M=b,I=S;return x.setAttribute("cx",b+"px"),x.setAttribute("cy",S+"px"),x.setAttribute("rx",M+"px"),x.setAttribute("ry",I+"px"),x}(n);break;case"line":h=function(v){var p=v.extend,x=mt("path"),b=["M 0,0","L ".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("d",b),x}(n),Wh(n,d,h),g=!1;break;case"straightConnector1":h=function(v){var p=v.extend,x=mt("path"),b=["M 0,0","L ".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("d",b),x}(n),Wh(n,d,h),g=!1;break;case"bentConnector3":h=function(v){var p=v.extend,x=mt("path"),b=n5("adj1",v,.5*Math.max(p.w,p.h)),S=["M 0,0","L ".concat(b,",0"),"L ".concat(b,",").concat(p.h),"L ".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("d",S),x}(n),Wh(n,d,h),g=!1;break;case"curvedConnector3":h=function(v){var p=v.extend,x=mt("path"),b=n5("adj1",v,.5*Math.max(p.w,p.h)),S=["M0,0","Q".concat(b,",0 ").concat(b,",").concat(p.h/2),"T".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("d",S),x}(n),Wh(n,d,h),g=!1;break;case"parallelogram":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.5*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w,",0"),"L".concat(p.w-b,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",S),x}(n),f=function(v){var p=v.extend,x=vt("adj",v,.5*Math.min(p.w,p.h)),b=.84*(p.w-x),S=.08*p.h+x/p.w*p.h*.42;return{top:S,bottom:S,left:(p.w-b)/2,right:(p.w-b)/2,w:b,h:p.h-2*S}}(n);break;case"trapezoid":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.25*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",S),x}(n),f=function(v){var p=v.extend,x=vt("adj",v,.5*Math.min(p.w,p.h)),b=x/p.w*.66*p.h,S=.66*x;return{top:b,bottom:0,left:S,right:S,w:p.w-2*S,h:p.h-b}}(n);break;case"diamond":h=function(v){var p=v.extend,x=mt("path"),b=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h/2),"Z"].join(" ");return x.setAttribute("d",b),x}(n),f=function(v){var p=v.extend,x=.25*p.h,b=.25*p.w;return{top:x,bottom:x,left:b,right:b,w:.5*p.w,h:.5*p.h}}(n);break;case"pentagon":h=function(v){var p=v.extend,x=mt("path"),b=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(.3771*p.h),"L".concat(.808*p.w,",").concat(p.h),"L".concat(.192*p.w,",").concat(p.h),"L0,".concat(.3771*p.h),"Z"].join(" ");return x.setAttribute("d",b),x}(n),f=function(v){var p=v.extend,x=.227*p.h,b=.192*p.w;return{top:x,bottom:0,left:b,right:b,w:.616*p.w,h:.773*p.h}}(n);break;case"hexagon":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.25*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L0,".concat(p.h/2),"Z"].join(" ");return x.setAttribute("d",S),x}(n),f=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h)),b=.098*p.h+x/p.w*.38*p.h,S=.088*p.w+.422*x;return{top:b,bottom:b,left:S,right:S,w:p.w-2*S,h:p.h-2*b}}(n);break;case"heptagon":h=function(v){var p=v.extend,x=mt("path"),b=["M".concat(p.w/2,",0"),"L".concat(.9*p.w,",").concat(.2*p.h),"L".concat(p.w,",").concat(.642*p.h),"L".concat(.722*p.w,",").concat(p.h),"L".concat(.278*p.w,",").concat(p.h),"L0,".concat(.642*p.h),"L".concat(.1*p.w,",").concat(.2*p.h),"Z"].join(" ");return x.setAttribute("d",b),x}(n),f=function(v){var p=v.extend;return{top:.2*p.h,bottom:.2*p.h,left:.1*p.w,right:.1*p.w,w:.8*p.w,h:.6*p.h}}(n);break;case"octagon":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.29*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L0,".concat(p.h-b),"L0,".concat(b),"Z"].join(" ");return x.setAttribute("d",S),x}(n),f=function(v){var p=v.extend,x=vt("adj",v,.29*Math.min(p.w,p.h));return{top:.5*x,bottom:.5*x,left:.5*x,right:.5*x,w:p.w-x,h:p.h-x}}(n);break;case"decagon":h=function(v){var p=v.extend,x=mt("path"),b=.344,S=.117,M=.19,I=["M".concat(p.w*b,",0"),"L".concat(.656*p.w,",0"),"L".concat(.883*p.w,",").concat(p.h*M),"L".concat(p.w,",").concat(.5*p.h),"L".concat(.883*p.w,",").concat(.81*p.h),"L".concat(.656*p.w,",").concat(p.h),"L".concat(p.w*b,",").concat(p.h),"L".concat(p.w*S,",").concat(.81*p.h),"L0,".concat(.5*p.h),"L".concat(p.w*S,",").concat(p.h*M),"Z"].join(" ");return x.setAttribute("d",I),x}(n),f=function(v){var p=v.extend,x=.117,b=.19;return{top:p.h*b,bottom:p.h*b,left:p.w*x,right:p.w*x,w:.766*p.w,h:.62*p.h}}(n);break;case"dodecagon":h=function(v){var p=v.extend,x=mt("path"),b=.364,S=.133,M=.135,I=["M".concat(p.w*b,",0"),"L".concat(.636*p.w,",0"),"L".concat(.867*p.w,",").concat(p.h*M),"L".concat(p.w,",").concat(p.h*b),"L".concat(p.w,",").concat(.636*p.h),"L".concat(.867*p.w,",").concat(.865*p.h),"L".concat(.636*p.w,",").concat(p.h),"L".concat(p.w*b,",").concat(p.h),"L".concat(p.w*S,",").concat(.865*p.h),"L0,".concat(.636*p.h),"L0,".concat(p.h*b),"L".concat(p.w*S,",").concat(p.h*M),"Z"].join(" ");return x.setAttribute("d",I),x}(n),f=function(v){var p=v.extend,x=.133,b=.135;return{top:p.h*b,bottom:p.h*b,left:p.w*x,right:p.w*x,w:.734*p.w,h:.73*p.h}}(n);break;case"pie":h=function(v){var p=v.extend,x=mt("path"),b=Kt("adj1",v,360),S=Kt("adj2",v,270),M=p.w/2,I=p.h/2,C=p.w/2,A=p.h/2,D=Hn(b,C,A,M,I),N=D[0],L=D[1],E=Hn(S,C,A,M,I),k=E[0],z=E[1],F=jh(b,S),W="M".concat(C,",").concat(A,", L").concat(N," ").concat(L," A ").concat(M," ").concat(I," 0 ").concat(F," ").concat(1," ").concat(k," ").concat(z," Z");return x.setAttribute("d",W),x}(n),f=Hh(n);break;case"arc":h=function(v){var p=v.extend,x=mt("path"),b=Kt("adj1",v,270),S=Kt("adj2",v,0),M=p.w/2,I=p.h/2,C=p.w/2,A=p.h/2,D=Hn(b,C,A,M,I),N=D[0],L=D[1],E=Hn(S,C,A,M,I),k=E[0],z=E[1],F=jh(b,S),W="M".concat(N,",").concat(L," A ").concat(M," ").concat(I," 0 ").concat(F," ").concat(1," ").concat(k," ").concat(z);return x.setAttribute("d",W),x}(n),g=!1;break;case"bracketPair":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.16667*Math.min(p.w,p.h)),S=["M".concat(b,",").concat(p.h),"Q".concat(0,",").concat(p.h," ").concat(0,",").concat(p.h-b),"L".concat(0,",").concat(b),"Q".concat(0,",").concat(0," ").concat(b,",").concat(0),"M".concat(p.w-b,",").concat(0),"Q".concat(p.w,",").concat(0," ").concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"Q".concat(p.w,",").concat(p.h," ").concat(p.w-b,",").concat(p.h)].join(" ");return x.setAttribute("d",S),x}(n),f=function(v){var p=v.extend,x=.285*vt("adj",v,.16667*Math.min(p.w,p.h));return{top:x,bottom:x,left:x,right:x,w:p.w-2*x,h:p.h-2*x}}(n),g=!1;break;case"bracePair":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.083335*Math.min(p.w,p.h)),S=["M".concat(2*b,",").concat(p.h),"Q".concat(b,",").concat(p.h," ").concat(b,",").concat(p.h-b),"L".concat(b,",").concat(p.h/2+b),"Q".concat(b,",").concat(p.h/2," ").concat(0,",").concat(p.h/2),"Q".concat(b,",").concat(p.h/2," ").concat(b,",").concat(p.h/2-b),"L".concat(b,",").concat(b),"Q".concat(b,",").concat(0," ").concat(2*b,",").concat(0),"M".concat(p.w-2*b,",").concat(0),"Q".concat(p.w-b,",").concat(0," ").concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h/2-b),"Q".concat(p.w-b,",").concat(p.h/2," ").concat(p.w,",").concat(p.h/2),"Q".concat(p.w-b,",").concat(p.h/2," ").concat(p.w-b,",").concat(p.h/2+b),"L".concat(p.w-b,",").concat(p.h-b),"Q".concat(p.w-b,",").concat(p.h," ").concat(p.w-2*b,",").concat(p.h)].join(" ");return x.setAttribute("d",S),x}(n),f=function(v){var p=v.extend,x=.285*vt("adj",v,.16667*Math.min(p.w,p.h));return{top:x,bottom:x,left:x,right:x,w:p.w-2*x,h:p.h-2*x}}(n),g=!1;break;case"chord":h=function(v){var p=v.extend,x=mt("path"),b=Kt("adj1",v,45),S=Kt("adj2",v,270),M=p.w/2,I=p.h/2,C=p.w/2,A=p.h/2,D=Hn(b,C,A,M,I),N=D[0],L=D[1],E=Hn(S,C,A,M,I),k=E[0],z=E[1],F=jh(b,S),W="M".concat(N," ").concat(L," A ").concat(M," ").concat(I," 0 ").concat(F," ").concat(1," ").concat(k," ").concat(z," Z");return x.setAttribute("d",W),x}(n),f=Hh(n);break;case"teardrop":h=function(v){var p=v.extend,x=mt("path"),b=Kt("adj",v,1),S=p.w/2,M=p.h/2,I=p.w/2,C=p.h/2,A=Hn(0,I,C,S,M),D=A[0],N=A[1],L=Hn(270,I,C,S,M),E=L[0],k=L[1],z=jh(0,270),F="M".concat(D," ").concat(N," A ").concat(S," ").concat(M," 0 ").concat(z," ").concat(1," ").concat(E," ").concat(k),W=S*b,q=I+W,j=C-M*W/(p.w/2),J=(p.w/2+q)/2,H=(p.h/2+j)/2;return F+=" Q".concat(J,",0 ").concat(q,",").concat(j),F+=" Q".concat(p.w,",").concat(H," ").concat(I+S,",").concat(C),x.setAttribute("d",F),x}(n),f=Hh(n);break;case"frame":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,.12*Math.min(p.w,p.h)),S=["M0,0","L".concat(p.w,",0"),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z","M".concat(b,",").concat(b),"L".concat(b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(b),"Z"].join(" ");return x.setAttribute("d",S),x}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.12*Math.min(p.w,p.h));return{top:x,bottom:x,left:x,right:x,w:p.w-2*x,h:p.h-2*x}}(n);break;case"halfFrame":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,.333*Math.min(p.w,p.h)),S=Math.min(vt("adj2",v,.333*Math.min(p.w,p.h)),p.w*(1-b/p.h)),M=["M0,0","L".concat(p.w,",0"),"L".concat(p.w*(1-b/p.h),",").concat(b),"L".concat(S,",").concat(b),"L".concat(S,",").concat(p.h*(1-S/p.w)),"L0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",M),x}(n);break;case"corner":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,.5*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=["M0,0","L".concat(S,",0"),"L".concat(S,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",M),x}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h));return{top:p.h-x,bottom:0,left:0,right:0,w:p.w,h:x}}(n);break;case"diagStripe":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.5*Math.min(p.w,p.h)),S=p.w*b/p.h,M=["M".concat(S,",0"),"L".concat(p.w,",0"),"L0,".concat(p.h),"L0,".concat(b),"Z"].join(" ");return x.setAttribute("d",M),x}(n),f=function(v){var p=v.extend,x=Kt("adj",v,.5),b=.5*(1-x)*p.h,S=.5*(1-x)*p.w;return{top:0,bottom:b,left:0,right:S,w:p.w-S,h:p.h-b}}(n);break;case"plus":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.25*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L".concat(b,",").concat(p.h-b),"L0,".concat(p.h-b),"L0,".concat(b),"L".concat(b,",").concat(b),"Z"].join(" ");return x.setAttribute("d",S),x}(n),f=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h));return{top:x,bottom:x,left:0,right:0,w:p.w,h:p.h-2*x}}(n);break;case"plaque":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.16667*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"Q".concat(p.w-b,",").concat(b," ").concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"Q".concat(p.w-b,",").concat(p.h-b," ").concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"Q".concat(b,",").concat(p.h-b," 0,").concat(p.h-b),"L0,".concat(b),"Q".concat(b,",").concat(b," ").concat(b,",0"),"Z"].join(" ");return x.setAttribute("d",S),x}(n),f=function(v){var p=v.extend,x=vt("adj",v,.16667*Math.min(p.w,p.h));return{top:.72*x,bottom:.72*x,left:.72*x,right:.72*x,w:p.w-1.44*x,h:p.w-1.44*x}}(n);break;case"can":h=function(v){var p=v.extend,x=v.background,b=mt("g"),S=mt("path"),M=vt("adj",v,.25*Math.min(p.w,p.h)),I=["M0,".concat(M/2),"L0,".concat(p.h-M/2),"A".concat(p.w/2,",").concat(M/2," 0 0 0 ").concat(p.w,",").concat(p.h-M/2),"L".concat(p.w,",").concat(M/2),"A".concat(p.w/2,",").concat(M/2," 0 0 1 0,").concat(M/2),"Z"].join(" ");S.setAttribute("d",I);var C=mt("ellipse"),A=p.w/2,D=M/2,N=p.w/2,L=M/2;return C.setAttribute("cx",A+"px"),C.setAttribute("cy",D+"px"),C.setAttribute("rx",N+"px"),C.setAttribute("ry",L+"px"),(x==null?void 0:x.type)==="solidFill"&&C.setAttribute("fill",De(x,{light:.5})||"transparent"),b.appendChild(S),b.appendChild(C),b}(n),f=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h));return{top:x,bottom:0,left:0,right:0,w:p.w,h:p.h-x}}(n);break;case"cube":h=function(v){var p=v.extend,x=v.background,b=vt("adj",v,.25*Math.min(p.w,p.h)),S=mt("g"),M=mt("path"),I=["M0,".concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");M.setAttribute("d",I);var C=mt("path"),A=["M0,".concat(b),"L".concat(b,",0"),"L".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"Z"].join(" ");C.setAttribute("d",A),(x==null?void 0:x.type)==="solidFill"&&C.setAttribute("fill",De(x,{light:.8})||"transparent");var D=mt("path"),N=["M".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return D.setAttribute("d",N),(x==null?void 0:x.type)==="solidFill"&&D.setAttribute("fill",De(x,{dark:.6})||"transparent"),S.appendChild(M),S.appendChild(C),S.appendChild(D),S}(n),f=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h));return{top:x,bottom:0,left:0,right:x,w:p.w-x,h:p.h-x}}(n);break;case"bevel":h=function(v){var p=v.extend,x=v.background,b=vt("adj",v,.125*Math.min(p.w,p.h)),S=mt("g"),M=mt("path"),I=["M".concat(b,",").concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(b,",").concat(p.h-b),"Z"].join(" ");M.setAttribute("d",I);var C=mt("path"),A=["M0,0","L".concat(b,",").concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w,",0"),"Z"].join(" ");C.setAttribute("d",A),(x==null?void 0:x.type)==="solidFill"&&C.setAttribute("fill",De(x,{light:.8})||"transparent");var D=mt("path"),N=["M".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h),"Z"].join(" ");D.setAttribute("d",N),(x==null?void 0:x.type)==="solidFill"&&D.setAttribute("fill",De(x,{dark:.6})||"transparent");var L=mt("path"),E=["M".concat(p.w,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(b,",").concat(p.h-b),"L0,".concat(p.h),"Z"].join(" ");L.setAttribute("d",E),(x==null?void 0:x.type)==="solidFill"&&L.setAttribute("fill",De(x,{dark:.625})||"transparent");var k=mt("path"),z=["M0,".concat(p.h),"L".concat(b,",").concat(p.h-b),"L".concat(b,",").concat(b),"L0,0","Z"].join(" ");return k.setAttribute("d",z),(x==null?void 0:x.type)==="solidFill"&&k.setAttribute("fill",De(x,{light:.6})||"transparent"),S.appendChild(M),S.appendChild(C),S.appendChild(D),S.appendChild(L),S.appendChild(k),S}(n),f=function(v){var p=v.extend,x=vt("adj",v,.125*Math.min(p.w,p.h));return{top:x,bottom:x,left:x,right:x,w:p.w-2*x,h:p.h-2*x}}(n);break;case"donut":h=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h)),b=mt("path"),S=["M0,".concat(p.h/2),"A".concat(p.w/2,",").concat(p.h/2," 0 1,1 0,").concat(p.h/2+1),"Z","M".concat(p.w-x,",").concat(p.h/2),"A".concat(p.w/2-x,",").concat(p.h/2-x," 0 1,0 ").concat(p.w-x,",").concat(p.h/2+1),"Z"].join(" ");return b.setAttribute("d",S),b}(n),f=Hh(n);break;case"noSmoking":h=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h)),b=mt("path"),S=Math.atan(p.h/p.w),M=x/2/Math.sin(S),I=p.w/2,C=p.h/2,A=-1*p.h/p.w,D=p.h*M/p.w,N=p.w/2-x,L=p.h/2-x,E=-2*N*N*A*D,k=Math.sqrt(Math.pow(2*N*N*A*D,2)-4*(L*L+N*N*A*A)*N*N*(D*D-L*L)),z=2*(L*L+N*N*A*A),F=(E-k)/z,W=A*F+D,q=(E+k)/z,j=A*q+D,J=-p.h*M/p.w,H=-2*N*N*A*J,K=Math.sqrt(Math.pow(2*N*N*A*J,2)-4*(L*L+N*N*A*A)*N*N*(J*J-L*L)),ut=2*(L*L+N*N*A*A),at=(H-K)/ut,ot=A*at+J,Rt=(H+K)/ut,Jt=A*Rt+J,wt=["M0,".concat(p.h/2),"A".concat(p.w/2,",").concat(p.h/2," 0 1,1 0,").concat(p.h/2+1),"Z","M".concat(I+q,",").concat(C-j),"A".concat(N,",").concat(L," 0 0 0 ").concat(I+F,",").concat(C-W),"Z","M".concat(I+at,",").concat(C-ot),"A".concat(N,",").concat(L," 0 0 0 ").concat(I+Rt,",").concat(C-Jt),"Z"].join(" ");return b.setAttribute("d",wt),b}(n),f=Hh(n);break;case"rightArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M0,".concat(p.h/2-x/2),"L".concat(p.w-b,",").concat(p.h/2-x/2),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h/2+x/2),"L0,".concat(p.h/2+x/2),"Z"].join(" ");return S.setAttribute("d",M),S}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-x/2,bottom:p.h/2-x/2,left:0,right:b,w:p.w-b,h:x}}(n);break;case"leftArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M0,".concat(p.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(p.h/2-x/2),"L".concat(p.w,",").concat(p.h/2-x/2),"L".concat(p.w,",").concat(p.h/2+x/2),"L".concat(b,",").concat(p.h/2+x/2),"L".concat(b,",").concat(p.h),"Z"].join(" ");return S.setAttribute("d",M),S}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-x/2,bottom:p.h/2-x/2,left:b,right:0,w:p.w-b,h:x}}(n);break;case"upArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w/2+x/2,",").concat(b),"L".concat(p.w/2+x/2,",").concat(p.h),"L".concat(p.w/2-x/2,",").concat(p.h),"L".concat(p.w/2-x/2,",").concat(b),"L0,".concat(b),"Z"].join(" ");return S.setAttribute("d",M),S}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:b,bottom:0,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:p.h-b}}(n);break;case"downArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h-b),"L".concat(p.w/2-x/2,",").concat(p.h-b),"L".concat(p.w/2-x/2,",0"),"L".concat(p.w/2+x/2,",0"),"L".concat(p.w/2+x/2,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return S.setAttribute("d",M),S}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:0,bottom:b,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:p.h-b}}(n);break;case"leftRightArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M0,".concat(p.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(p.h/2-x/2),"L".concat(p.w-b,",").concat(p.h/2-x/2),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h/2+x/2),"L".concat(b,",").concat(p.h/2+x/2),"L".concat(b,",").concat(p.h),"Z"].join(" ");return S.setAttribute("d",M),S}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-x/2,bottom:p.h/2-x/2,left:b,right:b,w:p.w-2*b,h:x}}(n);break;case"upDownArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h-b),"L".concat(p.w/2-x/2,",").concat(p.h-b),"L".concat(p.w/2-x/2,",").concat(b),"L0,".concat(b),"L".concat(p.w/2,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w/2+x/2,",").concat(b),"L".concat(p.w/2+x/2,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return S.setAttribute("d",M),S}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:b,bottom:b,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:p.h-2*b}}(n);break;case"quadArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.225*Math.min(p.w,p.h)),b=vt("adj2",v,.225*Math.min(p.w,p.h)),S=vt("adj3",v,.225*Math.min(p.w,p.h)),M=mt("path"),I=["M0,".concat(p.h/2),"L".concat(S,",").concat(p.h/2-b),"L".concat(S,",").concat(p.h/2-x/2),"L".concat(p.w/2-x/2,",").concat(p.h/2-x/2),"L".concat(p.w/2-x/2,",").concat(S),"L".concat(p.w/2-b,",").concat(S),"L".concat(p.w/2,",0"),"L".concat(p.w/2+b,",").concat(S),"L".concat(p.w/2+x/2,",").concat(S),"L".concat(p.w/2+x/2,",").concat(p.h/2-x/2),"L".concat(p.w-S,",").concat(p.h/2-x/2),"L".concat(p.w-S,",").concat(p.h/2-b),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-S,",").concat(p.h/2+b),"L".concat(p.w-S,",").concat(p.h/2+x/2),"L".concat(p.w/2+x/2,",").concat(p.h/2+x/2),"L".concat(p.w/2+x/2,",").concat(p.h-S),"L".concat(p.w/2+b,",").concat(p.h-S),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-b,",").concat(p.h-S),"L".concat(p.w/2-x/2,",").concat(p.h-S),"L".concat(p.w/2-x/2,",").concat(p.h/2+x/2),"L".concat(S,",").concat(p.h/2+x/2),"L".concat(S,",").concat(p.h/2+b),"Z"].join(" ");return M.setAttribute("d",I),M}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.225*Math.min(p.w,p.h)),b=vt("adj2",v,.225*Math.min(p.w,p.h)),S=vt("adj3",v,.225*Math.min(p.w,p.h)),M=b===0?0:x*S/b/2;return{top:p.h/2-x/2,bottom:p.h/2-x/2,left:M,right:M,w:p.w-2*M,h:x}}(n);break;case"leftRightUpArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.225*Math.min(p.w,p.h)),b=vt("adj2",v,.225*Math.min(p.w,p.h)),S=vt("adj3",v,.225*Math.min(p.w,p.h)),M=mt("path");x>2*b&&(x=2*b);var I=["M0,".concat(p.h-b),"L".concat(S,",").concat(p.h-2*b),"L".concat(S,",").concat(p.h-b-x/2),"L".concat(p.w/2-x/2,",").concat(p.h-b-x/2),"L".concat(p.w/2-x/2,",").concat(S),"L".concat(p.w/2-b,",").concat(S),"L".concat(p.w/2,",0"),"L".concat(p.w/2+b,",").concat(S),"L".concat(p.w/2+x/2,",").concat(S),"L".concat(p.w/2+x/2,",").concat(p.h-b-x/2),"L".concat(p.w-S,",").concat(p.h-b-x/2),"L".concat(p.w-S,",").concat(p.h-2*b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-S,",").concat(p.h),"L".concat(p.w-S,",").concat(p.h-b+x/2),"L".concat(S,",").concat(p.h-b+x/2),"L".concat(S,",").concat(p.h),"Z"].join(" ");return M.setAttribute("d",I),M}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.225*Math.min(p.w,p.h)),b=vt("adj2",v,.225*Math.min(p.w,p.h)),S=vt("adj3",v,.225*Math.min(p.w,p.h)),M=b===0?0:x*S/b/2;return{top:p.h-b-x/2,bottom:b-x/2,left:M,right:M,w:p.w-2*M,h:x}}(n);break;case"bentArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h)),M=vt("adj4",v,.4375*Math.min(p.w,p.h)),I=mt("path");x>2*b&&(x=2*b);var C=M-x;C<0&&(C=0);var A=["M0,".concat(p.h),"L0,".concat(b-x/2+M),"A".concat(M," ").concat(M," 0 0 1 ").concat(M," ").concat(b-x/2),"L".concat(p.w-S,",").concat(b-x/2),"L".concat(p.w-S,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w-S,",").concat(2*b),"L".concat(p.w-S,",").concat(b+x/2),"L".concat(x+C,",").concat(b+x/2),"A".concat(C," ").concat(C," 0 0 0 ").concat(x," ").concat(b+x/2+C),"L".concat(x,",").concat(p.h),"Z"].join(" ");return I.setAttribute("d",A),I}(n);break;case"uturnArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h)),M=vt("adj4",v,.4375*Math.min(p.w,p.h)),I=vt("adj5",v,.75*Math.min(p.w,p.h)),C=mt("path");x>2*b&&(x=2*b),I<S&&(I=S+x),M>I-S&&(M=I-S);var A=M-x;A>I-S-x&&(A=I-S-x),A<0&&(A=0);var D=b-x/2,N=["M0,".concat(p.h),"L0,".concat(M),"A".concat(M," ").concat(M," 0 0 1 ").concat(M," 0"),"L".concat(p.w-M-D,",0"),"A".concat(M," ").concat(M," 0 0 1 ").concat(p.w-D," ").concat(M),"L".concat(p.w-D,",").concat(I-S),"L".concat(p.w,",").concat(I-S),"L".concat(p.w-b,",").concat(I),"L".concat(p.w-2*b,",").concat(I-S),"L".concat(p.w-b-x/2,",").concat(I-S),"L".concat(p.w-b-x/2,",").concat(x+A),"A".concat(A," ").concat(A," 0 0 0 ").concat(p.w-A-b-x/2," ").concat(x),"L".concat(x+A,",").concat(x),"A".concat(A," ").concat(A," 0 0 0 ").concat(x," ").concat(x+A),"L".concat(x,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",N),C}(n);break;case"leftUpArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h));x>2*b&&(x=2*b);var M=Math.min(p.w,p.h)-2*b;S>M&&(S=M),S<0&&(S=0);var I=b-x/2,C=mt("path"),A=["M0,".concat(p.h-b),"L".concat(S,",").concat(p.h-2*b),"L".concat(S,",").concat(p.h-b-x/2),"L".concat(p.w-b-x/2,",").concat(p.h-b-x/2),"L".concat(p.w-b-x/2,",").concat(S),"L".concat(p.w-2*b,",").concat(S),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(S),"L".concat(p.w-I,",").concat(S),"L".concat(p.w-I,",").concat(p.h-I),"L".concat(S,",").concat(p.h-I),"L".concat(S,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",A),C}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h));x>2*b&&(x=2*b);var M=Math.min(p.w,p.h)-2*b;S>M&&(S=M),S<0&&(S=0);var I=b===0?0:x*S/b/2;return{top:p.h-b-x/2,bottom:b-x/2,left:I,right:b,w:p.w-I-b,h:x}}(n);break;case"bentUpArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h));x>2*b&&(x=2*b);var M=Math.min(p.w,p.h)-2*b;S>M&&(S=M),S<0&&(S=0);var I=b-x/2,C=mt("path"),A=["M0,".concat(p.h),"L0,".concat(p.h-x),"L".concat(p.w-b-x/2,",").concat(p.h-x),"L".concat(p.w-b-x/2,",").concat(S),"L".concat(p.w-2*b,",").concat(S),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(S),"L".concat(p.w-I,",").concat(S),"L".concat(p.w-I,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",A),C}(n),f=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h));return{top:p.h-x,bottom:0,left:0,right:0,w:p.w,h:x}}(n);break;case"curvedRightArrow":h=function(v){var p=v.extend,x=v.background,b=vt("adj1",v,.25*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=vt("adj3",v,.25*Math.min(p.w,p.h));b>S&&(b=S);var I=S/2-b/2,C=(p.h-S/2-b/2)/2,A=(p.h-I-b)/2,D=mt("g"),N=mt("path"),L=["M".concat(p.w,",0"),"A ".concat(p.w," ").concat(C," 0 0 0 ").concat(0," ").concat(C),"L0,".concat(A+b),"A ".concat(p.w," ").concat(A," 0 0 1 ").concat(p.w," ").concat(b),"Z"].join(" ");N.setAttribute("d",L),(x==null?void 0:x.type)==="solidFill"&&N.setAttribute("fill",De(x,{dark:.6})||"transparent");var E=mt("path"),k=["M0,".concat(C),"A ".concat(p.w," ").concat(C," 0 0 0 ").concat(p.w-M," ").concat(p.h-S/2-b/2),"L".concat(p.w-M,",").concat(p.h-S),"L".concat(p.w,",").concat(p.h-S/2),"L".concat(p.w-M,",").concat(p.h),"L".concat(p.w-M,",").concat(p.h-I),"A ".concat(p.w," ").concat(A," 0 0 1 0 ").concat(b+A),"Z"].join(" ");return E.setAttribute("d",k),D.appendChild(N),D.appendChild(E),D}(n);break;case"curvedLeftArrow":h=function(v){var p=v.extend,x=v.background,b=vt("adj1",v,.25*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=vt("adj3",v,.25*Math.min(p.w,p.h));b>S&&(b=S);var I=S/2-b/2,C=(p.h-S/2-b/2)/2,A=(p.h-I-b)/2,D=mt("g"),N=mt("path"),L=["M0,".concat(p.h-S/2),"L".concat(M,",").concat(p.h-S),"L".concat(M,",").concat(p.h-S/2-b/2),"A".concat(p.w," ").concat(C," 0 0 0 ").concat(p.w," ").concat(C),"L".concat(p.w,",").concat(A+b),"A ".concat(p.w," ").concat(A," 0 0 1 ").concat(M," ").concat(p.h-I),"L".concat(M,",").concat(p.h),"Z"].join(" ");N.setAttribute("d",L);var E=mt("path"),k=["M0,0","A ".concat(p.w," ").concat(C," 0 0 1 ").concat(p.w," ").concat(C),"L".concat(p.w,",").concat(A+b),"A ".concat(p.w," ").concat(A," 0 0 0 ").concat(0," ").concat(b),"Z"].join(" ");return E.setAttribute("d",k),(x==null?void 0:x.type)==="solidFill"&&E.setAttribute("fill",De(x,{dark:.6})||"transparent"),D.appendChild(N),D.appendChild(E),D}(n);break;case"curvedUpArrow":h=function(v){var p=v.extend,x=v.background,b=vt("adj1",v,.25*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=vt("adj3",v,.25*Math.min(p.w,p.h));b>S&&(b=S);var I=S/2-b/2,C=(p.w-S/2-b/2)/2,A=(p.w-I-b)/2,D=mt("g"),N=mt("path"),L=["M".concat(p.w-S/2,",").concat(0),"L".concat(p.w-S,",").concat(M),"L".concat(p.w-S/2-b/2,",").concat(M),"A".concat(C," ").concat(p.h," 0 0 1 ").concat(C," ").concat(p.h),"L".concat(C+b,",").concat(p.h),"A".concat(A," ").concat(p.h," 0 0 0 ").concat(p.w-I," ").concat(M),"L".concat(p.w,",").concat(M),"Z"].join(" ");N.setAttribute("d",L);var E=mt("path"),k=["M".concat(b,",0"),"L".concat(0,",").concat(0),"A ".concat(C," ").concat(p.h," 0 0 0 ").concat(C," ").concat(p.h),"L".concat(C+b,",").concat(p.h),"A ".concat(A," ").concat(p.h," 0 0 1 ").concat(b," ").concat(0),"Z"].join(" ");return E.setAttribute("d",k),(x==null?void 0:x.type)==="solidFill"&&E.setAttribute("fill",De(x,{dark:.6})||"transparent"),D.appendChild(N),D.appendChild(E),D}(n);break;case"curvedDownArrow":h=function(v){var p=v.extend,x=v.background,b=vt("adj1",v,.25*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=vt("adj3",v,.25*Math.min(p.w,p.h));b>S&&(b=S);var I=S/2-b/2,C=(p.w-S/2-b/2)/2,A=(p.w-I-b)/2,D=mt("g"),N=mt("path"),L=["M".concat(0,",").concat(p.h),"L".concat(b,",").concat(p.h),"A".concat(A," ").concat(p.h," 0 0 1 ").concat(A+b," ").concat(0),"L".concat(C,",").concat(0),"A".concat(C," ").concat(p.h," 0 0 0 ").concat(0," ").concat(p.h),"Z"].join(" ");N.setAttribute("d",L),(x==null?void 0:x.type)==="solidFill"&&N.setAttribute("fill",De(x,{dark:.6})||"transparent");var E=mt("path"),k=["M".concat(p.w-S/2,",").concat(p.h),"L".concat(p.w-S,",").concat(p.h-M),"L".concat(p.w-S/2-b/2,",").concat(p.h-M),"A ".concat(C," ").concat(p.h," 0 0 0 ").concat(C," ").concat(0),"L".concat(C+b,",").concat(0),"A ".concat(A," ").concat(p.h," 0 0 1 ").concat(p.w-I," ").concat(p.h-M),"L".concat(p.w,",").concat(p.h-M),"Z"].join(" ");return E.setAttribute("d",k),D.appendChild(N),D.appendChild(E),D}(n);break;case"stripedRightArrow":h=function(v){var p=v.extend,x=mt("g"),b=Math.min(p.w,p.h),S=Kt("adj1",v,.5)*p.h,M=Kt("adj2",v,.5)*b,I=b/8,C=b/16,A=b/32,D=5*b/32,N=p.h/2-S/2,L=p.h/2+S/2,E=mt("path");E.setAttribute("d",["M".concat(0,",").concat(N),"L".concat(A,",").concat(N),"L".concat(A,",").concat(L),"L".concat(0,",").concat(L),"Z"].join(" "));var k=mt("path");k.setAttribute("d",["M".concat(C,",").concat(N),"L".concat(I,",").concat(N),"L".concat(I,",").concat(L),"L".concat(C,",").concat(L),"Z"].join(" "));var z=mt("path"),F=["M".concat(D,",").concat(N),"L".concat(p.w-M,",").concat(N),"L".concat(p.w-M,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-M,",").concat(p.h),"L".concat(p.w-M,",").concat(L),"L".concat(D,",").concat(L),"Z"].join(" ");return z.setAttribute("d",F),x.appendChild(z),x.appendChild(E),x.appendChild(k),x}(n),f=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,.5)*p.h,S=b*(Kt("adj2",v,.5)*x)/p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:0,right:S,w:p.w-S,h:b}}(n);break;case"notchedRightArrow":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,.5)*p.h,S=Kt("adj2",v,.5)*x,M=b*S/p.h,I=p.h/2-b/2,C=p.h/2+b/2,A=mt("path"),D=["M".concat(0,",").concat(I),"L".concat(p.w-S,",").concat(I),"L".concat(p.w-S,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-S,",").concat(p.h),"L".concat(p.w-S,",").concat(C),"L".concat(0,",").concat(C),"L".concat(M,",").concat(p.h/2),"Z"].join(" ");return A.setAttribute("d",D),A}(n),f=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,.5)*p.h,S=Kt("adj2",v,.5)*x,M=b*S/p.h,I=b*S/p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:M,right:I,w:p.w-M-I,h:b}}(n);break;case"homePlate":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj",v,.5)*x,S=mt("path"),M=["M".concat(0,",").concat(0),"L".concat(p.w-b,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return S.setAttribute("d",M),S}(n),f=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj",v,.5)*x;return{top:0,bottom:0,left:0,right:b/2,w:p.w-b/2,h:p.h}}(n);break;case"chevron":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj",v,.5)*x,S=mt("path"),M=["M".concat(0,",").concat(0),"L".concat(p.w-b,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(0,",").concat(p.h),"L".concat(b,",").concat(p.h/2),"Z"].join(" ");return S.setAttribute("d",M),S}(n),f=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj",v,.5)*x;return{top:0,bottom:0,left:b,right:b,w:p.w-2*b,h:p.h}}(n);break;case"blockArc":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=mt("path"),S=Kt("adj1",v,180),M=Kt("adj2",v,0),I=vt("adj3",v,.25*x),C=p.w/2,A=p.h/2,D=p.w/2,N=p.h/2,L=p.w/2-I,E=p.h/2-I,k=Hn(S,C,A,D,N),z=k[0],F=k[1],W=Hn(M,C,A,D,N),q=W[0],j=W[1],J=Hn(S,C,A,L,E),H=J[0],K=J[1],ut=Hn(M,C,A,L,E),at=ut[0],ot=ut[1],Rt=jh(S,M),Jt=["M".concat(z,",").concat(F),"A".concat(D," ").concat(N," 0 ").concat(Rt," 1 ").concat(q," ").concat(j),"L".concat(at,",").concat(ot),"A".concat(L," ").concat(E," 0 ").concat(Rt," 0 ").concat(H," ").concat(K),"Z"].join(" ");return b.setAttribute("d",Jt),b}(n),f=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,180),S=Kt("adj2",v,0),M=vt("adj3",v,.25*x),I=p.w/2,C=p.h/2,A=p.w/2,D=p.h/2,N=p.w/2-M,L=p.h/2-M,E=Hn(b,I,C,A,D),k=E[0],z=E[1],F=Hn(S,I,C,A,D),W=F[0],q=F[1],j=Hn(b,I,C,N,L),J=j[0],H=j[1],K=Hn(S,I,C,N,L),ut=[[k,z],[W,q],[J,H],[K[0],K[1]]];ut.push(),b>S&&ut.push([p.w,p.h/2]),(S>180&&S<=360&&b<180||b>S&&S>=0&&S<180&&b<180)&&ut.push([0,p.h/2]),(b<S&&b<90&&S>90||b>S&&S>90||b>S&&b<90)&&ut.push([p.w/2,p.h]),(b<S&&b<270&&S>270||b>S&&S>270||b>S&&b<270)&&ut.push([p.w/2,0]);var at=1/0,ot=1/0,Rt=-1/0,Jt=-1/0;return ut.forEach(function(wt){at=Math.min(wt[0],at),ot=Math.min(wt[1],ot),Rt=Math.max(wt[0],Rt),Jt=Math.max(wt[1],Jt)}),{top:ot,bottom:p.h-Jt,left:at,right:p.w-Rt,w:Rt-at,h:Jt-ot}}(n);break;case"foldedCorner":h=function(v){var p=v.extend,x=v.background,b=mt("g"),S=mt("path"),M=vt("adj",v,.16667*Math.min(p.w,p.h)),I=["M0,0","L".concat(p.w,",0"),"L".concat(p.w,",").concat(p.h-M),"L".concat(p.w-M,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");S.setAttribute("d",I);var C=M*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),A=mt("path"),D=["M".concat(p.w-M+C,", ").concat(p.h-M+C),"L".concat(p.w,",").concat(p.h-M),"L".concat(p.w-M,",").concat(p.h),"Z"].join(" ");return A.setAttribute("d",D),(x==null?void 0:x.type)==="solidFill"&&A.setAttribute("fill",De(x,{dark:.6})||"transparent"),b.appendChild(S),b.appendChild(A),b}(n),f=function(v){var p=v.extend,x=vt("adj",v,.16667*Math.min(p.w,p.h));return{top:0,bottom:x,left:0,right:0,w:p.w,h:p.h-x}}(n);break;case"rightArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,.25)*x,S=Kt("adj2",v,.25)*x,M=Kt("adj3",v,.25)*x,I=Kt("adj4",v,.64977)*p.w,C=mt("path"),A=["M".concat(0,",").concat(0),"L".concat(I,",").concat(0),"L".concat(I,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-S),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-M,",").concat(p.h/2+S),"L".concat(p.w-M,",").concat(p.h/2+b/2),"L".concat(I,",").concat(p.h/2+b/2),"L".concat(I,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",A),C}(n),f=function(v){var p=v.extend,x=Kt("adj4",v,.64977)*p.w;return{top:0,bottom:0,left:0,right:p.w-x,w:x,h:p.h}}(n);break;case"leftArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,.25)*x,S=Kt("adj2",v,.25)*x,M=Kt("adj3",v,.25)*x,I=Kt("adj4",v,.64977)*p.w,C=mt("path"),A=["M".concat(0,",").concat(p.h/2),"L".concat(M,",").concat(p.h/2-S),"L".concat(M,",").concat(p.h/2-b/2),"L".concat(p.w-I,",").concat(p.h/2-b/2),"L".concat(p.w-I,",").concat(0),"L".concat(p.w,",").concat(0),"L".concat(p.w,",").concat(p.h),"L".concat(p.w-I,",").concat(p.h),"L".concat(p.w-I,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+S),"Z"].join(" ");return C.setAttribute("d",A),C}(n),f=function(v){var p=v.extend,x=Kt("adj4",v,.64977)*p.w;return{top:0,bottom:0,left:p.w-x,right:0,w:x,h:p.h}}(n);break;case"upArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,.25)*x,S=Kt("adj2",v,.25)*x,M=Kt("adj3",v,.25)*x,I=Kt("adj4",v,.64977)*p.h,C=mt("path"),A=["M".concat(0,",").concat(p.h-I),"L".concat(p.w/2-b/2,",").concat(p.h-I),"L".concat(p.w/2-b/2,",").concat(M),"L".concat(p.w/2-S,",").concat(M),"L".concat(p.w/2,",").concat(0),"L".concat(p.w/2+S,",").concat(M),"L".concat(p.w/2+b/2,",").concat(M),"L".concat(p.w/2+b/2,",").concat(p.h-I),"L".concat(p.w,",").concat(p.h-I),"L".concat(p.w,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",A),C}(n),f=function(v){var p=v.extend,x=Kt("adj4",v,.64977)*p.h;return{top:p.h-x,bottom:0,left:0,right:0,w:p.w,h:x}}(n);break;case"downArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,.25)*x,S=Kt("adj2",v,.25)*x,M=Kt("adj3",v,.25)*x,I=Kt("adj4",v,.64977)*p.h,C=mt("path"),A=["M".concat(0,",").concat(0),"L".concat(p.w,",").concat(0),"L".concat(p.w,",").concat(I),"L".concat(p.w/2+b/2,",").concat(I),"L".concat(p.w/2+b/2,",").concat(p.h-M),"L".concat(p.w/2+S,",").concat(p.h-M),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-S,",").concat(p.h-M),"L".concat(p.w/2-b/2,",").concat(p.h-M),"L".concat(p.w/2-b/2,",").concat(I),"L".concat(0,",").concat(I),"Z"].join(" ");return C.setAttribute("d",A),C}(n),f=function(v){var p=v.extend,x=Kt("adj4",v,.64977)*p.h;return{top:0,bottom:p.h-x,left:0,right:0,w:p.w,h:x}}(n);break;case"leftRightArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,.25)*x,S=Kt("adj2",v,.25)*x,M=Kt("adj3",v,.25)*x,I=Kt("adj4",v,.48123)*p.w,C=mt("path"),A=["M".concat(0,",").concat(p.h/2),"L".concat(M,",").concat(p.h/2-S),"L".concat(M,",").concat(p.h/2-b/2),"L".concat(p.w/2-I/2,",").concat(p.h/2-b/2),"L".concat(p.w/2-I/2,",").concat(0),"L".concat(p.w/2+I/2,",").concat(0),"L".concat(p.w/2+I/2,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-S),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-M,",").concat(p.h/2+S),"L".concat(p.w-M,",").concat(p.h/2+b/2),"L".concat(p.w/2+I/2,",").concat(p.h/2+b/2),"L".concat(p.w/2+I/2,",").concat(p.h),"L".concat(p.w/2-I/2,",").concat(p.h),"L".concat(p.w/2-I/2,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+S),"Z"].join(" ");return C.setAttribute("d",A),C}(n),f=function(v){var p=v.extend,x=Kt("adj4",v,.48123)*p.w;return{top:0,bottom:0,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:p.h}}(n);break;case"quadArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=Kt("adj1",v,.18515)*x,S=Kt("adj2",v,.18515)*x,M=Kt("adj3",v,.18515)*x,I=Kt("adj4",v,.48123)*p.w,C=Kt("adj4",v,.48123)*p.h,A=mt("path"),D=["M".concat(0,",").concat(p.h/2),"L".concat(M,",").concat(p.h/2-S),"L".concat(M,",").concat(p.h/2-b/2),"L".concat(p.w/2-I/2,",").concat(p.h/2-b/2),"L".concat(p.w/2-I/2,",").concat(p.h/2-C/2),"L".concat(p.w/2-b/2,",").concat(p.h/2-C/2),"L".concat(p.w/2-b/2,",").concat(M),"L".concat(p.w/2-S,",").concat(M),"L".concat(p.w/2,",").concat(0),"L".concat(p.w/2+S,",").concat(M),"L".concat(p.w/2+b/2,",").concat(M),"L".concat(p.w/2+b/2,",").concat(p.h/2-C/2),"L".concat(p.w/2+I/2,",").concat(p.h/2-C/2),"L".concat(p.w/2+I/2,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-S),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-M,",").concat(p.h/2+S),"L".concat(p.w-M,",").concat(p.h/2+b/2),"L".concat(p.w/2+I/2,",").concat(p.h/2+b/2),"L".concat(p.w/2+I/2,",").concat(p.h/2+C/2),"L".concat(p.w/2+b/2,",").concat(p.h/2+C/2),"L".concat(p.w/2+b/2,",").concat(p.h-M),"L".concat(p.w/2+S,",").concat(p.h-M),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-S,",").concat(p.h-M),"L".concat(p.w/2-b/2,",").concat(p.h-M),"L".concat(p.w/2-b/2,",").concat(p.h/2+C/2),"L".concat(p.w/2-I/2,",").concat(p.h/2+C/2),"L".concat(p.w/2-I/2,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+S),"Z"].join(" ");return A.setAttribute("d",D),A}(n),f=function(v){var p=v.extend,x=Kt("adj4",v,.48123)*p.w,b=Kt("adj4",v,.48123)*p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:b}}(n)}h&&(g?(i==null?void 0:i.type)==="blipFill"?function(v,p,x){var b=v.background,S=b===void 0?{}:b,M=v.extend,I=S.base64,C=S.alpha,A=S.fillRect,D=A===void 0?{}:A,N=D.b,L=N===void 0?0:N,E=D.t,k=E===void 0?0:E,z=D.l,F=z===void 0?0:z,W=D.r,q=W===void 0?0:W,j=mt("defs"),J=mt("pattern");J.setAttribute("id","background_"+v.uuid),J.setAttribute("patternUnits","userSpaceOnUse"),J.setAttribute("width",M.w+""),J.setAttribute("height",M.h+"");var H=mt("image");H.setAttribute("href",I),H.setAttribute("preserveAspectRatio","none");var K=M.w*F,ut=M.h*k,at=M.w*(1-F-q),ot=M.h*(1-k-L);H.setAttribute("width",at+""),H.setAttribute("height",ot+""),H.setAttribute("x",K+""),H.setAttribute("y",ut+""),typeof C=="number"&&H.setAttribute("opacity",C+""),J.appendChild(H),j.appendChild(J),p.appendChild(j),x.setAttribute("fill","url(#background_".concat(v.uuid,")"))}(n,d,h):(i==null?void 0:i.type)==="gradFill"?function(v,p,x){var b=v.background,S=b===void 0?{}:b;v.extend;var M=S.gsList,I=S.lin,C=S.path,A=S.tileRect,D=A===void 0?{}:A,N=mt("defs"),L=mt(C==="circle"?"radialGradient":"linearGradient");L.setAttribute("id","background_grad_fill_"+v.uuid);var E=M||[];if(E.sort(function(q,j){return q.pos-j.pos}),E.forEach(function(q){var j=mt("stop");j.setAttribute("offset","".concat(100*q.pos,"%")),j.setAttribute("stop-color",De(q.color)),L.appendChild(j)}),C==="circle"){var k=D.r,z=D.l,F=D.t,W=D.b;k===-1?L.setAttribute("cx","100%"):z===-1&&L.setAttribute("cx","0%"),F===-1?L.setAttribute("cy","0%"):W===-1&&L.setAttribute("cy","100%")}else I!=null&&I.ang&&L.setAttribute("gradientTransform","rotate(".concat(I.ang,")"));N.appendChild(L),p.appendChild(N),x.setAttribute("fill","url(#background_grad_fill_".concat(v.uuid,")"))}(n,d,h):h.setAttribute("fill",De(i)||"transparent"):h.setAttribute("fill","transparent"),r.width?(h.setAttribute("stroke-width",r.width+"px"),h.setAttribute("stroke",De(r.color)||"transparent")):h.setAttribute("stroke-width","0"),h.setAttribute("stroke-dasharray",function(v){return v&&v.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[v.type]||[]).map(function(p){return p*v.width}).join(","):""}(r)),h.setAttribute("stroke-linecap",r.cap&&{sq:"square",rnd:"round",flat:"butt"}[r.cap]||"square"),h.setAttribute("stroke-linejoin",r.lineJoin||"round"),r.lineJoin==="miter"&&h.setAttribute("stroke-miterlimit",r.miterLim+""),d.appendChild(h));var y=[];a&&y.push("scaleX(-1)"),s&&y.push("scaleY(-1)"),d.style.setProperty("transform",y.join(" ")),l.appendChild(d);var _=function(v,p,x){var b;x===void 0&&(x=!1);var S=v.inheritProps,M=v.props,I=v.paragraphs;if(!I||I.length===0)return null;var C=Dt(Dt({},S),M),A=document.createElement("div");switch(A.className="text-wrapper",A.style.boxSizing="border-box",A.style.position="absolute",A.style.left=p.left+"px",C.vert==="eaVert"?(A.style.writingMode="vertical-rl",A.style.height=p.h+"px"):A.style.width=p.w+"px",C.anchor){case"b":A.style.bottom=p.bottom+"px";break;case"t":A.style.top=p.top+"px";break;case"ctr":A.style.top=p.top+p.h/2+"px",A.style.transform="translateY(-50%)";break;default:x?A.style.top=p.top+"px":(A.style.top=p.top+p.h/2+"px",A.style.transform="translateY(-50%)")}var D=[C.hasOwnProperty("tIns")?Math.floor(C.tIns)+"px":"3px",C.hasOwnProperty("rIns")?Math.floor(C.rIns)+"px":"5px",C.hasOwnProperty("bIns")?Math.floor(C.bIns)+"px":"3px",C.hasOwnProperty("lIns")?Math.floor(C.lIns)+"px":"5px"];A.style.padding=D.join(" ");for(var N={},L=0,E=function(F){var W=Dt(Dt({},F.inheritProps),F.props),q=void 0;if(W.buAutoNum){var j=W.level?+W.level:0;N[j]||(N[j]=0),!((b=F.rows)===null||b===void 0)&&b.length&&N[j]++,Object.keys(N).forEach(function(J){+J>j&&(N[J]=0)}),q=Mg(F,N[j],{isFirst:L===0,isLast:I.length-1===L,bodyProps:C})}else q=Mg(F,0,{isFirst:L===0,isLast:I.length-1===L,bodyProps:C});A.appendChild(q),L++},k=0,z=I;k<z.length;k++)E(z[k]);return A}(n.textBody,f,n.isTextBox);return _&&l.appendChild(_),o&&l.style.setProperty("transform","rotate(".concat(o,"deg)")),l}function u5(n){var e=document.createElement("div"),t=n.extend;n.chExtend;var r=n.offset;n.chOffset;var i=n.flipV,o=n.flipH,a=n.rotate,s=r.x,l=r.y,u=t.w,c=t.h;e.className="group",e.style.position="absolute",e.style.left=s+"px",e.style.top=l+"px",e.style.width=u+"px",e.style.height=c+"px";var h=[];o&&h.push("scaleX(-1)"),i&&h.push("scaleY(-1)"),a&&h.push("rotate(".concat(a,"deg)")),e.style.transformOrigin="center center",e.style.transform=h.join(" ");for(var d=0;d<n.nodes.length;d++){var f=n.nodes[d],g=void 0;f instanceof Sg?g=Ux(f):f instanceof Fh?g=Xx(f):f instanceof Hx&&(g=u5(f)),e.appendChild(g)}return e}var Ro={};function c5(n,e){if(Ro[n])for(var t=0;t<Ro[n].length;t++)Ro[n][t](e)}function h5(n,e){Ro[n]&&(Ro[n]=Ro[n].filter(function(t){return t!==e}))}function rQ(n){var e=document.createElement("div"),t=n.extend,r=n.offset,i=n.flipV,o=n.flipH,a=n.rotate,s=n.options,l=r.x,u=r.y,c=t.w,h=t.h;e.className="chart-node",e.style.position="absolute",e.style.left=l+"px",e.style.top=u+"px",e.style.width=c+"px",e.style.height=h+"px";var d=[];return o&&d.push("scaleX(-1)"),i&&d.push("scaleY(-1)"),a&&d.push("rotate(".concat(a,"deg)")),e.style.transformOrigin="center center",e.style.transform=d.join(" "),setTimeout(function(){var f,g,y=W8(e,null,{renderer:"svg"});y.setOption(s),g=function(){y&&y.dispose(),y&&(y=null)},Ro[f="destroy"]||(Ro[f]=[]),Ro[f].push(g)},0),e}var iQ=function(){function n(e,t,r){this.scale=1,this.wrapper=e,this.pptx=t,this.options=r,this._calcScaleAndRenderPort()}return n.prototype._calcScaleAndRenderPort=function(){var e=this.options.viewPort.width/this.pptx.width;this.scale=e;var t=this.options.viewPort.width,r=this.pptx.height*this.scale;this.renderPort={width:t,height:r,left:0,top:0}},n.prototype.renderSlide=function(e){var t=this.pptx.slides[e],r=document.createElement("div");r.classList.add("pptx-preview-slide-wrapper"),r.style.setProperty("width",this.renderPort.width+"px"),r.style.setProperty("height",this.renderPort.height+"px"),r.style.setProperty("position","relative"),r.style.margin="0 auto 10px",r.style.setProperty("background","#fff"),r.style.setProperty("overflow","hidden"),this._renderBackground(t,r),this._renderSlideMaster(t.slideMaster,r),this._renderSlideLayout(t.slideLayout,r),this._renderSlide(t,r),this.wrapper.append(r)},n.prototype._renderSlideMaster=function(e,t){var r=document.createElement("div");r.classList.add("slide-master-wrapper"),r.style.setProperty("position","absolute"),r.style.setProperty("left","0"),r.style.setProperty("top","0"),r.style.setProperty("width",this.pptx.width+"px"),r.style.setProperty("height",this.pptx.height+"px"),r.style.setProperty("transform","scale(".concat(this.scale,")")),r.style.setProperty("transform-origin","0 0");var i=Bu([],e.nodes).filter(function(s){return s.userDrawn});i.sort(function(s,l){return s.order>l.order?1:-1});for(var o=0;o<i.length;o++){var a=this._renderNode(i[o]);a&&r.append(a)}t.append(r)},n.prototype._renderSlideLayout=function(e,t){var r=document.createElement("div");r.classList.add("slide-layout-wrapper"),r.style.setProperty("position","absolute"),r.style.setProperty("left","0"),r.style.setProperty("top","0"),r.style.setProperty("width",this.pptx.width+"px"),r.style.setProperty("height",this.pptx.height+"px"),r.style.setProperty("transform","scale(".concat(this.scale,")")),r.style.setProperty("transform-origin","0 0");var i=Bu([],e.nodes).filter(function(s){return s.userDrawn});i.sort(function(s,l){return s.order>l.order?1:-1});for(var o=0;o<i.length;o++){var a=this._renderNode(i[o]);a&&r.append(a)}t.append(r)},n.prototype._renderSlide=function(e,t){var r=document.createElement("div");r.classList.add("slide-wrapper"),r.style.setProperty("position","absolute"),r.style.setProperty("left","0"),r.style.setProperty("top","0"),r.style.setProperty("width",this.pptx.width+"px"),r.style.setProperty("height",this.pptx.height+"px"),r.style.setProperty("transform","scale(".concat(this.scale,")")),r.style.setProperty("transform-origin","0 0");var i=Bu([],e.nodes);i.sort(function(s,l){return s.order>l.order?1:-1});for(var o=0;o<i.length;o++){var a=this._renderNode(i[o]);a&&r.append(a)}t.append(r)},n.prototype._renderNode=function(e){return e instanceof Sg?Ux(e):e instanceof Fh?Xx(e):e instanceof Hx?u5(e):e instanceof JE?function(t){var r=document.createElement("div"),i=t.extend,o=t.offset,a=t.flipV,s=t.flipH,l=t.rotate,u=o.x,c=o.y,h=i.w,d=i.h;r.className="smart-chart-diagram",r.style.position="absolute",r.style.left=u+"px",r.style.top=c+"px",r.style.width=h+"px",r.style.height=d+"px";var f=[];s&&f.push("scaleX(-1)"),a&&f.push("scaleY(-1)"),l&&f.push("rotate(".concat(l,"deg)")),r.style.transformOrigin="center center",r.style.transform=f.join(" ");for(var g=0;g<t.nodes.length;g++){var y=t.nodes[g],_=void 0;y instanceof Sg?_=Ux(y):y instanceof Fh&&(_=Xx(y)),r.appendChild(_)}return r}(e):e instanceof YE?function(t){var r=t.extend,i=t.offset,o=t.tr,a=t.tableGrid.gridCol,s=document.createElement("div");s.style.position="absolute",s.style.left=i.x+"px",s.style.top=i.y+"px",s.style.width=r.w+"px",s.style.height=r.h+"px";var l=document.createElement("table");return l.style.borderCollapse="collapse",o.forEach(function(u){var c=u.props,h=u.td,d=c.height,f=document.createElement("tr");f.style.height=d+"px",h.forEach(function(g,y){var _,v,p=g.props,x=g.inheritTcStyle,b=g.inheritTcTxStyle,S=g.paragraphs;if(!p.vMerge&&!p.hMerge){var M=document.createElement("td");M.style.width=(((_=a[y])===null||_===void 0?void 0:_.width)||30)+"px",p.rowSpan&&M.setAttribute("rowspan",p.rowSpan+""),p.gridSpan&&M.setAttribute("colspan",p.gridSpan+"");var I=p.background||x.background;I&&(M.style.background=De(I));var C=Dt(Dt({},x.border),p.border),A=function(j){return j?j.toLowerCase().includes("dash")?"dashed":j.toLowerCase().includes("dot")?"dotted":"solid":"solid"};C.bottom&&(M.style.borderBottom="".concat(C.bottom.width,"px ").concat(A(C.bottom.type)," ").concat(De(C.bottom.color))),C.top&&(M.style.borderTop="".concat(C.top.width,"px ").concat(A(C.top.type)," ").concat(De(C.top.color))),C.left&&(M.style.borderLeft="".concat(C.left.width,"px ").concat(A(C.left.type)," ").concat(De(C.left.color))),C.right&&(M.style.borderRight="".concat(C.right.width,"px ").concat(A(C.right.type)," ").concat(De(C.right.color)));var D=document.createElement("div");switch(D.className="text-wrapper",D.style.boxSizing="border-box",D.style.width="100%",D.style.height="100%",D.style.overflow="hidden",D.style.display="flex",D.style.flexDirection="column",p.anchor){case"b":D.style.justifyContent="flex-end";break;case"t":D.style.justifyContent="flex-start";break;case"ctr":D.style.justifyContent="center"}var N=[p.hasOwnProperty("marT")?Math.floor(p.marT)+"px":"3px",p.hasOwnProperty("marR")?Math.floor(p.marR-1)+"px":"5px",p.hasOwnProperty("marB")?Math.floor(p.marB)+"px":"3px",p.hasOwnProperty("marL")?Math.floor(p.marL-1)+"px":"5px"];D.style.padding=N.join(" ");for(var L=Dt({},p),E={},k=S.map(function(j){return Dt(Dt({},j),{props:Dt({align:"l"},j.props),inheritRProps:Dt(Dt({},j.inheritRProps),b)})}),z=0,F=function(j){var J=Dt(Dt({},j.inheritProps),j.props),H=void 0;if(J.buAutoNum){var K=J.level?+J.level:0;E[K]||(E[K]=0),!((v=j.rows)===null||v===void 0)&&v.length&&E[K]++,Object.keys(E).forEach(function(ut){+ut>K&&(E[ut]=0)}),H=Mg(j,E[K],{isFirst:z===0,isLast:S.length-1===z,bodyProps:L})}else H=Mg(j,0,{isFirst:z===0,isLast:S.length-1===z,bodyProps:L});D.appendChild(H),z++},W=0,q=k;W<q.length;W++)F(q[W]);M.append(D),f.append(M)}}),l.append(f)}),s.append(l),s}(e):e instanceof $E?rQ(e):void 0},n.prototype._renderBackground=function(e,t){var r,i=document.createElement("div");i.classList.add("slide-background"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width","100%"),i.style.setProperty("height","100%");var o=e.background;if(o.type==="none"&&(o=e.slideLayout.background),o.type==="none"&&(o=e.slideMaster.background),o.type==="blipFill"){var a=o,s=a.base64,l=a.alpha,u=a.fillRect,c=u===void 0?{}:u,h=c.b,d=h===void 0?0:h,f=c.t,g=f===void 0?0:f,y=c.l,_=y===void 0?0:y,v=c.r,p=v===void 0?0:v,x=this.renderPort.width*_,b=this.renderPort.height*g,S=this.renderPort.width*(1-_-p),M=this.renderPort.height*(1-g-d);i.style.backgroundImage="url(".concat(s,")"),i.style.backgroundSize="".concat(S," ").concat(M),i.style.backgroundPosition="".concat(x,"px ").concat(b,"px"),l&&(i.style.opacity=l+""),i.style.backgroundRepeat="no-repeat"}else if(o.type==="solidFill"){var I=De(e.background)||De(e.slideLayout.background)||De(e.slideMaster.background);I?i.style.setProperty("background",I):i.style.setProperty("background","#fff")}else if(o.type==="gradFill")if(o.path==="circle"){var C=o.tileRect||{},A=(d=C.b,g=C.t,_=C.l,"radial-gradient(circle at ");(p=C.r)===-1?A+=" right":_===-1&&(A+=" left"),g===-1?A+=" top":d===-1&&(A+=" bottom"),d||g||_||p||(A+=" center"),A+=",",A+=o.gsList.map(function(N){return"".concat(De(N.color)," ").concat(100*N.pos+"%")}).join(","),i.style.setProperty("background",A)}else{var D=((r=o==null?void 0:o.lin)===null||r===void 0?void 0:r.ang)||0;A="linear-gradient(".concat(D+90,"deg,"),A+=o.gsList.map(function(N){return"".concat(De(N.color)," ").concat(100*N.pos+"%")}).join(","),i.style.setProperty("background",A)}t.append(i)},n}(),oQ=function(){function n(e,t){this.dom=e,this.options=t,this._renderWrapper()}return n.prototype._renderWrapper=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper"),e.style.setProperty("background","#000"),e.style.setProperty("width",this.options.width+"px"),this.options.height&&e.style.setProperty("height",this.options.height+"px"),e.style.setProperty("position","relative"),e.style.setProperty("margin","0 auto"),this.options.height&&e.style.setProperty("overflow-y","auto"),this.dom.append(e),this.wrapper=e},n.prototype.preview=function(e){var t=this;return c5("destroy"),h5("destroy"),new Promise(function(r,i){t.wrapper.innerHTML="";var o=new tQ;o.load(e).then(function(){try{for(var a=new iQ(t.wrapper,o,{viewPort:{width:t.options.width,height:t.options.height}}),s=0;s<o.slides.length;s++)a.renderSlide(s);r(o)}catch(l){i(l)}}).catch(function(a){i(a)})})},n.prototype.destroy=function(){c5("destroy"),h5("destroy")},n}();function aQ(n,e){return new oQ(n,e)}const sQ=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},lQ=oo.defineComponent({name:"VueOfficePptx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(n,{emit:e}){let t=null;const r=oo.ref(null);function i(){let s=r.value,l=n.options.width||s.getBoundingClientRect().width||960,u=n.options.height||s.getBoundingClientRect().height||540;t=aQ(s,{width:l,height:u})}function o(s){if(typeof s=="string")return fetch(s,n.requestOptions).then(l=>l.arrayBuffer());if(s instanceof ArrayBuffer)return Promise.resolve(s)}function a(){n.src&&o(n.src).then(s=>{t.preview(s).then(l=>{e("rendered",l)}).catch(l=>{e("error",l)})}).catch(s=>{e("error",s)})}return oo.onMounted(()=>{i(),a()}),oo.watch(()=>n.src,()=>{a()}),{rootRef:r}}}),uQ={class:"vue-office-pptx"},cQ={class:"vue-office-pptx-main",ref:"rootRef",style:{width:"100%",height:"100%"}};function hQ(n,e,t,r,i,o){return ui.openBlock(),ui.createElementBlock("div",uQ,[ui.createElementVNode("div",cQ,null,512)])}const Ig=sQ(lQ,[["render",hQ]]);return Ig.install=function(n){n.component(Ig.name,Ig)},Ig})})(BO);var FO=BO.exports;const Hat=zu.getDefaultExportFromCjs(FO),Uat=jat({__proto__:null,default:Hat},[FO]);exports.index=Uat;