@nextclaw/ui 0.15.2 → 0.15.4

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 (212) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/assets/aiden0z-pptx-renderer.es-Bd99vut2.js +94 -0
  3. package/dist/assets/api-BOXOrpcJ.js +13 -0
  4. package/dist/assets/app-presenter-provider-CkHLbvZQ.js +106 -0
  5. package/dist/assets/app-presenter-provider-D3BuuOyZ.css +1 -0
  6. package/dist/assets/appearance-settings-page-fLIJbx1C.js +1 -0
  7. package/dist/assets/{book-open-Ba2f7YiG.js → book-open-DWUjS6aW.js} +1 -1
  8. package/dist/assets/channels-list-page-CvCTJraa.js +8 -0
  9. package/dist/assets/chat-page-B42UUIFR.js +1 -0
  10. package/dist/assets/chunk-DseTPa7n.js +1 -0
  11. package/dist/assets/config-split-page-DBgt9S8b.js +1 -0
  12. package/dist/assets/confirm-dialog-GSXIvoRU.js +5 -0
  13. package/dist/assets/desktop-update-config-7bmNeWIC.js +1 -0
  14. package/dist/assets/dist-DC7f4TJH.js +41 -0
  15. package/dist/assets/doc-browser-CgdoLUT92.js +1 -0
  16. package/dist/assets/doc-browser-D0monHjG.js +1 -0
  17. package/dist/assets/doc-browser-context-CGwEOhBy.js +1 -0
  18. package/dist/assets/docx-preview-eFH9DRsS.js +20 -0
  19. package/dist/assets/download-DiP9zx-J.js +1 -0
  20. package/dist/assets/{external-link-DxuPaDoK.js → external-link-C6ZeSPef.js} +1 -1
  21. package/dist/assets/eye-suvKmtwn.js +1 -0
  22. package/dist/assets/folder-CMELbQGG.js +1 -0
  23. package/dist/assets/{form-actions-BztL7P_T.js → form-actions-CUAzpNe_.js} +1 -1
  24. package/dist/assets/index-BFeNDQ4R.css +1 -0
  25. package/dist/assets/index-D_6U-M94.js +2 -0
  26. package/dist/assets/jszip.min-Das2IAnb.js +2 -0
  27. package/dist/assets/loader-circle-tYHStefV.js +1 -0
  28. package/dist/assets/logo-badge-Cu5UGH_4.js +1 -0
  29. package/dist/assets/mcp-marketplace-page-BUzHDwW6.js +9 -0
  30. package/dist/assets/mcp-marketplace-page-ohUAdfqJ.js +1 -0
  31. package/dist/assets/model-config-page-CWP6pyBm.js +1 -0
  32. package/dist/assets/plus-tywizkeY.js +1 -0
  33. package/dist/assets/popover-DImguRok.js +1 -0
  34. package/dist/assets/provider-models-C_yOh6DE.js +1 -0
  35. package/dist/assets/provider-scoped-model-input-CE7p4SbJ.js +1 -0
  36. package/dist/assets/providers-config-page-BKPo8SjH.js +1 -0
  37. package/dist/assets/react-5sjAT_6d.js +8 -0
  38. package/dist/assets/{refresh-cw-eT8BF-8B.js → refresh-cw-CHLBzWWj.js} +1 -1
  39. package/dist/assets/remote-DXJryUxB.js +1 -0
  40. package/dist/assets/rotate-cw-BefO5brU.js +1 -0
  41. package/dist/assets/runtime-config-page-1Axv4QGu.js +1 -0
  42. package/dist/assets/{save-Cb2g0BOi.js → save-BABzyrjB.js} +1 -1
  43. package/dist/assets/{search-BcHjwdsb.js → search-BTqxG3ZG.js} +1 -1
  44. package/dist/assets/search-config-page-BkKKmxmS.js +1 -0
  45. package/dist/assets/secrets-config-page-CWJMyu-k.js +3 -0
  46. package/dist/assets/security-config-DeQUIXfi.js +1 -0
  47. package/dist/assets/select-TYZDBNmq.js +1 -0
  48. package/dist/assets/setting-row-DR23Z_5I.js +1 -0
  49. package/dist/assets/{settings-2-2DWauOjY.js → settings-2-D8WWcBnw.js} +1 -1
  50. package/dist/assets/{skeleton-P5oM14E1.js → skeleton-CloHeg0S.js} +1 -1
  51. package/dist/assets/tabs-CX-ckWoo.js +1 -0
  52. package/dist/assets/tag-chip-mCc23Rhb.js +1 -0
  53. package/dist/assets/trash-2-SAW1Z4Po.js +1 -0
  54. package/dist/assets/use-config-BucdaK23.js +1 -0
  55. package/dist/assets/use-confirm-dialog-C95F6sT1.js +1 -0
  56. package/dist/assets/use-viewport-layout-C6m3Nte7.js +1 -0
  57. package/dist/assets/x-DtCPHwCu.js +1 -0
  58. package/dist/assets/xlsx-B6zVt1RK.js +64 -0
  59. package/dist/index.html +34 -28
  60. package/package.json +14 -9
  61. package/src/app/components/layout/sidebar-items.tsx +3 -3
  62. package/src/app/components/layout/sidebar-rail.styles.ts +2 -2
  63. package/src/app/components/layout/sidebar.tsx +1 -1
  64. package/src/app/styles/design-system.css +17 -4
  65. package/src/features/chat/components/__tests__/chat-popover-content.test.tsx +41 -0
  66. package/src/features/chat/components/chat-popover-content.tsx +26 -0
  67. package/src/features/chat/components/conversation/__tests__/chat-conversation-content.test.tsx +13 -0
  68. package/src/features/chat/components/conversation/__tests__/chat-conversation-header-section.test.tsx +21 -11
  69. package/src/features/chat/components/conversation/__tests__/chat-conversation-header.test.tsx +2 -2
  70. package/src/features/chat/components/conversation/__tests__/chat-conversation-workspace-section.test.tsx +28 -1
  71. package/src/features/chat/components/conversation/chat-conversation-content.tsx +5 -4
  72. package/src/features/chat/components/conversation/chat-conversation-header-section.tsx +9 -18
  73. package/src/features/chat/components/conversation/chat-conversation-track.tsx +35 -0
  74. package/src/features/chat/components/conversation/chat-conversation-workspace-section.tsx +1 -0
  75. package/src/features/chat/components/layout/chat-sidebar-toolbar.tsx +7 -7
  76. package/src/features/chat/components/layout/chat-sidebar-utility-menu.tsx +4 -15
  77. package/src/features/chat/features/conversation/components/__tests__/session-conversation-input.streaming.test.tsx +20 -1
  78. package/src/features/chat/features/conversation/components/session-conversation-input.tsx +69 -54
  79. package/src/features/chat/features/conversation/components/session-queued-input-rows.tsx +1 -1
  80. package/src/features/chat/features/message/components/__tests__/chat-message-list.container.test.tsx +62 -1
  81. package/src/features/chat/features/message/components/chat-message-list.container.tsx +63 -2
  82. package/src/features/chat/features/message/utils/__tests__/chat-message-file-operation.utils.test.ts +30 -0
  83. package/src/features/chat/features/message/utils/__tests__/chat-message-process-summary.utils.test.ts +11 -1
  84. package/src/features/chat/features/message/utils/__tests__/chat-message-texts.utils.test.ts +23 -0
  85. package/src/features/chat/features/message/utils/chat-message-process-summary.utils.ts +5 -0
  86. package/src/features/chat/features/message/utils/chat-message-texts.utils.ts +138 -0
  87. package/src/features/chat/features/session/components/__tests__/chat-sidebar-session-item.test.tsx +37 -0
  88. package/src/features/chat/features/session/components/chat-sidebar-project-groups.tsx +5 -4
  89. package/src/features/chat/features/session/components/chat-sidebar-session-item.tsx +3 -8
  90. package/src/features/chat/features/session/components/session-header/__tests__/chat-session-header-actions.test.tsx +65 -20
  91. package/src/features/chat/features/session/components/session-header/chat-session-header-actions.tsx +26 -28
  92. package/src/features/chat/features/session/components/session-header/chat-session-project-badge.tsx +3 -3
  93. package/src/features/chat/features/session/components/session-header/chat-session-title-switcher.tsx +5 -5
  94. package/src/features/chat/features/welcome/components/chat-welcome-project-picker.tsx +4 -4
  95. package/src/features/chat/features/welcome/components/chat-welcome-session-type-picker.tsx +4 -4
  96. package/src/features/chat/features/workspace/components/__tests__/chat-session-workspace-file-preview.test.tsx +463 -99
  97. package/src/features/chat/features/workspace/components/__tests__/chat-session-workspace-panel-content.test.tsx +113 -2
  98. package/src/features/chat/features/workspace/components/__tests__/chat-session-workspace-panel.test.tsx +1 -0
  99. package/src/features/chat/features/workspace/components/chat-session-workspace-directory-browser.tsx +197 -44
  100. package/src/features/chat/features/workspace/components/chat-session-workspace-file-breadcrumb-browser.tsx +11 -5
  101. package/src/features/chat/features/workspace/components/chat-session-workspace-file-breadcrumbs.tsx +8 -6
  102. package/src/features/chat/features/workspace/components/chat-session-workspace-file-preview.tsx +99 -67
  103. package/src/features/chat/features/workspace/components/chat-session-workspace-panel-content.tsx +239 -1
  104. package/src/features/chat/features/workspace/components/chat-session-workspace-panel-nav.tsx +56 -6
  105. package/src/features/chat/features/workspace/components/chat-session-workspace-panel.tsx +29 -7
  106. package/src/features/chat/features/workspace/components/file-content-preview/use-workspace-file-buffer.ts +42 -0
  107. package/src/features/chat/features/workspace/components/file-content-preview/workspace-document-preview-state.tsx +18 -0
  108. package/src/features/chat/features/workspace/components/file-content-preview/workspace-docx-preview.css +89 -0
  109. package/src/features/chat/features/workspace/components/file-content-preview/workspace-docx-preview.tsx +87 -0
  110. package/src/features/chat/features/workspace/components/file-content-preview/workspace-presentation-preview.tsx +82 -0
  111. package/src/features/chat/features/workspace/components/file-content-preview/workspace-spreadsheet-preview.tsx +180 -0
  112. package/src/features/chat/features/workspace/components/workspace-file-content-preview.tsx +191 -0
  113. package/src/features/chat/features/workspace/hooks/use-chat-conversation-workspace-state.ts +1 -4
  114. package/src/features/chat/features/workspace/utils/__tests__/chat-workspace-panel-view-model.utils.test.ts +53 -10
  115. package/src/features/chat/features/workspace/utils/chat-thread-workspace-session.utils.ts +68 -2
  116. package/src/features/chat/features/workspace/utils/chat-workspace-file-tab-persistence.utils.ts +21 -0
  117. package/src/features/chat/features/workspace/utils/chat-workspace-file-tab.utils.ts +63 -0
  118. package/src/features/chat/features/workspace/utils/chat-workspace-file-viewer.utils.ts +49 -0
  119. package/src/features/chat/features/workspace/utils/chat-workspace-panel-layout.utils.ts +13 -0
  120. package/src/features/chat/features/workspace/utils/chat-workspace-panel-view-model.utils.ts +120 -38
  121. package/src/features/chat/index.ts +1 -0
  122. package/src/features/chat/managers/__tests__/chat-thread-workspace.manager.test.ts +76 -0
  123. package/src/features/chat/managers/__tests__/chat-thread.manager.test.ts +44 -60
  124. package/src/features/chat/managers/chat-thread.manager.ts +123 -124
  125. package/src/features/chat/pages/ncp-chat-page.tsx +1 -2
  126. package/src/features/chat/stores/__tests__/chat-thread.store.test.ts +78 -1
  127. package/src/features/chat/stores/chat-message-layout.store.test.ts +37 -0
  128. package/src/features/chat/stores/chat-message-layout.store.ts +41 -0
  129. package/src/features/chat/stores/chat-thread.store.ts +73 -13
  130. package/src/features/cron/components/cron-config.tsx +63 -80
  131. package/src/features/marketplace/components/detail-doc/__tests__/marketplace-detail-doc.test.tsx +44 -6
  132. package/src/features/marketplace/components/marketplace-detail-doc.tsx +8 -4
  133. package/src/features/marketplace/components/marketplace-page-parts.tsx +1 -1
  134. package/src/features/marketplace/hooks/use-marketplace-detail-doc-entry.ts +84 -0
  135. package/src/features/panel-apps/components/panel-apps-list.tsx +2 -2
  136. package/src/features/right-panel-resources/components/right-panel-resource-home-page.tsx +1 -1
  137. package/src/features/settings/pages/__tests__/appearance-settings-page.test.tsx +25 -8
  138. package/src/features/settings/pages/appearance-settings-page.tsx +92 -13
  139. package/src/features/side-dock/components/side-dock.tsx +3 -3
  140. package/src/index.css +275 -15
  141. package/src/shared/components/__tests__/file-type-icon.test.tsx +61 -0
  142. package/src/shared/components/actions/action-link.tsx +1 -1
  143. package/src/shared/components/doc-browser/__tests__/doc-browser-context.test.tsx +19 -0
  144. package/src/shared/components/doc-browser/__tests__/doc-browser.test.tsx +16 -0
  145. package/src/shared/components/doc-browser/doc-browser-context.tsx +1 -0
  146. package/src/shared/components/doc-browser/doc-browser-panel-parts.tsx +1 -1
  147. package/src/shared/components/doc-browser/doc-browser.tsx +11 -3
  148. package/src/shared/components/doc-browser/managers/doc-browser.manager.ts +5 -0
  149. package/src/shared/components/doc-browser/stores/doc-browser.store.ts +6 -1
  150. package/src/shared/components/doc-browser/types/doc-browser.types.ts +2 -0
  151. package/src/shared/components/doc-browser/utils/doc-browser-state.utils.ts +11 -0
  152. package/src/shared/components/file-type-icon.tsx +272 -0
  153. package/src/shared/components/resizable-right-panel/__tests__/resizable-right-panel.test.tsx +22 -0
  154. package/src/shared/components/resizable-right-panel/resizable-right-panel.tsx +17 -2
  155. package/src/shared/components/ui/actions/icon-action-button.tsx +1 -1
  156. package/src/shared/components/ui/button.tsx +1 -1
  157. package/src/shared/components/ui/dialog.tsx +1 -1
  158. package/src/shared/components/ui/input.tsx +1 -1
  159. package/src/shared/components/ui/select.tsx +1 -1
  160. package/src/shared/components/ui/switch.tsx +1 -1
  161. package/src/shared/components/ui/tab-strip/__tests__/compact-tab-strip.test.tsx +38 -0
  162. package/src/shared/components/ui/tab-strip/compact-tab-strip.tsx +82 -2
  163. package/src/shared/components/ui/tabs.tsx +1 -1
  164. package/src/shared/components/ui/textarea.tsx +1 -1
  165. package/src/shared/lib/api/__tests__/server-path.utils.test.ts +28 -0
  166. package/src/shared/lib/api/utils/server-path.utils.ts +19 -20
  167. package/src/shared/lib/i18n/locales/en-US/chat.json +99 -0
  168. package/src/shared/lib/i18n/locales/en-US/core.json +6 -0
  169. package/src/shared/lib/i18n/locales/zh-CN/chat.json +99 -0
  170. package/src/shared/lib/i18n/locales/zh-CN/core.json +6 -0
  171. package/dist/assets/api-B7Qigvtm.js +0 -13
  172. package/dist/assets/appearance-settings-page-CuE0Iiqj.js +0 -1
  173. package/dist/assets/channels-list-page-CTsM6TcP.js +0 -8
  174. package/dist/assets/chat-page-C_5dcuE3.js +0 -1
  175. package/dist/assets/config-split-page-Fbb4PtTf.js +0 -1
  176. package/dist/assets/confirm-dialog-D2EG3nqE.js +0 -5
  177. package/dist/assets/desktop-update-config-BGR3HUi1.js +0 -1
  178. package/dist/assets/dist-7JTjycxE.js +0 -1
  179. package/dist/assets/dist-wXLhk4hl.js +0 -1
  180. package/dist/assets/doc-browser-bHyXnxlj.js +0 -1
  181. package/dist/assets/doc-browser-context-CYAGm5d5.js +0 -1
  182. package/dist/assets/doc-browser-gTrQ3jCF.js +0 -1
  183. package/dist/assets/es2015-j1SRCIX5.js +0 -41
  184. package/dist/assets/i18n-provider-B4oMxOFx.js +0 -1
  185. package/dist/assets/index-CvrvblgX.css +0 -1
  186. package/dist/assets/index-Obd4JYU2.js +0 -104
  187. package/dist/assets/loader-circle-CdzgK4eH.js +0 -1
  188. package/dist/assets/mcp-marketplace-page-Bt7CuOoq.js +0 -9
  189. package/dist/assets/mcp-marketplace-page-Ck3t78_n.js +0 -1
  190. package/dist/assets/model-config-page-DeKk9gvE.js +0 -1
  191. package/dist/assets/plus-Bx7wQbhG.js +0 -1
  192. package/dist/assets/provider-scoped-model-input-DsH2LF1q.js +0 -1
  193. package/dist/assets/providers-config-page-BFnGp68F.js +0 -1
  194. package/dist/assets/react-UirzUuST.js +0 -8
  195. package/dist/assets/remote-CDkHZtA8.js +0 -1
  196. package/dist/assets/rotate-cw-1JqxHTuw.js +0 -1
  197. package/dist/assets/runtime-config-page-BelAqiNG.js +0 -1
  198. package/dist/assets/search-config-page-zPm6--Ig.js +0 -1
  199. package/dist/assets/secrets-config-page-Cxyp-KuQ.js +0 -3
  200. package/dist/assets/security-config-B_gCq9fn.js +0 -1
  201. package/dist/assets/select-CdSEOwVM.js +0 -1
  202. package/dist/assets/setting-row-CTAtGexr.js +0 -1
  203. package/dist/assets/side-dock-DPvakJ0a.js +0 -3
  204. package/dist/assets/switch-BU_UEULb.js +0 -1
  205. package/dist/assets/tag-chip-D-WsKoT1.js +0 -1
  206. package/dist/assets/tooltip-CjkOaHW7.js +0 -1
  207. package/dist/assets/use-config--hx5oxQn.js +0 -1
  208. package/dist/assets/use-confirm-dialog-CD9a_SK1.js +0 -1
  209. package/dist/assets/x-DT5x45JU.js +0 -1
  210. /package/dist/assets/{config-hints-C_iP1zl_.js → config-hints-fDrYfl0l.js} +0 -0
  211. /package/dist/assets/{host-capabilities-9bB_998Z.js → host-capabilities-zZvY9U63.js} +0 -0
  212. /package/dist/assets/{middleware-BILWbJE4.js → middleware-BLMHv9YF.js} +0 -0
@@ -0,0 +1,94 @@
1
+ import{i as e,n as t}from"./chunk-DseTPa7n.js";import{t as n}from"./jszip.min-Das2IAnb.js";var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),o=new(function(){function e(){this.browser=new a,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 e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(o.wxa=!0,o.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?o.worker=!0:!o.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(o.node=!0,o.svgSupported=!0):s(navigator.userAgent,o);function s(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var c=`12px sans-serif`,l=20,u=100,d=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function f(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-l)/u}return t}var p=f(d),m={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=m.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=p[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},h=te([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),g=te([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),_=Object.prototype.toString,v=Array.prototype,y=v.forEach,b=v.filter,x=v.slice,S=v.map,C=function(){}.constructor,w=C?C.prototype:null,T=`__proto__`,E=2311,D=2**53-1;function O(){return E>=D&&(E=0),E++}function k(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function A(e){if(typeof e!=`object`||!e)return e;var t=e,n=_.call(e);if(n===`[object Array]`){if(!Ce(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=A(e[r])}}else if(g[n]){if(!Ce(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!h[n]&&!Ce(e)&&!de(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==T&&(t[o]=A(e[o]));return t}function j(e,t,n){if(!ce(t)||!ce(e))return n?A(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==T){var i=e[r],a=t[r];ce(a)&&ce(i)&&!H(a)&&!H(i)&&!de(a)&&!de(i)&&!le(a)&&!le(i)&&!Ce(a)&&!Ce(i)?j(i,a,n):(n||!(r in e))&&(e[r]=A(t[r]))}return e}function M(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==T&&(e[n]=t[n]);return e}function N(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function P(e,t,n){for(var r=B(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}m.createCanvas;function F(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function ee(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function I(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else P(e,t,n)}function L(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function R(e,t,n){if(e&&t)if(e.forEach&&e.forEach===y)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function z(e,t,n){if(!e)return[];if(!t)return _e(e);if(e.map&&e.map===S)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function te(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function ne(e,t,n){if(!e)return[];if(!t)return _e(e);if(e.filter&&e.filter===b)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function re(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function B(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function ie(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(x.call(arguments)))}}var V=w&&U(w.bind)?w.call.bind(w.bind):ie;function ae(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(x.call(arguments)))}}function H(e){return Array.isArray?Array.isArray(e):_.call(e)===`[object Array]`}function U(e){return typeof e==`function`}function W(e){return typeof e==`string`}function oe(e){return _.call(e)===`[object String]`}function se(e){return typeof e==`number`}function ce(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function le(e){return!!h[_.call(e)]}function ue(e){return!!g[_.call(e)]}function de(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function fe(e){return e.colorStops!=null}function pe(e){return e.image!=null}function me(e){return e!==e}function he(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function G(e,t){return e??t}function ge(e,t,n){return e??t??n}function _e(e){var t=[...arguments].slice(1);return x.apply(e,t)}function ve(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function ye(e,t){if(!e)throw Error(t)}function be(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var xe=`__ec_primitive__`;function Se(e){e[xe]=!0}function Ce(e){return e[xe]}var we=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return B(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Te=typeof Map==`function`;function Ee(){return Te?new Map:new we}var De=function(){function e(t){var n=H(t);this.data=Ee();var r=this;t instanceof e?t.each(i):t&&R(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Te?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Oe(e){return new De(e)}function ke(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Ae(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&M(n,t),n}function je(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function K(e,t){return e.hasOwnProperty(t)}function Me(){}var Ne=180/Math.PI;function Pe(e,t){return e??=0,t??=0,[e,t]}function Fe(e,t){return e[0]=t[0],e[1]=t[1],e}function Ie(e){return[e[0],e[1]]}function Le(e,t,n){return e[0]=t,e[1]=n,e}function Re(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ze(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Be(e){return Math.sqrt(Ve(e))}function Ve(e){return e[0]*e[0]+e[1]*e[1]}function He(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Ue(e,t){var n=Be(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function We(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ge=We;function Ke(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var qe=Ke;function Je(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Ye(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Xe(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ze(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Qe=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),$e=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.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 Qe(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Qe(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Qe(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Qe(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Qe(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Qe(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),et=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),tt=Math.log(2);function nt(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/tt);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*nt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function rt(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=nt(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*nt(n,7,o===0?1:0,1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var it=`___zrEVENTSAVED`,at=[];function ot(e,t,n,r,i){return ct(at,t,r,i,!0)&&ct(e,n,at[0],at[1])}function st(e,t){e&&n(e),t&&n(t);function n(e){var t=e[it];t&&(t.clearMarkers&&t.clearMarkers(),delete e[it])}}function ct(e,t,n,r,i){if(t.getBoundingClientRect&&o.domSupported&&!dt(t)){var a=t[it]||(t[it]={}),s=ut(lt(t,a),a,i);if(s)return s(e,n,r),!0}return!1}function lt(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){R(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function ut(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?rt(s,o):rt(o,s))}function dt(e){return e.nodeName.toUpperCase()===`CANVAS`}var ft=/([&<>"'])/g,pt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function mt(e){return e==null?``:(e+``).replace(ft,function(e,t){return pt[t]})}var ht=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gt=[],_t=o.browser.firefox&&+o.browser.version.split(`.`)[0]<39;function vt(e,t,n,r){return n||={},r?yt(e,t,n):_t&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?yt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function yt(e,t,n){if(o.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(dt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(ct(gt,e,r,i)){n.zrX=gt[0],n.zrY=gt[1];return}}n.zrX=n.zrY=0}function bt(e){return e||window.event}function xt(e,t,n){if(t=bt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&vt(e,i,t,n)}else{vt(e,t,t,n);var a=St(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&ht.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function St(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Ct(e,t,n,r){e.addEventListener(t,n,r)}function wt(e,t,n,r){e.removeEventListener(t,n,r)}var Tt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Et=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=vt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in kt)if(kt.hasOwnProperty(t)){var n=kt[t](this._track,e);if(n)return n}},e}();function Dt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Ot(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var kt={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Dt(r)/Dt(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ot(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function At(){return[1,0,0,1,0,0]}function jt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Mt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Nt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Pt(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Ft(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function It(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Lt(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var Rt=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),zt=Math.min,Bt=Math.max,Vt=Math.abs,Ht=[`x`,`y`],Ut=[`width`,`height`],Wt=new Rt,Gt=new Rt,Kt=new Rt,qt=new Rt,Jt=un(),Yt=Jt.minTv,Xt=Jt.maxTv,Zt=[0,0],Qt=function(){function e(e,t,n,r){en(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=zt(e.x,this.x),n=zt(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Bt(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Bt(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return nn(At(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Rt.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=en(on,t.x,t.y,t.width,t.height)),n instanceof e||(n=en(sn,n.x,n.y,n.width,n.height));var s=!!r;Jt.reset(i,s);var c=Jt.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Zt[0]=1/0,Zt[1]=0,ln(l,u,p,m,0,s,a,o),ln(d,f,h,g,1,s,a,o),s&&Rt.copy(r,_?Jt.useDir?Jt.dirMinTv:Yt:Xt)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){tn(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&tn(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Wt.x=Kt.x=t.x,Wt.y=qt.y=t.y,Gt.x=qt.x=t.x+t.width,Gt.y=Kt.y=t.y+t.height,Wt.transform(n),qt.transform(n),Gt.transform(n),Kt.transform(n),e.x=zt(Wt.x,Gt.x,Kt.x,qt.x),e.y=zt(Wt.y,Gt.y,Kt.y,qt.y);var s=Bt(Wt.x,Gt.x,Kt.x,qt.x),c=Bt(Wt.y,Gt.y,Kt.y,qt.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=jt(e||[]),Pt(e,e,Le(cn,-t.x,-t.y)),It(e,e,Le(cn,r,i)),Pt(e,e,Le(cn,n.x,n.y)),e},e}(),$t=Qt.create,en=Qt.set,tn=Qt.copy,nn=Qt.calculateTransform,rn=Qt.applyTransform,an=Qt.contain,on=new Qt(0,0,0,0),sn=new Qt(0,0,0,0),cn=[];function ln(e,t,n,r,i,a,o,s){var c=Vt(t-n),l=Vt(r-e),u=zt(c,l),d=Ht[i],f=Ht[1-i],p=Ut[i];t<n||r<e?c<l?(a&&(Xt[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Xt[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=Bt(e,n),o[p]=zt(t,r)-o[d]),a&&(u<Zt[0]||Jt.useDir)&&(Zt[0]=zt(u,Zt[0]),(c<l||!Jt.bidirectional)&&(Yt[d]=c,Yt[f]=0,Jt.useDir&&Jt.calcDirMTV()),(c>=l||!Jt.bidirectional)&&(Yt[d]=-l,Yt[f]=0,Jt.useDir&&Jt.calcDirMTV())))}function un(){var e=0,t=new Rt,n=new Rt,r={minTv:new Rt,maxTv:new Rt,useDir:!1,dirMinTv:new Rt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Bt(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return Vt(e)<1e-10}return r}var dn=`silent`;function fn(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:pn}}function pn(){Tt(this.event)}var mn=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(et),hn=function(){function e(e,t){this.x=e,this.y=t}return e}(),gn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],_n=new Qt(0,0,0,0),vn=function(e){i(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new hn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new mn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new $e(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(gn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=xn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new hn(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new hn(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=fn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new hn(e,t);if(bn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Qt(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(_n.copy(u.getBoundingRect()),u.transform&&_n.applyTransform(u.transform),_n.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(bn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new Et;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new hn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(et);R([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){vn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=xn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Ge(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function yn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?dn:!0}return!1}function bn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=yn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==dn)){t.target=o;break}}}function xn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Sn=32,Cn=7;function wn(e){for(var t=0;e>=Sn;)t|=e&1,e>>=1;return e+t}function Tn(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;En(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function En(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Dn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function On(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function kn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function An(e,t){var n=Cn,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=kn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=On(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=kn(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=On(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Cn||m>=Cn);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-kn(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-On(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Cn||g>=Cn);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function jn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Sn){a=Tn(e,n,r,t),Dn(e,n,r,n+a,t);return}var o=An(e,t),s=wn(i);do{if(a=Tn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Dn(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Mn=!1;function Nn(){Mn||(Mn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Pn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Fn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Pn}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,jn(n,Pn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(Nn(),p.z=0),isNaN(p.z2)&&(Nn(),p.z2=0),isNaN(p.zlevel)&&(Nn(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=F(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),In=o.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Ln={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ln.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Ln.bounceIn(e*2)*.5:Ln.bounceOut(e*2-1)*.5+.5}},Rn=Math.pow,zn=Math.sqrt,Bn=1e-8,Vn=1e-4,Hn=zn(3),Un=1/3,Wn=Pe(),Gn=Pe(),Kn=Pe();function qn(e){return e>-Bn&&e<Bn}function Jn(e){return e>Bn||e<-Bn}function Yn(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Xn(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Zn(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(qn(u)&&qn(d))if(qn(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(qn(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=zn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Rn(-y,Un):Rn(y,Un),b=b<0?-Rn(-b,Un):Rn(b,Un);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*zn(u*u*u)),S=Math.acos(x)/3,C=zn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Hn*Math.sin(S)))/(3*o),T=(-s+C*(w-Hn*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Qn(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(qn(o)){if(Jn(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(qn(u))i[0]=-a/(2*o);else if(u>0){var d=zn(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function $n(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function er(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Wn[0]=c,Wn[1]=l;for(var v=0;v<1;v+=.05)Gn[0]=Yn(e,n,i,o,v),Gn[1]=Yn(t,r,a,s,v),g=qe(Wn,Gn),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Vn);y++)m=d-f,h=d+f,Gn[0]=Yn(e,n,i,o,m),Gn[1]=Yn(t,r,a,s,m),g=qe(Gn,Wn),m>=0&&g<p?(d=m,p=g):(Kn[0]=Yn(e,n,i,o,h),Kn[1]=Yn(t,r,a,s,h),_=qe(Kn,Wn),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Yn(e,n,i,o,d),u[1]=Yn(t,r,a,s,d)),zn(p)}function tr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Yn(e,n,i,o,m),g=Yn(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function nr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function rr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function ir(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(qn(a)){if(Jn(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(qn(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=zn(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ar(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function or(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function sr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Wn[0]=o,Wn[1]=s;for(var f=0;f<1;f+=.05){Gn[0]=nr(e,n,i,f),Gn[1]=nr(t,r,a,f);var p=qe(Wn,Gn);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Vn);m++){var h=l-u,g=l+u;Gn[0]=nr(e,n,i,h),Gn[1]=nr(t,r,a,h);var p=qe(Gn,Wn);if(h>=0&&p<d)l=h,d=p;else{Kn[0]=nr(e,n,i,g),Kn[1]=nr(t,r,a,g);var _=qe(Kn,Wn);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=nr(e,n,i,l),c[1]=nr(t,r,a,l)),zn(d)}function cr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=nr(e,n,i,f),m=nr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var lr=/cubic-bezier\(([0-9,\.e ]+)\)/;function ur(e){var t=e&&lr.exec(e);if(t){var n=t[1].split(`,`),r=+be(n[0]),i=+be(n[1]),a=+be(n[2]),o=+be(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Zn(0,r,a,1,e,s)&&Yn(0,i,o,1,s[0])}}}var dr=function(){function e(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||Me,this.ondestroy=e.ondestroy||Me,this.onrestart=e.onrestart||Me,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop)this._startTime=e-r%n,this._pausedTime=0,this.onrestart();else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=U(e)?e:Ln[e]||ur(e)},e}(),fr=function(){function e(e){this.value=e}return e}(),pr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new fr(e);return this.insertEntry(t),t},e.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++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),mr=function(){function e(e){this._list=new pr,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new fr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),hr={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 gr(e){return e=Math.round(e),e<0?0:e>255?255:e}function _r(e){return e=Math.round(e),e<0?0:e>360?360:e}function vr(e){return e<0?0:e>1?1:e}function yr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?gr(parseFloat(t)/100*255):gr(parseInt(t,10))}function br(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?vr(parseFloat(t)/100):vr(parseFloat(t))}function xr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Sr(e,t,n){return e+(t-e)*n}function Cr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function wr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Tr=new mr(20),Er=null;function Dr(e,t){Er&&wr(Er,t),Er=Tr.put(e,Er||t.slice())}function Or(e,t){if(e){t||=[];var n=Tr.get(e);if(n)return wr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in hr)return wr(t,hr[r]),Dr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Cr(t,0,0,0,1);return}return Cr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Dr(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Cr(t,0,0,0,1);return}return Cr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Dr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Cr(t,+l[0],+l[1],+l[2],1):Cr(t,0,0,0,1);u=br(l.pop());case`rgb`:if(l.length>=3)return Cr(t,yr(l[0]),yr(l[1]),yr(l[2]),l.length===3?u:br(l[3])),Dr(e,t),t;Cr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Cr(t,0,0,0,1);return}return l[3]=br(l[3]),kr(l,t),Dr(e,t),t;case`hsl`:if(l.length!==3){Cr(t,0,0,0,1);return}return kr(l,t),Dr(e,t),t;default:return}}Cr(t,0,0,0,1)}}function kr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=br(e[1]),i=br(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Cr(t,gr(xr(o,a,n+1/3)*255),gr(xr(o,a,n)*255),gr(xr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ar(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function jr(e,t){var n=Or(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Pr(n,n.length===4?`rgba`:`rgb`)}}function Mr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Or(t[i]),s=Or(t[a]),c=r-i,l=Pr([gr(Sr(o[0],s[0],c)),gr(Sr(o[1],s[1],c)),gr(Sr(o[2],s[2],c)),vr(Sr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Nr(e,t,n,r){var i=Or(e);if(e)return i=Ar(i),t!=null&&(i[0]=_r(U(t)?t(i[0]):t)),n!=null&&(i[1]=br(U(n)?n(i[1]):n)),r!=null&&(i[2]=br(U(r)?r(i[2]):r)),Pr(kr(i),`rgba`)}function Pr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Fr(e,t){var n=Or(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Ir=new mr(100);function Lr(e){if(W(e)){var t=Ir.get(e);return t||(t=jr(e,-.1),Ir.put(e,t)),t}else if(fe(e)){var n=M({},e);return n.colorStops=z(e.colorStops,function(e){return{offset:e.offset,color:jr(e.color,-.1)}}),n}return e}function Rr(e){return e.type===`linear`}function zr(e){return e.type===`radial`}(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var Br=Array.prototype.slice;function Vr(e,t,n){return(t-e)*n+e}function Hr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Vr(t[a],n[a],r);return e}function Ur(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Vr(t[o][s],n[o][s],r)}return e}function Wr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Gr(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Kr(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function qr(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Br.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Jr(e){if(L(e)){var t=e.length;if(L(e[0])){for(var n=[],r=0;r<t;r++)n.push(Br.call(e[r]));return n}return Br.call(e)}return e}function Yr(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Xr(e){return L(e&&e[0])?2:1}var Zr=0,Qr=1,$r=2,ei=3,ti=4,ni=5,ri=6;function ii(e){return e===ti||e===ni}function ai(e){return e===Qr||e===$r}var oi=[0,0,0,0],si=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=ri,s=t;if(L(t)){var c=Xr(t);o=c,(c===1&&!se(t[0])||c===2&&!se(t[0][0]))&&(a=!0)}else if(se(t)&&!me(t))o=Zr;else if(W(t))if(!isNaN(+t))o=Zr;else{var l=Or(t);l&&(s=l,o=ei)}else if(fe(t)){var u=M({},s);u.colorStops=z(t.colorStops,function(e){return{offset:e.offset,color:Or(e.color)}}),Rr(t)?o=ti:zr(t)&&(o=ni),s=u}i===0?this.valType=o:(o!==this.valType||o===ri)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=U(n)?n:Ln[n]||ur(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=ai(r),c=ii(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?qr(d,f,r):c&&Kr(d.colorStops,f.colorStops))}if(!o&&r!==ni&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===Zr?n[l].additiveValue=n[l].value-p:r===ei?n[l].additiveValue=Wr([],n[l].value,p,-1):ai(r)&&(n[l].additiveValue=r===Qr?Wr([],n[l].value,p,-1):Gr([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===ei,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?oi:e[s];if((ai(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(ai(i))i===Qr?Hr(g,f[r],p[r],h):Ur(g,f[r],p[r],h);else if(ii(i)){var _=f[r],v=p[r],y=i===ti;e[s]={type:y?`linear`:`radial`,x:Vr(_.x,v.x,h),y:Vr(_.y,v.y,h),colorStops:z(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Vr(e.offset,n.offset,h),color:Yr(Hr([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Vr(_.x2,v.x2,h),e[s].y2=Vr(_.y2,v.y2,h)):e[s].r=Vr(_.r,v.r,h)}else if(c)Hr(g,f[r],p[r],h),n||(e[s]=Yr(g));else{var b=Vr(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Zr?e[n]=e[n]+r:t===ei?(Or(e[n],oi),Wr(oi,oi,r,1),e[n]=Yr(oi)):t===Qr?Wr(e[n],e[n],r,1):t===$r&&Gr(e[n],e[n],r,1)},e}(),ci=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){k(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,B(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new si(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===ei&&c&&(c=Yr(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Jr(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Jr(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new dr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return z(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Jr(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=B(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function li(){return new Date().getTime()}var ui=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=li()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(In(t),!e._paused&&e.update())}In(t)},t.prototype.start=function(){this._running||(this._time=li(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=li(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=li()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new ci(e,t.loop);return this.addAnimator(n),n},t}(et),di=300,fi=o.domSupported,pi=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:z(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),mi={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},hi=!1;function gi(e){var t=e.pointerType;return t===`pen`||t===`touch`}function _i(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function vi(e){e&&(e.zrByTouch=!0)}function yi(e,t){return xt(e.dom,new xi(e,t),!0)}function bi(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var xi=function(){function e(e,t){this.stopPropagation=Me,this.stopImmediatePropagation=Me,this.preventDefault=Me,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Si={mousedown:function(e){e=xt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=xt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=xt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=xt(this.dom,e);var t=e.toElement||e.relatedTarget;bi(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){hi=!0,e=xt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){hi||(e=xt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=xt(this.dom,e),vi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Si.mousemove.call(this,e),Si.mousedown.call(this,e)},touchmove:function(e){e=xt(this.dom,e),vi(e),this.handler.processGesture(e,`change`),Si.mousemove.call(this,e)},touchend:function(e){e=xt(this.dom,e),vi(e),this.handler.processGesture(e,`end`),Si.mouseup.call(this,e),new Date-+this.__lastTouchMoment<di&&Si.click.call(this,e)},pointerdown:function(e){Si.mousedown.call(this,e)},pointermove:function(e){gi(e)||Si.mousemove.call(this,e)},pointerup:function(e){Si.mouseup.call(this,e)},pointerout:function(e){gi(e)||Si.mouseout.call(this,e)}};R([`click`,`dblclick`,`contextmenu`],function(e){Si[e]=function(t){t=xt(this.dom,t),this.trigger(e,t)}});var Ci={pointermove:function(e){gi(e)||Ci.mousemove.call(this,e)},pointerup:function(e){Ci.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function wi(e,t){var n=t.domHandlers;o.pointerEventsSupported?R(pi.pointer,function(r){Ei(t,r,function(t){n[r].call(e,t)})}):(o.touchEventsSupported&&R(pi.touch,function(r){Ei(t,r,function(i){n[r].call(e,i),_i(t)})}),R(pi.mouse,function(r){Ei(t,r,function(i){i=bt(i),t.touching||n[r].call(e,i)})}))}function Ti(e,t){o.pointerEventsSupported?R(mi.pointer,n):o.touchEventsSupported||R(mi.mouse,n);function n(n){function r(r){r=bt(r),bi(e,r.target)||(r=yi(e,r),t.domHandlers[n].call(e,r))}Ei(t,n,r,{capture:!0})}}function Ei(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Ct(e.domTarget,t,n,r)}function Di(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&wt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Oi=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),ki=function(e){i(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Oi(t,Si),fi&&(r._globalHandlerScope=new Oi(document,Ci)),wi(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Di(this._localHandlerScope),fi&&Di(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,fi&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Ti(this,t):Di(t)}},t}(et),Ai=1;o.hasGlobalWindow&&(Ai=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ji=Ai,Mi=.4,Ni=`#333`,Pi=`#ccc`,Fi=`#eee`,Ii=jt,Li=5e-5;function Ri(e){return e>Li||e<-Li}var zi=[],Bi=[],Vi=At(),Hi=Math.abs,Ui=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Wi(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Ri(this.rotation)||Ri(this.x)||Ri(this.y)||Ri(this.scaleX-1)||Ri(this.scaleY-1)||Ri(this.skewX)||Ri(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Ii(n),this.invTransform=null);return}n||=At(),t?this.getLocalTransform(n):Ii(n),e&&(t?Nt(n,e,n):Mt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||At(),Lt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(zi);var n=zi[0]<0?-1:1,r=zi[1]<0?-1:1,i=((zi[0]-n)*t+n)/zi[0]||0,a=((zi[1]-r)*t+r)/zi[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||At(),Nt(Bi,e.invTransform,t),t=Bi);var n=this.originX,r=this.originY;(n||r)&&(Vi[4]=n,Vi[5]=r,Nt(Bi,t,Vi),Bi[4]-=n,Bi[5]-=r,t=Bi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return 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)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Ye(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Ye(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Hi(e[0]-1)>1e-10&&Hi(e[3]-1)>1e-10?Math.sqrt(Hi(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){qi(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Ft(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Wi=Ui.getLocalTransform;function Gi(){return new Ui}var Ki=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function qi(e,t){return N(e,t,Ki)}function Ji(e){Yi||=new mr(100),e||=`12px sans-serif`;var t=Yi.get(e);return t||(t={font:e,strWidthCache:new mr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:m.measureText(`国`,e).width,asciiCharWidth:m.measureText(`a`,e).width},Yi.put(e,t)),t}var Yi;function Xi(e){if(!(Zi>=Qi)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=m.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Zi=Qi:i>2&&Zi++,t}}var Zi=0,Qi=5;function $i(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=Xi(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function ea(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=m.measureText(t,e.font).width,n.put(t,r)),r}function ta(e,t,n,r){var i=ea(Ji(t),e),a=aa(t);return new Qt(ra(0,i,n),ia(0,a,r),i,a)}function na(e,t,n,r){var i=((e||``)+``).split(`
2
+ `);if(i.length===1)return ta(i[0],t,n,r);for(var a=new Qt(0,0,0,0),o=0;o<i.length;o++){var s=ta(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function ra(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function ia(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function aa(e){return Ji(e).stWideCharWidth}function oa(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function sa(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=oa(r[0],n.width),l+=oa(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var ca=`__zr_normal__`,la=Ki.concat([`ignore`]),ua=te(Ki,function(e,t){return e[t]=!0,e},{ignore:!1}),da={},fa=new Qt(0,0,0,0),pa=[],ma=function(){function e(e){this.id=O(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=fa,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(da,n,d):sa(da,n,d),i.x=da.x,i.y=da.y,a=da.align,o=da.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=oa(f[0],d.width),m=oa(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Qt(0,0,0,0);i.getLocalTransform(pa),Lt(pa,pa),Qt.copy(_,d),_.applyTransform(pa)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Pi:Ni},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Or(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Pr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.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||{},M(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(ce(e))for(var n=B(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,la)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(ca,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===ca;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(F(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){k(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Sa(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,wa(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=Sa(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,wa(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=F(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=F(r,e),a=F(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];M(t,i),i.textConfig&&(n||={},M(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=M({},r?this.textConfig:n.textConfig),M(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<la.length;l++){var u=la[l],d=i&&ua[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Ui,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},M(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new ci(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=F(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){ha(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ha(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=ha(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();I(ma,et),I(ma,Ui);function ha(e,t,n,r,i){n||={};var a=[];xa(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function ga(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function _a(e){return L(e[0])}function va(e,t,n){if(L(t[n]))if(L(e[n])||(e[n]=[]),ue(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ga(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(_a(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?ga(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else ga(a,i,o);a.length=i.length}else e[n]=t[n]}function ya(e,t){return e===t||L(e)&&L(t)&&ba(e,t)}function ba(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function xa(e,t,n,r,i,a,o,s){for(var c=B(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!ce(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(ce(v)&&!L(v)&&!fe(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}xa(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=F(m,x);m.splice(S,1)}}if(i.force||(h=ne(h,function(e){return!ya(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=Jr(n[_]),va(n,r,_)}}var x=new ci(n,!1,!1,d?ne(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function Sa(e,t,n,r){return!(n&&n.hoverLayer||r)||Ca(e)||t&&Ca(t)?0:1}function Ca(e){return e.type===`text`||e.type===`tspan`}function wa(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Ta=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=F(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=F(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Qt(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Qt.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(ma);Ta.prototype.type=`group`;var Ea={},Da={};function Oa(e){delete Da[e]}function ka(e){if(!e)return!1;if(typeof e==`string`)return Fr(e,1)<Mi;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Fr(t[i].color,1);return n/=r,n<Mi}return!1}var Aa=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Fn,a=n.renderer||`canvas`;Ea[a]||(a=B(Ea)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Ea[a](t,i,n,e),c=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var l=!o.node&&!o.worker&&!c?new ki(s.getViewportRoot(),s.root):null,u=n.useCoarsePointer,d=u==null||u===`auto`?o.touchEventsSupported:!!u,f=44,p;d&&(p=G(n.pointerSize,f)),this.handler=new vn(i,s,l,s.root,p),this.animation=new ui({stage:{update:c?null:function(){return r._flush(!1)}}}),c||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=ka(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=li(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=li();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ta&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.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,Oa(this.id))},e}();function ja(e,t){var n=new Aa(O(),e,t);return Da[n.id]=n,n}function Ma(e,t){Ea[e]=t}var Na=1e-4,Pa=20;function Fa(e){return e.replace(/^\s+|\s+$/g,``)}var Ia=Math.min,La=Math.max,Ra=Math.abs,za=Math.round,Ba=Math.floor,Va=Math.ceil,Ha=Math.pow,Ua=Math.log,Wa=Math.LN10,Ga=Math.PI,Ka=Math.random;function qa(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Ja=Ya;function Ya(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return Xa(e,t,n)}function Xa(e,t,n){return W(e)?Za(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Za(e){return!!Fa(e).match(/%$/)}function Qa(e,t,n){return isNaN(t)?n?``+e:+e:(t=Ia(La(0,t),Pa),e=(+e).toFixed(t),n?e:+e)}function $a(e){return e.sort(function(e,t){return e-t}),e}function eo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(za(e*t)/t===e)return n}return to(e)}function to(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return La(0,(a<0?0:i-1-a)-r)}function no(e,t,n){var r=Ra(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Ua(2*Ra(n||1)*Ra(r))/Wa,a=Ua(Ra(t))/Wa,o=La(0,Va(-i+a));return isFinite(o)||(o=NaN),o}function ro(e,t){var n=te(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=Ha(10,t),i=z(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=z(i,function(e){return Ba(e)}),s=te(o,function(e,t){return e+t},0),c=z(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return z(o,function(e){return e/r})}function io(e,t){var n=La(eo(e),eo(t)),r=e+t;return n>Pa?r:Qa(r,n)}var ao=Ha(2,53)-1;function oo(e){var t=Ga*2;return(e%t+t)%t}function so(e){return e>-Na&&e<Na}var co=/^(?:(\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 lo(e){if(e instanceof Date)return e;if(W(e)){var t=co.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(za(e))}function uo(e){return Ha(10,fo(e))}function fo(e){if(e===0)return 0;var t=Ba(Ua(e)/Wa);return e/Ha(10,t)>=10&&t++,t}function po(e,t){var n=fo(e),r=Ha(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Qa(e,-n)}function mo(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf(`x`)<=0)?t:NaN}function ho(e){return!isNaN(mo(e))}function go(){return za(Ka()*9)}function _o(e,t){return t===0?e:_o(t,e%t)}function vo(e,t){return e==null?t:t==null?e:e*t/_o(e,t)}function yo(e){return e!=null&&isFinite(e)}var bo=`[ECharts] `,xo={},So=typeof console<`u`&&console.warn&&console.log;function Co(e,t,n){if(So){if(n){if(xo[t])return;xo[t]=!0}console[e](bo+t)}}function wo(e,t){Co(`error`,e,t)}function To(e){throw Error(e)}function Eo(e,t,n){return(t-e)*n+e}var Do=`series\0`,Oo=`\0_ec_\0`;function ko(e){return e instanceof Array?e:e==null?[]:[e]}function Ao(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var jo=`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`.split(`.`);function Mo(e){return ce(e)&&!H(e)&&!(e instanceof Date)?e.value:e}function No(e){return ce(e)&&!(e instanceof Array)}function Po(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=Oe();R(t,function(e,n){if(!ce(e)){t[n]=null;return}});var s=Fo(e,o,n);return(r||i)&&Io(s,e,o,t),r&&Lo(s,t),r||i?Ro(s,t,i):a&&zo(s,t),Bo(s),s}function Fo(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Go(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Io(e,t,n,r){R(r,function(i,a){if(!(!i||i.id==null)){var o=Ho(i.id),s=n.get(o);if(s!=null){var c=e[s];ye(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Lo(e,t){R(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Go(n)&&!Go(a)&&Vo(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Ro(e,t,n){R(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Go(r.existing)||r.existing&&t.id!=null&&!Vo(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function zo(e,t){R(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Bo(e){var t=Oe();R(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),R(e,function(e){var n=e.newOption;ye(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),R(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(ce(i)){if(a.name=i.name==null?r?r.name:Do+n:Ho(i.name),r)a.id=Ho(r.id);else if(i.id!=null)a.id=Ho(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+ o++;while(t.get(a.id))}t.set(a.id,e)}})}function Vo(e,t,n){var r=Uo(t[e],null),i=Uo(n[e],null);return r!=null&&i!=null&&r===i}function Ho(e){return Uo(e,``)}function Uo(e,t){return e==null?t:W(e)?e:se(e)||oe(e)?e+``:t}function Wo(e){var t=e.name;return!!(t&&t.indexOf(Do))}function Go(e){return e&&e.id!=null&&Ho(e.id).indexOf(Oo)===0}function Ko(e,t,n){R(e,function(e){var r=e.newOption;ce(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=qo(t,r,e.existing,n))})}function qo(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Jo(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return H(t.dataIndex)?z(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return H(t.name)?z(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Yo(){var e=`__ec_inner_`+ Xo++;return function(t){return t[e]||(t[e]={})}}var Xo=go();function Zo(e,t,n){var r=Qo(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=es(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function Qo(e,t){var n;if(W(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=Oe(),a={},o=!1;return R(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&F(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var $o={useDefault:!0,enableAll:!1,enableNone:!1};function es(e,t,n,r){r||=$o;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function ts(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function ns(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function rs(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function is(e){return e===`auto`?o.domSupported?`html`:`richText`:e||`html`}function as(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(se(r)){var o=Eo(n||0,r,i);return Qa(o,a?Math.max(eo(n||0),eo(r)):t)}else if(W(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Eo(p,m,i);s[d]=Qa(o,a?Math.max(eo(p),eo(m)):t)}}return s}}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e})();function os(){return[1/0,-1/0]}function ss(e,t){ds(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function cs(e,t){ds(t)&&t<e[0]&&(e[0]=t)}function ls(e,t){ds(t)&&t>e[1]&&(e[1]=t)}function us(e,t){fs(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function ds(e){return e!=null&&isFinite(e)}function fs(e,t){return ds(e)&&ds(t)&&e<=t}function ps(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function ms(e){fs(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function hs(){var e=`__ec_once_`+ gs++;return function(t,n){K(t,e)||(t[e]=1,n())}}var gs=go();function _s(e,t,n){var r=Oe(),i=0;R(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function vs(e){return e.value+``}function ys(e){return e+``}function bs(e,t){return G(t,!0)?e.seriesIndex+2:0}function xs(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Ss(e,t){return{seriesType:e,overallReset:t}}function Cs(e){return{overallReset:e}}var ws=`.`,Ts=`___EC__COMPONENT__CONTAINER___`,Es=`___EC__EXTENDED_CLASS___`;function Ds(e){var t={main:``,sub:``};if(e){var n=e.split(ws);t.main=n[0]||``,t.sub=n[1]||``}return t}function Os(e){ye(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function ks(e){return!!(e&&e[Es])}function As(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return js(t)?n=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},ee(n,this)),M(n.prototype,e),n[Es]=!0,n.extend=this.extend,n.superCall=Fs,n.superApply=Is,n.superClass=t,n}}function js(e){return U(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Ms(e,t){e.extend=t.extend}var Ns=Math.round(Math.random()*10);function Ps(e){var t=[`__\0is_clz`,Ns++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Fs(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Is(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Ls(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Os(r),e.prototype.type=r;var i=Ds(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Ts){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Ts]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Ds(e),r=[],i=t[n.main];return i&&i[Ts]?R(i,function(e,t){t!==Ts&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Ds(e).main]},e.getAllClassMainTypes=function(){var e=[];return R(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Ds(e).main];return n&&n[Ts]};function n(e){var n=t[e.main];return(!n||!n[Ts])&&(n=t[e.main]={},n[Ts]=!0),n}}function Rs(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&F(r,s)>=0||i&&F(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var zs=Rs([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Bs=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return zs(this,e,t)},e}(),Vs=new mr(50);function Hs(e){if(typeof e==`string`){var t=Vs.get(e);return t&&t.image}else return e}function Us(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Vs.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!Gs(t)&&a.pending.push(o)):(t=m.loadImage(e,Ws,Ws),t.__zrImageSrc=e,Vs.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function Ws(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Gs(e){return e&&e.width&&e.height}var Ks=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function qs(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
3
+ `);a=Js(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)Ys(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
4
+ `),e.isTruncated=s}function Js(e,t,n,r){r||={};var i=M({},r);n=G(n,`...`),i.maxIterations=G(r.maxIterations,2);var a=i.minChar=G(r.minChar,0),o=i.fontMeasureInfo=Ji(t),s=o.asciiCharWidth;i.placeholder=G(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=ea(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function Ys(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=ea(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Xs(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=ea(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Xs(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=$i(n,e.charCodeAt(i));return i}function Zs(e,t,n,r){var i=uc(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=aa(l),f=G(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?oc(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
5
+ `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=Js(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Ys(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=Ji(l),S=0;S<_.length;S++)w=Math.max(ea(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var Qs=function(){function e(){}return e}(),$s=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),ec=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function tc(e,t,n,r,i){var a=new ec,o=uc(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Ks.lastIndex=0,h;(h=Ks.exec(o))!=null;){var g=h.index;g>m&&nc(a,o.substring(m,g),t,p),nc(a,h[2],t,p,h[1]),m=Ks.lastIndex}m<o.length&&nc(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,M=j?j[1]+j[3]:0,N=k.font=A.font||t.font;k.contentHeight=aa(N);var P=G(A.height,k.contentHeight);if(k.innerHeight=P,j&&(P+=j[0]+j[2]),k.height=P,k.lineHeight=ge(A.lineHeight,t.lineHeight,P),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var F=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<F;break outer}var ee=A.width,I=ee==null||ee===`auto`;if(typeof ee==`string`&&ee.charAt(ee.length-1)===`%`)k.percentWidth=ee,_.push(k),k.contentWidth=ea(Ji(N),k.text);else{if(I){var L=A.backgroundColor,R=L&&L.image;R&&(R=Hs(R),Gs(R)&&(k.width=Math.max(k.width,R.width*P/R.height)))}var z=b&&u!=null?u-D:null;z!=null&&z<k.width?!I||z<M?(k.text=``,k.width=k.contentWidth=0):(qs(S,k.text,z-M,N,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=ea(Ji(N),k.text)):k.contentWidth=ea(Ji(N),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=G(u,y),a.outerHeight=a.height=G(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],te=k.percentWidth;k.width=parseInt(te,10)/100*a.width}return a}function nc(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=oa(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
6
+ `),l=!0),r.accumWidth=m}else{var h=oc(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
7
+ `);for(var g=Ji(c),_=0;_<u.length;_++){var v=u[_],y=new Qs;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:ea(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new $s)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new $s([y]))}}function rc(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ic=te(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function ac(e){return rc(e)?!!ic[e]:!0}function oc(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Ji(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
8
+ `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=$i(d,p.charCodeAt(0)),h=r?!1:!ac(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function sc(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Qt.set(cc,ra(n,o,i),ia(r,s,a),o,s),Qt.intersect(t,cc,null,lc);var c=lc.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=ra(c.x,c.width,i,!0),e.baseY=ia(c.y,c.height,a,!0)}}var cc=new Qt(0,0,0,0),lc={outIntersectRect:{},clamp:!0};function uc(e){return e==null?e=``:e+=``}function dc(e){var t=uc(e.text),n=e.font;return fc(e,ea(Ji(n),t),aa(n),null)}function fc(e,t,n,r){var i=new Qt(ra(e.x||0,t,e.textAlign),ia(e.y||0,n,e.textBaseline),t,n),a=r??(pc(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function pc(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var mc=`__zr_style_`+Math.round(Math.random()*10),hc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},gc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hc[mc]=!0;var _c=[`z`,`z2`,`invisible`],vc=[`invisible`],yc=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=B(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Sc(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Qt(0,0,0,0),t?Qt.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Qt(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:M(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Ae(hc,e)},t.prototype.useStyle=function(e){e[mc]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[mc]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,_c)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l)if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=B(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=B(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l);if(!c)for(var h=this.__inHover?vc:_c,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return M(e,t),e},t.prototype.getAnimationStyleProps=function(){return gc},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(ma),bc=new Qt(0,0,0,0),xc=new Qt(0,0,0,0);function Sc(e,t,n){return bc.copy(e.getBoundingRect()),e.transform&&bc.applyTransform(e.transform),xc.width=t,xc.height=n,!bc.intersect(xc)}var Cc=Math.min,wc=Math.max,Tc=Math.sin,Ec=Math.cos,Dc=Math.PI*2,Oc=Pe(),kc=Pe(),Ac=Pe();function jc(e,t,n,r,i,a){i[0]=Cc(e,n),i[1]=Cc(t,r),a[0]=wc(e,n),a[1]=wc(t,r)}var Mc=[],Nc=[];function Pc(e,t,n,r,i,a,o,s,c,l){var u=Qn,d=Yn,f=u(e,n,i,o,Mc);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Mc[p]);c[0]=Cc(m,c[0]),l[0]=wc(m,l[0])}f=u(t,r,a,s,Nc);for(var p=0;p<f;p++){var h=d(t,r,a,s,Nc[p]);c[1]=Cc(h,c[1]),l[1]=wc(h,l[1])}c[0]=Cc(e,c[0]),l[0]=wc(e,l[0]),c[0]=Cc(o,c[0]),l[0]=wc(o,l[0]),c[1]=Cc(t,c[1]),l[1]=wc(t,l[1]),c[1]=Cc(s,c[1]),l[1]=wc(s,l[1])}function Fc(e,t,n,r,i,a,o,s){var c=ar,l=nr,u=wc(Cc(c(e,n,i),1),0),d=wc(Cc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Cc(e,i,f),o[1]=Cc(t,a,p),s[0]=wc(e,i,f),s[1]=wc(t,a,p)}function Ic(e,t,n,r,i,a,o,s,c){var l=Xe,u=Ze,d=Math.abs(i-a);if(d%Dc<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Oc[0]=Ec(i)*n+e,Oc[1]=Tc(i)*r+t,kc[0]=Ec(a)*n+e,kc[1]=Tc(a)*r+t,l(s,Oc,kc),u(c,Oc,kc),i%=Dc,i<0&&(i+=Dc),a%=Dc,a<0&&(a+=Dc),i>a&&!o?a+=Dc:i<a&&o&&(i+=Dc),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Ac[0]=Ec(p)*n+e,Ac[1]=Tc(p)*r+t,l(s,Ac,s),u(c,Ac,c))}var Lc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Rc=[],zc=[],Bc=[],Vc=[],Hc=[],Uc=[],Wc=Math.min,Gc=Math.max,Kc=Math.cos,qc=Math.sin,Jc=Math.abs,Yc=Math.PI,Xc=Yc*2,Zc=typeof Float32Array<`u`,Qc=[];function $c(e){return Math.round(e/Yc*1e8)/1e8%2*Yc}function el(e,t){var n=$c(e[0]);n<0&&(n+=Xc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Xc?i=n+Xc:t&&n-i>=Xc?i=n-Xc:!t&&n>i?i=n+(Xc-$c(n-i)):t&&n<i&&(i=n-(Xc-$c(i-n))),e[0]=n,e[1]=i}var tl=function(){function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=Jc(n/ji/e)||0,this._uy=Jc(n/ji/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Lc.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Jc(e-this._xi),r=Jc(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Lc.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Lc.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Lc.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Qc[0]=r,Qc[1]=i,el(Qc,a),r=Qc[0],i=Qc[1];var o=i-r;return this.addData(Lc.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Kc(i)*n+e,this._yi=qc(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Lc.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Lc.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Zc&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(Zc&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.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}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Zc&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Bc[0]=Bc[1]=Hc[0]=Hc[1]=Number.MAX_VALUE,Vc[0]=Vc[1]=Uc[0]=Uc[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Lc.M:t=r=e[a++],n=i=e[a++],Hc[0]=r,Hc[1]=i,Uc[0]=r,Uc[1]=i;break;case Lc.L:jc(t,n,e[a],e[a+1],Hc,Uc),t=e[a++],n=e[a++];break;case Lc.C:Pc(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Hc,Uc),t=e[a++],n=e[a++];break;case Lc.Q:Fc(t,n,e[a++],e[a++],e[a],e[a+1],Hc,Uc),t=e[a++],n=e[a++];break;case Lc.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Kc(f)*u+c,i=qc(f)*d+l),Ic(c,l,u,d,f,p,m,Hc,Uc),t=Kc(p)*u+c,n=qc(p)*d+l;break;case Lc.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];jc(r,i,r+h,i+g,Hc,Uc);break;case Lc.Z:t=r,n=i;break}Xe(Bc,Bc,Hc),Ze(Vc,Vc,Uc)}return a===0&&(Bc[0]=Bc[1]=Vc[0]=Vc[1]=0),new Qt(Bc[0],Bc[1],Vc[0]-Bc[0],Vc[1]-Bc[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Lc.M:i=o=e[d++],a=s=e[d++];break;case Lc.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(Jc(_)>n||Jc(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Lc.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=tr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Lc.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=cr(i,a,y,b,h,g,10),i=h,a=g;break;case Lc.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Kc(D)*T+C,s=qc(D)*E+w),m=Gc(T,E)*Wc(Xc,Math.abs(O)),i=Kc(k)*T+C,a=qc(k)*E+w;break;case Lc.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Lc.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Lc.L&&v>0&&(e.lineTo(y,b),v=0),S){case Lc.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Lc.L:u=n[x++],d=n[x++];var w=Jc(u-c),T=Jc(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Lc.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],N=n[x++],P=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;$n(c,k,j,N,D,Rc),$n(l,A,M,P,D,zc),e.bezierCurveTo(Rc[1],zc[1],Rc[2],zc[2],Rc[3],zc[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case Lc.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;or(c,k,j,D,Rc),or(l,A,M,D,zc),e.quadraticCurveTo(Rc[1],zc[1],Rc[2],zc[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case Lc.A:var F=n[x++],ee=n[x++],I=n[x++],L=n[x++],R=n[x++],z=n[x++],te=n[x++],ne=!n[x++],re=I>L?I:L,B=Jc(I-L)>.001,ie=R+z,V=!1;if(f){var E=p[g++];h+E>_&&(ie=R+z*(_-h)/E,V=!0),h+=E}if(B&&e.ellipse?e.ellipse(F,ee,I,L,te,R,ie,ne):e.arc(F,ee,re,R,ie,ne),V)break lo;C&&(o=Kc(R)*I+F,s=qc(R)*L+ee),c=Kc(ie)*I+F,l=qc(ie)*L+ee;break;case Lc.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var ae=n[x++],H=n[x++];if(f){var E=p[g++];if(h+E>_){var U=_-h;e.moveTo(u,d),e.lineTo(u+Wc(U,ae),d),U-=ae,U>0&&e.lineTo(u+ae,d+Wc(U,H)),U-=H,U>0&&e.lineTo(u+Gc(ae-U,0),d+H),U-=ae,U>0&&e.lineTo(u,d+Gc(H-U,0));break lo}h+=E}e.rect(u,d,ae,H);break;case Lc.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Lc,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function nl(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function rl(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:er(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function il(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:sr(e,t,n,r,i,a,s,c,null)<=l/2}var al=Math.PI*2;function ol(e){return e%=al,e<0&&(e+=al),e}var sl=Math.PI*2;function cl(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%sl<1e-4)return!0;if(a){var d=r;r=ol(i),i=ol(d)}else r=ol(r),i=ol(i);r>i&&(i+=sl);var f=Math.atan2(c,s);return f<0&&(f+=sl),f>=r&&f<=i||f+sl>=r&&f+sl<=i}function ll(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var ul=tl.CMD,dl=Math.PI*2,fl=1e-4;function pl(e,t){return Math.abs(e-t)<fl}var ml=[-1,-1,-1],hl=[-1,-1];function gl(){var e=hl[0];hl[0]=hl[1],hl[1]=e}function _l(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Zn(t,r,a,s,l,ml);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=ml[h],_=g===0||g===1?.5:1;Yn(e,n,i,o,g)<c||(f<0&&(f=Qn(t,r,a,s,hl),hl[1]<hl[0]&&f>1&&gl(),p=Yn(t,r,a,s,hl[0]),f>1&&(m=Yn(t,r,a,s,hl[1]))),f===2?g<hl[0]?d+=p<t?_:-_:g<hl[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<hl[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function vl(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=ir(t,r,a,s,ml);if(c===0)return 0;var l=ar(t,r,a);if(l>=0&&l<=1){for(var u=0,d=nr(t,r,a,l),f=0;f<c;f++){var p=ml[f]===0||ml[f]===1?.5:1,m=nr(e,n,i,ml[f]);m<o||(ml[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=ml[0]===0||ml[0]===1?.5:1,m=nr(e,n,i,ml[0]);return m<o?0:a<t?p:-p}}function yl(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);ml[0]=-c,ml[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=dl-1e-4){r=0,i=dl;var u=a?1:-1;return o>=ml[0]+e&&o<=ml[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=dl,i+=dl);for(var f=0,p=0;p<2;p++){var m=ml[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=dl+h),(h>=r&&h<=i||h+dl>=r&&h+dl<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function bl(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===ul.M&&m>1&&(n||(s+=ll(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case ul.M:u=a[m++],d=a[m++],c=u,l=d;break;case ul.L:if(n){if(nl(c,l,a[m],a[m+1],t,r,i))return!0}else s+=ll(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case ul.C:if(n){if(rl(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=_l(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case ul.Q:if(n){if(il(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=vl(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case ul.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=ll(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(cl(_,v,b,x,x+S,C,t,w,i))return!0}else s+=yl(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case ul.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(nl(u,d,f,d,t,r,i)||nl(f,d,f,p,t,r,i)||nl(f,p,u,p,t,r,i)||nl(u,p,u,d,t,r,i))return!0}else s+=ll(f,d,f,p,r,i),s+=ll(u,p,u,d,r,i);break;case ul.Z:if(n){if(nl(c,l,u,d,t,r,i))return!0}else s+=ll(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!pl(l,d)&&(s+=ll(c,l,u,d,r,i)||0),s!==0}function xl(e,t,n){return bl(e,0,!1,t,n)}function Sl(e,t,n,r){return bl(e,t,!0,n,r)}var Cl=P({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hc),wl={style:P({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gc.style)},Tl=Ki.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),El=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Tl.length;++s)i[Tl[s]]=this[Tl[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=B(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?M(this.style,o):this.useStyle(o):a===`shape`?M(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(W(e)){var t=Fr(e,0);return t>.5?Ni:t>.2?Fi:Pi}else if(e)return Pi}return Ni},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(W(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Fr(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new tl(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Sl(a,o/s,e,t)))return!0}if(this.hasFill())return xl(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:M(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Ae(Cl,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=M({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=M({},r.shape),M(c,n.shape)):(c=M({},i?this.shape:r.shape),M(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=M({},this.shape);for(var l={},u=B(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return wl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){i(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return A(e.style)},n.prototype.getDefaultShape=function(){return A(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(yc),Dl=P({strokeFirst:!0,font:c,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Cl),Ol=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return pc(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Ae(Dl,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=dc(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(yc);Ol.prototype.type=`tspan`;var kl=P({x:0,y:0},hc),Al={style:P({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gc.style)};function jl(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Ml=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ae(kl,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=jl(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Al},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Qt(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(yc);Ml.prototype.type=`image`;function Nl(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Pl=Math.round;function Fl(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Pl(r*2)===Pl(i*2)&&(e.x1=e.x2=Ll(r,s,!0)),Pl(a*2)===Pl(o*2)&&(e.y1=e.y2=Ll(a,s,!0)),e):e}}function Il(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Ll(r,s,!0),e.y=Ll(i,s,!0),e.width=Math.max(Ll(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ll(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Ll(e,t,n){if(!t)return e;var r=Pl(e*2);return(r+Pl(t))%2==0?r/2:(r+(n?1:-1))/2}var Rl=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),zl={},Bl=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Rl},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Il(zl,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Nl(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(El);Bl.prototype.type=`rect`;var Vl={fill:`#000`},Hl=2,Ul={},Wl={style:P({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},gc.style)},Gl=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Vl,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Ql(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Qt(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Vl},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return M(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=B(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},M(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Wl},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;sc(Ul,r.overflowRect,i,a,o,s),i=Ul.baseX,a=Ul.baseY;var c=Zs(ru(e),e,Ul.outerWidth,Ul.outerHeight),l=iu(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=ia(a,c.contentHeight,s);if(l||n){var _=ra(i,f,o),v=ia(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=nu(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=tu(`fill`in e?e.fill:(x=!0,r.fill)),C=eu(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Hl,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Ol),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,Xl(D,e),g+=m,E.setBoundingRect(fc(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;sc(Ul,t.overflowRect,i,a,n,r),i=Ul.baseX,a=Ul.baseY;var o=tc(ru(e),e,Ul.outerWidth,Ul.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=ra(i,c,n),f=ia(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;iu(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&iu(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=nu(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Ol),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=tu(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=eu(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Hl,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=ge(s.opacity,t.opacity,1),Xl(p,s),y&&(p.lineWidth=ge(s.lineWidth,t.lineWidth,g),p.lineDash=G(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(fc(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Bl),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=G(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Ml),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=G(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=ge(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Zl(e)&&(t=[e.fontStyle,e.fontWeight,Yl(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&be(t)||e.textFont||e.font},t}(yc),Kl={left:!0,right:1,center:1},ql={top:1,bottom:1,middle:1},Jl=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Yl(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function Xl(e,t){for(var n=0;n<Jl.length;n++){var r=Jl[n],i=t[r];i!=null&&(e[r]=i)}}function Zl(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Ql(e){return $l(e),R(e.rich,$l),e}function $l(e){if(e){e.font=Gl.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Kl[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||ql[n]?n:`top`,e.padding&&=ve(e.padding)}}function eu(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function tu(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function nu(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function ru(e){var t=e.text;return t!=null&&(t+=``),t}function iu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var au=Yo(),ou=function(e,t,n,r){if(r){var i=au(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=au(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},su=Oe([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),cu=`original`,lu=`arrayRows`,uu=`objectRows`,du=`keyedColumns`,fu=`typedArray`,pu=`unknown`,mu=`column`,hu=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],gu=function(){function e(e){R(hu,function(t){this[t]=V(e[t],e)},this)}return e}();function _u(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var vu=1,yu={},bu=Yo(),xu=Yo(),Su=[`emphasis`,`blur`,`select`],Cu=[`normal`,`emphasis`,`blur`,`select`],wu=`highlight`,Tu=`downplay`,Eu=`select`,Du=`unselect`,Ou=`toggleSelect`,ku=`selectchanged`;function Au(e){return e!=null&&e!==`none`}function ju(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Mu(e){ju(e,`emphasis`,2)}function Nu(e){e.hoverState===2&&ju(e,`normal`,0)}function Pu(e){ju(e,`blur`,1)}function Fu(e){e.hoverState===1&&ju(e,`normal`,0)}function Iu(e){e.selected=!0}function Lu(e){e.selected=!1}function Ru(e,t,n){t(e,n)}function zu(e,t,n){Ru(e,t,n),e.isGroup&&e.traverse(function(e){Ru(e,t,n)})}function Bu(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Vu(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Hu(e,t,n,r){var i=n&&F(n,`select`)>=0,a=!1;if(e instanceof El){var o=bu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Au(s)||Au(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=M({},r),l=M({},l),l.fill=s):!Au(l.fill)&&Au(s)?(a=!0,r=M({},r),l=M({},l),l.fill=Lr(s)):!Au(l.stroke)&&Au(c)&&(a||(r=M({},r),l=M({},l)),l.stroke=Lr(c)),r.style=l}}if(r&&r.z2==null){a||(r=M({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Uu(e,t,n){if(n&&n.z2==null){n=M({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Wu(e,t,n){var r=F(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Vu(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=M({},n),o=M({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Gu(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Hu(this,e,t,n);if(e===`blur`)return Wu(this,e,n);if(e===`select`)return Uu(this,e,n)}return n}function Ku(e){e.stateProxy=Gu;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Gu),n&&(n.stateProxy=Gu)}function qu(e,t){!td(e,t)&&!e.__highByOuter&&zu(e,Mu)}function Ju(e,t){!td(e,t)&&!e.__highByOuter&&zu(e,Nu)}function Yu(e,t){e.__highByOuter|=1<<(t||0),zu(e,Mu)}function Xu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&zu(e,Nu)}function Zu(e){zu(e,Pu)}function Qu(e){zu(e,Fu)}function $u(e){zu(e,Iu)}function ed(e){zu(e,Lu)}function td(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function nd(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=xu(i),o=_u(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Fu(e)}),s&&n.push(i)),a.isBlured=!1}),R(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function rd(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Qu(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Pu(e)}),L(t))a(e.getData(),t);else if(ce(t))for(var u=B(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),xu(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function id(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){xu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Pu(e)})}}}function ad(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Jo(i,t);a=(H(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=au(o);rd(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&rd(r,u,d,n)}}}function od(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(au(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function sd(e,t,n){var r=au(e),i=od(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&id(r.componentMainType,r.componentIndex,n),R(a,function(e){return qu(e,t)})):(rd(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&id(r.componentMainType,r.componentIndex,n),qu(e,t))}function cd(e,t,n){nd(n);var r=au(e),i=od(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?R(i,function(e){return Ju(e,t)}):Ju(e,t)}function ld(e,t,n){if(Sd(t)){var r=t.dataType,i=Jo(e.getData(r),t);H(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function ud(e){R(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?$u(t):ed(t)})})}function dd(e){var t=[];return e.eachSeries(function(e){R(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function fd(e,t,n){yd(e,!0),zu(e,Ku),hd(e,t,n)}function pd(e){yd(e,!1)}function md(e,t,n,r){r?pd(e):fd(e,t,n)}function hd(e,t,n){var r=au(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var gd=[`emphasis`,`blur`,`select`],_d={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function vd(e,t,n,r){n||=`itemStyle`;for(var i=0;i<gd.length;i++){var a=gd[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[_d[n]]()}}function yd(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function bd(e){return!!(e&&e.__highDownDispatcher)}function xd(e){var t=yu[e];return t==null&&vu<=32&&(t=yu[e]=vu++),t}function Sd(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Cd(e){var t=e.type;return t===`highlight`||t===`downplay`}function wd(e){var t=bu(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Td=tl.CMD,Ed=[[],[],[]],Dd=Math.sqrt,Od=Math.atan2;function kd(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Td.M,d=Td.C,f=Td.L,p=Td.R,m=Td.A,h=Td.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Dd(t[0]*t[0]+t[1]*t[1]),y=Dd(t[2]*t[2]+t[3]*t[3]),b=Od(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Ye(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Ye(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Ed[c];x[0]=n[o++],x[1]=n[o++],Ye(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Ad=Math.sqrt,jd=Math.sin,Md=Math.cos,Nd=Math.PI;function Pd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Fd(e,t){return(e[0]*t[0]+e[1]*t[1])/(Pd(e)*Pd(t))}function Id(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Fd(e,t))}function Ld(e,t,n,r,i,a,o,s,c,l,u){var d=Nd/180*c,f=Md(d)*(e-n)/2+jd(d)*(t-r)/2,p=-1*jd(d)*(e-n)/2+Md(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Ad(m),s*=Ad(m));var h=(i===a?-1:1)*Ad((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Md(d)*g-jd(d)*_,y=(t+r)/2+jd(d)*g+Md(d)*_,b=Id([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Id(x,S);if(Fd(x,S)<=-1&&(C=Nd),Fd(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Nd*1e6)/1e6;C=Nd*2+w%2*Nd}u.addData(l,v,y,o,s,b,C,d,a)}var Rd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,zd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Bd(e){var t=new tl;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=tl.CMD,c=e.match(Rd);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(zd)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Ld(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Ld(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Vd=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(El);function Hd(e){return e.setData!=null}function Ud(e,t){var n=Bd(e),r=M({},t);return r.buildPath=function(e){var t=Hd(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){kd(n,e),this.dirtyShape()},r}function Wd(e,t){return new Vd(Ud(e,t))}function Gd(e,t){var n=Ud(e,t);return function(e){i(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Vd)}function Kd(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new El(t);return o.createPathProxy(),o.buildPath=function(e){if(Hd(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var qd=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Jd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new qd},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(El);Jd.prototype.type=`circle`;var Yd=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Xd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Yd},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(El);Xd.prototype.type=`ellipse`;var Zd=Math.PI,Qd=Zd*2,$d=Math.sin,ef=Math.cos,tf=Math.acos,nf=Math.atan2,rf=Math.abs,af=Math.sqrt,of=Math.max,sf=Math.min,cf=1e-4;function lf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<cf))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function uf(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/af(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*af(of(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function df(e){var t;if(H(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function ff(e,t){var n,r=of(t.r,0),i=of(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=rf(c-s),p=f>Qd&&f%Qd;if(p>cf&&(f=p),!(r>cf))e.moveTo(l,u);else if(f>Qd-cf)e.moveTo(l+r*ef(s),u+r*$d(s)),e.arc(l,u,r,s,c,!d),i>cf&&(e.moveTo(l+i*ef(c),u+i*$d(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*ef(s),j=r*$d(s),M=i*ef(c),N=i*$d(c),P=f>cf;if(P){var F=t.cornerRadius;F&&(n=df(F),m=n[0],h=n[1],g=n[2],_=n[3]);var ee=rf(r-i)/2;if(v=sf(ee,g),y=sf(ee,_),b=sf(ee,m),x=sf(ee,h),w=S=of(v,y),T=C=of(b,x),(S>cf||C>cf)&&(E=r*ef(c),D=r*$d(c),O=i*ef(s),k=i*$d(s),f<Zd)){var I=lf(A,j,O,k,E,D,M,N);if(I){var L=A-I[0],R=j-I[1],z=E-I[0],te=D-I[1],ne=1/$d(tf((L*z+R*te)/(af(L*L+R*R)*af(z*z+te*te)))/2),re=af(I[0]*I[0]+I[1]*I[1]);w=sf(S,(r-re)/(ne+1)),T=sf(C,(i-re)/(ne-1))}}}if(!P)e.moveTo(l+A,u+j);else if(w>cf){var B=sf(g,w),ie=sf(_,w),V=uf(O,k,A,j,r,B,d),ae=uf(E,D,M,N,r,ie,d);e.moveTo(l+V.cx+V.x0,u+V.cy+V.y0),w<S&&B===ie?e.arc(l+V.cx,u+V.cy,w,nf(V.y0,V.x0),nf(ae.y0,ae.x0),!d):(B>0&&e.arc(l+V.cx,u+V.cy,B,nf(V.y0,V.x0),nf(V.y1,V.x1),!d),e.arc(l,u,r,nf(V.cy+V.y1,V.cx+V.x1),nf(ae.cy+ae.y1,ae.cx+ae.x1),!d),ie>0&&e.arc(l+ae.cx,u+ae.cy,ie,nf(ae.y1,ae.x1),nf(ae.y0,ae.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>cf)||!P)e.lineTo(l+M,u+N);else if(T>cf){var B=sf(m,T),ie=sf(h,T),V=uf(M,N,E,D,i,-ie,d),ae=uf(A,j,O,k,i,-B,d);e.lineTo(l+V.cx+V.x0,u+V.cy+V.y0),T<C&&B===ie?e.arc(l+V.cx,u+V.cy,T,nf(V.y0,V.x0),nf(ae.y0,ae.x0),!d):(ie>0&&e.arc(l+V.cx,u+V.cy,ie,nf(V.y0,V.x0),nf(V.y1,V.x1),!d),e.arc(l,u,i,nf(V.cy+V.y1,V.cx+V.x1),nf(ae.cy+ae.y1,ae.cx+ae.x1),d),B>0&&e.arc(l+ae.cx,u+ae.cy,B,nf(ae.y1,ae.x1),nf(ae.y0,ae.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var pf=function(){function e(){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 e}(),mf=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new pf},t.prototype.buildPath=function(e,t){ff(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(El);mf.prototype.type=`sector`;var hf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),gf=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new hf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(El);gf.prototype.type=`ring`;function _f(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Xe(u,u,e[f]),Ze(d,d,e[f]);Xe(u,u,r[0]),Ze(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Ie(e[f]));continue}else c=e[f-1],l=e[f+1];ze(a,l,c),He(a,a,t);var h=We(m,c),g=We(m,l),_=h+g;_!==0&&(h/=_,g/=_),He(o,a,-h),He(s,a,g);var v=Re([],m,o),y=Re([],m,s);r&&(Ze(v,v,u),Xe(v,v,d),Ze(y,y,u),Xe(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function vf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=_f(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var yf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),bf=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new yf},t.prototype.buildPath=function(e,t){vf(e,t,!0)},t}(El);bf.prototype.type=`polygon`;var xf=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Sf=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new xf},t.prototype.buildPath=function(e,t){vf(e,t,!1)},t}(El);Sf.prototype.type=`polyline`;var Cf={},wf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Tf=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new wf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Fl(Cf,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(El);Tf.prototype.type=`line`;var Ef=[],Df=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Of(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Xn:Yn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Xn:Yn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?rr:nr)(e.x1,e.cpx1,e.x2,t),(n?rr:nr)(e.y1,e.cpy1,e.y2,t)]}var kf=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Df},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(or(n,o,i,u,Ef),o=Ef[1],i=Ef[2],or(r,s,a,u,Ef),s=Ef[1],a=Ef[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&($n(n,o,c,i,u,Ef),o=Ef[1],c=Ef[2],i=Ef[3],$n(r,s,l,a,u,Ef),s=Ef[1],l=Ef[2],a=Ef[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Of(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Of(this.shape,e,!0);return Ue(t,t)},t}(El);kf.prototype.type=`bezier-curve`;var Af=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),jf=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Af},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(El);jf.prototype.type=`arc`;var Mf=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),El.prototype.getBoundingRect.call(this)},t}(El),Nf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Pf=function(e){i(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Nf),Ff=function(e){i(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Nf),If=Math.min,Lf=Math.max,Rf=Math.abs,zf=[0,0],Bf=[0,0],Vf=un(),Hf=Vf.minTv,Uf=Vf.maxTv,Wf=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Rt;for(var n=0;n<2;n++)this._axes[n]=new Rt;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Rt.sub(r[0],n[1],n[0]),Rt.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Rt.set(t,0,0),Vf.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Vf.negativeSize&&Rt.copy(t,r?Vf.useDir?Vf.dirMinTv:Hf:Uf),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,zf),e._getProjMinMaxOnAxis(a,t._corners,Bf),Vf.negativeSize||zf[1]<Bf[0]||zf[0]>Bf[1]){if(i=!1,Vf.negativeSize||n)return i;var s=Rf(Bf[0]-zf[1]),c=Rf(zf[0]-Bf[1]);If(s,c)>Uf.len()&&(s<c?Rt.scale(Uf,o,-s*r):Rt.scale(Uf,o,c*r))}else if(!n){var s=Rf(Bf[0]-zf[1]),c=Rf(zf[0]-Bf[1]);(Vf.useDir||If(s,c)<Hf.len())&&((s<c||!Vf.bidirectional)&&(Rt.scale(Hf,o,s*r),Vf.useDir&&Vf.calcDirMTV()),(s>=c||!Vf.bidirectional)&&(Rt.scale(Hf,o,-c*r),Vf.useDir&&Vf.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=If(l,o),s=Lf(l,s)}n[0]=o+Vf.touchThreshold,n[1]=s-Vf.touchThreshold,Vf.negativeSize=n[1]<n[0]},e}(),Gf=[],Kf=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Qt(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Gf)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(yc),qf=Yo();function Jf(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=G(r.duration,200),u=G(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),U(d)&&(d=d(n,i)),U(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function Yf(e,t,n,r,i,a,o){var s=!1,c;U(i)?(o=a,a=i,i=null):ce(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Jf(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Xf(e,t,n,r,i,a){Yf(`update`,e,t,n,r,i,a)}function Zf(e,t,n,r,i,a){Yf(`enter`,e,t,n,r,i,a)}function Qf(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function $f(e,t,n,r,i,a){Qf(e)||Yf(`leave`,e,t,n,r,i,a)}function ep(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),$f(e,{style:{opacity:0}},t,n,r)}function tp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||ep(e,t,n,r)}):ep(e,t,n,r)}function np(e){qf(e).oldStyle=e.style}var rp=t({Arc:()=>jf,BezierCurve:()=>kf,BoundingRect:()=>Qt,Circle:()=>Jd,CompoundPath:()=>Mf,Ellipse:()=>Xd,Group:()=>Ta,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Ml,IncrementalDisplayable:()=>Kf,Line:()=>Tf,LinearGradient:()=>Pf,OrientedBoundingRect:()=>Wf,Path:()=>El,Point:()=>Rt,Polygon:()=>bf,Polyline:()=>Sf,RadialGradient:()=>Ff,Rect:()=>Bl,Ring:()=>gf,Sector:()=>mf,Text:()=>Gl,WH:()=>op,XY:()=>ap,applyTransform:()=>xp,calcZ2Range:()=>Wp,clipPointsByRect:()=>Ep,clipRectByRect:()=>Dp,createIcon:()=>Op,decomposeTransform:()=>Jp,ensureCopyRect:()=>Vp,ensureCopyTransform:()=>Hp,expandOrShrinkRect:()=>Np,extendPath:()=>lp,extendShape:()=>sp,getCurrentCanvasPainter:()=>Xp,getShapeClass:()=>dp,getTransform:()=>bp,groupTransition:()=>Tp,initProps:()=>Zf,isBoundingRectAxisAligned:()=>zp,isElementRemoved:()=>Qf,lineLineIntersect:()=>Ap,linePolygonIntersect:()=>kp,makeImage:()=>pp,makePath:()=>fp,mergePath:()=>hp,payloadDisableAnimation:()=>qp,registerShape:()=>up,removeElement:()=>$f,removeElementWithFadeOut:()=>tp,resizePath:()=>gp,retrieveZInfo:()=>Up,setTooltipConfig:()=>Ip,subPixelOptimize:()=>yp,subPixelOptimizeLine:()=>_p,subPixelOptimizeRect:()=>vp,transformDirection:()=>Sp,traverseElements:()=>Rp,traverseUpdateZ:()=>Gp,updateProps:()=>Xf}),ip={},ap=[`x`,`y`],op=[`width`,`height`];function sp(e){return El.extend(e)}var cp=Gd;function lp(e,t){return cp(e,t)}function up(e,t){ip[e]=t}function dp(e){if(ip.hasOwnProperty(e))return ip[e]}function fp(e,t,n,r){var i=Wd(e,t);return n&&(r===`center`&&(n=mp(n,i.getBoundingRect())),gp(i,n)),i}function pp(e,t,n){var r=new Ml({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(mp(t,i))}}});return r}function mp(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var hp=Kd;function gp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function _p(e,t){return Fl(e,e,{lineWidth:t}),e}function vp(e,t){return Il(e,e,t),e}var yp=Ll;function bp(e,t){for(var n=jt([]);e&&e!==t;)Nt(n,e.getLocalTransform(),n),e=e.parent;return n}function xp(e,t,n){return t&&!L(t)&&(t=Ui.getLocalTransform(t)),n&&(t=Lt([],t)),Ye([],e,t)}function Sp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Ra(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Ra(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=xp(a,t,n),Ra(a[0])>Ra(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Cp(e){return!e.isGroup}function wp(e){return e.shape!=null}function Tp(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Cp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return wp(e)&&(t.shape=A(e.shape)),t}var a=r(e);t.traverse(function(e){if(Cp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Xf(e,r,n,au(e).dataIndex)}}})}function Ep(e,t){return z(e,function(e){var n=e[0];n=La(n,t.x),n=Ia(n,t.x+t.width);var r=e[1];return r=La(r,t.y),r=Ia(r,t.y+t.height),[n,r]})}function Dp(e,t){var n=La(e.x,t.x),r=Ia(e.x+e.width,t.x+t.width),i=La(e.y,t.y),a=Ia(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Op(e,t,n){var r=M({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),P(i,n),new Ml(r)):fp(e.replace(`path://`,``),r,n,`center`)}function kp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Ap(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Ap(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=jp(u,d,c,l);if(Mp(f))return!1;var p=e-i,m=t-a,h=jp(p,m,c,l)/f;if(h<0||h>1)return!1;var g=jp(p,m,u,d)/f;return!(g<0||g>1)}function jp(e,t,n,r){return e*r-n*t}function Mp(e){return e<=1e-6&&e>=-1e-6}function Np(e,t,n,r,i){return t==null?e:(se(t)?Pp[0]=Pp[1]=Pp[2]=Pp[3]=t:(Pp[0]=t[0],Pp[1]=t[1],Pp[2]=t[2],Pp[3]=t[3]),r&&(Pp[0]=La(0,Pp[0]),Pp[1]=La(0,Pp[1]),Pp[2]=La(0,Pp[2]),Pp[3]=La(0,Pp[3])),n&&(Pp[0]=-Pp[0],Pp[1]=-Pp[1],Pp[2]=-Pp[2],Pp[3]=-Pp[3]),Fp(e,Pp,`x`,`width`,3,1,i&&i[0]||0),Fp(e,Pp,`y`,`height`,0,2,i&&i[1]||0),e)}var Pp=[0,0,0,0];function Fp(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=La(0,Ia(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Ra(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Ip(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=W(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&R(B(c),function(e){K(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=au(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:P({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Lp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Rp(e,t){if(e)if(H(e))for(var n=0;n<e.length;n++)Lp(e[n],t);else Lp(e,t)}function zp(e){return!e||Ra(e[1])<Bp&&Ra(e[2])<Bp||Ra(e[0])<Bp&&Ra(e[3])<Bp}var Bp=1e-5;function Vp(e,t){return e?Qt.copy(e,t):t.clone()}function Hp(e,t){return t?Mt(e||At(),t):void 0}function Up(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Wp(e){var t=-1/0,n=1/0;Lp(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function Gp(e,t,n){Kp(e,t,n,-1/0)}function Kp(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=La(Kp(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=La(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function qp(e){return e.animation={duration:0},e}function Jp(e,t){return t?Mt(Yp.transform,t):jt(Yp.transform),Yp.decomposeTransform(),qi(e,Yp),e}var Yp=new Ui;Yp.transform=At();function Xp(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}up(`circle`,Jd),up(`ellipse`,Xd),up(`sector`,mf),up(`ring`,gf),up(`polygon`,bf),up(`polyline`,Sf),up(`rect`,Bl),up(`line`,Tf),up(`bezierCurve`,kf),up(`arc`,jf);var Zp={};function Qp(e,t){for(var n=0;n<Su.length;n++){var r=Su[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function $p(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=U(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Su.length;l++){var u=Su[l],d=t[u];c[u]=G(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function em(e,t,n,r){n||=Zp;for(var i=e instanceof Gl,a=!1,o=0;o<Cu.length;o++){var s=t[Cu[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Gl,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=$p(n,t),u=t.normal,d=!!u.getShallow(`show`),f=nm(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(rm(u,n,!1));for(var o=0;o<Su.length;o++){var p=Su[o],s=t[p];if(s){var m=c.ensureState(p),h=!!G(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=nm(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=rm(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(dm(c).setLabelText=function(e){var r=$p(n,t,e);Qp(c,r)})}else c&&(c.ignore=!0);e.dirty()}function tm(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Su.length;r++){var i=Su[r];n[i]=e.getModel([i,t])}return n}function nm(e,t,n,r,i){var a={};return im(a,e,n,r,i),t&&M(a,t),a}function rm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=G(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function im(e,t,n,r,i){n||=Zp;var a=t.ecModel,o=a&&a.option.textStyle,s=am(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=G(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);lm(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=se(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=mm.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=ve(_),h.__marginType=mm.textMargin)}lm(e,t,o,null,null,n,r,i,!0,!1)}function am(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Zp).rich;if(n){t||={};for(var r=B(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var om=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],sm=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],cm=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function lm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||Zp;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=G(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=G(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=G(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=G(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<om.length;_++){var v=om[_],y=i!==!1&&r?ge(t.getShallow(v),r.getShallow(v),n[v]):G(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<sm.length;_++){var v=sm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<cm.length;_++){var v=cm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function um(e,t){var n=t&&t.getModel(`textStyle`);return be([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var dm=Yo();function fm(e,t,n,r){if(e){var i=dm(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function pm(e,t,n,r,i){var a=dm(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=G(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=as(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,Qp(e,$p({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?Zf:Xf)(e,{percent:1},r,t,null,l)}var mm={minMargin:1,textMargin:2},hm=[`textStyle`,`color`],gm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],_m=new Gl,vm=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(hm):null)},e.prototype.getFont=function(){return um({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<gm.length;n++)t[gm[n]]=this.getShallow(gm[n]);return _m.useStyle(t),_m.update(),_m.getBoundingRect()},e}(),ym=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],bm=Rs(ym),xm=function(){function e(){}return e.prototype.getLineStyle=function(e){return bm(this,e)},e}(),Sm=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Cm=Rs(Sm),wm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Cm(this,e,t)},e}(),Tm=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){j(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(A(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!o.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();As(Tm),Ps(Tm),I(Tm,xm),I(Tm,wm),I(Tm,Bs),I(Tm,vm);var Em=Math.round(Math.random()*10);function Dm(e){return[e||``,Em++].join(`_`)}function Om(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Ds(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Ds(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function km(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(R(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),R(u.successor,d?p:f)}R(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return R(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),R(c,function(e){F(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);F(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return R(e,function(e){F(t,e)>=0&&n.push(e)}),n}}function Am(e,t){return j(j({},e,!0),t,!0)}var jm={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:`. `}}}},Mm={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:``}}}},Nm=`ZH`,Pm=`EN`,Fm=Pm,Im={},Lm={},Rm=o.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Fm).toUpperCase().indexOf(Nm)>-1?Nm:Fm}():Fm;function zm(e,t){e=e.toUpperCase(),Lm[e]=new Tm(t),Im[e]=t}function Bm(e){if(W(e)){var t=Im[e.toUpperCase()]||{};return e===Nm||e===Pm?A(t):j(A(t),A(Im[Fm]),!1)}else return j(A(e),A(Im[Fm]),!1)}function Vm(e){return Lm[e]}function Hm(){return Lm[Fm]}zm(Pm,jm),zm(Nm,Mm);var Um=null;function Wm(){return Um}function Gm(e,t){var n=Wm(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Km(e){var t=e.brk;return t?t.breaks:[]}function qm(e){var t=e.brk;return t?t.hasBreaks():!1}var Jm=1e3,Ym=Jm*60,Xm=Ym*60,Zm=Xm*24,Qm=Zm*365,$m={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},eh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},th=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,nh=`{yyyy}-{MM}-{dd}`,rh={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:nh,hour:nh+` `+eh.hour,minute:nh+` `+eh.minute,second:nh+` `+eh.second,millisecond:th},ih=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],ah=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function oh(e){return!W(e)&&!U(e)?sh(e):e}function sh(e){e||={};var t={},n=!0;return R(ih,function(t){n&&=e[t]==null}),R(ih,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=ih[s],l=ce(a)&&!H(a)?a[c]:a,u=void 0;H(l)?(u=l.slice(),o=u[0]||``):W(l)?(o=l,u=[o]):(o==null?o=eh[r]:$m[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function ch(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function lh(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function uh(e){return e===lh(e)}function dh(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function fh(e,t,n,r){var i=lo(e),a=i[gh(n)](),o=i[_h(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[vh(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[yh(n)](),d=(u-1)%12+1,f=i[bh(n)](),p=i[xh(n)](),m=i[Sh(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Tm?r:Vm(r||Rm)||Hm()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,ch(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,ch(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,ch(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,ch(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,ch(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,ch(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,ch(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,ch(m,3)).replace(/{S}/g,m+``)}function ph(e,t,n,r,i){var a=null;if(W(n))a=n;else if(U(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Wm();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=mh(e.value,i);a=n[u][u][0]}}return fh(new Date(e.value),a,i,r)}function mh(e,t){var n=lo(e),r=n[_h(t)]()+1,i=n[vh(t)](),a=n[yh(t)](),o=n[bh(t)](),s=n[xh(t)](),c=n[Sh(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function hh(e,t,n){switch(t){case`year`:e[wh(n)](0);case`month`:e[Th(n)](1);case`day`:e[Eh(n)](0);case`hour`:e[Dh(n)](0);case`minute`:e[Oh(n)](0);case`second`:e[kh(n)](0)}return e}function gh(e){return e?`getUTCFullYear`:`getFullYear`}function _h(e){return e?`getUTCMonth`:`getMonth`}function vh(e){return e?`getUTCDate`:`getDate`}function yh(e){return e?`getUTCHours`:`getHours`}function bh(e){return e?`getUTCMinutes`:`getMinutes`}function xh(e){return e?`getUTCSeconds`:`getSeconds`}function Sh(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Ch(e){return e?`setUTCFullYear`:`setFullYear`}function wh(e){return e?`setUTCMonth`:`setMonth`}function Th(e){return e?`setUTCDate`:`setDate`}function Eh(e){return e?`setUTCHours`:`setHours`}function Dh(e){return e?`setUTCMinutes`:`setMinutes`}function Oh(e){return e?`setUTCSeconds`:`setSeconds`}function kh(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Ah(e){if(!ho(e))return W(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function jh(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Mh=ve;function Nh(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&be(e)?e:`-`}function a(e){return yo(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?lo(e):e;if(!isNaN(+c))return fh(c,r,n);if(s)return`-`}if(t===`ordinal`)return oe(e)?i(e):se(e)&&a(e)?e+``:`-`;var l=mo(e);return a(l)?Ah(l):oe(e)?i(e):typeof e==`boolean`?e+``:`-`}var Ph=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Fh=function(e,t){return`{`+e+(t??``)+`}`};function Ih(e,t,n){H(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Ph[a];e=e.replace(Fh(o),Fh(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Fh(Ph[c],s),n?mt(l):l)}return e}function Lh(e,t){var n=W(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?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:`+mt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+mt(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Rh(e,t){return t||=`transparent`,W(e)?e:ce(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function zh(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Bh={},Vh={},Hh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Bh,!0),this._normalMasterList=n(Vh,!1);function n(n,r){var i=[];return R(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){R(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Bh[e]=t;return}Vh[e]=t},e.get=function(e){return Vh[e]||Bh[e]},e}();function Uh(e){return!!Bh[e]}function Wh(e){Gh.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Gh=Oe();function Kh(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Gh.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function qh(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!Uh(n)&&(i=0))}return{coordSysType:n,kind:i}}function Jh(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=qh(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var Yh=R,Xh=[`left`,`right`,`top`,`bottom`,`width`,`height`],Zh=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Qh(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var $h=Qh;ae(Qh,`vertical`),ae(Qh,`horizontal`);function eg(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function tg(e,t){var n=ag(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===ig.point)a=n.refPoint,i=rg(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=H(o)?o:[o,o];i=rg(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[Ja(s[0],i.width)+i.x,Ja(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function ng(e,t){var n=tg(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);H(a)||(a=[0,a]);var o=Ja(r.width,t.getWidth()),s=Ja(r.height,t.getHeight()),c=Math.min(o,s),l=Ja(a[0],c/2),u=Ja(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function rg(e,t,n){n=Mh(n||0);var r=t.width,i=t.height,a=Ja(e.left,r),o=Ja(e.top,i),s=Ja(e.right,r),c=Ja(e.bottom,i),l=Ja(e.width,r),u=Ja(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Qt((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var ig={rect:1,point:2};function ag(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Kh(e),l=c.coord,u=c.from;if(o.dataToLayout){a=ig.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=ig.point,s=u,i=o.dataToPoint(l))}return a??=ig.rect,a===ig.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function og(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new Qt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=rg(P({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function sg(e){var t=e.layoutMode||e.constructor.layoutMode;return ce(t)?t:t?{type:t}:null}function cg(e,t,n){var r=n&&n.ignoreSize;!H(r)&&(r=[r,r]);var i=o(Zh[0],0),a=o(Zh[1],1);c(Zh[0],e,i),c(Zh[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Yh(n,function(t){c[t]=e[t]}),Yh(n,function(e){K(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!K(a,f)&&K(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){Yh(e,function(e){t[e]=n[e]})}}function lg(e){return ug({},e)}function ug(e,t){return t&&e&&Yh(Xh,function(n){K(t,n)&&(e[n]=t[n])}),e}var dg=Yo(),fg=function(e){i(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Dm(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=sg(this),r=n?lg(e):{};j(e,t.getTheme().get(this.mainType)),j(e,this.getDefaultOption()),n&&cg(e,r,n)},t.prototype.mergeOption=function(e,t){j(this.option,e,!0);var n=sg(this);n&&cg(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!ks(e))return e.defaultOption;var t=dg(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=j(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return es(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return eg(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Tm);Ms(fg,Tm),Ls(fg),Om(fg),km(fg,pg);function pg(e){var t=[];return R(fg.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return Ds(e).main}),e!==`dataset`&&F(t,`dataset`)<=0&&t.unshift(`dataset`),t}var q={color:{},darkColor:{},size:{}},mg=q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var hg in M(mg,{primary:mg.neutral80,secondary:mg.neutral70,tertiary:mg.neutral60,quaternary:mg.neutral50,disabled:mg.neutral20,border:mg.neutral30,borderTint:mg.neutral20,borderShade:mg.neutral40,background:mg.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:mg.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:mg.neutral70,axisLineTint:mg.neutral40,axisTick:mg.neutral70,axisTickMinor:mg.neutral60,axisLabel:mg.neutral70,axisSplitLine:mg.neutral15,axisMinorSplitLine:mg.neutral05}),mg)if(mg.hasOwnProperty(hg)){var gg=mg[hg];hg===`theme`?q.darkColor.theme=mg.theme.slice():hg===`highlight`?q.darkColor.highlight=`rgba(255,231,130,0.4)`:hg.indexOf(`accent`)===0?q.darkColor[hg]=Nr(gg,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):q.darkColor[hg]=Nr(gg,null,function(e){return e*.9},function(e){return 1-e**1.5})}q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var _g=``;typeof navigator<`u`&&(_g=navigator.platform||``);var vg=`rgba(0, 0, 0, 0.2)`,yg=q.color.theme[0],bg=Nr(yg,null,null,.9),xg={darkMode:`auto`,colorBy:`series`,color:q.color.theme,gradientColor:[bg,yg],aria:{decal:{decals:[{color:vg,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:vg,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:vg,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:vg,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:vg,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:vg,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_g.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},Sg={Must:1,Might:2,Not:3},Cg=Yo();function wg(e){Cg(e).datasetMap=Oe()}function Tg(e,t,n){var r={},i=Dg(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Cg(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),R(e,function(t,n){var i=ce(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});R(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Eg(e,t,n){var r={};if(!Dg(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&R(a,function(e,t){(ce(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Ag(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===Sg.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===Sg.Not)&&(e.n=c),f(e)&&s[e.n]!==Sg.Not)return e;d||(u===Sg.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Dg(e){if(!e.get(`data`,!0))return es(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},$o).models[0]}function Og(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:es(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},$o).models}function kg(e,t){return Ag(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Ag(e,t,n,r,i,a){var o,s=5;if(ue(e))return Sg.Not;var c,l;if(r){var u=r[a];ce(u)?(c=u.name,l=u.type):W(u)&&(c=u)}if(l!=null)return l===`ordinal`?Sg.Must:Sg.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Sg.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Sg.Not;var f=_[c];if(!f||ue(f))return Sg.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Mo(g);if(!H(y))return Sg.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=W(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?Sg.Might:Sg.Not;if(t&&e!==`-`)return Sg.Must}return Sg.Not}var jg=Oe();function Mg(e,t,n){var r=jg.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var Ng=Yo();Yo();var Pg=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=ko(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Ig(this,Ng,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Lg(this,Ng)},e}();function Fg(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Ig(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Fg(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Lg(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Rg,zg,Bg,Vg=`\0_ec_inner`,Hg=1,Ug=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Tm(r),this._locale=new Tm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=Jg(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Jg(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?Bg(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&R(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=Oe(),s=t&&t.replaceMergeMainTypeMap;wg(this),R(e,function(e,t){e!=null&&(fg.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?A(e):j(n[t],e,!0))}),s&&s.each(function(e,t){fg.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),fg.topologicalTravel(a,fg.getAllClassMainTypes(),c,this);function c(t){var a=Mg(this,t,ko(e[t])),o=r.get(t),c=Po(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Ko(c,t,fg),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;R(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=fg.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=M({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),M(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Rg(this)}this._seriesIndices||Rg(this)},t.prototype.getOption=function(){var e=A(this.option);return R(e,function(t,n){if(fg.hasClass(n)){for(var r=ko(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Go(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Vg],e},t.prototype.setTheme=function(e){this._theme=new Tm(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?ne(a,function(e){return!!e}):Kg(`name`,i,a):Kg(`id`,r,a):(o=[],R(ko(n),function(e){a[e]&&o.push(a[e])})),qg(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(qg(r?this.queryComponents(r):ne(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?ne(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(U(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=W(e)?r.get(e):ce(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Uo(e,null);return ne(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return ne(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return ne(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){zg(this),R(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){R(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){zg(this),R(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return R(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return zg(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){zg(this);var n=[];R(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Oe(n)},t.prototype.restoreData=function(e){Rg(this);var t=this._componentsMap,n=[];t.each(function(e,t){fg.hasClass(t)&&n.push(t)}),fg.topologicalTravel(n,fg.getAllClassMainTypes(),function(n){R(t.get(n),function(t){t&&(n!==`series`||!Wg(t,e))&&t.restoreData()})})},t.internalField=function(){Rg=function(e){var t=e._seriesIndices=[];R(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Oe(t)},zg=function(e){},Bg=function(e,t){e.option={},e.option[Vg]=Hg,e._componentsMap=Oe({series:[]}),e._componentsCount=Oe();var n=t.aria;ce(n)&&n.enabled==null&&(n.enabled=!0),Gg(t,e._theme.option),j(t,xg,!1),e._mergeOption(t,null)}}(),t}(Tm);function Wg(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Gg(e,t){var n=e.color&&!e.colorLayer;R(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||fg.hasClass(r)||(typeof t==`object`?e[r]=e[r]?j(e[r],t,!1):A(t):e[r]??(e[r]=t))})}function Kg(e,t,n){if(H(t)){var r=Oe();return R(t,function(e){e!=null&&Uo(e,null)!=null&&r.set(e,!0)}),ne(n,function(t){return t&&r.get(t[e])})}else{var i=Uo(t,null);return ne(n,function(t){return t&&i!=null&&t[e]===i})}}function qg(e,t){return t.hasOwnProperty(`subType`)?ne(e,function(e){return e&&e.subType===t.subType}):e}function Jg(e){var t=Oe();return e&&R(ko(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}I(Ug,Pg);var Yg=/^(min|max)?(.+)$/,Xg=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(R(ko(e.series),function(e){e&&e.data&&ue(e.data)&&Se(e.data)}),R(ko(e.dataset),function(e){e&&e.source&&ue(e.source)&&Se(e.source)})),e=A(e);var r=this._optionBackup,i=Zg(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],A(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=A(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)Qg(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!e_(a,this._currentMediaIndices)&&(o=z(a,function(e){return A(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function Zg(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&H(l)&&R(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),R(c,function(e){return f(e)}),R(r,function(e){return f(e.option)});function f(e){R(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function Qg(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return R(e,function(e,t){var n=t.match(Yg);if(!(!n||!n[1]||!n[2])){var a=n[1];$g(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function $g(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function e_(e,t){return e.join(`,`)===t.join(`,`)}var t_=R,n_=ce,r_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function i_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=r_.length;n<r;n++){var i=r_[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?j(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?j(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function a_(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,P(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function o_(e){a_(e,`itemStyle`),a_(e,`lineStyle`),a_(e,`areaStyle`),a_(e,`label`),a_(e,`labelLine`),a_(e,`upperLabel`),a_(e,`edgeLabel`)}function s_(e,t){var n=n_(e)&&e[t],r=n_(n)&&n.textStyle;if(r)for(var i=0,a=jo.length;i<a;i++){var o=jo[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function c_(e){e&&(o_(e),s_(e,`label`),e.emphasis&&s_(e.emphasis,`label`))}function l_(e){if(n_(e)){i_(e),o_(e),s_(e,`label`),s_(e,`upperLabel`),s_(e,`edgeLabel`),e.emphasis&&(s_(e.emphasis,`label`),s_(e.emphasis,`upperLabel`),s_(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(i_(t),c_(t));var n=e.markLine;n&&(i_(n),c_(n));var r=e.markArea;r&&c_(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!ue(a))for(var o=0;o<a.length;o++)c_(a[o]);R(e.categories,function(e){o_(e)})}if(i&&!ue(i))for(var o=0;o<i.length;o++)c_(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)c_(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)H(c[o])?(c_(c[o][0]),c_(c[o][1])):c_(c[o]);e.type===`gauge`?(s_(e,`axisLabel`),s_(e,`title`),s_(e,`detail`)):e.type===`treemap`?(a_(e.breadcrumb,`itemStyle`),R(e.levels,function(e){o_(e)})):e.type===`tree`&&o_(e.leaves)}}function u_(e){return H(e)?e:e?[e]:[]}function d_(e){return(H(e)?e[0]:e)||{}}function f_(e,t){t_(u_(e.series),function(e){n_(e)&&l_(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),t_(n,function(t){t_(u_(e[t]),function(e){e&&(s_(e,`axisLabel`),s_(e.axisPointer,`label`))})}),t_(u_(e.parallel),function(e){var t=e&&e.parallelAxisDefault;s_(t,`axisLabel`),s_(t&&t.axisPointer,`label`)}),t_(u_(e.calendar),function(e){a_(e,`itemStyle`),s_(e,`dayLabel`),s_(e,`monthLabel`),s_(e,`yearLabel`)}),t_(u_(e.radar),function(e){s_(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),t_(u_(e.geo),function(e){n_(e)&&(c_(e),t_(u_(e.regions),function(e){c_(e)}))}),t_(u_(e.timeline),function(e){c_(e),a_(e,`label`),a_(e,`itemStyle`),a_(e,`controlStyle`,!0);var t=e.data;H(t)&&R(t,function(e){ce(e)&&(a_(e,`label`),a_(e,`itemStyle`))})}),t_(u_(e.toolbox),function(e){a_(e,`iconStyle`),t_(e.feature,function(e){a_(e,`iconStyle`)})}),s_(d_(e.axisPointer),`label`),s_(d_(e.tooltip).axisPointer,`label`)}function p_(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function m_(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function h_(e){e&&R(g_,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var g_=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],__=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],v_=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function y_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<v_.length;n++){var r=v_[n][1],i=v_[n][0];t[r]!=null&&(t[i]=t[r])}}function b_(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function x_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function S_(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function C_(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&C_(e[n].children,t)}function w_(e,t){f_(e,t),e.series=ko(e.series),R(e.series,function(e){if(ce(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),b_(e.label);var n=e.data;if(n&&!ue(n))for(var r=0;r<n.length;r++)b_(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=p_(e,`pointer.color`);i!=null&&m_(e,`itemStyle.color`,i)}else if(t===`bar`){y_(e),y_(e.backgroundStyle),y_(e.emphasis);var n=e.data;if(n&&!ue(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(y_(n[r]),y_(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),x_(e),C_(e.data,x_)}else t===`graph`||t===`sankey`?S_(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&P(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),h_(e)}}),e.dataRange&&(e.visualMap=e.dataRange),R(__,function(t){var n=e[t];n&&(H(n)||(n=[n]),R(n,function(e){h_(e)}))})}var T_=Cs(E_);function E_(e){var t=Oe();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),R(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),D_(e))})}function D_(e){R(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=io(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var O_=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&kg(this,n)===Sg.Must&&(r.type=`ordinal`)}}return e}();function k_(e){return e instanceof O_}function A_(e,t,n){n||=N_(e);var r=t.seriesLayoutBy,i=P_(e,n,r,t.sourceHeader,t.dimensions);return new O_({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:A(t)})}function j_(e){return new O_({data:e,sourceFormat:ue(e)?fu:cu})}function M_(e){return new O_({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:A(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function N_(e){var t=pu;if(ue(e))t=fu;else if(H(e)){e.length===0&&(t=lu);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(H(i)||ue(i)){t=lu;break}else if(ce(i)){t=uu;break}}}}else if(ce(e)){for(var a in e)if(K(e,a)&&L(e[a])){t=du;break}}return t}function P_(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:I_(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?L_(function(e){e!=null&&e!==`-`&&(W(e)?o??=1:o=0)},n,s,10):o=se(r)?r:r?1:0,!i&&o===1&&(i=[],L_(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=F_(e);else if(t===`keyedColumns`)i||(i=[],R(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Mo(e[0]);a=H(c)&&c.length||1}return{startIndex:o,dimensionsDefine:I_(i),dimensionsDetectedCount:a}}function F_(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return B(n)}function I_(e){if(e){var t=Oe();return z(e,function(e,n){e=ce(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+ i.count++:t.set(r.name,{count:1}),r})}}function L_(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function R_(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var z_,B_,V_,H_,U_,W_,G_=function(){function e(e,t){var n=k_(e)?e:j_(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),W_(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;W_=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=U_[nv(o,s)];M(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=V(Y_(o,s),null,i,c,l),e.count=V(Q_(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};U_=(e={},e[lu+`_`+mu]={pure:!0,appendData:i},e[lu+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[uu]={pure:!0,appendData:i},e[du]={pure:!0,appendData:function(e){var t=this._data;R(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[cu]={appendData:i},e[fu]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),K_=function(e){H(e)||wo(`series.data or dataset.source must be an array.`)};z_={},z_[lu+`_`+mu]=K_,z_[lu+`_row`]=K_,z_[uu]=K_,z_[du]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??wo(`dimension name must not be null/undefined.`)},z_[cu]=K_;var q_=function(e,t,n,r){return e[r]},J_=(B_={},B_[lu+`_`+mu]=function(e,t,n,r){return e[r+t]},B_[lu+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},B_[uu]=q_,B_[du]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},B_[cu]=q_,B_);function Y_(e,t){return J_[nv(e,t)]}var X_=function(e,t,n){return e.length},Z_=(V_={},V_[lu+`_`+mu]=function(e,t,n){return Math.max(0,e.length-t)},V_[lu+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},V_[uu]=X_,V_[du]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},V_[cu]=X_,V_);function Q_(e,t){return Z_[nv(e,t)]}var $_=function(e,t,n){return e[t]},ev=(H_={},H_[lu]=$_,H_[uu]=function(e,t,n){return e[n]},H_[du]=$_,H_[cu]=function(e,t,n){var r=Mo(e);return r instanceof Array?r[t]:r},H_[fu]=$_,H_);function tv(e){return ev[e]}function nv(e,t){return e===`arrayRows`?e+`_`+t:e}function rv(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return tv(a)(r,o,s)}else{var c=r;return a===`original`&&(c=Mo(r)),c}}}}var iv=/\{@(.+?)\}/g,av=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,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:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&H(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),U(i))return s.status=t,s.dimensionIndex=r,i(s);if(W(i))return Ih(i,s).replace(iv,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=rv(o,e,i);if(a&&H(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return rv(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function ov(e){var t,n;return ce(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function sv(e){return new cv(e)}var cv=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(H(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p,this._outputDueEnd=this._settedOutputEnd==null?p:this._settedOutputEnd}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){lv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:lv.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),H(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),lv=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function uv(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!se(e)&&e!=null&&e!==`-`&&(e=+lo(e)),e==null||e===``?NaN:Number(e))}Oe({number:function(e){return parseFloat(e)},time:function(e){return+lo(e)},trim:function(e){return W(e)?be(e):e}});var dv={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){se(t)||To(``),this._opFn=dv[e],this._rvalFloat=mo(t)}return e.prototype.evaluate=function(e){return se(e)?this._opFn(e,this._rvalFloat):this._opFn(mo(e),this._rvalFloat)},e})();var fv=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=se(e)?e:mo(e),r=se(t)?t:mo(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=W(e),s=W(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=mo(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=mo(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function pv(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function mv(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var hv=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return uv(e,t)},e}();function gv(e,t){var n=new hv,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&To(``);var o=[],s={},c=e.dimensionsDefine;if(c)R(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(K(s,n)&&To(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=Y_(i,mu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=V(_v,null,e)),n.cloneRawData=V(vv,null,e),n.count=V(Q_(i,mu),null,r,a,o);var d=tv(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=V(yv,null,o,s),n.cloneAllDimensionInfo=V(bv,null,o),n}function _v(e){var t=e.sourceFormat;return Tv(t)||To(``),e.data}function vv(e){var t=e.sourceFormat,n=e.data;if(Tv(t)||To(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(M({},n[i]));return r}}function yv(e,t,n){if(n!=null){if(se(n)||!isNaN(n)&&!K(t,n))return e[n];if(K(t,n))return t[n]}}function bv(e){return A(e)}var xv=Oe();function Sv(e){e=A(e);var t=e.type,n=``;t||To(n);var r=t.split(`:`);r.length!==2&&To(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,xv.set(t,e)}function Cv(e,t,n){var r=ko(e),i=r.length;i||To(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=wv(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function wv(e,t,n,r){var i=``;t.length||To(i),ce(e)||To(i);var a=e.type,o=xv.get(a);o||To(i);var s=z(t,function(e){return gv(e,o)});return z(ko(o.transform({upstream:s[0],upstreamList:s,config:A(e.config)})),function(e,n){var r=``;ce(e)||To(r),e.data||To(r),Tv(N_(e.data))||To(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:mu,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:mu,sourceHeader:0,dimensions:e.dimensions};return A_(e.data,i,null)})}function Tv(e){return e===`arrayRows`||e===`objectRows`}var Ev=typeof Uint32Array>`u`?Array:Uint32Array,Dv=typeof Uint16Array>`u`?Array:Uint16Array,Ov=typeof Int32Array>`u`?Array:Int32Array,kv=typeof Float64Array>`u`?Array:Float64Array,Av={float:kv,int:Ov,ordinal:Array,number:Array,time:kv},jv;function Mv(e){return e>65535?Ev:Dv}function Nv(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Pv(e,t,n,r,i){var a=Av[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Fv=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Oe()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=jv[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],R_(r),this._dimensions=z(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Av[t||`float`](this._rawCount),this._rawExtent[i]=os(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=os());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];Pv(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=jv.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=z(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=os()),Pv(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),$a(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Mv(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Mv(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=B(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Mv(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=os();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Mv(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Mv(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=os(),d=new(Mv(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=os();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=pv(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||mv(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&te(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Nv(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=A(this._extent),e._rawExtent=A(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return uv(e[r],this._dimensions[r])}jv={arrayRows:e,objectRows:function(e,t,n,r){return uv(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return uv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Iv=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Lv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ue(o)?fu:cu,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=G(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=G(u.sourceHeader,d.sourceHeader),m=G(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[A_(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[A_(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Rv(``);var i,a=[],o=[];return R(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Rv(``),a.push(t),o.push(e._getVersionSign())}),n?i=Cv(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[M_(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Lv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Fv,o.initData(new G_(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Lv(e)){var t=Dg(e);return t?[t.getSourceManager()]:[]}else return z(Og(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Lv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Lv(e){return e.mainType===`series`}function Rv(e){throw Error(e)}var zv=`line-height:1`;function Bv(e){var t=e.lineHeight;return t==null?zv:`line-height:`+mt(t+``)+`px`}function Vv(e,t){var n=e.color||q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+mt(r+``)+`px;color:`+mt(n)+`;font-weight:`+mt(i+``),valueStyle:`font-size:`+mt(o+``)+`px;color:`+mt(a)+`;font-weight:`+mt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Hv=[0,10,20,30],Uv=[``,`
9
+ `,`
10
+
11
+ `,`
12
+
13
+
14
+ `];function Wv(e,t){return t.type=e,t}function Gv(e){return e.type===`section`}function Kv(e){return Gv(e)?Jv:Yv}function qv(e){if(Gv(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return R(e.blocks,function(e){var n=qv(e);n>=t&&(t=n+ +(r&&(!n||Gv(e)&&!e.noHeader)))}),t}return 0}function Jv(e,t,n,r){var i=t.noHeader,a=Zv(qv(t)),o=[],s=t.blocks||[];ye(!s||H(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(K(l,c)){var u=new fv(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}R(s,function(n,i){var s=t.valueFormatter,c=Kv(n)(s?M(M({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):Qv(r,o.join(``),i?n:a.html);if(i)return d;var f=Nh(t.header,`ordinal`,e.useUTC),p=Vv(r,e.renderMode).nameStyle,m=Bv(r);return e.renderMode===`richText`?ty(e,f,p)+a.richText+d:Qv(r,`<div style="`+p+`;`+m+`;">`+mt(f)+`</div>`+d,n)}function Yv(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=H(e)?e:[e],z(e,function(e,t){return Nh(e,H(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||q.color.secondary,i),f=a?``:Nh(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Vv(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:ty(e,f,v))+(o?``:ny(e,m,h,g,y)):Qv(r,(s?``:d)+(a?``:$v(f,!s,v))+(o?``:ey(m,h,g,y)),n)}}function Xv(e,t,n,r,i,a){if(e)return Kv(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Zv(e){return{html:Hv[e],richText:Uv[e]}}function Qv(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=Bv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function $v(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+mt(e)+`</span>`}function ey(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=H(e)?e:[e],`<span style="`+i+`;`+r+`">`+z(e,function(e){return mt(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function ty(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ny(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(H(t)?t.join(` `):t,a)}function ry(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Rh(n)}function iy(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var ay=function(){function e(){this.richTextStyles={},this._nextStyleNameId=go()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+ this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Lh({color:t,type:e,renderMode:n,markerId:r});return W(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?R(t,function(e){return M(n,e)}):M(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function oy(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=H(s),l=ry(t,n),u,d,f,p;if(o>1||c&&!o){var m=sy(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=rv(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Wo(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Wv(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Wv(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!be(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function sy(e,t,n,r,i){var a=t.getData(),o=te(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?R(r,function(e){u(rv(a,n,e),e)}):R(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Wv(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var cy=Yo();function ly(e,t){return e.getName(t)||e.getId(t)}var uy=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=sv({count:py,reset:my}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(cy(this).sourceManager=new Iv(this)).prepareSource();var r=this.getInitialData(e,n);gy(r,this),this.dataTask.context.data=r,cy(this).dataBeforeProcessed=r,dy(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=sg(this),r=n?lg(e):{},i=this.subType;fg.hasClass(i)&&(i+=`Series`),j(e,t.getTheme().get(this.subType)),j(e,this.getDefaultOption()),Ao(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&cg(e,r,n)},t.prototype.mergeOption=function(e,t){e=j(this.option,e,!0),this.fillDataTextStyle(e.data);var n=sg(this);n&&cg(this.option,e,n);var r=cy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);gy(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,cy(this).dataBeforeProcessed=i,dy(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ue(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Ao(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=vy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return cy(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=vy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}cy(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return Oe(e)},t.prototype.getSourceManager=function(){return cy(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return cy(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return oy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(o.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Pg.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=ly(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=B(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[ly(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){ce(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=ly(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=ly(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return fg.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(fg);I(uy,av),I(uy,Pg),Ms(uy,fg);function dy(e){var t=e.name;Wo(e)||(e.name=fy(e)||t)}function fy(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return R(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function py(e){return e.model.getRawData().count()}function my(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),hy}function hy(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function gy(e,t){R(ke(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ae(_y,t))})}function _y(e,t){var n=vy(e);return n&&n.setOutputEnd((t||this).count()),t}function vy(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var yy=function(){function e(){this.group=new Ta,this.uid=Dm(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();As(yy),Ls(yy);function by(){var e=Yo();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var xy=Yo(),Sy=by(),Cy=function(){function e(){this.group=new Ta,this.uid=Dm(`viewChart`),this.renderTask=sv({plan:Ey,reset:Dy}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ty(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ty(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Rp(this.group,e)},e.markUpdateMethod=function(e,t){xy(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function wy(e,t,n){e&&bd(e)&&(t===`emphasis`?Yu:Xu)(e,n)}function Ty(e,t,n){var r=Jo(e,t),i=t&&t.highlightKey!=null?xd(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){wy(e,n,i)}):R(ko(r),function(t){wy(e.getItemGraphicEl(t),n,i)})}As(Cy,[`dispose`]),Ls(Cy);function Ey(e){return Sy(e.model)}function Dy(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&xy(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Oy[c]}var Oy={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},ky=`\0__throttleOriginMethod`,Ay=`\0__throttleRate`,jy=`\0__throttleType`;function My(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function Ny(e,t,n,r){var i=e[t];if(i){var a=i[ky]||i,o=i[jy];if(i[Ay]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=My(a,n,r===`debounce`),i[ky]=a,i[jy]=r,i[Ay]=n}return i}}function Py(e,t){var n=e[t];n&&n[ky]&&(n.clear&&n.clear(),e[t]=n[ky])}var Fy=Yo(),Iy={itemStyle:Rs(Sm,!0),lineStyle:Rs(ym,!0)},Ly={lineStyle:`stroke`,itemStyle:`fill`};function Ry(e,t){return e.visualStyleMapper||Iy[t]||(console.warn(`Unknown style type '`+t+`'.`),Iy.itemStyle)}function zy(e,t){return e.visualDrawType||Ly[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var By={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Ry(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=zy(e,r),c=a[s],l=U(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||U(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||U(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=M({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},Vy=new Tm,Hy={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Ry(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Vy.option=n[r];var o=i(Vy);M(e.ensureUniqueItemVisual(t,`style`),o),Vy.option.decal&&(e.setItemVisual(t,`decal`,Vy.option.decal),Vy.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Uy={performRawSeries:!0,overallReset:function(e){var t=Oe();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();Fy(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=Fy(e).scope,a=zy(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},Wy=Math.PI;function Gy(e,t){t||={},P(t,{text:`loading`,textColor:q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ta,r=new Bl({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Gl({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Bl({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new jf({shape:{startAngle:-Wy/2,endAngle:-Wy/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Wy*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Wy*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Ky=function(){function e(e,t,n,r){this._stageTaskMap=Oe(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):xs(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Oe();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;R(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});ye(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;R(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.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)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Oe(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||sv({plan:Zy,reset:Qy,count:tb}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||sv({reset:qy});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Oe(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;ye(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):R(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,sv({reset:Jy,onDirty:Xy})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return U(e)&&(e={overallReset:e,seriesType:nb(e)}),e.uid=Dm(`stageHandler`),t&&(e.visualType=t),e},e}();function qy(e){e.overallReset(e.ecModel,e.api,e.payload)}function Jy(e){return e.dirtyOnOverallProgress&&Yy}function Yy(){this.agent.dirty(),this.getDownstream().dirty()}function Xy(){this.agent&&this.agent.dirty()}function Zy(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Qy(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ko(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?z(t,function(e,t){return eb(t)}):$y}var $y=eb(0);function eb(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function tb(e){return e.data.count()}function nb(e){ab=null;try{e(rb,ib)}catch{}return ab}var rb={},ib={},ab;ob(rb,Ug),ob(ib,gu),rb.eachSeriesByType=rb.eachRawSeriesByType=function(e){ab=e},rb.eachComponent=function(e){e.mainType===`series`&&e.subType&&(ab=e.subType)};function ob(e,t){for(var n in t.prototype)e[n]=Me}var J=q.darkColor,sb=J.background,cb=function(){return{axisLine:{lineStyle:{color:J.axisLine}},splitLine:{lineStyle:{color:J.axisSplitLine}},splitArea:{areaStyle:{color:[J.backgroundTint,J.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:J.axisMinorSplitLine}},axisLabel:{color:J.axisLabel},axisName:{}}},lb={label:{color:J.secondary},itemStyle:{borderColor:J.borderTint},dividerLineStyle:{color:J.border}},ub={darkMode:!0,color:J.theme,backgroundColor:sb,axisPointer:{lineStyle:{color:J.border},crossStyle:{color:J.borderShade},label:{color:J.tertiary}},legend:{textStyle:{color:J.secondary},pageTextStyle:{color:J.tertiary}},textStyle:{color:J.secondary},title:{textStyle:{color:J.primary},subtextStyle:{color:J.quaternary}},toolbox:{iconStyle:{borderColor:J.accent50},feature:{dataView:{backgroundColor:sb,textColor:J.primary,textareaColor:J.background,textareaBorderColor:J.border,buttonColor:J.accent50,buttonTextColor:J.neutral00}}},tooltip:{backgroundColor:J.neutral20,defaultBorderColor:J.border,textStyle:{color:J.tertiary}},dataZoom:{borderColor:J.accent10,textStyle:{color:J.tertiary},brushStyle:{color:J.backgroundTint},handleStyle:{color:J.neutral00,borderColor:J.accent20},moveHandleStyle:{color:J.accent40},emphasis:{handleStyle:{borderColor:J.accent50}},dataBackground:{lineStyle:{color:J.accent30},areaStyle:{color:J.accent20}},selectedDataBackground:{lineStyle:{color:J.accent50},areaStyle:{color:J.accent30}}},visualMap:{textStyle:{color:J.secondary},handleStyle:{borderColor:J.neutral30}},timeline:{lineStyle:{color:J.accent10},label:{color:J.tertiary},controlStyle:{color:J.accent30,borderColor:J.accent30}},calendar:{itemStyle:{color:J.neutral00,borderColor:J.neutral20},dayLabel:{color:J.tertiary},monthLabel:{color:J.secondary},yearLabel:{color:J.secondary}},matrix:{x:lb,y:lb,backgroundColor:{borderColor:J.axisLine},body:{itemStyle:{borderColor:J.borderTint}}},timeAxis:cb(),logAxis:cb(),valueAxis:cb(),categoryAxis:cb(),line:{symbol:`circle`},graph:{color:J.theme},gauge:{title:{color:J.secondary},axisLine:{lineStyle:{color:[[1,J.neutral05]]}},axisLabel:{color:J.axisLabel},detail:{color:J.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:J.background}},radar:function(){var e=cb();return e.axisName={color:J.axisLabel},e.axisLine.lineStyle.color=J.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:J.neutral20,textStyle:{color:J.secondary}},emphasis:{itemStyle:{color:J.neutral30}}}},sunburst:{itemStyle:{borderColor:J.background}},map:{itemStyle:{borderColor:J.border,areaColor:J.neutral10},label:{color:J.tertiary},emphasis:{label:{color:J.primary},itemStyle:{areaColor:J.highlight}},select:{label:{color:J.primary},itemStyle:{areaColor:J.highlight}}},geo:{itemStyle:{borderColor:J.border,areaColor:J.neutral10},emphasis:{label:{color:J.primary},itemStyle:{areaColor:J.highlight}},select:{label:{color:J.primary},itemStyle:{color:J.highlight}}}};ub.categoryAxis.splitLine.show=!1;var db=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(W(e)){var i=Ds(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};R(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),fb=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],pb=fb.concat([`symbolKeepAspect`]),mb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<fb.length;o++){var s=fb[o],c=e.get(s);U(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(M({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=B(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},hb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<pb.length;r++){var i=pb[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function gb(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function _b(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function vb(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}R([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=M({},t),i.dispatchAction(M(t,{type:e[1],seriesIndex:n(r,t)}))})})}function yb(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=Jo(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:H(l)?c.getName(l[0]):c.getName(l),selected:W(r)?r:M({},r)})}})}function bb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(yb(`map`,`selectchanged`,t,r,e),yb(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(yb(`map`,`selected`,t,r,e),yb(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(yb(`map`,`unselected`,t,r,e),yb(`pie`,`unselected`,t,r,e))})}function xb(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Sb=new et,Cb={};function wb(e,t){Cb[e]=t}function Tb(e){return Cb[e]}var Eb={};function Db(e,t){Eb[e]=t}function Ob(e){return Eb[e]}var kb=Yo();function Ab(e){kb(e).prepare={}}function jb(e){kb(e).fullUpdate={}}function Mb(e){return kb(e).prepare}function Nb(e){return kb(e).fullUpdate}var Pb=Math.round(Math.random()*9),Fb=typeof Object.defineProperty==`function`,Ib=function(){function e(){this._id=`__ec_inner_`+ Pb++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Fb?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),Lb=El.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),Rb={line:Tf,rect:Bl,roundRect:Bl,square:Bl,circle:Jd,diamond:El.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:El.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:El.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:Lb},zb={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Bb={};R(Rb,function(e,t){Bb[t]=new e});var Vb=El.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=sa(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=Bb[r];i||=(r=`rect`,Bb[r]),zb[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Hb(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function Ub(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?pp(e.slice(8),new Qt(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?fp(e.slice(7),{},new Qt(t,n,r,i),o?`center`:`cover`):new Vb({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Hb,a&&c.setColor(a),c}function Wb(e){return H(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Gb(e,t){if(e!=null)return H(e)||(e=[e,e]),[Ja(e[0],t[0])||0,Ja(G(e[1],e[0]),t[1])||0]}function Kb(e){return isFinite(e)}function qb(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=Kb(r)?r:0,i=Kb(i)?i:1,a=Kb(a)?a:0,o=Kb(o)?o:0,e.createLinearGradient(r,a,i,o)}function Jb(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=Kb(o)?o:.5,s=Kb(s)?s:.5,c=c>=0&&Kb(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function Yb(e,t,n){for(var r=t.type===`radial`?Jb(e,t,n):qb(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Xb(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function Zb(e){return parseInt(e,10)}function Qb(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Zb(s[r])||Zb(e.style[r]))-(Zb(s[a])||0)-(Zb(s[o])||0)||0}function $b(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:se(e)?[e]:H(e)?e:null}function ex(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&$b(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=z(n,function(e){return e/i}),r/=i)}return[n,r]}var tx=new tl(!0);function nx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function rx(e){return typeof e==`string`&&e!==`none`}function ix(e){var t=e.fill;return t!=null&&t!==`none`}function ax(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function ox(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function sx(e,t,n){var r=Us(t.image,t.__image,n);if(Gs(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ne),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function cx(e,t,n,r,i){var a,o=nx(n),s=ix(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||tx,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?Yb(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?Yb(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?sx(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?sx(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=ex(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&ox(e,n),s&&ax(e,n)):(s&&ax(e,n),o&&ox(e,n)),T&&e.setLineDash([])}function lx(e,t,n){var r=t.__image=Us(n.image,t.__image,t,t.onload);if(!(!r||!Gs(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function ux(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=ex(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(nx(n)&&e.strokeText(i,n.x,n.y),ix(n)&&e.fillText(i,n.x,n.y)):(ix(n)&&e.fillText(i,n.x,n.y),nx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var dx=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],fx=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function px(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Tx(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?hc.opacity:o}(r||t.blend!==n.blend)&&(a||=(Tx(e,i),!0),e.globalCompositeOperation=t.blend||hc.blend);for(var s=0;s<dx.length;s++){var c=dx[s];(r||t[c]!==n[c])&&(a||=(Tx(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Tx(e,i),!0),e.shadowColor=t.shadowColor||hc.shadowColor),a}function mx(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=px(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Tx(e,i),!0),rx(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Tx(e,i),!0),rx(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Tx(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(Tx(e,i),!0),e.lineWidth=c)}for(var l=0;l<fx.length;l++){var u=fx[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Tx(e,i),!0),e[d]=a[d]||u[1])}return s}function hx(e,t,n,r,i){return px(e,t.style,n&&n.style,r,i)}function gx(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function _x(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),gx(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function vx(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var yx=1,bx=2,xx=3,Sx=4;function Cx(e){var t=ix(e),n=nx(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Tx(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Ex(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Dx(e,t,n),Ox(e,n)}function Dx(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||Xb(i,a))&&(a&&(Tx(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Tx(e,n),e.save(),_x(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof El&&t.autoBatch&&Cx(o);s||vx(r,l.transform)?(Tx(e,n),gx(e,t)):u||Tx(e,n),t instanceof El?(n.lastDrawType!==yx&&(c=!0,n.lastDrawType=yx),mx(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),cx(e,t,o,u,n)):t instanceof Ol?(n.lastDrawType!==xx&&(c=!0,n.lastDrawType=xx),mx(e,t,l,c,n),ux(e,t,o)):t instanceof Ml?(n.lastDrawType!==bx&&(c=!0,n.lastDrawType=bx),hx(e,t,l,c,n),lx(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Sx&&(c=!0,n.lastDrawType=Sx),kx(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&Tx(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Ox(e,t){Tx(e,t),t.prevElClipPaths&&e.restore()}function kx(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Dx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Ox(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Dx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Ox(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Ax=new Ib,jx=new mr(100),Mx=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Nx(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Ax.delete(e);var a=Ax.get(e);if(a)return a;var o=P(e,{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});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Ax.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Mx.length;++s){var c=o[Mx[s]];if(c!=null&&!H(c)&&!W(c)&&!se(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=jx.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Fx(o.dashArrayX),f=Ix(o.dashArrayY),p=Px(o.symbol),h=Lx(d),g=Rx(f),_=!i&&m.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&jx.put(l,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=h.length;t<n;++t)e=vo(e,h[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=vo(r,p[t].length);e*=r;var i=g*h.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%p.length,m=0,h=0,x=0;m<y.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][h]*C,T=a+f[s]*C,E=d[l][h]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][h],++x,++h,h===d[l].length&&(h=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=Ub(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else Ex(b,u)}}}}function Px(e){if(!e||e.length===0)return[[`rect`]];if(W(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!W(e[n])){t=!1;break}if(t)return Px([e]);for(var r=[],n=0;n<e.length;++n)W(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Fx(e){if(!e||e.length===0)return[[0,0]];if(se(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!se(e[r])){n=!1;break}if(n)return Fx([e]);for(var i=[],r=0;r<e.length;++r)if(se(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=z(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Ix(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(se(e)){var t=Math.ceil(e);return[t,t]}var n=z(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Lx(e){return z(e,function(e){return Rx(e)})}function Rx(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var zx=Cs(Bx);function Bx(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=Nx(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Nx(i,t)}}})}var Vx=1,Hx=800,Ux=900,Wx=920,Gx=1e3,Kx=2e3,qx=5e3,Jx=1e3,Yx=1100,Xx=2e3,Zx=3e3,Qx=4e3,$x=4500,eS=4600,tS=5e3,nS=6e3,rS=7e3,iS={PROCESSOR:{SERIES_FILTER:Hx,AXIS_STATISTICS:Wx,FILTER:Gx,STATISTIC:qx,STATISTICS:qx},VISUAL:{LAYOUT:Jx,PROGRESSIVE_LAYOUT:Yx,GLOBAL:Xx,CHART:Zx,POST_CHART_LAYOUT:eS,COMPONENT:Qx,BRUSH:tS,CHART_ITEM:$x,ARIA:nS,DECAL:rS}},aS=`__flagInMainProcess`,oS=`__mainProcessVersion`,sS=`__pendingUpdate`,cS=`__needsUpdateStatus`,lS=/^[a-zA-Z0-9_]+$/,uS=`__connectUpdateStatus`,dS=0,fS=1,pS=2;function mS(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return gS(this,e,t)}}function hS(e){return function(){return gS(this,e,[...arguments])}}function gS(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),et.prototype[t].apply(e,n)}var _S=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(et),vS=_S.prototype;vS.on=hS(`on`),vS.off=hS(`off`);var yS,bS,xS,SS,CS,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS=function(e){i(t,e);function t(t,n,r){var i=e.call(this,new db)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[oS]=1,r.ssr;var c=i._zr=ja(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:G(r.useDirtyRect,s),useCoarsePointer:G(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=My(V(c.flush,c),17),i._updateTheme(n),i._locale=Bm(r.locale||Rm),i._coordSysMgr=new Hh;var l=i._api=NS(i);function u(e,t){return e.__prio-t.__prio}return jn(KS,u),jn(WS,u),i._scheduler=new Ky(i,l,WS,KS),i._messageCenter=new _S,i._initEvents(),i.resize=V(i.resize,i),c.animation.on(`frame`,i._onframe,i),OS(c,i),kS(c,i),Se(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(IS(this),this[sS]){var r=this[sS].silent;this[aS]=!0,LS(this);try{yS(this),SS.update.call(this,null,this[sS].updateParams)}catch(e){throw this[aS]=!1,this[sS]=null,e}this._zr.flush(),this[aS]=!1,this[sS]=null,ES.call(this,r),DS.call(this,r)}else if(e.unfinished){var i=Vx;do{e.unfinished=!1;var a=m.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),wS(this,t),e.performVisualTasks(t),MS(this,this._model,n,`remain`,{}),i-=m.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[aS]){if(this._disposed){this.id;return}var r,i,a;if(ce(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[aS]=!0,LS(this),!this._model||t){var o=new Xg(this._api),s=this._theme,c=this._model=new Ug;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},GS);var l={seriesTransition:a,optionChanged:!0};if(n)this[sS]={silent:r,updateParams:l},this[aS]=!1,this.getZr().wakeUp();else{try{yS(this),SS.update.call(this,null,l)}catch(e){throw this[sS]=null,this[aS]=!1,e}this._ssr||this._zr.flush(),this[sS]=null,this[aS]=!1,ES.call(this,r),DS.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[aS]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[sS]&&(r??=this[sS].silent,i=this[sS].updateParams,this[sS]=null),this[aS]=!0,LS(this);try{this._updateTheme(e),n.setTheme(this._theme),yS(this),SS.update.call(this,{type:`setTheme`},i)}catch(e){throw this[aS]=!1,e}this[aS]=!1,ES.call(this,r),DS.call(this,r)}}},t.prototype._updateTheme=function(e){W(e)&&(e=qS[e]),e&&(e=A(e),e&&w_(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||o.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return R(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;R(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return R(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(XS[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();R(YS,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(A(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,h=m.createCanvas(),g=ja(h,{renderer:t?`svg`:`canvas`});if(g.resize({width:f,height:p}),t){var _=``;return R(u,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Bl({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),R(u,function(e){var t=new Ml({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return CS(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return CS(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return CS(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return R(Zo(n,e),function(e,n){n.indexOf(`Models`)>=0&&R(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Zo(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?_b(i,t):gb(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;R(BS,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&xb(i,function(e){var t=au(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=M({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;R(US,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),bb(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&ns(this.getDom(),QS,``);var e=this,t=e._api,n=e._model;R(e._componentsViews,function(e){e.dispose(n,t)}),R(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete YS[e.id]},t.prototype.resize=function(e){if(!this[aS]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[sS]&&(r??=this[sS].silent,n=!0,this[sS]=null),this[aS]=!0,LS(this);try{n&&yS(this),SS.update.call(this,{type:`resize`,animation:M({duration:0},e&&e.animation)})}catch(e){throw this[aS]=!1,e}this[aS]=!1,ES.call(this,r),DS.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(ce(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),JS[e]){var n=JS[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=M({},e);return t.type=HS[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(ce(t)||(t={silent:!!t}),VS[e.type]&&this._model){if(this[aS]){this._pendingActions.push(e);return}var n=t.silent;TS.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&o.browser.weChat&&this._throttledZrFlush(),ES.call(this,n),DS.call(this,n)}},t.prototype.updateLabelLayout=function(){Sb.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){yS=function(e){Ab(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),bS(e,!0),bS(e,!1),t.plan()},bS=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Ds(e.type);u=new(t?yy.getClass(d.main,d.sub):Cy.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},xS=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){R([].concat(e._componentsViews,e._chartsViews),l);return}var o=ts(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=Oe(),R(ko(s),function(e){var t=Uo(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null))if(Cd(n))if(t instanceof uy)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&ad(t,n,e._api);else{var r=od(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&id(t.mainType,t.componentIndex,e._api),a&&R(a,function(e){n.type===`highlight`?Yu(e):Xu(e)})}else Sd(n)&&t instanceof uy&&(ld(t,n,e._api),ud(t),FS(e))},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},SS={prepareAndUpdate:function(e){yS(this),SS.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){jb(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Sb.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),wS(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),AS(this,r,i,e,n),Sb.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}});var a=Oe();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),MS(t,n,r,e,{},a),Sb.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Cy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),AS(this,n,this._api,e,{}),Sb.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),Cy.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Sb.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){SS.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=Zo(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}CS=e,wS=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},TS=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=VS[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Ds(s[0]);this[aS]=!0,LS(this);var u=[e],d=!1;e.batch&&(d=!0,u=z(e.batch,function(t){return t=P(M({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Sd(e),_=Cd(e);if(_&&nd(this._api),R(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=M({},t),p.type=h,f.push(p),_){var a=Qo(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;xS(n,c,t,u),FS(n)}else g?(xS(n,c,t,`series`),FS(n)):l&&xS(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[sS]?(yS(this),SS.update.call(this,e),this[sS]=null):SS[c].call(this,e)}catch(e){throw this[aS]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[aS]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;ye(ce(y)),v=P({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},ES=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();TS.call(this,n,e)}},DS=function(e){!e&&this.trigger(`updated`)},OS=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[sS]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},kS=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=xb(n,bd);r&&(sd(r,e,t._api),FS(t))}).on(`mouseout`,function(e){var n=e.target,r=xb(n,bd);r&&(cd(r,e,t._api),FS(t))}).on(`click`,function(e){var n=e.target,r=xb(n,function(e){return au(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=au(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;jn(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),R(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}AS=function(e,t,r,i,a){n(t),jS(e,t,r,i,a),R(e._chartsViews,function(e){e.__alive=!1}),MS(e,t,r,i,a),R(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},jS=function(e,t,n,r,i,a){R(a||e._componentsViews,function(e){var i=e.__model;l(i,e),e.render(i,t,n,r),c(i,e),u(i,e)})},MS=function(e,t,n,r,i,o){var d=e._scheduler;i=M(i||{},{updatedSeries:t.getSeries()}),Sb.trigger(`series:beforeupdate`,t,n,i);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),l(t,n),o&&o.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),s(t,n),ud(t)}),d.unfinished=f||d.unfinished,Sb.trigger(`series:layoutlabels`,t,n,i),Sb.trigger(`series:transition`,t,n,i),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];c(t,n),u(t,n)}),a(e,t),Sb.trigger(`series:afterupdate`,t,n,i)},FS=function(e){e[cS]=!0,e.getZr().wakeUp()},LS=function(e){e[oS]=(e[oS]+1)%1e6},IS=function(e){e[cS]&&(e.getZr().storage.traverse(function(e){Qf(e)||r(e)}),e[cS]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function a(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>G(t.get(`hoverLayerThreshold`),xg.hoverLayerThreshold)&&!o.node&&!o.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=a?1:0)})}}),e._usingTHL=a)}}function s(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function c(e,t){if(!e.preventAutoZ){var n=Up(e);t.eachRendered(function(e){return Gp(e,n.z,n.zlevel),!0})}}function l(e,t){t.eachRendered(function(e){if(!Qf(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function u(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Qf(e))return;if(e instanceof El&&wd(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}NS=function(e){return new(function(t){i(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Yu(t,n),FS(e)},n.prototype.leaveEmphasis=function(t,n){Xu(t,n),FS(e)},n.prototype.enterBlur=function(t){Zu(t),FS(e)},n.prototype.leaveBlur=function(t){Qu(t),FS(e)},n.prototype.enterSelect=function(t){$u(t),FS(e)},n.prototype.leaveSelect=function(t){ed(t),FS(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[oS]},n.prototype.usingTHL=function(){return e._usingTHL},n}(gu))(e)},PS=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[uS]=t}}R(HS,function(n,r){e._messageCenter.on(r,function(n){if(XS[e.group]&&e[uS]!==dS){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];R(YS,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,dS),R(i,function(e){e[uS]!==fS&&e.dispatchAction(r)}),t(i,pS)}})})}}(),t}(et),zS=RS.prototype;zS.on=mS(`on`),zS.off=mS(`off`),zS.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var BS=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],VS={},HS={},US={},WS=[],GS=[],KS=[],qS={},JS={},YS={},XS={},ZS=new Date-0;new Date-0;var QS=`_echarts_instance_`;function $S(e,t,n){var r=!(n&&n.ssr);if(r){var i=eC(e);if(i)return i}var a=new RS(e,t,n);return a.id=`ec_`+ ZS++,YS[a.id]=a,r&&ns(e,QS,a.id),PS(a),Sb.trigger(`afterinit`,a),a}function eC(e){return YS[rs(e,QS)]}function tC(e,t){qS[e]=t}function nC(e){F(GS,e)<0&&GS.push(e)}function rC(e,t){fC(WS,e,t,Kx)}function iC(e){oC(`afterinit`,e)}function aC(e){oC(`afterupdate`,e)}function oC(e,t){Sb.on(e,t)}function sC(e,t,n){var r,i,a,o,s;U(t)&&(n=t,t=``),ce(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;VS[r]||(ye(lS.test(r)&&lS.test(i)),a&&ye(i!==r),VS[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},US[i]=1,a&&s&&(US[l]=1),HS[l]=r)}function cC(e,t){Hh.register(e,t)}function lC(e,t){fC(KS,e,t,Jx,`layout`,!0)}function uC(e,t){fC(KS,e,t,Zx,`visual`,!0)}var dC=[];function fC(e,t,n,r,i,a){if((U(t)||ce(t))&&(n=t,t=r),!(F(dC,n)>=0)){dC.push(n);var o=Ky.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function pC(e,t){JS[e]=t}function mC(e,t,n){var r=Tb(`registerMap`);r&&r(e,t,n)}var hC=Sv;uC(Xx,By),uC($x,Hy),uC($x,Uy),uC(Xx,mb),uC($x,hb),uC(rS,zx),nC(w_),rC(Ux,T_),pC(`default`,Gy),sC({type:wu,event:wu,update:wu},Me),sC({type:Tu,event:Tu,update:Tu},Me),sC({type:Eu,event:ku,update:Eu,action:Me,refineEvent:gC,publishNonRefinedEvent:!0}),sC({type:Du,event:ku,update:Du,action:Me,refineEvent:gC,publishNonRefinedEvent:!0}),sC({type:Ou,event:ku,update:Ou,action:Me,refineEvent:gC,publishNonRefinedEvent:!0});function gC(e,t,n,r){return{eventContent:{selected:dd(n),isFromClick:t.isFromClick||!1}}}tC(`default`,{}),tC(`dark`,ub);function _C(e){return e==null?0:e.length||1}function vC(e){return e}var yC=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||vC,this._newKeyGetter=r||vC,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=_C(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=_C(c),d=_C(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=_C(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=_C(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),bC=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function xC(e,t){var n={},r=n.encode={},i=Oe(),a=[],o=[],s={};R(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;SC(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),wC(n.type)&&(a[0]=t),SC(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}su.each(function(e,t){var i=SC(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=z(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new bC(s,t),n}function SC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function CC(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function wC(e){return!(e===`ordinal`||e===`time`)}var TC=function(){function e(e){this.otherDims={},e!=null&&M(this,e)}return e}(),EC=Yo(),DC={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},OC=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=jC(this.source))},e.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=R_(this.source),n=!MC(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=DC[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function kC(e){return e instanceof OC}function AC(e){for(var t=Oe(),n=0;n<(e||[]).length;n++){var r=e[n],i=ce(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function jC(e){var t=EC(e);return t.dimNameMap||=AC(e.dimensionsDefine)}function MC(e){return e>30}var NC=ce,PC=z,FC=typeof Int32Array>`u`?Array:Int32Array,IC=`e\0\0`,LC=-1,RC=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],zC=[`_approximateExtent`],BC,VC,HC,UC,WC,GC,KC,qC=function(){function e(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 n,r=!1;kC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=W(u)?new TC({name:u}):u instanceof TC?u:new TC(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=Oe();R(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(se(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof Fv&&(i=e),!i){var a=this.dimensions,o=k_(e)||L(e)?new G_(e,a.length):e;i=new Fv;var s=PC(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=xC(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&KC(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&No(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Uo(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Uo(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)KC(this,o);BC(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){NC(e)?M(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=HC(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return VC(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return H(e)?r.getValues(PC(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?LC:r},e.prototype.each=function(e,t,n){U(e)&&(n=t,t=e,e=[]);var r=n||this,i=PC(UC(e),this._getStoreDimIndex,this);this._store.each(i,r?V(t,r):t)},e.prototype.filterSelf=function(e,t,n){U(e)&&(n=t,t=e,e=[]);var r=n||this,i=PC(UC(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?V(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=B(e),i=[];return R(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){U(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=PC(UC(e),this._getStoreDimIndex,this),o=GC(this);return o._store=this._store.map(a,i?V(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=PC(UC(e),this._getStoreDimIndex,this);this._store.modify(a,i?V(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=GC(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=GC(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=GC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Tm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new yC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return VC(e,t)},function(e){return VC(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},NC(e)?M(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),H(i)?i=i.slice():NC(i)&&(i=M({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,NC(t)?M(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){NC(e)?M(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?M(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){ou(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){R(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:PC(this.dimensions,this._getDimInfo,this),this.hostModel),WC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(_e(arguments)))})},e.internalField=function(){BC=function(e){var t=e._invertedIndicesMap;R(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new FC(a.categories.length);for(var s=0;s<n.length;s++)n[s]=LC;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},HC=function(e,t,n){return Uo(e._getCategory(t,n),null)},VC=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=HC(e,e._idDimIdx,t)),n??=IC+t,n},UC=function(e){return H(e)||(e=e==null?[]:[e]),e},GC=function(t){var n=new e(t._schema?t._schema:PC(t.dimensions,t._getDimInfo,t),t.hostModel);return WC(n,t),n},WC=function(e,t){R(RC.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,R(zC,function(n){e[n]=A(t[n])}),e._calculationInfo=M({},t._calculationInfo)},KC=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=HC(e,i,t)),s==null&&a!=null&&(r[t]=s=HC(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function JC(e,t){k_(e)||(e=j_(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Oe(),a=[],o=YC(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&MC(o),c=r===e.dimensionsDefine,l=c?jC(e):AC(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Oe(u),f=new Ov(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=ce(n)?n:{name:n},o=new TC,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=ko(e).slice();if(n.length===1&&!W(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);R(n,function(e,n){var i=W(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;R(n,function(e){var t,n,r,i;if(W(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=M({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=ko(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}R(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(P(o,i),t,a),o.name==null&&n){var s=n[a];!ce(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&P(o.otherDims,r)})}});function g(e,t,n){su.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)R(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=XC(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(kg(e,S)===Sg.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return _s(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new OC({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function YC(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,function(e){var t;ce(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function XC(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var ZC=function(){function e(e){this.coordSysDims=[],this.axisMap=Oe(),this.categoryAxisMap=Oe(),this.coordSysName=e}return e}();function QC(e){var t=e.get(`coordinateSystem`),n=new ZC(t),r=$C[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var $C={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,$o).models[0],a=e.getReferringComponents(`yAxis`,$o).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),ew(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),ew(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,$o).models[0];t.coordSysDims=[`single`],n.set(`single`,i),ew(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,$o).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),ew(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),ew(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),ew(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,$o).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function ew(e){return e.get(`type`)===`category`}function tw(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;nw(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(R(a,function(e,t){W(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),R(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;R(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function nw(e){return!kC(e.schema)}function rw(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function iw(e,t){return rw(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function aw(e,t){var n=e.get(`coordinateSystem`),r=Hh.get(n),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=CC(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function ow(e,t,n){var r,i;return n&&R(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function sw(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=j_(e)):(i=r.getSource(),a=i.sourceFormat===cu);var o=QC(t),s=aw(t,o),c=n.useEncodeDefaulter,l=U(c)?c:c?ae(Tg,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=JC(i,u),f=ow(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=tw(t,{schema:d,store:p}),h=new qC(d,t);h.setCalculationInfo(m);var g=f!=null&&cw(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function cw(e){if(e.sourceFormat===`original`)return!H(Mo(lw(e.data||[])))}function lw(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var uw=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Ls(uw);var dw=0,fw=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++dw,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&z(r,pw);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!W(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=Oe(this.categories)},e}();function pw(e){return ce(e)&&e.value!=null?e.value:e+``}var mw=B({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function hw(e,t,n){var r;e||={};var i=Wm();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(R(mw,function(t){a[t]&&(e[t]=V(a[t],a))}),r=a)}return r??Sw(e,n),{brk:r,mapper:e}}function gw(e,t){R(mw,function(n){e[n]=t[n]})}function _w(e,t){e.freeze=Me}function vw(e){return e.getExtentUnsafe(0,2)}function yw(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function bw(e){var t=yw(e,3);return t[1]-t[0]}function xw(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Sw(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():os(),M(n,Cw),n}var Cw={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=yw(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){ww(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),ww(r,e,t,n)},freeze:function(){}};function ww(e,t,n,r){fs(n,r)&&(e[t][0]=n,e[t][1]=r)}function Tw(e){return Ew(e)||Ow(e)}function Ew(e){return e.type===`interval`}function Dw(e){return e.type===`time`}function Ow(e){return e.type===`log`}function kw(e){return e.type===`ordinal`}function Aw(e){var t=fo(e),n=Ha(10,t),r=za(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Qa(r*n,-t)}function jw(e){return eo(e)+2}function Mw(e,t){return Ua(e)/Ua(t)}function Nw(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return Ha(t,e)}function Pw(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=Ra(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!ds(r[0])||!ds(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Fw(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Iw(e,t){return e||=t,za(La(e,1))}function Lw(e,t,n){var r=vw(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var Rw=function(e){i(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,gw(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new fw({}),H(i)&&(i=new fw({categories:z(i,function(e){return ce(e)?e.value:e})})),r._ordinalMeta=i;var a=hw(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,_w(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:W(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=za(e),e},t.prototype.getTicks=function(){var e=[];return Lw(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Ia(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=vw(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(za(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(uw);uw.registerClass(Rw);function zw(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=jw(f);u<t-1;){var m=Qa(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=Wm();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Bw=function(e){i(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=hw(r,Gm(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return A(this._cfg)},t.prototype.setConfig=function(e){var t=vw(this);this._cfg=e=A(e),e.niceExtent??=t.slice(),e.intervalPrecision??=jw(e.interval)},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=vw(this),i=t.niceExtent,a=t.intervalPrecision,o=Wm(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Qa(i[0]-n,a):r[0]});for(var d=function(e,t){return za((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Ia(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Qa(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Qa(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Qa(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return zw(this,e,Km(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=eo(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Ah(Qa(e.value,n,!0))},t.type=`interval`,t}(uw);uw.registerClass(Bw);var Vw=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Hw=function(e){i(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=hw(r,Gm(r,n),null).brk,r}return t.prototype.getLabel=function(e){return fh(e.value,rh[dh(lh(this._minLevelUnit))]||rh.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return ph(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=vw(this),r=Wm(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return Wm().addBreaksToTicks(o,i.breaks,n),o;o=Qw(this._minLevelUnit,this._approxInterval,s,n,xw(this),i);var c=ih.length-1,l=0;return R(o,function(e){e.time&&(c=Math.min(c,F(ih,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&Wm().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&Wm().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(F(ih,mh(e.vmin,s)),F(ih,mh(e.vmax,s))),n=0,r=0;r<ih.length;r++)if(!Ww(ih[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:ih[Math.max(i,t)],upperTimeUnit:ih[i]}}),o},t.prototype.getMinorTicks=function(e){return zw(this,e,Km(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return se(e)?Math.round(e):+lo(e)},t.type=`time`,t}(uw),Uw=[[`second`,Jm],[`minute`,Ym],[`hour`,Xm],[`quarter-day`,Xm*6],[`half-day`,Xm*12],[`day`,Zm*1.2],[`half-week`,Zm*3.5],[`week`,Zm*7],[`month`,Zm*31],[`quarter`,Zm*95],[`half-year`,Qm/2],[`year`,Qm]];function Ww(e,t,n,r){return hh(new Date(t),e,r).getTime()===hh(new Date(n),e,r).getTime()}function Gw(e,t){return e/=Zm,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Kw(e){var t=30*Zm;return e/=t,e>6?6:e>3?3:e>2?2:1}function qw(e){return e/=Xm,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Jw(e,t){return e/=t?Ym:Jm,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Yw(e){return La(po(e,!0),1)}function Xw(e,t,n){var r=Math.max(0,F(ih,t)-1);return hh(new Date(e),ih[r],n).getTime()}function Zw(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Qw(e,t,n,r,i,a){var o=3e3,s=ah,c=0;function l(e,t,n,i,s,l,u){for(var d=Zw(s,e),f=t,p=new Date(f);f<n&&f<=r[1]&&(u.push({value:f}),!(c++>o));)if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}u.push({value:f,notAdd:f>r[1]})}function u(e,i,a){var o=[],s=!i.length;if(!Ww(lh(e),r[0],r[1],n)){s&&(i=[{value:Xw(r[0],e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var u=i[c].value,d=i[c+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/Zm/365)),p=gh(n),m=Ch(n);break;case`half-year`:case`quarter`:case`month`:f=Kw(t),p=_h(n),m=wh(n);break;case`week`:case`half-week`:case`day`:f=Gw(t,31),p=vh(n),m=Th(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=qw(t),p=yh(n),m=Eh(n);break;case`minute`:f=Jw(t,!0),p=bh(n),m=Dh(n);break;case`second`:f=Jw(t,!1),p=xh(n),m=Oh(n);break;case`millisecond`:f=Yw(t),p=Sh(n),m=kh(n);break}d>=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c<o.length;c++)a.push(o[c])}}for(var d=[],f=[],p=0,m=0,h=0;h<s.length;++h){var g=lh(s[h]);if(uh(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?lh(s[h+1]):null))){if(f.length){m=p,f.sort(function(e,t){return e.value-t.value});for(var _=[],v=0;v<f.length;++v){var y=f[v].value;(v===0||f[v-1].value!==y)&&(_.push(f[v]),y>=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=ne(z(d,function(e){return ne(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=x.length-1,C=[],h=0;h<x.length;++h)for(var w=x[h],T=0;T<w.length;++T){var E=mh(w[T].value,n);C.push({value:w[T].value,time:{level:S-h,upperTimeUnit:E,lowerTimeUnit:E}})}_s(C,vs,null),C.sort(function(e,t){return e.value-t.value});var D=C[0],O=C[C.length-1],k=mh(r[0],n),A=mh(r[1],n);return(!D||D.value>r[0])&&C.unshift({value:r[0],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),(!O||O.value<r[1])&&C.push({value:r[1],time:{level:0,upperTimeUnit:A,lowerTimeUnit:A},notNice:!0}),C}var $w=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=Zm,n[1]+=Zm),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-Zm}e.setExtent(n[0],n[1]);var i=Iw(t.splitNumber,10),a=xw(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=Uw.length,l=Math.min(Vw(Uw,a,0,c),c-1),u=Uw[l][1],d=Uw[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};uw.registerClass(Hw);var eT=0,tT=1,nT=2,rT=function(e){i(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Bw.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[eT]=i[tT]=a[eT]=a[tT]=NaN,gw(r,t.mapperMethods);var s=Wm(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},nT,l),r.powStub=new Bw({breakParsed:l.original}),r.intervalStub=new Bw({breakParsed:l.transformed}),_w(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Wm(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return z(i.getTicks(e||{}),function(e){var i=e.value,o=Nw(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Km(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return zw(this,e,Km(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Mw(e,this.base))},scale:function(e){return Nw(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Mw(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return iT.depth=n,aT.lookup=this._lookup,Nw(n===2?e:this.intervalStub.transformOut(e,iT),this.base,aT)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!fs(t,n)||t<=0||n<=0)){var r=oT,i=oT;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[eT]=t,r[tT]=n);var o=this.base;this.intervalStub.setExtent2(e,i[eT]=Mw(t,o),i[tT]=Mw(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return fs(t[0],t[1])&&yo(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(uw);uw.registerClass(rT);var iT={},aT={},oT=[],sT={value:1,category:1,time:1,log:1},cT=Yo();function lT(e){var t=e.get(`type`);return(t==null||!K(sT,t)&&!uw.getClass(t))&&(t=`value`),t}function uT(e,t,n){var r=Wm(),i;switch(r&&(i=xT(e,t,n)),t){case`category`:return new Rw({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:os()});case`time`:return new Hw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new rT({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Bw({breakOption:i});default:return new((uw.getClass(t))||Bw)({})}}function dT(e,t,n){var r=n?yw(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return fs(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function fT(e){cT(e).noOnMyZero=!0}function pT(e){return cT(e).noOnMyZero}function mT(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=oh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(W(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(U(t)){if(e.type===`category`)return function(n,r){return t(hT(e,n),n.value-e.scale.getExtent()[0],null)};var r=Wm();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(hT(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function hT(e,t){var n=e.scale;return kw(n)?n.getLabel(t):t.value}function gT(e){return e.get(`interval`)??`auto`}function _T(e){return e.type===`category`&&gT(e.getLabelModel())===0}function vT(e,t){var n={};return R(e.mapDimensionsAll(t),function(t){n[iw(e,t)]=!0}),B(n)}function yT(e){return e===`middle`||e===`center`}function bT(e){return e.getShallow(`show`)}function xT(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Wm()||!n||!ST(t)?void 0:r}function ST(e){return e!==`category`}function CT(e,t,n,r,i,a){var o=Ow(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=Fw(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function wT(e,t){return kw(e)?e.getRawOrdinalNumber(t.value):t.value}function TT(e,t){return kw(e)&&!!t.get(`boundaryGap`)}var ET=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),DT=hs(),OT=Yo(),kT=Yo();function AT(e,t){var n=e.model,r=OT(Nb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function jT(e,t){return PT(AT(e,t))}function MT(e,t){var n=[];return NT(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(PT(e))}),n}function NT(e,t){var n=OT(Nb(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function PT(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function FT(e,t){var n=e.model.ecModel,r=OT(Nb(n)).axSer;r&&LT(n,r.get(e.model.uid),t)}function IT(e,t,n){var r=AT(e,t);r&&LT(e.model.ecModel,r.sers,n)}function LT(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function RT(e,t,n){var r=OT(Nb(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function zT(e,t){var n=e.model,r=OT(Nb(n.ecModel)).keys;r&&R(r.get(n.uid),function(e){t(e)})}function BT(e){var t=kT(Mb(e)),n=t.keyed||=Oe();NT(e,function(t,r,i){var a=n.get(r)||n.set(r,Oe()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&HT.liPosMinGap(e,t,o)})}function VT(e,t){HT[e]=t}var HT={};function UT(e,t,n){if(e){var r=t.ecModel,i=OT(Nb(r)),a=e.model.uid,o=i.axSer||=Oe();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=KT.get(WT(s,c,n))||KT.get(WT(s,c,null));if(l){var u=i.keyed||=Oe(),d=i.keys||=Oe(),f=l.key,p=u.get(f)||u.set(f,Oe()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function WT(e,t,n){return e+`|&`+G(t,!0)+`|&`+(n||``)}function GT(e,t){var n=WT(t.seriesType,t.baseAxis,t.coordSysType);KT.set(n,t),DT(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:BT})})}var KT=Oe(),qT=Yo(),JT=3,YT=function(){function e(e,t,n,r,i){var a=kw(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(Ew(e)||Ow(e)||Dw(e))&&(cs(l,ZT(e,t.get(`dataMin`,!0))),ls(l,ZT(e,t.get(`dataMax`,!0)))),ps(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=ZT(e,U(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=ZT(e,U(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=QT(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!ds(u[0])&&(u[0]=NaN),!ds(u[1])&&(u[1]=NaN);var g=s||me(u[0])||me(u[1])||a&&!o,_=Ew(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=ZT(e,t.get(`startValue`,!0)),x=b!=null;!yo(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),yo(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),XT(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),XT(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function XT(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),ms(t))}function ZT(e,t){return t==null?null:me(t)?NaN:e.parse(t)}function QT(e,t){var n;if(kw(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=H(r)?r:[r,r]}return[$T(n[0]),$T(n[1])]}function $T(e){return oa(typeof e==`boolean`?0:e,1)||0}function eE(e){var t=qT(e.scale);return t.extent||=os(),t}function tE(e,t){eE(e).dimIdxInCoord=t.get(e.dim)}function nE(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||rE(n,e,i,r,t)}function rE(e,t,n,r,i){var a=eE(t),o=a.extent,s=!1;FT(t,function(r){if(r.boxCoordinateSystem){var i=Kh(r).coord,c=a.dimIdxInCoord;if(c>=0&&H(i)){var l=i[c];l!=null&&!H(l)&&ss(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;R(vT(u,n),function(e){us(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=lE(e,t,r);aE(e,new YT(e,r,o,s,c),i),a.extent=null}function iE(e,t){var n=e.scale;aE(n,new YT(n,e.model,t,!1,!1),JT)}function aE(e,t,n){e.rawExtentInfo=t,t.from=n}function oE(e,t){sE.set(e,t)}var sE=Oe();function cE(e,t,n,r,i){e.rawExtentInfo||iE({scale:e,model:t},i||os());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function lE(e,t,n){var r=TT(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return zT(t,function(e){a=!!sE.get(e)||a}),a}function uE(e,t,n,r){if(n.ctnShp){var i;if(zT(e,function(t){var n=sE.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],cs(i,a[0]),ls(i,a[1]),fT(e))}}),i){var a=t.getExtent();if(kw(t))e.onBand||t.setExtent2(1,Ia(a[0],a[0]+i[0]),La(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Ia(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=La(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function dE(e,t){var n=Ow(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=Pw(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?pE(r,t):fE(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=jw(d)),i[0]||(s[0]=Qa(Ba(s[0]/u)*u,l)),i[1]||(s[1]=Qa(Va(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),CT(e,i,o,s,a,c)}function fE(e,t){var n=Iw(t.splitNumber,5),r=xw(e),i=t.minInterval,a=t.maxInterval,o=po(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=jw(o),c=e.getExtent(),l=[Qa(Va(c[0]/o)*o,s),Qa(Ba(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function pE(e,t){var n=Iw(t.splitNumber,10),r=e.getExtent(),i=xw(e),a=La(uo(i),1);n/i*a<=.5&&(a*=10);var o=jw(a),s=[Qa(Va(r[0]/a)*a,o),Qa(Ba(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function mE(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;hE(t,n,r,i,null)}function hE(e,t,n,r,i){var a=cE(e,t,r,n,i),o=Ew(e)||Dw(e);gE(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&uE(n,e,a,r)}function gE(e,t){_E[e.type](e,t)}var _E={interval:dE,log:dE,time:$w,ordinal:Me},vE=[],yE={registerPreprocessor:nC,registerProcessor:rC,registerPostInit:iC,registerPostUpdate:aC,registerUpdateLifecycle:oC,registerAction:sC,registerCoordinateSystem:cC,registerLayout:lC,registerVisual:uC,registerTransform:hC,registerLoading:pC,registerMap:mC,registerImpl:wb,PRIORITY:iS,ComponentModel:fg,ComponentView:yy,SeriesModel:uy,ChartView:Cy,registerComponentModel:function(e){fg.registerClass(e)},registerComponentView:function(e){yy.registerClass(e)},registerSeriesModel:function(e){uy.registerClass(e)},registerChartView:function(e){Cy.registerClass(e)},registerCustomSeries:function(e,t){Db(e,t)},registerSubTypeDefaulter:function(e,t){fg.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ma(e,t)}};function bE(e){if(H(e)){R(e,function(e){bE(e)});return}F(vE,e)>=0||(vE.push(e),U(e)&&(e={install:e}),e.install(yE))}var xE=Yo(),SE=Yo(),CE={estimate:1,determine:2};function wE(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function TE(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:z(DE(n,r),function(t,n){return{formattedLabel:mT(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?OE(e,t):jE(e)}function EE(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:DE(i,r)}:e.type===`category`?AE(e,t):{ticks:r.getTicks(n)}}function DE(e,t){var n=t.getExtent(),r=[];return R(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),_s(r,ys,null),$a(r),z(r,function(e){return{value:e}})}function OE(e,t){var n=e.getLabelModel(),r=kE(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function kE(e,t,n){var r=NE(e),i=gT(t),a=n.kind===CE.estimate;if(!a){var o=FE(r,i);if(o)return o}var s,c;U(i)?s=HE(e,i,!1):(c=i===`auto`?LE(e,n):i,s=HE(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return IE(r,i,l),!0}):IE(r,i,l),l}function AE(e,t){var n=ME(e),r=gT(t),i=FE(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),U(r))a=HE(e,r,!0);else if(r===`auto`){var s=kE(e,e.getLabelModel(),wE(CE.determine));o=s.labelCategoryInterval,a=z(s.labels,function(e){return e.tick})}else o=r,a=HE(e,o,!0);return IE(n,r,{ticks:a,tickCategoryInterval:o})}function jE(e){var t=e.scale.getTicks(),n=mT(e);return{labels:z(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var ME=PE(`axisTick`),NE=PE(`axisLabel`);function PE(e){return function(t){return SE(t)[e]||(SE(t)[e]={list:[]})}}function FE(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function IE(e,t,n){return e.list.push({key:t,value:n}),n}function LE(e,t){if(t.kind===CE.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return SE(e).autoInterval=n,!0}),n}return SE(e).autoInterval??(SE(e).autoInterval=e.calculateCategoryInterval(t))}function RE(e,t){var n=t.kind,r=VE(e),i=mT(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=na(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===CE.estimate?(t.out.noPxChangeTryDetermine.push(V(zE,null,e,S,c)),S):BE(e,S,c)??S}function zE(e,t,n){return BE(e,t,n)==null}function BE(e,t,n){var r=xE(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function VE(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function HE(e,t,n){var r=mT(e),i=e.scale,a=[],o=U(t);return Lw(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var UE=.8;function WE(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=bw(r);yo(o)||(o=NaN);var s=e.getExtent(),c=Ra(s[1]-s[0]);return kw(r)?GE(n,e,o,c):i&&KE(n,e,o,c,i),a!=null&&(n.w=yo(n.w)?La(a,n.w):a),n}function GE(e,t,n,r){var i=t.onBand,a=n+(i?1:0);a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function KE(e,t,n,r,i){var a=!1,o=-1/0;R(i.key?[jT(t,i.key)]:MT(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),yo(n)&&n>0&&yo(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*UE,e.w2=e.w*n/r)}var qE=[0,1],JE=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),qa(e,qE,YE(this),t)},e.prototype.coordToData=function(e,t){var n=qa(e,YE(this),qE,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=z(EE(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(wT(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=XE(this,n,r);return z(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(kw(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),z(this.scale.getMinorTicks(e),function(e){return z(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=wE(CE.determine),TE(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return WE(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=wE(CE.determine),RE(this,e)},e}();function YE(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function XE(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=WE(e).w;if(!i)return!1;R(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var ZE=Math.PI*2,QE=tl.CMD,$E=[`top`,`right`,`bottom`,`left`];function eD(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function tD(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%ZE<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=ol(i),i=ol(f)}else r=ol(r),i=ol(i);r>i&&(i+=ZE);var p=Math.atan2(s,o);if(p<0&&(p+=ZE),p>=r&&p<=i||p+ZE>=r&&p+ZE<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function nD(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function rD(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var iD=[];function aD(e,t,n){var r=rD(t.x,t.y,t.width,t.height,e.x,e.y,iD);return n.set(iD[0],iD[1]),r}function oD(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case QE.M:a=u[p++],o=u[p++],r=a,i=o;break;case QE.L:h=nD(r,i,u[p],u[p+1],d,f,iD,!0),r=u[p++],i=u[p++];break;case QE.C:h=er(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,iD),r=u[p++],i=u[p++];break;case QE.Q:h=sr(r,i,u[p++],u[p++],u[p],u[p+1],d,f,iD),r=u[p++],i=u[p++];break;case QE.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=tD(g,_,y,b,b+x,S,C,f,iD),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case QE.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=rD(a,o,w,T,d,f,iD);break;case QE.Z:h=nD(r,i,a,o,d,f,iD,!0),r=a,i=o;break}h<l&&(l=h,n.set(iD[0],iD[1]))}return l}var sD=new Rt,cD=new Rt,lD=new Rt,uD=new Rt,dD=new Rt;function fD(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||$E,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&Lt([],u),f=t.get(`length2`)||0;l&&lD.copy(l);for(var p=0;p<o.length;p++){var m=o[p];eD(m,0,s,sD,uD),Rt.scaleAndAdd(cD,sD,uD,f),cD.transform(d);var h=e.getBoundingRect(),g=l?l.distance(cD):e instanceof El?oD(cD,e.path,lD):aD(cD,h,lD);g<c&&(c=g,cD.transform(u),lD.transform(u),lD.toArray(a[0]),cD.toArray(a[1]),sD.toArray(a[2]))}hD(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var pD=[],mD=new Rt;function hD(e,t){if(t<=180&&t>0){t=t/180*Math.PI,sD.fromArray(e[0]),cD.fromArray(e[1]),lD.fromArray(e[2]),Rt.sub(uD,sD,cD),Rt.sub(dD,lD,cD);var n=uD.len(),r=dD.len();if(!(n<.001||r<.001)){uD.scale(1/n),dD.scale(1/r);var i=uD.dot(dD);if(Math.cos(t)<i){var a=nD(cD.x,cD.y,lD.x,lD.y,sD.x,sD.y,pD,!1);mD.fromArray(pD),mD.scaleAndAdd(dD,a/Math.tan(Math.PI-t));var o=lD.x===cD.x?(mD.y-cD.y)/(lD.y-cD.y):(mD.x-cD.x)/(lD.x-cD.x);if(isNaN(o))return;o<0?Rt.copy(mD,cD):o>1&&Rt.copy(mD,lD),mD.toArray(e[1])}}}}function gD(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,sD.fromArray(e[0]),cD.fromArray(e[1]),lD.fromArray(e[2]),Rt.sub(uD,cD,sD),Rt.sub(dD,lD,cD);var r=uD.len(),i=dD.len();if(!(r<.001||i<.001)&&(uD.scale(1/r),dD.scale(1/i),uD.dot(t)<Math.cos(n))){var a=nD(cD.x,cD.y,lD.x,lD.y,sD.x,sD.y,pD,!1);mD.fromArray(pD);var o=Math.PI/2,s=o+Math.acos(dD.dot(t))-n;if(s>=o)Rt.copy(mD,lD);else{mD.scaleAndAdd(dD,a/Math.tan(Math.PI/2-s));var c=lD.x===cD.x?(mD.y-cD.y)/(lD.y-cD.y):(mD.x-cD.x)/(lD.x-cD.x);if(isNaN(c))return;c<0?Rt.copy(mD,cD):c>1&&Rt.copy(mD,lD)}mD.toArray(e[1])}}}function _D(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function vD(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Ge(r[0],r[1]),a=Ge(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=Je([],r[1],r[0],o/i),c=Je([],r[1],r[2],o/a),l=Je([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function yD(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Cu.length;c++){var l=Cu[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:G(i.states[l]&&i.states[l].ignore,s))||!G(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&_D(r,!0,l,u);continue}r||(r=new Sf,e.setTextGuideLine(r),!d&&(s||!o)&&_D(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),_D(r,!1,l,u)}}if(r){P(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=vD}}function bD(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Su.length;r++){var i=Su[r];n[i]=e.getModel([i,t])}return n}var xD=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],SD=1,CD=2,wD=SD|CD;function TD(e,t,n){n||=wD,t?e.dirty|=n:e.dirty&=~n}function ED(e,t){return t||=wD,e.dirty==null||!!(e.dirty&t)}function DD(e){if(e)return ED(e)&&OD(e,e.label,e),e}function OD(e,t,n){var r=t.getComputedTransform();e.transform=Hp(e.transform,r);var i=e.localRect=Vp(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=mm.textMargin);for(var d=0;d<4;d++)kD[d]=u===mm.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===mm.textMargin&&Np(i,kD,!1,!1);var f=e.rect=Vp(e.rect,i);return r&&f.applyTransform(r),u===mm.minMargin&&Np(f,kD,!1,!1),e.axisAligned=zp(r),(e.label=e.label||{}).ignore=t.ignore,TD(e,!1),TD(e,!0,CD),e}var kD=[0,0,0,0];function AD(e,t,n){return e.transform=Hp(e.transform,n),e.localRect=Vp(e.localRect,t),e.rect=Vp(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=zp(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function jD(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function MD(e,t){for(var n=0;n<xD.length;n++){var r=xD[n];e[r]??(e[r]=t[r])}return DD(e)}function ND(e){var t=e.obb;return(!t||ED(e,CD))&&(e.obb=t||=new Wf,t.fromBoundingRect(e.localRect,e.transform),TD(e,!1,CD)),t}function PD(e,t,n,r,i){var a=e.length,o=ap[t],s=op[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function FD(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function ID(e){var t=[];e.sort(function(e,t){return(t.suggestIgnore?1:0)-(e.suggestIgnore?1:0)||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=DD(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(LD(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function LD(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:ND(e).intersect(ND(t),n,r)}function RD(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function zD(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:RD(r&&r.shape.points)}}var BD=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],VD=new Ui,HD=Yo(),UD=Yo();function WD(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var GD=[`x`,`y`,`rotation`],KD=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();Qt.applyTransform(c,c,s),s?VD.setLocalTransform(s):(VD.x=VD.y=VD.rotation=VD.originX=VD.originY=0,VD.scaleX=VD.scaleY=1),VD.rotation=ol(VD.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Qt.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:VD.x,y:VD.y,scaleX:VD.scaleX,scaleY:VD.scaleY,rotation:VD.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(U(r)||B(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=au(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){fD(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=U(a.layoutOptionOrCb)?a.layoutOptionOrCb(zD(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=Ja(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Ja(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=HD(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<BD.length;m++){var h=BD[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];R(this._labelList,function(e){e.defaultAttr.ignore||r.push(MD({},e))});var i=ne(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=ne(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});PD(i,0,0,t),PD(a,1,0,n);var o=ne(r,function(e){return e.layoutOption.hideOverlap});FD(o),ID(o)},e.prototype.processLabelsOverall=function(){var e=this;R(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=HD(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=au(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);yD(e,bD(o),s),fD(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Qf(e))){var i=HD(n),a=i.oldLayout,o=au(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(F(u,`select`)>=0&&n.attr(i.oldLayoutSelect),F(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),Xf(n,c,t,s)}else if(n.attr(c),!dm(n).valueAnimation){var d=G(n.style.opacity,1);n.style.opacity=0,Zf(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};WD(f,c,GD),WD(f,n.states.select,GD)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};WD(p,c,GD),WD(p,n.states.emphasis,GD)}pm(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=UD(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),Xf(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,Zf(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),qD=Yo();function JD(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=qD(t).labelManager;r||=qD(t).labelManager=new KD,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=qD(t).labelManager;R(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var YD=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return sw(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Ta,n=Ub(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=Ub(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=q.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(uy);function XD(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=rv(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(rv(e,t,n[o]));return a.join(` `)}}function ZD(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!H(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var QD=function(e){i(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=Ub(e,-1,-1,2,2,null,a);o.attr({z2:G(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=$D,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Yu(this.childAt(0))},t.prototype.downplay=function(){Xu(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):Xf(f,p,o,n),np(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Zf(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=tm(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=Gb(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Ml){var S=a.style;a.useStyle(M({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(M({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;em(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):XD(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),md(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=au(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&$f(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();$f(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Wb(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Ta);function $D(e,t){this.parent.drift(e,t)}function eO(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function tO(e){return e!=null&&!ce(e)&&(e={isIgnore:e}),e||{}}function nO(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:tm(t),cursorStyle:t.get(`cursor`)}}function rO(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var iO=function(){function e(e){this.group=new Ta,this._SymbolCtor=e||QD}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=tO(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=nO(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);eO(e,i,r,t)&&rO(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!eO(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Xf(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);eO(t,s,i,e)?(o||=rO(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=nO(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=tO(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(eO(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){Rp(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function aO(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=oO(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=s===`x`||s===`radius`?1:0,d=z(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return rw(t,d[0])&&(f=!0,d[0]=p),rw(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function oO(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:se(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function sO(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function cO(e,t){return!isFinite(e)||!isFinite(t)}var lO=typeof Float32Array<`u`?Float32Array:void 0,uO=typeof Float64Array<`u`?Float64Array:void 0;function dO(e){return fO({ctor:lO},e).arr}function fO(e,t){var n=e.arr,r=e.ctor;if(t>ao&&(t=ao),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function pO(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function mO(e,t,n,r,i,a,o,s){for(var c=pO(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=aO(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=sO(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,N=dO(M),P=dO(M),F=dO(M),ee=dO(M),I=[],y=0;y<m.length;y++){var L=m[y],R=y*2,z=L*2;N[R]=l[z],N[R+1]=l[z+1],P[R]=u[z],P[R+1]=u[z+1],F[R]=d[z],F[R+1]=d[z+1],ee[R]=f[z],ee[R+1]=f[z+1],I[y]=p[L]}return{current:N,next:P,stackedOnCurrent:F,stackedOnNext:ee,status:I}}var hO=Math.min,gO=Math.max;function _O(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(cO(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;cO(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||cO(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var ee=E>0?1:-1;p=_-ee*P*o,m=v,O=_+ee*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var I=D>0?1:-1;p=_,m=v-I*P*o,O=_,k=v+I*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=hO(O,gO(S,_)),k=hO(k,gO(C,v)),O=gO(O,hO(S,_)),k=gO(k,hO(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=hO(p,gO(l,_)),m=hO(m,gO(u,v)),p=gO(p,hO(l,_)),m=gO(m,hO(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var vO=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),yO=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new vO},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&cO(n[i*2-2],n[i*2-1]);i--);for(;r<i&&cO(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=_O(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=tl.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?Zn(i,u,f,m,e,s):Zn(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?Yn(a,d,p,h,b):Yn(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(El),bO=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(vO),xO=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new bO},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&cO(n[a*2-2],n[a*2-1]);a--);for(;i<a&&cO(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=_O(e,n,i,a,a,1,t.smooth,o,t.connectNulls);_O(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(El);function SO(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Bl({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=U(i)?function(e){i(e,d)}:null;Zf(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function CO(e,t,n){var r=e.getArea(),i=Qa(r.r0,1),a=Qa(r.r,1),o=new mf({shape:{cx:Qa(e.cx,1),cy:Qa(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,Zf(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function wO(e,t,n,r,i){return e?e.type===`polar`?CO(e,t,n):e.type===`cartesian2d`?SO(e,t,n,r,i):null:null}function TO(e,t,n){e?t.setClipPath(n):t.removeClipPath()}function EO(e){var t=e.coordinateSystem;if(e.get(`clip`,!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function DO(e,t){return e.type===t}function OO(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||K(e,`text`)))}function kO(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},K(r,`text`)&&(o.text=r.text),K(r,`rich`)&&(o.rich=r.rich),K(r,`textFill`)&&(o.fill=r.textFill),K(r,`textStroke`)&&(o.stroke=r.textStroke),K(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),K(r,`fontSize`)&&(o.fontSize=r.fontSize),K(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),K(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=K(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),K(r,`textPosition`)&&(i.position=r.textPosition),K(r,`textOffset`)&&(i.offset=r.textOffset),K(r,`textRotation`)&&(i.rotation=r.textRotation),K(r,`textDistance`)&&(i.distance=r.textDistance)}return AO(o,e),R(o.rich,function(e){AO(e,e)}),{textConfig:i,textContent:a}}function AO(e,t){t&&(t.font=t.textFont||t.font,K(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),K(t,`textAlign`)&&(e.align=t.textAlign),K(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),K(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),K(t,`textWidth`)&&(e.width=t.textWidth),K(t,`textHeight`)&&(e.height=t.textHeight),K(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),K(t,`textPadding`)&&(e.padding=t.textPadding),K(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),K(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),K(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),K(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),K(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),K(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),K(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function jO(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||q.color.neutral99;MO(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||q.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||q.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,R(t.rich,function(e){MO(e,e)}),r}function MO(e,t){t&&(K(t,`fill`)&&(e.textFill=t.fill),K(t,`stroke`)&&(e.textStroke=t.fill),K(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),K(t,`font`)&&(e.font=t.font),K(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),K(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),K(t,`fontSize`)&&(e.fontSize=t.fontSize),K(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),K(t,`align`)&&(e.textAlign=t.align),K(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),K(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),K(t,`width`)&&(e.textWidth=t.width),K(t,`height`)&&(e.textHeight=t.height),K(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),K(t,`padding`)&&(e.textPadding=t.padding),K(t,`borderColor`)&&(e.textBorderColor=t.borderColor),K(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),K(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),K(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),K(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),K(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),K(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),K(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),K(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),K(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),K(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function NO(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function PO(e){for(var t=os(),n=os(),r=0;r<e.length;){var i=e[r++],a=e[r++];cO(i,a)||(ss(t,i),ss(n,a))}return[t,n]}function FO(e,t){var n=PO(e),r=n[0],i=n[1],a=PO(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function IO(e){return se(e)?e:e?.5:0}function LO(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=dO(r*2),a=0;a<r;a++){var o=sO(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function RO(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;cO(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function zO(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Mr((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function BO(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=z(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=zO(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;R(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Pf(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function VO(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&HO(a,t))){var o=t.mapDimension(a.dim),s={};return R(a.getViewLabels(),function(e){e.tick.offInterval||(s[wT(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function HO(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(QD.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function UO(e){for(var t=e.length/2;t>0&&cO(e[t*2-2],e[t*2-1]);t--);return t-1}function WO(e,t){return[e[t*2],e[t*2+1]]}function GO(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!cO(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function KO(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Su.length;t++)if(e.get([Su[t],`endLabel`,`show`]))return!0;return!1}function qO(e,t,n,r){if(DO(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=KO(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=SO(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return CO(t,n,r)}function JO(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var YO=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Ta,t=new iO;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=V(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=aO(r,a,_),y=g&&LO(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&VO(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=l?!1:e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=BO(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=RO(y,c,r,w,x),c=RO(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Rh(E)),m.setClipPath(qO(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Rh(E));var D=m.getClipPath();D?Zf(D,{shape:qO(this,r,!1,e).shape},e):m.setClipPath(qO(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!NO(this._stackedOnPoints,y)||!NO(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=RO(y,c,r,w,x),c=RO(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(P(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),vd(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}au(f).seriesIndex=e.seriesIndex,md(f,k,A,j);var N=IO(e.get(`smooth`)),F=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:F,connectNulls:x}),p){var ee=a.getCalculationInfo(`stackedOnSeries`),I=0;p.useStyle(P(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),ee&&(I=IO(ee.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:F,connectNulls:x}),vd(p,e,`areaStyle`),au(p).seriesIndex=e.seriesIndex,md(p,k,A,j)}var L=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=L)}),this._polyline.onHoverStateChange=L,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var R=e.get(`triggerEvent`),z=e.get(`triggerLineEvent`),te=z===!0||R===!0||R===`line`,ne=z===!0||R===!0||R===`area`;this.packEventData(e,f,te),p&&this.packEventData(e,p,ne)},t.prototype.packEventData=function(e,t,n){au(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Jo(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(cO(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new QD(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Cy.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Jo(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else Cy.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Bu(this._polyline,e),t&&Bu(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new yO({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new xO({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);U(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=U(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=U(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(KO(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new Gl({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=UO(o);c>=0&&(em(a,tm(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?XD(i,e):ZD(i,n)},enableTextSetter:!0},JO(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=GO(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=WO(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=as(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=WO(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=dm(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=mO(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=RO(u.stackedOnCurrent,u.current,n,i,o),d=RO(u.current,null,n,i,o),m=RO(u.stackedOnNext,u.next,n,i,o),p=RO(u.next,null,n,i,o)),FO(d,p)>3e3||c&&FO(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),Xf(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Xf(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(Cy);function XO(e,t){return{seriesType:e,plan:by(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=z(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);rw(n,o[0])&&(o[0]=c),rw(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&dO(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var ZO={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},QO=function(e){return Math.round(e.length/2)};function $O(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;W(i)?p=ZO[i]:U(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,QO))}}}}}function ek(e){e.registerChartView(YO),e.registerSeriesModel(YD),e.registerLayout(XO(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$O(`line`))}var tk=function(e){i(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(JE),nk=null;function rk(){return nk}var ik=`expandAxisBreak`,ak=Math.PI,ok=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],sk=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ck=Yo(),lk=Yo(),uk=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function dk(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=Fk(e.axisName)&&yT(e.nameLocation);R(r,function(e){var t=DD(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Lt(fk,n.transform):jt(fk),t.transform&&Nt(fk,fk,t.transform),Qt.copy(pk,t.localRect),pk.applyTransform(fk),s?s.union(pk):Qt.copy(s=new Qt(0,0,0,0),pk))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new Qt(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var fk=At(),pk=new Qt(0,0,0,0),mk=function(e,t,n,r,i,a){if(yT(e.nameLocation)){var o=a.stOccupiedRect;o&&hk(AD({},o,a.transGroup.transform),r,i)}else gk(a.labelInfoList,a.dirVec,r,i)};function hk(e,t,n){var r=new Rt;LD(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&jD(t,r)}function gk(e,t,n,r){for(var i=Rt.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||hk(s,n,r)}}var _k=function(){function e(e,t,n,r){this.group=new Ta,this._axisModel=e,this._api=t,this._local={},this._shared=r||new uk(mk),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=G(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=G(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:r,nameLocation:ge(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:Fk(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Ta({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Rt(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},R(vk,function(r){e[r]&&yk[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=oo(t-e),i,a;return so(r)?(a=n>0?`top`:`bottom`,i=`center`):so(r-ak)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<ak?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),vk=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],yk={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Ye(u,u,l),Ye(d,d,l));var p=M({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&qm(r.axis.scale))rk().buildAxisBreakLine(r,i,a,m);else{var h=new Tf(M({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));_p(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);W(g)&&(g=[g,g]),(W(_)||se(_))&&(_=[_,_]);var v=Gb(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=Ub(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){Ok(t,i,s)&&bk(e,t,n,r,i,a,o,CE.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){Ok(t,i,s)&&bk(e,t,n,r,i,a,o,CE.determine);var c=Ek(e,i,a,r);Ck(e,t.labelLayoutList,c),Dk(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(Fk(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Rt(0,0),_=new Rt(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=At();_.transform(Ft(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*ak/180);var b,x;yT(u)?b=_k.innerTextLayout(e.rotation,y??e.rotation,d):(b=xk(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=he(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Gl({x:g.x,y:g.y,rotation:b.rotation,silent:_k.isLabelSilent(r),style:nm(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Ip({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=_k.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,au(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=DD({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:yT(u)?ok[E]:sk[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function bk(e,t,n,r,i,a,o,s){Ak(t)||kk(e,t,i,s,r,o);var c=t.labelLayoutList;Mk(e,r,c,a),Lk(r,e.rotation,c);var l=e.optionHideOverlap;Sk(r,c,l),l&&ID(ne(c,function(e){return e&&!e.label.ignore})),dk(e,n,r,c)}function xk(e,t,n,r){var i=oo(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return so(i-ak/2)?(o=c?`bottom`:`top`,a=`center`):so(i-ak*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<ak*1.5&&i>ak/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Sk(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(_T(r))return;function a(e,a,o){var s=DD(t[a]),c=DD(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=ck(s.label).labelInfo.tick;if(Dw(l)&&u.notNice||kw(l)&&u.offInterval){wk(s.label);return}}if(e===!1||s.suggestIgnore){wk(s.label);return}if(c.suggestIgnore){wk(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=MD({marginForce:f},s),c=MD({marginForce:f},c)}LD(s,c,null,{touchThreshold:d})&&wk(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function Ck(e,t,n){e.showMinorTicks||R(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=lk(r),a=ck(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){wk(r);return}}})}function wk(e){e&&(e.ignore=!0)}function Tk(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(Ye(o,o,t),Ye(s,s,t));var u=new Tf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});_p(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=lk(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function Ek(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=Tk(i.getTicksCoords(),n.transform,c,P(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function Dk(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=P(c.getLineStyle(),P(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=Tk(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function Ok(e,t,n){if(Ak(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),jk(e,null,null,null))}return!0}function kk(e,t,n,r,i,a){var o=i.axis,s=he(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Ta;n.add(c);var l=wE(r);if(!s||o.scale.isBlank()){jk(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(he(e.raw.labelRotate,u.get(`rotate`))||0)*ak/180,p=_k.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;R(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=wT(o.scale,n);if(m&&m[f]){var y=m[f];ce(y)&&y.textStyle&&(l=new Tm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=G(l.getShallow(`alignMinLabel`,!0),x),C=G(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=G(l.getShallow(`verticalAlignMinLabel`,!0),w),E=G(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new Gl({x:0,y:0,rotation:0,silent:_k.isLabelSilent(i),z2:D,style:nm(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:U(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=ck(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Ip({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=_k.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var M=j.parsedBreak;A.break={start:M.vmin,end:M.vmax}}o.type===`category`&&(A.dataIndex=f),au(O).eventData=A,j&&Ik(i,a,O,j)}h.push(O),c.add(O)}),jk(t,z(h,function(e){return{label:e,priority:ck(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function Ak(e){return!!e.labelLayoutList}function jk(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function Mk(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);R(n,function(n,a){var o=DD(n);if(o){var s=o.label,c=ck(s);o.suggestIgnore=s.ignore,s.ignore=!1,qi(Nk,Pk);var l=t.axis;Nk.x=l.dataToCoord(wT(l.scale,c.labelInfo.tick)),Nk.y=e.labelOffset+e.labelDirection*i,Nk.rotation=c.layoutRotation,r.add(Nk),Nk.updateTransform(),r.remove(Nk),Nk.decomposeTransform(),qi(s,Nk),s.markRedraw(),TD(o,!0),DD(o)}})}var Nk=new Bl,Pk=new Bl;function Fk(e){return!!e}function Ik(e,t,n,r){n.on(`click`,function(n){var i={type:ik,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function Lk(e,t,n){var r=Wm();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&ck(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&R(i,function(r){rk().adjustBreakLabelPair(e.axis.inverse,t,[DD(n[r[0]]),DD(n[r[1]])])})}}function Rk(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),he(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function zk(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function Bk(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,$o).models[0]}),t}function Vk(e,t,n,r,i,a){for(var o=Rk(e,n),s=!1,c=!1,l=0;l<t.length;l++)Tw(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new _k(n,r,o,i)}function Hk(e,t,n){var r=Rk(t,n);e.updateCfg(r)}function Uk(){VT(`liPosMinGap`,Wk)}function Wk(e,t,n){var r=Oe(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=pv(u);function f(n){LT(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}fO(Gk,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||mv(d,a))&&(l&&(a=c.transformIn(a,null)),Gk.arr[m++]=a)}});var h=Gk.typed?Gk.arr.subarray(0,m):(Gk.arr.length=m,Gk.arr);Gk.typed?h.sort():$a(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=yo(g)?g:m>0?-2:-1,n.serUids=r}var Gk=fO({ctor:uO},50);function Kk(e){return function(t,n){var r=WE(t,{fromStat:{key:e}});if(yo(r.w2))return[-r.w2/2,r.w2/2]}}function qk(e){return e+`|&`}function Jk(e,t){return e+`|&`+t}function Yk(e){return Uk(),{liPosMinGap:!kw(e.scale)}}function Xk(e,t,n,r){GT(e,{key:t,seriesType:n,coordSysType:r,getMetrics:Yk})}function Zk(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var Qk={left:0,right:0,top:0,bottom:0},$k=[`25%`,`25%`],eA=`cartesian2d`,tA=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=lg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&cg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&cg(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:Qk,outerBoundsContain:`all`,outerBoundsClampWidth:$k[0],outerBoundsClampHeight:$k[1],backgroundColor:q.color.transparent,borderWidth:1,borderColor:q.color.neutral30},t}(fg),nA=hs(),rA=`__ec_stack_`;function iA(e){return e.get(`stack`)||rA+e.seriesIndex}function aA(e){if(kw(e.axis.scale)){for(var t=WE(e.axis),n=[],r=0;r<e.count;r++)n.push(P({stackId:rA+r},e));for(var i=cA({bandWidthResult:t,seriesInfo:n}),a=[],r=0;r<e.count;r++){var o=i[rA+r];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function oA(e,t){var n=sA(e,t);return n.columnMap=cA(n),n}function sA(e,t){var n=Jk(t,eA),r=[],i=WE(e,{fromStat:{key:n},min:1});return IT(e,n,function(e){r.push({barWidth:Ja(e.get(`barWidth`),i.w),barMaxWidth:Ja(e.get(`barMaxWidth`),i.w),barMinWidth:Ja(e.get(`barMinWidth`)||(dA(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:iA(e)})}),{bandWidthResult:i,seriesInfo:r}}function cA(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};R(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;K(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=Ia(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=La(35-o.length*4,15)+`%`;var c=Ja(i,t),l=Ja(a,1),u=(n-c)/(r+(r-1)*l);u=La(u,0),R(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=Ia(o,i)),a&&(o=La(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=Ia(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=La(u,0);var d=0,f;R(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return R(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function lA(e){return{seriesType:e,overallReset:function(t){var n=Jk(e,eA);RT(t,n,function(t){var r=oA(t,e);IT(t,n,function(e){var t=r.columnMap[iA(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function uA(e){return{seriesType:e,plan:by(),reset:function(e){if(zk(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=rw(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(Zk(i))),p=dA(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&dO(r*3),c=p&&s&&dO(r*3),l=p&&dO(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,Ra(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,Ra(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function dA(e){return e.pipelineContext&&e.pipelineContext.large}function fA(e){return Kk(Jk(e,eA))}function pA(e){nA(e,function(){function t(t){var n=Jk(t,eA);Xk(e,n,t,eA),oE(n,fA(t))}t(`bar`),t(`pictorialBar`)})}var mA=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return sw(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)R(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[c?1:0]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=r.getBaseAxis().isHorizontal()?0:1;a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(uy);uy.registerClass(mA);var hA=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return sw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=xs(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Am(mA.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:q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(mA),gA=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),_A=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new gA},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(El);function vA(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return sa(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+bA(m,s+_,!1),x=u+p*y(m)+xA(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+bA(m,-s+_,!1),x=u+p*y(m)+xA(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+bA(h,s+_,!0),x=u+p*y(h)+xA(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+bA(h,-s+_,!0),x=u+p*y(h)+xA(h,-s+_,!0),S=`right`,C=`middle`;break;default:return sa(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function yA(e,t,n,r){if(se(r)){e.setTextConfig({rotation:r});return}else if(H(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function bA(e,t,n){return t*Math.sin(e)*(n?-1:1)}function xA(e,t,n){return t*Math.cos(e)*(n?1:-1)}function SA(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;H(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(r,function(e){return oa(e,i)})}}var CA=Math.max,wA=Math.min,TA=function(e){i(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Rp(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=OA(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=PA[s.type](a,e);if(!t)return null;var n=GA(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=PA[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!NA[s.type](r)))){var o=!1;f&&(o=EA[s.type](p,r));var g=DA[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),LA(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?kA(d,u,g,r,t,l,!1,!1):Zf(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=PA[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=PA[s.type](a,t),E=WA(l,T,s);Xf(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!NA[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=EA[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&tp(D,e,n),D=null),D?np(D):D=DA[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=dm(k);A.prevValue!=null&&(A.prevValue=A.value)}}else LA(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?kA(d,u,D,C,t,l,!0,x):Xf(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&tp(n,e,t)}).execute();var C=this._backgroundGroup||=new Ta;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),VA(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),VA(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&wO(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:z(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){tp(t,e,au(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Cy),EA={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=CA(t.x,e.x),s=wA(t.x+t.width,i),c=CA(t.y,e.y),l=wA(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=wA(t.r,e.r),a=CA(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},DA={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Bl({shape:M({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?_A:mf,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=vA(IA(i),{isRoundCap:l===_A}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Xf:Zf)(u,{shape:p},a)}return u}};function OA(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function kA(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Xf:Zf)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Xf:Zf)(n,{shape:l},u,i)}function AA(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var jA=[`x`,`y`,`width`,`height`],MA=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],NA={cartesian2d:function(e){return!AA(e,jA)},polar:function(e){return!AA(e,MA)}},PA={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?RA(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function FA(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function IA(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function LA(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;M(u,SA(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?KA(i,a.coordinateSystem):qA(i,a.coordinateSystem),p=tm(r);em(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:XD(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,yA(e,h===`outside`?f:h,IA(o),r.get([`label`,`rotate`]))}fm(m,p,a.getRawValue(n),function(e){return ZD(t,e)});var g=r.getModel([`emphasis`]);md(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),vd(e,r),FA(i)&&(e.style.fill=`none`,e.style.stroke=`none`,R(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function RA(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var zA=function(){function e(){}return e}(),BA=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new zA},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(El);function VA(e,t,n,r){var i=e.getData(),a=i.getLayout(`valueAxisHorizontal`)?1:0,o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?bs(e):0;if(l){var d=new BA({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new BA({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,au(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,HA),f.on(`mousemove`,HA)),n&&n.push(f)}var HA=My(function(e){var t=this,n=UA(t,e.offsetX,e.offsetY);au(t).dataIndex=n>=0?n:null},30,!1);function UA(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function WA(e,t,n){if(DO(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function GA(e,t,n){return new(e.type===`polar`?mf:Bl)({shape:WA(t,n,e),silent:!0,z2:0})}function KA(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function qA(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function JA(e){e.registerChartView(TA),e.registerSeriesModel(hA),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,lA(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uA(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$O(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),pA(e)}function YA(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}function XA(e,t,n){t=H(t)&&{coordDimensions:t}||M({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=JC(r,t).dimensions,a=new qC(i,e);return a.initData(r,n),a}var ZA=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),QA=Yo(),$A=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ZA(V(this.getData,this),V(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return XA(this,{coordDimensions:[`value`],encodeDefaulter:ae(Eg,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=QA(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=ro(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Ao(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,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%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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`},t}(uy);Wh({fullType:$A.type,getCoord2:function(e){return e.getShallow(`center`)}});var ej=Math.PI/180;function tj(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;rj(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}PD(e,1,c,c+o)&&d(e)}function nj(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;sj(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!sj(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,rj(m,g,!1)}}tj(l,t,n,r,1,i,a,o,s,d),tj(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!sj(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function rj(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}ij(a,r)}}}function ij(e,t){oj.rect=e,OD(oj,t,aj)}var aj={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},oj={};function sj(e){return e.position===`center`}function cj(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*ej,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=Ja(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=Ja(T,l);var E=w.get(`length2`);if(E=Ja(E,l),Math.abs(d.endAngle-d.startAngle)<o){R(h.states,p),h.ignore=!0,g&&(R(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,M,N;r=d.cx,i=d.cy;var P=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,N=`center`;else{var F=(P?(d.r+d.r0)/2*O:d.r*O)+r,ee=(P?(d.r+d.r0)/2*k:d.r*k)+i;if(A=F+O*3,j=ee+k*3,!P){var I=F+O*(T+c-d.r),L=ee+k*(T+c-d.r),z=I+(O<0?-1:1)*E,te=L;A=x===`edge`?O<0?u+S:u+l-S:z+(O<0?-b:b),j=te,M=[[F,ee],[I,L],[z,te]]}N=P?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var ne=Math.PI,re=0,B=v.get(`rotate`);if(se(B))re=ne/180*B;else if(y===`center`)re=0;else if(B===`radial`||B===!0)re=O<0?-D+ne:-D;else if(B===`tangential`||B===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var ie=Math.atan2(O,k);ie<0&&(ie=ne*2+ie),k>0&&B!==`tangential-noflip`&&(ie=ne+ie),re=ie-ne}if(a=!!re,h.x=A,h.y=j,h.rotation=re,h.setStyle({verticalAlign:`middle`}),P){h.setStyle({align:N});var V=h.states.select;V&&(V.x+=h.x,V.y+=h.y)}else{var ae=new Qt(0,0,0,0);ij(ae,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new Rt(O,k),linePoints:M,textAlign:N,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:ae,unconstrainedWidth:ae.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}}),!a&&e.get(`avoidLabelOverlap`)&&nj(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(R(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(R(v.states,p),v.ignore=!0):(hD(x,g.minTurnAngle),gD(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new Rt(x[0][0],x[0][1])})}}}var lj=Math.PI*2,uj=Math.PI/180,dj=Ss(`pie`,fj);function fj(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=ng(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*uj,d=e.get(`endAngle`),f=e.get(`padAngle`)*uj;d=d===`auto`?u-lj:-d*uj;var p=e.get(`minAngle`)*uj+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;el(S,!_),u=S[0],d=S[1];var w=pj(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e)){n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?qa(e,b,[c,s]):s}),O=i}),E<lj&&m)if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?(i=u+x*(t+1/2)*k,a=i):(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var pj=Yo(),mj=function(e){i(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new Gl;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=M(SA(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(Zf(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,Zf(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,Xf(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),Zf(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else np(i),Xf(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),vd(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=M({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},SA(s.getModel(`itemStyle`),c)),M(i.ensureState(`select`),{x:p,y:m,shape:SA(o.getModel([`select`,`itemStyle`]),c)}),M(i.ensureState(`blur`),{shape:SA(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&M(g.ensureState(`select`),{x:p,y:m}),M(_.ensureState(`select`),{x:p,y:m}),md(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;em(r,tm(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Sf,this.setTextGuideLine(d)),yD(this,bD(i),{stroke:s,opacity:ge(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(mf),hj=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new mf({shape:A(pj(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new mj(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){tp(a.getItemGraphicEl(t),e,t)}).execute(),cj(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(Cy);function gj(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(se(r)&&!isNaN(r)&&r<0)})}}}function _j(e){e.registerChartView(hj),e.registerSeriesModel($A),vb(`pie`,e.registerAction),e.registerLayout(dj),e.registerProcessor(YA(`pie`)),e.registerProcessor(gj(`pie`))}var vj=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return sw(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:q.color.primary}},universalTransition:{divideShape:`clone`}},t}(uy),yj=4,bj=function(){function e(){}return e}(),xj=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new bj},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<yj,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||i&&!i.contain(o,s)||r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new Qt(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(El),Sj=function(){function e(){this.group=new Ta}return e.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var t=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;n=new Float32Array(n.buffer,r,t)}e.setShape(`points`,n),e.reset(),e.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n,r){var i=this._newAdded[0],a=t.getLayout(`points`),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,c=new Float32Array(s+a.length);c.set(o),c.set(a,s),i.endIndex=e.end,i.setShape({points:c})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=n,l.setShape({points:a}),this._setCommon(l,t,r)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new xj({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Ub(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<yj;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=au(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Cj=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,wj(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),bs(t),wj(t)),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),this._finished){var i=XO(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(wj(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new Sj:new iO,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(Cy);function wj(e){return{clipShape:EO(e)}}var Tj=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,$o).models[0]},t.type=`cartesian2dAxis`,t}(fg);I(Tj,ET);var Ej={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:`auto`,onZeroAxisIndex:null,lineStyle:{color:q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},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,color:q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[q.color.backgroundTint,q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:q.color.neutral00,borderColor:q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},Dj=j({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},Ej),Oj=j({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:q.color.axisMinorSplitLine,width:1}}},Ej),kj={category:Dj,value:Oj,time:j({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},Oj),log:P({logBase:10},Oj)};function Aj(e,t,n,r){R(sT,function(a,o){var s=j(j({},kj[o],!0),r,!0),c=function(e){i(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+o,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=sg(this),r=n?lg(e):{};j(e,t.getTheme().get(o+`Axis`)),j(e,this.getDefaultOption()),e.type=jj(e),n&&cg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=fw.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=rk();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+o,n.defaultOption=s,n}(n);e.registerComponentModel(c)}),e.registerSubTypeDefaulter(t+`Axis`,jj)}function jj(e){return e.type||(e.data?`category`:`value`)}var Mj=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ne(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Nj=[`x`,`y`];function Pj(e){return(e.type===`interval`||e.type===`time`)&&!qm(e)}var Fj=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=eA,t.dimensions=Nj,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!Pj(e)||!Pj(t))){var n=yw(e,null),r=yw(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s;this._invTransform=Lt([],this._transform=[c,0,0,l,i[0]-n[0]*c,i[1]-r[0]*l])}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Qt(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Ye(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Ye(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Qt(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(Mj);function Ij(e,t){var n=e.scale,r=e.model,i=cE(n,r,r.ecModel,e,null),a=Ow(n),o=Ow(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=Ra(l[0].value-l[1].value),g=Ra(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-(f?1:0)-(p?1:0)}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=Pw(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*La(c,2):Aw(E),D=jw(E)}function j(){w=Qa(k-E*f,D)}function M(){T=Qa(O+E*p,D)}function N(){k=f?Qa(w+E*f,D):w}function P(){O=p?Qa(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var F=e.getExtent(),ee=Ra(F[1]-F[0]);D=no([T,w],ee,.5/m),N(),P(),yo(D)&&(E=Qa(E,D))}else{var I=C[1]-C[0];E=a?La(uo(I),1):po(I/m,2),D=jw(E),b[0]?(w=C[0],A(function(){if(N(),O=Qa(k+E*m,D),M(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(P(),k=Qa(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Qa(Va(C[0]/E)*E,D),O=Qa(Ba(C[1]/E)*E,D);var e=za((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Ba(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=Qa(k-E*n[0],D),O=Qa(O+E*n[1],D),j(),M(),w<=C[0]&&T>=C[1])return!0}})}CT(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var Lj=[[3,1],[0,2]],Rj=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Nj,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;R(this._axesList,function(e){nE(e,1);var t=e.scale;kw(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=B(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):mE(i)}R(n,function(e){Uj(e,e.__alignTo)?mE(e):Ij(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};R(n.x,function(e){Bj(n,`y`,e,i)}),R(n.y,function(e){Bj(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=ag(e,t),i=this._rect=rg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(Gj(a,i),!n){var c=Yj(i,o,a,s,t),l=void 0;if(s)qj?(qj(this._axesList,i),Gj(a,i)):l=Jj(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=Zj(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=Jj(d,f,p,i,a,c,r))}Xj(i,a,CE.determine,null,l,r),R(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}ce(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,$o).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,$o).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,F(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,R(o.x,function(t,n){R(o.y,function(i,a){var o=`x`+n+`y`+a,s=new Fj(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),Hj(o.x),Hj(o.y);function c(t){return function(n,r){if(zj(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=lT(n),u=new tk(t,uT(n,l,!0),[0,0],l,c);u.onBand=TT(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return R(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);F(t,i)<0&&t.push(i),F(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),R(o._axesList,function(t){tE(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;Jh({targetModel:e,coordSysType:eA,coordSysProvider:r});function r(){var r=Bk(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(UT(t,e,eA),UT(n,e,eA))},this),r},e.dimensions=Nj,e.dimIdxMap=AC(Nj),e}();function zj(e,t){return e.getCoordSysModel()===t}function Bj(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)Vj(s,i[c])&&(a=i[c]);else for(var l in i)if(K(i,l)&&Vj(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function Vj(e,t){if(!t)return!1;var n=t.scale,r=dT(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&pT(t)&&(i=!1),i}function Hj(e){for(var t=B(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Tw(a.scale)&&xT(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&R(r,function(e){e.__alignTo=n})}function Uj(e,t){return qm(e.scale)||qm(t.scale)||t.scale.getTicks().length<2}function Wj(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function Gj(e,t){R(e.x,function(e){return Kj(e,t.x,t.width)}),R(e.y,function(e){return Kj(e,t.y,t.height)})}function Kj(e,t,n){var r=[0,n],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),Wj(e,t)}var qj;function Jj(e,t,n,r,i,a,o){Xj(r,i,CE.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=re(s,function(e){return e>0})==null;return Np(r,s,!0,!0,n),Gj(i,r),c;function l(e){R(i[ap[e]],function(t){if(bT(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(wT(t.scale,ck(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=yT(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[ap[n]]-t[ap[n]],a=t[op[n]]+t[ap[n]]-(e[op[n]]+e[ap[n]]);i=d(i,1-r),a=d(a,r);var o=Lj[n][0],c=Lj[n][1];s[o]=La(s[o],i),s[c]=La(s[c],a)}function d(e,t){return e>0&&!me(t)&&t>1e-4&&(e/=t),e}}function Yj(e,t,n,r,i){var a=new uk(Qj);return R(n,function(n){return R(n,function(n){if(bT(n.model)){var o=!r;n.axisBuilder=Vk(e,t,n.model,i,a,o)}})}),a}function Xj(e,t,n,r,i,a){var o=n===CE.determine;R(t,function(t){return R(t,function(t){bT(t.model)&&(Hk(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[ap[1-t]]=e[op[t]]<=a.refContainer[op[t]]*.5?0:1-t==1?2:1}R(t,function(e,t){return R(e,function(e){bT(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function Zj(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=rg(e.get(`outerBounds`,!0)||Qk,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||F([`all`,`axisLabel`],a)<0?`all`:a,s=[Xa(G(e.get(`outerBoundsClampWidth`,!0),$k[0]),t.width),Xa(G(e.get(`outerBoundsClampHeight`,!0),$k[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Qj=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;mk(e,t,n,r,i,a),yT(e.nameLocation)||R(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&gk(e.labelInfoList,e.dirVec,r,i)})};function $j(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return eM(n,e,t),n.seriesInvolved&&nM(n,e),n}function eM(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];R(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=lM(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(R(n.getAxes(),ae(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&R(f.baseAxes,ae(p,d?`cross`:!0,u)),d&&R(f.otherAxes,ae(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!cM(d))){s??=d.get(`triggerTooltip`),d=r?tM(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=lM(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:cM(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=rM(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function tM(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};R(s,function(e){c[e]=A(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&P(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Tm(c,n,r))}function nM(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||R(e.coordSysAxesInfo[lM(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function rM(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(iM(a[r+`AxisId`],n.id)||iM(a[r+`AxisIndex`],n.componentIndex)||iM(a[r+`AxisName`],n.name))return i}}function iM(e,t){return e===`all`||H(e)&&F(e,t)>=0||e===t}function aM(e){var t=oM(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=cM(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function oM(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[lM(e)]}function sM(e){var t=oM(e);return t&&t.axisPointerModel}function cM(e){return!!e.get([`handle`,`show`])}function lM(e){return e.type+`||`+e.id}var uM={},dM=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&aM(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=sM(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){uM[e]=t},t.getAxisPointerClass=function(e){return e&&uM[e]},t.type=`axis`,t}(yy),fM=Yo();function pM(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=fM(e).splitAreaColors,f=Oe(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=H(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Bl({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:P({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}fM(e).splitAreaColors=f}}}function mM(e){fM(e).splitAreaColors=null}var hM=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],gM=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new Ta,this.group.add(this._axisGroup),bT(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),R(hM,function(e){t.get([e,`show`])&&_M[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Tp(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){mM(this)},t.type=`cartesianAxis`,t}(dM),_M={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=H(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Tf({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:P({stroke:c[x]},_),silent:!0});_p(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Tf({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});_p(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){pM(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=rk(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},vM=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(gM),yM=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=vM.type,t}return t.type=`yAxis`,t}(gM),bM=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Bl({shape:e.coordinateSystem.getRect(),style:P({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(yy),xM={offset:0};function SM(e){e.registerComponentView(bM),e.registerComponentModel(tA),e.registerCoordinateSystem(`cartesian2d`,Rj),Aj(e,`x`,Tj,xM),Aj(e,`y`,Tj,xM),e.registerComponentView(vM),e.registerComponentView(yM),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function CM(e){bE(SM),e.registerSeriesModel(vj),e.registerChartView(Cj),e.registerLayout(XO(`scatter`))}function wM(e){var t=e.polar;if(t){H(t)||(t=[t]);var n=[];R(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],H(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}R(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var TM=`radar`,EM=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ZA(V(this.getData,this),V(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return XA(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=ry(this,e);return Wv(`section`,{header:o,sortBlocks:!0,blocks:z(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return Wv(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(z(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.`+TM,t.dependencies=[`radar`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`radar`,legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:`solid`,join:`round`},label:{position:`top`},symbolSize:8},t}(uy),DM=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=TM,t}return t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=Wb(e.getItemVisual(t,`symbolSize`)),i=Ub(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),rp[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return z(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new bf,i=new Sf,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),Zf(r,o,e,t),Zf(i,o,e,t);var s=new Ta,u=new Ta;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),np(s),np(i),Xf(i,u,e),Xf(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(P(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),vd(r,n,`lineStyle`),vd(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,R([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&d;var a=n.getModel([e,`lineStyle`]).getLineStyle();r.ensureState(e).style=a;var c=t.getAreaStyle();o.ensureState(e).style=c;var l=n.getModel([e,`itemStyle`]).getItemStyle();s.eachChild(function(t){t.ensureState(e).style=A(l)})}),o.useStyle(P(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof Ml){var r=e.style;e.useStyle(M({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(i==null||isNaN(i))&&(i=``),em(e,tm(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),md(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=TM,t}(Cy),OM=kj.value,kM=`radar`,AM=kM,jM=kM;function MM(e,t){return P({show:t},e)}var NM=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`clockwise`),r=this.get(`scale`),i=this.get(`axisLine`),a=this.get(`axisTick`),o=this.get(`axisLabel`),s=this.get(`axisName`),c=this.get([`axisName`,`show`]),l=this.get([`axisName`,`formatter`]),u=this.get(`axisNameGap`),d=this.get(`triggerEvent`);this._indicatorModels=z(this.get(`indicator`)||[],function(f){f.max!=null&&f.max>0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var p=s;f.color!=null&&(p=P({color:f.color},s));var m=j(A(f),{boundaryGap:e,splitNumber:t,clockwise:n,scale:r,axisLine:i,axisTick:a,axisLabel:o,name:f.text,showName:c,nameLocation:`end`,nameGap:u,nameTextStyle:p,triggerEvent:d},!1);if(W(l)){var h=m.name;m.name=l.replace(`{value}`,h??``)}else U(l)&&(m.name=l(m.name,m));var g=new Tm(m,null,this.ecModel);return I(g,ET.prototype),g.mainType=`radar`,g.componentIndex=this.componentIndex,g.uid=Dm(`ec_radar`),g},this)},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=AM,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,clockwise:!1,axisName:{show:!0,color:q.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:j({lineStyle:{color:q.color.neutral20}},OM.axisLine),axisLabel:MM(OM.axisLabel,!1),axisTick:MM(OM.axisTick,!1),splitLine:MM(OM.splitLine,!0),splitArea:MM(OM.splitArea,!0),indicator:[]},t}(fg),PM=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;R(z(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new _k(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=H(u)?u:[u],p=H(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new Jd({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new gf({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=z(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),z(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]&&T.push(T[0].slice()),c){var x=g(m,f,b);m[x].push(new Sf({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new bf({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();R(h,function(e,t){this.group.add(hp(e,{style:P({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),R(m,function(e,t){this.group.add(hp(e,{style:P({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(yy),FM=function(e){i(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}(JE),IM=function(){function e(e,t,n){this.type=kM,this.dimensions=[],this._model=e,this._indicatorAxes=z(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new FM(n,new Bw);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=ag(e,t).refContainer,r=e.get(`center`),i=e.get(`clockwise`)||!1,a=Math.min(n.width,n.height)/2;this.cx=Ja(r[0],n.width)+n.x,this.cy=Ja(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var o=e.get(`radius`);(W(o)||se(o))&&(o=[0,o]),this.r0=Ja(o[0],a),this.r=Ja(o[1],a);var s=i?-1:1;R(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+s*t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model,i=Iw(r.get(`splitNumber`),5),a=new Bw;a.setExtent(0,i),a.setConfig({interval:1}),R(n,function(e){nE(e,1),Ij(e,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(AM,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(jM,function(e){if(e.get(`coordinateSystem`)===`radar`){var t=e.coordinateSystem=r[e.get(`radarIndex`)||0];t&&R(t.getIndicatorAxes(),function(t){UT(t,e,kM)})}}),r},e.dimensions=[],e}();function LM(e){e.registerCoordinateSystem(`radar`,IM),e.registerComponentModel(NM),e.registerComponentView(PM),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}var RM=Ss(TM,zM);function zM(e){e.eachSeriesByType(TM,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();R(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=BM(i)?i:VM(r)})}),t.each(function(e){var i=re(n[e],function(e){return BM(e)})||VM(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function BM(e){return!isNaN(e[0])&&!isNaN(e[1])}function VM(e){return[e.cx,e.cy]}function HM(e){bE(LM),e.registerChartView(DM),e.registerSeriesModel(EM),e.registerLayout(RM),e.registerProcessor(YA(`radar`)),e.registerPreprocessor(wM)}function UM(e){return e}var WM=`view`;(function(e){i(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=WM,i.dimensions=[`x`,`y`];var a=UM(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=Gi(),o[1]=Gi(),o[2]=Gi(),a.mtRaw=At(),a.mtRawInv=At(),a.mtOverall=At(),a.mtOverallInv=At(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return qM(null,this)},t.prototype.getViewRect=function(){return JM(null,this)},t.prototype.getRoamTransform=function(){return Wi(UM(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?UM(this).mtRaw:UM(this).mtOverall;return n||=[],r?Ye(n,e,r):Fe(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=UM(this).mtOverallInv;return r?Ye(n,e,r):Fe(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=YM(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=YM(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=UM(this);return tn(GM,t.dataRect),rn(GM,GM,t.mtOverall),an(GM,e[0],e[1])},t.dimensions=[`x`,`y`],t})(Ui);var GM=$t();function KM(e){return UM(e).zoom}function qM(e,t){return tn(e||$t(),UM(t).dataRect)}function JM(e,t){return tn(e||$t(),UM(t).viewRect)}$t();function YM(e){var t=e.seriesModel;return t?t.coordinateSystem:null}Gi(),Gi();var XM=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s,c=e.layout;a===`category`?(c=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`&&(c=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)),c||=o===`time`?`vertical`:`horizontal`,this._layout=c;var l=[`x`,`y`],u=c===`horizontal`?0:1,d=this._baseAxisDim=l[u],f=l[1-u],p=[r,i],m=p[u].get(`type`),h=p[1-u].get(`type`),g=e.data;if(g&&s){var _=[];R(g,function(e,t){var n;H(e)?(n=e.slice(),e.unshift(t)):H(e.value)?(n=M({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,_.push(n)}),e.data=_}var v=this.defaultValueDimensions,y=[{name:d,type:CC(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:f,type:CC(h),dimsDef:v.slice()}];return XA(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:ae(Tg,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e.prototype.getWhiskerBoxesLayout=function(){return this._layout},e}();function ZM(e,t){for(var n=t.ends.length,r=0,i=0;i<n;i++)e.contain(t.ends[i][0],t.ends[i][1])&&r++;return r?r<n?1:0:2}var QM=`candlestick`,$M=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.`+QM,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.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},t}(uy);I($M,XM,!0);var eN=[`itemStyle`,`borderColor`],tN=[`itemStyle`,`borderColor0`],nN=[`itemStyle`,`borderColorDoji`],rN=[`itemStyle`,`color`],iN=[`itemStyle`,`color0`];function aN(e,t){return t.get(e>0?rN:iN)}function oN(e,t){return t.get(e===0?nN:e>0?eN:tN)}var sN={seriesType:QM,plan:by(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=aN(i,r),a.stroke=oN(i,r)||a.fill,M(t.ensureUniqueItemVisual(n,`style`),a)}}}}},cN=[`color`,`borderColor`],lN=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Rp(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea(),c=a&&wO(o,!1,e);this._data||r.removeAll();var l=hN(e);t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n),u=a?ZM(s,o):0;if(u===2)return;var d=fN(o,n,l,!0);Zf(d,{shape:{points:o.ends}},e,n),TO(u===1,d,c),pN(d,t,n,i),r.add(d),t.setItemGraphicEl(n,d)}}).update(function(o,u){var d=n.getItemGraphicEl(u);if(!t.hasValue(o)){r.remove(d);return}var f=t.getItemLayout(o),p=a?ZM(s,f):0;if(p===2){r.remove(d);return}d?(Xf(d,{shape:{points:f.ends}},e,o),np(d)):d=fN(f,o,l),pN(d,t,o,i),TO(p===1,d,c),r.add(d),t.setItemGraphicEl(o,d)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),vN(e,this.group);var t=e.get(`clip`,!0)?wO(e.coordinateSystem,!1,e):null;TO(!!t,this.group,t)},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i=hN(t),a;(a=e.next())!=null;){var o=fN(n.getItemLayout(a),a,i);pN(o,n,a,r),o.incremental=bs(t),this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){vN(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),TO(!1,this.group,null),this._data=null},t.type=QM,t}(Cy),uN=function(){function e(){}return e}(),dN=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new uN},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(El);function fN(e,t,n,r){var i=e.ends;return new dN({shape:{points:r?mN(i,n,e):i},z2:100})}function pN(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0;var a=i.getShallow(`cursor`);a&&e.attr(`cursor`,a),e.__simpleBox=r,vd(e,i);var o=t.getItemLayout(n).sign;R(e.states,function(e,t){var n=i.getModel(t),r=aN(o,n),a=oN(o,n)||r,s=e.style||={};r&&(s.fill=r),a&&(s.stroke=a)});var s=i.getModel(`emphasis`);md(e,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}function mN(e,t,n){return z(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function hN(e){return e.getWhiskerBoxesLayout()===`horizontal`?1:0}var gN=function(){function e(){}return e}(),_N=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new gN},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(El);function vN(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new _N({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new _N({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new _N({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),yN(1,o,e,i),yN(-1,s,e,i),yN(0,c,e,i),r&&(o.incremental=bs(e),s.incremental=bs(e),c.incremental=bs(e)),n&&n.push(o,s,c)}function yN(e,t,n,r){var i=oN(e,n)||aN(e,n),a=n.getModel(`itemStyle`).getItemStyle(cN);t.useStyle(a),t.style.fill=null,t.style.stroke=i;var o=n.get(`cursor`);o&&t.attr(`cursor`,o)}function bN(e){!e||!H(e.series)||R(e.series,function(e){ce(e)&&e.type===`k`&&(e.type=QM)})}var xN=hs(),SN={seriesType:QM,plan:by(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=wN(e,n),i=e.getWhiskerBoxesLayout()===`horizontal`?0:1,a=1-i,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=z(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),l=c[0],u=c[1],d=c[2],f=c[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||c.length<4)return;return{progress:e.pipelineContext.large?m:p};function p(e,n){for(var o,c=n.getStore();(o=e.next())!=null;){var p=c.get(s,o),m=c.get(l,o),h=c.get(u,o),g=c.get(d,o),_=c.get(f,o),v=Ia(m,h),y=La(m,h),b=E(v,p),x=E(y,p),S=E(g,p),C=E(_,p),w=[];D(w,x,0),D(w,b,1),w.push(k(C),k(x),k(S),k(b));var T=!!n.getItemModel(o).get([`itemStyle`,`borderColorDoji`]);n.setItemLayout(o,{sign:CN(c,o,m,h,u,T),initBaseline:m>h?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=yp(a[i]+r/2,1,!1),o[i]=yp(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=yp(e[i],1),e}}function m(n,r){for(var o=dO(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=CN(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function CN(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function wN(e,t){var n=WE(e.getBaseAxis(),{fromStat:{key:qk(QM)},min:1}).w,r=Ja(G(e.get(`barMaxWidth`),n),n),i=Ja(G(e.get(`barMinWidth`),1),n),a=e.get(`barWidth`);return a==null?La(Ia(n/2,r),i):Ja(a,n)}function TN(e){xN(e,function(){var t=qk(QM);GT(e,{key:t,seriesType:QM,getMetrics:Yk}),oE(t,Kk(t))})}function EN(e){e.registerChartView(lN),e.registerSeriesModel($M),e.registerPreprocessor(bN),e.registerVisual(sN),e.registerLayout(SN),TN(e)}var DN={color:`fill`,borderColor:`stroke`},ON={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},kN=Yo(),AN=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return sw(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=kN(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(uy);function jN(e,t){return t||=[0,0],z([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?WE(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function MN(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:V(jN,e)}}}function NN(e,t){return t||=[0,0],z([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function PN(e){var t=e.view,n=t.getBoundingRect();return{coordSys:{type:`geo`,x:n.x,y:n.y,width:n.width,height:n.height,zoom:KM(t)},api:{coord:function(t){return e.dataToPoint(t)},size:V(NN,e)}}}function FN(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?WE(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function IN(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:V(FN,e)}}}function LN(e,t){return t||=[0,0],z([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?WE(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function RN(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:V(LN,e)}}}function zN(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function BN(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var VN={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},HN=B(VN);te(Ki,function(e,t){return e[t]=1,e},{}),Ki.join(`, `);var UN=[``,`style`,`shape`,`extra`],WN=Yo();function GN(e,t,n,r,i){var a=e+`Animation`,o=Jf(e,r,i)||{},s=WN(t).userDuring;return o.duration>0&&(o.during=s?V(tP,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),M(o,n[a]),o}function KN(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=WN(e),l=t.style;c.userDuring=t.during;var u={},d={};if(aP(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];rP(`shape`,h,f[m])}else rP(`shape`,t,d),rP(`extra`,t,d);if(!a&&s&&(iP(e,t,u),nP(`shape`,e,t,u),nP(`extra`,e,t,u),oP(e,t,l,u)),d.style=l,XN(e,d,o),QN(e,t),s)if(a){var g={};R(UN,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),M(e?g[e]:g,n.enterFrom))});var _=GN(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else ZN(e,t,i||0,n,u);qN(e,t),l?e.dirty():e.markRedraw()}function qN(e,t){for(var n=WN(e).leaveToProps,r=0;r<UN.length;r++){var i=UN[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=WN(e).leaveToProps={},i&&(n[i]=n[i]||{}),M(i?n[i]:n,a.leaveTo))}}function JN(e,t,n,r){if(e){var i=e.parent,a=WN(e).leaveToProps;if(a){var o=GN(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function YN(e){return e===`all`}function XN(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function ZN(e,t,n,r,i){if(i){var a=GN(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function QN(e,t){K(t,`silent`)&&(e.silent=t.silent),K(t,`ignore`)&&(e.ignore=t.ignore),e instanceof yc&&K(t,`invisible`)&&(e.invisible=t.invisible),e instanceof El&&K(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var $N={},eP={setTransform:function(e,t){return $N.el[e]=t,this},getTransform:function(e){return $N.el[e]},setShape:function(e,t){var n=$N.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=$N.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=$N.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=$N.el.style;if(t)return t[e]},setExtra:function(e,t){var n=$N.el.extra||($N.el.extra={});return n[e]=t,this},getExtra:function(e){var t=$N.el.extra;if(t)return t[e]}};function tP(){var e=this,t=e.el;if(t){var n=WN(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}$N.el=t,r(eP)}}function nP(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),YN(c))M(o,a);else for(var l=ko(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(YN(s)||F(s,e)>=0){!o&&(o=r[e]={});for(var p=B(a),u=0;u<p.length;u++){var d=p[u],f=a[d];sP(i[d],f)&&(o[d]=f)}}}}}function rP(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=B(r),o=0;o<a.length;o++){var s=a[o];i[s]=Jr(r[s])}}function iP(e,t,n){for(var r=t.transition,i=YN(r)?Ki:ko(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function aP(e,t,n){for(var r=0;r<HN.length;r++){var i=HN[r],a=VN[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<Ki.length;r++){var s=Ki[r];t[s]!=null&&(n[s]=t[s])}}function oP(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!YN(o)){var c=ko(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(YN(s)||YN(o)||F(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=B(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function sP(e,t){return L(e)?e!==t:e!=null&&isFinite(e)}var cP=Yo(),lP=[`percent`,`easing`,`shape`,`style`,`extra`];function uP(e){e.stopAnimation(`keyframe`),e.attr(cP(e))}function dP(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(H(t)){R(t,function(t){dP(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=Jf(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=cP(e);R(UN,function(n){if(!(n&&!e[n])){var a;r.sort(function(e,t){return e.percent-t.percent}),R(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=B(c);if(n||(l=ne(l,function(e){return F(lP,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;R(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var fP=`emphasis`,pP=`normal`,mP=`blur`,hP=`select`,gP=[pP,fP,mP,hP],_P={normal:[`itemStyle`],emphasis:[fP,`itemStyle`],blur:[mP,`itemStyle`],select:[hP,`itemStyle`]},vP={normal:[`label`],emphasis:[fP,`label`],blur:[mP,`label`],select:[hP,`label`]},yP=[`x`,`y`],bP=`e\0\0`,xP={normal:{},emphasis:{},blur:{},select:{}},SP={cartesian2d:MN,geo:PN,single:IN,polar:RN,calendar:zN,matrix:BN};function CP(e){return e instanceof El}function wP(e){return e instanceof yc}function TP(e,t){t.copyTransform(e),wP(t)&&wP(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,CP(t)&&CP(e)&&t.setShape(e.shape))}var EP=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=MP(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){PP(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&JN(n,kN(n).option,e)}).update(function(t,c){PP(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?wO(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=MP(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=bs(t),e.ensureState(`emphasis`).hoverLayer=2)}for(var l=e.start;l<e.end;l++){var u=PP(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){Rp(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type=`custom`,t}(Cy);function DP(e){var t=e.type,n;if(t===`path`){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=JP(r);n=fp(a,null,i,r.layout||`center`),kN(n).customPathData=a}else if(t===`image`)n=new Ml({}),kN(n).customImagePath=e.style.image;else if(t===`text`)n=new Gl({});else if(t===`group`)n=new Ta;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;To(o)}n=new Mf({shape:{paths:z(r.paths,function(e){if(e.type===`path`)return fp(e.shape.pathData,e,null);var t=dp(e.type);return t||To(``),new t})}})}else{var s=dp(t);if(!s){var o=``;To(o)}n=new s}return kN(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function OP(e,t,n,r,i,a,o){uP(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=yP);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;K(l,`textFill`)&&(l.fill=l.textFill),K(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=CP(t)?c.decal:null;e&&d&&(d.dirty=!0,u=Nx(d,e)),c.__decalPattern=u}if(wP(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}KN(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),dP(t,r.keyframeAnimation,a)}function kP(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(r===!1){var c=a.getState(e);c&&(c.style=null)}else s.style=r||null;o&&(s.textConfig=o),Ku(a)}}function AP(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<gP.length;s++)jP(r,t,gP[s])}}function jP(e,t,n){var r=n===pP,i=r?t:BP(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function MP(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=Ob(i);a&&(i=a)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):SP[o.type](o));for(var c=P({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:C,ordinalRawValue:S,styleEmphasis:w,visual:D,barLayout:O,currentSeriesIndices:k,font:A},s.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:NP(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<gP.length;g++){var _=gP[g];m[_]=e.getModel(_P[_]),h[_]=e.getModel(vP[_])}function v(e){return e===u?d||=t.getItemModel(e):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===u?f[n]||(f[n]=v(e).getModel(_P[n])):v(e).getModel(_P[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(vP[n])):v(e).getModel(vP[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(P({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},l),c)};function x(e,n){return n??=u,t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){n??=u,e||=0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,pP).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:W(a)?a:q.color.neutral99},l=b(r,pP),d=nm(l,null,c,!1,!0);d.text=l.getShallow(`show`)?G(e.getFormattedLabel(r,pP),XD(t,r)):null;var f=rm(l,c,!1);return E(n,s),s=jO(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,fP).getItemStyle(),a=b(r,fP),o=nm(a,null,null,!0,!0);o.text=a.getShallow(`show`)?ge(e.getFormattedLabel(r,fP),e.getFormattedLabel(r,pP),XD(t,r)):null;var s=rm(a,null,!0);return E(n,i),i=jO(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)K(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,K(DN,e)){var r=t.getItemVisual(n,`style`);return r?r[DN[e]]:null}if(K(ON,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return aA(P({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return um(e,n)}}function NP(e){var t={};return R(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function PP(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=FP(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&md(s,r.focus,r.blurScope,r.emphasisDisabled),s}function FP(e,t,n,r,i,a){var o=-1,s=t;t&&IP(t,r,i)&&(o=F(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=DP(r),s&&TP(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),xP.normal.cfg=xP.normal.conOpt=xP.emphasis.cfg=xP.emphasis.conOpt=xP.blur.cfg=xP.blur.conOpt=xP.select.cfg=xP.select.conOpt=null,xP.isLegacy=!1,RP(l,n,r,i,c,xP),LP(l,n,r,i,c),OP(e,l,n,r,xP,i,c),K(r,`info`)&&(kN(l).info=r.info);for(var u=0;u<gP.length;u++){var d=gP[u];if(d!==pP){var f=BP(r,d),p=VP(r,f,d);kP(d,l,f,p,xP)}}return AP(l,r,i),r.type===`group`&&HP(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function IP(e,t,n){var r=kN(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&YP(a)&&JP(a)!==r.customPathData||i===`image`&&K(o,`image`)&&o.image!==r.customImagePath}function LP(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&IP(o,a,r)&&(o=null),o||(o=DP(a),e.setClipPath(o)),OP(null,o,t,a,null,r,i)}}function RP(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){zP(n,null,a),zP(n,fP,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=DP(o),e.setTextContent(u)),OP(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<gP.length;f++){var p=gP[f];if(p!==pP){var m=a[p].conOpt;kP(p,u,m,VP(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function zP(e,t,n){var r=t?BP(e,t):e,i=t?VP(e,r,fP):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?BP(s,t):s:null;if(i&&(n.isLegacy||OO(i,a,!!o,!!c))){n.isLegacy=!0;var l=kO(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;!u.type&&(u.type=`text`)}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=c}function BP(e,t){return t?e?e[t]:null:e}function VP(e,t,n){var r=t&&t.style;return r==null&&n===fP&&e&&(r=e.styleEmphasis),r}function HP(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c=s===`byName`||r.diffChildrenByName,l=s===!1;if(!(!o&&!c&&!l)){if(c){WP({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});return}l&&t.removeAll();for(var u=0;u<o;u++){var d=a[u],f=t.childAt(u);d?(d.ignore??=!1,FP(e,f,n,d,i,t)):f.ignore=!0}for(var p=t.childCount()-1;p>=u;p--)UP(t,t.childAt(p),i)}}function UP(e,t,n){t&&JN(t,kN(e).option,n)}function WP(e){new yC(e.oldChildren,e.newChildren,GP,GP,e).add(KP).update(KP).remove(qP).execute()}function GP(e,t){return(e&&e.name)??bP+t}function KP(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];FP(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function qP(e){var t=this.context,n=t.oldChildren[e];n&&JN(n,kN(n).option,t.seriesModel)}function JP(e){return e&&(e.pathData||e.d)}function YP(e){return e&&(K(e,`pathData`)||K(e,`d`))}function XP(e){e.registerChartView(EP),e.registerSeriesModel(AN)}var ZP=Yo(),QP=A,$P=V,eF=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Ta,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ae(tF,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}aF(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&WE(r).w>o)return!0;if(a){var s=oM(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=ZP(e).pointerEl=new rp[i.type](QP(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=ZP(e).labelEl=new Gl(QP(t.label));e.add(i),rF(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=ZP(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=ZP(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),rF(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Op(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Tt(e.event)},onmousedown:$P(this._onHandleDragMove,this,0,0),drift:$P(this._onHandleDragMove,this),ondragend:$P(this._onHandleDragEnd,this)}),n.add(r)),aF(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);H(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Ny(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){tF(this._axisPointerModel,!t&&this._moveAnimation,this._handle,iF(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(iF(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(iF(r)),ZP(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Py(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function tF(e,t,n,r){nF(ZP(n).lastProp,r)||(ZP(n).lastProp=r,t?Xf(n,r,e):(n.stopAnimation(),n.attr(r)))}function nF(e,t){if(ce(e)&&ce(t)){var n=!0;return R(t,function(t,r){n&&=nF(e[r],t)}),!!n}else return e===t}function rF(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function iF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function aF(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function oF(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function sF(e,t,n,r,i){var a=lF(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Mh(o.get(`padding`)||0),c=o.getFont(),l=na(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),cF(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:nm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function cF(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function lF(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:hT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),W(o)?a=o.replace(`{value}`,a):U(o)&&(a=o(s))}return a}function uF(e,t,n){var r=At();return Ft(r,r,n.rotation),Pt(r,r,n.position),xp([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function dF(e,t,n,r,i,a){var o=_k.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),sF(t,r,i,a,{position:uF(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function fF(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function pF(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function mF(e,t,n){return WE(e,{fromStat:{sers:z(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function hF(e,t,n){return[La(Ia(t[0],t[1]),e-n/2),Ia(e+n/2,La(t[0],t[1]))]}var gF=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=_F(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=oF(r),f=vF[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}dF(t,e,Rk(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=Rk(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=uF(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=_F(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Ia(o[1],l[c]),l[c]=La(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(eF);function _F(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var vF={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:fF([t,r[0]],[t,r[1]],yF(e))}},shadow:function(e,t,n,r,i,a){var o=mF(e,i,a),s=r[1]-r[0],c=hF(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:pF([l,r[0]],[u-l,s],yF(e))}}};function yF(e){return e.dim===`x`?0:1}var bF=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:q.color.border,width:1,type:`dashed`},shadowStyle:{color:q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:q.color.neutral00,padding:[5,7,5,7],backgroundColor:q.color.accent60,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:q.color.accent40,throttle:40}},t}(fg),xF=Yo(),SF=R;function CF(e,t,n){if(!o.node){var r=t.getZr();xF(r).records||(xF(r).records={}),wF(r,t);var i=xF(r).records[e]||(xF(r).records[e]={});i.handler=n}}function wF(e,t){if(xF(e).initialized)return;xF(e).initialized=!0,n(`click`,ae(DF,`click`)),n(`mousemove`,ae(DF,`mousemove`)),n(`mousewheel`,ae(DF,`mousewheel`)),n(`globalout`,EF);function n(n,r){e.on(n,function(n){var i=OF(t);SF(xF(e).records,function(e){e&&r(e,n,i.dispatchAction)}),TF(i.pendings,t)})}}function TF(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function EF(e,t,n){e.handler(`leave`,null,n)}function DF(e,t,n,r){t.handler(e,n,r)}function OF(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function kF(e,t){if(!o.node){var n=t.getZr();(xF(n).records||{})[e]&&(xF(n).records[e]=null)}}var AF=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;CF(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){kF(`axisPointer`,t)},t.prototype.dispose=function(e,t){kF(`axisPointer`,t)},t.type=`axisPointer`,t}(yy);function jF(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Jo(a,e);if(o==null||o<0||H(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=u===`x`||u===`radius`?1:0,p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(z(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var MF=Yo();function NF(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||V(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){UF(i)&&(i=jF({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=UF(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||UF(i),f={},p={},m={list:[],map:{}},h={showPointer:ae(IF,p),showTooltip:ae(LF,m)};R(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);R(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=VF(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&PF(e,o,h,!1,f)}})});var g={};return R(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&R(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,HF(t),HF(e)))),g[e.key]=a}})}),R(g,function(e,t){PF(u[t],e,h,!0,f)}),RF(p,u,f),zF(m,i,e,o),BF(u,o,n),f}}function PF(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=FF(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&M(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function FF(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(yo(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),R(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function IF(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function LF(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=lM(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function RF(e,t,n){var r=n.axesInfo=[];R(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function zF(e,t,n,r){if(UF(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function BF(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=MF(r)[i]||{},o=MF(r)[i]={};R(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&R(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}R(a,function(e,t){!o[t]&&c.push(l(e))}),R(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function VF(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function HF(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function UF(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function WF(e){dM.registerAxisPointerClass(`CartesianAxisPointer`,gF),e.registerComponentModel(bF),e.registerComponentView(AF),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=$j(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},NF)}function GF(e){bE(SM),bE(WF)}function KF(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function qF(e,t){var n;return R(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function JF(e,t,n){var r=M({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(j(i,r,!0),cg(i,r,{ignoreSize:!0}),ug(n,i),ZF(n,i),ZF(n,i,`shape`),ZF(n,i,`style`),ZF(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var YF=[`transition`,`enterFrom`,`leaveTo`],XF=YF.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function ZF(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?YF:XF,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function QF(e,t){if(e&&(e.hv=t.hv=[qF(t,[`left`,`right`]),qF(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var $F=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=Po(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];R(o,function(e,t){var n=e.newOption;n&&(s.push(n),KF(e,n),JF(i,t,n),QF(i[t],n))},this),n.elements=ne(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){R(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(fg),eI={path:null,compoundPath:null,group:Ta,image:Ml,text:Gl},tI=Yo(),nI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=Oe()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);R(t,function(t){var o=Uo(t.id,null),s=o==null?null:n.get(o),c=Uo(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&OO(d,u,!!p,!!f)){var m=kO(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=sI(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=iI(o,l,t.type,n):(b&&(tI(b).isNew=!1),uP(b)),b&&(KN(b,h,e,{isInit:y}),oI(b,t,i,a))}else if(v){aI(s,t,n,e);var x=iI(o,l,t.type,n);x&&(KN(x,h,e,{isInit:!0}),oI(x,t,i,a))}else g===`remove`&&(qN(s,t),aI(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new Gl(f))}else v&&S.setTextContent(new Gl(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||tI(D).type!==T,E=y?rI(T):D}else v&&(y=!0,E=rI(T));S.setClipPath(E),KN(E,w,e,{isInit:y}),dP(E,w.keyframeAnimation,e)}var O=tI(S);S.setTextConfig(p),O.option=t,cI(S,e,t),Ip({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),dP(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=Uo(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=tI(d),h=tI(f);m.width=Ja(m.option.width,p?a:h.width)||0,m.height=Ja(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=Uo(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=tI(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=og(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!tI(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(YN(y)||F(y,S)>=0)?b[S]=C:d[S]=C}Xf(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){aI(n,tI(n).option,t,e._lastGraphicModel)}),this._elMap=Oe()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(yy);function rI(e){var t=new(K(eI,e)?eI[e]:dp(e))({});return tI(t).type=e,t}function iI(e,t,n,r){var i=rI(n);return t.add(i),r.set(e,i),tI(i).id=e,tI(i).isNew=!0,i}function aI(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){aI(e,t,n,r)}),JN(e,t,r),n.removeKey(tI(e).id))}function oI(e,t,n,r){e.isGroup||R([[`cursor`,yc.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];K(t,r)?e[r]=G(t[r],n[1]):e[r]??(e[r]=n[1])}),R(B(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=U(r)?r:null}}),K(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function sI(e){return e=M({},e),R([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(Xh),function(t){delete e[t]}),e}function cI(e,t,n){var r=au(e).eventData;!e.silent&&!e.ignore&&!r&&(r=au(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function lI(e){e.registerComponentModel($F),e.registerComponentView(nI),e.registerPreprocessor(function(e){var t=e.graphic;H(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}function uI(e,t){var n=Mh(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Bl({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var dI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:q.color.tertiary,fontSize:14}},t}(fg);function fI(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function pI(e){if(o.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var mI=pI([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),hI=pI([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function gI(e,t){if(!e)return t;t=jh(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function _I(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var vI=gI(hI,`transition`),yI=gI(mI,`transform`),bI=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(o.transform3dSupported?`will-change:transform;`:``);function xI(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function SI(e,t,n){if(!W(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Rh(t);var a=xI(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=yI+`:`,l;F([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function CI(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(o.transformSupported?``+yI+i:`,left`+i+`,top`+i)),vI+`:`+a}function wI(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!o.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=o.transform3dSupported,s=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+yI+`:`+s+`;`:[[`top`,0],[`left`,0],[mI,s]]}function TI(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=G(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),R([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function EI(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=iy(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(CI(a,n,r)),o&&i.push(`background-color:`+o),R([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=jh(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(TI(d)),f!=null&&i.push(`padding:`+Mh(f).join(`px `)+`px`),i.join(`;`)+`;`}function DI(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&ot(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var OI=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,o.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(W(i)?document.querySelector(i):de(i)?i:U(i)&&i(e.getDom()));DI(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!s._enterable){var t=r.handler;xt(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=_I(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=bI+EI(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+wI(i[0],i[1],!0)+(`border-color:`+Rh(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(W(i)&&n.get(`trigger`)===`item`&&!fI(n)&&(o=SI(n,r,i)),W(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,H(e)||(e=[e]);for(var s=0;s<e.length;s++)de(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(DI(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;R(wI(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,o.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(V(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;st(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),kI=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),MI(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;ce(e)&&To(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Gl({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:iy(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),R([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),R([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=jI(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;MI(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=AI(i.borderWidth||0),o=jI(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(V(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function AI(e){return Math.max(0,e)}function jI(e){var t=AI(e.shadowBlur||0),n=AI(e.shadowOffsetX||0),r=AI(e.shadowOffsetY||0);return{left:AI(t-n),right:AI(t+n),top:AI(t-r),bottom:AI(t+r)}}function MI(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var NI=new Bl({shape:{x:-1,y:-1,width:2,height:2}}),PI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(o.node||!t.getDom())){var n=e.getComponent(`tooltip`);this._tooltipContent=(this._renderMode=is(n.get(`renderMode`)))===`richText`?new kI(t):new OI(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(o.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?Ny(this,`_updatePosition`,50,`fixRate`):Py(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);CF(`itemTooltip`,this._api,V(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||o.node||!n.getDom())){var i=II(r,n);this._ticket=``;var a=r.dataByCoordSys,s=VI(r,t,n);if(s){var c=s.el.getBoundingRect().clone();c.applyTransform(s.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:s.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var l=NI;l.x=r.x,l.y=r.y,l.update(),au(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=jF(r,t),d=u.point[0],f=u.point[1];d!=null&&f!=null&&this._tryShow({offsetX:d,offsetY:f,target:u.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(II(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&FI([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(au(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;xb(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(au(e).dataIndex==null?au(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=V(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=FI([t.tooltipOption],r),o=this._renderMode,s=[],c=Wv(`section`,{blocks:[],noHeader:!0}),l=[],u=new ay;R(e,function(e){R(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=lF(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=Wv(`section`,{header:f,noHeader:!be(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),R(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=hT(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Rh(m.color),o);var h=ov(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=FI([a],r).get(`valueFormatter`);p.blocks.push(_?M({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Xv(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
15
+
16
+ `:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=au(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=FI([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new ay;h.marker=g.makeTooltipMarker(`item`,Rh(h.color),d);var _=ov(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Xv(y?M({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=au(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(W(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=A(a),a.content=mt(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=FI(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new ay;this._showOrMove(d,function(){var n=A(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(W(u)){var p=e.ecModel.get(`useUTC`),m=H(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=fh(m.axisValue,d,p)),d=Ih(d,n,!0)}else if(U(u)){var g=V(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||H(t))return{color:r||i};if(!H(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),U(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),H(t))n=Ja(t[0],s),r=Ja(t[1],c);else if(ce(t)){var p=t;p.width=l[0],p.height=l[1];var m=rg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(W(t)&&o){var h=zI(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=LI(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=BI(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=BI(d)?l[1]/2:d===`bottom`?l[1]:0),fI(e)){var h=RI(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&R(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&R(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&R(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&R(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){o.node||!t.getDom()||(Py(this,`_updatePosition`),this._tooltipContent.dispose(),kF(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(yy);function FI(e,t,n){var r=t.ecModel,i;n?(i=new Tm(n,r,r),i=new Tm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Tm&&(o=o.get(`tooltip`,!0)),W(o)&&(o={formatter:o}),o&&(i=new Tm(o,i,r)))}return i}function II(e,t){return e.dispatchAction||V(t.dispatchAction,t)}function LI(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function RI(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function zI(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function BI(e){return e===`center`||e===`middle`}function VI(e,t,n){var r=Qo(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=es(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=au(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function HI(e){bE(WF),e.registerComponentModel(dI),e.registerComponentView(PI),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Me),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Me)}var UI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:q.size.m,backgroundColor:q.color.transparent,borderColor:q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:q.color.primary},subtextStyle:{fontSize:12,color:q.color.quaternary}},t}(fg),WI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=G(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Gl({style:nm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Gl({style:nm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){zh(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){zh(p,`_`+e.get(`subtarget`))}),au(c).eventData=au(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=rg(g,ag(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Bl({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(yy);function GI(e){e.registerComponentModel(UI),e.registerComponentView(WI)}var KI=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},qI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),H(t)&&R(t,function(e,r){W(e)&&(e={type:e}),t[r]=j(e,KI(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&Wo(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=Oe();this._data=ne(z(r,function(e){return(W(e)||se(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Tm(e,this,this.ecModel))},this),function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;R(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;R(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;R(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&F(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:q.size.m,align:`auto`,backgroundColor:q.color.transparent,borderColor:q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:q.color.disabled,inactiveBorderColor:q.color.disabled,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:q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:q.color.tertiary,borderWidth:1,borderColor:q.color.border},emphasis:{selectorLabel:{show:!0,color:q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(fg),JI=ae,YI=R,XI=Ta,ZI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new XI),this.group.add(this._selectorGroup=new XI),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=ag(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=rg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=rg(P({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=uI(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Oe(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),YI(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
17
+ `)){var p=new XI;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,JI(eL,f,null,r,d)).on(`mouseover`,JI(tL,m.name,null,r,d)).on(`mouseout`,JI(nL,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=au(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Or(h.fill);_&&_[3]===0&&(_[3]=.2,h=M(M({},h),{fill:Pr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,JI(eL,null,f,r,d)).on(`mouseover`,JI(tL,null,f,r,d)).on(`mouseout`,JI(nL,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=au(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};au(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();YI(e,function(e){var r=e.type,i=new Gl({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),em(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),fd(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=QI(c,r,o,s,d,m,u),y=new XI,b=r.getModel(`textStyle`);if(U(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add($I({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;W(w)&&w?T=w.replace(`{name}`,t??``):U(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Gl({style:nm(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Bl({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Ip({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),fd(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();$h(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){$h(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(yy);function QI(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),YI(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:Nx(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function $I(e){var t=e.icon||`roundRect`,n=Ub(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=q.color.neutral00,n.style.lineWidth=2),n}function eL(e,t,n,r){nL(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),tL(e,t,n,r)}function tL(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function nL(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function rL(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),iL(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){R(i,function(t,n){e[t?`select`:`unSelect`](n)}),iL(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function iL(e,t){var n=t||{};return R(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
18
+ `||r===``)){var i=e.isSelected(r);K(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function aL(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,ae(rL,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,ae(rL,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,ae(rL,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,ae(rL,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,ae(rL,`unSelect`))}var oL=Cs(sL);function sL(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function cL(e){e.registerComponentModel(qI),e.registerComponentView(ZI),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,oL),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),aL(e)}var lL=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=lg(t);e.prototype.init.call(this,t,n,r),uL(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),uL(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=Am(qI.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:q.color.accent50,pageIconInactiveColor:q.color.accent10,pageIconSize:15,pageTextStyle:{color:q.color.tertiary},animationDurationUpdate:800}),t}(qI);function uL(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,cg(t,n,{type:`box`,ignoreSize:!!i})}var dL=Ta,fL=[`width`,`height`],pL=[`x`,`y`],mL=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new dL),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new dL)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=H(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Gl({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=Op(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:V(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=fL[s],l=pL[s],u=fL[1-s],d=pL[1-s];i&&$h(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=A(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;$h(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),$h(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=G(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Bl({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Xf(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;R([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,W(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=fL[i],o=pL[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=u?1:0,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(ZI);function hL(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function gL(e){bE(cL),e.registerComponentModel(lL),e.registerComponentView(mL),hL(e)}function _L(e){bE(cL),bE(gL)}function vL(e,t,n){var r=m.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function yL(e){return!e.__cursors.get(0)}function bL(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var xL=function(e){i(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=ji,typeof t==`string`?a=vL(t,n,r):ce(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(je(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=bL(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=vL(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new Qt(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new Qt(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new Qt(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Qt(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=bL(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;fe(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||Yb(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):pe(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=sx(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&R(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(et),SL=1e5,CL=314159,wL=void 0,TL=1,EL=2;function DL(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function OL(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function kL(e,t,n,r){var i=new xL(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,AL(i),i}function AL(e){e.__cursorStack=[],e.__cursors=Oe()}function jL(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function ML(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,jL({key:r})))}function NL(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function PL(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function FL(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&IL)||s.__builtin__)&&(!(n&LL)||!s.__builtin__)&&(!(n&RL)||s!==e.hoverlayer))&&t(s,a,o,i)}}var IL=1,LL=2,RL=4,zL=IL|RL,BL=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=M({},n||{}),this.dpr=n.devicePixelRatio||ji,this._singleCanvas=i,this.root=e,e.style&&(je(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=kL(a,this,CL,0);c.initContext(),this._insertLayer(c,CL,0,!0),this._domRoot=e}else{this._width=Qb(e,0,n),this._height=Qb(e,1,n);var l=this._domRoot=OL(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!ce(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=EL),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return FL(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},LL),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=wL,n!==wL&&(!t&&n===EL&&(t=this._i.hoverlayer=this._ensureLayer(SL)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),Dx(i,s,r),c&&(s.style=l)}}i&&(Ox(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(SL)},e.prototype.paintOne=function(e,t){Ex(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)FL(this._i,function(e){e.afterBrush&&e.afterBrush()},zL),this._paintHoverList(e);else{var i=this;In(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(CL).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),FL(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},IL)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return FL(this._i,function(i){var a=!1;if(NL(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!yL(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}NL(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},zL),o.wxa&&FL(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=yL(e),c=s&&m.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=EL),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(Dx(o,f,a),f.setPrevPaintRect(p))}else Dx(o,f,a);if(s&&m.getTime()-c>15){d++;break}}}Ox(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=CL,t=0);var i=PL(this._i,e)[t];return i||(i=kL(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&j(i,this._layerConfig[e],!0),(n||r&&e!==CL)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&DL(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=PL(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),PL(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this}},e.prototype.eachLayer=function(e,t){return FL(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return FL(this._i,function(n,r){e.call(t,n,r)},IL)},e.prototype.eachOtherLayer=function(e,t){return FL(this._i,function(n,r){e.call(t,n,r)},LL)},e.prototype.getLayers=function(){var e={};return FL(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}FL(n._i,function(e){e.__dirty=!1,NL(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},zL);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){k(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=ML(o,f),!s.used))if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1;s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}FL(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(yL(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(NL(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===wL&&(n._hoverLayerDirty=TL))},zL)},e.prototype.clear=function(){return FL(this._i,function(e){e.clear(),AL(e)},IL),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,FL(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?j(n[e],t,!0):n[e]=t,FL(this._i,function(e,t){j(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=Qb(i,0,r),t=Qb(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,FL(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(CL).resize(e,t)}return this},e.prototype.clearLayer=function(e){R(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[CL][0].dom;var t=new xL(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;FL(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];Dx(n,l,a)}Ox(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function VL(e){e.registerPainter(`canvas`,BL)}var HL=e(n(),1);function UL(e){return{png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,svg:`image/svg+xml`,bmp:`image/bmp`,tiff:`image/tiff`,tif:`image/tiff`,emf:`image/x-emf`,wmf:`image/x-wmf`,webp:`image/webp`,mp4:`video/mp4`,m4v:`video/mp4`,webm:`video/webm`,avi:`video/x-msvideo`,mp3:`audio/mpeg`,wav:`audio/wav`,m4a:`audio/mp4`,ogg:`audio/ogg`}[e.split(`.`).pop()?.toLowerCase()||``]||`application/octet-stream`}function WL(e){let t=e.search(/[?#]/);return t>=0?e.slice(0,t):e}function GL(e){let t=[];for(let n of e.replace(/\\/g,`/`).split(`/`))if(!(!n||n===`.`)){if(n===`..`){t.pop();continue}t.push(n)}return t}function KL(e){try{return decodeURIComponent(e)}catch{return e}}function qL(e){let t=GL(WL(e)),n=t.lastIndexOf(`media`);return(n>=0&&n<t.length-1?t.slice(n+1):t.slice(-1)).join(`/`)}function JL(e){return`ppt/media/${qL(e).split(`/`).map(KL).join(`/`)}`}function YL(e){let t=qL(e),n=JL(e),r=`ppt/media/${t}`;return n===r?[n]:[n,r]}function XL(e,t){for(let n of YL(e)){let e=t.get(n);if(e)return{mediaPath:n,data:e}}}async function ZL(e,t,n){return XL(e,t)||n?.resolve(e)}function QL(e,t,n){let r=n.get(e);if(!r){let i=UL(e),a=new Blob([t],{type:i});r=URL.createObjectURL(a),n.set(e,r)}return r}var $L=Object.freeze({maxEntries:4e3,maxEntryUncompressedBytes:32*1024*1024,maxTotalUncompressedBytes:256*1024*1024,maxMediaBytes:192*1024*1024,maxConcurrency:8});function eR(e){throw Error(`PPTX zip limit exceeded: ${e}`)}function tR(e){return e.startsWith(`ppt/media/`)}function nR(e){return e.split(`/`).map(e=>{try{return decodeURIComponent(e)}catch{return e}}).join(`/`)}function rR(e,t,n){e.set(t,n);let r=nR(t);r!==t&&!e.has(r)&&e.set(r,n)}function iR(e){let t=e._data?.uncompressedSize;return typeof t==`number`&&Number.isFinite(t)?t:void 0}function aR(e){return new TextEncoder().encode(e).byteLength}var oR=class{constructor(e,t,n,r){this.entries=e,this.media=t,this.state=n,this.totalBytes=r,this.inflight=new Map,this.loadedPaths=new Set,this.totalCount=new Set(Array.from(e.values(),e=>e.path)).size}get loadedBytes(){let e=0;for(let t of this.loadedPaths)e+=this.media.get(t)?.byteLength??0;return e}get loadedCount(){return this.loadedPaths.size}async resolve(e){for(let t of YL(e)){let e=this.media.get(t);if(e)return{mediaPath:t,data:e}}for(let t of YL(e)){let e=this.entries.get(t);if(e)return{mediaPath:t,data:await this.readEntry(e)}}}async readEntry(e){let t=this.inflight.get(e.path);t||(t=lR(e.path,e.file,this.state).then(t=>(rR(this.media,e.path,t),this.loadedPaths.add(e.path),t)),this.inflight.set(e.path,t));try{return await t}finally{this.inflight.delete(e.path)}}};function sR(e,t,n){if(n.limits.maxEntryUncompressedBytes!==void 0&&t>n.limits.maxEntryUncompressedBytes&&eR(`${e} is ${t} bytes > maxEntryUncompressedBytes ${n.limits.maxEntryUncompressedBytes}`),n.knownSizeByPath.has(e))return;n.unknownTotalBytes+=t;let r=n.knownTotalBytes+n.unknownTotalBytes;if(n.limits.maxTotalUncompressedBytes!==void 0&&r>n.limits.maxTotalUncompressedBytes&&eR(`total uncompressed bytes ${r} > maxTotalUncompressedBytes ${n.limits.maxTotalUncompressedBytes}`),tR(e)){n.unknownMediaBytes+=t;let e=n.knownMediaBytes+n.unknownMediaBytes;n.limits.maxMediaBytes!==void 0&&e>n.limits.maxMediaBytes&&eR(`media bytes ${e} > maxMediaBytes ${n.limits.maxMediaBytes}`)}}async function cR(e,t,n){let r=await t.async(`string`);return sR(e,aR(r),n),r}async function lR(e,t,n){let r=await t.async(`uint8array`);return sR(e,r.byteLength,n),r}async function uR(e,t,n){n.knownSizeByPath.has(e)||n.limits.maxEntryUncompressedBytes===void 0&&n.limits.maxTotalUncompressedBytes===void 0||sR(e,(await t.async(`uint8array`)).byteLength,n)}async function dR(e,t,n){if(e.length===0)return;let r=Math.min(t,e.length),i=0,a=Array.from({length:r},async()=>{for(;;){let t=i++;if(t>=e.length)return;await n(e[t])}});await Promise.all(a)}async function fR(e,t={}){return mR(e,t,{lazyMedia:!1})}async function pR(e,t={}){return mR(e,t,{lazyMedia:!0})}async function mR(e,t,n){let r=t.maxConcurrency??8;(!Number.isInteger(r)||r<1)&&eR(`maxConcurrency ${t.maxConcurrency} must be an integer >= 1`);let i=await HL.default.loadAsync(e),a=Object.entries(i.files).filter(([,e])=>!e.dir);t.maxEntries!==void 0&&a.length>t.maxEntries&&eR(`entries ${a.length} > maxEntries ${t.maxEntries}`);let o=new Map,s=0,c=0;for(let[e,n]of a){let r=e.replace(/\\/g,`/`),i=iR(n);i!==void 0&&(o.set(r,i),t.maxEntryUncompressedBytes!==void 0&&i>t.maxEntryUncompressedBytes&&eR(`${r} is ${i} bytes > maxEntryUncompressedBytes ${t.maxEntryUncompressedBytes}`),s+=i,t.maxTotalUncompressedBytes!==void 0&&s>t.maxTotalUncompressedBytes&&eR(`total uncompressed bytes ${s} > maxTotalUncompressedBytes ${t.maxTotalUncompressedBytes}`),tR(r)&&(c+=i,t.maxMediaBytes!==void 0&&c>t.maxMediaBytes&&eR(`media bytes ${c} > maxMediaBytes ${t.maxMediaBytes}`)))}let l={contentTypes:``,presentation:``,presentationRels:``,slides:new Map,slideRels:new Map,slideLayouts:new Map,slideLayoutRels:new Map,slideMasters:new Map,slideMasterRels:new Map,themes:new Map,themeOverrides:new Map,media:new Map,charts:new Map,chartRels:new Map,chartStyles:new Map,chartColors:new Map,diagramDrawings:new Map},u={limits:t,knownSizeByPath:o,knownTotalBytes:s,knownMediaBytes:c,unknownTotalBytes:0,unknownMediaBytes:0},d=new Map;return await dR(a,r,async([e,t])=>{let r=e.replace(/\\/g,`/`);if(r===`[Content_Types].xml`){l.contentTypes=await cR(r,t,u);return}if(r===`ppt/presentation.xml`){l.presentation=await cR(r,t,u);return}if(r===`ppt/_rels/presentation.xml.rels`){l.presentationRels=await cR(r,t,u);return}if(r===`ppt/tableStyles.xml`){l.tableStyles=await cR(r,t,u);return}if(tR(r)){if(n.lazyMedia){rR(d,r,{path:r,file:t});return}let e=await lR(r,t,u);rR(l.media,r,e);return}if(/^ppt\/slides\/_rels\/[^/]+\.xml\.rels$/.test(r)){rR(l.slideRels,r,await cR(r,t,u));return}if(/^ppt\/slides\/[^/]+\.xml$/.test(r)){rR(l.slides,r,await cR(r,t,u));return}if(/^ppt\/slideLayouts\/_rels\/[^/]+\.xml\.rels$/.test(r)){rR(l.slideLayoutRels,r,await cR(r,t,u));return}if(/^ppt\/slideLayouts\/[^/]+\.xml$/.test(r)){rR(l.slideLayouts,r,await cR(r,t,u));return}if(/^ppt\/slideMasters\/_rels\/[^/]+\.xml\.rels$/.test(r)){rR(l.slideMasterRels,r,await cR(r,t,u));return}if(/^ppt\/slideMasters\/[^/]+\.xml$/.test(r)){rR(l.slideMasters,r,await cR(r,t,u));return}if(/^ppt\/theme\/(?!themeOverride[^/]*\.xml$)[^/]+\.xml$/.test(r)){rR(l.themes,r,await cR(r,t,u));return}if(/^ppt\/theme\/themeOverride[^/]*\.xml$/.test(r)){l.themeOverrides&&rR(l.themeOverrides,r,await cR(r,t,u));return}if(/^ppt\/charts\/_rels\/[^/]+\.xml\.rels$/.test(r)){l.chartRels&&rR(l.chartRels,r,await cR(r,t,u));return}if(/^ppt\/charts\/(?!style[^/]*\.xml$)(?!colors[^/]*\.xml$)[^/]+\.xml$/.test(r)){rR(l.charts,r,await cR(r,t,u));return}if(/^ppt\/charts\/style[^/]*\.xml$/.test(r)){rR(l.chartStyles,r,await cR(r,t,u));return}if(/^ppt\/charts\/colors[^/]*\.xml$/.test(r)){rR(l.chartColors,r,await cR(r,t,u));return}if(/^ppt\/diagrams\/[^/]+\.xml$/.test(r)){rR(l.diagramDrawings,r,await cR(r,t,u));return}await uR(r,t,u)}),n.lazyMedia&&(l.mediaResolver=new oR(d,l.media,u,c)),l}var hR=class e{constructor(e){this.el=e}attr(e){if(!this.el)return;if(this.el.hasAttribute(e))return this.el.getAttribute(e);let t=e.indexOf(`:`),n=t>=0?e.slice(t+1):e,r=t>=0?this.resolveAttributeNamespace(e.slice(0,t)):void 0;for(let e=0;e<this.el.attributes.length;e++){let i=this.el.attributes[e];if(i.localName===n&&(t<0||(r?i.namespaceURI===r:i.namespaceURI!==null)))return i.value}}resolveAttributeNamespace(e){return this.el?.lookupNamespaceURI(e)??(e===`r`?`http://schemas.openxmlformats.org/officeDocument/2006/relationships`:void 0)}numAttr(e){let t=this.attr(e);if(t===void 0)return;let n=Number(t);return Number.isNaN(n)?void 0:n}child(t){if(!this.el)return new e(null);let n=this.el.children;for(let r=0;r<n.length;r++)if(n[r].localName===t)return new e(n[r]);return new e(null)}children(t){if(!this.el)return[];let n=[],r=this.el.children;for(let i=0;i<r.length;i++)(t===void 0||r[i].localName===t)&&n.push(new e(r[i]));return n}text(){return this.el?this.el.textContent??``:``}exists(){return this.el!==null}allChildren(){return this.children()}get localName(){return this.el?.localName??``}get element(){return this.el}};function gR(e){let t=new DOMParser().parseFromString(e,`application/xml`),n=t.querySelector(`parsererror`);return n?(console.warn(`XML parse error:`,n.textContent),new hR(null)):new hR(t.documentElement)}function _R(e){return e?.trim().toLowerCase()===`external`}function vR(e){let t=e.search(/[?#]/);return t>=0?e.slice(0,t):e}function yR(e){try{return decodeURIComponent(e)}catch{return e}}function bR(e){let t=new Map;if(!e)return t;let n=gR(e);if(!n.exists())return t;let r=n.children(`Relationship`);for(let e of r){let n=e.attr(`Id`),r=e.attr(`Type`),i=e.attr(`Target`),a=e.attr(`TargetMode`);n&&r!==void 0&&i!==void 0&&t.set(n,{type:r,target:i,targetMode:a})}return t}function xR(e,t){let n=vR(t);if(n.startsWith(`/`))return n.slice(1).replace(/\\/g,`/`).split(`/`).map(yR).join(`/`);let r=e.replace(/\\/g,`/`).split(`/`).filter(Boolean),i=n.replace(/\\/g,`/`).split(`/`).filter(Boolean).map(yR),a=[...r];for(let e of i)e===`..`?a.pop():e!==`.`&&a.push(e);return a.join(`/`)}function Y(e){return e/914400*96}function SR(e){return e/6e4}function CR(e){return e/1e5}function wR(e){return e*96/72}var TR=[`dk1`,`dk2`,`lt1`,`lt2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`,`hlink`,`folHlink`];function ER(e){let t=e.child(`srgbClr`);if(t.exists())return t.attr(`val`);let n=e.child(`sysClr`);if(n.exists())return n.attr(`lastClr`)??n.attr(`val`)}function DR(e){let t={};for(let n of e.children(`font`)){let e=n.attr(`script`),r=n.attr(`typeface`);e&&r&&(t[e]=r)}let n={latin:e.child(`latin`).attr(`typeface`)??``,ea:e.child(`ea`).attr(`typeface`)??``,cs:e.child(`cs`).attr(`typeface`)??``};return Object.keys(t).length>0&&(n.scripts=t),n}function OR(e){let t=e.child(`themeElements`),n=t.exists()?t:e,r=n.child(`clrScheme`),i=new Map;for(let e of TR){let t=r.child(e);if(t.exists()){let n=ER(t);n!==void 0&&i.set(e,n)}}let a=n.child(`fontScheme`),o=DR(a.child(`majorFont`)),s=DR(a.child(`minorFont`)),c=n.child(`fmtScheme`);return{colorScheme:i,majorFont:o,minorFont:s,fillStyles:c.child(`fillStyleLst`).allChildren(),bgFillStyles:c.child(`bgFillStyleLst`).allChildren(),lineStyles:c.child(`lnStyleLst`).allChildren(),effectStyles:c.child(`effectStyleLst`).allChildren()}}function kR(e){for(let t of[`nvSpPr`,`nvPicPr`,`nvGraphicFramePr`,`nvCxnSpPr`]){let n=e.child(t);if(n.exists()&&n.child(`nvPr`).child(`ph`).exists())return!0}return!1}function AR(e){let t=e.child(`spPr`).child(`xfrm`),n=t.exists()?t:e.child(`xfrm`);if(!n.exists())return null;let r=n.child(`off`),i=n.child(`ext`);return{offX:r.numAttr(`x`)??0,offY:r.numAttr(`y`)??0,cx:i.numAttr(`cx`)??0,cy:i.numAttr(`cy`)??0}}function jR(e){let t=e.child(`grpSpPr`);if(!t.exists())return null;let n=t.child(`xfrm`);if(!n.exists())return null;let r=n.child(`off`),i=n.child(`ext`),a=n.child(`chOff`),o=n.child(`chExt`),s=r.numAttr(`x`)??0,c=r.numAttr(`y`)??0,l=i.numAttr(`cx`)??0,u=i.numAttr(`cy`)??0,d=a.exists()?a.numAttr(`x`)??0:0,f=a.exists()?a.numAttr(`y`)??0:0,p=o.exists()?o.numAttr(`cx`)??l:l,m=o.exists()?o.numAttr(`cy`)??u:u;return{offX:s,offY:c,cx:l,cy:u,chOffX:d,chOffY:f,chExtCx:p>0?p:1,chExtCy:m>0?m:1}}function MR(e,t){let n=[];for(let r of e.allChildren()){if(r.localName===`grpSp`){let e=jR(r);if(e&&e.chExtCx>0&&e.chExtCy>0){let i=e.cx/e.chExtCx,a=e.cy/e.chExtCy,o=e.offX-e.chOffX*i,s=e.offY-e.chOffY*a,c=t?{offX:t.offX+o*t.scaleX,offY:t.offY+s*t.scaleY,scaleX:t.scaleX*i,scaleY:t.scaleY*a}:{offX:o,offY:s,scaleX:i,scaleY:a};n.push(...MR(r,c))}else n.push(...MR(r,t));continue}if(!kR(r))continue;let e=AR(r);if(!e){n.push({node:r});continue}if(t){let i=t.offX+e.offX*t.scaleX,a=t.offY+e.offY*t.scaleY,o=e.cx*t.scaleX,s=e.cy*t.scaleY;n.push({node:r,absoluteXfrm:{position:{x:Y(i),y:Y(a)},size:{w:Y(o),h:Y(s)}}})}else n.push({node:r,absoluteXfrm:{position:{x:Y(e.offX),y:Y(e.offY)},size:{w:Y(e.cx),h:Y(e.cy)}}})}return n}function NR(e){let t=new Map,n=e.element;if(!n)return t;let r=n.attributes;for(let e=0;e<r.length;e++){let n=r[e];t.set(n.localName,n.value)}return t}function PR(e){let t=e.child(`cSld`),n=t.child(`bg`),r=n.exists()?n:void 0,i=t.child(`spTree`),a=NR(e.child(`clrMap`)),o=e.child(`txStyles`),s=o.child(`titleStyle`),c=o.child(`bodyStyle`),l=o.child(`otherStyle`),u=e.child(`defaultTextStyle`),d=MR(i,null),f=d.map(e=>e.node);return{colorMap:a,background:r,textStyles:{titleStyle:s.exists()?s:void 0,bodyStyle:c.exists()?c:void 0,otherStyle:l.exists()?l:void 0},defaultTextStyle:u.exists()?u:void 0,placeholders:f,placeholderEntries:d,spTree:i,rels:new Map}}var FR=new Set([`1`,`true`,`t`,`on`]),IR=new Set([`0`,`false`,`f`,`off`]);function LR(e,t=!1){if(e===void 0)return t;let n=e.trim().toLowerCase();return FR.has(n)?!0:IR.has(n)?!1:t}function RR(e){return LR(e,!0)}function zR(e){for(let t of[`nvSpPr`,`nvPicPr`,`nvGraphicFramePr`,`nvCxnSpPr`]){let n=e.child(t);if(n.exists()&&n.child(`nvPr`).child(`ph`).exists())return!0}return!1}function BR(e){let t=e.child(`spPr`).child(`xfrm`),n=t.exists()?t:e.child(`xfrm`);if(!n.exists())return null;let r=n.child(`off`),i=n.child(`ext`);return{offX:r.numAttr(`x`)??0,offY:r.numAttr(`y`)??0,cx:i.numAttr(`cx`)??0,cy:i.numAttr(`cy`)??0}}function VR(e){let t=e.child(`grpSpPr`);if(!t.exists())return null;let n=t.child(`xfrm`);if(!n.exists())return null;let r=n.child(`off`),i=n.child(`ext`),a=n.child(`chOff`),o=n.child(`chExt`),s=r.numAttr(`x`)??0,c=r.numAttr(`y`)??0,l=i.numAttr(`cx`)??0,u=i.numAttr(`cy`)??0,d=a.exists()?a.numAttr(`x`)??0:0,f=a.exists()?a.numAttr(`y`)??0:0,p=o.exists()?o.numAttr(`cx`)??l:l,m=o.exists()?o.numAttr(`cy`)??u:u;return{offX:s,offY:c,cx:l,cy:u,chOffX:d,chOffY:f,chExtCx:p>0?p:1,chExtCy:m>0?m:1}}function HR(e,t){let n=[];for(let r of e.allChildren()){if(r.localName===`grpSp`){let e=VR(r);if(e&&e.chExtCx>0&&e.chExtCy>0){let i=e.cx/e.chExtCx,a=e.cy/e.chExtCy,o=e.offX-e.chOffX*i,s=e.offY-e.chOffY*a,c=HR(r,t?{offX:t.offX+o*t.scaleX,offY:t.offY+s*t.scaleY,scaleX:t.scaleX*i,scaleY:t.scaleY*a}:{offX:o,offY:s,scaleX:i,scaleY:a});n.push(...c)}else n.push(...HR(r,t));continue}if(!zR(r))continue;let e=BR(r);if(!e){n.push({node:r});continue}if(t){let i=t.offX+e.offX*t.scaleX,a=t.offY+e.offY*t.scaleY,o=e.cx*t.scaleX,s=e.cy*t.scaleY;n.push({node:r,absoluteXfrm:{position:{x:Y(i),y:Y(a)},size:{w:Y(o),h:Y(s)}}})}else n.push({node:r,absoluteXfrm:{position:{x:Y(e.offX),y:Y(e.offY)},size:{w:Y(e.cx),h:Y(e.cy)}}})}return n}function UR(e){let t=new Map,n=e.element;if(!n)return t;let r=n.attributes;for(let e=0;e<r.length;e++){let n=r[e];t.set(n.localName,n.value)}return t}function WR(e){let t=e.child(`cSld`),n=t.child(`bg`),r=n.exists()?n:void 0,i=t.child(`spTree`),a,o=e.child(`clrMapOvr`);if(o.exists()){let e=o.child(`overrideClrMapping`);e.exists()&&(a=UR(e))}let s=HR(i,null),c=RR(e.attr(`showMasterSp`));return{colorMapOverride:a,background:r,placeholders:s,spTree:i,rels:new Map,showMasterSp:c}}function GR(e){for(let t of[`nvSpPr`,`nvPicPr`,`nvGrpSpPr`,`nvGraphicFramePr`,`nvCxnSpPr`]){let n=e.child(t);if(n.exists())return{cNvPr:n.child(`cNvPr`),nvPr:n.child(`nvPr`)}}return{cNvPr:e.child(`cNvPr`),nvPr:e.child(`nvPr`)}}function KR(e){let t=e.child(`spPr`);if(t.exists()){let e=t.child(`xfrm`);if(e.exists())return e}let n=e.child(`grpSpPr`);if(n.exists()){let e=n.child(`xfrm`);if(e.exists())return e}let r=e.child(`xfrm`);return r.exists()?r:e.child(`__nonexistent__`)}function qR(e){let t=e.child(`ph`);if(t.exists())return{type:t.attr(`type`),idx:t.numAttr(`idx`)}}function JR(e){let{cNvPr:t,nvPr:n}=GR(e),r=t.attr(`id`)??``,i=t.attr(`name`)??``,a=KR(e),o=a.child(`off`),s=a.child(`ext`),c={x:Y(o.numAttr(`x`)??0),y:Y(o.numAttr(`y`)??0)},l={w:Y(s.numAttr(`cx`)??0),h:Y(s.numAttr(`cy`)??0)},u=SR(a.numAttr(`rot`)??0),d=LR(a.attr(`flipH`)),f=LR(a.attr(`flipV`)),p=qR(n),m,h=t.child(`hlinkClick`);return h.exists()&&(m={action:h.attr(`action`)??void 0,rId:h.attr(`id`)??h.attr(`r:id`)??void 0,tooltip:h.attr(`tooltip`)??void 0}),{id:r,name:i,position:c,size:l,rotation:u,flipH:d,flipV:f,placeholder:p,hlinkClick:m,source:e}}function YR(e){let t=e.child(`pPr`),n=t.numAttr(`lvl`)??0,r=[];for(let t of e.children(`r`)){let e=t.child(`rPr`),n=t.child(`t`);r.push({text:n.text(),properties:e.exists()?e:void 0})}for(let t of e.allChildren())t.localName;let i=[];for(let t of e.allChildren()){let e=t.localName;if(e===`r`){let e=t.child(`rPr`),n=t.child(`t`);i.push({text:n.text(),properties:e.exists()?e:void 0})}else if(e===`br`){let e=t.child(`rPr`);i.push({text:`
19
+ `,properties:e.exists()?e:void 0})}else if(e===`tab`)i.push({text:` `});else if(e===`fld`){let e=t.child(`rPr`),n=t.child(`t`);i.push({text:n.text(),properties:e.exists()?e:void 0})}}let a=e.child(`endParaRPr`);return{properties:t.exists()?t:void 0,runs:i.length>0?i:r,level:n,endParaRPr:a.exists()?a:void 0}}function XR(e){if(!e.exists())return;let t=e.child(`bodyPr`),n=e.child(`lstStyle`),r=[];for(let t of e.children(`p`))r.push(YR(t));return{bodyProperties:t.exists()?t:void 0,listStyle:n.exists()?n:void 0,paragraphs:r}}var ZR=[`solidFill`,`gradFill`,`blipFill`,`pattFill`,`grpFill`,`noFill`];function QR(e){for(let t of ZR){let n=e.child(t);if(n.exists())return n}}function $R(e){let t=new Map;for(let n of e.children(`gd`)){let e=n.attr(`name`),r=n.attr(`fmla`)??``;if(!e)continue;let i=r.match(/val\s+(-?\d+)/);if(i)t.set(e,Number(i[1]));else{let n=Number(r);Number.isNaN(n)||t.set(e,n)}}return t}function ez(e){let t=JR(e),n=e.child(`spPr`),r=n.child(`prstGeom`),i=r.attr(`prst`),a=$R(r.child(`avLst`)),o=n.child(`custGeom`),s=o.exists()?o:void 0,c=QR(n),l=n.child(`ln`),u=l.exists()?l:void 0,d,f;if(l.exists()){let e=l.child(`headEnd`);if(e.exists()){let t=e.attr(`type`);t&&t!==`none`&&(d={type:t,w:e.attr(`w`),len:e.attr(`len`)})}let t=l.child(`tailEnd`);if(t.exists()){let e=t.attr(`type`);e&&e!==`none`&&(f={type:e,w:t.attr(`w`),len:t.attr(`len`)})}}let p=XR(e.child(`txBody`)),m,h=e.child(`txXfrm`);if(h.exists()){let e=h.child(`off`),t=h.child(`ext`),r=n.child(`xfrm`),i=r.child(`off`),a=r.child(`ext`),o=i.numAttr(`x`)??0,s=i.numAttr(`y`)??0,c=a.numAttr(`cx`)??0,l=a.numAttr(`cy`)??0,u=e.numAttr(`x`)??0,d=e.numAttr(`y`)??0,f=t.numAttr(`cx`)??0,p=t.numAttr(`cy`)??0;if(c>0&&l>0){let e=SR(h.numAttr(`rot`)??0),t=u-o,n=d-s,r=Math.abs(Math.round(e))%360==180,i=r?c-(t+f):t,a=r?l-(n+p):n;m={x:Y(i),y:Y(a),w:Y(f),h:Y(p),rotation:e}}}return{...t,nodeType:`shape`,presetGeometry:i,adjustments:a,customGeometry:s,fill:c,line:u,headEnd:d,tailEnd:f,textBody:p,textBoxBounds:m}}var tz=1e5;function nz(e){let t=JR(e),n=e.child(`blipFill`),r=n.child(`blip`),i=r.attr(`embed`)??r.attr(`r:embed`),a=r.attr(`link`)??r.attr(`r:link`),o=n.child(`srcRect`),s;if(o.exists()){let e=o.numAttr(`t`),t=o.numAttr(`b`),n=o.numAttr(`l`),r=o.numAttr(`r`);(e!==void 0||t!==void 0||n!==void 0||r!==void 0)&&(s={top:(e??0)/tz,bottom:(t??0)/tz,left:(n??0)/tz,right:(r??0)/tz})}let c=e.child(`spPr`),l=c.child(`solidFill`),u=c.child(`gradFill`),d=l.exists()?l:u.exists()?u:void 0,f=c.child(`ln`),p=f.exists()?f:void 0,m=c.child(`prstGeom`),h=m.exists()?m.attr(`prst`):void 0,g=c.child(`custGeom`),_=g.exists()?g:void 0,v=e.child(`nvPicPr`).child(`nvPr`),y=v.child(`videoFile`),b=v.child(`audioFile`),x=y.exists(),S=b.exists(),C;return x?C=y.attr(`link`)??y.attr(`r:link`):S&&(C=b.attr(`link`)??b.attr(`r:link`)),{...t,nodeType:`picture`,blipEmbed:i,blipLink:a,crop:s,fill:d,line:p,presetGeometry:h,customGeometry:_,isVideo:x||void 0,isAudio:S||void 0,mediaRId:C}}function rz(e){let t=e.numAttr(`gridSpan`)??1,n=e.numAttr(`rowSpan`)??1,r=LR(e.attr(`hMerge`)),i=LR(e.attr(`vMerge`)),a=XR(e.child(`txBody`)),o=e.child(`tcPr`);return{gridSpan:t,rowSpan:n,hMerge:r,vMerge:i,textBody:a,properties:o.exists()?o:void 0}}function iz(e){let t=Y(e.numAttr(`h`)??0),n=[];for(let t of e.children(`tc`))n.push(rz(t));return{height:t,cells:n}}function az(e){return e.child(`graphic`).child(`graphicData`).child(`tbl`)}function oz(e){let t=e.child(`tableStyleId`);if(t.exists())return t.text()||t.attr(`val`)||void 0;let n=e.child(`tblStyle`);return n.exists()?n.attr(`val`)??(n.text()||void 0):e.attr(`tblStyle`)??void 0}function sz(e){let t=JR(e),n=az(e),r=n.child(`tblGrid`),i=[];for(let e of r.children(`gridCol`))i.push(Y(e.numAttr(`w`)??0));let a=[];for(let e of n.children(`tr`))a.push(iz(e));let o=n.child(`tblPr`),s=oz(o);return{...t,nodeType:`table`,columns:i,rows:a,properties:o.exists()?o:void 0,tableStyleId:s}}var cz=new Set([`sp`,`pic`,`grpSp`,`graphicFrame`,`cxnSp`]);function lz(e){let t=JR(e),n=e.child(`grpSpPr`).child(`xfrm`),r=n.child(`chOff`),i=n.child(`chExt`),a=r.exists()?{x:Y(r.numAttr(`x`)??0),y:Y(r.numAttr(`y`)??0)}:{x:0,y:0},o=(()=>{if(!i.exists())return{w:t.size.w,h:t.size.h};let e=i.numAttr(`cx`),n=i.numAttr(`cy`);return{w:e!==void 0&&e>0?Y(e):t.size.w,h:n!==void 0&&n>0?Y(n):t.size.h}})(),s=[];for(let t of e.allChildren())cz.has(t.localName)&&s.push(t);return{...t,nodeType:`group`,childOffset:a,childExtent:o,children:s}}function uz(e,t,n){let r=JR(e),i=e.child(`graphic`).child(`graphicData`),a;for(let e of i.allChildren())if(e.localName===`chart`){a=e.attr(`r:id`)||e.attr(`id`);break}if(!a)return;let o=t.get(a);if(!o)return;let s=xR(n.substring(0,n.lastIndexOf(`/`)),o.target);return{...r,nodeType:`chart`,chartPath:s}}var dz=new Set([`sp`,`pic`,`grpSp`,`graphicFrame`,`cxnSp`]),fz=[`nvSpPr`,`nvPicPr`,`nvGrpSpPr`,`nvGraphicFramePr`,`nvCxnSpPr`];function pz(e){for(let t of fz){let n=e.child(t);if(n.exists()&&n.child(`nvPr`).child(`ph`).exists())return!0}return!1}function mz(e){return e.child(`graphic`).child(`graphicData`).child(`tbl`).exists()}function hz(e){return(e.child(`graphic`).child(`graphicData`).attr(`uri`)||``).includes(`chart`)}function gz(e){return(e.child(`graphic`).child(`graphicData`).attr(`uri`)||``).includes(`diagram`)}function _z(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t>=0?e.substring(0,t):``}function vz(e){let t=e.child(`graphic`).child(`graphicData`);if(!(t.attr(`uri`)||``).includes(`ole`))return null;let n=e=>{let t=e.child(`blipFill`).child(`blip`);return!!(t.attr(`embed`)??t.attr(`r:embed`)??t.attr(`link`)??t.attr(`r:link`))},r=t.child(`oleObj`);if(r.exists()){let e=r.child(`pic`);if(e.exists()&&n(e))return e}let i=t.child(`AlternateContent`);if(!i.exists())return null;for(let e of[`Fallback`,`Choice`]){let t=i.child(e).child(`oleObj`);if(!t.exists())continue;let r=t.child(`pic`);if(r.exists()&&n(r))return r}return null}function yz(e){let t=vz(e);if(!t)return;let n=JR(e),r=nz(t);if(!(!r.blipEmbed&&!r.blipLink))return{...r,...n,nodeType:`picture`,source:t}}function bz(e,t){let n=gR(t).child(`spTree`),r=[];if(n.exists())for(let e of n.allChildren())dz.has(e.localName)&&r.push(e);return{...e,nodeType:`group`,childOffset:{x:0,y:0},childExtent:{w:Math.max(1,e.size.w),h:Math.max(1,e.size.h)},children:r}}function xz(e,t){if(!t.diagramDrawings)return;let n=JR(e),r=_z(t.partPath),i=Array.from(t.rels.values()).filter(e=>e.type.includes(`diagramDrawing`)||e.target.includes(`diagrams/drawing`)).map(e=>{let t=e.target.match(/drawing(\d+)/);return{target:e.target,num:t?Number.parseInt(t[1],10):void 0}}),a=e.child(`graphic`).child(`graphicData`).child(`relIds`);if(a.exists()){let e=a.attr(`r:dm`)??a.attr(`dm`),n=(e?t.rels.get(e):void 0)?.target.match(/data(\d+)/)?.[1];if(n){let e=Number.parseInt(n,10);i.sort((t,n)=>(t.num===void 0?1/0:Math.abs(t.num-e))-(n.num===void 0?1/0:Math.abs(n.num-e)))}}for(let e of i){let i=xR(r,e.target),a=t.diagramDrawings.get(i);if(a)return bz(n,a)}}function Sz(e,t){if(!(t.skipPlaceholders&&pz(e)))switch(e.localName){case`sp`:case`cxnSp`:return ez(e);case`pic`:return nz(e);case`grpSp`:return lz(e);case`graphicFrame`:return mz(e)?sz(e):hz(e)?uz(e,t.rels,t.partPath??``):gz(e)?xz(e,t):yz(e);default:return}}function Cz(e){return LR(e,!0)}function wz(e){for(let[,t]of e)if(t.type.includes(`slideLayout`))return t.target;return``}function Tz(e,t,n,r=``,i){let a=e.child(`cSld`),o=a.child(`bg`),s=o.exists()?o:void 0,c=a.child(`spTree`),l=[];for(let e of c.allChildren()){let t=Sz(e,{rels:n,partPath:r,diagramDrawings:i});t&&l.push(t)}let u=wz(n),d=Cz(e.attr(`showMasterSp`));return{index:t,hidden:!Cz(e.attr(`show`)),nodes:l,background:s,layoutIndex:u,rels:n,slidePath:r,showMasterSp:d,nodesMaterialized:!0}}function Ez(e,t,n,r=``){return{index:t,nodes:[],layoutIndex:wz(n),rels:n,slidePath:r,showMasterSp:!0,sourceXml:e,nodesMaterialized:!1}}function Dz(e,t){if(e.nodesMaterialized)return;if(!e.sourceXml){e.nodesMaterialized=!0;return}let n=e.layoutIndex,r=Tz(gR(e.sourceXml),e.index,e.rels,e.slidePath,t);e.hidden=r.hidden,e.nodes=r.nodes,e.background=r.background,e.layoutIndex=n||r.layoutIndex,e.showMasterSp=r.showMasterSp,e.nodesMaterialized=!0,e.sourceXml=void 0}function Oz(e){let t=e.lastIndexOf(`/`);return t>=0?e.substring(0,t):``}function kz(e){return`${Oz(e)}/_rels/${e.substring(e.lastIndexOf(`/`)+1)}.rels`}function Az(e){return e.includes(`wps`)||e.includes(`kso`)||e.includes(`Kingsoft`)||e.includes(`WPS`)}function jz(e,t){for(let[,n]of e)if(n.type.includes(t))return n}function Mz(e,t){let n=[];for(let[r,i]of e)i.type.includes(t)&&n.push([r,i]);return n}function Nz(e,t={}){let n=gR(e.presentation),r=bR(e.presentationRels),i=n.child(`sldSz`),a=Y(i.numAttr(`cx`)??9144e3),o=Y(i.numAttr(`cy`)??6858e3),s=Az(e.presentation),c=n.child(`defaultTextStyle`),l=new Map;for(let[t,n]of e.themes){let e=gR(n);l.set(t,OR(e))}let u=new Map,d=new Map;for(let[t,n]of e.slideMasters){let r=PR(gR(n)),i=kz(t),a=e.slideMasterRels.get(i);if(a){let e=bR(a);r.rels=e;let n=jz(e,`theme`);if(n){let e=xR(Oz(t),n.target);d.set(t,e)}}u.set(t,r)}let f=new Map,p=new Map;for(let[t,n]of e.slideLayouts){let r=WR(gR(n)),i=kz(t),a=e.slideLayoutRels.get(i);if(a){let e=bR(a);r.rels=e;let n=jz(e,`slideMaster`);if(n){let e=xR(Oz(t),n.target);p.set(t,e)}}f.set(t,r)}let m=new Map,h=new Map,g=new Map,_=new Map;for(let[t,n]of e.charts){let r=gR(n);r.exists()&&m.set(t,r);let i=kz(t),a=e.chartRels?.get(i);if(!a)continue;let o=bR(a),s=jz(o,`chartStyle`);if(s){let n=xR(Oz(t),s.target),r=e.chartStyles?.get(n);if(r){let e=gR(r);e.exists()&&g.set(t,e)}}let c=jz(o,`chartColorStyle`);if(c){let n=xR(Oz(t),c.target),r=e.chartColors?.get(n);if(r){let e=gR(r);e.exists()&&_.set(t,e)}}let l=jz(o,`themeOverride`);if(!l)continue;let u=xR(Oz(t),l.target),d=e.themeOverrides?.get(u)??e.themes.get(u);if(!d)continue;let f=gR(d);f.exists()&&h.set(t,OR(f))}let v=n.child(`sldIdLst`),y=[];for(let e of v.children(`sldId`)){let t=e.attr(`r:id`)??e.attr(`id`);if(t){let e=r.get(t);if(e){let t=xR(`ppt`,e.target);y.push(t)}}}if(y.length===0){let e=Mz(r,`slide`);e.sort((e,t)=>(parseInt(e[0].replace(/\D/g,``),10)||0)-(parseInt(t[0].replace(/\D/g,``),10)||0));for(let[,t]of e)if(t.type.includes(`/slide`)&&!t.type.includes(`slideLayout`)&&!t.type.includes(`slideMaster`)){let e=xR(`ppt`,t.target);y.push(e)}}let b=[],x=new Map;for(let n=0;n<y.length;n++){let r=y[n],i=e.slides.get(r);if(!i)continue;let a=kz(r),o=e.slideRels.get(a),s=o?bR(o):new Map,c=t.lazySlides?Ez(i,n,s,r):Tz(gR(i),n,s,r,e.diagramDrawings);if(c.layoutIndex){let e=xR(Oz(r),c.layoutIndex);c.layoutIndex=e,x.set(n,e)}b.push(c)}let S;if(e.tableStyles){let t=gR(e.tableStyles);t.exists()&&(S=t)}let C={width:a,height:o,slides:b,layouts:f,masters:u,themes:l,slideToLayout:x,layoutToMaster:p,masterToTheme:d,media:e.media,mediaResolver:e.mediaResolver,tableStyles:S,defaultTextStyle:c.exists()?c:void 0,charts:m,diagramDrawings:e.diagramDrawings,chartThemes:h,chartStyles:g,chartColorStyles:_,isWps:s};return t.lazySlides||Rz(C),C}function Pz(e){for(let t of[`nvSpPr`,`nvPicPr`,`nvGrpSpPr`,`nvGraphicFramePr`,`nvCxnSpPr`]){let n=e.child(t);if(n.exists()){let e=n.child(`nvPr`).child(`ph`);if(e.exists()){let t=e.attr(`type`),n=e.attr(`idx`),r=n===void 0?void 0:Number(n);return{type:t,idx:r!==void 0&&!isNaN(r)?r:void 0}}}}return{}}function Fz(e){let t=e.child(`spPr`).child(`xfrm`),n=t.exists()?t:e.child(`xfrm`);if(n.exists()){let e=n.child(`off`),t=n.child(`ext`),r=e.numAttr(`x`),i=t.numAttr(`cx`);if(r!==void 0&&i!==void 0)return{position:{x:Y(e.numAttr(`x`)??0),y:Y(e.numAttr(`y`)??0)},size:{w:Y(t.numAttr(`cx`)??0),h:Y(t.numAttr(`cy`)??0)}}}}function Iz(e,t,n){let r;for(let i of e){let e=Pz(i.node);if(t!==void 0&&e.type===t&&n!==void 0&&e.idx===n||(t!==void 0&&e.type===t&&!r&&(r=i),n!==void 0&&e.idx===n&&t===void 0&&e.type===void 0))return i}if(t===void 0&&n!==void 0){for(let t of e)if(Pz(t.node).idx===n)return t}return r}function Lz(e){return e.placeholderEntries??e.placeholders.map(e=>({node:e}))}function Rz(e){for(let t=0;t<e.slides.length;t++)zz(e,e.slides[t])}function zz(e,t){if(t.placeholderInheritanceResolved)return;let n=e.slideToLayout.get(t.index)||t.layoutIndex,r=n?e.layouts.get(n):void 0,i=n?e.layoutToMaster.get(n):void 0,a=i?e.masters.get(i):void 0;Kz(t.nodes,r,a),t.placeholderInheritanceResolved=!0}function Bz(e,t){Dz(t,e.diagramDrawings),zz(e,t)}function Vz(e){let t=e.child(`txBody`);if(!t.exists())return;let n=t.child(`bodyPr`);return n.exists()?n:void 0}function Hz(e,t){if(e.type)return;let n=Pz(t);n.type&&(e.type=n.type)}function Uz(e,t){let n=t.childExtent.w>0?t.size.w/t.childExtent.w:1,r=t.childExtent.h>0?t.size.h/t.childExtent.h:1;return n===0||r===0?e:{position:{x:t.childOffset.x+(e.position.x-t.position.x)/n,y:t.childOffset.y+(e.position.y-t.position.y)/r},size:{w:e.size.w/n,h:e.size.h/r}}}function Wz(e,t){return t.parentGroup?Uz(e,t.parentGroup):e}function Gz(e,t,n,r={}){if(!e.placeholder)return;let{type:i,idx:a}=e.placeholder,o=()=>n?Iz(Lz(n),e.placeholder?.type??i,a):void 0,s=e.size.w===0&&e.size.h===0,c=e.position.y<5;if(t){let n=Iz(t.placeholders,i,a);if(n){Hz(e.placeholder,n.node);let t=n.absoluteXfrm??Fz(n.node);if(t){let n=Wz(t,r);s?(e.position=n.position,e.size=n.size):c&&(e.position=n.position)}if(`textBody`in e&&e.textBody){let t=Vz(n.node);t&&(e.textBody.layoutBodyProperties=t)}if(t){let t=o();if(t&&(Hz(e.placeholder,t.node),`textBody`in e&&e.textBody&&!e.textBody.layoutBodyProperties)){let n=Vz(t.node);n&&(e.textBody.layoutBodyProperties=n)}return}}}let l=o();if(l){Hz(e.placeholder,l.node);let t=l.absoluteXfrm??Fz(l.node);if(t){let n=Wz(t,r);s?(e.position=n.position,e.size=n.size):c&&(e.position=n.position)}if(`textBody`in e&&e.textBody&&!e.textBody.layoutBodyProperties){let t=Vz(l.node);t&&(e.textBody.layoutBodyProperties=t)}}}function Kz(e,t,n){for(let r of e)r.nodeType===`group`&&`children`in r,Gz(r,t,n)}function qz(e,t,n,r,i,a){let o=e.slideToLayout.get(t.index)||``,s=e.layoutToMaster.get(o)||``,c=e.masterToTheme.get(s)||``,l=e.layouts.get(o)||{placeholders:[],spTree:{},rels:new Map,showMasterSp:!0},u=e.masters.get(s)||{colorMap:new Map,textStyles:{},placeholders:[],spTree:{},rels:new Map};return{presentation:e,slide:t,theme:e.themes.get(c)||{colorScheme:new Map,majorFont:{latin:`Calibri`,ea:``,cs:``},minorFont:{latin:`Calibri`,ea:``,cs:``},fillStyles:[],bgFillStyles:[],lineStyles:[],effectStyles:[]},master:u,layout:l,partPath:t.slidePath,layoutPath:o,masterPath:s,mediaUrlCache:n??new Map,colorCache:new Map,pdfjs:i,signal:a,chartInstances:r}}function Jz(e){let t=e.replace(/^#/,``);if(t.length!==6&&t.length!==3)return{r:0,g:0,b:0};let n=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,r=parseInt(n,16);return{r:r>>16&255,g:r>>8&255,b:r&255}}function Yz(e,t,n){let r=e=>Math.max(0,Math.min(255,Math.round(e)));return`#`+[r(e),r(t),r(n)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}function Xz(e,t,n){let r=e/255,i=t/255,a=n/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=(o+s)/2,l=0,u=0;if(o!==s){let e=o-s;switch(u=c>.5?e/(2-o-s):e/(o+s),o){case r:l=((i-a)/e+(i<a?6:0))*60;break;case i:l=((a-r)/e+2)*60;break;case a:l=((r-i)/e+4)*60;break}}return{h:l,s:u,l:c}}function Zz(e,t,n){if(e=(e%360+360)%360,t=Math.max(0,Math.min(1,t)),n=Math.max(0,Math.min(1,n)),t===0){let e=Math.round(n*255);return{r:e,g:e,b:e}}let r=(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),i=n<.5?n*(1+t):n+t-n*t,a=2*n-i,o=e/360;return{r:Math.round(r(a,i,o+1/3)*255),g:Math.round(r(a,i,o)*255),b:Math.round(r(a,i,o-1/3)*255)}}function Qz(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function $z(e){let t=e<=.0031308?e*12.92:1.055*e**.4166666666666667-.055;return Math.max(0,Math.min(255,Math.round(t*255)))}function eB(e,t){let{r:n,g:r,b:i}=Jz(e),a=t/1e5,o=Qz(n),s=Qz(r),c=Qz(i);return Yz($z(o*a+1*(1-a)),$z(s*a+1*(1-a)),$z(c*a+1*(1-a)))}function tB(e,t){let{r:n,g:r,b:i}=Jz(e),a=t/1e5;return Yz($z(Qz(n)*a),$z(Qz(r)*a),$z(Qz(i)*a))}function nB(e,t){let{r:n,g:r,b:i}=Jz(e),{h:a,s:o,l:s}=Xz(n,r,i),c=Zz(a,o,Math.max(0,Math.min(1,t/1e5*s)));return Yz(c.r,c.g,c.b)}function rB(e,t){let{r:n,g:r,b:i}=Jz(e),{h:a,s:o,l:s}=Xz(n,r,i),c=Zz(a,o,Math.max(0,Math.min(1,s+t/1e5)));return Yz(c.r,c.g,c.b)}function iB(e,t){let{r:n,g:r,b:i}=Jz(e),{h:a,s:o,l:s}=Xz(n,r,i),c=Zz(a,Math.max(0,Math.min(1,t/1e5*o)),s);return Yz(c.r,c.g,c.b)}function aB(e,t){let{r:n,g:r,b:i}=Jz(e),{h:a,s:o,l:s}=Xz(n,r,i),c=Zz(t/1e5*a%360,o,s);return Yz(c.r,c.g,c.b)}function oB(e,t){let{r:n,g:r,b:i}=Jz(e),{h:a,s:o,l:s}=Xz(n,r,i),c=Zz(((a+t/6e4)%360+360)%360,o,s);return Yz(c.r,c.g,c.b)}function sB(e,t){let{r:n,g:r,b:i}=Jz(e),{h:a,s:o,l:s}=Xz(n,r,i),c=Zz(a,Math.max(0,Math.min(1,o+t/1e5)),s);return Yz(c.r,c.g,c.b)}function cB(e){return e/1e5*255}function lB(e,t,n){let r=Jz(e);return r[t]=n(r[t]),Yz(r.r,r.g,r.b)}function uB(e,t,n){return lB(e,t,e=>n/1e5*e)}function dB(e,t,n){return lB(e,t,e=>e+cB(n))}function fB(e,t,n){return lB(e,t,()=>cB(n))}function pB(e,t){let{r:n,g:r,b:i}=Jz(e),{h:a,s:o}=Xz(n,r,i),s=Zz(a,o,t/1e5);return Yz(s.r,s.g,s.b)}function mB(e,t){let{r:n,g:r,b:i}=Jz(e),{h:a,l:o}=Xz(n,r,i),s=Zz(a,t/1e5,o);return Yz(s.r,s.g,s.b)}function hB(e,t){let{r:n,g:r,b:i}=Jz(e),{s:a,l:o}=Xz(n,r,i),s=Zz(t/6e4,a,o);return Yz(s.r,s.g,s.b)}function gB(e){let{r:t,g:n,b:r}=Jz(e);return Yz(255-t,255-n,255-r)}function _B(e){let{r:t,g:n,b:r}=Jz(e),i=.2126*t+.7152*n+.0722*r;return Yz(i,i,i)}function vB(e){let{r:t,g:n,b:r}=Jz(e),{h:i,s:a,l:o}=Xz(t,n,r),s=Zz(i+180,a,o);return Yz(s.r,s.g,s.b)}function yB(e){let{r:t,g:n,b:r}=Jz(e);return Yz(Qz(t)*255,Qz(n)*255,Qz(r)*255)}function bB(e){let{r:t,g:n,b:r}=Jz(e);return Yz($z(t/255),$z(n/255),$z(r/255))}function xB(e){return Math.max(0,Math.min(1,e/1e5))}function SB(e,t){let n=e,r=1;for(let e of t)switch(e.name.startsWith(`a:`)?e.name.slice(2):e.name){case`tint`:n=eB(n,e.val);break;case`shade`:n=tB(n,e.val);break;case`red`:n=fB(n,`r`,e.val);break;case`green`:n=fB(n,`g`,e.val);break;case`blue`:n=fB(n,`b`,e.val);break;case`redMod`:n=uB(n,`r`,e.val);break;case`greenMod`:n=uB(n,`g`,e.val);break;case`blueMod`:n=uB(n,`b`,e.val);break;case`redOff`:n=dB(n,`r`,e.val);break;case`greenOff`:n=dB(n,`g`,e.val);break;case`blueOff`:n=dB(n,`b`,e.val);break;case`lum`:n=pB(n,e.val);break;case`lumMod`:n=nB(n,e.val);break;case`lumOff`:n=rB(n,e.val);break;case`sat`:n=mB(n,e.val);break;case`satMod`:n=iB(n,e.val);break;case`hue`:n=hB(n,e.val);break;case`hueMod`:n=aB(n,e.val);break;case`hueOff`:n=oB(n,e.val);break;case`satOff`:n=sB(n,e.val);break;case`inv`:n=gB(n);break;case`gray`:n=_B(n);break;case`comp`:n=vB(n);break;case`gamma`:n=yB(n);break;case`invGamma`:n=bB(n);break;case`alpha`:r=xB(e.val);break;case`alphaMod`:case`alphaModFix`:r=Math.max(0,Math.min(1,r*(e.val/1e5)));break;case`alphaOff`:r=Math.max(0,Math.min(1,r+e.val/1e5));break}return{color:n,alpha:r}}var CB={black:`#000000`,white:`#FFFFFF`,red:`#FF0000`,green:`#008000`,blue:`#0000FF`,yellow:`#FFFF00`,cyan:`#00FFFF`,magenta:`#FF00FF`,orange:`#FFA500`,purple:`#800080`,brown:`#A52A2A`,pink:`#FFC0CB`,gray:`#808080`,grey:`#808080`,lime:`#00FF00`,navy:`#000080`,teal:`#008080`,maroon:`#800000`,olive:`#808000`,silver:`#C0C0C0`,aqua:`#00FFFF`,fuchsia:`#FF00FF`,aliceBlue:`#F0F8FF`,antiqueWhite:`#FAEBD7`,aquamarine:`#7FFFD4`,azure:`#F0FFFF`,beige:`#F5F5DC`,bisque:`#FFE4C4`,blanchedAlmond:`#FFEBCD`,blueViolet:`#8A2BE2`,burlyWood:`#DEB887`,cadetBlue:`#5F9EA0`,chartreuse:`#7FFF00`,chocolate:`#D2691E`,coral:`#FF7F50`,cornflowerBlue:`#6495ED`,cornsilk:`#FFF8DC`,crimson:`#DC143C`,darkBlue:`#00008B`,darkCyan:`#008B8B`,darkGoldenrod:`#B8860B`,darkGray:`#A9A9A9`,darkGrey:`#A9A9A9`,darkGreen:`#006400`,darkKhaki:`#BDB76B`,darkMagenta:`#8B008B`,darkOliveGreen:`#556B2F`,darkOrange:`#FF8C00`,darkOrchid:`#9932CC`,darkRed:`#8B0000`,darkSalmon:`#E9967A`,darkSeaGreen:`#8FBC8F`,darkSlateBlue:`#483D8B`,darkSlateGray:`#2F4F4F`,darkSlateGrey:`#2F4F4F`,darkTurquoise:`#00CED1`,darkViolet:`#9400D3`,deepPink:`#FF1493`,deepSkyBlue:`#00BFFF`,dimGray:`#696969`,dimGrey:`#696969`,dodgerBlue:`#1E90FF`,firebrick:`#B22222`,floralWhite:`#FFFAF0`,forestGreen:`#228B22`,gainsboro:`#DCDCDC`,ghostWhite:`#F8F8FF`,gold:`#FFD700`,goldenrod:`#DAA520`,greenYellow:`#ADFF2F`,honeydew:`#F0FFF0`,hotPink:`#FF69B4`,indianRed:`#CD5C5C`,indigo:`#4B0082`,ivory:`#FFFFF0`,khaki:`#F0E68C`,lavender:`#E6E6FA`,lavenderBlush:`#FFF0F5`,lawnGreen:`#7CFC00`,lemonChiffon:`#FFFACD`,lightBlue:`#ADD8E6`,lightCoral:`#F08080`,lightCyan:`#E0FFFF`,lightGoldenrodYellow:`#FAFAD2`,lightGray:`#D3D3D3`,lightGrey:`#D3D3D3`,lightGreen:`#90EE90`,lightPink:`#FFB6C1`,lightSalmon:`#FFA07A`,lightSeaGreen:`#20B2AA`,lightSkyBlue:`#87CEFA`,lightSlateGray:`#778899`,lightSlateGrey:`#778899`,lightSteelBlue:`#B0C4DE`,lightYellow:`#FFFFE0`,limeGreen:`#32CD32`,linen:`#FAF0E6`,mediumAquamarine:`#66CDAA`,mediumBlue:`#0000CD`,mediumOrchid:`#BA55D3`,mediumPurple:`#9370DB`,mediumSeaGreen:`#3CB371`,mediumSlateBlue:`#7B68EE`,mediumSpringGreen:`#00FA9A`,mediumTurquoise:`#48D1CC`,mediumVioletRed:`#C71585`,midnightBlue:`#191970`,mintCream:`#F5FFFA`,mistyRose:`#FFE4E1`,moccasin:`#FFE4B5`,navajoWhite:`#FFDEAD`,oldLace:`#FDF5E6`,oliveDrab:`#6B8E23`,orangeRed:`#FF4500`,orchid:`#DA70D6`,paleGoldenrod:`#EEE8AA`,paleGreen:`#98FB98`,paleTurquoise:`#AFEEEE`,paleVioletRed:`#DB7093`,papayaWhip:`#FFEFD5`,peachPuff:`#FFDAB9`,peru:`#CD853F`,plum:`#DDA0DD`,powderBlue:`#B0E0E6`,rosyBrown:`#BC8F8F`,royalBlue:`#4169E1`,saddleBrown:`#8B4513`,salmon:`#FA8072`,sandyBrown:`#F4A460`,seaGreen:`#2E8B57`,seaShell:`#FFF5EE`,sienna:`#A0522D`,skyBlue:`#87CEEB`,slateBlue:`#6A5ACD`,slateGray:`#708090`,slateGrey:`#708090`,snow:`#FFFAFA`,springGreen:`#00FF7F`,steelBlue:`#4682B4`,tan:`#D2B48C`,thistle:`#D8BFD8`,tomato:`#FF6347`,turquoise:`#40E0D0`,violet:`#EE82EE`,wheat:`#F5DEB3`,whiteSmoke:`#F5F5F5`,yellowGreen:`#9ACD32`};function wB(e){if(CB[e]!==void 0)return CB[e];let t=e.toLowerCase();for(let[e,n]of Object.entries(CB))if(e.toLowerCase()===t)return n}function TB(e){let t=[e.localName,e.attr(`val`)??``];for(let n of e.allChildren()){let e=n.localName,r=n.attr(`val`)??n.attr(`amt`);e&&t.push(`${e}:${r??``}`);for(let e of n.allChildren()){let n=e.localName,r=e.attr(`val`)??e.attr(`amt`);n&&t.push(`${n}:${r??``}`)}}return t.join(`|`)}function EB(e){let t=[];for(let n of e.allChildren()){let e=n.localName,r=n.numAttr(`val`)??n.numAttr(`amt`);r!==void 0&&e?t.push({name:e,val:r}):(e===`inv`||e===`gray`||e===`comp`||e===`gamma`||e===`invGamma`)&&t.push({name:e,val:0})}return t}function DB(e,t){let n=e;if(t.layout.colorMapOverride){let r=t.layout.colorMapOverride.get(e);r&&(n=r)}if(n===e){let r=t.master.colorMap.get(e);r&&(n=r)}return t.theme.colorScheme.get(n)||t.theme.colorScheme.get(e)||`000000`}function OB(e,t){let n=TB(e),r=t.colorCache.get(n);if(r)return r;let i=kB(e,t);return t.colorCache.set(n,i),i}function kB(e,t,n){for(let r of e.allChildren()){let e=r.localName,i=EB(r);switch(e){case`srgbClr`:return SB(r.attr(`val`)||`000000`,i);case`schemeClr`:{let e=r.attr(`val`)||`tx1`;if(e.toLowerCase()===`phclr`&&n!=null&&n.exists()){let e=OB(n,t),r=SB(e.color.startsWith(`#`)?e.color.slice(1):e.color,i);return{color:r.color,alpha:r.alpha*e.alpha}}return SB(DB(e,t),i)}case`sysClr`:return SB(r.attr(`lastClr`)||r.attr(`val`)||`000000`,i);case`prstClr`:return SB((wB(r.attr(`val`)||`black`)||`#000000`).replace(`#`,``),i);case`hslClr`:{let e=Zz((r.numAttr(`hue`)??0)/6e4,(r.numAttr(`sat`)??0)/1e5,(r.numAttr(`lum`)??0)/1e5);return SB(Yz(e.r,e.g,e.b).replace(`#`,``),i)}case`scrgbClr`:return SB(Yz(Math.round((r.numAttr(`r`)??0)/1e5*255),Math.round((r.numAttr(`g`)??0)/1e5*255),Math.round((r.numAttr(`b`)??0)/1e5*255)).replace(`#`,``),i)}}let r=e.localName;if(r===`srgbClr`)return SB(e.attr(`val`)||`000000`,EB(e));if(r===`schemeClr`){let r=e.attr(`val`)||`tx1`;if(r.toLowerCase()===`phclr`&&n!=null&&n.exists()){let r=OB(n,t),i=SB(r.color.startsWith(`#`)?r.color.slice(1):r.color,EB(e));return{color:i.color,alpha:i.alpha*r.alpha}}return SB(DB(r,t),EB(e))}if(r===`sysClr`)return SB(e.attr(`lastClr`)||e.attr(`val`)||`000000`,EB(e));if(r===`prstClr`)return SB((wB(e.attr(`val`)||`black`)||`#000000`).replace(`#`,``),EB(e));if(r===`hslClr`){let t=Zz((e.numAttr(`hue`)??0)/6e4,(e.numAttr(`sat`)??0)/1e5,(e.numAttr(`lum`)??0)/1e5);return SB(Yz(t.r,t.g,t.b).replace(`#`,``),EB(e))}return r===`scrgbClr`?SB(Yz(Math.round((e.numAttr(`r`)??0)/1e5*255),Math.round((e.numAttr(`g`)??0)/1e5*255),Math.round((e.numAttr(`b`)??0)/1e5*255)).replace(`#`,``),EB(e)):{color:`#000000`,alpha:1}}function AB(e,t){let{color:n,alpha:r}=OB(e,t);return jB(n,r)}function jB(e,t){let n=e.startsWith(`#`)?e:`#${e}`,{r,g:i,b:a}=Jz(n);return t>=1?n:`rgba(${r},${i},${a},${t.toFixed(3)})`}function MB(e,t,n){return n!=null&&n.exists()?kB(e,t,n):OB(e,t)}function NB(e,t){let n=e.child(`solidFill`);if(n.exists()){let{color:e,alpha:r}=OB(n,t);return jB(e,r)}let r=e.child(`gradFill`);if(r.exists())return FB(r,t);if(e.child(`blipFill`).exists())return``;let i=e.child(`pattFill`);return i.exists()?PB(i,t):e.child(`grpFill`).exists()?t.groupFillNode?NB(t.groupFillNode,t):``:e.child(`noFill`).exists()?`transparent`:``}function PB(e,t,n){let r=e.attr(`prst`)??`solid`,i=`#000000`,a=`#ffffff`,o=e.child(`fgClr`);if(o.exists()){let{color:e,alpha:r}=MB(o,t,n);i=jB(e,r)}let s=e.child(`bgClr`);if(s.exists()){let{color:e,alpha:r}=MB(s,t,n);a=jB(e,r)}let c=e=>`${e} 0 0 / 8px 8px, ${a}`,l=(e,t)=>`${e} 0 0 / 8px 8px, ${t} 0 0 / 8px 8px, ${a}`;switch(r){case`solid`:case`solidDmnd`:return i;case`pct5`:case`pct10`:case`pct20`:case`pct25`:return c(`radial-gradient(${i} 1px, transparent 1px)`);case`pct30`:case`pct40`:case`pct50`:return c(`radial-gradient(${i} 1.5px, transparent 1.5px)`);case`pct60`:case`pct70`:case`pct75`:case`pct80`:case`pct90`:return c(`radial-gradient(${i} 2.5px, transparent 2.5px)`);case`horz`:case`ltHorz`:case`narHorz`:case`dkHorz`:return c(`repeating-linear-gradient(0deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`vert`:case`ltVert`:case`narVert`:case`dkVert`:return c(`repeating-linear-gradient(90deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`dnDiag`:case`ltDnDiag`:case`narDnDiag`:case`dkDnDiag`:case`wdDnDiag`:return c(`repeating-linear-gradient(45deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`upDiag`:case`ltUpDiag`:case`narUpDiag`:case`dkUpDiag`:case`wdUpDiag`:return c(`repeating-linear-gradient(-45deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`smGrid`:case`lgGrid`:case`cross`:return l(`repeating-linear-gradient(0deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`,`repeating-linear-gradient(90deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`smCheck`:case`lgCheck`:case`diagCross`:case`openDmnd`:return l(`repeating-linear-gradient(45deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`,`repeating-linear-gradient(-45deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`dotGrid`:case`dotDmnd`:return c(`radial-gradient(${i} 1px, transparent 1px)`);case`trellis`:case`weave`:return l(`repeating-linear-gradient(45deg, ${i} 0px, ${i} 2px, transparent 2px, transparent 8px)`,`repeating-linear-gradient(-45deg, ${i} 0px, ${i} 2px, transparent 2px, transparent 8px)`);case`dashDnDiag`:case`dashUpDiag`:case`dashHorz`:case`dashVert`:return c(`repeating-linear-gradient(${r.includes(`Dn`)?`45deg`:r.includes(`Up`)?`-45deg`:r.includes(`Horz`)?`0deg`:`90deg`}, ${i} 0px, ${i} 3px, transparent 3px, transparent 8px)`);case`sphere`:case`shingle`:case`plaid`:case`divot`:case`zigZag`:return c(`radial-gradient(${i} 2px, transparent 2px)`);default:return a}}function FB(e,t,n){let r=e.child(`gsLst`),i=[];for(let e of r.children(`gs`)){let r=CR(e.numAttr(`pos`)??0)*100,{color:a,alpha:o}=MB(e,t,n);i.push({position:r,color:jB(a,o)})}if(i.length===0)return``;i.sort((e,t)=>e.position-t.position);let a=UB(i),o=e.child(`lin`);if(o.exists())return`linear-gradient(${((SR(o.numAttr(`ang`)??0)+90)%360).toFixed(1)}deg, ${a})`;let s=e.child(`path`);if(s.exists()){let e=s.attr(`path`);if(e===`circle`||e===`shape`||e===`rect`){let t=RB(s),{cx:n,cy:r}=zB(t),a=UB(HB({stops:i,cx:n,cy:r,fillToRect:t}));return e===`rect`?`radial-gradient(closest-side at ${(n*100).toFixed(1)}% ${(r*100).toFixed(1)}%, ${a})`:`radial-gradient(ellipse at ${(n*100).toFixed(1)}% ${(r*100).toFixed(1)}%, ${a})`}}return`linear-gradient(180deg, ${a})`}function IB(e,t,n){let r=Y(e.numAttr(`w`)??0),i=`transparent`,a=e.child(`solidFill`);if(a.exists()){let e=a.child(`schemeClr`);if(e.exists()&&(e.attr(`val`)??``).toLowerCase()===`phclr`&&n&&n.exists()){let r=OB(n,t),a=SB(r.color.startsWith(`#`)?r.color.slice(1):r.color,EB(e));i=jB(a.color,a.alpha*r.alpha)}else{let e=OB(a,t);i=jB(e.color,e.alpha)}}else if(n&&n.exists()&&(n.numAttr(`idx`)??0)>0){let e=n.numAttr(`idx`)??0;if(e>0&&t.theme.lineStyles&&t.theme.lineStyles.length>=e){let a=t.theme.lineStyles[e-1];r===0&&(r=Y(a.numAttr(`w`)??0));let o=OB(n,t);i=jB(o.color,o.alpha)}else{let a=OB(n,t);i=jB(a.color,a.alpha),r===0&&e>0&&(r=e*.75)}}if(r===0&&n&&n.exists()){let e=n.numAttr(`idx`)??0;e>0&&t.theme.lineStyles&&t.theme.lineStyles.length>=e?r=Y(t.theme.lineStyles[e-1].numAttr(`w`)??0):e>0&&(r=e*.75)}r===0&&i!==`transparent`&&!e.child(`noFill`).exists()&&(r=1);let o=`solid`,s=`solid`,c=e.child(`prstDash`);if(c.exists()){let e=c.attr(`val`)||`solid`;s=e,o=LB(e)}if(o===`solid`&&n&&n.exists()){let e=n.numAttr(`idx`)??0;if(e>0&&t.theme.lineStyles&&t.theme.lineStyles.length>=e){let n=t.theme.lineStyles[e-1].child(`prstDash`);n.exists()&&(s=n.attr(`val`)||`solid`,o=LB(s))}}return{width:r,color:i,dash:o,dashKind:s}}function LB(e){switch(e){case`solid`:return`solid`;case`dot`:case`sysDot`:return`dotted`;case`dash`:case`sysDash`:case`lgDash`:return`dashed`;case`dashDot`:case`lgDashDot`:case`lgDashDotDot`:case`sysDashDot`:case`sysDashDotDot`:return`dashed`;default:return`solid`}}function RB(e){let t=e.child(`fillToRect`);if(t.exists())return{l:(t.numAttr(`l`)??0)/1e5,t:(t.numAttr(`t`)??0)/1e5,r:(t.numAttr(`r`)??0)/1e5,b:(t.numAttr(`b`)??0)/1e5}}function zB(e){return e?{cx:(e.l+(1-e.r))/2,cy:(e.t+(1-e.b))/2}:{cx:.5,cy:.5}}function BB(e){return Math.max(0,Math.min(1,e))}function VB(e,t={}){let n=e.fillToRect;if(!n)return 0;let r=Math.max(0,1-n.l-n.r),i=Math.max(0,1-n.t-n.b);if(r<=0&&i<=0)return 0;let a=e.cx??.5,o=e.cy??.5,s=Math.max(Math.abs(a),Math.abs(1-a)),c=Math.max(Math.abs(o),Math.abs(1-o));if(t.axis===`x`)return s>0?BB(r/2/s):0;if(t.axis===`y`)return c>0?BB(i/2/c):0;let l=t.width??1,u=t.height??1,d=Math.hypot(r/2*l,i/2*u),f=Math.hypot(s*l,c*u);return f>0?BB(d/f):0}function HB(e,t={}){let n=VB(e,t);return n<=0?e.stops:e.stops.map(e=>({...e,position:n*100+e.position*(1-n)}))}function UB(e){return e.map(e=>`${e.color} ${e.position.toFixed(1)}%`).join(`, `)}function WB(e,t,n){let r=e.child(`gsLst`),i=[];for(let e of r.children(`gs`)){let r=CR(e.numAttr(`pos`)??0)*100,{color:a,alpha:o}=MB(e,t,n);i.push({position:r,color:jB(a,o)})}if(i.length===0)return null;i.sort((e,t)=>e.position-t.position);let a=e.child(`lin`);if(a.exists())return{type:`linear`,stops:i,angle:SR(a.numAttr(`ang`)??0),colorInterpolation:`linearRGB`};let o=e.child(`path`);if(o.exists()){let e=o.attr(`path`);if(e===`circle`||e===`shape`||e===`rect`){let t=RB(o),{cx:n,cy:r}=zB(t);return{type:`radial`,stops:i,angle:0,cx:n,cy:r,pathType:e,fillToRect:t,colorInterpolation:`linearRGB`}}}return{type:`linear`,stops:i,angle:0,colorInterpolation:`linearRGB`}}function GB(e,t){let n=e.child(`gradFill`);return!n.exists()&&e.child(`grpFill`).exists()&&t.groupFillNode&&(n=t.groupFillNode.child(`gradFill`)),n.exists()?WB(n,t):null}function KB(e,t){let n=e.numAttr(`idx`)??0;return JB(e,t,t.theme.fillStyles,n)}function qB(e,t){let n=e.numAttr(`idx`)??0;return n>=1001?JB(e,t,t.theme.bgFillStyles??[],n-1e3):JB(e,t,t.theme.fillStyles,n)}function JB(e,t,n,r){if(r<=0||(n?.length??0)<r)return{fillCss:AB(e,t),gradientFillData:null};let i=n?.[r-1];if(!(i!=null&&i.exists()))return{fillCss:AB(e,t),gradientFillData:null};if(i.localName===`solidFill`){let n=MB(i,t,e);return{fillCss:jB(n.color,n.alpha),gradientFillData:null}}return i.localName===`gradFill`?{fillCss:FB(i,t,e),gradientFillData:WB(i,t,e)}:i.localName===`pattFill`?{fillCss:PB(i,t,e),gradientFillData:null}:i.localName===`noFill`?{fillCss:`transparent`,gradientFillData:null}:{fillCss:AB(e,t),gradientFillData:null}}function YB(e,t){let n=e.child(`gradFill`);if(!n.exists())return null;let r=n.child(`gsLst`),i=[];for(let e of r.children(`gs`)){let n=CR(e.numAttr(`pos`)??0)*100,{color:r,alpha:a}=OB(e,t),o=jB(r,a);i.push({position:n,color:o})}if(i.length===0)return null;i.sort((e,t)=>e.position-t.position);let a=n.child(`lin`),o=0;a.exists()&&(o=SR(a.numAttr(`ang`)??0));let s=Y(e.numAttr(`w`)??0);return s<=0&&(s=1),{stops:i,angle:o,width:s,colorInterpolation:`linearRGB`}}var XB=new Set([`http:`,`https:`,`mailto:`]),ZB=new Set([`http:`,`https:`]);function QB(e){try{return new URL(e).protocol.toLowerCase()}catch{return}}function $B(e){let t=QB(e);return t!==void 0&&XB.has(t)}function eV(e){let t=QB(e);return t!==void 0&&ZB.has(t)}var tV=128;function nV(e,t){if(!(t>0))return e;let n=e.trim();if(!n)return`${100/t}%`;if(n.length>tV)return e;let r=rV(n);return r?`${r.value/t}${r.unit||`%`}`:e}function rV(e){let t=0;(e[t]===`-`||e[t]===`+`)&&t++;let n=0;for(;lV(e.charCodeAt(t));)t++,n++;if(e[t]===`.`)for(t++;lV(e.charCodeAt(t));)t++,n++;if(n===0)return null;if(e[t]===`e`||e[t]===`E`){let n=t;t++,(e[t]===`-`||e[t]===`+`)&&t++;let r=0;for(;lV(e.charCodeAt(t));)t++,r++;r===0&&(t=n)}let r=Number(e.slice(0,t));if(!Number.isFinite(r))return null;let i=e.slice(t);return cV(i)?{value:r,unit:i}:null}function iV(e){let t=aV(e);if(t<0)return null;let n=e.slice(t+1).trim();return sV(n)?{imageLayers:oV(e.slice(0,t)),color:n}:null}function aV(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];if(r===`)`)t++;else if(r===`(`)t>0&&t--;else if(r===`,`&&t===0)return n}return-1}function oV(e){return e.split(`0 0 / 8px 8px`).join(``).trimEnd()}function sV(e){if(!e)return!1;if(e[0]===`#`){let t=e.length-1;if(![3,4,6,8].includes(t))return!1;for(let t=1;t<e.length;t++)if(!dV(e.charCodeAt(t)))return!1;return!0}let t=e.toLowerCase();if(t.startsWith(`rgb(`)||t.startsWith(`rgba(`))return e.endsWith(`)`)&&!e.slice(0,-1).includes(`)`);for(let t=0;t<e.length;t++)if(!uV(e.charCodeAt(t)))return!1;return!0}function cV(e){if(!e||e===`%`)return!0;for(let t=0;t<e.length;t++)if(!uV(e.charCodeAt(t)))return!1;return!0}function lV(e){return e>=48&&e<=57}function uV(e){return e>=65&&e<=90||e>=97&&e<=122}function dV(e){return lV(e)||e>=65&&e<=70||e>=97&&e<=102}var fV=0;function pV(e,t,n,r){return`rgb(${Math.round(e*r+255*(1-r))},${Math.round(t*r+255*(1-r))},${Math.round(n*r+255*(1-r))})`}function mV(e,t){if(t.includes(`gradient`)&&t.includes(` 0 0 / `)){let n=iV(t);if(n){e.style.backgroundImage=n.imageLayers,e.style.backgroundSize=`8px 8px`,e.style.backgroundRepeat=`repeat`,e.style.backgroundColor=n.color;return}}t.includes(`gradient`)||t.startsWith(`url(`)||t.includes(`repeating-`)?e.style.background=t:e.style.backgroundColor=t}function hV(e){let t=e*Math.PI/180;return{x1:50-50*Math.cos(t),y1:50-50*Math.sin(t),x2:50+50*Math.cos(t),y2:50+50*Math.sin(t)}}function gV(e,t){for(let n of t){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`stop`);t.setAttribute(`offset`,`${n.position}%`),t.setAttribute(`stop-color`,n.color),e.appendChild(t)}}function _V(e,t,n,r){let i=`http://www.w3.org/2000/svg`,a=document.createElementNS(i,`svg`);a.setAttribute(`data-pptx-background-gradient`,`true`),a.setAttribute(`viewBox`,`0 0 ${n} ${r}`),a.setAttribute(`width`,`100%`),a.setAttribute(`height`,`100%`),a.style.position=`absolute`,a.style.left=`0`,a.style.top=`0`,a.style.width=`100%`,a.style.height=`100%`,a.style.pointerEvents=`none`,a.style.display=`block`;let o=document.createElementNS(i,`defs`);a.appendChild(o);let s=`bg-grad-${++fV}`;if(t.type===`radial`&&t.pathType===`rect`){let e=t.cx??.5,c=t.cy??.5,l=(e,n)=>{let r=HB(t,{axis:n}),i=[];for(let t of r){let n=t.position/100;i.push({offset:e-n*e,color:t.color}),i.push({offset:e+n*(1-e),color:t.color})}return i.sort((e,t)=>e.offset-t.offset)},u=`${s}-h`,d=document.createElementNS(i,`linearGradient`);d.setAttribute(`id`,u),d.setAttribute(`color-interpolation`,t.colorInterpolation??`linearRGB`),d.setAttribute(`x1`,`0%`),d.setAttribute(`y1`,`0%`),d.setAttribute(`x2`,`100%`),d.setAttribute(`y2`,`0%`);for(let t of l(e,`x`)){let e=document.createElementNS(i,`stop`);e.setAttribute(`offset`,`${(t.offset*100).toFixed(2)}%`),e.setAttribute(`stop-color`,t.color),d.appendChild(e)}o.appendChild(d);let f=`${s}-v`,p=document.createElementNS(i,`linearGradient`);p.setAttribute(`id`,f),p.setAttribute(`color-interpolation`,t.colorInterpolation??`linearRGB`),p.setAttribute(`x1`,`0%`),p.setAttribute(`y1`,`0%`),p.setAttribute(`x2`,`0%`),p.setAttribute(`y2`,`100%`);for(let e of l(c,`y`)){let t=document.createElementNS(i,`stop`);t.setAttribute(`offset`,`${(e.offset*100).toFixed(2)}%`),t.setAttribute(`stop-color`,e.color),p.appendChild(t)}o.appendChild(p);let m=document.createElementNS(i,`g`);m.setAttribute(`style`,`isolation: isolate`);let h=document.createElementNS(i,`rect`);h.setAttribute(`width`,String(n)),h.setAttribute(`height`,String(r)),h.setAttribute(`fill`,`black`),m.appendChild(h);for(let e of[u,f]){let t=document.createElementNS(i,`rect`);t.setAttribute(`width`,String(n)),t.setAttribute(`height`,String(r)),t.setAttribute(`fill`,`url(#${e})`),t.setAttribute(`style`,`mix-blend-mode: lighten`),m.appendChild(t)}a.appendChild(m)}else if(t.type===`radial`){let e=document.createElementNS(i,`radialGradient`);e.setAttribute(`id`,s),e.setAttribute(`color-interpolation`,t.colorInterpolation??`linearRGB`),e.setAttribute(`gradientUnits`,`userSpaceOnUse`);let c=t.cx??.5,l=t.cy??.5;e.setAttribute(`cx`,String(c*n)),e.setAttribute(`cy`,String(l*r));let u=Math.max(c,1-c),d=Math.max(l,1-l);e.setAttribute(`r`,String(Math.hypot(u*n,d*r))),gV(e,HB(t,{width:n,height:r})),o.appendChild(e);let f=document.createElementNS(i,`rect`);f.setAttribute(`width`,String(n)),f.setAttribute(`height`,String(r)),f.setAttribute(`fill`,`url(#${s})`),a.appendChild(f)}else{let e=document.createElementNS(i,`linearGradient`);e.setAttribute(`id`,s),e.setAttribute(`color-interpolation`,t.colorInterpolation??`linearRGB`),e.setAttribute(`gradientUnits`,`userSpaceOnUse`);let c=hV(t.angle);e.setAttribute(`x1`,String(c.x1/100*n)),e.setAttribute(`y1`,String(c.y1/100*r)),e.setAttribute(`x2`,String(c.x2/100*n)),e.setAttribute(`y2`,String(c.y2/100*r)),gV(e,t.stops),o.appendChild(e);let l=document.createElementNS(i,`rect`);l.setAttribute(`width`,String(n)),l.setAttribute(`height`,String(r)),l.setAttribute(`fill`,`url(#${s})`),a.appendChild(l)}e.style.position||(e.style.position=`relative`),e.style.background=``,e.querySelectorAll(`svg[data-pptx-background-gradient="true"]`).forEach(e=>{e.remove()}),e.insertBefore(a,e.firstChild)}function vV(e,t,n){return yV(GB(e,t),t,n)}function yV(e,t,n){return e!=null&&e.pathType?(_V(n,e,t.presentation.width,t.presentation.height),!0):!1}function bV(e,t){let n,r=e.slide.rels;if(e.slide.background?(n=e.slide.background,r=e.slide.rels):e.layout.background?(n=e.layout.background,r=e.layout.rels):e.master.background&&(n=e.master.background,r=e.master.rels),!n){t.style.backgroundColor=`#FFFFFF`;return}let i=n.child(`bgPr`);if(i.exists()){xV(i,e,t,r);return}let a=n.child(`bgRef`);if(a.exists()){SV(a,e,t);return}t.style.backgroundColor=`#FFFFFF`}function xV(e,t,n,r){let i=e.child(`solidFill`);if(i.exists()){let{color:e,alpha:r}=OB(i,t),a=e.startsWith(`#`)?e:`#${e}`;if(r<1){let{r:e,g:t,b:i}=Jz(a);n.style.backgroundColor=pV(e,t,i,r)}else n.style.backgroundColor=a;return}if(e.child(`gradFill`).exists()){if(vV(e,t,n))return;let r=NB(e,t);r&&(n.style.background=r);return}if(e.child(`pattFill`).exists()){let r=NB(e,t);r&&mV(n,r);return}let a=e.child(`blipFill`);if(a.exists()){CV(a,t,n,r);return}if(e.child(`noFill`).exists()){n.style.backgroundColor=`#FFFFFF`;return}}function SV(e,t,n){let r=e.numAttr(`idx`)??0;if(r>=1001&&r-1e3<=(t.theme.bgFillStyles?.length??0)||r>0&&r<=(t.theme.fillStyles?.length??0)){let{fillCss:r,gradientFillData:i}=qB(e,t);if(yV(i,t,n))return;mV(n,r);return}let{color:i,alpha:a}=OB(e,t);if(i&&i!==`#000000`){let e=i.startsWith(`#`)?i:`#${i}`;if(a<1){let{r:t,g:r,b:i}=Jz(e);n.style.backgroundColor=pV(t,r,i,a)}else n.style.backgroundColor=e}else n.style.backgroundColor=`#FFFFFF`}function CV(e,t,n,r){var i;let a=e.child(`blip`),o=a.attr(`embed`)??a.attr(`r:embed`),s=a.attr(`link`)??a.attr(`r:link`),c=o??s;if(!c)return;let l=(r??t.slide.rels).get(c);if(!l)return;let u;if(_R(l.targetMode)){if(!eV(l.target))return;u=l.target}else{let r=XL(l.target,t.presentation.media);if(!r){if(t.presentation.mediaResolver){let r=ZL(l.target,t.presentation.media,t.presentation.mediaResolver).then(r=>{r&&wV(e,n,QL(r.mediaPath,r.data,t.mediaUrlCache))}).catch(()=>{});(i=t.asyncTasks)==null||i.push(r),t.asyncTasks}return}let{mediaPath:a,data:o}=r;u=QL(a,o,t.mediaUrlCache)}wV(e,n,u)}function wV(e,t,n){let r=kV(e.child(`blip`));if(r<1||e.child(`srcRect`).exists()){TV(e,t,n,r);return}t.style.backgroundImage=`url("${n}")`;let i=e.child(`stretch`);i.exists()&&(MV(t,i.child(`fillRect`)),t.style.backgroundRepeat=`no-repeat`),e.child(`tile`).exists()&&(t.style.backgroundRepeat=`repeat`,t.style.backgroundSize=`auto`)}function TV(e,t,n,r){t.style.position||(t.style.position=`relative`),t.style.backgroundImage=``,t.querySelectorAll(`[data-pptx-background-image="true"]`).forEach(e=>{e.remove()});let i=document.createElement(`div`);i.setAttribute(`data-pptx-background-image`,`true`),i.style.position=`absolute`,i.style.pointerEvents=`none`,i.style.opacity=`${Number(r.toFixed(4))}`;let a=e.child(`stretch`);DV(i,a.exists()?a.child(`fillRect`):new hR(null));let o=e.child(`srcRect`);if(o.exists()){i.style.overflow=`hidden`;let e=document.createElement(`div`);e.setAttribute(`data-pptx-background-crop`,`true`),e.style.position=`absolute`,e.style.backgroundImage=`url("${n}")`,e.style.backgroundSize=`100% 100%`,e.style.backgroundRepeat=`no-repeat`,OV(e,o),i.appendChild(e),t.insertBefore(i,t.firstChild);return}i.style.backgroundImage=`url("${n}")`,a.exists()&&(i.style.backgroundSize=`100% 100%`,i.style.backgroundRepeat=`no-repeat`),e.child(`tile`).exists()&&(i.style.backgroundRepeat=`repeat`,i.style.backgroundSize=`auto`),t.insertBefore(i,t.firstChild)}function EV(e){if(!e.exists())return{left:0,top:0,width:100,height:100};let t=AV(e,`l`),n=AV(e,`t`),r=AV(e,`r`),i=AV(e,`b`);return{left:t,top:n,width:100-t-r,height:100-n-i}}function DV(e,t){let n=EV(t);e.style.left=`${n.left}%`,e.style.top=`${n.top}%`,e.style.width=`${n.width}%`,e.style.height=`${n.height}%`}function OV(e,t){let n=AV(t,`l`)/100,r=AV(t,`t`)/100,i=AV(t,`r`)/100,a=AV(t,`b`)/100,o=1-n-i,s=1-r-a;if(o<=.001||s<=.001){e.style.left=`0%`,e.style.top=`0%`,e.style.width=`100%`,e.style.height=`100%`;return}let c=1/o,l=1/s;e.style.left=`${-n*c*100}%`,e.style.top=`${-r*l*100}%`,e.style.width=`${c*100}%`,e.style.height=`${l*100}%`}function kV(e){let t=1,n=e.child(`alphaModFix`);n.exists()&&(t*=(n.numAttr(`amt`)??1e5)/1e5);let r=e.child(`alphaMod`);r.exists()&&(t*=(r.numAttr(`val`)??1e5)/1e5);let i=e.child(`alphaOff`);return i.exists()&&(t+=(i.numAttr(`val`)??0)/1e5),Math.max(0,Math.min(1,t))}function AV(e,t){return(e.numAttr(t)??0)/1e3}function jV(e,t){let n=e+t;return Math.abs(n)<1e-4?0:e/n*100}function MV(e,t){if(!t.exists()){e.style.backgroundSize=`100% 100%`,e.style.backgroundPosition=``;return}let n=AV(t,`l`),r=AV(t,`t`),i=AV(t,`r`),a=AV(t,`b`),o=100-n-i,s=100-r-a;e.style.backgroundSize=`${o}% ${s}%`,e.style.backgroundPosition=`${jV(n,i)}% ${jV(r,a)}%`}function NV(e,t){let n=(e?.bodyProperties)?.child(t);if(n!=null&&n.exists())return n;let r=(e?.layoutBodyProperties)?.child(t);if(r!=null&&r.exists())return r}var PV=/^\+(mj|mn)-(lt|ea|cs)$/,FV={lt:`latin`,ea:`ea`,cs:`cs`},IV=[`Hans`,`Hant`,`Jpan`,`Hang`];function LV(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`&&e.length>0):typeof e==`string`&&e.length>0?[e]:[]}function RV(e){let t=e.toLowerCase();if(t.startsWith(`zh`))return/-(tw|hk|mo)\b/.test(t)?`Hant`:`Hans`;if(t.startsWith(`ja`))return`Jpan`;if(t.startsWith(`ko`))return`Hang`;if(t.startsWith(`ar`))return`Arab`;if(t.startsWith(`he`))return`Hebr`;if(t.startsWith(`th`))return`Thai`;if(t.startsWith(`hi`)||t.startsWith(`mr`)||t.startsWith(`ne`))return`Deva`}function zV(e,t){if(e){for(let n of LV(t)){let t=RV(n);if(t&&e[t])return e[t]}for(let t of IV)if(e[t])return e[t]}}function BV(e,t,n){let r=e.match(PV);if(!r)return e;let i=r[1],a=r[2],o=i===`mj`?t.theme.majorFont:t.theme.minorFont,s=o[FV[a]];if(s)return s;if(a===`ea`){let e=zV(o.scripts,n);if(e)return e}return o.latin||o.ea||o.cs||e}function VV(e,t,n){let r=new Set,i=[];for(let a of e){if(!a)continue;let e=BV(a,t,n).trim();if(!e)continue;let o=e.toLowerCase();r.has(o)||(r.add(o),i.push(e))}return i}var HV=new Set([`serif`,`sans-serif`,`monospace`,`cursive`,`fantasy`,`system-ui`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`emoji`,`math`,`fangsong`]),UV=[`PingFang SC`,`Hiragino Sans GB`,`Noto Sans CJK SC`,`Source Han Sans SC`,`Arial Unicode MS`,`sans-serif`],WV=new Set([`microsoft yahei`,`microsoft yahei ui`,`微软雅黑`,`dengxian`,`等线`,`simhei`,`黑体`,`heiti sc`]),GV={calibri:[`Calibri`,`Aptos`,`Carlito`,`system-ui`,`Arial`,`Helvetica`,`sans-serif`],"calibri light":[`Calibri Light`,`Aptos Display`,`Aptos`,`Carlito`,`system-ui`,`Arial`,`Helvetica`,`sans-serif`],aptos:[`Aptos`,`system-ui`,`Arial`,`Helvetica`,`sans-serif`],"aptos display":[`Aptos Display`,`Aptos`,`system-ui`,`Arial`,`Helvetica`,`sans-serif`],"microsoft yahei":[`Microsoft YaHei`,`微软雅黑`],"microsoft yahei ui":[`Microsoft YaHei UI`,`Microsoft YaHei`,`微软雅黑`],微软雅黑:[`微软雅黑`,`Microsoft YaHei`],dengxian:[`DengXian`,`等线`],等线:[`等线`,`DengXian`],simhei:[`SimHei`,`黑体`],黑体:[`黑体`,`SimHei`],"heiti sc":[`Heiti SC`,`黑体`,`SimHei`]};function KV(e){return e.trim().replace(/^['"]|['"]$/g,``).toLowerCase()}function qV(e){let t=KV(e);return HV.has(t)?t:`"${e.trim().replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`}function JV(e){return GV[KV(e)]??[e.trim()]}function YV(e){let t=Array.isArray(e)?e.flatMap(JV):JV(e),n=t.some(e=>WV.has(KV(e)))?[...t,...UV]:t,r=new Set;return n.filter(e=>{let t=KV(e);return r.has(t)?!1:(r.add(t),!0)}).map(qV).join(`, `)}function XV(e){let t=e.replace(/\\/g,`/`),n=t.lastIndexOf(`/`);return n>=0?t.slice(0,n):``}function ZV(e){let t=e.search(/[?#]/);return t>=0?e.slice(0,t):e}function QV(e){return ZV(e).replace(/\\/g,`/`).replace(/^\/+/,``)}function $V(e,t){if(_R(t.targetMode))return;let n=QV(xR(XV(e.slide.slidePath||`ppt/slides/slide1.xml`),t.target)),r=e.presentation.slides.findIndex(e=>QV(e.slidePath||``)===n);if(r>=0)return r;let i=ZV(t.target).match(/(?:^|[\\/])slide(\d+)\.xml$/i);if(i)return parseInt(i[1],10)-1}function eH(e){let t=e.slide.index;if(t>=0&&t<e.presentation.slides.length)return t;let n=QV(e.slide.slidePath||``),r=e.presentation.slides.findIndex(e=>QV(e.slidePath||``)===n);return r>=0?r:0}function tH(e){try{return decodeURIComponent(e.replace(/\+/g,` `))}catch{return e}}function nH(e,t){let n=t.toLowerCase();for(let t of e.split(`&`)){let[e,...r]=t.split(`=`);if(tH(e).toLowerCase()===n)return tH(r.join(`=`))}}function rH(e,t){let n=t.match(/^ppaction:\/\/hlinkshowjump\?(.+)$/i);if(!n)return;let r=nH(n[1],`jump`)?.toLowerCase(),i=e.presentation.slides.length;if(i!==0)switch(r){case`firstslide`:return 0;case`lastslide`:return i-1;case`nextslide`:{let t=eH(e)+1;return t<i?t:void 0}case`previousslide`:{let t=eH(e)-1;return t>=0?t:void 0}default:return}}function iH(e,t,n){if(t?.toLowerCase()===`ppaction://hlinksldjump`&&n)return $V(e,n);if(t)return rH(e,t)}function aH(e){return`Go to slide ${e+1}`}function oH(e){if(!e)return;let t=e.trim();if(!(t.length===0||t.length>32))return/^[+-]?(?:\d+(?:[.,]\d+)?|\d{1,3}(?:,\d{3})+(?:\.\d+)?)\s*(?:%|[A-Za-z]{1,4})?$/.test(t)?t:void 0}function sH(e){return oH(e)!==void 0}function cH(e,t){t&&e.appendChild(document.createTextNode(t.replace(/ {2}/g,` \xA0`)))}function lH(e){let t=new Map,n=1;for(let r=0;r<e.length;r++){if(t.has(r))continue;let i=``,a=-1;for(let t=r;t<e.length&&t<r+4;t++){let n=e[t].text;if(n===void 0||n===`
20
+ `||n.includes(` `)||(i+=n,i.trim().length>32))break;t>r&&sH(i)&&(a=t)}if(a>r){let e=n++;for(let n=r;n<=a;n++)t.set(n,e);r=a}}return t}function uH(e,t){if(!e||!e.exists())return new hR(null);let n=e.child(`lvl${t+1}pPr`);return n.exists()?n:e.child(`defPPr`)}function dH(e){if(!e||!e.type)return`other`;let t=e.type;return t===`title`||t===`ctrTitle`?`title`:t===`body`||t===`subTitle`||t===`obj`||t===`dt`||t===`ftr`||t===`sldNum`?`body`:`other`}function fH(e,t){for(let n of e){let e,r=n.child(`nvSpPr`);if(r.exists()&&(e=r.child(`nvPr`).child(`ph`)),!e||!e.exists()){let t=n.child(`nvPicPr`);t.exists()&&(e=t.child(`nvPr`).child(`ph`))}if(!e||!e.exists())continue;let i=e.attr(`type`),a=e.numAttr(`idx`);if(t.idx!==void 0&&a===t.idx||t.type&&i===t.type)return n}}function pH(e){let t=e.child(`txBody`);if(!t.exists())return;let n=t.child(`lstStyle`);return n.exists()?n:void 0}function mH(e,t){if(!t.exists())return;let n=t.attr(`algn`);n&&(e.align=n);let r=t.attr(`rtl`);r!==void 0&&(e.rtl=LR(r));let i=t.numAttr(`marL`);i!==void 0&&(e.marginLeft=Y(i));let a=t.numAttr(`indent`);a!==void 0&&(e.textIndent=Y(a));let o=t.numAttr(`defTabSz`);o!==void 0&&(e.defaultTabSize=Y(o));let s=t.child(`lnSpc`);if(s.exists()){let t=s.child(`spcPct`);if(t.exists()){let n=t.numAttr(`val`);n!==void 0&&(e.lineHeight=`${(n/1e5).toFixed(3)}`)}let n=s.child(`spcPts`);if(n.exists()){let t=n.numAttr(`val`);t!==void 0&&(e.lineHeight=`${t/100}pt`,e.lineHeightAbsolute=!0)}}let c=t.child(`spcBef`);if(c.exists()){let t=c.child(`spcPts`);if(t.exists()){let n=t.numAttr(`val`);n!==void 0&&(e.spaceBefore=n/100)}let n=c.child(`spcPct`);if(n.exists()){let t=n.numAttr(`val`);t!==void 0&&(e.spaceBeforePct=t/1e5)}}let l=t.child(`spcAft`);if(l.exists()){let t=l.child(`spcPts`);if(t.exists()){let n=t.numAttr(`val`);n!==void 0&&(e.spaceAfter=n/100)}let n=l.child(`spcPct`);if(n.exists()){let t=n.numAttr(`val`);t!==void 0&&(e.spaceAfterPct=t/1e5)}}let u=t.child(`buChar`);u.exists()&&(e.bulletChar=u.attr(`char`)||``,e.bulletNone=!1);let d=t.child(`buAutoNum`);if(d.exists()){e.bulletAutoNum=d.attr(`type`)||`arabicPeriod`;let t=d.numAttr(`startAt`);t!==void 0&&(e.bulletAutoNumStartAt=t),e.bulletNone=!1}t.child(`buNone`).exists()&&(e.bulletNone=!0,e.bulletChar=void 0,e.bulletAutoNum=void 0);let f=t.child(`buFont`);f.exists()&&(e.bulletFont=f.attr(`typeface`));let p=t.child(`buSzPct`);if(p.exists()){let t=p.numAttr(`val`);t!==void 0&&(e.bulletSizePct=t/1e5,e.bulletSizePt=void 0)}let m=t.child(`buSzPts`);if(m.exists()){let t=m.numAttr(`val`);t!==void 0&&(e.bulletSizePt=t/100,e.bulletSizePct=void 0)}t.child(`buSzTx`).exists()&&(e.bulletSizePct=void 0,e.bulletSizePt=void 0),t.child(`buClrTx`).exists()&&(e.bulletColorFollowsText=!0,e.bulletColorNode=void 0);let h=t.child(`buClr`);h.exists()&&(e.bulletColorNode=h,e.bulletColorFollowsText=!1);let g=t.child(`defRPr`);g.exists()&&(e.defRPr=g,e.defRPrs??=[],e.defRPrs.push(g))}function hH(e){if(!(e!=null&&e.exists()))return`none`;if(e.child(`gradFill`).exists())return`explicit`;let t=e.child(`solidFill`);if(!t.exists())return`none`;let n=t.child(`schemeClr`).attr(`val`);return n===`tx1`||n===`tx2`?`defaultTextScheme`:`explicit`}function gH(e,t,n){if(!t.exists())return;let r=t.numAttr(`sz`);r!==void 0&&(e.fontSize=r/100);let i=t.attr(`b`);i!==void 0&&(e.bold=LR(i));let a=t.attr(`i`);a!==void 0&&(e.italic=LR(a));let o=t.attr(`u`);o!==void 0&&o!==`none`&&(e.underline=!0),o===`none`&&(e.underline=!1);let s=t.attr(`strike`);s!==void 0&&s!==`noStrike`&&(e.strikethrough=!0),s===`noStrike`&&(e.strikethrough=!1);let c=t.child(`highlight`);c.exists()&&(e.highlightColor=AB(c,n));let l=t.child(`uFill`);if(l.exists()){let t=l.child(`solidFill`);t.exists()&&(e.underlineColor=AB(t,n),e.underlineFollowsText=!1)}t.child(`uFillTx`).exists()&&(e.underlineFollowsText=!0,e.underlineColor=void 0);let u=t.child(`solidFill`);if(u.exists()){delete e.textGradientCss,delete e.textPatternCss,delete e.textNoFill;let{color:t,alpha:r}=OB(u,n),i=t.startsWith(`#`)?t:`#${t}`;if(r<1){let{r:t,g:n,b:a}=yH(i);e.color=`rgba(${t},${n},${a},${r.toFixed(3)})`}else e.color=i}let d=t.child(`gradFill`);if(d.exists()){delete e.color,delete e.textPatternCss,delete e.textNoFill;let t=MH(d,n);t&&(e.textGradientCss=t)}if(t.child(`pattFill`).exists()){delete e.color,delete e.textGradientCss,delete e.textNoFill;let r=NB(t,n);r&&(e.textPatternCss=r)}let f=[],p=[t.attr(`lang`),t.attr(`altLang`)];for(let e of[`latin`,`ea`,`cs`]){let r=t.child(e);if(!r.exists())continue;let i=r.attr(`typeface`);i&&f.push(BV(i,n,p))}f.length>0&&(e.fontFamily=f[0],e.fontFamilyStack=f);let m=t.child(`hlinkClick`);if(m.exists()){let t=m.attr(`id`)??m.attr(`r:id`),r=t?n.slide.rels.get(t):void 0,i=iH(n,m.attr(`action`),r);i!==void 0&&n.onNavigate?(e.hlinkSlideIndex=i,e.hlinkTooltip=m.attr(`tooltip`),e.underline===void 0&&(e.underline=!0)):r&&_R(r.targetMode)&&$B(r.target)&&(e.hlinkClick=r.target,e.underline===void 0&&(e.underline=!0))}let h=t.numAttr(`spc`);h!==void 0&&(e.letterSpacingPt=h/100);let g=t.numAttr(`kern`);g!==void 0&&(e.kern=g/100);let _=t.attr(`cap`);_!==void 0&&(e.cap=_);let v=t.numAttr(`baseline`);v!==void 0&&(e.baseline=v);let y=t.child(`effectLst`),b=y.child(`outerShdw`);if(b.exists()){let t=SH(b,n);t&&CH(e,t)}let x=y.child(`glow`);if(x.exists()){let t=xH(x,n);t&&CH(e,t)}t.child(`noFill`).exists()&&(delete e.color,delete e.textGradientCss,delete e.textPatternCss,e.textNoFill=!0);let S=t.child(`ln`);if(S.exists()&&!S.child(`noFill`).exists()){let t=S.numAttr(`w`);e.textOutlineWidth=t?Y(t):.75;let r=S.child(`solidFill`);if(r.exists()){let{color:t,alpha:i}=OB(r,n);e.textOutlineColor=bH(t,i)}let i=S.child(`gradFill`);i.exists()&&(e.textOutlineGradientCss=MH(i,n))}}function _H(e,t,n){for(let r of t.defRPrs??[])gH(e,r,n)}function vH(e,t){let n={};return _H(n,e,t),n}function yH(e){let t=e.replace(/^#/,``),n=parseInt(t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}function bH(e,t){let n=e.startsWith(`#`)?e:`#${e}`;if(t>=1)return n;let{r,g:i,b:a}=yH(n);return`rgba(${r},${i},${a},${t.toFixed(3)})`}function xH(e,t){let n=Y(e.numAttr(`rad`)??0);if(!(n>0))return;let{color:r,alpha:i}=OB(e,t);if(!(!r||i<=0))return`0px 0px ${n.toFixed(1)}px ${bH(r,i)}`}function SH(e,t){let n=Y(e.numAttr(`dist`)??0),r=Y(e.numAttr(`blurRad`)??0),i=(e.numAttr(`dir`)??0)/6e4,a=n*Math.cos(i*Math.PI/180),o=n*Math.sin(i*Math.PI/180),{color:s,alpha:c}=OB(e,t);if(!(!s||c<=0))return`${a.toFixed(1)}px ${o.toFixed(1)}px ${r.toFixed(1)}px ${bH(s,c)}`}function CH(e,t){e.textShadow=e.textShadow?`${e.textShadow}, ${t}`:t}function wH(e,t){if(!(e!=null&&e.exists()))return;let n={};return gH(n,e,t),n.color}function TH(e){if(!e)return;let t=e.trim().toLowerCase();if(t.startsWith(`#`)){let{r:e,g:n,b:r}=yH(t);return`${e},${n},${r},1`}let n=t.match(/^rgba?\(([^)]+)\)$/);if(!n)return t;let r=n[1].split(`,`).map(e=>e.trim());if(r.length<3)return t;let[i,a,o]=r,s=r[3]??`1`;return`${Number(i)},${Number(a)},${Number(o)},${Number(s)}`}function EH(e,t){let n=TH(e),r=TH(t);return n!==void 0&&n===r}function DH(e){return e?.child(`solidFill`).child(`srgbClr`).exists()??!1}function OH(e){return e?.child(`hlinkClick`).exists()??!1}function kH(e){return!!e.hlinkClick||e.hlinkSlideIndex!==void 0}function AH(e,t,n,r){if(!n)return!1;for(let i of t.runs)if(!(i===e||OH(i.properties))&&EH(n,wH(i.properties,r)))return!0;return EH(n,wH(t.endParaRPr,r))}function jH(e,t,n,r,i,a){return kH(n)?!i||r===`defaultTextScheme`?!0:r!==`explicit`||!DH(e.properties)?!1:AH(e,t,n.color,a):!1}function MH(e,t){let n=e.child(`gsLst`),r=[];for(let e of n.children(`gs`)){let n=CR(e.numAttr(`pos`)??0)*100,{color:i,alpha:a}=OB(e,t);r.push({position:n,color:bH(i,a)})}if(r.length===0)return``;r.sort((e,t)=>e.position-t.position);let i=r.map(e=>`${e.color} ${e.position.toFixed(1)}%`).join(`, `),a=e.child(`lin`);return a.exists()?`linear-gradient(${((SR(a.numAttr(`ang`)??0)+90)%360).toFixed(1)}deg, ${i})`:`linear-gradient(180deg, ${i})`}function NH(e,t){if(e.style.background=t,!e.style.background&&t.includes(` 0 0 / 8px 8px, `)){let n=t.split(` 0 0 / 8px 8px, `),r=n[n.length-1]?.trim(),i=n.slice(0,-1).map(e=>e.trim());i.length>0&&(e.style.backgroundImage=i.join(`, `),e.style.backgroundSize=i.map(()=>`8px 8px`).join(`, `)),r&&(e.style.backgroundColor=r)}e.style.webkitBackgroundClip=`text`,e.style.backgroundClip=`text`,e.style.color=`transparent`}function PH(e,t){switch(e){case`arabicPeriod`:return`${t}.`;case`arabicParenR`:return`${t})`;case`arabicParenBoth`:return`(${t})`;case`arabicPlain`:return`${t}`;case`romanUcPeriod`:return`${FH(t)}.`;case`romanLcPeriod`:return`${FH(t).toLowerCase()}.`;case`alphaUcPeriod`:return`${String.fromCharCode(64+((t-1)%26+1))}.`;case`alphaLcPeriod`:return`${String.fromCharCode(96+((t-1)%26+1))}.`;case`alphaUcParenR`:return`${String.fromCharCode(64+((t-1)%26+1))})`;case`alphaLcParenR`:return`${String.fromCharCode(96+((t-1)%26+1))})`;default:return`${t}.`}}function FH(e){let t=[1e3,900,500,400,100,90,50,40,10,9,5,4,1],n=[`M`,`CM`,`D`,`CD`,`C`,`XC`,`L`,`XL`,`X`,`IX`,`V`,`IV`,`I`],r=``,i=e;for(let e=0;e<t.length;e++)for(;i>=t[e];)r+=n[e],i-=t[e];return r}function IH(e,t,n,r,i){let a=dH(t),o=1,s=0,c=NV(e,`normAutofit`);if(c!=null&&c.exists()){let e=c.numAttr(`fontScale`);e!==void 0&&(o=e/1e5);let t=c.numAttr(`lnSpcReduction`);t!==void 0&&(s=t/1e5)}let l=new Map,u=e.paragraphs.map((e,t)=>({index:t,visible:e.runs.some(e=>e.text!=null&&e.text.length>0)})).filter(e=>e.visible).map(e=>e.index),d=u[0],f=u[u.length-1],p=u.length===1?u[0]:void 0;for(let[c,u]of e.paragraphs.entries()){let m=document.createElement(`div`);m.style.width=`100%`,m.style.minWidth=`0px`,m.style.maxWidth=`100%`,m.style.boxSizing=`border-box`,m.style.overflowWrap=`anywhere`;let h=u.level;i!=null&&i.isVerticalText&&(m.style.wordBreak=`keep-all`);let g=u.runs.some(e=>e.text===`
21
+ `),_=i?.compactSingleLineSpacing&&c===p&&!g,v={};if(mH(v,uH(n.presentation.defaultTextStyle,h)),mH(v,uH(n.master.defaultTextStyle,h)),mH(v,uH(a===`title`?n.master.textStyles.titleStyle:a===`body`?n.master.textStyles.bodyStyle:n.master.textStyles.otherStyle,h)),t){let e=fH(n.master.placeholders,t);e&&mH(v,uH(pH(e),h))}if(t){let e=fH(n.layout.placeholders.map(e=>e.node),t);e&&mH(v,uH(pH(e),h))}if(mH(v,uH(e.listStyle,h)),u.properties&&mH(v,u.properties),v.align){let e={l:`left`,ctr:`center`,r:`right`,just:`justify`,justLow:`justify`,dist:`justify`,thaiDist:`justify`};m.style.textAlign=e[v.align]||`left`}v.rtl!==void 0&&(m.style.direction=v.rtl?`rtl`:`ltr`),v.marginLeft!==void 0&&(m.style.paddingLeft=`${v.marginLeft}px`),v.textIndent!==void 0&&(m.style.textIndent=`${v.textIndent}px`);let y=v.lineHeight??i?.defaultLineHeight;if(y){if(s>0){let e=parseFloat(y);isNaN(e)||(y=y.includes(`pt`)?`${(e*(1-s)).toFixed(2)}pt`:`${(e*(1-s)).toFixed(3)}`)}i!=null&&i.isVerticalText&&!v.lineHeightAbsolute?y=`1`:_&&v.lineHeightAbsolute&&(y=`normal`),m.style.lineHeight=y}let b=12,x=vH(v,n);if(x.fontSize!==void 0&&(b=x.fontSize),u.runs.length>0&&u.runs[0].properties){let e=u.runs[0].properties.numAttr(`sz`);e!==void 0&&(b=e/100)}else if(u.runs.length===0&&u.endParaRPr){let e=u.endParaRPr.numAttr(`sz`);e!==void 0&&(b=e/100)}m.style.fontSize=`${b*o}pt`;let S=i?.trimOuterParagraphSpacing&&c===d,C=i?.trimOuterParagraphSpacing&&c===f;S?m.style.marginTop=`0px`:v.spaceBefore===void 0?v.spaceBeforePct!==void 0&&(m.style.marginTop=`${v.spaceBeforePct*b}pt`):m.style.marginTop=`${v.spaceBefore}pt`,C?m.style.marginBottom=`0px`:v.spaceAfter===void 0?v.spaceAfterPct!==void 0&&(m.style.marginBottom=`${v.spaceAfterPct*b}pt`):m.style.marginBottom=`${v.spaceAfter}pt`;let w=!u.runs.some(e=>e.text!=null&&e.text.length>0)||t?.type===`sldNum`||t?.type===`dt`||t?.type===`ftr`||t?.type===`title`||t?.type===`ctrTitle`||t?.type===`subTitle`,T=``;if(!w&&v.bulletNone!==!0){if(v.bulletChar)T=v.bulletChar;else if(v.bulletAutoNum){let e=`${h}:${v.bulletAutoNum}`,t=v.bulletAutoNumStartAt??l.get(e)??1;T=PH(v.bulletAutoNum,t),l.set(e,t+1)}}if(T){let t=document.createElement(`span`);t.textContent=T+` `;let r=v.marginLeft,a=v.textIndent;if(r!==void 0&&r>0&&a!==void 0&&a<0){let e=Math.max(0,r+a),n=Math.max(0,r-e);m.style.textIndent=`0px`,v.align===`ctr`||v.align===`r`?(m.style.paddingLeft=`0px`,t.style.display=`inline-block`,t.style.width=`${n}px`,t.style.whiteSpace=`pre`):(m.style.position=`relative`,t.style.position=`absolute`,t.style.left=`${e}px`,t.style.top=`0px`,t.style.width=`${n}px`,t.style.whiteSpace=`pre`)}v.bulletFont&&(t.style.fontFamily=YV(BV(v.bulletFont,n)));let s=v.bulletSizePt??b*(v.bulletSizePct??1);t.style.fontSize=`${s*o}pt`;let c;if(v.bulletColorNode&&v.bulletColorNode.exists()&&(c=AB(v.bulletColorNode,n)),c===void 0&&(c=(()=>{let e=u.runs.find(e=>e.text!=null&&e.text.length>0);if(!e)return;let t=vH(v,n);return e.properties&&gH(t,e.properties,n),t.color??i?.fontRefColor??i?.cellTextColor??(t.textNoFill?`transparent`:void 0)})()),c===void 0&&e.listStyle){let t=uH(e.listStyle,h);if(t.exists()){let e=t.child(`defRPr`);if(e.exists()){let t={};gH(t,e,n),t.color!==void 0&&(c=t.color)}}}t.style.color=c??i?.fontRefColor??i?.cellTextColor??`#000000`,m.appendChild(t)}let E=lH(u.runs),D=new Map;if(u.runs.length===0&&m.appendChild(document.createElement(`br`)),u.runs.some(e=>e.text?.includes(` `))){let e=v.defaultTabSize??96;m.style.tabSize=`${e}px`}let O=v.lineHeightAbsolute&&g&&y,k=null;O&&(k=document.createElement(`div`),k.style.height=y,k.style.overflow=`visible`,m.appendChild(k));for(let[t,r]of u.runs.entries()){if(r.text===`
22
+ `){O?(k=document.createElement(`div`),k.style.height=y,k.style.overflow=`visible`,m.appendChild(k)):m.appendChild(document.createElement(`br`));continue}let a={};if(_H(a,v,n),r.properties&&gH(a,r.properties,n),a.color===void 0&&e.listStyle){let t=uH(e.listStyle,h);if(t.exists()){let e=t.child(`defRPr`);if(e.exists()){let t={};gH(t,e,n),t.color!==void 0&&(a.color=t.color)}}}let s;if(a.hlinkSlideIndex!==void 0){let e=document.createElement(`span`),t=a.hlinkSlideIndex;e.setAttribute(`role`,`link`),e.tabIndex=0,e.title=a.hlinkTooltip||aH(t),e.style.cursor=`pointer`,e.addEventListener(`click`,e=>{var r;e.stopPropagation(),(r=n.onNavigate)==null||r.call(n,{slideIndex:t})}),e.addEventListener(`keydown`,e=>{var r;e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),e.stopPropagation(),(r=n.onNavigate)==null||r.call(n,{slideIndex:t}))}),s=e}else if(a.hlinkClick){let e=document.createElement(`a`);e.href=a.hlinkClick,e.target=`_blank`,e.rel=`noopener noreferrer`,s=e}else s=document.createElement(`span`);let c=oH(r.text),l=!!a.textGradientCss||!!a.textPatternCss||!!a.textNoFill||a.textOutlineWidth!==void 0||!!a.textOutlineColor||!!a.textOutlineGradientCss,d=!!r.text&&!!c&&r.text!==c&&!l;if(r.text&&r.text.includes(` `))s.textContent=r.text,s.style.whiteSpace=`pre`;else if(d){let e=r.text.indexOf(c),t=e+c.length;cH(s,r.text.slice(0,e));let n=document.createElement(`span`);n.textContent=c,n.style.whiteSpace=`nowrap`,s.appendChild(n),cH(s,r.text.slice(t))}else if(r.text&&/ {2}/.test(r.text)){let e=r.text.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/ {2}/g,` \xA0`);s.innerHTML=e}else s.textContent=r.text;c&&(r.text===c||r.text&&r.text!==c&&l)&&(s.style.whiteSpace=`nowrap`);let f=a.fontSize||12;s.style.fontSize=`${f*o}pt`,(r.properties?.attr(`b`)===void 0?i?.cellTextBold??a.bold:a.bold)&&(s.style.fontWeight=`bold`),(r.properties?.attr(`i`)===void 0?i?.cellTextItalic??a.italic:a.italic)&&(s.style.fontStyle=`italic`);let p=[];a.underline&&p.push(`underline`),a.strikethrough&&p.push(`line-through`),p.length>0&&(s.style.textDecoration=p.join(` `)),a.highlightColor&&(s.style.backgroundColor=a.highlightColor);let g=hH(r.properties),_=g!==`none`,b;if(b=i!=null&&i.fontRefColor?_?a.color:i.fontRefColor:i!=null&&i.cellTextColor&&!_?i.cellTextColor:a.color,jH(r,u,a,g,_,n)){let e=n.theme.colorScheme.get(`hlink`);e&&(b=e.startsWith(`#`)?e:`#${e}`)}if(b?s.style.color=b:s.style.color=`#000000`,a.underlineFollowsText&&b&&(s.style.textDecorationColor=b),a.underlineColor&&(s.style.textDecorationColor=a.underlineColor),a.textShadow&&(s.style.textShadow=a.textShadow),a.textGradientCss&&NH(s,a.textGradientCss),a.textPatternCss&&NH(s,a.textPatternCss),a.textNoFill||a.textOutlineWidth){let e=a.textOutlineWidth??.75;if(a.textNoFill&&a.textOutlineGradientCss){s.style.color=`transparent`,s.style.webkitTextStrokeWidth=`${e}px`,s.style.webkitTextStrokeColor=`#ffffff`,s.style.paintOrder=`stroke fill`;let t=a.textOutlineGradientCss;s.style.maskImage=t,s.style.webkitMaskImage=t}else a.textNoFill&&a.textOutlineColor?(s.style.color=`transparent`,s.style.webkitTextStrokeWidth=`${e}px`,s.style.webkitTextStrokeColor=a.textOutlineColor,s.style.paintOrder=`stroke fill`):a.textNoFill?s.style.color=`transparent`:a.textOutlineColor&&(s.style.webkitTextStrokeWidth=`${e}px`,s.style.webkitTextStrokeColor=a.textOutlineColor,s.style.paintOrder=`stroke fill`)}let x=r.properties?.child(`latin`).exists()||r.properties?.child(`ea`).exists()||r.properties?.child(`cs`).exists()?a.fontFamilyStack??a.fontFamily:i?.cellTextFontFamily??a.fontFamilyStack??a.fontFamily;if(x){let e=Array.isArray(x)?x.map(e=>BV(e,n)):BV(x,n);s.style.fontFamily=YV(e)}else{let e=n.theme.minorFont.latin||n.theme.minorFont.ea;e&&(s.style.fontFamily=YV(e))}if(a.letterSpacingPt!==void 0&&(s.style.letterSpacing=`${a.letterSpacingPt}pt`),a.kern!==void 0){let e=(a.fontSize||12)*o;s.style.fontKerning=e>=a.kern?`normal`:`none`}if(a.cap===`all`?s.style.textTransform=`uppercase`:a.cap===`small`&&(s.style.fontVariant=`small-caps`),a.baseline!==void 0&&a.baseline!==0){let e=a.baseline/1e3;s.style.verticalAlign=`${e}%`,Math.abs(e)>=20&&(s.style.fontSize=`${f*o*.65}pt`)}let S=k??m,C=E.get(t);if(C!==void 0){let e=D.get(C);e||(e=document.createElement(`span`),e.style.whiteSpace=`nowrap`,D.set(C,e),S.appendChild(e)),e.appendChild(s)}else S.appendChild(s)}if(u.endParaRPr&&u.runs[u.runs.length-1]?.text===`
23
+ `){let e=u.endParaRPr.numAttr(`sz`);if(e!==void 0){let t=document.createElement(`span`);t.textContent=`​`,t.style.fontSize=`${e/100*o}pt`,(k??m).appendChild(t)}}r.appendChild(m)}}function LH(e){let t=0,n=0;for(let r of e.allChildren()){if(r.localName===`moveTo`||r.localName===`lnTo`){let e=r.child(`pt`);t=Math.max(t,e.numAttr(`x`)??0),n=Math.max(n,e.numAttr(`y`)??0);continue}if(r.localName===`cubicBezTo`||r.localName===`quadBezTo`){for(let e of r.children(`pt`))t=Math.max(t,e.numAttr(`x`)??0),n=Math.max(n,e.numAttr(`y`)??0);continue}r.localName===`arcTo`&&(t=Math.max(t,r.numAttr(`wR`)??0),n=Math.max(n,r.numAttr(`hR`)??0))}return{w:Math.max(1,t),h:Math.max(1,n)}}function RH(e,t,n,r){let i=e.child(`pathLst`);if(!i.exists())return``;let a=i.children(`path`),o=[];for(let e of a){let i=LH(e),a=e.numAttr(`w`)??r?.w??i.w,s=e.numAttr(`h`)??r?.h??i.h,c=a>0?t/a:1,l=s>0?n/s:1,u=0,d=0,f=e.allChildren();for(let e of f)switch(e.localName){case`moveTo`:{let t=e.child(`pt`),n=(t.numAttr(`x`)??0)*c,r=(t.numAttr(`y`)??0)*l;o.push(`M${n},${r}`),u=n,d=r;break}case`lnTo`:{let t=e.child(`pt`),n=(t.numAttr(`x`)??0)*c,r=(t.numAttr(`y`)??0)*l;o.push(`L${n},${r}`),u=n,d=r;break}case`cubicBezTo`:{let t=e.children(`pt`);if(t.length>=3){let e=(t[0].numAttr(`x`)??0)*c,n=(t[0].numAttr(`y`)??0)*l,r=(t[1].numAttr(`x`)??0)*c,i=(t[1].numAttr(`y`)??0)*l,a=(t[2].numAttr(`x`)??0)*c,s=(t[2].numAttr(`y`)??0)*l;o.push(`C${e},${n} ${r},${i} ${a},${s}`),u=a,d=s}break}case`quadBezTo`:{let t=e.children(`pt`);if(t.length>=2){let e=(t[0].numAttr(`x`)??0)*c,n=(t[0].numAttr(`y`)??0)*l,r=(t[1].numAttr(`x`)??0)*c,i=(t[1].numAttr(`y`)??0)*l;o.push(`Q${e},${n} ${r},${i}`),u=r,d=i}break}case`arcTo`:{let t=e.numAttr(`wR`)??0,n=e.numAttr(`hR`)??0,r=t*c,i=n*l,a=e.numAttr(`stAng`)??0,s=e.numAttr(`swAng`)??0,f=a/6e4,p=s/6e4;if(r===0||i===0||p===0)break;let m=f*Math.PI/180,h=Math.atan2(t*Math.sin(m),n*Math.cos(m)),g=(f+p)*Math.PI/180,_=Math.atan2(t*Math.sin(g),n*Math.cos(g)),v=u/c,y=d/l,b=v-t*Math.cos(h),x=y-n*Math.sin(h),S=(b+t*Math.cos(_))*c,C=(x+n*Math.sin(_))*l,w=Math.abs(p)>180?1:0,T=p>0?1:0;o.push(`A${r},${i} 0 ${w},${T} ${S},${C}`),u=S,d=C;break}case`close`:o.push(`Z`);break}}return o.join(` `)}function zH(e,t,n,r,i,a,o){let s=i*Math.PI/180,c=a*Math.PI/180,l=e+n*Math.cos(s),u=t+r*Math.sin(s),d=e+n*Math.cos(c),f=t+r*Math.sin(c),p=((a-i)%360+360)%360;return p===0&&i!==a&&(p=360),`M${l},${u} A${n},${r} 0 ${p>180?1:0},1 ${d},${f}`}function BH(e,t,n){return(e?.get(t)??n)/1e5}function VH(e,t,n){return e?.get(t)??n}function HH(e,t,n,r=.4){let i=e/2,a=t/2,o=e/2,s=t/2,c=o*r,l=s*r,u=n*2,d=[];for(let e=0;e<u;e++){let t=2*Math.PI*e/u-Math.PI/2,n=e%2==0,r=n?o:c,f=n?s:l,p=i+r*Math.cos(t),m=a+f*Math.sin(t);d.push(e===0?`M${p},${m}`:`L${p},${m}`)}return d.push(`Z`),d.join(` `)}function UH(e,t){let n=e.match(/[MLAZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi);if(!n)return e;let r=[],i=0;for(;i<n.length;){let a=n[i++];if(!a)break;if(r.push(a),a!==`Z`){if(a===`M`||a===`L`){let e=Number(n[i++]),a=Number(n[i++]);r.push(String(t-e),String(a));continue}if(a===`A`){let e=n[i++],a=n[i++],o=n[i++],s=n[i++],c=Number(n[i++]),l=Number(n[i++]),u=Number(n[i++]);r.push(e,a,o,s,String(c?0:1),String(t-l),String(u));continue}return e}}return r.join(` `)}function WH(e,t){let n=e.match(/[MLAZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi);if(!n)return e;let r=[],i=0;for(;i<n.length;){let e=n[i++];if(!e)break;if(r.push(e),e!==`Z`){if(e===`M`||e===`L`){let e=Number(n[i++]),a=Number(n[i++]);r.push(String(e),String(t-a));continue}if(e===`A`){let e=n[i++],a=n[i++],o=n[i++],s=n[i++],c=Number(n[i++]),l=Number(n[i++]),u=Number(n[i++]);r.push(e,a,o,s,String(c?0:1),String(l),String(t-u))}}}return r.join(` `)}var X=new Map;X.set(`rect`,(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`),X.set(`roundRect`,(e,t,n)=>{let r=BH(n,`adj`,16667),i=Math.min(e,t)*r;return[`M${i},0`,`L${e-i},0`,`A${i},${i} 0 0,1 ${e},${i}`,`L${e},${t-i}`,`A${i},${i} 0 0,1 ${e-i},${t}`,`L${i},${t}`,`A${i},${i} 0 0,1 0,${t-i}`,`L0,${i}`,`A${i},${i} 0 0,1 ${i},0`,`Z`].join(` `)}),X.set(`plaque`,(e,t,n)=>{let r=Math.min(Math.max(VH(n,`adj`,16667),0),5e4),i=Math.min(e,t)*r/1e5,a=e-i,o=t-i,s=Z(0,i,i,i,90,-90),c=Z(a,0,i,i,180,-90),l=Z(e,o,i,i,270,-90),u=Z(i,t,i,i,0,-90);return[`M0,${i}`,s.svg,`L${a},0`,c.svg,`L${e},${o}`,l.svg,`L${i},${t}`,u.svg,`Z`].join(` `)}),X.set(`cornerTabs`,(e,t)=>{let n=Math.sqrt(e*e+t*t)/20;return[`M0,0 L${n},0 L0,${n} Z`,`M${e},0 L${e-n},0 L${e},${n} Z`,`M${e},${t} L${e-n},${t} L${e},${t-n} Z`,`M0,${t} L${n},${t} L0,${t-n} Z`].join(` `)}),X.set(`squareTabs`,(e,t)=>{let n=Math.sqrt(e*e+t*t)/20;return[`M0,0 L${n},0 L${n},${n} L0,${n} Z`,`M${e-n},0 L${e},0 L${e},${n} L${e-n},${n} Z`,`M0,${t-n} L${n},${t-n} L${n},${t} L0,${t} Z`,`M${e-n},${t-n} L${e},${t-n} L${e},${t} L${e-n},${t} Z`].join(` `)}),X.set(`plaqueTabs`,(e,t)=>{let n=Math.sqrt(e*e+t*t)/20;return[`M0,0 L${n},0 A${n},${n} 0 0,1 0,${n} Z`,`M${e},0 L${e-n},0 A${n},${n} 0 0,0 ${e},${n} Z`,`M0,${t} L0,${t-n} A${n},${n} 0 0,1 ${n},${t} Z`,`M${e},${t} L${e-n},${t} A${n},${n} 0 0,1 ${e},${t-n} Z`].join(` `)}),X.set(`ellipse`,(e,t)=>{let n=e/2,r=t/2;return[`M${e},${r}`,`A${n},${r} 0 1,1 0,${r}`,`A${n},${r} 0 1,1 ${e},${r}`,`Z`].join(` `)}),X.set(`triangle`,(e,t,n)=>`M${e*BH(n,`adj`,5e4)},0 L${e},${t} L0,${t} Z`),X.set(`isosTriangle`,(e,t,n)=>`M${e*BH(n,`adj`,5e4)},0 L${e},${t} L0,${t} Z`),X.set(`rtTriangle`,(e,t)=>`M0,0 L${e},${t} L0,${t} Z`),X.set(`diamond`,(e,t)=>{let n=e/2,r=t/2;return`M${n},0 L${e},${r} L${n},${t} L0,${r} Z`}),X.set(`pentagon`,(e,t)=>{let n=e/2,r=n*105146/1e5,i=t/2*110557/1e5,a=i,o=r*Math.cos(18*Math.PI/180),s=r*Math.cos(54*Math.PI/180),c=i*Math.sin(18*Math.PI/180),l=i*Math.sin(54*Math.PI/180);return[`M${n-o},${a-c}`,`L${n},0`,`L${n+o},${a-c}`,`L${n+s},${a+l}`,`L${n-s},${a+l}`,`Z`].join(` `)}),X.set(`hexagon`,(e,t,n)=>{let r=Math.min(e,t),i=Math.min(Math.max(VH(n,`adj`,25e3),0),r>0?5e4*e/r:5e4),a=t/2*115470/1e5,o=r*i/1e5,s=e-o,c=t/2,l=a*Math.sin(60*Math.PI/180),u=c-l,d=c+l;return[`M0,${c}`,`L${o},${u}`,`L${s},${u}`,`L${e},${c}`,`L${s},${d}`,`L${o},${d}`,`Z`].join(` `)}),X.set(`octagon`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(VH(n,`adj`,29289),0),5e4)/1e5,i=e-r,a=t-r;return[`M0,${r}`,`L${r},0`,`L${i},0`,`L${e},${r}`,`L${e},${a}`,`L${i},${t}`,`L${r},${t}`,`L0,${a}`,`Z`].join(` `)}),X.set(`heptagon`,(e,t)=>{let n=e/2,r=n*102572/1e5,i=t/2*105210/1e5,a=t/2*105210/1e5,o=r*97493/1e5,s=r*78183/1e5,c=r*43388/1e5,l=i*62349/1e5,u=i*22252/1e5,d=i*90097/1e5;return[`M${n-o},${a+u}`,`L${n-s},${a-l}`,`L${n},0`,`L${n+s},${a-l}`,`L${n+o},${a+u}`,`L${n+c},${a+d}`,`L${n-c},${a+d}`,`Z`].join(` `)}),X.set(`decagon`,(e,t)=>{let n=e/2,r=t/2,i=r*105146/1e5,a=n*Math.cos(36*Math.PI/180),o=n*Math.cos(72*Math.PI/180),s=i*Math.sin(72*Math.PI/180),c=i*Math.sin(36*Math.PI/180);return[`M0,${r}`,`L${n-a},${r-c}`,`L${n-o},${r-s}`,`L${n+o},${r-s}`,`L${n+a},${r-c}`,`L${e},${r}`,`L${n+a},${r+c}`,`L${n+o},${r+s}`,`L${n-o},${r+s}`,`L${n-a},${r+c}`,`Z`].join(` `)}),X.set(`dodecagon`,(e,t)=>{let n=e*2894/21600,r=e*7906/21600,i=e*13694/21600,a=e*18706/21600,o=t*2894/21600,s=t*7906/21600,c=t*13694/21600,l=t*18706/21600;return[`M0,${s}`,`L${n},${o}`,`L${r},0`,`L${i},0`,`L${a},${o}`,`L${e},${s}`,`L${e},${c}`,`L${a},${l}`,`L${i},${t}`,`L${r},${t}`,`L${n},${l}`,`L0,${c}`,`Z`].join(` `)}),X.set(`parallelogram`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?1e5*e/r:1e5,a=r*Math.min(Math.max(VH(n,`adj`,25e3),0),i)/1e5;return`M0,${t} L${a},0 L${e},0 L${e-a},${t} Z`}),X.set(`trapezoid`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?5e4*e/r:5e4,a=r*Math.min(Math.max(VH(n,`adj`,25e3),0),i)/1e5;return`M0,${t} L${a},0 L${e-a},0 L${e},${t} Z`}),X.set(`nonIsoscelesTrapezoid`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?5e4*e/r:5e4,a=Math.min(Math.max(VH(n,`adj1`,25e3),0),i),o=Math.min(Math.max(VH(n,`adj2`,25e3),0),i);return`M0,${t} L${r*a/1e5},0 L${e-r*o/1e5},0 L${e},${t} Z`}),X.set(`corner`,(e,t,n)=>{let r=Math.min(e,t),i=Math.min(Math.max(BH(n,`adj1`,5e4),0),1),a=r*Math.min(Math.max(BH(n,`adj2`,5e4),0),1),o=t-r*i;return[`M0,0`,`L${a},0`,`L${a},${o}`,`L${e},${o}`,`L${e},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`diagStripe`,(e,t,n)=>{let r=Math.min(Math.max(BH(n,`adj`,5e4),0),1),i=e*r;return[`M0,${t*r}`,`L${i},0`,`L${e},0`,`L0,${t}`,`Z`].join(` `)}),X.set(`star4`,(e,t,n)=>{let r=BH(n,`adj`,12500)*2;return HH(e,t,4,Math.min(Math.max(r,0),1))}),X.set(`star5`,(e,t,n)=>{let r=n?.get(`adj`)??19098,i=Math.min(Math.max(r,0),5e4),a=110557,o=e/2*105146/1e5,s=t/2*a/1e5,c=t/2*a/1e5,l=o*i/5e4,u=s*i/5e4,d=e/2,f=2*Math.PI/5,p=f/2,m=-Math.PI/2,h=[];for(let e=0;e<5;e++){let t=m+f*e,n=t+p,r=d+o*Math.cos(t),i=c+s*Math.sin(t),a=d+l*Math.cos(n),g=c+u*Math.sin(n);h.push(e===0?`M${r},${i}`:`L${r},${i}`),h.push(`L${a},${g}`)}return h.push(`Z`),h.join(` `)}),X.set(`star6`,(e,t,n)=>{let r=n?.get(`adj`)??28868,i=Math.min(Math.max(r,0),5e4),a=e/2*115470/1e5,o=t/2,s=a*i/5e4,c=o*i/5e4,l=e/2,u=t/2,d=2*Math.PI/6,f=d/2,p=-Math.PI/2,m=[];for(let e=0;e<6;e++){let t=p+d*e,n=t+f,r=l+a*Math.cos(t),i=u+o*Math.sin(t),h=l+s*Math.cos(n),g=u+c*Math.sin(n);m.push(e===0?`M${r},${i}`:`L${r},${i}`),m.push(`L${h},${g}`)}return m.push(`Z`),m.join(` `)}),X.set(`star7`,(e,t,n)=>{let r=n?.get(`adj`)??34601,i=Math.min(Math.max(r,0),5e4),a=e/2*102572/1e5,o=t/2*105210/1e5,s=o,c=a*i/5e4,l=o*i/5e4,u=e/2,d=2*Math.PI/7,f=d/2,p=-Math.PI/2,m=[];for(let e=0;e<7;e++){let t=p+d*e,n=t+f,r=u+a*Math.cos(t),i=s+o*Math.sin(t),h=u+c*Math.cos(n),g=s+l*Math.sin(n);m.push(e===0?`M${r},${i}`:`L${r},${i}`),m.push(`L${h},${g}`)}return m.push(`Z`),m.join(` `)}),X.set(`star8`,(e,t,n)=>{let r=BH(n,`adj`,37500)*2;return HH(e,t,8,Math.min(Math.max(r,0),1))}),X.set(`star10`,(e,t,n)=>{let r=n?.get(`adj`)??42533,i=Math.min(Math.max(r,0),5e4),a=e/2*105146/1e5,o=t/2,s=a*i/5e4,c=o*i/5e4,l=e/2,u=t/2,d=2*Math.PI/10,f=d/2,p=-Math.PI/2,m=[];for(let e=0;e<10;e++){let t=p+d*e,n=t+f,r=l+a*Math.cos(t),i=u+o*Math.sin(t),h=l+s*Math.cos(n),g=u+c*Math.sin(n);m.push(e===0?`M${r},${i}`:`L${r},${i}`),m.push(`L${h},${g}`)}return m.push(`Z`),m.join(` `)}),X.set(`star12`,(e,t,n)=>{let r=BH(n,`adj`,37500)*2;return HH(e,t,12,Math.min(Math.max(r,0),1))}),X.set(`star16`,(e,t,n)=>{let r=BH(n,`adj`,37500)*2;return HH(e,t,16,Math.min(Math.max(r,0),1))}),X.set(`star24`,(e,t,n)=>{let r=BH(n,`adj`,37500)*2;return HH(e,t,24,Math.min(Math.max(r,0),1))}),X.set(`star32`,(e,t,n)=>{let r=BH(n,`adj`,37500)*2;return HH(e,t,32,Math.min(Math.max(r,0),1))}),X.set(`line`,(e,t)=>e===0?`M0.5,0 L0.5,${t||1}`:t===0?`M0,0.5 L${e||1},0.5`:`M0,0 L${e},${t}`),X.set(`lineInv`,(e,t)=>e===0?`M0.5,0 L0.5,${t||1}`:t===0?`M0,0.5 L${e||1},0.5`:`M${e},0 L0,${t}`),X.set(`straightConnector1`,(e,t)=>e===0?`M0.5,0 L0.5,${t||1}`:t===0?`M0,0.5 L${e||1},0.5`:`M0,0 L${e},${t}`),X.set(`bentConnector2`,(e,t)=>`M0,0 L${e},0 L${e},${t}`),X.set(`bentConnector3`,(e,t,n)=>{let r=e*BH(n,`adj1`,5e4);return`M0,0 L${r},0 L${r},${t} L${e},${t}`}),X.set(`bentConnector4`,(e,t,n)=>{let r=BH(n,`adj1`,5e4),i=BH(n,`adj2`,5e4),a=e*r,o=t*i;return`M0,0 L${a},0 L${a},${o} L${e},${o} L${e},${t}`}),X.set(`curvedConnector2`,(e,t)=>`M0,0 C${e/2},0 ${e},${t/2} ${e},${t}`),X.set(`curvedConnector3`,(e,t,n)=>{let r=e*BH(n,`adj1`,5e4),i=r/2,a=(e+r)/2,o=t/2;return`M0,0 C${i},0 ${r},${t/4} ${r},${o} C${r},${t*3/4} ${a},${t} ${e},${t}`}),X.set(`curvedConnector4`,(e,t,n)=>{let r=e*BH(n,`adj1`,5e4),i=t*BH(n,`adj2`,5e4),a=r/2,o=(e+r)/2,s=(r+o)/2,c=(o+e)/2,l=i/2,u=l/2,d=(l+i)/2,f=(t+i)/2;return[`M0,0`,`C${a},0 ${r},${u} ${r},${l}`,`C${r},${d} ${s},${i} ${o},${i}`,`C${c},${i} ${e},${f} ${e},${t}`].join(` `)}),X.set(`curvedConnector5`,(e,t,n)=>{let r=e*BH(n,`adj1`,5e4),i=t*BH(n,`adj2`,5e4),a=e*BH(n,`adj3`,5e4),o=(r+a)/2,s=r/2,c=(r+o)/2,l=(a+o)/2,u=(a+e)/2,d=i/2,f=d/2,p=(d+i)/2,m=(t+i)/2,h=(m+i)/2,g=(m+t)/2;return[`M0,0`,`C${s},0 ${r},${f} ${r},${d}`,`C${r},${p} ${c},${i} ${o},${i}`,`C${l},${i} ${a},${h} ${a},${m}`,`C${a},${g} ${u},${t} ${e},${t}`].join(` `)}),X.set(`bentConnector5`,(e,t,n)=>{let r=BH(n,`adj1`,5e4),i=BH(n,`adj2`,5e4),a=BH(n,`adj3`,5e4),o=e*r,s=t*i,c=e*a;return`M0,0 L${o},0 L${o},${s} L${c},${s} L${c},${t} L${e},${t}`}),X.set(`rightArrow`,(e,t,n)=>{let r=BH(n,`adj1`,5e4),i=BH(n,`adj2`,5e4),a=Math.min(e,t),o=t*r/2,s=a*i,c=t/2,l=e-s;return[`M0,${c-o}`,`L${l},${c-o}`,`L${l},0`,`L${e},${c}`,`L${l},${t}`,`L${l},${c+o}`,`L0,${c+o}`,`Z`].join(` `)}),X.set(`leftArrow`,(e,t,n)=>{let r=BH(n,`adj1`,5e4),i=BH(n,`adj2`,5e4),a=Math.min(e,t),o=t*r/2,s=a*i,c=t/2;return[`M${e},${c-o}`,`L${s},${c-o}`,`L${s},0`,`L0,${c}`,`L${s},${t}`,`L${s},${c+o}`,`L${e},${c+o}`,`Z`].join(` `)}),X.set(`upArrow`,(e,t,n)=>{let r=BH(n,`adj1`,5e4),i=BH(n,`adj2`,5e4),a=e*r/2,o=t*i,s=e/2;return[`M${s-a},${t}`,`L${s-a},${o}`,`L0,${o}`,`L${s},0`,`L${e},${o}`,`L${s+a},${o}`,`L${s+a},${t}`,`Z`].join(` `)}),X.set(`downArrow`,(e,t,n)=>{let r=BH(n,`adj1`,5e4),i=BH(n,`adj2`,5e4),a=e*r/2,o=t*i,s=e/2,c=t-o;return[`M${s-a},0`,`L${s+a},0`,`L${s+a},${c}`,`L${e},${c}`,`L${s},${t}`,`L0,${c}`,`L${s-a},${c}`,`Z`].join(` `)}),X.set(`downArrowCallout`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??25e3,a=n?.get(`adj3`)??25e3,o=n?.get(`adj4`)??64977,s=Math.min(e,t),c=Math.max(0,Math.min(i,5e4*e/Math.max(s,1))),l=Math.max(0,Math.min(r,c*2)),u=Math.max(0,Math.min(a,1e5*t/Math.max(s,1))),d=u*s/Math.max(t,1),f=Math.max(0,Math.min(o,1e5-d)),p=e/2,m=s*c/1e5,h=s*l/2e5,g=p-m,_=p-h,v=p+h,y=p+m,b=t-s*u/1e5,x=t*f/1e5;return[`M0,0`,`L${e},0`,`L${e},${x}`,`L${v},${x}`,`L${v},${b}`,`L${y},${b}`,`L${p},${t}`,`L${g},${b}`,`L${_},${b}`,`L${_},${x}`,`L0,${x}`,`Z`].join(` `)}),X.set(`rightArrowCallout`,(e,t,n)=>{let r=Math.min(e,t),i=5e4*t/Math.max(r,1),a=Math.max(0,Math.min(n?.get(`adj2`)??25e3,i)),o=Math.max(0,Math.min(n?.get(`adj1`)??25e3,a*2)),s=1e5*e/Math.max(r,1),c=Math.max(0,Math.min(n?.get(`adj3`)??25e3,s)),l=c*r/Math.max(e,1),u=Math.max(0,Math.min(n?.get(`adj4`)??64977,1e5-l)),d=t/2,f=r*a/1e5,p=r*o/2e5,m=d-f,h=d-p,g=d+p,_=d+f,v=e-r*c/1e5,y=e*u/1e5;return[`M0,0`,`L${y},0`,`L${y},${h}`,`L${v},${h}`,`L${v},${m}`,`L${e},${d}`,`L${v},${_}`,`L${v},${g}`,`L${y},${g}`,`L${y},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`leftArrowCallout`,(e,t,n)=>{let r=Math.min(e,t),i=5e4*t/Math.max(r,1),a=Math.max(0,Math.min(n?.get(`adj2`)??25e3,i)),o=Math.max(0,Math.min(n?.get(`adj1`)??25e3,a*2)),s=1e5*e/Math.max(r,1),c=Math.max(0,Math.min(n?.get(`adj3`)??25e3,s)),l=c*r/Math.max(e,1),u=Math.max(0,Math.min(n?.get(`adj4`)??64977,1e5-l)),d=t/2,f=r*a/1e5,p=r*o/2e5,m=d-f,h=d-p,g=d+p,_=d+f,v=r*c/1e5,y=e-e*u/1e5;return[`M0,${d}`,`L${v},${m}`,`L${v},${h}`,`L${y},${h}`,`L${y},0`,`L${e},0`,`L${e},${t}`,`L${y},${t}`,`L${y},${g}`,`L${v},${g}`,`L${v},${_}`,`Z`].join(` `)}),X.set(`upArrowCallout`,(e,t,n)=>{let r=Math.min(e,t),i=5e4*e/Math.max(r,1),a=Math.max(0,Math.min(n?.get(`adj2`)??25e3,i)),o=Math.max(0,Math.min(n?.get(`adj1`)??25e3,a*2)),s=1e5*t/Math.max(r,1),c=Math.max(0,Math.min(n?.get(`adj3`)??25e3,s)),l=c*r/Math.max(t,1),u=Math.max(0,Math.min(n?.get(`adj4`)??64977,1e5-l)),d=e/2,f=r*a/1e5,p=r*o/2e5,m=d-f,h=d-p,g=d+p,_=d+f,v=r*c/1e5,y=t-t*u/1e5;return[`M0,${y}`,`L${h},${y}`,`L${h},${v}`,`L${m},${v}`,`L${d},0`,`L${_},${v}`,`L${g},${v}`,`L${g},${y}`,`L${e},${y}`,`L${e},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`upDownArrowCallout`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??25e3,a=n?.get(`adj3`)??25e3,o=n?.get(`adj4`)??48123,s=Math.min(e,t),c=Math.max(0,Math.min(i,5e4*e/Math.max(s,1))),l=Math.max(0,Math.min(r,c*2)),u=Math.max(0,Math.min(a,5e4*t/Math.max(s,1))),d=u*s/Math.max(t,1),f=Math.max(0,Math.min(o,1e5-d-d)),p=s*c/1e5,m=s*l/2e5,h=e/2,g=h-p,_=h-m,v=h+m,y=h+p,b=s*u/1e5,x=t*f/2e5,S=t/2-x,C=t/2+x,w=t-b;return[`M${h},0`,`L${y},${b}`,`L${v},${b}`,`L${v},${S}`,`L${e},${S}`,`L${e},${C}`,`L${v},${C}`,`L${v},${w}`,`L${y},${w}`,`L${h},${t}`,`L${g},${w}`,`L${_},${w}`,`L${_},${C}`,`L0,${C}`,`L0,${S}`,`L${_},${S}`,`L${_},${b}`,`L${g},${b}`,`Z`].join(` `)}),X.set(`leftRightArrowCallout`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??25e3,a=n?.get(`adj3`)??25e3,o=n?.get(`adj4`)??48123,s=Math.min(e,t),c=Math.max(0,Math.min(i,5e4*t/Math.max(s,1))),l=Math.max(0,Math.min(r,c*2)),u=Math.max(0,Math.min(a,5e4*e/Math.max(s,1))),d=u*s/Math.max(e,1),f=Math.max(0,Math.min(o,1e5-d-d)),p=s*c/1e5,m=s*l/2e5,h=t/2,g=h-p,_=h-m,v=h+m,y=h+p,b=s*u/1e5,x=e*f/2e5,S=e/2-x,C=e/2+x,w=e-b;return[`M0,${h}`,`L${b},${g}`,`L${b},${_}`,`L${S},${_}`,`L${S},0`,`L${C},0`,`L${C},${_}`,`L${w},${_}`,`L${w},${g}`,`L${e},${h}`,`L${w},${y}`,`L${w},${v}`,`L${C},${v}`,`L${C},${t}`,`L${S},${t}`,`L${S},${v}`,`L${b},${v}`,`L${b},${y}`,`Z`].join(` `)}),X.set(`uturnArrow`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??25e3,a=n?.get(`adj3`)??25e3,o=n?.get(`adj4`)??43750,s=n?.get(`adj5`)??75e3,c=Math.min(e,t),l=Math.max(0,Math.min(i,25e3)),u=Math.max(0,Math.min(r,l*2)),d=1e5-u*c/Math.max(t,1),f=Math.max(0,Math.min(a,d*t/Math.max(c,1))),p=(f+u)*c/Math.max(t,1),m=Math.max(p,Math.min(s,1e5)),h=c*u/1e5,g=c*l/1e5,_=g-h/2,v=t*m/1e5,y=v-c*f/1e5,b=e-_,x=Math.min(b/2,y),S=c*Math.max(0,Math.min(o,1e5*x/Math.max(c,1)))/1e5,C=Math.max(S-h,0),w=h+C,T=e-g,E=T-g,D=E+_,O=b-S,k=D-C;return[`M0,${t}`,`L0,${S}`,S>.1?`A${S},${S} 0 0,1 ${S},0`:`L0,0`,`L${O},0`,S>.1?`A${S},${S} 0 0,1 ${b},${S}`:`L${b},0`,`L${b},${y}`,`L${e},${y}`,`L${T},${v}`,`L${E},${y}`,`L${D},${y}`,`L${D},${w}`,C>.1?`A${C},${C} 0 0,0 ${k},${h}`:`L${k},${h}`,`L${w},${h}`,C>.1?`A${C},${C} 0 0,0 ${h},${w}`:`L${h},${w}`,`L${h},${t}`,`Z`].join(` `)}),X.set(`leftRightArrow`,(e,t,n)=>{let r=Math.min(e,t),i=t/2,a=r>0?5e4*e/r:0,o=Math.min(Math.max(n?.get(`adj1`)??5e4,0),1e5),s=r*Math.min(Math.max(n?.get(`adj2`)??5e4,0),a)/1e5,c=e-s,l=t*o/2e5,u=i,d=u-l,f=u+l;return[`M0,${u}`,`L${s},0`,`L${s},${d}`,`L${c},${d}`,`L${c},0`,`L${e},${u}`,`L${c},${t}`,`L${c},${f}`,`L${s},${f}`,`L${s},${t}`,`Z`].join(` `)}),X.set(`leftUpArrow`,(e,t,n)=>{let r=Math.max(0,Math.min(n?.get(`adj2`)??25e3,5e4)),i=r*2,a=Math.max(0,Math.min(n?.get(`adj1`)??25e3,i)),o=1e5-i,s=Math.max(0,Math.min(n?.get(`adj3`)??25e3,o)),c=Math.min(e,t),l=c*s/1e5,u=c*r/5e4,d=e-u,f=t-u,p=c*r/1e5,m=e-p,h=t-p,g=c*a/2e5,_=m-g,v=m+g,y=h-g,b=h+g;return[`M0,${h}`,`L${l},${f}`,`L${l},${y}`,`L${_},${y}`,`L${_},${l}`,`L${d},${l}`,`L${m},0`,`L${e},${l}`,`L${v},${l}`,`L${v},${b}`,`L${l},${b}`,`L${l},${t}`,`Z`].join(` `)}),X.set(`upDownArrow`,(e,t,n)=>{let r=n?.get(`adj1`)??5e4,i=n?.get(`adj2`)??5e4,a=Math.min(e,t),o=5e4*t/Math.max(a,1),s=Math.max(0,Math.min(i,o)),c=a*Math.max(0,Math.min(r,1e5))/2e5,l=a*s/1e5,u=e/2;return[`M${u},0`,`L${e},${l}`,`L${u+c},${l}`,`L${u+c},${t-l}`,`L${e},${t-l}`,`L${u},${t}`,`L0,${t-l}`,`L${u-c},${t-l}`,`L${u-c},${l}`,`L0,${l}`,`Z`].join(` `)}),X.set(`notchedRightArrow`,(e,t,n)=>{let r=BH(n,`adj1`,5e4),i=BH(n,`adj2`,5e4),a=Math.min(e,t),o=t*r/2,s=a*i,c=t/2,l=e-s,u=c>0?o*s/c:0;return[`M0,${c-o}`,`L${l},${c-o}`,`L${l},0`,`L${e},${c}`,`L${l},${t}`,`L${l},${c+o}`,`L0,${c+o}`,`L${u},${c}`,`Z`].join(` `)}),X.set(`chevron`,(e,t,n)=>{let r=BH(n,`adj`,5e4),i=Math.min(e,t)*r;return[`M0,0`,`L${e-i},0`,`L${e},${t/2}`,`L${e-i},${t}`,`L0,${t}`,`L${i},${t/2}`,`Z`].join(` `)}),X.set(`homePlate`,(e,t,n)=>{let r=BH(n,`adj`,5e4),i=e-Math.min(e,t)*r;return[`M0,0`,`L${i},0`,`L${e},${t/2}`,`L${i},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`stripedRightArrow`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?84375*e/r:84375,a=Math.min(Math.max(VH(n,`adj1`,5e4),0),1e5),o=Math.min(Math.max(VH(n,`adj2`,5e4),0),i),s=t*a/2e5,c=e-r*o/1e5,l=t/2,u=l-s,d=l+s,f=r/32,p=r/16,m=r/8,h=r*5/32;return[`M0,${u} L${f},${u} L${f},${d} L0,${d} Z`,`M${p},${u} L${m},${u} L${m},${d} L${p},${d} Z`,`M${h},${u}`,`L${c},${u}`,`L${c},0`,`L${e},${l}`,`L${c},${t}`,`L${c},${d}`,`L${h},${d}`,`Z`].join(` `)}),X.set(`bentArrow`,(e,t,n)=>{let r=Math.min(e,t),i=Math.max(0,Math.min(n?.get(`adj2`)??25e3,5e4)),a=i*2,o=Math.max(0,Math.min(n?.get(`adj1`)??25e3,a)),s=Math.max(0,Math.min(n?.get(`adj3`)??25e3,5e4)),c=r*o/1e5,l=r*i/1e5,u=l-c/2,d=r*s/1e5,f=e-d,p=t-u,m=Math.min(f,p),h=m>0?1e5*m/r:0,g=r*Math.max(0,Math.min(n?.get(`adj4`)??43750,h))/1e5,_=Math.max(g-c,0),v=c+_,y=e-d,b=u+c,x=b+u,S=u+g,C=b+_,w=[`M0,${t}`,`L0,${S}`];return g>.1?w.push(`A${g},${g} 0 0,1 ${g},${u}`):w.push(`L0,${u}`),w.push(`L${y},${u}`,`L${y},0`,`L${e},${l}`,`L${y},${x}`,`L${y},${b}`,`L${v},${b}`),_>.1?w.push(`A${_},${_} 0 0,0 ${c},${C}`):w.push(`L${c},${b}`),w.push(`L${c},${t}`,`Z`),w.join(` `)}),X.set(`bentUpArrow`,(e,t,n)=>{let r=Math.max(0,Math.min(n?.get(`adj1`)??25e3,5e4)),i=Math.max(0,Math.min(n?.get(`adj2`)??25e3,5e4)),a=Math.max(0,Math.min(n?.get(`adj3`)??25e3,5e4)),o=Math.min(e,t),s=o*a/1e5,c=e-o*i/5e4,l=e-o*i/1e5,u=o*r/2e5,d=l-u,f=l+u,p=t-o*r/1e5;return[`M0,${p}`,`L${d},${p}`,`L${d},${s}`,`L${c},${s}`,`L${l},0`,`L${e},${s}`,`L${f},${s}`,`L${f},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`curvedRightArrow`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??5e4,a=n?.get(`adj3`)??25e3,o=1e5,s=t/2,c=e,l=t,u=Math.max(Math.min(e,t),1),d=5e4*t/u,f=Math.max(0,Math.min(i,d)),p=u*Math.max(0,Math.min(r,f))/o,m=u*f/o,h=s-(p+m)/4,g=h*2,_=g*g,v=p*p,y=Math.max(_-v,0),b=Math.sqrt(y)*e/Math.max(g,1e-6),x=o*b/u,S=u*Math.max(0,Math.min(a,x))/o,C=h+p,w=e*e,T=S*S,E=Math.max(w-T,0),D=Math.sqrt(E)*h/Math.max(e,1e-6),O=h+D,k=C+D,A=(m-p)/2,j=O-A,M=k+A,N=l-m/2,P=c-S,F=Math.atan(D/Math.max(S,1e-6)),ee=Math.PI-F,I=-F,L=p/2,R=Math.atan2(L,Math.max(b,1e-6))-Math.PI/2,z=ee*180/Math.PI,te=I*180/Math.PI,ne=F*180/Math.PI,re=R*180/Math.PI,B=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=a*Math.PI/180,c=e+n*Math.cos(o),l=t+r*Math.sin(o),u=e+n*Math.cos(s),d=t+r*Math.sin(s),f=a-i;return`M${c},${l} A${n},${r} 0 ${Math.abs(f)>180?1:0},${f>=0?1:0} ${u},${d}`};return[`M0,${h}`,B(e,h,e,h,180,180+te).replace(`M`,`L`),`L${P},${O}`,`L${P},${j}`,`L${c},${N}`,`L${P},${M}`,`L${P},${k}`,B(e,C,e,h,z,z+ne).replace(`M`,`L`),`Z`,B(e,h,e,h,180,270),`L${c},${p}`,B(e,C,e,h,270,270+re).replace(`M`,`L`),`Z`].join(` `)}),X.set(`curvedLeftArrow`,(e,t,n)=>UH(X.get(`curvedRightArrow`)(e,t,n),e));function GH(e){let t=e.indexOf(`Z`);return t===-1?{outer:e,remainder:``}:{outer:e.slice(0,t+1).trim(),remainder:e.slice(t+1).trim()}}function KH(e,t,n,r){let i=X.get(e)(t,n,r),{outer:a,remainder:o}=GH(i);return o?e===`curvedRightArrow`?[{d:o,fill:`norm`,stroke:!0},{d:a,fill:`norm`,stroke:!0}]:[{d:a,fill:`norm`,stroke:!0},{d:o,fill:`norm`,stroke:!0}]:[{d:i,fill:`norm`,stroke:!0}]}function qH(e,t,n,r){let i=X.get(`curvedDownArrow`)(t,n,r),{outer:a,remainder:o}=GH(i),s=o?[{d:o,fill:`norm`,stroke:!0},{d:a,fill:`norm`,stroke:!0}]:[{d:i,fill:`norm`,stroke:!0}];return e===`curvedDownArrow`?s:s.map(e=>({...e,d:WH(e.d,n)})).reverse()}X.set(`curvedUpArrow`,(e,t,n)=>{let r=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=a*Math.PI/180,c=e+n*Math.cos(o),l=t+r*Math.sin(o),u=e+n*Math.cos(s),d=t+r*Math.sin(s),f=a-i;return`M${c},${l} A${n},${r} 0 ${Math.abs(f)>180?1:0},${f>=0?1:0} ${u},${d}`},i=Math.min(e,t),a=e/2,o=n?.get(`adj1`)??25e3,s=n?.get(`adj2`)??5e4,c=n?.get(`adj3`)??25e3,l=5e4*e/Math.max(i,1),u=Math.max(0,Math.min(s,l)),d=i*Math.max(0,Math.min(o,1e5))/1e5,f=i*u/1e5,p=a-(d+f)/4,m=p*2,h=Math.sqrt(Math.max(m*m-d*d,0))*t/Math.max(m,1),g=1e5*h/Math.max(i,1),_=i*Math.max(0,Math.min(c,g))/1e5,v=p+d,y=Math.sqrt(Math.max(t*t-_*_,0))*p/Math.max(t,1),b=p+y,x=v+y,S=(f-d)/2,C=b-S,w=x+S,T=e-f/2,E=_,D=Math.atan2(y,_),O=Math.atan2(d/2,h),k=Math.PI/2-O,A=O-D,j=Math.PI/2-D,M=k*180/Math.PI,N=A*180/Math.PI,P=j*180/Math.PI,F=D*180/Math.PI;return[r(p,0,p,t,M,M+N),`L${b},${E}`,`L${C},${E}`,`L${T},0`,`L${w},${E}`,`L${x},${E}`,r(v,0,p,t,P,P+F).replace(`M`,`L`),`L${p},${t}`,r(p,0,p,t,90,180).replace(`M`,`L`),`L${d},0`,r(v,0,p,t,180,90).replace(`M`,`L`),`Z`].join(` `)}),X.set(`curvedDownArrow`,(e,t,n)=>{let r=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=a*Math.PI/180,c=e+n*Math.cos(o),l=t+r*Math.sin(o),u=e+n*Math.cos(s),d=t+r*Math.sin(s),f=a-i;return`M${c},${l} A${n},${r} 0 ${Math.abs(f)>180?1:0},${f>=0?1:0} ${u},${d}`},i=Math.min(e,t),a=e/2,o=n?.get(`adj1`)??25e3,s=n?.get(`adj2`)??5e4,c=n?.get(`adj3`)??25e3,l=5e4*e/Math.max(i,1),u=Math.max(0,Math.min(s,l)),d=i*Math.max(0,Math.min(o,1e5))/1e5,f=i*u/1e5,p=a-(d+f)/4,m=p*2,h=Math.sqrt(Math.max(m*m-d*d,0))*t/Math.max(m,1),g=1e5*h/Math.max(i,1),_=i*Math.max(0,Math.min(c,g))/1e5,v=p+d,y=Math.sqrt(Math.max(t*t-_*_,0))*p/Math.max(t,1),b=p+y,x=v+y,S=(f-d)/2,C=b-S,w=x+S,T=e-f/2,E=t-_,D=Math.atan2(y,_)*180/Math.PI,O=Math.atan2(d/2,h)*180/Math.PI,k=270+D,A=270-O,j=O-90,M=90+O;return[`M${T},${t}`,`L${C},${E}`,`L${b},${E}`,r(p,t,p,t,k,k-D).replace(`M`,`L`),`L${v},0`,r(v,t,p,t,270,270+D).replace(`M`,`L`),`L${b+d},${E}`,`L${w},${E}`,`Z`,`M${v},0`,r(v,t,p,t,A,A+j).replace(`M`,`L`),r(p,t,p,t,180,180+M).replace(`M`,`L`),`Z`].join(` `)});function JH(e,t,n,r=!1,i=`circularArrow`){let a=e/2,o=t/2,s=e/2,c=t/2,l=Math.min(e,t),u=e=>e/6e4*Math.PI/180,d=(e,t)=>e*Math.sin(u(t)),f=(e,t)=>e*Math.cos(u(t)),p=(e,t,n)=>e*Math.cos(Math.atan2(n,t)),m=(e,t,n)=>e*Math.sin(Math.atan2(n,t)),h=(e,t)=>Math.atan2(t,e)*180/Math.PI*6e4,g=(e,t,n)=>Math.sqrt(e*e+t*t+n*n),_=i===`leftCircularArrow`,v=n?.get(`adj1`)??12500,y=n?.get(`adj2`)??(_?-1142319:1142319),b=n?.get(`adj3`)??(_?1142319:20457681),x=n?.get(`adj4`)??108e5,S=n?.get(`adj5`)??12500,C=Math.max(0,Math.min(S,25e3)),w=C*2,T=Math.max(0,Math.min(v,w)),E=Math.max(1,Math.min(b,21599999)),D=Math.max(0,Math.min(x,21599999)),O=l*T/1e5,k=l*C/1e5,A=O/2,j=s+A-k,M=c+A-k,N=j-O,P=M-O,F=N+A,ee=P+A,I=d(F,E),L=f(ee,E),R=p(F,L,I),z=m(ee,L,I),te=a+R,ne=o+z,re=Math.min(N,P),B=R*R,ie=z*z,V=re*re,ae=B-V,H=ie-V,U=ie===0?0:ae*H/B,W=1-(ie===0?0:U/ie),oe=Math.sqrt(Math.max(0,W)),se=R===0?0:ae/R,ce=z===0?0:se/z,le=h(1,ce===0?0:(1+oe)/ce),ue=le+216e5,de=(le>=0?le:ue)-E,fe=de+216e5,pe=de>=0?de:fe,me=pe-108e5,he=pe-216e5,G=Math.abs(me>=0?he:pe),ge;if(_){let e=-G,t=-Math.abs(y);ge=Math.max(e,Math.min(t,0))}else ge=Math.max(0,Math.min(y,G));let _e=E+ge,ve=d(F,_e),ye=f(ee,_e),be=p(F,ye,ve),xe=m(ee,ye,ve),Se=a+be,Ce=o+xe,we=d(j,D),Te=f(M,D),Ee=p(j,Te,we),De=m(M,Te,we),Oe=a+Ee,ke=o+De,Ae=f(k,_e),je=d(k,_e),K=te+Ae,Me=ne+je,Ne=te-Ae,Pe=ne-je,Fe=Ne-a,Ie=Pe-o,Le=K-a,Re=Me-o,ze=Math.min(j,M),Be=j===0?0:Fe*ze/j,Ve=M===0?0:Ie*ze/M,He=j===0?0:Le*ze/j,Ue=M===0?0:Re*ze/M,We=He-Be,Ge=Ue-Ve,Ke=g(We,Ge,0),qe=Be*Ue-He*Ve,Je=ze*ze,Ye=Ke*Ke,Xe=Je*Ye-qe*qe,Ze=Math.sqrt(Math.max(Xe,0)),Qe=Ge*-1>=0?-1:1,$e=Qe*We*Ze,et=qe*Ge,tt=Ye===0?0:(et+$e)/Ye,nt=et-$e,rt=Ye===0?0:nt/Ye,it=Math.abs(Ge)*Ze,at=qe*We*-1,ot=Ye===0?0:(at+it)/Ye,st=at-it,ct=Ye===0?0:st/Ye,lt=He-tt,ut=He-rt,dt=Ue-ot,ft=Ue-ct,pt=g(lt,dt,0),mt=g(ut,ft,0)-pt,ht=mt>=0?tt:rt,gt=mt>=0?ot:ct,_t=ze===0?0:ht*j/ze,vt=ze===0?0:gt*M/ze,yt=a+_t,bt=o+vt,xt=N===0?0:Fe*re/N,St=P===0?0:Ie*re/P,Ct=N===0?0:Le*re/N,wt=P===0?0:Re*re/P,Tt=Ct-xt,Et=wt-St,Dt=g(Tt,Et,0),Ot=xt*wt-Ct*St,kt=re*re,At=Dt*Dt,jt=kt*At-Ot*Ot,Mt=Math.sqrt(Math.max(jt,0)),Nt=Qe*Tt*Mt,Pt=Ot*Et,Ft=At===0?0:(Pt+Nt)/At,It=Pt-Nt,Lt=At===0?0:It/At,Rt=Math.abs(Et)*Mt,zt=Ot*Tt*-1,Bt=At===0?0:(zt+Rt)/At,Vt=zt-Rt,Ht=At===0?0:Vt/At,Ut=xt-Ft,Wt=xt-Lt,Gt=St-Bt,Kt=St-Ht,qt=g(Ut,Gt,0),Jt=g(Wt,Kt,0)-qt,Yt=Jt>=0?Ft:Lt,Xt=Jt>=0?Bt:Ht,Zt=re===0?0:Yt*N/re,Qt=re===0?0:Xt*P/re,$t=a+Zt,en=o+Qt,tn=h(Zt,Qt),nn=tn+216e5,rn=tn>=0?tn:nn,an=D-rn,on,sn;if(_){let e=an>=0?an:an+216e5;on=rn+e,sn=-e}else on=rn,sn=an>=0?an-216e5:an;let cn=g(yt-$t,bt-en,0)/2-k,ln=cn>=0?yt:K,un=cn>=0?bt:Me,dn=cn>=0?$t:Ne,fn=cn>=0?en:Pe,pn=h(_t,vt),mn=pn+216e5,hn=(pn>=0?pn:mn)-D,gn,_n;if(_){let e=hn>=0?hn-216e5:hn;gn=D+e,_n=-e}else{let e=hn>=0?hn:hn+216e5;gn=D,_n=e}let vn=gn+_n,yn=d(j,vn),bn=f(M,vn),xn=a+p(j,bn,yn),Sn=o+m(M,bn,yn),Cn=on+sn,wn=d(N,Cn),Tn=f(P,Cn),En=a+p(N,Tn,wn),Dn=o+m(P,Tn,wn),On=Math.abs(_n/6e4)>180?1:0,kn=_n>0?1:0,An=Math.abs(sn/6e4)>180?1:0,jn=sn>0?1:0;if(_){let e=d(N,D),t=f(P,D),n=a+p(N,t,e),r=o+m(P,t,e);return[`M${Oe},${ke}`,`L${n},${r}`,`A${N},${P} 0 ${An},${jn} ${En},${Dn}`,`L${dn},${fn}`,`L${Se},${Ce}`,`L${ln},${un}`,`L${yt},${bt}`,`A${j},${M} 0 ${On},${kn} ${xn},${Sn}`,`Z`].join(` `)}return[`M${Oe},${ke}`,`A${j},${M} 0 ${On},${kn} ${xn},${Sn}`,`L${ln},${un}`,`L${Se},${Ce}`,`L${dn},${fn}`,`L${$t},${en}`,`A${N},${P} 0 ${An},${jn} ${En},${Dn}`,`Z`].join(` `)}X.set(`circularArrow`,(e,t,n)=>JH(e,t,n,!1,`circularArrow`)),X.set(`leftCircularArrow`,(e,t,n)=>JH(e,t,n,!1,`leftCircularArrow`)),X.set(`leftRightCircularArrow`,(e,t,n)=>{let r=e/400,i=t/280,a=(e,t)=>({x:e*r,y:t*i}),o=a(35,140),s=a(19.9536,89.9471),c=a(33.4296,89.9471),l=a(74.6127,28.1974),u=a(182.5744,.5489),d=a(274.5688,28.1924),f=a(315.4978,40.4912),p=a(348.2481,62.4743),m=a(366.5707,89.9471),h=a(380.0463,89.9471),g=a(365,140),_=a(310.0463,89.9471),v=a(320.9838,89.9471),y=a(274.3848,50.3095),b=a(182.4425,40.5864),x=a(115.6249,68.2298),S=a(101.3589,74.1319),C=a(88.9651,81.4842),w=a(79.0159,89.947),T=a(89.9536,89.9471);return[`M${o.x},${o.y}`,`L${s.x},${s.y}`,`L${c.x},${c.y}`,`C${l.x},${l.y} ${u.x},${u.y} ${d.x},${d.y}`,`C${f.x},${f.y} ${p.x},${p.y} ${m.x},${m.y}`,`L${h.x},${h.y}`,`L${g.x},${g.y}`,`L${_.x},${_.y}`,`L${v.x},${v.y}`,`C${y.x},${y.y} ${b.x},${b.y} ${x.x},${x.y}`,`C${S.x},${S.y} ${C.x},${C.y} ${w.x},${w.y}`,`L${T.x},${T.y}`,`Z`].join(` `)}),X.set(`quadArrow`,(e,t,n)=>{let r=n?.get(`adj1`)??22500,i=n?.get(`adj2`)??22500,a=n?.get(`adj3`)??22500,o=t/2,s=e/2,c=Math.min(e,t),l=Math.max(0,Math.min(i,5e4)),u=Math.max(0,Math.min(r,2*l)),d=c*Math.max(0,Math.min(a,(1e5-2*l)/2))/1e5,f=c*l/1e5,p=s-f,m=s+f,h=c*u/2e5,g=s-h,_=s+h,v=e-d,y=o-f,b=o+f,x=o-h,S=o+h,C=t-d;return[`M0,${o}`,`L${d},${y}`,`L${d},${x}`,`L${g},${x}`,`L${g},${d}`,`L${p},${d}`,`L${s},0`,`L${m},${d}`,`L${_},${d}`,`L${_},${x}`,`L${v},${x}`,`L${v},${y}`,`L${e},${o}`,`L${v},${b}`,`L${v},${S}`,`L${_},${S}`,`L${_},${C}`,`L${m},${C}`,`L${s},${t}`,`L${p},${C}`,`L${g},${C}`,`L${g},${S}`,`L${d},${S}`,`L${d},${b}`,`Z`].join(` `)}),X.set(`quadArrowCallout`,(e,t,n)=>{let r=Math.min(e,t),i=e/2,a=t/2,o=Math.max(0,Math.min(n?.get(`adj2`)??18515,5e4)),s=Math.max(0,Math.min(n?.get(`adj1`)??18515,o*2)),c=5e4-o,l=Math.max(0,Math.min(n?.get(`adj3`)??18515,c)),u=l*2,d=Math.max(s,Math.min(n?.get(`adj4`)??48123,1e5-u)),f=r*o/1e5,p=r*s/2e5,m=r*l/1e5,h=e*d/2e5,g=t*d/2e5,_=e-m,v=i-h,y=i+h,b=i-f,x=i+f,S=i-p,C=i+p,w=t-m,T=a-g,E=a+g,D=a-f,O=a+f,k=a-p,A=a+p;return[`M0,${a}`,`L${m},${D}`,`L${m},${k}`,`L${v},${k}`,`L${v},${T}`,`L${S},${T}`,`L${S},${m}`,`L${b},${m}`,`L${i},0`,`L${x},${m}`,`L${C},${m}`,`L${C},${T}`,`L${y},${T}`,`L${y},${k}`,`L${_},${k}`,`L${_},${D}`,`L${e},${a}`,`L${_},${O}`,`L${_},${A}`,`L${y},${A}`,`L${y},${E}`,`L${C},${E}`,`L${C},${w}`,`L${x},${w}`,`L${i},${t}`,`L${b},${w}`,`L${S},${w}`,`L${S},${E}`,`L${v},${E}`,`L${v},${A}`,`L${m},${A}`,`L${m},${O}`,`Z`].join(` `)}),X.set(`leftRightUpArrow`,(e,t,n)=>{let r=Math.max(0,Math.min(n?.get(`adj2`)??25e3,5e4)),i=r*2,a=Math.max(0,Math.min(n?.get(`adj1`)??25e3,i)),o=(1e5-i)/2,s=Math.max(0,Math.min(n?.get(`adj3`)??25e3,o)),c=Math.min(e,t),l=e/2,u=c*s/1e5,d=c*r/1e5,f=l-d,p=l+d,m=c*a/2e5,h=l-m,g=l+m,_=e-u,v=t-c*r/5e4,y=t-d,b=y-m,x=y+m;return[`M0,${y}`,`L${u},${v}`,`L${u},${b}`,`L${h},${b}`,`L${h},${u}`,`L${f},${u}`,`L${l},0`,`L${p},${u}`,`L${g},${u}`,`L${g},${b}`,`L${_},${b}`,`L${_},${v}`,`L${e},${y}`,`L${_},${t}`,`L${_},${x}`,`L${u},${x}`,`L${u},${t}`,`Z`].join(` `)}),X.set(`swooshArrow`,(e,t,n)=>{let r=Math.min(e,t),i=n?.get(`adj1`)??25e3,a=n?.get(`adj2`)??16667,o=Math.max(1,Math.min(i,75e3)),s=7e4*e/r,c=Math.max(0,Math.min(a,s)),l=t*o/1e5,u=r*c/1e5,d=r/8,f=t/6,p=Math.PI/2/14,m=Math.tan(p),h=e-u,g=d,_=d*m,v=h-_,y=l*m,b=g+l,x=h+y,S=x+_,C=b+d,w=C/2+t/20,T=e/6,E=f+f,D=b+f/2,O=e/4;return[`M0,${t}`,`Q${T},${E} ${h},${g}`,`L${v},0`,`L${e},${w}`,`L${S},${C}`,`L${x},${b}`,`Q${O},${D} 0,${t}`,`Z`].join(` `)}),X.set(`flowChartProcess`,(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`),X.set(`flowChartDecision`,(e,t)=>{let n=e/2,r=t/2;return`M${n},0 L${e},${r} L${n},${t} L0,${r} Z`}),X.set(`flowChartTerminator`,(e,t)=>{let n=e*3475/21600,r=e*18125/21600,i=n,a=t/2;return[`M${n},0`,`L${r},0`,`A${i},${a} 0 0,1 ${r},${t}`,`L${n},${t}`,`A${i},${a} 0 0,1 ${n},0`,`Z`].join(` `)}),X.set(`flowChartDocument`,(e,t)=>{let n=t*17322/21600,r=n,i=t*23922/21600,a=t*20172/21600;return[`M0,0`,`L${e},0`,`L${e},${n}`,`C${e/2},${r} ${e/2},${i} 0,${a}`,`Z`].join(` `)}),X.set(`flowChartInputOutput`,(e,t)=>{let n=e/5;return`M${n},0 L${e},0 L${e-n},${t} L0,${t} Z`}),X.set(`flowChartPredefinedProcess`,(e,t)=>{let n=e/8;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${n},0 L${n},${t}`,`M${e-n},0 L${e-n},${t}`].join(` `)}),X.set(`flowChartAlternateProcess`,(e,t)=>{let n=Math.min(e,t)/6;return[`M${n},0`,`L${e-n},0`,`A${n},${n} 0 0,1 ${e},${n}`,`L${e},${t-n}`,`A${n},${n} 0 0,1 ${e-n},${t}`,`L${n},${t}`,`A${n},${n} 0 0,1 0,${t-n}`,`L0,${n}`,`A${n},${n} 0 0,1 ${n},0`,`Z`].join(` `)}),X.set(`flowChartManualInput`,(e,t)=>`M0,${t*.2} L${e},0 L${e},${t} L0,${t} Z`),X.set(`flowChartManualOperation`,(e,t)=>`M0,0 L${e},0 L${e*4/5},${t} L${e/5},${t} Z`),X.set(`flowChartPreparation`,(e,t)=>{let n=e*.2,r=t/2;return`M${n},0 L${e-n},0 L${e},${r} L${e-n},${t} L${n},${t} L0,${r} Z`}),X.set(`flowChartData`,(e,t)=>{let n=e*.15;return`M${n},0 L${e},0 L${e-n},${t} L0,${t} Z`}),X.set(`flowChartInternalStorage`,(e,t)=>{let n=e/8,r=t/8;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${n},0 L${n},${t}`,`M0,${r} L${e},${r}`].join(` `)}),X.set(`flowChartMagneticDisk`,(e,t)=>{let n=t/6,r=n,i=t-n;return[`M0,${r}`,`A${e/2},${n} 0 1,1 ${e},${r}`,`L${e},${i}`,`A${e/2},${n} 0 1,1 0,${i}`,`L0,${r}`,`Z`,`M${e},${r}`,`A${e/2},${n} 0 1,1 0,${r}`].join(` `)}),X.set(`flowChartDelay`,(e,t)=>{let n=e/2,r=Z(n,0,n,t/2,270,180);return[`M0,0`,`L${n},0`,r.svg,`L0,${t}`,`Z`].join(` `)}),X.set(`flowChartDisplay`,(e,t)=>{let n=e/6,r=t/6,i=n,a=r*3,o=Z(5*n,0,i,a,270,180);return[`M0,${3*r}`,`L${n},0`,`L${5*n},0`,o.svg,`L${n},${t}`,`Z`].join(` `)}),X.set(`flowChartExtract`,(e,t)=>`M${e/2},0 L${e},${t} L0,${t} Z`),X.set(`flowChartMerge`,(e,t)=>`M0,0 L${e},0 L${e/2},${t} Z`),X.set(`flowChartOffpageConnector`,(e,t)=>{let n=t*.2;return[`M0,0`,`L${e},0`,`L${e},${t-n}`,`L${e/2},${t}`,`L0,${t-n}`,`Z`].join(` `)}),X.set(`flowChartConnector`,(e,t)=>{let n=e/2,r=t/2;return[`M${e},${r}`,`A${n},${r} 0 1,1 0,${r}`,`A${n},${r} 0 1,1 ${e},${r}`,`Z`].join(` `)}),X.set(`flowChartSort`,(e,t)=>{let n=e/2,r=t/2;return[`M${n},0 L${e},${r} L${n},${t} L0,${r} Z`,`M0,${r} L${e},${r}`].join(` `)}),X.set(`flowChartCollate`,(e,t)=>{let n=e/2,r=t/2;return[`M0,0 L${e},0 L${n},${r} Z`,`M0,${t} L${e},${t} L${n},${r} Z`].join(` `)}),X.set(`flowChartPunchedTape`,(e,t)=>{let n=e/20,r=t/20,i=(e,t,n,r,i,a)=>{let o=i/6e4,s=a/6e4,c=o*Math.PI/180,l=(o+s)*Math.PI/180,u=e-n*Math.cos(c),d=t-r*Math.sin(c),f=u+n*Math.cos(l),p=d+r*Math.sin(l);return{endX:f,endY:p,svg:`A${n},${r} 0 ${Math.abs(s)>180?1:0},${s>0?1:0} ${f},${p}`}},a=5*n,o=2*r,s=0,c=2*r,l=[`M${s},${c}`],u=i(s,c,a,o,108e5,-108e5);l.push(u.svg),s=u.endX,c=u.endY,u=i(s,c,a,o,108e5,108e5),l.push(u.svg),s=u.endX,c=u.endY;let d=20*n,f=18*r;return l.push(`L${d},${f}`),s=d,c=f,u=i(s,c,a,o,0,-108e5),l.push(u.svg),s=u.endX,c=u.endY,u=i(s,c,a,o,0,108e5),l.push(u.svg),l.push(`Z`),l.join(` `)}),X.set(`flowChartPunchedCard`,(e,t)=>{let n=e/5;return`M0,${t/5} L${n},0 L${e},0 L${e},${t} L0,${t} Z`}),X.set(`flowChartSummingJunction`,(e,t)=>{let n=e/2,r=t/2,i=n*Math.cos(Math.PI/4),a=r*Math.sin(Math.PI/4),o=n-i,s=n+i,c=r-a,l=r+a;return[`M0,${r}`,`A${n},${r} 0 1,1 ${e},${r}`,`A${n},${r} 0 1,1 0,${r}`,`Z`,`M${o},${c} L${s},${l}`,`M${s},${c} L${o},${l}`].join(` `)}),X.set(`flowChartOr`,(e,t)=>{let n=e/2,r=t/2;return[`M0,${r}`,`A${n},${r} 0 1,1 ${e},${r}`,`A${n},${r} 0 1,1 0,${r}`,`Z`,`M${n},0 L${n},${t}`,`M0,${r} L${e},${r}`].join(` `)}),X.set(`flowChartOnlineStorage`,(e,t)=>{let n=e/6;return[`M${n},0`,`L${e},0`,`A${n},${t/2} 0 0,0 ${e},${t}`,`L${n},${t}`,`A${n},${t/2} 0 0,1 ${n},0`,`Z`].join(` `)}),X.set(`flowChartMagneticDrum`,(e,t)=>{let n=e/6,r=e*5/6,i=t/2;return[`M${n},0`,`L${r},0`,`A${n},${i} 0 0,1 ${r},${t}`,`L${n},${t}`,`A${n},${i} 0 0,1 ${n},0`,`Z`,`M${r},${t}`,`A${n},${i} 0 0,1 ${r},0`].join(` `)}),X.set(`flowChartMagneticTape`,(e,t)=>{let n=e/2,r=t/2,i=n,a=r,o=Math.atan2(t,e),s=a+r*Math.sin(Math.PI/4),c=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=(i+a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(s),d=l+r*Math.sin(s);return{endX:u,endY:d,svg:`A${n},${r} 0 ${Math.abs(a)>180?1:0},${a>0?1:0} ${u},${d}`}},l=i,u=t,d=c(l,u,n,r,90,90);l=d.endX,u=d.endY;let f=c(l,u,n,r,180,90);l=f.endX,u=f.endY;let p=c(l,u,n,r,270,90);l=p.endX,u=p.endY;let m=o*180/Math.PI,h=c(l,u,n,r,0,m);return[`M${i},${t}`,d.svg,f.svg,p.svg,h.svg,`L${e},${s}`,`L${e},${t}`,`Z`].join(` `)}),X.set(`flowChartMultidocument`,(e,t)=>{let n=t=>e*t/21600,r=e=>t*e/21600;return[`M0,${r(20782)}`,`C${n(9298)},${r(23542)} ${n(9298)},${r(18022)} ${n(18595)},${r(18022)}`,`L${n(18595)},${r(3675)} L0,${r(3675)} Z`,`M${n(1532)},${r(3675)} L${n(1532)},${r(1815)} L${n(2e4)},${r(1815)}`,`L${n(2e4)},${r(16252)}`,`C${n(19298)},${r(16252)} ${n(18595)},${r(16352)} ${n(18595)},${r(16352)}`,`L${n(18595)},${r(3675)} Z`,`M${n(2972)},${r(1815)} L${n(2972)},0 L${e},0`,`L${e},${r(14392)}`,`C${n(20800)},${r(14392)} ${n(2e4)},${r(14467)} ${n(2e4)},${r(14467)}`,`L${n(2e4)},${r(1815)} Z`].join(` `)}),X.set(`wedgeRectCallout`,(e,t,n)=>{let r=e/2,i=t/2,a=e*(n?.get(`adj1`)??-20833)/1e5,o=t*(n?.get(`adj2`)??62500)/1e5,s=r+a,c=i+o,l=a*t/e,u=Math.abs(o)-Math.abs(l),d=e*(a>=0?7:2)/12,f=e*(a>=0?10:5)/12,p=t*(o>=0?7:2)/12,m=t*(o>=0?10:5)/12,h=u>0||a>=0?0:s,g=u>0?o>=0?d:s:d,_=u>0?e:a>=0?s:e,v=u>0&&o>=0?s:d,y=u>0||a>=0?p:c,b=u>0?o>=0?0:c:0,x=u>0?p:a>=0?c:p,S=u>0&&o>=0?c:t;return[`M0,0`,`L${d},0`,`L${g},${b}`,`L${f},0`,`L${e},0`,`L${e},${p}`,`L${_},${x}`,`L${e},${m}`,`L${e},${t}`,`L${f},${t}`,`L${v},${S}`,`L${d},${t}`,`L0,${t}`,`L0,${m}`,`L${h},${y}`,`L0,${p}`,`Z`].join(` `)}),X.set(`wedgeRoundRectCallout`,(e,t,n)=>{let r=e/2,i=t/2,a=Math.min(e,t),o=e*(n?.get(`adj1`)??-20833)/1e5,s=t*(n?.get(`adj2`)??62500)/1e5,c=a*(n?.get(`adj3`)??16667)/1e5,l=r+o,u=i+s,d=o*t/e,f=Math.abs(s)-Math.abs(d),p=e-c,m=t-c,h=e*(o>=0?7:2)/12,g=e*(o>=0?10:5)/12,_=t*(s>=0?7:2)/12,v=t*(s>=0?10:5)/12,y=f>0||o>=0?0:l,b=f>0?s>=0?h:l:h,x=f>0?e:o>=0?l:e,S=f>0&&s>=0?l:h,C=f>0||o>=0?_:u,w=f>0?s>=0?0:u:0,T=f>0?_:o>=0?u:_,E=f>0&&s>=0?u:t;return[`M0,${c}`,`A${c},${c} 0 0,1 ${c},0`,`L${h},0`,`L${b},${w}`,`L${g},0`,`L${p},0`,`A${c},${c} 0 0,1 ${e},${c}`,`L${e},${_}`,`L${x},${T}`,`L${e},${v}`,`L${e},${m}`,`A${c},${c} 0 0,1 ${p},${t}`,`L${g},${t}`,`L${S},${E}`,`L${h},${t}`,`L${c},${t}`,`A${c},${c} 0 0,1 0,${m}`,`L0,${v}`,`L${y},${C}`,`L0,${_}`,`Z`].join(` `)}),X.set(`wedgeEllipseCallout`,(e,t,n)=>{let r=BH(n,`adj1`,-20833),i=BH(n,`adj2`,62500),a=e/2,o=t/2,s=a+e*r,c=o+t*i,l=Math.atan2(c-o,s-a),u=.15;return[zH(a,o,a,o,(l+u)*180/Math.PI,(l-u+2*Math.PI)*180/Math.PI),`L${s},${c}`,`Z`].join(` `)}),X.set(`cloudCallout`,(e,t,n)=>{let r=BH(n,`adj1`,-20833),i=BH(n,`adj2`,62500),a=e/2+e*r,o=t/2+t*i,s=X.get(`cloud`)(e,t),c=e/2,l=t/2,u=a-c,d=o-l,f=Math.min(e,t)*.04,p=Math.min(e,t)*.025,m=c+u*.5,h=l+d*.5,g=c+u*.75,_=l+d*.75;return[s,`M${m+f},${h} A${f},${f} 0 1,1 ${m-f},${h} A${f},${f} 0 1,1 ${m+f},${h} Z`,`M${g+p},${_} A${p},${p} 0 1,1 ${g-p},${_} A${p},${p} 0 1,1 ${g+p},${_} Z`].join(` `)}),X.set(`borderCallout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5;return`M0,0 L${e},0 L${e},${t} L0,${t} Z M${i},${r} L${e*(n?.get(`adj4`)??-38333)/1e5},${a}`}),X.set(`cube`,(e,t,n)=>{let r=BH(n,`adj`,25e3),i=Math.min(e,t)*r;return[`M0,${i} L${e-i},${i} L${e-i},${t} L0,${t} Z`,`M0,${i} L${i},0 L${e},0 L${e-i},${i} Z`,`M${e-i},${i} L${e},0 L${e},${t-i} L${e-i},${t} Z`].join(` `)}),X.set(`plus`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(VH(n,`adj`,25e3),0),5e4)/1e5,i=e-r,a=t-r;return[`M0,${r}`,`L${r},${r}`,`L${r},0`,`L${i},0`,`L${i},${r}`,`L${e},${r}`,`L${e},${a}`,`L${i},${a}`,`L${i},${t}`,`L${r},${t}`,`L${r},${a}`,`L0,${a}`,`Z`].join(` `)}),X.set(`heart`,(e,t)=>{let n=e/2,r=t/4,i=t/3,a=e*49/48,o=e*10/48,s=n-a,c=n-o,l=n+o,u=n+a,d=-i;return[`M${n},${r}`,`C${l},${d} ${u},${r} ${n},${t}`,`C${s},${r} ${c},${d} ${n},${r}`,`Z`].join(` `)}),X.set(`cloud`,(e,t)=>{let n=e/43200,r=t/43200,i=[[6753,9190,-11429249,7426832],[5333,7267,-8646143,5396714],[4365,5945,-8748475,5983381],[4857,6595,-7859164,7034504],[5333,7273,-4722533,6541615],[6775,9220,-2776035,7816140],[5785,7867,37501,6842e3],[6752,9215,1347096,6910353],[7720,10543,3974558,4542661],[4360,5918,-16496525,8804134],[4345,5945,-14809710,9151131]],a=3900*n,o=14370*r,s=[`M${a},${o}`],c=3900,l=14370;for(let[e,t,u,d]of i){let i=u/6e4,f=d/6e4,p=i*Math.PI/180,m=Math.atan2(e*Math.sin(p),t*Math.cos(p)),h=(i+f)*Math.PI/180,g=Math.atan2(e*Math.sin(h),t*Math.cos(h)),_=c-e*Math.cos(m),v=l-t*Math.sin(m),y=_+e*Math.cos(g),b=v+t*Math.sin(g),x=y*n,S=b*r,C=e*n,w=t*r,T=Math.abs(f)>180?1:0,E=f>0?1:0;s.push(`A${C},${w} 0 ${T},${E} ${x},${S}`),c=y,l=b,a=x,o=S}return s.push(`Z`),s.join(` `)}),X.set(`frame`,(e,t,n)=>{let r=BH(n,`adj1`,12500),i=Math.min(e,t)*r;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${i},${i} L${i},${t-i} L${e-i},${t-i} L${e-i},${i} Z`].join(` `)}),X.set(`halfFrame`,(e,t,n)=>{let r=n?.get(`adj1`)??33333,i=n?.get(`adj2`)??33333,a=Math.min(e,t),o=a*Math.max(0,Math.min(i,1e5*e/Math.max(a,1)))/1e5,s=t-t*o/Math.max(e,1),c=a*Math.max(0,Math.min(r,1e5*s/Math.max(a,1)))/1e5,l=e-c*e/Math.max(t,1),u=t-o*t/Math.max(e,1);return[`M0,0`,`L${e},0`,`L${l},${c}`,`L${o},${c}`,`L${o},${u}`,`L0,${t}`,`Z`].join(` `)}),X.set(`donut`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(VH(n,`adj`,25e3),0),5e4)/1e5,i=e/2,a=t/2,o=Math.max(0,i-r),s=Math.max(0,a-r);return[`M0,${a}`,`A${i},${a} 0 1,1 ${e},${a}`,`A${i},${a} 0 1,1 0,${a}`,`Z`,`M${r},${a}`,`A${o},${s} 0 1,0 ${e-r},${a}`,`A${o},${s} 0 1,0 ${r},${a}`,`Z`].join(` `)}),X.set(`noSmoking`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(VH(n,`adj`,18750),0),5e4)/1e5,i=e/2,a=t/2,o=e/2,s=t/2,c=i-r,l=a-r,u=Math.atan2(t,e),d=l*Math.cos(u),f=c*Math.sin(u),p=Math.sqrt(d*d+f*f)||1,m=c*l/p,h=r/2,g=Math.atan2(h,m),_=g*2,v=-(Math.PI-_),y=u-g,b=y-Math.PI,x=e=>{let t=l*Math.cos(e),n=c*Math.sin(e),r=Math.sqrt(t*t+n*n)||1,i=c*l/r;return{x:o+i*Math.cos(e),y:s+i*Math.sin(e)}},S=x(y),C=x(b),w=y+v,T=b+v,E=x(w),D=x(T),O=Math.abs(v)>Math.PI?1:0,k=v>0?1:0;return[`M0,${s}`,`A${i},${a} 0 1,1 ${e},${s}`,`A${i},${a} 0 1,1 0,${s}`,`Z`,`M${S.x},${S.y}`,`A${c},${l} 0 ${O},${k} ${E.x},${E.y}`,`Z`,`M${C.x},${C.y}`,`A${c},${l} 0 ${O},${k} ${D.x},${D.y}`,`Z`].join(` `)}),X.set(`blockArc`,(e,t,n)=>{let r=n?.get(`adj1`)??108e5,i=n?.get(`adj2`)??0,a=n?.get(`adj3`)??25e3,o=Math.min(Math.max(r/6e4,0),360),s=Math.min(Math.max(i/6e4,0),360),c=(s-o+360)%360||360,l=o+c,u=s-c,d=e/2,f=t/2,p=Math.min(e,t)*Math.max(0,Math.min(a,5e4))/1e5,m=Math.max(1,d-p),h=Math.max(1,f-p),g=(e,t,n,r,i)=>{let a=i*Math.PI/180;return{x:e+n*Math.cos(a),y:t+r*Math.sin(a)}},_=g(d,f,d,f,o),v=g(d,f,d,f,l),y=g(d,f,m,h,s),b=g(d,f,m,h,u),x=c>180?1:0;return[`M${_.x},${_.y}`,`A${d},${f} 0 ${x},1 ${v.x},${v.y}`,`L${y.x},${y.y}`,`A${m},${h} 0 ${x},0 ${b.x},${b.y}`,`Z`].join(` `)}),X.set(`gear6`,(e,t,n)=>YH(e,t,6,n?.get(`adj1`)??15e3,n?.get(`adj2`)??3526)),X.set(`gear9`,(e,t,n)=>YH(e,t,9,n?.get(`adj1`)??1e4,n?.get(`adj2`)??1763));function YH(e,t,n,r,i){let a=e/2,o=t/2,s=Math.min(e,t),c=n===6?5358:2679,l=Math.min(Math.max(r,0),2e4),u=Math.min(Math.max(i,0),c),d=s*l/1e5,f=s*u/1e5,p=e/2-d,m=t/2-d;if(p<=0||m<=0)return`M0,0 L${e},0 L${e},${t} L0,${t} Z`;let h=d/2+f/2,g=Math.atan2(h,Math.min(p,m)),_=n===6?[330,30,90,150,210,270]:[310,350,30,70,110,150,190,230,270],v=[];for(let e=0;e<_.length;e++){let t=_[e]*Math.PI/180,n=t-g,r=t+g,i=a+p*Math.cos(n),s=o+m*Math.sin(n),c=a+p*Math.cos(r),l=o+m*Math.sin(r),u=c-i,h=l-s,y=Math.sqrt(u*u+h*h),b=Math.cos(t),x=Math.sin(t),S=b,C=x;y>0&&(S=-h/y,C=u/y),S*b+C*x<0&&(S=-S,C=-C);let w=y>0?u/y:0,T=y>0?h/y:0,E=i+w*f,D=s+T*f,O=c-w*f,k=l-T*f,A=E+S*d,j=D+C*d,M=O+S*d,N=k+C*d;if(e===0){let e=_[_.length-1]*Math.PI/180+g,t=a+p*Math.cos(e),n=o+m*Math.sin(e);v.push(`M${t},${n}`),v.push(`A${p},${m} 0 0,1 ${i},${s}`)}if(v.push(`L${A},${j}`),v.push(`L${M},${N}`),v.push(`L${c},${l}`),e<_.length-1){let t=_[e+1]*Math.PI/180-g,n=a+p*Math.cos(t),r=o+m*Math.sin(t);v.push(`A${p},${m} 0 0,1 ${n},${r}`)}}return v.push(`Z`),v.join(` `)}X.set(`mathPlus`,(e,t,n)=>{let r=Math.min(e,t),i=Math.min(Math.max(VH(n,`adj`,23520),0),73490),a=e*73490/2e5,o=t*73490/2e5,s=r*i/2e5,c=e/2,l=t/2,u=c-a,d=c-s,f=c+s,p=c+a,m=l-o,h=l-s,g=l+s,_=l+o;return[`M${u},${h}`,`L${d},${h}`,`L${d},${m}`,`L${f},${m}`,`L${f},${h}`,`L${p},${h}`,`L${p},${g}`,`L${f},${g}`,`L${f},${_}`,`L${d},${_}`,`L${d},${g}`,`L${u},${g}`,`Z`].join(` `)}),X.set(`mathMinus`,(e,t,n)=>{let r=t*Math.min(Math.max(VH(n,`adj1`,23520),0),1e5)/2e5,i=e*73490/2e5,a=e/2,o=t/2,s=a-i,c=a+i,l=o-r,u=o+r;return`M${s},${l} L${c},${l} L${c},${u} L${s},${u} Z`}),X.set(`mathMultiply`,(e,t,n)=>{let r=Math.min(e,t),i=e/2,a=t/2,o=r*Math.min(Math.max(VH(n,`adj1`,23520),0),51965)/1e5,s=Math.atan2(t,e),c=Math.sin(s),l=Math.cos(s),u=c/l,d=Math.sqrt(e*e+t*t),f=d-d*51965/1e5,p=l*f/2,m=c*f/2,h=c*o/2,g=l*o/2,_=p-h,v=m+g,y=p+h,b=m-g,x=(i-y)*u+b,S=e-y,C=e-_,w=(a-v)/u,T=C-w,E=_+w,D=t-v,O=t-b,k=t-x;return[`M${_},${v}`,`L${y},${b}`,`L${i},${x}`,`L${S},${b}`,`L${C},${v}`,`L${T},${a}`,`L${C},${D}`,`L${S},${O}`,`L${i},${k}`,`L${y},${O}`,`L${_},${D}`,`L${E},${a}`,`Z`].join(` `)}),X.set(`mathDivide`,(e,t,n)=>{let r=n?.get(`adj1`)??23520,i=n?.get(`adj2`)??5880,a=n?.get(`adj3`)??11760,o=Math.min(Math.max(r,1e3),36745),s=Math.min((73490-o)/4,36745*e/Math.max(t,1)),c=Math.min(Math.max(a,1e3),s),l=73490-4*c-o,u=Math.min(Math.max(i,0),l),d=e/2,f=t/2,p=t*o/2e5,m=t*u/1e5,h=t*c/1e5,g=e*73490/2e5,_=f-p,v=f+p,y=_-(m+h)-h,b=t-y,x=d-g,S=d+g;return[`M${d+h},${y+h} A${h},${h} 0 1,1 ${d-h},${y+h} A${h},${h} 0 1,1 ${d+h},${y+h} Z`,`M${d+h},${b-h} A${h},${h} 0 1,1 ${d-h},${b-h} A${h},${h} 0 1,1 ${d+h},${b-h} Z`,`M${x},${_} L${S},${_} L${S},${v} L${x},${v} Z`].join(` `)}),X.set(`mathEqual`,(e,t,n)=>{let r=n?.get(`adj1`)??23520,i=n?.get(`adj2`)??11760,a=Math.min(Math.max(r,0),36745),o=1e5-a*2,s=Math.min(Math.max(i,0),Math.max(o,0)),c=t*a/1e5,l=t*s/2e5,u=e*73490/2e5,d=e/2,f=t/2,p=f-l,m=f+l,h=p-c,g=m+c,_=d-u,v=d+u;return[`M${_},${h} L${v},${h} L${v},${p} L${_},${p} Z`,`M${_},${m} L${v},${m} L${v},${g} L${_},${g} Z`].join(` `)}),X.set(`mathNotEqual`,(e,t,n)=>{let r=n?.get(`adj1`)??23520,i=n?.get(`adj2`),a=n?.get(`adj3`)??11760,o=e/2,s=t/2,c=t/2,l=Math.min(Math.max(r,0),5e4),u=(()=>{if(i===void 0)return 110*Math.PI/180;let e=i/6e4*Math.PI/180,t=70*Math.PI/180,n=110*Math.PI/180;return Math.min(Math.max(e,t),n)})(),d=1e5-l*2,f=Math.min(Math.max(a,0),d),p=t*l/1e5,m=t*f/2e5,h=e*73490/2e5,g=o-h,_=o+h,v=s-m,y=s+m,b=v-p,x=y+p,S=u-Math.PI/2,C=c*Math.tan(S),w=Math.hypot(C,c)||1,T=w*p/c,E=T/2,D=o+C-E,O=D-C*b/c,k=D-C*v/c,A=D-C*y/c,j=D-C*x/c,M=D+T,N=O+T,P=k+T,F=A+T,ee=j+T,I=p*c/w,L=S>0?D+I:M,R=S>0?D:M-I,z=p*C/w,te=S>0?z:0,ne=S>0?0:-z,re=e-L,B=e-R,ie=t-te,V=t-ne;return[`M${g},${b}`,`L${O},${b}`,`L${R},${ne}`,`L${L},${te}`,`L${N},${b}`,`L${_},${b}`,`L${_},${v}`,`L${P},${v}`,`L${F},${y}`,`L${_},${y}`,`L${_},${x}`,`L${ee},${x}`,`L${B},${V}`,`L${re},${ie}`,`L${j},${x}`,`L${g},${x}`,`L${g},${y}`,`L${A},${y}`,`L${k},${v}`,`L${g},${v}`,`Z`].join(` `)}),X.set(`round1Rect`,(e,t,n)=>{let r=BH(n,`adj`,16667),i=Math.min(e,t)*r;return[`M0,0`,`L${e-i},0`,`A${i},${i} 0 0,1 ${e},${i}`,`L${e},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`round2SameRect`,(e,t,n)=>{let r=BH(n,`adj1`,16667),i=BH(n,`adj2`,0),a=Math.min(e,t)*r,o=Math.min(e,t)*i;return[`M${a},0`,`L${e-a},0`,`A${a},${a} 0 0,1 ${e},${a}`,`L${e},${t-o}`,`A${o},${o} 0 0,1 ${e-o},${t}`,`L${o},${t}`,`A${o},${o} 0 0,1 0,${t-o}`,`L0,${a}`,`A${a},${a} 0 0,1 ${a},0`,`Z`].join(` `)}),X.set(`round2DiagRect`,(e,t,n)=>{let r=BH(n,`adj1`,16667),i=BH(n,`adj2`,0),a=Math.min(e,t)*r,o=Math.min(e,t)*i;return[`M${a},0`,`L${e},0`,`L${e},${t-o}`,`A${o},${o} 0 0,1 ${e-o},${t}`,`L0,${t}`,`L0,${a}`,`A${a},${a} 0 0,1 ${a},0`,`Z`].join(` `)}),X.set(`snip1Rect`,(e,t,n)=>{let r=BH(n,`adj`,16667),i=Math.min(e,t)*r;return`M0,0 L${e-i},0 L${e},${i} L${e},${t} L0,${t} Z`}),X.set(`snip2SameRect`,(e,t,n)=>{let r=BH(n,`adj1`,16667),i=BH(n,`adj2`,0),a=Math.min(e,t)*r,o=Math.min(e,t)*i;return`M${a},0 L${e-a},0 L${e},${a} L${e},${t-o} L${e-o},${t} L${o},${t} L0,${t-o} L0,${a} Z`}),X.set(`snip2DiagRect`,(e,t,n)=>{let r=Math.min(e,t),i=Math.min(Math.max(n?.get(`adj1`)??0,0),5e4),a=Math.min(Math.max(n?.get(`adj2`)??16667,0),5e4),o=r*i/1e5,s=e-o,c=t-o,l=r*a/1e5;return`M${o},0 L${e-l},0 L${e},${l} L${e},${c} L${s},${t} L${l},${t} L0,${t-l} L0,${o} Z`}),X.set(`snipRoundRect`,(e,t,n)=>{let r=BH(n,`adj1`,16667),i=BH(n,`adj2`,16667),a=Math.min(e,t)*r,o=Math.min(e,t)*i;return[`M${a},0`,`L${e-o},0`,`L${e},${o}`,`L${e},${t}`,`L0,${t}`,`L0,${a}`,`A${a},${a} 0 0,1 ${a},0`,`Z`].join(` `)}),X.set(`bevel`,(e,t,n)=>{let r=BH(n,`adj`,12500),i=Math.min(e,t)*r;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${i},${i} L${i},${t-i} L${e-i},${t-i} L${e-i},${i} Z`,`M0,0 L${e},0 L${e-i},${i} L${i},${i} Z`,`M${e},0 L${e},${t} L${e-i},${t-i} L${e-i},${i} Z`,`M${e},${t} L0,${t} L${i},${t-i} L${e-i},${t-i} Z`,`M0,${t} L0,0 L${i},${i} L${i},${t-i} Z`].join(` `)}),X.set(`foldedCorner`,(e,t,n)=>{let r=BH(n,`adj`,16667),i=Math.min(e,t)*r*.7;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${e-i},${t} L${e},${t} L${e},${t-i}`].join(` `)}),X.set(`sun`,(e,t,n)=>{let r=n?.get(`adj`)??25e3,i=Math.min(Math.max(r,12500),46875),a=5e4-i,o=a*30274/32768,s=a*12540/32768,c=5e4-o,l=5e4-s,u=c*3/4,d=l*3/4,f=u+3662,p=d+3662,m=d+12500,h=1e5-u,g=1e5-f,_=1e5-p,v=1e5-m,y=e/2,b=t/2,x=e*18436/21600,S=t*3163/21600,C=e*3163/21600,w=t*18436/21600,T=(e,t)=>t*e/1e5,E=T(u,e),D=T(f,e),O=T(p,e),k=T(m,e),A=T(h,e),j=T(g,e),M=T(_,e),N=T(v,e),P=T(a,e),F=T(a,t),ee=T(u,t),I=T(f,t),L=T(p,t),R=T(m,t),z=T(h,t),te=T(g,t),ne=T(_,t),re=T(v,t),B=T(i,e);return[`M${e},${b} L${A},${re} L${A},${R} Z`,`M${x},${S} L${j},${L} L${M},${I} Z`,`M${y},0 L${N},${ee} L${k},${ee} Z`,`M${C},${S} L${O},${I} L${D},${L} Z`,`M0,${b} L${E},${R} L${E},${re} Z`,`M${C},${w} L${D},${ne} L${O},${te} Z`,`M${y},${t} L${k},${z} L${N},${z} Z`,`M${x},${w} L${M},${te} L${j},${ne} Z`,`M${B},${b}`,`A${P},${F} 0 1,1 ${B+2*P},${b}`,`A${P},${F} 0 1,1 ${B},${b}`,`Z`].join(` `)}),X.set(`moon`,(e,t,n)=>{if(e<=0||t<=0)return`M0,0 L${e},0 L${e},${t} L0,${t} Z`;let r=Math.min(e,t),i=t/2,a=r*Math.min(Math.max(n?.get(`adj`)??5e4,0),87500)/1e5,o=r-a;if(o<=0)return`M0,0 L${e},0 L${e},${t} L0,${t} Z`;let s=a*e/r,c=(2*r*r-a*a)/o,l=(c-a)*e/r,u=(c/2-a)*i/r,d=(l-s)/2;return[`M${e},${t}`,`A${e},${i} 0 0,1 ${e},0`,`A${d},${u} 0 0,0 ${e},${t}`,`Z`].join(` `)}),X.set(`lightningBolt`,(e,t)=>[`M${e*.3895},${t*0}`,`L${e*0},${t*.1821}`,`L${e*.3425},${t*.3845}`,`L${e*.2265},${t*.4452}`,`L${e*.5497},${t*.6391}`,`L${e*.453},${t*.683}`,`L${e*.9972},${t*.9983}`,`L${e*.6796},${t*.5919}`,`L${e*.7624},${t*.5514}`,`L${e*.5138},${t*.3153}`,`L${e*.5939},${t*.2816}`,`Z`].join(` `)),X.set(`bracketPair`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(VH(n,`adj`,16667),0),5e4)/1e5,i=e-r,a=t-r;return[`M${r},${t}`,`A${r},${r} 0 0,1 0,${a}`,`L0,${r}`,`A${r},${r} 0 0,1 ${r},0`,`M${i},0`,`A${r},${r} 0 0,1 ${e},${r}`,`L${e},${a}`,`A${r},${r} 0 0,1 ${i},${t}`].join(` `)}),X.set(`bracePair`,(e,t,n)=>{let r=BH(n,`adj`,8333),i=Math.min(e,t)*r,a=t/2;return[`M${i*2},0`,`A${i},${i} 0 0,0 ${i},${i}`,`L${i},${a-i}`,`A${i},${i} 0 0,1 0,${a}`,`A${i},${i} 0 0,1 ${i},${a+i}`,`L${i},${t-i}`,`A${i},${i} 0 0,0 ${i*2},${t}`,`M${e-i*2},0`,`A${i},${i} 0 0,1 ${e-i},${i}`,`L${e-i},${a-i}`,`A${i},${i} 0 0,0 ${e},${a}`,`A${i},${i} 0 0,0 ${e-i},${a+i}`,`L${e-i},${t-i}`,`A${i},${i} 0 0,1 ${e-i*2},${t}`].join(` `)}),X.set(`leftBracket`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?5e4*t/r:0,a=r*Math.max(0,Math.min(n?.get(`adj`)??8333,i))/1e5,o=e=>e/6e4,s=(e,t,n,r,i,a)=>{let s=o(i)*Math.PI/180,c=o(a)*Math.PI/180,l=e-n*Math.cos(s),u=t-r*Math.sin(s),d=l+n*Math.cos(s+c),f=u+r*Math.sin(s+c);return{cmd:`A${n},${r} 0 ${Math.abs(o(a))>180?1:0},1 ${d},${f}`,x:d,y:f}},c=s(e,t,e,a,54e5,54e5),l=s(0,a,e,a,108e5,54e5);return[`M${e},${t}`,c.cmd,`L0,${a}`,l.cmd].join(` `)}),X.set(`rightBracket`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?5e4*t/r:0,a=r*Math.max(0,Math.min(n?.get(`adj`)??8333,i))/1e5,o=t-a,s=e=>e/6e4,c=(e,t,n,r,i,a)=>{let o=s(i)*Math.PI/180,c=s(a)*Math.PI/180,l=e-n*Math.cos(o),u=t-r*Math.sin(o),d=l+n*Math.cos(o+c),f=u+r*Math.sin(o+c);return{cmd:`A${n},${r} 0 ${Math.abs(s(a))>180?1:0},1 ${d},${f}`,x:d,y:f}},l=c(0,0,e,a,162e5,54e5),u=c(e,o,e,a,0,54e5);return[`M0,0`,l.cmd,`L${e},${o}`,u.cmd].join(` `)}),X.set(`leftBrace`,(e,t,n)=>{let r=Math.min(e,t),i=Math.max(0,Math.min(n?.get(`adj2`)??5e4,1e5)),a=1e5-i,o=Math.min(a,i)/2,s=r>0?o*t/r:0,c=r*Math.max(0,Math.min(n?.get(`adj1`)??8333,s))/1e5,l=t*i/1e5+c,u=e/2,d=e/2,f=e=>e/6e4,p=(e,t,n,r,i,a)=>{let o=f(i)*Math.PI/180,s=f(a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(o+s),d=l+r*Math.sin(o+s);return{cmd:`A${n},${r} 0 ${Math.abs(f(a))>180?1:0},${a>=0?1:0} ${u},${d}`,x:u,y:d}},m=e,h=t,g=p(m,h,u,c,54e5,54e5);m=g.x,h=g.y;let _=p(d,l,u,c,0,-54e5),v=p(_.x,_.y,u,c,54e5,-54e5),y=p(d,c,u,c,108e5,54e5);return[`M${e},${t}`,g.cmd,`L${d},${l}`,_.cmd,v.cmd,`L${d},${c}`,y.cmd].join(` `)}),X.set(`rightBrace`,(e,t,n)=>{let r=Math.min(e,t),i=Math.max(0,Math.min(n?.get(`adj2`)??5e4,1e5)),a=1e5-i,o=Math.min(a,i)/2,s=r>0?o*t/r:0,c=r*Math.max(0,Math.min(n?.get(`adj1`)??8333,s))/1e5,l=t*i/1e5-c,u=t-c,d=e/2,f=e/2,p=e=>e/6e4,m=(e,t,n,r,i,a)=>{let o=p(i)*Math.PI/180,s=p(a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(o+s),d=l+r*Math.sin(o+s);return{cmd:`A${n},${r} 0 ${Math.abs(p(a))>180?1:0},${a>=0?1:0} ${u},${d}`,x:u,y:d}},h=m(0,0,d,c,162e5,54e5),g=m(f,l,d,c,108e5,-54e5),_=m(g.x,g.y,d,c,162e5,-54e5),v=m(f,u,d,c,0,54e5);return[`M0,0`,h.cmd,`L${f},${l}`,g.cmd,_.cmd,`L${f},${u}`,v.cmd].join(` `)}),X.set(`actionButtonBlank`,(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`);var XH=new Map;XH.set(`actionButtonForwardNext`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.3;return`M${n-i*.5},${r-i} L${n+i},${r} L${n-i*.5},${r+i} Z`}),XH.set(`actionButtonBackPrevious`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.3;return`M${n+i*.5},${r-i} L${n-i},${r} L${n+i*.5},${r+i} Z`}),XH.set(`actionButtonReturn`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28,a=i*.22,o=r+i*.4,s=r-i*.4,c=n-i*.6,l=n+i*.6,u=(o-s)/2;return[`M${c},${o}`,`L${l},${o}`,`A${u},${u} 0 0,1 ${l},${s}`,`L${c+i*.15},${s}`,`L${c+i*.15},${s+a}`,`L${l-a*.3},${s+a}`,`A${u-a},${u-a} 0 0,0 ${l-a*.3},${o-a}`,`L${c},${o-a}`,`Z`,`M${c-i*.3},${s+a/2}`,`L${c+i*.15},${s-i*.2}`,`L${c+i*.15},${s+a+i*.2}`,`Z`].join(` `)}),XH.set(`actionButtonBeginning`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28;return[`M${n-i},${r-i} L${n-i+i*.2},${r-i} L${n-i+i*.2},${r+i} L${n-i},${r+i} Z`,`M${n+i},${r-i} L${n-i+i*.35},${r} L${n+i},${r+i} Z`].join(` `)}),XH.set(`actionButtonEnd`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28;return[`M${n+i-i*.2},${r-i} L${n+i},${r-i} L${n+i},${r+i} L${n+i-i*.2},${r+i} Z`,`M${n-i},${r-i} L${n+i-i*.35},${r} L${n-i},${r+i} Z`].join(` `)}),XH.set(`actionButtonInformation`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28;return[`M${n-i*.1},${r-i*.65} L${n+i*.1},${r-i*.65} L${n+i*.1},${r-i*.4} L${n-i*.1},${r-i*.4} Z`,`M${n-i*.12},${r-i*.2} L${n+i*.12},${r-i*.2} L${n+i*.12},${r+i*.65} L${n-i*.12},${r+i*.65} Z`].join(` `)}),XH.set(`actionButtonDocument`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28,a=i*.7,o=i,s=i*.3;return[`M${n-a},${r-o}`,`L${n+a-s},${r-o} L${n+a},${r-o+s}`,`L${n+a},${r+o} L${n-a},${r+o} Z`,`M${n+a-s},${r-o} L${n+a-s},${r-o+s} L${n+a},${r-o+s}`].join(` `)});function ZH(e,t,n){let r=e.toLowerCase();return(XH.get(r)??XH.get(e))?.(t,n)}X.set(`wave`,(e,t,n)=>{let r=Math.min(Math.max(VH(n,`adj1`,12500),0),2e4),i=Math.min(Math.max(VH(n,`adj2`,0),-1e4),1e4),a=t*r/1e5,o=a*10/3,s=a-o,c=a+o,l=t-a,u=l-o,d=l+o,f=e*i/5e4,p=f<0?0:f,m=f<0?f:0,h=-p,g=e-m,_=h+(g-h)/3,v=(_+g)/2,y=m,b=e+p,x=y+(b-y)/3,S=(x+b)/2;return[`M${h},${a}`,`C${_},${s} ${v},${c} ${g},${a}`,`L${b},${l}`,`C${S},${d} ${x},${u} ${y},${l}`,`Z`].join(` `)}),X.set(`doubleWave`,(e,t,n)=>{let r=Math.min(Math.max(VH(n,`adj1`,6250),0),12500),i=Math.min(Math.max(VH(n,`adj2`,0),-1e4),1e4),a=t*r/1e5,o=a*10/3,s=a-o,c=a+o,l=t-a,u=l-o,d=l+o,f=e*i/5e4,p=f<0?0:f,m=f<0?f:0,h=-p,g=e-m,_=(g-h)/6,v=h+_,y=h+(g-h)/3,b=(h+g)/2,x=b+_,S=(x+g)/2,C=m,w=e+p,T=(w-C)/6,E=C+T,D=C+(w-C)/3,O=(C+w)/2,k=O+T,A=(k+w)/2;return[`M${h},${a}`,`C${v},${s} ${y},${c} ${b},${a}`,`C${x},${s} ${S},${c} ${g},${a}`,`L${w},${l}`,`C${A},${d} ${k},${u} ${O},${l}`,`C${D},${d} ${E},${u} ${C},${l}`,`Z`].join(` `)}),X.set(`irregularSeal1`,(e,t)=>{let n=t=>e*t/21600,r=e=>t*e/21600;return[`M${n(10800)},${r(5800)}`,`L${n(14522)},0`,`L${n(14155)},${r(5325)}`,`L${n(18380)},${r(4457)}`,`L${n(16702)},${r(7315)}`,`L${n(21097)},${r(8137)}`,`L${n(17607)},${r(10475)}`,`L${n(21600)},${r(13290)}`,`L${n(16837)},${r(12942)}`,`L${n(18145)},${r(18095)}`,`L${n(14020)},${r(14457)}`,`L${n(13247)},${r(19737)}`,`L${n(10532)},${r(14935)}`,`L${n(8485)},${r(21600)}`,`L${n(7715)},${r(15627)}`,`L${n(4762)},${r(17617)}`,`L${n(5667)},${r(13937)}`,`L${n(135)},${r(14587)}`,`L${n(3722)},${r(11775)}`,`L0,${r(8615)}`,`L${n(4627)},${r(7617)}`,`L${n(370)},${r(2295)}`,`L${n(7312)},${r(6320)}`,`L${n(8352)},${r(2295)}`,`Z`].join(` `)}),X.set(`irregularSeal2`,(e,t)=>[`M${e*11462/21600},${t*4342/21600}`,`L${e*14790/21600},0`,`L${e*14525/21600},${t*5777/21600}`,`L${e*18007/21600},${t*3172/21600}`,`L${e*16380/21600},${t*6532/21600}`,`L${e},${t*6645/21600}`,`L${e*16985/21600},${t*9402/21600}`,`L${e*18270/21600},${t*11290/21600}`,`L${e*16380/21600},${t*12310/21600}`,`L${e*18877/21600},${t*15632/21600}`,`L${e*14640/21600},${t*14350/21600}`,`L${e*14942/21600},${t*17370/21600}`,`L${e*12180/21600},${t*15935/21600}`,`L${e*11612/21600},${t*18842/21600}`,`L${e*9872/21600},${t*17370/21600}`,`L${e*8700/21600},${t*19712/21600}`,`L${e*7527/21600},${t*18125/21600}`,`L${e*4917/21600},${t}`,`L${e*4805/21600},${t*18240/21600}`,`L${e*1285/21600},${t*17825/21600}`,`L${e*3330/21600},${t*15370/21600}`,`L0,${t*12877/21600}`,`L${e*3935/21600},${t*11592/21600}`,`L${e*1172/21600},${t*8270/21600}`,`L${e*5372/21600},${t*7817/21600}`,`L${e*4502/21600},${t*3625/21600}`,`L${e*8550/21600},${t*6382/21600}`,`L${e*9722/21600},${t*1887/21600}`,`Z`].join(` `)),X.set(`teardrop`,(e,t)=>{let n=e/2,r=t/2;return[`M${e},${r}`,`A${n},${r} 0 1,1 ${n},0`,`L${e},0`,`L${e},${r}`,`Z`].join(` `)}),X.set(`pie`,(e,t,n)=>{let r=n?.get(`adj1`)??0,i=n?.get(`adj2`)??162e5,a=r/6e4%360,o=i/6e4%360,s=((o-a)%360+360)%360;s===0&&a!==o&&(s=360);let c=e/2,l=t/2,u=e=>e*Math.PI/180,d=e=>Math.atan2(Math.sin(u(e))/l,Math.cos(u(e))/c),f=d(a),p=d(o),m=c+c*Math.cos(f),h=l+l*Math.sin(f),g=c+c*Math.cos(p),_=l+l*Math.sin(p),v=s>180?1:0;return[`M${c},${l}`,`L${m},${h}`,`A${c},${l} 0 ${v},1 ${g},${_}`,`Z`].join(` `)}),X.set(`pieWedge`,(e,t)=>[`M0,${t}`,`A${e},${t} 0 0,1 ${e},0`,`L${e},${t}`,`Z`].join(` `)),X.set(`arc`,(e,t,n)=>{let r=n?.get(`adj1`)??162e5,i=n?.get(`adj2`)??0,a=r/6e4,o=i/6e4,s=e/2,c=t/2,l=e=>e*Math.PI/180,u=e=>Math.atan2(Math.sin(l(e))/c,Math.cos(l(e))/s),d=u(a),f=u(o),p=s+s*Math.cos(d),m=c+c*Math.sin(d),h=s+s*Math.cos(f),g=c+c*Math.sin(f),_=((o-a)%360+360)%360;return _===0&&a!==o&&(_=360),`M${p},${m} A${s},${c} 0 ${_>180?1:0},1 ${h},${g}`}),X.set(`chord`,(e,t,n)=>{let r=n?.get(`adj1`)??27e5,i=n?.get(`adj2`)??162e5,a=r/6e4,o=i/6e4,s=e/2,c=t/2,l=e/2,u=t/2,d=e=>e*Math.PI/180,f=e=>Math.atan2(Math.sin(d(e))/u,Math.cos(d(e))/l),p=f(a),m=f(o),h=s+l*Math.cos(p),g=c+u*Math.sin(p),_=s+l*Math.cos(m),v=c+u*Math.sin(m),y=((o-a)%360+360)%360;return y===0&&a!==o&&(y=360),y===0?`M${s-l},${c} A${l},${u} 0 1,1 ${s+l},${c} A${l},${u} 0 1,1 ${s-l},${c} Z`:`M${h},${g} A${l},${u} 0 ${y>180?1:0},1 ${_},${v} Z`}),X.set(`funnel`,(e,t)=>{let n=Math.min(e,t),r=e/2,i=t/4,a=e/2,o=t,s=n/20,c=r-s,l=i-s,u=8*Math.PI/180,d=r*Math.cos(u),f=i*Math.sin(u),p=Math.atan2(f,d),m=Math.PI-p,h=Math.PI+2*p,g=Math.PI-2*p,_=r/4,v=i/4,y=i*Math.cos(m),b=r*Math.sin(m),x=Math.sqrt(y*y+b*b),S=r*i/x,C=S*Math.cos(m),w=S*Math.sin(m),T=a+C,E=i+w,D=m+h,O=i*Math.cos(D),k=r*Math.sin(D),A=Math.sqrt(O*O+k*k),j=r*i/A,M=j*Math.cos(D),N=j*Math.sin(D),P=a+M,F=i+N,ee=o-v,I=v*Math.cos(p),L=_*Math.sin(p),R=Math.sqrt(I*I+L*L),z=_*v/R,te=z*Math.cos(p),ne=z*Math.sin(p),re=a+te,B=ee+ne,ie=p+g,V=v*Math.cos(ie),ae=_*Math.sin(ie),H=Math.sqrt(V*V+ae*ae),U=_*v/H,W=U*Math.cos(ie),oe=U*Math.sin(ie),se=a+W,ce=ee+oe,le=h*180/Math.PI,ue=Math.abs(le)>180?1:0,de=h>0?1:0,fe=g*180/Math.PI,pe=Math.abs(fe)>180?1:0,me=g>0?1:0,he=[`M${T},${E}`,`A${r},${i} 0 ${ue},${de} ${P},${F}`,`L${re},${B}`,`A${_},${v} 0 ${pe},${me} ${se},${ce}`,`Z`].join(` `),G=r-c,ge=r+c;return`${he} ${[`M${G},${i}`,`A${c},${l} 0 1,0 ${ge},${i}`,`A${c},${l} 0 1,0 ${G},${i}`,`Z`].join(` `)}`}),new Map().set(`can`,(e,t)=>{let n=t*.1,r=e/2;return[{path:[`M0,${n}`,`A${r},${n} 0 0,1 ${e},${n}`,`A${r},${n} 0 0,1 0,${n}`,`Z`].join(` `),fillModifier:`lighten`}]});var QH=new Map;function $H(e,t){let n=Math.min(e,t),r=e/2,i=t/2,a=n*3/8;return{ss:n,hc:r,vc:i,dx2:a,g9:i-a,g10:i+a,g11:r-a,g12:r+a,g13:n*3/4}}var eU=(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`;QH.set(`actionButtonForwardNext`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,vc:o}=$H(e,t),s=`M${a},${o} L${i},${n} L${i},${r} Z`;return[{d:`${eU(e,t)} ${s}`,fill:`norm`,stroke:!1},{d:s,fill:`darken`,stroke:!1},{d:s,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonForward`,(e,t)=>{let n=QH.get(`actionButtonForwardNext`);return n?n(e,t):[]}),QH.set(`actionButtonBackPrevious`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,vc:o}=$H(e,t),s=`M${i},${o} L${a},${n} L${a},${r} Z`;return[{d:`${eU(e,t)} ${s}`,fill:`norm`,stroke:!1},{d:s,fill:`darken`,stroke:!1},{d:s,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonBeginning`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,vc:s}=$H(e,t),c=o/8,l=o/4,u=i+c,d=`${`M${i+l},${s} L${a},${n} L${a},${r} Z`} ${`M${u},${n} L${i},${n} L${i},${r} L${u},${r} Z`}`;return[{d:`${eU(e,t)} ${d}`,fill:`norm`,stroke:!1},{d,fill:`darken`,stroke:!1},{d,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonEnd`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,vc:s}=$H(e,t),c=o*3/4,l=o*7/8,u=i+c,d=i+l,f=`${`M${u},${s} L${i},${n} L${i},${r} Z`} ${`M${d},${n} L${a},${n} L${a},${r} L${d},${r} Z`}`;return[{d:`${eU(e,t)} ${f}`,fill:`norm`,stroke:!1},{d:f,fill:`darken`,stroke:!1},{d:f,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonReturn`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,hc:s}=$H(e,t),c=o*7/8,l=o*3/4,u=o*5/8,d=o*3/8,f=o/4,p=o/8,m=n+l,h=n+u,g=n+f,_=i+c,v=i+l,y=i+u,b=i+d,x=i+f,S=[`M${a},${g}`,`L${v},${n}`,`L${s},${g}`,`L${y},${g}`,`L${y},${h}`,`A${p},${p} 0 0,1 ${y-p},${m}`,`L${b},${m}`,`A${p},${p} 0 0,1 ${x},${h}`,`L${x},${g}`,`L${i},${g}`,`L${i},${h}`,`A${d},${d} 0 0,0 ${b},${r}`,`L${s},${r}`,`A${d},${d} 0 0,0 ${s+d},${r-d}`,`L${_},${g}`,`Z`].join(` `),C=[`M${a},${g}`,`L${_},${g}`,`L${_},${h}`,`A${d},${d} 0 0,1 ${i+o/2},${r}`,`L${b},${r}`,`A${d},${d} 0 0,1 ${i},${h}`,`L${i},${g}`,`L${x},${g}`,`L${x},${h}`,`A${p},${p} 0 0,0 ${b},${m}`,`L${s},${m}`,`A${p},${p} 0 0,0 ${y},${h}`,`L${y},${g}`,`L${s},${g}`,`L${v},${n}`,`Z`].join(` `);return[{d:`${eU(e,t)} ${S}`,fill:`norm`,stroke:!1},{d:S,fill:`darken`,stroke:!1},{d:C,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonSound`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,vc:s}=$H(e,t),c=o/8,l=o*5/16,u=o*5/8,d=o*11/16,f=o*3/4,p=o*7/8,m=n+c,h=n+l,g=n+d,_=n+p,v=i+l,y=i+u,b=i+f,x=`M${i},${h} L${i},${g} L${v},${g} L${y},${r} L${y},${n} L${v},${h} Z`,S=`${`M${i},${h} L${v},${h} L${y},${n} L${y},${r} L${v},${g} L${i},${g} Z`} ${`M${b},${h} L${a},${m}`} ${`M${b},${s} L${a},${s}`} ${`M${b},${g} L${a},${_}`}`;return[{d:`${eU(e,t)} ${x}`,fill:`norm`,stroke:!1},{d:x,fill:`darken`,stroke:!1},{d:S,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonInformation`,(e,t)=>{let{g9:n,g10:r,g11:i,g13:a,hc:o,dx2:s}=$H(e,t),c=a/32,l=a*5/16,u=a*3/8,d=a*13/32,f=a*19/32,p=a*11/16,m=a*13/16,h=a*7/8,g=a*3/32,_=n+c,v=n+l,y=n+u,b=n+m,x=n+h,S=i+l,C=i+d,w=i+f,T=i+p,E=`M${o},${n} A${s},${s} 0 1,1 ${o},${r} A${s},${s} 0 1,1 ${o},${n} Z`,D=`${`M${o},${_} A${g},${g} 0 1,1 ${o},${_+g*2} A${g},${g} 0 1,1 ${o},${_} Z`} ${`M${S},${v} L${T},${v} L${T},${y} L${w},${y} L${w},${b} L${T},${b} L${T},${x} L${S},${x} L${S},${b} L${C},${b} L${C},${y} L${S},${y} Z`}`;return[{d:`${eU(e,t)} ${E}`,fill:`norm`,stroke:!1},{d:`${E} ${D}`,fill:`darken`,stroke:!1},{d:D,fill:`lighten`,stroke:!1},{d:`${E} ${D}`,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonHome`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,hc:s,vc:c}=$H(e,t),l=o/16,u=o/8,d=o*3/16,f=o*5/16,p=o*7/16,m=o*9/16,h=o*11/16,g=o*3/4,_=o*13/16,v=o*7/8,y=n+l,b=n+d,x=n+f,S=n+g,C=i+u,w=i+p,T=i+m,E=i+h,D=i+_,O=i+v,k=`M${s},${n} L${i},${c} L${C},${c} L${C},${r} L${O},${r} L${O},${c} L${a},${c} L${D},${x} L${D},${y} L${E},${y} L${E},${b} Z`,A=`M${D},${x} L${D},${y} L${E},${y} L${E},${b} Z`,j=`M${C},${c} L${C},${r} L${w},${r} L${w},${S} L${T},${S} L${T},${r} L${O},${r} L${O},${c} Z`,M=`M${s},${n} L${i},${c} L${a},${c} Z`,N=`M${w},${S} L${T},${S} L${T},${r} L${w},${r} Z`,P=`M${s},${n} L${E},${b} L${E},${y} L${D},${y} L${D},${x} L${a},${c} L${O},${c} L${O},${r} L${C},${r} L${C},${c} L${i},${c} Z M${E},${b} L${D},${x} M${O},${c} L${C},${c} M${w},${r} L${w},${S} L${T},${S} L${T},${r}`;return[{d:`${eU(e,t)} ${k}`,fill:`norm`,stroke:!1},{d:`${A} ${j}`,fill:`darkenLess`,stroke:!1},{d:`${M} ${N}`,fill:`darken`,stroke:!1},{d:P,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonHelp`,(e,t)=>{let{g9:n,g11:r,g13:i,hc:a}=$H(e,t),o=i/7,s=i*3/14,c=i*2/7,l=i*3/7,u=i*4/7,d=i*17/28,f=i*21/28,p=i*11/14,m=i/14,h=i*3/28,g=n+c,_=n+d,v=n+f,y=n+p,b=r+s,x=r+l,S=r+u,C=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=(i+a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(s),d=l+r*Math.sin(s);return{endX:u,endY:d,svg:`A${n},${r} 0 ${Math.abs(a)>180?1:0},${a>0?1:0} ${u},${d}`}},w=b,T=g,E=C(w,T,c,c,180,180);w=E.endX,T=E.endY;let D=C(w,T,o,s,0,90);w=D.endX,T=D.endY;let O=C(w,T,m,h,270,-90),k=C(x,_,o,s,180,90),A=C(k.endX,k.endY,m,h,90,-90),j=C(A.endX,A.endY,o,o,0,-180),M=`M${a},${y} A${h},${h} 0 1,1 ${a},${y+h*2} A${h},${h} 0 1,1 ${a},${y} Z`,N=`${`M${b},${g} ${E.svg} ${D.svg} ${O.svg} L${S},${v} L${x},${v} L${x},${_} ${k.svg} ${A.svg} ${j.svg} Z`} ${M}`;return[{d:`${eU(e,t)} ${N}`,fill:`norm`,stroke:!1},{d:N,fill:`darken`,stroke:!1},{d:N,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonDocument`,(e,t)=>{let n=Math.min(e,t),r=e/2,i=t/2,a=n*3/8,o=n*9/32,s=i-a,c=i+a,l=r-o,u=r+o,d=n*3/16,f=u-d,p=s+d,m=`M${l},${s} L${f},${s} L${u},${p} L${u},${c} L${l},${c} Z`,h=`M${f},${s} L${f},${p} L${u},${p} Z`,g=`${m} M${u},${p} L${f},${p} L${f},${s}`;return[{d:`${eU(e,t)} ${m}`,fill:`norm`,stroke:!1},{d:m,fill:`darkenLess`,stroke:!1},{d:h,fill:`darken`,stroke:!1},{d:g,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`actionButtonMovie`,(e,t)=>{let{g9:n,g11:r,g12:i,g13:a}=$H(e,t),o=a*1455/21600,s=a*1905/21600,c=a*2325/21600,l=a*16155/21600,u=a*17010/21600,d=a*19335/21600,f=a*19725/21600,p=a*20595/21600,m=a*5280/21600,h=a*5730/21600,g=a*6630/21600,_=a*7492/21600,v=a*9067/21600,y=a*9555/21600,b=a*13342/21600,x=a*14580/21600,S=a*15592/21600,C=r+o,w=r+s,T=r+c,E=r+l,D=r+u,O=r+d,k=r+f,A=r+p,j=n+m,M=n+h,N=n+g,P=n+_,F=n+v,ee=n+y,I=n+b,L=n+x,R=n+S,z=[`M${r},${j}`,`L${r},${ee}`,`L${C},${ee}`,`L${w},${F}`,`L${T},${F}`,`L${T},${R}`,`L${D},${R}`,`L${D},${I}`,`L${O},${I}`,`L${A},${L}`,`L${i},${L}`,`L${i},${N}`,`L${A},${N}`,`L${k},${P}`,`L${D},${P}`,`L${D},${N}`,`L${E},${M}`,`L${w},${M}`,`L${C},${j}`,`Z`].join(` `);return[{d:`${eU(e,t)} ${z}`,fill:`norm`,stroke:!1},{d:z,fill:`darken`,stroke:!1},{d:z,fill:`none`,stroke:!0},{d:eU(e,t),fill:`none`,stroke:!0}]}),QH.set(`flowChartOfflineStorage`,(e,t)=>{let n=`M0,0 L${e},0 L${e/2},${t} Z`,r=t*4/5,i=`M${e*2/5},${r} L${e*3/5},${r}`;return[{d:n,fill:`norm`,stroke:!1},{d:i,fill:`none`,stroke:!0},{d:n,fill:`none`,stroke:!0}]}),QH.set(`cube`,(e,t,n)=>{let r=Math.min(Math.max(BH(n,`adj`,25e3),0),.45),i=Math.min(e,t)*r,a=[`M0,${i}`,`L${e-i},${i}`,`L${e-i},${t}`,`L0,${t}`,`Z`].join(` `),o=[`M0,${i}`,`L${i},0`,`L${e},0`,`L${e-i},${i}`,`Z`].join(` `),s=[`M${e-i},${i}`,`L${e},0`,`L${e},${t-i}`,`L${e-i},${t}`,`Z`].join(` `);return[{d:a,fill:`norm`,stroke:!0},{d:o,fill:`lightenLess`,stroke:!0},{d:s,fill:`darkenLess`,stroke:!0}]}),QH.set(`bevel`,(e,t,n)=>{let r=Math.min(Math.max(BH(n,`adj`,12500),0),.45),i=Math.min(e,t)*r,a=`M${i},${i} L${e-i},${i} L${e-i},${t-i} L${i},${t-i} Z`,o=`M0,0 L${e},0 L${e-i},${i} L${i},${i} Z`,s=`M0,${t} L${i},${t-i} L${e-i},${t-i} L${e},${t} Z`,c=`M0,0 L${i},${i} L${i},${t-i} L0,${t} Z`,l=`M${e},0 L${e},${t} L${e-i},${t-i} L${e-i},${i} Z`;return[{d:a,fill:`norm`,stroke:!0},{d:o,fill:`lightenLess`,stroke:!0},{d:l,fill:`darken`,stroke:!0},{d:s,fill:`darken`,stroke:!0},{d:c,fill:`lighten`,stroke:!0}]}),QH.set(`leftRightRibbon`,(e,t,n)=>{let r=Math.min(e,t),i=e/2,a=e/32,o=e/2,s=t/2,c=Math.min(Math.max((n?.get(`adj3`)??16667)/1e5,0),.33333),l=1-c,u=Math.min(Math.max((n?.get(`adj1`)??5e4)/1e5,0),l),d=(i-a)/r,f=r*Math.min(Math.max((n?.get(`adj2`)??5e4)/1e5,0),d),p=e-f,m=t*u/2,h=-t*c/2,g=s+h-m,_=s+m-h,v=g+m,y=t-v,b=v*2,x=t-b,S=b-g,C=t-S,w=c*r/4,T=o-a,E=o+a,D=g+w,O=C-w,k=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=(i+a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(s),d=l+r*Math.sin(s);return{endX:u,endY:d,svg:`A${n},${r} 0 ${Math.abs(a)>180?1:0},${a>0?1:0} ${u},${d}`}},A=k(o,g,a,w,270,180),j=k(A.endX,A.endY,a,w,270,-180),M=k(o,_,a,w,90,90),N=[`M0,${v}`,`L${f},0`,`L${f},${g}`,`L${o},${g}`,A.svg,j.svg,`L${p},${C}`,`L${p},${x}`,`L${e},${y}`,`L${p},${t}`,`L${p},${_}`,`L${o},${_}`,M.svg,`L${T},${S}`,`L${f},${S}`,`L${f},${b}`,`Z`].join(` `),P=k(E,D,a,w,0,90),F=k(P.endX,P.endY,a,w,270,-180),ee=[`M${E},${D}`,P.svg,F.svg,`L${E},${C}`,`Z`].join(` `),I=[N,`M${E},${D} L${E},${C}`,`M${T},${O} L${T},${S}`].join(` `);return[{d:N,fill:`norm`,stroke:!1},{d:ee,fill:`darkenLess`,stroke:!1},{d:I,fill:`none`,stroke:!0}]}),QH.set(`ellipseRibbon`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??5e4,a=n?.get(`adj3`)??12500,o=Math.max(0,Math.min(r,1e5)),s=Math.max(25e3,Math.min(i,75e3)),c=o-(1e5-o)/2,l=Math.max(Math.max(0,c),Math.min(a,o)),u=e*s/2e5,d=e/2-u,f=d+e/8,p=e-f,m=e-d,h=e-e/8,g=t*l/1e5,_=e>0?4*g/e:0,v=t=>_*(t-t*t/e),y=v(f),b=f/2,x=_*b,S=e-b,C=t*o/1e5,w=C-g,T=v(d),E=T+w,D=g+w-E+g+w,O=t-C,k=(g*14/16+O)/2,A=T+O,j=E+O,M=d/2,N=_*M+O,P=e-M,F=D+O,ee=y+w,I=C+C-ee,L=e/2,R=e/8,z=[`M0,0`,`Q${b},${x} ${f},${y}`,`L${d},${E}`,`Q${L},${D} ${m},${E}`,`L${p},${y}`,`Q${S},${x} ${e},0`,`L${h},${k}`,`L${e},${O}`,`Q${P},${N} ${m},${A}`,`L${m},${j}`,`Q${L},${F} ${d},${j}`,`L${d},${A}`,`Q${M},${N} 0,${O}`,`L${R},${k}`,`Z`].join(` `),te=[`M${f},${ee}`,`L${f},${y}`,`L${d},${E}`,`Q${L},${D} ${m},${E}`,`L${p},${y}`,`L${p},${ee}`,`Q${L},${I} ${f},${ee}`,`Z`].join(` `),ne=[`M0,0`,`Q${b},${x} ${f},${y}`,`L${d},${E}`,`Q${L},${D} ${m},${E}`,`L${p},${y}`,`Q${S},${x} ${e},0`,`L${h},${k}`,`L${e},${O}`,`Q${P},${N} ${m},${A}`,`L${m},${j}`,`Q${L},${F} ${d},${j}`,`L${d},${A}`,`Q${M},${N} 0,${O}`,`L${R},${k}`,`Z`,`M${d},${A} L${d},${E}`,`M${m},${E} L${m},${A}`,`M${f},${y} L${f},${ee}`,`M${p},${ee} L${p},${y}`].join(` `);return[{d:z,fill:`norm`,stroke:!1},{d:te,fill:`darkenLess`,stroke:!1},{d:ne,fill:`none`,stroke:!0}]}),QH.set(`ellipseRibbon2`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??5e4,a=n?.get(`adj3`)??12500,o=Math.max(0,Math.min(r,1e5)),s=Math.max(25e3,Math.min(i,75e3)),c=o-(1e5-o)/2,l=Math.max(Math.max(0,c),Math.min(a,o)),u=t,d=e*s/2e5,f=e/2-d,p=f+e/8,m=e-p,h=e-f,g=e-e/8,_=t*l/1e5,v=e>0?4*_/e:0,y=v*(p-p*p/e),b=u-y,x=p/2,S=u-v*x,C=e-x,w=t*o/1e5,T=w-_,E=v*(f-f*f/e),D=E+T,O=u-D,k=_+T-D+_+T,A=u-k,j=u-w,M=u-(_*14/16+j)/2,N=u-(E+j),P=u-(D+j),F=f/2,ee=u-(v*F+j),I=e-F,L=u-(k+j),R=y+T,z=u-R,te=u-(w+w-R),ne=e/2,re=e/8,B=[`M0,${u}`,`Q${x},${S} ${p},${b}`,`L${f},${O}`,`Q${ne},${A} ${h},${O}`,`L${m},${b}`,`Q${C},${S} ${e},${u}`,`L${g},${M}`,`L${e},${w}`,`Q${I},${ee} ${h},${N}`,`L${h},${P}`,`Q${ne},${L} ${f},${P}`,`L${f},${N}`,`Q${F},${ee} 0,${w}`,`L${re},${M}`,`Z`].join(` `),ie=[`M${p},${z}`,`L${p},${b}`,`L${f},${O}`,`Q${ne},${A} ${h},${O}`,`L${m},${b}`,`L${m},${z}`,`Q${ne},${te} ${p},${z}`,`Z`].join(` `),V=[`M0,${u}`,`L${re},${M}`,`L0,${w}`,`Q${F},${ee} ${f},${N}`,`L${f},${P}`,`Q${ne},${L} ${h},${P}`,`L${h},${N}`,`Q${I},${ee} ${e},${w}`,`L${g},${M}`,`L${e},${u}`,`Q${C},${S} ${m},${b}`,`L${h},${O}`,`Q${ne},${A} ${f},${O}`,`L${p},${b}`,`Q${x},${S} 0,${u}`,`Z`,`M${f},${O} L${f},${N}`,`M${h},${N} L${h},${O}`,`M${p},${z} L${p},${b}`,`M${m},${b} L${m},${z}`].join(` `);return[{d:B,fill:`norm`,stroke:!1},{d:ie,fill:`darkenLess`,stroke:!1},{d:V,fill:`none`,stroke:!0}]}),QH.set(`smileyFace`,(e,t,n)=>{let r=e/2,i=t/2,a=e/2,o=t/2,s=n?.get(`adj`)??4653,c=Math.max(-4653,Math.min(s,4653)),l=e*6215/21600,u=e*13135/21600,d=t*7570/21600,f=e*1125/21600,p=t*1125/21600,m=e*4969/21699,h=e*16640/21600,g=t*16515/21600,_=t*c/1e5,v=g-_,y=g+_+t*c/5e4,b=`M${e},${o} A${r},${i} 0 1,1 0,${o} A${r},${i} 0 1,1 ${e},${o} Z`,x=`M${(l+f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${p.toFixed(2)} 0 1,1 ${(l-f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${p.toFixed(2)} 0 1,1 ${(l+f).toFixed(2)},${d.toFixed(2)} Z`,S=`M${(u+f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${p.toFixed(2)} 0 1,1 ${(u-f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${p.toFixed(2)} 0 1,1 ${(u+f).toFixed(2)},${d.toFixed(2)} Z`,C=`M${m.toFixed(2)},${v.toFixed(2)} Q${a.toFixed(2)},${y.toFixed(2)} ${h.toFixed(2)},${v.toFixed(2)}`,w=`M${e},${o} A${r},${i} 0 1,1 0,${o} A${r},${i} 0 1,1 ${e},${o} Z`;return[{d:b,fill:`norm`,stroke:!1},{d:`${x} ${S}`,fill:`darkenLess`,stroke:!1},{d:C,fill:`none`,stroke:!0},{d:w,fill:`none`,stroke:!0}]}),QH.set(`foldedCorner`,(e,t,n)=>{let r=BH(n,`adj`,16667),i=Math.min(e,t)*r*.7,a=`M0,0 L${e},0 L${e},${t-i} L${e-i},${t} L0,${t} Z`,o=`M${e-i},${t} L${e-i},${t-i} L${e},${t-i} Z`,s=`M${e-i},${t} L${e-i},${t-i}`;return[{d:a,fill:`norm`,stroke:!0},{d:o,fill:`darkenLess`,stroke:!1},{d:s,fill:`none`,stroke:!0}]}),QH.set(`can`,(e,t,n)=>{let r=Math.min(e,t),i=5e4*t/r,a=r*Math.min(Math.max(n?.get(`adj`)??25e3,0),i)/2e5,o=t-a,s=e/2,c=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=(i+a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(s),d=l+r*Math.sin(s);return{endX:u,endY:d,svg:`A${n},${r} 0 ${Math.abs(a)>180?1:0},${a>0?1:0} ${u},${d}`}},l=c(0,a,s,a,180,-180),u=c(e,o,s,a,0,180),d=`M0,${a} ${l.svg} L${e},${o} ${u.svg} Z`,f=c(0,a,s,a,180,180),p=c(f.endX,f.endY,s,a,0,180),m=`M0,${a} ${f.svg} ${p.svg} Z`,h=c(e,a,s,a,0,180),g=c(h.endX,h.endY,s,a,180,180),_=c(e,o,s,a,0,180),v=`M${e},${a} ${h.svg} ${g.svg} L${e},${o} ${_.svg} L0,${a}`;return[{d,fill:`norm`,stroke:!1},{d:m,fill:`lighten`,stroke:!1},{d:v,fill:`none`,stroke:!0}]}),QH.set(`curvedrightarrow`,(e,t,n)=>KH(`curvedRightArrow`,e,t,n)),QH.set(`curvedleftarrow`,(e,t,n)=>KH(`curvedLeftArrow`,e,t,n)),QH.set(`curveduparrow`,(e,t,n)=>qH(`curvedUpArrow`,e,t,n)),QH.set(`curveddownarrow`,(e,t,n)=>qH(`curvedDownArrow`,e,t,n)),QH.set(`bordercallout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5,o=e*(n?.get(`adj4`)??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},${r} L${o},${a}`,fill:`none`,stroke:!0}]}),QH.set(`accentcallout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5,o=e*(n?.get(`adj4`)??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a}`,fill:`none`,stroke:!0}]}),QH.set(`accentcallout2`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??112500)/1e5,c=e*(n?.get(`adj6`)??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s}`,fill:`none`,stroke:!0}]}),QH.set(`accentcallout3`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??1e5)/1e5,c=e*(n?.get(`adj6`)??-16667)/1e5,l=t*(n?.get(`adj7`)??112963)/1e5,u=e*(n?.get(`adj8`)??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s} L${u},${l}`,fill:`none`,stroke:!0}]}),QH.set(`callout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5,o=e*(n?.get(`adj4`)??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},${r} L${o},${a}`,fill:`none`,stroke:!0}]}),QH.set(`callout2`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??112500)/1e5,c=e*(n?.get(`adj6`)??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},${r} L${o},${a} L${c},${s}`,fill:`none`,stroke:!0}]}),QH.set(`callout3`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??1e5)/1e5,c=e*(n?.get(`adj6`)??-16667)/1e5,l=t*(n?.get(`adj7`)??112963)/1e5,u=e*(n?.get(`adj8`)??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},${r} L${o},${a} L${c},${s} L${u},${l}`,fill:`none`,stroke:!0}]}),QH.set(`bordercallout2`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??112500)/1e5,c=e*(n?.get(`adj6`)??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s}`,fill:`none`,stroke:!0}]}),QH.set(`bordercallout3`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??1e5)/1e5,c=e*(n?.get(`adj6`)??-16667)/1e5,l=t*(n?.get(`adj7`)??112963)/1e5,u=e*(n?.get(`adj8`)??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s} L${u},${l}`,fill:`none`,stroke:!0}]}),QH.set(`accentbordercallout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5,o=e*(n?.get(`adj4`)??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a}`,fill:`none`,stroke:!0}]}),QH.set(`accentbordercallout2`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??112500)/1e5,c=e*(n?.get(`adj6`)??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s}`,fill:`none`,stroke:!0}]}),QH.set(`accentbordercallout3`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??1e5)/1e5,c=e*(n?.get(`adj6`)??-16667)/1e5,l=t*(n?.get(`adj7`)??112963)/1e5,u=e*(n?.get(`adj8`)??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s} L${u},${l}`,fill:`none`,stroke:!0}]}),QH.set(`chartx`,(e,t)=>[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M0,0 L${e},${t} M${e},0 L0,${t}`,fill:`none`,stroke:!0}]),QH.set(`chartplus`,(e,t)=>{let n=e/2,r=t/2;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${n},0 L${n},${t} M0,${r} L${e},${r}`,fill:`none`,stroke:!0}]}),QH.set(`chartstar`,(e,t)=>{let n=e/2;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M0,0 L${e},${t} M${e},0 L0,${t} M${n},0 L${n},${t}`,fill:`none`,stroke:!0}]});function Z(e,t,n,r,i,a){let o=i*Math.PI/180,s=e-n*Math.cos(o),c=t-r*Math.sin(o),l=(i+a)*Math.PI/180,u=s+n*Math.cos(l),d=c+r*Math.sin(l);return{svg:`A${n},${r} 0 ${Math.abs(a)>180?1:0},${a>=0?1:0} ${u},${d}`,x:u,y:d}}QH.set(`ribbon`,(e,t,n)=>{let r=n?.get(`adj1`)??16667,i=n?.get(`adj2`)??5e4,a=Math.min(Math.max(r,0),33333),o=Math.min(Math.max(i,25e3),75e3),s=e/2,c=e/8,l=e/32,u=e-c,d=e*o/2e5,f=s-d,p=s+d,m=f+l,h=p-l,g=f+c,_=p-c,v=g-l,y=_+l,b=t*a/2e5,x=t*a/1e5,S=t-x,C=S/2,w=t*a/4e5,T=t-w,E=x-w,D,O,k,A=[];D=0,O=0,A.push(`M0,0`),A.push(`L${v},0`),D=v,O=0,k=Z(D,O,l,w,270,180),A.push(k.svg),D=k.x,O=k.y,A.push(`L${m},${b}`),D=m,O=b,k=Z(D,O,l,w,270,-180),A.push(k.svg),D=k.x,O=k.y,A.push(`L${h},${x}`),D=h,O=x,k=Z(D,O,l,w,90,-180),A.push(k.svg),D=k.x,O=k.y,A.push(`L${y},${b}`),D=y,O=b,k=Z(D,O,l,w,90,180),A.push(k.svg),D=k.x,O=k.y,A.push(`L${e},0`),A.push(`L${u},${C}`),A.push(`L${e},${S}`),A.push(`L${p},${S}`),A.push(`L${p},${T}`),D=p,O=T,k=Z(D,O,l,w,0,90),A.push(k.svg),D=k.x,O=k.y,A.push(`L${m},${t}`),D=m,O=t,k=Z(D,O,l,w,90,90),A.push(k.svg),D=k.x,O=k.y,A.push(`L${f},${S}`),A.push(`L0,${S}`),A.push(`L${c},${C}`),A.push(`Z`);let j=[];D=g,O=w,j.push(`M${D},${O}`),k=Z(D,O,l,w,0,90),j.push(k.svg),D=k.x,O=k.y,j.push(`L${m},${b}`),D=m,O=b,k=Z(D,O,l,w,270,-180),j.push(k.svg),D=k.x,O=k.y,j.push(`L${g},${x}`),j.push(`Z`),D=_,O=w,j.push(`M${D},${O}`),k=Z(D,O,l,w,180,-90),j.push(k.svg),D=k.x,O=k.y,j.push(`L${h},${b}`),D=h,O=b,k=Z(D,O,l,w,270,180),j.push(k.svg),D=k.x,O=k.y,j.push(`L${_},${x}`),j.push(`Z`);let M=[];return D=0,O=0,M.push(`M0,0`),M.push(`L${v},0`),D=v,O=0,k=Z(D,O,l,w,270,180),M.push(k.svg),D=k.x,O=k.y,M.push(`L${m},${b}`),D=m,O=b,k=Z(D,O,l,w,270,-180),M.push(k.svg),D=k.x,O=k.y,M.push(`L${h},${x}`),D=h,O=x,k=Z(D,O,l,w,90,-180),M.push(k.svg),D=k.x,O=k.y,M.push(`L${y},${b}`),D=y,O=b,k=Z(D,O,l,w,90,180),M.push(k.svg),D=k.x,O=k.y,M.push(`L${e},0`),M.push(`L${u},${C}`),M.push(`L${e},${S}`),M.push(`L${p},${S}`),M.push(`L${p},${T}`),D=p,O=T,k=Z(D,O,l,w,0,90),M.push(k.svg),D=k.x,O=k.y,M.push(`L${m},${t}`),D=m,O=t,k=Z(D,O,l,w,90,90),M.push(k.svg),D=k.x,O=k.y,M.push(`L${f},${S}`),M.push(`L0,${S}`),M.push(`L${c},${C}`),M.push(`Z`),M.push(`M${g},${w} L${g},${x}`),M.push(`M${_},${x} L${_},${w}`),M.push(`M${f},${S} L${f},${E}`),M.push(`M${p},${E} L${p},${S}`),[{d:A.join(` `),fill:`norm`,stroke:!1},{d:j.join(` `),fill:`darkenLess`,stroke:!1},{d:M.join(` `),fill:`none`,stroke:!0}]}),QH.set(`ribbon2`,(e,t,n)=>{let r=n?.get(`adj1`)??16667,i=n?.get(`adj2`)??5e4,a=Math.min(Math.max(r,0),33333),o=Math.min(Math.max(i,25e3),75e3),s=e/2,c=e/8,l=e/32,u=e-c,d=e*o/2e5,f=s-d,p=s+d,m=f+l,h=p-l,g=f+c,_=p-c,v=g-l,y=_+l,b=t-t*a/2e5,x=t*a/1e5,S=t-x,C=x,w=(C+t)/2,T=t*a/4e5,E=t-T,D=b-T,O,k,A,j=[];j.push(`M0,${t}`),j.push(`L${v},${t}`),O=v,k=t,A=Z(O,k,l,T,90,-180),j.push(A.svg),O=A.x,k=A.y,j.push(`L${m},${b}`),O=m,k=b,A=Z(O,k,l,T,90,180),j.push(A.svg),O=A.x,k=A.y,j.push(`L${h},${S}`),O=h,k=S,A=Z(O,k,l,T,270,180),j.push(A.svg),O=A.x,k=A.y,j.push(`L${y},${b}`),O=y,k=b,A=Z(O,k,l,T,270,-180),j.push(A.svg),O=A.x,k=A.y,j.push(`L${e},${t}`),j.push(`L${u},${w}`),j.push(`L${e},${C}`),j.push(`L${p},${C}`),j.push(`L${p},${T}`),O=p,k=T,A=Z(O,k,l,T,0,-90),j.push(A.svg),O=A.x,k=A.y,j.push(`L${m},0`),O=m,k=0,A=Z(O,k,l,T,270,-90),j.push(A.svg),O=A.x,k=A.y,j.push(`L${f},${C}`),j.push(`L0,${C}`),j.push(`L${c},${w}`),j.push(`Z`);let M=[];O=g,k=E,M.push(`M${O},${k}`),A=Z(O,k,l,T,0,-90),M.push(A.svg),O=A.x,k=A.y,M.push(`L${m},${b}`),O=m,k=b,A=Z(O,k,l,T,90,180),M.push(A.svg),O=A.x,k=A.y,M.push(`L${g},${S}`),M.push(`Z`),O=_,k=E,M.push(`M${O},${k}`),A=Z(O,k,l,T,180,90),M.push(A.svg),O=A.x,k=A.y,M.push(`L${h},${b}`),O=h,k=b,A=Z(O,k,l,T,90,-180),M.push(A.svg),O=A.x,k=A.y,M.push(`L${_},${S}`),M.push(`Z`);let N=[];return N.push(`M0,${t}`),N.push(`L${c},${w}`),N.push(`L0,${C}`),N.push(`L${f},${C}`),N.push(`L${f},${T}`),O=f,k=T,A=Z(O,k,l,T,180,90),N.push(A.svg),O=A.x,k=A.y,N.push(`L${h},0`),O=h,k=0,A=Z(O,k,l,T,270,90),N.push(A.svg),O=A.x,k=A.y,N.push(`L${p},${C}`),N.push(`L${e},${C}`),N.push(`L${u},${w}`),N.push(`L${e},${t}`),N.push(`L${y},${t}`),O=y,k=t,A=Z(O,k,l,T,90,180),N.push(A.svg),O=A.x,k=A.y,N.push(`L${h},${b}`),O=h,k=b,A=Z(O,k,l,T,90,-180),N.push(A.svg),O=A.x,k=A.y,N.push(`L${m},${S}`),O=m,k=S,A=Z(O,k,l,T,270,-180),N.push(A.svg),O=A.x,k=A.y,N.push(`L${v},${b}`),O=v,k=b,A=Z(O,k,l,T,270,180),N.push(A.svg),O=A.x,k=A.y,N.push(`Z`),N.push(`M${g},${S} L${g},${E}`),N.push(`M${_},${E} L${_},${S}`),N.push(`M${f},${D} L${f},${C}`),N.push(`M${p},${C} L${p},${D}`),[{d:j.join(` `),fill:`norm`,stroke:!1},{d:M.join(` `),fill:`darkenLess`,stroke:!1},{d:N.join(` `),fill:`none`,stroke:!0}]}),QH.set(`horizontalscroll`,(e,t,n)=>{let r=n?.get(`adj`)??12500,i=Math.min(e,t)*Math.min(Math.max(r,0),25e3)/1e5,a=i/2,o=i/4,s=i+a,c=i+i,l=t-i,u=t-a,d=l-a,f=e-i,p=e-a,m=[],h,g;h=e,g=a,m.push(`M${h},${g}`);let _=Z(h,g,a,a,0,90);m.push(_.svg),h=_.x,g=_.y,m.push(`L${p},${a}`),_=Z(p,a,o,o,0,180),m.push(_.svg),h=_.x,g=_.y,m.push(`L${f},${i}`),m.push(`L${a},${i}`),h=a,g=i,_=Z(h,g,a,a,270,-90),m.push(_.svg),h=_.x,g=_.y,m.push(`L0,${u}`),h=0,g=u,_=Z(h,g,a,a,180,-180),m.push(_.svg),h=_.x,g=_.y,m.push(`L${i},${l}`),m.push(`L${p},${l}`),h=p,g=l,_=Z(h,g,a,a,90,-90),m.push(_.svg),m.push(`Z`),h=a,g=c,m.push(`M${h},${g}`),_=Z(h,g,a,a,90,-90),m.push(_.svg),h=_.x,g=_.y,_=Z(h,g,o,o,0,-180),m.push(_.svg),m.push(`Z`);let v=[];h=a,g=c,v.push(`M${h},${g}`),_=Z(h,g,a,a,90,-90),v.push(_.svg),h=_.x,g=_.y,_=Z(h,g,o,o,0,-180),v.push(_.svg),v.push(`Z`),h=p,g=i,v.push(`M${h},${g}`),_=Z(h,g,a,a,90,-270),v.push(_.svg),h=_.x,g=_.y,_=Z(h,g,o,o,180,-180),v.push(_.svg),v.push(`Z`);let y=[];return h=0,g=s,y.push(`M${h},${g}`),_=Z(h,g,a,a,180,90),y.push(_.svg),h=_.x,g=_.y,y.push(`L${f},${i}`),y.push(`L${f},${a}`),h=f,g=a,_=Z(h,g,a,a,180,180),y.push(_.svg),h=_.x,g=_.y,y.push(`L${e},${d}`),h=e,g=d,_=Z(h,g,a,a,0,90),y.push(_.svg),h=_.x,g=_.y,y.push(`L${i},${l}`),y.push(`L${i},${u}`),h=i,g=u,_=Z(h,g,a,a,0,180),y.push(_.svg),y.push(`Z`),y.push(`M${f},${i}`),y.push(`L${p},${i}`),h=p,g=i,_=Z(h,g,a,a,90,-90),y.push(_.svg),y.push(`M${p},${i}`),y.push(`L${p},${a}`),h=p,g=a,_=Z(h,g,o,o,0,180),y.push(_.svg),y.push(`M${a},${c}`),y.push(`L${a},${s}`),h=a,g=s,_=Z(h,g,o,o,180,180),y.push(_.svg),h=_.x,g=_.y,_=Z(h,g,a,a,0,180),y.push(_.svg),y.push(`M${i},${s}`),y.push(`L${i},${l}`),[{d:m.join(` `),fill:`norm`,stroke:!1},{d:v.join(` `),fill:`darkenLess`,stroke:!1},{d:y.join(` `),fill:`none`,stroke:!0}]}),QH.set(`verticalscroll`,(e,t,n)=>{let r=n?.get(`adj`)??12500,i=Math.min(e,t)*Math.min(Math.max(r,0),25e3)/1e5,a=i/2,o=i/4,s=i+a,c=i+i,l=e-i,u=e-a,d=t-i,f=t-a,p=[],m,h;m=a,h=t,p.push(`M${m},${h}`);let g=Z(m,h,a,a,90,-90);p.push(g.svg),m=g.x,h=g.y,p.push(`L${a},${f}`),m=a,h=f,g=Z(m,h,o,o,90,-180),p.push(g.svg),m=g.x,h=g.y,p.push(`L${i},${d}`),p.push(`L${i},${a}`),m=i,h=a,g=Z(m,h,a,a,180,90),p.push(g.svg),m=g.x,h=g.y,p.push(`L${u},0`),m=u,h=0,g=Z(m,h,a,a,270,180),p.push(g.svg),m=g.x,h=g.y,p.push(`L${l},${i}`),p.push(`L${l},${f}`),m=l,h=f,g=Z(m,h,a,a,0,90),p.push(g.svg),p.push(`Z`),m=c,h=a,p.push(`M${m},${h}`),g=Z(m,h,a,a,0,90),p.push(g.svg),m=g.x,h=g.y,g=Z(m,h,o,o,90,180),p.push(g.svg),p.push(`Z`);let _=[];m=c,h=a,_.push(`M${m},${h}`),g=Z(m,h,a,a,0,90),_.push(g.svg),m=g.x,h=g.y,g=Z(m,h,o,o,90,180),_.push(g.svg),_.push(`Z`),m=i,h=f,_.push(`M${m},${h}`),g=Z(m,h,a,a,0,270),_.push(g.svg),m=g.x,h=g.y,g=Z(m,h,o,o,270,180),_.push(g.svg),_.push(`Z`);let v=[];return m=i,h=d,v.push(`M${m},${h}`),v.push(`L${i},${a}`),m=i,h=a,g=Z(m,h,a,a,180,90),v.push(g.svg),m=g.x,h=g.y,v.push(`L${u},0`),m=u,h=0,g=Z(m,h,a,a,270,180),v.push(g.svg),m=g.x,h=g.y,v.push(`L${l},${i}`),v.push(`L${l},${f}`),m=l,h=f,g=Z(m,h,a,a,0,90),v.push(g.svg),m=g.x,h=g.y,v.push(`L${a},${t}`),m=a,h=t,g=Z(m,h,a,a,90,180),v.push(g.svg),v.push(`Z`),v.push(`M${s},0`),m=s,h=0,g=Z(m,h,a,a,270,180),v.push(g.svg),m=g.x,h=g.y,g=Z(m,h,o,o,90,180),v.push(g.svg),m=g.x,h=g.y,v.push(`L${c},${a}`),v.push(`M${l},${i}`),v.push(`L${s},${i}`),v.push(`M${a},${d}`),m=a,h=d,g=Z(m,h,o,o,270,180),v.push(g.svg),m=g.x,h=g.y,v.push(`L${i},${f}`),v.push(`M${a},${t}`),m=a,h=t,g=Z(m,h,a,a,90,-90),v.push(g.svg),m=g.x,h=g.y,v.push(`L${i},${d}`),[{d:p.join(` `),fill:`norm`,stroke:!1},{d:_.join(` `),fill:`darkenLess`,stroke:!1},{d:v.join(` `),fill:`none`,stroke:!0}]});function tU(e,t,n,r){let i=e.toLowerCase(),a=QH.get(i)??QH.get(e);return a?a(t,n,r):null}function nU(e,t,n,r){if(e===`textNoShape`||e.toLowerCase()===`textnoshape`)return``;let i=e.toLowerCase(),a=X.get(i)??X.get(e);return a?a(t,n,r):(console.warn(`Unknown preset shape: "${e}", falling back to rectangle`),`M0,0 L${t},0 L${t},${n} L0,${n} Z`)}var rU=1e5;function iU(e,t,n,r,i){if(!e||!r&&!i)return e;let a=aU(e);if(!a)return e;let o=[],s=0,c=e=>{if(s+e>a.length)return null;let t=a.slice(s,s+e).map(Number);return t.some(e=>!Number.isFinite(e))?null:(s+=e,t)},l=(e,a)=>{let o=r?t-e:e,s=i?n-a:a;return`${dU(o)},${dU(s)}`};for(;s<a.length;){let u=a[s++];if(u===`Z`||u===`z`){o.push(`Z`);continue}let d=u===`C`?6:u===`Q`?4:u===`A`?7:2;if(u!==`M`&&u!==`L`&&u!==`C`&&u!==`Q`&&u!==`A`)return e;let f=c(d);if(!f)return e;if(u===`M`||u===`L`)o.push(`${u}${l(f[0],f[1])}`);else if(u===`C`)o.push(`C${l(f[0],f[1])} ${l(f[2],f[3])} ${l(f[4],f[5])}`);else if(u===`Q`)o.push(`Q${l(f[0],f[1])} ${l(f[2],f[3])}`);else{let[e,a,s,c,l,u,d]=f,p=r===i?l:l?0:1,m=r?t-u:u,h=i?n-d:d;o.push(`A${dU(e)},${dU(a)} ${dU(r===i?s:-s)} ${c},${p} ${dU(m)},${dU(h)}`)}}return o.join(` `)}function aU(e,t=rU){if(!e||e.length>t)return null;let n=[],r=0;for(;r<e.length;){let t=e.charCodeAt(r);if(pU(t)){r++;continue}if(hU(t)){n.push(e[r++]);continue}let i=fU(e,r);if(i>r){n.push(e.slice(r,i)),r=i;continue}r++}return n}function oU(e){let t=aU(e);if(!t||t.length!==6||t[0]!==`M`||t[3]!==`L`)return null;let n=uU(t,1),r=uU(t,4);return n&&r?{start:n,end:r}:null}function sU(e){let t=aU(e);if(!t||t.length<3||t[0]!==`M`)return null;let n=[],r=1,i=uU(t,r);if(!i)return null;for(n.push(i),r+=2;r<t.length;){if(t[r++]!==`L`)return null;let e=uU(t,r);if(!e)return null;n.push(e),r+=2}return n.length>=2?n:null}function cU(e){let t=aU(e);if(!t||t.length<8||t[0]!==`M`)return null;let n=uU(t,1);if(!n)return null;let r=[],i=3;for(;i<t.length;){if(t[i++]!==`C`)return null;let e=uU(t,i),n=uU(t,i+2),a=uU(t,i+4);if(!e||!n||!a)return null;r.push({c1:e,c2:n,end:a}),i+=6}return r.length>0?{start:n,segments:r}:null}function lU(e){let t=aU(e);if(!t||t.length!==11||t[0]!==`M`||t[3]!==`A`)return null;let n=uU(t,1),r=Number(t[4]),i=Number(t[5]),a=Number(t[6]),o=Number(t[7])?1:0,s=Number(t[8])?1:0,c=uU(t,9);return!n||!c||!Number.isFinite(r)||!Number.isFinite(i)||!Number.isFinite(a)?null:{start:n,arc:{rx:r,ry:i,xAxisRotation:a,largeArc:o,sweep:s,end:c}}}function uU(e,t){if(t+1>=e.length)return null;let n=Number(e[t]),r=Number(e[t+1]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{x:n,y:r}}function dU(e){return String(Number.isInteger(e)?e:Number(e.toFixed(6)))}function fU(e,t){let n=t;(e[n]===`-`||e[n]===`+`)&&n++;let r=0;for(;mU(e.charCodeAt(n));)n++,r++;if(e[n]===`.`)for(n++;mU(e.charCodeAt(n));)n++,r++;if(r===0)return t;if(e[n]===`e`||e[n]===`E`){let t=n;n++,(e[n]===`-`||e[n]===`+`)&&n++;let r=0;for(;mU(e.charCodeAt(n));)n++,r++;if(r===0)return t}return n}function pU(e){return e===44||e===32||e===9||e===10||e===13||e===12}function mU(e){return e>=48&&e<=57}function hU(e){return e>=65&&e<=90||e>=97&&e<=122}function gU(e){for(let t of e.paragraphs)for(let e of t.runs)if(e.text!=null&&e.text.trim().length>0)return!0;return!1}function _U(e){let t=0;for(let n of e.paragraphs)if(n.runs.some(e=>e.text!=null&&e.text.length>0)&&(t++,t>1||n.runs.some(e=>e.text===`
24
+ `)))return!1;return t===1}function vU(e){let t=e.paragraphs.filter(e=>e.runs.some(e=>e.text!=null&&e.text.length>0));return t.length===0?!1:t.every(e=>e.properties?.attr(`algn`)===`ctr`)}var yU=36;function bU(e){let t=e.paragraphs.flatMap(e=>e.runs.map(e=>e.text??``)).join(``).replace(/\s+/g,``);return Array.from(t).length}function xU(e){let t=bU(e);return t>0&&t<=yU}function SU(e){return e.paragraphs.filter(e=>e.runs.some(e=>e.text!=null&&e.text.length>0)).length}function CU(e){return e.paragraphs.some(e=>{let t=e.properties;return t?.child(`lnSpc`).exists()||t?.child(`spcBef`).exists()||t?.child(`spcAft`).exists()})}function wU(e,t){let n=[t.properties,e.listStyle?.child(`lvl${t.level+1}pPr`),e.listStyle?.child(`defPPr`)];for(let e of n)if(e!=null&&e.exists()){if(e.child(`buNone`).exists())return!1;if(e.child(`buChar`).exists()||e.child(`buAutoNum`).exists()||e.child(`buBlip`).exists())return!0}return!1}function TU(e){return e.paragraphs.some(t=>t.runs.some(e=>e.text!=null&&e.text.length>0)&&wU(e,t))}function EU(e){return e?.type===`title`||e?.type===`ctrTitle`}function DU(e,t){e.style.transform=`${e.style.transform||``} ${t}`.trim()}function OU(e,t){let n=e.style.filter.trim();e.style.filter=n?`${n} ${t}`:t}function kU(e){return String(Number.isInteger(e)?e:Number(e.toFixed(6)))}function AU(e,t){let n=Y(e.numAttr(`rad`)??0);if(!(n>0))return;let{color:r,alpha:i}=OB(e,t);if(!r||i<=0)return;let{r:a,g:o,b:s}=Jz(r.startsWith(`#`)?r:`#${r}`);return`drop-shadow(0px 0px ${n.toFixed(1)}px rgba(${a},${o},${s},${i.toFixed(3)}))`}function jU(e,t,n){let r=AU(t,n);r&&OU(e,r)}function MU(e,t){return nV(e,t)}function NU(e,t,n=!1,r=`vertical-rl`){e.style.writingMode=r,e.style.justifyContent=`center`,e.style.alignItems=t===`b`?`flex-end`:t===`ctr`?`center`:`flex-start`,n&&(e.style.textOrientation=`upright`,e.style.whiteSpace=`normal`)}var PU=1.1,FU=1.25,IU=1,LU=.9,RU=.9;function zU(e){let t=(e.bodyProperties?.child(`prstTxWarp`))?.attr(`prst`);return t===`textArchDown`||t===`textArchUp`?t:null}function BU(e){let t=``,n=0;for(let r of e.paragraphs){let e=r.runs.filter(e=>e.text!=null&&e.text.length>0);if(e.length!==0){if(n++,n>1||e.some(e=>e.text===`
25
+ `))return null;t+=e.map(e=>e.text).join(``)}}return t.length>0?t:null}function VU(e){for(let t of e.paragraphs)for(let e of t.runs)if(e.text!=null&&e.text.length>0)return e.properties}function HU(e,t,n){let r=Math.min(Math.max(t*.04,4),18),i=r,a=Math.max(i,t-r);if(e===`textArchDown`){let e=n*.36;return`M${i},${e} Q${t/2},${n*.9} ${a},${e}`}let o=n*.66;return`M${i},${o} Q${t/2},${n*.08} ${a},${o}`}function UU(e,t){if(!e.textBody)return null;let n=zU(e.textBody);if(!n)return null;let r=BU(e.textBody);if(!r)return null;let i=VU(e.textBody),a=i?.numAttr(`sz`)===void 0?12:i.numAttr(`sz`)/100,o=VV([i?.child(`latin`).attr(`typeface`),i?.child(`ea`).attr(`typeface`),i?.child(`cs`).attr(`typeface`)],t,[i?.attr(`lang`),i?.attr(`altLang`)]),s=LR(i?.attr(`b`))?`bold`:void 0,c=i?.child(`solidFill`),l=c!=null&&c.exists()?AB(c,t):`#000000`,u=`http://www.w3.org/2000/svg`,d=document.createElementNS(u,`svg`);d.setAttribute(`viewBox`,`0 0 ${e.size.w} ${e.size.h}`),d.setAttribute(`width`,String(e.size.w)),d.setAttribute(`height`,String(e.size.h)),d.style.position=`absolute`,d.style.left=`0`,d.style.top=`0`,d.style.overflow=`visible`;let f=document.createElementNS(u,`defs`),p=document.createElementNS(u,`path`),m=`text-warp-${++XU}`;p.setAttribute(`id`,m),p.setAttribute(`d`,HU(n,e.size.w,e.size.h)),p.setAttribute(`fill`,`none`),f.appendChild(p),d.appendChild(f);let h=document.createElementNS(u,`text`);h.setAttribute(`font-size`,`${a}pt`),o.length>0&&h.setAttribute(`font-family`,YV(o)),s&&h.setAttribute(`font-weight`,s),h.setAttribute(`fill`,l),h.setAttribute(`dominant-baseline`,`middle`);let g=document.createElementNS(u,`textPath`);return g.setAttribute(`href`,`#${m}`),g.setAttribute(`startOffset`,`50%`),g.setAttribute(`text-anchor`,`middle`),g.setAttribute(`xml:space`,`preserve`),g.textContent=r,h.appendChild(g),d.appendChild(h),d}function WU(e,t){let n=e.child(`blip`),r=n.attr(`embed`)??n.attr(`r:embed`),i=n.attr(`link`)??n.attr(`r:link`),a=r??i;if(!a)return null;let o=t.slide.rels.get(a);if(!o)return null;if(_R(o.targetMode))return eV(o.target)?o.target:null;let s=XL(o.target,t.presentation.media);if(!s)return null;let{mediaPath:c,data:l}=s;return QL(c,l,t.mediaUrlCache)}async function GU(e,t){let n=e.child(`blip`),r=n.attr(`embed`)??n.attr(`r:embed`),i=n.attr(`link`)??n.attr(`r:link`),a=r??i;if(!a)return null;let o=t.slide.rels.get(a);if(!o)return null;if(_R(o.targetMode))return eV(o.target)?o.target:null;let s=await ZL(o.target,t.presentation.media,t.presentation.mediaResolver);if(!s)return null;let{mediaPath:c,data:l}=s;return QL(c,l,t.mediaUrlCache)}function KU(e,t){return(e.numAttr(t)??0)/1e3}function qU(e,t){let n=e.child(`stretch`);if(!n.exists())return{x:0,y:0,w:t.w,h:t.h,preserveAspectRatio:`xMidYMid slice`};let r=n.child(`fillRect`),i=r.exists()?KU(r,`l`):0,a=r.exists()?KU(r,`t`):0,o=r.exists()?KU(r,`r`):0,s=r.exists()?KU(r,`b`):0;return{x:t.w*(i/100),y:t.h*(a/100),w:t.w*((100-i-o)/100),h:t.h*((100-a-s)/100),preserveAspectRatio:`none`}}function JU(e,t,n,r,i,a,o,s){let c=`shape-clip-${++XU}`,l=document.createElementNS(e,`clipPath`);l.setAttribute(`id`,c);let u=document.createElementNS(e,`path`);u.setAttribute(`d`,i),l.appendChild(u),n.appendChild(l);let d=document.createElementNS(e,`image`),f=qU(r,a);d.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,o),d.setAttribute(`x`,String(f.x)),d.setAttribute(`y`,String(f.y)),d.setAttribute(`width`,String(f.w)),d.setAttribute(`height`,String(f.h)),d.setAttribute(`clip-path`,`url(#${c})`),d.setAttribute(`preserveAspectRatio`,f.preserveAspectRatio),n.parentNode||t.appendChild(n),s?.parentNode===t?t.insertBefore(d,s):t.appendChild(d)}var YU=0,XU=0;function ZU(e,t,n,r,i){let a=`shape-shadow-${++XU}`,o=document.createElementNS(e,`filter`),s=Math.max(Math.abs(i.dx),Math.abs(i.dy))+i.blur*4+4;o.setAttribute(`id`,a),o.setAttribute(`filterUnits`,`userSpaceOnUse`),o.setAttribute(`x`,String(-s)),o.setAttribute(`y`,String(-s)),o.setAttribute(`width`,String(r.w+s*2)),o.setAttribute(`height`,String(r.h+s*2));let c=document.createElementNS(e,`feDropShadow`);c.setAttribute(`dx`,i.dx.toFixed(1)),c.setAttribute(`dy`,i.dy.toFixed(1)),c.setAttribute(`stdDeviation`,Math.max(0,i.blur/2).toFixed(2)),c.setAttribute(`flood-color`,`rgb(${i.color.r},${i.color.g},${i.color.b})`),c.setAttribute(`flood-opacity`,i.opacity.toFixed(4)),o.appendChild(c),t.appendChild(o),!t.parentNode&&n.ownerSVGElement&&n.ownerSVGElement.insertBefore(t,n.ownerSVGElement.firstChild),n.setAttribute(`filter`,`url(#${a})`)}function QU(e,t,n,r,i){let a=`shape-inner-shadow-${++XU}`,o=document.createElementNS(e,`filter`),s=Math.max(Math.abs(i.dx),Math.abs(i.dy))+i.blur*4+4;o.setAttribute(`id`,a),o.setAttribute(`filterUnits`,`userSpaceOnUse`),o.setAttribute(`x`,String(-s)),o.setAttribute(`y`,String(-s)),o.setAttribute(`width`,String(r.w+s*2)),o.setAttribute(`height`,String(r.h+s*2));let c=document.createElementNS(e,`feOffset`);c.setAttribute(`in`,`SourceAlpha`),c.setAttribute(`dx`,i.dx.toFixed(1)),c.setAttribute(`dy`,i.dy.toFixed(1)),c.setAttribute(`result`,`innerOffset`),o.appendChild(c);let l=document.createElementNS(e,`feGaussianBlur`);l.setAttribute(`in`,`innerOffset`),l.setAttribute(`stdDeviation`,Math.max(0,i.blur/2).toFixed(2)),l.setAttribute(`result`,`innerBlur`),o.appendChild(l);let u=document.createElementNS(e,`feComposite`);u.setAttribute(`in`,`innerBlur`),u.setAttribute(`in2`,`SourceAlpha`),u.setAttribute(`operator`,`in`),u.setAttribute(`result`,`innerMask`),o.appendChild(u);let d=document.createElementNS(e,`feFlood`);d.setAttribute(`flood-color`,`rgb(${i.color.r},${i.color.g},${i.color.b})`),d.setAttribute(`flood-opacity`,i.opacity.toFixed(4)),d.setAttribute(`result`,`innerColor`),o.appendChild(d);let f=document.createElementNS(e,`feComposite`);f.setAttribute(`in`,`innerColor`),f.setAttribute(`in2`,`innerMask`),f.setAttribute(`operator`,`in`),f.setAttribute(`result`,`innerShadow`),o.appendChild(f);let p=document.createElementNS(e,`feMerge`),m=document.createElementNS(e,`feMergeNode`);m.setAttribute(`in`,`SourceGraphic`);let h=document.createElementNS(e,`feMergeNode`);h.setAttribute(`in`,`innerShadow`),p.appendChild(m),p.appendChild(h),o.appendChild(p),t.appendChild(o),!t.parentNode&&n.ownerSVGElement&&n.ownerSVGElement.insertBefore(t,n.ownerSVGElement.firstChild),n.setAttribute(`filter`,`url(#${a})`)}function $U(e,t,n,r,i){let a=`shape-soft-edge-${++XU}`,o=document.createElementNS(e,`filter`),s=Math.max(i*4+4,r.w,r.h);o.setAttribute(`id`,a),o.setAttribute(`filterUnits`,`userSpaceOnUse`),o.setAttribute(`x`,String(-s)),o.setAttribute(`y`,String(-s)),o.setAttribute(`width`,String(r.w+s*2)),o.setAttribute(`height`,String(r.h+s*2));let c=document.createElementNS(e,`feGaussianBlur`);c.setAttribute(`in`,`SourceGraphic`),c.setAttribute(`stdDeviation`,Math.max(0,i/2).toFixed(2)),o.appendChild(c),t.appendChild(o),!t.parentNode&&n.ownerSVGElement&&n.ownerSVGElement.insertBefore(t,n.ownerSVGElement.firstChild);let l=n.parentNode;if(!l)return;let u=document.createElementNS(e,`g`);u.setAttribute(`filter`,`url(#${a})`),l.insertBefore(u,n),u.appendChild(n)}function eW(e,t){let n=Math.max(t,1);switch(e){case`dot`:case`sysDot`:return`${n},${n*2}`;case`dash`:case`sysDash`:return`${n*4},${n*2}`;case`lgDash`:return`${n*8},${n*3}`;case`dashDot`:case`sysDashDot`:return`${n*4},${n*2},${n},${n*2}`;case`lgDashDot`:return`${n*8},${n*3},${n},${n*3}`;case`lgDashDotDot`:case`sysDashDotDot`:return`${n*8},${n*3},${n},${n*2},${n},${n*2}`;default:return null}}function tW(e,t,n,r){if(!n.exists())return null;let i=n.attr(`prst`)??`solid`;if(i===`solid`||i===`solidDmnd`)return null;let a=n.child(`fgClr`),o=n.child(`bgClr`),s=a.exists()?AB(a,r):`#000000`,c=o.exists()?AB(o,r):`#ffffff`,l=`shape-pattern-${++XU}`,u=document.createElementNS(e,`pattern`);u.setAttribute(`id`,l),u.setAttribute(`patternUnits`,`userSpaceOnUse`),u.setAttribute(`width`,`8`),u.setAttribute(`height`,`8`);let d=document.createElementNS(e,`rect`);d.setAttribute(`width`,`8`),d.setAttribute(`height`,`8`),d.setAttribute(`fill`,c),u.appendChild(d);let f=!1,p=(t,n,r,i,a)=>{let o=document.createElementNS(e,`line`);o.setAttribute(`x1`,String(t)),o.setAttribute(`y1`,String(n)),o.setAttribute(`x2`,String(r)),o.setAttribute(`y2`,String(i)),o.setAttribute(`stroke`,s),o.setAttribute(`stroke-width`,`1`),a&&o.setAttribute(`stroke-dasharray`,a),u.appendChild(o),f=!0},m=(t,n,r)=>{let i=document.createElementNS(e,`circle`);i.setAttribute(`cx`,String(t)),i.setAttribute(`cy`,String(n)),i.setAttribute(`r`,String(r)),i.setAttribute(`fill`,s),u.appendChild(i),f=!0},h=1/2,g=0;switch(i){case`pct5`:case`pct10`:case`pct20`:case`pct25`:m(8/2,8/2,1*.75);break;case`pct30`:case`pct40`:case`pct50`:case`dotGrid`:case`dotDmnd`:m(8/2,8/2,1);break;case`pct60`:case`pct70`:case`pct75`:case`pct80`:case`pct90`:case`sphere`:case`shingle`:case`plaid`:case`divot`:case`zigZag`:m(8/2,8/2,1*1.5);break;case`horz`:case`ltHorz`:case`narHorz`:case`dkHorz`:p(0,h,8,h);break;case`vert`:case`ltVert`:case`narVert`:case`dkVert`:p(h,0,h,8);break;case`dnDiag`:case`ltDnDiag`:case`narDnDiag`:case`dkDnDiag`:case`wdDnDiag`:p(0,8,8,0);break;case`upDiag`:case`ltUpDiag`:case`narUpDiag`:case`dkUpDiag`:case`wdUpDiag`:p(0,0,8,8);break;case`smGrid`:case`lgGrid`:case`cross`:g=-3,p(0,h,8,h),p(h,0,h,8);break;case`smCheck`:case`lgCheck`:case`diagCross`:case`openDmnd`:case`trellis`:case`weave`:p(0,8,8,0),p(0,0,8,8);break;case`dashHorz`:p(0,h,8,h,`3,2`);break;case`dashVert`:p(h,0,h,8,`3,2`);break;case`dashDnDiag`:p(0,8,8,0,`3,2`);break;case`dashUpDiag`:p(0,0,8,8,`3,2`);break;default:return null}return f?(g!==0&&u.setAttribute(`y`,String(g)),t.appendChild(u),l):null}function nW(e){if(!e)return null;let t=e.trim();if(t.startsWith(`#`))return Jz(t);let n=t.match(/rgba?\(([^)]+)\)/i);if(!n)return null;let r=n[1].split(`,`).map(e=>Number.parseFloat(e.trim()));return r.length<3||r.some(e=>Number.isNaN(e))?null:{r:Math.max(0,Math.min(255,r[0])),g:Math.max(0,Math.min(255,r[1])),b:Math.max(0,Math.min(255,r[2]))}}function rW(e,t,n){let r=Math.max(0,Math.min(1,n));return Yz(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r)}function iW(e){let t=e*Math.PI/180,n=Math.round(50+50*Math.cos(t)),r=Math.round(50+50*Math.sin(t)),i=Math.round(50-50*Math.cos(t)),a=Math.round(50-50*Math.sin(t));return{x1:`${i}%`,y1:`${a}%`,x2:`${n}%`,y2:`${r}%`}}function aW(e){switch(e){case`sm`:return .5;case`lg`:return 1.5;default:return 1}}function oW(e,t){let n=aW(e.w),r=aW(e.len),i=Math.max(t*3,10),a=Math.max(t*2.5,7.5);return{markerW:i*r,markerH:a*n}}function sW(e,t){return e.type!==`triangle`&&e.type!==`arrow`&&e.type!==`stealth`?0:oW(e,t).markerW}function cW(e,t){return e.type!==`triangle`&&e.type!==`arrow`&&e.type!==`stealth`?0:oW(e,t).markerW}function lW(e){if(!e)return!0;let t=e.trim().toLowerCase();if(t===`transparent`)return!0;let n=t.match(/^rgba\([^,]+,[^,]+,[^,]+,\s*([0-9.]+)\)$/);return n?Number(n[1])<=.001:!1}function uW(e,t,n){if(e.length===0)return n;let r=t===`start`?0:e.length-1,i=t===`start`?1:-1,a=e[r]?.color;if(a&&!lW(a))return a;for(let t=r;t>=0&&t<e.length;t+=i){let n=e[t]?.color;if(n&&!lW(n))return n}return a||n}function dW(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function fW(e,t,n,r,i){let a=dW(e,t,i),o=dW(t,n,i),s=dW(n,r,i);return dW(dW(a,o,i),dW(o,s,i),i)}function pW(e,t,n,r,i){let a=0,o=e;for(let s=1;s<=24;s++){let c=fW(e,t,n,r,i*s/24);a+=Math.hypot(c.x-o.x,c.y-o.y),o=c}return a}function mW(e){return cU(e)}function hW(e,t){let n=[`M${kU(e.x)},${kU(e.y)}`];for(let e of t)n.push([`C${kU(e.c1.x)},${kU(e.c1.y)}`,`${kU(e.c2.x)},${kU(e.c2.y)}`,`${kU(e.end.x)},${kU(e.end.y)}`].join(` `));return n.join(` `)}function gW(e){return lU(e)}function _W(e,t,n,r){let i=e*n+t*r,a=Math.hypot(e,t)*Math.hypot(n,r),o=Math.acos(Math.min(1,Math.max(-1,a>0?i/a:1)));return e*r-t*n<0?-o:o}function vW(e,t){if(t.xAxisRotation!==0)return null;let n=Math.abs(t.rx),r=Math.abs(t.ry);if(!(n>0)||!(r>0))return null;let i=(e.x-t.end.x)/2,a=(e.y-t.end.y)/2,o=i*i/(n*n)+a*a/(r*r);if(o>1){let e=Math.sqrt(o);n*=e,r*=e}let s=n*n,c=r*r,l=i*i,u=a*a,d=s*u+c*l;if(!(d>0))return null;let f=(t.largeArc===t.sweep?-1:1)*Math.sqrt(Math.max(0,(s*c-s*u-c*l)/d)),p=f*n*a/r,m=-f*r*i/n,h={x:(e.x+t.end.x)/2+p,y:(e.y+t.end.y)/2+m},g=(i-p)/n,_=(a-m)/r,v=(-i-p)/n,y=(-a-m)/r,b=Math.atan2(_,g),x=_W(g,_,v,y);return t.sweep===0&&x>0&&(x-=Math.PI*2),t.sweep===1&&x<0&&(x+=Math.PI*2),{center:h,rx:n,ry:r,startAngle:b,deltaAngle:x,xAxisRotation:t.xAxisRotation,sweep:t.sweep}}function yW(e,t){let n=e.startAngle+e.deltaAngle*t;return{x:e.center.x+e.rx*Math.cos(n),y:e.center.y+e.ry*Math.sin(n)}}function bW(e,t){let n=0,r=yW(e,0);for(let i=1;i<=24;i++){let a=yW(e,t*i/24);n+=Math.hypot(a.x-r.x,a.y-r.y),r=a}return n}function xW(e,t,n,r){let i=Math.abs(t.deltaAngle*n)>Math.PI?1:0;return[`M${kU(e.x)},${kU(e.y)}`,`A${kU(t.rx)},${kU(t.ry)}`,kU(t.xAxisRotation),`${i},${t.sweep}`,`${kU(r.x)},${kU(r.y)}`].join(` `)}function SW(e,t){let n=mW(e);if(!n)return e;let r=n.start,i=n.segments[0],a=i.c1,o=i.c2,s=i.end,c=pW(r,a,o,s,1);if(!(c>0))return e;let l=Math.min(t,c*.95),u=0,d=1;for(let e=0;e<24;e++){let e=(u+d)/2;pW(r,a,o,s,e)<l?u=e:d=e}let f=d,p=dW(r,a,f),m=dW(a,o,f),h=dW(o,s,f),g=dW(p,m,f),_=dW(m,h,f),v=dW(g,_,f),y=n.segments.slice();return y[0]={c1:_,c2:h,end:s},hW(v,y)}function CW(e,t){let n=gW(e);if(!n)return null;let r=vW(n.start,n.arc);if(!r)return null;let i=bW(r,1);if(!(i>0))return null;let a=Math.min(t,i*.95),o=0,s=1;for(let e=0;e<24;e++){let e=(o+s)/2;bW(r,e)<a?o=e:s=e}let c=s;return xW(yW(r,c),r,1-c,n.arc.end)}function wW(e,t){let n=mW(e);if(!n)return null;let r=n.segments.length-1,i=r===0?n.start:n.segments[r-1].end,a=n.segments[r],o=pW(i,a.c1,a.c2,a.end,1);if(!(o>0))return null;let s=o-Math.min(t,o*.95),c=0,l=1;for(let e=0;e<24;e++){let e=(c+l)/2;pW(i,a.c1,a.c2,a.end,e)<s?c=e:l=e}let u=l,d=dW(i,a.c1,u),f=dW(a.c1,a.c2,u),p=dW(a.c2,a.end,u),m=dW(d,f,u),h=dW(m,dW(f,p,u),u),g=n.segments.slice();return g[r]={c1:d,c2:m,end:h},hW(n.start,g)}function TW(e,t){let n=gW(e);if(!n)return null;let r=vW(n.start,n.arc);if(!r)return null;let i=bW(r,1);if(!(i>0))return null;let a=i-Math.min(t,i*.95),o=0,s=1;for(let e=0;e<24;e++){let e=(o+s)/2;bW(r,e)<a?o=e:s=e}let c=s;return xW(n.start,r,c,yW(r,c))}function EW(e,t){if(!(t>0))return e;let n=oU(e);if(!n)return jW(e,t)??CW(e,t)??SW(e,t);let r=n.start.x,i=n.start.y,a=n.end.x,o=n.end.y,s=a-r,c=o-i,l=Math.hypot(s,c);if(!(l>0))return e;let u=Math.min(t,l*.95);return`M${r+s/l*u},${i+c/l*u} L${a},${o}`}function DW(e,t){if(!(t>0))return e;let n=oU(e);if(!n)return MW(e,t)??wW(e,t)??TW(e,t)??e;let r=n.start.x,i=n.start.y,a=n.end.x,o=n.end.y,s=a-r,c=o-i,l=Math.hypot(s,c);if(!(l>0))return e;let u=Math.min(t,l*.95);return`M${r},${i} L${a-s/l*u},${o-c/l*u}`}function OW(e){return sU(e)}function kW(e){return e.map((e,t)=>`${t===0?`M`:`L`}${kU(e.x)},${kU(e.y)}`).join(` `)}function AW(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function jW(e,t){let n=OW(e);if(!n||n.length<3)return null;let r=n[0],i=n[1],a=i.x-r.x,o=i.y-r.y,s=Math.hypot(a,o);return s>t?kW([{x:r.x+a/s*t,y:r.y+o/s*t},...n.slice(1)]):null}function MW(e,t){let n=OW(e);if(!n||n.length<3)return null;let r=n[n.length-1],i=n[n.length-2],a=r.x-i.x,o=r.y-i.y,s=Math.hypot(a,o);if(!(s>t))return null;let c={x:r.x-a/s*t,y:r.y-o/s*t};return kW([...n.slice(0,-1),c])}var NW=2,PW=4;function FW(e,t,n,r){if(!n&&!r)return e;let i=OW(e);if(!i||i.length<3)return e;let a=Math.min(Math.max(NW,t*1.5),PW),o=i.slice();if(n&&o.length>=3){let e=AW(o[0],o[1]),t=AW(o[1],o[2]);e<=a&&t>a&&(o=o.slice(1))}if(r&&o.length>=3){let e=o.length-1,t=AW(o[e-1],o[e]),n=AW(o[e-2],o[e-1]);t<=a&&n>a&&(o=o.slice(0,-1))}return o.length===i.length?e:kW(o)}function IW(e,t,n,r,i){let a=document.createElementNS(e,`marker`),o=`arrow-marker-${++YU}`;a.setAttribute(`id`,o),a.setAttribute(`markerUnits`,`userSpaceOnUse`),a.setAttribute(`orient`,`auto`);let{markerW:s,markerH:c}=oW(t,r);switch(t.type){case`triangle`:case`arrow`:{a.setAttribute(`viewBox`,`0 0 10 10`),a.setAttribute(`refX`,i?`10`:`0`),a.setAttribute(`refY`,`5`),a.setAttribute(`markerWidth`,String(s)),a.setAttribute(`markerHeight`,String(c));let t=document.createElementNS(e,`polygon`);i?t.setAttribute(`points`,`0,5 10,0 10,10`):t.setAttribute(`points`,`10,5 0,0 0,10`),t.setAttribute(`fill`,n),a.appendChild(t);break}case`stealth`:{a.setAttribute(`viewBox`,`0 0 10 10`),a.setAttribute(`refX`,i?`10`:`0`),a.setAttribute(`refY`,`5`),a.setAttribute(`markerWidth`,String(s)),a.setAttribute(`markerHeight`,String(c));let t=document.createElementNS(e,`path`);i?t.setAttribute(`d`,`M0,5 L10,0 L7,5 L10,10 Z`):t.setAttribute(`d`,`M10,5 L0,0 L3,5 L0,10 Z`),t.setAttribute(`fill`,n),a.appendChild(t);break}case`diamond`:{a.setAttribute(`viewBox`,`0 0 10 10`),a.setAttribute(`refX`,`5`),a.setAttribute(`refY`,`5`),a.setAttribute(`markerWidth`,String(s)),a.setAttribute(`markerHeight`,String(c));let t=document.createElementNS(e,`polygon`);t.setAttribute(`points`,`5,0 10,5 5,10 0,5`),t.setAttribute(`fill`,n),a.appendChild(t);break}case`oval`:{a.setAttribute(`viewBox`,`0 0 10 10`),a.setAttribute(`refX`,`5`),a.setAttribute(`refY`,`5`),a.setAttribute(`markerWidth`,String(s)),a.setAttribute(`markerHeight`,String(c));let t=document.createElementNS(e,`circle`);t.setAttribute(`cx`,`5`),t.setAttribute(`cy`,`5`),t.setAttribute(`r`,`4`),t.setAttribute(`fill`,n),a.appendChild(t);break}default:return null}return a._markerId=o,a}function LW(e){let t={},n=e.child(`headEnd`);if(n.exists()){let e=n.attr(`type`);e&&e!==`none`&&(t.headEnd={type:e,w:n.attr(`w`),len:n.attr(`len`)})}let r=e.child(`tailEnd`);if(r.exists()){let e=r.attr(`type`);e&&e!==`none`&&(t.tailEnd={type:e,w:r.attr(`w`),len:r.attr(`len`)})}return t}var RW=new WeakMap;function zW(e){return!e||e.size===0?``:Array.from(e.entries()).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join(`|`)}function BW(e,t,n,r){let i=zW(e.adjustments),a=RW.get(e);if(a&&a.effectivePreset===t&&a.w===n&&a.h===r&&a.adjustmentKey===i)return{pathD:a.pathD,multiPaths:a.multiPaths};let o=tU(t,n,r,e.adjustments),s=o?o[0]?.d??``:nU(t,n,r,e.adjustments);return RW.set(e,{effectivePreset:t,w:n,h:r,adjustmentKey:i,pathD:s,multiPaths:o}),{pathD:s,multiPaths:o}}function VW(e,t){var n,r,i,a;let o=document.createElement(`div`);o.style.position=`absolute`,o.style.left=`${e.position.x}px`,o.style.top=`${e.position.y}px`,o.style.width=`${e.size.w}px`;let s=e.presetGeometry?.toLowerCase()??``,c=new Set([`arc`]),l=!!s&&(s===`line`||s===`lineinv`||s.startsWith(`straightconnector`)||s.startsWith(`bentconnector`)||s.startsWith(`curvedconnector`)||c.has(s)),u=e.source.localName===`cxnSp`,d=e.size.w>0&&e.size.h<1||e.size.w<1&&e.size.h>0,f=l||u||d,p=f&&e.size.h<1?1:e.size.h,m=f&&e.size.w<1?1:e.size.w;o.style.height=`${p}px`,e.size.w===0&&(o.style.width=`${m}px`),o.style.overflow=`visible`;let h=[];e.rotation!==0&&h.push(`rotate(${e.rotation}deg)`),e.flipH&&!f&&h.push(`scaleX(-1)`),e.flipV&&!f&&h.push(`scaleY(-1)`),h.length>0&&(o.style.transform=h.join(` `));let g=e.size.w,_=e.size.h,v=g,y=_,b=e.source.child(`style`),x=b.exists()?b.child(`lnRef`):void 0,S=b.exists()?b.child(`fillRef`):void 0,C=``,w=null;if(e.presetGeometry){let t=e.presetGeometry;u&&t===`line`&&(t=`straightConnector1`);let n=BW(e,t,v,y);C=n.pathD,w=n.multiPaths}else if(e.customGeometry){let t=e.source.child(`spPr`).child(`xfrm`).child(`ext`),n={w:t.numAttr(`cx`)??0,h:t.numAttr(`cy`)??0};C=RH(e.customGeometry,v,y,n)}!C&&f&&((n=e.line)!=null&&n.exists()||x!=null&&x.exists()&&(x.numAttr(`idx`)??0)>0&&(t.theme.lineStyles?.length??0)>=(x.numAttr(`idx`)??0))&&(C=nU(u?`straightConnector1`:`line`,v,y,void 0)),C&&f&&(e.flipH||e.flipV)&&(C=iU(C,v,y,e.flipH,e.flipV));let T=e.source.child(`spPr`),E=``,D=e.fill?GB(T,t):null;if(e.fill&&e.fill.exists()){if(e.fill.localName===`solidFill`){let n=e.fill.child(`srgbClr`).exists()?e.fill.child(`srgbClr`):e.fill.child(`schemeClr`).exists()?e.fill.child(`schemeClr`):e.fill.child(`scrgbClr`).exists()?e.fill.child(`scrgbClr`):e.fill.child(`sysClr`).exists()?e.fill.child(`sysClr`):void 0;n!=null&&n.exists()&&(E=AB(n,t))}E||=NB(T,t)}if(!E){let e=T.child(`solidFill`);if(e.exists()){let n=e.child(`srgbClr`).exists()?e.child(`srgbClr`):e.child(`schemeClr`).exists()?e.child(`schemeClr`):e.child(`scrgbClr`).exists()?e.child(`scrgbClr`):e.child(`sysClr`).exists()?e.child(`sysClr`):void 0;n!=null&&n.exists()&&(E=AB(n,t))}}if(!E&&S&&S.exists()&&(S.numAttr(`idx`)??0)>0){let e=KB(S,t);E=e.fillCss,D||=e.gradientFillData}f&&(E=``,D=null);let O=`none`,k=0,A=``,j=`solid`,M=``,N=``,P=null,F=e.line&&e.line.child(`noFill`).exists(),ee=e.line&&!F,I=!ee&&!F&&x!=null&&x.exists()&&(x.numAttr(`idx`)??0)>0&&(t.theme.lineStyles?.length??0)>=(x.numAttr(`idx`)??0)?t.theme.lineStyles[(x.numAttr(`idx`)??1)-1]:void 0,L=ee?e.line:I;if(F&&(L=void 0),L!=null&&L.exists()){if(P=YB(L,t),!P){let e=IB(L,t,x);O=e.color,k=e.width,A=e.dash,j=e.dashKind}let e=L.attr(`cap`);e===`rnd`?M=`round`:e===`sq`?M=`square`:e===`flat`&&(M=`butt`),L.child(`round`).exists()?N=`round`:L.child(`bevel`).exists()?N=`bevel`:L.child(`miter`).exists()&&(N=`miter`)}F&&(O=`none`,k=0,P=null);let R=e.presetGeometry?.toLowerCase()===`circulararrow`;if(R&&(O=`none`,k=0,P=null,!E)){let e=T.child(`solidFill`);if(e.exists()){let n=e.child(`srgbClr`).exists()?e.child(`srgbClr`):e.child(`schemeClr`).exists()?e.child(`schemeClr`):e.child(`scrgbClr`).exists()?e.child(`scrgbClr`):e.child(`sysClr`).exists()?e.child(`sysClr`):void 0;n!=null&&n.exists()&&(E=AB(n,t))}}let z=null,te=null,ne=null,re=null;if(C){let n=`http://www.w3.org/2000/svg`,a=document.createElementNS(n,`svg`),s=f?m:g,c=f?p:_;a.setAttribute(`viewBox`,`0 0 ${s} ${c}`),a.setAttribute(`width`,String(s)),a.setAttribute(`height`,String(c)),a.style.position=`absolute`,a.style.left=`0`,a.style.top=`0`,a.style.overflow=`visible`;let l=T.child(`blipFill`),u=l.exists()?WU(l,t):null;if(u){JU(n,a,document.createElementNS(n,`defs`),l,C,{w:s,h:c},u);let e=w&&w[0]?.stroke===!1;if(!R&&!e&&!P&&k>0&&O!==`none`&&O!==`transparent`){let e=document.createElementNS(n,`path`);e.setAttribute(`d`,C),e.setAttribute(`fill`,`none`),e.setAttribute(`stroke`,O),e.setAttribute(`stroke-width`,String(k)),M&&e.setAttribute(`stroke-linecap`,M),N&&e.setAttribute(`stroke-linejoin`,N);let t=eW(j,k);t?e.setAttribute(`stroke-dasharray`,t):A===`dashed`?e.setAttribute(`stroke-dasharray`,`${k*4},${k*2}`):A===`dotted`&&e.setAttribute(`stroke-dasharray`,`${k},${k*2}`),a.appendChild(e)}o.appendChild(a)}else{let u=document.createElementNS(n,`defs`),d=document.createElementNS(n,`path`);d.setAttribute(`d`,C),z=n,te=u,ne=d,re={w:s,h:c};let p=e.presetGeometry?.toLowerCase();if(p===`curveduparrow`||p===`curveddownarrow`?(d.setAttribute(`fill-rule`,`evenodd`),d.setAttribute(`stroke-linejoin`,`round`)):p===`funnel`&&d.setAttribute(`fill-rule`,`evenodd`),E){let e=T.child(`pattFill`),r=e.exists()?tW(n,u,e,t):null;if(r)d.setAttribute(`fill`,`url(#${r})`);else if(D&&D.stops.length>0){let e=`grad-fill-${++XU}`;if(D.type===`radial`&&D.pathType===`rect`){let t=D.cx??.5,r=D.cy??.5,i=(e,t)=>{let n=HB(D,{axis:t}),r=[];for(let t of n){let n=t.position/100,i=e-n*e,a=e+n*(1-e);r.push({offset:i,color:t.color}),r.push({offset:a,color:t.color})}return r.sort((e,t)=>e.offset-t.offset),r},a=`${e}-h`,o=document.createElementNS(n,`linearGradient`);o.setAttribute(`id`,a),o.setAttribute(`color-interpolation`,D.colorInterpolation??`linearRGB`),o.setAttribute(`x1`,`0%`),o.setAttribute(`y1`,`0%`),o.setAttribute(`x2`,`100%`),o.setAttribute(`y2`,`0%`);for(let e of i(t,`x`)){let t=document.createElementNS(n,`stop`);t.setAttribute(`offset`,`${(e.offset*100).toFixed(2)}%`),t.setAttribute(`stop-color`,e.color),o.appendChild(t)}u.appendChild(o);let s=`${e}-v`,c=document.createElementNS(n,`linearGradient`);c.setAttribute(`id`,s),c.setAttribute(`color-interpolation`,D.colorInterpolation??`linearRGB`),c.setAttribute(`x1`,`0%`),c.setAttribute(`y1`,`0%`),c.setAttribute(`x2`,`0%`),c.setAttribute(`y2`,`100%`);for(let e of i(r,`y`)){let t=document.createElementNS(n,`stop`);t.setAttribute(`offset`,`${(e.offset*100).toFixed(2)}%`),t.setAttribute(`stop-color`,e.color),c.appendChild(t)}u.appendChild(c);let l=`${e}-clip`,f=document.createElementNS(n,`clipPath`);f.setAttribute(`id`,l);let p=document.createElementNS(n,`path`);p.setAttribute(`d`,C),f.appendChild(p),u.appendChild(f);let m=document.createElementNS(n,`g`);m.setAttribute(`clip-path`,`url(#${l})`),m.setAttribute(`style`,`isolation: isolate`);let h=document.createElementNS(n,`rect`);h.setAttribute(`width`,`100%`),h.setAttribute(`height`,`100%`),h.setAttribute(`fill`,`black`),m.appendChild(h);let g=document.createElementNS(n,`path`);g.setAttribute(`d`,C),g.setAttribute(`fill`,`url(#${a})`),g.setAttribute(`style`,`mix-blend-mode: lighten`),m.appendChild(g);let _=document.createElementNS(n,`path`);_.setAttribute(`d`,C),_.setAttribute(`fill`,`url(#${s})`),_.setAttribute(`style`,`mix-blend-mode: lighten`),m.appendChild(_),d.setAttribute(`fill`,`none`),d.__rectBlendGroup=m}else if(D.type===`radial`){let t=document.createElementNS(n,`radialGradient`);t.setAttribute(`id`,e),t.setAttribute(`color-interpolation`,D.colorInterpolation??`linearRGB`),t.setAttribute(`gradientUnits`,`userSpaceOnUse`);let r=D.cx??.5,i=D.cy??.5;t.setAttribute(`cx`,String(r*s)),t.setAttribute(`cy`,String(i*c));let a=Math.max(r,1-r),o=Math.max(i,1-i);t.setAttribute(`r`,String(Math.hypot(a*s,o*c)));for(let e of HB(D,{width:s,height:c})){let r=document.createElementNS(n,`stop`);r.setAttribute(`offset`,`${e.position}%`),r.setAttribute(`stop-color`,e.color),t.appendChild(r)}u.appendChild(t)}else{let t=document.createElementNS(n,`linearGradient`);t.setAttribute(`id`,e),t.setAttribute(`color-interpolation`,D.colorInterpolation??`linearRGB`),t.setAttribute(`gradientUnits`,`userSpaceOnUse`);let r=iW(D.angle);t.setAttribute(`x1`,String(parseFloat(r.x1)/100*s)),t.setAttribute(`y1`,String(parseFloat(r.y1)/100*c)),t.setAttribute(`x2`,String(parseFloat(r.x2)/100*s)),t.setAttribute(`y2`,String(parseFloat(r.y2)/100*c));for(let e of D.stops){let r=document.createElementNS(n,`stop`);r.setAttribute(`offset`,`${e.position}%`),r.setAttribute(`stop-color`,e.color),t.appendChild(r)}u.appendChild(t)}D.type===`radial`&&D.pathType===`rect`||d.setAttribute(`fill`,`url(#${e})`)}else E===`transparent`?d.setAttribute(`fill`,`none`):E.includes(`gradient`)?(o.style.background=E,d.setAttribute(`fill`,`transparent`)):d.setAttribute(`fill`,E)}else d.setAttribute(`fill`,`none`);if(R){if(!E||E===`none`||E===`transparent`){let n=[`srgbClr`,`schemeClr`,`scrgbClr`,`sysClr`,`hslClr`,`prstClr`],i=``,a=T.child(`solidFill`);if(a.exists()){for(let e of a.allChildren())if(n.includes(e.localName)){i=AB(e,t);break}}if(!i&&(r=e.fill)!=null&&r.exists()){for(let r of e.fill.allChildren())if(n.includes(r.localName)){i=AB(r,t);break}}i&&d.setAttribute(`fill`,i)}d.setAttribute(`stroke`,`none`)}let m=e.headEnd,h=e.tailEnd;if((!m||!h)&&L!=null&&L.exists()){let e=LW(L);!m&&e.headEnd&&(m=e.headEnd),!h&&e.tailEnd&&(h=e.tailEnd)}let g=P?uW(P.stops,`start`,`black`):O,_=P?uW(P.stops,`end`,g):O,b=P?P.width:k;f&&(m||h)&&b<=0&&(b=1);let x=f&&(m||h)?`butt`:M;if(f&&(m||h)&&b>0&&(C=FW(C,b,!!m,!!h),d.setAttribute(`d`,C)),f&&m&&b>0){let e=sW(m,b);e>0&&(C=EW(C,e),d.setAttribute(`d`,C))}if(f&&h&&b>0){let e=cW(h,b);e>0&&(C=DW(C,e),d.setAttribute(`d`,C))}let ee=w&&w[0]?.stroke===!1;if(!R&&!ee&&P&&P.stops.length>0){let e=`grad-stroke-${++XU}`,t=document.createElementNS(n,`linearGradient`);if(t.setAttribute(`id`,e),t.setAttribute(`color-interpolation`,P.colorInterpolation??`linearRGB`),t.setAttribute(`gradientUnits`,`userSpaceOnUse`),f||s<=1||c<=1){let e=P.angle*Math.PI/180,n=Math.cos(e),r=Math.sin(e),i=s/2,a=c/2,o=Math.max(s,c)/2;t.setAttribute(`x1`,String(i-o*n)),t.setAttribute(`y1`,String(a-o*r)),t.setAttribute(`x2`,String(i+o*n)),t.setAttribute(`y2`,String(a+o*r))}else{let e=iW(P.angle);t.setAttribute(`x1`,String(parseFloat(e.x1)/100*s)),t.setAttribute(`y1`,String(parseFloat(e.y1)/100*c)),t.setAttribute(`x2`,String(parseFloat(e.x2)/100*s)),t.setAttribute(`y2`,String(parseFloat(e.y2)/100*c))}for(let e of P.stops){let r=document.createElementNS(n,`stop`);r.setAttribute(`offset`,`${e.position}%`),r.setAttribute(`stop-color`,e.color),t.appendChild(r)}u.appendChild(t);let r=f||s<=1||c<=1?Math.max(P.width,1):P.width;d.setAttribute(`stroke`,`url(#${e})`),d.setAttribute(`stroke-width`,String(r)),x&&d.setAttribute(`stroke-linecap`,x),N&&d.setAttribute(`stroke-linejoin`,N)}else if(!R&&!ee&&b>0&&O!==`transparent`){d.setAttribute(`stroke`,O),d.setAttribute(`stroke-width`,String(b)),x&&d.setAttribute(`stroke-linecap`,x),N&&d.setAttribute(`stroke-linejoin`,N);let e=eW(j,b);e?d.setAttribute(`stroke-dasharray`,e):A===`dashed`?d.setAttribute(`stroke-dasharray`,`${b*4},${b*2}`):A===`dotted`&&d.setAttribute(`stroke-dasharray`,`${b},${b*2}`)}else d.setAttribute(`stroke`,`none`);if(b>0&&(m||h)){if(m){let e=IW(n,m,g,b,!0);e&&(u.appendChild(e),d.setAttribute(`marker-start`,`url(#${e._markerId})`))}if(h){let e=IW(n,h,_,b,!1);e&&(u.appendChild(e),d.setAttribute(`marker-end`,`url(#${e._markerId})`))}}if(d.__rectBlendGroup&&(a.appendChild(d.__rectBlendGroup),delete d.__rectBlendGroup),a.appendChild(d),l.exists()&&t.presentation.mediaResolver){let e=GU(l,t).then(e=>{e&&JU(n,a,u,l,C,{w:s,h:c},e,d)}).catch(()=>{});(i=t.asyncTasks)==null||i.push(e),t.asyncTasks}if(w&&w.length>1){let r=d.getAttribute(`fill`)??``,i=e.presetGeometry?.toLowerCase()??``,o=nW(r&&!r.startsWith(`url(`)?r:S!=null&&S.exists()?AB(S,t):D?.stops[0]?.color??E),l=(e,t)=>{if(D?.type!==`linear`||D.stops.length===0)return;let r=`grad-fill-detail-${++XU}`,i=document.createElementNS(n,`linearGradient`);i.setAttribute(`id`,r),i.setAttribute(`gradientUnits`,`userSpaceOnUse`),i.setAttribute(`color-interpolation`,D.colorInterpolation??`sRGB`);let a=iW(D.angle);i.setAttribute(`x1`,String(parseFloat(a.x1)/100*s)),i.setAttribute(`y1`,String(parseFloat(a.y1)/100*c)),i.setAttribute(`x2`,String(parseFloat(a.x2)/100*s)),i.setAttribute(`y2`,String(parseFloat(a.y2)/100*c));for(let r of D.stops){let a=document.createElementNS(n,`stop`);a.setAttribute(`offset`,`${r.position}%`);let o=nW(r.color);a.setAttribute(`stop-color`,o?rW(o,t,e):r.color),i.appendChild(a)}return u.appendChild(i),`url(#${r})`};for(let t=1;t<w.length;t++){let d=w[t],f=document.createElementNS(n,`path`);if(f.setAttribute(`d`,d.d),d.fill===`none`)f.setAttribute(`fill`,`none`);else if(d.fill===`darkenLess`)f.setAttribute(`fill`,l(.15,{r:0,g:0,b:0})||(o?rW(o,{r:0,g:0,b:0},.15):`rgba(0,0,0,0.15)`));else if(d.fill===`darken`)f.setAttribute(`fill`,l(.3,{r:0,g:0,b:0})||(o?rW(o,{r:0,g:0,b:0},.3):`rgba(0,0,0,0.3)`));else if(d.fill===`lightenLess`)f.setAttribute(`fill`,l(.18,{r:255,g:255,b:255})||(o?rW(o,{r:255,g:255,b:255},.18):`rgba(255,255,255,0.15)`));else if(d.fill===`lighten`){let e;if(i===`can`&&D?.type===`linear`&&D.stops.length>0){let t=`grad-fill-face-${++XU}`,r=document.createElementNS(n,`linearGradient`);r.setAttribute(`id`,t),r.setAttribute(`gradientUnits`,`userSpaceOnUse`),r.setAttribute(`color-interpolation`,`sRGB`);let i=iW(D.angle);r.setAttribute(`x1`,String(parseFloat(i.x1)/100*s)),r.setAttribute(`y1`,String(parseFloat(i.y1)/100*c)),r.setAttribute(`x2`,String(parseFloat(i.x2)/100*s)),r.setAttribute(`y2`,String(parseFloat(i.y2)/100*c));for(let e of D.stops){let t=document.createElementNS(n,`stop`);t.setAttribute(`offset`,`${e.position}%`),t.setAttribute(`stop-color`,eB(e.color,65e3)),r.appendChild(t)}u.appendChild(r),e=`url(#${t})`}else i===`can`&&r.startsWith(`url(`)&&(e=r);let t=i===`can`?void 0:l(.3,{r:255,g:255,b:255});f.setAttribute(`fill`,e||t||(o?rW(o,{r:255,g:255,b:255},.3):`rgba(255,255,255,0.3)`))}else f.setAttribute(`fill`,r||`none`);if(d.stroke&&b>0&&O!==`transparent`){f.setAttribute(`stroke`,O);let t=e.presetGeometry?.toLowerCase()===`bordercallout1`&&d.fill===`none`,r=d.strokeWidthScale&&Number.isFinite(d.strokeWidthScale)&&d.strokeWidthScale>0?b*d.strokeWidthScale:b,i=t?Math.max(r,2.4):r;if(f.setAttribute(`stroke-width`,String(i)),t&&f.setAttribute(`stroke-linecap`,`round`),d.maskToMainOutlineBandScale&&d.maskToMainOutlineBandScale>0&&d.maskToMainOutlineBandScale<1){let e=`shape-detail-band-mask-${++XU}`,t=document.createElementNS(n,`mask`);t.setAttribute(`id`,e),t.setAttribute(`maskUnits`,`userSpaceOnUse`),t.setAttribute(`maskContentUnits`,`userSpaceOnUse`);let r=document.createElementNS(n,`rect`);r.setAttribute(`x`,`0`),r.setAttribute(`y`,`0`),r.setAttribute(`width`,String(s)),r.setAttribute(`height`,String(c)),r.setAttribute(`fill`,`black`),t.appendChild(r);let i=document.createElementNS(n,`path`);i.setAttribute(`d`,C),i.setAttribute(`fill`,`white`),i.setAttribute(`stroke`,`none`),t.appendChild(i);let a=d.maskToMainOutlineBandScale,o=document.createElementNS(n,`path`);o.setAttribute(`d`,C),o.setAttribute(`fill`,`black`),o.setAttribute(`stroke`,`none`);let l=s*(1-a)/2,p=c*(1-a)/2;o.setAttribute(`transform`,`translate(${l} ${p}) scale(${a})`),t.appendChild(o),u.appendChild(t),f.setAttribute(`mask`,`url(#${e})`)}else if(d.maskToMainOutline){let e=`shape-detail-mask-${++XU}`,t=document.createElementNS(n,`mask`);t.setAttribute(`id`,e),t.setAttribute(`maskUnits`,`userSpaceOnUse`),t.setAttribute(`maskContentUnits`,`userSpaceOnUse`);let r=document.createElementNS(n,`rect`);r.setAttribute(`x`,`0`),r.setAttribute(`y`,`0`),r.setAttribute(`width`,String(s)),r.setAttribute(`height`,String(c)),r.setAttribute(`fill`,`black`),t.appendChild(r);let a=document.createElementNS(n,`path`);a.setAttribute(`d`,C),a.setAttribute(`fill`,`none`),a.setAttribute(`stroke`,`white`);let o=Math.max(i*(d.maskStrokeScale&&d.maskStrokeScale>0?d.maskStrokeScale:3),i);a.setAttribute(`stroke-width`,String(o)),a.setAttribute(`stroke-linecap`,`round`),a.setAttribute(`stroke-linejoin`,`round`),t.appendChild(a),u.appendChild(t),f.setAttribute(`mask`,`url(#${e})`)}}else if(d.stroke&&!F){let e=o?rW(o,{r:0,g:0,b:0},.55):`#666666`;f.setAttribute(`stroke`,e),f.setAttribute(`stroke-width`,`1`)}else f.setAttribute(`stroke`,`none`);a.appendChild(f)}}if(u.children.length>0&&!u.parentNode&&a.insertBefore(u,a.firstChild),R&&(d.setAttribute(`stroke`,`none`),d.removeAttribute(`stroke-width`),d.removeAttribute(`marker-start`),d.removeAttribute(`marker-end`)),e.presetGeometry&&!w){let t=ZH(e.presetGeometry,v,y);if(t){let e=document.createElementNS(n,`path`);e.setAttribute(`d`,t);let r=`#333333`;if(E&&E!==`transparent`&&E!==`none`){let e=E.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i);if(e){let t=parseInt(e[1],16),n=parseInt(e[2],16),i=parseInt(e[3],16);r=Yz(Math.round(t*.5),Math.round(n*.5),Math.round(i*.5))}}e.setAttribute(`fill`,r),e.setAttribute(`stroke`,`none`),a.appendChild(e)}}o.appendChild(a)}}else E&&E!==`transparent`&&(E.includes(`gradient`)?o.style.background=E:o.style.backgroundColor=E);if(e.textBody&&e.textBody.paragraphs.length>0&&gU(e.textBody)){let n=UU(e,t);if(n)o.appendChild(n);else{let n=document.createElement(`div`);n.style.position=`absolute`,e.textBoxBounds?(n.style.left=`${e.textBoxBounds.x}px`,n.style.top=`${e.textBoxBounds.y}px`,n.style.width=`${e.textBoxBounds.w}px`,n.style.height=`${e.textBoxBounds.h}px`):(n.style.left=`0`,n.style.top=`0`,n.style.width=`100%`,n.style.height=`100%`),n.style.display=`flex`,n.style.flexDirection=`column`,n.style.boxSizing=`border-box`;let r=NV(e.textBody,`spAutoFit`)?.exists(),i=NV(e.textBody,`normAutofit`),s=i?.exists(),c=NV(e.textBody,`noAutofit`)?.exists(),l=e.textBody.bodyProperties,u=e.textBody.layoutBodyProperties,d=(l?l.attr(`wrap`):void 0)??(u?u.attr(`wrap`):void 0),f=(l?l.attr(`horzOverflow`):void 0)??(u?u.attr(`horzOverflow`):void 0),p=(l?l.attr(`vertOverflow`):void 0)??(u?u.attr(`vertOverflow`):void 0),m=r&&!s&&f===`overflow`,h=r&&!s&&p===`overflow`,g=!r&&!s&&!c&&_U(e.textBody)&&!TU(e.textBody)&&(d===`none`||d===void 0&&xU(e.textBody)),_=c&&EU(e.placeholder)&&_U(e.textBody);n.style.overflowX=`visible`,n.style.overflowY=`visible`;let v=!1;if(s&&i){n.style.overflowX=`hidden`,n.style.overflowY=`hidden`;let e=i.numAttr(`lnSpcReduction`)??0;if(v=!0,e>0){let t=1-e/1e5;n.style.lineHeight=`${t}`}}if(r&&!s){if(m===h){let e=m?`visible`:`hidden`;n.style.overflowX=e,n.style.overflowY=e}else n.style.overflowX=m?`visible`:`clip`,n.style.overflowY=h?`visible`:`clip`;v=!m||!h}g&&(n.style.overflowX=`hidden`,n.style.overflowY=`hidden`,v=!0),_&&(v=!0);let y=!1,b,x=!!r&&!s&&_U(e.textBody),S=vU(e.textBody);{l&&d===`none`&&(n.style.whiteSpace=`nowrap`);let t=l?l.attr(`anchor`):void 0,r=u?u.attr(`anchor`):void 0,i=t||r,a=t!==void 0||r!==void 0;b=i;let o=(l?l.attr(`vert`):null)||(u?u.attr(`vert`):null);i===`t`?n.style.justifyContent=`flex-start`:i===`ctr`?n.style.justifyContent=`center`:i===`b`?n.style.justifyContent=`flex-end`:n.style.justifyContent=`flex-start`;let s=(l?l.numAttr(`lIns`):void 0)??(u?u.numAttr(`lIns`):void 0),c=(l?l.numAttr(`tIns`):void 0)??(u?u.numAttr(`tIns`):void 0),f=(l?l.numAttr(`rIns`):void 0)??(u?u.numAttr(`rIns`):void 0),p=(l?l.numAttr(`bIns`):void 0)??(u?u.numAttr(`bIns`):void 0),m=Y(s===void 0?91440:s),h=Y(c===void 0?45720:c),_=Y(f===void 0?91440:f),v=Y(p===void 0?45720:p),C=e.textBoxBounds?.h??e.size.h,w=g&&!o&&i===`ctr`&&C>0&&h+v>=C,T=w?0:h,E=w?0:v;n.style.paddingLeft=`${m}px`,n.style.paddingTop=`${T}px`,n.style.paddingRight=`${_}px`,n.style.paddingBottom=`${E}px`,o===`eaVert`?(NU(n,b),y=!0):o===`wordArtVert`?(NU(n,b,!0,`vertical-lr`),y=!0):o===`vert`?(NU(n,b),y=!0):o===`vert270`&&(NU(n,b),DU(n,`rotate(180deg)`),y=!0),x&&!a&&!y&&S&&(n.style.justifyContent=`center`)}if((a=e.textBoxBounds)!=null&&a.rotation&&e.textBoxBounds.rotation!==0&&(DU(n,`rotate(${e.textBoxBounds.rotation}deg)`),n.style.transformOrigin=`center center`),e.flipH||e.flipV){let e=n.style.transform||``;n.style.transform=`${e} scaleX(-1)`.trim()}let C,w=e.source.child(`style`);if(w.exists()){let e=w.child(`fontRef`);e.exists()&&e.allChildren().length>0&&(C=AB(e,t))}let T=C||y||r&&!s?{...C?{fontRefColor:C}:{},...y?{isVerticalText:y}:{},...r&&!s?(()=>{let t=SU(e.textBody),n=!CU(e.textBody)&&d!==`none`&&(t>1||bU(e.textBody)>yU);return{trimOuterParagraphSpacing:!0,...x&&!y&&(d===`none`||S)?{compactSingleLineSpacing:!0,defaultLineHeight:`1`}:n?{defaultLineHeight:`1.1`}:{}}})():{}}:void 0;if(IH(e.textBody,e.placeholder,t,n,T),o.appendChild(n),v){let e=n.style.transform,i=n.style.transformOrigin,a=n.style.width,c=n.style.height,l=n.style.whiteSpace,u=n.style.overflowY,f=()=>{var f;n.style.transform=e,n.style.transformOrigin=i,n.style.width=a,n.style.height=c,n.style.whiteSpace=l,n.style.overflowY=u;let p=o.isConnected,v=o.style.visibility,b=(f=t.measurementRoot)!=null&&f.isConnected?t.measurementRoot:document.body;p||(o.style.visibility=`hidden`,b.appendChild(o));let C=n.style.justifyContent,w=n.style.whiteSpace;n.style.justifyContent=`flex-start`;let T=n.clientWidth,E=n.clientHeight,D=n.scrollHeight,O=n.scrollWidth,k=O,A=D,j=T>0&&O<=T+IU,M=E>0&&(D<=E||!h&&j&&D<=E*(x?FU:PU)),N=T>0&&E>0&&j&&M,P=r&&!s&&!h&&j&&M&&D>E&&E>0,F=g&&j&&D>E&&E>0,ee=!y&&!m&&!N&&(!j||!M||x||g||_),I=!1;ee&&(n.style.whiteSpace=`nowrap`,k=n.scrollWidth,A=n.scrollHeight,I=!0,n.style.whiteSpace=w),n.style.justifyContent=C,p||(o.parentNode===b&&b.removeChild(o),o.style.visibility=v);let L=1,R=_||g,z=r&&!s&&d!==`none`&&I&&!M&&k<=T+IU&&A<=E;if(z&&(n.style.whiteSpace=`nowrap`),!m&&k>T+IU&&T>0){let e=T/k;(!r||s||r&&!s&&!M&&A<=E&&e>=RU||r&&!s&&x&&(d===void 0||d===`none`||S)||g||_)&&(!_||e>=LU)&&(L=Math.min(L,e))}let te=r&&!s&&L<1&&A<=E&&!M;te&&(n.style.whiteSpace=`nowrap`),!R&&!z&&!te&&!h&&!M&&A>E&&E>0&&(L=Math.min(L,E/A)),!R&&!z&&!te&&!h&&L===1&&!M&&D>E&&E>0&&(L=E/D),L<1?(n.style.transform||(n.style.transformOrigin=`top left`),DU(n,`scale(${L})`),n.style.width=MU(a,L),n.style.height=MU(c,L)):(P||F)&&(n.style.overflowY=`visible`)},p=()=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(()=>requestAnimationFrame(f)):setTimeout(f,0)};f(),p(),document.fonts?.status===`loading`&&document.fonts.ready&&document.fonts.ready.then(()=>p()).catch(()=>{})}}}let B=T.child(`effectLst`);if(!B.exists()){let n=e.source.child(`style`).child(`effectRef`).numAttr(`idx`)??0;if(n>0&&(t.theme.effectStyles?.length??0)>=n){let e=t.theme.effectStyles[n-1];if(e.exists()){let t=e.child(`effectLst`);t.exists()&&(B=t)}}}if(B.exists()){let n=B.child(`outerShdw`);if(n.exists()){let r=n.numAttr(`dir`)??0,i=n.numAttr(`dist`)??0,a=n.numAttr(`blurRad`)??0,s=n.numAttr(`sx`),c=n.numAttr(`sy`),l=n.attr(`algn`),u=r/6e4,d=Y(i),p=Y(a),m=d*Math.cos(u*Math.PI/180),h=d*Math.sin(u*Math.PI/180),g=`rgba(0,0,0,0.4)`,_={r:0,g:0,b:0},{color:v,alpha:y}=OB(n,t);if(v){let{r:e,g:t,b:n}=Jz(v.startsWith(`#`)?v:`#${v}`);_={r:e,g:t,b:n},g=`rgba(${e},${t},${n},${y.toFixed(3)})`}if(s!=null&&c!=null&&s>0&&c>0){let t=s/1e5,n=c/1e5,r=e.size?.w??100,i=e.size?.h??100,a=r,u=i;if(f||r<=1||i<=1){let t=e.line?.numAttr(`w`)??12700,n=Math.max(1,Y(t));a=n,u=n}let d=a*(t-1)/2,b=u*(n-1)/2,x=Math.max(0,(d+b)/2),S=0,C=0;if(l){let e=l.toLowerCase();(e===`t`||e===`tl`||e===`tr`)&&(C=u*(n-1)/2),(e===`b`||e===`bl`||e===`br`)&&(C=-u*(n-1)/2),(e===`l`||e===`tl`||e===`bl`)&&(S=a*(t-1)/2),(e===`r`||e===`tr`||e===`br`)&&(S=-a*(t-1)/2)}let w=x>0?Math.min(p,x*3):p,T=y;if(x>0&&p>0&&x<p&&(T=x/p*y),T>=.01){let e=m+S,t=h+C,n=g;if(v){let{r:e,g:t,b:r}=Jz(v.startsWith(`#`)?v:`#${v}`);_={r:e,g:t,b:r},n=`rgba(${e},${t},${r},${T.toFixed(4)})`}!f&&z&&te&&ne&&re?ZU(z,te,ne,re,{dx:e,dy:t,blur:w,color:_,opacity:T}):o.style.boxShadow=`${e.toFixed(1)}px ${t.toFixed(1)}px ${w.toFixed(1)}px ${x.toFixed(1)}px ${n}`}}else !f&&z&&te&&ne&&re?ZU(z,te,ne,re,{dx:m,dy:h,blur:p,color:_,opacity:y}):OU(o,`drop-shadow(${m.toFixed(1)}px ${h.toFixed(1)}px ${p.toFixed(1)}px ${g})`)}let r=B.child(`glow`);r.exists()&&jU(o,r,t);let i=B.child(`softEdge`);if(i.exists()&&!f&&z&&te&&ne&&re){let e=Y(i.numAttr(`rad`)??0);e>0&&$U(z,te,ne,re,e)}let a=B.child(`innerShdw`);if(a.exists()&&!f&&z&&te&&ne&&re){let e=a.numAttr(`dir`)??0,n=Y(a.numAttr(`dist`)??0),r=Y(a.numAttr(`blurRad`)??0),i=e/6e4,o=n*Math.cos(i*Math.PI/180),s=n*Math.sin(i*Math.PI/180),{color:c,alpha:l}=OB(a,t);if(c&&l>0){let e=c.startsWith(`#`)?c:`#${c}`;QU(z,te,ne,re,{dx:o,dy:s,blur:r,color:Jz(e),opacity:l})}}let s=B.child(`reflection`);if(s.exists()){let e=Y(s.numAttr(`dist`)??0),t=(s.numAttr(`stA`)??5e4)/1e5,n=(s.numAttr(`endA`)??0)/1e5,r=Math.max(0,Math.min(100,(s.numAttr(`stPos`)??0)/1e3)),i=Math.max(0,Math.min(100,(s.numAttr(`endPos`)??1e5)/1e3)),a=`linear-gradient(to bottom, rgba(255,255,255,${t.toFixed(3)}) ${r.toFixed(1)}%, rgba(255,255,255,${n.toFixed(3)}) ${i.toFixed(1)}%)`,c=`below ${e.toFixed(1)}px ${a}`;o.style.setProperty(`-webkit-box-reflect`,c),o.style.webkitBoxReflect=c}}if(e.hlinkClick&&t.onNavigate){let{action:n,rId:r}=e.hlinkClick,i=r?t.slide.rels.get(r):void 0,a=iH(t,n,i);a===void 0?r&&i&&_R(i.targetMode)&&$B(i.target)&&(o.style.cursor=`pointer`,o.title=e.hlinkClick.tooltip||i.target,o.addEventListener(`click`,e=>{e.stopPropagation(),t.onNavigate({url:i.target})})):(o.style.cursor=`pointer`,o.title=e.hlinkClick.tooltip||aH(a),o.addEventListener(`click`,e=>{e.stopPropagation(),t.onNavigate({slideIndex:a})}))}return o}var HW=14,UW=70,WW=81,GW=1128875079,KW=2,qW=1073741828,JW=1179469088,YW=[37,80,68,70],XW=[37,37,69,79,70],ZW=0,QW=16777216;function $W(e){if(e.length<44)return{type:`unsupported`};let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.getUint32(40,!0)!==JW)return{type:`unsupported`};let n=0,r=0;for(;n+8<=e.length;){let i=t.getUint32(n,!0),a=t.getUint32(n+4,!0);if(a<8||n+a>e.length||(r++,i===HW))break;if(i===UW&&a>16){let r=eG(e,t,n,a);if(r)return r}if(i===WW&&a>80){let r=rG(e,t,n);if(r)return r}n+=a}return r<=2?{type:`empty`}:{type:`unsupported`}}function eG(e,t,n,r){if(n+16>e.length)return null;if(t.getUint32(n+12,!0)===GW&&n+20<=e.length){let i=t.getUint32(n+16,!0);if(i===KW){let t=nG(e.subarray(n+8,n+r));if(t)return{type:`pdf`,data:t}}if(i===qW&&n+24<=e.length){let r=tG(e,t,n);if(r)return r}}if(r>100){let t=nG(e.subarray(n+8,n+r));if(t)return{type:`pdf`,data:t}}return null}function tG(e,t,n,r){if(n+40>e.length)return null;let i=t.getUint32(n+36,!0),a=n+40;for(let r=0;r<i&&r<10;r++){let i=a+r*16;if(i+16>e.length)break;let o=t.getUint32(i+8,!0),s=n+t.getUint32(i+12,!0);if(s+o>e.length||o===0)continue;let c=nG(e.subarray(s,s+o));if(c)return{type:`pdf`,data:c}}return null}function nG(e){let t=iG(e,YW);if(t===-1)return null;let n=-1;for(let r=e.length-XW.length;r>=t;r--)if(aG(e,r,XW)){n=r+XW.length;break}return n===-1&&(n=e.length),e.slice(t,n)}function rG(e,t,n,r){if(n+80>e.length)return null;let i=t.getUint32(n+48,!0),a=t.getUint32(n+52,!0),o=t.getUint32(n+56,!0),s=t.getUint32(n+60,!0);if(a===0||s===0)return null;let c=n+i;if(c+40>e.length)return null;let l=t.getInt32(c+4,!0),u=t.getInt32(c+8,!0),d=t.getUint16(c+14,!0);if(t.getUint32(c+16,!0)!==ZW||d!==24&&d!==32)return null;let f=Math.abs(l),p=Math.abs(u);if(f===0||p===0||f>8192||p>8192||f*p>QW)return null;let m=n+o;if(m+s>e.length)return null;let h=d/8,g=Math.ceil(f*h/4)*4,_=g*p;if(s<_)return null;let v=e.subarray(m,m+_),y=u<0,b=new ImageData(f,p);for(let e=0;e<p;e++){let t=(y?e:p-1-e)*g,n=e*f*4;for(let e=0;e<f;e++){let r=t+e*h;if(r+h>v.length)break;b.data[n+e*4+0]=v[r+2],b.data[n+e*4+1]=v[r+1],b.data[n+e*4+2]=v[r+0],b.data[n+e*4+3]=d===32?v[r+3]:255}}return{type:`bitmap`,imageData:b}}function iG(e,t){let n=e.length-t.length;for(let r=0;r<=n;r++)if(aG(e,r,t))return r;return-1}function aG(e,t,n){for(let r=0;r<n.length;r++)if(e[t+r]!==n[r])return!1;return!0}var oG=`pdfjs-dist/build/pdf.min.mjs`,sG=`pdfjs-dist/build/pdf.worker.min.mjs`,cG=null,lG=null;function uG(e){try{let t=import.meta.resolve;if(typeof t==`function`)return t(e)}catch{}return null}function dG(e,t){if(!e||typeof e!=`object`)return null;let n=e[t];return typeof n==`string`&&n.trim()||null}function fG(){return cG===null?(cG=uG(oG)??``,cG||null):cG}function pG(){return lG===null?(lG=uG(sG)??``,lG||null):lG}function mG(e){return e===!1?null:dG(e,`moduleUrl`)??fG()}function hG(e){return e===!1?null:dG(e,`workerUrl`)??pG()}var gG=`
26
+ let pdfjsLib = null;
27
+
28
+ // PDF.js resolves its nested worker through browser window APIs. Aliasing
29
+ // this isolated worker global keeps it on the real-worker path; otherwise its
30
+ // fake-worker fallback would bind to this worker's message port.
31
+ globalThis.window = globalThis;
32
+
33
+ self.onmessage = async (e) => {
34
+ const { id, pdfData, width, height, pdfjsUrl, pdfWorkerUrl } = e.data;
35
+ try {
36
+ if (!pdfjsLib) {
37
+ pdfjsLib = await import(pdfjsUrl);
38
+ pdfjsLib.GlobalWorkerOptions.workerSrc = pdfWorkerUrl;
39
+ }
40
+
41
+ const loadingTask = pdfjsLib.getDocument({ data: pdfData });
42
+ let doc = null;
43
+ try {
44
+ doc = await loadingTask.promise;
45
+ if (doc.numPages < 1) {
46
+ self.postMessage({ id, error: 'no pages' });
47
+ return;
48
+ }
49
+ const page = await doc.getPage(1);
50
+ const vp = page.getViewport({ scale: 1 });
51
+ const scale = Math.max(width / vp.width, height / vp.height);
52
+ const svp = page.getViewport({ scale });
53
+
54
+ const canvas = new OffscreenCanvas(Math.ceil(svp.width), Math.ceil(svp.height));
55
+ const ctx = canvas.getContext('2d', { alpha: true });
56
+ await page.render({ canvasContext: ctx, viewport: svp, background: 'rgba(0,0,0,0)' }).promise;
57
+
58
+ const blob = await canvas.convertToBlob({ type: 'image/png' });
59
+ self.postMessage({ id, blob });
60
+ } finally {
61
+ if (typeof loadingTask.destroy === 'function') {
62
+ await loadingTask.destroy();
63
+ } else if (doc && typeof doc.destroy === 'function') {
64
+ await doc.destroy();
65
+ }
66
+ }
67
+ } catch (err) {
68
+ self.postMessage({ id, error: String(err) });
69
+ }
70
+ };
71
+ `,_G=15e3,vG=4,yG=0,bG=[];function xG(){for(;yG<vG;){let e=bG.shift();if(!e)return;e.start()}}function SG(e,t){return t!=null&&t.aborted?Promise.resolve(null):new Promise(n=>{let r=!1,i=!1,a=e=>{i||(i=!0,n(e))},o={start:()=>{i||(r=!0,t?.removeEventListener(`abort`,o.cancel),yG+=1,Promise.resolve().then(e).then(a,()=>a(null)).finally(()=>{--yG,xG()}))},cancel:()=>{if(r||i)return;let e=bG.indexOf(o);e>=0&&bG.splice(e,1),t?.removeEventListener(`abort`,o.cancel),a(null)}};t?.addEventListener(`abort`,o.cancel,{once:!0}),bG.push(o),xG()})}function CG(e,t,n,r,i,a){return a!=null&&a.aborted?Promise.resolve(null):new Promise(o=>{let s=null,c,l=!1,u=e=>{l||(l=!0,c!==void 0&&clearTimeout(c),a?.removeEventListener(`abort`,d),s&&=(s.onmessage=null,s.onerror=null,s.terminate(),null),o(e))},d=()=>u(null);try{let o=new Blob([gG],{type:`text/javascript`}),l=URL.createObjectURL(o);try{s=new Worker(l,{type:`module`})}finally{URL.revokeObjectURL(l)}s.onmessage=e=>{let{blob:t,error:n}=e.data;u(n?null:t??null)},s.onerror=()=>u(null),a?.addEventListener(`abort`,d,{once:!0});let f=e.slice();s.postMessage({id:1,pdfData:f,width:t,height:n,pdfjsUrl:r,pdfWorkerUrl:i},[f.buffer]),c=setTimeout(()=>u(null),_G)}catch{u(null)}})}async function wG(e,t,n,r,i){if(i!=null&&i.aborted)return null;let a=mG(r),o=hG(r);if(!a||!o||typeof OffscreenCanvas>`u`||typeof Worker>`u`)return null;try{let r=await SG(()=>CG(e,t,n,a,o,i),i);if(r&&!(i!=null&&i.aborted))return URL.createObjectURL(r)}catch{}return null}function TG(e){return(e.split(`.`).pop()?.toLowerCase()||``)===`wmf`}function EG(e){return(e.split(`.`).pop()?.toLowerCase()||``)===`emf`}var DG=0;function OG(e,t){if(_R(e.targetMode))return eV(e.target)?e.target:void 0;let n=XL(e.target,t.presentation.media);if(!n)return;let{mediaPath:r,data:i}=n;if(!TG(r))return QL(r,i,t.mediaUrlCache)}function kG(e,t){var n;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`${e.position.x}px`,r.style.top=`${e.position.y}px`,r.style.width=`${e.size.w}px`,r.style.height=`${e.size.h}px`,r.style.overflow=`hidden`;let i=FG(e),a=[];if(e.rotation!==0&&a.push(`rotate(${e.rotation}deg)`),e.flipH&&!i&&a.push(`scaleX(-1)`),e.flipV&&!i&&a.push(`scaleY(-1)`),a.length>0&&(r.style.transform=a.join(` `)),RG(r,e,t),e.isVideo)return QG(e,t,r),r;if(e.isAudio)return $G(e,t,r),r;let o=e.blipEmbed,s;if(o){let i=t.slide.rels.get(o);if(!i)return tK(r,`Missing image reference`),r;if(_R(i.targetMode)){if(s=eV(i.target)?i.target:void 0,!s)return tK(r,`Image not found`),r}else{let a=JL(i.target);if(TG(a))return nK(r,a),r;let o=XL(i.target,t.presentation.media);if(!o){if(t.presentation.mediaResolver){let a=ZL(i.target,t.presentation.media,t.presentation.mediaResolver).then(n=>{if(!n){tK(r,`Image not found`);return}AG(e,t,r,n.mediaPath,n.data)}).catch(()=>{tK(r,`Image not found`)});return(n=t.asyncTasks)==null||n.push(a),t.asyncTasks,r}return tK(r,`Image not found`),r}return AG(e,t,r,o.mediaPath,o.data),r}}else if(e.blipLink){if(s=eK(e.blipLink,t),!s)return tK(r,`Image not found`),r}else return tK(r,`No image data`),r;return jG(e,t,r,s),r}function AG(e,t,n,r,i){if(EG(r)){rK(i instanceof Uint8Array?i:new Uint8Array(i),e,t,n,r);return}jG(e,t,n,QL(r,i,t.mediaUrlCache))}function jG(e,t,n,r){let i=e.source.child(`blipFill`),a=i.child(`blip`),o=ZG(a);if(i.child(`tile`).exists()){n.style.backgroundImage=`url("${r}")`,n.style.backgroundRepeat=`repeat`,n.style.backgroundSize=`auto`,o<1&&(n.style.opacity=`${Number(o.toFixed(4))}`);return}let s=document.createElement(`img`);s.src=r,s.style.width=`100%`,s.style.height=`100%`,s.style.objectFit=`fill`,s.style.display=`block`,s.draggable=!1;let c=e.source.child(`blipFill`).child(`stretch`).child(`fillRect`),l=c.exists()?NG(c):void 0,u=FG(e);if(u){LG(e,n,r,u,l),o<1&&(n.style.opacity=`${Number(o.toFixed(4))}`);return}if(l&&PG(s,l),e.crop){let{top:t,right:n,bottom:r,left:i}=e.crop,a=1-i-n,o=1-t-r;if(a>.001&&o>.001){let n=1/a,r=1/o,c=e.size.w*((l?.width??100)/100),u=e.size.h*((l?.height??100)/100);s.style.width=`${(n*c).toFixed(4)}px`,s.style.height=`${(r*u).toFixed(4)}px`,s.style.marginLeft=`${(-i*n*c).toFixed(4)}px`,s.style.marginTop=`${(-t*r*u).toFixed(4)}px`}}o<1&&(n.style.opacity=`${Number(o.toFixed(4))}`),a.child(`grayscl`).exists()&&KG(s,`grayscale(1)`);let d=a.child(`duotone`);d.exists()&&sK(d,t,s);let f=a.child(`lum`);f.exists()&&cK(f,s);let p=a.child(`biLevel`);p.exists()&&lK(p,s),n.appendChild(s)}function MG(e,t){return(e.numAttr(t)??0)/1e3}function NG(e){let t=MG(e,`l`),n=MG(e,`t`),r=MG(e,`r`),i=MG(e,`b`);return{left:t,top:n,width:100-t-r,height:100-n-i}}function PG(e,t){e.style.position=`absolute`,e.style.left=`${t.left}%`,e.style.top=`${t.top}%`,e.style.width=`${t.width}%`,e.style.height=`${t.height}%`}function FG(e){let t=e.source.child(`spPr`).child(`custGeom`),n=e.customGeometry??(t.exists()?t:void 0);if(n!=null&&n.exists()){let t=e.source.child(`spPr`).child(`xfrm`).child(`ext`),r={w:t.numAttr(`cx`)??0,h:t.numAttr(`cy`)??0};return RH(n,e.size.w,e.size.h,r)||void 0}let r=e.source.child(`spPr`).child(`prstGeom`).attr(`prst`),i=e.presetGeometry??r;return!i||i===`rect`?void 0:nU(i,e.size.w,e.size.h)||void 0}function IG(e){if(e.flipH&&e.flipV)return`translate(${e.size.w} ${e.size.h}) scale(-1 -1)`;if(e.flipH)return`translate(${e.size.w} 0) scale(-1 1)`;if(e.flipV)return`translate(0 ${e.size.h}) scale(1 -1)`}function LG(e,t,n,r,i){let a=`http://www.w3.org/2000/svg`,o=document.createElementNS(a,`svg`);o.setAttribute(`viewBox`,`0 0 ${e.size.w} ${e.size.h}`),o.setAttribute(`width`,`100%`),o.setAttribute(`height`,`100%`),o.style.display=`block`,o.style.overflow=`hidden`;let s=`picture-clip-${DG++}`,c=document.createElementNS(a,`defs`),l=document.createElementNS(a,`clipPath`);l.setAttribute(`id`,s),l.setAttribute(`clipPathUnits`,`userSpaceOnUse`);let u=document.createElementNS(a,`path`);u.setAttribute(`d`,r);let d=IG(e);d&&u.setAttribute(`transform`,d),l.appendChild(u),c.appendChild(l),o.appendChild(c);let f=document.createElementNS(a,`image`);f.setAttribute(`href`,n),f.setAttribute(`preserveAspectRatio`,`none`),d&&f.setAttribute(`transform`,d);let p=document.createElementNS(a,`g`);p.setAttribute(`clip-path`,`url(#${s})`);let m=(i?.left??0)/100*e.size.w,h=(i?.top??0)/100*e.size.h,g=(i?.width??100)/100*e.size.w,_=(i?.height??100)/100*e.size.h;if(e.crop){let{top:t,right:n,bottom:r,left:a}=e.crop,o=1-a-n,s=1-t-r;if(o>.001&&s>.001){let n=1/o,r=1/s;g*=n,_*=r,m+=-a*n*((i?.width??100)/100)*e.size.w,h+=-t*r*((i?.height??100)/100)*e.size.h}}f.setAttribute(`x`,String(m)),f.setAttribute(`y`,String(h)),f.setAttribute(`width`,String(g)),f.setAttribute(`height`,String(_)),t.appendChild(o),o.appendChild(p),p.appendChild(f)}function RG(e,t,n){zG(e,t,n),HG(e,t,n),UG(e,t,n),XG(e,t,n)}function zG(e,t,n){let r=NB(t.source.child(`spPr`),n);r&&BG(e,r)}function BG(e,t){if(VG(e),t.includes(`gradient`)&&t.includes(` 0 0 / `)){let n=iV(t);if(n){e.style.backgroundImage=n.imageLayers,e.style.backgroundSize=`8px 8px`,e.style.backgroundRepeat=`repeat`,e.style.backgroundColor=n.color;return}}t.includes(`gradient`)||t.startsWith(`url(`)||t.includes(`repeating-`)?e.style.background=t:e.style.backgroundColor=t}function VG(e){e.style.background=``,e.style.backgroundColor=``,e.style.backgroundImage=``,e.style.backgroundRepeat=``,e.style.backgroundSize=``}function HG(e,t,n){let r=t.source.child(`style`).child(`lnRef`);if(t.line?.child(`noFill`).exists()??!1)return;let i=t.line?.exists()??!1,a=!i&&r.exists()&&(r.numAttr(`idx`)??0)>0&&(n.theme.lineStyles?.length??0)>=(r.numAttr(`idx`)??0)?n.theme.lineStyles[(r.numAttr(`idx`)??1)-1]:void 0,o=i?t.line:a;if(!(o!=null&&o.exists()))return;let s=IB(o,n,r);s.width<=0||s.color===`transparent`||(e.style.boxSizing=`border-box`,e.style.border=`${s.width}px ${s.dash} ${s.color}`)}function UG(e,t,n){let r=t.source.child(`spPr`).child(`effectLst`);if(!r.exists())return;let i=r.child(`outerShdw`);i.exists()&&WG(e,t,i,n);let a=r.child(`glow`);a.exists()&&qG(e,a,n);let o=r.child(`softEdge`);o.exists()&&JG(e,t,o);let s=r.child(`reflection`);s.exists()&&YG(e,s)}function WG(e,t,n,r){let i=n.numAttr(`dir`)??0,a=Y(n.numAttr(`dist`)??0),o=Y(n.numAttr(`blurRad`)??0),s=i/6e4,c=a*Math.cos(s*Math.PI/180),l=a*Math.sin(s*Math.PI/180),u=GG(n,r,`rgba(0,0,0,0.4)`),d=n.numAttr(`sx`),f=n.numAttr(`sy`);if(d!=null&&f!=null&&d>0&&f>0){let n=d/1e5,r=f/1e5,i=t.size.w*(n-1)/2,a=t.size.h*(r-1)/2,s=Math.max(0,(i+a)/2);e.style.boxShadow=`${c.toFixed(1)}px ${l.toFixed(1)}px ${o.toFixed(1)}px ${s.toFixed(1)}px ${u}`;return}KG(e,`drop-shadow(${c.toFixed(1)}px ${l.toFixed(1)}px ${o.toFixed(1)}px ${u})`)}function GG(e,t,n){let{color:r,alpha:i}=OB(e,t);if(!r)return n;let{r:a,g:o,b:s}=Jz(r.startsWith(`#`)?r:`#${r}`);return`rgba(${a},${o},${s},${i.toFixed(3)})`}function KG(e,t){let n=e.style.filter.trim();e.style.filter=n?`${n} ${t}`:t}function qG(e,t,n){let r=Y(t.numAttr(`rad`)??0);if(!(r>0))return;let{color:i,alpha:a}=OB(t,n);if(!i||a<=0)return;let{r:o,g:s,b:c}=Jz(i.startsWith(`#`)?i:`#${i}`);KG(e,`drop-shadow(0px 0px ${r.toFixed(1)}px rgba(${o},${s},${c},${a.toFixed(3)}))`)}function JG(e,t,n){let r=Y(n.numAttr(`rad`)??0);if(!(r>0))return;let i=Math.max(0,Math.min(t.size.w,t.size.h)/2),a=`${Number((i>0?Math.min(r,i):r).toFixed(4))}px`,o=`var(--pptx-soft-edge-radius)`,s=[`linear-gradient(to right, transparent 0, black ${o}, black calc(100% - ${o}), transparent 100%)`,`linear-gradient(to bottom, transparent 0, black ${o}, black calc(100% - ${o}), transparent 100%)`].join(`, `);e.style.setProperty(`--pptx-soft-edge-radius`,a),e.style.setProperty(`-webkit-mask-image`,s),e.style.setProperty(`mask-image`,s),e.style.setProperty(`-webkit-mask-size`,`100% 100%`),e.style.setProperty(`mask-size`,`100% 100%`),e.style.setProperty(`-webkit-mask-repeat`,`no-repeat`),e.style.setProperty(`mask-repeat`,`no-repeat`),e.style.setProperty(`-webkit-mask-composite`,`source-in`),e.style.setProperty(`mask-composite`,`intersect`);let c=e.style;c.webkitMaskImage=s,c.maskImage=s,c.webkitMaskComposite=`source-in`,c.maskComposite=`intersect`}function YG(e,t){let n=Y(t.numAttr(`dist`)??0),r=(t.numAttr(`stA`)??5e4)/1e5,i=(t.numAttr(`endA`)??0)/1e5,a=Math.max(0,Math.min(100,(t.numAttr(`stPos`)??0)/1e3)),o=Math.max(0,Math.min(100,(t.numAttr(`endPos`)??1e5)/1e3)),s=`linear-gradient(to bottom, rgba(255,255,255,${r.toFixed(3)}) ${a.toFixed(1)}%, rgba(255,255,255,${i.toFixed(3)}) ${o.toFixed(1)}%)`,c=`below ${n.toFixed(1)}px ${s}`;e.style.setProperty(`-webkit-box-reflect`,c),e.style.webkitBoxReflect=c}function XG(e,t,n){if(!t.hlinkClick||!n.onNavigate)return;let{action:r,rId:i}=t.hlinkClick,a=i?n.slide.rels.get(i):void 0,o=iH(n,r,a);if(o!==void 0){e.style.cursor=`pointer`,e.title=t.hlinkClick.tooltip||aH(o),e.addEventListener(`click`,e=>{e.stopPropagation(),n.onNavigate({slideIndex:o})});return}i&&(!a||!_R(a.targetMode)||!$B(a.target)||(e.style.cursor=`pointer`,e.title=t.hlinkClick.tooltip||a.target,e.addEventListener(`click`,e=>{e.stopPropagation(),n.onNavigate({url:a.target})})))}function ZG(e){let t=1,n=e.child(`alphaModFix`);n.exists()&&(t*=(n.numAttr(`amt`)??1e5)/1e5);let r=e.child(`alphaMod`);r.exists()&&(t*=(r.numAttr(`val`)??1e5)/1e5);let i=e.child(`alphaOff`);return i.exists()&&(t+=(i.numAttr(`val`)??0)/1e5),Math.max(0,Math.min(1,t))}function QG(e,t,n){let r=eK(e.mediaRId,t),i;if(e.blipEmbed){let n=t.slide.rels.get(e.blipEmbed);n&&(i=OG(n,t))}if(r){let e=document.createElement(`video`);e.src=r,e.preload=`none`,e.controls=!0,e.style.width=`100%`,e.style.height=`100%`,e.style.objectFit=`contain`,e.style.backgroundColor=`#000`,i&&(e.poster=i),n.appendChild(e)}else if(i){let e=document.createElement(`img`);e.src=i,e.style.width=`100%`,e.style.height=`100%`,e.style.objectFit=`fill`,n.appendChild(e);let t=document.createElement(`div`);t.style.position=`absolute`,t.style.inset=`0`,t.style.display=`flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.backgroundColor=`rgba(0,0,0,0.3)`,t.style.color=`#fff`,t.style.fontSize=`24px`,t.textContent=`▶`,n.appendChild(t)}else tK(n,`Video`)}function $G(e,t,n){let r=eK(e.mediaRId,t);if(r){if(e.blipEmbed){let r=t.slide.rels.get(e.blipEmbed);if(r){let e=OG(r,t);if(e){let t=document.createElement(`img`);t.src=e,t.style.width=`100%`,t.style.height=`calc(100% - 32px)`,t.style.objectFit=`contain`,n.appendChild(t)}}}let i=document.createElement(`audio`);i.src=r,i.preload=`none`,i.controls=!0,i.style.width=`100%`,i.style.position=`absolute`,i.style.bottom=`0`,i.style.left=`0`,n.appendChild(i)}else tK(n,`Audio`)}function eK(e,t){if(!e)return;let n=t.slide.rels.get(e);if(!n)return;if(_R(n.targetMode))return eV(n.target)?n.target:void 0;let r=XL(n.target,t.presentation.media);if(!r)return;let{mediaPath:i,data:a}=r;return QL(i,a,t.mediaUrlCache)}function tK(e,t){let n=document.createElement(`div`);n.style.width=`100%`,n.style.height=`100%`,n.style.display=`flex`,n.style.alignItems=`center`,n.style.justifyContent=`center`,n.style.backgroundColor=`#f0f0f0`,n.style.color=`#888`,n.style.fontSize=`12px`,n.style.border=`1px dashed #ccc`,n.textContent=t,e.appendChild(n)}function nK(e,t){let n=t.split(`.`).pop()?.toUpperCase()||`Unknown`,r=document.createElement(`div`);r.style.width=`100%`,r.style.height=`100%`,r.style.display=`flex`,r.style.flexDirection=`column`,r.style.alignItems=`center`,r.style.justifyContent=`center`,r.style.backgroundColor=`#f5f5f5`,r.style.color=`#999`,r.style.fontSize=`11px`,r.style.border=`1px dashed #ddd`;let i=document.createElement(`div`);i.style.fontSize=`24px`,i.style.marginBottom=`4px`,i.textContent=`🖼`;let a=document.createElement(`div`);a.textContent=`Unsupported format: ${n}`,r.appendChild(i),r.appendChild(a),e.appendChild(r)}function rK(e,t,n,r,i){let a=$W(e);switch(a.type){case`pdf`:iK(a.data,r,t,n,i);break;case`bitmap`:aK(a.imageData,r,n,i);break}}function iK(e,t,n,r,i){var a;let o=`${i}:emf-pdf`,s=r.mediaUrlCache.get(o);if(s){t.appendChild(oK(s));return}let c=wG(e,n.size.w,n.size.h,r.pdfjs,r.signal).then(e=>{var n;if(e){if((n=r.signal)!=null&&n.aborted){URL.revokeObjectURL(e);return}r.mediaUrlCache.set(o,e),t.appendChild(oK(e))}}).catch(()=>{});(a=r.asyncTasks)==null||a.push(c)}function aK(e,t,n,r){var i;let a=`${r}:emf-bitmap`,o=n.mediaUrlCache.get(a);if(o){t.appendChild(oK(o));return}let s=document.createElement(`canvas`);s.width=e.width,s.height=e.height;let c=s.getContext(`2d`);if(!c)return;c.putImageData(e,0,0);let l=new Promise(e=>{s.toBlob(r=>{if(r){let e=URL.createObjectURL(r);n.mediaUrlCache.set(a,e),t.appendChild(oK(e))}e()},`image/png`)});(i=n.asyncTasks)==null||i.push(l)}function oK(e){let t=document.createElement(`img`);return t.src=e,t.style.width=`100%`,t.style.height=`100%`,t.style.objectFit=`fill`,t.style.display=`block`,t.draggable=!1,t}function sK(e,t,n,r){let i=e.allChildren();if(i.length<2)return;let{color:a}=OB(i[0],t),{color:o}=OB(i[1],t);if(!a||!o)return;let s=a.startsWith(`#`)?a:`#${a}`,c=o.startsWith(`#`)?o:`#${o}`,l=Jz(s),u=Jz(c),d=()=>{let e=n.naturalWidth,t=n.naturalHeight;if(!e||!t)return;let r=document.createElement(`canvas`);r.width=e,r.height=t;let i=r.getContext(`2d`);if(!i)return;i.drawImage(n,0,0);let a=i.getImageData(0,0,e,t),o=a.data;for(let e=0;e<o.length;e+=4){let t=(.2126*o[e]+.7152*o[e+1]+.0722*o[e+2])/255;o[e]=Math.round(l.r+(u.r-l.r)*t),o[e+1]=Math.round(l.g+(u.g-l.g)*t),o[e+2]=Math.round(l.b+(u.b-l.b)*t)}i.putImageData(a,0,0),n.src=r.toDataURL()};n.complete&&n.naturalWidth?d():n.addEventListener(`load`,d,{once:!0})}function cK(e,t){let n=(e.numAttr(`bright`)??0)/1e5,r=(e.numAttr(`contrast`)??0)/1e5;if(n===0&&r===0)return;let i=()=>{let e=t.naturalWidth,i=t.naturalHeight;if(!e||!i)return;let a=document.createElement(`canvas`);a.width=e,a.height=i;let o=a.getContext(`2d`);if(!o)return;o.drawImage(t,0,0);let s=o.getImageData(0,0,e,i),c=s.data;for(let e=0;e<c.length;e+=4)for(let t=0;t<3;t++){let i=c[e+t]/255;r!==0&&(i=.5+(i-.5)*(1+r)),i+=n,c[e+t]=Math.round(Math.max(0,Math.min(255,i*255)))}o.putImageData(s,0,0),t.src=a.toDataURL()};t.complete&&t.naturalWidth?i():t.addEventListener(`load`,i,{once:!0})}function lK(e,t){let n=(e.numAttr(`thresh`)??5e4)/1e5,r=()=>{let e=t.naturalWidth,r=t.naturalHeight;if(!e||!r)return;let i=document.createElement(`canvas`);i.width=e,i.height=r;let a=i.getContext(`2d`);if(!a)return;a.drawImage(t,0,0);let o=a.getImageData(0,0,e,r),s=o.data;for(let e=0;e<s.length;e+=4){let t=(.2126*s[e]+.7152*s[e+1]+.0722*s[e+2])/255>=n?255:0;s[e]=t,s[e+1]=t,s[e+2]=t}a.putImageData(o,0,0),t.src=i.toDataURL()};t.complete&&t.naturalWidth?r():t.addEventListener(`load`,r,{once:!0})}var uK=new Map([[`{2D5ABB26-0587-4C30-8999-92F81FD0307C}`,[`Themed-Style-1`,``]],[`{3C2FFA5D-87B4-456A-9821-1D502468CF0F}`,[`Themed-Style-1`,`accent1`]],[`{284E427A-3D55-4303-BF80-6455036E1DE7}`,[`Themed-Style-1`,`accent2`]],[`{69C7853C-536D-4A76-A0AE-DD22124D55A5}`,[`Themed-Style-1`,`accent3`]],[`{775DCB02-9BB8-47FD-8907-85C794F793BA}`,[`Themed-Style-1`,`accent4`]],[`{35758FB7-9AC5-4552-8A53-C91805E547FA}`,[`Themed-Style-1`,`accent5`]],[`{08FB837D-C827-4EFA-A057-4D05807E0F7C}`,[`Themed-Style-1`,`accent6`]],[`{5940675A-B579-460E-94D1-54222C63F5DA}`,[`Themed-Style-2`,``]],[`{D113A9D2-9D6B-4929-AA2D-F23B5EE8CBE7}`,[`Themed-Style-2`,`accent1`]],[`{18603FDC-E32A-4AB5-989C-0864C3EAD2B8}`,[`Themed-Style-2`,`accent2`]],[`{306799F8-075E-4A3A-A7F6-7FBC6576F1A4}`,[`Themed-Style-2`,`accent3`]],[`{E269D01E-BC32-4049-B463-5C60D7B0CCD2}`,[`Themed-Style-2`,`accent4`]],[`{327F97BB-C833-4FB7-BDE5-3F7075034690}`,[`Themed-Style-2`,`accent5`]],[`{638B1855-1B75-4FBE-930C-398BA8C253C6}`,[`Themed-Style-2`,`accent6`]],[`{9D7B26C5-4107-4FEC-AEDC-1716B250A1EF}`,[`Light-Style-1`,``]],[`{3B4B98B0-60AC-42C2-AFA5-B58CD77FA1E5}`,[`Light-Style-1`,`accent1`]],[`{0E3FDE45-AF77-4B5C-9715-49D594BDF05E}`,[`Light-Style-1`,`accent2`]],[`{C083E6E3-FA7D-4D7B-A595-EF9225AFEA82}`,[`Light-Style-1`,`accent3`]],[`{D27102A9-8310-4765-A935-A1911B00CA55}`,[`Light-Style-1`,`accent4`]],[`{5FD0F851-EC5A-4D38-B0AD-8093EC10F338}`,[`Light-Style-1`,`accent5`]],[`{68D230F3-CF80-4859-8CE7-A43EE81993B5}`,[`Light-Style-1`,`accent6`]],[`{7E9639D4-E3E2-4D34-9284-5A2195B3D0D7}`,[`Light-Style-2`,``]],[`{69012ECD-51FC-41F1-AA8D-1B2483CD663E}`,[`Light-Style-2`,`accent1`]],[`{72833802-FEF1-4C79-8D5D-14CF1EAF98D9}`,[`Light-Style-2`,`accent2`]],[`{F2DE63D5-997A-4646-A377-4702673A728D}`,[`Light-Style-2`,`accent3`]],[`{17292A2E-F333-43FB-9621-5CBBE7FDCDCB}`,[`Light-Style-2`,`accent4`]],[`{5A111915-BE36-4E01-A7E5-04B1672EAD32}`,[`Light-Style-2`,`accent5`]],[`{912C8C85-51F0-491E-9774-3900AFEF0FD7}`,[`Light-Style-2`,`accent6`]],[`{616DA210-FB5B-4158-B5E0-FEB733F419BA}`,[`Light-Style-3`,``]],[`{BC89EF96-8CEA-46FF-86C4-4CE0E7609802}`,[`Light-Style-3`,`accent1`]],[`{5DA37D80-6434-44D0-A028-1B22A696006F}`,[`Light-Style-3`,`accent2`]],[`{8799B23B-EC83-4686-B30A-512413B5E67A}`,[`Light-Style-3`,`accent3`]],[`{ED083AE6-46FA-4A59-8FB0-9F97EB10719F}`,[`Light-Style-3`,`accent4`]],[`{BDBED569-4797-4DF1-A0F4-6AAB3CD982D8}`,[`Light-Style-3`,`accent5`]],[`{E8B1032C-EA38-4F05-BA0D-38AFFFC7BED3}`,[`Light-Style-3`,`accent6`]],[`{793D81CF-94F2-401A-BA57-92F5A7B2D0C5}`,[`Medium-Style-1`,``]],[`{B301B821-A1FF-4177-AEE7-76D212191A09}`,[`Medium-Style-1`,`accent1`]],[`{9DCAF9ED-07DC-4A11-8D7F-57B35C25682E}`,[`Medium-Style-1`,`accent2`]],[`{1FECB4D8-DB02-4DC6-A0A2-4F2EBAE1DC90}`,[`Medium-Style-1`,`accent3`]],[`{1E171933-4619-4E11-9A3F-F7608DF75F80}`,[`Medium-Style-1`,`accent4`]],[`{FABFCF23-3B69-468F-B69F-88F6DE6A72F2}`,[`Medium-Style-1`,`accent5`]],[`{10A1B5D5-9B99-4C35-A422-299274C87663}`,[`Medium-Style-1`,`accent6`]],[`{073A0DAA-6AF3-43AB-8588-CEC1D06C72B9}`,[`Medium-Style-2`,``]],[`{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}`,[`Medium-Style-2`,`accent1`]],[`{21E4AEA4-8DFA-4A89-87EB-49C32662AFE0}`,[`Medium-Style-2`,`accent2`]],[`{F5AB1C69-6EDB-4FF4-983F-18BD219EF322}`,[`Medium-Style-2`,`accent3`]],[`{00A15C55-8517-42AA-B614-E9B94910E393}`,[`Medium-Style-2`,`accent4`]],[`{7DF18680-E054-41AD-8BC1-D1AEF772440D}`,[`Medium-Style-2`,`accent5`]],[`{93296810-A885-4BE3-A3E7-6D5BEEA58F35}`,[`Medium-Style-2`,`accent6`]],[`{8EC20E35-A176-4012-BC5E-935CFFF8708E}`,[`Medium-Style-3`,``]],[`{6E25E649-3F16-4E02-A733-19D2CDBF48F0}`,[`Medium-Style-3`,`accent1`]],[`{85BE263C-DBD7-4A20-BB59-AAB30ACAA65A}`,[`Medium-Style-3`,`accent2`]],[`{EB344D84-9AFB-497E-A393-DC336BA19D2E}`,[`Medium-Style-3`,`accent3`]],[`{EB9631B5-78F2-41C9-869B-9F39066F8104}`,[`Medium-Style-3`,`accent4`]],[`{74C1A8A3-306A-4EB7-A6B1-4F7E0EB9C5D6}`,[`Medium-Style-3`,`accent5`]],[`{2A488322-F2BA-4B5B-9748-0D474271808F}`,[`Medium-Style-3`,`accent6`]],[`{D7AC3CCA-C797-4891-BE02-D94E43425B78}`,[`Medium-Style-4`,``]],[`{69CF1AB2-1976-4502-BF36-3FF5EA218861}`,[`Medium-Style-4`,`accent1`]],[`{8A107856-5554-42FB-B03E-39F5DBC370BA}`,[`Medium-Style-4`,`accent2`]],[`{0505E3EF-67EA-436B-97B2-0124C06EBD24}`,[`Medium-Style-4`,`accent3`]],[`{C4B1156A-380E-4F78-BDF5-A606A8083BF9}`,[`Medium-Style-4`,`accent4`]],[`{22838BEF-8BB2-4498-84A7-C5851F593DF1}`,[`Medium-Style-4`,`accent5`]],[`{16D9F66E-5EB9-4882-86FB-DCBF35E3C3E4}`,[`Medium-Style-4`,`accent6`]],[`{E8034E78-7F5D-4C2E-B375-FC64B27BC917}`,[`Dark-Style-1`,``]],[`{125E5076-3810-47DD-B79F-674D7AD40C01}`,[`Dark-Style-1`,`accent1`]],[`{37CE84F3-28C3-443E-9E96-99CF82512B78}`,[`Dark-Style-1`,`accent2`]],[`{D03447BB-5D67-496B-8E87-E561075AD55C}`,[`Dark-Style-1`,`accent3`]],[`{E929F9F4-4A8F-4326-A1B4-22849713DDAB}`,[`Dark-Style-1`,`accent4`]],[`{8FD4443E-F989-4FC4-A0C8-D5A2AF1F390B}`,[`Dark-Style-1`,`accent5`]],[`{AF606853-7671-496A-8E4F-DF71F8EC918B}`,[`Dark-Style-1`,`accent6`]],[`{5202B0CA-FC54-4496-8BCA-5EF66A818D29}`,[`Dark-Style-2`,``]],[`{0660B408-B3CF-4A94-85FC-2B1E0A45F4A2}`,[`Dark-Style-2`,`accent1`]],[`{91EBBBCC-DAD2-459C-BE2E-F6DE35CF9A28}`,[`Dark-Style-2`,`accent3`]],[`{46F890A9-2807-4EBB-B81D-B2AA78EC7F39}`,[`Dark-Style-2`,`accent5`]]]),dK=`xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"`;function fK(e,t){return`<a:fill><a:solidFill><a:schemeClr val="${e}">${t?`<a:${t}/>`:``}</a:schemeClr></a:solidFill></a:fill>`}function Q(e,t){return`<a:ln w="12700"><a:solidFill><a:schemeClr val="${e}">${t?`<a:${t}/>`:``}</a:schemeClr></a:solidFill></a:ln>`}function pK(e,t){return`<a:tcTxStyle${t?` b="on"`:``}>${e?`<a:schemeClr val="${e}"/>`:``}</a:tcTxStyle>`}function $(e,t){if(!t.textColor&&!t.bold&&!t.fill&&!t.borders)return``;let n=[`<a:${e}>`];if((t.textColor||t.bold)&&n.push(pK(t.textColor??``,t.bold)),n.push(`<a:tcStyle>`),t.fill&&n.push(t.fill),t.borders){n.push(`<a:tcBdr>`);for(let[e,r]of Object.entries(t.borders))n.push(`<a:${e}>${r}</a:${e}>`);n.push(`</a:tcBdr>`)}return n.push(`</a:tcStyle>`),n.push(`</a:${e}>`),n.join(``)}function mK(e,t){let n=e!==``,r=n?e:`tx1`,i=[];if(n){let e={left:Q(r),right:Q(r),top:Q(r),bottom:Q(r),insideH:Q(r),insideV:Q(r)};i.push($(`wholeTbl`,{textColor:`dk1`,borders:e}));let t=fK(r,`alpha val="40000"`);i.push($(`band1H`,{fill:t})),i.push($(`band1V`,{fill:t})),i.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:fK(r),borders:{left:Q(r),right:Q(r),top:Q(r),bottom:Q(`lt1`)}})),i.push($(`lastRow`,{bold:!0,borders:{left:Q(r),right:Q(r),top:Q(r),bottom:Q(r)}}));let n={left:Q(r),right:Q(r),top:Q(r),bottom:Q(r),insideH:Q(r)};i.push($(`firstCol`,{bold:!0,borders:n})),i.push($(`lastCol`,{bold:!0,borders:n}))}else{i.push($(`wholeTbl`,{textColor:`tx1`}));let e=fK(`tx1`,`alpha val="40000"`);i.push($(`band1H`,{fill:e})),i.push($(`band1V`,{fill:e}))}return TK(t,`Themed-Style-1`,i.join(``))}function hK(e,t){let n=e!==``,r=[];if(n){let n=e,i=`<a:tblBg><a:fillRef idx="1"><a:schemeClr val="${n}"/></a:fillRef></a:tblBg>`,a={left:Q(n,`tint val="50000"`),right:Q(n,`tint val="50000"`),top:Q(n,`tint val="50000"`),bottom:Q(n,`tint val="50000"`)};r.push($(`wholeTbl`,{textColor:`lt1`,borders:a}));let o=fK(`lt1`,`alpha val="20000"`);return r.push($(`band1H`,{fill:o})),r.push($(`band1V`,{fill:o})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,borders:{bottom:Q(`lt1`)}})),r.push($(`lastRow`,{bold:!0,borders:{top:Q(`lt1`)}})),r.push($(`firstCol`,{bold:!0,borders:{right:Q(`lt1`)}})),r.push($(`lastCol`,{bold:!0,borders:{left:Q(`lt1`)}})),TK(t,`Themed-Style-2`,i+r.join(``))}else{let e={left:Q(`tx1`,`tint val="50000"`),right:Q(`tx1`,`tint val="50000"`),top:Q(`tx1`,`tint val="50000"`),bottom:Q(`tx1`,`tint val="50000"`),insideH:Q(`tx1`),insideV:Q(`tx1`)};r.push($(`wholeTbl`,{borders:e}));let n=fK(`tx1`,`alpha val="20000"`);return r.push($(`band1H`,{fill:n})),r.push($(`band1V`,{fill:n})),TK(t,`Themed-Style-2`,r.join(``))}}function gK(e,t){let n=e||`tx1`,r=[];r.push($(`wholeTbl`,{textColor:`tx1`,borders:{top:Q(n),bottom:Q(n)}}));let i=fK(n,`alpha val="20000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:`tx1`,bold:!0,borders:{bottom:Q(n)}})),r.push($(`lastRow`,{bold:!0,borders:{top:Q(n)}})),r.push($(`firstCol`,{textColor:`tx1`,bold:!0})),r.push($(`lastCol`,{textColor:`tx1`,bold:!0})),TK(t,`Light-Style-1`,r.join(``))}function _K(e,t){let n=e||`tx1`,r=[];return r.push($(`wholeTbl`,{textColor:`tx1`,borders:{left:Q(n),right:Q(n),top:Q(n),bottom:Q(n)}})),r.push($(`band1H`,{borders:{top:Q(n),bottom:Q(n)}})),r.push($(`band1V`,{borders:{left:Q(n),right:Q(n)}})),r.push($(`band2V`,{borders:{left:Q(n),right:Q(n)}})),r.push($(`firstRow`,{textColor:`bg1`,bold:!0,fill:fK(n)})),r.push($(`lastRow`,{bold:!0,borders:{top:Q(n)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),TK(t,`Light-Style-2`,r.join(``))}function vK(e,t){let n=e||`tx1`,r=[];r.push($(`wholeTbl`,{textColor:`tx1`,borders:{left:Q(n),right:Q(n),top:Q(n),bottom:Q(n),insideH:Q(n),insideV:Q(n)}}));let i=fK(n,`alpha val="20000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:n,bold:!0,borders:{bottom:Q(n)}})),r.push($(`lastRow`,{bold:!0,borders:{top:Q(n)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),TK(t,`Light-Style-3`,r.join(``))}function yK(e,t){let n=e||`dk1`,r=[];r.push($(`wholeTbl`,{textColor:`dk1`,fill:fK(`lt1`),borders:{left:Q(n),right:Q(n),top:Q(n),bottom:Q(n),insideH:Q(n)}}));let i=fK(n,`tint val="20000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:fK(n)})),r.push($(`lastRow`,{bold:!0,fill:fK(`lt1`),borders:{top:Q(n)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),TK(t,`Medium-Style-1`,r.join(``))}function bK(e,t){let n=e||`dk1`,r=[];r.push($(`wholeTbl`,{textColor:`dk1`,fill:fK(n,`tint val="20000"`),borders:{left:Q(`lt1`),right:Q(`lt1`),top:Q(`lt1`),bottom:Q(`lt1`),insideH:Q(`lt1`),insideV:Q(`lt1`)}}));let i=fK(n,`tint val="40000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:fK(n),borders:{bottom:Q(`lt1`)}})),r.push($(`lastRow`,{textColor:`lt1`,bold:!0,fill:fK(n),borders:{top:Q(`lt1`)}})),r.push($(`firstCol`,{textColor:`lt1`,bold:!0,fill:fK(n)})),r.push($(`lastCol`,{textColor:`lt1`,bold:!0,fill:fK(n)})),TK(t,`Medium-Style-2`,r.join(``))}function xK(e,t){let n=e||`dk1`,r=[];r.push($(`wholeTbl`,{textColor:`dk1`,fill:fK(`lt1`),borders:{top:Q(`dk1`),bottom:Q(`dk1`)}}));let i=fK(`dk1`,`tint val="20000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:fK(n),borders:{bottom:Q(`dk1`)}})),r.push($(`lastRow`,{bold:!0,fill:fK(`lt1`),borders:{top:Q(`dk1`)}})),r.push($(`firstCol`,{textColor:`lt1`,bold:!0,fill:fK(n)})),r.push($(`lastCol`,{textColor:`lt1`,bold:!0,fill:fK(n)})),TK(t,`Medium-Style-3`,r.join(``))}function SK(e,t){let n=e||`dk1`,r=[];r.push($(`wholeTbl`,{textColor:`dk1`,fill:fK(n,`tint val="20000"`),borders:{left:Q(n),right:Q(n),top:Q(n),bottom:Q(n),insideH:Q(n),insideV:Q(n)}}));let i=fK(n,`tint val="40000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:n,bold:!0,fill:fK(n,`tint val="20000"`)})),r.push($(`lastRow`,{bold:!0,fill:fK(`dk1`,`tint val="20000"`),borders:{top:Q(`dk1`)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),TK(t,`Medium-Style-4`,r.join(``))}function CK(e,t){let n=e!==``,r=n?e:`dk1`,i=n?`shade`:`tint`,a=[];a.push($(`wholeTbl`,{textColor:`dk1`,fill:fK(r,`${i} val="20000"`)}));let o=fK(r,`${i} val="40000"`);return a.push($(`band1H`,{fill:o})),a.push($(`band1V`,{fill:o})),a.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:fK(`dk1`),borders:{bottom:Q(`lt1`)}})),a.push($(`lastRow`,{bold:!0,fill:fK(r),borders:{top:Q(`lt1`)}})),a.push($(`firstCol`,{bold:!0,fill:fK(r,`${i} val="60000"`),borders:{right:Q(`lt1`)}})),a.push($(`lastCol`,{bold:!0,fill:fK(r,`${i} val="60000"`),borders:{left:Q(`lt1`)}})),TK(t,`Dark-Style-1`,a.join(``))}function wK(e,t){let n=e||`dk1`,r=[],i;i=e===``?`dk1`:e===`accent1`?`accent2`:e===`accent3`?`accent4`:e===`accent5`?`accent6`:n,r.push($(`wholeTbl`,{textColor:`dk1`,fill:fK(n,`tint val="20000"`)}));let a=fK(n,`tint val="40000"`);return r.push($(`band1H`,{fill:a})),r.push($(`band1V`,{fill:a})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:fK(i)})),r.push($(`lastRow`,{bold:!0,fill:fK(n,`tint val="20000"`),borders:{top:Q(`dk1`)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),TK(t,`Dark-Style-2`,r.join(``))}function TK(e,t,n){return`<a:tblStyle ${dK} styleId="${e}" styleName="${t}">${n}</a:tblStyle>`}var EK={"Themed-Style-1":mK,"Themed-Style-2":hK,"Light-Style-1":gK,"Light-Style-2":_K,"Light-Style-3":vK,"Medium-Style-1":yK,"Medium-Style-2":bK,"Medium-Style-3":xK,"Medium-Style-4":SK,"Dark-Style-1":CK,"Dark-Style-2":wK},DK=new Map;function OK(e){let t=DK.get(e);if(t)return t;let n=uK.get(e);if(!n)return;let[r,i]=n,a=EK[r];if(!a)return;let o=gR(a(i,e));if(o.exists())return DK.set(e,o),o}uK.size;function kK(e,t){if(AK(e),t.includes(`gradient`)&&t.includes(` 0 0 / `)){let n=iV(t);if(n){e.style.backgroundImage=n.imageLayers,e.style.backgroundSize=`8px 8px`,e.style.backgroundRepeat=`repeat`,e.style.backgroundColor=n.color;return}}t.includes(`gradient`)||t.startsWith(`url(`)||t.includes(`repeating-`)?e.style.background=t:e.style.backgroundColor=t}function AK(e){e.style.background=``,e.style.backgroundColor=``,e.style.backgroundImage=``,e.style.backgroundRepeat=``,e.style.backgroundSize=``}function jK(e,t){if(!e||!t.presentation.tableStyles)return;let n=t.presentation.tableStyles;for(let t of n.children(`tblStyle`))if(t.attr(`styleId`)===e)return t;for(let t of n.children())if(t.localName===`tblStyle`&&t.attr(`styleId`)===e)return t;return OK(e)}function MK(e,t,n,r,i,a){let o=[],s=(e,t)=>{if(!a)return!1;let n=a.attr(e);if(n!==void 0)return LR(n);let r=a.child(t);return r.exists()?LR(r.attr(`val`),!0):!1},c=s(`bandRow`,`bandRow`),l=s(`bandCol`,`bandCol`),u=s(`firstRow`,`firstRow`),d=s(`lastRow`,`lastRow`),f=s(`firstCol`,`firstCol`),p=s(`lastCol`,`lastCol`),m=e.child(`wholeTbl`);if(m.exists()&&o.push(m),c){let n=u?t-1:t;if(n>=0&&n%2==1){let t=e.child(`band2H`);t.exists()&&o.push(t)}else if(n>=0&&n%2==0){let t=e.child(`band1H`);t.exists()&&o.push(t)}}if(l)if(n%2==1){let t=e.child(`band2V`);t.exists()&&o.push(t)}else{let t=e.child(`band1V`);t.exists()&&o.push(t)}if(u&&t===0){let t=e.child(`firstRow`);t.exists()&&o.push(t)}if(d&&t===r-1){let t=e.child(`lastRow`);t.exists()&&o.push(t)}if(f&&n===0){let t=e.child(`firstCol`);t.exists()&&o.push(t)}if(p&&n===i-1){let t=e.child(`lastCol`);t.exists()&&o.push(t)}return o}function NK(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n].child(`tcTxStyle`);if(!r.exists())continue;let i={},a=r.attr(`b`);a!==void 0&&(i.bold=LR(a));let o=r.attr(`i`);o!==void 0&&(i.italic=LR(o));for(let e of r.allChildren()){let n=e.localName;if(n===`schemeClr`||n===`solidFill`||n===`srgbClr`||n===`scrgbClr`||n===`prstClr`||n===`sysClr`){let{color:n,alpha:r}=OB(e,t),a=n.startsWith(`#`)?n:`#${n}`;if(r<1){let{r:e,g:t,b:n}=Jz(a);i.color=`rgba(${e},${t},${n},${r.toFixed(3)})`}else i.color=a;break}}let s=r.child(`font`);if(s.exists()){let e=VV([s.child(`latin`).attr(`typeface`),s.child(`ea`).attr(`typeface`),s.child(`cs`).attr(`typeface`)],t);e.length>0&&(i.fontFamily=e)}if(!i.fontFamily){let e=r.child(`fontRef`);if(e.exists()){let n=e.attr(`idx`);if(n===`major`){let e=VV([`+mj-lt`,`+mj-ea`,`+mj-cs`],t);e.length>0&&(i.fontFamily=e)}else if(n===`minor`){let e=VV([`+mn-lt`,`+mn-ea`,`+mn-cs`],t);e.length>0&&(i.fontFamily=e)}}}return i}}function PK(e,t,n){let r=t.child(`fill`);if(!r.exists())return!1;if(r.child(`noFill`).exists())return AK(e),e.style.background=`transparent`,!0;let i=r.child(`solidFill`);if(i.exists()){AK(e);let{color:t,alpha:r}=OB(i,n),a=t.startsWith(`#`)?t:`#${t}`;if(r<1){let{r:t,g:n,b:i}=Jz(a);e.style.backgroundColor=`rgba(${t},${n},${i},${r.toFixed(3)})`}else e.style.backgroundColor=a;return!0}let a=NB(r,n);if(a)return kK(e,a),!0;let o=r.child(`fillRef`);if(o.exists()){let{fillCss:t}=KB(o,n);return kK(e,t),!0}return!1}function FK(e,t,n,r,i,a,o){let s=t.child(`tcBdr`);if(!s.exists())return;let c=[[`top`,`borderTop`],[`bottom`,`borderBottom`],[`left`,`borderLeft`],[`right`,`borderRight`]];s.child(`insideH`).exists()&&r!==void 0&&a!==void 0&&(r<a-1&&c.push([`insideH`,`borderBottom`]),r>0&&c.push([`insideH`,`borderTop`])),s.child(`insideV`).exists()&&i!==void 0&&o!==void 0&&(i<o-1&&c.push([`insideV`,`borderRight`]),i>0&&c.push([`insideV`,`borderLeft`]));for(let[t,r]of c){let i=s.child(t);if(!i.exists())continue;let a=i.child(`ln`);if(a.exists()){if(a.child(`noFill`).exists())continue;let t=IB(a,n);t.width>0&&t.color!==`transparent`&&(e.style[r]=`${Math.max(t.width,.5)}px ${t.dash} ${t.color}`);continue}let o=i.child(`lnRef`);if(o.exists()){let t=o.numAttr(`idx`)??0;if(t===0)continue;let{color:i,alpha:a}=OB(o,n),s=i.startsWith(`#`)?i:`#${i}`,c=1;n.theme.lineStyles&&n.theme.lineStyles.length>=t&&(c=Y(n.theme.lineStyles[t-1].numAttr(`w`)??12700));let l=a<1?`rgba(${Jz(s).r},${Jz(s).g},${Jz(s).b},${a.toFixed(3)})`:s;c>0&&(e.style[r]=`${Math.max(c,.5)}px solid ${l}`)}}}function IK(e,t,n){let r=t.child(`tblBg`);if(!r.exists())return;let i=r.child(`fillRef`);if(i.exists()){let{fillCss:t}=KB(i,n);kK(e,t);return}let a=r.child(`solidFill`);if(a.exists()){AK(e);let{color:t,alpha:r}=OB(a,n),i=t.startsWith(`#`)?t:`#${t}`;if(r<1){let{r:t,g:n,b:a}=Jz(i);e.style.backgroundColor=`rgba(${t},${n},${a},${r.toFixed(3)})`}else e.style.backgroundColor=i;return}let o=NB(r,n);o&&kK(e,o)}function LK(e){let t=[];return e.flipH&&t.push(`scaleX(-1)`),e.flipV&&t.push(`scaleY(-1)`),t.join(` `)}function RK(e,t){let n=document.createElement(`div`);n.style.position=`absolute`,n.style.left=`${e.position.x}px`,n.style.top=`${e.position.y}px`,n.style.width=`${e.size.w}px`,n.style.height=`${e.size.h}px`,n.style.overflow=`hidden`;let r=[];e.rotation!==0&&r.push(`rotate(${e.rotation}deg)`),e.flipH&&r.push(`scaleX(-1)`),e.flipV&&r.push(`scaleY(-1)`),r.length>0&&(n.style.transform=r.join(` `));let i=jK(e.tableStyleId,t),a=e.properties,o=e.rows.length,s=e.columns.length,c=document.createElement(`table`);c.style.borderCollapse=`collapse`,c.style.width=`100%`,c.style.height=`100%`,c.style.tableLayout=`fixed`,i&&IK(c,i,t);let l=e.columns.reduce((e,t)=>e+t,0);if(l>0&&e.columns.length>0){let t=document.createElement(`colgroup`);for(let n of e.columns){let e=document.createElement(`col`);e.style.width=`${n/l*100}%`,t.appendChild(e)}c.appendChild(t)}let u=e.rows.reduce((e,t)=>e+t.height,0),d=document.createElement(`tbody`),f=0;for(let n=0;n<e.rows.length;n++){let r=e.rows[n],c=document.createElement(`tr`);r.height>0&&u>0&&(c.style.height=`${r.height/u*100}%`),f=0;for(let l of r.cells){if(l.hMerge||l.vMerge){l.vMerge&&!l.hMerge&&(f+=l.gridSpan);continue}let r=document.createElement(`td`);r.style.overflow=`hidden`,l.gridSpan>1&&(r.colSpan=l.gridSpan),l.rowSpan>1&&(r.rowSpan=l.rowSpan);let u=[];if(i){u=MK(i,n,f,o,s,a);for(let e of u){let i=e.child(`tcStyle`);i.exists()&&(PK(r,i,t),FK(r,i,t,n,f,o,s))}}zK(r,l,t);let d=u.length>0?NK(u,t):void 0;if(l.textBody){let n=LK(e)?document.createElement(`div`):r,i=LK(e);i&&n!==r&&(n.style.width=`100%`,n.style.height=`100%`,n.style.transform=i,n.style.transformOrigin=`center center`);let a={defaultLineHeight:`1`,trimOuterParagraphSpacing:!0,...d?{cellTextColor:d.color,cellTextBold:d.bold,cellTextItalic:d.italic,cellTextFontFamily:d.fontFamily}:{}};IH(l.textBody,void 0,t,n,a),n!==r&&r.appendChild(n)}c.appendChild(r),f+=l.gridSpan}d.appendChild(c)}return c.appendChild(d),n.appendChild(c),n}function zK(e,t,n){let r=t.properties;if(r?.attr(`horzOverflow`)===`overflow`&&(e.style.overflow=`visible`),r){if(r.child(`noFill`).exists())AK(e),e.style.background=`transparent`;else if(r.child(`solidFill`).exists()){let t=r.child(`solidFill`);AK(e);let{color:i,alpha:a}=OB(t,n),o=i.startsWith(`#`)?i:`#${i}`;if(a<1){let{r:t,g:n,b:r}=Jz(o);e.style.backgroundColor=`rgba(${t},${n},${r},${a.toFixed(3)})`}else e.style.backgroundColor=o}else{let t=NB(r,n);t&&kK(e,t)}BK(e,r,`lnT`,`borderTop`,n),BK(e,r,`lnB`,`borderBottom`,n),BK(e,r,`lnL`,`borderLeft`,n),BK(e,r,`lnR`,`borderRight`,n)}let i=r?.numAttr(`marL`),a=r?.numAttr(`marR`),o=r?.numAttr(`marT`),s=r?.numAttr(`marB`),c=91440;e.style.paddingLeft=`${Y(i??c)}px`,e.style.paddingRight=`${Y(a??c)}px`,e.style.paddingTop=`${Y(o??45720)}px`,e.style.paddingBottom=`${Y(s??45720)}px`;let l=r?.attr(`anchor`),u={t:`top`,ctr:`middle`,b:`bottom`};e.style.verticalAlign=u[l||`t`]||`top`}function BK(e,t,n,r,i){let a=t.child(n);if(!a.exists())return;if(a.child(`noFill`).exists()){e.style[r]=`none`;return}let o=IB(a,i);o.width>0&&o.color!==`transparent`&&(e.style[r]=`${Math.max(o.width,.5)}px ${o.dash} ${o.color}`)}function VK(e){return e.nodeType!==`table`&&e.nodeType!==`chart`}function HK(e){let t=(e%360+360)%360;return Math.abs(t-90)<1e-4||Math.abs(t-270)<1e-4}function UK(e,t,n,r){if(e.nodeType!==`shape`)return;let i=e;if(!i.textBoxBounds)return;let a=r?n:t,o=r?t:n,s=i.textBoxBounds;i.textBoxBounds={...s,x:s.x*a,y:s.y*o,w:s.w*a,h:s.h*o}}function WK(e,t,n){let{color:r,alpha:i}=OB(e,t);if(!r)return n;let{r:a,g:o,b:s}=Jz(r.startsWith(`#`)?r:`#${r}`);return`rgba(${a},${o},${s},${i.toFixed(3)})`}function GK(e,t,n,r){let i=n.numAttr(`dir`)??0,a=Y(n.numAttr(`dist`)??0),o=Y(n.numAttr(`blurRad`)??0),s=i/6e4,c=a*Math.cos(s*Math.PI/180),l=a*Math.sin(s*Math.PI/180),u=WK(n,r,`rgba(0,0,0,0.4)`),d=n.numAttr(`sx`),f=n.numAttr(`sy`);if(d!=null&&f!=null&&d>0&&f>0){let n=d/1e5,r=f/1e5,i=t.size.w*(n-1)/2,a=t.size.h*(r-1)/2,s=Math.max(0,(i+a)/2);e.style.boxShadow=`${c.toFixed(1)}px ${l.toFixed(1)}px ${o.toFixed(1)}px ${s.toFixed(1)}px ${u}`;return}e.style.filter=`drop-shadow(${c.toFixed(1)}px ${l.toFixed(1)}px ${o.toFixed(1)}px ${u})`}function KK(e,t){let n=Y(t.numAttr(`dist`)??0),r=(t.numAttr(`stA`)??5e4)/1e5,i=(t.numAttr(`endA`)??0)/1e5,a=Math.max(0,Math.min(100,(t.numAttr(`stPos`)??0)/1e3)),o=Math.max(0,Math.min(100,(t.numAttr(`endPos`)??1e5)/1e3)),s=`linear-gradient(to bottom, rgba(255,255,255,${r.toFixed(3)}) ${a.toFixed(1)}%, rgba(255,255,255,${i.toFixed(3)}) ${o.toFixed(1)}%)`,c=`below ${n.toFixed(1)}px ${s}`;e.style.setProperty(`-webkit-box-reflect`,c),e.style.webkitBoxReflect=c}function qK(e,t,n,r){let i=r.child(`effectLst`);if(!i.exists())return;let a=i.child(`outerShdw`);a.exists()&&GK(e,t,a,n);let o=i.child(`reflection`);o.exists()&&KK(e,o)}function JK(e,t,n){let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`${e.position.x}px`,r.style.top=`${e.position.y}px`,r.style.width=`${e.size.w}px`,r.style.height=`${e.size.h}px`;let i=[];e.rotation!==0&&i.push(`rotate(${e.rotation}deg)`),i.length>0&&(r.style.transform=i.join(` `),r.style.transformOrigin=`center center`);let a=e.childOffset,o=e.childExtent,s=e.size.w,c=e.size.h,l=e.source.child(`grpSpPr`),u={...t};if(l.exists()){qK(r,e,t,l);for(let e of[`solidFill`,`gradFill`,`blipFill`,`pattFill`])if(l.child(e).exists()){u.groupFillNode=l;break}!u.groupFillNode&&l.child(`grpFill`).exists()&&t.groupFillNode&&(u.groupFillNode=t.groupFillNode)}let d=new Map,f=n=>(d.has(n)||d.set(n,YK(e.children[n],t,e)),d.get(n)),p=null,m=null;if(e.children.length===6&&o.w>0&&o.h>0){let t=e=>e.child(`spPr`).child(`prstGeom`).attr(`prst`),n=e.children.slice(0,3).every(e=>t(e)===`pie`),r=e.children.slice(3,6).every(e=>t(e)===`circularArrow`);if(n&&r){let e=[0,1,2].map(e=>f(e)).filter(Boolean);if(e.length===3){let t=Math.max(...e.map(e=>e.size.w)),n=Math.max(...e.map(e=>e.size.h)),r=Math.min(t,n,o.w,o.h),i=a.x+o.w/2,l=a.y+o.h/2,u=i-r/2,d=l-r/2;p={x:(u-a.x)/o.w*s,y:(d-a.y)/o.h*c,w:r/o.w*s,h:r/o.h*c};let f=e[0].size;e.every(e=>Math.abs(e.size.w-f.w)<.01&&Math.abs(e.size.h-f.h)<.01)&&(m=new Map(e.map((e,t)=>[t,{x:(e.position.x+e.size.w/2-i)/o.w*s,y:(e.position.y+e.size.h/2-l)/o.h*c}])))}}}let h=(p?[3,4,5,0,1,2]:void 0)??e.children.map((e,t)=>t);for(let t of h)try{let i=f(t);if(!i)continue;if(o.w>0&&o.h>0){let e=s/o.w,t=c/o.h,n=HK(i.rotation),r=i.position,l=i.size;if(n){let n=r.x+(l.w-l.h)/2,o=r.y+(l.h-l.w)/2,s={w:l.w*t,h:l.h*e};i.position={x:(n-a.x)*e-(s.w-s.h)/2,y:(o-a.y)*t-(s.h-s.w)/2},i.size=s}else i.position={x:(r.x-a.x)*e,y:(r.y-a.y)*t},i.size={w:l.w*e,h:l.h*t};UK(i,e,t,n)}if(e.flipH&&(i.position={...i.position,x:s-i.position.x-i.size.w},VK(i)&&(i.flipH=!i.flipH)),e.flipV&&(i.position={...i.position,y:c-i.position.y-i.size.h},VK(i)&&(i.flipV=!i.flipV)),p&&t<3&&i.nodeType===`shape`){let e=i.size.w,n=i.size.h,r=m?.get(t)??{x:0,y:0};i.position={x:p.x+r.x,y:p.y+r.y},i.size={w:p.w,h:p.h};let a=i;if(e>0&&n>0&&a.textBoxBounds){let t=a.textBoxBounds;a.textBoxBounds={x:t.x/e*p.w,y:t.y/n*p.h,w:t.w/e*p.w,h:t.h/n*p.h}}}let l=n(i,u);r.appendChild(l)}catch{let e=document.createElement(`div`);e.style.position=`absolute`,e.style.border=`1px dashed #ff6b6b`,e.style.backgroundColor=`rgba(255,107,107,0.1)`,e.style.fontSize=`10px`,e.style.color=`#cc0000`,e.style.display=`flex`,e.style.alignItems=`center`,e.style.justifyContent=`center`,e.style.padding=`2px`,e.textContent=`Group child error`,r.appendChild(e)}return r}function YK(e,t,n){let r=Sz(e,{rels:t.slide.rels,partPath:t.partPath??t.slide.slidePath,diagramDrawings:t.presentation.diagramDrawings,skipPlaceholders:t.skipPlaceholderChildren});return r&&Gz(r,t.layout,t.master,{parentGroup:n}),r}var XK=1e4;function ZK(e){let t=e.child(`ptCount`).numAttr(`val`),n=-1;for(let t of e.children(`pt`)){let e=t.numAttr(`idx`);e!==void 0&&Number.isInteger(e)&&e>=0&&e<XK&&(n=Math.max(n,e))}let r=n+1;if(t===void 0||!Number.isFinite(t)||t<0)return r;let i=Math.floor(t);return i>XK?r:Math.min(Math.max(i,r),XK)}function QK(e,t){return e!==void 0&&Number.isInteger(e)&&e>=0&&e<t&&e<XK}function $K(e){let t=e.child(`strRef`).exists()?e.child(`strRef`).child(`strCache`):e.child(`strCache`);if(!t.exists()){let t=e.child(`numRef`).exists()?e.child(`numRef`).child(`numCache`):e.child(`numCache`);return t.exists()?sq(t):[]}let n=ZK(t),r=Array(n).fill(``);for(let e of t.children(`pt`)){let t=e.numAttr(`idx`);QK(t,n)&&(r[t]=e.child(`v`).text())}return r}function eq(e){let t=e.child(`numRef`).exists()?e.child(`numRef`).child(`numCache`):e.child(`numCache`);if(!t.exists())return;let n=t.child(`formatCode`);return n.exists()&&n.text()||void 0}function tq(e){let t=[],n=``,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(a===`"`){r=!r,n+=a;continue}if(a===`;`&&!r){t.push(n),n=``;continue}n+=a}return t.push(n),t}function nq(e){let t=e.replace(/\[[^\]]+\]/g,``),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`"`){for(e++;e<t.length&&t[e]!==`"`;)e++;continue}if(r===`\\`){e+1<t.length&&(n+=t[++e]);continue}if(r===`_`||r===`*`){e++;continue}n+=r}return n.trim()}function rq(e,t){let n=tq(t),r=e<0&&n.length>1,i=nq(r?n[1]:n[0]);if(!/[#0]/.test(i)||!i.includes(`,`)&&n.length===1)return;let a=i.match(/\.(0+|#+)/),o=a?a[1].length:0,s=i.includes(`,`),c=(r?Math.abs(e):e).toLocaleString(`en-US`,{useGrouping:s,minimumFractionDigits:a!=null&&a[1].includes(`0`)?o:0,maximumFractionDigits:o});return r?i.includes(`(`)&&i.includes(`)`)?`(${c})`:i.includes(`-`)?`-${c}`:c:c}function iq(e,t){if(!t||t===`General`)return Number.isInteger(e)?String(e):parseFloat(e.toFixed(2)).toString();if(t.includes(`%`)){let n=t.match(/0\.(0+)%/),r=n?n[1].length:0;return`${(e*100).toFixed(r)}%`}let n=rq(e,t);if(n!==void 0)return n;let r=t.match(/\.(0+|#+)/);if(r){let t=r[1].length;return parseFloat(e.toFixed(t)).toString()}return/^[#0,]+$/.test(t.replace(/[[\]"\\]/g,``))?Math.round(e).toString():Number.isInteger(e)?String(e):parseFloat(e.toFixed(2)).toString()}function aq(e){return oq(e).values}function oq(e){let t=e.child(`numRef`).exists()?e.child(`numRef`).child(`numCache`):e.child(`numCache`);if(!t.exists())return{values:[],blankIndices:new Set};let n=ZK(t),r=Array(n).fill(0),i=new Set;for(let e=0;e<n;e++)i.add(e);for(let e of t.children(`pt`)){let t=e.numAttr(`idx`);if(QK(t,n)){let n=e.child(`v`).text().trim(),a=parseFloat(n);n!==``&&!isNaN(a)&&(r[t]=a,i.delete(t))}}return{values:r,blankIndices:i}}function sq(e){let t=ZK(e),n=Array(t).fill(``),r=e.child(`formatCode`).text(),i=r&&/[yYmMdD]/.test(r)&&!/[#0]/.test(r);for(let r of e.children(`pt`)){let e=r.numAttr(`idx`);if(QK(e,t)){let t=r.child(`v`).text();i&&t?n[e]=cq(parseFloat(t)):n[e]=t}}return n}function cq(e){if(!Number.isFinite(e)||e<1)return String(e);let t=e>59?e-1:e,n=new Date(Date.UTC(1899,11,31)+t*864e5);return`${n.getUTCFullYear()}/${n.getUTCMonth()+1}/${n.getUTCDate()}`}function lq(e){return e.exists()?uq(e.attr(`val`),!0):!1}function uq(e,t){return LR(e,t)}bE([JA,EN,XP,ek,_j,HM,CM,WF,lI,GF,_L,LM,GI,HI,JD,VL]);function dq(e,t){try{let{color:n}=OB(e,t);return n.startsWith(`#`)?n:`#${n}`}catch{return}}function fq(e,t){let n=e.numAttr(`pos`);if(n!==void 0)for(let r of e.allChildren()){let i=r.localName;if(i===`srgbClr`||i===`schemeClr`||i===`sysClr`||i===`prstClr`)try{let r=OB(e,t);return{color:r.color.startsWith(`#`)?r.color:`#${r.color}`,alpha:r.alpha,pos:n/1e5}}catch{if(i===`sysClr`){let e=r.attr(`lastClr`);if(e){let t=r.child(`alpha`),i=t.exists()?(t.numAttr(`val`)??1e5)/1e5:1;return{color:`#${e}`,alpha:i,pos:n/1e5}}}return}}}function pq(e,t){let n=e.child(`spPr`);if(!n.exists())return;let r=n.child(`solidFill`);if(r.exists()){let e=dq(r,t);if(e)return e}let i=n.child(`gradFill`);if(i.exists()){let e=yq(i,t);if(e)return e}let a=n.child(`ln`);if(a.exists()){let e=a.child(`solidFill`);if(e.exists()){let n=dq(e,t);if(n)return n}}}function mq(e){let t=e.child(`spPr`).child(`ln`).numAttr(`w`);if(!(t===void 0||t<=0))return Math.max(1,Number((t/12700).toFixed(3)))}function hq(e){return Number(wR(e).toFixed(3))}function gq(e){return e.child(`spPr`).child(`ln`).child(`noFill`).exists()}function _q(e){return e===`dotted`?`dotted`:e===`dashed`?`dashed`:`solid`}function vq(e,t){if(!e.exists()||e.child(`noFill`).exists())return;let n=IB(e,t);if(!(n.width<=0||n.color===`transparent`))return{color:n.color,width:Math.max(n.width,.5),type:_q(n.dash)}}function yq(e,t){let n=e.child(`gsLst`);if(!n.exists())return;let r=[];for(let e of n.children(`gs`)){let n=fq(e,t);if(n){let e=n.color.replace(`#`,``),t=parseInt(e.substring(0,2),16),i=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16);r.push({offset:n.pos,color:`rgba(${t},${i},${a},${n.alpha})`})}}if(r.length<2)return;r.sort((e,t)=>e.offset-t.offset);let i=e.child(`lin`),a=(i.exists()?i.numAttr(`ang`)??54e5:54e5)/6e4*Math.PI/180;return new Pf(.5-.5*Math.cos(a),.5-.5*Math.sin(a),.5+.5*Math.cos(a),.5+.5*Math.sin(a),r)}function bq(e,t){let n=e.children(`dPt`);if(n.length===0)return;let r=[];for(let e of n){let n=e.child(`idx`).numAttr(`val`);if(n===void 0)continue;let i=e.child(`spPr`);if(!i.exists())continue;let a={},o=i.child(`solidFill`);if(o.exists()){let e=dq(o,t);e&&(a.color=e)}let s=vq(i.child(`ln`),t);if(s&&(a.borderColor=s.color,a.borderWidth=s.width,a.borderType=s.type),Object.keys(a).length>0){for(;r.length<=n;)r.push(void 0);r[n]=a}}return r.length>0?r:void 0}var xq=Symbol(`pptxExplicitFontSize`),Sq=`#000000`,Cq=10,wq=`#898989`,Tq={color:wq,width:1,type:`solid`},Eq={color:`#868686`,width:1,type:`solid`},Dq=[`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`];function Oq(e){return e[xq]=!0,e}function kq(e){return!!(e&&typeof e==`object`&&e[xq])}var Aq=[`barChart`,`bar3DChart`,`lineChart`,`line3DChart`,`areaChart`,`area3DChart`,`pieChart`,`pie3DChart`,`doughnutChart`,`radarChart`,`scatterChart`,`bubbleChart`,`stockChart`,`surface3DChart`];function jq(e){let t=e.child(`tx`);if(!t.exists())return;let n=t.child(`rich`);if(n.exists()){let e=[];for(let t of n.children(`p`)){let n=[];for(let e of t.allChildren()){if(e.localName===`br`){n.push(`
72
+ `);continue}if(e.localName!==`r`&&e.localName!==`fld`)continue;let t=e.child(`t`).text();t&&n.push(t)}let r=n.join(``);r&&e.push(r)}if(e.length>0)return e.join(`
73
+ `)}let r=t.child(`strRef`);if(r.exists()){let e=r.child(`strCache`).children(`pt`);if(e.length>0)return e[0].child(`v`).text()}}function Mq(e){return e.replace(/\\/g,`\\\\`).replace(/\{/g,`\\{`).replace(/\}/g,`\\}`).replace(/\|/g,`\\|`)}function Nq(e){if(!e)return;let t={...e.color?{color:e.color}:{},...e.fontSize===void 0?{}:{fontSize:e.fontSize},...e.fontFamily?{fontFamily:e.fontFamily}:{},...e.textShadowColor?{textShadowColor:e.textShadowColor}:{},...e.textShadowBlur===void 0?{}:{textShadowBlur:e.textShadowBlur},...e.textShadowOffsetX===void 0?{}:{textShadowOffsetX:e.textShadowOffsetX},...e.textShadowOffsetY===void 0?{}:{textShadowOffsetY:e.textShadowOffsetY}};return e.bold!==void 0&&(t.fontWeight=e.bold?`bold`:`normal`),Object.keys(t).length>0?t:void 0}function Pq(e,t){let n=e.child(`txPr`);if(n.exists())for(let e of n.children(`p`)){let n=e.child(`pPr`);if(!n.exists())continue;let r=n.child(`defRPr`);if(!r.exists())continue;let i=r.child(`solidFill`);if(i.exists())return dq(i,t)}}function Fq(e){let t=e.replace(/^#/,``),n=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,r=parseInt(n,16);return{r:r>>16&255,g:r>>8&255,b:r&255}}function Iq(e,t){let n=e.startsWith(`#`)?e:`#${e}`;if(t>=1)return n;let{r,g:i,b:a}=Fq(n);return`rgba(${r},${i},${a},${t.toFixed(3)})`}function Lq(e,t){let n=e.child(`effectLst`).child(`outerShdw`);if(n.exists())try{let{color:e,alpha:r}=OB(n,t);if(!e||r<=0)return;let i=Y(n.numAttr(`dist`)??0),a=Y(n.numAttr(`blurRad`)??0),o=(n.numAttr(`dir`)??0)/6e4,s=i*Math.cos(o*Math.PI/180),c=i*Math.sin(o*Math.PI/180);return{textShadowColor:Iq(e,r),textShadowBlur:a,textShadowOffsetX:s,textShadowOffsetY:c}}catch{return}}function Rq(e,t){if(!e.exists())return;let n={},r=e.child(`solidFill`);if(r.exists()){let e=dq(r,t);e&&(n.color=e)}let i=e.numAttr(`sz`);i!==void 0&&i>0&&(n.fontSize=Math.round(i/100),n[xq]=!0);let a=e.attr(`b`);a!==void 0&&(n.bold=LR(a));let o=VV([e.child(`latin`).attr(`typeface`),e.child(`ea`).attr(`typeface`),e.child(`cs`).attr(`typeface`)],t,[e.attr(`lang`),e.attr(`altLang`)]);o.length>0&&(n.fontFamily=YV(o));let s=Lq(e,t);return s&&Object.assign(n,s),n.color||n.fontSize!==void 0||n.bold!==void 0||n.fontFamily!==void 0||n.textShadowColor!==void 0?n:void 0}function zq(e,t){for(let n of e.children(`p`)){let e=n.child(`pPr`);if(!e.exists())continue;let r=Rq(e.child(`defRPr`),t);if(r)return r}}function Bq(e,t){let n=e.child(`txPr`);if(n.exists())return zq(n,t)}function Vq(e,t){return Bq(e,t)??zq(e.child(`tx`).child(`rich`),t)}function Hq(e,t){let n=e.child(`tx`).child(`rich`);if(!n.exists())return;let r=[],i={},a=0;for(let e of n.children(`p`)){let n=[];for(let r of e.allChildren()){if(r.localName===`br`){n.push(`
74
+ `);continue}if(r.localName!==`r`&&r.localName!==`fld`)continue;let e=r.child(`t`).text();if(!e)continue;let o=Nq(Rq(r.child(`rPr`),t));if(!o){n.push(Mq(e));continue}let s=`r${a++}`;i[s]=o,n.push(`{${s}|${Mq(e)}}`)}let o=n.join(``);o&&r.push(o)}if(Object.keys(i).length!==0)return{text:r.join(`
75
+ `),rich:i}}function Uq(e){let t=VV([`+mn-lt`,`+mn-ea`,`+mj-lt`,`+mj-ea`],e);return t.length>0?YV(t):void 0}var Wq={deleted:!1,tickLblPos:`nextTo`,hasMajorGridlines:!1,orientation:`minMax`};function Gq(e,t){return e.theme.colorScheme.get(t)?.replace(`#`,``).toUpperCase()}function Kq(e){if(Gq(e,`accent1`)===`4F81BD`&&Gq(e,`accent2`)===`C0504D`)return`#000000`}function qq(e,t){let n=e.child(`txPr`);if(n.exists())for(let e of n.children(`p`)){let n=e.child(`pPr`);if(!n.exists())continue;let r=n.child(`defRPr`);if(!r.exists())continue;let i=r.child(`solidFill`);if(i.exists())return dq(i,t)}}function Jq(e,t){let n=e.child(`spPr`).child(`ln`);if(!n.exists())return;let r=n.child(`solidFill`);if(r.exists())return dq(r,t)}function Yq(e,t){return vq(e.child(`majorGridlines`).child(`spPr`).child(`ln`),t)}function Xq(e){let t=(e.child(`tx`).child(`rich`).child(`bodyPr`).exists()?e.child(`tx`).child(`rich`).child(`bodyPr`):e.child(`txPr`).child(`bodyPr`)).numAttr(`rot`);if(t===void 0)return;let n=t/6e4;return Number(n.toFixed(3))}function Zq(e,t){let n=e.child(`title`);if(!n.exists())return{};let r=jq(n);return r?{title:r,titleStyle:Vq(n,t),titleRotation:Xq(n)}:{}}function Qq(e,t){if(!e.exists())return{...Wq};let n=lq(e.child(`delete`)),r=e.child(`tickLblPos`).attr(`val`)||`nextTo`,i=e.child(`crosses`).attr(`val`),a=e.child(`numFmt`),o=a.exists()&&a.attr(`formatCode`)||void 0,s=e.child(`scaling`),c=s.child(`min`),l=s.child(`max`),u=c.exists()?parseFloat(c.attr(`val`)||``):void 0,d=l.exists()?parseFloat(l.attr(`val`)||``):void 0,f=e.child(`majorGridlines`).exists(),p=e.child(`majorTickMark`).attr(`val`),m=s.child(`orientation`).attr(`val`)||`minMax`,h=Bq(e,t),g=h?.color??qq(e,t),_=h?.fontSize,v=Kq(t),y=Jq(e,t)??v,b=f?Yq(e,t)??(v?{...Tq,color:v}:void 0):void 0,x=Zq(e,t);return{deleted:n,tickLblPos:r,crosses:i,numFmt:o&&o!==`General`?o:void 0,min:u!==void 0&&!isNaN(u)?u:void 0,max:d!==void 0&&!isNaN(d)?d:void 0,hasMajorGridlines:f,majorTickMark:p,orientation:m,...x,labelColor:g,labelFontSize:_,lineColor:y,majorGridlineStyle:b}}function $q(e){return e!=null&&e.exists()?e.children(`axId`).map(e=>e.attr(`val`)).filter(e=>e!==void 0&&e!==``):[]}function eJ(e,t,n){var r;if(n){for(let r of t){let t=e.children(r).find(e=>e.child(`axId`).attr(`val`)===n);if(t)return t}return new hR(null)}for(let n of t){let t=e.children(n);if((r=t[0])!=null&&r.exists())return t[0]}return new hR(null)}function tJ(e,t,n){let r=$q(n),i=r[0],a=r[1],o=eJ(e,[`valAx`],a),s=eJ(e,[`catAx`,`dateAx`],i);return{valueAxis:Qq(o,t),categoryAxis:Qq(s,t)}}function nJ(e,t){let n=e.children(`valAx`),r={...Wq},i={...Wq};for(let e of n){let n=e.child(`axPos`).attr(`val`)??``,a=Qq(e,t);n===`b`||n===`t`?r=a:(n===`l`||n===`r`)&&(i=a)}return n.length===1&&(i=Qq(n[0],t)),{xAxis:r,yAxis:i}}function rJ(e,t,n){var r,i;if(t.deleted){e.axisLabel={...e.axisLabel||{},show:!1},e.axisLine={show:!1},e.axisTick={show:!1},n===`value`&&(e.splitLine={show:!1});return}if(t.orientation===`maxMin`&&(e.inverse=!0),t.crosses===`autoZero`&&(e.axisLine={...e.axisLine||{},onZero:!0}),t.title){e.name=t.title,e.nameLocation=`middle`,e.nameGap=n===`value`?42:28,t.titleRotation!==void 0&&(e.nameRotate=t.titleRotation);let a={};(r=t.titleStyle)!=null&&r.color&&(a.color=t.titleStyle.color),t.titleStyle?.fontSize!==void 0&&(a.fontSize=t.titleStyle.fontSize),(i=t.titleStyle)!=null&&i.fontFamily&&(a.fontFamily=t.titleStyle.fontFamily),t.titleStyle?.bold!==void 0&&(a.fontWeight=t.titleStyle.bold?`bold`:`normal`),Object.keys(a).length>0&&(e.nameTextStyle=a)}if(t.tickLblPos===`none`&&(e.axisLabel={...e.axisLabel||{},show:!1}),t.majorTickMark===`none`)e.axisTick={...e.axisTick||{},show:!1};else if(!t.deleted){let n=e.axisTick||{},r=n.lineStyle||{};r.color===void 0&&(e.axisTick={...n,lineStyle:{...r,color:t.lineColor??wq}})}if(n===`value`&&(t.min!==void 0&&(e.min=t.min),t.max!==void 0&&(e.max=t.max)),n===`value`&&!t.deleted&&t.tickLblPos!==`none`){let n=e.axisLabel||{};if(!n.formatter){let r=t.numFmt;e.axisLabel={...n,formatter:e=>iq(e,r)}}}if(!t.deleted&&t.tickLblPos!==`none`){let t=e.axisLabel||{};t.fontSize===void 0&&(e.axisLabel={...t,fontSize:Cq})}if(n===`value`)if(!t.hasMajorGridlines)e.splitLine={show:!1};else if(t.majorGridlineStyle){let n=e.splitLine||{},r=n.lineStyle||{};e.splitLine={...n,show:!0,lineStyle:{...r,...t.majorGridlineStyle}}}else{let t=e.splitLine||{},n=t.lineStyle||{};e.splitLine={...t,show:!0,lineStyle:{...Tq,...n}}}if(t.labelColor||!t.deleted){let n=e.axisLabel||{},r=t.labelColor??(n.color===void 0?Sq:void 0);r&&(e.axisLabel={...n,color:r})}if(t.labelFontSize!==void 0&&(e.axisLabel={...e.axisLabel||{},fontSize:t.labelFontSize}),t.lineColor||!t.deleted){let n=e.axisLine||{},r=n.lineStyle||{},i=t.lineColor??(r.color===void 0?wq:void 0);i&&(e.axisLine={...n,show:n.show??!0,lineStyle:{...r,color:i}})}}function iJ(e,t){return lq(e.child(t))}function aJ(e){let t=e.child(`layout`).child(`manualLayout`);if(!t.exists())return;let n={},r=t.child(`x`).numAttr(`val`),i=t.child(`y`).numAttr(`val`),a=t.child(`w`).numAttr(`val`),o=t.child(`h`).numAttr(`val`);return r!==void 0&&(n.x=r),i!==void 0&&(n.y=i),a!==void 0&&(n.width=a),o!==void 0&&(n.height=o),Object.keys(n).length>0?n:void 0}function oJ(e,t){let n=e.child(`dLbls`);if(!n.exists())return;let r=iJ(n,`showVal`),i=iJ(n,`showCatName`),a=iJ(n,`showSerName`),o=iJ(n,`showPercent`),s=iJ(n,`showLeaderLines`),c=n.child(`dLblPos`),l=c.exists()&&c.attr(`val`)||void 0,u=aJ(n),d=Bq(n,t),f=d?.color??Pq(n,t),p=d?.fontSize,m=d?.bold,h=cJ(n,t);if(!(!r&&!i&&!a&&!o))return{showVal:r,showCatName:i,showSerName:a,showPercent:o,position:l,showLeaderLines:s,manualLayout:u,color:f,fontSize:p,bold:m,...h}}function sJ(e,t){let n=e.child(t);if(n.exists())return lq(n)}function cJ(e,t){let n={},r=e.child(`spPr`);if(r.exists()){let e=r.child(`solidFill`);if(e.exists()){let r=dq(e,t);r&&(n.backgroundColor=r)}let i=r.child(`ln`);if(i.exists()&&!i.child(`noFill`).exists()){let e=i.child(`solidFill`);if(e.exists()){let r=dq(e,t);r&&(n.borderColor=r)}let r=i.numAttr(`w`);r!==void 0&&r>0?n.borderWidth=Math.max(1,Y(r)):n.borderColor&&(n.borderWidth=1)}}let i=e.child(`txPr`).child(`bodyPr`);if(i.exists()){let e=Y(i.numAttr(`tIns`)??0),t=Y(i.numAttr(`rIns`)??0),r=Y(i.numAttr(`bIns`)??0),a=Y(i.numAttr(`lIns`)??0);(e||t||r||a)&&(n.padding=[e,t,r,a])}return n}function lJ(e,t){let n=new Map;if(!e.exists())return n;for(let r of e.children(`dLbl`)){let e=r.child(`idx`).numAttr(`val`);if(e===void 0)continue;let i=Bq(r,t),a=r.child(`dLblPos`),o={},s=sJ(r,`delete`),c=sJ(r,`showVal`),l=sJ(r,`showCatName`),u=sJ(r,`showSerName`),d=sJ(r,`showPercent`),f=sJ(r,`showLeaderLines`),p=aJ(r);if(c!==void 0&&(o.showVal=c),l!==void 0&&(o.showCatName=l),u!==void 0&&(o.showSerName=u),d!==void 0&&(o.showPercent=d),s===!0&&(o.deleted=!0,o.showVal=!1,o.showCatName=!1,o.showSerName=!1,o.showPercent=!1),f!==void 0&&(o.showLeaderLines=f),p&&(o.manualLayout=p),a.exists()&&(o.position=a.attr(`val`)||void 0),i!=null&&i.color)o.color=i.color;else{let e=Pq(r,t);e&&(o.color=e)}i?.fontSize!==void 0&&(o.fontSize=i.fontSize),i?.bold!==void 0&&(o.bold=i.bold),Object.assign(o,cJ(r,t)),Object.keys(o).length>0&&n.set(e,o)}return n}function uJ(e){let t=e.child(`strRef`);if(t.exists()){let e=t.child(`strCache`).children(`pt`);if(e.length>0)return e[0].child(`v`).text()}let n=e.child(`v`);return n.exists()?n.text():``}function dJ(e,t){let n=Array(t).fill(0),r=!1,i=e.child(`explosion`).numAttr(`val`)??0;i>0&&(n.fill(i),r=!0);let a=e.children(`dPt`);for(let e of a){let t=e.child(`idx`).numAttr(`val`);if(t===void 0)continue;let i=e.child(`explosion`).numAttr(`val`);i!==void 0&&i>0&&(n[t]=i,r=!0)}return r?n:void 0}function fJ(e,t){let n=[];for(let r of e.children(`ser`)){let e=uJ(r.child(`tx`)),i=r.child(`order`).numAttr(`val`)??n.length,a=$K(r.child(`cat`)),o=r.child(`val`),s=oq(o),c=s.values,l=s.blankIndices,u=eq(o),d=r.child(`xVal`),f=r.child(`yVal`),p;if(f.exists()){let e=oq(f);e.values.length>0&&(c.length=0,c.push(...e.values),l=e.blankIndices)}if(d.exists()&&(p=aq(d),a.length===0)){let e=$K(d);e.length>0&&a.push(...e)}let m=r.child(`bubbleSize`),h=m.exists()?aq(m):void 0,g=pq(r,t),_=mq(r),v=gq(r),y=bq(r,t),b=y?.map(e=>e?.color),x=r.child(`invertIfNegative`),S=x.exists()?lq(x):void 0,C=r.child(`marker`),w=C.child(`symbol`).attr(`val`),T=C.child(`size`).numAttr(`val`),E=T===void 0?void 0:hq(T),D=r.child(`smooth`),O=D.exists()?lq(D):void 0;n.push({name:e,order:i,categories:a,values:c,xValues:p,bubbleSizes:h,colorHex:g,dataPointColors:b,dataPointStyles:y,formatCode:u,blankIndices:l,invertIfNegative:S,markerSymbol:w,markerSize:E,smooth:O,lineWidth:_,lineNoFill:v})}return n.sort((e,t)=>e.order-t.order),n}function pJ(e){let t=e.child(`dTable`);return t.exists()?{showKeys:uq(t.child(`showKeys`).attr(`val`),!0)}:void 0}function mJ(e,t){var n;let r=document.createElement(`table`);r.style.width=`100%`,r.style.borderCollapse=`collapse`,r.style.fontSize=`10px`,r.style.marginTop=`8px`;let{seriesArr:i,showKeys:a,formatCode:o}=e,s=i.find(e=>e.categories.length>0)?.categories||[],c=o,l=document.createElement(`thead`),u=document.createElement(`tr`),d=document.createElement(`th`);d.style.border=`1px solid #ccc`,d.style.padding=`2px 6px`,d.style.textAlign=`left`,d.style.fontWeight=`bold`,u.appendChild(d);for(let e=0;e<s.length;e++){let t=document.createElement(`th`);t.style.border=`1px solid #ccc`,t.style.padding=`2px 6px`,t.style.textAlign=`right`,t.style.fontWeight=`bold`,t.textContent=s[e]??``,u.appendChild(t)}l.appendChild(u),r.appendChild(l);let f=document.createElement(`tbody`);for(let e=0;e<i.length;e++){let r=i[e],o=document.createElement(`tr`),l=document.createElement(`td`);if(l.style.border=`1px solid #ccc`,l.style.padding=`2px 6px`,l.style.textAlign=`left`,l.style.fontWeight=`bold`,a&&t&&t[e]){let n=document.createElement(`span`);n.style.display=`inline-block`,n.style.width=`8px`,n.style.height=`8px`,n.style.marginRight=`4px`,n.style.verticalAlign=`middle`,n.style.backgroundColor=t[e],l.appendChild(n)}l.appendChild(document.createTextNode(r.name||``)),o.appendChild(l);for(let e=0;e<s.length;e++){let t=document.createElement(`td`);t.style.border=`1px solid #ccc`,t.style.padding=`2px 6px`,t.style.textAlign=`right`;let i=r.values[e];t.textContent=i!==void 0&&!((n=r.blankIndices)!=null&&n.has(e))?iq(i,c??r.formatCode):``,o.appendChild(t)}f.appendChild(o)}return r.appendChild(f),r}function hJ(e){let t=e.child(`clrMapOvr`);if(!t.exists())return;let n=t.element,r=t.child(`overrideClrMapping`);if(r.exists()&&r.element)n=r.element;else if(t.child(`masterClrMapping`).exists())return;if(!n)return;let i=n.attributes,a=new Map;for(let e=0;e<i.length;e++){let t=i[e];a.set(t.localName,t.value)}return a.size>0?a:void 0}function gJ(e,t){let n=hJ(e);return n?{...t,layout:{...t.layout,colorMapOverride:n},colorCache:new Map}:t}function _J(e){let t=e.child(`style`).numAttr(`val`);if(t!==void 0)return t;let n=e.child(`AlternateContent`);if(n.exists())for(let e of n.allChildren()){let t=e.child(`style`).numAttr(`val`);if(t!==void 0)return t}}var vJ=new Set([`srgbClr`,`schemeClr`,`sysClr`,`prstClr`,`hslClr`,`scrgbClr`]);function yJ(e,t){if(!e.element||!vJ.has(e.localName))return;let n=e.element.ownerDocument.createElementNS(e.element.namespaceURI,`solidFill`);return n.appendChild(e.element.cloneNode(!0)),dq(new hR(n),t)}function bJ(e,t){if(!(e!=null&&e.exists()))return[];let n=[];for(let r of e.allChildren()){let e=yJ(r,t);e&&n.push(e)}return n}function xJ(e){return Dq.map(t=>e.theme.colorScheme.get(t)).filter(e=>!!e).map(e=>e.startsWith(`#`)?e:`#${e}`)}function SJ(e,t){let n=e.replace(`#`,``);if(!/^[0-9a-fA-F]{6}$/.test(n))return e;let r=e=>Math.max(0,Math.min(255,Math.round(parseInt(n.slice(e,e+2),16)*t)));return`#${[r(0),r(2),r(4)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`}function CJ(e,t={}){let n=xJ(e);return t.darken===!1?n:n.map(e=>SJ(e,.88))}function wJ(e,t,n){if(n){let e=bJ(t.presentation.chartColorStyles?.get(n),t);if(e.length>0)return e}let r=xJ(t);return r.length===0?void 0:(_J(e),r)}function TJ(e){let t=Math.round(e*1e4)/100;return`${Number.isInteger(t)?t.toFixed(0):t}%`.replace(/\.0%$/,`%`)}function EJ(e,t){let n=e.child(`legend`);if(!n.exists())return;let r=n.child(`legendPos`),i=r.exists()&&r.attr(`val`)||`r`,a=[`b`,`t`,`l`,`r`,`tr`].includes(i)?i:`r`,o=lq(n.child(`overlay`)),s={confine:!0},c;switch(a){case`b`:c={...s,bottom:`5%`,orient:`horizontal`};break;case`t`:c={...s,top:`14%`,orient:`horizontal`};break;case`l`:c={...s,left:`2%`,top:`middle`,orient:`vertical`};break;case`r`:c={...s,right:`2%`,top:`middle`,orient:`vertical`};break;case`tr`:c={...s,top:`14%`,right:`2%`,orient:`vertical`};break;default:c={...s,right:`2%`,top:`middle`,orient:`vertical`};break}return{option:c,position:a,overlay:o,textStyle:(()=>{let e=Bq(n,t);if(!e)return;let r={...e.color?{color:e.color}:{},...e.fontSize===void 0?{}:{fontSize:e.fontSize},...e.bold===!0?{fontWeight:`bold`}:{},...e.fontFamily?{fontFamily:e.fontFamily}:{},...e.textShadowColor?{textShadowColor:e.textShadowColor}:{},...e.textShadowBlur===void 0?{}:{textShadowBlur:e.textShadowBlur},...e.textShadowOffsetX===void 0?{}:{textShadowOffsetX:e.textShadowOffsetX},...e.textShadowOffsetY===void 0?{}:{textShadowOffsetY:e.textShadowOffsetY}};return kq(e)&&(r[xq]=!0),r})(),manualLayout:DJ(n)}}function DJ(e){let t=e.child(`layout`).child(`manualLayout`);if(!t.exists())return{};let n={},r=t.child(`x`).numAttr(`val`),i=t.child(`y`).numAttr(`val`),a=t.child(`w`).numAttr(`val`),o=t.child(`h`).numAttr(`val`);return r!==void 0&&(n.left=TJ(r)),i!==void 0&&(n.top=TJ(i)),a!==void 0&&(n.width=TJ(a)),o!==void 0&&(n.height=TJ(o)),n}function OJ(e){return e?.position===`t`||e?.position===`tr`}function kJ(e,t){let n=OJ(t),r=t?.overlay??!1;return e?n&&!r?52:68:n&&!r?32:20}function AJ(e,t){if(OJ(t))return e?26:6}function jJ(e){if(!e||e.overlay||!e.option||typeof e.option!=`object`)return`none`;let t=e.option;return t.bottom===void 0?t.top!==void 0&&t.left===void 0&&t.right===void 0?`top`:t.left===void 0?t.right===void 0?`none`:`right`:`left`:`bottom`}function MJ(e){if(e){let t=e.option;if(t&&t.bottom!==void 0)return 35}return 20}function NJ(e,t,n,r,i){if(!e)return{show:!1};let a=t?.manualLayout??{},o=a.top===void 0?n===void 0?void 0:n:a.top,s=i.fontSize??10,c=r.some(e=>typeof e==`object`&&e.icon),l=c&&r.every(e=>typeof e==`object`&&typeof e.icon==`string`&&e.icon===r[0].icon)?r[0].icon:void 0,u=l!==void 0&&!l.startsWith(`path://`),d=u?r.map(e=>typeof e==`string`?e:e.name):r,f=r.some(e=>typeof e==`object`&&typeof e.icon==`string`&&e.icon.startsWith(`path://`));return{...e,...a,...o===void 0?{}:{top:o},...u?{icon:l}:c?{}:{icon:`rect`},itemWidth:f?Math.max(24,Math.round(s*2.2)):s,itemHeight:f?Math.max(8,Math.round(s*.9)):s,data:d,textStyle:i}}function PJ(e){return e?Array.isArray(e)?e[0]??null:e:null}function FJ(e,t){return typeof e==`string`?e:t}function IJ(e,t){let n=e?.lineStyle??{},r=e?.itemStyle??{};return(typeof n.color==`string`?n.color:void 0)??(typeof r.color==`string`?r.color:void 0)??t}function LJ(){return`path://M2 4.5 L22 4.5`}function RJ(e){let t=e;return(Array.isArray(t.radar)?t.radar:t.radar?[t.radar]:[]).filter(e=>typeof e==`object`&&!!e).map(e=>{let t=e.name??={};return t.textStyle??={}})}function zJ(e){let t=e;return(Array.isArray(t.radar)?t.radar:t.radar?[t.radar]:[]).filter(e=>typeof e==`object`&&!!e).flatMap(e=>e.indicator??[]).map(e=>e.axisLabel).filter(e=>!!e)}function BJ(e,t){var n,r,i;let a=e;(n=a.title?.textStyle)!=null&&n.fontSize&&a.title.textStyle.fontSize<=14&&(a.title.textStyle.fontSize=t);for(let n of RJ(e)){let e=n.fontSize;(typeof e!=`number`||e<=10)&&(n.fontSize=t)}for(let n of zJ(e)){let e=n.fontSize;(typeof e!=`number`||e<=10)&&(n.fontSize=t)}let o=Array.isArray(a.series)?a.series:a.series?[a.series]:[];for(let e of o)(r=e?.label)!=null&&r.fontSize&&e.label.fontSize<=10&&!kq(e.label)&&(e.label.fontSize=t);let s=e=>{if(!(e!=null&&e.axisLabel))return;let n=e.axisLabel.fontSize;(n===void 0||n<=10)&&(e.axisLabel.fontSize=t)},c=Array.isArray(a.xAxis)?a.xAxis:a.xAxis?[a.xAxis]:[],l=Array.isArray(a.yAxis)?a.yAxis:a.yAxis?[a.yAxis]:[];for(let e of[...c,...l])s(e);if((i=a.legend)!=null&&i.textStyle){let e=a.legend.textStyle.fontSize;(e===void 0||e<=10)&&!kq(a.legend.textStyle)&&(a.legend.textStyle.fontSize=t)}}function VJ(e,t){var n,r,i;let a=e;(n=a.title)!=null&&n.textStyle&&!a.title.textStyle.fontFamily&&(a.title.textStyle.fontFamily=t),(r=a.title)!=null&&r.textStyle&&!a.title.textStyle.fontWeight&&(a.title.textStyle.fontWeight=`bold`);let o=e=>{if(!e)return;let n=e.axisLabel??={};n.fontFamily||=t},s=Array.isArray(a.xAxis)?a.xAxis:a.xAxis?[a.xAxis]:[],c=Array.isArray(a.yAxis)?a.yAxis:a.yAxis?[a.yAxis]:[];for(let e of[...s,...c])o(e);(i=a.legend)!=null&&i.textStyle&&!a.legend.textStyle.fontFamily&&(a.legend.textStyle.fontFamily=t);for(let n of RJ(e))n.fontFamily||=t;for(let n of zJ(e))n.fontFamily||=t}function HJ(e){var t;let n=e;(t=n.title)!=null&&t.textStyle&&n.title.textStyle.color===void 0&&(n.title.textStyle.color=Sq);let r=Array.isArray(n.legend)?n.legend:n.legend?[n.legend]:[];for(let e of r){if(!e||e.show===!1)continue;let t=e.textStyle??={};t.color===void 0&&(t.color=Sq)}let i=Array.isArray(n.xAxis)?n.xAxis:n.xAxis?[n.xAxis]:[],a=Array.isArray(n.yAxis)?n.yAxis:n.yAxis?[n.yAxis]:[];for(let e of[...i,...a]){if(!(e!=null&&e.name))continue;let t=e.nameTextStyle??={};t.color===void 0&&(t.color=Sq)}for(let t of RJ(e))t.color===void 0&&(t.color=Sq);for(let t of zJ(e))t.color===void 0&&(t.color=Sq)}function UJ(e,t,n){let r=e;if(!r.grid||!r.legend||r.legend.show===!1)return;let i=t.child(`legend`);if(!i.exists()||lq(i.child(`overlay`)))return;let a=i.child(`legendPos`).attr(`val`)||`r`;if(a===`r`||a===`l`){let e=r.legend.data;if(!e||e.length===0)return;let i=e.map(e=>typeof e==`string`?e:e.name),o=r.legend?.textStyle?.fontSize??n??12,s=Number(r.legend?.itemWidth)||o,c=0;for(let e of i){let t=0;for(let n of e)t+=n.charCodeAt(0)>11904?o:o*.55;t>c&&(c=t)}let l=s+8+c+14,u=t.child(`plotArea`).child(`lineChart`).exists(),d=Array.isArray(r.series)?r.series.length:r.series?1:0,f=Array.isArray(r.xAxis)?r.xAxis[0]:r.xAxis,p=Array.isArray(f?.data)?f.data.length:0,m=Math.max(84,Math.round(l+(u?a===`r`&&u&&d===1&&p>=20?-10:0:18)));if(typeof r.grid.left==`string`&&r.grid.left.includes(`%`)||typeof r.grid.right==`string`&&r.grid.right.includes(`%`))return;a===`r`?r.grid.right=m:r.grid.left=m}}function WJ(e,t,n){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`){let n=e.trim();if(n.endsWith(`%`))return t*parseFloat(n)/100;let r=parseFloat(n);if(Number.isFinite(r))return r}return n}function GJ(e,t,n){if(!t)return;let r=n===`x`?t.w:t.h,i=Array.isArray(e)?e[0]:e;if(!i)return r;let a=n===`x`?`left`:`top`,o=n===`x`?`right`:`bottom`,s=WJ(i[a],r,0),c=WJ(i[o],r,0);return Math.max(0,r-s-c)}function KJ(e,t,n,r,i,a=2.6){let o=GJ(i,r,n);if(o===void 0||o<=0)return t;let s=e.axisLabel??{},c=typeof s.fontSize==`number`?s.fontSize:12,l=Math.max(28,c*a),u=Math.max(2,Math.floor(o/l)+1);return Math.max(1,Math.min(t,u-1))}function qJ(e,t){let n=e;if(!n.xAxis&&!n.yAxis)return;let r=[],i=[],a=[],o=Array.isArray(n.series)?n.series:n.series?[n.series]:[],s=new Map,c=[],l=new Map,u=(e,t)=>{l.has(e)||l.set(e,[]),l.get(e).push(...t)};for(let e of o){if(!e.data)continue;let t=[];for(let n of e.data)if(typeof n==`number`)t.push(n);else if(n&&typeof n==`object`&&`value`in n&&typeof n.value==`number`)t.push(n.value);else if(Array.isArray(n)){n.length>=2&&typeof n[0]==`number`&&typeof n[1]==`number`&&(i.push(n[0]),a.push(n[1]));for(let e of n)typeof e==`number`&&t.push(e)}else t.push(0);let n=typeof e.yAxisIndex==`number`&&Number.isFinite(e.yAxisIndex)?e.yAxisIndex:0;if(e.stack){let r=`${n}:${String(e.stack)}`;s.has(r)||s.set(r,{axisIndex:n,values:[]}),s.get(r).values.push(t)}else c.push(...t),u(n,t)}for(let e of s.values()){let t=[],n=Math.max(...e.values.map(e=>e.length));for(let i=0;i<n;i++){let n=0;for(let t of e.values)n+=t[i]??0;t.push(n),r.push(n)}u(e.axisIndex,t)}r.push(...c);let d=o.some(e=>e.type===`bar`),f=o.some(e=>e.type&&e.type!==`bar`),p=d&&!f,m=p?10:8,h=p?2.6:2;if(r.length===0)return;let g=i.length>0&&a.length>0&&(Array.isArray(n.xAxis)?n.xAxis[0]:n.xAxis)?.type===`value`&&(Array.isArray(n.yAxis)?n.yAxis[0]:n.yAxis)?.type===`value`,_=(e,t,n)=>{if(!e||e.type!==`value`||t.length===0||e.min!==void 0&&e.max!==void 0)return;let r=Math.min(...t),i=Math.max(...t),a=XJ(i,r,n);if(e.max===void 0){let t=JJ(i,r,n);t>i&&t-i<a*.25&&(t+=a),e.max=t}e.min===void 0&&r>=0&&(e.min=0),e.interval===void 0&&(e.interval=a)},v=e=>{if(e.length===0)return 8;let t=Math.min(...e);return Math.max(...e)-Math.min(0,t)<=3?3:8};if(g){let e=Array.isArray(n.xAxis)?n.xAxis:[n.xAxis],t=Array.isArray(n.yAxis)?n.yAxis:[n.yAxis];e.forEach(e=>_(e,i,v(i))),t.forEach(e=>_(e,a,v(a)));return}let y=(e,i,a)=>{e&&(Array.isArray(e)?e:[e]).forEach((e,o)=>{if(!e||e.type!==`value`||e.min!==void 0&&e.max!==void 0)return;let s=a?.get(o)??r;if(s.length===0)return;let c=Math.min(...s),l=Math.max(...s),u=KJ(e,m,i,t,n.grid,h),d=XJ(l,c,u);if(e.max===void 0){let t=JJ(l,c,u);u>1&&t>l&&t-l<d*.25&&(t+=d),e.max=t}e.min===void 0&&c>=0?e.min=0:e.min===void 0&&c<0&&(e.min=YJ(l,c,u)),e.interval===void 0&&(e.interval=d)})};y(n.xAxis,`x`),y(n.yAxis,`y`,l)}function JJ(e,t,n=5){let r=XJ(e,t,n),i=Math.ceil(e/r)*r;return i<=e?i+r:i}function YJ(e,t,n=5){let r=XJ(e,t,n),i=Math.floor(t/r)*r;return i>=t?i-r:i}function XJ(e,t,n=5){if(e===0&&t===0)return 1;let r=e-Math.min(0,t);if(r===0)return e>0?e*1.2:1;let i=r/n,a=10**Math.floor(Math.log10(i)),o=i/a,s;return s=o<=1?a:o<=2?2*a:o<=5?5*a:10*a,s}function ZJ(e){let t=e.child(`txPr`);if(t.exists())for(let e of t.children(`p`)){let t=e.child(`pPr`);if(!t.exists())continue;let n=t.child(`defRPr`);if(!n.exists())continue;let r=n.numAttr(`sz`);if(r!==void 0&&r>0)return Math.round(r/100*(96/72))}}function QJ(e,t,n){let r,i,a=e.child(`spPr`);if(a.exists()&&!a.child(`noFill`).exists()){let e=a.child(`solidFill`);r=e.exists()?dq(e,n):`#ffffff`}let o=t.child(`plotArea`);if(o.exists()){let e=o.child(`spPr`);if(e.exists()&&!e.child(`noFill`).exists()){let t=e.child(`solidFill`);t.exists()&&(i=dq(t,n))}}return{chartBg:r,plotAreaBg:i}}function $J(e,t){let n=vq(e.child(`spPr`).child(`ln`),t);if(n)return{borderColor:n.color,borderWidth:n.width,borderStyle:n.type}}function eY(e,t,n,r,i=2,a,o){if(e===`none`)return null;let s=`http://www.w3.org/2000/svg`,c=document.createElementNS(s,`svg`);c.setAttribute(`width`,String(n)),c.setAttribute(`height`,String(r)),c.setAttribute(`viewBox`,`0 0 ${n} ${r}`),c.style.display=`block`;let l=e??`rect`;if(l.startsWith(`path://`)){let e=document.createElementNS(s,`path`);if(e.setAttribute(`d`,l.slice(7)),e.setAttribute(`fill`,`none`),e.setAttribute(`stroke`,t),e.setAttribute(`stroke-width`,String(i)),e.setAttribute(`stroke-linecap`,`round`),c.appendChild(e),a&&a!==`none`){let e=n/2,i=r/2,l=Math.min(n,r,o===void 0?Math.max(3,r*.55):Math.max(3,o));if(a===`diamond`){let n=document.createElementNS(s,`path`);n.setAttribute(`d`,`M${e} ${i-l/2} L${e+l/2} ${i} L${e} ${i+l/2} L${e-l/2} ${i} Z`),n.setAttribute(`fill`,t),c.appendChild(n)}else if(a===`rect`){let n=document.createElementNS(s,`rect`);n.setAttribute(`x`,String(e-l/2)),n.setAttribute(`y`,String(i-l/2)),n.setAttribute(`width`,String(l)),n.setAttribute(`height`,String(l)),n.setAttribute(`fill`,t),c.appendChild(n)}else if(a===`triangle`){let n=document.createElementNS(s,`path`);n.setAttribute(`d`,`M${e} ${i-l/2} L${e+l/2} ${i+l/2} L${e-l/2} ${i+l/2} Z`),n.setAttribute(`fill`,t),c.appendChild(n)}else{let n=document.createElementNS(s,`circle`);n.setAttribute(`cx`,String(e)),n.setAttribute(`cy`,String(i)),n.setAttribute(`r`,String(l/2)),n.setAttribute(`fill`,t),c.appendChild(n)}}return c}if(l===`diamond`){let e=document.createElementNS(s,`path`);return e.setAttribute(`d`,`M${n/2} 1 L${n-1} ${r/2} L${n/2} ${r-1} L1 ${r/2} Z`),e.setAttribute(`fill`,t),c.appendChild(e),c}if(l===`circle`){let e=document.createElementNS(s,`circle`);return e.setAttribute(`cx`,String(n/2)),e.setAttribute(`cy`,String(r/2)),e.setAttribute(`r`,String(Math.max(2,Math.min(n,r)/2-1))),e.setAttribute(`fill`,t),c.appendChild(e),c}let u=document.createElementNS(s,`rect`);return u.setAttribute(`x`,`1`),u.setAttribute(`y`,`1`),u.setAttribute(`width`,String(Math.max(2,n-2))),u.setAttribute(`height`,String(Math.max(2,r-2))),u.setAttribute(`fill`,t),c.appendChild(u),c}function tY(e,t){if(typeof e==`number`)return`${e}px`;let n=e.trim();if(n.endsWith(`%`)){let e=Number.parseFloat(n.slice(0,-1));if(!Number.isNaN(e))return`${e/100*t}px`}return n}function nY(e,t){var n;let r=PJ(e.legend);if(!r||r.show===!1)return null;let i=r.orient===`vertical`,a=r.orient===`horizontal`||r.orient===void 0,o=r.top!==void 0||r.bottom!==void 0||r.left!==void 0||r.right!==void 0;if(i&&r.left===void 0&&r.right===void 0||a&&!o)return null;let s=Array.isArray(e.color)?e.color.filter(e=>typeof e==`string`):[],c=r.data??[],l=Array.isArray(e.series)?e.series:e.series?[e.series]:[],u=l.length===1&&l[0]?.type===`radar`?l[0]:void 0,d=Array.isArray(u?.data)?u.data:void 0,f=c.map((e,t)=>{let n=typeof e==`string`?e:e.name,i=typeof e==`string`?void 0:e.icon,a=typeof e==`string`?void 0:e.marker,o=typeof e==`string`?void 0:e;if(!n)return null;let c=l.findIndex(e=>e?.name===n),u=d?.findIndex(e=>e.name===n)??-1,f=c>=0?l[c]:l[t],p=d&&u>=0?d[u]:d?.[t]??void 0,m=d?p??o??f:o??f,h=p??f,g=p??f??o,_={...h?.lineStyle??{},...o?.lineStyle??{}},v=IJ(m,s[c>=0?c:t]??`#2f6f8f`),y=typeof _.width==`number`&&Number.isFinite(_.width)?Math.max(1,_.width):2,b=g?.symbolSize,x=typeof b==`number`&&Number.isFinite(b)?Math.max(3,b):void 0;return{name:n,icon:i??r.icon,marker:a,markerSize:x,color:v,lineWidth:y}}).filter(e=>e!==null);if(f.length===0)return null;let p=document.createElement(`div`);p.className=`pptx-chart-custom-legend`,p.style.position=`absolute`,p.style.display=`flex`,p.style.flexDirection=i?`column`:`row`,p.style.gap=i?`6px`:`12px`,p.style.pointerEvents=`none`,p.style.zIndex=`1`,p.style.whiteSpace=`nowrap`,r.left!==void 0&&(p.style.left=tY(r.left,t.w)),r.right!==void 0&&(p.style.right=tY(r.right,t.w)),r.width!==void 0&&(p.style.width=tY(r.width,t.w)),r.height!==void 0&&(p.style.height=tY(r.height,t.h)),(r.width!==void 0||r.height!==void 0)&&(p.style.boxSizing=`border-box`,a?(p.style.alignItems=`center`,r.width!==void 0&&(p.style.justifyContent=`center`)):(r.width!==void 0&&(p.style.alignItems=`center`),r.height!==void 0&&(p.style.justifyContent=`center`))),r.orient===`vertical`&&(r.left!==void 0||r.right!==void 0)?r.top===`middle`?(p.style.top=`${t.h/2}px`,p.style.transform=`translateY(-50%)`):r.top===void 0?r.bottom===void 0&&(p.style.top=`${t.h/2}px`,p.style.transform=`translateY(-50%)`):p.style.top=tY(r.top,t.h):r.top!==void 0&&(p.style.top=tY(r.top,t.h)),r.bottom!==void 0&&(p.style.bottom=tY(r.bottom,t.h)),a&&r.left===void 0&&r.right===void 0&&(p.style.left=`50%`,p.style.transform=`translateX(-50%)`);let m=r.textStyle?.fontSize??10,h=r.itemWidth??m,g=r.itemHeight??m;for(let e of f){let t=document.createElement(`div`);t.style.display=`flex`,t.style.alignItems=`center`,t.style.gap=`6px`;let i=e.marker&&e.marker!==`none`?e.markerSize:void 0,a=i===void 0?h:Math.max(h,Math.ceil(i)),o=i===void 0?g:Math.max(g,Math.ceil(i)),s=eY(e.icon,e.color,a,o,e.lineWidth,e.marker,i);s&&t.appendChild(s);let c=document.createElement(`span`);c.textContent=e.name,c.style.color=r.textStyle?.color??`#000000`,c.style.fontSize=`${m}px`,(n=r.textStyle)!=null&&n.fontFamily&&(c.style.fontFamily=r.textStyle.fontFamily),r.textStyle?.fontWeight!==void 0&&(c.style.fontWeight=String(r.textStyle.fontWeight)),t.appendChild(c),p.appendChild(t)}return p}function rY(e,t){let n=e.child(`autoTitleDeleted`);if(lq(n))return;let r=e.child(`title`);return r.exists()?jq(r):n.exists()&&!lq(n)&&t&&t.length===1&&t[0].name?t[0].name:void 0}function iY(e,t,n,r){let i=rY(e,t);if(!i)return;let a=e.child(`title`),o=Hq(a,n),s=Nq(Vq(a,n)),c=aY(e);return{text:o?.text??i,left:`center`,...c,textStyle:{fontSize:r,...s??{},...o?{rich:o.rich}:{}}}}function aY(e){let t=e.child(`title`).child(`layout`).child(`manualLayout`);if(!t.exists())return{};let n={},r=t.child(`x`).numAttr(`val`),i=t.child(`y`).numAttr(`val`);return r!==void 0&&(n.left=TJ(r)),i!==void 0&&(n.top=TJ(i)),n}function oY(e,t,n,r=50,i=!1){let a=jJ(e),o=[`50%`,`55%`],s=n?78:82;if(a===`right`?t&&i?(o=[`45%`,`55%`],s=76):t?(o=[`39%`,`54%`],s=87):(o=[`38%`,`55%`],s=82):a===`left`?(o=[`62%`,`55%`],s=82):a===`top`?o=[`50%`,`60%`]:a===`bottom`&&(o=[`50%`,`45%`]),(a===`top`||a===`bottom`)&&(s-=4),!t)return{center:o,radius:`${s}%`};let c=Math.round(Math.min(Math.max(r,10),90)/100*s);return{center:o,radius:[`${c}%`,`${s}%`]}}function sY(e,t=!1){return t?e:Math.round(e*.5)}function cY(e){if(!(e===void 0||!Number.isFinite(e)))return((90-e)%360+360)%360}var lY={circle:`circle`,square:`rect`,diamond:`diamond`,triangle:`triangle`,none:`none`,star:`circle`,dash:`circle`,dot:`circle`,plus:`circle`,x:`circle`};function uY(e){if(e)return lY[e]??`circle`}var dY=[`diamond`,`rect`,`triangle`,`circle`],fY=[`diamond`,`square`,`triangle`,`circle`],pY=hq(9),mY=pY,hY=120;function gY(e,t){return e===`lineMarker`||e===`smoothMarker`?dY[t%dY.length]:`circle`}function _Y(e){return fY[e%fY.length]}function vY(e,t=24){if(e.length<3)return e;for(let t=1;t<e.length;t++)if(e[t][0]<=e[t-1][0])return e;let n=e.length,r=Array(n-1);for(let t=0;t<n-1;t++)r[t]=(e[t+1][1]-e[t][1])/(e[t+1][0]-e[t][0]);let i=Array(n);i[0]=r[0],i[n-1]=r[n-2]*1.2;for(let e=1;e<n-1;e++)i[e]=(r[e-1]+r[e])/2*.3;let a=[[e[0][0],e[0][1]]];for(let r=0;r<n-1;r++){let[n,o]=e[r],[s,c]=e[r+1],l=s-n,u=i[r],d=i[r+1];for(let e=1;e<=t;e++){let r=e/t,i=2*r**3-3*r**2+1,s=r**3-2*r**2+r,f=-2*r**3+3*r**2,p=r**3-r**2,m=n+l*r,h=i*o+s*l*u+f*c+p*l*d;a.push([Number(m.toFixed(4)),Number(h.toFixed(4))])}}return a}function yY(e){return e.left!==void 0||e.top!==void 0||e.width!==void 0||e.height!==void 0}function bY(e,t){switch(e){case`outEnd`:return`top`;case`inEnd`:return`insideTop`;case`ctr`:return`inside`;case`inBase`:return`insideBottom`;default:return t?`inside`:`top`}}function xY(e){switch(e){case`l`:return`left`;case`r`:return`right`;case`b`:return`bottom`;case`ctr`:return`top`;default:return`top`}}function SY(e){return{...e.backgroundColor?{backgroundColor:e.backgroundColor}:{},...e.borderColor?{borderColor:e.borderColor}:{},...e.borderWidth===void 0?{}:{borderWidth:e.borderWidth},...e.padding?{padding:e.padding}:{}}}function CY(e){let t=e?.fontSize;if(t!==void 0)return`font-size: ${t}px; line-height: ${Math.max(t+5,Math.round(t*1.45))}px;`}function wY(e,t=`clustered`){let n=e.child(`grouping`);return n.exists()&&n.attr(`val`)||t}function TY(e){return e===`stacked`||e===`percentStacked`}function EY(e){return e===`percentStacked`}function DY(e){let t=Math.max(0,...e.map(e=>e.values.length)),n=Array(t).fill(0);for(let r of e)for(let e=0;e<t;e++)n[e]+=Math.max(r.values[e]??0,0);return e.map(e=>e.values.map((e,t)=>{let r=n[t]??0;return r===0?0:Number((Math.max(e,0)/r).toFixed(6))}))}function OY(e){e.min=0,e.max=1,e.interval=.1,e.axisLabel={...e.axisLabel||{},formatter:e=>iq(e,`0%`)}}function kY(e,t){let{r:n,g:r,b:i}=Jz(e),{h:a,s:o,l:s}=Xz(n,r,i),c=Zz(a+(t.hueOffset??0),Math.min(1,o*t.saturationScale),Math.max(0,Math.min(1,s+t.lightnessOffset)));return Yz(c.r,c.g,c.b)}function AY(e){return new Pf(0,0,0,1,[{offset:0,color:kY(e,{saturationScale:1.95,lightnessOffset:.217})},{offset:1,color:kY(e,{hueOffset:-5,saturationScale:1.7,lightnessOffset:-.128})}])}function jY(e,t){var n;if(!t)return e.flatMap(e=>e.values.filter((t,n)=>{var r;return!((r=e.blankIndices)!=null&&r.has(n))}));let r=Math.max(0,...e.map(e=>e.values.length)),i=[];for(let t=0;t<r;t++){let r=0,a=!1;for(let i of e)(n=i.blankIndices)!=null&&n.has(t)||(r+=i.values[t]??0,a=!0);a&&i.push(r)}return i}function MY(e,t,n){let r=jY(t,n).filter(e=>Number.isFinite(e));if(r.length===0)return;let i=Math.min(...r),a=Math.max(...r),o=XJ(a,i,8);if(e.min===void 0&&i>=0&&(e.min=0),e.interval===void 0&&(e.interval=o),e.max===void 0)if(n)e.max=Math.ceil(a/o)*o+o;else{let t=JJ(a,i,8);t>a&&t-a<o*.25&&(t+=o),e.max=t}}function NY(e){switch(e){case`ctr`:case`inEnd`:case`inBase`:return`inside`;default:return`outside`}}function PY(e,t){if(!(!e&&!t))return{showVal:e?.showVal??!1,showCatName:e?.showCatName??!1,showSerName:e?.showSerName??!1,showPercent:e?.showPercent??!1,position:e?.position,showLeaderLines:e?.showLeaderLines,manualLayout:e?.manualLayout,color:e?.color,fontSize:e?.fontSize,bold:e?.bold,backgroundColor:e?.backgroundColor,borderColor:e?.borderColor,borderWidth:e?.borderWidth,padding:e?.padding,...t}}function FY(e,t){let n=e?.child(`dLbls`);return n!=null&&n.exists()?n:t.child(`dLbls`)}function IY(e){return!!(e&&!e.deleted&&(e.showVal||e.showCatName||e.showSerName||e.showPercent))}function LY(e){let t=e.child(`dispBlanksAs`).attr(`val`);return t===`zero`||t===`span`?t:`gap`}function RY(e,t,n,r){var i;return(i=e.blankIndices)!=null&&i.has(t)?r===`zero`?0:null:n}function zY(e){let t=e[0]?.formatCode;if(t)return e.every(e=>e.formatCode===t)?t:void 0}function BY(e,t,n){if(!e||!IY(e))return;let r=e,i={show:!0,formatter:e=>{let i=[];return r.showSerName&&n&&i.push(n),r.showCatName&&i.push(e.name),r.showVal&&i.push(iq(e.value,t)),r.showPercent&&i.push(`${e.percent}%`),i.join(` `)},fontSize:r.fontSize??10,...r.bold===!0?{fontWeight:`bold`}:{},...r.color?{color:r.color}:{},position:NY(r.position),...SY(r)};return r.fontSize===void 0?i:Oq(i)}function VY(e){return e.size===0?void 0:t=>{if(t.dataIndex===void 0)return;let n=e.get(t.dataIndex);if(!n)return;let r=t.rect,i={};return n.x!==void 0&&(i.x=r?r.x+r.width*n.x:TJ(n.x)),n.y!==void 0&&(i.y=r?r.y+r.height*n.y:TJ(n.y)),n.width!==void 0&&(i.width=r?r.width*n.width:TJ(n.width)),n.height!==void 0&&(i.height=r?r.height*n.height:TJ(n.height)),i}}function HY(e){let t=new Set,n=[];for(let r of e)for(let e of r.categories)t.has(e)||(t.add(e),n.push(e));return n}function UY(e,t,n){if(!Array.isArray(e)||n<=1)return e;let r=Number.parseFloat(e[0]),i=Number.parseFloat(e[1]);if(!Number.isFinite(r)||!Number.isFinite(i)||i<=r)return e;let a=(i-r-1*(n-1))/n,o=Math.round(r+t*(a+1)),s=Math.round(o+a);return[`${o}%`,`${s}%`]}function WY(e,t,n,r){let i=e.child(`barDir`).attr(`val`)||e.attr(`barDir`)||`col`,a=wY(e),o=i===`bar`,s=e.child(`gapWidth`).numAttr(`val`)??150,c=e.child(`overlap`).numAttr(`val`),l=n.find(e=>e.categories.length>0)?.categories||[],u=iY(t,n,r,12),d=EJ(t,r),f=d?.option,p={fontSize:10,...d?.textStyle??{}},m=TY(a),h=EY(a),g=h?DY(n):void 0,_=LY(t),v=e.child(`varyColors`),y=n.length===1&&n[0].values.length>1&&!m&&!h&&!n[0].colorHex,b=v.exists()?lq(v):y,x=CJ(r,{darken:!o}),S=oJ(e,r);if(!S){let t=e.children(`ser`)[0];t!=null&&t.exists()&&(S=oJ(t,r))}let C=e.children(`ser`).map((e,t)=>({ser:e,order:e.child(`order`).numAttr(`val`)??t})).sort((e,t)=>e.order-t.order).map(e=>e.ser),w=n.map((t,i)=>{let a=t.formatCode,o=oJ(C[i]??e,r)??S,l=e=>{if(!(e!=null&&e.showVal))return;let t={show:!0,position:bY(e.position,m),fontSize:e.fontSize??9,...e.color?{color:e.color}:{},...e.bold===!0?{fontWeight:`bold`}:{},...SY(e),formatter:e=>{let t=e?.value,n=t&&typeof t==`object`&&`value`in t?t.value:t;return n===0||n===null?``:iq(n,h?`0%`:a)}};return e.fontSize===void 0?t:Oq(t)},u=l(o),d=lJ(FY(C[i],e),r),f=(g?.[i]??t.values).map((e,n)=>{let r=d.get(n),i=t.values[n]??e,a=RY(t,n,e,_),s=t.dataPointStyles?.[n],c;s?c={...s.color?{color:s.color}:{},...s.borderColor?{borderColor:s.borderColor}:{},...s.borderWidth===void 0?{}:{borderWidth:s.borderWidth},...s.borderType?{borderType:s.borderType}:{}}:t.invertIfNegative!==!1&&i<0?c={color:`#FFFFFF`,borderColor:`#000000`,borderWidth:1}:b&&!t.colorHex&&x.length>0&&(c={color:x[n%x.length]});let u;return r!=null&&r.deleted?u={show:!1}:r&&(u=l({showVal:o?.showVal??!1,showCatName:o?.showCatName??!1,showSerName:o?.showSerName??!1,showPercent:o?.showPercent??!1,position:o?.position,showLeaderLines:o?.showLeaderLines,manualLayout:o?.manualLayout,color:o?.color,fontSize:o?.fontSize,bold:o?.bold,backgroundColor:o?.backgroundColor,borderColor:o?.borderColor,borderWidth:o?.borderWidth,padding:o?.padding,...r})),!c&&!u?a:{value:a,...c?{itemStyle:c}:{},...u?{label:u}:{}}});return{type:`bar`,name:t.name,data:f,stack:m?`total`:void 0,itemStyle:t.colorHex?{color:t.colorHex}:void 0,label:u,...t.formatCode?{tooltip:{valueFormatter:e=>iq(e,h?`0%`:t.formatCode)}}:{},barGap:c===void 0?`0%`:`${-c}%`,barCategoryGap:s===void 0?void 0:`${Math.round(s*100/(100*(m?1:n.length)+s))}%`}}),{valueAxis:T,categoryAxis:E}=tJ(t.child(`plotArea`),r,e),D={type:`category`,data:l,axisLabel:{interval:0,rotate:0,fontSize:10}};rJ(D,E,`category`);let O=zY(n),k=(h?`0%`:void 0)||T.numFmt||(O!=null&&O.includes(`%`)?O:void 0),A={type:`value`,...k?{axisLabel:{formatter:e=>iq(e,k)}}:{}};h&&OY(A),rJ(A,T,`value`);let j=!!u,M=o&&j?60:kJ(j,d),N=AJ(j,d),P=o?15:T.deleted?4:18,F=o?28:10,ee=k||O,I=MJ(d),L=tX(t),R=!yY(L);return{title:u,tooltip:{trigger:`axis`,textStyle:p,extraCssText:CY(p),...ee?{valueFormatter:e=>iq(Array.isArray(e)?e[0]:e,ee)}:{}},legend:NJ(f,d,N,n.map(e=>e.name),p),grid:{containLabel:R,left:P,right:F,top:M,bottom:I,...L},xAxis:o?A:D,yAxis:o?D:A,series:w}}function GY(e,t,n,r,i,a){let o=n.find(e=>e.categories.length>0)?.categories||[],s=iY(t,n,r,14),c=EJ(t,r),l=c?.option,u={fontSize:10,...c?.textStyle??{}},d=wY(e,`standard`),f=TY(d),p=EY(d),m=p?DY(n):void 0,h=LY(t),g=oJ(e,r);if(!g){let t=e.children(`ser`)[0];t!=null&&t.exists()&&(g=oJ(t,r))}let _=e.children(`ser`).map((e,t)=>({ser:e,order:e.child(`order`).numAttr(`val`)??t})).sort((e,t)=>e.order-t.order).map(e=>e.ser),v=e.child(`marker`),y=v.exists()?lq(v):void 0,b=(e,t)=>e.colorHex??a?.[t%a.length],x=(e,t)=>{let n=b(e,t);return typeof n==`string`?n:void 0},S=n.map((t,n)=>{let a=b(t,n),o=uY(t.markerSymbol??(y===!0?_Y(n):y===!1?`none`:void 0)),s=o===void 0?void 0:o!==`none`,c=t.lineWidth??3,l={...a?{color:a}:{},width:c,cap:`round`,join:`round`,...t.lineNoFill?{opacity:0}:{}},u=t.formatCode,d=oJ(_[n]??e,r)??g,v=e=>{if(!e||!IY(e))return;let t=e,n={show:!0,position:xY(t.position),fontSize:t.fontSize??9,...t.color?{color:t.color}:{},...t.bold===!0?{fontWeight:`bold`}:{},...SY(t),formatter:e=>{let n=e?.value,r=n&&typeof n==`object`&&`value`in n?n.value:n,i=[];return t.showSerName&&e!=null&&e.seriesName&&i.push(e.seriesName),t.showCatName&&e!=null&&e.name&&i.push(e.name),t.showVal&&typeof r==`number`&&i.push(iq(r,p?`0%`:u)),t.showPercent&&typeof e?.percent==`number`&&i.push(`${e.percent}%`),i.join(` `)}};return t.fontSize===void 0?n:Oq(n)},x=v(d),S=lJ(FY(_[n],e),r),C=new Map,w=(m?.[n]??t.values).map((e,n)=>{let r=RY(t,n,e,h),i=S.get(n);if(!i)return r;i.manualLayout&&C.set(n,i.manualLayout);let a=i.deleted?{show:!1}:v(PY(d,i));return a?{value:r,label:a}:r}),T=!!(x!=null&&x.show&&o===`none`),E=T?`circle`:o&&o!==`none`?o:void 0,D=T?0:t.markerSize??(t.markerSymbol===void 0&&y===!0?pY:void 0),O=T?!0:i&&o===void 0?!1:s,k=O===!0&&E!==void 0&&E!==`none`&&D!==0;return{type:`line`,name:t.name,data:w,stack:f?`total`:void 0,areaStyle:i?{...a?{color:a}:{},opacity:1}:void 0,itemStyle:a?{color:a}:void 0,lineStyle:l,label:x,labelLayout:VY(C),connectNulls:h===`span`,...t.smooth?{smooth:!0}:{},...t.formatCode?{tooltip:{valueFormatter:e=>iq(e,p?`0%`:t.formatCode)}}:{},endLabel:{show:!1},...E?{symbol:E}:{},...D===void 0?{}:{symbolSize:D},...O===void 0?{}:{showSymbol:O},...k?{showAllSymbol:!0}:{},z:3}}),{valueAxis:C,categoryAxis:w}=tJ(t.child(`plotArea`),r,e),T=zY(n),E=(p?`0%`:void 0)||C.numFmt||(T!=null&&T.includes(`%`)?T:void 0),D={type:`value`,...E?{axisLabel:{formatter:e=>iq(e,E)}}:{}};p&&OY(D),rJ(D,C,`value`),!p&&i&&MY(D,n,f);let O={type:`category`,data:o,...i?{boundaryGap:!1}:{},axisLabel:{interval:0,rotate:0}};rJ(O,w,`category`);let k=kJ(!!s,c),A=AJ(!!s,c),j=C.deleted?4:18,M=E||T,N=MJ(c),P=tX(t),F=!yY(P),ee=n.map((e,t)=>({series:e,idx:t})),I=f||p?[...ee].reverse():ee;return{title:s,tooltip:{trigger:`axis`,textStyle:u,extraCssText:CY(u),...M?{valueFormatter:e=>iq(Array.isArray(e)?e[0]:e,M)}:{}},legend:NJ(l,c,A,i?I.map(({series:e,idx:t})=>{let n=x(e,t);return n?{name:e.name,itemStyle:{color:n}}:e.name}):I.map(({series:e,idx:t})=>{let n=uY(e.markerSymbol??(y===!0?_Y(t):y===!1?`none`:void 0)),r=x(e,t),i=r?{lineStyle:{color:r},itemStyle:{color:r}}:{};return n&&n!==`none`?{name:e.name,icon:LJ(),marker:n,...i}:{name:e.name,icon:LJ(),...i}}),u),grid:{containLabel:F,left:j,right:10,top:k,bottom:N,...P},xAxis:O,yAxis:D,series:S}}function KY(e,t,n,r,i){let a=iY(t,n,i,12),o=EJ(t,i),s=o?.option,c={fontSize:10,...o?.textStyle??{}},l=r?n:n.slice(0,1);if(l.length===0)return{title:a};let u=e.children(`ser`).map((e,t)=>({ser:e,order:e.child(`order`).numAttr(`val`)??t})).sort((e,t)=>e.order-t.order).map(e=>e.ser),d=l.map((t,n)=>{let r=u[n],a=(r!=null&&r.exists()?oJ(r,i):void 0)??oJ(e,i),o=FY(r,e),s=r?.exists()&&r.child(`dLbls`).exists()||e.child(`dLbls`).exists(),c=lJ(o,i),l=[...c.values()].some(e=>IY(PY(a,e)));return{series:t,serNode:r,sharedLabels:a,pointOverrides:c,labelsExplicitlyOff:s&&!a&&!l,explosions:r?dJ(r,t.categories.length):void 0}}),f=oY(o,r,d.some(e=>!e.labelsExplicitlyOff&&(IY(e.sharedLabels)||[...e.pointOverrides.values()].some(t=>IY(PY(e.sharedLabels,t))))),r?e.child(`holeSize`).numAttr(`val`)??50:50,d.some(e=>e.explosions?.some(e=>e>0))),p=cY(e.child(`firstSliceAng`).numAttr(`val`)),m=d.map((e,t)=>{var n;let i=new Map,a=e.series.categories.map((t,n)=>{var a,o;let s=e.pointOverrides.get(n),c=PY(e.sharedLabels,s);c!=null&&c.manualLayout&&i.set(n,c.manualLayout);let l={name:t||`Item ${n+1}`,value:e.series.values[n]??0},u=e.series.dataPointStyles?.[n];return u?l.itemStyle={...u.color?{color:u.color}:{},...u.borderColor?{borderColor:u.borderColor}:{},...u.borderWidth===void 0?{}:{borderWidth:u.borderWidth},...u.borderType?{borderType:u.borderType}:{}}:(a=e.series.dataPointColors)!=null&&a[n]&&(l.itemStyle={color:e.series.dataPointColors[n]}),(o=e.explosions)!=null&&o[n]&&e.explosions[n]>0&&(l.selected=!0,l.selectedOffset=sY(e.explosions[n],r)),s!=null&&s.deleted?l.label={show:!1}:s&&IY(c)&&(l.label=BY(c,e.series.formatCode,e.series.name)),l}),o=BY(e.sharedLabels,e.series.formatCode,e.series.name),s=!!((n=e.sharedLabels)!=null&&n.showLeaderLines)||[...e.pointOverrides.values()].some(e=>e.showLeaderLines===!0),c=e.explosions&&Math.max(...e.explosions.map(e=>sY(e,r)));return{type:`pie`,name:e.series.name,radius:r?UY(f.radius,t,d.length):f.radius,center:f.center,data:a,selectedMode:e.explosions?`multiple`:!1,...c?{selectedOffset:c}:{},...p===void 0?{}:{startAngle:p,clockwise:!0},label:o??{show:!1},labelLine:{show:s},labelLayout:VY(i)}}),h=AJ(!!a,o),g=zY(l),_=r?HY(l):l[0].categories;return{title:a,tooltip:{trigger:`item`,...g?{valueFormatter:e=>iq(Array.isArray(e)?e[0]:e,g)}:{}},legend:NJ(s,o,h,_,c),series:m}}function qY(e,t,n,r,i,a){let o=iY(t,n,r,12),s=EJ(t,r),c=s?.option,l={fontSize:10,...s?.textStyle??{}},u=n.find(e=>e.categories.length>0)?.categories||[],d=t.child(`plotArea`),{valueAxis:f}=tJ(d,r),p;if(f.max!==void 0)p=f.max;else{let e=0,t=0;for(let r of n)for(let n of r.values)n>e&&(e=n),n<t&&(t=n);let r=XJ(e,t,5);p=Math.ceil(e/r)*r||100}let m=!f.deleted&&f.tickLblPos!==`none`,h=e.child(`radarStyle`).attr(`val`),g=m?{show:!0,formatter:e=>iq(e,f.numFmt),color:f.labelColor??`#000000`,...f.labelFontSize===void 0?{}:{fontSize:f.labelFontSize}}:void 0,_=h===`filled`?{radarZ:4,seriesZ:2}:{radarZ:void 0,seriesZ:void 0},v=e.children(`axId`)[1]?.attr(`val`),y=d.children(`valAx`).find(e=>e.child(`axId`).attr(`val`)===v)??d.child(`valAx`),b=y.child(`majorGridlines`).child(`spPr`).exists(),x=y.child(`spPr`).child(`ln`).exists(),S=f.hasMajorGridlines&&(h!==`filled`||b)?{show:!0,lineStyle:{...Eq,...b?f.majorGridlineStyle??{}:{}}}:{show:!1},C=f.deleted?{show:!1}:{show:!0,lineStyle:{color:x?f.lineColor??Eq.color:Eq.color}},w=(u.length>1?[u[0],...u.slice(1).reverse()]:u).map((e,t)=>({name:e,max:p,...f.min===void 0?{}:{min:f.min},...t===0&&g?{axisLabel:g}:{}})),T=OJ(s)&&!(s!=null&&s.overlay),E=nX(t,a),D=E?.center??(T?[`50%`,`66%`]:h===`filled`?[`50%`,`55%`]:[`50%`,`50%`]),O=E?.radius??(T?`58%`:h===`filled`?`76%`:`86%`),k=n.map((e,t)=>{let n=e.values.length>1?[e.values[0],...e.values.slice(1).reverse()]:e.values,r=uY(e.markerSymbol),a=h===`marker`||r!==void 0&&r!==`none`,o=h===`filled`,s=e.colorHex??i?.[t%i.length],c=typeof s==`string`?AY(s):s,l=o?{...c?{color:c}:{},opacity:.75}:void 0;return{name:e.name,value:n,...s?{lineStyle:{color:s,width:e.lineWidth??3,cap:`round`,join:`round`,...e.lineNoFill?{opacity:0}:{}},itemStyle:{color:s}}:{lineStyle:{width:e.lineWidth??3,cap:`round`,join:`round`,...e.lineNoFill?{opacity:0}:{}}},...l?{areaStyle:l}:{},...r&&r!==`none`?{symbol:r}:{},...a?{}:{symbol:`none`},...e.markerSize?{symbolSize:e.markerSize}:{},...a?{symbolSize:e.markerSize??6}:{}}});return{title:o,tooltip:{},legend:NJ(c,s,AJ(!!o,s),n.map(e=>{let t=uY(e.markerSymbol);return e.lineNoFill&&t&&t!==`none`?{name:e.name,icon:t}:{name:e.name,icon:LJ(),...t&&t!==`none`?{marker:t}:{}}}),l),radar:{..._.radarZ===void 0?{}:{z:_.radarZ},indicator:w,radius:O,center:D,splitNumber:5,splitLine:S,axisLine:C,splitArea:{show:!1}},series:[{type:`radar`,..._.seriesZ===void 0?{}:{z:_.seriesZ},data:k}]}}function JY(e,t,n,r){let i=iY(t,n,r,14),a=EJ(t,r),o=a?.option,s={fontSize:10,...a?.textStyle??{}},c=e.child(`scatterStyle`).attr(`val`)??`lineMarker`,l=c===`lineMarker`||c===`line`||c===`smoothMarker`||c===`smooth`,u=c===`smoothMarker`||c===`smooth`,d=c===`line`||c===`smooth`,f=n.map((e,t)=>{let n=e.values.map((t,n)=>[e.xValues&&n<e.xValues.length?e.xValues[n]:n,t]),r=uY(e.markerSymbol)??gY(c,t),i=!d&&r!==`none`;if((l||e.smooth)&&!e.lineNoFill){let t=e.smooth??u?vY(n):n,a=e.lineWidth??3;return{type:`line`,name:e.name,data:t,smooth:!1,showSymbol:i,...i?{symbol:r,symbolSize:e.markerSize??mY}:{},...e.colorHex?{lineStyle:{color:e.colorHex,width:a,cap:`round`,join:`round`},itemStyle:{color:e.colorHex}}:{lineStyle:{width:a,cap:`round`,join:`round`}}}}return{type:`scatter`,name:e.name,data:n,symbol:i?r:`none`,symbolSize:i?e.markerSize??mY:0,itemStyle:e.colorHex?{color:e.colorHex}:void 0}}),p=n.map((e,t)=>{let n=uY(e.markerSymbol)??gY(c,t),r=!d&&n!==`none`;return(l||e.smooth)&&!e.lineNoFill?r&&n?{name:e.name,icon:n}:{name:e.name,icon:LJ()}:n&&n!==`none`?{name:e.name,icon:n}:e.name}),{xAxis:m,yAxis:h}=nJ(t.child(`plotArea`),r),g=kJ(!!i,a),_=AJ(!!i,a),v=tX(t),y=!yY(v),b=h.deleted?4:18,x=g,S=Math.max(MJ(a),20),C={type:`value`},w={type:`value`};return rJ(C,m,`value`),rJ(w,h,`value`),{title:i,tooltip:{trigger:`item`},legend:NJ(o,a,_,p,s),grid:{containLabel:y,left:b,right:10,top:x,bottom:S,...v},xAxis:C,yAxis:w,series:f}}function YY(e,t,n){if(e.max!==void 0||t.length===0)return;let r=t.map((e,t)=>({value:e,bubbleSize:n[t]??0})).filter(({value:e})=>Number.isFinite(e));if(r.length===0)return;let i=Math.min(...r.map(({value:e})=>e)),a=Math.max(...r.map(({value:e})=>e)),o=a-Math.min(0,i)<=3?3:8,s=XJ(a,i,o),c=JJ(a,i,o);c>a&&c-a<s*.25&&(c+=s);let l=Math.max(...r.map(({bubbleSize:e})=>e)),u=Math.max(...r.filter(({value:e})=>Math.abs(e-a)<1e-9).map(({bubbleSize:e})=>e),0);l>0&&u/l>=.75&&(c+=s),e.max=c,e.min===void 0&&i>=0&&(e.min=0),e.interval===void 0&&(e.interval=s)}function XY(e,t,n,r){let i=iY(t,n,r,14),a=EJ(t,r),o=a?.option,s={fontSize:10,...a?.textStyle??{}},c=hY*(Math.max(e.child(`bubbleScale`).numAttr(`val`)??100,0)/100),l=-1/0;for(let e of n)if(e.bubbleSizes)for(let t of e.bubbleSizes)t>l&&(l=t);let u=l>0?l:1,d=n.map(e=>{let t=e.values.map((t,n)=>[e.xValues&&n<e.xValues.length?e.xValues[n]:n,t,e.bubbleSizes&&n<e.bubbleSizes.length?e.bubbleSizes[n]:0]);return{type:`scatter`,name:e.name,data:t,symbolSize:e=>{let t=Math.max(Number(e[2])||0,0);return Math.sqrt(t/u)*c},itemStyle:e.colorHex?{color:e.colorHex}:void 0}}),{xAxis:f,yAxis:p}=nJ(t.child(`plotArea`),r),m=kJ(!!i,a),h=AJ(!!i,a),g=tX(t),_=!yY(g),v=p.deleted?4:18,y=m,b=Math.max(MJ(a),20),x={type:`value`},S={type:`value`};rJ(x,f,`value`),rJ(S,p,`value`);let C=n.flatMap(e=>e.values.map((t,n)=>({x:e.xValues&&n<e.xValues.length?e.xValues[n]:n,y:t,bubbleSize:e.bubbleSizes&&n<e.bubbleSizes.length?e.bubbleSizes[n]:0})));return YY(x,C.map(e=>e.x),C.map(e=>e.bubbleSize)),YY(S,C.map(e=>e.y),C.map(e=>e.bubbleSize)),{title:i,tooltip:{trigger:`item`,formatter:e=>{let t=e;return`${t.seriesName}<br/>x: ${t.value[0]}, y: ${t.value[1]}, size: ${t.value[2]}`}},legend:NJ(o,a,h,n.map(e=>({name:e.name,icon:`circle`})),s),grid:{containLabel:_,left:v,right:10,top:y,bottom:b,...g},xAxis:x,yAxis:S,series:d}}function ZY(e){return/^\d{4}[/-]\d{1,2}[/-]\d{1,2}$/.test(e.trim())}function QY(e){switch(e){case`dot`:case`circle`:return`circle`;case`square`:return`rect`;case`diamond`:case`triangle`:return e;case`none`:case void 0:return`none`;default:return`circle`}}function $Y(e,t,n,r){let i=iY(t,n,r,14),a=EJ(t,r),o=n.find(e=>e.categories.length>0)?.categories||[],s=o.length||Math.max(...n.map(e=>e.values.length),0),c=[];if(n.length>=4)for(let e=0;e<s;e++)c.push([n[0].values[e]??0,n[3].values[e]??0,n[2].values[e]??0,n[1].values[e]??0]);else if(n.length>=3)for(let e=0;e<s;e++){let t=n[2].values[e]??0;c.push([t,t,n[1].values[e]??0,n[0].values[e]??0])}else for(let e=0;e<s;e++){let t=n[0]?.values[e]??0;c.push([0,t,0,t])}let{valueAxis:l,categoryAxis:u}=tJ(t.child(`plotArea`),r,e),d=kJ(!!i,a),f=tX(t),p=!yY(f),m={type:`category`,data:o,axisLabel:{interval:0,rotate:0,fontSize:10},splitLine:{show:!1}};rJ(m,u,`category`);let h=o.length>=3&&o.every(e=>ZY(e))&&!u.deleted&&u.tickLblPos!==`none`;if(h){let e=m.axisLabel||{};m.axisLabel={...e,rotate:45,margin:Math.max(Number(e.margin)||0,10)}}let g={type:`value`};rJ(g,l,`value`);let _=c.flatMap(e=>[e[2],e[3]]).filter(e=>Number.isFinite(e));if(_.length>0){let e=Math.min(..._),t=Math.max(..._);if(g.min===void 0&&e>=0&&(g.min=0),g.interval===void 0&&(g.interval=XJ(t,e,7)),g.max===void 0){let n=Number(g.interval)||XJ(t,e,7);g.max=Math.ceil(t/n)*n+n}}let v=a?.option,y={fontSize:10,...a?.textStyle??{}},b=AJ(!!i,a),x=Math.max(MJ(a),h?56:0),S=n.length>=3&&n.length<4,C=S?n.slice(0,3).map((e,t)=>({name:e.name,icon:t===2?QY(e.markerSymbol):`none`})):n.map(e=>e.name),w=S?[{type:`custom`,name:n[2].name,coordinateSystem:`cartesian2d`,data:Array.from({length:s},(e,t)=>[t,n[0].values[t]??0,n[1].values[t]??0,n[2].values[t]??0]),renderItem:(e,t)=>{let r=t.value(0),i=t.value(1),a=t.value(2),o=t.value(3),s=t.coord([r,i]),c=t.coord([r,a]),l=t.coord([r,o]),u=Math.max(8,t.size([1,0])[0]||12),d=Math.min(4,Math.max(2,Math.round(u*.04))),f=FJ(n[0].colorHex,`#000000`),p=FJ(n[2].colorHex,`#00B050`);return{type:`group`,children:[{type:`line`,shape:{x1:s[0],y1:s[1],x2:c[0],y2:c[1]},style:{stroke:f,lineWidth:1}},{type:`line`,shape:{x1:l[0],y1:l[1],x2:l[0]+d,y2:l[1]},style:{stroke:p,lineWidth:1}}]}},silent:!0}]:[{type:`candlestick`,name:n.length>=3?n[2].name:n[0]?.name,data:c,itemStyle:{color:FJ(n[n.length>=4?3:2]?.colorHex,`#ec0000`),color0:FJ(n[0]?.colorHex,`#00da3c`),borderColor:FJ(n[n.length>=4?3:2]?.colorHex,`#ec0000`),borderColor0:FJ(n[0]?.colorHex,`#00da3c`)}}];return{title:i,tooltip:{trigger:`axis`,axisPointer:{type:`cross`}},legend:NJ(v,a,b,C,y),grid:{containLabel:p,left:24,right:10,top:d,bottom:x,...f},xAxis:m,yAxis:g,series:w}}function eX(e){let t=e.child(`plotArea`).child(`layout`).child(`manualLayout`);return t.exists()?{x:t.child(`x`).numAttr(`val`),y:t.child(`y`).numAttr(`val`),w:t.child(`w`).numAttr(`val`),h:t.child(`h`).numAttr(`val`)}:{}}function tX(e){let t=eX(e),n={};return t.x!==void 0&&(n.left=TJ(t.x)),t.y!==void 0&&(n.top=TJ(t.y)),t.w!==void 0&&(n.width=TJ(t.w)),t.h!==void 0&&(n.height=TJ(t.h)),n}function nX(e,t){let{x:n,y:r,w:i,h:a}=eX(e);if(n===void 0||r===void 0||i===void 0||a===void 0)return;let o=n+i/2,s=r+a/2;return t?{center:[o*t.w,s*t.h],radius:Math.min(i*t.w,a*t.h)/2}:{center:[TJ(o),TJ(s)],radius:TJ(Math.min(i,a)/2)}}function rX(e,t,n){if(!n)return;let{x:r=0,y:i=0,w:a=1,h:o=1}=eX(e);return{type:`rect`,silent:!0,z:-10,left:r*n.w,top:i*n.h,shape:{width:a*n.w,height:o*n.h},style:{fill:t,stroke:`none`}}}function iX(e,t){let n=e.graphic;if(!n){e.graphic=t;return}e.graphic=Array.isArray(n)?[t,...n]:[t,n]}function aX(e,t,n,r,i,a,o){switch(e){case`barChart`:case`bar3DChart`:return WY(t,n,r,i);case`lineChart`:case`line3DChart`:return GY(t,n,r,i,!1,a);case`areaChart`:case`area3DChart`:case`surface3DChart`:return GY(t,n,r,i,!0,a);case`pieChart`:case`pie3DChart`:return KY(t,n,r,!1,i);case`doughnutChart`:return KY(t,n,r,!0,i);case`radarChart`:return qY(t,n,r,i,a,o);case`scatterChart`:return JY(t,n,r,i);case`bubbleChart`:return XY(t,n,r,i);case`stockChart`:return $Y(t,n,r,i);default:return}}function oX(e){return e===`barChart`||e===`bar3DChart`||e===`lineChart`||e===`line3DChart`||e===`areaChart`||e===`area3DChart`||e===`stockChart`||e===`surface3DChart`}function sX(e,t){let n=PJ(e),r=PJ(t);if(!n)return t;if(!r)return e;let i=[...n.data??[],...r.data??[]],a=new Set,o=i.filter(e=>{let t=typeof e==`string`?e:e.name;return a.has(t)?!1:(a.add(t),!0)}),s={...n,data:o};return o.some(e=>typeof e==`object`&&e.icon)&&delete s.icon,s}function cX(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function lX(e,t,n){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`){if(e.endsWith(`%`)){let r=parseFloat(e);return Number.isFinite(r)?t*r/100:n}let r=parseFloat(e);return Number.isFinite(r)?r:n}return n}function uX(e,t,n,r){if(typeof e?.width==`string`&&n===`left`&&e.width.endsWith(`%`))return t*parseFloat(e.width)/100;if(typeof e?.height==`string`&&n===`top`&&e.height.endsWith(`%`))return t*parseFloat(e.height)/100;if(typeof e?.width==`number`&&n===`left`)return e.width;if(typeof e?.height==`number`&&n===`top`)return e.height;let i=lX(e?.[n],t,0),a=lX(e?.[r],t,0);return Math.max(0,t-i-a)}function dX(e){return typeof e.min==`number`&&typeof e.max==`number`&&e.min<0&&e.max>0}function fX(e,t,n){if(!t||e.type!==`category`||t.type!==`value`||e.axisLine?.onZero!==!0||!dX(t)||n<=0)return!1;let r=n*((0-t.min)/(t.max-t.min)),i=e.axisLabel??={},a=Math.max(6,Math.round(i.fontSize??10));return i.margin=-Math.round(Math.max(0,r-a)),e.z=Math.max(e.z??0,20),!0}function pX(e,t){let n=cX(e.grid)[0],r=cX(e.xAxis),i=cX(e.yAxis),a=uX(n,t.h,`top`,`bottom`),o=uX(n,t.w,`left`,`right`),s=!1;r.forEach((e,t)=>{s=fX(e,i[t]??i[0],a)||s}),i.forEach((e,t)=>{s=fX(e,r[t]??r[0],o)||s}),s&&n&&(n.containLabel=!1,n.left=Math.max(lX(n.left,t.w,0),48))}function mX(e){return $q(e)[1]}function hX(e,t,n,r){let i=Array.isArray(e.series)?e.series:[],a=Array.isArray(t.series)?t.series:[],o=mX(n),s=mX(r);if(o!==void 0&&s!==void 0&&o!==s){let n=cX(e.yAxis),r=cX(t.yAxis),o=n.length;return{...e,legend:sX(e.legend,t.legend),yAxis:[...n,...r],series:[...i,...a.map(e=>({...e,yAxisIndex:e.yAxisIndex===void 0?o:e.yAxisIndex}))]}}return{...e,legend:sX(e.legend,t.legend),series:[...i,...a]}}function gX(e,t,n,r){let i=gJ(e,t),a=wJ(e,i,n),o=e.child(`chart`),s=o.child(`plotArea`);if(!s.exists())return{option:{title:{text:`Unsupported chart`,left:`center`}},chartFrameStyle:$J(e,i)};let{chartBg:c,plotAreaBg:l}=QJ(e,o,i),u=$J(e,i),d=Aq.flatMap(e=>s.children(e).map(t=>{let n=fJ(t,i);return n.length===0?null:{typeName:e,chartTypeNode:t,seriesArr:n}})).filter(e=>e!==null);for(let[t,n]of d.entries()){let f=aX(n.typeName,n.chartTypeNode,o,n.seriesArr,i,a,r);if(!f)continue;if(t===0&&d.length>1&&oX(n.typeName))for(let e of d.slice(1)){if(!oX(e.typeName))continue;let t=aX(e.typeName,e.chartTypeNode,o,e.seriesArr,i,a,r);t&&(f=hX(f,t,n.chartTypeNode,e.chartTypeNode))}let p=ZJ(e);p&&BJ(f,p);let m=Uq(i);if(m&&VJ(f,m),HJ(f),UJ(f,o,p),qJ(f,r),c&&(f.backgroundColor=c),a&&a.length>0&&(f.color=a),l)if(f.grid)f.grid.backgroundColor=l,f.grid.show=!0;else{let e=rX(o,l,r);e&&iX(f,e)}let h=t===0&&d.length>1&&oX(n.typeName)?d.filter(e=>oX(e.typeName)).flatMap(e=>e.seriesArr).sort((e,t)=>e.order-t.order):n.seriesArr,g=pJ(s),_=g?{seriesArr:h,showKeys:g.showKeys}:void 0;return{option:f,dataTable:_,chartFrameStyle:u}}return{option:{title:{text:`Unsupported chart type`,left:`center`,textStyle:{fontSize:12}}},chartFrameStyle:u}}function _X(e,t){var n;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`${e.position.x}px`,r.style.top=`${e.position.y}px`,r.style.width=`${e.size.w}px`,r.style.height=`${e.size.h}px`,r.style.overflow=`hidden`,r.style.display=`flex`,r.style.flexDirection=`column`;let i=t.presentation.charts?.get(e.chartPath);if(!i)return r.style.border=`1px dashed #ccc`,r.style.display=`flex`,r.style.alignItems=`center`,r.style.justifyContent=`center`,r.style.color=`#999`,r.style.fontSize=`12px`,r.textContent=`Chart not found`,r;let a=document.createElement(`div`);a.style.width=`100%`,a.style.flex=`1`,a.style.minWidth=`0`,a.style.minHeight=`0`,a.style.overflow=`hidden`,r.appendChild(a);let o=t.presentation.chartThemes?.get(e.chartPath),{option:s,dataTable:c,chartFrameStyle:l}=gX(i,o?{...t,theme:o,colorCache:new Map}:t,e.chartPath,e.size);pX(s,e.size),l&&(r.style.boxSizing=`border-box`,l.borderColor&&l.borderWidth&&l.borderStyle&&(r.style.border=`${l.borderWidth}px ${l.borderStyle} ${l.borderColor}`));let u=nY(s,e.size),d=PJ(s.legend);if(u&&d&&(d.show=!1,r.appendChild(u)),c){let e=c.seriesArr.map(e=>e.colorHex).filter(Boolean),t=mJ(c,e.length>0?e:void 0);r.appendChild(t)}let f=t.chartInstances,p=new Promise(e=>{let t=()=>{vX(a,s,f),e()};requestAnimationFrame(()=>{if(!a.isConnected){e();return}if(a.offsetWidth===0||a.offsetHeight===0){if(typeof ResizeObserver>`u`){t();return}let n=new ResizeObserver(e=>{if(!a.isConnected){n.disconnect();return}let{width:r,height:i}=e[0]?.contentRect??{width:0,height:0};r>0&&i>0&&(n.disconnect(),t())});n.observe(a),e();return}t()})});return(n=t.asyncTasks)==null||n.push(p),r}function vX(e,t,n){try{let r=$S(e);if(r.setOption(t),n?.add(r),typeof ResizeObserver>`u`)return;let i=new ResizeObserver(()=>{e.isConnected?r.resize():(i.disconnect(),r.isDisposed()||r.dispose(),n?.delete(r))});i.observe(e)}catch(t){console.warn(`Failed to initialize ECharts:`,t),e.style.display=`flex`,e.style.alignItems=`center`,e.style.justifyContent=`center`,e.style.color=`#999`,e.style.fontSize=`12px`,e.textContent=`Chart render error`}}function yX(e,t){switch(e.nodeType){case`shape`:return VW(e,t);case`picture`:return kG(e,t);case`table`:return RK(e,t);case`group`:return JK(e,t,yX);case`chart`:return _X(e,t);default:{let t=document.createElement(`div`);return t.style.position=`absolute`,t.style.left=`${e.position.x}px`,t.style.top=`${e.position.y}px`,t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t}}}function bX(e){let t=document.createElement(`div`);return t.style.position=`absolute`,t.style.left=`${e.position.x}px`,t.style.top=`${e.position.y}px`,t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.border=`2px dashed #ff4444`,t.style.backgroundColor=`rgba(255,68,68,0.08)`,t.style.display=`flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.color=`#cc0000`,t.style.fontSize=`11px`,t.style.fontFamily=`monospace`,t.style.overflow=`hidden`,t.style.boxSizing=`border-box`,t.style.padding=`4px`,t.textContent=`Render Error`,t.title=`Failed to render node: ${e.id} (${e.name})`,t}var xX=new WeakMap;function SX(e,t,n,r){let i=[];if(!e||!e.exists||!e.exists())return i;let a={rels:t??new Map,partPath:n,diagramDrawings:r};for(let t of e.allChildren())if(!pz(t))try{let e=Sz(t,a);e&&(e.size.w>0||e.size.h>0)&&i.push(e)}catch{}return i}function CX(e,t,n,r){let i=xX.get(e);if(i&&i.rels===t&&i.partPath===n&&i.diagramDrawings===r)return i.nodes;let a=SX(e,t,n,r);return xX.set(e,{nodes:a,rels:t,partPath:n,diagramDrawings:r}),a}function wX(e){if(e.isConnected)return()=>{};let t={position:e.style.position,left:e.style.left,top:e.style.top,visibility:e.style.visibility,pointerEvents:e.style.pointerEvents,contain:e.style.contain};return e.style.position=`fixed`,e.style.left=`-100000px`,e.style.top=`0`,e.style.visibility=`hidden`,e.style.pointerEvents=`none`,e.style.contain=`layout style paint`,document.body.appendChild(e),()=>{e.parentNode===document.body&&document.body.removeChild(e),e.style.position=t.position,e.style.left=t.left,e.style.top=t.top,e.style.visibility=t.visibility,e.style.pointerEvents=t.pointerEvents,e.style.contain=t.contain}}function TX(e,t,n){var r,i;Bz(e,t);let a=!!(n!=null&&n.mediaUrlCache),o=n?.chartInstances??new Set,s=[],c=new AbortController,l=qz(e,t,n?.mediaUrlCache,o,n?.pdfjs,c.signal);l.asyncTasks=s,n!=null&&n.onNavigate&&(l.onNavigate=n.onNavigate);let u=document.createElement(`div`);u.style.position=`relative`,u.style.width=`${e.width}px`,u.style.height=`${e.height}px`,u.style.overflow=`hidden`,u.style.backgroundColor=`#FFFFFF`,l.measurementRoot=u;let d=wX(u);try{try{bV(l,u)}catch(e){(r=n?.onNodeError)==null||r.call(n,`__background__`,e)}if(t.showMasterSp&&l.layout.showMasterSp){let t={...l,slide:{...l.slide,rels:l.master.rels},partPath:l.masterPath,skipPlaceholderChildren:!0},n=CX(l.master.spTree,l.master.rels,l.masterPath,e.diagramDrawings);for(let e of n)try{let n=yX(e,t);u.appendChild(n)}catch{}}if(t.showMasterSp){let t={...l,slide:{...l.slide,rels:l.layout.rels},partPath:l.layoutPath,skipPlaceholderChildren:!0},n=CX(l.layout.spTree,l.layout.rels,l.layoutPath,e.diagramDrawings);for(let e of n)try{let n=yX(e,t);u.appendChild(n)}catch{}}for(let e of t.nodes)try{let t=yX(e,l);u.appendChild(t)}catch(t){(i=n?.onNodeError)==null||i.call(n,e.id,t),u.appendChild(bX(e))}}finally{d()}let f=!1,p=l.mediaUrlCache,m=Promise.allSettled(s).then(()=>{}),h=()=>{if(!f){if(f=!0,c.abort(),o)for(let e of o)!e.isDisposed()&&u.contains(e.getDom())&&(e.dispose(),o.delete(e));if(!a){for(let e of p.values())URL.revokeObjectURL(e);p.clear()}}};return{element:u,ready:m,dispose:h,[Symbol.dispose](){h()}}}var EX={includeShapes:!0,includeTables:!0,includeGroups:!0},DX={offsetX:0,offsetY:0,scaleX:1,scaleY:1},OX=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),kX=e=>e?e.paragraphs.map(e=>e.runs.map(e=>e.text).join(``)).join(`
76
+ `):``,AX=e=>kX(e.textBody),jX=(e,t=DX)=>({x:t.offsetX+e.position.x*t.scaleX,y:t.offsetY+e.position.y*t.scaleY,w:e.size.w*t.scaleX,h:e.size.h*t.scaleY}),MX=e=>e.trim().length>0,NX=e=>e!==void 0&&/[A-Za-z0-9_]/.test(e),PX=(e,t,n)=>!NX(e[t-1])&&!NX(e[n]),FX=e=>{let t=(e%360+360)%360;return Math.abs(t-90)<1e-4||Math.abs(t-270)<1e-4},IX=(e,t,n,r)=>{let i=Math.max(0,t-r),a=Math.min(e.length,n+r),o=i>0?`...`:``,s=a<e.length?`...`:``;return`${o}${e.slice(i,a)}${s}`},LX=(e,t,n=!1,r)=>{let i=Sz(e,{...t,skipPlaceholders:n});return i&&Gz(i,t.layout,t.master,{parentGroup:r}),i},RX=(e,t,n)=>{if(e.childExtent.w<=0||e.childExtent.h<=0)return{offsetX:n.offsetX+e.position.x*n.scaleX,offsetY:n.offsetY+e.position.y*n.scaleY,scaleX:n.scaleX,scaleY:n.scaleY};let r=e.childExtent.w>0?e.size.w/e.childExtent.w:1,i=e.childExtent.h>0?e.size.h/e.childExtent.h:1;if(FX(t.rotation)){let a=t.position.x+(t.size.w-t.size.h)/2,o=t.position.y+(t.size.h-t.size.w)/2,s={w:t.size.w*i,h:t.size.h*r},c={x:(a-e.childOffset.x)*r-(s.w-s.h)/2,y:(o-e.childOffset.y)*i-(s.h-s.w)/2},l=n.scaleX*i,u=n.scaleY*r;return{offsetX:n.offsetX+(e.position.x+c.x)*n.scaleX-t.position.x*l,offsetY:n.offsetY+(e.position.y+c.y)*n.scaleY-t.position.y*u,scaleX:l,scaleY:u}}return{offsetX:n.offsetX+(e.position.x-e.childOffset.x*r)*n.scaleX,offsetY:n.offsetY+(e.position.y-e.childOffset.y*i)*n.scaleY,scaleX:n.scaleX*r,scaleY:n.scaleY*i}},zX=(e,t,n,r,i)=>{let a=kX(n.textBody);MX(a)&&e.push({slideIndex:t,nodeId:n.id,nodePath:r,nodeType:n.nodeType,textKind:`shape`,text:a,bounds:jX(n,i)})},BX=(e,t,n,r,i)=>{n.rows.forEach((a,o)=>{a.cells.forEach((a,s)=>{let c=AX(a);MX(c)&&e.push({slideIndex:t,nodeId:n.id,nodePath:`${r}/rows/${o}/cells/${s}`,nodeType:n.nodeType,textKind:`table-cell`,text:c,bounds:jX(n,i),rowIndex:o,cellIndex:s})})})},VX=(e,t,n,r,i,a,o=DX,s=!1)=>{if(!(s&&n.placeholder))switch(n.nodeType){case`shape`:i.includeShapes&&zX(e,t,n,r,o);break;case`table`:i.includeTables&&BX(e,t,n,r,o);break;case`group`:if(!i.includeGroups)break;{let c=n;n.children.forEach((n,l)=>{try{let u=LX(n,a,s,c);if(!u)return;let d=RX(c,u,o);VX(e,t,u,`${r}/children/${l}/${u.id||u.name||String(l)}`,i,a,d,s)}catch{}})}break}},HX=(e,t,n,r,i,a)=>{n!=null&&n.exists()&&n.allChildren().forEach((n,o)=>{if(!pz(n))try{let s=LX(n,a,!0);if(!s)return;VX(e,t,s,`slides/${t}/${r}/nodes/${s.id||s.name||String(o)}`,i,a,DX,!0)}catch{}})},UX=(e,t)=>{let n={...EX,...t},r=[];return e.slides.forEach((t,i)=>{Bz(e,t);let a=e.slideToLayout.get(t.index)||t.layoutIndex,o=e.layouts.get(a),s=a?e.layoutToMaster.get(a):``,c=s?e.masters.get(s):void 0;t.showMasterSp&&(o!=null&&o.showMasterSp&&c&&HX(r,i,c.spTree,`master`,n,{rels:c.rels,partPath:s,diagramDrawings:e.diagramDrawings,layout:o,master:c}),o&&HX(r,i,o.spTree,`layout`,n,{rels:o.rels,partPath:a,diagramDrawings:e.diagramDrawings,layout:o,master:c})),t.nodes.forEach((a,s)=>{VX(r,i,a,`slides/${i}/nodes/${a.id||a.name||String(s)}`,n,{rels:t.rels,partPath:t.slidePath,diagramDrawings:e.diagramDrawings,layout:o,master:c})})}),r},WX=(e,t)=>{if(e instanceof RegExp){let t=new Set(e.flags.split(``));return t.add(`g`),new RegExp(e.source,[...t].join(``))}if(!e)return null;let n=t.useRegex?e:OX(e),r=t.matchCase?`g`:`gi`;return new RegExp(n,r)},GX=(e,t,n={})=>{let r=WX(t,n);if(!r)return[];let i=n.snippetRadius??32,a=[];for(let t of e){r.lastIndex=0;let e;for(;(e=r.exec(t.text))!==null;){let o=e[0];if(o.length===0){r.lastIndex+=1;continue}let s=e.index,c=s+o.length;n.wholeWord&&!PX(t.text,s,c)||a.push({...t,matchStart:s,matchEnd:c,snippet:IX(t.text,s,c,i)})}}return a},KX=class e extends EventTarget{constructor(e,t){super(),this.presentation=null,this.mediaUrlCache=new Map,this.chartInstances=new Set,this.currentSlide=0,this._isRendering=!1,this.zoomFactor=1,this.renderChain=Promise.resolve(),this.renderGeneration=0,this.suppressScrollChange=!1,this.resizeRafId=null,this.lastMeasuredContainerWidth=0,this.mountedSlides=new Set,this.slideHandles=new Map,this.searchHighlightHandles=new Set,this.textIndexCache=null,this.activeRenderMode=null,this.listOptions={windowed:!1,batchSize:12,initialSlides:4,overscanViewport:1.5,showSlideLabels:!1},this.container=e,this.viewerOptions=t??{};let n=this.normalizeZoomPercent(t?.zoomPercent??100);if(this._fitMode=t?.fitMode??`contain`,this.zoomFactor=n/100,t!=null&&t.onSlideChange){let e=t.onSlideChange;this.addEventListener(`slidechange`,(t=>e(t.detail.index)))}if(t!=null&&t.onSlideRendered){let e=t.onSlideRendered;this.addEventListener(`sliderendered`,(t=>e(t.detail.index,t.detail.element)))}if(t!=null&&t.onSlideError){let e=t.onSlideError;this.addEventListener(`slideerror`,(t=>e(t.detail.index,t.detail.error)))}if(t!=null&&t.onSlideUnmounted){let e=t.onSlideUnmounted;this.addEventListener(`slideunmounted`,(t=>e(t.detail.index)))}if(t!=null&&t.onNodeError){let e=t.onNodeError;this.addEventListener(`nodeerror`,(t=>e(t.detail.nodeId,t.detail.error)))}if(t!=null&&t.onRenderStart){let e=t.onRenderStart;this.addEventListener(`renderstart`,()=>e())}if(t!=null&&t.onRenderComplete){let e=t.onRenderComplete;this.addEventListener(`rendercomplete`,()=>e())}}emitRenderStart(){this._isRendering=!0,this.dispatchEvent(new Event(`renderstart`))}emitRenderComplete(){this._isRendering=!1,this.dispatchEvent(new Event(`rendercomplete`))}emitSlideChange(e){this.dispatchEvent(new CustomEvent(`slidechange`,{detail:{index:e}}))}emitSlideRendered(e,t){this.dispatchEvent(new CustomEvent(`sliderendered`,{detail:{index:e,element:t}}))}emitSlideError(e,t){this.dispatchEvent(new CustomEvent(`slideerror`,{detail:{index:e,error:t}}))}emitSlideUnmounted(e){this.dispatchEvent(new CustomEvent(`slideunmounted`,{detail:{index:e}}))}emitNodeError(e,t){this.dispatchEvent(new CustomEvent(`nodeerror`,{detail:{nodeId:e,error:t}}))}load(e){this.renderGeneration++,this._isRendering=!1,this.unloadRenderedState(),this.presentation=e,this.currentSlide=0,this.textIndexCache=null,this.setupAdaptiveResize()}async renderList(e){this.activeRenderMode=`list`,this.listOptions={windowed:e?.windowed??!1,batchSize:this.normalizeBatchSize(e?.batchSize??12),initialSlides:this.normalizePositiveInt(e?.initialSlides??4,4),overscanViewport:this.normalizePositiveFloat(e?.overscanViewport??1.5,1.5),showSlideLabels:e?.showSlideLabels??!1},await this.queueRender()}async renderSlide(e){this.activeRenderMode=`slide`,e!==void 0&&this.presentation&&(this.currentSlide=Math.max(0,Math.min(e,this.presentation.slides.length-1))),await this.queueRender()}async open(e,t){let n=t?.signal,r=()=>{if(n!=null&&n.aborted)throw new DOMException(`Preview aborted`,`AbortError`)};r(),this.destroy();let i=await qX(e);r();let a=t?.lazyMedia??this.viewerOptions.lazyMedia??!1?await pR(i,this.viewerOptions.zipLimits):await fR(i,this.viewerOptions.zipLimits);r();let o=t?.lazySlides??this.viewerOptions.lazySlides??!1?Nz(a,{lazySlides:!0}):Nz(a);r(),this.load(o),(t?.renderMode??`list`)===`slide`?await this.renderSlide(0):await this.renderList(t?.listOptions),r()}static async open(t,n,r){let i=new e(n,r);return await i.open(t,{renderMode:r?.renderMode,listOptions:r?.listOptions,signal:r?.signal,lazyMedia:r?.lazyMedia,lazySlides:r?.lazySlides}),i}async goToSlide(e,t){var n;if(!this.presentation)return;let r=this.currentSlide;if(this.currentSlide=Math.max(0,Math.min(e,this.presentation.slides.length-1)),this.currentSlide!==r&&this.emitSlideChange(this.currentSlide),this.activeRenderMode===`slide`){let{scale:e,displayWidth:t,displayHeight:n}=this.getDisplayMetrics();this.renderSingleSlide(e,t,n)}else{this.suppressScrollChange=!0,await new Promise(e=>requestAnimationFrame(()=>{this.suppressScrollChange=!1,e()})),(n=this.ensureListSlideMountedFn)==null||n.call(this,this.currentSlide);let e=this.container.querySelector(`[data-slide-index="${this.currentSlide}"]`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView(t??{behavior:`smooth`,block:`center`})}}async setZoom(e){let t=this.normalizeZoomPercent(e)/100;t!==this.zoomFactor&&(this.zoomFactor=t,await this.queueRender())}async setFitMode(e){this._fitMode!==e&&(this._fitMode=e,e===`none`&&(this.lastMeasuredContainerWidth=0),await this.queueRender())}get presentationData(){return this.presentation}get slideCount(){return this.presentation?.slides.length??0}get slideWidth(){return this.presentation?.width??0}get slideHeight(){return this.presentation?.height??0}get currentSlideIndex(){return this.currentSlide}get isRendering(){return this._isRendering}get zoomPercent(){return this.zoomFactor*100}get fitMode(){return this._fitMode}on(e,t){return this.addEventListener(e,t),this}off(e,t){return this.removeEventListener(e,t),this}isSlideMounted(e){return this.mountedSlides.has(e)}getMountedSlides(){return[...this.mountedSlides].sort((e,t)=>e-t)}renderSlideToContainer(e,t,n){if(!this.presentation)return null;let r=this.presentation.slides[e];if(!r)return null;let i=TX(this.presentation,r,{onNodeError:(e,t)=>this.emitNodeError(e,t),onNavigate:e=>this.handleNavigate(e),mediaUrlCache:this.mediaUrlCache,pdfjs:this.viewerOptions.pdfjs,chartInstances:this.chartInstances});return n!==void 0&&n!==1&&(i.element.style.transform=`scale(${n})`,i.element.style.transformOrigin=`top left`),t.appendChild(i.element),this.emitSlideRendered(e,i.element),i}searchText(e,t){return this.presentation?GX(this.getTextIndex(t),e,t):[]}renderThumbnailToContainer(e,t,n){if(!this.presentation||!this.presentation.slides[e])return null;let r=this.getThumbnailScale(n),i=this.presentation.width*r,a=this.presentation.height*r,o=document.createElement(`div`);o.dataset.slideIndex=String(e),o.dataset.pptxThumbnail=`true`,o.style.cssText=`
77
+ width: ${i}px;
78
+ height: ${a}px;
79
+ overflow: hidden;
80
+ position: relative;
81
+ background: #fff;
82
+ contain: layout paint style;
83
+ `,t.appendChild(o);let s=this.renderSlideToContainer(e,o,r);if(!s)return o.remove(),null;let c=!1,l=()=>{c||(c=!0,s.dispose(),o.remove())};return{element:o,ready:s.ready,dispose:l,[Symbol.dispose](){l()}}}async highlightSearchResult(e,t){if(!this.presentation||!this.presentation.slides[e.slideIndex])return null;await this.prepareSearchHighlightTarget(e.slideIndex,t);let n=this.findRenderedSlideElement(e.slideIndex);if(!n)return null;getComputedStyle(n).position===`static`&&(n.style.position=`relative`);let r=document.createElement(`div`);r.className=`pptx-search-highlight`,t!=null&&t.className&&r.classList.add(...t.className.split(/\s+/).filter(Boolean)),r.dataset.pptxSearchHighlight=`true`,this.applySearchHighlightStyle(r,e,t),n.appendChild(r);let i=!1,a={element:r,result:e,dispose:()=>{i||(i=!0,r.remove(),this.searchHighlightHandles.delete(a))},[Symbol.dispose](){this.dispose()}};return this.searchHighlightHandles.add(a),a}clearSearchHighlights(){for(let e of[...this.searchHighlightHandles])e.dispose();this.searchHighlightHandles.clear()}afterSingleSlideRender(){}destroy(){this.renderGeneration++,this._isRendering=!1,this.teardownAdaptiveResize(),this.unloadRenderedState(),this.presentation=null}unloadRenderedState(){var e,t;this.clearSearchHighlights(),(e=this.cleanupScrollObserver)==null||e.call(this),this.cleanupScrollObserver=void 0,(t=this.cleanupListMount)==null||t.call(this),this.cleanupListMount=void 0,this.ensureListSlideMountedFn=void 0,this.mountedSlides.clear();for(let e of this.slideHandles.values())e.dispose();this.slideHandles.clear(),this.textIndexCache=null,this.disposeAllCharts();for(let e of this.mediaUrlCache.values())URL.revokeObjectURL(e);this.mediaUrlCache.clear(),this.container.innerHTML=``,this.activeRenderMode=null}[Symbol.dispose](){this.destroy()}normalizeZoomPercent(e){return Number.isFinite(e)?Math.max(10,Math.min(400,e)):100}normalizeBatchSize(e){return Number.isInteger(e)&&e>0?e:12}normalizePositiveInt(e,t){return Number.isInteger(e)&&e>0?e:t}normalizePositiveFloat(e,t){return Number.isFinite(e)&&e>0?e:t}toCssLength(e,t){return e===void 0?t:typeof e==`number`?`${e}px`:e}async prepareSearchHighlightTarget(e,t){var n;let r=t?.scrollIntoView;if(r!==!1){await this.goToSlide(e,typeof r==`object`?r:{behavior:`smooth`,block:`center`});return}if(this.activeRenderMode===`slide`&&this.currentSlide!==e){await this.goToSlide(e);return}this.activeRenderMode===`list`&&((n=this.ensureListSlideMountedFn)==null||n.call(this,e))}findRenderedSlideElement(e){if(this.activeRenderMode===`list`){let t=this.container.querySelector(`[data-slide-index="${e}"]`)?.firstElementChild?.firstElementChild;return t instanceof HTMLElement?t:null}let t=this.container.firstElementChild?.firstElementChild;return t instanceof HTMLElement?t:null}applySearchHighlightStyle(e,t,n){let r=Number.isFinite(n?.padding)?Math.max(0,n.padding):0;if(e.style.position=`absolute`,e.style.pointerEvents=`none`,e.style.boxSizing=`border-box`,e.style.left=`${t.bounds.x-r}px`,e.style.top=`${t.bounds.y-r}px`,e.style.width=`${t.bounds.w+r*2}px`,e.style.height=`${t.bounds.h+r*2}px`,e.style.zIndex=String(n?.zIndex??1e4),e.style.borderStyle=`solid`,e.style.borderWidth=this.toCssLength(n?.borderWidth,`3px`),e.style.borderColor=n?.borderColor??`rgba(255, 214, 102, 0.95)`,e.style.borderRadius=this.toCssLength(n?.borderRadius,`6px`),e.style.background=n?.backgroundColor??`rgba(255, 214, 102, 0.16)`,e.style.boxShadow=n?.boxShadow??`0 0 0 2px rgba(17, 17, 34, 0.45)`,n!=null&&n.style)for(let[t,r]of Object.entries(n.style))r!==void 0&&e.style.setProperty(t,String(r))}getTextIndex(e){let t=JSON.stringify({includeShapes:e?.includeShapes??!0,includeTables:e?.includeTables??!0,includeGroups:e?.includeGroups??!0});if(this.textIndexCache?.key===t)return this.textIndexCache.entries;let n=this.presentation?UX(this.presentation,e):[];return this.textIndexCache={key:t,entries:n},n}getThumbnailScale(e){if(!this.presentation)return 1;if(e?.scale!==void 0&&Number.isFinite(e.scale)&&e.scale>0)return e.scale;let t=e?.width!==void 0&&Number.isFinite(e.width)&&e.width>0?e.width/this.presentation.width:void 0,n=e?.height!==void 0&&Number.isFinite(e.height)&&e.height>0?e.height/this.presentation.height:void 0;return t!==void 0&&n!==void 0?Math.min(t,n):t===void 0?n===void 0?180/this.presentation.width:n:t}getDisplayMetrics(){if(!this.presentation)return{scale:1,displayWidth:0,displayHeight:0};let e=this.viewerOptions.width??(this.container.clientWidth||960);this._fitMode===`contain`&&this.viewerOptions.width===void 0&&(this.lastMeasuredContainerWidth=e);let t=(this._fitMode===`contain`?e/this.presentation.width:1)*this.zoomFactor;return{scale:t,displayWidth:this.presentation.width*t,displayHeight:this.presentation.height*t}}async queueRender(){let e=++this.renderGeneration;return this.renderChain=this.renderChain.catch(()=>{}).then(async()=>{var t,n;if(!this.isRenderStale(e)){this.emitRenderStart();try{if(this.isRenderStale(e))return;let{scale:r,displayWidth:i,displayHeight:a}=this.getDisplayMetrics();(t=this.cleanupScrollObserver)==null||t.call(this),this.cleanupScrollObserver=void 0,(n=this.cleanupListMount)==null||n.call(this),this.cleanupListMount=void 0,this.ensureListSlideMountedFn=void 0,this.clearSearchHighlights(),this.mountedSlides.clear();for(let e of this.slideHandles.values())e.dispose();if(this.slideHandles.clear(),this.disposeAllCharts(),this.container.innerHTML=``,this.container.style.position=`relative`,this.activeRenderMode===`slide`?this.renderSingleSlide(r,i,a):this.listOptions.windowed?await this.renderAllSlidesWindowed(r,i,a,e):await this.renderAllSlidesFull(r,i,a,e),this.isRenderStale(e))return;this.activeRenderMode!==`slide`&&this.correctListMetricsIfNeeded(),this.emitSlideChange(this.currentSlide)}finally{this.emitRenderComplete()}}}),this.renderChain}isRenderStale(e){return e!==this.renderGeneration||!this.presentation}handleContainerResize(){if(!this.presentation||this._fitMode!==`contain`||this.viewerOptions.width!==void 0)return;let e=this.container.clientWidth||0;!e||e===this.lastMeasuredContainerWidth||(this.lastMeasuredContainerWidth=e,this.resizeRafId!==null&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=null,this.queueRender()}))}setupAdaptiveResize(){if(this.teardownAdaptiveResize(),typeof ResizeObserver<`u`){let e=new ResizeObserver(()=>this.handleContainerResize());e.observe(this.container),this.resizeObserver=e;return}this.windowResizeHandler=()=>this.handleContainerResize(),window.addEventListener(`resize`,this.windowResizeHandler)}teardownAdaptiveResize(){var e;(e=this.resizeObserver)==null||e.disconnect(),this.resizeObserver=void 0,this.windowResizeHandler&&=(window.removeEventListener(`resize`,this.windowResizeHandler),void 0),this.resizeRafId!==null&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=null)}disposeAllCharts(){for(let e of this.chartInstances)e.isDisposed()||e.dispose();this.chartInstances.clear()}createListSlideItem(e,t,n){let r=document.createElement(`div`);r.dataset.slideIndex=String(e),r.style.cssText=`width: fit-content; margin: 0 auto 20px;`;let i=document.createElement(`div`);if(i.style.cssText=`
84
+ width: ${t}px;
85
+ height: ${n}px;
86
+ box-shadow: 0 2px 8px rgba(0,0,0,0.15);
87
+ overflow: hidden;
88
+ position: relative;
89
+ background: #fff;
90
+ `,r.appendChild(i),this.listOptions.showSlideLabels){let t=document.createElement(`div`);t.style.cssText=`text-align: center; padding: 4px; font-size: 12px; color: #666;`,t.textContent=`Slide ${e+1}`,r.appendChild(t)}return{item:r,wrapper:i}}mountListSlide(e,t,n,r,i){if(!this.presentation||t.dataset.mounted===`1`)return;t.dataset.mounted=`1`,t.innerHTML=``,this.mountedSlides.add(e);let a=this.presentation.slides[e];try{let r=TX(this.presentation,a,{onNodeError:(e,t)=>this.emitNodeError(e,t),onNavigate:e=>this.handleNavigate(e),mediaUrlCache:this.mediaUrlCache,pdfjs:this.viewerOptions.pdfjs,chartInstances:this.chartInstances});this.slideHandles.set(e,r),r.element.style.transform=`scale(${n})`,r.element.style.transformOrigin=`top left`,t.appendChild(r.element),this.emitSlideRendered(e,r.element)}catch(n){this.emitSlideError(e,n),t.style.background=`#fff3f3`,t.style.display=`flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.border=`2px dashed #ff6b6b`,t.style.color=`#cc0000`,t.style.fontSize=`14px`,t.textContent=`Slide ${e+1}: Render Error - ${n instanceof Error?n.message:String(n)}`}}unmountListSlide(e,t,n){if(t.dataset.mounted!==`1`)return;t.dataset.mounted=`0`,this.mountedSlides.delete(e);let r=this.slideHandles.get(e);r&&(r.dispose(),this.slideHandles.delete(e)),t.innerHTML=``,t.style.background=`#fff`,t.style.display=``,t.style.alignItems=``,t.style.justifyContent=``,t.style.border=``,t.style.color=``,t.style.fontSize=``,t.style.height=`${n}px`,this.emitSlideUnmounted(e)}async renderAllSlidesFull(e,t,n,r){if(!this.presentation)return;let i=this.listOptions.batchSize,a=document.createDocumentFragment();for(let o=0;o<this.presentation.slides.length;o++){if(this.isRenderStale(r))return;let{item:s,wrapper:c}=this.createListSlideItem(o,t,n);if(this.mountListSlide(o,c,e,t,n),a.appendChild(s),(o+1)%i===0&&(this.container.appendChild(a),a=document.createDocumentFragment(),await new Promise(e=>requestAnimationFrame(()=>e())),this.isRenderStale(r)))return}this.isRenderStale(r)||(a.childNodes.length>0&&this.container.appendChild(a),this.setupScrollSlideTracking())}async renderAllSlidesWindowed(e,t,n,r){if(!this.presentation)return;let i=this.listOptions.batchSize,a=document.createDocumentFragment(),o=[];for(let e=0;e<this.presentation.slides.length;e++){if(this.isRenderStale(r))return;let{item:s,wrapper:c}=this.createListSlideItem(e,t,n);if(o.push(c),a.appendChild(s),(e+1)%i===0&&(this.container.appendChild(a),a=document.createDocumentFragment(),await new Promise(e=>requestAnimationFrame(()=>e())),this.isRenderStale(r)))return}if(this.isRenderStale(r))return;a.childNodes.length>0&&this.container.appendChild(a);let s=r=>{r<0||r>=o.length||this.mountListSlide(r,o[r],e,t,n)},c=e=>{e<0||e>=o.length||this.unmountListSlide(e,o[e],n)},l=this.listOptions.initialSlides;for(let e=0;e<Math.min(l,o.length);e++)s(e);this.ensureListSlideMountedFn=s;let u=window.IntersectionObserver;if(!u){for(let e=l;e<o.length;e++)s(e);this.setupScrollSlideTracking();return}let d=this.viewerOptions.scrollContainer??null,f=this.listOptions.overscanViewport,p=d?d.clientHeight:window.innerHeight,m=new u(e=>{for(let t of e){let e=t.target.parentElement,n=Number(e?.dataset.slideIndex??`-1`);Number.isNaN(n)||n<0||(t.isIntersecting?s(n):c(n))}},{root:d,rootMargin:`${Math.round(p*f)}px 0px`,threshold:0});o.forEach(e=>{m.observe(e)}),this.cleanupListMount=()=>{m.disconnect(),this.ensureListSlideMountedFn=void 0},this.setupScrollSlideTracking()}setupScrollSlideTracking(){if(this.activeRenderMode===`slide`)return;let e=window.IntersectionObserver;if(!e)return;let t=this.container.querySelectorAll(`[data-slide-index]`);if(!t.length)return;let n=new Map,r=new e(e=>{for(let t of e){let e=Number(t.target.dataset.slideIndex??`-1`);Number.isNaN(e)||e<0||n.set(e,t.intersectionRatio)}if(this.suppressScrollChange)return;let t=-1,r=-1;for(let[e,i]of n)i>r&&(r=i,t=e);t>=0&&t!==this.currentSlide&&(this.currentSlide=t,this.emitSlideChange(t))},{root:this.viewerOptions.scrollContainer??null,threshold:[0,.25,.5,.75,1]});t.forEach(e=>r.observe(e)),this.cleanupScrollObserver=()=>{r.disconnect()}}renderSingleSlide(e,t,n){if(!this.presentation)return;let r=this.presentation.slides[this.currentSlide];if(!r)return;for(let e of this.slideHandles.values())e.dispose();this.slideHandles.clear(),this.disposeAllCharts(),this.container.innerHTML=``,this.mountedSlides.clear(),this.mountedSlides.add(this.currentSlide);let i=document.createElement(`div`);i.style.cssText=`
91
+ width: ${t}px; height: ${n}px;
92
+ margin: 0 auto; overflow: hidden; position: relative;
93
+ box-shadow: 0 2px 8px rgba(0,0,0,0.15);
94
+ `;try{let t=TX(this.presentation,r,{onNodeError:(e,t)=>this.emitNodeError(e,t),onNavigate:e=>this.handleNavigate(e),mediaUrlCache:this.mediaUrlCache,pdfjs:this.viewerOptions.pdfjs,chartInstances:this.chartInstances});this.slideHandles.set(this.currentSlide,t),t.element.style.transform=`scale(${e})`,t.element.style.transformOrigin=`top left`,i.appendChild(t.element),this.emitSlideRendered(this.currentSlide,t.element)}catch(e){this.emitSlideError(this.currentSlide,e),i.style.background=`#fff3f3`,i.style.display=`flex`,i.style.alignItems=`center`,i.style.justifyContent=`center`,i.style.border=`2px dashed #ff6b6b`,i.style.color=`#cc0000`,i.style.fontSize=`14px`,i.textContent=`Slide ${this.currentSlide+1}: Render Error - ${e instanceof Error?e.message:String(e)}`}this.container.appendChild(i),this.afterSingleSlideRender()}correctListMetricsIfNeeded(){if(!this.presentation||this._fitMode!==`contain`||this.viewerOptions.width!==void 0)return;let e=this.container.clientWidth||0;if(!e||e===this.lastMeasuredContainerWidth)return;this.lastMeasuredContainerWidth=e;let t=e/this.presentation.width*this.zoomFactor,n=this.presentation.width*t,r=this.presentation.height*t,i=this.container.querySelectorAll(`[data-slide-index]`);for(let e of i){let i=e.firstElementChild;if(!i)continue;i.style.width=`${n}px`,i.style.height=`${r}px`;let a=i.firstElementChild;a&&(a.style.transform=`scale(${t})`)}}handleNavigate(e){e.slideIndex===void 0?e.url&&$B(e.url)&&window.open(e.url,`_blank`,`noopener,noreferrer`):this.goToSlide(e.slideIndex)}};async function qX(e){if(e instanceof ArrayBuffer)return e;if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t.buffer}let t=e;if(typeof t.arrayBuffer==`function`)return t.arrayBuffer();if(typeof FileReader<`u`)return new Promise((e,n)=>{let r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>n(r.error??Error(`Failed to read Blob input`)),r.readAsArrayBuffer(t)});if(typeof Response<`u`)return new Response(t).arrayBuffer();throw Error(`Blob preview input is not supported in this runtime`)}export{KX as PptxViewer,$L as RECOMMENDED_ZIP_LIMITS};